@lingjingai/lj-awb-cli 0.5.6 → 0.5.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.
@@ -195,7 +195,7 @@ function buildOutputContext(command, kwargs = {}, data = {}) {
195
195
  if (command.name === 'create asset' && data?.conversionPlan && !toBool(kwargs.autoConvert)) {
196
196
  confirmSet.autoConvert = true;
197
197
  }
198
- const isModelList = command.name === 'model image-models' || command.name === 'model video-models';
198
+ const isModelList = command.name === 'model image-models' || command.name === 'model video-models' || command.name === 'model audio-models';
199
199
  const hasModelFilter = isModelList && !toBool(kwargs.all) && Boolean(
200
200
  trimToNull(kwargs.model) || trimToNull(kwargs.usage) || trimToNull(kwargs.provider)
201
201
  || trimToNull(kwargs.inputMode) || trimToNull(kwargs.supports)
@@ -365,6 +365,9 @@ const RENAMED_COMMAND_HINTS = {
365
365
  'video fee': 'create video-fee',
366
366
  'video create': 'create video',
367
367
  'video create-batch': 'create video-batch',
368
+ audio: 'create audio',
369
+ 'audio fee': 'create audio-fee',
370
+ 'audio create': 'create audio',
368
371
  'video subtitle-remove': 'create video-subtitle-removal',
369
372
  'video super-resolution': 'create video-super-resolution',
370
373
  'video super-resolution-fee': 'create video-super-resolution-fee',
@@ -399,13 +402,14 @@ const RENAMED_COMMAND_HINTS = {
399
402
  'credits buy': 'credits recharge',
400
403
  };
401
404
 
402
- const MODEL_LIST_GUESS_HINT = `按任务类型分开查询:生图候选用 ${'`'}lj-awb model image-models${'`'},生视频候选用 ${'`'}lj-awb model video-models${'`'}。运行 lj-awb model -h 查看 model 域全部命令。`;
405
+ const MODEL_LIST_GUESS_HINT = `按任务类型分开查询:生图用 ${'`'}model image-models${'`'},生视频用 ${'`'}model video-models${'`'},音频用 ${'`'}model audio-models${'`'}。`;
403
406
  const COMMAND_GUESS_HINTS = {
404
407
  'model list': MODEL_LIST_GUESS_HINT,
405
408
  'model models': MODEL_LIST_GUESS_HINT,
406
409
  'model ls': MODEL_LIST_GUESS_HINT,
407
410
  'model image': MODEL_LIST_GUESS_HINT,
408
411
  'model video': MODEL_LIST_GUESS_HINT,
412
+ 'model audio': MODEL_LIST_GUESS_HINT,
409
413
  'models': MODEL_LIST_GUESS_HINT,
410
414
  };
411
415
 
@@ -517,6 +521,7 @@ const GROUP_EXAMPLES = {
517
521
  model: [
518
522
  'lj-awb model image-models --model Banana',
519
523
  'lj-awb model video-models --model Seedance',
524
+ 'lj-awb model audio-models',
520
525
  'lj-awb model asset-review-models --platform JIMENG',
521
526
  'lj-awb model input-guide',
522
527
  'lj-awb model options --model-group-code <code>',
@@ -530,6 +535,7 @@ const GROUP_EXAMPLES = {
530
535
  'lj-awb create image-fee --model-group-code <code> --prompt "一只小狗"',
531
536
  'lj-awb create video --model-group-code <code> --prompt "镜头推进" --resource image:first_frame=./actor.png --dry-run',
532
537
  'lj-awb create video-fee --model-group-code <code> --prompt "雨夜奔跑" --duration 5',
538
+ 'lj-awb create audio --model-group-code <code> --prompt "海浪与钢琴" --duration 12 --dry-run',
533
539
  'lj-awb create video-super-resolution --object-name material/video-super/example.mp4 --dry-run',
534
540
  'lj-awb create subject --model-code tx --name 女主 --resource primary:./three-view.png --dry-run',
535
541
  'lj-awb create subject-wait --element-id <elementId> --wait-seconds 300',
@@ -556,6 +562,8 @@ const COMMAND_REQUIRED_OPTIONS = {
556
562
  'create video-fee': ['modelGroupCode'],
557
563
  'create video': ['modelGroupCode'],
558
564
  'create video-batch': ['inputFile', 'modelGroupCode'],
565
+ 'create audio-fee': ['modelGroupCode', 'prompt', 'duration'],
566
+ 'create audio': ['modelGroupCode', 'prompt', 'duration'],
559
567
  'create video-super-resolution-fee': ['objectName'],
560
568
  'create video-super-resolution': ['objectName'],
561
569
  'task status': ['taskId'],
@@ -573,7 +581,7 @@ const COMMAND_REQUIRED_OPTIONS = {
573
581
  };
574
582
 
575
583
  const COMMAND_REQUIRED_ANY_OPTIONS = {
576
- 'project update': [['name', 'point']],
584
+ 'project update': [['name', 'point', 'addUserIds']],
577
585
  'upload files': [['file', 'files', 'filesJson']],
578
586
  'create video-fee': [['prompt', 'resource', 'resourcesJson']],
579
587
  'create video': [['prompt', 'resource', 'resourcesJson']],
@@ -599,6 +607,7 @@ const CONFIRMATION_COMMANDS = new Set([
599
607
  'create image-batch',
600
608
  'create video',
601
609
  'create video-batch',
610
+ 'create audio',
602
611
  'create video-super-resolution',
603
612
  'create video-subtitle-removal',
604
613
  'create asset-group',
@@ -614,6 +623,7 @@ const COST_COMMANDS = new Set([
614
623
  'create image-batch',
615
624
  'create video',
616
625
  'create video-batch',
626
+ 'create audio',
617
627
  'create video-super-resolution',
618
628
  'create video-subtitle-removal',
619
629
  ]);
@@ -630,6 +640,7 @@ const REMOTE_WRITE_COMMANDS = new Set([
630
640
  'create image-batch',
631
641
  'create video',
632
642
  'create video-batch',
643
+ 'create audio',
633
644
  'create video-super-resolution',
634
645
  'create video-subtitle-removal',
635
646
  'create asset-group',
@@ -676,6 +687,7 @@ const OUTPUT_KIND_BY_COMMAND = {
676
687
  'credits redeem': 'redeem_result',
677
688
  'model image-models': 'model_list',
678
689
  'model video-models': 'model_list',
690
+ 'model audio-models': 'model_list',
679
691
  'model asset-review-models': 'asset_review_model_list',
680
692
  'model options': 'model_options',
681
693
  'model create-spec': 'model_create_spec',
@@ -687,6 +699,8 @@ const OUTPUT_KIND_BY_COMMAND = {
687
699
  'create video-fee': 'fee_estimate',
688
700
  'create video': 'task_submission',
689
701
  'create video-batch': 'batch_task_submission',
702
+ 'create audio-fee': 'fee_estimate',
703
+ 'create audio': 'task_submission',
690
704
  'create video-super-resolution-fee': 'fee_estimate',
691
705
  'create video-super-resolution': 'task_submission',
692
706
  'create video-subtitle-removal': 'subtitle_task_submission',
@@ -714,6 +728,7 @@ const PREFLIGHTS_BY_COMMAND = {
714
728
  'create image': ['doctor --verify', 'model image-models', 'model options', 'model create-spec', 'confirm missing key params', 'create image-fee', 'create image --dry-run'],
715
729
  'create image-batch': ['doctor --verify', 'model image-models', 'model options', 'model create-spec', 'prepare JSONL input', 'create image-batch --dry-run'],
716
730
  'create video': ['doctor --verify', 'model video-models', 'model options', 'model create-spec', 'confirm missing key params', 'create video-fee', 'create video --dry-run'],
731
+ 'create audio': ['doctor --verify', 'model audio-models', 'model options', 'create audio-fee', 'create audio --dry-run'],
717
732
  'create video-batch': ['doctor --verify', 'model video-models', 'model options', 'model create-spec', 'prepare JSONL input', 'create video-batch --dry-run'],
718
733
  'create video-super-resolution-fee': ['doctor --verify', 'create video-super-resolution-fee --object-name <objectName>'],
719
734
  'create video-super-resolution': ['doctor --verify', 'create video-super-resolution --object-name <objectName> --dry-run'],
@@ -812,6 +827,9 @@ function buildCommandWorkflow(command) {
812
827
  if (command.name === 'create video') {
813
828
  next.push('读取 data.taskId 和 data.nextCommand', '立即运行响应里的 nextCommand,或 task wait --task-id <id> 等待结果');
814
829
  }
830
+ if (command.name === 'create audio') {
831
+ next.push('读取 data.taskId 和 data.nextCommand', '立即运行响应里的 nextCommand,或 task wait --task-id <id> 等待音频结果');
832
+ }
815
833
  if (command.name === 'create video-super-resolution') {
816
834
  next.push('读取 data.taskId 和 data.nextCommand', '运行响应里的 task status 命令查询结果');
817
835
  }
@@ -827,7 +845,7 @@ function buildCommandWorkflow(command) {
827
845
  if (command.name === 'create asset') {
828
846
  next.push('读取 data.assetType / data.assetPath', 'data.conversionRequired=true 时先确认是否转码;正式执行可交互确认或追加 --auto-convert', '若后端返回审核 taskId,再运行 task wait --task-type ASSET_REGISTER');
829
847
  }
830
- if (command.name === 'model image-models' || command.name === 'model video-models') {
848
+ if (command.name === 'model image-models' || command.name === 'model video-models' || command.name === 'model audio-models') {
831
849
  next.push('读取 data.models[] 得到全部候选;用户给了模型口语名时保留同族全部候选,不只取第一个');
832
850
  next.push('对每个候选运行 model options --model-group-code <modelGroupCode> 查看真实参数和素材约束');
833
851
  next.push('向用户展示候选模型 + 参数取值 + 资源能力后 STOP;等待用户选择或明确授权默认,未确认不得进入 create-spec/fee/dry-run/create');
@@ -971,7 +989,7 @@ function buildAgentBrief(commands, version = 'unknown') {
971
989
  },
972
990
  {
973
991
  intent: '模型发现和创作任务',
974
- start: ['model image-models', 'model video-models', 'model options', 'model create-spec'],
992
+ start: ['model image-models', 'model video-models', 'model audio-models', 'model options', 'model create-spec'],
975
993
  rule: '先展示候选模型、真实参数和资源能力并 STOP;用户选择或明确授权默认后,关键参数确认,再只跑一次 fee、dry-run 和最终 --yes。',
976
994
  },
977
995
  {
@@ -1074,20 +1092,20 @@ function buildAgentContract() {
1074
1092
  ],
1075
1093
  },
1076
1094
  modelCandidatePresentation: {
1077
- purpose: '把 model image-models / video-models 与每个候选的 model options 转成用户可见清单,避免 Agent 内部看完 options 后直接代选。',
1095
+ purpose: '把 image/video/audio 模型列表与每个候选的 model options 转成用户可见清单。',
1078
1096
  trigger: '用户问有哪些模型、给出口语名、或模型列表返回候选时都触发;即使只有一个候选也要展示真实可选项。',
1079
1097
  gateType: 'hard_stop',
1080
1098
  stopAfterPresentation: true,
1081
1099
  resumeCondition: '用户选择模型和关键参数,或明确说“按默认 / 你来选”。',
1082
1100
  requiredVisibleFields: ['displayName', 'modelDesc', 'taskQueueNum', 'quality values/default', 'ratio values/default', 'duration or generateNum values/default', 'resource modes/media/usages', 'channel or fast/pro differences'],
1083
- blockedBeforePresentation: ['model create-spec', 'create image-fee', 'create video-fee', 'create image-batch --dry-run', 'create video-batch --dry-run', 'create image --dry-run', 'create video --dry-run', 'create image', 'create video', 'default model recommendation', 'default quality/ratio/duration choice'],
1101
+ blockedBeforePresentation: ['model create-spec', 'create image-fee', 'create video-fee', 'create audio-fee', 'create image --dry-run', 'create video --dry-run', 'create audio --dry-run', 'create image', 'create video', 'create audio'],
1084
1102
  },
1085
1103
  modelOptions: {
1086
1104
  command: `${commandPrefix()} model options --model-group-code <code>`,
1087
1105
  textCommand: `${commandPrefix()} model options --model-group-code <code> -f text`,
1088
1106
  jsonCommand: `${commandPrefix()} model options --model-group-code <code> -f json`,
1089
1107
  purpose: '查询指定模型支持的 CLI 参数、枚举值、默认值、素材约束和条件约束。Agent 默认读 textCommand;只有程序化校验完整嵌套结构时读 jsonCommand。',
1090
- useBefore: ['model create-spec', 'create image-fee', 'create image', 'create video-fee', 'create video'],
1108
+ useBefore: ['model create-spec', 'create image-fee', 'create image', 'create video-fee', 'create video', 'create audio-fee', 'create audio'],
1091
1109
  keyFields: ['params[].key', 'params[].cliArg', 'params[].genericModelParam', 'params[].values', 'params[].defaultValue', 'resources[].mediaType', 'resources[].usage', 'resources[].fileTypes', 'resources[].maxFiles', 'resources[].supportLastFrameOnly', 'resources[].minDurationMs', 'resources[].maxDurationMs', 'constraints[].target', 'constraints[].conditions', 'constraints[].effect'],
1092
1110
  },
1093
1111
  modelCreateSpec: {
@@ -1095,7 +1113,7 @@ function buildAgentContract() {
1095
1113
  textCommand: `${commandPrefix()} model create-spec --model-group-code <code> -f text`,
1096
1114
  jsonCommand: `${commandPrefix()} model create-spec --model-group-code <code> -f json`,
1097
1115
  purpose: '查看指定模型如何组织 create 命令:输入模式、素材绑定规则、示例和创建前检查项。Agent 默认读 textCommand;只有程序化校验完整嵌套结构时读 jsonCommand。',
1098
- useBefore: ['create image-fee', 'create image', 'create video-fee', 'create video'],
1116
+ useBefore: ['create image-fee', 'create image', 'create video-fee', 'create video', 'create audio-fee', 'create audio'],
1099
1117
  keyFields: ['inputRequirement', 'supportedIntents', 'validationRules', 'agentGuidance', 'preflight', 'examples'],
1100
1118
  },
1101
1119
  modelInputGuide: {
@@ -1108,6 +1126,7 @@ function buildAgentContract() {
1108
1126
  taskTypes: {
1109
1127
  image: 'IMAGE_CREATE',
1110
1128
  video: 'VIDEO_GROUP',
1129
+ audio: 'AUDIO_CREATE',
1111
1130
  videoSuperResolution: 'VIDEO_SUPER_RESOLUTION',
1112
1131
  subtitleRemoval: 'VIDEO_SUBTITLE_REMOVAL',
1113
1132
  assetRegister: 'ASSET_REGISTER',
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: lj-awb
3
- version: 0.5.6
4
- description: "灵境 AWB CLI skill。使用 `lj-awb` 命令调用动漫平台 / AWB 云端能力,覆盖认证、项目组、积分余额/明细/用量(含充值购买与兑换码兑换)、模型发现、上传、统一 create 创建域、任务查询、视频超分。用户说生图、生视频、积分明细、积分流水、充值记录、消耗记录、主体、音色、素材加白、去字幕时使用。正式生成、切换项目组、清空认证、兑换码等写入或扣费动作前必须确认。"
3
+ version: 0.5.9
4
+ description: "灵境 AWB CLI skill。使用 `lj-awb` 命令调用动漫平台 / AWB 云端能力,覆盖认证、项目组、积分余额/明细/用量(含充值购买与兑换码兑换)、模型发现、上传、统一 create 创建域、任务查询、视频超分。用户说生图、生视频、生成音频、积分明细、积分流水、充值记录、消耗记录、主体、音色、素材加白、去字幕时使用。正式生成、切换项目组、清空认证、兑换码等写入或扣费动作前必须确认。"
5
5
  metadata:
6
6
  bootstrap:
7
7
  package: "@lingjingai/lj-awb-cli"
8
- version: "0.5.6"
8
+ version: "0.5.9"
9
9
  bin: "lj-awb"
10
10
  cliHelp: "lj-awb --help"
11
11
  ---
@@ -82,7 +82,7 @@ schema 查询必须先返回,再组织业务命令;不要把 schema 查询
82
82
  | 项目组、预算与积分明细上下文 | `project` / `credits` | [`modules/project.md`](modules/project.md)、[`modules/credits.md`](modules/credits.md) |
83
83
  | 模型发现、参数约束、创建规格 | `model` | [`modules/model.md`](modules/model.md) |
84
84
  | 本地文件上传为 backendPath | `upload` | [`modules/upload.md`](modules/upload.md) |
85
- | 图片 / 视频 / 去字幕 / 主体 / 音色 / 素材创建 | `create` | [`modules/create.md`](modules/create.md)、[`modules/create-contract.md`](modules/create-contract.md) |
85
+ | 图片 / 视频 / 音频 / 去字幕 / 主体 / 音色 / 素材创建 | `create` | [`modules/create.md`](modules/create.md)、[`modules/create-contract.md`](modules/create-contract.md) |
86
86
  | 异步任务等待与本地台账 | `task` | [`modules/task.md`](modules/task.md) |
87
87
 
88
88
  ## 触发分流
@@ -95,6 +95,7 @@ schema 查询必须先返回,再组织业务命令;不要把 schema 查询
95
95
  | “有哪些模型 / 推荐模型 / 用某某模型” | [`modules/model.md`](modules/model.md),模型口语名默认是平台模型,不是本地工具 |
96
96
  | “生图 / 生成图片 / 参考图生图” | [`modules/driver.md`](modules/driver.md) 创作链条 + [`modules/create-contract.md`](modules/create-contract.md);简单文生图(未点名模型、无参考图)默认走「简单生图一次性选择门」:模型+参数合并成一条让用户一次选好,没提到的用默认 |
97
97
  | “生视频 / 首帧 / 首尾帧 / 音频参考 / 让图动起来” | [`modules/driver.md`](modules/driver.md) 创作链条 + [`modules/task-manual.md`](modules/task-manual.md);简单生视频(未点名模型、无主体/音色/音频参考)默认走「简单生视频一次性选择门」:统一菜单全列模型(默认即梦 3.0 Fast / 5秒 / 720P / 16:9),用户输什么传什么(文字→prompt、1图→首帧、2图→首尾帧),回数字选、没提到的用默认 |
98
+ | “生成音频 / 文生音频 / 参考音频生成” | [`modules/driver.md`](modules/driver.md) 创作链条 + [`modules/create.md`](modules/create.md);依次使用 `model audio-models`、`create audio-fee`、`create audio` |
98
99
  | “超分 / 放大到 2K / 1080P” | [`modules/video.md`](modules/video.md),传 `objectName` 走 material 视频超分任务体系 |
99
100
  | “固定角色 / 主体 / 同一个人 / 可灵或 Vidu 角色一致” | [`modules/subject.md`](modules/subject.md) |
100
101
  | “主体音色 / 音色克隆 / 给主体配音色” | [`modules/subject.md`](modules/subject.md) |
@@ -112,7 +113,7 @@ schema 查询必须先返回,再组织业务命令;不要把 schema 查询
112
113
  - 创作类命令在 fee / dry-run 前必须确认会影响价格或效果的关键参数;用户明确说“按默认”后才使用 defaultValue。**例外**:命中「简单生图一次性选择门」(见 [`modules/driver.md`](modules/driver.md))时,模型+参数合并成一条让用户一次选好,用户没提到的参数用 `defaultValue` 补齐,选完直接生成。
113
114
  - Prompt 默认原文直出:用户提供明确 prompt / 创作描述时,禁止语义改写、润色、扩写或从参考图补画面细节;只有用户明确要求“优化 / 润色 / 扩写 / 你来写 prompt”时才允许改写,且改写后的最终 prompt 必须先展示并等待确认,之后才能 fee / dry-run / create。
114
115
  - `fee` 是最终估价,不是参数探索工具。不要为多个 quality / duration / ratio / 渠道组合反复跑 fee。
115
- - 正式图片 / 视频任务要带 `--project-group-no`,除非命令 schema 没有该参数。
116
+ - 正式图片 / 视频 / 音频任务要带 `--project-group-no`,除非命令 schema 没有该参数。
116
117
  - 命令返回 `nextCommand`、`nextRefSubject`、`nextVoiceArg` 时优先复用返回值,不手拼。
117
118
  - 默认输出是面向人类的 pretty 表格;Agent 不要解析 pretty,默认显式传 `-f text` 读取稳定的分区 key=value。只有脚本严格解析或必须读完整嵌套结构时才用 `-f json`。
118
119
  - 模型口语名命中后必须过“候选展示门”:先把候选模型、真实参数取值和资源能力转成用户可见清单,再推荐或追问;不能只在内部读完 `model options` 就直接代选默认模型 / 参数。
@@ -1 +1 @@
1
- 0.5.6
1
+ 0.5.9
@@ -1,6 +1,6 @@
1
1
  {
2
- "skillVersion": "0.5.6",
3
- "minCliVersion": "0.5.6",
2
+ "skillVersion": "0.5.9",
3
+ "minCliVersion": "0.5.9",
4
4
  "preferredCommand": "lj-awb",
5
- "updatedAt": "2026-09-07"
5
+ "updatedAt": "2026-09-10"
6
6
  }
@@ -12,6 +12,8 @@
12
12
  | `lj-awb create video ...` | 提交单条生视频任务 |
13
13
  | `lj-awb create video-batch ...` | 批量提交生视频任务 |
14
14
  | `lj-awb create video-fee ...` | 生视频估价;关键参数确认后只跑一次 |
15
+ | `lj-awb create audio ...` | 提交单条音频生成任务 |
16
+ | `lj-awb create audio-fee ...` | 音频生成估价;按生成时长计算 |
15
17
  | `lj-awb create video-super-resolution ...` | 基于 objectName 提交视频超分任务 |
16
18
  | `lj-awb create video-super-resolution-fee ...` | 视频超分估价;先确认 objectName |
17
19
  | `lj-awb create video-subtitle-removal --source-task-id <videoTaskId> ...` | 基于 material 来源视频任务提交去字幕 |
@@ -31,8 +33,9 @@
31
33
 
32
34
  ## 编排
33
35
 
34
- - 图片 / 视频创建参数和资源绑定仍按 [`create-contract.md`](create-contract.md) 校验。
35
- - 估价也在 `create` 域:`create image-fee` / `create video-fee` / `create video-super-resolution-fee`;只在关键参数确认后执行。
36
+ - 图片 / 视频 / 音频创建参数和资源绑定仍按 [`create-contract.md`](create-contract.md) 校验。
37
+ - 估价也在 `create` 域:`create image-fee` / `create video-fee` / `create audio-fee` / `create video-super-resolution-fee`;只在关键参数确认后执行。
38
+ - 音频创建必须传 `prompt` 和 `duration`;默认 `audio-format=mp3`,最多 3 个参考音频或 1 张参考图,两类不能混用。
36
39
  - 状态和等待仍在查询域:`task status` / `task wait` 按 `taskId` 查询统一任务状态;主体 / 音色使用 `create subject-wait` / `create subject-voice-wait`。
37
40
  - 所有 `create` 写入或扣费命令正式执行前必须先 `--dry-run`,用户确认后再 `--yes`。
38
41
  - 查询型 create 子命令(`subject-list`、`subject-voice-list`、`asset-groups`、`asset-group-get`、`asset-match-actor`)是为了避免重复创建;创建前优先查重。
@@ -24,7 +24,7 @@ Agent 在当前任务中记录这些值,后续直接复用:
24
24
  | `commandSchema:<name>` | `lj-awb schema --domain <domain> --command <command> -f text` | CLI 版本变化或命令不匹配 |
25
25
  | `auth/account/team` | `doctor --verify`、`account info` | 登录 / 团队切换 |
26
26
  | `projectGroupNo` | `project current` 或用户指定 | 项目组切换 |
27
- | `modelCandidates` | `model image-models` / `model video-models` | 任务类型或关键词变化 |
27
+ | `modelCandidates` | `model image-models` / `model video-models` / `model audio-models` | 任务类型或关键词变化 |
28
28
  | `assetReviewModels` / `assetReviewPlatform` | `model asset-review-models` | `modelGroupCode` 或平台切换 |
29
29
  | `modelOptions` / `createSpec` | `model options` / `model create-spec` | `modelGroupCode` 变化 |
30
30
  | `backendPath` | `upload files` 或 create dry-run/yes 的 upload 输出 | 本地文件或远端 URL 变化 |
@@ -40,10 +40,10 @@ CLI 当前能力分为:
40
40
 
41
41
  - `system`:`doctor`、`schema`。
42
42
  - `auth/account/project/credits`:认证、团队、项目组、积分与预算上下文。
43
- - `model`:发现图片 / 视频模型,读取参数约束和创建规格。
43
+ - `model`:发现图片 / 视频 / 音频模型,读取参数约束和创建规格。
44
44
  - `upload`:把本地文件转成平台 `backendPath`。
45
- - `create`:图片、视频、视频去字幕、主体、主体音色、素材组和素材注册。
46
- - `task`:图片 / 视频 / 去字幕等异步任务状态、等待和本地台账。
45
+ - `create`:图片、视频、音频、视频去字幕、主体、主体音色、素材组和素材注册。
46
+ - `task`:图片 / 视频 / 音频 / 去字幕等异步任务状态、等待和本地台账。
47
47
 
48
48
  不要把概念名当 command domain。图片、视频、主体、素材是业务对象;命令入口是 `create` / `task`。
49
49
 
@@ -53,13 +53,13 @@ CLI 当前能力分为:
53
53
 
54
54
  0. **先分流**:如果命中「简单生图一次性选择门」(见下方专节),走那条——模型+参数合并成一条让用户一次选好,选完直接生成;否则按 1-9 标准链条走。
55
55
  1. 若本轮未验证远端认证和项目组,运行 `doctor --verify`,必要时 `project current`。
56
- 2. 根据用户目标选任务类型:生图查 `model image-models`,生视频查 `model video-models`。
56
+ 2. 根据用户目标选任务类型:生图查 `model image-models`,生视频查 `model video-models`,音频生成查 `model audio-models`。
57
57
  3. 如果同一关键词已有候选,不重复查列表;只在用户换模型关键词时刷新。
58
58
  4. 对候选跑 `model options`,通过”模型候选展示门”把真实参数和资源能力展示给用户,然后 STOP 等用户选择或明确授权默认;用户选定模型后补 `model create-spec`。
59
59
  5. 按 [`task-manual.md`](task-manual.md) 选择资源模式,按 [`create-contract.md`](create-contract.md) 校验素材、占位符、`needAudio` 和模式互斥。
60
60
  6. 只追问会影响价格 / 效果且用户未给出的关键参数;用户说“默认”才使用 defaultValue。
61
- 7. 参数确认后跑一次 `create image-fee` 或 `create video-fee`,不要用 fee 做多组合探索。
62
- 8. 跑一次 `create image/video --dry-run` 展示最终 prompt、资源、参数、积分。
61
+ 7. 参数确认后跑一次对应的 `create image-fee`、`create video-fee` 或 `create audio-fee`,不要用 fee 做多组合探索。
62
+ 8. 跑一次对应的 `create image/video/audio --dry-run` 展示最终 prompt、资源、参数、积分。
63
63
  9. 用户确认后 `--yes`。返回 `nextCommand` 时直接执行它等待结果。
64
64
 
65
65
  对用户展示这条链路时只给阶段性摘要,不逐条列出 schema / model options / fee 命令和原始输出。
@@ -8,6 +8,7 @@
8
8
  |------|------|
9
9
  | `lj-awb model image-models --model "<keyword>"` | 查询生图候选模型 |
10
10
  | `lj-awb model video-models --model "<keyword>"` | 查询生视频候选模型 |
11
+ | `lj-awb model audio-models --model "<keyword>"` | 查询 CLI 音频生成候选模型 |
11
12
  | `lj-awb model asset-review-models --model-group-code <code>` | 查询支持素材加白的模型组与平台关系 |
12
13
  | `lj-awb model input-guide -f text` | 查看统一创建参数、resources 字段和素材绑定规则 |
13
14
  | `lj-awb model options --model-group-code <code> -f text` | 查看该模型支持的 CLI 参数、枚举值、默认值、素材约束和条件约束 |
@@ -20,6 +21,7 @@
20
21
  ```bash
21
22
  lj-awb model image-models --model "<keyword>"
22
23
  lj-awb model video-models --model "<keyword>"
24
+ lj-awb model audio-models --model "<keyword>"
23
25
  ```
24
26
 
25
27
  候选展示走 [`driver.md`](driver.md) 的“模型候选展示门”:基本信息 → 并行跑 `model options` 列真实参数取值和资源能力 → 输出用户可读清单 → STOP 等用户选择或明确授权默认。不要把原始 JSON 整段粘给用户,但必须把候选转成用户可读清单;不能只在内部读完 options 后直接代选模型或参数。(**简单文生图默认走「简单生图一次性选择门」,不触发本门**——用户没点名模型、无参考图时,默认GPT Image 2,模型+参数合并成一条让用户一次选好,详见 [`driver.md`](driver.md)。)
@@ -67,7 +69,7 @@ Agent 默认用 `-f text` 读取;只有需要程序化校验完整嵌套结构
67
69
 
68
70
  Agent 读取这些字段:
69
71
 
70
- - `taskKind`:`image` 或 `video`,决定使用 `create image` 还是 `create video`。
72
+ - `taskKind`:`image`、`video` 或 `audio`,决定使用对应的 create 命令。
71
73
  - `optionsCommand`:查看本模型参数约束的命令。
72
74
  - `inputRequirement`:是否必须提供视觉输入,以及不能只传 prompt 的原因。
73
75
  - `supportedIntents[]`:用户意图到统一输入方式的权威映射,例如 `prompt_only`、`reference`、`frames`、`storyboard`。
@@ -83,6 +85,7 @@ Agent 读取这些字段:
83
85
  | 模型配置 | CLI create 参数 | 说明 |
84
86
  |----------|-----------------|------|
85
87
  | `generated_time` | `--duration` | 视频时长 |
88
+ | `duration` | `--duration` | 音频生成时长 |
86
89
  | `generate_num` | `--generate-num` | 图片张数 |
87
90
  | `iref` | `--resource image:reference=...` | 图片参考图 |
88
91
  | `frames` | `--resource image:first_frame=...` / `image:last_frame=...`,可传文件/URL/backendPath/`asset:<assetId>` | 视频首尾帧 |
@@ -101,9 +104,9 @@ Agent 读取这些字段:
101
104
 
102
105
  ## 下一步
103
106
 
104
- - 模型 + 参数定下后 → [`image.md`](image.md) 或 [`video.md`](video.md) 跑 `fee` + `create --dry-run` + 确认 + `--yes`。
107
+ - 模型 + 参数定下后 → 图片/视频按 [`image.md`](image.md) 或 [`video.md`](video.md),音频按 [`create.md`](create.md),依次跑 `fee` + `create --dry-run` + 确认 + `--yes`。
105
108
  - 模型 `taskQueueNum` 很大(>100)→ 向用户提示排队风险,可让用户在候选间换;不要默认换。
106
- - 不要重复跑 `model image-models / video-models` —— `modelGroupCode` 一旦确定,整个对话内复用。
109
+ - 不要重复跑 `model image-models / video-models / audio-models` —— `modelGroupCode` 一旦确定,整个对话内复用。
107
110
 
108
111
  ## 结构化过滤(Agent 翻译用户意图 → flag)
109
112
 
@@ -11,8 +11,10 @@
11
11
  | `lj-awb project current` | 查看云端当前项目组和项目预算 |
12
12
  | `lj-awb project switch --project-group-no <no> --yes` | 切换项目组 |
13
13
  | `lj-awb project users` | 列出创建项目组可选成员 |
14
+ | `lj-awb project users --project-group-no <no>` | 查询指定项目的候选成员及 `isCheck` 选中状态 |
14
15
  | `lj-awb project create --name "<name>" --point 1000 --yes` | 创建并切换项目组 |
15
16
  | `lj-awb project update --project-group-no <no> --name "<name>" --yes` | 修改项目组 |
17
+ | `lj-awb project update --project-group-no <no> --add-user-ids <id1,id2> --yes` | 追加成员,保留原成员和角色 |
16
18
  | `lj-awb project ensure --name "<name>" --point 1000 --yes` | 确保项目组存在 |
17
19
 
18
20
  ## 规则
@@ -29,3 +31,15 @@
29
31
  - 项目组选定后 → [`credits.md`](credits.md) 查 `billingPointBalance` + `projectBudgetBalance`,判断是否够跑下一批任务。
30
32
  - 项目组不存在但用户想要 → `project create` 比 `project ensure` 更明确;`ensure` 适合脚本场景(已存在则复用)。
31
33
  - 创建项目组前用户想拉人 → `project users` 列出当前团队可选成员(userId + 姓名),把选中的 userId 用逗号拼成 `--user-ids id1,id2` 传给 `project create`。也可以用 `--members-json '[{"userId":"..."}]'` 直接传 JSON。**不要让用户手敲 userId**,先跑 `project users` 取列表。
34
+
35
+ ## 已有项目追加成员
36
+
37
+ 先用 `project users --project-group-no <no>` 核对目标项目的候选人员,按 userId 选择成员,不只按同名昵称判断。追加前预览:
38
+
39
+ ```sh
40
+ lj-awb project update --project-group-no <no> --add-user-ids <id1,id2> --dry-run
41
+ ```
42
+
43
+ 预览会联网读取目标组成员,但不写入。确认后以 `--yes` 执行;提交完整合并名单,保留已选成员及 CREATOR、ADMIN、USER 角色,新增成员使用 USER。重复 userId 不重复加入;找不到请求成员时在提交前报错。
44
+
45
+ 仅追加成员不会改名、重设预算或切换当前项目组。`project ensure --name "<name>" --user-ids <id1,id2> --yes` 找到同名组时先补齐成员,再按原行为切换到该组,保留原预算;找不到时创建包含这些成员的新组。`ensure --dry-run` 保持离线预览,展示请求的 userId,不读取或展示合并后名单;需要核对已有组的完整合并名单时使用上面的 `update --dry-run`。