@arcadialdev/arcality 2.3.0 → 2.3.2
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/package.json
CHANGED
package/scripts/gen-and-run.mjs
CHANGED
|
@@ -732,7 +732,9 @@ async function main() {
|
|
|
732
732
|
const configFile = path.join(PROJECT_ROOT, 'playwright.config.ts');
|
|
733
733
|
|
|
734
734
|
try {
|
|
735
|
-
|
|
735
|
+
// IMPORTANT: Node 22.12+ breaks Playwright's TS transpiler (pirates.js) with sync require()
|
|
736
|
+
// We MUST pass --no-experimental-require-module to let Playwright compile TS safely.
|
|
737
|
+
await run("node", ["--no-experimental-require-module", playwrightCli, "test", path.join(PROJECT_ROOT, "tests/_helpers/agentic-runner.spec.ts"), "--headed", `--config=${configFile}`], {
|
|
736
738
|
env: mergedEnv,
|
|
737
739
|
onStatus: (msg) => s.message(msg)
|
|
738
740
|
});
|
|
@@ -24,22 +24,15 @@ async function rebrandReport() {
|
|
|
24
24
|
try {
|
|
25
25
|
const logoBuffer = fs.readFileSync(logoPngPath);
|
|
26
26
|
logoBase64 = `data:image/png;base64,${logoBuffer.toString('base64')}`;
|
|
27
|
-
|
|
28
|
-
} catch (e) {
|
|
29
|
-
console.error("⚠️ Error leyendo logo:", e.message);
|
|
30
|
-
}
|
|
31
|
-
} else {
|
|
32
|
-
console.warn("⚠️ No se encontró public/logo.png");
|
|
27
|
+
} catch (e) { /* silent */ }
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
for (const dir of targetDirs) {
|
|
36
31
|
if (fs.existsSync(dir)) {
|
|
37
|
-
console.log(`Processing report directory: ${dir}`);
|
|
38
32
|
processDirectory(dir, logoBase64);
|
|
39
33
|
}
|
|
40
34
|
}
|
|
41
|
-
|
|
42
|
-
console.log("🏁 Branding process finished.");
|
|
35
|
+
// Silent — CLI spinner communicates progress
|
|
43
36
|
}
|
|
44
37
|
|
|
45
38
|
function processDirectory(reportDir, logoBase64) {
|
|
@@ -168,7 +161,7 @@ function processDirectory(reportDir, logoBase64) {
|
|
|
168
161
|
}
|
|
169
162
|
|
|
170
163
|
fs.writeFileSync(indexPath, html, 'utf8');
|
|
171
|
-
|
|
164
|
+
// Silent success — CLI handles notification
|
|
172
165
|
} catch (err) {
|
|
173
166
|
console.error(`❌ Error al procesar ${indexPath}: ${err.message}`);
|
|
174
167
|
}
|
|
@@ -237,7 +230,7 @@ function processTraceViewer(reportDir, logoBase64) {
|
|
|
237
230
|
}
|
|
238
231
|
|
|
239
232
|
fs.writeFileSync(tracePath, traceHtml, 'utf8');
|
|
240
|
-
|
|
233
|
+
// Silent success
|
|
241
234
|
} catch (e) {
|
|
242
235
|
console.error(`⚠️ Error en Trace Viewer ${tracePath}: ${e.message}`);
|
|
243
236
|
}
|
|
@@ -61,7 +61,7 @@ class ArcalityReporter {
|
|
|
61
61
|
const htmlContent = this.generateHtml();
|
|
62
62
|
const reportPath = path.join(this.outputDir, 'index.html');
|
|
63
63
|
fs.writeFileSync(reportPath, htmlContent);
|
|
64
|
-
|
|
64
|
+
// Intentionally silent — CLI handles the report open notification
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
renderStep(step, depth) {
|