@nickduy/agent-studio 0.1.3 → 0.1.4
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
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
# Agent Studio
|
|
2
|
-
|
|
3
|
-
Spec-driven end-to-end testing with Claude Code agents and Playwright. Write test cases in plain Markdown; agents verify them in a real browser, write the Playwright scripts, validate and heal them.
|
|
4
|
-
|
|
5
|
-
## Requirements
|
|
6
|
-
|
|
7
|
-
- Node >= 22.13 (`node -v`)
|
|
8
|
-
- [Claude Code](https://claude.com/claude-code), logged in (`claude` -> `/login`)
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install -g <package-name>
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
If the package is private (GitHub Packages or a scoped registry other than npmjs.com), log in to that registry first — one time per machine:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm login --scope=<@scope> --registry=<registry-url>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
### Verification
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
agent-studio --version # prints the installed version
|
|
26
|
-
agent-studio doctor # checks Claude Code, Playwright and Chromium (run inside a project folder, see below)
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
If `--version` fails with "command not found", npm's global `bin` folder is not on PATH — run `npm config get prefix`, then add `<that path>/bin` (macOS/Linux) or `<that path>` (Windows) to PATH, and open a new terminal.
|
|
30
|
-
|
|
31
|
-
## Use
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
mkdir my-e2e && cd my-e2e
|
|
35
|
-
agent-studio init --install # creates specs/, tests/, CLAUDE.md, playwright.config.ts; npm install; installs Chromium
|
|
36
|
-
# copy .env.example to .env and fill in E2E_BASE_URL, USER, PASSWORD
|
|
37
|
-
agent-studio doctor # all three checks should say OK before the first run
|
|
38
|
-
agent-studio # http://127.0.0.1:7979
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
| Command | What |
|
|
42
|
-
|---|---|
|
|
43
|
-
| `agent-studio [start] [--port n] [--dir path] [--no-open]` | Start the UI and API for a project folder (default: current folder) |
|
|
44
|
-
| `agent-studio init [--dir path] [--install]` | Create the project files (never overwrites) |
|
|
45
|
-
| `agent-studio doctor [--dir path]` | Check Claude Code, Playwright and Chromium |
|
|
46
|
-
| `agent-studio --version` | Print the installed version |
|
|
47
|
-
|
|
48
|
-
The SQLite database is created automatically in `~/.agentstudio` (`C:\Users\<you>\.agentstudio` on Windows), one folder per project — nothing to set up. Set `AGENT_STUDIO_HOME` to move it. Job files and chat attachments stay in the project's own `qa-studio-data/` folder (git-ignored), since that is the only folder the agents are allowed to write to.
|
|
49
|
-
|
|
50
|
-
The server binds to `127.0.0.1` only. Claude Code and Playwright run on the machine where `agent-studio` runs — there is nothing to configure for that; point your browser at the printed URL.
|
|
51
|
-
|
|
52
|
-
## Update
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
npm install -g <package-name>@latest
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
This replaces the binary only; it never touches a project's `specs/`, `tests/`, `CLAUDE.md`, `.env` or its database in `~/.agentstudio`. Check the new version and re-run `doctor` once:
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
agent-studio --version
|
|
62
|
-
agent-studio doctor
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
To pin a specific version instead of always taking the latest: `npm install -g <package-name>@1.2.3`.
|
|
66
|
-
|
|
67
|
-
## Uninstall
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
npm uninstall -g <package-name>
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
This removes the CLI only. It leaves behind, on purpose (so removing the tool never deletes test history or data):
|
|
74
|
-
|
|
75
|
-
- Every project folder's own files (`specs/`, `tests/`, `CLAUDE.md`, `.env`, `qa-studio-data/`) — delete those yourself if a project is no longer needed.
|
|
76
|
-
- `~/.agentstudio` (`C:\Users\<you>\.agentstudio` on Windows) — the SQLite database for every project you ran, one subfolder per project under `~/.agentstudio/projects/`. Delete the whole folder to remove all job history and settings, or delete one project's subfolder to remove just that project's history.
|
|
77
|
-
|
|
78
|
-
## Troubleshooting
|
|
79
|
-
|
|
80
|
-
- **`agent-studio doctor` reports Claude Code missing**: install it from [claude.com/claude-code](https://claude.com/claude-code), run `claude`, then `/login`.
|
|
81
|
-
- **Port already in use**: another process is using 7979 (or the port you passed). Start with `agent-studio --port <n>`.
|
|
82
|
-
- **`@playwright/test` or Chromium missing**: run `npm install && npx playwright install chromium` inside the project folder, or redo `agent-studio init --install`.
|
|
1
|
+
# Agent Studio
|
|
2
|
+
|
|
3
|
+
Spec-driven end-to-end testing with Claude Code agents and Playwright. Write test cases in plain Markdown; agents verify them in a real browser, write the Playwright scripts, validate and heal them.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node >= 22.13 (`node -v`)
|
|
8
|
+
- [Claude Code](https://claude.com/claude-code), logged in (`claude` -> `/login`)
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g <package-name>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
If the package is private (GitHub Packages or a scoped registry other than npmjs.com), log in to that registry first — one time per machine:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm login --scope=<@scope> --registry=<registry-url>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Verification
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
agent-studio --version # prints the installed version
|
|
26
|
+
agent-studio doctor # checks Claude Code, Playwright and Chromium (run inside a project folder, see below)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
If `--version` fails with "command not found", npm's global `bin` folder is not on PATH — run `npm config get prefix`, then add `<that path>/bin` (macOS/Linux) or `<that path>` (Windows) to PATH, and open a new terminal.
|
|
30
|
+
|
|
31
|
+
## Use
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
mkdir my-e2e && cd my-e2e
|
|
35
|
+
agent-studio init --install # creates specs/, tests/, CLAUDE.md, playwright.config.ts; npm install; installs Chromium
|
|
36
|
+
# copy .env.example to .env and fill in E2E_BASE_URL, USER, PASSWORD
|
|
37
|
+
agent-studio doctor # all three checks should say OK before the first run
|
|
38
|
+
agent-studio # http://127.0.0.1:7979
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Command | What |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `agent-studio [start] [--port n] [--dir path] [--no-open]` | Start the UI and API for a project folder (default: current folder) |
|
|
44
|
+
| `agent-studio init [--dir path] [--install]` | Create the project files (never overwrites) |
|
|
45
|
+
| `agent-studio doctor [--dir path]` | Check Claude Code, Playwright and Chromium |
|
|
46
|
+
| `agent-studio --version` | Print the installed version |
|
|
47
|
+
|
|
48
|
+
The SQLite database is created automatically in `~/.agentstudio` (`C:\Users\<you>\.agentstudio` on Windows), one folder per project — nothing to set up. Set `AGENT_STUDIO_HOME` to move it. Job files and chat attachments stay in the project's own `qa-studio-data/` folder (git-ignored), since that is the only folder the agents are allowed to write to.
|
|
49
|
+
|
|
50
|
+
The server binds to `127.0.0.1` only. Claude Code and Playwright run on the machine where `agent-studio` runs — there is nothing to configure for that; point your browser at the printed URL.
|
|
51
|
+
|
|
52
|
+
## Update
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm install -g <package-name>@latest
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This replaces the binary only; it never touches a project's `specs/`, `tests/`, `CLAUDE.md`, `.env` or its database in `~/.agentstudio`. Check the new version and re-run `doctor` once:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
agent-studio --version
|
|
62
|
+
agent-studio doctor
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
To pin a specific version instead of always taking the latest: `npm install -g <package-name>@1.2.3`.
|
|
66
|
+
|
|
67
|
+
## Uninstall
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm uninstall -g <package-name>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
This removes the CLI only. It leaves behind, on purpose (so removing the tool never deletes test history or data):
|
|
74
|
+
|
|
75
|
+
- Every project folder's own files (`specs/`, `tests/`, `CLAUDE.md`, `.env`, `qa-studio-data/`) — delete those yourself if a project is no longer needed.
|
|
76
|
+
- `~/.agentstudio` (`C:\Users\<you>\.agentstudio` on Windows) — the SQLite database for every project you ran, one subfolder per project under `~/.agentstudio/projects/`. Delete the whole folder to remove all job history and settings, or delete one project's subfolder to remove just that project's history.
|
|
77
|
+
|
|
78
|
+
## Troubleshooting
|
|
79
|
+
|
|
80
|
+
- **`agent-studio doctor` reports Claude Code missing**: install it from [claude.com/claude-code](https://claude.com/claude-code), run `claude`, then `/login`.
|
|
81
|
+
- **Port already in use**: another process is using 7979 (or the port you passed). Start with `agent-studio --port <n>`.
|
|
82
|
+
- **`@playwright/test` or Chromium missing**: run `npm install && npx playwright install chromium` inside the project folder, or redo `agent-studio init --install`.
|