@jiezhengj/subagent-oar-agy 0.2.8 → 0.3.0
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 +45 -4
- package/docs/DETAIL.de.md +6 -0
- package/docs/DETAIL.en.md +6 -0
- package/docs/DETAIL.es.md +6 -0
- package/docs/DETAIL.fr.md +6 -0
- package/docs/DETAIL.ja.md +6 -0
- package/docs/DETAIL.pt.md +6 -0
- package/docs/DETAIL.ru.md +6 -0
- package/docs/DETAIL.zh.md +5 -1
- package/docs/INSTALL.md +7 -3
- package/package.json +6 -5
- package/provider/agy/errors.d.ts +6 -2
- package/provider/agy/errors.d.ts.map +1 -1
- package/provider/agy/errors.js +18 -0
- package/provider/agy/errors.js.map +1 -1
- package/provider/agy/spawn.d.ts +1 -1
- package/provider/agy/spawn.d.ts.map +1 -1
- package/provider/agy/spawn.js +3 -2
- package/provider/agy/spawn.js.map +1 -1
- package/provider/i18n.d.ts +10 -0
- package/provider/i18n.d.ts.map +1 -1
- package/provider/i18n.js +80 -0
- package/provider/i18n.js.map +1 -1
- package/provider/index.d.ts +10 -0
- package/provider/index.d.ts.map +1 -1
- package/provider/index.js +36 -2
- package/provider/index.js.map +1 -1
- package/provider/run.d.ts +9 -1
- package/provider/run.d.ts.map +1 -1
- package/provider/run.js +177 -43
- package/provider/run.js.map +1 -1
- package/provider/runs.d.ts +143 -0
- package/provider/runs.d.ts.map +1 -0
- package/provider/runs.js +280 -0
- package/provider/runs.js.map +1 -0
- package/tool.js +98 -2
package/README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
其他语言:[English](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.en.md) · [Deutsch](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.de.md) · [Español](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.es.md) · [Français](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.fr.md) · [日本語](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.ja.md) · [Português](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.pt.md) · [Русский](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/blob/main/README.ru.md)
|
|
4
4
|
|
|
5
|
+
## 0.3.0 新增
|
|
6
|
+
|
|
7
|
+
- 启动看门狗(默认 60 秒)与静默看门狗(默认 15 分钟):AGY 卡住时以 `startup-timeout` / `stalled` 终止进程树并只通知一次。
|
|
8
|
+
- 新控制工具 `subagent_oar_agy_control`:`status` 查询当前父会话的运行摘要,`cancel` 提交停止请求;工具名可用 `controlToolName` 改名。
|
|
9
|
+
- 有界活动历史与状态快照:每个父会话最多 50 个运行、每个运行 20 条活动、`lastText` 最多 200 字符。
|
|
10
|
+
- 安全边界:AGY 使用官方清洗后的环境变量启动;父会话诊断不含原始 stderr;本机日志脱敏。
|
|
11
|
+
|
|
5
12
|
## 安装
|
|
6
13
|
|
|
7
14
|
1. 打开 DeepSeek Harness 的插件管理(设置 → 插件)。
|
|
@@ -11,7 +18,9 @@
|
|
|
11
18
|
@jiezhengj/subagent-oar-agy
|
|
12
19
|
```
|
|
13
20
|
|
|
14
|
-
tgz 备选:`https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/releases/download/v0.
|
|
21
|
+
tgz 备选:`https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/releases/download/v0.3.0/subagent-oar-agy-0.3.0.tgz`
|
|
22
|
+
|
|
23
|
+
版本说明与完整变更见 [GitHub Release v0.3.0](https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/releases/tag/v0.3.0)。
|
|
15
24
|
|
|
16
25
|
3. 启用「AGY 子智能体」,新会话即可让模型调用 `subagent_oar_agy`。
|
|
17
26
|
4. 安装或升级后按提示重载(必要时重启)DSH,再在新会话调用 `subagent_oar_agy`。
|
|
@@ -78,9 +87,41 @@ permissionMode: plan
|
|
|
78
87
|
| `effort` | 空 | 传给 `agy --effort` |
|
|
79
88
|
| `permissionMode` | `yolo` | `yolo` / `plan` / `strict` |
|
|
80
89
|
| `locale` | `auto` | 面向用户文案的语言;`auto` 跟随 DSH,或显式 `de` / `en` / `es` / `fr` / `ja` / `pt` / `ru` / `zh` |
|
|
81
|
-
| `
|
|
90
|
+
| `startupTimeoutMs` | `60000` | 从 spawn 到收到 agy `init` 的启动等待窗口;到期会终止进程树并以可操作诊断失败 |
|
|
91
|
+
| `stallTimeoutMs` | `900000` | `init` 后连续无协议事件的静默窗口;`stderr`、非法 JSON 和普通日志不会重置它 |
|
|
92
|
+
| `timeoutMs` | 不设 | 单次绝对上限,从 agy `init` 起算;与静默窗口同 tick 到期时绝对上限优先 |
|
|
93
|
+
| `activityLimit` | `20` | 每次委派保留的活动摘要条数,范围 1–20 |
|
|
94
|
+
| `terminalRetentionMs` | `300000` | 终态记录保留时间,默认 5 分钟 |
|
|
95
|
+
| `maxRecordsPerParent` | `50` | 每个父会话最多保留的记录数,范围 1–50 |
|
|
82
96
|
| `killGraceMs` | `10000` | SIGTERM 后等待退出的宽限 |
|
|
83
|
-
| `
|
|
97
|
+
| `controlToolName` | `subagent_oar_agy_control` | 控制工具名;属于工具行配置,官方委派工具仍用 `toolName` |
|
|
98
|
+
| `env` | `{}` | 子进程环境变量覆盖,`null` 表示删除;显式值可重新提供被官方清洗移除的变量 |
|
|
99
|
+
|
|
100
|
+
控制工具的调试日志走 DSH 插件日志(`ctx.logger.warn`,以 `subagent-agy <run-id>` 开头),只含脱敏摘要;不会把原始 stderr 写入父会话。
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## 状态查询与取消
|
|
104
|
+
|
|
105
|
+
工具行在官方 `subagent_oar_agy` 之外注册一个控制工具 `subagent_oar_agy_control`(可用 `controlToolName` 改名):
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{ "action": "status", "childId": "可选;省略时列出当前父会话的全部 AGY 运行" }
|
|
109
|
+
{ "action": "cancel", "childId": "必填" }
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`status` 只读,返回 `action`、`generatedAt`、`found` 与至多 50 个运行摘要;每个运行最多 20 条活动摘要,`lastText` 最多 200 字符,不返回完整 prompt、完整最终答复、工具参数或原始 stderr。`cancel` 只返回受理结果,实际停止与终态由 DSH 子代理服务和插件异步完成。
|
|
113
|
+
|
|
114
|
+
## 可观察性与看门狗
|
|
115
|
+
|
|
116
|
+
- **启动看门狗**:默认 60 秒;agy 未发出 `init` 就终止进程树,并给出 `startup-timeout` 诊断。
|
|
117
|
+
- **静默看门狗**:默认 15 分钟;`init` 后没有新的协议事件(`init`、`step_update`、`result` 或生命周期边沿)就终止;持续 stderr 噪声不会掩盖卡死。
|
|
118
|
+
- **绝对上限**:仍由 `timeoutMs` 控制;未配置时只依赖两个看门狗。
|
|
119
|
+
- 所有路径只结算一次,并只向父会话投递一次终止通知;状态查询不会启动、恢复或继续任何委派。
|
|
120
|
+
- 看门狗**没有关闭开关**。如果任务确实需要更久,调大 `startupTimeoutMs` / `stallTimeoutMs`,不要设为 0。
|
|
121
|
+
|
|
122
|
+
## 安全边界
|
|
123
|
+
|
|
124
|
+
AGY 子进程从官方 `scrubbedParentEnv()` 清洗后的环境启动:凭据形状变量(大小写不敏感)和 `DSH_*` 默认移除;`PATH`、`HOME`、语言与代理变量保留。只有用户在 `env` 中显式覆盖的变量才会重新提供给 agy。父会话诊断只含分类与可操作建议,原始 stderr 只写入本机脱敏日志。
|
|
84
125
|
|
|
85
126
|
## 官方工具包不可用时
|
|
86
127
|
|
|
@@ -119,4 +160,4 @@ command: /Users/your-name/.local/bin/agy
|
|
|
119
160
|
|
|
120
161
|
## 卸载与禁用
|
|
121
162
|
|
|
122
|
-
在 DSH
|
|
163
|
+
在 DSH 插件管理中禁用或移除本组合包即可;禁用或卸载后工具、提供方与看门狗一并消失;插件清理阶段会停止计时器,并终止该提供方尚未结算的 AGY 运行及其进程树,不会留下无监控进程。配置保留,重新启用后继续生效。
|
package/docs/DETAIL.de.md
CHANGED
|
@@ -34,3 +34,9 @@ Der Standardname ist `subagent_oar_agy` und kollidiert nicht mit `subagent_oar`
|
|
|
34
34
|
## Haftungsausschluss
|
|
35
35
|
|
|
36
36
|
Dies ist eine inoffizielle Erweiterung, nicht mit DeepSeek oder Google verbunden. Nutzung auf eigenes Risiko; beachten Sie die Antigravity-Nutzungsbedingungen.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.en.md
CHANGED
|
@@ -34,3 +34,9 @@ The default tool name is `subagent_oar_agy`, which does not collide with the off
|
|
|
34
34
|
## Disclaimer
|
|
35
35
|
|
|
36
36
|
This is an unofficial wrapper, not affiliated with DeepSeek or Google. Use at your own risk and follow Antigravity's terms of service.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.es.md
CHANGED
|
@@ -34,3 +34,9 @@ El nombre predeterminado es `subagent_oar_agy`, que no choca con `subagent_oar`
|
|
|
34
34
|
## Aviso
|
|
35
35
|
|
|
36
36
|
Es un envoltorio no oficial, sin relación con DeepSeek ni Google. Úsalo bajo tu responsabilidad y respeta los términos de Antigravity.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.fr.md
CHANGED
|
@@ -34,3 +34,9 @@ Le nom par défaut est `subagent_oar_agy`, sans collision avec `subagent_oar` du
|
|
|
34
34
|
## Avertissement
|
|
35
35
|
|
|
36
36
|
Extension non officielle, sans lien avec DeepSeek ou Google. Utilisation à vos risques ; respectez les conditions d’Antigravity.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.ja.md
CHANGED
|
@@ -34,3 +34,9 @@
|
|
|
34
34
|
## 免責
|
|
35
35
|
|
|
36
36
|
非公式のラッパーであり、DeepSeek や Google とは関係ありません。自己責任で使用し、Antigravity の利用規約に従ってください。
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.pt.md
CHANGED
|
@@ -34,3 +34,9 @@ O nome padrão é `subagent_oar_agy`, sem colisão com `subagent_oar` do bundle
|
|
|
34
34
|
## Aviso
|
|
35
35
|
|
|
36
36
|
É um wrapper não oficial, sem vínculo com DeepSeek ou Google. Use por sua conta e risco e siga os termos do Antigravity.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.ru.md
CHANGED
|
@@ -34,3 +34,9 @@
|
|
|
34
34
|
## Отказ от ответственности
|
|
35
35
|
|
|
36
36
|
Это неофициальная обёртка, не связанная с DeepSeek или Google. Используйте на свой риск и соблюдайте условия Antigravity.
|
|
37
|
+
|
|
38
|
+
## Status, watchdogs and cancellation
|
|
39
|
+
|
|
40
|
+
The tool entry registers `subagent_oar_agy_control`: `status` returns a bounded snapshot of direct AGY runs (at most 50 runs, 20 activity entries each, `lastText` at most 200 characters); `cancel` only accepts a cancellation request and settles asynchronously. Defaults are a 60 s startup window, a 15 min stall window, `activityLimit=20`, `terminalRetentionMs=300000` and `maxRecordsPerParent=50`; stderr noise does not reset the stall timer. Every path settles once. There is no watchdog off switch; increase the windows instead.
|
|
41
|
+
|
|
42
|
+
The child environment is the official scrubbed parent environment: credential-shaped names and `DSH_*` are removed unless explicitly supplied through `env`. Parent diagnostics never include raw stderr.
|
package/docs/DETAIL.zh.md
CHANGED
|
@@ -23,9 +23,13 @@
|
|
|
23
23
|
- `strict`:需要权限的动作由 AGY 自动拒绝,结果中会附可见说明。
|
|
24
24
|
权限档被自动拒绝时不会静默失败,你会看到被拒绝的动作与放行方法。
|
|
25
25
|
|
|
26
|
+
## 状态、看门狗与取消
|
|
27
|
+
|
|
28
|
+
插件注册 `subagent_oar_agy_control`:`status` 返回当前父会话的有限运行摘要(至多 50 个运行、每个至多 20 条活动、`lastText` 至多 200 字符),`cancel` 只受理取消并异步结算。默认启动窗口 60 秒、静默窗口 15 分钟、`activityLimit=20`、`terminalRetentionMs=300000`、`maxRecordsPerParent=50`;持续 stderr 噪声不会重置静默计时。所有路径只结算一次。看门狗没有关闭开关,只能调大窗口。
|
|
29
|
+
|
|
26
30
|
## 数据与隐私
|
|
27
31
|
|
|
28
|
-
任务文本只发送给本机 `agy` 进程;插件不读取、不存储、不转发 AGY 的凭据或认证文件,也不修改其全局配置。
|
|
32
|
+
任务文本只发送给本机 `agy` 进程;插件不读取、不存储、不转发 AGY 的凭据或认证文件,也不修改其全局配置。AGY 子进程只继承官方清洗后的环境变量:凭据形状变量与 `DSH_*` 默认移除,`env` 显式覆盖可重新提供。父会话失败诊断不含原始 stderr。
|
|
29
33
|
|
|
30
34
|
## 工具名与共存
|
|
31
35
|
|
package/docs/INSTALL.md
CHANGED
|
@@ -5,13 +5,17 @@
|
|
|
5
5
|
- DeepSeek Harness 0.2.2-rc.1 或更高(组合包 `engines.dsh` 为 `>=0.2.2-rc.1 <0.3.0`)。
|
|
6
6
|
- 本机已安装并登录 Antigravity CLI(agy 1.5 及以上),终端里能以 `agy` 或绝对路径运行。
|
|
7
7
|
|
|
8
|
+
## 0.3.0 升级提示
|
|
9
|
+
|
|
10
|
+
从 0.2.8 升级到 0.3.0 后,`subagent_oar_agy_control` 需要在新会话中才会出现在工具表;官方 `subagent_oar_agy` 的 schema 不变。升级会保留现有配置。
|
|
11
|
+
|
|
8
12
|
## 安装
|
|
9
13
|
|
|
10
14
|
1. 在 DSH 插件管理中安装组合包,安装输入框填包名:`@jiezhengj/subagent-oar-agy`(主路径,支持后续检查更新)。
|
|
11
|
-
- tgz 备选:`https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/releases/download/v0.
|
|
15
|
+
- tgz 备选:`https://github.com/jiezhengj/DSH-Subagent-OAR-AGY/releases/download/v0.3.0/subagent-oar-agy-0.3.0.tgz`
|
|
12
16
|
- 或本地 tarball:`dsh plugin add /path/to/subagent_oar_agy-<version>.tgz`
|
|
13
17
|
2. 在插件列表启用「AGY 子智能体」(包名 `@jiezhengj/subagent-oar-agy`),按提示重载(必要时重启 DSH);模型工具列表出现 `subagent_oar_agy`。
|
|
14
|
-
3. 安装或升级完成后,在新会话调用 `subagent_oar_agy`
|
|
18
|
+
3. 安装或升级完成后,在新会话调用 `subagent_oar_agy` 验证工具可用;新增的 `subagent_oar_agy_control` 也需要新会话/重载后才出现在工具表,控制工具不会修改官方委派工具的 schema。
|
|
15
19
|
|
|
16
20
|
安装后默认 `permissionMode: yolo`,如不希望自动执行,先改成 `plan` 或 `strict` 再启用(见 README)。
|
|
17
21
|
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
|
|
26
30
|
## 禁用与重新启用
|
|
27
31
|
|
|
28
|
-
禁用组合包后,`subagent_oar_agy` 工具与 `agy`
|
|
32
|
+
禁用组合包后,`subagent_oar_agy`、`subagent_oar_agy_control` 工具与 `agy` 提供方一并移除;插件清理阶段会停止看门狗计时器,并终止该提供方尚未结算的 AGY 运行及其进程树。DSH 其他功能不受影响,重新启用后原配置继续生效。
|
|
29
33
|
|
|
30
34
|
## 工具名冲突
|
|
31
35
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiezhengj/subagent-oar-agy",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Delegate independent tasks to the local Antigravity CLI (agy) from DSH; self-contained non-official plugin with a non-ACP AGY runtime and eight-language UI.",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Delegate independent tasks to the local Antigravity CLI (agy) from DSH; self-contained non-official plugin with a non-ACP AGY runtime, startup/stall watchdogs, status and cancel control, and eight-language UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|
|
7
7
|
"files": [
|
|
@@ -26,12 +26,13 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@deepseek-ai/cordis": "4.1.0",
|
|
28
28
|
"@deepseek-ai/dsh-brand": "0.2.2-rc.1",
|
|
29
|
+
"@deepseek-ai/dsh-experimental-tool-subagent-oar": "0.2.2-rc.1",
|
|
29
30
|
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
30
31
|
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
32
|
+
"@deepseek-ai/dsh-subprocess": "0.2.2-rc.1",
|
|
31
33
|
"@deepseek-ai/dsh-timeout": "0.2.2-rc.1",
|
|
32
|
-
"@deepseek-ai/
|
|
33
|
-
"@deepseek-ai/
|
|
34
|
-
"@deepseek-ai/dsh-tools": "0.2.2-rc.1"
|
|
34
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
35
|
+
"@deepseek-ai/schemastery": "3.19.0"
|
|
35
36
|
},
|
|
36
37
|
"exports": {
|
|
37
38
|
"./agy-provider": "./provider/index.js",
|
package/provider/agy/errors.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { type Locale } from '../i18n.js';
|
|
3
3
|
/** 诊断文本上限(UTF-8 字节),与 DSH 接缝的 4096 字节限制一致。 */
|
|
4
4
|
export declare const DIAGNOSTIC_MAX_BYTES = 4096;
|
|
5
|
-
/**
|
|
6
|
-
export type FailureCategory = 'not-installed' | 'not-authenticated' | 'timeout' | 'spawn-failed' | 'protocol' | 'cancelled';
|
|
5
|
+
/** 失败分类。 */
|
|
6
|
+
export type FailureCategory = 'not-installed' | 'not-authenticated' | 'startup-timeout' | 'stalled' | 'timeout' | 'spawn-failed' | 'protocol' | 'permission' | 'unknown' | 'cancelled';
|
|
7
7
|
/** 带分类的失败,供提供方在发布前抛错或在发布后转诊断。 */
|
|
8
8
|
export declare class AgyFailure extends Error {
|
|
9
9
|
readonly category: FailureCategory;
|
|
@@ -17,6 +17,10 @@ export declare function summarizeStderr(stderr: string): string | undefined;
|
|
|
17
17
|
export declare function looksLikeAuthenticationFailure(text: string | undefined): boolean;
|
|
18
18
|
/** 构造分类诊断;`detail` 可选,会被清洗并截断;`locale` 决定语言。 */
|
|
19
19
|
export declare function failureDiagnostic(category: FailureCategory, detail?: string, locale?: Locale): string;
|
|
20
|
+
/** 本机日志脱敏:移除凭据形状、URL 凭据和常见绝对路径。 */
|
|
21
|
+
export declare function redactSensitive(text: string): string;
|
|
22
|
+
/** 供本机 logger 使用的受控 stderr 摘要。 */
|
|
23
|
+
export declare function localStderrSummary(stderr: string): string | undefined;
|
|
20
24
|
/** 运行时错误转文本(不泄漏堆栈以外的敏感内容)。 */
|
|
21
25
|
export declare function errorMessage(error: unknown): string;
|
|
22
26
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/agy/errors.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,OAAO,EAAK,KAAK,MAAM,EAAE,MAAM,YAAY,CAAA;AAE3C,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB,OAAO,CAAA;AAExC,YAAY;AACZ,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,UAAU,GACV,WAAW,CAAA;AAEf,iCAAiC;AACjC,qBAAa,UAAW,SAAQ,KAAK;IAEjC,QAAQ,CAAC,QAAQ,EAAE,eAAe;gBAAzB,QAAQ,EAAE,eAAe,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY;CAKzB;AAED,wBAAwB;AACxB,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,SAAuB,GAAG,MAAM,CAMlF;AAED,wCAAwC;AACxC,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,+BAA+B;AAC/B,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAGhF;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/agy/errors.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,OAAO,EAAK,KAAK,MAAM,EAAE,MAAM,YAAY,CAAA;AAE3C,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB,OAAO,CAAA;AAExC,YAAY;AACZ,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,cAAc,GACd,UAAU,GACV,YAAY,GACZ,SAAS,GACT,WAAW,CAAA;AAEf,iCAAiC;AACjC,qBAAa,UAAW,SAAQ,KAAK;IAEjC,QAAQ,CAAC,QAAQ,EAAE,eAAe;gBAAzB,QAAQ,EAAE,eAAe,EAClC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY;CAKzB;AAED,wBAAwB;AACxB,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,SAAuB,GAAG,MAAM,CAMlF;AAED,wCAAwC;AACxC,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASlE;AAED,+BAA+B;AAC/B,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAGhF;AAgBD,gDAAgD;AAChD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,MAAa,GAAG,MAAM,CAI3G;AAGD,mCAAmC;AACnC,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED,kCAAkC;AAClC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGrE;AAED,8BAA8B;AAC9B,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEnD"}
|
package/provider/agy/errors.js
CHANGED
|
@@ -43,9 +43,13 @@ export function looksLikeAuthenticationFailure(text) {
|
|
|
43
43
|
const DIAGNOSTIC_KEYS = {
|
|
44
44
|
'not-installed': 'notInstalled',
|
|
45
45
|
'not-authenticated': 'notAuthenticated',
|
|
46
|
+
'startup-timeout': 'startupTimeout',
|
|
47
|
+
'stalled': 'stallTimeout',
|
|
46
48
|
'timeout': 'timeout',
|
|
47
49
|
'spawn-failed': 'spawnFailed',
|
|
48
50
|
'protocol': 'protocol',
|
|
51
|
+
'permission': 'permission',
|
|
52
|
+
'unknown': 'protocol',
|
|
49
53
|
'cancelled': 'cancelled',
|
|
50
54
|
};
|
|
51
55
|
/** 构造分类诊断;`detail` 可选,会被清洗并截断;`locale` 决定语言。 */
|
|
@@ -54,6 +58,20 @@ export function failureDiagnostic(category, detail, locale = 'en') {
|
|
|
54
58
|
const tail = detail === undefined || detail.length === 0 ? '' : ` ${t(locale, 'detailLabel')}: ${detail}`;
|
|
55
59
|
return truncateUtf8(`${head}${tail}`);
|
|
56
60
|
}
|
|
61
|
+
/** 本机日志脱敏:移除凭据形状、URL 凭据和常见绝对路径。 */
|
|
62
|
+
export function redactSensitive(text) {
|
|
63
|
+
return text
|
|
64
|
+
.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]+/giu, 'Bearer [redacted]')
|
|
65
|
+
.replace(/\bsk-[A-Za-z0-9_-]{6,}/gu, 'sk-[redacted]')
|
|
66
|
+
.replace(/\b(api[_-]?key|access[_-]?token|refresh[_-]?token|token|secret|password)\b\s*[:=]\s*["']?[^\s"']+/giu, '$1=[redacted]')
|
|
67
|
+
.replace(/https?:\/\/[^\s/@:]+:[^\s/@]+@/gu, 'https://[redacted]@')
|
|
68
|
+
.replace(/(?:\/Users\/|\/home\/|[A-Za-z]:\\)[^\s:'"\]}]+/gu, '[path]');
|
|
69
|
+
}
|
|
70
|
+
/** 供本机 logger 使用的受控 stderr 摘要。 */
|
|
71
|
+
export function localStderrSummary(stderr) {
|
|
72
|
+
const summary = summarizeStderr(stderr);
|
|
73
|
+
return summary === undefined ? undefined : truncateUtf8(redactSensitive(summary), 1200);
|
|
74
|
+
}
|
|
57
75
|
/** 运行时错误转文本(不泄漏堆栈以外的敏感内容)。 */
|
|
58
76
|
export function errorMessage(error) {
|
|
59
77
|
return error instanceof Error ? error.message : String(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/agy/errors.ts"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,OAAO,EAAE,CAAC,EAAe,MAAM,YAAY,CAAA;AAE3C,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R,OAAO,CAAC,mCAAmC,EAAE,mBAAmB,CAAC;SACjE,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC;SACpD,OAAO,CAAC,sGAAsG,EAAE,eAAe,CAAC;SAChI,OAAO,CAAC,kCAAkC,EAAE,qBAAqB,CAAC;SAClE,OAAO,CAAC,kDAAkD,EAAE,QAAQ,CAAC,CAAA;AAC1E,CAAC;AAED,kCAAkC;AAClC,MAAM,UAAU,kBAAkB,CAAC,MAAc;IAC/C,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IACvC,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAA;AACzF,CAAC;AAED,8BAA8B;AAC9B,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC/D,CAAC"}
|
package/provider/agy/spawn.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface AgySpawnSpec {
|
|
|
13
13
|
}
|
|
14
14
|
/** 把配置翻译为 AGY 命令行参数。 */
|
|
15
15
|
export declare function buildAgyArgs(spec: Pick<AgySpawnSpec, 'model' | 'effort' | 'permissionMode'>): string[];
|
|
16
|
-
/**
|
|
16
|
+
/** 在官方清洗后的父环境上叠加插件配置;`null` 表示删除;显式覆盖可重新提供凭据。 */
|
|
17
17
|
export declare function agyEnvironment(overlay: Readonly<Record<string, string | null>>, base?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
18
18
|
/** 一条用户消息的 NDJSON 行;schema 由 AGY `--input-format stream-json` 约定。 */
|
|
19
19
|
export declare function userMessageLine(prompt: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../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GED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** 组装并启动 AGY 子进程(headless + stream-json 双向)。 */
|
|
2
2
|
import { spawn } from 'node:child_process';
|
|
3
|
+
import { scrubbedParentEnv } from '@deepseek-ai/dsh-subprocess';
|
|
3
4
|
/** 把配置翻译为 AGY 命令行参数。 */
|
|
4
5
|
export function buildAgyArgs(spec) {
|
|
5
6
|
const args = ['--input-format', 'stream-json', '--output-format', 'stream-json'];
|
|
@@ -14,8 +15,8 @@ export function buildAgyArgs(spec) {
|
|
|
14
15
|
// strict:不追加任何权限选项,需要权限的动作由 AGY 软拒绝。
|
|
15
16
|
return args;
|
|
16
17
|
}
|
|
17
|
-
/**
|
|
18
|
-
export function agyEnvironment(overlay, base =
|
|
18
|
+
/** 在官方清洗后的父环境上叠加插件配置;`null` 表示删除;显式覆盖可重新提供凭据。 */
|
|
19
|
+
export function agyEnvironment(overlay, base = scrubbedParentEnv()) {
|
|
19
20
|
const env = { ...base };
|
|
20
21
|
for (const [key, value] of Object.entries(overlay)) {
|
|
21
22
|
if (value === null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../src/agy/spawn.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../src/agy/spawn.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAe/D,wBAAwB;AACxB,MAAM,UAAU,YAAY,CAAC,IAA+D;IAC1F,MAAM,IAAI,GAAG,CAAC,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAA;IAChF,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,C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Y,CAAC,IAAI,CAAC,EAAE;QAC7C,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,GAAG,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC;QAC7B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QAC/B,QAAQ,EAAE,OAAO,CAAC,QAAQ,KAAK,OAAO;QACtC,WAAW,EAAE,IAAI;KAClB,CAAC,CAAA;AACJ,CAAC"}
|
package/provider/i18n.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface Messages {
|
|
|
8
8
|
notInstalled: string;
|
|
9
9
|
notAuthenticated: string;
|
|
10
10
|
timeout: string;
|
|
11
|
+
startupTimeout: string;
|
|
12
|
+
stallTimeout: string;
|
|
11
13
|
spawnFailed: string;
|
|
12
14
|
protocol: string;
|
|
13
15
|
malformedLines: string;
|
|
@@ -16,6 +18,14 @@ export interface Messages {
|
|
|
16
18
|
permissionDenied: string;
|
|
17
19
|
permissionToolFallback: string;
|
|
18
20
|
detailLabel: string;
|
|
21
|
+
permission: string;
|
|
22
|
+
notFound: string;
|
|
23
|
+
notAuthorized: string;
|
|
24
|
+
cancelAccepted: string;
|
|
25
|
+
cancelAlreadyRequested: string;
|
|
26
|
+
cancelAlreadyEnded: string;
|
|
27
|
+
cancelUnavailable: string;
|
|
28
|
+
controlUnavailable: string;
|
|
19
29
|
}
|
|
20
30
|
/** 八种语言的文案表。 */
|
|
21
31
|
export declare const MESSAGES: Record<Locale, Messages>;
|
package/provider/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAMpC,2BAA2B;AAC3B,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1E,2BAA2B;AAC3B,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,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,gBAAgB;AAChB,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAyL7C,CAAA;AAID,0CAA0C;AAC1C,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM7E;AAED,iBAAiB;AACjB,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,MAAM,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAe3E;AAED,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAQzF;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAMhI;AAED,2BAA2B;AAC3B,wBAAgB,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,QAAQ,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CAEhG"}
|
package/provider/i18n.js
CHANGED
|
@@ -18,6 +18,16 @@ export const MESSAGES = {
|
|
|
18
18
|
permissionDenied: '[subagent-agy] Berechtigungsmodus {mode}: AGY hat Aktionen, die eine Berechtigung erfordern, automatisch abgelehnt ({tools}); es wurden keine Änderungen vorgenommen. Um sie zu erlauben, setzen Sie permissionMode auf yolo oder ergänzen Sie allow-Regeln in AGY settings.json.',
|
|
19
19
|
permissionToolFallback: 'Werkzeuge mit Berechtigungsbedarf',
|
|
20
20
|
detailLabel: 'Details',
|
|
21
|
+
permission: 'Permission denied for the requested action.',
|
|
22
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
23
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
24
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
25
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
26
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
27
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
28
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
29
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
30
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
21
31
|
},
|
|
22
32
|
en: {
|
|
23
33
|
notInstalled: 'AGY is not installed or not on PATH. Install the Antigravity CLI, or set command to the absolute path of agy.',
|
|
@@ -31,6 +41,16 @@ export const MESSAGES = {
|
|
|
31
41
|
permissionDenied: '[subagent-agy] Permission mode {mode}: AGY automatically denied actions that need permission ({tools}); no changes were made. To allow them, set permissionMode to yolo or add allow rules in AGY settings.json.',
|
|
32
42
|
permissionToolFallback: 'tools that need permission',
|
|
33
43
|
detailLabel: 'Detail',
|
|
44
|
+
permission: 'Permission denied for the requested action.',
|
|
45
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
46
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
47
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
48
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
49
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
50
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
51
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
52
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
53
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
34
54
|
},
|
|
35
55
|
es: {
|
|
36
56
|
notInstalled: 'AGY no está instalado o no está en PATH. Instala la CLI de Antigravity o define command con la ruta absoluta de agy.',
|
|
@@ -44,6 +64,16 @@ export const MESSAGES = {
|
|
|
44
64
|
permissionDenied: '[subagent-agy] Modo de permisos {mode}: AGY denegó automáticamente las acciones que requieren permiso ({tools}); no se aplicó ningún cambio. Para permitirlas, cambia permissionMode a yolo o añade reglas allow en settings.json de AGY.',
|
|
45
65
|
permissionToolFallback: 'herramientas que requieren permiso',
|
|
46
66
|
detailLabel: 'Detalle',
|
|
67
|
+
permission: 'Permission denied for the requested action.',
|
|
68
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
69
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
70
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
71
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
72
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
73
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
74
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
75
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
76
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
47
77
|
},
|
|
48
78
|
fr: {
|
|
49
79
|
notInstalled: "AGY n'est pas installé ou n'est pas dans le PATH. Installez la CLI Antigravity ou définissez command avec le chemin absolu d'agy.",
|
|
@@ -57,6 +87,16 @@ export const MESSAGES = {
|
|
|
57
87
|
permissionDenied: "[subagent-agy] Mode d'autorisation {mode} : AGY a automatiquement refusé les actions nécessitant une autorisation ({tools}) ; aucune modification n'a été appliquée. Pour les autoriser, passez permissionMode à yolo ou ajoutez des règles allow dans settings.json d'AGY.",
|
|
58
88
|
permissionToolFallback: 'outils nécessitant une autorisation',
|
|
59
89
|
detailLabel: 'Détail',
|
|
90
|
+
permission: 'Permission denied for the requested action.',
|
|
91
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
92
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
93
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
94
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
95
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
96
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
97
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
98
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
99
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
60
100
|
},
|
|
61
101
|
ja: {
|
|
62
102
|
notInstalled: 'AGY が見つかりません(未インストールまたは PATH 外)。Antigravity CLI をインストールするか、command に agy の絶対パスを指定してください。',
|
|
@@ -70,6 +110,16 @@ export const MESSAGES = {
|
|
|
70
110
|
permissionDenied: '[subagent-agy] 権限モード {mode}:AGY は権限が必要な操作({tools})を自動的に拒否しました。変更は適用されていません。許可するには permissionMode を yolo にするか、AGY の settings.json に allow ルールを追加してください。',
|
|
71
111
|
permissionToolFallback: '権限が必要なツール',
|
|
72
112
|
detailLabel: '詳細',
|
|
113
|
+
permission: 'Permission denied for the requested action.',
|
|
114
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
115
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
116
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
117
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
118
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
119
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
120
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
121
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
122
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
73
123
|
},
|
|
74
124
|
pt: {
|
|
75
125
|
notInstalled: 'O AGY não está instalado ou não está no PATH. Instale a CLI do Antigravity ou defina command com o caminho absoluto do agy.',
|
|
@@ -83,6 +133,16 @@ export const MESSAGES = {
|
|
|
83
133
|
permissionDenied: '[subagent-agy] Modo de permissão {mode}: o AGY negou automaticamente ações que exigem permissão ({tools}); nenhuma alteração foi aplicada. Para permitir, altere permissionMode para yolo ou adicione regras allow no settings.json do AGY.',
|
|
84
134
|
permissionToolFallback: 'ferramentas que exigem permissão',
|
|
85
135
|
detailLabel: 'Detalhe',
|
|
136
|
+
permission: 'Permission denied for the requested action.',
|
|
137
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
138
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
139
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
140
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
141
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
142
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
143
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
144
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
145
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
86
146
|
},
|
|
87
147
|
ru: {
|
|
88
148
|
notInstalled: 'AGY не установлен или отсутствует в PATH. Установите Antigravity CLI или укажите в command абсолютный путь к agy.',
|
|
@@ -96,6 +156,16 @@ export const MESSAGES = {
|
|
|
96
156
|
permissionDenied: '[subagent-agy] Режим разрешений {mode}: AGY автоматически отклонил действия, требующие разрешения ({tools}); изменения не применены. Чтобы разрешить их, установите permissionMode в yolo или добавьте правила allow в settings.json AGY.',
|
|
97
157
|
permissionToolFallback: 'инструменты, требующие разрешения',
|
|
98
158
|
detailLabel: 'Подробности',
|
|
159
|
+
permission: 'Permission denied for the requested action.',
|
|
160
|
+
notFound: 'No matching AGY delegation was found for the current parent session.',
|
|
161
|
+
notAuthorized: 'The delegation does not belong to the current parent session.',
|
|
162
|
+
cancelAccepted: 'Cancellation was accepted; the run will settle asynchronously.',
|
|
163
|
+
cancelAlreadyRequested: 'Cancellation was already requested for this delegation.',
|
|
164
|
+
cancelAlreadyEnded: 'The delegation has already ended.',
|
|
165
|
+
cancelUnavailable: 'Cancellation is currently unavailable; retry after the parent session is ready.',
|
|
166
|
+
controlUnavailable: 'AGY run status is unavailable because the AGY provider is not enabled.',
|
|
167
|
+
startupTimeout: 'AGY did not become ready within the startup window and was terminated. Check that AGY starts and is signed in, or increase startupTimeoutMs.',
|
|
168
|
+
stallTimeout: 'AGY stopped producing protocol events within the stall window and was terminated. Check whether the task is stuck or increase stallTimeoutMs.',
|
|
99
169
|
},
|
|
100
170
|
zh: {
|
|
101
171
|
notInstalled: 'AGY 未安装或不在 PATH 中。请安装 Antigravity CLI,或通过 command 配置指定 agy 的绝对路径。',
|
|
@@ -109,6 +179,16 @@ export const MESSAGES = {
|
|
|
109
179
|
permissionDenied: '[subagent-agy] 权限档 {mode}:AGY 已自动拒绝需要权限的动作({tools}),相关修改未执行。若要允许,请把 permissionMode 改为 yolo,或在 AGY 的 settings.json 中配置 allow 规则。',
|
|
110
180
|
permissionToolFallback: '需要权限的工具',
|
|
111
181
|
detailLabel: '详情',
|
|
182
|
+
permission: '请求的动作没有权限。',
|
|
183
|
+
notFound: '没有找到属于当前父会话的 AGY 委派。',
|
|
184
|
+
notAuthorized: '该委派不属于当前父会话。',
|
|
185
|
+
cancelAccepted: '取消请求已受理;运行将异步结算。',
|
|
186
|
+
cancelAlreadyRequested: '该委派已经请求过取消。',
|
|
187
|
+
cancelAlreadyEnded: '该委派已经结束。',
|
|
188
|
+
cancelUnavailable: '当前无法取消;父会话就绪后重试。',
|
|
189
|
+
controlUnavailable: 'AGY 运行状态不可用:AGY 提供方未启用。',
|
|
190
|
+
startupTimeout: 'AGY 在启动窗口内未就绪,进程已被终止。请检查 AGY 能否启动并已登录,或调大 startupTimeoutMs。',
|
|
191
|
+
stallTimeout: 'AGY 在静默窗口内没有产生协议事件,进程已被终止。请检查任务是否卡住,或调大 stallTimeoutMs。',
|
|
112
192
|
},
|
|
113
193
|
};
|
|
114
194
|
const LANGUAGE_ID = /^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$/u;
|
package/provider/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAKhC,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,E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GAKG;AACH,MAAM,UAAU,YAAY,CAAC,UAA8B,EAAE,MAAyB,OAAO,CAAC,GAAG,EAAE,YAAqB;IACtH,MAAM,QAAQ,GAAG,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAC5G,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC3C,MAAM,YAAY,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;IACjD,IAAI,YAAY,KAAK,SAAS;QAAE,OAAO,YAAY,CAAA;IACnD,OAAO,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,IAAI,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,IAAI,CAAA;AACrH,CAAC;AAED,2BAA2B;AAC3B,MAAM,UAAU,CAAC,CAAC,MAAc,EAAE,GAAmB,EAAE,OAA+B,EAAE;IACtF,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAA;AAC1G,CAAC"}
|
package/provider/index.d.ts
CHANGED
|
@@ -18,8 +18,18 @@ export interface Config {
|
|
|
18
18
|
effort?: string;
|
|
19
19
|
/** 权限档:yolo(默认无人值守)、plan(只读规划)、strict(软拒绝)。 */
|
|
20
20
|
permissionMode?: PermissionMode;
|
|
21
|
+
/** 从 spawn 到 init 的启动等待窗口(毫秒),默认 60000。 */
|
|
22
|
+
startupTimeoutMs?: number;
|
|
23
|
+
/** init 后连续无协议事件的静默窗口(毫秒),默认 900000。 */
|
|
24
|
+
stallTimeoutMs?: number;
|
|
21
25
|
/** 单次时限(毫秒),从 AGY init 事件起算;省略则不设内部计时。 */
|
|
22
26
|
timeoutMs?: number;
|
|
27
|
+
/** 每运行活动摘要上限(1–20),默认 20。 */
|
|
28
|
+
activityLimit?: number;
|
|
29
|
+
/** 终态记录保留时间(毫秒),默认 300000。 */
|
|
30
|
+
terminalRetentionMs?: number;
|
|
31
|
+
/** 每父会话记录上限(1–50),默认 50。 */
|
|
32
|
+
maxRecordsPerParent?: number;
|
|
23
33
|
/** 终止宽限(毫秒),默认 10000。 */
|
|
24
34
|
killGraceMs?: number;
|
|
25
35
|
/** 子进程环境变量覆盖;null 表示删除。 */
|
package/provider/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,MAAM,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAG7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAIpD,uBAAuB;AACvB,eAAO,MAAM,IAAI,iBAAiB,CAAA;AAElC,gBAAgB;AAChB,eAAO,MAAM,MAAM,UAAgB,CAAA;AAEnC,YAAY;AACZ,MAAM,WAAW,MAAM;IACrB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+CAA+C;IAC/C,cAAc,CAAC,EAAE,cAAc,CAAA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