@mushi-mushi/ux 0.2.1 → 0.3.1
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 +1 -1
- package/README.md +28 -7
- package/dist/cli.js +1633 -151
- package/dist/index.d.ts +612 -235
- package/dist/index.js +1663 -332
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @mushi-mushi/ux
|
|
2
2
|
|
|
3
|
-
> **Your AI wrote it. Mushi tells you why it broke.**
|
|
3
|
+
> **Your AI wrote it. Mushi Mushi tells you why it broke.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
For people who build with an AI coding agent and keep hearing that a screen is cramped, unreadable or broken on a phone. This [Mushi Mushi](https://github.com/kensaurus/mushi-mushi) tool finds the UX problems on every screen of your app before your users do, and lets the coding agent you already pay for fix them one screen at a time. Every change is measured. Only the ones that help are kept, on a branch you review.
|
|
6
|
+
|
|
7
|
+
You need your app running locally and a coding agent you are signed in to (Claude Code or the Cursor CLI; Codex and Cursor Cloud are not yet verified). A Mushi Mushi account is only needed to mirror runs to the console or file reports.
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npx @mushi-mushi/ux ui # the studio on 127.0.0.1: pick agent, model and pages, then watch each attempt
|
|
@@ -15,13 +17,13 @@ flowchart LR
|
|
|
15
17
|
subgraph local["Your computer"]
|
|
16
18
|
S["Studio on 127.0.0.1<br/>mushi ux ui"] --> R["Run: map screens,<br/>agent edits, measure"] --> B["Branch mushi-ux/run-id<br/>kept changes only"]
|
|
17
19
|
end
|
|
18
|
-
R -. "--sync mirrors the run" .-> C["Mushi console<br/>review every screen"]
|
|
20
|
+
R -. "--sync mirrors the run" .-> C["Mushi Mushi console<br/>review every screen"]
|
|
19
21
|
B --> P["Draft PR"] --> C
|
|
20
22
|
C --> M["Merge"]
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
1. **Studio (your computer).** `mushi ux ui` opens a page on 127.0.0.1. Pick the agent, model, skill and pages, then watch each attempt live.
|
|
24
|
-
2. **Console (mirror and review).** With sync on, the run is mirrored to the [console](https://kensaur.us/mushi-mushi/admin) as it goes. The studio offers sync when you are signed in with the Mushi CLI; from the terminal, add `--sync`. **Review in console** on a run opens it there, screen by screen.
|
|
26
|
+
2. **Console (mirror and review).** With sync on, the run is mirrored to the [console](https://kensaur.us/mushi-mushi/admin) as it goes. The studio offers sync when you are signed in with the Mushi Mushi CLI; from the terminal, add `--sync`. **Review in console** on a run opens it there, screen by screen.
|
|
25
27
|
3. **Merge.** Open the kept changes as a draft PR from the studio, then merge it from the console (after a confirmation) or on GitHub. Nothing is merged for you.
|
|
26
28
|
|
|
27
29
|
## Quick start
|
|
@@ -71,8 +73,9 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
71
73
|
| `mushi-ux ui` | The studio: start runs and watch them |
|
|
72
74
|
| `mushi-ux run --dev "<cmd with {port}>"` | Run the loop from the terminal |
|
|
73
75
|
| `mushi-ux discover --url <url>` | List the screens, change nothing |
|
|
74
|
-
| `mushi-ux audit --url <live url> --profile-dir <dir>` | Find UX bugs on signed-in screens and file them as Mushi reports (below) |
|
|
76
|
+
| `mushi-ux audit --url <live url> --profile-dir <dir>` | Find UX bugs on signed-in screens and file them as Mushi Mushi reports (below) |
|
|
75
77
|
| `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) |
|
|
78
|
+
| `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
79
|
| `mushi-ux login --url <url>` | Sign in once, in a visible browser |
|
|
77
80
|
| `mushi-ux models` / `mushi-ux skills` | What `--model` and `--skill` accept |
|
|
78
81
|
| `mushi-ux open <runId>` | The local dashboard for a past run |
|
|
@@ -87,11 +90,11 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
87
90
|
| `--sync` | off | Mirror the run to the console (`mushi ux` passes your login) |
|
|
88
91
|
| `--no-judge` / `--no-preflight` / `--no-dashboard` | — | Skip the review, the agent check, or the local dashboard |
|
|
89
92
|
|
|
90
|
-
Run state and screenshots live in `.mushi/ux/<runId>/`. The run adds its folders to `.git/info/exclude`, so `git status` stays clean. `--sync` refuses a run whose app reports to a different Mushi project than your login.
|
|
93
|
+
Run state and screenshots live in `.mushi/ux/<runId>/`. The run adds its folders to `.git/info/exclude`, so `git status` stays clean. `--sync` refuses a run whose app reports to a different Mushi Mushi project than your login.
|
|
91
94
|
|
|
92
95
|
## Audit signed-in screens
|
|
93
96
|
|
|
94
|
-
`mushi-ux audit` checks the live app the way a signed-in user sees it and files what is wrong as Mushi reports, so the fix loop picks them up. It never edits code and never opens a fresh browser: point it at a cached, signed-in profile.
|
|
97
|
+
`mushi-ux audit` checks the live app the way a signed-in user sees it and files what is wrong as Mushi Mushi reports, so the fix loop picks them up. It never edits code and never opens a fresh browser: point it at a cached, signed-in profile.
|
|
95
98
|
|
|
96
99
|
```bash
|
|
97
100
|
mushi-ux audit --url https://example.com/admin \
|
|
@@ -120,6 +123,24 @@ mushi-ux explore --url https://example.com/admin \
|
|
|
120
123
|
- 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
124
|
- `--file` and `--dry-run` work as for the audit, sharing its 14-day ledger.
|
|
122
125
|
|
|
126
|
+
## Fresh eyes: a first-time visitor
|
|
127
|
+
|
|
128
|
+
`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.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
mushi-ux fresh-eyes --url https://example.com --goal "get my first report" --dry-run
|
|
132
|
+
mushi-ux fresh-eyes --url https://example.com --goal "get my first report" \
|
|
133
|
+
--success-url "/reports/*" --success-text "Why it broke" --sessions 3 --sync --file
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
- **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.
|
|
137
|
+
- **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.
|
|
138
|
+
- **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.
|
|
139
|
+
- **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 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.
|
|
140
|
+
- **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.
|
|
141
|
+
- 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).
|
|
142
|
+
- 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.
|
|
143
|
+
|
|
123
144
|
## On GitHub Actions
|
|
124
145
|
|
|
125
146
|
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.
|