@rcrsr/claude-code-runner 0.11.0 → 0.12.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/README.md +2 -2
- package/dist/index.js +0 -0
- package/dist/output/colors.d.ts +3 -2
- package/dist/output/colors.d.ts.map +1 -1
- package/dist/output/colors.js +19 -21
- package/dist/output/colors.js.map +1 -1
- package/dist/output/formatter.d.ts.map +1 -1
- package/dist/output/formatter.js +7 -6
- package/dist/output/formatter.js.map +1 -1
- package/dist/output/stats.d.ts +1 -1
- package/dist/output/stats.d.ts.map +1 -1
- package/dist/output/stats.js +3 -16
- package/dist/output/stats.js.map +1 -1
- package/package.json +4 -4
- package/dist/core/index.d.ts +0 -2
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -2
- package/dist/core/index.js.map +0 -1
- package/dist/core/runner.d.ts +0 -22
- package/dist/core/runner.d.ts.map +0 -1
- package/dist/core/runner.js +0 -100
- package/dist/core/runner.js.map +0 -1
- package/dist/output/ui-components.d.ts +0 -34
- package/dist/output/ui-components.d.ts.map +0 -1
- package/dist/output/ui-components.js +0 -158
- package/dist/output/ui-components.js.map +0 -1
- package/dist/output/ui-renderer.d.ts +0 -18
- package/dist/output/ui-renderer.d.ts.map +0 -1
- package/dist/output/ui-renderer.js +0 -75
- package/dist/output/ui-renderer.js.map +0 -1
- package/dist/output/ui-state.d.ts +0 -71
- package/dist/output/ui-state.d.ts.map +0 -1
- package/dist/output/ui-state.js +0 -131
- package/dist/output/ui-state.js.map +0 -1
- package/dist/parsers/signals.d.ts +0 -10
- package/dist/parsers/signals.d.ts.map +0 -1
- package/dist/parsers/signals.js +0 -21
- package/dist/parsers/signals.js.map +0 -1
- package/dist/script/index.d.ts +0 -8
- package/dist/script/index.d.ts.map +0 -1
- package/dist/script/index.js +0 -10
- package/dist/script/index.js.map +0 -1
- package/dist/script/loader.d.ts +0 -13
- package/dist/script/loader.d.ts.map +0 -1
- package/dist/script/loader.js +0 -66
- package/dist/script/loader.js.map +0 -1
- package/dist/script/parser.d.ts +0 -63
- package/dist/script/parser.d.ts.map +0 -1
- package/dist/script/parser.js +0 -349
- package/dist/script/parser.js.map +0 -1
- package/dist/script/types.d.ts +0 -49
- package/dist/script/types.d.ts.map +0 -1
- package/dist/script/types.js +0 -5
- package/dist/script/types.js.map +0 -1
- package/dist/script/variables.d.ts +0 -27
- package/dist/script/variables.d.ts.map +0 -1
- package/dist/script/variables.js +0 -74
- package/dist/script/variables.js.map +0 -1
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UI component formatting functions for parallel agent display
|
|
3
|
-
*/
|
|
4
|
-
import { UI_MAX_VISIBLE_LOG, UI_MAX_VISIBLE_TOOLS, UI_MIN_BOX_WIDTH, } from '../utils/constants.js';
|
|
5
|
-
import { colors } from './colors.js';
|
|
6
|
-
import { colorize, formatDuration, formatTimestamp, stripAnsi, truncate, } from './colors.js';
|
|
7
|
-
/**
|
|
8
|
-
* Spinner frames for loading animation
|
|
9
|
-
*/
|
|
10
|
-
const SPINNER_FRAMES = [
|
|
11
|
-
'⠋',
|
|
12
|
-
'⠙',
|
|
13
|
-
'⠹',
|
|
14
|
-
'⠸',
|
|
15
|
-
'⠼',
|
|
16
|
-
'⠴',
|
|
17
|
-
'⠦',
|
|
18
|
-
'⠧',
|
|
19
|
-
'⠇',
|
|
20
|
-
'⠏',
|
|
21
|
-
];
|
|
22
|
-
/**
|
|
23
|
-
* Format single log entry with colors
|
|
24
|
-
* Timestamp: dim HH:MM:SS.mmm
|
|
25
|
-
* Agent name: yellow
|
|
26
|
-
* Agent label: magenta
|
|
27
|
-
* Tool names: blue
|
|
28
|
-
* Completion stats: green duration and count
|
|
29
|
-
*/
|
|
30
|
-
export function formatLogEntry(entry) {
|
|
31
|
-
const timestamp = colorize(formatTimestamp(entry.timestamp), 'dim');
|
|
32
|
-
const agentName = colorize(entry.agentName, 'yellow');
|
|
33
|
-
const label = colorize(`[${entry.agentLabel}]`, 'magenta');
|
|
34
|
-
switch (entry.type) {
|
|
35
|
-
case 'invocation': {
|
|
36
|
-
return `${timestamp} ${label} ${agentName} ${entry.content}`;
|
|
37
|
-
}
|
|
38
|
-
case 'tool': {
|
|
39
|
-
// Extract tool name and args from content format: "toolName(args)"
|
|
40
|
-
const regex = /^([^(]+)\((.*)\)$/;
|
|
41
|
-
const match = regex.exec(entry.content);
|
|
42
|
-
const toolNamePart = match?.[1];
|
|
43
|
-
const argsPart = match?.[2];
|
|
44
|
-
if (toolNamePart !== undefined && argsPart !== undefined) {
|
|
45
|
-
const toolName = colorize(toolNamePart, 'blue');
|
|
46
|
-
return `${timestamp} ${label} ${agentName} ${toolName}(${argsPart})`;
|
|
47
|
-
}
|
|
48
|
-
// Fallback if content doesn't match expected format
|
|
49
|
-
return `${timestamp} ${label} ${agentName} ${entry.content}`;
|
|
50
|
-
}
|
|
51
|
-
case 'completion': {
|
|
52
|
-
const duration = entry.duration !== undefined
|
|
53
|
-
? colorize(formatDuration(entry.duration), 'green')
|
|
54
|
-
: '';
|
|
55
|
-
const messageCount = entry.messageCount !== undefined
|
|
56
|
-
? colorize(`${entry.messageCount} msgs`, 'green')
|
|
57
|
-
: '';
|
|
58
|
-
const stats = [duration, messageCount].filter(Boolean).join(' ');
|
|
59
|
-
return `${timestamp} ${label} ${agentName} ${entry.content}${stats ? ` ${stats}` : ''}`;
|
|
60
|
-
}
|
|
61
|
-
default: {
|
|
62
|
-
// Exhaustiveness check - should never reach here
|
|
63
|
-
entry.type;
|
|
64
|
-
return `${timestamp} ${label} ${agentName} ${entry.content}`;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Generate ANSI-formatted lines for consolidated timeline
|
|
70
|
-
* Shows max 10 entries during execution, all entries when complete
|
|
71
|
-
*
|
|
72
|
-
* @param entries - Log entries sorted chronologically
|
|
73
|
-
* @param allComplete - Whether all agents have completed
|
|
74
|
-
* @returns Array of formatted lines including header and entries
|
|
75
|
-
*/
|
|
76
|
-
export function renderMainLog(entries, allComplete) {
|
|
77
|
-
const lines = [];
|
|
78
|
-
// Generate header with centered "main log" and optional spinner
|
|
79
|
-
const headerText = 'main log';
|
|
80
|
-
const spinner = allComplete ? '' : SPINNER_FRAMES[0];
|
|
81
|
-
const header = spinner ? `${spinner} ${headerText}` : headerText;
|
|
82
|
-
lines.push(header);
|
|
83
|
-
// Determine which entries to show based on completion status
|
|
84
|
-
const visibleEntries = allComplete
|
|
85
|
-
? entries
|
|
86
|
-
: entries.slice(-UI_MAX_VISIBLE_LOG);
|
|
87
|
-
// Format and add each visible entry
|
|
88
|
-
for (const entry of visibleEntries) {
|
|
89
|
-
lines.push(formatLogEntry(entry));
|
|
90
|
-
}
|
|
91
|
-
return lines;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Generate ANSI-formatted lines for single agent box
|
|
95
|
-
* Width adapts to terminal width, max 70 characters
|
|
96
|
-
* Single-line border style using box-drawing characters
|
|
97
|
-
*
|
|
98
|
-
* @param agent - Agent state with name, label, description, tool calls
|
|
99
|
-
* @param width - Box width in characters
|
|
100
|
-
* @returns Array of formatted lines representing the box
|
|
101
|
-
* @throws {Error} if width < 30
|
|
102
|
-
*/
|
|
103
|
-
export function renderAgentBox(agent, width) {
|
|
104
|
-
// EC-9: Validate minimum width
|
|
105
|
-
if (width < UI_MIN_BOX_WIDTH) {
|
|
106
|
-
throw new Error(`Box width ${width} below minimum 30`);
|
|
107
|
-
}
|
|
108
|
-
const lines = [];
|
|
109
|
-
const contentWidth = width - 4; // Account for border characters and padding
|
|
110
|
-
// Header: yellow name, magenta label, description
|
|
111
|
-
const nameText = colorize(agent.name, 'yellow');
|
|
112
|
-
const labelText = colorize(`[${agent.label}]`, 'magenta');
|
|
113
|
-
// Calculate plain text lengths for layout
|
|
114
|
-
const nameLen = agent.name.length;
|
|
115
|
-
const labelLen = agent.label.length + 2; // brackets add 2 chars
|
|
116
|
-
const prefixLen = nameLen + 1 + labelLen + 1; // name + space + label + space
|
|
117
|
-
// Truncate description if needed (truncate adds '...' so subtract 3 from available space)
|
|
118
|
-
const descMaxLen = contentWidth - prefixLen;
|
|
119
|
-
const truncatedDesc = agent.description.length > descMaxLen
|
|
120
|
-
? truncate(agent.description, descMaxLen - 3)
|
|
121
|
-
: agent.description;
|
|
122
|
-
const headerContent = `${nameText} ${labelText} ${truncatedDesc}`;
|
|
123
|
-
// Top border
|
|
124
|
-
lines.push(`┌${'─'.repeat(width - 2)}┐`);
|
|
125
|
-
// Header line - calculate padding based on actual plain-text length
|
|
126
|
-
const headerPlainLength = stripAnsi(headerContent).length;
|
|
127
|
-
lines.push(`│ ${headerContent}${' '.repeat(Math.max(0, contentWidth - headerPlainLength))} │`);
|
|
128
|
-
// Body: 5 tool call lines or ellipsis
|
|
129
|
-
if (agent.toolCalls.length === 0) {
|
|
130
|
-
// AC-14: Empty tool call list shows ellipsis
|
|
131
|
-
lines.push(`│ ${colors.dim}...${colors.reset}${' '.repeat(contentWidth - 3)} │`);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
// Show last 5 tool calls
|
|
135
|
-
const visibleCalls = agent.toolCalls.slice(-UI_MAX_VISIBLE_TOOLS);
|
|
136
|
-
for (const call of visibleCalls) {
|
|
137
|
-
const toolText = colorize(call.toolName, 'blue');
|
|
138
|
-
const argsText = truncate(call.args, contentWidth - call.toolName.length - 2);
|
|
139
|
-
const lineContent = `${toolText}(${argsText})`;
|
|
140
|
-
const plainContent = `${call.toolName}(${argsText})`;
|
|
141
|
-
const padding = ' '.repeat(Math.max(0, contentWidth - plainContent.length));
|
|
142
|
-
lines.push(`│ ${lineContent}${padding} │`);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
// Footer: dim elapsed time, message count, spinner
|
|
146
|
-
const elapsed = Date.now() - agent.startTime;
|
|
147
|
-
const elapsedText = colorize(formatDuration(elapsed), 'dim');
|
|
148
|
-
const messageText = colorize(`${agent.messageCount} msgs`, 'dim');
|
|
149
|
-
const spinnerChar = agent.status === 'running' ? SPINNER_FRAMES[0] : '';
|
|
150
|
-
const footerContent = `${elapsedText} ${messageText} ${spinnerChar}`;
|
|
151
|
-
const footerPlain = `${formatDuration(elapsed)} ${agent.messageCount} msgs ${spinnerChar}`;
|
|
152
|
-
const footerPadding = ' '.repeat(Math.max(0, contentWidth - footerPlain.length));
|
|
153
|
-
lines.push(`│ ${footerContent}${footerPadding} │`);
|
|
154
|
-
// Bottom border
|
|
155
|
-
lines.push(`└${'─'.repeat(width - 2)}┘`);
|
|
156
|
-
return lines;
|
|
157
|
-
}
|
|
158
|
-
//# sourceMappingURL=ui-components.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-components.js","sourceRoot":"","sources":["../../src/output/ui-components.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,cAAc,EACd,eAAe,EACf,SAAS,EACT,QAAQ,GACT,MAAM,aAAa,CAAC;AAGrB;;GAEG;AACH,MAAM,cAAc,GAAG;IACrB,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACK,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,KAAe;IAC5C,MAAM,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,CAAC;IACpE,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,UAAU,GAAG,EA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C,SAAS,CAAC;IAC7C,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,OAAO,EAAE,KAAK,CAAC,CAAC;IAClE,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE,MAAM,aAAa,GAAG,GAAG,WAAW,IAAI,WAAW,IAAI,WAAW,EAAE,CAAC;IACrE,MAAM,WAAW,GAAG,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,YAAY,SAAS,WAAW,EAAE,CAAC;IAC3F,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAC9B,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,CAC/C,CAAC;IAEF,KAAK,CAAC,IAAI,CAAC,KAAK,aAAa,GAAG,aAAa,IAAI,CAAC,CAAC;IAEnD,gBAAgB;IAChB,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAEzC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UI renderer for parallel agent display
|
|
3
|
-
* Manages 60fps render loop with terminal clear/redraw
|
|
4
|
-
*/
|
|
5
|
-
import type { UIState } from './ui-state.js';
|
|
6
|
-
export interface UIRenderer {
|
|
7
|
-
start(): void;
|
|
8
|
-
stop(): void;
|
|
9
|
-
render(): void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Create a UI renderer with 60fps render loop
|
|
13
|
-
* @param state - UI state to render
|
|
14
|
-
* @returns UIRenderer interface
|
|
15
|
-
* @throws {Error} EC-8: Terminal width < 70
|
|
16
|
-
*/
|
|
17
|
-
export declare function createUIRenderer(state: UIState): UIRenderer;
|
|
18
|
-
//# sourceMappingURL=ui-renderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-renderer.d.ts","sourceRoot":"","sources":["../../src/output/ui-renderer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAgF3D"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UI renderer for parallel agent display
|
|
3
|
-
* Manages 60fps render loop with terminal clear/redraw
|
|
4
|
-
*/
|
|
5
|
-
import { UI_MAX_BOX_WIDTH, UI_MIN_TERMINAL_WIDTH, UI_RENDER_INTERVAL_MS, UI_SPINNER_INTERVAL_MS, } from '../utils/constants.js';
|
|
6
|
-
import { terminalLog } from './colors.js';
|
|
7
|
-
import { renderAgentBox, renderMainLog } from './ui-components.js';
|
|
8
|
-
/**
|
|
9
|
-
* Create a UI renderer with 60fps render loop
|
|
10
|
-
* @param state - UI state to render
|
|
11
|
-
* @returns UIRenderer interface
|
|
12
|
-
* @throws {Error} EC-8: Terminal width < 70
|
|
13
|
-
*/
|
|
14
|
-
export function createUIRenderer(state) {
|
|
15
|
-
let intervalId = null;
|
|
16
|
-
let frameCount = 0;
|
|
17
|
-
return {
|
|
18
|
-
start() {
|
|
19
|
-
// EC-7: Already started → Error
|
|
20
|
-
if (intervalId !== null) {
|
|
21
|
-
throw new Error('Renderer already running');
|
|
22
|
-
}
|
|
23
|
-
// EC-8: Terminal width < 70 → Error
|
|
24
|
-
const terminalWidth = process.stdout.columns || 80;
|
|
25
|
-
if (terminalWidth < UI_MIN_TERMINAL_WIDTH) {
|
|
26
|
-
throw new Error(`Terminal width ${terminalWidth} below minimum ${UI_MIN_TERMINAL_WIDTH}`);
|
|
27
|
-
}
|
|
28
|
-
// Start 60fps render loop (16ms interval)
|
|
29
|
-
intervalId = setInterval(() => {
|
|
30
|
-
frameCount++;
|
|
31
|
-
// Advance spinner every 96ms (every 6 frames)
|
|
32
|
-
if (frameCount % (UI_SPINNER_INTERVAL_MS / UI_RENDER_INTERVAL_MS) ===
|
|
33
|
-
0) {
|
|
34
|
-
state.spinnerFrame = (state.spinnerFrame + 1) % 4;
|
|
35
|
-
}
|
|
36
|
-
// Clear terminal and render current state
|
|
37
|
-
this.render();
|
|
38
|
-
// Stop when all agents complete
|
|
39
|
-
const allComplete = Array.from(state.agents.values()).every((agent) => agent.status === 'complete');
|
|
40
|
-
if (allComplete && state.agents.size > 0) {
|
|
41
|
-
this.stop();
|
|
42
|
-
}
|
|
43
|
-
}, UI_RENDER_INTERVAL_MS);
|
|
44
|
-
},
|
|
45
|
-
stop() {
|
|
46
|
-
if (intervalId !== null) {
|
|
47
|
-
clearInterval(intervalId);
|
|
48
|
-
intervalId = null;
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
render() {
|
|
52
|
-
// Clear terminal
|
|
53
|
-
console.clear();
|
|
54
|
-
// Calculate box width (terminal width capped at max)
|
|
55
|
-
const terminalWidth = process.stdout.columns || 80;
|
|
56
|
-
const boxWidth = Math.min(terminalWidth - 2, UI_MAX_BOX_WIDTH);
|
|
57
|
-
// Show running agents with box rendering
|
|
58
|
-
const runningAgents = Array.from(state.agents.values()).filter((agent) => agent.status === 'running');
|
|
59
|
-
for (const agent of runningAgents) {
|
|
60
|
-
const boxLines = renderAgentBox(agent, boxWidth);
|
|
61
|
-
for (const line of boxLines) {
|
|
62
|
-
terminalLog(line);
|
|
63
|
-
}
|
|
64
|
-
terminalLog(''); // Spacing between boxes
|
|
65
|
-
}
|
|
66
|
-
// Show main log
|
|
67
|
-
const allComplete = runningAgents.length === 0 && state.agents.size > 0;
|
|
68
|
-
const logLines = renderMainLog(state.mainLog, allComplete);
|
|
69
|
-
for (const line of logLines) {
|
|
70
|
-
terminalLog(line);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=ui-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-renderer.js","sourceRoot":"","sources":["../../src/output/ui-renderer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASnE;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,IAAI,UAAU,GAA0B,IAAI,CAAC;IAC7C,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,OAAO;QACL,KAAK;YACH,gCAAgC;YAChC,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,CAAC;YAED,oCAAoC;YACpC,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;YACnD,IAAI,aAAa,GAAG,qBAAqB,EAAE,CAAC;gBAC1C,MAAM,IAAI,KAAK,CACb,kBAAkB,aAAa,kBAAkB,qBAAqB,EAAE,CACzE,CAAC;YACJ,CAAC;YAED,0CAA0C;YAC1C,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;gBAC5B,UAAU,EAAE,CAAC;gBAEb,8CAA8C;gBAC9C,IACE,UAAU,GAAG,CAA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M,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;gBACjD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;oBAC5B,WAAW,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;gBACD,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB;YAC3C,CAAC;YAED,gBAAgB;YAChB,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;YACxE,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC3D,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC5B,WAAW,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UI state management for parallel agent display
|
|
3
|
-
*/
|
|
4
|
-
import type { ActiveTask } from '../types/runner.js';
|
|
5
|
-
/**
|
|
6
|
-
* Entry in the main execution log
|
|
7
|
-
*/
|
|
8
|
-
export interface LogEntry {
|
|
9
|
-
timestamp: Date;
|
|
10
|
-
agentLabel: string;
|
|
11
|
-
agentName: string;
|
|
12
|
-
type: 'invocation' | 'tool' | 'completion';
|
|
13
|
-
content: string;
|
|
14
|
-
duration?: number;
|
|
15
|
-
messageCount?: number;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Individual tool call record
|
|
19
|
-
*/
|
|
20
|
-
export interface ToolCallEntry {
|
|
21
|
-
toolName: string;
|
|
22
|
-
args: string;
|
|
23
|
-
timestamp: Date;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* State for a single agent/task
|
|
27
|
-
*/
|
|
28
|
-
export interface AgentState {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
description: string;
|
|
32
|
-
label: string;
|
|
33
|
-
toolCalls: ToolCallEntry[];
|
|
34
|
-
messageCount: number;
|
|
35
|
-
startTime: number;
|
|
36
|
-
status: 'running' | 'complete';
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Overall UI state for parallel agent display
|
|
40
|
-
*/
|
|
41
|
-
export interface UIState {
|
|
42
|
-
agents: Map<string, AgentState>;
|
|
43
|
-
mainLog: LogEntry[];
|
|
44
|
-
renderStartTime: number;
|
|
45
|
-
spinnerFrame: number;
|
|
46
|
-
/** Callback invoked when first agent is registered */
|
|
47
|
-
onFirstAgent?: () => void;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Create initial UI state with empty agents and log
|
|
51
|
-
*/
|
|
52
|
-
export declare function createUIState(): UIState;
|
|
53
|
-
/**
|
|
54
|
-
* Register a new agent in the UI state
|
|
55
|
-
* @throws {Error} if agent count exceeds UI_MAX_AGENTS
|
|
56
|
-
* @throws {Error} if agent ID already registered
|
|
57
|
-
*/
|
|
58
|
-
export declare function registerAgent(state: UIState, task: ActiveTask, description: string): void;
|
|
59
|
-
/**
|
|
60
|
-
* Record a tool call for an agent
|
|
61
|
-
* @throws {Error} if agent ID not found
|
|
62
|
-
* @throws {Error} if tool name empty
|
|
63
|
-
*/
|
|
64
|
-
export declare function recordToolCall(state: UIState, agentId: string, toolName: string, args: string): void;
|
|
65
|
-
/**
|
|
66
|
-
* Mark agent complete and add completion entry to main log
|
|
67
|
-
* @throws {Error} if agent ID not found
|
|
68
|
-
* @throws {Error} if agent already complete
|
|
69
|
-
*/
|
|
70
|
-
export declare function completeAgent(state: UIState, agentId: string): void;
|
|
71
|
-
//# sourceMappingURL=ui-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-state.d.ts","sourceRoot":"","sources":["../../src/output/ui-state.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,o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OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,IAAI,CAqCN;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CA8BnE"}
|
package/dist/output/ui-state.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UI state management for parallel agent display
|
|
3
|
-
*/
|
|
4
|
-
import { UI_MAX_AGENTS, UI_MAX_DESCRIPTION_LENGTH, UI_MAX_VISIBLE_TOOLS, } from '../utils/constants.js';
|
|
5
|
-
/**
|
|
6
|
-
* Create initial UI state with empty agents and log
|
|
7
|
-
*/
|
|
8
|
-
export function createUIState() {
|
|
9
|
-
return {
|
|
10
|
-
agents: new Map(),
|
|
11
|
-
mainLog: [],
|
|
12
|
-
renderStartTime: Date.now(),
|
|
13
|
-
spinnerFrame: 0,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Register a new agent in the UI state
|
|
18
|
-
* @throws {Error} if agent count exceeds UI_MAX_AGENTS
|
|
19
|
-
* @throws {Error} if agent ID already registered
|
|
20
|
-
*/
|
|
21
|
-
export function registerAgent(state, task, description) {
|
|
22
|
-
// EC-1: Check agent count limit
|
|
23
|
-
if (state.agents.size >= UI_MAX_AGENTS) {
|
|
24
|
-
throw new Error('Maximum 10 concurrent agents exceeded');
|
|
25
|
-
}
|
|
26
|
-
// EC-2: Check for duplicate agent ID
|
|
27
|
-
if (state.agents.has(task.id)) {
|
|
28
|
-
throw new Error(`Agent ${task.id} already registered`);
|
|
29
|
-
}
|
|
30
|
-
// Truncate description to 40 characters
|
|
31
|
-
const truncatedDescription = description.length > UI_MAX_DESCRIPTION_LENGTH
|
|
32
|
-
? description.slice(0, UI_MAX_DESCRIPTION_LENGTH)
|
|
33
|
-
: description;
|
|
34
|
-
// Create agent state
|
|
35
|
-
const agentState = {
|
|
36
|
-
id: task.id,
|
|
37
|
-
name: task.name,
|
|
38
|
-
description: truncatedDescription,
|
|
39
|
-
label: task.label,
|
|
40
|
-
toolCalls: [],
|
|
41
|
-
messageCount: 0,
|
|
42
|
-
startTime: Date.now(),
|
|
43
|
-
status: 'running',
|
|
44
|
-
};
|
|
45
|
-
// Check if this is the first agent (trigger callback before adding)
|
|
46
|
-
const isFirstAgent = state.agents.size === 0;
|
|
47
|
-
// Add to agents map
|
|
48
|
-
state.agents.set(task.id, agentState);
|
|
49
|
-
// Trigger callback for first agent
|
|
50
|
-
if (isFirstAgent && state.onFirstAgent) {
|
|
51
|
-
state.onFirstAgent();
|
|
52
|
-
}
|
|
53
|
-
// Add invocation entry to main log
|
|
54
|
-
const logEntry = {
|
|
55
|
-
timestamp: new Date(),
|
|
56
|
-
agentLabel: task.label,
|
|
57
|
-
agentName: task.name,
|
|
58
|
-
type: 'invocation',
|
|
59
|
-
content: truncatedDescription,
|
|
60
|
-
};
|
|
61
|
-
state.mainLog.push(logEntry);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Record a tool call for an agent
|
|
65
|
-
* @throws {Error} if agent ID not found
|
|
66
|
-
* @throws {Error} if tool name empty
|
|
67
|
-
*/
|
|
68
|
-
export function recordToolCall(state, agentId, toolName, args) {
|
|
69
|
-
// EC-3: Check agent ID exists
|
|
70
|
-
const agent = state.agents.get(agentId);
|
|
71
|
-
if (!agent) {
|
|
72
|
-
throw new Error(`Unknown agent: ${agentId}`);
|
|
73
|
-
}
|
|
74
|
-
// EC-4: Check tool name not empty
|
|
75
|
-
if (!toolName || toolName.trim().length === 0) {
|
|
76
|
-
throw new Error('Tool name required');
|
|
77
|
-
}
|
|
78
|
-
// Create tool call entry
|
|
79
|
-
const toolCall = {
|
|
80
|
-
toolName,
|
|
81
|
-
args,
|
|
82
|
-
timestamp: new Date(),
|
|
83
|
-
};
|
|
84
|
-
// Add to agent's tool calls (FIFO management for max 5 visible)
|
|
85
|
-
agent.toolCalls.push(toolCall);
|
|
86
|
-
// AC-8: Remove oldest if exceeds max visible tools
|
|
87
|
-
if (agent.toolCalls.length > UI_MAX_VISIBLE_TOOLS) {
|
|
88
|
-
agent.toolCalls.shift();
|
|
89
|
-
}
|
|
90
|
-
// Add tool call entry to main log
|
|
91
|
-
const logEntry = {
|
|
92
|
-
timestamp: new Date(),
|
|
93
|
-
agentLabel: agent.label,
|
|
94
|
-
agentName: agent.name,
|
|
95
|
-
type: 'tool',
|
|
96
|
-
content: `${toolName}(${args})`,
|
|
97
|
-
};
|
|
98
|
-
state.mainLog.push(logEntry);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Mark agent complete and add completion entry to main log
|
|
102
|
-
* @throws {Error} if agent ID not found
|
|
103
|
-
* @throws {Error} if agent already complete
|
|
104
|
-
*/
|
|
105
|
-
export function completeAgent(state, agentId) {
|
|
106
|
-
// EC-5: Check agent ID exists
|
|
107
|
-
const agent = state.agents.get(agentId);
|
|
108
|
-
if (!agent) {
|
|
109
|
-
throw new Error(`Unknown agent: ${agentId}`);
|
|
110
|
-
}
|
|
111
|
-
// EC-6: Check agent not already complete
|
|
112
|
-
if (agent.status === 'complete') {
|
|
113
|
-
throw new Error(`Agent ${agentId} already completed`);
|
|
114
|
-
}
|
|
115
|
-
// Calculate duration from agent start time to current time
|
|
116
|
-
const duration = Date.now() - agent.startTime;
|
|
117
|
-
// Set agent status to 'complete' for renderer to remove box
|
|
118
|
-
agent.status = 'complete';
|
|
119
|
-
// Add completion entry to main log with duration and message count
|
|
120
|
-
const logEntry = {
|
|
121
|
-
timestamp: new Date(),
|
|
122
|
-
agentLabel: agent.label,
|
|
123
|
-
agentName: agent.name,
|
|
124
|
-
type: 'completion',
|
|
125
|
-
content: 'Complete',
|
|
126
|
-
duration,
|
|
127
|
-
messageCount: agent.messageCount,
|
|
128
|
-
};
|
|
129
|
-
state.mainLog.push(logEntry);
|
|
130
|
-
}
|
|
131
|
-
//# sourceMappingURL=ui-state.js.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Y;QAClB,OAAO,EAAE,UAAU;QACnB,QAAQ;QACR,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC;IAEF,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runner signal detection in Claude output
|
|
3
|
-
*/
|
|
4
|
-
import { type RunnerSignal } from '../types/runner.js';
|
|
5
|
-
/**
|
|
6
|
-
* Detect loop control signals in Claude's text output
|
|
7
|
-
* Returns null if no signal found
|
|
8
|
-
*/
|
|
9
|
-
export declare function detectRunnerSignal(text: string): RunnerSignal | null;
|
|
10
|
-
//# sourceMappingURL=signals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../src/parsers/signals.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAWpE"}
|
package/dist/parsers/signals.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runner signal detection in Claude output
|
|
3
|
-
*/
|
|
4
|
-
import { RUNNER_SIGNALS } from '../types/runner.js';
|
|
5
|
-
/**
|
|
6
|
-
* Detect loop control signals in Claude's text output
|
|
7
|
-
* Returns null if no signal found
|
|
8
|
-
*/
|
|
9
|
-
export function detectRunnerSignal(text) {
|
|
10
|
-
if (text.includes(RUNNER_SIGNALS.REPEAT_STEP)) {
|
|
11
|
-
return 'repeat_step';
|
|
12
|
-
}
|
|
13
|
-
if (text.includes(RUNNER_SIGNALS.BLOCKED)) {
|
|
14
|
-
return 'blocked';
|
|
15
|
-
}
|
|
16
|
-
if (text.includes(RUNNER_SIGNALS.ERROR)) {
|
|
17
|
-
return 'error';
|
|
18
|
-
}
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=signals.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signals.js","sourceRoot":"","sources":["../../src/parsers/signals.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAC;AAEvE;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC;QAC9C,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/script/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Script module - parsing, loading, and variable management
|
|
3
|
-
*/
|
|
4
|
-
export type { CommandLine, ParsedScript, PromptLine, ScriptFrontmatter, ScriptLine, VariableStore, } from './types.js';
|
|
5
|
-
export { loadScript } from './loader.js';
|
|
6
|
-
export { extractScriptLines, parseCommandLine, parsePromptLine, parseScriptLine, } from './parser.js';
|
|
7
|
-
export { captureOutput, createVariableStore, getCaptureLogMessage, getSubstitutionList, substituteVariables, } from './variables.js';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/script/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC"}
|
package/dist/script/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Script module - parsing, loading, and variable management
|
|
3
|
-
*/
|
|
4
|
-
// Loader
|
|
5
|
-
export { loadScript } from './loader.js';
|
|
6
|
-
// Parser (for direct use if needed)
|
|
7
|
-
export { extractScriptLines, parseCommandLine, parsePromptLine, parseScriptLine, } from './parser.js';
|
|
8
|
-
// Variables
|
|
9
|
-
export { captureOutput, createVariableStore, getCaptureLogMessage, getSubstitutionList, substituteVariables, } from './variables.js';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/dist/script/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/script/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,SAAS;AACT,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oCAAoC;AACpC,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB,YAAY;AACZ,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC"}
|
package/dist/script/loader.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Script file loading with frontmatter and argument validation
|
|
3
|
-
*/
|
|
4
|
-
import type { ParsedScript } from './types.js';
|
|
5
|
-
/**
|
|
6
|
-
* Load and parse a script file
|
|
7
|
-
*
|
|
8
|
-
* @param scriptFile - Path to the script file
|
|
9
|
-
* @param scriptArgs - Arguments passed to the script (for validation only)
|
|
10
|
-
* @returns Parsed script with lines and frontmatter
|
|
11
|
-
*/
|
|
12
|
-
export declare function loadScript(scriptFile: string, scriptArgs?: string[]): ParsedScript;
|
|
13
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/script/loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAiC,MAAM,YAAY,CAAC;AA+B9E;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,UAAU,EAAE,MAAM,EAClB,UAAU,GAAE,MAAM,EAAO,GACxB,YAAY,CAmCd"}
|
package/dist/script/loader.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Script file loading with frontmatter and argument validation
|
|
3
|
-
*/
|
|
4
|
-
import * as fs from 'fs';
|
|
5
|
-
import { parseFrontmatter } from '../templates/command.js';
|
|
6
|
-
import { parseArgumentHint } from '../utils/arguments.js';
|
|
7
|
-
import { extractScriptLines, parseScriptLine } from './parser.js';
|
|
8
|
-
/**
|
|
9
|
-
* Validate script arguments against argument-hint
|
|
10
|
-
*/
|
|
11
|
-
function validateArguments(frontmatter, args) {
|
|
12
|
-
const { requiredCount, optionalPositions } = parseArgumentHint(frontmatter.argumentHint);
|
|
13
|
-
if (args.length < requiredCount) {
|
|
14
|
-
const missing = [];
|
|
15
|
-
for (let i = args.length + 1; i <= requiredCount; i++) {
|
|
16
|
-
if (!optionalPositions.has(i)) {
|
|
17
|
-
missing.push(`$${i}`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (missing.length > 0) {
|
|
21
|
-
const hint = frontmatter.argumentHint
|
|
22
|
-
? ` (usage: ${frontmatter.argumentHint})`
|
|
23
|
-
: '';
|
|
24
|
-
throw new Error(`Missing required arguments: ${missing.join(', ')}${hint}`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Load and parse a script file
|
|
30
|
-
*
|
|
31
|
-
* @param scriptFile - Path to the script file
|
|
32
|
-
* @param scriptArgs - Arguments passed to the script (for validation only)
|
|
33
|
-
* @returns Parsed script with lines and frontmatter
|
|
34
|
-
*/
|
|
35
|
-
export function loadScript(scriptFile, scriptArgs = []) {
|
|
36
|
-
if (!fs.existsSync(scriptFile)) {
|
|
37
|
-
throw new Error(`Script not found: ${scriptFile}`);
|
|
38
|
-
}
|
|
39
|
-
const content = fs.readFileSync(scriptFile, 'utf-8');
|
|
40
|
-
// Parse frontmatter (reuse from templates/command.ts)
|
|
41
|
-
const { frontmatter: rawFrontmatter, body } = parseFrontmatter(content);
|
|
42
|
-
// Convert to ScriptFrontmatter (handle exactOptionalPropertyTypes)
|
|
43
|
-
const frontmatter = {};
|
|
44
|
-
if (rawFrontmatter.model)
|
|
45
|
-
frontmatter.model = rawFrontmatter.model;
|
|
46
|
-
if (rawFrontmatter.description)
|
|
47
|
-
frontmatter.description = rawFrontmatter.description;
|
|
48
|
-
if (rawFrontmatter.argumentHint)
|
|
49
|
-
frontmatter.argumentHint = rawFrontmatter.argumentHint;
|
|
50
|
-
// Validate arguments
|
|
51
|
-
validateArguments(frontmatter, scriptArgs);
|
|
52
|
-
// Extract raw lines (handling heredocs)
|
|
53
|
-
const rawLines = extractScriptLines(body);
|
|
54
|
-
// Parse each line
|
|
55
|
-
const lines = rawLines.map((line, index) => {
|
|
56
|
-
try {
|
|
57
|
-
return parseScriptLine(line);
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
const msg = error instanceof Error ? error.message : String(error);
|
|
61
|
-
throw new Error(`Script parse error on line ${index + 1}: ${msg}`);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return { lines, frontmatter };
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/script/loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGlE;;GAEG;AACH,SAAS,iBAAiB,CACxB,WAA8B,EAC9B,IAAc;IAEd,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,CAC5D,WAAW,CAAC,YAAY,CACzB,CAAC;IAEF,IAAI,IAAI,CAAC,MAAM,GAAG,aAAa,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,EAAE,CAAC;QACnB,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;YACtD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QACD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,GAAG,WAAW,CAAC,YAAY;gBACnC,CAAC,CAAC,YAAY,WAAW,CAAC,YAAY,GAAG;gBACzC,CAAC,CAAC,EAAE,CAAC;YACP,MAAM,IAAI,KAAK,CACb,+BAA+B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAC3D,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;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