@ycodium-ai/agent-kimi 0.2.4477 → 0.2.4688
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +15 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ customModels } }`; launch arguments (`acp`) and the account-directory variable (
|
|
|
11
11
|
context usage is read from the CLI's own session log.
|
|
12
12
|
- Models come from the read-only `kimi provider list --json` (`src/kimiModels.ts`); the version
|
|
13
13
|
from `kimi --version`. No probe session is created.
|
|
14
|
-
- Sign-in is `kimi login` (device-code flow), upgrade is `kimi upgrade`.
|
|
14
|
+
- Sign-in is `kimi login` (device-code flow), upgrade is `kimi upgrade --yes`.
|
|
15
15
|
- Runtime modes map to native permissions: auto and auto-accept-edits → yolo, full-access → auto, approval-required → default.
|
|
16
16
|
The auto-accept-edits mapping is an approximation and may allow more than edits. Kimi has no
|
|
17
17
|
edits-only automatic native mode: default asks for approvals and plan does not execute tools.
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
9
9
|
|
|
10
10
|
// ../../packages/plugin-api/src/version.ts
|
|
11
|
-
var PLUGIN_API_VERSION =
|
|
11
|
+
var PLUGIN_API_VERSION = 128;
|
|
12
12
|
|
|
13
13
|
// src/index.ts
|
|
14
14
|
import * as NodeOS6 from "node:os";
|
|
@@ -44,13 +44,15 @@ var KIMI_CARD = {
|
|
|
44
44
|
deviceCodeSignInArgs: ["login"],
|
|
45
45
|
npmPackage: "@moonshot-ai/kimi-code",
|
|
46
46
|
homebrewFormula: "",
|
|
47
|
-
// 是 `upgrade` 不是 `update`(`update`
|
|
48
|
-
|
|
47
|
+
// 是 `upgrade` 不是 `update`(`update` 只是它的别名)。不带 `--yes` 时,输出不是终端
|
|
48
|
+
// 就只打印手动升级提示、照样退出 0,什么也不装。
|
|
49
|
+
selfUpdateArgs: ["upgrade", "--yes"],
|
|
49
50
|
docsUrl: "https://github.com/MoonshotAI/kimi-code",
|
|
50
51
|
setupNote: "",
|
|
51
52
|
defaultModel: "",
|
|
52
53
|
customModelIdExample: "",
|
|
53
54
|
modelSlugAliases: null,
|
|
55
|
+
mcpToolCallCeilingSeconds: 300,
|
|
54
56
|
mcpTransports: ["stdio", "http", "sse"],
|
|
55
57
|
pluginManaged: true,
|
|
56
58
|
verifiedSkills: false,
|
|
@@ -89,6 +91,7 @@ var KIMI_CARD = {
|
|
|
89
91
|
type: "string",
|
|
90
92
|
"x-ycodium-form": {
|
|
91
93
|
titleKey: "form.homePath.title",
|
|
94
|
+
machineLocal: true,
|
|
92
95
|
descriptionKey: "form.homePath.description",
|
|
93
96
|
placeholderKey: "form.homePath.placeholder"
|
|
94
97
|
}
|
|
@@ -29500,8 +29503,8 @@ function acpRuntimeModeAutoApproves(runtimeMode, toolKind, toolName, nativeMode
|
|
|
29500
29503
|
return false;
|
|
29501
29504
|
}
|
|
29502
29505
|
}
|
|
29503
|
-
function acpSessionModeToApply(requestedNativeModeId, startedModeId) {
|
|
29504
|
-
return requestedNativeModeId !== void 0 && requestedNativeModeId !== startedModeId ? requestedNativeModeId : void 0;
|
|
29506
|
+
function acpSessionModeToApply(requestedNativeModeId, startedModeId, isResuming) {
|
|
29507
|
+
return requestedNativeModeId !== void 0 && (isResuming || requestedNativeModeId !== startedModeId) ? requestedNativeModeId : void 0;
|
|
29505
29508
|
}
|
|
29506
29509
|
|
|
29507
29510
|
// src/subagents.ts
|
|
@@ -29792,6 +29795,11 @@ var createKimiInstance = (config2, host) => {
|
|
|
29792
29795
|
throwIfStartAborted(signal);
|
|
29793
29796
|
}
|
|
29794
29797
|
const env = buildSpawnEnv(recipe, recipe.homePath);
|
|
29798
|
+
const toolTimeouts = (input2.mcpServers ?? []).flatMap(
|
|
29799
|
+
(server) => server.toolTimeoutSeconds === void 0 ? [] : [server.toolTimeoutSeconds]
|
|
29800
|
+
);
|
|
29801
|
+
if (toolTimeouts.length > 0)
|
|
29802
|
+
env.KIMI_MCP_TOOL_TIMEOUT_MS = String(Math.max(...toolTimeouts) * 1e3);
|
|
29795
29803
|
const spawned = {
|
|
29796
29804
|
program: recipe.binaryPath,
|
|
29797
29805
|
args: tokenizeLaunchArgs(recipe.launchArgs),
|
|
@@ -29856,7 +29864,8 @@ var createKimiInstance = (config2, host) => {
|
|
|
29856
29864
|
const started = await raceStartAbort(executor.start(), signal);
|
|
29857
29865
|
const modeToApply = acpSessionModeToApply(
|
|
29858
29866
|
input2.nativeModeId,
|
|
29859
|
-
acpCurrentModeId(started.sessionSetupResult)
|
|
29867
|
+
acpCurrentModeId(started.sessionSetupResult),
|
|
29868
|
+
resume !== void 0
|
|
29860
29869
|
);
|
|
29861
29870
|
if (modeToApply !== void 0) {
|
|
29862
29871
|
await raceStartAbort(executor.setNativeMode(modeToApply), signal);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-kimi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4688",
|
|
4
4
|
"description": "Kimi Code executor: runs `kimi acp` over Agent Client Protocol stdio.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@types/node": "24.12.4",
|
|
22
22
|
"esbuild": "0.28.1",
|
|
23
23
|
"vite-plus": "0.2.2",
|
|
24
|
-
"ycodium-acp-executor": "0.2.4477",
|
|
25
24
|
"ycodium-executor-testing": "0.0.0",
|
|
26
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
25
|
+
"@ycodium-ai/plugin-api": "0.2.4688",
|
|
26
|
+
"ycodium-acp-executor": "0.2.4688"
|
|
27
27
|
},
|
|
28
28
|
"ycodium": {
|
|
29
29
|
"plugin": "./dist/index.js",
|