linersh 0.5.7 → 1.0.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/README.md +84 -159
- package/bin/liner.js +89 -44
- package/cli-update-docs/README.md +6 -6
- package/cli-update-docs/SKILL.md +72 -37
- package/cli-update-docs/quality-check-tests.md +256 -8
- package/cli-update-docs/source-finding-tactics.md +140 -3
- package/cli-update-docs/source-quality-hierarchy.md +83 -0
- package/cli-update-docs/synthesis-guidance.md +19 -5
- package/dist/agents/artifact-validation.js +440 -0
- package/dist/agents/artifact-validation.js.map +1 -0
- package/dist/agents/candidate-longlist.js +100 -0
- package/dist/agents/candidate-longlist.js.map +1 -0
- package/dist/agents/detect.js +3 -2
- package/dist/agents/detect.js.map +1 -1
- package/dist/agents/evaluation-assembly.js +270 -0
- package/dist/agents/evaluation-assembly.js.map +1 -0
- package/dist/agents/headless-runner.js +227 -0
- package/dist/agents/headless-runner.js.map +1 -0
- package/dist/agents/jtbd-clarify.js +42 -41
- package/dist/agents/jtbd-clarify.js.map +1 -1
- package/dist/agents/models.js +6 -7
- package/dist/agents/models.js.map +1 -1
- package/dist/agents/prompts.js +220 -20
- package/dist/agents/prompts.js.map +1 -1
- package/dist/agents/runner.js +462 -21
- package/dist/agents/runner.js.map +1 -1
- package/dist/phases.js +13 -13
- package/dist/phases.js.map +1 -1
- package/dist/source-inbox.js +297 -0
- package/dist/source-inbox.js.map +1 -0
- package/dist/version.js +3 -9
- package/dist/version.js.map +1 -1
- package/dist/yaml-io.js +42 -11
- package/dist/yaml-io.js.map +1 -1
- package/package.json +26 -23
- package/cli-update-docs/ABOUT.md +0 -69
- package/cli-update-docs/AI-HANDOFF.md +0 -241
- package/cli-update-docs/CURATION.md +0 -261
- package/cli-update-docs/JOB-STORY-MIGRATION.md +0 -99
- package/cli-update-docs/JTBD-MASTER-PROMPT-ABOUT.md +0 -133
- package/cli-update-docs/JTBD-MASTER-PROMPT.md +0 -147
- package/cli-update-docs/LINER-MASTER.md +0 -546
- package/cli-update-docs/MIXTAPE-FORMAT.md +0 -398
- package/cli-update-docs/PLATFORM.md +0 -210
- package/cli-update-docs/TUI-BACKLOG.md +0 -155
- package/dist/App.js +0 -220
- package/dist/App.js.map +0 -1
- package/dist/colors.js +0 -132
- package/dist/colors.js.map +0 -1
- package/dist/components/Header.js +0 -15
- package/dist/components/Header.js.map +0 -1
- package/dist/components/KeyHints.js +0 -17
- package/dist/components/KeyHints.js.map +0 -1
- package/dist/components/LabeledBox.js +0 -53
- package/dist/components/LabeledBox.js.map +0 -1
- package/dist/components/NextSteps.js +0 -18
- package/dist/components/NextSteps.js.map +0 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +0 -1
- package/dist/screens/AgentSetup.js +0 -224
- package/dist/screens/AgentSetup.js.map +0 -1
- package/dist/screens/BootSplash.js +0 -163
- package/dist/screens/BootSplash.js.map +0 -1
- package/dist/screens/CompileView.js +0 -567
- package/dist/screens/CompileView.js.map +0 -1
- package/dist/screens/FramingConfirmReview.js +0 -197
- package/dist/screens/FramingConfirmReview.js.map +0 -1
- package/dist/screens/Gate1Review.js +0 -147
- package/dist/screens/Gate1Review.js.map +0 -1
- package/dist/screens/Gate2Review.js +0 -162
- package/dist/screens/Gate2Review.js.map +0 -1
- package/dist/screens/ImportPrompt.js +0 -173
- package/dist/screens/ImportPrompt.js.map +0 -1
- package/dist/screens/JsSetup.js +0 -77
- package/dist/screens/JsSetup.js.map +0 -1
- package/dist/screens/LocalFilePicker.js +0 -139
- package/dist/screens/LocalFilePicker.js.map +0 -1
- package/dist/screens/NewMixtapeWizard.js +0 -662
- package/dist/screens/NewMixtapeWizard.js.map +0 -1
- package/dist/screens/PhaseRunner.js +0 -1203
- package/dist/screens/PhaseRunner.js.map +0 -1
- package/dist/screens/ProcessManifest.js +0 -160
- package/dist/screens/ProcessManifest.js.map +0 -1
- package/dist/screens/ProjectHub.js +0 -557
- package/dist/screens/ProjectHub.js.map +0 -1
- package/dist/screens/SourceModal.js +0 -269
- package/dist/screens/SourceModal.js.map +0 -1
- package/dist/screens/TapeBrowser.js +0 -312
- package/dist/screens/TapeBrowser.js.map +0 -1
- package/dist/screens/TapeDraftReview.js +0 -444
- package/dist/screens/TapeDraftReview.js.map +0 -1
- package/dist/screens/TapeEditor.js +0 -310
- package/dist/screens/TapeEditor.js.map +0 -1
- package/dist/screens/cassette-art.js +0 -72
- package/dist/screens/cassette-art.js.map +0 -1
- package/dist/store.js +0 -10
- package/dist/store.js.map +0 -1
|
@@ -1,557 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from "react";
|
|
2
|
-
import { Box, Text, useApp as useInkApp, useInput, useStdin } from "ink";
|
|
3
|
-
import { spawn } from "node:child_process";
|
|
4
|
-
import { existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
5
|
-
import { join } from "node:path";
|
|
6
|
-
const TAPE_DRAFT_REL = "working/07-tape-draft.yaml";
|
|
7
|
-
import { Header } from "../components/Header.js";
|
|
8
|
-
import { KeyHints } from "../components/KeyHints.js";
|
|
9
|
-
import { LabeledBox } from "../components/LabeledBox.js";
|
|
10
|
-
import { useApp } from "../store.js";
|
|
11
|
-
import { projectFolder } from "../yaml-io.js";
|
|
12
|
-
import { computePhases, everythingComplete, statusGlyph, statusColor, statusLabel, } from "../phases.js";
|
|
13
|
-
import { migrateProgress, progressFileExists, readProgress, TOTAL_STEPS, } from "../progress.js";
|
|
14
|
-
import { runShare } from "../ipc.js";
|
|
15
|
-
import { openFolder } from "../open-folder.js";
|
|
16
|
-
import { detectAgents } from "../agents/detect.js";
|
|
17
|
-
import { resolveEditor } from "../editor.js";
|
|
18
|
-
import { MUTED, ON_FILL, CURRENT, ERROR, HEADING, STRUCTURE, SUCCESS, WARNING } from "../colors.js";
|
|
19
|
-
const PREVIEW_LINES = 14;
|
|
20
|
-
export function ProjectHub({ tape: initialTape, folder, }) {
|
|
21
|
-
const app = useApp();
|
|
22
|
-
const ink = useInkApp();
|
|
23
|
-
const { setRawMode } = useStdin();
|
|
24
|
-
const project = useMemo(() => projectFolder(folder), [folder]);
|
|
25
|
-
const [tape, setTape] = useState(initialTape);
|
|
26
|
-
const [refreshTick, setRefreshTick] = useState(0);
|
|
27
|
-
// Read or migrate the progress cursor on mount. Migration runs once for
|
|
28
|
-
// projects that pre-date `.liner-progress.json` (e.g. created with an
|
|
29
|
-
// older TUI build); it walks the phase artifacts and sets step to the
|
|
30
|
-
// longest consecutive "done" prefix.
|
|
31
|
-
const [progress, setProgress] = useState(() => {
|
|
32
|
-
if (progressFileExists(folder))
|
|
33
|
-
return readProgress(folder);
|
|
34
|
-
return migrateProgress(folder, initialTape);
|
|
35
|
-
});
|
|
36
|
-
const compiledArtifactCurrent = useMemo(() => isCompiledArtifactCurrent(project), [project, refreshTick]);
|
|
37
|
-
const displayProgress = useMemo(() => compiledArtifactCurrent && progress.step >= TOTAL_STEPS - 1
|
|
38
|
-
? { ...progress, step: TOTAL_STEPS }
|
|
39
|
-
: progress, [compiledArtifactCurrent, progress]);
|
|
40
|
-
const compileWarningCount = useMemo(() => (compiledArtifactCurrent ? countCompilationNotes(project.mixtapePath) : 0), [compiledArtifactCurrent, project.mixtapePath, refreshTick]);
|
|
41
|
-
const phases = useMemo(() => computePhases(project, tape, displayProgress),
|
|
42
|
-
// refreshTick is intentionally in the dep array so file changes re-derive
|
|
43
|
-
// status. eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
|
-
[project, tape, displayProgress, refreshTick]);
|
|
45
|
-
// Current index IS the progress cursor — clamped so the all-done state
|
|
46
|
-
// (step >= TOTAL_STEPS) still has a sensible "last visible" phase to focus.
|
|
47
|
-
const currentIndex = Math.min(displayProgress.step, phases.length - 1);
|
|
48
|
-
// Single summary view: a status box + the full phase checklist with a
|
|
49
|
-
// detail pane, always shown. `selected` is the highlighted phase; it starts
|
|
50
|
-
// on the current (recommended-next) phase.
|
|
51
|
-
const [selected, setSelected] = useState(currentIndex);
|
|
52
|
-
// Detect once at mount whether any agent CLI is installed. Drives whether
|
|
53
|
-
// enter on agent-eligible phases runs the agent or falls back to $EDITOR.
|
|
54
|
-
const hasAgent = useMemo(() => detectAgents().length > 0, []);
|
|
55
|
-
const focusedPhase = phases[selected];
|
|
56
|
-
const focusedIndex = selected;
|
|
57
|
-
const allDone = everythingComplete(displayProgress);
|
|
58
|
-
const notStarted = displayProgress.step === 0;
|
|
59
|
-
const readyToCompile = !allDone && displayProgress.step === TOTAL_STEPS - 1;
|
|
60
|
-
const nextLabel = phases[currentIndex]?.label ?? "Framing";
|
|
61
|
-
function refresh() {
|
|
62
|
-
// Re-read progress in case another screen advanced the cursor (gate
|
|
63
|
-
// accept, phase agent run, compile success). Without this the hub
|
|
64
|
-
// would show stale status until the user navigated away and back.
|
|
65
|
-
setProgress(readProgress(folder));
|
|
66
|
-
setRefreshTick((t) => t + 1);
|
|
67
|
-
}
|
|
68
|
-
function openInEditor(relPath, opts = {}) {
|
|
69
|
-
const full = join(folder, relPath);
|
|
70
|
-
if (!existsSync(full) && opts.template) {
|
|
71
|
-
writeFileSync(full, opts.template, "utf8");
|
|
72
|
-
}
|
|
73
|
-
const editor = resolveEditor();
|
|
74
|
-
setRawMode(false);
|
|
75
|
-
const child = spawn(editor, [full], { stdio: "inherit" });
|
|
76
|
-
child.on("close", () => {
|
|
77
|
-
setRawMode(true);
|
|
78
|
-
refresh();
|
|
79
|
-
app.setNotification({ kind: "info", message: `${relPath} updated.` });
|
|
80
|
-
});
|
|
81
|
-
child.on("error", (e) => {
|
|
82
|
-
setRawMode(true);
|
|
83
|
-
app.setNotification({
|
|
84
|
-
kind: "error",
|
|
85
|
-
message: `Could not launch ${editor}: ${e.message}`,
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The primary action for a phase, invoked by Enter. Designed so the user
|
|
91
|
-
* almost never has to think — the most likely thing happens.
|
|
92
|
-
*
|
|
93
|
-
* - Agent-eligible phases: run the agent (or fall back to $EDITOR if no
|
|
94
|
-
* agent CLI is installed).
|
|
95
|
-
* - Gates: open the review screen (blocked if prerequisites missing).
|
|
96
|
-
* - Assembly: review the pending draft if one exists; otherwise run agent.
|
|
97
|
-
* - Compile: dedicated screen.
|
|
98
|
-
*/
|
|
99
|
-
function enterPhase(phase) {
|
|
100
|
-
switch (phase.id) {
|
|
101
|
-
case "framing":
|
|
102
|
-
case "candidates":
|
|
103
|
-
case "evaluation":
|
|
104
|
-
case "quality":
|
|
105
|
-
case "synthesis": {
|
|
106
|
-
runAgentOrFallback(phase);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
case "assembly": {
|
|
110
|
-
if (existsSync(join(folder, TAPE_DRAFT_REL))) {
|
|
111
|
-
app.navigate({ kind: "tapeDraft", tape, folder });
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
runAgentOrFallback(phase);
|
|
115
|
-
}
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
case "gate0": {
|
|
119
|
-
if (phase.status === "blocked") {
|
|
120
|
-
app.setNotification({
|
|
121
|
-
kind: "error",
|
|
122
|
-
message: "Confirm framing needs Phase 1 (knowledge map) first.",
|
|
123
|
-
});
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
app.navigate({ kind: "gate0", tape, folder });
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
case "gate1": {
|
|
130
|
-
if (phase.status === "blocked") {
|
|
131
|
-
app.setNotification({
|
|
132
|
-
kind: "error",
|
|
133
|
-
message: "Confirm candidates needs Phase 2 (long-list) first.",
|
|
134
|
-
});
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
app.navigate({ kind: "gate1", tape, folder });
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
case "gate2": {
|
|
141
|
-
if (phase.status === "blocked") {
|
|
142
|
-
app.setNotification({
|
|
143
|
-
kind: "error",
|
|
144
|
-
message: "Confirm evaluation needs Phases 4 and 5 first.",
|
|
145
|
-
});
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
app.navigate({ kind: "gate2", tape, folder });
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
case "compile": {
|
|
152
|
-
if (tape.sources.length === 0) {
|
|
153
|
-
app.setNotification({
|
|
154
|
-
kind: "error",
|
|
155
|
-
message: "Add sources in Phase 7 before compiling.",
|
|
156
|
-
});
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
app.navigate({
|
|
160
|
-
kind: "compile",
|
|
161
|
-
tape,
|
|
162
|
-
folder,
|
|
163
|
-
showExisting: compiledArtifactCurrent && existsSync(project.mixtapePath),
|
|
164
|
-
});
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Run the configured agent for `phase` if one is installed, otherwise drop
|
|
171
|
-
* the curator into $EDITOR on the phase's artifact (or the source editor
|
|
172
|
-
* for assembly). Either way Enter "does something useful" — the agent vs.
|
|
173
|
-
* editor decision is hidden from the keymap.
|
|
174
|
-
*/
|
|
175
|
-
function runAgentOrFallback(phase) {
|
|
176
|
-
if (hasAgent) {
|
|
177
|
-
app.navigate({ kind: "phaseRunner", tape, folder, phaseId: phase.id });
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
app.setNotification({
|
|
181
|
-
kind: "info",
|
|
182
|
-
message: "No agent installed — opening the artifact in $EDITOR.",
|
|
183
|
-
});
|
|
184
|
-
editPhase(phase);
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Explicit "edit by hand" path — Enter's escape hatch, bound to `e`.
|
|
188
|
-
* For assembly, "edit" means the source editor (the existing TapeEditor
|
|
189
|
-
* surface) rather than raw tape.yaml in $EDITOR.
|
|
190
|
-
*/
|
|
191
|
-
function editPhase(phase) {
|
|
192
|
-
if (phase.id === "assembly") {
|
|
193
|
-
app.navigate({ kind: "editor", tape, folder });
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
if (phase.artifact) {
|
|
197
|
-
openInEditor(phase.artifact);
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
app.setNotification({
|
|
201
|
-
kind: "error",
|
|
202
|
-
message: `Phase ${phase.number} has no artifact to edit.`,
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function share() {
|
|
206
|
-
void runShare(folder)
|
|
207
|
-
.then((archivePath) => {
|
|
208
|
-
app.setNotification({ kind: "info", message: `Shared → ${archivePath}` });
|
|
209
|
-
})
|
|
210
|
-
.catch((e) => {
|
|
211
|
-
app.setNotification({ kind: "error", message: e.message });
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
function actOnFocused() {
|
|
215
|
-
const phase = focusedPhase;
|
|
216
|
-
if (!phase)
|
|
217
|
-
return;
|
|
218
|
-
// In TOC mode, block entering anything past the current phase — even if
|
|
219
|
-
// its artifact happens to exist from a prior out-of-order run. The
|
|
220
|
-
// methodology is linear; jumping ahead leaves earlier phases empty and
|
|
221
|
-
// confuses the status display.
|
|
222
|
-
if (focusedIndex > currentIndex) {
|
|
223
|
-
app.setNotification({
|
|
224
|
-
kind: "error",
|
|
225
|
-
message: `Finish ${phases[currentIndex]?.label ?? "the current phase"} first.`,
|
|
226
|
-
});
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
enterPhase(phase);
|
|
230
|
-
}
|
|
231
|
-
useInput((input, key) => {
|
|
232
|
-
if (key.upArrow || input === "k") {
|
|
233
|
-
setSelected((s) => Math.max(0, s - 1));
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
if (key.downArrow || input === "j") {
|
|
237
|
-
setSelected((s) => Math.min(phases.length - 1, s + 1));
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
if (key.return) {
|
|
241
|
-
actOnFocused();
|
|
242
|
-
}
|
|
243
|
-
else if (input === "e") {
|
|
244
|
-
if (focusedPhase)
|
|
245
|
-
editPhase(focusedPhase);
|
|
246
|
-
}
|
|
247
|
-
else if (input === "s") {
|
|
248
|
-
share();
|
|
249
|
-
}
|
|
250
|
-
else if (input === "p") {
|
|
251
|
-
app.navigate({ kind: "manifest", tape, folder });
|
|
252
|
-
}
|
|
253
|
-
else if (input === "o") {
|
|
254
|
-
openFolder(folder);
|
|
255
|
-
}
|
|
256
|
-
else if (key.escape) {
|
|
257
|
-
void app.refreshProjects();
|
|
258
|
-
app.navigate({ kind: "browser" });
|
|
259
|
-
}
|
|
260
|
-
else if (input === "q") {
|
|
261
|
-
ink.exit();
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
return (React.createElement(Box, { flexDirection: "column" },
|
|
265
|
-
React.createElement(Header, { title: tape.title || "untitled mixtape", subtitle: `${folder}${tape.jtbd ? ` · ${truncate(tape.jtbd, 60)}` : ""}` }),
|
|
266
|
-
React.createElement(StatusBox, { allDone: allDone, notStarted: notStarted, readyToCompile: readyToCompile, nextLabel: nextLabel, sourceCount: tape.sources.length, warningCount: compileWarningCount }),
|
|
267
|
-
React.createElement(TocView, { phases: phases, selected: selected, currentIndex: currentIndex, folder: folder, tape: tape, hasAgent: hasAgent }),
|
|
268
|
-
React.createElement(ProgressBar, { phases: phases, currentIndex: currentIndex, selected: selected }),
|
|
269
|
-
app.notification ? (React.createElement(Box, { marginTop: 1 },
|
|
270
|
-
React.createElement(Text, { color: app.notification.kind === "error" ? ERROR : SUCCESS }, app.notification.message))) : null,
|
|
271
|
-
React.createElement(Box, { marginTop: 1 },
|
|
272
|
-
React.createElement(Text, { color: HEADING }, allDone
|
|
273
|
-
? "next · it's ready — share it, open the folder, or revisit any phase"
|
|
274
|
-
: readyToCompile
|
|
275
|
-
? "done · final mix assembled — press enter to compile MIXTAPE.md"
|
|
276
|
-
: focusedIndex > currentIndex
|
|
277
|
-
? `next · finish ${nextLabel} first`
|
|
278
|
-
: `next · ${focusedPhase ? primaryActionLabel(focusedPhase, hasAgent, folder) : "select a phase"}`)),
|
|
279
|
-
React.createElement(Box, { marginTop: 0 },
|
|
280
|
-
React.createElement(KeyHints, { hints: [
|
|
281
|
-
{ key: "↑↓", label: "select phase" },
|
|
282
|
-
{ key: "enter", label: hasAgent ? "run selected" : "edit selected" },
|
|
283
|
-
{ key: "e", label: "edit by hand" },
|
|
284
|
-
{ key: "p", label: "process" },
|
|
285
|
-
{ key: "s", label: "share" },
|
|
286
|
-
{ key: "o", label: "open folder" },
|
|
287
|
-
{ key: "esc", label: "back" },
|
|
288
|
-
{ key: "q", label: "quit" },
|
|
289
|
-
] }))));
|
|
290
|
-
}
|
|
291
|
-
// ---------------------------------------------------------------------------
|
|
292
|
-
// Status box — the one-glance "where is this mixtape" summary at the top.
|
|
293
|
-
// ---------------------------------------------------------------------------
|
|
294
|
-
function StatusBox({ allDone, notStarted, readyToCompile, nextLabel, sourceCount, warningCount, }) {
|
|
295
|
-
// Compiled (allDone) → green "ready to use"; just-started → neutral;
|
|
296
|
-
// mid-flow → yellow "in progress, next: …". The checklist below carries the
|
|
297
|
-
// per-phase detail; this box answers "is it done?" at a glance.
|
|
298
|
-
const { color, glyph, line, sub } = allDone
|
|
299
|
-
? {
|
|
300
|
-
color: SUCCESS,
|
|
301
|
-
glyph: "✓",
|
|
302
|
-
line: warningCount > 0
|
|
303
|
-
? "Ready to use — compiled with warnings"
|
|
304
|
-
: "Ready to use — compiled",
|
|
305
|
-
sub: `${sourceCount} source${sourceCount === 1 ? "" : "s"} · MIXTAPE.md written${warningCount > 0
|
|
306
|
-
? ` · ${warningCount} warning${warningCount === 1 ? "" : "s"}`
|
|
307
|
-
: ""}`,
|
|
308
|
-
}
|
|
309
|
-
: readyToCompile
|
|
310
|
-
? {
|
|
311
|
-
color: SUCCESS,
|
|
312
|
-
glyph: "✓",
|
|
313
|
-
line: "Methodology complete — ready to compile",
|
|
314
|
-
sub: `final mix assembled · ${sourceCount} source${sourceCount === 1 ? "" : "s"} on tape`,
|
|
315
|
-
}
|
|
316
|
-
: notStarted
|
|
317
|
-
? {
|
|
318
|
-
color: STRUCTURE,
|
|
319
|
-
glyph: "○",
|
|
320
|
-
line: "Not started",
|
|
321
|
-
sub: `begin with ${nextLabel}`,
|
|
322
|
-
}
|
|
323
|
-
: {
|
|
324
|
-
color: CURRENT,
|
|
325
|
-
glyph: "◐",
|
|
326
|
-
line: "In progress",
|
|
327
|
-
sub: `next: ${nextLabel}`,
|
|
328
|
-
};
|
|
329
|
-
return (React.createElement(Box, { marginBottom: 1 },
|
|
330
|
-
React.createElement(LabeledBox, { label: "status", color: color },
|
|
331
|
-
React.createElement(Text, { color: color, bold: true },
|
|
332
|
-
glyph,
|
|
333
|
-
" ",
|
|
334
|
-
line),
|
|
335
|
-
React.createElement(Text, { color: MUTED }, sub))));
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Render a phase's sub-step checklist. Done steps get a green ✓ and stay
|
|
339
|
-
* fully colored; pending steps get a dim ○ and lighter text so the eye lands
|
|
340
|
-
* on what's already accomplished. Hints render dim after the main text.
|
|
341
|
-
*/
|
|
342
|
-
function SubStepList({ steps }) {
|
|
343
|
-
return (React.createElement(Box, { flexDirection: "column" }, steps.map((step, i) => (React.createElement(Box, { key: i },
|
|
344
|
-
React.createElement(Text, { color: step.done ? SUCCESS : STRUCTURE, bold: step.done }, step.done ? "✓" : "○"),
|
|
345
|
-
React.createElement(Text, { color: !step.done ? MUTED : undefined }, ` ${step.text}`),
|
|
346
|
-
step.hint ? (React.createElement(Text, { color: MUTED }, ` · ${step.hint}`)) : null)))));
|
|
347
|
-
}
|
|
348
|
-
// ---------------------------------------------------------------------------
|
|
349
|
-
// TOC view — full phase list. Behind `l`.
|
|
350
|
-
// ---------------------------------------------------------------------------
|
|
351
|
-
function TocView({ phases, selected, currentIndex, folder, tape, hasAgent, }) {
|
|
352
|
-
const selectedPhase = phases[selected];
|
|
353
|
-
return (React.createElement(Box, { flexDirection: "row", width: "100%", marginBottom: 1 },
|
|
354
|
-
React.createElement(Box, { flexDirection: "column", width: "38%", minWidth: 26, flexShrink: 0 }, phases.map((phase, i) => (React.createElement(PhaseRow, { key: phase.id, phase: phase, selected: i === selected, future: i > currentIndex })))),
|
|
355
|
-
React.createElement(Box, { width: 2, flexShrink: 0 },
|
|
356
|
-
React.createElement(Text, { color: MUTED }, "\u2502")),
|
|
357
|
-
React.createElement(Box, { flexDirection: "column", flexGrow: 1, minWidth: 20 }, selectedPhase ? (React.createElement(PhaseDetail, { phase: selectedPhase, folder: folder, tape: tape, hasAgent: hasAgent })) : null)));
|
|
358
|
-
}
|
|
359
|
-
// ---------------------------------------------------------------------------
|
|
360
|
-
// Progress bar — dense single-line summary.
|
|
361
|
-
// ---------------------------------------------------------------------------
|
|
362
|
-
function ProgressBar({ phases, currentIndex, selected, }) {
|
|
363
|
-
return (React.createElement(Box, { flexWrap: "wrap", columnGap: 1 },
|
|
364
|
-
React.createElement(Text, { color: MUTED }, "progress: "),
|
|
365
|
-
phases.map((p, i) => {
|
|
366
|
-
const isCurrent = i === currentIndex;
|
|
367
|
-
const isSelected = selected != null && i === selected;
|
|
368
|
-
const isPast = p.status === "complete";
|
|
369
|
-
const color = isPast ? SUCCESS : isCurrent ? STRUCTURE : undefined;
|
|
370
|
-
return (React.createElement(Text, { key: p.id, backgroundColor: isSelected ? STRUCTURE : undefined, color: isSelected ? ON_FILL : !isPast && !isCurrent ? MUTED : color, bold: isCurrent || isSelected },
|
|
371
|
-
phaseShortLabel(p),
|
|
372
|
-
statusGlyph(p.status)));
|
|
373
|
-
})));
|
|
374
|
-
}
|
|
375
|
-
function phaseShortLabel(phase) {
|
|
376
|
-
// For numeric phases, use the number; for special phases (gates, compile),
|
|
377
|
-
// the `number` field is already a single glyph (↳, →) — pass it through.
|
|
378
|
-
return phase.number;
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Long-form label for the focus card chip + TOC detail header. Numbered phases
|
|
382
|
-
* read "Phase N — Label"; gates and compile (whose `number` is a glyph like
|
|
383
|
-
* `↳` or `→`) read just the label — no "Phase glyph —" awkwardness.
|
|
384
|
-
*/
|
|
385
|
-
function chipLabelFor(phase) {
|
|
386
|
-
if (/^\d/.test(phase.number))
|
|
387
|
-
return `Phase ${phase.number} — ${phase.label}`;
|
|
388
|
-
return phase.label;
|
|
389
|
-
}
|
|
390
|
-
function PhaseRow({ phase, selected, future = false, }) {
|
|
391
|
-
const statusFg = statusColor(phase.status);
|
|
392
|
-
if (selected) {
|
|
393
|
-
return (React.createElement(Box, null,
|
|
394
|
-
React.createElement(Text, { backgroundColor: STRUCTURE, color: ON_FILL, bold: true }, " ▶ "),
|
|
395
|
-
React.createElement(Text, { backgroundColor: STRUCTURE, color: statusFg ?? ON_FILL, bold: true },
|
|
396
|
-
statusGlyph(phase.status),
|
|
397
|
-
" "),
|
|
398
|
-
React.createElement(Text, { backgroundColor: STRUCTURE, color: ON_FILL }, phase.number.padEnd(7, " ")),
|
|
399
|
-
React.createElement(Text, { backgroundColor: STRUCTURE, color: ON_FILL, bold: true },
|
|
400
|
-
truncate(phase.label, 22),
|
|
401
|
-
future ? " 🔒" : "",
|
|
402
|
-
" ")));
|
|
403
|
-
}
|
|
404
|
-
return (React.createElement(Box, null,
|
|
405
|
-
React.createElement(Text, null, " "),
|
|
406
|
-
React.createElement(Text, { color: future ? MUTED : statusFg },
|
|
407
|
-
statusGlyph(phase.status),
|
|
408
|
-
" "),
|
|
409
|
-
React.createElement(Text, { color: MUTED }, phase.number.padEnd(7, " ")),
|
|
410
|
-
React.createElement(Text, { color: future ? MUTED : undefined }, truncate(phase.label, 22))));
|
|
411
|
-
}
|
|
412
|
-
function PhaseDetail({ phase, folder, tape, hasAgent, }) {
|
|
413
|
-
return (React.createElement(Box, { flexDirection: "column" },
|
|
414
|
-
React.createElement(Box, null,
|
|
415
|
-
React.createElement(Text, { bold: true }, chipLabelFor(phase)),
|
|
416
|
-
React.createElement(Text, null, " "),
|
|
417
|
-
React.createElement(Text, { color: statusColor(phase.status) },
|
|
418
|
-
statusGlyph(phase.status),
|
|
419
|
-
" ",
|
|
420
|
-
statusLabel(phase.status))),
|
|
421
|
-
React.createElement(Box, { marginTop: 1 },
|
|
422
|
-
React.createElement(Text, null, phase.summary)),
|
|
423
|
-
phase.subSteps && phase.subSteps.length > 0 ? (React.createElement(Box, { flexDirection: "column", marginTop: 1 },
|
|
424
|
-
React.createElement(SubStepList, { steps: phase.subSteps }))) : (React.createElement(Box, { marginTop: 1 },
|
|
425
|
-
React.createElement(Text, { color: MUTED }, phase.detail))),
|
|
426
|
-
phase.artifact ? (React.createElement(Box, { flexDirection: "column", marginTop: 1 },
|
|
427
|
-
React.createElement(Text, { color: MUTED }, "artifact:"),
|
|
428
|
-
React.createElement(Text, { color: MUTED },
|
|
429
|
-
" ",
|
|
430
|
-
phase.artifact),
|
|
431
|
-
React.createElement(ArtifactPreview, { folder: folder, relPath: phase.artifact }))) : null,
|
|
432
|
-
phase.id === "assembly" && tape.sources.length > 0 ? (React.createElement(Box, { flexDirection: "column", marginTop: 1 },
|
|
433
|
-
React.createElement(Text, { color: MUTED },
|
|
434
|
-
"sources on tape (",
|
|
435
|
-
tape.sources.length,
|
|
436
|
-
"):"),
|
|
437
|
-
tape.sources.slice(0, 6).map((s, i) => {
|
|
438
|
-
const label = s.type === "local_file" ? s.citation || s.path || "" : s.url;
|
|
439
|
-
return (React.createElement(Text, { key: i, color: MUTED },
|
|
440
|
-
i + 1,
|
|
441
|
-
". ",
|
|
442
|
-
truncate(label, 60)));
|
|
443
|
-
}),
|
|
444
|
-
tape.sources.length > 6 ? (React.createElement(Text, { color: MUTED },
|
|
445
|
-
" \u2026 and ",
|
|
446
|
-
tape.sources.length - 6,
|
|
447
|
-
" more")) : null)) : null,
|
|
448
|
-
phase.id === "assembly" && existsSync(join(folder, TAPE_DRAFT_REL)) ? (React.createElement(Box, { marginTop: 1 },
|
|
449
|
-
React.createElement(Text, { color: WARNING, bold: true },
|
|
450
|
-
"\u26A0 draft pending \u2014",
|
|
451
|
-
" "),
|
|
452
|
-
React.createElement(Text, null,
|
|
453
|
-
"an agent run wrote",
|
|
454
|
-
" ",
|
|
455
|
-
React.createElement(Text, { color: STRUCTURE }, TAPE_DRAFT_REL),
|
|
456
|
-
". Press",
|
|
457
|
-
" ",
|
|
458
|
-
React.createElement(Text, { color: STRUCTURE }, "enter"),
|
|
459
|
-
" to review."))) : null,
|
|
460
|
-
React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
|
461
|
-
React.createElement(Box, null,
|
|
462
|
-
React.createElement(Text, { color: STRUCTURE }, "enter"),
|
|
463
|
-
React.createElement(Text, null, " "),
|
|
464
|
-
React.createElement(Text, null, primaryActionLabel(phase, hasAgent, folder))),
|
|
465
|
-
phase.artifact && phase.id !== "compile" ? (React.createElement(Box, null,
|
|
466
|
-
React.createElement(Text, { color: STRUCTURE }, "e "),
|
|
467
|
-
React.createElement(Text, null,
|
|
468
|
-
" edit by hand (",
|
|
469
|
-
phase.artifact,
|
|
470
|
-
" in $EDITOR)"))) : null)));
|
|
471
|
-
}
|
|
472
|
-
function ArtifactPreview({ folder, relPath, }) {
|
|
473
|
-
const full = join(folder, relPath);
|
|
474
|
-
if (!existsSync(full)) {
|
|
475
|
-
return (React.createElement(Box, { marginTop: 1 },
|
|
476
|
-
React.createElement(Text, { color: MUTED }, " (file not on disk yet)")));
|
|
477
|
-
}
|
|
478
|
-
let text;
|
|
479
|
-
try {
|
|
480
|
-
text = readFileSync(full, "utf8");
|
|
481
|
-
}
|
|
482
|
-
catch {
|
|
483
|
-
return null;
|
|
484
|
-
}
|
|
485
|
-
const lines = text.split("\n").slice(0, PREVIEW_LINES);
|
|
486
|
-
if (lines.length === 0) {
|
|
487
|
-
return (React.createElement(Box, { marginTop: 1 },
|
|
488
|
-
React.createElement(Text, { color: MUTED }, " (empty)")));
|
|
489
|
-
}
|
|
490
|
-
return (React.createElement(Box, { flexDirection: "column", marginTop: 1 },
|
|
491
|
-
lines.map((line, i) => (React.createElement(Text, { key: i, color: MUTED },
|
|
492
|
-
" ",
|
|
493
|
-
truncate(line, 72) || " "))),
|
|
494
|
-
text.split("\n").length > PREVIEW_LINES ? (React.createElement(Text, { color: MUTED }, " \u2026")) : null));
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* What Enter does for this phase, expressed as a short human label.
|
|
498
|
-
* Designed to read aloud: "Enter: run Phase 1 with Claude" / "Enter: open Gate 1 review".
|
|
499
|
-
*/
|
|
500
|
-
function primaryActionLabel(phase, hasAgent, folder) {
|
|
501
|
-
switch (phase.id) {
|
|
502
|
-
case "gate0":
|
|
503
|
-
return "review the knowledge map";
|
|
504
|
-
case "gate1":
|
|
505
|
-
return "review the candidate long-list";
|
|
506
|
-
case "gate2":
|
|
507
|
-
return "review evaluation + quality checks";
|
|
508
|
-
case "assembly":
|
|
509
|
-
if (existsSync(join(folder, TAPE_DRAFT_REL))) {
|
|
510
|
-
return "review the agent's proposed sources";
|
|
511
|
-
}
|
|
512
|
-
return hasAgent
|
|
513
|
-
? "let the agent populate sources from the keep-list"
|
|
514
|
-
: "open the source editor";
|
|
515
|
-
case "compile":
|
|
516
|
-
if (phase.status === "complete") {
|
|
517
|
-
return "view compile result — copy, share, open folder, or retry";
|
|
518
|
-
}
|
|
519
|
-
return "start compile — fetches sources and writes MIXTAPE.md";
|
|
520
|
-
default:
|
|
521
|
-
return hasAgent
|
|
522
|
-
? `run Phase ${phase.number} with the agent`
|
|
523
|
-
: `open ${phase.artifact ?? "phase"} in $EDITOR`;
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
function isCompiledArtifactCurrent(project) {
|
|
527
|
-
if (!existsSync(project.mixtapePath))
|
|
528
|
-
return false;
|
|
529
|
-
try {
|
|
530
|
-
const mixtapeMtime = statSync(project.mixtapePath).mtimeMs;
|
|
531
|
-
const tapeMtime = existsSync(project.tapePath) ? statSync(project.tapePath).mtimeMs : 0;
|
|
532
|
-
return mixtapeMtime >= tapeMtime;
|
|
533
|
-
}
|
|
534
|
-
catch {
|
|
535
|
-
return false;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function countCompilationNotes(mixtapePath) {
|
|
539
|
-
try {
|
|
540
|
-
const text = readFileSync(mixtapePath, "utf8");
|
|
541
|
-
const notesStart = text.indexOf("\n## Compilation notes");
|
|
542
|
-
if (notesStart === -1)
|
|
543
|
-
return 0;
|
|
544
|
-
return text
|
|
545
|
-
.slice(notesStart)
|
|
546
|
-
.split("\n")
|
|
547
|
-
.filter((line) => line.startsWith("- **"))
|
|
548
|
-
.length;
|
|
549
|
-
}
|
|
550
|
-
catch {
|
|
551
|
-
return 0;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
function truncate(s, n) {
|
|
555
|
-
return s.length > n ? s.slice(0, n - 1) + "…" : s;
|
|
556
|
-
}
|
|
557
|
-
//# sourceMappingURL=ProjectHub.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectHub.js","sourceRoot":"","sources":["../../src/screens/ProjectHub.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,IAAI,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,cAAc,GAAG,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACr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