@bitseek/claw 1.1.0-beta.1 → 1.2.0
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-Q4TInGRB.js → accounts-B1Ev8y2Q.js} +1 -1
- package/dist/{accounts-CX1yOBOk.js → accounts-BTexwKe8.js} +1 -1
- package/dist/{accounts-BcjOiql6.js → accounts-BvAUwnNS.js} +1 -1
- package/dist/{accounts-DZqwa5NK.js → accounts-CFz9Jc5d.js} +1 -1
- package/dist/{accounts-DU3tdXTQ.js → accounts-DYfFud2l.js} +3 -3
- package/dist/{accounts-CaiECgq3.js → accounts-ubG6irXZ.js} +16 -16
- package/dist/{active-listener-B5NrQkZf.js → active-listener-CTS8r9of.js} +1 -1
- package/dist/{active-listener-neKWQsOO.js → active-listener-Hd9sOu9T.js} +1 -1
- package/dist/{agent-scope-WFSLjKze.js → agent-scope-BV1a5xUb.js} +3 -3
- package/dist/{agent-scope-CTbRzU1C.js → agent-scope-C6hps0r3.js} +4 -4
- package/dist/{api-key-rotation-BTSy5kZN.js → api-key-rotation-Bcht0XFN.js} +2 -2
- package/dist/{api-key-rotation-QF_IgxAt.js → api-key-rotation-WzOC5dTW.js} +2 -2
- package/dist/{audio-preflight-DZWb0ozj.js → audio-preflight-BWOdDA2n.js} +39 -39
- package/dist/{audio-preflight-BmP9CWz5.js → audio-preflight-CHD1xVrt.js} +33 -33
- package/dist/{audio-transcription-runner-2dp0SxL3.js → audio-transcription-runner-DaoqvWoi.js} +11 -11
- package/dist/{audio-transcription-runner-DY-f5ESH.js → audio-transcription-runner-DwWOJBSn.js} +10 -10
- package/dist/{bindings-BiLTzEDB.js → bindings-Cn3Pwuys.js} +2 -2
- package/dist/{bindings-Daa-Etag.js → bindings-CsIiIjqN.js} +2 -2
- package/dist/build-info.json +3 -3
- 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/{channel-activity-B0EccK2Z.js → channel-activity-BFQ7OM6W.js} +3 -3
- package/dist/{channel-activity-Btz1t5_1.js → channel-activity-D81g48kD.js} +3 -3
- package/dist/{chrome-DX1blHAJ.js → chrome-CjTE-vWv.js} +18 -18
- package/dist/{chrome-B6KLicBS.js → chrome-CuMCXCQN.js} +7 -7
- package/dist/{chunk-DRA82fRK.js → chunk-CJxSBMow.js} +1 -1
- package/dist/{chunk-DEkdXze6.js → chunk-DtYb6TYl.js} +1 -1
- package/dist/{commands-registry-BQkQRhEo.js → commands-registry-NIsv9Z4R.js} +5 -5
- package/dist/{commands-registry-BcwiV2E6.js → commands-registry-sN7UY9o6.js} +5 -5
- package/dist/{deliver-BebswuJX.js → deliver-Dyh8ZsLI.js} +11 -11
- package/dist/{deliver-C82Egs0W.js → deliver-xY3h9X6N.js} +22 -22
- package/dist/{diagnostic-DpOlXoSr.js → diagnostic-BO1GQJJf.js} +2 -2
- package/dist/{diagnostic-BfH0uEFW.js → diagnostic-Co8pKHgV.js} +2 -2
- package/dist/{dock-DWqb4ufG.js → dock-Cr9V9V1V.js} +6 -6
- package/dist/{dock-DC1L25RR.js → dock-L5TLZmhV.js} +6 -6
- package/dist/{env-Bn6pmvjK.js → env-DNMZEG57.js} +2 -2
- package/dist/{env-C4fkljkr.js → env-zky96nK6.js} +1 -1
- package/dist/{errors-Co1cHB39.js → errors-DEkWxItM.js} +1 -1
- package/dist/{errors-azBrKJmF.js → errors-Dt6Q4949.js} +1 -1
- package/dist/extensionAPI.js +59 -59
- package/dist/{fetch-B82CeaHJ.js → fetch--iXu7oa7.js} +5 -5
- package/dist/{fetch-yZvEqNBq.js → fetch-BfCWv6tx.js} +4 -4
- package/dist/{fetch-guard-CCLWHwu7.js → fetch-guard-CNvY0vzQ.js} +2 -2
- package/dist/{fetch-guard-HVq6HV21.js → fetch-guard-DfeA6yKv.js} +2 -2
- package/dist/{frontmatter-5U1LYLH9.js → frontmatter-DIRc-IR1.js} +2 -2
- package/dist/{fs-safe-BDR6eQAw.js → fs-safe-D8x_nIIA.js} +4 -4
- package/dist/{fs-safe-Bjb1TwNw.js → fs-safe-DkXQKmLV.js} +3 -3
- package/dist/{github-copilot-token-CPjAmbfr.js → github-copilot-token-DLGN-8YS.js} +7 -7
- package/dist/{image-BQ1JgwZu.js → image-DCyaYY2d.js} +6 -6
- package/dist/{image-D0UuqhWe.js → image-DihIv8Eo.js} +6 -6
- package/dist/{image-ops-DZueuY58.js → image-ops-CSs8oYrR.js} +1 -1
- package/dist/{image-ops-jvmQoiyw.js → image-ops-DCpyia_K.js} +1 -1
- package/dist/{internal-hooks-oLQ2m8YT.js → internal-hooks-yQe6H47q.js} +1 -1
- package/dist/{ir-B8_sHx0x.js → ir-BZUjdf-6.js} +7 -7
- package/dist/{ir-BODD8g-I.js → ir-D805RkIy.js} +7 -7
- package/dist/llm-slug-generator.js +65 -65
- package/dist/{logger-DelEB7MK.js → logger-9KuF7Fqb.js} +1 -1
- package/dist/{logger-Dq_8pk7N.js → logger-BlH5MJiV.js} +1 -1
- package/dist/{login-BLdQCgev.js → login-CgEHUE7h.js} +6 -6
- package/dist/{login-Cm2zDfEU.js → login-CrT31QVq.js} +6 -6
- package/dist/{login-qr-BlBmIbUe.js → login-qr-Bu-zPzca.js} +9 -9
- package/dist/{login-qr-iS1jPDpP.js → login-qr-DUJfhbUe.js} +13 -13
- package/dist/{manager-DdzkWOvc.js → manager-BNuB9clC.js} +15 -15
- package/dist/{manager-DZ1r4cza.js → manager-BwSA683a.js} +10 -10
- package/dist/{markdown-tables-pfs_NCNh.js → markdown-tables-BHONoo6S.js} +1 -1
- package/dist/{markdown-tables-D3tGrgw6.js → markdown-tables-ChcK0mrw.js} +1 -1
- package/dist/{message-channel-POuk6EOq.js → message-channel-B1_JjaQ_.js} +1 -1
- package/dist/{message-channel-Dla8iIQh.js → message-channel-Dl8dSs0T.js} +1 -1
- package/dist/{model-selection-Lcv6_xTw.js → model-selection-D5OFBCTr.js} +10 -10
- package/dist/{model-selection-DfZMxaX3.js → model-selection-D_Si2Ict.js} +44 -44
- package/dist/{outbound-io4lysA3.js → outbound-B9pGRwxd.js} +7 -7
- package/dist/{outbound-4q4mbU-Z.js → outbound-DOVV_R6m.js} +7 -7
- package/dist/{outbound-attachment-DObhzSFC.js → outbound-attachment-Bnm1vH9k.js} +2 -2
- package/dist/{outbound-attachment-CBCp1oVQ.js → outbound-attachment-C7sJLSnv.js} +2 -2
- package/dist/{path-alias-guards-DcdNrTfo.js → path-alias-guards-BaYeiedF.js} +1 -1
- package/dist/{path-alias-guards-DfQIjfhB.js → path-alias-guards-CKjKIhQ3.js} +1 -1
- package/dist/{paths-BZO1jkK2.js → paths-Cpu0XgUj.js} +3 -3
- package/dist/{paths-DKuX7-1L.js → paths-aGRLvQx9.js} +5 -5
- package/dist/{pi-embedded-DiUmkZyz.js → pi-embedded-DE3hb87F.js} +178 -178
- package/dist/{pi-embedded-helpers-Bhiht_Fr.js → pi-embedded-helpers-Bmj18lhA.js} +17 -17
- package/dist/{pi-embedded-helpers-CuwhW4u9.js → pi-embedded-helpers-CMTVhLjq.js} +29 -29
- package/dist/{pi-embedded-ZTnJGCQY.js → pi-embedded-xCcmCTnf.js} +93 -93
- package/dist/{pi-model-discovery-COjkql-U.js → pi-model-discovery-DCIw1y1c.js} +7 -7
- package/dist/{pi-model-discovery-DkGEaaQo.js → pi-model-discovery-DpYZ-y1X.js} +1 -1
- package/dist/{plugins-Q9sCFgDd.js → plugins-BuQyooWr.js} +6 -6
- package/dist/{plugins-D63QYxW6.js → plugins-CJoaoIHc.js} +11 -11
- package/dist/{proxy-DXnFb9JG.js → proxy-DfJJLvch.js} +1 -1
- package/dist/{proxy-jINniQBi.js → proxy-DuIUyAbU.js} +1 -1
- package/dist/{proxy-env-gJ_T0CNE.js → proxy-env-2PDGuovA.js} +1 -1
- package/dist/{proxy-env-vYAjKL5q.js → proxy-env-BnDt8j9F.js} +1 -1
- package/dist/{proxy-fetch-AvkSvetA.js → proxy-fetch-fN-NLyCx.js} +1 -1
- package/dist/{proxy-fetch-Cwaqi3Sd.js → proxy-fetch-xlbVQYN_.js} +1 -1
- package/dist/{pw-ai-BLNiRUPI.js → pw-ai-DGwA7iCM.js} +17 -17
- package/dist/{pw-ai-Cu00qsvT.js → pw-ai-pqeoAqm_.js} +13 -13
- package/dist/{qmd-manager-BBKfRzj-.js → qmd-manager-CeN3N992.js} +11 -11
- package/dist/{qmd-manager-BXnhgEhZ.js → qmd-manager-DCiOmvlF.js} +8 -8
- package/dist/{query-expansion-GvCTlZq8.js → query-expansion-Bxi0ZwK0.js} +2 -2
- package/dist/{query-expansion-2BrixCA2.js → query-expansion-CGnW4Mk_.js} +5 -5
- package/dist/{redact-uUggP88O.js → redact-ScShueoF.js} +1 -1
- package/dist/{redact-BeNq-0Ah.js → redact-b4XSqAVh.js} +1 -1
- package/dist/{registry-Cm2o3UqV.js → registry-BOq-EU8K.js} +2 -2
- package/dist/{registry-C2GEGa2t.js → registry-CJCkqTms.js} +3 -3
- package/dist/{replies-yAf6dFeT.js → replies-BFYGUEKu.js} +3 -3
- package/dist/{replies-BoccpPLY.js → replies-CRQL_9_u.js} +3 -3
- package/dist/{reply-prefix-9mzt89Cf.js → reply-prefix-BDSRMl8C.js} +1 -1
- package/dist/{reply-prefix-V_WbQmQI.js → reply-prefix-DK1i6bCJ.js} +1 -1
- package/dist/{resolve-route-BNElrVxR.js → resolve-route-C5hVstLo.js} +4 -4
- package/dist/{resolve-route-CbtpwLIw.js → resolve-route-CeAUOHqF.js} +4 -4
- package/dist/{retry-Ayb7e4XG.js → retry-CqXTCn07.js} +1 -1
- package/dist/{retry-Do0h0jOj.js → retry-DTeP7C3h.js} +1 -1
- package/dist/{send-Bclgg0Ur.js → send-B4pSMBHk.js} +8 -8
- package/dist/{send-DOfOQoAW.js → send-BSw60pEI.js} +6 -6
- package/dist/{send-BUF5JmoX.js → send-BpJIVMP0.js} +10 -10
- package/dist/{send-Bjaa69Cy.js → send-BqKSZyIb.js} +27 -27
- package/dist/{send-TCeoSiar.js → send-CIQavYDH.js} +15 -15
- package/dist/{send-DYY51FOR.js → send-CN0f1Yst.js} +6 -6
- package/dist/{send-DQ7hIAIK.js → send-DrLGfHcu.js} +7 -7
- package/dist/{send-Cp0yQi_p.js → send-V3fEVmLq.js} +10 -10
- package/dist/{send-CPXpZun_.js → send-XAO1mk64.js} +7 -7
- package/dist/{send-D8-j0bqb.js → send-paWifUry.js} +8 -8
- package/dist/{session-CJ9krhUZ.js → session-BrRIoGdv.js} +5 -5
- package/dist/{session-meta-DDoYe-12.js → session-meta-B56tnXvx.js} +1 -1
- package/dist/{session-meta-CyQWVUk4.js → session-meta-Cqv55kSk.js} +2 -2
- package/dist/{session-TVb8hgJP.js → session-xKPVUYQP.js} +9 -9
- package/dist/{sessions-DRS5w42J.js → sessions-BXwugIi3.js} +6 -6
- package/dist/{sessions-3jroJwu7.js → sessions-CA_BydGA.js} +31 -31
- package/dist/{skill-commands-CSr9_48V.js → skill-commands-CZFmIM-s.js} +9 -9
- package/dist/{skill-commands-gSVeOO1_.js → skill-commands-DfX4Z2l_.js} +5 -5
- package/dist/{skills-B82IjVxn.js → skills-DMmr25nW.js} +22 -22
- package/dist/{skills-L3SwymRq.js → skills-Z-lrvzqS.js} +8 -8
- package/dist/{store-DhC72KqW.js → store-C8KgeMt2.js} +2 -2
- package/dist/{store-kjBSBYUM.js → store-DzT4cJNJ.js} +2 -2
- package/dist/{subsystem-CAatx5oo.js → subsystem-BRjuJbbM.js} +14 -14
- package/dist/{subsystem-B9sSF5B5.js → subsystem-CVmydYhZ.js} +2 -2
- package/dist/{tables-Bfh_TnCf.js → tables-BKnPZssn.js} +1 -1
- package/dist/{tables-D8eYbmn5.js → tables-DAQMuyH8.js} +1 -1
- package/dist/{target-errors-CGYXYvSZ.js → target-errors-B9Jzop3d.js} +2 -2
- package/dist/{target-errors-C6-JcltW.js → target-errors-BPINy_1M.js} +2 -2
- package/dist/{tokens-BvzZdrVJ.js → tokens-2c_yMaYC.js} +1 -1
- package/dist/{tokens-JC-PGa1O.js → tokens-B9EDT4jv.js} +1 -1
- package/dist/{tool-images-CqsWnc1k.js → tool-images-BOZsvFJ9.js} +2 -2
- package/dist/{tool-images-BieqkTsF.js → tool-images-ffdfBx0b.js} +2 -2
- package/dist/{tool-loop-detection-C4V990MS.js → tool-loop-detection-CLoYKYIq.js} +3 -3
- package/dist/{tool-loop-detection-CrEXrBzX.js → tool-loop-detection-Cmi-kldp.js} +2 -2
- package/dist/{utils-Bo1RFF0l.js → utils-BFZnl-5N.js} +6 -6
- package/dist/{utils-LC1iyEdx.js → utils-CM9uSTVd.js} +1 -1
- package/dist/{web-DsAoa63g.js → web-B2_c07KN.js} +69 -69
- package/dist/{web-D5Vw9sie.js → web-CvYmNThc.js} +63 -63
- package/dist/{whatsapp-actions-DXjy9m41.js → whatsapp-actions-CHt12z-f.js} +28 -28
- package/dist/{whatsapp-actions-BOYS1jdy.js → whatsapp-actions-D_-xXIS-.js} +24 -24
- package/dist/{workspace-CswOYN9T.js → workspace-D6mrCnXi.js} +21 -21
- package/docs/plans/2026-03-11-npm-publish-workflow-design.md +31 -0
- package/extensions/googlechat/package.json +1 -1
- package/package.json +7 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
2
|
+
import { t as makeProxyFetch } from "./proxy-fetch-fN-NLyCx.js";
|
|
3
3
|
|
|
4
4
|
//#region src/telegram/proxy.ts
|
|
5
5
|
var proxy_exports = /* @__PURE__ */ __exportAll({ makeProxyFetch: () => makeProxyFetch });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ct as isBlockedSpecialUseIpv6Address, dt as isLegacyIpv4Literal, gt as parseLooseIpAddress, ht as parseCanonicalIpAddress, lt as isCanonicalDottedDecimalIPv4, ot as extractEmbeddedIpv4FromIpv6, st as isBlockedSpecialUseIpv4Address, ut as isIpv4Address } from "./model-selection-
|
|
1
|
+
import { ct as isBlockedSpecialUseIpv6Address, dt as isLegacyIpv4Literal, gt as parseLooseIpAddress, ht as parseCanonicalIpAddress, lt as isCanonicalDottedDecimalIPv4, ot as extractEmbeddedIpv4FromIpv6, st as isBlockedSpecialUseIpv4Address, ut as isIpv4Address } from "./model-selection-D5OFBCTr.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as parseLooseIpAddress, ct as isBlockedSpecialUseIpv4Address, dt as isIpv4Address, ft as isLegacyIpv4Literal, gt as parseCanonicalIpAddress, lt as isBlockedSpecialUseIpv6Address, st as extractEmbeddedIpv4FromIpv6, ut as isCanonicalDottedDecimalIPv4 } from "./model-selection-
|
|
1
|
+
import { _t as parseLooseIpAddress, ct as isBlockedSpecialUseIpv4Address, dt as isIpv4Address, ft as isLegacyIpv4Literal, gt as parseCanonicalIpAddress, lt as isBlockedSpecialUseIpv6Address, st as extractEmbeddedIpv4FromIpv6, ut as isCanonicalDottedDecimalIPv4 } from "./model-selection-D_Si2Ict.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|
|
@@ -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-CjTE-vWv.js";
|
|
14
|
+
import "./path-alias-guards-CKjKIhQ3.js";
|
|
15
|
+
import "./redact-ScShueoF.js";
|
|
16
|
+
import { r as formatErrorMessage } from "./errors-DEkWxItM.js";
|
|
17
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-D8x_nIIA.js";
|
|
18
|
+
import "./proxy-env-BnDt8j9F.js";
|
|
19
19
|
import fs from "node:fs/promises";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import crypto from "node:crypto";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
1
|
+
import "./agent-scope-BV1a5xUb.js";
|
|
2
2
|
import "./paths-De1_4l4O.js";
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import "./utils-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./model-selection-
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CVmydYhZ.js";
|
|
4
|
+
import "./utils-CM9uSTVd.js";
|
|
5
|
+
import "./logger-9KuF7Fqb.js";
|
|
6
|
+
import "./model-selection-D5OFBCTr.js";
|
|
7
7
|
import "./github-copilot-token-CwIS0zs9.js";
|
|
8
|
-
import { r as formatCliCommand } from "./env-
|
|
9
|
-
import "./registry-
|
|
10
|
-
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-
|
|
11
|
-
import "./path-alias-guards-
|
|
12
|
-
import "./redact-
|
|
13
|
-
import { r as formatErrorMessage } from "./errors-
|
|
14
|
-
import { s as writeFileFromPathWithinRoot } from "./fs-safe-
|
|
15
|
-
import "./proxy-env-
|
|
8
|
+
import { r as formatCliCommand } from "./env-zky96nK6.js";
|
|
9
|
+
import "./registry-BOq-EU8K.js";
|
|
10
|
+
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-CuMCXCQN.js";
|
|
11
|
+
import "./path-alias-guards-BaYeiedF.js";
|
|
12
|
+
import "./redact-b4XSqAVh.js";
|
|
13
|
+
import { r as formatErrorMessage } from "./errors-Dt6Q4949.js";
|
|
14
|
+
import { s as writeFileFromPathWithinRoot } from "./fs-safe-DkXQKmLV.js";
|
|
15
|
+
import "./proxy-env-2PDGuovA.js";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import fs from "node:fs/promises";
|
|
18
18
|
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-CKjKIhQ3.js";
|
|
9
|
+
import "./redact-ScShueoF.js";
|
|
10
|
+
import { c as writeFileWithinRoot } from "./fs-safe-D8x_nIIA.js";
|
|
11
11
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-BJZPhzR8.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-Cpu0XgUj.js";
|
|
13
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-CGnW4Mk_.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
1
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-BV1a5xUb.js";
|
|
2
2
|
import { c as resolveStateDir } from "./paths-De1_4l4O.js";
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CVmydYhZ.js";
|
|
4
4
|
import { S as parseAgentSessionKey } from "./session-key-a6av96Fj.js";
|
|
5
|
-
import "./utils-
|
|
6
|
-
import "./logger-
|
|
7
|
-
import "./path-alias-guards-
|
|
8
|
-
import "./redact-
|
|
9
|
-
import { c as writeFileWithinRoot } from "./fs-safe-
|
|
5
|
+
import "./utils-CM9uSTVd.js";
|
|
6
|
+
import "./logger-9KuF7Fqb.js";
|
|
7
|
+
import "./path-alias-guards-BaYeiedF.js";
|
|
8
|
+
import "./redact-b4XSqAVh.js";
|
|
9
|
+
import { c as writeFileWithinRoot } from "./fs-safe-DkXQKmLV.js";
|
|
10
10
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-X5yVByYG.js";
|
|
11
11
|
import "./paths-BmEQm4ho.js";
|
|
12
|
-
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-
|
|
12
|
+
import { _ as isFileMissingError, i as listSessionFilesForAgent, n as requireNodeSqlite, r as buildSessionEntry, t as extractKeywords, v as statRegularFile } from "./query-expansion-Bxi0ZwK0.js";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CVmydYhZ.js";
|
|
2
2
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-C0tgsauE.js";
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-b4XSqAVh.js";
|
|
4
4
|
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-BmEQm4ho.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
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-ScShueoF.js";
|
|
4
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-Cpu0XgUj.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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
1
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-CVmydYhZ.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-CM9uSTVd.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/internal-hooks.ts
|
|
@@ -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 isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
2
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-B9EDT4jv.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-B4pSMBHk.js";
|
|
4
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-DtYb6TYl.js";
|
|
5
5
|
|
|
6
6
|
//#region src/auto-reply/reply/reply-reference.ts
|
|
7
7
|
function createReplyReferencePlanner(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
3
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
2
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-2c_yMaYC.js";
|
|
3
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-paWifUry.js";
|
|
4
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-CJxSBMow.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-BV1a5xUb.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agents/identity.ts
|
|
5
5
|
const DEFAULT_ACK_REACTION = "👀";
|
|
@@ -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({
|
|
@@ -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-BV1a5xUb.js";
|
|
3
|
+
import { p as shouldLogVerbose } from "./subsystem-CVmydYhZ.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-9KuF7Fqb.js";
|
|
6
6
|
import { t as normalizeChatType } from "./chat-type-CYPyHAj-.js";
|
|
7
|
-
import { n as listBindings } from "./bindings-
|
|
7
|
+
import { n as listBindings } from "./bindings-Cn3Pwuys.js";
|
|
8
8
|
|
|
9
9
|
//#region src/routing/resolve-route.ts
|
|
10
10
|
var resolve_route_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -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-CNvY0vzQ.js";
|
|
8
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-DtYb6TYl.js";
|
|
9
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BHONoo6S.js";
|
|
10
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-BZUjdf-6.js";
|
|
11
11
|
import { t as renderMarkdownWithMarkers } from "./render-flG67HhW.js";
|
|
12
12
|
import { WebClient } from "@slack/web-api";
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { V as loadConfig } from "./model-selection-
|
|
2
|
+
import { V as loadConfig } from "./model-selection-D5OFBCTr.js";
|
|
3
3
|
import { n as generateSecureUuid } from "./secure-random-CFRVlPvh.js";
|
|
4
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
5
|
-
import { m as kindFromMime } from "./image-ops-
|
|
4
|
+
import { n as resolveSignalAccount } from "./accounts-BvAUwnNS.js";
|
|
5
|
+
import { m as kindFromMime } from "./image-ops-CSs8oYrR.js";
|
|
6
6
|
import { n as fetchWithTimeout } from "./fetch-timeout-BVa_Fx_T.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-ChcK0mrw.js";
|
|
8
|
+
import { n as markdownToIR, t as chunkMarkdownIR } from "./ir-D805RkIy.js";
|
|
9
9
|
import { t as resolveFetch } from "./fetch-C7rJ-pyI.js";
|
|
10
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
10
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-Bnm1vH9k.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|
|
13
13
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { V as loadConfig } from "./model-selection-
|
|
4
|
-
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-
|
|
2
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CVmydYhZ.js";
|
|
3
|
+
import { V as loadConfig } from "./model-selection-D5OFBCTr.js";
|
|
4
|
+
import { _ as resolveDiscordAccount, v as normalizeDiscordToken } from "./plugins-BuQyooWr.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Cba07LhE.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-CSs8oYrR.js";
|
|
7
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode } from "./chunk-CJxSBMow.js";
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-ChcK0mrw.js";
|
|
9
|
+
import { a as loadWebMedia, o as loadWebMediaRaw } from "./ir-D805RkIy.js";
|
|
10
10
|
import { t as resolveFetch } from "./fetch-C7rJ-pyI.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-CqXTCn07.js";
|
|
12
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-BFQ7OM6W.js";
|
|
13
13
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DOtW9oaI.js";
|
|
14
14
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-BmymsJEe.js";
|
|
15
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
15
|
+
import { t as convertMarkdownTables } from "./tables-DAQMuyH8.js";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import { promisify } from "node:util";
|
|
18
18
|
import fs from "node:fs/promises";
|
|
@@ -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-ScShueoF.js";
|
|
11
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-DEkWxItM.js";
|
|
12
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-BnDt8j9F.js";
|
|
13
13
|
import { r as writeJsonAtomic } from "./json-files-JTS4WE3P.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-BZUjdf-6.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-D81g48kD.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,28 +1,28 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-De1_4l4O.js";
|
|
3
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
3
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-CVmydYhZ.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 { G as writeConfigFile, U as readConfigFileSnapshotForWrite, V as loadConfig, hn as resolveTelegramPreviewStreamMode, jn as withFileLock$1 } 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-CM9uSTVd.js";
|
|
6
|
+
import { G as writeConfigFile, U as readConfigFileSnapshotForWrite, V as loadConfig, hn as resolveTelegramPreviewStreamMode, jn as withFileLock$1 } from "./model-selection-D5OFBCTr.js";
|
|
7
|
+
import { t as isTruthyEnvValue } from "./env-zky96nK6.js";
|
|
8
|
+
import { l as resolveTelegramAccount, n as listChannelPlugins, t as getChannelPlugin } from "./plugins-BuQyooWr.js";
|
|
9
|
+
import { h as normalizeMimeType, m as kindFromMime, p as isGifMedia, u as getFileExtension } from "./image-ops-CSs8oYrR.js";
|
|
10
|
+
import { t as redactSensitiveText } from "./redact-b4XSqAVh.js";
|
|
11
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-Dt6Q4949.js";
|
|
12
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-2PDGuovA.js";
|
|
13
13
|
import { r as writeJsonAtomic } from "./json-files-DwMy3FOT.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-fN-NLyCx.js";
|
|
15
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-ChcK0mrw.js";
|
|
16
|
+
import { a as loadWebMedia, n as markdownToIR, t as chunkMarkdownIR } from "./ir-D805RkIy.js";
|
|
17
17
|
import { t as renderMarkdownWithMarkers } from "./render-DIvHuHqk.js";
|
|
18
18
|
import { t as resolveFetch } from "./fetch-C7rJ-pyI.js";
|
|
19
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
19
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-BFQ7OM6W.js";
|
|
20
20
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-DOtW9oaI.js";
|
|
21
21
|
import { n as normalizePollInput } from "./polls-BmymsJEe.js";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import syncFs, { readFileSync } from "node:fs";
|
|
24
24
|
import os from "node:os";
|
|
25
|
-
import
|
|
25
|
+
import JSON5 from "json5";
|
|
26
26
|
import fs from "node:fs/promises";
|
|
27
27
|
import process$1 from "node:process";
|
|
28
28
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -1057,7 +1057,7 @@ async function loadCronStore(storePath) {
|
|
|
1057
1057
|
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1058
1058
|
let parsed;
|
|
1059
1059
|
try {
|
|
1060
|
-
parsed =
|
|
1060
|
+
parsed = JSON5.parse(raw);
|
|
1061
1061
|
} catch (err) {
|
|
1062
1062
|
throw new Error(`Failed to parse cron store at ${storePath}: ${String(err)}`, { cause: err });
|
|
1063
1063
|
}
|