waygraph 0.15.15 → 0.15.16
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 +12 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +21 -0
- package/examples/saucedemo/.waygraph-auto/179dde38.log +0 -0
- package/examples/saucedemo/.waygraph-auto/1a7d471e.log +0 -0
- package/examples/saucedemo/.waygraph-auto/1e33a93d.log +0 -0
- package/examples/saucedemo/.waygraph-auto/2fbf6b8d.log +0 -0
- package/examples/saucedemo/.waygraph-auto/301ff7e3.log +0 -0
- package/examples/saucedemo/.waygraph-auto/3178c318.log +0 -0
- package/examples/saucedemo/.waygraph-auto/3eb1df41.log +0 -0
- package/examples/saucedemo/.waygraph-auto/4d68438c.log +0 -0
- package/examples/saucedemo/.waygraph-auto/5030cca5.log +0 -0
- package/examples/saucedemo/.waygraph-auto/51a5387a.log +0 -0
- package/examples/saucedemo/.waygraph-auto/55df2b0f.log +0 -0
- package/examples/saucedemo/.waygraph-auto/5a4374f7.log +0 -0
- package/examples/saucedemo/.waygraph-auto/5eafc682.log +0 -0
- package/examples/saucedemo/.waygraph-auto/6fc3d553.log +0 -0
- package/examples/saucedemo/.waygraph-auto/7531b70f.log +0 -0
- package/examples/saucedemo/.waygraph-auto/7774f054.log +0 -0
- package/examples/saucedemo/.waygraph-auto/7a08e89a.log +0 -0
- package/examples/saucedemo/.waygraph-auto/7d9f231d.log +0 -0
- package/examples/saucedemo/.waygraph-auto/8557750f.log +0 -0
- package/examples/saucedemo/.waygraph-auto/86a5ff4d.log +0 -0
- package/examples/saucedemo/.waygraph-auto/8c5b1caa.log +0 -0
- package/examples/saucedemo/.waygraph-auto/9918377b.log +0 -0
- package/examples/saucedemo/.waygraph-auto/9c4fd0a0.log +0 -0
- package/examples/saucedemo/.waygraph-auto/9cd2da32.log +0 -0
- package/examples/saucedemo/.waygraph-auto/a7c3d248.log +0 -0
- package/examples/saucedemo/.waygraph-auto/ab26aeb4.log +0 -0
- package/examples/saucedemo/.waygraph-auto/b13d08e4.log +0 -0
- package/examples/saucedemo/.waygraph-auto/bde6d205.log +0 -0
- package/examples/saucedemo/.waygraph-auto/be0bb35f.log +0 -0
- package/examples/saucedemo/.waygraph-auto/c10c4038.log +0 -0
- package/examples/saucedemo/.waygraph-auto/c23b2654.log +0 -0
- package/examples/saucedemo/.waygraph-auto/c8825eda.log +0 -0
- package/examples/saucedemo/.waygraph-auto/d440e60f.log +0 -0
- package/examples/saucedemo/.waygraph-auto/d52ce64b.log +0 -0
- package/examples/saucedemo/.waygraph-auto/d6e0cb19.log +0 -0
- package/examples/saucedemo/.waygraph-auto/e62bdb4a.log +0 -0
- package/examples/saucedemo/.waygraph-auto/e9b84105.log +0 -0
- package/examples/saucedemo/.waygraph-auto/f1949241.log +0 -0
- package/examples/saucedemo/package.json +2 -1
- package/package.json +4 -2
- package/templates/quickstart/package.json +2 -1
- package/templates/scaffold/package.json +2 -1
package/README.md
CHANGED
|
@@ -1039,6 +1039,14 @@ immediately - see "Waygraph Pilot" above for the full picture.
|
|
|
1039
1039
|
when no Block covers that action yet, and `auto reload <sessionId>` picks up a Block just
|
|
1040
1040
|
written to disk without restarting the session - see "Blind Pilot" above.
|
|
1041
1041
|
|
|
1042
|
+
**`waygraph test [...args]`** is a thin wrapper around the project's own `@playwright/test`
|
|
1043
|
+
suite - it forwards to the local `node_modules/.bin/playwright` (falling back to
|
|
1044
|
+
`npx playwright` if the project hasn't installed it locally yet), so `waygraph test` behaves
|
|
1045
|
+
exactly like `playwright test`, and anything after it (`--grep`, a spec path, `--headed`, …)
|
|
1046
|
+
passes straight through. `waygraph test ui` (or `waygraph test --ui`) launches Playwright's
|
|
1047
|
+
interactive UI Mode the same way. Scaffolded projects (`waygraph init`/`create-waygraph`)
|
|
1048
|
+
wire this up as `npm test` / `npm run test:ui`.
|
|
1049
|
+
|
|
1042
1050
|
Flows are files (0.10.5+):
|
|
1043
1051
|
|
|
1044
1052
|
| Want | Command |
|
|
@@ -1078,6 +1086,8 @@ Flows are files (0.10.5+):
|
|
|
1078
1086
|
| Coding-agent defs | `waygraph agent-dive --loop claude` |
|
|
1079
1087
|
| Print packaged skills | `waygraph --skill` / `--skill-pilot` / `--skill-pilot-blind` / `--skill-convention` |
|
|
1080
1088
|
| One-shot temp-dir demo | `waygraph try demo` / `waygraph try auto` / `waygraph try auto:cli` |
|
|
1089
|
+
| Run the project's `@playwright/test` suite | `waygraph test` |
|
|
1090
|
+
| Same suite, Playwright's interactive UI Mode | `waygraph test ui` (or `--ui`) |
|
|
1081
1091
|
|
|
1082
1092
|
`--blocks` / positional accepts a Flow export, a `.flow.ts` path, or `"a then b"`.
|
|
1083
1093
|
`auto <file.flow.ts>` **runs** that flow (same as `run`); bare `auto` still explores.
|
|
@@ -1207,7 +1217,8 @@ git clone git@github.com:deviate-dv8/waygraph.git
|
|
|
1207
1217
|
cd waygraph
|
|
1208
1218
|
npm install
|
|
1209
1219
|
npm run typecheck # waygraph typecheck . (tsc --noEmit + practice warnings)
|
|
1210
|
-
npm run test # playwright test
|
|
1220
|
+
npm run test # node --test tests/unit + playwright test
|
|
1221
|
+
npm run test:ui # playwright test --ui
|
|
1211
1222
|
npm run build # tsc -p tsconfig.build.json, emits dist/
|
|
1212
1223
|
```
|
|
1213
1224
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* auto Explore picker; `.flow.ts` / `--blocks From To` = run that path
|
|
7
7
|
* demo Watch (step overlay); `--blocks` `--data` `--auto-next` `--fast` `--full` `--mini` `--ff-expand` `--ff-disabled`
|
|
8
8
|
* run Execute; `--blocks` `--data` `--non-headless` `--video`
|
|
9
|
+
* test Runs the project's own @playwright/test suite; `test ui` / `--ui` = UI Mode
|
|
9
10
|
*
|
|
10
11
|
* Also: list / nav / validate / check / graph / init / agent-dive / traverse / try
|
|
11
12
|
* Skills: --skill / --skill-pilot / --skill-pilot-blind / --skill-convention
|
package/dist/cli.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* auto Explore picker; `.flow.ts` / `--blocks From To` = run that path
|
|
7
7
|
* demo Watch (step overlay); `--blocks` `--data` `--auto-next` `--fast` `--full` `--mini` `--ff-expand` `--ff-disabled`
|
|
8
8
|
* run Execute; `--blocks` `--data` `--non-headless` `--video`
|
|
9
|
+
* test Runs the project's own @playwright/test suite; `test ui` / `--ui` = UI Mode
|
|
9
10
|
*
|
|
10
11
|
* Also: list / nav / validate / check / graph / init / agent-dive / traverse / try
|
|
11
12
|
* Skills: --skill / --skill-pilot / --skill-pilot-blind / --skill-convention
|
|
@@ -7336,6 +7337,11 @@ Primary (less is more):
|
|
|
7336
7337
|
--video-viewport WxH Recording size (default run: 1280x720)
|
|
7337
7338
|
--ff-expand Same as demo (expand FFCompose inners)
|
|
7338
7339
|
--ff-disabled Same as demo (dispute: expand FF)
|
|
7340
|
+
waygraph test Runs the project's @playwright/test suite (cwd) -
|
|
7341
|
+
thin wrapper: forwards to the local playwright
|
|
7342
|
+
binary (or npx playwright as a fallback)
|
|
7343
|
+
test ui / test --ui Playwright UI Mode (interactive, watch + trace)
|
|
7344
|
+
<any other args> Forwarded verbatim (--grep, a spec path, --headed, …)
|
|
7339
7345
|
|
|
7340
7346
|
Also:
|
|
7341
7347
|
waygraph list | nav | validate | check | typecheck | graph | init <name>
|
|
@@ -7467,6 +7473,21 @@ async function main() {
|
|
|
7467
7473
|
await runChain(proj, spec);
|
|
7468
7474
|
break;
|
|
7469
7475
|
}
|
|
7476
|
+
case "test": {
|
|
7477
|
+
const rest = args.slice(1);
|
|
7478
|
+
const wantsUi = rest[0] === "ui" || rest.includes("--ui");
|
|
7479
|
+
const forwarded = rest[0] === "ui" ? rest.slice(1) : rest;
|
|
7480
|
+
const pwArgs = wantsUi && !forwarded.includes("--ui")
|
|
7481
|
+
? ["test", "--ui", ...forwarded]
|
|
7482
|
+
: ["test", ...forwarded];
|
|
7483
|
+
const proj = process.cwd();
|
|
7484
|
+
const localPlaywrightBin = join(proj, "node_modules", ".bin", "playwright");
|
|
7485
|
+
const code = existsSync(localPlaywrightBin)
|
|
7486
|
+
? await runInherited(localPlaywrightBin, pwArgs, proj)
|
|
7487
|
+
: await runInherited("npx", ["--yes", "playwright", ...pwArgs], proj);
|
|
7488
|
+
process.exitCode = code;
|
|
7489
|
+
break;
|
|
7490
|
+
}
|
|
7470
7491
|
case "init": {
|
|
7471
7492
|
initCommand(args[1] ?? "");
|
|
7472
7493
|
break;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"description": "Full Sauce Demo (saucedemo.com) example - Effect / MemNav / waygraph auto.",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"typecheck": "tsc --noEmit",
|
|
9
|
-
"test": "
|
|
9
|
+
"test": "waygraph test",
|
|
10
|
+
"test:ui": "waygraph test ui",
|
|
10
11
|
"flows": "waygraph list",
|
|
11
12
|
"demo": "waygraph demo --blocks \"loginFlow then shopFlow\" --data \"{\\\"saucedemo.credentials\\\":{\\\"username\\\":\\\"standard_user\\\",\\\"password\\\":\\\"secret_sauce\\\"},\\\"saucedemo.selectedItem\\\":{\\\"id\\\":\\\"sauce-labs-backpack\\\",\\\"name\\\":\\\"Sauce Labs Backpack\\\"}}\"",
|
|
12
13
|
"demo:step": "waygraph demo --blocks \"loginFlow then shopFlow\" --title \"Shop demo\" --data \"{\\\"saucedemo.credentials\\\":{\\\"username\\\":\\\"standard_user\\\",\\\"password\\\":\\\"secret_sauce\\\"},\\\"saucedemo.selectedItem\\\":{\\\"id\\\":\\\"sauce-labs-backpack\\\",\\\"name\\\":\\\"Sauce Labs Backpack\\\"}}\"",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waygraph",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A typed graph of reusable Blocks for driving a browser through E2E flows.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc -p tsconfig.build.json",
|
|
38
38
|
"typecheck": "node bin/waygraph typecheck .",
|
|
39
|
-
"test": "playwright test",
|
|
39
|
+
"test": "npm run test:unit && playwright test",
|
|
40
|
+
"test:ui": "playwright test --ui",
|
|
41
|
+
"test:unit": "node --import tsx/esm --test tests/unit/*.spec.ts",
|
|
40
42
|
"docs:preview": "python3 -m http.server 4173 --directory docs",
|
|
41
43
|
"example:saucedemo:install": "npm --prefix examples/saucedemo install",
|
|
42
44
|
"example:saucedemo:test": "npm --prefix examples/saucedemo test",
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Self-contained saucedemo quickstart (copied into a temp dir by `waygraph try demo`).",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "
|
|
7
|
+
"test": "waygraph test",
|
|
8
|
+
"test:ui": "waygraph test ui",
|
|
8
9
|
"typecheck": "tsc --noEmit",
|
|
9
10
|
"check": "waygraph check",
|
|
10
11
|
"auto": "waygraph auto",
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "waygraph typecheck .",
|
|
8
|
-
"test": "
|
|
8
|
+
"test": "waygraph test",
|
|
9
|
+
"test:ui": "waygraph test ui",
|
|
9
10
|
"fixture": "node scripts/fixture-server.mjs",
|
|
10
11
|
"list": "waygraph list",
|
|
11
12
|
"check": "waygraph check",
|