kimi-code/packages/kap-server
haozhe.yang 536c4c0d44 feat(v2): auto-mint session ids and harden print-mode background drain
- make CreateSessionOptions.sessionId optional; SessionLifecycleService.create and fork now mint `session_<lowercase-uuid>` via a shared createSessionId helper, so edge layers stop minting their own ids (drop randomUUID in the v2 harness, ulid in kap-server)
- rework V2Session.waitForBackgroundTasksOnPrint to re-enumerate each round, suppress terminal notifications while waiting, and bound the drain by [task].print_wait_ceiling_s (default 1h) instead of a hardcoded 30s cap, so kimi -p can run long tasks to completion without being steered into a new turn
- add v2-session unit tests; seed session/agent/bootstrap context in the tool-dedupe harness for the real executor
2026-07-09 13:10:49 +08:00
..
src feat(v2): auto-mint session ids and harden print-mode background drain 2026-07-09 13:10:49 +08:00
test refactor(agent-core-v2): persist wire records natively in the v1 vocabulary 2026-07-09 01:18:11 +08:00
package.json feat(kap-server): log envelope code instead of HTTP status 2026-07-08 10:47:32 +08:00
tsconfig.dev.json refactor(kap-server): rename server-v2 package to kap-server 2026-07-07 16:56:19 +08:00
tsconfig.json refactor(kap-server): rename server-v2 package to kap-server 2026-07-07 16:56:19 +08:00
tsdown.config.ts refactor(kap-server): rename server-v2 package to kap-server 2026-07-07 16:56:19 +08:00
vitest.config.ts refactor(kap-server): rename server-v2 package to kap-server 2026-07-07 16:56:19 +08:00