autowonder 0.2.18 → 0.2.19
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.19 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.19 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.19 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 登录状态。
|
|
@@ -49,14 +49,14 @@ mv "$queue/.assignment.tmp" "$queue/assignment.json"
|
|
|
49
49
|
也可以直接提交到本地 API:
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
npx -y autowonder@0.2.
|
|
52
|
+
npx -y autowonder@0.2.19 dispatch ./assignment.json
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
## 管理 daemon
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
npx -y autowonder@0.2.
|
|
59
|
-
npx -y autowonder@0.2.
|
|
58
|
+
npx -y autowonder@0.2.19 status
|
|
59
|
+
npx -y autowonder@0.2.19 stop
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
默认 API 是 `http://127.0.0.1:34989`,日志位于 `~/.autowonder/daemon.log`。npm 包不包含任何 agent、MCP 或服务端凭证。
|
package/bin/cli.js
CHANGED
|
@@ -282,7 +282,7 @@ function buildFromSource() {
|
|
|
282
282
|
// ─── Commands ────────────────────────────────────────────────────────
|
|
283
283
|
|
|
284
284
|
async function cmdConnect(args) {
|
|
285
|
-
const flags = parseFlags(args, ["ws-url", "token", "executor-id", "provider", "name", "max-tasks", "model", "reasoning-effort", "context-window"]);
|
|
285
|
+
const flags = parseFlags(args, ["ws-url", "token", "executor-id", "provider", "name", "max-tasks", "model", "reasoning-effort", "context-window", "memory-mode"]);
|
|
286
286
|
|
|
287
287
|
if (!flags["ws-url"] || !flags.token || !flags["executor-id"]) {
|
|
288
288
|
error("Usage: autowonder connect --ws-url <url> --token <token> --executor-id <id> [--provider qoder]");
|
|
@@ -313,6 +313,11 @@ async function cmdConnect(args) {
|
|
|
313
313
|
error("--context-window must be a positive integer");
|
|
314
314
|
process.exit(1);
|
|
315
315
|
}
|
|
316
|
+
const memoryMode = flags["memory-mode"] || "platform";
|
|
317
|
+
if (!["platform", "provider-local", "none"].includes(memoryMode)) {
|
|
318
|
+
error("--memory-mode must be one of: platform, provider-local, none");
|
|
319
|
+
process.exit(1);
|
|
320
|
+
}
|
|
316
321
|
|
|
317
322
|
const executorId = flags["executor-id"];
|
|
318
323
|
|
|
@@ -323,6 +328,7 @@ async function cmdConnect(args) {
|
|
|
323
328
|
provider,
|
|
324
329
|
name: flags.name || `daemon_${provider}_${executorId}`,
|
|
325
330
|
maxTasks: parseInt(flags["max-tasks"] || "10", 10),
|
|
331
|
+
memoryMode,
|
|
326
332
|
};
|
|
327
333
|
saveConfig(config);
|
|
328
334
|
|
|
@@ -344,6 +350,7 @@ async function cmdConnect(args) {
|
|
|
344
350
|
AUTOWONDER_SERVER_WS_URL: config.serverUrl,
|
|
345
351
|
AUTOWONDER_EXECUTOR_TOKEN: config.token,
|
|
346
352
|
AUTOWONDER_EXECUTOR_ID: executorId,
|
|
353
|
+
AUTOWONDER_MEMORY_MODE: config.memoryMode,
|
|
347
354
|
};
|
|
348
355
|
if (flags.model) env.AUTOWONDER_MODEL = flags.model;
|
|
349
356
|
if (flags["reasoning-effort"]) env.AUTOWONDER_REASONING_EFFORT = flags["reasoning-effort"];
|
|
@@ -545,6 +552,7 @@ function cmdHelp() {
|
|
|
545
552
|
--model <model> Default model for Codex or Qoder
|
|
546
553
|
--reasoning-effort <level> Default reasoning effort for Codex or Qoder
|
|
547
554
|
--context-window <n> Qoder context window (positive integer)
|
|
555
|
+
--memory-mode <mode> Memory: platform, provider-local, or none (default: platform)
|
|
548
556
|
--name <name> Runtime name (default: provider + executor ID)
|
|
549
557
|
-h, --help Show this help
|
|
550
558
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|