@gobing-ai/knowledge-kit 0.1.6 → 0.1.7

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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "plugins": [
8
8
  {
9
- "version": "0.1.6",
9
+ "version": "0.1.7",
10
10
  "name": "kk",
11
11
  "source": "./plugins/kk",
12
12
  "description": "knowledge-kit — a set of toolkit for knowledge management"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/knowledge-kit",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "An ingest → create → publish content pipeline CLI (Bun).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "kk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "knowledge-kit Claude Code plugin: skills, commands, subagents, hooks, and rules"
5
5
  }
@@ -74,6 +74,7 @@ import {
74
74
  coverBrief,
75
75
  coverNormalizeBody,
76
76
  dedupPlanByTitle,
77
+ expandHome,
77
78
  fail,
78
79
  failWith,
79
80
  firstArtifact,
@@ -1317,7 +1318,10 @@ export function dailyIntro(args: string[]): void {
1317
1318
  if (rawFile === undefined) {
1318
1319
  failWith(1, 'intro-music: voice content carries no mp3Path/audioPath');
1319
1320
  }
1320
- const introPath = resolve(introSrc);
1321
+ // The sting is an operator asset under the config root (ADR-042), not a works artifact:
1322
+ // workflow vars carry it as `~/.config/kk/voices/…`, and a shell does not expand `~` inside
1323
+ // the quoted "${vars.intro_music}" argument, so expansion happens here.
1324
+ const introPath = resolve(expandHome(introSrc));
1321
1325
  if (!existsSync(introPath)) failWith(1, `intro-music: intro file not found: ${introPath}`);
1322
1326
  const mainPath = resolve(rawFile);
1323
1327
  if (!existsSync(mainPath)) failWith(1, `intro-music: generated audio not found: ${mainPath}`);
@@ -751,7 +751,7 @@ function formatRunDate(): string {
751
751
  }
752
752
 
753
753
  /** Expand the `~/` and `$HOME/` prefixes the config examples use. */
754
- function expandHome(p: string): string {
754
+ export function expandHome(p: string): string {
755
755
  if (p.startsWith('~/')) return join(homedir(), p.slice(2));
756
756
  if (p.startsWith('$HOME/')) return join(homedir(), p.slice('$HOME/'.length));
757
757
  return p;
@@ -30,7 +30,9 @@ vars:
30
30
  # env block; smoke render 6.8s). Flip back with vdriver="voicebox".
31
31
  vdriver: "gemini"
32
32
  # 20260917 review #7: 8s intro sting prepended to every daily output; empty = skip.
33
- intro_music: ".works/kk-daily-ai-voice/AI每日资讯_8秒播客片头.mp3"
33
+ # The sting is an operator asset: it lives under the config root (ADR-042), never in the works
34
+ # tree. `~` is expanded by the daily-intro stage, so it stays machine-portable.
35
+ intro_music: "~/.config/kk/voices/AI每日资讯_8秒播客片头.mp3"
34
36
  # 20260917 review #4/#6: surfdash checkout the patch stage commits to.
35
37
  surfdash_root: "/Users/robin/xprojects/surfdash"
36
38
  title: ""
@@ -35,7 +35,7 @@ vars:
35
35
  # exists; flipping this one var to "gemini" is the escape hatch (measured dry: 20-25 ms / -34..-37 dB)
36
36
  # at the price of a 1h47m-2h21m remote render.
37
37
  vdriver: "voxcpm"
38
- intro_music: ".works/kk-daily-ai-voice/AI每日资讯_8秒播客片头.mp3"
38
+ intro_music: "~/.config/kk/voices/AI每日资讯_8秒播客片头.mp3"
39
39
  surfdash_root: "/Users/robin/xprojects/surfdash"
40
40
  title: ""
41
41
  skip_review: "false"