@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,11 +1,11 @@
|
|
|
1
|
-
import { t as runTasksWithConcurrency } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { t as redactSensitiveText } from "./redact-
|
|
4
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
1
|
+
import { t as runTasksWithConcurrency } from "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { t as redactSensitiveText } from "./redact-DGz6yigq.js";
|
|
4
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-0WxUzzEz.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import syncFs from "node:fs";
|
|
9
9
|
import crypto from "node:crypto";
|
|
10
10
|
|
|
11
11
|
//#region src/memory/fs-utils.ts
|
|
@@ -31,7 +31,7 @@ async function statRegularFile(absPath) {
|
|
|
31
31
|
//#region src/memory/internal.ts
|
|
32
32
|
function ensureDir(dir) {
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
35
35
|
} catch {}
|
|
36
36
|
return dir;
|
|
37
37
|
}
|
|
@@ -404,14 +404,14 @@ async function runCli(argv = process$1.argv) {
|
|
|
404
404
|
if (!hasHelpOrVersion(normalizedArgv)) {
|
|
405
405
|
const { readConfigFileSnapshot } = await import("./auth-profiles-1kLg_p4r.js").then((n) => n.F);
|
|
406
406
|
if (!(await readConfigFileSnapshot()).exists) {
|
|
407
|
-
const { runFirstRunCloudConnect } = await import("./cloud-connect-
|
|
407
|
+
const { runFirstRunCloudConnect } = await import("./cloud-connect-yv8A2P84.js");
|
|
408
408
|
await runFirstRunCloudConnect();
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
if (!hasHelpOrVersion(normalizedArgv)) {
|
|
413
413
|
if (!getPrimaryCommand(normalizedArgv)) {
|
|
414
|
-
const { showLaunchMenu } = await import("./cloud-connect-
|
|
414
|
+
const { showLaunchMenu } = await import("./cloud-connect-yv8A2P84.js");
|
|
415
415
|
await showLaunchMenu();
|
|
416
416
|
return;
|
|
417
417
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { $ as parseAgentSessionKey, B as resolveAgentIdFromSessionKey, R as normalizeAgentId, j as DEFAULT_AGENT_ID, p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
4
|
-
import { y as resolveUserPath } from "./logger-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { $ as parseAgentSessionKey, B as resolveAgentIdFromSessionKey, R as normalizeAgentId, j as DEFAULT_AGENT_ID, p as resolveDefaultAgentWorkspaceDir } from "./workspace-BhNk7PBH.js";
|
|
4
|
+
import { y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/config/model-input.ts
|
|
@@ -0,0 +1,13 @@
|
|
|
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 "./accounts-BfUDrXkg.js";
|
|
10
|
+
import "./session-Dn8bzB0l.js";
|
|
11
|
+
import { t as loginWeb } from "./login-CHghmysG.js";
|
|
12
|
+
|
|
13
|
+
export { loginWeb };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 "./accounts-BfUDrXkg.js";
|
|
10
|
+
import "./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 "./fetch-C7bGdK_0.js";
|
|
16
|
+
import "./fetch-guard-Danf_0St.js";
|
|
17
|
+
import "./ir-CeK8iZwE.js";
|
|
18
|
+
import "./render-DW7AcFdD.js";
|
|
19
|
+
import "./tables-BpeU6RzS.js";
|
|
20
|
+
import { n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./outbound-qbvc4GA6.js";
|
|
21
|
+
|
|
22
|
+
export { sendMessageWhatsApp, sendPollWhatsApp };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
2
|
-
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
3
|
-
import { S as retryAsync, Z as loadConfig, x as resolveRetryConfig } from "./model-selection-
|
|
4
|
-
import { E as normalizeDiscordToken, T as resolveDiscordAccount } from "./plugins-
|
|
1
|
+
import { w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-BhNk7PBH.js";
|
|
3
|
+
import { S as retryAsync, Z as loadConfig, x as resolveRetryConfig } from "./model-selection-CLGE3YIs.js";
|
|
4
|
+
import { E as normalizeDiscordToken, T as resolveDiscordAccount } from "./plugins-BZY4UQdP.js";
|
|
5
5
|
import { i as requireTargetKind, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Bhj5bO-0.js";
|
|
6
|
-
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
+
import { k as maxBytesForKind, x as extensionForMime } from "./image-ops-C23SGeMe.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, m as resolveChunkMode, o as loadWebMediaRaw, s as resolveMarkdownTableMode } from "./ir-CeK8iZwE.js";
|
|
8
8
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
9
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-
|
|
9
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner } from "./channel-activity-BtB_KYWB.js";
|
|
10
10
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
11
11
|
import { n as normalizePollInput, t as normalizePollDurationHours } from "./polls-C_BruSkP.js";
|
|
12
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
+
import { t as convertMarkdownTables } from "./tables-BpeU6RzS.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import { promisify } from "node:util";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
2
|
-
import { Z as loadConfig } from "./model-selection-
|
|
3
|
-
import { E as kindFromMime } from "./image-ops-
|
|
4
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
5
|
-
import { s as resolveMarkdownTableMode } from "./ir-
|
|
6
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
7
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
1
|
+
import { h as normalizeE164, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
2
|
+
import { Z as loadConfig } from "./model-selection-CLGE3YIs.js";
|
|
3
|
+
import { E as kindFromMime } from "./image-ops-C23SGeMe.js";
|
|
4
|
+
import { t as resolveIMessageAccount } from "./accounts-CvwEUGLi.js";
|
|
5
|
+
import { s as resolveMarkdownTableMode } from "./ir-CeK8iZwE.js";
|
|
6
|
+
import { t as convertMarkdownTables } from "./tables-BpeU6RzS.js";
|
|
7
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-gUN8NzLf.js";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import { createInterface } from "node:readline";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as logVerbose } from "./subsystem-
|
|
2
|
-
import { Z as loadConfig } from "./model-selection-
|
|
3
|
-
import { i as isSilentReplyText } from "./tokens-
|
|
4
|
-
import { _ as resolveSlackAccount, b as resolveSlackBotToken } from "./plugins-
|
|
1
|
+
import { u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { Z as loadConfig } from "./model-selection-CLGE3YIs.js";
|
|
3
|
+
import { i as isSilentReplyText } from "./tokens-Cyi-NbsV.js";
|
|
4
|
+
import { _ as resolveSlackAccount, b as resolveSlackBotToken } from "./plugins-BZY4UQdP.js";
|
|
5
5
|
import { i as requireTargetKind, n as ensureTargetId, r as parseMentionPrefixOrAtUserTarget, t as buildMessagingTarget } from "./targets-Bhj5bO-0.js";
|
|
6
|
-
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
7
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Danf_0St.js";
|
|
7
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-CeK8iZwE.js";
|
|
8
8
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
9
9
|
import { WebClient } from "@slack/web-api";
|
|
10
10
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { a as CONFIG_DIR, b as safeParseJson } from "./logger-
|
|
5
|
-
import { $ as readConfigFileSnapshotForWrite, Gn as resolveTelegramPreviewStreamMode, Z as loadConfig, cr as withFileLock$1, er as isTruthyEnvValue, tt as writeConfigFile } from "./model-selection-
|
|
6
|
-
import { n as listChannelPlugins, t as getChannelPlugin, u as resolveTelegramAccount } from "./plugins-
|
|
1
|
+
import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix, o as resolveOAuthDir } from "./paths-C6TxBCvO.js";
|
|
2
|
+
import { c as danger, t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { G as normalizeAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-BhNk7PBH.js";
|
|
4
|
+
import { a as CONFIG_DIR, b as safeParseJson } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { $ as readConfigFileSnapshotForWrite, Gn as resolveTelegramPreviewStreamMode, Z as loadConfig, cr as withFileLock$1, er as isTruthyEnvValue, tt as writeConfigFile } from "./model-selection-CLGE3YIs.js";
|
|
6
|
+
import { n as listChannelPlugins, t as getChannelPlugin, u as resolveTelegramAccount } from "./plugins-BZY4UQdP.js";
|
|
7
7
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget, t as normalizeTelegramChatId } from "./targets-BiE9e9-P.js";
|
|
8
|
-
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-
|
|
9
|
-
import { t as redactSensitiveText } from "./redact-
|
|
10
|
-
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-
|
|
11
|
-
import { t as hasProxyEnvConfigured } from "./proxy-env-
|
|
8
|
+
import { D as normalizeMimeType, E as kindFromMime, S as getFileExtension, T as isGifMedia } from "./image-ops-C23SGeMe.js";
|
|
9
|
+
import { t as redactSensitiveText } from "./redact-DGz6yigq.js";
|
|
10
|
+
import { i as formatUncaughtError, n as extractErrorCode, o as readErrorName, r as formatErrorMessage, t as collectErrorGraphCandidates } from "./errors-DDrhcWHi.js";
|
|
11
|
+
import { t as hasProxyEnvConfigured } from "./proxy-env-BgSzvACM.js";
|
|
12
12
|
import { r as writeJsonAtomic } from "./json-files-D7-rxoSr.js";
|
|
13
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
14
|
-
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
13
|
+
import { t as makeProxyFetch } from "./proxy-fetch-ChfJDZwG.js";
|
|
14
|
+
import { a as loadWebMedia, n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-CeK8iZwE.js";
|
|
15
15
|
import { t as renderMarkdownWithMarkers } from "./render-DW7AcFdD.js";
|
|
16
16
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
17
|
-
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-
|
|
17
|
+
import { i as createTelegramRetryRunner, n as recordChannelActivity } from "./channel-activity-BtB_KYWB.js";
|
|
18
18
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-BFUunM8u.js";
|
|
19
19
|
import { n as normalizePollInput } from "./polls-C_BruSkP.js";
|
|
20
20
|
import fs from "node:fs/promises";
|
|
21
21
|
import os from "node:os";
|
|
22
22
|
import path from "node:path";
|
|
23
|
-
import
|
|
23
|
+
import syncFs, { readFileSync } from "node:fs";
|
|
24
24
|
import JSON5 from "json5";
|
|
25
25
|
import process$1 from "node:process";
|
|
26
26
|
import crypto, { randomBytes } from "node:crypto";
|
|
@@ -81,7 +81,7 @@ function getPairingAdapter(channelId) {
|
|
|
81
81
|
//#region src/plugin-sdk/json-store.ts
|
|
82
82
|
async function readJsonFileWithFallback(filePath, fallback) {
|
|
83
83
|
try {
|
|
84
|
-
const parsed = safeParseJson(await
|
|
84
|
+
const parsed = safeParseJson(await syncFs.promises.readFile(filePath, "utf-8"));
|
|
85
85
|
if (parsed == null) return {
|
|
86
86
|
value: fallback,
|
|
87
87
|
exists: true
|
|
@@ -168,7 +168,7 @@ async function readPairingRequests(filePath) {
|
|
|
168
168
|
}
|
|
169
169
|
async function ensureJsonFile(filePath, fallback) {
|
|
170
170
|
try {
|
|
171
|
-
await
|
|
171
|
+
await syncFs.promises.access(filePath);
|
|
172
172
|
} catch {
|
|
173
173
|
await writeJsonFile(filePath, fallback);
|
|
174
174
|
}
|
|
@@ -324,7 +324,7 @@ function resolveAllowFromReadCacheOrMissing(filePath, stat) {
|
|
|
324
324
|
async function readAllowFromStateForPathWithExists(channel, filePath) {
|
|
325
325
|
let stat = null;
|
|
326
326
|
try {
|
|
327
|
-
stat = await
|
|
327
|
+
stat = await syncFs.promises.stat(filePath);
|
|
328
328
|
} catch (err) {
|
|
329
329
|
if (err.code !== "ENOENT") throw err;
|
|
330
330
|
}
|
|
@@ -367,7 +367,7 @@ async function writeAllowFromState(filePath, allowFrom) {
|
|
|
367
367
|
});
|
|
368
368
|
let stat = null;
|
|
369
369
|
try {
|
|
370
|
-
stat = await
|
|
370
|
+
stat = await syncFs.promises.stat(filePath);
|
|
371
371
|
} catch {}
|
|
372
372
|
setAllowFromReadCache(filePath, {
|
|
373
373
|
exists: true,
|
|
@@ -974,7 +974,7 @@ function resolveCronStorePath(storePath) {
|
|
|
974
974
|
}
|
|
975
975
|
async function loadCronStore(storePath) {
|
|
976
976
|
try {
|
|
977
|
-
const raw = await
|
|
977
|
+
const raw = await syncFs.promises.readFile(storePath, "utf-8");
|
|
978
978
|
let parsed;
|
|
979
979
|
try {
|
|
980
980
|
parsed = JSON5.parse(raw);
|
|
@@ -1000,21 +1000,21 @@ async function loadCronStore(storePath) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function setSecureFileMode(filePath) {
|
|
1003
|
-
await
|
|
1003
|
+
await syncFs.promises.chmod(filePath, 384).catch(() => void 0);
|
|
1004
1004
|
}
|
|
1005
1005
|
async function saveCronStore(storePath, store, opts) {
|
|
1006
1006
|
const storeDir = path.dirname(storePath);
|
|
1007
|
-
await
|
|
1007
|
+
await syncFs.promises.mkdir(storeDir, {
|
|
1008
1008
|
recursive: true,
|
|
1009
1009
|
mode: 448
|
|
1010
1010
|
});
|
|
1011
|
-
await
|
|
1011
|
+
await syncFs.promises.chmod(storeDir, 448).catch(() => void 0);
|
|
1012
1012
|
const json = JSON.stringify(store, null, 2);
|
|
1013
1013
|
const cached = serializedStoreCache.get(storePath);
|
|
1014
1014
|
if (cached === json) return;
|
|
1015
1015
|
let previous = cached ?? null;
|
|
1016
1016
|
if (previous === null) try {
|
|
1017
|
-
previous = await
|
|
1017
|
+
previous = await syncFs.promises.readFile(storePath, "utf-8");
|
|
1018
1018
|
} catch (err) {
|
|
1019
1019
|
if (err.code !== "ENOENT") throw err;
|
|
1020
1020
|
}
|
|
@@ -1023,14 +1023,14 @@ async function saveCronStore(storePath, store, opts) {
|
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
const tmp = `${storePath}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
1026
|
-
await
|
|
1026
|
+
await syncFs.promises.writeFile(tmp, json, {
|
|
1027
1027
|
encoding: "utf-8",
|
|
1028
1028
|
mode: 384
|
|
1029
1029
|
});
|
|
1030
1030
|
await setSecureFileMode(tmp);
|
|
1031
1031
|
if (previous !== null && !opts?.skipBackup) try {
|
|
1032
1032
|
const backupPath = `${storePath}.bak`;
|
|
1033
|
-
await
|
|
1033
|
+
await syncFs.promises.copyFile(storePath, backupPath);
|
|
1034
1034
|
await setSecureFileMode(backupPath);
|
|
1035
1035
|
} catch {}
|
|
1036
1036
|
await renameWithRetry(tmp, storePath);
|
|
@@ -1041,7 +1041,7 @@ const RENAME_MAX_RETRIES = 3;
|
|
|
1041
1041
|
const RENAME_BASE_DELAY_MS = 50;
|
|
1042
1042
|
async function renameWithRetry(src, dest) {
|
|
1043
1043
|
for (let attempt = 0; attempt <= RENAME_MAX_RETRIES; attempt++) try {
|
|
1044
|
-
await
|
|
1044
|
+
await syncFs.promises.rename(src, dest);
|
|
1045
1045
|
return;
|
|
1046
1046
|
} catch (err) {
|
|
1047
1047
|
const code = err.code;
|
|
@@ -1050,8 +1050,8 @@ async function renameWithRetry(src, dest) {
|
|
|
1050
1050
|
continue;
|
|
1051
1051
|
}
|
|
1052
1052
|
if (code === "EPERM" || code === "EEXIST") {
|
|
1053
|
-
await
|
|
1054
|
-
await
|
|
1053
|
+
await syncFs.promises.copyFile(src, dest);
|
|
1054
|
+
await syncFs.promises.unlink(src).catch(() => {});
|
|
1055
1055
|
return;
|
|
1056
1056
|
}
|
|
1057
1057
|
throw err;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Z as loadConfig } from "./model-selection-
|
|
1
|
+
import { Z as loadConfig } from "./model-selection-CLGE3YIs.js";
|
|
2
2
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
3
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
4
|
-
import { E as kindFromMime } from "./image-ops-
|
|
3
|
+
import { n as resolveSignalAccount } from "./accounts-CU6IpCdO.js";
|
|
4
|
+
import { E as kindFromMime } from "./image-ops-C23SGeMe.js";
|
|
5
5
|
import { n as fetchWithTimeout } from "./fetch-timeout-Wgx3OXYj.js";
|
|
6
|
-
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-
|
|
6
|
+
import { n as markdownToIR, s as resolveMarkdownTableMode, t as chunkMarkdownIR } from "./ir-CeK8iZwE.js";
|
|
7
7
|
import { t as resolveFetch } from "./fetch-BfuG8uZ8.js";
|
|
8
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
8
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-gUN8NzLf.js";
|
|
9
9
|
|
|
10
10
|
//#region src/signal/format.ts
|
|
11
11
|
function normalizeUrlForComparison(url) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-
|
|
2
|
-
import { l as ensureDir, y as resolveUserPath } from "./logger-
|
|
3
|
-
import { Xn as VERSION, fr as formatCliCommand } from "./model-selection-
|
|
4
|
-
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-
|
|
5
|
-
import
|
|
1
|
+
import { c as danger, m as success, x as toPinoLikeLogger, y as getChildLogger } from "./subsystem-W834z9Wa.js";
|
|
2
|
+
import { l as ensureDir, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
3
|
+
import { Xn as VERSION, fr as formatCliCommand } from "./model-selection-CLGE3YIs.js";
|
|
4
|
+
import { d as resolveDefaultWebAuthDir, f as resolveWebCredsBackupPath, l as readCredsJsonRaw, p as resolveWebCredsPath, s as maybeRestoreCredsFromBackup } from "./accounts-BfUDrXkg.js";
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { DisconnectReason, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWASocket, useMultiFileAuthState } from "@whiskeysockets/baileys";
|
|
8
8
|
import qrcode from "qrcode-terminal";
|
|
@@ -21,16 +21,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
21
21
|
const raw = readCredsJsonRaw(credsPath);
|
|
22
22
|
if (raw) try {
|
|
23
23
|
JSON.parse(raw);
|
|
24
|
-
|
|
24
|
+
syncFs.copyFileSync(credsPath, backupPath);
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
syncFs.chmodSync(backupPath, 384);
|
|
27
27
|
} catch {}
|
|
28
28
|
} catch {}
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
await Promise.resolve(saveCreds());
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
syncFs.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
34
34
|
} catch {}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
4
|
-
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import { c as resolveStateDir } from "./paths-C6TxBCvO.js";
|
|
3
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-W834z9Wa.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-mpCKgKof.js";
|
|
6
6
|
import { t as createAsyncLock } from "./json-files-D7-rxoSr.js";
|
|
7
|
-
import { i as listChatCommands } from "./commands-registry-
|
|
7
|
+
import { i as listChatCommands } from "./commands-registry-CYzULUtG.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import chokidar from "chokidar";
|
|
13
13
|
|
|
@@ -252,13 +252,13 @@ function listSkillCommandsForAgents(params) {
|
|
|
252
252
|
const workspaceFilters = /* @__PURE__ */ new Map();
|
|
253
253
|
for (const agentId of agentIds) {
|
|
254
254
|
const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);
|
|
255
|
-
if (!
|
|
255
|
+
if (!syncFs.existsSync(workspaceDir)) {
|
|
256
256
|
logVerbose(`Skipping agent "${agentId}": workspace does not exist: ${workspaceDir}`);
|
|
257
257
|
continue;
|
|
258
258
|
}
|
|
259
259
|
let canonicalDir;
|
|
260
260
|
try {
|
|
261
|
-
canonicalDir =
|
|
261
|
+
canonicalDir = syncFs.realpathSync(workspaceDir);
|
|
262
262
|
} catch {
|
|
263
263
|
logVerbose(`Skipping agent "${agentId}": cannot resolve workspace: ${workspaceDir}`);
|
|
264
264
|
continue;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as normalizeSkillFilter } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-
|
|
4
|
-
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { $n as isDangerousHostEnvVarName, Bt as resolveEffectiveEnableState, Kn as isPathInsideWithRealpath, Pt as loadPluginManifestRegistry, Vt as resolveMemorySlotDecision, yr as normalizeResolvedSecretInputString, zt as normalizePluginsConfig } from "./model-selection-
|
|
6
|
-
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-
|
|
7
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { m as normalizeSkillFilter } from "./run-with-concurrency-Ccm0w34R.js";
|
|
2
|
+
import { t as createSubsystemLogger, w as resolvePreferredOpenClawTmpDir } from "./subsystem-W834z9Wa.js";
|
|
3
|
+
import { O as isPathInside, h as resolveOpenClawPackageRootSync } from "./workspace-BhNk7PBH.js";
|
|
4
|
+
import { a as CONFIG_DIR, y as resolveUserPath } from "./logger-D4RcXHR-.js";
|
|
5
|
+
import { $n as isDangerousHostEnvVarName, Bt as resolveEffectiveEnableState, Kn as isPathInsideWithRealpath, Pt as loadPluginManifestRegistry, Vt as resolveMemorySlotDecision, yr as normalizeResolvedSecretInputString, zt as normalizePluginsConfig } from "./model-selection-CLGE3YIs.js";
|
|
6
|
+
import { a as resolveOpenClawManifestBlock, c as resolveOpenClawManifestRequires, d as hasBinary, f as isConfigPathTruthyWithDefaults, i as parseOpenClawManifestInstallBase, l as parseFrontmatterBlock, n as normalizeStringList, o as resolveOpenClawManifestInstall, r as parseFrontmatterBool, s as resolveOpenClawManifestOs, t as getFrontmatterString, u as evaluateRuntimeEligibility } from "./frontmatter-BFHzrAY7.js";
|
|
7
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-BzNEeFKJ.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import syncFs from "node:fs";
|
|
11
11
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
12
12
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
13
13
|
|
|
@@ -543,13 +543,13 @@ function shortPath(value) {
|
|
|
543
543
|
//#region src/agents/skills/bundled-dir.ts
|
|
544
544
|
function looksLikeSkillsDir(dir) {
|
|
545
545
|
try {
|
|
546
|
-
const entries =
|
|
546
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
547
547
|
for (const entry of entries) {
|
|
548
548
|
if (entry.name.startsWith(".")) continue;
|
|
549
549
|
const fullPath = path.join(dir, entry.name);
|
|
550
550
|
if (entry.isFile() && entry.name.endsWith(".md")) return true;
|
|
551
551
|
if (entry.isDirectory()) {
|
|
552
|
-
if (
|
|
552
|
+
if (syncFs.existsSync(path.join(fullPath, "SKILL.md"))) return true;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
} catch {
|
|
@@ -564,7 +564,7 @@ function resolveBundledSkillsDir(opts = {}) {
|
|
|
564
564
|
const execPath = opts.execPath ?? process.execPath;
|
|
565
565
|
const execDir = path.dirname(execPath);
|
|
566
566
|
const sibling = path.join(execDir, "skills");
|
|
567
|
-
if (
|
|
567
|
+
if (syncFs.existsSync(sibling)) return sibling;
|
|
568
568
|
} catch {}
|
|
569
569
|
try {
|
|
570
570
|
const moduleUrl = opts.moduleUrl ?? import.meta.url;
|
|
@@ -627,7 +627,7 @@ function resolvePluginSkillDirs(params) {
|
|
|
627
627
|
const trimmed = raw.trim();
|
|
628
628
|
if (!trimmed) continue;
|
|
629
629
|
const candidate = path.resolve(record.rootDir, trimmed);
|
|
630
|
-
if (!
|
|
630
|
+
if (!syncFs.existsSync(candidate)) {
|
|
631
631
|
log.warn(`plugin skill path not found (${record.id}): ${candidate}`);
|
|
632
632
|
continue;
|
|
633
633
|
}
|
|
@@ -658,7 +658,7 @@ async function serializeByKey(key, task) {
|
|
|
658
658
|
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region src/agents/skills/workspace.ts
|
|
661
|
-
const fsp =
|
|
661
|
+
const fsp = syncFs.promises;
|
|
662
662
|
const skillsLogger = createSubsystemLogger("skills");
|
|
663
663
|
const skillCommandDebugOnce = /* @__PURE__ */ new Set();
|
|
664
664
|
/**
|
|
@@ -735,7 +735,7 @@ function resolveSkillsLimits(config) {
|
|
|
735
735
|
}
|
|
736
736
|
function listChildDirectories(dir) {
|
|
737
737
|
try {
|
|
738
|
-
const entries =
|
|
738
|
+
const entries = syncFs.readdirSync(dir, { withFileTypes: true });
|
|
739
739
|
const dirs = [];
|
|
740
740
|
for (const entry of entries) {
|
|
741
741
|
if (entry.name.startsWith(".")) continue;
|
|
@@ -746,7 +746,7 @@ function listChildDirectories(dir) {
|
|
|
746
746
|
continue;
|
|
747
747
|
}
|
|
748
748
|
if (entry.isSymbolicLink()) try {
|
|
749
|
-
if (
|
|
749
|
+
if (syncFs.statSync(fullPath).isDirectory()) dirs.push(entry.name);
|
|
750
750
|
} catch {}
|
|
751
751
|
}
|
|
752
752
|
return dirs;
|
|
@@ -757,7 +757,7 @@ function listChildDirectories(dir) {
|
|
|
757
757
|
function resolveNestedSkillsRoot(dir, opts) {
|
|
758
758
|
const nested = path.join(dir, "skills");
|
|
759
759
|
try {
|
|
760
|
-
if (!
|
|
760
|
+
if (!syncFs.existsSync(nested) || !syncFs.statSync(nested).isDirectory()) return { baseDir: dir };
|
|
761
761
|
} catch {
|
|
762
762
|
return { baseDir: dir };
|
|
763
763
|
}
|
|
@@ -766,7 +766,7 @@ function resolveNestedSkillsRoot(dir, opts) {
|
|
|
766
766
|
const toScan = scanLimit === 0 ? [] : nestedDirs.slice(0, Math.min(nestedDirs.length, scanLimit));
|
|
767
767
|
for (const name of toScan) {
|
|
768
768
|
const skillMd = path.join(nested, name, "SKILL.md");
|
|
769
|
-
if (
|
|
769
|
+
if (syncFs.existsSync(skillMd)) return {
|
|
770
770
|
baseDir: nested,
|
|
771
771
|
note: `Detected nested skills root at ${nested}`
|
|
772
772
|
};
|
|
@@ -786,9 +786,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
786
786
|
const loadSkills = (params) => {
|
|
787
787
|
const baseDir = resolveNestedSkillsRoot(params.dir, { maxEntriesToScan: limits.maxCandidatesPerRoot }).baseDir;
|
|
788
788
|
const rootSkillMd = path.join(baseDir, "SKILL.md");
|
|
789
|
-
if (
|
|
789
|
+
if (syncFs.existsSync(rootSkillMd)) {
|
|
790
790
|
try {
|
|
791
|
-
const size =
|
|
791
|
+
const size = syncFs.statSync(rootSkillMd).size;
|
|
792
792
|
if (size > limits.maxSkillFileBytes) {
|
|
793
793
|
skillsLogger.warn("Skipping skills root due to oversized SKILL.md.", {
|
|
794
794
|
dir: baseDir,
|
|
@@ -827,9 +827,9 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
827
827
|
for (const name of limitedChildren) {
|
|
828
828
|
const skillDir = path.join(baseDir, name);
|
|
829
829
|
const skillMd = path.join(skillDir, "SKILL.md");
|
|
830
|
-
if (!
|
|
830
|
+
if (!syncFs.existsSync(skillMd)) continue;
|
|
831
831
|
try {
|
|
832
|
-
const size =
|
|
832
|
+
const size = syncFs.statSync(skillMd).size;
|
|
833
833
|
if (size > limits.maxSkillFileBytes) {
|
|
834
834
|
skillsLogger.warn("Skipping skill due to oversized SKILL.md.", {
|
|
835
835
|
skill: name,
|
|
@@ -897,7 +897,7 @@ function loadSkillEntries(workspaceDir, opts) {
|
|
|
897
897
|
return Array.from(merged.values()).map((skill) => {
|
|
898
898
|
let frontmatter = {};
|
|
899
899
|
try {
|
|
900
|
-
frontmatter = parseFrontmatter(
|
|
900
|
+
frontmatter = parseFrontmatter(syncFs.readFileSync(skill.filePath, "utf-8"));
|
|
901
901
|
} catch {}
|
|
902
902
|
return {
|
|
903
903
|
skill,
|
|
@@ -0,0 +1,16 @@
|
|
|
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 "./accounts-BfUDrXkg.js";
|
|
11
|
+
import "./plugins-BZY4UQdP.js";
|
|
12
|
+
import "./accounts-CU6IpCdO.js";
|
|
13
|
+
import "./accounts-CvwEUGLi.js";
|
|
14
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-CYzULUtG.js";
|
|
15
|
+
|
|
16
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -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 { C as dispatchReplyWithDispatcher, I as resolveAgentRoute, L as finalizeInboundContext, i as deliverSlackSlashReplies, r as recordInboundSessionMetaSafe, u as createReplyPrefixOptions } 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 { kt as resolveConversationLabel } 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 "./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 { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./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 { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,20 @@
|
|
|
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 "./accounts-BfUDrXkg.js";
|
|
11
|
+
import "./plugins-BZY4UQdP.js";
|
|
12
|
+
import "./accounts-CU6IpCdO.js";
|
|
13
|
+
import "./frontmatter-BFHzrAY7.js";
|
|
14
|
+
import "./skills-mpCKgKof.js";
|
|
15
|
+
import "./path-alias-guards-BzNEeFKJ.js";
|
|
16
|
+
import "./accounts-CvwEUGLi.js";
|
|
17
|
+
import "./commands-registry-CYzULUtG.js";
|
|
18
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-LO2hG7Hm.js";
|
|
19
|
+
|
|
20
|
+
export { listSkillCommandsForAgents };
|