@hostclubeos/miraos 0.0.7-beta → 0.0.9-beta
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/chunks/{MaxSizedBox-CBUPHLMW.js → MaxSizedBox-6CGCRBRO.js} +1 -1
- package/chunks/{StandaloneSessionPicker-EXZJQKTK.js → StandaloneSessionPicker-7VQOS4TU.js} +1 -1
- package/chunks/{acp-subagent-executor-BMIXP52W.js → acp-subagent-executor-BFQRCU7R.js} +1 -1
- package/chunks/{acpAgent-JC4KGTLW.js → acpAgent-PCXQRPNU.js} +3 -3
- package/chunks/{advisor-5RUG3VFZ.js → advisor-WDZ5N5ZP.js} +1 -1
- package/chunks/{agent-SGQ7AEZI.js → agent-I7Q3IPSS.js} +1 -1
- package/chunks/{agent-headless-ZGCZ2DA7.js → agent-headless-6LOYWI5T.js} +1 -1
- package/chunks/{agent-host-client-HY5GPSHM.js → agent-host-client-PZZKCNQF.js} +1 -1
- package/chunks/{agent-host-connections-KGTBS37X.js → agent-host-connections-TWWSRTKJ.js} +1 -1
- package/chunks/{autofix-pr-E62FC67X.js → autofix-pr-RQPGPQ4D.js} +1 -1
- package/chunks/{batch-OUC6FGCQ.js → batch-UJD5TSBN.js} +1 -1
- package/chunks/{bridge-FLEIBB5V.js → bridge-4TYLRPXZ.js} +1 -1
- package/chunks/{channel-settings-store-QG6HREVH.js → channel-settings-store-RENJMOQ5.js} +1 -1
- package/chunks/{chunk-K7VOBDFT.js → chunk-24PHAWM3.js} +1 -1
- package/chunks/{chunk-7F5IYTVE.js → chunk-26JPBN6V.js} +1 -1
- package/chunks/{chunk-V5Z6OEKJ.js → chunk-2MQH3J4U.js} +1 -1
- package/chunks/{chunk-UOYXBAN7.js → chunk-2RXOWQSQ.js} +1 -1
- package/chunks/{chunk-H2QXWIRZ.js → chunk-323HUW2T.js} +1 -1
- package/chunks/{chunk-KNW2OD46.js → chunk-3BHXE7CB.js} +1 -1
- package/chunks/{chunk-RWFOQXPU.js → chunk-3GYAEXAA.js} +1 -1
- package/chunks/{chunk-W6IOHGWW.js → chunk-3YBZW4HP.js} +1 -1
- package/chunks/{chunk-23543L6E.js → chunk-4RJ2RRGZ.js} +1 -1
- package/chunks/{chunk-2PB6TEZU.js → chunk-5DIW4X4P.js} +1 -1
- package/chunks/{chunk-4346FNTB.js → chunk-5GB6JNJX.js} +1 -1
- package/chunks/{chunk-VRAHMOQQ.js → chunk-5HSNCG73.js} +2 -2
- package/chunks/{chunk-PQOQONLN.js → chunk-6HDMM7TJ.js} +1 -1
- package/chunks/{chunk-K7KY7FIB.js → chunk-6STNGEYC.js} +1 -1
- package/chunks/{chunk-7VP4KALB.js → chunk-7EFWNFJJ.js} +1 -1
- package/chunks/{chunk-ATVRF62A.js → chunk-7EWIKIJI.js} +1 -1
- package/chunks/{chunk-T5PDEAU5.js → chunk-7TB6VG72.js} +1 -1
- package/chunks/{chunk-4WYKHP7Q.js → chunk-7TLL4JLR.js} +1 -1
- package/chunks/{chunk-JDABSS6M.js → chunk-AOMXZNMX.js} +1 -1
- package/chunks/{chunk-FK5L2WVV.js → chunk-AUM57JI2.js} +1 -1
- package/chunks/{chunk-KK6SQPYG.js → chunk-AW5UCOZO.js} +1 -1
- package/chunks/{chunk-WC72OWF2.js → chunk-C6HVNDQT.js} +2 -2
- package/chunks/{chunk-BSLIVO6O.js → chunk-CC6E5CQV.js} +1 -1
- package/chunks/{chunk-AIAYQAPA.js → chunk-CLKUQP27.js} +1 -1
- package/chunks/{chunk-2QYFSBJY.js → chunk-DFMQQM4M.js} +1 -1
- package/chunks/{chunk-MMGNOY3U.js → chunk-DP7LJTG2.js} +5 -5
- package/chunks/{chunk-MYS5NQXO.js → chunk-DQT5VL7G.js} +1 -1
- package/chunks/{chunk-FC7SJIAS.js → chunk-E4QOAV5O.js} +1 -1
- package/chunks/{chunk-3MBYQYPC.js → chunk-E4REGDEZ.js} +1 -1
- package/chunks/{chunk-WCLAVBNR.js → chunk-EAG7VZJJ.js} +1 -1
- package/chunks/{chunk-GQ24VFGQ.js → chunk-EFO6J22W.js} +1 -1
- package/chunks/{chunk-6RDYPRV6.js → chunk-EMR4QK2F.js} +1 -1
- package/chunks/{chunk-WZTO3EYG.js → chunk-EYECE2PH.js} +1 -1
- package/chunks/{chunk-UWMLSAQY.js → chunk-EZDXHUHB.js} +1 -1
- package/chunks/{chunk-T3A53XMM.js → chunk-FJFTKA4H.js} +1 -1
- package/chunks/{chunk-W2ZVZ6LS.js → chunk-FSLDNLNU.js} +1 -1
- package/chunks/{chunk-O6Z3KO6R.js → chunk-FSRXTX3N.js} +1 -1
- package/chunks/{chunk-TFITRCIC.js → chunk-FWSXFRIQ.js} +1 -1
- package/chunks/{chunk-TU5QHOJC.js → chunk-G4ATLMDH.js} +1 -1
- package/chunks/{chunk-DF6TBGS2.js → chunk-GAS3HKRX.js} +1 -1
- package/chunks/{chunk-YVN32EUM.js → chunk-GFFL2LR2.js} +1 -1
- package/chunks/{chunk-TLZM3DMY.js → chunk-GYFIY7TD.js} +1 -1
- package/chunks/{chunk-PGKFDR73.js → chunk-GYXRI4P5.js} +1 -1
- package/chunks/{chunk-3KFLO5W3.js → chunk-H3U7DXIU.js} +1 -1
- package/chunks/{chunk-YN6WXB6B.js → chunk-HEDVPRMD.js} +1 -1
- package/chunks/{chunk-JJDF5FHA.js → chunk-HI3644FQ.js} +1 -1
- package/chunks/{chunk-HASJX2YS.js → chunk-HTHYLMBO.js} +1 -1
- package/chunks/{chunk-4MGTY3CJ.js → chunk-IW7RPDV2.js} +1 -1
- package/chunks/{chunk-SCHCTQCG.js → chunk-IXQI4K6O.js} +1 -1
- package/chunks/chunk-IYH3IZL4.js +13 -0
- package/chunks/{chunk-EF3HUB7S.js → chunk-J52J35K4.js} +1 -1
- package/chunks/{chunk-TXL535SJ.js → chunk-J7L5IHLG.js} +1 -1
- package/chunks/{chunk-N7WQH6L4.js → chunk-JHS5B4N7.js} +2 -2
- package/chunks/{chunk-P5543CFV.js → chunk-JRSO5ZGU.js} +1 -1
- package/chunks/{chunk-G35E5UB3.js → chunk-JS6VAGRQ.js} +1 -1
- package/chunks/{chunk-Z4JY3HGO.js → chunk-KAFPULGU.js} +1 -1
- package/chunks/{chunk-RNPVWQ3V.js → chunk-LDP47G5M.js} +1 -1
- package/chunks/{chunk-EW3EVEYN.js → chunk-LMZZWPKA.js} +1 -1
- package/chunks/{chunk-5RYDKYIR.js → chunk-LNCELICB.js} +1 -1
- package/chunks/{chunk-JDHMSERR.js → chunk-LY2DRNTZ.js} +1 -1
- package/chunks/{chunk-7W5DOBKY.js → chunk-MMGGGYSJ.js} +1 -1
- package/chunks/{chunk-CUY6CVSL.js → chunk-MTBU2ZIM.js} +1 -1
- package/chunks/{chunk-TWJ4XBED.js → chunk-N27KICJQ.js} +1 -1
- package/chunks/{chunk-JQOLNQQN.js → chunk-NHYFTK4O.js} +1 -1
- package/chunks/{chunk-NGH27AWP.js → chunk-NRDHXSEE.js} +1 -1
- package/chunks/{chunk-3GJ56V2J.js → chunk-NV5VVTYQ.js} +1 -1
- package/chunks/{chunk-VJUTDS6C.js → chunk-OEDMFKZL.js} +1 -1
- package/chunks/{chunk-PVHBBTAU.js → chunk-OQAVMR6K.js} +1 -1
- package/chunks/{chunk-IF3SWUYT.js → chunk-OY3Y6EMV.js} +1 -1
- package/chunks/{chunk-SOCXRMZM.js → chunk-OZL4ZMGQ.js} +2 -2
- package/chunks/{chunk-GLQWA4W2.js → chunk-PKSPKVFH.js} +1 -1
- package/chunks/{chunk-KYK53GFP.js → chunk-PNFKCYZT.js} +1 -1
- package/chunks/{chunk-7SAR6NXA.js → chunk-PTWHFVGG.js} +2 -2
- package/chunks/{chunk-RBA3TP7L.js → chunk-QJ6ZTZFC.js} +1 -1
- package/chunks/{chunk-PFECH6U6.js → chunk-QRGWB7IX.js} +1 -1
- package/chunks/{chunk-VBJV7T47.js → chunk-QRP2GXQD.js} +1 -1
- package/chunks/{chunk-WJLHLFIR.js → chunk-RES5ET63.js} +1 -1
- package/chunks/{chunk-GY4ID3EB.js → chunk-ROSJCTWB.js} +1 -1
- package/chunks/{chunk-4KIFAVR2.js → chunk-RR3NFNWL.js} +1 -1
- package/chunks/{chunk-2ZWVSKPK.js → chunk-RYQDRFLW.js} +1 -1
- package/chunks/{chunk-NVD63O5H.js → chunk-S7CWSAUQ.js} +1 -1
- package/chunks/{chunk-66DZADDA.js → chunk-SAJKF4WS.js} +1 -1
- package/chunks/chunk-SINRWOVD.js +36 -0
- package/chunks/{chunk-HSN5QUS7.js → chunk-SJNQ6I23.js} +1 -1
- package/chunks/{chunk-3NB3FFLR.js → chunk-T2GM4S4G.js} +3 -3
- package/chunks/{chunk-GN7ODRDE.js → chunk-TCQJO42E.js} +1 -1
- package/chunks/{chunk-67PM7M5R.js → chunk-TIIDF23U.js} +2 -2
- package/chunks/{chunk-USR2Y7B3.js → chunk-TKH5R7RZ.js} +1 -1
- package/chunks/{chunk-GTQULDIL.js → chunk-TSRTZD3X.js} +1 -1
- package/chunks/{chunk-GXNGLDUN.js → chunk-UXSXKLRH.js} +1 -1
- package/chunks/{chunk-JJQJFMPL.js → chunk-UYI5AMPI.js} +1 -1
- package/chunks/{chunk-SHKSVOTG.js → chunk-VO6SPDH4.js} +1 -1
- package/chunks/{chunk-AE6E2YKY.js → chunk-VRIHYTDI.js} +1 -1
- package/chunks/{chunk-6T25QVBX.js → chunk-VT47A26Q.js} +1 -1
- package/chunks/{chunk-2VW4HXVF.js → chunk-VZOZUCZX.js} +1 -1
- package/chunks/{chunk-724YPZRX.js → chunk-WLEGTKGA.js} +1 -1
- package/chunks/{chunk-ZOWMHZWO.js → chunk-XHCJN4A2.js} +1 -1
- package/chunks/{chunk-J773THNP.js → chunk-XTRZ5PHG.js} +1 -1
- package/chunks/{chunk-H65ZVST6.js → chunk-Y4GZOZWD.js} +1 -1
- package/chunks/{chunk-E6LRCLLE.js → chunk-YUCAGV52.js} +2 -2
- package/chunks/{chunk-FS67DOZQ.js → chunk-YWQM4TSO.js} +1 -1
- package/chunks/{chunk-P42MFWO2.js → chunk-YYTOHY4V.js} +1 -1
- package/chunks/{chunk-PSSJDUZB.js → chunk-Z25W2S5N.js} +1 -1
- package/chunks/{chunk-VF2UWWI2.js → chunk-Z6GECBAJ.js} +1 -1
- package/chunks/{chunk-HZ4L4MDM.js → chunk-ZJU4B4WX.js} +1 -1
- package/chunks/{chunk-RRMTSVGU.js → chunk-ZSHDQPAO.js} +1 -1
- package/chunks/{chunk-PFKTTUGS.js → chunk-ZUWLTGSR.js} +6 -6
- package/chunks/{codex-subagent-executor-UCDGQFTR.js → codex-subagent-executor-2V4NB7IR.js} +1 -1
- package/chunks/{config-utils-Z6F4DVLG.js → config-utils-5B2LYCON.js} +1 -1
- package/chunks/{contextCommand-HMVZT56Y.js → contextCommand-UPQGRXWK.js} +1 -1
- package/chunks/{core-runtime-AV7CJXOL.js → core-runtime-DPMH2BXK.js} +1 -1
- package/chunks/{create-sub-session-NNKVHZKT.js → create-sub-session-EJVB3FE5.js} +1 -1
- package/chunks/{cron-create-HWZDFVPA.js → cron-create-V2A7PMQC.js} +1 -1
- package/chunks/{daemon-git-worktree-guard-Q3C45X7T.js → daemon-git-worktree-guard-YEIMR2X7.js} +1 -1
- package/chunks/{daemon-status-provider-UX574XBB.js → daemon-status-provider-6BRB5TG3.js} +1 -1
- package/chunks/{daemon-trust-policy-6D4KJANB.js → daemon-trust-policy-BEXVFO4M.js} +1 -1
- package/chunks/{daemon-trust-policy-monitor-BZ46W4IA.js → daemon-trust-policy-monitor-BVS6LXBX.js} +1 -1
- package/chunks/{deferred-core-runtime-YC5XIWEI.js → deferred-core-runtime-NTKFHL5J.js} +1 -1
- package/chunks/{edit-LOWDEKPX.js → edit-LRG3TMHP.js} +1 -1
- package/chunks/{enterPlanMode-NGSATDRH.js → enterPlanMode-KOUSHJHR.js} +1 -1
- package/chunks/{environment-CVIB5DW4.js → environment-54CM3OXE.js} +1 -1
- package/chunks/{errors-USKSVZFO.js → errors-D6XR3NH4.js} +1 -1
- package/chunks/{execution-tool-QSJLRU5N.js → execution-tool-7RZ2JLEK.js} +1 -1
- package/chunks/{execution-worker-TQEIC4AJ.js → execution-worker-LXQ7WAFG.js} +1 -1
- package/chunks/{exitPlanMode-AW2HOTIK.js → exitPlanMode-4FGFA2QC.js} +1 -1
- package/chunks/{fast-path-OQWHYDXC.js → fast-path-4B7OKPYK.js} +1 -1
- package/chunks/{glob-7U6FQSWZ.js → glob-N2D7SY23.js} +1 -1
- package/chunks/{goal-tools-5ZB6GPCJ.js → goal-tools-7RNSDRFO.js} +1 -1
- package/chunks/{handleAutoUpdate-MLUFTWFP.js → handleAutoUpdate-PKKJQAKG.js} +1 -1
- package/chunks/{i18n-QAPQLOC3.js → i18n-F3OAHCLJ.js} +1 -1
- package/chunks/{initializer-B27IZ7K4.js → initializer-OL3DDWR7.js} +1 -1
- package/chunks/{installationInfo-SAMHABWV.js → installationInfo-D2L743RV.js} +1 -1
- package/chunks/{interactive-mod-session-7LQ5CYUR.js → interactive-mod-session-2GXRCQKR.js} +1 -1
- package/chunks/{list-TDMJQDQO.js → list-PU7ZXBY5.js} +1 -1
- package/chunks/{llm-R2RFT63S.js → llm-V42HGUVH.js} +4 -4
- package/chunks/{loadedSettingsAdapter-ZQK5KMEW.js → loadedSettingsAdapter-KAEVWWRX.js} +1 -1
- package/chunks/{local-AONDQYFL.js → local-KM5F5RAB.js} +1 -1
- package/chunks/{local-execution-environment-WJVCE26F.js → local-execution-environment-OEO2KW3M.js} +1 -1
- package/chunks/{loggingContentGenerator-ALSG42YA.js → loggingContentGenerator-DQLXSDZR.js} +1 -1
- package/chunks/{loop-wakeup-LFU4LDJM.js → loop-wakeup-CJICM24Y.js} +1 -1
- package/chunks/{manage-memory-FBL6CHX2.js → manage-memory-7CV6LF4C.js} +1 -1
- package/chunks/{managed-execution-engine-FX7FDAWW.js → managed-execution-engine-JEAIQ7L4.js} +1 -1
- package/chunks/{managed-local-serve-DRNC6PTL.js → managed-local-serve-KA37YWRW.js} +1 -1
- package/chunks/{managed-npm-update-2MKV7UOI.js → managed-npm-update-TSUUH3NN.js} +1 -1
- package/chunks/{managed-runtime-attestation-worker-DBAHM5MN.js → managed-runtime-attestation-worker-PUZ2ECM5.js} +1 -1
- package/chunks/{managed-runtime-bootstrap-K3GRKDNQ.js → managed-runtime-bootstrap-SERIRKPD.js} +1 -1
- package/chunks/{managed-runtime-session-worker-YN4KML7A.js → managed-runtime-session-worker-UOXK63YX.js} +1 -1
- package/chunks/{managed-runtime-ssh-worker-AVNBWFYC.js → managed-runtime-ssh-worker-VKZYIX6R.js} +1 -1
- package/chunks/{managed-session-authority-MFEINLXC.js → managed-session-authority-5FYS3G3M.js} +1 -1
- package/chunks/{mcp-TS5PX5FY.js → mcp-TRPV3K74.js} +1 -1
- package/chunks/{memory-JVT5LAWJ.js → memory-5CMNRPM2.js} +1 -1
- package/chunks/{model-call-collection-TNBMD3YL.js → model-call-collection-S4JKVFUO.js} +1 -1
- package/chunks/{model-configuration-6KTQQTMO.js → model-configuration-NEIDLKWQ.js} +1 -1
- package/chunks/{modelConfigUtils-LCZZ3EQU.js → modelConfigUtils-LZLQOZKJ.js} +1 -1
- package/chunks/{monitor-KCCNIKLE.js → monitor-5MNKK5AO.js} +1 -1
- package/chunks/{nonInteractiveCli-2GHQYHGW.js → nonInteractiveCli-DDTGU2ER.js} +1 -1
- package/chunks/{nonInteractiveToolExecutor-R5CTTWKD.js → nonInteractiveToolExecutor-N7PCYCKO.js} +1 -1
- package/chunks/{notebook-edit-KIWE2XOA.js → notebook-edit-7HIBTFFW.js} +1 -1
- package/chunks/{omni-IFTMWBMU.js → omni-MX7BMOL5.js} +1 -1
- package/chunks/{openaiContentGenerator-XP3VPU6C.js → openaiContentGenerator-NOIIZNRX.js} +1 -1
- package/chunks/{openaiResponsesContentGenerator-ZJ6C22EA.js → openaiResponsesContentGenerator-5JJ6G7RS.js} +1 -1
- package/chunks/{pidfile-42P24JIA.js → pidfile-OHAGZOTV.js} +1 -1
- package/chunks/{processUtils-I2XOO5U2.js → processUtils-TCDNCYVB.js} +1 -1
- package/chunks/{prompt-terminal-ledger-7EW46VQ4.js → prompt-terminal-ledger-4ZUOCMOS.js} +1 -1
- package/chunks/{reactive-degrade-O4JO7MOX.js → reactive-degrade-C7CGUJNP.js} +1 -1
- package/chunks/{read-file-VGC4O7F2.js → read-file-L4ZF6VDG.js} +1 -1
- package/chunks/{resumeHistoryUtils-QMVIHQRW.js → resumeHistoryUtils-WK3I4OIL.js} +1 -1
- package/chunks/{review-NDK2B7XI.js → review-F6JGI2LP.js} +1 -1
- package/chunks/{ripGrep-JY4PZABK.js → ripGrep-L6M2GPCM.js} +1 -1
- package/chunks/{run-qwen-serve-P5X5OZUH.js → run-qwen-serve-D5HB55SC.js} +1 -1
- package/chunks/{runtime-OL7B72CH.js → runtime-CH3RAOQL.js} +1 -1
- package/chunks/{sandboxConfig-EJTMWZHD.js → sandboxConfig-EADWCO37.js} +1 -1
- package/chunks/{scheduled-tasks-XQSZWZXG.js → scheduled-tasks-PBKD4BHY.js} +1 -1
- package/chunks/{scheduler-3TIRZEVB.js → scheduler-U5K3523K.js} +1 -1
- package/chunks/{search-memory-P5KOTUVV.js → search-memory-Y2IPKBDP.js} +1 -1
- package/chunks/{send-message-KFSKFXLX.js → send-message-JJQG2S6D.js} +1 -1
- package/chunks/{serve-UHEH433U.js → serve-2ZYS47MO.js} +1 -1
- package/chunks/{server-ARYDETSZ.js → server-5GMO4IHU.js} +3 -3
- package/chunks/{session-HKWGCZF2.js → session-LLOOVSHK.js} +1 -1
- package/chunks/{session-attachments-root-O3YQ7HWD.js → session-attachments-root-XCLXH2XO.js} +1 -1
- package/chunks/{session-execution-engine-selector-LZBHS3UO.js → session-execution-engine-selector-5QPWJZSF.js} +1 -1
- package/chunks/{session-pr-refresh-L5Z5WCXS.js → session-pr-refresh-MDBOAN3R.js} +1 -1
- package/chunks/{sessionService-MMPZUN5X.js → sessionService-VKAHCTCC.js} +1 -1
- package/chunks/{settings-7PYHXPN4.js → settings-ULEB2IYZ.js} +1 -1
- package/chunks/{shell-E6QLKRVU.js → shell-RBEKIYKU.js} +1 -1
- package/chunks/{skill-55IZUUM5.js → skill-GEVOEFMZ.js} +1 -1
- package/chunks/{skill-settings-A2M5BPH7.js → skill-settings-4IMGLYJW.js} +1 -1
- package/chunks/{spawnChannel-KWU26CB7.js → spawnChannel-B7L5PWQ6.js} +1 -1
- package/chunks/{standalone-update-32WYZ3BJ.js → standalone-update-SYQM6NOC.js} +1 -1
- package/chunks/{start-opentui-ui-S7A4FBGP.js → start-opentui-ui-N427PLF4.js} +2 -2
- package/chunks/{startInteractiveUI-DY6DWFW7.js → startInteractiveUI-AS6GZKJJ.js} +1 -1
- package/chunks/{team-create-ARICYIQB.js → team-create-MN6FHUHU.js} +1 -1
- package/chunks/{team-plan-approval-JPRE6Q3R.js → team-plan-approval-OUYBIT7H.js} +1 -1
- package/chunks/{terminal-image-renderer-HVIZ2VNE.js → terminal-image-renderer-MXZDUEOS.js} +1 -1
- package/chunks/{theme-manager-UEPLIBUP.js → theme-manager-QOYSKWFK.js} +1 -1
- package/chunks/{tool-call-EFJKXI3Z.js → tool-call-Q5NLEQFD.js} +1 -1
- package/chunks/{tool-result-media-LMIYNXSD.js → tool-result-media-NZJZTOBQ.js} +1 -1
- package/chunks/{tool-search-D7HQTRQG.js → tool-search-D6Y45RNQ.js} +1 -1
- package/chunks/{total-session-admission-67QMR44O.js → total-session-admission-36W7MDHP.js} +1 -1
- package/chunks/{trustedFolders-HARYVS3F.js → trustedFolders-XW5VH6HK.js} +1 -1
- package/chunks/{update-relaunch-NVNPOK5J.js → update-relaunch-KQPR2HAP.js} +1 -1
- package/chunks/{updateCheck-7NMXUCTN.js → updateCheck-SRW67WAX.js} +1 -1
- package/chunks/{upload-config-W2SICJ32.js → upload-config-BTJNYMRX.js} +1 -1
- package/chunks/{useAutoAcceptIndicator-ELMIP4TJ.js → useAutoAcceptIndicator-N3RRUBSL.js} +1 -1
- package/chunks/{validateNonInterActiveAuth-P2F6MYO6.js → validateNonInterActiveAuth-SWNH4FY4.js} +1 -1
- package/chunks/{version-2ZFKVIIW.js → version-6R6LSGXO.js} +1 -1
- package/chunks/{web-fetch-537RS6IX.js → web-fetch-Y7LBAU3R.js} +1 -1
- package/chunks/{web-search-O27MYFSW.js → web-search-IB4NYYUH.js} +1 -1
- package/chunks/{workflow-6QF4RMYM.js → workflow-TR4YIPJO.js} +1 -1
- package/chunks/{workflow-ancestor-trust-CABLU3VV.js → workflow-ancestor-trust-AHDUBOR7.js} +1 -1
- package/chunks/{workspace-agents-5WP3PY7W.js → workspace-agents-MY2NFL6A.js} +1 -1
- package/chunks/{workspace-providers-status-7G2EJJEO.js → workspace-providers-status-DNCCKFVE.js} +1 -1
- package/chunks/{workspace-recovery-worker-ICCIDEWU.js → workspace-recovery-worker-22VK4T4R.js} +1 -1
- package/chunks/{workspace-registration-store-WHXMNQQQ.js → workspace-registration-store-64TGRRGC.js} +1 -1
- package/chunks/{workspace-registry-NXBODLYH.js → workspace-registry-E6LFL5GL.js} +1 -1
- package/chunks/{workspace-runtime-coordinator-CJXS273B.js → workspace-runtime-coordinator-UHJHBIQT.js} +1 -1
- package/chunks/{workspace-service-HUDE2RXN.js → workspace-service-OVEYIQOC.js} +1 -1
- package/chunks/{workspace-skills-status-FJC6U62F.js → workspace-skills-status-3NKXA5SK.js} +1 -1
- package/chunks/{workspace-trust-reconciler-ZIQ3A5ZB.js → workspace-trust-reconciler-JF7YHR52.js} +1 -1
- package/chunks/{write-file-652YGG7I.js → write-file-FSTHYKKZ.js} +1 -1
- package/chunks/{zoom-image-YEH4O74G.js → zoom-image-JP3EUDXE.js} +1 -1
- package/cli.js +2 -2
- package/execution-worker.js +1 -1
- package/package.json +2 -2
- package/chunks/chunk-56PVVXUG.js +0 -8
- package/chunks/chunk-AJ75BPTA.js +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{formatLoopDetectedMessage,settleChatRecording,subscribeToHeadlessChatRecordingFailures}from"./chunk-
|
|
3
|
+
import{formatLoopDetectedMessage,settleChatRecording,subscribeToHeadlessChatRecordingFailures}from"./chunk-GYXRI4P5.js";import{JsonOutputAdapter}from"./chunk-EAG7VZJJ.js";import{StreamJsonOutputAdapter}from"./chunk-JS6VAGRQ.js";import{normalizePartList}from"./chunk-HIO3M52C.js";import{handleAtCommand}from"./chunk-C6HVNDQT.js";import{buildInitialSystemReminders,buildSystemMessage,computeUsageFromMetrics,createAgentToolProgressHandler,createToolProgressHandler,extractPartsFromUserMessage,handleSlashCommand,insertAfterFunctionResponses,isSlashCommand}from"./chunk-T2GM4S4G.js";import{formatDuration}from"./chunk-7EFWNFJJ.js";import{ModSession}from"./chunk-VRIHYTDI.js";import{frameModPrompt}from"./chunk-5KRYBTZV.js";import{cleanupReviewWorktreeLeases}from"./chunk-MTBU2ZIM.js";import{RunBudgetEnforcer}from"./chunk-DP7LJTG2.js";import{sanitizeTerminalText}from"./chunk-64CA3W6G.js";import{AlreadyReportedError,handleBudgetExceededError,handleCancellationError,handleError,handleMaxTurnsExceededError,handleToolError}from"./chunk-RR3NFNWL.js";import{t}from"./chunk-AUM57JI2.js";import{isInlineModelOverrideAllowed}from"./chunk-YQXX44YA.js";import{buildGoalContinuationParts,buildSessionRecoveryPlanFromApiHistory,detectAutonomousSentinel,detectLoopSentinel}from"./chunk-E4REGDEZ.js";import{restoreWorktreeContext}from"./chunk-DVN6DAWO.js";import{executeToolCall}from"./chunk-XHCJN4A2.js";import{GoalPersistenceUnavailableError,PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,createDuplicateProviderToolCallResponse,finalizeToolResponses,findPlanModeEntryBatchBoundaryIndex,findRepeatedDuplicateProviderToolCall,getCachedToolCallFingerprint,getLastApiPromptCancellation,goalToolResultProvenance,isReplayOfHandledToolCall,isToolCallConcurrencySafe,markDuplicateProviderToolCallResponseSent,parseAndFormatApiError,partitionByConcurrencySafety,recordHandledToolCall,runAgentLoop}from"./chunk-ZUWLTGSR.js";import{shellResultText}from"./chunk-T7CHK6C2.js";import{parsePositiveIntegerEnv}from"./chunk-BG67XABA.js";import{GOAL_PAUSE_REASON_HEADLESS_RUN_ENDED,GOAL_PAUSE_REASON_USER_INTERRUPT,addAgentOutputMessageAttributes,goalPauseReasonForHeadlessFailure,goalPauseReasonForRunBudget}from"./chunk-7Z2ZH5CW.js";import{promptIdContext}from"./chunk-MWGB5RCF.js";import{formatFullTurnVisionNotice,formatVisionBridgeNotice,getFullTurnVisionModelSelector,hasImageParts,runVisionBridge,shouldRunVisionBridge,splitImageParts,uiTelemetryService}from"./chunk-MJEL7DIE.js";import{clampInlineMediaPart}from"./chunk-Q6UAOTP3.js";import{endInteractionSpan,getActiveInteractionSpan,isTelemetrySdkInitialized,shutdownTelemetry}from"./chunk-JJAEIBSV.js";import{registerCleanup}from"./chunk-QRGWB7IX.js";import{isWrappedSystemReminderPart}from"./chunk-DMM5LJWL.js";import{ToolNames,canonicalToolName}from"./chunk-SBZFGYYS.js";import{createDebugLogger}from"./chunk-46KPDLFH.js";import{FatalInputError,getErrorType}from"./chunk-E7MYPQGV.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();init_esbuild_shims();var debugLogger=createDebugLogger("NON_INTERACTIVE_CLI");async function waitForPendingMemoryTasks(client,signal,memoryWaitStopSignal){const promises=client.getPendingMemoryTaskPromises();if(promises.length===0)return;const pending=new Set(promises);const settled=Promise.allSettled(promises.map(promise=>promise.then(()=>{pending.delete(promise)},()=>{pending.delete(promise)})));let stopWaiting;const stopped=new Promise(resolve=>{stopWaiting=resolve});signal.addEventListener("abort",stopWaiting,{once:true});memoryWaitStopSignal?.addEventListener("abort",stopWaiting,{once:true});try{if(signal.aborted||memoryWaitStopSignal?.aborted){stopWaiting()}else{debugLogger.debug(`[runNonInteractive] Waiting for ${promises.length} tracked memory task(s)`)}await Promise.race([settled,stopped])}finally{signal.removeEventListener("abort",stopWaiting);memoryWaitStopSignal?.removeEventListener("abort",stopWaiting);client.removePendingMemoryTaskPromises(promises.filter(promise=>!pending.has(promise)))}if(signal.aborted){debugLogger.debug("[runNonInteractive] Abandoned memory wait after abort; tasks may still be running");signal.throwIfAborted()}if(pending.size>0&&memoryWaitStopSignal?.aborted){debugLogger.debug(`[runNonInteractive] Stopped waiting at the session EOF deadline; ${pending.size} tracked memory task(s) may still be running`);return}debugLogger.debug("[runNonInteractive] Tracked memory tasks settled")}__name(waitForPendingMemoryTasks,"waitForPendingMemoryTasks");var debugLogger2=createDebugLogger("NON_INTERACTIVE_CLI");var TurnInterruptedError=class extends Error{static{__name(this,"TurnInterruptedError")}constructor(){super("Operation cancelled.");this.name="TurnInterruptedError"}};var ModTurnAbortedError=class extends TurnInterruptedError{static{__name(this,"ModTurnAbortedError")}constructor(){super();this.message="A Mod ended the turn."}};var restoredBackgroundAgentSessions=new WeakMap;var STRUCTURED_SHUTDOWN_HOLDBACK_MS=500;var ONE_SHOT_MEMORY_WAIT_TIMEOUT_MS=5e3;function isHeadlessLoopSentinel(prompt){return detectLoopSentinel(prompt)!==null||detectAutonomousSentinel(prompt)!==null}__name(isHeadlessLoopSentinel,"isHeadlessLoopSentinel");var SUPPRESSED_OUTPUT_SUCCESS="Skipped: this turn's structured_output contract took precedence as the terminal output.";var SUPPRESSED_OUTPUT_RETRY=`${SUPPRESSED_OUTPUT_SUCCESS} Re-issue this call in a separate turn if needed.`;function suppressedOutputBody(structuredCaptured){return structuredCaptured?SUPPRESSED_OUTPUT_SUCCESS:SUPPRESSED_OUTPUT_RETRY}__name(suppressedOutputBody,"suppressedOutputBody");function sameGoalPermit(left,right){return left?.goalId===right.goalId&&left.revision===right.revision&&left.turnId===right.turnId}__name(sameGoalPermit,"sameGoalPermit");function formatGoalState(snapshot,operation){const goal=snapshot.goal;if(!goal){return operation==="clear"?"Goal cleared.":"No Goal is set."}const status=goal.status==="usage_limited"?"usage limited":goal.status;const summary=`Goal ${status}: ${goal.objective}`;const usage=[];if(goal.turnCount>0){const turns=goal.turnBudget??goal.turnCount;usage.push(`${goal.turnCount}${goal.turnBudget===void 0?"":` of ${goal.turnBudget}`} ${turns===1?"turn":"turns"}`)}if(goal.activeTimeMs>0&&goal.activeTimeBudgetMs!==void 0){usage.push(`${formatDuration(goal.activeTimeMs,{hideTrailingZeros:true})} of ${formatDuration(goal.activeTimeBudgetMs,{hideTrailingZeros:true})} active`)}if(goal.tokensUsed>0){const used=goal.tokensUsed.toLocaleString("en-US");usage.push(goal.tokenBudget===void 0?`${used} tokens`:`${used} of ${goal.tokenBudget.toLocaleString("en-US")} tokens`)}const lines=[summary];if(usage.length>0)lines.push(`Usage: ${usage.join(" \xB7 ")}`);if(goal.status!=="active"&&goal.lastReason){lines.push(`Reason: ${sanitizeTerminalText(goal.lastReason)}`)}return lines.join("\n")}__name(formatGoalState,"formatGoalState");async function claimUserGoalTurn(runtime,turnKey,signal){const immediate=runtime.permitForTurn(turnKey)??runtime.beginTurn(turnKey);if(immediate||runtime.getSnapshot().goal?.status!=="active"){return immediate}return new Promise((resolve,reject)=>{let settled=false;let unsubscribe=__name(()=>{},"unsubscribe");const finish=__name((permit,error)=>{if(settled)return;settled=true;unsubscribe();signal.removeEventListener("abort",onAbort);if(error!==void 0)reject(error);else resolve(permit)},"finish");const inspect=__name(()=>{try{const permit=runtime.permitForTurn(turnKey);if(permit||runtime.getSnapshot().goal?.status!=="active"){finish(permit)}}catch(error){finish(void 0,error)}},"inspect");const onAbort=__name(()=>finish(void 0),"onAbort");unsubscribe=runtime.subscribe(inspect);signal.addEventListener("abort",onAbort,{once:true});if(signal.aborted)onAbort();else inspect()})}__name(claimUserGoalTurn,"claimUserGoalTurn");function skipHeadlessLoopSentinel(scheduler,job){if(!isHeadlessLoopSentinel(job.prompt)){return false}if(job.recurring&&!job.durable){debugLogger2.debug("skipHeadlessLoopSentinel: cleaning up recurring session loop.md cron in headless mode",{jobId:job.id});void scheduler.delete(job.id).catch(()=>{})}return true}__name(skipHeadlessLoopSentinel,"skipHeadlessLoopSentinel");var PROVIDER_DUPLICATE_ID_LOOP_STOP={loopType:"global_tool_call_duplicate",loopReason:"provider_duplicate_id"};function emitLoopDetectedMessage(config,stop){const message=formatLoopDetectedMessage(stop);if(config.getOutputFormat()!=="text"){return message}process.stderr.write(`${message}
|
|
4
4
|
`);return message}__name(emitLoopDetectedMessage,"emitLoopDetectedMessage");function emitNonInteractiveAssistantText(adapter,message){adapter.startAssistantMessage();adapter.processEvent({type:"content",value:message});adapter.finalizeAssistantMessage()}__name(emitNonInteractiveAssistantText,"emitNonInteractiveAssistantText");async function emitNonInteractiveFinalMessage(params){const{message,isError,adapter,config}=params;emitNonInteractiveAssistantText(adapter,message);const metrics=uiTelemetryService.getMetrics();const usage=computeUsageFromMetrics(metrics);const outputFormat=config.getOutputFormat();const stats=outputFormat==="json"?uiTelemetryService.getMetrics():void 0;await params.beforeEmit();adapter.emitResult({isError,durationMs:Date.now()-params.startTimeMs,apiDurationMs:0,numTurns:0,errorMessage:isError?message:void 0,usage,stats,summary:message})}__name(emitNonInteractiveFinalMessage,"emitNonInteractiveFinalMessage");function partitionHeadlessToolCalls(requests,config){let skillBefore=false;return partitionByConcurrencySafety(requests,request=>{const executionRequest=getHeadlessExecutionRequest(request,config);const canonicalName=canonicalToolName(executionRequest.name);const kind=config.getToolRegistry().getTool(canonicalName)?.kind;const inputMayChange=kind==="execute"&&(skillBefore||!config.getDisableAllHooks()&&(config.hasHooksForEvent("PreToolUse")||config.hasHooksForEvent("PermissionRequest")));skillBefore||=canonicalName===ToolNames.SKILL;return!inputMayChange&&isToolCallConcurrencySafe(executionRequest.name,kind,executionRequest.args)})}__name(partitionHeadlessToolCalls,"partitionHeadlessToolCalls");function getHeadlessExecutionRequest(request,config){if(canonicalToolName(request.name)!==ToolNames.TOOL_CALL){return request}const targetName=request.args["name"];let targetArgs=request.args["arguments"];if(typeof targetArgs==="string"){try{targetArgs=JSON.parse(targetArgs)}catch{return request}}if(typeof targetName!=="string"||typeof targetArgs!=="object"||targetArgs===null||Array.isArray(targetArgs)){return request}const registry=config.getToolRegistry();const target=registry.getTool(canonicalToolName(targetName));if(!target||!registry.isDeferredAndHidden(target.name)){return request}return{...request,name:target.name,args:targetArgs}}__name(getHeadlessExecutionRequest,"getHeadlessExecutionRequest");async function runNonInteractive(config,settings,input,prompt_id,options={}){return promptIdContext.run(prompt_id,async()=>{let adapter;const outputFormat=config.getOutputFormat();if(options.adapter){adapter=options.adapter}else if(outputFormat==="stream-json"){adapter=new StreamJsonOutputAdapter(config,config.getIncludePartialMessages())}else{adapter=new JsonOutputAdapter(config)}const ownsAdapter=options.adapter===void 0;const modSession=options.modSession??ModSession.create(config,settings,adapter);const ownsModSession=options.modSession===void 0;let modTurn;const unsubscribeRecordingFailure=ownsAdapter?subscribeToHeadlessChatRecordingFailures(config,adapter):void 0;let chatRecordingSettlement;const settleBeforeTerminalOutput=__name(()=>{chatRecordingSettlement??=(async()=>{await modTurn?.complete(abortController.signal.aborted&&!budgetEnforcer.getExceeded()?"aborted":"error");if(ownsModSession)await modSession?.close();modSession?.flushLogs();await settleChatRecording(config,{finalize:ownsAdapter})})();return chatRecordingSettlement},"settleBeforeTerminalOutput");const drainPendingMemoryTasks=__name((successTerminal=false)=>{const client=config.getLlmClient();if(options.memoryWaitStopSignal){return waitForPendingMemoryTasks(client,abortController.signal,options.memoryWaitStopSignal)}if(successTerminal){return waitForPendingMemoryTasks(client,abortController.signal)}const oneShotMemoryWindow=new AbortController;const oneShotMemoryWindowTimer=setTimeout(()=>oneShotMemoryWindow.abort(),ONE_SHOT_MEMORY_WAIT_TIMEOUT_MS);return waitForPendingMemoryTasks(client,abortController.signal,oneShotMemoryWindow.signal).finally(()=>clearTimeout(oneShotMemoryWindowTimer))},"drainPendingMemoryTasks");let resultEmitted=false;const emitResult=__name(async result=>{try{await settleBeforeTerminalOutput();adapter.emitResult(result);resultEmitted=true;options.onResultEmitted?.();await modSession?.flushOutput()}finally{await drainPendingMemoryTasks(!result.isError)}},"emitResult");const sessionId=config.getSessionId();const permissionMode=config.getApprovalMode();const cleanupReviewWorktrees=__name(gitTimeout=>{if(config.getShellExecutionSandbox?.())return;cleanupReviewWorktreeLeases({sessionId,promptId:prompt_id,repositoryRoot:config.getProjectRoot(),gitTimeout})},"cleanupReviewWorktrees");const unregisterReviewWorktreeCleanup=registerCleanup(()=>cleanupReviewWorktrees(1e3));let turnCount=0;let limitedTurnCount=0;let totalApiDurationMs=0;const startTime=Date.now();let activeInteractionPromptId=prompt_id;let activeInteractionOwner;const selectActiveInteraction=__name((promptId,startsInteraction=false)=>{if(startsInteraction||activeInteractionPromptId!==promptId){activeInteractionOwner=void 0}activeInteractionPromptId=promptId},"selectActiveInteraction");const captureActiveInteractionOwner=__name(()=>{activeInteractionOwner??=getActiveInteractionSpan(activeInteractionPromptId);return activeInteractionOwner},"captureActiveInteractionOwner");const endActiveInteraction=__name((status,metadata={})=>{const owner=captureActiveInteractionOwner();if(!owner||getActiveInteractionSpan(activeInteractionPromptId)!==owner){return}endInteractionSpan(status,{promptId:activeInteractionPromptId,...metadata})},"endActiveInteraction");const llmClient=config.getLlmClient();const abortController=options.abortController??new AbortController;const queuedGoalTurns=[];let activeGoalTurn;let goalRuntimeUnsubscribe;const emitGoalSnapshot=__name(snapshot=>{adapter.processEvent({type:"goal_state",value:snapshot})},"emitGoalSnapshot");const observeGoalRuntime=__name(runtime=>{goalRuntimeUnsubscribe??=runtime.subscribe(emitGoalSnapshot)},"observeGoalRuntime");const enforceSessionTurnLimit=__name(async isRuntimeGoalTurn=>{if(isRuntimeGoalTurn)return;limitedTurnCount++;const maxSessionTurns=config.getMaxSessionTurns();if(maxSessionTurns>=0&&limitedTurnCount>maxSessionTurns){await failClosedActiveGoalTurn("Headless Goal stopped after the session turn limit");await settleBeforeTerminalOutput();await handleMaxTurnsExceededError(config)}},"enforceSessionTurnLimit");let goalHostUnbind;const goalHost={startGoalTurn:__name(async input2=>{if(queuedGoalTurns.some(({permit:permit2})=>permit2.turnId===input2.permit.turnId)){return}const{permit,...continuation}=input2;queuedGoalTurns.push({permit:{...permit},turnKey:`goal-runtime:${permit.turnId}`,controller:new AbortController,origin:"runtime",...continuation})},"startGoalTurn"),preemptGoalTurn:__name(reason=>{for(const turn of queuedGoalTurns.splice(0)){turn.controller.abort(reason)}activeGoalTurn?.controller.abort(reason)},"preemptGoalTurn")};const bindGoalHost=__name(()=>{goalHostUnbind??=config.bindGoalTurnHost(goalHost)},"bindGoalHost");const markGoalTurnDelivered=__name(turn=>{try{config.getGoalRuntime().markTurnDelivered(turn.turnKey)}catch{}},"markGoalTurnDelivered");let settlingGoalTurn;let goalTurnSettlement;const failClosedActiveGoalTurn=__name((reason,pauseReason)=>{const turn=activeGoalTurn;if(!turn)return Promise.resolve();if(settlingGoalTurn===turn&&goalTurnSettlement){return goalTurnSettlement}settlingGoalTurn=turn;goalTurnSettlement=(async()=>{if(!turn.controller.signal.aborted){turn.controller.abort(reason)}try{const runtime=await config.getGoalRuntimeReady();if(!sameGoalPermit(runtime.permitForTurn(turn.turnKey),turn.permit)){return}if(runtime.getSnapshot().goal?.status==="active"){try{await runtime.dispatch({action:"pause",expectedGoalId:turn.permit.goalId,expectedRevision:turn.permit.revision,reason:pauseReason??goalPauseReasonForHeadlessFailure(reason)})}catch(error){debugLogger2.warn("Failed to pause terminal headless Goal",error)}}try{await config.getChatRecordingService?.()?.flush()}catch(error){debugLogger2.warn("Failed to flush terminal headless Goal",error)}if(sameGoalPermit(runtime.permitForTurn(turn.turnKey),turn.permit)){await runtime.finishTurn(turn.permit)}}catch(error){debugLogger2.warn("Failed to close terminal headless Goal",error)}finally{if(activeGoalTurn===turn){activeGoalTurn=void 0}if(settlingGoalTurn===turn){settlingGoalTurn=void 0;goalTurnSettlement=void 0}}})();return goalTurnSettlement},"failClosedActiveGoalTurn");const finishGoalTurn=__name(async turn=>{const runtime=await config.getGoalRuntimeReady();if(!sameGoalPermit(runtime.permitForTurn(turn.turnKey),turn.permit)){return}let abortSettlement;const pauseOnAbort=__name(()=>{const exceeded=budgetEnforcer.getExceeded();abortSettlement??=runtime.dispatch({action:"pause",expectedGoalId:turn.permit.goalId,expectedRevision:turn.permit.revision,reason:exceeded?goalPauseReasonForRunBudget(exceeded.kind):GOAL_PAUSE_REASON_USER_INTERRUPT}).then(()=>void 0).catch(error=>{debugLogger2.warn("Failed to pause aborted headless Goal",error)})},"pauseOnAbort");abortController.signal.addEventListener("abort",pauseOnAbort,{once:true});if(abortController.signal.aborted)pauseOnAbort();try{if(!abortController.signal.aborted){await runtime.finishTurn(turn.permit)}}finally{abortController.signal.removeEventListener("abort",pauseOnAbort);await abortSettlement}},"finishGoalTurn");const budgetEnforcer=new RunBudgetEnforcer({maxWallTimeSeconds:config.getMaxWallTimeSeconds(),maxToolCalls:config.getMaxToolCalls()},abortController);const stampBudgetAbort=__name(()=>{const exceeded=budgetEnforcer.getExceeded();if(!exceeded)return;endActiveInteraction("error",{errorMessage:exceeded.message,errorType:"run_budget_exceeded"})},"stampBudgetAbort");abortController.signal.addEventListener("abort",stampBudgetAbort,{once:true});budgetEnforcer.start();let abortExitCommitted=false;const markAbortExitCommitted=__name(()=>{abortExitCommitted=true},"markAbortExitCommitted");const routeAbort=__name(async()=>{const exceeded=budgetEnforcer.getExceeded();endActiveInteraction(exceeded?"error":"cancelled",{...exceeded?{errorMessage:exceeded.message,errorType:"run_budget_exceeded"}:{}});await failClosedActiveGoalTurn(exceeded?.message??"Headless Goal execution was cancelled",exceeded?goalPauseReasonForRunBudget(exceeded.kind):GOAL_PAUSE_REASON_USER_INTERRUPT);await settleBeforeTerminalOutput();if(exceeded){await handleBudgetExceededError(config,exceeded,markAbortExitCommitted);throw new Error(exceeded.message)}const reason=abortController.signal.reason;if(reason instanceof TurnInterruptedError&&(options.recoverableCancellation===true||reason instanceof ModTurnAbortedError)){throw reason}await handleCancellationError(config,markAbortExitCommitted);throw new Error("Operation cancelled.")},"routeAbort");const localQueue=[];const pullModPrompts=__name(()=>{for(let prompt=modSession?.takeSubmittedPrompt();prompt;prompt=modSession?.takeSubmittedPrompt())localQueue.push({displayText:prompt.text,modelText:frameModPrompt(prompt),sendMessageType:"userQuery",modPrompt:prompt})},"pullModPrompts");const sdkOnlyMonitorQueue=[];const isCancelledMonitorEvent=__name(item=>Boolean(item.monitorId&&item.sdkNotification?.status==="running"&&config.getMonitorRegistry().get(item.monitorId)?.status==="cancelled"),"isCancelledMonitorEvent");const emitNotificationToSdk=__name(item=>{if(item.sendMessageType!=="notification")return;adapter.emitUserMessage([{text:item.displayText}]);if(item.sdkNotification){adapter.emitSystemMessage("task_notification",item.sdkNotification)}},"emitNotificationToSdk");const emitModPromptToSdk=__name(prompt=>{adapter.emitUserMessage([{text:prompt.text}]);adapter.emitSystemMessage("mod_prompt",{mod:prompt.plugin})},"emitModPromptToSdk");const flushQueuedNotificationsToSdk=__name(queue=>{while(queue.length>0){const item=queue.shift();if(!isCancelledMonitorEvent(item)){emitNotificationToSdk(item)}}},"flushQueuedNotificationsToSdk");let captureMonitorTurnsInLocalQueue=true;let oneShotMonitorsFinalized=false;const finalizeOneShotMonitors=__name(()=>{if(options.captureMonitorNotifications===false||oneShotMonitorsFinalized)return;oneShotMonitorsFinalized=true;captureMonitorTurnsInLocalQueue=false;config.getMonitorRegistry().abortAll();flushQueuedNotificationsToSdk(sdkOnlyMonitorQueue)},"finalizeOneShotMonitors");let pipeBroken=false;let workflowApprovalChannelRegistered=false;const stdoutErrorHandler=__name(err=>{if(err.code==="EPIPE"&&!pipeBroken){pipeBroken=true;process.stdout.destroy()}},"stdoutErrorHandler");const shutdownHandler=__name(()=>{debugLogger2.debug("[runNonInteractive] Shutdown signal received");abortController.abort()},"shutdownHandler");const pendingTeammateMessages=[];let boundManager=null;let approvalListener=null;const detachFromManager=__name(m=>{m.setLeaderMessageCallback(null);if(approvalListener){m.getEventEmitter().off("teammate_approval_request",approvalListener);approvalListener=null}},"detachFromManager");const onTeamManagerChangeHandler=__name(manager=>{if(boundManager&&boundManager!==manager){detachFromManager(boundManager)}boundManager=manager;if(manager){manager.setLeaderMessageCallback(formatted=>{pendingTeammateMessages.push(formatted)});if(options.controlService){approvalListener=__name(event=>{options.controlService.permission.handleTeammateApproval(event).catch(err=>{debugLogger2.warn("Teammate approval handling failed:",err)})},"approvalListener")}else{approvalListener=__name(event=>{const mode=config.getApprovalMode();const confirmationDetails=event.confirmationDetails;const requiresExplicitHostApproval=confirmationDetails?.type!=="plan"&&confirmationDetails!==void 0&&"hideAlwaysAllow"in confirmationDetails&&confirmationDetails.hideAlwaysAllow===true;if(mode==="yolo"&&!requiresExplicitHostApproval){event.respond("proceed_once").catch(err=>{debugLogger2.warn("Teammate approval ProceedOnce failed:",err)});return}const reason=requiresExplicitHostApproval?mode==="yolo"?`Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": this request requires an explicit interactive approval surface and cannot be bypassed by YOLO mode.`:`Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": this request requires an explicit interactive approval surface, which is unavailable in non-stream-json mode with the current approval mode (${mode}). Use --input-format stream-json --output-format stream-json to review it.`:`Auto-cancelling tool ${event.toolName} requested by teammate "${event.teammateName}": current approval mode (${mode}) cannot prompt in non-stream-json mode. Use --yolo or stream-json to allow teammate tool calls.`;process.stderr.write(`[team] ${reason}
|
|
5
5
|
`);pendingTeammateMessages.push(`<team_notice>
|
|
6
6
|
${reason}
|