@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.
- package/README.md +13 -2
- package/build/volta-pre.mjs +64 -0
- package/package.json +3 -3
- package/packages/awb-cli/package.json +2 -2
- package/packages/awb-core/package.json +1 -1
- package/packages/awb-core/src/api.js +10 -9
- package/packages/awb-core/src/commands.js +53 -46
- package/packages/awb-core/src/common.js +3 -5
- package/packages/awb-core/src/output.js +88 -20
- package/packages/awb-core/src/services.js +226 -59
- package/packages/awb-core/src/standalone.js +21 -25
- package/packages/awb-core/src/update.js +74 -3
- package/skills/lj-awb/SKILL.md +13 -4
- package/skills/lj-awb/VERSION +1 -1
- package/skills/lj-awb/compat.json +2 -2
- package/skills/lj-awb/modules/asset.md +1 -1
- package/skills/lj-awb/modules/create-contract.md +10 -8
- package/skills/lj-awb/modules/create.md +1 -1
- package/skills/lj-awb/modules/credits.md +18 -1
- package/skills/lj-awb/modules/driver.md +3 -0
- package/skills/lj-awb/modules/evals.md +2 -2
- package/skills/lj-awb/modules/image.md +6 -6
- package/skills/lj-awb/modules/model.md +50 -1
- package/skills/lj-awb/modules/task-manual.md +3 -3
- package/skills/lj-awb/modules/task.md +6 -5
- package/skills/lj-awb/modules/upload.md +10 -10
- package/skills/lj-awb/modules/video.md +11 -13
- package/skills/lj-awb/modules/workflows.md +2 -2
- package/skills/lj-awb/references/error-codes.md +1 -1
- package/skills/lj-awb/references/output-fields.md +8 -5
|
@@ -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>
|
|
68
|
+
# 用户确认后把 --dry-run 换成 --yes 正式提交,再 task wait --task-id <id>
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
向用户确认:模型组、比例、清晰度、时长、参考图、最终 prompt、预估积分、可扣积分余额、项目组预算。
|
|
@@ -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
|
|
63
|
-
| `task_status` | `task wait` / `task
|
|
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
|
|
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`
|
|
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
|
|