@ia-qa/pal 1.8.1 → 1.9.1
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 +5 -4
- package/TUTORIAL.md +25 -6
- package/dist/cli/index.js +84 -19
- package/dist/cli/index.js.map +1 -1
- package/dist/mcp/server.d.ts +0 -6
- package/dist/mcp/server.js +3 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/opener.d.ts +41 -0
- package/dist/opener.js +108 -0
- package/dist/opener.js.map +1 -0
- package/dist/setup.d.ts +26 -0
- package/dist/setup.js +78 -0
- package/dist/setup.js.map +1 -1
- package/dist/ui/page.js +81 -10
- package/dist/ui/page.js.map +1 -1
- package/dist/ui/server.d.ts +13 -0
- package/dist/ui/server.js +54 -0
- package/dist/ui/server.js.map +1 -1
- package/package.json +2 -2
- package/skills/ia-qa-pal/SKILL.md +16 -1
|
@@ -49,12 +49,24 @@ answer. That is your cue to run step 2 — after asking the human, never before.
|
|
|
49
49
|
- `browser` — a person logs in by hand. Hand them `npx -p @ia-qa/self-healing ia-qa-heal login`; **you cannot run it** (§5.1)
|
|
50
50
|
- `session` — their suite already writes a Playwright `storageState`; ask for its path
|
|
51
51
|
3. **Where their end-to-end tests are** — only if they have some. Skip it rather than guess.
|
|
52
|
+
The folder must be inside the project. If their tests live in another repository, pal is
|
|
53
|
+
set up **there** (it proposes repairs to the tests), not here — say so instead of pointing
|
|
54
|
+
`--tests` outside.
|
|
52
55
|
|
|
53
56
|
```bash
|
|
54
57
|
npx -p @ia-qa/pal ia-qa-pal setup --url <their app> --login <their answer> --yes
|
|
55
58
|
# add --tests <folder> when they have a suite
|
|
56
59
|
```
|
|
57
60
|
|
|
61
|
+
A project already set up without tests gets them later with `setup --tests <folder>` alone
|
|
62
|
+
(MCP: `pal_setup` with `tests` only): it adds `testPaths` and nothing else, and never replaces
|
|
63
|
+
a suite already declared.
|
|
64
|
+
|
|
65
|
+
**The human arrives with a failing build**, not a question about coverage? That is
|
|
66
|
+
`explain_failure` (served by this MCP server, from `@ia-qa/self-healing`): paste their error
|
|
67
|
+
as `failure_text`. PASS means the app did not move under that locator — never call it flaky,
|
|
68
|
+
nothing was re-run. It needs the suite declared and one tour after that.
|
|
69
|
+
|
|
58
70
|
It reads the pages from the app's sitemap, falling back to a same-origin crawl (≤ 50 pages).
|
|
59
71
|
Never type a URL, a credential or a test folder the human did not give you. **No setup field
|
|
60
72
|
ever takes a secret**: a login is a `storageState` path or a variable name, never a value.
|
|
@@ -139,7 +151,10 @@ Exit codes: `0` answered · `1` something failed · `2` **could not answer**. Re
|
|
|
139
151
|
the first one, the one called `default`, or the one you guess they meant. A single persona
|
|
140
152
|
is used by itself; that case needs no question. Say which user in every result you report.
|
|
141
153
|
10. **Never run `ia-qa-pal ui`.** It is a console for a person: it opens their browser and
|
|
142
|
-
waits until they close the tab, so in your shell it is a hung command.
|
|
154
|
+
waits until they close the tab, so in your shell it is a hung command. A bare `ia-qa-pal`
|
|
155
|
+
with no command is the same console for a person at a terminal — from your shell, with no
|
|
156
|
+
TTY, it only prints the help and installs nothing; the human's own first command is
|
|
157
|
+
`npx -p @ia-qa/pal ia-qa-pal`, which asks them before installing. Tell them it exists
|
|
143
158
|
when they would rather click than type — to follow a long tour, to log a user in, or to see
|
|
144
159
|
which secrets resolve or to **store one** (the value goes into their OS credential store,
|
|
145
160
|
never into the config) — and give them the command. Never ask them to type a secret to you
|