@arcadialdev/arcality 3.0.1 → 3.0.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcadialdev/arcality",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "El primer ingeniero QA Autónomo integrado al CI/CD. Creado por Arcadial.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,6 +18,7 @@
18
18
  "bin/",
19
19
  "scripts/",
20
20
  "src/",
21
+ "public/",
21
22
  ".agent/",
22
23
  ".agents/",
23
24
  "tests/_helpers/agentic-runner.bundle.spec.js",
Binary file
Binary file
Binary file
@@ -52,8 +52,22 @@ function processDirectory(reportDir, logoBase64) {
52
52
  html = html.replace(/at\s+.*?node_modules.*?(\n|\r)/g, '');
53
53
  html = html.replace(/at\s+.*?agentic-runner\.spec\.ts:\d+/g, '');
54
54
 
55
- // 3. Inyección de Estilos y Scripts (MODO AGRESIVO)
56
- const customStyles = `
55
+ // 3. Preserve custom Arcality reports before native Playwright styling.
56
+ // The custom Arcality report owns its visual system. Keep the
57
+ // aggressive Playwright rebrand injection for native reports only.
58
+ const isArcalityMissionConsole = html.includes('class="mission-brief"') || html.includes('Arcality QA Engine');
59
+ if (isArcalityMissionConsole) {
60
+ if (logoBase64) {
61
+ html = html.replace(/rel="shortcut icon" href=".*?"/g, `rel="shortcut icon" href="${logoBase64}"`);
62
+ html = html.replace(/rel="icon" href=".*?"/g, `rel="icon" href="${logoBase64}"`);
63
+ }
64
+ fs.writeFileSync(indexPath, html, 'utf8');
65
+ processTraceViewer(reportDir, logoBase64);
66
+ return;
67
+ }
68
+
69
+ // 4. Inyección de Estilos y Scripts (MODO AGRESIVO)
70
+ const customStyles = `
57
71
  <script id="arcality-branding-script">
58
72
  /* ARCALITY_BRANDING_SCRIPT */
59
73
  // 1. Limpieza de Caché y Service Worker