@mushi-mushi/ux 0.2.1 → 0.3.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/README.md CHANGED
@@ -73,6 +73,7 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
73
73
  | `mushi-ux discover --url <url>` | List the screens, change nothing |
74
74
  | `mushi-ux audit --url <live url> --profile-dir <dir>` | Find UX bugs on signed-in screens and file them as Mushi reports (below) |
75
75
  | `mushi-ux explore --url <live url> --profile-dir <dir>` | Let a model use the signed-in app like a careless user; file the errors a replay confirms (below) |
76
+ | `mushi-ux fresh-eyes --url <landing> --goal "<text>"` | Try one goal as a first-time visitor; time the path and file what stops them (below) |
76
77
  | `mushi-ux login --url <url>` | Sign in once, in a visible browser |
77
78
  | `mushi-ux models` / `mushi-ux skills` | What `--model` and `--skill` accept |
78
79
  | `mushi-ux open <runId>` | The local dashboard for a past run |
@@ -120,6 +121,24 @@ mushi-ux explore --url https://example.com/admin \
120
121
  - A finding is a console error, an uncaught error, a 5xx from the app (or an `--api-host`), or a blank page after an action. It is filed only when replaying the steps without the model shows it again, with the steps as the repro.
121
122
  - `--file` and `--dry-run` work as for the audit, sharing its 14-day ledger.
122
123
 
124
+ ## Fresh eyes: a first-time visitor
125
+
126
+ `mushi-ux fresh-eyes` tries one goal the way a stranger would: from the landing page, signed out, with a model that has never seen the product and reads only what is on screen. The model only picks the next action; code times the path and decides what stopped it.
127
+
128
+ ```bash
129
+ mushi-ux fresh-eyes --url https://example.com --goal "get my first report" --dry-run
130
+ mushi-ux fresh-eyes --url https://example.com --goal "get my first report" \
131
+ --success-url "/reports/*" --success-text "Why it broke" --sessions 3 --sync --file
132
+ ```
133
+
134
+ - **Time to first value** is the app's wait (each action, navigation and settle) plus reading time for each new screen (238 words a minute, at most a minute a screen), until the goal check passes: `--success-url`, `--success-text`, `--success-selector` or `--success-api` (all given must hold). The model's think time is recorded but never counted.
135
+ - **Measured findings**, filed once a replay of the steps without the model shows them again: console and page errors, a 5xx, a blank page, a dead end, a sign-in it cannot pass, a captcha (never solved), a step that needs an inbox, an API key, a terminal or another account. **Opinions** ("confusing", "unclear copy", "too many choices", giving up) are filed only when 2 of the sessions (`--sessions`, default 3) name the same screen.
136
+ - **Writes** reach only the start URL's origin and `--app-host` hosts. Payments, third-party sign-in, public sign-up endpoints (`/auth/v1/signup`, OTP, recovery) and anything labelled delete, revoke, upgrade or sign out are refused in every mode. `--dry-run` writes nothing, uses no account and files nothing.
137
+ - **Accounts:** the model types `{{email}}` and `{{password}}`; code fills in `MUSHI_FRESH_EYES_EMAIL` / `MUSHI_FRESH_EYES_PASSWORD` (your app's test account) or, for Mushi itself, `--mint-account` (an operator key; the account is flagged synthetic and deleted after a day). The real values never reach the prompt, the timeline or the console.
138
+ - **Terminal setup:** `--terminal` runs a CLI setup step itself when a screen asks for a terminal: a sample app in a temp folder, the setup command (`--setup-command`, `{projectId}` and `{apiKey}` filled from the screen), one report through the widget, each phase timed.
139
+ - What the model reads: the page's main content first, then its navigation, never a control a mouse user cannot see. A window a click opens on the app (a sign-in popup) is followed. A wait that hits its 20 s cap is marked on its step and never counted as the app's time. `--steps` defaults to 30, or 60 with a test account; the minted account's user id is in the log and timeline (never its password).
140
+ - Output: `timeline.md` (each step, its screenshot, app wait and reading time, where it stalled), `result.json` and `shots/`. `--out <dir>` chooses the folder. `--sync` mirrors the run to the console's First-time user test page (a `--dry-run` too, marked "look around only"). `--request-stdin` reads the run (its id, start page, goal, visitors and test accounts) as JSON on stdin: how a local worker runs a test the console queued, so nothing it was given sits in argv.
141
+
123
142
  ## On GitHub Actions
124
143
 
125
144
  Copy [`docs/templates/mushi-ux.yml`](https://github.com/kensaurus/mushi-mushi/blob/master/docs/templates/mushi-ux.yml) to `.github/workflows/mushi-ux.yml` and set its `dev-command`. Start it from the Actions tab, or with **Run in the cloud** on the console's [UX runs](https://kensaur.us/mushi-mushi/docs/admin/ux-runs) page. It uses `cursor-cloud`, sees the app signed out, and opens one draft PR. Its pushes go to `mushi-ux/**`, so add `branches-ignore: ['mushi-ux/**']` to any CI that runs on every push.