agentiqa 1.1.30 → 1.1.31
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/dist/cli.js +445 -385
- package/package.json +4 -3
- package/scripts/postinstall.cjs +14 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentiqa",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "AI-powered testing for web and mobile apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "dist/cli.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/cli.js",
|
|
9
|
-
"scripts/preinstall.cjs"
|
|
9
|
+
"scripts/preinstall.cjs",
|
|
10
|
+
"scripts/postinstall.cjs"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build": "npx tsx esbuild.config.ts",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"typecheck": "tsc --noEmit",
|
|
15
16
|
"cli": "npx tsx src/index.ts",
|
|
16
17
|
"preinstall": "node scripts/preinstall.cjs",
|
|
17
|
-
"postinstall": "
|
|
18
|
+
"postinstall": "node scripts/postinstall.cjs"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"@google/genai": "^1.7.0",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const path = require('node:path')
|
|
2
|
+
const { spawnSync } = require('node:child_process')
|
|
3
|
+
|
|
4
|
+
try {
|
|
5
|
+
const cli = path.join(path.dirname(require.resolve('playwright/package.json')), 'cli.js')
|
|
6
|
+
const result = spawnSync(process.execPath, [cli, 'install', 'chromium'], { stdio: 'inherit' })
|
|
7
|
+
if (result.error || result.status !== 0) {
|
|
8
|
+
throw result.error || new Error(`Playwright exited with status ${result.status}`)
|
|
9
|
+
}
|
|
10
|
+
} catch (error) {
|
|
11
|
+
process.stderr.write(`[agentiqa] warning: Chromium prefetch failed; it will be retried on first run (${error.message})\n`)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
process.exit(0)
|