mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-29 19:15:08 +00:00
* feat(node-sdk): add agent-core-v2 backed SDKRpcClientV2 harness - add SDKRpcClientV2 wiring the v2 engine (DI x Scope) in-process via the klient memory transport, with getExperimentalFeatures migrated to klient.global.flags.list() and unmigrated methods failing fast - export createKimiHarnessV2 / SDKRpcClientV2 from the SDK index - wire the experimental v2 gate into the CLI interactive shell (run-shell) - extend build-dts to bundle agent-core-v2 and klient declarations * feat(node-sdk): migrate listWorkspaceSkills to agent-core-v2 - add engineAccessor escape hatch exposing the in-process engine's app-scope service accessor for SDK methods the klient facade does not cover yet - implement listWorkspaceSkills via ISkillDiscovery plus the v2 user/project root helpers and BUILTIN_SKILLS (plugin skills and skillDirs still gaps) - add a v1-v2 parity test pinning identical return values per migrated method, with understood gaps listed explicitly in KNOWN_DIFFS * feat(node-sdk): migrate the SDK method surface to agent-core-v2 - implement the remaining SDKRpcClientBase methods on SDKRpcClientV2, routed through the klient facade where covered, the engineAccessor escape hatch where the engine has a service, or SDK-side rebuilds on v2 primitives where only primitives exist (config shape mapping, global mcp.json store, MCP OAuth flows, importContext, session warnings, print background policy) - translate the v2 event stream into the v1 Event union and bridge approval/question/user_tool interactions per live session - rebuild resume replay by folding the v2 wire.jsonl through the v1 agent restore pipeline, so resumed sessions render history again - keep deleteSession as not_implemented; the v2 engine has no delete capability - extend the v1-v2 parity suite to every migrated method, pinning understood engine differences in KNOWN_DIFFS - add the dev:cli:v2 root script to launch the TUI on the v2 engine * fix(node-sdk): await the v2 undo and compaction-cancel agent calls * test(cli): spread the real oauth module in the telemetry test mock * feat(node-sdk): forward v2 engine telemetry to the host telemetry client * feat(cli): gate the v2 TUI route behind a dedicated KIMI_CODE_TUI_V2 switch * fix(node-sdk): honor skillDirs on the agent-core-v2 SDK route The v2 SDK client accepted KimiHarnessOptions.skillDirs (the CLI's --skills-dir) but never seeded it into the engine, so explicit skill dirs were silently dropped on the v2 TUI route and the Skill tool could not find skills from them. Seed skillCatalogRuntimeOptions at bootstrap and let listWorkspaceSkills resolve the explicit dirs as the user source, matching the engine's session skill catalog. * refactor(cli): gate the v2 TUI route behind the master experimental flag again Drop the dedicated KIMI_CODE_TUI_V2 switch: the TUI v2 harness route is gated by KIMI_CODE_EXPERIMENTAL_FLAG, the same master switch as the kimi -p v2 route. The gate tests are kept with updated assertions, and dev:cli:v2 sets the master flag again.
67 lines
2.8 KiB
JSON
67 lines
2.8 KiB
JSON
{
|
|
"name": "@moonshot-ai/monorepo",
|
|
"version": "0.1.1",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"postinstall": "node scripts/fix-node-pty-perms.mjs",
|
|
"build": "pnpm -r run build",
|
|
"build:packages": "pnpm -r --filter './packages/*' run build",
|
|
"dev:cli": "pnpm -C apps/kimi-code run dev",
|
|
"dev:cli:v2": "KIMI_CODE_EXPERIMENTAL_FLAG=1 pnpm -C apps/kimi-code run dev",
|
|
"dev:cli:marketplace": "KIMI_CODE_DEV_MARKETPLACE_URL=https://code.kimi.com/kimi-code/plugins/marketplace.json pnpm -C apps/kimi-code run dev",
|
|
"dev:web": "pnpm -C apps/kimi-web run dev",
|
|
"dev:server": "pnpm -C apps/kimi-code run dev:server",
|
|
"dev:kap-server": "pnpm -C apps/kimi-code run dev:kap-server",
|
|
"dev:v2": "pnpm -C apps/kimi-code run dev:kap-server:multi",
|
|
"build:plugin-marketplace": "pnpm -C apps/kimi-code run build:plugin-marketplace",
|
|
"vis": "pnpm -C apps/vis run dev",
|
|
"dev:docs": "pnpm -C docs install --ignore-workspace && pnpm -C docs run dev",
|
|
"typecheck": "pnpm run build:packages && pnpm -r --filter './packages/*' run typecheck && pnpm --filter @moonshot-ai/kimi-code run typecheck && pnpm --filter kimi-code run typecheck && pnpm --filter @moonshot-ai/kimi-web run typecheck && pnpm --filter @moonshot-ai/vis-server run typecheck && pnpm --filter @moonshot-ai/vis-web run typecheck",
|
|
"lint": "oxlint --type-aware",
|
|
"lint:fix": "pnpm run lint --fix",
|
|
"lint:pkg": "pnpm --filter @moonshot-ai/kimi-code exec publint && npm_config_cache=${TMPDIR:-/tmp}/kimi-code-npm-cache pnpm --filter @moonshot-ai/kimi-code exec attw --pack . --profile node16",
|
|
"sherif": "sherif",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"clean": "pnpm -r run clean",
|
|
"changeset": "changeset",
|
|
"version": "changeset version",
|
|
"version:release": "changeset version",
|
|
"publish": "pnpm run typecheck && pnpm run lint && pnpm run sherif && pnpm run test && pnpm run build && pnpm run lint:pkg && changeset publish",
|
|
"prepare": "simple-git-hooks"
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "0.18.2",
|
|
"@changesets/changelog-github": "0.7.0",
|
|
"@changesets/cli": "2.30.0",
|
|
"@microsoft/api-extractor": "7.58.7",
|
|
"@types/node": "^22.15.3",
|
|
"@vitest/coverage-v8": "4.1.4",
|
|
"lint-staged": "16.4.0",
|
|
"oxlint": "1.59.0",
|
|
"oxlint-tsgolint": "0.20.0",
|
|
"pkg-pr-new": "0.0.75",
|
|
"publint": "0.3.18",
|
|
"sherif": "1.11.1",
|
|
"simple-git-hooks": "2.13.1",
|
|
"tsdown": "0.22.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "6.0.2",
|
|
"vitest": "4.1.4"
|
|
},
|
|
"simple-git-hooks": {
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}": [
|
|
"oxlint --fix --quiet",
|
|
"oxlint --type-aware --quiet"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">=24.15.0"
|
|
},
|
|
"packageManager": "pnpm@10.33.0"
|
|
}
|