kimi-code/packages/node-sdk
haozhe.yang 3c6f20d0be refactor(agent-core-v2): remove session context path fields and finalize guards
Implement the M8b slice, completing the first-stage rework:

- Add ISessionHostFiles, a typed lease capability that carries the
  session host-file facts (plan/log/media/agent dirs); local leases
  project it, headless leases get the absent value. All business
  services (plan, sessionLog, task display, MCP originals, agent
  lifecycle, session metadata, cron) read paths from it instead of
  ISessionContext, with wire-visible values byte-identical.
- Delete ISessionContext.sessionDir/metaScope, the transitional
  pathful context seed, the session.host_files/os.stdio capabilities,
  and the unused bootstrap scope builders; cwd/workspaceId stay as
  logical metadata fed from the lease.
- Stream the export pipeline end to end (stat-only walks, lazy entry
  contents, streamed staging) and derive revisions from the same
  content hashes so transfer window validation is unchanged.
- Fix fs-watch duplicate subscriptions when a bare id reroutes to a
  different runtime; finalize domain guards with documented allowlist
  owners and pathlessness pins; node-sdk reads host files from the
  lease for live sessions.
2026-07-29 10:48:45 +08:00
..
examples feat(oauth): return structured managed usage rows (#2300) 2026-07-28 15:03:25 +08:00
scripts feat(node-sdk): migrate the SDK method surface to agent-core-v2 (#2262) 2026-07-28 20:29:45 +08:00
src refactor(agent-core-v2): remove session context path fields and finalize guards 2026-07-29 10:48:45 +08:00
test feat(kap-server): key WS internals by SessionRef and adapt /api/v1/ws 2026-07-29 10:48:45 +08:00
api-extractor.json Kimi For Coding 2026-05-22 15:54:50 +08:00
CHANGELOG.md ci: release packages (#1989) 2026-07-22 17:24:39 +08:00
package.json feat(node-sdk): migrate the SDK method surface to agent-core-v2 (#2262) 2026-07-28 20:29:45 +08:00
README.md Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.api-extractor.json Kimi For Coding 2026-05-22 15:54:50 +08:00
tsconfig.dts.json feat(node-sdk): migrate the SDK method surface to agent-core-v2 (#2262) 2026-07-28 20:29:45 +08:00
tsconfig.json feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
tsdown.config.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
vitest.config.ts chore: use raw query imports for prompt sources (#682) 2026-06-12 11:47:44 +08:00

@moonshot-ai/kimi-code-sdk

The TypeScript SDK for Kimi Code

Part of the Kimi Code monorepo.

See the main repository for documentation, issues, and contribution guidelines.

License

MIT