@lingjingai/lj-awb-cli 0.3.11 → 0.3.12

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 CHANGED
@@ -53,6 +53,15 @@ lj-awb --help
53
53
  lj-awb auth status
54
54
  ```
55
55
 
56
+ 安装包的 `postinstall` 会默认把随包分发的 `lj-awb` skill 安装到:
57
+
58
+ ```text
59
+ ~/.cc-switch/skills/lj-awb
60
+ ~/.codex/skills/lj-awb
61
+ ```
62
+
63
+ 可用 `LINGJING_AWB_SKILL_INSTALL_DIR` 指定单一安装目录,或用 `LINGJING_AWB_SKIP_SKILL_INSTALL=1` 跳过 skill 安装。
64
+
56
65
  源码运行:
57
66
 
58
67
  ```bash
package/install.mjs CHANGED
@@ -22,9 +22,13 @@ function copyDirectory(sourceDir, targetDir) {
22
22
 
23
23
  const packageDir = dirname(fileURLToPath(import.meta.url));
24
24
  const skillSourceDir = join(packageDir, 'skills', 'lj-awb');
25
- const skillTargetDir = process.env.LINGJING_AWB_SKILL_INSTALL_DIR
26
- || process.env.ANIME_SKILL_INSTALL_DIR
27
- || join(homedir(), '.cc-switch', 'skills', 'lj-awb');
25
+ const explicitSkillTargetDir = process.env.LINGJING_AWB_SKILL_INSTALL_DIR || process.env.ANIME_SKILL_INSTALL_DIR;
26
+ const skillTargetDirs = explicitSkillTargetDir
27
+ ? [explicitSkillTargetDir]
28
+ : [
29
+ join(homedir(), '.cc-switch', 'skills', 'lj-awb'),
30
+ join(homedir(), '.codex', 'skills', 'lj-awb'),
31
+ ];
28
32
 
29
33
  if (process.env.LINGJING_AWB_SKIP_SKILL_INSTALL === '1' || process.env.ANIME_SKIP_SKILL_INSTALL === '1') {
30
34
  log('Skipped lj-awb skill install because LINGJING_AWB_SKIP_SKILL_INSTALL=1.');
@@ -36,6 +40,8 @@ if (!existsSync(skillSourceDir)) {
36
40
  process.exit(0);
37
41
  }
38
42
 
39
- rmSync(skillTargetDir, { recursive: true, force: true });
40
- copyDirectory(skillSourceDir, skillTargetDir);
41
- log(`Installed lj-awb skill -> ${skillTargetDir}`);
43
+ for (const skillTargetDir of [...new Set(skillTargetDirs)]) {
44
+ rmSync(skillTargetDir, { recursive: true, force: true });
45
+ copyDirectory(skillSourceDir, skillTargetDir);
46
+ log(`Installed lj-awb skill -> ${skillTargetDir}`);
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/lj-awb-cli",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
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.3.11",
3
+ "version": "0.3.12",
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.3.11"
16
+ "@lingjingai/awb-core": "0.3.12"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/awb-core",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Shared core runtime for Lingjing AWB CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lj-awb
3
- version: 0.3.11
3
+ version: 0.3.12
4
4
  description: "灵境 AWB CLI skill。使用 `lj-awb` 命令调用动漫平台 / AWB 云端能力,覆盖认证、项目组、积分、模型发现、上传、生图、生视频和任务查询。正式生成、切换项目组、清空认证等写入或扣费动作前必须确认。"
5
5
  metadata:
6
6
  requires:
@@ -1 +1 @@
1
- 0.3.11
1
+ 0.3.12
@@ -1,6 +1,6 @@
1
1
  {
2
- "skillVersion": "0.3.11",
3
- "minCliVersion": "0.3.11",
2
+ "skillVersion": "0.3.12",
3
+ "minCliVersion": "0.3.12",
4
4
  "preferredCommand": "lj-awb",
5
- "updatedAt": "2026-05-09"
5
+ "updatedAt": "2026-05-11"
6
6
  }