Open-source, local-first AI agent for real work.
Changelog
All notable changes to @vetta-org/plugin-cli are documented in this file.
Unreleased
Changed
addandadd .now use the dedicated.vettapkgplugin package format. Existing.zipfiles remain accepted as a compatibility import path.addnow identifies itself to Desktop so ability lifecycle logs distinguish CLI installs from manual package imports and marketplace installs.sync --checkaccepts schema v3 plugin releases without localdist/and validates release metadata for independently listed and bundle-only plugins. The marketplace publication gate separately verifies the referenced App releases and artifact digests.
[0.1.6] — 2026-09-14
Fixed
init --refresh-guide不再覆盖手写的AGENTS.md。此前它无条件重写,而docs又把「没有 版本戳」判成过期并给出这条命令——两者合起来是在引导用户删掉自己的文件。已知造成一个能力市场 仓库根部 443 行手写市场规范被整份替换。没有
vetta-guide-revision标记的文件现在一律拒绝覆盖(退出码 7),要覆盖得显式--force; 新增--dry-run把新模板打到 stdout 供人工合并。docs对无标记文件改口为「看起来是手写的, 请手动合并」,只有带标记且落后的才会被称作 stale 并给出刷新命令。说明书标题不再印出未解析的本地化占位符。
plugin.json的name写成%plugin.name%时,按defaultLocale从locales/解析;解析不到退回插件 id。说明书的命令清单改为读
package.json的scripts,只列真实存在的。老工程和自定义工程未必有dev/install:vetta,照着跑只会得到一句 "Missing script";没有install:vetta时改列vetta-plugin-cli add .。更正 hub
AGENTS.md对sync的两处描述:marketplaceVersion只在 semver 或纯整数时才推得动 (YYYY.MM.DD-NN这类会报出来要手改),config.api_version/permissions/commands不回填——宿主用plugin.json整个重算config,sync只在副本与真源不符时提醒删掉。
[0.1.5] — 2026-09-14
Changed
- 脚手架的
AGENTS.md削薄成纯指引:原先写在里面的「不可违反的几条」(Tailwind-only、 错误必须 notify、最小权限、MF 顶层 JSX、agent_mode已废弃、依赖用发布版本、dist/进 版本库)全部移进手册的README.md#不可违反的红线。写进说明书的规则会在所有存量工程里就地 凝固——它是init当天的快照,之后既不自更新、用户也没有理由回头看它。规则放进手册才能 随 SDK 升级一起到位;说明书越薄,需要回头迁移老仓库的理由就越少。
Added
AGENTS.md带版本戳(<!-- vetta-guide-revision: N -->),docs每次比对并在落后时打印This brief is stale ... npx @vetta-org/plugin-cli init --refresh-guide。此前「说明书旧了」 只能靠人记得,而这正是它凝固的原因。没有AGENTS.md的工程不提示——「没有」不是「旧」。
[0.1.4] — 2026-09-14
Added
init --refresh-guide [dir]就地重写已有工程(或能力市场仓库)的AGENTS.md。init拒绝 覆盖已有工程,所以老目录里那份说明书从落地起就再也没变过;它是脚手架里唯一纯派生、不含用户 内容的文件,可以安全重写,其余文件一概不动。id 与展示名从磁盘上的plugin.json读。
[0.1.3] — 2026-09-14
Added
docs每次都打印刷新手册的命令,并新增--check-latest对比 registry 上的最新 SDK,落后时 直接说出来。手册随 SDK 进node_modules,所以老工程里的手册与AGENTS.md都停在初始化那天;npx默认取最新的 CLI,它的输出是这条链路上唯一不会过期的位置。查不到 registry(离线、私服) 时明说查不到,不会据此断言手册过期。- 在能力市场仓库根跑
docs时,提示cd进能力目录,而不是让人在仓库根装一份用不上的 SDK。
Changed
- 脚手架的
AGENTS.md与 hubAGENTS.md增加「先确认手册是否最新」一步,并写明docs的输出 与自身冲突时以前者为准。 - 新建工程的 SDK 范围提到
^0.3.2(团队成员的角色槽位与跨插件引用)。
[0.1.2] — 2026-09-14
Fixed
syncpreserves the marketplace index's existing indentation (and whether it ended with a newline) instead of rewriting the whole file with tabs. Reformatting turned a two-line change into a whole-file diff, fought with other scripts that write the same file, and escalated any concurrent commit into a full-file conflict. A reconciliation tool should only touch the fields it reconciles.
[0.1.1] — 2026-09-14
Fixed
syncno longer writesconfig.api_version/config.permissions/config.commandsinto the index. The host overwrites the wholeconfigwith values derived fromplugin.jsonwhen it builds the catalog, so a copy in the index is unread, drift-prone noise; a copy that already disagrees with the package is now reported instead.syncresolves bundle members, so their directories are no longer reported as unlisted abilities. The index'sabilitiesarray holds independently listed entries; bundle members deliberately stay out of it and carry their metadata in the package's ownability.json.- Command examples now use the full package name wherever the command runs before
npm installor at a repository root, where thevetta-plugin-clibin is not onnode_modules/.binand npx would resolve it as a package name.
[Unreleased]
Added
Added
vetta-plugin-cli init --id <plugin-id>: scaffolds a buildable plugin project together with anAGENTS.mdbrief, so any coding agent can bootstrap in an unfamiliar directory without host-side knowledge. Inside a marketplace hub (.vetta/marketplace.json) the new plugin is also listed there, with a repository-relativesource.path.Added
vetta-plugin-cli docs: prints the absolute path of the manual shipped inside the installed@vetta-org/plugin-sdk, plus the SDK version it documents and the plugin/hub the command resolved. Nobody has to hard-code anode_modulespath that workspace hoisting can move.Added
vetta-plugin-cli init hub: scaffolds a conformant ability marketplace repository — index skeleton,abilities/{plugins,mcp,skills,scenes}/, a repository-levelAGENTS.md, and a CI workflow that runssync --check.Added
vetta-plugin-cli sync(and--checkfor CI): reconciles a marketplace repository's.vetta/marketplace.jsonagainst each ability directory — version, api version, permissions and commands are pulled from the packages, missing build output and slug mismatches are reported, andmarketplaceVersionis advanced so clients actually pick the update up. Ability directories that are not listed are reported, never added.docsandadd .now point at it the moment it becomes relevant.Added
vetta-plugin-cli uninstall [plugin-id]: removes a plugin through the Desktop approval path, inferring the target from the current directory when no id is given.Added
vetta-plugin-cli watch(and--stop): asks the running Desktop to load the nearest plugin from its project directory, so source edits take effect without a build → pack → install round trip.addnow accepts a plugin project directory (add .) and resolves the archive that project packed, instead of treating the directory as an archive path.Added
npx @vetta-org/plugin-cli add <npm-package>with script-free npm resolution, package-envelope validation, archive integrity binding, and installation through the running Vetta Desktop Action RPC.Added
vetta-plugin-cli reload <plugin-id>so pending plugin updates can be applied through the Desktop approval and lifecycle path.