wildcrane-runner 0.6.22 → 0.6.23
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 +1 -0
- package/dist/launcher.mjs +25 -6
- package/dist/runner.mjs +23 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,7 @@ wildcrane-runner
|
|
|
20
20
|
- **看板与技能**:通过插件连接云端项目;插件自带 kanban 技能,无需手动安装。Runner 为其他 Agent 准备项目技能并维护提交保护,保留用户文件和已有钩子。
|
|
21
21
|
|
|
22
22
|
- **Node**: 22 or newer.
|
|
23
|
+
- **代理**:宿主未传入代理时,在 `~/.wildcrane/proxy.env` 写入 `HTTPS_PROXY=...` 等代理变量并重启 Runner。支持 HTTP、HTTPS、ALL 和 NO_PROXY 的大小写形式。Runner 从此文件启用自身的 HTTP 代理需要 Node.js 24.14 或更新版本。
|
|
23
24
|
- **One computer per account**: a second computer is refused while the first is connected.
|
|
24
25
|
- **Folders**: tasks run in `~/.wildcrane/work/`, or in a project folder listed in
|
|
25
26
|
`~/.wildcrane/projects.json` (`{ "projects": ["/path/to/project"] }`). Any other folder is
|
package/dist/launcher.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.23 — built by runner/scripts/build.mjs. Do not edit.
|
|
2
2
|
import { createRequire as __ai4kanbanRequire } from 'node:module'
|
|
3
3
|
const require = __ai4kanbanRequire(import.meta.url)
|
|
4
4
|
|
|
@@ -9,13 +9,32 @@ import { fileURLToPath } from "node:url";
|
|
|
9
9
|
// src/home.ts
|
|
10
10
|
import crypto from "node:crypto";
|
|
11
11
|
import fs from "node:fs";
|
|
12
|
+
import http from "node:http";
|
|
12
13
|
import os from "node:os";
|
|
13
14
|
import path from "node:path";
|
|
15
|
+
import { parseEnv } from "node:util";
|
|
14
16
|
function runnerHome() {
|
|
15
17
|
return process.env.WILDCRANE_HOME || path.join(os.homedir(), ".wildcrane");
|
|
16
18
|
}
|
|
17
19
|
function useRunnerHome() {
|
|
18
20
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
21
|
+
loadProxy();
|
|
22
|
+
}
|
|
23
|
+
function loadProxy() {
|
|
24
|
+
try {
|
|
25
|
+
const config = parseEnv(fs.readFileSync(path.join(runnerHome(), "proxy.env"), "utf8"));
|
|
26
|
+
for (const key of ["HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY"]) {
|
|
27
|
+
const lower = key.toLowerCase();
|
|
28
|
+
const value = config[lower] ?? config[key];
|
|
29
|
+
if (value !== void 0 && process.env[key] === void 0 && process.env[lower] === void 0) {
|
|
30
|
+
process.env[key] = value;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const network = http;
|
|
34
|
+
network.setGlobalProxyFromEnv?.();
|
|
35
|
+
} catch (error) {
|
|
36
|
+
if (error.code !== "ENOENT") console.error("runner: could not load proxy.env");
|
|
37
|
+
}
|
|
19
38
|
}
|
|
20
39
|
function machineId() {
|
|
21
40
|
const file = path.join(runnerHome(), "machine.json");
|
|
@@ -108,7 +127,7 @@ function status(line) {
|
|
|
108
127
|
}
|
|
109
128
|
|
|
110
129
|
// src/protocol.ts
|
|
111
|
-
var VERSION = true ? "0.6.
|
|
130
|
+
var VERSION = true ? "0.6.23" : "0.0.0";
|
|
112
131
|
var EXIT_REFUSED = 10;
|
|
113
132
|
var EXIT_OUTDATED = 11;
|
|
114
133
|
var EXIT_UPDATE = 12;
|
|
@@ -572,7 +591,7 @@ var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
|
572
591
|
// src/settings-server.ts
|
|
573
592
|
import crypto3 from "node:crypto";
|
|
574
593
|
import fs5 from "node:fs";
|
|
575
|
-
import
|
|
594
|
+
import http2 from "node:http";
|
|
576
595
|
import path6 from "node:path";
|
|
577
596
|
|
|
578
597
|
// src/settings-browser.ts
|
|
@@ -789,7 +808,7 @@ async function startSettingsServer(action) {
|
|
|
789
808
|
const json = (res, code, value) => {
|
|
790
809
|
res.writeHead(code, { "content-type": "application/json; charset=utf-8" }).end(JSON.stringify(value));
|
|
791
810
|
};
|
|
792
|
-
const server =
|
|
811
|
+
const server = http2.createServer(async (req, res) => {
|
|
793
812
|
res.setHeader("cache-control", "no-store");
|
|
794
813
|
res.setHeader("referrer-policy", "no-referrer");
|
|
795
814
|
res.setHeader("x-content-type-options", "nosniff");
|
|
@@ -4927,7 +4946,7 @@ function runnerSettingsSupport() {
|
|
|
4927
4946
|
// src/signin.ts
|
|
4928
4947
|
import { spawn as spawn5 } from "node:child_process";
|
|
4929
4948
|
import crypto6 from "node:crypto";
|
|
4930
|
-
import
|
|
4949
|
+
import http3 from "node:http";
|
|
4931
4950
|
|
|
4932
4951
|
// src/settings-control.ts
|
|
4933
4952
|
import fs15 from "node:fs";
|
|
@@ -4991,7 +5010,7 @@ async function signIn(options = {}) {
|
|
|
4991
5010
|
};
|
|
4992
5011
|
const answered = new Promise((resolve2) => finish = resolve2);
|
|
4993
5012
|
let answering = false;
|
|
4994
|
-
const server =
|
|
5013
|
+
const server = http3.createServer(async (req, res) => {
|
|
4995
5014
|
const asked = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
4996
5015
|
if (asked.pathname !== "/signed-in" || answering) {
|
|
4997
5016
|
res.writeHead(404).end();
|
package/dist/runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// wildcrane-runner 0.6.
|
|
1
|
+
// wildcrane-runner 0.6.23 — built by runner/scripts/build.mjs. Do not edit.
|
|
2
2
|
import { createRequire as __ai4kanbanRequire } from 'node:module'
|
|
3
3
|
const require = __ai4kanbanRequire(import.meta.url)
|
|
4
4
|
var __create = Object.create;
|
|
@@ -84582,13 +84582,32 @@ var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
|
84582
84582
|
// src/home.ts
|
|
84583
84583
|
import crypto from "node:crypto";
|
|
84584
84584
|
import fs2 from "node:fs";
|
|
84585
|
+
import http from "node:http";
|
|
84585
84586
|
import os2 from "node:os";
|
|
84586
84587
|
import path3 from "node:path";
|
|
84588
|
+
import { parseEnv } from "node:util";
|
|
84587
84589
|
function runnerHome() {
|
|
84588
84590
|
return process.env.WILDCRANE_HOME || path3.join(os2.homedir(), ".wildcrane");
|
|
84589
84591
|
}
|
|
84590
84592
|
function useRunnerHome() {
|
|
84591
84593
|
process.env.AI4KANBAN_HOME = runnerHome();
|
|
84594
|
+
loadProxy();
|
|
84595
|
+
}
|
|
84596
|
+
function loadProxy() {
|
|
84597
|
+
try {
|
|
84598
|
+
const config = parseEnv(fs2.readFileSync(path3.join(runnerHome(), "proxy.env"), "utf8"));
|
|
84599
|
+
for (const key of ["HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY"]) {
|
|
84600
|
+
const lower = key.toLowerCase();
|
|
84601
|
+
const value = config[lower] ?? config[key];
|
|
84602
|
+
if (value !== void 0 && process.env[key] === void 0 && process.env[lower] === void 0) {
|
|
84603
|
+
process.env[key] = value;
|
|
84604
|
+
}
|
|
84605
|
+
}
|
|
84606
|
+
const network = http;
|
|
84607
|
+
network.setGlobalProxyFromEnv?.();
|
|
84608
|
+
} catch (error) {
|
|
84609
|
+
if (error.code !== "ENOENT") console.error("runner: could not load proxy.env");
|
|
84610
|
+
}
|
|
84592
84611
|
}
|
|
84593
84612
|
function machineId() {
|
|
84594
84613
|
const file2 = path3.join(runnerHome(), "machine.json");
|
|
@@ -84663,7 +84682,7 @@ function status(line) {
|
|
|
84663
84682
|
}
|
|
84664
84683
|
|
|
84665
84684
|
// src/protocol.ts
|
|
84666
|
-
var VERSION = true ? "0.6.
|
|
84685
|
+
var VERSION = true ? "0.6.23" : "0.0.0";
|
|
84667
84686
|
var AKB_VERSION = true ? "0.11.19" : "0.0.0";
|
|
84668
84687
|
var AKB_CONTRACT = true ? 7 : 0;
|
|
84669
84688
|
var EXIT_REFUSED = 10;
|
|
@@ -96428,7 +96447,7 @@ function startRunner(options) {
|
|
|
96428
96447
|
// src/signin.ts
|
|
96429
96448
|
import { spawn as spawn5 } from "node:child_process";
|
|
96430
96449
|
import crypto7 from "node:crypto";
|
|
96431
|
-
import
|
|
96450
|
+
import http2 from "node:http";
|
|
96432
96451
|
var WAIT_MS = 10 * 60 * 1e3;
|
|
96433
96452
|
var CRANE = "M2 55.75C2 55.69 2.69 55.09 3.55 54.37L5.09 53.1L6.61 53.1L8.13 53.1L12.49 49.87C14.9 48.07 16.83 46.58 16.77 46.53C16.75 46.47 15.56 46.64 14.15 46.89C12.74 47.13 11.55 47.3 11.53 47.24C11.47 47.19 12.02 46.22 12.71 45.06L14.01 42.96L18.21 41.34C20.53 40.45 22.41 39.65 22.41 39.57C22.41 39.49 21.27 38.55 19.92 37.5C15.92 34.4 13.13 31.31 10.86 27.47L10.01 26.01L10.53 26.18C10.84 26.26 12.96 27.2 15.28 28.25C17.6 29.32 19.53 30.12 19.59 30.07C19.64 30.01 17.68 28.69 15.25 27.11C12.8 25.57 10.56 23.97 10.31 23.58C9.15 21.95 7.25 17.5 7.25 16.46C7.25 16.26 10.01 17.95 13.38 20.18C16.77 22.45 19.73 24.38 19.95 24.49C20.42 24.74 20.25 24.57 13.9 19.02L9.18 14.88L8.6 13.36C7.72 10.96 6.97 7.54 6.97 5.77L6.97 4.14L9.4 6.46C12.66 9.61 15.56 12.01 23.57 18.25C27.32 21.18 30.5 23.72 30.64 23.91C30.8 24.08 31.68 26.51 32.6 29.3L34.28 34.35L35.72 35.65C37.54 37.3 37.98 37.47 36.85 36.09L35.96 35.01L37.12 34.71C39.11 34.21 40.16 33.52 42.54 31.12L44.8 28.8L46.02 28.96C46.71 29.07 47.56 29.07 47.95 28.96L48.67 28.8L48.67 28.25L48.67 27.69L49.27 27.69C49.63 27.69 50.1 27.58 50.32 27.42L50.71 27.17L51.01 27.42C51.18 27.56 52.78 27.86 54.58 28.08C56.37 28.3 57.86 28.52 57.94 28.58C58 28.63 56.73 28.85 55.13 29.05C53.53 29.24 50.96 29.77 49.44 30.21C47.92 30.65 46.57 31.01 46.43 31.01C46.29 31.01 44.22 32.97 41.85 35.37C37.57 39.62 34.42 42.14 30.83 44.15L29.14 45.09L25.97 45.73L22.77 46.39L14.59 51.11L6.42 55.86L4.21 55.86C2.99 55.86 2 55.8 2 55.75Z";
|
|
96434
96453
|
var CREST = "M44.97 27.45C44.61 26.89 46.57 25.76 47.87 25.76C48.72 25.76 50.6 26.7 50.6 27.14C50.6 27.64 45.27 27.97 44.97 27.45Z";
|
|
@@ -96459,7 +96478,7 @@ async function signIn(options = {}) {
|
|
|
96459
96478
|
};
|
|
96460
96479
|
const answered = new Promise((resolve2) => finish2 = resolve2);
|
|
96461
96480
|
let answering = false;
|
|
96462
|
-
const server =
|
|
96481
|
+
const server = http2.createServer(async (req, res) => {
|
|
96463
96482
|
const asked = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
96464
96483
|
if (asked.pathname !== "/signed-in" || answering) {
|
|
96465
96484
|
res.writeHead(404).end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane-runner",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.23",
|
|
4
4
|
"description": "WildCrane's Local Runner — connects this computer to WildCrane and runs its jobs on your local Claude Code, Codex, OpenCode or Cursor.",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"homepage": "https://wildcrane.ai/",
|