autowonder 0.3.3 → 0.3.4
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 +17 -9
- package/package.json +1 -1
- package/vendor/autowonder-daemon-darwin-amd64 +0 -0
- package/vendor/autowonder-daemon-darwin-arm64 +0 -0
- package/vendor/autowonder-daemon-linux-amd64 +0 -0
- package/vendor/autowonder-daemon-linux-arm64 +0 -0
- package/vendor/autowonder-daemon-win32-amd64.exe +0 -0
- package/vendor/autowonder-daemon-win32-arm64.exe +0 -0
package/README.md
CHANGED
|
@@ -6,10 +6,10 @@ AutoWonder 本地 agent runtime。安装后启动 daemon,持续轮询本地 as
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# Qoder CLI(模型使用 provider model ID;Context Window 使用固定档位)
|
|
9
|
-
npx -y autowonder@0.3.
|
|
9
|
+
npx -y autowonder@0.3.4 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qoder --model qmodel_latest --reasoning-effort medium --context-window 260000
|
|
10
10
|
|
|
11
11
|
# Qoder CLI CN
|
|
12
|
-
npx -y autowonder@0.3.
|
|
12
|
+
npx -y autowonder@0.3.4 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qodercn
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
`connect` 会安装当前 npm 包内置的 daemon,并使用页面生成的 WebSocket endpoint、Token 和执行器 ID 建立连接。客户端只支持通过 Qoder 系列 CLI 启动(`qoder` 对应 `qodercli`,`qodercn` 对应 `qodercn`),其他 `--provider` 取值会在启动 daemon 前直接报错拦截并提示 `Unsupported provider`。选择 Qoder CLI 或 Qoder CLI CN 时需要 Node.js 20+;runtime 会在缺少对应 CLI 时自动通过 npm 安装,并在尚未登录时打开浏览器登录。runtime 会继承当前用户的 HOME、环境变量和 CLI 登录状态。
|
|
@@ -81,6 +81,14 @@ daemon 默认启用本地工作区 GC:启动 30 秒后开始检查,之后每
|
|
|
81
81
|
|
|
82
82
|
任务工作区里的 Git 策略(是否允许提交/推送与工作区边界)由 runtime 安装的自包含钩子强制执行:默认策略不依赖 runtime 二进制或任务配置继续存在,因此历史任务残留不会让普通的 `git commit` / `git push` 失败,策略禁止时分别以退出码 `73` / `74` 拒绝提交与推送,提交还要求 HEAD 位于具名分支(detached 时以 `77` 拒绝)。安装是幂等的,只有确实声明了打包触发的仓库才会链式调用 runtime。daemon 启动时会在 15 秒预算内把本执行器历史 capsule 中可核对的旧版包装脚本迁移为这种自包含形式;模板、配置或元数据不完整的历史一律保留现场,不做全机扫描,也不恢复用户原有的 `hooksPath`。
|
|
83
83
|
|
|
84
|
+
## 中断派单恢复
|
|
85
|
+
|
|
86
|
+
daemon 重启或崩溃后重新接管未完成的派单时,runtime 不会直接把工作区交给恢复执行:先按 capsule 的尝试目录识别并清理上一进程遗留的 provider 进程组,确认没有归属进程组残留后才进入执行;清理结果不确定时保持该派单的恢复归属并按退避重试,不会把工作区让给服务端的替代任务,也不会在遗留进程仍可能写入时确认取消。等待服务端认领期间不占用执行槽位。
|
|
87
|
+
|
|
88
|
+
恢复时只有存在与步骤 attempt 匹配的持久化完成回执(`state/step-uploads/<step>/attempt-N.json`,即该步骤已发布并被远端 ref 代表)才会复用已完成的步骤;只存在于本地进度快照里的「已完成」不再被采信,无法证明的步骤会回退为待执行并重新运行,同时发出 `recovery_unproven_step_completions` 事件。恢复执行与首次派发一样上报步骤与运行事件,保留的完成步骤会显式发出 `step_reused`,时间线不需要客户端从游标推断。
|
|
89
|
+
|
|
90
|
+
恢复执行前会把工作目录规范化为绝对路径并解析符号链接(Qoder 会话按物理目录索引),因此通过符号链接别名派发的任务在重启后仍能找到并续接原会话。
|
|
91
|
+
|
|
84
92
|
## 自动更新
|
|
85
93
|
|
|
86
94
|
安装首个支持自动更新的正式版本后,daemon 会直接查询 npm 的 `autowonder/latest`。首次检查会随机分散在启动后的 30~90 秒,之后约每 5 分钟检查一次并加入随机抖动;npm 临时错误会指数退避,HTTP 429/503 的 `Retry-After` 会被遵循。发现更高的稳定版本时,它会在后台下载 npm tarball,校验 SHA-512 SRI、包版本和平台二进制;只有在没有运行/恢复任务且结果 outbox 已收到服务端确认时,才会暂停接单、原子切换二进制并自动重启。启动失败会恢复上一个二进制。
|
|
@@ -150,7 +158,7 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
|
|
|
150
158
|
也可以直接提交到本地 API:
|
|
151
159
|
|
|
152
160
|
```bash
|
|
153
|
-
npx -y autowonder@0.3.
|
|
161
|
+
npx -y autowonder@0.3.4 dispatch ./assignment.json
|
|
154
162
|
```
|
|
155
163
|
|
|
156
164
|
## 上传工单附件
|
|
@@ -158,7 +166,7 @@ npx -y autowonder@0.3.3 dispatch ./assignment.json
|
|
|
158
166
|
把本地需求/设计文档直接上传到工单,避免在会话里传递大文件:
|
|
159
167
|
|
|
160
168
|
```bash
|
|
161
|
-
npx -y autowonder@0.3.
|
|
169
|
+
npx -y autowonder@0.3.4 workitem upload --server-url <autowonder-server-url> --workitem-id <id> --file <filepath-1> --file <filepath-2> --json
|
|
162
170
|
```
|
|
163
171
|
|
|
164
172
|
上传令牌通过 MCP 工具 `autowonder.workitem_cli_upload_token` 签发,经 `--token` 或 `AUTOWONDER_UPLOAD_TOKEN` 环境变量传入。`--file` 可重复指定多个文件;`--json` 输出机器可读结果。失败时按错误类型返回不同退出码(401→3、403→4、404→5、409→6、413→7、其他 4xx→8、网络/重定向→9)。
|
|
@@ -168,7 +176,7 @@ npx -y autowonder@0.3.3 workitem upload --server-url <autowonder-server-url> --w
|
|
|
168
176
|
把工单上已有的需求/设计文档下载到本地目录,再用本地文件工具阅读,避免把大文件或二进制附件搬进会话上下文:
|
|
169
177
|
|
|
170
178
|
```bash
|
|
171
|
-
npx -y autowonder@0.3.
|
|
179
|
+
npx -y autowonder@0.3.4 workitem download --server-url <autowonder-server-url> --workitem-id <id> --file <name-or-id> --output-dir <dir> --json
|
|
172
180
|
```
|
|
173
181
|
|
|
174
182
|
下载令牌通过 MCP 工具 `autowonder.workitem_cli_download_token` 签发(与上传令牌相互独立),经 `--token` 或 `AUTOWONDER_DOWNLOAD_TOKEN` 环境变量传入。`--file` 可重复指定文档名或 artifact id,省略则下载该工单的全部附件;`--output-dir` 默认为当前目录;`--json` 输出机器可读结果,含每个文件的 `id`、`name`、`path`、`size`。退出码约定与 `workitem upload` 相同(401→3、403→4、404→5、409→6、413→7、其他 4xx→8、网络/重定向→9)。
|
|
@@ -178,7 +186,7 @@ npx -y autowonder@0.3.3 workitem download --server-url <autowonder-server-url> -
|
|
|
178
186
|
把需求/设计文档上传到 7x24 定时任务,用法与工单附件一致(同一套上传令牌与预检规则):
|
|
179
187
|
|
|
180
188
|
```bash
|
|
181
|
-
npx -y autowonder@0.3.
|
|
189
|
+
npx -y autowonder@0.3.4 scheduled-task upload --server-url <autowonder-server-url> --scheduled-task-id <id> --file <filepath-1> --file <filepath-2> --json
|
|
182
190
|
```
|
|
183
191
|
|
|
184
192
|
上传令牌同样通过 `autowonder.workitem_cli_upload_token` 签发(令牌为用户级,对当前可修改的任意定时任务生效),经 `--token` 或 `AUTOWONDER_UPLOAD_TOKEN` 传入;退出码约定与 `workitem upload` 相同。
|
|
@@ -186,8 +194,8 @@ npx -y autowonder@0.3.3 scheduled-task upload --server-url <autowonder-server-ur
|
|
|
186
194
|
## 管理 daemon
|
|
187
195
|
|
|
188
196
|
```bash
|
|
189
|
-
npx -y autowonder@0.3.
|
|
190
|
-
npx -y autowonder@0.3.
|
|
197
|
+
npx -y autowonder@0.3.4 status
|
|
198
|
+
npx -y autowonder@0.3.4 stop
|
|
191
199
|
```
|
|
192
200
|
|
|
193
201
|
默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
|
|
@@ -195,7 +203,7 @@ npx -y autowonder@0.3.3 stop
|
|
|
195
203
|
## 调试
|
|
196
204
|
|
|
197
205
|
```bash
|
|
198
|
-
npx -y autowonder@0.3.
|
|
206
|
+
npx -y autowonder@0.3.4 connect ... --debug
|
|
199
207
|
```
|
|
200
208
|
|
|
201
209
|
`--debug` 会让 CLI 以 `AUTOWONDER_DEBUG=1` 启动 daemon,把完整的 daemon 与 agent 活动(runtime 事件流、provider 事件解码、重试退避与会话门等待、空闲时的阻塞点)同时输出到控制台和会话调试日志。调试日志不做脱敏,仅用于本机排障;不传 `--debug` 时该环境变量不会注入。
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|