squidclaw 3.0.14 → 3.0.16
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-BsypiWiC.js → accounts-BznLC9dH.js} +2 -2
- package/dist/{accounts-CojLB8gu.js → accounts-Ci60lQsY.js} +17 -17
- package/dist/{accounts-CBMZbUu2.js → accounts-Dw4ivpQU.js} +2 -2
- package/dist/{active-listener-eLf5VQ_4.js → active-listener-B5jww01z.js} +2 -2
- package/dist/{api-key-rotation-R0EeTSGR.js → api-key-rotation-C1EZFUSy.js} +2 -2
- package/dist/{audio-preflight-C2dLsMCR.js → audio-preflight-CG6H_U7W.js} +32 -32
- package/dist/{audio-transcription-runner-B7Q9WPbH.js → audio-transcription-runner-D0H4ucWV.js} +12 -12
- package/dist/{audit-membership-runtime-w23FnNAN.js → audit-membership-runtime-DyLj-uhz.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-B-tyheVe.js → channel-activity-CUT8qw0W.js} +3 -3
- package/dist/{chrome-3982B8u4.js → chrome-53mklS3F.js} +18 -18
- package/dist/{command-registry-CquAbyqR.js → command-registry-D-zYyZpc.js} +4 -4
- package/dist/{commands-registry-i6O3l1QI.js → commands-registry-DmH3aIGN.js} +4 -4
- package/dist/{completion-cli-8PdK97J-.js → completion-cli-ClRcwvgc.js} +1 -1
- package/dist/{completion-cli-CIM6cyBy.js → completion-cli-DhTAfX_O.js} +2 -2
- package/dist/{deliver-BLMHHSPm.js → deliver-DBhlEXOh.js} +21 -21
- package/dist/deliver-runtime-BpVWeU13.js +36 -0
- package/dist/deps-send-discord.runtime-CL6FlfRz.js +26 -0
- package/dist/deps-send-imessage.runtime-DP56C3XB.js +25 -0
- package/dist/deps-send-signal.runtime-4WUnsfj1.js +24 -0
- package/dist/deps-send-slack.runtime-BM_8OV-V.js +22 -0
- package/dist/deps-send-telegram.runtime-CL27zxrX.js +27 -0
- package/dist/deps-send-whatsapp.runtime-B0xMiMJX.js +60 -0
- package/dist/{diagnostic-CFkF5G3N.js → diagnostic-C2LLQE3X.js} +2 -2
- package/dist/{doctor-completion-DWWBwulC.js → doctor-completion-CvbhXcBA.js} +1 -1
- package/dist/{doctor-completion-CGmYWy0n.js → doctor-completion-DTHBtueI.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{plugin-sdk/errors-B8oJXuCF.js → errors-kkRuS2Cs.js} +1 -1
- package/dist/{fetch-38Yx06gt.js → fetch-CxBkawdM.js} +5 -5
- package/dist/{fetch-guard-D4vl4ujr.js → fetch-guard-fb71kZZ8.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-9UpCzUUR.js → gateway-cli-5rUG2fBn.js} +1 -1
- package/dist/{gateway-cli-CUph5Eqo.js → gateway-cli-CF1kp5f9.js} +1 -1
- package/dist/{github-copilot-token-Cw3tAXM9.js → github-copilot-token-B5cPlwaz.js} +7 -7
- package/dist/{image-UWdNg3AV.js → image-C5cdH_Hn.js} +6 -6
- package/dist/{image-ops-MgyUqvIc.js → image-ops-BSjD6uEb.js} +2 -2
- package/dist/image-runtime-B1jzvCV9.js +29 -0
- package/dist/index.js +1 -1
- package/dist/{ir-KtKnWVYv.js → ir-DM4doOj9.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-BJ7RjzPV.js → login--L7xmR80.js} +5 -5
- package/dist/{login-qr-C2dv3VjF.js → login-qr-StQBwOgw.js} +10 -10
- package/dist/{manager-Cz8NNpPk.js → manager-B5htbo-7.js} +13 -13
- package/dist/manager-runtime-CbCJ9KL0.js +18 -0
- package/dist/{model-selection-2Xl7Zx-s.js → model-selection-BfuTT3Ie.js} +43 -43
- package/dist/{onboard-DLJ_9fJU.js → onboard-BVgRwIeK.js} +1 -1
- package/dist/{onboard-aISMp4Kt.js → onboard-Vq9LkQon.js} +1 -1
- package/dist/{onboarding-Bl4RDn6W.js → onboarding-BW7AN6GP.js} +1 -1
- package/dist/{onboarding-YgRfODPk.js → onboarding-DO1ScRD8.js} +1 -1
- package/dist/{onboarding.finalize-Bm7_INHb.js → onboarding.finalize-DyoNGKAv.js} +11 -3
- package/dist/{onboarding.finalize-DQcrecUs.js → onboarding.finalize-mpPeXAsn.js} +12 -4
- package/dist/{outbound-CZO5ZCAG.js → outbound-Dp8B-7n3.js} +6 -6
- package/dist/{outbound-attachment-BBtJNyuW.js → outbound-attachment-BSZq7jTZ.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-DgpQEVa1.js → pi-embedded-CrAWjHKR.js} +162 -162
- package/dist/{pi-embedded-helpers-CkCvcpdc.js → pi-embedded-helpers-DM4KAgn-.js} +52 -52
- package/dist/{pi-model-discovery-CHdwOZiV.js → pi-model-discovery-DE0XZt9x.js} +7 -7
- package/dist/pi-model-discovery-runtime-B5s0PRpY.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-BlLvl0eL.js → pi-tools.before-tool-call.runtime-DfLoi4qR.js} +9 -9
- package/dist/plugin-sdk/{accounts-BW7b9aIf.js → accounts-C9RGqL4T.js} +3 -3
- package/dist/plugin-sdk/{accounts-tAi-tfAf.js → accounts-CgiUq3Un.js} +2 -2
- package/dist/plugin-sdk/{accounts-De05T3_J.js → accounts-DcDj_weC.js} +2 -2
- package/dist/plugin-sdk/{active-listener-DZCohPuZ.js → active-listener-BlJ5RUzB.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-CrX0fvDj.js → api-key-rotation-Z-Qny376.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-BgPpaXum.js → audio-preflight-DXuewfE7.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-CO4tyQtQ.js → audio-transcription-runner-DSNzBBSH.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-Xl20kCBe.js → audit-membership-runtime-DHQDvH4u.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-QlTyjswN.js → channel-activity-D1afTUj8.js} +3 -3
- package/dist/plugin-sdk/{channel-web-NzpRnn9f.js → channel-web-IPKOTqU3.js} +18 -18
- package/dist/plugin-sdk/{chrome-CVbDHFaE.js → chrome-B1q83rKv.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-DSWbTWB2.js → commands-registry-DzySrtKG.js} +4 -4
- package/dist/plugin-sdk/{common-BpvaubXW.js → common-D8IL0ajZ.js} +2 -2
- package/dist/plugin-sdk/{config-DE6ibnmU.js → config-B5u_IldI.js} +7 -7
- package/dist/plugin-sdk/{deliver-86fU1nUC.js → deliver-S0Nnmc4b.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-tAQPm44B.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DeuyKcxA.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-D9NRm877.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-DBepwGd9.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-CUWnNsmH.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-CRI0ptpU.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CypkchYB.js +57 -0
- package/dist/plugin-sdk/{diagnostic-DwTd77di.js → diagnostic-CMOeaeBe.js} +2 -2
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/{errors-DfgAh2Ml.js → plugin-sdk/errors-9oVz7reJ.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-dmZ4U9uQ.js → fetch-guard-C_jkJc0N.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DqCO1D4C.js → fs-safe-DFbwq9CS.js} +3 -3
- package/dist/plugin-sdk/{image-UG930mNm.js → image-C-YH4Uik.js} +6 -6
- package/dist/plugin-sdk/{image-ops-D9cweu_-.js → image-ops-57ipHrBF.js} +2 -2
- package/dist/plugin-sdk/image-runtime-BzP3HfiE.js +25 -0
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/{ir-pigw84ir.js → ir-CYDBM_JC.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIhD7Co-.js → local-roots-BfR7HxIa.js} +4 -4
- package/dist/plugin-sdk/{logger-DIb2cGHp.js → logger-Bg4vIUJn.js} +2 -2
- package/dist/plugin-sdk/{login-DN33Ry8p.js → login-BhBKfrcu.js} +4 -4
- package/dist/plugin-sdk/{login-qr-DXZPiiDq.js → login-qr-pZv8YA21.js} +5 -5
- package/dist/plugin-sdk/{manager-cBbgCrQ7.js → manager-CNL-O6jb.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-B87hYNyb.js +15 -0
- package/dist/plugin-sdk/{outbound-attachment-C4f-OcC0.js → outbound-attachment-rsxzcJYF.js} +2 -2
- package/dist/plugin-sdk/{outbound-ux3UTEA3.js → outbound-icMF_rUc.js} +5 -5
- package/dist/plugin-sdk/{path-alias-guards-TnxupPQC.js → path-alias-guards-DA0MhfkG.js} +1 -1
- package/dist/plugin-sdk/{paths-B7_75Pdr.js → paths-CP67O8eN.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-CBAsAxOB.js → pi-embedded-helpers-8ieRSf-l.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-hrhgLkQy.js → pi-model-discovery-DSSANt82.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-C2t2kU5s.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-EL-r4x87.js → pi-tools.before-tool-call.runtime-ChLGyK0j.js} +4 -4
- package/dist/plugin-sdk/{plugins-NKOOkt_i.js → plugins-BLeJXdd2.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-DooJ7AbC.js → proxy-env-CtPm4saU.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-ZPEvp58f.js → proxy-fetch-Cf3IUSDw.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-jALO1jBq.js → pw-ai-CtZSk4at.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-Bei6TaFq.js → qmd-manager-Ov9ElEfG.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-POz2za8a.js → query-expansion-CzjwW461.js} +4 -4
- package/dist/plugin-sdk/{redact-9WsNyb7S.js → redact-DfACyt0X.js} +1 -1
- package/dist/plugin-sdk/{reply-sihF_R23.js → reply-Bl5GGHri.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-qXRaNZi8.js → resolve-outbound-target-D-0B2aK8.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-DmTrN5JG.js → run-with-concurrency-kVooFCVo.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6MdStWm.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DexVGpkn.js +19 -0
- package/dist/plugin-sdk/{send-jou-S7lc.js → send-BKQRdkHg.js} +5 -5
- package/dist/plugin-sdk/{send-aWQBb6ca.js → send-BkAfzZYd.js} +8 -8
- package/dist/plugin-sdk/{send-BMv-WOpW.js → send-C7C3x6hg.js} +7 -7
- package/dist/plugin-sdk/{send-Cm6HGK-a.js → send-CGlHhdoZ.js} +6 -6
- package/dist/plugin-sdk/{send-DZB0Hlej.js → send-YldTY40c.js} +13 -13
- package/dist/plugin-sdk/{session-C98G_V4e.js → session-uS6b35hg.js} +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/plugin-sdk/{skill-commands-_K2_qYb4.js → skill-commands-c9HTevk5.js} +4 -4
- package/dist/plugin-sdk/{skills-D58hSyfJ.js → skills-OK3LublS.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-JFUaFK3N.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BP81ZOIp.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-KVmn_84j.js +16 -0
- package/dist/plugin-sdk/{store-CHxyy2Nq.js → store-BkxOV4wy.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-DZHhsl5N.js +52 -0
- package/dist/plugin-sdk/{tables-D2Q-dmPT.js → tables-8_ELoE8R.js} +1 -1
- package/dist/plugin-sdk/{thinking-0lRH3Rcl.js → thinking-TLm688bb.js} +7 -7
- package/dist/plugin-sdk/{tokens-CTIYTLWu.js → tokens-DAL_5WHL.js} +1 -1
- package/dist/plugin-sdk/{tool-images-K2kMTUHK.js → tool-images-CbObuT48.js} +2 -2
- package/dist/plugin-sdk/web-DIhuSOD-.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-DnEN6SNn.js → whatsapp-actions-DVZ223y_.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{plugins--Y8ggxrk.js → plugins-Db8j13y8.js} +11 -11
- package/dist/{program-BpSOl_1X.js → program-BJO_oaKF.js} +2 -2
- package/dist/{program-context-tphS7xu7.js → program-context-CWsWlM9-.js} +6 -6
- package/dist/{prompt-select-styled-DL2p1pfi.js → prompt-select-styled-CnWGIwST.js} +1 -1
- package/dist/{prompt-select-styled-CqnrivgC.js → prompt-select-styled-R6Iau0zv.js} +1 -1
- package/dist/{proxy-env-BAlmOqn_.js → proxy-env-bjBQWAZU.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-Dt5BedH8.js → proxy-fetch-lH6RsRTE.js} +1 -1
- package/dist/{pw-ai-Ci7uZGTd.js → pw-ai-BMx3rnIH.js} +14 -14
- 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.maintenance-BUWUvg1o.js → register.maintenance-C0WLFNcv.js} +5 -5
- package/dist/{register.maintenance-CMAt3Nl8.js → register.maintenance-c4CZQhHy.js} +4 -4
- package/dist/{register.onboard-CbiTdKQX.js → register.onboard-B8LXDCnA.js} +2 -2
- package/dist/{register.onboard-1KrFhKgA.js → register.onboard-C8-hGp4-.js} +2 -2
- package/dist/{register.setup-KhsHMx2v.js → register.setup-Bw1pnWbM.js} +2 -2
- package/dist/{register.setup-Ct7W5KHu.js → register.setup-DiUpJRvj.js} +2 -2
- package/dist/{register.subclis-Z1fJCSxh.js → register.subclis-BbFUfhdj.js} +3 -3
- package/dist/{run-main-DDsH3MYf.js → run-main-Exefhxet.js} +3 -3
- package/dist/{run-with-concurrency-FczpX8ng.js → run-with-concurrency-BFR3ReeF.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DTnWO4dr.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-XzfTCc36.js +22 -0
- package/dist/{send-BYlxWwez.js → send-0EU-Y3Gn.js} +5 -5
- package/dist/{send-Jg_3nT2E.js → send-B92swUj4.js} +26 -26
- package/dist/{send-Je58aHGD.js → send-By-oi8SV.js} +6 -6
- package/dist/{send-CqgPl09X.js → send-C2v8GsVK.js} +7 -7
- package/dist/{send-D2tGdo2t.js → send-CKtUdJpX.js} +8 -8
- package/dist/{session-DC1-0Js7.js → session-CZ24KNcj.js} +8 -8
- package/dist/{skill-commands-BaKuTMGP.js → skill-commands-BRoRvs2q.js} +9 -9
- package/dist/{skills-BeJSK5PY.js → skills-OLKf_9cW.js} +22 -22
- package/dist/slash-commands.runtime-jY_-vStu.js +16 -0
- package/dist/slash-dispatch.runtime-BxaEpG30.js +56 -0
- package/dist/slash-skill-commands.runtime-B6vRGL-p.js +20 -0
- package/dist/{store-Ky_egzlA.js → store-Mz6VjFuy.js} +2 -2
- package/dist/subagent-registry-runtime-BNE1FIwQ.js +56 -0
- package/dist/{subsystem-BaLYRf7D.js → subsystem-6v7sWnAD.js} +14 -14
- package/dist/{tables-BlsVH8H4.js → tables-0InE37AN.js} +1 -1
- package/dist/{plugin-sdk/target-errors-BVBW25Y3.js → target-errors-B37sVq3w.js} +2 -2
- package/dist/{thinking-D9F_aLRB.js → thinking-D4AaB24F.js} +7 -7
- package/dist/{tokens-D2XhLqIz.js → tokens-DfbMVF9y.js} +1 -1
- package/dist/{tool-images-C2WK6W0J.js → tool-images-Dpl5RgN7.js} +2 -2
- package/dist/{update-cli-gLKrP8UQ.js → update-cli-CeMQxSs2.js} +4 -4
- package/dist/{update-cli-Fe17E_Xm.js → update-cli-esFXuN7Z.js} +5 -5
- package/dist/{web-D4FdtS8P.js → web-gFh8coIz.js} +55 -55
- package/dist/{whatsapp-actions-aF5qDSh_.js → whatsapp-actions-B-LXYZ6Z.js} +21 -21
- package/dist/{workspace-TqfVSQuO.js → workspace-kVMIaBrV.js} +20 -20
- package/package.json +1 -1
- package/dist/deliver-runtime-BSg7XU_9.js +0 -36
- package/dist/deps-send-discord.runtime-DpEvkdzn.js +0 -26
- package/dist/deps-send-imessage.runtime-etYmfsQ1.js +0 -25
- package/dist/deps-send-signal.runtime-4HiuvLY4.js +0 -24
- package/dist/deps-send-slack.runtime-Y5M5BNt7.js +0 -22
- package/dist/deps-send-telegram.runtime-CQ6XgUqx.js +0 -27
- package/dist/deps-send-whatsapp.runtime-B1XdeiW1.js +0 -60
- package/dist/image-runtime-3Z60UCGO.js +0 -29
- package/dist/manager-runtime-By-gmgqz.js +0 -18
- package/dist/pi-model-discovery-runtime-DiznhLrZ.js +0 -11
- package/dist/plugin-sdk/accounts-B6gye1Jd.js +0 -46
- package/dist/plugin-sdk/accounts-C-BT6Po7.js +0 -288
- package/dist/plugin-sdk/accounts-DQDXV8eB.js +0 -35
- package/dist/plugin-sdk/active-listener-CirjQdCm.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-CCoQ5SD_.js +0 -181
- package/dist/plugin-sdk/audio-preflight-xnWAFqH-.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-BDmtq7-q.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +0 -58
- package/dist/plugin-sdk/channel-activity-JjLRpUa_.js +0 -94
- package/dist/plugin-sdk/channel-web-DNWsxhYh.js +0 -2256
- package/dist/plugin-sdk/chrome-B5PWOUbr.js +0 -2415
- package/dist/plugin-sdk/commands-registry-BKeyJUxK.js +0 -1125
- package/dist/plugin-sdk/config-FhBFLsNm.js +0 -17911
- package/dist/plugin-sdk/deliver-DEbTlzFy.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-BJHbLq-S.js +0 -32
- package/dist/plugin-sdk/deliver-runtime-CO2uP-r9.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-CDRnV2G9.js +0 -23
- package/dist/plugin-sdk/deps-send-discord.runtime-DIPW0tR4.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-B6kLsqc2.js +0 -22
- package/dist/plugin-sdk/deps-send-imessage.runtime-ByGjRa1H.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BSQh0bHr.js +0 -21
- package/dist/plugin-sdk/deps-send-signal.runtime-Ca1awu4L.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-BFom-0ng.js +0 -19
- package/dist/plugin-sdk/deps-send-slack.runtime-CRzWCVkC.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-BWyavKp9.js +0 -24
- package/dist/plugin-sdk/deps-send-telegram.runtime-CpTtZ6JM.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-C0XcOgX1.js +0 -57
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-cC_XvHV8.js +0 -57
- package/dist/plugin-sdk/diagnostic-Dv9S12vm.js +0 -319
- package/dist/plugin-sdk/errors-CgRPdp3o.js +0 -54
- package/dist/plugin-sdk/fetch-guard-W_A4uSz2.js +0 -156
- package/dist/plugin-sdk/fs-safe-Dqmpk-Fr.js +0 -352
- package/dist/plugin-sdk/image-BSFy8d1M.js +0 -2310
- package/dist/plugin-sdk/image-ops-DN17S88I.js +0 -584
- package/dist/plugin-sdk/image-runtime-5YO31sjU.js +0 -25
- package/dist/plugin-sdk/image-runtime-Bu3DSIBB.js +0 -25
- package/dist/plugin-sdk/ir-JaPZ0yKH.js +0 -1296
- package/dist/plugin-sdk/local-roots-BTW3ifco.js +0 -186
- package/dist/plugin-sdk/logger-DDdrdbDu.js +0 -1163
- package/dist/plugin-sdk/login-BXGRny-S.js +0 -57
- package/dist/plugin-sdk/login-qr-DTs92ap8.js +0 -320
- package/dist/plugin-sdk/manager-DzFj9oHX.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-Dbz_bpiL.js +0 -15
- package/dist/plugin-sdk/manager-runtime-DrpyZvO0.js +0 -15
- package/dist/plugin-sdk/outbound-CQ7uBBML.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-dTE6EVdX.js +0 -19
- 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-CfzQPXDC.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-Bt6B0MAj.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-BcgXpTmL.js +0 -8
- package/dist/plugin-sdk/pi-model-discovery-runtime-SPHihgeR.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DYJQxhuo.js +0 -354
- package/dist/plugin-sdk/plugins-6NxPd6TS.js +0 -864
- package/dist/plugin-sdk/pw-ai-BFK39pwE.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-BoNEjbpF.js +0 -319
- package/dist/plugin-sdk/reply-DgcrQBKL.js +0 -98828
- package/dist/plugin-sdk/resolve-outbound-target-CbaJ-kc2.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DMNRnMAJ.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-jkgyeVsN.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DdLJJ1YC.js +0 -19
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-w9rCES1O.js +0 -19
- package/dist/plugin-sdk/send-BSoMbeqA.js +0 -3135
- package/dist/plugin-sdk/send-Byyfc20_.js +0 -503
- package/dist/plugin-sdk/send-CI-xWEs7.js +0 -2587
- package/dist/plugin-sdk/send-DzP9EJqK.js +0 -540
- package/dist/plugin-sdk/send-MlSZ82sA.js +0 -414
- package/dist/plugin-sdk/session-DFy97tfW.js +0 -169
- package/dist/plugin-sdk/skill-commands-yum46YuA.js +0 -342
- package/dist/plugin-sdk/skills-DUphJGKn.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-5UW5KLyR.js +0 -13
- package/dist/plugin-sdk/slash-commands.runtime-CyZybvM0.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-4oQ2P_qo.js +0 -52
- package/dist/plugin-sdk/slash-dispatch.runtime-DGI2ovR2.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-Cb1PFrG4.js +0 -16
- package/dist/plugin-sdk/slash-skill-commands.runtime-y_mOLyS7.js +0 -16
- package/dist/plugin-sdk/ssrf-B3XRWBsP.js +0 -202
- package/dist/plugin-sdk/store-DFvIhzWZ.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-DtKXhKtl.js +0 -52
- package/dist/plugin-sdk/subagent-registry-runtime-TxOQ-aoU.js +0 -52
- package/dist/plugin-sdk/tables-bDM_jlLP.js +0 -55
- package/dist/plugin-sdk/thinking-Bu-w5mW5.js +0 -1206
- package/dist/plugin-sdk/tokens-CLE20fRI.js +0 -52
- package/dist/plugin-sdk/tool-images-D0G_giwP.js +0 -274
- package/dist/plugin-sdk/web-DSXk7XCb.js +0 -56
- package/dist/plugin-sdk/web-wfXoGaeS.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-BOyA0Uuj.js +0 -80
- package/dist/proxy-fetch-C2v-Utgg.js +0 -38
- package/dist/runtime-whatsapp-login.runtime-nLoztrHq.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-ipj7KEHf.js +0 -22
- package/dist/slash-commands.runtime-SPLrdY5U.js +0 -16
- package/dist/slash-dispatch.runtime-BXF9mgkV.js +0 -56
- package/dist/slash-skill-commands.runtime-DbWF-siU.js +0 -20
- package/dist/subagent-registry-runtime-CqsLRf4P.js +0 -56
- package/dist/target-errors-CiNyvgLy.js +0 -195
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-
|
|
2
|
-
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-
|
|
5
|
-
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
6
|
-
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-
|
|
7
|
-
import { c as parseBooleanValue } from "./legacy-names-
|
|
8
|
-
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-
|
|
9
|
-
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins
|
|
1
|
+
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-DA5srn0U.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-kVMIaBrV.js";
|
|
5
|
+
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-CnTSBL7T.js";
|
|
6
|
+
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-BfuTT3Ie.js";
|
|
7
|
+
import { c as parseBooleanValue } from "./legacy-names-aGJJuzM_.js";
|
|
8
|
+
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-D4AaB24F.js";
|
|
9
|
+
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-Db8j13y8.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
11
|
-
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
12
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
13
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
14
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
15
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
16
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
17
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
11
|
+
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-BSjD6uEb.js";
|
|
12
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-53mklS3F.js";
|
|
13
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-OLKf_9cW.js";
|
|
14
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DORgbZ1w.js";
|
|
15
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-kkRuS2Cs.js";
|
|
16
|
+
import { n as SsrFBlockedError } from "./proxy-env-bjBQWAZU.js";
|
|
17
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-Mz6VjFuy.js";
|
|
18
18
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-B89VigUN.js";
|
|
19
19
|
import { i as writeTextAtomic, r as writeJsonAtomic } from "./json-files-D7-rxoSr.js";
|
|
20
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
20
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-DSd911Oe.js";
|
|
21
21
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
22
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
22
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-Dpl5RgN7.js";
|
|
23
23
|
import fs from "node:fs/promises";
|
|
24
24
|
import os from "node:os";
|
|
25
25
|
import path, { posix } from "node:path";
|
|
26
|
-
import
|
|
26
|
+
import syncFs, { existsSync } from "node:fs";
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
29
29
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1278,7 +1278,7 @@ function isModuleNotFoundError(err) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
async function loadPwAiModule(mode) {
|
|
1280
1280
|
try {
|
|
1281
|
-
return await import("./pw-ai-
|
|
1281
|
+
return await import("./pw-ai-BMx3rnIH.js");
|
|
1282
1282
|
} catch (err) {
|
|
1283
1283
|
if (mode === "soft") return null;
|
|
1284
1284
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3055,11 +3055,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3055
3055
|
return targetPath;
|
|
3056
3056
|
} catch {
|
|
3057
3057
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3058
|
-
|
|
3058
|
+
syncFs.mkdirSync(trashDir, { recursive: true });
|
|
3059
3059
|
const base = path.basename(targetPath);
|
|
3060
3060
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3061
|
-
if (
|
|
3062
|
-
|
|
3061
|
+
if (syncFs.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3062
|
+
syncFs.renameSync(targetPath, dest);
|
|
3063
3063
|
return dest;
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
@@ -3146,7 +3146,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3146
3146
|
} catch {}
|
|
3147
3147
|
const userDataDir = resolveSquidClawUserDataDir(name);
|
|
3148
3148
|
const profileDir = path.dirname(userDataDir);
|
|
3149
|
-
if (
|
|
3149
|
+
if (syncFs.existsSync(profileDir)) {
|
|
3150
3150
|
await movePathToTrash(profileDir);
|
|
3151
3151
|
deleted = true;
|
|
3152
3152
|
}
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-BMx3rnIH.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveSquidClawUserDataDir }) {
|
|
@@ -3662,7 +3662,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3662
3662
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3663
3663
|
if (profileState.running) await stopRunningBrowser();
|
|
3664
3664
|
await closePlaywrightBrowserConnection();
|
|
3665
|
-
if (!
|
|
3665
|
+
if (!syncFs.existsSync(userDataDir)) return {
|
|
3666
3666
|
moved: false,
|
|
3667
3667
|
from: userDataDir
|
|
3668
3668
|
};
|
|
@@ -4410,7 +4410,7 @@ function releaseAllLocksSync() {
|
|
|
4410
4410
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
4411
4411
|
} catch {}
|
|
4412
4412
|
try {
|
|
4413
|
-
|
|
4413
|
+
syncFs.rmSync(held.lockPath, { force: true });
|
|
4414
4414
|
} catch {}
|
|
4415
4415
|
HELD_LOCKS.delete(sessionFile);
|
|
4416
4416
|
}
|
|
@@ -6008,7 +6008,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6008
6008
|
if (guarded.reason !== "path") {
|
|
6009
6009
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
6010
6010
|
}
|
|
6011
|
-
} else
|
|
6011
|
+
} else syncFs.closeSync(guarded.fd);
|
|
6012
6012
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
6013
6013
|
containerPath: target.containerPath,
|
|
6014
6014
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -6019,7 +6019,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
pathIsExistingDirectory(hostPath) {
|
|
6021
6021
|
try {
|
|
6022
|
-
return
|
|
6022
|
+
return syncFs.statSync(hostPath).isDirectory();
|
|
6023
6023
|
} catch {
|
|
6024
6024
|
return false;
|
|
6025
6025
|
}
|
|
@@ -6820,14 +6820,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
6820
6820
|
function canonicalizePathForComparison$1(filePath) {
|
|
6821
6821
|
const resolved = path.resolve(filePath);
|
|
6822
6822
|
try {
|
|
6823
|
-
return
|
|
6823
|
+
return syncFs.realpathSync(resolved);
|
|
6824
6824
|
} catch {
|
|
6825
6825
|
return resolved;
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
function archiveFileOnDisk(filePath, reason) {
|
|
6829
6829
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
6830
|
-
|
|
6830
|
+
syncFs.renameSync(filePath, archived);
|
|
6831
6831
|
return archived;
|
|
6832
6832
|
}
|
|
6833
6833
|
/**
|
|
@@ -6843,7 +6843,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
6843
6843
|
const relative = path.relative(storeDir, candidatePath);
|
|
6844
6844
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
6845
6845
|
}
|
|
6846
|
-
if (!
|
|
6846
|
+
if (!syncFs.existsSync(candidatePath)) continue;
|
|
6847
6847
|
try {
|
|
6848
6848
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
6849
6849
|
} catch {}
|
|
@@ -6861,15 +6861,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
6861
6861
|
let removed = 0;
|
|
6862
6862
|
let scanned = 0;
|
|
6863
6863
|
for (const dir of directories) {
|
|
6864
|
-
const entries = await
|
|
6864
|
+
const entries = await syncFs.promises.readdir(dir).catch(() => []);
|
|
6865
6865
|
for (const entry of entries) {
|
|
6866
6866
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
6867
6867
|
if (timestamp == null) continue;
|
|
6868
6868
|
scanned += 1;
|
|
6869
6869
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
6870
6870
|
const fullPath = path.join(dir, entry);
|
|
6871
|
-
if (!(await
|
|
6872
|
-
await
|
|
6871
|
+
if (!(await syncFs.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
6872
|
+
await syncFs.promises.rm(fullPath).catch(() => void 0);
|
|
6873
6873
|
removed += 1;
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
@@ -6999,7 +6999,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
6999
6999
|
}
|
|
7000
7000
|
function getFileStatSnapshot(filePath) {
|
|
7001
7001
|
try {
|
|
7002
|
-
const stats =
|
|
7002
|
+
const stats = syncFs.statSync(filePath);
|
|
7003
7003
|
return {
|
|
7004
7004
|
mtimeMs: stats.mtimeMs,
|
|
7005
7005
|
sizeBytes: stats.size
|
|
@@ -7018,7 +7018,7 @@ const NOOP_LOGGER = {
|
|
|
7018
7018
|
function canonicalizePathForComparison(filePath) {
|
|
7019
7019
|
const resolved = path.resolve(filePath);
|
|
7020
7020
|
try {
|
|
7021
|
-
return
|
|
7021
|
+
return syncFs.realpathSync(resolved);
|
|
7022
7022
|
} catch {
|
|
7023
7023
|
return resolved;
|
|
7024
7024
|
}
|
|
@@ -7076,12 +7076,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
7076
7076
|
return referenced;
|
|
7077
7077
|
}
|
|
7078
7078
|
async function readSessionsDirFiles(sessionsDir) {
|
|
7079
|
-
const dirEntries = await
|
|
7079
|
+
const dirEntries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
7080
7080
|
const files = [];
|
|
7081
7081
|
for (const dirent of dirEntries) {
|
|
7082
7082
|
if (!dirent.isFile()) continue;
|
|
7083
7083
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
7084
|
-
const stat = await
|
|
7084
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7085
7085
|
if (!stat?.isFile()) continue;
|
|
7086
7086
|
files.push({
|
|
7087
7087
|
path: filePath,
|
|
@@ -7094,9 +7094,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
7094
7094
|
return files;
|
|
7095
7095
|
}
|
|
7096
7096
|
async function removeFileIfExists(filePath) {
|
|
7097
|
-
const stat = await
|
|
7097
|
+
const stat = await syncFs.promises.stat(filePath).catch(() => null);
|
|
7098
7098
|
if (!stat?.isFile()) return 0;
|
|
7099
|
-
await
|
|
7099
|
+
await syncFs.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
7100
7100
|
return stat.size;
|
|
7101
7101
|
}
|
|
7102
7102
|
async function removeFileForBudget(params) {
|
|
@@ -7455,7 +7455,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
async function getSessionFileSize(storePath) {
|
|
7457
7457
|
try {
|
|
7458
|
-
return (await
|
|
7458
|
+
return (await syncFs.promises.stat(storePath)).size;
|
|
7459
7459
|
} catch {
|
|
7460
7460
|
return null;
|
|
7461
7461
|
}
|
|
@@ -7472,7 +7472,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7472
7472
|
if (fileSize <= maxBytes) return false;
|
|
7473
7473
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
7474
7474
|
try {
|
|
7475
|
-
await
|
|
7475
|
+
await syncFs.promises.rename(storePath, backupPath);
|
|
7476
7476
|
log$2.info("rotated session store file", {
|
|
7477
7477
|
backupPath: path.basename(backupPath),
|
|
7478
7478
|
sizeBytes: fileSize
|
|
@@ -7483,11 +7483,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7483
7483
|
try {
|
|
7484
7484
|
const dir = path.dirname(storePath);
|
|
7485
7485
|
const baseName = path.basename(storePath);
|
|
7486
|
-
const backups = (await
|
|
7486
|
+
const backups = (await syncFs.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
7487
7487
|
const maxBackups = 3;
|
|
7488
7488
|
if (backups.length > maxBackups) {
|
|
7489
7489
|
const toDelete = backups.slice(maxBackups);
|
|
7490
|
-
for (const old of toDelete) await
|
|
7490
|
+
for (const old of toDelete) await syncFs.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
7491
7491
|
log$2.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
7492
7492
|
}
|
|
7493
7493
|
} catch {}
|
|
@@ -7610,7 +7610,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
7610
7610
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
7611
7611
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
7612
7612
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
7613
|
-
const raw =
|
|
7613
|
+
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
7614
7614
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
7615
7615
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
7616
7616
|
continue;
|
|
@@ -7764,7 +7764,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
7764
7764
|
});
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
7767
|
-
await
|
|
7767
|
+
await syncFs.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
7768
7768
|
const json = JSON.stringify(store, null, 2);
|
|
7769
7769
|
if (getSerializedSessionStore(storePath) === json) {
|
|
7770
7770
|
updateSessionStoreWriteCaches({
|
|
@@ -8101,8 +8101,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
8101
8101
|
return trimmed ? trimmed : null;
|
|
8102
8102
|
}
|
|
8103
8103
|
async function ensureSessionHeader(params) {
|
|
8104
|
-
if (
|
|
8105
|
-
await
|
|
8104
|
+
if (syncFs.existsSync(params.sessionFile)) return;
|
|
8105
|
+
await syncFs.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
8106
8106
|
const header = {
|
|
8107
8107
|
type: "session",
|
|
8108
8108
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -8110,7 +8110,7 @@ async function ensureSessionHeader(params) {
|
|
|
8110
8110
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8111
8111
|
cwd: process.cwd()
|
|
8112
8112
|
};
|
|
8113
|
-
await
|
|
8113
|
+
await syncFs.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
8114
8114
|
encoding: "utf-8",
|
|
8115
8115
|
mode: 384
|
|
8116
8116
|
});
|
|
@@ -8345,13 +8345,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
8345
8345
|
});
|
|
8346
8346
|
if (!opened.ok) continue;
|
|
8347
8347
|
try {
|
|
8348
|
-
const content =
|
|
8348
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
8349
8349
|
await fs.writeFile(dest, content, {
|
|
8350
8350
|
encoding: "utf-8",
|
|
8351
8351
|
flag: "wx"
|
|
8352
8352
|
});
|
|
8353
8353
|
} finally {
|
|
8354
|
-
|
|
8354
|
+
syncFs.closeSync(opened.fd);
|
|
8355
8355
|
}
|
|
8356
8356
|
} catch {}
|
|
8357
8357
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as normalizeProviderId, nr as ensureAuthProfileStore } from "./model-selection-
|
|
2
|
+
import { c as normalizeProviderId, nr as ensureAuthProfileStore } from "./model-selection-BfuTT3Ie.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import syncFs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -70,10 +70,10 @@ function isRecord(value) {
|
|
|
70
70
|
}
|
|
71
71
|
function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
72
72
|
if (process.env.SQUIDCLAW_AUTH_STORE_READONLY === "1") return;
|
|
73
|
-
if (!
|
|
73
|
+
if (!syncFs.existsSync(pathname)) return;
|
|
74
74
|
let parsed;
|
|
75
75
|
try {
|
|
76
|
-
parsed = JSON.parse(
|
|
76
|
+
parsed = JSON.parse(syncFs.readFileSync(pathname, "utf8"));
|
|
77
77
|
} catch {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -87,11 +87,11 @@ function scrubLegacyStaticAuthJsonEntries(pathname) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!changed) return;
|
|
89
89
|
if (Object.keys(parsed).length === 0) {
|
|
90
|
-
|
|
90
|
+
syncFs.rmSync(pathname, { force: true });
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
syncFs.writeFileSync(pathname, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
|
|
94
|
+
syncFs.chmodSync(pathname, 384);
|
|
95
95
|
}
|
|
96
96
|
function createAuthStorage(AuthStorageLike, path, creds) {
|
|
97
97
|
const withInMemory = AuthStorageLike;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import "./logger-CnTSBL7T.js";
|
|
6
|
+
import "./model-selection-BfuTT3Ie.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DE0XZt9x.js";
|
|
10
|
+
|
|
11
|
+
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { D as isPlainObject } from "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-
|
|
1
|
+
import "./run-with-concurrency-BFR3ReeF.js";
|
|
2
|
+
import "./paths-DA5srn0U.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-6v7sWnAD.js";
|
|
4
|
+
import "./workspace-kVMIaBrV.js";
|
|
5
|
+
import { D as isPlainObject } from "./logger-CnTSBL7T.js";
|
|
6
|
+
import "./model-selection-BfuTT3Ie.js";
|
|
7
|
+
import "./github-copilot-token-B5cPlwaz.js";
|
|
8
|
+
import "./legacy-names-aGJJuzM_.js";
|
|
9
|
+
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-C2LLQE3X.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand } from "./config-
|
|
3
|
-
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-B5u_IldI.js";
|
|
3
|
+
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-Bg4vIUJn.js";
|
|
4
4
|
import { o as resolveOAuthDir } from "./paths-Duwviem_.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-C9RGqL4T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-C9RGqL4T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-
|
|
2
|
-
import {
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-B5u_IldI.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { Ht as normalizeProviderId } from "./config-B5u_IldI.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-9oVz7reJ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./config-
|
|
3
|
-
import { L as logVerbose, z as shouldLogVerbose } from "./logger-
|
|
1
|
+
import "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import "./config-B5u_IldI.js";
|
|
3
|
+
import { L as logVerbose, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
|
|
4
4
|
import "./paths-Duwviem_.js";
|
|
5
|
-
import "./accounts-
|
|
6
|
-
import "./plugins-
|
|
7
|
-
import "./thinking-
|
|
8
|
-
import "./accounts-
|
|
9
|
-
import "./image-ops-
|
|
10
|
-
import "./pi-embedded-helpers-
|
|
11
|
-
import "./accounts-
|
|
5
|
+
import "./accounts-C9RGqL4T.js";
|
|
6
|
+
import "./plugins-BLeJXdd2.js";
|
|
7
|
+
import "./thinking-TLm688bb.js";
|
|
8
|
+
import "./accounts-DcDj_weC.js";
|
|
9
|
+
import "./image-ops-57ipHrBF.js";
|
|
10
|
+
import "./pi-embedded-helpers-8ieRSf-l.js";
|
|
11
|
+
import "./accounts-CgiUq3Un.js";
|
|
12
12
|
import "./github-copilot-token-C0y6vp3r.js";
|
|
13
|
-
import "./paths-
|
|
14
|
-
import { i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, p as isAudioAttachment, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
15
|
-
import "./image-
|
|
16
|
-
import "./chrome-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./redact-
|
|
20
|
-
import "./errors-
|
|
21
|
-
import "./fs-safe-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./store-
|
|
24
|
-
import "./tool-images-
|
|
25
|
-
import "./fetch-guard-
|
|
26
|
-
import "./api-key-rotation-
|
|
27
|
-
import "./local-roots-
|
|
28
|
-
import "./proxy-fetch-
|
|
13
|
+
import "./paths-CP67O8eN.js";
|
|
14
|
+
import { i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, p as isAudioAttachment, t as runAudioTranscription } from "./audio-transcription-runner-DSNzBBSH.js";
|
|
15
|
+
import "./image-C-YH4Uik.js";
|
|
16
|
+
import "./chrome-B1q83rKv.js";
|
|
17
|
+
import "./skills-OK3LublS.js";
|
|
18
|
+
import "./path-alias-guards-DA0MhfkG.js";
|
|
19
|
+
import "./redact-DfACyt0X.js";
|
|
20
|
+
import "./errors-9oVz7reJ.js";
|
|
21
|
+
import "./fs-safe-DFbwq9CS.js";
|
|
22
|
+
import "./proxy-env-CtPm4saU.js";
|
|
23
|
+
import "./store-BkxOV4wy.js";
|
|
24
|
+
import "./tool-images-CbObuT48.js";
|
|
25
|
+
import "./fetch-guard-C_jkJc0N.js";
|
|
26
|
+
import "./api-key-rotation-Z-Qny376.js";
|
|
27
|
+
import "./local-roots-BfR7HxIa.js";
|
|
28
|
+
import "./proxy-fetch-Cf3IUSDw.js";
|
|
29
29
|
|
|
30
30
|
//#region src/media-understanding/audio-preflight.ts
|
|
31
31
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-
|
|
2
|
-
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-
|
|
3
|
-
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
5
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
6
|
-
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-
|
|
1
|
+
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-B5u_IldI.js";
|
|
3
|
+
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
|
|
4
|
+
import { _ as normalizeChatType } from "./plugins-BLeJXdd2.js";
|
|
5
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-57ipHrBF.js";
|
|
6
|
+
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-C-YH4Uik.js";
|
|
7
7
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
10
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-
|
|
11
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-C_jkJc0N.js";
|
|
9
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-Z-Qny376.js";
|
|
10
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-BfR7HxIa.js";
|
|
11
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-Cf3IUSDw.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { constants } from "node:fs";
|
|
14
14
|
import os from "node:os";
|
|
@@ -990,7 +990,7 @@ var MediaAttachmentCache = class {
|
|
|
990
990
|
const log = createSubsystemLogger("model-catalog");
|
|
991
991
|
let modelCatalogPromise = null;
|
|
992
992
|
let hasLoggedModelCatalogError = false;
|
|
993
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
993
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-DSSANt82.js").then((n) => n.r);
|
|
994
994
|
let importPiSdk = defaultImportPiSdk;
|
|
995
995
|
const CODEX_PROVIDER = "openai-codex";
|
|
996
996
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as isRecord } from "./logger-
|
|
1
|
+
import { f as isRecord } from "./logger-Bg4vIUJn.js";
|
|
2
2
|
import "./paths-Duwviem_.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
4
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as makeProxyFetch } from "./proxy-fetch-Cf3IUSDw.js";
|
|
5
5
|
import "./proxy-BOZmkV9K.js";
|
|
6
6
|
|
|
7
7
|
//#region src/telegram/audit-membership-runtime.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { en as resolveRetryConfig, tn as retryAsync } from "./config-
|
|
2
|
-
import { O as createSubsystemLogger } from "./logger-
|
|
3
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { en as resolveRetryConfig, tn as retryAsync } from "./config-B5u_IldI.js";
|
|
2
|
+
import { O as createSubsystemLogger } from "./logger-Bg4vIUJn.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-9oVz7reJ.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-
|
|
3
|
-
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-
|
|
5
|
-
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-
|
|
6
|
-
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-
|
|
7
|
-
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
8
|
-
import { s as resolveStorePath } from "./paths-
|
|
9
|
-
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-
|
|
10
|
-
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
11
|
-
import { i as saveMediaBuffer } from "./store-
|
|
12
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
13
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-
|
|
14
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
15
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
16
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
17
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
18
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
1
|
+
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-B5u_IldI.js";
|
|
3
|
+
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-Bg4vIUJn.js";
|
|
4
|
+
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-C9RGqL4T.js";
|
|
5
|
+
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-TLm688bb.js";
|
|
6
|
+
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-Bl5GGHri.js";
|
|
7
|
+
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-8ieRSf-l.js";
|
|
8
|
+
import { s as resolveStorePath } from "./paths-CP67O8eN.js";
|
|
9
|
+
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-YldTY40c.js";
|
|
10
|
+
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DSNzBBSH.js";
|
|
11
|
+
import { i as saveMediaBuffer } from "./store-BkxOV4wy.js";
|
|
12
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-BfR7HxIa.js";
|
|
13
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-CYDBM_JC.js";
|
|
14
|
+
import { n as recordChannelActivity } from "./channel-activity-D1afTUj8.js";
|
|
15
|
+
import { t as convertMarkdownTables } from "./tables-8_ELoE8R.js";
|
|
16
|
+
import { r as setActiveWebListener } from "./active-listener-BlJ5RUzB.js";
|
|
17
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-icMF_rUc.js";
|
|
18
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-uS6b35hg.js";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as isNotFoundPathError, z as isPathInside } from "./run-with-concurrency-
|
|
2
|
-
import { A as normalizeIpAddress, O as isLoopbackIpAddress, k as isPrivateOrLoopbackIpAddress, n as loadConfig } from "./config-
|
|
3
|
-
import { O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, a as CONFIG_DIR } from "./logger-
|
|
4
|
-
import { a as isErrno } from "./errors-
|
|
5
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
6
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { R as isNotFoundPathError, z as isPathInside } from "./run-with-concurrency-kVooFCVo.js";
|
|
2
|
+
import { A as normalizeIpAddress, O as isLoopbackIpAddress, k as isPrivateOrLoopbackIpAddress, n as loadConfig } from "./config-B5u_IldI.js";
|
|
3
|
+
import { O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, a as CONFIG_DIR } from "./logger-Bg4vIUJn.js";
|
|
4
|
+
import { a as isErrno } from "./errors-9oVz7reJ.js";
|
|
5
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-DFbwq9CS.js";
|
|
6
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-CtPm4saU.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Gn as DEFAULT_MODEL, Kn as DEFAULT_PROVIDER, Ut as resolveConfiguredModelRef, dr as getActivePluginRegistry } from "./config-
|
|
2
|
-
import { D as isPlainObject, u as escapeRegExp } from "./logger-
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
4
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
1
|
+
import { Gn as DEFAULT_MODEL, Kn as DEFAULT_PROVIDER, Ut as resolveConfiguredModelRef, dr as getActivePluginRegistry } from "./config-B5u_IldI.js";
|
|
2
|
+
import { D as isPlainObject, u as escapeRegExp } from "./logger-Bg4vIUJn.js";
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-BLeJXdd2.js";
|
|
4
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-TLm688bb.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|