@kevlns/v-cli 0.5.2 → 0.6.1

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.
@@ -1,144 +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": ["darwin", "linux", "win32"]
49
- }
50
- },
51
- "runtime": {
52
- "type": "object",
53
- "description": "运行时要求(node/python/os 等,自由形状)。"
54
- },
55
- "environment": {
56
- "type": "array",
57
- "items": {
58
- "type": "object",
59
- "required": ["name", "description"],
60
- "properties": {
61
- "name": { "type": "string", "minLength": 1 },
62
- "description": { "type": "string", "minLength": 1 }
63
- }
64
- }
65
- },
66
- "agent": {
67
- "type": "object",
68
- "required": ["whenToUse", "globalOptions", "commands"],
69
- "properties": {
70
- "whenToUse": {
71
- "type": "string",
72
- "description": "给 AI agent 的判断条件:什么场景该调用本插件。"
73
- },
74
- "globalOptions": {
75
- "type": "array",
76
- "items": {
77
- "type": "object",
78
- "required": ["flags", "description"],
79
- "properties": {
80
- "flags": { "type": "string", "minLength": 1 },
81
- "description": { "type": "string", "minLength": 1 }
82
- }
83
- }
84
- },
85
- "commands": {
86
- "type": "array",
87
- "items": {
88
- "type": "object",
89
- "required": ["path", "usage", "description", "arguments", "options", "output", "exitCodes", "safety"],
90
- "properties": {
91
- "path": {
92
- "type": "array",
93
- "minItems": 1,
94
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }
95
- },
96
- "usage": { "type": "string", "minLength": 1 },
97
- "description": { "type": "string", "minLength": 1 },
98
- "arguments": {
99
- "type": "array",
100
- "items": {
101
- "type": "object",
102
- "required": ["name", "required", "description"],
103
- "properties": {
104
- "name": { "type": "string", "minLength": 1 },
105
- "required": { "type": "boolean" },
106
- "description": { "type": "string", "minLength": 1 }
107
- }
108
- }
109
- },
110
- "options": {
111
- "type": "array",
112
- "items": {
113
- "type": "object",
114
- "required": ["flags", "description"],
115
- "properties": {
116
- "flags": { "type": "string", "minLength": 1 },
117
- "description": { "type": "string", "minLength": 1 }
118
- }
119
- }
120
- },
121
- "output": {
122
- "type": "object",
123
- "required": ["format", "description"],
124
- "properties": {
125
- "format": { "type": "string", "enum": ["json", "stdout", "text"] },
126
- "description": { "type": "string", "minLength": 1 }
127
- }
128
- },
129
- "exitCodes": {
130
- "type": "object",
131
- "description": "code -> 含义 映射。",
132
- "additionalProperties": { "type": "string" }
133
- },
134
- "safety": {
135
- "type": "array",
136
- "items": { "type": "string" }
137
- }
138
- }
139
- }
140
- }
141
- }
142
- }
143
- }
144
- }
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,123 +1,10 @@
1
- ---
2
- name: v-cli
3
- description: 使用 v-cli 发现和执行工程能力,路由 Unity、Figma、配置表冲突、游戏交付与美术工坊工具。
4
- ---
5
-
6
- # Vant 工具命令入口 Agent 规范
7
-
8
- ## 定位
9
-
10
- 发现工具、绑定工程、执行结构化能力并保存操作证据。
11
-
12
- ## 调用流程
13
-
14
- 先 doctor 和 agent index,再读取目标工具的 agent docs 与 describe。
15
-
16
- ## 调用规范
17
-
18
-
19
- <!-- v-cli-agents:generated -->
20
-
21
- > 本文件由 `scripts/generate-agents.mjs` 自动生成,请勿手改。
22
- > 修改插件清单后运行 `npm run generate:agents` 重新生成,`npm run check:agents` 校验漂移。
23
-
24
- ### 核心约定(v-cli 本体)
25
-
26
- - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.4.7
27
- - 命令分三类:builtin(内置)、local(~/.vant/tools/v-cli/commands/ 下的本地插件)、official(官方插件白名单);
28
- **命令集合以实际发现为准**:先运行 `v-cli agent index --json` 获取全部命令与 agent 元数据
29
- - 单个命令的完整元数据用 `v-cli agent describe <命令名> --json` 查看
30
- - AI Agent 引导文档:`v-cli agent docs` 输出本文件原文(`--json` 含 sha256/content);
31
- `v-cli agent init .` 把它写入工作区(已存在默认拒绝,`--force` 覆盖,`--dry-run` 预览;符号链接目标 fail-closed);
32
- 同时把随包发布的 v-cli skill(skills/v-cli)装配到 <目录> 下匹配的 agent 技能目录(如 .claude/skills、.agent/skill、AgentHome/skills 等),无匹配则跳过;
33
- 随包版本是规范唯一权威:同名 SKILL.md 一律按随包版本刷新(本地修改会被覆盖并提示);随包没有的文件(项目扩展,如 PROJECT.md)默认保留,`--force` 时完全同步
34
- - 工程执行基座(内置命令):`v-cli project init|inspect` 管理工程根绑定 `.vant/config/v-cli.json`
35
- (该文件只写 CLI 能力/适配器绑定;角色/workflow/项目组织属于 Vant 的 `.vant/config/project.json`,v-cli 既不读也不写);
36
- `v-cli capability list|describe|coverage|run` 列出/查看/执行结构化 capability(稳定 id、输入输出 schema、前置条件、声明的副作用、资源需求、重试语义)
37
- - 所有官方命令都登记能力映射;`capability coverage --json` 检查遗漏。内核执行跨进程共享/独占资源租约;权限授权与资源互斥分开,后台审阅进程确认退出前继续占用资源。
38
- - capability run 的语义:工程根用 `--project` 显式锚定;输入由配置绑定(不接受 projectPath 等覆盖);
39
- **执行状态与验收状态分离**——工具进程退出码 0 不等于业务通过,capability 退出码 0 只在验收 passed 时出现(1=执行/验收失败,2=未执行,3=已执行但验收 not-run 需按 followUp 轮询,4=已确认取消,5=结果未知);
40
- 每次执行在 `<工程根>/.vant/state/operations/<operationId>/` 保存输入摘要、事件与结果证据(本地记录,不是任务队列;`--no-persist` 可关闭);
41
- **lifecycle 是任务级六态**(accepted/running/completed/failed/cancelled/unknown;unknown=不可解释/不可知,绝不升级);异步触发在结果 `handle` 中返回可序列化执行句柄——查询/取消类能力以 `input.handle` 传入并用内核校验(落盘证据回读,失败明确拒绝不回退最近任务);Unity 后端提供 runId:`unity.compile`/`unity.test-start` 句柄的 backendTaskId=runId,用 `unity.compile-query`/`unity.test-query`/`unity.test-cancel-run` 按句柄关联查询/定向取消(关联失效=后端 unknown_run,明确 failed 不采信其他任务记录)
42
- - 默认结构化 provider 为 unity、figma、art、ship、xlmerge;先 `v-cli capability describe <id> --json` 读契约,受控 argv 调用不拼 shell;
43
- figma provider(`@kevlns/figma-to-uprefab`,离线):`figma.contract` 校验 staging 契约(roots>0 才通过)、`figma.doctor` 只读诊断——v-cli 注入无令牌托管配置,无网络、不碰凭据;
44
- exec 类能力默认自动跑一次 doctor 核对就绪判据(不得跳过);`unity.compile`/`unity.test-start` 是异步触发,只报告 accepted,按原 handle 轮询 `unity.compile-query`/`unity.test-query`;无参 status 只观察当前/最近槽位;测试 completed、有效非零报告且全部用例通过才 passed
45
- - **首调规范**:首次调用任何 official 插件命令前,必须先运行 `v-cli agent docs <命令名>`,
46
- 掌握该插件包内 `AGENTS.md`;使用规范、快速流程与禁止事项以插件 AGENTS.md 为准。
47
- - 官方插件命令(`v-cli xlmerge …`、`v-cli unity …`、`v-cli figma …`、`v-cli ship …`、`v-cli art …`)在子进程中运行(stdio 继承):v-cli 只做路由,不解析或改写插件输出。
48
- - `art` 是随包美术工坊插件;先读 `v-cli agent docs art`,用 `v-cli art config show`、`v-cli art agent index` 和 `v-cli art config validate` 确认工程、核心及远程/本地后端。本地执行前用 `workflow list` 和 `doctor` 检查工作流与环境;任务控制用 `task list/status/wait/cancel/recover/resume`;resume 只查询原上游与下载。`shutdown` 停止当前工作区关联任务,核验共享队列和进程身份后关闭服务。真实分析和生成按任务授权执行。
49
- - `ship` 是随包官方插件(@kevlns/ship-cli),随 v-cli 安装并自动发现;先运行 `v-cli agent docs ship`、`v-cli ship doctor --json`,再按 Steam / 微信小游戏流程执行。缺失时明确报告 missing,不在运行时自动安装。
50
- - 插件 `--help`/`--json` 等参数由插件自己消费;art 的模型登记、参数策略和执行回执归工具维护,v-cli 不复制目录。
51
- - 插件对 worktree 的写入/提交行为以插件清单 v-cli.plugin.json 的 `agent.safety` 为准:
52
- v-cli 不替插件做 diff/write-back/commit;**未经显式 flag 不得 push**
53
-
54
- ### @kevlns/art-workshop — 命令 `v-cli art …`
55
-
56
- **版本**:0.3.8
57
- **描述**:管理项目风格、参考图、图片生成、编辑和定版。支持本地 ComfyUI 与远程图片模型。
58
- **平台**:win32, linux, darwin
59
-
60
- **何时使用**:先读取对象和版本,编译并预演后在授权范围后台执行。风格分析有独立运行身份,采用检查报告来源;任务空闲才可编辑,停止未确认保留资源。生成完成仅做技术完整性校验,用户定版,不要求人工三维评分。
61
-
62
- **首次调用前必读**:`v-cli agent docs art`(插件包内 AGENTS.md 规范正本)
63
- **实时参数/命令**:`v-cli agent describe art --json`
64
-
65
- ### @kevlns/figma-to-uprefab — 命令 `v-cli figma …`
66
-
67
- **版本**:0.1.4
68
- **描述**:将 Figma 标记画板导出为源数据和图片,通过 Unity 转换器生成 UGUI 预制体。
69
- **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
70
-
71
- **何时使用**:导出 Figma 标记画板,校验源清单与图片,在 Unity 中生成暂存 UGUI 预制体;不将产物直接转入运行时目录或写入 UIConfig。
72
-
73
- **首次调用前必读**:`v-cli agent docs figma`(插件包内 AGENTS.md 规范正本)
74
- **实时参数/命令**:`v-cli agent describe figma --json`
75
-
76
- ### @kevlns/ship-cli — 命令 `v-cli ship …`
77
-
78
- **版本**:0.1.2
79
- **描述**:校验已构建的游戏产物,执行 Steam 上传、微信小游戏预览和开发版上传。
80
- **平台**:win32, linux, darwin
81
-
82
- **何时使用**:处理已构建游戏的 Steam 上传、微信小游戏预览与开发版上传;执行离线产物校验与环境检查。正式发布、提审和账号管理在平台后台完成,工具不构建引擎产物。
83
-
84
- **首次调用前必读**:`v-cli agent docs ship`(插件包内 AGENTS.md 规范正本)
85
- **实时参数/命令**:`v-cli agent describe ship --json`
86
-
87
- ### @kevlns/u-cli-mod — 命令 `v-cli unity …`
88
-
89
- **版本**:0.3.1
90
- **描述**:按 Unity Editor 精确版本定位工具链,校验和安装 com.unity.pipeline,并执行工程命令。
91
- **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
92
-
93
- **何时使用**:用于 Windows 的 Unity 2022 工程诊断、精确版本路由、已校验工具下载、事务式安装及明确绑定工程的 Pipeline 调用。
94
-
95
- **首次调用前必读**:`v-cli agent docs unity`(插件包内 AGENTS.md 规范正本)
96
- **实时参数/命令**:`v-cli agent describe unity --json`
97
-
98
- ### @kevlns/xlmerge — 命令 `v-cli xlmerge …`
99
-
100
- **版本**:2.0.4
101
- **描述**:在浏览器中审阅 Git 冲突工作簿的三方差异,校验后写回并提交合并结果。
102
- **平台**:darwin, linux, win32
103
-
104
- **何时使用**:When a user asks to resolve Git merge conflicts in .xlsx/.xlsm planning or configuration tables (策划表/配置表冲突): run detect first; when reviewCount > 0 run launch and give the returned url to the user. Configured auto-theirs filters may resolve and commit matched generated workbooks without opening the UI. Do not inspect workbook cells or summarize diffs yourself; the resolver owns diff, choices, write-back and commit.
105
-
106
- **首次调用前必读**:`v-cli agent docs xlmerge`(插件包内 AGENTS.md 规范正本)
107
- **实时参数/命令**:`v-cli agent describe xlmerge --json`
108
-
109
- ---
110
-
111
- 所有清单字段的解释见 `schemas/v-cli-plugin.schema.json` 与 `v-cli agent describe` 输出。
112
-
113
- ## 结果验证
114
-
115
- 执行状态、任务生命周期和业务验收分别判断;未知结果不能视为成功。
116
-
117
- ## 参考资料
118
-
119
- 使用 v-cli --help 与 v-cli agent docs 查阅使用规范。
120
-
121
- ## 许可与版权
122
-
123
- MIT。Copyright © 2026 Vant。
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 重投。
@@ -0,0 +1,115 @@
1
+ # Vant 工具命令入口 Agent 规范
2
+
3
+ ## 定位
4
+
5
+ 发现工具、绑定工程、执行结构化能力并保存操作证据。
6
+
7
+ ## 调用流程
8
+
9
+ 先 doctor 和 agent index,再读取目标工具的 agent docs 与 describe。
10
+
11
+ ## 调用规范
12
+
13
+
14
+ <!-- v-cli-agents:generated -->
15
+
16
+ > 本文件由 `scripts/generate-agents.mjs` 自动生成,请勿手改。
17
+ > 修改插件清单后运行 `npm run generate:agents` 重新生成,`npm run check:agents` 校验漂移。
18
+
19
+ ### 核心约定(v-cli 本体)
20
+
21
+ - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.6.1
22
+ - 命令分三类:builtin(内置)、local(~/.vant/tools/v-cli/commands/ 下的本地插件)、official(官方插件白名单);
23
+ **命令集合以实际发现为准**:先运行 `v-cli agent index --json` 获取全部命令与 agent 元数据
24
+ - 单个命令的完整元数据用 `v-cli agent describe <命令名> --json` 查看
25
+ - AI Agent 引导文档:`v-cli agent docs` 输出运行技能入口(`--json` 含 sha256/content);
26
+ - 工程执行基座(内置命令):`v-cli project init|inspect` 管理工程根绑定 `.vant/config/v-cli.json`
27
+ (该文件只写 CLI 能力/适配器绑定;角色/workflow/项目组织属于 Vant 的 `.vant/config/project.json`,v-cli 既不读也不写);
28
+ `v-cli capability list|describe|coverage|run` 列出/查看/执行结构化 capability(稳定 id、输入输出 schema、前置条件、声明的副作用、资源需求、重试语义)
29
+ - 所有官方命令都登记能力映射;`capability coverage --json` 检查遗漏。内核执行跨进程共享/独占资源租约;权限授权与资源互斥分开,后台审阅进程确认退出前继续占用资源。
30
+ - capability run 的语义:工程根用 `--project` 显式锚定;输入由配置绑定(不接受 projectPath 等覆盖);
31
+ **执行状态与验收状态分离**——工具进程退出码 0 不等于业务通过,capability 退出码 0 只在验收 passed 时出现(1=执行/验收失败,2=未执行,3=已执行但验收 not-run 需按 followUp 轮询,4=已确认取消,5=结果未知);
32
+ 每次执行在 `<工程根>/.vant/state/operations/<operationId>/` 保存输入摘要、事件与结果证据(本地记录,不是任务队列;`--no-persist` 可关闭);
33
+ **lifecycle 是任务级六态**(accepted/running/completed/failed/cancelled/unknown;unknown=不可解释/不可知,绝不升级);异步触发在结果 `handle` 中返回可序列化执行句柄——查询/取消类能力以 `input.handle` 传入并用内核校验(落盘证据回读,失败明确拒绝不回退最近任务);Unity 后端提供 runId:`unity.compile`/`unity.test-start` 句柄的 backendTaskId=runId,用 `unity.compile-query`/`unity.test-query`/`unity.test-cancel-run` 按句柄关联查询/定向取消(关联失效=后端 unknown_run,明确 failed 不采信其他任务记录)
34
+ - 默认结构化 provider 为 unity、figma、art、ship、xlmerge;先 `v-cli capability describe <id> --json` 读契约,受控 argv 调用不拼 shell;
35
+ figma provider(`@kevlns/figma-to-uprefab`,离线):`figma.contract` 校验 staging 契约(roots>0 才通过)、`figma.doctor` 只读诊断——v-cli 注入无令牌托管配置,无网络、不碰凭据;
36
+ exec 类能力默认自动跑一次 doctor 核对就绪判据(不得跳过);`unity.compile`/`unity.test-start` 是异步触发,只报告 accepted,按原 handle 轮询 `unity.compile-query`/`unity.test-query`;无参 status 只观察当前/最近槽位;测试 completed、有效非零报告且全部用例通过才 passed
37
+ - **首调规范**:首次调用任何 official 插件命令前,必须先运行 `v-cli agent docs <命令名>`,
38
+ 掌握该插件的声明技能;使用规范、快速流程与禁止事项以插件技能为准。
39
+ - 官方插件命令(`v-cli xlmerge …`、`v-cli unity …`、`v-cli figma …`、`v-cli ship …`、`v-cli art …`)在子进程中运行(stdio 继承):v-cli 只做路由,不解析或改写插件输出。
40
+ - `art` 是随包美术工坊插件;先读 `v-cli agent docs art`,用 `v-cli art config show`、`v-cli art agent index` 和 `v-cli art config validate` 确认工程、核心及远程/本地后端。本地执行前用 `workflow list` 和 `doctor` 检查工作流与环境;任务控制用 `task list/status/wait/cancel/recover/resume`;resume 只查询原上游与下载。`shutdown` 停止当前工作区关联任务,核验共享队列和进程身份后关闭服务。真实分析和生成按任务授权执行。
41
+ - `ship` 是随包官方插件(@kevlns/ship-cli),随 v-cli 安装并自动发现;先运行 `v-cli agent docs ship`、`v-cli ship doctor --json`,再按 Steam / 微信小游戏流程执行。缺失时明确报告 missing,不在运行时自动安装。
42
+ - 插件 `--help`/`--json` 等参数由插件自己消费;art 的模型登记、参数策略和执行回执归工具维护,v-cli 不复制目录。
43
+ - 插件对 worktree 的写入/提交行为以插件清单 v-cli.plugin.json 的 `agent.safety` 为准:
44
+ v-cli 不替插件做 diff/write-back/commit;**未经显式 flag 不得 push**
45
+
46
+ ### @kevlns/art-workshop — 命令 `v-cli art …`
47
+
48
+ **版本**:0.5.0
49
+ **描述**:管理项目风格、参考图、图片生成、编辑和定版。支持本地 ComfyUI 与远程图片模型。
50
+ **平台**:win32, linux, darwin
51
+
52
+ **何时使用**:先读取对象和版本,编译并预演后在授权范围后台执行。风格分析有独立运行身份,采用检查报告来源;任务空闲才可编辑,停止未确认保留资源。生成完成仅做技术完整性校验,用户定版,不要求人工三维评分。
53
+
54
+ **首次调用前必读**:`v-cli agent docs art`(插件包内 清单声明的 SKILL.md)
55
+ **实时参数/命令**:`v-cli agent describe art --json`
56
+
57
+ ### @kevlns/figma-to-uprefab — 命令 `v-cli figma …`
58
+
59
+ **版本**:0.1.4
60
+ **描述**:将 Figma 标记画板导出为源数据和图片,通过 Unity 转换器生成 UGUI 预制体。
61
+ **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
62
+
63
+ **何时使用**:导出 Figma 标记画板,校验源清单与图片,在 Unity 中生成暂存 UGUI 预制体;不将产物直接转入运行时目录或写入 UIConfig。
64
+
65
+ **首次调用前必读**:`v-cli agent docs figma`(插件包内 清单声明的 SKILL.md)
66
+ **实时参数/命令**:`v-cli agent describe figma --json`
67
+
68
+ ### @kevlns/ship-cli — 命令 `v-cli ship …`
69
+
70
+ **版本**:0.1.2
71
+ **描述**:校验已构建的游戏产物,执行 Steam 上传、微信小游戏预览和开发版上传。
72
+ **平台**:win32, linux, darwin
73
+
74
+ **何时使用**:处理已构建游戏的 Steam 上传、微信小游戏预览与开发版上传;执行离线产物校验与环境检查。正式发布、提审和账号管理在平台后台完成,工具不构建引擎产物。
75
+
76
+ **首次调用前必读**:`v-cli agent docs ship`(插件包内 清单声明的 SKILL.md)
77
+ **实时参数/命令**:`v-cli agent describe ship --json`
78
+
79
+ ### @kevlns/u-cli-mod — 命令 `v-cli unity …`
80
+
81
+ **版本**:0.3.1
82
+ **描述**:按 Unity Editor 精确版本定位工具链,校验和安装 com.unity.pipeline,并执行工程命令。
83
+ **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
84
+
85
+ **何时使用**:用于 Windows 的 Unity 2022 工程诊断、精确版本路由、已校验工具下载、事务式安装及明确绑定工程的 Pipeline 调用。
86
+
87
+ **首次调用前必读**:`v-cli agent docs unity`(插件包内 清单声明的 SKILL.md)
88
+ **实时参数/命令**:`v-cli agent describe unity --json`
89
+
90
+ ### @kevlns/xlmerge — 命令 `v-cli xlmerge …`
91
+
92
+ **版本**:2.0.4
93
+ **描述**:在浏览器中审阅 Git 冲突工作簿的三方差异,校验后写回并提交合并结果。
94
+ **平台**:darwin, linux, win32
95
+
96
+ **何时使用**:When a user asks to resolve Git merge conflicts in .xlsx/.xlsm planning or configuration tables (策划表/配置表冲突): run detect first; when reviewCount > 0 run launch and give the returned url to the user. Configured auto-theirs filters may resolve and commit matched generated workbooks without opening the UI. Do not inspect workbook cells or summarize diffs yourself; the resolver owns diff, choices, write-back and commit.
97
+
98
+ **首次调用前必读**:`v-cli agent docs xlmerge`(插件包内 清单声明的 SKILL.md)
99
+ **实时参数/命令**:`v-cli agent describe xlmerge --json`
100
+
101
+ ---
102
+
103
+ 所有清单字段的解释见 `schemas/v-cli-plugin.schema.json` 与 `v-cli agent describe` 输出。
104
+
105
+ ## 结果验证
106
+
107
+ 执行状态、任务生命周期和业务验收分别判断;未知结果不能视为成功。
108
+
109
+ ## 参考资料
110
+
111
+ 工具包 README.md 与 docs/documentation.md;命令参数以实时 --help 为准。
112
+
113
+ ## 许可与版权
114
+
115
+ MIT。Copyright © 2026 Vant。