mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-22 07:05:41 +00:00
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. |
||
|---|---|---|
| .. | ||
| auth.ts | ||
| fakeRuntime.ts | ||
| fixedAuth.ts | ||