@lingjingai/lj-awb-cli 0.4.3 → 0.4.4

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.4.3",
3
+ "version": "0.4.4",
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.4.3",
3
+ "version": "0.4.4",
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.3"
16
+ "@lingjingai/awb-core": "0.4.4"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-core",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Shared core runtime for Lingjing AWB CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -189,7 +189,15 @@ function normalizeDryRun(data = {}) {
189
189
  });
190
190
  }
191
191
 
192
- function normalizeTaskSubmission(data = {}) {
192
+ function submissionStatusCommand(commandName, data = {}) {
193
+ if (!data?.taskId) return null;
194
+ if (commandName === 'create image') return `${commandPrefix()} task image-status --task-id ${data.taskId}`;
195
+ if (commandName === 'create video') return `${commandPrefix()} task video-status --task-id ${data.taskId}`;
196
+ return null;
197
+ }
198
+
199
+ function normalizeTaskSubmission(commandName, data = {}) {
200
+ const statusCommand = rewriteCommandPrefix(data.statusCommand || submissionStatusCommand(commandName, data));
193
201
  return compactRecord({
194
202
  taskId: data.taskId,
195
203
  taskType: data.taskType,
@@ -206,6 +214,7 @@ function normalizeTaskSubmission(data = {}) {
206
214
  projectBudgetRemainingAfter: data.projectBudgetRemainingAfter ?? data.projectPointRemainingAfter,
207
215
  uploadCount: Array.isArray(data.uploads) ? data.uploads.length : undefined,
208
216
  nextCommand: rewriteCommandPrefix(data.nextCommand),
217
+ statusCommand,
209
218
  waited: data.waited ? normalizeTaskStatus(data.waited) : undefined,
210
219
  });
211
220
  }
@@ -550,7 +559,7 @@ export function normalizeOutputData(commandName, data) {
550
559
  case 'create image':
551
560
  case 'create video':
552
561
  case 'create video-super-resolution':
553
- return normalizeTaskSubmission(data);
562
+ return normalizeTaskSubmission(commandName, data);
554
563
  case 'create video-subtitle-removal':
555
564
  return normalizeSubtitleSubmission(data);
556
565
  case 'create image-fee':
@@ -1654,6 +1663,7 @@ const FIELD_LABELS = {
1654
1663
  sourceTaskId: '来源任务 ID',
1655
1664
  stateKey: '状态 Key',
1656
1665
  status: '状态',
1666
+ statusCommand: '状态查询命令',
1657
1667
  statusCommandTaskType: '状态任务类型',
1658
1668
  submitted: '已提交',
1659
1669
  successRate: '成功率',
@@ -1740,7 +1750,7 @@ const DETAIL_FIELDS_BY_KIND = {
1740
1750
  subtitle_task_status: ['taskId', 'publicId', 'remoteTaskId', 'taskType', 'taskStatus', 'isTerminal', 'projectGroupNo', 'resultCount', 'errorMessage', 'timedOut', 'waitedMs'],
1741
1751
  subtitle_task_submission: ['submitted', 'taskId', 'taskType', 'sourceTaskId', 'projectGroupNo', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'nextCommand'],
1742
1752
  task_status: ['taskId', 'publicId', 'remoteTaskId', 'taskType', 'taskStatus', 'isTerminal', 'modelGroupCode', 'projectGroupNo', 'pointNo', 'gmtCreate', 'resultCount', 'errorMessage', 'timedOut', 'waitedMs'],
1743
- task_submission: ['taskId', 'taskType', 'objectName', 'modelGroupCode', 'projectGroupNo', 'pointNo', 'points', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'uploadCount', 'nextCommand'],
1753
+ task_submission: ['taskId', 'taskType', 'objectName', 'modelGroupCode', 'projectGroupNo', 'pointNo', 'points', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'uploadCount', 'nextCommand', 'statusCommand'],
1744
1754
  update_result: ['checked', 'updated', 'updateAvailable', 'packageName', 'previousVersion', 'currentVersion', 'latestVersion', 'command', 'skillUpdated', 'restartRecommended', 'message'],
1745
1755
  upload_result: ['dryRun', 'fileCount', 'assetCount', 'localFileCount', 'resourceConversionCount'],
1746
1756
  };
@@ -2843,6 +2853,7 @@ function collectPrettyActions(commandName, normalized, context = {}) {
2843
2853
  actions.push({ label, value: rewriteCommandPrefix(value) });
2844
2854
  };
2845
2855
  if (normalized?.nextCommand) add('继续查询', normalized.nextCommand);
2856
+ if (normalized?.statusCommand) add('状态查询', normalized.statusCommand);
2846
2857
  if (normalized?.nextRefSubject) add('主体引用', normalized.nextRefSubject);
2847
2858
  if (normalized?.nextVoiceArg) add('音色参数', normalized.nextVoiceArg);
2848
2859
  if (normalized?.dryRun && context.confirmCommand) add('确认执行', context.confirmCommand);
@@ -3220,7 +3231,7 @@ export function formatTextOutput(commandName, data, context = {}) {
3220
3231
  'dryRun',
3221
3232
  'action',
3222
3233
  ],
3223
- ['nextCommand', 'nextRefSubject', ...(list ? ['count'] : []), ...(isModelList ? ['usage'] : [])],
3234
+ ['nextCommand', 'statusCommand', 'nextRefSubject', ...(list ? ['count'] : []), ...(isModelList ? ['usage'] : [])],
3224
3235
  );
3225
3236
  if (scalarLine) lines.push(scalarLine);
3226
3237
  if (list) {
@@ -3247,6 +3258,7 @@ export function formatTextOutput(commandName, data, context = {}) {
3247
3258
  }
3248
3259
  }
3249
3260
  if (normalized.nextCommand) lines.push(`next=${normalized.nextCommand}`);
3261
+ if (normalized.statusCommand) lines.push(`statusCommand=${normalized.statusCommand}`);
3250
3262
  if (normalized.nextRefSubject) lines.push(`nextRefSubject=${normalized.nextRefSubject}`);
3251
3263
  if (normalized.dryRun && context.confirmCommand) lines.push(`nextAfterConfirm=${context.confirmCommand}`);
3252
3264
  if (normalized.dryRun && !context.confirmCommand && context.executeCommand) lines.push(`next=${context.executeCommand}`);
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: lj-awb
3
- version: 0.4.3
3
+ version: 0.4.4
4
4
  description: "灵境 AWB CLI skill。使用 `lj-awb` 命令调用动漫平台 / AWB 云端能力,覆盖认证、项目组、积分、模型发现、上传、统一 create 创建域、任务查询、视频超分、最终产物 artifact CRUD 与本地 JSON 导入。用户说生图、生视频、视频超分、主体、音色、素材加白、去字幕、artifact 写入或查询时使用。正式生成、切换项目组、清空认证、artifact 写入等写入或扣费动作前必须确认。"
5
5
  metadata:
6
6
  bootstrap:
7
7
  package: "@lingjingai/lj-awb-cli"
8
- version: "0.4.3"
8
+ version: "0.4.4"
9
9
  bin: "lj-awb"
10
10
  cliHelp: "lj-awb --help"
11
11
  ---
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -1,6 +1,6 @@
1
1
  {
2
- "skillVersion": "0.4.3",
3
- "minCliVersion": "0.4.3",
2
+ "skillVersion": "0.4.4",
3
+ "minCliVersion": "0.4.4",
4
4
  "preferredCommand": "lj-awb",
5
- "updatedAt": "2026-05-28"
5
+ "updatedAt": "2026-06-04"
6
6
  }
@@ -54,7 +54,7 @@
54
54
  | outputKind | 命令 | 必报给用户 | agent 内部用 | 可丢弃 |
55
55
  |------------|------|-----------|--------------|--------|
56
56
  | `fee_estimate` | `create image-fee` / `create video-fee` | `pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
57
- | `task_submission` | `create image` / `create video` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`taskType`(喂给 `task wait`) | uploads 数组、modelGroupCode |
57
+ | `task_submission` | `create image` / `create video` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand`、`statusCommand` | `taskId`、`taskType`(喂给 `task wait`) | uploads 数组、modelGroupCode |
58
58
  | `batch_task_submission` | `create image-batch` / `create video-batch` | 成功 / 失败计数、首条 `taskId` 用于追踪 | `tasks[]` 每条 taskId + status | localFiles 详情 |
59
59
  | `fee_estimate` | `create video-super-resolution-fee` | `pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
60
60
  | `task_submission` | `create video-super-resolution` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`nextCommand`(喂给 `task video-super-resolution-status`) | request 嵌套 |
@@ -62,7 +62,7 @@
62
62
  | `subtitle_task_submission` | `create video-subtitle-removal` | `submitted`、`taskId`、`pointCost`、`nextCommand` | `taskId`、`sourceTaskId` | budget 嵌套 |
63
63
  | `subtitle_task_status` | `task video-subtitle-status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage` | `taskId` | `gmtCreate` |
64
64
 
65
- > `task_submission.nextCommand` 是平台给出的下一步建议命令(通常是 `task wait --task-id ...`)。看到就直接接着跑。
65
+ > `task_submission.nextCommand` 是平台给出的下一步建议命令(通常是 `task wait --task-id ...`);`task_submission.statusCommand` 是单次状态查询命令(通常是 `task image-status` / `task video-status`)。
66
66
 
67
67
  ## 任务台账
68
68