@gobing-ai/knowledge-kit 0.1.11 → 0.1.12
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 +2359 -1721
- package/package.json +1 -1
- package/plugins/generations/image-gen/README.md +108 -0
- package/plugins/generations/image-gen/assets/sample/cover__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/cover__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/dist/index.js +102 -58
- package/plugins/generations/image-gen/scripts/compose-e2e-artifact.ts +5 -21
- package/plugins/generations/image-gen/scripts/gen-samples.ts +208 -0
- package/plugins/generations/image-gen/src/compose/chromium.ts +2 -3
- package/plugins/generations/image-gen/src/presets.ts +6 -3
- package/plugins/generations/image-gen/src/providers/errors.ts +16 -1
- package/plugins/generations/image-gen/src/providers/minimax.ts +46 -17
- package/plugins/ingestions/web-search/src/index.ts +1 -1
- package/plugins/kk/README.md +18 -0
- package/plugins/kk/commands/image-extract.md +1 -0
- package/plugins/kk/commands/image-generate.md +1 -0
- package/plugins/kk/commands/tell-me.md +1 -0
- package/plugins/kk/commands/workflow-run.md +7 -1
- package/plugins/kk/decisions/extract/it-topics.yaml +24 -0
- package/plugins/kk/decisions/kk-itc.yaml +6 -4
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice-migration.json +146 -0
- package/plugins/kk/publish-presets/daily-ai-voice.json +11 -3
- package/plugins/kk/schedules/kk-collect.grok-bot.md.tmpl +69 -0
- package/plugins/kk/schedules/kk-daily-ai-voice3.cron.tmpl +18 -0
- package/plugins/kk/schedules/kk-daily-publish3-cn-peak.cron.tmpl +15 -5
- package/plugins/kk/schedules/kk-daily-publish3-overseas.cron.tmpl +9 -4
- package/plugins/kk/scripts/daily-stages.ts +346 -48
- package/plugins/kk/scripts/kk-workflow-stages.ts +190 -0
- package/plugins/kk/scripts/safety-artifact-check.ts +70 -28
- package/plugins/kk/scripts/voice3-publish-window.ts +202 -0
- package/plugins/kk/skills/article-adapt/SKILL.md +1 -0
- package/plugins/kk/skills/audio-authoring/SKILL.md +1 -0
- package/plugins/kk/skills/content-judge/SKILL.md +1 -0
- package/plugins/kk/skills/content-safety/SKILL.md +1 -0
- package/plugins/kk/skills/explain-things/SKILL.md +1 -0
- package/plugins/kk/skills/image-authoring/SKILL.md +1 -0
- package/plugins/kk/skills/itc-generating/SKILL.md +1 -0
- package/plugins/kk/skills/publish/SKILL.md +1 -0
- package/plugins/kk/skills/smart-seo/SKILL.md +1 -0
- package/plugins/kk/skills/storm-research/SKILL.md +1 -0
- package/plugins/kk/skills/taste-unslop/SKILL.md +1 -0
- package/plugins/kk/skills/topic/SKILL.md +1 -0
- package/plugins/kk/skills/web-automation/SKILL.md +1 -0
- package/plugins/kk/skills/xhs-images/SKILL.md +1 -0
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +9 -7
- package/plugins/kk/workflows/kk-daily-ai-voice3.yaml +161 -61
- package/plugins/kk/workflows/kk-daily-publish3.yaml +82 -26
- package/plugins/kk/workflows/kk-daily-safety.yaml +39 -31
- package/plugins/kk/workflows/kk-itc-author.yaml +75 -0
- package/plugins/kk/workflows/kk-itc-publish-tail.yaml +25 -3
- package/plugins/kk/workflows/kk-itc.yaml +36 -4
- package/plugins/publishings/linkedin-pub/dist/index.js +21333 -0
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +21005 -0
- package/plugins/publishings/linkedin-pub/package.json +19 -0
- package/plugins/publishings/linkedin-pub/plugin.json +12 -0
- package/plugins/publishings/linkedin-pub/src/index.ts +705 -0
- package/plugins/publishings/linkedin-pub/src/profile-check.ts +17 -0
- package/plugins/publishings/linkedin-pub/tsconfig.json +4 -0
- package/plugins/publishings/surfdash-pub/dist/index.js +1 -1
- package/plugins/publishings/surfdash-pub/src/index.ts +3 -1
- package/plugins/publishings/threads-pub/dist/index.js +7 -0
- package/plugins/publishings/threads-pub/src/index.ts +12 -0
- package/plugins/publishings/wechatmp-pub/dist/index.js +5 -2
- package/plugins/publishings/wechatmp-pub/src/flow.ts +11 -3
- package/plugins/publishings/x-pub/dist/index.js +7 -0
- package/plugins/publishings/x-pub/src/index.ts +11 -0
|
@@ -19,6 +19,8 @@ vars:
|
|
|
19
19
|
playbook: ""
|
|
20
20
|
rubric: "tech-accuracy"
|
|
21
21
|
outline: ""
|
|
22
|
+
outline_bullets_only: ""
|
|
23
|
+
plan_only: "false"
|
|
22
24
|
research: ""
|
|
23
25
|
judge: ""
|
|
24
26
|
auto: ""
|
|
@@ -88,11 +90,22 @@ nodes:
|
|
|
88
90
|
command: |
|
|
89
91
|
cid="${vars.__runId}-author"
|
|
90
92
|
v=$(jq -c --arg wd "${vars.work_dir}" --arg agent "${vars.agent}" --arg rubric "${vars.rubric}" --arg outline "${vars.outline}" \
|
|
93
|
+
--arg ob "${vars.outline_bullets_only}" \
|
|
91
94
|
--arg run "${vars.__runId}" --arg dd "${vars.__definitionDigest}" \
|
|
92
95
|
'{work_dir:$wd, agent:$agent, rubric:$rubric, outline:$outline, writer:.writer, playbook:.playbook,
|
|
96
|
+
outline_bullets_only:(if $ob == "true" then "true" else "false" end),
|
|
93
97
|
auto:(.auto|tostring), unslop:(.unslop|tostring), judge:(.judge|tostring), max_revisions:(.maxRevisions|tostring),
|
|
94
98
|
parent_run_id:$run, child_run_id:($run + "-author"), definition_digest:$dd, options_digest:.optionsDigest}' \
|
|
95
99
|
"${vars.work_dir}/itc-options.json") || exit 1
|
|
100
|
+
# Child definition: the running tree first (a project checkout shadows the install),
|
|
101
|
+
# else the installed kk package root via its real path (the run's cwd may be anywhere).
|
|
102
|
+
wf="plugins/kk/workflows/kk-itc-author.yaml"
|
|
103
|
+
if [ ! -f "$wf" ]; then
|
|
104
|
+
test -x "$(command -v kk)" || { echo "kk-itc-author.yaml not found from the cwd and no kk binary for fallback" >&2; exit 1; }
|
|
105
|
+
kk_pkg="$(dirname "$(dirname "$(python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$(command -v kk)")")")"
|
|
106
|
+
wf="$kk_pkg/plugins/kk/workflows/kk-itc-author.yaml"
|
|
107
|
+
fi
|
|
108
|
+
test -f "$wf" || { echo "child workflow not found at $wf (cwd tree or kk package root)" >&2; exit 1; }
|
|
96
109
|
owned() {
|
|
97
110
|
env -u SPUR_WORKFLOW_RUN_ACTIVE -u SPUR_EXPECTED_DEFINITION_DIGEST "$@" &
|
|
98
111
|
pid=$!
|
|
@@ -105,7 +118,7 @@ nodes:
|
|
|
105
118
|
case "$st" in
|
|
106
119
|
done) exit 0 ;;
|
|
107
120
|
paused) owned spur workflow continue "$cid" --yes ;;
|
|
108
|
-
"") owned spur workflow run
|
|
121
|
+
"") owned spur workflow run "$wf" --run-id "$cid" --vars "$v" ;;
|
|
109
122
|
*) echo "child $cid is $st; refusing to relaunch it" >&2; exit 1 ;;
|
|
110
123
|
esac
|
|
111
124
|
st=$(spur workflow trace "$cid" --json 2>/dev/null | jq -r '.run.status // empty')
|
|
@@ -191,8 +204,10 @@ nodes:
|
|
|
191
204
|
|
|
192
205
|
- id: send-confirm
|
|
193
206
|
description: >-
|
|
194
|
-
Operator approval of a
|
|
195
|
-
(no action); cancelling is the rejection.
|
|
207
|
+
Operator approval of a send: `pause: true` stops the run and RESUME is the approval
|
|
208
|
+
(no action); cancelling is the rejection. Entered for any plan with targets — a draft
|
|
209
|
+
still creates real remote drafts, not only a LIVE send — and skipped for empty plans
|
|
210
|
+
and plan_only runs (the plan preview is the stop point).
|
|
196
211
|
dependsOn:
|
|
197
212
|
- adapt-verify
|
|
198
213
|
- check-targets
|
|
@@ -200,12 +215,19 @@ nodes:
|
|
|
200
215
|
condition:
|
|
201
216
|
kind: shell
|
|
202
217
|
options:
|
|
203
|
-
|
|
218
|
+
# Item 5: draft-only plans with targets also confirm (draft saves are real remote
|
|
219
|
+
# artifacts). plan_only runs stop at the plan instead of pausing for a no-op confirm.
|
|
220
|
+
command: 'jq -e "((.targets // []) | length) > 0" "${vars.work_dir}/4-publish/publish-plan.json" >/dev/null 2>&1 && test "${vars.plan_only}" != "true"'
|
|
204
221
|
|
|
205
222
|
- id: fanout-send
|
|
206
223
|
description: "Dispatch target payloads via executor fan-out and record receipts"
|
|
207
224
|
dependsOn:
|
|
208
225
|
- send-confirm
|
|
226
|
+
# plan_only stops after the confirmed plan: no sends, no recovery, no settle.
|
|
227
|
+
condition:
|
|
228
|
+
kind: shell
|
|
229
|
+
options:
|
|
230
|
+
command: 'test "${vars.plan_only}" != "true"'
|
|
209
231
|
action:
|
|
210
232
|
kind: shell
|
|
211
233
|
options:
|
|
@@ -217,6 +239,10 @@ nodes:
|
|
|
217
239
|
description: "Retry safe effect-none target failures once within budget"
|
|
218
240
|
dependsOn:
|
|
219
241
|
- fanout-send
|
|
242
|
+
condition:
|
|
243
|
+
kind: shell
|
|
244
|
+
options:
|
|
245
|
+
command: 'test "${vars.plan_only}" != "true"'
|
|
220
246
|
action:
|
|
221
247
|
kind: shell
|
|
222
248
|
options:
|
|
@@ -228,6 +254,12 @@ nodes:
|
|
|
228
254
|
description: "Reconcile target receipts and settle store selection"
|
|
229
255
|
dependsOn:
|
|
230
256
|
- fanout-recovery
|
|
257
|
+
# plan_only left no receipts to reconcile; with targets present the stage would fail on
|
|
258
|
+
# their absence, so the plan preview ends the run before settle (report still runs).
|
|
259
|
+
condition:
|
|
260
|
+
kind: shell
|
|
261
|
+
options:
|
|
262
|
+
command: 'test "${vars.plan_only}" != "true"'
|
|
231
263
|
action:
|
|
232
264
|
kind: shell
|
|
233
265
|
options:
|