@visorcraft/idlehands 4.2.3 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-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-BtMWCqx4.js → agent-via-gateway-CugFJzVP.js} +2 -2
- package/dist/{agent-via-gateway-BsTP4WyI.js → agent-via-gateway-DG8Axzn2.js} +60 -60
- package/dist/{agent-via-gateway-9aP1U_YQ.js → agent-via-gateway-DwRsFLFS.js} +1 -1
- package/dist/{agent-via-gateway-BN0HMYd7.js → agent-via-gateway-VdG-s4L4.js} +1 -1
- package/dist/{agents-Bitc3LDE.js → agents-DDuWSZ0g.js} +4 -4
- package/dist/{agents.config-DmFqh5v8.js → agents.config-8tuPdcTQ.js} +1 -1
- package/dist/{agents.config-DLjDlH4M.js → agents.config-A-WLFOiz.js} +1 -1
- package/dist/{anton-CmB9XtGt.js → anton-CaPVBTOS.js} +27 -7
- package/dist/{anton-DqSQ27RK.js → anton-DCN6G6Up.js} +27 -7
- package/dist/{anton-C3Y_hYo3.js → anton-DqWaq0gv.js} +26 -7
- package/dist/{anton-Dn_Pc4P0.js → anton-sGTx_HDs.js} +30 -11
- package/dist/{audio-preflight-qkU2lsDn.js → audio-preflight-CW8IH1lU.js} +35 -35
- package/dist/{auth-choice-nFObMeHm.js → auth-choice-C0ADVtim.js} +1 -1
- package/dist/{auth-choice-BKDISagq.js → auth-choice-CnB-Ffeh.js} +1 -1
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{banner-IB7Cylyq.js → banner-C1dFMwdL.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-B2LlZj0S.js → channel-options-DPIZ2OfB.js} +1 -1
- package/dist/{channel-options-DcxOFxzU.js → channel-options-dvj7gQ75.js} +1 -1
- package/dist/{channel-web-XLD22Zzs.js → channel-web-C022IdsV.js} +2 -2
- package/dist/{channel-web-Cu_AcYVB.js → channel-web-DAeB1zPN.js} +2 -2
- package/dist/{channels-cli-BWMjEguK.js → channels-cli-BdUt4Lf-.js} +7 -7
- package/dist/{channels-cli-DZWOS5d6.js → channels-cli-DzA8ku51.js} +7 -7
- package/dist/{chrome-CT_a9OgI.js → chrome-BcJB6PcM.js} +17 -17
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{cli-Bq5b8f58.js → cli-BC9fLKsk.js} +2 -2
- package/dist/{cli-BN8I3vTa.js → cli-VNJdJ9_T.js} +2 -2
- package/dist/{command-registry-CeIfSw9l.js → command-registry-Bo2L5BJz.js} +10 -10
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{completion-cli-Dh0MVQJ6.js → completion-cli-CevdZ8t2.js} +2 -2
- package/dist/{completion-cli-ClOKco1N.js → completion-cli-w7SY12wl.js} +1 -1
- package/dist/{config-cli-CpgR8c8d.js → config-cli-C8s4mZF3.js} +1 -1
- package/dist/{config-cli-BaNTuQ52.js → config-cli-D2221rb8.js} +1 -1
- package/dist/{configure-C4n13-o1.js → configure-6COQEc8d.js} +3 -3
- package/dist/{configure-BfzLtTQH.js → configure-BpeVYPCY.js} +3 -3
- package/dist/{deliver-Db2xqgLg.js → deliver-BUiQ-9fE.js} +20 -20
- package/dist/{deps-c-x2UBbd.js → deps-B3svY-p3.js} +1 -1
- package/dist/{deps-CnUuBleG.js → deps-BTDAxEQ6.js} +6 -6
- package/dist/{deps-CjvmCq-K.js → deps-Coo8Thxy.js} +1 -1
- package/dist/{deps-BH4bzzRD.js → deps-DOxHxBHl.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-BUUL91Dy.js → doctor-completion-CCuJkHb8.js} +1 -1
- package/dist/{doctor-completion-IIzctUix.js → doctor-completion-CkCkSkfC.js} +1 -1
- package/dist/{emergency-stop-HaFAEk9Z.js → emergency-stop-BNon2wpA.js} +2 -2
- package/dist/{emergency-stop-CjxNr2he.js → emergency-stop-DO0wn668.js} +2 -2
- package/dist/{emergency-stop-Bg9a1fXU.js → emergency-stop-DZFe7oYv.js} +2 -2
- package/dist/emergency-stop-JMddgwUX.js +113 -0
- 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 +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/{gateway-cli-C2jOWbsN.js → gateway-cli-Cf7kqenc.js} +9 -9
- package/dist/{gateway-cli-Bcamqq7Z.js → gateway-cli-D6Sh2d9w.js} +9 -9
- 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-3B8ANLz5.js → health-BavRGpi2.js} +1 -1
- package/dist/{health-BTU1dGHH.js → health-j2mDzeUl.js} +1 -1
- package/dist/{hooks-cli-CdEcbqPF.js → hooks-cli-AnCnOcQY.js} +3 -3
- package/dist/{hooks-cli-BOc85-37.js → hooks-cli-DDAeDBcO.js} +3 -3
- package/dist/{image-Dlu13Ebx.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-CIS_OcjC.js → models-RiKkYhfQ.js} +2 -2
- package/dist/{models-cli-BS7pagh1.js → models-cli-B4HXQG2Q.js} +3 -3
- package/dist/{models-cli-6njz6jJl.js → models-cli-CSSZi7-P.js} +4 -4
- package/dist/{npm-resolution-CkpVYF4z.js → npm-resolution-D1b0Eoa4.js} +1 -1
- package/dist/{npm-resolution-DWXTcpqo.js → npm-resolution-vCuR0Tv5.js} +1 -1
- package/dist/{onboard-b_mYsSas.js → onboard-Dcj7w5Sb.js} +2 -2
- package/dist/{onboard-channels-sslbndju.js → onboard-channels-BT-vQKYZ.js} +1 -1
- package/dist/{onboard-channels-CzB1oDsu.js → onboard-channels-jrbhR8dl.js} +1 -1
- package/dist/{onboard-BYOBc47n.js → onboard-enaQTAES.js} +2 -2
- package/dist/{onboarding-BfDz8n6H.js → onboarding-BpiNSUID.js} +3 -3
- package/dist/{onboarding-qxSl79A_.js → onboarding-fRvJJ_jS.js} +3 -3
- package/dist/{onboarding.finalize-DGZkcjrv.js → onboarding.finalize-6q8jh9r4.js} +6 -6
- package/dist/{onboarding.finalize-DeEXxkOU.js → onboarding.finalize-B557eJgx.js} +7 -7
- 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-xW12sr9Q.js → pi-embedded-CMll1riT.js} +179 -179
- package/dist/{pi-embedded-E9CG0AZO.js → pi-embedded-D35RiR0f.js} +11 -11
- package/dist/{pi-embedded-helpers-B3ceCcxm.js → pi-embedded-helpers-CghCLoPo.js} +24 -24
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/{plugin-registry-CY1u8bd9.js → plugin-registry-DMdIUK_2.js} +1 -1
- package/dist/{plugin-registry-CJfl54B-.js → plugin-registry-DdywtXL5.js} +1 -1
- package/dist/plugin-sdk/{agent-via-gateway-NXyTgftN.js → agent-via-gateway-W4SFqR3m.js} +2 -2
- package/dist/plugin-sdk/{anton-8LTiJnvw.js → anton-DgXekgcy.js} +26 -7
- package/dist/plugin-sdk/{channel-web-DEl6BZu6.js → channel-web-DbwkbMKY.js} +2 -2
- package/dist/plugin-sdk/commands/anton.d.ts +28 -4
- package/dist/plugin-sdk/{deps-CdRm6UCM.js → deps-HLNhWkFy.js} +1 -1
- package/dist/plugin-sdk/{emergency-stop-vr_MLBH0.js → emergency-stop-BXP-MZHW.js} +2 -2
- package/dist/plugin-sdk/index.js +3 -3
- package/dist/plugin-sdk/{reply-Cii_-apO.js → reply-BEnj9--x.js} +11 -11
- package/dist/plugin-sdk/{web-BrcYG4Cd.js → web-TsEAe4Bs.js} +3 -3
- package/dist/{plugins-DYr-HHj0.js → plugins-CRB60mCJ.js} +10 -10
- package/dist/{plugins-cli-BsCu9ZxX.js → plugins-cli-CkqS4cmo.js} +3 -3
- package/dist/{plugins-cli-rEURRyag.js → plugins-cli-DHVkVGke.js} +3 -3
- package/dist/{program-CtFnQFId.js → program-BeB3v4zk.js} +8 -8
- package/dist/{program-context-BsCSqznM.js → program-context-w-tdgurY.js} +18 -18
- package/dist/{prompt-select-styled-BKPmN1HP.js → prompt-select-styled-CE6lL16-.js} +4 -4
- package/dist/{prompt-select-styled-BB8mtFS9.js → prompt-select-styled-CGdWABH5.js} +4 -4
- package/dist/{provider-auth-helpers-ar7t02s1.js → provider-auth-helpers-C72Fb__o.js} +1 -1
- package/dist/{provider-auth-helpers-486CLY6U.js → provider-auth-helpers-D0RhcC2q.js} +1 -1
- package/dist/{push-apns-CJJ-O5fL.js → push-apns-CeEArjp5.js} +1 -1
- package/dist/{push-apns-AHniql5u.js → push-apns-Nj66xHk1.js} +1 -1
- package/dist/{pw-ai-DIV4PcIo.js → pw-ai-CfYaR1K2.js} +13 -13
- 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/{register.agent-DswuLYd8.js → register.agent-BaiV-Kp5.js} +9 -9
- package/dist/{register.agent-TMXz7bwT.js → register.agent-CoADvHMz.js} +8 -8
- package/dist/{register.configure-BFWnHArB.js → register.configure-COg3mvRi.js} +8 -8
- package/dist/{register.configure-DlxSU46q.js → register.configure-Dhfhctpj.js} +8 -8
- package/dist/{register.maintenance-C2B-RPnI.js → register.maintenance-CjxM0oKc.js} +8 -8
- package/dist/{register.maintenance-Dj8A9Hj7.js → register.maintenance-MELPxVyx.js} +9 -9
- package/dist/{register.message-CR569hCK.js → register.message-CbssH6ek.js} +3 -3
- package/dist/{register.message-DWm_Lizi.js → register.message-kzRNe_7l.js} +3 -3
- package/dist/{register.onboard-CBlF61-5.js → register.onboard-CAbo-VF1.js} +2 -2
- package/dist/{register.onboard-BjMv8Rc2.js → register.onboard-CJeQ64iC.js} +2 -2
- package/dist/{register.orchestrator-anton-CehFZHyG.js → register.orchestrator-anton-CBnyqoHX.js} +2 -2
- package/dist/{register.orchestrator-anton-Cvw__ptb.js → register.orchestrator-anton-CdVQ30at.js} +2 -2
- package/dist/{register.setup-BrXOX1jn.js → register.setup-DEH8S3Y5.js} +2 -2
- package/dist/{register.setup-B8TX05TM.js → register.setup-XGT1lV6o.js} +2 -2
- package/dist/{register.status-health-sessions-DexyefSU.js → register.status-health-sessions-0ppExIVs.js} +4 -4
- package/dist/{register.status-health-sessions-C-3gl9qR.js → register.status-health-sessions-jEhyhioj.js} +4 -4
- package/dist/{register.subclis-CFcZU6Sc.js → register.subclis-DQx75Ni7.js} +9 -9
- package/dist/{replies-2C16fnBP.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{reply-dLJYULbb.js → reply-Du7Q5RJl.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-xc_0T201.js → run-main-D56C-iq4.js} +15 -15
- package/dist/{runner-BkCU-kqs.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-CgSZVd8M.js → server-node-events-C1uC6pPJ.js} +3 -3
- package/dist/{server-node-events-Dj5jYSln.js → server-node-events-h-U5Mfvv.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-Bp-x4GJi.js → status-CQ18Gd-d.js} +2 -2
- package/dist/{status-CV7OIIGl.js → status-DmPnFNgt.js} +2 -2
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- package/dist/{subagent-registry-CJX_DOgh.js → subagent-registry-CPeVtSZk.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-Crq7aGUA.js → update-cli-Di_N9xCB.js} +8 -8
- package/dist/{update-cli-z5fJRDU4.js → update-cli-DraOIip8.js} +9 -9
- package/dist/{update-runner-BLquhnrL.js → update-runner-BJRwxU_y.js} +1 -1
- package/dist/{update-runner-BkSrWsKc.js → update-runner-BQlZS5zz.js} +1 -1
- package/dist/{utils-D9wGoiU9.js → utils-CTFLl_ji.js} +18 -18
- package/dist/{web-CNowaS6B.js → web-Cp8ceOUo.js} +66 -66
- package/dist/{web-BKSxBqZw.js → web-CrYZNxAg.js} +3 -3
- package/dist/{web-BKs38Jg4.js → web-D77Xu1Fp.js} +3 -3
- package/dist/{web-B267OUXc.js → web-DzfcaLnK.js} +3 -3
- 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/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/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- 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/package.json +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/emergency-stop-Chw8LiXP.js +0 -113
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
|
|
2
|
-
import { r as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { r as createAccountListHelpers } from "./accounts-Dk8mJIrQ.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-DlMshWZ_.js";
|
|
4
4
|
|
|
5
5
|
//#region src/signal/accounts.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
|
|
2
|
-
import { r as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { r as createAccountListHelpers } from "./accounts-Dk8mJIrQ.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-DlMshWZ_.js";
|
|
4
4
|
|
|
5
5
|
//#region src/imessage/accounts.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
1
|
+
import { l as resolveOAuthDir } from "./paths-BYNVLNi_.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-CTFLl_ji.js";
|
|
3
3
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-CuLPSMu_.js";
|
|
4
4
|
import { t as resolveAccountEntry } from "./account-lookup-DlMshWZ_.js";
|
|
5
|
-
import { r as hasWebCredsSync } from "./auth-store-
|
|
5
|
+
import { r as hasWebCredsSync } from "./auth-store-DXT-l7fO.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import syncFs from "node:fs";
|
|
8
8
|
|
|
9
9
|
//#region src/channels/plugins/account-helpers.ts
|
|
10
10
|
function createAccountListHelpers(channelKey) {
|
|
@@ -44,7 +44,7 @@ function listWhatsAppAuthDirs(cfg) {
|
|
|
44
44
|
accountId
|
|
45
45
|
}).authDir);
|
|
46
46
|
try {
|
|
47
|
-
const entries =
|
|
47
|
+
const entries = syncFs.readdirSync(whatsappDir, { withFileTypes: true });
|
|
48
48
|
for (const entry of entries) {
|
|
49
49
|
if (!entry.isDirectory()) continue;
|
|
50
50
|
authDirs.add(path.join(whatsappDir, entry.name));
|
|
@@ -66,7 +66,7 @@ function resolveLegacyAuthDir() {
|
|
|
66
66
|
}
|
|
67
67
|
function legacyAuthExists(authDir) {
|
|
68
68
|
try {
|
|
69
|
-
return
|
|
69
|
+
return syncFs.existsSync(path.join(authDir, "creds.json"));
|
|
70
70
|
} catch {
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { h as resolveUserPath } from "./utils-
|
|
1
|
+
import { d as resolveStateDir } from "./paths-BYNVLNi_.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
3
|
+
import { h as resolveUserPath } from "./utils-CTFLl_ji.js";
|
|
4
4
|
import { l as resolveAgentIdFromSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, x as parseAgentSessionKey } from "./session-key-CuLPSMu_.js";
|
|
5
|
-
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
5
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-DBFSzT6O.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/config/model-input.ts
|
|
@@ -11,7 +11,7 @@ import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
|
11
11
|
import "./env-BpvqFD5n.js";
|
|
12
12
|
import "./dock-QcCdS4qA.js";
|
|
13
13
|
import "./tokens-Cg4XNE3H.js";
|
|
14
|
-
import { H as callGateway, U as randomIdempotencyKey, a as agentCommand, o as resolveSessionKeyForRequest, v as withProgress } from "./pi-embedded-
|
|
14
|
+
import { H as callGateway, U as randomIdempotencyKey, a as agentCommand, o as resolveSessionKeyForRequest, v as withProgress } from "./pi-embedded-D35RiR0f.js";
|
|
15
15
|
import "./plugins-D-_jp4FO.js";
|
|
16
16
|
import "./accounts-BwrguHMw.js";
|
|
17
17
|
import "./bindings-hT7SPhiA.js";
|
|
@@ -64,7 +64,7 @@ import "./send-Cn2wvd3W.js";
|
|
|
64
64
|
import "./resolve-route-BI3VjtwE.js";
|
|
65
65
|
import "./proxy-CNZpb4NE.js";
|
|
66
66
|
import "./replies-CqYEEgmA.js";
|
|
67
|
-
import "./deps-
|
|
67
|
+
import "./deps-B3svY-p3.js";
|
|
68
68
|
|
|
69
69
|
//#region src/commands/agent-via-gateway.ts
|
|
70
70
|
const NO_GATEWAY_TIMEOUT_MS = 2147e6;
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { n as listAgentIds } from "./agent-scope-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./utils-
|
|
1
|
+
import { n as listAgentIds } from "./agent-scope-DyP_tr7s.js";
|
|
2
|
+
import "./paths-BYNVLNi_.js";
|
|
3
|
+
import "./subsystem-tzu-rIAJ.js";
|
|
4
|
+
import "./utils-CTFLl_ji.js";
|
|
5
5
|
import "./runtime-8mi3mpYB.js";
|
|
6
6
|
import { s as normalizeAgentId } from "./session-key-CuLPSMu_.js";
|
|
7
|
-
import "./workspace-
|
|
8
|
-
import { R as loadConfig } from "./model-selection-
|
|
9
|
-
import "./github-copilot-token-
|
|
7
|
+
import "./workspace-DBFSzT6O.js";
|
|
8
|
+
import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
|
|
9
|
+
import "./github-copilot-token-Dgt6cnsM.js";
|
|
10
10
|
import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
11
11
|
import "./boolean-CE7i9tBR.js";
|
|
12
|
-
import "./env-
|
|
13
|
-
import "./dock-
|
|
14
|
-
import "./tokens-
|
|
15
|
-
import { H as randomIdempotencyKey, V as callGateway, a as agentCommand, o as resolveSessionKeyForRequest, v as withProgress } from "./pi-embedded-
|
|
16
|
-
import "./plugins-
|
|
17
|
-
import "./accounts-
|
|
18
|
-
import "./bindings-
|
|
19
|
-
import "./auth-store-
|
|
20
|
-
import "./send-
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./deliver-
|
|
23
|
-
import "./diagnostic-
|
|
12
|
+
import "./env-B5G1qwGc.js";
|
|
13
|
+
import "./dock-BgOmHcbh.js";
|
|
14
|
+
import "./tokens-BRLyURxW.js";
|
|
15
|
+
import { H as randomIdempotencyKey, V as callGateway, a as agentCommand, o as resolveSessionKeyForRequest, v as withProgress } from "./pi-embedded-CMll1riT.js";
|
|
16
|
+
import "./plugins-CRB60mCJ.js";
|
|
17
|
+
import "./accounts-Dk8mJIrQ.js";
|
|
18
|
+
import "./bindings-D3b5Fmc9.js";
|
|
19
|
+
import "./auth-store-DXT-l7fO.js";
|
|
20
|
+
import "./send-BeIZJuy4.js";
|
|
21
|
+
import "./send-DmLC7aEF.js";
|
|
22
|
+
import "./deliver-BUiQ-9fE.js";
|
|
23
|
+
import "./diagnostic-4owMk4vH.js";
|
|
24
24
|
import "./diagnostic-session-state-BGF2r-kt.js";
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import "./send-
|
|
27
|
-
import "./image-ops-
|
|
28
|
-
import "./pi-model-discovery-
|
|
29
|
-
import { d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, s as normalizeMessageChannel } from "./message-channel-
|
|
30
|
-
import "./pi-embedded-helpers-
|
|
31
|
-
import "./chrome-
|
|
25
|
+
import "./accounts-BDVs8LTu.js";
|
|
26
|
+
import "./send-Dfa3sn6r.js";
|
|
27
|
+
import "./image-ops-D1KtygWz.js";
|
|
28
|
+
import "./pi-model-discovery-Bb__OY-j.js";
|
|
29
|
+
import { d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, s as normalizeMessageChannel } from "./message-channel-C8QtrwEU.js";
|
|
30
|
+
import "./pi-embedded-helpers-CghCLoPo.js";
|
|
31
|
+
import "./chrome-BcJB6PcM.js";
|
|
32
32
|
import "./ssrf-CZeHDwVZ.js";
|
|
33
|
-
import "./frontmatter-
|
|
34
|
-
import "./skills-
|
|
35
|
-
import "./path-alias-guards-
|
|
36
|
-
import "./redact-
|
|
37
|
-
import "./errors-
|
|
38
|
-
import "./fs-safe-
|
|
39
|
-
import "./store-
|
|
40
|
-
import "./sessions-
|
|
41
|
-
import "./accounts-
|
|
42
|
-
import "./paths-
|
|
43
|
-
import "./tool-images-
|
|
33
|
+
import "./frontmatter-BOudmHMS.js";
|
|
34
|
+
import "./skills-CnAPWfca.js";
|
|
35
|
+
import "./path-alias-guards-Cu1nXNMM.js";
|
|
36
|
+
import "./redact-Bvpf-ATQ.js";
|
|
37
|
+
import "./errors-C_0nm4TJ.js";
|
|
38
|
+
import "./fs-safe-CYUaAFO9.js";
|
|
39
|
+
import "./store-CvMgrKWx.js";
|
|
40
|
+
import "./sessions-3ioSeOA1.js";
|
|
41
|
+
import "./accounts-CIvVRRHb.js";
|
|
42
|
+
import "./paths-D_qUel1T.js";
|
|
43
|
+
import "./tool-images-CcGZpzmq.js";
|
|
44
44
|
import "./thinking-z4_linel.js";
|
|
45
|
-
import "./image-
|
|
46
|
-
import "./reply-prefix-
|
|
47
|
-
import "./manager-
|
|
48
|
-
import "./gemini-auth-
|
|
49
|
-
import "./fetch-guard-
|
|
50
|
-
import "./query-expansion-
|
|
51
|
-
import "./retry-
|
|
52
|
-
import "./target-errors-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./markdown-tables-
|
|
55
|
-
import "./local-roots-
|
|
56
|
-
import "./ir-
|
|
45
|
+
import "./image-D8b_rlQC.js";
|
|
46
|
+
import "./reply-prefix-BUgeSN2R.js";
|
|
47
|
+
import "./manager-BE_76jWB.js";
|
|
48
|
+
import "./gemini-auth-CIyaa44H.js";
|
|
49
|
+
import "./fetch-guard-iuQsIjqN.js";
|
|
50
|
+
import "./query-expansion-DEq020GG.js";
|
|
51
|
+
import "./retry-BeB9WenR.js";
|
|
52
|
+
import "./target-errors-BPfQrPim.js";
|
|
53
|
+
import "./chunk-CMpX7Jaz.js";
|
|
54
|
+
import "./markdown-tables-CzsockiZ.js";
|
|
55
|
+
import "./local-roots-KN4Hp1yZ.js";
|
|
56
|
+
import "./ir-B7IBoKLy.js";
|
|
57
57
|
import "./render-MTSxc7LK.js";
|
|
58
|
-
import "./commands-registry-
|
|
59
|
-
import "./skill-commands-
|
|
60
|
-
import "./runner-
|
|
58
|
+
import "./commands-registry-j4vAzcF2.js";
|
|
59
|
+
import "./skill-commands-Ck3flWX7.js";
|
|
60
|
+
import "./runner-PgRFPYUj.js";
|
|
61
61
|
import "./fetch-CsfR_943.js";
|
|
62
|
-
import "./channel-activity-
|
|
63
|
-
import "./tables-
|
|
64
|
-
import "./send-
|
|
65
|
-
import "./outbound-attachment-
|
|
66
|
-
import "./send-
|
|
67
|
-
import "./resolve-route-
|
|
62
|
+
import "./channel-activity-D_TMOGQ0.js";
|
|
63
|
+
import "./tables-5k-zOZ-s.js";
|
|
64
|
+
import "./send-C1hvd3bt.js";
|
|
65
|
+
import "./outbound-attachment-3I6GzwDe.js";
|
|
66
|
+
import "./send-D4bMycQu.js";
|
|
67
|
+
import "./resolve-route-DuttYY7A.js";
|
|
68
68
|
import "./proxy-CRB9oCP5.js";
|
|
69
|
-
import "./replies-
|
|
70
|
-
import "./deps-
|
|
69
|
+
import "./replies-6_GxvQYe.js";
|
|
70
|
+
import "./deps-BTDAxEQ6.js";
|
|
71
71
|
|
|
72
72
|
//#region src/commands/agent-via-gateway.ts
|
|
73
73
|
const NO_GATEWAY_TIMEOUT_MS = 2147e6;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Mt as resolveSessionKeyForRequest, jt as agentCommand } from "./reply-
|
|
2
|
+
import { Mt as resolveSessionKeyForRequest, jt as agentCommand } from "./reply-Du7Q5RJl.js";
|
|
3
3
|
import { r as listAgentIds } from "./agent-scope-DbNnv10G.js";
|
|
4
4
|
import { s as normalizeAgentId } from "./session-key-Cuihcz_O.js";
|
|
5
5
|
import { It as loadConfig } from "./model-selection-Df4-bBn3.js";
|
|
@@ -4,7 +4,7 @@ import { t as formatCliCommand } from "./command-format-CPa5ksO_.js";
|
|
|
4
4
|
import { r as listAgentIds } from "./agent-scope-mLXQGQde.js";
|
|
5
5
|
import { s as normalizeAgentId } from "./session-key-B9ePuoPx.js";
|
|
6
6
|
import { h as GATEWAY_CLIENT_NAMES, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES } from "./message-channel-Qpj4ExtQ.js";
|
|
7
|
-
import { D as resolveSessionKeyForRequest, E as agentCommand } from "./subagent-registry-
|
|
7
|
+
import { D as resolveSessionKeyForRequest, E as agentCommand } from "./subagent-registry-CPeVtSZk.js";
|
|
8
8
|
import { a as randomIdempotencyKey, n as callGateway } from "./call-C82rD2Wn.js";
|
|
9
9
|
import { n as withProgress } from "./progress-B76RkFx7.js";
|
|
10
10
|
|
|
@@ -6,18 +6,18 @@ import { t as formatCliCommand } from "./command-format-CPa5ksO_.js";
|
|
|
6
6
|
import { a as resolveAgentDir, b as DEFAULT_IDENTITY_FILENAME, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-mLXQGQde.js";
|
|
7
7
|
import { m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-B9ePuoPx.js";
|
|
8
8
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CCrfZ49T.js";
|
|
9
|
-
import { M as identityHasValues, P as parseIdentityMarkdown } from "./subagent-registry-
|
|
9
|
+
import { M as identityHasValues, P as parseIdentityMarkdown } from "./subagent-registry-CPeVtSZk.js";
|
|
10
10
|
import { l as resolveSessionTranscriptsDirForAgent } from "./paths-CC17i2eK.js";
|
|
11
11
|
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-DWivfzcc.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-D3HHe1ZZ.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-Bo7vS5xP.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CIyuenBU.js";
|
|
15
15
|
import { a as parseBindingSpecs, i as describeBinding, n as applyAgentBindings, o as removeAgentBindings, r as buildChannelBindings, t as requireValidConfigSnapshot } from "./config-validation-BgKexeQb.js";
|
|
16
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
16
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-8tuPdcTQ.js";
|
|
17
|
+
import { r as setupChannels } from "./onboard-channels-jrbhR8dl.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-MF6Thoxk.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-kycZqH8q.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-C0ADVtim.js";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs/promises";
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-mLXQGQde.js";
|
|
2
2
|
import { s as normalizeAgentId } from "./session-key-B9ePuoPx.js";
|
|
3
|
-
import { M as identityHasValues, N as loadAgentIdentityFromWorkspace } from "./subagent-registry-
|
|
3
|
+
import { M as identityHasValues, N as loadAgentIdentityFromWorkspace } from "./subagent-registry-CPeVtSZk.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as identityHasValues, tn as loadAgentIdentityFromWorkspace } from "./reply-
|
|
1
|
+
import { en as identityHasValues, tn as loadAgentIdentityFromWorkspace } from "./reply-Du7Q5RJl.js";
|
|
2
2
|
import { a as resolveAgentDir, d as resolveDefaultAgentId, n as listAgentEntries, u as resolveAgentWorkspaceDir } from "./agent-scope-DbNnv10G.js";
|
|
3
3
|
import { s as normalizeAgentId } from "./session-key-Cuihcz_O.js";
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ var anton_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
antonStatus: () => antonStatus,
|
|
11
11
|
antonStop: () => antonStop,
|
|
12
12
|
formatProgressMessage: () => formatProgressMessage,
|
|
13
|
+
resolveAntonExecutionConfig: () => resolveAntonExecutionConfig,
|
|
13
14
|
runAnton: () => runAnton
|
|
14
15
|
});
|
|
15
16
|
const ANTON_STATE_PATH = path.join(CONFIG_DIR, "anton.state.json");
|
|
@@ -174,6 +175,21 @@ function buildImplementationRetryPrompt(task, planFilePath) {
|
|
|
174
175
|
"If you only provide analysis/diff text without edit/write tool calls, this attempt fails."
|
|
175
176
|
].join("\n");
|
|
176
177
|
}
|
|
178
|
+
function resolveAntonExecutionConfig(params) {
|
|
179
|
+
const antonCfg = params.config ?? {};
|
|
180
|
+
const preflightCfg = antonCfg.preflight ?? {};
|
|
181
|
+
const requestedMode = params.modeOverride ?? antonCfg.mode ?? "direct";
|
|
182
|
+
const mode = requestedMode === "preflight" && preflightCfg.enabled === false ? "direct" : requestedMode;
|
|
183
|
+
const taskTimeoutSec = antonCfg.taskTimeoutSec ?? 1200;
|
|
184
|
+
return {
|
|
185
|
+
mode,
|
|
186
|
+
requirementsReview: antonCfg.requirementsReview ?? preflightCfg.requirementsReview ?? false,
|
|
187
|
+
taskTimeoutSec,
|
|
188
|
+
discoveryTimeoutSec: antonCfg.discoveryTimeoutSec ?? preflightCfg.discoveryTimeoutSec ?? taskTimeoutSec,
|
|
189
|
+
reviewTimeoutSec: antonCfg.reviewTimeoutSec ?? preflightCfg.reviewTimeoutSec ?? taskTimeoutSec,
|
|
190
|
+
preflightMaxRetries: antonCfg.preflightMaxRetries ?? preflightCfg.maxRetries ?? 2
|
|
191
|
+
};
|
|
192
|
+
}
|
|
177
193
|
function formatDuration(ms) {
|
|
178
194
|
const seconds = Math.floor(ms / 1e3);
|
|
179
195
|
if (seconds < 60) return `${seconds}s`;
|
|
@@ -238,7 +254,7 @@ async function loadAntonConfig() {
|
|
|
238
254
|
}
|
|
239
255
|
}
|
|
240
256
|
async function runAgentTask(args) {
|
|
241
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
257
|
+
const { agentCliCommand } = await import("./agent-via-gateway-VdG-s4L4.js").then((n) => n.n);
|
|
242
258
|
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;
|
|
243
259
|
const result = await agentCliCommand({
|
|
244
260
|
message: args.message,
|
|
@@ -604,12 +620,16 @@ async function runAnton(args) {
|
|
|
604
620
|
return;
|
|
605
621
|
}
|
|
606
622
|
const antonCfg = await loadAntonConfig();
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
const
|
|
623
|
+
const execution = resolveAntonExecutionConfig({
|
|
624
|
+
config: antonCfg,
|
|
625
|
+
modeOverride: args.mode
|
|
626
|
+
});
|
|
627
|
+
const mode = execution.mode;
|
|
628
|
+
const requirementsReview = execution.requirementsReview;
|
|
629
|
+
const taskTimeout = execution.taskTimeoutSec;
|
|
630
|
+
const discoveryTimeout = execution.discoveryTimeoutSec;
|
|
631
|
+
const reviewTimeout = execution.reviewTimeoutSec;
|
|
632
|
+
const preflightMaxRetries = execution.preflightMaxRetries;
|
|
613
633
|
const planDir = antonCfg.planDir ? path.resolve(antonCfg.planDir) : path.resolve(path.dirname(filePath), ".agents", "tasks");
|
|
614
634
|
const { loadConfig } = await import("./auth-profiles-Baj5ImDJ.js").then((n) => n.D);
|
|
615
635
|
const cfg = loadConfig();
|
|
@@ -10,6 +10,7 @@ var anton_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
antonStatus: () => antonStatus,
|
|
11
11
|
antonStop: () => antonStop,
|
|
12
12
|
formatProgressMessage: () => formatProgressMessage,
|
|
13
|
+
resolveAntonExecutionConfig: () => resolveAntonExecutionConfig,
|
|
13
14
|
runAnton: () => runAnton
|
|
14
15
|
});
|
|
15
16
|
const ANTON_STATE_PATH = path.join(CONFIG_DIR, "anton.state.json");
|
|
@@ -174,6 +175,21 @@ function buildImplementationRetryPrompt(task, planFilePath) {
|
|
|
174
175
|
"If you only provide analysis/diff text without edit/write tool calls, this attempt fails."
|
|
175
176
|
].join("\n");
|
|
176
177
|
}
|
|
178
|
+
function resolveAntonExecutionConfig(params) {
|
|
179
|
+
const antonCfg = params.config ?? {};
|
|
180
|
+
const preflightCfg = antonCfg.preflight ?? {};
|
|
181
|
+
const requestedMode = params.modeOverride ?? antonCfg.mode ?? "direct";
|
|
182
|
+
const mode = requestedMode === "preflight" && preflightCfg.enabled === false ? "direct" : requestedMode;
|
|
183
|
+
const taskTimeoutSec = antonCfg.taskTimeoutSec ?? 1200;
|
|
184
|
+
return {
|
|
185
|
+
mode,
|
|
186
|
+
requirementsReview: antonCfg.requirementsReview ?? preflightCfg.requirementsReview ?? false,
|
|
187
|
+
taskTimeoutSec,
|
|
188
|
+
discoveryTimeoutSec: antonCfg.discoveryTimeoutSec ?? preflightCfg.discoveryTimeoutSec ?? taskTimeoutSec,
|
|
189
|
+
reviewTimeoutSec: antonCfg.reviewTimeoutSec ?? preflightCfg.reviewTimeoutSec ?? taskTimeoutSec,
|
|
190
|
+
preflightMaxRetries: antonCfg.preflightMaxRetries ?? preflightCfg.maxRetries ?? 2
|
|
191
|
+
};
|
|
192
|
+
}
|
|
177
193
|
function formatDuration(ms) {
|
|
178
194
|
const seconds = Math.floor(ms / 1e3);
|
|
179
195
|
if (seconds < 60) return `${seconds}s`;
|
|
@@ -238,7 +254,7 @@ async function loadAntonConfig() {
|
|
|
238
254
|
}
|
|
239
255
|
}
|
|
240
256
|
async function runAgentTask(args) {
|
|
241
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
257
|
+
const { agentCliCommand } = await import("./agent-via-gateway-DwRsFLFS.js").then((n) => n.n);
|
|
242
258
|
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;
|
|
243
259
|
const result = await agentCliCommand({
|
|
244
260
|
message: args.message,
|
|
@@ -604,12 +620,16 @@ async function runAnton(args) {
|
|
|
604
620
|
return;
|
|
605
621
|
}
|
|
606
622
|
const antonCfg = await loadAntonConfig();
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
const
|
|
623
|
+
const execution = resolveAntonExecutionConfig({
|
|
624
|
+
config: antonCfg,
|
|
625
|
+
modeOverride: args.mode
|
|
626
|
+
});
|
|
627
|
+
const mode = execution.mode;
|
|
628
|
+
const requirementsReview = execution.requirementsReview;
|
|
629
|
+
const taskTimeout = execution.taskTimeoutSec;
|
|
630
|
+
const discoveryTimeout = execution.discoveryTimeoutSec;
|
|
631
|
+
const reviewTimeout = execution.reviewTimeoutSec;
|
|
632
|
+
const preflightMaxRetries = execution.preflightMaxRetries;
|
|
613
633
|
const planDir = antonCfg.planDir ? path.resolve(antonCfg.planDir) : path.resolve(path.dirname(filePath), ".agents", "tasks");
|
|
614
634
|
const { loadConfig } = await import("./model-selection-Df4-bBn3.js").then((n) => n.Mt);
|
|
615
635
|
const cfg = loadConfig();
|
|
@@ -168,6 +168,21 @@ function buildImplementationRetryPrompt(task, planFilePath) {
|
|
|
168
168
|
"If you only provide analysis/diff text without edit/write tool calls, this attempt fails."
|
|
169
169
|
].join("\n");
|
|
170
170
|
}
|
|
171
|
+
function resolveAntonExecutionConfig(params) {
|
|
172
|
+
const antonCfg = params.config ?? {};
|
|
173
|
+
const preflightCfg = antonCfg.preflight ?? {};
|
|
174
|
+
const requestedMode = params.modeOverride ?? antonCfg.mode ?? "direct";
|
|
175
|
+
const mode = requestedMode === "preflight" && preflightCfg.enabled === false ? "direct" : requestedMode;
|
|
176
|
+
const taskTimeoutSec = antonCfg.taskTimeoutSec ?? 1200;
|
|
177
|
+
return {
|
|
178
|
+
mode,
|
|
179
|
+
requirementsReview: antonCfg.requirementsReview ?? preflightCfg.requirementsReview ?? false,
|
|
180
|
+
taskTimeoutSec,
|
|
181
|
+
discoveryTimeoutSec: antonCfg.discoveryTimeoutSec ?? preflightCfg.discoveryTimeoutSec ?? taskTimeoutSec,
|
|
182
|
+
reviewTimeoutSec: antonCfg.reviewTimeoutSec ?? preflightCfg.reviewTimeoutSec ?? taskTimeoutSec,
|
|
183
|
+
preflightMaxRetries: antonCfg.preflightMaxRetries ?? preflightCfg.maxRetries ?? 2
|
|
184
|
+
};
|
|
185
|
+
}
|
|
171
186
|
function formatDuration(ms) {
|
|
172
187
|
const seconds = Math.floor(ms / 1e3);
|
|
173
188
|
if (seconds < 60) return `${seconds}s`;
|
|
@@ -232,7 +247,7 @@ async function loadAntonConfig() {
|
|
|
232
247
|
}
|
|
233
248
|
}
|
|
234
249
|
async function runAgentTask(args) {
|
|
235
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
250
|
+
const { agentCliCommand } = await import("./agent-via-gateway-CugFJzVP.js");
|
|
236
251
|
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;
|
|
237
252
|
const result = await agentCliCommand({
|
|
238
253
|
message: args.message,
|
|
@@ -598,12 +613,16 @@ async function runAnton(args) {
|
|
|
598
613
|
return;
|
|
599
614
|
}
|
|
600
615
|
const antonCfg = await loadAntonConfig();
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
const
|
|
616
|
+
const execution = resolveAntonExecutionConfig({
|
|
617
|
+
config: antonCfg,
|
|
618
|
+
modeOverride: args.mode
|
|
619
|
+
});
|
|
620
|
+
const mode = execution.mode;
|
|
621
|
+
const requirementsReview = execution.requirementsReview;
|
|
622
|
+
const taskTimeout = execution.taskTimeoutSec;
|
|
623
|
+
const discoveryTimeout = execution.discoveryTimeoutSec;
|
|
624
|
+
const reviewTimeout = execution.reviewTimeoutSec;
|
|
625
|
+
const preflightMaxRetries = execution.preflightMaxRetries;
|
|
607
626
|
const planDir = antonCfg.planDir ? path.resolve(antonCfg.planDir) : path.resolve(path.dirname(filePath), ".agents", "tasks");
|
|
608
627
|
const { loadConfig } = await import("./model-selection-D3Jhcvg-.js").then((n) => n.F);
|
|
609
628
|
const cfg = loadConfig();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { t as CONFIG_DIR } from "./utils-
|
|
1
|
+
import "./paths-BYNVLNi_.js";
|
|
2
|
+
import { t as CONFIG_DIR } from "./utils-CTFLl_ji.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
@@ -168,6 +168,21 @@ function buildImplementationRetryPrompt(task, planFilePath) {
|
|
|
168
168
|
"If you only provide analysis/diff text without edit/write tool calls, this attempt fails."
|
|
169
169
|
].join("\n");
|
|
170
170
|
}
|
|
171
|
+
function resolveAntonExecutionConfig(params) {
|
|
172
|
+
const antonCfg = params.config ?? {};
|
|
173
|
+
const preflightCfg = antonCfg.preflight ?? {};
|
|
174
|
+
const requestedMode = params.modeOverride ?? antonCfg.mode ?? "direct";
|
|
175
|
+
const mode = requestedMode === "preflight" && preflightCfg.enabled === false ? "direct" : requestedMode;
|
|
176
|
+
const taskTimeoutSec = antonCfg.taskTimeoutSec ?? 1200;
|
|
177
|
+
return {
|
|
178
|
+
mode,
|
|
179
|
+
requirementsReview: antonCfg.requirementsReview ?? preflightCfg.requirementsReview ?? false,
|
|
180
|
+
taskTimeoutSec,
|
|
181
|
+
discoveryTimeoutSec: antonCfg.discoveryTimeoutSec ?? preflightCfg.discoveryTimeoutSec ?? taskTimeoutSec,
|
|
182
|
+
reviewTimeoutSec: antonCfg.reviewTimeoutSec ?? preflightCfg.reviewTimeoutSec ?? taskTimeoutSec,
|
|
183
|
+
preflightMaxRetries: antonCfg.preflightMaxRetries ?? preflightCfg.maxRetries ?? 2
|
|
184
|
+
};
|
|
185
|
+
}
|
|
171
186
|
function formatDuration(ms) {
|
|
172
187
|
const seconds = Math.floor(ms / 1e3);
|
|
173
188
|
if (seconds < 60) return `${seconds}s`;
|
|
@@ -225,14 +240,14 @@ async function antonStop(runtime) {
|
|
|
225
240
|
/** Load Anton config from the IdleHands config file. */
|
|
226
241
|
async function loadAntonConfig() {
|
|
227
242
|
try {
|
|
228
|
-
const { loadConfig } = await import("./model-selection-
|
|
243
|
+
const { loadConfig } = await import("./model-selection-1MMYqY6M.js").then((n) => n.I);
|
|
229
244
|
return loadConfig().anton ?? {};
|
|
230
245
|
} catch {
|
|
231
246
|
return {};
|
|
232
247
|
}
|
|
233
248
|
}
|
|
234
249
|
async function runAgentTask(args) {
|
|
235
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
250
|
+
const { agentCliCommand } = await import("./agent-via-gateway-DG8Axzn2.js");
|
|
236
251
|
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;
|
|
237
252
|
const result = await agentCliCommand({
|
|
238
253
|
message: args.message,
|
|
@@ -598,14 +613,18 @@ async function runAnton(args) {
|
|
|
598
613
|
return;
|
|
599
614
|
}
|
|
600
615
|
const antonCfg = await loadAntonConfig();
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
const
|
|
616
|
+
const execution = resolveAntonExecutionConfig({
|
|
617
|
+
config: antonCfg,
|
|
618
|
+
modeOverride: args.mode
|
|
619
|
+
});
|
|
620
|
+
const mode = execution.mode;
|
|
621
|
+
const requirementsReview = execution.requirementsReview;
|
|
622
|
+
const taskTimeout = execution.taskTimeoutSec;
|
|
623
|
+
const discoveryTimeout = execution.discoveryTimeoutSec;
|
|
624
|
+
const reviewTimeout = execution.reviewTimeoutSec;
|
|
625
|
+
const preflightMaxRetries = execution.preflightMaxRetries;
|
|
607
626
|
const planDir = antonCfg.planDir ? path.resolve(antonCfg.planDir) : path.resolve(path.dirname(filePath), ".agents", "tasks");
|
|
608
|
-
const { loadConfig } = await import("./model-selection-
|
|
627
|
+
const { loadConfig } = await import("./model-selection-1MMYqY6M.js").then((n) => n.I);
|
|
609
628
|
const cfg = loadConfig();
|
|
610
629
|
const defaultTimeout = String(Number.isFinite(args.timeoutSec) && (args.timeoutSec ?? 0) > 0 ? args.timeoutSec : cfg.agents?.defaults?.timeoutSeconds ?? taskTimeout);
|
|
611
630
|
await acquireLock(Boolean(args.force));
|
|
@@ -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-D0RhcC2q.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";
|