@lingjingai/lj-awb-cli 0.4.8 → 0.5.0

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.
@@ -1,6 +1,6 @@
1
1
  # Workflows Module
2
2
 
3
- 本模块描述 Agent 面向任务的标准编排。CLI 只执行确定性命令;Agent 负责把用户输入映射为参数、确认风险、串联命令;prompt 处理重点是组装可执行请求。
3
+ 本模块描述 Agent 面向任务的标准编排。CLI 只执行确定性命令;Agent 负责把用户输入映射为参数、确认风险、串联命令;prompt 默认原文直出,参数和素材才由 Agent 组装为可执行请求。
4
4
 
5
5
  ## 目录
6
6
 
@@ -65,7 +65,7 @@ lj-awb create video --model-group-code <code> --prompt "<...>" \
65
65
  --ratio <ratio> --quality <quality> --duration <seconds> \
66
66
  --project-group-no <projectGroupNo> --task-record-file .awb/tasks.jsonl --dry-run
67
67
 
68
- # 用户确认后把 --dry-run 换成 --yes 正式提交,再 task wait --task-id <id> --task-type VIDEO_GROUP
68
+ # 用户确认后把 --dry-run 换成 --yes 正式提交,再 task wait --task-id <id>
69
69
  ```
70
70
 
71
71
  向用户确认:模型组、比例、清晰度、时长、参考图、最终 prompt、预估积分、可扣积分余额、项目组预算。
@@ -53,7 +53,7 @@ CLI 失败时 envelope 形如:
53
53
  这是**等待窗口超时,不是任务失败**。直接续跑:
54
54
 
55
55
  ```bash
56
- lj-awb task wait --task-id <id> --task-type <type> --wait-seconds 180
56
+ lj-awb task wait --task-id <id> --wait-seconds 180
57
57
  ```
58
58
 
59
59
  如果连续 3-4 轮都仍未终态,向用户说明并建议改用 `task record-poll`(批量)或稍后再来。
@@ -30,6 +30,8 @@
30
30
  | outputKind | 命令 | 必报给用户 | agent 内部用 | 可丢弃 |
31
31
  |------------|------|-----------|--------------|--------|
32
32
  | `credits_balance` | `credits balance` | `billingPointBalance`、`projectBudgetBalance`、`projectBudgetMax` | — | `currentProjectGroupNo` |
33
+ | `credits_records` | `credits records` | `remainPoint`、`total`、`creditRecords[]` 精简明细(`point` 带 +/-);日常查询用默认 pretty 或 `-f text`,不要接 `jq` 整理普通明细 | `queryType`、分页信息 | 平台原始 operation/userId 等冗余字段 |
34
+ | `credit_detail_status` | `credits detail-status` | `statusText`、`lockTime/lockPoint`、`useTime/usePoint`、`regetTime/regetPoint` | `detailId`、原始 `status` | `oriDetailId`、cookie、原始响应 |
33
35
  | `credits_usage` | `credits usage` | `pointTotal`、`scannedTaskCount`、`buckets[]` 汇总 | `tasks[]`(若 `--include-tasks`) | sinceMs/untilMs 原值 |
34
36
  | `purchase_guide` | `credits buy` | `purchaseUrl` | — | — |
35
37
  | `redeem_result` | `credits redeem` | `redeemed`、`billingPointBalance` | `redemptionCode` | `currentProjectGroupNo` |
@@ -59,12 +61,13 @@
59
61
  | `task_submission` | `create image` / `create video` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand`、`statusCommand` | `taskId`、`taskType`(喂给 `task wait`) | uploads 数组、modelGroupCode |
60
62
  | `batch_task_submission` | `create image-batch` / `create video-batch` | 成功 / 失败计数、首条 `taskId` 用于追踪 | `tasks[]` 每条 taskId + status | localFiles 详情 |
61
63
  | `fee_estimate` | `create video-super-resolution-fee` | `pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
62
- | `task_submission` | `create video-super-resolution` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`nextCommand`(喂给 `task video-super-resolution-status`) | request 嵌套 |
63
- | `task_status` | `task wait` / `task image-status` / `task video-status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage` | `isTerminal`(false → 续 wait)、`timedOut` | `waitedMs`、`gmtCreate` |
64
+ | `task_submission` | `create video-super-resolution` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`nextCommand`(喂给 `task status --task-id <id>`) | request 嵌套 |
65
+ | `task_status` | `task wait` / `task status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage`、`benefitsId`(有值时可接 `credits detail-status --detail-id <id>` 查积分状态) | `isTerminal`(false → 续 wait)、`timedOut`、`pointNo` | `waitedMs`、`gmtCreate` |
64
66
  | `subtitle_task_submission` | `create video-subtitle-removal` | `submitted`、`taskId`、`pointCost`、`nextCommand` | `taskId`、`sourceTaskId` | budget 嵌套 |
65
- | `subtitle_task_status` | `task video-subtitle-status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage` | `taskId` | `gmtCreate` |
67
+ | `subtitle_task_status` | `task status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage` | `taskId` | `gmtCreate` |
66
68
 
67
- > `task_submission.nextCommand` 是平台给出的下一步建议命令(通常是 `task wait --task-id ...`);`task_submission.statusCommand` 是单次状态查询命令(通常是 `task image-status` / `task video-status`)。
69
+ > `task_submission.nextCommand` 是平台给出的下一步建议命令(通常是 `task wait --task-id ...`);`task_submission.statusCommand` 是单次状态查询命令(`task status --task-id ...`)。
70
+ > `resultUrls` / `originUrls` 交付给用户时整条 URL **原样照贴**,签名查询串(`?sign=...` / `?X-Tos-*`)不可省、不可截断、不可改写——只贴基础部分会让用户打不开。首条 `resultUrls[0]` 为带签名的展示链接,详见 [`../modules/task.md`](../modules/task.md) 交付规则。
68
71
 
69
72
  ## 任务台账
70
73
 
@@ -104,7 +107,7 @@
104
107
 
105
108
  | outputKind | 命令 | 必报给用户 | agent 内部用 | 可丢弃 |
106
109
  |------------|------|-----------|--------------|--------|
107
- | `update_result` | `update` / `update --check` | `updateAvailable`、`currentVersion`、`latestVersion`、`command` | `skillUpdated`、`restartRecommended` | 安装日志 |
110
+ | `update_result` | `update` / `update --check` | `updateAvailable`、`currentVersion`、`latestVersion`、`installer`、`command` | `skillUpdated`、`restartRecommended` | 安装日志 |
108
111
 
109
112
  ## Dry-run
110
113