@visorcraft/idlehands 4.0.21 → 4.2.0
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-B8cGzkjD.js → accounts-BDVs8LTu.js} +1 -1
- package/dist/{accounts-D5tB_lO0.js → accounts-CIvVRRHb.js} +1 -1
- package/dist/{accounts-BQC_GRUB.js → accounts-Dk8mJIrQ.js} +6 -6
- package/dist/{agent-scope-Bxq1eWbA.js → agent-scope-DyP_tr7s.js} +4 -4
- package/dist/{agent-via-gateway-Cn3iNSod.js → agent-via-gateway-C42kkKZI.js} +7 -7
- package/dist/{agent-via-gateway-DHn8V6v4.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-CUQG6kii.js → agent-via-gateway-oMn0WfUq.js} +1 -1
- 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-CHtoYxr6.js → agents.config-bWtpv0jP.js} +1 -1
- package/dist/{anton-hH1PyE2C.js → anton-CgpWkf5P.js} +32 -17
- package/dist/{anton-Dyz3neEN.js → anton-CoGaJdTU.js} +36 -21
- package/dist/{anton-D4vpCj_q.js → anton-DSS3RNo7.js} +32 -17
- package/dist/{anton-x7f6kIFP.js → anton-DXL8jrY_.js} +32 -17
- package/dist/{audio-preflight-vD3mDc6w.js → audio-preflight-CSSlgO89.js} +4 -4
- package/dist/{audio-preflight-B8qbJcB1.js → audio-preflight-CW8IH1lU.js} +35 -35
- package/dist/{auth-choice-DVoPuwEs.js → auth-choice-BNofPyTK.js} +1 -1
- package/dist/{auth-choice-DRR52LJT.js → auth-choice-Z7nPFxhP.js} +1 -1
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{banner-CFKoGAzN.js → banner-B1-kj-GW.js} +1 -1
- package/dist/{bindings-CLZIJ0Eo.js → bindings-D3b5Fmc9.js} +2 -2
- 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/{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-B4oF7_V2.js → channel-options-CUP3A4VX.js} +1 -1
- package/dist/{channel-web-BDytDCrG.js → channel-web-CGXl1PnB.js} +2 -2
- package/dist/{channel-web-0icuasR6.js → channel-web-CsUiKxQo.js} +2 -2
- package/dist/{channels-cli-DWaQsKP8.js → channels-cli-DK7TRLqX.js} +7 -7
- package/dist/{channels-cli-B2w32z11.js → channels-cli-DmHSajZy.js} +7 -7
- package/dist/{chrome-xahUzIaT.js → chrome-BcJB6PcM.js} +26 -26
- package/dist/{chrome-DEnkfZ9p.js → chrome-Do5potHV.js} +9 -9
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{cli-Hplv9sD1.js → cli-6eMKeewY.js} +2 -2
- package/dist/{cli-BVw2ja-q.js → cli-DEE_ketW.js} +2 -2
- package/dist/{command-registry-CWDCVzZv.js → command-registry-BFTlzx6d.js} +10 -10
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{completion-cli-CjERsZ27.js → completion-cli-BbXgtvGY.js} +2 -2
- package/dist/{completion-cli-f5M3WVf8.js → completion-cli-PBfCNWhv.js} +1 -1
- package/dist/{config-cli-B2gc8CV1.js → config-cli-BVJRkNhX.js} +2 -2
- package/dist/{config-cli-Bt7n6ZJS.js → config-cli-Q934shK6.js} +2 -2
- package/dist/{configure-BXsptBk3.js → configure-85ttW_lD.js} +3 -3
- package/dist/{configure-CKspMrI1.js → configure-BGAvA5a4.js} +3 -3
- package/dist/{deliver-CIFO6sel.js → deliver-BUiQ-9fE.js} +20 -20
- package/dist/{deliver-5FLCa6tB.js → deliver-whAbSPLk.js} +1 -1
- package/dist/{deps-CjWcQwlX.js → deps-AEDT3iDX.js} +1 -1
- package/dist/{deps-DwTILPLD.js → deps-B4J8H6nI.js} +6 -6
- package/dist/{deps-CwPrf7RC.js → deps-Bq7jJLyN.js} +1 -1
- package/dist/{deps-BbipxGPW.js → deps-Ch6bZ8PI.js} +1 -1
- package/dist/{diagnostic-BvlZ0Sot.js → diagnostic-4owMk4vH.js} +1 -1
- package/dist/{dock-ejUetwTC.js → dock-BgOmHcbh.js} +6 -6
- package/dist/{doctor-completion-C2-SDBd6.js → doctor-completion-CN5Zujsa.js} +1 -1
- package/dist/{doctor-completion-DB151YdP.js → doctor-completion-Clh5CNUd.js} +1 -1
- package/dist/{emergency-stop-Lj33jqJJ.js → emergency-stop-2v4bhRCE.js} +7 -7
- package/dist/{emergency-stop-DpNGtfb4.js → emergency-stop-BtasjDnU.js} +2 -2
- package/dist/emergency-stop-CVO75pTD.js +113 -0
- package/dist/{emergency-stop-CDozqde9.js → emergency-stop-D_bTOufu.js} +2 -2
- 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/extensionAPI.js +7 -7
- 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/{gateway-cli-Ccd1ukWq.js → gateway-cli-Cl7cEsHE.js} +10 -10
- package/dist/{gateway-cli-lNUOd2_i.js → gateway-cli-DJm73Wou.js} +10 -10
- 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--GQAFTBr.js → health-C6_Sa_ef.js} +1 -1
- 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-Di8qrzIB.js → hooks-cli-BC3n8UYQ.js} +3 -3
- package/dist/{image-C_aN5P6-.js → image-BAsQlUqT.js} +1 -1
- package/dist/{image-D9D-lzCw.js → image-D8b_rlQC.js} +6 -6
- package/dist/{image-ops-J8P5zOFm.js → image-ops-D1KtygWz.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{ir-BT5aAdU9.js → ir-B7IBoKLy.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/{login-C2X0In6m.js → login-CFr5vJmR.js} +6 -6
- package/dist/{login-qr-C17PY0rr.js → login-qr-CFFFOjOl.js} +11 -11
- package/dist/{manager-CgzA1hKo.js → manager-BE_76jWB.js} +15 -15
- package/dist/{markdown-tables-R8VTpfE9.js → markdown-tables-CzsockiZ.js} +1 -1
- package/dist/{message-channel-ZdI1-uUh.js → message-channel-C8QtrwEU.js} +1 -1
- 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-CMwszgSD.js → models-cli-B9yw60gV.js} +3 -3
- package/dist/{models-cli-DVAyIZ63.js → models-cli-Bs5ZNSbk.js} +4 -4
- package/dist/{npm-resolution-DLSA4PTO.js → npm-resolution-BMDipaRX.js} +1 -1
- package/dist/{npm-resolution-By6bZkA-.js → npm-resolution-yXJbqHHn.js} +1 -1
- package/dist/{onboard-B6eOxpDM.js → onboard-CYRoDnOI.js} +2 -2
- package/dist/{onboard-CbXlbAx2.js → onboard-DjbHK18p.js} +2 -2
- package/dist/{onboard-channels-BISq46-i.js → onboard-channels-CNQt2jFU.js} +1 -1
- package/dist/{onboard-channels-JPltbNGL.js → onboard-channels-CkxvodmR.js} +1 -1
- package/dist/{onboarding-DikyMlYG.js → onboarding-BEDOWI9h.js} +3 -3
- package/dist/{onboarding-Da3n7Rvs.js → onboarding-D9AZJlDK.js} +3 -3
- package/dist/{onboarding.finalize-CwYx5n3Z.js → onboarding.finalize-D4hW1yTd.js} +7 -7
- package/dist/{onboarding.finalize-Bp2ufMd0.js → onboarding.finalize-DJxMkD2g.js} +6 -6
- package/dist/{outbound-CdY_AskB.js → outbound-BNh6PpQb.js} +6 -6
- package/dist/{outbound-attachment-IfeZJAKk.js → outbound-attachment-3I6GzwDe.js} +2 -2
- package/dist/{path-alias-guards-BZmt6hFb.js → path-alias-guards-Cu1nXNMM.js} +1 -1
- 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-k2mZJOsr.js → pi-embedded-C6RDRgJM.js} +184 -184
- package/dist/{pi-embedded-helpers-CUoUoEEN.js → pi-embedded-helpers-CghCLoPo.js} +24 -24
- package/dist/{pi-embedded-helpers-C2j0LfJC.js → pi-embedded-helpers-Ct2rwp-P.js} +4 -4
- package/dist/{pi-embedded-Bc4KWuTe.js → pi-embedded-o6Xj8V4C.js} +26 -26
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/{plugin-registry-BY85d-vE.js → plugin-registry-6C1sgAm1.js} +1 -1
- package/dist/{plugin-registry-DROWinG6.js → plugin-registry-DIK-5KI9.js} +1 -1
- 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-cli-b_o3IL7x.js → plugins-cli-B1kN2Xze.js} +3 -3
- package/dist/{plugins-cli-RFXGkaxP.js → plugins-cli-DFUxLQbB.js} +3 -3
- package/dist/{program-context-D6irLwPo.js → program-context-CjyGlgVG.js} +18 -18
- package/dist/{program-vH6RTUOw.js → program-mmjp27H4.js} +8 -8
- package/dist/{prompt-select-styled-DFVvU0TH.js → prompt-select-styled-04TKk_r3.js} +4 -4
- package/dist/{prompt-select-styled-CDoDFWo7.js → prompt-select-styled-FskTiqWw.js} +4 -4
- package/dist/{provider-auth-helpers-BCc5UtUa.js → provider-auth-helpers-9IcvdTst.js} +1 -1
- package/dist/{provider-auth-helpers-CNRz0SFC.js → provider-auth-helpers-BI7MVWjD.js} +1 -1
- package/dist/{push-apns-CHmvuoMu.js → push-apns-Bh0u21Bh.js} +1 -1
- package/dist/{push-apns-e2xmxGGE.js → push-apns-DvSYSWvk.js} +1 -1
- package/dist/{pw-ai-CnvVtt_s.js → pw-ai-CfYaR1K2.js} +13 -13
- package/dist/{pw-ai-DjmrIQle.js → pw-ai-yrIWfcWX.js} +1 -1
- package/dist/{qmd-manager-BRvg3Rx2.js → qmd-manager-B_GgyQQ0.js} +8 -8
- 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-BBNDQZIe.js → redact-snapshot-BbEVKv0k.js} +14 -0
- package/dist/{redact-snapshot-Cc8Brktr.js → redact-snapshot-K5EFkIbD.js} +14 -0
- package/dist/{register.agent-Dx7ULz49.js → register.agent-B3zUfhl9.js} +9 -9
- package/dist/{register.agent-HWcFMr6h.js → register.agent-BSe92Zxh.js} +8 -8
- package/dist/{register.configure-k8gocsJw.js → register.configure-DZ9OCp0V.js} +8 -8
- package/dist/{register.configure-BctHAiWh.js → register.configure-N4JG5hVe.js} +8 -8
- package/dist/{register.maintenance-BYiX9iOa.js → register.maintenance-BjhkxF3o.js} +9 -9
- package/dist/{register.maintenance-C6o2WuQx.js → register.maintenance-DxauQqK_.js} +8 -8
- package/dist/{register.message-BewFLd-k.js → register.message-BsMpRFVr.js} +3 -3
- package/dist/{register.message-BLScF2fV.js → register.message-DoZ5i1Pn.js} +3 -3
- package/dist/{register.onboard-BVm-2XAx.js → register.onboard-Cw3wNQRm.js} +2 -2
- package/dist/{register.onboard-a0kqiCTa.js → register.onboard-Hxi3l9IA.js} +2 -2
- package/dist/{register.orchestrator-anton-BYyjV8R-.js → register.orchestrator-anton-BqQfw2JX.js} +2 -2
- package/dist/{register.orchestrator-anton-Tn_RaMLq.js → register.orchestrator-anton-DOByOKzU.js} +2 -2
- package/dist/{register.setup-BwPJaqpH.js → register.setup-dazD7bl3.js} +2 -2
- package/dist/{register.setup-BJ0WBUpt.js → register.setup-r5Xy4nv4.js} +2 -2
- package/dist/{register.status-health-sessions-Clzt8hbv.js → register.status-health-sessions-3zjBM0m6.js} +4 -4
- package/dist/{register.status-health-sessions-wbopjGL-.js → register.status-health-sessions-DobZ2G2u.js} +4 -4
- package/dist/{register.subclis-CrcOefJY.js → register.subclis-CGJxYP3h.js} +9 -9
- package/dist/{replies-2C16fnBP.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{reply-D5gCiiGr.js → reply-BDr-UY9O.js} +11 -11
- package/dist/{reply-prefix-DCljZiIB.js → reply-prefix-BUgeSN2R.js} +1 -1
- package/dist/{resolve-route-ClcifpKn.js → resolve-route-DuttYY7A.js} +4 -4
- package/dist/{retry-CG6cMRDQ.js → retry-BeB9WenR.js} +1 -1
- package/dist/{run-main-BCX3UZMR.js → run-main-BDEztzfx.js} +15 -15
- package/dist/{runner-CZW_eyf2.js → runner-Bv_BA3vd.js} +1 -1
- package/dist/{runner-DjDddZhb.js → runner-PgRFPYUj.js} +11 -11
- package/dist/{send-DZa8fWSm.js → send-BeIZJuy4.js} +7 -7
- package/dist/{send-Y1hD4tQ1.js → send-C1hvd3bt.js} +6 -6
- package/dist/{send-BOxJ4QXF.js → send-D4bMycQu.js} +7 -7
- package/dist/{send-FLdrx-oF.js → send-Dfa3sn6r.js} +24 -24
- package/dist/{send-IlPMLAH-.js → send-DmLC7aEF.js} +10 -10
- package/dist/{server-node-events-CbVkqOtV.js → server-node-events-BL1dTBEr.js} +3 -3
- package/dist/{server-node-events-DvStFPGi.js → server-node-events-C69TPlKW.js} +3 -3
- package/dist/{session-nUPBXeEa.js → session-F_YDS_1V.js} +7 -7
- package/dist/{sessions-DRA4oaxz.js → sessions-3ioSeOA1.js} +41 -41
- package/dist/{skill-commands-BHTBXXVn.js → skill-commands-Ck3flWX7.js} +9 -9
- package/dist/{skills-umlGvChF.js → skills-CnAPWfca.js} +22 -22
- package/dist/{status-ClMOrHdT.js → status-AEwcpHsu.js} +2 -2
- package/dist/{status-CWnPokQF.js → status-B8z0RCPf.js} +2 -2
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- 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/{tables-Co_R_WKs.js → tables-5k-zOZ-s.js} +1 -1
- package/dist/{target-errors-B1mcM4WR.js → target-errors-BPfQrPim.js} +2 -2
- package/dist/{tokens-DGajj8M9.js → tokens-BRLyURxW.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/{update-cli-BTNcddEX.js → update-cli-8Tk6PCmD.js} +8 -8
- package/dist/{update-cli-CxZD0ekr.js → update-cli-Bobm67f-.js} +9 -9
- package/dist/{update-runner-CN7Dm9tg.js → update-runner-B4xzPa4-.js} +1 -1
- package/dist/{update-runner-tu2Aiphu.js → update-runner-C4NjVy9-.js} +1 -1
- 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-DiqHxfw7.js → web-DPSpgc_K.js} +8 -8
- package/dist/{web-BV-BEZj6.js → web-Dqy4kqC9.js} +3 -3
- package/dist/{web-t3fXJTeB.js → web-NzOJcvWO.js} +66 -66
- package/dist/{whatsapp-actions-BJ6kVDXi.js → whatsapp-actions-DbPcN6JQ.js} +25 -25
- package/dist/{workspace-tAtkoD_r.js → workspace-DBFSzT6O.js} +18 -18
- 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/emergency-stop-C2sJ4lsk.js +0 -113
|
@@ -225,7 +225,7 @@ async function loadAntonConfig() {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
async function runAgentTask(args) {
|
|
228
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
228
|
+
const { agentCliCommand } = await import("./agent-via-gateway-oMn0WfUq.js").then((n) => n.n);
|
|
229
229
|
const extraSystemPrompt = args.workspaceDir ? `Your working directory is: ${args.workspaceDir}\nAll file paths are relative to this directory. Use this as your cwd for all operations.` : void 0;
|
|
230
230
|
const result = await agentCliCommand({
|
|
231
231
|
message: args.message,
|
|
@@ -345,6 +345,11 @@ async function tryPersistPlanFallback(params) {
|
|
|
345
345
|
await fs.writeFile(params.planFile, `${planText}\n`, "utf8");
|
|
346
346
|
return await isPlanFileValid(params.planFile);
|
|
347
347
|
}
|
|
348
|
+
async function writeDeterministicPlanFallback(params) {
|
|
349
|
+
const plan = `# Task\n\n${params.taskText}\n\n## What needs to change\n- Implement the task exactly as described in the checklist item.\n- Keep changes scoped to files directly related to this task.\n\n## Implementation approach\n1. Inspect existing CI/workflow/config files relevant to this task.\n2. Apply minimal edits needed to satisfy the task requirements.\n3. Keep behavior/style consistent with adjacent repository conventions.\n\n## Files to modify\n- Determine from ${params.taskFile} and related source/config files.\n\n## Verification\n- Run targeted tests for touched areas.\n- Run repository checks required by this project (for example: pnpm test / pnpm check) as appropriate.\n- Confirm git diff contains only task-relevant changes.\n`;
|
|
350
|
+
await fs.writeFile(params.planFile, plan, "utf8");
|
|
351
|
+
return await isPlanFileValid(params.planFile);
|
|
352
|
+
}
|
|
348
353
|
async function runDiscoveryPhase(args) {
|
|
349
354
|
const planFile = makePlanFilePath(args.planDir, args.taskNum);
|
|
350
355
|
await ensurePlanDir(args.planDir);
|
|
@@ -402,22 +407,28 @@ async function runDiscoveryPhase(args) {
|
|
|
402
407
|
planFile: declaredPlanFile
|
|
403
408
|
};
|
|
404
409
|
}
|
|
405
|
-
if ((firstParsed?.status ?? "").toLowerCase() === "incomplete"
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
await
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
410
|
+
if ((firstParsed?.status ?? "").toLowerCase() === "incomplete") {
|
|
411
|
+
if (await tryPersistPlanFallback({
|
|
412
|
+
planFile: declaredPlanFile,
|
|
413
|
+
parsed: firstParsed,
|
|
414
|
+
rawText: firstPass.text
|
|
415
|
+
}) || await writeDeterministicPlanFallback({
|
|
416
|
+
planFile: declaredPlanFile,
|
|
417
|
+
taskText: args.task.text,
|
|
418
|
+
taskFile: args.taskFile
|
|
419
|
+
})) {
|
|
420
|
+
await args.notify({
|
|
421
|
+
phase: "discovery_complete",
|
|
422
|
+
index: args.taskNum,
|
|
423
|
+
total: args.total,
|
|
424
|
+
task: args.task.text,
|
|
425
|
+
planFile: declaredPlanFile
|
|
426
|
+
});
|
|
427
|
+
return {
|
|
428
|
+
status: "plan_ready",
|
|
429
|
+
planFile: declaredPlanFile
|
|
430
|
+
};
|
|
431
|
+
}
|
|
421
432
|
}
|
|
422
433
|
const repairSessionId = `anton-discovery-repair-${Date.now()}-${args.taskNum}-${attempt}`;
|
|
423
434
|
await args.notify({
|
|
@@ -456,6 +467,10 @@ async function runDiscoveryPhase(args) {
|
|
|
456
467
|
planFile: repairPlanFile,
|
|
457
468
|
parsed: repairParsed,
|
|
458
469
|
rawText: repairPass.text
|
|
470
|
+
}) || (repairParsed?.status ?? "").toLowerCase() === "incomplete" && await writeDeterministicPlanFallback({
|
|
471
|
+
planFile: repairPlanFile,
|
|
472
|
+
taskText: args.task.text,
|
|
473
|
+
taskFile: args.taskFile
|
|
459
474
|
})) {
|
|
460
475
|
await args.notify({
|
|
461
476
|
phase: "discovery_complete",
|
|
@@ -15,8 +15,8 @@ import "./accounts-BRVjft5i.js";
|
|
|
15
15
|
import "./image-ops-BDG-MYYV.js";
|
|
16
16
|
import "./pi-model-discovery-Dic-M5qw.js";
|
|
17
17
|
import "./message-channel-DqqfOIdx.js";
|
|
18
|
-
import "./pi-embedded-helpers-
|
|
19
|
-
import "./chrome-
|
|
18
|
+
import "./pi-embedded-helpers-Ct2rwp-P.js";
|
|
19
|
+
import "./chrome-Do5potHV.js";
|
|
20
20
|
import "./ssrf-DappnhDp.js";
|
|
21
21
|
import "./skills-nQcWk6Z6.js";
|
|
22
22
|
import "./path-alias-guards-CGbCFqW8.js";
|
|
@@ -29,11 +29,11 @@ import "./accounts-CBoBCTgA.js";
|
|
|
29
29
|
import "./paths-vOrMwCEQ.js";
|
|
30
30
|
import "./tool-images-CpZSs-zE.js";
|
|
31
31
|
import "./thinking-BFsWfunr.js";
|
|
32
|
-
import "./image-
|
|
32
|
+
import "./image-BAsQlUqT.js";
|
|
33
33
|
import "./gemini-auth-m2hi6OmF.js";
|
|
34
34
|
import "./fetch-guard-BdCPmLBP.js";
|
|
35
35
|
import "./local-roots-BnWzOrXv.js";
|
|
36
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
36
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-Bv_BA3vd.js";
|
|
37
37
|
|
|
38
38
|
//#region src/media-understanding/audio-preflight.ts
|
|
39
39
|
/**
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import { A as shouldLogVerbose, D as logVerbose } from "./utils-
|
|
1
|
+
import "./agent-scope-DyP_tr7s.js";
|
|
2
|
+
import "./paths-BYNVLNi_.js";
|
|
3
|
+
import "./subsystem-tzu-rIAJ.js";
|
|
4
|
+
import { A as shouldLogVerbose, D as logVerbose } from "./utils-CTFLl_ji.js";
|
|
5
5
|
import "./runtime-8mi3mpYB.js";
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import "./github-copilot-token-
|
|
6
|
+
import "./workspace-DBFSzT6O.js";
|
|
7
|
+
import "./model-selection-1MMYqY6M.js";
|
|
8
|
+
import "./github-copilot-token-Dgt6cnsM.js";
|
|
9
9
|
import "./boolean-CE7i9tBR.js";
|
|
10
|
-
import "./env-
|
|
11
|
-
import "./dock-
|
|
12
|
-
import "./plugins-
|
|
13
|
-
import "./accounts-
|
|
14
|
-
import "./bindings-
|
|
15
|
-
import "./auth-store-
|
|
16
|
-
import "./accounts-
|
|
17
|
-
import "./image-ops-
|
|
18
|
-
import "./pi-model-discovery-
|
|
19
|
-
import "./message-channel-
|
|
20
|
-
import "./pi-embedded-helpers-
|
|
21
|
-
import "./chrome-
|
|
10
|
+
import "./env-B5G1qwGc.js";
|
|
11
|
+
import "./dock-BgOmHcbh.js";
|
|
12
|
+
import "./plugins-CRB60mCJ.js";
|
|
13
|
+
import "./accounts-Dk8mJIrQ.js";
|
|
14
|
+
import "./bindings-D3b5Fmc9.js";
|
|
15
|
+
import "./auth-store-DXT-l7fO.js";
|
|
16
|
+
import "./accounts-BDVs8LTu.js";
|
|
17
|
+
import "./image-ops-D1KtygWz.js";
|
|
18
|
+
import "./pi-model-discovery-Bb__OY-j.js";
|
|
19
|
+
import "./message-channel-C8QtrwEU.js";
|
|
20
|
+
import "./pi-embedded-helpers-CghCLoPo.js";
|
|
21
|
+
import "./chrome-BcJB6PcM.js";
|
|
22
22
|
import "./ssrf-CZeHDwVZ.js";
|
|
23
|
-
import "./frontmatter-
|
|
24
|
-
import "./skills-
|
|
25
|
-
import "./path-alias-guards-
|
|
26
|
-
import "./redact-
|
|
27
|
-
import "./errors-
|
|
28
|
-
import "./fs-safe-
|
|
29
|
-
import "./store-
|
|
30
|
-
import "./sessions-
|
|
31
|
-
import "./accounts-
|
|
32
|
-
import "./paths-
|
|
33
|
-
import "./tool-images-
|
|
23
|
+
import "./frontmatter-BOudmHMS.js";
|
|
24
|
+
import "./skills-CnAPWfca.js";
|
|
25
|
+
import "./path-alias-guards-Cu1nXNMM.js";
|
|
26
|
+
import "./redact-Bvpf-ATQ.js";
|
|
27
|
+
import "./errors-C_0nm4TJ.js";
|
|
28
|
+
import "./fs-safe-CYUaAFO9.js";
|
|
29
|
+
import "./store-CvMgrKWx.js";
|
|
30
|
+
import "./sessions-3ioSeOA1.js";
|
|
31
|
+
import "./accounts-CIvVRRHb.js";
|
|
32
|
+
import "./paths-D_qUel1T.js";
|
|
33
|
+
import "./tool-images-CcGZpzmq.js";
|
|
34
34
|
import "./thinking-z4_linel.js";
|
|
35
|
-
import "./image-
|
|
36
|
-
import "./gemini-auth-
|
|
37
|
-
import "./fetch-guard-
|
|
38
|
-
import "./local-roots-
|
|
39
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
35
|
+
import "./image-D8b_rlQC.js";
|
|
36
|
+
import "./gemini-auth-CIyaa44H.js";
|
|
37
|
+
import "./fetch-guard-iuQsIjqN.js";
|
|
38
|
+
import "./local-roots-KN4Hp1yZ.js";
|
|
39
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-PgRFPYUj.js";
|
|
40
40
|
|
|
41
41
|
//#region src/media-understanding/audio-preflight.ts
|
|
42
42
|
/**
|
|
@@ -6,7 +6,7 @@ import { n as loadModelCatalog } from "./model-catalog-DYWymzg_.js";
|
|
|
6
6
|
import { f as openUrl } from "./onboard-helpers-DWivfzcc.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-CMXupNXl.js";
|
|
8
8
|
import { $ as ZAI_DEFAULT_MODEL_REF, A as applyTogetherConfig, B as applyLitellmConfig, C as applyMoonshotProviderConfigCn, Ct as writeOAuthCredentials, D as applyQianfanProviderConfig, Dt as QIANFAN_DEFAULT_MODEL_REF, E as applyQianfanConfig, Et as MOONSHOT_DEFAULT_MODEL_REF, F as applyXaiProviderConfig, G as applyVercelAiGatewayProviderConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, J as LITELLM_DEFAULT_MODEL_REF, K as applyAgentDefaultModelPrimary, L as applyXiaomiProviderConfig, M as applyVeniceConfig, N as applyVeniceProviderConfig, O as applySyntheticConfig, Ot as XAI_DEFAULT_MODEL_REF, P as applyXaiConfig, Q as XIAOMI_DEFAULT_MODEL_REF, R as applyZaiConfig, S as applyMoonshotProviderConfig, St as setZaiApiKey, T as applyOpenrouterProviderConfig, Tt as MISTRAL_DEFAULT_MODEL_REF, U as applyCloudflareAiGatewayProviderConfig, V as applyLitellmProviderConfig, W as applyVercelAiGatewayConfig, X as TOGETHER_DEFAULT_MODEL_REF, Y as OPENROUTER_DEFAULT_MODEL_REF, Z as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, _ as applyKimiCodeProviderConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, c as applyMinimaxApiProviderConfigCn, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, h as applyKilocodeProviderConfig, ht as setSyntheticApiKey, i as applyOpencodeZenProviderConfig, it as setHuggingfaceApiKey, j as applyTogetherProviderConfig, k as applySyntheticProviderConfig, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, p as applyHuggingfaceProviderConfig, pt as setOpenrouterApiKey, q as HUGGINGFACE_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setGeminiApiKey, s as applyMinimaxApiProviderConfig, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, u as applyMinimaxProviderConfig, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, wt as KIMI_CODING_MODEL_REF, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, y as applyMistralProviderConfig, yt as setVolcengineApiKey, z as applyZaiProviderConfig } from "./auth-token-BQ_ECwH7.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-9IcvdTst.js";
|
|
10
10
|
import { a as ensureApiKeyFromOptionEnvOrPrompt, c as applyDefaultModelChoice, d as validateApiKeyInput, l as ensureModelAllowlistEntry, n as createAuthChoiceDefaultModelApplier, o as normalizeSecretInputModeInput, r as createAuthChoiceModelStateBridge, s as normalizeTokenProviderInput, t as createAuthChoiceAgentModelNoter, u as normalizeApiKeyInput } from "./auth-choice.apply-helpers-Bj-Y-Sar.js";
|
|
11
11
|
import { a as GOOGLE_GEMINI_DEFAULT_MODEL, i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault, r as applyOpenAIProviderConfig, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-DTIibBxa.js";
|
|
12
12
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-D_yngXMe.js";
|
|
@@ -6,7 +6,7 @@ import { n as loadModelCatalog } from "./model-catalog-D9no0CH2.js";
|
|
|
6
6
|
import { f as openUrl } from "./onboard-helpers-mzy38DiC.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-o_s6PBsC.js";
|
|
8
8
|
import { $ as ZAI_DEFAULT_MODEL_REF, A as applyTogetherConfig, B as applyLitellmConfig, C as applyMoonshotProviderConfigCn, Ct as writeOAuthCredentials, D as applyQianfanProviderConfig, Dt as QIANFAN_DEFAULT_MODEL_REF, E as applyQianfanConfig, Et as MOONSHOT_DEFAULT_MODEL_REF, F as applyXaiProviderConfig, G as applyVercelAiGatewayProviderConfig, H as applyCloudflareAiGatewayConfig, I as applyXiaomiConfig, J as LITELLM_DEFAULT_MODEL_REF, K as applyAgentDefaultModelPrimary, L as applyXiaomiProviderConfig, M as applyVeniceConfig, N as applyVeniceProviderConfig, O as applySyntheticConfig, Ot as XAI_DEFAULT_MODEL_REF, P as applyXaiConfig, Q as XIAOMI_DEFAULT_MODEL_REF, R as applyZaiConfig, S as applyMoonshotProviderConfig, St as setZaiApiKey, T as applyOpenrouterProviderConfig, Tt as MISTRAL_DEFAULT_MODEL_REF, U as applyCloudflareAiGatewayProviderConfig, V as applyLitellmProviderConfig, W as applyVercelAiGatewayConfig, X as TOGETHER_DEFAULT_MODEL_REF, Y as OPENROUTER_DEFAULT_MODEL_REF, Z as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, _ as applyKimiCodeProviderConfig, _t as setVeniceApiKey, a as applyMinimaxApiConfig, at as setKilocodeApiKey, b as applyMoonshotConfig, bt as setXaiApiKey, c as applyMinimaxApiProviderConfigCn, ct as setMinimaxApiKey, d as applyAuthProfileConfig, dt as setOpenaiApiKey, et as setAnthropicApiKey, ft as setOpencodeZenApiKey, g as applyKimiCodeConfig, gt as setTogetherApiKey, h as applyKilocodeProviderConfig, ht as setSyntheticApiKey, i as applyOpencodeZenProviderConfig, it as setHuggingfaceApiKey, j as applyTogetherProviderConfig, k as applySyntheticProviderConfig, l as applyMinimaxConfig, lt as setMistralApiKey, m as applyKilocodeConfig, mt as setQianfanApiKey, n as validateAnthropicSetupToken, nt as setCloudflareAiGatewayConfig, o as applyMinimaxApiConfigCn, ot as setKimiCodingApiKey, p as applyHuggingfaceProviderConfig, pt as setOpenrouterApiKey, q as HUGGINGFACE_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setGeminiApiKey, s as applyMinimaxApiProviderConfig, st as setLitellmApiKey, t as buildTokenProfileId, tt as setByteplusApiKey, u as applyMinimaxProviderConfig, ut as setMoonshotApiKey, v as applyMistralConfig, vt as setVercelAiGatewayApiKey, w as applyOpenrouterConfig, wt as KIMI_CODING_MODEL_REF, x as applyMoonshotConfigCn, xt as setXiaomiApiKey, y as applyMistralProviderConfig, yt as setVolcengineApiKey, z as applyZaiProviderConfig } from "./auth-token-BJq87X3o.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-BI7MVWjD.js";
|
|
10
10
|
import { a as ensureApiKeyFromOptionEnvOrPrompt, c as applyDefaultModelChoice, d as validateApiKeyInput, l as ensureModelAllowlistEntry, n as createAuthChoiceDefaultModelApplier, o as normalizeSecretInputModeInput, r as createAuthChoiceModelStateBridge, s as normalizeTokenProviderInput, t as createAuthChoiceAgentModelNoter, u as normalizeApiKeyInput } from "./auth-choice.apply-helpers-CGcniL1T.js";
|
|
11
11
|
import { a as GOOGLE_GEMINI_DEFAULT_MODEL, i as detectZaiEndpoint, n as applyOpenAIConfig, o as applyGoogleGeminiModelDefault, r as applyOpenAIProviderConfig, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-7J6cw1rA.js";
|
|
12
12
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-BkXoTOiA.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { I as getChildLogger, T as info, h as resolveUserPath, j as success, u as jidToE164 } from "./utils-
|
|
1
|
+
import { l as resolveOAuthDir } from "./paths-BYNVLNi_.js";
|
|
2
|
+
import { I as getChildLogger, T as info, h as resolveUserPath, j as success, u as jidToE164 } from "./utils-CTFLl_ji.js";
|
|
3
3
|
import { n as defaultRuntime } from "./runtime-8mi3mpYB.js";
|
|
4
4
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-CuLPSMu_.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import syncFs from "node:fs";
|
|
9
9
|
|
|
10
10
|
//#region src/web/auth-store.ts
|
|
11
11
|
function resolveDefaultWebAuthDir() {
|
|
@@ -20,7 +20,7 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
20
20
|
}
|
|
21
21
|
function hasWebCredsSync(authDir) {
|
|
22
22
|
try {
|
|
23
|
-
const stats =
|
|
23
|
+
const stats = syncFs.statSync(resolveWebCredsPath(authDir));
|
|
24
24
|
return stats.isFile() && stats.size > 1;
|
|
25
25
|
} catch {
|
|
26
26
|
return false;
|
|
@@ -28,10 +28,10 @@ function hasWebCredsSync(authDir) {
|
|
|
28
28
|
}
|
|
29
29
|
function readCredsJsonRaw(filePath) {
|
|
30
30
|
try {
|
|
31
|
-
if (!
|
|
32
|
-
const stats =
|
|
31
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
32
|
+
const stats = syncFs.statSync(filePath);
|
|
33
33
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
34
|
-
return
|
|
34
|
+
return syncFs.readFileSync(filePath, "utf-8");
|
|
35
35
|
} catch {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
@@ -49,9 +49,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
49
49
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
50
50
|
if (!backupRaw) return;
|
|
51
51
|
JSON.parse(backupRaw);
|
|
52
|
-
|
|
52
|
+
syncFs.copyFileSync(backupPath, credsPath);
|
|
53
53
|
try {
|
|
54
|
-
|
|
54
|
+
syncFs.chmodSync(credsPath, 384);
|
|
55
55
|
} catch {}
|
|
56
56
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
57
57
|
} catch {}
|
|
@@ -107,11 +107,11 @@ async function logoutWeb(params) {
|
|
|
107
107
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
108
108
|
try {
|
|
109
109
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
110
|
-
if (!
|
|
110
|
+
if (!syncFs.existsSync(credsPath)) return {
|
|
111
111
|
e164: null,
|
|
112
112
|
jid: null
|
|
113
113
|
};
|
|
114
|
-
const raw =
|
|
114
|
+
const raw = syncFs.readFileSync(credsPath, "utf-8");
|
|
115
115
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
116
116
|
return {
|
|
117
117
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -130,7 +130,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
130
130
|
*/
|
|
131
131
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
132
132
|
try {
|
|
133
|
-
const stats =
|
|
133
|
+
const stats = syncFs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
134
134
|
return Date.now() - stats.mtimeMs;
|
|
135
135
|
} catch {
|
|
136
136
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { St as theme, g as visibleWidth, sn as hasRootVersionAlias, xt as isRich } from "./entry.js";
|
|
2
|
-
import { Tn as resolveCommitHash } from "./subagent-registry-
|
|
2
|
+
import { Tn as resolveCommitHash } from "./subagent-registry-Dclk-Ews.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/tagline.ts
|
|
5
5
|
const DEFAULT_TAGLINE = "All your chats, one IdleHands.";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
-
import { c as normalizeChatChannelId } from "./subsystem-
|
|
1
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-DyP_tr7s.js";
|
|
2
|
+
import { c as normalizeChatChannelId } from "./subsystem-tzu-rIAJ.js";
|
|
3
3
|
import { p as normalizeAccountId, s as normalizeAgentId } from "./session-key-CuLPSMu_.js";
|
|
4
4
|
|
|
5
5
|
//#region src/routing/bindings.ts
|
package/dist/build-info.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "../../agent-scope-
|
|
2
|
-
import "../../paths-
|
|
3
|
-
import { S as isGatewayStartupEvent, t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import "../../utils-
|
|
1
|
+
import { n as listAgentIds, s as resolveAgentWorkspaceDir } from "../../agent-scope-DyP_tr7s.js";
|
|
2
|
+
import "../../paths-BYNVLNi_.js";
|
|
3
|
+
import { S as isGatewayStartupEvent, t as createSubsystemLogger } from "../../subsystem-tzu-rIAJ.js";
|
|
4
|
+
import "../../utils-CTFLl_ji.js";
|
|
5
5
|
import { n as defaultRuntime } from "../../runtime-8mi3mpYB.js";
|
|
6
6
|
import { l as resolveAgentIdFromSessionKey } from "../../session-key-CuLPSMu_.js";
|
|
7
|
-
import "../../workspace-
|
|
8
|
-
import "../../model-selection-
|
|
9
|
-
import "../../github-copilot-token-
|
|
7
|
+
import "../../workspace-DBFSzT6O.js";
|
|
8
|
+
import "../../model-selection-1MMYqY6M.js";
|
|
9
|
+
import "../../github-copilot-token-Dgt6cnsM.js";
|
|
10
10
|
import "../../boolean-CE7i9tBR.js";
|
|
11
|
-
import "../../env-
|
|
12
|
-
import "../../dock-
|
|
13
|
-
import { n as SILENT_REPLY_TOKEN } from "../../tokens-
|
|
14
|
-
import { a as agentCommand } from "../../pi-embedded-
|
|
15
|
-
import "../../plugins-
|
|
16
|
-
import "../../accounts-
|
|
17
|
-
import "../../bindings-
|
|
18
|
-
import "../../auth-store-
|
|
19
|
-
import "../../send-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../deliver-
|
|
22
|
-
import "../../diagnostic-
|
|
11
|
+
import "../../env-B5G1qwGc.js";
|
|
12
|
+
import "../../dock-BgOmHcbh.js";
|
|
13
|
+
import { n as SILENT_REPLY_TOKEN } from "../../tokens-BRLyURxW.js";
|
|
14
|
+
import { a as agentCommand } from "../../pi-embedded-C6RDRgJM.js";
|
|
15
|
+
import "../../plugins-CRB60mCJ.js";
|
|
16
|
+
import "../../accounts-Dk8mJIrQ.js";
|
|
17
|
+
import "../../bindings-D3b5Fmc9.js";
|
|
18
|
+
import "../../auth-store-DXT-l7fO.js";
|
|
19
|
+
import "../../send-BeIZJuy4.js";
|
|
20
|
+
import "../../send-DmLC7aEF.js";
|
|
21
|
+
import "../../deliver-BUiQ-9fE.js";
|
|
22
|
+
import "../../diagnostic-4owMk4vH.js";
|
|
23
23
|
import "../../diagnostic-session-state-BGF2r-kt.js";
|
|
24
|
-
import "../../accounts-
|
|
25
|
-
import "../../send-
|
|
26
|
-
import "../../image-ops-
|
|
27
|
-
import "../../pi-model-discovery-
|
|
28
|
-
import "../../message-channel-
|
|
29
|
-
import "../../pi-embedded-helpers-
|
|
30
|
-
import "../../chrome-
|
|
24
|
+
import "../../accounts-BDVs8LTu.js";
|
|
25
|
+
import "../../send-Dfa3sn6r.js";
|
|
26
|
+
import "../../image-ops-D1KtygWz.js";
|
|
27
|
+
import "../../pi-model-discovery-Bb__OY-j.js";
|
|
28
|
+
import "../../message-channel-C8QtrwEU.js";
|
|
29
|
+
import "../../pi-embedded-helpers-CghCLoPo.js";
|
|
30
|
+
import "../../chrome-BcJB6PcM.js";
|
|
31
31
|
import "../../ssrf-CZeHDwVZ.js";
|
|
32
|
-
import "../../frontmatter-
|
|
33
|
-
import "../../skills-
|
|
34
|
-
import "../../path-alias-guards-
|
|
35
|
-
import "../../redact-
|
|
36
|
-
import "../../errors-
|
|
37
|
-
import "../../fs-safe-
|
|
38
|
-
import "../../store-
|
|
39
|
-
import { H as resolveAgentMainSessionKey, W as resolveMainSessionKey, f as updateSessionStore, s as loadSessionStore } from "../../sessions-
|
|
40
|
-
import "../../accounts-
|
|
41
|
-
import { u as resolveStorePath } from "../../paths-
|
|
42
|
-
import "../../tool-images-
|
|
32
|
+
import "../../frontmatter-BOudmHMS.js";
|
|
33
|
+
import "../../skills-CnAPWfca.js";
|
|
34
|
+
import "../../path-alias-guards-Cu1nXNMM.js";
|
|
35
|
+
import "../../redact-Bvpf-ATQ.js";
|
|
36
|
+
import "../../errors-C_0nm4TJ.js";
|
|
37
|
+
import "../../fs-safe-CYUaAFO9.js";
|
|
38
|
+
import "../../store-CvMgrKWx.js";
|
|
39
|
+
import { H as resolveAgentMainSessionKey, W as resolveMainSessionKey, f as updateSessionStore, s as loadSessionStore } from "../../sessions-3ioSeOA1.js";
|
|
40
|
+
import "../../accounts-CIvVRRHb.js";
|
|
41
|
+
import { u as resolveStorePath } from "../../paths-D_qUel1T.js";
|
|
42
|
+
import "../../tool-images-CcGZpzmq.js";
|
|
43
43
|
import "../../thinking-z4_linel.js";
|
|
44
|
-
import "../../image-
|
|
45
|
-
import "../../reply-prefix-
|
|
46
|
-
import "../../manager-
|
|
47
|
-
import "../../gemini-auth-
|
|
48
|
-
import "../../fetch-guard-
|
|
49
|
-
import "../../query-expansion-
|
|
50
|
-
import "../../retry-
|
|
51
|
-
import "../../target-errors-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../markdown-tables-
|
|
54
|
-
import "../../local-roots-
|
|
55
|
-
import "../../ir-
|
|
44
|
+
import "../../image-D8b_rlQC.js";
|
|
45
|
+
import "../../reply-prefix-BUgeSN2R.js";
|
|
46
|
+
import "../../manager-BE_76jWB.js";
|
|
47
|
+
import "../../gemini-auth-CIyaa44H.js";
|
|
48
|
+
import "../../fetch-guard-iuQsIjqN.js";
|
|
49
|
+
import "../../query-expansion-DEq020GG.js";
|
|
50
|
+
import "../../retry-BeB9WenR.js";
|
|
51
|
+
import "../../target-errors-BPfQrPim.js";
|
|
52
|
+
import "../../chunk-CMpX7Jaz.js";
|
|
53
|
+
import "../../markdown-tables-CzsockiZ.js";
|
|
54
|
+
import "../../local-roots-KN4Hp1yZ.js";
|
|
55
|
+
import "../../ir-B7IBoKLy.js";
|
|
56
56
|
import "../../render-MTSxc7LK.js";
|
|
57
|
-
import "../../commands-registry-
|
|
58
|
-
import "../../skill-commands-
|
|
59
|
-
import "../../runner-
|
|
57
|
+
import "../../commands-registry-j4vAzcF2.js";
|
|
58
|
+
import "../../skill-commands-Ck3flWX7.js";
|
|
59
|
+
import "../../runner-PgRFPYUj.js";
|
|
60
60
|
import "../../fetch-CsfR_943.js";
|
|
61
|
-
import "../../channel-activity-
|
|
62
|
-
import "../../tables-
|
|
63
|
-
import "../../send-
|
|
64
|
-
import "../../outbound-attachment-
|
|
65
|
-
import "../../send-
|
|
66
|
-
import "../../resolve-route-
|
|
61
|
+
import "../../channel-activity-D_TMOGQ0.js";
|
|
62
|
+
import "../../tables-5k-zOZ-s.js";
|
|
63
|
+
import "../../send-C1hvd3bt.js";
|
|
64
|
+
import "../../outbound-attachment-3I6GzwDe.js";
|
|
65
|
+
import "../../send-D4bMycQu.js";
|
|
66
|
+
import "../../resolve-route-DuttYY7A.js";
|
|
67
67
|
import "../../proxy-CRB9oCP5.js";
|
|
68
|
-
import "../../replies-
|
|
69
|
-
import { t as createDefaultDeps } from "../../deps-
|
|
68
|
+
import "../../replies-6_GxvQYe.js";
|
|
69
|
+
import { t as createDefaultDeps } from "../../deps-B4J8H6nI.js";
|
|
70
70
|
import fs from "node:fs/promises";
|
|
71
71
|
import path from "node:path";
|
|
72
72
|
import crypto from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger, x as isAgentBootstrapEvent } from "../../subsystem-
|
|
3
|
-
import "../../utils-
|
|
1
|
+
import "../../paths-BYNVLNi_.js";
|
|
2
|
+
import { t as createSubsystemLogger, x as isAgentBootstrapEvent } from "../../subsystem-tzu-rIAJ.js";
|
|
3
|
+
import "../../utils-CTFLl_ji.js";
|
|
4
4
|
import "../../runtime-8mi3mpYB.js";
|
|
5
|
-
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
5
|
+
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-DBFSzT6O.js";
|
|
6
6
|
import "../../boolean-CE7i9tBR.js";
|
|
7
|
-
import "../../frontmatter-
|
|
7
|
+
import "../../frontmatter-BOudmHMS.js";
|
|
8
8
|
import { t as resolveHookConfig } from "../../config-BsP4lHEP.js";
|
|
9
9
|
|
|
10
10
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as resolveStateDir } from "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
3
|
-
import "../../utils-
|
|
1
|
+
import { d as resolveStateDir } from "../../paths-BYNVLNi_.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-tzu-rIAJ.js";
|
|
3
|
+
import "../../utils-CTFLl_ji.js";
|
|
4
4
|
import "../../runtime-8mi3mpYB.js";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { s as resolveAgentWorkspaceDir } from "../../agent-scope-
|
|
2
|
-
import { d as resolveStateDir } from "../../paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import "../../utils-
|
|
1
|
+
import { s as resolveAgentWorkspaceDir } from "../../agent-scope-DyP_tr7s.js";
|
|
2
|
+
import { d as resolveStateDir } from "../../paths-BYNVLNi_.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-tzu-rIAJ.js";
|
|
4
|
+
import "../../utils-CTFLl_ji.js";
|
|
5
5
|
import "../../runtime-8mi3mpYB.js";
|
|
6
6
|
import { l as resolveAgentIdFromSessionKey } from "../../session-key-CuLPSMu_.js";
|
|
7
|
-
import "../../workspace-
|
|
8
|
-
import "../../model-selection-
|
|
9
|
-
import "../../github-copilot-token-
|
|
7
|
+
import "../../workspace-DBFSzT6O.js";
|
|
8
|
+
import "../../model-selection-1MMYqY6M.js";
|
|
9
|
+
import "../../github-copilot-token-Dgt6cnsM.js";
|
|
10
10
|
import "../../boolean-CE7i9tBR.js";
|
|
11
|
-
import "../../env-
|
|
12
|
-
import "../../dock-
|
|
13
|
-
import "../../tokens-
|
|
14
|
-
import "../../pi-embedded-
|
|
15
|
-
import "../../plugins-
|
|
16
|
-
import "../../accounts-
|
|
17
|
-
import "../../bindings-
|
|
18
|
-
import "../../auth-store-
|
|
19
|
-
import "../../send-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../deliver-
|
|
22
|
-
import "../../diagnostic-
|
|
11
|
+
import "../../env-B5G1qwGc.js";
|
|
12
|
+
import "../../dock-BgOmHcbh.js";
|
|
13
|
+
import "../../tokens-BRLyURxW.js";
|
|
14
|
+
import "../../pi-embedded-C6RDRgJM.js";
|
|
15
|
+
import "../../plugins-CRB60mCJ.js";
|
|
16
|
+
import "../../accounts-Dk8mJIrQ.js";
|
|
17
|
+
import "../../bindings-D3b5Fmc9.js";
|
|
18
|
+
import "../../auth-store-DXT-l7fO.js";
|
|
19
|
+
import "../../send-BeIZJuy4.js";
|
|
20
|
+
import "../../send-DmLC7aEF.js";
|
|
21
|
+
import "../../deliver-BUiQ-9fE.js";
|
|
22
|
+
import "../../diagnostic-4owMk4vH.js";
|
|
23
23
|
import "../../diagnostic-session-state-BGF2r-kt.js";
|
|
24
|
-
import "../../accounts-
|
|
25
|
-
import "../../send-
|
|
26
|
-
import "../../image-ops-
|
|
27
|
-
import "../../pi-model-discovery-
|
|
28
|
-
import "../../message-channel-
|
|
29
|
-
import "../../pi-embedded-helpers-
|
|
30
|
-
import "../../chrome-
|
|
24
|
+
import "../../accounts-BDVs8LTu.js";
|
|
25
|
+
import "../../send-Dfa3sn6r.js";
|
|
26
|
+
import "../../image-ops-D1KtygWz.js";
|
|
27
|
+
import "../../pi-model-discovery-Bb__OY-j.js";
|
|
28
|
+
import "../../message-channel-C8QtrwEU.js";
|
|
29
|
+
import "../../pi-embedded-helpers-CghCLoPo.js";
|
|
30
|
+
import "../../chrome-BcJB6PcM.js";
|
|
31
31
|
import "../../ssrf-CZeHDwVZ.js";
|
|
32
|
-
import "../../frontmatter-
|
|
33
|
-
import "../../skills-
|
|
34
|
-
import "../../path-alias-guards-
|
|
35
|
-
import "../../redact-
|
|
36
|
-
import "../../errors-
|
|
37
|
-
import "../../fs-safe-
|
|
38
|
-
import "../../store-
|
|
39
|
-
import { k as hasInterSessionUserProvenance } from "../../sessions-
|
|
40
|
-
import "../../accounts-
|
|
41
|
-
import "../../paths-
|
|
42
|
-
import "../../tool-images-
|
|
32
|
+
import "../../frontmatter-BOudmHMS.js";
|
|
33
|
+
import "../../skills-CnAPWfca.js";
|
|
34
|
+
import "../../path-alias-guards-Cu1nXNMM.js";
|
|
35
|
+
import "../../redact-Bvpf-ATQ.js";
|
|
36
|
+
import "../../errors-C_0nm4TJ.js";
|
|
37
|
+
import "../../fs-safe-CYUaAFO9.js";
|
|
38
|
+
import "../../store-CvMgrKWx.js";
|
|
39
|
+
import { k as hasInterSessionUserProvenance } from "../../sessions-3ioSeOA1.js";
|
|
40
|
+
import "../../accounts-CIvVRRHb.js";
|
|
41
|
+
import "../../paths-D_qUel1T.js";
|
|
42
|
+
import "../../tool-images-CcGZpzmq.js";
|
|
43
43
|
import "../../thinking-z4_linel.js";
|
|
44
|
-
import "../../image-
|
|
45
|
-
import "../../reply-prefix-
|
|
46
|
-
import "../../manager-
|
|
47
|
-
import "../../gemini-auth-
|
|
48
|
-
import "../../fetch-guard-
|
|
49
|
-
import "../../query-expansion-
|
|
50
|
-
import "../../retry-
|
|
51
|
-
import "../../target-errors-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../markdown-tables-
|
|
54
|
-
import "../../local-roots-
|
|
55
|
-
import "../../ir-
|
|
44
|
+
import "../../image-D8b_rlQC.js";
|
|
45
|
+
import "../../reply-prefix-BUgeSN2R.js";
|
|
46
|
+
import "../../manager-BE_76jWB.js";
|
|
47
|
+
import "../../gemini-auth-CIyaa44H.js";
|
|
48
|
+
import "../../fetch-guard-iuQsIjqN.js";
|
|
49
|
+
import "../../query-expansion-DEq020GG.js";
|
|
50
|
+
import "../../retry-BeB9WenR.js";
|
|
51
|
+
import "../../target-errors-BPfQrPim.js";
|
|
52
|
+
import "../../chunk-CMpX7Jaz.js";
|
|
53
|
+
import "../../markdown-tables-CzsockiZ.js";
|
|
54
|
+
import "../../local-roots-KN4Hp1yZ.js";
|
|
55
|
+
import "../../ir-B7IBoKLy.js";
|
|
56
56
|
import "../../render-MTSxc7LK.js";
|
|
57
|
-
import "../../commands-registry-
|
|
58
|
-
import "../../skill-commands-
|
|
59
|
-
import "../../runner-
|
|
57
|
+
import "../../commands-registry-j4vAzcF2.js";
|
|
58
|
+
import "../../skill-commands-Ck3flWX7.js";
|
|
59
|
+
import "../../runner-PgRFPYUj.js";
|
|
60
60
|
import "../../fetch-CsfR_943.js";
|
|
61
|
-
import "../../channel-activity-
|
|
62
|
-
import "../../tables-
|
|
63
|
-
import "../../send-
|
|
64
|
-
import "../../outbound-attachment-
|
|
65
|
-
import "../../send-
|
|
66
|
-
import "../../resolve-route-
|
|
61
|
+
import "../../channel-activity-D_TMOGQ0.js";
|
|
62
|
+
import "../../tables-5k-zOZ-s.js";
|
|
63
|
+
import "../../send-C1hvd3bt.js";
|
|
64
|
+
import "../../outbound-attachment-3I6GzwDe.js";
|
|
65
|
+
import "../../send-D4bMycQu.js";
|
|
66
|
+
import "../../resolve-route-DuttYY7A.js";
|
|
67
67
|
import "../../proxy-CRB9oCP5.js";
|
|
68
|
-
import "../../replies-
|
|
69
|
-
import "../../deps-
|
|
68
|
+
import "../../replies-6_GxvQYe.js";
|
|
69
|
+
import "../../deps-B4J8H6nI.js";
|
|
70
70
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
71
71
|
import { t as resolveHookConfig } from "../../config-BsP4lHEP.js";
|
|
72
72
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { n as formatErrorMessage } from "./errors-
|
|
3
|
-
import { n as retryAsync, t as resolveRetryConfig } from "./retry-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
2
|
+
import { n as formatErrorMessage } from "./errors-C_0nm4TJ.js";
|
|
3
|
+
import { n as retryAsync, t as resolveRetryConfig } from "./retry-BeB9WenR.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|