@warren-dean/code-kit 0.31.1 → 0.32.0
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 +11 -0
- package/README.md +6 -6
- package/bin/code-kit.mjs +4 -3
- package/hooks/guard-agent.mjs +17 -2
- package/hooks/guard-bash.mjs +34 -4
- package/hooks/hooks.json +16 -0
- package/hooks/lib/checkout.mjs +198 -25
- package/hooks/lib/lanetrees.mjs +159 -0
- package/hooks/lib/next.mjs +3 -1
- package/hooks/lib/shell.mjs +71 -1
- package/hooks/lib/worktrees.mjs +91 -31
- package/hooks/mod/board.mjs +38 -61
- package/hooks/mod/decisions.mjs +26 -49
- package/hooks/mod/panes.mjs +151 -164
- package/hooks/mod/register.mjs +124 -163
- package/hooks/mod/view.mjs +4 -70
- package/hooks/worktree-create.mjs +34 -0
- package/hooks/worktree-done.mjs +45 -0
- package/package.json +1 -1
- package/skills/dispatch/SKILL.md +2 -2
- package/templates/agent.md +1 -1
package/hooks/mod/decisions.mjs
CHANGED
|
@@ -290,6 +290,26 @@ function storyOf(line, state) {
|
|
|
290
290
|
return null;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
/**
|
|
294
|
+
* DECIDE-5: what an answer typed in the person's own words answers, for the cards that take one: the
|
|
295
|
+
* lead's question, one open in the brief, or what the lead's last reply waits on. Null for the rest.
|
|
296
|
+
*/
|
|
297
|
+
function typedOf(line, story) {
|
|
298
|
+
if (line.kind === 'question')
|
|
299
|
+
return { kind: 'question', ...line.question, story: line.question.story ?? story?.id ?? null };
|
|
300
|
+
if (line.kind === 'brief') return { kind: 'brief', ...line.brief };
|
|
301
|
+
if (line.kind === 'waiting' && line.waiting?.kind === 'person' && line.waiting.question)
|
|
302
|
+
return {
|
|
303
|
+
kind: 'lead',
|
|
304
|
+
question: line.waiting.question,
|
|
305
|
+
options: line.waiting.options ?? [],
|
|
306
|
+
};
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** DECIDE-5: the options a typed answer stands in for: Answer… and Something else…, which open no box now. */
|
|
311
|
+
export const TYPED_OPTIONS = new Set(['answer', 'answerBrief', 'answerLeadText']);
|
|
312
|
+
|
|
293
313
|
/**
|
|
294
314
|
* DECIDE-2: a card for each line that needs the person, in the band's order: { id, kind, title, asked,
|
|
295
315
|
* story, requirements, doing, settled, why, options }. `context`: { state, status (for requirement
|
|
@@ -320,9 +340,14 @@ export function decisionCards(lines, context = {}) {
|
|
|
320
340
|
const { headline, sub } = headlineOf(line, story);
|
|
321
341
|
return {
|
|
322
342
|
id: `${line.kind}-${i}`,
|
|
343
|
+
// DECIDE-5: what the card is about, the same across refreshes, so the one in view stays in view.
|
|
344
|
+
key: `${line.kind}|${String(headline).replace(/\s+/g, ' ').trim()}`,
|
|
323
345
|
kind: line.kind,
|
|
324
346
|
tag: TAG[line.kind] ?? 'decision',
|
|
325
347
|
headline: clip(headline, 100),
|
|
348
|
+
// DECIDE-5: the whole of it, never cut, for the Decide pane.
|
|
349
|
+
full: String(headline).replace(/\s+/g, ' ').trim(),
|
|
350
|
+
typed: typedOf(line, story),
|
|
326
351
|
sub,
|
|
327
352
|
line,
|
|
328
353
|
// The band line it came from: one line can stand for several decisions (CARD-8).
|
|
@@ -391,56 +416,8 @@ export function contextOf(card) {
|
|
|
391
416
|
return `for ${card.story.id} ${card.story.title}${reqs ? ` (${reqs})` : ''}`;
|
|
392
417
|
}
|
|
393
418
|
|
|
394
|
-
/** DECIDE-4: the kinds of decision settled with a choice, asked in Claude Code's own question dialog. */
|
|
395
|
-
export const NATIVE_KINDS = new Set(['proposal', 'teamStale', 'question', 'waiting']);
|
|
396
|
-
|
|
397
|
-
/** One sentence ended as a question asks. */
|
|
398
|
-
const asked = (text, question) => `${String(text).replace(/[.\s]+$/, '')}. ${question}`;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* DECIDE-4: a decision card as Claude Code's question dialog asks it: { key, question, header, options:
|
|
402
|
-
* [{ label, act, line }], typed }, or null for one that needs the pane (a reason to give, an answer to
|
|
403
|
-
* type with no choices offered). An option without `act` leaves the decision where it is; `typed` names
|
|
404
|
-
* the act that takes the person's own words, typed under the dialog's Other.
|
|
405
|
-
*/
|
|
406
|
-
export function nativeChoice(card) {
|
|
407
|
-
if (!NATIVE_KINDS.has(card.kind)) return null;
|
|
408
|
-
const line = card.line;
|
|
409
|
-
const w = line.waiting;
|
|
410
|
-
// What the person stopped, or a reply waiting on them with no question in it, is theirs to pick up
|
|
411
|
-
// in the chat: no dialog over what they're about to type.
|
|
412
|
-
if (card.kind === 'waiting' && !(w?.kind === 'person' && w.question) && w?.kind !== 'blocked')
|
|
413
|
-
return null;
|
|
414
|
-
const options = card.options
|
|
415
|
-
.filter((o) => !o.label.endsWith('…'))
|
|
416
|
-
.slice(0, 4)
|
|
417
|
-
.map((o) => ({ label: o.label, act: o.act ?? o.id, line: o.line ?? line }));
|
|
418
|
-
if (!options.length) return null;
|
|
419
|
-
if (options.length === 1) options.push({ label: 'Not now', act: null, line });
|
|
420
|
-
const question =
|
|
421
|
-
card.kind === 'proposal' && line.proposal?.first
|
|
422
|
-
? asked(line.text, 'How much should it do on its own?')
|
|
423
|
-
: card.kind === 'proposal' && line.proposal?.repeated
|
|
424
|
-
? `${card.why} ${line.text}`
|
|
425
|
-
: card.kind === 'stalled'
|
|
426
|
-
? asked(`${line.text}. ${card.why}`, 'Restart it?')
|
|
427
|
-
: card.kind === 'teamStale'
|
|
428
|
-
? asked(line.text, 'Keep your claim?')
|
|
429
|
-
: card.kind === 'waiting' && w.kind === 'blocked'
|
|
430
|
-
? asked(line.text, 'Ask the lead again?')
|
|
431
|
-
: card.headline;
|
|
432
|
-
return {
|
|
433
|
-
key: `${card.kind}:${card.headline}:${options.map((o) => o.label).join('|')}`,
|
|
434
|
-
question: /\?$/.test(question) ? question : `${question}?`,
|
|
435
|
-
header: card.tag.slice(0, 12),
|
|
436
|
-
options,
|
|
437
|
-
typed:
|
|
438
|
-
card.kind === 'question' ? 'answerTyped' : card.kind === 'waiting' ? 'answerLeadTyped' : null,
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
419
|
/** NOTIFY-1: a decision's identity across refreshes: its kind and what it asks. */
|
|
443
|
-
export const decisionKey = (card) => `${card.kind}|${card.headline}`;
|
|
420
|
+
export const decisionKey = (card) => card.key ?? `${card.kind}|${card.headline}`;
|
|
444
421
|
|
|
445
422
|
/**
|
|
446
423
|
* NOTIFY-1: the decisions that weren't waiting at the last look, each as a system notification: what it
|
package/hooks/mod/panes.mjs
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
mapSvg,
|
|
14
14
|
neighboursOf,
|
|
15
15
|
} from './codemap.mjs';
|
|
16
|
-
import { ago, shownState, tokens } from './view.mjs';
|
|
16
|
+
import { ago, asideNodes, shownState, tokens } from './view.mjs';
|
|
17
|
+
import { TYPED_OPTIONS } from './decisions.mjs';
|
|
17
18
|
|
|
18
19
|
/** A lane's stories in plan order. */
|
|
19
20
|
export const laneStories = (lane, state) =>
|
|
@@ -942,192 +943,178 @@ export function codeTab(view, { Box, Text, Button, Svg }, on) {
|
|
|
942
943
|
return [picker, drawing, legend, detail, keys];
|
|
943
944
|
}
|
|
944
945
|
|
|
945
|
-
/**
|
|
946
|
-
|
|
946
|
+
/** DECIDE-5: the card the Decide pane shows: the one it was opened on, else the one now in its place. */
|
|
947
|
+
export function cardToDecide(cards, { key = null, at = 0 } = {}) {
|
|
948
|
+
if (!cards.length) return null;
|
|
949
|
+
const i = cards.findIndex((c) => c.key === key);
|
|
950
|
+
return i >= 0 ? i : Math.min(Math.max(0, at), cards.length - 1);
|
|
951
|
+
}
|
|
947
952
|
|
|
948
953
|
/**
|
|
949
|
-
* DECIDE-
|
|
950
|
-
*
|
|
951
|
-
*
|
|
952
|
-
*
|
|
953
|
-
*
|
|
954
|
+
* DECIDE-5: the Decide pane: one decision at a time, all of it: what it asks, never cut; why it's the
|
|
955
|
+
* person's; the story and requirements it's for, what was happening and what's settled; each option with
|
|
956
|
+
* what it does, on its number; the person's own words, where it takes them, and a question about it
|
|
957
|
+
* first (ASK-5); n and p to the next and previous. `ui`: { key, at, typing: { text, error, aside } }.
|
|
958
|
+
* `on`: onOption(option, card), onMove(key), onTypedInput, onTyped, onAskInput, onAsk, onClose.
|
|
954
959
|
*/
|
|
955
|
-
export function
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
const at =
|
|
960
|
+
export function decidePane(cards, ui, els, on) {
|
|
961
|
+
const { Box, Text, Button, Input, Markdown } = els;
|
|
962
|
+
const text = (value, style = {}) => Text({ ...style, children: [String(value)] });
|
|
963
|
+
const at = cardToDecide(cards, ui);
|
|
964
|
+
if (at === null)
|
|
965
|
+
return Box({
|
|
966
|
+
flexDirection: 'column',
|
|
967
|
+
rowGap: 1,
|
|
968
|
+
children: [
|
|
969
|
+
text('Nothing needs you now.', { bold: true }),
|
|
970
|
+
text("Everything else is the lead's.", { dimColor: true }),
|
|
971
|
+
Button({ key: 'decide-close', label: 'Close', onPress: () => on.onClose() }),
|
|
972
|
+
],
|
|
973
|
+
});
|
|
959
974
|
const card = cards[at];
|
|
960
975
|
const row = (label, value, style = {}) =>
|
|
961
976
|
Box({
|
|
962
|
-
key: `
|
|
977
|
+
key: `decide-${label}`,
|
|
963
978
|
flexDirection: 'row',
|
|
964
979
|
columnGap: 1,
|
|
965
980
|
children: [
|
|
966
|
-
text(label
|
|
967
|
-
text(value, { wrap: 'wrap', ...style }),
|
|
981
|
+
Box({ width: 10, flexShrink: 0, children: [text(label, { dimColor: true })] }),
|
|
982
|
+
Box({ flexShrink: 1, children: [text(value, { wrap: 'wrap', ...style })] }),
|
|
968
983
|
],
|
|
969
984
|
});
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
985
|
+
const story = card.story
|
|
986
|
+
? `${card.story.id} ${card.story.title}`.trim() +
|
|
987
|
+
(card.requirements.length
|
|
988
|
+
? ` (${card.requirements.map((r) => `${r.id}${r.title ? ` ${r.title}` : ''}`).join('; ')})`
|
|
989
|
+
: '')
|
|
990
|
+
: null;
|
|
991
|
+
const choices = card.options.filter((o) => !(card.typed && TYPED_OPTIONS.has(o.act ?? o.id)));
|
|
992
|
+
const typing = ui.typing ?? { text: '', error: null, aside: { thread: [], draft: '' } };
|
|
993
|
+
const move = (step) => {
|
|
994
|
+
const next = cards[(at + step + cards.length) % cards.length];
|
|
995
|
+
on.onMove(next.key, (at + step + cards.length) % cards.length);
|
|
996
|
+
};
|
|
997
|
+
return Box({
|
|
976
998
|
flexDirection: 'column',
|
|
999
|
+
rowGap: 1,
|
|
977
1000
|
children: [
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
Box({
|
|
990
|
-
key: `decision-head-${i}`,
|
|
991
|
-
flexDirection: 'row',
|
|
992
|
-
columnGap: 1,
|
|
993
|
-
children: [
|
|
994
|
-
Button({
|
|
995
|
-
key: `decision-pick-${i}`,
|
|
996
|
-
label: c.tag,
|
|
997
|
-
plain: true,
|
|
998
|
-
...(i === at ? {} : { dimColor: true }),
|
|
999
|
-
onPress: () => on.onDecision(i),
|
|
1000
|
-
}),
|
|
1001
|
-
Box({
|
|
1002
|
-
flexShrink: 1,
|
|
1003
|
-
children: [text(c.headline, { bold: i === at, wrap: 'truncate-end' })],
|
|
1004
|
-
}),
|
|
1005
|
-
],
|
|
1006
|
-
}),
|
|
1007
|
-
...(c.sub ? [text(c.sub, { dimColor: true, wrap: 'truncate-end' })] : []),
|
|
1008
|
-
],
|
|
1009
|
-
});
|
|
1001
|
+
Box({
|
|
1002
|
+
key: 'decide-head',
|
|
1003
|
+
flexDirection: 'row',
|
|
1004
|
+
columnGap: 1,
|
|
1005
|
+
children: [
|
|
1006
|
+
text(cards.length > 1 ? `${at + 1} of ${cards.length}` : 'Decision', { dimColor: true }),
|
|
1007
|
+
text(card.tag, { color: 'yellow' }),
|
|
1008
|
+
...(card.story
|
|
1009
|
+
? [Box({ flexShrink: 1, children: [text(card.story.id, { dimColor: true })] })]
|
|
1010
|
+
: []),
|
|
1011
|
+
],
|
|
1010
1012
|
}),
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
key: 'decision-below',
|
|
1015
|
-
dimColor: true,
|
|
1016
|
-
}),
|
|
1017
|
-
]
|
|
1018
|
-
: []),
|
|
1019
|
-
],
|
|
1020
|
-
});
|
|
1021
|
-
const keys = Box({
|
|
1022
|
-
key: 'decision-keys',
|
|
1023
|
-
flexDirection: 'row',
|
|
1024
|
-
columnGap: 2,
|
|
1025
|
-
children: [
|
|
1026
|
-
Button({
|
|
1027
|
-
key: 'decision-next',
|
|
1028
|
-
label: 'Next',
|
|
1029
|
-
hotkey: 'j',
|
|
1030
|
-
plain: true,
|
|
1031
|
-
onPress: () => on.onDecision(Math.min(at + 1, cards.length - 1)),
|
|
1013
|
+
Box({
|
|
1014
|
+
key: 'decide-question',
|
|
1015
|
+
children: [text(card.full ?? card.headline, { bold: true, wrap: 'wrap' })],
|
|
1032
1016
|
}),
|
|
1033
|
-
|
|
1034
|
-
key: '
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1017
|
+
Box({
|
|
1018
|
+
key: 'decide-lineage',
|
|
1019
|
+
flexDirection: 'column',
|
|
1020
|
+
children: [
|
|
1021
|
+
...(card.why ? [row('Why yours', card.why)] : []),
|
|
1022
|
+
...(card.details ?? [])
|
|
1023
|
+
.filter((d) => d.label !== 'Question')
|
|
1024
|
+
.map((d) => row(d.label, d.value)),
|
|
1025
|
+
...(story ? [row('For', story)] : []),
|
|
1026
|
+
...(card.asked ? [row('You asked', card.asked, { dimColor: true })] : []),
|
|
1027
|
+
...(card.doing ? [row('Happening', card.doing, { dimColor: true })] : []),
|
|
1028
|
+
...(card.settled.length
|
|
1029
|
+
? [row('Settled', card.settled.join('\n'), { dimColor: true })]
|
|
1030
|
+
: []),
|
|
1031
|
+
],
|
|
1039
1032
|
}),
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
rowGap: 0,
|
|
1050
|
-
children: [
|
|
1051
|
-
text(
|
|
1052
|
-
card.kind === 'brief'
|
|
1053
|
-
? 'An open question in your brief'
|
|
1054
|
-
: card.kind === 'question'
|
|
1055
|
-
? 'A question from the lead'
|
|
1056
|
-
: card.headline,
|
|
1057
|
-
{ bold: true, wrap: 'wrap' },
|
|
1058
|
-
),
|
|
1059
|
-
...(card.details ?? []).map((d) =>
|
|
1060
|
-
row(d.label, d.value, d.label === 'Question' ? { bold: true } : {}),
|
|
1061
|
-
),
|
|
1062
|
-
...(card.asked ? [row('You asked for', card.asked)] : []),
|
|
1063
|
-
...(card.story
|
|
1064
|
-
? [
|
|
1065
|
-
row(
|
|
1066
|
-
'Story',
|
|
1067
|
-
`${card.story.id} ${card.story.title}${card.story.branch ? ` · ${card.story.branch}` : ''}`,
|
|
1068
|
-
),
|
|
1069
|
-
]
|
|
1070
|
-
: []),
|
|
1071
|
-
...(card.requirements.length
|
|
1072
|
-
? [
|
|
1073
|
-
row(
|
|
1074
|
-
'Requirements',
|
|
1075
|
-
card.requirements.map((r) => `${r.id}${r.title ? ` ${r.title}` : ''}`).join('; '),
|
|
1076
|
-
),
|
|
1077
|
-
]
|
|
1078
|
-
: []),
|
|
1079
|
-
...(card.doing ? [row('Happening', card.doing)] : []),
|
|
1080
|
-
...(card.settled.length
|
|
1081
|
-
? [
|
|
1082
|
-
text('Already settled', { dimColor: true }),
|
|
1083
|
-
...card.settled.map((line, i) =>
|
|
1033
|
+
Box({
|
|
1034
|
+
key: 'decide-options',
|
|
1035
|
+
flexDirection: 'column',
|
|
1036
|
+
children: choices.map((o, i) =>
|
|
1037
|
+
Box({
|
|
1038
|
+
key: `decide-option-${o.id}`,
|
|
1039
|
+
flexDirection: 'row',
|
|
1040
|
+
columnGap: 2,
|
|
1041
|
+
children: [
|
|
1084
1042
|
Box({
|
|
1085
|
-
|
|
1086
|
-
children: [
|
|
1043
|
+
flexShrink: 0,
|
|
1044
|
+
children: [
|
|
1045
|
+
Button({
|
|
1046
|
+
key: `decide-${o.id}`,
|
|
1047
|
+
label: o.label,
|
|
1048
|
+
...(i < 9 ? { hotkey: String(i + 1) } : {}),
|
|
1049
|
+
plain: true,
|
|
1050
|
+
...(i === 0 && !card.typed ? { autoFocus: true } : {}),
|
|
1051
|
+
onPress: () => on.onOption(o, card),
|
|
1052
|
+
}),
|
|
1053
|
+
],
|
|
1087
1054
|
}),
|
|
1055
|
+
...(o.effect
|
|
1056
|
+
? [
|
|
1057
|
+
Box({
|
|
1058
|
+
flexShrink: 1,
|
|
1059
|
+
children: [text(o.effect, { dimColor: true, wrap: 'wrap' })],
|
|
1060
|
+
}),
|
|
1061
|
+
]
|
|
1062
|
+
: []),
|
|
1063
|
+
],
|
|
1064
|
+
}),
|
|
1065
|
+
),
|
|
1066
|
+
}),
|
|
1067
|
+
...(card.typed
|
|
1068
|
+
? [
|
|
1069
|
+
Input({
|
|
1070
|
+
key: 'decide-typed',
|
|
1071
|
+
label: choices.length ? 'Or in your own words' : 'Your answer',
|
|
1072
|
+
value: typing.text,
|
|
1073
|
+
submitLabel: 'Answer',
|
|
1074
|
+
autoFocus: true,
|
|
1075
|
+
onInput: (value) => on.onTypedInput(value),
|
|
1076
|
+
onSubmit: (value) => on.onTyped(card, value),
|
|
1077
|
+
}),
|
|
1078
|
+
...(typing.error ? [text(typing.error, { color: 'red', wrap: 'wrap' })] : []),
|
|
1079
|
+
...asideNodes(
|
|
1080
|
+
typing.aside ?? { thread: [], draft: '' },
|
|
1081
|
+
{ Text, Input, Markdown },
|
|
1082
|
+
{ onAskInput: on.onAskInput, onAsk: (q) => on.onAsk(card, q) },
|
|
1083
|
+
'What does it mean, and what would you suggest?',
|
|
1088
1084
|
),
|
|
1089
1085
|
]
|
|
1090
1086
|
: []),
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1087
|
+
Box({
|
|
1088
|
+
key: 'decide-keys',
|
|
1089
|
+
flexDirection: 'row',
|
|
1090
|
+
columnGap: 2,
|
|
1091
|
+
children: [
|
|
1092
|
+
...(cards.length > 1
|
|
1093
|
+
? [
|
|
1094
|
+
Button({
|
|
1095
|
+
key: 'decide-next',
|
|
1096
|
+
label: 'Next',
|
|
1097
|
+
hotkey: 'n',
|
|
1098
|
+
plain: true,
|
|
1099
|
+
onPress: () => move(1),
|
|
1100
|
+
}),
|
|
1101
|
+
Button({
|
|
1102
|
+
key: 'decide-prev',
|
|
1103
|
+
label: 'Previous',
|
|
1104
|
+
hotkey: 'p',
|
|
1105
|
+
plain: true,
|
|
1106
|
+
onPress: () => move(-1),
|
|
1107
|
+
}),
|
|
1108
|
+
]
|
|
1109
|
+
: []),
|
|
1110
|
+
Box({
|
|
1111
|
+
flexShrink: 1,
|
|
1112
|
+
children: [text('esc closes; it waits in Needs you', { dimColor: true, wrap: 'wrap' })],
|
|
1113
|
+
}),
|
|
1114
|
+
],
|
|
1115
|
+
}),
|
|
1110
1116
|
],
|
|
1111
1117
|
});
|
|
1112
|
-
return [
|
|
1113
|
-
text(
|
|
1114
|
-
`${cards.length} decision${cards.length === 1 ? '' : 's'} need${cards.length === 1 ? 's' : ''} you. Everything else is the lead's.`,
|
|
1115
|
-
{ bold: true, wrap: 'wrap' },
|
|
1116
|
-
),
|
|
1117
|
-
Box({
|
|
1118
|
-
key: 'decision-kinds',
|
|
1119
|
-
children: [
|
|
1120
|
-
text(
|
|
1121
|
-
[...kinds]
|
|
1122
|
-
.map(([tag, n]) => `${n} ${tag}${n === 1 || tag.endsWith('brief') ? '' : 's'}`)
|
|
1123
|
-
.join(' · '),
|
|
1124
|
-
{ dimColor: true, wrap: 'wrap' },
|
|
1125
|
-
),
|
|
1126
|
-
],
|
|
1127
|
-
}),
|
|
1128
|
-
...(cards.length > 1 ? [list, keys] : []),
|
|
1129
|
-
detail,
|
|
1130
|
-
];
|
|
1131
1118
|
}
|
|
1132
1119
|
|
|
1133
1120
|
const JOURNAL_GLYPH = {
|