@gobing-ai/knowledge-kit 0.1.22 → 0.1.23
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/dist/index.js +165 -91
- package/package.json +1 -1
- package/plugins/generations/gemini-tts/dist/index.js +47 -7
- package/plugins/generations/gemini-tts/src/gemini-client.ts +34 -6
- package/plugins/generations/music-gen/README.md +2 -2
- package/plugins/generations/music-gen/dist/index.js +46 -10
- package/plugins/generations/music-gen/presets/formats/song.yaml +6 -1
- package/plugins/generations/music-gen/presets/themes/synthwave.yaml +6 -1
- package/plugins/generations/music-gen/src/adapter/instance.ts +34 -11
- package/plugins/generations/music-gen/src/presets.ts +36 -3
- package/plugins/generations/omni-voice-gen/uv.toml +5 -0
- package/plugins/generations/vibe-voice-tts/README.md +64 -0
- package/plugins/generations/vibe-voice-tts/dist/index.js +14259 -0
- package/plugins/generations/vibe-voice-tts/package.json +16 -0
- package/plugins/generations/vibe-voice-tts/plugin.json +6 -0
- package/plugins/generations/vibe-voice-tts/profiles.json +10 -0
- package/plugins/generations/vibe-voice-tts/pyproject.toml +9 -0
- package/plugins/generations/vibe-voice-tts/python/worker.py +566 -0
- package/plugins/generations/vibe-voice-tts/src/index.ts +88 -0
- package/plugins/generations/vibe-voice-tts/src/vibevoice-client.ts +828 -0
- package/plugins/generations/vibe-voice-tts/tsconfig.json +8 -0
- package/plugins/generations/vibe-voice-tts/uv.lock +1767 -0
- package/plugins/generations/vibe-voice-tts/uv.toml +4 -0
- package/plugins/generations/voice-gen/dist/index.js +31 -1
- package/plugins/generations/voice-gen/src/voicebox-client.ts +50 -1
- package/plugins/generations/voxcpm-tts/dist/index.js +81 -9
- package/plugins/generations/voxcpm-tts/python/worker.py +9 -0
- package/plugins/generations/voxcpm-tts/src/index.ts +41 -0
- package/plugins/generations/voxcpm-tts/src/voxcpm-client.ts +32 -11
- package/plugins/generations/voxcpm-tts/uv.toml +5 -0
- package/plugins/kk/README.md +21 -0
- package/plugins/kk/decisions/kk-safety.yaml +5 -2
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/schedules/kk-serve.launchd.plist.tmpl +12 -1
- package/plugins/kk/scripts/daily-stages.ts +274 -40
- package/plugins/kk/scripts/kk-workflow-stages.ts +74 -11
- package/plugins/kk/scripts/safety-artifact-check.ts +28 -5
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +4 -3
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +6 -5
- package/plugins/kk/workflows/kk-daily-safety.yaml +12 -10
- package/plugins/kk/workflows/kk-music.yaml +20 -16
- package/plugins/kk/workflows/kk-news-generate.yaml +23 -3
- package/plugins/kk/workflows/kk-publish.yaml +4 -1
- package/plugins/publishings/linkedin-pub/dist/index.js +51 -9
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +5 -0
- package/plugins/publishings/linkedin-pub/src/index.ts +99 -12
- package/plugins/publishings/surfdash-pub/dist/index.js +8 -4
- package/plugins/publishings/surfdash-pub/src/index.ts +7 -1
- package/plugins/publishings/surfdash-pub/src/patch.ts +21 -3
- package/plugins/publishings/threads-pub/dist/index.js +47 -5
- package/plugins/publishings/threads-pub/dist/profile-check.js +7 -1
- package/plugins/publishings/threads-pub/src/post-rail.ts +101 -4
- package/plugins/publishings/wechatmp-pub/dist/index.js +94 -34
- package/plugins/publishings/wechatmp-pub/src/cgi-draft.ts +87 -53
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +61 -3
- package/plugins/publishings/wechatmp-pub/src/flow.ts +28 -0
- package/plugins/publishings/x-pub/dist/index.js +84 -9
- package/plugins/publishings/x-pub/src/post-rail.ts +154 -12
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { parseArgs } from 'node:util';
|
|
2
|
+
import { echoError } from '@gobing-ai/ts-utils';
|
|
3
|
+
import { processGeneratorIO } from '@gobing-ai/voice-gen';
|
|
4
|
+
import { createVibeVoiceClient, VIBEVOICE_TTS_GENERATOR, type VibeVoiceClientOptions } from './vibevoice-client';
|
|
5
|
+
|
|
6
|
+
export * from './vibevoice-client';
|
|
7
|
+
|
|
8
|
+
interface BatchManifestEntry {
|
|
9
|
+
in: string;
|
|
10
|
+
out: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* `kk` plugin entry: render Doc[] into audio Content through the shared voice-gen pipeline,
|
|
15
|
+
* injecting the invocation-scoped VibeVoice adapter and closing it (worker, signals, scratch) in
|
|
16
|
+
* `finally`. The worker stays lazy until `health()` runs after shared Doc validation, so empty
|
|
17
|
+
* input starts nothing (R5/R6).
|
|
18
|
+
*
|
|
19
|
+
* When `VIBEVOICE_BATCH_MANIFEST` (or `--batch <path>`) is set, renders every `{ in, out }` entry
|
|
20
|
+
* sequentially against one shared worker handle so the model loads at most once per episode.
|
|
21
|
+
*/
|
|
22
|
+
export async function main(
|
|
23
|
+
argv: string[] = process.argv.slice(2),
|
|
24
|
+
options: VibeVoiceClientOptions = {},
|
|
25
|
+
): Promise<number> {
|
|
26
|
+
const { values } = parseArgs({
|
|
27
|
+
args: argv,
|
|
28
|
+
options: {
|
|
29
|
+
in: { type: 'string' },
|
|
30
|
+
out: { type: 'string' },
|
|
31
|
+
batch: { type: 'string' },
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const env = options.env ?? (process.env as Record<string, string | undefined>);
|
|
36
|
+
const batchPath = values.batch ?? env.VIBEVOICE_BATCH_MANIFEST;
|
|
37
|
+
|
|
38
|
+
if (batchPath) {
|
|
39
|
+
let entries: BatchManifestEntry[];
|
|
40
|
+
try {
|
|
41
|
+
const parsed = JSON.parse(await Bun.file(batchPath).text()) as unknown;
|
|
42
|
+
if (
|
|
43
|
+
!Array.isArray(parsed) ||
|
|
44
|
+
parsed.some((e) => !e || typeof e !== 'object' || typeof e.in !== 'string' || typeof e.out !== 'string')
|
|
45
|
+
) {
|
|
46
|
+
throw new Error('batch manifest must be an array of { in, out } string pairs');
|
|
47
|
+
}
|
|
48
|
+
entries = parsed as BatchManifestEntry[];
|
|
49
|
+
} catch (err: unknown) {
|
|
50
|
+
echoError(
|
|
51
|
+
`vibe-voice-tts failed: invalid batch manifest: ${err instanceof Error ? err.message : String(err)}`,
|
|
52
|
+
);
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
55
|
+
const handle = createVibeVoiceClient(options);
|
|
56
|
+
try {
|
|
57
|
+
for (const entry of entries) {
|
|
58
|
+
await processGeneratorIO(entry.in, entry.out, handle.client, undefined, VIBEVOICE_TTS_GENERATOR);
|
|
59
|
+
}
|
|
60
|
+
return 0;
|
|
61
|
+
} catch (err: unknown) {
|
|
62
|
+
echoError(`vibe-voice-tts failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
63
|
+
return 1;
|
|
64
|
+
} finally {
|
|
65
|
+
await handle.close();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (!values.in || !values.out) {
|
|
70
|
+
echoError('vibe-voice-tts failed: Missing required arguments: --in and --out');
|
|
71
|
+
return 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const handle = createVibeVoiceClient(options);
|
|
75
|
+
try {
|
|
76
|
+
await processGeneratorIO(values.in, values.out, handle.client, undefined, VIBEVOICE_TTS_GENERATOR);
|
|
77
|
+
return 0;
|
|
78
|
+
} catch (err: unknown) {
|
|
79
|
+
echoError(`vibe-voice-tts failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
80
|
+
return 1;
|
|
81
|
+
} finally {
|
|
82
|
+
await handle.close();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (import.meta.main) {
|
|
87
|
+
process.exit(await main());
|
|
88
|
+
}
|