@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.
- package/.claude-plugin/marketplace.json +1 -1
- package/package.json +1 -1
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/scripts/daily-stages.ts +5 -1
- package/plugins/kk/scripts/kk-workflow-stages.ts +1 -1
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +3 -1
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +1 -1
package/package.json
CHANGED
package/plugins/kk/plugin.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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: "
|
|
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"
|