@ia-qa/pal 1.7.2 → 1.8.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 +19 -4
- package/TUTORIAL.md +18 -9
- package/dist/browser.d.ts +37 -0
- package/dist/browser.js +122 -0
- package/dist/browser.js.map +1 -0
- package/dist/cli/index.js +29 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/discovery.d.ts +69 -0
- package/dist/discovery.js +136 -0
- package/dist/discovery.js.map +1 -0
- package/dist/mcp/server.d.ts +722 -0
- package/dist/mcp/server.js +24 -4
- package/dist/mcp/server.js.map +1 -1
- package/dist/report.d.ts +14 -0
- package/dist/report.js +26 -9
- package/dist/report.js.map +1 -1
- package/dist/setup.d.ts +5 -0
- package/dist/setup.js +33 -36
- package/dist/setup.js.map +1 -1
- package/dist/shortcut.d.ts +65 -0
- package/dist/shortcut.js +157 -0
- package/dist/shortcut.js.map +1 -0
- package/dist/ui/page.js +242 -4
- package/dist/ui/page.js.map +1 -1
- package/dist/ui/server.d.ts +27 -0
- package/dist/ui/server.js +221 -9
- package/dist/ui/server.js.map +1 -1
- package/package.json +2 -1
- package/skills/ia-qa-pal/SKILL.md +13 -1
package/README.md
CHANGED
|
@@ -24,14 +24,23 @@ npx -p @ia-qa/pal ia-qa-pal skill --install # into .claude/skills/, where age
|
|
|
24
24
|
things v1 was asked for and deliberately does differently, what is not built yet and what will
|
|
25
25
|
never be built — a hosted version, an LLM near the verdict, automatic repairs, a percentage.
|
|
26
26
|
|
|
27
|
-
## Install
|
|
27
|
+
## Install — and start
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
npm i -D @ia-qa/pal
|
|
31
|
-
npx
|
|
31
|
+
npx ia-qa-pal ui
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
That is the whole install. Your browser opens on the console, which asks where the app lives and how it logs in, shows the one file it will write, and starts the first tour from a button.
|
|
35
|
+
|
|
36
|
+
**Then make it an app:** *🖥️ Desktop icon* in the console (or `npx ia-qa-pal ui --shortcut`) puts **ia-qa-pal — <your project>** on your desktop. Double-click it next time — no terminal. On Windows it starts without a window in your way (one taskbar entry while it runs) and stops by itself a little after you close the tab.
|
|
37
|
+
|
|
38
|
+
**Or let your AI agent do all of it.** The prompt on [ia-qa.com/mcp-server](https://www.ia-qa.com/mcp-server) (*One prompt, any agent*) installs pal in your project, puts the icon on your desktop, and — if you prefer — sets the project up with your answers. It asks before installing anything and before any download.
|
|
39
|
+
|
|
40
|
+
- **One install is the whole toolkit.** `@ia-qa/pal` brings [`@ia-qa/self-healing`](https://www.npmjs.com/package/@ia-qa/self-healing) (`ia-qa-heal`: repairs, the repair console) and [`@ia-qa/qa-discovery`](https://www.npmjs.com/package/@ia-qa/qa-discovery) (`ia-qa-discover`: what exists in the app, which pages no test visits) — eight commands in `node_modules/.bin`. Each one still works on its own.
|
|
41
|
+
- **The browser.** A tour reuses Chrome or Edge when one is installed. When none can be opened, the console and the terminal say so and offer to download Chromium (about 150 MB, from Playwright's servers — nothing about your app is sent). By hand: `npx playwright install chromium`.
|
|
42
|
+
|
|
43
|
+
## Use in a terminal
|
|
35
44
|
|
|
36
45
|
```bash
|
|
37
46
|
npx ia-qa-pal tour
|
|
@@ -97,12 +106,16 @@ npx ia-qa-pal ui
|
|
|
97
106
|
|
|
98
107
|
Your browser opens on a page that does the whole loop from buttons:
|
|
99
108
|
|
|
109
|
+
- **Setting up**, in a folder that has no config yet: the app address, how it logs in (none / by hand in a browser / the session file your tests save) and, when the project holds tests, whether to read them. *Show me what it writes* reads the pages (from `sitemap.xml`, else by following links — same site, reading only, at most 50) and writes nothing; *Write it* writes exactly that, never over an existing config. With a login by hand, the browser window opens right after.
|
|
110
|
+
- **No browser?** Said at the top of the page, with a button that installs Chromium and what that download is.
|
|
111
|
+
|
|
100
112
|
[](https://www.ia-qa.com/media/pal-console.png)
|
|
101
113
|
|
|
102
114
|
- **Who the tour runs as.** Every user the project knows (see *Several users* below), whether each one still has a working session, a **Check** button that asks the app, and **Log in** — a browser window opens on your app, you log in, and it is saved by itself the moment the app actually opens. Nothing to come back and confirm; the *I have logged in* button is there if your login cannot be seen from outside.
|
|
103
115
|
- **Run a tour**, as the user you choose, optionally with your tests.
|
|
104
116
|
- **Now** — the phase, *page N of M*, the last line your tests printed, and the last heartbeat. A tour that has said nothing for a while says so, instead of looking the same as a working one.
|
|
105
|
-
- **Last result** and **History** — the mood, the counts, who it ran as, and the full report one click away.
|
|
117
|
+
- **Last result** and **History** — the mood and *why*, in the terminal's own words: the headline, anything under *Read this first*, and what is broken (each dead link with the page that links to it). Then the counts, who it ran as, and the full report one click away.
|
|
118
|
+
- **What exists — and what your tests miss.** *Scan the app* runs `ia-qa-discover scan` (a local browser, same site, reading only) and links its map of the app. When a tour has watched your tests run (*also run my tests*), the same card names the pages the scan found that **no test visits** — counts and page names, never a percentage, with the date of both halves. With no suite declared, it says so instead of showing a gap.
|
|
106
119
|
- **The repair console, when it is time for it.** When a tour leaves elements for a person to decide or repairs ready to apply, the result says how many and offers **Decide and repair** — it opens `ia-qa-heal ui` on the same project, where each row is shown side by side and nothing is applied until you say so. The **Repair console** link in the header opens it any time.
|
|
107
120
|
|
|
108
121
|
[](https://www.ia-qa.com/media/pal-console-result.png)
|
|
@@ -235,6 +248,8 @@ One tour runs per project; a second is refused while the first is alive, and a t
|
|
|
235
248
|
|
|
236
249
|
`ia-qa-pal-mcp` is the same thing as a local stdio MCP server — `pal_project`, `pal_setup`, `pal_tour` (always in the background, so no client times out) and `pal_status`. No tool takes a command, and there is no login tool.
|
|
237
250
|
|
|
251
|
+
**One server for the whole toolkit.** `ia-qa-pal-mcp` also lists the tools of `ia-qa-heal-mcp` (`map_app`, `diff_mappings`, `fix_tests`, `explain_failure`, `check_app`, …) and of `ia-qa-discover-mcp` (`scan_app`, `coverage_map`, `plan_pages`, …), answered by those packages' own code — so configuring this one server gives an agent everything, and a test holds each answer identical to the sibling server's. Two of them send data to a model with your own key (`classify_app`, `plan_pages`), and their descriptions say exactly what leaves.
|
|
252
|
+
|
|
238
253
|
```json
|
|
239
254
|
{ "mcpServers": { "ia-qa-pal": { "command": "npx", "args": ["-y", "-p", "@ia-qa/pal", "ia-qa-pal-mcp"] } } }
|
|
240
255
|
```
|
package/TUTORIAL.md
CHANGED
|
@@ -6,12 +6,11 @@ It is not a QA engineer. It does not know what your app *should* do, so it never
|
|
|
6
6
|
|
|
7
7
|
Everything runs on your machine, in a headless browser. Nothing is uploaded. No LLM decides anything.
|
|
8
8
|
|
|
9
|
-
> **
|
|
10
|
-
>
|
|
11
|
-
> - **`@ia-qa/
|
|
12
|
-
> - **`@ia-qa/self-healing`** is the engine under pal. Installed on its own, it **applies** the repairs pal only lists.
|
|
9
|
+
> **One install, the whole toolkit.** Installing pal installs its two siblings too, and each adds an answer pal cannot give:
|
|
10
|
+
> - **`@ia-qa/qa-discovery`** (`ia-qa-discover`) knows every page that *exists* — so with pal's `--suite` run it names the pages **no test visits**, not only among the pages you declared.
|
|
11
|
+
> - **`@ia-qa/self-healing`** (`ia-qa-heal`) is the engine under pal. It **applies** the repairs pal only lists.
|
|
13
12
|
>
|
|
14
|
-
> The whole workflow
|
|
13
|
+
> Sections 1 to 12 need nothing but pal. The whole workflow is in [section 13 — all three together](https://www.ia-qa.com/devtools/pal/tutorial#13-all-three-together).
|
|
15
14
|
|
|
16
15
|
---
|
|
17
16
|
|
|
@@ -21,9 +20,17 @@ Node 18 or newer.
|
|
|
21
20
|
|
|
22
21
|
```bash
|
|
23
22
|
npm i -D @ia-qa/pal
|
|
24
|
-
npx
|
|
23
|
+
npx ia-qa-pal ui
|
|
25
24
|
```
|
|
26
25
|
|
|
26
|
+
The second line opens the console in your browser. In a folder with no config it starts on the setup — where the app lives, how it logs in, your tests — shows the one file it will write, and runs the first tour from a button. Prefer a terminal? Section 2 does the same with `tour`.
|
|
27
|
+
|
|
28
|
+
**An icon instead of a command.** Click *🖥️ Desktop icon* at the top of the console (or run `npx ia-qa-pal ui --shortcut`): **ia-qa-pal — <your project>** appears on your desktop, and double-clicking it opens pal on that project. On Windows no window stays open — the console stops by itself a little after you close the tab. On macOS it opens in Terminal, with the default icon.
|
|
29
|
+
|
|
30
|
+
**With an AI agent.** Paste the prompt from [ia-qa.com/mcp-server](https://www.ia-qa.com/mcp-server) (*One prompt, any agent*): it installs pal in the project, puts the icon on your desktop, and can run the setup with your answers. It asks before installing anything.
|
|
31
|
+
|
|
32
|
+
**The browser.** A tour reuses Chrome or Edge when one is installed. When none can be opened, the console (a button) and the terminal (a question) offer to download Chromium — about 150 MB from Playwright's servers; nothing about your app is sent. By hand: `npx playwright install chromium`.
|
|
33
|
+
|
|
27
34
|
Check it answers:
|
|
28
35
|
|
|
29
36
|
```bash
|
|
@@ -449,14 +456,16 @@ npx ia-qa-pal ui
|
|
|
449
456
|
|
|
450
457
|
[](https://www.ia-qa.com/media/pal-console.png)
|
|
451
458
|
|
|
459
|
+
0. **Setting up**, in a folder with no config: where the app lives, how it logs in, your tests. *Show me what it writes* finds the pages and writes nothing; *Write it* writes exactly that. When no browser can be opened, the top of the page says so and offers to install one.
|
|
452
460
|
1. **Who the tour runs as.** Each user the project knows, with **Check** (does the session still open the app?) and **Log in** — a browser window opens on your app, you log in, and it is saved by itself. No user yet: type a name, then *Log in as this user*.
|
|
453
461
|
2. **Run a tour.** Pick the user (with several, the page never picks for you), tick *also run my tests* if you want the pages your suite never visits, then **Start the tour**. If the tour logs in with a form and a secret it needs is not set, the page says which one before starting and fills in the field to store it — you never wait for a tour that was going to die in its first second.
|
|
454
462
|
3. **Now** follows it: the phase, *page N of M*, the page being walked, the last heartbeat. You can close the tab; the tour keeps going and the page picks it up when you come back. A tour that failed shows its reason here.
|
|
455
|
-
4. **Last result.** The mood, the counts, who it ran as, and the full report. When there are elements to decide or repairs ready, **Decide and repair** opens the repair console (`ia-qa-heal ui`) on the same project — each row side by side, nothing applied until you say so.
|
|
463
|
+
4. **Last result.** The mood and why — the headline, *Read this first*, and each broken link with the page that links to it — then the counts, who it ran as, and the full report. When there are elements to decide or repairs ready, **Decide and repair** opens the repair console (`ia-qa-heal ui`) on the same project — each row side by side, nothing applied until you say so.
|
|
456
464
|
|
|
457
465
|
[](https://www.ia-qa.com/media/pal-console-result.png)
|
|
458
466
|
|
|
459
|
-
5. **
|
|
467
|
+
5. **What exists — and what your tests miss.** *Scan the app* maps every page a visitor can reach (section 13, step 1), and *Open the app map* shows it. Once a tour has watched your tests run, the card names the pages no test visits.
|
|
468
|
+
6. **Secrets.** Listed by name, never by value. **Set a value** stores one in this machine's credential store — `.ia-qa/config.json` is not changed, and a variable set in your shell still wins, so CI behaves as before.
|
|
460
469
|
|
|
461
470
|
It works the same on a phone-sized window and in dark mode:
|
|
462
471
|
|
|
@@ -665,7 +674,7 @@ Each one is complete. Together they give the sentence none of them can say alone
|
|
|
665
674
|
|
|
666
675
|
> This is your app. These pages are tested, those are not. Since last week, this broke — and here is the fix.
|
|
667
676
|
|
|
668
|
-
They meet on your disk, not through a server: the same page names on both sides, pal and self-healing in `.ia-qa/`, discovery in `.ia-qa-discovery/`, and a login session any of them can reuse.
|
|
677
|
+
They meet on your disk, not through a server: the same page names on both sides, pal and self-healing in `.ia-qa/`, discovery in `.ia-qa-discovery/`, and a login session any of them can reuse. With `@ia-qa/pal` installed, all three are in the project already (`npx ia-qa-discover …` works as is); every command below still carries `-p`, so it also runs where only one of them is installed.
|
|
669
678
|
|
|
670
679
|
### Step 1 — Know the app (discovery)
|
|
671
680
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is there a browser a tour can open — and if not, install one without sending anybody to a terminal.
|
|
3
|
+
*
|
|
4
|
+
* The probe is heal's own `launchBrowser`, the resolution every capture goes through (explicit
|
|
5
|
+
* path, channel, the bundled Chromium, then the system Chrome or Edge), so "ready" here means
|
|
6
|
+
* exactly what a tour will find. Asking a cheaper question — does the Chromium file exist —
|
|
7
|
+
* would call a machine with Edge unready and download 150 MB it never needed.
|
|
8
|
+
*
|
|
9
|
+
* The install runs the Playwright CLI THIS package resolves, never `npx playwright`: npx may
|
|
10
|
+
* fetch another version, whose Chromium revision is not the one the capture launches. It is a
|
|
11
|
+
* download from Playwright's CDN, so it is announced before it starts and only ever asked for.
|
|
12
|
+
*/
|
|
13
|
+
export interface BrowserStatus {
|
|
14
|
+
ready: boolean;
|
|
15
|
+
/** What a tour will launch, when ready. */
|
|
16
|
+
using?: string;
|
|
17
|
+
/** Why none could be launched, first line only. */
|
|
18
|
+
reason?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const INSTALL_COMMAND = "npx playwright install chromium";
|
|
21
|
+
export declare const INSTALL_NOTICE = "Downloads Chromium (about 150 MB) from Playwright's servers into the shared Playwright cache on this machine. Nothing about your app is sent.";
|
|
22
|
+
export declare function probeBrowser(): Promise<BrowserStatus>;
|
|
23
|
+
/** The Playwright CLI the capture uses: resolved from here, the same copy `@ia-qa/self-healing` loads. */
|
|
24
|
+
export declare function playwrightCli(): string;
|
|
25
|
+
export declare function installArgv(cli?: string): string[];
|
|
26
|
+
export declare function installChromium(onLine?: (line: string) => void, cli?: string): Promise<{
|
|
27
|
+
ok: boolean;
|
|
28
|
+
code: number | null;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* The terminal half: say what is missing, offer the download, install, and check again.
|
|
32
|
+
* Answers `ready` only on a second probe — an installer's exit code is not a launched browser.
|
|
33
|
+
*/
|
|
34
|
+
export declare function ensureBrowser(opts: {
|
|
35
|
+
ask?: (q: string) => Promise<string>;
|
|
36
|
+
onProgress: (line: string) => void;
|
|
37
|
+
}): Promise<BrowserStatus>;
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.INSTALL_NOTICE = exports.INSTALL_COMMAND = void 0;
|
|
37
|
+
exports.probeBrowser = probeBrowser;
|
|
38
|
+
exports.playwrightCli = playwrightCli;
|
|
39
|
+
exports.installArgv = installArgv;
|
|
40
|
+
exports.installChromium = installChromium;
|
|
41
|
+
exports.ensureBrowser = ensureBrowser;
|
|
42
|
+
const fs = __importStar(require("fs"));
|
|
43
|
+
const path = __importStar(require("path"));
|
|
44
|
+
const child_process_1 = require("child_process");
|
|
45
|
+
const self_healing_1 = require("@ia-qa/self-healing");
|
|
46
|
+
exports.INSTALL_COMMAND = 'npx playwright install chromium';
|
|
47
|
+
exports.INSTALL_NOTICE = 'Downloads Chromium (about 150 MB) from Playwright\'s servers into the shared Playwright cache on this machine. Nothing about your app is sent.';
|
|
48
|
+
async function probeBrowser() {
|
|
49
|
+
try {
|
|
50
|
+
const { browser, using } = await (0, self_healing_1.launchBrowser)();
|
|
51
|
+
await browser.close().catch(() => { });
|
|
52
|
+
return { ready: true, using };
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
const first = (err instanceof Error ? err.message : String(err)).split('\n')[0];
|
|
56
|
+
return { ready: false, reason: first };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/** The Playwright CLI the capture uses: resolved from here, the same copy `@ia-qa/self-healing` loads. */
|
|
60
|
+
function playwrightCli() {
|
|
61
|
+
return path.join(path.dirname(require.resolve('playwright/package.json')), 'cli.js');
|
|
62
|
+
}
|
|
63
|
+
function installArgv(cli = playwrightCli()) {
|
|
64
|
+
return [cli, 'install', 'chromium'];
|
|
65
|
+
}
|
|
66
|
+
async function installChromium(onLine = () => { }, cli) {
|
|
67
|
+
const argv = installArgv(cli);
|
|
68
|
+
if (!fs.existsSync(argv[0])) {
|
|
69
|
+
onLine(`Playwright's CLI is not where it should be (${argv[0]}). Run: ${exports.INSTALL_COMMAND}`);
|
|
70
|
+
return { ok: false, code: null };
|
|
71
|
+
}
|
|
72
|
+
return new Promise((resolve) => {
|
|
73
|
+
const child = (0, child_process_1.spawn)(process.execPath, argv, { stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true });
|
|
74
|
+
const relay = (chunk) => {
|
|
75
|
+
for (const line of chunk.toString().split(/\r?\n|\r/))
|
|
76
|
+
if (line.trim())
|
|
77
|
+
onLine(line.trim());
|
|
78
|
+
};
|
|
79
|
+
child.stdout.on('data', relay);
|
|
80
|
+
child.stderr.on('data', relay);
|
|
81
|
+
child.on('error', (err) => {
|
|
82
|
+
onLine(err.message);
|
|
83
|
+
resolve({ ok: false, code: null });
|
|
84
|
+
});
|
|
85
|
+
child.on('close', (code) => resolve({ ok: code === 0, code }));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The terminal half: say what is missing, offer the download, install, and check again.
|
|
90
|
+
* Answers `ready` only on a second probe — an installer's exit code is not a launched browser.
|
|
91
|
+
*/
|
|
92
|
+
async function ensureBrowser(opts) {
|
|
93
|
+
const first = await probeBrowser();
|
|
94
|
+
if (first.ready)
|
|
95
|
+
return first;
|
|
96
|
+
const say = opts.onProgress;
|
|
97
|
+
say(`🌐 No browser a tour can open: ${first.reason}`);
|
|
98
|
+
if (!opts.ask) {
|
|
99
|
+
say(` Install one with: ${exports.INSTALL_COMMAND} (or set IAQA_BROWSER_CHANNEL=chrome|msedge to reuse an installed one)`);
|
|
100
|
+
return first;
|
|
101
|
+
}
|
|
102
|
+
say(` ${exports.INSTALL_NOTICE}`);
|
|
103
|
+
const answer = (await opts.ask('Install Chromium now? [Y/n] ')).trim().toLowerCase();
|
|
104
|
+
if (answer !== '' && answer !== 'y' && answer !== 'yes') {
|
|
105
|
+
say(` Not installed. When you want it: ${exports.INSTALL_COMMAND}`);
|
|
106
|
+
return first;
|
|
107
|
+
}
|
|
108
|
+
let last = '';
|
|
109
|
+
const done = await installChromium((line) => {
|
|
110
|
+
if (line !== last && !/^\|/.test(line))
|
|
111
|
+
say(` ${line}`);
|
|
112
|
+
last = line;
|
|
113
|
+
});
|
|
114
|
+
if (!done.ok) {
|
|
115
|
+
say(` The install did not finish (exit ${done.code ?? 'none'}). Try it by hand: ${exports.INSTALL_COMMAND}`);
|
|
116
|
+
return first;
|
|
117
|
+
}
|
|
118
|
+
const again = await probeBrowser();
|
|
119
|
+
say(again.ready ? `✅ Browser ready: ${again.using}` : ` Installed, but still no browser opens: ${again.reason}`);
|
|
120
|
+
return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GAAG,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACb,GAAG,CAAC,uCAAuC,IAAI,CAAC,IAAI,IAAI,MAAM,sBAAsB,uBAAe,EAAE,CAAC,CAAC;QACvG,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,YAAY,EAAE,CAAC;IACnC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,6CAA6C,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACnH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/cli/index.js
CHANGED
|
@@ -45,6 +45,8 @@ const rebaseline_1 = require("../rebaseline");
|
|
|
45
45
|
const skill_1 = require("./skill");
|
|
46
46
|
const project_1 = require("../project");
|
|
47
47
|
const server_1 = require("../ui/server");
|
|
48
|
+
const browser_1 = require("../browser");
|
|
49
|
+
const shortcut_1 = require("../shortcut");
|
|
48
50
|
const VERSION = require('../../package.json').version;
|
|
49
51
|
const HELP = `ia-qa-pal — a QA pal next to your team
|
|
50
52
|
|
|
@@ -121,7 +123,10 @@ Usage:
|
|
|
121
123
|
--open open it in your browser
|
|
122
124
|
--config <dir> project folder (default: here)
|
|
123
125
|
|
|
124
|
-
ia-qa-pal ui The console
|
|
126
|
+
ia-qa-pal ui The console. In a folder with no config it starts on the
|
|
127
|
+
setup (app, login, tests — preview, then write), and it
|
|
128
|
+
offers to install a browser when none can be opened.
|
|
129
|
+
Then: start a tour, follow it live (phase, page,
|
|
125
130
|
last line of your tests, heartbeat), see what it found,
|
|
126
131
|
and manage who it runs as — log a user in from a button,
|
|
127
132
|
check that a session still opens the app. Secrets are
|
|
@@ -130,6 +135,8 @@ Usage:
|
|
|
130
135
|
--port <n> fixed port (default: a free one)
|
|
131
136
|
--no-open print the link instead of opening your browser
|
|
132
137
|
--keep-alive stay up after the tab closes
|
|
138
|
+
--shortcut put an icon on your desktop that opens this console on
|
|
139
|
+
this project — double-click it next time, no terminal
|
|
133
140
|
--config <dir> project folder (default: here)
|
|
134
141
|
|
|
135
142
|
ia-qa-pal project Is this project set up, at what level, does a baseline
|
|
@@ -263,7 +270,12 @@ async function main() {
|
|
|
263
270
|
testCommand: valueOf(args, '--test-command'),
|
|
264
271
|
yes: args.includes('--yes'),
|
|
265
272
|
};
|
|
266
|
-
const outcome = interactive() && !json
|
|
273
|
+
const outcome = interactive() && !json
|
|
274
|
+
? await withPrompt(async (ask) => {
|
|
275
|
+
await (0, browser_1.ensureBrowser)({ ask, onProgress: (l) => process.stderr.write(`${l}\n`) });
|
|
276
|
+
return (0, setup_1.runSetup)({ ...options, ask });
|
|
277
|
+
})
|
|
278
|
+
: await (0, setup_1.runSetup)(options);
|
|
267
279
|
printSetup(outcome, json);
|
|
268
280
|
process.exitCode = outcome.written ? 0 : 2;
|
|
269
281
|
return;
|
|
@@ -322,6 +334,17 @@ async function main() {
|
|
|
322
334
|
process.exitCode = 2;
|
|
323
335
|
return;
|
|
324
336
|
}
|
|
337
|
+
if (args.includes('--shortcut')) {
|
|
338
|
+
const out = (0, shortcut_1.installPalShortcut)(dir);
|
|
339
|
+
if (out.ok)
|
|
340
|
+
process.stderr.write(`🖥 Icon on your desktop: ${out.file}\n Double-click it to open pal on ${dir}.\n`);
|
|
341
|
+
else
|
|
342
|
+
process.stderr.write(`❌ ${out.error}\n`);
|
|
343
|
+
for (const n of out.notes)
|
|
344
|
+
process.stderr.write(` ⚠️ ${n}\n`);
|
|
345
|
+
process.exitCode = out.ok ? 0 : 2;
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
325
348
|
const portRaw = valueOf(args, '--port');
|
|
326
349
|
const port = portRaw === undefined ? undefined : Number(portRaw);
|
|
327
350
|
if (port !== undefined && (!Number.isInteger(port) || port < 1 || port > 65535))
|
|
@@ -375,6 +398,10 @@ async function main() {
|
|
|
375
398
|
process.exitCode = started.started ? 0 : 2;
|
|
376
399
|
return;
|
|
377
400
|
}
|
|
401
|
+
if (interactive() && !json) {
|
|
402
|
+
// Before the questions and before any page: a tour with no browser fails on its first page.
|
|
403
|
+
await withPrompt((ask) => (0, browser_1.ensureBrowser)({ ask, onProgress: (l) => process.stderr.write(`${l}\n`) }));
|
|
404
|
+
}
|
|
378
405
|
if (!(0, setup_1.configExists)(dir) && interactive() && !json) {
|
|
379
406
|
process.stderr.write('This project is not set up yet — a few questions first.\n\n');
|
|
380
407
|
const outcome = await withPrompt((ask) => (0, setup_1.runSetup)({ dir, session: tourOptions.session, ask }));
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4DAA8C;AAC9C,2CAA6B;AAC7B,sCAAyC;AACzC,oCAAiE;AAEjE,gCAA4F;AAC5F,sCAAwC;AACxC,8CAA0D;AAC1D,8CAAkF;AAElF,mCAAmC;AACnC,wCAAyD;AACzD,yCAA0C;AAE1C,MAAM,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAiB,CAAC;AAEhE,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAgHsB,qBAAa;;;;;;;;;;CAU/C,CAAC;AAEF,SAAS,OAAO,CAAC,IAAc,EAAE,IAAY;IAC3C,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,KAAK,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,IA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CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACrC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,GAAG,YAAY,wBAAkB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QAC5J,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,OAAO,IAAI,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,KAAK,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@ia-qa/qa-discovery` from pal's console: what exists in the app, and which of it no test visits.
|
|
3
|
+
*
|
|
4
|
+
* Through the sibling's own CLI, with a fixed argv, like the repair console — never a second
|
|
5
|
+
* implementation of a scan or a gap. What comes back is kept to facts (counts, page names, the
|
|
6
|
+
* typed refusal); every sentence about them lives in discovery's own report, which is linked,
|
|
7
|
+
* so the console cannot word the gap differently from the package that computes it.
|
|
8
|
+
*
|
|
9
|
+
* A scan opens the app in a local browser (same site, GET only). Coverage reads files on disk.
|
|
10
|
+
* Neither sends anything anywhere; the BYOK layer (`ia-qa-discover-ai`) is not reached from here.
|
|
11
|
+
*/
|
|
12
|
+
export declare function discoverCliEntry(): string;
|
|
13
|
+
/** Discovery's HTML dossier — one file, rewritten by a scan and again by a coverage run. */
|
|
14
|
+
export declare const discoveryReport: (dir: string) => string;
|
|
15
|
+
export interface ScanSummary {
|
|
16
|
+
pagesCaptured: number;
|
|
17
|
+
pagesFound: number;
|
|
18
|
+
failed: Array<{
|
|
19
|
+
name: string;
|
|
20
|
+
url: string;
|
|
21
|
+
error: string;
|
|
22
|
+
}>;
|
|
23
|
+
loginWall: string[];
|
|
24
|
+
hrefBlind: boolean;
|
|
25
|
+
session: string | null;
|
|
26
|
+
sessionSource: string | null;
|
|
27
|
+
added: string[];
|
|
28
|
+
removed: string[];
|
|
29
|
+
changed: string[];
|
|
30
|
+
}
|
|
31
|
+
export type CoverageSummary = {
|
|
32
|
+
measured: false;
|
|
33
|
+
reason: 'no-surface' | 'no-healing' | 'no-run' | string;
|
|
34
|
+
} | {
|
|
35
|
+
measured: true;
|
|
36
|
+
visited: string[];
|
|
37
|
+
uncovered: Array<{
|
|
38
|
+
page: string;
|
|
39
|
+
url: string;
|
|
40
|
+
factors: string[];
|
|
41
|
+
}>;
|
|
42
|
+
uncoveredTotal: number;
|
|
43
|
+
cannotTell: string[];
|
|
44
|
+
outOfScope: string[];
|
|
45
|
+
contractedNotFound: string[];
|
|
46
|
+
/** What the scan could not see. Without it, a small gap reads as good news. */
|
|
47
|
+
notMeasured: {
|
|
48
|
+
loginWall: string[];
|
|
49
|
+
hrefBlind: boolean;
|
|
50
|
+
droppedByCap: number;
|
|
51
|
+
session: boolean;
|
|
52
|
+
};
|
|
53
|
+
recordedAt: string;
|
|
54
|
+
scannedAt: string;
|
|
55
|
+
testCommand: string | null;
|
|
56
|
+
};
|
|
57
|
+
export declare function scanTheApp(dir: string, baseUrl: string, opts?: {
|
|
58
|
+
entry?: string;
|
|
59
|
+
onLine?: (line: string) => void;
|
|
60
|
+
session?: string;
|
|
61
|
+
}): Promise<ScanSummary | {
|
|
62
|
+
error: string;
|
|
63
|
+
}>;
|
|
64
|
+
export declare function coverageOf(dir: string, opts?: {
|
|
65
|
+
entry?: string;
|
|
66
|
+
}): Promise<CoverageSummary | {
|
|
67
|
+
error: string;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const hasScan: (dir: string) => boolean;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.hasScan = exports.discoveryReport = void 0;
|
|
37
|
+
exports.discoverCliEntry = discoverCliEntry;
|
|
38
|
+
exports.scanTheApp = scanTheApp;
|
|
39
|
+
exports.coverageOf = coverageOf;
|
|
40
|
+
const fs = __importStar(require("fs"));
|
|
41
|
+
const path = __importStar(require("path"));
|
|
42
|
+
const child_process_1 = require("child_process");
|
|
43
|
+
/**
|
|
44
|
+
* `@ia-qa/qa-discovery` from pal's console: what exists in the app, and which of it no test visits.
|
|
45
|
+
*
|
|
46
|
+
* Through the sibling's own CLI, with a fixed argv, like the repair console — never a second
|
|
47
|
+
* implementation of a scan or a gap. What comes back is kept to facts (counts, page names, the
|
|
48
|
+
* typed refusal); every sentence about them lives in discovery's own report, which is linked,
|
|
49
|
+
* so the console cannot word the gap differently from the package that computes it.
|
|
50
|
+
*
|
|
51
|
+
* A scan opens the app in a local browser (same site, GET only). Coverage reads files on disk.
|
|
52
|
+
* Neither sends anything anywhere; the BYOK layer (`ia-qa-discover-ai`) is not reached from here.
|
|
53
|
+
*/
|
|
54
|
+
function discoverCliEntry() {
|
|
55
|
+
return path.join(path.dirname(require.resolve('@ia-qa/qa-discovery/package.json')), 'dist', 'cli', 'index.js');
|
|
56
|
+
}
|
|
57
|
+
/** Discovery's HTML dossier — one file, rewritten by a scan and again by a coverage run. */
|
|
58
|
+
const discoveryReport = (dir) => path.join(dir, '.ia-qa-discovery', 'report.html');
|
|
59
|
+
exports.discoveryReport = discoveryReport;
|
|
60
|
+
async function run(dir, args, entry, onLine) {
|
|
61
|
+
return new Promise((resolve) => {
|
|
62
|
+
const child = (0, child_process_1.spawn)(process.execPath, [entry, ...args, '--config', dir], { cwd: dir, stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true });
|
|
63
|
+
let out = '';
|
|
64
|
+
let err = '';
|
|
65
|
+
child.stdout.on('data', (d) => (out += d.toString()));
|
|
66
|
+
child.stderr.on('data', (d) => {
|
|
67
|
+
err += d.toString();
|
|
68
|
+
for (const line of d.toString().split(/\r?\n/))
|
|
69
|
+
if (line.trim())
|
|
70
|
+
onLine(line.trim());
|
|
71
|
+
});
|
|
72
|
+
child.on('error', (e) => resolve({ code: null, out, err: err + e.message }));
|
|
73
|
+
child.on('close', (code) => resolve({ code, out, err }));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function parse(out) {
|
|
77
|
+
try {
|
|
78
|
+
const v = JSON.parse(out);
|
|
79
|
+
return v && typeof v === 'object' ? v : null;
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const lastLines = (err) => err.trim().split(/\r?\n/).slice(-4).join('\n') || 'no output';
|
|
86
|
+
async function scanTheApp(dir, baseUrl, opts = {}) {
|
|
87
|
+
// The session the tour would use, resolved by the caller through the same door — a scan run
|
|
88
|
+
// anonymously on an app behind a login measures the login page and reports it as the app.
|
|
89
|
+
const args = ['scan', baseUrl, '--json', '--report', (0, exports.discoveryReport)(dir), ...(opts.session ? ['--session', opts.session] : [])];
|
|
90
|
+
const { code, out, err } = await run(dir, args, opts.entry ?? discoverCliEntry(), opts.onLine ?? (() => { }));
|
|
91
|
+
const r = parse(out);
|
|
92
|
+
if (code !== 0 || !r)
|
|
93
|
+
return { error: `The scan did not finish (exit ${code ?? 'none'}): ${lastLines(err)}` };
|
|
94
|
+
const diff = (r.diff ?? {});
|
|
95
|
+
return {
|
|
96
|
+
pagesCaptured: Number(r.pagesCaptured ?? 0),
|
|
97
|
+
pagesFound: Number(r.pagesFound ?? 0),
|
|
98
|
+
failed: (r.failed ?? []).map((f) => ({ name: f.name, url: f.url, error: f.error })),
|
|
99
|
+
loginWall: (r.loginWall ?? []),
|
|
100
|
+
hrefBlind: r.hrefBlind === true,
|
|
101
|
+
session: typeof r.session === 'string' ? r.session : null,
|
|
102
|
+
sessionSource: typeof r.sessionSource === 'string' ? r.sessionSource : null,
|
|
103
|
+
added: diff.added ?? [],
|
|
104
|
+
removed: diff.removed ?? [],
|
|
105
|
+
changed: diff.changed ?? [],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
async function coverageOf(dir, opts = {}) {
|
|
109
|
+
const { code, out, err } = await run(dir, ['coverage', '--json', '--report', (0, exports.discoveryReport)(dir)], opts.entry ?? discoverCliEntry(), () => { });
|
|
110
|
+
const r = parse(out);
|
|
111
|
+
if (code !== 0 || !r)
|
|
112
|
+
return { error: `Coverage did not answer (exit ${code ?? 'none'}): ${lastLines(err)}` };
|
|
113
|
+
if (r.measured === false)
|
|
114
|
+
return { measured: false, reason: String(r.reason) };
|
|
115
|
+
const uncovered = (r.uncovered ?? []);
|
|
116
|
+
const suite = (r.suite ?? {});
|
|
117
|
+
return {
|
|
118
|
+
measured: true,
|
|
119
|
+
visited: (r.visited ?? []),
|
|
120
|
+
uncovered: uncovered.slice(0, 12).map((u) => ({ page: u.page, url: u.url, factors: u.factors ?? [] })),
|
|
121
|
+
uncoveredTotal: uncovered.length,
|
|
122
|
+
cannotTell: (r.cannotTell ?? []),
|
|
123
|
+
outOfScope: (r.outOfScope ?? []),
|
|
124
|
+
contractedNotFound: (r.contractedNotFound ?? []),
|
|
125
|
+
notMeasured: (() => {
|
|
126
|
+
const n = (r.notMeasured ?? {});
|
|
127
|
+
return { loginWall: n.loginWall ?? [], hrefBlind: n.hrefBlind === true, droppedByCap: n.droppedByCap ?? 0, session: !!n.session };
|
|
128
|
+
})(),
|
|
129
|
+
recordedAt: suite.recordedAt ?? '',
|
|
130
|
+
scannedAt: String(r.scannedAt ?? ''),
|
|
131
|
+
testCommand: suite.testCommand ?? null,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const hasScan = (dir) => fs.existsSync(path.join(dir, '.ia-qa-discovery', 'capture', 'surface.json'));
|
|
135
|
+
exports.hasScan = hasScan;
|
|
136
|
+
//# sourceMappingURL=discovery.js.map
|