@gobing-ai/knowledge-kit 0.0.16 → 0.0.18
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/README.md +74 -0
- package/dist/index.js +46 -100
- package/package.json +19 -1
- package/plugins/generations/content-gen/dist/index.js +42 -94
- package/plugins/generations/core-facts-gen/dist/index.js +51 -100
- package/plugins/generations/daily-article-gen/dist/index.js +98 -100
- package/plugins/generations/daily-article-gen/src/index.ts +80 -6
- package/plugins/generations/dailynews-gen/dist/index.js +144 -130
- package/plugins/generations/dailynews-gen/src/script-builder.ts +141 -33
- package/plugins/generations/episode-plan-gen/dist/index.js +124 -115
- package/plugins/generations/episode-plan-gen/src/index.ts +111 -24
- package/plugins/generations/image-gen/dist/index.js +63 -115
- package/plugins/generations/news-report-gen/dist/index.js +164 -100
- package/plugins/generations/news-report-gen/src/index.ts +199 -7
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/pipeline.py +17 -1
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/qc.py +4 -22
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/voicescript.py +8 -0
- package/plugins/generations/voice-gen/dist/index.js +136 -117
- package/plugins/generations/voice-gen/src/concat.ts +34 -0
- package/plugins/generations/voice-gen/src/index.ts +6 -4
- package/plugins/generations/voice-gen/src/voicescript.ts +61 -0
- package/plugins/ingestions/aihot-ingest/dist/index.js +47 -97
- package/plugins/ingestions/horizon-ingest/dist/index.js +47 -96
- package/plugins/ingestions/karakeep-local/dist/index.js +217 -266
- package/plugins/ingestions/last30days-ingest/dist/index.js +42 -91
- package/plugins/ingestions/web-search/dist/index.js +68 -117
- package/plugins/kk/commands/workflow-run.md +25 -2
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/scripts/kk-workflow-stages.ts +522 -163
- package/plugins/kk/scripts/validate-voicescript.ts +55 -0
- package/plugins/kk/skills/publish/SKILL.md +80 -0
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +125 -120
- package/plugins/kk/workflows/leftover-publish-fanout-example.yaml +53 -0
- package/plugins/publishings/emdash-pub/dist/index.js +42 -91
- package/plugins/publishings/infoq-pub/dist/index.js +21994 -0
- package/plugins/publishings/infoq-pub/package.json +17 -0
- package/plugins/publishings/infoq-pub/plugin.json +7 -0
- package/plugins/publishings/infoq-pub/src/index.ts +123 -0
- package/plugins/publishings/infoq-pub/tsconfig.json +4 -0
- package/plugins/publishings/juejin-pub/dist/index.js +21994 -0
- package/plugins/publishings/juejin-pub/package.json +17 -0
- package/plugins/publishings/juejin-pub/plugin.json +7 -0
- package/plugins/publishings/juejin-pub/src/index.ts +123 -0
- package/plugins/publishings/juejin-pub/tsconfig.json +4 -0
- package/plugins/publishings/medium-pub/dist/index.js +22041 -0
- package/plugins/publishings/medium-pub/package.json +17 -0
- package/plugins/publishings/medium-pub/plugin.json +7 -0
- package/plugins/publishings/medium-pub/src/index.ts +215 -0
- package/plugins/publishings/medium-pub/tsconfig.json +4 -0
- package/plugins/publishings/podcast-pub/dist/index.js +183 -123
- package/plugins/publishings/podcast-pub/src/index.ts +47 -3
- package/plugins/publishings/podcast-pub/src/show-notes.ts +153 -34
- package/plugins/publishings/qiita-pub/dist/index.js +42 -91
- package/plugins/publishings/substack-pub/dist/index.js +21994 -0
- package/plugins/publishings/substack-pub/package.json +17 -0
- package/plugins/publishings/substack-pub/plugin.json +7 -0
- package/plugins/publishings/substack-pub/src/index.ts +123 -0
- package/plugins/publishings/substack-pub/tsconfig.json +4 -0
- package/plugins/publishings/surfdash-pub/dist/index.js +172 -103
- package/plugins/publishings/surfdash-pub/src/index.ts +32 -2
- package/plugins/publishings/wechatmp-pub/dist/index.js +22119 -0
- package/plugins/publishings/wechatmp-pub/package.json +17 -0
- package/plugins/publishings/wechatmp-pub/plugin.json +7 -0
- package/plugins/publishings/wechatmp-pub/src/index.ts +304 -0
- package/plugins/publishings/wechatmp-pub/tsconfig.json +4 -0
- package/plugins/publishings/x-pub/dist/index.js +22110 -0
- package/plugins/publishings/x-pub/package.json +17 -0
- package/plugins/publishings/x-pub/plugin.json +7 -0
- package/plugins/publishings/x-pub/src/index.ts +222 -0
- package/plugins/publishings/x-pub/tsconfig.json +4 -0
- package/plugins/publishings/xhs-pub/dist/index.js +21994 -0
- package/plugins/publishings/xhs-pub/package.json +17 -0
- package/plugins/publishings/xhs-pub/plugin.json +7 -0
- package/plugins/publishings/xhs-pub/src/index.ts +123 -0
- package/plugins/publishings/xhs-pub/tsconfig.json +4 -0
- package/plugins/publishings/zenn-pub/dist/index.js +42 -91
|
@@ -28,8 +28,8 @@ Parse per the frozen rule:
|
|
|
28
28
|
|
|
29
29
|
- First token is the workflow **name** when it matches `^[a-z0-9][a-z0-9-]*$` and is not `--in`;
|
|
30
30
|
otherwise `name=kk-storm-research` and that token is the topic. Supported profile names:
|
|
31
|
-
`kk-storm-research` (default), `kk-itc`, `kk-solo-podcast`. Any other name after successful copy → exit 1 listing
|
|
32
|
-
`kk-storm-research`, `kk-itc`, `kk-solo-podcast`.
|
|
31
|
+
`kk-storm-research` (default), `kk-itc`, `kk-solo-podcast`, `kk-daily-ai-voice`. Any other name after successful copy → exit 1 listing
|
|
32
|
+
`kk-storm-research`, `kk-itc`, `kk-solo-podcast`, `kk-daily-ai-voice`.
|
|
33
33
|
- `--in <file>` → file mode. `--force` → overwrite an existing dest YAML / existing `brief.md`.
|
|
34
34
|
- Profile `kk-storm-research`: `--dir <path>` (default `$works_dir/kk-storm-research/<topic-id>`),
|
|
35
35
|
`--fixture` → force `fixture: "true"`.
|
|
@@ -40,6 +40,9 @@ Parse per the frozen rule:
|
|
|
40
40
|
- Profile `kk-solo-podcast`: `--dir <path>` (default `$works_dir/kk-solo-podcast/<date>`), `--outline <a|b|c>`
|
|
41
41
|
(default empty), `--duration <min>` (default `8`), `--language <code>` (default `en`),
|
|
42
42
|
`--script-approved` (sets `script_approved=true`; default off). `--fixture` is storm-only.
|
|
43
|
+
- Profile `kk-daily-ai-voice`: `--dir <path>` (default `$works_dir/kk-daily-ai-voice/<date>`),
|
|
44
|
+
`--publish <true|false>` (default `false`), `--last30days <true|false>` (default `false`),
|
|
45
|
+
`--skip-review` (sets `skip_review=true`; default off). `--fixture` is storm-only.
|
|
43
46
|
- **XOR:** exactly one of `<topic>` / `--in <file>`. Both set or both empty → exit 1, stderr
|
|
44
47
|
states the XOR rule, no writes.
|
|
45
48
|
|
|
@@ -241,6 +244,19 @@ spur workflow run "$dest" --vars \
|
|
|
241
244
|
"{\"topic\":\"$TOPIC\",\"input_file\":\"$INPUT_FILE\",\"work_dir\":\"$work_dir\",\"outline\":\"$OUTLINE\",\"script_approved\":\"$SCRIPT_APPROVED\",\"force\":\"$FORCE\",\"target_duration_min\":\"$DURATION\",\"language\":\"$LANGUAGE\",\"voice_profile\":\"$VOICE_PROFILE\",\"validate_script\":\"$vs_arg\",\"wrap_script\":\"$ws_arg\",\"plugins_path\":\"\",\"agent\":\"$AGENT\"}"
|
|
242
245
|
```
|
|
243
246
|
|
|
247
|
+
### Profile `kk-daily-ai-voice`
|
|
248
|
+
|
|
249
|
+
Bind vars: `work_dir`, `publish_enabled`, `last30days_enabled`, `skip_review`, `plugins_path`
|
|
250
|
+
(empty → ADR-012 default discovery), `agent`. `$dest` resolves like solo-podcast. The run is
|
|
251
|
+
topicless — no `topic`/`input_file`/`fixture` vars. `run_date` is computed by the `prepare`
|
|
252
|
+
state and written to `$work_dir/run-date.txt`. The `review` state pauses the run for operator
|
|
253
|
+
approval of the VoiceScript; resume with `spur workflow continue [run-id]`.
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
spur workflow run "$dest" --vars \
|
|
257
|
+
"{\"work_dir\":\"$work_dir\",\"publish_enabled\":\"$PUBLISH\",\"last30days_enabled\":\"$L30D\",\"skip_review\":\"$SKIP_REVIEW\",\"plugins_path\":\"\",\"agent\":\"$AGENT\"}"
|
|
258
|
+
```
|
|
259
|
+
|
|
244
260
|
## 6. Report
|
|
245
261
|
|
|
246
262
|
- **`kk-storm-research`**: print resolved `work_dir`, then `$work_dir/content.md` (report sidecar)
|
|
@@ -251,6 +267,13 @@ spur workflow run "$dest" --vars \
|
|
|
251
267
|
- **`kk-solo-podcast`**: print resolved `work_dir`, then `$work_dir/1-briefing-briefing.md`,
|
|
252
268
|
`$work_dir/3-script-voicescript.yaml`, `$work_dir/4-audio/content.json`, and
|
|
253
269
|
`$work_dir/4-audio/content.wav`.
|
|
270
|
+
- **`kk-daily-ai-voice`**: print resolved `work_dir` (read the date from `$work_dir/run-date.txt`),
|
|
271
|
+
then `$work_dir/2-article/<date>_06_article_article.md`,
|
|
272
|
+
`$work_dir/2-script/<date>_08_script_voicescript.yaml`,
|
|
273
|
+
`$work_dir/3-audio/<date>_11_generate_content.json` (carries the audio path and QC metrics),
|
|
274
|
+
and `$work_dir/<date>_19_run-report_report.md`. With `publish_enabled=true` also print
|
|
275
|
+
`$work_dir/3-publish/<date>_17_publish_publish-status.txt` and the
|
|
276
|
+
`<date>_14_publish-surfdash_result.json` / `<date>_16_publish-podcast_result.json` outcomes.
|
|
254
277
|
|
|
255
278
|
If the run ended `failed`, show the failing state (`spur workflow trace <run-id> --json`) and the
|
|
256
279
|
fail-loud recovery line.
|
package/plugins/kk/plugin.json
CHANGED