autowonder 0.2.16 → 0.2.18
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 +24 -6
- package/package.json +1 -1
- package/scripts/build-and-publish.sh +5 -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/README.md
CHANGED
|
@@ -6,17 +6,35 @@ AutoWonder 本地 agent runtime。安装后启动 daemon,持续轮询本地 as
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# Qoder CLI
|
|
9
|
-
npx -y autowonder@0.2.
|
|
9
|
+
npx -y autowonder@0.2.18 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.
|
|
12
|
+
npx -y autowonder@0.2.18 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.18 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 登录状态。
|
|
19
19
|
|
|
20
|
+
## 自动更新
|
|
21
|
+
|
|
22
|
+
安装首个支持自动更新的正式版本后,daemon 会直接查询 npm 的 `autowonder/latest`。发现更高的稳定版本时,它会在后台下载 npm tarball,校验 SHA-512 SRI、包版本和平台二进制;只有在没有运行/恢复任务且结果 outbox 已收到服务端确认时,才会暂停接单、原子切换二进制并自动重启。启动失败会恢复上一个二进制。
|
|
23
|
+
|
|
24
|
+
用户不需要再次手工 stop、install 和 start。源码构建、开发版本、预发布版本和 Windows 默认不自动更新。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# 禁用自动更新
|
|
28
|
+
AUTOWONDER_AUTO_UPDATE=false npx -y autowonder@latest connect ...
|
|
29
|
+
|
|
30
|
+
# 调整检查周期或使用兼容的 npm registry
|
|
31
|
+
AUTOWONDER_AUTO_UPDATE_INTERVAL=1h \
|
|
32
|
+
AUTOWONDER_NPM_REGISTRY=https://registry.npmjs.org \
|
|
33
|
+
npx -y autowonder@latest connect ...
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
候选版本缓存在 `~/.autowonder/updates/`;当前二进制和单个回滚副本位于 `~/.autowonder/bin/`。`GET /health` 会返回 `daemonVersion`、`updateState`、`updateTarget` 和 `updateError`。
|
|
37
|
+
|
|
20
38
|
## 提交 assignment
|
|
21
39
|
|
|
22
40
|
daemon 默认轮询 `~/autowonder_workspaces/assignments/*.json`。队列里放 assignment JSON,不放 package zip;JSON 的 `taskPackageRef.downloadUrl` 应指向可下载的 OSS、HTTP 或本地 package 地址。
|
|
@@ -31,14 +49,14 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
|
|
|
31
49
|
也可以直接提交到本地 API:
|
|
32
50
|
|
|
33
51
|
```bash
|
|
34
|
-
npx -y autowonder@0.2.
|
|
52
|
+
npx -y autowonder@0.2.18 dispatch ./assignment.json
|
|
35
53
|
```
|
|
36
54
|
|
|
37
55
|
## 管理 daemon
|
|
38
56
|
|
|
39
57
|
```bash
|
|
40
|
-
npx -y autowonder@0.2.
|
|
41
|
-
npx -y autowonder@0.2.
|
|
58
|
+
npx -y autowonder@0.2.18 status
|
|
59
|
+
npx -y autowonder@0.2.18 stop
|
|
42
60
|
```
|
|
43
61
|
|
|
44
62
|
默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
|
package/package.json
CHANGED
|
@@ -56,6 +56,10 @@ else
|
|
|
56
56
|
git clone --depth 1 "$SOURCE_REPO" "$SOURCE_DIR"
|
|
57
57
|
fi
|
|
58
58
|
|
|
59
|
+
version="$(node -p "require('$PKG_DIR/package.json').version")"
|
|
60
|
+
commit="$(git -C "$SOURCE_DIR" rev-parse --short=12 HEAD 2>/dev/null || printf unknown)"
|
|
61
|
+
ldflags="-s -w -X main.buildPackageName=autowonder -X main.buildVersion=$version -X main.buildCommit=$commit"
|
|
62
|
+
|
|
59
63
|
# Build for all platforms
|
|
60
64
|
rm -rf "$VENDOR_DIR"
|
|
61
65
|
mkdir -p "$VENDOR_DIR"
|
|
@@ -71,7 +75,7 @@ for i in "${!platforms[@]}"; do
|
|
|
71
75
|
output="$VENDOR_DIR/autowonder-daemon-${goos}-${goarch}"
|
|
72
76
|
|
|
73
77
|
echo "Building $platform..."
|
|
74
|
-
(cd "$SOURCE_DIR" && CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -o "$output" -ldflags="
|
|
78
|
+
(cd "$SOURCE_DIR" && CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" go build -o "$output" -ldflags="$ldflags" ./cmd/autowonder-daemon)
|
|
75
79
|
chmod +x "$output"
|
|
76
80
|
echo " -> $output ($(du -h "$output" | cut -f1))"
|
|
77
81
|
done
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|