browser-debugger-cli 0.6.7 → 0.6.8
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/commands/__tests__/console.contract.test.d.ts +9 -0
- package/dist/commands/__tests__/console.contract.test.d.ts.map +1 -0
- package/dist/commands/__tests__/console.contract.test.js +118 -0
- package/dist/commands/__tests__/console.contract.test.js.map +1 -0
- package/dist/commands/console.d.ts +17 -0
- package/dist/commands/console.d.ts.map +1 -1
- package/dist/commands/console.js +158 -56
- package/dist/commands/console.js.map +1 -1
- package/dist/commands/shared/optionTypes.d.ts +14 -4
- package/dist/commands/shared/optionTypes.d.ts.map +1 -1
- package/dist/daemon/worker/commandRegistry.d.ts.map +1 -1
- package/dist/daemon/worker/commandRegistry.js +2 -0
- package/dist/daemon/worker/commandRegistry.js.map +1 -1
- package/dist/telemetry/console.d.ts.map +1 -1
- package/dist/telemetry/console.js +29 -17
- package/dist/telemetry/console.js.map +1 -1
- package/dist/telemetry/remoteObject.d.ts +58 -0
- package/dist/telemetry/remoteObject.d.ts.map +1 -0
- package/dist/telemetry/remoteObject.js +134 -0
- package/dist/telemetry/remoteObject.js.map +1 -0
- package/dist/types.d.ts +21 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/ui/formatters/console.d.ts +131 -0
- package/dist/ui/formatters/console.d.ts.map +1 -0
- package/dist/ui/formatters/console.js +400 -0
- package/dist/ui/formatters/console.js.map +1 -0
- package/dist/ui/messages/consoleMessages.d.ts +12 -27
- package/dist/ui/messages/consoleMessages.d.ts.map +1 -1
- package/dist/ui/messages/consoleMessages.js +16 -31
- package/dist/ui/messages/consoleMessages.js.map +1 -1
- package/dist/utils/decisionTrees.d.ts.map +1 -1
- package/dist/utils/decisionTrees.js +17 -2
- package/dist/utils/decisionTrees.js.map +1 -1
- package/dist/utils/strings.d.ts +14 -0
- package/dist/utils/strings.d.ts.map +1 -0
- package/dist/utils/strings.js +23 -0
- package/dist/utils/strings.js.map +1 -0
- package/dist/utils/taskMappings.d.ts.map +1 -1
- package/dist/utils/taskMappings.js +18 -3
- package/dist/utils/taskMappings.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Console command formatters.
|
|
3
|
+
*
|
|
4
|
+
* Provides formatting functions for the `bdg console` command output including
|
|
5
|
+
* smart summary view with deduplication, chronological view, and JSON output.
|
|
6
|
+
*/
|
|
7
|
+
import { OutputFormatter, pluralize } from '../../ui/formatting.js';
|
|
8
|
+
import { truncateByLength } from '../../utils/strings.js';
|
|
9
|
+
/**
|
|
10
|
+
* Mapping from console message types to level categories.
|
|
11
|
+
*/
|
|
12
|
+
const LEVEL_MAP = {
|
|
13
|
+
error: 'error',
|
|
14
|
+
warning: 'warning',
|
|
15
|
+
info: 'info',
|
|
16
|
+
log: 'info',
|
|
17
|
+
debug: 'debug',
|
|
18
|
+
trace: 'debug',
|
|
19
|
+
dir: 'other',
|
|
20
|
+
dirxml: 'other',
|
|
21
|
+
table: 'other',
|
|
22
|
+
clear: 'other',
|
|
23
|
+
startGroup: 'other',
|
|
24
|
+
startGroupCollapsed: 'other',
|
|
25
|
+
endGroup: 'other',
|
|
26
|
+
assert: 'other',
|
|
27
|
+
profile: 'other',
|
|
28
|
+
profileEnd: 'other',
|
|
29
|
+
count: 'other',
|
|
30
|
+
timeEnd: 'other',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Classify a console message type into a level category.
|
|
34
|
+
*
|
|
35
|
+
* @param type - Console message type from CDP
|
|
36
|
+
* @returns Normalized level category
|
|
37
|
+
*/
|
|
38
|
+
function classifyLevel(type) {
|
|
39
|
+
return LEVEL_MAP[type];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Generate a deduplication key for a console message.
|
|
43
|
+
*
|
|
44
|
+
* Messages are considered duplicates if they have the same text and source location.
|
|
45
|
+
*
|
|
46
|
+
* @param message - Console message to generate key for
|
|
47
|
+
* @returns Unique key string for deduplication
|
|
48
|
+
*/
|
|
49
|
+
function getDeduplicationKey(message) {
|
|
50
|
+
const source = message.stackTrace?.[0];
|
|
51
|
+
if (source) {
|
|
52
|
+
return `${message.text}|${source.url}|${source.lineNumber}|${source.columnNumber}`;
|
|
53
|
+
}
|
|
54
|
+
return message.text;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Deduplicate an array of messages, grouping by key and counting occurrences.
|
|
58
|
+
*
|
|
59
|
+
* @param messages - Messages to deduplicate
|
|
60
|
+
* @returns Deduplicated messages with counts
|
|
61
|
+
*/
|
|
62
|
+
function deduplicate(messages) {
|
|
63
|
+
const groups = new Map();
|
|
64
|
+
for (const message of messages) {
|
|
65
|
+
const key = getDeduplicationKey(message);
|
|
66
|
+
const existing = groups.get(key);
|
|
67
|
+
if (existing) {
|
|
68
|
+
existing.count++;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
groups.set(key, { message, count: 1 });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return Array.from(groups.values());
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Group and process messages in a single pass.
|
|
78
|
+
*
|
|
79
|
+
* Partitions messages by level, deduplicates errors/warnings,
|
|
80
|
+
* and counts all levels efficiently.
|
|
81
|
+
*
|
|
82
|
+
* @param messages - All console messages
|
|
83
|
+
* @returns Grouped and processed message data
|
|
84
|
+
*/
|
|
85
|
+
function groupByLevel(messages) {
|
|
86
|
+
const byLevel = {
|
|
87
|
+
error: [],
|
|
88
|
+
warning: [],
|
|
89
|
+
info: [],
|
|
90
|
+
debug: [],
|
|
91
|
+
other: [],
|
|
92
|
+
};
|
|
93
|
+
for (const msg of messages) {
|
|
94
|
+
byLevel[classifyLevel(msg.type)].push(msg);
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
errors: deduplicate(byLevel.error),
|
|
98
|
+
warnings: deduplicate(byLevel.warning),
|
|
99
|
+
counts: {
|
|
100
|
+
error: byLevel.error.length,
|
|
101
|
+
warning: byLevel.warning.length,
|
|
102
|
+
info: byLevel.info.length,
|
|
103
|
+
debug: byLevel.debug.length,
|
|
104
|
+
other: byLevel.other.length,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Calculate summary statistics from grouped messages.
|
|
110
|
+
*
|
|
111
|
+
* @param total - Total message count
|
|
112
|
+
* @param grouped - Grouped and deduplicated messages
|
|
113
|
+
* @returns Summary statistics object
|
|
114
|
+
*/
|
|
115
|
+
function buildSummary(total, grouped) {
|
|
116
|
+
const sumCounts = (items) => items.reduce((sum, d) => sum + d.count, 0);
|
|
117
|
+
return {
|
|
118
|
+
total,
|
|
119
|
+
errors: { total: sumCounts(grouped.errors), unique: grouped.errors.length },
|
|
120
|
+
warnings: { total: sumCounts(grouped.warnings), unique: grouped.warnings.length },
|
|
121
|
+
info: grouped.counts.info,
|
|
122
|
+
debug: grouped.counts.debug,
|
|
123
|
+
other: grouped.counts.other,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Analyze console messages: group, deduplicate, and summarize.
|
|
128
|
+
*
|
|
129
|
+
* Single entry point for message analysis used by all formatters.
|
|
130
|
+
*
|
|
131
|
+
* @param messages - All console messages
|
|
132
|
+
* @returns Object with grouped messages and summary
|
|
133
|
+
*/
|
|
134
|
+
function analyzeMessages(messages) {
|
|
135
|
+
const grouped = groupByLevel(messages);
|
|
136
|
+
const summary = buildSummary(messages.length, grouped);
|
|
137
|
+
return { grouped, summary };
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Format source location as "file:line:col".
|
|
141
|
+
*
|
|
142
|
+
* Extracts filename from URL for concise display.
|
|
143
|
+
*
|
|
144
|
+
* @param stackTrace - Stack trace frames
|
|
145
|
+
* @returns Formatted source location string, or undefined if no source
|
|
146
|
+
*/
|
|
147
|
+
function formatSourceLocation(stackTrace) {
|
|
148
|
+
const frame = stackTrace?.[0];
|
|
149
|
+
if (!frame)
|
|
150
|
+
return undefined;
|
|
151
|
+
const url = frame.url;
|
|
152
|
+
const filename = url.includes('/') ? (url.split('/').pop() ?? url) : url;
|
|
153
|
+
const line = frame.lineNumber + 1;
|
|
154
|
+
const col = frame.columnNumber + 1;
|
|
155
|
+
return `${filename}:${line}:${col}`;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Format count prefix for deduplicated messages.
|
|
159
|
+
*
|
|
160
|
+
* @param count - Occurrence count
|
|
161
|
+
* @returns Formatted prefix like "[8x] " or empty string
|
|
162
|
+
*/
|
|
163
|
+
function formatCountPrefix(count) {
|
|
164
|
+
return count > 1 ? `[${count}x] ` : '';
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Format section header with unique/total counts.
|
|
168
|
+
*
|
|
169
|
+
* @param label - Section label (e.g., "Errors", "Warnings")
|
|
170
|
+
* @param unique - Number of unique messages
|
|
171
|
+
* @param total - Total occurrences
|
|
172
|
+
* @returns Formatted header string
|
|
173
|
+
*/
|
|
174
|
+
function formatSectionHeader(label, unique, total) {
|
|
175
|
+
return unique === total ? `${label} (${total})` : `${label} (${unique} unique, ${total} total)`;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Render error section to formatter.
|
|
179
|
+
*
|
|
180
|
+
* @param fmt - OutputFormatter instance
|
|
181
|
+
* @param errors - Deduplicated error messages
|
|
182
|
+
* @param total - Total error count
|
|
183
|
+
*/
|
|
184
|
+
function renderErrorSection(fmt, errors, total) {
|
|
185
|
+
if (errors.length === 0)
|
|
186
|
+
return;
|
|
187
|
+
fmt.text(formatSectionHeader('Errors', errors.length, total));
|
|
188
|
+
fmt.separator('─', 30);
|
|
189
|
+
for (const { message, count } of errors) {
|
|
190
|
+
fmt.text(`${formatCountPrefix(count)}${message.text}`);
|
|
191
|
+
const source = formatSourceLocation(message.stackTrace);
|
|
192
|
+
if (source) {
|
|
193
|
+
fmt.text(` → ${source}`);
|
|
194
|
+
}
|
|
195
|
+
fmt.blank();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Render warning section to formatter.
|
|
200
|
+
*
|
|
201
|
+
* @param fmt - OutputFormatter instance
|
|
202
|
+
* @param warnings - Deduplicated warning messages
|
|
203
|
+
* @param total - Total warning count
|
|
204
|
+
*/
|
|
205
|
+
function renderWarningSection(fmt, warnings, total) {
|
|
206
|
+
if (warnings.length === 0)
|
|
207
|
+
return;
|
|
208
|
+
fmt.text(formatSectionHeader('Warnings', warnings.length, total));
|
|
209
|
+
fmt.separator('─', 30);
|
|
210
|
+
for (const { message, count } of warnings) {
|
|
211
|
+
fmt.text(`• ${formatCountPrefix(count)}${message.text}`);
|
|
212
|
+
}
|
|
213
|
+
fmt.blank();
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Render other messages summary footer.
|
|
217
|
+
*
|
|
218
|
+
* @param fmt - OutputFormatter instance
|
|
219
|
+
* @param summary - Console summary with counts
|
|
220
|
+
*/
|
|
221
|
+
function renderOtherSummary(fmt, summary) {
|
|
222
|
+
const parts = [
|
|
223
|
+
summary.info > 0 && pluralize(summary.info, 'info message'),
|
|
224
|
+
summary.debug > 0 && pluralize(summary.debug, 'debug message'),
|
|
225
|
+
summary.other > 0 && pluralize(summary.other, 'other message'),
|
|
226
|
+
].filter(Boolean);
|
|
227
|
+
if (parts.length > 0) {
|
|
228
|
+
fmt.separator('─', 30);
|
|
229
|
+
fmt.text(`${parts.join(' · ')} (use --list to see)`);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Format console output as smart summary (default mode).
|
|
234
|
+
*
|
|
235
|
+
* Prioritizes errors and warnings with deduplication and counts.
|
|
236
|
+
* Shows info/debug as summary counts only.
|
|
237
|
+
*
|
|
238
|
+
* @param messages - All console messages
|
|
239
|
+
* @returns Formatted summary string
|
|
240
|
+
*/
|
|
241
|
+
export function formatConsoleSummary(messages) {
|
|
242
|
+
const fmt = new OutputFormatter();
|
|
243
|
+
const { grouped, summary } = analyzeMessages(messages);
|
|
244
|
+
fmt.text('Console Summary');
|
|
245
|
+
fmt.separator('━', 60);
|
|
246
|
+
fmt.blank();
|
|
247
|
+
renderErrorSection(fmt, grouped.errors, summary.errors.total);
|
|
248
|
+
renderWarningSection(fmt, grouped.warnings, summary.warnings.total);
|
|
249
|
+
if (grouped.errors.length === 0 && grouped.warnings.length === 0) {
|
|
250
|
+
fmt.text('No errors or warnings found');
|
|
251
|
+
fmt.blank();
|
|
252
|
+
}
|
|
253
|
+
renderOtherSummary(fmt, summary);
|
|
254
|
+
return fmt.build();
|
|
255
|
+
}
|
|
256
|
+
/** Maximum text length before truncation in list view */
|
|
257
|
+
const MAX_LIST_TEXT_LENGTH = 200;
|
|
258
|
+
/**
|
|
259
|
+
* Format console output as chronological list (--list mode).
|
|
260
|
+
*
|
|
261
|
+
* Shows all messages in order with timestamps and levels.
|
|
262
|
+
* Includes navigation markers when page reloads are detected.
|
|
263
|
+
*
|
|
264
|
+
* @param messages - All console messages
|
|
265
|
+
* @param options - Format options
|
|
266
|
+
* @returns Formatted chronological list string
|
|
267
|
+
*/
|
|
268
|
+
export function formatConsoleChronological(messages, options) {
|
|
269
|
+
const fmt = new OutputFormatter();
|
|
270
|
+
let displayMessages = messages;
|
|
271
|
+
if (options.last && options.last > 0) {
|
|
272
|
+
displayMessages = messages.slice(-options.last);
|
|
273
|
+
}
|
|
274
|
+
const headerSuffix = options.history ? ' (all navigations)' : '';
|
|
275
|
+
const header = displayMessages.length === messages.length
|
|
276
|
+
? `Console Messages (${messages.length} total)${headerSuffix}`
|
|
277
|
+
: `Console Messages (last ${displayMessages.length} of ${messages.length})${headerSuffix}`;
|
|
278
|
+
fmt.text(header);
|
|
279
|
+
fmt.separator('━', 50);
|
|
280
|
+
if (displayMessages.length === 0) {
|
|
281
|
+
fmt.text('No console messages');
|
|
282
|
+
return fmt.build();
|
|
283
|
+
}
|
|
284
|
+
const baseIndex = messages.length - displayMessages.length;
|
|
285
|
+
let lastNavigationId;
|
|
286
|
+
for (const [i, msg] of displayMessages.entries()) {
|
|
287
|
+
const index = baseIndex + i;
|
|
288
|
+
const time = new Date(msg.timestamp).toLocaleTimeString();
|
|
289
|
+
const level = msg.type.padEnd(7);
|
|
290
|
+
// Show navigation marker when page reloads
|
|
291
|
+
if (msg.navigationId !== undefined && msg.navigationId !== lastNavigationId) {
|
|
292
|
+
if (lastNavigationId !== undefined) {
|
|
293
|
+
fmt.blank();
|
|
294
|
+
fmt.text(`─── Page Reload (navigation #${msg.navigationId}) ───`);
|
|
295
|
+
fmt.blank();
|
|
296
|
+
}
|
|
297
|
+
lastNavigationId = msg.navigationId;
|
|
298
|
+
}
|
|
299
|
+
const truncatedText = truncateByLength(msg.text, MAX_LIST_TEXT_LENGTH);
|
|
300
|
+
fmt.text(`[${index}] ${level} ${time} ${truncatedText}`);
|
|
301
|
+
const source = formatSourceLocation(msg.stackTrace);
|
|
302
|
+
if (source) {
|
|
303
|
+
fmt.text(` → ${source}`);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return fmt.build();
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Format console output for follow mode streaming.
|
|
310
|
+
*
|
|
311
|
+
* Compact format optimized for live updates.
|
|
312
|
+
*
|
|
313
|
+
* @param messages - Recent console messages to display
|
|
314
|
+
* @returns Formatted streaming output string
|
|
315
|
+
*/
|
|
316
|
+
export function formatConsoleFollow(messages) {
|
|
317
|
+
const fmt = new OutputFormatter();
|
|
318
|
+
fmt.text('Streaming console... (Ctrl+C to stop)');
|
|
319
|
+
fmt.separator('━', 40);
|
|
320
|
+
if (messages.length === 0) {
|
|
321
|
+
fmt.text('Waiting for messages...');
|
|
322
|
+
return fmt.build();
|
|
323
|
+
}
|
|
324
|
+
for (const msg of messages) {
|
|
325
|
+
const time = new Date(msg.timestamp).toLocaleTimeString();
|
|
326
|
+
const level = msg.type.padEnd(7);
|
|
327
|
+
fmt.text(`${time} ${level} ${msg.text}`);
|
|
328
|
+
const source = formatSourceLocation(msg.stackTrace);
|
|
329
|
+
if (source) {
|
|
330
|
+
fmt.text(` → ${source}`);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return fmt.build();
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Convert deduplicated message to JSON error format.
|
|
337
|
+
*
|
|
338
|
+
* @param dedup - Deduplicated message
|
|
339
|
+
* @param includeStackTrace - Whether to include full stack trace
|
|
340
|
+
* @returns JSON-serializable error object
|
|
341
|
+
*/
|
|
342
|
+
function toJsonError(dedup, includeStackTrace) {
|
|
343
|
+
const source = dedup.message.stackTrace?.[0];
|
|
344
|
+
return {
|
|
345
|
+
count: dedup.count,
|
|
346
|
+
level: dedup.message.type,
|
|
347
|
+
text: dedup.message.text,
|
|
348
|
+
...(source && {
|
|
349
|
+
source: {
|
|
350
|
+
url: source.url,
|
|
351
|
+
line: source.lineNumber + 1,
|
|
352
|
+
column: source.columnNumber + 1,
|
|
353
|
+
},
|
|
354
|
+
}),
|
|
355
|
+
...(includeStackTrace && dedup.message.stackTrace && { stackTrace: dedup.message.stackTrace }),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Format console output as JSON.
|
|
360
|
+
*
|
|
361
|
+
* Structured output with summary statistics and deduplicated errors/warnings.
|
|
362
|
+
*
|
|
363
|
+
* @param messages - All console messages
|
|
364
|
+
* @param options - Format options
|
|
365
|
+
* @returns JSON string
|
|
366
|
+
*/
|
|
367
|
+
export function formatConsoleJson(messages, options) {
|
|
368
|
+
const { grouped, summary } = analyzeMessages(messages);
|
|
369
|
+
const output = {
|
|
370
|
+
success: true,
|
|
371
|
+
summary,
|
|
372
|
+
errors: grouped.errors.map((d) => toJsonError(d, true)),
|
|
373
|
+
warnings: grouped.warnings.map((d) => toJsonError(d, false)),
|
|
374
|
+
};
|
|
375
|
+
if (options.list) {
|
|
376
|
+
const displayMessages = options.last && options.last > 0 ? messages.slice(-options.last) : messages;
|
|
377
|
+
output.messages = displayMessages;
|
|
378
|
+
}
|
|
379
|
+
return JSON.stringify(output, null, 2);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Format console output based on options.
|
|
383
|
+
*
|
|
384
|
+
* Main entry point for console formatting. Routes to appropriate formatter
|
|
385
|
+
* based on options (json, list, follow).
|
|
386
|
+
*
|
|
387
|
+
* @param messages - All console messages
|
|
388
|
+
* @param options - Format options
|
|
389
|
+
* @returns Formatted output string
|
|
390
|
+
*/
|
|
391
|
+
export function formatConsole(messages, options) {
|
|
392
|
+
if (options.json) {
|
|
393
|
+
return formatConsoleJson(messages, options);
|
|
394
|
+
}
|
|
395
|
+
if (options.list) {
|
|
396
|
+
return formatConsoleChronological(messages, options);
|
|
397
|
+
}
|
|
398
|
+
return formatConsoleSummary(messages);
|
|
399
|
+
}
|
|
400
|
+
//# sourceMappingURL=console.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console.js","sourceRoot":"","sources":["../../../src/ui/formatters/console.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA0FtD;;GAEG;AACH,MAAM,SAAS,GAAiD;IAC9D,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,OAAO;IACZ,MAAM,EAAE,OAAO;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,OAAO;IACnB,mBAAmB,EAAE,OAAO;IAC5B,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,OA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;AACzC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,QAA0B,EAAE,OAA6B;IACrF,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,OAAO,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,OAAO,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -2,38 +2,23 @@
|
|
|
2
2
|
* Console command messages (bdg console)
|
|
3
3
|
*
|
|
4
4
|
* User-facing messages for the console command output and formatting.
|
|
5
|
-
|
|
5
|
+
*/
|
|
6
6
|
/**
|
|
7
|
-
* Generate
|
|
8
|
-
*
|
|
9
|
-
* @param filter - Optional filter type that was applied
|
|
10
|
-
* @returns Formatted message with optional filter context
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* console.log(noConsoleMessagesMessage());
|
|
15
|
-
* // "No console messages found"
|
|
7
|
+
* Generate message for following console output.
|
|
16
8
|
*
|
|
17
|
-
*
|
|
18
|
-
* // "No console messages found\n(filtered by type: error)"
|
|
19
|
-
* ```
|
|
9
|
+
* @returns Status message for stderr
|
|
20
10
|
*/
|
|
21
|
-
export declare function
|
|
11
|
+
export declare function followingConsoleMessage(): string;
|
|
22
12
|
/**
|
|
23
|
-
* Generate console
|
|
13
|
+
* Generate message when stopping console follow mode.
|
|
24
14
|
*
|
|
25
|
-
* @
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*
|
|
30
|
-
* ```typescript
|
|
31
|
-
* console.log(consoleMessagesHeader(42));
|
|
32
|
-
* // "Console messages (42 total):"
|
|
15
|
+
* @returns Status message for stderr
|
|
16
|
+
*/
|
|
17
|
+
export declare function stoppedFollowingConsoleMessage(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Generate message when no console data is available.
|
|
33
20
|
*
|
|
34
|
-
*
|
|
35
|
-
* // "Console messages (10 total):\nFiltered by type: error"
|
|
36
|
-
* ```
|
|
21
|
+
* @returns Error message with context
|
|
37
22
|
*/
|
|
38
|
-
export declare function
|
|
23
|
+
export declare function noConsoleDataMessage(): string;
|
|
39
24
|
//# sourceMappingURL=consoleMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleMessages.d.ts","sourceRoot":"","sources":["../../../src/ui/messages/consoleMessages.ts"],"names":[],"mappings":"AAAA;;;;
|
|
1
|
+
{"version":3,"file":"consoleMessages.d.ts","sourceRoot":"","sources":["../../../src/ui/messages/consoleMessages.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -2,44 +2,29 @@
|
|
|
2
2
|
* Console command messages (bdg console)
|
|
3
3
|
*
|
|
4
4
|
* User-facing messages for the console command output and formatting.
|
|
5
|
-
|
|
6
|
-
import { joinLines } from '../../ui/formatting.js';
|
|
5
|
+
*/
|
|
7
6
|
/**
|
|
8
|
-
* Generate
|
|
9
|
-
*
|
|
10
|
-
* @param filter - Optional filter type that was applied
|
|
11
|
-
* @returns Formatted message with optional filter context
|
|
7
|
+
* Generate message for following console output.
|
|
12
8
|
*
|
|
13
|
-
* @
|
|
14
|
-
* ```typescript
|
|
15
|
-
* console.log(noConsoleMessagesMessage());
|
|
16
|
-
* // "No console messages found"
|
|
17
|
-
*
|
|
18
|
-
* console.log(noConsoleMessagesMessage('error'));
|
|
19
|
-
* // "No console messages found\n(filtered by type: error)"
|
|
20
|
-
* ```
|
|
9
|
+
* @returns Status message for stderr
|
|
21
10
|
*/
|
|
22
|
-
export function
|
|
23
|
-
|
|
24
|
-
return filter ? `${base}\n(filtered by type: ${filter})` : base;
|
|
11
|
+
export function followingConsoleMessage() {
|
|
12
|
+
return 'Streaming console messages... (Ctrl+C to stop)';
|
|
25
13
|
}
|
|
26
14
|
/**
|
|
27
|
-
* Generate console
|
|
28
|
-
*
|
|
29
|
-
* @param count - Total number of console messages
|
|
30
|
-
* @param filter - Optional filter type that was applied
|
|
31
|
-
* @returns Formatted header with count and optional filter info
|
|
15
|
+
* Generate message when stopping console follow mode.
|
|
32
16
|
*
|
|
33
|
-
* @
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
* @returns Status message for stderr
|
|
18
|
+
*/
|
|
19
|
+
export function stoppedFollowingConsoleMessage() {
|
|
20
|
+
return 'Stopped streaming console messages';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Generate message when no console data is available.
|
|
37
24
|
*
|
|
38
|
-
*
|
|
39
|
-
* // "Console messages (10 total):\nFiltered by type: error"
|
|
40
|
-
* ```
|
|
25
|
+
* @returns Error message with context
|
|
41
26
|
*/
|
|
42
|
-
export function
|
|
43
|
-
return
|
|
27
|
+
export function noConsoleDataMessage() {
|
|
28
|
+
return 'No console data available. Console messages are captured during browser session.';
|
|
44
29
|
}
|
|
45
30
|
//# sourceMappingURL=consoleMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleMessages.js","sourceRoot":"","sources":["../../../src/ui/messages/consoleMessages.ts"],"names":[],"mappings":"AAAA;;;;
|
|
1
|
+
{"version":3,"file":"consoleMessages.js","sourceRoot":"","sources":["../../../src/ui/messages/consoleMessages.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,gDAAgD,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,8BAA8B;IAC5C,OAAO,oCAAoC,CAAC;AAC9C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,kFAAkF,CAAC;AAC5F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisionTrees.d.ts","sourceRoot":"","sources":["../../src/utils/decisionTrees.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"decisionTrees.d.ts","sourceRoot":"","sources":["../../src/utils/decisionTrees.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CA2JvD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAElE"}
|
|
@@ -82,8 +82,23 @@ export const DECISION_TREES = {
|
|
|
82
82
|
intent: 'Inspect console logs and messages',
|
|
83
83
|
steps: [
|
|
84
84
|
{
|
|
85
|
-
question: 'Need
|
|
86
|
-
yesCommand: 'console
|
|
85
|
+
question: 'Need current page errors/warnings with deduplication?',
|
|
86
|
+
yesCommand: 'console',
|
|
87
|
+
noAction: 'next',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
question: 'Need messages from all page loads (history)?',
|
|
91
|
+
yesCommand: 'console --history',
|
|
92
|
+
noAction: 'next',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
question: 'Need to stream console messages in real-time?',
|
|
96
|
+
yesCommand: 'console --follow',
|
|
97
|
+
noAction: 'next',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
question: 'Need all messages chronologically?',
|
|
101
|
+
yesCommand: 'console --list',
|
|
87
102
|
noAction: 'next',
|
|
88
103
|
},
|
|
89
104
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisionTrees.js","sourceRoot":"","sources":["../../src/utils/decisionTrees.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,eAAe,EAAE;QACf,MAAM,EAAE,qCAAqC;QAC7C,KAAK,EAAE;YACL;gBACE,QAAQ,EAAE,+BAA+B;gBACzC,UAAU,EAAE,gBAAgB;gBAC5B,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,QAAQ,EAAE,8BAA8B;gBACxC,UAAU,EAAE,WAAW;gBACvB,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,QAAQ,EAAE,2CAA2C;gBACrD,UAAU,EAAE,SAAS;gBACrB,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,QAAQ,EAAE,0BAA0B;gBACpC,UAAU,EAAE,UAAU;gBACtB,QAAQ,EAAE,MAAM;aACjB;YACD;gBACE,QAAQ,EAAE,2BAA2B;gBACrC,UA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M;aACjB;SACF;KACF;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String manipulation utilities.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Truncate text to a maximum character length.
|
|
6
|
+
*
|
|
7
|
+
* Adds an ellipsis character when text is truncated.
|
|
8
|
+
*
|
|
9
|
+
* @param text - Text to truncate
|
|
10
|
+
* @param maxLength - Maximum character length (default: 500)
|
|
11
|
+
* @returns Truncated text with ellipsis if needed
|
|
12
|
+
*/
|
|
13
|
+
export declare function truncateByLength(text: string, maxLength?: number): string;
|
|
14
|
+
//# sourceMappingURL=strings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/utils/strings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,MAA2B,GAAG,MAAM,CAK7F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String manipulation utilities.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Default maximum text length for truncation.
|
|
6
|
+
*/
|
|
7
|
+
const DEFAULT_MAX_LENGTH = 500;
|
|
8
|
+
/**
|
|
9
|
+
* Truncate text to a maximum character length.
|
|
10
|
+
*
|
|
11
|
+
* Adds an ellipsis character when text is truncated.
|
|
12
|
+
*
|
|
13
|
+
* @param text - Text to truncate
|
|
14
|
+
* @param maxLength - Maximum character length (default: 500)
|
|
15
|
+
* @returns Truncated text with ellipsis if needed
|
|
16
|
+
*/
|
|
17
|
+
export function truncateByLength(text, maxLength = DEFAULT_MAX_LENGTH) {
|
|
18
|
+
if (text.length <= maxLength) {
|
|
19
|
+
return text;
|
|
20
|
+
}
|
|
21
|
+
return text.slice(0, maxLength - 1) + '…';
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/utils/strings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,YAAoB,kBAAkB;IACnF,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskMappings.d.ts","sourceRoot":"","sources":["../../src/utils/taskMappings.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"taskMappings.d.ts","sourceRoot":"","sources":["../../src/utils/taskMappings.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAkHrD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAEhE"}
|