@mushi-mushi/ux 0.1.1 → 0.2.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/LICENSE +1 -1
- package/README.md +33 -0
- package/dist/cli.js +1978 -961
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +46 -5
- package/dist/index.js +140 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -65,6 +65,8 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
65
65
|
| `mushi-ux ui` | The studio: start runs and watch them |
|
|
66
66
|
| `mushi-ux run --dev "<cmd with {port}>"` | Run the loop from the terminal |
|
|
67
67
|
| `mushi-ux discover --url <url>` | List the screens, change nothing |
|
|
68
|
+
| `mushi-ux audit --url <live url> --profile-dir <dir>` | Find UX bugs on signed-in screens and file them as Mushi reports (below) |
|
|
69
|
+
| `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) |
|
|
68
70
|
| `mushi-ux login --url <url>` | Sign in once, in a visible browser |
|
|
69
71
|
| `mushi-ux models` / `mushi-ux skills` | What `--model` and `--skill` accept |
|
|
70
72
|
| `mushi-ux open <runId>` | The local dashboard for a past run |
|
|
@@ -81,6 +83,37 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
81
83
|
|
|
82
84
|
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.
|
|
83
85
|
|
|
86
|
+
## Audit signed-in screens
|
|
87
|
+
|
|
88
|
+
`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.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
mushi-ux audit --url https://example.com/admin \
|
|
92
|
+
--profile-dir ~/.playwright-cli-profiles/example \
|
|
93
|
+
--review claude-code --file --dry-run
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
- Maps the screens under the URL's path behind the write guard, one per route (`--max-pages`, default 15; `--states N` also opens up to N dialogs or tabs a page), and captures each on desktop (1440×900) and phone (390×844).
|
|
97
|
+
- Files measured problems first: serious accessibility rules, a page that scrolls sideways, console errors, content that jumps while loading. `--review` adds concrete visual defects a model finds on whole pages (overlap, clipping, unreadable text, contradicting numbers), each with a "Done when". `--review cursor` asks the Cursor CLI in read-only ask mode (`--review-model`, default `grok-4.7-high-fast`).
|
|
98
|
+
- `--file` files at most 15 reports a run, one per screen and problem, and skips one filed in the last 14 days or still open. It needs `MUSHI_API_KEY` and `MUSHI_PROJECT_ID`; without them it writes `to-file.json` next to the summary. `--dry-run` files nothing.
|
|
99
|
+
- `--profile-dir` opens the profile with your installed Chrome (`--channel chromium` for one Chromium made). A signed-out profile stops the run: sign it in once by hand.
|
|
100
|
+
- Output: `~/.cache/mushi/ux-audits/<run>/` (summary, findings, screenshots).
|
|
101
|
+
|
|
102
|
+
## Explore signed-in screens
|
|
103
|
+
|
|
104
|
+
`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.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
mushi-ux explore --url https://example.com/admin \
|
|
108
|
+
--profile-dir ~/.playwright-cli-profiles/example \
|
|
109
|
+
--charter forms --charter filters --steps 30 --file --dry-run
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
- Charters: `forms`, `navigation`, `stress`, `filters` (default: all, one session each). `--path` adds start pages. `--model` is any Cursor CLI model (default `grok-4.7-high-fast`).
|
|
113
|
+
- Actions come from a closed set (click, fill, select, press, back, forward, reload, scroll, resize); anything labelled like delete, revoke or sign out is refused, and the write guard still blocks every write request.
|
|
114
|
+
- 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.
|
|
115
|
+
- `--file` and `--dry-run` work as for the audit, sharing its 14-day ledger.
|
|
116
|
+
|
|
84
117
|
## On GitHub Actions
|
|
85
118
|
|
|
86
119
|
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.
|