AI-native design editor. Open-source Figma alternative.
docs(cli): use released openpencil command
Danila Poyarkov883782846f27
diff --git a/README.md b/README.mdindex 2221f6d4a..c74095ca9 100644--- a/README.md+++ b/README.md@@ -45,10 +45,10 @@ npm install -g @open-pencil/cliBrowse node trees, search by name or type, dig into properties — all without opening the editor:```sh-open-pencil tree design.fig-open-pencil find design.pen --type TEXT-open-pencil node design.fig --id 1:23-open-pencil info design.fig+openpencil tree design.fig+openpencil find design.pen --type TEXT+openpencil node design.fig --id 1:23+openpencil info design.fig``````@@ -65,11 +65,11 @@ open-pencil info design.figUse XPath selectors to find nodes by type, attributes, and structure:```sh-open-pencil query design.fig "//FRAME" # All frames-open-pencil query design.fig "//FRAME[@width < 300]" # Frames under 300px-open-pencil query design.fig "//TEXT[contains(@name, 'Button')]" # Text with 'Button' in name-open-pencil query design.fig "//*[@cornerRadius > 0]" # Rounded corners-open-pencil query design.fig "//SECTION//TEXT" # Text inside sections+openpencil query design.fig "//FRAME" # All frames+openpencil query design.fig "//FRAME[@width < 300]" # Frames under 300px+openpencil query design.fig "//TEXT[contains(@name, 'Button')]" # Text with 'Button' in name+openpencil query design.fig "//*[@cornerRadius > 0]" # Rounded corners+openpencil query design.fig "//SECTION//TEXT" # Text inside sections```### Export@@ -77,11 +77,11 @@ open-pencil query design.fig "//SECTION//TEXT" # Text insiRender to PNG, JPG, WEBP, SVG, `.fig`, or JSX — or export selections/pages as `.fig` and convert whole documents between supported formats:```sh-open-pencil export design.fig # PNG-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG at 2x, quality 90-open-pencil export design.fig -f fig --page "Page 1" # Export a page as .fig-open-pencil export design.fig -f jsx --style tailwind # Tailwind JSX-open-pencil convert design.pen output.fig # Convert between document formats+openpencil export design.fig # PNG+openpencil export design.fig -f jpg -s 2 -q 90 # JPG at 2x, quality 90+openpencil export design.fig -f fig --page "Page 1" # Export a page as .fig+openpencil export design.fig -f jsx --style tailwind # Tailwind JSX+openpencil convert design.pen output.fig # Convert between document formats``````html@@ -96,10 +96,10 @@ open-pencil convert design.pen output.fig # Convert between documeCatch naming, layout, structure, and accessibility issues from the terminal:```sh-open-pencil lint design.fig-open-pencil lint design.pen --preset strict-open-pencil lint design.fig --rule color-contrast-open-pencil lint design.fig --list-rules+openpencil lint design.fig+openpencil lint design.pen --preset strict+openpencil lint design.fig --rule color-contrast+openpencil lint design.fig --list-rules```### Analyze and extract design tokens@@ -107,11 +107,11 @@ open-pencil lint design.fig --list-rulesAudit an entire design system from the terminal — find inconsistencies, extract the real palette, and spot components waiting to be extracted:```sh-open-pencil analyze colors design.fig-open-pencil analyze typography design.fig-open-pencil analyze spacing design.fig-open-pencil analyze clusters design.fig-open-pencil variables design.fig+openpencil analyze colors design.fig+openpencil analyze typography design.fig+openpencil analyze spacing design.fig+openpencil analyze clusters design.fig+openpencil variables design.fig``````@@ -132,8 +132,8 @@ open-pencil variables design.fig`eval` gives you the full Figma Plugin API. Modify the file, write it back:```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"-open-pencil eval design.fig -c "figma.currentPage.selection.forEach(n => n.opacity = 0.5)" -w+openpencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.selection.forEach(n => n.opacity = 0.5)" -w```### Control the running app@@ -141,9 +141,9 @@ open-pencil eval design.fig -c "figma.currentPage.selection.forEach(n => n.opaciWhen the desktop app is running, omit the file argument — the CLI connects via RPC and operates on the live canvas. Useful for automation scripts, CI pipelines, or AI agents that need to interact with the editor:```sh-open-pencil tree # Inspect the live document-open-pencil export -f png # Screenshot the current canvas-open-pencil eval -c "figma.currentPage.name" # Query the editor+openpencil tree # Inspect the live document+openpencil export -f png # Screenshot the current canvas+openpencil eval -c "figma.currentPage.name" # Query the editor```All commands support `--json` for machine-readable output.diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex 22d5e69eb..fcb9d5a2e 100755--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -20,7 +20,7 @@ const { version } = await import('../package.json')const main = defineCommand({meta: {- name: 'open-pencil',+ name: 'openpencil',description: 'OpenPencil CLI — inspect, export, and lint OpenPencil design documents',version},diff --git a/packages/docs/de/guide/features.md b/packages/docs/de/guide/features.mdindex 6bd874c38..2ec776b7e 100644--- a/packages/docs/de/guide/features.md+++ b/packages/docs/de/guide/features.md@@ -61,7 +61,7 @@ Mehrere Dokumente in Tabs öffnen. <kbd>⌘</kbd><kbd>T</kbd> neuer Tab, <kbd>- **Tailwind JSX** — HTML mit Tailwind v4 Utility-Klassen, bereit für React oder Vue- **Als kopieren** — Text, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>) oder JSX über das Kontextmenü-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## KI-Chat@@ -96,19 +96,19 @@ Siehe [MCP-Tools-Referenz](/programmable/mcp-server) für die vollständige Werk`.fig`-Dateien vom Terminal aus inspizieren, exportieren und analysieren:```sh-open-pencil tree design.fig # Knotenbaum-open-pencil find design.fig --type TEXT # Suche-open-pencil export design.fig -f png # Rendern-open-pencil analyze colors design.fig # Farbanalyse-open-pencil analyze clusters design.fig # Wiederholte Muster-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Knotenbaum+openpencil find design.fig --type TEXT # Suche+openpencil export design.fig -f png # Rendern+openpencil analyze colors design.fig # Farbanalyse+openpencil analyze clusters design.fig # Wiederholte Muster+openpencil eval design.fig -c "..." # Figma Plugin API```Wenn die Desktop-App läuft, kann die Datei weggelassen werden, um den Live-Editor via RPC zu steuern:```sh-open-pencil tree # Live-Dokument-open-pencil export -f png # Canvas-Screenshot+openpencil tree # Live-Dokument+openpencil export -f png # Canvas-Screenshot```Alle Befehle unterstützen `--json`. Installation: `npm install -g @open-pencil/cli`diff --git a/packages/docs/de/programmable/cli/analyzing.md b/packages/docs/de/programmable/cli/analyzing.mdindex e5952c4ed..e780b6f0d 100644--- a/packages/docs/de/programmable/cli/analyzing.md+++ b/packages/docs/de/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ Die `analyze`-Befehle prüfen ein gesamtes Designsystem vom Terminal aus — Ink## Farben```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Findet jede Farbe in der Datei, zählt die Verwendung und zeigt ein visuelles Histogramm:@@ -25,7 +25,7 @@ Findet jede Farbe in der Datei, zählt die Verwendung und zeigt ein visuelles Hi## Typografie```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Listet jede Kombination aus Schriftfamilie, -größe und -gewicht mit Nutzungszahlen auf. Nützlich, um einmalige Textstile zu erkennen, die konsolidiert werden sollten.@@ -33,7 +33,7 @@ Listet jede Kombination aus Schriftfamilie, -größe und -gewicht mit Nutzungsza## Abstände```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Prüft Gap- und Padding-Werte über alle Auto-Layout-Frames hinweg. Hilft, Inkonsistenzen in der Abstandsskala zu identifizieren — z.B. ein einzelner `13px`-Gap zwischen ansonsten `8/16/24`-Werten.@@ -41,7 +41,7 @@ Prüft Gap- und Padding-Werte über alle Auto-Layout-Frames hinweg. Hilft, Inkon## Cluster```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Findet wiederkehrende Knotenmuster, die in Komponenten extrahiert werden könnten:@@ -59,7 +59,7 @@ Findet wiederkehrende Knotenmuster, die in Komponenten extrahiert werden könnteAlle Analyse-Befehle unterstützen `--json` für maschinenlesbare Ausgabe:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Weiterleiten an `jq`, in CI-Prüfungen einspeisen oder in Skripten verwenden, die Design-Token-Budgets durchsetzen.diff --git a/packages/docs/de/programmable/cli/exporting.md b/packages/docs/de/programmable/cli/exporting.mdindex 6f9af3bb7..c05959f68 100644--- a/packages/docs/de/programmable/cli/exporting.md+++ b/packages/docs/de/programmable/cli/exporting.md@@ -10,10 +10,10 @@ Designs vom Terminal aus exportieren — Rasterbilder, Vektoren oder JSX-Code.## Bildexport```sh-open-pencil export design.fig # PNG (Standard)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG in 2×, Qualität 90-open-pencil export design.fig -f webp -s 3 # WEBP in 3×-open-pencil export design.fig -f svg # SVG-Vektor+openpencil export design.fig # PNG (Standard)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG in 2×, Qualität 90+openpencil export design.fig -f webp -s 3 # WEBP in 3×+openpencil export design.fig -f svg # SVG-Vektor```Optionen:@@ -30,7 +30,7 @@ Optionen:Als JSX mit Tailwind-Utility-Klassen exportieren:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Ausgabe:@@ -47,7 +47,7 @@ Unterstützt auch `--style openpencil` für das native JSX-Format (siehe [JSX-Re## Vorschaubilder```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Live-App-Modus@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Lass die Datei weg, um aus der laufenden App zu exportieren:```sh-open-pencil export -f png # Screenshot der aktuellen Zeichenfläche+openpencil export -f png # Screenshot der aktuellen Zeichenfläche```diff --git a/packages/docs/de/programmable/cli/inspecting.md b/packages/docs/de/programmable/cli/inspecting.mdindex 9bdc0b636..607f22a37 100644--- a/packages/docs/de/programmable/cli/inspecting.md+++ b/packages/docs/de/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilErhalte einen schnellen Überblick — Seitenanzahl, Gesamtknoten, verwendete Schriften, Dateigröße:```sh-open-pencil info design.fig+openpencil info design.fig```## Knotenbaum@@ -28,7 +28,7 @@ open-pencil info design.figGibt die vollständige Knotenhierarchie aus:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figNach Typ suchen:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Nach Name suchen:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Beide Flags können kombiniert werden, um Ergebnisse weiter einzugrenzen.@@ -61,7 +61,7 @@ Beide Flags können kombiniert werden, um Ergebnisse weiter einzugrenzen.Alle Eigenschaften eines bestimmten Knotens anhand seiner ID inspizieren:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Seiten@@ -69,7 +69,7 @@ open-pencil node design.fig --id 1:23Alle Seiten im Dokument auflisten:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Variablen@@ -77,7 +77,7 @@ open-pencil pages design.figDesignvariablen und ihre Sammlungen auflisten:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Live-App-Modus@@ -85,8 +85,8 @@ open-pencil variables design.figWenn die Desktop-App läuft, lass das Dateiargument weg — das CLI verbindet sich über RPC und arbeitet auf der Live-Zeichenfläche:```sh-open-pencil tree # das Live-Dokument inspizieren-open-pencil eval -c "..." # den Editor abfragen+openpencil tree # das Live-Dokument inspizieren+openpencil eval -c "..." # den Editor abfragen```## JSON-Ausgabe@@ -94,5 +94,5 @@ open-pencil eval -c "..." # den Editor abfragenAlle Befehle unterstützen `--json` für maschinenlesbare Ausgabe — weiterleiten an `jq`, in CI-Skripte einspeisen oder mit anderen Werkzeugen verarbeiten:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/de/programmable/cli/scripting.md b/packages/docs/de/programmable/cli/scripting.mdindex 2550c0162..7b5c9c00b 100644--- a/packages/docs/de/programmable/cli/scripting.md+++ b/packages/docs/de/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: JavaScript mit der Figma Plugin API ausführen — Knoten abfragen,# Skripting-`open-pencil eval` bietet dir die vollständige Figma Plugin API im Terminal. Knoten lesen, Eigenschaften ändern, Formen erstellen — und Änderungen zurück in die Datei schreiben.+`openpencil eval` bietet dir die vollständige Figma Plugin API im Terminal. Knoten lesen, Eigenschaften ändern, Formen erstellen — und Änderungen zurück in die Datei schreiben.## Grundlegende Verwendung```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```Das `-c`-Flag nimmt JavaScript entgegen. Das `figma`-Global funktioniert wie die Figma Plugin API.@@ -18,7 +18,7 @@ Das `-c`-Flag nimmt JavaScript entgegen. Das `figma`-Global funktioniert wie die## Knoten abfragen```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Bearbeiten und speichern```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Für längere Skripte:```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Live-App-Modus@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wLass die Datei weg, um gegen die laufende Desktop-App auszuführen:```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## Verfügbare API@@ -66,5 +66,5 @@ Dies ist dieselbe API, die Figma-Plugins verwenden, sodass bestehendes Wissen un## JSON-Ausgabe```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/de/programmable/jsx-renderer.md b/packages/docs/de/programmable/jsx-renderer.mdindex 1aa1e5252..878bba2e7 100644--- a/packages/docs/de/programmable/jsx-renderer.md+++ b/packages/docs/de/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Kompakte Kurzschreibweisen, inspiriert von Tailwinds Benennung.Bestehende Designs zurück in JSX konvertieren:```sh-open-pencil export design.fig -f jsx # OpenPencil-Format-open-pencil export design.fig -f jsx --style tailwind # Tailwind-Klassen+openpencil export design.fig -f jsx # OpenPencil-Format+openpencil export design.fig -f jsx --style tailwind # Tailwind-Klassen```Der Roundtrip funktioniert: Exportiere ein Design als JSX, bearbeite den Code, rendere es zurück.diff --git a/packages/docs/de/reference/cli.md b/packages/docs/de/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/de/reference/cli.md+++ b/packages/docs/de/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/es/guide/features.md b/packages/docs/es/guide/features.mdindex 5a413239a..3aa7b2cbd 100644--- a/packages/docs/es/guide/features.md+++ b/packages/docs/es/guide/features.md@@ -61,7 +61,7 @@ Abre múltiples documentos en pestañas. <kbd>⌘</kbd><kbd>T</kbd> nueva pesta- **Tailwind JSX** — HTML con clases de utilidad Tailwind v4, listo para React o Vue- **Copiar como** — texto, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), o JSX vía menú contextual-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## Chat IA@@ -96,19 +96,19 @@ Consulta la [referencia de herramientas MCP](/programmable/mcp-server) para la lInspecciona, exporta y analiza archivos `.fig` desde el terminal:```sh-open-pencil tree design.fig # Árbol de nodos-open-pencil find design.fig --type TEXT # Buscar-open-pencil export design.fig -f png # Renderizar-open-pencil analyze colors design.fig # Auditoría de colores-open-pencil analyze clusters design.fig # Patrones repetidos-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Árbol de nodos+openpencil find design.fig --type TEXT # Buscar+openpencil export design.fig -f png # Renderizar+openpencil analyze colors design.fig # Auditoría de colores+openpencil analyze clusters design.fig # Patrones repetidos+openpencil eval design.fig -c "..." # Figma Plugin API```Cuando la app de escritorio está en ejecución, omite el archivo para controlar el editor en vivo vía RPC:```sh-open-pencil tree # Documento en vivo-open-pencil export -f png # Captura del canvas+openpencil tree # Documento en vivo+openpencil export -f png # Captura del canvas```Todos los comandos soportan `--json`. Instalar: `npm install -g @open-pencil/cli`diff --git a/packages/docs/es/programmable/cli/analyzing.md b/packages/docs/es/programmable/cli/analyzing.mdindex 15eade463..3136a86c4 100644--- a/packages/docs/es/programmable/cli/analyzing.md+++ b/packages/docs/es/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ Los comandos `analyze` auditan un sistema de diseño completo desde la terminal## Colores```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Encuentra cada color en el archivo, cuenta el uso y muestra un histograma visual:@@ -25,7 +25,7 @@ Encuentra cada color en el archivo, cuenta el uso y muestra un histograma visual## Tipografía```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Lista cada combinación de familia tipográfica, tamaño y peso con conteos de uso. Útil para detectar estilos de texto aislados que deberían consolidarse.@@ -33,7 +33,7 @@ Lista cada combinación de familia tipográfica, tamaño y peso con conteos de u## Espaciado```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Audita los valores de gap y padding en los frames con auto-layout. Ayuda a identificar inconsistencias en la escala de espaciado — por ejemplo, un gap de `13px` suelto entre valores de `8/16/24`.@@ -41,7 +41,7 @@ Audita los valores de gap y padding en los frames con auto-layout. Ayuda a ident## Clusters```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Encuentra patrones de nodos repetidos que podrían extraerse como componentes:@@ -59,7 +59,7 @@ Encuentra patrones de nodos repetidos que podrían extraerse como componentes:Todos los comandos de análisis soportan `--json` para salida legible por máquinas:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Envía a `jq`, alimenta verificaciones de CI, o úsalo en scripts que controlen presupuestos de tokens de diseño.diff --git a/packages/docs/es/programmable/cli/exporting.md b/packages/docs/es/programmable/cli/exporting.mdindex c15237da9..363311e89 100644--- a/packages/docs/es/programmable/cli/exporting.md+++ b/packages/docs/es/programmable/cli/exporting.md@@ -10,10 +10,10 @@ Exporta diseños desde la terminal — imágenes rasterizadas, vectores o códig## Exportar Imágenes```sh-open-pencil export design.fig # PNG (predeterminado)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG a 2×, calidad 90-open-pencil export design.fig -f webp -s 3 # WEBP a 3×-open-pencil export design.fig -f svg # SVG vectorial+openpencil export design.fig # PNG (predeterminado)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG a 2×, calidad 90+openpencil export design.fig -f webp -s 3 # WEBP a 3×+openpencil export design.fig -f svg # SVG vectorial```Opciones:@@ -30,7 +30,7 @@ Opciones:Exporta como JSX con clases de utilidad Tailwind:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Salida:@@ -47,7 +47,7 @@ También soporta `--style openpencil` para el formato JSX nativo (ver [Renderiza## Miniaturas```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Modo Aplicación en Vivo@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Omite el archivo para exportar desde la aplicación en ejecución:```sh-open-pencil export -f png # captura de pantalla del lienzo actual+openpencil export -f png # captura de pantalla del lienzo actual```diff --git a/packages/docs/es/programmable/cli/inspecting.md b/packages/docs/es/programmable/cli/inspecting.mdindex e27a5fa55..b08808aa9 100644--- a/packages/docs/es/programmable/cli/inspecting.md+++ b/packages/docs/es/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilObtén un resumen rápido — cantidad de páginas, nodos totales, fuentes utilizadas, tamaño del archivo:```sh-open-pencil info design.fig+openpencil info design.fig```## Árbol de Nodos@@ -28,7 +28,7 @@ open-pencil info design.figImprime la jerarquía completa de nodos:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figBuscar por tipo:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Buscar por nombre:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Ambos flags se pueden combinar para refinar aún más los resultados.@@ -61,7 +61,7 @@ Ambos flags se pueden combinar para refinar aún más los resultados.Inspecciona todas las propiedades de un nodo específico por su ID:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Páginas@@ -69,7 +69,7 @@ open-pencil node design.fig --id 1:23Lista todas las páginas del documento:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Variables@@ -77,7 +77,7 @@ open-pencil pages design.figLista las variables de diseño y sus colecciones:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Modo Aplicación en Vivo@@ -85,8 +85,8 @@ open-pencil variables design.figCuando la aplicación de escritorio está en ejecución, omite el argumento de archivo — el CLI se conecta vía RPC y opera sobre el lienzo en vivo:```sh-open-pencil tree # inspeccionar el documento en vivo-open-pencil eval -c "..." # consultar el editor+openpencil tree # inspeccionar el documento en vivo+openpencil eval -c "..." # consultar el editor```## Salida JSON@@ -94,5 +94,5 @@ open-pencil eval -c "..." # consultar el editorTodos los comandos soportan `--json` para salida legible por máquinas — envía a `jq`, alimenta scripts de CI, o procesa con otras herramientas:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/es/programmable/cli/scripting.md b/packages/docs/es/programmable/cli/scripting.mdindex 4e36d606f..28913a249 100644--- a/packages/docs/es/programmable/cli/scripting.md+++ b/packages/docs/es/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: Ejecuta JavaScript con la API de Plugins de Figma — consulta nodo# Scripting-`open-pencil eval` te da acceso a la API completa de Plugins de Figma en la terminal. Lee nodos, modifica propiedades, crea formas — y luego guarda los cambios en el archivo.+`openpencil eval` te da acceso a la API completa de Plugins de Figma en la terminal. Lee nodos, modifica propiedades, crea formas — y luego guarda los cambios en el archivo.## Uso Básico```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```El flag `-c` recibe JavaScript. El global `figma` funciona como la API de Plugins de Figma.@@ -18,7 +18,7 @@ El flag `-c` recibe JavaScript. El global `figma` funciona como la API de Plugin## Consultar Nodos```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Modificar y Guardar```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Para scripts más largos:```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Modo Aplicación en Vivo@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wOmite el archivo para ejecutar contra la aplicación de escritorio en ejecución:```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## API Disponible@@ -66,5 +66,5 @@ Esta es la misma API que usan los plugins de Figma, por lo que el conocimiento e## Salida JSON```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/es/programmable/jsx-renderer.md b/packages/docs/es/programmable/jsx-renderer.mdindex 256b6e67b..cf8ca23cb 100644--- a/packages/docs/es/programmable/jsx-renderer.md+++ b/packages/docs/es/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Props abreviados compactos inspirados en la nomenclatura de Tailwind.Convierte diseños existentes de vuelta a JSX:```sh-open-pencil export design.fig -f jsx # formato OpenPencil-open-pencil export design.fig -f jsx --style tailwind # clases Tailwind+openpencil export design.fig -f jsx # formato OpenPencil+openpencil export design.fig -f jsx --style tailwind # clases Tailwind```El viaje de ida y vuelta funciona: exporta un diseño como JSX, modifica el código, renderízalo de nuevo.diff --git a/packages/docs/es/reference/cli.md b/packages/docs/es/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/es/reference/cli.md+++ b/packages/docs/es/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/fr/guide/features.md b/packages/docs/fr/guide/features.mdindex a6aca21a3..5b42dffba 100644--- a/packages/docs/fr/guide/features.md+++ b/packages/docs/fr/guide/features.md@@ -61,7 +61,7 @@ Ouvrez plusieurs documents en onglets. <kbd>⌘</kbd><kbd>T</kbd> nouvel onglet,- **Tailwind JSX** — HTML avec classes utilitaires Tailwind v4, prêt pour React ou Vue- **Copier en tant que** — texte, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), ou JSX via le menu contextuel-CLI : `open-pencil export design.fig -f jsx --style tailwind`+CLI : `openpencil export design.fig -f jsx --style tailwind`## Chat IA@@ -96,19 +96,19 @@ Voir la [référence des outils MCP](/programmable/mcp-server) pour la liste comInspectez, exportez et analysez les fichiers `.fig` depuis le terminal :```sh-open-pencil tree design.fig # Arbre de nœuds-open-pencil find design.fig --type TEXT # Recherche-open-pencil export design.fig -f png # Rendu-open-pencil analyze colors design.fig # Audit des couleurs-open-pencil analyze clusters design.fig # Motifs répétés-open-pencil eval design.fig -c "..." # API Plugin Figma+openpencil tree design.fig # Arbre de nœuds+openpencil find design.fig --type TEXT # Recherche+openpencil export design.fig -f png # Rendu+openpencil analyze colors design.fig # Audit des couleurs+openpencil analyze clusters design.fig # Motifs répétés+openpencil eval design.fig -c "..." # API Plugin Figma```Lorsque l'application de bureau est lancée, omettez le fichier pour contrôler l'éditeur en direct via RPC :```sh-open-pencil tree # Document en direct-open-pencil export -f png # Capture du canevas+openpencil tree # Document en direct+openpencil export -f png # Capture du canevas```Toutes les commandes supportent `--json`. Installation : `npm install -g @open-pencil/cli`diff --git a/packages/docs/fr/programmable/cli/analyzing.md b/packages/docs/fr/programmable/cli/analyzing.mdindex 7c17eed6e..20ce0e54a 100644--- a/packages/docs/fr/programmable/cli/analyzing.md+++ b/packages/docs/fr/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ Les commandes `analyze` permettent d'auditer un système de design entier depuis## Couleurs```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Trouve chaque couleur dans le fichier, compte les utilisations et affiche un histogramme visuel :@@ -25,7 +25,7 @@ Trouve chaque couleur dans le fichier, compte les utilisations et affiche un his## Typographie```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Liste chaque combinaison de famille de polices, taille et graisse avec le nombre d'utilisations. Utile pour repérer les styles de texte ponctuels qui devraient être consolidés.@@ -33,7 +33,7 @@ Liste chaque combinaison de famille de polices, taille et graisse avec le nombre## Espacement```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Audite les valeurs de gap et de padding à travers les frames avec auto-layout. Aide à identifier les incohérences d'échelle d'espacement — par exemple, un gap de `13px` isolé parmi des valeurs de `8/16/24`.@@ -41,7 +41,7 @@ Audite les valeurs de gap et de padding à travers les frames avec auto-layout.## Motifs récurrents```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Trouve les motifs de nœuds répétés qui pourraient être extraits en composants :@@ -59,7 +59,7 @@ Trouve les motifs de nœuds répétés qui pourraient être extraits en composanToutes les commandes d'analyse supportent `--json` pour une sortie lisible par machine :```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Redirigez vers `jq`, alimentez des vérifications CI, ou utilisez dans des scripts qui contrôlent les budgets de tokens de design.diff --git a/packages/docs/fr/programmable/cli/exporting.md b/packages/docs/fr/programmable/cli/exporting.mdindex b8e95db39..4debb11ba 100644--- a/packages/docs/fr/programmable/cli/exporting.md+++ b/packages/docs/fr/programmable/cli/exporting.md@@ -10,10 +10,10 @@ Exportez des designs depuis le terminal — images raster, vecteurs ou code JSX.## Export d'images```sh-open-pencil export design.fig # PNG (par défaut)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG en 2×, qualité 90-open-pencil export design.fig -f webp -s 3 # WEBP en 3×-open-pencil export design.fig -f svg # SVG vectoriel+openpencil export design.fig # PNG (par défaut)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG en 2×, qualité 90+openpencil export design.fig -f webp -s 3 # WEBP en 3×+openpencil export design.fig -f svg # SVG vectoriel```Options :@@ -30,7 +30,7 @@ Options :Exportez en JSX avec des classes utilitaires Tailwind :```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Résultat :@@ -47,7 +47,7 @@ Supporte aussi `--style openpencil` pour le format JSX natif (voir [Moteur de re## Miniatures```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Mode application en direct@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Omettez le fichier pour exporter depuis l'application en cours d'exécution :```sh-open-pencil export -f png # capture du canevas actuel+openpencil export -f png # capture du canevas actuel```diff --git a/packages/docs/fr/programmable/cli/inspecting.md b/packages/docs/fr/programmable/cli/inspecting.mdindex bceab0d12..887a921a4 100644--- a/packages/docs/fr/programmable/cli/inspecting.md+++ b/packages/docs/fr/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilObtenez un aperçu rapide — nombre de pages, nombre total de nœuds, polices utilisées, taille du fichier :```sh-open-pencil info design.fig+openpencil info design.fig```## Arborescence des nœuds@@ -28,7 +28,7 @@ open-pencil info design.figAffichez la hiérarchie complète des nœuds :```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figRechercher par type :```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Rechercher par nom :```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Les deux options peuvent être combinées pour affiner les résultats.@@ -61,7 +61,7 @@ Les deux options peuvent être combinées pour affiner les résultats.Inspectez toutes les propriétés d'un nœud spécifique par son identifiant :```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Pages@@ -69,7 +69,7 @@ open-pencil node design.fig --id 1:23Listez toutes les pages du document :```sh-open-pencil pages design.fig+openpencil pages design.fig```## Variables@@ -77,7 +77,7 @@ open-pencil pages design.figListez les variables de design et leurs collections :```sh-open-pencil variables design.fig+openpencil variables design.fig```## Mode application en direct@@ -85,8 +85,8 @@ open-pencil variables design.figQuand l'application de bureau est en cours d'exécution, omettez l'argument fichier — le CLI se connecte via RPC et opère sur le canevas en direct :```sh-open-pencil tree # inspecter le document en direct-open-pencil eval -c "..." # interroger l'éditeur+openpencil tree # inspecter le document en direct+openpencil eval -c "..." # interroger l'éditeur```## Sortie JSON@@ -94,5 +94,5 @@ open-pencil eval -c "..." # interroger l'éditeurToutes les commandes supportent `--json` pour une sortie lisible par machine — redirigez vers `jq`, alimentez des scripts CI, ou traitez avec d'autres outils :```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/fr/programmable/cli/scripting.md b/packages/docs/fr/programmable/cli/scripting.mdindex 01862d3d1..ef42655a0 100644--- a/packages/docs/fr/programmable/cli/scripting.md+++ b/packages/docs/fr/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: Exécutez du JavaScript avec l'API Figma Plugin — interrogez des# Scripter-`open-pencil eval` vous donne accès à l'API complète Figma Plugin dans le terminal. Lisez des nœuds, modifiez des propriétés, créez des formes — puis écrivez les changements dans le fichier.+`openpencil eval` vous donne accès à l'API complète Figma Plugin dans le terminal. Lisez des nœuds, modifiez des propriétés, créez des formes — puis écrivez les changements dans le fichier.## Utilisation de base```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```L'option `-c` prend du JavaScript. Le global `figma` fonctionne comme l'API Figma Plugin.@@ -18,7 +18,7 @@ L'option `-c` prend du JavaScript. Le global `figma` fonctionne comme l'API Figm## Interroger des nœuds```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Modifier et sauvegarder```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Pour des scripts plus longs :```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Mode application en direct@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wOmettez le fichier pour exécuter sur l'application de bureau en cours d'exécution :```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## API disponible@@ -66,5 +66,5 @@ C'est la même API que celle utilisée par les plugins Figma, donc les connaissa## Sortie JSON```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/fr/programmable/jsx-renderer.md b/packages/docs/fr/programmable/jsx-renderer.mdindex 1a78b0227..aa59df363 100644--- a/packages/docs/fr/programmable/jsx-renderer.md+++ b/packages/docs/fr/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Props raccourcies compactes inspirées des conventions de nommage de Tailwind.Convertissez des designs existants en JSX :```sh-open-pencil export design.fig -f jsx # Format OpenPencil-open-pencil export design.fig -f jsx --style tailwind # Classes Tailwind+openpencil export design.fig -f jsx # Format OpenPencil+openpencil export design.fig -f jsx --style tailwind # Classes Tailwind```L'aller-retour fonctionne : exportez un design en JSX, modifiez le code, rendez-le à nouveau.diff --git a/packages/docs/fr/reference/cli.md b/packages/docs/fr/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/fr/reference/cli.md+++ b/packages/docs/fr/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/guide/features.md b/packages/docs/guide/features.mdindex 09a0d9ad9..dc0f2c2ac 100644--- a/packages/docs/guide/features.md+++ b/packages/docs/guide/features.md@@ -61,7 +61,7 @@ Open multiple documents in tabs. <kbd>⌘</kbd><kbd>T</kbd> new tab, <kbd>⌘</k- **Tailwind JSX** — HTML with Tailwind v4 utility classes, ready for React or Vue- **Copy as** — text, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), or JSX via context menu-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## AI Chat@@ -96,19 +96,19 @@ See [MCP Tools reference](/programmable/mcp-server) for the full tool list.Inspect, export, and analyze `.fig` files from the terminal:```sh-open-pencil tree design.fig # Node tree-open-pencil find design.fig --type TEXT # Search-open-pencil export design.fig -f png # Render-open-pencil analyze colors design.fig # Color audit-open-pencil analyze clusters design.fig # Repeated patterns-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Node tree+openpencil find design.fig --type TEXT # Search+openpencil export design.fig -f png # Render+openpencil analyze colors design.fig # Color audit+openpencil analyze clusters design.fig # Repeated patterns+openpencil eval design.fig -c "..." # Figma Plugin API```When the desktop app is running, omit the file to control the live editor via RPC:```sh-open-pencil tree # Live document-open-pencil export -f png # Screenshot canvas+openpencil tree # Live document+openpencil export -f png # Screenshot canvas```All commands support `--json`. Install: `npm install -g @open-pencil/cli` (or `bun add -g @open-pencil/cli`).diff --git a/packages/docs/it/guide/features.md b/packages/docs/it/guide/features.mdindex 9cc8ee158..c39f04d8c 100644--- a/packages/docs/it/guide/features.md+++ b/packages/docs/it/guide/features.md@@ -61,7 +61,7 @@ Apri più documenti in schede. <kbd>⌘</kbd><kbd>T</kbd> nuova scheda, <kbd>⌘- **Tailwind JSX** — HTML con classi utility Tailwind v4, pronto per React o Vue- **Copia come** — testo, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>), o JSX tramite menu contestuale-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## Chat AI@@ -96,19 +96,19 @@ Consulta il [riferimento strumenti MCP](/programmable/mcp-server) per l'elenco cIspeziona, esporta e analizza file `.fig` dal terminale:```sh-open-pencil tree design.fig # Albero dei nodi-open-pencil find design.fig --type TEXT # Ricerca-open-pencil export design.fig -f png # Render-open-pencil analyze colors design.fig # Audit colori-open-pencil analyze clusters design.fig # Pattern ripetuti-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Albero dei nodi+openpencil find design.fig --type TEXT # Ricerca+openpencil export design.fig -f png # Render+openpencil analyze colors design.fig # Audit colori+openpencil analyze clusters design.fig # Pattern ripetuti+openpencil eval design.fig -c "..." # Figma Plugin API```Quando l'app desktop è in esecuzione, ometti il file per controllare l'editor live tramite RPC:```sh-open-pencil tree # Documento live-open-pencil export -f png # Screenshot del canvas+openpencil tree # Documento live+openpencil export -f png # Screenshot del canvas```Tutti i comandi supportano `--json`. Installazione: `npm install -g @open-pencil/cli`diff --git a/packages/docs/it/programmable/cli/analyzing.md b/packages/docs/it/programmable/cli/analyzing.mdindex 407d5a4a1..3d2360506 100644--- a/packages/docs/it/programmable/cli/analyzing.md+++ b/packages/docs/it/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ I comandi `analyze` auditano un intero design system dal terminale — trova inc## Colori```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Trova ogni colore nel file, conta l'utilizzo e mostra un istogramma visuale:@@ -25,7 +25,7 @@ Trova ogni colore nel file, conta l'utilizzo e mostra un istogramma visuale:## Tipografia```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Elenca ogni combinazione di famiglia di font, dimensione e peso con conteggi di utilizzo. Utile per individuare stili di testo isolati che dovrebbero essere consolidati.@@ -33,7 +33,7 @@ Elenca ogni combinazione di famiglia di font, dimensione e peso con conteggi di## Spaziatura```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Audita i valori di gap e padding nei frame con auto-layout. Aiuta a identificare incongruenze nella scala di spaziatura — ad esempio un gap di `13px` isolato tra valori altrimenti di `8/16/24`.@@ -41,7 +41,7 @@ Audita i valori di gap e padding nei frame con auto-layout. Aiuta a identificare## Cluster```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Trova pattern di nodi ripetuti che potrebbero essere estratti come componenti:@@ -59,7 +59,7 @@ Trova pattern di nodi ripetuti che potrebbero essere estratti come componenti:Tutti i comandi analyze supportano `--json` per output leggibile dalle macchine:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Invia tramite pipe a `jq`, usa nei controlli CI o utilizza negli script che verificano i budget dei token di design.diff --git a/packages/docs/it/programmable/cli/exporting.md b/packages/docs/it/programmable/cli/exporting.mdindex 548aba53d..9cc61c772 100644--- a/packages/docs/it/programmable/cli/exporting.md+++ b/packages/docs/it/programmable/cli/exporting.md@@ -10,10 +10,10 @@ Esporta i design dal terminale — immagini raster, vettoriali o codice JSX.## Esportazione Immagini```sh-open-pencil export design.fig # PNG (predefinito)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG a 2×, qualità 90-open-pencil export design.fig -f webp -s 3 # WEBP a 3×-open-pencil export design.fig -f svg # SVG vettoriale+openpencil export design.fig # PNG (predefinito)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG a 2×, qualità 90+openpencil export design.fig -f webp -s 3 # WEBP a 3×+openpencil export design.fig -f svg # SVG vettoriale```Opzioni:@@ -30,7 +30,7 @@ Opzioni:Esporta come JSX con classi utility Tailwind:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Output:@@ -47,7 +47,7 @@ Supporta anche `--style openpencil` per il formato JSX nativo (vedi [Renderer JS## Miniature```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Modalità App in Esecuzione@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Ometti il file per esportare dall'app in esecuzione:```sh-open-pencil export -f png # screenshot del canvas corrente+openpencil export -f png # screenshot del canvas corrente```diff --git a/packages/docs/it/programmable/cli/inspecting.md b/packages/docs/it/programmable/cli/inspecting.mdindex 6064ab5fc..5c720027d 100644--- a/packages/docs/it/programmable/cli/inspecting.md+++ b/packages/docs/it/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilOttieni una panoramica rapida — conteggio pagine, nodi totali, font utilizzati, dimensione del file:```sh-open-pencil info design.fig+openpencil info design.fig```## Albero dei Nodi@@ -28,7 +28,7 @@ open-pencil info design.figStampa l'intera gerarchia dei nodi:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figCerca per tipo:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Cerca per nome:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Entrambi i flag possono essere combinati per restringere ulteriormente i risultati.@@ -61,7 +61,7 @@ Entrambi i flag possono essere combinati per restringere ulteriormente i risultaIspeziona tutte le proprietà di un nodo specifico tramite il suo ID:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Pagine@@ -69,7 +69,7 @@ open-pencil node design.fig --id 1:23Elenca tutte le pagine del documento:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Variabili@@ -77,7 +77,7 @@ open-pencil pages design.figElenca le variabili di design e le relative collezioni:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Modalità App in Esecuzione@@ -85,8 +85,8 @@ open-pencil variables design.figQuando l'app desktop è in esecuzione, ometti l'argomento del file — la CLI si connette tramite RPC e opera sul canvas attivo:```sh-open-pencil tree # ispeziona il documento attivo-open-pencil eval -c "..." # interroga l'editor+openpencil tree # ispeziona il documento attivo+openpencil eval -c "..." # interroga l'editor```## Output JSON@@ -94,5 +94,5 @@ open-pencil eval -c "..." # interroga l'editorTutti i comandi supportano `--json` per output leggibile dalle macchine — invia tramite pipe a `jq`, usa negli script CI o elabora con altri strumenti:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/it/programmable/cli/scripting.md b/packages/docs/it/programmable/cli/scripting.mdindex dfd30793e..b011a0c0e 100644--- a/packages/docs/it/programmable/cli/scripting.md+++ b/packages/docs/it/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: Esegui JavaScript con la Figma Plugin API — interroga nodi, modif# Scripting-`open-pencil eval` ti dà accesso alla Figma Plugin API completa dal terminale. Leggi nodi, modifica proprietà, crea forme — poi scrivi le modifiche nel file.+`openpencil eval` ti dà accesso alla Figma Plugin API completa dal terminale. Leggi nodi, modifica proprietà, crea forme — poi scrivi le modifiche nel file.## Utilizzo Base```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```Il flag `-c` accetta JavaScript. La variabile globale `figma` funziona come la Figma Plugin API.@@ -18,7 +18,7 @@ Il flag `-c` accetta JavaScript. La variabile globale `figma` funziona come la F## Interrogazione dei Nodi```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Modifica e Salvataggio```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Per script più lunghi:```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Modalità App in Esecuzione@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wOmetti il file per eseguire sull'app desktop in esecuzione:```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## API Disponibili@@ -66,5 +66,5 @@ Questa è la stessa API utilizzata dai plugin Figma, quindi le conoscenze esiste## Output JSON```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/it/programmable/jsx-renderer.md b/packages/docs/it/programmable/jsx-renderer.mdindex a2d0b4616..cf1c36e24 100644--- a/packages/docs/it/programmable/jsx-renderer.md+++ b/packages/docs/it/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Proprietà abbreviate compatte ispirate alla nomenclatura di Tailwind.Converti design esistenti in JSX:```sh-open-pencil export design.fig -f jsx # formato OpenPencil-open-pencil export design.fig -f jsx --style tailwind # classi Tailwind+openpencil export design.fig -f jsx # formato OpenPencil+openpencil export design.fig -f jsx --style tailwind # classi Tailwind```Il ciclo completo funziona: esporta un design come JSX, modifica il codice, renderizzalo di nuovo.diff --git a/packages/docs/it/reference/cli.md b/packages/docs/it/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/it/reference/cli.md+++ b/packages/docs/it/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/pl/guide/features.md b/packages/docs/pl/guide/features.mdindex 63e9c3660..0bc310bdf 100644--- a/packages/docs/pl/guide/features.md+++ b/packages/docs/pl/guide/features.md@@ -61,7 +61,7 @@ Otwieraj wiele dokumentów w kartach. <kbd>⌘</kbd><kbd>T</kbd> nowa karta, <kb- **Tailwind JSX** — HTML z klasami utility Tailwind v4, gotowy dla React lub Vue- **Kopiuj jako** — tekst, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>) lub JSX przez menu kontekstowe-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## Chat AI@@ -96,19 +96,19 @@ Zobacz [Referencja narzędzi MCP](/programmable/mcp-server) dla pełnej listy naInspekcja, eksport i analiza plików `.fig` z terminala:```sh-open-pencil tree design.fig # Drzewo węzłów-open-pencil find design.fig --type TEXT # Wyszukiwanie-open-pencil export design.fig -f png # Renderowanie-open-pencil analyze colors design.fig # Audyt kolorów-open-pencil analyze clusters design.fig # Powtarzające się wzorce-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Drzewo węzłów+openpencil find design.fig --type TEXT # Wyszukiwanie+openpencil export design.fig -f png # Renderowanie+openpencil analyze colors design.fig # Audyt kolorów+openpencil analyze clusters design.fig # Powtarzające się wzorce+openpencil eval design.fig -c "..." # Figma Plugin API```Gdy aplikacja desktopowa jest uruchomiona, pomiń plik aby sterować edytorem na żywo przez RPC:```sh-open-pencil tree # Aktywny dokument-open-pencil export -f png # Zrzut ekranu canvasu+openpencil tree # Aktywny dokument+openpencil export -f png # Zrzut ekranu canvasu```Wszystkie komendy obsługują `--json`. Instalacja: `npm install -g @open-pencil/cli`diff --git a/packages/docs/pl/programmable/cli/analyzing.md b/packages/docs/pl/programmable/cli/analyzing.mdindex a9ebd5a60..32f98ebe8 100644--- a/packages/docs/pl/programmable/cli/analyzing.md+++ b/packages/docs/pl/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ Polecenia `analyze` audytują cały system projektowy z terminala — znajdują## Kolory```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Znajduje każdy kolor w pliku, zlicza użycie i wyświetla wizualny histogram:@@ -25,7 +25,7 @@ Znajduje każdy kolor w pliku, zlicza użycie i wyświetla wizualny histogram:## Typografia```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Listuje każdą kombinację rodziny czcionek, rozmiaru i grubości wraz z liczbą użyć. Przydatne do wykrywania jednorazowych stylów tekstowych, które powinny zostać ujednolicone.@@ -33,7 +33,7 @@ Listuje każdą kombinację rodziny czcionek, rozmiaru i grubości wraz z liczb## Odstępy```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Audytuje wartości gap i padding w ramkach z auto-layoutem. Pomaga zidentyfikować niespójności w skali odstępów — np. przypadkowy `13px` gap wśród wartości `8/16/24`.@@ -41,7 +41,7 @@ Audytuje wartości gap i padding w ramkach z auto-layoutem. Pomaga zidentyfikowa## Klastry```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Znajduje powtarzające się wzorce węzłów, które mogłyby zostać wydzielone jako komponenty:@@ -59,7 +59,7 @@ Znajduje powtarzające się wzorce węzłów, które mogłyby zostać wydzieloneWszystkie polecenia analyze obsługują `--json` dla wyjścia w formacie do odczytu maszynowego:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Przekieruj do `jq`, zasilaj kontrole CI lub używaj w skryptach egzekwujących budżety tokenów projektowych.diff --git a/packages/docs/pl/programmable/cli/exporting.md b/packages/docs/pl/programmable/cli/exporting.mdindex 1bc978912..499b554be 100644--- a/packages/docs/pl/programmable/cli/exporting.md+++ b/packages/docs/pl/programmable/cli/exporting.md@@ -10,10 +10,10 @@ Eksportuj projekty z terminala — obrazy rastrowe, wektory lub kod JSX.## Eksport obrazów```sh-open-pencil export design.fig # PNG (domyślnie)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG w 2×, jakość 90-open-pencil export design.fig -f webp -s 3 # WEBP w 3×-open-pencil export design.fig -f svg # SVG wektor+openpencil export design.fig # PNG (domyślnie)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG w 2×, jakość 90+openpencil export design.fig -f webp -s 3 # WEBP w 3×+openpencil export design.fig -f svg # SVG wektor```Opcje:@@ -30,7 +30,7 @@ Opcje:Eksportuj jako JSX z klasami narzędziowymi Tailwind:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Wynik:@@ -47,7 +47,7 @@ Obsługuje również `--style openpencil` dla natywnego formatu JSX (zobacz [Ren## Miniatury```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Tryb żywej aplikacji@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Pomiń plik, aby eksportować z uruchomionej aplikacji:```sh-open-pencil export -f png # zrzut ekranu bieżącego płótna+openpencil export -f png # zrzut ekranu bieżącego płótna```diff --git a/packages/docs/pl/programmable/cli/inspecting.md b/packages/docs/pl/programmable/cli/inspecting.mdindex 0087ce587..09aae7c2a 100644--- a/packages/docs/pl/programmable/cli/inspecting.md+++ b/packages/docs/pl/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilSzybki przegląd — liczba stron, łączna liczba węzłów, użyte czcionki, rozmiar pliku:```sh-open-pencil info design.fig+openpencil info design.fig```## Drzewo węzłów@@ -28,7 +28,7 @@ open-pencil info design.figWyświetl pełną hierarchię węzłów:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figSzukaj po typie:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Szukaj po nazwie:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Obie flagi można łączyć, aby zawęzić wyniki.@@ -61,7 +61,7 @@ Obie flagi można łączyć, aby zawęzić wyniki.Sprawdź wszystkie właściwości konkretnego węzła po jego ID:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Strony@@ -69,7 +69,7 @@ open-pencil node design.fig --id 1:23Wylistuj wszystkie strony w dokumencie:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Zmienne@@ -77,7 +77,7 @@ open-pencil pages design.figWylistuj zmienne projektowe i ich kolekcje:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Tryb żywej aplikacji@@ -85,8 +85,8 @@ open-pencil variables design.figGdy aplikacja desktopowa jest uruchomiona, pomiń argument pliku — CLI łączy się przez RPC i operuje na żywym płótnie:```sh-open-pencil tree # przeglądaj żywy dokument-open-pencil eval -c "..." # odpytuj edytor+openpencil tree # przeglądaj żywy dokument+openpencil eval -c "..." # odpytuj edytor```## Wyjście JSON@@ -94,5 +94,5 @@ open-pencil eval -c "..." # odpytuj edytorWszystkie polecenia obsługują `--json` dla wyjścia w formacie do odczytu maszynowego — przekieruj do `jq`, zasilaj skrypty CI lub przetwarzaj innymi narzędziami:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/pl/programmable/cli/scripting.md b/packages/docs/pl/programmable/cli/scripting.mdindex 210e21a5e..8bc2be074 100644--- a/packages/docs/pl/programmable/cli/scripting.md+++ b/packages/docs/pl/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: Wykonuj JavaScript z Figma Plugin API — odpytuj węzły, modyfiku# Skryptowanie-`open-pencil eval` daje Ci pełne Figma Plugin API w terminalu. Odczytuj węzły, modyfikuj właściwości, twórz kształty — a następnie zapisz zmiany z powrotem do pliku.+`openpencil eval` daje Ci pełne Figma Plugin API w terminalu. Odczytuj węzły, modyfikuj właściwości, twórz kształty — a następnie zapisz zmiany z powrotem do pliku.## Podstawowe użycie```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```Flaga `-c` przyjmuje JavaScript. Globalny obiekt `figma` działa jak Figma Plugin API.@@ -18,7 +18,7 @@ Flaga `-c` przyjmuje JavaScript. Globalny obiekt `figma` działa jak Figma Plugi## Odpytywanie węzłów```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Modyfikacja i zapis```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Dla dłuższych skryptów:```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Tryb żywej aplikacji@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wPomiń plik, aby uruchomić na działającej aplikacji desktopowej:```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## Dostępne API@@ -66,5 +66,5 @@ To jest to samo API, którego używają wtyczki Figma, więc istniejąca wiedza## Wyjście JSON```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/pl/programmable/jsx-renderer.md b/packages/docs/pl/programmable/jsx-renderer.mdindex 3fc94c4fb..b7b57502c 100644--- a/packages/docs/pl/programmable/jsx-renderer.md+++ b/packages/docs/pl/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Zwięzłe skrócone właściwości inspirowane nazewnictwem Tailwind.Konwertuj istniejące projekty z powrotem do JSX:```sh-open-pencil export design.fig -f jsx # format OpenPencil-open-pencil export design.fig -f jsx --style tailwind # klasy Tailwind+openpencil export design.fig -f jsx # format OpenPencil+openpencil export design.fig -f jsx --style tailwind # klasy Tailwind```Pełen cykl działa: wyeksportuj projekt jako JSX, zmodyfikuj kod, wyrenderuj z powrotem.diff --git a/packages/docs/pl/reference/cli.md b/packages/docs/pl/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/pl/reference/cli.md+++ b/packages/docs/pl/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/programmable/cli/analyzing.md b/packages/docs/programmable/cli/analyzing.mdindex da8ab307b..dfdcd9c61 100644--- a/packages/docs/programmable/cli/analyzing.md+++ b/packages/docs/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ The `analyze` commands audit an entire design system from the terminal — find## Colors```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Finds every color in the file, counts usage, and shows a visual histogram:@@ -25,7 +25,7 @@ Finds every color in the file, counts usage, and shows a visual histogram:## Typography```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Lists every font family, size, and weight combination with usage counts. Useful for spotting one-off text styles that should be consolidated.@@ -33,7 +33,7 @@ Lists every font family, size, and weight combination with usage counts. Useful## Spacing```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Audits gap and padding values across auto-layout frames. Helps identify spacing scale inconsistencies — e.g. a stray `13px` gap among otherwise `8/16/24` values.@@ -41,7 +41,7 @@ Audits gap and padding values across auto-layout frames. Helps identify spacing## Clusters```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Finds repeated node patterns that could be extracted into components:@@ -59,7 +59,7 @@ Finds repeated node patterns that could be extracted into components:All analyze commands support `--json` for machine-readable output:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Pipe into `jq`, feed into CI checks, or use in scripts that enforce design token budgets.diff --git a/packages/docs/programmable/cli/exporting.md b/packages/docs/programmable/cli/exporting.mdindex 39f2be0bf..ca71b2024 100644--- a/packages/docs/programmable/cli/exporting.md+++ b/packages/docs/programmable/cli/exporting.md@@ -10,12 +10,12 @@ Export designs from the terminal — raster images, vectors, `.fig` subsets, or## Image Export```sh-open-pencil export design.fig # PNG (default)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG at 2×, quality 90-open-pencil export design.fig -f webp -s 3 # WEBP at 3×-open-pencil export design.fig -f svg # SVG vector-open-pencil export design.fig -f fig --page "Page 1" # export one page as .fig-open-pencil export design.fig -f fig --node 1:23 # export one node as .fig+openpencil export design.fig # PNG (default)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG at 2×, quality 90+openpencil export design.fig -f webp -s 3 # WEBP at 3×+openpencil export design.fig -f svg # SVG vector+openpencil export design.fig -f fig --page "Page 1" # export one page as .fig+openpencil export design.fig -f fig --node 1:23 # export one node as .fig```Options:@@ -32,7 +32,7 @@ Options:Export as JSX with Tailwind utility classes:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Output:@@ -49,7 +49,7 @@ Also supports `--style openpencil` for the native JSX format (see [JSX Renderer]## Thumbnails```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Live App Mode@@ -57,5 +57,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Omit the file to export from the running app:```sh-open-pencil export -f png # screenshot the current canvas+openpencil export -f png # screenshot the current canvas```diff --git a/packages/docs/programmable/cli/inspecting.md b/packages/docs/programmable/cli/inspecting.mdindex 8aaddf815..df42920eb 100644--- a/packages/docs/programmable/cli/inspecting.md+++ b/packages/docs/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilGet a quick overview — page count, total nodes, fonts used, file size:```sh-open-pencil info design.fig+openpencil info design.fig```## Node Tree@@ -28,7 +28,7 @@ open-pencil info design.figPrint the full node hierarchy:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figSearch by type:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Search by name:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Both flags can be combined to narrow results further.@@ -61,7 +61,7 @@ Both flags can be combined to narrow results further.Use XPath selectors to find nodes by type, attributes, and tree structure:```sh-open-pencil query design.fig "//FRAME"+openpencil query design.fig "//FRAME"```### Useful patterns@@ -69,34 +69,34 @@ open-pencil query design.fig "//FRAME"**By type:**```sh-open-pencil query design.fig "//TEXT" # All text nodes-open-pencil query design.fig "//COMPONENT" # All components-open-pencil query design.fig "//INSTANCE" # All instances+openpencil query design.fig "//TEXT" # All text nodes+openpencil query design.fig "//COMPONENT" # All components+openpencil query design.fig "//INSTANCE" # All instances```**By attributes:**```sh-open-pencil query design.fig "//FRAME[@width < 300]" # Frames under 300px wide-open-pencil query design.fig "//*[@cornerRadius > 0]" # Rounded corners-open-pencil query design.fig "//*[@visible = false]" # Hidden nodes-open-pencil query design.fig "//TEXT[@fontSize >= 24]" # Large text-open-pencil query design.fig "//*[@opacity < 1]" # Semi-transparent nodes+openpencil query design.fig "//FRAME[@width < 300]" # Frames under 300px wide+openpencil query design.fig "//*[@cornerRadius > 0]" # Rounded corners+openpencil query design.fig "//*[@visible = false]" # Hidden nodes+openpencil query design.fig "//TEXT[@fontSize >= 24]" # Large text+openpencil query design.fig "//*[@opacity < 1]" # Semi-transparent nodes```**By name and text content:**```sh-open-pencil query design.fig "//TEXT[contains(@name, 'Button')]" # Name contains 'Button'-open-pencil query design.fig "//TEXT[contains(@text, 'Hello')]" # Text content contains 'Hello'+openpencil query design.fig "//TEXT[contains(@name, 'Button')]" # Name contains 'Button'+openpencil query design.fig "//TEXT[contains(@text, 'Hello')]" # Text content contains 'Hello'```**By hierarchy:**```sh-open-pencil query design.fig "//SECTION//TEXT" # Text inside sections-open-pencil query design.fig "//FRAME/TEXT" # Direct text children of frames-open-pencil query design.fig "//COMPONENT_SET//INSTANCE" # Instances inside component sets+openpencil query design.fig "//SECTION//TEXT" # Text inside sections+openpencil query design.fig "//FRAME/TEXT" # Direct text children of frames+openpencil query design.fig "//COMPONENT_SET//INSTANCE" # Instances inside component sets```### Queryable attributes@@ -120,7 +120,7 @@ open-pencil query design.fig "//COMPONENT_SET//INSTANCE" # Instances inside comInspect all properties of a specific node by its ID:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Pages@@ -128,7 +128,7 @@ open-pencil node design.fig --id 1:23List all pages in the document:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Variables@@ -136,7 +136,7 @@ open-pencil pages design.figList design variables and their collections:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Live App Mode@@ -144,8 +144,8 @@ open-pencil variables design.figWhen the desktop app is running, omit the file argument — the CLI connects via RPC and operates on the live canvas:```sh-open-pencil tree # inspect the live document-open-pencil eval -c "..." # query the editor+openpencil tree # inspect the live document+openpencil eval -c "..." # query the editor```## Lint Designs@@ -153,10 +153,10 @@ open-pencil eval -c "..." # query the editorCheck documents for naming, layout, structure, and accessibility issues:```sh-open-pencil lint design.fig-open-pencil lint design.pen --preset strict-open-pencil lint design.fig --rule color-contrast-open-pencil lint design.fig --list-rules+openpencil lint design.fig+openpencil lint design.pen --preset strict+openpencil lint design.fig --rule color-contrast+openpencil lint design.fig --list-rules```Use `--json` for machine-readable output.@@ -166,5 +166,5 @@ Use `--json` for machine-readable output.All commands support `--json` for machine-readable output — pipe into `jq`, feed to CI scripts, or process with other tools:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/programmable/cli/scripting.md b/packages/docs/programmable/cli/scripting.mdindex 6182bc97d..40d6802fc 100644--- a/packages/docs/programmable/cli/scripting.md+++ b/packages/docs/programmable/cli/scripting.md@@ -5,18 +5,18 @@ description: Execute JavaScript with a Figma-compatible Plugin API to query, bat# Scripting-`open-pencil eval` runs JavaScript against an OpenPencil document with a Figma-compatible `figma` global. Use it for headless batch edits, inspection, fixture setup, and automation without opening the editor UI.+`openpencil eval` runs JavaScript against an OpenPencil document with a Figma-compatible `figma` global. Use it for headless batch edits, inspection, fixture setup, and automation without opening the editor UI.## Basic usage```sh-open-pencil eval design.fig -c "return figma.currentPage.children.length"+openpencil eval design.fig -c "return figma.currentPage.children.length"```The `-c` flag accepts JavaScript. If the code does not start with `return`, OpenPencil wraps it in an async function and returns the value from that function when present.```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "const frame = figma.createFrame()frame.name = 'Card'frame.resize(300, 200)@@ -29,7 +29,7 @@ open-pencil eval design.fig -c "## Query nodes```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "return figma.currentPage.findAll((node) => node.type === 'FRAME' && node.name.includes('Button')).map((button) => ({@@ -46,7 +46,7 @@ open-pencil eval design.fig -c "Use `--write` / `-w` to write changes back to the input file:```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach((node) => {node.opacity = 0.5})@@ -56,13 +56,13 @@ open-pencil eval design.fig -c "Use `--output` / `-o` to write to a new file:```sh-open-pencil eval design.fig -c "figma.currentPage.name = 'Updated'" -o updated.fig+openpencil eval design.fig -c "figma.currentPage.name = 'Updated'" -o updated.fig```## Read scripts from stdin```sh-cat transform.js | open-pencil eval design.fig --stdin --write+cat transform.js | openpencil eval design.fig --stdin --write```## Live app mode@@ -70,7 +70,7 @@ cat transform.js | open-pencil eval design.fig --stdin --writeOmit the file path to run against the currently open document in the desktop app:```sh-open-pencil eval -c "return figma.currentPage.name"+openpencil eval -c "return figma.currentPage.name"```The desktop app must be running with a document open.@@ -80,7 +80,7 @@ The desktop app must be running with a document open.By default, non-TTY output is JSON. Use `--json` to force JSON output:```sh-open-pencil eval design.fig -c "return figma.currentPage.children.map((n) => n.name)" --json+openpencil eval design.fig -c "return figma.currentPage.children.map((n) => n.name)" --json```Use `--quiet` / `-q` to suppress output when only writing a file.diff --git a/packages/docs/programmable/jsx-renderer.md b/packages/docs/programmable/jsx-renderer.mdindex baa1ecf9a..7db651b38 100644--- a/packages/docs/programmable/jsx-renderer.md+++ b/packages/docs/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ Compact shorthand props inspired by Tailwind's naming.Convert existing designs back to JSX:```sh-open-pencil export design.fig -f jsx # OpenPencil format-open-pencil export design.fig -f jsx --style tailwind # Tailwind classes+openpencil export design.fig -f jsx # OpenPencil format+openpencil export design.fig -f jsx --style tailwind # Tailwind classes```The round-trip works: export a design as JSX, modify the code, render it back.diff --git a/packages/docs/reference/cli.md b/packages/docs/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/reference/cli.md+++ b/packages/docs/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/packages/docs/ru/guide/features.md b/packages/docs/ru/guide/features.mdindex 3b91bc54c..997d2c0e0 100644--- a/packages/docs/ru/guide/features.md+++ b/packages/docs/ru/guide/features.md@@ -61,7 +61,7 @@ Skia (CanvasKit WASM) — тот же движок рендеринга, что- **Tailwind JSX** — HTML с утилитарными классами Tailwind v4, готовый для React или Vue- **Копировать как** — текст, SVG, PNG (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd>) или JSX через контекстное меню-CLI: `open-pencil export design.fig -f jsx --style tailwind`+CLI: `openpencil export design.fig -f jsx --style tailwind`## Чат с ИИ@@ -96,19 +96,19 @@ npm install -g @open-pencil/mcpИнспекция, экспорт и анализ файлов `.fig` из терминала:```sh-open-pencil tree design.fig # Дерево узлов-open-pencil find design.fig --type TEXT # Поиск-open-pencil export design.fig -f png # Рендеринг-open-pencil analyze colors design.fig # Аудит цветов-open-pencil analyze clusters design.fig # Повторяющиеся паттерны-open-pencil eval design.fig -c "..." # Figma Plugin API+openpencil tree design.fig # Дерево узлов+openpencil find design.fig --type TEXT # Поиск+openpencil export design.fig -f png # Рендеринг+openpencil analyze colors design.fig # Аудит цветов+openpencil analyze clusters design.fig # Повторяющиеся паттерны+openpencil eval design.fig -c "..." # Figma Plugin API```Когда запущено десктоп-приложение, можно не указывать файл и управлять живым редактором через RPC:```sh-open-pencil tree # Текущий документ-open-pencil export -f png # Скриншот канваса+openpencil tree # Текущий документ+openpencil export -f png # Скриншот канваса```Все команды поддерживают `--json`. Установка: `npm install -g @open-pencil/cli`diff --git a/packages/docs/ru/programmable/cli/analyzing.md b/packages/docs/ru/programmable/cli/analyzing.mdindex 7659055ff..6080380cd 100644--- a/packages/docs/ru/programmable/cli/analyzing.md+++ b/packages/docs/ru/programmable/cli/analyzing.md@@ -10,7 +10,7 @@ description: Аудит цветов, типографики, отступов## Цвета```sh-open-pencil analyze colors design.fig+openpencil analyze colors design.fig```Находит каждый цвет в файле, подсчитывает использование и показывает визуальную гистограмму:@@ -25,7 +25,7 @@ open-pencil analyze colors design.fig## Типографика```sh-open-pencil analyze typography design.fig+openpencil analyze typography design.fig```Выводит список всех комбинаций шрифтов, размеров и начертаний с количеством использований. Помогает обнаружить единичные стили текста, которые следует унифицировать.@@ -33,7 +33,7 @@ open-pencil analyze typography design.fig## Отступы```sh-open-pencil analyze spacing design.fig+openpencil analyze spacing design.fig```Анализирует значения gap и padding во фреймах с автолейаутом. Помогает выявить несоответствия в шкале отступов — например, случайный `13px` среди стандартных значений `8/16/24`.@@ -41,7 +41,7 @@ open-pencil analyze spacing design.fig## Кластеры```sh-open-pencil analyze clusters design.fig+openpencil analyze clusters design.fig```Находит повторяющиеся паттерны узлов, которые можно выделить в компоненты:@@ -59,7 +59,7 @@ open-pencil analyze clusters design.figВсе команды анализа поддерживают `--json` для машиночитаемого вывода:```sh-open-pencil analyze colors design.fig --json+openpencil analyze colors design.fig --json```Передавайте в `jq`, используйте в CI-проверках или в скриптах, контролирующих бюджет дизайн-токенов.diff --git a/packages/docs/ru/programmable/cli/exporting.md b/packages/docs/ru/programmable/cli/exporting.mdindex 14d2bdd04..7eafb4fe3 100644--- a/packages/docs/ru/programmable/cli/exporting.md+++ b/packages/docs/ru/programmable/cli/exporting.md@@ -10,10 +10,10 @@ description: Рендер .fig-файлов в PNG, JPG, WEBP, SVG или JSX с## Экспорт изображений```sh-open-pencil export design.fig # PNG (по умолчанию)-open-pencil export design.fig -f jpg -s 2 -q 90 # JPG в 2×, качество 90-open-pencil export design.fig -f webp -s 3 # WEBP в 3×-open-pencil export design.fig -f svg # SVG-вектор+openpencil export design.fig # PNG (по умолчанию)+openpencil export design.fig -f jpg -s 2 -q 90 # JPG в 2×, качество 90+openpencil export design.fig -f webp -s 3 # WEBP в 3×+openpencil export design.fig -f svg # SVG-вектор```Параметры:@@ -30,7 +30,7 @@ open-pencil export design.fig -f svg # SVG-векторЭкспорт в JSX с утилитарными классами Tailwind:```sh-open-pencil export design.fig -f jsx --style tailwind+openpencil export design.fig -f jsx --style tailwind```Результат:@@ -47,7 +47,7 @@ open-pencil export design.fig -f jsx --style tailwind## Миниатюры```sh-open-pencil export design.fig --thumbnail --width 1920 --height 1080+openpencil export design.fig --thumbnail --width 1920 --height 1080```## Режим работы с приложением@@ -55,5 +55,5 @@ open-pencil export design.fig --thumbnail --width 1920 --height 1080Опустите файл для экспорта из запущенного приложения:```sh-open-pencil export -f png # снимок текущего холста+openpencil export -f png # снимок текущего холста```diff --git a/packages/docs/ru/programmable/cli/inspecting.md b/packages/docs/ru/programmable/cli/inspecting.mdindex e1d5cf2c5..274ca5de4 100644--- a/packages/docs/ru/programmable/cli/inspecting.md+++ b/packages/docs/ru/programmable/cli/inspecting.md@@ -20,7 +20,7 @@ brew install open-pencil/tap/open-pencilКраткий обзор — количество страниц, общее число узлов, используемые шрифты, размер файла:```sh-open-pencil info design.fig+openpencil info design.fig```## Дерево узлов@@ -28,7 +28,7 @@ open-pencil info design.figВывод полной иерархии узлов:```sh-open-pencil tree design.fig+openpencil tree design.fig``````@@ -45,13 +45,13 @@ open-pencil tree design.figПоиск по типу:```sh-open-pencil find design.fig --type TEXT+openpencil find design.fig --type TEXT```Поиск по имени:```sh-open-pencil find design.fig --name "Button"+openpencil find design.fig --name "Button"```Оба флага можно комбинировать для более точных результатов.@@ -61,7 +61,7 @@ open-pencil find design.fig --name "Button"Используйте XPath-селекторы для поиска узлов по типу, атрибутам и структуре дерева:```sh-open-pencil query design.fig "//FRAME"+openpencil query design.fig "//FRAME"```### Полезные шаблоны@@ -69,34 +69,34 @@ open-pencil query design.fig "//FRAME"**По типу:**```sh-open-pencil query design.fig "//TEXT" # Все текстовые узлы-open-pencil query design.fig "//COMPONENT" # Все компоненты-open-pencil query design.fig "//INSTANCE" # Все экземпляры+openpencil query design.fig "//TEXT" # Все текстовые узлы+openpencil query design.fig "//COMPONENT" # Все компоненты+openpencil query design.fig "//INSTANCE" # Все экземпляры```**По атрибутам:**```sh-open-pencil query design.fig "//FRAME[@width < 300]" # Фреймы шириной менее 300px-open-pencil query design.fig "//*[@cornerRadius > 0]" # Скруглённые углы-open-pencil query design.fig "//*[@visible = false]" # Скрытые узлы-open-pencil query design.fig "//TEXT[@fontSize >= 24]" # Крупный текст-open-pencil query design.fig "//*[@opacity < 1]" # Полупрозрачные узлы+openpencil query design.fig "//FRAME[@width < 300]" # Фреймы шириной менее 300px+openpencil query design.fig "//*[@cornerRadius > 0]" # Скруглённые углы+openpencil query design.fig "//*[@visible = false]" # Скрытые узлы+openpencil query design.fig "//TEXT[@fontSize >= 24]" # Крупный текст+openpencil query design.fig "//*[@opacity < 1]" # Полупрозрачные узлы```**По имени и текстовому содержимому:**```sh-open-pencil query design.fig "//TEXT[contains(@name, 'Button')]" # Имя содержит 'Button'-open-pencil query design.fig "//TEXT[contains(@text, 'Hello')]" # Текст содержит 'Hello'+openpencil query design.fig "//TEXT[contains(@name, 'Button')]" # Имя содержит 'Button'+openpencil query design.fig "//TEXT[contains(@text, 'Hello')]" # Текст содержит 'Hello'```**По иерархии:**```sh-open-pencil query design.fig "//SECTION//TEXT" # Текст внутри секций-open-pencil query design.fig "//FRAME/TEXT" # Прямые дочерние тексты фреймов-open-pencil query design.fig "//COMPONENT_SET//INSTANCE" # Экземпляры внутри наборов компонентов+openpencil query design.fig "//SECTION//TEXT" # Текст внутри секций+openpencil query design.fig "//FRAME/TEXT" # Прямые дочерние тексты фреймов+openpencil query design.fig "//COMPONENT_SET//INSTANCE" # Экземпляры внутри наборов компонентов```### Доступные атрибуты@@ -120,7 +120,7 @@ open-pencil query design.fig "//COMPONENT_SET//INSTANCE" # ЭкземплярыПросмотр всех свойств конкретного узла по его ID:```sh-open-pencil node design.fig --id 1:23+openpencil node design.fig --id 1:23```## Страницы@@ -128,7 +128,7 @@ open-pencil node design.fig --id 1:23Список всех страниц в документе:```sh-open-pencil pages design.fig+openpencil pages design.fig```## Переменные@@ -136,7 +136,7 @@ open-pencil pages design.figСписок дизайн-переменных и их коллекций:```sh-open-pencil variables design.fig+openpencil variables design.fig```## Режим работы с приложением@@ -144,8 +144,8 @@ open-pencil variables design.figКогда настольное приложение запущено, опустите аргумент файла — CLI подключится по RPC и будет работать с активным холстом:```sh-open-pencil tree # просмотр текущего документа-open-pencil eval -c "..." # запрос к редактору+openpencil tree # просмотр текущего документа+openpencil eval -c "..." # запрос к редактору```## Линтинг дизайна@@ -153,10 +153,10 @@ open-pencil eval -c "..." # запрос к редакторуПроверяйте документы на соответствие правилам именования, вёрстки, структуры и доступности:```sh-open-pencil lint design.fig-open-pencil lint design.pen --preset strict-open-pencil lint design.fig --rule color-contrast-open-pencil lint design.fig --list-rules+openpencil lint design.fig+openpencil lint design.pen --preset strict+openpencil lint design.fig --rule color-contrast+openpencil lint design.fig --list-rules```Используйте `--json` для машиночитаемого вывода.@@ -166,5 +166,5 @@ open-pencil lint design.fig --list-rulesВсе команды поддерживают `--json` для машиночитаемого вывода — передавайте в `jq`, используйте в CI-скриптах или обрабатывайте другими инструментами:```sh-open-pencil tree design.fig --json | jq '.[] | .name'+openpencil tree design.fig --json | jq '.[] | .name'```diff --git a/packages/docs/ru/programmable/cli/scripting.md b/packages/docs/ru/programmable/cli/scripting.mdindex b6f001201..62952b65f 100644--- a/packages/docs/ru/programmable/cli/scripting.md+++ b/packages/docs/ru/programmable/cli/scripting.md@@ -5,12 +5,12 @@ description: Выполняйте JavaScript с Figma Plugin API — запра# Скрипты-`open-pencil eval` предоставляет полный Figma Plugin API в терминале. Читайте узлы, изменяйте свойства, создавайте фигуры — и сохраняйте изменения обратно в файл.+`openpencil eval` предоставляет полный Figma Plugin API в терминале. Читайте узлы, изменяйте свойства, создавайте фигуры — и сохраняйте изменения обратно в файл.## Базовое использование```sh-open-pencil eval design.fig -c "figma.currentPage.children.length"+openpencil eval design.fig -c "figma.currentPage.children.length"```Флаг `-c` принимает JavaScript. Глобальный объект `figma` работает как Figma Plugin API.@@ -18,7 +18,7 @@ open-pencil eval design.fig -c "figma.currentPage.children.length"## Запрос узлов```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.findAll(n => n.type === 'FRAME' && n.name.includes('Button')).map(b => ({ id: b.id, name: b.name, w: b.width, h: b.height }))"@@ -27,7 +27,7 @@ open-pencil eval design.fig -c "## Изменение и сохранение```sh-open-pencil eval design.fig -c "+openpencil eval design.fig -c "figma.currentPage.children.forEach(n => n.opacity = 0.5)" -w```@@ -39,7 +39,7 @@ open-pencil eval design.fig -c "Для длинных скриптов:```sh-cat transform.js | open-pencil eval design.fig --stdin -w+cat transform.js | openpencil eval design.fig --stdin -w```## Режим работы с приложением@@ -47,7 +47,7 @@ cat transform.js | open-pencil eval design.fig --stdin -wОпустите файл для выполнения команд в запущенном настольном приложении:```sh-open-pencil eval -c "figma.currentPage.name"+openpencil eval -c "figma.currentPage.name"```## Доступный API@@ -66,5 +66,5 @@ open-pencil eval -c "figma.currentPage.name"## JSON-вывод```sh-open-pencil eval design.fig -c "..." --json+openpencil eval design.fig -c "..." --json```diff --git a/packages/docs/ru/programmable/jsx-renderer.md b/packages/docs/ru/programmable/jsx-renderer.mdindex 8ace2f729..b33a11ca7 100644--- a/packages/docs/ru/programmable/jsx-renderer.md+++ b/packages/docs/ru/programmable/jsx-renderer.md@@ -95,8 +95,8 @@ JSX также поддаётся сравнению. Когда ИИ изменКонвертируйте существующий дизайн обратно в JSX:```sh-open-pencil export design.fig -f jsx # формат OpenPencil-open-pencil export design.fig -f jsx --style tailwind # классы Tailwind+openpencil export design.fig -f jsx # формат OpenPencil+openpencil export design.fig -f jsx --style tailwind # классы Tailwind```Круговой цикл работает: экспортируйте дизайн как JSX, измените код, отрендерьте обратно.diff --git a/packages/docs/ru/reference/cli.md b/packages/docs/ru/reference/cli.mdindex 6f83df440..7335121f8 100644--- a/packages/docs/ru/reference/cli.md+++ b/packages/docs/ru/reference/cli.md@@ -1,6 +1,6 @@---title: CLI Reference-description: Complete reference for all open-pencil commands, options, and flags.+description: Complete reference for all openpencil commands, options, and flags.---# CLI Reference@@ -12,7 +12,7 @@ All commands accept a `.fig` file as a positional argument. When omitted, the CLShow document info — pages, node counts, fonts, file size.```sh-open-pencil info [file] [--json]+openpencil info [file] [--json]```| Option | Description |@@ -24,7 +24,7 @@ open-pencil info [file] [--json]Print the node hierarchy.```sh-open-pencil tree [file] [options]+openpencil tree [file] [options]```| Option | Description |@@ -38,7 +38,7 @@ open-pencil tree [file] [options]Search nodes by name or type.```sh-open-pencil find [file] [options]+openpencil find [file] [options]```| Option | Description |@@ -54,7 +54,7 @@ open-pencil find [file] [options]Show detailed properties of a node.```sh-open-pencil node [file] --id <id> [--json]+openpencil node [file] --id <id> [--json]```| Option | Description |@@ -67,7 +67,7 @@ open-pencil node [file] --id <id> [--json]List all pages in the document.```sh-open-pencil pages [file] [--json]+openpencil pages [file] [--json]```| Option | Description |@@ -79,7 +79,7 @@ open-pencil pages [file] [--json]List design variables and collections.```sh-open-pencil variables [file] [options]+openpencil variables [file] [options]```| Option | Description |@@ -93,7 +93,7 @@ open-pencil variables [file] [options]Export to PNG, JPG, WEBP, SVG, or JSX.```sh-open-pencil export [file] [options]+openpencil export [file] [options]```| Option | Alias | Description |@@ -114,7 +114,7 @@ open-pencil export [file] [options]Execute JavaScript with the Figma Plugin API.```sh-open-pencil eval [file] [options]+openpencil eval [file] [options]```| Option | Alias | Description |@@ -131,7 +131,7 @@ open-pencil eval [file] [options]Analyze color palette usage across the document.```sh-open-pencil analyze colors [file] [options]+openpencil analyze colors [file] [options]```| Option | Description |@@ -146,7 +146,7 @@ open-pencil analyze colors [file] [options]Analyze font family, size, and weight distribution.```sh-open-pencil analyze typography [file] [options]+openpencil analyze typography [file] [options]```| Option | Description |@@ -160,7 +160,7 @@ open-pencil analyze typography [file] [options]Analyze gap and padding values across auto-layout frames.```sh-open-pencil analyze spacing [file] [options]+openpencil analyze spacing [file] [options]```| Option | Description |@@ -173,7 +173,7 @@ open-pencil analyze spacing [file] [options]Find repeated node patterns — potential components.```sh-open-pencil analyze clusters [file] [options]+openpencil analyze clusters [file] [options]```| Option | Description |diff --git a/tests/engine/io/fig/import/schema-coverage.test.ts b/tests/engine/io/fig/import/schema-coverage.test.tsindex ed97c259e..ffa89d6f6 100644--- a/tests/engine/io/fig/import/schema-coverage.test.ts+++ b/tests/engine/io/fig/import/schema-coverage.test.ts@@ -4,7 +4,7 @@ import { readFileSync } from 'node:fs'import ts from 'typescript'import { FIGMA_RAW_NODE_FIELD_KEYS } from '#core/kiwi/fig/node-change/convert'-import { parseSchema } from '#core/kiwi/schema-runtime/parser'+import { parseSchema } from '#core/kiwi/schema-runtime'interface SchemaField {name: string