Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Tasks
- [x] 1. Replace `STAGE_2_RESERVED` sentinel with the populated `./testing` surface (`createTestHost` + helper types).
- [x] 2. Wire per-slot default adapters (router, auth, tenant, db, secrets, ws-broker, ledger-db, event-bus).
- [x] 3. Implement `installFixturePlugin`, `fetchAs`, `waitForEvent`, `dispose` helpers on `TestHost`.
- [x] 4. Add 13 unit tests under `src/testing/create-test-host/create-test-host.test.ts` covering each helper + adapter slot using a hand-rolled router adapter (avoids the api-host ↔ api-router-in-memory dep cycle).
- [x] 5. Author the companion smoke at `e2e/foundation-stack-test-host/` — Bun.serve over a `createTestHost(...)` boot, Playwright spec covering 8 behaviour groups (plugin install, router resolution, principal seed, tenant seed, secret seed, db round-trip, event emission, livez).
- [x] 6. Update `STATUS.md` row for `@suaveplan/api-host`.
- [x] 7. Tick `5.6 api-host testing-kit subpath` in `openspec/changes/api-plugin-foundation/tasks.md`.
- [x] 8. Document the retained `conformanceSkip` posture in `api-host/README.md`.