@lingjingai/lj-awb-cli 0.5.23 → 0.5.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/lj-awb-cli",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "description": "Lingjing AWB CLI monorepo with shared core, standalone CLI, and agent skills",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-cli-bin",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
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.5.23"
16
+ "@lingjingai/awb-core": "0.5.24"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-core",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "description": "Shared core runtime for Lingjing AWB CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1535,6 +1535,7 @@ export function shouldDefaultNeedAudioForVideoModel(model = {}, params = [], pro
1535
1535
  }
1536
1536
 
1537
1537
  async function fetchModelConstraintSchema(rawModel = {}, modelGroupCode) {
1538
+ if (Array.isArray(rawModel?.constraintSchema) && rawModel.constraintSchema.length) return rawModel.constraintSchema;
1538
1539
  const usage = trimToNull(rawModel?.usage);
1539
1540
  if (!usage) return [];
1540
1541
  const payload = await awbApi.fetchModelsByUsage(usage, { includeConstraintSchema: true }).catch(() => null);
@@ -2147,13 +2148,22 @@ async function loadModelOptionContext(modelGroupCode, options = {}) {
2147
2148
  }
2148
2149
 
2149
2150
  function restrictAutoAssetInputModes(modelGroupCode, inputModes) {
2150
- if (isAutoAssetSeedanceModel(modelGroupCode)) {
2151
+ if (isGoogleFlowVideoModel(modelGroupCode)) {
2152
+ const promptOnly = inputModes.find((mode) => mode.mode === 'prompt_only');
2153
+ if (promptOnly) {
2154
+ promptOnly.supported = true;
2155
+ delete promptOnly.unsupportedReason;
2156
+ }
2157
+ }
2158
+ if (isAutoAssetSeedanceModel(modelGroupCode) || isGoogleFlowVideoModel(modelGroupCode)) {
2151
2159
  for (const mode of inputModes) {
2152
2160
  if (mode.sourceKinds) mode.sourceKinds = mode.sourceKinds.filter((kind) => kind !== 'asset_id');
2153
2161
  if (mode.resourceSyntax) mode.resourceSyntax = mode.resourceSyntax.filter((example) => !example.includes('asset:'));
2154
2162
  if (mode.mode === 'subject_reference') {
2155
2163
  mode.supported = false;
2156
- mode.unsupportedReason = '自动加白模型只接受原素材,不接受主体或素材 ID。';
2164
+ mode.unsupportedReason = isGoogleFlowVideoModel(modelGroupCode)
2165
+ ? '此模型只接受原素材,不接受主体或素材 ID。'
2166
+ : '自动加白模型只接受原素材,不接受主体或素材 ID。';
2157
2167
  }
2158
2168
  }
2159
2169
  }
@@ -5240,6 +5250,10 @@ function isAutoAssetSeedanceModel(code) {
5240
5250
  return /^Auto_(JiMeng|BytePlus)_Seedance_(2|2_Fast|2_Mini|2_5)_VideoCreate_Group$/.test(code || '');
5241
5251
  }
5242
5252
 
5253
+ function isGoogleFlowVideoModel(code) {
5254
+ return code === 'Google_Flow_Omni_1_2_Flash_VideoCreate_Group';
5255
+ }
5256
+
5243
5257
  function needsAutoAssetVideoImageConversion(code) {
5244
5258
  return isAutoAssetSeedanceModel(code)
5245
5259
  || LEGACY_ASSET_REVIEW_MODELS.some((model) => model.modelGroupCode === code);
@@ -5257,6 +5271,14 @@ async function buildVideoRequest(kwargs = {}, options = {}) {
5257
5271
  && validationResources.resources.some((resource) => resource.source?.kind === 'asset_id')) {
5258
5272
  throw argumentError('自动加白模型不接受素材 ID', '请传本地文件、HTTP(S) 地址或平台文件路径,由服务端自动加白。');
5259
5273
  }
5274
+ if (isGoogleFlowVideoModel(model.modelGroupCode)) {
5275
+ if (validationResources.resources.some((resource) => resource.source?.kind === 'asset_id')) {
5276
+ throw argumentError('此模型不接受素材 ID', '请传本地图片/视频、HTTP(S) 地址或平台文件路径。');
5277
+ }
5278
+ if (validationResources.resources.some((resource) => !['image', 'video'].includes(resource.type) || resource.usage !== 'reference')) {
5279
+ throw argumentError('此模型仅支持图片或视频参考素材', '请使用 image:reference 或 video:reference,不支持首尾帧或参考音频。');
5280
+ }
5281
+ }
5260
5282
  const prompt = trimToNull(kwargs.prompt) ?? '';
5261
5283
  if (!prompt && !validationResources.resources.length) {
5262
5284
  throw argumentError('缺少视频生成输入', '至少传 --prompt 或 --resource。');
@@ -5272,7 +5294,10 @@ async function buildVideoRequest(kwargs = {}, options = {}) {
5272
5294
  defaultParams.duration = parseIntegerParam(kwargs.duration, '--duration', 0);
5273
5295
  }
5274
5296
  if (kwargs.ratio != null && kwargs.ratio !== '') defaultParams.ratio = kwargs.ratio;
5275
- if (kwargs.quality != null && kwargs.quality !== '') defaultParams.quality = kwargs.quality;
5297
+ if (kwargs.quality != null && kwargs.quality !== '') {
5298
+ defaultParams.quality = isGoogleFlowVideoModel(model.modelGroupCode) && String(kwargs.quality).toLowerCase() === '4k'
5299
+ ? '4k' : kwargs.quality;
5300
+ }
5276
5301
  if (kwargs.needAudio != null && kwargs.needAudio !== '') defaultParams.need_audio = toBool(kwargs.needAudio);
5277
5302
  let promptParams = normalizeUnifiedPromptParams(defaultParams);
5278
5303
  const validation = await validateCreateRequestAgainstModel('video', model.modelGroupCode, promptParams, validationResources.resourceDetails);
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: lj-awb
3
- version: 0.5.23
3
+ version: 0.5.24
4
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.23"
8
+ version: "0.5.24"
9
9
  bin: "lj-awb"
10
10
  cliHelp: "lj-awb --help"
11
11
  ---
@@ -1 +1 @@
1
- 0.5.23
1
+ 0.5.24
@@ -1,6 +1,6 @@
1
1
  {
2
- "skillVersion": "0.5.23",
3
- "minCliVersion": "0.5.23",
2
+ "skillVersion": "0.5.24",
3
+ "minCliVersion": "0.5.24",
4
4
  "preferredCommand": "lj-awb",
5
- "updatedAt": "2026-10-28"
5
+ "updatedAt": "2026-11-13"
6
6
  }