wildcrane-runner 0.6.101 → 0.6.103

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/dist/launcher.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.101 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.103 — 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;
@@ -40927,7 +40927,6 @@ import crypto from "node:crypto";
40927
40927
  import fs from "node:fs";
40928
40928
  import os2 from "node:os";
40929
40929
  import path from "node:path";
40930
- import { parseEnv } from "node:util";
40931
40930
 
40932
40931
  // src/proxy.ts
40933
40932
  var import_undici = __toESM(require_undici(), 1);
@@ -41010,22 +41009,9 @@ function runnerCwd() {
41010
41009
  }
41011
41010
  function useRunnerHome() {
41012
41011
  process.env.AI4KANBAN_HOME = runnerHome();
41013
- loadProxyFile();
41014
41012
  followProxy();
41015
41013
  setInterval(followProxy, 6e4).unref();
41016
41014
  }
41017
- function loadProxyFile() {
41018
- try {
41019
- const config2 = parseEnv(fs.readFileSync(path.join(runnerHome(), "proxy.env"), "utf8"));
41020
- for (const key of ["HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY"]) {
41021
- const lower = key.toLowerCase();
41022
- const value = config2[lower] ?? config2[key];
41023
- if (value !== void 0 && process.env[key] === void 0 && process.env[lower] === void 0) process.env[key] = value;
41024
- }
41025
- } catch (error62) {
41026
- if (error62.code !== "ENOENT") console.error("runner: could not load proxy.env");
41027
- }
41028
- }
41029
41015
  function machineId() {
41030
41016
  const file3 = path.join(runnerHome(), "machine.json");
41031
41017
  try {
@@ -41142,8 +41128,8 @@ function saveAlphaUpdates(value) {
41142
41128
  }
41143
41129
 
41144
41130
  // src/protocol.ts
41145
- var VERSION = true ? "0.6.101" : "0.0.0";
41146
- var AKB_VERSION = true ? "0.11.81" : "0.0.0";
41131
+ var VERSION = true ? "0.6.103" : "0.0.0";
41132
+ var AKB_VERSION = true ? "0.11.83" : "0.0.0";
41147
41133
  var EXIT_REFUSED = 10;
41148
41134
  var EXIT_OUTDATED = 11;
41149
41135
  var EXIT_UPDATE = 12;
@@ -65322,7 +65308,7 @@ function createTail(log) {
65322
65308
  // ../cli/package.json
65323
65309
  var package_default = {
65324
65310
  name: "wildcrane",
65325
- version: "0.11.81",
65311
+ version: "0.11.83",
65326
65312
  akbContract: 27,
65327
65313
  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.",
65328
65314
  keywords: [
package/dist/plugin.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.101 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.103 — 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;
@@ -107805,7 +107805,6 @@ import crypto from "node:crypto";
107805
107805
  import fs3 from "node:fs";
107806
107806
  import os3 from "node:os";
107807
107807
  import path4 from "node:path";
107808
- import { parseEnv } from "node:util";
107809
107808
 
107810
107809
  // src/proxy.ts
107811
107810
  var import_undici = __toESM(require_undici(), 1);
@@ -107888,22 +107887,9 @@ function runnerCwd() {
107888
107887
  }
107889
107888
  function useRunnerHome() {
107890
107889
  process.env.AI4KANBAN_HOME = runnerHome();
107891
- loadProxyFile();
107892
107890
  followProxy();
107893
107891
  setInterval(followProxy, 6e4).unref();
107894
107892
  }
107895
- function loadProxyFile() {
107896
- try {
107897
- const config3 = parseEnv(fs3.readFileSync(path4.join(runnerHome(), "proxy.env"), "utf8"));
107898
- for (const key of ["HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY"]) {
107899
- const lower = key.toLowerCase();
107900
- const value = config3[lower] ?? config3[key];
107901
- if (value !== void 0 && process.env[key] === void 0 && process.env[lower] === void 0) process.env[key] = value;
107902
- }
107903
- } catch (error63) {
107904
- if (error63.code !== "ENOENT") console.error("runner: could not load proxy.env");
107905
- }
107906
- }
107907
107893
  function machineId() {
107908
107894
  const file3 = path4.join(runnerHome(), "machine.json");
107909
107895
  try {
@@ -107920,8 +107906,8 @@ function machineId() {
107920
107906
  var machineName = () => os3.hostname().replace(/\.local$/, "");
107921
107907
 
107922
107908
  // src/protocol.ts
107923
- var VERSION = true ? "0.6.101" : "0.0.0";
107924
- var AKB_VERSION = true ? "0.11.81" : "0.0.0";
107909
+ var VERSION = true ? "0.6.103" : "0.0.0";
107910
+ var AKB_VERSION = true ? "0.11.83" : "0.0.0";
107925
107911
  var EXIT_REFUSED = 10;
107926
107912
  var EXIT_OUTDATED = 11;
107927
107913
  var EXIT_UPDATE = 12;
@@ -111934,7 +111920,7 @@ function createTail(log) {
111934
111920
  // ../cli/package.json
111935
111921
  var package_default = {
111936
111922
  name: "wildcrane",
111937
- version: "0.11.81",
111923
+ version: "0.11.83",
111938
111924
  akbContract: 27,
111939
111925
  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.",
111940
111926
  keywords: [
@@ -116084,6 +116070,7 @@ var threadOf = (meta4) => {
116084
116070
  var pathOf = (given, meta4) => given || Object.keys(meta4?.["x-codex-turn-metadata"]?.workspaces ?? {})[0] || "";
116085
116071
  var SIGNED_OUT = { error: "signed_out", message: "Not signed in to WildCrane. Call wildcrane_open_settings to open settings and sign in, then try again." };
116086
116072
  var PANEL_SIGNED_OUT = { error: "signed_out", message: "Not signed in to WildCrane. Tell the user to run /wildcrane and sign in, then try again." };
116073
+ var jobDraft = () => ({ ...text2({ error: "runner_managed_draft", message: "Use `akb goal` in the current web discussion to work with its draft." }), isError: true });
116087
116074
  function server() {
116088
116075
  const instructions = host !== "claude-code" && akbFile2 ? `Run \`${akbFile2}\` for every \`akb\` command.` : void 0;
116089
116076
  const mcp = new McpServer({ name: "wildcrane", version: VERSION }, { instructions });
@@ -116099,6 +116086,7 @@ function server() {
116099
116086
  });
116100
116087
  const saveSchema = { discussionId: import_zod4.z.string(), expectedVersion: import_zod4.z.number().int(), goals: import_zod4.z.array(GoalInput).max(10).optional(), ideas: import_zod4.z.array(GoalInput).max(10).optional() };
116101
116088
  const save = async ({ discussionId, expectedVersion, goals, ideas }) => {
116089
+ if (process.env.WILDCRANE_JOB) return jobDraft();
116102
116090
  if (!readSession()) return { ...text2(host === "claude-code" ? PANEL_SIGNED_OUT : SIGNED_OUT), isError: true };
116103
116091
  if (goals === void 0 === (ideas === void 0)) return { ...text2({ error: "bad_request", message: "Provide exactly one of goals or ideas." }), isError: true };
116104
116092
  const saved = await saveDraft(discussionId, expectedVersion, goals ?? ideas);
@@ -116119,6 +116107,7 @@ function server() {
116119
116107
  discussionId: import_zod4.z.string().optional().describe(host === "dsh" || host === "grok" ? "Leave out only on the first call in this chat." : "Leave out for this session's discussion.")
116120
116108
  }
116121
116109
  }, async ({ path: given, discussionId }, extra) => {
116110
+ if (process.env.WILDCRANE_JOB) return jobDraft();
116122
116111
  if (!readSession()) return { ...text2(SIGNED_OUT), isError: true };
116123
116112
  let id2 = discussionId;
116124
116113
  let project = null;
@@ -116204,6 +116193,7 @@ function server() {
116204
116193
  sessionId: import_zod4.z.string().optional().describe("This Claude Code session's id, given at session start.")
116205
116194
  }
116206
116195
  }, async ({ discussionId, sessionId }) => {
116196
+ if (process.env.WILDCRANE_JOB) return jobDraft();
116207
116197
  if (!readSession()) return { ...text2(PANEL_SIGNED_OUT), isError: true };
116208
116198
  if (!discussionId && !sessionId) return { ...text2({ error: "bad_request", message: "Give discussionId or sessionId." }), isError: true };
116209
116199
  const draft = discussionId ? await draftOf(discussionId) : await sessionDraft(sessionId, process.cwd());