@mushi-mushi/ux 0.5.1 → 0.6.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 +16 -2
- package/dist/cli.js +4383 -3935
- package/dist/index.d.ts +122 -13
- package/dist/index.js +331 -131
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mushi-mushi/ux
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **The bug button for apps built with AI.**
|
|
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
6
|
|
|
@@ -23,7 +23,7 @@ flowchart LR
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
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.
|
|
26
|
-
2. **Console (mirror and review).** With sync on, the run is mirrored to the [console](https://kensaur.us
|
|
26
|
+
2. **Console (mirror and review).** With sync on, the run is mirrored to the [console](https://mushi.kensaur.us) 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.
|
|
27
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.
|
|
28
28
|
|
|
29
29
|
## Quick start
|
|
@@ -75,6 +75,7 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
75
75
|
| `mushi-ux discover --url <url>` | List the screens, change nothing |
|
|
76
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) |
|
|
77
77
|
| `mushi-ux scorecard --url <live url> --profile-dir <dir>` | Score every page 1–10 on a written UX rubric and file the root causes (below) |
|
|
78
|
+
| `mushi-ux capture --request-stdin --out <dir>` | A local worker's Screens capture of a web app, signed in with a test account; `mushi-ux upload` sends the folder (below) |
|
|
78
79
|
| `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) |
|
|
79
80
|
| `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) |
|
|
80
81
|
| `mushi-ux clips --url <url> --release <id> --flow "name:/a,/b"` | Record short clips of your top flows into a release kit for a product video (below) |
|
|
@@ -129,6 +130,19 @@ mushi-ux scorecard --url https://example.com/admin/ \
|
|
|
129
130
|
- **`--from-captures <dir>`** scores captures another browser driver wrote as `<dir>/pages/<page>/{facts.json, early.png, settled.png}`. Use it when the signed-in profile is already open in another browser.
|
|
130
131
|
- **Output:** `scorecard.md` and `scorecard.json` in the run folder. `--sync` shows the run on the console (UX runs → Scorecard), with each page's trend across runs.
|
|
131
132
|
|
|
133
|
+
### Signed-in captures from a local worker
|
|
134
|
+
|
|
135
|
+
`mushi-ux capture --request-stdin --out <dir>` is what a local worker (`mushi work --daemon`) runs when the console asks for a signed-in Screens check of a web app. It reads one JSON request on stdin: the app's address, the viewport, up to 25 pages and, when the app has test accounts on, one account. The account is never an argument, never logged and never written to the page facts (they say `{{email}}`).
|
|
136
|
+
|
|
137
|
+
- **Signing in:** a clean browser opens the app, finds the password form (pressing a "Sign in" or "Log in" link first, and filling an email-first form one step at a time), fills it and submits. Only that browser may write: to the app's own address and to a password sign-in at `/auth/v1/token`. Payments, third-party sign-in and public sign-up stay refused.
|
|
138
|
+
- **The captures:** a second, read-only browser starts from the cookies the sign-in left and takes each page as the scorecard does, into `<dir>/pages/<page>/`, with `<dir>/build.json`.
|
|
139
|
+
- **Exit codes:** 0 with `Captured N of M page(s) to <dir>`; 2 with `Could not sign in: <reason>`; 1 for anything else, or when no page was taken.
|
|
140
|
+
|
|
141
|
+
The worker then runs `mushi-ux upload <dir> --platform web --source playwright`.
|
|
142
|
+
|
|
143
|
+
`mushi-ux upload` takes up to 200 screens as one check. Above 60 it sends them in parts of 60
|
|
144
|
+
into the same run, as the console does.
|
|
145
|
+
|
|
132
146
|
## Explore signed-in screens
|
|
133
147
|
|
|
134
148
|
`mushi-ux explore` runs short sessions where a model picks what a curious or careless user would do next (forms with odd input, back and reload mid-task, double-clicks, filters that match nothing), in the same read-only browser and cached profile as the audit. The model only chooses actions; code decides what is a bug.
|