wildcrane-runner 0.6.65 → 0.6.66

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.51 — built by runner/scripts/build.mjs. Do not edit.
2
+ // ai4kanban 0.11.52 — built by runner/scripts/build.mjs. Do not edit.
3
3
  import { createRequire as __ai4kanbanRequire } from 'node:module'
4
4
  const require = __ai4kanbanRequire(import.meta.url)
5
5
  var __create = Object.create;
@@ -4205,7 +4205,7 @@ var init_package = __esm({
4205
4205
  "../cli/package.json"() {
4206
4206
  package_default = {
4207
4207
  name: "wildcrane",
4208
- version: "0.11.51",
4208
+ version: "0.11.52",
4209
4209
  akbContract: 15,
4210
4210
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
4211
4211
  keywords: [
@@ -5295,7 +5295,8 @@ function createCodexConnection(argv) {
5295
5295
  }
5296
5296
  }
5297
5297
  if (roots.length) server.push("-c", `sandbox_workspace_write.writable_roots=${JSON.stringify(roots)}`);
5298
- return { argv: server, client: createCodexClient(options) };
5298
+ const proxy = process.env.WILDCRANE_CODEX_PROXY;
5299
+ return { argv: proxy && process.env.WILDCRANE_CODEX_SERVER ? [process.execPath, proxy, ...server] : server, client: createCodexClient(options) };
5299
5300
  }
5300
5301
  function createCodexClient(options = { images: [] }) {
5301
5302
  const tasks = createBackgroundTasks();
@@ -1 +1 @@
1
- {"name":"wildcrane","version":"0.11.51","akbContract":15,"type":"module","private":true}
1
+ {"name":"wildcrane","version":"0.11.52","akbContract":15,"type":"module","private":true}
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.65 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.66 — 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;
@@ -0,0 +1,43 @@
1
+ // wildcrane-runner 0.6.66 — built by runner/scripts/build.mjs. Do not edit.
2
+ import { createRequire as __ai4kanbanRequire } from 'node:module'
3
+ const require = __ai4kanbanRequire(import.meta.url)
4
+
5
+ // src/codex-proxy.ts
6
+ import net from "node:net";
7
+ import fs from "node:fs";
8
+ import { createInterface } from "node:readline";
9
+ var endpoint = JSON.parse(fs.readFileSync(process.env.WILDCRANE_CODEX_SERVER, "utf8"));
10
+ var socket = net.connect(endpoint.path);
11
+ var input = createInterface({ input: process.stdin });
12
+ var queued = [];
13
+ var ready = false;
14
+ var closing = false;
15
+ var send = (line) => socket.write(line + "\n");
16
+ input.on("line", (line) => ready ? send(line) : queued.push(line));
17
+ socket.once("connect", () => {
18
+ send(JSON.stringify({ token: endpoint.token, argv: process.argv.slice(2), cwd: process.cwd(), env: process.env }));
19
+ ready = true;
20
+ for (const line of queued) send(line);
21
+ });
22
+ socket.pipe(process.stdout);
23
+ socket.on("error", () => {
24
+ console.error("Runner Codex connection failed.");
25
+ process.exitCode = 1;
26
+ input.close();
27
+ process.stdin.destroy();
28
+ });
29
+ socket.on("close", () => {
30
+ input.close();
31
+ process.stdin.destroy();
32
+ });
33
+ var close = () => {
34
+ if (closing) return;
35
+ closing = true;
36
+ if (ready) send(JSON.stringify({ method: "wildcrane/release" }));
37
+ else socket.destroy();
38
+ input.close();
39
+ process.stdin.destroy();
40
+ };
41
+ input.on("close", close);
42
+ process.on("SIGTERM", close);
43
+ process.on("SIGINT", close);
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.65 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.66 — 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;
@@ -111829,7 +111829,7 @@ function readGoals(file2) {
111829
111829
  }
111830
111830
 
111831
111831
  // src/protocol.ts
111832
- var AKB_VERSION = true ? "0.11.51" : "0.0.0";
111832
+ var AKB_VERSION = true ? "0.11.52" : "0.0.0";
111833
111833
  var AKB_CONTRACT = true ? 15 : 0;
111834
111834
 
111835
111835
  // src/secrets.ts
@@ -116165,7 +116165,7 @@ function createTail(log) {
116165
116165
  // ../cli/package.json
116166
116166
  var package_default = {
116167
116167
  name: "wildcrane",
116168
- version: "0.11.51",
116168
+ version: "0.11.52",
116169
116169
  akbContract: 15,
116170
116170
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
116171
116171
  keywords: [
@@ -116847,7 +116847,8 @@ function createCodexConnection(argv) {
116847
116847
  }
116848
116848
  }
116849
116849
  if (roots.length) server.push("-c", `sandbox_workspace_write.writable_roots=${JSON.stringify(roots)}`);
116850
- return { argv: server, client: createCodexClient(options) };
116850
+ const proxy = process.env.WILDCRANE_CODEX_PROXY;
116851
+ return { argv: proxy && process.env.WILDCRANE_CODEX_SERVER ? [process.execPath, proxy, ...server] : server, client: createCodexClient(options) };
116851
116852
  }
116852
116853
  function createCodexClient(options = { images: [] }) {
116853
116854
  const tasks = createBackgroundTasks();
package/dist/launcher.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.65 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.66 — 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;
@@ -26903,8 +26903,8 @@ function saveAlphaUpdates(value) {
26903
26903
  }
26904
26904
 
26905
26905
  // src/protocol.ts
26906
- var VERSION = true ? "0.6.65" : "0.0.0";
26907
- var AKB_VERSION = true ? "0.11.51" : "0.0.0";
26906
+ var VERSION = true ? "0.6.66" : "0.0.0";
26907
+ var AKB_VERSION = true ? "0.11.52" : "0.0.0";
26908
26908
  var EXIT_REFUSED = 10;
26909
26909
  var EXIT_OUTDATED = 11;
26910
26910
  var EXIT_UPDATE = 12;
@@ -31046,7 +31046,7 @@ function createTail(log) {
31046
31046
  // ../cli/package.json
31047
31047
  var package_default = {
31048
31048
  name: "wildcrane",
31049
- version: "0.11.51",
31049
+ version: "0.11.52",
31050
31050
  akbContract: 15,
31051
31051
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
31052
31052
  keywords: [
@@ -31719,7 +31719,8 @@ function createCodexConnection(argv) {
31719
31719
  }
31720
31720
  }
31721
31721
  if (roots.length) server.push("-c", `sandbox_workspace_write.writable_roots=${JSON.stringify(roots)}`);
31722
- return { argv: server, client: createCodexClient(options) };
31722
+ const proxy = process.env.WILDCRANE_CODEX_PROXY;
31723
+ return { argv: proxy && process.env.WILDCRANE_CODEX_SERVER ? [process.execPath, proxy, ...server] : server, client: createCodexClient(options) };
31723
31724
  }
31724
31725
  function createCodexClient(options = { images: [] }) {
31725
31726
  const tasks = createBackgroundTasks();
package/dist/plugin.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.65 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.66 — 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;
@@ -73825,8 +73825,8 @@ function machineId() {
73825
73825
  var machineName = () => os3.hostname().replace(/\.local$/, "");
73826
73826
 
73827
73827
  // src/protocol.ts
73828
- var VERSION = true ? "0.6.65" : "0.0.0";
73829
- var AKB_VERSION = true ? "0.11.51" : "0.0.0";
73828
+ var VERSION = true ? "0.6.66" : "0.0.0";
73829
+ var AKB_VERSION = true ? "0.11.52" : "0.0.0";
73830
73830
  var EXIT_REFUSED = 10;
73831
73831
  var EXIT_OUTDATED = 11;
73832
73832
  var EXIT_UPDATE = 12;
@@ -77627,7 +77627,7 @@ function createTail(log) {
77627
77627
  // ../cli/package.json
77628
77628
  var package_default = {
77629
77629
  name: "wildcrane",
77630
- version: "0.11.51",
77630
+ version: "0.11.52",
77631
77631
  akbContract: 15,
77632
77632
  description: "WildCrane's `akb` command \u2014 scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
77633
77633
  keywords: [
@@ -78300,7 +78300,8 @@ function createCodexConnection(argv) {
78300
78300
  }
78301
78301
  }
78302
78302
  if (roots.length) server2.push("-c", `sandbox_workspace_write.writable_roots=${JSON.stringify(roots)}`);
78303
- return { argv: server2, client: createCodexClient(options) };
78303
+ const proxy = process.env.WILDCRANE_CODEX_PROXY;
78304
+ return { argv: proxy && process.env.WILDCRANE_CODEX_SERVER ? [process.execPath, proxy, ...server2] : server2, client: createCodexClient(options) };
78304
78305
  }
78305
78306
  function createCodexClient(options = { images: [] }) {
78306
78307
  const tasks2 = createBackgroundTasks();