kimi-code/packages/kap-server/test/helpers
haozhe.yang f61944fcd1 feat(kap-server): resolve v1 session ids centrally and delegate cold reads to runtimes
Implement the M5a slice of the REST delegation milestone:

- Add IV1SessionRefResolver as the single bare-session-id resolution
  entry point for the v1 edge: no match maps to the existing not-found
  envelope, exactly one match yields the SessionRef, ambiguous and
  runtime-offline cases map to stable existing error envelopes without
  leaking candidates or internal causes.
- Delegate the cold/descriptor surfaces through the owning runtime:
  session list/get/profile/children, snapshot, transcript cold reads,
  task existence checks, and the export ZIP stream (logical export
  entries materialized into the same ZIP pipeline), with byte-identical
  wire responses, pagination, filters, and ZIP contents.
- Add ensureDiscovered on the workspace runtime manager so sessions in
  on-disk buckets stay reachable after restarts, plus local-layout
  fallbacks (session-meta/, custom.cwd recovery) matching
  FileSessionIndex semantics.
- Guard the resolver as the only bare-id resolution path in kap-server
  with an explicit shrinking exemption list for the remaining live
  routes.
2026-07-29 10:48:45 +08:00
..
auth.ts feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
fakeRuntime.ts feat(kap-server): resolve v1 session ids centrally and delegate cold reads to runtimes 2026-07-29 10:48:45 +08:00
fixedAuth.ts feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00