Que fait cli-anything-eez-studio ?
Utilisez cette compétence lorsque vous avez besoin d'automatiser des projets EEZ Studio, l'échafaudage d'interfaces utilisateur LVGL, les métadonnées de commandes d'instruments SCPI, ou les builds du simulateur LVGL backend.
Installation
cd eez-studio/agent-harness
pip install -e .
Les commandes backend nécessitent l'arborescence source réelle d'EEZ Studio :
git clone https://github.com/eez-open/studio.git
cd studio
npm install
npm run build
export EEZ_STUDIO_SOURCE=/chemin/absolu/vers/studio
Utilisation Principale
Utilisez toujours --json pour une sortie lisible par l'agent.
cli-anything-eez-studio --json project new -o panel.eez-project --name Panneau
cli-anything-eez-studio --json --project panel.eez-project lvgl add-label --text "Prêt"
cli-anything-eez-studio --json --project panel.eez-project lvgl add-button --text "Exécuter"
cli-anything-eez-studio --json --project panel.eez-project project widgets
Commandes SCPI
cli-anything-eez-studio --json --project panel.eez-project scpi subsystem-add SOURCE
cli-anything-eez-studio --json --project panel.eez-project scpi command-add SOURCE :VOLTage?
cli-anything-eez-studio --json --project panel.eez-project scpi parameter-add SOURCE :VOLTage? canal --type nr1 --optional
Commandes Backend
cli-anything-eez-studio --json backend status
cli-anything-eez-studio --json --project panel.eez-project lvgl ensure-destination
cli-anything-eez-studio --json --project panel.eez-project lvgl backend-inspect
cli-anything-eez-studio --json --project panel.eez-project lvgl simulator-build build/sim
lvgl backend-inspect et lvgl simulator-build appellent les modules Node.js construits d'EEZ Studio. Ils doivent échouer bruyamment si le backend est manquant.
État
Utilisez session undo, session redo et session status pendant les sessions REPL ou scriptées. Les commandes uniques avec --project sauvegardent automatiquement les mutations du projet, sauf si --dry-run est fourni.