@arcadialdev/arcality 3.0.4 → 4.0.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 +75 -6
- package/bin/arcality.mjs +26 -17
- package/package.json +2 -1
- package/playwright.config.js +22 -21
- package/scripts/gen-and-run.mjs +2610 -2608
- package/scripts/generate.mjs +215 -0
- package/scripts/init.mjs +278 -253
- package/scripts/rebrand-report.mjs +19 -18
- package/src/configManager.mjs +57 -51
- package/src/services/codebaseAnalyzer.mjs +59 -0
- package/src/services/generatedMissionSchema.mjs +76 -0
- package/src/services/generatedMissionStore.mjs +117 -0
- package/src/services/generationContext.mjs +242 -0
- package/src/services/missionGenerator.mjs +328 -0
- package/src/services/routeDiscovery.mjs +747 -0
- package/src/testRunner.ts +2 -1
- package/tests/_helpers/agentic-runner.bundle.spec.js +401 -60
package/src/testRunner.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import 'dotenv/config';
|
|
2
2
|
import fs from 'node:fs';
|
|
3
|
+
import os from 'node:os';
|
|
3
4
|
import path from 'node:path';
|
|
4
5
|
import { spawn } from 'node:child_process';
|
|
5
6
|
import { select, isCancel, outro, spinner, text } from '@clack/prompts';
|
|
@@ -123,7 +124,7 @@ async function runPlaywright(selection: string): Promise<void> {
|
|
|
123
124
|
|
|
124
125
|
s.stop(chalk.green('✅ Test completed.'));
|
|
125
126
|
|
|
126
|
-
const reportPath = path.join(process.
|
|
127
|
+
const reportPath = path.join(process.env.REPORTS_DIR || path.join(os.tmpdir(), 'arcality', 'reports'), 'index.html');
|
|
127
128
|
if (fs.existsSync(reportPath)) {
|
|
128
129
|
if (isWin) {
|
|
129
130
|
spawn('cmd', ['/c', 'start', '""', `"${reportPath}"`], {
|