kimi-code/packages/node-sdk
liruifengv 649553c930 feat(agent-core-v2): multi-root workspace registry and bucket attribution
workspaces.json v2 adds optional additional_dirs (plus create-time
idempotency keys) on top of v1 entries with zero migration, and the
writer now preserves unknown fields so mixed-version round-trips only
drop what they do not know.

Workspace ids split into two namespaces: wd_ hash identities stay the
implicit channel (TUI/CLI/VSCode via createOrTouch, idempotent and
alias-folding as before), while explicit registry creates mint wm_
uuid identities that may share a root with a hash entry. Alias
resolution and list dedupe only fold wd_ spellings, delete tombstones
only the id's own wd_ alias chain, and wm_-bucket session lines no
longer feed implicit registry rebuild.

Session attribution follows the channel: SDK workspaceIdsFor is
locked to the workDir hash bucket so directory views are unchanged,
while POST /sessions with an explicit workspace_id lands in that
bucket directly. WorkspaceDirsService gains a registry source,
injecting the registry dir set minus cwd into every workspace scope
alongside local.toml and ephemeral dirs.
2026-10-22 16:57:50 +08:00
..
examples feat(oauth): switch the managed usage payload to the quota model (#3787) 2026-09-15 13:33:20 +08:00
scripts chore: remove unused kaos package and MCP kaos executor option (#4184) 2026-10-12 18:43:56 +08:00
src feat(agent-core-v2): multi-root workspace registry and bucket attribution 2026-10-22 16:57:50 +08:00
test feat(agent-core-v2): add cross-process session occupancy lock (#4246) 2026-10-20 17:21:18 +08:00
api-extractor.json chore: remove unused kaos package and MCP kaos executor option (#4184) 2026-10-12 18:43:56 +08:00
CHANGELOG.md chore: sync release/2026-10-21 (2.3.0) back to main (#4306) 2026-10-21 14:50:45 +08:00
package.json chore: sync release/2026-10-21 (2.3.0) back to main (#4306) 2026-10-21 14:50: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 chore: remove unused kaos package and MCP kaos executor option (#4184) 2026-10-12 18:43:56 +08:00
tsconfig.json refactor: remove the legacy agent-core v1 package (#3542) 2026-09-07 11:17:51 +08:00
tsdown.config.ts chore: remove unused kaos package and MCP kaos executor option (#4184) 2026-10-12 18:43:56 +08:00
vitest.config.ts feat(agent-core-v2): support api_key_env for provider credentials (#3762) 2026-09-17 22:02:53 +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