@hanzo/bot 2026.3.12 → 2026.3.13
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-cApXM7Ij.js → accounts-BfUDrXkg.js} +17 -17
- package/dist/{accounts-7zwrtsCi.js → accounts-CU6IpCdO.js} +2 -2
- package/dist/{accounts-BEs2omoE.js → accounts-CvwEUGLi.js} +2 -2
- package/dist/{active-listener-DR8OFowd.js → active-listener-BrRv4Xwc.js} +2 -2
- package/dist/{api-key-rotation-RknBrUrn.js → api-key-rotation-GaH2pQmb.js} +2 -2
- package/dist/{audio-preflight-Chfaq_QP.js → audio-preflight-ClPkYtiy.js} +32 -32
- package/dist/{audio-transcription-runner-BvSPpIzU.js → audio-transcription-runner-DcmYYRTV.js} +12 -12
- package/dist/{audit-membership-runtime-CVVxrZ7j.js → audit-membership-runtime-BJ149bTU.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +51 -51
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-CALqzTg5.js → channel-activity-BtB_KYWB.js} +3 -3
- package/dist/{chrome-CFVzlBUF.js → chrome-CiH9yYg6.js} +18 -18
- package/dist/{cloud-connect-BKnkfbhQ.js → cloud-connect-yv8A2P84.js} +1 -1
- package/dist/{commands-registry-DD9ywdfc.js → commands-registry-CYzULUtG.js} +4 -4
- package/dist/{deliver-B2IvdEAO.js → deliver-CQ6QaVna.js} +21 -21
- package/dist/deliver-runtime-AIl3Ydhb.js +36 -0
- package/dist/deps-send-discord.runtime-BCKKTBVj.js +26 -0
- package/dist/deps-send-imessage.runtime-CrYNg1e_.js +25 -0
- package/dist/deps-send-signal.runtime-rttQOioa.js +24 -0
- package/dist/deps-send-slack.runtime-BsCUhMAR.js +22 -0
- package/dist/deps-send-telegram.runtime-sOFkXXMD.js +27 -0
- package/dist/deps-send-whatsapp.runtime-B4PrMybd.js +60 -0
- package/dist/{diagnostic-pXxnbxER.js → diagnostic-Dt3OGXoB.js} +2 -2
- package/dist/entry.js +1 -1
- package/dist/{errors-CHd6Q-vF.js → errors-DDrhcWHi.js} +1 -1
- package/dist/{fetch-DZVswJ-3.js → fetch-C7bGdK_0.js} +5 -5
- package/dist/{fetch-guard-EqKIhwBB.js → fetch-guard-Danf_0St.js} +2 -2
- package/dist/{frontmatter-B6XNqDx2.js → frontmatter-BFHzrAY7.js} +3 -3
- package/dist/{fs-safe-ClYE3-y0.js → fs-safe-Cou1ijNV.js} +4 -4
- package/dist/{github-copilot-token-BDioPmd6.js → github-copilot-token-D13V9YBz.js} +7 -7
- package/dist/{image-BgWMM5C3.js → image-Cw0N8PLF.js} +6 -6
- package/dist/{image-ops-DGh7juCd.js → image-ops-C23SGeMe.js} +2 -2
- package/dist/image-runtime-BTWt5pDL.js +29 -0
- package/dist/{ir-BUxTWPJl.js → ir-CeK8iZwE.js} +8 -8
- package/dist/{legacy-names-DZdACm3t.js → legacy-names-Bkl4tjN-.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{local-launch-CLA_3nnn.js → local-launch-CUwfR4xk.js} +4 -1
- package/dist/{logger-LCC1m_20.js → logger-D4RcXHR-.js} +7 -7
- package/dist/{login-BPpT7LmW.js → login-CHghmysG.js} +5 -5
- package/dist/{login-qr-ROsDrMTV.js → login-qr-CNFNhTf4.js} +10 -10
- package/dist/{manager-DcZ7mOtr.js → manager-DD6mzJNU.js} +13 -13
- package/dist/manager-runtime-Daqs8hiB.js +18 -0
- package/dist/{model-selection-DX7XfNlF.js → model-selection-CLGE3YIs.js} +43 -43
- package/dist/{outbound-attachment-CC04mCS8.js → outbound-attachment-gUN8NzLf.js} +2 -2
- package/dist/{outbound-CQ5XVDFO.js → outbound-qbvc4GA6.js} +6 -6
- package/dist/{path-alias-guards-IQC4IpGS.js → path-alias-guards-BzNEeFKJ.js} +1 -1
- package/dist/{paths-GZsDv0mI.js → paths-0WxUzzEz.js} +4 -4
- package/dist/{paths-Cvc9EM8Y.js → paths-C6TxBCvO.js} +5 -5
- package/dist/{pi-embedded-bHDdzvEW.js → pi-embedded-DF0t5HJD.js} +159 -159
- package/dist/{pi-embedded-helpers-CVj2Bw45.js → pi-embedded-helpers-BT9OkmaI.js} +52 -52
- package/dist/pi-model-discovery-runtime-C9astVbX.js +11 -0
- package/dist/{pi-model-discovery-BYBYqQ0u.js → pi-model-discovery-vsJpfYA9.js} +7 -7
- package/dist/{pi-tools.before-tool-call.runtime-BiTed3Jt.js → pi-tools.before-tool-call.runtime-D-Vj4eZ7.js} +9 -9
- package/dist/plugin-sdk/{accounts-Cad7hzfy.js → accounts-Bm4PRMWH.js} +3 -3
- package/dist/plugin-sdk/{accounts-CNg2VVWF.js → accounts-CXyl1mLm.js} +2 -2
- package/dist/plugin-sdk/{accounts-BKlUEbA2.js → accounts-DskuKVrL.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CORsVdRy.js → active-listener-DjtXj-6l.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BMnwWQ0L.js → api-key-rotation-dBvG_5yr.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-BIoyXlzE.js → audio-preflight-C3Pp9geS.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-Dt1i04m6.js → audio-transcription-runner-ClnCvQG5.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-CAJ6jHA7.js → audit-membership-runtime-rx3u3xYQ.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-BgBfJIZr.js → channel-activity-DXEHlqT_.js} +3 -3
- package/dist/plugin-sdk/{channel-web-D1WElkhV.js → channel-web-jhRFdgis.js} +18 -18
- package/dist/plugin-sdk/{chrome-BOy2ZIdy.js → chrome-Ctkdm8kB.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-C746B-IO.js → commands-registry-DaOv_5Un.js} +4 -4
- package/dist/plugin-sdk/{common-DEicsf8f.js → common-BTOQbnC9.js} +2 -2
- package/dist/plugin-sdk/{config-C2VN_Uze.js → config-CPoIewKA.js} +7 -7
- package/dist/plugin-sdk/{deliver-CJDxdV38.js → deliver-C3M9YkG8.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-mEh6dpX2.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-CeLampf3.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-BtxPqajC.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-ClFkIFJ-.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-DaHmXzRC.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-DAF10iAG.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DqlX4Oxz.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Cmg_Guj5.js → diagnostic-DHES2IG3.js} +2 -2
- package/dist/plugin-sdk/{errors-Cn3JyiMn.js → errors-B2jpHiod.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dq4RGtrN.js → fetch-guard-Bnbh_v36.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-Bkid3_6g.js → fs-safe-Bycf8Dw-.js} +3 -3
- package/dist/plugin-sdk/{image-nVvwM3Xd.js → image-moA_39gp.js} +6 -6
- package/dist/plugin-sdk/{image-ops-CpF6ZEdk.js → image-ops-DhoADpAA.js} +2 -2
- package/dist/plugin-sdk/image-runtime-2bziw6eW.js +25 -0
- package/dist/plugin-sdk/{ir-sseErCNR.js → ir-g3OlfUVu.js} +7 -7
- package/dist/plugin-sdk/{local-roots-QiQIw_3f.js → local-roots-C4VMMVpe.js} +4 -4
- package/dist/plugin-sdk/{logger-Dj4IX2UB.js → logger-Bl138Nx7.js} +2 -2
- package/dist/plugin-sdk/{login-BQzorFUh.js → login-DncLyb_v.js} +4 -4
- package/dist/plugin-sdk/{login-qr-CikVF257.js → login-qr-Bsk9WIKo.js} +5 -5
- package/dist/plugin-sdk/{manager-BGXvWOFI.js → manager-dSeD3RrO.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-jDo0I-JG.js +15 -0
- package/dist/plugin-sdk/{outbound-DI98BRHn.js → outbound-Uxln4ZUV.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-D3JolQwb.js → outbound-attachment-BGdfM11-.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-CaWErHTb.js → path-alias-guards-D7YFCGos.js} +1 -1
- package/dist/plugin-sdk/{paths-C9nUyfHf.js → paths-DG-hVM9r.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CYIBgCUb.js → pi-embedded-helpers-DfSEAMtj.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-CnEHDSXe.js → pi-model-discovery-C-VTvWWv.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-CIuZW3i7.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-C-5gDvbX.js → pi-tools.before-tool-call.runtime-DBmTGutA.js} +4 -4
- package/dist/plugin-sdk/{plugins-BNiirQsT.js → plugins-GsRN6ojJ.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-nIDM2pb-.js → proxy-env-CtTzyyij.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-rtc8GmoB.js → proxy-fetch-C-fXKPD2.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CQc12I06.js → pw-ai-DdCaaGh3.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Crxi_fUd.js → qmd-manager-CPn_rv_D.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-BoMWv8J7.js → query-expansion-Bvu5XYRV.js} +4 -4
- package/dist/plugin-sdk/{redact-CBwV828t.js → redact-C3rEm8A0.js} +1 -1
- package/dist/plugin-sdk/{reply-C46yX129.js → reply-CN3fBNMb.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-BUyclz_e.js → resolve-outbound-target-CRToDwG-.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-BKOyMmQl.js → run-with-concurrency-BXedUJ_9.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B_rU-DWm.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DsIXsR9d.js +19 -0
- package/dist/plugin-sdk/{send-DRYHVkRK.js → send-66W_v3Rp.js} +13 -13
- package/dist/plugin-sdk/{send-DBto6gUF.js → send-C-o9yhwI.js} +7 -7
- package/dist/plugin-sdk/{send-C74B-7Md.js → send-DLsh3eTd.js} +6 -6
- package/dist/plugin-sdk/{send-CyQZ_3dG.js → send-DyWir3i5.js} +5 -5
- package/dist/plugin-sdk/{send-Ds3SvAXN.js → send-DzRN28wH.js} +8 -8
- package/dist/plugin-sdk/{session-DfwhEElH.js → session-67udJtLN.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/{skill-commands-xwQoPrL7.js → skill-commands-DGcpUwSV.js} +4 -4
- package/dist/plugin-sdk/{skills-8kOFtfG0.js → skills-BCUlsM7a.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-Bezqrk4r.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-C1tsWtvv.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-CGNVU7M2.js +16 -0
- package/dist/plugin-sdk/{store-CuPS1X7b.js → store-B8uaah6Q.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-miVNHjsU.js +52 -0
- package/dist/plugin-sdk/{tables-Bt_-pxQx.js → tables-DKLz7bGv.js} +1 -1
- package/dist/plugin-sdk/{thinking-BLYI7Ns-.js → thinking-zAYQzsCw.js} +7 -7
- package/dist/plugin-sdk/{tokens-D2fpVQt3.js → tokens-DMbd3-Ct.js} +1 -1
- package/dist/plugin-sdk/{tool-images-_v-9iCOI.js → tool-images-BVSRVXXq.js} +2 -2
- package/dist/plugin-sdk/web-DSj0-KxZ.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-DPHrLiQ8.js → whatsapp-actions-BuSDFSP5.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-DB-tbkgl.js → plugins-BZY4UQdP.js} +13 -13
- package/dist/{proxy-env-CiOhiqru.js → proxy-env-BgSzvACM.js} +1 -1
- package/dist/{proxy-fetch-lxJGuoUa.js → proxy-fetch-ChfJDZwG.js} +1 -1
- package/dist/{pw-ai-WtE5uJRQ.js → pw-ai-CaeuHJYc.js} +14 -14
- package/dist/{qmd-manager-Bcw2cb8D.js → qmd-manager-IaHGjYlf.js} +10 -10
- package/dist/{query-expansion-D9bYNybh.js → query-expansion-CzkZbxDS.js} +6 -6
- package/dist/{redact-DqlKR0-n.js → redact-DGz6yigq.js} +1 -1
- package/dist/{run-main-BKdAXafb.js → run-main-BmfZLBd9.js} +2 -2
- package/dist/{run-with-concurrency-B8f7bYi3.js → run-with-concurrency-Ccm0w34R.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BQjNpkbA.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-GVjcQLWE.js +22 -0
- package/dist/{send-CkPIBk6V.js → send-BRWGalFX.js} +8 -8
- package/dist/{send-BftnuVa7.js → send-CYoz4Xjy.js} +7 -7
- package/dist/{send-D9k6sRe5.js → send-Cpd5Q5mD.js} +6 -6
- package/dist/{send-yLSU7X_F.js → send-Dsz28eiu.js} +28 -28
- package/dist/{send-pIawmzTN.js → send-tBfK5Za7.js} +5 -5
- package/dist/{session-CgL23zvS.js → session-Dn8bzB0l.js} +8 -8
- package/dist/{skill-commands-Cnz3QjWm.js → skill-commands-LO2hG7Hm.js} +9 -9
- package/dist/{skills-BhLAW7lA.js → skills-mpCKgKof.js} +22 -22
- package/dist/slash-commands.runtime-Qho-6_Lc.js +16 -0
- package/dist/slash-dispatch.runtime-CkR-TldC.js +56 -0
- package/dist/slash-skill-commands.runtime-DmrTozXn.js +20 -0
- package/dist/{store-EDjci9yP.js → store-DbpT7v8D.js} +2 -2
- package/dist/subagent-registry-runtime-DWAZpHqO.js +56 -0
- package/dist/{subsystem-CdFYjh2k.js → subsystem-W834z9Wa.js} +14 -14
- package/dist/{tables-tp9Zl0hI.js → tables-BpeU6RzS.js} +1 -1
- package/dist/{target-errors-3YX3buv4.js → target-errors-Dcsvl3HX.js} +2 -2
- package/dist/{thinking-BaTRgLOg.js → thinking-DzbkyD99.js} +7 -7
- package/dist/{tokens-mtgzW7UN.js → tokens-Cyi-NbsV.js} +1 -1
- package/dist/{tool-images-C3-c00jy.js → tool-images-DktJ_8C5.js} +2 -2
- package/dist/{web-BOPbMZux.js → web-BByXTa4p.js} +55 -55
- package/dist/{whatsapp-actions-BQWT_h74.js → whatsapp-actions-BK9m2IVX.js} +21 -21
- package/dist/{workspace-DKhOowSl.js → workspace-BhNk7PBH.js} +20 -20
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/ci-fix-loop/package.json +1 -1
- package/extensions/continuous-learning/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/flow/package.json +1 -1
- package/extensions/google-antigravity-auth/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +5 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +5 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +5 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/self-improvement/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +5 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +5 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +5 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +5 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/deliver-runtime-DY7UPWdO.js +0 -36
- package/dist/deps-send-discord.runtime-B_MPWdLu.js +0 -26
- package/dist/deps-send-imessage.runtime-BqgAHmfA.js +0 -25
- package/dist/deps-send-signal.runtime-B4CYnceH.js +0 -24
- package/dist/deps-send-slack.runtime-dtkYbGcS.js +0 -22
- package/dist/deps-send-telegram.runtime-C5f1UIXW.js +0 -27
- package/dist/deps-send-whatsapp.runtime-D6XwcPPI.js +0 -60
- package/dist/image-runtime-v_h0aTZD.js +0 -29
- package/dist/manager-runtime-D_u9rPEs.js +0 -18
- package/dist/pi-model-discovery-runtime-ZDLroaI6.js +0 -11
- package/dist/plugin-sdk/deliver-runtime-Btv2N6ID.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-CD6RkX7j.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-Bk6O4cQd.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-D3VOhV12.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-q_vIsWY0.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-CMfaSoMW.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-SlwDXgpa.js +0 -57
- package/dist/plugin-sdk/image-runtime-DO1AG9xo.js +0 -25
- package/dist/plugin-sdk/manager-runtime-ptNsDEQe.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BTuhUPJQ.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-Cmgk45l9.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Dj9zjsRb.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-DhqEtB3N.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-CRtIC9Sp.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-MqsnB6E8.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-CCusNTee.js +0 -52
- package/dist/plugin-sdk/web-BbS3ifBr.js +0 -56
- package/dist/runtime-whatsapp-login.runtime-A_4Z63o5.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-QGzX864p.js +0 -22
- package/dist/slash-commands.runtime-BD-KtYmG.js +0 -16
- package/dist/slash-dispatch.runtime-Dzq3WGxH.js +0 -56
- package/dist/slash-skill-commands.runtime-EpYM7zik.js +0 -20
- package/dist/subagent-registry-runtime-DwTeW5f1.js +0 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as resolveConfigDir } from "./logger-
|
|
2
|
-
import { b as detectMime, x as extensionForMime } from "./image-ops-
|
|
1
|
+
import { _ as resolveConfigDir } from "./logger-D4RcXHR-.js";
|
|
2
|
+
import { b as detectMime, x as extensionForMime } from "./image-ops-C23SGeMe.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-BhNk7PBH.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-CLGE3YIs.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import "./thinking-DzbkyD99.js";
|
|
10
|
+
import "./tokens-Cyi-NbsV.js";
|
|
11
|
+
import { G as isSubagentSessionRunActive, H as countActiveDescendantRuns, J as resolveRequesterForChildSession, K as listSubagentRunsForRequester, U as countPendingDescendantRuns, W as countPendingDescendantRunsExcludingRun, Y as shouldIgnorePostCompletionAnnounceForSession, q as replaceSubagentRunAfterSteer } from "./pi-embedded-DF0t5HJD.js";
|
|
12
|
+
import "./accounts-BfUDrXkg.js";
|
|
13
|
+
import "./plugins-BZY4UQdP.js";
|
|
14
|
+
import "./send-Cpd5Q5mD.js";
|
|
15
|
+
import "./send-BRWGalFX.js";
|
|
16
|
+
import "./deliver-CQ6QaVna.js";
|
|
17
|
+
import "./diagnostic-Dt3OGXoB.js";
|
|
18
|
+
import "./accounts-CU6IpCdO.js";
|
|
19
|
+
import "./image-ops-C23SGeMe.js";
|
|
20
|
+
import "./send-Dsz28eiu.js";
|
|
21
|
+
import "./pi-model-discovery-vsJpfYA9.js";
|
|
22
|
+
import "./pi-embedded-helpers-BT9OkmaI.js";
|
|
23
|
+
import "./chrome-CiH9yYg6.js";
|
|
24
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
25
|
+
import "./skills-mpCKgKof.js";
|
|
26
|
+
import "./path-alias-guards-BzNEeFKJ.js";
|
|
27
|
+
import "./redact-DGz6yigq.js";
|
|
28
|
+
import "./errors-DDrhcWHi.js";
|
|
29
|
+
import "./fs-safe-Cou1ijNV.js";
|
|
30
|
+
import "./proxy-env-BgSzvACM.js";
|
|
31
|
+
import "./store-DbpT7v8D.js";
|
|
32
|
+
import "./accounts-CvwEUGLi.js";
|
|
33
|
+
import "./paths-0WxUzzEz.js";
|
|
34
|
+
import "./tool-images-DktJ_8C5.js";
|
|
35
|
+
import "./image-Cw0N8PLF.js";
|
|
36
|
+
import "./audio-transcription-runner-DcmYYRTV.js";
|
|
37
|
+
import "./fetch-C7bGdK_0.js";
|
|
38
|
+
import "./fetch-guard-Danf_0St.js";
|
|
39
|
+
import "./api-key-rotation-GaH2pQmb.js";
|
|
40
|
+
import "./proxy-fetch-ChfJDZwG.js";
|
|
41
|
+
import "./ir-CeK8iZwE.js";
|
|
42
|
+
import "./render-DW7AcFdD.js";
|
|
43
|
+
import "./target-errors-Dcsvl3HX.js";
|
|
44
|
+
import "./commands-registry-CYzULUtG.js";
|
|
45
|
+
import "./skill-commands-LO2hG7Hm.js";
|
|
46
|
+
import "./fetch-BfuG8uZ8.js";
|
|
47
|
+
import "./channel-activity-BtB_KYWB.js";
|
|
48
|
+
import "./tables-BpeU6RzS.js";
|
|
49
|
+
import "./send-tBfK5Za7.js";
|
|
50
|
+
import "./outbound-attachment-gUN8NzLf.js";
|
|
51
|
+
import "./send-CYoz4Xjy.js";
|
|
52
|
+
import "./proxy-CecQTx_Z.js";
|
|
53
|
+
import "./manager-DD6mzJNU.js";
|
|
54
|
+
import "./query-expansion-CzkZbxDS.js";
|
|
55
|
+
|
|
56
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, listSubagentRunsForRequester, replaceSubagentRunAfterSteer, resolveRequesterForChildSession, shouldIgnorePostCompletionAnnounceForSession };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as resolveConfigPath } from "./paths-
|
|
1
|
+
import { r as resolveConfigPath } from "./paths-C6TxBCvO.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import chalk, { Chalk } from "chalk";
|
|
6
6
|
import { Logger } from "tslog";
|
|
7
7
|
import JSON5 from "json5";
|
|
@@ -54,15 +54,15 @@ function getCommandPathInternal(argv, depth, opts) {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/infra/tmp-openclaw-dir.ts
|
|
56
56
|
const POSIX_OPENCLAW_TMP_DIR = "/tmp/openclaw";
|
|
57
|
-
const TMP_DIR_ACCESS_MODE =
|
|
57
|
+
const TMP_DIR_ACCESS_MODE = syncFs.constants.W_OK | syncFs.constants.X_OK;
|
|
58
58
|
function isNodeErrorWithCode(err, code) {
|
|
59
59
|
return typeof err === "object" && err !== null && "code" in err && err.code === code;
|
|
60
60
|
}
|
|
61
61
|
function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
62
|
-
const accessSync = options.accessSync ??
|
|
63
|
-
const chmodSync = options.chmodSync ??
|
|
64
|
-
const lstatSync = options.lstatSync ??
|
|
65
|
-
const mkdirSync = options.mkdirSync ??
|
|
62
|
+
const accessSync = options.accessSync ?? syncFs.accessSync;
|
|
63
|
+
const chmodSync = options.chmodSync ?? syncFs.chmodSync;
|
|
64
|
+
const lstatSync = options.lstatSync ?? syncFs.lstatSync;
|
|
65
|
+
const mkdirSync = options.mkdirSync ?? syncFs.mkdirSync;
|
|
66
66
|
const warn = options.warn ?? ((message) => console.warn(message));
|
|
67
67
|
const getuid = options.getuid ?? (() => {
|
|
68
68
|
try {
|
|
@@ -155,8 +155,8 @@ function resolvePreferredOpenClawTmpDir(options = {}) {
|
|
|
155
155
|
function readLoggingConfig() {
|
|
156
156
|
const configPath = resolveConfigPath();
|
|
157
157
|
try {
|
|
158
|
-
if (!
|
|
159
|
-
const raw =
|
|
158
|
+
if (!syncFs.existsSync(configPath)) return;
|
|
159
|
+
const raw = syncFs.readFileSync(configPath, "utf-8");
|
|
160
160
|
const logging = JSON5.parse(raw)?.logging;
|
|
161
161
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
162
162
|
return logging;
|
|
@@ -344,7 +344,7 @@ function buildLogger(settings) {
|
|
|
344
344
|
for (const transport of externalTransports) attachExternalTransport(logger, transport);
|
|
345
345
|
return logger;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
syncFs.mkdirSync(path.dirname(settings.file), { recursive: true });
|
|
348
348
|
if (isRollingPath(settings.file)) pruneOldRollingLogs(path.dirname(settings.file));
|
|
349
349
|
let currentFileBytes = getCurrentLogFileBytes(settings.file);
|
|
350
350
|
let warnedAboutSizeCap = false;
|
|
@@ -383,14 +383,14 @@ function resolveMaxLogFileBytes(raw) {
|
|
|
383
383
|
}
|
|
384
384
|
function getCurrentLogFileBytes(file) {
|
|
385
385
|
try {
|
|
386
|
-
return
|
|
386
|
+
return syncFs.statSync(file).size;
|
|
387
387
|
} catch {
|
|
388
388
|
return 0;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
function appendLogLine(file, line) {
|
|
392
392
|
try {
|
|
393
|
-
|
|
393
|
+
syncFs.appendFileSync(file, line, { encoding: "utf8" });
|
|
394
394
|
return true;
|
|
395
395
|
} catch {
|
|
396
396
|
return false;
|
|
@@ -442,14 +442,14 @@ function isRollingPath(file) {
|
|
|
442
442
|
}
|
|
443
443
|
function pruneOldRollingLogs(dir) {
|
|
444
444
|
try {
|
|
445
|
-
const entries =
|
|
445
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
446
446
|
const cutoff = Date.now() - MAX_LOG_AGE_MS;
|
|
447
447
|
for (const entry of entries) {
|
|
448
448
|
if (!entry.isFile()) continue;
|
|
449
449
|
if (!entry.name.startsWith(`${LOG_PREFIX}-`) || !entry.name.endsWith(LOG_SUFFIX)) continue;
|
|
450
450
|
const fullPath = path.join(dir, entry.name);
|
|
451
451
|
try {
|
|
452
|
-
if (
|
|
452
|
+
if (syncFs.statSync(fullPath).mtimeMs < cutoff) syncFs.rmSync(fullPath, { force: true });
|
|
453
453
|
} catch {}
|
|
454
454
|
}
|
|
455
455
|
} catch {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as detectMime } from "./image-ops-
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { b as detectMime } from "./image-ops-C23SGeMe.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-DktJ_8C5.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/agents/tools/common.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { h as normalizeE164, u as escapeRegExp } from "./logger-
|
|
3
|
-
import { Qt as requireActivePluginRegistry, Ut as CHAT_CHANNEL_ORDER, Wt as getChatChannelMeta } from "./model-selection-
|
|
4
|
-
import { g as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-
|
|
5
|
-
import { S as inspectDiscordAccount, _ as resolveSlackAccount, a as normalizeWhatsAppTarget, g as inspectSlackAccount, o as inspectTelegramAccount, v as resolveSlackReplyToMode } from "./plugins-
|
|
6
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
7
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-BhNk7PBH.js";
|
|
2
|
+
import { h as normalizeE164, u as escapeRegExp } from "./logger-D4RcXHR-.js";
|
|
3
|
+
import { Qt as requireActivePluginRegistry, Ut as CHAT_CHANNEL_ORDER, Wt as getChatChannelMeta } from "./model-selection-CLGE3YIs.js";
|
|
4
|
+
import { g as resolveAccountEntry, n as resolveWhatsAppAccount } from "./accounts-BfUDrXkg.js";
|
|
5
|
+
import { S as inspectDiscordAccount, _ as resolveSlackAccount, a as normalizeWhatsAppTarget, g as inspectSlackAccount, o as inspectTelegramAccount, v as resolveSlackReplyToMode } from "./plugins-BZY4UQdP.js";
|
|
6
|
+
import { n as resolveSignalAccount } from "./accounts-CU6IpCdO.js";
|
|
7
|
+
import { t as resolveIMessageAccount } from "./accounts-CvwEUGLi.js";
|
|
8
8
|
|
|
9
9
|
//#region src/config/types.tools.ts
|
|
10
10
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-C23SGeMe.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/base64.ts
|
|
5
5
|
function estimateBase64DecodedBytes(base64) {
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-
|
|
4
|
-
import { F as buildGroupHistoryKey, M as DEFAULT_MAIN_KEY, N as buildAgentMainSessionKey, R as normalizeAgentId } from "./workspace-
|
|
5
|
-
import { C as sleep, T as toWhatsappJid, h as normalizeE164, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164 } from "./logger-
|
|
6
|
-
import { Z as loadConfig, fr as formatCliCommand } from "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-
|
|
10
|
-
import "./tokens-
|
|
11
|
-
import { A as parseActivationCommand, B as buildMentionRegexes, D as createDedupeCache, E as formatInboundEnvelope, F as buildAgentSessionKey, I as resolveAgentRoute, L as finalizeInboundContext, M as sleepWithAbort, N as formatDurationPrecise, O as getReplyFromConfig, P as enqueueSystemEvent, R as hasControlCommand, S as dispatchReplyWithBufferedBlockDispatcher, T as resolveInboundDebounceMs, V as normalizeMentionText, X as resolveIdentityNamePrefix, Z as resolveMessagePrefix, _ as readStoreAllowFromForDmPolicy, a as resolveInboundSessionEnvelopeContext, b as resolvePinnedMainDmOwnerFromAllowlist, c as buildPairingReply, d as DEFAULT_GROUP_HISTORY_LIMIT, f as buildHistoryContextFromEntries, g as warnMissingProviderGroupPolicyFallbackOnce, h as resolveOpenProviderRuntimeGroupPolicy, j as computeBackoff, k as normalizeGroupActivation, l as resolveMentionGating, m as resolveDefaultGroupPolicy, p as recordPendingHistoryEntryIfEnabled, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithCommandGate, w as createInboundDebouncer, x as shouldAckReactionForWhatsApp, y as resolveDmGroupAccessWithLists, z as shouldComputeCommandAuthorized } from "./pi-embedded-
|
|
12
|
-
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-
|
|
13
|
-
import "./plugins-
|
|
14
|
-
import "./send-
|
|
15
|
-
import "./send-
|
|
16
|
-
import "./deliver-
|
|
17
|
-
import "./diagnostic-
|
|
18
|
-
import "./accounts-
|
|
19
|
-
import "./image-ops-
|
|
20
|
-
import { X as toLocationContext, Y as formatLocationText, et as upsertChannelPairingRequest } from "./send-
|
|
21
|
-
import "./pi-model-discovery-
|
|
22
|
-
import { At as resolveGroupSessionKey, K as recordSessionMetaFromInbound, W as loadSessionStore, q as updateLastRoute } from "./pi-embedded-helpers-
|
|
23
|
-
import "./chrome-
|
|
24
|
-
import "./frontmatter-
|
|
25
|
-
import "./skills-
|
|
26
|
-
import "./path-alias-guards-
|
|
27
|
-
import "./redact-
|
|
28
|
-
import "./errors-
|
|
29
|
-
import "./fs-safe-
|
|
30
|
-
import "./proxy-env-
|
|
31
|
-
import { i as saveMediaBuffer } from "./store-
|
|
32
|
-
import "./accounts-
|
|
33
|
-
import { s as resolveStorePath } from "./paths-
|
|
34
|
-
import "./tool-images-
|
|
35
|
-
import "./image-
|
|
36
|
-
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
37
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
38
|
-
import "./fetch-guard-
|
|
39
|
-
import "./api-key-rotation-
|
|
40
|
-
import "./proxy-fetch-
|
|
41
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-
|
|
1
|
+
import "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import { i as defaultRuntime, p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, y as getChildLogger } from "./subsystem-W834z9Wa.js";
|
|
4
|
+
import { F as buildGroupHistoryKey, M as DEFAULT_MAIN_KEY, N as buildAgentMainSessionKey, R as normalizeAgentId } from "./workspace-BhNk7PBH.js";
|
|
5
|
+
import { C as sleep, T as toWhatsappJid, h as normalizeE164, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164 } from "./logger-D4RcXHR-.js";
|
|
6
|
+
import { Z as loadConfig, fr as formatCliCommand } from "./model-selection-CLGE3YIs.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-DzbkyD99.js";
|
|
10
|
+
import "./tokens-Cyi-NbsV.js";
|
|
11
|
+
import { A as parseActivationCommand, B as buildMentionRegexes, D as createDedupeCache, E as formatInboundEnvelope, F as buildAgentSessionKey, I as resolveAgentRoute, L as finalizeInboundContext, M as sleepWithAbort, N as formatDurationPrecise, O as getReplyFromConfig, P as enqueueSystemEvent, R as hasControlCommand, S as dispatchReplyWithBufferedBlockDispatcher, T as resolveInboundDebounceMs, V as normalizeMentionText, X as resolveIdentityNamePrefix, Z as resolveMessagePrefix, _ as readStoreAllowFromForDmPolicy, a as resolveInboundSessionEnvelopeContext, b as resolvePinnedMainDmOwnerFromAllowlist, c as buildPairingReply, d as DEFAULT_GROUP_HISTORY_LIMIT, f as buildHistoryContextFromEntries, g as warnMissingProviderGroupPolicyFallbackOnce, h as resolveOpenProviderRuntimeGroupPolicy, j as computeBackoff, k as normalizeGroupActivation, l as resolveMentionGating, m as resolveDefaultGroupPolicy, p as recordPendingHistoryEntryIfEnabled, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithCommandGate, w as createInboundDebouncer, x as shouldAckReactionForWhatsApp, y as resolveDmGroupAccessWithLists, z as shouldComputeCommandAuthorized } from "./pi-embedded-DF0t5HJD.js";
|
|
12
|
+
import { a as logWebSelfId, c as pickWebChannel, i as getWebAuthAgeMs, m as webAuthExists, n as resolveWhatsAppAccount, r as WA_WEB_AUTH_DIR, u as readWebSelfId } from "./accounts-BfUDrXkg.js";
|
|
13
|
+
import "./plugins-BZY4UQdP.js";
|
|
14
|
+
import "./send-Cpd5Q5mD.js";
|
|
15
|
+
import "./send-BRWGalFX.js";
|
|
16
|
+
import "./deliver-CQ6QaVna.js";
|
|
17
|
+
import "./diagnostic-Dt3OGXoB.js";
|
|
18
|
+
import "./accounts-CU6IpCdO.js";
|
|
19
|
+
import "./image-ops-C23SGeMe.js";
|
|
20
|
+
import { X as toLocationContext, Y as formatLocationText, et as upsertChannelPairingRequest } from "./send-Dsz28eiu.js";
|
|
21
|
+
import "./pi-model-discovery-vsJpfYA9.js";
|
|
22
|
+
import { At as resolveGroupSessionKey, K as recordSessionMetaFromInbound, W as loadSessionStore, q as updateLastRoute } from "./pi-embedded-helpers-BT9OkmaI.js";
|
|
23
|
+
import "./chrome-CiH9yYg6.js";
|
|
24
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
25
|
+
import "./skills-mpCKgKof.js";
|
|
26
|
+
import "./path-alias-guards-BzNEeFKJ.js";
|
|
27
|
+
import "./redact-DGz6yigq.js";
|
|
28
|
+
import "./errors-DDrhcWHi.js";
|
|
29
|
+
import "./fs-safe-Cou1ijNV.js";
|
|
30
|
+
import "./proxy-env-BgSzvACM.js";
|
|
31
|
+
import { i as saveMediaBuffer } from "./store-DbpT7v8D.js";
|
|
32
|
+
import "./accounts-CvwEUGLi.js";
|
|
33
|
+
import { s as resolveStorePath } from "./paths-0WxUzzEz.js";
|
|
34
|
+
import "./tool-images-DktJ_8C5.js";
|
|
35
|
+
import "./image-Cw0N8PLF.js";
|
|
36
|
+
import { h as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DcmYYRTV.js";
|
|
37
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-C7bGdK_0.js";
|
|
38
|
+
import "./fetch-guard-Danf_0St.js";
|
|
39
|
+
import "./api-key-rotation-GaH2pQmb.js";
|
|
40
|
+
import "./proxy-fetch-ChfJDZwG.js";
|
|
41
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-CeK8iZwE.js";
|
|
42
42
|
import "./render-DW7AcFdD.js";
|
|
43
|
-
import "./target-errors-
|
|
44
|
-
import "./commands-registry-
|
|
45
|
-
import "./skill-commands-
|
|
43
|
+
import "./target-errors-Dcsvl3HX.js";
|
|
44
|
+
import "./commands-registry-CYzULUtG.js";
|
|
45
|
+
import "./skill-commands-LO2hG7Hm.js";
|
|
46
46
|
import "./fetch-BfuG8uZ8.js";
|
|
47
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
48
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
49
|
-
import "./send-
|
|
50
|
-
import "./outbound-attachment-
|
|
51
|
-
import "./send-
|
|
52
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
47
|
+
import { n as recordChannelActivity } from "./channel-activity-BtB_KYWB.js";
|
|
48
|
+
import { t as convertMarkdownTables } from "./tables-BpeU6RzS.js";
|
|
49
|
+
import "./send-tBfK5Za7.js";
|
|
50
|
+
import "./outbound-attachment-gUN8NzLf.js";
|
|
51
|
+
import "./send-CYoz4Xjy.js";
|
|
52
|
+
import { r as setActiveWebListener } from "./active-listener-BrRv4Xwc.js";
|
|
53
53
|
import "./proxy-CecQTx_Z.js";
|
|
54
|
-
import "./manager-
|
|
55
|
-
import "./query-expansion-
|
|
56
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./outbound-
|
|
57
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
58
|
-
import { t as loginWeb } from "./login-
|
|
54
|
+
import "./manager-DD6mzJNU.js";
|
|
55
|
+
import "./query-expansion-CzkZbxDS.js";
|
|
56
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp, t as sendMessageWhatsApp } from "./outbound-qbvc4GA6.js";
|
|
57
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-Dn8bzB0l.js";
|
|
58
|
+
import { t as loginWeb } from "./login-CHghmysG.js";
|
|
59
59
|
import { randomUUID } from "node:crypto";
|
|
60
60
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
61
61
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { n as resolveWhatsAppAccount } from "./accounts-
|
|
10
|
-
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-
|
|
11
|
-
import "./image-ops-
|
|
12
|
-
import "./path-alias-guards-
|
|
13
|
-
import "./fs-safe-
|
|
14
|
-
import "./proxy-env-
|
|
15
|
-
import "./tool-images-
|
|
16
|
-
import "./fetch-
|
|
17
|
-
import "./fetch-guard-
|
|
18
|
-
import "./ir-
|
|
1
|
+
import "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import "./paths-C6TxBCvO.js";
|
|
3
|
+
import "./subsystem-W834z9Wa.js";
|
|
4
|
+
import "./workspace-BhNk7PBH.js";
|
|
5
|
+
import "./logger-D4RcXHR-.js";
|
|
6
|
+
import "./model-selection-CLGE3YIs.js";
|
|
7
|
+
import "./github-copilot-token-D13V9YBz.js";
|
|
8
|
+
import "./legacy-names-Bkl4tjN-.js";
|
|
9
|
+
import { n as resolveWhatsAppAccount } from "./accounts-BfUDrXkg.js";
|
|
10
|
+
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-BZY4UQdP.js";
|
|
11
|
+
import "./image-ops-C23SGeMe.js";
|
|
12
|
+
import "./path-alias-guards-BzNEeFKJ.js";
|
|
13
|
+
import "./fs-safe-Cou1ijNV.js";
|
|
14
|
+
import "./proxy-env-BgSzvACM.js";
|
|
15
|
+
import "./tool-images-DktJ_8C5.js";
|
|
16
|
+
import "./fetch-C7bGdK_0.js";
|
|
17
|
+
import "./fetch-guard-Danf_0St.js";
|
|
18
|
+
import "./ir-CeK8iZwE.js";
|
|
19
19
|
import "./render-DW7AcFdD.js";
|
|
20
|
-
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
21
|
-
import "./tables-
|
|
22
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
20
|
+
import { f as readReactionParams, h as readStringParam, i as ToolAuthorizationError, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-Dcsvl3HX.js";
|
|
21
|
+
import "./tables-BpeU6RzS.js";
|
|
22
|
+
import { r as sendReactionWhatsApp } from "./outbound-qbvc4GA6.js";
|
|
23
23
|
|
|
24
24
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
25
25
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { c as danger, p as shouldLogVerbose } from "./subsystem-
|
|
3
|
-
import { g as pathExists$1, n as logError, t as logDebug, y as resolveUserPath } from "./logger-
|
|
1
|
+
import { d as resolveRequiredHomeDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { c as danger, p as shouldLogVerbose } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { g as pathExists$1, n as logError, t as logDebug, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import { execFile, spawn } from "node:child_process";
|
|
10
10
|
import process$1 from "node:process";
|
|
@@ -560,7 +560,7 @@ function resolveBoundaryPathLexicalSync(params) {
|
|
|
560
560
|
rootCanonicalPath: params.rootCanonicalPath,
|
|
561
561
|
resolveParams: params.params,
|
|
562
562
|
absolutePath: params.absolutePath,
|
|
563
|
-
read: (cursor) =>
|
|
563
|
+
read: (cursor) => syncFs.lstatSync(cursor)
|
|
564
564
|
});
|
|
565
565
|
if (isPromiseLike(maybeStat)) throw new Error("Unexpected async lexical stat");
|
|
566
566
|
const stat = maybeStat;
|
|
@@ -706,15 +706,15 @@ function resolvePathViaExistingAncestorSync(targetPath) {
|
|
|
706
706
|
const normalized = path.resolve(targetPath);
|
|
707
707
|
let cursor = normalized;
|
|
708
708
|
const missingSuffix = [];
|
|
709
|
-
while (!isFilesystemRoot(cursor) && !
|
|
709
|
+
while (!isFilesystemRoot(cursor) && !syncFs.existsSync(cursor)) {
|
|
710
710
|
missingSuffix.unshift(path.basename(cursor));
|
|
711
711
|
const parent = path.dirname(cursor);
|
|
712
712
|
if (parent === cursor) break;
|
|
713
713
|
cursor = parent;
|
|
714
714
|
}
|
|
715
|
-
if (!
|
|
715
|
+
if (!syncFs.existsSync(cursor)) return normalized;
|
|
716
716
|
try {
|
|
717
|
-
const resolvedAncestor = path.resolve(
|
|
717
|
+
const resolvedAncestor = path.resolve(syncFs.realpathSync(cursor));
|
|
718
718
|
if (missingSuffix.length === 0) return resolvedAncestor;
|
|
719
719
|
return path.resolve(resolvedAncestor, ...missingSuffix);
|
|
720
720
|
} catch {
|
|
@@ -739,7 +739,7 @@ function getPathKindSync(absolutePath, preserveFinalSymlink) {
|
|
|
739
739
|
try {
|
|
740
740
|
return {
|
|
741
741
|
exists: true,
|
|
742
|
-
kind: toResolvedKind(preserveFinalSymlink ?
|
|
742
|
+
kind: toResolvedKind(preserveFinalSymlink ? syncFs.lstatSync(absolutePath) : syncFs.statSync(absolutePath))
|
|
743
743
|
};
|
|
744
744
|
} catch (error) {
|
|
745
745
|
if (isNotFoundPathError(error)) return {
|
|
@@ -799,10 +799,10 @@ async function resolveSymlinkHopPath(symlinkPath) {
|
|
|
799
799
|
}
|
|
800
800
|
function resolveSymlinkHopPathSync(symlinkPath) {
|
|
801
801
|
try {
|
|
802
|
-
return path.resolve(
|
|
802
|
+
return path.resolve(syncFs.realpathSync(symlinkPath));
|
|
803
803
|
} catch (error) {
|
|
804
804
|
if (!isNotFoundPathError(error)) throw error;
|
|
805
|
-
const linkTarget =
|
|
805
|
+
const linkTarget = syncFs.readlinkSync(symlinkPath);
|
|
806
806
|
return resolvePathViaExistingAncestorSync(path.resolve(path.dirname(symlinkPath), linkTarget));
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -828,7 +828,7 @@ function sameFileIdentity(left, right) {
|
|
|
828
828
|
return sameFileIdentity$1(left, right);
|
|
829
829
|
}
|
|
830
830
|
function openVerifiedFileSync(params) {
|
|
831
|
-
const ioFs = params.ioFs ??
|
|
831
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
832
832
|
const allowedType = params.allowedType ?? "file";
|
|
833
833
|
const openReadFlags = ioFs.constants.O_RDONLY | (typeof ioFs.constants.O_NOFOLLOW === "number" ? ioFs.constants.O_NOFOLLOW : 0);
|
|
834
834
|
let fd = null;
|
|
@@ -905,7 +905,7 @@ function canUseBoundaryFileOpen(ioFs) {
|
|
|
905
905
|
return typeof ioFs.openSync === "function" && typeof ioFs.closeSync === "function" && typeof ioFs.fstatSync === "function" && typeof ioFs.lstatSync === "function" && typeof ioFs.realpathSync === "function" && typeof ioFs.readFileSync === "function" && typeof ioFs.constants === "object" && ioFs.constants !== null;
|
|
906
906
|
}
|
|
907
907
|
function openBoundaryFileSync(params) {
|
|
908
|
-
const ioFs = params.ioFs ??
|
|
908
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
909
909
|
const resolved = resolveBoundaryFilePathGeneric({
|
|
910
910
|
absolutePath: params.absolutePath,
|
|
911
911
|
resolve: (absolutePath) => resolveBoundaryPathSync({
|
|
@@ -956,7 +956,7 @@ function finalizeBoundaryFileOpen(params) {
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
async function openBoundaryFile(params) {
|
|
959
|
-
const ioFs = params.ioFs ??
|
|
959
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
960
960
|
const maybeResolved = resolveBoundaryFilePathGeneric({
|
|
961
961
|
absolutePath: params.absolutePath,
|
|
962
962
|
resolve: (absolutePath) => resolveBoundaryPath({
|
|
@@ -1105,7 +1105,7 @@ function resolveNpmArgvForWindows(argv) {
|
|
|
1105
1105
|
if (!cliName) return null;
|
|
1106
1106
|
const nodeDir = path.dirname(process$1.execPath);
|
|
1107
1107
|
const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
|
|
1108
|
-
if (!
|
|
1108
|
+
if (!syncFs.existsSync(cliPath)) return null;
|
|
1109
1109
|
return [
|
|
1110
1110
|
process$1.execPath,
|
|
1111
1111
|
cliPath,
|
|
@@ -1307,7 +1307,7 @@ async function readPackageName(dir) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function readPackageNameSync(dir) {
|
|
1309
1309
|
try {
|
|
1310
|
-
const raw =
|
|
1310
|
+
const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
1311
1311
|
const parsed = JSON.parse(raw);
|
|
1312
1312
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
1313
1313
|
} catch {
|
|
@@ -1341,7 +1341,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
1341
1341
|
const normalized = path.resolve(argv1);
|
|
1342
1342
|
const candidates = [path.dirname(normalized)];
|
|
1343
1343
|
try {
|
|
1344
|
-
const resolved =
|
|
1344
|
+
const resolved = syncFs.realpathSync(normalized);
|
|
1345
1345
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
1346
1346
|
} catch {}
|
|
1347
1347
|
const parts = normalized.split(path.sep);
|
|
@@ -1453,14 +1453,14 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1453
1453
|
const identity = workspaceFileIdentity(opened.stat, opened.path);
|
|
1454
1454
|
const cached = workspaceFileCache.get(params.filePath);
|
|
1455
1455
|
if (cached && cached.identity === identity) {
|
|
1456
|
-
|
|
1456
|
+
syncFs.closeSync(opened.fd);
|
|
1457
1457
|
return {
|
|
1458
1458
|
ok: true,
|
|
1459
1459
|
content: cached.content
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
1462
1462
|
try {
|
|
1463
|
-
const content =
|
|
1463
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
1464
1464
|
workspaceFileCache.set(params.filePath, {
|
|
1465
1465
|
content,
|
|
1466
1466
|
identity
|
|
@@ -1477,7 +1477,7 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
1477
1477
|
error
|
|
1478
1478
|
};
|
|
1479
1479
|
} finally {
|
|
1480
|
-
|
|
1480
|
+
syncFs.closeSync(opened.fd);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
function stripFrontMatter(content) {
|