@kevlns/v-cli 0.4.7 → 0.4.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/AGENTS.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  ### 核心约定(v-cli 本体)
20
20
 
21
- - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.4.7
21
+ - 环境要求 Node.js >= 20;v-cli 版本 @kevlns/v-cli@0.4.9
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` 查看
@@ -48,7 +48,7 @@
48
48
 
49
49
  ### @kevlns/art-workshop — 命令 `v-cli art …`
50
50
 
51
- **版本**:0.3.8
51
+ **版本**:0.3.11
52
52
  **描述**:管理项目风格、参考图、图片生成、编辑和定版。支持本地 ComfyUI 与远程图片模型。
53
53
  **平台**:win32, linux, darwin
54
54
 
package/dist/cli.mjs CHANGED
@@ -658,7 +658,7 @@ import { createHash, randomBytes } from "crypto";
658
658
  import { fileURLToPath as fileURLToPath2 } from "url";
659
659
 
660
660
  // src/version.ts
661
- var VERSION = "0.4.7";
661
+ var VERSION = "0.4.9";
662
662
 
663
663
  // src/core/agent-docs.ts
664
664
  var BUNDLED_DOCS_FILE = "AGENTS.md";
@@ -7237,12 +7237,18 @@ var definitions3 = [
7237
7237
  { id: "shutdown", command: ["shutdown"], fields: {}, network: true, global: true },
7238
7238
  { id: "doctor", command: ["doctor"], fields: { backend: identifier, start: { type: "boolean" } }, network: true, global: true },
7239
7239
  { id: "workflow-list", command: ["workflow", "list"], fields: {}, readonly: true, global: true },
7240
+ ...["guide", "list", "inspect", "verify", "register", "unregister"].map((action) => ({
7241
+ id: "environment-" + action,
7242
+ command: ["environment", action],
7243
+ global: true,
7244
+ fields: ["guide", "list"].includes(action) ? { guide: identifier } : action === "unregister" ? { directory: { type: "string", minLength: 1 } } : { directory: { type: "string", minLength: 1 }, endpoint: { type: "string", minLength: 1 }, guide: identifier },
7245
+ required: ["guide", "list"].includes(action) ? [] : action === "unregister" ? ["directory"] : ["directory", "endpoint"],
7246
+ readonly: !["register", "unregister"].includes(action),
7247
+ network: ["inspect", "verify", "register"].includes(action)
7248
+ })),
7240
7249
  { id: "project-upgrade", command: ["project", "upgrade"], fields: { dry: { type: "boolean" }, mapping: file } },
7241
7250
  { id: "job-template", command: ["job", "template"], fields: { kind: { type: "string", enum: ["generate", "edit"] }, core: identifier }, required: ["kind"], readonly: true },
7242
7251
  { id: "job-from-candidate", command: ["job", "from-candidate"], fields: { id: identifier, run: identifier, candidate: { type: "string", pattern: "^[a-f0-9]{64}$" } }, required: ["id", "run", "candidate"] },
7243
- { id: "deployment-plan", command: ["deployment", "plan"], fields: { directory: { type: "string", minLength: 1 }, endpoint: { type: "string", minLength: 1 } }, required: ["directory"], readonly: true },
7244
- { id: "deployment-start", command: ["deployment", "start"], fields: { plan: file, operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } }, required: ["plan", "operation"], network: true },
7245
- ...["status", "cancel", "recover"].map((action) => ({ id: "deployment-" + action, command: ["deployment", action], fields: action === "recover" ? { operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } } : { id: identifier }, required: [action === "recover" ? "operation" : "id"], readonly: action !== "cancel" })),
7246
7252
  { id: "run-recover", command: ["task", "recover"], fields: { operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } }, required: ["operation"], start: true },
7247
7253
  ...["style", "job"].flatMap(
7248
7254
  (kind) => ["create", "list", "read", "update", "derive", "discard"].map(
@@ -7276,6 +7282,9 @@ var definitions3 = [
7276
7282
  required: ["id", "revision"],
7277
7283
  start: true
7278
7284
  },
7285
+ { id: "style-export", command: ["style", "export"], fields: { id: identifier, out: file }, required: ["id", "out"] },
7286
+ { id: "style-import", command: ["style", "import"], fields: { file }, required: ["file"] },
7287
+ { id: "style-sources", command: ["style", "sources"], fields: { input: file }, required: ["input"], readonly: true, global: true },
7279
7288
  { id: "style-resolve", command: ["style", "resolve"], fields: objectFields, required: ["id", "revision", "input"] },
7280
7289
  {
7281
7290
  id: "style-adopt",
@@ -7510,7 +7519,7 @@ function createArtProvider(deps) {
7510
7519
  for (const key of d.positional ?? []) argv.push(resolveInsideProject(ctx.projectAnchor, String(input[key]), "art." + key).path);
7511
7520
  for (const [key, value] of Object.entries(input)) {
7512
7521
  if (key === "handle" || d.positional?.includes(key) || value === false) continue;
7513
- const actual = ["input", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
7522
+ const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
7514
7523
  ctx.projectAnchor,
7515
7524
  String(value),
7516
7525
  "art." + key
@@ -7536,7 +7545,7 @@ function createArtProvider(deps) {
7536
7545
  if (!output || typeof output !== "object") throw new Error();
7537
7546
  } catch {
7538
7547
  const processState = executionFromProcess(outcome);
7539
- const uncertain = d.start || d.control || d.id === "deployment-start" || processState.lifecycle === "unknown";
7548
+ const uncertain = d.start || d.control || processState.lifecycle === "unknown";
7540
7549
  return {
7541
7550
  execution: {
7542
7551
  ...processState,
package/dist/sdk.d.ts CHANGED
@@ -1150,7 +1150,7 @@ declare function redactArgv(argv: string[]): RedactionResult<string[]>;
1150
1150
  declare const REDACTION_PLACEHOLDER = "***redacted***";
1151
1151
 
1152
1152
  /** 版本常量:与 package.json 保持一致(有测试保证) */
1153
- declare const VERSION = "0.4.7";
1153
+ declare const VERSION = "0.4.9";
1154
1154
 
1155
1155
  /** 已发布命令清单与真实注册表逐项对照,不从命名猜测覆盖。 */
1156
1156
  declare function capabilityCoverage(registry: CapabilityRegistry): {
package/dist/sdk.mjs CHANGED
@@ -6278,12 +6278,18 @@ var definitions3 = [
6278
6278
  { id: "shutdown", command: ["shutdown"], fields: {}, network: true, global: true },
6279
6279
  { id: "doctor", command: ["doctor"], fields: { backend: identifier, start: { type: "boolean" } }, network: true, global: true },
6280
6280
  { id: "workflow-list", command: ["workflow", "list"], fields: {}, readonly: true, global: true },
6281
+ ...["guide", "list", "inspect", "verify", "register", "unregister"].map((action) => ({
6282
+ id: "environment-" + action,
6283
+ command: ["environment", action],
6284
+ global: true,
6285
+ fields: ["guide", "list"].includes(action) ? { guide: identifier } : action === "unregister" ? { directory: { type: "string", minLength: 1 } } : { directory: { type: "string", minLength: 1 }, endpoint: { type: "string", minLength: 1 }, guide: identifier },
6286
+ required: ["guide", "list"].includes(action) ? [] : action === "unregister" ? ["directory"] : ["directory", "endpoint"],
6287
+ readonly: !["register", "unregister"].includes(action),
6288
+ network: ["inspect", "verify", "register"].includes(action)
6289
+ })),
6281
6290
  { id: "project-upgrade", command: ["project", "upgrade"], fields: { dry: { type: "boolean" }, mapping: file } },
6282
6291
  { id: "job-template", command: ["job", "template"], fields: { kind: { type: "string", enum: ["generate", "edit"] }, core: identifier }, required: ["kind"], readonly: true },
6283
6292
  { id: "job-from-candidate", command: ["job", "from-candidate"], fields: { id: identifier, run: identifier, candidate: { type: "string", pattern: "^[a-f0-9]{64}$" } }, required: ["id", "run", "candidate"] },
6284
- { id: "deployment-plan", command: ["deployment", "plan"], fields: { directory: { type: "string", minLength: 1 }, endpoint: { type: "string", minLength: 1 } }, required: ["directory"], readonly: true },
6285
- { id: "deployment-start", command: ["deployment", "start"], fields: { plan: file, operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } }, required: ["plan", "operation"], network: true },
6286
- ...["status", "cancel", "recover"].map((action) => ({ id: "deployment-" + action, command: ["deployment", action], fields: action === "recover" ? { operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } } : { id: identifier }, required: [action === "recover" ? "operation" : "id"], readonly: action !== "cancel" })),
6287
6293
  { id: "run-recover", command: ["task", "recover"], fields: { operation: { type: "string", pattern: "^[a-z0-9-]{1,128}$" } }, required: ["operation"], start: true },
6288
6294
  ...["style", "job"].flatMap(
6289
6295
  (kind) => ["create", "list", "read", "update", "derive", "discard"].map(
@@ -6317,6 +6323,9 @@ var definitions3 = [
6317
6323
  required: ["id", "revision"],
6318
6324
  start: true
6319
6325
  },
6326
+ { id: "style-export", command: ["style", "export"], fields: { id: identifier, out: file }, required: ["id", "out"] },
6327
+ { id: "style-import", command: ["style", "import"], fields: { file }, required: ["file"] },
6328
+ { id: "style-sources", command: ["style", "sources"], fields: { input: file }, required: ["input"], readonly: true, global: true },
6320
6329
  { id: "style-resolve", command: ["style", "resolve"], fields: objectFields, required: ["id", "revision", "input"] },
6321
6330
  {
6322
6331
  id: "style-adopt",
@@ -6551,7 +6560,7 @@ function createArtProvider(deps) {
6551
6560
  for (const key of d.positional ?? []) argv.push(resolveInsideProject(ctx.projectAnchor, String(input[key]), "art." + key).path);
6552
6561
  for (const [key, value] of Object.entries(input)) {
6553
6562
  if (key === "handle" || d.positional?.includes(key) || value === false) continue;
6554
- const actual = ["input", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
6563
+ const actual = ["input", "file", "source", "plan", "out", "report", "mapping", ...d.id === "agent-init" ? ["directory"] : []].includes(key) ? resolveInsideProject(
6555
6564
  ctx.projectAnchor,
6556
6565
  String(value),
6557
6566
  "art." + key
@@ -6577,7 +6586,7 @@ function createArtProvider(deps) {
6577
6586
  if (!output || typeof output !== "object") throw new Error();
6578
6587
  } catch {
6579
6588
  const processState = executionFromProcess(outcome);
6580
- const uncertain = d.start || d.control || d.id === "deployment-start" || processState.lifecycle === "unknown";
6589
+ const uncertain = d.start || d.control || processState.lifecycle === "unknown";
6581
6590
  return {
6582
6591
  execution: {
6583
6592
  ...processState,
@@ -7383,7 +7392,7 @@ function createDefaultRegistry(options = {}) {
7383
7392
  }
7384
7393
 
7385
7394
  // src/version.ts
7386
- var VERSION = "0.4.7";
7395
+ var VERSION = "0.4.9";
7387
7396
 
7388
7397
  // src/capability-coverage.ts
7389
7398
  function capabilityCoverage(registry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevlns/v-cli",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "提供工具发现、插件路由、工程绑定、结构化能力执行和操作证据管理。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -56,7 +56,7 @@
56
56
  "toolbox"
57
57
  ],
58
58
  "dependencies": {
59
- "@kevlns/art-workshop": "0.3.8",
59
+ "@kevlns/art-workshop": "0.3.11",
60
60
  "@kevlns/figma-to-uprefab": "0.1.4",
61
61
  "@kevlns/ship-cli": "0.1.2",
62
62
  "@kevlns/u-cli-mod": "0.3.1",