@bitseek/claw 1.3.6 → 1.3.7
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/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-Bwq1wvds.js → accounts-DMvETf-t.js} +1 -1
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BbZD-rsQ.js → api-key-rotation-Cv5_SG_o.js} +2 -2
- package/dist/{audio-preflight-C5Crv38h.js → audio-preflight-C2pZmbnM.js} +39 -39
- package/dist/{audio-transcription-runner-eVtEKUPC.js → audio-transcription-runner-CQ4BMvGX.js} +11 -11
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +65 -65
- package/dist/bundled/bootstrap-extra-files/handler.js +7 -7
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +65 -65
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{plugin-sdk/channel-activity-DAEbma-o.js → channel-activity-Dwc2BBvs.js} +3 -3
- package/dist/{chrome-BRjY_MCc.js → chrome-DWfXErGH.js} +26 -26
- package/dist/{chunk-Dfkbh8wX.js → chunk-2ZxftpDd.js} +1 -1
- package/dist/{command-registry-BSN6zVlZ.js → command-registry-CtTmCFgA.js} +5 -5
- package/dist/{commands-registry-NyRDVN7s.js → commands-registry-CTkboeeC.js} +5 -5
- package/dist/{completion-cli-lZ6S6oKA.js → completion-cli-D_Hxee-R.js} +2 -2
- package/dist/{completion-cli-BDeiV4p9.js → completion-cli-wYWbi5wA.js} +1 -1
- package/dist/{deliver-DlLNT2iR.js → deliver-zrYSWfQ5.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{dock-DXlPVrMo.js → dock-Bm23mfim.js} +6 -6
- package/dist/{doctor-completion-BKCOmkBi.js → doctor-completion-BYgrEW3s.js} +1 -1
- package/dist/{doctor-completion-Bim4XRFT.js → doctor-completion-Bai361_Y.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{plugin-sdk/errors-jusxdu7M.js → errors-B11yhRo6.js} +1 -1
- package/dist/{fetch-2cO0rj7X.js → fetch-4RonjgqX.js} +5 -5
- package/dist/{fetch-guard-iigSYt3Q.js → fetch-guard-B1EGEHan.js} +2 -2
- package/dist/{frontmatter-rlCI8Hmw.js → frontmatter-D6vByAHn.js} +2 -2
- package/dist/{fs-safe-CM9EhGvi.js → fs-safe-C77EShMC.js} +4 -4
- package/dist/{gateway-cli-CDgld1qp.js → gateway-cli-C3ftrrlK.js} +1 -1
- package/dist/{gateway-cli-8DmbQc9V.js → gateway-cli-CBGutU8q.js} +1 -1
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BWlmyhr-.js → image-DnxYCkHO.js} +6 -6
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-pR36nI-3.js → ir-DcDVAFj3.js} +6 -6
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{plugin-sdk/logger-Cr-x0vMf.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-Cm2zDfEU.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-BX3KtavU.js → manager-tozHviEd.js} +15 -15
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{message-channel-DB68nc40.js → message-channel-pbgFFUNm.js} +1 -1
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{onboard-BcaFvsav.js → onboard-C0Bo_5Vw.js} +1 -1
- package/dist/{onboard-sKY5jwsH.js → onboard-CI1TyO0l.js} +1 -1
- package/dist/{onboarding-BRfS3PSa.js → onboarding-DjOCmNCk.js} +1 -1
- package/dist/{onboarding-JNyox6ZE.js → onboarding-DufCP2B8.js} +1 -1
- package/dist/{onboarding.finalize-hBg4b8IC.js → onboarding.finalize-BI2feWXN.js} +4 -4
- package/dist/{onboarding.finalize-CG9tTRyw.js → onboarding.finalize-C7iEnG3X.js} +3 -3
- package/dist/{outbound-N9_vLIGT.js → outbound-9rXkgGZM.js} +7 -7
- package/dist/{outbound-attachment-CEt49GWZ.js → outbound-attachment-Cy8rvvJE.js} +2 -2
- package/dist/{path-alias-guards-xY_GOJVd.js → path-alias-guards-Cpb5gMG6.js} +1 -1
- package/dist/{paths-Bi8MJ8NM.js → paths-BHEVctLd.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-CDXssetE.js → pi-embedded-BQqt592d.js} +187 -187
- package/dist/{pi-embedded-helpers-DSPiPpLM.js → pi-embedded-helpers-Bo7e-QzJ.js} +29 -29
- package/dist/{pi-model-discovery-N7o4F93J.js → pi-model-discovery-DA46fxhD.js} +7 -7
- package/dist/plugin-sdk/{accounts-COLYAAOx.js → accounts-4WE2wtsW.js} +1 -1
- package/dist/plugin-sdk/{accounts-BZrkOo6-.js → accounts-AbI8uETR.js} +1 -1
- package/dist/plugin-sdk/{accounts-D_pT5EjF.js → accounts-BYcizTXn.js} +3 -3
- package/dist/plugin-sdk/{active-listener-DxBXcWm_.js → active-listener-pnqLAUOh.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-DT5pxpJB.js → agent-scope-_j3fIYCK.js} +3 -3
- package/dist/plugin-sdk/{api-key-rotation-Dl6Ad7Nj.js → api-key-rotation-CYI51U_M.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-PGsiEosa.js → audio-preflight-D8BVTHCB.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-CooPnqtC.js → audio-transcription-runner-CRpY5uDq.js} +10 -10
- package/dist/plugin-sdk/{bindings-BSfhEjKN.js → bindings-CxxzC7gn.js} +2 -2
- package/dist/{channel-activity-D0BHmeoE.js → plugin-sdk/channel-activity-B3yZ-f-m.js} +3 -3
- package/dist/plugin-sdk/{channel-web-Dn5fneOY.js → channel-web-BgnipXq5.js} +23 -23
- package/dist/plugin-sdk/{chrome-Dn0G4NoF.js → chrome-oPevdeh5.js} +7 -7
- package/dist/plugin-sdk/{chunk-cvtXztAT.js → chunk-BPyPeheZ.js} +1 -1
- package/dist/plugin-sdk/{command-format-BOJz3y1v.js → command-format-DvyMEXQo.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-CZWv_JwZ.js → commands-registry-Dk8re8Lz.js} +5 -5
- package/dist/plugin-sdk/{config-DAwOhnVF.js → config-D7I2_X4P.js} +10 -10
- package/dist/plugin-sdk/{deliver-PdH-MCq8.js → deliver-NrIHn0__.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-BZvj-qNu.js → diagnostic-DL3k_wRi.js} +2 -2
- package/dist/plugin-sdk/{dock-BdR3OYZn.js → dock-CjdkiLH7.js} +6 -6
- package/dist/{errors-Ct2kCLWx.js → plugin-sdk/errors-DFTN4h2I.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dary6WwJ.js → fetch-guard-BivEyA4v.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DMCE0ej9.js → fs-safe-B256n7Ff.js} +3 -3
- package/dist/plugin-sdk/{image-B3A2l2ep.js → image-CkPzr3XN.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DulHE5Qc.js → image-ops-C9GXWF3o.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-BFXiJrsN.js → ir-BIm-jvIK.js} +6 -6
- package/dist/plugin-sdk/{local-roots-DssN60r6.js → local-roots-2AOXGUXW.js} +4 -4
- package/dist/{logger-DelEB7MK.js → plugin-sdk/logger-CNhs9eKJ.js} +1 -1
- package/dist/plugin-sdk/{login-D0ul3-6C.js → login-BcLiF9tC.js} +6 -6
- package/dist/plugin-sdk/{login-qr-XWKTFBuI.js → login-qr-GyPUodKJ.js} +9 -9
- package/dist/plugin-sdk/{manager-DGx_cF54.js → manager-DYLqNUb4.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-CsQpDNU5.js → markdown-tables-D9mmqMKi.js} +1 -1
- package/dist/plugin-sdk/{message-channel-CvNq-esz.js → message-channel-_CEZcqxE.js} +1 -1
- package/dist/plugin-sdk/{outbound-D29FHlQl.js → outbound-DdTsUaXa.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-DRHrZUOx.js → outbound-attachment--hkuIDR1.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DpKV1B5p.js → path-alias-guards-BqUCBfUg.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CKEUWckk.js → pi-embedded-helpers-CTfvZz83.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-BPeQq9XM.js → pi-model-discovery-CK3Ih_kq.js} +1 -1
- package/dist/plugin-sdk/{plugins-DF_dKXTR.js → plugins-BpHAMNJ1.js} +6 -6
- package/dist/plugin-sdk/{proxy-BfmEDoun.js → proxy-BJdRZOnJ.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-BpHIgvBk.js → proxy-fetch-jmbopGcm.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BmmXDjtm.js → pw-ai-D0Kx7w1D.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-3hQbqkm5.js → qmd-manager-BDcutPp9.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-BOGLUWB7.js → query-expansion-C_X8SyEA.js} +2 -2
- package/dist/{redact-BC9R18Uw.js → plugin-sdk/redact-DH8u23pF.js} +1 -1
- package/dist/plugin-sdk/{registry-Cv-oHUj1.js → registry-HF8_S7QO.js} +2 -2
- package/dist/{replies-B6I1tT5t.js → plugin-sdk/replies-DbjvV4gf.js} +3 -3
- package/dist/plugin-sdk/{reply-rsLB0nJs.js → reply-DpplAsbO.js} +93 -93
- package/dist/plugin-sdk/{reply-prefix-DXthVxCx.js → reply-prefix-KODsMNJ-.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-D3Y4F2Le.js → resolve-outbound-target-BPT4aNiD.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-DuwYYn4a.js → resolve-route-De2B5QY_.js} +4 -4
- package/dist/plugin-sdk/{retry-BMcrIz7L.js → retry-pZ8iKytf.js} +1 -1
- package/dist/plugin-sdk/{send-D0AaWnIj.js → send-1uW-uqPf.js} +7 -7
- package/dist/plugin-sdk/{send-C5USYGq7.js → send-BoNw1Bki.js} +8 -8
- package/dist/plugin-sdk/{send-B0ztz6QC.js → send-C-Rd2stz.js} +6 -6
- package/dist/plugin-sdk/{send-DJzwu8kk.js → send-CZIN8SDx.js} +15 -15
- package/dist/plugin-sdk/{send-DEyQJTzd.js → send-wCqsQs_s.js} +10 -10
- package/dist/plugin-sdk/{session-meta-ChWvKVWj.js → session-meta-7J-uHiM_.js} +1 -1
- package/dist/plugin-sdk/{session-BA7tVDpV.js → session-ooYcB82T.js} +5 -5
- package/dist/plugin-sdk/{sessions-BXps6YzJ.js → sessions-lAIo5l8W.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-B20uUsji.js → skill-commands-D1Q6hGS4.js} +5 -5
- package/dist/plugin-sdk/{skills-DXOTei42.js → skills-BWSDv2F_.js} +8 -8
- package/dist/plugin-sdk/{ssrf-Doxv9M7Q.js → ssrf-JKDwTi8i.js} +1 -1
- package/dist/plugin-sdk/{store-BZbE1V-C.js → store-BMeqzQAf.js} +2 -2
- package/dist/plugin-sdk/{subsystem-CM1s2lDT.js → subsystem-B0V8LFBA.js} +2 -2
- package/dist/plugin-sdk/{tables-BhH8EIqU.js → tables-DCSeBGBz.js} +1 -1
- package/dist/{target-errors-C-KolUyX.js → plugin-sdk/target-errors-0u6pegQv.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → plugin-sdk/tokens-DF2_VTJy.js} +1 -1
- package/dist/{tool-images-DiKIlElg.js → plugin-sdk/tool-images-BbsgbHMZ.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-CygMSQUK.js → tool-loop-detection-JkCpGrfk.js} +2 -2
- package/dist/plugin-sdk/{utils-BcL6KGZf.js → utils-BfVxx6bk.js} +1 -1
- package/dist/plugin-sdk/web-pXzbtWjI.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-CRean1yN.js → whatsapp-actions-tVcrGNQc.js} +25 -25
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{program-B_-eFyJE.js → program-CQtsVyIe.js} +2 -2
- package/dist/{program-context-BJQXRZ1w.js → program-context-CbirfwjC.js} +7 -7
- package/dist/{prompt-select-styled-asxoqY78.js → prompt-select-styled-BlHvgGuv.js} +1 -1
- package/dist/{prompt-select-styled-QH4mD93d.js → prompt-select-styled-CY9iF1l-.js} +1 -1
- package/dist/{proxy-jINniQBi.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-env-Drg9J503.js → proxy-env-ynOWOBHx.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-gDXxKGzT.js → pw-ai-Cu3cnNF0.js} +17 -17
- package/dist/{qmd-manager-DXbV8CPG.js → qmd-manager-n4jauq3A.js} +11 -11
- package/dist/{query-expansion-C0A4WwZX.js → query-expansion-CdDUaBcQ.js} +5 -5
- package/dist/{plugin-sdk/redact-BOuKZWXa.js → redact-CaZQhKzI.js} +1 -1
- package/dist/{register.maintenance-DvWoKstb.js → register.maintenance-Cid2HJ-t.js} +5 -5
- package/dist/{register.maintenance-B0nZqqML.js → register.maintenance-CyXghztz.js} +4 -4
- package/dist/{register.onboard-DOhvWYV7.js → register.onboard-BsT9XRRr.js} +2 -2
- package/dist/{register.onboard-B1-O21vU.js → register.onboard-CoItO2Ov.js} +2 -2
- package/dist/{register.setup-ixDBzvTR.js → register.setup-2S-SXPOC.js} +2 -2
- package/dist/{register.setup-KPZYo_I1.js → register.setup-DJjPOLJK.js} +2 -2
- package/dist/{register.start-Df91ZVJJ.js → register.start-CI8ol0Mk.js} +1 -1
- package/dist/{register.start-DErNT3nQ.js → register.start-D5trBtN0.js} +1 -1
- package/dist/{register.subclis-BSGvOwqU.js → register.subclis-CIlBs5A-.js} +3 -3
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{plugin-sdk/replies-CddwWBTJ.js → replies-D6zARd6r.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{run-main-CdI1kXKr.js → run-main-bo-QbYn_.js} +3 -3
- package/dist/{send-BMzVXosN.js → send--Gq-Uh-l.js} +7 -7
- package/dist/{send-DC_e_Iev.js → send-BpyiQEov.js} +6 -6
- package/dist/{send-B6QQ8XfC.js → send-CcQZM0c7.js} +8 -8
- package/dist/{send-Buidj_8L.js → send-D2zYssqK.js} +27 -27
- package/dist/{send-BQETStDl.js → send-DcL81tZr.js} +10 -10
- package/dist/{session-meta-DAMj6ZRX.js → session-meta-BbCwXniv.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-Ck4ZR4dY.js → sessions-D7EjW0sG.js} +31 -31
- package/dist/{skill-commands-KesfMtZ9.js → skill-commands-Cea3CZFF.js} +9 -9
- package/dist/{skills-BYmEoxNo.js → skills-BttlqUXr.js} +22 -22
- package/dist/{store-KLMMBnKE.js → store-B7PaqfvZ.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{tables-DqechQWF.js → tables-BJ0XAman.js} +1 -1
- package/dist/{plugin-sdk/target-errors-QZay02Cv.js → target-errors-Dad0aUFR.js} +2 -2
- package/dist/{plugin-sdk/tokens-DIE-Bf72.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{plugin-sdk/tool-images-heXfaJdb.js → tool-images-ArXzv82F.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{update-cli-CfeiDzYx.js → update-cli-BYrdZPXD.js} +4 -4
- package/dist/{update-cli-DKmrzt8l.js → update-cli-wmp8VSbx.js} +5 -5
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{web-BPI4HIht.js → web-C5gLi1bN.js} +69 -69
- package/dist/{whatsapp-actions-Bf61u88d.js → whatsapp-actions-Be9uvUUL.js} +28 -28
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/package.json +1 -1
- package/dist/plugin-sdk/web-RBob4uU1.js +0 -72
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
9
|
-
import { n as formatCliCommand } from "./env-
|
|
1
|
+
import "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import "./paths-aGRLvQx9.js";
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-BRjuJbbM.js";
|
|
4
|
+
import "./utils-BFZnl-5N.js";
|
|
5
|
+
import "./workspace-D6mrCnXi.js";
|
|
6
|
+
import "./logger-BlH5MJiV.js";
|
|
7
|
+
import "./model-selection-D_Si2Ict.js";
|
|
8
|
+
import "./github-copilot-token-DLGN-8YS.js";
|
|
9
|
+
import { n as formatCliCommand } from "./env-DNMZEG57.js";
|
|
10
10
|
import "./boolean-mcn6kL0s.js";
|
|
11
|
-
import "./internal-hooks-
|
|
12
|
-
import "./registry-
|
|
13
|
-
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-
|
|
14
|
-
import "./path-alias-guards-
|
|
15
|
-
import "./redact-
|
|
16
|
-
import { r as formatErrorMessage } from "./errors-
|
|
17
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
18
|
-
import "./proxy-env-
|
|
11
|
+
import "./internal-hooks-yQe6H47q.js";
|
|
12
|
+
import "./registry-CJCkqTms.js";
|
|
13
|
+
import { F as resolveStrictExistingPathsWithinRoot, L as DEFAULT_FILL_FIELD_TYPE, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, S as withCdpSocket, _ as withBrowserNavigationPolicy, d as formatAriaSnapshot, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, j as DEFAULT_DOWNLOAD_DIR, k as withNoProxyForCdpUrl, t as getChromeWebSocketUrl, v as appendCdpPath, x as getHeadersWithAuth, y as fetchJson } from "./chrome-DWfXErGH.js";
|
|
14
|
+
import "./path-alias-guards-Cpb5gMG6.js";
|
|
15
|
+
import "./redact-CaZQhKzI.js";
|
|
16
|
+
import { r as formatErrorMessage } from "./errors-B11yhRo6.js";
|
|
17
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-C77EShMC.js";
|
|
18
|
+
import "./proxy-env-ynOWOBHx.js";
|
|
19
19
|
import fs from "node:fs/promises";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import crypto from "node:crypto";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-C6hps0r3.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-aGRLvQx9.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
4
4
|
import { S as parseAgentSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import "./utils-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./logger-
|
|
8
|
-
import "./path-alias-guards-
|
|
9
|
-
import "./redact-
|
|
10
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
5
|
+
import "./utils-BFZnl-5N.js";
|
|
6
|
+
import "./workspace-D6mrCnXi.js";
|
|
7
|
+
import "./logger-BlH5MJiV.js";
|
|
8
|
+
import "./path-alias-guards-Cpb5gMG6.js";
|
|
9
|
+
import "./redact-CaZQhKzI.js";
|
|
10
|
+
import { c as writeFileWithinRoot } from "./fs-safe-C77EShMC.js";
|
|
11
11
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-wLpB_Uk8.js";
|
|
12
|
-
import "./paths-
|
|
13
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
12
|
+
import "./paths-BHEVctLd.js";
|
|
13
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-CdDUaBcQ.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BRjuJbbM.js";
|
|
2
2
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-NY-gTuzr.js";
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
4
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-CaZQhKzI.js";
|
|
4
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-BHEVctLd.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import syncFs from "node:fs";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/memory/fs-utils.ts
|
|
@@ -31,7 +31,7 @@ async function statRegularFile(absPath) {
|
|
|
31
31
|
//#region src/memory/internal.ts
|
|
32
32
|
function ensureDir(dir) {
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
35
35
|
} catch {}
|
|
36
36
|
return dir;
|
|
37
37
|
}
|
|
@@ -125,9 +125,9 @@ import "./clipboard-DenHeqX-.js";
|
|
|
125
125
|
import "./note-qHayYqee.js";
|
|
126
126
|
import "./issue-format-Bm-71lmf.js";
|
|
127
127
|
import "./channels-status-issues-ib5LY9cR.js";
|
|
128
|
-
import "./completion-cli-
|
|
129
|
-
import "./register.subclis-
|
|
130
|
-
import "./command-registry-
|
|
128
|
+
import "./completion-cli-D_Hxee-R.js";
|
|
129
|
+
import "./register.subclis-CIlBs5A-.js";
|
|
130
|
+
import "./command-registry-CtTmCFgA.js";
|
|
131
131
|
import "./program-context-BqyLhTGk.js";
|
|
132
132
|
import "./daemon-install-helpers-DJg83rPu.js";
|
|
133
133
|
import "./runtime-guard-DzZMAUj_.js";
|
|
@@ -145,8 +145,8 @@ import "./oauth-tls-preflight-DLADeojn.js";
|
|
|
145
145
|
import "./systemd-linger-CTeOH7Nl.js";
|
|
146
146
|
import "./health-format-rPE0ELW5.js";
|
|
147
147
|
import { t as dashboardCommand } from "./dashboard-CCwQ2XPE.js";
|
|
148
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
149
|
-
import "./doctor-completion-
|
|
148
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-BlHvgGuv.js";
|
|
149
|
+
import "./doctor-completion-BYgrEW3s.js";
|
|
150
150
|
import path from "node:path";
|
|
151
151
|
import fs from "node:fs/promises";
|
|
152
152
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -120,13 +120,13 @@ import "./stagger-BIZMWR_z.js";
|
|
|
120
120
|
import "./constants-BJMtcGm_.js";
|
|
121
121
|
import "./context-window-guard-DfLcl4Sl.js";
|
|
122
122
|
import "./runtime-guard-IbCMXYfp.js";
|
|
123
|
-
import "./program-context-
|
|
123
|
+
import "./program-context-CbirfwjC.js";
|
|
124
124
|
import "./skills-status-CXKKJa9Q.js";
|
|
125
125
|
import "./clipboard-B5W7Nj1R.js";
|
|
126
126
|
import "./note-CvWjGRTD.js";
|
|
127
127
|
import "./issue-format-DTqjZOjH.js";
|
|
128
128
|
import "./channels-status-issues-9pCBFmqu.js";
|
|
129
|
-
import "./completion-cli-
|
|
129
|
+
import "./completion-cli-wYWbi5wA.js";
|
|
130
130
|
import "./daemon-install-helpers-BM1DaOy4.js";
|
|
131
131
|
import "./systemd-BeNGyFHw.js";
|
|
132
132
|
import { t as resolveGatewayService } from "./service-Y993dKjs.js";
|
|
@@ -142,8 +142,8 @@ import "./oauth-tls-preflight-Di_O2hPI.js";
|
|
|
142
142
|
import "./systemd-linger-iDZhUJvT.js";
|
|
143
143
|
import "./health-format-Cp-jlwLm.js";
|
|
144
144
|
import { t as dashboardCommand } from "./dashboard-2Jln8Cg-.js";
|
|
145
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
146
|
-
import "./doctor-completion-
|
|
145
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-CY9iF1l-.js";
|
|
146
|
+
import "./doctor-completion-Bai361_Y.js";
|
|
147
147
|
import path from "node:path";
|
|
148
148
|
import fs from "node:fs/promises";
|
|
149
149
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -40,11 +40,11 @@ import "./progress-BkZzF3Qm.js";
|
|
|
40
40
|
import "./note-qHayYqee.js";
|
|
41
41
|
import "./clack-prompter-fBizq68H.js";
|
|
42
42
|
import "./runtime-guard-DzZMAUj_.js";
|
|
43
|
-
import "./onboarding-
|
|
43
|
+
import "./onboarding-DufCP2B8.js";
|
|
44
44
|
import "./logging-CmPhQ5QB.js";
|
|
45
45
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-ijrpDurI.js";
|
|
46
46
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-CD4jsvdS.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-CI1TyO0l.js";
|
|
48
48
|
|
|
49
49
|
//#region src/cli/program/register.onboard.ts
|
|
50
50
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -40,11 +40,11 @@ import "./progress-BNTrvrfJ.js";
|
|
|
40
40
|
import "./runtime-guard-IbCMXYfp.js";
|
|
41
41
|
import "./note-CvWjGRTD.js";
|
|
42
42
|
import "./clack-prompter-CVmIKCoz.js";
|
|
43
|
-
import "./onboarding-
|
|
43
|
+
import "./onboarding-DjOCmNCk.js";
|
|
44
44
|
import "./logging-DUqFcGxI.js";
|
|
45
45
|
import { t as ONBOARD_PROVIDER_AUTH_FLAGS } from "./onboard-provider-auth-flags-BagFJEug.js";
|
|
46
46
|
import { n as formatAuthChoiceChoicesForCli } from "./auth-choice-options-BiRuYr-r.js";
|
|
47
|
-
import { t as onboardCommand } from "./onboard-
|
|
47
|
+
import { t as onboardCommand } from "./onboard-C0Bo_5Vw.js";
|
|
48
48
|
|
|
49
49
|
//#region src/cli/program/register.onboard.ts
|
|
50
50
|
function resolveInstallDaemonFlag(command, opts) {
|
|
@@ -41,9 +41,9 @@ import "./runtime-guard-IbCMXYfp.js";
|
|
|
41
41
|
import { t as hasExplicitOptions } from "./command-options-CfGhT1Of.js";
|
|
42
42
|
import "./note-CvWjGRTD.js";
|
|
43
43
|
import "./clack-prompter-CVmIKCoz.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-DjOCmNCk.js";
|
|
45
45
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-DUqFcGxI.js";
|
|
46
|
-
import { t as onboardCommand } from "./onboard-
|
|
46
|
+
import { t as onboardCommand } from "./onboard-C0Bo_5Vw.js";
|
|
47
47
|
import JSON5 from "json5";
|
|
48
48
|
import fs from "node:fs/promises";
|
|
49
49
|
|
|
@@ -41,9 +41,9 @@ import { t as hasExplicitOptions } from "./command-options-DGYxc3D_.js";
|
|
|
41
41
|
import "./note-qHayYqee.js";
|
|
42
42
|
import "./clack-prompter-fBizq68H.js";
|
|
43
43
|
import "./runtime-guard-DzZMAUj_.js";
|
|
44
|
-
import "./onboarding-
|
|
44
|
+
import "./onboarding-DufCP2B8.js";
|
|
45
45
|
import { n as logConfigUpdated, t as formatConfigPath } from "./logging-CmPhQ5QB.js";
|
|
46
|
-
import { t as onboardCommand } from "./onboard-
|
|
46
|
+
import { t as onboardCommand } from "./onboard-CI1TyO0l.js";
|
|
47
47
|
import JSON5 from "json5";
|
|
48
48
|
import fs from "node:fs/promises";
|
|
49
49
|
|
|
@@ -124,7 +124,7 @@ async function bitseekStartCommand(opts, runtime = defaultRuntime) {
|
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/cli/program/register.start.ts
|
|
126
126
|
function registerStartCommand(program) {
|
|
127
|
-
program.command("start").description("Start with BitSeek preset behavior (local gateway or remote dashboard)").option("--no-open", "Do not auto-open dashboard in browser"
|
|
127
|
+
program.command("start").description("Start with BitSeek preset behavior (local gateway or remote dashboard)").option("--no-open", "Do not auto-open dashboard in browser").option("--force", "Force-free gateway port before local start", false).action(async (opts) => {
|
|
128
128
|
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
129
129
|
await bitseekStartCommand({
|
|
130
130
|
noOpen: opts.open === false,
|
|
@@ -124,7 +124,7 @@ async function bitseekStartCommand(opts, runtime = defaultRuntime) {
|
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/cli/program/register.start.ts
|
|
126
126
|
function registerStartCommand(program) {
|
|
127
|
-
program.command("start").description("Start with BitSeek preset behavior (local gateway or remote dashboard)").option("--no-open", "Do not auto-open dashboard in browser"
|
|
127
|
+
program.command("start").description("Start with BitSeek preset behavior (local gateway or remote dashboard)").option("--no-open", "Do not auto-open dashboard in browser").option("--force", "Force-free gateway port before local start", false).action(async (opts) => {
|
|
128
128
|
await runCommandWithRuntime(defaultRuntime, async () => {
|
|
129
129
|
await bitseekStartCommand({
|
|
130
130
|
noOpen: opts.open === false,
|
|
@@ -65,7 +65,7 @@ const entries = [
|
|
|
65
65
|
description: "Run, inspect, and query the WebSocket Gateway",
|
|
66
66
|
hasSubcommands: true,
|
|
67
67
|
register: async (program) => {
|
|
68
|
-
(await import("./gateway-cli-
|
|
68
|
+
(await import("./gateway-cli-C3ftrrlK.js")).registerGatewayCli(program);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -269,7 +269,7 @@ const entries = [
|
|
|
269
269
|
description: "Update OpenClaw and inspect update channel status",
|
|
270
270
|
hasSubcommands: true,
|
|
271
271
|
register: async (program) => {
|
|
272
|
-
(await import("./update-cli-
|
|
272
|
+
(await import("./update-cli-wmp8VSbx.js")).registerUpdateCli(program);
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
{
|
|
@@ -277,7 +277,7 @@ const entries = [
|
|
|
277
277
|
description: "Generate shell completion script",
|
|
278
278
|
hasSubcommands: false,
|
|
279
279
|
register: async (program) => {
|
|
280
|
-
(await import("./completion-cli-
|
|
280
|
+
(await import("./completion-cli-D_Hxee-R.js").then((n) => n.n)).registerCompletionCli(program);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
3
|
-
import { i as registerInternalHook } from "./internal-hooks-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-BRjuJbbM.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { i as registerInternalHook } from "./internal-hooks-yQe6H47q.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/commands.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { i as
|
|
2
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-B9EDT4jv.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-CcQZM0c7.js";
|
|
4
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-2ZxftpDd.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
7
7
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { r as resolveAgentConfig } from "./agent-scope-
|
|
2
|
+
import { r as resolveAgentConfig } from "./agent-scope-C6hps0r3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
3
|
-
import { p as shouldLogVerbose } from "./subsystem-
|
|
2
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-C6hps0r3.js";
|
|
3
|
+
import { p as shouldLogVerbose } from "./subsystem-BRjuJbbM.js";
|
|
4
4
|
import { c as normalizeAgentId, f as sanitizeAgentId, i as buildAgentPeerSessionKey, m as normalizeAccountId, n as DEFAULT_MAIN_KEY, p as DEFAULT_ACCOUNT_ID, r as buildAgentMainSessionKey, t as DEFAULT_AGENT_ID } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { t as logDebug } from "./logger-
|
|
5
|
+
import { t as logDebug } from "./logger-BlH5MJiV.js";
|
|
6
6
|
import { t as normalizeChatType } from "./chat-type-DKb2TlGZ.js";
|
|
7
|
-
import { n as listBindings } from "./bindings-
|
|
7
|
+
import { n as listBindings } from "./bindings-CsIiIjqN.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
10
10
|
var resolve_route_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -410,7 +410,7 @@ async function runCli(argv = process$1.argv) {
|
|
|
410
410
|
assertSupportedRuntime();
|
|
411
411
|
if (await tryRouteCli(normalizedArgv)) return;
|
|
412
412
|
enableConsoleCapture();
|
|
413
|
-
const { buildProgram } = await import("./program-
|
|
413
|
+
const { buildProgram } = await import("./program-CQtsVyIe.js");
|
|
414
414
|
const program = buildProgram();
|
|
415
415
|
installUnhandledRejectionHandler();
|
|
416
416
|
process$1.on("uncaughtException", (error) => {
|
|
@@ -423,10 +423,10 @@ async function runCli(argv = process$1.argv) {
|
|
|
423
423
|
const { getProgramContext } = await import("./program-context-BqyLhTGk.js").then((n) => n.n);
|
|
424
424
|
const ctx = getProgramContext(program);
|
|
425
425
|
if (ctx) {
|
|
426
|
-
const { registerCoreCliByName } = await import("./command-registry-
|
|
426
|
+
const { registerCoreCliByName } = await import("./command-registry-CtTmCFgA.js").then((n) => n.t);
|
|
427
427
|
await registerCoreCliByName(program, ctx, primary, parseArgv);
|
|
428
428
|
}
|
|
429
|
-
const { registerSubCliByName } = await import("./register.subclis-
|
|
429
|
+
const { registerSubCliByName } = await import("./register.subclis-CIlBs5A-.js").then((n) => n.a);
|
|
430
430
|
await registerSubCliByName(program, primary);
|
|
431
431
|
}
|
|
432
432
|
if (!shouldSkipPluginCommandRegistration({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { d as normalizeE164, h as resolveUserPath } from "./utils-
|
|
3
|
-
import { H as loadConfig } from "./model-selection-
|
|
4
|
-
import { m as kindFromMime } from "./image-ops-
|
|
5
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
7
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
2
|
+
import { d as normalizeE164, h as resolveUserPath } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
4
|
+
import { m as kindFromMime } from "./image-ops-DCpyia_K.js";
|
|
5
|
+
import { t as resolveIMessageAccount } from "./accounts-DMvETf-t.js";
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
7
|
+
import { t as convertMarkdownTables } from "./tables-BJ0XAman.js";
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-Cy8rvvJE.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { createInterface } from "node:readline";
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { H as loadConfig } from "./model-selection-
|
|
2
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
3
3
|
import { n as generateSecureUuid } from "./secure-random-CY3Mg7Dp.js";
|
|
4
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
5
|
-
import { m as kindFromMime } from "./image-ops-
|
|
4
|
+
import { n as resolveSignalAccount } from "./accounts-BTexwKe8.js";
|
|
5
|
+
import { m as kindFromMime } from "./image-ops-DCpyia_K.js";
|
|
6
6
|
import { n as fetchWithTimeout } from "./fetch-timeout-CYFFedEH.js";
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-DcDVAFj3.js";
|
|
9
9
|
import { t as resolveFetch } from "./fetch-CIXnD4u2.js";
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-Cy8rvvJE.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|
|
13
13
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { u as logVerbose } from "./subsystem-
|
|
3
|
-
import { H as loadConfig } from "./model-selection-
|
|
4
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
5
|
-
import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-
|
|
2
|
+
import { u as logVerbose } from "./subsystem-BRjuJbbM.js";
|
|
3
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
4
|
+
import { i as isSilentReplyText } from "./tokens-B9EDT4jv.js";
|
|
5
|
+
import { d as resolveSlackAccount, m as resolveSlackBotToken } from "./plugins-CJoaoIHc.js";
|
|
6
6
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Ci42d9xO.js";
|
|
7
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
8
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
9
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
10
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
7
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-B1EGEHan.js";
|
|
8
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-2ZxftpDd.js";
|
|
9
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
10
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-DcDVAFj3.js";
|
|
11
11
|
import { t as renderMarkdownWithMarkers } from "./render-flG67HhW.js";
|
|
12
12
|
import { WebClient } from "@slack/web-api";
|
|
13
13
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
3
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
2
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-aGRLvQx9.js";
|
|
3
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-BRjuJbbM.js";
|
|
4
4
|
import { m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-
|
|
6
|
-
import { An as withFileLock$1, H as loadConfig, K as writeConfigFile, W as readConfigFileSnapshotForWrite, mn as resolveTelegramPreviewStreamMode } from "./model-selection-
|
|
7
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
8
|
-
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-
|
|
10
|
-
import { t as redactSensitiveText } from "./redact-
|
|
11
|
-
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
12
|
-
import { t as hasProxyEnvConfigured } from "./proxy-env-
|
|
5
|
+
import { g as safeParseJson, t as CONFIG_DIR } from "./utils-BFZnl-5N.js";
|
|
6
|
+
import { An as withFileLock$1, H as loadConfig, K as writeConfigFile, W as readConfigFileSnapshotForWrite, mn as resolveTelegramPreviewStreamMode } from "./model-selection-D_Si2Ict.js";
|
|
7
|
+
import { t as isTruthyEnvValue } from "./env-DNMZEG57.js";
|
|
8
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CJoaoIHc.js";
|
|
9
|
+
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-DCpyia_K.js";
|
|
10
|
+
import { t as redactSensitiveText } from "./redact-CaZQhKzI.js";
|
|
11
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-B11yhRo6.js";
|
|
12
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-ynOWOBHx.js";
|
|
13
13
|
import { r as writeJsonAtomic } from "./json-files-BpxTFudd.js";
|
|
14
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
15
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
16
|
-
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-
|
|
14
|
+
import { t as makeProxyFetch } from "./proxy-fetch-xlbVQYN_.js";
|
|
15
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
16
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-DcDVAFj3.js";
|
|
17
17
|
import { t as renderMarkdownWithMarkers } from "./render-flG67HhW.js";
|
|
18
18
|
import { t as resolveFetch } from "./fetch-CIXnD4u2.js";
|
|
19
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
19
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-Dwc2BBvs.js";
|
|
20
20
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-xFTRYZAO.js";
|
|
21
21
|
import { n as normalizePollInput } from "./polls-an_kOejR.js";
|
|
22
22
|
import fs from "node:fs/promises";
|
|
23
23
|
import os from "node:os";
|
|
24
24
|
import path from "node:path";
|
|
25
|
-
import
|
|
25
|
+
import syncFs, { readFileSync } from "node:fs";
|
|
26
26
|
import JSON5 from "json5";
|
|
27
27
|
import process$1 from "node:process";
|
|
28
28
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -161,7 +161,7 @@ function getPairingAdapter(channelId) {
|
|
|
161
161
|
//#region src/plugin-sdk/json-store.ts
|
|
162
162
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
163
163
|
try {
|
|
164
|
-
const parsed = safeParseJson(await
|
|
164
|
+
const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
|
|
165
165
|
if (parsed == null) return {
|
|
166
166
|
value: fallback,
|
|
167
167
|
exists: true
|
|
@@ -248,7 +248,7 @@ async function readPairingRequests(filePath) {
|
|
|
248
248
|
}
|
|
249
249
|
async function ensureJsonFile(filePath, fallback) {
|
|
250
250
|
try {
|
|
251
|
-
await
|
|
251
|
+
await syncFs.promises.access(filePath);
|
|
252
252
|
} catch {
|
|
253
253
|
await writeJsonFile(filePath, fallback);
|
|
254
254
|
}
|
|
@@ -404,7 +404,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
404
404
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
405
405
|
let stat = null;
|
|
406
406
|
try {
|
|
407
|
-
stat = await
|
|
407
|
+
stat = await syncFs.promises.stat(filePath);
|
|
408
408
|
} catch (err) {
|
|
409
409
|
if (err.code !== "ENOENT") throw err;
|
|
410
410
|
}
|
|
@@ -447,7 +447,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
447
447
|
});
|
|
448
448
|
let stat = null;
|
|
449
449
|
try {
|
|
450
|
-
stat = await
|
|
450
|
+
stat = await syncFs.promises.stat(filePath);
|
|
451
451
|
} catch {}
|
|
452
452
|
setAllowFromReadCache(filePath, {
|
|
453
453
|
exists: true,
|
|
@@ -1054,7 +1054,7 @@ function resolveCronStorePath(storePath) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
async function loadCronStore(storePath) {
|
|
1056
1056
|
try {
|
|
1057
|
-
const raw = await
|
|
1057
|
+
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1058
1058
|
let parsed;
|
|
1059
1059
|
try {
|
|
1060
1060
|
parsed = JSON5.parse(raw);
|
|
@@ -1080,13 +1080,13 @@ async function loadCronStore(storePath) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
async function saveCronStore(storePath, store) {
|
|
1083
|
-
await
|
|
1083
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
1084
1084
|
const json = JSON.stringify(store, null, 2);
|
|
1085
1085
|
const cached = serializedStoreCache.get(storePath);
|
|
1086
1086
|
if (cached === json) return;
|
|
1087
1087
|
let previous = cached ?? null;
|
|
1088
1088
|
if (previous === null) try {
|
|
1089
|
-
previous = await
|
|
1089
|
+
previous = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1090
1090
|
} catch (err) {
|
|
1091
1091
|
if (err.code !== "ENOENT") throw err;
|
|
1092
1092
|
}
|
|
@@ -1095,9 +1095,9 @@ async function saveCronStore(storePath, store) {
|
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1098
|
-
await
|
|
1098
|
+
await syncFs.promises.writeFile(tmp, json, "utf-8");
|
|
1099
1099
|
if (previous !== null) try {
|
|
1100
|
-
await
|
|
1100
|
+
await syncFs.promises.copyFile(storePath, `${storePath}.bak`);
|
|
1101
1101
|
} catch {}
|
|
1102
1102
|
await renameWithRetry(tmp, storePath);
|
|
1103
1103
|
serializedStoreCache.set(storePath, json);
|
|
@@ -1106,7 +1106,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1106
1106
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1107
1107
|
async function renameWithRetry(src, dest) {
|
|
1108
1108
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1109
|
-
await
|
|
1109
|
+
await syncFs.promises.rename(src, dest);
|
|
1110
1110
|
return;
|
|
1111
1111
|
} catch (err) {
|
|
1112
1112
|
const code = err.code;
|
|
@@ -1115,8 +1115,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1115
1115
|
continue;
|
|
1116
1116
|
}
|
|
1117
1117
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1118
|
-
await
|
|
1119
|
-
await
|
|
1118
|
+
await syncFs.promises.copyFile(src, dest);
|
|
1119
|
+
await syncFs.promises.unlink(src).catch(() => {});
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
1122
|
throw err;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { H as loadConfig } from "./model-selection-
|
|
4
|
-
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-
|
|
2
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-BRjuJbbM.js";
|
|
3
|
+
import { H as loadConfig } from "./model-selection-D_Si2Ict.js";
|
|
4
|
+
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-CJoaoIHc.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Ci42d9xO.js";
|
|
6
|
-
import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-
|
|
7
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-
|
|
6
|
+
import { _ as maxBytesForKind, l as extensionForMime } from "./image-ops-DCpyia_K.js";
|
|
7
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-2ZxftpDd.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
9
|
+
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-DcDVAFj3.js";
|
|
10
10
|
import { t as resolveFetch } from "./fetch-CIXnD4u2.js";
|
|
11
|
-
import { n as retryAsync, t as resolveRetryConfig } from "./retry-
|
|
12
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
11
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-DTeP7C3h.js";
|
|
12
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-Dwc2BBvs.js";
|
|
13
13
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-xFTRYZAO.js";
|
|
14
14
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-an_kOejR.js";
|
|
15
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
15
|
+
import { t as convertMarkdownTables } from "./tables-BJ0XAman.js";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import { promisify } from "node:util";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as recordSessionMetaFromInbound } from "./sessions-
|
|
3
|
-
import { s as resolveStorePath } from "./paths-
|
|
2
|
+
import { c as recordSessionMetaFromInbound } from "./sessions-D7EjW0sG.js";
|
|
3
|
+
import { s as resolveStorePath } from "./paths-BHEVctLd.js";
|
|
4
4
|
|
|
5
5
|
//#region src/channels/session-meta.ts
|
|
6
6
|
var session_meta_exports = /* @__PURE__ */ __exportAll({ recordInboundSessionMetaSafe: () => recordInboundSessionMetaSafe });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-
|
|
2
|
-
import { a as ensureDir, h as resolveUserPath } from "./utils-
|
|
3
|
-
import { yn as VERSION } from "./model-selection-
|
|
4
|
-
import { n as formatCliCommand } from "./env-
|
|
5
|
-
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-
|
|
6
|
-
import
|
|
1
|
+
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-BRjuJbbM.js";
|
|
2
|
+
import { a as ensureDir, h as resolveUserPath } from "./utils-BFZnl-5N.js";
|
|
3
|
+
import { yn as VERSION } from "./model-selection-D_Si2Ict.js";
|
|
4
|
+
import { n as formatCliCommand } from "./env-DNMZEG57.js";
|
|
5
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-ubG6irXZ.js";
|
|
6
|
+
import syncFs from "node:fs";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
9
9
|
import qrcode from "qrcode-terminal";
|
|
@@ -22,16 +22,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
22
22
|
const raw = readCredsJsonRaw(credsPath);
|
|
23
23
|
if (raw) try {
|
|
24
24
|
JSON.parse(raw);
|
|
25
|
-
|
|
25
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
syncFs.chmodSync(backupPath, 384);
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
} catch {}
|
|
31
31
|
try {
|
|
32
32
|
await Promise.resolve(saveCreds());
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
35
35
|
} catch {}
|
|
36
36
|
} catch (err) {
|
|
37
37
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|