@aarwitz/tapp 0.17.26 → 0.18.0
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/.claude-plugin/plugin.json +2 -2
- package/AGENTS.md +43 -44
- package/README.md +32 -42
- package/bin/tapp.js +168 -99
- package/browser/app.css +220 -208
- package/browser/app.js +173 -20
- package/browser/index.html +118 -57
- package/browser/tokens.css +33 -25
- package/docs/BROWSER-PRODUCT.md +16 -8
- package/docs/BUSINESS-WORKFLOWS.md +134 -0
- package/docs/PRODUCT-ENGINE.md +5 -0
- package/mcp-server/src/browser-product.js +15 -3
- package/mcp-server/src/business-observation.d.ts +2 -0
- package/mcp-server/src/business-observation.js +25 -0
- package/mcp-server/src/business-workflow-files.js +36 -0
- package/mcp-server/src/business-workflow-runtime.js +47 -0
- package/mcp-server/src/business-workflows.d.ts +50 -0
- package/mcp-server/src/business-workflows.js +169 -0
- package/mcp-server/src/environment-capabilities.d.ts +16 -0
- package/mcp-server/src/environment-capabilities.js +78 -0
- package/mcp-server/src/index.js +546 -794
- package/mcp-server/src/product-operations.js +3 -1
- package/mcp-server/src/public-network.js +65 -0
- package/mcp-server/src/web-audit.js +131 -20
- package/mcp-server/src/web-explorer.js +119 -23
- package/mcp-server/src/web-flow.js +17 -4
- package/package.json +7 -1
- package/scripts/run-web-flow.js +4 -0
- package/skills/tapp/SKILL.md +14 -13
- package/skills/tapp/references/commands.md +73 -57
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tapp",
|
|
3
3
|
"description": "Give Claude hands and eyes on iOS, Android, and web apps, with exploration, replayable flows, evidence, and deterministic CI gates.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aaron Horowitz",
|
|
7
7
|
"url": "https://github.com/aarwitz"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"command": "npx",
|
|
25
25
|
"args": [
|
|
26
26
|
"-y",
|
|
27
|
-
"@aarwitz/tapp@0.
|
|
27
|
+
"@aarwitz/tapp@0.18.0",
|
|
28
28
|
"mcp"
|
|
29
29
|
],
|
|
30
30
|
"cwd": "${CLAUDE_PROJECT_DIR}"
|
package/AGENTS.md
CHANGED
|
@@ -13,21 +13,20 @@ APK plus app id, or an owned HTTP(S) URL. You never need to know an iOS bundle i
|
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
npx -y @aarwitz/tapp@latest explore [target] # autonomous exploration → findings + evidence (observation, not a gate; ≈ tapp_explore)
|
|
16
|
-
npx -y @aarwitz/tapp@latest
|
|
16
|
+
npx -y @aarwitz/tapp@latest explore --goal "SCREEN OR CONTROL" [target] # source-locate + shortest observed route + screenshot
|
|
17
17
|
npx -y @aarwitz/tapp@latest explore https://your-app.example --watch # web: visibly follow the same exploration
|
|
18
|
-
npx -y @aarwitz/tapp@latest
|
|
19
|
-
npx -y @aarwitz/tapp@latest
|
|
20
|
-
npx -y @aarwitz/tapp@latest
|
|
21
|
-
npx -y @aarwitz/tapp@latest
|
|
22
|
-
npx -y @aarwitz/tapp@latest build [dir] # build the app in an Xcode repo + install it (≈ tapp_build)
|
|
18
|
+
npx -y @aarwitz/tapp@latest explore --read-only https://example.com --pages 5 # never clicks: production or a site you do not own
|
|
19
|
+
npx -y @aarwitz/tapp@latest look [target] # launch + screen summary + screenshot saved to a file (≈ tapp_look)
|
|
20
|
+
npx -y @aarwitz/tapp@latest look [target] --tree # + the accessibility tree, --json for every element
|
|
21
|
+
npx -y @aarwitz/tapp@latest look # no target on iOS: the booted sim as it is → file path
|
|
23
22
|
npx -y @aarwitz/tapp@latest explore app.apk --platform android --app-id com.acme.app
|
|
24
|
-
npx -y @aarwitz/tapp@latest
|
|
23
|
+
npx -y @aarwitz/tapp@latest run .tapp/flows/smoke.yml # committed, keyless replay of a Flow, Task, contract, or Scenario
|
|
25
24
|
```
|
|
26
25
|
|
|
27
|
-
On iOS, `
|
|
26
|
+
On iOS, `look` only uses an installed app: it never builds, uninstalls, or replaces it. With
|
|
28
27
|
no target it uses the repository's recorded iOS target or the sole installed app; ambiguity
|
|
29
28
|
requires a choice. Pass a bundle id to inspect a particular sandbox build. To replace a build,
|
|
30
|
-
run `
|
|
29
|
+
run `tapp_build` (MCP) or `init . --explore` explicitly first.
|
|
31
30
|
|
|
32
31
|
If repository onboarding detects multiple application targets, target detection is deterministic but
|
|
33
32
|
the choice is the user's. Explicit `init --explore` asks even when the model has a saved default; a
|
|
@@ -41,7 +40,7 @@ with the client's native multiple-choice question UI when available, then rerun
|
|
|
41
40
|
widget.
|
|
42
41
|
|
|
43
42
|
For focused web evidence, `open` and `tree` accept one semantic interaction plus an async content
|
|
44
|
-
wait: `tapp
|
|
43
|
+
wait: `tapp look https://example.com --tap "Not now" --wait-for "Dashboard"`. Tapp waits for the
|
|
45
44
|
page to stabilize before capturing it and warns honestly if the bounded wait ends while it is still
|
|
46
45
|
loading or changing.
|
|
47
46
|
|
|
@@ -64,13 +63,13 @@ installs, returns the bundle id) → `tapp_explore {appBundleId}`.
|
|
|
64
63
|
|
|
65
64
|
| The user wants… | Use | NOT |
|
|
66
65
|
|---|---|---|
|
|
67
|
-
| "Show me / screenshot a screen" | `
|
|
68
|
-
| "Find/reach this named screen or control" | `
|
|
69
|
-
| "Tap through / drive / fill a form / log in" | `
|
|
66
|
+
| "Show me / screenshot a screen" | `tapp_look` (launch + screenshot; `tree:true` for the tree, ~15s) | `tapp_explore` (a full multi-minute exploration) |
|
|
67
|
+
| "Find/reach this named screen or control" | `tapp_session {action:"start", focus}` or `tapp_explore {goal}`; plain CLI: `tapp explore --goal` | screenshot-by-screenshot wandering |
|
|
68
|
+
| "Tap through / drive / fill a form / log in" | `tapp_session` `start` → act loop | repeated `tapp_look` launches (cold relaunch each time) |
|
|
70
69
|
| "Is my app broken? Find bugs" | `tapp_explore` — `appBundleId` for iOS, `androidAppId` for Android, `url` for owned web apps; returns an observation (findings + evidence), not a ship verdict — gate a merge with the CI gate (`tapp ci` CLI / the GitHub Action) + a contract | a manual session (exploration is autonomous) |
|
|
71
|
-
| "Is this live site / production / a prospect's site broken?" | `
|
|
72
|
-
| "Make this flow a repeatable test" | drive it in a session, then `
|
|
73
|
-
| "What's on screen right now?" | `
|
|
70
|
+
| "Is this live site / production / a prospect's site broken?" | `tapp_explore {readOnly:true}` (CLI `tapp explore --read-only <url> --pages N`) — read-only: dead controls, broken images/links/assets, failed requests, JS errors, mixed content, overflow; writes a capture with evidence | `tapp_explore` (it clicks, types and submits) |
|
|
71
|
+
| "Make this flow a repeatable test" | drive it in a session, then `tapp_session {action:"save_flow"}`; replay with `tapp_run` | re-driving it by hand every time |
|
|
72
|
+
| "What's on screen right now?" | `tapp_look` | relaunching the app |
|
|
74
73
|
|
|
75
74
|
## Session driving (the Playwright loop)
|
|
76
75
|
|
|
@@ -81,19 +80,19 @@ If it returns source evidence without a route, inspect the cited file/navigation
|
|
|
81
80
|
wander blindly or invent a route. URL-only targets correctly have no source advantage.
|
|
82
81
|
|
|
83
82
|
```
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
83
|
+
tapp_session { action: "start", appBundleId: "com.acme.app", focus: "Save storefront settings visible above keyboard", projectDir: "." }
|
|
84
|
+
tapp_session { action: "start", focus: "Storefront Settings", projectDir: "." } → managed web target from the workspace
|
|
85
|
+
tapp_explore { goal: "Save storefront settings visible above keyboard" } → one-call shortest observed route
|
|
86
|
+
tapp_session { action: "login", email: "qa@x.com", password: "…" } → atomic fill + submit + verify
|
|
87
|
+
tapp_session { action: "tap", id: "Email" } → tap by a11y id OR visible label
|
|
88
|
+
tapp_session { action: "type", text: "qa@x.com" } → types into the focused field
|
|
89
|
+
tapp_session { action: "tap", id: "Sign In" }
|
|
90
|
+
tapp_session { action: "wait", text: "Home", timeoutMs: 10000 } → block until it appears
|
|
91
|
+
tapp_look → see it
|
|
92
|
+
tapp_session { action: "end" }
|
|
94
93
|
```
|
|
95
94
|
|
|
96
|
-
Android uses the same loop with `
|
|
95
|
+
Android uses the same loop with `tapp_session { action: "start", androidAppId: "com.acme.app", apkPath:
|
|
97
96
|
"path/to/app.apk" }`. Android selectors prefer resource id, then content description, exact text,
|
|
98
97
|
and text contains. The APK/app id replace the iOS bundle/simulator build inputs.
|
|
99
98
|
|
|
@@ -112,12 +111,12 @@ Rules that prevent 90% of failures:
|
|
|
112
111
|
secret-templated replay step and avoids native secure-field refocus behavior.
|
|
113
112
|
5. Tap results: `ok` (landed), `not_hittable` (exists but disabled/covered — the harness
|
|
114
113
|
auto-dismisses keyboards and retries), `not_found` (nothing matches — re-read the tree).
|
|
115
|
-
6. One session at a time. `
|
|
114
|
+
6. One session at a time. `action:"start"` always begins from a fresh **cold** launch
|
|
116
115
|
(terminate + relaunch, for a deterministic starting screen). Persisted app data such as
|
|
117
116
|
Keychain credentials survives, but the app opens on its launch screen, not a resumed
|
|
118
117
|
foreground state — an app that gates each cold start behind sign-in WILL show its login
|
|
119
|
-
wall, so plan `login` (or a bypass launch argument) as the first act. Plain `tapp
|
|
120
|
-
|
|
118
|
+
wall, so plan `login` (or a bypass launch argument) as the first act. Plain `tapp look`
|
|
119
|
+
warm-resumes the currently foregrounded app instead, which is why they can
|
|
121
120
|
look signed-in when a fresh session does not.
|
|
122
121
|
|
|
123
122
|
## Autonomous exploration (`tapp_explore`)
|
|
@@ -139,7 +138,7 @@ advisory). Report the finding counts and coverage; do not invent a scalar or a s
|
|
|
139
138
|
(e.g. `["--uitesting"]` if the app has a test bypass), and/or `appLaunchEnv` (e.g. a staging
|
|
140
139
|
backend URL). If the result shows `inputFieldsEncountered` and you have no credentials, **ask
|
|
141
140
|
the user** for them rather than re-running blind.
|
|
142
|
-
- `tapp
|
|
141
|
+
- `tapp explore --read-only <url>` / `tapp_explore {readOnly:true}` is the read-only pass: it renders the page and reads it but never
|
|
143
142
|
clicks, types, submits, or hovers, so it is the one analysis safe to point at production or at a
|
|
144
143
|
site you do not own. It finds controls that were never alive (dead in-page anchors,
|
|
145
144
|
`aria-controls` naming nothing, placeholder links, buttons with no handler/form/link — which Flows
|
|
@@ -167,35 +166,35 @@ advisory). Report the finding counts and coverage; do not invent a scalar or a s
|
|
|
167
166
|
Flow YAML is repository-native test code. Commit it under `.tapp/flows/`; CI can replay it
|
|
168
167
|
without a coding agent, model, subscription, or API key. AI generation and `assert_ai` are optional.
|
|
169
168
|
|
|
170
|
-
- **Record:** every successful
|
|
171
|
-
`
|
|
169
|
+
- **Record:** every successful session act is recorded. After driving a flow, call
|
|
170
|
+
`tapp_session { action: "save_flow", name: "checkout" }` → writes `.tapp/flows/checkout.yml` with waits and
|
|
172
171
|
a final screen assertion auto-inserted; typed credentials are templated to `$TEST_EMAIL`/`$TEST_PASSWORD`.
|
|
173
|
-
- **Replay:** `
|
|
172
|
+
- **Replay:** `tapp_run { path: ".tapp/flows/checkout.yml" }` — exact steps,
|
|
174
173
|
deterministic assertions, same result every time. A failed assertion is a finding.
|
|
175
174
|
- **Credentials at replay:** pass real values (`testEmail`/`testPassword`, CLI `--email`/
|
|
176
175
|
`--password`), or name a configured actor (`actor: "coach"`, CLI `--actor coach`) and Tapp
|
|
177
176
|
resolves `$TEST_EMAIL`/`$TEST_PASSWORD` from the env vars that actor binds. Actors store
|
|
178
|
-
env-var **names** only — never values. `tapp actor set` refuses to overwrite an existing
|
|
177
|
+
env-var **names** only — never values. `tapp plan actor set` refuses to overwrite an existing
|
|
179
178
|
actor unless you pass `--replace`, so idempotent setup scripts must include it.
|
|
180
|
-
- **Generate:** `
|
|
179
|
+
- **Generate:** `tapp_session { action: "draft_flow", goal: "log in and add the first item to cart" }` —
|
|
181
180
|
grounded in the app's actually-explored screens, so it can't invent steps.
|
|
182
|
-
- **Discover the file format without MCP:** `npx -y @aarwitz/tapp@latest
|
|
183
|
-
complete starter Flow; `tapp
|
|
181
|
+
- **Discover the file format without MCP:** `npx -y @aarwitz/tapp@latest validate --example` prints a
|
|
182
|
+
complete starter Flow; `tapp validate <file>` checks it without launching a target.
|
|
184
183
|
|
|
185
184
|
## Setup facts (tell the user when relevant)
|
|
186
185
|
|
|
187
186
|
- iOS runs locally on a Mac with Xcode + a simulator. Android needs `adb` and a connected
|
|
188
187
|
emulator/device; source builds also need JDK 17, while prebuilt APK testing does not. Web needs
|
|
189
188
|
Playwright + Chromium. `tapp doctor` reports each capability separately.
|
|
190
|
-
- First tool call builds the test harness once (~2 min, cached in `~/.tapp`). `tapp install`
|
|
189
|
+
- First tool call builds the test harness once (~2 min, cached in `~/.tapp`). `tapp doctor --install`
|
|
191
190
|
prebuilds it. Switching simulators triggers an automatic rebuild.
|
|
192
|
-
- The app under test must be **installed on the booted simulator** (`
|
|
191
|
+
- The app under test must be **installed on the booted simulator** (`tapp_build { action: "install" }` builds
|
|
193
192
|
and installs from an Xcode project/workspace; or the user's normal build).
|
|
194
|
-
- A simulator must be booted (`
|
|
193
|
+
- A simulator must be booted (`tapp_build { action: "list_simulators" }` → `{ action: "boot" }`).
|
|
195
194
|
- Screenshots/captures land in `~/.tapp/captures/`.
|
|
196
195
|
- Driving `tapp mcp` from a raw stdio client: **consume or discard stderr** — the server logs
|
|
197
196
|
progress there, and an unread stderr pipe can deadlock a naive client. The first
|
|
198
|
-
`
|
|
197
|
+
`tapp_session { action: "start" }` on a cold machine includes the one-time harness build, so it can take
|
|
199
198
|
minutes before the first result arrives; that is startup cost, not a hang.
|
|
200
199
|
- Managed web targets always bind `127.0.0.1` and prefer the repository's declared or framework
|
|
201
200
|
default port (vite → 5173, next → 3000). If the app's backend uses a CORS allowlist, pin the
|
|
@@ -212,10 +211,10 @@ without a coding agent, model, subscription, or API key. AI generation and `asse
|
|
|
212
211
|
I haven't verified checkout").
|
|
213
212
|
- The capture a command returns is the evidence; `~/.tapp/captures/` holds every project's history.
|
|
214
213
|
Every capture carries `provenance.json` (kind, platform, target, project) and every result that
|
|
215
|
-
hands back a capture path hands back that record. `
|
|
214
|
+
hands back a capture path hands back that record. `tapp_report` and `tapp report latest`
|
|
216
215
|
are scoped to the current project; pass `allProjects:true` only when the user asks for history,
|
|
217
216
|
and never present another project's capture as this project's evidence or borrow it as a fixture.
|
|
218
|
-
- A clean
|
|
217
|
+
- A clean read-only explore means the page is served without structural defects. It says nothing about
|
|
219
218
|
behaviour, because nothing was clicked; never report it as "the site works".
|
|
220
219
|
|
|
221
220
|
## File feedback on tapp itself — don't just work around it
|
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ you want inline screenshot results or when the agent must interactively tap, typ
|
|
|
70
70
|
arbitrary multi-step journey in one persistent session. It is not required for the core
|
|
71
71
|
skill-to-CLI workflow.
|
|
72
72
|
|
|
73
|
-
**A live site, production, or a site you do not own:** the agent uses `tapp
|
|
73
|
+
**A live site, production, or a site you do not own:** the agent uses `tapp explore --read-only` / `tapp_explore {readOnly:true}`,
|
|
74
74
|
which renders and reads the page but never clicks, types or submits. Exploration is for apps and
|
|
75
75
|
environments you own.
|
|
76
76
|
|
|
@@ -106,12 +106,12 @@ From the app repository, ground Tapp once, then use the smallest operation for l
|
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
108
|
npx -y @aarwitz/tapp@latest init . --explore # first run: detect/build, explore, and ground .tapp/ui-map.json
|
|
109
|
-
npx -y @aarwitz/tapp@latest
|
|
110
|
-
npx -y @aarwitz/tapp@latest
|
|
109
|
+
npx -y @aarwitz/tapp@latest look # one current screen + screenshot
|
|
110
|
+
npx -y @aarwitz/tapp@latest explore --goal "Save storefront settings visible above keyboard" # source + observed-route fast path
|
|
111
111
|
npx -y @aarwitz/tapp@latest explore # later broad exploration (observation, not a gate)
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
Source tells `
|
|
114
|
+
Source tells `explore --goal` where the requested UI likely lives; only a route already observed in
|
|
115
115
|
`.tapp/ui-map.json` authorizes navigation. If a fresh repository has no such route yet, Tapp returns
|
|
116
116
|
the source evidence instead of guessing through the app.
|
|
117
117
|
|
|
@@ -137,13 +137,13 @@ npx -y @aarwitz/tapp@latest init . --explore --platform ios --target .
|
|
|
137
137
|
# Or connect to an already-running owned URL:
|
|
138
138
|
npx -y @aarwitz/tapp@latest init . --explore --platform web --url http://127.0.0.1:4173
|
|
139
139
|
# If the app has roles/accounts, bind names once; values stay in local/CI secrets.
|
|
140
|
-
npx -y @aarwitz/tapp@latest actor set alice . --role member --session isolated \
|
|
140
|
+
npx -y @aarwitz/tapp@latest plan actor set alice . --role member --session isolated \
|
|
141
141
|
--credential email=ALICE_EMAIL --credential password=ALICE_PASSWORD
|
|
142
142
|
# Review-only path: tapp init . → tapp plan show → tapp plan review --approve ...
|
|
143
143
|
|
|
144
144
|
# After approved drafts replay and are promoted, establish the selected target's baseline
|
|
145
145
|
# through the ordinary full gate, then generate the reviewable GitHub workflow.
|
|
146
|
-
npx -y @aarwitz/tapp@latest baseline
|
|
146
|
+
npx -y @aarwitz/tapp@latest ci baseline . --platform web
|
|
147
147
|
npx -y @aarwitz/tapp@latest ci install .
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -167,21 +167,19 @@ configuration and existing-file collisions, and never commits, pushes, enables b
|
|
|
167
167
|
or creates GitHub resources. Review and pin the generated Tapp release reference to its immutable
|
|
168
168
|
commit SHA before production.
|
|
169
169
|
|
|
170
|
-
`
|
|
170
|
+
`look` and `explore` accept a repo directory, a `path/to/App.app`, a bundle id, or no target
|
|
171
171
|
(auto-detecting the repository or installed app):
|
|
172
172
|
|
|
173
173
|
```bash
|
|
174
|
-
npx -y @aarwitz/tapp@latest
|
|
175
|
-
npx -y @aarwitz/tapp@latest
|
|
176
|
-
npx -y @aarwitz/tapp@latest
|
|
177
|
-
npx -y @aarwitz/tapp@latest apps # what's installed on the simulator (names + bundle ids)
|
|
178
|
-
npx -y @aarwitz/tapp@latest build [dir] # just build + install (scheme auto-detected)
|
|
174
|
+
npx -y @aarwitz/tapp@latest look [target] # launch the app → screen summary + screenshot file
|
|
175
|
+
npx -y @aarwitz/tapp@latest look [target] --tree # + the accessibility tree of the current screen
|
|
176
|
+
npx -y @aarwitz/tapp@latest look # no target on iOS: the booted simulator as it is right now
|
|
179
177
|
```
|
|
180
178
|
|
|
181
|
-
On iOS, `tree` inspects an installed app and never builds, uninstalls, or replaces it. With no
|
|
179
|
+
On iOS, `look --tree` inspects an installed app and never builds, uninstalls, or replaces it. With no
|
|
182
180
|
target, it uses the repository's recorded iOS target or the sole installed app. If the choice
|
|
183
181
|
is ambiguous, it lists the installed apps for you to select. Pass a bundle id to inspect a
|
|
184
|
-
specific sandbox build; run `
|
|
182
|
+
specific sandbox build; run `tapp_build` (MCP) or `init . --explore` when you intend to replace it.
|
|
185
183
|
|
|
186
184
|
iOS Flow evidence includes `flow-final.png` on passing and failing replays, plus
|
|
187
185
|
`flow-failure-N.png` at a failed step, alongside the log, JSON report, and XCTest result bundle.
|
|
@@ -195,25 +193,24 @@ Focused web inspection waits briefly for loading states to settle. If a consent
|
|
|
195
193
|
blocks the screen, dismiss it and wait for the content you care about in the same package-only call:
|
|
196
194
|
|
|
197
195
|
```bash
|
|
198
|
-
npx -y @aarwitz/tapp@latest
|
|
199
|
-
npx -y @aarwitz/tapp@latest
|
|
196
|
+
npx -y @aarwitz/tapp@latest look https://example.com --tap "Not now" --wait-for "Dashboard"
|
|
197
|
+
npx -y @aarwitz/tapp@latest look https://example.com --tree --tap "Not now" --wait-for "Dashboard" --json
|
|
200
198
|
```
|
|
201
199
|
|
|
202
200
|
Android:
|
|
203
201
|
|
|
204
202
|
```bash
|
|
205
203
|
npx -y @aarwitz/tapp@latest explore path/to/app-debug.apk --platform android --app-id com.acme.app
|
|
206
|
-
npx -y @aarwitz/tapp@latest
|
|
204
|
+
npx -y @aarwitz/tapp@latest look com.acme.app --platform android
|
|
207
205
|
```
|
|
208
206
|
|
|
209
207
|
Turn a driven journey into a deterministic test, or print the complete Flow format before writing
|
|
210
208
|
one by hand:
|
|
211
209
|
|
|
212
210
|
```bash
|
|
213
|
-
npx -y @aarwitz/tapp@latest
|
|
214
|
-
npx -y @aarwitz/tapp@latest
|
|
215
|
-
npx -y @aarwitz/tapp@latest
|
|
216
|
-
npx -y @aarwitz/tapp@latest flow run .tapp/flows/smoke.yml
|
|
211
|
+
npx -y @aarwitz/tapp@latest validate --example # a complete starter Flow, with the step vocabulary
|
|
212
|
+
npx -y @aarwitz/tapp@latest validate .tapp/flows/smoke.yml
|
|
213
|
+
npx -y @aarwitz/tapp@latest run .tapp/flows/smoke.yml # Flows, Tasks, contracts, and Scenarios all replay with `run`
|
|
217
214
|
```
|
|
218
215
|
|
|
219
216
|
Flows support an atomic `login` step using `$TEST_EMAIL` / `$TEST_PASSWORD`; Tapp's session recorder
|
|
@@ -221,8 +218,8 @@ creates that step without writing credential values into the repository.
|
|
|
221
218
|
|
|
222
219
|
Optional but recommended (prebuilds the test harness so the first run is fast):
|
|
223
220
|
```bash
|
|
224
|
-
npx -y @aarwitz/tapp@latest install
|
|
225
|
-
npx -y @aarwitz/tapp@latest doctor
|
|
221
|
+
npx -y @aarwitz/tapp@latest doctor --install # ~2 min, one time
|
|
222
|
+
npx -y @aarwitz/tapp@latest doctor # verify Xcode / simulators / toolchain
|
|
226
223
|
```
|
|
227
224
|
|
|
228
225
|
### MCP hookup (optional)
|
|
@@ -263,23 +260,16 @@ Then ask your agent:
|
|
|
263
260
|
|
|
264
261
|
| | Tool | What it does |
|
|
265
262
|
|---|---|---|
|
|
266
|
-
| 👁 | `
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
| 🕹 | `tapp_session_start/act/end` | **Interactive driving** — the Playwright loop. App launches once; each act (tap/type/swipe/back/wait) returns the fresh tree. |
|
|
270
|
-
| 🔭 | `tapp_explore` | **Autonomous exploration** — explores with no authored test, returns an observation `{kind, headline, inconclusive, findingCounts, findings[]}` (no verdict/score — the deterministic gate judges). Takes `appBundleId` (iOS), `androidAppId` (Android), or `url` (web). |
|
|
263
|
+
| 👁 | `tapp_look` | **See a screen** — the current real surface: screen summary + inline screenshot; `tree:true` adds the accessibility tree (ids, labels, hittability). Seconds. |
|
|
264
|
+
| 🕹 | `tapp_session` | **Interactive driving** — `action:"start"`, then `tap/type/swipe/back/wait/login` (each returns the fresh tree), then `"end"`. `save_flow` keeps the journey as a replayable Flow; `draft_flow` proposes one from a goal. |
|
|
265
|
+
| 🔭 | `tapp_explore` | **Autonomous exploration** — explores with no authored test, returns an observation `{kind, headline, inconclusive, findingCounts, findings[]}` (no verdict/score — the deterministic gate judges). `readOnly:true` never clicks (production, a site you do not own); `goal:"…"` source-locates a named screen and takes the shortest observed route. Takes `appBundleId` (iOS), `androidAppId` (Android), or `url` (web). |
|
|
271
266
|
| 🧭 | `tapp_init` | **Repository import** — detect targets; optionally explore a real surface; persist the shared UI Map; construct the evidence-classified model and grounded release plan. |
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
| 🚦 | `
|
|
275
|
-
| 🗺️ | `
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
| 📋 | `tapp_pr_plan` | **PR-aware evolution** — select reviewed contracts, schedule bounded changed-surface exploration, and explicitly adopt observed coverage proposals without silent rewrites. |
|
|
279
|
-
| 🔁 | `tapp_flow_run` / `flow_save` / `flow_generate` | **Deterministic E2E execution (Flows)** — raw steps or reusable Task calls replay with exact assertions. |
|
|
280
|
-
| 👥 | `tapp_scenario_run` | **Multi-actor system tests** — isolated named browser sessions verify cross-account state with deterministic assertions. No AI at replay time. |
|
|
281
|
-
| 📱 | `tapp_list_simulators` / `boot_simulator` / `install_app` | Simulator + app management. |
|
|
282
|
-
| 🩺 | `tapp_health`, `tapp_capture*`, `tapp_parse_markers` | Diagnostics and capture history. |
|
|
267
|
+
| ✅ | `tapp_plan` | **Release-plan lifecycle** — `show`, `review` (approve/reject/defer), `generate`, real-target `validate`, explicit `promote`, PR-aware `pr`/`adopt`, and `actor` setup (roles and env-var names, never credential values). No silent test edits. |
|
|
268
|
+
| 🔁 | `tapp_run` / `tapp_validate` | **Deterministic replay** — run or validate a committed Flow, reusable Task, business-level contract, or multi-actor Scenario; the kind comes from the file. No AI at replay time. |
|
|
269
|
+
| 🚦 | `tapp_ci` | **Baseline and CI setup** — save a target-scoped baseline or render/install the same reviewable target-aware workflow as the CLI. |
|
|
270
|
+
| 🗺️ | `tapp_map` | **Persistent UI Map** — build, inspect, merge, and diff observed states, controls, transitions, provenance, and coverage. |
|
|
271
|
+
| 📱 | `tapp_build` | **Build and simulator management** — `build`, `install`, `list_simulators`, `boot`; builds an iOS app without knowing its bundle id first. |
|
|
272
|
+
| 🩺 | `tapp_doctor` / `tapp_report` / `tapp_feedback` | Toolchain check, this project's capture history and evidence, and issues about Tapp itself. |
|
|
283
273
|
|
|
284
274
|
Canonical installable skill: [`skills/tapp/SKILL.md`](skills/tapp/SKILL.md). Full low-level tool
|
|
285
275
|
reference: [AGENTS.md](./AGENTS.md). Both ship inside the npm package; installing the Claude plugin
|
|
@@ -383,7 +373,7 @@ inconclusive; Tapp does not guess a path from a screen name.
|
|
|
383
373
|
The first successful, conclusive run on `main` seeds a repository-scoped Actions cache and a
|
|
384
374
|
90-day baseline artifact. Both are keyed by platform and stable application-model target id. Pull requests automatically restore it and fail only on **new**
|
|
385
375
|
high/critical findings or broken Flows—not pre-existing debt. No baseline commit or PAT is required.
|
|
386
|
-
If you prefer a reviewed, durable baseline, run `tapp baseline
|
|
376
|
+
If you prefer a reviewed, durable baseline, run `tapp ci baseline` and commit the generated
|
|
387
377
|
`.tapp/baselines/<platform>/<target-id>.json`; `tapp ci install` wires its explicit path into the
|
|
388
378
|
corresponding job. The legacy `.tapp/baseline.json` is still recognized. Automatic baseline restore and the PR comment need `actions: read` and
|
|
389
379
|
`pull-requests: write` as shown above. Secrets are unavailable to workflows from forks, so
|
|
@@ -437,7 +427,7 @@ your agent proves its UI work instead of claiming it:
|
|
|
437
427
|
```markdown
|
|
438
428
|
## Verifying UI changes
|
|
439
429
|
This repo uses tapp (https://github.com/aarwitz/tapp) to verify UI work on a real app surface
|
|
440
|
-
(iOS simulator, Android emulator/device, or a browser for web). After any UI change, run `npx -y @aarwitz/tapp@latest
|
|
430
|
+
(iOS simulator, Android emulator/device, or a browser for web). After any UI change, run `npx -y @aarwitz/tapp@latest look` from the
|
|
441
431
|
repo root (it finds and builds the Xcode project itself) and look at the screenshot it saves as
|
|
442
432
|
proof. Before declaring a feature done, run `npx -y @aarwitz/tapp@latest explore` (or `explore <url>` for web)
|
|
443
433
|
and report the findings + evidence. A change is not "done" until it has been seen working.
|
|
@@ -466,7 +456,7 @@ reviewed change—no secrets or evidence formats need to be rewritten.
|
|
|
466
456
|
|
|
467
457
|
Committed Flow replay, recording a driven session, autonomous exploration, exact assertions,
|
|
468
458
|
regression comparison, and CI gating require **no API key and no coding agent at runtime**. AI is
|
|
469
|
-
only an optional authoring/enrichment layer (`
|
|
459
|
+
only an optional authoring/enrichment layer (`tapp_session {action:"draft_flow"}`, `assert_ai`, finding enrichment).
|
|
470
460
|
|
|
471
461
|
The first tool call builds the harness once (~2 min, cached in `~/.tapp`; rebuilt automatically
|
|
472
462
|
if you switch simulators). All captures land in `~/.tapp/captures/`.
|