@warren-dean/code-kit 0.12.0 → 0.12.1
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/hooks/mod/register.mjs +59 -2
- package/hooks/mod/register.test.ts +60 -0
- package/hooks/mod/view.mjs +65 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": "code-kit",
|
|
10
10
|
"source": "./",
|
|
11
11
|
"description": "Keeps AI coding agents inside your project's rules, from idea to merged code: spec design, lanes, layer rules, protected paths with an approval log, spec-check and design gates, proof-before-finish checks, dispatch, review, build status and CI verification, configured per project from its docs",
|
|
12
|
-
"version": "0.12.
|
|
12
|
+
"version": "0.12.1",
|
|
13
13
|
"category": "development",
|
|
14
14
|
"tags": ["guardrails", "architecture", "lanes", "layers", "spec-driven", "ci", "multi-agent"],
|
|
15
15
|
"license": "MIT"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-kit",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Keeps AI coding agents inside your project's rules, from idea to merged code: spec design, lanes, layer rules, protected paths with an approval log, spec-check and design gates, proof-before-finish checks, dispatch, review, build status and CI verification, configured per project from its docs",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Warren Langeveldt"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each release of code-kit, newest first. Versions follow the plugin manifest and the npm package `@warren-dean/code-kit`. Each release is also on [GitHub Releases](https://github.com/warrendeanlangeveldt/code-kit/releases).
|
|
4
4
|
|
|
5
|
+
## 0.12.1 (2026-10-13)
|
|
6
|
+
|
|
7
|
+
Ask about an approval before you give it.
|
|
8
|
+
|
|
9
|
+
- **Ask about it, in the Approve pane.** When a request isn't clear, ask what it's for right there. The answer comes from a side call over the lead's conversation and what code-kit knows of the request (what was asked for and for whom, why it was refused, its story, the limits it missed), and it stays in the pane: nothing is added to the lead's session. Follow-ups carry on the conversation. Before the lead has replied, it answers from code-kit's facts alone. Nothing is approved until you press Approve.
|
|
10
|
+
|
|
5
11
|
## 0.12.0 (2026-10-13)
|
|
6
12
|
|
|
7
13
|
What only you can decide reaches you, and waits until you answer.
|
package/README.md
CHANGED
|
@@ -280,7 +280,7 @@ With Claude Code 2.1.287 or later, code-kit's mod shows the project in the sessi
|
|
|
280
280
|
- **The band** sits above the prompt. While the build is moving (the lead mid-turn, an agent at work, the loop started) it opens with the mission: **goal**, the milestone being built and how many of its stories are done; **now**, what the lead is doing and the loop's state, with **Pause** or **Resume**; **next**, the step the loop takes next; and **agents**, a line per agent at work with its current tool and how long since. With Context Graph installed, a line says when a lane edited files without understanding them, and only then. Beneath, labelled **you**, what only you can decide, each with the story it's for ("for ST-4 Booking form (BOOK-1)"), and **d** ("Why, and what each choice does") opens it as a card in the Decisions tab; usage and the plan's pause are labelled **note**. In a team (`team` in the config), it also names what of the team needs you, and only that: your stale claim (Keep or Release), a claim of yours changing the same files as someone else's, an intent touching what you own or lease (every intent, with Agree and Drop, for the tech lead), and a pull request in a lane you own. While the loop runs, a lane's finished work is the lead's to review and merge, so it never waits here; with the loop off, Review and Merge are offered to you. With nothing happening and nothing waiting, the band is gone. It shows:
|
|
281
281
|
- an agent's call held for you: installing a new package, writing or committing a protected file, or a lane changing the kit. Rather than stopping the agent, the call waits while the band asks ("web wants to install dayjs · 1:53"). **Approve** opens the confirmation and, once you confirm, the same call runs; **Refuse**, or no answer within `harness.hold.minutes` (2 unless set), refuses it as before. Under `autonomy: autonomous`, a call within `approvals.delegate` is approved as delegated without asking. Nothing is held under `claude -p` or the SDK, where nobody can answer;
|
|
282
282
|
- the lead loop, under `harness.autonomy`. `/code-kit:init` asks you how hands-off you want it. Until you've chosen, the loop's first step waits in the band ("code-kit can keep the build moving between your prompts") with **Keep going**, **Ask each time** and **Off**, and your answer is recorded as your setting. Once the lead has finished a turn, the loop keeps the build moving: with the lead idle and nothing typed in the prompt, it asks `code-kit next` and prompts the lead to dispatch the ready stories, review a finished one, or build its own, never the same step twice while nothing has changed, and never a story an agent is still on: one its lane agent is building, or a reviewer is reviewing, waits until that agent finishes ("waiting: ST-10 is still with its agent"). A step the lead was prompted with twice in a row and that is still next goes to you instead, in the band: "Merge lead/st-1: still next after 2 prompts. Ask the lead again?" with **Go**. **Pause** and **Resume** stop and start it. Under `propose`, each step waits in the band for **Go**; under `off`, the loop does nothing. A lane agent with no tool call for `harness.stall.nudgeMinutes` (5) is messaged, unless its work is done (it handed back, or its branch is in review or the merge queue); at `stall.restartMinutes` (10) the lead is asked to stop it and dispatch its story again, at most `stall.maxRestarts` (2) times, and then the band flags the lane. When every story is done, the band says so and the loop stops. With `harness.agents.reviewer.on`, a finished branch is first reviewed in the background by code-kit's reviewer agent, which the lead starts: it runs `verify` and the review checklist, read-only, and grades each finding blocker, concern or nit. The lead's review prompt then carries the findings, and a blocker means the branch is sent back. The pane shows each review, running with its clock or what it found. If the reviewer hasn't reported within 15 minutes, or the plan's 5-hour use is past `harness.background.pauseAtPercent`, the lead reviews without it. A branch the lead's review passes joins the merge queue (`code-kit queue`). Branches merge one at a time, in the order they passed, each verified against the base as it is then: the lead merges where `approvals.delegate.merge` is on under `autonomous`, otherwise the band shows the head with **Merge** for you. Who may merge is read from the config committed on the base, so a branch can't grant itself merges. There's no first merge for you: setting up commits the rules you approved straight onto the base, and in a project set up before that, the lead puts them there itself (`code-kit queue rules`) before its first merge. A merged lane's worktree is removed when it holds nothing uncommitted. A head that conflicts or fails verify goes back to its lane. The pane lists the queue, and lanes whose branch waits in it read `queued`;
|
|
283
|
-
- approvals agents have asked for: **Approve…** opens a confirmation with a reason prefilled from the request, which you keep or rewrite. A request waits until it's answered, its file is committed by someone who could, or it's dropped (at most a week); on its card, **Not needed** drops it;
|
|
283
|
+
- approvals agents have asked for: **Approve…** opens a confirmation with a reason prefilled from the request, which you keep or rewrite. When it isn't clear what it's for, **Ask about it** in that pane: the answer comes from a side call over the lead's conversation and code-kit's facts about the request, shown in the pane and never added to the lead's session; follow-ups carry on the aside. A request waits until it's answered, its file is committed by someone who could, or it's dropped (at most a week); on its card, **Not needed** drops it;
|
|
284
284
|
- questions from the lead ("The lead asks: which weather provider?"): what it can't settle and only you can, asked with `code-kit ask`. **Answer…** opens it as a card with each of the lead's options and what it does, and **Something else…** for your own words; your answer is recorded and sent to the lead. A question can hold its story, which then reads `waiting on you`: nothing dispatches or reviews it, and the stories that depend on it wait, until you answer;
|
|
285
285
|
- your brief's open questions: **Answer…** sends your answer to the lead, which records it in the brief's decisions; **Later** puts one off until the next session;
|
|
286
286
|
- a call Claude Code's own permission check refused (its auto mode, a deny rule), which code-kit can't approve past: "Claude Code refused the lead's `pnpm db:generate`". **Put it in the prompt** puts a command in your prompt after `!` for you to run, **Done it** tells the lead you ran or allowed it, and **Not now** tells it to carry on with other work;
|
package/hooks/mod/register.mjs
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
shownState,
|
|
20
20
|
attribution,
|
|
21
21
|
answerPane,
|
|
22
|
+
approvalAsidePrompt,
|
|
22
23
|
approvePane,
|
|
23
24
|
commandItself,
|
|
24
25
|
band,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
withoutInFlight,
|
|
60
61
|
} from './loop.mjs';
|
|
61
62
|
import { goalOf, nextText } from './mission.mjs';
|
|
62
|
-
import { contextOf, decisionCards } from './decisions.mjs';
|
|
63
|
+
import { contextOf, decisionCards, limitsWhy } from './decisions.mjs';
|
|
63
64
|
import { DEFAULT_TEAM_UI, TEAM_ID, teamFrame } from './teamview.mjs';
|
|
64
65
|
import { glowOf, mapStoryOf, touchOf } from './codemap.mjs';
|
|
65
66
|
import { harnessSettings } from '../lib/harness.mjs';
|
|
@@ -501,6 +502,8 @@ export function register(on) {
|
|
|
501
502
|
reason: prefilledReason(line.request),
|
|
502
503
|
error: null,
|
|
503
504
|
heldId: line.heldId ?? null,
|
|
505
|
+
outside: line.outside ?? null,
|
|
506
|
+
aside: { thread: [], draft: '' },
|
|
504
507
|
};
|
|
505
508
|
await $.ui.open({ id: APPROVE_ID, title: 'Approve', focus: true, closeOnEscape: true });
|
|
506
509
|
$.ui.invalidate('ui.render');
|
|
@@ -663,9 +666,58 @@ export function register(on) {
|
|
|
663
666
|
// HOLD-2: Approve opens ACT-1's confirmation for the held call; Refuse lets the refusal through.
|
|
664
667
|
approveHeld: (line) =>
|
|
665
668
|
act.approve({
|
|
666
|
-
request: {
|
|
669
|
+
request: {
|
|
670
|
+
names: line.held.names,
|
|
671
|
+
lane: line.held.lane,
|
|
672
|
+
what: line.held.what,
|
|
673
|
+
why: line.held.refusal ?? null,
|
|
674
|
+
},
|
|
667
675
|
heldId: line.held.id,
|
|
676
|
+
outside: line.held.outside ?? null,
|
|
668
677
|
}),
|
|
678
|
+
// ACT-5: a question about the approval, answered in its pane by a side call over the lead's own
|
|
679
|
+
// conversation (it shares the prompt cache, and nothing is added to the conversation); before the
|
|
680
|
+
// lead's first reply, from code-kit's facts alone.
|
|
681
|
+
askApproval: async (question) => {
|
|
682
|
+
const q = question.trim();
|
|
683
|
+
if (!approving || !q) return;
|
|
684
|
+
const asked = approving;
|
|
685
|
+
const thread = asked.aside.thread;
|
|
686
|
+
const turn = { question: q, pending: true };
|
|
687
|
+
approving = { ...asked, aside: { thread: [...thread, turn], draft: '' } };
|
|
688
|
+
$.ui.invalidate('ui.render');
|
|
689
|
+
const row = (model.state?.lanes ?? []).find((l) => l.name === asked.request.lane);
|
|
690
|
+
const prompt = approvalAsidePrompt({
|
|
691
|
+
request: asked.request,
|
|
692
|
+
story: row?.story ?? null,
|
|
693
|
+
outside: limitsWhy(asked.outside) ?? null,
|
|
694
|
+
thread,
|
|
695
|
+
question: q,
|
|
696
|
+
});
|
|
697
|
+
let reply = await $.model
|
|
698
|
+
.fork({ prompt })
|
|
699
|
+
.catch((err) => ({ isAnswered: false, reason: String(err?.message ?? err) }));
|
|
700
|
+
if (!reply.isAnswered && reply.reason === 'nothing-to-fork')
|
|
701
|
+
reply = await $.model
|
|
702
|
+
.complete({ model: 'sonnet', prompt, maxTokens: 800 })
|
|
703
|
+
.catch((err) => ({ isAnswered: false, reason: String(err?.message ?? err) }));
|
|
704
|
+
// Answered for this approval only: a pane closed or moved on meanwhile keeps what it has.
|
|
705
|
+
if (!approving || approving.request !== asked.request) return;
|
|
706
|
+
const done = reply.isAnswered
|
|
707
|
+
? { question: q, answer: reply.text }
|
|
708
|
+
: {
|
|
709
|
+
question: q,
|
|
710
|
+
error: `No answer: ${reply.reason}${reply.status ? ` (${reply.status})` : ''}`,
|
|
711
|
+
};
|
|
712
|
+
approving = {
|
|
713
|
+
...approving,
|
|
714
|
+
aside: {
|
|
715
|
+
...approving.aside,
|
|
716
|
+
thread: approving.aside.thread.map((t) => (t === turn ? done : t)),
|
|
717
|
+
},
|
|
718
|
+
};
|
|
719
|
+
$.ui.invalidate('ui.render');
|
|
720
|
+
},
|
|
669
721
|
refuseHeld: async (line) => {
|
|
670
722
|
await answerHeld(line.held.id, 'refused');
|
|
671
723
|
},
|
|
@@ -1934,6 +1986,11 @@ export function register(on) {
|
|
|
1934
1986
|
},
|
|
1935
1987
|
onSubmit: (value) => act.confirmApproval(value),
|
|
1936
1988
|
onCancel: () => act.cancelApproval(),
|
|
1989
|
+
onAskInput: (value) => {
|
|
1990
|
+
approving = { ...approving, aside: { ...approving.aside, draft: value } };
|
|
1991
|
+
$.ui.invalidate('ui.render');
|
|
1992
|
+
},
|
|
1993
|
+
onAsk: (value) => act.askApproval(value),
|
|
1937
1994
|
});
|
|
1938
1995
|
});
|
|
1939
1996
|
|
|
@@ -160,6 +160,8 @@ function project() {
|
|
|
160
160
|
questions: [] as any[], // `code-kit ask --json`
|
|
161
161
|
reports: [] as any[], // `code-kit report --json`
|
|
162
162
|
fills: [] as string[], // what the mod put in the prompt
|
|
163
|
+
sideAsks: [] as any[], // side calls: { fork } or { model }, with their prompt
|
|
164
|
+
sideReply: { isAnswered: true, text: 'dayjs formats the booking dates.', usage: null } as any,
|
|
163
165
|
holdWaits: false, // false: the hold ends at once, as if timed out (tests about cards, not hold)
|
|
164
166
|
waiting: new Map<string, (answer: string) => void>(),
|
|
165
167
|
};
|
|
@@ -347,6 +349,14 @@ function stub(on: any, w: World) {
|
|
|
347
349
|
return { value: { agent: `code-kit:${e.name}` } };
|
|
348
350
|
});
|
|
349
351
|
on('prompt.read', () => ({ value: { text: w.draft, cursor: w.draft.length } }));
|
|
352
|
+
on('model.fork', ($: any, e: any) => {
|
|
353
|
+
w.sideAsks.push({ fork: true, prompt: e.prompt });
|
|
354
|
+
return { value: w.sideReply };
|
|
355
|
+
});
|
|
356
|
+
on('model.complete', ($: any, e: any) => {
|
|
357
|
+
w.sideAsks.push({ model: e.model, prompt: e.prompt });
|
|
358
|
+
return { value: { isAnswered: true, text: 'From the facts alone.', usage: null } };
|
|
359
|
+
});
|
|
350
360
|
// Claude Code's own settings hooks beneath: none answer a permission denial.
|
|
351
361
|
on('classic.PermissionDenied', () => ({}));
|
|
352
362
|
on('prompt.fill', ($: any, e: any) => {
|
|
@@ -644,6 +654,56 @@ test('ACT-1 the person may type their own reason, and an empty one is not accept
|
|
|
644
654
|
await ui.unmount();
|
|
645
655
|
});
|
|
646
656
|
|
|
657
|
+
test("ACT-5 the person asks about an approval in its pane; the answer stays there, out of the lead's conversation", async ($, on) => {
|
|
658
|
+
const w = project();
|
|
659
|
+
w.requests = [dayjs];
|
|
660
|
+
await start($, on, w);
|
|
661
|
+
const ui = await bandUi($);
|
|
662
|
+
await press($, 'band-approve');
|
|
663
|
+
const confirm = await pane($, APPROVE);
|
|
664
|
+
await $.ui.input({
|
|
665
|
+
plugin: 'code-kit',
|
|
666
|
+
key: 'approve-ask',
|
|
667
|
+
text: 'Why does the booking form need this?',
|
|
668
|
+
});
|
|
669
|
+
expect(w.sideAsks).toHaveLength(1);
|
|
670
|
+
expect(w.sideAsks[0].fork).toBe(true);
|
|
671
|
+
expect(w.sideAsks[0].prompt).toMatch(/approvals asked for: dep-dayjs/);
|
|
672
|
+
expect(w.sideAsks[0].prompt).toMatch(/for: the web lane/);
|
|
673
|
+
expect(w.sideAsks[0].prompt).toMatch(/story: ST-4 Booking form/);
|
|
674
|
+
expect(w.sideAsks[0].prompt).toMatch(/Question: Why does the booking form need this\?$/);
|
|
675
|
+
expect(
|
|
676
|
+
await confirm.find({ type: 'Text', text: 'You: Why does the booking form need this?' }),
|
|
677
|
+
).toBeDefined();
|
|
678
|
+
expect(JSON.stringify(await confirm.find({ key: 'aside-a-0' }))).toMatch(
|
|
679
|
+
/dayjs formats the booking dates/,
|
|
680
|
+
);
|
|
681
|
+
// A follow-up carries the aside so far; nothing went to the lead, and nothing was approved.
|
|
682
|
+
await $.ui.input({ plugin: 'code-kit', key: 'approve-ask', text: 'Is it maintained?' });
|
|
683
|
+
expect(w.sideAsks[1].prompt).toMatch(
|
|
684
|
+
/Q: Why does the booking form need this\?\nA: dayjs formats the booking dates\./,
|
|
685
|
+
);
|
|
686
|
+
expect(w.prompts).toEqual([]);
|
|
687
|
+
expect(w.acts).toEqual([]);
|
|
688
|
+
await confirm.unmount();
|
|
689
|
+
await ui.unmount();
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
test('ACT-5 before the lead has replied there is nothing to fork: it answers from the facts alone', async ($, on) => {
|
|
693
|
+
const w = project();
|
|
694
|
+
w.requests = [dayjs];
|
|
695
|
+
w.sideReply = { isAnswered: false, reason: 'nothing-to-fork' };
|
|
696
|
+
await start($, on, w);
|
|
697
|
+
const ui = await bandUi($);
|
|
698
|
+
await press($, 'band-approve');
|
|
699
|
+
const confirm = await pane($, APPROVE);
|
|
700
|
+
await $.ui.input({ plugin: 'code-kit', key: 'approve-ask', text: 'What is it?' });
|
|
701
|
+
expect(w.sideAsks.map((a) => a.model ?? 'fork')).toEqual(['fork', 'sonnet']);
|
|
702
|
+
expect(JSON.stringify(await confirm.find({ key: 'aside-a-0' }))).toMatch(/From the facts alone/);
|
|
703
|
+
await confirm.unmount();
|
|
704
|
+
await ui.unmount();
|
|
705
|
+
});
|
|
706
|
+
|
|
647
707
|
test('ACT-1 cancelling writes nothing', async ($, on) => {
|
|
648
708
|
const w = project();
|
|
649
709
|
w.requests = [dayjs];
|
package/hooks/mod/view.mjs
CHANGED
|
@@ -1057,10 +1057,11 @@ const NOTE_KINDS = new Set(['usage', 'paused', 'finish', 'done', 'teamDown']);
|
|
|
1057
1057
|
/** The Approve… confirmation (ACT-1): what it grants, to whom, for how long, and the reason. */
|
|
1058
1058
|
export function approvePane(
|
|
1059
1059
|
approving,
|
|
1060
|
-
{ Box, Text, Input, Button },
|
|
1061
|
-
{ onInput, onSubmit, onCancel },
|
|
1060
|
+
{ Box, Text, Input, Button, Markdown },
|
|
1061
|
+
{ onInput, onSubmit, onCancel, onAskInput, onAsk },
|
|
1062
1062
|
) {
|
|
1063
1063
|
const { request, reason, error } = approving;
|
|
1064
|
+
const aside = approving.aside ?? { thread: [], draft: '' };
|
|
1064
1065
|
return Box({
|
|
1065
1066
|
flexDirection: 'column',
|
|
1066
1067
|
rowGap: 1,
|
|
@@ -1071,6 +1072,30 @@ export function approvePane(
|
|
|
1071
1072
|
`For ${request.lane ? `the ${request.lane} lane` : 'any agent'}, ${request.names.every((n) => n.startsWith('dep-')) ? 'until the install is committed (at most 7 days)' : 'for 60 minutes'}. Asked for: ${request.what}`,
|
|
1072
1073
|
],
|
|
1073
1074
|
}),
|
|
1075
|
+
// ACT-5: an aside about this approval, answered here and never in the lead's conversation.
|
|
1076
|
+
...aside.thread.flatMap((turn, i) => [
|
|
1077
|
+
Text({ key: `aside-q-${i}`, color: 'cyan', children: [`You: ${turn.question}`] }),
|
|
1078
|
+
turn.pending
|
|
1079
|
+
? Text({ key: `aside-a-${i}`, dimColor: true, children: ['Asking…'] })
|
|
1080
|
+
: turn.error
|
|
1081
|
+
? Text({ key: `aside-a-${i}`, color: 'red', children: [turn.error] })
|
|
1082
|
+
: Markdown
|
|
1083
|
+
? Markdown({ key: `aside-a-${i}`, text: turn.answer })
|
|
1084
|
+
: Text({ key: `aside-a-${i}`, children: [turn.answer] }),
|
|
1085
|
+
]),
|
|
1086
|
+
...(onAsk
|
|
1087
|
+
? [
|
|
1088
|
+
Input({
|
|
1089
|
+
key: 'approve-ask',
|
|
1090
|
+
label: 'Ask about it',
|
|
1091
|
+
value: aside.draft,
|
|
1092
|
+
placeholder: 'What is it for, and what does approving it let happen?',
|
|
1093
|
+
submitLabel: 'Ask',
|
|
1094
|
+
onInput: onAskInput,
|
|
1095
|
+
onSubmit: onAsk,
|
|
1096
|
+
}),
|
|
1097
|
+
]
|
|
1098
|
+
: []),
|
|
1074
1099
|
Input({
|
|
1075
1100
|
key: 'approve-reason',
|
|
1076
1101
|
label: 'Reason',
|
|
@@ -1093,6 +1118,44 @@ export function approvePane(
|
|
|
1093
1118
|
});
|
|
1094
1119
|
}
|
|
1095
1120
|
|
|
1121
|
+
/**
|
|
1122
|
+
* ACT-5: the side call's prompt for a question about an approval: what code-kit knows of the request (the
|
|
1123
|
+
* names, the lane, what was refused and why, its story, the limits it missed), the aside so far, and the
|
|
1124
|
+
* question. It answers in the pane, never in the conversation, and acts on nothing.
|
|
1125
|
+
*/
|
|
1126
|
+
export function approvalAsidePrompt({
|
|
1127
|
+
request,
|
|
1128
|
+
story = null,
|
|
1129
|
+
outside = null,
|
|
1130
|
+
thread = [],
|
|
1131
|
+
question,
|
|
1132
|
+
}) {
|
|
1133
|
+
return [
|
|
1134
|
+
"The person is deciding whether to approve something code-kit stopped, and asks you about it in code-kit's approval pane. Answer in a few short sentences, in plain words: what it is, why it's needed for the work, what approving it lets happen, and anything risky about it. Use what you know from this conversation and the facts below. If you don't know, say so; don't guess. This answer goes to that pane, not into the conversation: don't act on it, and don't change your plans because of it.",
|
|
1135
|
+
'',
|
|
1136
|
+
'The approval:',
|
|
1137
|
+
`- approvals asked for: ${request.names.join(', ')}`,
|
|
1138
|
+
`- for: ${request.lane ? `the ${request.lane} lane` : (request.actor ?? 'an agent')}`,
|
|
1139
|
+
`- what was refused: ${request.what}`,
|
|
1140
|
+
...(request.why ? [`- why code-kit refused it: ${request.why}`] : []),
|
|
1141
|
+
...(story
|
|
1142
|
+
? [
|
|
1143
|
+
`- story: ${story.id} ${story.title ?? ''}${story.requirements?.length ? ` (${story.requirements.join(', ')})` : ''}`,
|
|
1144
|
+
]
|
|
1145
|
+
: []),
|
|
1146
|
+
...(outside ? [`- outside the limits the person set for the lead: ${outside}`] : []),
|
|
1147
|
+
...(thread.length
|
|
1148
|
+
? [
|
|
1149
|
+
'',
|
|
1150
|
+
'Asked so far:',
|
|
1151
|
+
...thread.flatMap((t) => [`Q: ${t.question}`, `A: ${t.answer ?? t.error ?? ''}`]),
|
|
1152
|
+
]
|
|
1153
|
+
: []),
|
|
1154
|
+
'',
|
|
1155
|
+
`Question: ${question}`,
|
|
1156
|
+
].join('\n');
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1096
1159
|
export const ANSWER_ID = 'code-kit-answer';
|
|
1097
1160
|
|
|
1098
1161
|
/** ASK-2, ASK-4: the person's answer to the lead's question, or to one in their brief, typed. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warren-dean/code-kit",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Keeps AI coding agents inside your project's rules: lanes, layer rules, protected paths and proof before finish, enforced by Claude Code hooks and in CI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Warren Langeveldt",
|