@arcadialdev/arcality 2.4.21 → 2.4.23
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/bin/arcality.mjs +16 -9
- package/package.json +69 -66
- package/playwright.config.js +5 -5
- package/tests/_helpers/agentic-runner.bundle.spec.js +2539 -0
package/bin/arcality.mjs
CHANGED
|
@@ -11,12 +11,17 @@ const __dirname = path.dirname(__filename);
|
|
|
11
11
|
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
12
12
|
|
|
13
13
|
const args = process.argv.slice(2);
|
|
14
|
-
const
|
|
14
|
+
const isInit = args.includes('init');
|
|
15
|
+
const isRun = args.includes('run');
|
|
16
|
+
const isSetup = args.includes('setup');
|
|
17
|
+
const isVersion = args.includes('--version') || args.includes('-v');
|
|
18
|
+
const isHelp = args.includes('--help') || args.includes('-h') || args.includes('help');
|
|
15
19
|
|
|
16
20
|
// ── Subcommand: arcality init ──
|
|
17
|
-
if (
|
|
21
|
+
if (isInit) {
|
|
22
|
+
const initArgs = args.filter(a => a !== 'init');
|
|
18
23
|
const initScript = path.join(PACKAGE_ROOT, 'scripts', 'init.mjs');
|
|
19
|
-
const child = spawn('node', [initScript, ...
|
|
24
|
+
const child = spawn('node', [initScript, ...initArgs], {
|
|
20
25
|
stdio: 'inherit',
|
|
21
26
|
cwd: process.cwd(), // Run in the user's project directory
|
|
22
27
|
env: { ...process.env, ARCALITY_ROOT: PACKAGE_ROOT }
|
|
@@ -24,9 +29,10 @@ if (subcommand === 'init') {
|
|
|
24
29
|
child.on('exit', code => process.exit(code || 0));
|
|
25
30
|
|
|
26
31
|
// ── Subcommand: arcality run ──
|
|
27
|
-
} else if (
|
|
32
|
+
} else if (isRun) {
|
|
33
|
+
const runArgs = args.filter(a => a !== 'run');
|
|
28
34
|
const mainScript = path.join(PACKAGE_ROOT, 'scripts', 'gen-and-run.mjs');
|
|
29
|
-
const child = spawn('node', [mainScript, '--agent', ...
|
|
35
|
+
const child = spawn('node', [mainScript, '--agent', ...runArgs], {
|
|
30
36
|
stdio: 'inherit',
|
|
31
37
|
cwd: process.cwd(),
|
|
32
38
|
env: { ...process.env, ARCALITY_ROOT: PACKAGE_ROOT }
|
|
@@ -34,9 +40,10 @@ if (subcommand === 'init') {
|
|
|
34
40
|
child.on('exit', code => process.exit(code || 0));
|
|
35
41
|
|
|
36
42
|
// ── Subcommand: arcality setup (legacy) ──
|
|
37
|
-
} else if (
|
|
43
|
+
} else if (isSetup) {
|
|
44
|
+
const setupArgs = args.filter(a => a !== 'setup');
|
|
38
45
|
const setupScript = path.join(PACKAGE_ROOT, 'scripts', 'setup.mjs');
|
|
39
|
-
const child = spawn('node', [setupScript, ...
|
|
46
|
+
const child = spawn('node', [setupScript, ...setupArgs], {
|
|
40
47
|
stdio: 'inherit',
|
|
41
48
|
cwd: PACKAGE_ROOT,
|
|
42
49
|
env: { ...process.env, ARCALITY_ROOT: PACKAGE_ROOT }
|
|
@@ -44,7 +51,7 @@ if (subcommand === 'init') {
|
|
|
44
51
|
child.on('exit', code => process.exit(code || 0));
|
|
45
52
|
|
|
46
53
|
// ── Subcommand: arcality version ──
|
|
47
|
-
} else if (
|
|
54
|
+
} else if (isVersion) {
|
|
48
55
|
const fs = await import('node:fs');
|
|
49
56
|
try {
|
|
50
57
|
const pkg = JSON.parse(fs.default.readFileSync(path.join(PACKAGE_ROOT, 'package.json'), 'utf8'));
|
|
@@ -54,7 +61,7 @@ if (subcommand === 'init') {
|
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
// ── Subcommand: arcality help ──
|
|
57
|
-
} else if (
|
|
64
|
+
} else if (isHelp) {
|
|
58
65
|
const fs = await import('node:fs');
|
|
59
66
|
let version = 'unknown';
|
|
60
67
|
try {
|
package/package.json
CHANGED
|
@@ -1,66 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@arcadialdev/arcality",
|
|
3
|
-
"version": "2.4.
|
|
4
|
-
"description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "node scripts/gen-and-run.mjs",
|
|
8
|
-
"arcality": "node scripts/gen-and-run.mjs",
|
|
9
|
-
"postinstall": "node scripts/postinstall.mjs",
|
|
10
|
-
"setup": "node scripts/setup.mjs"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"@types/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@arcadialdev/arcality",
|
|
3
|
+
"version": "2.4.23",
|
|
4
|
+
"description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "node scripts/gen-and-run.mjs",
|
|
8
|
+
"arcality": "node scripts/gen-and-run.mjs",
|
|
9
|
+
"postinstall": "node scripts/postinstall.mjs",
|
|
10
|
+
"setup": "node scripts/setup.mjs",
|
|
11
|
+
"build:runner": "npx esbuild tests/_helpers/agentic-runner.spec.ts --bundle --platform=node --target=node18 --format=cjs --external:@playwright/test --external:chalk --external:dotenv --external:node-fetch --external:js-yaml --external:axios --external:crypto --external:fs --external:path --outfile=tests/_helpers/agentic-runner.bundle.spec.js",
|
|
12
|
+
"prepublishOnly": "npm run build:runner"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"arcality": "bin/arcality.mjs"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/",
|
|
19
|
+
"scripts/",
|
|
20
|
+
"src/",
|
|
21
|
+
"tests/_helpers/",
|
|
22
|
+
".agents/",
|
|
23
|
+
"public/",
|
|
24
|
+
"playwright.config.js",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://dev.azure.com/arcadial/_git/ArcalityQA"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"qa",
|
|
36
|
+
"testing",
|
|
37
|
+
"ai",
|
|
38
|
+
"playwright",
|
|
39
|
+
"autonomous",
|
|
40
|
+
"arcadial"
|
|
41
|
+
],
|
|
42
|
+
"author": "Arcadial",
|
|
43
|
+
"license": "ISC",
|
|
44
|
+
"type": "commonjs",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://dev.azure.com/arcadial/_git/ArcalityQA"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://dev.azure.com/arcadial/_git/ArcalityQA",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/figlet": "^1.7.0",
|
|
51
|
+
"@types/node": "^25.0.9",
|
|
52
|
+
"@types/prompts": "^2.4.9",
|
|
53
|
+
"esbuild": "^0.20.2"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@clack/prompts": "^1.0.1",
|
|
57
|
+
"@inquirer/prompts": "^8.2.0",
|
|
58
|
+
"@playwright/test": "^1.57.0",
|
|
59
|
+
"axios": "^1.13.6",
|
|
60
|
+
"chalk": "^5.6.2",
|
|
61
|
+
"dotenv": "^17.2.3",
|
|
62
|
+
"figlet": "^1.9.4",
|
|
63
|
+
"js-yaml": "^4.1.1",
|
|
64
|
+
"node-fetch": "^3.3.2",
|
|
65
|
+
"prompts": "^2.4.2",
|
|
66
|
+
"terminal-image": "^1.1.0",
|
|
67
|
+
"tsx": "^4.21.0"
|
|
68
|
+
}
|
|
69
|
+
}
|
package/playwright.config.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// playwright.config.js
|
|
2
2
|
'use strict';
|
|
3
3
|
const { defineConfig, devices } = require('@playwright/test');
|
|
4
|
+
const path = require('path');
|
|
4
5
|
|
|
5
6
|
module.exports = defineConfig({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
testDir: './tests/_helpers',
|
|
9
|
-
testMatch: 'agentic-runner.spec.ts',
|
|
7
|
+
testDir: path.join(__dirname, 'tests', '_helpers'),
|
|
8
|
+
testMatch: ['agentic-runner.bundle.spec.js'],
|
|
10
9
|
reporter: [
|
|
11
|
-
['
|
|
10
|
+
[path.join(__dirname, 'tests', '_helpers', 'ArcalityReporter.js'),
|
|
11
|
+
{ outputDir: process.env.REPORTS_DIR || path.join(__dirname, 'tests-report') }]
|
|
12
12
|
],
|
|
13
13
|
use: {
|
|
14
14
|
video: 'on',
|