@ttsalpha/mirra 1.0.0 → 1.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/README.md +16 -15
- package/dist/index.js +40858 -567
- package/dist/plugin/main.js +18 -1
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -20,19 +20,19 @@ second shape.
|
|
|
20
20
|
|
|
21
21
|
## Tools
|
|
22
22
|
|
|
23
|
-
| Tool | What it does
|
|
24
|
-
| --------------------- |
|
|
25
|
-
| `mirra_render` | Build a whole screen from one declarative tree
|
|
26
|
-
| `mirra_read` | Read the selection, or a node, back as that same tree
|
|
27
|
-
| `mirra_patch` | `set` / `append` / `replace` / `
|
|
28
|
-
| `mirra_find` | Locate layers by name, kind or key, and select them
|
|
29
|
-
| `mirra_pages` | List the pages, or switch to one
|
|
30
|
-
| `mirra_screenshot` | Export a layer as PNG and hand the image back
|
|
31
|
-
| `mirra_tokens` | List variables and styles, with the `$name` a tree refers to
|
|
32
|
-
| `mirra_define_tokens` | Create or update variables, modes, aliases and paint/text/effect styles
|
|
33
|
-
| `mirra_export_assets` | Write layers to disk as PNG or SVG
|
|
34
|
-
| `mirra_ping` | Check the connection and report the open file
|
|
35
|
-
| `mirra_exec` | Run Plugin API code; see **Running arbitrary code** below
|
|
23
|
+
| Tool | What it does |
|
|
24
|
+
| --------------------- | --------------------------------------------------------------------------------------- |
|
|
25
|
+
| `mirra_render` | Build a whole screen from one declarative tree |
|
|
26
|
+
| `mirra_read` | Read the selection, or a node, back as that same tree |
|
|
27
|
+
| `mirra_patch` | `set` / `append` / `replace` / `move` / `component` / `remove` by key, as one undo step |
|
|
28
|
+
| `mirra_find` | Locate layers by name, kind or key, and select them |
|
|
29
|
+
| `mirra_pages` | List the pages, add one, or switch to one |
|
|
30
|
+
| `mirra_screenshot` | Export a layer as PNG and hand the image back |
|
|
31
|
+
| `mirra_tokens` | List variables and styles, with the `$name` a tree refers to |
|
|
32
|
+
| `mirra_define_tokens` | Create or update variables, modes, aliases and paint/text/effect styles |
|
|
33
|
+
| `mirra_export_assets` | Write layers to disk as PNG or SVG |
|
|
34
|
+
| `mirra_ping` | Check the connection and report the open file |
|
|
35
|
+
| `mirra_exec` | Run Plugin API code; see **Running arbitrary code** below |
|
|
36
36
|
|
|
37
37
|
The tree mirrors flexbox: `layout: {dir, gap, pad, justify, align}`, and `w`/`h` take a
|
|
38
38
|
number, `"fill"` or `"hug"`; a frame with a layout hugs its content by default. Node types
|
|
@@ -53,8 +53,9 @@ handing back a data URI.
|
|
|
53
53
|
npx @ttsalpha/mirra init
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
That copies the plugin to `~/.mirra/plugin
|
|
57
|
-
|
|
56
|
+
That copies the plugin to `~/.mirra/plugin`, the server to `~/.mirra/server` when it is
|
|
57
|
+
running from an npx cache that npm may clear later, and registers the server with every
|
|
58
|
+
client it finds: Claude Desktop, Cursor and VS Code by merging one entry into their config, Claude
|
|
58
59
|
Code through its own CLI. Each file is backed up beside itself first, and `--no-config`
|
|
59
60
|
skips all of it. The command is written with the real path of the Node binary that ran it,
|
|
60
61
|
because a version manager puts `node` behind a path that changes with every shell and a
|