@visorcraft/idlehands 4.1.0 → 4.2.1
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/CHANGELOG.md +6 -0
- package/dist/{accounts-DsVN0UNw.js → accounts-3HS_UAhJ.js} +1 -1
- package/dist/{accounts-B8cGzkjD.js → accounts-BDVs8LTu.js} +1 -1
- package/dist/{accounts-D5tB_lO0.js → accounts-CIvVRRHb.js} +1 -1
- package/dist/{accounts-D-hQsUw-.js → accounts-DLTODa_Z.js} +1 -1
- package/dist/{accounts-D87a1Y_K.js → accounts-DgbTKQoW.js} +1 -1
- package/dist/{accounts-BQC_GRUB.js → accounts-Dk8mJIrQ.js} +6 -6
- package/dist/{acp-cli-BEHYc8ty.js → acp-cli-BEpWQbqb.js} +7 -7
- package/dist/{agent-scope-Bxq1eWbA.js → agent-scope-DyP_tr7s.js} +4 -4
- package/dist/{agent-scope-Bn39ugK4.js → agent-scope-RA0zXRpu.js} +18 -18
- package/dist/{agent-via-gateway-igDg7ko6.js → agent-via-gateway-C42kkKZI.js} +2 -2
- package/dist/{agent-via-gateway-CM7X6sKJ.js → agent-via-gateway-CUtzJXBE.js} +60 -60
- package/dist/{agent-via-gateway-B03q92bw.js → agent-via-gateway-CldlRczJ.js} +1 -1
- package/dist/{agent-via-gateway-bS6seBwg.js → agent-via-gateway-oMn0WfUq.js} +4 -4
- package/dist/{agents-DdTECKDf.js → agents-BfnnMO1i.js} +4 -4
- package/dist/{agents.config-D2EbQiOx.js → agents.config-BFfVBZMA.js} +1 -1
- package/dist/{agents.config-CPUPtcKt.js → agents.config-bWtpv0jP.js} +2 -2
- package/dist/{anton-ONYQUE8F.js → anton-CgpWkf5P.js} +32 -17
- package/dist/{anton-C7-Qxyij.js → anton-CoGaJdTU.js} +36 -21
- package/dist/{anton-D4vpCj_q.js → anton-DSS3RNo7.js} +32 -17
- package/dist/anton-DXL8jrY_.js +792 -0
- package/dist/{api-key-rotation-nXQVJErE.js → api-key-rotation-B-FTJm5p.js} +1 -1
- package/dist/{audio-preflight-qkU2lsDn.js → audio-preflight-CW8IH1lU.js} +35 -35
- package/dist/{audio-preflight-DzjXupNO.js → audio-preflight-Dl1TO10w.js} +31 -31
- package/dist/{audit-C5VPFgbJ.js → audit-CKeZnjft.js} +22 -22
- package/dist/{auth-choice-DVoPuwEs.js → auth-choice-BNofPyTK.js} +1 -1
- package/dist/{auth-choice-BDndThZZ.js → auth-choice-D12Wsf7w.js} +12 -12
- package/dist/{auth-choice-CQqV1VIf.js → auth-choice-Z7nPFxhP.js} +10 -10
- package/dist/{auth-choice.apply-helpers-pTqMTYmi.js → auth-choice.apply-helpers-CGcniL1T.js} +1 -1
- package/dist/{auth-store-CMyrmmSF.js → auth-store-DDzIMy8_.js} +7 -7
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{auth-token-fKt_cHOj.js → auth-token-BJq87X3o.js} +1 -1
- package/dist/{banner-CFKoGAzN.js → banner-B1-kj-GW.js} +1 -1
- package/dist/{bindings-DZjkLUU_.js → bindings-B59Q7nsk.js} +1 -1
- package/dist/{bindings-CLZIJ0Eo.js → bindings-D3b5Fmc9.js} +2 -2
- package/dist/{browser-cli-qU0I-Gla.js → browser-cli-Ci6DpTnS.js} +11 -11
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/{call-Du-oBD99.js → call-BpWhjuOg.js} +9 -9
- package/dist/{channel-account-context-B4nJPU2N.js → channel-account-context-CDbY5AIr.js} +5 -5
- package/dist/{channel-activity-DdL3RAv_.js → channel-activity-D_TMOGQ0.js} +3 -3
- package/dist/{channel-options-BU0E7BdU.js → channel-options-C5Iz9bes.js} +1 -1
- package/dist/{channel-options-B1cfZ5uQ.js → channel-options-CUP3A4VX.js} +3 -3
- package/dist/{channel-selection-3jUl-PyW.js → channel-selection-ZxRkxpuF.js} +1 -1
- package/dist/{channel-web-BDytDCrG.js → channel-web-CGXl1PnB.js} +2 -2
- package/dist/{channel-web-CzrJ-6X4.js → channel-web-CsUiKxQo.js} +22 -22
- package/dist/{channels-cli-DWaQsKP8.js → channels-cli-DK7TRLqX.js} +7 -7
- package/dist/{channels-cli-B4o-qohk.js → channels-cli-DmHSajZy.js} +88 -88
- package/dist/{channels-status-issues-hgASw9UA.js → channels-status-issues-CDpWjdI3.js} +1 -1
- package/dist/{chrome-CT_a9OgI.js → chrome-BcJB6PcM.js} +17 -17
- package/dist/{chrome-YguTEaLx.js → chrome-VBsQfIrt.js} +2 -2
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{clawbot-cli-C5cDal-5.js → clawbot-cli-uFgYrysW.js} +5 -5
- package/dist/{cli-Hplv9sD1.js → cli-6eMKeewY.js} +2 -2
- package/dist/{cli-DXyOlvH2.js → cli-DEE_ketW.js} +70 -70
- package/dist/{client-Dl5EAvfO.js → client-DtnD-ee9.js} +1 -1
- package/dist/{command-registry-esizscE2.js → command-registry-BFTlzx6d.js} +10 -10
- package/dist/{commands-D3BU_t7G.js → commands-Dj5LalLo.js} +1 -1
- package/dist/{commands-registry-Cj4D_1tw.js → commands-registry-CURlRZQJ.js} +3 -3
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{completion-cli-c4blaZPQ.js → completion-cli-BbXgtvGY.js} +2 -2
- package/dist/{completion-cli-CXDILt8-.js → completion-cli-PBfCNWhv.js} +12 -12
- package/dist/{config-cli-D_mH5-FH.js → config-cli-BVJRkNhX.js} +6 -6
- package/dist/{config-cli-98ASrAou.js → config-cli-Q934shK6.js} +1 -1
- package/dist/{config-guard-DnAyuF6T.js → config-guard-BdsOumqh.js} +17 -17
- package/dist/{config-validation-DIomLMwH.js → config-validation-BvKX6fPw.js} +2 -2
- package/dist/{configure-PKG58EzI.js → configure-85ttW_lD.js} +16 -16
- package/dist/{configure-CKspMrI1.js → configure-BGAvA5a4.js} +3 -3
- package/dist/{control-ui-assets-CiaCDBvZ.js → control-ui-assets-C7ZpN9hN.js} +1 -1
- package/dist/{cron-cli-BIfVPc5K.js → cron-cli-DQsnGQKs.js} +12 -12
- package/dist/{daemon-cli-DpyQu0Dp.js → daemon-cli-DUg-s4LG.js} +11 -11
- package/dist/{daemon-install-DeqQiAad.js → daemon-install-CYPo4M1M.js} +4 -4
- package/dist/{daemon-install-helpers-Bug_GYuy.js → daemon-install-helpers-BZY9-jNW.js} +9 -9
- package/dist/{deliver-yTpXc5sv.js → deliver--kttnrER.js} +7 -7
- package/dist/{deliver-Db2xqgLg.js → deliver-BUiQ-9fE.js} +20 -20
- package/dist/{deps-CjWcQwlX.js → deps-AEDT3iDX.js} +1 -1
- package/dist/{deps-CC5E5LXB.js → deps-B4J8H6nI.js} +6 -6
- package/dist/{deps-BotXja4Z.js → deps-Bq7jJLyN.js} +6 -6
- package/dist/{deps-DR1eh_L_.js → deps-Ch6bZ8PI.js} +1 -1
- package/dist/{devices-cli-B7fkQKei.js → devices-cli-DKK65S9Z.js} +7 -7
- package/dist/{diagnostic-BvlZ0Sot.js → diagnostic-4owMk4vH.js} +1 -1
- package/dist/{diagnostics-CdUgLS0N.js → diagnostics-DmZbQ8Nc.js} +5 -5
- package/dist/{directory-cli-BAMS8f9U.js → directory-cli-Dz9iXeut.js} +9 -9
- package/dist/{dns-cli-BdxBk-k_.js → dns-cli-DD6hWsdc.js} +4 -4
- package/dist/{dock-ejUetwTC.js → dock-BgOmHcbh.js} +6 -6
- package/dist/{dock-CzF5XYGd.js → dock-Y96MzKuM.js} +4 -4
- package/dist/{docs-cli-SF7es4Zs.js → docs-cli-cHkrTB2e.js} +4 -4
- package/dist/{doctor-completion-Co_xszXC.js → doctor-completion-CN5Zujsa.js} +2 -2
- package/dist/{doctor-completion-DFr8_h-z.js → doctor-completion-Clh5CNUd.js} +1 -1
- package/dist/{doctor-config-flow-8qXzBx09.js → doctor-config-flow-Ck4oCjfl.js} +14 -14
- package/dist/{emergency-stop-ChBe32HN.js → emergency-stop-2v4bhRCE.js} +2 -2
- package/dist/{emergency-stop-DtVFxCO1.js → emergency-stop-BtasjDnU.js} +70 -70
- package/dist/emergency-stop-CVO75pTD.js +113 -0
- package/dist/{emergency-stop-CDozqde9.js → emergency-stop-D_bTOufu.js} +2 -2
- package/dist/{enable-DaA_orGN.js → enable-o_s6PBsC.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-q-PhWbb_.js → env-B5G1qwGc.js} +1 -1
- package/dist/{errors-C4SHjIZK.js → errors-C_0nm4TJ.js} +1 -1
- package/dist/{exec-approvals-allowlist-8AkOwwIr.js → exec-approvals-allowlist-Co2tJSEo.js} +1 -1
- package/dist/{exec-approvals-cli-CbcJzCt0.js → exec-approvals-cli-D6XUzs4j.js} +15 -15
- package/dist/{exec-safe-bin-runtime-policy-DYXuBKqH.js → exec-safe-bin-runtime-policy-DaoU9-ni.js} +2 -2
- package/dist/extensionAPI.js +2 -2
- package/dist/{fetch-guard-CcfDZXe9.js → fetch-guard-iuQsIjqN.js} +1 -1
- package/dist/{frontmatter-pTUG4Sx_.js → frontmatter-BOudmHMS.js} +2 -2
- package/dist/{fs-safe-2l05hI1Y.js → fs-safe-CYUaAFO9.js} +2 -2
- package/dist/{fs-safe-DNFrxDS-.js → fs-safe-_JQUGpZf.js} +15 -15
- package/dist/{gateway-cli-DjCBMnUT.js → gateway-cli-Cl7cEsHE.js} +9 -9
- package/dist/{gateway-cli-poVGdgAz.js → gateway-cli-DJm73Wou.js} +148 -148
- package/dist/{gateway-rpc-IpZymG6F.js → gateway-rpc-BBFG1T-M.js} +1 -1
- package/dist/{gemini-auth-DLSGffQK.js → gemini-auth-CIyaa44H.js} +2 -2
- package/dist/{github-copilot-token-BjmEQcmi.js → github-copilot-token-Dgt6cnsM.js} +7 -7
- package/dist/{health-lZsCLX6p.js → health-C6_Sa_ef.js} +13 -13
- package/dist/{health-HEN6Wk9G.js → health-D-b3jdnU.js} +1 -1
- package/dist/{hooks-cli-DFrttZGb.js → hooks-cli-BB25FyuN.js} +3 -3
- package/dist/{hooks-cli-EbzkZ1Xh.js → hooks-cli-BC3n8UYQ.js} +84 -84
- package/dist/{hooks-status-CPIWc_bx.js → hooks-status-DNGo2G8Q.js} +1 -1
- package/dist/{idlehands-root-DFL2GrNW.js → idlehands-root-B8cUs-5M.js} +8 -8
- package/dist/{image-Dlu13Ebx.js → image-D8b_rlQC.js} +6 -6
- package/dist/{image-C2JZiK-6.js → image-DSDEbSiO.js} +5 -5
- package/dist/{image-ops-J8P5zOFm.js → image-ops-BU-VdLZu.js} +2 -2
- package/dist/{image-ops-BkoEFRYH.js → image-ops-D1KtygWz.js} +11 -11
- package/dist/index.js +80 -80
- package/dist/{inspect-Dg16DMLn.js → inspect-ISQZuNM5.js} +4 -4
- package/dist/{install-safe-path-CNNMzJl9.js → install-safe-path-ChNR9pl6.js} +19 -19
- package/dist/{installs-ST3UaUVJ.js → installs-CNubze2L.js} +9 -9
- package/dist/{ir-BT5aAdU9.js → ir-B7IBoKLy.js} +5 -5
- package/dist/{ir-DV0Hszc8.js → ir-VncGpwA1.js} +6 -6
- package/dist/{lifecycle-core-DOScNyOv.js → lifecycle-core-B6UoqYTJ.js} +5 -5
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-d4y0lvs2.js → local-roots-KN4Hp1yZ.js} +5 -5
- package/dist/{local-roots-Cco87A2_.js → local-roots-q0xbefkf.js} +2 -2
- package/dist/{login-C2X0In6m.js → login-CFr5vJmR.js} +6 -6
- package/dist/{login-Dl_lsEHS.js → login-CfUhrgWT.js} +4 -4
- package/dist/{login-qr-C17PY0rr.js → login-qr-CFFFOjOl.js} +11 -11
- package/dist/{login-qr-B68cBRH0.js → login-qr-DBMsUxgL.js} +7 -7
- package/dist/{logs-cli-DHCG25JA.js → logs-cli-4VQ9Iwiw.js} +8 -8
- package/dist/{manager-CgzA1hKo.js → manager-BE_76jWB.js} +15 -15
- package/dist/{manager-BBeTPO2h.js → manager-BMAFgXyU.js} +13 -13
- package/dist/{manifest-registry-RfRn8HJx.js → manifest-registry-Bak1x76G.js} +1 -1
- package/dist/{markdown-tables-R8VTpfE9.js → markdown-tables-CzsockiZ.js} +1 -1
- package/dist/{markdown-tables-C5hTDqNm.js → markdown-tables-DZClqsNo.js} +1 -1
- package/dist/{memory-cli-4wfelGdK.js → memory-cli-CUGwnVIY.js} +12 -12
- package/dist/{message-channel-ZdI1-uUh.js → message-channel-C8QtrwEU.js} +1 -1
- package/dist/{model-Bd-05WpB.js → model-C-icShH2.js} +2 -2
- package/dist/{model-catalog-BCsDrrvq.js → model-catalog-D9no0CH2.js} +3 -3
- package/dist/{model-picker-D3U0wJCO.js → model-picker-BkXoTOiA.js} +4 -4
- package/dist/{model-selection-CSn9tUuH.js → model-selection-0dGxYGp8.js} +16 -16
- package/dist/{model-selection-C5hI1dum.js → model-selection-1MMYqY6M.js} +41 -41
- package/dist/{models-tZYpgts_.js → models-C1_Tdc1Q.js} +2 -2
- package/dist/{models-cli-umEUn4Xu.js → models-cli-B9yw60gV.js} +79 -79
- package/dist/{models-cli-DVAyIZ63.js → models-cli-Bs5ZNSbk.js} +4 -4
- package/dist/{models-config-lQpqp472.js → models-config-C5A1wDWh.js} +6 -6
- package/dist/{node-cli-7gQ7xfOh.js → node-cli-BYzjxmUY.js} +32 -32
- package/dist/{node-service-GpI0jzKr.js → node-service-C3vyxHLA.js} +1 -1
- package/dist/{nodes-cli-CDXLGCox.js → nodes-cli-kNOtp0U0.js} +14 -14
- package/dist/{nodes-screen-CIAn0wXq.js → nodes-screen-CcpPaFxa.js} +4 -4
- package/dist/{npm-registry-spec-BfeHLbIQ.js → npm-registry-spec-BCbbfIhX.js} +16 -16
- package/dist/{npm-resolution-By6en78P.js → npm-resolution-BMDipaRX.js} +3 -3
- package/dist/{npm-resolution-By6bZkA-.js → npm-resolution-yXJbqHHn.js} +1 -1
- package/dist/{onboard-Dw-URWpt.js → onboard-CYRoDnOI.js} +2 -2
- package/dist/{onboard-BmDmDXYf.js → onboard-DjbHK18p.js} +6 -6
- package/dist/{onboard-channels-DCDhpz9s.js → onboard-channels-CNQt2jFU.js} +20 -20
- package/dist/{onboard-channels-JPltbNGL.js → onboard-channels-CkxvodmR.js} +1 -1
- package/dist/{onboard-custom-D2sCP3_S.js → onboard-custom-DUbzMMu7.js} +4 -4
- package/dist/{onboard-helpers-CdzbIhrm.js → onboard-helpers-mzy38DiC.js} +8 -8
- package/dist/{onboard-hooks-_1Jgimeu.js → onboard-hooks-D9teGxfH.js} +4 -4
- package/dist/{onboard-remote-pCRaL_Ey.js → onboard-remote-LCBHijVE.js} +1 -1
- package/dist/{onboard-skills-DvwRvBvj.js → onboard-skills-jFY9gaOu.js} +4 -4
- package/dist/{onboarding-DIorhVOJ.js → onboarding-BEDOWI9h.js} +3 -3
- package/dist/{onboarding-Cf3JxJxY.js → onboarding-D9AZJlDK.js} +13 -13
- package/dist/{onboarding.finalize-BCmAqhLV.js → onboarding.finalize-D4hW1yTd.js} +7 -7
- package/dist/{onboarding.finalize-BH4WHo75.js → onboarding.finalize-DJxMkD2g.js} +82 -82
- package/dist/{onboarding.gateway-config-Sj7zQKsE.js → onboarding.gateway-config-Btu2gzgr.js} +16 -16
- package/dist/{openai-model-default-OPCCNNS0.js → openai-model-default-7J6cw1rA.js} +2 -2
- package/dist/{outbound-CdY_AskB.js → outbound-BNh6PpQb.js} +6 -6
- package/dist/{outbound-CG19kl0w.js → outbound-DPTxwchq.js} +4 -4
- package/dist/{outbound-attachment-jYdMgCml.js → outbound-attachment-3I6GzwDe.js} +2 -2
- package/dist/{outbound-attachment-IfeZJAKk.js → outbound-attachment-Bot3bRnK.js} +2 -2
- package/dist/{pairing-cli-QJYYDcIK.js → pairing-cli-jwx6hMsM.js} +10 -10
- package/dist/{pairing-labels-DuZ7ih-T.js → pairing-labels-ChQJzbS9.js} +1 -1
- package/dist/{pairing-store-qvpPoWL_.js → pairing-store-CPpEEQJO.js} +2 -2
- package/dist/{pairing-token-3hoCgQqp.js → pairing-token-lKXTMQ_M.js} +7 -7
- package/dist/{path-alias-guards-BZmt6hFb.js → path-alias-guards-Cu1nXNMM.js} +1 -1
- package/dist/{path-alias-guards-BCskHdfJ.js → path-alias-guards-FXBVVTLw.js} +3 -3
- package/dist/{path-safety-C1Y004P_.js → path-safety-DwibX65n.js} +1 -1
- package/dist/{paths-Bt0fZexW.js → paths-B-CLQ5RT.js} +9 -9
- package/dist/{paths-DQpv9a3Q.js → paths-BYNVLNi_.js} +5 -5
- package/dist/{paths-D3p7ZvM6.js → paths-D_qUel1T.js} +3 -3
- package/dist/{pi-embedded-mKozULng.js → pi-embedded-C6RDRgJM.js} +179 -179
- package/dist/{pi-embedded-helpers-BkzrQ5bZ.js → pi-embedded-helpers-BCsfqpDt.js} +6 -6
- package/dist/{pi-embedded-helpers-B3ceCcxm.js → pi-embedded-helpers-CghCLoPo.js} +24 -24
- package/dist/{pi-embedded-DMx6rHVL.js → pi-embedded-o6Xj8V4C.js} +11 -11
- package/dist/{pi-model-discovery-Bt79ifyi.js → pi-model-discovery-BIP3RjXl.js} +1 -1
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/{pi-tools.policy-B_ME3yF6.js → pi-tools.policy-DfITIKZj.js} +5 -5
- package/dist/{plugin-auto-enable-BMuSi4aV.js → plugin-auto-enable-7DUxMy6A.js} +3 -3
- package/dist/{plugin-registry-BY85d-vE.js → plugin-registry-6C1sgAm1.js} +1 -1
- package/dist/{plugin-registry-BIoGoN5y.js → plugin-registry-DIK-5KI9.js} +3 -3
- package/dist/plugin-sdk/{agent-via-gateway-CXtWg-qx.js → agent-via-gateway-DmQMFWNE.js} +2 -2
- package/dist/plugin-sdk/{anton-CGYTy9vy.js → anton-CrjFisFZ.js} +32 -17
- package/dist/plugin-sdk/{channel-web-EFRSObCG.js → channel-web-vQgHbtCG.js} +2 -2
- package/dist/plugin-sdk/{deps-qZxPlSgp.js → deps-DfyALwFG.js} +1 -1
- package/dist/plugin-sdk/{emergency-stop-CxcBz-aQ.js → emergency-stop-0ZrbH3D4.js} +2 -2
- package/dist/plugin-sdk/index.js +3 -3
- package/dist/plugin-sdk/{reply-nUO1aM3T.js → reply-BfdVf3fw.js} +11 -11
- package/dist/plugin-sdk/{web-CEtAvhaI.js → web-DwDLI7GP.js} +3 -3
- package/dist/{plugins-DYr-HHj0.js → plugins-CRB60mCJ.js} +10 -10
- package/dist/{plugins-B4hASNc2.js → plugins-D46VZh7u.js} +2 -2
- package/dist/{plugins-cli-Dlb8QO-K.js → plugins-cli-B1kN2Xze.js} +80 -80
- package/dist/{plugins-cli-RFXGkaxP.js → plugins-cli-DFUxLQbB.js} +3 -3
- package/dist/{ports-B07M55Gr.js → ports-B2o0FSFD.js} +1 -1
- package/dist/{ports-DWJO5S52.js → ports-SQy1d-RL.js} +2 -2
- package/dist/{program-context-B_byBfwR.js → program-context-CjyGlgVG.js} +43 -43
- package/dist/{program-Do2-I4y3.js → program-mmjp27H4.js} +8 -8
- package/dist/{prompt-select-styled-VWGHu3e1.js → prompt-select-styled-04TKk_r3.js} +4 -4
- package/dist/{prompt-select-styled-CBF_I30O.js → prompt-select-styled-FskTiqWw.js} +37 -37
- package/dist/{provider-auth-helpers-BCc5UtUa.js → provider-auth-helpers-9IcvdTst.js} +1 -1
- package/dist/{provider-auth-helpers-BGGSUXOH.js → provider-auth-helpers-BI7MVWjD.js} +5 -5
- package/dist/{push-apns-CHmvuoMu.js → push-apns-Bh0u21Bh.js} +1 -1
- package/dist/{push-apns-CuwLAoXk.js → push-apns-DvSYSWvk.js} +5 -5
- package/dist/{pw-ai-BGALvhDi.js → pw-ai-7i9eGnLh.js} +11 -11
- package/dist/{pw-ai-DIV4PcIo.js → pw-ai-CfYaR1K2.js} +13 -13
- package/dist/{qmd-manager-CVcPfkhL.js → qmd-manager-B-qeywfQ.js} +19 -19
- package/dist/{qmd-manager-BRvg3Rx2.js → qmd-manager-B_GgyQQ0.js} +8 -8
- package/dist/{qr-cli-D2Oh8f0U.js → qr-cli-CSt5ihwG.js} +1 -1
- package/dist/{query-expansion-i5I3yavb.js → query-expansion-Clts_AGz.js} +12 -12
- package/dist/{query-expansion-DHuNyU-_.js → query-expansion-DEq020GG.js} +5 -5
- package/dist/{redact-1Y0KPNtr.js → redact-Bvpf-ATQ.js} +1 -1
- package/dist/{redact-snapshot-KMo22a85.js → redact-snapshot-BbEVKv0k.js} +1 -1
- package/dist/{register.agent-Dx7ULz49.js → register.agent-B3zUfhl9.js} +9 -9
- package/dist/{register.agent-CDcuj79y.js → register.agent-BSe92Zxh.js} +95 -95
- package/dist/register.configure-DZ9OCp0V.js +168 -0
- package/dist/{register.configure-BctHAiWh.js → register.configure-N4JG5hVe.js} +8 -8
- package/dist/{register.maintenance-BcFR1fGQ.js → register.maintenance-BjhkxF3o.js} +9 -9
- package/dist/{register.maintenance-wv8PzmVy.js → register.maintenance-DxauQqK_.js} +90 -90
- package/dist/{register.message-DUAiI9J7.js → register.message-BsMpRFVr.js} +71 -71
- package/dist/{register.message-BLScF2fV.js → register.message-DoZ5i1Pn.js} +3 -3
- package/dist/{register.onboard-BMNBXD29.js → register.onboard-Cw3wNQRm.js} +2 -2
- package/dist/{register.onboard-F09brfSb.js → register.onboard-Hxi3l9IA.js} +18 -18
- package/dist/{register.orchestrator-anton-CGhKIDjJ.js → register.orchestrator-anton-BqQfw2JX.js} +14 -14
- package/dist/{register.orchestrator-anton-Tn_RaMLq.js → register.orchestrator-anton-DOByOKzU.js} +2 -2
- package/dist/{register.setup-jzek547p.js → register.setup-dazD7bl3.js} +21 -21
- package/dist/{register.setup-DqbGSLoJ.js → register.setup-r5Xy4nv4.js} +2 -2
- package/dist/{register.status-health-sessions-ByfydR_f.js → register.status-health-sessions-3zjBM0m6.js} +82 -82
- package/dist/{register.status-health-sessions-wbopjGL-.js → register.status-health-sessions-DobZ2G2u.js} +4 -4
- package/dist/{register.subclis-CuNL7Zgu.js → register.subclis-CGJxYP3h.js} +9 -9
- package/dist/{replies-2C16fnBP.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{replies-Czp4hvpS.js → replies-hSFVxL4h.js} +1 -1
- package/dist/{reply-CdFdL9nL.js → reply-BDr-UY9O.js} +153 -153
- package/dist/{reply-prefix-DCljZiIB.js → reply-prefix-BUgeSN2R.js} +1 -1
- package/dist/{reply-prefix-BMEdvSpA.js → reply-prefix-C3y4zpTl.js} +1 -1
- package/dist/{resolve-route-Ef_Yt2Dw.js → resolve-route-D_AbcmD6.js} +2 -2
- package/dist/{resolve-route-ClcifpKn.js → resolve-route-DuttYY7A.js} +4 -4
- package/dist/{retry-CG6cMRDQ.js → retry-BeB9WenR.js} +1 -1
- package/dist/{rpc-CNqnw2FL.js → rpc-Cf9OK5Yk.js} +1 -1
- package/dist/{run-main-9A7FdIR1.js → run-main-BDEztzfx.js} +15 -15
- package/dist/{runner-BFG54hnb.js → runner-DzszLzI4.js} +20 -20
- package/dist/{runner-BkCU-kqs.js → runner-PgRFPYUj.js} +11 -11
- package/dist/{runtime-DEmy759r.js → runtime-XmXLaHNk.js} +2 -2
- package/dist/{sandbox-CfPbhDY_.js → sandbox-DcUw5h3p.js} +20 -20
- package/dist/{sandbox-cli-B4wLJr21.js → sandbox-cli-DGvJ7Eeq.js} +22 -22
- package/dist/{secrets-cli-DP718vNZ.js → secrets-cli-CR3h2TBy.js} +9 -9
- package/dist/{security-cli-CG2_SV7b.js → security-cli-B9_LV2po.js} +39 -39
- package/dist/{send-DDMaLJAQ.js → send--lzpNy4f.js} +7 -7
- package/dist/{send-DZa8fWSm.js → send-BeIZJuy4.js} +7 -7
- package/dist/{send-Y1hD4tQ1.js → send-C1hvd3bt.js} +6 -6
- package/dist/{send-BCPkAE2k.js → send-C4v0Leny.js} +6 -6
- package/dist/{send-BOxJ4QXF.js → send-D4bMycQu.js} +7 -7
- package/dist/{send-CEavqqEz.js → send-DQiw_nGD.js} +6 -6
- package/dist/{send-FLdrx-oF.js → send-Dfa3sn6r.js} +24 -24
- package/dist/{send-IlPMLAH-.js → send-DmLC7aEF.js} +10 -10
- package/dist/{send-BPwTl4-K.js → send-DuwdEkLw.js} +4 -4
- package/dist/{send-CVIXqubC.js → send-DwdHiC7_.js} +13 -13
- package/dist/{server-BpSbZAwg.js → server-D6MltJIF.js} +14 -14
- package/dist/{server-context-BxNSTpH6.js → server-context-DI0W_H7R.js} +10 -10
- package/dist/{server-lifecycle-CGKrGrhM.js → server-lifecycle-B5PlrlbG.js} +2 -2
- package/dist/{server-node-events-CbVkqOtV.js → server-node-events-BL1dTBEr.js} +3 -3
- package/dist/{server-node-events-BSPxvn7O.js → server-node-events-C69TPlKW.js} +71 -71
- package/dist/{service-Bj2oSfpw.js → service-C8NMS3m_.js} +15 -15
- package/dist/{session-BKVySI8q.js → session-CdnrRhb4.js} +1 -1
- package/dist/{session-nUPBXeEa.js → session-F_YDS_1V.js} +7 -7
- package/dist/{sessions-DRA4oaxz.js → sessions-3ioSeOA1.js} +41 -41
- package/dist/{sessions-BqWocozB.js → sessions-BtPXimXQ.js} +14 -14
- package/dist/{shared-DnQ4iyXk.js → shared-CpDPo3hJ.js} +2 -2
- package/dist/{shared-Jzrx8DfN.js → shared-DpLSpJIl.js} +1 -1
- package/dist/{skill-commands-BwIRWSCI.js → skill-commands-BFzmZAfo.js} +5 -5
- package/dist/{skill-commands-BHTBXXVn.js → skill-commands-Ck3flWX7.js} +9 -9
- package/dist/{skill-scanner-B4Ftsbd2.js → skill-scanner-D7mzXRXd.js} +5 -5
- package/dist/{skills-umlGvChF.js → skills-CnAPWfca.js} +22 -22
- package/dist/{skills-TIyQDZx7.js → skills-DlvDyK8L.js} +3 -3
- package/dist/{skills-cli-5lbXi4Lh.js → skills-cli-BhKGhjbO.js} +5 -5
- package/dist/{skills-install-D0JHP5uM.js → skills-install-tr6wRWZj.js} +4 -4
- package/dist/{skills-status-Q9skQExW.js → skills-status-qjQ8XP0h.js} +1 -1
- package/dist/{status-ClMOrHdT.js → status-AEwcpHsu.js} +2 -2
- package/dist/{status-YWasgjym.js → status-B8z0RCPf.js} +24 -24
- package/dist/{status.update-C3uRz7W6.js → status.update-CTi6vuWj.js} +2 -2
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- package/dist/{store-CLNuI8-G.js → store-kH9wHHbO.js} +5 -5
- package/dist/{subagent-registry-BH5O1rxK.js → subagent-registry-Dclk-Ews.js} +11 -11
- package/dist/{subsystem-D7ZepYT1.js → subsystem-tzu-rIAJ.js} +1 -1
- package/dist/{system-cli-BfjZ6QvH.js → system-cli-DyVZ5udc.js} +8 -8
- package/dist/{system-run-approval-context-xZVoE4nS.js → system-run-approval-context-CISBXlNw.js} +1 -1
- package/dist/{system-run-command-BIhrK3OI.js → system-run-command-qJdgzxLp.js} +1 -1
- package/dist/{systemd-DyrVLTI0.js → systemd-CaCR5CyM.js} +9 -9
- package/dist/{systemd-hints-BoKKzRI_.js → systemd-hints-DHu-HVFx.js} +6 -6
- package/dist/{systemd-linger-DrhGd61G.js → systemd-linger-B7XlUHk_.js} +1 -1
- package/dist/{tables-Co_R_WKs.js → tables-5k-zOZ-s.js} +1 -1
- package/dist/{tables-CZSD889r.js → tables-g9xkflht.js} +1 -1
- package/dist/{target-errors-B1mcM4WR.js → target-errors-BPfQrPim.js} +2 -2
- package/dist/{target-errors-BYuWhuLU.js → target-errors-bLIVFsbF.js} +4 -4
- package/dist/{tokens-DGajj8M9.js → tokens-BRLyURxW.js} +1 -1
- package/dist/{tool-images-DZHrc4pq.js → tool-images-CHqepyF_.js} +1 -1
- package/dist/{tool-images-Duuqr4bN.js → tool-images-CcGZpzmq.js} +2 -2
- package/dist/{tool-loop-detection-CjWRg_4q.js → tool-loop-detection-BNGetx3Z.js} +3 -3
- package/dist/{tui-B2bAseIB.js → tui-Bne3YNiw.js} +6 -6
- package/dist/{tui-cli-cewAjqAk.js → tui-cli-D0Z-rcUe.js} +30 -30
- package/dist/{update-la2AdLf3.js → update-D79ppbMQ.js} +3 -3
- package/dist/{update-cli-D7gDHoEE.js → update-cli-8Tk6PCmD.js} +99 -99
- package/dist/{update-cli-Cxp_mYOH.js → update-cli-Bobm67f-.js} +9 -9
- package/dist/{update-runner-DRglQgXe.js → update-runner-B4xzPa4-.js} +15 -15
- package/dist/{update-runner-tu2Aiphu.js → update-runner-C4NjVy9-.js} +1 -1
- package/dist/{upgrade-command-28wRHZZ2.js → upgrade-command-909a7QUc.js} +3 -3
- package/dist/{utils-D9wGoiU9.js → utils-CTFLl_ji.js} +18 -18
- package/dist/{web-aRaB-CvF.js → web-9J12F46d.js} +3 -3
- package/dist/{web-BxegDO-S.js → web-DPSpgc_K.js} +3 -3
- package/dist/web-Dqy4kqC9.js +123 -0
- package/dist/{web-BuIXrrsp.js → web-NzOJcvWO.js} +66 -66
- package/dist/{webhooks-cli-BnmVPYkU.js → webhooks-cli-2N03q0iY.js} +6 -6
- package/dist/{whatsapp-actions-D2mBFzmK.js → whatsapp-actions-Cms8wQM1.js} +18 -18
- package/dist/{whatsapp-actions-BJ6kVDXi.js → whatsapp-actions-DbPcN6JQ.js} +25 -25
- package/dist/{with-timeout-BodPmGCY.js → with-timeout-DEdycYxq.js} +3 -3
- package/dist/{workspace-CDw87aZG.js → workspace-D3pARwoB.js} +1 -1
- package/dist/{workspace-tAtkoD_r.js → workspace-DBFSzT6O.js} +18 -18
- package/dist/{workspace-dirs-D3bousoX.js → workspace-dirs-SsExQ3Bz.js} +1 -1
- package/dist/{wsl-CgXDjE09.js → wsl-BJW8nTyL.js} +2 -2
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/hand/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/anton-D9tZAGaj.js +0 -777
- package/dist/emergency-stop-DyQna_P0.js +0 -113
- package/dist/register.configure-CxwdWRSG.js +0 -168
- package/dist/web-DESq0zCM.js +0 -123
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, g as toAgentModelListLike, h as resolveAgentModelPrimaryValue, i as resolveAgentDir, l as resolveEffectiveModelFallbacks, m as resolveAgentModelFallbackValues, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride } from "./agent-scope-
|
|
3
|
-
import { d as resolveStateDir, f as expandHomePrefix, i as resolveConfigPath, m as resolveRequiredHomeDir, n as STATE_DIR, s as resolveGatewayPort } from "./paths-
|
|
4
|
-
import { C as triggerInternalHook, _ as getPluginCommandSpecs, a as listChatChannels, b as createInternalHookEvent, c as normalizeChatChannelId, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as getChatChannelMeta, l as getActivePluginRegistry, m as normalizePluginHttpPath, o as normalizeAnyChannelId, p as createPluginRegistry, r as CHAT_CHANNEL_ORDER, s as normalizeChannelId$1, t as createSubsystemLogger, u as getActivePluginRegistryKey, v as listPluginCommands, y as matchPluginCommand } from "./subsystem-
|
|
5
|
-
import { A as shouldLogVerbose, C as isPlainObject, D as logVerbose, F as theme, I as getChildLogger, K as resolvePreferredIdleHandsTmpDir, M as warn, N as colorize, P as isRich, S as truncateUtf16Safe, W as normalizeLogLevel, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, k as setVerbose, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, w as danger, y as sleep$1 } from "./utils-
|
|
2
|
+
import { c as resolveDefaultAgentId, d as resolveSessionAgentId, f as resolveSessionAgentIds, g as toAgentModelListLike, h as resolveAgentModelPrimaryValue, i as resolveAgentDir, l as resolveEffectiveModelFallbacks, m as resolveAgentModelFallbackValues, n as listAgentIds, o as resolveAgentSkillsFilter, r as resolveAgentConfig, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, u as resolveRunModelFallbacksOverride } from "./agent-scope-DyP_tr7s.js";
|
|
3
|
+
import { d as resolveStateDir, f as expandHomePrefix, i as resolveConfigPath, m as resolveRequiredHomeDir, n as STATE_DIR, s as resolveGatewayPort } from "./paths-BYNVLNi_.js";
|
|
4
|
+
import { C as triggerInternalHook, _ as getPluginCommandSpecs, a as listChatChannels, b as createInternalHookEvent, c as normalizeChatChannelId, d as requireActivePluginRegistry, f as setActivePluginRegistry, g as executePluginCommand, h as clearPluginCommands, i as getChatChannelMeta, l as getActivePluginRegistry, m as normalizePluginHttpPath, o as normalizeAnyChannelId, p as createPluginRegistry, r as CHAT_CHANNEL_ORDER, s as normalizeChannelId$1, t as createSubsystemLogger, u as getActivePluginRegistryKey, v as listPluginCommands, y as matchPluginCommand } from "./subsystem-tzu-rIAJ.js";
|
|
5
|
+
import { A as shouldLogVerbose, C as isPlainObject, D as logVerbose, F as theme, I as getChildLogger, K as resolvePreferredIdleHandsTmpDir, M as warn, N as colorize, P as isRich, S as truncateUtf16Safe, W as normalizeLogLevel, _ as shortenHomeInString, a as ensureDir$3, b as sliceUtf16Safe, c as isRecord$1, d as normalizeE164, h as resolveUserPath, k as setVerbose, o as escapeRegExp, r as clampInt, s as formatTerminalLink, t as CONFIG_DIR, v as shortenHomePath, w as danger, y as sleep$1 } from "./utils-CTFLl_ji.js";
|
|
6
6
|
import { a as registerActiveProgressLine, i as clearActiveProgressLine, n as defaultRuntime, o as unregisterActiveProgressLine, t as createNonExitingRuntime } from "./runtime-8mi3mpYB.js";
|
|
7
7
|
import { S as resolveThreadParentSessionKey, _ as getSubagentDepth, b as isSubagentSessionKey, c as normalizeMainKey, d as sanitizeAgentId, f as DEFAULT_ACCOUNT_ID, g as deriveSessionChatType, h as isBlockedObjectKey, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, o as classifySessionKeyShape, p as normalizeAccountId$2, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, u as resolveThreadSessionKeys, v as isAcpSessionKey, x as parseAgentSessionKey, y as isCronSessionKey } from "./session-key-CuLPSMu_.js";
|
|
8
|
-
import { S as logWarn, T as openBoundaryFileSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, l as ensureAgentWorkspace, m as resolveIdleHandsPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, w as openBoundaryFile, x as logInfo, y as logDebug } from "./workspace-
|
|
9
|
-
import { $t as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, A as getSoonestCooldownExpiry, At as buildEnforcedShellCommand, Bt as unwrapKnownDispatchWrapperInvocation, C as getCustomProviderApiKey, Ct as unsetConfigValueAtPath, D as resolveModelAuthMode, Dt as normalizeTrustedSafeBinDirs, E as resolveEnvApiKey, Et as listWritableExplicitTrustedSafeBinDirs, F as resolveApiKeyForProfile, Ft as resolveAllowlistCandidatePath, G as normalizeTelegramCommandName, Gt as resolveSafeBinProfiles, H as writeConfigFile, Ht as splitShellArgs, It as resolveCommandResolutionFromArgv, J as isInboundPathAllowed, Jt as mapStreamingModeToSlackLegacyDraftStreamMode, K as resolveTelegramCustomCommands, Kt as applyMergePatch, Lt as extractShellWrapperInlineCommand, M as markAuthProfileFailure, Mt as splitCommandChain, N as markAuthProfileUsed, Nt as DEFAULT_SAFE_BINS, Ot as validateSafeBinArgv, P as resolveProfilesUnavailableReason, Pt as matchAllowlist, Q as normalizeScpRemoteHost, R as loadConfig, Rt as isDispatchWrapperExecutable, S as getApiKeyForModel, St as setConfigValueAtPath, T as resolveApiKeyForProvider, Tt as isTrustedSafeBinPath, U as validateConfigObjectWithPlugins, Ut as SAFE_BIN_PROFILES, V as resolveConfigSnapshotHash, Vt as unwrapKnownShellMultiplexerInvocation, W as TELEGRAM_COMMAND_NAME_PATTERN, Wt as normalizeSafeBinProfileFixtures, X as resolveIMessageAttachmentRoots, Xt as resolveSlackNativeStreaming, Yt as resolveDiscordPreviewStreamMode, Z as resolveIMessageRemoteAttachmentRoots, Zt as resolveSlackStreamingMode, _n as splitTrailingAuthProfile, _t as resetConfigOverrides, a as isCliProvider, an as resolveOwnerDisplaySetting, at as isPathWithinRoot, b as OLLAMA_NATIVE_BASE_URL, bn as DEFAULT_PROVIDER, bt as getConfigValueAtPath, c as normalizeProviderId, cn as markAuthProfileGood, ct as loadPluginManifestRegistry, d as resolveDefaultModelForAgent, dn as resolveIdleHandsAgentDir, dt as safeStatSync, en as resolveAgentMaxConcurrent, et as parseDurationMs, f as resolveModelRefFromString, fn as withFileLock, ft as applyTestPluginDefaults, gn as normalizeSecretInput, gt as getConfigOverrides, h as resolveThinkingDefault, hn as resolveAuthProfileDisplayLabel, ht as resolveMemorySlotDecision, i as findNormalizedProviderValue, in as isDangerousHostEnvVarName, it as isAvatarHttpUrl, j as isProfileInCooldown, jt as isWindowsPlatform, k as resolveAuthProfileOrder, kt as analyzeShellCommand, ln as ensureAuthProfileStore, lt as discoverIdleHandsPlugins, m as resolveSubagentSpawnModelSelection, mt as resolveEffectiveEnableState, n as buildConfiguredAllowlistKeys, nn as getShellPathFromLoginShell, nt as AVATAR_MAX_BYTES, o as modelKey, on as dedupeProfileIds, ot as isSupportedLocalAvatarExtension, p as resolveReasoningDefault, pt as normalizePluginsConfig, qt as isSafeExecutableValue, r as buildModelAliasIndex, rn as resolveShellEnvFallbackTimeoutMs, rt as isAvatarDataUrl, s as normalizeModelRef$2, sn as listProfilesForProvider, st as validateJsonSchemaValue, t as buildAllowedModelSet, tn as VERSION, u as resolveConfiguredModelRef, un as resolveAuthStorePathForDisplay, ut as isPathInside, vn as DEFAULT_CONTEXT_TOKENS, vt as setConfigOverride, w as requireApiKey, wt as getTrustedSafeBinDirs, x as createOllamaStreamFn, xt as parseConfigPath, yn as DEFAULT_MODEL, yt as unsetConfigOverride, z as readConfigFileSnapshot, zt as isShellWrapperExecutable } from "./model-selection-
|
|
10
|
-
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-
|
|
8
|
+
import { S as logWarn, T as openBoundaryFileSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as logError, f as loadWorkspaceBootstrapFiles, g as runCommandWithTimeout, l as ensureAgentWorkspace, m as resolveIdleHandsPackageRoot, n as DEFAULT_AGENT_WORKSPACE_DIR, r as DEFAULT_BOOTSTRAP_FILENAME, u as filterBootstrapFilesForSession, v as spawnWithFallback, w as openBoundaryFile, x as logInfo, y as logDebug } from "./workspace-DBFSzT6O.js";
|
|
9
|
+
import { $t as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, A as getSoonestCooldownExpiry, At as buildEnforcedShellCommand, Bt as unwrapKnownDispatchWrapperInvocation, C as getCustomProviderApiKey, Ct as unsetConfigValueAtPath, D as resolveModelAuthMode, Dt as normalizeTrustedSafeBinDirs, E as resolveEnvApiKey, Et as listWritableExplicitTrustedSafeBinDirs, F as resolveApiKeyForProfile, Ft as resolveAllowlistCandidatePath, G as normalizeTelegramCommandName, Gt as resolveSafeBinProfiles, H as writeConfigFile, Ht as splitShellArgs, It as resolveCommandResolutionFromArgv, J as isInboundPathAllowed, Jt as mapStreamingModeToSlackLegacyDraftStreamMode, K as resolveTelegramCustomCommands, Kt as applyMergePatch, Lt as extractShellWrapperInlineCommand, M as markAuthProfileFailure, Mt as splitCommandChain, N as markAuthProfileUsed, Nt as DEFAULT_SAFE_BINS, Ot as validateSafeBinArgv, P as resolveProfilesUnavailableReason, Pt as matchAllowlist, Q as normalizeScpRemoteHost, R as loadConfig, Rt as isDispatchWrapperExecutable, S as getApiKeyForModel, St as setConfigValueAtPath, T as resolveApiKeyForProvider, Tt as isTrustedSafeBinPath, U as validateConfigObjectWithPlugins, Ut as SAFE_BIN_PROFILES, V as resolveConfigSnapshotHash, Vt as unwrapKnownShellMultiplexerInvocation, W as TELEGRAM_COMMAND_NAME_PATTERN, Wt as normalizeSafeBinProfileFixtures, X as resolveIMessageAttachmentRoots, Xt as resolveSlackNativeStreaming, Yt as resolveDiscordPreviewStreamMode, Z as resolveIMessageRemoteAttachmentRoots, Zt as resolveSlackStreamingMode, _n as splitTrailingAuthProfile, _t as resetConfigOverrides, a as isCliProvider, an as resolveOwnerDisplaySetting, at as isPathWithinRoot, b as OLLAMA_NATIVE_BASE_URL, bn as DEFAULT_PROVIDER, bt as getConfigValueAtPath, c as normalizeProviderId, cn as markAuthProfileGood, ct as loadPluginManifestRegistry, d as resolveDefaultModelForAgent, dn as resolveIdleHandsAgentDir, dt as safeStatSync, en as resolveAgentMaxConcurrent, et as parseDurationMs, f as resolveModelRefFromString, fn as withFileLock, ft as applyTestPluginDefaults, gn as normalizeSecretInput, gt as getConfigOverrides, h as resolveThinkingDefault, hn as resolveAuthProfileDisplayLabel, ht as resolveMemorySlotDecision, i as findNormalizedProviderValue, in as isDangerousHostEnvVarName, it as isAvatarHttpUrl, j as isProfileInCooldown, jt as isWindowsPlatform, k as resolveAuthProfileOrder, kt as analyzeShellCommand, ln as ensureAuthProfileStore, lt as discoverIdleHandsPlugins, m as resolveSubagentSpawnModelSelection, mt as resolveEffectiveEnableState, n as buildConfiguredAllowlistKeys, nn as getShellPathFromLoginShell, nt as AVATAR_MAX_BYTES, o as modelKey, on as dedupeProfileIds, ot as isSupportedLocalAvatarExtension, p as resolveReasoningDefault, pt as normalizePluginsConfig, qt as isSafeExecutableValue, r as buildModelAliasIndex, rn as resolveShellEnvFallbackTimeoutMs, rt as isAvatarDataUrl, s as normalizeModelRef$2, sn as listProfilesForProvider, st as validateJsonSchemaValue, t as buildAllowedModelSet, tn as VERSION, u as resolveConfiguredModelRef, un as resolveAuthStorePathForDisplay, ut as isPathInside, vn as DEFAULT_CONTEXT_TOKENS, vt as setConfigOverride, w as requireApiKey, wt as getTrustedSafeBinDirs, x as createOllamaStreamFn, xt as parseConfigPath, yn as DEFAULT_MODEL, yt as unsetConfigOverride, z as readConfigFileSnapshot, zt as isShellWrapperExecutable } from "./model-selection-1MMYqY6M.js";
|
|
10
|
+
import { a as saveJsonFile, i as loadJsonFile } from "./github-copilot-token-Dgt6cnsM.js";
|
|
11
11
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
12
12
|
import { t as parseBooleanValue$1 } from "./boolean-CE7i9tBR.js";
|
|
13
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
13
|
+
import { t as isTruthyEnvValue } from "./env-B5G1qwGc.js";
|
|
14
14
|
import { n as MANIFEST_KEY } from "./legacy-names-B4ZvHEmO.js";
|
|
15
|
-
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, o as resolveChannelGroupToolsPolicy, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-
|
|
15
|
+
import { a as resolveChannelGroupRequireMention, c as normalizeHyphenSlug, i as resolveChannelGroupPolicy, l as normalizeStringEntries, n as listChannelDocks, o as resolveChannelGroupToolsPolicy, r as normalizeSignalMessagingTarget, s as normalizeAtHashSlug, t as getChannelDock, u as normalizeStringEntriesLower } from "./dock-BgOmHcbh.js";
|
|
16
16
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-CEV6qf-x.js";
|
|
17
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-
|
|
18
|
-
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-
|
|
19
|
-
import { n as resolveWhatsAppAccount, t as hasAnyWhatsAppAuth } from "./accounts-
|
|
17
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-BRLyURxW.js";
|
|
18
|
+
import { _ as resolveDiscordAccount, a as normalizeWhatsAppTarget, c as listTelegramAccountIds, d as resolveSlackAccount, g as listEnabledDiscordAccounts, h as createDiscordActionGate, i as isWhatsAppGroupJid, l as resolveTelegramAccount, m as resolveSlackBotToken, n as listChannelPlugins, o as createTelegramActionGate, p as resolveSlackAppToken, r as normalizeChannelId$2, s as listEnabledTelegramAccounts, t as getChannelPlugin, u as resolveTelegramToken, v as normalizeDiscordToken } from "./plugins-CRB60mCJ.js";
|
|
19
|
+
import { n as resolveWhatsAppAccount, t as hasAnyWhatsAppAuth } from "./accounts-Dk8mJIrQ.js";
|
|
20
20
|
import { t as resolveAccountEntry } from "./account-lookup-DlMshWZ_.js";
|
|
21
21
|
import { t as normalizeChatType } from "./chat-type-BPBtOjer.js";
|
|
22
|
-
import { t as buildChannelAccountBindings } from "./bindings-
|
|
23
|
-
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, n as getWebAuthAgeMs, p as webAuthExists } from "./auth-store-
|
|
24
|
-
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-
|
|
25
|
-
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-
|
|
22
|
+
import { t as buildChannelAccountBindings } from "./bindings-D3b5Fmc9.js";
|
|
23
|
+
import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, n as getWebAuthAgeMs, p as webAuthExists } from "./auth-store-DXT-l7fO.js";
|
|
24
|
+
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-BeIZJuy4.js";
|
|
25
|
+
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DmLC7aEF.js";
|
|
26
26
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-B1N_MXT_.js";
|
|
27
|
-
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
28
|
-
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-
|
|
27
|
+
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-BUiQ-9fE.js";
|
|
28
|
+
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-4owMk4vH.js";
|
|
29
29
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-BGF2r-kt.js";
|
|
30
|
-
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-
|
|
31
|
-
import { $ as readJsonFileWithFallback, A as extractTelegramLocation, B as normalizeAllowFrom$2, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as mergeDmAllowFromSources, H as resolveSenderAllowMatch, I as resolveTelegramReplyId, J as toLocationContext, K as resolveGroupAllowFromSources, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as upsertChannelPairingRequest, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as firstDefined$1, V as normalizeDmAllowFromWithStore$1, W as isSenderIdAllowed, X as readChannelAllowFromStore, Y as addChannelAllowFromStoreEntry, Z as removeChannelAllowFromStoreEntry, _ as resolveTelegramFetch, a as reactMessageTelegram, at as resolveTelegramTargetChatType, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as writeJsonFileAtomically, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, it as parseTelegramTarget, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as listPairingChannels, o as sendMessageTelegram, p as markdownToTelegramChunks, q as formatLocationText, r as deleteMessageTelegram, rt as isVoiceCompatibleAudio, s as sendPollTelegram, t as buildInlineKeyboard, tt as getPairingAdapter, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-
|
|
32
|
-
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-
|
|
33
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
34
|
-
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-
|
|
35
|
-
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-
|
|
36
|
-
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-
|
|
30
|
+
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BDVs8LTu.js";
|
|
31
|
+
import { $ as readJsonFileWithFallback, A as extractTelegramLocation, B as normalizeAllowFrom$2, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as mergeDmAllowFromSources, H as resolveSenderAllowMatch, I as resolveTelegramReplyId, J as toLocationContext, K as resolveGroupAllowFromSources, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as upsertChannelPairingRequest, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as firstDefined$1, V as normalizeDmAllowFromWithStore$1, W as isSenderIdAllowed, X as readChannelAllowFromStore, Y as addChannelAllowFromStoreEntry, Z as removeChannelAllowFromStoreEntry, _ as resolveTelegramFetch, a as reactMessageTelegram, at as resolveTelegramTargetChatType, b as buildGroupLabel, c as sendStickerTelegram, d as wasSentByBot, et as writeJsonFileAtomically, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, it as parseTelegramTarget, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as listPairingChannels, o as sendMessageTelegram, p as markdownToTelegramChunks, q as formatLocationText, r as deleteMessageTelegram, rt as isVoiceCompatibleAudio, s as sendPollTelegram, t as buildInlineKeyboard, tt as getPairingAdapter, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-Dfa3sn6r.js";
|
|
32
|
+
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-D1KtygWz.js";
|
|
33
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Bb__OY-j.js";
|
|
34
|
+
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-C8QtrwEU.js";
|
|
35
|
+
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-CghCLoPo.js";
|
|
36
|
+
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-BcJB6PcM.js";
|
|
37
37
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-CZeHDwVZ.js";
|
|
38
|
-
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-
|
|
39
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
40
|
-
import { r as compileSafeRegex, t as redactSensitiveText } from "./redact-
|
|
41
|
-
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-
|
|
42
|
-
import { i as writeFileWithinRoot, n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
43
|
-
import { n as getMediaDir, r as saveMediaBuffer } from "./store-
|
|
44
|
-
import { A as normalizeInputProvenance, B as setSessionRuntimeModel, C as capArrayByJsonBytes, D as INPUT_PROVENANCE_KIND_VALUES, E as parseInlineDirectives$1, F as resolveSessionResetType, G as deriveSessionMetaPatch, I as resolveThreadFlag, J as resolveSessionLockMaxHoldFromTimeout, K as resolveGroupSessionKey, L as DEFAULT_RESET_TRIGGERS, M as evaluateSessionFreshness, N as resolveChannelResetConfig, O as applyInputProvenanceToUserMessage, P as resolveSessionResetPolicy, R as mergeSessionEntry, S as archiveSessionTranscripts, T as extractToolCallNames, U as resolveExplicitAgentSessionKey, V as canonicalizeMainSessionAlias, W as resolveMainSessionKey, _ as deliveryContextKey, b as normalizeSessionDeliveryFields, c as readSessionUpdatedAt, d as updateLastRoute, f as updateSessionStore, g as deliveryContextFromSession, h as resolveCacheTtlMs$1, i as appendAssistantMessageToSessionTranscript, j as resolveSessionKey, k as hasInterSessionUserProvenance, l as recordSessionMetaFromInbound, m as isCacheEnabled, n as extractDeliveryInfo, o as resolveAndPersistSessionFile, p as updateSessionStoreEntry, q as acquireSessionWriteLock, r as parseSessionThreadInfo, s as loadSessionStore, v as mergeDeliveryContext, w as countToolResults, x as normalizeAccountId$3, y as normalizeDeliveryContext, z as resolveFreshSessionTotalTokens } from "./sessions-
|
|
38
|
+
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-CnAPWfca.js";
|
|
39
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Cu1nXNMM.js";
|
|
40
|
+
import { r as compileSafeRegex, t as redactSensitiveText } from "./redact-Bvpf-ATQ.js";
|
|
41
|
+
import { n as formatErrorMessage, r as formatUncaughtError } from "./errors-C_0nm4TJ.js";
|
|
42
|
+
import { i as writeFileWithinRoot, n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CYUaAFO9.js";
|
|
43
|
+
import { n as getMediaDir, r as saveMediaBuffer } from "./store-CvMgrKWx.js";
|
|
44
|
+
import { A as normalizeInputProvenance, B as setSessionRuntimeModel, C as capArrayByJsonBytes, D as INPUT_PROVENANCE_KIND_VALUES, E as parseInlineDirectives$1, F as resolveSessionResetType, G as deriveSessionMetaPatch, I as resolveThreadFlag, J as resolveSessionLockMaxHoldFromTimeout, K as resolveGroupSessionKey, L as DEFAULT_RESET_TRIGGERS, M as evaluateSessionFreshness, N as resolveChannelResetConfig, O as applyInputProvenanceToUserMessage, P as resolveSessionResetPolicy, R as mergeSessionEntry, S as archiveSessionTranscripts, T as extractToolCallNames, U as resolveExplicitAgentSessionKey, V as canonicalizeMainSessionAlias, W as resolveMainSessionKey, _ as deliveryContextKey, b as normalizeSessionDeliveryFields, c as readSessionUpdatedAt, d as updateLastRoute, f as updateSessionStore, g as deliveryContextFromSession, h as resolveCacheTtlMs$1, i as appendAssistantMessageToSessionTranscript, j as resolveSessionKey, k as hasInterSessionUserProvenance, l as recordSessionMetaFromInbound, m as isCacheEnabled, n as extractDeliveryInfo, o as resolveAndPersistSessionFile, p as updateSessionStoreEntry, q as acquireSessionWriteLock, r as parseSessionThreadInfo, s as loadSessionStore, v as mergeDeliveryContext, w as countToolResults, x as normalizeAccountId$3, y as normalizeDeliveryContext, z as resolveFreshSessionTotalTokens } from "./sessions-3ioSeOA1.js";
|
|
45
45
|
import { n as resolveConversationLabel } from "./conversation-label-1Wad2kXc.js";
|
|
46
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
47
|
-
import { a as resolveSessionFilePathOptions, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, u as resolveStorePath } from "./paths-
|
|
46
|
+
import { t as resolveIMessageAccount } from "./accounts-CIvVRRHb.js";
|
|
47
|
+
import { a as resolveSessionFilePathOptions, i as resolveSessionFilePath, l as resolveSessionTranscriptsDirForAgent, o as resolveSessionTranscriptPath, r as resolveDefaultSessionStorePath, u as resolveStorePath } from "./paths-D_qUel1T.js";
|
|
48
48
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-_OimdA_2.js";
|
|
49
|
-
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-
|
|
49
|
+
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CcGZpzmq.js";
|
|
50
50
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-z4_linel.js";
|
|
51
|
-
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-
|
|
52
|
-
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
53
|
-
import { n as resolveMemorySearchConfig } from "./manager-
|
|
51
|
+
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-D8b_rlQC.js";
|
|
52
|
+
import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-BUgeSN2R.js";
|
|
53
|
+
import { n as resolveMemorySearchConfig } from "./manager-BE_76jWB.js";
|
|
54
54
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-3YYM8QuM.js";
|
|
55
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
56
|
-
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-
|
|
57
|
-
import { n as retryAsync } from "./retry-
|
|
58
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-
|
|
59
|
-
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-
|
|
60
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
61
|
-
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
62
|
-
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-
|
|
63
|
-
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-
|
|
64
|
-
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-
|
|
55
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-iuQsIjqN.js";
|
|
56
|
+
import { f as listMemoryFiles, p as normalizeExtraMemoryPaths } from "./query-expansion-DEq020GG.js";
|
|
57
|
+
import { n as retryAsync } from "./retry-BeB9WenR.js";
|
|
58
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, f as readStringArrayParam, l as parseAvailableTags, m as readStringParam, n as missingTargetError, o as imageResult, p as readStringOrNumberParam, r as unknownTargetError, s as imageResultFromFile, t as ambiguousTargetError, u as readNumberParam } from "./target-errors-BPfQrPim.js";
|
|
59
|
+
import { a as chunkText, c as resolveChunkMode, d as isSafeFenceBreak, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as findFenceSpanAt } from "./chunk-CMpX7Jaz.js";
|
|
60
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
|
|
61
|
+
import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-KN4Hp1yZ.js";
|
|
62
|
+
import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-B7IBoKLy.js";
|
|
63
|
+
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-j4vAzcF2.js";
|
|
64
|
+
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-Ck3flWX7.js";
|
|
65
65
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-BYczzTII.js";
|
|
66
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
66
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-PgRFPYUj.js";
|
|
67
67
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-CsfR_943.js";
|
|
68
68
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-D9g0X0i7.js";
|
|
69
|
-
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-
|
|
69
|
+
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-D_TMOGQ0.js";
|
|
70
70
|
import { n as normalizePollInput } from "./polls-DhMjjIGW.js";
|
|
71
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
72
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-
|
|
73
|
-
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-
|
|
74
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
71
|
+
import { t as convertMarkdownTables } from "./tables-5k-zOZ-s.js";
|
|
72
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-C1hvd3bt.js";
|
|
73
|
+
import { a as formatIMessageChatTarget, c as parseIMessageTarget, i as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, o as isAllowedIMessageSender, r as createIMessageRpcClient, s as normalizeIMessageHandle, t as sendMessageIMessage } from "./send-D4bMycQu.js";
|
|
74
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-DuttYY7A.js";
|
|
75
75
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-jilCMH1M.js";
|
|
76
76
|
import { t as makeProxyFetch } from "./proxy-CRB9oCP5.js";
|
|
77
|
-
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
78
|
-
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-
|
|
77
|
+
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-6_GxvQYe.js";
|
|
78
|
+
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-B4J8H6nI.js";
|
|
79
79
|
import { createRequire } from "node:module";
|
|
80
|
-
import * as fs$
|
|
80
|
+
import * as fs$1 from "node:fs/promises";
|
|
81
81
|
import fs from "node:fs/promises";
|
|
82
82
|
import os, { homedir } from "node:os";
|
|
83
83
|
import * as path$1 from "node:path";
|
|
84
84
|
import path, { isAbsolute } from "node:path";
|
|
85
|
-
import
|
|
85
|
+
import syncFs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
86
86
|
import JSON5 from "json5";
|
|
87
87
|
import { inspect, promisify } from "node:util";
|
|
88
88
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -3246,7 +3246,7 @@ async function resolveIdleHandsDocsPath(params) {
|
|
|
3246
3246
|
const workspaceDir = params.workspaceDir?.trim();
|
|
3247
3247
|
if (workspaceDir) {
|
|
3248
3248
|
const workspaceDocs = path.join(workspaceDir, "docs");
|
|
3249
|
-
if (
|
|
3249
|
+
if (syncFs.existsSync(workspaceDocs)) return workspaceDocs;
|
|
3250
3250
|
}
|
|
3251
3251
|
const packageRoot = await resolveIdleHandsPackageRoot({
|
|
3252
3252
|
cwd: params.cwd,
|
|
@@ -3255,7 +3255,7 @@ async function resolveIdleHandsDocsPath(params) {
|
|
|
3255
3255
|
});
|
|
3256
3256
|
if (!packageRoot) return null;
|
|
3257
3257
|
const packageDocs = path.join(packageRoot, "docs");
|
|
3258
|
-
return
|
|
3258
|
+
return syncFs.existsSync(packageDocs) ? packageDocs : null;
|
|
3259
3259
|
}
|
|
3260
3260
|
|
|
3261
3261
|
//#endregion
|
|
@@ -3965,7 +3965,7 @@ async function getMemorySearchManager(params) {
|
|
|
3965
3965
|
if (cached) return { manager: cached };
|
|
3966
3966
|
}
|
|
3967
3967
|
try {
|
|
3968
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
3968
|
+
const { QmdMemoryManager } = await import("./qmd-manager-B_GgyQQ0.js");
|
|
3969
3969
|
const primary = await QmdMemoryManager.create({
|
|
3970
3970
|
cfg: params.cfg,
|
|
3971
3971
|
agentId: params.agentId,
|
|
@@ -3977,7 +3977,7 @@ async function getMemorySearchManager(params) {
|
|
|
3977
3977
|
const wrapper = new FallbackMemoryManager({
|
|
3978
3978
|
primary,
|
|
3979
3979
|
fallbackFactory: async () => {
|
|
3980
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3980
|
+
const { MemoryIndexManager } = await import("./manager-BE_76jWB.js").then((n) => n.t);
|
|
3981
3981
|
return await MemoryIndexManager.get(params);
|
|
3982
3982
|
}
|
|
3983
3983
|
}, () => QMD_MANAGER_CACHE.delete(cacheKey));
|
|
@@ -3990,7 +3990,7 @@ async function getMemorySearchManager(params) {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
try {
|
|
3993
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
3993
|
+
const { MemoryIndexManager } = await import("./manager-BE_76jWB.js").then((n) => n.t);
|
|
3994
3994
|
return { manager: await MemoryIndexManager.get(params) };
|
|
3995
3995
|
} catch (err) {
|
|
3996
3996
|
return {
|
|
@@ -4678,7 +4678,7 @@ function resolveDefaultIdentityPath() {
|
|
|
4678
4678
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
4679
4679
|
}
|
|
4680
4680
|
function ensureDir$2(filePath) {
|
|
4681
|
-
|
|
4681
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4682
4682
|
}
|
|
4683
4683
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
4684
4684
|
function base64UrlEncode(buf) {
|
|
@@ -4714,8 +4714,8 @@ function generateIdentity() {
|
|
|
4714
4714
|
}
|
|
4715
4715
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
4716
4716
|
try {
|
|
4717
|
-
if (
|
|
4718
|
-
const raw =
|
|
4717
|
+
if (syncFs.existsSync(filePath)) {
|
|
4718
|
+
const raw = syncFs.readFileSync(filePath, "utf8");
|
|
4719
4719
|
const parsed = JSON.parse(raw);
|
|
4720
4720
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
4721
4721
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -4724,9 +4724,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4724
4724
|
...parsed,
|
|
4725
4725
|
deviceId: derivedId
|
|
4726
4726
|
};
|
|
4727
|
-
|
|
4727
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
4728
4728
|
try {
|
|
4729
|
-
|
|
4729
|
+
syncFs.chmodSync(filePath, 384);
|
|
4730
4730
|
} catch {}
|
|
4731
4731
|
return {
|
|
4732
4732
|
deviceId: derivedId,
|
|
@@ -4751,9 +4751,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
4751
4751
|
privateKeyPem: identity.privateKeyPem,
|
|
4752
4752
|
createdAtMs: Date.now()
|
|
4753
4753
|
};
|
|
4754
|
-
|
|
4754
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
4755
4755
|
try {
|
|
4756
|
-
|
|
4756
|
+
syncFs.chmodSync(filePath, 384);
|
|
4757
4757
|
} catch {}
|
|
4758
4758
|
return identity;
|
|
4759
4759
|
}
|
|
@@ -4903,8 +4903,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
4903
4903
|
}
|
|
4904
4904
|
function readStore(filePath) {
|
|
4905
4905
|
try {
|
|
4906
|
-
if (!
|
|
4907
|
-
const raw =
|
|
4906
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
4907
|
+
const raw = syncFs.readFileSync(filePath, "utf8");
|
|
4908
4908
|
const parsed = JSON.parse(raw);
|
|
4909
4909
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
4910
4910
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -4914,10 +4914,10 @@ function readStore(filePath) {
|
|
|
4914
4914
|
}
|
|
4915
4915
|
}
|
|
4916
4916
|
function writeStore(filePath, store) {
|
|
4917
|
-
|
|
4918
|
-
|
|
4917
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
4918
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
4919
4919
|
try {
|
|
4920
|
-
|
|
4920
|
+
syncFs.chmodSync(filePath, 384);
|
|
4921
4921
|
} catch {}
|
|
4922
4922
|
}
|
|
4923
4923
|
function loadDeviceAuthToken(params) {
|
|
@@ -7937,7 +7937,7 @@ async function routeReply(params) {
|
|
|
7937
7937
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7938
7938
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7939
7939
|
try {
|
|
7940
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7940
|
+
const { deliverOutboundPayloads } = await import("./deliver-BUiQ-9fE.js").then((n) => n.n);
|
|
7941
7941
|
const outboundSession = buildOutboundSessionContext({
|
|
7942
7942
|
cfg,
|
|
7943
7943
|
agentId: resolvedAgentId,
|
|
@@ -8457,7 +8457,7 @@ function normalizeSessionKey$1(value) {
|
|
|
8457
8457
|
}
|
|
8458
8458
|
function readSessionStore(storePath) {
|
|
8459
8459
|
try {
|
|
8460
|
-
const raw =
|
|
8460
|
+
const raw = syncFs.readFileSync(storePath, "utf-8");
|
|
8461
8461
|
const parsed = JSON5.parse(raw);
|
|
8462
8462
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
8463
8463
|
} catch {}
|
|
@@ -17452,7 +17452,7 @@ function mergeLegacyAgent(current, legacy) {
|
|
|
17452
17452
|
}
|
|
17453
17453
|
function ensureDir$1(filePath) {
|
|
17454
17454
|
const dir = path.dirname(filePath);
|
|
17455
|
-
|
|
17455
|
+
syncFs.mkdirSync(dir, { recursive: true });
|
|
17456
17456
|
}
|
|
17457
17457
|
function coerceAllowlistEntries(allowlist) {
|
|
17458
17458
|
if (!Array.isArray(allowlist) || allowlist.length === 0) return Array.isArray(allowlist) ? allowlist : void 0;
|
|
@@ -17522,11 +17522,11 @@ function generateToken() {
|
|
|
17522
17522
|
function loadExecApprovals() {
|
|
17523
17523
|
const filePath = resolveExecApprovalsPath();
|
|
17524
17524
|
try {
|
|
17525
|
-
if (!
|
|
17525
|
+
if (!syncFs.existsSync(filePath)) return normalizeExecApprovals({
|
|
17526
17526
|
version: 1,
|
|
17527
17527
|
agents: {}
|
|
17528
17528
|
});
|
|
17529
|
-
const raw =
|
|
17529
|
+
const raw = syncFs.readFileSync(filePath, "utf8");
|
|
17530
17530
|
const parsed = JSON.parse(raw);
|
|
17531
17531
|
if (parsed?.version !== 1) return normalizeExecApprovals({
|
|
17532
17532
|
version: 1,
|
|
@@ -17543,9 +17543,9 @@ function loadExecApprovals() {
|
|
|
17543
17543
|
function saveExecApprovals(file) {
|
|
17544
17544
|
const filePath = resolveExecApprovalsPath();
|
|
17545
17545
|
ensureDir$1(filePath);
|
|
17546
|
-
|
|
17546
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(file, null, 2)}\n`, { mode: 384 });
|
|
17547
17547
|
try {
|
|
17548
|
-
|
|
17548
|
+
syncFs.chmodSync(filePath, 384);
|
|
17549
17549
|
} catch {}
|
|
17550
17550
|
}
|
|
17551
17551
|
function ensureExecApprovals() {
|
|
@@ -18030,18 +18030,18 @@ function drainSystemEventEntries(sessionKey) {
|
|
|
18030
18030
|
function resolvePowerShellPath() {
|
|
18031
18031
|
const programFiles = process.env.ProgramFiles || process.env.PROGRAMFILES || "C:\\Program Files";
|
|
18032
18032
|
const pwsh7 = path.join(programFiles, "PowerShell", "7", "pwsh.exe");
|
|
18033
|
-
if (
|
|
18033
|
+
if (syncFs.existsSync(pwsh7)) return pwsh7;
|
|
18034
18034
|
const programW6432 = process.env.ProgramW6432;
|
|
18035
18035
|
if (programW6432 && programW6432 !== programFiles) {
|
|
18036
18036
|
const pwsh7Alt = path.join(programW6432, "PowerShell", "7", "pwsh.exe");
|
|
18037
|
-
if (
|
|
18037
|
+
if (syncFs.existsSync(pwsh7Alt)) return pwsh7Alt;
|
|
18038
18038
|
}
|
|
18039
18039
|
const pwshInPath = resolveShellFromPath("pwsh");
|
|
18040
18040
|
if (pwshInPath) return pwshInPath;
|
|
18041
18041
|
const systemRoot = process.env.SystemRoot || process.env.WINDIR;
|
|
18042
18042
|
if (systemRoot) {
|
|
18043
18043
|
const candidate = path.join(systemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe");
|
|
18044
|
-
if (
|
|
18044
|
+
if (syncFs.existsSync(candidate)) return candidate;
|
|
18045
18045
|
}
|
|
18046
18046
|
return "powershell.exe";
|
|
18047
18047
|
}
|
|
@@ -18079,7 +18079,7 @@ function resolveShellFromPath(name) {
|
|
|
18079
18079
|
for (const entry of entries) {
|
|
18080
18080
|
const candidate = path.join(entry, name);
|
|
18081
18081
|
try {
|
|
18082
|
-
|
|
18082
|
+
syncFs.accessSync(candidate, syncFs.constants.X_OK);
|
|
18083
18083
|
return candidate;
|
|
18084
18084
|
} catch {}
|
|
18085
18085
|
}
|
|
@@ -21330,7 +21330,7 @@ const MODEL_CACHE = /* @__PURE__ */ new Map();
|
|
|
21330
21330
|
await ensureIdleHandsModelsJson(cfg);
|
|
21331
21331
|
} catch {}
|
|
21332
21332
|
try {
|
|
21333
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-
|
|
21333
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-Bb__OY-j.js").then((n) => n.r);
|
|
21334
21334
|
const agentDir = resolveIdleHandsAgentDir();
|
|
21335
21335
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
21336
21336
|
applyDiscoveredContextWindows({
|
|
@@ -21482,7 +21482,7 @@ function walkUpFrom(startDir, opts, resolveAtDir) {
|
|
|
21482
21482
|
function hasGitMarker(repoRoot) {
|
|
21483
21483
|
const gitPath = path.join(repoRoot, ".git");
|
|
21484
21484
|
try {
|
|
21485
|
-
const stat =
|
|
21485
|
+
const stat = syncFs.statSync(gitPath);
|
|
21486
21486
|
return stat.isDirectory() || stat.isFile();
|
|
21487
21487
|
} catch {
|
|
21488
21488
|
return false;
|
|
@@ -21494,10 +21494,10 @@ function findGitRoot(startDir, opts = {}) {
|
|
|
21494
21494
|
function resolveGitDirFromMarker(repoRoot) {
|
|
21495
21495
|
const gitPath = path.join(repoRoot, ".git");
|
|
21496
21496
|
try {
|
|
21497
|
-
const stat =
|
|
21497
|
+
const stat = syncFs.statSync(gitPath);
|
|
21498
21498
|
if (stat.isDirectory()) return gitPath;
|
|
21499
21499
|
if (!stat.isFile()) return null;
|
|
21500
|
-
const match =
|
|
21500
|
+
const match = syncFs.readFileSync(gitPath, "utf-8").match(/gitdir:\s*(.+)/i);
|
|
21501
21501
|
if (!match?.[1]) return null;
|
|
21502
21502
|
return path.resolve(repoRoot, match[1].trim());
|
|
21503
21503
|
} catch {
|
|
@@ -21564,7 +21564,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
21564
21564
|
cachedCommit = null;
|
|
21565
21565
|
return cachedCommit;
|
|
21566
21566
|
}
|
|
21567
|
-
const head =
|
|
21567
|
+
const head = syncFs.readFileSync(headPath, "utf-8").trim();
|
|
21568
21568
|
if (!head) {
|
|
21569
21569
|
cachedCommit = null;
|
|
21570
21570
|
return cachedCommit;
|
|
@@ -21572,7 +21572,7 @@ const resolveCommitHash = (options = {}) => {
|
|
|
21572
21572
|
if (head.startsWith("ref:")) {
|
|
21573
21573
|
const ref = head.replace(/^ref:\s*/i, "").trim();
|
|
21574
21574
|
const refPath = path.resolve(path.dirname(headPath), ref);
|
|
21575
|
-
cachedCommit = formatCommit(
|
|
21575
|
+
cachedCommit = formatCommit(syncFs.readFileSync(refPath, "utf-8").trim());
|
|
21576
21576
|
return cachedCommit;
|
|
21577
21577
|
}
|
|
21578
21578
|
cachedCommit = formatCommit(head);
|
|
@@ -21832,17 +21832,17 @@ const readUsageFromSessionLog = (sessionId, sessionEntry, agentId, sessionKey, s
|
|
|
21832
21832
|
} catch {
|
|
21833
21833
|
return;
|
|
21834
21834
|
}
|
|
21835
|
-
if (!
|
|
21835
|
+
if (!syncFs.existsSync(logPath)) return;
|
|
21836
21836
|
try {
|
|
21837
21837
|
const TAIL_BYTES = 8192;
|
|
21838
|
-
const stat =
|
|
21838
|
+
const stat = syncFs.statSync(logPath);
|
|
21839
21839
|
const offset = Math.max(0, stat.size - TAIL_BYTES);
|
|
21840
21840
|
const buf = Buffer.alloc(Math.min(TAIL_BYTES, stat.size));
|
|
21841
|
-
const fd =
|
|
21841
|
+
const fd = syncFs.openSync(logPath, "r");
|
|
21842
21842
|
try {
|
|
21843
|
-
|
|
21843
|
+
syncFs.readSync(fd, buf, 0, buf.length, offset);
|
|
21844
21844
|
} finally {
|
|
21845
|
-
|
|
21845
|
+
syncFs.closeSync(fd);
|
|
21846
21846
|
}
|
|
21847
21847
|
const tail = buf.toString("utf-8");
|
|
21848
21848
|
const lines = (offset > 0 ? tail.slice(tail.indexOf("\n") + 1) : tail).split(/\n+/);
|
|
@@ -23062,7 +23062,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23062
23062
|
};
|
|
23063
23063
|
const arg = body.slice(6).trim();
|
|
23064
23064
|
if (arg === "status" || arg === "") {
|
|
23065
|
-
const { antonStatus } = await import("./anton-
|
|
23065
|
+
const { antonStatus } = await import("./anton-CoGaJdTU.js");
|
|
23066
23066
|
const lines = [];
|
|
23067
23067
|
await antonStatus({
|
|
23068
23068
|
log: (msg) => lines.push(msg),
|
|
@@ -23078,7 +23078,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23078
23078
|
return { shouldContinue: false };
|
|
23079
23079
|
}
|
|
23080
23080
|
if (arg === "stop") {
|
|
23081
|
-
const { antonStop } = await import("./anton-
|
|
23081
|
+
const { antonStop } = await import("./anton-CoGaJdTU.js");
|
|
23082
23082
|
const lines = [];
|
|
23083
23083
|
await antonStop({
|
|
23084
23084
|
log: (msg) => lines.push(msg),
|
|
@@ -23116,8 +23116,8 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23116
23116
|
await sendProgress(replyCtx, text);
|
|
23117
23117
|
return { shouldContinue: false };
|
|
23118
23118
|
}
|
|
23119
|
-
const { runAnton, formatProgressMessage } = await import("./anton-
|
|
23120
|
-
const { createDefaultDeps } = await import("./deps-
|
|
23119
|
+
const { runAnton, formatProgressMessage } = await import("./anton-CoGaJdTU.js");
|
|
23120
|
+
const { createDefaultDeps } = await import("./deps-B4J8H6nI.js").then((n) => n.n);
|
|
23121
23121
|
const { createNonExitingRuntime } = await import("./runtime-8mi3mpYB.js").then((n) => n.r);
|
|
23122
23122
|
const runtime = createNonExitingRuntime();
|
|
23123
23123
|
const deps = createDefaultDeps();
|
|
@@ -23214,8 +23214,8 @@ const handleDirCommand = async (params, _allowTextCommands) => {
|
|
|
23214
23214
|
}
|
|
23215
23215
|
try {
|
|
23216
23216
|
if (params.sessionKey) {
|
|
23217
|
-
const { updateSessionStoreEntry } = await import("./sessions-
|
|
23218
|
-
const { resolveDefaultSessionStorePath } = await import("./paths-
|
|
23217
|
+
const { updateSessionStoreEntry } = await import("./sessions-3ioSeOA1.js").then((n) => n.u);
|
|
23218
|
+
const { resolveDefaultSessionStorePath } = await import("./paths-D_qUel1T.js").then((n) => n.n);
|
|
23219
23219
|
await updateSessionStoreEntry({
|
|
23220
23220
|
storePath: params.storePath ?? resolveDefaultSessionStorePath(),
|
|
23221
23221
|
sessionKey: params.sessionKey,
|
|
@@ -23404,7 +23404,7 @@ function resolveRepoRoot(params) {
|
|
|
23404
23404
|
const configured = params.config?.agents?.defaults?.repoRoot?.trim();
|
|
23405
23405
|
if (configured) try {
|
|
23406
23406
|
const resolved = path.resolve(configured);
|
|
23407
|
-
if (
|
|
23407
|
+
if (syncFs.statSync(resolved).isDirectory()) return resolved;
|
|
23408
23408
|
} catch {}
|
|
23409
23409
|
const candidates = [params.workspaceDir, params.cwd].map((value) => value?.trim()).filter(Boolean);
|
|
23410
23410
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -24176,7 +24176,7 @@ async function buildContextReply(params) {
|
|
|
24176
24176
|
//#region src/auto-reply/reply/commands-export-session.ts
|
|
24177
24177
|
const EXPORT_HTML_DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "export-html");
|
|
24178
24178
|
function loadTemplate(fileName) {
|
|
24179
|
-
return
|
|
24179
|
+
return syncFs.readFileSync(path.join(EXPORT_HTML_DIR, fileName), "utf-8");
|
|
24180
24180
|
}
|
|
24181
24181
|
function generateHtml(sessionData) {
|
|
24182
24182
|
const template = loadTemplate("template.html");
|
|
@@ -24250,7 +24250,7 @@ async function buildExportSessionReply(params) {
|
|
|
24250
24250
|
} catch (err) {
|
|
24251
24251
|
return { text: `❌ Failed to resolve session file: ${err instanceof Error ? err.message : String(err)}` };
|
|
24252
24252
|
}
|
|
24253
|
-
if (!
|
|
24253
|
+
if (!syncFs.existsSync(sessionFile)) return { text: `❌ Session file not found: ${sessionFile}` };
|
|
24254
24254
|
const sessionManager = SessionManager.open(sessionFile);
|
|
24255
24255
|
const entries = sessionManager.getEntries();
|
|
24256
24256
|
const header = sessionManager.getHeader();
|
|
@@ -24271,8 +24271,8 @@ async function buildExportSessionReply(params) {
|
|
|
24271
24271
|
const defaultFileName = `idlehands-session-${entry.sessionId.slice(0, 8)}-${timestamp}.html`;
|
|
24272
24272
|
const outputPath = args.outputPath ? path.resolve(args.outputPath.startsWith("~") ? args.outputPath.replace("~", process.env.HOME ?? "") : args.outputPath) : path.join(params.workspaceDir, defaultFileName);
|
|
24273
24273
|
const outputDir = path.dirname(outputPath);
|
|
24274
|
-
if (!
|
|
24275
|
-
|
|
24274
|
+
if (!syncFs.existsSync(outputDir)) syncFs.mkdirSync(outputDir, { recursive: true });
|
|
24275
|
+
syncFs.writeFileSync(outputPath, html, "utf-8");
|
|
24276
24276
|
const relativePath = path.relative(params.workspaceDir, outputPath);
|
|
24277
24277
|
return { text: [
|
|
24278
24278
|
"✅ Session exported!",
|
|
@@ -24447,8 +24447,8 @@ function resolveZaiApiKey() {
|
|
|
24447
24447
|
}
|
|
24448
24448
|
try {
|
|
24449
24449
|
const authPath = path.join(resolveRequiredHomeDir(process.env, os.homedir), ".pi", "agent", "auth.json");
|
|
24450
|
-
if (!
|
|
24451
|
-
const data = JSON.parse(
|
|
24450
|
+
if (!syncFs.existsSync(authPath)) return;
|
|
24451
|
+
const data = JSON.parse(syncFs.readFileSync(authPath, "utf-8"));
|
|
24452
24452
|
return data["z-ai"]?.access || data.zai?.access;
|
|
24453
24453
|
} catch {
|
|
24454
24454
|
return;
|
|
@@ -26211,7 +26211,7 @@ function shouldPersistAnyBindingState() {
|
|
|
26211
26211
|
}
|
|
26212
26212
|
function shouldPersistBindingMutations() {
|
|
26213
26213
|
if (shouldPersistAnyBindingState()) return true;
|
|
26214
|
-
return
|
|
26214
|
+
return syncFs.existsSync(resolveThreadBindingsPath());
|
|
26215
26215
|
}
|
|
26216
26216
|
function saveBindingsToDisk(params = {}) {
|
|
26217
26217
|
if (!params.force && !shouldPersistAnyBindingState()) return;
|
|
@@ -27475,7 +27475,7 @@ const applyCostTotal = (totals, costTotal) => {
|
|
|
27475
27475
|
totals.totalCost += costTotal;
|
|
27476
27476
|
};
|
|
27477
27477
|
async function* readJsonlRecords(filePath) {
|
|
27478
|
-
const fileStream =
|
|
27478
|
+
const fileStream = syncFs.createReadStream(filePath, { encoding: "utf-8" });
|
|
27479
27479
|
const rl = readline.createInterface({
|
|
27480
27480
|
input: fileStream,
|
|
27481
27481
|
crlfDelay: Infinity
|
|
@@ -27547,10 +27547,10 @@ async function loadCostUsageSummary(params) {
|
|
|
27547
27547
|
const dailyMap = /* @__PURE__ */ new Map();
|
|
27548
27548
|
const totals = emptyTotals();
|
|
27549
27549
|
const sessionsDir = resolveSessionTranscriptsDirForAgent(params?.agentId);
|
|
27550
|
-
const entries = await
|
|
27550
|
+
const entries = await syncFs.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
27551
27551
|
const files = (await Promise.all(entries.filter((entry) => entry.isFile() && entry.name.endsWith(".jsonl")).map(async (entry) => {
|
|
27552
27552
|
const filePath = path.join(sessionsDir, entry.name);
|
|
27553
|
-
const stats = await
|
|
27553
|
+
const stats = await syncFs.promises.stat(filePath).catch(() => null);
|
|
27554
27554
|
if (!stats) return null;
|
|
27555
27555
|
if (stats.mtimeMs < sinceTime) return null;
|
|
27556
27556
|
return filePath;
|
|
@@ -27583,7 +27583,7 @@ async function loadCostUsageSummary(params) {
|
|
|
27583
27583
|
}
|
|
27584
27584
|
async function loadSessionCostSummary(params) {
|
|
27585
27585
|
const sessionFile = params.sessionFile ?? (params.sessionId ? resolveSessionFilePath(params.sessionId, params.sessionEntry, { agentId: params.agentId }) : void 0);
|
|
27586
|
-
if (!sessionFile || !
|
|
27586
|
+
if (!sessionFile || !syncFs.existsSync(sessionFile)) return null;
|
|
27587
27587
|
const totals = emptyTotals();
|
|
27588
27588
|
let firstActivity;
|
|
27589
27589
|
let lastActivity;
|
|
@@ -29900,7 +29900,7 @@ async function createModelSelectionState(params) {
|
|
|
29900
29900
|
}
|
|
29901
29901
|
}
|
|
29902
29902
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
29903
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
29903
|
+
const { ensureAuthProfileStore } = await import("./model-selection-1MMYqY6M.js").then((n) => n.O);
|
|
29904
29904
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
29905
29905
|
const providerKey = normalizeProviderId(provider);
|
|
29906
29906
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -33422,7 +33422,7 @@ function asBoolean(value) {
|
|
|
33422
33422
|
}
|
|
33423
33423
|
function resolveTempPathParts(opts) {
|
|
33424
33424
|
const tmpDir = opts.tmpDir ?? resolvePreferredIdleHandsTmpDir();
|
|
33425
|
-
if (!opts.tmpDir)
|
|
33425
|
+
if (!opts.tmpDir) syncFs.mkdirSync(tmpDir, {
|
|
33426
33426
|
recursive: true,
|
|
33427
33427
|
mode: 448
|
|
33428
33428
|
});
|
|
@@ -33488,7 +33488,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
33488
33488
|
if (typeof contentLength === "number" && Number.isFinite(contentLength) && contentLength > MAX_CAMERA_URL_DOWNLOAD_BYTES) throw new Error(`writeUrlToFile: content-length ${contentLength} exceeds max ${MAX_CAMERA_URL_DOWNLOAD_BYTES}`);
|
|
33489
33489
|
const body = res.body;
|
|
33490
33490
|
if (!body) throw new Error(`failed to download ${url}: empty response body`);
|
|
33491
|
-
const fileHandle = await fs$
|
|
33491
|
+
const fileHandle = await fs$1.open(filePath, "w");
|
|
33492
33492
|
let bytes = 0;
|
|
33493
33493
|
let thrown;
|
|
33494
33494
|
try {
|
|
@@ -33507,7 +33507,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
33507
33507
|
await fileHandle.close();
|
|
33508
33508
|
}
|
|
33509
33509
|
if (thrown) {
|
|
33510
|
-
await fs$
|
|
33510
|
+
await fs$1.unlink(filePath).catch(() => {});
|
|
33511
33511
|
throw thrown;
|
|
33512
33512
|
}
|
|
33513
33513
|
return {
|
|
@@ -33517,7 +33517,7 @@ async function writeUrlToFile(filePath, url) {
|
|
|
33517
33517
|
}
|
|
33518
33518
|
async function writeBase64ToFile(filePath, base64) {
|
|
33519
33519
|
const buf = Buffer.from(base64, "base64");
|
|
33520
|
-
await fs$
|
|
33520
|
+
await fs$1.writeFile(filePath, buf);
|
|
33521
33521
|
return {
|
|
33522
33522
|
path: filePath,
|
|
33523
33523
|
bytes: buf.length
|
|
@@ -36362,9 +36362,9 @@ function loadExternalCatalogEntries(options) {
|
|
|
36362
36362
|
const entries = [];
|
|
36363
36363
|
for (const rawPath of paths) {
|
|
36364
36364
|
const resolved = resolveUserPath(rawPath);
|
|
36365
|
-
if (!
|
|
36365
|
+
if (!syncFs.existsSync(resolved)) continue;
|
|
36366
36366
|
try {
|
|
36367
|
-
const payload = JSON.parse(
|
|
36367
|
+
const payload = JSON.parse(syncFs.readFileSync(resolved, "utf-8"));
|
|
36368
36368
|
entries.push(...parseCatalogEntries(payload));
|
|
36369
36369
|
} catch {}
|
|
36370
36370
|
}
|
|
@@ -39580,7 +39580,7 @@ function listExistingAgentIdsFromDisk() {
|
|
|
39580
39580
|
const root = resolveStateDir();
|
|
39581
39581
|
const agentsDir = path.join(root, "agents");
|
|
39582
39582
|
try {
|
|
39583
|
-
return
|
|
39583
|
+
return syncFs.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
|
|
39584
39584
|
} catch {
|
|
39585
39585
|
return [];
|
|
39586
39586
|
}
|
|
@@ -45425,7 +45425,7 @@ async function runAgentTurnWithFallback(params) {
|
|
|
45425
45425
|
if (corruptedSessionId) {
|
|
45426
45426
|
const transcriptPath = resolveSessionTranscriptPath(corruptedSessionId);
|
|
45427
45427
|
try {
|
|
45428
|
-
|
|
45428
|
+
syncFs.unlinkSync(transcriptPath);
|
|
45429
45429
|
} catch {}
|
|
45430
45430
|
}
|
|
45431
45431
|
delete params.activeSessionStore[sessionKey];
|
|
@@ -46160,9 +46160,9 @@ function auditPostCompactionReads(readFilePaths, workspaceDir, requiredReads = D
|
|
|
46160
46160
|
* Returns messages from the last N lines (default 100).
|
|
46161
46161
|
*/
|
|
46162
46162
|
function readSessionMessages(sessionFile, maxLines = 100) {
|
|
46163
|
-
if (!
|
|
46163
|
+
if (!syncFs.existsSync(sessionFile)) return [];
|
|
46164
46164
|
try {
|
|
46165
|
-
const recentLines =
|
|
46165
|
+
const recentLines = syncFs.readFileSync(sessionFile, "utf-8").trim().split("\n").slice(-maxLines);
|
|
46166
46166
|
const messages = [];
|
|
46167
46167
|
for (const line of recentLines) try {
|
|
46168
46168
|
const entry = JSON.parse(line);
|
|
@@ -46203,8 +46203,8 @@ const MAX_CONTEXT_CHARS = 3e3;
|
|
|
46203
46203
|
async function readPostCompactionContext(workspaceDir) {
|
|
46204
46204
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
46205
46205
|
try {
|
|
46206
|
-
if (!
|
|
46207
|
-
const sections = extractSections(await
|
|
46206
|
+
if (!syncFs.existsSync(agentsPath)) return null;
|
|
46207
|
+
const sections = extractSections(await syncFs.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
46208
46208
|
if (sections.length === 0) return null;
|
|
46209
46209
|
const combined = sections.join("\n\n");
|
|
46210
46210
|
return "[Post-compaction context refresh]\n\nSession was just compacted. The conversation summary above is a hint, NOT a substitute for your startup sequence. Execute your Session Startup sequence now — read the required files before responding to the user.\n\nCritical rules from AGENTS.md:\n\n" + (combined.length > MAX_CONTEXT_CHARS ? combined.slice(0, MAX_CONTEXT_CHARS) + "\n...[truncated]..." : combined);
|
|
@@ -46438,7 +46438,7 @@ async function runReplyAgent(params) {
|
|
|
46438
46438
|
if (resolved) transcriptCandidates.add(resolved);
|
|
46439
46439
|
transcriptCandidates.add(resolveSessionTranscriptPath(prevSessionId, agentId));
|
|
46440
46440
|
for (const candidate of transcriptCandidates) try {
|
|
46441
|
-
|
|
46441
|
+
syncFs.unlinkSync(candidate);
|
|
46442
46442
|
} catch {}
|
|
46443
46443
|
}
|
|
46444
46444
|
return true;
|
|
@@ -47429,7 +47429,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
47429
47429
|
return;
|
|
47430
47430
|
}
|
|
47431
47431
|
try {
|
|
47432
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
47432
|
+
const { deliverOutboundPayloads } = await import("./deliver-BUiQ-9fE.js").then((n) => n.n);
|
|
47433
47433
|
const outboundSession = buildOutboundSessionContext({
|
|
47434
47434
|
cfg: params.cfg,
|
|
47435
47435
|
sessionKey: params.sessionKey
|
|
@@ -47486,7 +47486,7 @@ function forkSessionFromParent(params) {
|
|
|
47486
47486
|
agentId: params.agentId,
|
|
47487
47487
|
sessionsDir: params.sessionsDir
|
|
47488
47488
|
});
|
|
47489
|
-
if (!parentSessionFile || !
|
|
47489
|
+
if (!parentSessionFile || !syncFs.existsSync(parentSessionFile)) return null;
|
|
47490
47490
|
try {
|
|
47491
47491
|
const manager = SessionManager.open(parentSessionFile);
|
|
47492
47492
|
const leafId = manager.getLeafId();
|
|
@@ -47510,7 +47510,7 @@ function forkSessionFromParent(params) {
|
|
|
47510
47510
|
cwd: manager.getCwd(),
|
|
47511
47511
|
parentSession: parentSessionFile
|
|
47512
47512
|
};
|
|
47513
|
-
|
|
47513
|
+
syncFs.writeFileSync(sessionFile, `${JSON.stringify(header)}\n`, "utf-8");
|
|
47514
47514
|
return {
|
|
47515
47515
|
sessionId,
|
|
47516
47516
|
sessionFile
|
|
@@ -51865,7 +51865,7 @@ async function describeStickerImage(params) {
|
|
|
51865
51865
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
51866
51866
|
try {
|
|
51867
51867
|
const buffer = await fs.readFile(imagePath);
|
|
51868
|
-
const { describeImageWithModel } = await import("./image-
|
|
51868
|
+
const { describeImageWithModel } = await import("./image-D8b_rlQC.js").then((n) => n.n);
|
|
51869
51869
|
return (await describeImageWithModel({
|
|
51870
51870
|
buffer,
|
|
51871
51871
|
fileName: "sticker.webp",
|
|
@@ -52319,7 +52319,7 @@ function createWhatsAppLoginTool() {
|
|
|
52319
52319
|
force: Type.Optional(Type.Boolean())
|
|
52320
52320
|
}),
|
|
52321
52321
|
execute: async (_toolCallId, args) => {
|
|
52322
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
52322
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-CFFFOjOl.js");
|
|
52323
52323
|
if ((args?.action ?? "start") === "wait") {
|
|
52324
52324
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
52325
52325
|
return {
|
|
@@ -52606,7 +52606,7 @@ async function withMemoryManagerForAgent(params) {
|
|
|
52606
52606
|
}
|
|
52607
52607
|
async function checkReadableFile(pathname) {
|
|
52608
52608
|
try {
|
|
52609
|
-
await fs.access(pathname,
|
|
52609
|
+
await fs.access(pathname, syncFs.constants.R_OK);
|
|
52610
52610
|
return { exists: true };
|
|
52611
52611
|
} catch (err) {
|
|
52612
52612
|
const code = err.code;
|
|
@@ -52665,7 +52665,7 @@ async function scanMemoryFiles(workspaceDir, extraPaths = []) {
|
|
|
52665
52665
|
}
|
|
52666
52666
|
let dirReadable = null;
|
|
52667
52667
|
try {
|
|
52668
|
-
await fs.access(memoryDir,
|
|
52668
|
+
await fs.access(memoryDir, syncFs.constants.R_OK);
|
|
52669
52669
|
dirReadable = true;
|
|
52670
52670
|
} catch (err) {
|
|
52671
52671
|
const code = err.code;
|
|
@@ -54793,7 +54793,7 @@ async function preflightDiscordMessage(params) {
|
|
|
54793
54793
|
let preflightTranscript;
|
|
54794
54794
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
54795
54795
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
54796
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
54796
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CW8IH1lU.js");
|
|
54797
54797
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
54798
54798
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
54799
54799
|
ctx: {
|
|
@@ -56375,7 +56375,7 @@ function identityHasValues(identity) {
|
|
|
56375
56375
|
}
|
|
56376
56376
|
function loadIdentityFromFile(identityPath) {
|
|
56377
56377
|
try {
|
|
56378
|
-
const parsed = parseIdentityMarkdown(
|
|
56378
|
+
const parsed = parseIdentityMarkdown(syncFs.readFileSync(identityPath, "utf-8"));
|
|
56379
56379
|
if (!identityHasValues(parsed)) return null;
|
|
56380
56380
|
return parsed;
|
|
56381
56381
|
} catch {
|
|
@@ -56399,7 +56399,7 @@ function resolveAvatarSource(cfg, agentId) {
|
|
|
56399
56399
|
}
|
|
56400
56400
|
function resolveExistingPath(value) {
|
|
56401
56401
|
try {
|
|
56402
|
-
return
|
|
56402
|
+
return syncFs.realpathSync(value);
|
|
56403
56403
|
} catch {
|
|
56404
56404
|
return path.resolve(value);
|
|
56405
56405
|
}
|
|
@@ -56417,7 +56417,7 @@ function resolveLocalAvatarPath(params) {
|
|
|
56417
56417
|
reason: "unsupported_extension"
|
|
56418
56418
|
};
|
|
56419
56419
|
try {
|
|
56420
|
-
const stat =
|
|
56420
|
+
const stat = syncFs.statSync(realPath);
|
|
56421
56421
|
if (!stat.isFile()) return {
|
|
56422
56422
|
ok: false,
|
|
56423
56423
|
reason: "missing"
|
|
@@ -57270,9 +57270,9 @@ function createDiscordMessageHandler(params) {
|
|
|
57270
57270
|
try {
|
|
57271
57271
|
const messageText = resolveDiscordMessageText(data.message)?.trim();
|
|
57272
57272
|
if (messageText) {
|
|
57273
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
57273
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CVO75pTD.js");
|
|
57274
57274
|
if (isAbortRequestText(messageText)) {
|
|
57275
|
-
const { resolveAgentRoute } = await import("./resolve-route-
|
|
57275
|
+
const { resolveAgentRoute } = await import("./resolve-route-DuttYY7A.js").then((n) => n.r);
|
|
57276
57276
|
const channelId = resolveDiscordMessageChannelId({
|
|
57277
57277
|
message: data.message,
|
|
57278
57278
|
eventChannelId: data.channel_id
|
|
@@ -64768,9 +64768,9 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
64768
64768
|
}
|
|
64769
64769
|
const msgText = (message.text ?? "").trim();
|
|
64770
64770
|
if (msgText) {
|
|
64771
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
64771
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CVO75pTD.js");
|
|
64772
64772
|
if (isAbortRequestText(msgText)) {
|
|
64773
|
-
const { resolveAgentRoute } = await import("./resolve-route-
|
|
64773
|
+
const { resolveAgentRoute } = await import("./resolve-route-DuttYY7A.js").then((n) => n.r);
|
|
64774
64774
|
const route = resolveAgentRoute({
|
|
64775
64775
|
cfg,
|
|
64776
64776
|
channel: "imessage",
|
|
@@ -64851,7 +64851,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
64851
64851
|
function readFileIfExists(filePath) {
|
|
64852
64852
|
if (!filePath) return;
|
|
64853
64853
|
try {
|
|
64854
|
-
return
|
|
64854
|
+
return syncFs.readFileSync(filePath, "utf-8").trim();
|
|
64855
64855
|
} catch {
|
|
64856
64856
|
return;
|
|
64857
64857
|
}
|
|
@@ -65427,7 +65427,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10 *
|
|
|
65427
65427
|
prefix: "line-media",
|
|
65428
65428
|
extension: getExtensionForContentType(contentType)
|
|
65429
65429
|
});
|
|
65430
|
-
await
|
|
65430
|
+
await syncFs.promises.writeFile(filePath, buffer);
|
|
65431
65431
|
logVerbose(`line: downloaded media ${messageId} to ${filePath} (${buffer.length} bytes)`);
|
|
65432
65432
|
return {
|
|
65433
65433
|
path: filePath,
|
|
@@ -67379,9 +67379,9 @@ function createSignalEventHandler(deps) {
|
|
|
67379
67379
|
const senderName = envelope.sourceName ?? senderDisplay;
|
|
67380
67380
|
const messageId = typeof envelope.timestamp === "number" ? String(envelope.timestamp) : void 0;
|
|
67381
67381
|
if (bodyText) {
|
|
67382
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
67382
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CVO75pTD.js");
|
|
67383
67383
|
if (isAbortRequestText(bodyText)) {
|
|
67384
|
-
const { resolveAgentRoute } = await import("./resolve-route-
|
|
67384
|
+
const { resolveAgentRoute } = await import("./resolve-route-DuttYY7A.js").then((n) => n.r);
|
|
67385
67385
|
const route = resolveAgentRoute({
|
|
67386
67386
|
cfg: deps.cfg,
|
|
67387
67387
|
channel: "signal",
|
|
@@ -70761,9 +70761,9 @@ function createSlackMessageHandler(params) {
|
|
|
70761
70761
|
if (ctx.markMessageSeen(message.channel, message.ts)) return;
|
|
70762
70762
|
const rawText = (message.text ?? "").trim();
|
|
70763
70763
|
if (rawText) {
|
|
70764
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
70764
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CVO75pTD.js");
|
|
70765
70765
|
if (isAbortRequestText(rawText)) {
|
|
70766
|
-
const { resolveAgentRoute } = await import("./resolve-route-
|
|
70766
|
+
const { resolveAgentRoute } = await import("./resolve-route-DuttYY7A.js").then((n) => n.r);
|
|
70767
70767
|
const route = resolveAgentRoute({
|
|
70768
70768
|
cfg: ctx.cfg,
|
|
70769
70769
|
channel: "slack",
|
|
@@ -70883,7 +70883,7 @@ function readSlackExternalArgMenuToken(raw) {
|
|
|
70883
70883
|
}
|
|
70884
70884
|
let commandsRegistry;
|
|
70885
70885
|
async function getCommandsRegistry() {
|
|
70886
|
-
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-
|
|
70886
|
+
if (!commandsRegistry) commandsRegistry = await import("./commands-registry-j4vAzcF2.js").then((n) => n.n);
|
|
70887
70887
|
return commandsRegistry;
|
|
70888
70888
|
}
|
|
70889
70889
|
function encodeSlackCommandArgValue(parts) {
|
|
@@ -71207,14 +71207,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71207
71207
|
const channelName = channelInfo?.name;
|
|
71208
71208
|
const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
|
|
71209
71209
|
const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
|
|
71210
|
-
import("./resolve-route-
|
|
71210
|
+
import("./resolve-route-DuttYY7A.js").then((n) => n.r),
|
|
71211
71211
|
import("./inbound-context-BYczzTII.js").then((n) => n.n),
|
|
71212
71212
|
Promise.resolve().then(() => provider_dispatcher_exports)
|
|
71213
71213
|
]);
|
|
71214
71214
|
const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordSessionMetaFromInbound, resolveStorePath }] = await Promise.all([
|
|
71215
71215
|
import("./conversation-label-1Wad2kXc.js").then((n) => n.t),
|
|
71216
|
-
import("./reply-prefix-
|
|
71217
|
-
import("./sessions-
|
|
71216
|
+
import("./reply-prefix-BUgeSN2R.js").then((n) => n.n),
|
|
71217
|
+
import("./sessions-3ioSeOA1.js").then((n) => n.t)
|
|
71218
71218
|
]);
|
|
71219
71219
|
const route = resolveAgentRoute({
|
|
71220
71220
|
cfg,
|
|
@@ -71282,9 +71282,9 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71282
71282
|
});
|
|
71283
71283
|
const deliverSlashPayloads = async (replies) => {
|
|
71284
71284
|
const [{ deliverSlackSlashReplies }, { resolveChunkMode }, { resolveMarkdownTableMode }] = await Promise.all([
|
|
71285
|
-
import("./replies-
|
|
71286
|
-
import("./chunk-
|
|
71287
|
-
import("./markdown-tables-
|
|
71285
|
+
import("./replies-6_GxvQYe.js").then((n) => n.r),
|
|
71286
|
+
import("./chunk-CMpX7Jaz.js").then((n) => n.s),
|
|
71287
|
+
import("./markdown-tables-CzsockiZ.js").then((n) => n.t)
|
|
71288
71288
|
]);
|
|
71289
71289
|
await deliverSlackSlashReplies({
|
|
71290
71290
|
replies,
|
|
@@ -71337,7 +71337,7 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
71337
71337
|
let nativeCommands = [];
|
|
71338
71338
|
if (nativeEnabled) {
|
|
71339
71339
|
reg = await getCommandsRegistry();
|
|
71340
|
-
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-
|
|
71340
|
+
const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-Ck3flWX7.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
|
|
71341
71341
|
nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
|
|
71342
71342
|
skillCommands,
|
|
71343
71343
|
provider: "slack"
|
|
@@ -72955,7 +72955,7 @@ const registerTelegramHandlers = ({ cfg, accountId, bot, opts, runtime, mediaMax
|
|
|
72955
72955
|
const { ctx, msg, chatId, resolvedThreadId, storeAllowFrom, sendOversizeWarning, oversizeLogMessage } = params;
|
|
72956
72956
|
const text = typeof msg.text === "string" ? msg.text : void 0;
|
|
72957
72957
|
if (text) {
|
|
72958
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
72958
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CVO75pTD.js");
|
|
72959
72959
|
if (isAbortRequestText(text)) {
|
|
72960
72960
|
const senderId = msg.from?.id ? String(msg.from.id) : "";
|
|
72961
72961
|
if (!senderId || !allowFrom?.length || allowFrom.includes(senderId)) {
|
|
@@ -73842,7 +73842,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
73842
73842
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
73843
73843
|
let preflightTranscript;
|
|
73844
73844
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
73845
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
73845
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CW8IH1lU.js");
|
|
73846
73846
|
preflightTranscript = await transcribeFirstAudio({
|
|
73847
73847
|
ctx: {
|
|
73848
73848
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -76428,23 +76428,23 @@ let webLoginQrPromise = null;
|
|
|
76428
76428
|
let webChannelPromise = null;
|
|
76429
76429
|
let whatsappActionsPromise = null;
|
|
76430
76430
|
function loadWebOutbound() {
|
|
76431
|
-
webOutboundPromise ??= import("./outbound-
|
|
76431
|
+
webOutboundPromise ??= import("./outbound-BNh6PpQb.js").then((n) => n.t);
|
|
76432
76432
|
return webOutboundPromise;
|
|
76433
76433
|
}
|
|
76434
76434
|
function loadWebLogin() {
|
|
76435
|
-
webLoginPromise ??= import("./login-
|
|
76435
|
+
webLoginPromise ??= import("./login-CFr5vJmR.js").then((n) => n.n);
|
|
76436
76436
|
return webLoginPromise;
|
|
76437
76437
|
}
|
|
76438
76438
|
function loadWebLoginQr() {
|
|
76439
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
76439
|
+
webLoginQrPromise ??= import("./login-qr-CFFFOjOl.js");
|
|
76440
76440
|
return webLoginQrPromise;
|
|
76441
76441
|
}
|
|
76442
76442
|
function loadWebChannel() {
|
|
76443
|
-
webChannelPromise ??= import("./web-
|
|
76443
|
+
webChannelPromise ??= import("./web-NzOJcvWO.js");
|
|
76444
76444
|
return webChannelPromise;
|
|
76445
76445
|
}
|
|
76446
76446
|
function loadWhatsAppActions() {
|
|
76447
|
-
whatsappActionsPromise ??= import("./whatsapp-actions-
|
|
76447
|
+
whatsappActionsPromise ??= import("./whatsapp-actions-DbPcN6JQ.js");
|
|
76448
76448
|
return whatsappActionsPromise;
|
|
76449
76449
|
}
|
|
76450
76450
|
function createPluginRuntime() {
|
|
@@ -76674,7 +76674,7 @@ const resolvePluginSdkAliasFile = (params) => {
|
|
|
76674
76674
|
const srcCandidate = path.join(cursor, "src", "plugin-sdk", params.srcFile);
|
|
76675
76675
|
const distCandidate = path.join(cursor, "dist", "plugin-sdk", params.distFile);
|
|
76676
76676
|
const orderedCandidates = isDistRuntime ? [distCandidate, srcCandidate] : isTest ? [distCandidate, srcCandidate] : [distCandidate];
|
|
76677
|
-
for (const candidate of orderedCandidates) if (
|
|
76677
|
+
for (const candidate of orderedCandidates) if (syncFs.existsSync(candidate)) return candidate;
|
|
76678
76678
|
const parent = path.dirname(cursor);
|
|
76679
76679
|
if (parent === cursor) break;
|
|
76680
76680
|
cursor = parent;
|
|
@@ -77012,7 +77012,7 @@ function loadIdleHandsPlugins(options = {}) {
|
|
|
77012
77012
|
continue;
|
|
77013
77013
|
}
|
|
77014
77014
|
const safeSource = opened.path;
|
|
77015
|
-
|
|
77015
|
+
syncFs.closeSync(opened.fd);
|
|
77016
77016
|
let mod = null;
|
|
77017
77017
|
try {
|
|
77018
77018
|
mod = getJiti()(safeSource);
|
|
@@ -77149,7 +77149,7 @@ function loadIdleHandsPlugins(options = {}) {
|
|
|
77149
77149
|
}
|
|
77150
77150
|
function safeRealpathOrResolve(value) {
|
|
77151
77151
|
try {
|
|
77152
|
-
return
|
|
77152
|
+
return syncFs.realpathSync(value);
|
|
77153
77153
|
} catch {
|
|
77154
77154
|
return path.resolve(value);
|
|
77155
77155
|
}
|
|
@@ -77513,9 +77513,9 @@ function resolvePatchFileOps(options) {
|
|
|
77513
77513
|
});
|
|
77514
77514
|
assertBoundaryRead(opened, filePath);
|
|
77515
77515
|
try {
|
|
77516
|
-
return
|
|
77516
|
+
return syncFs.readFileSync(opened.fd, "utf8");
|
|
77517
77517
|
} finally {
|
|
77518
|
-
|
|
77518
|
+
syncFs.closeSync(opened.fd);
|
|
77519
77519
|
}
|
|
77520
77520
|
},
|
|
77521
77521
|
writeFile: async (filePath, content) => {
|
|
@@ -77817,7 +77817,7 @@ async function recordLoopOutcome(args) {
|
|
|
77817
77817
|
if (!args.ctx?.sessionKey) return;
|
|
77818
77818
|
try {
|
|
77819
77819
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-BGF2r-kt.js").then((n) => n.n);
|
|
77820
|
-
const { recordToolCallOutcome } = await import("./tool-loop-detection-
|
|
77820
|
+
const { recordToolCallOutcome } = await import("./tool-loop-detection-BNGetx3Z.js");
|
|
77821
77821
|
recordToolCallOutcome(getDiagnosticSessionState({
|
|
77822
77822
|
sessionKey: args.ctx.sessionKey,
|
|
77823
77823
|
sessionId: args.ctx?.agentId
|
|
@@ -77838,8 +77838,8 @@ async function runBeforeToolCallHook(args) {
|
|
|
77838
77838
|
const params = args.params;
|
|
77839
77839
|
if (args.ctx?.sessionKey) {
|
|
77840
77840
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-BGF2r-kt.js").then((n) => n.n);
|
|
77841
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
77842
|
-
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-
|
|
77841
|
+
const { logToolLoopAction } = await import("./diagnostic-4owMk4vH.js").then((n) => n.n);
|
|
77842
|
+
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-BNGetx3Z.js");
|
|
77843
77843
|
const sessionState = getDiagnosticSessionState({
|
|
77844
77844
|
sessionKey: args.ctx.sessionKey,
|
|
77845
77845
|
sessionId: args.ctx?.agentId
|
|
@@ -80605,8 +80605,8 @@ async function readWorkspaceContextForSummary() {
|
|
|
80605
80605
|
const workspaceDir = process.cwd();
|
|
80606
80606
|
const agentsPath = path.join(workspaceDir, "AGENTS.md");
|
|
80607
80607
|
try {
|
|
80608
|
-
if (!
|
|
80609
|
-
const sections = extractSections(await
|
|
80608
|
+
if (!syncFs.existsSync(agentsPath)) return "";
|
|
80609
|
+
const sections = extractSections(await syncFs.promises.readFile(agentsPath, "utf-8"), ["Session Startup", "Red Lines"]);
|
|
80610
80610
|
if (sections.length === 0) return "";
|
|
80611
80611
|
const combined = sections.join("\n\n");
|
|
80612
80612
|
return `\n\n<workspace-critical-rules>\n${combined.length > MAX_SUMMARY_CONTEXT_CHARS ? combined.slice(0, MAX_SUMMARY_CONTEXT_CHARS) + "\n...[truncated]..." : combined}\n</workspace-critical-rules>`;
|
|
@@ -81974,7 +81974,7 @@ async function compactEmbeddedPiSessionDirect(params) {
|
|
|
81974
81974
|
if (!apiKeyInfo.apiKey) {
|
|
81975
81975
|
if (apiKeyInfo.mode !== "aws-sdk") throw new Error(`No API key resolved for provider "${model.provider}" (auth mode: ${apiKeyInfo.mode}).`);
|
|
81976
81976
|
} else if (model.provider === "github-copilot") {
|
|
81977
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
81977
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-Dgt6cnsM.js").then((n) => n.n);
|
|
81978
81978
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
81979
81979
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
81980
81980
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|
|
@@ -83394,11 +83394,11 @@ function appendRawStream(payload) {
|
|
|
83394
83394
|
if (!rawStreamReady) {
|
|
83395
83395
|
rawStreamReady = true;
|
|
83396
83396
|
try {
|
|
83397
|
-
|
|
83397
|
+
syncFs.mkdirSync(path.dirname(RAW_STREAM_PATH), { recursive: true });
|
|
83398
83398
|
} catch {}
|
|
83399
83399
|
}
|
|
83400
83400
|
try {
|
|
83401
|
-
|
|
83401
|
+
syncFs.promises.appendFile(RAW_STREAM_PATH, `${JSON.stringify(payload)}\n`);
|
|
83402
83402
|
} catch {}
|
|
83403
83403
|
}
|
|
83404
83404
|
|
|
@@ -87001,7 +87001,7 @@ async function runEmbeddedPiAgent(params) {
|
|
|
87001
87001
|
return;
|
|
87002
87002
|
}
|
|
87003
87003
|
if (model.provider === "github-copilot") {
|
|
87004
|
-
const { resolveCopilotApiToken } = await import("./github-copilot-token-
|
|
87004
|
+
const { resolveCopilotApiToken } = await import("./github-copilot-token-Dgt6cnsM.js").then((n) => n.n);
|
|
87005
87005
|
const copilotToken = await resolveCopilotApiToken({ githubToken: apiKeyInfo.apiKey });
|
|
87006
87006
|
authStorage.setRuntimeApiKey(model.provider, copilotToken.token);
|
|
87007
87007
|
} else authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey);
|