wildcrane 0.11.63 → 0.11.64
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 +92 -142
- 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.64 — 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)
|
|
@@ -855,6 +855,76 @@ var init_identity = __esm({
|
|
|
855
855
|
}
|
|
856
856
|
});
|
|
857
857
|
|
|
858
|
+
// src/lib/agent/capabilities.ts
|
|
859
|
+
function harnessGaps(harness) {
|
|
860
|
+
return CAPABILITIES.filter((c2) => !c2.has(harness)).map(({ id, label, blurb }) => ({ id, label, blurb }));
|
|
861
|
+
}
|
|
862
|
+
var CAPABILITIES;
|
|
863
|
+
var init_capabilities = __esm({
|
|
864
|
+
"src/lib/agent/capabilities.ts"() {
|
|
865
|
+
"use strict";
|
|
866
|
+
CAPABILITIES = [
|
|
867
|
+
{
|
|
868
|
+
id: "resume",
|
|
869
|
+
label: "Chat and resume",
|
|
870
|
+
blurb: "No conversations, and a run that stops short starts over.",
|
|
871
|
+
has: (h3) => h3.resumes
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
id: "early-resume",
|
|
875
|
+
label: "Early-crash resume",
|
|
876
|
+
blurb: "A run that fails in its first seconds starts over.",
|
|
877
|
+
// Two ways a run that died in its first seconds still has somewhere to go back to: the
|
|
878
|
+
// agent took the id we generated, or it minted one and had already saved the session
|
|
879
|
+
// under it. Anything else leaves the crash ahead of the id.
|
|
880
|
+
has: (h3) => h3.adoptsSessionId || h3.savesSessionAtOpen
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
id: "cost",
|
|
884
|
+
label: "Run cost",
|
|
885
|
+
blurb: "No price in the runs panel.",
|
|
886
|
+
has: (h3) => h3.reports.includes("cost")
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
id: "tokens",
|
|
890
|
+
label: "Token counts",
|
|
891
|
+
blurb: "No token numbers in the runs panel.",
|
|
892
|
+
has: (h3) => h3.reports.includes("tokens")
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
id: "model",
|
|
896
|
+
label: "Model name",
|
|
897
|
+
blurb: "The runs panel shows no model.",
|
|
898
|
+
has: (h3) => h3.reports.includes("model")
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
id: "context",
|
|
902
|
+
label: "Context window",
|
|
903
|
+
blurb: "No context ring on chats or runs.",
|
|
904
|
+
has: (h3) => h3.reports.includes("context")
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
id: "rate-limit",
|
|
908
|
+
label: "Rate-limit exit",
|
|
909
|
+
blurb: "A rate-limited run waits it out, holding its card.",
|
|
910
|
+
has: (h3) => h3.stopsOnRateLimit
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
id: "retry",
|
|
914
|
+
label: "Provider retry",
|
|
915
|
+
blurb: "A passing provider failure ends the run.",
|
|
916
|
+
has: (h3) => h3.transient !== void 0
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
id: "images",
|
|
920
|
+
label: "Pasted pictures",
|
|
921
|
+
blurb: "A picture pasted into a chat is turned away.",
|
|
922
|
+
has: (h3) => h3.images !== void 0
|
|
923
|
+
}
|
|
924
|
+
];
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
|
|
858
928
|
// src/lib/machine/home.ts
|
|
859
929
|
import os2 from "node:os";
|
|
860
930
|
import path7 from "node:path";
|
|
@@ -1228,12 +1298,11 @@ function machineFile(name, text5) {
|
|
|
1228
1298
|
fs9.writeFileSync(file2, text5);
|
|
1229
1299
|
return file2;
|
|
1230
1300
|
}
|
|
1231
|
-
var
|
|
1301
|
+
var RAW_ARGS_KEY, MODEL_KEY, RAW_ARGS, MCP_CONFIG;
|
|
1232
1302
|
var init_types = __esm({
|
|
1233
1303
|
"src/lib/agent/harnesses/types.ts"() {
|
|
1234
1304
|
"use strict";
|
|
1235
1305
|
init_home();
|
|
1236
|
-
SKILL_SENTENCE = "Use the kanban skill";
|
|
1237
1306
|
RAW_ARGS_KEY = "args";
|
|
1238
1307
|
MODEL_KEY = "model";
|
|
1239
1308
|
RAW_ARGS = {
|
|
@@ -1825,7 +1894,6 @@ ${rule}
|
|
|
1825
1894
|
adoptsSessionId: false,
|
|
1826
1895
|
savesSessionAtOpen: false,
|
|
1827
1896
|
stopsOnRateLimit: false,
|
|
1828
|
-
skillCall: SKILL_SENTENCE,
|
|
1829
1897
|
// `models` is read-only. Only explicit authentication errors mean signed out.
|
|
1830
1898
|
login: {
|
|
1831
1899
|
args: ["models"],
|
|
@@ -3140,7 +3208,7 @@ var init_package = __esm({
|
|
|
3140
3208
|
"package.json"() {
|
|
3141
3209
|
package_default = {
|
|
3142
3210
|
name: "wildcrane",
|
|
3143
|
-
version: "0.11.
|
|
3211
|
+
version: "0.11.64",
|
|
3144
3212
|
akbContract: 17,
|
|
3145
3213
|
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.",
|
|
3146
3214
|
keywords: [
|
|
@@ -5150,8 +5218,6 @@ var init_claude_code = __esm({
|
|
|
5150
5218
|
savesSessionAtOpen: false,
|
|
5151
5219
|
// Its own Read tool opens an image file, so a path in the message is the whole of it.
|
|
5152
5220
|
images: { as: "message" },
|
|
5153
|
-
// Claude Code loads a skill from its slash name.
|
|
5154
|
-
skillCall: "/kanban",
|
|
5155
5221
|
// `claude auth status` prints one JSON object saying whether it is signed in and how. Its
|
|
5156
5222
|
// `loggedIn` flag is read, not its exit code: this one does set the code, and two of the
|
|
5157
5223
|
// other three leave it at 0 in both states, so the output is the rule everywhere.
|
|
@@ -5537,10 +5603,6 @@ var init_codex2 = __esm({
|
|
|
5537
5603
|
// tokens it would swallow the prompt that follows it as a second file — Codex would then
|
|
5538
5604
|
// read the prompt from a stdin the board never opens and send an empty turn.
|
|
5539
5605
|
images: { as: "args", args: (file2) => [`--image=${file2}`] },
|
|
5540
|
-
// Codex ignores a slash name — it reads as plain chat text — and triggers a skill from a
|
|
5541
|
-
// `$` name. The install already writes the skill to `.agents/skills/kanban/`, which is
|
|
5542
|
-
// where Codex looks.
|
|
5543
|
-
skillCall: "$kanban",
|
|
5544
5606
|
// `codex login status` prints one line and nothing else: "Logged in using ChatGPT" —
|
|
5545
5607
|
// or an API key, which is why the reading stops at the first two words — and "Not logged
|
|
5546
5608
|
// in".
|
|
@@ -5611,7 +5673,6 @@ var init_cursor = __esm({
|
|
|
5611
5673
|
savesSessionAtOpen: false,
|
|
5612
5674
|
// Its own file reading opens a picture from a path written into the words.
|
|
5613
5675
|
images: { as: "message" },
|
|
5614
|
-
skillCall: SKILL_SENTENCE,
|
|
5615
5676
|
// `cursor-agent status` exits 0 whether or not anybody is signed in, so its output is the
|
|
5616
5677
|
// whole of the answer.
|
|
5617
5678
|
login: {
|
|
@@ -5737,9 +5798,6 @@ ${text5}` } };
|
|
|
5737
5798
|
// And it has written that session down before it answers: killed right after
|
|
5738
5799
|
// `session/new`, dsh-acp reopens the id from a fresh command about half a second later.
|
|
5739
5800
|
savesSessionAtOpen: true,
|
|
5740
|
-
// dsh has no slash or `$` skill syntax a headless run can use, so the prompt asks for the
|
|
5741
|
-
// skill in a sentence. It reads `.agents/skills/`, the folder an install already writes.
|
|
5742
|
-
skillCall: SKILL_SENTENCE,
|
|
5743
5801
|
// No login probe: dsh has no login to probe. Its own command offers `web` and `plugin` and
|
|
5744
5802
|
// nothing else — a run signs with the key in `$DSH_HOME`'s settings, or with the box above
|
|
5745
5803
|
// — so there is no CLI sign-in for a logged-out reading to be about.
|
|
@@ -5855,10 +5913,6 @@ var init_grok = __esm({
|
|
|
5855
5913
|
// And it has written that session down before it answers: killed the instant
|
|
5856
5914
|
// `session/new` returns, grok reopens the id from a fresh command.
|
|
5857
5915
|
savesSessionAtOpen: true,
|
|
5858
|
-
// Grok lists its skills as slash names, but a slash typed into an ACP `session/prompt` is
|
|
5859
|
-
// not the same thing as one typed into its TUI, and the sentence is proved: asked this
|
|
5860
|
-
// way, grok found `.agents/skills/kanban/SKILL.md` in the project and read it.
|
|
5861
|
-
skillCall: SKILL_SENTENCE,
|
|
5862
5916
|
installs: () => [...process.env.GROK_BIN_DIR ? [join4(process.env.GROK_BIN_DIR, "grok")] : [], home(".grok", "bin", "grok")],
|
|
5863
5917
|
install: "curl -fsSL https://x.ai/cli/install.sh | bash"
|
|
5864
5918
|
};
|
|
@@ -6066,13 +6120,6 @@ ${text5}
|
|
|
6066
6120
|
// Kimi names its own session, and prints the id as its closing row.
|
|
6067
6121
|
adoptsSessionId: false,
|
|
6068
6122
|
savesSessionAtOpen: false,
|
|
6069
|
-
// Kimi does have a slash name for a skill — `/skill:kanban` — but whether one typed into
|
|
6070
|
-
// a `-p` prompt is read as a command or as plain chat text is unprobed. The sentence
|
|
6071
|
-
// works either way, because Kimi's model picks a skill from its description on its own.
|
|
6072
|
-
//
|
|
6073
|
-
// PROBE: if `/skill:kanban` triggers the skill from a `-p` prompt, this becomes that and
|
|
6074
|
-
// the connector stops showing a "Direct skill call" gap.
|
|
6075
|
-
skillCall: SKILL_SENTENCE,
|
|
6076
6123
|
// No login probe, so Kimi is never called logged out. `kimi login` is the way in, but
|
|
6077
6124
|
// nothing was found that PRINTS whether that login is there, and `kimi` was not on the
|
|
6078
6125
|
// machine this was written on to read one off — and a reading nobody has seen is exactly
|
|
@@ -6165,9 +6212,6 @@ var init_opencode = __esm({
|
|
|
6165
6212
|
savesSessionAtOpen: true,
|
|
6166
6213
|
// Its own file reading opens a picture from a path written into the words.
|
|
6167
6214
|
images: { as: "message" },
|
|
6168
|
-
// No slash or `$` skill syntax in a sent message, so the prompt asks for the skill in a
|
|
6169
|
-
// sentence. It scans `.agents/skills/` and `.claude/skills/`, where an install writes.
|
|
6170
|
-
skillCall: SKILL_SENTENCE,
|
|
6171
6215
|
// No login probe: OpenCode's free models need no sign-in, so a machine with no saved
|
|
6172
6216
|
// credential is not logged out.
|
|
6173
6217
|
installs: () => [...process.env.OPENCODE_INSTALL_DIR ? [join6(process.env.OPENCODE_INSTALL_DIR, "opencode")] : [], home(".opencode", "bin", "opencode")],
|
|
@@ -6190,7 +6234,6 @@ var init_zcode2 = __esm({
|
|
|
6190
6234
|
"use strict";
|
|
6191
6235
|
init_wire();
|
|
6192
6236
|
init_models();
|
|
6193
|
-
init_types();
|
|
6194
6237
|
ZCODE = {
|
|
6195
6238
|
name: "zcode",
|
|
6196
6239
|
label: "ZCode",
|
|
@@ -6274,10 +6317,6 @@ var init_zcode2 = __esm({
|
|
|
6274
6317
|
// answers "Session not found" ten seconds after the id came back. So a ZCode run that
|
|
6275
6318
|
// dies before its first turn has nothing to go back to.
|
|
6276
6319
|
savesSessionAtOpen: false,
|
|
6277
|
-
// ZCode's slash and `$` names are its terminal UI's, not something a sent prompt
|
|
6278
|
-
// triggers, so the prompt asks for the skill in a sentence. It reads `.agents/skills/`,
|
|
6279
|
-
// the folder an install already writes, and finds the board's rules there by itself.
|
|
6280
|
-
skillCall: SKILL_SENTENCE,
|
|
6281
6320
|
// No login probe: a ZCode run signs with the Coding Plan key above and never with a
|
|
6282
6321
|
// `zcode login`, whose credential the command's own config never points at (#282). Its
|
|
6283
6322
|
// CLI's login decides nothing here, so there is nothing to warn about.
|
|
@@ -6324,83 +6363,6 @@ var init_harnesses = __esm({
|
|
|
6324
6363
|
}
|
|
6325
6364
|
});
|
|
6326
6365
|
|
|
6327
|
-
// src/lib/agent/capabilities.ts
|
|
6328
|
-
function harnessGaps(harness) {
|
|
6329
|
-
return CAPABILITIES.filter((c2) => !c2.has(harness)).map(({ id, label, blurb }) => ({ id, label, blurb }));
|
|
6330
|
-
}
|
|
6331
|
-
var CAPABILITIES;
|
|
6332
|
-
var init_capabilities = __esm({
|
|
6333
|
-
"src/lib/agent/capabilities.ts"() {
|
|
6334
|
-
"use strict";
|
|
6335
|
-
init_harnesses();
|
|
6336
|
-
CAPABILITIES = [
|
|
6337
|
-
{
|
|
6338
|
-
id: "resume",
|
|
6339
|
-
label: "Chat and resume",
|
|
6340
|
-
blurb: "No conversations, and a run that stops short starts over.",
|
|
6341
|
-
has: (h3) => h3.resumes
|
|
6342
|
-
},
|
|
6343
|
-
{
|
|
6344
|
-
id: "early-resume",
|
|
6345
|
-
label: "Early-crash resume",
|
|
6346
|
-
blurb: "A run that fails in its first seconds starts over.",
|
|
6347
|
-
// Two ways a run that died in its first seconds still has somewhere to go back to: the
|
|
6348
|
-
// agent took the id we generated, or it minted one and had already saved the session
|
|
6349
|
-
// under it. Anything else leaves the crash ahead of the id.
|
|
6350
|
-
has: (h3) => h3.adoptsSessionId || h3.savesSessionAtOpen
|
|
6351
|
-
},
|
|
6352
|
-
{
|
|
6353
|
-
id: "cost",
|
|
6354
|
-
label: "Run cost",
|
|
6355
|
-
blurb: "No price in the runs panel.",
|
|
6356
|
-
has: (h3) => h3.reports.includes("cost")
|
|
6357
|
-
},
|
|
6358
|
-
{
|
|
6359
|
-
id: "tokens",
|
|
6360
|
-
label: "Token counts",
|
|
6361
|
-
blurb: "No token numbers in the runs panel.",
|
|
6362
|
-
has: (h3) => h3.reports.includes("tokens")
|
|
6363
|
-
},
|
|
6364
|
-
{
|
|
6365
|
-
id: "model",
|
|
6366
|
-
label: "Model name",
|
|
6367
|
-
blurb: "The runs panel shows no model.",
|
|
6368
|
-
has: (h3) => h3.reports.includes("model")
|
|
6369
|
-
},
|
|
6370
|
-
{
|
|
6371
|
-
id: "context",
|
|
6372
|
-
label: "Context window",
|
|
6373
|
-
blurb: "No context ring on chats or runs.",
|
|
6374
|
-
has: (h3) => h3.reports.includes("context")
|
|
6375
|
-
},
|
|
6376
|
-
{
|
|
6377
|
-
id: "rate-limit",
|
|
6378
|
-
label: "Rate-limit exit",
|
|
6379
|
-
blurb: "A rate-limited run waits it out, holding its card.",
|
|
6380
|
-
has: (h3) => h3.stopsOnRateLimit
|
|
6381
|
-
},
|
|
6382
|
-
{
|
|
6383
|
-
id: "retry",
|
|
6384
|
-
label: "Provider retry",
|
|
6385
|
-
blurb: "A passing provider failure ends the run.",
|
|
6386
|
-
has: (h3) => h3.transient !== void 0
|
|
6387
|
-
},
|
|
6388
|
-
{
|
|
6389
|
-
id: "skill-call",
|
|
6390
|
-
label: "Direct skill call",
|
|
6391
|
-
blurb: "Prompts ask for the board skill in a sentence.",
|
|
6392
|
-
has: (h3) => h3.skillCall !== SKILL_SENTENCE
|
|
6393
|
-
},
|
|
6394
|
-
{
|
|
6395
|
-
id: "images",
|
|
6396
|
-
label: "Pasted pictures",
|
|
6397
|
-
blurb: "A picture pasted into a chat is turned away.",
|
|
6398
|
-
has: (h3) => h3.images !== void 0
|
|
6399
|
-
}
|
|
6400
|
-
];
|
|
6401
|
-
}
|
|
6402
|
-
});
|
|
6403
|
-
|
|
6404
6366
|
// src/lib/agent/proxy.ts
|
|
6405
6367
|
import { execFileSync } from "node:child_process";
|
|
6406
6368
|
function withSystemProxy(env2 = process.env, platform = process.platform, read3 = () => execFileSync("/usr/sbin/scutil", ["--proxy"], { encoding: "utf8", timeout: 1e3, stdio: ["ignore", "pipe", "ignore"] })) {
|
|
@@ -7524,7 +7486,7 @@ var init_flows = __esm({
|
|
|
7524
7486
|
argument: "<id> [note...]",
|
|
7525
7487
|
argumentNote: NOTE,
|
|
7526
7488
|
gloss: "build the card",
|
|
7527
|
-
options: [RUNTIME_OPTION, ...CARRY_OPTIONS]
|
|
7489
|
+
options: [RUNTIME_OPTION, ...CARRY_OPTIONS.map((option) => ({ ...option, description: "accepted for compatibility; ignored by implementation" }))]
|
|
7528
7490
|
},
|
|
7529
7491
|
{
|
|
7530
7492
|
command: "refine",
|
|
@@ -10475,9 +10437,6 @@ function adoptsSessionId(harnessName) {
|
|
|
10475
10437
|
const harness = harnessByName(harnessName);
|
|
10476
10438
|
return !!harness && harness.resumes && harness.adoptsSessionId;
|
|
10477
10439
|
}
|
|
10478
|
-
function skillCall(agent, pin) {
|
|
10479
|
-
return resolveHarness({ agent, pin }).harness.skillCall;
|
|
10480
|
-
}
|
|
10481
10440
|
function modelsRun() {
|
|
10482
10441
|
const ran = /* @__PURE__ */ new Map();
|
|
10483
10442
|
const { runs } = readStore();
|
|
@@ -16156,7 +16115,6 @@ function carriedNote(req) {
|
|
|
16156
16115
|
return `${held4} The card as it reads now outranks what you remember of it, and what was dropped along the way stays dropped: read it again before you act.`;
|
|
16157
16116
|
}
|
|
16158
16117
|
function actionPrompt(req, command, notes) {
|
|
16159
|
-
const kb = skillCall(agentForRun(req), req.runtime);
|
|
16160
16118
|
const tag = req.id ? `#${req.id}` : "";
|
|
16161
16119
|
const named2 = req.title ? `${tag} ("${req.title}")` : tag;
|
|
16162
16120
|
if (isRetired(req.action)) return "";
|
|
@@ -16165,28 +16123,26 @@ function actionPrompt(req, command, notes) {
|
|
|
16165
16123
|
case "implement":
|
|
16166
16124
|
if (req.id === void 0) {
|
|
16167
16125
|
return [
|
|
16168
|
-
req.plan ?
|
|
16126
|
+
req.plan ? `Build the approved plan at \`${req.plan}\`.` : `Build this: "${req.description?.trim() ?? ""}".`,
|
|
16169
16127
|
`Follow \`akb guide implement\` \u2014 build exactly the approved requirement; create no card.`
|
|
16170
16128
|
].filter(Boolean).join(" ");
|
|
16171
16129
|
}
|
|
16172
16130
|
return [
|
|
16173
|
-
|
|
16174
|
-
carriedNote(req),
|
|
16131
|
+
`Implement task ${req.id} ${named2} following \`akb guide implement\`. Read its current card before starting.`,
|
|
16175
16132
|
req.notes ? `Extra notes: ${req.notes}` : ""
|
|
16176
16133
|
].filter(Boolean).join(" ");
|
|
16177
16134
|
case "archive":
|
|
16178
16135
|
return [
|
|
16179
|
-
|
|
16136
|
+
`Archive task ${req.id} ${named2}.`,
|
|
16180
16137
|
`Follow \`akb guide archive\`.`,
|
|
16181
16138
|
req.notes ? `Extra notes: ${req.notes}` : "",
|
|
16182
16139
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16183
16140
|
].filter(Boolean).join(" ");
|
|
16184
16141
|
case "edit":
|
|
16185
16142
|
return [
|
|
16186
|
-
|
|
16143
|
+
`Revise task ${req.id} ${named2}: "${req.notes || ""}" ${NO_IMPLEMENT}`,
|
|
16187
16144
|
carriedNote(req),
|
|
16188
16145
|
`Apply the requested change following \`akb guide revise\`.`,
|
|
16189
|
-
`You can create new subtasks if it's a group task and the intent is to do so.`,
|
|
16190
16146
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16191
16147
|
].filter(Boolean).join(" ");
|
|
16192
16148
|
case "clarify": {
|
|
@@ -16205,7 +16161,7 @@ function actionPrompt(req, command, notes) {
|
|
|
16205
16161
|
// anything it cannot settle stays in the memory file it is rewriting.
|
|
16206
16162
|
case "prune-memory":
|
|
16207
16163
|
return [
|
|
16208
|
-
|
|
16164
|
+
`Prune this board's memory following \`akb guide prune-memory\`.`,
|
|
16209
16165
|
`Cover the board's own record at \`${rel(MEMORY)}/\` and every agent's memory at \`${rel(MEMORY)}/agents/<agent>/\`, the ${PLANNER}'s among them, and each studio's at \`${rel(MEMORY)}/studios/<studio>/\`.`,
|
|
16210
16166
|
`Change nothing but those files: no card, no question for anyone.`
|
|
16211
16167
|
].join(" ");
|
|
@@ -16215,18 +16171,15 @@ function actionPrompt(req, command, notes) {
|
|
|
16215
16171
|
// is no card to leave a question on.
|
|
16216
16172
|
case "review-memory":
|
|
16217
16173
|
return [
|
|
16218
|
-
|
|
16219
|
-
req.tasks?.length ? `The conversations are the ones \`${command} raw memory review --task ${req.tasks.join(" ")} --print\` prints.` : ""
|
|
16220
|
-
`Read each conversation the flow lists right through, and hold to "What earns a note" in \`akb guide board\`.`,
|
|
16221
|
-
`Rewrite or delete a note an earlier review wrote that the conversation has since overturned, rather than adding a second one.`,
|
|
16222
|
-
`Change nothing but the memory files: no card, no question for anyone.`
|
|
16174
|
+
`Review what this board's conversations settled and write it into memory, following \`akb guide review-memory\`.`,
|
|
16175
|
+
req.tasks?.length ? `The conversations are the ones \`${command} raw memory review --task ${req.tasks.join(" ")} --print\` prints.` : ""
|
|
16223
16176
|
].filter(Boolean).join(" ");
|
|
16224
16177
|
// The dismissal review (#929). The flow lists the dismissals and restored ids; the guide
|
|
16225
16178
|
// holds every rule.
|
|
16226
16179
|
case "review-dismissals":
|
|
16227
|
-
return
|
|
16180
|
+
return `Learn what the user does not want from their rejections and dismissals, following \`akb guide review-rejections\`.`;
|
|
16228
16181
|
case "describe-project":
|
|
16229
|
-
return
|
|
16182
|
+
return `Describe this project following \`akb guide describe-project\`.`;
|
|
16230
16183
|
// Reflecting on the cards the board has just completed (#534, #1467). They are off the
|
|
16231
16184
|
// board, so the ask names the archive: nothing else can find them. It only writes inbox
|
|
16232
16185
|
// items or starts a revise — it never edits or archives a card itself.
|
|
@@ -16236,10 +16189,8 @@ function actionPrompt(req, command, notes) {
|
|
|
16236
16189
|
const titles = ids.map((id) => archived.get(id) ? `#${id} ("${archived.get(id)}")` : `#${id}`);
|
|
16237
16190
|
return [
|
|
16238
16191
|
[
|
|
16239
|
-
|
|
16192
|
+
`These tasks have just been completed: ${titles.join(", ")}. Propose the work that should follow them, following \`akb guide reflect\`.`,
|
|
16240
16193
|
`They have left the board \u2014 read each in its own <card> block below, with the discussion it came from when the block lists one.`,
|
|
16241
|
-
`Skip anything already on the board, already in the inbox, or turned down before.`,
|
|
16242
|
-
`Write each survivor with \`${command} raw triage add\`, and revise an open card whose plan what shipped made untrue with \`${command} raw card revise\`: that is all you may do${settingsBlock(req) ? " unless your settings below say otherwise" : ""} \u2014 you edit and archive no card yourself, and finding nothing worth proposing is a complete result.`,
|
|
16243
16194
|
`Don't ask me questions with human-in-the-loop.`
|
|
16244
16195
|
].join(" "),
|
|
16245
16196
|
...reflectBlocks(ids),
|
|
@@ -16256,7 +16207,7 @@ function actionPrompt(req, command, notes) {
|
|
|
16256
16207
|
const shared = agent ? globalMemoryBlock(agent) : "";
|
|
16257
16208
|
return [
|
|
16258
16209
|
[
|
|
16259
|
-
|
|
16210
|
+
`You are the \`${req.specAgent}\` preview agent on task ${req.id} ${named2}.`,
|
|
16260
16211
|
`Card: \`${cardFile3}\`. Section: \`\`## By \`${req.specAgent}\` agent\`\`.`,
|
|
16261
16212
|
`How a preview agent works: \`${command} guide preview-agent\` \u2014 read it unless it is already in your context.`,
|
|
16262
16213
|
req.notes ? `What the flow that asked for you wants looked at: ${req.notes}` : "",
|
|
@@ -16343,13 +16294,13 @@ ${shared}` : ""
|
|
|
16343
16294
|
// The flow supplies conflict facts; the guide owns the procedure.
|
|
16344
16295
|
case "approve":
|
|
16345
16296
|
return [
|
|
16346
|
-
|
|
16297
|
+
`Task ${req.id} ${named2} has been approved: write the previews that were waiting on that Approve from the card as it stands.`,
|
|
16347
16298
|
req.notes ? `Extra notes: ${req.notes}` : "",
|
|
16348
16299
|
`Don't ask me questions with human-in-the-loop. Leave any questions as open questions.`
|
|
16349
16300
|
].filter(Boolean).join(" ");
|
|
16350
16301
|
case "resolve":
|
|
16351
16302
|
return [
|
|
16352
|
-
|
|
16303
|
+
`Apply my answers to the open questions on task ${req.id} ${named2} following \`akb guide resolve\`.`,
|
|
16353
16304
|
carriedNote(req),
|
|
16354
16305
|
answeredNote(req.id, command),
|
|
16355
16306
|
req.notes ? `Extra notes: ${req.notes}` : ""
|
|
@@ -17082,8 +17033,7 @@ function planningSession(cardId2, cwd = REPO_ROOT) {
|
|
|
17082
17033
|
return resumeId ? { session: { harness: planned.harness, resumeId }, fork: false } : { none: "unrecorded" };
|
|
17083
17034
|
}
|
|
17084
17035
|
function carriedSession(req) {
|
|
17085
|
-
|
|
17086
|
-
if (!Number.isInteger(req.id) || !carries) return void 0;
|
|
17036
|
+
if (!Number.isInteger(req.id) || !PLANNING.has(req.action)) return void 0;
|
|
17087
17037
|
const fresh = (why2) => ({ note: `new session \u2014 ${why2}` });
|
|
17088
17038
|
if (req.session === "new") return fresh("the earlier one is gone, so this step was started again");
|
|
17089
17039
|
const agent = agentForRun(req);
|
|
@@ -23774,7 +23724,7 @@ var init_add_task = __esm({
|
|
|
23774
23724
|
var archive_default;
|
|
23775
23725
|
var init_archive2 = __esm({
|
|
23776
23726
|
"src/guide/archive.md"() {
|
|
23777
|
-
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\
|
|
23727
|
+
archive_default = "# Finish a task\n\n## Write the shipped line\n\nRecord each user-facing outcome on one line in `docs/kanban/memory/readme.md`, under the\n`## <module>` heading the card's `modules:` names. Do not record internal-only changes. Use\nformats like these:\n\n- \u2705 Exporting a report to PDF: [Export reports](https://docs.example.com/export). Link to\n a published doc when available; do not restate it.\n- \u2705 Customers can pay an invoice by bank transfer from the billing page. When no doc\n exists, state plainly what the user can now do.\n- \u274C The orders table moved to a new database cluster. This describes infrastructure, not\n user-facing behavior.\n\n## Archive the card\n\nUse `akb raw delivery complete <id>` to finish your current studio step. The last step archives\nthe card and prints its handoff. Earlier steps leave it for the remaining studio agents.\nOutside an active delivery, use `akb raw archive <id>` or `akb raw reject <id>`.\n\nFinish cards through these commands, never by deleting their files.\n\nBefore completing a step, verify its approved requirements and outputs; before the last step,\nverify the complete approved outcome.\nRecord results on the card, leave unmet work unchecked, and handle user-action blockers through\n`akb guide implement`.\n\nOnce those checks pass, run `akb raw delivery complete <id>` and follow its handoff. Software\nsteps in a git project supply `--commit <full-sha> --branch <target>`.\nIf completion was interrupted, inspect the recorded result and retry the same completion.\n";
|
|
23778
23728
|
}
|
|
23779
23729
|
});
|
|
23780
23730
|
|
|
@@ -23830,7 +23780,7 @@ var init_follow_up = __esm({
|
|
|
23830
23780
|
var implement_default;
|
|
23831
23781
|
var init_implement = __esm({
|
|
23832
23782
|
"src/guide/implement.md"() {
|
|
23833
|
-
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\n- **Verification**: run required and minimal representative checks, reuse valid results, distinguish defects from environment or tool limits, stop retries that add no evidence, and finish when acceptance is proven.\n- **Authorization**: carry approval for necessary in-scope operations across tools and stages without asking again.\n- **Blockers**: resolve routine problems and use `akb guide update-questions` only for user-action blockers or out-of-scope decisions, stating attempts, impact and recommendation while continuing independent work.\n- **Defer**: follow `akb guide follow-up` for unrelated work and keep it from blocking delivery.\n- **Decisions**: record material, reversible build decisions under `## Worth noting after implementation`.\n";
|
|
23783
|
+
implement_default = "# Implement the approved requirements\n\nBuild the approved requirements without reopening settled decisions or unrelated questions; without a card, create none.\n\nDo not push, publish or deploy.\n\n- **Verification**: run required and minimal representative checks, reuse valid results, distinguish defects from environment or tool limits, stop retries that add no evidence, and finish when acceptance is proven.\n- **Authorization**: carry approval for necessary in-scope operations across tools and stages without asking again.\n- **Blockers**: resolve routine problems and use `akb guide update-questions` only for user-action blockers or out-of-scope decisions, stating attempts, impact and recommendation while continuing independent work.\n- **Defer**: follow `akb guide follow-up` for unrelated work and keep it from blocking delivery.\n- **Decisions**: record material, reversible build decisions under `## Worth noting after implementation`.\n";
|
|
23834
23784
|
}
|
|
23835
23785
|
});
|
|
23836
23786
|
|
|
@@ -23942,7 +23892,7 @@ var init_write_prompt = __esm({
|
|
|
23942
23892
|
var writing_default;
|
|
23943
23893
|
var init_writing = __esm({
|
|
23944
23894
|
"src/guide/writing.md"() {
|
|
23945
|
-
writing_default = "# Write a card\n\nA card has a **human half** for review and a folded **agent half** for implementation.\nUse this order and keep the English section titles and empty scaffold sections:\n\n```text\n<One short paragraph: the problem and the intended result.>\n\n## Worth noting <- user's answers first, then material decisions; empty if none\n- **<decision>**: <chosen behavior and main cost in one sentence>\n\n## Worth noting after implementation\n- **<decision>**: <chosen behavior and main cost in one sentence>\n <- settled by the build; omit when empty; no logs or open questions\n\n## By `<name>` agent <- preview owned by that agent\n\n<!-- agent --> <- folded content starts here\n\n## Scope <- requirements, not rationale\n### Done when <- acceptance checklist, when supplied\n- [ ] <observable result>\n\n## Todo <- implementation only; finish planning before writing steps\n- [ ] <one build step>\n\n## Decided by the agent <- other decisions and non-obvious findings the build needs\n- **<decision>**: <answer and required action>\n### Overruled by the user <- superseded decisions, always last\n```\n\n- **Decisions**: use the material-decision test in `akb guide update-questions` for Worth noting;\n merge entries governed by one policy and keep only the decision and its main cost.\n- **Delivery boundary**: Worth noting after implementation never changes approved scope or\n blocks an ongoing delivery; the build must fix deviations or refer them to the user.\n- **Preview ownership**: produce preview sections only by running their agent; before changing\n owned content, read `akb raw file <studio> agents/<agent>/AGENT.md` and the studio's\n `shared/RULES.md`, then only the files needed for that change with `akb raw file <studio> <path>`;\n report unreadable rules before proceeding.\n- **Preserve work**: leave checked todos and supplied Done when checklists unchanged; append a\n todo to reverse completed work, and move user-overruled decisions to Overruled by the user\n until the card leaves no room to repeat them.\n- **Writing**: write clear behavior and necessary tradeoffs for a fresh reader, keep the human\n half self-contained, and state each fact once.\n- **Frontmatter**: never edit frontmatter by hand; use `akb raw create`, `update`, or\n `update-questions`.\n- **Validate**: run `akb raw validate <id>` after edits and fix every reported file and line.\n";
|
|
23895
|
+
writing_default = "# Write a card\n\nA card has a **human half** for review and a folded **agent half** for implementation.\nUse this order and keep the English section titles and empty scaffold sections:\n\n```text\n<One short paragraph: the problem and the intended result.>\n\n## Worth noting <- user's answers first, then material decisions; empty if none\n- **<decision>**: <chosen behavior and main cost in one sentence>\n\n## Worth noting after implementation\n- **<decision>**: <chosen behavior and main cost in one sentence>\n <- settled by the build; omit when empty; no logs or open questions\n\n## By `<name>` agent <- preview owned by that agent\n\n<!-- agent --> <- folded content starts here\n\n## Scope <- requirements, not rationale\n### Done when <- acceptance checklist, when supplied\n- [ ] <observable result>\n\n## Todo <- implementation only; finish planning before writing steps\n- [ ] <one build step>\n\n## Decided by the agent <- other decisions and non-obvious findings the build needs\n- **<decision>**: <answer and required action>\n### Overruled by the user <- superseded decisions, always last\n```\n\n- **Decisions**: use the material-decision test in `akb guide update-questions` for Worth noting;\n merge entries governed by one policy and keep only the decision and its main cost.\n- **Delivery boundary**: Worth noting after implementation never changes approved scope or\n blocks an ongoing delivery; the build must fix deviations or refer them to the user.\n- **Preview ownership**: produce preview sections only by running their agent; before changing\n owned content, read `akb raw file <studio> agents/<agent>/AGENT.md` and the studio's\n `shared/RULES.md`, then only the files needed for that change with `akb raw file <studio> <path>`;\n report unreadable rules before proceeding.\n- **Preserve work**: leave checked todos and supplied Done when checklists unchanged; append a\n todo to reverse completed work, and move user-overruled decisions to Overruled by the user\n until the card leaves no room to repeat them.\n- **Writing**: write clear behavior and necessary tradeoffs for a fresh reader, keep the human\n half self-contained, and state each fact once.\n- **Agent half**: keep only implementation-critical information not stated elsewhere; omit\n process logs and routine implementation planning, and leave unneeded sections empty.\n- **Frontmatter**: never edit frontmatter by hand; use `akb raw create`, `update`, or\n `update-questions`.\n- **Validate**: run `akb raw validate <id>` after edits and fix every reported file and line.\n";
|
|
23946
23896
|
}
|
|
23947
23897
|
});
|
|
23948
23898
|
|
|
@@ -26164,7 +26114,7 @@ function readRequest(action, args2, opts) {
|
|
|
26164
26114
|
const req = { action, id, title: titleOf(id) };
|
|
26165
26115
|
req.notes = words(1);
|
|
26166
26116
|
if (action === "implement") req.runtime = opts.runtime;
|
|
26167
|
-
if (opts.session || opts.transcript) {
|
|
26117
|
+
if (action !== "implement" && (opts.session || opts.transcript)) {
|
|
26168
26118
|
const costFrom = Number(process.env[SESSION_COST_ENV]);
|
|
26169
26119
|
req.carry = {
|
|
26170
26120
|
resumeId: opts.session,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.64",
|
|
4
4
|
"akbContract": 17,
|
|
5
5
|
"description": "WildCrane's `akb` command — scaffold the Markdown board under docs/kanban/, put an agent on a card, and carry the flows the agent works by.",
|
|
6
6
|
"keywords": [
|