@xingular/harness 1.3.1-unstable.3 → 1.3.1-unstable.4
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/CHANGELOG.md +33 -0
- package/dist/cli.js +2513 -1296
- package/dist/sdk/cli.js +2 -0
- package/dist/sdk/commands/registry.d.ts +15 -0
- package/dist/sdk/commands/registry.js +2 -0
- package/dist/sdk/remote/addresses.d.ts +19 -0
- package/dist/sdk/remote/addresses.js +52 -0
- package/dist/sdk/remote/pairing.d.ts +59 -0
- package/dist/sdk/remote/pairing.js +160 -0
- package/dist/sdk/remote/seal.d.ts +28 -0
- package/dist/sdk/remote/seal.js +84 -0
- package/dist/sdk/remote/server.d.ts +28 -0
- package/dist/sdk/remote/server.js +158 -0
- package/dist/sdk/remote/service.d.ts +125 -0
- package/dist/sdk/remote/service.js +330 -0
- package/dist/sdk/remote/webClient.d.ts +4 -0
- package/dist/sdk/remote/webClient.js +444 -0
- package/dist/sdk/sessions/planMode.d.ts +26 -1
- package/dist/sdk/sessions/planMode.js +48 -1
- package/dist/sdk/sessions/runner.d.ts +2 -0
- package/dist/sdk/sessions/runner.js +17 -2
- package/dist/sdk/sessions/sessions.js +1 -0
- package/dist/sdk/sessions/workSlice.d.ts +5 -9
- package/dist/sdk/sessions/workSlice.js +8 -149
- package/dist/sdk/terminal/client.d.ts +2 -0
- package/dist/sdk/terminal/client.js +2 -0
- package/dist/sdk/terminal/controller.d.ts +13 -0
- package/dist/sdk/terminal/controller.js +56 -2
- package/dist/sdk/terminal/piExtension.js +71 -3
- package/dist/sdk/terminal/stallWatch.d.ts +13 -0
- package/dist/sdk/terminal/stallWatch.js +16 -0
- package/dist/sdk/terminal/standalone.d.ts +2 -0
- package/dist/sdk/terminal/standalone.js +9 -2
- package/dist/sdk/terminal/terminals.d.ts +12 -0
- package/dist/sdk/terminal/terminals.js +87 -2
- package/dist/sdk/terminal/tui/commandPages.d.ts +4 -1
- package/dist/sdk/terminal/tui/commandPages.js +12 -0
- package/dist/sdk/terminal/tui/commands.d.ts +2 -0
- package/dist/sdk/terminal/tui/commands.js +18 -1
- package/dist/sdk/terminal/tui/markdown.d.ts +16 -0
- package/dist/sdk/terminal/tui/markdown.js +55 -0
- package/dist/sdk/terminal/tui/pages/contextPage.d.ts +8 -0
- package/dist/sdk/terminal/tui/pages/contextPage.js +130 -39
- package/dist/sdk/terminal/tui/pages/remoteControlPage.d.ts +32 -0
- package/dist/sdk/terminal/tui/pages/remoteControlPage.js +170 -0
- package/dist/sdk/terminal/tui/qr.d.ts +4 -0
- package/dist/sdk/terminal/tui/qr.js +35 -0
- package/dist/sdk/terminal/tui/sideQuestion.d.ts +1 -0
- package/dist/sdk/terminal/tui/sideQuestion.js +8 -3
- package/dist/sdk/terminal/tui/status.d.ts +6 -0
- package/dist/sdk/terminal/tui/status.js +15 -1
- package/dist/sdk/terminal/tui/theme.d.ts +9 -0
- package/dist/sdk/terminal/tui/theme.js +9 -0
- package/dist/terminal-opentui.js +959 -174
- package/dist/terminal-pi.js +114 -116
- package/docs/architecture/02-sessions-and-runs.md +46 -22
- package/docs/architecture/04-prompt.md +10 -0
- package/docs/architecture/07-tools-and-gate.md +3 -1
- package/docs/architecture/10-server-protocol.md +24 -0
- package/docs/architecture/11-terminal.md +40 -8
- package/docs/architecture/12-storage.md +5 -2
- package/docs/architecture/14-surfaces-and-parity.md +4 -0
- package/docs/architecture/15-remote-control.md +118 -0
- package/docs/architecture/README.md +2 -0
- package/docs/architecture/proposals/PROP-0049-context-attribution.md +28 -1
- package/docs/architecture/proposals/README.md +2 -2
- package/docs/decisions/ADR-0039-progress-aware-stall-guards.md +4 -0
- package/docs/decisions/ADR-0053-no-repeated-work-guard.md +45 -0
- package/docs/decisions/ADR-0054-terminal-reply-heartbeat-and-stall.md +52 -0
- package/docs/decisions/ADR-0055-plan-output-repair.md +51 -0
- package/docs/decisions/ADR-0056-remote-control.md +53 -0
- package/docs/decisions/ADR-0057-structured-plan-outcomes.md +39 -0
- package/docs/decisions/ADR-0058-ask-user-only-plan-clarification.md +36 -0
- package/docs/parity.md +8 -4
- package/docs/releases/1.3.1-unstable.4.md +56 -0
- package/docs/terminal-tui.md +15 -3
- package/package.json +3 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from '@earendil-works/pi-tui';
|
|
2
|
+
import { safeText } from "../chrome.js";
|
|
3
|
+
import { qrLines } from "../qr.js";
|
|
4
|
+
const KIND_LABEL = { tailscale: 'Tailscale', lan: 'Wi-Fi' };
|
|
5
|
+
export class RemoteControlPage {
|
|
6
|
+
options;
|
|
7
|
+
presentation = 'fullscreen';
|
|
8
|
+
status = null;
|
|
9
|
+
error = null;
|
|
10
|
+
showQr = true;
|
|
11
|
+
busy = false;
|
|
12
|
+
disposed = false;
|
|
13
|
+
watching = null;
|
|
14
|
+
constructor(options) {
|
|
15
|
+
this.options = options;
|
|
16
|
+
}
|
|
17
|
+
tabs() {
|
|
18
|
+
return [{ id: 'remote', title: 'Remote Control' }];
|
|
19
|
+
}
|
|
20
|
+
activeTab() {
|
|
21
|
+
return 'remote';
|
|
22
|
+
}
|
|
23
|
+
hint() {
|
|
24
|
+
const status = this.status;
|
|
25
|
+
if (status?.request)
|
|
26
|
+
return 'a allow · d deny';
|
|
27
|
+
if (!status?.running)
|
|
28
|
+
return 's start';
|
|
29
|
+
const parts = ['space QR', 'c copy link', 'n new link'];
|
|
30
|
+
if (status.kinds.length > 1)
|
|
31
|
+
parts.push(`t use ${status.kind === 'tailscale' ? 'Wi-Fi' : 'Tailscale'}`);
|
|
32
|
+
parts.push('x stop');
|
|
33
|
+
return parts.join(' · ');
|
|
34
|
+
}
|
|
35
|
+
activate() {
|
|
36
|
+
void this.watch();
|
|
37
|
+
}
|
|
38
|
+
dispose() {
|
|
39
|
+
this.disposed = true;
|
|
40
|
+
this.watching?.abort();
|
|
41
|
+
}
|
|
42
|
+
async watch() {
|
|
43
|
+
const watching = new AbortController();
|
|
44
|
+
this.watching = watching;
|
|
45
|
+
let revision;
|
|
46
|
+
while (!this.disposed && !watching.signal.aborted) {
|
|
47
|
+
try {
|
|
48
|
+
const status = await this.options.call(revision === undefined ? 'terminal.remoteControl.status' : 'terminal.remoteControl.status.wait', { revision });
|
|
49
|
+
if (this.disposed)
|
|
50
|
+
return;
|
|
51
|
+
this.status = status;
|
|
52
|
+
this.error = null;
|
|
53
|
+
revision = status.revision;
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
if (this.disposed)
|
|
57
|
+
return;
|
|
58
|
+
this.error = error instanceof Error ? error.message : String(error);
|
|
59
|
+
revision = undefined;
|
|
60
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
61
|
+
}
|
|
62
|
+
this.options.changed();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async act(method, params = {}, done) {
|
|
66
|
+
if (this.busy)
|
|
67
|
+
return;
|
|
68
|
+
this.busy = true;
|
|
69
|
+
this.options.changed();
|
|
70
|
+
try {
|
|
71
|
+
this.status = await this.options.call(method, params);
|
|
72
|
+
this.error = null;
|
|
73
|
+
if (done)
|
|
74
|
+
this.options.notify(done);
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
this.error = error instanceof Error ? error.message : String(error);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
this.busy = false;
|
|
81
|
+
this.options.changed();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
handleInput(data) {
|
|
85
|
+
const status = this.status;
|
|
86
|
+
if (status?.request) {
|
|
87
|
+
if (data === 'a' || data === 'y')
|
|
88
|
+
void this.act('terminal.remoteControl.confirm', { requestId: status.request.id, allow: true }, `${status.request.label} can now control this session.`);
|
|
89
|
+
else if (data === 'd' || data === 'n')
|
|
90
|
+
void this.act('terminal.remoteControl.confirm', { requestId: status.request.id, allow: false });
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
if (!status?.running) {
|
|
94
|
+
if (data === 's')
|
|
95
|
+
void this.act('terminal.remoteControl.start');
|
|
96
|
+
return data === 's';
|
|
97
|
+
}
|
|
98
|
+
if (data === ' ')
|
|
99
|
+
this.showQr = !this.showQr;
|
|
100
|
+
else if (data === 'c' && status.url)
|
|
101
|
+
void this.options.copy(status.url).then(() => this.options.notify('Remote-control link copied'), (error) => this.options.notify(error instanceof Error ? error.message : String(error), 'error'));
|
|
102
|
+
else if (data === 'n')
|
|
103
|
+
void this.act('terminal.remoteControl.rotate', {}, 'New link. Paired devices were disconnected.');
|
|
104
|
+
else if (data === 't' && status.kinds.length > 1)
|
|
105
|
+
void this.act('terminal.remoteControl.start', { interface: status.kind === 'tailscale' ? 'lan' : 'tailscale' });
|
|
106
|
+
else if (data === 'x')
|
|
107
|
+
void this.act('terminal.remoteControl.stop', {}, 'Remote control stopped.');
|
|
108
|
+
else
|
|
109
|
+
return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
render(width, rows) {
|
|
113
|
+
const theme = this.options.theme();
|
|
114
|
+
const status = this.status;
|
|
115
|
+
const lines = [];
|
|
116
|
+
const wrap = (text, color = 'text') => {
|
|
117
|
+
for (const line of wrapTextWithAnsi(text, Math.max(1, width)))
|
|
118
|
+
lines.push(theme.fg(color, line));
|
|
119
|
+
};
|
|
120
|
+
if (this.error) {
|
|
121
|
+
wrap(this.error, 'error');
|
|
122
|
+
lines.push('');
|
|
123
|
+
}
|
|
124
|
+
if (!status) {
|
|
125
|
+
wrap('Starting remote control…', 'dim');
|
|
126
|
+
return lines.slice(0, rows);
|
|
127
|
+
}
|
|
128
|
+
if (status.request) {
|
|
129
|
+
wrap(`${safeText(status.request.label)} wants to control this session.`, 'warning');
|
|
130
|
+
wrap('It will be able to send messages, stop replies, and answer approvals and questions. Press a to allow or d to deny.', 'text');
|
|
131
|
+
lines.push('');
|
|
132
|
+
}
|
|
133
|
+
if (!status.running) {
|
|
134
|
+
wrap('Remote control is off.', 'dim');
|
|
135
|
+
wrap('Press s to start it, then scan the QR code with your phone or iPad.', 'dim');
|
|
136
|
+
return lines.slice(0, rows);
|
|
137
|
+
}
|
|
138
|
+
const kind = status.kind ? KIND_LABEL[status.kind] : '';
|
|
139
|
+
lines.push(theme.fg('success', '● ') + theme.bold(`Remote control is on${kind ? ` · ${kind}` : ''}`));
|
|
140
|
+
wrap(status.kind === 'tailscale'
|
|
141
|
+
? 'Scan with a phone or iPad signed in to the same Tailscale network, or open this link on it:'
|
|
142
|
+
: 'Scan with a phone or iPad on the same Wi-Fi, or open this link on it:', 'dim');
|
|
143
|
+
if (status.url)
|
|
144
|
+
wrap(status.url, 'accent');
|
|
145
|
+
if (status.warning)
|
|
146
|
+
wrap(safeText(status.warning), 'warning');
|
|
147
|
+
if (status.kind === 'lan')
|
|
148
|
+
wrap('On a network you do not trust, use Tailscale instead: anyone there can see that this computer is listening.', 'dim');
|
|
149
|
+
const devices = status.devices.length
|
|
150
|
+
? status.devices.map((device) => `${device.connected ? theme.fg('success', '●') : theme.fg('dim', '○')} ${safeText(device.label)}${device.connected ? '' : theme.fg('dim', ' (paired, not connected)')}`)
|
|
151
|
+
: [theme.fg('dim', 'No device paired yet.')];
|
|
152
|
+
const footer = ['', ...devices];
|
|
153
|
+
if (this.showQr && status.url) {
|
|
154
|
+
const qr = qrLines(status.url);
|
|
155
|
+
const room = rows - lines.length - footer.length - 1;
|
|
156
|
+
const qrWidth = visibleWidth(qr[0] ?? '');
|
|
157
|
+
if (qr.length <= room && qrWidth <= width) {
|
|
158
|
+
lines.push('');
|
|
159
|
+
const pad = ' '.repeat(Math.max(0, Math.floor((width - qrWidth) / 2)));
|
|
160
|
+
for (const line of qr)
|
|
161
|
+
lines.push(pad + line);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
lines.push('', theme.fg('dim', 'Make the terminal larger to show the QR code, or press c to copy the link.'));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
lines.push(...footer);
|
|
168
|
+
return lines.slice(0, rows).map((line) => truncateToWidth(line, width, ''));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The modules, `true` for dark, with a quiet zone of light modules around them. */
|
|
2
|
+
export declare function qrModules(text: string): boolean[][];
|
|
3
|
+
/** One line per two module rows; each line is as wide as the code. */
|
|
4
|
+
export declare function qrLines(text: string): string[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// A QR code drawn with half-block characters: two modules per terminal row. Colours are fixed
|
|
2
|
+
// black on white, whatever the theme, because phone cameras need dark modules on a light ground.
|
|
3
|
+
import { encode } from 'uqr';
|
|
4
|
+
const QUIET = 2;
|
|
5
|
+
const LIGHT_ON_DARK = '\x1b[38;5;231;48;5;16m';
|
|
6
|
+
const RESET = '\x1b[0m';
|
|
7
|
+
/** The modules, `true` for dark, with a quiet zone of light modules around them. */
|
|
8
|
+
export function qrModules(text) {
|
|
9
|
+
const { data } = encode(text, { ecc: 'L', border: 0 });
|
|
10
|
+
const size = data.length + QUIET * 2;
|
|
11
|
+
const blank = () => Array.from({ length: size }, () => false);
|
|
12
|
+
return [
|
|
13
|
+
...Array.from({ length: QUIET }, blank),
|
|
14
|
+
...data.map((row) => [...Array.from({ length: QUIET }, () => false), ...row, ...Array.from({ length: QUIET }, () => false)]),
|
|
15
|
+
...Array.from({ length: QUIET }, blank)
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
/** One line per two module rows; each line is as wide as the code. */
|
|
19
|
+
export function qrLines(text) {
|
|
20
|
+
const modules = qrModules(text);
|
|
21
|
+
const lines = [];
|
|
22
|
+
for (let y = 0; y < modules.length; y += 2) {
|
|
23
|
+
const top = modules[y];
|
|
24
|
+
const bottom = modules[y + 1] ?? top.map(() => false);
|
|
25
|
+
let line = '';
|
|
26
|
+
for (let x = 0; x < top.length; x += 1) {
|
|
27
|
+
// The foreground is light and the background dark, so each cell shows its two modules.
|
|
28
|
+
const a = top[x];
|
|
29
|
+
const b = bottom[x];
|
|
30
|
+
line += !a && !b ? '█' : !a && b ? '▀' : a && !b ? '▄' : ' ';
|
|
31
|
+
}
|
|
32
|
+
lines.push(`${LIGHT_ON_DARK}${line}${RESET}`);
|
|
33
|
+
}
|
|
34
|
+
return lines;
|
|
35
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from '@earendil-works/pi-tui';
|
|
2
2
|
import { contentWidth, footerRow, neutralRule, padded, safeText } from "./chrome.js";
|
|
3
|
+
import { MarkdownBlock, markdownSource } from "./markdown.js";
|
|
3
4
|
import { getWorkingSpinnerFrames, SPINNER_INTERVAL_MS, spinnerFrameAt } from "./workingStatus.js";
|
|
4
5
|
const QUESTION_ROWS = 2;
|
|
5
6
|
const ANSWER_ROWS = 8;
|
|
@@ -74,6 +75,7 @@ export class SideQuestion {
|
|
|
74
75
|
startedAt = 0;
|
|
75
76
|
afterSequence = -1;
|
|
76
77
|
answerOffset = 0;
|
|
78
|
+
answerMarkdown = new MarkdownBlock();
|
|
77
79
|
dock;
|
|
78
80
|
constructor(options) {
|
|
79
81
|
this.options = options;
|
|
@@ -211,11 +213,14 @@ export class SideQuestion {
|
|
|
211
213
|
});
|
|
212
214
|
if (asked.length > QUESTION_ROWS)
|
|
213
215
|
question[QUESTION_ROWS - 1] = truncateToWidth(question[QUESTION_ROWS - 1], inner - 1, '') + theme.fg('muted', '…');
|
|
214
|
-
const
|
|
215
|
-
const
|
|
216
|
+
const answer = this.answerText ? this.answerMarkdown.lines(markdownSource(this.answerText), inner, theme) : [];
|
|
217
|
+
const failure = this.current === 'failed'
|
|
218
|
+
? wrapTextWithAnsi(safeText(this.error ?? 'The side question failed.'), inner).map(line => theme.fg('error', line))
|
|
219
|
+
: [];
|
|
220
|
+
const wrapped = [...answer, ...(answer.length && failure.length ? [''] : []), ...failure];
|
|
216
221
|
const maxOffset = Math.max(0, wrapped.length - ANSWER_ROWS);
|
|
217
222
|
this.answerOffset = Math.min(this.answerOffset, maxOffset);
|
|
218
|
-
const shown = wrapped.slice(this.answerOffset, this.answerOffset + ANSWER_ROWS)
|
|
223
|
+
const shown = wrapped.slice(this.answerOffset, this.answerOffset + ANSWER_ROWS);
|
|
219
224
|
const before = this.answerOffset;
|
|
220
225
|
const after = Math.max(0, wrapped.length - before - shown.length);
|
|
221
226
|
const textHint = before || after ? `PgUp/PgDn browse · ${before ? `${before} above` : ''}${before && after ? ' · ' : ''}${after ? `${after} below` : ''} · ` : '';
|
|
@@ -11,8 +11,14 @@ export interface BandState {
|
|
|
11
11
|
account?: string;
|
|
12
12
|
inputTokens: number;
|
|
13
13
|
outputTokens: number;
|
|
14
|
+
/** Share of the model's window the latest request used; null until something measured it. */
|
|
15
|
+
contextPercent?: number | null;
|
|
16
|
+
/** Auto-compaction is on, so the band says so beside the reading. */
|
|
17
|
+
autoCompact?: boolean;
|
|
14
18
|
}
|
|
15
19
|
export declare function singleLine(text: string): string;
|
|
16
20
|
export declare function displayProjectName(cwd: string): string;
|
|
21
|
+
/** `18.3%/1M`, `?/1M` before anything measured it, and `(auto)` when Pi compacts on its own. */
|
|
22
|
+
export declare function formatContextReading(state: Pick<BandState, 'model' | 'contextPercent' | 'autoCompact'>): string;
|
|
17
23
|
export declare function formatTokenCount(value: number): string;
|
|
18
24
|
export declare function renderStatusBand(state: BandState, width: number, theme: Theme): string;
|
|
@@ -15,6 +15,14 @@ export function singleLine(text) {
|
|
|
15
15
|
export function displayProjectName(cwd) {
|
|
16
16
|
return singleLine(basename(cwd) || cwd || sep);
|
|
17
17
|
}
|
|
18
|
+
/** `18.3%/1M`, `?/1M` before anything measured it, and `(auto)` when Pi compacts on its own. */
|
|
19
|
+
export function formatContextReading(state) {
|
|
20
|
+
const window = state.model?.contextWindow && state.model.contextWindow > 0 ? formatTokenCount(state.model.contextWindow) : '?';
|
|
21
|
+
if (state.contextPercent === null || state.contextPercent === undefined || !Number.isFinite(state.contextPercent))
|
|
22
|
+
return `?/${window}${state.autoCompact ? ' (auto)' : ''}`;
|
|
23
|
+
const bounded = Math.max(0, Math.min(999, state.contextPercent));
|
|
24
|
+
return `${bounded.toFixed(1)}%/${window}${state.autoCompact ? ' (auto)' : ''}`;
|
|
25
|
+
}
|
|
18
26
|
export function formatTokenCount(value) {
|
|
19
27
|
const count = Math.max(0, Number.isFinite(value) ? Math.floor(value) : 0);
|
|
20
28
|
if (count >= 1_000_000_000)
|
|
@@ -60,7 +68,13 @@ export function renderStatusBand(state, width, theme) {
|
|
|
60
68
|
{ text: displayProjectName(state.cwd), color: colors.brightAluminum },
|
|
61
69
|
{ text: singleLine(state.branch ?? '') || '—', color: colors.readoutGreen },
|
|
62
70
|
{ text: `${account} · ${model} · ${effort}`, color: colors.electricBlue },
|
|
63
|
-
{ text: `↑ ${formatTokenCount(state.inputTokens)} ↓ ${formatTokenCount(state.outputTokens)}`, color: colors.titaniumGold }
|
|
71
|
+
{ text: `↑ ${formatTokenCount(state.inputTokens)} ↓ ${formatTokenCount(state.outputTokens)}`, color: colors.titaniumGold },
|
|
72
|
+
...(state.contextPercent === undefined ? [] : [{
|
|
73
|
+
text: formatContextReading(state),
|
|
74
|
+
color: state.contextPercent !== null && state.contextPercent >= 90
|
|
75
|
+
? colors.alertRed
|
|
76
|
+
: state.contextPercent !== null && state.contextPercent >= 70 ? colors.warningAmber : colors.dimAluminum
|
|
77
|
+
}])
|
|
64
78
|
], size);
|
|
65
79
|
const separator = color(theme, colors.subtleGray, ' | ');
|
|
66
80
|
return parts.map(part => color(theme, part.color, part.text)).join(separator);
|
|
@@ -26,6 +26,15 @@
|
|
|
26
26
|
* SOFTWARE.
|
|
27
27
|
*/
|
|
28
28
|
import { Theme } from '@earendil-works/pi-coding-agent';
|
|
29
|
+
/**
|
|
30
|
+
* Categorical colours for a bar that splits one reading by kind — the same values as the App's
|
|
31
|
+
* `--data-1..4` tokens, so a screen and a terminal show the same split in the same colours. They
|
|
32
|
+
* carry no severity: a red run is a category, not a problem.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SERIES_COLORS: {
|
|
35
|
+
readonly dark: readonly ["#3987e5", "#d95926", "#199e70", "#c98500"];
|
|
36
|
+
readonly light: readonly ["#2a78d6", "#eb6834", "#1baf7a", "#eda100"];
|
|
37
|
+
};
|
|
29
38
|
export declare const TITANIUM: {
|
|
30
39
|
readonly brushedTitanium: "#151820";
|
|
31
40
|
readonly darkTitanium: "#0f1216";
|
|
@@ -28,6 +28,15 @@
|
|
|
28
28
|
import { Theme } from '@earendil-works/pi-coding-agent';
|
|
29
29
|
import { SELECTION_COLORS } from "./selection.js";
|
|
30
30
|
const orange = { dark: '#ffb347', light: '#9a7326' };
|
|
31
|
+
/**
|
|
32
|
+
* Categorical colours for a bar that splits one reading by kind — the same values as the App's
|
|
33
|
+
* `--data-1..4` tokens, so a screen and a terminal show the same split in the same colours. They
|
|
34
|
+
* carry no severity: a red run is a category, not a problem.
|
|
35
|
+
*/
|
|
36
|
+
export const SERIES_COLORS = {
|
|
37
|
+
dark: ['#3987e5', '#d95926', '#199e70', '#c98500'],
|
|
38
|
+
light: ['#2a78d6', '#eb6834', '#1baf7a', '#eda100']
|
|
39
|
+
};
|
|
31
40
|
export const TITANIUM = {
|
|
32
41
|
brushedTitanium: '#151820',
|
|
33
42
|
darkTitanium: '#0f1216',
|