@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
|
@@ -84,6 +84,16 @@ export interface XhsPage {
|
|
|
84
84
|
findShadowControl?(labels: readonly string[]): Promise<ShadowControl | null>;
|
|
85
85
|
/** Click at viewport coordinates. */
|
|
86
86
|
clickAt?(x: number, y: number): Promise<void>;
|
|
87
|
+
/** Subscribe/unsubscribe a raw page event (e.g. 'response' upload tracking); optional —
|
|
88
|
+
* offline fakes omit it and callers degrade to their non-event signals. */
|
|
89
|
+
on?(event: string, handler: (payload: unknown) => void): void;
|
|
90
|
+
off?(event: string, handler: (payload: unknown) => void): void;
|
|
91
|
+
/** Context-level response tracking — XHS uploads run in a service worker, so page-level
|
|
92
|
+
* 'response' events never see them (measured 2026-11-10). Optional like on/off. */
|
|
93
|
+
onContextResponse?(handler: (payload: unknown) => void): void;
|
|
94
|
+
offContextResponse?(handler: (payload: unknown) => void): void;
|
|
95
|
+
/** Viewport-clipped bounding boxes for all matches (the tab-clone geometry read). */
|
|
96
|
+
boundingBoxesOnScreen?(selector: string): Promise<Array<{ x: number; y: number; width: number; height: number }>>;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
99
|
export interface OpenedPage {
|
|
@@ -255,6 +265,29 @@ export function wrapPlaywrightPage(raw: unknown, shadow?: ShadowProbe): XhsPage
|
|
|
255
265
|
}
|
|
256
266
|
return pw.waitForEvent(event, options) as Promise<unknown>;
|
|
257
267
|
},
|
|
268
|
+
on: (event, handler) => {
|
|
269
|
+
const raw2 = raw as { on?: (event: string, handler: (payload: unknown) => void) => unknown };
|
|
270
|
+
raw2.on?.(event, handler);
|
|
271
|
+
},
|
|
272
|
+
off: (event, handler) => {
|
|
273
|
+
const raw2 = raw as { off?: (event: string, handler: (payload: unknown) => void) => unknown };
|
|
274
|
+
raw2.off?.(event, handler);
|
|
275
|
+
},
|
|
276
|
+
onContextResponse: (handler) => {
|
|
277
|
+
const raw2 = raw as {
|
|
278
|
+
context?: () => { on?: (event: string, handler: (payload: unknown) => void) => unknown } | undefined;
|
|
279
|
+
};
|
|
280
|
+
const ctx = raw2.context?.();
|
|
281
|
+
ctx?.on?.('response', handler);
|
|
282
|
+
},
|
|
283
|
+
offContextResponse: (handler) => {
|
|
284
|
+
const raw2 = raw as {
|
|
285
|
+
context?: () => { off?: (event: string, handler: (payload: unknown) => void) => unknown } | undefined;
|
|
286
|
+
};
|
|
287
|
+
const ctx = raw2.context?.();
|
|
288
|
+
ctx?.off?.('response', handler);
|
|
289
|
+
},
|
|
290
|
+
boundingBoxesOnScreen: (selector) => onScreen(selector).then((found) => found.map((entry) => entry.box)),
|
|
258
291
|
mouse: {
|
|
259
292
|
click: (x, y) => pw.mouse.click(x, y),
|
|
260
293
|
},
|
|
@@ -19905,7 +19905,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
19905
19905
|
shortVideo: Object.freeze({
|
|
19906
19906
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19907
19907
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
19908
|
-
shipinhao: Object.freeze({ max:
|
|
19908
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
19909
19909
|
})
|
|
19910
19910
|
})
|
|
19911
19911
|
});
|
|
@@ -12058,7 +12058,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12058
12058
|
shortVideo: Object.freeze({
|
|
12059
12059
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12060
12060
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12061
|
-
shipinhao: Object.freeze({ max:
|
|
12061
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12062
12062
|
})
|
|
12063
12063
|
})
|
|
12064
12064
|
});
|