@checksum-ai/runtime 2.0.7-alpha.5 → 2.0.7-alpha.7
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/.env +1 -1
- package/package.json +1 -1
- package/scripts/playwright_patches/1.56.1.js +57 -0
- package/test-run-monitor.js +129 -129
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
CHECKSUM_RUNTIME_BUILD_TIME=2025-12-
|
|
1
|
+
CHECKSUM_RUNTIME_BUILD_TIME=2025-12-10T19:36:42.037Z
|
package/package.json
CHANGED
|
@@ -323,6 +323,62 @@ function reportTraceFile(projectRoot) {
|
|
|
323
323
|
replaceContent(file, originalContent, newContent);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function htmlReporter(projectRoot) {
|
|
327
|
+
const file = join(
|
|
328
|
+
projectRoot,
|
|
329
|
+
"node_modules/playwright/lib/reporters/html.js"
|
|
330
|
+
);
|
|
331
|
+
if (!doesFileExist(file)) {
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
let originalContent, newContent;
|
|
336
|
+
|
|
337
|
+
// Filter out runtime files from snippet generation
|
|
338
|
+
originalContent = `function createSnippets(stepsInFile) {
|
|
339
|
+
for (const file of stepsInFile.keys()) {
|
|
340
|
+
let source;
|
|
341
|
+
try {
|
|
342
|
+
source = import_fs.default.readFileSync(file, "utf-8") + "\\n//";
|
|
343
|
+
} catch (e) {
|
|
344
|
+
continue;
|
|
345
|
+
}`;
|
|
346
|
+
newContent = `function createSnippets(stepsInFile) {
|
|
347
|
+
for (const file of stepsInFile.keys()) {
|
|
348
|
+
// Skip runtime files to reduce report size
|
|
349
|
+
if (file.includes('@checksum-ai/runtime') || file.includes('node_modules')) {
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
let source;
|
|
353
|
+
try {
|
|
354
|
+
source = import_fs.default.readFileSync(file, "utf-8") + "\\n//";
|
|
355
|
+
} catch (e) {
|
|
356
|
+
continue;
|
|
357
|
+
}`;
|
|
358
|
+
replaceContent(file, originalContent, newContent);
|
|
359
|
+
|
|
360
|
+
// Also filter from error codeframe generation
|
|
361
|
+
originalContent = `function createErrorCodeframe(message, location) {
|
|
362
|
+
let source;
|
|
363
|
+
try {
|
|
364
|
+
source = import_fs.default.readFileSync(location.file, "utf-8") + "\\n//";
|
|
365
|
+
} catch (e) {
|
|
366
|
+
return;
|
|
367
|
+
}`;
|
|
368
|
+
newContent = `function createErrorCodeframe(message, location) {
|
|
369
|
+
// Skip runtime files to reduce report size
|
|
370
|
+
if (location.file && (location.file.includes('@checksum-ai/runtime') || location.file.includes('node_modules'))) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
let source;
|
|
374
|
+
try {
|
|
375
|
+
source = import_fs.default.readFileSync(location.file, "utf-8") + "\\n//";
|
|
376
|
+
} catch (e) {
|
|
377
|
+
return;
|
|
378
|
+
}`;
|
|
379
|
+
replaceContent(file, originalContent, newContent);
|
|
380
|
+
}
|
|
381
|
+
|
|
326
382
|
// -------- [Run] -------- //
|
|
327
383
|
|
|
328
384
|
const isRuntime = true || process.env.RUNTIME === "true";
|
|
@@ -340,6 +396,7 @@ function run(projectPath) {
|
|
|
340
396
|
stackTrace(projectPath);
|
|
341
397
|
indexContent(projectPath);
|
|
342
398
|
reportTraceFile(projectPath);
|
|
399
|
+
htmlReporter(projectPath);
|
|
343
400
|
}
|
|
344
401
|
} else {
|
|
345
402
|
console.warn("Project path not found", projectPath);
|