@kevlns/v-cli 0.7.6 → 0.7.9

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/dist/cli.mjs CHANGED
@@ -765,7 +765,7 @@ function exportToolSkill(command, options) {
765
765
  }
766
766
 
767
767
  // src/version.ts
768
- var VERSION = "0.7.6";
768
+ var VERSION = "0.7.9";
769
769
 
770
770
  // src/commands/agent.ts
771
771
  function buildAgentIndex(builtin, local, official) {
package/dist/sdk.d.ts CHANGED
@@ -1207,7 +1207,16 @@ declare function redactArgv(argv: string[]): RedactionResult<string[]>;
1207
1207
  declare const REDACTION_PLACEHOLDER = "***redacted***";
1208
1208
 
1209
1209
  /** 版本常量:与 package.json 保持一致(有测试保证) */
1210
- declare const VERSION = "0.7.6";
1210
+ declare const VERSION = "0.7.9";
1211
+
1212
+ declare function syncManagedSkills({ dryRun, home, resolvePackage }?: {
1213
+ dryRun?: boolean;
1214
+ home?: string;
1215
+ resolvePackage?: (pkg: string) => string | undefined;
1216
+ }): Promise<{
1217
+ dryRun: boolean;
1218
+ names: string[];
1219
+ }>;
1211
1220
 
1212
1221
  /** 已发布命令清单与真实注册表逐项对照,不从命名猜测覆盖。 */
1213
1222
  declare function capabilityCoverage(registry: CapabilityRegistry): {
@@ -1226,4 +1235,4 @@ declare function capabilityCoverage(registry: CapabilityRegistry): {
1226
1235
  }[];
1227
1236
  };
1228
1237
 
1229
- export { type AcceptanceStatus, type ArtProviderDeps, type Artifact, type CapabilityDescriptor, CapabilityError, type CapabilityExecutionContext, type CapabilityImplementation, type CapabilityProvider, type CapabilityRegistration, CapabilityRegistrationError, CapabilityRegistry, type CapabilityRunRequest, type CapabilityRunResult, type CapabilityRuntimeDeps, type CapabilitySummary, type DefaultRegistryOptions, EXECUTION_HANDLE_VERSION, type ErrorCategory, type Evidence, type ExecutionHandle, type ExecutionHandleSeed, type ExecutionLifecycle, type ExecutionStatus, FIGMA_PROVIDER_ID, FIGMA_PROVIDER_VERSION, type FigmaBinding, type FigmaProviderDeps, type HandleVerification, type ImplementationOutcome, type InitProjectConfigResult, JSON_TYPES, type JsonSchema, type JsonSchemaArray, type JsonSchemaBoolean, type JsonSchemaNull, type JsonSchemaNumber, type JsonSchemaObject, type JsonSchemaString, type JsonSchemaType, type LoadProjectConfigResult, type LogRef, NodeProcessExecutor, OPERATIONS_RELATIVE, OperationExistsError, type OperationLogger, OperationStore, type OperationSummary, PROJECT_CLI_CONFIG_RELATIVE, PROJECT_STORAGE_ROOT_VERSION, PathSafetyError, type PreconditionChecker, type PreconditionDeclaration, type PreconditionOutcome, type ProcessExecutor, type ProcessInvocation, type ProcessOutcome, type ProjectBindingInfo, type ProjectCliConfig, type ProjectInspection, type ProjectRoot, type ProviderBindingContract, type ProviderBindingResolution, type ProviderBindingResolutionError, type ProviderBindingResolutionOk, type ProviderBindingResolveInput, type ProviderDefaultBinding, type ProviderInfo, type ProviderPathField, type ProviderSet, type ProviderState, type ProviderStatus, REDACTION_PLACEHOLDER, type ResolvedProviderBinding, type ResourceAuthorizationDecision, type ResourceAuthorizationRequest, type ResourceAuthorizer, type ResourceKind, type ResourceMode, type ResourceRequirement, type RetrySemantics, type SideEffectDeclaration, type SideEffectKind, type SideEffectRecord, type StructuredError, type ToolSkill, UNITY_PROVIDER_ID, UNITY_PROVIDER_VERSION, type UnityBinding, type UnityProviderDeps, type UnityTestMode, VANT_PROJECT_CONFIG_RELATIVE, VERSION, artBindingContract, buildDoctorArgv, buildExecArgv, buildExecutionHandle, canonicalize, capabilityCoverage, createArtProvider, createDefaultRegistry, createFigmaProvider, createUnityProvider, discoverToolSkills, executionFromProcess, exitCodeForResult, exportToolSkill, figmaBindingContract, formatResultJson, generateOperationId, initProjectConfig, inspectProject, loadProjectConfig, readRuntimeSkill, redactArgv, redactSecrets, renderProjectConfig, resolveBindings, resolveInsideProject, resolveProjectRoot, runCapability, splitSafeRelative, structuredError, toProviderSet, toStructuredError, unityBindingContract, validateCapability, validateOperationId, validateProjectCliConfig, validateProvider, validateSchemaDefinition, validateValue, verifyExecutionHandle };
1238
+ export { type AcceptanceStatus, type ArtProviderDeps, type Artifact, type CapabilityDescriptor, CapabilityError, type CapabilityExecutionContext, type CapabilityImplementation, type CapabilityProvider, type CapabilityRegistration, CapabilityRegistrationError, CapabilityRegistry, type CapabilityRunRequest, type CapabilityRunResult, type CapabilityRuntimeDeps, type CapabilitySummary, type DefaultRegistryOptions, EXECUTION_HANDLE_VERSION, type ErrorCategory, type Evidence, type ExecutionHandle, type ExecutionHandleSeed, type ExecutionLifecycle, type ExecutionStatus, FIGMA_PROVIDER_ID, FIGMA_PROVIDER_VERSION, type FigmaBinding, type FigmaProviderDeps, type HandleVerification, type ImplementationOutcome, type InitProjectConfigResult, JSON_TYPES, type JsonSchema, type JsonSchemaArray, type JsonSchemaBoolean, type JsonSchemaNull, type JsonSchemaNumber, type JsonSchemaObject, type JsonSchemaString, type JsonSchemaType, type LoadProjectConfigResult, type LogRef, NodeProcessExecutor, OPERATIONS_RELATIVE, OperationExistsError, type OperationLogger, OperationStore, type OperationSummary, PROJECT_CLI_CONFIG_RELATIVE, PROJECT_STORAGE_ROOT_VERSION, PathSafetyError, type PreconditionChecker, type PreconditionDeclaration, type PreconditionOutcome, type ProcessExecutor, type ProcessInvocation, type ProcessOutcome, type ProjectBindingInfo, type ProjectCliConfig, type ProjectInspection, type ProjectRoot, type ProviderBindingContract, type ProviderBindingResolution, type ProviderBindingResolutionError, type ProviderBindingResolutionOk, type ProviderBindingResolveInput, type ProviderDefaultBinding, type ProviderInfo, type ProviderPathField, type ProviderSet, type ProviderState, type ProviderStatus, REDACTION_PLACEHOLDER, type ResolvedProviderBinding, type ResourceAuthorizationDecision, type ResourceAuthorizationRequest, type ResourceAuthorizer, type ResourceKind, type ResourceMode, type ResourceRequirement, type RetrySemantics, type SideEffectDeclaration, type SideEffectKind, type SideEffectRecord, type StructuredError, type ToolSkill, UNITY_PROVIDER_ID, UNITY_PROVIDER_VERSION, type UnityBinding, type UnityProviderDeps, type UnityTestMode, VANT_PROJECT_CONFIG_RELATIVE, VERSION, artBindingContract, buildDoctorArgv, buildExecArgv, buildExecutionHandle, canonicalize, capabilityCoverage, createArtProvider, createDefaultRegistry, createFigmaProvider, createUnityProvider, discoverToolSkills, executionFromProcess, exitCodeForResult, exportToolSkill, figmaBindingContract, formatResultJson, generateOperationId, initProjectConfig, inspectProject, loadProjectConfig, readRuntimeSkill, redactArgv, redactSecrets, renderProjectConfig, resolveBindings, resolveInsideProject, resolveProjectRoot, runCapability, splitSafeRelative, structuredError, syncManagedSkills, toProviderSet, toStructuredError, unityBindingContract, validateCapability, validateOperationId, validateProjectCliConfig, validateProvider, validateSchemaDefinition, validateValue, verifyExecutionHandle };
package/dist/sdk.mjs CHANGED
@@ -740,8 +740,8 @@ function resolveInsideProject(project, relative, label) {
740
740
  return { path: project.root, realPath: project.realRoot };
741
741
  }
742
742
  const segments = splitSafeRelative(relative, label);
743
- const owned = segments.map((segment) => process.platform === "win32" ? segment.toLowerCase() : segment);
744
- const storage = owned[0] === ".vant" && owned[1] !== "rules" && !(owned.length === 2 && owned[1] === "rules.md");
743
+ const owned2 = segments.map((segment) => process.platform === "win32" ? segment.toLowerCase() : segment);
744
+ const storage = owned2[0] === ".vant" && owned2[1] !== "rules" && !(owned2.length === 2 && owned2[1] === "rules.md");
745
745
  const root2 = storage ? project.storageRoot : project.root;
746
746
  const realRoot = storage ? project.realStorageRoot : project.realRoot;
747
747
  const target = path.join(root2, ...segments);
@@ -4217,9 +4217,9 @@ var FAIL_COUNT_PATHS = [
4217
4217
  ];
4218
4218
  function extractFailCount(payload) {
4219
4219
  if (!isPlainObject7(payload)) return { count: null, source: null };
4220
- for (const path12 of FAIL_COUNT_PATHS) {
4220
+ for (const path13 of FAIL_COUNT_PATHS) {
4221
4221
  let current = payload;
4222
- for (const segment of path12) {
4222
+ for (const segment of path13) {
4223
4223
  if (!isPlainObject7(current)) {
4224
4224
  current = void 0;
4225
4225
  break;
@@ -4227,16 +4227,16 @@ function extractFailCount(payload) {
4227
4227
  current = current[segment];
4228
4228
  }
4229
4229
  if (typeof current === "number" && Number.isSafeInteger(current) && current >= 0) {
4230
- return { count: current, source: path12.join(".") };
4230
+ return { count: current, source: path13.join(".") };
4231
4231
  }
4232
4232
  }
4233
4233
  return { count: null, source: null };
4234
4234
  }
4235
4235
  function extractTotal(payload) {
4236
4236
  if (!isPlainObject7(payload)) return { total: null, source: null };
4237
- for (const path12 of [["summary", "total"]]) {
4237
+ for (const path13 of [["summary", "total"]]) {
4238
4238
  let current = payload;
4239
- for (const segment of path12) {
4239
+ for (const segment of path13) {
4240
4240
  if (!isPlainObject7(current)) {
4241
4241
  current = void 0;
4242
4242
  break;
@@ -4244,7 +4244,7 @@ function extractTotal(payload) {
4244
4244
  current = current[segment];
4245
4245
  }
4246
4246
  if (typeof current === "number" && Number.isSafeInteger(current) && current >= 0) {
4247
- return { total: current, source: path12.join(".") };
4247
+ return { total: current, source: path13.join(".") };
4248
4248
  }
4249
4249
  }
4250
4250
  return { total: null, source: null };
@@ -7665,7 +7665,98 @@ function exportToolSkill(command, options) {
7665
7665
  }
7666
7666
 
7667
7667
  // src/version.ts
7668
- var VERSION = "0.7.6";
7668
+ var VERSION = "0.7.9";
7669
+
7670
+ // src/core/managed-skills.ts
7671
+ import fs12 from "fs";
7672
+ import path12 from "path";
7673
+ import os2 from "os";
7674
+ import { createHash as createHash6, randomUUID as randomUUID2 } from "crypto";
7675
+ import { fileURLToPath as fileURLToPath2 } from "url";
7676
+ var digest = (data) => createHash6("sha256").update(JSON.stringify(data)).digest("hex");
7677
+ function owned(home, relative) {
7678
+ let current = home;
7679
+ for (const part of relative.split("/")) {
7680
+ current = path12.join(current, part);
7681
+ if (fs12.lstatSync(current, { throwIfNoEntry: false })?.isSymbolicLink())
7682
+ throw new Error("\u53D7\u7BA1\u6280\u80FD\u8DEF\u5F84\u5305\u542B\u94FE\u63A5\uFF1A" + current);
7683
+ }
7684
+ return current;
7685
+ }
7686
+ async function projectTool(home, skills, dryRun) {
7687
+ const first = skills[0];
7688
+ const files = skills.flatMap((skill) => skillFileHashes(path12.dirname(skill.path)).map((file2) => [skill.id + "/" + file2.path, file2.hash]));
7689
+ files.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
7690
+ const hash = digest(files);
7691
+ const relative = "managed/" + first.tool + "/" + hash;
7692
+ const target = owned(home, "skills/" + relative);
7693
+ function verify(directory) {
7694
+ if (digest(skillFileHashes(directory).map((file2) => [file2.path, file2.hash])) !== hash)
7695
+ throw new Error("\u53D7\u7BA1\u6280\u80FD\u5185\u5BB9\u6821\u9A8C\u5931\u8D25\uFF1A" + directory);
7696
+ }
7697
+ if (fs12.existsSync(target)) verify(target);
7698
+ else if (!dryRun) {
7699
+ fs12.mkdirSync(path12.dirname(target), { recursive: true });
7700
+ const staging = fs12.mkdtempSync(path12.join(path12.dirname(target), ".stage-"));
7701
+ try {
7702
+ for (const skill of skills) fs12.cpSync(path12.dirname(skill.path), path12.join(staging, skill.id), {
7703
+ recursive: true,
7704
+ filter: (source) => path12.basename(source) !== "__pycache__" && !source.endsWith(".pyc")
7705
+ });
7706
+ verify(staging);
7707
+ try {
7708
+ await retryFile(() => fs12.renameSync(staging, target));
7709
+ } catch (error) {
7710
+ if (!fs12.existsSync(target)) throw error;
7711
+ verify(target);
7712
+ }
7713
+ } finally {
7714
+ fs12.rmSync(staging, { recursive: true, force: true });
7715
+ }
7716
+ }
7717
+ return {
7718
+ id: first.tool,
7719
+ package: first.package,
7720
+ version: first.version,
7721
+ contentHash: hash,
7722
+ path: relative,
7723
+ skills: skills.map(({ id }) => ({ id, path: id + "/SKILL.md" }))
7724
+ };
7725
+ }
7726
+ async function syncManagedSkills({
7727
+ dryRun = false,
7728
+ home = process.env.VANT_HOME || path12.join(os2.homedir(), ".vant"),
7729
+ resolvePackage
7730
+ } = {}) {
7731
+ const installed = path12.dirname(fileURLToPath2(import.meta.url));
7732
+ const { skills } = discoverToolSkills({ resolvePackage: resolvePackage ?? ((pkg) => defaultResolvePackage(pkg, {
7733
+ cwd: installed,
7734
+ resolveFrom: process.env.V_CLI_PLUGIN_RESOLVE_FROM && path12.resolve(process.env.V_CLI_PLUGIN_RESOLVE_FROM)
7735
+ })) });
7736
+ const groups = /* @__PURE__ */ new Map();
7737
+ for (const skill of skills) {
7738
+ const group = groups.get(skill.tool) ?? [];
7739
+ group.push(skill);
7740
+ groups.set(skill.tool, group);
7741
+ }
7742
+ const file2 = owned(home, "state/tool-skills/index.json");
7743
+ const tools = [];
7744
+ for (const group of groups.values()) tools.push(await projectTool(home, group, dryRun));
7745
+ const previous = fs12.existsSync(file2) ? JSON.parse(fs12.readFileSync(file2, "utf8")) : { schemaVersion: 1, tools: [] };
7746
+ if (previous.schemaVersion !== 1 || !Array.isArray(previous.tools)) throw new Error("\u53D7\u7BA1\u6280\u80FD\u7D22\u5F15\u65E0\u6548\u3002");
7747
+ const next = { schemaVersion: 1, tools: [...tools, ...previous.tools.filter((tool) => !groups.has(tool.id))] };
7748
+ if (!dryRun && JSON.stringify(previous) !== JSON.stringify(next)) {
7749
+ fs12.mkdirSync(path12.dirname(file2), { recursive: true });
7750
+ const temporary = file2 + "." + randomUUID2();
7751
+ try {
7752
+ fs12.writeFileSync(temporary, JSON.stringify(next, null, 2) + "\n", { flag: "wx" });
7753
+ await retryFile(() => fs12.renameSync(temporary, file2));
7754
+ } finally {
7755
+ fs12.rmSync(temporary, { force: true });
7756
+ }
7757
+ }
7758
+ return { dryRun, names: skills.map((skill) => skill.id) };
7759
+ }
7669
7760
 
7670
7761
  // src/capability-coverage.ts
7671
7762
  function capabilityCoverage(registry) {
@@ -7748,6 +7839,7 @@ export {
7748
7839
  runCapability,
7749
7840
  splitSafeRelative,
7750
7841
  structuredError,
7842
+ syncManagedSkills,
7751
7843
  toProviderSet,
7752
7844
  toStructuredError,
7753
7845
  unityBindingContract,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevlns/v-cli",
3
- "version": "0.7.6",
3
+ "version": "0.7.9",
4
4
  "description": "提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,11 +58,11 @@
58
58
  "toolbox"
59
59
  ],
60
60
  "dependencies": {
61
- "@kevlns/art-workshop": "0.6.5",
62
- "@kevlns/figma-to-uprefab": "0.1.5",
63
- "@kevlns/ship-cli": "0.1.3",
64
- "@kevlns/u-cli-mod": "0.3.2",
65
- "@kevlns/xlmerge": "2.0.7",
61
+ "@kevlns/art-workshop": "0.6.8",
62
+ "@kevlns/figma-to-uprefab": "0.1.6",
63
+ "@kevlns/ship-cli": "0.1.4",
64
+ "@kevlns/u-cli-mod": "0.3.3",
65
+ "@kevlns/xlmerge": "2.0.8",
66
66
  "commander": "^12.1.0"
67
67
  },
68
68
  "devDependencies": {
@@ -5,6 +5,10 @@ description: 发现项目工具及技能,读取能力契约并执行结构化
5
5
 
6
6
  # Vant 工具入口
7
7
 
8
- 先用 agent index、agent skills 和 capability describe 了解当前可用工具;操作约束按需读取 references/project.md 及目标工具的声明技能。命令参数以 describe 为准,不把仓库 AGENTS.md 当运行时规范。
8
+ 在 Vant 会话的 shell 中,示例里的 `v-cli` 代表插件入口:PowerShell 写作 `node "$env:DSH_VANT_CLI"`,sh 写作 `node "$DSH_VANT_CLI"`。
9
+
10
+ 已明确目标时直接选择 `art`、`unity`、`figma`、`ship` 或 `xlmerge`。操作和参数对照[随包命令](references/project.md)。需要结构化的操作证据时用 `capability run`,单项契约用 `capability describe <id>`。
9
11
 
10
12
  项目初始化使用 `project init`,它按各工具清单将技能、参考资料和脚本同步到 Vant 的全局受管目录。按技能 ID 用 `agent docs` 读取单份指南。默认安装不扫描或改写外部 Agent。失败保留明确状态,不循环重试;未知写入仅查询原执行身份,不能换 ID 重投。
13
+
14
+ 美术制作通过 `art image`、`art video` 和 `art spine` 选择通道。`art spine describe` 提供拆件、骨架编译与取帧的输入示例;相同操作也可使用 `capability run art.spine-<操作>`。
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## 调用流程
8
8
 
9
- 先 doctor 和 agent index,再读取目标工具的 agent docs 与 describe。
9
+ 按任务选择下方路由和参数。陌生操作可定向读取单项契约;需要诊断环境时用 doctor。
10
10
 
11
11
  ## 调用规范
12
12
 
@@ -18,9 +18,8 @@
18
18
 
19
19
  ### 核心约定(v-cli 本体)
20
20
 
21
- - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.7.6
21
+ - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.7.9
22
22
  - 命令分三类:builtin(内置)、local(~/.vant/tools/v-cli/commands/ 下的本地插件)、official(官方插件白名单);
23
- **命令集合以实际发现为准**:先运行 `v-cli agent index --json` 获取全部命令与 agent 元数据
24
23
  - 单个命令的完整元数据用 `v-cli agent describe <命令名> --json` 查看
25
24
  - AI Agent 引导文档:`v-cli agent docs` 输出运行技能入口(`--json` 含 sha256/content);
26
25
  - 工程执行基座(内置命令):`v-cli project init|inspect` 管理工程根绑定 `.vant/config/v-cli.json`
@@ -31,73 +30,311 @@
31
30
  **执行状态与验收状态分离**——工具进程退出码 0 不等于业务通过,capability 退出码 0 只在验收 passed 时出现(1=执行/验收失败,2=未执行,3=已执行但验收 not-run 需按 followUp 轮询,4=已确认取消,5=结果未知);
32
31
  每次执行在 `<工程根>/.vant/state/operations/<operationId>/` 保存输入摘要、事件与结果证据(本地记录,不是任务队列;`--no-persist` 可关闭);
33
32
  **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;
33
+ - 默认结构化 provider 为 unity、figma、art、ship、xlmerge;按需用 `v-cli capability describe <id> --json` 读契约,受控 argv 调用不拼 shell;
35
34
  figma provider(`@kevlns/figma-to-uprefab`,离线):`figma.contract` 校验 staging 契约(roots>0 才通过)、`figma.doctor` 只读诊断——v-cli 注入无令牌托管配置,无网络、不碰凭据;
36
35
  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
36
  - 官方插件命令(`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,不在运行时自动安装。
37
+ - `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` 停止当前工作区关联任务,核验共享队列和进程身份后关闭服务。真实分析和生成按任务授权执行。
38
+ - `ship` 是随包官方插件(@kevlns/ship-cli),随 v-cli 安装并自动发现;Steam 和微信小游戏分别通过 steam 与 wx 路由发布。缺失时明确报告 missing,不在运行时自动安装。
42
39
  - 插件 `--help`/`--json` 等参数由插件自己消费;art 的模型登记、参数策略和执行回执归工具维护,v-cli 不复制目录。
43
40
  - 插件对 worktree 的写入/提交行为以插件清单 v-cli.plugin.json 的 `agent.safety` 为准:
44
41
  v-cli 不替插件做 diff/write-back/commit;**未经显式 flag 不得 push**
45
42
 
46
43
  ### @kevlns/art-workshop — 命令 `v-cli art …`
47
44
 
48
- **版本**:0.6.5
45
+ **版本**:0.6.8
49
46
  **描述**:管理图片、视频与 Spine 骨骼动画制作。
50
47
  **平台**:win32, linux, darwin
51
48
 
52
49
  **何时使用**:读取对象和版本,保存规则即更新当前风格。按规则生成样张,在图片卡片上定版后自动加入风格运行时参考;原始分主题参考只用于分析。生成先编译预演,未知运行只恢复原身份。
53
50
 
54
- **首次调用前必读**:`v-cli agent docs art`(插件包内 清单声明的 SKILL.md)
51
+ **操作指南**:`v-cli agent docs art`(插件包内 清单声明的 SKILL.md)
55
52
  **实时参数/命令**:`v-cli agent describe art --json`
56
53
 
54
+ - `v-cli art help` 显示命令入口与 v-cli 发现方式
55
+ - `v-cli art config path` 显示本地配置文件路径
56
+ - `v-cli art config show` 显示生效的本地配置和外部资源路径
57
+ - `v-cli art config init` 配置不存在时创建本地模板;已存在时读取,不覆盖
58
+ - `v-cli art refs guide [--project <id>]` 解释参考分类目录的用途与推荐图片样式
59
+ - `v-cli art agent index` 发现模块、工程、核心、任务与随包 skill
60
+ - `v-cli art agent docs` 输出全部随包模式、配置、工程、命令、诊断与核心指南
61
+ - `v-cli art agent export --host codex --directory <DIR> [--dry]` 显式导出技能到指定宿主目录;默认安装不导出
62
+ - `v-cli art list` 列出外部工作目录中的工程
63
+ - `v-cli art style show [--project <id>] [--core <id>]` 读取当前工程的指定冻结核心并验证完整性
64
+ - `v-cli art generate show [--project <id>] [--job <id>]` 读取文生图任务
65
+ - `v-cli art generate plan [--project <id>] [--job <id>] [--core <id>] [--out <file>]` 编译文生图计划,明确来源及真实请求
66
+ - `v-cli art generate run [--plan <file>] [--project <id>] [--job <id>] [--core <id>] [--item <id>] [--variant <id>] [--explore] [--offset <n>] [--limit <n>] [--dry]` 执行或预演文生图计划
67
+ - `v-cli art edit show [--project <id>] [--job <id>]` 读取图编辑任务
68
+ - `v-cli art edit plan [--project <id>] [--job <id>] [--core <id>] [--out <file>]` 编译图编辑计划,明确来源及真实请求
69
+ - `v-cli art edit run [--plan <file>] [--project <id>] [--job <id>] [--core <id>] [--item <id>] [--variant <id>] [--explore] [--offset <n>] [--limit <n>] [--dry]` 执行或预演图编辑计划
70
+ - `v-cli art check RUN` 核验运行计划、执行归属、产物与文件哈希;不进行人工评分
71
+ - `v-cli art compare BEFORE AFTER` 比较两份计划或执行记录的核心、执行配置和单体变更
72
+ - `v-cli art task list` 列出任务状态
73
+ - `v-cli art task status TASK` 查看单次任务及后端 prompt_id
74
+ - `v-cli art task wait TASK` 等待任务结束;超时不取消任务
75
+ - `v-cli art task cancel TASK` 取消单次任务并等待停止
76
+ - `v-cli art shutdown` 停止当前工作区关联任务,核验共享队列和进程身份后关闭服务
77
+ - `v-cli art config validate` 校验配置和 API workflow 的结构、连接与参数绑定
78
+ - `v-cli art doctor` 检测本地 ComfyUI 环境、节点与模型
79
+ - `v-cli art workflow list` 列出默认内置工作流及 API/UI 文件位置
80
+ - `v-cli art style create` 创建独立草稿对象
81
+ - `v-cli art style list` 列出工程对象及任务展示状态
82
+ - `v-cli art style read` 读取指定对象与版本
83
+ - `v-cli art style update` 保存风格名称、规则与配置;已保存风格可随时修改,更新当前执行版本并保留历史快照
84
+ - `v-cli art style derive` 派生独立草稿,保留结构化规则与独立参考;当前冻结证据标记沿用,不继承核心、执行或授权
85
+ - `v-cli art style discard` 确认空闲后丢弃草稿并清理所属资源
86
+ - `v-cli art job create` 创建独立草稿对象
87
+ - `v-cli art job list` 列出工程对象及任务展示状态
88
+ - `v-cli art job read` 读取指定对象与版本
89
+ - `v-cli art job update` 校验预期版本及空闲状态后更新对象
90
+ - `v-cli art job derive` 派生独立草稿,不继承执行、报告或定版
91
+ - `v-cli art job discard` 归档已停止的任务,保留配置、参考、收藏、图片与执行历史;可恢复到活跃列表
92
+ - `v-cli art job restore` 恢复已归档任务到活跃列表,保留原身份、配置与历史;不重新执行
93
+ - `v-cli art style recover` 恢复已授权采用事务
94
+ - `v-cli art project init` 新建版本 2 工程
95
+ - `v-cli art project upgrade` 显式一次性工程升级
96
+ - `v-cli art reference list` 查看对象参考
97
+ - `v-cli art reference import` 导入对象私有图片
98
+ - `v-cli art reference remove` 移除参考关联
99
+ - `v-cli art candidate list` 查看真实候选及完整性
100
+ - `v-cli art candidate favorites --project <id>` 网格收藏夹的数据来源,列出工程中仍可用的收藏图片及源任务身份
101
+ - `v-cli art candidate favorite --project <id> --job <id> --run <id> --candidate <id> --value <true|false>` 设置图片收藏状态,不修改任务需求、版本、定版或运行状态
102
+ - `v-cli art candidate finalizations` 查看资产定版
103
+ - `v-cli art candidate finalize` 按资产定版候选
104
+ - `v-cli art candidate delete` 删除候选及关联定版
105
+ - `v-cli art job analyze` 分析任务动态参考,仅转写指定用途,不继承静态风格
106
+ - `v-cli art task recover --project P --operation OPERATION` 仅从唯一原运行登记恢复身份;绝不重新执行
107
+ - `v-cli art reference update --project P --kind style --id ID --revision N --item REF --input PATCH.json` 更新参考分类、任务用途与说明,版本校验并使分析失效
108
+ - `v-cli art art job template --project <id> --kind <generate|edit> [--core <id>]` 只读返回工具权威的任务配置模板;生成任务使用已冻结核心的题材
109
+ - `v-cli art art job from-candidate --project <id> --id <task> --run <id> --candidate <id>` 将已停止批次中的可用图片导入私有底图,创建独立编辑草稿,不要求定版通过、不运行
110
+ - `v-cli art task resume TASK` 仅恢复原上游任务的查询和下载,绝不重新提交
111
+ - `v-cli art environment guide` 本地环境部署指南
112
+ - `v-cli art environment list` 本地环境目录发现
113
+ - `v-cli art environment prepare` 自动准备兼容 Python 运行时,保留已有环境
114
+ - `v-cli art environment inspect` 本地环境只读检测
115
+ - `v-cli art environment verify` 本地环境确定性验收
116
+ - `v-cli art environment register` 本地环境验收并登记
117
+ - `v-cli art environment unregister` 本地环境解除登记
118
+ - `v-cli art style export` 导出冻结风格及必要参考,不复制运行状态
119
+ - `v-cli art style import` 导入固定版本的共享冻结风格,保留原身份和版本
120
+ - `v-cli art style sources` 只读列出多个冻结风格来源并报告不可用目录和身份冲突
121
+ - `v-cli art conversation start --config <path> --input <path>` 编译并幂等提交会话出图,不创建项目任务
122
+ - `v-cli art conversation status --config <path> --session <id> --request <id>` 查询原运行与真实产物
123
+ - `v-cli art conversation cancel --config <path> --session <id> --request <id>` 取消原运行
124
+ - `v-cli art conversation resume --config <path> --session <id> --request <id>` 仅恢复原上游身份,不重新提交
125
+ - `v-cli art conversation close --config <path> --session <id> --request <id>` 宿主退出时停止本请求的worker,保留外部共享服务
126
+ - `v-cli art style migration-complete` 校验当前迁移草稿并完成配置迁移;input 为 {note},不分析、不生成或定版
127
+ - `v-cli art job migration-complete` 校验当前迁移草稿并完成配置迁移;input 为 {note},不分析、不生成或定版
128
+ - `v-cli art image help` 显示命令入口与 v-cli 发现方式
129
+ - `v-cli art image config path` 显示本地配置文件路径
130
+ - `v-cli art image config show` 显示生效的本地配置和外部资源路径
131
+ - `v-cli art image config init` 配置不存在时创建本地模板;已存在时读取,不覆盖
132
+ - `v-cli art image refs guide [--project <id>]` 解释参考分类目录的用途与推荐图片样式
133
+ - `v-cli art image agent index` 发现模块、工程、核心、任务与随包 skill
134
+ - `v-cli art image agent docs` 输出全部随包模式、配置、工程、命令、诊断与核心指南
135
+ - `v-cli art image agent export --host codex --directory <DIR> [--dry]` 显式导出技能到指定宿主目录;默认安装不导出
136
+ - `v-cli art image list` 列出外部工作目录中的工程
137
+ - `v-cli art image style show [--project <id>] [--core <id>]` 读取当前工程的指定冻结核心并验证完整性
138
+ - `v-cli art image generate show [--project <id>] [--job <id>]` 读取文生图任务
139
+ - `v-cli art image generate plan [--project <id>] [--job <id>] [--core <id>] [--out <file>]` 编译文生图计划,明确来源及真实请求
140
+ - `v-cli art image generate run [--plan <file>] [--project <id>] [--job <id>] [--core <id>] [--item <id>] [--variant <id>] [--explore] [--offset <n>] [--limit <n>] [--dry]` 执行或预演文生图计划
141
+ - `v-cli art image edit show [--project <id>] [--job <id>]` 读取图编辑任务
142
+ - `v-cli art image edit plan [--project <id>] [--job <id>] [--core <id>] [--out <file>]` 编译图编辑计划,明确来源及真实请求
143
+ - `v-cli art image edit run [--plan <file>] [--project <id>] [--job <id>] [--core <id>] [--item <id>] [--variant <id>] [--explore] [--offset <n>] [--limit <n>] [--dry]` 执行或预演图编辑计划
144
+ - `v-cli art image check RUN` 核验运行计划、执行归属、产物与文件哈希;不进行人工评分
145
+ - `v-cli art image compare BEFORE AFTER` 比较两份计划或执行记录的核心、执行配置和单体变更
146
+ - `v-cli art image task list` 列出任务状态
147
+ - `v-cli art image task status TASK` 查看单次任务及后端 prompt_id
148
+ - `v-cli art image task wait TASK` 等待任务结束;超时不取消任务
149
+ - `v-cli art image task cancel TASK` 取消单次任务并等待停止
150
+ - `v-cli art image shutdown` 停止当前工作区关联任务,核验共享队列和进程身份后关闭服务
151
+ - `v-cli art image config validate` 校验配置和 API workflow 的结构、连接与参数绑定
152
+ - `v-cli art image doctor` 检测本地 ComfyUI 环境、节点与模型
153
+ - `v-cli art image workflow list` 列出默认内置工作流及 API/UI 文件位置
154
+ - `v-cli art image style create` 创建独立草稿对象
155
+ - `v-cli art image style list` 列出工程对象及任务展示状态
156
+ - `v-cli art image style read` 读取指定对象与版本
157
+ - `v-cli art image style update` 校验预期版本及空闲状态后更新对象
158
+ - `v-cli art image style derive` 派生独立草稿,保留结构化规则与独立参考;当前冻结证据标记沿用,不继承核心、执行或授权
159
+ - `v-cli art image style discard` 确认空闲后丢弃草稿并清理所属资源
160
+ - `v-cli art image job create` 创建独立草稿对象
161
+ - `v-cli art image job list` 列出工程对象及任务展示状态
162
+ - `v-cli art image job read` 读取指定对象与版本
163
+ - `v-cli art image job update` 校验预期版本及空闲状态后更新对象
164
+ - `v-cli art image job derive` 派生独立草稿,不继承执行、报告或定版
165
+ - `v-cli art image job discard` 归档已停止的任务,保留配置、参考、收藏、图片与执行历史;可恢复到活跃列表
166
+ - `v-cli art image job restore` 恢复已归档任务到活跃列表,保留原身份、配置与历史;不重新执行
167
+ - `v-cli art image style recover` 恢复已授权采用事务
168
+ - `v-cli art image project init` 新建版本 2 工程
169
+ - `v-cli art image project upgrade` 显式一次性工程升级
170
+ - `v-cli art image reference list` 查看对象参考
171
+ - `v-cli art image reference import` 导入对象私有图片
172
+ - `v-cli art image reference remove` 移除参考关联
173
+ - `v-cli art image candidate list` 查看真实候选及完整性
174
+ - `v-cli art image candidate favorites --project <id>` 网格收藏夹的数据来源,列出工程中仍可用的收藏图片及源任务身份
175
+ - `v-cli art image candidate favorite --project <id> --job <id> --run <id> --candidate <id> --value <true|false>` 设置图片收藏状态,不修改任务需求、版本、定版或运行状态
176
+ - `v-cli art image candidate finalizations` 查看资产定版
177
+ - `v-cli art image candidate finalize` 按资产定版候选
178
+ - `v-cli art image candidate delete` 删除候选及关联定版
179
+ - `v-cli art image job analyze` 分析任务动态参考,仅转写指定用途,不继承静态风格
180
+ - `v-cli art image task recover --project P --operation OPERATION` 仅从唯一原运行登记恢复身份;绝不重新执行
181
+ - `v-cli art image reference update --project P --kind style --id ID --revision N --item REF --input PATCH.json` 更新参考分类、任务用途与说明,版本校验并使分析失效
182
+ - `v-cli art art job template --project <id> --kind <generate|edit> [--core <id>]` 只读返回工具权威的任务配置模板;生成任务使用已冻结核心的题材
183
+ - `v-cli art art job from-candidate --project <id> --id <task> --run <id> --candidate <id>` 将已停止批次中的可用图片导入私有底图,创建独立编辑草稿,不要求定版通过、不运行
184
+ - `v-cli art image task resume TASK` 仅恢复原上游任务的查询和下载,绝不重新提交
185
+ - `v-cli art image environment guide` 本地环境部署指南
186
+ - `v-cli art image environment list` 本地环境目录发现
187
+ - `v-cli art image environment prepare` 自动准备兼容 Python 运行时,保留已有环境
188
+ - `v-cli art image environment inspect` 本地环境只读检测
189
+ - `v-cli art image environment verify` 本地环境确定性验收
190
+ - `v-cli art image environment register` 本地环境验收并登记
191
+ - `v-cli art image environment unregister` 本地环境解除登记
192
+ - `v-cli art image style export` 导出冻结风格及必要参考,不复制运行状态
193
+ - `v-cli art image style import` 导入固定版本的共享冻结风格,保留原身份和版本
194
+ - `v-cli art image style sources` 只读列出多个冻结风格来源并报告不可用目录和身份冲突
195
+ - `v-cli art image conversation start --config <path> --input <path>` 编译并幂等提交会话出图,不创建项目任务
196
+ - `v-cli art image conversation status --config <path> --session <id> --request <id>` 查询原运行与真实产物
197
+ - `v-cli art image conversation cancel --config <path> --session <id> --request <id>` 取消原运行
198
+ - `v-cli art image conversation resume --config <path> --session <id> --request <id>` 仅恢复原上游身份,不重新提交
199
+ - `v-cli art image conversation close --config <path> --session <id> --request <id>` 宿主退出时停止本请求的worker,保留外部共享服务
200
+ - `v-cli art image style migration-complete` 校验当前迁移草稿并完成配置迁移;input 为 {note},不分析、不生成或定版
201
+ - `v-cli art image job migration-complete` 校验当前迁移草稿并完成配置迁移;input 为 {note},不分析、不生成或定版
202
+ - `v-cli art video describe [--input <file>]` 读取视频业务与输入契约
203
+ - `v-cli art video snapshot [--input <file>]` 读取视频项目快照
204
+ - `v-cli art video settings get [--input <file>]` 读取视频设置及CAS版本
205
+ - `v-cli art video settings save --input <file> --operation <id>` 按expectedRevision保存视频设置
206
+ - `v-cli art video settings presets h3 [--input <file>]` 读取H3视频模型预设
207
+ - `v-cli art video runtime status [--input <file>]` 核对本地视频运行时状态
208
+ - `v-cli art video runtime start [--input <file>] --operation <id>` 显式启动本地视频运行时
209
+ - `v-cli art video runtime stop [--input <file>] --operation <id>` 核对所有权后显式停止本地视频运行时
210
+ - `v-cli art video task list [--input <file>]` 视频通道 task list;输入由video describe公布的业务契约校验
211
+ - `v-cli art video task read --input <file>` 视频通道 task read;输入由video describe公布的业务契约校验
212
+ - `v-cli art video task create --input <file> --operation <id>` 视频通道 task create;输入由video describe公布的业务契约校验
213
+ - `v-cli art video task rename --input <file> --operation <id>` 视频通道 task rename;输入由video describe公布的业务契约校验
214
+ - `v-cli art video task archive --input <file> --operation <id>` 视频通道 task archive;输入由video describe公布的业务契约校验
215
+ - `v-cli art video operation create --input <file> --operation <id>` 视频通道 operation create;输入由video describe公布的业务契约校验
216
+ - `v-cli art video operation update --input <file> --operation <id>` 视频通道 operation update;输入由video describe公布的业务契约校验
217
+ - `v-cli art video operation rename --input <file> --operation <id>` 视频通道 operation rename;输入由video describe公布的业务契约校验
218
+ - `v-cli art video operation derive --input <file> --operation <id>` 视频通道 operation derive;输入由video describe公布的业务契约校验
219
+ - `v-cli art video operation validate --input <file>` 视频通道 operation validate;输入由video describe公布的业务契约校验
220
+ - `v-cli art video operation run --input <file> --operation <id>` 视频通道 operation run;输入由video describe公布的业务契约校验
221
+ - `v-cli art video operation resume --input <file> --operation <id>` 视频通道 operation resume;输入由video describe公布的业务契约校验
222
+ - `v-cli art video operation cancel --input <file> --operation <id>` 视频通道 operation cancel;输入由video describe公布的业务契约校验
223
+ - `v-cli art video operation accept --input <file> --operation <id>` 视频通道 operation accept;输入由video describe公布的业务契约校验
224
+ - `v-cli art video operation bind --input <file> --operation <id>` 视频通道 operation bind;输入由video describe公布的业务契约校验
225
+ - `v-cli art video script read --input <file>` 视频通道 script read;输入由video describe公布的业务契约校验
226
+ - `v-cli art video script update --input <file> --operation <id>` 视频通道 script update;输入由video describe公布的业务契约校验
227
+ - `v-cli art video script plan --input <file>` 视频通道 script plan;输入由video describe公布的业务契约校验
228
+ - `v-cli art video script apply --input <file> --operation <id>` 视频通道 script apply;输入由video describe公布的业务契约校验
229
+ - `v-cli art video film compose --input <file> --operation <id>` 视频通道 film compose;输入由video describe公布的业务契约校验
230
+ - `v-cli art video film refine --input <file> --operation <id>` 视频通道 film refine;输入由video describe公布的业务契约校验
231
+ - `v-cli art video film preview --input <file> --operation <id>` 视频通道 film preview;输入由video describe公布的业务契约校验
232
+ - `v-cli art video film adopt --input <file> --operation <id>` 视频通道 film adopt;输入由video describe公布的业务契约校验
233
+ - `v-cli art video film undo --input <file> --operation <id>` 视频通道 film undo;输入由video describe公布的业务契约校验
234
+ - `v-cli art video material list [--input <file>]` 视频通道 material list;输入由video describe公布的业务契约校验
235
+ - `v-cli art video material import --input <file> --operation <id>` 视频通道 material import;输入由video describe公布的业务契约校验
236
+ - `v-cli art video material import-file --input <file> --operation <id>` 视频通道 material import-file;输入由video describe公布的业务契约校验
237
+ - `v-cli art video material upload --input <file> --operation <id>` 视频通道 material upload;输入由video describe公布的业务契约校验
238
+ - `v-cli art video material hide --input <file> --operation <id>` 视频通道 material hide;输入由video describe公布的业务契约校验
239
+ - `v-cli art video image --input <file>` 视频通道 image;输入由video describe公布的业务契约校验
240
+ - `v-cli art video media status [--input <file>]` 视频通道 media status;输入由video describe公布的业务契约校验
241
+ - `v-cli art video execution status --operation <id>` 核对原CLI/宿主视频意图及回执
242
+ - `v-cli art style confirm --project ID --id STYLE --revision N` 确认保存的风格描述、约束和绘制规则并确定性编译契约
243
+ - `v-cli art style sample-job --project ID --id STYLE --revision N` 为已确认风格创建样张任务;支持自定义主体、验证目标、尺寸和生成方案,不自动生成
244
+ - `v-cli art style sample-select --project ID --id STYLE --revision N --job VALUE --run VALUE --candidate VALUE` 样张定版:将有效候选自动加入当前风格运行时参考;按图片内容哈希去重,重复操作不新增
245
+ - `v-cli art style sample-remove --project ID --id STYLE --revision N --sample VALUE` 取消样张定版并移除当前运行时参考;保留历史计划依赖的图片文件
246
+ - `v-cli art image style confirm --project ID --id STYLE --revision N` 确认保存的风格描述、约束和绘制规则并确定性编译契约
247
+ - `v-cli art image style sample-job --project ID --id STYLE --revision N` 为已确认风格创建样张任务;支持自定义主体、验证目标、尺寸和生成方案,不自动生成
248
+ - `v-cli art image style sample-select --project ID --id STYLE --revision N --job VALUE --run VALUE --candidate VALUE` 样张定版:将有效候选自动加入当前风格运行时参考;按图片内容哈希去重,重复操作不新增
249
+ - `v-cli art image style sample-remove --project ID --id STYLE --revision N --sample VALUE` 取消样张定版并移除当前运行时参考;保留历史计划依赖的图片文件
250
+ - `v-cli art spine describe` 读取 Spine 制作契约
251
+ - `v-cli art spine parts --input <file>` 按母版坐标拆件、蒙版补绘与拼合检查
252
+ - `v-cli art spine build --input <file>` 编译并校验骨架绑定、蒙皮、动作和图集
253
+ - `v-cli art spine capture --input <file>` 使用 WebGL 捕获指定姿势的 PNG 和对照图
57
254
  ### @kevlns/figma-to-uprefab — 命令 `v-cli figma …`
58
255
 
59
- **版本**:0.1.5
256
+ **版本**:0.1.6
60
257
  **描述**:将 Figma 标记画板导出为源数据和图片,通过 Unity 转换器生成 UGUI 预制体。
61
258
  **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
62
259
 
63
260
  **何时使用**:导出 Figma 标记画板,校验源清单与图片,在 Unity 中生成暂存 UGUI 预制体;不将产物直接转入运行时目录或写入 UIConfig。
64
261
 
65
- **首次调用前必读**:`v-cli agent docs figma`(插件包内 清单声明的 SKILL.md)
262
+ **操作指南**:`v-cli agent docs figma`(插件包内 清单声明的 SKILL.md)
66
263
  **实时参数/命令**:`v-cli agent describe figma --json`
67
264
 
265
+ - `v-cli figma setup <project> [options]` 将工程配置写入 ~/.config/figma-to-uprefab/config.json,不修改工程。
266
+ - `v-cli figma config init [options]` 创建工程配置,默认 uiSystem 为 UGUI,不写入令牌字段。
267
+ - `v-cli figma config validate [options]` 按 schema 校验工程配置、令牌和 uiSystem;环境变量令牌优先,非 UGUI 值拒绝执行。
268
+ - `v-cli figma config migrate [options]` 将指定工程配置转换到用户配置文件,并重命名来源文件为 *.migrated;不复制令牌。
269
+ - `v-cli figma export <fileKey> [options]` 从 Figma REST 导出源清单、节点 PNG 和根索引,只写入暂存目录。
270
+ - `v-cli figma contract [options]` 只读校验暂存目录、schema 和路径约束。
271
+ - `v-cli figma doctor [options]` 只读检查配置、暂存数据、Unity 转换器、编辑器与令牌状态。
272
+ - `v-cli figma agent docs [options]` 输出或导出随包 SKILL.md,不安装技能。
273
+ - `v-cli figma unity install [options]` 将 com.kevlns.figma-to-uprefab 安装到工程;支持预演、哈希回执、改动检测、原子替换与回滚。
274
+ - `v-cli figma unity status [options]` 检查转换器是否安装、文件是否与回执一致。
275
+ - `v-cli figma unity uninstall [options]` 移除转换器;安装内容被修改时拒绝执行,除非明确指定 --force。
276
+ - `v-cli figma build [options]` 通过 Unity 批处理运行 C# 转换器;未安装、回执缺失或编辑器占用时拒绝执行。
68
277
  ### @kevlns/ship-cli — 命令 `v-cli ship …`
69
278
 
70
- **版本**:0.1.3
279
+ **版本**:0.1.4
71
280
  **描述**:校验已构建的游戏产物,执行 Steam 上传、微信小游戏预览和开发版上传。
72
281
  **平台**:win32, linux, darwin
73
282
 
74
283
  **何时使用**:处理已构建游戏的 Steam 上传、微信小游戏预览与开发版上传;执行离线产物校验与环境检查。正式发布、提审和账号管理在平台后台完成,工具不构建引擎产物。
75
284
 
76
- **首次调用前必读**:`v-cli agent docs ship`(插件包内 清单声明的 SKILL.md)
285
+ **操作指南**:`v-cli agent docs ship`(插件包内 清单声明的 SKILL.md)
77
286
  **实时参数/命令**:`v-cli agent describe ship --json`
78
287
 
288
+ - `v-cli ship doctor [--json]` 离线检查配置、steamcmd、凭据模式、微信工程、私钥与 miniprogram-ci,不联网。
289
+ - `v-cli ship config init [--force] [--json]` 写入 ship.config.json 模板;覆盖现有文件必须指定 --force。
290
+ - `v-cli ship config validate [--json]` 校验配置结构与字段关系,包括 Depot 来源、产物与缓存目录隔离;失败返回稳定错误码及处理建议。
291
+ - `v-cli ship config show [--json]` 输出已解析路径并应用默认值的配置。
292
+ - `v-cli ship steam vdf [--desc <text>] [--set-live <branch>] [--preview] [--json]` 在 <buildOutput>/vdf 生成 App 和 Depot 的 VDF,不运行 steamcmd。
293
+ - `v-cli ship steam preview [--desc <text>] [--json]` 以 Preview=1 执行 steamcmd,生成本地日志和文件清单,不上传内容。
294
+ - `v-cli ship steam push [--desc <text>] [--set-live <branch>] [--json]` 上传 Depot 构建;可明确启用非 default 测试分支,正式分支在 Steamworks 后台操作。
295
+ - `v-cli ship steam test [--write-appid] [--json]` 离线检查 steam_appid.txt、Steam API 库、已配置可执行文件,并返回启动和构建页面地址。
296
+ - `v-cli ship steam open <target>` 在浏览器打开 Steamworks 的 builds 页面。
297
+ - `v-cli ship wx validate [--json]` 离线检查结构与过滤后的源码体积;源码估算不是实际编译包大小。
298
+ - `v-cli ship wx preview [--qr-out <file>] [--desc <text>] [--robot <n>] [--json]` 通过工程内的 miniprogram-ci 生成手机预览二维码,不创建版本记录。
299
+ - `v-cli ship wx push --version <text> [--desc <text>] [--robot <n>] [--json]` Upload a new dev version via miniprogram-ci after running the same offline validation as wx validate (a failed validation prints the complete report with per-item fix suggestions and blocks the upload). Creates a dev version ONLY: selecting 体验版, submitting for review, release and gray rollout are human steps in the MP backend.
300
+ - `v-cli ship wx open <target>` 在浏览器打开微信公众平台后台。
79
301
  ### @kevlns/u-cli-mod — 命令 `v-cli unity …`
80
302
 
81
- **版本**:0.3.2
303
+ **版本**:0.3.3
82
304
  **描述**:按 Unity Editor 精确版本定位工具链,校验和安装 com.unity.pipeline,并执行工程命令。
83
305
  **平台**:win32(仅 Windows 主机可用;非 Windows 上 v-cli 会拒绝路由)
84
306
 
85
307
  **何时使用**:用于 Windows 的 Unity 2022 工程诊断、精确版本路由、已校验工具下载、事务式安装及明确绑定工程的 Pipeline 调用。
86
308
 
87
- **首次调用前必读**:`v-cli agent docs unity`(插件包内 清单声明的 SKILL.md)
309
+ **操作指南**:`v-cli agent docs unity`(插件包内 清单声明的 SKILL.md)
88
310
  **实时参数/命令**:`v-cli agent describe unity --json`
89
311
 
312
+ - `v-cli unity doctor <project> [options]` 检查工程版本、路由、CLI 与 Pipeline 状态
313
+ - `v-cli unity routes [options]` 列出所有已配置的 Editor 精确路由
314
+ - `v-cli unity cli install [options]` 下载并校验固定版本的 Unity CLI(SHA-256 + Authenticode)
315
+ - `v-cli unity pipeline install <project> [options]` 按工程 Editor 版本事务式安装适配后的 com.unity.pipeline
316
+ - `v-cli unity setup <project> [options]` 依次执行 cli install 和 pipeline install。
317
+ - `v-cli unity exec <project> [options] -- <unity-cli-args...>` 调用路由 CLI 执行 Unity Pipeline 命令;--project-path 由工具统一绑定
318
+ - `v-cli unity cache clean [options]` 清理下载缓存与生成的适配包
90
319
  ### @kevlns/xlmerge — 命令 `v-cli xlmerge …`
91
320
 
92
- **版本**:2.0.7
321
+ **版本**:2.0.8
93
322
  **描述**:处理 Git 中的 Excel 三方冲突,支持 Agent 根据项目规则裁决并写回,也支持浏览器逐项审阅。
94
323
  **平台**:darwin, linux, win32
95
324
 
96
325
  **何时使用**:在发生合并的工区 detect → prepare,读取 manifest 中 base/ours/theirs 的差异与稳定 ID,按项目约束及变更意图裁决。仅将无法判断的业务项交控制源。用 apply --no-commit 写回并验证 Git 索引,按原任务完成提交或交付。用户选择可视化审阅时使用 launch。
97
326
 
98
- **首次调用前必读**:`v-cli agent docs xlmerge`(插件包内 清单声明的 SKILL.md)
327
+ **操作指南**:`v-cli agent docs xlmerge`(插件包内 清单声明的 SKILL.md)
99
328
  **实时参数/命令**:`v-cli agent describe xlmerge --json`
100
329
 
330
+ - `v-cli xlmerge --repo <repo> detect` 列出仓库中未解决的 .xlsx/.xlsm 冲突。
331
+ - `v-cli xlmerge --repo <repo> filter add <path>` 添加不区分大小写的工作簿路径后缀过滤项;匹配文件逐字节采用 Git stage 3。
332
+ - `v-cli xlmerge --repo <repo> prepare [--path <file>]` 生成按工作表组织的清单;命中整表过滤的文件跳过单元格分析。
333
+ - `v-cli xlmerge --repo <repo> resolve [--path <file>] [--no-browser]` 准备冲突并以前台阻塞模式启动本地审阅界面。
334
+ - `v-cli xlmerge --repo <repo> launch [--path <file>] [--no-browser]` 准备冲突,在后台启动审阅界面并返回地址。
335
+ - `v-cli xlmerge --repo <repo> apply --manifest <manifest.json> --decisions <decisions.json> [--no-commit] [--push] [--message <text>]` 按决策 JSON 写回,不启动界面。
336
+ - `v-cli xlmerge status --manifest <file>` 查询原审阅服务。
337
+ - `v-cli xlmerge cancel --manifest <file>` 请求停止原审阅服务并等待回执。
101
338
  ---
102
339
 
103
340
  所有清单字段的解释见 `schemas/v-cli-plugin.schema.json` 与 `v-cli agent describe` 输出。