kimi-plugin-cc 2.6.2 → 2.6.3
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -2
- package/README.md +8 -8
- package/agents/kimi-swarm-write.md +4 -4
- package/agents/kimi-swarm.md +5 -5
- package/commands/swarm.md +3 -3
- package/dist/cli-client.js +1 -1
- package/dist/commands/setup.js +3 -3
- package/dist/commands/swarm.js +4 -4
- package/dist/hooks/approval-policy.js +1 -1
- package/dist/hooks/config-safety.js +5 -4
- package/dist/kimi-engine.js +2 -1
- package/dist/kimi-timeouts.js +1 -1
- package/dist/mcp/operations.js +1 -1
- package/dist/swarm-activation.js +8 -8
- package/dist/swarm-policy.js +2 -1
- package/dist/version.js +1 -1
- package/docs/migration.md +1 -1
- package/docs/registry-releases.md +3 -1
- package/docs/safety.md +15 -15
- package/docs/swarm-recovery.md +3 -3
- package/docs/upstream-2.6.2-certification.md +15 -3
- package/docs/upstream-2.6.3-certification.md +88 -0
- package/package.json +2 -1
- package/plugins/kimi-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/kimi-codex/dist/cli-client.js +1 -1
- package/plugins/kimi-codex/dist/commands/setup.js +3 -3
- package/plugins/kimi-codex/dist/commands/swarm.js +4 -4
- package/plugins/kimi-codex/dist/hooks/approval-policy.js +1 -1
- package/plugins/kimi-codex/dist/hooks/config-safety.js +5 -4
- package/plugins/kimi-codex/dist/kimi-engine.js +2 -1
- package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
- package/plugins/kimi-codex/dist/mcp/operations.js +1 -1
- package/plugins/kimi-codex/dist/swarm-activation.js +8 -8
- package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
- package/plugins/kimi-codex/dist/version.js +1 -1
- package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +1 -1
- package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +1 -1
- package/plugins/kimi-dsh/dist/cli-client.js +1 -1
- package/plugins/kimi-dsh/dist/commands/setup.js +3 -3
- package/plugins/kimi-dsh/dist/commands/swarm.js +4 -4
- package/plugins/kimi-dsh/dist/hooks/approval-policy.js +1 -1
- package/plugins/kimi-dsh/dist/hooks/config-safety.js +5 -4
- package/plugins/kimi-dsh/dist/kimi-engine.js +2 -1
- package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
- package/plugins/kimi-dsh/dist/mcp/operations.js +1 -1
- package/plugins/kimi-dsh/dist/swarm-activation.js +8 -8
- package/plugins/kimi-dsh/dist/swarm-policy.js +2 -1
- package/plugins/kimi-dsh/dist/version.js +1 -1
- package/plugins/kimi-dsh/package.json +1 -1
|
@@ -29,7 +29,7 @@ Pass through: `[--budget <30m|1h>] [--cap <N>] [--max-concurrency <N>] [-m <mode
|
|
|
29
29
|
- For subscription auth, guide native Kimi `/login`; for API keys or other providers, guide native `/provider` and have the user enter secrets there. Only an explicit saved-default request calls for native `/model`. Re-list after setup; use `setup --check` for hook readiness. Swarm `-m` selects the coordinator; `[secondary_model]` can select different child models.
|
|
30
30
|
- Require both many disjoint write targets and explicit parallel fan-out intent.
|
|
31
31
|
- Keep `--max-concurrency` conservative, normally 1, unless the user explicitly asks to widen it.
|
|
32
|
-
- On exact Kimi Code 2.6.2, the default concurrency 1 runs a single worker in the throwaway worktree. Explicit concurrency 2 or higher uses bounded waves; every mode returns a patch for review.
|
|
32
|
+
- On exact Kimi Code 2.6.2/2.6.3, the default concurrency 1 runs a single worker in the throwaway worktree. Explicit concurrency 2 or higher uses bounded waves; every mode returns a patch for review.
|
|
33
33
|
- Parallel Kimi workers cannot background shell commands; native foreground Bash has a 60-second default and 300-second maximum timeout. Choose concurrency 1 for longer tests. Owned process cleanup must finish before patch capture; failed verification retains the worktree instead.
|
|
34
34
|
- The runtime rejects `--background`, but detaching your own shell call is expected: a fan-out routinely outlives a foreground timeout, and the run is patch-only and worktree-confined. Keep `--budget` and `--max-concurrency` finite. To stop a run, use `companion.sh cancel` with NO id — it targets the latest running job for the repo, and no UUID crosses you or the user (a detached run prints nothing at launch; the id first arrives with the final report). Prefer that over an interrupt: an interrupt gives the companion only ~1.35s before SIGKILL, less than its teardown plus `git diff --binary` patch capture, so interrupting can lose the patch.
|
|
35
35
|
- If the companion reports SWARM_HOOK_NOT_INSTALLED, tell the user to run Claude Code /kimi:setup or Codex $kimi-setup, then retry.
|
|
@@ -966,7 +966,7 @@ function buildArgs(opts) {
|
|
|
966
966
|
? opts.env.KIMI_PLUGIN_CC_SMOKE_V2_CANDIDATE
|
|
967
967
|
: undefined;
|
|
968
968
|
if (opts.resumeSessionId === undefined &&
|
|
969
|
-
["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
|
|
969
|
+
["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
|
|
970
970
|
args.push("--environment", "local");
|
|
971
971
|
}
|
|
972
972
|
if (opts.resumeSessionId !== undefined) {
|
|
@@ -977,12 +977,12 @@ async function collectKimiVersionWarnings(env, warnings) {
|
|
|
977
977
|
warnings.push(formatVersionOutOfRangeWarning(probe, KIMI_PLUGIN_CC_VERSION, NATIVE_V2_ANY_OPERATION_VERSIONS));
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
if (probe.version === "2.6.2") {
|
|
981
|
-
warnings.push(
|
|
980
|
+
if (probe.version === "2.6.2" || probe.version === "2.6.3") {
|
|
981
|
+
warnings.push(`NOTE: kimi-code ${probe.version} is certified for all operations. Swarm uses bounded waves with concurrency 2 or more, and one direct worker at concurrency 1. The finite job budget stops the whole run.`);
|
|
982
982
|
return;
|
|
983
983
|
}
|
|
984
984
|
if (NATIVE_V2_NON_SWARM_VERSIONS.includes(probe.version)) {
|
|
985
|
-
warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2 for this plugin's certified bounded waves and single-worker path.`);
|
|
985
|
+
warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2 or 2.6.3 for this plugin's certified bounded waves and single-worker path.`);
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
/**
|
|
@@ -24,7 +24,7 @@ import { buildKimiSessionTitle, syncKimiSessionTitle } from "../session-title.js
|
|
|
24
24
|
import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
|
|
25
25
|
// /kimi:swarm — parallel fan-out, read-only by default and runtime-foreground-only.
|
|
26
26
|
// A finite wall-clock budget bounds the whole run. --cap is a SOFT total-count
|
|
27
|
-
// prompt hint. Exact native-v2 2.6.2 bounds admitted waves and prevents native
|
|
27
|
+
// prompt hint. Exact native-v2 2.6.2/2.6.3 bounds admitted waves and prevents native
|
|
28
28
|
// child timeouts from returning a continuing coordinator before children stop.
|
|
29
29
|
// Concurrency 1 uses a direct worker without native fan-out. Older versions keep
|
|
30
30
|
// their normal-launch setting and inherited recovery limitation. Read/write
|
|
@@ -33,7 +33,7 @@ import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
|
|
|
33
33
|
// confinement on the coordinator and every subagent. Write mode requires
|
|
34
34
|
// kimi-code 0.18.0+. Exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2,
|
|
35
35
|
// and certified 2.5.3 activate a same-job session through a bounded loopback
|
|
36
|
-
// web lifecycle, then resume it through the normal print path. 2.6.2 parallel
|
|
36
|
+
// web lifecycle, then resume it through the normal print path. 2.6.2/2.6.3 parallel
|
|
37
37
|
// waves and candidate-only 2.6.0 use that lifecycle too. The per-operation certification
|
|
38
38
|
// table controls whether each exact version is reachable in production.
|
|
39
39
|
const SWARM_SUMMARY_MAX = 120;
|
|
@@ -41,7 +41,7 @@ const SWARM_AGENT_PROFILE = "<swarm>";
|
|
|
41
41
|
const SWARM_WRITE_AGENT_PROFILE = "<swarm-write>";
|
|
42
42
|
/**
|
|
43
43
|
* Default concurrency setting when the user passes no `--max-concurrency`.
|
|
44
|
-
* Exact native-v2 2.6.2 also enforces this as the admitted wave size. The plugin exports
|
|
44
|
+
* Exact native-v2 2.6.2/2.6.3 also enforces this as the admitted wave size. The plugin exports
|
|
45
45
|
* KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY; older read-only swarms ignore it and
|
|
46
46
|
* retain only the wall-clock hard bound. Rate-limit recovery can exceed it on
|
|
47
47
|
* older reviewed sources; their setting is not an unconditional peak guarantee.
|
|
@@ -57,7 +57,7 @@ export function resolveSwarmMaxConcurrency(requested) {
|
|
|
57
57
|
return requested ?? SWARM_DEFAULT_MAX_CONCURRENCY;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2
|
|
60
|
+
* Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2/2.6.3
|
|
61
61
|
* runs one direct worker; older versions serialize normal child launches but
|
|
62
62
|
* retain the rate-limit recovery overrun. Disjoint-target partitioning remains
|
|
63
63
|
* prompt-only when parallel workers are explicitly requested.
|
|
@@ -146,7 +146,7 @@ export function decideHookOutcomePure(input, ctx) {
|
|
|
146
146
|
// AgentSwarm are allowed and the singular Agent stays denied. This adds
|
|
147
147
|
// no direct tool-write permission within the repository/Git trust
|
|
148
148
|
// boundary: read-only Git context commands still trust repository Git
|
|
149
|
-
// configuration and can execute configured helpers. Exact 2.6.2 waves
|
|
149
|
+
// configuration and can execute configured helpers. Exact 2.6.2/2.6.3 waves
|
|
150
150
|
// pass the admission guard above; fresh children cannot activate swarm
|
|
151
151
|
// mode. Older paths retain their inherited scheduler limitations.
|
|
152
152
|
if (READ_ONLY_TOOLS.has(toolName) || toolName === AGENT_SWARM_TOOL) {
|
|
@@ -596,9 +596,9 @@ function validateVersionSensitiveEvents(events, version) {
|
|
|
596
596
|
// 2.0.2 (9d07f634), 2.1.0 (52437299), 2.1.1 (f67e6398), 2.2.0 (472192c3),
|
|
597
597
|
// 2.3.0 (b5e28fd6), 2.3.1 (684bae9e), 2.3.2 (b8dd3a13), 2.3.3 (ec495f0c),
|
|
598
598
|
// 2.4.0 (f26e4d91), 2.4.1 (2c73f3f5), 2.5.0 (41c34143), 2.5.1 (1b02030d),
|
|
599
|
-
// 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b),
|
|
600
|
-
// (6a8493df): the additive events and HookDefSchema are
|
|
601
|
-
// schema acceptance does not certify swarm operations.
|
|
599
|
+
// 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), 2.6.2
|
|
600
|
+
// (6a8493df), and 2.6.3 (b0de2fbd): the additive events and HookDefSchema are
|
|
601
|
+
// unchanged. Exact 2.6.x schema acceptance does not certify swarm operations.
|
|
602
602
|
// Require the full version string AND matching components; no inferred 2.x compatibility.
|
|
603
603
|
if (version.major === 2 && ((version.minor === 0 && ((version.version === "2.0.0" && version.patch === 0) ||
|
|
604
604
|
(version.version === "2.0.1" && version.patch === 1) ||
|
|
@@ -617,7 +617,8 @@ function validateVersionSensitiveEvents(events, version) {
|
|
|
617
617
|
(version.version === "2.5.2" && version.patch === 2) ||
|
|
618
618
|
(version.version === "2.5.3" && version.patch === 3))) ||
|
|
619
619
|
(version.minor === 6 && ((version.version === "2.6.0" && version.patch === 0) ||
|
|
620
|
-
(version.version === "2.6.2" && version.patch === 2)
|
|
620
|
+
(version.version === "2.6.2" && version.patch === 2) ||
|
|
621
|
+
(version.version === "2.6.3" && version.patch === 3))))) {
|
|
621
622
|
return { valid: true };
|
|
622
623
|
}
|
|
623
624
|
if (version.major !== 0) {
|
|
@@ -50,6 +50,7 @@ export const NATIVE_V2_CERTIFIED_VERSIONS = Object.freeze([
|
|
|
50
50
|
"2.5.2",
|
|
51
51
|
"2.5.3",
|
|
52
52
|
"2.6.2",
|
|
53
|
+
"2.6.3",
|
|
53
54
|
]);
|
|
54
55
|
/**
|
|
55
56
|
* Exact releases certified only for review, challenge, ask, rescue, review_gate
|
|
@@ -569,7 +570,7 @@ function nativeV2NotCertified(operationKind, version) {
|
|
|
569
570
|
if (normalized !== undefined &&
|
|
570
571
|
NATIVE_V2_NON_SWARM_VERSIONS.includes(normalized) &&
|
|
571
572
|
(operationKind === "swarm" || operationKind === "swarm-write")) {
|
|
572
|
-
return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
|
|
573
|
+
return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2 or 2.6.3 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
|
|
573
574
|
details: {
|
|
574
575
|
refusal_kind: "v2-swarm-not-certified",
|
|
575
576
|
certification_scope: "non-swarm",
|
|
@@ -23,7 +23,7 @@ export const KIMI_PURSUE_DEFAULT_BUDGET_MS = 2_700_000; // 45 minutes
|
|
|
23
23
|
* Swarm (read-only parallel fan-out) DEFAULT wall-clock ceiling when the user
|
|
24
24
|
* passes no `--budget`. Read-only swarm opens no write surface, so the only new
|
|
25
25
|
* risk is cost/runaway from repeated model work. This AbortController bounds
|
|
26
|
-
* the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2 also
|
|
26
|
+
* the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2/2.6.3 also
|
|
27
27
|
* bounds wave cardinality and prevents child timeouts from overlapping waves;
|
|
28
28
|
* a requested concurrency of one runs a direct worker. Sized like the single-turn
|
|
29
29
|
* review budget — a swarm fans review work out in parallel within one process,
|
|
@@ -65,7 +65,7 @@ const CAP_PROPERTY = {
|
|
|
65
65
|
const MAX_CONCURRENCY_PROPERTY = {
|
|
66
66
|
type: "integer",
|
|
67
67
|
minimum: 1,
|
|
68
|
-
description: "Concurrent worker limit on exact Kimi Code 2.6.2: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
|
|
68
|
+
description: "Concurrent worker limit on exact Kimi Code 2.6.2/2.6.3: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
|
|
69
69
|
};
|
|
70
70
|
const START_RESULT_GUIDANCE = "Task-capable clients receive an MCP task. Other clients receive a job ID immediately after launch; use kimi_job_status and kimi_job_result until terminal, and kimi_job_cancel to stop. Do not present a launch handle as the finished answer.";
|
|
71
71
|
function schema(properties, required = []) {
|
|
@@ -13,7 +13,7 @@ import { usesBoundedSwarmPolicy } from "./swarm-policy.js";
|
|
|
13
13
|
import { installBoundedSwarmToolPolicy } from "./swarm-tool-policy.js";
|
|
14
14
|
import { collectDescendantIdentities, collectProcessGroupsIdentities, probeProcessIdentity, revalidateProcessIdentities, waitForProcessTreeExit, } from "./process-tree.js";
|
|
15
15
|
// These exact 2.6.x activation entries support candidate integration; production scope is per operation.
|
|
16
|
-
const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"];
|
|
16
|
+
const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"];
|
|
17
17
|
const READY_TIMEOUT_MS = 10_000;
|
|
18
18
|
const REST_TIMEOUT_MS = 5_000;
|
|
19
19
|
// Exact 2.4.0 can take longer than 5s to drain session/workspace lifecycle work.
|
|
@@ -343,7 +343,7 @@ async function resolveProfileModel(web, options, failureCode) {
|
|
|
343
343
|
}
|
|
344
344
|
async function createSession(web, options, expectedVersion, failureCode) {
|
|
345
345
|
const request = { metadata: { cwd: options.cwd } };
|
|
346
|
-
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)) {
|
|
346
|
+
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)) {
|
|
347
347
|
request.environment_id = "local";
|
|
348
348
|
request.environment_cwd = options.cwd;
|
|
349
349
|
}
|
|
@@ -354,7 +354,7 @@ async function createSession(web, options, expectedVersion, failureCode) {
|
|
|
354
354
|
return { sessionId: data.id, workspaceId: data.workspace_id };
|
|
355
355
|
}
|
|
356
356
|
async function verifyLocalEnvironment(web, identity, expectedCwd, expectedVersion, signal, failureCode) {
|
|
357
|
-
if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion))
|
|
357
|
+
if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion))
|
|
358
358
|
return;
|
|
359
359
|
const data = await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/environment`, undefined, signal, failureCode);
|
|
360
360
|
if (!isRecord(data)) {
|
|
@@ -374,10 +374,10 @@ async function postSwarmProfile(web, identity, active, model, signal, failureCod
|
|
|
374
374
|
await restData(web, "POST", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/profile`, { agent_config: agentConfig }, signal, failureCode);
|
|
375
375
|
}
|
|
376
376
|
async function verifySwarmStatus(web, identity, active, model, expectedVersion, signal, failureCode) {
|
|
377
|
-
const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)
|
|
377
|
+
const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)
|
|
378
378
|
? await readWebSocketAgentState(web, identity.sessionId, expectedVersion, signal, failureCode)
|
|
379
379
|
: await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/status`, undefined, signal, failureCode);
|
|
380
|
-
const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? "agent state" : "/status";
|
|
380
|
+
const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? "agent state" : "/status";
|
|
381
381
|
if (!isRecord(data)) {
|
|
382
382
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} returned an invalid payload.`);
|
|
383
383
|
}
|
|
@@ -387,10 +387,10 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
|
|
|
387
387
|
if (data.plan_mode !== false) {
|
|
388
388
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm plan mode is off.`);
|
|
389
389
|
}
|
|
390
|
-
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) && data.tower_mode !== false) {
|
|
390
|
+
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) && data.tower_mode !== false) {
|
|
391
391
|
throw failure(failureCode, "swarm-activation.status", "Kimi web agent state did not confirm tower mode is off.");
|
|
392
392
|
}
|
|
393
|
-
const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? data.permission_mode : data.permission;
|
|
393
|
+
const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? data.permission_mode : data.permission;
|
|
394
394
|
if (permission !== "auto") {
|
|
395
395
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm auto permission mode.`);
|
|
396
396
|
}
|
|
@@ -406,7 +406,7 @@ async function readWebSocketAgentState(web, sessionId, expectedVersion, signal,
|
|
|
406
406
|
return await new Promise((resolve, reject) => {
|
|
407
407
|
let socket;
|
|
408
408
|
const bearerProtocol = `kimi-code.bearer.${web.token}`;
|
|
409
|
-
const legacyControl = !["2.6.0", "2.6.2"].includes(expectedVersion);
|
|
409
|
+
const legacyControl = !["2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion);
|
|
410
410
|
const helloId = `swarm-activation-hello-${randomUUID()}`;
|
|
411
411
|
const subscribeId = `swarm-activation-subscribe-${randomUUID()}`;
|
|
412
412
|
try {
|
|
@@ -6,7 +6,8 @@ export const BOUNDED_SWARM_POLICY = "bounded-waves/1";
|
|
|
6
6
|
// terminal whole-job cancellation can interrupt a wave. Environment 0 is ignored.
|
|
7
7
|
export const SWARM_CHILD_TIMEOUT_MS = 2_147_483_647;
|
|
8
8
|
export function usesBoundedSwarmPolicy(plan) {
|
|
9
|
-
return plan.intendedEngine === "native-v2" &&
|
|
9
|
+
return plan.intendedEngine === "native-v2" &&
|
|
10
|
+
(plan.kimiVersion === "2.6.2" || plan.kimiVersion === "2.6.3") &&
|
|
10
11
|
(plan.operationKind === "swarm" || plan.operationKind === "swarm-write");
|
|
11
12
|
}
|
|
12
13
|
function plainObject(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kimi-plugin-cc",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "Kimi Code subagents for DeepSeek Harness: all seven ask, review, challenge, rescue, pursue, swarm, and swarm-write operations through the kimi-plugin-cc companion runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/dsh/index.js",
|