@gobing-ai/knowledge-kit 0.1.22 → 0.1.24
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 +282 -147
- package/package.json +5 -5
- package/plugins/generations/content-gen/dist/index.js +9 -9
- package/plugins/generations/core-facts-gen/dist/index.js +12 -12
- package/plugins/generations/daily-article-gen/dist/index.js +12 -12
- package/plugins/generations/dailynews-gen/dist/index.js +11 -11
- package/plugins/generations/dailynews-gen/src/script-plan.ts +2 -2
- package/plugins/generations/episode-plan-gen/dist/index.js +12 -12
- package/plugins/generations/gemini-tts/dist/index.js +56 -16
- package/plugins/generations/gemini-tts/src/gemini-client.ts +34 -6
- package/plugins/generations/image-gen/dist/index.js +9 -9
- package/plugins/generations/music-gen/README.md +2 -2
- package/plugins/generations/music-gen/dist/index.js +62 -26
- package/plugins/generations/music-gen/presets/formats/song.yaml +6 -1
- package/plugins/generations/music-gen/presets/themes/synthwave.yaml +6 -1
- package/plugins/generations/music-gen/src/adapter/instance.ts +34 -11
- package/plugins/generations/music-gen/src/presets.ts +36 -3
- package/plugins/generations/news-report-gen/dist/index.js +12 -12
- package/plugins/generations/omni-voice-gen/uv.toml +5 -0
- package/plugins/generations/vibe-voice-tts/README.md +64 -0
- package/plugins/generations/vibe-voice-tts/dist/index.js +14259 -0
- package/plugins/generations/vibe-voice-tts/package.json +16 -0
- package/plugins/generations/vibe-voice-tts/plugin.json +6 -0
- package/plugins/generations/vibe-voice-tts/profiles.json +10 -0
- package/plugins/generations/vibe-voice-tts/pyproject.toml +9 -0
- package/plugins/generations/vibe-voice-tts/python/worker.py +566 -0
- package/plugins/generations/vibe-voice-tts/src/index.ts +88 -0
- package/plugins/generations/vibe-voice-tts/src/vibevoice-client.ts +828 -0
- package/plugins/generations/vibe-voice-tts/tsconfig.json +8 -0
- package/plugins/generations/vibe-voice-tts/uv.lock +1767 -0
- package/plugins/generations/vibe-voice-tts/uv.toml +4 -0
- package/plugins/generations/voice-gen/dist/index.js +40 -10
- package/plugins/generations/voice-gen/src/voicebox-client.ts +50 -1
- package/plugins/generations/voxcpm-tts/dist/index.js +90 -18
- package/plugins/generations/voxcpm-tts/python/worker.py +9 -0
- package/plugins/generations/voxcpm-tts/src/index.ts +41 -0
- package/plugins/generations/voxcpm-tts/src/voxcpm-client.ts +32 -11
- package/plugins/generations/voxcpm-tts/uv.toml +5 -0
- package/plugins/ingestions/aihot-ingest/dist/index.js +12 -12
- package/plugins/ingestions/horizon-ingest/dist/index.js +12 -12
- package/plugins/ingestions/karakeep-local/dist/index.js +13 -13
- package/plugins/ingestions/last30days-ingest/dist/index.js +12 -12
- package/plugins/ingestions/web-search/dist/index.js +10 -10
- package/plugins/kk/README.md +21 -0
- package/plugins/kk/decisions/kk-safety.yaml +5 -2
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/publish-presets/daily-ai-voice.json +16 -16
- package/plugins/kk/schedules/kk-serve.launchd.plist.tmpl +12 -1
- package/plugins/kk/scripts/cover-compositor.ts +104 -26
- package/plugins/kk/scripts/daily-stages.ts +481 -63
- package/plugins/kk/scripts/kk-workflow-stages.ts +218 -17
- package/plugins/kk/scripts/safety-artifact-check.ts +28 -5
- package/plugins/kk/scripts/series-names.ts +16 -3
- package/plugins/kk/skills/news-editorial/SKILL.md +1 -1
- package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +3 -3
- package/plugins/kk/workflows/kk-daily-ai-voice.yaml +4 -3
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +6 -5
- package/plugins/kk/workflows/kk-daily-safety.yaml +12 -10
- package/plugins/kk/workflows/kk-music.yaml +20 -16
- package/plugins/kk/workflows/kk-news-generate.yaml +26 -3
- package/plugins/kk/workflows/kk-publish.yaml +4 -1
- package/plugins/publishings/bilibili-pub/dist/index.js +22 -22
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/cnblogs-pub/dist/index.js +22 -22
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/csdn-pub/dist/index.js +22 -22
- package/plugins/publishings/csdn-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/emdash-pub/dist/index.js +9 -9
- package/plugins/publishings/infoq-pub/dist/index.js +22 -22
- package/plugins/publishings/infoq-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/jike-pub/dist/index.js +22 -22
- package/plugins/publishings/jike-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/juejin-pub/dist/index.js +22 -22
- package/plugins/publishings/juejin-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/linkedin-pub/dist/index.js +133 -33
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +27 -22
- package/plugins/publishings/linkedin-pub/src/index.ts +192 -18
- package/plugins/publishings/medium-pub/dist/index.js +9 -9
- package/plugins/publishings/podcast-pub/dist/index.js +240 -37
- package/plugins/publishings/podcast-pub/src/index.ts +154 -3
- package/plugins/publishings/podcast-pub/src/seo.ts +25 -8
- package/plugins/publishings/podcast-pub/src/show-notes-brief.ts +93 -23
- package/plugins/publishings/podcast-pub/src/show-notes.ts +26 -6
- package/plugins/publishings/qiita-pub/dist/index.js +9 -9
- package/plugins/publishings/shipinhao-pub/dist/index.js +23 -23
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +23 -23
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +2 -1
- package/plugins/publishings/sspai-pub/dist/index.js +22 -22
- package/plugins/publishings/sspai-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/substack-pub/dist/index.js +22 -22
- package/plugins/publishings/substack-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/surfdash-pub/dist/index.js +207 -95
- package/plugins/publishings/surfdash-pub/src/digest-check.ts +30 -1
- package/plugins/publishings/surfdash-pub/src/index.ts +101 -76
- package/plugins/publishings/surfdash-pub/src/media-upload.ts +83 -0
- package/plugins/publishings/surfdash-pub/src/patch.ts +49 -26
- package/plugins/publishings/surfdash-pub/src/topic-claims.ts +12 -4
- package/plugins/publishings/threads-pub/dist/index.js +83 -27
- package/plugins/publishings/threads-pub/dist/profile-check.js +34 -23
- package/plugins/publishings/threads-pub/src/post-rail.ts +121 -4
- package/plugins/publishings/wechatmp-pub/dist/index.js +274 -98
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +27 -23
- package/plugins/publishings/wechatmp-pub/src/cgi-draft.ts +87 -53
- package/plugins/publishings/wechatmp-pub/src/enrich.ts +117 -13
- package/plugins/publishings/wechatmp-pub/src/flow.ts +183 -43
- package/plugins/publishings/wechatmp-pub/src/modes.ts +30 -12
- package/plugins/publishings/weibo-pub/dist/index.js +22 -22
- package/plugins/publishings/weibo-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/x-pub/dist/index.js +113 -32
- package/plugins/publishings/x-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/x-pub/src/post-rail.ts +155 -20
- package/plugins/publishings/xhs-pub/dist/index.js +22 -22
- package/plugins/publishings/xhs-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +22 -22
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/zenn-pub/dist/index.js +9 -9
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* `fill()` leaves Post disabled), media `button[aria-label="Add photos or video"]` then
|
|
17
17
|
* `input[data-testid="fileInput"]`, submit `[data-testid="tweetButton"]`.
|
|
18
18
|
*/
|
|
19
|
-
import {
|
|
19
|
+
import { tmpdir } from 'node:os';
|
|
20
|
+
import { extname, isAbsolute, join } from 'node:path';
|
|
20
21
|
import type { Result } from '@gobing-ai/kk-core';
|
|
21
22
|
import { ResultSchema } from '@gobing-ai/kk-core';
|
|
22
23
|
import { type PublishTransport, type PublishTransportPayload, trySelectors } from '@gobing-ai/publish-harness';
|
|
@@ -47,8 +48,15 @@ export const X_POST_URL = 'https://x.com/home';
|
|
|
47
48
|
export const X_NEW_POST_BUTTON = '[data-testid="SideNav_NewTweet_Button"]';
|
|
48
49
|
/** Composer page the nav button lands on. */
|
|
49
50
|
export const X_COMPOSE_PATH = '/compose/post';
|
|
50
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* Submit controls, measured 2026-11-20 on `/compose/post`: the **page** composer carries
|
|
53
|
+
* `[data-testid="tweetButton"]`, and the inline composer on `/home` carries
|
|
54
|
+
* `[data-testid="tweetButtonInline"]`. Both start `disabled`/`aria-disabled="true"` and enable as soon
|
|
55
|
+
* as the editor holds text, so the rail must accept either rather than assume the page one survives.
|
|
56
|
+
*/
|
|
51
57
|
export const X_POST_SUBMIT = '[data-testid="tweetButton"]';
|
|
58
|
+
export const X_POST_SUBMIT_INLINE = '[data-testid="tweetButtonInline"]';
|
|
59
|
+
export const X_POST_SUBMITS: readonly string[] = [X_POST_SUBMIT, X_POST_SUBMIT_INLINE];
|
|
52
60
|
|
|
53
61
|
/** Composer controls, all page-scoped (measured 2026-11-16). */
|
|
54
62
|
export const POST_SELECTORS = {
|
|
@@ -211,15 +219,18 @@ export class XPostBrowserTransport implements PublishTransport {
|
|
|
211
219
|
return composer.ok ? null : `x composer never opened at ${X_COMPOSE_PATH}: ${composer.error}`;
|
|
212
220
|
}
|
|
213
221
|
|
|
214
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* Types the text and requires the Post control to enable (bounded three attempts).
|
|
224
|
+
*
|
|
225
|
+
* Measured 2026-11-20: **Escape on `/compose/post` navigates to `/home`** — the compose surface is a
|
|
226
|
+
* page there, not an overlay — so the old "press Escape to clear the mask" first move threw the
|
|
227
|
+
* run off the page whose submit it then waited on (`[data-testid="tweetButton"]` is page-scoped and
|
|
228
|
+
* disappears), and every attempt ended as "post submit never enabled". A mask, when it exists, is
|
|
229
|
+
* cleared by the forced editor click below, which never navigates.
|
|
230
|
+
*/
|
|
215
231
|
private async typeAndEnable(page: Page, text: string): Promise<string | null> {
|
|
216
232
|
const textBox = page.locator(POST_SELECTORS.text[0]).first();
|
|
217
|
-
const submit = page.locator(X_POST_SUBMIT).first();
|
|
218
233
|
for (let attempt = 1; attempt <= 3; attempt++) {
|
|
219
|
-
// X can leave a `[data-testid="mask"]` layer over the composer (it opens the compose
|
|
220
|
-
// surface as an overlay after an in-app navigation), which swallows pointer events. A
|
|
221
|
-
// forced click, and focus as the fallback, reach the editor without dismissing it.
|
|
222
|
-
await page.keyboard.press('Escape').catch(() => {});
|
|
223
234
|
await page.waitForTimeout(250);
|
|
224
235
|
const focused = await textBox.click({ force: true }).then(
|
|
225
236
|
() => true,
|
|
@@ -235,7 +246,7 @@ export class XPostBrowserTransport implements PublishTransport {
|
|
|
235
246
|
await textBox.press('Backspace').catch(() => {});
|
|
236
247
|
await textBox.pressSequentially(text, { delay: 8 });
|
|
237
248
|
const enabled = await expectOutcome(
|
|
238
|
-
async () => ((await
|
|
249
|
+
async () => ((await this.findEnabledSubmit(page)) !== null ? 'post enabled' : null),
|
|
239
250
|
// One step, capped at 10s: a caller may shrink the step (tests), never stretch it.
|
|
240
251
|
{ timeoutMs: Math.min(10_000, this.stepTimeoutMs), label: `x post enabled (attempt ${attempt})` },
|
|
241
252
|
);
|
|
@@ -244,6 +255,36 @@ export class XPostBrowserTransport implements PublishTransport {
|
|
|
244
255
|
return 'x post submit never enabled — the editor did not accept the text in three attempts';
|
|
245
256
|
}
|
|
246
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Locates an enabled submit control across page (`tweetButton`) and inline (`tweetButtonInline`)
|
|
260
|
+
* surfaces without letting `.first()` stall 30s on an absent node or pick a disabled hidden twin.
|
|
261
|
+
*/
|
|
262
|
+
private async findEnabledSubmit(
|
|
263
|
+
page: Page,
|
|
264
|
+
opts: { preferVisible?: boolean } = {},
|
|
265
|
+
): Promise<ReturnType<Page['locator']> | null> {
|
|
266
|
+
let enabledFallback: ReturnType<Page['locator']> | null = null;
|
|
267
|
+
for (const selector of X_POST_SUBMITS) {
|
|
268
|
+
const loc = page.locator(selector);
|
|
269
|
+
const count = await loc.count().catch(() => 0);
|
|
270
|
+
const limit = Math.max(1, count);
|
|
271
|
+
for (let index = 0; index < limit; index += 1) {
|
|
272
|
+
const candidate = index === 0 ? loc.first() : loc.nth(index);
|
|
273
|
+
const enabled = await candidate.isEnabled({ timeout: 1_000 }).catch(() => false);
|
|
274
|
+
if (!enabled) continue;
|
|
275
|
+
if (opts.preferVisible !== true) return candidate;
|
|
276
|
+
// A visible, enabled control is the real one; the composer page also renders a hidden
|
|
277
|
+
// template whose button is enabled-looking but never posts. Preferring visibility and
|
|
278
|
+
// accepting enabled-only when visibility cannot be established keeps a surface whose
|
|
279
|
+
// button reports no layout (and the test double) working.
|
|
280
|
+
const visible = await candidate.isVisible().catch(() => false);
|
|
281
|
+
if (visible) return candidate;
|
|
282
|
+
enabledFallback ??= candidate;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return enabledFallback;
|
|
286
|
+
}
|
|
287
|
+
|
|
247
288
|
private async runPostFlow(
|
|
248
289
|
page: Page,
|
|
249
290
|
text: string,
|
|
@@ -292,21 +333,83 @@ export class XPostBrowserTransport implements PublishTransport {
|
|
|
292
333
|
);
|
|
293
334
|
if (!attached.ok) return fail(`x post image was uploaded but never rendered: ${attached.error}`);
|
|
294
335
|
const reEnabled = await expectOutcome(
|
|
295
|
-
async () =>
|
|
296
|
-
(await page
|
|
297
|
-
.locator(X_POST_SUBMIT)
|
|
298
|
-
.first()
|
|
299
|
-
.isEnabled()
|
|
300
|
-
.catch(() => false))
|
|
301
|
-
? 'post re-enabled'
|
|
302
|
-
: null,
|
|
336
|
+
async () => ((await this.findEnabledSubmit(page)) !== null ? 'post re-enabled' : null),
|
|
303
337
|
// Four steps: X transcodes the image and only then re-enables Post (30s step → 120s).
|
|
304
338
|
{ timeoutMs: this.stepTimeoutMs * 4, label: 'x post submit enabled after media' },
|
|
305
339
|
);
|
|
306
|
-
if (!reEnabled.ok)
|
|
340
|
+
if (!reEnabled.ok) {
|
|
341
|
+
// The submit state is a projection of what X thinks the composer holds: an empty
|
|
342
|
+
// editor (a re-mount dropped the typed text), a rejected upload, or an account
|
|
343
|
+
// banner all look identical as "disabled". Report the evidence instead of the
|
|
344
|
+
// symptom — the first live failure (2026-11-20) named only the timeout.
|
|
345
|
+
const observable = page as unknown as { evaluate?: (script: string) => Promise<unknown> };
|
|
346
|
+
const evidence = await (observable.evaluate === undefined
|
|
347
|
+
? Promise.resolve(null)
|
|
348
|
+
: observable
|
|
349
|
+
.evaluate(`(() => {
|
|
350
|
+
const readDisabled = (el) => el === null ? 'missing' : (el.getAttribute('aria-disabled') ?? (el.disabled === true ? 'true' : 'false'));
|
|
351
|
+
const editor = document.querySelector('[data-testid="tweetTextarea_0"]');
|
|
352
|
+
const submit = document.querySelector('${X_POST_SUBMIT}');
|
|
353
|
+
const inlineSubmit = document.querySelector('${X_POST_SUBMIT_INLINE}');
|
|
354
|
+
const alerts = [...document.querySelectorAll('[data-testid="toast"], [role="alert"], [data-testid="error-detail"]')]
|
|
355
|
+
.map((n) => (n.textContent || '').replace(/\\s+/g, ' ').trim()).filter(Boolean).slice(0, 3);
|
|
356
|
+
const images = [...document.querySelectorAll('[data-testid="attachments"] img, [data-testid="tweetPhoto"] img')].length;
|
|
357
|
+
return JSON.stringify({
|
|
358
|
+
url: location.pathname,
|
|
359
|
+
textLen: (editor?.textContent || '').trim().length,
|
|
360
|
+
submitDisabled: readDisabled(submit),
|
|
361
|
+
inlineDisabled: readDisabled(inlineSubmit),
|
|
362
|
+
images,
|
|
363
|
+
alerts,
|
|
364
|
+
});
|
|
365
|
+
})()`)
|
|
366
|
+
.catch(() => null));
|
|
367
|
+
return fail(
|
|
368
|
+
`x post submit stayed disabled after the media: ${reEnabled.error}${evidence ? ` — composer ${String(evidence)}` : ''}`,
|
|
369
|
+
);
|
|
370
|
+
}
|
|
307
371
|
}
|
|
308
372
|
|
|
309
|
-
|
|
373
|
+
// Click the submit that is actually VISIBLE and ENABLED, across both surfaces (`tweetButton`
|
|
374
|
+
// / `tweetButtonInline` and non-first visible twins).
|
|
375
|
+
const submit = await this.findEnabledSubmit(page, { preferVisible: true });
|
|
376
|
+
if (submit === null) return fail('x post submit was enabled a moment ago but no clickable control remained');
|
|
377
|
+
await submit.click();
|
|
378
|
+
// Capture the composer's immediate reaction. The receipt step navigates to the profile, so
|
|
379
|
+
// any validation toast, "Posting…" state or blocking modal is gone by the time it reports —
|
|
380
|
+
// which is exactly how two silent failures happened on 2026-11-20. A screenshot is the
|
|
381
|
+
// cheapest decisive evidence: X says WHY it refused, in the UI, once.
|
|
382
|
+
await page.waitForTimeout(2_500);
|
|
383
|
+
// The double in `tests/post-rail.test.ts` models only the surface the rail clicks and reads;
|
|
384
|
+
// evaluate/screenshot are evidence-only, so a page without them must still publish.
|
|
385
|
+
const observable = page as unknown as {
|
|
386
|
+
evaluate?: (script: string) => Promise<unknown>;
|
|
387
|
+
screenshot?: (options: { path: string }) => Promise<unknown>;
|
|
388
|
+
};
|
|
389
|
+
const afterClick = await (observable.evaluate === undefined
|
|
390
|
+
? Promise.resolve(null)
|
|
391
|
+
: observable
|
|
392
|
+
.evaluate(`(() => {
|
|
393
|
+
const alerts = [...document.querySelectorAll('[data-testid="toast"], [role="alert"], [data-testid="error-detail"]')]
|
|
394
|
+
.map((n) => (n.textContent || '').replace(/\\s+/g, ' ').trim()).filter(Boolean).slice(0, 3);
|
|
395
|
+
const dialogs = [...document.querySelectorAll('[role="dialog"]')]
|
|
396
|
+
.map((n) => (n.textContent || '').replace(/\\s+/g, ' ').trim().slice(0, 120)).filter(Boolean).slice(0, 2);
|
|
397
|
+
const editor = document.querySelector('[data-testid="tweetTextarea_0"]');
|
|
398
|
+
return JSON.stringify({
|
|
399
|
+
path: location.pathname,
|
|
400
|
+
textLen: (editor?.textContent || '').trim().length,
|
|
401
|
+
alerts,
|
|
402
|
+
dialogs,
|
|
403
|
+
});
|
|
404
|
+
})()`)
|
|
405
|
+
.catch(() => null));
|
|
406
|
+
const shot = join(tmpdir(), `kk-x-post-${Date.now()}.png`);
|
|
407
|
+
const shotOk = await (observable.screenshot === undefined
|
|
408
|
+
? Promise.resolve(false)
|
|
409
|
+
: observable
|
|
410
|
+
.screenshot({ path: shot })
|
|
411
|
+
.then(() => true)
|
|
412
|
+
.catch(() => false));
|
|
310
413
|
const receipt = await expectOutcome(
|
|
311
414
|
async () => {
|
|
312
415
|
const id = await this.newestStatusId(page, handle);
|
|
@@ -316,9 +419,41 @@ export class XPostBrowserTransport implements PublishTransport {
|
|
|
316
419
|
},
|
|
317
420
|
{ timeoutMs: this.stepTimeoutMs, label: 'x status receipt' },
|
|
318
421
|
);
|
|
422
|
+
// X's own confirmation toast is a receipt in its own right. The profile-timeline poll above
|
|
423
|
+
// is the *preferred* evidence because it yields the status id, but the timeline can lag or
|
|
424
|
+
// refuse to render for a session that still posts fine (measured 2026-11-20: the toast read
|
|
425
|
+
// "Your post was sent. You have 1 hour to make any edits.", the profile showed nothing within
|
|
426
|
+
// 30 s, and the row failed — so a retry posted the same text AGAIN). Confirming on the toast
|
|
427
|
+
// turns a duplicate-generating "failure" into an honest success with no status id.
|
|
428
|
+
const sentToast = /post was sent|已发布|发送成功|已发送/i.test(String(afterClick ?? ''));
|
|
429
|
+
if (!receipt.ok && sentToast) {
|
|
430
|
+
return ResultSchema.parse({
|
|
431
|
+
ok: true,
|
|
432
|
+
target: TARGET,
|
|
433
|
+
url: `https://x.com${handle}`,
|
|
434
|
+
message: `x post sent — X confirmed it in the composer toast; the profile timeline had not rendered it yet, so no status id was recorded`,
|
|
435
|
+
metadata: { ...metadata, confirmedBy: 'post-sent-toast' },
|
|
436
|
+
});
|
|
437
|
+
}
|
|
319
438
|
if (!receipt.ok) {
|
|
439
|
+
// Name what the console said, not just that nothing appeared: a validation toast, a
|
|
440
|
+
// duplicate guard, an alt-text prompt and a swallowed click all look identical here.
|
|
441
|
+
const evidence = await (observable.evaluate === undefined
|
|
442
|
+
? Promise.resolve(null)
|
|
443
|
+
: observable
|
|
444
|
+
.evaluate(`(() => {
|
|
445
|
+
const alerts = [...document.querySelectorAll('[data-testid="toast"], [role="alert"], [data-testid="error-detail"]')]
|
|
446
|
+
.map((n) => (n.textContent || '').replace(/\\s+/g, ' ').trim()).filter(Boolean).slice(0, 3);
|
|
447
|
+
const editor = document.querySelector('[data-testid="tweetTextarea_0"]');
|
|
448
|
+
return JSON.stringify({
|
|
449
|
+
url: location.pathname,
|
|
450
|
+
textLen: (editor?.textContent || '').trim().length,
|
|
451
|
+
alerts,
|
|
452
|
+
});
|
|
453
|
+
})()`)
|
|
454
|
+
.catch(() => null));
|
|
320
455
|
return fail(
|
|
321
|
-
`x post receipt not confirmed — Post was clicked but no new status id appeared on the profile (${receipt.error}); an unobserved submit is never reported as published`,
|
|
456
|
+
`x post receipt not confirmed — Post was clicked but no new status id appeared on the profile (${receipt.error}); an unobserved submit is never reported as published${afterClick ? ` — after click ${afterClick}` : ''}${shotOk ? ` — screenshot ${shot}` : ''}${evidence ? ` — console ${evidence}` : ''}`,
|
|
322
457
|
);
|
|
323
458
|
}
|
|
324
459
|
const id = /\/status\/(\d+)/.exec(receipt.evidence)?.[1];
|
|
@@ -4845,7 +4845,7 @@ var init_zod = __esm(() => {
|
|
|
4845
4845
|
init_external();
|
|
4846
4846
|
});
|
|
4847
4847
|
|
|
4848
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4848
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/errors.js
|
|
4849
4849
|
var ErrorCode;
|
|
4850
4850
|
var init_errors3 = __esm(() => {
|
|
4851
4851
|
ErrorCode = {
|
|
@@ -4856,7 +4856,7 @@ var init_errors3 = __esm(() => {
|
|
|
4856
4856
|
};
|
|
4857
4857
|
});
|
|
4858
4858
|
|
|
4859
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4859
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/api-response.js
|
|
4860
4860
|
var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
|
|
4861
4861
|
var init_api_response = __esm(() => {
|
|
4862
4862
|
init_errors3();
|
|
@@ -4879,10 +4879,10 @@ var init_api_response = __esm(() => {
|
|
|
4879
4879
|
CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
|
|
4880
4880
|
});
|
|
4881
4881
|
|
|
4882
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4882
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/cursor.js
|
|
4883
4883
|
var init_cursor = () => {};
|
|
4884
4884
|
|
|
4885
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4885
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/env.js
|
|
4886
4886
|
function getEnvVar(name, fallback) {
|
|
4887
4887
|
const raw = process.env[name];
|
|
4888
4888
|
return raw === undefined ? fallback : raw;
|
|
@@ -4891,10 +4891,10 @@ function getEnvVars() {
|
|
|
4891
4891
|
return process.env;
|
|
4892
4892
|
}
|
|
4893
4893
|
|
|
4894
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4894
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
|
|
4895
4895
|
var init_event_severity = () => {};
|
|
4896
4896
|
|
|
4897
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4897
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/object.js
|
|
4898
4898
|
function isPlainObject2(value) {
|
|
4899
4899
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4900
4900
|
}
|
|
@@ -4912,7 +4912,7 @@ function deepMerge(target, source) {
|
|
|
4912
4912
|
return result;
|
|
4913
4913
|
}
|
|
4914
4914
|
|
|
4915
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4915
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/output.js
|
|
4916
4916
|
function processStream(name) {
|
|
4917
4917
|
const proc = globalThis.process;
|
|
4918
4918
|
const stream = proc?.[name];
|
|
@@ -4930,7 +4930,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
|
|
|
4930
4930
|
}
|
|
4931
4931
|
var defaultStderrTarget;
|
|
4932
4932
|
|
|
4933
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
4933
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/index.js
|
|
4934
4934
|
var init_dist = __esm(() => {
|
|
4935
4935
|
init_api_response();
|
|
4936
4936
|
init_cursor();
|
|
@@ -11928,7 +11928,7 @@ var init_dist2 = __esm(() => {
|
|
|
11928
11928
|
$visitAsync = visit.visitAsync;
|
|
11929
11929
|
});
|
|
11930
11930
|
|
|
11931
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
11931
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/config.js
|
|
11932
11932
|
function getProcessEnv() {
|
|
11933
11933
|
return getEnvVars();
|
|
11934
11934
|
}
|
|
@@ -12006,7 +12006,7 @@ var init_config = __esm(() => {
|
|
|
12006
12006
|
};
|
|
12007
12007
|
});
|
|
12008
12008
|
|
|
12009
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
12009
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
|
|
12010
12010
|
import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
12011
12011
|
import { dirname, resolve as resolvePath } from "path";
|
|
12012
12012
|
function createNodeFileSystem(root, paths) {
|
|
@@ -12093,7 +12093,7 @@ function findProjectRoot(startDir) {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
var init_file_system_node = () => {};
|
|
12095
12095
|
|
|
12096
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
12096
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/db-errors.js
|
|
12097
12097
|
var DbModuleNotInstalledError;
|
|
12098
12098
|
var init_db_errors = __esm(() => {
|
|
12099
12099
|
DbModuleNotInstalledError = class DbModuleNotInstalledError extends Error {
|
|
@@ -19304,7 +19304,7 @@ var init_execa = __esm(() => {
|
|
|
19304
19304
|
} = getIpcExport());
|
|
19305
19305
|
});
|
|
19306
19306
|
|
|
19307
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19307
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-group.js
|
|
19308
19308
|
function resolveDeadline(optionTimeout, defaultTimeout) {
|
|
19309
19309
|
if (optionTimeout === null)
|
|
19310
19310
|
return null;
|
|
@@ -19396,7 +19396,7 @@ function ownProcessGroupLifecycle(ownership) {
|
|
|
19396
19396
|
}
|
|
19397
19397
|
var MAX_TIMEOUT_MS = 2147483647, DEFAULT_KILL_GRACE_MS = 5000, GROUP_POLL_INTERVAL_MS = 25, GROUP_KILL_PATIENCE_MS = 2000;
|
|
19398
19398
|
|
|
19399
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19399
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-executor.js
|
|
19400
19400
|
import { isatty } from "tty";
|
|
19401
19401
|
function processEventSeverity(reason, exitCode) {
|
|
19402
19402
|
if (reason === "error")
|
|
@@ -19768,7 +19768,7 @@ var init_process_executor = __esm(() => {
|
|
|
19768
19768
|
init_config();
|
|
19769
19769
|
});
|
|
19770
19770
|
|
|
19771
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19771
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/runtime-node-bun.js
|
|
19772
19772
|
function getNodeFileSystem() {
|
|
19773
19773
|
if (!_nodeFileSystem)
|
|
19774
19774
|
_nodeFileSystem = createNodeFileSystem();
|
|
@@ -20096,11 +20096,11 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
|
|
|
20096
20096
|
});
|
|
20097
20097
|
}
|
|
20098
20098
|
});
|
|
20099
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
20099
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
20100
20100
|
init_file_system_node();
|
|
20101
20101
|
init_config();
|
|
20102
20102
|
|
|
20103
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
20103
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
20104
20104
|
function normalizeSeparators(path) {
|
|
20105
20105
|
return path.replaceAll("\\", "/");
|
|
20106
20106
|
}
|
|
@@ -20158,7 +20158,7 @@ function getProcessCwd() {
|
|
|
20158
20158
|
return globalThis.process?.cwd?.() ?? "/";
|
|
20159
20159
|
}
|
|
20160
20160
|
|
|
20161
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
20161
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
20162
20162
|
init_runtime_node_bun();
|
|
20163
20163
|
|
|
20164
20164
|
// ../../packages/kk-core/src/render-md.ts
|
|
@@ -20254,7 +20254,7 @@ async function trySelectors(page, selectors, options = {}) {
|
|
|
20254
20254
|
// ../../packages/publish-harness/src/browser.ts
|
|
20255
20255
|
import { join as join5, resolve as resolve5 } from "path";
|
|
20256
20256
|
|
|
20257
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20257
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/errors.js
|
|
20258
20258
|
class BrowserAutomationError extends Error {
|
|
20259
20259
|
constructor(message, options) {
|
|
20260
20260
|
super(message, options);
|
|
@@ -20303,10 +20303,10 @@ class OperationAbortedError extends BrowserAutomationError {
|
|
|
20303
20303
|
this.name = "OperationAbortedError";
|
|
20304
20304
|
}
|
|
20305
20305
|
}
|
|
20306
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20306
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
|
|
20307
20307
|
import { mkdir } from "fs/promises";
|
|
20308
20308
|
|
|
20309
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20309
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/profile-dir.js
|
|
20310
20310
|
function resolveProfileDir(profileDir) {
|
|
20311
20311
|
if (profileDir.trim() === "") {
|
|
20312
20312
|
throw new InvalidProfileDirError;
|
|
@@ -20318,7 +20318,7 @@ function resolveProfileDir(profileDir) {
|
|
|
20318
20318
|
return resolved;
|
|
20319
20319
|
}
|
|
20320
20320
|
|
|
20321
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20321
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
|
|
20322
20322
|
var PROFILE_DIR_MODE = 448;
|
|
20323
20323
|
var BUSY_PROFILE_PATTERN = /singleton|already in use|in use by another/i;
|
|
20324
20324
|
var CHROMIUM_MISSING_PATTERN = /playwright install|executable doesn't exist/i;
|
|
@@ -20369,7 +20369,7 @@ function createPersistentLauncher(options = {}) {
|
|
|
20369
20369
|
};
|
|
20370
20370
|
}
|
|
20371
20371
|
|
|
20372
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20372
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/operations.js
|
|
20373
20373
|
var DEFAULT_TIMEOUT_MS = 30000;
|
|
20374
20374
|
var POLL_INTERVAL_MS = 250;
|
|
20375
20375
|
var defaultLauncher;
|
|
@@ -45,7 +45,7 @@ var __esm = (fn, res, err) => () => {
|
|
|
45
45
|
};
|
|
46
46
|
var __require = import.meta.require;
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
48
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/errors.js
|
|
49
49
|
var ErrorCode;
|
|
50
50
|
var init_errors = __esm(() => {
|
|
51
51
|
ErrorCode = {
|
|
@@ -56,7 +56,7 @@ var init_errors = __esm(() => {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
59
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/api-response.js
|
|
60
60
|
var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
|
|
61
61
|
var init_api_response = __esm(() => {
|
|
62
62
|
init_errors();
|
|
@@ -79,10 +79,10 @@ var init_api_response = __esm(() => {
|
|
|
79
79
|
CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
82
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/cursor.js
|
|
83
83
|
var init_cursor = () => {};
|
|
84
84
|
|
|
85
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
85
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/env.js
|
|
86
86
|
function getEnvVar(name, fallback) {
|
|
87
87
|
const raw = process.env[name];
|
|
88
88
|
return raw === undefined ? fallback : raw;
|
|
@@ -91,10 +91,10 @@ function getEnvVars() {
|
|
|
91
91
|
return process.env;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
94
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
|
|
95
95
|
var init_event_severity = () => {};
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
97
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/object.js
|
|
98
98
|
function isPlainObject(value) {
|
|
99
99
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
100
100
|
}
|
|
@@ -112,7 +112,7 @@ function deepMerge(target, source) {
|
|
|
112
112
|
return result;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
115
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/output.js
|
|
116
116
|
function processStream(name) {
|
|
117
117
|
const proc = globalThis.process;
|
|
118
118
|
const stream = proc?.[name];
|
|
@@ -133,7 +133,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
|
|
|
133
133
|
}
|
|
134
134
|
var defaultStdoutTarget, defaultStderrTarget;
|
|
135
135
|
|
|
136
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.
|
|
136
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/index.js
|
|
137
137
|
var init_dist = __esm(() => {
|
|
138
138
|
init_api_response();
|
|
139
139
|
init_cursor();
|
|
@@ -11931,7 +11931,7 @@ var init_zod = __esm(() => {
|
|
|
11931
11931
|
init_external();
|
|
11932
11932
|
});
|
|
11933
11933
|
|
|
11934
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
11934
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/config.js
|
|
11935
11935
|
function getProcessEnv() {
|
|
11936
11936
|
return getEnvVars();
|
|
11937
11937
|
}
|
|
@@ -12009,7 +12009,7 @@ var init_config = __esm(() => {
|
|
|
12009
12009
|
};
|
|
12010
12010
|
});
|
|
12011
12011
|
|
|
12012
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
12012
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
|
|
12013
12013
|
import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
12014
12014
|
import { dirname, resolve as resolvePath } from "path";
|
|
12015
12015
|
function createNodeFileSystem(root, paths) {
|
|
@@ -12096,7 +12096,7 @@ function findProjectRoot(startDir) {
|
|
|
12096
12096
|
}
|
|
12097
12097
|
var init_file_system_node = () => {};
|
|
12098
12098
|
|
|
12099
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
12099
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/db-errors.js
|
|
12100
12100
|
var DbModuleNotInstalledError;
|
|
12101
12101
|
var init_db_errors = __esm(() => {
|
|
12102
12102
|
DbModuleNotInstalledError = class DbModuleNotInstalledError extends Error {
|
|
@@ -19307,7 +19307,7 @@ var init_execa = __esm(() => {
|
|
|
19307
19307
|
} = getIpcExport());
|
|
19308
19308
|
});
|
|
19309
19309
|
|
|
19310
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19310
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-group.js
|
|
19311
19311
|
function resolveDeadline(optionTimeout, defaultTimeout) {
|
|
19312
19312
|
if (optionTimeout === null)
|
|
19313
19313
|
return null;
|
|
@@ -19399,7 +19399,7 @@ function ownProcessGroupLifecycle(ownership) {
|
|
|
19399
19399
|
}
|
|
19400
19400
|
var MAX_TIMEOUT_MS = 2147483647, DEFAULT_KILL_GRACE_MS = 5000, GROUP_POLL_INTERVAL_MS = 25, GROUP_KILL_PATIENCE_MS = 2000;
|
|
19401
19401
|
|
|
19402
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19402
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-executor.js
|
|
19403
19403
|
import { isatty } from "tty";
|
|
19404
19404
|
function processEventSeverity(reason, exitCode) {
|
|
19405
19405
|
if (reason === "error")
|
|
@@ -19771,7 +19771,7 @@ var init_process_executor = __esm(() => {
|
|
|
19771
19771
|
init_config();
|
|
19772
19772
|
});
|
|
19773
19773
|
|
|
19774
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19774
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/runtime-node-bun.js
|
|
19775
19775
|
function getNodeFileSystem() {
|
|
19776
19776
|
if (!_nodeFileSystem)
|
|
19777
19777
|
_nodeFileSystem = createNodeFileSystem();
|
|
@@ -19839,7 +19839,7 @@ import { parseArgs as parseArgs2 } from "util";
|
|
|
19839
19839
|
import { join as join5, resolve as resolve5 } from "path";
|
|
19840
19840
|
import { parseArgs } from "util";
|
|
19841
19841
|
|
|
19842
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
19842
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/errors.js
|
|
19843
19843
|
class BrowserAutomationError extends Error {
|
|
19844
19844
|
constructor(message, options) {
|
|
19845
19845
|
super(message, options);
|
|
@@ -19888,14 +19888,14 @@ class OperationAbortedError extends BrowserAutomationError {
|
|
|
19888
19888
|
this.name = "OperationAbortedError";
|
|
19889
19889
|
}
|
|
19890
19890
|
}
|
|
19891
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
19891
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
|
|
19892
19892
|
import { mkdir } from "fs/promises";
|
|
19893
19893
|
|
|
19894
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19894
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
19895
19895
|
init_file_system_node();
|
|
19896
19896
|
init_config();
|
|
19897
19897
|
|
|
19898
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19898
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
19899
19899
|
function normalizeSeparators(path) {
|
|
19900
19900
|
return path.replaceAll("\\", "/");
|
|
19901
19901
|
}
|
|
@@ -19953,10 +19953,10 @@ function getProcessCwd() {
|
|
|
19953
19953
|
return globalThis.process?.cwd?.() ?? "/";
|
|
19954
19954
|
}
|
|
19955
19955
|
|
|
19956
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.
|
|
19956
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
19957
19957
|
init_runtime_node_bun();
|
|
19958
19958
|
|
|
19959
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
19959
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/profile-dir.js
|
|
19960
19960
|
function resolveProfileDir(profileDir) {
|
|
19961
19961
|
if (profileDir.trim() === "") {
|
|
19962
19962
|
throw new InvalidProfileDirError;
|
|
@@ -19968,7 +19968,7 @@ function resolveProfileDir(profileDir) {
|
|
|
19968
19968
|
return resolved;
|
|
19969
19969
|
}
|
|
19970
19970
|
|
|
19971
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
19971
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
|
|
19972
19972
|
var PROFILE_DIR_MODE = 448;
|
|
19973
19973
|
var BUSY_PROFILE_PATTERN = /singleton|already in use|in use by another/i;
|
|
19974
19974
|
var CHROMIUM_MISSING_PATTERN = /playwright install|executable doesn't exist/i;
|
|
@@ -20019,7 +20019,7 @@ function createPersistentLauncher(options = {}) {
|
|
|
20019
20019
|
};
|
|
20020
20020
|
}
|
|
20021
20021
|
|
|
20022
|
-
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.
|
|
20022
|
+
// ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/operations.js
|
|
20023
20023
|
var DEFAULT_TIMEOUT_MS = 30000;
|
|
20024
20024
|
var POLL_INTERVAL_MS = 250;
|
|
20025
20025
|
var defaultLauncher;
|