SuperAPI AI 工具集

cli-anything-eez-studio

通用与其它

查看项目

更新于 10-15 22:13

技能介绍

用途:该技能面向需要自动化 EEZ Studio 项目的场景,包括 LVGL 界面脚手架搭建、SCPI 仪器命令元数据管理,以及后端 LVGL 模拟器构建。

安装:在 eez-studio/agent-harness 目录下执行 pip install -e .。后端命令需要真实的 EEZ Studio 源码树:git clone https://github.com/eez-open/studio.git,进入 studio 后执行 npm install 与 npm run build,并设置 export EEZ_STUDIO_SOURCE=/absolute/path/to/studio。

主要能力:创建项目、添加 LVGL 标签与按钮、列出项目控件;管理 SCPI 子系统、命令与参数;查询后端状态、确保目标目录、检查后端并构建模拟器。

使用方式:建议始终加 --json 以获得便于代理读取的输出。示例:cli-anything-eez-studio --json project new -o panel.eez-project --name Panel;cli-anything-eez-studio --json --project panel.eez-project lvgl add-label --text "Ready";cli-anything-eez-studio --json --project panel.eez-project scpi subsystem-add SOURCE。

状态管理:在 REPL 或脚本会话中可使用 session undo、session redo 与 session status。带 --project 的一次性命令会自动保存项目改动,除非提供 --dry-run。

限制:lvgl backend-inspect 与 lvgl simulator-build 依赖 EEZ Studio 已构建的 Node 模块,后端缺失时应显式报错。其他细节暂未提供。