@kevlns/v-cli 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -1,25 +1,25 @@
1
- # Vant 工具入口开发规范
2
-
3
- ## 定位
4
-
5
- 维护 v-cli 的发现、路由、能力契约和操作证据。业务实现归各独立插件。
6
-
7
- ## 调用流程
8
-
9
- 先阅读相关源文件,使用 package.json 中的 build、typecheck、test 和 check 检查。
10
-
11
- ## 调用规范
12
-
13
- 运行时入口为 skills/v-cli/SKILL.md,工具机器声明为 v-cli.plugin.json。scripts/generate-agents.mjs 生成 references/project.md,不从开发规范生成模型指令。项目设置、状态与外部宿主导出分别管理,不在安装或默认初始化时扫描外部 Agent 目录。
14
-
15
- ## 结果验证
16
-
17
- 区分源码、模拟、真实工具与发布证据。保留其他工作区改动。
18
-
19
- ## 参考资料
20
-
21
- [使用说明](README.md) · [运行技能](skills/v-cli/SKILL.md)
22
-
23
- ## 许可与版权
24
-
25
- MIT。Copyright © 2026 Vant。
1
+ # Vant 工具入口开发规范
2
+
3
+ ## 定位
4
+
5
+ 维护 v-cli 的发现、路由、能力契约和操作证据。业务实现归各独立插件。
6
+
7
+ ## 调用流程
8
+
9
+ 先阅读相关源文件,使用 package.json 中的 build、typecheck、test 和 check 检查。
10
+
11
+ ## 调用规范
12
+
13
+ 运行时入口为 skills/v-cli/SKILL.md,工具机器声明为 v-cli.plugin.json。scripts/generate-agents.mjs 生成 references/project.md,不从开发规范生成模型指令。项目设置、状态与外部宿主导出分别管理,不在安装或默认初始化时扫描外部 Agent 目录。
14
+
15
+ ## 结果验证
16
+
17
+ 区分源码、模拟、真实工具与发布证据。保留其他工作区改动。
18
+
19
+ ## 参考资料
20
+
21
+ [使用说明](README.md) · [运行技能](skills/v-cli/SKILL.md)
22
+
23
+ ## 许可与版权
24
+
25
+ MIT。Copyright © 2026 Vant。
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright © 2026 Vant
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright © 2026 Vant
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,184 +1,184 @@
1
- # Vant 工具命令入口
2
-
3
- `@kevlns/v-cli`
4
-
5
- ## 功能
6
-
7
- 提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。
8
-
9
- ## 环境要求
10
-
11
- Node.js 20 及以上;各工具的系统要求由插件清单和实际检测结果提供。
12
-
13
- ## 安装
14
-
15
- ```sh
16
- npm install -g @kevlns/v-cli
17
- ```
18
-
19
- ## 快速开始
20
-
21
- ```sh
22
- v-cli doctor
23
- v-cli plugin list --json
24
- v-cli agent index --json
25
- v-cli agent docs
26
- ```
27
-
28
- ## 使用说明
29
-
30
- ### 两种执行入口
31
-
32
- | 入口 | 职责 |
33
- | --- | --- |
34
- | v-cli art / unity / figma / ship / xlmerge | 插件子进程路由;参数和输出属于原工具 |
35
- | v-cli capability list / describe / run | 结构化契约、绑定、前置条件、授权、证据和退出码 |
36
-
37
- 插件路由不会解析或改写插件输出;插件自己的 --help/--json 原样传入。五个官方插件均通过 capability 提供结构化调用、输入输出校验、资源互斥与执行记录。`v-cli capability coverage --json` 核对公开命令覆盖;具体契约以 `describe` 为准。
38
-
39
- ### 工程与结构化执行
40
-
41
- ```sh
42
- v-cli project init --project .
43
- v-cli project inspect --project . --json
44
- v-cli capability list --json
45
- v-cli capability describe unity.test-start --json
46
- v-cli capability run unity.doctor --project . --json
47
- v-cli capability run unity.test-start --project . --set mode=EditMode --json
48
- ```
49
-
50
- project init 写入工程 `.vant/config/v-cli.json`,只保存 schemaVersion 和 provider bindings。已有配置只补缺失且有默认值的段,不覆盖已有值;显式 --binding 指向已有段时拒绝并提示 --reset。--reset 先备份再替换;--dry-run 不写配置或备份。art 需要显式 workspace/output/cache/projectId 绑定,不能猜当前工程 ID。
51
-
52
- Vant 的角色、workflow 和项目组织属于 `.vant/config/project.json`,v-cli 不读取或写入。绑定路径限定工程内,拒绝穿越和链接越界;具体字段见 capability describe 的 provider.binding。
53
-
54
- run 接受 --input JSON、--input-file FILE 和 --set k=v,按文件 → 内联 JSON → set 顺序合并,后者覆盖同名值。输入文件适合较大句柄或复杂结构,其路径以调用进程当前目录解析。目标由 --project 和绑定决定,不接受输入覆盖 projectPath。
55
-
56
- 默认每次调用记录到 `.vant/state/operations/<operationId>`,包含脱敏输入、事件、stdout/stderr 和结果。显式 --operation-id 必须唯一,不能覆盖;--no-persist 会失去原操作证据,不适合后续按句柄控制的生产启动。
57
-
58
- ### 生命周期与结果
59
-
60
- | 字段 | 含义 |
61
- | --- | --- |
62
- | execution.status | 本次调用 succeeded/failed/cancelled/unknown |
63
- | execution.lifecycle | 后端任务 accepted/running/completed/failed/cancelled/unknown |
64
- | acceptance.status | 业务结论 passed/failed/not-run |
65
- | handle | 原启动操作与真实后端身份,后续查询/取消/恢复按契约传入 |
66
- | followUp | 尚需执行的查询或后续动作 |
67
-
68
- 退出码:0=验收 passed,1=执行或验收失败,2=未执行,3=已执行但未验收,4=已确认取消,5=结果未知。工具子进程 exit 0 不等于业务成功。异步 accepted 不是 completed;pending 时按 followUp 查询。
69
-
70
- Unity 编译和测试触发返回真实 runId 句柄。跟踪同一次执行使用 unity.compile-query、unity.test-query、unity.test-cancel-run,把原结果 handle 放入输入文件:
71
-
72
- ```sh
73
- v-cli capability describe unity.test-query --json
74
- v-cli capability run unity.test-query --project . --input-file query.json --json
75
- ```
76
-
77
- query.json 应包含完整的 handle 字段;不要手工伪造。每次查询使用新的 operationId。无参 compile-status/test-status 只是最近一次或当前状态观察,不能用来证明某个启动任务完成。unknown_run、缺少证据或身份失配不得回退最近任务。Unity runId 支持要求实际工具和工程适配包就绪;doctor 前置检查不可跳过。
78
-
79
- ### 美术工坊
80
-
81
- 先读取 `v-cli agent docs art`。art 工具拥有工程风格/任务、模型登记、生成策略、后台运行、停止证据及候选定版;v-cli art provider 负责结构化路由和句柄关联,不维护第二份型号目录。
82
-
83
- ```sh
84
- v-cli art config show
85
- v-cli art agent index
86
- v-cli art config validate
87
- v-cli capability list --provider art --json
88
- v-cli capability describe art.run-status --json
89
- v-cli capability describe art.run-resume --json
90
- ```
91
-
92
- 原运行查询、取消、恢复通过 art.run-status/run-cancel/run-resume 传入原 handle。丢失启动回执用 art.run-recover 查唯一原登记;恢复不是重新生成。动态参考先分析,配置/引用变化重新预演;产品只有生成与定版两阶段。
93
-
94
- 远程图片用 art 协议适配器,当前为 DashScope;视觉分析连接独立。模型可发现不等于已启用、已适配或账号有权调用。认证只从受控连接注入,不放入工程、输入文件、argv 或日志。详细限制由 art 的随包指南负责。
95
-
96
- ### 其他官方插件
97
-
98
- | 命令 | 使用范围与边界 |
99
- | --- | --- |
100
- | unity | 精确 Editor 版本路由、CLI 校验、适配包安装和 Pipeline 调用;连接目标工程的运行中 Editor |
101
- | figma | Figma 导出和 staging Prefab 工具;结构化 provider 仅离线 doctor/contract,不含联网导出或转换 |
102
- | ship | 已构建游戏的 Steam/微信校验和开发渠道交付;不自动向玩家发布 |
103
- | xlmerge | .xlsx/.xlsm Git 冲突可视化解决;先 detect,有人工项时 launch 并交用户决策 |
104
-
105
- 每个插件首调先读 agent docs,再 describe。不要将插件执行成功当作引擎运行、平台发布或美术产物已完成。
106
-
107
- ### Agent 文档与技能
108
-
109
- ```sh
110
- v-cli agent skills --json
111
- v-cli agent export --host codex --directory ./explicit-skill-root --dry-run
112
- ```
113
-
114
- 工具随包维护 skill,Vant 按 v-cli.plugin.json 的声明发现并加载。外部宿主使用显式 agent export,必须指定 host 和已存在的技能根目录。安装和运行不会探测或写入其他 Agent 的目录。
115
-
116
- ### 本地插件与 SDK
117
-
118
- 本地插件是可信本地代码,不是沙箱。最小模块示例:
119
-
120
- ```js
121
- export default {
122
- name: "hello",
123
- description: "示例",
124
- apiVersion: 1,
125
- register(program, ctx) {
126
- program.action(() => ctx.log.result("hello"));
127
- }
128
- };
129
- ```
130
-
131
- 保存为用户插件目录 hello.mjs 后可执行 v-cli hello。不能占用内置或官方保留命令名。插件清单契约见 [schema](schemas/v-cli-plugin.schema.json)。
132
-
133
- ```ts
134
- import {
135
- createDefaultRegistry, createArtProvider, createFigmaProvider,
136
- createUnityProvider, runCapability, exitCodeForResult,
137
- CapabilityRegistry, NodeProcessExecutor, verifyExecutionHandle
138
- } from "@kevlns/v-cli";
139
- ```
140
-
141
- 公开出口是 dist/sdk.mjs 与 dist/sdk.d.ts,对应 src/sdk.ts;核心不 import providers,默认装配在 src/default-registry.ts。传入完整 providers 集合会替换默认集合。资源声明不等于锁;SDK authorize 由组织层注入,未注入时报告 not-enforced。内核不自动重试生成或触发。
142
-
143
- ### 环境与开发
144
-
145
- | 变量 | 用途 |
146
- | --- | --- |
147
- | VANT_HOME | 应用数据根,默认 ~/.vant |
148
- | V_CLI_HOME | v-cli 独立主目录,优先于统一根 |
149
- | V_CLI_PLUGIN_RESOLVE_FROM | 开发/测试解析官方包的根 |
150
- | V_CLI_HOST_VERSION / V_CLI_PLUGIN_API / V_CLI_INVOKED_BY | 路由时注入宿主版本、契约和来源 |
151
-
152
- 前置 `v-cli --json CMD` 的 --json 由宿主消费;命令后的 --json 属于命令,官方插件原样转发。不能假设全局 JSON 开关会改写插件结果。
153
-
154
- ```sh
155
- npm install
156
- npm run generate:agents
157
- npm run docs:check
158
- npm run check
159
- npm run test:package
160
- ```
161
-
162
- skills/v-cli/references/project.md 从生成源和实际解析的插件清单生成。AGENTS.md 只约束本仓库开发。优先已安装依赖;完全无法解析时才使用 sibling 清单 bootstrap。发布前应以实际依赖检查,不把本地联接当作已发布版本。test:package 检查隔离安装、发现与真实路由,不证明 Unity、付费模型或平台端到端业务成功。
163
-
164
- [架构规范](docs/registration-execution.md) · [身份矩阵](docs/execution-identities.md) · [协议解释](docs/provider-protocols.md) · [扩展与验证](docs/provider-development.md)
165
-
166
- MIT,见 [LICENSE](LICENSE)。问题反馈:[GitHub Issues](https://github.com/kevlns/v-cli/issues)。
167
-
168
- ## 开发与验证
169
-
170
- ```sh
171
- npm ci
172
- npm run check
173
- npm run test:package
174
- ```
175
-
176
- 命令返回、结构校验、模拟测试与外部平台实际运行分别核验。发布版本和依赖以随包 `package.json` 为准。
177
-
178
- ## 文档
179
-
180
- [Agent 调用规范](skills/v-cli/SKILL.md) · [文档规范](docs/documentation.md) · [执行身份与生命周期](docs/execution-identities.md) · [Provider 扩展与维护](docs/provider-development.md) · [Provider 协议解释](docs/provider-protocols.md) · [注册与执行架构](docs/registration-execution.md)
181
-
182
- ## 许可与版权
183
-
184
- 本工具采用 [MIT 许可](LICENSE)。Copyright © 2026 Vant。Vant 为工具集品牌;Figma、Unity、Steam、微信及其组件归各自权利人所有,第三方组件适用各自许可。
1
+ # Vant 工具命令入口
2
+
3
+ `@kevlns/v-cli`
4
+
5
+ ## 功能
6
+
7
+ 提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。
8
+
9
+ ## 环境要求
10
+
11
+ Node.js 20 及以上;各工具的系统要求由插件清单和实际检测结果提供。
12
+
13
+ ## 安装
14
+
15
+ ```sh
16
+ npm install -g @kevlns/v-cli
17
+ ```
18
+
19
+ ## 快速开始
20
+
21
+ ```sh
22
+ v-cli doctor
23
+ v-cli plugin list --json
24
+ v-cli agent index --json
25
+ v-cli agent docs
26
+ ```
27
+
28
+ ## 使用说明
29
+
30
+ ### 两种执行入口
31
+
32
+ | 入口 | 职责 |
33
+ | --- | --- |
34
+ | v-cli art / unity / figma / ship / xlmerge | 插件子进程路由;参数和输出属于原工具 |
35
+ | v-cli capability list / describe / run | 结构化契约、绑定、前置条件、授权、证据和退出码 |
36
+
37
+ 插件路由不会解析或改写插件输出;插件自己的 --help/--json 原样传入。五个官方插件均通过 capability 提供结构化调用、输入输出校验、资源互斥与执行记录。`v-cli capability coverage --json` 核对公开命令覆盖;具体契约以 `describe` 为准。
38
+
39
+ ### 工程与结构化执行
40
+
41
+ ```sh
42
+ v-cli project init --project .
43
+ v-cli project inspect --project . --json
44
+ v-cli capability list --json
45
+ v-cli capability describe unity.test-start --json
46
+ v-cli capability run unity.doctor --project . --json
47
+ v-cli capability run unity.test-start --project . --set mode=EditMode --json
48
+ ```
49
+
50
+ project init 写入工程 `.vant/config/v-cli.json`,只保存 schemaVersion 和 provider bindings。已有配置只补缺失且有默认值的段,不覆盖已有值;显式 --binding 指向已有段时拒绝并提示 --reset。--reset 先备份再替换;--dry-run 不写配置或备份。art 需要显式 workspace/output/cache/projectId 绑定,不能猜当前工程 ID。
51
+
52
+ Vant 的角色、workflow 和项目组织属于 `.vant/config/project.json`,v-cli 不读取或写入。绑定路径限定工程内,拒绝穿越和链接越界;具体字段见 capability describe 的 provider.binding。
53
+
54
+ run 接受 --input JSON、--input-file FILE 和 --set k=v,按文件 → 内联 JSON → set 顺序合并,后者覆盖同名值。输入文件适合较大句柄或复杂结构,其路径以调用进程当前目录解析。目标由 --project 和绑定决定,不接受输入覆盖 projectPath。
55
+
56
+ 默认每次调用记录到 `.vant/state/operations/<operationId>`,包含脱敏输入、事件、stdout/stderr 和结果。显式 --operation-id 必须唯一,不能覆盖;--no-persist 会失去原操作证据,不适合后续按句柄控制的生产启动。
57
+
58
+ ### 生命周期与结果
59
+
60
+ | 字段 | 含义 |
61
+ | --- | --- |
62
+ | execution.status | 本次调用 succeeded/failed/cancelled/unknown |
63
+ | execution.lifecycle | 后端任务 accepted/running/completed/failed/cancelled/unknown |
64
+ | acceptance.status | 业务结论 passed/failed/not-run |
65
+ | handle | 原启动操作与真实后端身份,后续查询/取消/恢复按契约传入 |
66
+ | followUp | 尚需执行的查询或后续动作 |
67
+
68
+ 退出码:0=验收 passed,1=执行或验收失败,2=未执行,3=已执行但未验收,4=已确认取消,5=结果未知。工具子进程 exit 0 不等于业务成功。异步 accepted 不是 completed;pending 时按 followUp 查询。
69
+
70
+ Unity 编译和测试触发返回真实 runId 句柄。跟踪同一次执行使用 unity.compile-query、unity.test-query、unity.test-cancel-run,把原结果 handle 放入输入文件:
71
+
72
+ ```sh
73
+ v-cli capability describe unity.test-query --json
74
+ v-cli capability run unity.test-query --project . --input-file query.json --json
75
+ ```
76
+
77
+ query.json 应包含完整的 handle 字段;不要手工伪造。每次查询使用新的 operationId。无参 compile-status/test-status 只是最近一次或当前状态观察,不能用来证明某个启动任务完成。unknown_run、缺少证据或身份失配不得回退最近任务。Unity runId 支持要求实际工具和工程适配包就绪;doctor 前置检查不可跳过。
78
+
79
+ ### 美术工坊
80
+
81
+ 先读取 `v-cli agent docs art`。art 工具拥有工程风格/任务、模型登记、生成策略、后台运行、停止证据及候选定版;v-cli art provider 负责结构化路由和句柄关联,不维护第二份型号目录。
82
+
83
+ ```sh
84
+ v-cli art config show
85
+ v-cli art agent index
86
+ v-cli art config validate
87
+ v-cli capability list --provider art --json
88
+ v-cli capability describe art.run-status --json
89
+ v-cli capability describe art.run-resume --json
90
+ ```
91
+
92
+ 原运行查询、取消、恢复通过 art.run-status/run-cancel/run-resume 传入原 handle。丢失启动回执用 art.run-recover 查唯一原登记;恢复不是重新生成。动态参考先分析,配置/引用变化重新预演;产品只有生成与定版两阶段。
93
+
94
+ 远程图片用 art 协议适配器,当前为 DashScope;视觉分析连接独立。模型可发现不等于已启用、已适配或账号有权调用。认证只从受控连接注入,不放入工程、输入文件、argv 或日志。详细限制由 art 的随包指南负责。
95
+
96
+ ### 其他官方插件
97
+
98
+ | 命令 | 使用范围与边界 |
99
+ | --- | --- |
100
+ | unity | 精确 Editor 版本路由、CLI 校验、适配包安装和 Pipeline 调用;连接目标工程的运行中 Editor |
101
+ | figma | Figma 导出和 staging Prefab 工具;结构化 provider 仅离线 doctor/contract,不含联网导出或转换 |
102
+ | ship | 已构建游戏的 Steam/微信校验和开发渠道交付;不自动向玩家发布 |
103
+ | xlmerge | .xlsx/.xlsm Git 冲突可视化解决;先 detect,有人工项时 launch 并交用户决策 |
104
+
105
+ 每个插件首调先读 agent docs,再 describe。不要将插件执行成功当作引擎运行、平台发布或美术产物已完成。
106
+
107
+ ### Agent 文档与技能
108
+
109
+ ```sh
110
+ v-cli agent skills --json
111
+ v-cli agent export --host codex --directory ./explicit-skill-root --dry-run
112
+ ```
113
+
114
+ 工具随包维护 skill,Vant 按 v-cli.plugin.json 的声明发现并加载。外部宿主使用显式 agent export,必须指定 host 和已存在的技能根目录。安装和运行不会探测或写入其他 Agent 的目录。
115
+
116
+ ### 本地插件与 SDK
117
+
118
+ 本地插件是可信本地代码,不是沙箱。最小模块示例:
119
+
120
+ ```js
121
+ export default {
122
+ name: "hello",
123
+ description: "示例",
124
+ apiVersion: 1,
125
+ register(program, ctx) {
126
+ program.action(() => ctx.log.result("hello"));
127
+ }
128
+ };
129
+ ```
130
+
131
+ 保存为用户插件目录 hello.mjs 后可执行 v-cli hello。不能占用内置或官方保留命令名。插件清单契约见 [schema](schemas/v-cli-plugin.schema.json)。
132
+
133
+ ```ts
134
+ import {
135
+ createDefaultRegistry, createArtProvider, createFigmaProvider,
136
+ createUnityProvider, runCapability, exitCodeForResult,
137
+ CapabilityRegistry, NodeProcessExecutor, verifyExecutionHandle
138
+ } from "@kevlns/v-cli";
139
+ ```
140
+
141
+ 公开出口是 dist/sdk.mjs 与 dist/sdk.d.ts,对应 src/sdk.ts;核心不 import providers,默认装配在 src/default-registry.ts。传入完整 providers 集合会替换默认集合。资源声明不等于锁;SDK authorize 由组织层注入,未注入时报告 not-enforced。内核不自动重试生成或触发。
142
+
143
+ ### 环境与开发
144
+
145
+ | 变量 | 用途 |
146
+ | --- | --- |
147
+ | VANT_HOME | 应用数据根,默认 ~/.vant |
148
+ | V_CLI_HOME | v-cli 独立主目录,优先于统一根 |
149
+ | V_CLI_PLUGIN_RESOLVE_FROM | 开发/测试解析官方包的根 |
150
+ | V_CLI_HOST_VERSION / V_CLI_PLUGIN_API / V_CLI_INVOKED_BY | 路由时注入宿主版本、契约和来源 |
151
+
152
+ 前置 `v-cli --json CMD` 的 --json 由宿主消费;命令后的 --json 属于命令,官方插件原样转发。不能假设全局 JSON 开关会改写插件结果。
153
+
154
+ ```sh
155
+ npm install
156
+ npm run generate:agents
157
+ npm run docs:check
158
+ npm run check
159
+ npm run test:package
160
+ ```
161
+
162
+ skills/v-cli/references/project.md 从生成源和实际解析的插件清单生成。AGENTS.md 只约束本仓库开发。优先已安装依赖;完全无法解析时才使用 sibling 清单 bootstrap。发布前应以实际依赖检查,不把本地联接当作已发布版本。test:package 检查隔离安装、发现与真实路由,不证明 Unity、付费模型或平台端到端业务成功。
163
+
164
+ [架构规范](docs/registration-execution.md) · [身份矩阵](docs/execution-identities.md) · [协议解释](docs/provider-protocols.md) · [扩展与验证](docs/provider-development.md)
165
+
166
+ MIT,见 [LICENSE](LICENSE)。问题反馈:[GitHub Issues](https://github.com/kevlns/v-cli/issues)。
167
+
168
+ ## 开发与验证
169
+
170
+ ```sh
171
+ npm ci
172
+ npm run check
173
+ npm run test:package
174
+ ```
175
+
176
+ 命令返回、结构校验、模拟测试与外部平台实际运行分别核验。发布版本和依赖以随包 `package.json` 为准。
177
+
178
+ ## 文档
179
+
180
+ [Agent 调用规范](skills/v-cli/SKILL.md) · [文档规范](docs/documentation.md) · [执行身份与生命周期](docs/execution-identities.md) · [Provider 扩展与维护](docs/provider-development.md) · [Provider 协议解释](docs/provider-protocols.md) · [注册与执行架构](docs/registration-execution.md)
181
+
182
+ ## 许可与版权
183
+
184
+ 本工具采用 [MIT 许可](LICENSE)。Copyright © 2026 Vant。Vant 为工具集品牌;Figma、Unity、Steam、微信及其组件归各自权利人所有,第三方组件适用各自许可。
package/dist/cli.mjs CHANGED
@@ -761,7 +761,7 @@ function exportToolSkill(command, options) {
761
761
  }
762
762
 
763
763
  // src/version.ts
764
- var VERSION = "0.6.2";
764
+ var VERSION = "0.6.4";
765
765
 
766
766
  // src/commands/agent.ts
767
767
  function buildAgentIndex(builtin, local, official) {
@@ -6843,6 +6843,17 @@ var definitions3 = [
6843
6843
  { id: "agent-index", command: ["agent", "index"], fields: {}, readonly: true, global: true },
6844
6844
  { id: "agent-docs", command: ["agent", "docs"], fields: {}, readonly: true, text: true, global: true },
6845
6845
  { id: "agent-init", command: ["agent", "init"], fields: { directory: file, dry: { type: "boolean" } }, required: ["directory"], global: true },
6846
+ { id: "agent-export", command: ["agent", "export"], fields: { directory: file, host: { type: "string", enum: ["codex", "claude"] }, dry: { type: "boolean" } }, required: ["directory", "host"], global: true },
6847
+ ...["start", "status", "cancel", "resume", "close"].map((action) => ({
6848
+ id: "conversation-" + action,
6849
+ command: ["conversation", action],
6850
+ global: true,
6851
+ fields: action === "start" ? { input: file } : { session: identifier, request: identifier },
6852
+ required: action === "start" ? ["input"] : ["session", "request"],
6853
+ readonly: action === "status",
6854
+ network: action !== "status"
6855
+ })),
6856
+ ...["style", "job"].map((kind) => ({ id: kind + "-migration-complete", command: [kind, "migration-complete"], fields: objectFields, required: ["id", "revision", "input"] })),
6846
6857
  { id: "list", command: ["list"], fields: {}, readonly: true, global: true },
6847
6858
  { id: "style-validate", command: ["style", "validate"], fields: { report: file }, required: ["report"], readonly: true },
6848
6859
  { id: "style-show", command: ["style", "show"], fields: { core: identifier }, required: ["core"], readonly: true },
@@ -7140,7 +7151,7 @@ function createArtProvider(deps) {
7140
7151
  for (const key of d.positional ?? []) argv.push(resolveInsideProject(ctx.projectAnchor, String(input[key]), "art." + key).path);
7141
7152
  for (const [key, value] of Object.entries(input)) {
7142
7153
  if (key === "handle" || d.positional?.includes(key) || value === false) continue;
7143
- const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
7154
+ const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...["agent-init", "agent-export"].includes(d.id) ? ["directory"] : []].includes(key) ? resolveInsideProject(
7144
7155
  ctx.projectAnchor,
7145
7156
  String(value),
7146
7157
  "art." + key
@@ -7166,7 +7177,7 @@ function createArtProvider(deps) {
7166
7177
  if (!output || typeof output !== "object") throw new Error();
7167
7178
  } catch {
7168
7179
  const processState = executionFromProcess(outcome);
7169
- const uncertain = d.start || d.control || processState.lifecycle === "unknown";
7180
+ const uncertain = d.start || d.control || d.command[0] === "conversation" || processState.lifecycle === "unknown";
7170
7181
  return {
7171
7182
  execution: {
7172
7183
  ...processState,
@@ -7183,6 +7194,8 @@ function createArtProvider(deps) {
7183
7194
  };
7184
7195
  }
7185
7196
  let lifecycle = executionFromProcess(outcome).lifecycle;
7197
+ if (d.command[0] === "conversation" && output.stopConfirmed !== true)
7198
+ lifecycle = "unknown";
7186
7199
  if (typeof output.taskId === "string")
7187
7200
  lifecycle = output.lifecycle ?? (d.start && !input.dry ? "accepted" : output.stopConfirmed === true ? "completed" : "unknown");
7188
7201
  return {
@@ -8895,11 +8908,19 @@ async function main() {
8895
8908
  return 1;
8896
8909
  }
8897
8910
  }
8911
+ async function exitAfterOutput(code) {
8912
+ await Promise.all([process.stdout, process.stderr].map(
8913
+ (stream) => new Promise((resolve) => {
8914
+ stream.write("", () => resolve());
8915
+ })
8916
+ ));
8917
+ process.exit(code);
8918
+ }
8898
8919
  main().then(
8899
- (code) => process.exit(code),
8920
+ (code) => exitAfterOutput(code),
8900
8921
  (err) => {
8901
8922
  process.stderr.write(`[v-cli] \u672A\u6355\u83B7\u5F02\u5E38: ${err instanceof Error ? err.stack ?? err.message : String(err)}
8902
8923
  `);
8903
- process.exit(1);
8924
+ return exitAfterOutput(1);
8904
8925
  }
8905
8926
  );
package/dist/sdk.d.ts CHANGED
@@ -1192,7 +1192,7 @@ declare function redactArgv(argv: string[]): RedactionResult<string[]>;
1192
1192
  declare const REDACTION_PLACEHOLDER = "***redacted***";
1193
1193
 
1194
1194
  /** 版本常量:与 package.json 保持一致(有测试保证) */
1195
- declare const VERSION = "0.6.2";
1195
+ declare const VERSION = "0.6.4";
1196
1196
 
1197
1197
  /** 已发布命令清单与真实注册表逐项对照,不从命名猜测覆盖。 */
1198
1198
  declare function capabilityCoverage(registry: CapabilityRegistry): {
package/dist/sdk.mjs CHANGED
@@ -6299,6 +6299,17 @@ var definitions3 = [
6299
6299
  { id: "agent-index", command: ["agent", "index"], fields: {}, readonly: true, global: true },
6300
6300
  { id: "agent-docs", command: ["agent", "docs"], fields: {}, readonly: true, text: true, global: true },
6301
6301
  { id: "agent-init", command: ["agent", "init"], fields: { directory: file, dry: { type: "boolean" } }, required: ["directory"], global: true },
6302
+ { id: "agent-export", command: ["agent", "export"], fields: { directory: file, host: { type: "string", enum: ["codex", "claude"] }, dry: { type: "boolean" } }, required: ["directory", "host"], global: true },
6303
+ ...["start", "status", "cancel", "resume", "close"].map((action) => ({
6304
+ id: "conversation-" + action,
6305
+ command: ["conversation", action],
6306
+ global: true,
6307
+ fields: action === "start" ? { input: file } : { session: identifier, request: identifier },
6308
+ required: action === "start" ? ["input"] : ["session", "request"],
6309
+ readonly: action === "status",
6310
+ network: action !== "status"
6311
+ })),
6312
+ ...["style", "job"].map((kind) => ({ id: kind + "-migration-complete", command: [kind, "migration-complete"], fields: objectFields, required: ["id", "revision", "input"] })),
6302
6313
  { id: "list", command: ["list"], fields: {}, readonly: true, global: true },
6303
6314
  { id: "style-validate", command: ["style", "validate"], fields: { report: file }, required: ["report"], readonly: true },
6304
6315
  { id: "style-show", command: ["style", "show"], fields: { core: identifier }, required: ["core"], readonly: true },
@@ -6596,7 +6607,7 @@ function createArtProvider(deps) {
6596
6607
  for (const key of d.positional ?? []) argv.push(resolveInsideProject(ctx.projectAnchor, String(input[key]), "art." + key).path);
6597
6608
  for (const [key, value] of Object.entries(input)) {
6598
6609
  if (key === "handle" || d.positional?.includes(key) || value === false) continue;
6599
- const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
6610
+ const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...["agent-init", "agent-export"].includes(d.id) ? ["directory"] : []].includes(key) ? resolveInsideProject(
6600
6611
  ctx.projectAnchor,
6601
6612
  String(value),
6602
6613
  "art." + key
@@ -6622,7 +6633,7 @@ function createArtProvider(deps) {
6622
6633
  if (!output || typeof output !== "object") throw new Error();
6623
6634
  } catch {
6624
6635
  const processState = executionFromProcess(outcome);
6625
- const uncertain = d.start || d.control || processState.lifecycle === "unknown";
6636
+ const uncertain = d.start || d.control || d.command[0] === "conversation" || processState.lifecycle === "unknown";
6626
6637
  return {
6627
6638
  execution: {
6628
6639
  ...processState,
@@ -6639,6 +6650,8 @@ function createArtProvider(deps) {
6639
6650
  };
6640
6651
  }
6641
6652
  let lifecycle = executionFromProcess(outcome).lifecycle;
6653
+ if (d.command[0] === "conversation" && output.stopConfirmed !== true)
6654
+ lifecycle = "unknown";
6642
6655
  if (typeof output.taskId === "string")
6643
6656
  lifecycle = output.lifecycle ?? (d.start && !input.dry ? "accepted" : output.stopConfirmed === true ? "completed" : "unknown");
6644
6657
  return {
@@ -7526,7 +7539,7 @@ function exportToolSkill(command, options) {
7526
7539
  }
7527
7540
 
7528
7541
  // src/version.ts
7529
- var VERSION = "0.6.2";
7542
+ var VERSION = "0.6.4";
7530
7543
 
7531
7544
  // src/capability-coverage.ts
7532
7545
  function capabilityCoverage(registry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevlns/v-cli",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,7 +58,7 @@
58
58
  "toolbox"
59
59
  ],
60
60
  "dependencies": {
61
- "@kevlns/art-workshop": "0.5.1",
61
+ "@kevlns/art-workshop": "0.5.2",
62
62
  "@kevlns/figma-to-uprefab": "0.1.4",
63
63
  "@kevlns/ship-cli": "0.1.2",
64
64
  "@kevlns/u-cli-mod": "0.3.1",
@@ -1,247 +1,247 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://github.com/kevlns/v-cli/schemas/v-cli-plugin.schema.json",
4
- "title": "v-cli plugin manifest",
5
- "description": "官方插件清单(v-cli.plugin.json)契约,schemaVersion 1。v-cli 使用内置校验器(src/core/manifest.ts)执行等价规则;本文件供编辑器提示与文档使用。",
6
- "type": "object",
7
- "additionalProperties": true,
8
- "required": [
9
- "schemaVersion",
10
- "package",
11
- "command",
12
- "bin",
13
- "description",
14
- "platforms",
15
- "runtime",
16
- "environment",
17
- "agent"
18
- ],
19
- "properties": {
20
- "schemaVersion": {
21
- "const": 1,
22
- "description": "清单契约版本。v-cli 0.2 仅支持 1;未知 major(>=2)会被拒绝。"
23
- },
24
- "package": {
25
- "type": "string",
26
- "pattern": "^@[a-zA-Z0-9][a-zA-Z0-9._~-]*/[a-zA-Z0-9][a-zA-Z0-9._~-]*$",
27
- "description": "npm 包名(@scope/name),必须与 package.json 的 name 一致。"
28
- },
29
- "command": {
30
- "type": "string",
31
- "pattern": "^[a-z][a-z0-9-]*$",
32
- "description": "v-cli 路由命令名。不可与内置命令(doctor/plugin/ts/agent/help)重名。"
33
- },
34
- "bin": {
35
- "type": "string",
36
- "description": "package.json bin 中的键名;由 v-cli 以子进程方式调用。"
37
- },
38
- "description": {
39
- "type": "string",
40
- "minLength": 1
41
- },
42
- "platforms": {
43
- "type": "array",
44
- "minItems": 1,
45
- "uniqueItems": true,
46
- "items": {
47
- "type": "string",
48
- "enum": [
49
- "darwin",
50
- "linux",
51
- "win32"
52
- ]
53
- }
54
- },
55
- "runtime": {
56
- "type": "object",
57
- "description": "运行时要求(node/python/os 等,自由形状)。"
58
- },
59
- "environment": {
60
- "type": "array",
61
- "items": {
62
- "type": "object",
63
- "required": [
64
- "name",
65
- "description"
66
- ],
67
- "properties": {
68
- "name": {
69
- "type": "string",
70
- "minLength": 1
71
- },
72
- "description": {
73
- "type": "string",
74
- "minLength": 1
75
- }
76
- }
77
- }
78
- },
79
- "agent": {
80
- "type": "object",
81
- "required": [
82
- "whenToUse",
83
- "globalOptions",
84
- "commands"
85
- ],
86
- "properties": {
87
- "whenToUse": {
88
- "type": "string",
89
- "description": "给 AI agent 的判断条件:什么场景该调用本插件。"
90
- },
91
- "globalOptions": {
92
- "type": "array",
93
- "items": {
94
- "type": "object",
95
- "required": [
96
- "flags",
97
- "description"
98
- ],
99
- "properties": {
100
- "flags": {
101
- "type": "string",
102
- "minLength": 1
103
- },
104
- "description": {
105
- "type": "string",
106
- "minLength": 1
107
- }
108
- }
109
- }
110
- },
111
- "commands": {
112
- "type": "array",
113
- "items": {
114
- "type": "object",
115
- "required": [
116
- "path",
117
- "usage",
118
- "description",
119
- "arguments",
120
- "options",
121
- "output",
122
- "exitCodes",
123
- "safety"
124
- ],
125
- "properties": {
126
- "path": {
127
- "type": "array",
128
- "minItems": 1,
129
- "items": {
130
- "type": "string",
131
- "pattern": "^[a-z][a-z0-9-]*$"
132
- }
133
- },
134
- "usage": {
135
- "type": "string",
136
- "minLength": 1
137
- },
138
- "description": {
139
- "type": "string",
140
- "minLength": 1
141
- },
142
- "arguments": {
143
- "type": "array",
144
- "items": {
145
- "type": "object",
146
- "required": [
147
- "name",
148
- "required",
149
- "description"
150
- ],
151
- "properties": {
152
- "name": {
153
- "type": "string",
154
- "minLength": 1
155
- },
156
- "required": {
157
- "type": "boolean"
158
- },
159
- "description": {
160
- "type": "string",
161
- "minLength": 1
162
- }
163
- }
164
- }
165
- },
166
- "options": {
167
- "type": "array",
168
- "items": {
169
- "type": "object",
170
- "required": [
171
- "flags",
172
- "description"
173
- ],
174
- "properties": {
175
- "flags": {
176
- "type": "string",
177
- "minLength": 1
178
- },
179
- "description": {
180
- "type": "string",
181
- "minLength": 1
182
- }
183
- }
184
- }
185
- },
186
- "output": {
187
- "type": "object",
188
- "required": [
189
- "format",
190
- "description"
191
- ],
192
- "properties": {
193
- "format": {
194
- "type": "string",
195
- "enum": [
196
- "json",
197
- "stdout",
198
- "text"
199
- ]
200
- },
201
- "description": {
202
- "type": "string",
203
- "minLength": 1
204
- }
205
- }
206
- },
207
- "exitCodes": {
208
- "type": "object",
209
- "description": "code -> 含义 映射。",
210
- "additionalProperties": {
211
- "type": "string"
212
- }
213
- },
214
- "safety": {
215
- "type": "array",
216
- "items": {
217
- "type": "string"
218
- }
219
- }
220
- }
221
- }
222
- }
223
- }
224
- },
225
- "skills": {
226
- "type": "array",
227
- "items": {
228
- "type": "object",
229
- "required": [
230
- "id",
231
- "path"
232
- ],
233
- "additionalProperties": false,
234
- "properties": {
235
- "id": {
236
- "type": "string",
237
- "pattern": "^[a-z][a-z0-9-]*$"
238
- },
239
- "path": {
240
- "type": "string",
241
- "pattern": "^skills/[a-z0-9-]+/SKILL\\.md$"
242
- }
243
- }
244
- }
245
- }
246
- }
247
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/kevlns/v-cli/schemas/v-cli-plugin.schema.json",
4
+ "title": "v-cli plugin manifest",
5
+ "description": "官方插件清单(v-cli.plugin.json)契约,schemaVersion 1。v-cli 使用内置校验器(src/core/manifest.ts)执行等价规则;本文件供编辑器提示与文档使用。",
6
+ "type": "object",
7
+ "additionalProperties": true,
8
+ "required": [
9
+ "schemaVersion",
10
+ "package",
11
+ "command",
12
+ "bin",
13
+ "description",
14
+ "platforms",
15
+ "runtime",
16
+ "environment",
17
+ "agent"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": {
21
+ "const": 1,
22
+ "description": "清单契约版本。v-cli 0.2 仅支持 1;未知 major(>=2)会被拒绝。"
23
+ },
24
+ "package": {
25
+ "type": "string",
26
+ "pattern": "^@[a-zA-Z0-9][a-zA-Z0-9._~-]*/[a-zA-Z0-9][a-zA-Z0-9._~-]*$",
27
+ "description": "npm 包名(@scope/name),必须与 package.json 的 name 一致。"
28
+ },
29
+ "command": {
30
+ "type": "string",
31
+ "pattern": "^[a-z][a-z0-9-]*$",
32
+ "description": "v-cli 路由命令名。不可与内置命令(doctor/plugin/ts/agent/help)重名。"
33
+ },
34
+ "bin": {
35
+ "type": "string",
36
+ "description": "package.json bin 中的键名;由 v-cli 以子进程方式调用。"
37
+ },
38
+ "description": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "platforms": {
43
+ "type": "array",
44
+ "minItems": 1,
45
+ "uniqueItems": true,
46
+ "items": {
47
+ "type": "string",
48
+ "enum": [
49
+ "darwin",
50
+ "linux",
51
+ "win32"
52
+ ]
53
+ }
54
+ },
55
+ "runtime": {
56
+ "type": "object",
57
+ "description": "运行时要求(node/python/os 等,自由形状)。"
58
+ },
59
+ "environment": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "object",
63
+ "required": [
64
+ "name",
65
+ "description"
66
+ ],
67
+ "properties": {
68
+ "name": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ },
72
+ "description": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "agent": {
80
+ "type": "object",
81
+ "required": [
82
+ "whenToUse",
83
+ "globalOptions",
84
+ "commands"
85
+ ],
86
+ "properties": {
87
+ "whenToUse": {
88
+ "type": "string",
89
+ "description": "给 AI agent 的判断条件:什么场景该调用本插件。"
90
+ },
91
+ "globalOptions": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "required": [
96
+ "flags",
97
+ "description"
98
+ ],
99
+ "properties": {
100
+ "flags": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "description": {
105
+ "type": "string",
106
+ "minLength": 1
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "commands": {
112
+ "type": "array",
113
+ "items": {
114
+ "type": "object",
115
+ "required": [
116
+ "path",
117
+ "usage",
118
+ "description",
119
+ "arguments",
120
+ "options",
121
+ "output",
122
+ "exitCodes",
123
+ "safety"
124
+ ],
125
+ "properties": {
126
+ "path": {
127
+ "type": "array",
128
+ "minItems": 1,
129
+ "items": {
130
+ "type": "string",
131
+ "pattern": "^[a-z][a-z0-9-]*$"
132
+ }
133
+ },
134
+ "usage": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "description": {
139
+ "type": "string",
140
+ "minLength": 1
141
+ },
142
+ "arguments": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "object",
146
+ "required": [
147
+ "name",
148
+ "required",
149
+ "description"
150
+ ],
151
+ "properties": {
152
+ "name": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ },
156
+ "required": {
157
+ "type": "boolean"
158
+ },
159
+ "description": {
160
+ "type": "string",
161
+ "minLength": 1
162
+ }
163
+ }
164
+ }
165
+ },
166
+ "options": {
167
+ "type": "array",
168
+ "items": {
169
+ "type": "object",
170
+ "required": [
171
+ "flags",
172
+ "description"
173
+ ],
174
+ "properties": {
175
+ "flags": {
176
+ "type": "string",
177
+ "minLength": 1
178
+ },
179
+ "description": {
180
+ "type": "string",
181
+ "minLength": 1
182
+ }
183
+ }
184
+ }
185
+ },
186
+ "output": {
187
+ "type": "object",
188
+ "required": [
189
+ "format",
190
+ "description"
191
+ ],
192
+ "properties": {
193
+ "format": {
194
+ "type": "string",
195
+ "enum": [
196
+ "json",
197
+ "stdout",
198
+ "text"
199
+ ]
200
+ },
201
+ "description": {
202
+ "type": "string",
203
+ "minLength": 1
204
+ }
205
+ }
206
+ },
207
+ "exitCodes": {
208
+ "type": "object",
209
+ "description": "code -> 含义 映射。",
210
+ "additionalProperties": {
211
+ "type": "string"
212
+ }
213
+ },
214
+ "safety": {
215
+ "type": "array",
216
+ "items": {
217
+ "type": "string"
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ },
225
+ "skills": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "object",
229
+ "required": [
230
+ "id",
231
+ "path"
232
+ ],
233
+ "additionalProperties": false,
234
+ "properties": {
235
+ "id": {
236
+ "type": "string",
237
+ "pattern": "^[a-z][a-z0-9-]*$"
238
+ },
239
+ "path": {
240
+ "type": "string",
241
+ "pattern": "^skills/[a-z0-9-]+/SKILL\\.md$"
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
@@ -1,10 +1,10 @@
1
- ---
2
- name: v-cli
3
- description: 发现项目工具及技能,读取能力契约并执行结构化操作。
4
- ---
5
-
6
- # Vant 工具入口
7
-
8
- 先用 agent index、agent skills 和 capability describe 了解当前可用工具;操作约束按需读取 references/project.md 及目标工具的声明技能。命令参数以 describe 为准,不把仓库 AGENTS.md 当运行时规范。
9
-
10
- 项目初始化使用 project init;skill 随受管包发布,由 Vant 统一分发。默认安装不扫描或改写外部 Agent。失败保留明确状态,不循环重试;未知写入仅查询原执行身份,不能换 ID 重投。
1
+ ---
2
+ name: v-cli
3
+ description: 发现项目工具及技能,读取能力契约并执行结构化操作。
4
+ ---
5
+
6
+ # Vant 工具入口
7
+
8
+ 先用 agent index、agent skills 和 capability describe 了解当前可用工具;操作约束按需读取 references/project.md 及目标工具的声明技能。命令参数以 describe 为准,不把仓库 AGENTS.md 当运行时规范。
9
+
10
+ 项目初始化使用 project init;skill 随受管包发布,由 Vant 统一分发。默认安装不扫描或改写外部 Agent。失败保留明确状态,不循环重试;未知写入仅查询原执行身份,不能换 ID 重投。
@@ -18,7 +18,7 @@
18
18
 
19
19
  ### 核心约定(v-cli 本体)
20
20
 
21
- - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.6.2
21
+ - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.6.4
22
22
  - 命令分三类:builtin(内置)、local(~/.vant/tools/v-cli/commands/ 下的本地插件)、official(官方插件白名单);
23
23
  **命令集合以实际发现为准**:先运行 `v-cli agent index --json` 获取全部命令与 agent 元数据
24
24
  - 单个命令的完整元数据用 `v-cli agent describe <命令名> --json` 查看
@@ -45,7 +45,7 @@
45
45
 
46
46
  ### @kevlns/art-workshop — 命令 `v-cli art …`
47
47
 
48
- **版本**:0.5.0
48
+ **版本**:0.5.2
49
49
  **描述**:管理项目风格、参考图、图片生成、编辑和定版。支持本地 ComfyUI 与远程图片模型。
50
50
  **平台**:win32, linux, darwin
51
51
 
@@ -89,7 +89,7 @@
89
89
 
90
90
  ### @kevlns/xlmerge — 命令 `v-cli xlmerge …`
91
91
 
92
- **版本**:2.0.4
92
+ **版本**:2.0.5
93
93
  **描述**:在浏览器中审阅 Git 冲突工作簿的三方差异,校验后写回并提交合并结果。
94
94
  **平台**:darwin, linux, win32
95
95
 
package/v-cli.plugin.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "schemaVersion": 1,
3
- "package": "@kevlns/v-cli",
4
- "command": "v-cli",
5
- "bin": "v-cli",
6
- "description": "提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。",
7
- "platforms": [
8
- "win32",
9
- "linux",
10
- "darwin"
11
- ],
12
- "runtime": {
13
- "node": ">=20"
14
- },
15
- "environment": [],
16
- "skills": [
17
- {
18
- "id": "v-cli",
19
- "path": "skills/v-cli/SKILL.md"
20
- }
21
- ],
22
- "agent": {
23
- "whenToUse": "发现工具与能力,执行结构化操作",
24
- "globalOptions": [],
25
- "commands": []
26
- }
27
- }
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@kevlns/v-cli",
4
+ "command": "v-cli",
5
+ "bin": "v-cli",
6
+ "description": "提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。",
7
+ "platforms": [
8
+ "win32",
9
+ "linux",
10
+ "darwin"
11
+ ],
12
+ "runtime": {
13
+ "node": ">=20"
14
+ },
15
+ "environment": [],
16
+ "skills": [
17
+ {
18
+ "id": "v-cli",
19
+ "path": "skills/v-cli/SKILL.md"
20
+ }
21
+ ],
22
+ "agent": {
23
+ "whenToUse": "发现工具与能力,执行结构化操作",
24
+ "globalOptions": [],
25
+ "commands": []
26
+ }
27
+ }