kimi-code/packages/kap-server
haozhe.yang c0295dddc1 fix(kap-server): reconcile global message search with the runtime session host
Rebasing onto main pulled in the global message search feature, which
predates the multi-runtime rework and conflicts with it in three places:

- start.ts wired TranscriptService straight into the search service's
  LiveTranscriptSource, but the transcript service is now keyed by full
  SessionRef while the search query container carries a bare session id.
  Wire a composition-root adapter instead: resolve the bare id against
  the runtime host's live scopes (unique match only, mirroring the v1
  resolver's projection semantics) and delegate by ref.
- The search index scans on-disk wire.jsonl files and enumerates sessions
  through ISessionIndex, tripping the v1 compatibility guard's layout and
  index bans. Exempt search/searchService.ts with a documented reason on
  both rules: the feature is local-layout-only by design, multi-runtime
  search indexing is future work. Stale exemptions now fail the guard.
- Extend the frozen /api/v1 wire baseline with the /api/v1/search route
  the branch predates.
2026-07-29 10:56:29 +08:00
..
src fix(kap-server): reconcile global message search with the runtime session host 2026-07-29 10:56:29 +08:00
test fix(kap-server): reconcile global message search with the runtime session host 2026-07-29 10:56:29 +08:00
CHANGELOG.md ci: release packages (#1989) 2026-07-22 17:24:39 +08:00
package.json feat(kap-server): key WS internals by SessionRef and adapt /api/v1/ws 2026-07-29 10:48:45 +08:00
tsconfig.dev.json feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
tsconfig.json feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
tsdown.config.ts feat(kap-server): add provider write endpoints and models.dev/registry import (#2110) 2026-07-24 14:00:16 +08:00
vitest.config.ts test: cut slow suite runtimes and isolate experimental flag from host env (#1595) 2026-07-13 17:45:22 +08:00