@gobing-ai/knowledge-kit 0.0.12 → 0.0.14
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 +120 -26
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +22187 -0
- package/plugins/generations/content-gen/plugin.json +1 -1
- package/plugins/generations/core-facts-gen/dist/index.js +22068 -0
- package/plugins/generations/core-facts-gen/plugin.json +1 -1
- package/plugins/generations/daily-article-gen/dist/index.js +22050 -0
- package/plugins/generations/daily-article-gen/plugin.json +1 -1
- package/plugins/generations/daily-article-gen/src/index.ts +13 -1
- package/plugins/generations/dailynews-gen/dist/index.js +22344 -0
- package/plugins/generations/dailynews-gen/plugin.json +1 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +22503 -0
- package/plugins/generations/episode-plan-gen/plugin.json +1 -1
- package/plugins/generations/episode-plan-gen/src/index.ts +11 -0
- package/plugins/generations/image-gen/config.example.yaml +75 -0
- package/plugins/generations/image-gen/dist/index.js +24862 -0
- package/plugins/generations/image-gen/package.json +17 -0
- package/plugins/generations/image-gen/plugin.json +7 -0
- package/plugins/generations/image-gen/presets/formats/cover.yaml +57 -0
- package/plugins/generations/image-gen/presets/formats/free.yaml +46 -0
- package/plugins/generations/image-gen/presets/formats/illustration.yaml +48 -0
- package/plugins/generations/image-gen/presets/styles/clean-webapp-ui.yaml +28 -0
- package/plugins/generations/image-gen/presets/styles/cute.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/editorial.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/fresh.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/minimalist.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/photorealistic.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/sketch.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/technical-diagram.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/vibrant.yaml +3 -0
- package/plugins/generations/image-gen/presets/styles/warm.yaml +3 -0
- package/plugins/generations/image-gen/src/bytes.ts +19 -0
- package/plugins/generations/image-gen/src/index.ts +319 -0
- package/plugins/generations/image-gen/src/job.ts +143 -0
- package/plugins/generations/image-gen/src/paths.ts +31 -0
- package/plugins/generations/image-gen/src/presets.ts +344 -0
- package/plugins/generations/image-gen/src/providers/agnes.ts +110 -0
- package/plugins/generations/image-gen/src/providers/azure.ts +153 -0
- package/plugins/generations/image-gen/src/providers/codex-cli.ts +170 -0
- package/plugins/generations/image-gen/src/providers/dashscope.ts +485 -0
- package/plugins/generations/image-gen/src/providers/google.ts +268 -0
- package/plugins/generations/image-gen/src/providers/huggingface.ts +59 -0
- package/plugins/generations/image-gen/src/providers/jimeng.ts +259 -0
- package/plugins/generations/image-gen/src/providers/minimax.ts +171 -0
- package/plugins/generations/image-gen/src/providers/openai.ts +319 -0
- package/plugins/generations/image-gen/src/providers/openrouter.ts +257 -0
- package/plugins/generations/image-gen/src/providers/refs.ts +24 -0
- package/plugins/generations/image-gen/src/providers/replicate.ts +279 -0
- package/plugins/generations/image-gen/src/providers/seedream.ts +128 -0
- package/plugins/generations/image-gen/src/providers/types.ts +286 -0
- package/plugins/generations/image-gen/src/providers/zai.ts +237 -0
- package/plugins/generations/image-gen/tsconfig.json +8 -0
- package/plugins/generations/news-report-gen/dist/index.js +22193 -0
- package/plugins/generations/news-report-gen/package.json +17 -0
- package/plugins/generations/news-report-gen/plugin.json +7 -0
- package/plugins/generations/news-report-gen/src/index.ts +308 -0
- package/plugins/generations/news-report-gen/tsconfig.json +4 -0
- package/plugins/generations/omni-voice-gen/Makefile +14 -0
- package/plugins/generations/omni-voice-gen/README.md +112 -0
- package/plugins/generations/omni-voice-gen/bin/omni-voice-gen +2 -0
- package/plugins/generations/omni-voice-gen/dist/omni-voice-gen-prr8skpb. +2 -0
- package/plugins/generations/omni-voice-gen/dist/omni-voice-gen.js +6 -0
- package/plugins/generations/omni-voice-gen/plugin.json +6 -0
- package/plugins/generations/omni-voice-gen/profiles.json +12 -0
- package/plugins/generations/omni-voice-gen/pyproject.toml +25 -0
- package/plugins/generations/omni-voice-gen/scripts/coverage_gate.py +74 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/__init__.py +1 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/__main__.py +39 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/audio.py +190 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/backend.py +150 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/contract.py +76 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/mp3.py +60 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/pipeline.py +289 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/profiles.py +100 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/qc.py +234 -0
- package/plugins/generations/omni-voice-gen/src/omni_voice_gen/voicescript.py +352 -0
- package/plugins/generations/omni-voice-gen/uv.lock +3510 -0
- package/plugins/generations/voice-gen/dist/index.js +23055 -0
- package/plugins/generations/voice-gen/plugin.json +1 -1
- package/plugins/generations/voice-gen/src/index.ts +16 -1
- package/plugins/generations/voice-gen/src/voicebox-client.ts +3 -1
- package/plugins/ingestions/aihot-ingest/dist/index.js +22378 -0
- package/plugins/ingestions/aihot-ingest/plugin.json +1 -1
- package/plugins/ingestions/horizon-ingest/dist/index.js +22125 -0
- package/plugins/ingestions/horizon-ingest/plugin.json +1 -1
- package/plugins/ingestions/karakeep-local/dist/index.js +24204 -0
- package/plugins/ingestions/karakeep-local/plugin.json +1 -1
- package/plugins/ingestions/last30days-ingest/dist/index.js +22070 -0
- package/plugins/ingestions/last30days-ingest/plugin.json +1 -1
- package/plugins/ingestions/web-search/dist/index.js +24399 -0
- package/plugins/ingestions/web-search/plugin.json +1 -1
- package/plugins/kk/commands/image-extract.md +40 -0
- package/plugins/kk/commands/image-generate.md +32 -0
- package/plugins/kk/config.example.yaml +80 -0
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/skills/image-authoring/SKILL.md +257 -0
- package/plugins/kk/skills/image-authoring/references/format-drafting.md +57 -0
- package/plugins/kk/skills/image-authoring/references/illustration-positions.md +87 -0
- package/plugins/kk/skills/image-authoring/references/migrating-from-wt.md +31 -0
- package/plugins/kk/skills/image-authoring/references/providers.md +52 -0
- package/plugins/kk/skills/image-authoring/references/style-extraction.md +139 -0
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +130 -30
- package/plugins/publishings/emdash-pub/dist/index.js +22263 -0
- package/plugins/publishings/emdash-pub/plugin.json +1 -1
- package/plugins/publishings/podcast-pub/dist/index.js +22650 -0
- package/plugins/publishings/podcast-pub/plugin.json +8 -2
- package/plugins/publishings/podcast-pub/src/index.ts +18 -2
- package/plugins/publishings/podcast-pub/src/show-notes.ts +56 -9
- package/plugins/publishings/qiita-pub/dist/index.js +22101 -0
- package/plugins/publishings/qiita-pub/plugin.json +1 -1
- package/plugins/publishings/surfdash-pub/dist/index.js +22323 -0
- package/plugins/publishings/surfdash-pub/plugin.json +1 -1
- package/plugins/publishings/surfdash-pub/src/index.ts +109 -9
- package/plugins/publishings/zenn-pub/dist/index.js +22142 -0
- package/plugins/publishings/zenn-pub/plugin.json +1 -1
- package/plugins/sp/scripts/batch-preflight.mjs +346 -0
- package/plugins/sp/scripts/batch-preflight.ts +459 -0
- package/plugins/sp/scripts/daily-summary/daily-summary.mjs +615 -0
- package/plugins/sp/scripts/daily-summary/daily-summary.ts +846 -0
- package/plugins/sp/scripts/daily-summary/logger.ts +28 -0
- package/plugins/sp/scripts/dogfood-testing/detect-pipeline-driving.mjs +223 -0
- package/plugins/sp/scripts/dogfood-testing/detect-pipeline-driving.ts +367 -0
- package/plugins/sp/scripts/dogfood-testing/validate-report.mjs +132 -0
- package/plugins/sp/scripts/dogfood-testing/validate-report.ts +169 -0
- package/plugins/sp/scripts/feature-dev-precheck.mjs +171 -0
- package/plugins/sp/scripts/feature-dev-precheck.ts +238 -0
- package/plugins/sp/scripts/feature-sync-bounded.mjs +285 -0
- package/plugins/sp/scripts/feature-sync-bounded.ts +478 -0
- package/plugins/sp/scripts/history-anatomy-cache.mjs +902 -0
- package/plugins/sp/scripts/history-anatomy-cache.ts +1028 -0
- package/plugins/sp/scripts/idea-handoff.mjs +22 -0
- package/plugins/sp/scripts/idea-handoff.ts +44 -0
- package/plugins/sp/scripts/inline-pipeline-parity-check.ts +185 -0
- package/plugins/sp/scripts/inline-run-setup.ts +198 -0
- package/plugins/sp/scripts/pr-reviewing.mjs +769 -0
- package/plugins/sp/scripts/pr-reviewing.ts +925 -0
- package/plugins/sp/scripts/quality-gate.mjs +179 -0
- package/plugins/sp/scripts/quality-gate.ts +217 -0
- package/plugins/sp/scripts/script-contract-check.ts +319 -0
- package/plugins/sp/scripts/stage-registry-adapter.ts +1533 -0
- package/plugins/sp/scripts/surface-drift-inventory.ts +929 -0
- package/plugins/sp/scripts/task-evidence-precheck.ts +181 -0
- package/plugins/sp/scripts/task-size-precheck.ts +175 -0
- package/plugins/sp/scripts/transition-shim-check.ts +238 -0
- package/plugins/sp/scripts/validate-commands.ts +689 -0
- package/plugins/sp/scripts/validate-flag-contracts.ts +878 -0
- package/plugins/sp/scripts/verify-answer-lint.ts +530 -0
- package/plugins/sp/scripts/workflow-step-profile.mjs +316 -0
- package/plugins/sp/scripts/workflow-step-profile.ts +456 -0
- package/plugins/sp/scripts/wrapup-steps.mjs +373 -0
- package/plugins/sp/scripts/wrapup-steps.ts +466 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "episode-plan-gen",
|
|
3
3
|
"kind": "generator",
|
|
4
|
-
"entry": "./
|
|
4
|
+
"entry": "./dist/index.js",
|
|
5
5
|
"version": "1.0.0",
|
|
6
6
|
"description": "Plans the daily episode: scores blended Doc[] (source weight + normalized relevance + log-scaled engagement), dedups by URL and title bigram, selects top N, flags English items, strips rating/heading leftovers (mechanical, no LLM)"
|
|
7
7
|
}
|
|
@@ -442,11 +442,22 @@ export function planEpisode(docs: Doc[], options: PlanOptions): Doc[] {
|
|
|
442
442
|
return selected.map((r) => {
|
|
443
443
|
const meta = asRecord(r.doc.metadata);
|
|
444
444
|
const ascii = asciiRatio(r.doc.title ?? '');
|
|
445
|
+
// Task 0118: 1–2-sentence briefing (first two 。!?-terminated sentences of the
|
|
446
|
+
// cleaned body) + best-effort publish timestamp ride the plan metadata so the
|
|
447
|
+
// podcast show-notes brief/timeline render stays deterministic, no LLM.
|
|
448
|
+
const brief = (r.doc.body ?? '')
|
|
449
|
+
.trim()
|
|
450
|
+
.split(/(?<=[。!?])\s*/)
|
|
451
|
+
.slice(0, 2)
|
|
452
|
+
.join('');
|
|
453
|
+
const published = docTimestamp(r.doc);
|
|
445
454
|
return {
|
|
446
455
|
...r.doc,
|
|
447
456
|
metadata: {
|
|
448
457
|
...meta,
|
|
449
458
|
planScore: r.score,
|
|
459
|
+
...(brief.length > 0 ? { brief } : {}),
|
|
460
|
+
...(published !== null ? { publishAt: new Date(published).toISOString() } : {}),
|
|
450
461
|
...(ascii > 0.5 ? { needsTranslation: true } : {}),
|
|
451
462
|
...(r.mergedFrom.length > 0 ? { mergedFrom: r.mergedFrom } : {}),
|
|
452
463
|
},
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Task 0103 (R4) — every credential/setting the 12 image-gen adapters read, verbatim from
|
|
2
|
+
# the vendored baoyu-skills provider sources (MIT © 2026 Jim Liu).
|
|
3
|
+
#
|
|
4
|
+
# Paste the block below under the existing `plugins:` key in ~/.config/kk/config.yaml.
|
|
5
|
+
# Empty values are placeholders — never commit a real credential here.
|
|
6
|
+
# PRECEDENCE: a real environment variable always WINS over a value in this block
|
|
7
|
+
# (process.env is merged over the config block; apps/cli/src/invoke.ts:133-137),
|
|
8
|
+
# so a shell export overrides anything written here.
|
|
9
|
+
|
|
10
|
+
plugins:
|
|
11
|
+
generations:
|
|
12
|
+
image-gen:
|
|
13
|
+
env:
|
|
14
|
+
# -- google (Gemini multimodal + Imagen; GOOGLE_* and GEMINI_* are fallback pairs) --
|
|
15
|
+
GOOGLE_API_KEY: "" # or GEMINI_API_KEY — either one enables google
|
|
16
|
+
GEMINI_API_KEY: ""
|
|
17
|
+
GOOGLE_IMAGE_MODEL: "" # optional — default gemini-3-pro-image
|
|
18
|
+
GOOGLE_BASE_URL: "" # optional — default https://generativelanguage.googleapis.com
|
|
19
|
+
# -- openai (gpt-image generations/edits; OPENAI_IMAGE_USE_CHAT is a debug escape hatch) --
|
|
20
|
+
OPENAI_API_KEY: "" # platform.openai.com — required for openai
|
|
21
|
+
OPENAI_IMAGE_MODEL: "" # optional — default gpt-image-2
|
|
22
|
+
OPENAI_BASE_URL: "" # optional — default https://api.openai.com/v1
|
|
23
|
+
OPENAI_IMAGE_USE_CHAT: "" # optional — "true" routes through chat completions
|
|
24
|
+
# -- openrouter (multi-host gateway) --
|
|
25
|
+
OPENROUTER_API_KEY: "" # openrouter.ai/settings/keys — required for openrouter
|
|
26
|
+
OPENROUTER_IMAGE_MODEL: "" # optional — default google/gemini-3.1-flash-image
|
|
27
|
+
OPENROUTER_BASE_URL: "" # optional — default https://openrouter.ai/api/v1
|
|
28
|
+
OPENROUTER_HTTP_REFERER: "" # optional — attribution header
|
|
29
|
+
OPENROUTER_TITLE: "" # optional — attribution header
|
|
30
|
+
# -- dashscope (Alibaba; refs only on wan2.7 models) --
|
|
31
|
+
DASHSCOPE_API_KEY: "" # required for dashscope
|
|
32
|
+
DASHSCOPE_IMAGE_MODEL: "" # optional — default qwen-image-2.0-pro
|
|
33
|
+
DASHSCOPE_BASE_URL: "" # optional — default https://dashscope.aliyuncs.com
|
|
34
|
+
# -- zai (Z.AI / bigmodel.cn; refs unsupported) --
|
|
35
|
+
ZAI_API_KEY: "" # or BIGMODEL_API_KEY — either one enables zai
|
|
36
|
+
BIGMODEL_API_KEY: ""
|
|
37
|
+
ZAI_IMAGE_MODEL: "" # optional — default glm-image
|
|
38
|
+
BIGMODEL_IMAGE_MODEL: ""
|
|
39
|
+
ZAI_BASE_URL: "" # optional — default https://api.z.ai/api/paas/v4
|
|
40
|
+
BIGMODEL_BASE_URL: ""
|
|
41
|
+
# -- minimax (image-01; refs via subject_reference, jpg/png <10MB) --
|
|
42
|
+
MINIMAX_API_KEY: "" # required for minimax
|
|
43
|
+
MINIMAX_IMAGE_MODEL: "" # optional — default image-01
|
|
44
|
+
MINIMAX_BASE_URL: "" # optional — default https://api.minimaxi.com
|
|
45
|
+
# -- replicate (hosted model surface; prediction polling) --
|
|
46
|
+
REPLICATE_API_TOKEN: "" # replicate.com/account/api-tokens — required for replicate
|
|
47
|
+
REPLICATE_IMAGE_MODEL: "" # optional — default google/nano-banana-2
|
|
48
|
+
REPLICATE_BASE_URL: "" # optional — default https://api.replicate.com
|
|
49
|
+
# -- jimeng (Volcengine; BOTH key halves required, HMAC-signed) --
|
|
50
|
+
JIMENG_ACCESS_KEY_ID: "" # required for jimeng (with the secret key)
|
|
51
|
+
JIMENG_SECRET_ACCESS_KEY: "" # required for jimeng (with the access key)
|
|
52
|
+
JIMENG_IMAGE_MODEL: "" # optional — default jimeng_t2i_v40
|
|
53
|
+
JIMENG_REGION: "" # optional — default cn-north-1
|
|
54
|
+
JIMENG_BASE_URL: "" # optional — default https://visual.volcengineapi.com
|
|
55
|
+
# -- seedream (ByteDance Ark; key is ARK_API_KEY, not SEEDREAM_*) --
|
|
56
|
+
ARK_API_KEY: "" # required for seedream
|
|
57
|
+
SEEDREAM_IMAGE_MODEL: "" # optional — default doubao-seedream-5-0-260128
|
|
58
|
+
SEEDREAM_BASE_URL: "" # optional — default https://ark.cn-beijing.volces.com/api/v3
|
|
59
|
+
# -- azure (Azure OpenAI; model is addressed by deployment name) --
|
|
60
|
+
AZURE_OPENAI_API_KEY: "" # required for azure
|
|
61
|
+
AZURE_OPENAI_BASE_URL: "" # required resource endpoint, e.g. https://<res>.openai.azure.com
|
|
62
|
+
AZURE_OPENAI_DEPLOYMENT: "" # deployment hosting a gpt-image model
|
|
63
|
+
AZURE_OPENAI_IMAGE_MODEL: "" # optional — default gpt-image-2
|
|
64
|
+
AZURE_API_VERSION: "" # optional — default 2025-04-01-preview
|
|
65
|
+
# -- agnes (OpenAI-compatible images endpoint) --
|
|
66
|
+
AGNES_API_KEY: "" # required for agnes
|
|
67
|
+
AGNES_IMAGE_MODEL: "" # optional — default agnes-image-2.1-flash
|
|
68
|
+
AGNES_BASE_URL: "" # optional — default https://apihub.agnes-ai.com/v1
|
|
69
|
+
# -- codex-cli (subprocess; NEVER auto-selected — pin explicitly) --
|
|
70
|
+
BAOYU_CODEX_IMAGEGEN_BIN: "" # optional — wrapper entrypoint override
|
|
71
|
+
BAOYU_CODEX_IMAGEGEN_TIMEOUT_MS: "" # optional — per-call timeout (ms)
|
|
72
|
+
BAOYU_CODEX_IMAGEGEN_RETRIES: "" # optional — retry count
|
|
73
|
+
# -- 0104 R6 runtime seams (behavior, not credentials; placeholder values only) --
|
|
74
|
+
KK_IMAGE_MAX_IMAGES: "" # optional — per-run budget cap; default 4 (OPEN for the operator to set)
|
|
75
|
+
KK_IMAGE_DRY_RUN: "" # optional — "1" composes every prompt, selects the provider, spends nothing
|