@lingjingai/lj-awb-cli 0.4.0 → 0.4.2

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/README.md CHANGED
@@ -63,6 +63,18 @@ lj-awb auth verify
63
63
 
64
64
  可用 `LINGJING_AWB_SKILL_INSTALL_DIR` 指定单一安装目录;如果传入的是以 `skills` 结尾的根目录,安装器会自动追加 `lj-awb`。也可用 `LINGJING_AWB_SKIP_SKILL_INSTALL=1` 跳过 skill 安装。
65
65
 
66
+ 只分发 skill 也可以作为完整入口:`skills/lj-awb/scripts/resolve-lj-awb-cmd.sh` 会在首次使用时检查 `lj-awb`,缺失或版本低于 `skills/lj-awb/compat.json` 的 `minCliVersion` 时自动执行:
67
+
68
+ ```bash
69
+ npm install -g @lingjingai/lj-awb-cli@<minCliVersion>
70
+ ```
71
+
72
+ 预发环境可在 bootstrap 前设置:
73
+
74
+ ```bash
75
+ export LINGJING_AWB_CLI_PACKAGE=@lingjingai/lj-awb-cli-pre
76
+ ```
77
+
66
78
  源码运行:
67
79
 
68
80
  ```bash
@@ -75,6 +87,8 @@ packages/awb-cli/bin/lj-awb auth status
75
87
 
76
88
  macOS 本地 wrapper `packages/awb-cli/bin/lj-awb` 会自动补充 Node 证书链,适合直接调试 HTTPS 平台接口。
77
89
 
90
+ 自动更新检查默认每天最多访问一次 npm registry,并会在源码 checkout、CI 或设置 `LINGJING_AWB_DISABLE_UPDATE_CHECK=1` / `AWB_DISABLE_UPDATE_CHECK=1` 时跳过。调试时可用 `LINGJING_AWB_UPDATE_CHECK=force` 强制检查。
91
+
78
92
  ## 认证
79
93
 
80
94
  保存 access key 到本地认证文件:
@@ -110,6 +124,8 @@ lj-awb account info
110
124
  ```bash
111
125
  lj-awb doctor
112
126
  lj-awb doctor --verify
127
+ lj-awb update --check
128
+ lj-awb update
113
129
  lj-awb schema --brief -f json
114
130
  lj-awb schema -f json
115
131
  lj-awb schema --domain create -f json
@@ -159,6 +175,8 @@ lj-awb doctor --verify
159
175
 
160
176
  `auth status` 只检查本地是否配置 access key;`auth verify` 会联网校验 key 是否远端有效。`doctor` 默认只做本地检查;追加 `--verify` 后会联网校验 access key、当前用户和项目组。精确 `schema` 返回每个命令的 `options[].key`,Agent 应使用这些 key 生成 CLI 参数,而不是解析自然语言 help。
161
177
 
178
+ `lj-awb` 在普通命令结束后会做非阻塞更新检查;如果有新版本,JSON 输出会在 `meta._notice.update` 里带上更新提示。Skill / Agent 看到这个提示后,应在完成当前任务后告诉用户当前版本和最新版本,并建议或直接运行 `lj-awb update`。真正安装更新只走显式 `lj-awb update`,`--check` 只检查不安装。
179
+
162
180
  `schema` 还包含面向 Agent 的执行约束:
163
181
 
164
182
  - `requiredOptions`:必须提供的参数 key。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/lj-awb-cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Lingjing AWB CLI monorepo with shared core, standalone CLI, and agent skills",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "build:pre-publish": "node build/pre-publish.mjs",
24
24
  "build:prod": "node build/prod.mjs",
25
25
  "check": "npm run check:local && npm run check:real",
26
- "check:local": "node --check install.mjs && node --check packages/awb-core/src/common.js && node --check packages/awb-core/src/api.js && node --check packages/awb-core/src/artifact.js && node --check packages/awb-core/src/auth.js && node --check packages/awb-core/src/output.js && node --check packages/awb-core/src/services.js && node --check packages/awb-core/src/commands.js && node --check packages/awb-core/src/standalone.js && sh -n packages/awb-cli/bin/lj-awb && node --check packages/awb-cli/bin/lj-awb.js && node --check build/build.mjs && node --check build/_shared.mjs && node --check build/pre.mjs && node --check build/pre-publish.mjs && node --check build/prod.mjs && node --check scripts/run-openapi-cli-examples-real.mjs && node --check scripts/validate-cli-schema.mjs && node --check scripts/validate-cli-output-contract.mjs && node --check scripts/validate-cli-command-coverage.mjs && node scripts/validate-skill-meta.mjs && node scripts/validate-cli-schema.mjs && node scripts/validate-cli-command-coverage.mjs",
26
+ "check:local": "node --check install.mjs && node --check packages/awb-core/src/common.js && node --check packages/awb-core/src/api.js && node --check packages/awb-core/src/artifact.js && node --check packages/awb-core/src/auth.js && node --check packages/awb-core/src/output.js && node --check packages/awb-core/src/update.js && node --check packages/awb-core/src/services.js && node --check packages/awb-core/src/commands.js && node --check packages/awb-core/src/standalone.js && sh -n packages/awb-cli/bin/lj-awb && bash -n skills/lj-awb/scripts/resolve-lj-awb-cmd.sh && node --check packages/awb-cli/bin/lj-awb.js && node --check build/build.mjs && node --check build/_shared.mjs && node --check build/pre.mjs && node --check build/pre-publish.mjs && node --check build/prod.mjs && node --check scripts/run-openapi-cli-examples-real.mjs && node --check scripts/validate-cli-schema.mjs && node --check scripts/validate-cli-output-contract.mjs && node --check scripts/validate-cli-command-coverage.mjs && node scripts/validate-skill-meta.mjs && node scripts/validate-cli-schema.mjs && node scripts/validate-cli-command-coverage.mjs",
27
27
  "check:real": "node scripts/validate-cli-output-contract.mjs && node scripts/validate-openapi-cli-examples.mjs",
28
28
  "test:openapi-real": "node scripts/run-openapi-cli-examples-real.mjs",
29
29
  "smoke": "packages/awb-cli/bin/lj-awb --help && packages/awb-cli/bin/lj-awb auth status -f json && packages/awb-cli/bin/lj-awb system && packages/awb-cli/bin/lj-awb auth && packages/awb-cli/bin/lj-awb account && packages/awb-cli/bin/lj-awb project && packages/awb-cli/bin/lj-awb credits && packages/awb-cli/bin/lj-awb upload && packages/awb-cli/bin/lj-awb model && packages/awb-cli/bin/lj-awb create && packages/awb-cli/bin/lj-awb task && packages/awb-cli/bin/lj-awb artifact && packages/awb-cli/bin/lj-awb schema -f json >/dev/null",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-cli-bin",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Standalone CLI for Lingjing AWB",
5
5
  "private": true,
6
6
  "license": "MIT",
@@ -13,6 +13,6 @@
13
13
  "README.md"
14
14
  ],
15
15
  "dependencies": {
16
- "@lingjingai/awb-core": "0.4.0"
16
+ "@lingjingai/awb-core": "0.4.2"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-core",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Shared core runtime for Lingjing AWB CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2,6 +2,7 @@ import { fetchProjectGroupUsers, fetchTeams, fetchUserInfo } from './api.js';
2
2
  import * as artifact from './artifact.js';
3
3
  import { clearAuth, loadAuth, saveAccessKey, summarizeAuth } from './auth.js';
4
4
  import { LingjingAwbCliError, maskSecret, toBool, trimSecret } from './common.js';
5
+ import { runCliUpdate } from './update.js';
5
6
  import {
6
7
  assetGroupCreate,
7
8
  assetGroupGet,
@@ -85,6 +86,9 @@ const MODEL_LIST_ARGS = [
85
86
  const TASK_RECORD_ARG = { name: 'task-record-file', valueName: 'path', description: '任务台账 JSONL 文件;也可用 LINGJING_AWB_TASK_RECORD_FILE' };
86
87
  const RESOURCE_ARG = { name: 'resource', valueName: 'spec', description: '统一素材,格式 type:usage[:key]=path|url|asset,可重复传;音频参考用 audio:reference=./music.mp3' };
87
88
  const RESOURCES_JSON_ARG = { name: 'resources-json', valueName: 'json|path', description: 'resources 数组 JSON 或 JSON 文件路径' };
89
+ const MODEL_PARAM_ARG = { name: 'model-param', valueName: 'key=value', description: '通用模型配置参数,可重复传;key 来自 model options.params[],例如 generation_effort=high' };
90
+ const MODEL_PARAMS_JSON_ARG = { name: 'model-params-json', valueName: 'json|path', description: '通用模型配置参数对象 JSON 或 JSON 文件路径;显式 --ratio/--quality 等命令参数优先' };
91
+ const MODEL_PARAM_ARGS = [MODEL_PARAM_ARG, MODEL_PARAMS_JSON_ARG];
88
92
  const CREATE_WAIT_ARGS = [
89
93
  { name: 'wait-seconds', valueName: 'seconds', description: '提交后顺带等待结果的秒数;默认 0 不等待' },
90
94
  { name: 'poll-interval-ms', valueName: 'ms', description: '任务轮询间隔毫秒数,默认 5000' },
@@ -125,6 +129,25 @@ export function registerAwbCommands(cli) {
125
129
  func: async (_ctx, kwargs) => doctor(kwargs),
126
130
  });
127
131
 
132
+ cli({
133
+ name: 'update',
134
+ description: commandHelp('检查并更新 CLI 到最新版本;默认只在需要时安装新版本', {
135
+ examples: [
136
+ 'lj-awb update --check',
137
+ 'lj-awb update',
138
+ 'lj-awb update --force',
139
+ ],
140
+ hint: '普通命令只会做非阻塞更新检查;真正安装请显式运行 update。',
141
+ }),
142
+ args: [
143
+ { name: 'check', description: '只检查是否有新版本,不安装' },
144
+ { name: 'force', description: '强制重新检查并执行安装,忽略缓存' },
145
+ { name: 'registry', valueName: 'url', description: 'npm registry 地址;默认读取环境变量或 npm 默认 registry' },
146
+ { name: 'package-name', valueName: 'name', description: '要更新的包名;默认自动识别当前 CLI 包' },
147
+ ],
148
+ func: async (_ctx, kwargs) => runCliUpdate(kwargs),
149
+ });
150
+
128
151
  cli({
129
152
  name: 'auth status',
130
153
  description: commandHelp('查看本地 access key 是否已配置;不联网', {
@@ -497,10 +520,12 @@ export function registerAwbCommands(cli) {
497
520
  { name: 'ratio', valueName: 'ratio', description: '画幅比例,如 9:16' },
498
521
  { name: 'quality', valueName: 'quality', description: '清晰度,如 2K' },
499
522
  { name: 'generate-num', valueName: 'n', description: '生成张数' },
523
+ ...MODEL_PARAM_ARGS,
500
524
  RESOURCE_ARG,
501
525
  RESOURCES_JSON_ARG,
502
526
  FEE_DRY_RUN_ARG,
503
527
  ],
528
+ allowDynamicModelParams: true,
504
529
  func: async (_ctx, kwargs) => imageFee(kwargs),
505
530
  });
506
531
 
@@ -521,6 +546,7 @@ export function registerAwbCommands(cli) {
521
546
  { name: 'ratio', valueName: 'ratio', description: '画幅比例' },
522
547
  { name: 'quality', valueName: 'quality', description: '清晰度' },
523
548
  { name: 'generate-num', valueName: 'n', description: '生成张数' },
549
+ ...MODEL_PARAM_ARGS,
524
550
  RESOURCE_ARG,
525
551
  RESOURCES_JSON_ARG,
526
552
  TASK_RECORD_ARG,
@@ -528,6 +554,7 @@ export function registerAwbCommands(cli) {
528
554
  DRY_RUN_ARG,
529
555
  YES_ARG,
530
556
  ],
557
+ allowDynamicModelParams: true,
531
558
  func: async (_ctx, kwargs) => imageCreate(kwargs),
532
559
  });
533
560
 
@@ -538,17 +565,19 @@ export function registerAwbCommands(cli) {
538
565
  'lj-awb create image-batch --input-file ./prompts.txt --model-group-code <code> --dry-run',
539
566
  'lj-awb create image-batch --input-file ./image-input.jsonl --model-group-code <code> --concurrency 3 --yes',
540
567
  ],
541
- hint: 'JSON/JSONL 每项只写任务差异字段:prompt、ratio、quality、generate_num、resources、resource、customBizId。',
568
+ hint: 'JSON/JSONL 每项只写任务差异字段:prompt、ratio、quality、generate_num、resources、resource、model_params、customBizId;新增模型配置参数也可直接写入每项。',
542
569
  }),
543
570
  args: [
544
571
  { name: 'input-file', valueName: 'path', description: '批量输入文件' },
545
572
  MODEL_GROUP_ARG,
546
573
  PROJECT_GROUP_ARG,
574
+ ...MODEL_PARAM_ARGS,
547
575
  { name: 'concurrency', valueName: 'n', description: '并发数,默认 1' },
548
576
  TASK_RECORD_ARG,
549
577
  DRY_RUN_ARG,
550
578
  YES_ARG,
551
579
  ],
580
+ allowDynamicModelParams: true,
552
581
  func: async (_ctx, kwargs) => imageCreateBatch(kwargs),
553
582
  });
554
583
 
@@ -577,10 +606,12 @@ export function registerAwbCommands(cli) {
577
606
  { name: 'quality', valueName: 'quality', description: '清晰度,如 720' },
578
607
  { name: 'duration', valueName: 'seconds', description: '生成时长秒数' },
579
608
  { name: 'need-audio', valueName: 'bool', description: '输出音效开关:是否让模型在视频中生成音效(true/false)。不接收音频文件;参考音频请用 --resource audio:reference=...' },
609
+ ...MODEL_PARAM_ARGS,
580
610
  RESOURCE_ARG,
581
611
  RESOURCES_JSON_ARG,
582
612
  FEE_DRY_RUN_ARG,
583
613
  ],
614
+ allowDynamicModelParams: true,
584
615
  func: async (_ctx, kwargs) => videoFee(kwargs),
585
616
  });
586
617
 
@@ -604,6 +635,7 @@ export function registerAwbCommands(cli) {
604
635
  { name: 'quality', valueName: 'quality', description: '清晰度' },
605
636
  { name: 'duration', valueName: 'seconds', description: '生成时长秒数' },
606
637
  { name: 'need-audio', valueName: 'bool', description: '输出音效开关:是否让模型在视频中生成音效(true/false)。不接收音频文件;参考音频请用 --resource audio:reference=...' },
638
+ ...MODEL_PARAM_ARGS,
607
639
  RESOURCE_ARG,
608
640
  RESOURCES_JSON_ARG,
609
641
  TASK_RECORD_ARG,
@@ -611,6 +643,7 @@ export function registerAwbCommands(cli) {
611
643
  DRY_RUN_ARG,
612
644
  YES_ARG,
613
645
  ],
646
+ allowDynamicModelParams: true,
614
647
  func: async (_ctx, kwargs) => videoCreate(kwargs),
615
648
  });
616
649
 
@@ -621,17 +654,19 @@ export function registerAwbCommands(cli) {
621
654
  'lj-awb create video-batch --input-file ./prompts.txt --model-group-code <code> --dry-run',
622
655
  'lj-awb create video-batch --input-file ./video-input.jsonl --model-group-code <code> --concurrency 2 --yes',
623
656
  ],
624
- hint: 'JSON/JSONL 每项只写任务差异字段:prompt、ratio、quality、duration、need_audio、resources、resource、customBizId。',
657
+ hint: 'JSON/JSONL 每项只写任务差异字段:prompt、ratio、quality、duration、need_audio、resources、resource、model_params、customBizId;新增模型配置参数也可直接写入每项。',
625
658
  }),
626
659
  args: [
627
660
  { name: 'input-file', valueName: 'path', description: '批量输入文件' },
628
661
  MODEL_GROUP_ARG,
629
662
  PROJECT_GROUP_ARG,
663
+ ...MODEL_PARAM_ARGS,
630
664
  { name: 'concurrency', valueName: 'n', description: '并发数,默认 1' },
631
665
  TASK_RECORD_ARG,
632
666
  DRY_RUN_ARG,
633
667
  YES_ARG,
634
668
  ],
669
+ allowDynamicModelParams: true,
635
670
  func: async (_ctx, kwargs) => videoCreateBatch(kwargs),
636
671
  });
637
672
 
@@ -559,6 +559,8 @@ export function normalizeOutputData(commandName, data) {
559
559
  return normalizeList(data, ['subjects']);
560
560
  case 'create subject-voice-list':
561
561
  return normalizeList(data, ['voices']);
562
+ case 'update':
563
+ return normalizeUpdateResult(data);
562
564
  default:
563
565
  break;
564
566
  }
@@ -647,6 +649,22 @@ function normalizeArtifactByCommand(commandName, data) {
647
649
  return cleanNested(data);
648
650
  }
649
651
 
652
+ function normalizeUpdateResult(data = {}) {
653
+ return compactRecord({
654
+ checked: data.checked,
655
+ updated: data.updated,
656
+ updateAvailable: data.updateAvailable,
657
+ packageName: data.packageName,
658
+ previousVersion: data.previousVersion,
659
+ currentVersion: data.currentVersion,
660
+ latestVersion: data.latestVersion,
661
+ command: rewriteCommandPrefix(data.command),
662
+ skillUpdated: data.skillUpdated,
663
+ restartRecommended: data.restartRecommended,
664
+ message: data.message,
665
+ });
666
+ }
667
+
650
668
  export function normalizeJsonData(commandName, data) {
651
669
  if (!isPlainObject(data)) return rewriteNested(data);
652
670
  if (data.dryRun) return rewriteNested(data);
@@ -1200,6 +1218,16 @@ function formatModelCreateSpecOutput(data = {}) {
1200
1218
  }
1201
1219
  pushSectionCount(lines, 'examples', examples.length);
1202
1220
  for (const [index, example] of examples.entries()) pushSectionItem(lines, index, rewriteCommandPrefix(example));
1221
+ const userParams = Array.isArray(data.parameterControls?.userParams) ? data.parameterControls.userParams : [];
1222
+ pushSectionCount(lines, 'params', userParams.length);
1223
+ for (const [index, param] of userParams.entries()) {
1224
+ pushSectionRecordItem(lines, index, {
1225
+ key: param.key,
1226
+ cliArg: param.cliArg,
1227
+ values: valueList(param.allowedValues),
1228
+ generic: param.genericModelParam,
1229
+ }, ['key', 'cliArg', 'values', 'generic']);
1230
+ }
1203
1231
  lines.push('next:');
1204
1232
  if (data.optionsCommand) pushSectionKeyValue(lines, 'options', `${commandPrefix()} ${data.optionsCommand}`);
1205
1233
  const feeNext = modelFeeNextCommand(data);
@@ -1376,6 +1404,7 @@ const OUTPUT_KIND_BY_COMMAND = {
1376
1404
  'create subject-voice': 'subject_voice_create_result',
1377
1405
  'create subject-voice-wait': 'subject_voice_status',
1378
1406
  'create subject-batch': 'batch_subject_publish_result',
1407
+ update: 'update_result',
1379
1408
  };
1380
1409
 
1381
1410
  const KIND_TITLES = {
@@ -1424,12 +1453,14 @@ const KIND_TITLES = {
1424
1453
  task_status: '任务状态',
1425
1454
  task_submission: '任务提交结果',
1426
1455
  team_list: '团队列表',
1456
+ update_result: 'CLI 更新',
1427
1457
  upload_result: '上传结果',
1428
1458
  };
1429
1459
 
1430
1460
  const COMMAND_TITLES = {
1431
1461
  doctor: '环境体检',
1432
1462
  schema: '命令 Schema',
1463
+ update: 'CLI 更新',
1433
1464
  'auth clear': '清空认证结果',
1434
1465
  'account switch-team': '团队切换结果',
1435
1466
  'project use': '项目组切换结果',
@@ -1587,11 +1618,18 @@ const FIELD_LABELS = {
1587
1618
  commandCount: '命令数',
1588
1619
  commandFilter: '命令过滤',
1589
1620
  commonFieldCount: '通用字段数',
1621
+ currentVersion: '当前版本',
1590
1622
  domainFilter: '领域过滤',
1623
+ latestVersion: '最新版本',
1591
1624
  nodeVersion: 'Node 版本',
1625
+ packageName: '包名',
1626
+ previousVersion: '更新前版本',
1592
1627
  resourceFieldCount: '资源字段数',
1593
1628
  resourceRuleCount: '资源规则数',
1629
+ restartRecommended: '建议重启',
1594
1630
  schemaVersion: 'Schema 版本',
1631
+ skillUpdated: 'Skill 已更新',
1632
+ updateAvailable: '有新版本',
1595
1633
  version: '版本',
1596
1634
  type: '类型',
1597
1635
  message: '消息',
@@ -1638,6 +1676,7 @@ const DETAIL_FIELDS_BY_KIND = {
1638
1676
  subtitle_task_submission: ['submitted', 'taskId', 'taskType', 'sourceTaskId', 'projectGroupNo', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'nextCommand'],
1639
1677
  task_status: ['taskId', 'publicId', 'remoteTaskId', 'taskType', 'taskStatus', 'isTerminal', 'modelGroupCode', 'projectGroupNo', 'pointNo', 'gmtCreate', 'resultCount', 'errorMessage', 'timedOut', 'waitedMs'],
1640
1678
  task_submission: ['taskId', 'taskType', 'modelGroupCode', 'projectGroupNo', 'pointNo', 'points', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'uploadCount', 'nextCommand'],
1679
+ update_result: ['checked', 'updated', 'updateAvailable', 'packageName', 'previousVersion', 'currentVersion', 'latestVersion', 'command', 'skillUpdated', 'restartRecommended', 'message'],
1641
1680
  upload_result: ['dryRun', 'fileCount', 'assetCount', 'localFileCount', 'resourceConversionCount'],
1642
1681
  };
1643
1682
 
@@ -2332,7 +2371,7 @@ function cliFlagForParam(key) {
2332
2371
  need_audio: '--need-audio',
2333
2372
  prompt: '--prompt',
2334
2373
  };
2335
- return flags[key];
2374
+ return flags[key] || (key ? `--model-param ${key}=...` : '');
2336
2375
  }
2337
2376
 
2338
2377
  function localizedResourceParam(value) {
@@ -2852,6 +2891,11 @@ function formatPrettyModelCreateSpec(data = {}, context = {}) {
2852
2891
  column('素材用途', (row) => localizedList(row.resourceUsages, localizedUsage), { minWidth: 10, maxWidth: 24 }),
2853
2892
  column('Prompt 绑定', (row) => localizedPromptBinding(row.promptBinding), { maxWidth: 14 }),
2854
2893
  ]);
2894
+ renderArraySection(lines, '可控参数', data.parameterControls?.userParams, [
2895
+ column('参数', (row) => localizedParamKey(row.key), { minWidth: 10, maxWidth: 20 }),
2896
+ column('写法', 'cliArg', { minWidth: 12, maxWidth: 34 }),
2897
+ column('可选值', (row) => Array.isArray(row.allowedValues) ? row.allowedValues.join('、') : '', { minWidth: 12, maxWidth: 36 }),
2898
+ ]);
2855
2899
  renderScalarList(lines, '示例', (data.examples || []).map((example) => modelCreateExampleWithCode(example, data.modelGroupCode)).map((item) => item.replaceAll('--model-group-code <code>', `--model-group-code ${data.modelGroupCode || '<code>'}`)), 8);
2856
2900
  const actions = [];
2857
2901
  if (data.optionsCommand) actions.push({ label: '查看参数', value: `${commandPrefix()} ${data.optionsCommand}` });