sandcastle: @coa/server Hono scaffold with GET /api/health (#10) #24

Merged
matou-build-agent merged 1 commit from agent/issue-10 into main 2026-08-28 17:53:30 +00:00

closes #10

closes #10
sandcastle: @coa/server Hono scaffold with GET /api/health (#10)
All checks were successful
ci / seam (pull_request) Successful in 27s
471115168d
Plan Task 6. New workspace package `server` (@coa/server):
- src/app.ts: buildApp(deps), defaultDeps(), AppDeps = { fetch, tcpConnect }
- src/routes/health.ts: GET / → { ok: true, phase: 1 }, mounted at /api/health
- src/index.ts: listens on COA_PORT (default 8787)
- test/health.test.ts: GET /api/health → 200 { ok: true, phase: 1 }

Decisions:
- Added @types/node (^22.0.0) to devDependencies — not in the plan's dep
  list, but src/app.ts uses `node:net` and src/index.ts uses `process`, so
  it is required for `pnpm -r typecheck` to exit 0. Lockfile committed.
- buildApp keeps the unused `deps` param per the plan's interface; the prober
  wired through it is Task 7, out of scope here.

Out of scope (deferred): prober, validate-backend, submit routes.

Files: server/{package.json,tsconfig.json,vitest.config.ts,src/app.ts,
src/index.ts,src/routes/health.ts,test/health.test.ts}, pnpm-lock.yaml, STATUS.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!24
No description provided.