@organizaone/o1-code 0.18.0 → 0.19.2
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/bundled/qc-helper/docs/configuration/settings.md +58 -0
- package/bundled/qc-helper/docs/features/hooks.md +2 -0
- package/chunks/{MaxSizedBox-KFWUSKUD.js → MaxSizedBox-LBBGD4JH.js} +50 -50
- package/chunks/{StandaloneSessionPicker-Z7PYTFMV.js → StandaloneSessionPicker-HJRPWYSO.js} +68 -68
- package/chunks/{acp-subagent-executor-YRP54Z6S.js → acp-subagent-executor-ANREZOL3.js} +53 -53
- package/chunks/{acpAgent-2WS3CBUU.js → acpAgent-4PZL7OPY.js} +134 -134
- package/chunks/{agent-BSAB3COR.js → agent-2WDUUEKZ.js} +38 -38
- package/chunks/{agent-headless-JHP6QJCE.js → agent-headless-UGBGAV5A.js} +38 -38
- package/chunks/agent-shell-LD2O7MY4.js +10 -0
- package/chunks/{all-providers-6DLY3JZM.js → all-providers-QQ7QUI6H.js} +2 -2
- package/chunks/{anthropicContentGenerator-CH2W4DZF.js → anthropicContentGenerator-OWPDYQLE.js} +27 -26
- package/chunks/{artifact-tool-NU2ZBB3C.js → artifact-tool-YPTGDOWY.js} +1 -1
- package/chunks/{bridge-PWVAIZEK.js → bridge-Y4RS4LIM.js} +53 -53
- package/chunks/{bwrap-execution-FIGUBZCN.js → bwrap-execution-NXVT7BHP.js} +10 -9
- package/chunks/{chunk-VVOTJOJ3.js → chunk-275M4OBK.js} +4 -4
- package/chunks/{chunk-4DGWRR3C.js → chunk-27QL6ITI.js} +3 -3
- package/chunks/{chunk-55PFTA5J.js → chunk-2HEFHPUO.js} +1 -1
- package/chunks/{chunk-NQTVSCZM.js → chunk-2S3W2BIT.js} +4 -4
- package/chunks/{chunk-5CA5POZG.js → chunk-2XICKCAO.js} +13 -13
- package/chunks/{chunk-7ENR6DPT.js → chunk-2Z33L25G.js} +16 -16
- package/chunks/{chunk-UVWWBGNK.js → chunk-4GEHO2XY.js} +11 -11
- package/chunks/{chunk-VJDQDB35.js → chunk-4MQVXVZC.js} +1 -1
- package/chunks/{chunk-AHSULPEE.js → chunk-52G2UZZU.js} +9 -9
- package/chunks/{chunk-PD4HVHCC.js → chunk-53B5T577.js} +1 -1
- package/chunks/{chunk-GQ2KSD3A.js → chunk-5F56IIHO.js} +1 -1
- package/chunks/{chunk-UNY7AZRV.js → chunk-5PRQVH45.js} +1 -1
- package/chunks/{chunk-4OUIZHHJ.js → chunk-5TQYTWUK.js} +26 -13
- package/chunks/{chunk-65JWVPGE.js → chunk-5ZVLINFZ.js} +1 -1
- package/chunks/{chunk-AT5R3J7D.js → chunk-65FY77IG.js} +2 -2
- package/chunks/{chunk-D3TU6FMK.js → chunk-6ABRZIDJ.js} +2 -2
- package/chunks/{chunk-EQUQD6PI.js → chunk-6FMGYIYJ.js} +1 -1
- package/chunks/{chunk-HSVCN76O.js → chunk-6GR5AOYF.js} +5 -5
- package/chunks/{chunk-CAJV3AYN.js → chunk-6GX676WS.js} +5 -23
- package/chunks/{chunk-5OGI74MG.js → chunk-7ASCNDOR.js} +5 -5
- package/chunks/{chunk-P4F73WS7.js → chunk-7LFCBMVX.js} +1 -1
- package/chunks/{chunk-7TL4PHRL.js → chunk-7NZ6ERTO.js} +2 -2
- package/chunks/{chunk-L2DC3N5S.js → chunk-7UEP4GNM.js} +3 -3
- package/chunks/{chunk-TSDZR25H.js → chunk-AJ3DGQKK.js} +6 -6
- package/chunks/chunk-AK6T4SJC.js +231 -0
- package/chunks/{chunk-FAF2UMS4.js → chunk-APMMNPWA.js} +8 -8
- package/chunks/{chunk-A2KXNBRR.js → chunk-AS3WO2ZW.js} +2 -2
- package/chunks/{chunk-5NNMFA5J.js → chunk-B3E57DII.js} +1 -1
- package/chunks/{chunk-DUWGDM5Z.js → chunk-B5I3IUHG.js} +29 -25
- package/chunks/{chunk-3ZX52LDP.js → chunk-BKEQFZ3K.js} +3 -3
- package/chunks/{chunk-XAIWM2YA.js → chunk-BTA2NW65.js} +2 -2
- package/chunks/{chunk-WMWCD4AR.js → chunk-BVPROTQ4.js} +6 -6
- package/chunks/{chunk-6DH6MBN3.js → chunk-C6EULC74.js} +1 -1
- package/chunks/{chunk-STEU6EPN.js → chunk-C7QKP7FW.js} +8 -8
- package/chunks/{chunk-PHLEDGND.js → chunk-COMBBGHN.js} +3 -3
- package/chunks/{chunk-V7ZNJT72.js → chunk-CQZKVV7A.js} +2 -2
- package/chunks/{chunk-Q3IR3JTW.js → chunk-CZG6DZZH.js} +1 -1
- package/chunks/{chunk-P63XJ747.js → chunk-DVPQSDMD.js} +1 -1
- package/chunks/{chunk-72X5KHLK.js → chunk-DVSJEZIT.js} +4 -4
- package/chunks/{chunk-N5MM5VOZ.js → chunk-DWQZQDYY.js} +5 -5
- package/chunks/{chunk-TG6XSGSF.js → chunk-E2YI7LKA.js} +22 -22
- package/chunks/{chunk-OBRZE2MP.js → chunk-EQDCZMBX.js} +4 -4
- package/chunks/{chunk-6GGI5QUL.js → chunk-EZ27V5MZ.js} +30 -6
- package/chunks/{chunk-2LHQQK25.js → chunk-FDNTWDR3.js} +40 -11
- package/chunks/{chunk-WSHOWMUB.js → chunk-FJHDFJVI.js} +1 -1
- package/chunks/{chunk-VVF2QVSN.js → chunk-H4QNYXIC.js} +1 -1
- package/chunks/{chunk-776VI66O.js → chunk-H5AU3734.js} +1 -1
- package/chunks/{chunk-4KNI4SDW.js → chunk-HOXIWPNJ.js} +10 -10
- package/chunks/{chunk-S77D7KI4.js → chunk-HP7IRBXY.js} +1 -1
- package/chunks/{chunk-NIOE4OJE.js → chunk-HU66EQY6.js} +1 -1
- package/chunks/{chunk-NFW3QLLU.js → chunk-I2J5M75F.js} +1 -1
- package/chunks/{chunk-Q5CQXESD.js → chunk-I5INQP6E.js} +1 -1
- package/chunks/{chunk-J5UW3SF4.js → chunk-ICS5D7OZ.js} +43 -80
- package/chunks/{chunk-MXHALNTR.js → chunk-IJJHHXRW.js} +11 -11
- package/chunks/{chunk-F3FHWOA6.js → chunk-IVKRKMG5.js} +2 -2
- package/chunks/{chunk-5OCOCFPH.js → chunk-J5NHGFHB.js} +88 -58
- package/chunks/{chunk-5KDTLT2W.js → chunk-J7HPCUIE.js} +3 -3
- package/chunks/{chunk-6G573B7P.js → chunk-J7JPRPU7.js} +13 -7
- package/chunks/{chunk-KEWV356X.js → chunk-JBHZH3PC.js} +1 -1
- package/chunks/{chunk-SPTU3FVH.js → chunk-JFO6OCHQ.js} +1 -1
- package/chunks/{chunk-4X3MIKOZ.js → chunk-JOBNLOEW.js} +2 -2
- package/chunks/{chunk-TLQWJJ6V.js → chunk-JUWZD2PN.js} +1 -1
- package/chunks/{chunk-A2WWCCCG.js → chunk-JZZCOULA.js} +5 -5
- package/chunks/{chunk-VJRPS6R4.js → chunk-K2FOIXZ5.js} +44 -17
- package/chunks/{chunk-KPFHGMCO.js → chunk-L4VKVFNI.js} +3 -3
- package/chunks/{chunk-NPUXXNCX.js → chunk-LCZW6GXU.js} +1 -1
- package/chunks/{chunk-U6A5UM2I.js → chunk-LZQYRRU3.js} +2 -2
- package/chunks/{chunk-LVVL7QT4.js → chunk-MGODVF72.js} +3 -3
- package/chunks/{chunk-NW7U6HIZ.js → chunk-MLC6KXZV.js} +8 -8
- package/chunks/{chunk-K5TETCPR.js → chunk-NYAXAPOP.js} +2 -2
- package/chunks/{chunk-LJ4I5TDX.js → chunk-OAAOCEVM.js} +5 -5
- package/chunks/{chunk-NOL6NAWN.js → chunk-OJSW65PQ.js} +1 -1
- package/chunks/{chunk-PX4RT7VD.js → chunk-OLSQPKHE.js} +3 -3
- package/chunks/{chunk-5U2EGWNB.js → chunk-OPMQQPVT.js} +4 -4
- package/chunks/{chunk-KANOK4JQ.js → chunk-OVK563DU.js} +8 -8
- package/chunks/{chunk-6PCAKMV4.js → chunk-OYDDO6OG.js} +1 -1
- package/chunks/{chunk-U7M7FWKX.js → chunk-P6JZ4HYD.js} +7 -7
- package/chunks/{chunk-ZQ2CVM5V.js → chunk-QD5UHPFT.js} +1 -1
- package/chunks/{chunk-NTWDEDCK.js → chunk-QVJIOVF5.js} +20 -20
- package/chunks/{chunk-SZC5KW6R.js → chunk-QVMFV3XM.js} +1 -1
- package/chunks/{chunk-SYYP7ISB.js → chunk-QWKLEJEY.js} +6 -6
- package/chunks/{chunk-4SJO2I35.js → chunk-QYUMJTBP.js} +1 -1
- package/chunks/chunk-RC67CA5Z.js +10861 -0
- package/chunks/{chunk-XPBS5EUK.js → chunk-RCVPNZFY.js} +66 -62
- package/chunks/{chunk-RUWBI6MP.js → chunk-RKYOZTZO.js} +1277 -1073
- package/chunks/{chunk-TFFOK3SJ.js → chunk-RNEMD6QU.js} +1 -1
- package/chunks/{chunk-OW5FL4TK.js → chunk-S7G552VN.js} +3 -3
- package/chunks/{chunk-VMNDCGGM.js → chunk-SWMFQ5LO.js} +4 -4
- package/chunks/{chunk-IHSW4PER.js → chunk-TMDIF2JL.js} +3 -3
- package/chunks/{chunk-U4ZIR53K.js → chunk-TOHP6TCL.js} +2 -2
- package/chunks/{chunk-226GUP72.js → chunk-TYOWBAXR.js} +3 -3
- package/chunks/{chunk-55BVGW3L.js → chunk-U3KIMPCC.js} +1 -1
- package/chunks/{chunk-TS6COE72.js → chunk-UE5DVT36.js} +2 -2
- package/chunks/{chunk-2PN66AEQ.js → chunk-UOPDWTO3.js} +1 -1
- package/chunks/{chunk-FJAZPBX2.js → chunk-V75J4GJ2.js} +1 -1
- package/chunks/{chunk-G46O36AD.js → chunk-VINUVVAI.js} +1 -1
- package/chunks/{chunk-NXEO7DWY.js → chunk-VRJY2FUR.js} +4 -4
- package/chunks/{chunk-EK7Y6LH6.js → chunk-VWZOXOSR.js} +1 -1
- package/chunks/{chunk-FXR7OHQM.js → chunk-VYJBEVMW.js} +1 -1
- package/chunks/{chunk-3D2STYD6.js → chunk-VYRPAY75.js} +229 -11073
- package/chunks/{chunk-I6MC5RTP.js → chunk-WGFFYBV3.js} +1 -1
- package/chunks/{chunk-ZGPPP7FC.js → chunk-WN23CFGN.js} +10 -10
- package/chunks/{chunk-GBC4QF2A.js → chunk-X4TQXVEZ.js} +2 -2
- package/chunks/{chunk-ULYT234I.js → chunk-XOLEQMLH.js} +5 -5
- package/chunks/{chunk-VPFTCMMK.js → chunk-XOVXSDNN.js} +1 -1
- package/chunks/{chunk-AKUG3DXO.js → chunk-XRCCYNUO.js} +2 -2
- package/chunks/{chunk-FRSSQFFA.js → chunk-Y2TQ2S56.js} +1 -1
- package/chunks/{chunk-MVYJ7RV2.js → chunk-Y6XW6ZBE.js} +1 -1
- package/chunks/{chunk-BTGVEDO6.js → chunk-YXLCNZ7S.js} +7 -7
- package/chunks/{chunk-2LMWPA6C.js → chunk-Z333PU5C.js} +3 -3
- package/chunks/{chunk-TP3M5WJ2.js → chunk-Z3JO7QH2.js} +1 -1
- package/chunks/{chunk-DA4GEY74.js → chunk-Z3TVPPGU.js} +1 -1
- package/chunks/{chunk-X2QI445X.js → chunk-ZHNI4QK6.js} +1 -1
- package/chunks/{chunk-5X3UQC3X.js → chunk-ZPZPI63H.js} +3 -3
- package/chunks/{chunk-ZRO2FPEP.js → chunk-ZQBNP2ZQ.js} +4 -4
- package/chunks/{chunk-SIGNGMBQ.js → chunk-ZXAN2CZR.js} +4 -4
- package/chunks/{codex-subagent-executor-RQ5W6IVE.js → codex-subagent-executor-GOP5OFLJ.js} +53 -53
- package/chunks/{contextCommand-5UX6VM2U.js → contextCommand-452SSDQS.js} +52 -52
- package/chunks/{core-runtime-XK5FJ7DL.js → core-runtime-PBWYHWNH.js} +53 -53
- package/chunks/{create-sub-session-F4QHS5I3.js → create-sub-session-EIJWLULW.js} +53 -53
- package/chunks/{daemon-git-worktree-guard-SFJD6ECH.js → daemon-git-worktree-guard-2AALKGC3.js} +94 -79
- package/chunks/{daemon-status-provider-WRWPW3BG.js → daemon-status-provider-VCR4B5XY.js} +58 -58
- package/chunks/{daemon-trust-policy-WRC25IDB.js → daemon-trust-policy-252THKLJ.js} +58 -58
- package/chunks/{daemon-trust-policy-monitor-6R5O66L6.js → daemon-trust-policy-monitor-JLH53AWD.js} +58 -58
- package/chunks/{deferred-core-runtime-2NFFCBF7.js → deferred-core-runtime-3VTAJJCS.js} +50 -50
- package/chunks/{display-image-ETU7QIAC.js → display-image-U6HZKF3G.js} +2 -2
- package/chunks/{edit-7NQPRM4K.js → edit-G7Y6A52O.js} +40 -40
- package/chunks/{en-YLUPJ2ES.js → en-FDKIF2AN.js} +8 -0
- package/chunks/{enter-worktree-OZOIH6KH.js → enter-worktree-YQUTPRTW.js} +4 -3
- package/chunks/{enterPlanMode-RSMNB3VT.js → enterPlanMode-LFE2LE5H.js} +38 -38
- package/chunks/{environment-N5D2TSWL.js → environment-RHXWB6HI.js} +53 -53
- package/chunks/{errors-4D3NTX3J.js → errors-SS4BLRZA.js} +52 -52
- package/chunks/{execution-sandbox-config-EYZYM2IC.js → execution-sandbox-config-NWYWWN7E.js} +11 -10
- package/chunks/{execution-tool-OWG4ND2X.js → execution-tool-6CZ4GL5K.js} +40 -40
- package/chunks/{execution-worker-KWSRRYKD.js → execution-worker-DNPXGP3Q.js} +46 -46
- package/chunks/{exit-worktree-W5TC4B4C.js → exit-worktree-Y3VV3LC4.js} +4 -3
- package/chunks/{exitPlanMode-6VMJIAFU.js → exitPlanMode-5DP5J6XJ.js} +38 -38
- package/chunks/{fast-path-H6TJJDNE.js → fast-path-Z37HWA6N.js} +2 -2
- package/chunks/fast-path-settings-FIMIXD3V.js +1 -1
- package/chunks/{glob-XHN3ENGF.js → glob-UV57FE4X.js} +39 -39
- package/chunks/{goal-tools-HIC3S44Z.js → goal-tools-JOADMEW3.js} +38 -38
- package/chunks/{grep-VO76ZOXG.js → grep-PFRUFHXB.js} +3 -2
- package/chunks/{handleAutoUpdate-E2W6KXLI.js → handleAutoUpdate-35BVVB5W.js} +54 -54
- package/chunks/{i18n-WPVAZQT6.js → i18n-XIZSGDN7.js} +51 -51
- package/chunks/{initializer-JXPEQIUL.js → initializer-X4GWJRV7.js} +58 -58
- package/chunks/{installationInfo-6Z4WSXQ5.js → installationInfo-NZHMU2NK.js} +50 -50
- package/chunks/{list-6CMY2RI2.js → list-ZKYO3L7E.js} +60 -60
- package/chunks/{llm-GBQ6ECS5.js → llm-ZTSUHOR2.js} +99 -99
- package/chunks/{llm-content-generator-6WFPU662.js → llm-content-generator-MIFAW3PL.js} +7 -6
- package/chunks/{loadedSettingsAdapter-PDWQHSYG.js → loadedSettingsAdapter-YZQOWGKI.js} +58 -58
- package/chunks/{local-execution-environment-PLNQIF3B.js → local-execution-environment-EUUAG64L.js} +46 -46
- package/chunks/{loggingContentGenerator-6UVX7LNZ.js → loggingContentGenerator-OWTH4PME.js} +48 -46
- package/chunks/{ls-VJFHJL3S.js → ls-KIV7RGKE.js} +3 -3
- package/chunks/{managed-npm-update-KRKDYW2B.js → managed-npm-update-IDWHLESG.js} +50 -50
- package/chunks/{mcp-BXYKBT4N.js → mcp-6PJLNW72.js} +58 -58
- package/chunks/{model-call-collection-NKB2YXTH.js → model-call-collection-GFAJWGA5.js} +1 -1
- package/chunks/{model-configuration-PWPA4J7K.js → model-configuration-4IQM5YL2.js} +59 -59
- package/chunks/{modelConfigUtils-5SLBGJRP.js → modelConfigUtils-B3YLHREG.js} +52 -52
- package/chunks/{monitor-PV4YRWMF.js → monitor-R6SQRVTW.js} +41 -39
- package/chunks/{node-BMQ3WD34.js → node-5A2VFKYD.js} +2 -1
- package/chunks/{nonInteractiveCli-JMPFZA6M.js → nonInteractiveCli-4LE7VZRX.js} +90 -90
- package/chunks/{nonInteractiveToolExecutor-ZUXPKTIP.js → nonInteractiveToolExecutor-Q6HYQX24.js} +39 -39
- package/chunks/{notebook-edit-K3KQHG3G.js → notebook-edit-3T26DJEK.js} +39 -39
- package/chunks/{omni-4QMN2GOA.js → omni-55KAZXS5.js} +10 -10
- package/chunks/{openaiContentGenerator-KYM2KLQR.js → openaiContentGenerator-QTI4NIEI.js} +33 -32
- package/chunks/{openaiResponsesContentGenerator-7SQ3DFKN.js → openaiResponsesContentGenerator-YRZKU2TP.js} +10 -9
- package/chunks/{processUtils-YNJCV3R2.js → processUtils-SFVXWEK2.js} +2 -2
- package/chunks/{prompt-terminal-ledger-BXPE7OUT.js → prompt-terminal-ledger-45YZQYQH.js} +51 -51
- package/chunks/{pt-NSYP3LJA.js → pt-ADEAZMHA.js} +7 -0
- package/chunks/{reactive-degrade-EGGQT6G3.js → reactive-degrade-SZ7T7YCF.js} +10 -10
- package/chunks/{read-file-4TRCRUU5.js → read-file-ZUP4L74O.js} +6 -6
- package/chunks/{record-source-U53PRXYX.js → record-source-ANENC5K7.js} +6 -6
- package/chunks/{request-shutdown-E5QAHOAD.js → request-shutdown-LRWCJOEG.js} +5 -5
- package/chunks/{resumeHistoryUtils-DRM5HRRS.js → resumeHistoryUtils-WDL5S65U.js} +54 -54
- package/chunks/{ripGrep-34GQVR25.js → ripGrep-S7PJHTWC.js} +13 -12
- package/chunks/{run-o1-code-serve-WCBVYVTD.js → run-o1-code-serve-CRTZPIBE.js} +88 -56
- package/chunks/{runtime-shell-policy-Z53GWNM7.js → runtime-shell-policy-XX3HN7A6.js} +1 -1
- package/chunks/{sandboxConfig-V3DALBSM.js → sandboxConfig-M5D57NFL.js} +51 -51
- package/chunks/{scheduled-tasks-NSKNSCYI.js → scheduled-tasks-PV6JXYS7.js} +56 -56
- package/chunks/{scheduler-4KEFSFV4.js → scheduler-7JCEVSRX.js} +52 -52
- package/chunks/{sdk-exporters-grpc-FZO3Y43M.js → sdk-exporters-grpc-7ZF7NWTA.js} +2 -2
- package/chunks/{sdk-exporters-http-WYXH2KE4.js → sdk-exporters-http-73LTU25J.js} +3 -3
- package/chunks/{sdk-impl-5PWLMFPQ.js → sdk-impl-IAUUHG7Z.js} +5 -5
- package/chunks/{send-message-H6B5EST3.js → send-message-XY7EC52V.js} +5 -5
- package/chunks/{serve-4R5EM3GA.js → serve-4FNQ44BF.js} +58 -58
- package/chunks/{server-LYZNQKHS.js → server-BTZRXRWK.js} +150 -145
- package/chunks/{session-DJ3NHJBP.js → session-3NETJ2OP.js} +2 -2
- package/chunks/{session-YIBXAGIS.js → session-MHPXIRAB.js} +97 -97
- package/chunks/{session-attachments-root-CHDZ6WLC.js → session-attachments-root-R7QRKG2O.js} +50 -50
- package/chunks/{session-pr-refresh-DJLK26ZT.js → session-pr-refresh-NZIYBJO6.js} +55 -55
- package/chunks/{settings-PNDU4CDQ.js → settings-KQP2U3ZP.js} +57 -57
- package/chunks/{shell-4QKMSAEU.js → shell-EFKVGKOM.js} +38 -38
- package/chunks/{skill-6PM2CBQT.js → skill-URD5CMIO.js} +17 -17
- package/chunks/{skill-settings-R3XEN74Z.js → skill-settings-4QQKNLUM.js} +58 -58
- package/chunks/{spawnChannel-QAK4QKFB.js → spawnChannel-JGW5L6Z5.js} +52 -52
- package/chunks/{standalone-update-AQAMKMUZ.js → standalone-update-LFU3BOLF.js} +52 -52
- package/chunks/{startInteractiveUI-TDADTTSZ.js → startInteractiveUI-KWRDDS5R.js} +409 -898
- package/chunks/{task-create-WLFSUWNH.js → task-create-2BHPJUF3.js} +7 -7
- package/chunks/{task-update-STSLD6C5.js → task-update-NGKKBFU5.js} +7 -7
- package/chunks/{team-create-DLPRS6RP.js → team-create-SII3V6S6.js} +38 -38
- package/chunks/{team-plan-approval-AQQDCDSC.js → team-plan-approval-3GDIGYLR.js} +38 -38
- package/chunks/{terminal-image-renderer-ZYULQRBB.js → terminal-image-renderer-SDU6KELE.js} +50 -50
- package/chunks/{theme-manager-EX5QK4GZ.js → theme-manager-5N5JQJZQ.js} +50 -50
- package/chunks/{tool-call-2R6GT3ZZ.js → tool-call-GVZHLCX6.js} +6 -6
- package/chunks/{tool-result-media-QIKJKWEP.js → tool-result-media-3NEISIXC.js} +10 -10
- package/chunks/{tool-search-OXTKZ7OH.js → tool-search-N3KKISSN.js} +14 -14
- package/chunks/{total-session-admission-SDK43NBE.js → total-session-admission-FAD7C46M.js} +53 -53
- package/chunks/{trustedFolders-6B3LSAFR.js → trustedFolders-GW63QOTM.js} +52 -52
- package/chunks/{update-relaunch-5OLOKFMP.js → update-relaunch-QSTEABHY.js} +5 -5
- package/chunks/{updateCheck-73VH6TLN.js → updateCheck-X6ZRBJSX.js} +53 -53
- package/chunks/{upload-config-Q24GJGAS.js → upload-config-7GMCZTH7.js} +7 -7
- package/chunks/{useAutoAcceptIndicator-PIGHUON4.js → useAutoAcceptIndicator-V6WYPN4U.js} +60 -60
- package/chunks/{validateNonInterActiveAuth-GTNN6OCK.js → validateNonInterActiveAuth-5JD64FR7.js} +87 -87
- package/chunks/{version-YPKN6YH2.js → version-AINMTXVB.js} +1 -1
- package/chunks/{web-fetch-AJ5Y3HVD.js → web-fetch-3G7T5PPD.js} +6 -6
- package/chunks/{web-search-Q6IK74NM.js → web-search-YYLBYDF5.js} +8 -8
- package/chunks/{workflow-CI3YG2GP.js → workflow-B5RUGWYS.js} +39 -39
- package/chunks/{workspace-providers-status-QVZE6FDQ.js → workspace-providers-status-YPNCARQU.js} +64 -64
- package/chunks/{workspace-registration-store-WBTEQOP5.js → workspace-registration-store-SI4R2LBL.js} +1 -1
- package/chunks/{workspace-registry-MEFZC4DJ.js → workspace-registry-B257SMEP.js} +53 -53
- package/chunks/{workspace-runtime-coordinator-GUJ5JMAT.js → workspace-runtime-coordinator-WOQUHIXW.js} +54 -54
- package/chunks/{workspace-service-V6M4HAL3.js → workspace-service-LEFH6GQQ.js} +64 -64
- package/chunks/{workspace-skills-status-LRGYTDH2.js → workspace-skills-status-TBMOY62A.js} +61 -61
- package/chunks/{workspace-trust-reconciler-XSJ7R6YZ.js → workspace-trust-reconciler-GBIJE56I.js} +64 -64
- package/chunks/{write-file-43MIOUDW.js → write-file-K2RNXABV.js} +40 -40
- package/chunks/{zoom-image-X5HTIPIW.js → zoom-image-GYZQKNAT.js} +6 -6
- package/cli.js +12 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +10 -0
- package/locales/pt.js +9 -0
- package/package.json +3 -2
- package/release-notes.json +10 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BGNg9YdP.js → abnfDiagram-VCTEODGH-D2ihsggw.js} +1 -1
- package/web-shell/assets/{arc-BXPJ5916.js → arc-Do8BhmqS.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-vmPiFh4s.js → architectureDiagram-5GKGNRK7-DNvafzQk.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-D-IOs2xS.js → blockDiagram-NRAW4CY4-C2l6s-dd.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-Odr47Jq9.js → c4Diagram-UCG6FXSJ-B_FFLJPy.js} +1 -1
- package/web-shell/assets/channel-ByXUUrNN.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-DDOXKFXl.js → chunk-2Q5K7J3B-DGzdk8ro.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BFGyXZS8.js → chunk-5VM5RSS4-UM28bO2O.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-CoszPjfV.js → chunk-F27PBJKO-OLQLKZT5.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-CtwkkkmA.js → chunk-G27WJ6UU-BwzVWeH0.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-D9xBV8bo.js → chunk-JWPE2WC7-CmKOy87S.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-DGeKyIrU.js → chunk-LCL6LL3I-DQrv9QCe.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-DkctwMcj.js → chunk-POPQ4Y6H-CToePaJn.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-C8NH7oqQ.js → chunk-SVP7TREG-CxvaodrX.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-Cb_CU3oo.js → chunk-XXDRQBXY-F08Sgl2P.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DivXqSOk.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DivXqSOk.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CIdhWx--.js → cose-bilkent-JH36ORCC-DV0l_6Bc.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-LaBeHiRk.js → cynefin-OW5HDTMX-DNaFCPQT.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CaqocuQ3.js → cynefinDiagram-5FMLGOSQ-DnqY9A5l.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CAQUv2gB.js → dagre-3AP2YEHR-Ct-h_Mtu.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-BH6GX300.js → diagram-S7CK7UJ4-BPl7htW0.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-BAzCzO0U.js → diagram-UQ7AKVKN-DFQ3xGrv.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-C9pdcLq5.js → diagram-VSXAHHWV-Dwn4_L2o.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-BnhwcdLs.js → diagram-VX7I27RA-CF8BxijU.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-DdUSU7xu.js → diagram-Z3DM3KII-AwRnI4zw.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-CaGRNFSs.js → ebnfDiagram-PWID7BFC-Dhk2RAC_.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-hEYNIe3f.js → erDiagram-SSCWMZ5O-CdOqHMOe.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-Ce8fQs0n.js → flowDiagram-A5DVABFB-CA4vIx4m.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-cyYhUZtQ.js → ganttDiagram-EL5Y4UJY-B2HRdA6n.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bjez3o-w.js → gitGraphDiagram-WWUBYQGX-Ciw9ejqB.js} +1 -1
- package/web-shell/assets/{index-BhRpHJhe.js → index-CVDFKd7Z.js} +1 -1
- package/web-shell/assets/{index-MC1KKiG-.js → index-fjLKOApE.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-2_W-YBzm.js → infoDiagram-RXCK75RN-Czs-Fg9i.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CcwaZGKU.js → ishikawaDiagram-5VMMS53U-BgWxCmiv.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-HByv4ZR9.js → journeyDiagram-EYS64GPL-CSIiBS9s.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-MT2ZgWV2.js → kanban-definition-3QL26DDD-Dwkr1aiK.js} +1 -1
- package/web-shell/assets/{layout-HBokxgr4.js → layout-1s_RTrXE.js} +1 -1
- package/web-shell/assets/{linear-B_LIhEbR.js → linear-s_vis_gi.js} +1 -1
- package/web-shell/assets/{mermaid.core-DAGzMNlh.js → mermaid.core-M8VeeqP0.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-D513FUAx.js → mindmap-definition-FBJOCRG2-YqNa0dLY.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-BwBFoGak.js → pegDiagram-XKGWAZYB-CX4v7_Cz.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-DlhzTb8_.js → pieDiagram-E7YTZNPT-BEGM4Uhg.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CUuE8FnJ.js → quadrantDiagram-AXDQQJYC-Ba0qSHpp.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-SQIO3X8D.js → railroadDiagram-O6MQD6OU-Djx0ucJk.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BMWOFlAo.js → requirementDiagram-EFPCY7ZU-BbiwTBb_.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CJTySo43.js → sankeyDiagram-P5KCCOFB-BBpyS1HX.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-t2BPAWzk.js → sequenceDiagram-WJ2MYXX4-kFEvOWne.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BPIUPUsL.js → sizeCapture-X5ZJPWSS-CB0oeOds.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DE4uBV7F.js → stateDiagram-HBIQ2CUA-BwMURXb5.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DAoyfchD.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-D8D1pmN3.js → swimlanes-XN3QIQJK-Ch0xJvxW.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CpVOsDYq.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DGnnf95L.js → timeline-definition-24CTP7MA-Bg40ccS9.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-qezD0zbJ.js → vennDiagram-4TSXK5OY-BhzjF8v1.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BVhfGaQX.js → wardleyDiagram-VM6X3IG4-15nlc60e.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CqRIhXvs.js → xychartDiagram-S5SC5T6Z-DbK_zL_2.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-BWyvnaqW.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-BdzGGlIM.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-BdzGGlIM.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B-q4JsAO.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B4SpZT-Y.js +0 -8
- package/chunks/{chunk-QOAAXVS4.js → chunk-DUHNRPAF.js} +3 -3
- package/chunks/{chunk-BAGPD67C.js → chunk-H4GDMMIG.js} +3 -3
- package/chunks/{chunk-YSZCVSC3.js → chunk-YZBNAMA2.js} +0 -0
- package/chunks/{container-execution-environment-INYC74GN.js → container-execution-environment-O2I5SDUH.js} +3 -3
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
TUI_CHAT_RECORDING_FAILURE_MESSAGE,
|
|
8
8
|
reportChatRecordingFailureToAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6FMGYIYJ.js";
|
|
10
10
|
import {
|
|
11
11
|
StreamJsonOutputAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-275M4OBK.js";
|
|
13
13
|
import {
|
|
14
14
|
startPostRenderPrefetches
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2XICKCAO.js";
|
|
16
16
|
import {
|
|
17
17
|
AboutBox,
|
|
18
18
|
BaseSelectionList,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
useUIActions,
|
|
113
113
|
useUIState,
|
|
114
114
|
useVirtualViewport
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-QVJIOVF5.js";
|
|
116
116
|
import {
|
|
117
117
|
CATEGORY_LABELS,
|
|
118
118
|
ICON,
|
|
@@ -134,25 +134,25 @@ import {
|
|
|
134
134
|
showsToolLabel,
|
|
135
135
|
useStreamingContext,
|
|
136
136
|
waitForGoalRuntime
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-YXLCNZ7S.js";
|
|
138
138
|
import {
|
|
139
139
|
stopAndGetCapturedInput
|
|
140
140
|
} from "./chunk-VFLUNXD6.js";
|
|
141
141
|
import {
|
|
142
142
|
useAutoAcceptIndicator
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-UE5DVT36.js";
|
|
144
144
|
import {
|
|
145
145
|
KeypressProvider,
|
|
146
146
|
useFocus,
|
|
147
147
|
useKeypress,
|
|
148
148
|
useKeypressContext
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-BTA2NW65.js";
|
|
150
150
|
import {
|
|
151
151
|
MAX_ACCEPTED_BACKLOG,
|
|
152
152
|
PeerMessaging,
|
|
153
153
|
classifyApiError,
|
|
154
154
|
fireSessionDeleteHook
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-I2J5M75F.js";
|
|
156
156
|
import {
|
|
157
157
|
MAX_SUGGESTIONS_TO_SHOW,
|
|
158
158
|
SESSION_MENTION_PREFIX,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
normalizeDescription,
|
|
166
166
|
normalizePartList,
|
|
167
167
|
resolveAtCommandQuery
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-APMMNPWA.js";
|
|
169
169
|
import {
|
|
170
170
|
BuiltinCommandLoader,
|
|
171
171
|
BundledSkillLoader,
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
resolveOutputStyleChoice,
|
|
223
223
|
serializeUserPromptExpansionPrompt,
|
|
224
224
|
supportsMatchers
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-RCVPNZFY.js";
|
|
226
226
|
import {
|
|
227
227
|
EXTENSION_RELOAD_FAILED_REASON,
|
|
228
228
|
ExtensionRefreshState,
|
|
@@ -230,7 +230,7 @@ import {
|
|
|
230
230
|
cleanupReviewWorktreeLeases,
|
|
231
231
|
loadHierarchicalMemory,
|
|
232
232
|
openRemoteSession
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-J5NHGFHB.js";
|
|
234
234
|
import {
|
|
235
235
|
BRAND,
|
|
236
236
|
MAX_EXTENSION_OWNER_LABEL_WIDTH,
|
|
@@ -240,14 +240,14 @@ import {
|
|
|
240
240
|
getEffectiveSupportedModes,
|
|
241
241
|
repoDocUrl,
|
|
242
242
|
skillOriginLabel
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-JZZCOULA.js";
|
|
244
244
|
import {
|
|
245
245
|
contextUsageLabel,
|
|
246
246
|
formatDuration,
|
|
247
247
|
formatPercentageUsed,
|
|
248
248
|
formatRelativeTime,
|
|
249
249
|
formatTokenCount
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-Y6XW6ZBE.js";
|
|
251
251
|
import {
|
|
252
252
|
disableKittyProtocol,
|
|
253
253
|
isKittyProtocolEnabled,
|
|
@@ -266,11 +266,12 @@ import {
|
|
|
266
266
|
oscKittyNotify,
|
|
267
267
|
saveClipboardImage,
|
|
268
268
|
writeOsc52
|
|
269
|
-
} from "./chunk-
|
|
269
|
+
} from "./chunk-CZG6DZZH.js";
|
|
270
270
|
import {
|
|
271
271
|
sanitizeDisplayText
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-OVK563DU.js";
|
|
273
273
|
import "./chunk-AHKE26WU.js";
|
|
274
|
+
import "./chunk-BKEQFZ3K.js";
|
|
274
275
|
import "./chunk-UMIHM32I.js";
|
|
275
276
|
import {
|
|
276
277
|
TOP_FRAME,
|
|
@@ -305,6 +306,7 @@ import {
|
|
|
305
306
|
import {
|
|
306
307
|
require_react
|
|
307
308
|
} from "./chunk-2KK65OQ6.js";
|
|
309
|
+
import "./chunk-S7G552VN.js";
|
|
308
310
|
import "./chunk-G4YDGSSX.js";
|
|
309
311
|
import {
|
|
310
312
|
MAX_INLINE_IMAGES_PER_ITEM,
|
|
@@ -313,14 +315,13 @@ import {
|
|
|
313
315
|
} from "./chunk-KIN34HCU.js";
|
|
314
316
|
import {
|
|
315
317
|
setUpdateHandler
|
|
316
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-OPMQQPVT.js";
|
|
317
319
|
import {
|
|
318
320
|
isHistoryItemVisibleAfterRestore
|
|
319
321
|
} from "./chunk-64WBFX5X.js";
|
|
320
|
-
import "./chunk-
|
|
322
|
+
import "./chunk-6GX676WS.js";
|
|
321
323
|
import "./chunk-7DQWDZUQ.js";
|
|
322
324
|
import "./chunk-KD7GIK2D.js";
|
|
323
|
-
import "./chunk-3ZX52LDP.js";
|
|
324
325
|
import {
|
|
325
326
|
AUTO_THEME_NAME,
|
|
326
327
|
DEFAULT_THEME,
|
|
@@ -329,27 +330,27 @@ import {
|
|
|
329
330
|
import {
|
|
330
331
|
requestConsentInteractive,
|
|
331
332
|
requestConsentOrFail
|
|
332
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-AJ3DGQKK.js";
|
|
333
334
|
import "./chunk-XZ3MQL2U.js";
|
|
334
335
|
import {
|
|
335
336
|
getErrorMessage as getErrorMessage2
|
|
336
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-L4VKVFNI.js";
|
|
337
338
|
import {
|
|
338
339
|
relaunchApp
|
|
339
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-JBHZH3PC.js";
|
|
340
341
|
import "./chunk-XG36NMOI.js";
|
|
341
342
|
import "./chunk-SPLQKNEP.js";
|
|
342
|
-
import "./chunk-
|
|
343
|
-
import "./chunk-
|
|
344
|
-
import "./chunk-NXEO7DWY.js";
|
|
343
|
+
import "./chunk-VYJBEVMW.js";
|
|
344
|
+
import "./chunk-VRJY2FUR.js";
|
|
345
345
|
import "./chunk-LXUIOY3M.js";
|
|
346
346
|
import {
|
|
347
347
|
openDashScopeAsrRealtimeStream,
|
|
348
348
|
openVoiceStream,
|
|
349
349
|
openVoiceStreamWithRetry
|
|
350
350
|
} from "./chunk-MTSHGY6F.js";
|
|
351
|
-
import "./chunk-
|
|
352
|
-
import "./chunk-
|
|
351
|
+
import "./chunk-2Z33L25G.js";
|
|
352
|
+
import "./chunk-LL7XM3LM.js";
|
|
353
|
+
import "./chunk-Y2TQ2S56.js";
|
|
353
354
|
import {
|
|
354
355
|
cpLen,
|
|
355
356
|
cpSlice,
|
|
@@ -366,7 +367,7 @@ import {
|
|
|
366
367
|
stringWidth
|
|
367
368
|
} from "./chunk-F5IN4KK7.js";
|
|
368
369
|
import "./chunk-ZCZKKAIG.js";
|
|
369
|
-
import "./chunk-
|
|
370
|
+
import "./chunk-ZWXTCEPP.js";
|
|
370
371
|
import {
|
|
371
372
|
isValidSessionId
|
|
372
373
|
} from "./chunk-KQCQCJBL.js";
|
|
@@ -376,45 +377,44 @@ import {
|
|
|
376
377
|
isStreamingVoiceModel,
|
|
377
378
|
resolveVoiceStreamConfig,
|
|
378
379
|
transcribeVoiceAudio
|
|
379
|
-
} from "./chunk-
|
|
380
|
+
} from "./chunk-CQZKVV7A.js";
|
|
380
381
|
import {
|
|
381
382
|
formatUnsupportedVoiceModelMessage,
|
|
382
383
|
isSelectableVoiceModel
|
|
383
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-C6EULC74.js";
|
|
384
385
|
import "./chunk-TESN7CJW.js";
|
|
385
|
-
import "./chunk-ZWXTCEPP.js";
|
|
386
386
|
import {
|
|
387
387
|
REASONING_EFFORT_DEFAULT,
|
|
388
388
|
getReasoningEffortsForConfig,
|
|
389
389
|
getReasoningForDisplay
|
|
390
|
-
} from "./chunk-
|
|
390
|
+
} from "./chunk-TOHP6TCL.js";
|
|
391
391
|
import {
|
|
392
392
|
buildHigherDisabled,
|
|
393
393
|
computeWorkspaceSkillListUpdates,
|
|
394
394
|
skillSettingStrings
|
|
395
|
-
} from "./chunk-
|
|
395
|
+
} from "./chunk-I5INQP6E.js";
|
|
396
396
|
import "./chunk-W2R46PFD.js";
|
|
397
397
|
import {
|
|
398
398
|
createLoadedSettingsAdapter,
|
|
399
399
|
getRawModelProviders
|
|
400
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-SWMFQ5LO.js";
|
|
401
401
|
import {
|
|
402
402
|
getExtendedSystemInfo
|
|
403
|
-
} from "./chunk-
|
|
404
|
-
import "./chunk-
|
|
403
|
+
} from "./chunk-MGODVF72.js";
|
|
404
|
+
import "./chunk-X4TQXVEZ.js";
|
|
405
405
|
import "./chunk-QTAUA6ED.js";
|
|
406
406
|
import "./chunk-LPCPB2S5.js";
|
|
407
407
|
import "./chunk-LD2T7YET.js";
|
|
408
408
|
import "./chunk-O7MSLRFZ.js";
|
|
409
409
|
import "./chunk-W3YES77O.js";
|
|
410
|
-
import "./chunk-
|
|
411
|
-
import "./chunk-
|
|
410
|
+
import "./chunk-RNEMD6QU.js";
|
|
411
|
+
import "./chunk-ZXAN2CZR.js";
|
|
412
412
|
import {
|
|
413
413
|
isInlineModelOverrideAllowed
|
|
414
|
-
} from "./chunk-
|
|
414
|
+
} from "./chunk-XRCCYNUO.js";
|
|
415
415
|
import {
|
|
416
416
|
loadMcpApprovals
|
|
417
|
-
} from "./chunk-
|
|
417
|
+
} from "./chunk-MLC6KXZV.js";
|
|
418
418
|
import {
|
|
419
419
|
CORRUPTED_SUFFIX,
|
|
420
420
|
SettingScope,
|
|
@@ -437,7 +437,7 @@ import {
|
|
|
437
437
|
settingExistsInScope,
|
|
438
438
|
validateSettingValue,
|
|
439
439
|
writeOutputLanguageAndRegisterPath
|
|
440
|
-
} from "./chunk-
|
|
440
|
+
} from "./chunk-K2FOIXZ5.js";
|
|
441
441
|
import {
|
|
442
442
|
LOGO_ANIMATIONS,
|
|
443
443
|
LOGO_FRAME_MS,
|
|
@@ -447,41 +447,38 @@ import {
|
|
|
447
447
|
pickLogoAnimation,
|
|
448
448
|
renderLogoRows,
|
|
449
449
|
restFrame
|
|
450
|
-
} from "./chunk-
|
|
450
|
+
} from "./chunk-EZ27V5MZ.js";
|
|
451
451
|
import "./chunk-EDRKBK4B.js";
|
|
452
|
-
import "./chunk-LJ4I5TDX.js";
|
|
453
|
-
import {
|
|
454
|
-
require_semver
|
|
455
|
-
} from "./chunk-U4T5CWGD.js";
|
|
456
|
-
import "./chunk-PHTNY4JK.js";
|
|
457
|
-
import "./chunk-2JJLDP4A.js";
|
|
458
|
-
import "./chunk-MLAF3GLB.js";
|
|
459
452
|
import {
|
|
460
453
|
getCurrentLanguage,
|
|
461
454
|
localizeToolDisplayName,
|
|
462
455
|
t,
|
|
463
456
|
ta
|
|
464
|
-
} from "./chunk-
|
|
457
|
+
} from "./chunk-AS3WO2ZW.js";
|
|
465
458
|
import "./chunk-Q2V34OV7.js";
|
|
459
|
+
import "./chunk-OAAOCEVM.js";
|
|
460
|
+
import {
|
|
461
|
+
require_semver
|
|
462
|
+
} from "./chunk-U4T5CWGD.js";
|
|
463
|
+
import "./chunk-PHTNY4JK.js";
|
|
464
|
+
import "./chunk-2JJLDP4A.js";
|
|
465
|
+
import "./chunk-MLAF3GLB.js";
|
|
466
466
|
import "./chunk-CJ7JDQEG.js";
|
|
467
467
|
import "./chunk-CS4CELQI.js";
|
|
468
468
|
import "./chunk-FMWE3YMM.js";
|
|
469
469
|
import {
|
|
470
470
|
formatVersionLabel,
|
|
471
471
|
getCliVersion
|
|
472
|
-
} from "./chunk-
|
|
472
|
+
} from "./chunk-VINUVVAI.js";
|
|
473
473
|
import "./chunk-Y75AMWDB.js";
|
|
474
474
|
import "./chunk-FRITN2AG.js";
|
|
475
475
|
import "./chunk-F4S6U26O.js";
|
|
476
476
|
import {
|
|
477
477
|
isWorkspaceTrusted,
|
|
478
478
|
loadTrustedFolders
|
|
479
|
-
} from "./chunk-
|
|
479
|
+
} from "./chunk-ZHNI4QK6.js";
|
|
480
480
|
import "./chunk-BHXBXELA.js";
|
|
481
481
|
import "./chunk-MXCWSDSC.js";
|
|
482
|
-
import {
|
|
483
|
-
require_strip_json_comments
|
|
484
|
-
} from "./chunk-YCZIOHKD.js";
|
|
485
482
|
import {
|
|
486
483
|
AsyncFzf,
|
|
487
484
|
AutonomousLoopTickResolver,
|
|
@@ -523,16 +520,19 @@ import {
|
|
|
523
520
|
subagentGenerator,
|
|
524
521
|
supportsHyperlinks,
|
|
525
522
|
wrapForMultiplexer
|
|
526
|
-
} from "./chunk-
|
|
523
|
+
} from "./chunk-B5I3IUHG.js";
|
|
527
524
|
import "./chunk-MYMATZAY.js";
|
|
528
525
|
import "./chunk-6IFQXZTP.js";
|
|
526
|
+
import {
|
|
527
|
+
require_strip_json_comments
|
|
528
|
+
} from "./chunk-YCZIOHKD.js";
|
|
529
529
|
import "./chunk-YO3SEHXM.js";
|
|
530
530
|
import {
|
|
531
531
|
clearWorktreeSession,
|
|
532
532
|
isSessionRuntimeActive,
|
|
533
533
|
readWorktreeSession,
|
|
534
534
|
restoreWorktreeContext
|
|
535
|
-
} from "./chunk-
|
|
535
|
+
} from "./chunk-5F56IIHO.js";
|
|
536
536
|
import "./chunk-4JDEAIW5.js";
|
|
537
537
|
import {
|
|
538
538
|
PEER_ADMISSION_LIMITS,
|
|
@@ -541,12 +541,12 @@ import {
|
|
|
541
541
|
describeHoldCause,
|
|
542
542
|
parseHeldExpiry
|
|
543
543
|
} from "./chunk-AEGEUWVC.js";
|
|
544
|
-
import "./chunk-
|
|
544
|
+
import "./chunk-7ASCNDOR.js";
|
|
545
545
|
import "./chunk-VT3TJFQR.js";
|
|
546
|
-
import "./chunk-
|
|
546
|
+
import "./chunk-ZPZPI63H.js";
|
|
547
547
|
import "./chunk-WK44MSGW.js";
|
|
548
|
-
import "./chunk-
|
|
549
|
-
import "./chunk-
|
|
548
|
+
import "./chunk-C7QKP7FW.js";
|
|
549
|
+
import "./chunk-COMBBGHN.js";
|
|
550
550
|
import "./chunk-ZMZRVR62.js";
|
|
551
551
|
import "./chunk-NWCDFCWK.js";
|
|
552
552
|
import {
|
|
@@ -554,17 +554,17 @@ import {
|
|
|
554
554
|
isToolHiddenBehindToolSearch,
|
|
555
555
|
resolveWorkflowAuthoringSurface,
|
|
556
556
|
toolSearchBridgeSentence
|
|
557
|
-
} from "./chunk-
|
|
558
|
-
import "./chunk-
|
|
559
|
-
import "./chunk-
|
|
557
|
+
} from "./chunk-52G2UZZU.js";
|
|
558
|
+
import "./chunk-XOVXSDNN.js";
|
|
559
|
+
import "./chunk-7UEP4GNM.js";
|
|
560
560
|
import "./chunk-DQZYZDIL.js";
|
|
561
|
-
import "./chunk-
|
|
561
|
+
import "./chunk-QVMFV3XM.js";
|
|
562
562
|
import "./chunk-F3FKDGHN.js";
|
|
563
|
-
import "./chunk-
|
|
563
|
+
import "./chunk-WGFFYBV3.js";
|
|
564
564
|
import "./chunk-UBWL27PO.js";
|
|
565
565
|
import "./chunk-DM6W2QYB.js";
|
|
566
566
|
import "./chunk-UAACCQBD.js";
|
|
567
|
-
import "./chunk-
|
|
567
|
+
import "./chunk-H5AU3734.js";
|
|
568
568
|
import {
|
|
569
569
|
ConditionalRulesRegistry,
|
|
570
570
|
CoreToolScheduler,
|
|
@@ -626,12 +626,13 @@ import {
|
|
|
626
626
|
saveWorkflowScript,
|
|
627
627
|
updateSetting,
|
|
628
628
|
validateWorkflowName
|
|
629
|
-
} from "./chunk-
|
|
629
|
+
} from "./chunk-RKYOZTZO.js";
|
|
630
630
|
import "./chunk-FNALBCC7.js";
|
|
631
631
|
import "./chunk-BZOAEOYF.js";
|
|
632
632
|
import "./chunk-BIDB75DA.js";
|
|
633
633
|
import "./chunk-GYGA6V6B.js";
|
|
634
634
|
import "./chunk-EYWIFUPJ.js";
|
|
635
|
+
import "./chunk-MZI6FDZT.js";
|
|
635
636
|
import "./chunk-7H3GWNGJ.js";
|
|
636
637
|
import "./chunk-X427DWFD.js";
|
|
637
638
|
import {
|
|
@@ -643,13 +644,12 @@ import {
|
|
|
643
644
|
resolveBranchName,
|
|
644
645
|
watchRepoBranch,
|
|
645
646
|
writeRuntimeStatus
|
|
646
|
-
} from "./chunk-
|
|
647
|
+
} from "./chunk-5ZVLINFZ.js";
|
|
647
648
|
import "./chunk-DJOP5LOE.js";
|
|
648
649
|
import {
|
|
649
650
|
openBrowserSecurely,
|
|
650
651
|
shouldLaunchBrowser
|
|
651
|
-
} from "./chunk-
|
|
652
|
-
import "./chunk-MZI6FDZT.js";
|
|
652
|
+
} from "./chunk-FDNTWDR3.js";
|
|
653
653
|
import {
|
|
654
654
|
parseCron
|
|
655
655
|
} from "./chunk-4MSX3ERA.js";
|
|
@@ -668,50 +668,52 @@ import {
|
|
|
668
668
|
elapsedActiveTime,
|
|
669
669
|
goalPauseReasonForFailure,
|
|
670
670
|
goalRequiresExactPermit
|
|
671
|
-
} from "./chunk-
|
|
672
|
-
import "./chunk-
|
|
671
|
+
} from "./chunk-JOBNLOEW.js";
|
|
672
|
+
import "./chunk-2S3W2BIT.js";
|
|
673
|
+
import "./chunk-TC7UXK4M.js";
|
|
673
674
|
import "./chunk-DS3COGEF.js";
|
|
674
675
|
import {
|
|
675
676
|
resolveModelId
|
|
676
|
-
} from "./chunk-
|
|
677
|
+
} from "./chunk-OYDDO6OG.js";
|
|
677
678
|
import {
|
|
678
679
|
glob
|
|
679
680
|
} from "./chunk-4ESI3MQ5.js";
|
|
680
681
|
import "./chunk-SYMKXR42.js";
|
|
681
682
|
import "./chunk-JOBZWTVK.js";
|
|
682
683
|
import "./chunk-CDYMT4OZ.js";
|
|
683
|
-
import "./chunk-TC7UXK4M.js";
|
|
684
684
|
import "./chunk-HPQNI3OQ.js";
|
|
685
|
-
import "./chunk-
|
|
685
|
+
import "./chunk-LCZW6GXU.js";
|
|
686
|
+
import "./chunk-DVPQSDMD.js";
|
|
686
687
|
import "./chunk-CI2ZHR5C.js";
|
|
687
688
|
import {
|
|
688
689
|
ShellExecutionService,
|
|
689
690
|
isSignalTermination
|
|
690
|
-
} from "./chunk-
|
|
691
|
+
} from "./chunk-5TQYTWUK.js";
|
|
691
692
|
import {
|
|
692
693
|
stripAnsi
|
|
693
694
|
} from "./chunk-WU3R2YUE.js";
|
|
694
695
|
import {
|
|
695
696
|
formatMemoryUsage
|
|
696
697
|
} from "./chunk-M7AWQAB7.js";
|
|
698
|
+
import {
|
|
699
|
+
resolveBundleDir
|
|
700
|
+
} from "./chunk-Z2IHOXIK.js";
|
|
697
701
|
import {
|
|
698
702
|
promptIdContext
|
|
699
703
|
} from "./chunk-5JTXPGNQ.js";
|
|
700
|
-
import "./chunk-J5UW3SF4.js";
|
|
701
704
|
import {
|
|
702
|
-
|
|
703
|
-
} from "./chunk-
|
|
705
|
+
escapeShellArg
|
|
706
|
+
} from "./chunk-ICS5D7OZ.js";
|
|
704
707
|
import "./chunk-5QSLFAMR.js";
|
|
705
|
-
import "./chunk-
|
|
706
|
-
import "./chunk-P63XJ747.js";
|
|
708
|
+
import "./chunk-5PRQVH45.js";
|
|
707
709
|
import "./chunk-4LCUE7BN.js";
|
|
708
710
|
import "./chunk-RIN7SNJN.js";
|
|
709
711
|
import "./chunk-GVWQRVLV.js";
|
|
710
712
|
import "./chunk-4J6KRUQB.js";
|
|
711
|
-
import "./chunk-
|
|
713
|
+
import "./chunk-7LFCBMVX.js";
|
|
712
714
|
import {
|
|
713
715
|
parseRule
|
|
714
|
-
} from "./chunk-
|
|
716
|
+
} from "./chunk-OJSW65PQ.js";
|
|
715
717
|
import {
|
|
716
718
|
APPROVAL_MODES
|
|
717
719
|
} from "./chunk-KQAVEXYD.js";
|
|
@@ -730,27 +732,39 @@ import "./chunk-RCZHQZJJ.js";
|
|
|
730
732
|
import "./chunk-6YS3YH6O.js";
|
|
731
733
|
import "./chunk-OSMXNPJP.js";
|
|
732
734
|
import "./chunk-HX6AICAX.js";
|
|
733
|
-
import "./chunk-
|
|
735
|
+
import "./chunk-QWKLEJEY.js";
|
|
734
736
|
import {
|
|
735
737
|
runOutsideAgentContext
|
|
736
|
-
} from "./chunk-
|
|
738
|
+
} from "./chunk-V75J4GJ2.js";
|
|
737
739
|
import "./chunk-FOZEB37P.js";
|
|
740
|
+
import {
|
|
741
|
+
getStartupContextLength
|
|
742
|
+
} from "./chunk-ZQBNP2ZQ.js";
|
|
743
|
+
import "./chunk-YCTMVTDP.js";
|
|
744
|
+
import "./chunk-JSFADKTB.js";
|
|
745
|
+
import "./chunk-OHAUN3Q5.js";
|
|
746
|
+
import {
|
|
747
|
+
isPathWithinRoot
|
|
748
|
+
} from "./chunk-O7QDVXNJ.js";
|
|
749
|
+
import {
|
|
750
|
+
HOOKS_CONFIG_FIELDS
|
|
751
|
+
} from "./chunk-SRFL3HFU.js";
|
|
738
752
|
import "./chunk-BQAZCJF7.js";
|
|
739
753
|
import "./chunk-2QYMJSSC.js";
|
|
740
754
|
import "./chunk-AVCUVYSA.js";
|
|
741
755
|
import "./chunk-65B6QBMP.js";
|
|
742
756
|
import "./chunk-O4IWNFDK.js";
|
|
757
|
+
import "./chunk-WMJL2XAM.js";
|
|
743
758
|
import {
|
|
744
759
|
fetchKeyInfo,
|
|
745
760
|
onLowRateLimit
|
|
746
|
-
} from "./chunk-
|
|
761
|
+
} from "./chunk-LZQYRRU3.js";
|
|
747
762
|
import "./chunk-TC2TJAOF.js";
|
|
748
|
-
import "./chunk-WMJL2XAM.js";
|
|
749
763
|
import "./chunk-CP63SY5N.js";
|
|
750
764
|
import {
|
|
751
765
|
resolveReasoningForModel
|
|
752
|
-
} from "./chunk-
|
|
753
|
-
import "./chunk-
|
|
766
|
+
} from "./chunk-2HEFHPUO.js";
|
|
767
|
+
import "./chunk-U3KIMPCC.js";
|
|
754
768
|
import {
|
|
755
769
|
ApiCancelEvent,
|
|
756
770
|
AuthEvent,
|
|
@@ -789,7 +803,7 @@ import {
|
|
|
789
803
|
runVisionBridge,
|
|
790
804
|
shouldRunVisionBridge,
|
|
791
805
|
splitImageParts
|
|
792
|
-
} from "./chunk-
|
|
806
|
+
} from "./chunk-WN23CFGN.js";
|
|
793
807
|
import "./chunk-242JUBPM.js";
|
|
794
808
|
import {
|
|
795
809
|
DEFAULT_CONTEXT_FILENAME,
|
|
@@ -797,6 +811,7 @@ import {
|
|
|
797
811
|
getUnsupportedImageFormatWarning,
|
|
798
812
|
isSupportedImageMimeType
|
|
799
813
|
} from "./chunk-ROO6F2BT.js";
|
|
814
|
+
import "./chunk-3CMX5LCG.js";
|
|
800
815
|
import {
|
|
801
816
|
AUTO_MEMORY_INDEX_FILENAME,
|
|
802
817
|
getAutoMemoryProjectStateDir,
|
|
@@ -808,40 +823,27 @@ import "./chunk-GADK6OTE.js";
|
|
|
808
823
|
import {
|
|
809
824
|
runSideQuery
|
|
810
825
|
} from "./chunk-IC57EPC7.js";
|
|
811
|
-
import "./chunk-3CMX5LCG.js";
|
|
812
826
|
import {
|
|
813
827
|
clampInlineMediaPart
|
|
814
828
|
} from "./chunk-VEJCE7UR.js";
|
|
815
829
|
import "./chunk-R7FX7HIR.js";
|
|
816
830
|
import "./chunk-V4XETRAG.js";
|
|
817
831
|
import "./chunk-ABTPVII7.js";
|
|
832
|
+
import "./chunk-HOPKSSYR.js";
|
|
818
833
|
import "./chunk-FFUKRRCR.js";
|
|
819
834
|
import "./chunk-23AFREUQ.js";
|
|
820
|
-
import "./chunk-HOPKSSYR.js";
|
|
821
835
|
import "./chunk-IQEM74QW.js";
|
|
822
836
|
import {
|
|
823
837
|
endInteractionSpan,
|
|
824
838
|
getActiveInteractionSpan,
|
|
825
839
|
redactUrlCredentials
|
|
826
|
-
} from "./chunk-
|
|
840
|
+
} from "./chunk-JFO6OCHQ.js";
|
|
827
841
|
import {
|
|
828
842
|
isBinary,
|
|
829
843
|
stripAnsiAndControl
|
|
830
844
|
} from "./chunk-FKI7XUZK.js";
|
|
831
845
|
import "./chunk-EPSJPAHV.js";
|
|
832
846
|
import "./chunk-2MXORWOC.js";
|
|
833
|
-
import {
|
|
834
|
-
getStartupContextLength
|
|
835
|
-
} from "./chunk-ZRO2FPEP.js";
|
|
836
|
-
import "./chunk-YCTMVTDP.js";
|
|
837
|
-
import {
|
|
838
|
-
HOOKS_CONFIG_FIELDS
|
|
839
|
-
} from "./chunk-SRFL3HFU.js";
|
|
840
|
-
import "./chunk-JSFADKTB.js";
|
|
841
|
-
import "./chunk-OHAUN3Q5.js";
|
|
842
|
-
import {
|
|
843
|
-
isPathWithinRoot
|
|
844
|
-
} from "./chunk-O7QDVXNJ.js";
|
|
845
847
|
import {
|
|
846
848
|
isShellProgressData
|
|
847
849
|
} from "./chunk-JOFGX5ZA.js";
|
|
@@ -851,44 +853,6 @@ import {
|
|
|
851
853
|
ToolDisplayNames,
|
|
852
854
|
ToolNames
|
|
853
855
|
} from "./chunk-IWYGXAQU.js";
|
|
854
|
-
import "./chunk-WPZM4XOT.js";
|
|
855
|
-
import {
|
|
856
|
-
FinishReason
|
|
857
|
-
} from "./chunk-3D2STYD6.js";
|
|
858
|
-
import "./chunk-S7GOFMLU.js";
|
|
859
|
-
import "./chunk-EK7Y6LH6.js";
|
|
860
|
-
import "./chunk-HHIX6THS.js";
|
|
861
|
-
import "./chunk-O6GD6SFV.js";
|
|
862
|
-
import {
|
|
863
|
-
registerCleanup,
|
|
864
|
-
runExitCleanup
|
|
865
|
-
} from "./chunk-TLQWJJ6V.js";
|
|
866
|
-
import {
|
|
867
|
-
finalizeStartupProfile,
|
|
868
|
-
profileCheckpoint
|
|
869
|
-
} from "./chunk-YQLAMZOT.js";
|
|
870
|
-
import "./chunk-H7HA2YLC.js";
|
|
871
|
-
import {
|
|
872
|
-
clearScreen,
|
|
873
|
-
writeStderrLine,
|
|
874
|
-
writeStderrLineSafe,
|
|
875
|
-
writeStdoutLine
|
|
876
|
-
} from "./chunk-RANA4SOY.js";
|
|
877
|
-
import "./chunk-KMWAEX43.js";
|
|
878
|
-
import "./chunk-EVC2HZ5T.js";
|
|
879
|
-
import {
|
|
880
|
-
describeO1ConnectError,
|
|
881
|
-
forgetO1Connect,
|
|
882
|
-
isO1ConnectError,
|
|
883
|
-
o1ConnectBaseUrlFor,
|
|
884
|
-
openO1Connect,
|
|
885
|
-
setAsideUnreadableSecretStore,
|
|
886
|
-
setupO1Connect
|
|
887
|
-
} from "./chunk-JKXGHDQ2.js";
|
|
888
|
-
import {
|
|
889
|
-
atomicWriteFileSync
|
|
890
|
-
} from "./chunk-EPJAMNLS.js";
|
|
891
|
-
import "./chunk-7TK6OY2J.js";
|
|
892
856
|
import {
|
|
893
857
|
LOCAL_API_KEY_PLACEHOLDER,
|
|
894
858
|
ORGANIZAONE_ENV_KEY,
|
|
@@ -917,7 +881,7 @@ import {
|
|
|
917
881
|
resolveSavedModelApiKey,
|
|
918
882
|
shouldShowStep,
|
|
919
883
|
withdrawExportedCredential
|
|
920
|
-
} from "./chunk-
|
|
884
|
+
} from "./chunk-TYOWBAXR.js";
|
|
921
885
|
import {
|
|
922
886
|
DEFAULT_TOKEN_LIMIT,
|
|
923
887
|
REASONING_EFFORT_TIERS,
|
|
@@ -925,11 +889,51 @@ import {
|
|
|
925
889
|
parseModelReasoningCapabilities,
|
|
926
890
|
reasoningEffortsForCapability
|
|
927
891
|
} from "./chunk-72EBG4FJ.js";
|
|
892
|
+
import "./chunk-WPZM4XOT.js";
|
|
893
|
+
import {
|
|
894
|
+
FinishReason
|
|
895
|
+
} from "./chunk-VYRPAY75.js";
|
|
896
|
+
import "./chunk-S7GOFMLU.js";
|
|
897
|
+
import "./chunk-RC67CA5Z.js";
|
|
898
|
+
import "./chunk-VWZOXOSR.js";
|
|
899
|
+
import "./chunk-HHIX6THS.js";
|
|
900
|
+
import "./chunk-O6GD6SFV.js";
|
|
901
|
+
import {
|
|
902
|
+
registerCleanup,
|
|
903
|
+
runExitCleanup
|
|
904
|
+
} from "./chunk-JUWZD2PN.js";
|
|
905
|
+
import {
|
|
906
|
+
finalizeStartupProfile,
|
|
907
|
+
profileCheckpoint
|
|
908
|
+
} from "./chunk-YQLAMZOT.js";
|
|
909
|
+
import "./chunk-H7HA2YLC.js";
|
|
910
|
+
import {
|
|
911
|
+
clearScreen,
|
|
912
|
+
writeStderrLine,
|
|
913
|
+
writeStderrLineSafe,
|
|
914
|
+
writeStdoutLine
|
|
915
|
+
} from "./chunk-RANA4SOY.js";
|
|
916
|
+
import "./chunk-AK6T4SJC.js";
|
|
917
|
+
import "./chunk-KMWAEX43.js";
|
|
918
|
+
import "./chunk-EVC2HZ5T.js";
|
|
919
|
+
import {
|
|
920
|
+
describeO1ConnectError,
|
|
921
|
+
forgetO1Connect,
|
|
922
|
+
isO1ConnectError,
|
|
923
|
+
o1ConnectBaseUrlFor,
|
|
924
|
+
openO1Connect,
|
|
925
|
+
setAsideUnreadableSecretStore,
|
|
926
|
+
setupO1Connect
|
|
927
|
+
} from "./chunk-JKXGHDQ2.js";
|
|
928
|
+
import {
|
|
929
|
+
atomicWriteFileSync
|
|
930
|
+
} from "./chunk-EPJAMNLS.js";
|
|
928
931
|
import {
|
|
929
932
|
MAINLINE_CODER_MODEL
|
|
930
|
-
} from "./chunk-
|
|
933
|
+
} from "./chunk-DWQZQDYY.js";
|
|
931
934
|
import "./chunk-LEXKU5FI.js";
|
|
932
935
|
import "./chunk-HDGYCLNB.js";
|
|
936
|
+
import "./chunk-7TK6OY2J.js";
|
|
933
937
|
import {
|
|
934
938
|
createDebugLogger,
|
|
935
939
|
isDebugLogFileEnabled,
|
|
@@ -3024,8 +3028,8 @@ var Notices = /* @__PURE__ */ __name(({
|
|
|
3024
3028
|
] })
|
|
3025
3029
|
] });
|
|
3026
3030
|
}, "Notices");
|
|
3027
|
-
var PathText = /* @__PURE__ */ __name(({ path:
|
|
3028
|
-
const { parent, name } = fitPath(
|
|
3031
|
+
var PathText = /* @__PURE__ */ __name(({ path: path14, room }) => {
|
|
3032
|
+
const { parent, name } = fitPath(path14, room);
|
|
3029
3033
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Text, { children: [
|
|
3030
3034
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: extendedTheme.text.muted, children: parent }),
|
|
3031
3035
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { color: theme.text.primary, bold: true, children: name })
|
|
@@ -3044,7 +3048,7 @@ var Header = /* @__PURE__ */ __name(({
|
|
|
3044
3048
|
const tier = getLayoutTier(columns);
|
|
3045
3049
|
const marginX = sideMargin(tier);
|
|
3046
3050
|
const width = Math.max(0, columns - marginX * 2);
|
|
3047
|
-
const
|
|
3051
|
+
const path14 = process.platform === "win32" ? workingDirectory : tildeifyPath(workingDirectory);
|
|
3048
3052
|
const versionText = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { bold: true, color: extendedTheme.text.muted, children: `${formatVersionLabel(version)} \xB7 ${organization.toUpperCase()}` });
|
|
3049
3053
|
const notices = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3050
3054
|
Notices,
|
|
@@ -3062,11 +3066,11 @@ var Header = /* @__PURE__ */ __name(({
|
|
|
3062
3066
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Box_default, { flexDirection: "column", marginX, width, children: [
|
|
3063
3067
|
row("logo", /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(O1Wordmark, {}), versionText),
|
|
3064
3068
|
row("notices", null, notices),
|
|
3065
|
-
row("path", null, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PathText, { path:
|
|
3069
|
+
row("path", null, /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(PathText, { path: path14, room: width }))
|
|
3066
3070
|
] });
|
|
3067
3071
|
}
|
|
3068
3072
|
const hints = hintItems(tier);
|
|
3069
|
-
const folderWidth = getCachedStringWidth(fitPath(
|
|
3073
|
+
const folderWidth = getCachedStringWidth(fitPath(path14, 0).name);
|
|
3070
3074
|
while (hints.length > 0 && hintsWidth(hints) + 3 + folderWidth > width) {
|
|
3071
3075
|
hints.pop();
|
|
3072
3076
|
}
|
|
@@ -3090,7 +3094,7 @@ var Header = /* @__PURE__ */ __name(({
|
|
|
3090
3094
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3091
3095
|
PathText,
|
|
3092
3096
|
{
|
|
3093
|
-
path:
|
|
3097
|
+
path: path14,
|
|
3094
3098
|
room: hints.length > 0 ? width - hintsWidth(hints) - 3 : width
|
|
3095
3099
|
}
|
|
3096
3100
|
)
|
|
@@ -9451,8 +9455,8 @@ function SettingsDialog({
|
|
|
9451
9455
|
displayValue2 = before + (cursorVisible ? renderSoftwareCursor(cursor) : cursor) + after;
|
|
9452
9456
|
} else if (isNumericSettingType(item.type) || item.type === "string") {
|
|
9453
9457
|
const isSubDialogSetting = item.value === "ui.theme" || item.value === "general.preferredEditor" || item.value === "fastModel" || item.value === "visionModel";
|
|
9454
|
-
const
|
|
9455
|
-
const currentValue = getNestedValue(pendingSettings,
|
|
9458
|
+
const path14 = item.value.split(".");
|
|
9459
|
+
const currentValue = getNestedValue(pendingSettings, path14);
|
|
9456
9460
|
const defaultValue = getDefaultValue(item.value);
|
|
9457
9461
|
const effectiveCurrentValue = currentValue !== void 0 && currentValue !== null ? currentValue : defaultValue;
|
|
9458
9462
|
if (item.value === "general.outputLanguage" && isAutoLanguage(
|
|
@@ -12905,7 +12909,7 @@ function AuthDialog() {
|
|
|
12905
12909
|
local: [t("Local")],
|
|
12906
12910
|
family: [t("API key"), family ? t(family.label) : ""]
|
|
12907
12911
|
};
|
|
12908
|
-
const
|
|
12912
|
+
const path14 = viewLevel !== "provider-setup" ? menuPaths[viewLevel] : p ? [t(p.uiLabels?.flowTitle ?? p.label), getStepLabel(step, p)] : [t("Provider Setup")];
|
|
12909
12913
|
const position = getAuthStepPosition({
|
|
12910
12914
|
screensBefore: viewStack.length,
|
|
12911
12915
|
...viewLevel === "provider-setup" ? { flow: { stepIndex, totalSteps } } : {}
|
|
@@ -12921,7 +12925,7 @@ function AuthDialog() {
|
|
|
12921
12925
|
};
|
|
12922
12926
|
}
|
|
12923
12927
|
return {
|
|
12924
|
-
viewPath:
|
|
12928
|
+
viewPath: path14,
|
|
12925
12929
|
stepText: position.total === void 0 ? t("step {{step}}", { step: String(position.step) }) : t("step {{step}} of {{total}}", {
|
|
12926
12930
|
step: String(position.step),
|
|
12927
12931
|
total: String(position.total)
|
|
@@ -16330,7 +16334,7 @@ function OutputStyleDialog({
|
|
|
16330
16334
|
__name(OutputStyleDialog, "OutputStyleDialog");
|
|
16331
16335
|
|
|
16332
16336
|
// packages/cli/src/ui/components/DialogManager.tsx
|
|
16333
|
-
import
|
|
16337
|
+
import process4 from "node:process";
|
|
16334
16338
|
|
|
16335
16339
|
// packages/cli/src/ui/components/IdeTrustChangeDialog.tsx
|
|
16336
16340
|
init_esbuild_shims();
|
|
@@ -19010,538 +19014,6 @@ var TabBar2 = /* @__PURE__ */ __name(({
|
|
|
19010
19014
|
// packages/cli/src/ui/components/extensions/tabs/DiscoverTab.tsx
|
|
19011
19015
|
init_esbuild_shims();
|
|
19012
19016
|
var import_react67 = __toESM(require_react(), 1);
|
|
19013
|
-
|
|
19014
|
-
// node_modules/open/index.js
|
|
19015
|
-
init_esbuild_shims();
|
|
19016
|
-
import process9 from "node:process";
|
|
19017
|
-
import { Buffer as Buffer2 } from "node:buffer";
|
|
19018
|
-
import path from "node:path";
|
|
19019
|
-
import { fileURLToPath } from "node:url";
|
|
19020
|
-
import { promisify as promisify5 } from "node:util";
|
|
19021
|
-
import childProcess from "node:child_process";
|
|
19022
|
-
import fs7, { constants as fsConstants2 } from "node:fs/promises";
|
|
19023
|
-
|
|
19024
|
-
// node_modules/wsl-utils/index.js
|
|
19025
|
-
init_esbuild_shims();
|
|
19026
|
-
import process5 from "node:process";
|
|
19027
|
-
import fs6, { constants as fsConstants } from "node:fs/promises";
|
|
19028
|
-
|
|
19029
|
-
// node_modules/wsl-utils/node_modules/is-wsl/index.js
|
|
19030
|
-
init_esbuild_shims();
|
|
19031
|
-
import process4 from "node:process";
|
|
19032
|
-
import os4 from "node:os";
|
|
19033
|
-
import fs5 from "node:fs";
|
|
19034
|
-
|
|
19035
|
-
// node_modules/is-inside-container/index.js
|
|
19036
|
-
init_esbuild_shims();
|
|
19037
|
-
import fs4 from "node:fs";
|
|
19038
|
-
|
|
19039
|
-
// node_modules/is-inside-container/node_modules/is-docker/index.js
|
|
19040
|
-
init_esbuild_shims();
|
|
19041
|
-
import fs3 from "node:fs";
|
|
19042
|
-
var isDockerCached;
|
|
19043
|
-
function hasDockerEnv() {
|
|
19044
|
-
try {
|
|
19045
|
-
fs3.statSync("/.dockerenv");
|
|
19046
|
-
return true;
|
|
19047
|
-
} catch {
|
|
19048
|
-
return false;
|
|
19049
|
-
}
|
|
19050
|
-
}
|
|
19051
|
-
__name(hasDockerEnv, "hasDockerEnv");
|
|
19052
|
-
function hasDockerCGroup() {
|
|
19053
|
-
try {
|
|
19054
|
-
return fs3.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
19055
|
-
} catch {
|
|
19056
|
-
return false;
|
|
19057
|
-
}
|
|
19058
|
-
}
|
|
19059
|
-
__name(hasDockerCGroup, "hasDockerCGroup");
|
|
19060
|
-
function isDocker() {
|
|
19061
|
-
if (isDockerCached === void 0) {
|
|
19062
|
-
isDockerCached = hasDockerEnv() || hasDockerCGroup();
|
|
19063
|
-
}
|
|
19064
|
-
return isDockerCached;
|
|
19065
|
-
}
|
|
19066
|
-
__name(isDocker, "isDocker");
|
|
19067
|
-
|
|
19068
|
-
// node_modules/is-inside-container/index.js
|
|
19069
|
-
var cachedResult;
|
|
19070
|
-
var hasContainerEnv = /* @__PURE__ */ __name(() => {
|
|
19071
|
-
try {
|
|
19072
|
-
fs4.statSync("/run/.containerenv");
|
|
19073
|
-
return true;
|
|
19074
|
-
} catch {
|
|
19075
|
-
return false;
|
|
19076
|
-
}
|
|
19077
|
-
}, "hasContainerEnv");
|
|
19078
|
-
function isInsideContainer() {
|
|
19079
|
-
if (cachedResult === void 0) {
|
|
19080
|
-
cachedResult = hasContainerEnv() || isDocker();
|
|
19081
|
-
}
|
|
19082
|
-
return cachedResult;
|
|
19083
|
-
}
|
|
19084
|
-
__name(isInsideContainer, "isInsideContainer");
|
|
19085
|
-
|
|
19086
|
-
// node_modules/wsl-utils/node_modules/is-wsl/index.js
|
|
19087
|
-
var isWsl2 = /* @__PURE__ */ __name(() => {
|
|
19088
|
-
if (process4.platform !== "linux") {
|
|
19089
|
-
return false;
|
|
19090
|
-
}
|
|
19091
|
-
if (os4.release().toLowerCase().includes("microsoft")) {
|
|
19092
|
-
if (isInsideContainer()) {
|
|
19093
|
-
return false;
|
|
19094
|
-
}
|
|
19095
|
-
return true;
|
|
19096
|
-
}
|
|
19097
|
-
try {
|
|
19098
|
-
return fs5.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
19099
|
-
} catch {
|
|
19100
|
-
return false;
|
|
19101
|
-
}
|
|
19102
|
-
}, "isWsl");
|
|
19103
|
-
var is_wsl_default = process4.env.__IS_WSL_TEST__ ? isWsl2 : isWsl2();
|
|
19104
|
-
|
|
19105
|
-
// node_modules/wsl-utils/index.js
|
|
19106
|
-
var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
19107
|
-
const defaultMountPoint = "/mnt/";
|
|
19108
|
-
let mountPoint;
|
|
19109
|
-
return async function() {
|
|
19110
|
-
if (mountPoint) {
|
|
19111
|
-
return mountPoint;
|
|
19112
|
-
}
|
|
19113
|
-
const configFilePath = "/etc/wsl.conf";
|
|
19114
|
-
let isConfigFileExists = false;
|
|
19115
|
-
try {
|
|
19116
|
-
await fs6.access(configFilePath, fsConstants.F_OK);
|
|
19117
|
-
isConfigFileExists = true;
|
|
19118
|
-
} catch {
|
|
19119
|
-
}
|
|
19120
|
-
if (!isConfigFileExists) {
|
|
19121
|
-
return defaultMountPoint;
|
|
19122
|
-
}
|
|
19123
|
-
const configContent = await fs6.readFile(configFilePath, { encoding: "utf8" });
|
|
19124
|
-
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
19125
|
-
if (!configMountPoint) {
|
|
19126
|
-
return defaultMountPoint;
|
|
19127
|
-
}
|
|
19128
|
-
mountPoint = configMountPoint.groups.mountPoint.trim();
|
|
19129
|
-
mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
|
|
19130
|
-
return mountPoint;
|
|
19131
|
-
};
|
|
19132
|
-
})();
|
|
19133
|
-
var powerShellPathFromWsl = /* @__PURE__ */ __name(async () => {
|
|
19134
|
-
const mountPoint = await wslDrivesMountPoint();
|
|
19135
|
-
return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
|
|
19136
|
-
}, "powerShellPathFromWsl");
|
|
19137
|
-
var powerShellPath = /* @__PURE__ */ __name(async () => {
|
|
19138
|
-
if (is_wsl_default) {
|
|
19139
|
-
return powerShellPathFromWsl();
|
|
19140
|
-
}
|
|
19141
|
-
return `${process5.env.SYSTEMROOT || process5.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
19142
|
-
}, "powerShellPath");
|
|
19143
|
-
|
|
19144
|
-
// node_modules/define-lazy-prop/index.js
|
|
19145
|
-
init_esbuild_shims();
|
|
19146
|
-
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
19147
|
-
const define = /* @__PURE__ */ __name((value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true }), "define");
|
|
19148
|
-
Object.defineProperty(object, propertyName, {
|
|
19149
|
-
configurable: true,
|
|
19150
|
-
enumerable: true,
|
|
19151
|
-
get() {
|
|
19152
|
-
const result = valueGetter();
|
|
19153
|
-
define(result);
|
|
19154
|
-
return result;
|
|
19155
|
-
},
|
|
19156
|
-
set(value) {
|
|
19157
|
-
define(value);
|
|
19158
|
-
}
|
|
19159
|
-
});
|
|
19160
|
-
return object;
|
|
19161
|
-
}
|
|
19162
|
-
__name(defineLazyProperty, "defineLazyProperty");
|
|
19163
|
-
|
|
19164
|
-
// node_modules/default-browser/index.js
|
|
19165
|
-
init_esbuild_shims();
|
|
19166
|
-
import { promisify as promisify4 } from "node:util";
|
|
19167
|
-
import process8 from "node:process";
|
|
19168
|
-
import { execFile as execFile5 } from "node:child_process";
|
|
19169
|
-
|
|
19170
|
-
// node_modules/default-browser-id/index.js
|
|
19171
|
-
init_esbuild_shims();
|
|
19172
|
-
import { promisify } from "node:util";
|
|
19173
|
-
import process6 from "node:process";
|
|
19174
|
-
import { execFile as execFile2 } from "node:child_process";
|
|
19175
|
-
var execFileAsync = promisify(execFile2);
|
|
19176
|
-
async function defaultBrowserId() {
|
|
19177
|
-
if (process6.platform !== "darwin") {
|
|
19178
|
-
throw new Error("macOS only");
|
|
19179
|
-
}
|
|
19180
|
-
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
19181
|
-
const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
|
|
19182
|
-
return match?.groups.id ?? "com.apple.Safari";
|
|
19183
|
-
}
|
|
19184
|
-
__name(defaultBrowserId, "defaultBrowserId");
|
|
19185
|
-
|
|
19186
|
-
// node_modules/bundle-name/index.js
|
|
19187
|
-
init_esbuild_shims();
|
|
19188
|
-
|
|
19189
|
-
// node_modules/run-applescript/index.js
|
|
19190
|
-
init_esbuild_shims();
|
|
19191
|
-
import process7 from "node:process";
|
|
19192
|
-
import { promisify as promisify2 } from "node:util";
|
|
19193
|
-
import { execFile as execFile3, execFileSync } from "node:child_process";
|
|
19194
|
-
var execFileAsync2 = promisify2(execFile3);
|
|
19195
|
-
async function runAppleScript(script, { humanReadableOutput = true } = {}) {
|
|
19196
|
-
if (process7.platform !== "darwin") {
|
|
19197
|
-
throw new Error("macOS only");
|
|
19198
|
-
}
|
|
19199
|
-
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
19200
|
-
const { stdout } = await execFileAsync2("osascript", ["-e", script, outputArguments]);
|
|
19201
|
-
return stdout.trim();
|
|
19202
|
-
}
|
|
19203
|
-
__name(runAppleScript, "runAppleScript");
|
|
19204
|
-
|
|
19205
|
-
// node_modules/bundle-name/index.js
|
|
19206
|
-
async function bundleName(bundleId) {
|
|
19207
|
-
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
|
|
19208
|
-
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
19209
|
-
}
|
|
19210
|
-
__name(bundleName, "bundleName");
|
|
19211
|
-
|
|
19212
|
-
// node_modules/default-browser/windows.js
|
|
19213
|
-
init_esbuild_shims();
|
|
19214
|
-
import { promisify as promisify3 } from "node:util";
|
|
19215
|
-
import { execFile as execFile4 } from "node:child_process";
|
|
19216
|
-
var execFileAsync3 = promisify3(execFile4);
|
|
19217
|
-
var windowsBrowserProgIds = {
|
|
19218
|
-
MSEdgeHTM: { name: "Edge", id: "com.microsoft.edge" },
|
|
19219
|
-
// The missing `L` is correct.
|
|
19220
|
-
MSEdgeBHTML: { name: "Edge Beta", id: "com.microsoft.edge.beta" },
|
|
19221
|
-
MSEdgeDHTML: { name: "Edge Dev", id: "com.microsoft.edge.dev" },
|
|
19222
|
-
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
19223
|
-
ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
|
|
19224
|
-
ChromeBHTML: { name: "Chrome Beta", id: "com.google.chrome.beta" },
|
|
19225
|
-
ChromeDHTML: { name: "Chrome Dev", id: "com.google.chrome.dev" },
|
|
19226
|
-
ChromiumHTM: { name: "Chromium", id: "org.chromium.Chromium" },
|
|
19227
|
-
BraveHTML: { name: "Brave", id: "com.brave.Browser" },
|
|
19228
|
-
BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
|
|
19229
|
-
BraveDHTML: { name: "Brave Dev", id: "com.brave.Browser.dev" },
|
|
19230
|
-
BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" },
|
|
19231
|
-
FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
|
|
19232
|
-
OperaStable: { name: "Opera", id: "com.operasoftware.Opera" },
|
|
19233
|
-
VivaldiHTM: { name: "Vivaldi", id: "com.vivaldi.Vivaldi" },
|
|
19234
|
-
"IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" }
|
|
19235
|
-
};
|
|
19236
|
-
var _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
|
|
19237
|
-
var UnknownBrowserError = class extends Error {
|
|
19238
|
-
static {
|
|
19239
|
-
__name(this, "UnknownBrowserError");
|
|
19240
|
-
}
|
|
19241
|
-
};
|
|
19242
|
-
async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
19243
|
-
const { stdout } = await _execFileAsync("reg", [
|
|
19244
|
-
"QUERY",
|
|
19245
|
-
" HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
|
|
19246
|
-
"/v",
|
|
19247
|
-
"ProgId"
|
|
19248
|
-
]);
|
|
19249
|
-
const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
|
|
19250
|
-
if (!match) {
|
|
19251
|
-
throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
|
|
19252
|
-
}
|
|
19253
|
-
const { id } = match.groups;
|
|
19254
|
-
const dotIndex = id.lastIndexOf(".");
|
|
19255
|
-
const hyphenIndex = id.lastIndexOf("-");
|
|
19256
|
-
const baseIdByDot = dotIndex === -1 ? void 0 : id.slice(0, dotIndex);
|
|
19257
|
-
const baseIdByHyphen = hyphenIndex === -1 ? void 0 : id.slice(0, hyphenIndex);
|
|
19258
|
-
return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? { name: id, id };
|
|
19259
|
-
}
|
|
19260
|
-
__name(defaultBrowser, "defaultBrowser");
|
|
19261
|
-
|
|
19262
|
-
// node_modules/default-browser/index.js
|
|
19263
|
-
var execFileAsync4 = promisify4(execFile5);
|
|
19264
|
-
var titleize = /* @__PURE__ */ __name((string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase()), "titleize");
|
|
19265
|
-
async function defaultBrowser2() {
|
|
19266
|
-
if (process8.platform === "darwin") {
|
|
19267
|
-
const id = await defaultBrowserId();
|
|
19268
|
-
const name = await bundleName(id);
|
|
19269
|
-
return { name, id };
|
|
19270
|
-
}
|
|
19271
|
-
if (process8.platform === "linux") {
|
|
19272
|
-
const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
|
|
19273
|
-
const id = stdout.trim();
|
|
19274
|
-
const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
|
|
19275
|
-
return { name, id };
|
|
19276
|
-
}
|
|
19277
|
-
if (process8.platform === "win32") {
|
|
19278
|
-
return defaultBrowser();
|
|
19279
|
-
}
|
|
19280
|
-
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
19281
|
-
}
|
|
19282
|
-
__name(defaultBrowser2, "defaultBrowser");
|
|
19283
|
-
|
|
19284
|
-
// node_modules/open/index.js
|
|
19285
|
-
var execFile6 = promisify5(childProcess.execFile);
|
|
19286
|
-
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
19287
|
-
var localXdgOpenPath = path.join(__dirname, "xdg-open");
|
|
19288
|
-
var { platform, arch } = process9;
|
|
19289
|
-
async function getWindowsDefaultBrowserFromWsl() {
|
|
19290
|
-
const powershellPath = await powerShellPath();
|
|
19291
|
-
const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
|
|
19292
|
-
const encodedCommand = Buffer2.from(rawCommand, "utf16le").toString("base64");
|
|
19293
|
-
const { stdout } = await execFile6(
|
|
19294
|
-
powershellPath,
|
|
19295
|
-
[
|
|
19296
|
-
"-NoProfile",
|
|
19297
|
-
"-NonInteractive",
|
|
19298
|
-
"-ExecutionPolicy",
|
|
19299
|
-
"Bypass",
|
|
19300
|
-
"-EncodedCommand",
|
|
19301
|
-
encodedCommand
|
|
19302
|
-
],
|
|
19303
|
-
{ encoding: "utf8" }
|
|
19304
|
-
);
|
|
19305
|
-
const progId = stdout.trim();
|
|
19306
|
-
const browserMap = {
|
|
19307
|
-
ChromeHTML: "com.google.chrome",
|
|
19308
|
-
BraveHTML: "com.brave.Browser",
|
|
19309
|
-
MSEdgeHTM: "com.microsoft.edge",
|
|
19310
|
-
FirefoxURL: "org.mozilla.firefox"
|
|
19311
|
-
};
|
|
19312
|
-
return browserMap[progId] ? { id: browserMap[progId] } : {};
|
|
19313
|
-
}
|
|
19314
|
-
__name(getWindowsDefaultBrowserFromWsl, "getWindowsDefaultBrowserFromWsl");
|
|
19315
|
-
var pTryEach = /* @__PURE__ */ __name(async (array, mapper) => {
|
|
19316
|
-
let latestError;
|
|
19317
|
-
for (const item of array) {
|
|
19318
|
-
try {
|
|
19319
|
-
return await mapper(item);
|
|
19320
|
-
} catch (error) {
|
|
19321
|
-
latestError = error;
|
|
19322
|
-
}
|
|
19323
|
-
}
|
|
19324
|
-
throw latestError;
|
|
19325
|
-
}, "pTryEach");
|
|
19326
|
-
var baseOpen = /* @__PURE__ */ __name(async (options) => {
|
|
19327
|
-
options = {
|
|
19328
|
-
wait: false,
|
|
19329
|
-
background: false,
|
|
19330
|
-
newInstance: false,
|
|
19331
|
-
allowNonzeroExitCode: false,
|
|
19332
|
-
...options
|
|
19333
|
-
};
|
|
19334
|
-
if (Array.isArray(options.app)) {
|
|
19335
|
-
return pTryEach(options.app, (singleApp) => baseOpen({
|
|
19336
|
-
...options,
|
|
19337
|
-
app: singleApp
|
|
19338
|
-
}));
|
|
19339
|
-
}
|
|
19340
|
-
let { name: app, arguments: appArguments = [] } = options.app ?? {};
|
|
19341
|
-
appArguments = [...appArguments];
|
|
19342
|
-
if (Array.isArray(app)) {
|
|
19343
|
-
return pTryEach(app, (appName) => baseOpen({
|
|
19344
|
-
...options,
|
|
19345
|
-
app: {
|
|
19346
|
-
name: appName,
|
|
19347
|
-
arguments: appArguments
|
|
19348
|
-
}
|
|
19349
|
-
}));
|
|
19350
|
-
}
|
|
19351
|
-
if (app === "browser" || app === "browserPrivate") {
|
|
19352
|
-
const ids = {
|
|
19353
|
-
"com.google.chrome": "chrome",
|
|
19354
|
-
"google-chrome.desktop": "chrome",
|
|
19355
|
-
"com.brave.Browser": "brave",
|
|
19356
|
-
"org.mozilla.firefox": "firefox",
|
|
19357
|
-
"firefox.desktop": "firefox",
|
|
19358
|
-
"com.microsoft.msedge": "edge",
|
|
19359
|
-
"com.microsoft.edge": "edge",
|
|
19360
|
-
"com.microsoft.edgemac": "edge",
|
|
19361
|
-
"microsoft-edge.desktop": "edge"
|
|
19362
|
-
};
|
|
19363
|
-
const flags = {
|
|
19364
|
-
chrome: "--incognito",
|
|
19365
|
-
brave: "--incognito",
|
|
19366
|
-
firefox: "--private-window",
|
|
19367
|
-
edge: "--inPrivate"
|
|
19368
|
-
};
|
|
19369
|
-
const browser = is_wsl_default ? await getWindowsDefaultBrowserFromWsl() : await defaultBrowser2();
|
|
19370
|
-
if (browser.id in ids) {
|
|
19371
|
-
const browserName = ids[browser.id];
|
|
19372
|
-
if (app === "browserPrivate") {
|
|
19373
|
-
appArguments.push(flags[browserName]);
|
|
19374
|
-
}
|
|
19375
|
-
return baseOpen({
|
|
19376
|
-
...options,
|
|
19377
|
-
app: {
|
|
19378
|
-
name: apps[browserName],
|
|
19379
|
-
arguments: appArguments
|
|
19380
|
-
}
|
|
19381
|
-
});
|
|
19382
|
-
}
|
|
19383
|
-
throw new Error(`${browser.name} is not supported as a default browser`);
|
|
19384
|
-
}
|
|
19385
|
-
let command;
|
|
19386
|
-
const cliArguments = [];
|
|
19387
|
-
const childProcessOptions = {};
|
|
19388
|
-
if (platform === "darwin") {
|
|
19389
|
-
command = "open";
|
|
19390
|
-
if (options.wait) {
|
|
19391
|
-
cliArguments.push("--wait-apps");
|
|
19392
|
-
}
|
|
19393
|
-
if (options.background) {
|
|
19394
|
-
cliArguments.push("--background");
|
|
19395
|
-
}
|
|
19396
|
-
if (options.newInstance) {
|
|
19397
|
-
cliArguments.push("--new");
|
|
19398
|
-
}
|
|
19399
|
-
if (app) {
|
|
19400
|
-
cliArguments.push("-a", app);
|
|
19401
|
-
}
|
|
19402
|
-
} else if (platform === "win32" || is_wsl_default && !isInsideContainer() && !app) {
|
|
19403
|
-
command = await powerShellPath();
|
|
19404
|
-
cliArguments.push(
|
|
19405
|
-
"-NoProfile",
|
|
19406
|
-
"-NonInteractive",
|
|
19407
|
-
"-ExecutionPolicy",
|
|
19408
|
-
"Bypass",
|
|
19409
|
-
"-EncodedCommand"
|
|
19410
|
-
);
|
|
19411
|
-
if (!is_wsl_default) {
|
|
19412
|
-
childProcessOptions.windowsVerbatimArguments = true;
|
|
19413
|
-
}
|
|
19414
|
-
const encodedArguments = ["Start"];
|
|
19415
|
-
if (options.wait) {
|
|
19416
|
-
encodedArguments.push("-Wait");
|
|
19417
|
-
}
|
|
19418
|
-
if (app) {
|
|
19419
|
-
encodedArguments.push(`"\`"${app}\`""`);
|
|
19420
|
-
if (options.target) {
|
|
19421
|
-
appArguments.push(options.target);
|
|
19422
|
-
}
|
|
19423
|
-
} else if (options.target) {
|
|
19424
|
-
encodedArguments.push(`"${options.target}"`);
|
|
19425
|
-
}
|
|
19426
|
-
if (appArguments.length > 0) {
|
|
19427
|
-
appArguments = appArguments.map((argument) => `"\`"${argument}\`""`);
|
|
19428
|
-
encodedArguments.push("-ArgumentList", appArguments.join(","));
|
|
19429
|
-
}
|
|
19430
|
-
options.target = Buffer2.from(encodedArguments.join(" "), "utf16le").toString("base64");
|
|
19431
|
-
} else {
|
|
19432
|
-
if (app) {
|
|
19433
|
-
command = app;
|
|
19434
|
-
} else {
|
|
19435
|
-
const isBundled = !__dirname || __dirname === "/";
|
|
19436
|
-
let exeLocalXdgOpen = false;
|
|
19437
|
-
try {
|
|
19438
|
-
await fs7.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
19439
|
-
exeLocalXdgOpen = true;
|
|
19440
|
-
} catch {
|
|
19441
|
-
}
|
|
19442
|
-
const useSystemXdgOpen = process9.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen);
|
|
19443
|
-
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
19444
|
-
}
|
|
19445
|
-
if (appArguments.length > 0) {
|
|
19446
|
-
cliArguments.push(...appArguments);
|
|
19447
|
-
}
|
|
19448
|
-
if (!options.wait) {
|
|
19449
|
-
childProcessOptions.stdio = "ignore";
|
|
19450
|
-
childProcessOptions.detached = true;
|
|
19451
|
-
}
|
|
19452
|
-
}
|
|
19453
|
-
if (platform === "darwin" && appArguments.length > 0) {
|
|
19454
|
-
cliArguments.push("--args", ...appArguments);
|
|
19455
|
-
}
|
|
19456
|
-
if (options.target) {
|
|
19457
|
-
cliArguments.push(options.target);
|
|
19458
|
-
}
|
|
19459
|
-
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
|
|
19460
|
-
if (options.wait) {
|
|
19461
|
-
return new Promise((resolve5, reject) => {
|
|
19462
|
-
subprocess.once("error", reject);
|
|
19463
|
-
subprocess.once("close", (exitCode) => {
|
|
19464
|
-
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
19465
|
-
reject(new Error(`Exited with code ${exitCode}`));
|
|
19466
|
-
return;
|
|
19467
|
-
}
|
|
19468
|
-
resolve5(subprocess);
|
|
19469
|
-
});
|
|
19470
|
-
});
|
|
19471
|
-
}
|
|
19472
|
-
subprocess.unref();
|
|
19473
|
-
return subprocess;
|
|
19474
|
-
}, "baseOpen");
|
|
19475
|
-
var open = /* @__PURE__ */ __name((target, options) => {
|
|
19476
|
-
if (typeof target !== "string") {
|
|
19477
|
-
throw new TypeError("Expected a `target`");
|
|
19478
|
-
}
|
|
19479
|
-
return baseOpen({
|
|
19480
|
-
...options,
|
|
19481
|
-
target
|
|
19482
|
-
});
|
|
19483
|
-
}, "open");
|
|
19484
|
-
function detectArchBinary(binary) {
|
|
19485
|
-
if (typeof binary === "string" || Array.isArray(binary)) {
|
|
19486
|
-
return binary;
|
|
19487
|
-
}
|
|
19488
|
-
const { [arch]: archBinary } = binary;
|
|
19489
|
-
if (!archBinary) {
|
|
19490
|
-
throw new Error(`${arch} is not supported`);
|
|
19491
|
-
}
|
|
19492
|
-
return archBinary;
|
|
19493
|
-
}
|
|
19494
|
-
__name(detectArchBinary, "detectArchBinary");
|
|
19495
|
-
function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
|
|
19496
|
-
if (wsl && is_wsl_default) {
|
|
19497
|
-
return detectArchBinary(wsl);
|
|
19498
|
-
}
|
|
19499
|
-
if (!platformBinary) {
|
|
19500
|
-
throw new Error(`${platform} is not supported`);
|
|
19501
|
-
}
|
|
19502
|
-
return detectArchBinary(platformBinary);
|
|
19503
|
-
}
|
|
19504
|
-
__name(detectPlatformBinary, "detectPlatformBinary");
|
|
19505
|
-
var apps = {};
|
|
19506
|
-
defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
|
|
19507
|
-
darwin: "google chrome",
|
|
19508
|
-
win32: "chrome",
|
|
19509
|
-
linux: ["google-chrome", "google-chrome-stable", "chromium"]
|
|
19510
|
-
}, {
|
|
19511
|
-
wsl: {
|
|
19512
|
-
ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
|
|
19513
|
-
x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
|
|
19514
|
-
}
|
|
19515
|
-
}));
|
|
19516
|
-
defineLazyProperty(apps, "brave", () => detectPlatformBinary({
|
|
19517
|
-
darwin: "brave browser",
|
|
19518
|
-
win32: "brave",
|
|
19519
|
-
linux: ["brave-browser", "brave"]
|
|
19520
|
-
}, {
|
|
19521
|
-
wsl: {
|
|
19522
|
-
ia32: "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",
|
|
19523
|
-
x64: ["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe", "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]
|
|
19524
|
-
}
|
|
19525
|
-
}));
|
|
19526
|
-
defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
|
|
19527
|
-
darwin: "firefox",
|
|
19528
|
-
win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
|
|
19529
|
-
linux: "firefox"
|
|
19530
|
-
}, {
|
|
19531
|
-
wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
|
|
19532
|
-
}));
|
|
19533
|
-
defineLazyProperty(apps, "edge", () => detectPlatformBinary({
|
|
19534
|
-
darwin: "microsoft edge",
|
|
19535
|
-
win32: "msedge",
|
|
19536
|
-
linux: ["microsoft-edge", "microsoft-edge-dev"]
|
|
19537
|
-
}, {
|
|
19538
|
-
wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
|
|
19539
|
-
}));
|
|
19540
|
-
defineLazyProperty(apps, "browser", () => "browser");
|
|
19541
|
-
defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
|
|
19542
|
-
var open_default = open;
|
|
19543
|
-
|
|
19544
|
-
// packages/cli/src/ui/components/extensions/tabs/DiscoverTab.tsx
|
|
19545
19017
|
var import_jsx_runtime77 = __toESM(require_jsx_runtime(), 1);
|
|
19546
19018
|
var debugLogger13 = createDebugLogger("DISCOVER_TAB");
|
|
19547
19019
|
function formatInstalls(n) {
|
|
@@ -19780,13 +19252,6 @@ var DiscoverTab = /* @__PURE__ */ __name(({
|
|
|
19780
19252
|
onStatus({ type: "info", text: t("No homepage available.") });
|
|
19781
19253
|
return;
|
|
19782
19254
|
}
|
|
19783
|
-
if (false) {
|
|
19784
|
-
onStatus({
|
|
19785
|
-
type: "info",
|
|
19786
|
-
text: t("Would open: {{url}}", { url: plugin.homepage })
|
|
19787
|
-
});
|
|
19788
|
-
return;
|
|
19789
|
-
}
|
|
19790
19255
|
let protocol;
|
|
19791
19256
|
try {
|
|
19792
19257
|
protocol = new URL(plugin.homepage).protocol;
|
|
@@ -19801,7 +19266,7 @@ var DiscoverTab = /* @__PURE__ */ __name(({
|
|
|
19801
19266
|
return;
|
|
19802
19267
|
}
|
|
19803
19268
|
try {
|
|
19804
|
-
await
|
|
19269
|
+
await openBrowserSecurely(plugin.homepage);
|
|
19805
19270
|
} catch {
|
|
19806
19271
|
onStatus({
|
|
19807
19272
|
type: "error",
|
|
@@ -26262,7 +25727,7 @@ function FileRow({
|
|
|
26262
25727
|
const tag = file.isDeleted ? t(" (deleted)") : file.isUntracked ? t(" (untracked)") : file.oversized ? t(" (oversized \u2014 diff omitted)") : file.isNewFile ? t(" (new)") : file.truncated ? t(" (truncated)") : "";
|
|
26263
25728
|
const renameFits = !!file.oldDisplayPath && maxPathChars >= 19;
|
|
26264
25729
|
const pathBudget = renameFits ? Math.floor((maxPathChars - 3) / 2) : maxPathChars;
|
|
26265
|
-
const
|
|
25730
|
+
const path14 = truncatePathStart(file.displayPath, pathBudget);
|
|
26266
25731
|
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Box_default, { flexDirection: "row", children: [
|
|
26267
25732
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
26268
25733
|
Text,
|
|
@@ -26282,7 +25747,7 @@ function FileRow({
|
|
|
26282
25747
|
{
|
|
26283
25748
|
color: selected ? theme.text.accent : theme.text.primary,
|
|
26284
25749
|
bold: selected,
|
|
26285
|
-
children:
|
|
25750
|
+
children: path14
|
|
26286
25751
|
}
|
|
26287
25752
|
),
|
|
26288
25753
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Text, { color: theme.text.secondary, children: [
|
|
@@ -26346,11 +25811,11 @@ function FileDetail({
|
|
|
26346
25811
|
] });
|
|
26347
25812
|
}
|
|
26348
25813
|
__name(FileDetail, "FileDetail");
|
|
26349
|
-
function truncatePathStart(
|
|
25814
|
+
function truncatePathStart(path14, maxChars) {
|
|
26350
25815
|
if (maxChars <= 0) return "";
|
|
26351
|
-
if (
|
|
26352
|
-
if (maxChars <= 1) return
|
|
26353
|
-
return "\u2026" +
|
|
25816
|
+
if (path14.length <= maxChars) return path14;
|
|
25817
|
+
if (maxChars <= 1) return path14.slice(-maxChars);
|
|
25818
|
+
return "\u2026" + path14.slice(-(maxChars - 1));
|
|
26354
25819
|
}
|
|
26355
25820
|
__name(truncatePathStart, "truncatePathStart");
|
|
26356
25821
|
function useVisibleWindow(total, selectedIndex, windowSize) {
|
|
@@ -26367,18 +25832,18 @@ __name(useVisibleWindow, "useVisibleWindow");
|
|
|
26367
25832
|
function currentToFiles(result, hunks) {
|
|
26368
25833
|
if (!result) return [];
|
|
26369
25834
|
const out = [];
|
|
26370
|
-
for (const [
|
|
26371
|
-
out.push(perFileToUnified(
|
|
25835
|
+
for (const [path14, s] of result.perFileStats) {
|
|
25836
|
+
out.push(perFileToUnified(path14, s, hunks));
|
|
26372
25837
|
}
|
|
26373
25838
|
out.sort((a, b) => a.path.localeCompare(b.path));
|
|
26374
25839
|
return out;
|
|
26375
25840
|
}
|
|
26376
25841
|
__name(currentToFiles, "currentToFiles");
|
|
26377
|
-
function perFileToUnified(
|
|
26378
|
-
const fileHunks = hunks.get(
|
|
25842
|
+
function perFileToUnified(path14, s, hunks) {
|
|
25843
|
+
const fileHunks = hunks.get(path14);
|
|
26379
25844
|
return {
|
|
26380
|
-
path:
|
|
26381
|
-
displayPath: sanitizeFilenameForDisplay(
|
|
25845
|
+
path: path14,
|
|
25846
|
+
displayPath: sanitizeFilenameForDisplay(path14),
|
|
26382
25847
|
// Carry the pre-rename path so the interactive viewer can show `old → new`
|
|
26383
25848
|
// for renames (keyed/addressed by the new path).
|
|
26384
25849
|
oldDisplayPath: s.oldPath ? sanitizeFilenameForDisplay(s.oldPath) : void 0,
|
|
@@ -26470,22 +25935,22 @@ __name(emptyMessage, "emptyMessage");
|
|
|
26470
25935
|
// packages/cli/src/ui/components/MemoryDialog.tsx
|
|
26471
25936
|
init_esbuild_shims();
|
|
26472
25937
|
var import_react87 = __toESM(require_react(), 1);
|
|
26473
|
-
import
|
|
26474
|
-
import
|
|
26475
|
-
import
|
|
25938
|
+
import fs3 from "node:fs/promises";
|
|
25939
|
+
import os4 from "node:os";
|
|
25940
|
+
import path from "node:path";
|
|
26476
25941
|
import { spawn } from "node:child_process";
|
|
26477
25942
|
var import_jsx_runtime107 = __toESM(require_jsx_runtime(), 1);
|
|
26478
25943
|
var DISPLAY_ENV_VARS = ["DISPLAY", "WAYLAND_DISPLAY", "MIR_SOCKET"];
|
|
26479
25944
|
async function resolvePreferredMemoryFile(dir, fallbackFilename) {
|
|
26480
25945
|
for (const filename of getAllMemoryFilenames()) {
|
|
26481
|
-
const filePath =
|
|
25946
|
+
const filePath = path.join(dir, filename);
|
|
26482
25947
|
try {
|
|
26483
|
-
await
|
|
25948
|
+
await fs3.access(filePath);
|
|
26484
25949
|
return filePath;
|
|
26485
25950
|
} catch {
|
|
26486
25951
|
}
|
|
26487
25952
|
}
|
|
26488
|
-
return
|
|
25953
|
+
return path.join(dir, fallbackFilename);
|
|
26489
25954
|
}
|
|
26490
25955
|
__name(resolvePreferredMemoryFile, "resolvePreferredMemoryFile");
|
|
26491
25956
|
async function openFolderPath(folderPath) {
|
|
@@ -26520,16 +25985,16 @@ function shouldOpenFolderPath() {
|
|
|
26520
25985
|
}
|
|
26521
25986
|
__name(shouldOpenFolderPath, "shouldOpenFolderPath");
|
|
26522
25987
|
async function ensureFileExists(filePath) {
|
|
26523
|
-
await
|
|
25988
|
+
await fs3.mkdir(path.dirname(filePath), { recursive: true });
|
|
26524
25989
|
try {
|
|
26525
|
-
await
|
|
25990
|
+
await fs3.access(filePath);
|
|
26526
25991
|
} catch {
|
|
26527
|
-
await
|
|
25992
|
+
await fs3.writeFile(filePath, "", "utf-8");
|
|
26528
25993
|
}
|
|
26529
25994
|
}
|
|
26530
25995
|
__name(ensureFileExists, "ensureFileExists");
|
|
26531
25996
|
function formatDisplayPath(filePath) {
|
|
26532
|
-
const home =
|
|
25997
|
+
const home = os4.homedir();
|
|
26533
25998
|
if (filePath.startsWith(home)) {
|
|
26534
25999
|
return `~${filePath.slice(home.length)}`;
|
|
26535
26000
|
}
|
|
@@ -26560,14 +26025,14 @@ function MemoryDialog({ onClose }) {
|
|
|
26560
26025
|
);
|
|
26561
26026
|
const [lastDreamAt, setLastDreamAt] = (0, import_react87.useState)(null);
|
|
26562
26027
|
const globalMemoryPath = (0, import_react87.useMemo)(
|
|
26563
|
-
() =>
|
|
26028
|
+
() => path.join(
|
|
26564
26029
|
Storage.getGlobalO1CodeDir(),
|
|
26565
26030
|
getAllMemoryFilenames()[0] ?? "AGENTS.md"
|
|
26566
26031
|
),
|
|
26567
26032
|
[]
|
|
26568
26033
|
);
|
|
26569
26034
|
const projectMemoryPath = (0, import_react87.useMemo)(
|
|
26570
|
-
() =>
|
|
26035
|
+
() => path.join(
|
|
26571
26036
|
config.getWorkingDir(),
|
|
26572
26037
|
getAllMemoryFilenames()[0] ?? "AGENTS.md"
|
|
26573
26038
|
),
|
|
@@ -26617,7 +26082,7 @@ function MemoryDialog({ onClose }) {
|
|
|
26617
26082
|
value: "project",
|
|
26618
26083
|
action: "file",
|
|
26619
26084
|
description: t("Saved in {{path}}", {
|
|
26620
|
-
path:
|
|
26085
|
+
path: path.relative(config.getWorkingDir(), projectMemoryPath) || path.basename(projectMemoryPath)
|
|
26621
26086
|
})
|
|
26622
26087
|
}
|
|
26623
26088
|
];
|
|
@@ -26632,8 +26097,8 @@ function MemoryDialog({ onClose }) {
|
|
|
26632
26097
|
let cancelled = false;
|
|
26633
26098
|
async function loadMeta() {
|
|
26634
26099
|
try {
|
|
26635
|
-
const metadataPath =
|
|
26636
|
-
const content = await
|
|
26100
|
+
const metadataPath = path.join(memoryStatePath, "meta.json");
|
|
26101
|
+
const content = await fs3.readFile(metadataPath, "utf-8");
|
|
26637
26102
|
const parsed = JSON.parse(content);
|
|
26638
26103
|
if (!cancelled && parsed.lastDreamAt) {
|
|
26639
26104
|
const ts = new Date(parsed.lastDreamAt).getTime();
|
|
@@ -26693,11 +26158,11 @@ function MemoryDialog({ onClose }) {
|
|
|
26693
26158
|
setError(null);
|
|
26694
26159
|
const targetPath = await resolveTargetPath(item);
|
|
26695
26160
|
if (item.action === "folder") {
|
|
26696
|
-
await
|
|
26161
|
+
await fs3.mkdir(targetPath, { recursive: true });
|
|
26697
26162
|
if (shouldOpenFolderPath()) {
|
|
26698
26163
|
await openFolderPath(targetPath);
|
|
26699
26164
|
} else {
|
|
26700
|
-
const indexPath =
|
|
26165
|
+
const indexPath = path.join(targetPath, AUTO_MEMORY_INDEX_FILENAME);
|
|
26701
26166
|
await ensureFileExists(indexPath);
|
|
26702
26167
|
await launchEditor(indexPath);
|
|
26703
26168
|
}
|
|
@@ -26933,14 +26398,14 @@ __name(MemoryDialog, "MemoryDialog");
|
|
|
26933
26398
|
// packages/cli/src/ui/components/SkillReviewDialog.tsx
|
|
26934
26399
|
init_esbuild_shims();
|
|
26935
26400
|
var import_react88 = __toESM(require_react(), 1);
|
|
26936
|
-
import { promises as
|
|
26401
|
+
import { promises as fs4, watch } from "node:fs";
|
|
26937
26402
|
var import_jsx_runtime108 = __toESM(require_jsx_runtime(), 1);
|
|
26938
26403
|
var debugLogger22 = createDebugLogger("SKILL_REVIEW_DIALOG");
|
|
26939
26404
|
var PREVIEW_MAX_HEIGHT = 12;
|
|
26940
26405
|
var WATCH_DEBOUNCE_MS = 300;
|
|
26941
26406
|
var PREVIEW_MAX_BYTES = 64 * 1024;
|
|
26942
26407
|
async function readPreviewChunk(filePath) {
|
|
26943
|
-
const handle = await
|
|
26408
|
+
const handle = await fs4.open(filePath, "r");
|
|
26944
26409
|
try {
|
|
26945
26410
|
const buf = Buffer.alloc(PREVIEW_MAX_BYTES + 1);
|
|
26946
26411
|
const { bytesRead } = await handle.read(buf, 0, PREVIEW_MAX_BYTES + 1, 0);
|
|
@@ -29264,7 +28729,7 @@ var DialogManager = /* @__PURE__ */ __name(({
|
|
|
29264
28729
|
}
|
|
29265
28730
|
uiActions.closeSettingsDialog();
|
|
29266
28731
|
},
|
|
29267
|
-
onRestartRequest: () =>
|
|
28732
|
+
onRestartRequest: () => process4.exit(0),
|
|
29268
28733
|
availableTerminalHeight: listDialogHeight,
|
|
29269
28734
|
width: mainAreaWidth,
|
|
29270
28735
|
config
|
|
@@ -30101,8 +29566,8 @@ __name(useInputHistory, "useInputHistory");
|
|
|
30101
29566
|
// packages/cli/src/ui/hooks/useShellHistory.ts
|
|
30102
29567
|
init_esbuild_shims();
|
|
30103
29568
|
var import_react100 = __toESM(require_react(), 1);
|
|
30104
|
-
import * as
|
|
30105
|
-
import * as
|
|
29569
|
+
import * as fs5 from "node:fs/promises";
|
|
29570
|
+
import * as path2 from "node:path";
|
|
30106
29571
|
var MAX_HISTORY_LENGTH = 100;
|
|
30107
29572
|
var debugLogger24 = createDebugLogger("SHELL_HISTORY");
|
|
30108
29573
|
async function getHistoryFilePath(projectRoot, configStorage) {
|
|
@@ -30112,7 +29577,7 @@ async function getHistoryFilePath(projectRoot, configStorage) {
|
|
|
30112
29577
|
__name(getHistoryFilePath, "getHistoryFilePath");
|
|
30113
29578
|
async function readHistoryFile(filePath) {
|
|
30114
29579
|
try {
|
|
30115
|
-
const text = await
|
|
29580
|
+
const text = await fs5.readFile(filePath, "utf-8");
|
|
30116
29581
|
const parsed = parseHistoryFile(text);
|
|
30117
29582
|
if (parsed) return parsed;
|
|
30118
29583
|
return parseLegacyHistoryFile(text);
|
|
@@ -30154,8 +29619,8 @@ function parseLegacyHistoryFile(text) {
|
|
|
30154
29619
|
__name(parseLegacyHistoryFile, "parseLegacyHistoryFile");
|
|
30155
29620
|
async function writeHistoryFile(filePath, history) {
|
|
30156
29621
|
try {
|
|
30157
|
-
await
|
|
30158
|
-
await
|
|
29622
|
+
await fs5.mkdir(path2.dirname(filePath), { recursive: true });
|
|
29623
|
+
await fs5.writeFile(filePath, JSON.stringify(history));
|
|
30159
29624
|
} catch (error) {
|
|
30160
29625
|
debugLogger24.error("Error writing shell history:", error);
|
|
30161
29626
|
}
|
|
@@ -32050,8 +31515,8 @@ function buildSegmentsForVisualSlice(tokens, sliceStart, sliceEnd) {
|
|
|
32050
31515
|
__name(buildSegmentsForVisualSlice, "buildSegmentsForVisualSlice");
|
|
32051
31516
|
|
|
32052
31517
|
// packages/cli/src/ui/components/InputPrompt.tsx
|
|
32053
|
-
import * as
|
|
32054
|
-
import * as
|
|
31518
|
+
import * as path6 from "node:path";
|
|
31519
|
+
import * as fs7 from "node:fs/promises";
|
|
32055
31520
|
|
|
32056
31521
|
// packages/cli/src/ui/contexts/ShellFocusContext.tsx
|
|
32057
31522
|
init_esbuild_shims();
|
|
@@ -33334,21 +32799,21 @@ function isAvailable(command) {
|
|
|
33334
32799
|
return !command.hidden && command.userInvocable !== false && getEffectiveSupportedModes(command).includes("interactive");
|
|
33335
32800
|
}
|
|
33336
32801
|
__name(isAvailable, "isAvailable");
|
|
33337
|
-
function commandLabel(command,
|
|
33338
|
-
return isBuiltin(command) && !
|
|
32802
|
+
function commandLabel(command, path14 = command.name) {
|
|
32803
|
+
return isBuiltin(command) && !path14.includes(" ") ? t(COMMAND_LABELS[command.name] ?? command.name) : command.name;
|
|
33339
32804
|
}
|
|
33340
32805
|
__name(commandLabel, "commandLabel");
|
|
33341
32806
|
function normalizeSearch(value) {
|
|
33342
32807
|
return value.normalize("NFD").replace(new RegExp("\\p{M}", "gu"), "").toLocaleLowerCase();
|
|
33343
32808
|
}
|
|
33344
32809
|
__name(normalizeSearch, "normalizeSearch");
|
|
33345
|
-
function matchesSlashMenuQuery(command, query,
|
|
32810
|
+
function matchesSlashMenuQuery(command, query, path14 = command.name) {
|
|
33346
32811
|
const text = normalizeSearch(
|
|
33347
32812
|
[
|
|
33348
|
-
|
|
32813
|
+
path14,
|
|
33349
32814
|
command.name,
|
|
33350
32815
|
...command.altNames ?? [],
|
|
33351
|
-
commandLabel(command,
|
|
32816
|
+
commandLabel(command, path14),
|
|
33352
32817
|
normalizeDescription(command.description)
|
|
33353
32818
|
].join(" ")
|
|
33354
32819
|
);
|
|
@@ -34152,14 +33617,14 @@ __name(useVoiceInput, "useVoiceInput");
|
|
|
34152
33617
|
|
|
34153
33618
|
// packages/cli/src/ui/voice/voice-recorder.ts
|
|
34154
33619
|
init_esbuild_shims();
|
|
34155
|
-
import
|
|
33620
|
+
import process5 from "node:process";
|
|
34156
33621
|
|
|
34157
33622
|
// packages/cli/src/ui/voice/arecord-recorder.ts
|
|
34158
33623
|
init_esbuild_shims();
|
|
34159
33624
|
import { spawn as spawn2 } from "node:child_process";
|
|
34160
33625
|
import { mkdtemp, readFile as readFile2, rm } from "node:fs/promises";
|
|
34161
33626
|
import { tmpdir } from "node:os";
|
|
34162
|
-
import
|
|
33627
|
+
import path3 from "node:path";
|
|
34163
33628
|
var DEVICE_OPEN_GRACE_MS = 200;
|
|
34164
33629
|
function toArecordError(error) {
|
|
34165
33630
|
if (error.code === "ENOENT") {
|
|
@@ -34191,8 +33656,8 @@ var ArecordRecorder = class {
|
|
|
34191
33656
|
this.closePromise = null;
|
|
34192
33657
|
}
|
|
34193
33658
|
async start(_options = {}) {
|
|
34194
|
-
this.tmpDir = await mkdtemp(
|
|
34195
|
-
this.filePath =
|
|
33659
|
+
this.tmpDir = await mkdtemp(path3.join(tmpdir(), "o1-code-voice-"));
|
|
33660
|
+
this.filePath = path3.join(this.tmpDir, "recording.wav");
|
|
34196
33661
|
const child = spawn2("arecord", [
|
|
34197
33662
|
"-q",
|
|
34198
33663
|
"-f",
|
|
@@ -34416,7 +33881,7 @@ init_esbuild_shims();
|
|
|
34416
33881
|
import { spawn as spawn3 } from "node:child_process";
|
|
34417
33882
|
import { mkdtemp as mkdtemp2, readFile as readFile3, rm as rm2 } from "node:fs/promises";
|
|
34418
33883
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
34419
|
-
import
|
|
33884
|
+
import path4 from "node:path";
|
|
34420
33885
|
var SILENCE_EFFECT_ARGS = ["silence", "1", "0.1", "3%", "1", "2.0", "3%"];
|
|
34421
33886
|
var MAX_STDERR_LENGTH = 4096;
|
|
34422
33887
|
function toSoxError(error) {
|
|
@@ -34466,8 +33931,8 @@ var SoxRecorder = class {
|
|
|
34466
33931
|
async start(options = {}) {
|
|
34467
33932
|
this.stopRequested = false;
|
|
34468
33933
|
this.onAutoStop = options.onAutoStop ?? null;
|
|
34469
|
-
this.tmpDir = await mkdtemp2(
|
|
34470
|
-
this.filePath =
|
|
33934
|
+
this.tmpDir = await mkdtemp2(path4.join(tmpdir2(), "o1-code-voice-"));
|
|
33935
|
+
this.filePath = path4.join(this.tmpDir, "recording.wav");
|
|
34471
33936
|
this.child = spawn3("sox", [
|
|
34472
33937
|
"-d",
|
|
34473
33938
|
"-r",
|
|
@@ -34628,11 +34093,11 @@ var FallbackVoiceRecorder = class {
|
|
|
34628
34093
|
}
|
|
34629
34094
|
};
|
|
34630
34095
|
function createVoiceRecorder(options = {}) {
|
|
34631
|
-
const
|
|
34096
|
+
const platform = options.platform ?? process5.platform;
|
|
34632
34097
|
const factories = [
|
|
34633
34098
|
options.createNativeRecorder ?? createNativeAudioRecorder
|
|
34634
34099
|
];
|
|
34635
|
-
if (
|
|
34100
|
+
if (platform === "linux") {
|
|
34636
34101
|
factories.push(options.createSoxRecorder ?? createSoxRecorder);
|
|
34637
34102
|
factories.push(options.createArecordRecorder ?? createArecordRecorder);
|
|
34638
34103
|
} else {
|
|
@@ -34871,17 +34336,17 @@ __name(useAttachmentPreparation, "useAttachmentPreparation");
|
|
|
34871
34336
|
|
|
34872
34337
|
// packages/cli/src/services/prompt-stash.ts
|
|
34873
34338
|
init_esbuild_shims();
|
|
34874
|
-
import * as
|
|
34875
|
-
import * as
|
|
34339
|
+
import * as fs6 from "node:fs";
|
|
34340
|
+
import * as path5 from "node:path";
|
|
34876
34341
|
var PROMPT_STASH_FILE = "prompt-stash.json";
|
|
34877
34342
|
function getPromptStashPath(targetDir) {
|
|
34878
|
-
return
|
|
34343
|
+
return path5.join(new Storage(targetDir).getProjectDir(), PROMPT_STASH_FILE);
|
|
34879
34344
|
}
|
|
34880
34345
|
__name(getPromptStashPath, "getPromptStashPath");
|
|
34881
34346
|
function savePromptStash(targetDir, text) {
|
|
34882
34347
|
try {
|
|
34883
34348
|
const filePath = getPromptStashPath(targetDir);
|
|
34884
|
-
|
|
34349
|
+
fs6.mkdirSync(path5.dirname(filePath), { recursive: true, mode: 448 });
|
|
34885
34350
|
const data = { version: 1, text };
|
|
34886
34351
|
atomicWriteFileSync(filePath, JSON.stringify(data), {
|
|
34887
34352
|
mode: 384,
|
|
@@ -34896,7 +34361,7 @@ function savePromptStash(targetDir, text) {
|
|
|
34896
34361
|
__name(savePromptStash, "savePromptStash");
|
|
34897
34362
|
function loadPromptStash(targetDir) {
|
|
34898
34363
|
try {
|
|
34899
|
-
const raw =
|
|
34364
|
+
const raw = fs6.readFileSync(getPromptStashPath(targetDir), "utf8");
|
|
34900
34365
|
const parsed = JSON.parse(raw);
|
|
34901
34366
|
if (typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) && parsed.version === 1 && typeof parsed.text === "string") {
|
|
34902
34367
|
return parsed.text;
|
|
@@ -34917,7 +34382,7 @@ function restorePromptStash(targetDir, currentText, onRestore) {
|
|
|
34917
34382
|
__name(restorePromptStash, "restorePromptStash");
|
|
34918
34383
|
function clearPromptStash(targetDir) {
|
|
34919
34384
|
try {
|
|
34920
|
-
|
|
34385
|
+
fs6.unlinkSync(getPromptStashPath(targetDir));
|
|
34921
34386
|
return true;
|
|
34922
34387
|
} catch (error) {
|
|
34923
34388
|
return error.code === "ENOENT";
|
|
@@ -35329,7 +34794,7 @@ var InputPrompt = /* @__PURE__ */ __name(({
|
|
|
35329
34794
|
shellHistory.addCommandToHistory(finalValue);
|
|
35330
34795
|
}
|
|
35331
34796
|
if (attachments.length > 0) {
|
|
35332
|
-
const attachmentRefs = attachments.map((att) => `@${
|
|
34797
|
+
const attachmentRefs = attachments.map((att) => `@${path6.relative(config.getTargetDir(), att.path)}`).join(" ");
|
|
35333
34798
|
finalValue = `${attachmentRefs}
|
|
35334
34799
|
|
|
35335
34800
|
${finalValue.trim()}`;
|
|
@@ -35435,20 +34900,20 @@ ${finalValue.trim()}`;
|
|
|
35435
34900
|
signal
|
|
35436
34901
|
);
|
|
35437
34902
|
if (signal.aborted) {
|
|
35438
|
-
if (imagePath) await
|
|
34903
|
+
if (imagePath) await fs7.unlink(imagePath).catch(() => {
|
|
35439
34904
|
});
|
|
35440
34905
|
return;
|
|
35441
34906
|
}
|
|
35442
34907
|
if (imagePath) {
|
|
35443
|
-
const sizeBytes = await
|
|
34908
|
+
const sizeBytes = await fs7.stat(imagePath).then((stats) => stats.size).catch(() => void 0);
|
|
35444
34909
|
if (signal.aborted) {
|
|
35445
|
-
await
|
|
34910
|
+
await fs7.unlink(imagePath).catch(() => {
|
|
35446
34911
|
});
|
|
35447
34912
|
return;
|
|
35448
34913
|
}
|
|
35449
34914
|
cleanupOldClipboardImages(Storage.getGlobalTempDir()).catch(() => {
|
|
35450
34915
|
});
|
|
35451
|
-
const filename =
|
|
34916
|
+
const filename = path6.basename(imagePath);
|
|
35452
34917
|
const newAttachment = {
|
|
35453
34918
|
id: String(Date.now()),
|
|
35454
34919
|
path: imagePath,
|
|
@@ -35468,43 +34933,43 @@ ${finalValue.trim()}`;
|
|
|
35468
34933
|
async (imagePaths, originalPasted) => {
|
|
35469
34934
|
await attachmentPreparation.run(async (signal, preparing) => {
|
|
35470
34935
|
const cwd3 = config.getTargetDir();
|
|
35471
|
-
const clipboardDir =
|
|
34936
|
+
const clipboardDir = path6.join(Storage.getGlobalTempDir(), "clipboard");
|
|
35472
34937
|
const attachments2 = [];
|
|
35473
34938
|
let committed = false;
|
|
35474
34939
|
try {
|
|
35475
34940
|
for (const imagePath of imagePaths) {
|
|
35476
34941
|
signal.throwIfAborted();
|
|
35477
|
-
const sourcePath =
|
|
34942
|
+
const sourcePath = path6.isAbsolute(imagePath) ? imagePath : path6.resolve(cwd3, imagePath);
|
|
35478
34943
|
let sourceValidated = false;
|
|
35479
34944
|
let destination;
|
|
35480
34945
|
try {
|
|
35481
|
-
const stats = await
|
|
34946
|
+
const stats = await fs7.stat(sourcePath);
|
|
35482
34947
|
if (!stats.isFile()) continue;
|
|
35483
34948
|
sourceValidated = true;
|
|
35484
34949
|
preparing();
|
|
35485
|
-
await
|
|
35486
|
-
const destPath =
|
|
34950
|
+
await fs7.mkdir(clipboardDir, { recursive: true });
|
|
34951
|
+
const destPath = path6.join(
|
|
35487
34952
|
clipboardDir,
|
|
35488
|
-
`clipboard-${Date.now()}-${attachments2.length}${
|
|
34953
|
+
`clipboard-${Date.now()}-${attachments2.length}${path6.extname(sourcePath)}`
|
|
35489
34954
|
);
|
|
35490
34955
|
destination = destPath;
|
|
35491
|
-
await
|
|
34956
|
+
await fs7.copyFile(sourcePath, destPath);
|
|
35492
34957
|
if (signal.aborted) {
|
|
35493
|
-
await
|
|
34958
|
+
await fs7.unlink(destPath).catch(() => {
|
|
35494
34959
|
});
|
|
35495
34960
|
for (const attachment of attachments2)
|
|
35496
|
-
await
|
|
34961
|
+
await fs7.unlink(attachment.path).catch(() => {
|
|
35497
34962
|
});
|
|
35498
34963
|
return;
|
|
35499
34964
|
}
|
|
35500
34965
|
attachments2.push({
|
|
35501
34966
|
id: `${Date.now()}-${attachments2.length}`,
|
|
35502
34967
|
path: destPath,
|
|
35503
|
-
filename:
|
|
34968
|
+
filename: path6.basename(destPath),
|
|
35504
34969
|
sizeBytes: stats.size
|
|
35505
34970
|
});
|
|
35506
34971
|
} catch (error) {
|
|
35507
|
-
if (destination) await
|
|
34972
|
+
if (destination) await fs7.unlink(destination).catch(() => {
|
|
35508
34973
|
});
|
|
35509
34974
|
if (sourceValidated || signal.aborted) throw error;
|
|
35510
34975
|
}
|
|
@@ -35521,7 +34986,7 @@ ${finalValue.trim()}`;
|
|
|
35521
34986
|
} finally {
|
|
35522
34987
|
if (!committed) {
|
|
35523
34988
|
for (const attachment of attachments2)
|
|
35524
|
-
await
|
|
34989
|
+
await fs7.unlink(attachment.path).catch(() => {
|
|
35525
34990
|
});
|
|
35526
34991
|
}
|
|
35527
34992
|
}
|
|
@@ -36557,14 +36022,14 @@ ${currentText}`);
|
|
|
36557
36022
|
setSlashMenuDismissed(true);
|
|
36558
36023
|
completion.dismissCompletion();
|
|
36559
36024
|
},
|
|
36560
|
-
onSelect: (command,
|
|
36025
|
+
onSelect: (command, path14 = command.name, invokeBareAction = false) => {
|
|
36561
36026
|
setSlashMenuPanelOpen(false);
|
|
36562
36027
|
if (invokeBareAction) {
|
|
36563
|
-
handleSubmitAndClear(`/${
|
|
36564
|
-
} else if (command.subCommands?.length || command.acceptsInput === true ||
|
|
36565
|
-
buffer.setText(`/${
|
|
36028
|
+
handleSubmitAndClear(`/${path14}`);
|
|
36029
|
+
} else if (command.subCommands?.length || command.acceptsInput === true || path14.includes(" ") && command.acceptsInput !== false && !command.submitOnAccept || command.kind !== "built-in" /* BUILT_IN */ && !command.submitOnAccept) {
|
|
36030
|
+
buffer.setText(`/${path14} `);
|
|
36566
36031
|
} else {
|
|
36567
|
-
handleSubmitAndClear(`/${
|
|
36032
|
+
handleSubmitAndClear(`/${path14}`);
|
|
36568
36033
|
}
|
|
36569
36034
|
}
|
|
36570
36035
|
}
|
|
@@ -36659,7 +36124,7 @@ __name(useWorkingTreeDiff, "useWorkingTreeDiff");
|
|
|
36659
36124
|
// packages/cli/src/ui/hooks/useStatusLine.ts
|
|
36660
36125
|
init_esbuild_shims();
|
|
36661
36126
|
var import_react121 = __toESM(require_react(), 1);
|
|
36662
|
-
import { exec } from "child_process";
|
|
36127
|
+
import { exec, execFile as execFile2 } from "child_process";
|
|
36663
36128
|
var CONTEXT_PRESET_ITEM_IDS = /* @__PURE__ */ new Set([
|
|
36664
36129
|
"context-used",
|
|
36665
36130
|
"context-remaining"
|
|
@@ -36679,7 +36144,14 @@ function resolveHideContextIndicator(config, isContextOverLimit = false, keepAut
|
|
|
36679
36144
|
__name(resolveHideContextIndicator, "resolveHideContextIndicator");
|
|
36680
36145
|
var debugLog = createDebugLogger("STATUS_LINE");
|
|
36681
36146
|
var MAX_STATUS_LINES = 2;
|
|
36682
|
-
var
|
|
36147
|
+
var PULL_REQUEST_LOOKUP_ARGS = [
|
|
36148
|
+
"pr",
|
|
36149
|
+
"view",
|
|
36150
|
+
"--json",
|
|
36151
|
+
"number",
|
|
36152
|
+
"--jq",
|
|
36153
|
+
".number"
|
|
36154
|
+
];
|
|
36683
36155
|
function parsePullRequestNumber(stdout) {
|
|
36684
36156
|
const prNumber = stdout.trim();
|
|
36685
36157
|
return /^\d+$/.test(prNumber) ? prNumber : void 0;
|
|
@@ -36832,8 +36304,9 @@ function useStatusLine(keepAutomaticContextIndicator = false, availableWidth) {
|
|
|
36832
36304
|
const generation = ++pullRequestLookupGenerationRef.current;
|
|
36833
36305
|
let child;
|
|
36834
36306
|
try {
|
|
36835
|
-
child =
|
|
36836
|
-
|
|
36307
|
+
child = execFile2(
|
|
36308
|
+
"gh",
|
|
36309
|
+
PULL_REQUEST_LOOKUP_ARGS,
|
|
36837
36310
|
{ cwd: currentDir, timeout: 2e3, maxBuffer: 1024 },
|
|
36838
36311
|
(error, stdout) => {
|
|
36839
36312
|
if (generation !== pullRequestLookupGenerationRef.current || pullRequestLookupKeyRef.current !== lookupKey) {
|
|
@@ -39397,7 +38870,7 @@ var DefaultAppLayout = /* @__PURE__ */ __name(() => {
|
|
|
39397
38870
|
}, "DefaultAppLayout");
|
|
39398
38871
|
|
|
39399
38872
|
// packages/cli/src/ui/App.tsx
|
|
39400
|
-
import
|
|
38873
|
+
import fs8 from "node:fs";
|
|
39401
38874
|
var import_jsx_runtime146 = __toESM(require_jsx_runtime(), 1);
|
|
39402
38875
|
var App = /* @__PURE__ */ __name(({ onExitSummary }) => {
|
|
39403
38876
|
const uiState = useUIState();
|
|
@@ -39414,13 +38887,13 @@ var App = /* @__PURE__ */ __name(({ onExitSummary }) => {
|
|
|
39414
38887
|
corruptedPath: settings.corruptedPath,
|
|
39415
38888
|
wasRecovered: settings.wasRecovered,
|
|
39416
38889
|
onExit: () => {
|
|
39417
|
-
if (settings.corruptedPath &&
|
|
38890
|
+
if (settings.corruptedPath && fs8.existsSync(settings.corruptedPath)) {
|
|
39418
38891
|
try {
|
|
39419
38892
|
const settingsPath = settings.corruptedPath.slice(
|
|
39420
38893
|
0,
|
|
39421
38894
|
-CORRUPTED_SUFFIX.length
|
|
39422
38895
|
);
|
|
39423
|
-
|
|
38896
|
+
fs8.copyFileSync(settings.corruptedPath, settingsPath);
|
|
39424
38897
|
} catch (e) {
|
|
39425
38898
|
writeStderrLine(
|
|
39426
38899
|
`Failed to restore corrupted file: ${e instanceof Error ? e.message : String(e)}`
|
|
@@ -39429,7 +38902,7 @@ var App = /* @__PURE__ */ __name(({ onExitSummary }) => {
|
|
|
39429
38902
|
return;
|
|
39430
38903
|
}
|
|
39431
38904
|
try {
|
|
39432
|
-
|
|
38905
|
+
fs8.unlinkSync(settings.corruptedPath);
|
|
39433
38906
|
} catch (e) {
|
|
39434
38907
|
writeStderrLine(
|
|
39435
38908
|
`Settings restored, but could not remove ${settings.corruptedPath}: ${e instanceof Error ? e.message : String(e)}`
|
|
@@ -39439,9 +38912,9 @@ var App = /* @__PURE__ */ __name(({ onExitSummary }) => {
|
|
|
39439
38912
|
process.exit(1);
|
|
39440
38913
|
},
|
|
39441
38914
|
onContinue: () => {
|
|
39442
|
-
if (settings.corruptedPath &&
|
|
38915
|
+
if (settings.corruptedPath && fs8.existsSync(settings.corruptedPath)) {
|
|
39443
38916
|
try {
|
|
39444
|
-
|
|
38917
|
+
fs8.unlinkSync(settings.corruptedPath);
|
|
39445
38918
|
} catch (e) {
|
|
39446
38919
|
writeStderrLine(
|
|
39447
38920
|
`Could not remove ${settings.corruptedPath}: ${e instanceof Error ? e.message : String(e)}`
|
|
@@ -39761,7 +39234,7 @@ function installTerminalResizeReflow(stdout, options = {}) {
|
|
|
39761
39234
|
__name(installTerminalResizeReflow, "installTerminalResizeReflow");
|
|
39762
39235
|
|
|
39763
39236
|
// packages/cli/src/ui/AppContainer.tsx
|
|
39764
|
-
import
|
|
39237
|
+
import process12 from "node:process";
|
|
39765
39238
|
|
|
39766
39239
|
// packages/cli/src/ui/hooks/use-turn-start-index.ts
|
|
39767
39240
|
init_esbuild_shims();
|
|
@@ -39800,13 +39273,13 @@ __name(useTurnOutcome, "useTurnOutcome");
|
|
|
39800
39273
|
// packages/cli/src/ui/hooks/useMemoryMonitor.ts
|
|
39801
39274
|
init_esbuild_shims();
|
|
39802
39275
|
var import_react139 = __toESM(require_react(), 1);
|
|
39803
|
-
import
|
|
39804
|
-
import
|
|
39276
|
+
import process6 from "node:process";
|
|
39277
|
+
import os5 from "node:os";
|
|
39805
39278
|
import v8 from "v8";
|
|
39806
39279
|
var debugLogger32 = createDebugLogger("MEMORY_MONITOR");
|
|
39807
39280
|
var MEMORY_WARNING_THRESHOLD = Math.min(
|
|
39808
39281
|
7 * 1024 * 1024 * 1024,
|
|
39809
|
-
Math.floor(
|
|
39282
|
+
Math.floor(os5.totalmem() * 0.85)
|
|
39810
39283
|
);
|
|
39811
39284
|
var MEMORY_UI_COMPACT_THRESHOLD = /* @__PURE__ */ __name(() => Math.floor(v8.getHeapStatistics().heap_size_limit * 0.65), "MEMORY_UI_COMPACT_THRESHOLD");
|
|
39812
39285
|
var MEMORY_CHECK_INTERVAL = 60 * 1e3;
|
|
@@ -39819,7 +39292,7 @@ var useMemoryMonitor = /* @__PURE__ */ __name(({
|
|
|
39819
39292
|
const lastCompactRef = (0, import_react139.useRef)(0);
|
|
39820
39293
|
(0, import_react139.useEffect)(() => {
|
|
39821
39294
|
const debugIntervalId = setInterval(() => {
|
|
39822
|
-
const memUsage =
|
|
39295
|
+
const memUsage = process6.memoryUsage();
|
|
39823
39296
|
const heapUsed = memUsage.heapUsed / 1024 / 1024;
|
|
39824
39297
|
const heapTotal = memUsage.heapTotal / 1024 / 1024;
|
|
39825
39298
|
const rss = memUsage.rss / 1024 / 1024;
|
|
@@ -39848,7 +39321,7 @@ var useMemoryMonitor = /* @__PURE__ */ __name(({
|
|
|
39848
39321
|
}
|
|
39849
39322
|
}, MEMORY_DEBUG_INTERVAL);
|
|
39850
39323
|
const warningIntervalId = setInterval(() => {
|
|
39851
|
-
const usage =
|
|
39324
|
+
const usage = process6.memoryUsage();
|
|
39852
39325
|
if (usage.rss > MEMORY_WARNING_THRESHOLD) {
|
|
39853
39326
|
debugLogger32.warn(
|
|
39854
39327
|
`[MEMORY_WARNING] High memory usage detected: ${(usage.rss / (1024 * 1024 * 1024)).toFixed(2)} GB`
|
|
@@ -39905,12 +39378,12 @@ __name(useWakeRepaint, "useWakeRepaint");
|
|
|
39905
39378
|
// packages/cli/src/ui/hooks/useThemeCommand.ts
|
|
39906
39379
|
init_esbuild_shims();
|
|
39907
39380
|
var import_react141 = __toESM(require_react(), 1);
|
|
39908
|
-
import
|
|
39381
|
+
import process7 from "node:process";
|
|
39909
39382
|
var useThemeCommand = /* @__PURE__ */ __name((loadedSettings, setThemeError, addItem, initialThemeError, config) => {
|
|
39910
39383
|
const [isThemeDialogOpen, setIsThemeDialogOpen] = (0, import_react141.useState)(!!initialThemeError);
|
|
39911
39384
|
const [themeBeforeDialogOpen, setThemeBeforeDialogOpen] = (0, import_react141.useState)(themeManager.getActiveTheme().name);
|
|
39912
39385
|
const openThemeDialog = (0, import_react141.useCallback)(() => {
|
|
39913
|
-
if (
|
|
39386
|
+
if (process7.env["NO_COLOR"]) {
|
|
39914
39387
|
const feedbackItem = {
|
|
39915
39388
|
type: "info" /* INFO */,
|
|
39916
39389
|
text: t(
|
|
@@ -39997,7 +39470,7 @@ var useThemeCommand = /* @__PURE__ */ __name((loadedSettings, setThemeError, add
|
|
|
39997
39470
|
// packages/cli/src/ui/hooks/useFeedbackDialog.ts
|
|
39998
39471
|
init_esbuild_shims();
|
|
39999
39472
|
var import_react142 = __toESM(require_react(), 1);
|
|
40000
|
-
import * as
|
|
39473
|
+
import * as fs9 from "node:fs";
|
|
40001
39474
|
var import_strip_json_comments = __toESM(require_strip_json_comments(), 1);
|
|
40002
39475
|
var FEEDBACK_SHOW_PROBABILITY = 0.25;
|
|
40003
39476
|
var MIN_TOOL_CALLS = 10;
|
|
@@ -40008,8 +39481,8 @@ var lastMessageIsAIResponse = /* @__PURE__ */ __name((history) => history.length
|
|
|
40008
39481
|
var getFeedbackLastShownTimestampFromFile = /* @__PURE__ */ __name(() => {
|
|
40009
39482
|
try {
|
|
40010
39483
|
const userSettingsPath = Storage.getGlobalSettingsPath();
|
|
40011
|
-
if (
|
|
40012
|
-
const content =
|
|
39484
|
+
if (fs9.existsSync(userSettingsPath)) {
|
|
39485
|
+
const content = fs9.readFileSync(userSettingsPath, "utf-8");
|
|
40013
39486
|
const settings = JSON.parse((0, import_strip_json_comments.default)(content));
|
|
40014
39487
|
return settings?.ui?.feedbackLastShownTimestamp ?? 0;
|
|
40015
39488
|
}
|
|
@@ -40176,7 +39649,7 @@ __name(useSettingsCommand, "useSettingsCommand");
|
|
|
40176
39649
|
|
|
40177
39650
|
// packages/cli/src/ui/utils/terminal-buffer.ts
|
|
40178
39651
|
init_esbuild_shims();
|
|
40179
|
-
import
|
|
39652
|
+
import process8 from "node:process";
|
|
40180
39653
|
function isCiEnvKey(key) {
|
|
40181
39654
|
return key === "CI" || key === "CONTINUOUS_INTEGRATION" || key.startsWith("CI_");
|
|
40182
39655
|
}
|
|
@@ -40192,7 +39665,7 @@ function isCiEnvironment(env) {
|
|
|
40192
39665
|
);
|
|
40193
39666
|
}
|
|
40194
39667
|
__name(isCiEnvironment, "isCiEnvironment");
|
|
40195
|
-
function isInteractiveTerminal(stdoutIsTTY =
|
|
39668
|
+
function isInteractiveTerminal(stdoutIsTTY = process8.stdout.isTTY, env = process8.env) {
|
|
40196
39669
|
return Boolean(stdoutIsTTY) && !isCiEnvironment(env) && env["TERM"]?.toLowerCase() !== "dumb";
|
|
40197
39670
|
}
|
|
40198
39671
|
__name(isInteractiveTerminal, "isInteractiveTerminal");
|
|
@@ -40200,7 +39673,7 @@ function shouldUseVirtualViewport(useTerminalBuffer, screenReader, terminalInter
|
|
|
40200
39673
|
return terminalInteractive && (useTerminalBuffer ?? true) && !screenReader;
|
|
40201
39674
|
}
|
|
40202
39675
|
__name(shouldUseVirtualViewport, "shouldUseVirtualViewport");
|
|
40203
|
-
function shouldUseIncrementalRendering(incrementalRendering, env =
|
|
39676
|
+
function shouldUseIncrementalRendering(incrementalRendering, env = process8.env) {
|
|
40204
39677
|
const override = env["O1CODE_INCREMENTAL_RENDERING"];
|
|
40205
39678
|
if (override === "0") {
|
|
40206
39679
|
return false;
|
|
@@ -41045,7 +40518,7 @@ __name(useDeleteCommand, "useDeleteCommand");
|
|
|
41045
40518
|
// packages/cli/src/ui/hooks/slashCommandProcessor.ts
|
|
41046
40519
|
init_esbuild_shims();
|
|
41047
40520
|
var import_react152 = __toESM(require_react(), 1);
|
|
41048
|
-
import
|
|
40521
|
+
import process9 from "node:process";
|
|
41049
40522
|
var debugLogger35 = createDebugLogger("SLASH_COMMAND_PROCESSOR");
|
|
41050
40523
|
function hasUserPromptExpansionHooks(config) {
|
|
41051
40524
|
return !!config && !config.getDisableAllHooks?.() && (config.hasHooksForEvent?.("UserPromptExpansion") ?? false);
|
|
@@ -41082,14 +40555,14 @@ function shouldHideSlashCommandInvocation(command, canonicalPath, args) {
|
|
|
41082
40555
|
return false;
|
|
41083
40556
|
}
|
|
41084
40557
|
if (canonicalPath.length === 1 && SLASH_COMMAND_ROOTS_HIDE_INVOCATION.has(canonicalPath[0] ?? "")) {
|
|
41085
|
-
if (canonicalPath[0] === "theme" &&
|
|
40558
|
+
if (canonicalPath[0] === "theme" && process9.env["NO_COLOR"]) {
|
|
41086
40559
|
return false;
|
|
41087
40560
|
}
|
|
41088
40561
|
return true;
|
|
41089
40562
|
}
|
|
41090
|
-
const
|
|
41091
|
-
if (BARE_SLASH_COMMANDS_HIDE_INVOCATION.has(
|
|
41092
|
-
if (
|
|
40563
|
+
const path14 = canonicalPath.join(" ");
|
|
40564
|
+
if (BARE_SLASH_COMMANDS_HIDE_INVOCATION.has(path14)) {
|
|
40565
|
+
if (path14 === "model") {
|
|
41093
40566
|
return isPickerOnlyModelInvocation(args);
|
|
41094
40567
|
}
|
|
41095
40568
|
return args.trim() === "";
|
|
@@ -42310,7 +41783,7 @@ function useDoublePress(onDoublePress, onPending) {
|
|
|
42310
41783
|
__name(useDoublePress, "useDoublePress");
|
|
42311
41784
|
|
|
42312
41785
|
// packages/cli/src/ui/AppContainer.tsx
|
|
42313
|
-
import * as
|
|
41786
|
+
import * as fs16 from "node:fs";
|
|
42314
41787
|
import { basename as basename3 } from "node:path";
|
|
42315
41788
|
|
|
42316
41789
|
// packages/cli/src/ui/utils/windowTitle.ts
|
|
@@ -42398,9 +41871,9 @@ var import_react159 = __toESM(require_react(), 1);
|
|
|
42398
41871
|
init_esbuild_shims();
|
|
42399
41872
|
var import_react155 = __toESM(require_react(), 1);
|
|
42400
41873
|
import crypto2 from "node:crypto";
|
|
42401
|
-
import
|
|
42402
|
-
import
|
|
42403
|
-
import
|
|
41874
|
+
import path7 from "node:path";
|
|
41875
|
+
import os6 from "node:os";
|
|
41876
|
+
import fs10 from "node:fs";
|
|
42404
41877
|
var OUTPUT_UPDATE_INTERVAL_MS = 1e3;
|
|
42405
41878
|
var MAX_OUTPUT_LENGTH = 1e4;
|
|
42406
41879
|
var debugLogger36 = createDebugLogger("SHELL_COMMAND_PROCESSOR");
|
|
@@ -42441,23 +41914,30 @@ var useShellCommandProcessor = /* @__PURE__ */ __name((addItemToHistory, setPend
|
|
|
42441
41914
|
{ type: "user_shell", text: rawQuery },
|
|
42442
41915
|
userMessageTimestamp
|
|
42443
41916
|
);
|
|
42444
|
-
const isWindows =
|
|
41917
|
+
const isWindows = os6.platform() === "win32";
|
|
41918
|
+
const selectedShell = config.getAgentShellConfiguration?.().shell ?? (isWindows ? "cmd" : "bash");
|
|
42445
41919
|
const targetDir = config.getTargetDir();
|
|
42446
41920
|
let commandToExecute = rawQuery;
|
|
42447
41921
|
let pwdFilePath;
|
|
42448
|
-
if (
|
|
41922
|
+
if (selectedShell !== "cmd" && !config.getShellExecutionSandbox?.()) {
|
|
42449
41923
|
let command = rawQuery.trim();
|
|
42450
41924
|
const pwdFileName = `shell_pwd_${crypto2.randomBytes(6).toString("hex")}.tmp`;
|
|
42451
|
-
pwdFilePath =
|
|
42452
|
-
const
|
|
42453
|
-
if (
|
|
42454
|
-
|
|
42455
|
-
|
|
42456
|
-
|
|
42457
|
-
command
|
|
41925
|
+
pwdFilePath = path7.join(os6.tmpdir(), pwdFileName);
|
|
41926
|
+
const quotedPwdPath = escapeShellArg(pwdFilePath, selectedShell);
|
|
41927
|
+
if (selectedShell === "powershell") {
|
|
41928
|
+
commandToExecute = `& { ${command}
|
|
41929
|
+
}; $__o1Success = $?; $__o1ExitCode = $LASTEXITCODE; (Get-Location).ProviderPath | Set-Content -LiteralPath ${quotedPwdPath} -Encoding UTF8; if (-not $__o1Success) { if ($__o1ExitCode) { exit $__o1ExitCode }; exit 1 }; exit 0`;
|
|
41930
|
+
} else {
|
|
41931
|
+
const trailingBackslashes = /\\+$/.exec(command)?.[0].length ?? 0;
|
|
41932
|
+
if (trailingBackslashes % 2 === 1) {
|
|
41933
|
+
command += "\n";
|
|
41934
|
+
}
|
|
41935
|
+
if (!command.endsWith(";") && !command.endsWith("&")) {
|
|
41936
|
+
command += ";";
|
|
41937
|
+
}
|
|
41938
|
+
commandToExecute = `{ ${command}
|
|
41939
|
+
}; __code=$?; ${isWindows ? "pwd -W" : "pwd"} > ${quotedPwdPath}; exit $__code`;
|
|
42458
41940
|
}
|
|
42459
|
-
commandToExecute = `{ ${command}
|
|
42460
|
-
}; __code=$?; pwd > "${pwdFilePath}"; exit $__code`;
|
|
42461
41941
|
}
|
|
42462
41942
|
const executeCommand = /* @__PURE__ */ __name(async (resolve5) => {
|
|
42463
41943
|
let lastUpdateTime = Date.now();
|
|
@@ -42488,8 +41968,8 @@ var useShellCommandProcessor = /* @__PURE__ */ __name((addItemToHistory, setPend
|
|
|
42488
41968
|
onDebugMessage(`Executing in ${targetDir}: ${commandToExecute}`);
|
|
42489
41969
|
const cleanupShellCommand = /* @__PURE__ */ __name(() => {
|
|
42490
41970
|
abortSignal.removeEventListener("abort", abortHandler);
|
|
42491
|
-
if (pwdFilePath &&
|
|
42492
|
-
|
|
41971
|
+
if (pwdFilePath && fs10.existsSync(pwdFilePath)) {
|
|
41972
|
+
fs10.unlinkSync(pwdFilePath);
|
|
42493
41973
|
}
|
|
42494
41974
|
setActiveShellPtyId(null);
|
|
42495
41975
|
setShellInputFocused(false);
|
|
@@ -42613,9 +42093,10 @@ ${finalOutput}`;
|
|
|
42613
42093
|
finalOutput = `Command exited with code ${result2.exitCode}.
|
|
42614
42094
|
${finalOutput}`;
|
|
42615
42095
|
}
|
|
42616
|
-
if (pwdFilePath &&
|
|
42617
|
-
const finalPwd =
|
|
42618
|
-
|
|
42096
|
+
if (pwdFilePath && fs10.existsSync(pwdFilePath)) {
|
|
42097
|
+
const finalPwd = fs10.readFileSync(pwdFilePath, "utf8").trim();
|
|
42098
|
+
const sameDirectory = isWindows ? path7.win32.normalize(finalPwd).toLowerCase() === path7.win32.normalize(targetDir).toLowerCase() : finalPwd === targetDir;
|
|
42099
|
+
if (finalPwd && !sameDirectory) {
|
|
42619
42100
|
const warning = `WARNING: shell mode is stateless; the directory change to '${finalPwd}' will not persist.`;
|
|
42620
42101
|
finalOutput = `${warning}
|
|
42621
42102
|
|
|
@@ -42708,7 +42189,7 @@ var useStateAndRef = /* @__PURE__ */ __name((initialValue) => {
|
|
|
42708
42189
|
// packages/cli/src/ui/hooks/useReactToolScheduler.ts
|
|
42709
42190
|
init_esbuild_shims();
|
|
42710
42191
|
var import_react157 = __toESM(require_react(), 1);
|
|
42711
|
-
import * as
|
|
42192
|
+
import * as path8 from "node:path";
|
|
42712
42193
|
var debugLogger37 = createDebugLogger("REACT_TOOL_SCHEDULER");
|
|
42713
42194
|
function useReactToolScheduler(onComplete, config, getPreferredEditor, onEditorClose, onToolResultFullTurnModel) {
|
|
42714
42195
|
const [toolCallsForDisplay, setToolCallsForDisplay] = (0, import_react157.useState)([]);
|
|
@@ -42946,7 +42427,7 @@ function detectMemoryOp(toolName, args, projectRoot) {
|
|
|
42946
42427
|
const READ_TOOLS = /* @__PURE__ */ new Set(["read_file"]);
|
|
42947
42428
|
const filePath = args?.["file_path"];
|
|
42948
42429
|
if (!filePath) return void 0;
|
|
42949
|
-
const resolved =
|
|
42430
|
+
const resolved = path8.resolve(filePath);
|
|
42950
42431
|
if (!isAnyAutoMemPath(resolved, projectRoot)) return void 0;
|
|
42951
42432
|
if (WRITE_TOOLS.has(toolName)) return "write";
|
|
42952
42433
|
if (READ_TOOLS.has(toolName)) return "read";
|
|
@@ -43081,8 +42562,8 @@ function mapToDisplay(toolOrTools, projectRoot) {
|
|
|
43081
42562
|
__name(mapToDisplay, "mapToDisplay");
|
|
43082
42563
|
|
|
43083
42564
|
// packages/cli/src/ui/hooks/use-llm-stream.ts
|
|
43084
|
-
import { promises as
|
|
43085
|
-
import
|
|
42565
|
+
import { promises as fs11 } from "node:fs";
|
|
42566
|
+
import path9 from "node:path";
|
|
43086
42567
|
|
|
43087
42568
|
// packages/cli/src/ui/auth/organizaone-unauthorized.ts
|
|
43088
42569
|
init_esbuild_shims();
|
|
@@ -43106,7 +42587,7 @@ function reactToOrganizaOneUnauthorized(unauthorized, actions) {
|
|
|
43106
42587
|
__name(reactToOrganizaOneUnauthorized, "reactToOrganizaOneUnauthorized");
|
|
43107
42588
|
|
|
43108
42589
|
// packages/cli/src/ui/hooks/use-llm-stream.ts
|
|
43109
|
-
import
|
|
42590
|
+
import process10 from "node:process";
|
|
43110
42591
|
|
|
43111
42592
|
// packages/cli/src/ui/hooks/useMessageQueue.ts
|
|
43112
42593
|
init_esbuild_shims();
|
|
@@ -46910,8 +46391,25 @@ var useLlmStream = /* @__PURE__ */ __name((llmClient, history, addItem, config,
|
|
|
46910
46391
|
);
|
|
46911
46392
|
});
|
|
46912
46393
|
if (continuationWasCancelled()) {
|
|
46913
|
-
if (
|
|
46914
|
-
|
|
46394
|
+
if (llmClient) {
|
|
46395
|
+
const cancelledTurnParts = toolGoalBinding ? responsesToSend : finalizedResponses.flatMap(
|
|
46396
|
+
(entry, index) => orderedResponses[index].status === "cancelled" ? entry.responseParts : entry.responseParts.flatMap(
|
|
46397
|
+
(part) => part.functionResponse ? [
|
|
46398
|
+
{
|
|
46399
|
+
functionResponse: {
|
|
46400
|
+
id: part.functionResponse.id,
|
|
46401
|
+
name: part.functionResponse.name,
|
|
46402
|
+
response: {
|
|
46403
|
+
error: "[Operation Cancelled] User intentionally cancelled before this result was submitted; its output was discarded. Stop and await further instructions; do not retry."
|
|
46404
|
+
}
|
|
46405
|
+
}
|
|
46406
|
+
}
|
|
46407
|
+
] : []
|
|
46408
|
+
)
|
|
46409
|
+
);
|
|
46410
|
+
if (cancelledTurnParts.length > 0) {
|
|
46411
|
+
llmClient.addHistory({ role: "user", parts: cancelledTurnParts });
|
|
46412
|
+
}
|
|
46915
46413
|
}
|
|
46916
46414
|
markToolsAsSubmitted(
|
|
46917
46415
|
llmTools.map((toolCall) => toolCall.request.callId)
|
|
@@ -47310,7 +46808,7 @@ var useLlmStream = /* @__PURE__ */ __name((llmClient, history, addItem, config,
|
|
|
47310
46808
|
return;
|
|
47311
46809
|
}
|
|
47312
46810
|
try {
|
|
47313
|
-
await
|
|
46811
|
+
await fs11.mkdir(checkpointDir, { recursive: true });
|
|
47314
46812
|
} catch (error) {
|
|
47315
46813
|
if (!isNodeError(error) || error.code !== "EEXIST") {
|
|
47316
46814
|
onDebugMessage(
|
|
@@ -47331,14 +46829,14 @@ var useLlmStream = /* @__PURE__ */ __name((llmClient, history, addItem, config,
|
|
|
47331
46829
|
const promptId = toolCall.request.prompt_id;
|
|
47332
46830
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-").replace(/\./g, "_");
|
|
47333
46831
|
const toolName = toolCall.request.name;
|
|
47334
|
-
const fileName =
|
|
46832
|
+
const fileName = path9.basename(filePath);
|
|
47335
46833
|
const toolCallWithSnapshotFileName = `${timestamp}-${fileName}-${toolName}.json`;
|
|
47336
46834
|
const clientHistory = llmClient?.getHistoryShallow();
|
|
47337
|
-
const toolCallWithSnapshotFilePath =
|
|
46835
|
+
const toolCallWithSnapshotFilePath = path9.join(
|
|
47338
46836
|
checkpointDir,
|
|
47339
46837
|
toolCallWithSnapshotFileName
|
|
47340
46838
|
);
|
|
47341
|
-
await
|
|
46839
|
+
await fs11.writeFile(
|
|
47342
46840
|
toolCallWithSnapshotFilePath,
|
|
47343
46841
|
JSON.stringify(
|
|
47344
46842
|
{
|
|
@@ -47498,7 +46996,7 @@ var useLlmStream = /* @__PURE__ */ __name((llmClient, history, addItem, config,
|
|
|
47498
46996
|
const summary = scheduler.getExitSummary();
|
|
47499
46997
|
scheduler.stop();
|
|
47500
46998
|
if (summary) {
|
|
47501
|
-
|
|
46999
|
+
process10.stderr.write(summary + "\n");
|
|
47502
47000
|
}
|
|
47503
47001
|
};
|
|
47504
47002
|
}, [
|
|
@@ -47817,7 +47315,24 @@ ${text}` : text, "withDroppedSummary");
|
|
|
47817
47315
|
// packages/cli/src/ui/hooks/vim.ts
|
|
47818
47316
|
init_esbuild_shims();
|
|
47819
47317
|
var import_react160 = __toESM(require_react(), 1);
|
|
47820
|
-
import { execFile as
|
|
47318
|
+
import { execFile as execFile3, execFileSync } from "child_process";
|
|
47319
|
+
|
|
47320
|
+
// packages/cli/src/ui/utils/clipboard-text.ts
|
|
47321
|
+
init_esbuild_shims();
|
|
47322
|
+
import { createRequire } from "node:module";
|
|
47323
|
+
function readWindowsClipboardText() {
|
|
47324
|
+
try {
|
|
47325
|
+
const native = createRequire(import.meta.url)(
|
|
47326
|
+
"@teddyzhu/clipboard"
|
|
47327
|
+
);
|
|
47328
|
+
return new native.ClipboardManager().getText();
|
|
47329
|
+
} catch {
|
|
47330
|
+
return void 0;
|
|
47331
|
+
}
|
|
47332
|
+
}
|
|
47333
|
+
__name(readWindowsClipboardText, "readWindowsClipboardText");
|
|
47334
|
+
|
|
47335
|
+
// packages/cli/src/ui/hooks/vim.ts
|
|
47821
47336
|
var DIGIT_MULTIPLIER = 10;
|
|
47822
47337
|
var DEFAULT_COUNT = 1;
|
|
47823
47338
|
var MAX_COUNT = 9999;
|
|
@@ -47920,20 +47435,16 @@ var linuxReadCmd;
|
|
|
47920
47435
|
var linuxWriteCmd;
|
|
47921
47436
|
function readClipboard() {
|
|
47922
47437
|
try {
|
|
47923
|
-
const
|
|
47924
|
-
if (
|
|
47925
|
-
return
|
|
47438
|
+
const platform = process.platform;
|
|
47439
|
+
if (platform === "darwin") {
|
|
47440
|
+
return execFileSync("pbpaste", [], {
|
|
47926
47441
|
encoding: "utf-8",
|
|
47927
47442
|
timeout: 200,
|
|
47928
47443
|
stdio: ["pipe", "pipe", "ignore"]
|
|
47929
47444
|
}).toString();
|
|
47930
47445
|
}
|
|
47931
|
-
if (
|
|
47932
|
-
return
|
|
47933
|
-
encoding: "utf-8",
|
|
47934
|
-
timeout: 200,
|
|
47935
|
-
stdio: ["pipe", "pipe", "ignore"]
|
|
47936
|
-
}).toString();
|
|
47446
|
+
if (platform === "win32") {
|
|
47447
|
+
return readWindowsClipboardText();
|
|
47937
47448
|
}
|
|
47938
47449
|
if (linuxReadCmd === void 0) {
|
|
47939
47450
|
const candidates = [
|
|
@@ -47944,7 +47455,7 @@ function readClipboard() {
|
|
|
47944
47455
|
linuxReadCmd = null;
|
|
47945
47456
|
for (const [bin, args] of candidates) {
|
|
47946
47457
|
try {
|
|
47947
|
-
|
|
47458
|
+
execFileSync(bin, args, {
|
|
47948
47459
|
encoding: "utf-8",
|
|
47949
47460
|
timeout: 200,
|
|
47950
47461
|
stdio: ["pipe", "pipe", "ignore"]
|
|
@@ -47957,7 +47468,7 @@ function readClipboard() {
|
|
|
47957
47468
|
}
|
|
47958
47469
|
if (linuxReadCmd) {
|
|
47959
47470
|
const [bin, ...args] = linuxReadCmd;
|
|
47960
|
-
return
|
|
47471
|
+
return execFileSync(bin, args, {
|
|
47961
47472
|
encoding: "utf-8",
|
|
47962
47473
|
timeout: 200,
|
|
47963
47474
|
stdio: ["pipe", "pipe", "ignore"]
|
|
@@ -47972,17 +47483,17 @@ function readClipboard() {
|
|
|
47972
47483
|
__name(readClipboard, "readClipboard");
|
|
47973
47484
|
function writeClipboard(text) {
|
|
47974
47485
|
try {
|
|
47975
|
-
const
|
|
47486
|
+
const platform = process.platform;
|
|
47976
47487
|
const cb = /* @__PURE__ */ __name(() => {
|
|
47977
47488
|
}, "cb");
|
|
47978
|
-
if (
|
|
47979
|
-
const child =
|
|
47489
|
+
if (platform === "darwin") {
|
|
47490
|
+
const child = execFile3("pbcopy", [], { timeout: 500 }, cb);
|
|
47980
47491
|
child.stdin?.end(text);
|
|
47981
47492
|
child.unref();
|
|
47982
47493
|
return;
|
|
47983
47494
|
}
|
|
47984
|
-
if (
|
|
47985
|
-
const child =
|
|
47495
|
+
if (platform === "win32") {
|
|
47496
|
+
const child = execFile3("clip", [], { timeout: 500 }, cb);
|
|
47986
47497
|
child.stdin?.end(text);
|
|
47987
47498
|
child.unref();
|
|
47988
47499
|
return;
|
|
@@ -47996,7 +47507,7 @@ function writeClipboard(text) {
|
|
|
47996
47507
|
linuxWriteCmd = null;
|
|
47997
47508
|
for (const [bin, args] of candidates) {
|
|
47998
47509
|
try {
|
|
47999
|
-
|
|
47510
|
+
execFileSync(bin, args, {
|
|
48000
47511
|
input: text,
|
|
48001
47512
|
timeout: 200,
|
|
48002
47513
|
stdio: ["pipe", "pipe", "ignore"]
|
|
@@ -48009,7 +47520,7 @@ function writeClipboard(text) {
|
|
|
48009
47520
|
}
|
|
48010
47521
|
if (linuxWriteCmd) {
|
|
48011
47522
|
const [bin, ...args] = linuxWriteCmd;
|
|
48012
|
-
const child =
|
|
47523
|
+
const child = execFile3(bin, args, { timeout: 500 }, (err) => {
|
|
48013
47524
|
if (err && !writeOsc52(text)) {
|
|
48014
47525
|
debugLogger39.warn(
|
|
48015
47526
|
"writeClipboard: cached tool and OSC 52 both failed"
|
|
@@ -49280,7 +48791,7 @@ function useVim(buffer, onSubmit) {
|
|
|
49280
48791
|
let text = s.yankRegister;
|
|
49281
48792
|
let isLinewise = s.yankLinewise;
|
|
49282
48793
|
if (!text) {
|
|
49283
|
-
text = readClipboard();
|
|
48794
|
+
text = readClipboard() ?? "";
|
|
49284
48795
|
isLinewise = text.includes("\n");
|
|
49285
48796
|
}
|
|
49286
48797
|
if (text) {
|
|
@@ -49325,7 +48836,7 @@ function useVim(buffer, onSubmit) {
|
|
|
49325
48836
|
let text = s.yankRegister;
|
|
49326
48837
|
let isLinewise = s.yankLinewise;
|
|
49327
48838
|
if (!text) {
|
|
49328
|
-
text = readClipboard();
|
|
48839
|
+
text = readClipboard() ?? "";
|
|
49329
48840
|
isLinewise = text.includes("\n");
|
|
49330
48841
|
}
|
|
49331
48842
|
if (text) {
|
|
@@ -49835,7 +49346,7 @@ __name(useTerminalProgress, "useTerminalProgress");
|
|
|
49835
49346
|
// packages/cli/src/ui/hooks/useFolderTrust.ts
|
|
49836
49347
|
init_esbuild_shims();
|
|
49837
49348
|
var import_react166 = __toESM(require_react(), 1);
|
|
49838
|
-
import * as
|
|
49349
|
+
import * as process11 from "node:process";
|
|
49839
49350
|
var useFolderTrust = /* @__PURE__ */ __name((settings, onTrustChange) => {
|
|
49840
49351
|
const [isTrusted, setIsTrusted] = (0, import_react166.useState)(void 0);
|
|
49841
49352
|
const [isFolderTrustDialogOpen, setIsFolderTrustDialogOpen] = (0, import_react166.useState)(false);
|
|
@@ -49850,7 +49361,7 @@ var useFolderTrust = /* @__PURE__ */ __name((settings, onTrustChange) => {
|
|
|
49850
49361
|
const handleFolderTrustSelect = (0, import_react166.useCallback)(
|
|
49851
49362
|
(choice) => {
|
|
49852
49363
|
const trustedFolders = loadTrustedFolders();
|
|
49853
|
-
const cwd3 =
|
|
49364
|
+
const cwd3 = process11.cwd();
|
|
49854
49365
|
let trustLevel;
|
|
49855
49366
|
const wasTrusted = isTrusted ?? false;
|
|
49856
49367
|
switch (choice) {
|
|
@@ -50027,11 +49538,11 @@ var import_react168 = __toESM(require_react(), 1);
|
|
|
50027
49538
|
|
|
50028
49539
|
// packages/cli/src/services/command-migration-tool.ts
|
|
50029
49540
|
init_esbuild_shims();
|
|
50030
|
-
import { promises as
|
|
50031
|
-
import
|
|
49541
|
+
import { promises as fs12 } from "node:fs";
|
|
49542
|
+
import path10 from "node:path";
|
|
50032
49543
|
async function detectTomlCommands(commandDir) {
|
|
50033
49544
|
try {
|
|
50034
|
-
await
|
|
49545
|
+
await fs12.access(commandDir);
|
|
50035
49546
|
} catch {
|
|
50036
49547
|
return [];
|
|
50037
49548
|
}
|
|
@@ -50055,16 +49566,16 @@ async function migrateTomlCommands(options) {
|
|
|
50055
49566
|
return result;
|
|
50056
49567
|
}
|
|
50057
49568
|
for (const relativeFile of tomlFiles) {
|
|
50058
|
-
const tomlPath =
|
|
49569
|
+
const tomlPath = path10.join(commandDir, relativeFile);
|
|
50059
49570
|
try {
|
|
50060
|
-
const tomlContent = await
|
|
49571
|
+
const tomlContent = await fs12.readFile(tomlPath, "utf-8");
|
|
50061
49572
|
const markdownContent = convertTomlToMarkdown(tomlContent);
|
|
50062
49573
|
const markdownPath = tomlPath.replace(/\.toml$/, ".md");
|
|
50063
49574
|
try {
|
|
50064
|
-
await
|
|
49575
|
+
await fs12.access(markdownPath);
|
|
50065
49576
|
throw new Error(
|
|
50066
49577
|
t("Markdown file already exists: {{filename}}", {
|
|
50067
|
-
filename:
|
|
49578
|
+
filename: path10.basename(markdownPath)
|
|
50068
49579
|
})
|
|
50069
49580
|
);
|
|
50070
49581
|
} catch (error) {
|
|
@@ -50072,12 +49583,12 @@ async function migrateTomlCommands(options) {
|
|
|
50072
49583
|
throw error;
|
|
50073
49584
|
}
|
|
50074
49585
|
}
|
|
50075
|
-
await
|
|
49586
|
+
await fs12.writeFile(markdownPath, markdownContent, "utf-8");
|
|
50076
49587
|
if (createBackup) {
|
|
50077
49588
|
const backupPath = `${tomlPath}.backup`;
|
|
50078
|
-
await
|
|
49589
|
+
await fs12.rename(tomlPath, backupPath);
|
|
50079
49590
|
} else if (deleteOriginal) {
|
|
50080
|
-
await
|
|
49591
|
+
await fs12.unlink(tomlPath);
|
|
50081
49592
|
}
|
|
50082
49593
|
result.convertedFiles.push(relativeFile);
|
|
50083
49594
|
} catch (error) {
|
|
@@ -50165,14 +49676,14 @@ __name(sendNotification, "sendNotification");
|
|
|
50165
49676
|
// packages/cli/src/ui/utils/whats-new.ts
|
|
50166
49677
|
init_esbuild_shims();
|
|
50167
49678
|
var import_semver = __toESM(require_semver(), 1);
|
|
50168
|
-
import
|
|
50169
|
-
import
|
|
49679
|
+
import fs13 from "node:fs";
|
|
49680
|
+
import path11 from "node:path";
|
|
50170
49681
|
var MAX_HIGHLIGHTS = 4;
|
|
50171
49682
|
var SEEN_VERSION_FILE = "last-seen-version";
|
|
50172
49683
|
function loadReleaseHighlights(bundleDir = resolveBundleDir(import.meta.url)) {
|
|
50173
49684
|
try {
|
|
50174
49685
|
return JSON.parse(
|
|
50175
|
-
|
|
49686
|
+
fs13.readFileSync(path11.join(bundleDir, "release-notes.json"), "utf8")
|
|
50176
49687
|
);
|
|
50177
49688
|
} catch {
|
|
50178
49689
|
return void 0;
|
|
@@ -50195,21 +49706,21 @@ function computeWhatsNew(notes, fromVersion, toVersion, repoUrl = BRAND.repoUrl)
|
|
|
50195
49706
|
}
|
|
50196
49707
|
__name(computeWhatsNew, "computeWhatsNew");
|
|
50197
49708
|
function seenVersionPath() {
|
|
50198
|
-
return
|
|
49709
|
+
return path11.join(Storage.getGlobalO1CodeDir(), SEEN_VERSION_FILE);
|
|
50199
49710
|
}
|
|
50200
49711
|
__name(seenVersionPath, "seenVersionPath");
|
|
50201
49712
|
function takeWhatsNew(currentVersion, notes = loadReleaseHighlights()) {
|
|
50202
49713
|
if (!import_semver.default.valid(currentVersion)) return void 0;
|
|
50203
49714
|
let previous;
|
|
50204
49715
|
try {
|
|
50205
|
-
previous =
|
|
49716
|
+
previous = fs13.readFileSync(seenVersionPath(), "utf8").trim();
|
|
50206
49717
|
} catch {
|
|
50207
49718
|
previous = void 0;
|
|
50208
49719
|
}
|
|
50209
49720
|
if (previous === currentVersion) return void 0;
|
|
50210
49721
|
try {
|
|
50211
|
-
|
|
50212
|
-
|
|
49722
|
+
fs13.mkdirSync(path11.dirname(seenVersionPath()), { recursive: true });
|
|
49723
|
+
fs13.writeFileSync(seenVersionPath(), `${currentVersion}
|
|
50213
49724
|
`);
|
|
50214
49725
|
} catch {
|
|
50215
49726
|
return void 0;
|
|
@@ -50287,9 +49798,9 @@ __name(useGitBranchName, "useGitBranchName");
|
|
|
50287
49798
|
// packages/cli/src/ui/hooks/useWorktreeSession.ts
|
|
50288
49799
|
init_esbuild_shims();
|
|
50289
49800
|
var import_react170 = __toESM(require_react(), 1);
|
|
50290
|
-
import
|
|
49801
|
+
import fs14 from "node:fs";
|
|
50291
49802
|
import fsPromises from "node:fs/promises";
|
|
50292
|
-
import
|
|
49803
|
+
import path12 from "node:path";
|
|
50293
49804
|
function useWorktreeSession(config) {
|
|
50294
49805
|
const [session, setSession] = (0, import_react170.useState)(null);
|
|
50295
49806
|
(0, import_react170.useEffect)(() => {
|
|
@@ -50309,14 +49820,14 @@ function useWorktreeSession(config) {
|
|
|
50309
49820
|
}, "safeLoad");
|
|
50310
49821
|
void safeLoad();
|
|
50311
49822
|
const filePath = config.getSessionService().getWorktreeSessionPath(config.getSessionId());
|
|
50312
|
-
const dirPath =
|
|
50313
|
-
const fileName =
|
|
49823
|
+
const dirPath = path12.dirname(filePath);
|
|
49824
|
+
const fileName = path12.basename(filePath);
|
|
50314
49825
|
let watcher;
|
|
50315
49826
|
const setupWatcher = /* @__PURE__ */ __name(async () => {
|
|
50316
49827
|
try {
|
|
50317
49828
|
await fsPromises.mkdir(dirPath, { recursive: true });
|
|
50318
49829
|
if (cancelled) return;
|
|
50319
|
-
watcher =
|
|
49830
|
+
watcher = fs14.watch(dirPath, (_eventType, filename) => {
|
|
50320
49831
|
if (filename === null || filename.toString() === fileName) {
|
|
50321
49832
|
void safeLoad();
|
|
50322
49833
|
}
|
|
@@ -51133,8 +50644,8 @@ init_esbuild_shims();
|
|
|
51133
50644
|
|
|
51134
50645
|
// packages/cli/src/services/tips/tipHistory.ts
|
|
51135
50646
|
init_esbuild_shims();
|
|
51136
|
-
import * as
|
|
51137
|
-
import * as
|
|
50647
|
+
import * as fs15 from "node:fs";
|
|
50648
|
+
import * as path13 from "node:path";
|
|
51138
50649
|
var TipHistory = class _TipHistory {
|
|
51139
50650
|
static {
|
|
51140
50651
|
__name(this, "TipHistory");
|
|
@@ -51199,9 +50710,9 @@ var TipHistory = class _TipHistory {
|
|
|
51199
50710
|
*/
|
|
51200
50711
|
persist() {
|
|
51201
50712
|
try {
|
|
51202
|
-
const dir =
|
|
51203
|
-
if (!
|
|
51204
|
-
|
|
50713
|
+
const dir = path13.dirname(this.filePath);
|
|
50714
|
+
if (!fs15.existsSync(dir)) {
|
|
50715
|
+
fs15.mkdirSync(dir, { recursive: true });
|
|
51205
50716
|
}
|
|
51206
50717
|
atomicWriteFileSync(this.filePath, JSON.stringify(this.data, null, 2), {
|
|
51207
50718
|
mode: 384,
|
|
@@ -51215,14 +50726,14 @@ var TipHistory = class _TipHistory {
|
|
|
51215
50726
|
* Load history from disk, incrementing session count.
|
|
51216
50727
|
*/
|
|
51217
50728
|
static load() {
|
|
51218
|
-
const filePath =
|
|
50729
|
+
const filePath = path13.join(
|
|
51219
50730
|
Storage.getGlobalO1CodeDir(),
|
|
51220
50731
|
"tip_history.json"
|
|
51221
50732
|
);
|
|
51222
50733
|
let data = { sessionCount: 0, tips: {} };
|
|
51223
50734
|
try {
|
|
51224
|
-
if (
|
|
51225
|
-
const raw =
|
|
50735
|
+
if (fs15.existsSync(filePath)) {
|
|
50736
|
+
const raw = fs15.readFileSync(filePath, "utf-8");
|
|
51226
50737
|
const parsed = JSON.parse(raw);
|
|
51227
50738
|
if (typeof parsed === "object" && parsed !== null && typeof parsed.sessionCount === "number") {
|
|
51228
50739
|
data = {
|
|
@@ -52004,7 +51515,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
52004
51515
|
const { stdin, setRawMode } = use_stdin_default();
|
|
52005
51516
|
const { stdout } = use_stdout_default();
|
|
52006
51517
|
const writeRaw = (0, import_react185.useCallback)((data) => {
|
|
52007
|
-
|
|
51518
|
+
process12.stdout.write(data);
|
|
52008
51519
|
}, []);
|
|
52009
51520
|
const terminal = (0, import_react185.useMemo)(
|
|
52010
51521
|
() => buildTerminalNotification(writeRaw),
|
|
@@ -52271,7 +51782,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
52271
51782
|
const staticAreaMaxItemHeight = Math.max(terminalHeight * 4, 100);
|
|
52272
51783
|
const isValidPath = (0, import_react185.useCallback)((filePath) => {
|
|
52273
51784
|
try {
|
|
52274
|
-
return
|
|
51785
|
+
return fs16.existsSync(filePath) && fs16.statSync(filePath).isFile();
|
|
52275
51786
|
} catch (_e) {
|
|
52276
51787
|
return false;
|
|
52277
51788
|
}
|
|
@@ -52682,7 +52193,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
52682
52193
|
if (exitStartedRef.current) return;
|
|
52683
52194
|
exitStartedRef.current = true;
|
|
52684
52195
|
await runExitCleanup();
|
|
52685
|
-
|
|
52196
|
+
process12.exit(0);
|
|
52686
52197
|
}, []);
|
|
52687
52198
|
const slashCommandActions = (0, import_react185.useMemo)(
|
|
52688
52199
|
() => ({
|
|
@@ -54110,8 +53621,8 @@ ${currentText}` : popped.modelText
|
|
|
54110
53621
|
const [escapePressedOnce, setEscapePressedOnce] = (0, import_react185.useState)(false);
|
|
54111
53622
|
const escapeTimerRef = (0, import_react185.useRef)(null);
|
|
54112
53623
|
const contextMenuOpenRef = (0, import_react185.useRef)(false);
|
|
54113
|
-
const handleContextMenuChange = (0, import_react185.useCallback)((
|
|
54114
|
-
contextMenuOpenRef.current =
|
|
53624
|
+
const handleContextMenuChange = (0, import_react185.useCallback)((open) => {
|
|
53625
|
+
contextMenuOpenRef.current = open;
|
|
54115
53626
|
}, []);
|
|
54116
53627
|
const dialogsVisibleRef = (0, import_react185.useRef)(false);
|
|
54117
53628
|
const [isRewindSelectorOpen, setIsRewindSelectorOpen] = (0, import_react185.useState)(false);
|
|
@@ -54865,7 +54376,7 @@ ${migrationResult.failedFiles.map((f) => ` \u2022 ${f.file}: ${f.error}`).join(
|
|
|
54865
54376
|
lastTitleRef.current = null;
|
|
54866
54377
|
const folderName2 = basename3(config.getTargetDir());
|
|
54867
54378
|
writeTerminalTitle(
|
|
54868
|
-
(value) =>
|
|
54379
|
+
(value) => process12.stdout.write(value),
|
|
54869
54380
|
formatSessionWindowTitle(null, folderName2)
|
|
54870
54381
|
);
|
|
54871
54382
|
}
|
|
@@ -54879,7 +54390,7 @@ ${migrationResult.failedFiles.map((f) => ` \u2022 ${f.file}: ${f.error}`).join(
|
|
|
54879
54390
|
);
|
|
54880
54391
|
if (lastTitleRef.current !== title) {
|
|
54881
54392
|
lastTitleRef.current = title;
|
|
54882
|
-
writeTerminalTitle((value) =>
|
|
54393
|
+
writeTerminalTitle((value) => process12.stdout.write(value), title);
|
|
54883
54394
|
}
|
|
54884
54395
|
}, [
|
|
54885
54396
|
sessionName,
|