@gobing-ai/knowledge-kit 0.1.24 → 0.1.25
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 +302 -59
- package/package.json +1 -1
- package/plugins/generations/episode-plan-gen/dist/index.js +47 -6
- package/plugins/generations/episode-plan-gen/src/index.ts +71 -7
- package/plugins/generations/music-gen/dist/index.js +17 -13
- package/plugins/generations/music-gen/src/audio/measure.ts +25 -20
- package/plugins/kk/decisions/extract/ai-news.yaml +8 -1
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice.json +4 -4
- package/plugins/kk/publish-presets/itc-main.json +39 -23
- package/plugins/kk/scripts/daily-stages.ts +500 -33
- package/plugins/kk/scripts/kk-workflow-stages.ts +5 -0
- package/plugins/kk/skills/content-safety/references/platforms/apple-podcasts.md +12 -5
- package/plugins/kk/skills/content-safety/references/platforms/wechatmp.md +8 -0
- package/plugins/kk/skills/content-safety/references/platforms/xiaoyuzhou.md +5 -0
- package/plugins/kk/skills/daily-news-cover/SKILL.md +96 -0
- package/plugins/kk/skills/daily-news-illustrations/SKILL.md +123 -0
- package/plugins/kk/skills/news-editorial/SKILL.md +5 -3
- package/plugins/kk/skills/news-editorial/references/daily-visual-composition.md +150 -0
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +1 -1
- package/plugins/kk/workflows/kk-article-generate.yaml +13 -1
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +6 -3
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +6 -4
- package/plugins/kk/workflows/kk-news-generate.yaml +71 -1
- package/plugins/publishings/bilibili-pub/dist/index.js +3 -2
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/cnblogs-pub/dist/index.js +3 -2
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/csdn-pub/dist/index.js +3 -2
- package/plugins/publishings/csdn-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/infoq-pub/dist/index.js +3 -2
- package/plugins/publishings/infoq-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/jike-pub/dist/index.js +3 -2
- package/plugins/publishings/jike-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/juejin-pub/dist/index.js +3 -2
- package/plugins/publishings/juejin-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/linkedin-pub/dist/index.js +3 -2
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/medium-pub/dist/index.js +9198 -279
- package/plugins/publishings/medium-pub/dist/profile-check.js +21174 -0
- package/plugins/publishings/medium-pub/package.json +3 -1
- package/plugins/publishings/medium-pub/plugin.json +6 -1
- package/plugins/publishings/medium-pub/src/browser-rail.ts +280 -0
- package/plugins/publishings/medium-pub/src/index.ts +17 -1
- package/plugins/publishings/medium-pub/src/profile-check.ts +27 -0
- package/plugins/publishings/shipinhao-pub/dist/index.js +6 -3
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +5 -3
- package/plugins/publishings/shipinhao-pub/src/flow.ts +5 -0
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +11 -4
- package/plugins/publishings/sspai-pub/dist/index.js +3 -2
- package/plugins/publishings/sspai-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/substack-pub/dist/index.js +3 -2
- package/plugins/publishings/substack-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/threads-pub/dist/index.js +3 -2
- package/plugins/publishings/threads-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/wechatmp-pub/dist/index.js +262 -42
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/wechatmp-pub/src/flow.ts +447 -53
- package/plugins/publishings/wechatmp-pub/src/index.ts +4 -1
- package/plugins/publishings/wechatmp-pub/src/page.ts +8 -0
- package/plugins/publishings/weibo-pub/dist/index.js +3 -2
- package/plugins/publishings/weibo-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/x-pub/dist/index.js +3 -2
- package/plugins/publishings/x-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/xhs-pub/dist/index.js +3 -2
- package/plugins/publishings/xhs-pub/dist/profile-check.js +3 -2
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +3 -2
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +3 -2
|
@@ -32,6 +32,21 @@ vars:
|
|
|
32
32
|
# The writer skill, read in place (design §2.2): `<package>/plugins/kk/skills/news-editorial`. No
|
|
33
33
|
# `20-editorial/` copy and no style-contract copy exist in a new run — the prompts cite this path.
|
|
34
34
|
skill_dir: ""
|
|
35
|
+
# 0424 R2: the package's skill root, read in place for the daily visual direction (cover scene +
|
|
36
|
+
# shared composition reference). `kk news generate` passes the resolved absolute root; the
|
|
37
|
+
# checkout-relative default keeps a direct `spur workflow run` call working.
|
|
38
|
+
visual_skill_root: "plugins/kk/skills"
|
|
39
|
+
# 0426 R1: opt-in inline figures in the WeChat article variant. Off by default; `kk news generate
|
|
40
|
+
# --inline-illustrations` forwards "true" after admitting the target, and a direct
|
|
41
|
+
# `spur workflow run` gets the gated-off default.
|
|
42
|
+
inline_illustrations: "false"
|
|
43
|
+
# 0426 R2: the figure requests reuse the daily cover's pinned provider/model (no implicit
|
|
44
|
+
# fallback) — the same pair the daily voice workflows ship.
|
|
45
|
+
cover_provider: "minimax"
|
|
46
|
+
cover_model: "image-01"
|
|
47
|
+
# The extra product-plugin root the figure requests may resolve presets from; "" keeps the
|
|
48
|
+
# executor's own resolution (the voice workflows' default).
|
|
49
|
+
plugins_path: ""
|
|
35
50
|
skip_review: "false"
|
|
36
51
|
preset: ""
|
|
37
52
|
|
|
@@ -167,6 +182,8 @@ nodes:
|
|
|
167
182
|
# ADR-115 error tier: keep this prompt <= 1000 chars.
|
|
168
183
|
input: |
|
|
169
184
|
Follow mode `write` in ${vars.skill_dir}/SKILL.md (read its references first: the skill owns selection, balance, style contract and the master output shape).
|
|
185
|
+
Visuals: `scene` mode in ${vars.visual_skill_root}/daily-news-cover/SKILL.md owns `cover` (keep the frozen headline and sourceIds);
|
|
186
|
+
`card` mode in ${vars.visual_skill_root}/daily-news-illustrations/SKILL.md owns each items[].card.subject. Compose per ${vars.visual_skill_root}/news-editorial/references/daily-visual-composition.md.
|
|
170
187
|
--in ${vars.work_dir}/21-plan/${vars.run_date}_03_plan_plan.json (don't edit it)
|
|
171
188
|
--excluded ${vars.work_dir}/21-plan/${vars.run_date}_03_curate_excluded.json
|
|
172
189
|
--out ${vars.work_dir}/24-script/${vars.run_date}_08_script-write_plan.json
|
|
@@ -208,6 +225,8 @@ nodes:
|
|
|
208
225
|
# ADR-115 error tier: keep this prompt <= 1000 chars.
|
|
209
226
|
input: |
|
|
210
227
|
Follow mode `write --fix` in ${vars.skill_dir}/SKILL.md (read its references first).
|
|
228
|
+
Visuals: `scene` mode in ${vars.visual_skill_root}/daily-news-cover/SKILL.md owns `cover` (keep the frozen headline and sourceIds);
|
|
229
|
+
`card` mode in ${vars.visual_skill_root}/daily-news-illustrations/SKILL.md owns each items[].card.subject. Compose per ${vars.visual_skill_root}/news-editorial/references/daily-visual-composition.md.
|
|
211
230
|
--in ${vars.work_dir}/21-plan/${vars.run_date}_03_plan_plan.json (don't edit it)
|
|
212
231
|
--excluded ${vars.work_dir}/21-plan/${vars.run_date}_03_curate_excluded.json
|
|
213
232
|
Previous plan (may be absent): ${vars.work_dir}/24-script/${vars.run_date}_08_script-write_plan.json
|
|
@@ -298,6 +317,57 @@ nodes:
|
|
|
298
317
|
&& grep -q "status.*PASS" "${vars.work_dir}/pool-gate.json" 2>/dev/null
|
|
299
318
|
|
|
300
319
|
# ── 13a. localize: en/ja translations of the reviewed zh article, before the freeze ────────
|
|
320
|
+
# ── 0426: inline figures for the reviewed article (opt-in, default off) ─────────────────────
|
|
321
|
+
# After the drafts verdict AND the operator review, as 0426 R1 requires: figures anchor to the body
|
|
322
|
+
# the operator approved, so an edit made at the pause never leaves a figure rendered against a
|
|
323
|
+
# superseded paragraph. Both edges are declared on purpose — `--skip-review` SKIPS `review`, and a
|
|
324
|
+
# node whose dependencies are ALL skipped is skipped, so `[safety]` alone would also work while
|
|
325
|
+
# `[review]` alone would silently drop opted-in figures; done+skipped is a mix, so this node runs.
|
|
326
|
+
# The render stage re-validates every anchor against the article as it stands when it renders, and
|
|
327
|
+
# the receipt binds the body hash, so a later edit is refused at materialization, never published.
|
|
328
|
+
- id: illustrations-plan
|
|
329
|
+
description: "Author 22-article/illustrations/plan.json (1-2 sourced whole-paragraph anchors, concept, caption, alt text) — 0426 R1; opt-in only"
|
|
330
|
+
dependsOn: [safety, review]
|
|
331
|
+
condition:
|
|
332
|
+
kind: shell
|
|
333
|
+
options:
|
|
334
|
+
command: >-
|
|
335
|
+
test "${vars.inline_illustrations}" = "true"
|
|
336
|
+
&& grep -q "status.*PASS" "${vars.work_dir}/pool-gate.json" 2>/dev/null
|
|
337
|
+
action:
|
|
338
|
+
kind: agent.run
|
|
339
|
+
options:
|
|
340
|
+
role: scribe
|
|
341
|
+
agent: ${vars.agent}
|
|
342
|
+
timeoutMs: 300000
|
|
343
|
+
# ADR-115 error tier: keep this prompt <= 1000 chars.
|
|
344
|
+
input: |
|
|
345
|
+
Follow mode `inline` in ${vars.visual_skill_root}/daily-news-illustrations/SKILL.md (read it first; composition: ${vars.visual_skill_root}/news-editorial/references/daily-visual-composition.md).
|
|
346
|
+
Read the reviewed article ${vars.work_dir}/22-article/${vars.run_date}_06_article_content.json — don't edit it.
|
|
347
|
+
Pick ONE or TWO prose paragraphs that each carry a distinct visual idea, in body order. Copy each paragraph VERBATIM as "anchor" — a whole paragraph, never a heading, quotation, list item, code line or a sentence inside one.
|
|
348
|
+
Per figure: "anchor", "sourceId" (the plan item it is about), "concept" (one text-free English scene), "caption" (<=30 Chinese chars), "altText" (<=40 Chinese chars).
|
|
349
|
+
Output strictly valid JSON {"version":1,"figures":[...]} to ${vars.work_dir}/22-article/illustrations/plan.json.
|
|
350
|
+
expectFile: ${vars.work_dir}/22-article/illustrations/plan.json
|
|
351
|
+
allowAppend: false
|
|
352
|
+
|
|
353
|
+
- id: illustrations-render
|
|
354
|
+
description: "`kk stage news-inline-illustrations` — validate the whole figure plan, then render or resume one pinned illustration per figure (0426 R1/R2); opt-in only"
|
|
355
|
+
dependsOn: [illustrations-plan]
|
|
356
|
+
condition:
|
|
357
|
+
kind: shell
|
|
358
|
+
options:
|
|
359
|
+
command: >-
|
|
360
|
+
test "${vars.inline_illustrations}" = "true"
|
|
361
|
+
&& grep -q "status.*PASS" "${vars.work_dir}/pool-gate.json" 2>/dev/null
|
|
362
|
+
action:
|
|
363
|
+
kind: shell
|
|
364
|
+
options:
|
|
365
|
+
command: >-
|
|
366
|
+
kk stage run news-inline-illustrations
|
|
367
|
+
"${vars.work_dir}" "${vars.run_date}" "${vars.plugins_path}"
|
|
368
|
+
"${vars.cover_provider}" "${vars.cover_model}"
|
|
369
|
+
"${vars.visual_skill_root}/../publish-presets/${vars.preset}.json"
|
|
370
|
+
|
|
301
371
|
- id: localize
|
|
302
372
|
description: >-
|
|
303
373
|
Translate the reviewed zh article into en/ja (0409 R1) and write
|
|
@@ -437,7 +507,7 @@ nodes:
|
|
|
437
507
|
`daily-safety-manifest` in one process: `31-publish/` prep, `30-variants/*` payloads and the
|
|
438
508
|
manifest the nested variants review registers. Two stages, because the review of those
|
|
439
509
|
variants has to run between them and a nested workflow call cannot live inside a verb.
|
|
440
|
-
dependsOn: [voice, voice-fallback, voice-fallback2, cards, localize-check]
|
|
510
|
+
dependsOn: [voice, voice-fallback, voice-fallback2, cards, localize-check, illustrations-render]
|
|
441
511
|
condition:
|
|
442
512
|
kind: shell
|
|
443
513
|
options:
|
|
@@ -20656,7 +20656,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20656
20656
|
}
|
|
20657
20657
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20658
20658
|
}
|
|
20659
|
-
|
|
20659
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20660
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20660
20661
|
}
|
|
20661
20662
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20662
20663
|
try {
|
|
@@ -20880,7 +20881,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20880
20881
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20881
20882
|
}
|
|
20882
20883
|
async function checkChannelSession(config, opts) {
|
|
20883
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20884
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20884
20885
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20885
20886
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20886
20887
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20063,7 +20063,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20063
20063
|
}
|
|
20064
20064
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20065
20065
|
}
|
|
20066
|
-
|
|
20066
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20067
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20067
20068
|
}
|
|
20068
20069
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20069
20070
|
try {
|
|
@@ -20311,7 +20312,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20311
20312
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20312
20313
|
}
|
|
20313
20314
|
async function checkChannelSession(config, opts) {
|
|
20314
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20315
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20315
20316
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20316
20317
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20317
20318
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20677,7 +20677,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20677
20677
|
}
|
|
20678
20678
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20679
20679
|
}
|
|
20680
|
-
|
|
20680
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20681
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20681
20682
|
}
|
|
20682
20683
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20683
20684
|
try {
|
|
@@ -20903,7 +20904,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20903
20904
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20904
20905
|
}
|
|
20905
20906
|
async function checkChannelSession(config, opts) {
|
|
20906
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20907
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20907
20908
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20908
20909
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20909
20910
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20063,7 +20063,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20063
20063
|
}
|
|
20064
20064
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20065
20065
|
}
|
|
20066
|
-
|
|
20066
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20067
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20067
20068
|
}
|
|
20068
20069
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20069
20070
|
try {
|
|
@@ -20332,7 +20333,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20332
20333
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20333
20334
|
}
|
|
20334
20335
|
async function checkChannelSession(config, opts) {
|
|
20335
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20336
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20336
20337
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20337
20338
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20338
20339
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20674,7 +20674,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20674
20674
|
}
|
|
20675
20675
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20676
20676
|
}
|
|
20677
|
-
|
|
20677
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20678
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20678
20679
|
}
|
|
20679
20680
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20680
20681
|
try {
|
|
@@ -20900,7 +20901,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20900
20901
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20901
20902
|
}
|
|
20902
20903
|
async function checkChannelSession(config, opts) {
|
|
20903
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
20905
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20905
20906
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20906
20907
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20335,7 +20335,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20335
20335
|
}
|
|
20336
20336
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20337
20337
|
}
|
|
20338
|
-
|
|
20338
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20339
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20339
20340
|
}
|
|
20340
20341
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20341
20342
|
try {
|
|
@@ -20604,7 +20605,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20604
20605
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20605
20606
|
}
|
|
20606
20607
|
async function checkChannelSession(config, opts) {
|
|
20607
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
20609
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20609
20610
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20610
20611
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20674,7 +20674,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20674
20674
|
}
|
|
20675
20675
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20676
20676
|
}
|
|
20677
|
-
|
|
20677
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20678
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20678
20679
|
}
|
|
20679
20680
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20680
20681
|
try {
|
|
@@ -20900,7 +20901,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20900
20901
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20901
20902
|
}
|
|
20902
20903
|
async function checkChannelSession(config, opts) {
|
|
20903
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
20905
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20905
20906
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20906
20907
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20335,7 +20335,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20335
20335
|
}
|
|
20336
20336
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20337
20337
|
}
|
|
20338
|
-
|
|
20338
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20339
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20339
20340
|
}
|
|
20340
20341
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20341
20342
|
try {
|
|
@@ -20604,7 +20605,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20604
20605
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20605
20606
|
}
|
|
20606
20607
|
async function checkChannelSession(config, opts) {
|
|
20607
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
20609
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20609
20610
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20610
20611
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20674,7 +20674,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20674
20674
|
}
|
|
20675
20675
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20676
20676
|
}
|
|
20677
|
-
|
|
20677
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20678
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20678
20679
|
}
|
|
20679
20680
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20680
20681
|
try {
|
|
@@ -20900,7 +20901,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20900
20901
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20901
20902
|
}
|
|
20902
20903
|
async function checkChannelSession(config, opts) {
|
|
20903
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
20905
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20905
20906
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20906
20907
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20335,7 +20335,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20335
20335
|
}
|
|
20336
20336
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20337
20337
|
}
|
|
20338
|
-
|
|
20338
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20339
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20339
20340
|
}
|
|
20340
20341
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20341
20342
|
try {
|
|
@@ -20604,7 +20605,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20604
20605
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20605
20606
|
}
|
|
20606
20607
|
async function checkChannelSession(config, opts) {
|
|
20607
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
20609
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20609
20610
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20610
20611
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20674,7 +20674,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20674
20674
|
}
|
|
20675
20675
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20676
20676
|
}
|
|
20677
|
-
|
|
20677
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20678
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20678
20679
|
}
|
|
20679
20680
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20680
20681
|
try {
|
|
@@ -20900,7 +20901,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20900
20901
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20901
20902
|
}
|
|
20902
20903
|
async function checkChannelSession(config, opts) {
|
|
20903
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
20905
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20905
20906
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20906
20907
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20335,7 +20335,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20335
20335
|
}
|
|
20336
20336
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20337
20337
|
}
|
|
20338
|
-
|
|
20338
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20339
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20339
20340
|
}
|
|
20340
20341
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20341
20342
|
try {
|
|
@@ -20604,7 +20605,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20604
20605
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20605
20606
|
}
|
|
20606
20607
|
async function checkChannelSession(config, opts) {
|
|
20607
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
20609
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20609
20610
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20610
20611
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20674,7 +20674,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20674
20674
|
}
|
|
20675
20675
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20676
20676
|
}
|
|
20677
|
-
|
|
20677
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20678
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20678
20679
|
}
|
|
20679
20680
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20680
20681
|
try {
|
|
@@ -20900,7 +20901,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20900
20901
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20901
20902
|
}
|
|
20902
20903
|
async function checkChannelSession(config, opts) {
|
|
20903
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20904
20905
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20905
20906
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20906
20907
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -20335,7 +20335,8 @@ async function busyGuidance(fileSystem, leaseDir) {
|
|
|
20335
20335
|
}
|
|
20336
20336
|
return `browser lease ${leaseDir} already exists with no owner record \u2014 a previous run may have crashed mid-acquire; confirm no kk browser still uses this profile, then remove ${leaseDir} manually`;
|
|
20337
20337
|
}
|
|
20338
|
-
|
|
20338
|
+
const suffix = isProcessAlive(owner.pid) ? "confirm that process and any browser for this profile have stopped; stale ownership is never auto-removed" : `pid ${owner.pid} is no longer running \u2014 confirm no browser for this profile is open, then remove the stale lease with: rm -rf ${leaseDir}`;
|
|
20339
|
+
return `browser lease ${leaseDir} is held by pid ${owner.pid} (logical ${owner.logicalPath}) \u2014 ${suffix}`;
|
|
20339
20340
|
}
|
|
20340
20341
|
async function holderResidue(fileSystem, leaseDir) {
|
|
20341
20342
|
try {
|
|
@@ -20604,7 +20605,7 @@ function resolveChannelProfileDir(channel, override) {
|
|
|
20604
20605
|
return resolveBrowserProfileDir(channel, chosen);
|
|
20605
20606
|
}
|
|
20606
20607
|
async function checkChannelSession(config, opts) {
|
|
20607
|
-
const timeoutMs = opts.timeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
|
+
const timeoutMs = opts.timeoutMs ?? config.checkTimeoutMs ?? DEFAULT_CHECK_TIMEOUT_MS;
|
|
20608
20609
|
const passes = opts.headedOnly ? [false] : opts.headedFallback === false ? [true] : [true, false];
|
|
20609
20610
|
let lastDetail = `${config.channel} readiness was never probed`;
|
|
20610
20611
|
const deadline = Date.now() + timeoutMs;
|