kimi-code/packages/node-sdk
qer 3503f7e58c feat(cli): add --default-workspace and expose the default workspace in the SDK
Add kimi --default-workspace to work in the shared default workspace instead
of the current directory. Both the interactive shell and print mode resolve
the folder through the engine before the session starts and change into it,
keeping PWD in sync; when the folder cannot be used, startup fails with its
path and reason. Resume hints become kimi --default-workspace -r <id> for
such sessions.

The session picker labels sessions in the default workspace as "Default
workspace" and copies a resume command without a cd for them. kimi doctor
reports the location and whether it can be used. The stty lookup excludes
both the launch directory and the new working directory, so a binary
planted in either is never executed.

The SDK gains KimiHarness.ensureDefaultWorkspace(), getDefaultWorkspacePath()
and getDefaultWorkspaceStatus(), maps default_workspace.unavailable to a
KimiError, and exports workspaceRootKey and DEFAULT_WORKSPACE_PROBLEM_MESSAGES.
2026-10-15 19:18:45 +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(cli): add --default-workspace and expose the default workspace in the SDK 2026-10-15 19:18:45 +08:00
test feat(cli): add --default-workspace and expose the default workspace in the SDK 2026-10-15 19:18:45 +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 2.2.0 back to main (#4222) 2026-10-15 00:14:11 +08:00
package.json chore: sync release 2.2.0 back to main (#4222) 2026-10-15 00:14:11 +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