autowonder 0.2.146 → 0.2.148

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
@@ -6,16 +6,16 @@ AutoWonder 本地 agent runtime。安装后启动 daemon,持续轮询本地 as
6
6
 
7
7
  ```bash
8
8
  # Qoder CLI(模型使用 provider model ID;Context Window 使用固定档位)
9
- npx -y autowonder@0.2.146 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qoder --model qmodel_latest --reasoning-effort medium --context-window 260000
9
+ npx -y autowonder@0.2.148 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.2.146 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qodercn
12
+ npx -y autowonder@0.2.148 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qodercn
13
13
 
14
14
  # Claude Code
15
- npx -y autowonder@0.2.146 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider claude
15
+ npx -y autowonder@0.2.148 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider claude
16
16
 
17
17
  # Codex CLI
18
- npx -y autowonder@0.2.146 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider codex --model gpt-5.5 --reasoning-effort medium
18
+ npx -y autowonder@0.2.148 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider codex --model gpt-5.5 --reasoning-effort medium
19
19
  ```
20
20
 
21
21
  `connect` 会安装当前 npm 包内置的 daemon,并使用页面生成的 WebSocket endpoint、Token 和执行器 ID 建立连接。选择 Qoder 时需要 Node.js 20+;runtime 会在缺少 `qodercli` 时自动通过 npm 安装,并在尚未登录时打开 Qoder 浏览器登录。Claude Code 和 Codex CLI 仍需提前安装并登录。runtime 会继承当前用户的 HOME、环境变量和 CLI 登录状态。
@@ -66,7 +66,7 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
66
66
  也可以直接提交到本地 API:
67
67
 
68
68
  ```bash
69
- npx -y autowonder@0.2.146 dispatch ./assignment.json
69
+ npx -y autowonder@0.2.148 dispatch ./assignment.json
70
70
  ```
71
71
 
72
72
  ## 上传工单附件
@@ -74,17 +74,17 @@ npx -y autowonder@0.2.146 dispatch ./assignment.json
74
74
  把本地需求/设计文档直接上传到工单,避免在会话里传递大文件:
75
75
 
76
76
  ```bash
77
- npx -y autowonder@0.2.146 workitem upload --server-url <autowonder-server-url> --workitem-id <id> --file <filepath-1> --file <filepath-2> --json
77
+ npx -y autowonder@0.2.148 workitem upload --server-url <autowonder-server-url> --workitem-id <id> --file <filepath-1> --file <filepath-2> --json
78
78
  ```
79
79
 
80
- 上传令牌通过 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)。
80
+ 上传令牌通过 MCP 工具 `autowonder.workitem_cli_upload_token` 签发,经 `--token` 或 `AUTOWONDER_UPLOAD_TOKEN` 环境变量传入。`--file` 可重复指定多个文件;`--json` 输出机器可读结果。接受的文件格式:Markdown(`.md`、`.markdown`)、文本文档(`.txt`、`.html`)、PDF(`.pdf`)与静态图片(`.png`、`.jpg`、`.jpeg`、`.webp`);最多 10 个附件、单个不超过 5 MB、合计不超过 20 MB。失败时按错误类型返回不同退出码(401→3、403→4、404→5、409→6、413→7、其他 4xx→8、网络/重定向→9)。
81
81
 
82
82
  ## 上传定时任务附件
83
83
 
84
84
  把需求/设计文档上传到 7x24 定时任务,用法与工单附件一致(同一套上传令牌与预检规则):
85
85
 
86
86
  ```bash
87
- npx -y autowonder@0.2.146 scheduled-task upload --server-url <autowonder-server-url> --scheduled-task-id <id> --file <filepath-1> --file <filepath-2> --json
87
+ npx -y autowonder@0.2.148 scheduled-task upload --server-url <autowonder-server-url> --scheduled-task-id <id> --file <filepath-1> --file <filepath-2> --json
88
88
  ```
89
89
 
90
90
  上传令牌同样通过 `autowonder.workitem_cli_upload_token` 签发(令牌为用户级,对当前可修改的任意定时任务生效),经 `--token` 或 `AUTOWONDER_UPLOAD_TOKEN` 传入;退出码约定与 `workitem upload` 相同。
@@ -92,8 +92,8 @@ npx -y autowonder@0.2.146 scheduled-task upload --server-url <autowonder-server-
92
92
  ## 管理 daemon
93
93
 
94
94
  ```bash
95
- npx -y autowonder@0.2.146 status
96
- npx -y autowonder@0.2.146 stop
95
+ npx -y autowonder@0.2.148 status
96
+ npx -y autowonder@0.2.148 stop
97
97
  ```
98
98
 
99
99
  默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
@@ -101,7 +101,7 @@ npx -y autowonder@0.2.146 stop
101
101
  ## 调试
102
102
 
103
103
  ```bash
104
- npx -y autowonder@0.2.146 connect ... --debug
104
+ npx -y autowonder@0.2.148 connect ... --debug
105
105
  ```
106
106
 
107
107
  `--debug` 会让 CLI 以 `AUTOWONDER_DEBUG=1` 启动 daemon,把完整的 daemon 与 agent 活动(runtime 事件流、provider 事件解码、重试退避与会话门等待、空闲时的阻塞点)同时输出到控制台和会话调试日志。调试日志不做脱敏,仅用于本机排障;不传 `--debug` 时该环境变量不会注入。
package/bin/cli.js CHANGED
@@ -53,9 +53,10 @@ function detectProvider() {
53
53
  }
54
54
 
55
55
  const QODER_MODELS = new Set([
56
- "auto", "ultimate", "performance", "efficient", "lite", "cmodel",
57
- "qmodel_preview", "qmodel_latest", "qmodel", "kmodel_latest", "kmodel",
58
- "gm51model", "dmodel", "dfmodel", "mmodel", "qmodel_38max", "qwen3.8-max-preview",
56
+ "auto", "ultimate", "performance", "efficient", "lite",
57
+ "qmodel_38max", "qfmodel", "qmodel_latest", "qmodel",
58
+ "kmodel_latest", "kmodel", "gmodel", "gfmodel",
59
+ "dmodel", "dfmodel", "mmodel",
59
60
  ]);
60
61
  const QODER_CONTEXT_WINDOWS = new Set(["1000000", "400000", "260000"]);
61
62
  const QODER_REASONING_EFFORTS = new Set(["none", "low", "medium", "high", "xhigh", "max"]);
@@ -10,7 +10,7 @@ const http = require("node:http");
10
10
  const https = require("node:https");
11
11
  const path = require("node:path");
12
12
 
13
- const ALLOWED_EXTENSIONS = [".md", ".markdown", ".png", ".jpg", ".jpeg", ".webp"];
13
+ const ALLOWED_EXTENSIONS = [".md", ".markdown", ".txt", ".html", ".pdf", ".png", ".jpg", ".jpeg", ".webp"];
14
14
  const MAX_FILES = 10;
15
15
  const MAX_FILE_SIZE_BYTES = 5 * 1024 * 1024;
16
16
  const MAX_TOTAL_SIZE_BYTES = 20 * 1024 * 1024;
@@ -20,6 +20,9 @@ const UPLOAD_PATH_SUFFIX = "/requirement-documents";
20
20
  const CONTENT_TYPES = {
21
21
  ".md": "text/markdown",
22
22
  ".markdown": "text/markdown",
23
+ ".txt": "text/plain",
24
+ ".html": "text/html",
25
+ ".pdf": "application/pdf",
23
26
  ".png": "image/png",
24
27
  ".jpg": "image/jpeg",
25
28
  ".jpeg": "image/jpeg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autowonder",
3
- "version": "0.2.146",
3
+ "version": "0.2.148",
4
4
  "description": "AutoWonder local runtime — execute AI agent dispatch packages on your machine",
5
5
  "bin": {
6
6
  "autowonder": "bin/cli.js"