openpencil/apps/cli/README.fr.md
Kayshen-X a7d73ebb62 feat(ai): pencil-style agentic design tool-loop, multi-chat tabs, #27 panel restyle
Built-in design generation now runs as an agentic MCP tool-loop (reusing the
agent-rs BuiltInProvider), gated behind OPENPENCIL_DESIGN_AGENT_LOOP / the
Settings experimental toggle; the orchestrator stays the default.

- design-agent system prompt + in-process design toolset (parity-locked with
  the MCP surface) + flag-gated Intent::Design routing
- spawn_agents execution as sequential sub-loops + live creation-mode badges
  (per-agent glow + 'N/M designing...' header)
- new MCP tools: get_guidelines, ToolSearch, get_screenshot, get_editor_state,
  export_nodes, spawn_agents; style-guide local audit
- #27 AI panel restyle: rounded tool cards + green check-rings, gray user
  bubbles, model-pill bottom toolbar, header, empty-state pills, the
  PARALLEL AGENTS (agent_team_size) 1x-6x chip dropdown
- multi-chat tabs: ChatSessions model (Deref-to-active) + tab row UI
  (switch / close / + / Cmd+T) with each run bound to its tab

Large checkpoint commit spanning the working tree (Rust shell crates).
2026-07-02 21:21:06 +08:00

4 KiB

@zseven-w/openpencil

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Deutsch · Português · Русский · हिन्दी · Türkçe · ไทย · Tiếng Việt · Bahasa Indonesia

CLI pour OpenPencil — controlez l'outil de design depuis votre terminal.

Installation

npm install -g @zseven-w/openpencil

Plateformes supportees

Le CLI detecte et lance automatiquement l'application de bureau OpenPencil sur toutes les plateformes :

Plateforme Chemins d'installation detectes
macOS /Applications/OpenPencil.app, ~/Applications/OpenPencil.app
Windows NSIS par utilisateur (%LOCALAPPDATA%), par machine (%PROGRAMFILES%), portable
Linux /usr/bin, /usr/local/bin, ~/.local/bin, AppImage (~/Applications, ~/Downloads), Snap, Flatpak

Utilisation

op <commande> [options]

Methodes de saisie

Les arguments acceptant du JSON ou du DSL peuvent etre passes de trois manieres :

op design '...'              # Chaine en ligne (petites charges)
op design @design.txt        # Lecture depuis un fichier (recommande pour les grands designs)
cat design.txt | op design - # Lecture depuis stdin (pipe)

Controle de l'application

op start [--desktop|--web]   # Lancer OpenPencil (bureau par defaut)
op stop                      # Arreter l'instance en cours
op status                    # Verifier si l'application est en cours d'execution

Design (DSL par lot)

op design <dsl|@file|-> [--post-process] [--canvas-width N]
op design:skeleton <json|@file|->
op design:content <section-id> <json|@file|->
op design:refine --root-id <id>

Operations sur les documents

op open [file.op]            # Ouvrir un fichier ou se connecter au canevas actif
op save <file.op>            # Enregistrer le document actuel
op get [--type X] [--name Y] [--id Z] [--depth N]
op selection                 # Obtenir la selection actuelle du canevas

Manipulation des noeuds

op insert <json> [--parent P] [--index N] [--post-process]
op update <id> <json> [--post-process]
op delete <id>
op move <id> --parent <P> [--index N]
op copy <id> [--parent P]
op replace <id> <json> [--post-process]

Variables et themes

op vars                      # Obtenir les variables
op vars:set <json>           # Definir les variables
op themes                    # Obtenir les themes
op themes:set <json>         # Definir les themes
op theme:save <file.optheme> # Enregistrer un preset de theme
op theme:load <file.optheme> # Charger un preset de theme
op theme:list [dir]          # Lister les presets de theme

Pages

op page list                 # Lister les pages
op page add [--name N]       # Ajouter une page
op page remove <id>          # Supprimer une page
op page rename <id> <name>   # Renommer une page
op page reorder <id> <index> # Reordonner une page
op page duplicate <id>       # Dupliquer une page

Importation

op import:svg <file.svg>     # Importer un fichier SVG
op import:figma <file.fig>   # Importer un fichier Figma .fig

Mise en page

op layout [--parent P] [--depth N]
op find-space [--direction right|bottom|left|top]

Options globales

--file <path>     Fichier .op cible (par defaut : canevas actif)
--page <id>       ID de la page cible
--pretty          Sortie JSON lisible
--help            Afficher l'aide
--version         Afficher la version

Licence

MIT