wildcrane 0.11.17 → 0.11.18
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 +6 -0
- package/dist/kanban.mjs +19 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,3 +32,9 @@ akb guide discuss-goal
|
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
保存不会开始任务;start 标记本轮结束后开始。成功结果形状、10 个目标上限和既有校验不变。`raw idea` 和 `guide discuss-idea` 保留兼容。
|
|
35
|
+
|
|
36
|
+
## 软件故障根因定位
|
|
37
|
+
|
|
38
|
+
需要定位软件故障的根因与修复方向时,读取 `akb guide troubleshoot`。
|
|
39
|
+
此命令只输出指南,不执行排查或修改代码,无需额外参数或配置。
|
|
40
|
+
`akb --json guide troubleshoot` 返回 `guide: "troubleshoot"` 和 `text`,沿用现有 JSON 结果封装。
|
package/dist/kanban.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ai4kanban 0.11.
|
|
2
|
+
// ai4kanban 0.11.18 — 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)
|
|
@@ -5518,7 +5518,7 @@ var init_package = __esm({
|
|
|
5518
5518
|
"package.json"() {
|
|
5519
5519
|
package_default = {
|
|
5520
5520
|
name: "wildcrane",
|
|
5521
|
-
version: "0.11.
|
|
5521
|
+
version: "0.11.18",
|
|
5522
5522
|
akbContract: 5,
|
|
5523
5523
|
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.",
|
|
5524
5524
|
keywords: [
|
|
@@ -18222,11 +18222,11 @@ function resumePrompt(deliveryId, cardId2, action) {
|
|
|
18222
18222
|
const approved = delivery?.approved.trim();
|
|
18223
18223
|
if (!approved) return lead;
|
|
18224
18224
|
if (delivery?.plan) {
|
|
18225
|
-
return `${lead}
|
|
18225
|
+
return `${lead} Build exactly the approved plan below following \`akb guide implement\`; create no card. It came from \`${delivery.plan}\`, and this is the copy to build:
|
|
18226
18226
|
|
|
18227
18227
|
${approved}`;
|
|
18228
18228
|
}
|
|
18229
|
-
return `${lead}
|
|
18229
|
+
return `${lead} Follow \`akb guide implement\`: create no card and build exactly this approved requirement and nothing more \u2014 "${approved}".`;
|
|
18230
18230
|
}
|
|
18231
18231
|
function contractRepairPrompt(req, errors) {
|
|
18232
18232
|
const command = boardCommandFor(req.id);
|
|
@@ -18405,17 +18405,12 @@ function actionPrompt(req, command, notes) {
|
|
|
18405
18405
|
const named2 = req.title ? `${tag} ("${req.title}")` : tag;
|
|
18406
18406
|
if (isRetired(req.action)) return "";
|
|
18407
18407
|
switch (req.action) {
|
|
18408
|
-
// A build
|
|
18409
|
-
// is quoted here rather than pointed at, and the run's first act is the card it holds.
|
|
18410
|
-
// Answered off the plan handoff it is a plan instead (#481), named the way a create off one
|
|
18411
|
-
// is: the words are in the file, and a copy pasted in here would go stale.
|
|
18408
|
+
// A cardless build takes its requirement from the sentence or approved plan.
|
|
18412
18409
|
case "implement":
|
|
18413
18410
|
if (req.id === void 0) {
|
|
18414
18411
|
return [
|
|
18415
18412
|
req.plan ? `${kb}. Build the plan at \`${req.plan}\`, written in this conversation. The plan is the contract; use what was said here only to clarify its intent.` : `${kb}. Build this: "${req.description?.trim() ?? ""}".`,
|
|
18416
|
-
|
|
18417
|
-
createWorkflowNote(req),
|
|
18418
|
-
`Resolve routine choices yourself; record blockers needing user action on the card following \`akb guide update-questions\`.`
|
|
18413
|
+
`Follow \`akb guide implement\` \u2014 build exactly the approved requirement; create no card.`
|
|
18419
18414
|
].filter(Boolean).join(" ");
|
|
18420
18415
|
}
|
|
18421
18416
|
return [
|
|
@@ -23532,7 +23527,7 @@ var init_card_chat = __esm({
|
|
|
23532
23527
|
var conflict_default;
|
|
23533
23528
|
var init_conflict = __esm({
|
|
23534
23529
|
"src/guide/conflict.md"() {
|
|
23535
|
-
conflict_default = "# Fit a delivery onto the moved target\n\nThe target branch moved while this delivery was being built, and the delivery has been\nrebased onto its new tip. Make the combined result work.\n\n- **Read both sides**: read the approved requirements, what the target brought in since the\n delivery's original base, and the delivery's own changes.\n- **Target wins**: keep the target's behavior unless the approved card requires changing it,\n replay only the delivery's intent on top of it, and never restore stale details.\n- **Resolve conflicts**: resolve every conflicted file the rebase stopped on.\n- **Find what git cannot see**: look for changes on one side that override, duplicate, or\n break the other side's work, including in files only one side touched.\n- **Fix by the project's conventions**: edit any file the fix needs, then run the project's\n own checks for the changed areas.\n- **Stage the result**: `git add` every file you changed; do not commit or finish the rebase.\n- **
|
|
23530
|
+
conflict_default = "# Fit a delivery onto the moved target\n\nThe target branch moved while this delivery was being built, and the delivery has been\nrebased onto its new tip. Make the combined result work.\n\n- **Read both sides**: read the approved requirements, what the target brought in since the\n delivery's original base, and the delivery's own changes.\n- **Target wins**: keep the target's behavior unless the approved card requires changing it,\n replay only the delivery's intent on top of it, and never restore stale details.\n- **Resolve conflicts**: resolve every conflicted file the rebase stopped on.\n- **Find what git cannot see**: look for changes on one side that override, duplicate, or\n break the other side's work, including in files only one side touched.\n- **Fix by the project's conventions**: edit any file the fix needs, then run the project's\n own checks for the changed areas.\n- **Stage the result**: `git add` every file you changed; do not commit or finish the rebase.\n- **Check applicability**: use the working directory, project instructions, configuration\n sources and change history as evidence; missing configuration alone does not make a check\n inapplicable. Explain any inapplicable check and its alternative verification; never report\n an unrun or failing check as passed.\n- **Repair check failures**: fix directory, dependency, required configuration and implementation\n problems, then rerun applicable checks, including failures that predate this delivery. Do not\n create empty configuration, disable checks or lower standards to pass.\n- **User-action blockers**: only when composing both intentions or passing applicable checks\n needs a decision, permission or material only the user can supply, stage nothing and run\n `akb delivery blocked <id> \"<obstacle and required user action>\"`. Continue independent work;\n resume the rest once resolved.\n- **Repair Git state**: fix Git failures in the worktree yourself, keeping its commits and\n staged work.\n- **Stay on this delivery**: do not change any card or create follow-up work.\n";
|
|
23536
23531
|
}
|
|
23537
23532
|
});
|
|
23538
23533
|
|
|
@@ -23548,7 +23543,7 @@ var init_describe_project = __esm({
|
|
|
23548
23543
|
var discuss_goal_default;
|
|
23549
23544
|
var init_discuss_goal = __esm({
|
|
23550
23545
|
"src/guide/discuss-goal.md"() {
|
|
23551
|
-
discuss_goal_default = "# Discuss a goal\n\nTalk with the user as you would without extra context; any work before actual building is allowed.\n\n- **Build boundary**: when actual building is needed, save or update the goal with `akb raw goal` (see `akb raw goal --help`), then stop; an existing build continues in its current session under the project's build requirements.\n- **Missing information**: ask the user for information needed to form a goal.\n\n## Goals\n\n- **Goal format**: each goal has a title, an outcome of at most 150 words, and a `## Done when` section listing verifiable acceptance criteria, without technical design.\n- **Independent deliverables**: save separate deliverables as separate goals; remove a replaced goal with `akb raw goal drop --id <goal>`.\n- **Use judgment**: settle outcome decisions you can and explain them; ask only for decisions the user must make that change the result, with a recommendation.\n- **Plain words**: answer directly using everyday words.\n- **Hide machinery**: omit plans, files, paths, commands, tools, and connectors from replies; refer to actions by their button labels.\n";
|
|
23546
|
+
discuss_goal_default = "# Discuss a goal\n\nTalk with the user as you would without extra context; any work before actual building is allowed.\n\n- **Build boundary**: when actual building is needed, save or update the goal with `akb raw goal` (see `akb raw goal --help`), then stop; an existing build continues in its current session under the project's build requirements.\n- **Missing information**: ask the user for information needed to form a goal.\n- **Software failures**: read `akb guide troubleshoot` when root cause analysis is needed.\n\n## Goals\n\n- **Goal format**: each goal has a title, an outcome of at most 150 words, and a `## Done when` section listing verifiable acceptance criteria, without technical design.\n- **Independent deliverables**: save separate deliverables as separate goals; remove a replaced goal with `akb raw goal drop --id <goal>`.\n- **Use judgment**: settle outcome decisions you can and explain them; ask only for decisions the user must make that change the result, with a recommendation.\n- **Plain words**: answer directly using everyday words.\n- **Hide machinery**: omit plans, files, paths, commands, tools, and connectors from replies; refer to actions by their button labels.\n";
|
|
23552
23547
|
}
|
|
23553
23548
|
});
|
|
23554
23549
|
|
|
@@ -23572,7 +23567,7 @@ var init_follow_up = __esm({
|
|
|
23572
23567
|
var implement_default;
|
|
23573
23568
|
var init_implement = __esm({
|
|
23574
23569
|
"src/guide/implement.md"() {
|
|
23575
|
-
implement_default =
|
|
23570
|
+
implement_default = "# Implement the approved requirements\n\nBuild the approved card or plan directly. Preserve settled decisions and unrelated questions;\ndo not replace or contradict the approved requirements. With no card, build only the given\nrequirement and create no card.\n\n- **Check applicability**: use the working directory, project instructions, configuration\n sources and change history as evidence; missing configuration alone does not make a check\n inapplicable. Explain any inapplicable check and its alternative verification; never report\n an unrun or failing check as passed. Do not bypass checks with empty configuration, disabled\n checks or lower standards.\n- **User-action blockers**: ask only when this build needs a decision, permission or material\n only the user can supply. On a card, follow `akb guide update-questions`; describe the obstacle\n and required action. Continue independent work and resume the rest once resolved.\n- **Defer what can wait**: follow `akb guide follow-up` for work this build does not require;\n never ask about it or let it block this build.\n- **Decisions made while building**: record an answered material decision the user could\n reasonably reverse under `## Worth noting after implementation` on the card.\n- **Delivery exception**: a printed, interactive implementation may stay uncommitted in the\n target checkout only when the card already supplies a concrete outcome, boundaries and\n build steps. Otherwise use the tracked implementation path. Background runs always keep\n their delivery path.\n";
|
|
23576
23571
|
}
|
|
23577
23572
|
});
|
|
23578
23573
|
|
|
@@ -23656,6 +23651,14 @@ var init_update_questions = __esm({
|
|
|
23656
23651
|
}
|
|
23657
23652
|
});
|
|
23658
23653
|
|
|
23654
|
+
// src/guide/troubleshoot.md
|
|
23655
|
+
var troubleshoot_default;
|
|
23656
|
+
var init_troubleshoot = __esm({
|
|
23657
|
+
"src/guide/troubleshoot.md"() {
|
|
23658
|
+
troubleshoot_default = "# Troubleshoot software failures\n\nTrace the causal chain from the observed failure, distinguishing its trigger from any system gap that lets it persist or spread.\nUse code, logs, or reproduction evidence to test candidate causes; when evidence is insufficient, state what remains uncertain and the next check that would distinguish them.\nFor example, if an external API outage leaves a job stuck retrying forever, check whether fault handling is missing or ineffective rather than assuming the outage alone explains the failure or that one mechanism is always the answer.\nIdentify the system behavior that needs to change and how reproducing the trigger would verify recovery or bounded failure, keeping investigation and any actual changes within the current session's operating boundaries.\n";
|
|
23659
|
+
}
|
|
23660
|
+
});
|
|
23661
|
+
|
|
23659
23662
|
// src/guide/write-agent.md
|
|
23660
23663
|
var write_agent_default;
|
|
23661
23664
|
var init_write_agent = __esm({
|
|
@@ -23718,6 +23721,7 @@ var init_guide = __esm({
|
|
|
23718
23721
|
init_revise();
|
|
23719
23722
|
init_preview_agent();
|
|
23720
23723
|
init_update_questions();
|
|
23724
|
+
init_troubleshoot();
|
|
23721
23725
|
init_write_agent();
|
|
23722
23726
|
init_writing();
|
|
23723
23727
|
init_paths();
|
|
@@ -23728,6 +23732,7 @@ var init_guide = __esm({
|
|
|
23728
23732
|
{ name: "add-task", when: "turn one idea into a card", text: add_task_default },
|
|
23729
23733
|
{ name: "follow-up", when: "place additional work and prepare context for a follow-up card", text: follow_up_default },
|
|
23730
23734
|
{ name: "discuss-goal", when: "help decide what is worth building, and shape it into goals to start as tasks", text: discuss_goal_default },
|
|
23735
|
+
{ name: "troubleshoot", when: "\u5B9A\u4F4D\u8F6F\u4EF6\u6545\u969C\u7684\u6839\u56E0\u4E0E\u4FEE\u590D\u65B9\u5411", text: troubleshoot_default },
|
|
23731
23736
|
{ name: "card-chat", when: "answer a card's conversation, and act on what each turn settles", text: card_chat_default },
|
|
23732
23737
|
{ name: "implement", when: "build a settled card and stop cleanly on an execution blocker", text: implement_default },
|
|
23733
23738
|
{ name: "archive", when: "finish a task \u2014 write its shipped line, then take it off the board", text: archive_default },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wildcrane",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.18",
|
|
4
4
|
"akbContract": 5,
|
|
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": [
|