@termix-it/cryptoclaw 1.1.8 → 1.1.9
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-4l7ba973.js → accounts-7nNRr4R3.js} +1 -1
- package/dist/{accounts-k5nTdi32.js → accounts-BIr_ieyH.js} +1 -1
- package/dist/{accounts-CAjupeYV.js → accounts-CKpnUMZd.js} +16 -16
- package/dist/{active-listener-D9FARjMd.js → active-listener-ClXqZUsD.js} +1 -1
- package/dist/{api-key-rotation-C-Q6XdUW.js → api-key-rotation-CUJC6xSi.js} +2 -2
- package/dist/{audio-preflight-C7kt2vOu.js → audio-preflight--MDRrrlB.js} +33 -33
- package/dist/{audio-transcription-runner-CawngPvE.js → audio-transcription-runner-CgLX4N3r.js} +12 -12
- package/dist/{audit-membership-runtime-C6dnIaXJ.js → audit-membership-runtime-Ch2lLD_u.js} +5 -5
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +52 -52
- 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 +52 -52
- package/dist/bundled/soul-evil/handler.js +5 -5
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-Hho38eZq.js → channel-activity-32lmgAZH.js} +3 -3
- package/dist/{chrome-palWvTtp.js → chrome-CtEQV_6p.js} +18 -18
- package/dist/{commands-registry-A3LstXeY.js → commands-registry-FnGtnvb0.js} +4 -4
- package/dist/{deliver-JkYjt9Qz.js → deliver-32OxViWG.js} +20 -20
- package/dist/deliver-runtime-DGYhS7K1.js +37 -0
- package/dist/deps-send-discord.runtime-BJmezHoH.js +27 -0
- package/dist/deps-send-imessage.runtime-Dsq-J7FK.js +26 -0
- package/dist/deps-send-signal.runtime-2kRNCAkm.js +25 -0
- package/dist/deps-send-slack.runtime-DoM54spr.js +23 -0
- package/dist/deps-send-telegram.runtime-DGtmyBk2.js +28 -0
- package/dist/deps-send-whatsapp.runtime-B_ZiouDf.js +61 -0
- package/dist/{diagnostic-BGtFj4tU.js → diagnostic-UO82MQjo.js} +2 -2
- package/dist/{plugin-sdk/errors-B2jpHiod.js → errors-BwBpGOBV.js} +1 -1
- package/dist/{fetch-_iocPLV2.js → fetch-DozurFmr.js} +5 -5
- package/dist/{fetch-guard-CiQUuV0r.js → fetch-guard-XtFb6zM7.js} +2 -2
- package/dist/{frontmatter-Dn68lQ_o.js → frontmatter-Cy6ESb-O.js} +5 -5
- package/dist/{fs-safe-BLpOReWZ.js → fs-safe-YxZ8RAEw.js} +4 -4
- package/dist/{github-copilot-token-DDa7O18e.js → github-copilot-token-D7knylDF.js} +7 -7
- package/dist/{image-BlRI3dXw.js → image-B2LPzwKF.js} +6 -6
- package/dist/{image-ops-D7mq-4y1.js → image-ops-gm8VfGiD.js} +2 -2
- package/dist/image-runtime-BL3D208M.js +30 -0
- package/dist/{ir-Dpg87zYv.js → ir-B7IR3m4T.js} +7 -7
- package/dist/{legacy-names-BAiRv0I2.js → legacy-names-TrN6kryB.js} +1 -1
- package/dist/llm-slug-generator.js +52 -52
- package/dist/{logger-C53B395N.js → logger-CV2IWsAW.js} +1 -1
- package/dist/{login-CHsCISh4.js → login-C6CkDgLi.js} +5 -5
- package/dist/{login-qr-BEW3jIOt.js → login-qr-WEr1WQvg.js} +11 -11
- package/dist/{manager-Dfrejf6z.js → manager-BWh3BVp1.js} +13 -13
- package/dist/manager-runtime-CJHBIXOb.js +19 -0
- package/dist/{model-selection-e9hodq0l.js → model-selection-BiqOlgFe.js} +48 -48
- package/dist/{outbound-BZqL8UdJ.js → outbound-DSVwKSv4.js} +6 -6
- package/dist/{outbound-attachment-wzHGF-Is.js → outbound-attachment-CcY_Rg0-.js} +2 -2
- package/dist/{path-alias-guards-It4BBRdm.js → path-alias-guards-Gzq1eAOo.js} +1 -1
- package/dist/{paths-CZ0nrg7g.js → paths-BWg7M5Yy.js} +3 -3
- package/dist/{paths-C6TxBCvO.js → paths-Cvc9EM8Y.js} +5 -5
- package/dist/{pi-embedded-BNcbv6lg.js → pi-embedded-DkdNpxSe.js} +161 -161
- package/dist/{pi-embedded-helpers-CE9KKP1Q.js → pi-embedded-helpers-B_qa7ikD.js} +52 -52
- package/dist/{pi-model-discovery-32EFg27L.js → pi-model-discovery-FwBV8Q5J.js} +7 -7
- package/dist/pi-model-discovery-runtime-BozG-CtU.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-BfjlGXIc.js → pi-tools.before-tool-call.runtime-2r6sdUt5.js} +10 -10
- package/dist/plugin-sdk/{accounts-Bpe8MpMj.js → accounts-B9ydKoYC.js} +2 -2
- package/dist/plugin-sdk/{accounts-BY3xA55d.js → accounts-DAebrX4r.js} +3 -3
- package/dist/plugin-sdk/{accounts-Dg9HUb5m.js → accounts-DxlJAHNG.js} +2 -2
- package/dist/plugin-sdk/{active-listener-kZJwBchj.js → active-listener-D7Jidx1U.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-wZaR5O8n.js → api-key-rotation-d8cmHGhi.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-DOR1d1hn.js → audio-preflight-vJtQi-4_.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DWncgs4M.js → audio-transcription-runner-Bfv_TVP4.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DvBMQsDC.js → audit-membership-runtime-BpoX61hv.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-VsWwcNLD.js → channel-activity-1LCR07HU.js} +3 -3
- package/dist/plugin-sdk/{channel-web-B5wxTr-8.js → channel-web-QSsZFIjA.js} +18 -18
- package/dist/plugin-sdk/{chrome-pOAzXzzJ.js → chrome-CbDAFNHQ.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-pKaQ4EJQ.js → commands-registry-D8gIWgM5.js} +4 -4
- package/dist/plugin-sdk/{common-BlJfaliy.js → common-tbQtS1zp.js} +2 -2
- package/dist/plugin-sdk/{config-CURxPU7B.js → config-xkSrCec1.js} +7 -7
- package/dist/plugin-sdk/{deliver-BpfQj4BK.js → deliver-D_Ofr_vN.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-DkyFlw6M.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Bpqp608e.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CEnAbBMn.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DLQqphLL.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BdLrhl4O.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-WQqnuFdj.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BljFnkyd.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bi3FO6Il.js → diagnostic-GjXXC_Pm.js} +2 -2
- package/dist/{errors-C1YF712P.js → plugin-sdk/errors-Cn3JyiMn.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-d5MU-Fi7.js → fetch-guard-ClYTU8LW.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-D57cyrSh.js → fs-safe-Bs9BHEmp.js} +3 -3
- package/dist/plugin-sdk/{image-DWnmWvGr.js → image-_uAwPFe2.js} +6 -6
- package/dist/plugin-sdk/{image-ops-BPP3M0yA.js → image-ops-CsS12Rhg.js} +2 -2
- package/dist/plugin-sdk/image-runtime-0p3JEsb2.js +25 -0
- package/dist/plugin-sdk/{ir-A16Z9dUw.js → ir-DvWncgWp.js} +7 -7
- package/dist/plugin-sdk/{local-roots-BQJNDffC.js → local-roots-Bh7FKHd2.js} +4 -4
- package/dist/plugin-sdk/{logger-Bl138Nx7.js → logger-Dj4IX2UB.js} +2 -2
- package/dist/plugin-sdk/{login-DXLuzgCO.js → login-CYqSEzPN.js} +4 -4
- package/dist/plugin-sdk/{login-qr-DdTcNEXK.js → login-qr-CXXXR_1G.js} +5 -5
- package/dist/plugin-sdk/{manager-ClrE1ahD.js → manager-Dj-hy8oN.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CzGyKWqZ.js +15 -0
- package/dist/plugin-sdk/{outbound-wmFCJQyk.js → outbound-IhJ6xLv1.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-C1GuoigP.js → outbound-attachment-Aa86Zp9X.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-Bsi-4XND.js → path-alias-guards-CtnE1WrY.js} +1 -1
- package/dist/plugin-sdk/{paths-Cb2hB2o0.js → paths-Mew07RGP.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-VYetsWcU.js → pi-embedded-helpers-B_iabXhh.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Bs1t1vHG.js → pi-model-discovery-avPx6Ptq.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-SwUqnyFp.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-133Rh_QB.js → pi-tools.before-tool-call.runtime-dixwOhKo.js} +4 -4
- package/dist/plugin-sdk/{plugins-A3lJ2lkT.js → plugins-WDZLdw8Z.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-DnjPLipe.js → proxy-env-DKQK-fn1.js} +1 -1
- package/dist/{proxy-fetch-CVSmQMZt.js → plugin-sdk/proxy-fetch-rtc8GmoB.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BhB6bXtS.js → pw-ai-eYJyyMZX.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-CmGPY3vR.js → qmd-manager-mWoTdSFY.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-oxEhEDk_.js → query-expansion-4V3Vjs8V.js} +4 -4
- package/dist/plugin-sdk/{redact-C3rEm8A0.js → redact-CBwV828t.js} +1 -1
- package/dist/plugin-sdk/{reply-D3osmjmY.js → reply-RK8_OxAW.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-K2KiC0bi.js → resolve-outbound-target-Dk3UdF5C.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-FfGqq3TC.js → run-with-concurrency-KlQQobSI.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxBLO_MD.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dv_fcg58.js +19 -0
- package/dist/plugin-sdk/{send-C5J_PXzR.js → send-BTWIW3-9.js} +8 -8
- package/dist/plugin-sdk/{send-70p3gkTA.js → send-CG8TGQTM.js} +7 -7
- package/dist/plugin-sdk/{send-DdNdK-kV.js → send-CSJIozmo.js} +5 -5
- package/dist/plugin-sdk/{send-DjqI2JpQ.js → send-D50Hdj7y.js} +13 -13
- package/dist/plugin-sdk/{send-CqaHDOLs.js → send-wEJ-5g9f.js} +6 -6
- package/dist/plugin-sdk/{session-BBm3qP5l.js → session-CDTFGpPr.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-B_tuCFSd.js → skill-commands-X5RX1jW3.js} +4 -4
- package/dist/plugin-sdk/{skills-BG1gHeJ_.js → skills-v1KdkGto.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-MtqQ0dUA.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-vedDymM6.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BraY0iT6.js +16 -0
- package/dist/plugin-sdk/{store-C3Z3fpIY.js → store-DtdqEbDW.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-DH1Lu5_z.js +52 -0
- package/dist/plugin-sdk/{tables-BfXi9ML_.js → tables-D5d9mqkg.js} +1 -1
- package/dist/plugin-sdk/{thinking-J6jgjmDK.js → thinking-CCdKzGau.js} +7 -7
- package/dist/plugin-sdk/{tokens-DMbd3-Ct.js → tokens-D2fpVQt3.js} +1 -1
- package/dist/plugin-sdk/{tool-images-BtzvC48Z.js → tool-images-B4KNq2sg.js} +2 -2
- package/dist/plugin-sdk/web-DOQLvU76.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-C4kVobIE.js → whatsapp-actions-Bi_hJ-Cq.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-rc2l4VJe.js → plugins-Burzc1_i.js} +10 -10
- package/dist/{proxy-env-C2sbN0UU.js → proxy-env-C05eD8Tt.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-C-fXKPD2.js → proxy-fetch-C_2Ejh5T.js} +1 -1
- package/dist/{pw-ai-CWE0qzH7.js → pw-ai-BbxaV2Cy.js} +15 -15
- package/dist/{qmd-manager-DMSLC2iu.js → qmd-manager-JjGGwn8R.js} +11 -11
- package/dist/{query-expansion-MI1dZ5Nj.js → query-expansion-DkXzaUOH.js} +6 -6
- package/dist/{redact-BXURioma.js → redact-C-aJRv5O.js} +1 -1
- package/dist/{run-with-concurrency-C5E9gJhP.js → run-with-concurrency-CYTs7gPY.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BU92rhCA.js +14 -0
- package/dist/runtime-whatsapp-outbound.runtime-DZy-sAPP.js +23 -0
- package/dist/{send-BlTVCcYd.js → send-ChW15YPB.js} +27 -27
- package/dist/{send-C87tIqIn.js → send-Cj0LCSvd.js} +7 -7
- package/dist/{send-BWySsurX.js → send-DDKqu28r.js} +7 -7
- package/dist/{send-OP60RbsK.js → send-hOoCA9jX.js} +6 -6
- package/dist/{send-Cpja8Q1N.js → send-q-l5fncb.js} +5 -5
- package/dist/{session-DmXsj3JD.js → session-BzKpA5X4.js} +8 -8
- package/dist/{skill-commands-DEsgUSH3.js → skill-commands-CIcvUo1A.js} +9 -9
- package/dist/{skills-OklkZyI1.js → skills-DU6_fNPx.js} +22 -22
- package/dist/slash-commands.runtime-CXJJf0jq.js +17 -0
- package/dist/slash-dispatch.runtime-CnDWfnhw.js +57 -0
- package/dist/slash-skill-commands.runtime-NPMuDGFx.js +21 -0
- package/dist/{store-BNhebBGr.js → store-DcxsUE2f.js} +2 -2
- package/dist/subagent-registry-runtime-R6EArAuY.js +57 -0
- package/dist/{subsystem-W834z9Wa.js → subsystem-CEiApUN8.js} +16 -16
- package/dist/{tables-XtcH-BaF.js → tables-DTb5mzup.js} +1 -1
- package/dist/{target-errors-CNzteBWz.js → target-errors-jNfnUab4.js} +2 -2
- package/dist/{thinking-X8yYhVf1.js → thinking-BJkp7vCP.js} +6 -6
- package/dist/{tokens-DxcVnNVJ.js → tokens-tz04P2cO.js} +1 -1
- package/dist/{tool-images-B-4ixjYn.js → tool-images-DRyUUf-X.js} +2 -2
- package/dist/{utils-D2oM4XHm.js → utils-BFS4zK3g.js} +7 -7
- package/dist/{web-B8rFiLYw.js → web-fbVaDaVW.js} +56 -56
- package/dist/{whatsapp-actions-BPIXiPAR.js → whatsapp-actions-CMHMrQzp.js} +22 -22
- package/dist/{workspace-ZgWjBCAm.js → workspace-D6GL2anS.js} +21 -21
- package/extensions/blockchain/package.json +1 -3
- package/package.json +1 -1
- package/dist/deliver-runtime-BvTbrDXE.js +0 -37
- package/dist/deps-send-discord.runtime-1mqY0Pn3.js +0 -27
- package/dist/deps-send-imessage.runtime-NAKUx6Vy.js +0 -26
- package/dist/deps-send-signal.runtime-CHqnnRXO.js +0 -25
- package/dist/deps-send-slack.runtime-CbGlCNTX.js +0 -23
- package/dist/deps-send-telegram.runtime-CgApeKta.js +0 -28
- package/dist/deps-send-whatsapp.runtime-CAPjqcnc.js +0 -61
- package/dist/image-runtime-Cp3I725X.js +0 -30
- package/dist/manager-runtime-DacMHR37.js +0 -19
- package/dist/pi-model-discovery-runtime-C8SNNnEN.js +0 -12
- package/dist/plugin-sdk/deliver-runtime-CoTMJYYS.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-4lI0eS6q.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-i11JqPLo.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BHanWbgq.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-DIHbNRq4.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-F-_XP5zF.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-LYh1VbZJ.js +0 -57
- package/dist/plugin-sdk/image-runtime-dC0tUp3V.js +0 -25
- package/dist/plugin-sdk/manager-runtime-Ba5Qbwrz.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-CdT00Yy6.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BtI3_XNc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-1ZWHTOIM.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-CNOgz4_9.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DB8Pxn4H.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-NOFmKWtQ.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-BSpW6Un2.js +0 -52
- package/dist/plugin-sdk/web-BU7hQoaC.js +0 -56
- package/dist/runtime-whatsapp-login.runtime-BhVxslsH.js +0 -14
- package/dist/runtime-whatsapp-outbound.runtime-CFivqxoq.js +0 -23
- package/dist/slash-commands.runtime-gtQnheWz.js +0 -17
- package/dist/slash-dispatch.runtime-w1y_0I6t.js +0 -57
- package/dist/slash-skill-commands.runtime-CA_oN4df.js +0 -21
- package/dist/subagent-registry-runtime-HYpWtFUu.js +0 -57
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
2
|
-
import { t as CONFIG_DIR } from "./utils-
|
|
3
|
-
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-
|
|
4
|
-
import { Ct as normalizeIpAddress, St as isPrivateOrLoopbackIpAddress, X as loadConfig, xt as isLoopbackIpAddress } from "./model-selection-
|
|
5
|
-
import { a as isErrno } from "./errors-
|
|
6
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-CEiApUN8.js";
|
|
2
|
+
import { t as CONFIG_DIR } from "./utils-BFS4zK3g.js";
|
|
3
|
+
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-D6GL2anS.js";
|
|
4
|
+
import { Ct as normalizeIpAddress, St as isPrivateOrLoopbackIpAddress, X as loadConfig, xt as isLoopbackIpAddress } from "./model-selection-BiqOlgFe.js";
|
|
5
|
+
import { a as isErrno } from "./errors-BwBpGOBV.js";
|
|
6
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-YxZ8RAEw.js";
|
|
7
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-C05eD8Tt.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1595
1595
|
]);
|
|
1596
1596
|
function exists$1(filePath) {
|
|
1597
1597
|
try {
|
|
1598
|
-
return
|
|
1598
|
+
return fs$1.existsSync(filePath);
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return false;
|
|
1601
1601
|
}
|
|
@@ -1738,7 +1738,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function readDesktopExecLine(desktopPath) {
|
|
1740
1740
|
try {
|
|
1741
|
-
const lines =
|
|
1741
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1742
1742
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1743
1743
|
} catch {}
|
|
1744
1744
|
return null;
|
|
@@ -1996,7 +1996,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1996
1996
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1997
1997
|
function resolveLsofCommandSync() {
|
|
1998
1998
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1999
|
-
|
|
1999
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
2000
2000
|
return candidate;
|
|
2001
2001
|
} catch {}
|
|
2002
2002
|
return "lsof";
|
|
@@ -2041,8 +2041,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function safeReadJson(filePath) {
|
|
2043
2043
|
try {
|
|
2044
|
-
if (!
|
|
2045
|
-
const raw =
|
|
2044
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
2045
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
2046
2046
|
const parsed = JSON.parse(raw);
|
|
2047
2047
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2048
2048
|
return parsed;
|
|
@@ -2051,8 +2051,8 @@ function safeReadJson(filePath) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function safeWriteJson(filePath, data) {
|
|
2054
|
-
|
|
2055
|
-
|
|
2054
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2055
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2056
2056
|
}
|
|
2057
2057
|
function setDeep(obj, keys, value) {
|
|
2058
2058
|
let node = obj;
|
|
@@ -2179,7 +2179,7 @@ function decorateOpenClawProfile(userDataDir, opts) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
safeWriteJson(preferencesPath, prefs);
|
|
2181
2181
|
try {
|
|
2182
|
-
|
|
2182
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2183
2183
|
} catch {}
|
|
2184
2184
|
}
|
|
2185
2185
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2195,7 +2195,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2195
2195
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2196
2196
|
function exists(filePath) {
|
|
2197
2197
|
try {
|
|
2198
|
-
return
|
|
2198
|
+
return fs$1.existsSync(filePath);
|
|
2199
2199
|
} catch {
|
|
2200
2200
|
return false;
|
|
2201
2201
|
}
|
|
@@ -2293,7 +2293,7 @@ async function launchOpenClawChrome(resolved, profile) {
|
|
|
2293
2293
|
const exe = resolveBrowserExecutable(resolved);
|
|
2294
2294
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2295
2295
|
const userDataDir = resolveOpenClawUserDataDir(profile.name);
|
|
2296
|
-
|
|
2296
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
2297
2297
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_OPENCLAW_BROWSER_COLOR).toUpperCase());
|
|
2298
2298
|
const spawnOnce = () => {
|
|
2299
2299
|
const args = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as isPlainObject, o as escapeRegExp } from "./utils-
|
|
2
|
-
import { br as DEFAULT_PROVIDER, qt as getActivePluginRegistry, u as resolveConfiguredModelRef, yr as DEFAULT_MODEL } from "./model-selection-
|
|
3
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
1
|
+
import { C as isPlainObject, o as escapeRegExp } from "./utils-BFS4zK3g.js";
|
|
2
|
+
import { br as DEFAULT_PROVIDER, qt as getActivePluginRegistry, u as resolveConfiguredModelRef, yr as DEFAULT_MODEL } from "./model-selection-BiqOlgFe.js";
|
|
3
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-BJkp7vCP.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-Burzc1_i.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
2
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-CEiApUN8.js";
|
|
3
3
|
import { g as normalizeOptionalAccountId, h as normalizeAccountId } from "./session-key-DgdmD4k7.js";
|
|
4
|
-
import { Yt as getActivePluginRegistryVersion, qt as getActivePluginRegistry } from "./model-selection-
|
|
5
|
-
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-
|
|
6
|
-
import { d as getChannelDock } from "./thinking-
|
|
7
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
4
|
+
import { Yt as getActivePluginRegistryVersion, qt as getActivePluginRegistry } from "./model-selection-BiqOlgFe.js";
|
|
5
|
+
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-TrN6kryB.js";
|
|
6
|
+
import { d as getChannelDock } from "./thinking-BJkp7vCP.js";
|
|
7
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-tz04P2cO.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Burzc1_i.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-xpZo1jCG.js";
|
|
10
10
|
import { r as parseTelegramTarget } from "./targets-yNvvUZit.js";
|
|
11
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
12
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
13
|
-
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-
|
|
14
|
-
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
11
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-B_qa7ikD.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DozurFmr.js";
|
|
13
|
+
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-B7IR3m4T.js";
|
|
14
|
+
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-q-l5fncb.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import fs from "node:fs";
|
|
17
17
|
|
|
18
18
|
//#region src/plugins/hooks.ts
|
|
19
19
|
/**
|
|
@@ -1081,11 +1081,11 @@ function resolveFailedDir(stateDir) {
|
|
|
1081
1081
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
1082
1082
|
async function ensureQueueDir(stateDir) {
|
|
1083
1083
|
const queueDir = resolveQueueDir(stateDir);
|
|
1084
|
-
await
|
|
1084
|
+
await fs.promises.mkdir(queueDir, {
|
|
1085
1085
|
recursive: true,
|
|
1086
1086
|
mode: 448
|
|
1087
1087
|
});
|
|
1088
|
-
await
|
|
1088
|
+
await fs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
1089
1089
|
recursive: true,
|
|
1090
1090
|
mode: 448
|
|
1091
1091
|
});
|
|
@@ -1112,18 +1112,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
1112
1112
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
1113
1113
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1114
1114
|
const json = JSON.stringify(entry, null, 2);
|
|
1115
|
-
await
|
|
1115
|
+
await fs.promises.writeFile(tmp, json, {
|
|
1116
1116
|
encoding: "utf-8",
|
|
1117
1117
|
mode: 384
|
|
1118
1118
|
});
|
|
1119
|
-
await
|
|
1119
|
+
await fs.promises.rename(tmp, filePath);
|
|
1120
1120
|
return id;
|
|
1121
1121
|
}
|
|
1122
1122
|
/** Remove a successfully delivered entry from the queue. */
|
|
1123
1123
|
async function ackDelivery(id, stateDir) {
|
|
1124
1124
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1125
1125
|
try {
|
|
1126
|
-
await
|
|
1126
|
+
await fs.promises.unlink(filePath);
|
|
1127
1127
|
} catch (err) {
|
|
1128
1128
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
1129
1129
|
}
|
|
@@ -1131,17 +1131,17 @@ async function ackDelivery(id, stateDir) {
|
|
|
1131
1131
|
/** Update a queue entry after a failed delivery attempt. */
|
|
1132
1132
|
async function failDelivery(id, error, stateDir) {
|
|
1133
1133
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1134
|
-
const raw = await
|
|
1134
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
1135
1135
|
const entry = JSON.parse(raw);
|
|
1136
1136
|
entry.retryCount += 1;
|
|
1137
1137
|
entry.lastAttemptAt = Date.now();
|
|
1138
1138
|
entry.lastError = error;
|
|
1139
1139
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1140
|
-
await
|
|
1140
|
+
await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
1141
1141
|
encoding: "utf-8",
|
|
1142
1142
|
mode: 384
|
|
1143
1143
|
});
|
|
1144
|
-
await
|
|
1144
|
+
await fs.promises.rename(tmp, filePath);
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
//#endregion
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./tokens-tz04P2cO.js";
|
|
12
|
+
import "./plugins-Burzc1_i.js";
|
|
13
|
+
import "./accounts-CKpnUMZd.js";
|
|
14
|
+
import { t as deliverOutboundPayloads } from "./deliver-32OxViWG.js";
|
|
15
|
+
import "./accounts-7nNRr4R3.js";
|
|
16
|
+
import "./image-ops-gm8VfGiD.js";
|
|
17
|
+
import "./pi-embedded-helpers-B_qa7ikD.js";
|
|
18
|
+
import "./chrome-CtEQV_6p.js";
|
|
19
|
+
import "./frontmatter-Cy6ESb-O.js";
|
|
20
|
+
import "./skills-DU6_fNPx.js";
|
|
21
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
22
|
+
import "./redact-C-aJRv5O.js";
|
|
23
|
+
import "./errors-BwBpGOBV.js";
|
|
24
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
25
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
26
|
+
import "./store-DcxsUE2f.js";
|
|
27
|
+
import "./accounts-BIr_ieyH.js";
|
|
28
|
+
import "./paths-BWg7M5Yy.js";
|
|
29
|
+
import "./tool-images-DRyUUf-X.js";
|
|
30
|
+
import "./fetch-DozurFmr.js";
|
|
31
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
32
|
+
import "./ir-B7IR3m4T.js";
|
|
33
|
+
import "./fetch-CTN5ATFT.js";
|
|
34
|
+
import "./send-q-l5fncb.js";
|
|
35
|
+
import "./outbound-attachment-CcY_Rg0-.js";
|
|
36
|
+
|
|
37
|
+
export { deliverOutboundPayloads };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./plugins-Burzc1_i.js";
|
|
11
|
+
import "./accounts-CKpnUMZd.js";
|
|
12
|
+
import { h as sendMessageDiscord } from "./send-DDKqu28r.js";
|
|
13
|
+
import "./image-ops-gm8VfGiD.js";
|
|
14
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
15
|
+
import "./redact-C-aJRv5O.js";
|
|
16
|
+
import "./errors-BwBpGOBV.js";
|
|
17
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
18
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
19
|
+
import "./fetch-DozurFmr.js";
|
|
20
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
21
|
+
import "./ir-B7IR3m4T.js";
|
|
22
|
+
import "./render-BZdJrUxT.js";
|
|
23
|
+
import "./fetch-CTN5ATFT.js";
|
|
24
|
+
import "./channel-activity-32lmgAZH.js";
|
|
25
|
+
import "./tables-DTb5mzup.js";
|
|
26
|
+
|
|
27
|
+
export { sendMessageDiscord };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./plugins-Burzc1_i.js";
|
|
11
|
+
import "./accounts-CKpnUMZd.js";
|
|
12
|
+
import "./image-ops-gm8VfGiD.js";
|
|
13
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
14
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
15
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
16
|
+
import "./store-DcxsUE2f.js";
|
|
17
|
+
import "./accounts-BIr_ieyH.js";
|
|
18
|
+
import "./fetch-DozurFmr.js";
|
|
19
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
20
|
+
import "./ir-B7IR3m4T.js";
|
|
21
|
+
import "./render-BZdJrUxT.js";
|
|
22
|
+
import "./tables-DTb5mzup.js";
|
|
23
|
+
import "./outbound-attachment-CcY_Rg0-.js";
|
|
24
|
+
import { t as sendMessageIMessage } from "./send-Cj0LCSvd.js";
|
|
25
|
+
|
|
26
|
+
export { sendMessageIMessage };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./plugins-Burzc1_i.js";
|
|
11
|
+
import "./accounts-CKpnUMZd.js";
|
|
12
|
+
import "./accounts-7nNRr4R3.js";
|
|
13
|
+
import "./image-ops-gm8VfGiD.js";
|
|
14
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
15
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
16
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
17
|
+
import "./store-DcxsUE2f.js";
|
|
18
|
+
import "./fetch-DozurFmr.js";
|
|
19
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
20
|
+
import "./ir-B7IR3m4T.js";
|
|
21
|
+
import "./fetch-CTN5ATFT.js";
|
|
22
|
+
import { t as sendMessageSignal } from "./send-q-l5fncb.js";
|
|
23
|
+
import "./outbound-attachment-CcY_Rg0-.js";
|
|
24
|
+
|
|
25
|
+
export { sendMessageSignal };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./tokens-tz04P2cO.js";
|
|
11
|
+
import "./plugins-Burzc1_i.js";
|
|
12
|
+
import "./accounts-CKpnUMZd.js";
|
|
13
|
+
import { t as sendMessageSlack } from "./send-hOoCA9jX.js";
|
|
14
|
+
import "./image-ops-gm8VfGiD.js";
|
|
15
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
16
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
17
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
18
|
+
import "./fetch-DozurFmr.js";
|
|
19
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
20
|
+
import "./ir-B7IR3m4T.js";
|
|
21
|
+
import "./render-BZdJrUxT.js";
|
|
22
|
+
|
|
23
|
+
export { sendMessageSlack };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./plugins-Burzc1_i.js";
|
|
11
|
+
import "./accounts-CKpnUMZd.js";
|
|
12
|
+
import "./image-ops-gm8VfGiD.js";
|
|
13
|
+
import { o as sendMessageTelegram } from "./send-ChW15YPB.js";
|
|
14
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
15
|
+
import "./redact-C-aJRv5O.js";
|
|
16
|
+
import "./errors-BwBpGOBV.js";
|
|
17
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
18
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
19
|
+
import "./fetch-DozurFmr.js";
|
|
20
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
21
|
+
import "./proxy-fetch-C_2Ejh5T.js";
|
|
22
|
+
import "./ir-B7IR3m4T.js";
|
|
23
|
+
import "./render-BZdJrUxT.js";
|
|
24
|
+
import "./fetch-CTN5ATFT.js";
|
|
25
|
+
import "./channel-activity-32lmgAZH.js";
|
|
26
|
+
import "./proxy-BMKyKeTK.js";
|
|
27
|
+
|
|
28
|
+
export { sendMessageTelegram };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./tokens-tz04P2cO.js";
|
|
12
|
+
import "./pi-embedded-DkdNpxSe.js";
|
|
13
|
+
import "./plugins-Burzc1_i.js";
|
|
14
|
+
import "./accounts-CKpnUMZd.js";
|
|
15
|
+
import "./send-hOoCA9jX.js";
|
|
16
|
+
import "./send-DDKqu28r.js";
|
|
17
|
+
import "./deliver-32OxViWG.js";
|
|
18
|
+
import "./diagnostic-UO82MQjo.js";
|
|
19
|
+
import "./accounts-7nNRr4R3.js";
|
|
20
|
+
import "./image-ops-gm8VfGiD.js";
|
|
21
|
+
import "./send-ChW15YPB.js";
|
|
22
|
+
import "./pi-model-discovery-FwBV8Q5J.js";
|
|
23
|
+
import "./pi-embedded-helpers-B_qa7ikD.js";
|
|
24
|
+
import "./chrome-CtEQV_6p.js";
|
|
25
|
+
import "./frontmatter-Cy6ESb-O.js";
|
|
26
|
+
import "./skills-DU6_fNPx.js";
|
|
27
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
28
|
+
import "./redact-C-aJRv5O.js";
|
|
29
|
+
import "./errors-BwBpGOBV.js";
|
|
30
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
31
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
32
|
+
import "./store-DcxsUE2f.js";
|
|
33
|
+
import "./accounts-BIr_ieyH.js";
|
|
34
|
+
import "./paths-BWg7M5Yy.js";
|
|
35
|
+
import "./tool-images-DRyUUf-X.js";
|
|
36
|
+
import "./image-B2LPzwKF.js";
|
|
37
|
+
import "./audio-transcription-runner-CgLX4N3r.js";
|
|
38
|
+
import "./fetch-DozurFmr.js";
|
|
39
|
+
import "./fetch-guard-XtFb6zM7.js";
|
|
40
|
+
import "./api-key-rotation-CUJC6xSi.js";
|
|
41
|
+
import "./proxy-fetch-C_2Ejh5T.js";
|
|
42
|
+
import "./ir-B7IR3m4T.js";
|
|
43
|
+
import "./render-BZdJrUxT.js";
|
|
44
|
+
import "./target-errors-jNfnUab4.js";
|
|
45
|
+
import "./commands-registry-FnGtnvb0.js";
|
|
46
|
+
import "./skill-commands-CIcvUo1A.js";
|
|
47
|
+
import "./fetch-CTN5ATFT.js";
|
|
48
|
+
import "./channel-activity-32lmgAZH.js";
|
|
49
|
+
import "./tables-DTb5mzup.js";
|
|
50
|
+
import "./send-q-l5fncb.js";
|
|
51
|
+
import "./outbound-attachment-CcY_Rg0-.js";
|
|
52
|
+
import "./send-Cj0LCSvd.js";
|
|
53
|
+
import "./proxy-BMKyKeTK.js";
|
|
54
|
+
import "./manager-BWh3BVp1.js";
|
|
55
|
+
import "./query-expansion-DkXzaUOH.js";
|
|
56
|
+
import { t as sendMessageWhatsApp } from "./outbound-DSVwKSv4.js";
|
|
57
|
+
import "./session-BzKpA5X4.js";
|
|
58
|
+
import "./login-C6CkDgLi.js";
|
|
59
|
+
import "./web-fbVaDaVW.js";
|
|
60
|
+
|
|
61
|
+
export { sendMessageWhatsApp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { X as loadConfig } from "./model-selection-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-CEiApUN8.js";
|
|
2
|
+
import { X as loadConfig } from "./model-selection-BiqOlgFe.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/diagnostic-events.ts
|
|
5
5
|
function getDiagnosticEventsState() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
4
|
-
import { b as detectMime, x as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-CEiApUN8.js";
|
|
4
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-gm8VfGiD.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-XtFb6zM7.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/local-roots.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as logWarn } from "./logger-
|
|
2
|
-
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { i as logWarn } from "./logger-CV2IWsAW.js";
|
|
2
|
+
import { i as createPinnedDispatcher, n as SsrFBlockedError, r as closeDispatcher, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-C05eD8Tt.js";
|
|
3
3
|
import { t as bindAbortRelay } from "./fetch-timeout-CSrVj6X7.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-
|
|
1
|
+
import { c as parseBooleanValue, n as MANIFEST_KEY, t as LEGACY_MANIFEST_KEYS } from "./legacy-names-TrN6kryB.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import json5 from "json5";
|
|
5
5
|
import YAML from "yaml";
|
|
6
6
|
|
|
7
7
|
//#region src/shared/config-eval.ts
|
|
@@ -92,7 +92,7 @@ function hasBinary(bin) {
|
|
|
92
92
|
for (const part of parts) for (const ext of extensions) {
|
|
93
93
|
const candidate = path.join(part, bin + ext);
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
fs.accessSync(candidate, fs.constants.X_OK);
|
|
96
96
|
hasBinaryCache.set(bin, true);
|
|
97
97
|
return true;
|
|
98
98
|
} catch {}
|
|
@@ -258,7 +258,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
258
258
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
259
259
|
if (!raw) return;
|
|
260
260
|
try {
|
|
261
|
-
const parsed =
|
|
261
|
+
const parsed = json5.parse(raw);
|
|
262
262
|
if (!parsed || typeof parsed !== "object") return;
|
|
263
263
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
264
264
|
for (const key of manifestKeys) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as expandHomePrefix } from "./paths-
|
|
2
|
-
import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { l as expandHomePrefix } from "./paths-Cvc9EM8Y.js";
|
|
2
|
+
import { D as isNotFoundPathError, E as hasNodeErrorCode, O as isPathInside, S as sameFileIdentity, k as isSymlinkOpenError } from "./workspace-D6GL2anS.js";
|
|
3
|
+
import { i as logWarn } from "./logger-CV2IWsAW.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-Gzq1eAOo.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
+
import { c as resolveStateDir } from "./paths-Cvc9EM8Y.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/json-file.ts
|
|
7
7
|
function loadJsonFile(pathname) {
|
|
8
8
|
try {
|
|
9
|
-
if (!
|
|
10
|
-
const raw =
|
|
9
|
+
if (!fs.existsSync(pathname)) return;
|
|
10
|
+
const raw = fs.readFileSync(pathname, "utf8");
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
} catch {
|
|
13
13
|
return;
|
|
@@ -15,12 +15,12 @@ function loadJsonFile(pathname) {
|
|
|
15
15
|
}
|
|
16
16
|
function saveJsonFile(pathname, data) {
|
|
17
17
|
const dir = path.dirname(pathname);
|
|
18
|
-
if (!
|
|
18
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, {
|
|
19
19
|
recursive: true,
|
|
20
20
|
mode: 448
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
fs.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
23
|
+
fs.chmodSync(pathname, 384);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { _ as shortenHomeInString, c as isRecord } from "./utils-
|
|
3
|
-
import { Un as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, fr as normalizeSecretInput, j as requireApiKey, k as getApiKeyForModel, rr as resolveOpenClawAgentDir, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-
|
|
4
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
5
|
-
import { n as redactToolDetail } from "./redact-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import { _ as shortenHomeInString, c as isRecord } from "./utils-BFS4zK3g.js";
|
|
3
|
+
import { Un as applyConfigEnvVars, X as loadConfig, _ as normalizeProviders, b as resolveImplicitProviders, fr as normalizeSecretInput, j as requireApiKey, k as getApiKeyForModel, rr as resolveOpenClawAgentDir, v as resolveImplicitBedrockProvider, y as resolveImplicitCopilotProvider } from "./model-selection-BiqOlgFe.js";
|
|
4
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-B_qa7ikD.js";
|
|
5
|
+
import { n as redactToolDetail } from "./redact-C-aJRv5O.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { complete } from "@mariozechner/pi-ai";
|
|
@@ -2254,7 +2254,7 @@ function resolveProviderVisionModelFromConfig(params) {
|
|
|
2254
2254
|
//#region src/media-understanding/providers/image.ts
|
|
2255
2255
|
let piModelDiscoveryRuntimePromise = null;
|
|
2256
2256
|
function loadPiModelDiscoveryRuntime() {
|
|
2257
|
-
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-
|
|
2257
|
+
piModelDiscoveryRuntimePromise ??= import("./pi-model-discovery-runtime-BozG-CtU.js");
|
|
2258
2258
|
return piModelDiscoveryRuntimePromise;
|
|
2259
2259
|
}
|
|
2260
2260
|
async function describeImageWithModel(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as runExec } from "./workspace-
|
|
2
|
-
import { Bt as CHANNEL_IDS, Kt as normalizeChatChannelId, qt as getActivePluginRegistry } from "./model-selection-
|
|
1
|
+
import { _ as runExec } from "./workspace-D6GL2anS.js";
|
|
2
|
+
import { Bt as CHANNEL_IDS, Kt as normalizeChatChannelId, qt as getActivePluginRegistry } from "./model-selection-BiqOlgFe.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./run-with-concurrency-CYTs7gPY.js";
|
|
2
|
+
import "./paths-Cvc9EM8Y.js";
|
|
3
|
+
import "./subsystem-CEiApUN8.js";
|
|
4
|
+
import "./utils-BFS4zK3g.js";
|
|
5
|
+
import "./workspace-D6GL2anS.js";
|
|
6
|
+
import "./logger-CV2IWsAW.js";
|
|
7
|
+
import "./model-selection-BiqOlgFe.js";
|
|
8
|
+
import "./github-copilot-token-D7knylDF.js";
|
|
9
|
+
import "./legacy-names-TrN6kryB.js";
|
|
10
|
+
import "./thinking-BJkp7vCP.js";
|
|
11
|
+
import "./plugins-Burzc1_i.js";
|
|
12
|
+
import "./accounts-CKpnUMZd.js";
|
|
13
|
+
import "./accounts-7nNRr4R3.js";
|
|
14
|
+
import "./image-ops-gm8VfGiD.js";
|
|
15
|
+
import "./pi-embedded-helpers-B_qa7ikD.js";
|
|
16
|
+
import "./chrome-CtEQV_6p.js";
|
|
17
|
+
import "./frontmatter-Cy6ESb-O.js";
|
|
18
|
+
import "./skills-DU6_fNPx.js";
|
|
19
|
+
import "./path-alias-guards-Gzq1eAOo.js";
|
|
20
|
+
import "./redact-C-aJRv5O.js";
|
|
21
|
+
import "./errors-BwBpGOBV.js";
|
|
22
|
+
import "./fs-safe-YxZ8RAEw.js";
|
|
23
|
+
import "./proxy-env-C05eD8Tt.js";
|
|
24
|
+
import "./store-DcxsUE2f.js";
|
|
25
|
+
import "./accounts-BIr_ieyH.js";
|
|
26
|
+
import "./paths-BWg7M5Yy.js";
|
|
27
|
+
import "./tool-images-DRyUUf-X.js";
|
|
28
|
+
import { t as describeImageWithModel } from "./image-B2LPzwKF.js";
|
|
29
|
+
|
|
30
|
+
export { describeImageWithModel };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
1
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-CEiApUN8.js";
|
|
2
2
|
import { h as normalizeAccountId } from "./session-key-DgdmD4k7.js";
|
|
3
|
-
import { h as resolveUserPath } from "./utils-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
5
|
-
import { h as resolveAccountEntry } from "./accounts-
|
|
6
|
-
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-
|
|
3
|
+
import { h as resolveUserPath } from "./utils-BFS4zK3g.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-Burzc1_i.js";
|
|
5
|
+
import { h as resolveAccountEntry } from "./accounts-CKpnUMZd.js";
|
|
6
|
+
import { E as kindFromMime, a as hasAlphaChannel, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, k as maxBytesForKind, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, x as extensionForMime } from "./image-ops-gm8VfGiD.js";
|
|
7
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-YxZ8RAEw.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia } from "./fetch-DozurFmr.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|