opencode/packages/opencode/test/server/httpapi-exercise
Kit Langton f4cb3170d4 refactor(httpapi-exercise): migrate query-schema-drift scenarios into harness
Move the 8 standalone scenarios from
packages/opencode/test/server/httpapi-query-schema-drift.test.ts into
the route-coverage exerciser as `.viaSdk(...)` scenarios. Each one
exercises a routing-aware GET through the real SDK client wired to the
in-process router, so the SDK's auto-injected `?directory=...` /
`?workspace=...` query params hit the same typed schemas as in production.

Routes now covered by `.viaSdk(...)` scenarios in the exerciser:
  /session                          (session.list.via_sdk)
  /session/{sessionID}/message      (session.messages.via_sdk)
  /find/file                        (find.files.via_sdk)
  /find                             (find.text.via_sdk)
  /file/content                     (file.read.via_sdk)
  /experimental/session             (experimental.session.list.via_sdk)
  /experimental/tool                (experimental.tool.list.via_sdk)
  /vcs/diff                         (vcs.diff.via_sdk)

Standalone httpapi-query-schema-drift.test.ts deleted — its coverage
now lives in the harness alongside every other route test, single
source of truth.

149/149 scenarios pass after migration (139 existing + 2 from
proof-of-concept #26604 + 8 migrated here).
2026-05-09 20:27:14 -04:00
..
assertions.ts refactor(server): split HttpApi exercise harness (#26385) 2026-05-08 17:58:14 +00:00
backend.ts feat(httpapi-exercise): add .viaSdk() to drive scenarios through real SDK 2026-05-09 20:22:55 -04:00
dsl.ts feat(httpapi-exercise): add .viaSdk() to drive scenarios through real SDK 2026-05-09 20:22:55 -04:00
environment.ts research: delete Hono backend (do not merge) (#25667) 2026-05-09 13:10:42 +00:00
index.ts refactor(httpapi-exercise): migrate query-schema-drift scenarios into harness 2026-05-09 20:27:14 -04:00
report.ts research: delete Hono backend (do not merge) (#25667) 2026-05-09 13:10:42 +00:00
routing.ts chore: generate 2026-05-09 13:11:45 +00:00
runner.ts chore: generate 2026-05-09 13:11:45 +00:00
runtime.ts research: delete Hono backend (do not merge) (#25667) 2026-05-09 13:10:42 +00:00
types.ts feat(httpapi-exercise): add .viaSdk() to drive scenarios through real SDK 2026-05-09 20:22:55 -04:00