* feat(#3274): make reviewer-lane timeout configurable via timeoutConfigKey Add an optional `timeoutConfigKey` field to the reviewer lane descriptor, resolved in `resolveLanePlan` at invocation time and falling back to the frozen `timeoutFloorMs` when unset or invalid, in the same spirit as the existing `promptBudgetKey`/`modelConfigKey` fields. All 12 shipped lanes declare `review.timeouts.<slug>` on both surfaces (the descriptor and their capability.json manifest), validated by capability-validator.cjs. For the antigravity lane, the native `agy --print-timeout` flag — previously a second hardcoded literal (`540s`) independent of the outer cap — is now derived from the same resolved outer timeout in `antigravityArgv`, preserving the existing 60-second buffer relationship (ADR-2782 D6: the outer bound is declared data, the inner one is handler-owned). The antigravity default timeoutFloorMs stays at 600s per the maintainer's disposition; users raise it through the new config key instead. * docs(#3274): document review.timeouts.* and extract resolveTimeoutMs helper Address code-review findings on the timeoutConfigKey change: extract the inline timeout-resolution logic into a named, exported, directly-tested resolveTimeoutMs helper (matching the file's existing configString/ normalizeHost convention); document the new review.timeouts.* federated config keys in docs/CONFIGURATION.md, docs/reference/capability-manifest.md, and docs/how-to/ship-a-reviewer-lane.md; add the changeset fragment. * fix(#3274): resolve native antigravity timeout in resolveLanePlan, not the runner gsd-test caught two design mistakes in the prior commits: 1. SpawnPlan.argv is documented and tested as fully resolved by resolveLanePlan (model/effort/output/prompt already folded in) — leaving the antigravity '{{nativeTimeout}}' marker unresolved until the runner's antigravityArgv violated that contract and broke tests that read plan.argv directly (tests/antigravity-reviewer.test.cjs, tests/review-default-reviewers-workflow.test.cjs). Fix: '{{nativeTimeout}}' is now a fifth ARGV_PLACEHOLDER member, resolved by resolveLanePlan itself via the new nativeTimeoutToken() helper, exactly like the other four. antigravityArgv reverts to its pre-#3274 four-argument form. Also missed updating capabilities/antigravity/capability.json's invoke.args to match the descriptor, which broke the manifest/descriptor parity test. 2. tests/reviewer-config-federation.test.cjs enforces a deliberate, narrow invariant (#3691 narrows #2797): qwen, cursor, and coderabbit — the three lanes with neither a model flag nor a host — may own no config key beyond their own prompt-budget key. Adding review.timeouts.<slug> to all 12 lanes violated it. Fix: those three keep timeoutConfigKey: null and own no review.timeouts.* key, matching their existing modelConfigKey: null. The other 9 lanes are unaffected. * chore(#3274): backfill changeset PR number (pr:0 -> 4083) --------- Co-authored-by: sim <sim@local>
165 lines
5.0 KiB
JSON
165 lines
5.0 KiB
JSON
{
|
|
"id": "kimi-code",
|
|
"role": "runtime",
|
|
"version": "1.12.0",
|
|
"title": "Kimi Code CLI",
|
|
"description": "Kimi Code CLI (Moonshot AI, Node) — Agent Skills auto-discovered at ~/.kimi-code/skills; global AGENTS.md at ~/.kimi-code/AGENTS.md; native config.toml + [[hooks]] bus; three built-in subagents (coder/explore/plan), NO custom named subagents; background dispatch; tier-2 support. Distinct from Python kimi-cli (the 'kimi' capability) per ADR-1239 EoS — Kimi Code cannot dispatch named subagents so the kimi-agents YAML layout does NOT apply; persona injection rides the existing ${AGENT_SKILLS_*} workflow fallback. Install-layout, agent-install-check, and install-time decision (kimi vs kimi-code) land in follow-up PRs; this descriptor is the EoS foundation.",
|
|
"tier": "core",
|
|
"requires": [],
|
|
"engines": {
|
|
"gsd": ">=1.7.0"
|
|
},
|
|
"runtime": {
|
|
"configHome": {
|
|
"kind": "dot-home",
|
|
"name": ".kimi-code",
|
|
"env": [
|
|
"KIMI_CODE_HOME"
|
|
],
|
|
"probe": [
|
|
"~/.kimi-code"
|
|
],
|
|
"probeExists": "config.toml"
|
|
},
|
|
"localConfigDir": ".kimi-code",
|
|
"configFormat": "none",
|
|
"artifactLayout": {
|
|
"global": [
|
|
{
|
|
"kind": "skills",
|
|
"destSubpath": "skills",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": "convertClaudeCommandToKimiCodeSkill"
|
|
},
|
|
{
|
|
"kind": "agents",
|
|
"destSubpath": "agents",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": null
|
|
}
|
|
],
|
|
"local": [
|
|
{
|
|
"kind": "agents",
|
|
"destSubpath": "agents",
|
|
"prefix": "gsd-",
|
|
"nesting": "flat",
|
|
"recursive": false,
|
|
"converter": null
|
|
}
|
|
]
|
|
},
|
|
"triggerPrecedence": [
|
|
"skills",
|
|
"commands"
|
|
],
|
|
"commandStyle": "slash-hyphen",
|
|
"hooksSurface": "kimi-hooks-toml",
|
|
"hookEvents": "claude",
|
|
"sandboxTier": "none",
|
|
"supportTier": 2,
|
|
"installSurface": "profile-marker-only",
|
|
"writesSharedSettings": false,
|
|
"permissionWriter": null,
|
|
"extendedHookEvents": [
|
|
"SubagentStop",
|
|
"Stop",
|
|
"PreCompact",
|
|
"SubagentStart"
|
|
],
|
|
"hostIntegration": {
|
|
"embeddingMode": "declarative",
|
|
"commandSurface": "slash-file",
|
|
"dispatch": {
|
|
"namedDispatch": false,
|
|
"nested": true,
|
|
"maxDepth": "undocumented",
|
|
"background": true,
|
|
"subagentToolkit": "built-in-only",
|
|
"backgroundDispatch": true,
|
|
"builtInSubagents": [
|
|
"coder",
|
|
"explore",
|
|
"plan"
|
|
],
|
|
"isolation": "orchestrator-worktree"
|
|
},
|
|
"modelMode": "passive",
|
|
"hookBus": "host",
|
|
"stateIO": "filesystem",
|
|
"transport": "mcp",
|
|
"runtime": "node"
|
|
},
|
|
"orchestratorExec": {
|
|
"command": "kimi",
|
|
"args": [],
|
|
"cwdFlag": null,
|
|
"promptFlag": "--prompt"
|
|
},
|
|
"hostBehaviors": {
|
|
"reapplyCommand": "/skill:gsd-update --reapply",
|
|
"localInstallDeferred": true,
|
|
"verificationStyle": "kimi-code",
|
|
"agentManifestStyle": "none",
|
|
"doneBannerStyle": "kimi-code",
|
|
"skipSharedHooksInstall": true,
|
|
"namedSubagentsSupported": false
|
|
}
|
|
},
|
|
"reviewer": {
|
|
"slug": "kimi-code",
|
|
"flags": [
|
|
"--kimi-code"
|
|
],
|
|
"transport": "spawn",
|
|
"probe": {
|
|
"kind": "command-capability",
|
|
"binary": "kimi",
|
|
"needle": "--output-format",
|
|
"timeoutMs": 5000
|
|
},
|
|
"invoke": {
|
|
"binary": "kimi",
|
|
"args": [
|
|
"{{model}}",
|
|
"-p",
|
|
"{{prompt}}"
|
|
],
|
|
"promptChannel": "argv-file-ref",
|
|
"outputChannel": "stdout",
|
|
"modelArg": "-m",
|
|
"effortChannel": "none"
|
|
},
|
|
"timeoutFloorMs": 900000,
|
|
"timeoutConfigKey": "review.timeouts.kimi-code",
|
|
"emptyOutput": "stub-with-stderr",
|
|
"reviewsSection": "Kimi Code",
|
|
"evidenceClass": "source-grounded",
|
|
"requiresBinaries": [],
|
|
"promptBudgetKey": "review.max_prompt_tokens_per_reviewer.kimi-code",
|
|
"modelConfigKey": "review.models.kimi-code",
|
|
"handler": null
|
|
},
|
|
"config": {
|
|
"review.models.kimi-code": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Model passed to the Kimi Code reviewer lane."
|
|
},
|
|
"review.max_prompt_tokens_per_reviewer.kimi-code": {
|
|
"type": "number",
|
|
"default": -1,
|
|
"description": "Prompt-token budget for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 is a legitimate value meaning \"do not trim this lane\", so it cannot double as \"not configured\"."
|
|
},
|
|
"review.timeouts.kimi-code": {
|
|
"type": "number",
|
|
"default": -1,
|
|
"description": "Outer wall-clock timeout override (seconds) for the Kimi Code reviewer lane. Unset is -1, a sentinel: 0 or a negative number is also treated as unset (a timeout has no legitimate zero/negative value), so no second sentinel is needed. Falls back to the lane's built-in timeoutFloorMs when unset."
|
|
}
|
|
}
|
|
}
|