squidclaw 3.0.2 → 3.0.3
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-LA308FHj.js → accounts-CK_sHUyT.js} +2 -2
- package/dist/{accounts-CL_NXliB.js → accounts-CkF7YwoF.js} +17 -17
- package/dist/{accounts-F7tGwezI.js → accounts-DbloMfwT.js} +2 -2
- package/dist/{active-listener-DJv1FZqf.js → active-listener-AepfNSUY.js} +2 -2
- package/dist/{agents-DdixSPs3.js → agents-JnnOlm2G.js} +5 -5
- package/dist/{agents.config-Cn_vTN1v.js → agents.config-BeGeS2jv.js} +1 -1
- package/dist/{agents.config-C6KTwnde.js → agents.config-DHJBQ7uA.js} +1 -1
- package/dist/{plugin-sdk/api-key-rotation-DE4gr5YM.js → api-key-rotation-BHFJiYbw.js} +2 -2
- package/dist/{audio-preflight-AEM744TY.js → audio-preflight-BTYxAJjy.js} +32 -32
- package/dist/{audio-preflight-DpCWFB4z.js → audio-preflight-Dkl6Z32z.js} +4 -4
- package/dist/{audio-transcription-runner-CItniQDZ.js → audio-transcription-runner-DBkDgluo.js} +12 -12
- package/dist/{audio-transcription-runner-B2BdTEps.js → audio-transcription-runner-Gi_h5HEE.js} +1 -1
- package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.js} +4 -4
- package/dist/{auth-choice-7WVhiM9J.js → auth-choice-DQbCl-4F.js} +2 -2
- package/dist/{auth-choice-17U1cGPH.js → auth-choice-xwYK6txn.js} +2 -2
- package/dist/{banner-CJTrU-HC.js → banner-BxibaqUz.js} +1 -1
- 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-DPrXawu4.js → channel-activity-C5kTj83_.js} +3 -3
- package/dist/{channel-options-x47KAgAV.js → channel-options-BKsCYdHu.js} +1 -1
- package/dist/{channel-options-BM7IEY5X.js → channel-options-FdCN4cFo.js} +1 -1
- package/dist/{channel-web-B48pVgke.js → channel-web-BFUPrpIe.js} +1 -1
- package/dist/{channel-web-HM1q5FP_.js → channel-web-BkYtM8H5.js} +1 -1
- package/dist/{channels-cli-iPiD6449.js → channels-cli-BxhfVD-R.js} +7 -7
- package/dist/{channels-cli-y66ZCzYf.js → channels-cli-CZzGaGvG.js} +7 -7
- package/dist/{chrome-BQDCalPp.js → chrome-CAd6FQEn.js} +8 -8
- package/dist/{chrome-BFfAGQtd.js → chrome-pBkBuWci.js} +26 -26
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-C-neGkM4.js → cli-GSev2Q95.js} +2 -2
- package/dist/{cli-BzpBs_KI.js → cli-bXiYaLre.js} +2 -2
- package/dist/{command-registry-BL80-JCV.js → command-registry-CvgCFxfY.js} +9 -9
- package/dist/{commands-registry-C2t2bcZ6.js → commands-registry-D6ZOTo1C.js} +4 -4
- package/dist/{completion-cli-CJ_L_gYr.js → completion-cli-BGM1V6EN.js} +2 -2
- package/dist/{completion-cli-Bi2s1mq8.js → completion-cli-OrgUDc2S.js} +1 -1
- package/dist/{config-cli-FhKX7MOY.js → config-cli-DbBvjvpS.js} +1 -1
- package/dist/{config-cli-BVpzzhoY.js → config-cli-uIP4r17f.js} +1 -1
- package/dist/{configure-ChiLGQo6.js → configure-BGvoAfbs.js} +6 -6
- package/dist/{configure-t9fm4x9H.js → configure-BOsTXjBw.js} +6 -6
- package/dist/{daemon-cli-DK8fQgAw.js → daemon-cli-CNi-QjEX.js} +1 -1
- package/dist/{daemon-cli-CO09shIt.js → daemon-cli-DN2TnjHQ.js} +1 -1
- package/dist/{deliver-aL8yOYS1.js → deliver-BJuiq0GS.js} +1 -1
- package/dist/{deliver-neVJ7AU9.js → deliver-DBXe-ZmL.js} +21 -21
- package/dist/{deliver-runtime-ChVR6sR3.js → deliver-runtime-DHKcNQzq.js} +3 -3
- package/dist/deliver-runtime-GlnBJNCj.js +36 -0
- package/dist/deps-send-discord.runtime-BRE0s2nz.js +26 -0
- package/dist/deps-send-imessage.runtime-DbIRBnmD.js +25 -0
- package/dist/deps-send-signal.runtime-B4h6X3o4.js +24 -0
- package/dist/deps-send-slack.runtime-BWXOnOxS.js +22 -0
- package/dist/deps-send-telegram.runtime-YvauJtgv.js +27 -0
- package/dist/{deps-send-whatsapp.runtime-WND2o1Mr.js → deps-send-whatsapp.runtime-BcxCalPD.js} +4 -4
- package/dist/deps-send-whatsapp.runtime-CslTuV47.js +60 -0
- package/dist/{deps-send-whatsapp.runtime-CZj97m5A.js → deps-send-whatsapp.runtime-DdxKewuy.js} +7 -7
- package/dist/{deps-send-whatsapp.runtime-DSbrPzxG.js → deps-send-whatsapp.runtime-Dl4ro-Df.js} +4 -4
- package/dist/{diagnostic-DoguEiWW.js → diagnostic-ySwZga6c.js} +2 -2
- package/dist/{doctor-completion-CKaQEebJ.js → doctor-completion-42wcUATu.js} +1 -1
- package/dist/{doctor-completion-Ctqsu6Y2.js → doctor-completion-D6RGDBD5.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{plugin-sdk/errors-9oVz7reJ.js → errors-kkRuS2Cs.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{fetch-DdiB5_OX.js → fetch-BLS7EMnx.js} +5 -5
- package/dist/{fetch-guard-CEV5qBHc.js → fetch-guard-D0fXNJls.js} +2 -2
- package/dist/{frontmatter-CjKtFduT.js → frontmatter-Cq1TcIQ2.js} +3 -3
- package/dist/{fs-safe-CwHbZdFH.js → fs-safe-BoB4X3GD.js} +4 -4
- package/dist/{gateway-cli-CSIyrhFg.js → gateway-cli-BbPfLLT6.js} +10 -10
- package/dist/{gateway-cli-xX1CTw9n.js → gateway-cli-CG3mshpO.js} +10 -10
- package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
- package/dist/{health-D9Pie2kF.js → health-CJgEuWuG.js} +1 -1
- package/dist/{health-D7mPTab_.js → health-dZqyhpdR.js} +1 -1
- package/dist/{hooks-cli-C6aI9HU7.js → hooks-cli-BD4Ww1dF.js} +3 -3
- package/dist/{hooks-cli-_1zdKcZA.js → hooks-cli-C0wWJOBW.js} +3 -3
- package/dist/{image-ecaECpjT.js → image-j_UomzVG.js} +6 -6
- package/dist/{image-ops-bdrMTILs.js → image-ops-CdgypS_g.js} +2 -2
- package/dist/image-runtime-BNh3IfMj.js +29 -0
- package/dist/{image-runtime-poRypm-b.js → image-runtime-SUtf9jqh.js} +3 -3
- package/dist/{image-DKZCmkET.js → image-sRW3RpTY.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{ir-D_GD01cg.js → ir-BvisJWXv.js} +8 -8
- package/dist/{legacy-names-B0wgIP0Q.js → legacy-names-aGJJuzM_.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-oGKcCLZ5.js → logger-CnTSBL7T.js} +7 -7
- package/dist/{login-gJWPqN66.js → login-BMeLPUiO.js} +5 -5
- package/dist/{login-qr-CgmlF7zK.js → login-qr-B2B67qqQ.js} +10 -10
- package/dist/{manager-CD69uguS.js → manager-DdxMYEDd.js} +13 -13
- package/dist/manager-runtime-BMygJEz3.js +18 -0
- package/dist/{model-selection-DMjtmGZP.js → model-selection-ag9BmVct.js} +43 -43
- package/dist/{models-BviRe-_7.js → models-BXT0s4KJ.js} +3 -3
- package/dist/{models-cli-BM5yo_mo.js → models-cli-BtLc9uPC.js} +3 -3
- package/dist/{models-cli-pvYVl1i-.js → models-cli-BwPFxWK2.js} +4 -4
- package/dist/{npm-resolution-DMM9Hopy.js → npm-resolution-DWpNPsBF.js} +1 -1
- package/dist/{npm-resolution-BTFMooVS.js → npm-resolution-Djbuzx6o.js} +1 -1
- package/dist/{onboard-DVuhj8ub.js → onboard-1KfKwvMR.js} +3 -3
- package/dist/{onboard-DTsgFKIa.js → onboard-ChxvwUze.js} +3 -3
- package/dist/{onboard-channels-W9UHiBQg.js → onboard-channels-CHrtFmhi.js} +2 -2
- package/dist/{onboard-channels-B1D9LqV_.js → onboard-channels-CXjnFvP1.js} +2 -2
- package/dist/{onboard-helpers-DVaF21TE.js → onboard-helpers-Bvpkyuwm.js} +6 -6
- package/dist/{onboard-helpers-PRhg7ZY5.js → onboard-helpers-ByttGRIZ.js} +6 -6
- package/dist/{onboard-remote-h-aHSDJ1.js → onboard-remote-Cfx2v9OI.js} +1 -1
- package/dist/{onboard-remote-DkIrV4Hx.js → onboard-remote-DxBaaS6o.js} +1 -1
- package/dist/{onboard-skills-fFSuiv21.js → onboard-skills-B7pHg1lN.js} +1 -1
- package/dist/{onboard-skills-fgrVmjJP.js → onboard-skills-PCnCZ6Od.js} +1 -1
- package/dist/{onboarding-D1nCnc_t.js → onboarding-D6kMb3yv.js} +7 -7
- package/dist/{onboarding-CYWs766P.js → onboarding-DuUMPrqA.js} +7 -7
- package/dist/{onboarding.finalize-Bcan6_vA.js → onboarding.finalize-KTOhO1-l.js} +7 -7
- package/dist/{onboarding.finalize-bAiXf9D6.js → onboarding.finalize-bphDUwZy.js} +6 -6
- package/dist/{onboarding.gateway-config-61E9xXYF.js → onboarding.gateway-config-DDdX0W74.js} +1 -1
- package/dist/{onboarding.gateway-config-Dyaqc_M7.js → onboarding.gateway-config-DNUJ0seU.js} +1 -1
- package/dist/{outbound-Cboz5UyH.js → outbound-DHDBvGLA.js} +6 -6
- package/dist/{outbound-attachment-PwEbEhAL.js → outbound-attachment-CqXiWbKN.js} +2 -2
- package/dist/{path-alias-guards-Cpsiv2KL.js → path-alias-guards-DORgbZ1w.js} +1 -1
- package/dist/{paths-CSdAWKDO.js → paths-DA5srn0U.js} +5 -5
- package/dist/{paths-CXClY8zC.js → paths-DSd911Oe.js} +4 -4
- package/dist/{pi-embedded-MktS4l8v.js → pi-embedded-BGz_qdCc.js} +24 -24
- package/dist/{pi-embedded-CkTlmTq8.js → pi-embedded-BP2UlUm_.js} +171 -171
- package/dist/{pi-embedded-helpers-DYWYzEOC.js → pi-embedded-helpers-BruaFB5l.js} +3 -3
- package/dist/{pi-embedded-helpers-Bfm_CvEb.js → pi-embedded-helpers-CmLnmKlb.js} +52 -52
- package/dist/{pi-model-discovery-DEps5Exd.js → pi-model-discovery-DAzuqPoG.js} +7 -7
- package/dist/pi-model-discovery-runtime-Dpu7Jm2L.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-4wPdP7Br.js → pi-tools.before-tool-call.runtime-2Sp1jmlg.js} +9 -9
- package/dist/{plugin-registry-CvMvSI8O.js → plugin-registry-CLEhrKYA.js} +1 -1
- package/dist/{plugin-registry-DL2ClHLQ.js → plugin-registry-DtuxmgWx.js} +1 -1
- package/dist/plugin-sdk/{accounts-kr-Gz1hk.js → accounts-DghIDNk2.js} +2 -2
- package/dist/plugin-sdk/{accounts-CxUSDHsT.js → accounts-YTdQYQFr.js} +3 -3
- package/dist/plugin-sdk/{accounts-PSzw-z3S.js → accounts-h__dTrLK.js} +2 -2
- package/dist/plugin-sdk/{active-listener-BQNrTcR3.js → active-listener-_PRYjtJv.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-Bhck7wki.js → api-key-rotation-mVDSAkKQ.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-_xgGaeho.js → audio-preflight-BZlQM-qX.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-Dwc0Eh-B.js → audio-transcription-runner-CrYTX8py.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DHQDvH4u.js → audit-membership-runtime-Xl20kCBe.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-XajEg_DL.js → channel-activity-gwxRn4wF.js} +3 -3
- package/dist/plugin-sdk/{channel-web-KtqCp4mz.js → channel-web-1WF-Nabe.js} +18 -18
- package/dist/plugin-sdk/{chrome-diV5m81I.js → chrome-BXbYwXRH.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DwZAJuut.js → commands-registry-0w-aZenK.js} +4 -4
- package/dist/plugin-sdk/{common-CqnO92P8.js → common-DBOCt6Yv.js} +2 -2
- package/dist/plugin-sdk/{config-DYbtdrsT.js → config-pRtEoVyZ.js} +7 -7
- package/dist/plugin-sdk/{deliver-DG_7Uagn.js → deliver-FjlJrtZk.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-DEzvpBW1.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-Bhusa_Hi.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-bmakPm5f.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-n00sfFto.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BvM3Z-Mr.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-CPuMkcmo.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BzO6S-KX.js +57 -0
- package/dist/plugin-sdk/{diagnostic-CT7v_kM2.js → diagnostic-Dt2i3afe.js} +2 -2
- package/dist/plugin-sdk/{errors-B8oJXuCF.js → errors-CgRPdp3o.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Or5BCq0E.js → fetch-guard-DyPZh8r2.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DFbwq9CS.js → fs-safe-DqCO1D4C.js} +3 -3
- package/dist/plugin-sdk/{image-rycGCqJO.js → image-CQ9TZ9vq.js} +6 -6
- package/dist/plugin-sdk/{image-ops-CMsocOob.js → image-ops-sw0uZ0GN.js} +2 -2
- package/dist/plugin-sdk/image-runtime-17_mTqsy.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-DihI2SIz.js → ir-BVZ5kUMb.js} +7 -7
- package/dist/plugin-sdk/{local-roots-1xVosTZ4.js → local-roots-fO3ZgW3G.js} +4 -4
- package/dist/plugin-sdk/{logger-Bg4vIUJn.js → logger-DIb2cGHp.js} +2 -2
- package/dist/plugin-sdk/{login-YhFrVUWo.js → login-Dg5cxB_3.js} +4 -4
- package/dist/plugin-sdk/{login-qr-SpUTuwYv.js → login-qr-C3Vn30cq.js} +5 -5
- package/dist/plugin-sdk/{manager-DrzOPeMD.js → manager-BR-TwWTH.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CvI9wF8N.js +15 -0
- package/dist/plugin-sdk/{outbound-Cc4cUn9K.js → outbound-1a3Z_QJ2.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-Dtp3hQgc.js → outbound-attachment-BTQjD4YE.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DA0MhfkG.js → path-alias-guards-TnxupPQC.js} +1 -1
- package/dist/plugin-sdk/{paths-CP67O8eN.js → paths-B7_75Pdr.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BDJ_4Plh.js → pi-embedded-helpers-DZRNadD8.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Mk0GTDJl.js → pi-model-discovery-DGh6xekX.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-DjjBdPYt.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-DV72wTDb.js → pi-tools.before-tool-call.runtime-BZ9XgG_x.js} +4 -4
- package/dist/plugin-sdk/{plugins-DSs2-fnK.js → plugins-B8pWVYug.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-Ib4-LUh-.js → proxy-env-BOlkiW1-.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-ZPEvp58f.js → proxy-fetch-Dt5BedH8.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-DIx2wpkY.js → pw-ai-C17A1o4w.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Ov9ElEfG.js → qmd-manager-Bei6TaFq.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-CzjwW461.js → query-expansion-POz2za8a.js} +4 -4
- package/dist/plugin-sdk/{redact-BoNEjbpF.js → redact-9WsNyb7S.js} +1 -1
- package/dist/plugin-sdk/{reply-CWWUd_JS.js → reply-BFbijn6_.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-BOkvxZtM.js → resolve-outbound-target-B9iFEh0y.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-kVooFCVo.js → run-with-concurrency-DmTrN5JG.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DzhkSmLi.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DyILWezU.js +19 -0
- package/dist/plugin-sdk/{send-BP1fSEBR.js → send-BGZo6HW1.js} +5 -5
- package/dist/plugin-sdk/{send-D9CSOGul.js → send-BisREGBZ.js} +6 -6
- package/dist/plugin-sdk/{send-BeLBlAsQ.js → send-BqkUDZed.js} +13 -13
- package/dist/plugin-sdk/{send-DLKxJJYV.js → send-D6_nNvi0.js} +8 -8
- package/dist/plugin-sdk/{send-XZ6IXCtL.js → send-Dj7XEcZN.js} +7 -7
- package/dist/plugin-sdk/{session-DtLUYWvY.js → session-D4KDs7Hq.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-Bv7EZypt.js → skill-commands-D_xeseiI.js} +4 -4
- package/dist/plugin-sdk/{skills-BzXN4uev.js → skills-Bs2b3JfV.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-CUb5sqqf.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DCB6bGjB.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BqEweE4K.js +16 -0
- package/dist/plugin-sdk/{store-DnJhFFW5.js → store-B7ESm9_L.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-CCUW4SbM.js +52 -0
- package/dist/plugin-sdk/{tables-CpmqssLF.js → tables-1vhBJPK_.js} +1 -1
- package/dist/plugin-sdk/{thinking-1UCPuD9d.js → thinking-DjaClmzi.js} +7 -7
- package/dist/plugin-sdk/{tokens-DAL_5WHL.js → tokens-CLE20fRI.js} +1 -1
- package/dist/plugin-sdk/{tool-images-RX4QTMnt.js → tool-images-B95xcwiR.js} +2 -2
- package/dist/plugin-sdk/web-DeRmHQ4_.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-BF6ih4Gi.js → whatsapp-actions-BYpcWkTN.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins-CmdmAU0K.js → plugins-DXkm70nK.js} +11 -11
- package/dist/{plugins-cli-DBtLtIsQ.js → plugins-cli-Cs3UUJew.js} +3 -3
- package/dist/{plugins-cli-BMPvpwSo.js → plugins-cli-KPz6APX0.js} +3 -3
- package/dist/{program-context-KSeqVkRM.js → program-context-J_FyEsaS.js} +18 -18
- package/dist/{program-C6sTShRB.js → program-xNEHPhT8.js} +8 -8
- package/dist/{prompt-select-styled-Ba5fC0g1.js → prompt-select-styled-B1LjjgQ0.js} +5 -5
- package/dist/{prompt-select-styled-DFhJPiqx.js → prompt-select-styled-BRiogP_P.js} +5 -5
- package/dist/{provider-auth-helpers-S2rdI85T.js → provider-auth-helpers-CxUWqt95.js} +1 -1
- package/dist/{provider-auth-helpers-BPvZ8xkJ.js → provider-auth-helpers-hhFVhZdv.js} +1 -1
- package/dist/{proxy-env-QUJz9VEJ.js → proxy-env-D75CWSOo.js} +1 -1
- package/dist/{proxy-fetch-C2v-Utgg.js → proxy-fetch-lH6RsRTE.js} +1 -1
- package/dist/{push-apns-BQEPMPtG.js → push-apns-BBkpZyNR.js} +1 -1
- package/dist/{push-apns-CGibQhps.js → push-apns-BQjV_93G.js} +1 -1
- package/dist/{pw-ai-SYjuzbV6.js → pw-ai-7kHgUGj0.js} +14 -14
- package/dist/{pw-ai-zFPBSxaL.js → pw-ai-BmGrTicP.js} +1 -1
- package/dist/{qmd-manager-CO-shcLU.js → qmd-manager-BN0siR2Z.js} +10 -10
- package/dist/{query-expansion-DlQOkf-g.js → query-expansion-Dzxt6kXo.js} +6 -6
- package/dist/{redact-NmPEVjIo.js → redact-DvzicBMu.js} +1 -1
- package/dist/{register.agent-DP_2xCaO.js → register.agent-DYq06QHS.js} +8 -8
- package/dist/{register.agent-BwhWwpRX.js → register.agent-reU63wQ5.js} +7 -7
- package/dist/{register.configure-D8TE-yQn.js → register.configure-C4p9ad2q.js} +10 -10
- package/dist/{register.configure-C5i661J4.js → register.configure-DezZ4Q1p.js} +10 -10
- package/dist/{register.maintenance-BS2i3S5V.js → register.maintenance-CTvFmkAm.js} +9 -9
- package/dist/{register.maintenance-BA4UOg2_.js → register.maintenance-CzMKTC2a.js} +8 -8
- package/dist/{register.message-oFI2Mzrd.js → register.message-BmsovYS6.js} +3 -3
- package/dist/{register.message-D9hVI5b6.js → register.message-Bp4SDXWk.js} +3 -3
- package/dist/{register.onboard-D6wqijOl.js → register.onboard-C39xhpv1.js} +3 -3
- package/dist/{register.onboard-OaKr3SnU.js → register.onboard-DZt2kSAg.js} +3 -3
- package/dist/{register.setup-DsK_7zih.js → register.setup-04L_8wfA.js} +3 -3
- package/dist/{register.setup-Dygx-glo.js → register.setup-DWctFmOd.js} +3 -3
- package/dist/{register.status-health-sessions-C6VfEhho.js → register.status-health-sessions-CBPZoj51.js} +4 -4
- package/dist/{register.status-health-sessions-BmWcbWPR.js → register.status-health-sessions-N6SFc-UY.js} +4 -4
- package/dist/{register.subclis-CLf32krW.js → register.subclis-C3TphbCF.js} +10 -10
- package/dist/{reply-ZWkzBiSb.js → reply-CB1p166g.js} +5 -5
- package/dist/{run-main-asKkGUqy.js → run-main-7tknx04F.js} +15 -15
- package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DSR-m0FW.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Blywd_bv.js +22 -0
- package/dist/{send-oS3t6gE6.js → send-C98RfcAb.js} +5 -5
- package/dist/{send-DX_O1OHH.js → send-Co5Bqwuo.js} +6 -6
- package/dist/{send-BNsV-D2Y.js → send-DjL7KlMV.js} +8 -8
- package/dist/{send-C-jb8X9I.js → send-Do7hKDL9.js} +7 -7
- package/dist/{send-D-Rnbdzz.js → send-bW7jDv8D.js} +26 -26
- package/dist/{server-node-events-DV2yeAp-.js → server-node-events-Ctjzvlem.js} +3 -3
- package/dist/{server-node-events-BHv7a_ll.js → server-node-events-DrCKK0J4.js} +3 -3
- package/dist/{session-DRyURckG.js → session-QSn69XeJ.js} +8 -8
- package/dist/{skill-commands-BrlAf_CG.js → skill-commands-Bi_jchJn.js} +9 -9
- package/dist/{skills-DWrRJwa-.js → skills-CTV78w4q.js} +22 -22
- package/dist/slash-commands.runtime-63MUmCBt.js +16 -0
- package/dist/{slash-dispatch.runtime-DkcAYuyK.js → slash-dispatch.runtime-BL3qA1O3.js} +6 -6
- package/dist/{slash-dispatch.runtime-BJOuQOeN.js → slash-dispatch.runtime-DRGqAgwa.js} +2 -2
- package/dist/slash-dispatch.runtime-Dh2L_3Tg.js +56 -0
- package/dist/{slash-dispatch.runtime-CEAbkOCI.js → slash-dispatch.runtime-uqWhoI6q.js} +2 -2
- package/dist/slash-skill-commands.runtime-B3MSSAQ-.js +20 -0
- package/dist/{status-Ck8-aQIF.js → status-BkfSGlOi.js} +3 -3
- package/dist/{status-CMhW6nGs.js → status-DdW571-j.js} +3 -3
- package/dist/{store-BFNH5fXG.js → store-B89Hj8Ub.js} +2 -2
- package/dist/{subagent-registry-DQpeidFk.js → subagent-registry-DGrfQVN3.js} +5 -5
- package/dist/subagent-registry-runtime-BRNDawlJ.js +56 -0
- package/dist/{subagent-registry-runtime-C-jjppV6.js → subagent-registry-runtime-DatTO2LD.js} +2 -2
- package/dist/{subagent-registry-runtime-tRRyFZL8.js → subagent-registry-runtime-Dsrz3yIh.js} +2 -2
- package/dist/{subagent-registry-runtime-BlRAnw80.js → subagent-registry-runtime-MtjBCcgn.js} +6 -6
- package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
- package/dist/{tables-CnlmCLb3.js → tables-DGHzaXQz.js} +1 -1
- package/dist/{target-errors-Df1wB-I7.js → target-errors-CweAa7L9.js} +2 -2
- package/dist/{thinking-CTpcVnlx.js → thinking-SdNGqtJE.js} +7 -7
- package/dist/{tokens-D2XhLqIz.js → tokens-DfbMVF9y.js} +1 -1
- package/dist/{tool-images-CElPu2en.js → tool-images-8BKrL7Bn.js} +2 -2
- package/dist/{update-cli-5KzuA6pa.js → update-cli-0UiUaT3q.js} +10 -10
- package/dist/{update-cli-CEghYBNP.js → update-cli-C-uyQcFS.js} +9 -9
- package/dist/{update-runner-C5XgCwj2.js → update-runner-CT9YRLtn.js} +1 -1
- package/dist/{update-runner-C0q8aGFd.js → update-runner-CqVLeGYA.js} +1 -1
- package/dist/{web-DBm_uXOl.js → web-B2qXyOb9.js} +3 -3
- package/dist/{web-DdrUn13G.js → web-B7kbCskR.js} +55 -55
- package/dist/{web-DddJa7ZT.js → web-D1ZoRVB0.js} +6 -6
- package/dist/{web-O2WkG3cH.js → web-FqoNMI-k.js} +3 -3
- package/dist/{whatsapp-actions-DPszRJ8b.js → whatsapp-actions-BDkbnZVH.js} +21 -21
- package/dist/{workspace-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
- package/package.json +1 -1
- package/dist/api-key-rotation-Dzvqp3Dc.js +0 -181
- package/dist/deliver-runtime-BdUlqV9E.js +0 -36
- package/dist/deps-send-discord.runtime-R8jUd_2I.js +0 -26
- package/dist/deps-send-imessage.runtime-Die0aWtU.js +0 -25
- package/dist/deps-send-signal.runtime-Biux_4v4.js +0 -24
- package/dist/deps-send-slack.runtime-CkUST2Ky.js +0 -22
- package/dist/deps-send-telegram.runtime-CIN5ILBe.js +0 -27
- package/dist/deps-send-whatsapp.runtime-DUff9bWS.js +0 -60
- package/dist/errors-DfgAh2Ml.js +0 -54
- package/dist/image-runtime-irHu11-U.js +0 -29
- package/dist/manager-runtime-BISxj7HK.js +0 -18
- package/dist/pi-model-discovery-runtime-bzJViQLK.js +0 -11
- package/dist/plugin-sdk/accounts-BNuRM3rG.js +0 -288
- package/dist/plugin-sdk/accounts-CGTYP7Rh.js +0 -46
- package/dist/plugin-sdk/accounts-CcS9IAhD.js +0 -35
- package/dist/plugin-sdk/active-listener-CTsLn1AX.js +0 -50
- package/dist/plugin-sdk/audio-preflight-CRGLqp-g.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-RXsskMMk.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +0 -58
- package/dist/plugin-sdk/channel-activity-gPvD1D7S.js +0 -94
- package/dist/plugin-sdk/channel-web-LGl1zPJt.js +0 -2256
- package/dist/plugin-sdk/chrome-9Y_LcUg1.js +0 -2415
- package/dist/plugin-sdk/commands-registry-CcdEPxVg.js +0 -1125
- package/dist/plugin-sdk/config-CrQ5bCrw.js +0 -17912
- package/dist/plugin-sdk/deliver-D3xr5AkB.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-B79ZQu69.js +0 -32
- package/dist/plugin-sdk/deliver-runtime-BdTC7uKE.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-BOQZIqC8.js +0 -23
- package/dist/plugin-sdk/deps-send-discord.runtime-CObCNMt3.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-CuHOc9Ka.js +0 -22
- package/dist/plugin-sdk/deps-send-imessage.runtime-DlWgi2DH.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-Cz7FT8J8.js +0 -21
- package/dist/plugin-sdk/deps-send-signal.runtime-iPynghkE.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-D4vDoRsg.js +0 -19
- package/dist/plugin-sdk/deps-send-slack.runtime-DNTbE5jS.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-7CR-xtCF.js +0 -24
- package/dist/plugin-sdk/deps-send-telegram.runtime-DjTVED_m.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CRWOIKRC.js +0 -57
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-bUi8kghi.js +0 -57
- package/dist/plugin-sdk/diagnostic-BXkLYs_9.js +0 -319
- package/dist/plugin-sdk/fetch-guard-C55uvn27.js +0 -156
- package/dist/plugin-sdk/fs-safe-Dqmpk-Fr.js +0 -352
- package/dist/plugin-sdk/image-3xW7IJdq.js +0 -2310
- package/dist/plugin-sdk/image-ops-BjK2qZZn.js +0 -584
- package/dist/plugin-sdk/image-runtime-CZZJJqcW.js +0 -25
- package/dist/plugin-sdk/image-runtime-Cjz368oj.js +0 -25
- package/dist/plugin-sdk/ir-CS7uuQhN.js +0 -1296
- package/dist/plugin-sdk/local-roots-DmOKwiNW.js +0 -186
- package/dist/plugin-sdk/logger-DDdrdbDu.js +0 -1163
- package/dist/plugin-sdk/login-BSEeU27Y.js +0 -57
- package/dist/plugin-sdk/login-qr-BwWJsDSj.js +0 -320
- package/dist/plugin-sdk/manager-DiXPCubI.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-CF55pBNe.js +0 -15
- package/dist/plugin-sdk/manager-runtime-Ct0m9UJC.js +0 -15
- package/dist/plugin-sdk/outbound-attachment-BoFx05zw.js +0 -19
- package/dist/plugin-sdk/outbound-cpqK1GFe.js +0 -212
- package/dist/plugin-sdk/path-alias-guards-gBhrAn14.js +0 -43
- package/dist/plugin-sdk/paths-C6W4VHoa.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-C-B9B6Sp.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-BGEeoPzN.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-BHZ_Htob.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-runtime-BrwtJHPU.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-ByN_xThw.js +0 -354
- package/dist/plugin-sdk/plugins-D5cdn70e.js +0 -864
- package/dist/plugin-sdk/proxy-fetch-Cf3IUSDw.js +0 -38
- package/dist/plugin-sdk/pw-ai-C_QOIuin.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-6bozlfFg.js +0 -1448
- package/dist/plugin-sdk/query-expansion-eeVz_aEm.js +0 -1011
- package/dist/plugin-sdk/redact-DfACyt0X.js +0 -319
- package/dist/plugin-sdk/reply-CQUX_haM.js +0 -98828
- package/dist/plugin-sdk/resolve-outbound-target-Dbz0O8cR.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DitS0I1z.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-OthrtsLL.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-CYCr6A3v.js +0 -19
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-Q2HL0zL3.js +0 -19
- package/dist/plugin-sdk/send-BACEu1Un.js +0 -414
- package/dist/plugin-sdk/send-BU4OoR7u.js +0 -2587
- package/dist/plugin-sdk/send-DbxOJ_BC.js +0 -3135
- package/dist/plugin-sdk/send-n932vjT5.js +0 -540
- package/dist/plugin-sdk/send-uCPS53j8.js +0 -503
- package/dist/plugin-sdk/session-DenDKR_-.js +0 -169
- package/dist/plugin-sdk/skill-commands-BK1KDKmS.js +0 -342
- package/dist/plugin-sdk/skills-D4am-zkO.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-Bx1K1iqP.js +0 -13
- package/dist/plugin-sdk/slash-commands.runtime-DWfFqMZw.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DVn338JI.js +0 -52
- package/dist/plugin-sdk/slash-dispatch.runtime-pnWH5AjM.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Dbi_YzPO.js +0 -16
- package/dist/plugin-sdk/slash-skill-commands.runtime-DxvNWv_E.js +0 -16
- package/dist/plugin-sdk/ssrf-2WBi1Tzx.js +0 -202
- package/dist/plugin-sdk/store-BKDMuvyn.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-FhP0l-Rw.js +0 -52
- package/dist/plugin-sdk/subagent-registry-runtime-hH9ADku1.js +0 -52
- package/dist/plugin-sdk/tables-CrDYcv_b.js +0 -55
- package/dist/plugin-sdk/target-errors-aOwE-MIU.js +0 -195
- package/dist/plugin-sdk/thinking-D41FMh9T.js +0 -1206
- package/dist/plugin-sdk/tokens-CTIYTLWu.js +0 -52
- package/dist/plugin-sdk/tool-images-CWc54lpI.js +0 -274
- package/dist/plugin-sdk/web-AtEy-48y.js +0 -56
- package/dist/plugin-sdk/web-DjKONHqF.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-DEZcm_CZ.js +0 -80
- package/dist/runtime-whatsapp-login.runtime-BqOsE5As.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-D5S6mxFT.js +0 -22
- package/dist/slash-commands.runtime-JqCsKeu2.js +0 -16
- package/dist/slash-dispatch.runtime-h9I6EDYB.js +0 -56
- package/dist/slash-skill-commands.runtime-C0QZlkpu.js +0 -20
- package/dist/subagent-registry-runtime-BxvwRp_3.js +0 -56
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./plugins-CmdmAU0K.js";
|
|
10
|
-
import "./accounts-CL_NXliB.js";
|
|
11
|
-
import { h as sendMessageDiscord } from "./send-BNsV-D2Y.js";
|
|
12
|
-
import "./image-ops-bdrMTILs.js";
|
|
13
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
-
import "./redact-NmPEVjIo.js";
|
|
15
|
-
import "./errors-DfgAh2Ml.js";
|
|
16
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
17
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
18
|
-
import "./fetch-DdiB5_OX.js";
|
|
19
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
20
|
-
import "./ir-D_GD01cg.js";
|
|
21
|
-
import "./render-DW7AcFdD.js";
|
|
22
|
-
import "./fetch-tZXOZ9FV.js";
|
|
23
|
-
import "./channel-activity-DPrXawu4.js";
|
|
24
|
-
import "./tables-CnlmCLb3.js";
|
|
25
|
-
|
|
26
|
-
export { sendMessageDiscord };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./plugins-CmdmAU0K.js";
|
|
10
|
-
import "./accounts-CL_NXliB.js";
|
|
11
|
-
import "./image-ops-bdrMTILs.js";
|
|
12
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
13
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
14
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
15
|
-
import "./store-BFNH5fXG.js";
|
|
16
|
-
import "./accounts-LA308FHj.js";
|
|
17
|
-
import "./fetch-DdiB5_OX.js";
|
|
18
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
19
|
-
import "./ir-D_GD01cg.js";
|
|
20
|
-
import "./render-DW7AcFdD.js";
|
|
21
|
-
import "./tables-CnlmCLb3.js";
|
|
22
|
-
import "./outbound-attachment-PwEbEhAL.js";
|
|
23
|
-
import { t as sendMessageIMessage } from "./send-C-jb8X9I.js";
|
|
24
|
-
|
|
25
|
-
export { sendMessageIMessage };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./plugins-CmdmAU0K.js";
|
|
10
|
-
import "./accounts-CL_NXliB.js";
|
|
11
|
-
import "./accounts-F7tGwezI.js";
|
|
12
|
-
import "./image-ops-bdrMTILs.js";
|
|
13
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
15
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
16
|
-
import "./store-BFNH5fXG.js";
|
|
17
|
-
import "./fetch-DdiB5_OX.js";
|
|
18
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
19
|
-
import "./ir-D_GD01cg.js";
|
|
20
|
-
import "./fetch-tZXOZ9FV.js";
|
|
21
|
-
import { t as sendMessageSignal } from "./send-oS3t6gE6.js";
|
|
22
|
-
import "./outbound-attachment-PwEbEhAL.js";
|
|
23
|
-
|
|
24
|
-
export { sendMessageSignal };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./tokens-D2XhLqIz.js";
|
|
10
|
-
import "./plugins-CmdmAU0K.js";
|
|
11
|
-
import "./accounts-CL_NXliB.js";
|
|
12
|
-
import { t as sendMessageSlack } from "./send-DX_O1OHH.js";
|
|
13
|
-
import "./image-ops-bdrMTILs.js";
|
|
14
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
15
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
16
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
17
|
-
import "./fetch-DdiB5_OX.js";
|
|
18
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
19
|
-
import "./ir-D_GD01cg.js";
|
|
20
|
-
import "./render-DW7AcFdD.js";
|
|
21
|
-
|
|
22
|
-
export { sendMessageSlack };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./plugins-CmdmAU0K.js";
|
|
10
|
-
import "./accounts-CL_NXliB.js";
|
|
11
|
-
import "./image-ops-bdrMTILs.js";
|
|
12
|
-
import { o as sendMessageTelegram } from "./send-D-Rnbdzz.js";
|
|
13
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
-
import "./redact-NmPEVjIo.js";
|
|
15
|
-
import "./errors-DfgAh2Ml.js";
|
|
16
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
17
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
18
|
-
import "./fetch-DdiB5_OX.js";
|
|
19
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
20
|
-
import "./proxy-fetch-C2v-Utgg.js";
|
|
21
|
-
import "./ir-D_GD01cg.js";
|
|
22
|
-
import "./render-DW7AcFdD.js";
|
|
23
|
-
import "./fetch-tZXOZ9FV.js";
|
|
24
|
-
import "./channel-activity-DPrXawu4.js";
|
|
25
|
-
import "./proxy-CecQTx_Z.js";
|
|
26
|
-
|
|
27
|
-
export { sendMessageTelegram };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./thinking-CTpcVnlx.js";
|
|
10
|
-
import "./tokens-D2XhLqIz.js";
|
|
11
|
-
import "./pi-embedded-CkTlmTq8.js";
|
|
12
|
-
import "./plugins-CmdmAU0K.js";
|
|
13
|
-
import "./accounts-CL_NXliB.js";
|
|
14
|
-
import "./send-DX_O1OHH.js";
|
|
15
|
-
import "./send-BNsV-D2Y.js";
|
|
16
|
-
import "./deliver-neVJ7AU9.js";
|
|
17
|
-
import "./diagnostic-DoguEiWW.js";
|
|
18
|
-
import "./accounts-F7tGwezI.js";
|
|
19
|
-
import "./image-ops-bdrMTILs.js";
|
|
20
|
-
import "./send-D-Rnbdzz.js";
|
|
21
|
-
import "./pi-model-discovery-DEps5Exd.js";
|
|
22
|
-
import "./pi-embedded-helpers-Bfm_CvEb.js";
|
|
23
|
-
import "./chrome-BFfAGQtd.js";
|
|
24
|
-
import "./frontmatter-CjKtFduT.js";
|
|
25
|
-
import "./skills-DWrRJwa-.js";
|
|
26
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
27
|
-
import "./redact-NmPEVjIo.js";
|
|
28
|
-
import "./errors-DfgAh2Ml.js";
|
|
29
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
30
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
31
|
-
import "./store-BFNH5fXG.js";
|
|
32
|
-
import "./accounts-LA308FHj.js";
|
|
33
|
-
import "./paths-CXClY8zC.js";
|
|
34
|
-
import "./tool-images-CElPu2en.js";
|
|
35
|
-
import "./image-ecaECpjT.js";
|
|
36
|
-
import "./audio-transcription-runner-CItniQDZ.js";
|
|
37
|
-
import "./fetch-DdiB5_OX.js";
|
|
38
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
39
|
-
import "./api-key-rotation-Dzvqp3Dc.js";
|
|
40
|
-
import "./proxy-fetch-C2v-Utgg.js";
|
|
41
|
-
import "./ir-D_GD01cg.js";
|
|
42
|
-
import "./render-DW7AcFdD.js";
|
|
43
|
-
import "./target-errors-Df1wB-I7.js";
|
|
44
|
-
import "./commands-registry-C2t2bcZ6.js";
|
|
45
|
-
import "./skill-commands-BrlAf_CG.js";
|
|
46
|
-
import "./fetch-tZXOZ9FV.js";
|
|
47
|
-
import "./channel-activity-DPrXawu4.js";
|
|
48
|
-
import "./tables-CnlmCLb3.js";
|
|
49
|
-
import "./send-oS3t6gE6.js";
|
|
50
|
-
import "./outbound-attachment-PwEbEhAL.js";
|
|
51
|
-
import "./send-C-jb8X9I.js";
|
|
52
|
-
import "./proxy-CecQTx_Z.js";
|
|
53
|
-
import "./manager-CD69uguS.js";
|
|
54
|
-
import "./query-expansion-DlQOkf-g.js";
|
|
55
|
-
import { t as sendMessageWhatsApp } from "./outbound-Cboz5UyH.js";
|
|
56
|
-
import "./session-DRyURckG.js";
|
|
57
|
-
import "./login-gJWPqN66.js";
|
|
58
|
-
import "./web-DdrUn13G.js";
|
|
59
|
-
|
|
60
|
-
export { sendMessageWhatsApp };
|
package/dist/errors-DfgAh2Ml.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { t as redactSensitiveText } from "./redact-NmPEVjIo.js";
|
|
2
|
-
|
|
3
|
-
//#region src/infra/errors.ts
|
|
4
|
-
function extractErrorCode(err) {
|
|
5
|
-
if (!err || typeof err !== "object") return;
|
|
6
|
-
const code = err.code;
|
|
7
|
-
if (typeof code === "string") return code;
|
|
8
|
-
if (typeof code === "number") return String(code);
|
|
9
|
-
}
|
|
10
|
-
function readErrorName(err) {
|
|
11
|
-
if (!err || typeof err !== "object") return "";
|
|
12
|
-
const name = err.name;
|
|
13
|
-
return typeof name === "string" ? name : "";
|
|
14
|
-
}
|
|
15
|
-
function collectErrorGraphCandidates(err, resolveNested) {
|
|
16
|
-
const queue = [err];
|
|
17
|
-
const seen = /* @__PURE__ */ new Set();
|
|
18
|
-
const candidates = [];
|
|
19
|
-
while (queue.length > 0) {
|
|
20
|
-
const current = queue.shift();
|
|
21
|
-
if (current == null || seen.has(current)) continue;
|
|
22
|
-
seen.add(current);
|
|
23
|
-
candidates.push(current);
|
|
24
|
-
if (!current || typeof current !== "object" || !resolveNested) continue;
|
|
25
|
-
for (const nested of resolveNested(current)) if (nested != null && !seen.has(nested)) queue.push(nested);
|
|
26
|
-
}
|
|
27
|
-
return candidates;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Type guard for NodeJS.ErrnoException (any error with a `code` property).
|
|
31
|
-
*/
|
|
32
|
-
function isErrno(err) {
|
|
33
|
-
return Boolean(err && typeof err === "object" && "code" in err);
|
|
34
|
-
}
|
|
35
|
-
function formatErrorMessage(err) {
|
|
36
|
-
let formatted;
|
|
37
|
-
if (err instanceof Error) formatted = err.message || err.name || "Error";
|
|
38
|
-
else if (typeof err === "string") formatted = err;
|
|
39
|
-
else if (typeof err === "number" || typeof err === "boolean" || typeof err === "bigint") formatted = String(err);
|
|
40
|
-
else try {
|
|
41
|
-
formatted = JSON.stringify(err);
|
|
42
|
-
} catch {
|
|
43
|
-
formatted = Object.prototype.toString.call(err);
|
|
44
|
-
}
|
|
45
|
-
return redactSensitiveText(formatted);
|
|
46
|
-
}
|
|
47
|
-
function formatUncaughtError(err) {
|
|
48
|
-
if (extractErrorCode(err) === "INVALID_CONFIG") return formatErrorMessage(err);
|
|
49
|
-
if (err instanceof Error) return redactSensitiveText(err.stack ?? err.message ?? err.name);
|
|
50
|
-
return formatErrorMessage(err);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
//#endregion
|
|
54
|
-
export { isErrno as a, formatUncaughtError as i, extractErrorCode as n, readErrorName as o, formatErrorMessage as r, collectErrorGraphCandidates as t };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./thinking-CTpcVnlx.js";
|
|
10
|
-
import "./plugins-CmdmAU0K.js";
|
|
11
|
-
import "./accounts-CL_NXliB.js";
|
|
12
|
-
import "./accounts-F7tGwezI.js";
|
|
13
|
-
import "./image-ops-bdrMTILs.js";
|
|
14
|
-
import "./pi-embedded-helpers-Bfm_CvEb.js";
|
|
15
|
-
import "./chrome-BFfAGQtd.js";
|
|
16
|
-
import "./frontmatter-CjKtFduT.js";
|
|
17
|
-
import "./skills-DWrRJwa-.js";
|
|
18
|
-
import "./path-alias-guards-Cpsiv2KL.js";
|
|
19
|
-
import "./redact-NmPEVjIo.js";
|
|
20
|
-
import "./errors-DfgAh2Ml.js";
|
|
21
|
-
import "./fs-safe-CwHbZdFH.js";
|
|
22
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
23
|
-
import "./store-BFNH5fXG.js";
|
|
24
|
-
import "./accounts-LA308FHj.js";
|
|
25
|
-
import "./paths-CXClY8zC.js";
|
|
26
|
-
import "./tool-images-CElPu2en.js";
|
|
27
|
-
import { t as describeImageWithModel } from "./image-ecaECpjT.js";
|
|
28
|
-
|
|
29
|
-
export { describeImageWithModel };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import "./redact-NmPEVjIo.js";
|
|
10
|
-
import "./errors-DfgAh2Ml.js";
|
|
11
|
-
import "./proxy-env-QUJz9VEJ.js";
|
|
12
|
-
import "./paths-CXClY8zC.js";
|
|
13
|
-
import "./fetch-guard-CEV5qBHc.js";
|
|
14
|
-
import "./api-key-rotation-Dzvqp3Dc.js";
|
|
15
|
-
import { t as MemoryIndexManager } from "./manager-CD69uguS.js";
|
|
16
|
-
import "./query-expansion-DlQOkf-g.js";
|
|
17
|
-
|
|
18
|
-
export { MemoryIndexManager };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
-
import "./paths-CSdAWKDO.js";
|
|
3
|
-
import "./subsystem-BaLYRf7D.js";
|
|
4
|
-
import "./workspace-TqfVSQuO.js";
|
|
5
|
-
import "./logger-oGKcCLZ5.js";
|
|
6
|
-
import "./model-selection-DMjtmGZP.js";
|
|
7
|
-
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
-
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DEps5Exd.js";
|
|
10
|
-
|
|
11
|
-
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-5DMu9szx.js";
|
|
2
|
-
import { o as resolveOAuthDir } from "./paths-8xF5kDne.js";
|
|
3
|
-
import { Pr as formatCliCommand } from "./config-CrQ5bCrw.js";
|
|
4
|
-
import { B as success, E as resolveUserPath, G as getChildLogger, I as info, c as defaultRuntime, x as jidToE164 } from "./logger-DDdrdbDu.js";
|
|
5
|
-
import fs from "node:fs";
|
|
6
|
-
import path from "node:path";
|
|
7
|
-
import fs$1 from "node:fs/promises";
|
|
8
|
-
|
|
9
|
-
//#region src/channels/plugins/account-helpers.ts
|
|
10
|
-
function createAccountListHelpers(channelKey) {
|
|
11
|
-
function resolveConfiguredDefaultAccountId(cfg) {
|
|
12
|
-
const channel = cfg.channels?.[channelKey];
|
|
13
|
-
const preferred = normalizeOptionalAccountId(typeof channel?.defaultAccount === "string" ? channel.defaultAccount : void 0);
|
|
14
|
-
if (!preferred) return;
|
|
15
|
-
if (listAccountIds(cfg).some((id) => normalizeAccountId(id) === preferred)) return preferred;
|
|
16
|
-
}
|
|
17
|
-
function listConfiguredAccountIds(cfg) {
|
|
18
|
-
const accounts = (cfg.channels?.[channelKey])?.accounts;
|
|
19
|
-
if (!accounts || typeof accounts !== "object") return [];
|
|
20
|
-
return Object.keys(accounts).filter(Boolean);
|
|
21
|
-
}
|
|
22
|
-
function listAccountIds(cfg) {
|
|
23
|
-
const ids = listConfiguredAccountIds(cfg);
|
|
24
|
-
if (ids.length === 0) return [DEFAULT_ACCOUNT_ID];
|
|
25
|
-
return ids.toSorted((a, b) => a.localeCompare(b));
|
|
26
|
-
}
|
|
27
|
-
function resolveDefaultAccountId(cfg) {
|
|
28
|
-
const preferred = resolveConfiguredDefaultAccountId(cfg);
|
|
29
|
-
if (preferred) return preferred;
|
|
30
|
-
const ids = listAccountIds(cfg);
|
|
31
|
-
if (ids.includes(DEFAULT_ACCOUNT_ID)) return DEFAULT_ACCOUNT_ID;
|
|
32
|
-
return ids[0] ?? DEFAULT_ACCOUNT_ID;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
listConfiguredAccountIds,
|
|
36
|
-
listAccountIds,
|
|
37
|
-
resolveDefaultAccountId
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/routing/account-lookup.ts
|
|
43
|
-
function resolveAccountEntry(accounts, accountId) {
|
|
44
|
-
if (!accounts || typeof accounts !== "object") return;
|
|
45
|
-
if (Object.hasOwn(accounts, accountId)) return accounts[accountId];
|
|
46
|
-
const normalized = accountId.toLowerCase();
|
|
47
|
-
const matchKey = Object.keys(accounts).find((key) => key.toLowerCase() === normalized);
|
|
48
|
-
return matchKey ? accounts[matchKey] : void 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/web/auth-store.ts
|
|
53
|
-
function resolveDefaultWebAuthDir() {
|
|
54
|
-
return path.join(resolveOAuthDir(), "whatsapp", DEFAULT_ACCOUNT_ID);
|
|
55
|
-
}
|
|
56
|
-
const WA_WEB_AUTH_DIR = resolveDefaultWebAuthDir();
|
|
57
|
-
function resolveWebCredsPath(authDir) {
|
|
58
|
-
return path.join(authDir, "creds.json");
|
|
59
|
-
}
|
|
60
|
-
function resolveWebCredsBackupPath(authDir) {
|
|
61
|
-
return path.join(authDir, "creds.json.bak");
|
|
62
|
-
}
|
|
63
|
-
function hasWebCredsSync(authDir) {
|
|
64
|
-
try {
|
|
65
|
-
const stats = fs.statSync(resolveWebCredsPath(authDir));
|
|
66
|
-
return stats.isFile() && stats.size > 1;
|
|
67
|
-
} catch {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function readCredsJsonRaw(filePath) {
|
|
72
|
-
try {
|
|
73
|
-
if (!fs.existsSync(filePath)) return null;
|
|
74
|
-
const stats = fs.statSync(filePath);
|
|
75
|
-
if (!stats.isFile() || stats.size <= 1) return null;
|
|
76
|
-
return fs.readFileSync(filePath, "utf-8");
|
|
77
|
-
} catch {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function maybeRestoreCredsFromBackup(authDir) {
|
|
82
|
-
const logger = getChildLogger({ module: "web-session" });
|
|
83
|
-
try {
|
|
84
|
-
const credsPath = resolveWebCredsPath(authDir);
|
|
85
|
-
const backupPath = resolveWebCredsBackupPath(authDir);
|
|
86
|
-
const raw = readCredsJsonRaw(credsPath);
|
|
87
|
-
if (raw) {
|
|
88
|
-
JSON.parse(raw);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const backupRaw = readCredsJsonRaw(backupPath);
|
|
92
|
-
if (!backupRaw) return;
|
|
93
|
-
JSON.parse(backupRaw);
|
|
94
|
-
fs.copyFileSync(backupPath, credsPath);
|
|
95
|
-
try {
|
|
96
|
-
fs.chmodSync(credsPath, 384);
|
|
97
|
-
} catch {}
|
|
98
|
-
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
99
|
-
} catch {}
|
|
100
|
-
}
|
|
101
|
-
async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
102
|
-
const resolvedAuthDir = resolveUserPath(authDir);
|
|
103
|
-
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
104
|
-
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
105
|
-
try {
|
|
106
|
-
await fs$1.access(resolvedAuthDir);
|
|
107
|
-
} catch {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
try {
|
|
111
|
-
const stats = await fs$1.stat(credsPath);
|
|
112
|
-
if (!stats.isFile() || stats.size <= 1) return false;
|
|
113
|
-
const raw = await fs$1.readFile(credsPath, "utf-8");
|
|
114
|
-
JSON.parse(raw);
|
|
115
|
-
return true;
|
|
116
|
-
} catch {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
async function clearLegacyBaileysAuthState(authDir) {
|
|
121
|
-
const entries = await fs$1.readdir(authDir, { withFileTypes: true });
|
|
122
|
-
const shouldDelete = (name) => {
|
|
123
|
-
if (name === "oauth.json") return false;
|
|
124
|
-
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
125
|
-
if (!name.endsWith(".json")) return false;
|
|
126
|
-
return /^(app-state-sync|session|sender-key|pre-key)-/.test(name);
|
|
127
|
-
};
|
|
128
|
-
await Promise.all(entries.map(async (entry) => {
|
|
129
|
-
if (!entry.isFile()) return;
|
|
130
|
-
if (!shouldDelete(entry.name)) return;
|
|
131
|
-
await fs$1.rm(path.join(authDir, entry.name), { force: true });
|
|
132
|
-
}));
|
|
133
|
-
}
|
|
134
|
-
async function logoutWeb(params) {
|
|
135
|
-
const runtime = params.runtime ?? defaultRuntime;
|
|
136
|
-
const resolvedAuthDir = resolveUserPath(params.authDir ?? resolveDefaultWebAuthDir());
|
|
137
|
-
if (!await webAuthExists(resolvedAuthDir)) {
|
|
138
|
-
runtime.log(info("No WhatsApp Web session found; nothing to delete."));
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
142
|
-
else await fs$1.rm(resolvedAuthDir, {
|
|
143
|
-
recursive: true,
|
|
144
|
-
force: true
|
|
145
|
-
});
|
|
146
|
-
runtime.log(success("Cleared WhatsApp Web credentials."));
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
150
|
-
try {
|
|
151
|
-
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
152
|
-
if (!fs.existsSync(credsPath)) return {
|
|
153
|
-
e164: null,
|
|
154
|
-
jid: null
|
|
155
|
-
};
|
|
156
|
-
const raw = fs.readFileSync(credsPath, "utf-8");
|
|
157
|
-
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
158
|
-
return {
|
|
159
|
-
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
160
|
-
jid
|
|
161
|
-
};
|
|
162
|
-
} catch {
|
|
163
|
-
return {
|
|
164
|
-
e164: null,
|
|
165
|
-
jid: null
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Return the age (in milliseconds) of the cached WhatsApp web auth state, or null when missing.
|
|
171
|
-
* Helpful for heartbeats/observability to spot stale credentials.
|
|
172
|
-
*/
|
|
173
|
-
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
174
|
-
try {
|
|
175
|
-
const stats = fs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
176
|
-
return Date.now() - stats.mtimeMs;
|
|
177
|
-
} catch {
|
|
178
|
-
return null;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function logWebSelfId(authDir = resolveDefaultWebAuthDir(), runtime = defaultRuntime, includeChannelPrefix = false) {
|
|
182
|
-
const { e164, jid } = readWebSelfId(authDir);
|
|
183
|
-
const details = e164 || jid ? `${e164 ?? "unknown"}${jid ? ` (jid ${jid})` : ""}` : "unknown";
|
|
184
|
-
const prefix = includeChannelPrefix ? "Web Channel: " : "";
|
|
185
|
-
runtime.log(info(`${prefix}${details}`));
|
|
186
|
-
}
|
|
187
|
-
async function pickWebChannel(pref, authDir = resolveDefaultWebAuthDir()) {
|
|
188
|
-
const choice = pref === "auto" ? "web" : pref;
|
|
189
|
-
if (!await webAuthExists(authDir)) throw new Error(`No WhatsApp Web session found. Run \`${formatCliCommand("squidclaw channels login --channel whatsapp --verbose")}\` to link.`);
|
|
190
|
-
return choice;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
//#endregion
|
|
194
|
-
//#region src/web/accounts.ts
|
|
195
|
-
const { listConfiguredAccountIds, listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("whatsapp");
|
|
196
|
-
const listWhatsAppAccountIds = listAccountIds;
|
|
197
|
-
const resolveDefaultWhatsAppAccountId = resolveDefaultAccountId;
|
|
198
|
-
function listWhatsAppAuthDirs(cfg) {
|
|
199
|
-
const oauthDir = resolveOAuthDir();
|
|
200
|
-
const whatsappDir = path.join(oauthDir, "whatsapp");
|
|
201
|
-
const authDirs = new Set([oauthDir, path.join(whatsappDir, DEFAULT_ACCOUNT_ID)]);
|
|
202
|
-
const accountIds = listConfiguredAccountIds(cfg);
|
|
203
|
-
for (const accountId of accountIds) authDirs.add(resolveWhatsAppAuthDir({
|
|
204
|
-
cfg,
|
|
205
|
-
accountId
|
|
206
|
-
}).authDir);
|
|
207
|
-
try {
|
|
208
|
-
const entries = fs.readdirSync(whatsappDir, { withFileTypes: true });
|
|
209
|
-
for (const entry of entries) {
|
|
210
|
-
if (!entry.isDirectory()) continue;
|
|
211
|
-
authDirs.add(path.join(whatsappDir, entry.name));
|
|
212
|
-
}
|
|
213
|
-
} catch {}
|
|
214
|
-
return Array.from(authDirs);
|
|
215
|
-
}
|
|
216
|
-
function hasAnyWhatsAppAuth(cfg) {
|
|
217
|
-
return listWhatsAppAuthDirs(cfg).some((authDir) => hasWebCredsSync(authDir));
|
|
218
|
-
}
|
|
219
|
-
function resolveAccountConfig(cfg, accountId) {
|
|
220
|
-
return resolveAccountEntry(cfg.channels?.whatsapp?.accounts, accountId);
|
|
221
|
-
}
|
|
222
|
-
function resolveDefaultAuthDir(accountId) {
|
|
223
|
-
return path.join(resolveOAuthDir(), "whatsapp", normalizeAccountId(accountId));
|
|
224
|
-
}
|
|
225
|
-
function resolveLegacyAuthDir() {
|
|
226
|
-
return resolveOAuthDir();
|
|
227
|
-
}
|
|
228
|
-
function legacyAuthExists(authDir) {
|
|
229
|
-
try {
|
|
230
|
-
return fs.existsSync(path.join(authDir, "creds.json"));
|
|
231
|
-
} catch {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
function resolveWhatsAppAuthDir(params) {
|
|
236
|
-
const accountId = params.accountId.trim() || DEFAULT_ACCOUNT_ID;
|
|
237
|
-
const configured = resolveAccountConfig(params.cfg, accountId)?.authDir?.trim();
|
|
238
|
-
if (configured) return {
|
|
239
|
-
authDir: resolveUserPath(configured),
|
|
240
|
-
isLegacy: false
|
|
241
|
-
};
|
|
242
|
-
const defaultDir = resolveDefaultAuthDir(accountId);
|
|
243
|
-
if (accountId === DEFAULT_ACCOUNT_ID) {
|
|
244
|
-
const legacyDir = resolveLegacyAuthDir();
|
|
245
|
-
if (legacyAuthExists(legacyDir) && !legacyAuthExists(defaultDir)) return {
|
|
246
|
-
authDir: legacyDir,
|
|
247
|
-
isLegacy: true
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
return {
|
|
251
|
-
authDir: defaultDir,
|
|
252
|
-
isLegacy: false
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
function resolveWhatsAppAccount(params) {
|
|
256
|
-
const rootCfg = params.cfg.channels?.whatsapp;
|
|
257
|
-
const accountId = params.accountId?.trim() || resolveDefaultWhatsAppAccountId(params.cfg);
|
|
258
|
-
const accountCfg = resolveAccountConfig(params.cfg, accountId);
|
|
259
|
-
const enabled = accountCfg?.enabled !== false;
|
|
260
|
-
const { authDir, isLegacy } = resolveWhatsAppAuthDir({
|
|
261
|
-
cfg: params.cfg,
|
|
262
|
-
accountId
|
|
263
|
-
});
|
|
264
|
-
return {
|
|
265
|
-
accountId,
|
|
266
|
-
name: accountCfg?.name?.trim() || void 0,
|
|
267
|
-
enabled,
|
|
268
|
-
sendReadReceipts: accountCfg?.sendReadReceipts ?? rootCfg?.sendReadReceipts ?? true,
|
|
269
|
-
messagePrefix: accountCfg?.messagePrefix ?? rootCfg?.messagePrefix ?? params.cfg.messages?.messagePrefix,
|
|
270
|
-
authDir,
|
|
271
|
-
isLegacyAuthDir: isLegacy,
|
|
272
|
-
selfChatMode: accountCfg?.selfChatMode ?? rootCfg?.selfChatMode,
|
|
273
|
-
dmPolicy: accountCfg?.dmPolicy ?? rootCfg?.dmPolicy,
|
|
274
|
-
allowFrom: accountCfg?.allowFrom ?? rootCfg?.allowFrom,
|
|
275
|
-
groupAllowFrom: accountCfg?.groupAllowFrom ?? rootCfg?.groupAllowFrom,
|
|
276
|
-
groupPolicy: accountCfg?.groupPolicy ?? rootCfg?.groupPolicy,
|
|
277
|
-
textChunkLimit: accountCfg?.textChunkLimit ?? rootCfg?.textChunkLimit,
|
|
278
|
-
chunkMode: accountCfg?.chunkMode ?? rootCfg?.chunkMode,
|
|
279
|
-
mediaMaxMb: accountCfg?.mediaMaxMb ?? rootCfg?.mediaMaxMb,
|
|
280
|
-
blockStreaming: accountCfg?.blockStreaming ?? rootCfg?.blockStreaming,
|
|
281
|
-
ackReaction: accountCfg?.ackReaction ?? rootCfg?.ackReaction,
|
|
282
|
-
groups: accountCfg?.groups ?? rootCfg?.groups,
|
|
283
|
-
debounceMs: accountCfg?.debounceMs ?? rootCfg?.debounceMs
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
//#endregion
|
|
288
|
-
export { webAuthExists as _, resolveWhatsAppAuthDir as a, logWebSelfId as c, pickWebChannel as d, readCredsJsonRaw as f, resolveWebCredsPath as g, resolveWebCredsBackupPath as h, resolveWhatsAppAccount as i, logoutWeb as l, resolveDefaultWebAuthDir as m, listWhatsAppAccountIds as n, WA_WEB_AUTH_DIR as o, readWebSelfId as p, resolveDefaultWhatsAppAccountId as r, getWebAuthAgeMs as s, hasAnyWhatsAppAuth as t, maybeRestoreCredsFromBackup as u, resolveAccountEntry as v, createAccountListHelpers as y };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-5DMu9szx.js";
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-BNuRM3rG.js";
|
|
3
|
-
|
|
4
|
-
//#region src/signal/accounts.ts
|
|
5
|
-
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
6
|
-
const listSignalAccountIds = listAccountIds;
|
|
7
|
-
const resolveDefaultSignalAccountId = resolveDefaultAccountId;
|
|
8
|
-
function resolveAccountConfig(cfg, accountId) {
|
|
9
|
-
return resolveAccountEntry(cfg.channels?.signal?.accounts, accountId);
|
|
10
|
-
}
|
|
11
|
-
function mergeSignalAccountConfig(cfg, accountId) {
|
|
12
|
-
const { accounts: _ignored, ...base } = cfg.channels?.signal ?? {};
|
|
13
|
-
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
14
|
-
return {
|
|
15
|
-
...base,
|
|
16
|
-
...account
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function resolveSignalAccount(params) {
|
|
20
|
-
const accountId = normalizeAccountId(params.accountId);
|
|
21
|
-
const baseEnabled = params.cfg.channels?.signal?.enabled !== false;
|
|
22
|
-
const merged = mergeSignalAccountConfig(params.cfg, accountId);
|
|
23
|
-
const accountEnabled = merged.enabled !== false;
|
|
24
|
-
const enabled = baseEnabled && accountEnabled;
|
|
25
|
-
const host = merged.httpHost?.trim() || "127.0.0.1";
|
|
26
|
-
const port = merged.httpPort ?? 8080;
|
|
27
|
-
const baseUrl = merged.httpUrl?.trim() || `http://${host}:${port}`;
|
|
28
|
-
const configured = Boolean(merged.account?.trim() || merged.httpUrl?.trim() || merged.cliPath?.trim() || merged.httpHost?.trim() || typeof merged.httpPort === "number" || typeof merged.autoStart === "boolean");
|
|
29
|
-
return {
|
|
30
|
-
accountId,
|
|
31
|
-
enabled,
|
|
32
|
-
name: merged.name?.trim() || void 0,
|
|
33
|
-
baseUrl,
|
|
34
|
-
configured,
|
|
35
|
-
config: merged
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function listEnabledSignalAccounts(cfg) {
|
|
39
|
-
return listSignalAccountIds(cfg).map((accountId) => resolveSignalAccount({
|
|
40
|
-
cfg,
|
|
41
|
-
accountId
|
|
42
|
-
})).filter((account) => account.enabled);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
export { resolveSignalAccount as i, listSignalAccountIds as n, resolveDefaultSignalAccountId as r, listEnabledSignalAccounts as t };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-5DMu9szx.js";
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-BNuRM3rG.js";
|
|
3
|
-
|
|
4
|
-
//#region src/imessage/accounts.ts
|
|
5
|
-
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
6
|
-
const listIMessageAccountIds = listAccountIds;
|
|
7
|
-
const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
|
|
8
|
-
function resolveAccountConfig(cfg, accountId) {
|
|
9
|
-
return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
10
|
-
}
|
|
11
|
-
function mergeIMessageAccountConfig(cfg, accountId) {
|
|
12
|
-
const { accounts: _ignored, ...base } = cfg.channels?.imessage ?? {};
|
|
13
|
-
const account = resolveAccountConfig(cfg, accountId) ?? {};
|
|
14
|
-
return {
|
|
15
|
-
...base,
|
|
16
|
-
...account
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function resolveIMessageAccount(params) {
|
|
20
|
-
const accountId = normalizeAccountId(params.accountId);
|
|
21
|
-
const baseEnabled = params.cfg.channels?.imessage?.enabled !== false;
|
|
22
|
-
const merged = mergeIMessageAccountConfig(params.cfg, accountId);
|
|
23
|
-
const accountEnabled = merged.enabled !== false;
|
|
24
|
-
const configured = Boolean(merged.cliPath?.trim() || merged.dbPath?.trim() || merged.service || merged.region?.trim() || merged.allowFrom && merged.allowFrom.length > 0 || merged.groupAllowFrom && merged.groupAllowFrom.length > 0 || merged.dmPolicy || merged.groupPolicy || typeof merged.includeAttachments === "boolean" || merged.attachmentRoots && merged.attachmentRoots.length > 0 || merged.remoteAttachmentRoots && merged.remoteAttachmentRoots.length > 0 || typeof merged.mediaMaxMb === "number" || typeof merged.textChunkLimit === "number" || merged.groups && Object.keys(merged.groups).length > 0);
|
|
25
|
-
return {
|
|
26
|
-
accountId,
|
|
27
|
-
enabled: baseEnabled && accountEnabled,
|
|
28
|
-
name: merged.name?.trim() || void 0,
|
|
29
|
-
config: merged,
|
|
30
|
-
configured
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { resolveDefaultIMessageAccountId as n, resolveIMessageAccount as r, listIMessageAccountIds as t };
|