@parity-app/cli 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +64 -2
- package/dist/bin.mjs +831 -0
- package/dist/client-DsTLQ2lT.mjs +286 -0
- package/dist/in-app.json +10 -0
- package/dist/index.d.mts +160 -0
- package/dist/index.mjs +1 -0
- package/dist/libraries/aria.lib.par +14516 -0
- package/dist/libraries/baseui.lib.par +8298 -0
- package/dist/libraries/buildkit-baseui.edits.json +3 -0
- package/dist/libraries/chakra.lib.par +539225 -0
- package/dist/libraries/fluent-icons.lib.par +2674 -0
- package/dist/libraries/fluent.lib.par +33703 -0
- package/dist/libraries/heroicons.lib.par +33 -0
- package/dist/libraries/hugeicons.lib.par +708 -0
- package/dist/libraries/lucide.lib.par +2123 -0
- package/dist/libraries/luma.lib.par +16362 -0
- package/dist/libraries/lyra.lib.par +16362 -0
- package/dist/libraries/maia.lib.par +16362 -0
- package/dist/libraries/mantine.lib.par +32935 -0
- package/dist/libraries/mira.lib.par +16362 -0
- package/dist/libraries/mui.lib.par +9817 -0
- package/dist/libraries/nova.lib.par +16363 -0
- package/dist/libraries/phosphor.lib.par +3060 -0
- package/dist/libraries/radix.lib.par +6890 -0
- package/dist/libraries/recharts.lib.par +5445 -0
- package/dist/libraries/rhea.lib.par +16362 -0
- package/dist/libraries/sera.lib.par +16362 -0
- package/dist/libraries/tabler.lib.par +5325 -0
- package/dist/libraries/vega.lib.par +16362 -0
- package/dist/published-BtL8RM6W.mjs +1 -0
- package/dist/published-CdXoUgfD.mjs +200 -0
- package/dist/src-8MhDV_sA.mjs +4780 -0
- package/dist/src-D9EMN48r.mjs +1306 -0
- package/dist/src-DXZqtm6z.mjs +53 -0
- package/dist/src-DYi23Ypb.mjs +1 -0
- package/dist/src-FF8eY6EI.mjs +2 -0
- package/package.json +50 -3
- package/skills/SKILL.md +96 -0
- package/skills/document.md +170 -0
- package/skills/execute.md +298 -0
- package/skills/guide/checking.md +56 -0
- package/skills/guide/components.md +48 -0
- package/skills/guide/design-system.md +52 -0
- package/skills/guide/mobile.md +32 -0
- package/skills/guide/states-and-modes.md +55 -0
- package/skills/guide/web-app.md +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andrew Craswell
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @parity-app/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `parity` command drives the [Parity](https://github.com/betterapps-hq/parity) desktop app from a terminal or an
|
|
4
|
+
agent. Parity is a design canvas that draws a project's real components, styled with its own tokens. The CLI reads the
|
|
5
|
+
open project's designs, components and tokens, runs edits as one undoable step, takes screenshots, checks accessibility,
|
|
6
|
+
and serves all of this as MCP tools.
|
|
7
|
+
|
|
8
|
+
> **Pre-release.** Versions before 1.0 may change their commands and output between releases.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
It needs Node 24. Run it without installing:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npx @parity-app/cli --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
or install it to get the `parity` command:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npm install --global @parity-app/cli
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Most commands act on a running Parity app, on its active tab unless `--tab` names another. `parity lib` runs without the
|
|
25
|
+
app.
|
|
26
|
+
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
| Command | What it does |
|
|
30
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------ |
|
|
31
|
+
| `parity tabs` | Lists the open projects. |
|
|
32
|
+
| `parity state` | A tab's designs, selection, modes, components and tokens. Start here. |
|
|
33
|
+
| `parity exec [file]` | Runs a JavaScript snippet against the designs, from a file or stdin, as one undoable step. |
|
|
34
|
+
| `parity screenshot <design>` | Renders a design in its states and modes, offscreen, as images. |
|
|
35
|
+
| `parity problems <design>` | Render errors, overflow, clipping and unknown components, per frame. |
|
|
36
|
+
| `parity a11y <design>` | Checks accessibility with axe-core, per frame. |
|
|
37
|
+
| `parity console` | What the project's own code wrote to the console. |
|
|
38
|
+
| `parity tokens` | The tokens styles can name, with their values per theme. |
|
|
39
|
+
| `parity components` | The components designs can use, by library. |
|
|
40
|
+
| `parity props <Component>` | A component's props, read from its source. |
|
|
41
|
+
| `parity lib [package]` | Writes a `.lib.par` describing a library's components, tokens and icons, or the app's. |
|
|
42
|
+
| `parity open <folder>` | Opens a project in a new tab. |
|
|
43
|
+
| `parity skill [file]` | Prints the skill that teaches an agent to design with Parity. |
|
|
44
|
+
| `parity mcp` | Serves these commands as MCP tools on stdio. |
|
|
45
|
+
|
|
46
|
+
`parity --help` lists every option. `problems` and `a11y` exit with 1 when they find something, so they can gate a
|
|
47
|
+
script.
|
|
48
|
+
|
|
49
|
+
## With an agent
|
|
50
|
+
|
|
51
|
+
Add the MCP server to your agent's configuration:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"parity": { "command": "npx", "args": ["-y", "@parity-app/cli", "mcp"] }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Then have the agent read the skill first, with the `read_skill` tool or `parity skill`.
|
|
62
|
+
|
|
63
|
+
## Licence
|
|
64
|
+
|
|
65
|
+
MIT. See [LICENSE](https://github.com/betterapps-hq/parity/blob/main/LICENSE).
|