@coda-console/kimi 1.8.0 → 1.8.1

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Kimi Code Agent:Coda 的入口在运行机的 kimi acp 与 Coda 之间转发,读 Kimi 的会话文件报出后台命令与子 Agent;资源页的「Kimi」显示账号与额度,可从 Coda 安装和登录。
4
4
 
5
- **审批模式**:ACP 的模式 ID 不变(`default`、`plan`、`auto`、`yolo`),清单 `modes` 是 `manual: "default"`、`auto: "yolo"`、`full: "auto"`、`safe: ["plan"]`、`default: "manual"`。Kimi 2.1.1 里 `auto` 的放行判定早于敏感文件与 `.git` 检查,`yolo` 在其之后、仍可能询问,所以实际 `auto` 比 `yolo` 更宽松:「自动审批」对应 `yolo`、「全部放行」对应 `auto`,短名同样对调(`yolo` →「自动审批」,`auto` →「全部放行」)。
5
+ **审批模式**:ACP 的模式 ID 不变(`default`、`plan`、`auto`、`yolo`),清单 `modes` 是 `manual: "default"`、`auto: "auto"`、`full: "yolo"`、`safe: ["plan"]`、`default: "manual"`。映射按 ACP 的描述修正:`auto` 是「Auto-approve safe operations」(自动批准安全操作),`yolo` 是「Auto-approve everything」(自动批准全部);短名与之一致(`auto` →「自动审批」,`yolo` →「全部放行」)。这是按 ACP 描述的修正,没有对 Kimi 2.1.1 两种模式的实际工具审批行为做实测,不把它当作已验证的事实。
6
6
 
7
7
  不声明 `systemPrompt`;会话指令由 Coda 后端在新会话第一次非斜杠命令的用户输入前送入单独的文本块,恢复会话不再送,插件不用处理。
8
8
 
package/agent/display.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // Compact labels belong to the adapter. Keep native IDs, full names, groups and all unrelated metadata intact.
2
- const modes = { default: '审批', plan: '规划', yolo: '自动审批', auto: '全部放行' };
2
+ const modes = { default: '审批', plan: '规划', yolo: '全部放行', auto: '自动审批' };
3
3
  const label = (value, category, id = value.value ?? value.id) => {
4
4
  const shortName = category === 'mode' ? (Object.hasOwn(modes, id) ? modes[id] : undefined)
5
5
  : category === 'thought_level' ? value.name?.replace(/^Thinking /, '')
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "id": "kimi",
4
4
  "displayName": "Kimi Code",
5
5
  "description": "用 Kimi Code 跑会话",
6
- "version": "1.8.0",
6
+ "version": "1.8.1",
7
7
  "engines": {
8
8
  "coda": 38
9
9
  },
@@ -24,8 +24,8 @@
24
24
  "title": "审批模式",
25
25
  "unset": "人工审批",
26
26
  "manual": "default",
27
- "auto": "yolo",
28
- "full": "auto",
27
+ "auto": "auto",
28
+ "full": "yolo",
29
29
  "safe": ["plan"],
30
30
  "default": "manual"
31
31
  },