@gobing-ai/knowledge-kit 0.1.14 → 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 +2399 -177
- package/package.json +1 -1
- package/plugins/generations/content-gen/dist/index.js +60 -54
- package/plugins/generations/content-gen/src/storm.ts +94 -61
- package/plugins/generations/core-facts-gen/dist/index.js +3 -3
- package/plugins/generations/daily-article-gen/dist/index.js +3 -3
- package/plugins/generations/dailynews-gen/dist/index.js +73 -10
- package/plugins/generations/dailynews-gen/src/index.ts +23 -1
- package/plugins/generations/dailynews-gen/src/script-plan.ts +103 -5
- package/plugins/generations/episode-plan-gen/dist/index.js +3 -3
- package/plugins/generations/gemini-tts/dist/index.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/plugins/generations/voice-gen/dist/index.js +3 -3
- package/plugins/generations/voxcpm-tts/dist/index.js +3 -3
- package/plugins/ingestions/aihot-ingest/dist/index.js +3 -3
- package/plugins/ingestions/horizon-ingest/dist/index.js +3 -3
- package/plugins/ingestions/last30days-ingest/dist/index.js +3 -3
- package/plugins/ingestions/web-search/dist/index.js +3 -3
- 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 +192 -3
- package/plugins/kk/scripts/daily-stages.ts +599 -27
- 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 +51 -6
- package/plugins/kk/skills/content-judge/SKILL.md +5 -4
- package/plugins/kk/skills/content-judge/references/rubrics.md +14 -0
- package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +16 -10
- package/plugins/kk/skills/news-editorial/SKILL.md +122 -0
- package/plugins/kk/skills/news-editorial/references/selection.md +47 -0
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +100 -0
- package/plugins/kk/skills/publish/SKILL.md +4 -4
- package/plugins/kk/skills/web-automation/SKILL.md +229 -77
- package/plugins/kk/skills/web-automation/references/browser-launch.md +127 -36
- 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-voice2.yaml +4 -6
- package/plugins/kk/workflows/kk-daily-ai-voice3.yaml +185 -224
- package/plugins/kk/workflows/kk-daily-publish3.yaml +16 -8
- package/plugins/kk/workflows/kk-daily-safety.yaml +32 -7
- package/plugins/publishings/bilibili-pub/dist/index.js +6 -4
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/cnblogs-pub/dist/index.js +6 -4
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/csdn-pub/dist/index.js +6 -4
- package/plugins/publishings/csdn-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/emdash-pub/dist/index.js +3 -3
- package/plugins/publishings/infoq-pub/dist/index.js +6 -4
- package/plugins/publishings/infoq-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/jike-pub/dist/index.js +6 -4
- package/plugins/publishings/jike-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/juejin-pub/dist/index.js +6 -4
- package/plugins/publishings/juejin-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/linkedin-pub/dist/index.js +6 -4
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/medium-pub/dist/index.js +3 -3
- package/plugins/publishings/podcast-pub/dist/index.js +148 -5
- package/plugins/publishings/podcast-pub/src/index.ts +71 -2
- package/plugins/publishings/podcast-pub/src/map.ts +3 -0
- package/plugins/publishings/podcast-pub/src/transcript.ts +195 -0
- package/plugins/publishings/qiita-pub/dist/index.js +3 -3
- package/plugins/publishings/shipinhao-pub/dist/index.js +227 -53
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +51 -2
- 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 +6 -4
- package/plugins/publishings/sspai-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/substack-pub/dist/index.js +6 -4
- package/plugins/publishings/substack-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/surfdash-pub/dist/index.js +237 -14
- 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 +3 -3
- package/plugins/publishings/wechatmp-pub/dist/index.js +62 -40
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +10 -3
- package/plugins/publishings/wechatmp-pub/src/flow.ts +73 -37
- package/plugins/publishings/wechatmp-pub/src/page.ts +14 -0
- package/plugins/publishings/weibo-pub/dist/index.js +6 -4
- package/plugins/publishings/weibo-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/x-pub/dist/index.js +6 -4
- package/plugins/publishings/x-pub/dist/profile-check.js +6 -4
- package/plugins/publishings/xhs-pub/dist/index.js +562 -34
- package/plugins/publishings/xhs-pub/dist/profile-check.js +25 -4
- 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 +6 -4
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +3 -1
- package/plugins/publishings/zenn-pub/dist/index.js +3 -3
- package/plugins/kk/scripts/daily-voice-style.zh.md +0 -70
|
@@ -64,8 +64,8 @@ nodes:
|
|
|
64
64
|
- id: plan
|
|
65
65
|
description: >-
|
|
66
66
|
Freeze this window's target rows and their payloads from the bundle and the preset
|
|
67
|
-
(`4-publish/plan.<window>.json`). Never runs for a gated-miss overseas day: the
|
|
68
|
-
|
|
67
|
+
(`4-publish/plan.<window>.json`). Never runs for a gated-miss overseas day: the condition below
|
|
68
|
+
reads `rss-gate.json` (the gate itself always exits 0), so an unpublished episode cannot be planned.
|
|
69
69
|
dependsOn: [rss-gate]
|
|
70
70
|
condition:
|
|
71
71
|
kind: shell
|
|
@@ -180,7 +180,9 @@ nodes:
|
|
|
180
180
|
resolves its own checkout. A dummy or missing podcast episode yields
|
|
181
181
|
explicit empty links; there is nothing to patch without a real post. The stage is its own gate:
|
|
182
182
|
with no real tier-0 post evidence it records an explicit skip and exits 0 (the channel matrix
|
|
183
|
-
lives in the preset, so the graph cannot name channels here).
|
|
183
|
+
lives in the preset, so the graph cannot name channels here). `onError: continue`: the sends
|
|
184
|
+
already happened, so a patch failure (e.g. a dirty surfdash checkout, run 74007847) stays a
|
|
185
|
+
failed node in the trace instead of failing a delivered window; outcome-assert owns the exit.
|
|
184
186
|
dependsOn: [classify]
|
|
185
187
|
condition:
|
|
186
188
|
kind: shell
|
|
@@ -189,6 +191,7 @@ nodes:
|
|
|
189
191
|
|
|
190
192
|
action:
|
|
191
193
|
kind: shell
|
|
194
|
+
onError: continue
|
|
192
195
|
options:
|
|
193
196
|
command: 'kk stage run publish-matrix-patch-surfdash "${vars.work_dir}" --window "${vars.window}"'
|
|
194
197
|
|
|
@@ -201,9 +204,11 @@ nodes:
|
|
|
201
204
|
condition:
|
|
202
205
|
kind: shell
|
|
203
206
|
options:
|
|
207
|
+
# classify writes the bare status to publish-status.<window>.txt (the outcome JSON is
|
|
208
|
+
# pretty-printed, so the old whole-line grep there never fired). `full` is admitted so the
|
|
209
|
+
# stage can delete a stale marker after a recovered retry; `dummy` writes nothing.
|
|
204
210
|
command: >-
|
|
205
|
-
grep -
|
|
206
|
-
grep -qx 'none' "${vars.work_dir}/4-publish/outcome.${vars.window}.json" 2>/dev/null
|
|
211
|
+
grep -qxE 'full|partial|none' "${vars.work_dir}/4-publish/publish-status.${vars.window}.txt" 2>/dev/null
|
|
207
212
|
|
|
208
213
|
action:
|
|
209
214
|
kind: shell
|
|
@@ -268,6 +273,7 @@ nodes:
|
|
|
268
273
|
options:
|
|
269
274
|
role: scribe
|
|
270
275
|
agent: ${vars.agent}
|
|
276
|
+
timeoutMs: 600000
|
|
271
277
|
input: |
|
|
272
278
|
Diagnose a missed overseas publish window. Read only these paths:
|
|
273
279
|
- ${vars.work_dir}/4-publish/rss-gate.json (the miss reason)
|
|
@@ -329,10 +335,12 @@ nodes:
|
|
|
329
335
|
"${vars.work_dir}/4-publish/outcome.${vars.window}.json" >> "$OUT" 2>/dev/null || true
|
|
330
336
|
|
|
331
337
|
- id: ledger
|
|
332
|
-
description:
|
|
338
|
+
description: >-
|
|
339
|
+
Backfill the workflow ledger with every finished publish3 run it does not record yet. An in-run
|
|
340
|
+
`kk ledger append` of this run always refuses (`kk.ledger.run.running`), so this run lands on the
|
|
341
|
+
next window's sync. `|| true` — bookkeeping never fails a publish.
|
|
333
342
|
dependsOn: [report]
|
|
334
343
|
action:
|
|
335
344
|
kind: shell
|
|
336
345
|
options:
|
|
337
|
-
command:
|
|
338
|
-
kk ledger append --workflow kk-daily-publish3 --work-dir "${vars.work_dir}" --run "${vars.__runId}" || true
|
|
346
|
+
command: 'kk ledger sync --workflow kk-daily-publish3 || true'
|
|
@@ -12,17 +12,23 @@ description: >-
|
|
|
12
12
|
gate that classifies the pair into pass|escalate|exclude|revise|block, `revise` applies the
|
|
13
13
|
findings to the two drafts and re-opens the review. The loop is bounded by `safety_max_revise`
|
|
14
14
|
(the gate spends one unit per pass and stops revising at the bound). Terminal `clean` covers
|
|
15
|
-
every outcome that is not a
|
|
16
|
-
|
|
15
|
+
every outcome that is not a refusal — pass, escalate and exclude all publish what the gate
|
|
16
|
+
admitted — and `block` is a failure state, so this run exits non-zero on a block, an infra-fail
|
|
17
17
|
or an integrity failure. The caller (`kk-daily-ai-voice2`'s `safety` node) therefore reads
|
|
18
18
|
"non-zero = never publish", which is the same contract the flat workflow's `safety-judge -> failed`
|
|
19
|
-
edge carried.
|
|
19
|
+
edge carried. 0347 F4 (2026-11-10) splits the failure state in two: `infra-fail` is a gate refusal
|
|
20
|
+
caused by missing evidence (executor/agent death — request/report/verdict never appeared, marker
|
|
21
|
+
file `<scope>/<date>_09_safety-infra.json`), so machine retries are meaningful; `block` is a real
|
|
22
|
+
content verdict (or a refusal with evidence present), so only a human should retry it. Both are
|
|
23
|
+
failureStates, so the caller's "non-zero = never publish" contract is unchanged.
|
|
20
24
|
initialState: review
|
|
21
25
|
terminalStates:
|
|
22
26
|
- clean
|
|
23
27
|
- block
|
|
28
|
+
- infra-fail
|
|
24
29
|
failureStates:
|
|
25
30
|
- block
|
|
31
|
+
- infra-fail
|
|
26
32
|
|
|
27
33
|
vars:
|
|
28
34
|
# Effective run workspace, passed by the caller via --vars (the DAG owns the layout; this
|
|
@@ -170,7 +176,7 @@ states:
|
|
|
170
176
|
timeoutMs: 600000
|
|
171
177
|
# ADR-115 error tier: keep this prompt <= 1000 chars. Shared with the retry below.
|
|
172
178
|
input: &safety-revise-input |
|
|
173
|
-
Read ${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-review_report.json — its per-platform findings carry `revision` proposals, and its `content_ref` names the reviewed files. Read the judge
|
|
179
|
+
Read ${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-review_report.json — its per-platform findings carry `revision` proposals, and its `content_ref` names the reviewed files. Read the judge feedback beside it.
|
|
174
180
|
Invoke kk:content-safety in detect+revise mode; apply only named findings to the files listed in the request's `content` array.
|
|
175
181
|
Scope `drafts`: keep the article title「每日AI乱炖 · <date>」, the opening「这里是由Robin为你带来的咸话咸说之每日AI乱炖」, the VoiceScript's date greeting, and valid YAML. Scope `variants`: keep valid JSON with non-empty `title`/`body`. Never add「我是咸话咸说」or an AI-production closer, even if a finding asks.
|
|
176
182
|
Keep every fact, number, name, quote, hedge(据报道)and 来源 link, the ## structure, segment order and `title`.
|
|
@@ -206,6 +212,12 @@ states:
|
|
|
206
212
|
- id: block
|
|
207
213
|
description: "Terminal — draft integrity refused the drafts (PII on a blocked platform, a must-pass judge fail outside the admission criteria, an out-of-contract verdict, or drafts edited after review); the caller must not publish"
|
|
208
214
|
|
|
215
|
+
- id: infra-fail
|
|
216
|
+
description: >-
|
|
217
|
+
Terminal — the gate refused for missing evidence (executor/agent outage: the request, report
|
|
218
|
+
or verdict never appeared), not a content verdict. Machine-retryable once executors recover;
|
|
219
|
+
drafts and reviewed bytes are preserved (the gate skips quarantine for this case).
|
|
220
|
+
|
|
209
221
|
transitions:
|
|
210
222
|
- from: review
|
|
211
223
|
to: review-retry
|
|
@@ -293,13 +305,26 @@ transitions:
|
|
|
293
305
|
options:
|
|
294
306
|
command: 'test "${vars.safety_status}" = "revise"'
|
|
295
307
|
|
|
308
|
+
- from: judge
|
|
309
|
+
to: infra-fail
|
|
310
|
+
description: >-
|
|
311
|
+
0347 F4: the gate refused for missing evidence (request/report/verdict never appeared — an
|
|
312
|
+
executor or agent outage), recorded in the safety-infra.json marker it wrote.
|
|
313
|
+
Machine-retryable: distinct from a content `block`, same caller contract
|
|
314
|
+
(non-zero = never publish).
|
|
315
|
+
terminalReason: failed-agent
|
|
316
|
+
guard:
|
|
317
|
+
kind: shell
|
|
318
|
+
options:
|
|
319
|
+
command: test -f "${vars.work_dir}/${vars.safety_scope_dir}/${vars.run_date}_09_safety-infra.json"
|
|
320
|
+
|
|
296
321
|
- from: judge
|
|
297
322
|
to: block
|
|
298
323
|
description: >-
|
|
299
324
|
block (draft integrity — PII on a blocked platform, a must-pass fail outside the admission
|
|
300
|
-
criteria, drafts edited after review), or no usable status
|
|
301
|
-
verdict, non-PASS) -> never publish. Unconditional, so a refused
|
|
302
|
-
instead of deadlocking the loop.
|
|
325
|
+
criteria, drafts edited after review, or a refusal with evidence present), or no usable status
|
|
326
|
+
(missing/unreadable report or verdict, non-PASS) -> never publish. Unconditional, so a refused
|
|
327
|
+
verdict leaves the state instead of deadlocking the loop.
|
|
303
328
|
terminalReason: failed-check
|
|
304
329
|
guard:
|
|
305
330
|
kind: always
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20683,10 +20683,12 @@ function sha256Hex(value) {
|
|
|
20683
20683
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20684
20684
|
class BotError extends Error {
|
|
20685
20685
|
code;
|
|
20686
|
-
|
|
20686
|
+
details;
|
|
20687
|
+
constructor(code, message, details = {}) {
|
|
20687
20688
|
super(message);
|
|
20688
20689
|
this.name = "BotError";
|
|
20689
20690
|
this.code = code;
|
|
20691
|
+
this.details = details;
|
|
20690
20692
|
}
|
|
20691
20693
|
}
|
|
20692
20694
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20097,10 +20097,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20097
20097
|
}
|
|
20098
20098
|
class BotError extends Error {
|
|
20099
20099
|
code;
|
|
20100
|
-
|
|
20100
|
+
details;
|
|
20101
|
+
constructor(code, message, details = {}) {
|
|
20101
20102
|
super(message);
|
|
20102
20103
|
this.name = "BotError";
|
|
20103
20104
|
this.code = code;
|
|
20105
|
+
this.details = details;
|
|
20104
20106
|
}
|
|
20105
20107
|
}
|
|
20106
20108
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20704,10 +20704,12 @@ function sha256Hex(value) {
|
|
|
20704
20704
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20705
20705
|
class BotError extends Error {
|
|
20706
20706
|
code;
|
|
20707
|
-
|
|
20707
|
+
details;
|
|
20708
|
+
constructor(code, message, details = {}) {
|
|
20708
20709
|
super(message);
|
|
20709
20710
|
this.name = "BotError";
|
|
20710
20711
|
this.code = code;
|
|
20712
|
+
this.details = details;
|
|
20711
20713
|
}
|
|
20712
20714
|
}
|
|
20713
20715
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20097,10 +20097,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20097
20097
|
}
|
|
20098
20098
|
class BotError extends Error {
|
|
20099
20099
|
code;
|
|
20100
|
-
|
|
20100
|
+
details;
|
|
20101
|
+
constructor(code, message, details = {}) {
|
|
20101
20102
|
super(message);
|
|
20102
20103
|
this.name = "BotError";
|
|
20103
20104
|
this.code = code;
|
|
20105
|
+
this.details = details;
|
|
20104
20106
|
}
|
|
20105
20107
|
}
|
|
20106
20108
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20701,10 +20701,12 @@ function sha256Hex(value) {
|
|
|
20701
20701
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20702
20702
|
class BotError extends Error {
|
|
20703
20703
|
code;
|
|
20704
|
-
|
|
20704
|
+
details;
|
|
20705
|
+
constructor(code, message, details = {}) {
|
|
20705
20706
|
super(message);
|
|
20706
20707
|
this.name = "BotError";
|
|
20707
20708
|
this.code = code;
|
|
20709
|
+
this.details = details;
|
|
20708
20710
|
}
|
|
20709
20711
|
}
|
|
20710
20712
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20369,10 +20369,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
class BotError extends Error {
|
|
20371
20371
|
code;
|
|
20372
|
-
|
|
20372
|
+
details;
|
|
20373
|
+
constructor(code, message, details = {}) {
|
|
20373
20374
|
super(message);
|
|
20374
20375
|
this.name = "BotError";
|
|
20375
20376
|
this.code = code;
|
|
20377
|
+
this.details = details;
|
|
20376
20378
|
}
|
|
20377
20379
|
}
|
|
20378
20380
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -20777,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20777
20779
|
shortVideo: Object.freeze({
|
|
20778
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20779
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20780
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20781
20783
|
})
|
|
20782
20784
|
})
|
|
20783
20785
|
});
|
|
@@ -20945,11 +20947,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20945
20947
|
});
|
|
20946
20948
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20947
20949
|
if (manifest.browserSession !== undefined) {
|
|
20948
|
-
if (manifest.kind !== "publish") {
|
|
20950
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20949
20951
|
ctx.addIssue({
|
|
20950
20952
|
code: "custom",
|
|
20951
20953
|
path: ["browserSession"],
|
|
20952
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20954
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20953
20955
|
});
|
|
20954
20956
|
}
|
|
20955
20957
|
if (manifest.check === undefined) {
|
|
@@ -12057,7 +12057,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
12057
12057
|
shortVideo: Object.freeze({
|
|
12058
12058
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12059
12059
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
12060
|
-
shipinhao: Object.freeze({ max:
|
|
12060
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
12061
12061
|
})
|
|
12062
12062
|
})
|
|
12063
12063
|
});
|
|
@@ -12225,11 +12225,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
12225
12225
|
});
|
|
12226
12226
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
12227
12227
|
if (manifest.browserSession !== undefined) {
|
|
12228
|
-
if (manifest.kind !== "publish") {
|
|
12228
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
12229
12229
|
ctx.addIssue({
|
|
12230
12230
|
code: "custom",
|
|
12231
12231
|
path: ["browserSession"],
|
|
12232
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
12232
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
12233
12233
|
});
|
|
12234
12234
|
}
|
|
12235
12235
|
if (manifest.check === undefined) {
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20701,10 +20701,12 @@ function sha256Hex(value) {
|
|
|
20701
20701
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20702
20702
|
class BotError extends Error {
|
|
20703
20703
|
code;
|
|
20704
|
-
|
|
20704
|
+
details;
|
|
20705
|
+
constructor(code, message, details = {}) {
|
|
20705
20706
|
super(message);
|
|
20706
20707
|
this.name = "BotError";
|
|
20707
20708
|
this.code = code;
|
|
20709
|
+
this.details = details;
|
|
20708
20710
|
}
|
|
20709
20711
|
}
|
|
20710
20712
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20369,10 +20369,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
class BotError extends Error {
|
|
20371
20371
|
code;
|
|
20372
|
-
|
|
20372
|
+
details;
|
|
20373
|
+
constructor(code, message, details = {}) {
|
|
20373
20374
|
super(message);
|
|
20374
20375
|
this.name = "BotError";
|
|
20375
20376
|
this.code = code;
|
|
20377
|
+
this.details = details;
|
|
20376
20378
|
}
|
|
20377
20379
|
}
|
|
20378
20380
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -20783,7 +20785,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20783
20785
|
shortVideo: Object.freeze({
|
|
20784
20786
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20785
20787
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20786
|
-
shipinhao: Object.freeze({ max:
|
|
20788
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20787
20789
|
})
|
|
20788
20790
|
})
|
|
20789
20791
|
});
|
|
@@ -20951,11 +20953,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20951
20953
|
});
|
|
20952
20954
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20953
20955
|
if (manifest.browserSession !== undefined) {
|
|
20954
|
-
if (manifest.kind !== "publish") {
|
|
20956
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20955
20957
|
ctx.addIssue({
|
|
20956
20958
|
code: "custom",
|
|
20957
20959
|
path: ["browserSession"],
|
|
20958
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20960
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20959
20961
|
});
|
|
20960
20962
|
}
|
|
20961
20963
|
if (manifest.check === undefined) {
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20701,10 +20701,12 @@ function sha256Hex(value) {
|
|
|
20701
20701
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20702
20702
|
class BotError extends Error {
|
|
20703
20703
|
code;
|
|
20704
|
-
|
|
20704
|
+
details;
|
|
20705
|
+
constructor(code, message, details = {}) {
|
|
20705
20706
|
super(message);
|
|
20706
20707
|
this.name = "BotError";
|
|
20707
20708
|
this.code = code;
|
|
20709
|
+
this.details = details;
|
|
20708
20710
|
}
|
|
20709
20711
|
}
|
|
20710
20712
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20369,10 +20369,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
class BotError extends Error {
|
|
20371
20371
|
code;
|
|
20372
|
-
|
|
20372
|
+
details;
|
|
20373
|
+
constructor(code, message, details = {}) {
|
|
20373
20374
|
super(message);
|
|
20374
20375
|
this.name = "BotError";
|
|
20375
20376
|
this.code = code;
|
|
20377
|
+
this.details = details;
|
|
20376
20378
|
}
|
|
20377
20379
|
}
|
|
20378
20380
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -20777,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20777
20779
|
shortVideo: Object.freeze({
|
|
20778
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20779
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20780
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20781
20783
|
})
|
|
20782
20784
|
})
|
|
20783
20785
|
});
|
|
@@ -20945,11 +20947,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20945
20947
|
});
|
|
20946
20948
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20947
20949
|
if (manifest.browserSession !== undefined) {
|
|
20948
|
-
if (manifest.kind !== "publish") {
|
|
20950
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20949
20951
|
ctx.addIssue({
|
|
20950
20952
|
code: "custom",
|
|
20951
20953
|
path: ["browserSession"],
|
|
20952
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20954
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20953
20955
|
});
|
|
20954
20956
|
}
|
|
20955
20957
|
if (manifest.check === undefined) {
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20701,10 +20701,12 @@ function sha256Hex(value) {
|
|
|
20701
20701
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20702
20702
|
class BotError extends Error {
|
|
20703
20703
|
code;
|
|
20704
|
-
|
|
20704
|
+
details;
|
|
20705
|
+
constructor(code, message, details = {}) {
|
|
20705
20706
|
super(message);
|
|
20706
20707
|
this.name = "BotError";
|
|
20707
20708
|
this.code = code;
|
|
20709
|
+
this.details = details;
|
|
20708
20710
|
}
|
|
20709
20711
|
}
|
|
20710
20712
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20369,10 +20369,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
class BotError extends Error {
|
|
20371
20371
|
code;
|
|
20372
|
-
|
|
20372
|
+
details;
|
|
20373
|
+
constructor(code, message, details = {}) {
|
|
20373
20374
|
super(message);
|
|
20374
20375
|
this.name = "BotError";
|
|
20375
20376
|
this.code = code;
|
|
20377
|
+
this.details = details;
|
|
20376
20378
|
}
|
|
20377
20379
|
}
|
|
20378
20380
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -20777,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20777
20779
|
shortVideo: Object.freeze({
|
|
20778
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20779
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20780
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20781
20783
|
})
|
|
20782
20784
|
})
|
|
20783
20785
|
});
|
|
@@ -20945,11 +20947,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20945
20947
|
});
|
|
20946
20948
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20947
20949
|
if (manifest.browserSession !== undefined) {
|
|
20948
|
-
if (manifest.kind !== "publish") {
|
|
20950
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20949
20951
|
ctx.addIssue({
|
|
20950
20952
|
code: "custom",
|
|
20951
20953
|
path: ["browserSession"],
|
|
20952
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20954
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20953
20955
|
});
|
|
20954
20956
|
}
|
|
20955
20957
|
if (manifest.check === undefined) {
|
|
@@ -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
|
});
|
|
@@ -20073,11 +20073,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20073
20073
|
});
|
|
20074
20074
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20075
20075
|
if (manifest.browserSession !== undefined) {
|
|
20076
|
-
if (manifest.kind !== "publish") {
|
|
20076
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20077
20077
|
ctx.addIssue({
|
|
20078
20078
|
code: "custom",
|
|
20079
20079
|
path: ["browserSession"],
|
|
20080
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20080
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20081
20081
|
});
|
|
20082
20082
|
}
|
|
20083
20083
|
if (manifest.check === undefined) {
|
|
@@ -20701,10 +20701,12 @@ function sha256Hex(value) {
|
|
|
20701
20701
|
var DEFAULT_BOT_PROFILE_ROOT = join4(homedir4(), ".config", "kk", "browser-profiles");
|
|
20702
20702
|
class BotError extends Error {
|
|
20703
20703
|
code;
|
|
20704
|
-
|
|
20704
|
+
details;
|
|
20705
|
+
constructor(code, message, details = {}) {
|
|
20705
20706
|
super(message);
|
|
20706
20707
|
this.name = "BotError";
|
|
20707
20708
|
this.code = code;
|
|
20709
|
+
this.details = details;
|
|
20708
20710
|
}
|
|
20709
20711
|
}
|
|
20710
20712
|
// ../../packages/publish-harness/src/profile-dir.ts
|
|
@@ -20369,10 +20369,12 @@ function normalizeSessionIdentity(value) {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
class BotError extends Error {
|
|
20371
20371
|
code;
|
|
20372
|
-
|
|
20372
|
+
details;
|
|
20373
|
+
constructor(code, message, details = {}) {
|
|
20373
20374
|
super(message);
|
|
20374
20375
|
this.name = "BotError";
|
|
20375
20376
|
this.code = code;
|
|
20377
|
+
this.details = details;
|
|
20376
20378
|
}
|
|
20377
20379
|
}
|
|
20378
20380
|
// ../../packages/publish-harness/src/index.ts
|
|
@@ -20777,7 +20779,7 @@ var PLATFORM_CONTENT_LIMITS = Object.freeze({
|
|
|
20777
20779
|
shortVideo: Object.freeze({
|
|
20778
20780
|
douyin: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20779
20781
|
kuaishou: Object.freeze({ max: 1000, unit: "unicode_code_points" }),
|
|
20780
|
-
shipinhao: Object.freeze({ max:
|
|
20782
|
+
shipinhao: Object.freeze({ max: 100, unit: "unicode_code_points" })
|
|
20781
20783
|
})
|
|
20782
20784
|
})
|
|
20783
20785
|
});
|
|
@@ -20945,11 +20947,11 @@ var PluginManifestSchemaBase = looseObject({
|
|
|
20945
20947
|
});
|
|
20946
20948
|
var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx) => {
|
|
20947
20949
|
if (manifest.browserSession !== undefined) {
|
|
20948
|
-
if (manifest.kind !== "publish") {
|
|
20950
|
+
if (manifest.kind !== "publish" && manifest.kind !== "ingestion") {
|
|
20949
20951
|
ctx.addIssue({
|
|
20950
20952
|
code: "custom",
|
|
20951
20953
|
path: ["browserSession"],
|
|
20952
|
-
message: `browserSession requires kind "publish", not "${manifest.kind}"`
|
|
20954
|
+
message: `browserSession requires kind "publish" or "ingestion", not "${manifest.kind}"`
|
|
20953
20955
|
});
|
|
20954
20956
|
}
|
|
20955
20957
|
if (manifest.check === undefined) {
|