@gobing-ai/knowledge-kit 0.1.29 → 0.1.30
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/board/api.js +8724 -3861
- package/dist/board/collect/index.js +69 -1
- package/dist/board/daily-voice/index.js +474 -265
- package/dist/board/itc/index.js +69 -1
- package/dist/board/wiki/index.css +1305 -0
- package/dist/board/wiki/index.js +1621 -0
- package/dist/index.js +34689 -28532
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +14 -1
- package/plugins/generations/core-facts-gen/dist/index.js +14 -1
- package/plugins/generations/daily-article-gen/dist/index.js +14 -1
- package/plugins/generations/dailynews-gen/dist/index.js +14 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +32 -2
- package/plugins/generations/episode-plan-gen/src/index.ts +19 -1
- package/plugins/generations/gemini-tts/dist/index.js +14 -1
- package/plugins/generations/image-gen/dist/index.js +14 -1
- package/plugins/generations/music-gen/dist/index.js +15 -2
- package/plugins/generations/news-report-gen/dist/index.js +14 -1
- package/plugins/generations/vibe-voice-tts/dist/index.js +14 -1
- package/plugins/generations/video-gen/README.md +245 -8
- package/plugins/generations/video-gen/dist/index.js +22447 -4763
- package/plugins/generations/video-gen/package.json +1 -0
- package/plugins/generations/video-gen/presets/formats/avatar.yaml +5 -0
- package/plugins/generations/video-gen/presets/formats/editorial.yaml +6 -0
- package/plugins/generations/video-gen/presets/formats/hybrid-pip.yaml +5 -0
- package/plugins/generations/video-gen/presets/styles/daily-ai.yaml +5 -0
- package/plugins/generations/video-gen/presets/styles/neutral.yaml +3 -0
- package/plugins/generations/video-gen/python/colab_comfyui_h3.py +322 -0
- package/plugins/generations/video-gen/python/comfyui-h3-i2v-api.json +47 -0
- package/plugins/generations/video-gen/python/comfyui-h3-models.json +32 -0
- package/plugins/generations/video-gen/python/comfyui_model_cache.py +388 -0
- package/plugins/generations/video-gen/python/drive_client.py +187 -0
- package/plugins/generations/video-gen/src/brief-cli.ts +65 -0
- package/plugins/generations/video-gen/src/brief.ts +464 -0
- package/plugins/generations/video-gen/src/ccu-ledger.ts +206 -3
- package/plugins/generations/video-gen/src/colab-runner.ts +346 -35
- package/plugins/generations/video-gen/src/index.ts +141 -109
- package/plugins/generations/video-gen/src/inputs.ts +162 -4
- package/plugins/generations/video-gen/src/layout.ts +33 -0
- package/plugins/generations/video-gen/src/props.ts +27 -3
- package/plugins/generations/video-gen/src/remotion/AvatarReel.tsx +17 -1
- package/plugins/generations/video-gen/src/remotion/EditorialReel.tsx +17 -1
- package/plugins/generations/video-gen/src/remotion/Root.tsx +2 -0
- package/plugins/generations/video-gen/src/remotion/engine.ts +3 -7
- package/plugins/generations/video-gen/src/render.ts +25 -0
- package/plugins/generations/video-gen/src/request.ts +150 -20
- package/plugins/generations/video-gen/src/visual-provider.ts +116 -3
- package/plugins/generations/voice-gen/dist/index.js +14 -1
- package/plugins/generations/voxcpm-tts/dist/index.js +14 -1
- package/plugins/ingestions/aihot-ingest/dist/index.js +14 -1
- package/plugins/ingestions/horizon-ingest/dist/index.js +14 -1
- package/plugins/ingestions/last30days-ingest/dist/index.js +14 -1
- package/plugins/ingestions/web-search/dist/index.js +14 -1
- package/plugins/kk/config.example.yaml +1 -1
- package/plugins/kk/mcp-tools.yaml +47 -0
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/itc-surfdash-locales.json +42 -0
- package/plugins/kk/scripts/daily-stages.ts +87 -6
- package/plugins/kk/scripts/kk-workflow-stages.ts +64 -9
- package/plugins/kk/scripts/video-stages.ts +332 -0
- package/plugins/kk/scripts/wiki-normalize-audio.ts +354 -0
- package/plugins/kk/scripts/wiki-normalize-document.ts +495 -0
- package/plugins/kk/scripts/wiki-normalize-stages.ts +96 -0
- package/plugins/kk/scripts/wiki-stage-runtime.ts +39 -0
- package/plugins/kk/skills/news-editorial/SKILL.md +2 -1
- package/plugins/kk/workflows/kk-collect.yaml +10 -0
- package/plugins/kk/workflows/kk-news-generate.yaml +70 -8
- package/plugins/kk/workflows/kk-smart-seo.yaml +8 -0
- package/plugins/kk/workflows/kk-storm-research.yaml +10 -0
- package/plugins/kk/workflows/kk-video-generate.yaml +169 -0
- package/plugins/kk/workflows/kk-wiki-digest.yaml +49 -0
- package/plugins/publishings/bilibili-pub/dist/index.js +281 -268
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +202 -0
- package/plugins/publishings/cnblogs-pub/dist/index.js +281 -268
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +202 -0
- package/plugins/publishings/csdn-pub/dist/index.js +281 -268
- package/plugins/publishings/csdn-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/emdash-pub/dist/index.js +33 -3
- package/plugins/publishings/infoq-pub/dist/index.js +281 -268
- package/plugins/publishings/infoq-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/jike-pub/dist/index.js +281 -268
- package/plugins/publishings/jike-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/juejin-pub/dist/index.js +281 -268
- package/plugins/publishings/juejin-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/linkedin-pub/dist/index.js +281 -268
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/medium-pub/dist/index.js +281 -268
- package/plugins/publishings/medium-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/podcast-pub/dist/index.js +39 -9
- package/plugins/publishings/qiita-pub/dist/index.js +33 -3
- package/plugins/publishings/shipinhao-pub/dist/index.js +281 -268
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +175 -0
- package/plugins/publishings/sspai-pub/dist/index.js +281 -268
- package/plugins/publishings/sspai-pub/dist/profile-check.js +202 -0
- package/plugins/publishings/substack-pub/dist/index.js +281 -268
- package/plugins/publishings/substack-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/surfdash-pub/dist/index.js +99 -39
- package/plugins/publishings/surfdash-pub/plugin.json +54 -0
- package/plugins/publishings/surfdash-pub/src/index.ts +36 -5
- package/plugins/publishings/threads-pub/dist/index.js +281 -268
- package/plugins/publishings/threads-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/wechatmp-pub/dist/index.js +665 -451
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +215 -3
- package/plugins/publishings/weibo-pub/dist/index.js +281 -268
- package/plugins/publishings/weibo-pub/dist/profile-check.js +189 -1
- package/plugins/publishings/x-pub/dist/index.js +281 -268
- package/plugins/publishings/x-pub/dist/profile-check.js +216 -1
- package/plugins/publishings/xhs-pub/dist/index.js +281 -268
- package/plugins/publishings/xhs-pub/dist/profile-check.js +119 -1
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +281 -268
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +202 -0
- package/plugins/publishings/youtube-pub/dist/index.js +14 -1
- package/plugins/publishings/zenn-pub/dist/index.js +37 -7
|
@@ -46,6 +46,12 @@ vars:
|
|
|
46
46
|
# Ken-Burns on any Colab failure or CCU-cap refusal. The preset rows for the video variants are
|
|
47
47
|
# `mode: off` too — the operator enables both after a manual draft review.
|
|
48
48
|
video: "off"
|
|
49
|
+
# 0464 R4: the ABSOLUTE works root `kk news generate` pins for this run. `kk job submit|status|cancel`
|
|
50
|
+
# need an explicit root because the Spur daemon polls from its own cwd; a direct `spur workflow run`
|
|
51
|
+
# leaves it empty and the video node (onError: continue) records the refusal instead of guessing.
|
|
52
|
+
works_root: ""
|
|
53
|
+
# Runtime-written by the video job.await node: the output key `content_path` mapped into a run var.
|
|
54
|
+
daily_video_content_path: ""
|
|
49
55
|
# 0426 R2: the figure requests reuse the daily cover's pinned provider/model (no implicit
|
|
50
56
|
# fallback) — the same pair the daily voice workflows ship.
|
|
51
57
|
cover_provider: "minimax"
|
|
@@ -400,6 +406,7 @@ nodes:
|
|
|
400
406
|
Write TWO plain markdown files with your file-write tool (a headless sandbox may block shell writes):
|
|
401
407
|
${vars.work_dir}/22-article/locales/en.md and ${vars.work_dir}/22-article/locales/ja.md
|
|
402
408
|
Each file: first line `# <translated title>`, then a blank line, then the translated body.
|
|
409
|
+
Rules: (1) Title MUST keep issue prefix + topic (`en`: `Issue <YYMMDD> · <topic>`, `ja`: `第<YYMMDD>回 · <topic>` — never date-only); (2) never start the opening paragraph with a digit; (3) keep dates (`YYYY-MM-DD`) and proper nouns/company names (`OpenAI`, `Amazon`, `Google`, `Reuters`, etc.) consistent in headings and prose across zh/en/ja.
|
|
403
410
|
Keep every code block, URL, model name, company name and reference intact; translate prose only.
|
|
404
411
|
Canonical series/show names (NEVER invent alternatives like Hotchpotch, Hodgepodge, ごった煮, or 寄せ鍋):
|
|
405
412
|
- en: series "Daily AI Stew", show "Salty Talk"
|
|
@@ -506,13 +513,16 @@ nodes:
|
|
|
506
513
|
options:
|
|
507
514
|
command: 'kk news generate-cards --work-dir "${vars.work_dir}"'
|
|
508
515
|
|
|
509
|
-
# ── 17b. video: the vertical short (D9 / 0449 R3)
|
|
510
|
-
|
|
516
|
+
# ── 17b. video: the vertical short (D9 / 0449 R3, 0464 R4) ──────────────────────────────────
|
|
517
|
+
# Split in two: the request is prepared here (cheap, local), then the render runs as a durable
|
|
518
|
+
# Spur external job. `wait: worker` on purpose — the daily scheduler must not require a running
|
|
519
|
+
# `spur serve`, so this node polls in-process while the standalone workflow uses `wait: daemon`.
|
|
520
|
+
- id: video-request
|
|
511
521
|
description: >-
|
|
512
|
-
`kk stage daily-video-request`
|
|
513
|
-
|
|
514
|
-
`
|
|
515
|
-
|
|
522
|
+
`kk stage daily-video-request` — resolve this run's audio, script plan and cover into the
|
|
523
|
+
generator's request under `32-video/`. Gated on the `video` var (`off` by default) and
|
|
524
|
+
`onError: continue`: a preparation failure leaves the render node unentered, exactly as the
|
|
525
|
+
combined node did before.
|
|
516
526
|
dependsOn: [voice, voice-fallback, voice-fallback2, cards]
|
|
517
527
|
condition:
|
|
518
528
|
kind: shell
|
|
@@ -523,8 +533,60 @@ nodes:
|
|
|
523
533
|
onError: continue
|
|
524
534
|
options:
|
|
525
535
|
command: >-
|
|
526
|
-
kk stage daily-video-request "${vars.work_dir}" "${vars.run_date}" "${vars.video}"
|
|
527
|
-
|
|
536
|
+
kk stage daily-video-request "${vars.work_dir}" "${vars.run_date}" "${vars.video}"
|
|
537
|
+
|
|
538
|
+
- id: video
|
|
539
|
+
resumeRerun: true
|
|
540
|
+
description: >-
|
|
541
|
+
`kk job submit video-gen` through `kind: job.await` (worker wait) — the 9:16 45–60s teaser
|
|
542
|
+
(D9, ADR-060) rendered locally from this run's audio, script plan and cover. Entered only when
|
|
543
|
+
preparation produced a request, and `onError: continue`: a missing render only records
|
|
544
|
+
`video (no 32-video render)` in the bundle, so a bad video never costs the episode.
|
|
545
|
+
dependsOn: [video-request]
|
|
546
|
+
condition:
|
|
547
|
+
kind: shell
|
|
548
|
+
options:
|
|
549
|
+
command: >-
|
|
550
|
+
grep -q "status.*PASS" "${vars.work_dir}/pool-gate.json" 2>/dev/null && [ -s "${vars.work_dir}/32-video/request.json" ]
|
|
551
|
+
action:
|
|
552
|
+
kind: job.await
|
|
553
|
+
onError: continue
|
|
554
|
+
options:
|
|
555
|
+
id: render-daily-video
|
|
556
|
+
provider: colab
|
|
557
|
+
wait: worker
|
|
558
|
+
deadlineMs: 7200000
|
|
559
|
+
commandTimeoutMs: 120000
|
|
560
|
+
intervalMs: 15000
|
|
561
|
+
submit:
|
|
562
|
+
- kk
|
|
563
|
+
- job
|
|
564
|
+
- submit
|
|
565
|
+
- video-gen
|
|
566
|
+
- --in
|
|
567
|
+
- ${vars.work_dir}/32-video/request.json
|
|
568
|
+
- --out
|
|
569
|
+
- ${vars.work_dir}/32-video/${vars.run_date}_video_content.json
|
|
570
|
+
- --works-dir
|
|
571
|
+
- ${vars.works_root}
|
|
572
|
+
status:
|
|
573
|
+
- kk
|
|
574
|
+
- job
|
|
575
|
+
- status
|
|
576
|
+
- video-gen
|
|
577
|
+
- "{jobId}"
|
|
578
|
+
- --works-dir
|
|
579
|
+
- ${vars.works_root}
|
|
580
|
+
cancel:
|
|
581
|
+
- kk
|
|
582
|
+
- job
|
|
583
|
+
- cancel
|
|
584
|
+
- video-gen
|
|
585
|
+
- "{jobId}"
|
|
586
|
+
- --works-dir
|
|
587
|
+
- ${vars.works_root}
|
|
588
|
+
outputs:
|
|
589
|
+
daily_video_content_path: content_path
|
|
528
590
|
|
|
529
591
|
# ── 18–20. the frozen bundle: variants, the nested variants review, then the freeze ─────────
|
|
530
592
|
- id: variants
|
|
@@ -249,3 +249,11 @@ transitions:
|
|
|
249
249
|
to: failed
|
|
250
250
|
terminalReason: failed-check
|
|
251
251
|
description: Absent or malformed report.json — no JSON report can be certified.
|
|
252
|
+
|
|
253
|
+
# MCP exposure (task 0428): typed allowlist only — Spur validates these params, then stringifies
|
|
254
|
+
# them into the workflow's own vars. Paths, plugin selection and engine vars stay unexposed.
|
|
255
|
+
metadata:
|
|
256
|
+
mcp:
|
|
257
|
+
expose: true
|
|
258
|
+
params:
|
|
259
|
+
options_file: { type: string, required: true, description: Path to the UTF-8 JSON options file (max 64 KiB) }
|
|
@@ -153,3 +153,13 @@ transitions:
|
|
|
153
153
|
- from: render
|
|
154
154
|
to: failed
|
|
155
155
|
description: Render failed — terminate workflow
|
|
156
|
+
|
|
157
|
+
# MCP exposure (task 0428): typed allowlist only — Spur validates these params, then stringifies
|
|
158
|
+
# them into the workflow's own vars. Paths, plugin selection and engine vars stay unexposed.
|
|
159
|
+
metadata:
|
|
160
|
+
mcp:
|
|
161
|
+
expose: true
|
|
162
|
+
params:
|
|
163
|
+
topic: { type: string, required: true, description: Research question (sentence mode) }
|
|
164
|
+
maxResults: { type: number, description: Search results per query (default 8) }
|
|
165
|
+
fixture: { type: boolean, description: Use the stub ingestion (dry run) }
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Standalone video generation (D91 R4–R5, task 0457):
|
|
3
|
+
# prepare -> render -> verify -> done | failed.
|
|
4
|
+
#
|
|
5
|
+
# WHY a second video workflow instead of extending kk-news-generate: a daily episode composes its own
|
|
6
|
+
# artifacts, while a standalone short starts from an authored brief. They share the generator and
|
|
7
|
+
# nothing else, so this workflow owns only the brief → render → proof path.
|
|
8
|
+
#
|
|
9
|
+
# Contract:
|
|
10
|
+
# - `brief_file` is the authored YAML (see the video-gen README §1a); paths inside it resolve
|
|
11
|
+
# against its own directory.
|
|
12
|
+
# - `run_dir` is the parent of the run's directory; the engine's `__runId` names the child, so every
|
|
13
|
+
# run writes `request.json`, `content.json`, `video.mp4` and `verification.json` under
|
|
14
|
+
# `<run_dir>/<__runId>/` and a stale render can never be read as this run's output.
|
|
15
|
+
# - `runtime_file` is optional: it overrides the operator's `video:` config for this run (provider,
|
|
16
|
+
# `allowEditorialFallback`, `colab.gpu`, …). Absent, the operator config applies; absent that,
|
|
17
|
+
# local editorial.
|
|
18
|
+
# - Paths reach the stages as argv (quoted var expansion), never as interpolated command text.
|
|
19
|
+
#
|
|
20
|
+
# Default is LOCAL editorial: no GPU is selectable implicitly. A GPU provider needs the runtime file
|
|
21
|
+
# (or config) to name it AND a `colab.gpu` class — the brief resolver refuses otherwise, before any
|
|
22
|
+
# allocation. Success edges use `guard: { kind: always }` (repo convention) so `--dry-run` walks to
|
|
23
|
+
# `done`; a real action failure short-circuits at its state under the default `onError: fail`.
|
|
24
|
+
#
|
|
25
|
+
# No `$schema` declaration on purpose (0464 R4): the shipped
|
|
26
|
+
# `schemas/state-machine-workflow.schema.json` in `@gobing-ai/spur` 0.4.54 has no `resumeRerun` on a
|
|
27
|
+
# state, while the engine's own schema AND `composition-lint` require it for `job.await`. Declaring
|
|
28
|
+
# the stale schema makes `spur workflow validate` and `spur workflow run` refuse this file
|
|
29
|
+
# (`states[1].resumeRerun: unknown field`); without the declaration both validate against the runtime
|
|
30
|
+
# schema the engine actually enforces. Drop this note once upstream ships the field.
|
|
31
|
+
name: kk-video-generate
|
|
32
|
+
kind: state-machine
|
|
33
|
+
description: >-
|
|
34
|
+
Standalone 9:16 video short from an authored brief — resolve the brief into the generator's
|
|
35
|
+
request, submit it as a durable Spur external job (daemon wait), then prove the MP4 against the
|
|
36
|
+
emitted Content
|
|
37
|
+
version: "1"
|
|
38
|
+
initialState: prepare
|
|
39
|
+
terminalStates:
|
|
40
|
+
- done
|
|
41
|
+
- failed
|
|
42
|
+
failureStates:
|
|
43
|
+
- failed
|
|
44
|
+
vars:
|
|
45
|
+
brief_file: "" # authored brief.yaml (absolute, or relative to the invoking cwd)
|
|
46
|
+
run_dir: "" # parent of the run's own `<__runId>` directory
|
|
47
|
+
runtime_file: "" # optional runtime YAML: provider / allowEditorialFallback / colab
|
|
48
|
+
# 0464 R4: the ABSOLUTE works root handed to `kk job submit|status|cancel`. It must be the same
|
|
49
|
+
# string for all three verbs because the daemon that polls the job runs from its own cwd, so a
|
|
50
|
+
# relative root would resolve somewhere else. Pass it from the launching command; an empty root
|
|
51
|
+
# makes `kk job submit` exit 2, so a misconfigured run fails visibly instead of guessing.
|
|
52
|
+
works_root: ""
|
|
53
|
+
# Runtime-written by the render node: the output key `content_path` mapped into a run var.
|
|
54
|
+
video_content_path: ""
|
|
55
|
+
# Runtime-written by the engine: the run id names this run's directory. Declared (empty) so the
|
|
56
|
+
# static var-reference validator sees the template source.
|
|
57
|
+
__runId: ""
|
|
58
|
+
states:
|
|
59
|
+
- id: prepare
|
|
60
|
+
description: >-
|
|
61
|
+
`kk stage run video-prepare` — resolve the brief (format, style, presentation, runtime) into
|
|
62
|
+
the executor's request under `<run_dir>/<__runId>/request.json`; refuse a run directory that
|
|
63
|
+
already holds outputs, so a retry needs a fresh run id
|
|
64
|
+
onEnter:
|
|
65
|
+
- kind: shell
|
|
66
|
+
options:
|
|
67
|
+
command: >-
|
|
68
|
+
kk stage run video-prepare
|
|
69
|
+
"${vars.brief_file}" "${vars.run_dir}" "${vars.__runId}" "${vars.runtime_file}"
|
|
70
|
+
|
|
71
|
+
- id: render
|
|
72
|
+
resumeRerun: true
|
|
73
|
+
description: >-
|
|
74
|
+
`kk job submit video-gen` through `kind: job.await` (0464 R4) — the standalone operator gets
|
|
75
|
+
the daemon wait, so an interrupted run re-enters the recorded job instead of skipping it and
|
|
76
|
+
no Spur worker is held while Colab renders. `resource: colab-gpu` is the one GPU slot the
|
|
77
|
+
project declares in `.spur/config.yaml`.
|
|
78
|
+
onEnter:
|
|
79
|
+
- kind: job.await
|
|
80
|
+
options:
|
|
81
|
+
id: render-video
|
|
82
|
+
provider: colab
|
|
83
|
+
wait: daemon
|
|
84
|
+
deadlineMs: 7200000
|
|
85
|
+
commandTimeoutMs: 120000
|
|
86
|
+
resource: colab-gpu
|
|
87
|
+
submit:
|
|
88
|
+
- kk
|
|
89
|
+
- job
|
|
90
|
+
- submit
|
|
91
|
+
- video-gen
|
|
92
|
+
- --in
|
|
93
|
+
- "${vars.run_dir}/${vars.__runId}/request.json"
|
|
94
|
+
- --out
|
|
95
|
+
- "${vars.run_dir}/${vars.__runId}/content.json"
|
|
96
|
+
- --works-dir
|
|
97
|
+
- "${vars.works_root}"
|
|
98
|
+
status:
|
|
99
|
+
- kk
|
|
100
|
+
- job
|
|
101
|
+
- status
|
|
102
|
+
- video-gen
|
|
103
|
+
- "{jobId}"
|
|
104
|
+
- --works-dir
|
|
105
|
+
- "${vars.works_root}"
|
|
106
|
+
cancel:
|
|
107
|
+
- kk
|
|
108
|
+
- job
|
|
109
|
+
- cancel
|
|
110
|
+
- video-gen
|
|
111
|
+
- "{jobId}"
|
|
112
|
+
- --works-dir
|
|
113
|
+
- "${vars.works_root}"
|
|
114
|
+
outputs:
|
|
115
|
+
video_content_path: content_path
|
|
116
|
+
# 0464 R4: a job may only report success for THIS run's Content. `outputs` lands as `$video_content_path`
|
|
117
|
+
# for the rest of this state (an env var, not a `${vars.x}` template), so the bound path must be the
|
|
118
|
+
# exact file this workflow asked submit for — asserted before `video-verify` (CLI unchanged) proves
|
|
119
|
+
# the media against it. A mismatch fails the render state instead of verifying the wrong artifact.
|
|
120
|
+
- kind: shell
|
|
121
|
+
options:
|
|
122
|
+
command: >-
|
|
123
|
+
test "$video_content_path" = "${vars.run_dir}/${vars.__runId}/content.json"
|
|
124
|
+
|
|
125
|
+
- id: verify
|
|
126
|
+
description: >-
|
|
127
|
+
`kk stage run video-verify` — prove the MP4 is this run's fresh file (Content videoPath
|
|
128
|
+
resolves to it, media is not older than the request), probe it with local protocols, and
|
|
129
|
+
require H.264 1080x1920 @30fps + AAC + duration within 0.25s of the Content metadata before
|
|
130
|
+
writing `verification.json`
|
|
131
|
+
onEnter:
|
|
132
|
+
- kind: shell
|
|
133
|
+
options:
|
|
134
|
+
command: >-
|
|
135
|
+
kk stage run video-verify "${vars.run_dir}" "${vars.__runId}"
|
|
136
|
+
|
|
137
|
+
- id: done
|
|
138
|
+
description: Terminal — the run's MP4, Content and verification receipt agree; publishing is a separate workflow
|
|
139
|
+
- id: failed
|
|
140
|
+
description: Terminal — a stage refused (invalid brief, stale or mismatched media, probe failure); reported, not advanced
|
|
141
|
+
|
|
142
|
+
transitions:
|
|
143
|
+
- from: prepare
|
|
144
|
+
to: render
|
|
145
|
+
description: Brief resolved into this run's request
|
|
146
|
+
guard:
|
|
147
|
+
kind: always
|
|
148
|
+
- from: prepare
|
|
149
|
+
to: failed
|
|
150
|
+
description: Brief refused (unknown preset/key, unreadable media, provider/GPU mismatch, existing run outputs)
|
|
151
|
+
terminalReason: failed-check
|
|
152
|
+
- from: render
|
|
153
|
+
to: verify
|
|
154
|
+
description: Executor wrote this run's Content
|
|
155
|
+
guard:
|
|
156
|
+
kind: always
|
|
157
|
+
- from: render
|
|
158
|
+
to: failed
|
|
159
|
+
description: The generator exited nonzero (no Content, or a render failure)
|
|
160
|
+
terminalReason: failed-check
|
|
161
|
+
- from: verify
|
|
162
|
+
to: done
|
|
163
|
+
description: MP4 and Content agree; verification.json written
|
|
164
|
+
guard:
|
|
165
|
+
kind: always
|
|
166
|
+
- from: verify
|
|
167
|
+
to: failed
|
|
168
|
+
description: Missing, stale, mismatched or non-conforming media — the receipt is not written
|
|
169
|
+
terminalReason: failed-check
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kk-wiki-digest
|
|
3
|
+
kind: dag
|
|
4
|
+
version: "1"
|
|
5
|
+
description: >-
|
|
6
|
+
Reviewed, resumable wiki digestion workflow (feature I2 / ADR-063, docs/design/kk-wiki-workspace.md §6):
|
|
7
|
+
inspect durable input -> validate source-backed proposal -> pause for explicit review ->
|
|
8
|
+
apply through guarded recovery -> compile and verify vault integrity.
|
|
9
|
+
vars:
|
|
10
|
+
vault: "."
|
|
11
|
+
input_id: ""
|
|
12
|
+
proposal_file: ""
|
|
13
|
+
proposal_id: ""
|
|
14
|
+
agent: "inline"
|
|
15
|
+
nodes:
|
|
16
|
+
- id: inspect_input
|
|
17
|
+
description: Inspect the durable input record from the vault journal before proposing changes.
|
|
18
|
+
action:
|
|
19
|
+
kind: shell
|
|
20
|
+
options:
|
|
21
|
+
command: kk wiki input "${vars.input_id}" --json
|
|
22
|
+
- id: normalize_input
|
|
23
|
+
dependsOn: [inspect_input]
|
|
24
|
+
description: Normalize file captures into immutable raw/file evidence (no-op for url/text).
|
|
25
|
+
action:
|
|
26
|
+
kind: shell
|
|
27
|
+
options:
|
|
28
|
+
command: kk stage run wiki-normalize "${vars.vault}" "${vars.input_id}"
|
|
29
|
+
- id: validate_proposal
|
|
30
|
+
dependsOn: [normalize_input]
|
|
31
|
+
description: Validate paths, provenance, and preimage hashes for the authored proposal.
|
|
32
|
+
action:
|
|
33
|
+
kind: shell
|
|
34
|
+
options:
|
|
35
|
+
command: kk wiki proposal-validate "${vars.proposal_file}" --json
|
|
36
|
+
- id: apply_proposal
|
|
37
|
+
dependsOn: [validate_proposal]
|
|
38
|
+
description: Apply the accepted proposal through the guarded recovery seam.
|
|
39
|
+
action:
|
|
40
|
+
kind: shell
|
|
41
|
+
options:
|
|
42
|
+
command: kk wiki proposal-apply "${vars.proposal_id}" --json
|
|
43
|
+
- id: compile_and_lint
|
|
44
|
+
dependsOn: [apply_proposal]
|
|
45
|
+
description: Regenerate compiled navigation and verify vault integrity.
|
|
46
|
+
action:
|
|
47
|
+
kind: shell
|
|
48
|
+
options:
|
|
49
|
+
command: kk wiki compile --json
|