@fnndsc/menu 0.9.0 → 0.10.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.
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @file ANSI SGR to HTML conversion, for any surface that shows the
3
+ * session's text in a browser.
4
+ *
5
+ * The engine's rendered stream is ANSI-colored text (chalk emits 16-color,
6
+ * 256-color, and truecolor SGR sequences). The ARGUS console renders that
7
+ * stream as HTML, in the prototype's styled-transcript tradition, and the
8
+ * porter's greeter renders a daemon's boot rows the same way, so this
9
+ * module converts SGR runs into `<span style>` runs. Non-SGR escape
10
+ * sequences (cursor movement, erasures) are dropped: the transcript is a
11
+ * document, not a screen buffer, so positioning has no meaning here. All
12
+ * text content is entity-escaped before markup is added.
13
+ *
14
+ * It lives in the wire package, beside the brain, because a browser has to
15
+ * load it and it touches nothing but strings.
16
+ *
17
+ * @module
18
+ */
19
+ /** The named colours the console's listing speaks in, as chalk names them. */
20
+ export type ConsoleColour = 'yellow' | 'white' | 'cyan' | 'green' | 'magenta';
21
+ /**
22
+ * The console's palette by chalk name: what `ls` paints a directory, a
23
+ * file, a link, a plugin and a pipeline with, read from the same table the
24
+ * console renders SGR codes through.
25
+ */
26
+ export declare const CONSOLE_PALETTE: Readonly<Record<ConsoleColour, string>>;
27
+ /**
28
+ * Escapes text for safe HTML interpolation.
29
+ *
30
+ * @param text - The raw text.
31
+ * @returns The entity-escaped text.
32
+ */
33
+ export declare function html_escape(text: string): string;
34
+ /**
35
+ * Converts ANSI-decorated text to HTML span runs.
36
+ *
37
+ * SGR sequences (`...m`) become styled spans; every other escape sequence
38
+ * is dropped. Newlines are preserved for `white-space: pre-wrap` layout.
39
+ *
40
+ * This function renders one line's worth of text and holds no cursor state,
41
+ * so carriage returns mean nothing at this layer and are stripped. Honouring
42
+ * a `\r` rewind belongs to the caller that owns the transcript (see
43
+ * `ArgusTerminal.output_write`), which alone knows what the current line is.
44
+ *
45
+ * @param text - The ANSI-decorated text.
46
+ * @returns HTML markup safe to insert into the transcript.
47
+ */
48
+ export declare function ansi_toHtml(text: string): string;
@@ -0,0 +1,241 @@
1
+ /**
2
+ * @file ANSI SGR to HTML conversion, for any surface that shows the
3
+ * session's text in a browser.
4
+ *
5
+ * The engine's rendered stream is ANSI-colored text (chalk emits 16-color,
6
+ * 256-color, and truecolor SGR sequences). The ARGUS console renders that
7
+ * stream as HTML, in the prototype's styled-transcript tradition, and the
8
+ * porter's greeter renders a daemon's boot rows the same way, so this
9
+ * module converts SGR runs into `<span style>` runs. Non-SGR escape
10
+ * sequences (cursor movement, erasures) are dropped: the transcript is a
11
+ * document, not a screen buffer, so positioning has no meaning here. All
12
+ * text content is entity-escaped before markup is added.
13
+ *
14
+ * It lives in the wire package, beside the brain, because a browser has to
15
+ * load it and it touches nothing but strings.
16
+ *
17
+ * @module
18
+ */
19
+ /** The 16 base ANSI colors, warmed slightly toward the LCARS palette. */
20
+ const BASE_COLORS = [
21
+ '#000000', '#f24444', '#33cc66', '#ffaa44',
22
+ '#5599ff', '#cc88ff', '#44cccc', '#ffeecc',
23
+ '#777777', '#ff6666', '#66ee99', '#ffcc66',
24
+ '#77bbff', '#dd99ff', '#66dddd', '#ffffff',
25
+ ];
26
+ /**
27
+ * The console's palette by chalk name: what `ls` paints a directory, a
28
+ * file, a link, a plugin and a pipeline with, read from the same table the
29
+ * console renders SGR codes through.
30
+ */
31
+ export const CONSOLE_PALETTE = {
32
+ yellow: BASE_COLORS[3],
33
+ white: BASE_COLORS[7],
34
+ cyan: BASE_COLORS[6],
35
+ green: BASE_COLORS[2],
36
+ magenta: BASE_COLORS[5],
37
+ };
38
+ /** A fresh, attribute-free state. */
39
+ function state_initial() {
40
+ return { fg: null, bg: null, bold: false, dim: false, italic: false, inverse: false, underline: false };
41
+ }
42
+ /**
43
+ * Resolves one xterm 256-palette index to its hex color.
44
+ *
45
+ * @param index - The palette index (0-255).
46
+ * @returns The `#rrggbb` color.
47
+ */
48
+ function color256_resolve(index) {
49
+ if (index < 16) {
50
+ return BASE_COLORS[index] ?? '#ffeecc';
51
+ }
52
+ if (index < 232) {
53
+ const cube = index - 16;
54
+ const steps = [0, 95, 135, 175, 215, 255];
55
+ const r = steps[Math.floor(cube / 36) % 6] ?? 0;
56
+ const g = steps[Math.floor(cube / 6) % 6] ?? 0;
57
+ const b = steps[cube % 6] ?? 0;
58
+ return `#${((r << 16) | (g << 8) | b).toString(16).padStart(6, '0')}`;
59
+ }
60
+ const gray = 8 + (index - 232) * 10;
61
+ return `#${((gray << 16) | (gray << 8) | gray).toString(16).padStart(6, '0')}`;
62
+ }
63
+ /**
64
+ * Applies one SGR parameter sequence to a display state.
65
+ *
66
+ * @param state - The state to mutate.
67
+ * @param params - The numeric SGR parameters.
68
+ */
69
+ function sgr_apply(state, params) {
70
+ for (let index = 0; index < params.length; index++) {
71
+ const code = params[index] ?? 0;
72
+ if (code === 0) {
73
+ Object.assign(state, state_initial());
74
+ }
75
+ else if (code === 1) {
76
+ state.bold = true;
77
+ }
78
+ else if (code === 2) {
79
+ state.dim = true;
80
+ }
81
+ else if (code === 3) {
82
+ state.italic = true;
83
+ }
84
+ else if (code === 4) {
85
+ state.underline = true;
86
+ }
87
+ else if (code === 7) {
88
+ state.inverse = true;
89
+ }
90
+ else if (code === 27) {
91
+ state.inverse = false;
92
+ }
93
+ else if (code === 22) {
94
+ state.bold = false;
95
+ state.dim = false;
96
+ }
97
+ else if (code === 23) {
98
+ state.italic = false;
99
+ }
100
+ else if (code === 24) {
101
+ state.underline = false;
102
+ }
103
+ else if (code >= 30 && code <= 37) {
104
+ state.fg = BASE_COLORS[code - 30] ?? null;
105
+ }
106
+ else if (code >= 90 && code <= 97) {
107
+ state.fg = BASE_COLORS[code - 90 + 8] ?? null;
108
+ }
109
+ else if (code === 39) {
110
+ state.fg = null;
111
+ }
112
+ else if (code >= 40 && code <= 47) {
113
+ state.bg = BASE_COLORS[code - 40] ?? null;
114
+ }
115
+ else if (code >= 100 && code <= 107) {
116
+ state.bg = BASE_COLORS[code - 100 + 8] ?? null;
117
+ }
118
+ else if (code === 49) {
119
+ state.bg = null;
120
+ }
121
+ else if (code === 38 || code === 48) {
122
+ const mode = params[index + 1] ?? 0;
123
+ let color = null;
124
+ if (mode === 5) {
125
+ color = color256_resolve(params[index + 2] ?? 0);
126
+ index += 2;
127
+ }
128
+ else if (mode === 2) {
129
+ const r = params[index + 2] ?? 0;
130
+ const g = params[index + 3] ?? 0;
131
+ const b = params[index + 4] ?? 0;
132
+ color = `#${((r << 16) | (g << 8) | b).toString(16).padStart(6, '0')}`;
133
+ index += 4;
134
+ }
135
+ if (code === 38) {
136
+ state.fg = color;
137
+ }
138
+ else {
139
+ state.bg = color;
140
+ }
141
+ }
142
+ }
143
+ }
144
+ /**
145
+ * Renders one state as a CSS style attribute value.
146
+ *
147
+ * @param state - The display state.
148
+ * @returns The style string; empty when the state carries no attributes.
149
+ */
150
+ function state_toStyle(state) {
151
+ const rules = [];
152
+ // Inverse swaps the roles; the screen's defaults stand in for unset sides
153
+ // (daybreak text on the black glass).
154
+ const fg = state.inverse ? (state.bg ?? '#000') : state.fg;
155
+ const bg = state.inverse ? (state.fg ?? 'var(--daybreak)') : state.bg;
156
+ if (fg !== null) {
157
+ rules.push(`color:${fg}`);
158
+ }
159
+ if (bg !== null) {
160
+ rules.push(`background-color:${bg}`);
161
+ }
162
+ if (state.bold) {
163
+ rules.push('font-weight:bold');
164
+ }
165
+ if (state.dim) {
166
+ rules.push('opacity:0.55');
167
+ }
168
+ if (state.italic) {
169
+ rules.push('font-style:italic');
170
+ }
171
+ if (state.underline) {
172
+ rules.push('text-decoration:underline');
173
+ }
174
+ return rules.join(';');
175
+ }
176
+ /**
177
+ * Escapes text for safe HTML interpolation.
178
+ *
179
+ * @param text - The raw text.
180
+ * @returns The entity-escaped text.
181
+ */
182
+ export function html_escape(text) {
183
+ return text
184
+ .replace(/&/g, '&amp;')
185
+ .replace(/</g, '&lt;')
186
+ .replace(/>/g, '&gt;');
187
+ }
188
+ /**
189
+ * Matches one ANSI escape sequence (CSI, OSC, or lone ESC forms).
190
+ *
191
+ * The CSI branch follows ECMA-48: parameter bytes `0x30-0x3F` (digits and
192
+ * `;:?<=>`), optional intermediate bytes `0x20-0x2F`, one final byte
193
+ * `0x40-0x7E`. The private-parameter forms matter here because a spinner
194
+ * brackets its frames with `\x1b[?25l`/`\x1b[?25h`; a pattern accepting only
195
+ * `[0-9;:]` fails to match those and spills `[?25l` into the transcript as
196
+ * literal text.
197
+ */
198
+ const ANSI_PATTERN = /\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b]*(?:\x07|\x1b\\)|[@-Z\\-_])/g;
199
+ /**
200
+ * Converts ANSI-decorated text to HTML span runs.
201
+ *
202
+ * SGR sequences (`...m`) become styled spans; every other escape sequence
203
+ * is dropped. Newlines are preserved for `white-space: pre-wrap` layout.
204
+ *
205
+ * This function renders one line's worth of text and holds no cursor state,
206
+ * so carriage returns mean nothing at this layer and are stripped. Honouring
207
+ * a `\r` rewind belongs to the caller that owns the transcript (see
208
+ * `ArgusTerminal.output_write`), which alone knows what the current line is.
209
+ *
210
+ * @param text - The ANSI-decorated text.
211
+ * @returns HTML markup safe to insert into the transcript.
212
+ */
213
+ export function ansi_toHtml(text) {
214
+ const state = state_initial();
215
+ let html = '';
216
+ let lastIndex = 0;
217
+ const emit = (chunk) => {
218
+ if (chunk.length === 0) {
219
+ return;
220
+ }
221
+ const style = state_toStyle(state);
222
+ const escaped = html_escape(chunk.replace(/\r/g, ''));
223
+ html += style.length > 0 ? `<span style="${style}">${escaped}</span>` : escaped;
224
+ };
225
+ ANSI_PATTERN.lastIndex = 0;
226
+ let match = ANSI_PATTERN.exec(text);
227
+ while (match !== null) {
228
+ emit(text.slice(lastIndex, match.index));
229
+ lastIndex = match.index + match[0].length;
230
+ if (match[2] === 'm') {
231
+ const params = (match[1] ?? '')
232
+ .split(/[;:]/)
233
+ .map((part) => (part.length > 0 ? Number(part) : 0));
234
+ sgr_apply(state, params);
235
+ }
236
+ match = ANSI_PATTERN.exec(text);
237
+ }
238
+ emit(text.slice(lastIndex));
239
+ return html;
240
+ }
241
+ //# sourceMappingURL=ansi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ansi.js","sourceRoot":"","sources":["../../src/ansi/ansi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,yEAAyE;AACzE,MAAM,WAAW,GAAa;IAC5B,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;IAC1C,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;IAC1C,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;IAC1C,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;CAC3C,CAAC;AAKF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA4C;IACtE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAW;IAChC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAW;IAC/B,IAAI,EAAE,WAAW,CAAC,CAAC,CAAW;IAC9B,KAAK,EAAE,WAAW,CAAC,CAAC,CAAW;IAC/B,OAAO,EAAE,WAAW,CAAC,CAAC,CAAW;CAClC,CAAC;AAaF,qCAAqC;AACrC,SAAS,aAAa;IACpB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC1G,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,KAAa;IACrC,IAAI,KAAK,GAAG,EAAE,EAAE,CAAC;QACf,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;IACzC,CAAC;IACD,IAAI,KAAK,GAAG,GAAG,EAAE,CAAC;QAChB,MAAM,IAAI,GAA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C,SAAS,GAAG,CAAC,CAAC;IAC3B,IAAI,KAAK,GAA2B,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D,OAAO,KAAK,KAAK,IAAI,EAAE,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,SAAS,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1C,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YACrB,MAAM,MAAM,GAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;iBACtC,KAAK,CAAC,MAAM,CAAC;iBACb,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvE,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC3B,CAAC;QACD,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC"}
package/dist/dag.d.ts CHANGED
@@ -703,3 +703,150 @@ export type FeedListEntry = z.infer<typeof feedListEntrySchema>;
703
703
  export type FeedListModel = z.infer<typeof feedListModelSchema>;
704
704
  /** The chooser model's envelope kind. */
705
705
  export declare const FEED_LIST_MODEL_KIND: "feed.list";
706
+ /**
707
+ * The space of everything run here: every feed the index holds, as it
708
+ * landed — its size, its status, and the shape of its pipeline. A surface
709
+ * draws it as a tree, branches by pipeline shape, feeds as leaves.
710
+ */
711
+ export declare const procJobGroupSchema: z.ZodObject<{
712
+ plugin: z.ZodString;
713
+ count: z.ZodNumber;
714
+ status: z.ZodString;
715
+ parent: z.ZodNullable<z.ZodNumber>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ status: string;
718
+ count: number;
719
+ plugin: string;
720
+ parent: number | null;
721
+ }, {
722
+ status: string;
723
+ count: number;
724
+ plugin: string;
725
+ parent: number | null;
726
+ }>;
727
+ export declare const procUniverseFeedSchema: z.ZodObject<{
728
+ id: z.ZodNumber;
729
+ jobs: z.ZodNumber;
730
+ status: z.ZodString;
731
+ chain: z.ZodArray<z.ZodString, "many">;
732
+ /** The feed's jobs collapsed by plugin per place in the pipeline: its shape, with counts. */
733
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
734
+ plugin: z.ZodString;
735
+ count: z.ZodNumber;
736
+ status: z.ZodString;
737
+ parent: z.ZodNullable<z.ZodNumber>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ status: string;
740
+ count: number;
741
+ plugin: string;
742
+ parent: number | null;
743
+ }, {
744
+ status: string;
745
+ count: number;
746
+ plugin: string;
747
+ parent: number | null;
748
+ }>, "many">>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ id: number;
751
+ status: string;
752
+ jobs: number;
753
+ chain: string[];
754
+ groups: {
755
+ status: string;
756
+ count: number;
757
+ plugin: string;
758
+ parent: number | null;
759
+ }[];
760
+ }, {
761
+ id: number;
762
+ status: string;
763
+ jobs: number;
764
+ chain: string[];
765
+ groups?: {
766
+ status: string;
767
+ count: number;
768
+ plugin: string;
769
+ parent: number | null;
770
+ }[] | undefined;
771
+ }>;
772
+ export declare const procUniverseModelSchema: z.ZodObject<{
773
+ feeds: z.ZodArray<z.ZodObject<{
774
+ id: z.ZodNumber;
775
+ jobs: z.ZodNumber;
776
+ status: z.ZodString;
777
+ chain: z.ZodArray<z.ZodString, "many">;
778
+ /** The feed's jobs collapsed by plugin per place in the pipeline: its shape, with counts. */
779
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
780
+ plugin: z.ZodString;
781
+ count: z.ZodNumber;
782
+ status: z.ZodString;
783
+ parent: z.ZodNullable<z.ZodNumber>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ status: string;
786
+ count: number;
787
+ plugin: string;
788
+ parent: number | null;
789
+ }, {
790
+ status: string;
791
+ count: number;
792
+ plugin: string;
793
+ parent: number | null;
794
+ }>, "many">>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ id: number;
797
+ status: string;
798
+ jobs: number;
799
+ chain: string[];
800
+ groups: {
801
+ status: string;
802
+ count: number;
803
+ plugin: string;
804
+ parent: number | null;
805
+ }[];
806
+ }, {
807
+ id: number;
808
+ status: string;
809
+ jobs: number;
810
+ chain: string[];
811
+ groups?: {
812
+ status: string;
813
+ count: number;
814
+ plugin: string;
815
+ parent: number | null;
816
+ }[] | undefined;
817
+ }>, "many">;
818
+ /** Whether the index is whole; false while it still warms. */
819
+ whole: z.ZodBoolean;
820
+ }, "strip", z.ZodTypeAny, {
821
+ feeds: {
822
+ id: number;
823
+ status: string;
824
+ jobs: number;
825
+ chain: string[];
826
+ groups: {
827
+ status: string;
828
+ count: number;
829
+ plugin: string;
830
+ parent: number | null;
831
+ }[];
832
+ }[];
833
+ whole: boolean;
834
+ }, {
835
+ feeds: {
836
+ id: number;
837
+ status: string;
838
+ jobs: number;
839
+ chain: string[];
840
+ groups?: {
841
+ status: string;
842
+ count: number;
843
+ plugin: string;
844
+ parent: number | null;
845
+ }[] | undefined;
846
+ }[];
847
+ whole: boolean;
848
+ }>;
849
+ export type ProcJobGroup = z.infer<typeof procJobGroupSchema>;
850
+ export type ProcUniverseFeed = z.infer<typeof procUniverseFeedSchema>;
851
+ export type ProcUniverseModel = z.infer<typeof procUniverseModelSchema>;
852
+ export declare const PROC_UNIVERSE_MODEL_KIND: "proc.universe";
package/dist/dag.js CHANGED
@@ -164,4 +164,29 @@ export const feedListModelSchema = z.object({
164
164
  });
165
165
  /** The chooser model's envelope kind. */
166
166
  export const FEED_LIST_MODEL_KIND = 'feed.list';
167
+ /**
168
+ * The space of everything run here: every feed the index holds, as it
169
+ * landed — its size, its status, and the shape of its pipeline. A surface
170
+ * draws it as a tree, branches by pipeline shape, feeds as leaves.
171
+ */
172
+ export const procJobGroupSchema = z.object({
173
+ plugin: z.string(),
174
+ count: z.number(),
175
+ status: z.string(),
176
+ parent: z.number().nullable(),
177
+ });
178
+ export const procUniverseFeedSchema = z.object({
179
+ id: z.number(),
180
+ jobs: z.number(),
181
+ status: z.string(),
182
+ chain: z.array(z.string()),
183
+ /** The feed's jobs collapsed by plugin per place in the pipeline: its shape, with counts. */
184
+ groups: z.array(procJobGroupSchema).default([]),
185
+ });
186
+ export const procUniverseModelSchema = z.object({
187
+ feeds: z.array(procUniverseFeedSchema),
188
+ /** Whether the index is whole; false while it still warms. */
189
+ whole: z.boolean(),
190
+ });
191
+ export const PROC_UNIVERSE_MODEL_KIND = 'proc.universe';
167
192
  //# sourceMappingURL=dag.js.map
package/dist/dag.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dag.js","sourceRoot":"","sources":["../src/dag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,OAAO,EAA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;CACnB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAwB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -9,14 +9,14 @@
9
9
  *
10
10
  * @module
11
11
  */
12
- export { PROC_PROMPT_STATES, procPromptState_get, type ProcPromptState, type ProcPromptProgress, type ProcFeedPromptProgress, } from './proc.js';
12
+ export { PROC_PROMPT_STATES, procPromptState_get, type ProcPromptState, type ProcPromptProgress, type ProcFeedPromptProgress, type ProcLandedPromptFeed, type ProcPromptJobGroup, } from './proc.js';
13
13
  export { PROGRESS_OPERATIONS, PROGRESS_KINDS, PROGRESS_PHASES, PROGRESS_UNITS, PROGRESS_STATUSES, type ProgressOperation, type ProgressKind, type ProgressPhase, type ProgressUnit, type ProgressStatus, } from './progress.js';
14
14
  export { CONTRACT_VERSION, version_isCompatible } from './version.js';
15
15
  export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, type WireEnvelope, type CommandEnvelope, type EnvelopeStatus, type EnvelopeModel, type StackMessage, type ResolutionTrace, } from './envelope.js';
16
- export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptKindSchema, promptPathSchema, promptKind_of, PROMPT_KINDS, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, type LaneTelemetry, type CubeTelemetry, type JobsStateTelemetry, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, SERVER_MESSAGE_TYPES, type WatchState, type WatchedMessage, type AmbientEvent, type ClientMessage, type ServerMessage, type ProgressMessage, type ProgressEvent, type PromptContext, type PromptKind, type PromptPath, type PromptMessage, type Regard, type FileDeliverRequest, type FileDeliverResult, } from './messages.js';
16
+ export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptKindSchema, promptPathSchema, promptKind_of, PROMPT_KINDS, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, type LaneTelemetry, type CubeTelemetry, type JobsStateTelemetry, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, numberedMessageSchema, SERVER_MESSAGE_TYPES, type WatchState, type WatchedMessage, type NumberedMessage, type AmbientEvent, type ClientMessage, type ServerMessage, type ProgressMessage, type ProgressEvent, type PromptContext, type PromptKind, type PromptPath, type PromptMessage, type Regard, type FileDeliverRequest, type FileDeliverResult, } from './messages.js';
17
17
  export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, type ParseResult, } from './validate.js';
18
18
  export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipelineDiagramModelSchema, DAG_NODE_STATUSES, dagNodeStatusSchema, dagNodeMetricsSchema, feedDagNodeSchema, feedDagModelSchema, feedIndexingModelSchema, DAG_MODEL_KINDS, type DagNodeCore, type PipelineDiagramNode, type PipelineDiagramModel, type DagNodeStatus, type DagNodeMetrics, type FeedDagNode, type DagNodeTally, type FeedDagModel, type FeedIndexingModel, } from './dag.js';
19
- export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, type FeedListEntry, type FeedListModel, } from './dag.js';
19
+ export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, type FeedListEntry, type FeedListModel, procJobGroupSchema, procUniverseFeedSchema, procUniverseModelSchema, PROC_UNIVERSE_MODEL_KIND, type ProcJobGroup, type ProcUniverseFeed, type ProcUniverseModel, } from './dag.js';
20
20
  export { pluginParameterSchema, pluginInfoModelSchema, PLUGIN_INFO_MODEL_KIND, type PluginParameter, type PluginInfoModel, } from './plugin.js';
21
- export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, type PacsSeries, type PacsStudy, type PacsProvenance, type PacsPatient, type PacsPatientStatus, type PacsQueryModel, type PacsServer, type PacsServersModel, } from './pacs.js';
21
+ export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, patientAddress_of, type PacsSeries, type PacsStudy, type PacsProvenance, type PacsPatient, type PacsPatientStatus, type PacsQueryModel, type PacsServer, type PacsServersModel, } from './pacs.js';
22
22
  export { DICOM_TAG_GROUPS, dicomTagGroupSchema, dicomTagSchema, dicomVaryingTagSchema, dicomTagsModelSchema, dicomGeometrySchema, dicomSeriesModelSchema, imageViewModelSchema, DICOM_MODEL_KINDS, IMAGE_MODEL_KINDS, type DicomTag, type DicomTagGroup, type DicomVaryingTag, type DicomTagsModel, type DicomGeometry, type DicomSeriesModel, type ImageViewModel, } from './dicom.js';
package/dist/index.js CHANGED
@@ -13,11 +13,11 @@ export { PROC_PROMPT_STATES, procPromptState_get, } from './proc.js';
13
13
  export { PROGRESS_OPERATIONS, PROGRESS_KINDS, PROGRESS_PHASES, PROGRESS_UNITS, PROGRESS_STATUSES, } from './progress.js';
14
14
  export { CONTRACT_VERSION, version_isCompatible } from './version.js';
15
15
  export { commandEnvelopeSchema, envelopeModelSchema, envelopeStatusSchema, stackMessageSchema, resolutionTraceSchema, } from './envelope.js';
16
- export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptKindSchema, promptPathSchema, promptKind_of, PROMPT_KINDS, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, SERVER_MESSAGE_TYPES, } from './messages.js';
16
+ export { channelSchema, surfaceCapabilitiesMessageSchema, attachMessageSchema, executeMessageSchema, cancelMessageSchema, completeRequestSchema, promptAnswerMessageSchema, promptErrorMessageSchema, pipeResultMessageSchema, pipeErrorMessageSchema, shellResultMessageSchema, shellErrorMessageSchema, editResultMessageSchema, editErrorMessageSchema, deliverResultMessageSchema, deliverErrorMessageSchema, clientMessageSchema, attachedMessageSchema, resultMessageSchema, completeReplySchema, outputMessageSchema, progressOperationSchema, progressKindSchema, progressPhaseSchema, progressUnitSchema, progressStatusSchema, progressMessageSchema, sessionMessageSchema, errorMessageSchema, promptMessageSchema, promptKindSchema, promptPathSchema, promptKind_of, PROMPT_KINDS, promptContextSchema, promptLineMessageSchema, pipeMessageSchema, shellMessageSchema, editMessageSchema, deliverMessageSchema, serverMessageSchema, telemetryMessageSchema, regardSchema, regardMessageSchema, watchMessageSchema, unwatchMessageSchema, WATCH_STATES, watchStateSchema, watchedMessageSchema, numberedMessageSchema, SERVER_MESSAGE_TYPES, } from './messages.js';
17
17
  export { clientMessage_parse, serverMessage_parse, clientMessage_fromJson, attach_parse, } from './validate.js';
18
18
  export { dagNodeCoreSchema, dagArgumentSchema, pipelineDiagramNodeSchema, pipelineDiagramModelSchema, DAG_NODE_STATUSES, dagNodeStatusSchema, dagNodeMetricsSchema, feedDagNodeSchema, feedDagModelSchema, feedIndexingModelSchema, DAG_MODEL_KINDS, } from './dag.js';
19
- export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, } from './dag.js';
19
+ export { feedListEntrySchema, feedListModelSchema, FEED_LIST_MODEL_KIND, procJobGroupSchema, procUniverseFeedSchema, procUniverseModelSchema, PROC_UNIVERSE_MODEL_KIND, } from './dag.js';
20
20
  export { pluginParameterSchema, pluginInfoModelSchema, PLUGIN_INFO_MODEL_KIND, } from './plugin.js';
21
- export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, } from './pacs.js';
21
+ export { pacsProvenanceSchema, pacsPatientSchema, pacsPatientStatusSchema, PACS_PATIENT_STATUSES, pacsSeriesSchema, pacsStudySchema, pacsQueryModelSchema, pacsServerSchema, pacsServersModelSchema, PACS_QUERY_MODEL_KIND, PACS_SERVERS_MODEL_KIND, patientAddress_of, } from './pacs.js';
22
22
  export { DICOM_TAG_GROUPS, dicomTagGroupSchema, dicomTagSchema, dicomVaryingTagSchema, dicomTagsModelSchema, dicomGeometrySchema, dicomSeriesModelSchema, imageViewModelSchema, DICOM_MODEL_KINDS, IMAGE_MODEL_KINDS, } from './dicom.js';
23
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAIpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,GAMlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,GAOtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EAItB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GAerB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,GAEb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,GAUhB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GAGrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GASxB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAQlB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GAMpB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,mBAAmB,EACnB,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EAClB,uBAAuB,EACvB,eAAe,GAUhB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EAGpB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,GAIzB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,GASlB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAQlB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Renders the ASCII logo as an array of lines.
3
+ *
4
+ * @param colorize - Whether to apply color.
5
+ * @param reverse - Whether to reverse the gradient.
6
+ * @returns The rendered logo lines.
7
+ */
8
+ export declare function logo_linesRender(colorize: boolean, reverse?: boolean): string[];
9
+ /**
10
+ * Renders a single frame of the brain activity animation, where the core brain
11
+ * structure retains its original hue'd color gradient, and only the inner spaces
12
+ * (stylized nodes) pulse, grow, and fade physically as spatial blooms.
13
+ *
14
+ * @param frameIndex - The index of the animation frame.
15
+ * @param isStaticEndState - If true, renders the final steady state where holes are blank.
16
+ * @returns Array of rendered lines with color codes.
17
+ */
18
+ export declare function logo_frameRender(frameIndex: number, isStaticEndState?: boolean): string[];
19
+ /**
20
+ * The number of terminal rows one rendered frame occupies.
21
+ *
22
+ * @returns The frame height in rows.
23
+ */
24
+ export declare function logoRows_count(): number;
25
+ /**
26
+ * The number of terminal columns the widest rendered line occupies,
27
+ * including the two-column indent every frame line carries.
28
+ *
29
+ * @returns The frame width in columns.
30
+ */
31
+ export declare function logoColumns_count(): number;