qa-intelligence 1.1.5 → 1.1.6

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 CHANGED
@@ -27,9 +27,18 @@ npm install # installs qa-intelligence + @playwright/test (see playwr
27
27
  npx playwright install
28
28
  ```
29
29
 
30
+ For **local runs with AI failure analysis** (generates `ai.txt` in artifacts — needed for `qa-intelligence-diff`), add to `playwright/.env`:
31
+
32
+ ```bash
33
+ AI_ANALYSIS=true
34
+ OPENAI_API_KEY=sk-...
35
+ ```
36
+
37
+ CI sets `AI_ANALYSIS=true` in the workflow; locally you must enable it yourself.
38
+
30
39
  `init` scaffolds:
31
40
 
32
- - `playwright/` — `.env.example`, `package.json`, `tsconfig.json`, `playwright.config.ts`, example test
41
+ - `playwright/` — `.env.example`, `.gitignore`, `package.json`, `tsconfig.json`, `playwright.config.ts`, example test
33
42
  - `.github/workflows/qa-intelligence.yml` — PR diff, history, and comment (skip with `--no-ci`)
34
43
 
35
44
  **Then:** add `OPENAI_API_KEY` to GitHub secrets and set `BASE_URL` in the workflow file.
package/dist/cli/init.js CHANGED
@@ -10,6 +10,7 @@ const fs_1 = __importDefault(require("fs"));
10
10
  const path_1 = __importDefault(require("path"));
11
11
  const PLAYWRIGHT_SCAFFOLD = [
12
12
  { template: "playwright/.env.example", dest: "playwright/.env.example" },
13
+ { template: "playwright/.gitignore", dest: "playwright/.gitignore" },
13
14
  { template: "playwright/tsconfig.json", dest: "playwright/tsconfig.json" },
14
15
  {
15
16
  template: "playwright/playwright.config.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qa-intelligence",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "dependencies": {
8
8
  "@playwright/test": "^1.58.0",
9
- "qa-intelligence": "^1.1.5"
9
+ "qa-intelligence": "^1.1.6"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/node": "^22.0.0"