@lingjingai/lj-awb-cli 0.5.1 → 0.5.2
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/awb-cli-bin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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.
|
|
16
|
+
"@lingjingai/awb-core": "0.5.2"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1871,6 +1871,11 @@ function prettyValue(value, options = {}) {
|
|
|
1871
1871
|
return rewriteCommandPrefix(value);
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
|
+
function prettyFieldValue(key, value, options = {}) {
|
|
1875
|
+
if (key === 'projectBudgetMax' && Number(value) === -1) return '不限额';
|
|
1876
|
+
return prettyValue(value, options);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1874
1879
|
function resolveColumnValue(row, column) {
|
|
1875
1880
|
if (typeof column.value === 'function') return column.value(row);
|
|
1876
1881
|
if (typeof column.key === 'function') return column.key(row);
|
|
@@ -2141,7 +2146,7 @@ function detailRows(record, preferredKeys = [], excludedKeys = [], options = {})
|
|
|
2141
2146
|
})
|
|
2142
2147
|
: [];
|
|
2143
2148
|
const keys = [...preferred, ...fallback];
|
|
2144
|
-
return keys.map((key) => ({ label: humanizeKey(key), value: record[key] }));
|
|
2149
|
+
return keys.map((key) => ({ key, label: humanizeKey(key), value: record[key] }));
|
|
2145
2150
|
}
|
|
2146
2151
|
|
|
2147
2152
|
function renderDetails(lines, title, record, preferredKeys = [], excludedKeys = [], options = {}) {
|
|
@@ -2150,7 +2155,7 @@ function renderDetails(lines, title, record, preferredKeys = [], excludedKeys =
|
|
|
2150
2155
|
sectionTitle(lines, title);
|
|
2151
2156
|
const labelWidth = Math.min(22, Math.max(...rows.map((row) => displayWidth(row.label))));
|
|
2152
2157
|
for (const row of rows) {
|
|
2153
|
-
const value = String(
|
|
2158
|
+
const value = String(prettyFieldValue(row.key, row.value)).replace(/\s*\r?\n\s*/g, ' ');
|
|
2154
2159
|
const valueLines = wrapDisplay(value, options.valueWidth || 96);
|
|
2155
2160
|
for (const [index, valueLine] of valueLines.entries()) {
|
|
2156
2161
|
const label = index === 0 ? row.label : '';
|
package/skills/lj-awb/SKILL.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lj-awb
|
|
3
|
-
version: 0.5.
|
|
3
|
+
version: 0.5.2
|
|
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.
|
|
8
|
+
version: "0.5.2"
|
|
9
9
|
bin: "lj-awb"
|
|
10
10
|
cliHelp: "lj-awb --help"
|
|
11
11
|
---
|
package/skills/lj-awb/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.2
|