transport-adapter
transport-adapter is the published transport/proxy runtime seam used by the adapters launcher and related runtime consumers.
Status: Public family package. Canonical docs home: Package and Plugin Docs Map. This README defines the package contract for the published transport/proxy runtime seam used by adapters.
Current status
This workspace carries the runtime, tests, and package entrypoints used by published adapters packages. It is expected to be installable from npm alongside the rest of the public adapters family.
Intended seam
The control-plane shape is:
packages/adapters/cli/src/commands/launch.tsdecides whether a proxy is needed.packages/adapters/core/src/provider-resolver.tsresolves canonical provider config.packages/adapters/adapters/src/translate-for-harness.tschooses the harness-facing protocol contract.packages/adapters/transportis the package seam where that future runtime can converge once cutover work is complete.
Historical references still exist under packages/adapters/adapters-proxy, but this package is now the active JS runtime seam for published launcher flows.
What this package means right now
- it is a published npm deliverable used by the adapters CLI/runtime stack
src/config.ts,src/server.ts,src/runtime.ts, andsrc/types.tsprovide the transport/proxy runtime seam consumed by launcher flows- package entrypoints and the
adapters-proxybin are part of the public runtime surface - the docs capture the protocol/provider split and the current runtime boundary
Placeholder contract notes
POST /v1/count_tokensnow delegates to provider-aware token counting through the runtime completion engine and returns{ "count": number }, matching the legacyadapters-proxycutover target instead of a local JSON-length heuristic. Invalid JSON and provider/request failures return explicit error responses, and providers without token-count support return501.GET /metricsandGET /cache/statsare retained for cutover parity with the legacy proxy./metricsexposes in-process request/error/token counters;/cache/statsreturns{ "enabled": false }until this package owns a real cache implementation./passthrough/*is expected to strip only the/passthroughprefix, preserve the remaining path and query string, and fail with501when no completion engine or resolvable upstreamapiBaseexists.
Operator checks
Use these workspace gates when changing the runtime seam or its migration docs:
npm run build --workspace=@a5c-ai/transport-adapter
npm run test --workspace=@a5c-ai/transport-adapter
npm run scorecard:migration --workspace=@a5c-ai/transport-adapterPassing those commands proves the runtime seam still compiles, its runtime tests still pass, and the migration scorecard still sees metadata and docs that match the published runtime policy.
Current document set
- Architecture: intended protocol/provider boundaries and route contract
- Migration: release-owner policy, validation gates, and archived legacy references