diff options
| author | Adam Malczewski <[email protected]> | 2026-06-06 23:18:13 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-06 23:18:13 +0900 |
| commit | 395d7565b46416e9914db099b9a4c226f4c95648 (patch) | |
| tree | 8b3c58bfb0db9bbe0025f6d2029885fa2bee92d0 /package.json | |
| parent | 3e95b26ee2928c40db581bed4c138d3fa842b753 (diff) | |
| download | dispatch-395d7565b46416e9914db099b9a4c226f4c95648.tar.gz dispatch-395d7565b46416e9914db099b9a4c226f4c95648.zip | |
refactor(transport-http,host-bin): transport-http owns its Bun.serve (fix log scope)
Make transport-http a full-fidelity extension that runs its own Bun.serve
inside activate(host) — symmetric with transport-ws. The Hono app is now built
with the extension-scoped host, so all HTTP edge logs are correctly attributed
extensionId=transport-http instead of the host-bin __host__ scope (verified
live in the journal).
- transport-http: createTransportHttpExtension() factory; activate builds the
app + Bun.serve, reads host.config httpPort (?? 24203); deactivate stops it.
- host-bin: drops the HTTP Bun.serve + createServer call; config.ts maps
BACKEND_PORT/PORT -> httpPort. host-bin now serves no transport (both
transports self-serve); boot log -> 'Dispatch booted'.
- +5 bun lifecycle tests wired into test:bun.
No contract change (composition wiring). Verified live: HTTP serves on :24203;
journal edge logs now scoped transport-http. typecheck clean, 498 vitest + 89
bun, biome clean.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index c2cfbd8..85a6c4b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "vitest run", "test:watch": "vitest", "typecheck": "tsc -b --pretty", - "test:bun": "bun test packages/storage-sqlite/src packages/trace-store/src packages/observability-collector/src packages/transport-ws/src/server.bun.test.ts", + "test:bun": "bun test packages/storage-sqlite/src packages/trace-store/src packages/observability-collector/src packages/transport-ws/src/server.bun.test.ts packages/transport-http/src/server.bun.test.ts", "test:all": "bun run test && bun run test:bun", "dev": "bun packages/host-bin/src/main.ts", "dev:all": "./bin/up", |
