@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
package/dist/board/itc/index.js
CHANGED
|
@@ -58,6 +58,41 @@ function isHttpOrigin(origin) {
|
|
|
58
58
|
return false;
|
|
59
59
|
return url.pathname === "/" && url.search === "" && url.hash === "";
|
|
60
60
|
}
|
|
61
|
+
function parseExternalJobs(raw) {
|
|
62
|
+
if (typeof raw !== "object" || raw === null)
|
|
63
|
+
return null;
|
|
64
|
+
const items = raw.items;
|
|
65
|
+
if (!Array.isArray(items))
|
|
66
|
+
return null;
|
|
67
|
+
const states = new Set(["admitting", "pending", "running", "succeeded", "failed"]);
|
|
68
|
+
const rows = [];
|
|
69
|
+
for (const entry of items) {
|
|
70
|
+
if (typeof entry !== "object" || entry === null)
|
|
71
|
+
return null;
|
|
72
|
+
const row = entry;
|
|
73
|
+
if (typeof row.key !== "string" || typeof row.runId !== "string" || typeof row.workflow !== "string") {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
if (typeof row.state !== "string" || !states.has(row.state))
|
|
77
|
+
return null;
|
|
78
|
+
rows.push({
|
|
79
|
+
key: row.key,
|
|
80
|
+
node: typeof row.node === "string" ? row.node : "",
|
|
81
|
+
provider: typeof row.provider === "string" ? row.provider : null,
|
|
82
|
+
jobId: typeof row.jobId === "string" ? row.jobId : null,
|
|
83
|
+
state: row.state,
|
|
84
|
+
progress: typeof row.progress === "number" ? row.progress : null,
|
|
85
|
+
message: typeof row.message === "string" ? row.message : null,
|
|
86
|
+
submittedAt: typeof row.submittedAt === "string" ? row.submittedAt : "",
|
|
87
|
+
elapsedMs: typeof row.elapsedMs === "number" ? row.elapsedMs : 0,
|
|
88
|
+
...typeof row.admission === "object" && row.admission !== null ? { admission: row.admission } : {},
|
|
89
|
+
runId: row.runId,
|
|
90
|
+
workflow: row.workflow,
|
|
91
|
+
runStatus: typeof row.runStatus === "string" ? row.runStatus : ""
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return { items: rows };
|
|
95
|
+
}
|
|
61
96
|
function boardBasePath(pathname) {
|
|
62
97
|
const board = pathname.indexOf("/board/");
|
|
63
98
|
return board === -1 ? "" : pathname.slice(0, board);
|
|
@@ -112,7 +147,40 @@ function createBoardClient(options) {
|
|
|
112
147
|
});
|
|
113
148
|
return { status: response.status, body: await response.json() };
|
|
114
149
|
},
|
|
115
|
-
progress: (runId) => getJson(`${board}/api/runs/${encodeURIComponent(runId)}/progress`)
|
|
150
|
+
progress: (runId) => getJson(`${board}/api/runs/${encodeURIComponent(runId)}/progress`),
|
|
151
|
+
externalJobs: async (status = "active") => {
|
|
152
|
+
const params = new URLSearchParams({ status });
|
|
153
|
+
return parseExternalJobs(await getJson(`${board}/api/runs/external-jobs?${params.toString()}`));
|
|
154
|
+
},
|
|
155
|
+
wikiComputationRuns: (vaultId, pagePath, cursor) => {
|
|
156
|
+
const params = new URLSearchParams({ path: pagePath });
|
|
157
|
+
if (cursor !== undefined)
|
|
158
|
+
params.set("cursor", String(cursor));
|
|
159
|
+
return getJson(`${moduleApi}/api/wiki/vaults/${encodeURIComponent(vaultId)}/computations/runs?${params.toString()}`);
|
|
160
|
+
},
|
|
161
|
+
wikiComputationRunDetail: (vaultId, runId) => getJson(`${moduleApi}/api/wiki/vaults/${encodeURIComponent(vaultId)}/computation-runs/${encodeURIComponent(runId)}`),
|
|
162
|
+
wikiComputationPreview: async (vaultId, body) => {
|
|
163
|
+
const response = await doFetch(`${moduleApi}/api/wiki/vaults/${encodeURIComponent(vaultId)}/computations/actions/preview`, {
|
|
164
|
+
method: "POST",
|
|
165
|
+
headers: { "content-type": "application/json", "x-kk-action": "1" },
|
|
166
|
+
body: JSON.stringify(body)
|
|
167
|
+
});
|
|
168
|
+
return {
|
|
169
|
+
status: response.status,
|
|
170
|
+
body: await response.json()
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
wikiComputationConfirm: async (vaultId, token) => {
|
|
174
|
+
const response = await doFetch(`${moduleApi}/api/wiki/vaults/${encodeURIComponent(vaultId)}/computations/actions/confirm`, {
|
|
175
|
+
method: "POST",
|
|
176
|
+
headers: { "content-type": "application/json", "x-kk-action": "1" },
|
|
177
|
+
body: JSON.stringify({ token })
|
|
178
|
+
});
|
|
179
|
+
return {
|
|
180
|
+
status: response.status,
|
|
181
|
+
body: await response.json()
|
|
182
|
+
};
|
|
183
|
+
}
|
|
116
184
|
};
|
|
117
185
|
}
|
|
118
186
|
|