{ "name": "@suaveplan/api-worker-rpc", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "MessagePort-based RPC protocol for worker-isolated API plugins. Provides Zod-validated wire frames, monotonic correlation ids, AbortSignal forwarding, streaming with backpressure, structured-clone safety guards, SuaveplanError reconstruction across the boundary, and paired client/server bindings. Universal; Stage-3 worker-proxy packages depend on this.", "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" } }, "./protocol": { "import": { "types": "./dist/protocol/protocol.d.ts", "default": "./dist/protocol/protocol.js" } }, "./correlation": { "import": { "types": "./dist/correlation/correlation.d.ts", "default": "./dist/correlation/correlation.js" } }, "./client": { "import": { "types": "./dist/client/client.d.ts", "default": "./dist/client/client.js" } }, "./server": { "import": { "types": "./dist/server/server.d.ts", "default": "./dist/server/server.js" } }, "./streaming": { "import": { "types": "./dist/streaming/streaming.d.ts", "default": "./dist/streaming/streaming.js" } }, "./abort-forwarding": { "import": { "types": "./dist/abort-forwarding/abort-forwarding.d.ts", "default": "./dist/abort-forwarding/abort-forwarding.js" } }, "./error-reconstruction": { "import": { "types": "./dist/error-reconstruction/error-reconstruction.d.ts", "default": "./dist/error-reconstruction/error-reconstruction.js" } }, "./backpressure": { "import": { "types": "./dist/backpressure/backpressure.d.ts", "default": "./dist/backpressure/backpressure.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/error-codes.d.ts", "default": "./dist/error-codes/error-codes.js" } }, "./testing": { "import": { "types": "./dist/testing/testing.d.ts", "default": "./dist/testing/testing.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-types": "workspace:^", "@suaveplan/error": "workspace:^", "@suaveplan/events": "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" ] }