autowonder 0.2.116 → 0.2.117
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 +6 -6
- package/bin/cli.js +15 -3
- 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,13 +6,13 @@ 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.
|
|
9
|
+
npx -y autowonder@0.2.117 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
|
# Claude Code
|
|
12
|
-
npx -y autowonder@0.2.
|
|
12
|
+
npx -y autowonder@0.2.117 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider claude
|
|
13
13
|
|
|
14
14
|
# Codex CLI
|
|
15
|
-
npx -y autowonder@0.2.
|
|
15
|
+
npx -y autowonder@0.2.117 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider codex --model gpt-5.5 --reasoning-effort medium
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
`connect` 会安装当前 npm 包内置的 daemon,并使用页面生成的 WebSocket endpoint、Token 和执行器 ID 建立连接。选择 Qoder 时需要 Node.js 20+;runtime 会在缺少 `qodercli` 时自动通过 npm 安装,并在尚未登录时打开 Qoder 浏览器登录。Claude Code 和 Codex CLI 仍需提前安装并登录。runtime 会继承当前用户的 HOME、环境变量和 CLI 登录状态。
|
|
@@ -57,14 +57,14 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
|
|
|
57
57
|
也可以直接提交到本地 API:
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
npx -y autowonder@0.2.
|
|
60
|
+
npx -y autowonder@0.2.117 dispatch ./assignment.json
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## 管理 daemon
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
npx -y autowonder@0.2.
|
|
67
|
-
npx -y autowonder@0.2.
|
|
66
|
+
npx -y autowonder@0.2.117 status
|
|
67
|
+
npx -y autowonder@0.2.117 stop
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
|
package/bin/cli.js
CHANGED
|
@@ -82,8 +82,14 @@ function findExecutable(name) {
|
|
|
82
82
|
return "";
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
function spawnQoderSync(executable, args, options = {}) {
|
|
86
|
+
// npm exposes package binaries as .cmd shims on Windows. CreateProcess
|
|
87
|
+
// cannot execute those shims directly, so let ComSpec resolve them.
|
|
88
|
+
return spawnSync(executable, args, { ...options, shell: IS_WIN32 });
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
function qoderAuthenticated(executable) {
|
|
86
|
-
const result =
|
|
92
|
+
const result = spawnQoderSync(executable, ["--list-models"], {
|
|
87
93
|
encoding: "utf8",
|
|
88
94
|
stdio: ["ignore", "pipe", "pipe"],
|
|
89
95
|
timeout: 20000,
|
|
@@ -159,8 +165,14 @@ async function ensureQoderReady() {
|
|
|
159
165
|
if (!executable) return false;
|
|
160
166
|
if (!qoderAuthenticated(executable)) {
|
|
161
167
|
log("Qoder login is required. Opening browser login...");
|
|
162
|
-
const login =
|
|
163
|
-
if (login.status !== 0
|
|
168
|
+
const login = spawnQoderSync(executable, ["login"], { stdio: "inherit" });
|
|
169
|
+
if (login.status !== 0) {
|
|
170
|
+
const detail = login.error?.message || `exit status ${login.status}`;
|
|
171
|
+
error(`Qoder login command failed: ${detail}`);
|
|
172
|
+
error(`Run ${qoderLoginCommand(executable)} and retry.`);
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
if (!(await qoderAuthenticatedAfterLogin(executable))) {
|
|
164
176
|
error(`Qoder login did not complete. Run ${qoderLoginCommand(executable)} and retry.`);
|
|
165
177
|
return false;
|
|
166
178
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|