@commmerce/review 0.0.0-stage → 1.20.4
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.md +175 -0
- package/README.md +70 -2
- package/bin/commmerce-review.mjs +4 -0
- package/dist/components.json +1 -0
- package/lib/api.mjs +91 -0
- package/lib/browser.mjs +37 -0
- package/lib/check.mjs +205 -0
- package/lib/cli.mjs +188 -0
- package/lib/components-index.mjs +76 -0
- package/lib/components.mjs +11 -0
- package/lib/index.mjs +9 -0
- package/lib/mcp-protocol.mjs +90 -0
- package/lib/shoot.mjs +86 -0
- package/lib/submit.mjs +48 -0
- package/lib/tools.mjs +113 -0
- package/package.json +61 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Commmerce UI Licence
|
|
2
|
+
|
|
3
|
+
Version 1.1 | Copyright © 2026 Outdo Inc. (Commmerce)
|
|
4
|
+
|
|
5
|
+
All rights not expressly granted under this licence are reserved.
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
By downloading, installing, copying or using the Packages, you agree to be bound by this licence. If you
|
|
10
|
+
do not agree, do not download, install, copy or use the Packages. If you accept this licence on behalf of a
|
|
11
|
+
company or other legal entity, you confirm that you have authority to bind that entity, and "you" refers to
|
|
12
|
+
that entity.
|
|
13
|
+
|
|
14
|
+
## 1. Definitions
|
|
15
|
+
|
|
16
|
+
"**Commmerce**" means Outdo Inc. and its affiliates.
|
|
17
|
+
|
|
18
|
+
"**Packages**" means the Commmerce UI software and assets distributed by Commmerce under this licence,
|
|
19
|
+
including the npm packages `@commmerce/tokens`, `@commmerce/icons`, `@commmerce/ui`, `@commmerce/ui-react`
|
|
20
|
+
and `@commmerce/app-bridge`, the Flutter package `commmerce_ui`, and the corresponding files hosted at
|
|
21
|
+
commmerce.com/commmerceui/ (also reachable at commmerce.com/blog/commmerceui/).
|
|
22
|
+
|
|
23
|
+
"**Commmerce Platform**" means the products, services, infrastructure and applications operated or provided
|
|
24
|
+
by Commmerce.
|
|
25
|
+
|
|
26
|
+
"**Commmerce Software**" means software developed to run on, integrate with, extend or provide functionality
|
|
27
|
+
for a Commmerce Platform, including applications listed in or privately installed through the Commmerce app
|
|
28
|
+
marketplace, and internal business applications used in connection with a Commmerce Platform.
|
|
29
|
+
|
|
30
|
+
"**You**" means the individual or legal entity exercising rights under this licence, including its
|
|
31
|
+
authorised employees, contractors, consultants and agencies acting on its behalf solely for the
|
|
32
|
+
development, maintenance or operation of Commmerce Software.
|
|
33
|
+
|
|
34
|
+
## 2. Licence Grant
|
|
35
|
+
|
|
36
|
+
Subject to your compliance with this licence, Commmerce grants you a worldwide, non-exclusive,
|
|
37
|
+
royalty-free, limited, non-transferable licence to:
|
|
38
|
+
|
|
39
|
+
(a) install, access and use the Packages;
|
|
40
|
+
|
|
41
|
+
(b) incorporate the Packages into Commmerce Software;
|
|
42
|
+
|
|
43
|
+
(c) modify and adapt the Packages solely to the extent reasonably necessary to develop, maintain, customise
|
|
44
|
+
and operate Commmerce Software;
|
|
45
|
+
|
|
46
|
+
(d) distribute the Packages as integrated components of Commmerce Software, in source, bundled, minified,
|
|
47
|
+
compiled or other executable forms; and
|
|
48
|
+
|
|
49
|
+
(e) permit merchants and end users to use Commmerce Software incorporating the Packages.
|
|
50
|
+
|
|
51
|
+
Normal software development and build processes, including bundling, minification, compilation,
|
|
52
|
+
tree-shaking and configuration through documented options, are permitted.
|
|
53
|
+
|
|
54
|
+
No ownership of the Packages or underlying intellectual property is transferred to you.
|
|
55
|
+
|
|
56
|
+
## 3. Starter Applications and Code Samples
|
|
57
|
+
|
|
58
|
+
Starter applications, templates and code samples published by Commmerce may be copied, modified, adapted
|
|
59
|
+
and used as the basis for developing your own Commmerce Software.
|
|
60
|
+
|
|
61
|
+
You may incorporate such modifications into your applications and distribute those applications.
|
|
62
|
+
|
|
63
|
+
The Packages and any separately identified third-party components remain subject to their respective
|
|
64
|
+
licences. This section does not grant rights to Commmerce trademarks, logos or other separately protected
|
|
65
|
+
assets.
|
|
66
|
+
|
|
67
|
+
## 4. Restrictions
|
|
68
|
+
|
|
69
|
+
You must not:
|
|
70
|
+
|
|
71
|
+
(a) use the Packages to develop, operate or distribute software that is not Commmerce Software;
|
|
72
|
+
|
|
73
|
+
(b) redistribute, sublicense, sell, publish or otherwise make the Packages, or modified versions of the
|
|
74
|
+
Packages, available independently or as part of a standalone design system, component library, UI
|
|
75
|
+
toolkit, framework or developer platform intended for use outside the Commmerce ecosystem;
|
|
76
|
+
|
|
77
|
+
(c) extract, repurpose or reuse the Packages or their components to create or distribute a competing
|
|
78
|
+
design system, component library or equivalent developer toolkit;
|
|
79
|
+
|
|
80
|
+
(d) use the Commmerce name, logo or other trademarks in a manner that suggests ownership, official
|
|
81
|
+
affiliation, sponsorship or endorsement, except where expressly authorised under Commmerce's brand or
|
|
82
|
+
developer guidelines; or
|
|
83
|
+
|
|
84
|
+
(e) remove, obscure or alter copyright notices, licence notices or attribution requirements included with
|
|
85
|
+
the Packages.
|
|
86
|
+
|
|
87
|
+
Nothing in this section prevents you from developing and distributing your own applications, business
|
|
88
|
+
logic, integrations, themes or other original software for the Commmerce Platform.
|
|
89
|
+
|
|
90
|
+
## 5. Third-Party Components
|
|
91
|
+
|
|
92
|
+
Certain components, libraries, typefaces or other materials included with or used by the Packages may be
|
|
93
|
+
subject to third-party licences.
|
|
94
|
+
|
|
95
|
+
Those third-party licences govern the applicable components and prevail to the extent of any
|
|
96
|
+
inconsistency with this licence.
|
|
97
|
+
|
|
98
|
+
Applicable third-party notices and licence texts are provided in the relevant Packages or accompanying
|
|
99
|
+
documentation.
|
|
100
|
+
|
|
101
|
+
## 6. Later Versions
|
|
102
|
+
|
|
103
|
+
Commmerce may publish new versions of the Packages under this licence or under different licence terms.
|
|
104
|
+
|
|
105
|
+
Each published version is governed by the licence accompanying that version. No change to a later version
|
|
106
|
+
retroactively changes the licence applicable to an earlier version already distributed.
|
|
107
|
+
|
|
108
|
+
## 7. Intellectual Property and Trademarks
|
|
109
|
+
|
|
110
|
+
The Packages, including their original code, design tokens, component implementations, documentation and
|
|
111
|
+
associated intellectual property, remain the property of Commmerce or their respective rights holders.
|
|
112
|
+
|
|
113
|
+
This licence does not grant any ownership interest or general trademark licence.
|
|
114
|
+
|
|
115
|
+
You may make factual references to compatibility or integration with Commmerce, provided those references
|
|
116
|
+
are accurate and do not imply official endorsement, sponsorship or ownership.
|
|
117
|
+
|
|
118
|
+
## 8. Disclaimer of Warranties
|
|
119
|
+
|
|
120
|
+
To the maximum extent permitted by applicable law, the Packages are provided "AS IS" and "AS AVAILABLE",
|
|
121
|
+
without warranties, representations or conditions of any kind, whether express, implied or statutory,
|
|
122
|
+
including warranties of merchantability, fitness for a particular purpose, title and non-infringement.
|
|
123
|
+
|
|
124
|
+
Commmerce does not warrant that the Packages will be uninterrupted, error-free, secure or compatible with
|
|
125
|
+
every third-party environment.
|
|
126
|
+
|
|
127
|
+
## 9. Limitation of Liability
|
|
128
|
+
|
|
129
|
+
The Packages are provided free of charge.
|
|
130
|
+
|
|
131
|
+
To the maximum extent permitted by applicable law, Commmerce and its affiliates, directors, officers,
|
|
132
|
+
employees and licensors shall not be liable for any indirect, incidental, special, exemplary or
|
|
133
|
+
consequential damages, or for loss of profits, revenue, business opportunities, goodwill, business
|
|
134
|
+
interruption or data arising out of or relating to the Packages or this licence.
|
|
135
|
+
|
|
136
|
+
To the maximum extent permitted by applicable law, the total aggregate liability of Commmerce and its
|
|
137
|
+
affiliates, directors, officers, employees and licensors arising out of or relating to the Packages or this
|
|
138
|
+
licence, whether in contract, tort (including negligence) or otherwise, shall not exceed the total amount
|
|
139
|
+
you paid to Commmerce for the Packages, which, because the Packages are provided free of charge, is zero.
|
|
140
|
+
|
|
141
|
+
Nothing in this licence excludes or limits liability to the extent that such exclusion or limitation is
|
|
142
|
+
prohibited by applicable law.
|
|
143
|
+
|
|
144
|
+
## 10. Termination
|
|
145
|
+
|
|
146
|
+
This licence terminates automatically if you materially breach its terms and, where the breach is capable
|
|
147
|
+
of remedy, fail to remedy it within thirty (30) days after receiving written notice.
|
|
148
|
+
|
|
149
|
+
Commmerce may terminate the licence immediately where a breach is incapable of remedy or involves
|
|
150
|
+
unauthorised redistribution, infringement of intellectual property, or a material security risk.
|
|
151
|
+
|
|
152
|
+
Upon termination, you must cease using and distributing the Packages and remove them from systems under
|
|
153
|
+
your control, except to the extent retention is required by applicable law.
|
|
154
|
+
|
|
155
|
+
Where reasonably practicable and where termination does not arise from a security or intellectual property
|
|
156
|
+
violation, Commmerce may permit a limited transition period for existing merchant applications.
|
|
157
|
+
|
|
158
|
+
Termination does not affect rights or obligations accrued before termination.
|
|
159
|
+
|
|
160
|
+
Sections 4, 5, 7, 8, 9, 11 and this section survive termination.
|
|
161
|
+
|
|
162
|
+
## 11. Governing Law and Jurisdiction
|
|
163
|
+
|
|
164
|
+
This licence, and any dispute or claim arising out of or in connection with it or the Packages, is governed
|
|
165
|
+
by the laws of India, without regard to its conflict of laws rules.
|
|
166
|
+
|
|
167
|
+
The courts at Bengaluru, Karnataka, India have exclusive jurisdiction over any such dispute or claim.
|
|
168
|
+
Commmerce may nevertheless seek injunctive or other equitable relief in any court of competent
|
|
169
|
+
jurisdiction to protect its intellectual property or confidential information.
|
|
170
|
+
|
|
171
|
+
## 12. Contact
|
|
172
|
+
|
|
173
|
+
Questions concerning this licence may be sent to: support@commmerce.com
|
|
174
|
+
|
|
175
|
+
End of Licence
|
package/README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @commmerce/review
|
|
2
2
|
|
|
3
|
-
|
|
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`.
|
|
52
|
+
|
|
53
|
+
```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
|
|
62
|
+
```
|
|
63
|
+
|
|
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.
|