{ "name": "@suaveplan/api-router-worker-bridge", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Stage-3 HTTP Request/Response marshalling across the worker boundary. Pairs a main-side and worker-side bridge over @suaveplan/api-worker-rpc, transporting fetch-compatible Request and Response objects (including ReadableStream bodies via streaming frames) without exposing the raw Request to worker code.", "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" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./marshal-request": { "import": { "types": "./dist/marshal-request/index.d.ts", "default": "./dist/marshal-request/index.js" } }, "./marshal-response": { "import": { "types": "./dist/marshal-response/index.d.ts", "default": "./dist/marshal-response/index.js" } }, "./streaming": { "import": { "types": "./dist/streaming/index.d.ts", "default": "./dist/streaming/index.js" } }, "./bridge": { "import": { "types": "./dist/bridge/index.d.ts", "default": "./dist/bridge/index.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/index.d.ts", "default": "./dist/error-codes/index.js" } }, "./testing": { "import": { "types": "./dist/testing/index.d.ts", "default": "./dist/testing/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": { "@suaveplan/api-router": "workspace:^", "@suaveplan/api-types": "workspace:^", "@suaveplan/api-worker-rpc": "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" ], "suaveplan": { "conformanceSkip": [ "api-router" ], "conformanceSkipReason": "api-router-worker-bridge marshals HTTP Request/Response over the worker-rpc boundary; it does NOT implement the api-router Router/PipelineRouter contract — the router lives on the main side. The bridge's correctness is verified by its own round-trip conformance harness." } }