@lawpath-tech/openclaw 2026.2.21-27 → 2026.2.21-28
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-DQo5uGA3.js → accounts-C8m4ADkw.js} +14 -14
- package/dist/{accounts-CJEDkyd7.js → accounts-CQT5u65w.js} +1 -1
- package/dist/{accounts-CaJg9v7D.js → accounts-DFrH9IVU.js} +1 -1
- package/dist/{active-listener-Bhmh-BBe.js → active-listener-BKTctYlH.js} +1 -1
- package/dist/{agent-scope-DiO1KimT.js → agent-scope-DSUeV7-g.js} +3 -3
- package/dist/{audio-preflight-PCEdzoV0.js → audio-preflight-CLqoZYgI.js} +29 -29
- package/dist/{audio-preflight-CODznzqu.js → audio-preflight-Da7vejCH.js} +4 -4
- package/dist/{bindings-CEJk9Gww.js → bindings-BKEEBdsb.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-pOw1s-fe.js → channel-activity-BgsTqLau.js} +1 -1
- package/dist/{chrome-DcmLXeT1.js → chrome-Bqbv_ZSj.js} +20 -20
- package/dist/{chrome-lRUqqgSD.js → chrome-CZuniMYN.js} +7 -7
- package/dist/{chunk-BkGjWi6P.js → chunk-fZrBDWYg.js} +1 -1
- package/dist/{command-format-CM0AxuCk.js → command-format-BOHIfoCX.js} +1 -1
- package/dist/{commands-registry-C0QzohKU.js → commands-registry-BzlB3qtZ.js} +4 -4
- package/dist/{config-7ClJ9IDt.js → config-Du_-inxH.js} +12 -12
- package/dist/{deliver-B2d2N8OJ.js → deliver-0ThKlzQo.js} +1 -1
- package/dist/{deliver-RhV3c93M.js → deliver-CKH_FhS0.js} +20 -20
- package/dist/{diagnostic-DTfVTKJM.js → diagnostic-DriDPU6M.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-Dab6NVCF.js → frontmatter-CdkBcBAo.js} +2 -2
- package/dist/{gemini-auth-CnEqRhSo.js → gemini-auth-A2JaRMHH.js} +1 -1
- package/dist/{github-copilot-token-DAycnoAs.js → github-copilot-token-Dgb9dAHW.js} +7 -7
- package/dist/{image--DDZnw-F.js → image-88q3KE-C.js} +1 -1
- package/dist/{image-COCyG_gz.js → image-CxPjVob-.js} +4 -4
- package/dist/{image-ops-D-bh1BTN.js → image-ops-BGmpOcey.js} +1 -1
- package/dist/{ir-j1Xb0PNv.js → ir-DJPm0a4k.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-Dx32AY60.js → local-roots-JqlMsAYY.js} +5 -5
- package/dist/{login-CLQskGt7.js → login-DXtAIVXy.js} +7 -7
- package/dist/{login-qr-CxZVehrh.js → login-qr-D0A3WDBN.js} +12 -12
- package/dist/{manager-C6KdjXEH.js → manager-D7SRrHxT.js} +13 -13
- package/dist/{manifest-registry-D31TP66o.js → manifest-registry-Dhk4A5vb.js} +19 -19
- package/dist/{markdown-tables-BOmw5zkp.js → markdown-tables-DpVJE0eA.js} +1 -1
- package/dist/{plugin-sdk/message-channel-DY9wVB2A.js → message-channel-CHYSjmbr.js} +1 -1
- package/dist/{model-auth-C-Vzzybi.js → model-auth-vtNH8C4P.js} +9 -9
- package/dist/{outbound-Bk0PGZ1q.js → outbound-BWgFha97.js} +7 -7
- package/dist/{outbound-attachment-CHLSsIj_.js → outbound-attachment-B8WHzsCX.js} +2 -2
- package/dist/{paths-Cv2Q0cX2.js → paths-BEAbheM8.js} +1 -1
- package/dist/{paths-CkkDESQ2.js → paths-CyR9Pa1R.js} +5 -5
- package/dist/{pi-auth-json-DzcwV2uo.js → pi-auth-json-BiwfFswL.js} +8 -8
- package/dist/{pi-embedded-13CLN75T.js → pi-embedded-Dz24QZz9.js} +162 -162
- package/dist/{pi-embedded-C_B8_quB.js → pi-embedded-ZvazjIyF.js} +16 -16
- package/dist/{pi-embedded-helpers-Cd0S0WfR.js → pi-embedded-helpers-B0Kht0I2.js} +4 -4
- package/dist/{pi-embedded-helpers-HpusHn6J.js → pi-embedded-helpers-CSE0v99A.js} +52 -52
- package/dist/plugin-sdk/{accounts-fnLsjAOi.js → accounts-Ciwy7Yxd.js} +3 -3
- package/dist/plugin-sdk/{accounts-BcQo4OUu.js → accounts-DUBJHEgi.js} +1 -1
- package/dist/plugin-sdk/{accounts-DEsAwvaZ.js → accounts-wSu5JyDM.js} +1 -1
- package/dist/plugin-sdk/{active-listener-CeaKSm29.js → active-listener-Bnau4oiu.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-D5PlT0Z0.js → agent-scope-cT7IxdHY.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-B3O1qn0m.js → api-key-rotation-ElOMCP9r.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-CYSy3uuZ.js → audio-preflight-DtozH3sJ.js} +24 -24
- package/dist/plugin-sdk/{bindings-C0XEX0yK.js → bindings-CKqdifyU.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WgE8Z4Bb.js → channel-activity-CCnr-9bS.js} +1 -1
- package/dist/plugin-sdk/{channel-web-Nw-bUgtV.js → channel-web-BHNS_E7F.js} +22 -22
- package/dist/plugin-sdk/{chrome-C1xnOQsc.js → chrome-BO7SUTgY.js} +3 -3
- package/dist/plugin-sdk/{chunk-CQk9vawA.js → chunk-DyzO7IVo.js} +1 -1
- package/dist/plugin-sdk/{command-format-DHXa0Clc.js → command-format-DcBXOX9Z.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-yTZdwtLj.js → commands-registry-BsSKPwgj.js} +4 -4
- package/dist/plugin-sdk/{config--kW4R0el.js → config-9OZuRn0C.js} +9 -9
- package/dist/plugin-sdk/{deliver-C2gjA_UH.js → deliver-BO_wt0wd.js} +10 -10
- package/dist/plugin-sdk/{diagnostic-Up1aMyxZ.js → diagnostic-DKyVS3IK.js} +1 -1
- package/dist/plugin-sdk/{image-Bcc99tVA.js → image-C31B_R8P.js} +4 -4
- package/dist/plugin-sdk/{image-ops-C6RLbtSJ.js → image-ops-B8aJIly2.js} +1 -1
- package/dist/plugin-sdk/index.js +53 -53
- package/dist/plugin-sdk/{ir-Cwi1KVG5.js → ir-CD5VqKGg.js} +4 -4
- package/dist/plugin-sdk/{local-roots-6BSl8AoA.js → local-roots-D4PCK2jj.js} +3 -3
- package/dist/plugin-sdk/{login-Cau5eVVj.js → login-CW17h3xU.js} +7 -7
- package/dist/plugin-sdk/{login-qr-CLWtfA9m.js → login-qr-CMdk06CS.js} +9 -9
- package/dist/plugin-sdk/{manager-C3Eb_8Hz.js → manager-CZPPxI6R.js} +8 -8
- package/dist/plugin-sdk/{manifest-registry-DvEm2HHf.js → manifest-registry-sgHvjA6E.js} +1 -1
- package/dist/plugin-sdk/{markdown-tables-cJqvQe9j.js → markdown-tables-Bo-r4msS.js} +1 -1
- package/dist/{message-channel-BckS8bQ9.js → plugin-sdk/message-channel-DmB4bGFh.js} +1 -1
- package/dist/plugin-sdk/{model-selection-BjVTBZiY.js → model-selection-CXooYLb2.js} +4 -4
- package/dist/plugin-sdk/{outbound-attachment-CsmRyZPI.js → outbound-attachment-CCxMtk8m.js} +2 -2
- package/dist/plugin-sdk/{outbound-Co1QSkdS.js → outbound-dAcQHyyr.js} +7 -7
- package/dist/plugin-sdk/{pi-auth-json-DfEOhoTK.js → pi-auth-json-C-euHc3x.js} +5 -5
- package/dist/plugin-sdk/{pi-embedded-helpers-D3EACnFn.js → pi-embedded-helpers-DU0nLxRU.js} +17 -17
- package/dist/plugin-sdk/{plugins-Dyz98ZJX.js → plugins-DIzw7Ncy.js} +4 -4
- package/dist/plugin-sdk/{pw-ai-smoXiGqZ.js → pw-ai-CYmDAwXD.js} +8 -8
- package/dist/plugin-sdk/{qmd-manager-CUhJ7WG2.js → qmd-manager-DQiT4WTr.js} +4 -4
- package/dist/plugin-sdk/{registry-DL-33c9X.js → registry-O1yza0Vh.js} +2 -2
- package/dist/{replies-DuQ9MtQM.js → plugin-sdk/replies-Bnu7HnvW.js} +3 -3
- package/dist/plugin-sdk/{reply-Cb54ddUA.js → reply-DEepmBkT.js} +78 -78
- package/dist/plugin-sdk/{reply-prefix-5vdbga0R.js → reply-prefix-BF0omhZE.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-CP7QDN14.js → resolve-outbound-target-DzZIT1V1.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-eopifBrM.js → resolve-route-B63ztF-V.js} +3 -3
- package/dist/plugin-sdk/{retry-5P3d0rYw.js → retry-JFNwfUew.js} +1 -1
- package/dist/plugin-sdk/{runner-DqwPn56n.js → runner-DztRiWhh.js} +9 -9
- package/dist/plugin-sdk/{send-DnFB-v5n.js → send-CK3DCPv-.js} +6 -6
- package/dist/plugin-sdk/{send-D_X6p9H0.js → send-D-spKwjf.js} +10 -10
- package/dist/plugin-sdk/{send-PPtjKj-0.js → send-D1C2sJG1.js} +7 -7
- package/dist/plugin-sdk/{send-C2NQjVF9.js → send-DEV4iiFj.js} +10 -10
- package/dist/plugin-sdk/{send-_uj_NuFI.js → send-DrYvH25B.js} +6 -6
- package/dist/plugin-sdk/{session-CZngPTYk.js → session-DRJl5tKC.js} +4 -4
- package/dist/plugin-sdk/{skill-commands-Cr54qPdy.js → skill-commands-Dv5AeOZQ.js} +5 -5
- package/dist/plugin-sdk/{skills-Dcu4o-9l.js → skills-5hEda4_Y.js} +7 -7
- package/dist/plugin-sdk/{sqlite-ulpcowfN.js → sqlite-DUu0dwic.js} +1 -1
- package/dist/plugin-sdk/{store-EUYCRBvs.js → store-DoRXD0QB.js} +2 -2
- package/dist/plugin-sdk/{subsystem-C9WnrKN8.js → subsystem-C4Rh0kdL.js} +1 -1
- package/dist/plugin-sdk/{tables-CMdQECje.js → tables-C_81Ve2l.js} +1 -1
- package/dist/{target-errors-DD2466Y6.js → plugin-sdk/target-errors-C638yp2-.js} +2 -2
- package/dist/plugin-sdk/{thinking-C7zYA2s9.js → thinking-DexKPSsI.js} +5 -5
- package/dist/{tokens-GCiqN5mi.js → plugin-sdk/tokens-K9ITCatc.js} +1 -1
- package/dist/{tool-images-D0sBSASn.js → plugin-sdk/tool-images-BvjD_HnR.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-D0ADW0h2.js → tool-loop-detection-BBRtoox8.js} +2 -2
- package/dist/plugin-sdk/web-DBo-6RyH.js +65 -0
- package/dist/plugin-sdk/{whatsapp-actions-DC4RRNqv.js → whatsapp-actions-D8i2vCxS.js} +21 -21
- package/dist/{plugins-Bf_qBfZ7.js → plugins-DIrNa311.js} +9 -9
- package/dist/{pw-ai-B4NkhpRH.js → pw-ai-D-_aGzdQ.js} +11 -11
- package/dist/{pw-ai-C-kqYO4L.js → pw-ai-S3cpSYOy.js} +1 -1
- package/dist/{qmd-manager-DVrv2Huu.js → qmd-manager-DePh-PT0.js} +7 -7
- package/dist/{registry-wimgwqAA.js → registry-DpeZG5fo.js} +18 -18
- package/dist/{plugin-sdk/replies-Bkaifx0j.js → replies-CSVWkVda.js} +3 -3
- package/dist/{reply-prefix-B_1VtLm5.js → reply-prefix-DZrS3Kf7.js} +1 -1
- package/dist/{resolve-route-CSE9DZsB.js → resolve-route-1ar2IrQt.js} +4 -4
- package/dist/{retry-DwLEH9x4.js → retry-Bdu4_ZcT.js} +1 -1
- package/dist/{runner-BjLlUYe1.js → runner-D1eXJZ8T.js} +9 -9
- package/dist/{runner-Dq-qfrq7.js → runner-a43IsYad.js} +1 -1
- package/dist/{send-DrfA4RxA.js → send-BEFzSOoD.js} +10 -10
- package/dist/{send-CEP4RX_l.js → send-BeWYOs1x.js} +7 -7
- package/dist/{send-CMeyW_Bu.js → send-Byt_wJDK.js} +6 -6
- package/dist/{send-CdIaqNP6.js → send-CWtaJF1G.js} +18 -18
- package/dist/{send-BCt1G0xY.js → send-DPVf5tQ4.js} +6 -6
- package/dist/{session-CQ9JJgSo.js → session-Bnp7PC7f.js} +8 -8
- package/dist/{skill-commands-CwFNOYqC.js → skill-commands-CqyVDpti.js} +9 -9
- package/dist/{skills-C8xf0p1B.js → skills-DSZuhFx9.js} +21 -21
- package/dist/{sqlite-B6SD9PTM.js → sqlite-C3XxSzBN.js} +4 -4
- package/dist/{store-VFVAfYgh.js → store-BrNiRjgB.js} +2 -2
- package/dist/{subsystem-BEdh_1O5.js → subsystem-BF9jT_Nw.js} +1 -1
- package/dist/{tables-QNO5uMcm.js → tables-C3clT_iA.js} +1 -1
- package/dist/{plugin-sdk/target-errors-CrR2lAF7.js → target-errors-ChHV8dPI.js} +2 -2
- package/dist/{thinking-BZFf1juV.js → thinking-Dg8vKjw_.js} +5 -5
- package/dist/{plugin-sdk/tokens-2475WU2Z.js → tokens-B-c56SkM.js} +1 -1
- package/dist/{plugin-sdk/tool-images-DCvC8yL7.js → tool-images-C1rdDr34.js} +2 -2
- package/dist/{tool-loop-detection-BPAeTbUj.js → tool-loop-detection-Bu3OGskw.js} +3 -3
- package/dist/{web-DiYh3u92.js → web-CVSol55V.js} +6 -6
- package/dist/{web-5rulK8WV.js → web-Y49Dumye.js} +57 -57
- package/dist/{whatsapp-actions-kX73ghOz.js → whatsapp-actions-DFZYzkBp.js} +23 -23
- package/dist/{workspace-CH9k4Qgz.js → workspace-DYx5Dxtw.js} +6 -6
- package/extensions/voice-call/src/providers/realtime-session.ts +1 -1
- package/package.json +1 -1
- package/dist/plugin-sdk/web-BVkjyY4A.js +0 -65
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./tokens-
|
|
7
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
8
|
-
import "./plugins-
|
|
9
|
-
import "./accounts-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
|
+
import "./registry-DpeZG5fo.js";
|
|
3
|
+
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-DSUeV7-g.js";
|
|
4
|
+
import "./subsystem-BF9jT_Nw.js";
|
|
5
|
+
import "./workspace-DYx5Dxtw.js";
|
|
6
|
+
import "./tokens-B-c56SkM.js";
|
|
7
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-Dz24QZz9.js";
|
|
8
|
+
import "./plugins-DIrNa311.js";
|
|
9
|
+
import "./accounts-C8m4ADkw.js";
|
|
10
10
|
import "./boolean-B8-BqKGQ.js";
|
|
11
|
-
import "./command-format-
|
|
12
|
-
import "./bindings-
|
|
13
|
-
import "./send-
|
|
14
|
-
import "./send-
|
|
15
|
-
import "./deliver-
|
|
16
|
-
import "./diagnostic-
|
|
11
|
+
import "./command-format-BOHIfoCX.js";
|
|
12
|
+
import "./bindings-BKEEBdsb.js";
|
|
13
|
+
import "./send-Byt_wJDK.js";
|
|
14
|
+
import "./send-BEFzSOoD.js";
|
|
15
|
+
import "./deliver-CKH_FhS0.js";
|
|
16
|
+
import "./diagnostic-DriDPU6M.js";
|
|
17
17
|
import "./diagnostic-session-state-Bxo4UHOL.js";
|
|
18
|
-
import "./accounts-
|
|
19
|
-
import "./send-
|
|
20
|
-
import "./image-ops-
|
|
21
|
-
import "./model-auth-
|
|
22
|
-
import "./github-copilot-token-
|
|
18
|
+
import "./accounts-CQT5u65w.js";
|
|
19
|
+
import "./send-CWtaJF1G.js";
|
|
20
|
+
import "./image-ops-BGmpOcey.js";
|
|
21
|
+
import "./model-auth-vtNH8C4P.js";
|
|
22
|
+
import "./github-copilot-token-Dgb9dAHW.js";
|
|
23
23
|
import "./pi-model-discovery-DaNAekda.js";
|
|
24
|
-
import "./message-channel-
|
|
25
|
-
import "./pi-embedded-helpers-
|
|
26
|
-
import "./config-
|
|
27
|
-
import "./manifest-registry-
|
|
28
|
-
import "./chrome-
|
|
29
|
-
import "./frontmatter-
|
|
30
|
-
import "./skills-
|
|
24
|
+
import "./message-channel-CHYSjmbr.js";
|
|
25
|
+
import "./pi-embedded-helpers-CSE0v99A.js";
|
|
26
|
+
import "./config-Du_-inxH.js";
|
|
27
|
+
import "./manifest-registry-Dhk4A5vb.js";
|
|
28
|
+
import "./chrome-Bqbv_ZSj.js";
|
|
29
|
+
import "./frontmatter-CdkBcBAo.js";
|
|
30
|
+
import "./skills-DSZuhFx9.js";
|
|
31
31
|
import "./redact-jSxx6Ep2.js";
|
|
32
32
|
import "./errors-BoQgnc8X.js";
|
|
33
33
|
import "./ssrf-BTMDZjHT.js";
|
|
34
|
-
import "./store-
|
|
35
|
-
import "./thinking-
|
|
36
|
-
import "./accounts-
|
|
37
|
-
import "./paths-
|
|
38
|
-
import "./tool-images-
|
|
39
|
-
import "./image-
|
|
40
|
-
import "./reply-prefix-
|
|
41
|
-
import "./manager-
|
|
42
|
-
import "./gemini-auth-
|
|
43
|
-
import "./sqlite-
|
|
44
|
-
import "./retry-
|
|
45
|
-
import "./target-errors-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./markdown-tables-
|
|
48
|
-
import "./local-roots-
|
|
49
|
-
import "./ir-
|
|
34
|
+
import "./store-BrNiRjgB.js";
|
|
35
|
+
import "./thinking-Dg8vKjw_.js";
|
|
36
|
+
import "./accounts-DFrH9IVU.js";
|
|
37
|
+
import "./paths-BEAbheM8.js";
|
|
38
|
+
import "./tool-images-C1rdDr34.js";
|
|
39
|
+
import "./image-CxPjVob-.js";
|
|
40
|
+
import "./reply-prefix-DZrS3Kf7.js";
|
|
41
|
+
import "./manager-D7SRrHxT.js";
|
|
42
|
+
import "./gemini-auth-A2JaRMHH.js";
|
|
43
|
+
import "./sqlite-C3XxSzBN.js";
|
|
44
|
+
import "./retry-Bdu4_ZcT.js";
|
|
45
|
+
import "./target-errors-ChHV8dPI.js";
|
|
46
|
+
import "./chunk-fZrBDWYg.js";
|
|
47
|
+
import "./markdown-tables-DpVJE0eA.js";
|
|
48
|
+
import "./local-roots-JqlMsAYY.js";
|
|
49
|
+
import "./ir-DJPm0a4k.js";
|
|
50
50
|
import "./render-CDCvpfhh.js";
|
|
51
|
-
import "./commands-registry-
|
|
52
|
-
import "./skill-commands-
|
|
53
|
-
import "./runner-
|
|
51
|
+
import "./commands-registry-BzlB3qtZ.js";
|
|
52
|
+
import "./skill-commands-CqyVDpti.js";
|
|
53
|
+
import "./runner-D1eXJZ8T.js";
|
|
54
54
|
import "./fetch-DtI0mtzx.js";
|
|
55
|
-
import "./channel-activity-
|
|
56
|
-
import "./tables-
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import "./resolve-route-
|
|
55
|
+
import "./channel-activity-BgsTqLau.js";
|
|
56
|
+
import "./tables-C3clT_iA.js";
|
|
57
|
+
import "./send-DPVf5tQ4.js";
|
|
58
|
+
import "./outbound-attachment-B8WHzsCX.js";
|
|
59
|
+
import "./send-BeWYOs1x.js";
|
|
60
|
+
import "./resolve-route-1ar2IrQt.js";
|
|
61
61
|
import "./proxy-CBJ1upuz.js";
|
|
62
|
-
import "./replies-
|
|
62
|
+
import "./replies-CSVWkVda.js";
|
|
63
63
|
import fs from "node:fs/promises";
|
|
64
64
|
import os from "node:os";
|
|
65
65
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
-
import { dt as resolvePreferredOpenClawTmpDir } from "./registry-
|
|
3
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { S as logWarn } from "./workspace-
|
|
5
|
-
import { d as detectMime, f as extensionForMime } from "./image-ops-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-CyR9Pa1R.js";
|
|
2
|
+
import { dt as resolvePreferredOpenClawTmpDir } from "./registry-DpeZG5fo.js";
|
|
3
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-DSUeV7-g.js";
|
|
4
|
+
import { S as logWarn } from "./workspace-DYx5Dxtw.js";
|
|
5
|
+
import { d as detectMime, f as extensionForMime } from "./image-ops-BGmpOcey.js";
|
|
6
6
|
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-BTMDZjHT.js";
|
|
7
7
|
import { t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
|
|
8
8
|
import path from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { x as logInfo } from "./workspace-
|
|
5
|
-
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-
|
|
6
|
-
import { t as formatCliCommand } from "./command-format-
|
|
7
|
-
import { n as loadConfig } from "./config-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-DpeZG5fo.js";
|
|
3
|
+
import { r as defaultRuntime } from "./subsystem-BF9jT_Nw.js";
|
|
4
|
+
import { x as logInfo } from "./workspace-DYx5Dxtw.js";
|
|
5
|
+
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-C8m4ADkw.js";
|
|
6
|
+
import { t as formatCliCommand } from "./command-format-BOHIfoCX.js";
|
|
7
|
+
import { n as loadConfig } from "./config-Du_-inxH.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-Bnp7PC7f.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { x as logInfo } from "./workspace-
|
|
6
|
-
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-DpeZG5fo.js";
|
|
3
|
+
import "./agent-scope-DSUeV7-g.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-BF9jT_Nw.js";
|
|
5
|
+
import { x as logInfo } from "./workspace-DYx5Dxtw.js";
|
|
6
|
+
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-C8m4ADkw.js";
|
|
7
7
|
import "./boolean-B8-BqKGQ.js";
|
|
8
|
-
import "./command-format-
|
|
9
|
-
import "./model-auth-
|
|
10
|
-
import "./github-copilot-token-
|
|
11
|
-
import { n as loadConfig } from "./config-
|
|
12
|
-
import "./manifest-registry-
|
|
13
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
8
|
+
import "./command-format-BOHIfoCX.js";
|
|
9
|
+
import "./model-auth-vtNH8C4P.js";
|
|
10
|
+
import "./github-copilot-token-Dgb9dAHW.js";
|
|
11
|
+
import { n as loadConfig } from "./config-Du_-inxH.js";
|
|
12
|
+
import "./manifest-registry-Dhk4A5vb.js";
|
|
13
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-Bnp7PC7f.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
16
16
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
3
|
-
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { r as isTruthyEnvValue } from "./command-format-
|
|
7
|
-
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-CyR9Pa1R.js";
|
|
3
|
+
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-DpeZG5fo.js";
|
|
4
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-DSUeV7-g.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-BF9jT_Nw.js";
|
|
6
|
+
import { r as isTruthyEnvValue } from "./command-format-BOHIfoCX.js";
|
|
7
|
+
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-vtNH8C4P.js";
|
|
8
8
|
import { n as formatErrorMessage } from "./errors-BoQgnc8X.js";
|
|
9
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
9
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-BEAbheM8.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DDYvbmRV.js";
|
|
11
|
-
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-
|
|
12
|
-
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-
|
|
13
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
+
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-A2JaRMHH.js";
|
|
12
|
+
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-C3XxSzBN.js";
|
|
13
|
+
import { n as retryAsync } from "./retry-Bdu4_ZcT.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fs$1 from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -511,7 +511,7 @@ function canAutoSelectLocal(options) {
|
|
|
511
511
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
512
512
|
const resolved = resolveUserPath(modelPath);
|
|
513
513
|
try {
|
|
514
|
-
return
|
|
514
|
+
return fs$1.statSync(resolved).isFile();
|
|
515
515
|
} catch {
|
|
516
516
|
return false;
|
|
517
517
|
}
|
|
@@ -1939,7 +1939,7 @@ var MemoryManagerSyncOps = class {
|
|
|
1939
1939
|
]);
|
|
1940
1940
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
1941
1941
|
for (const entry of additionalPaths) try {
|
|
1942
|
-
const stat =
|
|
1942
|
+
const stat = fs$1.lstatSync(entry);
|
|
1943
1943
|
if (stat.isSymbolicLink()) continue;
|
|
1944
1944
|
if (stat.isDirectory()) {
|
|
1945
1945
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-
|
|
1
|
+
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-DpeZG5fo.js";
|
|
2
2
|
import { n as MANIFEST_KEY } from "./legacy-names-Bn-k7U5-.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/host-env-security-policy.json
|
|
@@ -59,7 +59,7 @@ function isPathInside$1(basePath, candidatePath) {
|
|
|
59
59
|
}
|
|
60
60
|
function safeRealpathSync$1(filePath) {
|
|
61
61
|
try {
|
|
62
|
-
return
|
|
62
|
+
return fs.realpathSync(filePath);
|
|
63
63
|
} catch {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -226,13 +226,13 @@ function resolveBundledPluginsDir() {
|
|
|
226
226
|
try {
|
|
227
227
|
const execDir = path.dirname(process.execPath);
|
|
228
228
|
const sibling = path.join(execDir, "extensions");
|
|
229
|
-
if (
|
|
229
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
230
230
|
} catch {}
|
|
231
231
|
try {
|
|
232
232
|
let cursor = path.dirname(fileURLToPath(import.meta.url));
|
|
233
233
|
for (let i = 0; i < 6; i += 1) {
|
|
234
234
|
const candidate = path.join(cursor, "extensions");
|
|
235
|
-
if (
|
|
235
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
236
236
|
const parent = path.dirname(cursor);
|
|
237
237
|
if (parent === cursor) break;
|
|
238
238
|
cursor = parent;
|
|
@@ -251,20 +251,20 @@ function normalizeStringList(value) {
|
|
|
251
251
|
function resolvePluginManifestPath(rootDir) {
|
|
252
252
|
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
253
253
|
const candidate = path.join(rootDir, filename);
|
|
254
|
-
if (
|
|
254
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
255
255
|
}
|
|
256
256
|
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
257
257
|
}
|
|
258
258
|
function loadPluginManifest(rootDir) {
|
|
259
259
|
const manifestPath = resolvePluginManifestPath(rootDir);
|
|
260
|
-
if (!
|
|
260
|
+
if (!fs.existsSync(manifestPath)) return {
|
|
261
261
|
ok: false,
|
|
262
262
|
error: `plugin manifest not found: ${manifestPath}`,
|
|
263
263
|
manifestPath
|
|
264
264
|
};
|
|
265
265
|
let raw;
|
|
266
266
|
try {
|
|
267
|
-
raw = JSON.parse(
|
|
267
|
+
raw = JSON.parse(fs.readFileSync(manifestPath, "utf-8"));
|
|
268
268
|
} catch (err) {
|
|
269
269
|
return {
|
|
270
270
|
ok: false,
|
|
@@ -331,7 +331,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
331
331
|
const cached = cache?.get(targetPath);
|
|
332
332
|
if (cached) return cached;
|
|
333
333
|
try {
|
|
334
|
-
const resolved =
|
|
334
|
+
const resolved = fs.realpathSync(targetPath);
|
|
335
335
|
cache?.set(targetPath, resolved);
|
|
336
336
|
return resolved;
|
|
337
337
|
} catch {
|
|
@@ -340,7 +340,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
340
340
|
}
|
|
341
341
|
function safeStatSync(targetPath) {
|
|
342
342
|
try {
|
|
343
|
-
return
|
|
343
|
+
return fs.statSync(targetPath);
|
|
344
344
|
} catch {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
@@ -454,9 +454,9 @@ function isExtensionFile(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
function readPackageManifest(dir) {
|
|
456
456
|
const manifestPath = path.join(dir, "package.json");
|
|
457
|
-
if (!
|
|
457
|
+
if (!fs.existsSync(manifestPath)) return null;
|
|
458
458
|
try {
|
|
459
|
-
const raw =
|
|
459
|
+
const raw = fs.readFileSync(manifestPath, "utf-8");
|
|
460
460
|
return JSON.parse(raw);
|
|
461
461
|
} catch {
|
|
462
462
|
return null;
|
|
@@ -514,10 +514,10 @@ function resolvePackageEntrySource(params) {
|
|
|
514
514
|
return source;
|
|
515
515
|
}
|
|
516
516
|
function discoverInDirectory(params) {
|
|
517
|
-
if (!
|
|
517
|
+
if (!fs.existsSync(params.dir)) return;
|
|
518
518
|
let entries = [];
|
|
519
519
|
try {
|
|
520
|
-
entries =
|
|
520
|
+
entries = fs.readdirSync(params.dir, { withFileTypes: true });
|
|
521
521
|
} catch (err) {
|
|
522
522
|
params.diagnostics.push({
|
|
523
523
|
level: "warn",
|
|
@@ -579,7 +579,7 @@ function discoverInDirectory(params) {
|
|
|
579
579
|
"index.js",
|
|
580
580
|
"index.mjs",
|
|
581
581
|
"index.cjs"
|
|
582
|
-
].map((candidate) => path.join(fullPath, candidate)).find((candidate) =>
|
|
582
|
+
].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
583
583
|
if (indexFile && isExtensionFile(indexFile)) addCandidate({
|
|
584
584
|
candidates: params.candidates,
|
|
585
585
|
diagnostics: params.diagnostics,
|
|
@@ -597,7 +597,7 @@ function discoverInDirectory(params) {
|
|
|
597
597
|
}
|
|
598
598
|
function discoverFromPath(params) {
|
|
599
599
|
const resolved = resolveUserPath(params.rawPath);
|
|
600
|
-
if (!
|
|
600
|
+
if (!fs.existsSync(resolved)) {
|
|
601
601
|
params.diagnostics.push({
|
|
602
602
|
level: "error",
|
|
603
603
|
message: `plugin path not found: ${resolved}`,
|
|
@@ -605,7 +605,7 @@ function discoverFromPath(params) {
|
|
|
605
605
|
});
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
const stat =
|
|
608
|
+
const stat = fs.statSync(resolved);
|
|
609
609
|
if (stat.isFile()) {
|
|
610
610
|
if (!isExtensionFile(resolved)) {
|
|
611
611
|
params.diagnostics.push({
|
|
@@ -665,7 +665,7 @@ function discoverFromPath(params) {
|
|
|
665
665
|
"index.js",
|
|
666
666
|
"index.mjs",
|
|
667
667
|
"index.cjs"
|
|
668
|
-
].map((candidate) => path.join(resolved, candidate)).find((candidate) =>
|
|
668
|
+
].map((candidate) => path.join(resolved, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
669
669
|
if (indexFile && isExtensionFile(indexFile)) {
|
|
670
670
|
addCandidate({
|
|
671
671
|
candidates: params.candidates,
|
|
@@ -779,7 +779,7 @@ function buildCacheKey(params) {
|
|
|
779
779
|
}
|
|
780
780
|
function safeStatMtimeMs(filePath) {
|
|
781
781
|
try {
|
|
782
|
-
return
|
|
782
|
+
return fs.statSync(filePath).mtimeMs;
|
|
783
783
|
} catch {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-DIrNa311.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-DpeZG5fo.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-CyR9Pa1R.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { I as resolveUserPath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
4
|
+
import { I as resolveUserPath } from "./registry-DpeZG5fo.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-DSUeV7-g.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-BF9jT_Nw.js";
|
|
7
|
+
import { r as isTruthyEnvValue, t as formatCliCommand } from "./command-format-BOHIfoCX.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-Dgb9dAHW.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
14
14
|
import { createAssistantMessageEventStream, getEnvApiKey } from "@mariozechner/pi-ai";
|
|
@@ -2900,7 +2900,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
2900
2900
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
2901
2901
|
}
|
|
2902
2902
|
function ensureAuthStoreFile(pathname) {
|
|
2903
|
-
if (
|
|
2903
|
+
if (fs$1.existsSync(pathname)) return;
|
|
2904
2904
|
saveJsonFile(pathname, {
|
|
2905
2905
|
version: AUTH_STORE_VERSION,
|
|
2906
2906
|
profiles: {}
|
|
@@ -3069,7 +3069,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
3069
3069
|
if (shouldWrite && legacy !== null) {
|
|
3070
3070
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
3071
3071
|
try {
|
|
3072
|
-
|
|
3072
|
+
fs$1.unlinkSync(legacyPath);
|
|
3073
3073
|
} catch (err) {
|
|
3074
3074
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
3075
3075
|
err,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
6
|
-
import { a as loadWebMedia } from "./ir-
|
|
2
|
+
import { D as escapeRegExp, H as toWhatsappJid, rt as getChildLogger } from "./registry-DpeZG5fo.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BF9jT_Nw.js";
|
|
4
|
+
import { n as loadConfig } from "./config-Du_-inxH.js";
|
|
5
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DpVJE0eA.js";
|
|
6
|
+
import { a as loadWebMedia } from "./ir-DJPm0a4k.js";
|
|
7
7
|
import { n as normalizePollInput } from "./polls-CCuCaqgv.js";
|
|
8
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
8
|
+
import { t as convertMarkdownTables } from "./tables-C3clT_iA.js";
|
|
9
|
+
import { n as requireActiveWebListener } from "./active-listener-BKTctYlH.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as saveMediaBuffer } from "./store-
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
1
|
+
import { r as saveMediaBuffer } from "./store-BrNiRjgB.js";
|
|
2
|
+
import { a as loadWebMedia } from "./ir-DJPm0a4k.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-CyR9Pa1R.js";
|
|
2
2
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/home-dir.ts
|
|
6
6
|
function normalize(value) {
|
|
@@ -93,10 +93,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
|
|
|
93
93
|
if (override) return resolveUserPath(override, env, effectiveHomedir);
|
|
94
94
|
const newDir = newStateDir(effectiveHomedir);
|
|
95
95
|
const legacyDirs = legacyStateDirs(effectiveHomedir);
|
|
96
|
-
if (
|
|
96
|
+
if (fs.existsSync(newDir)) return newDir;
|
|
97
97
|
const existingLegacy = legacyDirs.find((dir) => {
|
|
98
98
|
try {
|
|
99
|
-
return
|
|
99
|
+
return fs.existsSync(dir);
|
|
100
100
|
} catch {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
@@ -135,7 +135,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
|
|
|
135
135
|
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
136
136
|
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
137
137
|
try {
|
|
138
|
-
return
|
|
138
|
+
return fs.existsSync(candidate);
|
|
139
139
|
} catch {
|
|
140
140
|
return false;
|
|
141
141
|
}
|
|
@@ -152,7 +152,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
|
|
|
152
152
|
const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
|
|
153
153
|
const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
|
|
154
154
|
try {
|
|
155
|
-
return
|
|
155
|
+
return fs.existsSync(candidate);
|
|
156
156
|
} catch {
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
1
|
+
import "./paths-CyR9Pa1R.js";
|
|
2
|
+
import "./registry-DpeZG5fo.js";
|
|
3
|
+
import "./agent-scope-DSUeV7-g.js";
|
|
4
|
+
import "./subsystem-BF9jT_Nw.js";
|
|
5
|
+
import "./workspace-DYx5Dxtw.js";
|
|
6
6
|
import "./boolean-B8-BqKGQ.js";
|
|
7
|
-
import "./command-format-
|
|
8
|
-
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-
|
|
9
|
-
import "./github-copilot-token-
|
|
7
|
+
import "./command-format-BOHIfoCX.js";
|
|
8
|
+
import { A as normalizeProviderId, _ as ensureAuthProfileStore } from "./model-auth-vtNH8C4P.js";
|
|
9
|
+
import "./github-copilot-token-Dgb9dAHW.js";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
|