test(web): real-composition webserver spec

Boots a test-only cordis.yml through the real Loader and asserts the route
service's behavior surface: exact/longest-prefix matching, tapIndex
transform order and unsubscription, traversal 403, non-GET 405, SPA-200
fallback, malformed-request 400 without process exit, duplicate-pattern
throw, dispose closing held connections with register/disposer symmetry,
and a listen-failure fail-loud case (EADDRINUSE -> FAILED fiber + late
rejection). Replaces the retired factory-era specs.
This commit is contained in:
imccyu
2026-07-25 12:49:46 +08:00
parent 0b1cd0a1cb
commit 4a27da44cf
23 changed files with 222 additions and 1485 deletions

View File

@@ -172,7 +172,7 @@ async function summarizeCold(persistence: SessionPersistence, meta: SessionHeade
}
}
/** Host-level default agent routing (same shape as dsh-host-runtime's HostDefaults, kept structural to avoid a reverse dependency). */
/** Host-level default agent routing: provider/model from the gateway config, cwd from the host process. */
export interface ApiProxyDefaults {
provider: string
model: string