Initial Commit
This commit is contained in:
116
packages/api-stack/api/api-sandbox-vm-host-bridge/package.json
Normal file
116
packages/api-stack/api/api-sandbox-vm-host-bridge/package.json
Normal file
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"name": "@suaveplan/api-sandbox-vm-host-bridge",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Host-integration bridge that wraps a @suaveplan/api-sandbox-vm VmSandboxHandle as a PluginModule + PipelineRoute[] bundle for @suaveplan/api-host.installPlugin. Marshals host Request → SerializedRequest into the vm.Context, unmarshals SerializedResponse → host Response, delegates start/dispose lifecycle to the sandbox handle, and surfaces sandbox faults via the SAND_VM_BRIDGE.* code registry.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./bridge/bridge": {
|
||||
"import": {
|
||||
"types": "./dist/bridge/bridge.d.ts",
|
||||
"default": "./dist/bridge/bridge.js"
|
||||
}
|
||||
},
|
||||
"./marshal/marshal-request": {
|
||||
"import": {
|
||||
"types": "./dist/marshal/marshal-request.d.ts",
|
||||
"default": "./dist/marshal/marshal-request.js"
|
||||
}
|
||||
},
|
||||
"./marshal/marshal-response": {
|
||||
"import": {
|
||||
"types": "./dist/marshal/marshal-response.d.ts",
|
||||
"default": "./dist/marshal/marshal-response.js"
|
||||
}
|
||||
},
|
||||
"./error-codes/error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./lifecycle/lifecycle": {
|
||||
"import": {
|
||||
"types": "./dist/lifecycle/lifecycle.d.ts",
|
||||
"default": "./dist/lifecycle/lifecycle.js"
|
||||
}
|
||||
},
|
||||
"./route-discovery/route-discovery": {
|
||||
"import": {
|
||||
"types": "./dist/route-discovery/route-discovery.d.ts",
|
||||
"default": "./dist/route-discovery/route-discovery.js"
|
||||
}
|
||||
},
|
||||
"./instruments/instruments": {
|
||||
"import": {
|
||||
"types": "./dist/instruments/instruments.d.ts",
|
||||
"default": "./dist/instruments/instruments.js"
|
||||
}
|
||||
},
|
||||
"./testing": {
|
||||
"import": {
|
||||
"types": "./dist/testing/vm-host-bridge-conformance/vm-host-bridge-conformance.d.ts",
|
||||
"default": "./dist/testing/vm-host-bridge-conformance/vm-host-bridge-conformance.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"lint": "bunx biome check src/ tests/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/ tests/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"@suaveplan/api-host": "workspace:^",
|
||||
"@suaveplan/api-sandbox-vm": "workspace:^",
|
||||
"@suaveplan/api-types": "workspace:^",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user