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,53 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Box, Text, useStdout } from "ink";
|
|
3
|
-
import { ON_FILL, STRUCTURE } from "../colors.js";
|
|
4
|
-
// Charm/Lipgloss-style card: a bordered box with a chip on the top border line.
|
|
5
|
-
// Inspired by the Daytona TUI screenshots — the chip provides a clear card label
|
|
6
|
-
// that doesn't waste a content line.
|
|
7
|
-
//
|
|
8
|
-
// Implementation: Ink 5 lets us toggle each side of a border independently
|
|
9
|
-
// (borderTop={false}). We render the top border ourselves as a manual row of
|
|
10
|
-
// characters with the chip embedded, then let Ink draw the side + bottom
|
|
11
|
-
// borders normally. The corner glyphs must match between the manual top row
|
|
12
|
-
// and Ink's border style — both use the same "round" or "single" set.
|
|
13
|
-
const ROUND = {
|
|
14
|
-
topLeft: "╭",
|
|
15
|
-
topRight: "╮",
|
|
16
|
-
h: "─",
|
|
17
|
-
};
|
|
18
|
-
const SINGLE = {
|
|
19
|
-
topLeft: "┌",
|
|
20
|
-
topRight: "┐",
|
|
21
|
-
h: "─",
|
|
22
|
-
};
|
|
23
|
-
const DOUBLE = {
|
|
24
|
-
topLeft: "╔",
|
|
25
|
-
topRight: "╗",
|
|
26
|
-
h: "═",
|
|
27
|
-
};
|
|
28
|
-
export function LabeledBox({ label, color = STRUCTURE, labelBg, labelColor = ON_FILL, borderStyle = "round", width, paddingX = 2, paddingY = 1, children, }) {
|
|
29
|
-
// Default chip bg = border color, so the chip looks like a solid section
|
|
30
|
-
// of the top border. Callers can opt out by passing a different bg.
|
|
31
|
-
const resolvedLabelBg = labelBg ?? color;
|
|
32
|
-
const { stdout } = useStdout();
|
|
33
|
-
const cols = stdout?.columns ?? 80;
|
|
34
|
-
// Default width: terminal minus a 2-cell right margin so the box doesn't
|
|
35
|
-
// butt against the edge of the pane. Floor at 40 so things don't collapse
|
|
36
|
-
// in very narrow terminals.
|
|
37
|
-
const w = Math.max(40, width ?? cols - 2);
|
|
38
|
-
const chars = borderStyle === "round" ? ROUND : borderStyle === "double" ? DOUBLE : SINGLE;
|
|
39
|
-
// Truncate the label if it would overflow the top row.
|
|
40
|
-
// Budget: 2 corners + 2 leading dashes + " label " + at least 1 filler dash.
|
|
41
|
-
const maxLabelLen = Math.max(4, w - 2 - 2 - 2 - 1);
|
|
42
|
-
const safeLabel = label.length > maxLabelLen ? label.slice(0, maxLabelLen - 1) + "…" : label;
|
|
43
|
-
const labelText = ` ${safeLabel} `;
|
|
44
|
-
const leadDashes = 2;
|
|
45
|
-
const filler = Math.max(1, w - 2 - leadDashes - labelText.length);
|
|
46
|
-
return (React.createElement(Box, { flexDirection: "column", width: w },
|
|
47
|
-
React.createElement(Box, { width: w },
|
|
48
|
-
React.createElement(Text, { color: color }, chars.topLeft + chars.h.repeat(leadDashes)),
|
|
49
|
-
React.createElement(Text, { backgroundColor: resolvedLabelBg, color: labelColor, bold: true }, labelText),
|
|
50
|
-
React.createElement(Text, { color: color }, chars.h.repeat(filler) + chars.topRight)),
|
|
51
|
-
React.createElement(Box, { borderStyle: borderStyle, borderColor: color, borderTop: false, flexDirection: "column", width: w, paddingX: paddingX, paddingY: paddingY }, children)));
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=LabeledBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledBox.js","sourceRoot":"","sources":["../../src/components/LabeledBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;A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QAAQ,EAClB,QAAQ,EAAE,QAAQ,IAEjB,QAAQ,CACL,CACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import { MUTED, STRUCTURE } from "../colors.js";
|
|
4
|
-
/**
|
|
5
|
-
* Bordered callout listing what to do next. Modeled on `clack`'s `p.note()`.
|
|
6
|
-
* Use after a wizard completes, a compile succeeds, or any other moment
|
|
7
|
-
* where the user just finished a discrete unit of work.
|
|
8
|
-
*/
|
|
9
|
-
export function NextSteps({ title = "Next steps", items, color = STRUCTURE, }) {
|
|
10
|
-
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: color, paddingX: 2, paddingY: 0, marginBottom: 1 },
|
|
11
|
-
React.createElement(Box, { marginBottom: 1 },
|
|
12
|
-
React.createElement(Text, { color: color, bold: true }, title)),
|
|
13
|
-
items.map((item, i) => (React.createElement(Box, { key: i },
|
|
14
|
-
React.createElement(Text, { color: color }, `${i + 1}. `),
|
|
15
|
-
React.createElement(Text, null, item.label),
|
|
16
|
-
item.hint ? (React.createElement(Text, { color: MUTED }, " " + item.hint)) : null)))));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=NextSteps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NextSteps.js","sourceRoot":"","sources":["../../src/components/NextSteps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAShD;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,KAAK,GAAG,YAAY,EACpB,KAAK,EACL,KAAK,GAAG,SAAS,GAKlB;IACC,OAAO,CACL,oBAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,CAAC,EACX,YAAY,EAAE,CAAC;QAEf,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,UACrB,KAAK,CACD,CACH;QACL,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,oBAAC,GAAG,IAAC,GAAG,EAAE,CAAC;YACT,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAQ;YACzC,oBAAC,IAAI,QAAE,IAAI,CAAC,KAAK,CAAQ;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IAAG,IAAI,GAAG,IAAI,CAAC,IAAI,CAAQ,CAC9C,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC,CACE,CACP,CAAC;AACJ,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { render } from "ink";
|
|
3
|
-
import { App } from "./App.js";
|
|
4
|
-
// Clear the terminal (screen + scrollback) before Ink mounts so the TUI
|
|
5
|
-
// starts at the top of a blank canvas — no `npm run dev` lines visible above
|
|
6
|
-
// the splash. `\x1B[2J` = erase visible viewport, `\x1B[3J` = erase scrollback,
|
|
7
|
-
// `\x1B[H` = home cursor.
|
|
8
|
-
if (process.stdout.isTTY) {
|
|
9
|
-
process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
|
|
10
|
-
}
|
|
11
|
-
const { waitUntilExit } = render(React.createElement(App, null));
|
|
12
|
-
waitUntilExit().catch((e) => {
|
|
13
|
-
// eslint-disable-next-line no-console
|
|
14
|
-
console.error(e);
|
|
15
|
-
process.exit(1);
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,wEAAwE;AACxE,6EAA6E;AAC7E,gFAAgF;AAChF,0BAA0B;AAC1B,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACzB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC,oBAAC,GAAG,OAAG,CAAC,CAAC;AAC1C,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC,CAAU,EAAE,EAAE;IACnC,sCAAsC;IACtC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from "react";
|
|
2
|
-
import { Box, Text, useInput } from "ink";
|
|
3
|
-
import { Header } from "../components/Header.js";
|
|
4
|
-
import { KeyHints } from "../components/KeyHints.js";
|
|
5
|
-
import { LabeledBox } from "../components/LabeledBox.js";
|
|
6
|
-
import { useApp } from "../store.js";
|
|
7
|
-
import { detectAgents, KNOWN_AGENTS } from "../agents/detect.js";
|
|
8
|
-
import { readConfig, writeConfig } from "../config.js";
|
|
9
|
-
import { MUTED, CURRENT, ERROR, HEADING, STRUCTURE, SUCCESS } from "../colors.js";
|
|
10
|
-
// One-time picker for "which AI agent should drive the methodology phases?"
|
|
11
|
-
// — runs as the first screen on a fresh install when both Claude Code and
|
|
12
|
-
// Codex are present, and is reachable later via the splash Settings entry.
|
|
13
|
-
//
|
|
14
|
-
// Persists the choice to ~/.liner/config.yaml (via the config module). The
|
|
15
|
-
// LINER_AGENT env var still overrides — power users / CI keep the escape
|
|
16
|
-
// hatch. The mid-phase picker becomes dead code in practice but stays bound
|
|
17
|
-
// as a defensive fallback (e.g. config file disappears, env var names a
|
|
18
|
-
// non-installed agent).
|
|
19
|
-
/**
|
|
20
|
-
* Source of truth for what the screen says about each agent. Kept inline so
|
|
21
|
-
* the copy lives with the screen that shows it, rather than in agents/types
|
|
22
|
-
* (which is where the cold type lives).
|
|
23
|
-
*/
|
|
24
|
-
const AGENT_BLURBS = {
|
|
25
|
-
claude: {
|
|
26
|
-
tagline: "Anthropic's Claude Code — strong at long-context tasks and at writing prose.",
|
|
27
|
-
install: "npm install -g @anthropic-ai/claude-code",
|
|
28
|
-
},
|
|
29
|
-
codex: {
|
|
30
|
-
tagline: "OpenAI Codex — fast for code-heavy phases, snappy on shorter prompts.",
|
|
31
|
-
install: "see https://github.com/openai/codex",
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export function AgentSetup() {
|
|
35
|
-
const app = useApp();
|
|
36
|
-
const installed = useMemo(() => detectAgents(), []);
|
|
37
|
-
const config = useMemo(() => readConfig(), []);
|
|
38
|
-
// Agents the TUI knows about but didn't find on this machine. Surfaced as
|
|
39
|
-
// a footer so a user with (e.g.) Codex installed via fnm but unreachable
|
|
40
|
-
// from the TUI's PATH has a concrete unblock path rather than just "not
|
|
41
|
-
// detected." The KNOWN_AGENTS catalog is the single source of truth.
|
|
42
|
-
const undetected = useMemo(() => KNOWN_AGENTS.filter((meta) => !installed.some((a) => a.id === meta.id)), [installed]);
|
|
43
|
-
// Where the cursor lands by default: the currently-configured agent if
|
|
44
|
-
// it's installed, otherwise the first one. New installs start at index 0.
|
|
45
|
-
const initialIndex = useMemo(() => {
|
|
46
|
-
if (config.agent) {
|
|
47
|
-
const idx = installed.findIndex((a) => a.id === config.agent);
|
|
48
|
-
if (idx >= 0)
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
return 0;
|
|
52
|
-
}, [installed, config.agent]);
|
|
53
|
-
const [cursor, setCursor] = useState(initialIndex);
|
|
54
|
-
const [error, setError] = useState(null);
|
|
55
|
-
/**
|
|
56
|
-
* Return to wherever launched this screen. If the JS-rendering onboarding
|
|
57
|
-
* has not been shown yet, continue the first-run flow there before home.
|
|
58
|
-
*/
|
|
59
|
-
function done() {
|
|
60
|
-
if (!config.jsSetupPrompted) {
|
|
61
|
-
app.navigate({ kind: "jsSetup" });
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
app.back();
|
|
65
|
-
}
|
|
66
|
-
function pick(agent) {
|
|
67
|
-
try {
|
|
68
|
-
writeConfig({ agent: agent.id });
|
|
69
|
-
app.setNotification({
|
|
70
|
-
kind: "info",
|
|
71
|
-
message: `Agent set to ${agent.name}. Change anytime from the splash menu.`,
|
|
72
|
-
});
|
|
73
|
-
done();
|
|
74
|
-
}
|
|
75
|
-
catch (e) {
|
|
76
|
-
setError(`Could not write config: ${e.message}`);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function clearChoice() {
|
|
80
|
-
try {
|
|
81
|
-
writeConfig({ agent: null });
|
|
82
|
-
app.setNotification({
|
|
83
|
-
kind: "info",
|
|
84
|
-
message: "Cleared agent preference. The mid-phase picker will appear when needed.",
|
|
85
|
-
});
|
|
86
|
-
done();
|
|
87
|
-
}
|
|
88
|
-
catch (e) {
|
|
89
|
-
setError(`Could not write config: ${e.message}`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
useInput((input, key) => {
|
|
93
|
-
if (installed.length === 0) {
|
|
94
|
-
if (key.escape || input === "b")
|
|
95
|
-
done();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
if (key.upArrow || input === "k") {
|
|
99
|
-
setCursor((c) => Math.max(0, c - 1));
|
|
100
|
-
}
|
|
101
|
-
else if (key.downArrow || input === "j") {
|
|
102
|
-
setCursor((c) => Math.min(installed.length - 1, c + 1));
|
|
103
|
-
}
|
|
104
|
-
else if (key.return) {
|
|
105
|
-
// Enter accepts; space is intentionally NOT an accept key — it's
|
|
106
|
-
// reserved for toggle semantics elsewhere, so we keep one meaning per key.
|
|
107
|
-
const agent = installed[cursor];
|
|
108
|
-
if (agent)
|
|
109
|
-
pick(agent);
|
|
110
|
-
}
|
|
111
|
-
else if (input === "u" && config.agent) {
|
|
112
|
-
clearChoice();
|
|
113
|
-
}
|
|
114
|
-
else if (key.escape || input === "b") {
|
|
115
|
-
done();
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
// Zero-agent state: instructions, no picker. User can't proceed without
|
|
119
|
-
// an agent for methodology phases — but they can still browse compiled
|
|
120
|
-
// mixtapes, so we let them through to the browser.
|
|
121
|
-
if (installed.length === 0) {
|
|
122
|
-
return (React.createElement(Box, { flexDirection: "column" },
|
|
123
|
-
React.createElement(Header, { title: "choose your AI agent", subtitle: "first-run setup" }),
|
|
124
|
-
React.createElement(Box, { marginBottom: 1 },
|
|
125
|
-
React.createElement(LabeledBox, { label: "no agent installed", color: ERROR },
|
|
126
|
-
React.createElement(Text, { color: ERROR, bold: true }, "Neither Claude Code nor Codex was found on your PATH."),
|
|
127
|
-
React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
|
128
|
-
React.createElement(Text, null, "Liner can run the methodology with either:"),
|
|
129
|
-
React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
|
130
|
-
React.createElement(Text, null,
|
|
131
|
-
" ",
|
|
132
|
-
React.createElement(Text, { color: STRUCTURE, bold: true }, "Claude Code"),
|
|
133
|
-
React.createElement(Text, { color: MUTED },
|
|
134
|
-
" — ",
|
|
135
|
-
AGENT_BLURBS.claude.install)),
|
|
136
|
-
React.createElement(Text, null,
|
|
137
|
-
" ",
|
|
138
|
-
React.createElement(Text, { color: STRUCTURE, bold: true }, "OpenAI Codex"),
|
|
139
|
-
React.createElement(Text, { color: MUTED },
|
|
140
|
-
" — ",
|
|
141
|
-
AGENT_BLURBS.codex.install)))),
|
|
142
|
-
React.createElement(Box, { marginTop: 1 },
|
|
143
|
-
React.createElement(Text, { color: MUTED },
|
|
144
|
-
"You can still browse compiled mixtapes without an agent \u2014 just press ",
|
|
145
|
-
React.createElement(Text, { color: STRUCTURE }, "esc"),
|
|
146
|
-
" to continue.")))),
|
|
147
|
-
React.createElement(KeyHints, { hints: [{ key: "esc", label: "skip to browser" }] })));
|
|
148
|
-
}
|
|
149
|
-
return (React.createElement(Box, { flexDirection: "column" },
|
|
150
|
-
React.createElement(Header, { title: "choose your AI agent", subtitle: config.agent
|
|
151
|
-
? `current: ${config.agent} · change anytime`
|
|
152
|
-
: "first-run setup · pick once, change anytime" }),
|
|
153
|
-
React.createElement(Box, { marginBottom: 1, flexDirection: "column" },
|
|
154
|
-
React.createElement(Text, { color: HEADING, bold: true }, "Which agent should drive the methodology?"),
|
|
155
|
-
React.createElement(Box, { marginTop: 1 },
|
|
156
|
-
React.createElement(Text, { color: MUTED }, "Liner spawns the agent CLI for each methodology phase (framing, candidate discovery, evaluation, \u2026). Both options run the same skill bundle and produce the same artifacts \u2014 pick the one you already use, or default to whichever is faster on your hardware. You can change this later from the splash menu's Settings entry."))),
|
|
157
|
-
React.createElement(Box, { marginBottom: 1 },
|
|
158
|
-
React.createElement(LabeledBox, { label: "installed agents", color: STRUCTURE }, installed.map((agent, i) => {
|
|
159
|
-
const active = i === cursor;
|
|
160
|
-
const blurb = AGENT_BLURBS[agent.id];
|
|
161
|
-
const isConfigured = config.agent === agent.id;
|
|
162
|
-
return (React.createElement(Box, { key: agent.id, flexDirection: "column", marginBottom: i === installed.length - 1 ? 0 : 1 },
|
|
163
|
-
React.createElement(Box, null,
|
|
164
|
-
React.createElement(Text, { color: active ? CURRENT : undefined, bold: active }, active ? "> " : " "),
|
|
165
|
-
React.createElement(Text, { color: STRUCTURE }, `[${i + 1}]`),
|
|
166
|
-
React.createElement(Text, null, " "),
|
|
167
|
-
React.createElement(Text, { color: active ? CURRENT : undefined, bold: active }, agent.name),
|
|
168
|
-
isConfigured ? (React.createElement(Text, { color: SUCCESS }, " · current")) : null),
|
|
169
|
-
blurb ? (React.createElement(Box, { paddingLeft: 6 },
|
|
170
|
-
React.createElement(Text, { color: MUTED }, blurb.tagline))) : null,
|
|
171
|
-
React.createElement(Box, { paddingLeft: 6 },
|
|
172
|
-
React.createElement(Text, { color: MUTED }, agent.bin))));
|
|
173
|
-
}))),
|
|
174
|
-
React.createElement(Box, { marginBottom: 1 },
|
|
175
|
-
React.createElement(Text, { color: STRUCTURE }, "enter"),
|
|
176
|
-
React.createElement(Text, { color: MUTED }, ` → pick ${installed[cursor]?.name ?? "agent"} and continue`)),
|
|
177
|
-
undetected.length > 0 ? (React.createElement(Box, { marginBottom: 1 },
|
|
178
|
-
React.createElement(LabeledBox, { label: "not detected", color: STRUCTURE },
|
|
179
|
-
React.createElement(Text, { color: MUTED },
|
|
180
|
-
undetected.length === 1
|
|
181
|
-
? `${undetected[0].name} isn't on Liner's PATH right now.`
|
|
182
|
-
: `${undetected.map((u) => u.name).join(" and ")} aren't on Liner's PATH right now.`,
|
|
183
|
-
" ",
|
|
184
|
-
"If you have one installed but it's not showing up \u2014 usually fnm / nvm / asdf shims that aren't loaded in the launcher's environment \u2014 try one of:"),
|
|
185
|
-
React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
|
186
|
-
React.createElement(Text, { color: MUTED },
|
|
187
|
-
" • ",
|
|
188
|
-
"Restart the TUI from a shell where",
|
|
189
|
-
" ",
|
|
190
|
-
React.createElement(Text, { color: STRUCTURE },
|
|
191
|
-
"which ",
|
|
192
|
-
undetected[0].id),
|
|
193
|
-
" ",
|
|
194
|
-
"returns a path."),
|
|
195
|
-
React.createElement(Text, { color: MUTED },
|
|
196
|
-
" • ",
|
|
197
|
-
"Set",
|
|
198
|
-
" ",
|
|
199
|
-
React.createElement(Text, { color: STRUCTURE },
|
|
200
|
-
undetected[0].envVar,
|
|
201
|
-
"=/full/path/to/",
|
|
202
|
-
undetected[0].id),
|
|
203
|
-
" ",
|
|
204
|
-
"in your shell config (or pass it inline:",
|
|
205
|
-
" ",
|
|
206
|
-
React.createElement(Text, { color: STRUCTURE },
|
|
207
|
-
undetected[0].envVar,
|
|
208
|
-
"=\u2026 npm run dev"),
|
|
209
|
-
")."),
|
|
210
|
-
React.createElement(Text, { color: MUTED },
|
|
211
|
-
" • ",
|
|
212
|
-
"If you don't have it installed yet:",
|
|
213
|
-
" ",
|
|
214
|
-
React.createElement(Text, { color: STRUCTURE }, AGENT_BLURBS[undetected[0].id]?.install ?? "(install instructions vary)")))))) : null,
|
|
215
|
-
error ? (React.createElement(Box, { marginBottom: 1 },
|
|
216
|
-
React.createElement(Text, { color: ERROR }, error))) : null,
|
|
217
|
-
React.createElement(KeyHints, { hints: [
|
|
218
|
-
{ key: "↑↓", label: "select" },
|
|
219
|
-
{ key: "enter", label: "pick + save" },
|
|
220
|
-
...(config.agent ? [{ key: "u", label: "clear preference" }] : []),
|
|
221
|
-
{ key: "esc", label: "skip" },
|
|
222
|
-
] })));
|
|
223
|
-
}
|
|
224
|
-
//# sourceMappingURL=AgentSetup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentSetup.js","sourceRoot":"","sources":["../../src/screens/AgentSetup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,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,aAA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,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,IAAG,KAAK,CAAQ,CAC9B,CACP,CAAC,CAAC,CAAC,IAAI;QAER,oBAAC,QAAQ,IACP,KAAK,EAAE;gBACL,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;gBAC9B,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE;gBACtC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClE,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;aAC9B,GACD,CACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from "react";
|
|
2
|
-
import { Box, Text, useApp as useInkApp, useInput, useStdout } from "ink";
|
|
3
|
-
import BigText from "ink-big-text";
|
|
4
|
-
import Gradient from "ink-gradient";
|
|
5
|
-
import { useApp } from "../store.js";
|
|
6
|
-
import { MUTED, CURRENT, HEADING, PALETTE, STRUCTURE } from "../colors.js";
|
|
7
|
-
import { VERSION } from "../version.js";
|
|
8
|
-
import { SMALL_CASSETTE_ROWS, SMALL_CASSETTE_WIDTH, } from "./cassette-art.js";
|
|
9
|
-
const ITEMS = [
|
|
10
|
-
{ action: "new", hotkey: "n", label: "New mixtape", hint: "open the curation wizard" },
|
|
11
|
-
{ action: "import", hotkey: "i", label: "Import archive", hint: "load a .mixtape file" },
|
|
12
|
-
{ action: "open", hotkey: "o", label: "Open existing", hint: "browse your mixtapes folder" },
|
|
13
|
-
{ action: "settings", hotkey: "s", label: "Settings", hint: "change AI agent" },
|
|
14
|
-
];
|
|
15
|
-
export function BootSplash() {
|
|
16
|
-
const app = useApp();
|
|
17
|
-
const ink = useInkApp();
|
|
18
|
-
const { stdout } = useStdout();
|
|
19
|
-
const cols = stdout?.columns ?? 80;
|
|
20
|
-
// Show the compact cassette whenever it fits; fall back to the wordmark
|
|
21
|
-
// on terminals too narrow for it.
|
|
22
|
-
const showCassette = cols >= SMALL_CASSETTE_WIDTH;
|
|
23
|
-
const [selected, setSelected] = useState(0);
|
|
24
|
-
function dispatch(action) {
|
|
25
|
-
switch (action) {
|
|
26
|
-
case "new":
|
|
27
|
-
app.navigate({ kind: "newProject" });
|
|
28
|
-
return;
|
|
29
|
-
case "import":
|
|
30
|
-
app.navigate({ kind: "import" });
|
|
31
|
-
return;
|
|
32
|
-
case "open":
|
|
33
|
-
app.navigate({ kind: "browser" });
|
|
34
|
-
return;
|
|
35
|
-
case "settings":
|
|
36
|
-
app.navigate({ kind: "agentSetup" });
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
useInput((input, key) => {
|
|
41
|
-
if (key.upArrow || input === "k") {
|
|
42
|
-
setSelected((i) => (i - 1 + ITEMS.length) % ITEMS.length);
|
|
43
|
-
}
|
|
44
|
-
else if (key.downArrow || input === "j") {
|
|
45
|
-
setSelected((i) => (i + 1) % ITEMS.length);
|
|
46
|
-
}
|
|
47
|
-
else if (input === "n") {
|
|
48
|
-
dispatch("new");
|
|
49
|
-
}
|
|
50
|
-
else if (input === "i") {
|
|
51
|
-
dispatch("import");
|
|
52
|
-
}
|
|
53
|
-
else if (input === "o") {
|
|
54
|
-
dispatch("open");
|
|
55
|
-
}
|
|
56
|
-
else if (input === "s") {
|
|
57
|
-
dispatch("settings");
|
|
58
|
-
}
|
|
59
|
-
else if (key.return || input === " ") {
|
|
60
|
-
dispatch(ITEMS[selected].action);
|
|
61
|
-
}
|
|
62
|
-
else if (input === "q") {
|
|
63
|
-
ink.exit();
|
|
64
|
-
}
|
|
65
|
-
// No esc handler: the splash is home. Esc anywhere else walks back to
|
|
66
|
-
// here and stops — esc on home itself is a deliberate no-op.
|
|
67
|
-
});
|
|
68
|
-
return (React.createElement(Box, { flexDirection: "column", paddingY: 1 },
|
|
69
|
-
showCassette ? (React.createElement(CassetteLogo, { rows: SMALL_CASSETTE_ROWS })) : (React.createElement(Gradient, { name: "vice" },
|
|
70
|
-
React.createElement(BigText, { text: "liner", font: "block" }))),
|
|
71
|
-
React.createElement(Box, { flexDirection: "column", paddingLeft: 2, marginTop: showCassette ? 1 : -1 },
|
|
72
|
-
React.createElement(Box, null,
|
|
73
|
-
React.createElement(Text, { color: STRUCTURE, bold: true }, "liner"),
|
|
74
|
-
React.createElement(Text, { color: MUTED }, " \u00B7 curate AI-ready mixtapes from any set of sources")),
|
|
75
|
-
React.createElement(Text, { color: MUTED },
|
|
76
|
-
"v",
|
|
77
|
-
VERSION)),
|
|
78
|
-
React.createElement(Box, { flexDirection: "column", paddingLeft: 2, marginTop: 1 },
|
|
79
|
-
React.createElement(Text, { color: HEADING, bold: true }, "Get started"),
|
|
80
|
-
React.createElement(Box, { marginTop: 1, flexDirection: "column" }, ITEMS.map((item, i) => (React.createElement(MenuRow, { key: item.action, item: item, active: i === selected }))))),
|
|
81
|
-
React.createElement(Box, { marginTop: 1, paddingLeft: 2 },
|
|
82
|
-
React.createElement(Text, { color: MUTED }, "\u2191\u2193 navigate \u00B7 "),
|
|
83
|
-
React.createElement(Text, { color: STRUCTURE }, "enter"),
|
|
84
|
-
React.createElement(Text, { color: MUTED }, " select \u00B7 "),
|
|
85
|
-
React.createElement(Text, { color: STRUCTURE }, "[n]"),
|
|
86
|
-
React.createElement(Text, { color: MUTED }, " "),
|
|
87
|
-
React.createElement(Text, { color: STRUCTURE }, "[i]"),
|
|
88
|
-
React.createElement(Text, { color: MUTED }, " "),
|
|
89
|
-
React.createElement(Text, { color: STRUCTURE }, "[o]"),
|
|
90
|
-
React.createElement(Text, { color: MUTED }, " "),
|
|
91
|
-
React.createElement(Text, { color: STRUCTURE }, "[s]"),
|
|
92
|
-
React.createElement(Text, { color: MUTED }, " direct shortcuts \u00B7 "),
|
|
93
|
-
React.createElement(Text, { color: STRUCTURE }, "q"),
|
|
94
|
-
React.createElement(Text, { color: MUTED }, " quit"))));
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Render the ASCII cassette logo with every non-space character painted in
|
|
98
|
-
* a randomly-chosen palette color. The randomization is computed once per
|
|
99
|
-
* mount (via useMemo) — re-randomizing on every re-render would flicker.
|
|
100
|
-
*
|
|
101
|
-
* For perf we group consecutive characters that landed on the same color
|
|
102
|
-
* into runs so each row ships a handful of `Text` nodes instead of one per
|
|
103
|
-
* character — Ink mounts a separate element per `<Text>`, and 66 elements
|
|
104
|
-
* × 19 rows × every re-paint adds up.
|
|
105
|
-
*
|
|
106
|
-
* Spaces are emitted as their own color-less run so we don't burn nodes
|
|
107
|
-
* coloring invisible cells.
|
|
108
|
-
*/
|
|
109
|
-
function CassetteLogo({ rows }) {
|
|
110
|
-
const colored = useMemo(() => rows.map(colorizeRow), [rows]);
|
|
111
|
-
return (React.createElement(Box, { flexDirection: "column" }, colored.map((runs, rowIdx) => (React.createElement(Box, { key: rowIdx }, runs.map((run, runIdx) => (React.createElement(Text, { key: runIdx, color: run.color }, run.chars))))))));
|
|
112
|
-
}
|
|
113
|
-
// Logo coloring mode:
|
|
114
|
-
// "solid" — every glyph in the brand orange (STRUCTURE). Current default.
|
|
115
|
-
// "random" — each glyph gets a random palette color (the original look).
|
|
116
|
-
// Flip this to "random" to bring back the multicolor cassette.
|
|
117
|
-
const LOGO_COLOR_MODE = "solid";
|
|
118
|
-
function glyphColor() {
|
|
119
|
-
return LOGO_COLOR_MODE === "solid"
|
|
120
|
-
? STRUCTURE
|
|
121
|
-
: PALETTE[Math.floor(Math.random() * PALETTE.length)];
|
|
122
|
-
}
|
|
123
|
-
function colorizeRow(row) {
|
|
124
|
-
const runs = [];
|
|
125
|
-
for (const ch of row) {
|
|
126
|
-
// Spaces don't need coloring — collapse them into uncolored runs so we
|
|
127
|
-
// don't allocate a color per blank cell.
|
|
128
|
-
const color = ch === " " ? undefined : glyphColor();
|
|
129
|
-
const tail = runs[runs.length - 1];
|
|
130
|
-
if (tail && tail.color === color) {
|
|
131
|
-
tail.chars += ch;
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
runs.push({ color, chars: ch });
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return runs;
|
|
138
|
-
}
|
|
139
|
-
function MenuRow({ item, active }) {
|
|
140
|
-
// ASCII ">" is guaranteed single-cell. The unicode ▶ glyph renders
|
|
141
|
-
// double-wide in many terminal fonts, which made the inactive rows shift
|
|
142
|
-
// every time the user moved the selection. Using a fixed two-char prefix
|
|
143
|
-
// ("> " or " ") keeps every row anchored at the same column.
|
|
144
|
-
return (React.createElement(Box, null,
|
|
145
|
-
React.createElement(Text, { color: active ? CURRENT : undefined, bold: active }, active ? "> " : " "),
|
|
146
|
-
React.createElement(Text, { color: STRUCTURE }, `[${item.hotkey}]`),
|
|
147
|
-
React.createElement(Text, null, " "),
|
|
148
|
-
React.createElement(Text, { color: active ? CURRENT : undefined, bold: active }, item.label.padEnd(18, " ")),
|
|
149
|
-
React.createElement(Text, { color: MUTED }, item.hint)));
|
|
150
|
-
}
|
|
151
|
-
export function shouldShowSplash() {
|
|
152
|
-
if (process.env["LINER_NO_SPLASH"])
|
|
153
|
-
return false;
|
|
154
|
-
if (!process.stdout.isTTY)
|
|
155
|
-
return false;
|
|
156
|
-
// Narrow terminals (< 60 cols) can't render the big-text wordmark well —
|
|
157
|
-
// skip rather than show a clipped logo.
|
|
158
|
-
const cols = process.stdout.columns ?? 80;
|
|
159
|
-
if (cols < 60)
|
|
160
|
-
return false;
|
|
161
|
-
return true;
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=BootSplash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BootSplash.js","sourceRoot":"","sources":["../../src/screens/BootSplash.tsx"],"names":[],"mappings":"AAAA,OAAO,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