@gobing-ai/knowledge-kit 0.0.17 → 0.0.19
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 +108 -107
- 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 +57 -99
- package/plugins/generations/daily-article-gen/src/index.ts +12 -4
- package/plugins/generations/dailynews-gen/dist/index.js +57 -102
- package/plugins/generations/dailynews-gen/src/script-builder.ts +9 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +120 -113
- package/plugins/generations/episode-plan-gen/src/index.ts +102 -22
- package/plugins/generations/image-gen/dist/index.js +63 -115
- package/plugins/generations/news-report-gen/dist/index.js +117 -99
- package/plugins/generations/news-report-gen/src/index.ts +117 -1
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/pipeline.py +1 -1
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/voicescript.py +8 -0
- package/plugins/generations/voice-gen/dist/index.js +161 -120
- package/plugins/generations/voice-gen/src/concat.ts +34 -0
- package/plugins/generations/voice-gen/src/index.ts +14 -4
- package/plugins/generations/voice-gen/src/voicebox-server.ts +91 -0
- package/plugins/generations/voice-gen/src/voicescript.ts +8 -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 +10 -6
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/scripts/kk-workflow-stages.ts +376 -70
- package/plugins/kk/skills/publish/SKILL.md +80 -0
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +136 -224
- 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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: publish
|
|
3
|
+
description: >-
|
|
4
|
+
Thin operator surface for leftover publish channels — "publish this draft to
|
|
5
|
+
Medium", "fan out to Qiita and Medium", "prepare a Juejin draft". Shells
|
|
6
|
+
`kk executor run` / `kk fanout` for file-cli and script channels; sequences
|
|
7
|
+
agent-default CMS channels as workflow `agent.run` steps. Does not own
|
|
8
|
+
transport.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# publish — leftover channel operator surface
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Drive harvested `kind: publish` plugins after a draft exists. **The plugin owns
|
|
16
|
+
transport and Result.** This skill selects the channel, confirms draft vs live,
|
|
17
|
+
and shells `kk` — it does not call an LLM from inside a plugin process and does
|
|
18
|
+
not add a `kk publish` noun.
|
|
19
|
+
|
|
20
|
+
## Channels
|
|
21
|
+
|
|
22
|
+
| Channel | Plugin | Transport | How this skill invokes it |
|
|
23
|
+
| --- | --- | --- | --- |
|
|
24
|
+
| medium | `medium-pub` | `file-cli` (token API) | `kk executor run medium-pub --in <content.json> --out <result.json>` |
|
|
25
|
+
| wechatmp | `wechatmp-pub` | `file-cli` (`draft/add`) | `kk executor run wechatmp-pub` (default operation `draft`) |
|
|
26
|
+
| x post | `x-pub` | `file-cli` (`POST /2/tweets`) | `kk executor run x-pub` (`options.operation` omitted / `post`) |
|
|
27
|
+
| x article | `x-pub` | `browser` / `agent` | workflow `agent.run` — not `kk fanout` |
|
|
28
|
+
| juejin | `juejin-pub` | `browser` / `agent` | workflow `agent.run` |
|
|
29
|
+
| infoq | `infoq-pub` | `browser` / `agent` | workflow `agent.run` |
|
|
30
|
+
| substack | `substack-pub` | `browser` / `agent` | workflow `agent.run` |
|
|
31
|
+
| xhs | `xhs-pub` | `browser` / `agent` | workflow `agent.run` |
|
|
32
|
+
|
|
33
|
+
Already-harvested file-cli channels (`qiita-pub`, `zenn-pub`, `surfdash-pub`,
|
|
34
|
+
`emdash-pub`, `podcast-pub`) compose the same way.
|
|
35
|
+
|
|
36
|
+
## Do not
|
|
37
|
+
|
|
38
|
+
- Embed Playwright selectors or reimplement a transport here.
|
|
39
|
+
- Spawn an LLM from `kk fanout` (ADR-007 R4). Agent-default channels are
|
|
40
|
+
sequential workflow `agent.run` steps — see
|
|
41
|
+
`plugins/kk/workflows/leftover-publish-fanout-example.yaml`.
|
|
42
|
+
- Add a first-layer `kk publish` command.
|
|
43
|
+
- Put secrets in `--in` JSON or `plugin.json`. Env only.
|
|
44
|
+
|
|
45
|
+
## Confirmation
|
|
46
|
+
|
|
47
|
+
Default Result is **draft / unpublished**. Live publish (`public`, WeChat
|
|
48
|
+
`freepublish/submit`, CMS submit) requires an explicit operator confirmation
|
|
49
|
+
in this skill before the plugin is invoked with a live status. Under
|
|
50
|
+
`KK_NONINTERACTIVE=1`, proceed only when the `--in` payload already carries
|
|
51
|
+
the confirmed live status; otherwise fail naming the switch.
|
|
52
|
+
|
|
53
|
+
## Invocation
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
<channel> [--in <content.json>] [--out <result.json>] [--live]
|
|
57
|
+
[--fanout <channel>,<channel>]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
1. Resolve `--in` Content (required).
|
|
61
|
+
2. If `--fanout` lists two or more **file-cli or script** channels: run
|
|
62
|
+
`kk fanout --in <content.json> --targets <list> --out <aggregate.json>`.
|
|
63
|
+
Each target contributes one `targets[]` Result entry.
|
|
64
|
+
3. If the channel's default driver is `agent`: do **not** call `kk fanout`.
|
|
65
|
+
Tell the operator (or the workflow) to run the page against
|
|
66
|
+
`~/.config/kk/browser-profiles/<channel>` then `kk executor run <plugin>`
|
|
67
|
+
so the plugin writes Result. The example workflow sequences that as
|
|
68
|
+
`agent.run`.
|
|
69
|
+
4. Otherwise: `kk executor run <plugin> --in … --out …`.
|
|
70
|
+
5. Report `--out` `ok`, `target`, `id`/`url`, and `error` verbatim on failure.
|
|
71
|
+
|
|
72
|
+
## Env (plugin-owned; never echoed)
|
|
73
|
+
|
|
74
|
+
| Plugin | Required |
|
|
75
|
+
| --- | --- |
|
|
76
|
+
| medium-pub | `MEDIUM_INTEGRATION_TOKEN` |
|
|
77
|
+
| wechatmp-pub | `WECHAT_APP_ID`, `WECHAT_APP_SECRET` |
|
|
78
|
+
| x-pub `post` | `X_API_KEY`, `X_API_SECRET`, `X_ACCESS_TOKEN`, `X_ACCESS_TOKEN_SECRET` |
|
|
79
|
+
|
|
80
|
+
Missing env → plugin exit 1, `Result.ok false`, error names the variable.
|