wildcrane 0.11.69 → 0.11.70

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.
Files changed (2) hide show
  1. package/dist/kanban.mjs +36 -32
  2. package/package.json +1 -1
package/dist/kanban.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // ai4kanban 0.11.69 — built from the CLI's TypeScript sources by cli/scripts/build.mjs.
2
+ // ai4kanban 0.11.70 — built from the CLI's TypeScript sources by cli/scripts/build.mjs.
3
3
  // Do not edit: every change belongs in cli/src/, and a build overwrites this file.
4
4
  import { createRequire as __ai4kanbanRequire } from 'node:module'
5
5
  const require = __ai4kanbanRequire(import.meta.url)
@@ -2055,8 +2055,7 @@ function modelsIn(file2, pick2, salt = "") {
2055
2055
  const stat = statSync(file2);
2056
2056
  stamp4 = `${stat.mtimeMs}:${stat.size}:${salt}`;
2057
2057
  } catch {
2058
- cached.delete(file2);
2059
- return [];
2058
+ return cached.get(file2)?.found ?? [];
2060
2059
  }
2061
2060
  const hit = cached.get(file2);
2062
2061
  if (hit?.stamp === stamp4) return hit.found;
@@ -2066,8 +2065,8 @@ function modelsIn(file2, pick2, salt = "") {
2066
2065
  } catch {
2067
2066
  found2 = [];
2068
2067
  }
2069
- cached.set(file2, { stamp: stamp4, found: found2 });
2070
- return found2;
2068
+ if (found2.length) cached.set(file2, { stamp: stamp4, found: found2 });
2069
+ return found2.length ? found2 : hit?.found ?? [];
2071
2070
  }
2072
2071
  var cached;
2073
2072
  var init_models = __esm({
@@ -2617,10 +2616,18 @@ import path14 from "node:path";
2617
2616
  import { createHash as createHash3 } from "node:crypto";
2618
2617
  import { spawnSync as spawnSync3 } from "node:child_process";
2619
2618
  function antigravityModels(output) {
2620
- return output.split("\n").flatMap((line) => {
2619
+ const seen = /* @__PURE__ */ new Set();
2620
+ const models = [];
2621
+ for (const line of output.split("\n")) {
2621
2622
  const match = /^([^\s]+)\t(.+)$/.exec(line.trim());
2622
- return match ? [{ id: match[1], name: match[2] }] : [];
2623
- });
2623
+ if (!match) continue;
2624
+ const id = match[1].replace(EFFORT_ID, "");
2625
+ const name = match[2].replace(EFFORT_NAME, "").trim();
2626
+ if (seen.has(id)) continue;
2627
+ seen.add(id);
2628
+ models.push({ id, name });
2629
+ }
2630
+ return models;
2624
2631
  }
2625
2632
  function args(argv, resume) {
2626
2633
  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.");
@@ -2631,7 +2638,7 @@ function args(argv, resume) {
2631
2638
  if (!namesFlag(argv, ["--print", "-p", "--prompt"])) extra.push("--print");
2632
2639
  return extra;
2633
2640
  }
2634
- var ANTIGRAVITY;
2641
+ var EFFORT_ID, EFFORT_NAME, ANTIGRAVITY;
2635
2642
  var init_antigravity2 = __esm({
2636
2643
  "src/lib/agent/harnesses/antigravity.ts"() {
2637
2644
  "use strict";
@@ -2642,6 +2649,8 @@ var init_antigravity2 = __esm({
2642
2649
  init_types();
2643
2650
  init_language();
2644
2651
  init_antigravity();
2652
+ EFFORT_ID = /-(?:low|medium|high|xhigh|max)$/i;
2653
+ EFFORT_NAME = /\s*\((?:low|medium|high|xhigh|max)\)$/i;
2645
2654
  ANTIGRAVITY = {
2646
2655
  name: "antigravity",
2647
2656
  label: "Antigravity CLI",
@@ -2658,6 +2667,22 @@ var init_antigravity2 = __esm({
2658
2667
  flags: ["--model"],
2659
2668
  placeholder: "model-id",
2660
2669
  help: "A model from agy models. Empty uses the CLI default; an invalid model fails the run."
2670
+ }, {
2671
+ key: "reasoning",
2672
+ agentOwned: true,
2673
+ label: "Reasoning effort",
2674
+ kind: "select",
2675
+ choices: [
2676
+ { value: "", label: "Agent's default" },
2677
+ { value: "low", label: "Low" },
2678
+ { value: "medium", label: "Medium" },
2679
+ { value: "high", label: "High" },
2680
+ { value: "xhigh", label: "Extra high (xhigh)" },
2681
+ { value: "max", label: "Max" }
2682
+ ],
2683
+ flags: ["--effort"],
2684
+ help: "Lower is quicker and cheaper, higher is slower and more careful.",
2685
+ overriddenHelp: `Not in effect: this agent's "command" in your ui.config.json already names an effort level, and that wins.`
2661
2686
  }],
2662
2687
  models() {
2663
2688
  const copy2 = locate(ANTIGRAVITY);
@@ -4005,7 +4030,7 @@ var init_package = __esm({
4005
4030
  "package.json"() {
4006
4031
  package_default = {
4007
4032
  name: "wildcrane",
4008
- version: "0.11.69",
4033
+ version: "0.11.70",
4009
4034
  akbContract: 17,
4010
4035
  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.",
4011
4036
  keywords: [
@@ -8899,32 +8924,12 @@ import fs24 from "node:fs";
8899
8924
  import path27 from "node:path";
8900
8925
  import { fileURLToPath as fileURLToPath2 } from "node:url";
8901
8926
  function packOfficial(root2 = OFFICIAL, loose = false) {
8902
- const agentsDir = path27.join(root2, "agents");
8903
- const agentFiles = Object.fromEntries(dirs(agentsDir).map((name) => {
8904
- const dir = path27.join(agentsDir, name);
8905
- return [name, readStudioFolder(dir)];
8906
- }));
8907
- for (const [name, own] of Object.entries(loose ? {} : agentFiles)) {
8908
- const read4 = parseSpecAgent(own["AGENT.md"] ?? "", `official/agents/${name}/AGENT.md`, (p2) => own[p2] ?? null, true);
8909
- if ("problem" in read4) throw new Error(read4.problem);
8910
- }
8911
8927
  const studiosDir = path27.join(root2, "studios");
8912
8928
  return dirs(studiosDir).map((folder) => {
8913
- const dir = path27.join(studiosDir, folder);
8914
- const files = {};
8915
- for (const f2 of filesOf(dir).sort()) {
8916
- 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);
8917
- }
8918
- const read4 = checkStudioFiles({ [STUDIO_FILE]: files[STUDIO_FILE], ...Object.fromEntries(
8919
- Object.entries(agentFiles).flatMap(([name, own]) => Object.entries(own).map(([f2, t]) => [`agents/${name}/${f2}`, t]))
8920
- ) });
8921
- if (!read4.ok && !loose) throw new Error(`official/studios/${folder}: ${read4.file}: ${read4.reason}`);
8929
+ const files = readStudioFolder(path27.join(studiosDir, folder));
8922
8930
  const parsed = parseStudioFile(folder, files[STUDIO_FILE] ?? "", STUDIO_FILE);
8923
8931
  if ("problem" in parsed) throw new Error(parsed.problem);
8924
8932
  const def = parsed.def;
8925
- for (const name of [...new Set([...def.previews, ...def.land, ...def.scheduled].map((h3) => h3.agent))].sort()) {
8926
- for (const [f2, text6] of Object.entries(agentFiles[name] ?? {})) files[`agents/${name}/${f2}`] = text6;
8927
- }
8928
8933
  const checked = loose ? { ok: true } : checkStudioFiles(files, true);
8929
8934
  if (!checked.ok) throw new Error(`official/studios/${folder}: ${checked.file}: ${checked.reason}`);
8930
8935
  if (!def.names?.zh && !loose) throw new Error(`official/studios/${folder}/${STUDIO_FILE}: add its Chinese name under \`names: zh\``);
@@ -8943,7 +8948,6 @@ function packOfficial(root2 = OFFICIAL, loose = false) {
8943
8948
  var OFFICIAL, dirs, hashOf;
8944
8949
  var init_pack = __esm({
8945
8950
  "../official/pack.ts"() {
8946
- init_parse();
8947
8951
  init_studio_def();
8948
8952
  init_studio_folder();
8949
8953
  init_studio_files();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildcrane",
3
- "version": "0.11.69",
3
+ "version": "0.11.70",
4
4
  "akbContract": 17,
5
5
  "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.",
6
6
  "keywords": [