@trylayout/qa 0.1.1 → 0.1.2
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 +20 -0
- package/build/cli/layoutQa.js +2 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -11,6 +11,19 @@ npx @trylayout/qa run --target-url http://localhost:5173 --scenario happy_path -
|
|
|
11
11
|
|
|
12
12
|
No account, upload, hosted service, or external docs are required.
|
|
13
13
|
|
|
14
|
+
Package names:
|
|
15
|
+
|
|
16
|
+
- Canonical npm package: `@trylayout/qa`
|
|
17
|
+
- Convenience npm alias: `layout-qa`
|
|
18
|
+
- CLI binaries: `trylayout` and `layout-qa`
|
|
19
|
+
|
|
20
|
+
These commands are equivalent:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx @trylayout/qa run --target-url http://localhost:5173 --scenario happy_path --open
|
|
24
|
+
npx layout-qa run --target-url http://localhost:5173 --scenario happy_path --open
|
|
25
|
+
```
|
|
26
|
+
|
|
14
27
|
## Why This Exists
|
|
15
28
|
|
|
16
29
|
Frontend agents can move faster when they have a visual feedback loop they can run themselves. Layout gives the agent a small protocol:
|
|
@@ -30,6 +43,12 @@ Use it directly with `npx`:
|
|
|
30
43
|
npx @trylayout/qa run --target-url http://localhost:5173
|
|
31
44
|
```
|
|
32
45
|
|
|
46
|
+
The package is also available under the unscoped alias `layout-qa` for agents and tools that infer the package name from this repository:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx layout-qa run --target-url http://localhost:5173
|
|
50
|
+
```
|
|
51
|
+
|
|
33
52
|
Or install it in a project:
|
|
34
53
|
|
|
35
54
|
```bash
|
|
@@ -84,6 +103,7 @@ The process exits `0` on pass and `1` on failure, so the same command can run in
|
|
|
84
103
|
```text
|
|
85
104
|
trylayout init [options]
|
|
86
105
|
trylayout run --target-url <url> [options]
|
|
106
|
+
layout-qa run --target-url <url> [options]
|
|
87
107
|
```
|
|
88
108
|
|
|
89
109
|
Options:
|
package/build/cli/layoutQa.js
CHANGED
|
@@ -15,7 +15,9 @@ function printHelp() {
|
|
|
15
15
|
Usage:
|
|
16
16
|
trylayout init [options]
|
|
17
17
|
trylayout run --target-url <url> [options]
|
|
18
|
+
layout-qa run --target-url <url> [options]
|
|
18
19
|
npx @trylayout/qa run --target-url <url> [options]
|
|
20
|
+
npx layout-qa run --target-url <url> [options]
|
|
19
21
|
|
|
20
22
|
Commands:
|
|
21
23
|
init Write a starter .layout/qa-flows.json.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trylayout/qa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local browser QA runner and HTML reports for AI-built frontends.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Layout",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"ai-agents"
|
|
22
22
|
],
|
|
23
23
|
"bin": {
|
|
24
|
+
"layout-qa": "build/cli/layoutQa.js",
|
|
24
25
|
"trylayout": "build/cli/layoutQa.js"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|