dsh-subagent-kimi 0.1.2 → 0.1.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/README.md CHANGED
@@ -58,7 +58,7 @@ To mount the provider and tool manually, use:
58
58
  config:
59
59
  providerName: kimi
60
60
  model: kimi-code/kimi-for-coding # optional
61
- permissionMode: reject
61
+ permissionMode: yolo
62
62
  env: {}
63
63
  disposeEofGraceMs: 6000
64
64
  disposeGraceMs: 3000
@@ -69,7 +69,7 @@ To mount the provider and tool manually, use:
69
69
  | `providerName` | `kimi` | Non-empty registry name on `ctx.subagents`; each mounted instance needs a unique name. |
70
70
  | `model` | Kimi native settings | Optional model alias set through ACP `session/set_config_option` after session creation. No alias discovery or rewriting is performed. |
71
71
  | `env` | `{}` | Explicit child environment layered over the subprocess service's credential-scrubbed parent environment. |
72
- | `permissionMode` | `reject` | ACP session mode and unattended permission behavior; see below. |
72
+ | `permissionMode` | `yolo` | ACP session mode and unattended permission behavior; see below. |
73
73
  | `disposeEofGraceMs` | `6000` | Time in milliseconds allowed for cooperative shutdown after stdin EOF before termination escalation. |
74
74
  | `disposeGraceMs` | `3000` | Process-observation and managed termination grace in milliseconds. Both grace values must be positive, finite, and within Node's timer limit. |
75
75
 
@@ -80,7 +80,7 @@ Credential-shaped ambient variables are scrubbed by the Harness subprocess servi
80
80
  | Value | ACP session mode | ACP permission requests |
81
81
  | --- | --- | --- |
82
82
  | `reject` | `default`; manual approvals | Cancel every request |
83
- | `yolo` | `yolo`; routine edits and commands run under Kimi's native yolo policy | Cancel remaining requests, including risky actions and questions |
83
+ | `yolo` **(default)** | `yolo`; routine edits and commands run under Kimi's native yolo policy | Cancel remaining requests, including risky actions and questions |
84
84
  | `auto` | `auto`; Kimi's native automatic policy | Select the first `allow_once` or `allow_always` option if a request still arrives |
85
85
 
86
86
  No mode creates a human interaction channel in the parent Harness session. `auto` can modify files and execute commands without human approval; use it only in trusted, appropriately isolated workspaces.
package/README.zh.md CHANGED
@@ -58,7 +58,7 @@ Bundle 元数据会加载 `cordis.patch.yml`、注册 `kimi` provider,并将 `
58
58
  config:
59
59
  providerName: kimi
60
60
  model: kimi-code/kimi-for-coding # 可选
61
- permissionMode: reject
61
+ permissionMode: yolo
62
62
  env: {}
63
63
  disposeEofGraceMs: 6000
64
64
  disposeGraceMs: 3000
@@ -69,7 +69,7 @@ Bundle 元数据会加载 `cordis.patch.yml`、注册 `kimi` provider,并将 `
69
69
  | `providerName` | `kimi` | 在 `ctx.subagents` 中注册的非空名称;每个挂载实例必须使用不同名称。 |
70
70
  | `model` | Kimi 原生设置 | 可选模型别名,在会话创建后通过 ACP `session/set_config_option` 设置,不发现或改写别名。 |
71
71
  | `env` | `{}` | 显式子进程环境,叠加在 subprocess 服务清除凭据后的父环境之上。 |
72
- | `permissionMode` | `reject` | ACP 会话模式和无人值守权限处理方式,见下表。 |
72
+ | `permissionMode` | `yolo` | ACP 会话模式和无人值守权限处理方式,见下表。 |
73
73
  | `disposeEofGraceMs` | `6000` | stdin EOF 后等待协作式退出的毫秒数,超时才升级终止。 |
74
74
  | `disposeGraceMs` | `3000` | 进程状态观察和托管终止的毫秒宽限期。两个值都必须为有限正数,且不能超过 Node 计时器上限。 |
75
75
 
@@ -79,8 +79,8 @@ Harness subprocess 服务会清除父环境中形似凭据的变量;`env` 中
79
79
 
80
80
  | 值 | ACP 会话模式 | ACP 权限请求 |
81
81
  | --- | --- | --- |
82
+ | `yolo` **(默认)** | `yolo`,常规编辑和命令按 Kimi 原生 yolo 策略执行 | 取消剩余请求,包括高风险操作和提问 |
82
83
  | `reject` | `default`,人工批准模式 | 取消所有请求 |
83
- | `yolo` | `yolo`,常规编辑和命令按 Kimi 原生 yolo 策略执行 | 取消剩余请求,包括高风险操作和提问 |
84
84
  | `auto` | `auto`,Kimi 原生自动策略 | 如果仍收到请求,选择首个 `allow_once` 或 `allow_always` 选项 |
85
85
 
86
86
  所有模式都不会在父 Harness 会话中建立人工交互通道。`auto` 可以在无人批准的情况下修改文件和执行命令,只应在可信且适当隔离的工作目录中使用。
package/lib/run.js CHANGED
@@ -8,7 +8,7 @@ export const KIMI_PERMISSION_MODES = [
8
8
  'yolo',
9
9
  'auto',
10
10
  ];
11
- export const DEFAULT_KIMI_PERMISSION_MODE = 'reject';
11
+ export const DEFAULT_KIMI_PERMISSION_MODE = 'yolo';
12
12
  export const DEFAULT_DISPOSE_EOF_GRACE_MS = 6_000;
13
13
  export const DEFAULT_DISPOSE_GRACE_MS = 3_000;
14
14
  const ACP_TOOL_KINDS = new Set([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-subagent-kimi",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "One-shot Kimi Code CLI subagent provider for DeepSeek Harness over ACP",
5
5
  "keywords": [
6
6
  "deepseek-harness",