@commmerce/review 1.21.4 → 1.22.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
@@ -1,71 +1,12 @@
1
1
  # @commmerce/review
2
2
 
3
- Review what you build with Commmerce UI, from your coding agent or CI: look components up, check a page locally, and
4
- get a design and code review from Commmerce. A command line tool and an MCP server.
5
-
6
- **Private by default.** What you send (from here, the MCP server, or the feedback form,
7
- https://commmerce.com/commmerceui/#apps--feedback) is seen only by Commmerce and your team, and never published. Replies come back only to you
8
- (`commmerce-review status <id>`, `get_review`, or the form's private status link). Screenshots and source are deleted 30 days after
9
- a review is done. Send demo data only. Public GitHub issues are optional, only if you want to report a library bug in public.
10
-
11
- Docs: https://commmerce.com/commmerceui/#apps--review
12
-
13
- ## Key
14
-
15
- `submit`, `status`, `wait`, `request-component` and `feedback` need a review key in `COMMMERCE_REVIEW_KEY`. Get one by
16
- email: `npx @commmerce/review key request --email you@company.com --name "Your name" --team "Your team"` (or ask your
17
- agent: the MCP server's `request_key`). `check` and the component lookup need no key.
18
-
19
- ## Agents
20
-
21
- Claude Code, one command, no key needed:
22
-
23
- ```sh
24
- claude mcp add --transport http commmerce-review https://commmerce.com/commmerceui/api/mcp
25
- ```
26
-
27
- Then ask Claude for a key ("Get me a Commmerce UI review key: my email is ..., team ..."). Commmerce emails it with the
28
- command that adds it. The local server (also checks pages and takes screenshots on your machine):
29
-
30
- ```sh
31
- claude mcp add commmerce-review --env COMMMERCE_REVIEW_KEY=cmr_your_key -- npx -y @commmerce/review mcp
32
- ```
33
-
34
- Codex (`~/.codex/config.toml`):
35
-
36
- ```toml
37
- [mcp_servers.commmerce-review]
38
- command = "npx"
39
- args = ["-y", "@commmerce/review", "mcp"]
40
- env = { COMMMERCE_REVIEW_KEY = "cmr_your_key" }
41
- ```
42
-
43
- Remote MCP server (Streamable HTTP, same tools; `check_page` there explains how to run the check locally):
44
- `https://commmerce.com/commmerceui/api/mcp` with the header `Authorization: Bearer cmr_your_key`.
45
-
46
- Tools: `request_key`, `search_components`, `get_component`, `check_page`, `submit_review`, `get_review`, `request_component`, `send_feedback`.
47
-
48
- ## Command line
49
-
50
- `check` and `submit` use Playwright (an optional peer dependency): `npm install --save-dev playwright` and
51
- `npx playwright install chromium`.
3
+ **This is the earlier name of [`@commmerce/cli`](https://www.npmjs.com/package/@commmerce/cli).** It runs the same
4
+ commands, as `commmerce-review`, so existing MCP setups, CI steps and scripts keep working. It stays published for
5
+ every 1.x release. New projects: use `@commmerce/cli` (command `commmerce`).
52
6
 
53
7
  ```sh
54
- npx @commmerce/review check http://localhost:5173/orders # exits 1 on blockers; --json, --strict
55
- npx @commmerce/review submit http://localhost:5173 --app "Orders app" --screen orders=/orders --wait
56
- npx @commmerce/review submit --images orders@390=phone.png orders@1280=desktop.png --app "Orders app"
57
- npx @commmerce/review key request --email you@company.com --name "Your name" --team "Orders app"
58
- npx @commmerce/review status rv_abc123
59
- npx @commmerce/review request-component --name "Swimlanes" --need "Group board columns by owner" --app "CRM"
60
- npx @commmerce/review feedback --kind bug --title "Select clips at 320px" --body "Steps: ..."
61
- npx @commmerce/review help
8
+ npx @commmerce/review check http://localhost:5173/orders # same as: npx @commmerce/cli check ...
9
+ npx @commmerce/review mcp # same as: npx @commmerce/cli mcp
62
10
  ```
63
11
 
64
- `check` looks for: Commmerce UI on the page and its version, `cm-*` tags that aren't defined, axe-core (WCAG 2.2 A and
65
- AA), sideways scroll at 320, 390, 768 and 1280px, text under 12px, targets under 24px, and native controls where a
66
- `cm-*` component exists. Nothing is sent anywhere.
67
-
68
- `submit` takes screenshots at 390, 768 and 1280px on your machine (localhost works). It warns when emails or phone
69
- numbers are visible and sends only with `--yes`.
70
-
71
- Made and maintained by Commmerce. See LICENSE.md.
12
+ Docs: https://commmerce.com/commmerceui/#apps--review
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { main } from '../lib/cli.mjs';
2
+ // @commmerce/review is the earlier name of @commmerce/cli: the same commands, shown as `commmerce-review`.
3
+ import { main } from '@commmerce/cli/cli';
3
4
 
4
- main(process.argv.slice(2)).then((code) => { process.exitCode = code; });
5
+ main(process.argv.slice(2), { prog: 'commmerce-review' }).then((code) => { process.exitCode = code; });
package/lib/index.mjs CHANGED
@@ -1,9 +1,2 @@
1
- // Programmatic use: the same pieces the CLI uses.
2
- export { createClient, waitFor, DEFAULT_BASE } from './api.mjs';
3
- export { checkPage, formatCheck, WIDTHS } from './check.mjs';
4
- export { prepareSubmission } from './submit.mjs';
5
- export { findPersonalData } from './shoot.mjs';
6
- export { search, find, docsUrl } from './components-index.mjs';
7
- export { components } from './components.mjs';
8
- export { createMcp } from './mcp-protocol.mjs';
9
- export { localTools, INSTRUCTIONS } from './tools.mjs';
1
+ // @commmerce/review is the earlier name of @commmerce/cli: everything it exports comes from there.
2
+ export * from '@commmerce/cli';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commmerce/review",
3
- "version": "1.21.4",
4
- "description": "Review what you build with Commmerce UI from your coding agent or CI: component lookup, local page checks and design reviews by Commmerce, as a CLI and an MCP server.",
3
+ "version": "1.22.0",
4
+ "description": "The earlier name of @commmerce/cli, kept so existing setups keep working: runs the same commands as commmerce-review. New projects: use @commmerce/cli.",
5
5
  "keywords": [
6
6
  "commmerce",
7
7
  "mcp",
@@ -31,7 +31,6 @@
31
31
  "files": [
32
32
  "bin",
33
33
  "lib",
34
- "dist",
35
34
  "LICENSE.md",
36
35
  "README.md"
37
36
  ],
@@ -42,11 +41,10 @@
42
41
  "access": "public"
43
42
  },
44
43
  "scripts": {
45
- "build": "node scripts/build-components.mjs",
46
44
  "test": "node --test test/*.test.mjs"
47
45
  },
48
46
  "dependencies": {
49
- "axe-core": "4.10.2"
47
+ "@commmerce/cli": "1.22.0"
50
48
  },
51
49
  "peerDependencies": {
52
50
  "playwright": ">=1.40.0"
@@ -55,9 +53,5 @@
55
53
  "playwright": {
56
54
  "optional": true
57
55
  }
58
- },
59
- "devDependencies": {
60
- "@types/node": "22.20.5",
61
- "playwright": "1.64.1"
62
56
  }
63
57
  }