@gobing-ai/knowledge-kit 0.1.15 → 0.1.16
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 +1603 -1
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +58 -52
- package/plugins/generations/content-gen/src/storm.ts +94 -61
- package/plugins/generations/core-facts-gen/dist/index.js +1 -1
- package/plugins/generations/daily-article-gen/dist/index.js +1 -1
- package/plugins/generations/dailynews-gen/dist/index.js +1 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +1 -1
- package/plugins/generations/gemini-tts/dist/index.js +1 -1
- package/plugins/generations/image-gen/README.md +31 -10
- package/plugins/generations/image-gen/assets/sample/cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__clean-webapp-ui.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__cute.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__daily-news.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__editorial.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__fresh.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__minimalist.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__photorealistic.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__sketch.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__technical-diagram.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__vibrant.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__warm.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/daily-news-podcast-cover__xhs-knowledge.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/free__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/illustration__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/assets/sample/xhs-card__quasi-news-podcast.jpg +0 -0
- package/plugins/generations/image-gen/dist/index.js +1 -1
- package/plugins/generations/image-gen/presets/formats/daily-news-podcast-cover.yaml +18 -0
- package/plugins/generations/image-gen/presets/styles/quasi-news-podcast.yaml +9 -0
- package/plugins/generations/news-report-gen/dist/index.js +1 -1
- package/plugins/generations/voice-gen/dist/index.js +1 -1
- package/plugins/generations/voxcpm-tts/dist/index.js +1 -1
- package/plugins/ingestions/aihot-ingest/dist/index.js +1 -1
- package/plugins/ingestions/horizon-ingest/dist/index.js +1 -1
- package/plugins/ingestions/last30days-ingest/dist/index.js +1 -1
- package/plugins/ingestions/web-search/dist/index.js +1 -1
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice-migration.json +12 -3
- package/plugins/kk/publish-presets/daily-ai-voice.json +11 -3
- package/plugins/kk/scripts/cover-compositor.ts +152 -0
- package/plugins/kk/scripts/daily-cover-mock.ts +164 -0
- package/plugins/kk/scripts/daily-scheduled-run.ts +188 -3
- package/plugins/kk/scripts/daily-stages.ts +134 -26
- package/plugins/kk/scripts/daily-triage-core.ts +451 -0
- package/plugins/kk/scripts/daily-triage.ts +74 -0
- package/plugins/kk/scripts/kk-workflow-stages.ts +31 -2
- package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +16 -10
- package/plugins/kk/skills/news-editorial/SKILL.md +3 -3
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +2 -1
- package/plugins/kk/skills/publish/SKILL.md +1 -1
- package/plugins/kk/skills/wiki-authoring/SKILL.md +53 -0
- package/plugins/kk/skills/wiki-authoring/references/page-shapes.md +44 -0
- package/plugins/kk/workflows/kk-daily-ai-voice3.yaml +3 -3
- package/plugins/kk/workflows/kk-daily-safety.yaml +32 -7
- package/plugins/publishings/bilibili-pub/dist/index.js +1 -1
- package/plugins/publishings/cnblogs-pub/dist/index.js +1 -1
- package/plugins/publishings/csdn-pub/dist/index.js +1 -1
- package/plugins/publishings/csdn-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/emdash-pub/dist/index.js +1 -1
- package/plugins/publishings/infoq-pub/dist/index.js +1 -1
- package/plugins/publishings/infoq-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/jike-pub/dist/index.js +1 -1
- package/plugins/publishings/jike-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/juejin-pub/dist/index.js +1 -1
- package/plugins/publishings/juejin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/linkedin-pub/dist/index.js +1 -1
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/medium-pub/dist/index.js +1 -1
- package/plugins/publishings/podcast-pub/dist/index.js +1 -1
- package/plugins/publishings/qiita-pub/dist/index.js +1 -1
- package/plugins/publishings/shipinhao-pub/dist/index.js +222 -50
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +48 -1
- package/plugins/publishings/shipinhao-pub/plugin.json +2 -2
- package/plugins/publishings/shipinhao-pub/src/flow.ts +335 -79
- package/plugins/publishings/shipinhao-pub/src/index.ts +16 -8
- package/plugins/publishings/shipinhao-pub/src/profile-check.ts +1 -1
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +103 -5
- package/plugins/publishings/sspai-pub/dist/index.js +1 -1
- package/plugins/publishings/substack-pub/dist/index.js +1 -1
- package/plugins/publishings/substack-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/surfdash-pub/dist/index.js +235 -12
- package/plugins/publishings/surfdash-pub/src/index.ts +127 -6
- package/plugins/publishings/surfdash-pub/src/topic-claims.ts +189 -0
- package/plugins/publishings/threads-pub/dist/index.js +1 -1
- package/plugins/publishings/wechatmp-pub/dist/index.js +10 -7
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +10 -3
- package/plugins/publishings/wechatmp-pub/src/flow.ts +3 -4
- package/plugins/publishings/wechatmp-pub/src/page.ts +14 -0
- package/plugins/publishings/weibo-pub/dist/index.js +1 -1
- package/plugins/publishings/weibo-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/x-pub/dist/index.js +1 -1
- package/plugins/publishings/x-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/xhs-pub/dist/index.js +557 -31
- package/plugins/publishings/xhs-pub/dist/profile-check.js +20 -1
- package/plugins/publishings/xhs-pub/src/errors.ts +45 -0
- package/plugins/publishings/xhs-pub/src/flow.ts +773 -45
- package/plugins/publishings/xhs-pub/src/page.ts +33 -0
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +1 -1
- package/plugins/publishings/zenn-pub/dist/index.js +1 -1
|
@@ -20753,7 +20753,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20753
20753
|
shortVideo: Object.freeze({
|
|
20754
20754
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20755
20755
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20756
|
-
shipinhao: Object.freeze({ max:
|
|
20756
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20757
20757
|
})
|
|
20758
20758
|
})
|
|
20759
20759
|
});
|
|
@@ -21024,6 +21024,25 @@ function wrapPlaywrightPage(raw, shadow) {
|
|
|
21024
21024
|
}
|
|
21025
21025
|
return pw.waitForEvent(event, options);
|
|
21026
21026
|
},
|
|
21027
|
+
on: (event, handler) => {
|
|
21028
|
+
const raw2 = raw;
|
|
21029
|
+
raw2.on?.(event, handler);
|
|
21030
|
+
},
|
|
21031
|
+
off: (event, handler) => {
|
|
21032
|
+
const raw2 = raw;
|
|
21033
|
+
raw2.off?.(event, handler);
|
|
21034
|
+
},
|
|
21035
|
+
onContextResponse: (handler) => {
|
|
21036
|
+
const raw2 = raw;
|
|
21037
|
+
const ctx = raw2.context?.();
|
|
21038
|
+
ctx?.on?.("response", handler);
|
|
21039
|
+
},
|
|
21040
|
+
offContextResponse: (handler) => {
|
|
21041
|
+
const raw2 = raw;
|
|
21042
|
+
const ctx = raw2.context?.();
|
|
21043
|
+
ctx?.off?.("response", handler);
|
|
21044
|
+
},
|
|
21045
|
+
boundingBoxesOnScreen: (selector) => onScreen(selector).then((found) => found.map((entry) => entry.box)),
|
|
21027
21046
|
mouse: {
|
|
21028
21047
|
click: (x, y) => pw.mouse.click(x, y)
|
|
21029
21048
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed publish failures (task 0350), mirroring the vendor-proven
|
|
3
|
+
* `vendors/xiaohongshu-skills/scripts/xhs/errors.py` mapping. The flows THROW these; the
|
|
4
|
+
* transport's catch turns `error.message` into the failed Result, so every message names its
|
|
5
|
+
* class — the Result error string is what callers and tiers match on.
|
|
6
|
+
*
|
|
7
|
+
* Name assignment lives in constructor bodies, not field initializers: bun's coverage counts
|
|
8
|
+
* each initializer as an unattributable function, which would pin this file below the 90%
|
|
9
|
+
* per-file function threshold.
|
|
10
|
+
*/
|
|
11
|
+
export class PublishError extends Error {
|
|
12
|
+
override name: string;
|
|
13
|
+
constructor(message: string, name = 'PublishError') {
|
|
14
|
+
super(message);
|
|
15
|
+
this.name = name;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** The server refused the note for account-level risk control (−913x / 禁止发笔记) — not retryable. */
|
|
20
|
+
export class AccountRiskControlError extends PublishError {
|
|
21
|
+
constructor(message: string) {
|
|
22
|
+
super(message, 'AccountRiskControlError');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The platform's own counter says the title exceeds its limit. */
|
|
27
|
+
export class TitleTooLongError extends PublishError {
|
|
28
|
+
constructor(message: string) {
|
|
29
|
+
super(message, 'TitleTooLongError');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** The platform's own counter says the body exceeds its limit. */
|
|
34
|
+
export class ContentTooLongError extends PublishError {
|
|
35
|
+
constructor(message: string) {
|
|
36
|
+
super(message, 'ContentTooLongError');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** A just-saved draft failed its post-save reopen verification (slots/srcs/fields). */
|
|
41
|
+
export class DraftVerifyError extends PublishError {
|
|
42
|
+
constructor(message: string) {
|
|
43
|
+
super(message, 'DraftVerifyError');
|
|
44
|
+
}
|
|
45
|
+
}
|