@rasensio/aidlc 1.94.3 → 1.95.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/dist/autopilot/ansi.d.ts +36 -0
- package/dist/autopilot/ansi.d.ts.map +1 -0
- package/dist/autopilot/ansi.js +90 -0
- package/dist/autopilot/ansi.js.map +1 -0
- package/dist/autopilot/watch-view.d.ts +86 -0
- package/dist/autopilot/watch-view.d.ts.map +1 -0
- package/dist/autopilot/watch-view.js +340 -0
- package/dist/autopilot/watch-view.js.map +1 -0
- package/dist/autopilot/watch.d.ts +31 -13
- package/dist/autopilot/watch.d.ts.map +1 -1
- package/dist/autopilot/watch.js +121 -63
- package/dist/autopilot/watch.js.map +1 -1
- package/dist/commands/autopilot.d.ts +6 -2
- package/dist/commands/autopilot.d.ts.map +1 -1
- package/dist/commands/autopilot.js +26 -12
- package/dist/commands/autopilot.js.map +1 -1
- package/dist/console/index.d.ts.map +1 -1
- package/dist/console/index.js +8 -2
- package/dist/console/index.js.map +1 -1
- package/dist/console/route.js +1 -1
- package/dist/console/route.js.map +1 -1
- package/dist/console/session.d.ts +3 -0
- package/dist/console/session.d.ts.map +1 -1
- package/dist/console/session.js +23 -4
- package/dist/console/session.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colour and visible width for the watch view (colorful-autopilot-watch/AC-11,
|
|
3
|
+
* colorful-autopilot-watch/AC-12, colorful-autopilot-watch/AC-14).
|
|
4
|
+
*
|
|
5
|
+
* The few escape codes are written by hand rather than taken from a colour
|
|
6
|
+
* library: the watch already wrote its cursor codes by hand, and one more runtime
|
|
7
|
+
* dependency is one more package every install fetches (requirements Q2).
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
/** Columns a line takes on screen: code points, with escape codes not counted. */
|
|
12
|
+
export declare function visibleWidth(s: string): number;
|
|
13
|
+
/**
|
|
14
|
+
* Cut to `max` visible columns, ending in `…`. Escape codes are copied whole and
|
|
15
|
+
* never counted, so a coloured line is cut only when its text is too wide, and a
|
|
16
|
+
* cut line ends with the colour reset so it cannot bleed into the next.
|
|
17
|
+
*/
|
|
18
|
+
export declare function cutVisible(s: string, max: number): string;
|
|
19
|
+
/** Pad with spaces to `width` visible columns. */
|
|
20
|
+
export declare function padVisible(s: string, width: number): string;
|
|
21
|
+
/** Plain text wrapped on spaces to `width`; a word longer than a line is split. Never empty. */
|
|
22
|
+
export declare function wrapText(text: string, width: number): string[];
|
|
23
|
+
export type Hue = 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'grey';
|
|
24
|
+
export interface Paint {
|
|
25
|
+
on: boolean;
|
|
26
|
+
bold(s: string): string;
|
|
27
|
+
dim(s: string): string;
|
|
28
|
+
fg(hue: Hue, s: string): string;
|
|
29
|
+
/** Black bold text on `hue`: dark text on a light ground reads on dark and light terminals alike. */
|
|
30
|
+
badge(hue: Hue, s: string): string;
|
|
31
|
+
}
|
|
32
|
+
/** Off, every function returns its text unchanged (colorful-autopilot-watch/AC-12). */
|
|
33
|
+
export declare function paint(on: boolean): Paint;
|
|
34
|
+
/** Colour only on a terminal, and never when `NO_COLOR` is set to anything (no-color.org). */
|
|
35
|
+
export declare function colourWanted(tty: boolean, env: NodeJS.ProcessEnv): boolean;
|
|
36
|
+
//# sourceMappingURL=ansi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansi.d.ts","sourceRoot":"","sources":["../../src/autopilot/ansi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAmBzD;AAED,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,gGAAgG;AAChG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAoB9D;AAED,MAAM,MAAM,GAAG,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAKpF,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,qGAAqG;IACrG,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AAED,uFAAuF;AACvF,wBAAgB,KAAK,CAAC,EAAE,EAAE,OAAO,GAAG,KAAK,CASxC;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,OAAO,CAE1E"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colour and visible width for the watch view (colorful-autopilot-watch/AC-11,
|
|
3
|
+
* colorful-autopilot-watch/AC-12, colorful-autopilot-watch/AC-14).
|
|
4
|
+
*
|
|
5
|
+
* The few escape codes are written by hand rather than taken from a colour
|
|
6
|
+
* library: the watch already wrote its cursor codes by hand, and one more runtime
|
|
7
|
+
* dependency is one more package every install fetches (requirements Q2).
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
const ESC = '\x1b[';
|
|
12
|
+
const RESET = `${ESC}0m`;
|
|
13
|
+
/** Any CSI sequence: colour, cursor, clear. */
|
|
14
|
+
const CSI = /\x1b\[[0-9;?]*[ -/]*[@-~]/g;
|
|
15
|
+
const CSI_AT = /^\x1b\[[0-9;?]*[ -/]*[@-~]/;
|
|
16
|
+
/** Columns a line takes on screen: code points, with escape codes not counted. */
|
|
17
|
+
export function visibleWidth(s) {
|
|
18
|
+
return Array.from(s.replace(CSI, '')).length;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Cut to `max` visible columns, ending in `…`. Escape codes are copied whole and
|
|
22
|
+
* never counted, so a coloured line is cut only when its text is too wide, and a
|
|
23
|
+
* cut line ends with the colour reset so it cannot bleed into the next.
|
|
24
|
+
*/
|
|
25
|
+
export function cutVisible(s, max) {
|
|
26
|
+
if (visibleWidth(s) <= max)
|
|
27
|
+
return s;
|
|
28
|
+
let out = '';
|
|
29
|
+
let seen = 0;
|
|
30
|
+
let coloured = false;
|
|
31
|
+
for (let i = 0; i < s.length && seen < max - 1;) {
|
|
32
|
+
const code = CSI_AT.exec(s.slice(i));
|
|
33
|
+
if (code) {
|
|
34
|
+
out += code[0];
|
|
35
|
+
coloured = true;
|
|
36
|
+
i += code[0].length;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const ch = String.fromCodePoint(s.codePointAt(i));
|
|
40
|
+
out += ch;
|
|
41
|
+
seen += 1;
|
|
42
|
+
i += ch.length;
|
|
43
|
+
}
|
|
44
|
+
return `${out}…${coloured ? RESET : ''}`;
|
|
45
|
+
}
|
|
46
|
+
/** Pad with spaces to `width` visible columns. */
|
|
47
|
+
export function padVisible(s, width) {
|
|
48
|
+
return s + ' '.repeat(Math.max(0, width - visibleWidth(s)));
|
|
49
|
+
}
|
|
50
|
+
/** Plain text wrapped on spaces to `width`; a word longer than a line is split. Never empty. */
|
|
51
|
+
export function wrapText(text, width) {
|
|
52
|
+
const w = Math.max(1, width);
|
|
53
|
+
const lines = [];
|
|
54
|
+
let line = '';
|
|
55
|
+
for (const word of text.split(/\s+/).filter((x) => x !== '')) {
|
|
56
|
+
let rest = Array.from(word);
|
|
57
|
+
if (line !== '' && Array.from(line).length + 1 + rest.length <= w) {
|
|
58
|
+
line += ` ${word}`;
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (line !== '')
|
|
62
|
+
lines.push(line);
|
|
63
|
+
line = '';
|
|
64
|
+
while (rest.length > w) {
|
|
65
|
+
lines.push(rest.slice(0, w).join(''));
|
|
66
|
+
rest = rest.slice(w);
|
|
67
|
+
}
|
|
68
|
+
line = rest.join('');
|
|
69
|
+
}
|
|
70
|
+
lines.push(line);
|
|
71
|
+
return lines;
|
|
72
|
+
}
|
|
73
|
+
const FG = { red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, cyan: 36, grey: 90 };
|
|
74
|
+
const BG = { red: 41, green: 42, yellow: 43, blue: 44, magenta: 45, cyan: 46, grey: 100 };
|
|
75
|
+
/** Off, every function returns its text unchanged (colorful-autopilot-watch/AC-12). */
|
|
76
|
+
export function paint(on) {
|
|
77
|
+
const wrap = (code) => (s) => (on && s !== '' ? `${ESC}${code}m${s}${RESET}` : s);
|
|
78
|
+
return {
|
|
79
|
+
on,
|
|
80
|
+
bold: wrap('1'),
|
|
81
|
+
dim: wrap('2'),
|
|
82
|
+
fg: (hue, s) => wrap(String(FG[hue]))(s),
|
|
83
|
+
badge: (hue, s) => wrap(`1;30;${BG[hue]}`)(s),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** Colour only on a terminal, and never when `NO_COLOR` is set to anything (no-color.org). */
|
|
87
|
+
export function colourWanted(tty, env) {
|
|
88
|
+
return tty && !env.NO_COLOR;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=ansi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansi.js","sourceRoot":"","sources":["../../src/autopilot/ansi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,GAAG,GAAG,OAAO,CAAC;AACpB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,CAAC;KAC9C,CAAC;AACJ,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,YAAY,CAAC,GAAY,EAAE,GAAsB;IAC/D,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The watch view's three layouts — cards, table, lanes — drawn from one frame model
|
|
3
|
+
* (colorful-autopilot-watch/AC-1..AC-5, colorful-autopilot-watch/AC-9,
|
|
4
|
+
* colorful-autopilot-watch/AC-11).
|
|
5
|
+
*
|
|
6
|
+
* Pure: the model is read once per frame by `watch.ts`, and a key that switches the
|
|
7
|
+
* view re-renders it here without reading anything again.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import { type Hue, type Paint } from './ansi.js';
|
|
12
|
+
import type { PauseRecord } from './pause.js';
|
|
13
|
+
import type { ItemStep, RunRecord } from './state.js';
|
|
14
|
+
export type View = 'cards' | 'table' | 'lanes';
|
|
15
|
+
export declare const VIEWS: readonly View[];
|
|
16
|
+
/** `v` cycles cards › table › lanes › cards (colorful-autopilot-watch/AC-7). */
|
|
17
|
+
export declare function nextView(v: View): View;
|
|
18
|
+
/** No name means cards; a name that is not a view is null (colorful-autopilot-watch/AC-6). */
|
|
19
|
+
export declare function parseView(name: string | undefined): View | null;
|
|
20
|
+
export declare const UNKNOWN_VIEW: (name: string) => string;
|
|
21
|
+
/** One item as a frame shows it. Null fields are unknown or not yet recorded. */
|
|
22
|
+
export interface WatchItem {
|
|
23
|
+
name: string;
|
|
24
|
+
/** The roadmap title in full, or the instance name when it cannot be read. */
|
|
25
|
+
title: string;
|
|
26
|
+
step: ItemStep;
|
|
27
|
+
phase: string | null;
|
|
28
|
+
/** As `aidlc status` writes it: `3/7`, `1/3 ▸1`. */
|
|
29
|
+
tasks: string | null;
|
|
30
|
+
inStep: string | null;
|
|
31
|
+
/** `#126 CI pending`. */
|
|
32
|
+
pr: string | null;
|
|
33
|
+
/** The last thing autopilot said, with its age. */
|
|
34
|
+
event: string | null;
|
|
35
|
+
error: string | null;
|
|
36
|
+
/** Why the item waits on a person, in words; null when it does not. */
|
|
37
|
+
reason: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface FrameModel {
|
|
40
|
+
run: RunRecord | null;
|
|
41
|
+
paused: PauseRecord | null;
|
|
42
|
+
/** `last pass 2m ago`, `stopped (STOP file present)`, `backing off until …`. */
|
|
43
|
+
driver: string;
|
|
44
|
+
items: WatchItem[];
|
|
45
|
+
queue: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface RenderOpts {
|
|
48
|
+
view: View;
|
|
49
|
+
columns?: number;
|
|
50
|
+
rows?: number;
|
|
51
|
+
colour: boolean;
|
|
52
|
+
/** Keys are read: the footer names them (colorful-autopilot-watch/AC-9). */
|
|
53
|
+
keys: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface StepLook {
|
|
56
|
+
label: string;
|
|
57
|
+
hue: Hue;
|
|
58
|
+
}
|
|
59
|
+
export declare function stepLook(step: ItemStep): StepLook;
|
|
60
|
+
/**
|
|
61
|
+
* `req ━ design ━ [impl] ─ test ─ deploy`: done green, the current phase bracketed,
|
|
62
|
+
* the rest dim. Null for a phase outside the strip, which is then named in words.
|
|
63
|
+
*/
|
|
64
|
+
export declare function phaseStrip(p: Paint, phase: string | null): {
|
|
65
|
+
text: string;
|
|
66
|
+
width: number;
|
|
67
|
+
} | null;
|
|
68
|
+
/** `■■□□□ 2/5`; the bar is skipped past ten tasks, where it would be noise. */
|
|
69
|
+
export declare function taskBar(tasks: string): string;
|
|
70
|
+
/** `…/logs/run-2026.log`: the end of a path is the part that tells runs apart. */
|
|
71
|
+
export declare function shortenLeft(text: string, max: number): string;
|
|
72
|
+
export declare const COLUMNS: string[];
|
|
73
|
+
/** One item's table cells, in `COLUMNS` order. */
|
|
74
|
+
export declare function cellsOf(item: WatchItem): string[];
|
|
75
|
+
interface Lane {
|
|
76
|
+
name: string;
|
|
77
|
+
hue: Hue;
|
|
78
|
+
steps: readonly ItemStep[];
|
|
79
|
+
}
|
|
80
|
+
/** Grouped by what each item waits on (colorful-autopilot-watch/AC-5). */
|
|
81
|
+
export declare const LANES: readonly Lane[];
|
|
82
|
+
export declare function laneOf(step: ItemStep): number;
|
|
83
|
+
/** The whole frame for one view: header, the items, footer. */
|
|
84
|
+
export declare function renderFrame(m: FrameModel, o: RenderOpts): string[];
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=watch-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-view.d.ts","sourceRoot":"","sources":["../../src/autopilot/watch-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAyD,KAAK,GAAG,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC;AACxG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/C,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAAgC,CAAC;AAElE,gFAAgF;AAChF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAEtC;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAG/D;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAA+D,CAAC;AAE5G,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oDAAo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,MAAM,GAAG,MAAM,CAI7D;AAkDD,eAAO,MAAM,OAAO,UAA8E,CAAC;AAMnG,kDAAkD;AAClD,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,EAAE,CAUjD;AAqCD,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CAC5B;AAED,0EAA0E;AAC1E,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAKhC,CAAC;AAKF,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAG7C;AAyCD,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,CAalE"}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The watch view's three layouts — cards, table, lanes — drawn from one frame model
|
|
3
|
+
* (colorful-autopilot-watch/AC-1..AC-5, colorful-autopilot-watch/AC-9,
|
|
4
|
+
* colorful-autopilot-watch/AC-11).
|
|
5
|
+
*
|
|
6
|
+
* Pure: the model is read once per frame by `watch.ts`, and a key that switches the
|
|
7
|
+
* view re-renders it here without reading anything again.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import { cutVisible, padVisible, paint, visibleWidth, wrapText } from './ansi.js';
|
|
12
|
+
export const VIEWS = ['cards', 'table', 'lanes'];
|
|
13
|
+
/** `v` cycles cards › table › lanes › cards (colorful-autopilot-watch/AC-7). */
|
|
14
|
+
export function nextView(v) {
|
|
15
|
+
return VIEWS[(VIEWS.indexOf(v) + 1) % VIEWS.length];
|
|
16
|
+
}
|
|
17
|
+
/** No name means cards; a name that is not a view is null (colorful-autopilot-watch/AC-6). */
|
|
18
|
+
export function parseView(name) {
|
|
19
|
+
if (name === undefined)
|
|
20
|
+
return 'cards';
|
|
21
|
+
return VIEWS.includes(name) ? name : null;
|
|
22
|
+
}
|
|
23
|
+
export const UNKNOWN_VIEW = (name) => `unknown view "${name}" — choose ${VIEWS.join(', ')}`;
|
|
24
|
+
/** Off a terminal there is no width; wrap as a common terminal would. */
|
|
25
|
+
const DEFAULT_WIDTH = 80;
|
|
26
|
+
/** Below this the cards put the title under the badge, and lanes stack. */
|
|
27
|
+
const WIDE_CARDS = 80;
|
|
28
|
+
const WIDE_LANES = 120;
|
|
29
|
+
const BADGE_WIDTH = 11;
|
|
30
|
+
/** Narrower than this the layouts are laid out at it anyway, and the width cut does the rest. */
|
|
31
|
+
const MIN_WIDTH = 24;
|
|
32
|
+
/**
|
|
33
|
+
* Every badge is words as well as a colour, so `NO_COLOR` loses nothing
|
|
34
|
+
* (colorful-autopilot-watch/AC-11, colorful-autopilot-watch/AC-12).
|
|
35
|
+
*/
|
|
36
|
+
const STEP_LOOK = {
|
|
37
|
+
building: { label: 'BUILDING', hue: 'cyan' },
|
|
38
|
+
approved: { label: 'APPROVED', hue: 'cyan' },
|
|
39
|
+
'pr-open': { label: 'PR OPEN', hue: 'blue' },
|
|
40
|
+
queued: { label: 'QUEUED', hue: 'magenta' },
|
|
41
|
+
'awaiting-review': { label: 'NEEDS YOU', hue: 'yellow' },
|
|
42
|
+
'awaiting-merge': { label: 'NEEDS YOU', hue: 'yellow' },
|
|
43
|
+
error: { label: 'NEEDS YOU', hue: 'red' },
|
|
44
|
+
};
|
|
45
|
+
export function stepLook(step) {
|
|
46
|
+
return STEP_LOOK[step] ?? { label: String(step).toUpperCase(), hue: 'grey' };
|
|
47
|
+
}
|
|
48
|
+
function badge(p, step) {
|
|
49
|
+
const look = stepLook(step);
|
|
50
|
+
return p.badge(look.hue, ` ${look.label} `.padEnd(BADGE_WIDTH));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Segments joined with ` · ` onto as many lines of `width` as they need. A segment
|
|
54
|
+
* wider than a line is wrapped, never cut (colorful-autopilot-watch/AC-2).
|
|
55
|
+
*/
|
|
56
|
+
function flow(segments, width) {
|
|
57
|
+
const lines = [];
|
|
58
|
+
let line = '';
|
|
59
|
+
let used = 0;
|
|
60
|
+
const style = (s, text) => (s.style ? s.style(text) : text);
|
|
61
|
+
for (const seg of segments) {
|
|
62
|
+
if (seg.text === '')
|
|
63
|
+
continue;
|
|
64
|
+
const w = visibleWidth(seg.text);
|
|
65
|
+
if (used > 0 && used + 3 + w <= width) {
|
|
66
|
+
line += ` · ${style(seg, seg.text)}`;
|
|
67
|
+
used += 3 + w;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (used > 0)
|
|
71
|
+
lines.push(line);
|
|
72
|
+
const pieces = w <= width ? [seg.text] : wrapText(seg.text, width);
|
|
73
|
+
for (const piece of pieces.slice(0, -1))
|
|
74
|
+
lines.push(style(seg, piece));
|
|
75
|
+
line = style(seg, pieces.at(-1));
|
|
76
|
+
used = visibleWidth(pieces.at(-1));
|
|
77
|
+
}
|
|
78
|
+
if (used > 0)
|
|
79
|
+
lines.push(line);
|
|
80
|
+
return lines;
|
|
81
|
+
}
|
|
82
|
+
const STAGES = [
|
|
83
|
+
['ideation', 'idea'],
|
|
84
|
+
['requirements', 'req'],
|
|
85
|
+
['design', 'design'],
|
|
86
|
+
['implementation', 'impl'],
|
|
87
|
+
['testing', 'test'],
|
|
88
|
+
['deployment', 'deploy'],
|
|
89
|
+
];
|
|
90
|
+
/**
|
|
91
|
+
* `req ━ design ━ [impl] ─ test ─ deploy`: done green, the current phase bracketed,
|
|
92
|
+
* the rest dim. Null for a phase outside the strip, which is then named in words.
|
|
93
|
+
*/
|
|
94
|
+
export function phaseStrip(p, phase) {
|
|
95
|
+
const at = STAGES.findIndex(([name]) => name === phase);
|
|
96
|
+
if (at < 0)
|
|
97
|
+
return null;
|
|
98
|
+
// Ideation shows only for an item that is in it; most templates start at requirements.
|
|
99
|
+
const from = at === 0 ? 0 : 1;
|
|
100
|
+
const parts = [];
|
|
101
|
+
let width = 0;
|
|
102
|
+
for (let i = from; i < STAGES.length; i++) {
|
|
103
|
+
const short = STAGES[i][1];
|
|
104
|
+
if (i > from) {
|
|
105
|
+
parts.push(i <= at ? p.fg('green', '━') : p.dim('─'));
|
|
106
|
+
width += 1;
|
|
107
|
+
}
|
|
108
|
+
const label = i === at ? `[${short}]` : short;
|
|
109
|
+
parts.push(i < at ? p.fg('green', label) : i === at ? p.bold(label) : p.dim(label));
|
|
110
|
+
width += label.length;
|
|
111
|
+
}
|
|
112
|
+
return { text: parts.join(' '), width: width + parts.length - 1 };
|
|
113
|
+
}
|
|
114
|
+
/** `■■□□□ 2/5`; the bar is skipped past ten tasks, where it would be noise. */
|
|
115
|
+
export function taskBar(tasks) {
|
|
116
|
+
const m = /^(\d+)\/(\d+)/.exec(tasks);
|
|
117
|
+
if (!m)
|
|
118
|
+
return tasks;
|
|
119
|
+
const done = Number(m[1]);
|
|
120
|
+
const total = Number(m[2]);
|
|
121
|
+
if (total === 0 || total > 10)
|
|
122
|
+
return `${tasks} tasks`;
|
|
123
|
+
return `${'■'.repeat(done)}${'□'.repeat(Math.max(0, total - done))} ${tasks}`;
|
|
124
|
+
}
|
|
125
|
+
/** What a card or lane says under the title: why it waits first, then the rest. */
|
|
126
|
+
function details(p, item, opts) {
|
|
127
|
+
const look = stepLook(item.step);
|
|
128
|
+
const segs = [];
|
|
129
|
+
if (item.reason !== null)
|
|
130
|
+
segs.push({ text: item.reason, style: (s) => p.fg(look.hue, s) });
|
|
131
|
+
if (opts.phase && item.phase !== null)
|
|
132
|
+
segs.push({ text: item.phase });
|
|
133
|
+
if (item.tasks !== null)
|
|
134
|
+
segs.push({ text: taskBar(item.tasks) });
|
|
135
|
+
if (item.pr !== null)
|
|
136
|
+
segs.push({ text: item.pr });
|
|
137
|
+
if (opts.inStep && item.inStep !== null)
|
|
138
|
+
segs.push({ text: `${item.inStep} in step`, style: p.dim });
|
|
139
|
+
// An error recorded as the last event too is said once.
|
|
140
|
+
if (item.event !== null && item.event !== item.reason && !item.event.startsWith(`${item.reason}, `)) {
|
|
141
|
+
segs.push({ text: item.event, style: p.dim });
|
|
142
|
+
}
|
|
143
|
+
return segs;
|
|
144
|
+
}
|
|
145
|
+
function header(p, m, width) {
|
|
146
|
+
const segs = [];
|
|
147
|
+
if (m.run === null) {
|
|
148
|
+
segs.push({ text: '○ no run active', style: p.dim });
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
const left = m.run.limit === null ? 'until the backlog is empty' : `${Math.max(0, m.run.limit - m.run.started.length)} of ${m.run.limit} left to start`;
|
|
152
|
+
segs.push({ text: '● running', style: (s) => p.fg('green', s) }, { text: `pid ${m.run.pid}` }, { text: left }, { text: `${m.run.finished.length} finished` });
|
|
153
|
+
}
|
|
154
|
+
segs.push({ text: m.driver, style: m.driver.startsWith('last pass') ? p.dim : (s) => p.fg('yellow', s) });
|
|
155
|
+
const indent = ' '.repeat(BADGE_WIDTH + 1);
|
|
156
|
+
const lines = flow(segs, width - indent.length).map((l, i) => (i === 0 ? `${p.badge('green', ' AUTOPILOT '.padEnd(BADGE_WIDTH))} ${l}` : `${indent}${l}`));
|
|
157
|
+
if (m.paused !== null) {
|
|
158
|
+
const text = `paused since ${m.paused.paused_at}, ${m.paused.processes.length} processes frozen — \`aidlc autopilot resume\` continues`;
|
|
159
|
+
lines.push(...wrapText(text, width).map((l) => p.fg('yellow', l)));
|
|
160
|
+
}
|
|
161
|
+
lines.push(p.dim('─'.repeat(width)));
|
|
162
|
+
return lines;
|
|
163
|
+
}
|
|
164
|
+
/** `…/logs/run-2026.log`: the end of a path is the part that tells runs apart. */
|
|
165
|
+
export function shortenLeft(text, max) {
|
|
166
|
+
const chars = Array.from(text);
|
|
167
|
+
if (chars.length <= max)
|
|
168
|
+
return text;
|
|
169
|
+
return `…${chars.slice(chars.length - Math.max(1, max - 1)).join('')}`;
|
|
170
|
+
}
|
|
171
|
+
function footer(p, m, o, width, hidden) {
|
|
172
|
+
const lines = [];
|
|
173
|
+
if (hidden.length > 0)
|
|
174
|
+
lines.push(p.dim(`hidden: ${hidden.join(', ')} — widen to see`));
|
|
175
|
+
if (m.queue.length > 0)
|
|
176
|
+
lines.push(`${p.bold('merge queue')} ${m.queue.join(' → ')}`);
|
|
177
|
+
if (!o.keys) {
|
|
178
|
+
if (m.run !== null)
|
|
179
|
+
lines.push(`log: ${m.run.log}`);
|
|
180
|
+
return lines;
|
|
181
|
+
}
|
|
182
|
+
lines.push(p.dim('─'.repeat(width)));
|
|
183
|
+
if (m.run !== null)
|
|
184
|
+
lines.push(`${p.dim('log')} ${shortenLeft(m.run.log, width - 5)}`);
|
|
185
|
+
lines.push(`${p.bold('v')} next view · on: ${p.bold(o.view)} · ${p.bold('q')} quit, the run keeps going`);
|
|
186
|
+
return lines;
|
|
187
|
+
}
|
|
188
|
+
function card(p, item, width) {
|
|
189
|
+
const strip = phaseStrip(p, item.phase);
|
|
190
|
+
if (width >= WIDE_CARDS) {
|
|
191
|
+
const indent = ' '.repeat(BADGE_WIDTH + 1);
|
|
192
|
+
const inner = width - indent.length;
|
|
193
|
+
const right = item.inStep === null ? '' : `${item.inStep} in step`;
|
|
194
|
+
const titleWidth = right === '' ? inner : inner - right.length - 2;
|
|
195
|
+
const title = wrapText(item.title, titleWidth);
|
|
196
|
+
const first = right === '' ? p.bold(title[0]) : `${padVisible(p.bold(title[0]), titleWidth)} ${p.dim(right)}`;
|
|
197
|
+
const lines = [`${badge(p, item.step)} ${first}`, ...title.slice(1).map((t) => `${indent}${p.bold(t)}`)];
|
|
198
|
+
const showStrip = strip !== null && strip.width <= inner;
|
|
199
|
+
if (showStrip)
|
|
200
|
+
lines.push(`${indent}${strip.text}`);
|
|
201
|
+
lines.push(...flow(details(p, item, { phase: !showStrip, inStep: false }), inner).map((l) => `${indent}${l}`));
|
|
202
|
+
return lines;
|
|
203
|
+
}
|
|
204
|
+
// Narrow: the badge and time on a line of their own, the title under it in full.
|
|
205
|
+
const inner = width - 1;
|
|
206
|
+
const lines = [`${badge(p, item.step)}${item.inStep === null ? '' : ` ${p.dim(item.inStep)}`}`];
|
|
207
|
+
lines.push(...wrapText(item.title, inner).map((t) => ` ${p.bold(t)}`));
|
|
208
|
+
const showStrip = strip !== null && strip.width <= inner;
|
|
209
|
+
if (showStrip)
|
|
210
|
+
lines.push(` ${strip.text}`);
|
|
211
|
+
lines.push(...flow(details(p, item, { phase: !showStrip, inStep: false }), inner).map((l) => ` ${l}`));
|
|
212
|
+
return lines;
|
|
213
|
+
}
|
|
214
|
+
function cards(p, m, o, width, top, bottom) {
|
|
215
|
+
const body = m.items.flatMap((i) => card(p, i, width));
|
|
216
|
+
// Too tall for the screen: one line per item, badge and title (colorful-autopilot-watch/AC-3).
|
|
217
|
+
if (o.rows !== undefined && o.rows > 0 && top.length + body.length + bottom.length > o.rows) {
|
|
218
|
+
return m.items.map((i) => cutVisible(`${badge(p, i.step)} ${p.bold(i.title)}`, width));
|
|
219
|
+
}
|
|
220
|
+
return body;
|
|
221
|
+
}
|
|
222
|
+
export const COLUMNS = ['item', 'step', 'phase', 'tasks', 'in step', 'pull request', 'last event'];
|
|
223
|
+
/** Wide enough for most roadmap titles, narrow enough to leave the rest of the row on screen. */
|
|
224
|
+
const TITLE_MAX = 40;
|
|
225
|
+
const TITLE_MIN = 12;
|
|
226
|
+
/** One item's table cells, in `COLUMNS` order. */
|
|
227
|
+
export function cellsOf(item) {
|
|
228
|
+
return [
|
|
229
|
+
cutVisible(item.title, TITLE_MAX),
|
|
230
|
+
item.step,
|
|
231
|
+
item.phase ?? '-',
|
|
232
|
+
item.tasks ?? '-',
|
|
233
|
+
item.inStep ?? '-',
|
|
234
|
+
item.pr ?? '-',
|
|
235
|
+
item.event ?? item.error ?? '-',
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
/** Dropped one at a time, in this order, while the rows are wider than the screen (colorful-autopilot-watch/AC-4). */
|
|
239
|
+
const DROP_ORDER = [6, 2, 4];
|
|
240
|
+
function table(p, m, width) {
|
|
241
|
+
const rows = m.items.map((i) => {
|
|
242
|
+
const cells = cellsOf(i);
|
|
243
|
+
cells[1] = stepLook(i.step).label.toLowerCase();
|
|
244
|
+
return cells;
|
|
245
|
+
});
|
|
246
|
+
let keep = COLUMNS.map((_, i) => i);
|
|
247
|
+
const widthOf = (cols) => cols.reduce((sum, c) => sum + Math.max(...[COLUMNS, ...rows].map((r) => visibleWidth(r[c]))), 0) + 2 * (cols.length - 1);
|
|
248
|
+
const hidden = [];
|
|
249
|
+
for (const drop of DROP_ORDER) {
|
|
250
|
+
if (width === undefined || widthOf(keep) <= width)
|
|
251
|
+
break;
|
|
252
|
+
keep = keep.filter((c) => c !== drop);
|
|
253
|
+
hidden.push(COLUMNS[drop]);
|
|
254
|
+
}
|
|
255
|
+
// Still too wide with all three gone: the title gives way, down to a readable minimum.
|
|
256
|
+
if (width !== undefined && widthOf(keep) > width) {
|
|
257
|
+
const room = Math.max(TITLE_MIN, width - (widthOf(keep) - Math.max(...[COLUMNS, ...rows].map((r) => visibleWidth(r[0])))));
|
|
258
|
+
m.items.forEach((item, n) => (rows[n][0] = cutVisible(item.title, room)));
|
|
259
|
+
}
|
|
260
|
+
const widths = keep.map((c) => Math.max(...[COLUMNS, ...rows].map((r) => visibleWidth(r[c]))));
|
|
261
|
+
// Pad first, colour after, so escape codes never enter a width.
|
|
262
|
+
const line = (cells, style) => keep
|
|
263
|
+
.map((c, k) => style(c, k === keep.length - 1 ? cells[c] : padVisible(cells[c], widths[k])))
|
|
264
|
+
.join(' ')
|
|
265
|
+
.trimEnd();
|
|
266
|
+
const lines = [line(COLUMNS, (_, s) => p.bold(s))];
|
|
267
|
+
m.items.forEach((item, n) => lines.push(line(rows[n], (c, s) => (c === 1 ? p.fg(stepLook(item.step).hue, s) : s))));
|
|
268
|
+
return { lines, hidden };
|
|
269
|
+
}
|
|
270
|
+
/** Grouped by what each item waits on (colorful-autopilot-watch/AC-5). */
|
|
271
|
+
export const LANES = [
|
|
272
|
+
{ name: 'BUILDING', hue: 'cyan', steps: ['building', 'approved'] },
|
|
273
|
+
{ name: 'IN REVIEW', hue: 'blue', steps: ['pr-open'] },
|
|
274
|
+
{ name: 'MERGING', hue: 'magenta', steps: ['queued'] },
|
|
275
|
+
{ name: 'NEEDS YOU', hue: 'red', steps: ['error', 'awaiting-review', 'awaiting-merge'] },
|
|
276
|
+
];
|
|
277
|
+
/** Stacked, the lane that needs a person comes first. */
|
|
278
|
+
const STACK_ORDER = [3, 0, 1, 2];
|
|
279
|
+
export function laneOf(step) {
|
|
280
|
+
const i = LANES.findIndex((l) => l.steps.includes(step));
|
|
281
|
+
return i < 0 ? 0 : i;
|
|
282
|
+
}
|
|
283
|
+
function laneBlock(p, item, width) {
|
|
284
|
+
return [
|
|
285
|
+
...wrapText(item.title, width).map((t) => p.bold(t)),
|
|
286
|
+
...flow(details(p, item, { phase: true, inStep: true }), width),
|
|
287
|
+
];
|
|
288
|
+
}
|
|
289
|
+
function lanes(p, m, width) {
|
|
290
|
+
const groups = LANES.map((_, i) => m.items.filter((item) => laneOf(item.step) === i));
|
|
291
|
+
if (width >= WIDE_LANES) {
|
|
292
|
+
const gap = 3;
|
|
293
|
+
const laneWidth = Math.floor((width - gap * (LANES.length - 1)) / LANES.length);
|
|
294
|
+
const columns = LANES.map((lane, i) => {
|
|
295
|
+
const col = [p.bold(p.fg(lane.hue, `${lane.name} ${groups[i].length}`)), p.fg(lane.hue, '━'.repeat(laneWidth))];
|
|
296
|
+
if (groups[i].length === 0)
|
|
297
|
+
col.push(p.dim('—'));
|
|
298
|
+
groups[i].forEach((item, n) => {
|
|
299
|
+
if (n > 0)
|
|
300
|
+
col.push('');
|
|
301
|
+
col.push(...laneBlock(p, item, laneWidth));
|
|
302
|
+
});
|
|
303
|
+
return col;
|
|
304
|
+
});
|
|
305
|
+
const height = Math.max(...columns.map((c) => c.length));
|
|
306
|
+
const lines = [];
|
|
307
|
+
for (let row = 0; row < height; row++) {
|
|
308
|
+
lines.push(columns.map((c) => padVisible(c[row] ?? '', laneWidth)).join(' '.repeat(gap)).trimEnd());
|
|
309
|
+
}
|
|
310
|
+
return lines;
|
|
311
|
+
}
|
|
312
|
+
const lines = [];
|
|
313
|
+
for (const i of STACK_ORDER) {
|
|
314
|
+
const lane = LANES[i];
|
|
315
|
+
if (groups[i].length === 0)
|
|
316
|
+
continue;
|
|
317
|
+
const title = `${lane.name} ${groups[i].length} `;
|
|
318
|
+
lines.push(`${p.bold(p.fg(lane.hue, title))}${p.fg(lane.hue, '━'.repeat(Math.max(0, width - title.length)))}`);
|
|
319
|
+
for (const item of groups[i])
|
|
320
|
+
lines.push(...laneBlock(p, item, width - 1).map((l) => ` ${l}`));
|
|
321
|
+
}
|
|
322
|
+
return lines;
|
|
323
|
+
}
|
|
324
|
+
/** The whole frame for one view: header, the items, footer. */
|
|
325
|
+
export function renderFrame(m, o) {
|
|
326
|
+
const p = paint(o.colour);
|
|
327
|
+
// A terminal that reports no size (0, as some pseudo-terminals do) is treated as off-screen.
|
|
328
|
+
const width = o.columns === undefined || o.columns < 1 ? DEFAULT_WIDTH : Math.max(MIN_WIDTH, o.columns);
|
|
329
|
+
const top = header(p, m, width);
|
|
330
|
+
if (m.items.length === 0)
|
|
331
|
+
return [...top, 'no items in flight', ...footer(p, m, o, width, [])];
|
|
332
|
+
if (o.view === 'table') {
|
|
333
|
+
const t = table(p, m, o.columns === undefined || o.columns < 1 ? undefined : width);
|
|
334
|
+
return [...top, ...t.lines, ...footer(p, m, o, width, t.hidden)];
|
|
335
|
+
}
|
|
336
|
+
const bottom = footer(p, m, o, width, []);
|
|
337
|
+
const body = o.view === 'lanes' ? lanes(p, m, width) : cards(p, m, o, width, top, bottom);
|
|
338
|
+
return [...top, ...body, ...bottom];
|
|
339
|
+
}
|
|
340
|
+
//# sourceMappingURL=watch-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch-view.js","sourceRoot":"","sources":["../../src/autopilot/watch-view.ts"],"names":[],"mappings":"AAA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