Initial Commit
This commit is contained in:
127
packages/api-stack/api/api-sandbox-wasm-host-bridge/package.json
Normal file
127
packages/api-stack/api/api-sandbox-wasm-host-bridge/package.json
Normal file
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"name": "@suaveplan/api-sandbox-wasm-host-bridge",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Host bridge wrapping a @suaveplan/api-sandbox-wasm WasmSandboxHandle as a @suaveplan/api-host PluginModule. Validates the WASM ABI surface (__suaveplan_alloc / free / handle_request / routes / start / dispose + memory) at bridge-init, marshals SerializedRequest bytes into linear memory via __suaveplan_alloc, invokes __suaveplan_handle_request, reads the packed (responsePtr, responseLen) result, JSON-decodes the SerializedResponse, and unmarshals it back to a host Response. Traps surface as SAND_WASM_BRIDGE.HANDLER_TRAPPED with classified trapKind; denied capabilities surface as SAND_PERM.DENIED.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./bridge": {
|
||||
"import": {
|
||||
"types": "./dist/bridge/index.d.ts",
|
||||
"default": "./dist/bridge/index.js"
|
||||
}
|
||||
},
|
||||
"./wasm-abi": {
|
||||
"import": {
|
||||
"types": "./dist/abi-direct/wasm-abi/index.d.ts",
|
||||
"default": "./dist/abi-direct/wasm-abi/index.js"
|
||||
}
|
||||
},
|
||||
"./marshal": {
|
||||
"import": {
|
||||
"types": "./dist/abi-direct/marshal/index.d.ts",
|
||||
"default": "./dist/abi-direct/marshal/index.js"
|
||||
}
|
||||
},
|
||||
"./memory": {
|
||||
"import": {
|
||||
"types": "./dist/abi-direct/memory/index.d.ts",
|
||||
"default": "./dist/abi-direct/memory/index.js"
|
||||
}
|
||||
},
|
||||
"./wasi-stdio": {
|
||||
"import": {
|
||||
"types": "./dist/wasi-stdio/index.d.ts",
|
||||
"default": "./dist/wasi-stdio/index.js"
|
||||
}
|
||||
},
|
||||
"./abi-wasi-stdio": {
|
||||
"import": {
|
||||
"types": "./dist/abi-wasi-stdio/index.d.ts",
|
||||
"default": "./dist/abi-wasi-stdio/index.js"
|
||||
}
|
||||
},
|
||||
"./route-discovery": {
|
||||
"import": {
|
||||
"types": "./dist/route-discovery/index.d.ts",
|
||||
"default": "./dist/route-discovery/index.js"
|
||||
}
|
||||
},
|
||||
"./lifecycle": {
|
||||
"import": {
|
||||
"types": "./dist/lifecycle/index.d.ts",
|
||||
"default": "./dist/lifecycle/index.js"
|
||||
}
|
||||
},
|
||||
"./error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/index.d.ts",
|
||||
"default": "./dist/error-codes/index.js"
|
||||
}
|
||||
},
|
||||
"./instruments": {
|
||||
"import": {
|
||||
"types": "./dist/instruments/index.d.ts",
|
||||
"default": "./dist/instruments/index.js"
|
||||
}
|
||||
},
|
||||
"./testing": {
|
||||
"import": {
|
||||
"types": "./dist/testing/wasm-host-bridge-conformance/index.d.ts",
|
||||
"default": "./dist/testing/wasm-host-bridge-conformance/index.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-permissions": "workspace:^",
|
||||
"@suaveplan/api-sandbox-wasm": "workspace:^",
|
||||
"@suaveplan/api-types": "workspace:^",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "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