autowonder 0.2.3 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/bin/cli.js +12 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -6,13 +6,13 @@ AutoWonder 本地 agent runtime。安装后启动 daemon,持续轮询本地 as
6
6
 
7
7
  ```bash
8
8
  # Qoder CLI
9
- npx -y autowonder@0.2.3 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qoder --model Qwen3.7-Max --reasoning-effort medium --context-window 131072
9
+ npx -y autowonder@0.2.4 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider qoder --model Qwen3.7-Max --reasoning-effort medium --context-window 131072
10
10
 
11
11
  # Claude Code
12
- npx -y autowonder@0.2.3 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider claude
12
+ npx -y autowonder@0.2.4 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.3 connect --ws-url <wss-endpoint> --token <executor-token> --executor-id <executor-id> --provider codex --model gpt-5.5 --reasoning-effort medium
15
+ npx -y autowonder@0.2.4 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 CLI、Claude Code 或 Codex CLI;runtime 会继承当前用户的 HOME、环境变量和 CLI 登录状态。
@@ -31,14 +31,14 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
31
31
  也可以直接提交到本地 API:
32
32
 
33
33
  ```bash
34
- npx -y autowonder@0.2.3 dispatch ./assignment.json
34
+ npx -y autowonder@0.2.4 dispatch ./assignment.json
35
35
  ```
36
36
 
37
37
  ## 管理 daemon
38
38
 
39
39
  ```bash
40
- npx -y autowonder@0.2.3 status
41
- npx -y autowonder@0.2.3 stop
40
+ npx -y autowonder@0.2.4 status
41
+ npx -y autowonder@0.2.4 stop
42
42
  ```
43
43
 
44
44
  默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
package/bin/cli.js CHANGED
@@ -170,6 +170,17 @@ function binaryExists() {
170
170
  } catch { return false; }
171
171
  }
172
172
 
173
+ function installBundledBinary(source, destination) {
174
+ const temporary = `${destination}.tmp-${process.pid}-${crypto.randomUUID()}`;
175
+ try {
176
+ fs.copyFileSync(source, temporary);
177
+ fs.chmodSync(temporary, 0o755);
178
+ fs.renameSync(temporary, destination);
179
+ } finally {
180
+ try { fs.unlinkSync(temporary); } catch {}
181
+ }
182
+ }
183
+
173
184
  // ─── Binary Installation ─────────────────────────────────────────────
174
185
 
175
186
  async function installBinary(options = {}) {
@@ -185,8 +196,7 @@ async function installBinary(options = {}) {
185
196
  // Priority 1: bundled binary in npm package (vendor/)
186
197
  const bundledPath = path.join(BUNDLED_BIN_DIR, `autowonder-daemon-${platform}`);
187
198
  if (fs.existsSync(bundledPath)) {
188
- fs.copyFileSync(bundledPath, DAEMON_BIN);
189
- fs.chmodSync(DAEMON_BIN, 0o755);
199
+ installBundledBinary(bundledPath, DAEMON_BIN);
190
200
  log(`Installed from bundled binary: ${DAEMON_BIN}`);
191
201
  return true;
192
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autowonder",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "AutoWonder local runtime — execute AI agent dispatch packages on your machine",
5
5
  "bin": {
6
6
  "autowonder": "bin/cli.js"