@auracheck-ai/cli 0.2.3 → 0.2.5
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/LICENSE +21 -0
- package/README.md +88 -40
- package/USAGE.md +38 -25
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +3566 -136
- package/dist/bin.js.map +1 -1
- package/dist/mcp/server.d.ts +21 -0
- package/dist/mcp/server.js +2722 -926
- package/dist/mcp/server.js.map +1 -1
- package/package.json +21 -15
- package/dist/api.js +0 -433
- package/dist/api.js.map +0 -1
- package/dist/browser-login.js +0 -130
- package/dist/browser-login.js.map +0 -1
- package/dist/commands/doctor.js +0 -90
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/init.js +0 -101
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/login.js +0 -140
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/setup.js +0 -188
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/status.js +0 -36
- package/dist/commands/status.js.map +0 -1
- package/dist/config.js +0 -287
- package/dist/config.js.map +0 -1
- package/dist/source-reader.js +0 -200
- package/dist/source-reader.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present Bytedance, Inc. and its affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -27,6 +27,18 @@ Your existing sign-in is reused (saved sign-ins for the old domain move over aut
|
|
|
27
27
|
> `.sixseven/config.json` with the old `baseUrl` is corrected in memory for that run with a
|
|
28
28
|
> notice on stderr; update the file by hand to stop seeing it.
|
|
29
29
|
|
|
30
|
+
## What's new in 0.2.4
|
|
31
|
+
|
|
32
|
+
- **`auracheck.delete_testcase` / `auracheck.delete_feature`** — new MCP tools, dry-run by
|
|
33
|
+
default (pass `confirm: true` to actually delete). See [MCP tools exposed](#mcp-tools-exposed).
|
|
34
|
+
- **MCP tool names changed from `sixseven.*` to `auracheck.*`** — restart your MCP client
|
|
35
|
+
(Claude Code, Cursor, Claude Desktop) after upgrading so it re-reads the new tool list.
|
|
36
|
+
- **Credentials moved from `~/.sixseven/credentials` to `~/.auracheck/credentials`** —
|
|
37
|
+
migrated automatically on first run of this version — verified, then the old file (and `~/.sixseven` if left empty) is removed. If `~/.auracheck/credentials` already exists it wins; only hosts missing from it are merged in.
|
|
38
|
+
- **`SIXSEVEN_*` env vars renamed to `AURACHECK_*`** (`AURACHECK_HOME`, `AURACHECK_BASE_URL`,
|
|
39
|
+
`AURACHECK_PROJECT_ID`, `AURACHECK_TOKEN`, `AURACHECK_DEBUG`) — the old `SIXSEVEN_*` names
|
|
40
|
+
still work as a deprecated fallback.
|
|
41
|
+
|
|
30
42
|
## Quick start
|
|
31
43
|
|
|
32
44
|
**1. Install the CLI**
|
|
@@ -41,9 +53,9 @@ npm i -g @auracheck-ai/cli
|
|
|
41
53
|
auracheck login
|
|
42
54
|
```
|
|
43
55
|
|
|
44
|
-
Your browser opens AuraCheck; sign in the usual way and click **Allow the CLI**. The CLI saves a personal token to `~/.
|
|
56
|
+
Your browser opens AuraCheck; sign in the usual way and click **Allow the CLI**. The CLI saves a personal token to `~/.auracheck/credentials` (mode `0600`; moved there automatically — and removed from `~/.sixseven/credentials` — if that's where an older install left it). It acts as you — same projects, same permissions — doesn't expire, and you can revoke it any time under **Profile → Active devices** or with `auracheck logout`. `auracheck auth status` shows who you are signed in as (it never prints the token).
|
|
45
57
|
|
|
46
|
-
> **CI / headless:** use a project CI token instead — **Integrations → CI/CD Tokens (Project)** → **Generate token**, then `auracheck login --token 67ci_…` (or `auracheck auth --token 67ci_…`, or the `
|
|
58
|
+
> **CI / headless:** use a project CI token instead — **Integrations → CI/CD Tokens (Project)** → **Generate token**, then `auracheck login --token 67ci_…` (or `auracheck auth --token 67ci_…`, or the `AURACHECK_TOKEN` env var, deprecated alias `SIXSEVEN_TOKEN`). A project CI token only reaches its own project.
|
|
47
59
|
|
|
48
60
|
**3. Run the wizard from your app's repo**
|
|
49
61
|
|
|
@@ -63,7 +75,7 @@ It then binds the repo to a project and (optionally) registers the MCP server wi
|
|
|
63
75
|
|
|
64
76
|
`auracheck setup` is a 3-step wizard that:
|
|
65
77
|
|
|
66
|
-
1. **Logs you in** — browser sign-in (or `--token` for CI), saved to `~/.
|
|
78
|
+
1. **Logs you in** — browser sign-in (or `--token` for CI), saved to `~/.auracheck/credentials` (mode `0600`). Skips this step if a valid token is already saved.
|
|
67
79
|
2. **Binds the repo** — lists your projects, pick one, writes `.sixseven/config.json`. Skips if a binding already exists (asks before re-binding).
|
|
68
80
|
3. **Registers the MCP server** — if the `claude` CLI is on your PATH, runs `claude mcp add auracheck -- auracheck mcp` for you. Otherwise prints copy-paste JSON for Cursor (`.cursor/mcp.json`) or Claude Desktop.
|
|
69
81
|
|
|
@@ -82,7 +94,7 @@ That's it. Open Claude Code and ask *"list auracheck features"* to confirm.
|
|
|
82
94
|
| `auracheck init` | Just the bind step (writes `.sixseven/config.json`) |
|
|
83
95
|
| `auracheck status` | Show binding + token validity + feature/testcase counts |
|
|
84
96
|
| `auracheck doctor` | Diagnose config, token, backend reachability, project access |
|
|
85
|
-
| `auracheck mcp` | Start MCP server on stdio (spawned by Claude Code; you don't run this directly). Works outside a bound repo too: project tools then take a `projectId` (see `
|
|
97
|
+
| `auracheck mcp` | Start MCP server on stdio (spawned by Claude Code; you don't run this directly). Works outside a bound repo too: project tools then take a `projectId` (see `auracheck.list_projects`); `--project <id>` sets a default |
|
|
86
98
|
|
|
87
99
|
Every command above also works as `sixseven <command>` — same binary, same behavior.
|
|
88
100
|
|
|
@@ -108,79 +120,115 @@ claude mcp add auracheck -- auracheck mcp
|
|
|
108
120
|
|
|
109
121
|
| Tool | Purpose |
|
|
110
122
|
|---|---|
|
|
111
|
-
| `
|
|
112
|
-
| `
|
|
113
|
-
| `
|
|
123
|
+
| `auracheck.read_code` | Read a text file inside configured `codeRoots` |
|
|
124
|
+
| `auracheck.list_dir` | List a directory inside the repo |
|
|
125
|
+
| `auracheck.search_code` | Substring/regex search across `codeRoots` (≤200 hits) |
|
|
114
126
|
|
|
115
127
|
**Features & testcases**
|
|
116
128
|
|
|
117
129
|
| Tool | Purpose |
|
|
118
130
|
|---|---|
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
131
|
+
| `auracheck.list_features` | List features of the bound AuraCheck project |
|
|
132
|
+
| `auracheck.create_feature` | Create a feature (group of testcases) |
|
|
133
|
+
| `auracheck.list_testcases` | List testcases (optionally per platform) |
|
|
134
|
+
| `auracheck.get_testcase` | Fetch a testcase by id |
|
|
135
|
+
| `auracheck.create_testcase` | Push a new testcase to a feature |
|
|
136
|
+
| `auracheck.update_testcase` | Patch an existing testcase |
|
|
125
137
|
|
|
126
138
|
**Runs, execution, and evidence**
|
|
127
139
|
|
|
128
140
|
| Tool | Purpose |
|
|
129
141
|
|---|---|
|
|
130
|
-
| `
|
|
131
|
-
| `
|
|
132
|
-
| `
|
|
133
|
-
| `
|
|
134
|
-
| `
|
|
135
|
-
| `
|
|
136
|
-
| `
|
|
137
|
-
| `
|
|
138
|
-
| `
|
|
142
|
+
| `auracheck.list_runs` | List recent runs for the bound project |
|
|
143
|
+
| `auracheck.create_run` | Create a run for one or more testcases |
|
|
144
|
+
| `auracheck.execute_run` | Trigger execution of a web run (fire-and-forget, 202). Android/iOS runs answer `run_from_desktop`: a person starts them in the desktop app (see below) |
|
|
145
|
+
| `auracheck.get_run` | Get current run state (status, reportUrl, timestamps) |
|
|
146
|
+
| `auracheck.cancel_run` | Cancel an in-flight run |
|
|
147
|
+
| `auracheck.wait_for_run` | Poll until terminal status (or timeout). Returns summary + final run |
|
|
148
|
+
| `auracheck.list_run_testcases` | List testcases attached to a specific run |
|
|
149
|
+
| `auracheck.get_evidence` | Aggregate per-case attempts + step events + failed-step screenshots |
|
|
150
|
+
| `auracheck.get_screenshot` | Download a run screenshot (or any authenticated blob) to a local file so it can actually be looked at |
|
|
139
151
|
|
|
140
152
|
**Schedules (recurring runs)**
|
|
141
153
|
|
|
142
154
|
| Tool | Purpose |
|
|
143
155
|
|---|---|
|
|
144
|
-
| `
|
|
145
|
-
| `
|
|
146
|
-
| `
|
|
147
|
-
| `
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
156
|
+
| `auracheck.list_schedules` | List the project's recurring run schedules |
|
|
157
|
+
| `auracheck.get_schedule` | Fetch one schedule (cadence, next fire, filters, recipients) |
|
|
158
|
+
| `auracheck.create_schedule` | Create a cron schedule (validated server-side; warns when no configuration gives its runs a base URL) |
|
|
159
|
+
| `auracheck.update_schedule` | Patch a schedule — pause it, retime it, retarget its configuration |
|
|
160
|
+
| `auracheck.delete_schedule` | Delete a schedule (runs it already created are kept) |
|
|
161
|
+
| `auracheck.run_schedule_now` | Fire it now on the clock's own code path; returns `outcome` + the created `runId` |
|
|
162
|
+
| `auracheck.list_schedule_fires` | Occurrence history — why a schedule skipped (`skipped_overlap`, `skipped_misfire`, `skipped_capacity`, `no_cases`) |
|
|
163
|
+
| `auracheck.list_schedule_recipients` | Users eligible for `notifyUserIds`, resolved the way the server resolves them at send time |
|
|
152
164
|
|
|
153
165
|
**Auto-explore (blackbox)**
|
|
154
166
|
|
|
155
167
|
| Tool | Purpose |
|
|
156
168
|
|---|---|
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
169
|
+
| `auracheck.start_exploration` | Kick off AuraCheck's BFS crawler on seed URLs (server-side Puppeteer) |
|
|
170
|
+
| `auracheck.get_exploration` | Read the latest exploration snapshot (status + counts) |
|
|
159
171
|
|
|
160
172
|
**Bug filing**
|
|
161
173
|
|
|
162
174
|
| Tool | Purpose |
|
|
163
175
|
|---|---|
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
176
|
+
| `auracheck.file_bug` | Open an issue report against the bound project (after auto-fix loop confirms a real defect) |
|
|
177
|
+
| `auracheck.list_bugs` | List issue reports for the project |
|
|
178
|
+
| `auracheck.get_bug` | Fetch a single issue report by id |
|
|
167
179
|
|
|
168
180
|
**Context**
|
|
169
181
|
|
|
170
182
|
| Tool | Purpose |
|
|
171
183
|
|---|---|
|
|
172
|
-
| `
|
|
184
|
+
| `auracheck.whoami` | Echo current user + project context |
|
|
185
|
+
|
|
186
|
+
**Deleting**
|
|
173
187
|
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
| Tool | Purpose |
|
|
189
|
+
|---|---|
|
|
190
|
+
| `auracheck.delete_testcase` | Delete 1–500 testcases. Dry run unless `confirm: true`; a case linked to a run is soft-deleted (run history kept), an unlinked one is removed permanently. Requires `manageTestCases` |
|
|
191
|
+
| `auracheck.delete_feature` | Delete a feature. Dry run unless `confirm: true`; its testcases linked to a run are soft-deleted and reparented, unlinked ones removed permanently; `cascade: true` also removes sub-features. Requires `manageTestCases` |
|
|
192
|
+
|
|
193
|
+
> The MCP tool names keep the `auracheck.*` prefix regardless of which binary name you use.
|
|
194
|
+
> **Upgrading from before 0.2.4:** these were `sixseven.*` — restart your MCP client
|
|
195
|
+
> (Claude Code, Cursor, Claude Desktop) after upgrading so it re-reads the new tool list;
|
|
196
|
+
> existing skills/prompts that call them by name need the prefix updated too.
|
|
197
|
+
|
|
198
|
+
## Mobile testing with the desktop app (Android / iOS)
|
|
199
|
+
|
|
200
|
+
Android and iOS tests run on **your own device or emulator, through the AuraCheck desktop
|
|
201
|
+
app**, never on AuraCheck's servers. The MCP writes the cases and creates the runs; a person
|
|
202
|
+
starts each run from the desktop app.
|
|
203
|
+
|
|
204
|
+
1. **Install the AuraCheck desktop app** (SixSeven Desktop) from the Download page of your
|
|
205
|
+
AuraCheck workspace and sign in with the same account the CLI uses (`auracheck login`).
|
|
206
|
+
2. **Connect the device**: an Android phone with USB debugging on (it must show up in
|
|
207
|
+
`adb devices`), or start an Android emulator. For iOS: the macOS desktop app with a
|
|
208
|
+
simulator or a set-up iPhone.
|
|
209
|
+
3. **Point the project's configuration at your app**: upload the APK/IPA to the
|
|
210
|
+
configuration, or turn on "skip install" and set `androidAppPackage` (`iosBundleId`) to the
|
|
211
|
+
app already installed on the device.
|
|
212
|
+
4. **Let Claude author the tests**: `create_testcase` (platform `android`/`ios`) and
|
|
213
|
+
`create_run` work exactly as for web.
|
|
214
|
+
5. **Run it from the desktop app**: open the run (the `runUrl` Claude gives you) in the desktop
|
|
215
|
+
app and click **Run on local** (iOS: **Run on iOS**). Results, steps, screenshots and the
|
|
216
|
+
recording land on the run page as usual.
|
|
217
|
+
6. **Results back in Claude**: `wait_for_run` waits while the run is pending and returns the
|
|
218
|
+
verdict once you have run it; `get_evidence` and `get_run_report` work as for web runs.
|
|
219
|
+
|
|
220
|
+
`execute_run` on an Android/iOS run does not start anything: it returns
|
|
221
|
+
`{ started: false, status: "run_from_desktop", runUrl, message, next }`, which is Claude's cue
|
|
222
|
+
to hand step 5 to you. Scheduled Android/iOS runs are created on time but also wait for
|
|
223
|
+
someone to start them from the desktop app.
|
|
176
224
|
|
|
177
225
|
## Security & telemetry
|
|
178
226
|
|
|
179
227
|
- **No telemetry.** The CLI makes no outbound calls except to the AuraCheck backend you configured in `.sixseven/config.json`. There is no analytics, no crash reporter, no usage ping.
|
|
180
228
|
- **Source code stays local.** The CLI never auto-uploads files. Source content only leaves the machine if the developer (or Claude Code, on the developer's instruction) explicitly bakes it into a testcase payload.
|
|
181
229
|
- **File reads are sandboxed.** Reads are constrained to configured `codeRoots`, paths in `exclude` are refused, and path-traversal attempts (`../`, absolute paths) are rejected.
|
|
182
|
-
- **Stdout in `auracheck mcp` is strict JSON-RPC.** Human-readable logs go to stderr. Set `SIXSEVEN_DEBUG=1` to include stack traces on errors.
|
|
183
|
-
- **Credentials.** Tokens are saved to `~/.
|
|
230
|
+
- **Stdout in `auracheck mcp` is strict JSON-RPC.** Human-readable logs go to stderr. Set `AURACHECK_DEBUG=1` (deprecated alias `SIXSEVEN_DEBUG=1`) to include stack traces on errors.
|
|
231
|
+
- **Credentials.** Tokens are saved to `~/.auracheck/credentials` with mode `0600` (moved there automatically from `~/.sixseven/credentials` on first run if that's where an older install left it — verified, then the old file and its directory, if left empty, are removed; an already-existing `~/.auracheck/credentials` wins, with only missing hosts merged in). The directory is created with mode `0700`. Tokens are never logged.
|
|
184
232
|
|
|
185
233
|
## Walk-through
|
|
186
234
|
|
package/USAGE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @auracheck-ai/cli — Claude Code usage guide
|
|
2
2
|
|
|
3
|
-
Once `auracheck login` + `auracheck init` are done and the MCP server is registered (`claude mcp add auracheck -- node /abs/path/dist/bin.js mcp`), you can prompt Claude Code in plain language and it will pick the right `
|
|
3
|
+
Once `auracheck login` + `auracheck init` are done and the MCP server is registered (`claude mcp add auracheck -- node /abs/path/dist/bin.js mcp`), you can prompt Claude Code in plain language and it will pick the right `auracheck.*` tools on its own. (`sixseven` works as an alias for every command here, same binary.)
|
|
4
4
|
|
|
5
5
|
Below are real prompt patterns you can paste into Claude Code.
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Below are real prompt patterns you can paste into Claude Code.
|
|
|
8
8
|
|
|
9
9
|
## 1. First sanity check
|
|
10
10
|
|
|
11
|
-
> Use `
|
|
11
|
+
> Use `auracheck.whoami`. Then list features and tell me which one to use for login flow tests.
|
|
12
12
|
|
|
13
13
|
This confirms binding works and surfaces the feature you'll attach testcases to.
|
|
14
14
|
|
|
@@ -20,13 +20,13 @@ This confirms binding works and surfaces the feature you'll attach testcases to.
|
|
|
20
20
|
|
|
21
21
|
What Claude will do under the hood:
|
|
22
22
|
|
|
23
|
-
1. `
|
|
24
|
-
2. `
|
|
25
|
-
3. `
|
|
26
|
-
4. `
|
|
27
|
-
5. `
|
|
28
|
-
6. `
|
|
29
|
-
7. `
|
|
23
|
+
1. `auracheck.search_code` for `Login.tsx` and schema files.
|
|
24
|
+
2. `auracheck.read_code` on the matches.
|
|
25
|
+
3. `auracheck.list_features` → pick "Auth" id.
|
|
26
|
+
4. `auracheck.create_testcase` with a Midscene flow array inferred from the form fields, e.g. `[{ aiInput: "user@example.com", locate: "Email field" }, { aiTap: "Sign in" }, { aiAssert: "Dashboard is visible" }]`. A bare array is wrapped into the `tasks[]` structure the server requires; a YAML/JSON string already shaped that way is passed through untouched.
|
|
27
|
+
5. `auracheck.create_run({ testCaseIds:[id], platform:"web" })`.
|
|
28
|
+
6. `auracheck.execute_run`.
|
|
29
|
+
7. `auracheck.wait_for_run` (defaults: 300 s timeout, 3 s poll).
|
|
30
30
|
8. Reports back the result and report URL.
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -37,9 +37,9 @@ What Claude will do under the hood:
|
|
|
37
37
|
|
|
38
38
|
Claude will iterate via:
|
|
39
39
|
|
|
40
|
-
- `
|
|
41
|
-
- On fail: `
|
|
42
|
-
- Decides: `
|
|
40
|
+
- `auracheck.create_run` → `execute_run` → `wait_for_run`.
|
|
41
|
+
- On fail: `auracheck.get_evidence({ runId })` → reads `failedSteps[].error` + `screenshotUrl`.
|
|
42
|
+
- Decides: `auracheck.update_testcase` (selector / step wording was off) **or** `auracheck.list_bugs` then `auracheck.file_bug({ title, severity:"high", evidences:[screenshotUrl] })`.
|
|
43
43
|
- Re-runs on update; stops after filing a bug.
|
|
44
44
|
|
|
45
45
|
You can cap iterations explicitly:
|
|
@@ -54,9 +54,9 @@ You can cap iterations explicitly:
|
|
|
54
54
|
|
|
55
55
|
Claude will use:
|
|
56
56
|
|
|
57
|
-
- `
|
|
58
|
-
- Polls `
|
|
59
|
-
- Cross-references discovered routes with `
|
|
57
|
+
- `auracheck.start_exploration({ seedUrls:[…], maxDepth:3 })`.
|
|
58
|
+
- Polls `auracheck.get_exploration` until `status === "completed"`.
|
|
59
|
+
- Cross-references discovered routes with `auracheck.search_code` (whitebox) to enrich each testcase.
|
|
60
60
|
- Bulk-creates testcases, bulk-creates one run with all of them, executes, waits.
|
|
61
61
|
|
|
62
62
|
---
|
|
@@ -67,10 +67,10 @@ Claude will use:
|
|
|
67
67
|
|
|
68
68
|
Claude will use:
|
|
69
69
|
|
|
70
|
-
- `
|
|
71
|
-
- `
|
|
72
|
-
- `
|
|
73
|
-
- `
|
|
70
|
+
- `auracheck.list_features` → the "Checkout" id, and `auracheck.list_schedule_recipients` → the leads' user ids (a user absent from that list would silently receive nothing).
|
|
71
|
+
- `auracheck.create_schedule({ name, cronExpressions:["0 9 * * 1-5"], timezone:"Asia/Jakarta", configurationId, caseFilter:{ mode:"feature", featureIds:[…] }, notifyUserIds:[…] })`. Cron and timezone are validated server-side, so a bad cadence is rejected at creation rather than silently never firing.
|
|
72
|
+
- `auracheck.run_schedule_now` → fires on the clock's own code path and hands back the created `runId`, which chains straight into `auracheck.wait_for_run`.
|
|
73
|
+
- `auracheck.list_schedule_fires` when a schedule looks idle: it names the reason — `skipped_overlap` (the previous run is still live), `skipped_misfire` (the tick ran later than `misfireGraceMinutes`), `skipped_capacity`, or `no_cases`.
|
|
74
74
|
|
|
75
75
|
Two traps worth knowing:
|
|
76
76
|
|
|
@@ -81,11 +81,24 @@ Use `enabled:false` while you are still shaping the cadence: `run_schedule_now`
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
-
## 6.
|
|
84
|
+
## 6. Mobile tests on your own device (Android / iOS)
|
|
85
85
|
|
|
86
|
-
>
|
|
86
|
+
> Write test cases for the checkout flow of our Android POS app, put them in a run, and tell me when I can start it.
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Claude will use `create_testcase` (platform `android`) and `create_run` as for web. Mobile runs never
|
|
89
|
+
execute on AuraCheck's servers, so `execute_run` answers `{ started: false, status: "run_from_desktop",
|
|
90
|
+
runUrl, next }` and Claude asks you to open that run in the **AuraCheck desktop app** with the phone
|
|
91
|
+
(USB debugging on) or an emulator connected, and click **Run on local** (iOS: **Run on iOS** on macOS).
|
|
92
|
+
Then `wait_for_run` (give it a longer `timeoutSec`, e.g. 1800) picks up the result, and `get_evidence`
|
|
93
|
+
explains failures. Setup checklist: README → "Mobile testing with the desktop app".
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 7. Pre-flight every commit (CI prompt)
|
|
98
|
+
|
|
99
|
+
> For each changed file in this commit that lives in `src/pages/**`, find the testcase tagged with the route, run it on web, and exit non-zero if any fail. Print the AuraCheck report URLs.
|
|
100
|
+
|
|
101
|
+
Best paired with `--allowedTools` in a CI Claude Code invocation so only `auracheck.*` and `git` are available.
|
|
89
102
|
|
|
90
103
|
---
|
|
91
104
|
|
|
@@ -93,9 +106,9 @@ Best paired with `--allowedTools` in a CI Claude Code invocation so only `sixsev
|
|
|
93
106
|
|
|
94
107
|
Whitebox: `read_code`, `list_dir`, `search_code`.
|
|
95
108
|
|
|
96
|
-
Features/testcases: `list_features`, `create_feature`, `list_testcases`, `get_testcase`, `create_testcase`, `update_testcase`.
|
|
109
|
+
Features/testcases: `list_features`, `create_feature`, `delete_feature`, `list_testcases`, `get_testcase`, `create_testcase`, `update_testcase`, `delete_testcase`.
|
|
97
110
|
|
|
98
|
-
Runs: `list_runs`, `create_run`, `execute_run
|
|
111
|
+
Runs: `list_runs`, `create_run`, `execute_run` (web; mobile runs are started in the desktop app), `get_run`, `cancel_run`, `wait_for_run`, `list_run_testcases`, `get_evidence`.
|
|
99
112
|
|
|
100
113
|
Schedules: `list_schedules`, `get_schedule`, `create_schedule`, `update_schedule`, `delete_schedule`, `run_schedule_now`, `list_schedule_fires`, `list_schedule_recipients`.
|
|
101
114
|
|
|
@@ -114,4 +127,4 @@ Context: `whoami`.
|
|
|
114
127
|
- For iteration loops, set a **hard cap** ("at most 3 attempts") so Claude doesn't spin.
|
|
115
128
|
- If a step screenshot URL is a presigned S3 link, it expires (~1 h). Have Claude file the bug in the same session, not the next day.
|
|
116
129
|
- `get_testcase` returns `steps` as the **YAML/JSON string** the server stores, not an array — parse it before editing, then pass either form back to `update_testcase`.
|
|
117
|
-
- Set `SIXSEVEN_DEBUG=1` before `auracheck mcp` to see stack traces on stderr; Claude won't see them.
|
|
130
|
+
- Set `AURACHECK_DEBUG=1` (deprecated alias `SIXSEVEN_DEBUG=1`) before `auracheck mcp` to see stack traces on stderr; Claude won't see them.
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|