wildcrane 0.11.68 → 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.
- package/dist/kanban.mjs +38 -34
- package/package.json +1 -1
package/dist/kanban.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ai4kanban 0.11.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
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();
|
|
@@ -16212,7 +16216,7 @@ function actionPrompt(req, command, notes) {
|
|
|
16212
16216
|
].filter(Boolean).join(" ");
|
|
16213
16217
|
case "clarify": {
|
|
16214
16218
|
return [
|
|
16215
|
-
`Plan task ${req.id} ${named2} following \`akb guide refine\`.
|
|
16219
|
+
`Plan task ${req.id} ${named2} following \`akb guide refine\`. A command with \`--print\` prints its flow for you to follow here, and without it starts a separate session.`,
|
|
16216
16220
|
carriedNote(req),
|
|
16217
16221
|
// A refine has no note box of its own, but one SCHEDULED on a blocked card
|
|
16218
16222
|
// carries whatever was typed when it was scheduled — often the very reason the user
|
|
@@ -28059,7 +28063,7 @@ var init_troubleshoot = __esm({
|
|
|
28059
28063
|
var write_agent_default;
|
|
28060
28064
|
var init_write_agent = __esm({
|
|
28061
28065
|
"src/guide/write-agent.md"() {
|
|
28062
|
-
write_agent_default = "# Write an agent\n\nCreate `docs/kanban/agents/<name>/AGENT.md`; use an unused lowercase, hyphenated name matching\nthe folder. Its studio lists it under `previews`, `land` or `scheduled` in `STUDIO.md`.\n\n## Example: a preview agent\n\n```yaml\n---\nname: page-designer\ndescription: Makes complete page designs with their copy.\nakb:\n when: A card needs a page designed or changed.\n icon: screen\n components: [Asset, Set]\n i18n:\n en:\n title: Page design\n zh:\n title: \u9875\u9762\u8BBE\u8BA1\n stages:\n - id: copy\n title: {en: Copy, zh: \u6587\u6848}\n when: The page needs new or revised copy; existing text is insufficient.\n instructions: references/copy.md\n - id: layout\n title: {en: Page layout, zh: \u9875\u9762\u7A3F}\n instructions: references/layout.md\n---\n\nChoose the stages this task needs on first entry; reuse the saved selection on continuation.\nFollow the current stage's instructions, preserving confirmed copy in the page design.\n```\n\nWith existing copy, this agent selects only `layout`; otherwise it selects `copy,layout`.\nEach selected step except the last waits for user confirmation. The last is ready for the\ncard's approval. The agent chooses its steps, not the planner; the program saves and advances\nthem. Omit `stages` for a single preview. Stage IDs are unique; instruction paths stay inside\nthe agent folder. A task freezes its definition, files and selection.\n\n## Other fields\n\nOnly `name`, `description` and nonempty body instructions are required. Omit unused fields.\n\n| Field | Use |\n| --- | --- |\n| `akb.when` | When to request a preview; omitted means every task on its studio. |\n| `akb.after` | Previews whose approval this agent waits for, when selected on the same card. |\n| `akb.session: new` | Separate session recommended; the calling agent chooses whether to use it. |\n| `akb.components` | Asset, Set, Compare or Storyboard; default `[Asset]`, `[]` loads no component docs. |\n| `akb.icon` | Glyph name, or 1\u201312 `{d, f?, o?: true, s?, w?}` parts using supported colours. |\n| `akb.i18n` | Display-only title
|
|
28066
|
+
write_agent_default = "# Write an agent\n\nCreate `docs/kanban/agents/<name>/AGENT.md`; use an unused lowercase, hyphenated name matching\nthe folder. Its studio lists it under `previews`, `land` or `scheduled` in `STUDIO.md`.\n\n## Example: a preview agent\n\n```yaml\n---\nname: page-designer\ndescription: Makes complete page designs with their copy.\nakb:\n when: A card needs a page designed or changed.\n icon: screen\n components: [Asset, Set]\n i18n:\n en:\n title: Page design\n zh:\n title: \u9875\u9762\u8BBE\u8BA1\n stages:\n - id: copy\n title: {en: Copy, zh: \u6587\u6848}\n when: The page needs new or revised copy; existing text is insufficient.\n instructions: references/copy.md\n - id: layout\n title: {en: Page layout, zh: \u9875\u9762\u7A3F}\n instructions: references/layout.md\n---\n\nChoose the stages this task needs on first entry; reuse the saved selection on continuation.\nFollow the current stage's instructions, preserving confirmed copy in the page design.\n```\n\nWith existing copy, this agent selects only `layout`; otherwise it selects `copy,layout`.\nEach selected step except the last waits for user confirmation. The last is ready for the\ncard's approval. The agent chooses its steps, not the planner; the program saves and advances\nthem. Omit `stages` for a single preview. Stage IDs are unique; instruction paths stay inside\nthe agent folder. A task freezes its definition, files and selection.\n\n## Other fields\n\nOnly `name`, `description` and nonempty body instructions are required. Omit unused fields.\n\n| Field | Use |\n| --- | --- |\n| `akb.when` | When to request a preview; omitted means every task on its studio. |\n| `akb.after` | Previews whose approval this agent waits for, when selected on the same card. |\n| `akb.session: new` | Separate session recommended; the calling agent chooses whether to use it. |\n| `akb.components` | Asset, Set, Compare or Storyboard; default `[Asset]`, `[]` loads no component docs. |\n| `akb.icon` | Glyph name, or 1\u201312 `{d, f?, o?: true, s?, w?}` parts using supported colours. |\n| `akb.i18n` | Display-only title and description by language; missing text falls back to English. Keep titles short and name the output. |\n| `akb.reads` | Scheduled input: `archived-cards`, `chats` or `dismissals`; omitted uses cadence alone. Set fixed cadence on the studio's scheduled entry. |\n| `akb.merges: true` | A land agent merges code; completion requires its merged commit and branch. |\n| `akb.memory` | Names of shared global memories. |\n| `akb.memoryFiles.workspace` | Paths such as `[style.md]` shared across projects within this agent's memory. |\n\n## Instructions and files\n\n- **Keep the body small**: say what the agent owns and delivers. Use `akb guide write-prompt`;\n do not repeat `preview-agent` rules. Stage-specific work belongs in its instruction file.\n- **Load on demand**: files beside AGENT.md are listed to the run. Put shared studio material\n in `shared/`; keep scripts and business validation with their owning agent, documenting\n runtime and invocation. Retrieve bundled files with `akb raw file <studio> <path>`.\n- **Memory**: keep only preferences or corrections that change future work. Name each file's\n purpose and when to read it; omit transcripts and duplicated rules. Agent memory is under\n `docs/kanban/memory/agents/<name>/`; studio memory follows its `shared/RULES.md`. Agree on\n any scheduled agent's persistent state rather than inventing its format.\n- **User decisions**: follow `akb guide update-questions`; do not ask again about settled\n choices. Show each changed file as a unified diff with one sentence explaining why.\n\n## Imported skills\n\nKeep each skill whole under `skills/<skill>/`, including instructions, scripts, resources and\nlicense; exclude caches and installed packages. Record its source and version in AGENT.md:\n`- **<skill>**: <when to use>. Source: <URL or pasted> @ <commit, tag or date>`.\nAdapt routing outside the skill, preserving its relative paths. Report missing files, tools\nor credentials; never copy keys or claim an unusable skill works. Update or remove only when\nasked, replacing the whole owned copy and showing the diff and version.\n\n## Check\n\nRun `akb raw previews` and `akb raw previews --triggers`; fix every reported problem.\nThen inspect `akb raw previews <name> <id> --print` on a real task and trim unnecessary context.\nUse `akb raw components --agent <name> --docs` for output formats. New agents start enabled\nin their studio; disabled previews cannot run. Keep registration and instructions consistent.\n";
|
|
28063
28067
|
}
|
|
28064
28068
|
});
|
|
28065
28069
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane",
|
|
3
|
-
"version": "0.11.
|
|
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": [
|