wildcrane-runner 0.6.86 → 0.6.87

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
@@ -17,6 +17,9 @@ wildcrane-runner
17
17
  更新交接的作业保留 7 天,期间断网会等待重连。已完成的结果直接回写;操作结果不明或
18
18
  连接器无法提供恢复依据时,任务会提示检查后续跑,避免重复执行。
19
19
 
20
+ 任务对话与项目讨论的模型失败最多共尝试三次,恢复窗口为两分钟;续接前先核对已有结果,
21
+ 保留成果与用户决定。失败仍保留已生成的回复,并提供手动重试入口。
22
+
20
23
  Codex 由 Runner 管理原生 App Server,任务直接连接;Runner 更新或崩溃不会断开原有任务。
21
24
  需要支持原生持久监听的 Codex(已验证 0.169.0-alpha.11.1);不支持时会在提交任务前提示更新。
22
25
  旧共享服务上的任务与保留服务先安全结束,新任务使用新路径;状态不明的旧工作会保留。
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.69 — built by runner/scripts/build.mjs. Do not edit.
2
+ // ai4kanban 0.11.70 — 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;
@@ -2054,8 +2054,7 @@ function modelsIn(file2, pick2, salt = "") {
2054
2054
  const stat = statSync(file2);
2055
2055
  stamp4 = `${stat.mtimeMs}:${stat.size}:${salt}`;
2056
2056
  } catch {
2057
- cached.delete(file2);
2058
- return [];
2057
+ return cached.get(file2)?.found ?? [];
2059
2058
  }
2060
2059
  const hit = cached.get(file2);
2061
2060
  if (hit?.stamp === stamp4) return hit.found;
@@ -2065,8 +2064,8 @@ function modelsIn(file2, pick2, salt = "") {
2065
2064
  } catch {
2066
2065
  found2 = [];
2067
2066
  }
2068
- cached.set(file2, { stamp: stamp4, found: found2 });
2069
- return found2;
2067
+ if (found2.length) cached.set(file2, { stamp: stamp4, found: found2 });
2068
+ return found2.length ? found2 : hit?.found ?? [];
2070
2069
  }
2071
2070
  var cached;
2072
2071
  var init_models = __esm({
@@ -2616,10 +2615,18 @@ import path14 from "node:path";
2616
2615
  import { createHash as createHash3 } from "node:crypto";
2617
2616
  import { spawnSync as spawnSync3 } from "node:child_process";
2618
2617
  function antigravityModels(output) {
2619
- return output.split("\n").flatMap((line) => {
2618
+ const seen = /* @__PURE__ */ new Set();
2619
+ const models = [];
2620
+ for (const line of output.split("\n")) {
2620
2621
  const match = /^([^\s]+)\t(.+)$/.exec(line.trim());
2621
- return match ? [{ id: match[1], name: match[2] }] : [];
2622
- });
2622
+ if (!match) continue;
2623
+ const id = match[1].replace(EFFORT_ID, "");
2624
+ const name = match[2].replace(EFFORT_NAME, "").trim();
2625
+ if (seen.has(id)) continue;
2626
+ seen.add(id);
2627
+ models.push({ id, name });
2628
+ }
2629
+ return models;
2623
2630
  }
2624
2631
  function args(argv, resume) {
2625
2632
  if (namesFlag(argv, ["--continue", "-c", "--conversation", "--remote-agent"])) throw new Error(translating() ? "\u8BF7\u901A\u8FC7 WildCrane \u9009\u62E9 Antigravity \u4F1A\u8BDD\uFF0C\u4E0D\u8981\u5728\u989D\u5916\u53C2\u6570\u4E2D\u6307\u5B9A\u4F1A\u8BDD\u6216\u8FDC\u7A0B\u6267\u884C\u3002" : "Antigravity: select a session through WildCrane, not extra arguments.");
@@ -2630,7 +2637,7 @@ function args(argv, resume) {
2630
2637
  if (!namesFlag(argv, ["--print", "-p", "--prompt"])) extra.push("--print");
2631
2638
  return extra;
2632
2639
  }
2633
- var ANTIGRAVITY;
2640
+ var EFFORT_ID, EFFORT_NAME, ANTIGRAVITY;
2634
2641
  var init_antigravity2 = __esm({
2635
2642
  "../cli/src/lib/agent/harnesses/antigravity.ts"() {
2636
2643
  "use strict";
@@ -2641,6 +2648,8 @@ var init_antigravity2 = __esm({
2641
2648
  init_types();
2642
2649
  init_language();
2643
2650
  init_antigravity();
2651
+ EFFORT_ID = /-(?:low|medium|high|xhigh|max)$/i;
2652
+ EFFORT_NAME = /\s*\((?:low|medium|high|xhigh|max)\)$/i;
2644
2653
  ANTIGRAVITY = {
2645
2654
  name: "antigravity",
2646
2655
  label: "Antigravity CLI",
@@ -2657,6 +2666,22 @@ var init_antigravity2 = __esm({
2657
2666
  flags: ["--model"],
2658
2667
  placeholder: "model-id",
2659
2668
  help: "A model from agy models. Empty uses the CLI default; an invalid model fails the run."
2669
+ }, {
2670
+ key: "reasoning",
2671
+ agentOwned: true,
2672
+ label: "Reasoning effort",
2673
+ kind: "select",
2674
+ choices: [
2675
+ { value: "", label: "Agent's default" },
2676
+ { value: "low", label: "Low" },
2677
+ { value: "medium", label: "Medium" },
2678
+ { value: "high", label: "High" },
2679
+ { value: "xhigh", label: "Extra high (xhigh)" },
2680
+ { value: "max", label: "Max" }
2681
+ ],
2682
+ flags: ["--effort"],
2683
+ help: "Lower is quicker and cheaper, higher is slower and more careful.",
2684
+ overriddenHelp: `Not in effect: this agent's "command" in your ui.config.json already names an effort level, and that wins.`
2660
2685
  }],
2661
2686
  models() {
2662
2687
  const copy2 = locate(ANTIGRAVITY);
@@ -4004,7 +4029,7 @@ var init_package = __esm({
4004
4029
  "../cli/package.json"() {
4005
4030
  package_default = {
4006
4031
  name: "wildcrane",
4007
- version: "0.11.69",
4032
+ version: "0.11.70",
4008
4033
  akbContract: 17,
4009
4034
  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.",
4010
4035
  keywords: [
@@ -8898,32 +8923,12 @@ import fs24 from "node:fs";
8898
8923
  import path27 from "node:path";
8899
8924
  import { fileURLToPath as fileURLToPath2 } from "node:url";
8900
8925
  function packOfficial(root2 = OFFICIAL, loose = false) {
8901
- const agentsDir = path27.join(root2, "agents");
8902
- const agentFiles = Object.fromEntries(dirs(agentsDir).map((name) => {
8903
- const dir = path27.join(agentsDir, name);
8904
- return [name, readStudioFolder(dir)];
8905
- }));
8906
- for (const [name, own] of Object.entries(loose ? {} : agentFiles)) {
8907
- const read4 = parseSpecAgent(own["AGENT.md"] ?? "", `official/agents/${name}/AGENT.md`, (p2) => own[p2] ?? null, true);
8908
- if ("problem" in read4) throw new Error(read4.problem);
8909
- }
8910
8926
  const studiosDir = path27.join(root2, "studios");
8911
8927
  return dirs(studiosDir).map((folder) => {
8912
- const dir = path27.join(studiosDir, folder);
8913
- const files = {};
8914
- for (const f2 of filesOf(dir).sort()) {
8915
- if (f2 === STUDIO_FILE || f2 === CARD_TEMPLATE_FILE || f2 === MCP_FILE || f2.startsWith("skills/") || f2.startsWith(SHARED_DIR) || isAboutFile(f2)) files[f2] = readStudioFile(dir, f2);
8916
- }
8917
- const read4 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
8918
- Object.entries(agentFiles).flatMap(([name, own]) => Object.entries(own).map(([f2, t]) => [`agents/${name}/${f2}`, t]))
8919
- ) });
8920
- if (!read4.ok && !loose) throw new Error(`official/studios/${folder}: ${read4.file}: ${read4.reason}`);
8928
+ const files = readStudioFolder(path27.join(studiosDir, folder));
8921
8929
  const parsed = parseStudioFile(folder, files[STUDIO_FILE] ?? "", STUDIO_FILE);
8922
8930
  if ("problem" in parsed) throw new Error(parsed.problem);
8923
8931
  const def = parsed.def;
8924
- for (const name of [...new Set([...def.previews, ...def.land, ...def.scheduled].map((h3) => h3.agent))].sort()) {
8925
- for (const [f2, text6] of Object.entries(agentFiles[name] ?? {})) files[`agents/${name}/${f2}`] = text6;
8926
- }
8927
8932
  const checked = loose ? { ok: true } : checkStudioFiles(files, true);
8928
8933
  if (!checked.ok) throw new Error(`official/studios/${folder}: ${checked.file}: ${checked.reason}`);
8929
8934
  if (!def.names?.zh && !loose) throw new Error(`official/studios/${folder}/${STUDIO_FILE}: add its Chinese name under \`names: zh\``);
@@ -8942,7 +8947,6 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
8942
8947
  var OFFICIAL, dirs, hashOf;
8943
8948
  var init_pack = __esm({
8944
8949
  "../official/pack.ts"() {
8945
- init_parse();
8946
8950
  init_studio_def();
8947
8951
  init_studio_folder();
8948
8952
  init_studio_files();
@@ -1 +1 @@
1
- {"name":"wildcrane","version":"0.11.69","akbContract":17,"type":"module","private":true}
1
+ {"name":"wildcrane","version":"0.11.70","akbContract":17,"type":"module","private":true}
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.86 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.87 — 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;
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.86 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.87 — 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;
@@ -1,4 +1,4 @@
1
- // wildcrane-runner 0.6.86 — built by runner/scripts/build.mjs. Do not edit.
1
+ // wildcrane-runner 0.6.87 — 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;