autowonder 0.2.2 → 0.2.3
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,13 +6,13 @@ 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.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
|
|
10
10
|
|
|
11
11
|
# Claude Code
|
|
12
|
-
npx -y autowonder@0.2.
|
|
12
|
+
npx -y autowonder@0.2.3 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.3 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.
|
|
34
|
+
npx -y autowonder@0.2.3 dispatch ./assignment.json
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## 管理 daemon
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npx -y autowonder@0.2.
|
|
41
|
-
npx -y autowonder@0.2.
|
|
40
|
+
npx -y autowonder@0.2.3 status
|
|
41
|
+
npx -y autowonder@0.2.3 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
|
@@ -272,7 +272,7 @@ function buildFromSource() {
|
|
|
272
272
|
// ─── Commands ────────────────────────────────────────────────────────
|
|
273
273
|
|
|
274
274
|
async function cmdConnect(args) {
|
|
275
|
-
const flags = parseFlags(args, ["ws-url", "token", "executor-id", "provider", "name", "max-tasks"]);
|
|
275
|
+
const flags = parseFlags(args, ["ws-url", "token", "executor-id", "provider", "name", "max-tasks", "model", "reasoning-effort", "context-window"]);
|
|
276
276
|
|
|
277
277
|
if (!flags["ws-url"] || !flags.token || !flags["executor-id"]) {
|
|
278
278
|
error("Usage: autowonder connect --ws-url <url> --token <token> --executor-id <id> [--provider qoder]");
|
|
@@ -290,6 +290,20 @@ async function cmdConnect(args) {
|
|
|
290
290
|
process.exit(1);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
const hasProviderSettings = Boolean(flags.model || flags["reasoning-effort"]);
|
|
294
|
+
if (hasProviderSettings && provider !== "codex" && provider !== "qoder") {
|
|
295
|
+
error("--model and --reasoning-effort are supported only for codex and qoder");
|
|
296
|
+
process.exit(1);
|
|
297
|
+
}
|
|
298
|
+
if (flags["context-window"] && provider !== "qoder") {
|
|
299
|
+
error("--context-window is supported only for qoder");
|
|
300
|
+
process.exit(1);
|
|
301
|
+
}
|
|
302
|
+
if (flags["context-window"] && !/^[1-9][0-9]*$/.test(flags["context-window"])) {
|
|
303
|
+
error("--context-window must be a positive integer");
|
|
304
|
+
process.exit(1);
|
|
305
|
+
}
|
|
306
|
+
|
|
293
307
|
const executorId = flags["executor-id"];
|
|
294
308
|
|
|
295
309
|
const config = {
|
|
@@ -321,6 +335,9 @@ async function cmdConnect(args) {
|
|
|
321
335
|
AUTOWONDER_EXECUTOR_TOKEN: config.token,
|
|
322
336
|
AUTOWONDER_EXECUTOR_ID: executorId,
|
|
323
337
|
};
|
|
338
|
+
if (flags.model) env.AUTOWONDER_MODEL = flags.model;
|
|
339
|
+
if (flags["reasoning-effort"]) env.AUTOWONDER_REASONING_EFFORT = flags["reasoning-effort"];
|
|
340
|
+
if (flags["context-window"]) env.AUTOWONDER_CONTEXT_WINDOW = flags["context-window"];
|
|
324
341
|
|
|
325
342
|
const child = spawn(DAEMON_BIN, [], { env, stdio: "inherit" });
|
|
326
343
|
child.on("exit", (code) => process.exit(code || 0));
|
|
@@ -515,6 +532,9 @@ function cmdHelp() {
|
|
|
515
532
|
--ws-url <url> Executor WebSocket endpoint
|
|
516
533
|
--token <token> Executor authentication token
|
|
517
534
|
--executor-id <id> Executor ID
|
|
535
|
+
--model <model> Default model for Codex or Qoder
|
|
536
|
+
--reasoning-effort <level> Default reasoning effort for Codex or Qoder
|
|
537
|
+
--context-window <n> Qoder context window (positive integer)
|
|
518
538
|
--name <name> Runtime name (default: provider + executor ID)
|
|
519
539
|
-h, --help Show this help
|
|
520
540
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|