@organizaone/o1-code 0.24.4 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +5 -0
  2. package/bundled/qc-helper/docs/configuration/trusted-folders.md +2 -0
  3. package/bundled/qc-helper/docs/features/hooks.md +3 -3
  4. package/bundled/qc-helper/docs/features/lsp.md +1 -1
  5. package/bundled/qc-helper/docs/features/skills.md +1 -1
  6. package/chunks/{MaxSizedBox-R3WCCMDP.js → MaxSizedBox-BT4NRHBZ.js} +46 -45
  7. package/chunks/{StandaloneSessionPicker-7FNCKSJL.js → StandaloneSessionPicker-AB5L4OIP.js} +62 -62
  8. package/chunks/{acp-subagent-executor-HKXXRTC6.js → acp-subagent-executor-J6YQDFIY.js} +49 -48
  9. package/chunks/{acpAgent-7T5EXCAI.js → acpAgent-UNNKQA2R.js} +157 -100
  10. package/chunks/{agent-4CLDKDDT.js → agent-4JVSTPOZ.js} +32 -31
  11. package/chunks/{agent-headless-FJDC7A7W.js → agent-headless-SQ3YMNWD.js} +32 -31
  12. package/chunks/{all-providers-PV2UF4ZJ.js → all-providers-A35HOOOY.js} +3 -3
  13. package/chunks/{anthropicContentGenerator-WHG6QIWD.js → anthropicContentGenerator-X6IMIHOI.js} +73 -16
  14. package/chunks/artifact-tool-6QDGNGTO.js +1 -1
  15. package/chunks/{askUserQuestion-NWK5LQIZ.js → askUserQuestion-YPA2ZZLO.js} +2 -2
  16. package/chunks/{bridge-STTH7NIG.js → bridge-RP3BQEM7.js} +49 -48
  17. package/chunks/{bwrap-execution-SD7FCUZG.js → bwrap-execution-TXZNOKYR.js} +6 -6
  18. package/chunks/caption-audio-OLLSPHW7.js +1 -1
  19. package/chunks/caption-image-ARAQIU6W.js +1 -1
  20. package/chunks/{chunk-5RKM3PAM.js → chunk-26G2BFFM.js} +12 -3
  21. package/chunks/{chunk-NKRJJVOK.js → chunk-2B5MRPGZ.js} +10 -10
  22. package/chunks/{chunk-62CDOJKZ.js → chunk-2EQYAHKO.js} +2 -2
  23. package/chunks/{chunk-LFIUEVXG.js → chunk-2SKOHXQM.js} +5 -5
  24. package/chunks/{chunk-BFUPFMJB.js → chunk-3GPZEENL.js} +3 -3
  25. package/chunks/{chunk-KBJUSPXP.js → chunk-3GZRVIU2.js} +2 -2
  26. package/chunks/{chunk-JQJFZJC6.js → chunk-3H6ZRETK.js} +1 -1
  27. package/chunks/{chunk-BI5MTP6I.js → chunk-3NWXBIE2.js} +1 -1
  28. package/chunks/{chunk-NMOAEZHZ.js → chunk-3ONAZUCS.js} +1 -1
  29. package/chunks/{chunk-YV65UNGT.js → chunk-3UIMC3MD.js} +5 -5
  30. package/chunks/{chunk-C2PHW4EH.js → chunk-3UZT6L3M.js} +3 -3
  31. package/chunks/{chunk-NAC3J4RD.js → chunk-4UZHVDN6.js} +1 -1
  32. package/chunks/{chunk-7H3GWNGJ.js → chunk-4WIYGAME.js} +1 -1
  33. package/chunks/{chunk-SPLQKNEP.js → chunk-53HMO7K2.js} +1 -1
  34. package/chunks/{chunk-X427DWFD.js → chunk-5LIDCGQZ.js} +1 -1
  35. package/chunks/{chunk-AEGEUWVC.js → chunk-5PE7PZL7.js} +2 -2
  36. package/chunks/{chunk-RG57GCS5.js → chunk-5UTAX2O6.js} +3 -3
  37. package/chunks/{chunk-3FYT76B7.js → chunk-6HLOPCFZ.js} +1 -1
  38. package/chunks/{chunk-2OFN5RBA.js → chunk-6TAZUYYH.js} +1 -1
  39. package/chunks/{chunk-J4TLKG4O.js → chunk-6VXX63QU.js} +3 -3
  40. package/chunks/{chunk-BASKI2UI.js → chunk-6XC7AQHT.js} +7 -4
  41. package/chunks/{chunk-GHVB5DIG.js → chunk-73UYQDL3.js} +4 -4
  42. package/chunks/{chunk-WJSAXJJA.js → chunk-76FPHNLE.js} +14 -14
  43. package/chunks/{chunk-GXGK7GSI.js → chunk-A2MUOMJH.js} +1 -1
  44. package/chunks/{chunk-MTLNATHF.js → chunk-A3XVGA3W.js} +4 -4
  45. package/chunks/{chunk-AJDAOH4D.js → chunk-A5ZAKF2B.js} +4 -4
  46. package/chunks/{chunk-LA5X3T5J.js → chunk-AOJFG2LZ.js} +22 -9
  47. package/chunks/{chunk-UTSGRHTE.js → chunk-ASR3UKPL.js} +5 -5
  48. package/chunks/{chunk-E6CUCFSE.js → chunk-B5DA6HBM.js} +2 -2
  49. package/chunks/{chunk-32MCJDCD.js → chunk-B6U27UHQ.js} +4 -4
  50. package/chunks/{chunk-D2VSGPCU.js → chunk-B7QLJKM6.js} +4 -4
  51. package/chunks/{chunk-ZUF4S43P.js → chunk-BBBU4UJL.js} +1 -1
  52. package/chunks/{chunk-KH5PKMPX.js → chunk-BNX26EYK.js} +1 -1
  53. package/chunks/{chunk-AVJ2B4DG.js → chunk-BQKZFSFW.js} +11 -10
  54. package/chunks/{chunk-NBW3FPCV.js → chunk-BWF5HABA.js} +2 -2
  55. package/chunks/{chunk-G7SUACM4.js → chunk-CQPBRNKG.js} +2 -2
  56. package/chunks/{chunk-OI7IVUEO.js → chunk-D6APUHI5.js} +11 -96
  57. package/chunks/{chunk-7H7I4C6J.js → chunk-DFRZXARB.js} +1 -1
  58. package/chunks/{chunk-IMYLADNE.js → chunk-EJHVUZDO.js} +1 -1
  59. package/chunks/{chunk-Z335FWG2.js → chunk-F3762QZG.js} +1 -1
  60. package/chunks/{chunk-7LDKUYXK.js → chunk-FGV2OPGK.js} +1 -1
  61. package/chunks/{chunk-CMKOMVQI.js → chunk-FVH27ARU.js} +8 -8
  62. package/chunks/{chunk-U7YFE6QU.js → chunk-G6PZ7ZRF.js} +1 -1
  63. package/chunks/{chunk-UOLKVPOL.js → chunk-GLXNABTW.js} +1 -1
  64. package/chunks/{chunk-TDCYTHEP.js → chunk-GOPTB5FL.js} +6 -6
  65. package/chunks/{chunk-2SMHE6PC.js → chunk-GVJCUUWW.js} +12 -2
  66. package/chunks/{chunk-HX6PP5L7.js → chunk-H65DRJN2.js} +1 -1
  67. package/chunks/{chunk-GNUYTJR4.js → chunk-HASGT63Y.js} +17 -13
  68. package/chunks/{chunk-B5GTZ6E6.js → chunk-HJYSTI5W.js} +8 -2
  69. package/chunks/{chunk-5TIAE4ZF.js → chunk-HKWXDV5S.js} +1 -1
  70. package/chunks/{chunk-GKJ7VLC4.js → chunk-HNHCMHHY.js} +4 -4
  71. package/chunks/{chunk-ESU7M5WY.js → chunk-HRBXDIBC.js} +1 -1
  72. package/chunks/{chunk-2VV2BC4Y.js → chunk-IDL5E3SK.js} +1 -1
  73. package/chunks/{chunk-QSHFGJIL.js → chunk-IDOFNXOM.js} +1 -1
  74. package/chunks/{chunk-GRVSIETU.js → chunk-INUPQ3V2.js} +3 -3
  75. package/chunks/{chunk-DDKQAJ2L.js → chunk-ITHF4F4L.js} +5 -5
  76. package/chunks/{chunk-KMIH3YVO.js → chunk-ITXHD6QG.js} +4 -4
  77. package/chunks/{chunk-RKDSZAAB.js → chunk-IUMWWTUV.js} +4 -4
  78. package/chunks/{chunk-MOXODXPF.js → chunk-JDMI736Y.js} +2 -2
  79. package/chunks/{chunk-PHCETAH4.js → chunk-JKBN3WM5.js} +1 -1
  80. package/chunks/{chunk-JLHNHDIX.js → chunk-JMMAXVTG.js} +3 -3
  81. package/chunks/{chunk-R7A5R2A4.js → chunk-JYZMO5E7.js} +6 -6
  82. package/chunks/{chunk-XXCW63SZ.js → chunk-K5Y3DMKT.js} +3 -3
  83. package/chunks/{chunk-ZUNJAPSW.js → chunk-K7JOSPO4.js} +1 -1
  84. package/chunks/{chunk-DPX2KXXW.js → chunk-KPRGWI4Y.js} +1 -1
  85. package/chunks/{chunk-TCP23JAU.js → chunk-KRE356Z5.js} +2 -2
  86. package/chunks/{chunk-GJM7LPW3.js → chunk-LDKVV42E.js} +2 -2
  87. package/chunks/{chunk-TIKWOIBI.js → chunk-LGFB7Z2H.js} +4 -4
  88. package/chunks/{chunk-KNHVSIXT.js → chunk-LU2TTE5Y.js} +2 -2
  89. package/chunks/{chunk-4AYUG5OA.js → chunk-M5BPWICM.js} +48 -47
  90. package/chunks/{chunk-64U7XL2P.js → chunk-MEPWN6XC.js} +1 -1
  91. package/chunks/{chunk-F53IZGBG.js → chunk-MSBLDE7B.js} +36 -25
  92. package/chunks/{chunk-IDXC5R27.js → chunk-NUUQWXXC.js} +1 -1
  93. package/chunks/{chunk-AFLYEJ7J.js → chunk-NWZDA6PN.js} +22 -0
  94. package/chunks/{chunk-OM3ETK2B.js → chunk-O53S3WDY.js} +3 -3
  95. package/chunks/{chunk-AK3UHHLW.js → chunk-O7BIOEV2.js} +1 -1
  96. package/chunks/{chunk-Y3JWAVRJ.js → chunk-OLUQJYZT.js} +10 -12
  97. package/chunks/{chunk-ULD6WVHS.js → chunk-OWWR2OAO.js} +1 -1
  98. package/chunks/{chunk-LXYR5QMF.js → chunk-P5EIXSKJ.js} +7 -4
  99. package/chunks/{chunk-YD7HBQ4B.js → chunk-PUBPS6I4.js} +505 -263
  100. package/chunks/{chunk-AEUQXQFZ.js → chunk-QIGHINXO.js} +2 -2
  101. package/chunks/{chunk-ZA4EHTZ3.js → chunk-QRDZ4FN6.js} +3 -3
  102. package/chunks/{chunk-7TDXFRPU.js → chunk-QU2DEIX4.js} +3 -3
  103. package/chunks/{chunk-VAAETI4E.js → chunk-RLV563CG.js} +1 -1
  104. package/chunks/{chunk-FRITN2AG.js → chunk-RSFKGHXZ.js} +75 -3
  105. package/chunks/{chunk-VVGCAYOV.js → chunk-S2HJR2FT.js} +1 -1
  106. package/chunks/{chunk-Q2PDOVTR.js → chunk-SF7RCEDN.js} +1 -1
  107. package/chunks/{chunk-5TNQHJI7.js → chunk-SJGCHKHG.js} +7 -7
  108. package/chunks/{chunk-X4PYCN2A.js → chunk-SJSBSQJI.js} +1 -1
  109. package/chunks/{chunk-LIXPUYYM.js → chunk-SQZJGTAP.js} +15 -15
  110. package/chunks/{chunk-7DB237F2.js → chunk-SU4W42KU.js} +1 -1
  111. package/chunks/{chunk-A3OHVZOI.js → chunk-T4X6ZODK.js} +4 -4
  112. package/chunks/{chunk-G5NS2LZJ.js → chunk-U7EB32Z2.js} +2 -2
  113. package/chunks/{chunk-T24G5443.js → chunk-UA6BRUXW.js} +3 -8
  114. package/chunks/{chunk-4MFP7T32.js → chunk-UAIMOPVZ.js} +1 -1
  115. package/chunks/{chunk-HTAUOTQC.js → chunk-UDUKUEW5.js} +7 -7
  116. package/chunks/{chunk-DH56IBSD.js → chunk-UKUBYF44.js} +8 -8
  117. package/chunks/chunk-UMHRQJOE.js +101 -0
  118. package/chunks/{chunk-7MJVA4IF.js → chunk-UOG4OHEQ.js} +48 -49
  119. package/chunks/{chunk-GSEYQ6LG.js → chunk-USSMX7ZA.js} +8 -8
  120. package/chunks/{chunk-M7ZHP7VU.js → chunk-UW4ZP77X.js} +1 -3
  121. package/chunks/{chunk-CKLLPBTK.js → chunk-UXFP67XM.js} +3 -3
  122. package/chunks/{chunk-6ENUEYCL.js → chunk-VMWSMIAG.js} +1 -1
  123. package/chunks/{chunk-JRQBL4PC.js → chunk-WIDNRAGK.js} +2 -2
  124. package/chunks/{chunk-RP55RX65.js → chunk-WIQEF7ON.js} +1 -1
  125. package/chunks/{chunk-GM7RKZZ4.js → chunk-WKUCYQM7.js} +3 -3
  126. package/chunks/{chunk-GCCIW37K.js → chunk-WQU5EWE3.js} +1 -1
  127. package/chunks/{chunk-SBM747MY.js → chunk-X4LDF6O3.js} +139 -8
  128. package/chunks/{chunk-72EBG4FJ.js → chunk-XFIAS7A6.js} +5 -1
  129. package/chunks/{chunk-AFHY22UG.js → chunk-Y24XITI5.js} +4 -4
  130. package/chunks/{chunk-B25ERMH7.js → chunk-YMESB5YT.js} +3 -3
  131. package/chunks/{chunk-OWO2HPTQ.js → chunk-YRW7SOH4.js} +4 -4
  132. package/chunks/{chunk-IVS6A764.js → chunk-YXIMD7AK.js} +4 -4
  133. package/chunks/{chunk-MLAF3GLB.js → chunk-Z4T563RX.js} +3 -0
  134. package/chunks/{chunk-P3WBQU4W.js → chunk-ZME3GEAN.js} +4 -4
  135. package/chunks/{chunk-REEXTHEV.js → chunk-ZQ7TCAOB.js} +12 -9
  136. package/chunks/{chunk-KEPNWFUD.js → chunk-ZSYQ3RBP.js} +1 -1
  137. package/chunks/{chunk-PKIF4YYA.js → chunk-ZYNZSU4I.js} +3 -3
  138. package/chunks/{chunk-BHQMXPNX.js → chunk-ZZYIXQMV.js} +3 -3
  139. package/chunks/clip-audio-5ZTGLERU.js +1 -1
  140. package/chunks/clip-image-HLDAHQPL.js +1 -1
  141. package/chunks/clip-video-NXRDICLV.js +1 -1
  142. package/chunks/{codex-subagent-executor-VYJOT6ZX.js → codex-subagent-executor-ME2J5ZAK.js} +49 -48
  143. package/chunks/{contextCommand-H2RGNUM4.js → contextCommand-G3DP2V3O.js} +47 -46
  144. package/chunks/convert-image-4MPD5TZ5.js +1 -1
  145. package/chunks/{core-runtime-RRV7B5QI.js → core-runtime-GHUSNSJC.js} +46 -45
  146. package/chunks/create-sub-session-UEQ23VBD.js +1 -1
  147. package/chunks/{create-sub-session-AS4BJQGA.js → create-sub-session-ZVGBSQEO.js} +47 -46
  148. package/chunks/cron-create-WPK3NNT4.js +1 -1
  149. package/chunks/cron-delete-6V6MDQ6Z.js +1 -1
  150. package/chunks/cron-list-TPJEL73F.js +1 -1
  151. package/chunks/{daemon-git-worktree-guard-EHDIWJNP.js → daemon-git-worktree-guard-JSMTW3IM.js} +50 -49
  152. package/chunks/{daemon-status-provider-BMHVNFV5.js → daemon-status-provider-C5NDII62.js} +54 -53
  153. package/chunks/{daemon-trust-policy-T2N7XIFJ.js → daemon-trust-policy-22D6WDDX.js} +54 -54
  154. package/chunks/{daemon-trust-policy-monitor-IKAIWKAW.js → daemon-trust-policy-monitor-RLYT7BZS.js} +54 -54
  155. package/chunks/{deferred-core-runtime-WPR6ZTET.js → deferred-core-runtime-KWFERRTL.js} +46 -45
  156. package/chunks/{display-image-4ZU4ZU53.js → display-image-VWFOL6K5.js} +6 -3
  157. package/chunks/downsample-audio-IGOEKKHD.js +1 -1
  158. package/chunks/downsample-image-FUPJVVNL.js +1 -1
  159. package/chunks/downscale-video-XZNDYVK4.js +1 -1
  160. package/chunks/{edit-SYQ6NUEQ.js → edit-XYXDIK5B.js} +34 -33
  161. package/chunks/{enter-worktree-FIO6VPWS.js → enter-worktree-DXCRT554.js} +6 -5
  162. package/chunks/{enterPlanMode-EDNBOH4T.js → enterPlanMode-VQQZ2UW6.js} +32 -31
  163. package/chunks/{environment-HGRXFMS3.js → environment-EBFJ4TH2.js} +51 -49
  164. package/chunks/{errors-BJNJH2UZ.js → errors-3B4RPL2I.js} +48 -47
  165. package/chunks/exec-36YD62RP.js +1 -1
  166. package/chunks/{execution-sandbox-config-C36KPQWE.js → execution-sandbox-config-2S5NIDLB.js} +7 -7
  167. package/chunks/{execution-sandbox-settings-UNFOGWSM.js → execution-sandbox-settings-GWMZH2SF.js} +1 -2
  168. package/chunks/{execution-tool-AOLNHDFN.js → execution-tool-JVQOMMTE.js} +34 -33
  169. package/chunks/{execution-worker-Y2EHLYIU.js → execution-worker-JMNHLRNL.js} +38 -37
  170. package/chunks/{exit-worktree-3UU4SS47.js → exit-worktree-7YT7VWTK.js} +6 -5
  171. package/chunks/{exitPlanMode-VRCBSQ5U.js → exitPlanMode-7MZNYWO4.js} +32 -31
  172. package/chunks/extract-audio-AYEXZ2KS.js +1 -1
  173. package/chunks/extract-keyframes-UQVW7UH6.js +1 -1
  174. package/chunks/{fast-path-YVNI5ALH.js → fast-path-NJVM56IM.js} +4 -5
  175. package/chunks/{fast-path-settings-FIMIXD3V.js → fast-path-settings-VXBBCMD4.js} +4 -5
  176. package/chunks/{foreground-runner-ECOYLOG7.js → foreground-runner-LQEPDOLD.js} +48 -47
  177. package/chunks/{gateway-content-generator-QAPPEVZY.js → gateway-content-generator-E7VLZDUR.js} +9 -5
  178. package/chunks/{gateway-models-TNCJJ3X6.js → gateway-models-2M6TFLX3.js} +6 -6
  179. package/chunks/{glob-W2E6FGA4.js → glob-LPOYT76M.js} +32 -31
  180. package/chunks/{goal-tools-6BHVTRDG.js → goal-tools-RUTV37TK.js} +32 -31
  181. package/chunks/{grep-5HGH34M6.js → grep-YVEFUZQF.js} +4 -4
  182. package/chunks/{handleAutoUpdate-RQLNQFHE.js → handleAutoUpdate-FYNNYADV.js} +48 -47
  183. package/chunks/{i18n-HPDJOBWT.js → i18n-QOCTCT72.js} +46 -45
  184. package/chunks/{image-gen-D4WPSZB4.js → image-gen-A5LWAWV5.js} +3 -3
  185. package/chunks/{initializer-YBSII4UT.js → initializer-VMXV3BW6.js} +54 -54
  186. package/chunks/{installationInfo-LMLHLIH7.js → installationInfo-ZMTB5KY4.js} +46 -45
  187. package/chunks/{list-DMY3NX4J.js → list-HWTHYFDH.js} +56 -56
  188. package/chunks/{list-agents-T2EHYFCL.js → list-agents-QNCQCPBU.js} +5 -4
  189. package/chunks/{llm-Z76Q6KOO.js → llm-BSHLCKRC.js} +87 -86
  190. package/chunks/{llm-content-generator-EW5FRXWI.js → llm-content-generator-FOOFF7NM.js} +5 -5
  191. package/chunks/{loadedSettingsAdapter-GKBYOOEK.js → loadedSettingsAdapter-DVQC5LYU.js} +54 -54
  192. package/chunks/{local-execution-environment-J54RZH2B.js → local-execution-environment-NIQC5LCT.js} +38 -37
  193. package/chunks/{loggingContentGenerator-TPKFLRGQ.js → loggingContentGenerator-KMXV7FXR.js} +33 -32
  194. package/chunks/loop-wakeup-RC454BL4.js +1 -1
  195. package/chunks/ls-SSSPTK7X.js +1 -1
  196. package/chunks/lsp-ZHD2YAJ5.js +1 -1
  197. package/chunks/{managed-npm-update-XTHQW4WA.js → managed-npm-update-6NXTMHIC.js} +46 -45
  198. package/chunks/{mcp-FM66ECZJ.js → mcp-B6BEFRFC.js} +54 -54
  199. package/chunks/{model-call-collection-2NC5TJRS.js → model-call-collection-JGJ4TLCJ.js} +2 -2
  200. package/chunks/{model-configuration-RXGKN65Z.js → model-configuration-HSAVOFVS.js} +55 -55
  201. package/chunks/{modelConfigUtils-UIFHKYOZ.js → modelConfigUtils-E7WNOMPL.js} +48 -47
  202. package/chunks/{monitor-OACO7H2W.js → monitor-X5SXPGKJ.js} +39 -38
  203. package/chunks/{nonInteractiveCli-3G67M7P7.js → nonInteractiveCli-ALN7VTV2.js} +81 -81
  204. package/chunks/{nonInteractiveToolExecutor-AYXTQW2U.js → nonInteractiveToolExecutor-EP57MOQU.js} +33 -32
  205. package/chunks/{notebook-edit-IP2HFHUU.js → notebook-edit-6AJJRXJE.js} +33 -32
  206. package/chunks/ocr-image-UTGQDI5V.js +1 -1
  207. package/chunks/{omni-5EIZ57PX.js → omni-X2QDE2SC.js} +13 -13
  208. package/chunks/{openaiContentGenerator-GKWUHN3B.js → openaiContentGenerator-DGFUUNP4.js} +17 -14
  209. package/chunks/{openaiResponsesContentGenerator-GYJ4PPVP.js → openaiResponsesContentGenerator-QBWIVIZ3.js} +7 -7
  210. package/chunks/{processUtils-EWRCLBFU.js → processUtils-RAKPTGL4.js} +2 -2
  211. package/chunks/{prompt-terminal-ledger-W6UZGXXP.js → prompt-terminal-ledger-LNMBMLKZ.js} +47 -46
  212. package/chunks/{reactive-degrade-JMU44IFK.js → reactive-degrade-2R225XZN.js} +12 -12
  213. package/chunks/{read-file-SX7FXRIG.js → read-file-PVJ2UFNR.js} +4 -4
  214. package/chunks/read-mcp-resource-4NSQ2WFB.js +1 -1
  215. package/chunks/recall-media-memory-tool-7NAM2ZGH.js +1 -1
  216. package/chunks/record-artifact-NO2DU63L.js +1 -1
  217. package/chunks/{record-source-SKISWRL5.js → record-source-ZEVZHGGT.js} +9 -7
  218. package/chunks/report-findings-S6QO46V2.js +1 -1
  219. package/chunks/{request-shutdown-5I22UEVV.js → request-shutdown-WWNRWY6N.js} +8 -6
  220. package/chunks/{resumeHistoryUtils-LC4CAGOM.js → resumeHistoryUtils-7JVBU7F6.js} +47 -46
  221. package/chunks/{ripGrep-ANRBZHAX.js → ripGrep-SGVDEPUA.js} +8 -8
  222. package/chunks/{run-o1-code-serve-RZD7HTJE.js → run-o1-code-serve-6YBADDNM.js} +39 -40
  223. package/chunks/{runtime-shell-policy-4MZ2UJQH.js → runtime-shell-policy-IRZDQMDW.js} +1 -1
  224. package/chunks/{sandboxConfig-WYGBOYNP.js → sandboxConfig-XSRSA444.js} +48 -48
  225. package/chunks/{scheduled-tasks-TFJO2WOZ.js → scheduled-tasks-I2ERGMGX.js} +52 -51
  226. package/chunks/{scheduler-L7MDGK4A.js → scheduler-DOUZC3BT.js} +48 -47
  227. package/chunks/{send-message-WKTPR6OU.js → send-message-ZCE2ZSEV.js} +12 -9
  228. package/chunks/{serve-CXJGOQSI.js → serve-TWF224E6.js} +54 -54
  229. package/chunks/{server-PLSQSERG.js → server-QM5WDSMX.js} +83 -83
  230. package/chunks/{session-DSIZXWZM.js → session-UAA3BUYD.js} +82 -82
  231. package/chunks/{session-K6ZTQ5XH.js → session-YILUXNUN.js} +1 -1
  232. package/chunks/{session-attachments-root-62YDD2AW.js → session-attachments-root-7SV6ROO3.js} +46 -45
  233. package/chunks/{session-pr-refresh-ZS62F5JX.js → session-pr-refresh-ZQEMZUOC.js} +51 -50
  234. package/chunks/{settings-HFQJOJ4Z.js → settings-I5BT5XJA.js} +54 -54
  235. package/chunks/{shell-4E3CQKI5.js → shell-CXFG4D26.js} +32 -31
  236. package/chunks/{skill-Q3EH25VF.js → skill-XAI4BN7B.js} +6 -6
  237. package/chunks/{skill-settings-4HGHD7T2.js → skill-settings-I6V36IWY.js} +54 -54
  238. package/chunks/{spawnChannel-WFW4WPNJ.js → spawnChannel-A3JN3SKE.js} +48 -47
  239. package/chunks/{standalone-update-OZPOJGT4.js → standalone-update-665KNR5K.js} +47 -46
  240. package/chunks/{startInteractiveUI-4TKF3BAS.js → startInteractiveUI-3SDDBRSS.js} +91 -91
  241. package/chunks/{supervisor-runner-U64I32UA.js → supervisor-runner-GJZ5FZ2L.js} +2 -2
  242. package/chunks/syntheticOutput-KZMNOKOG.js +1 -1
  243. package/chunks/{task-create-PTXFIS6D.js → task-create-7KKOP2J2.js} +12 -9
  244. package/chunks/{task-list-ABYOHJDS.js → task-list-J7ECJCOE.js} +4 -3
  245. package/chunks/task-stop-6L7G4RYB.js +1 -1
  246. package/chunks/{task-update-5LYVCOT2.js → task-update-RDNOVBEQ.js} +12 -9
  247. package/chunks/{team-create-NNG2GXZ7.js → team-create-B3GZHAVJ.js} +32 -31
  248. package/chunks/{team-delete-RL37ORM3.js → team-delete-FZRNXQEK.js} +4 -3
  249. package/chunks/{team-plan-approval-CAKGOWV7.js → team-plan-approval-AA23AXBX.js} +32 -31
  250. package/chunks/{terminal-image-renderer-D2RJBIM5.js → terminal-image-renderer-645UO3CY.js} +46 -45
  251. package/chunks/{theme-manager-FL7L3SQB.js → theme-manager-Z724NWSU.js} +46 -45
  252. package/chunks/todoWrite-ARTSGNNA.js +1 -1
  253. package/chunks/{tool-call-GFZXS57E.js → tool-call-BUCHKNUE.js} +9 -7
  254. package/chunks/{tool-result-media-JRIQDJ2K.js → tool-result-media-F3GNEFYA.js} +13 -13
  255. package/chunks/{tool-search-FBD2VWOF.js → tool-search-ORCJKBH7.js} +11 -9
  256. package/chunks/{total-session-admission-OQTYJJIA.js → total-session-admission-FVSADUS4.js} +49 -48
  257. package/chunks/transcribe-audio-WOITX4I2.js +1 -1
  258. package/chunks/{trustedFolders-JAMKSHOQ.js → trustedFolders-53SWJNQM.js} +49 -47
  259. package/chunks/understand-video-segments-YFCIFF7P.js +1 -1
  260. package/chunks/{update-relaunch-LSGP35OP.js → update-relaunch-TO7RIC2Z.js} +5 -5
  261. package/chunks/{updateCheck-4SIC6T3U.js → updateCheck-ZO65M4E7.js} +46 -45
  262. package/chunks/{upload-config-D2TJG4J5.js → upload-config-GPGQJLHV.js} +9 -9
  263. package/chunks/{useAutoAcceptIndicator-D3OUE6JK.js → useAutoAcceptIndicator-XSYAN4MD.js} +56 -56
  264. package/chunks/{validateNonInterActiveAuth-6FN7ZWJM.js → validateNonInterActiveAuth-KYRPPB7L.js} +79 -79
  265. package/chunks/{version-QSJJFHBI.js → version-QWEY3XDL.js} +1 -1
  266. package/chunks/{web-fetch-F32PQI4W.js → web-fetch-QKY4VT64.js} +5 -5
  267. package/chunks/{web-search-VDENZ7EU.js → web-search-AMRNCSP6.js} +10 -10
  268. package/chunks/{workflow-GSJ6BWL5.js → workflow-QBLEKR24.js} +33 -32
  269. package/chunks/{workspace-providers-status-EZQWZ4MB.js → workspace-providers-status-CH7DJDKT.js} +60 -60
  270. package/chunks/{workspace-registration-store-7BD4J5B4.js → workspace-registration-store-HU2UBVSE.js} +2 -2
  271. package/chunks/{workspace-registry-BZYNQLJI.js → workspace-registry-PKZFC4K6.js} +49 -48
  272. package/chunks/{workspace-runtime-coordinator-XN72NR6H.js → workspace-runtime-coordinator-HLMOBHFQ.js} +50 -49
  273. package/chunks/{workspace-service-Y2F3CZXQ.js → workspace-service-CD6JZZGR.js} +58 -58
  274. package/chunks/{workspace-skills-status-MWHWR2UW.js → workspace-skills-status-ECZGFEYZ.js} +57 -57
  275. package/chunks/{workspace-trust-reconciler-RMG4NUKK.js → workspace-trust-reconciler-NADYMCWA.js} +57 -57
  276. package/chunks/{write-file-XHQYIS4I.js → write-file-4QSLWQJN.js} +34 -33
  277. package/chunks/{zoom-image-F55GDAZT.js → zoom-image-FGAGFWD3.js} +4 -4
  278. package/cli-entry.js +19 -2
  279. package/cli.js +15 -15
  280. package/execution-worker.js +1 -1
  281. package/export-transcript-document.js +1 -1
  282. package/package.json +2 -2
  283. package/release-notes.json +34 -0
  284. package/web-shell/assets/{abnfDiagram-VCTEODGH-9X-4KVeg.js → abnfDiagram-VCTEODGH-CXGkTYKR.js} +1 -1
  285. package/web-shell/assets/{arc-CDym3Jrp.js → arc-Bgtf2wGs.js} +1 -1
  286. package/web-shell/assets/{architectureDiagram-5GKGNRK7-5wObnj2d.js → architectureDiagram-5GKGNRK7-CdAnFxID.js} +1 -1
  287. package/web-shell/assets/{blockDiagram-NRAW4CY4-DtsYD88V.js → blockDiagram-NRAW4CY4-BetLLPQA.js} +1 -1
  288. package/web-shell/assets/{c4Diagram-UCG6FXSJ-CoaUDWLv.js → c4Diagram-UCG6FXSJ-BVEDlbNL.js} +1 -1
  289. package/web-shell/assets/channel-qApIjhnO.js +1 -0
  290. package/web-shell/assets/{chunk-2Q5K7J3B-BG2fByYQ.js → chunk-2Q5K7J3B-Bu_XLqIX.js} +1 -1
  291. package/web-shell/assets/{chunk-5VM5RSS4-zA-Pz6wo.js → chunk-5VM5RSS4-CuIm-L87.js} +1 -1
  292. package/web-shell/assets/{chunk-F27PBJKO-DjEhgvTy.js → chunk-F27PBJKO-zdnqrtCA.js} +1 -1
  293. package/web-shell/assets/{chunk-G27WJ6UU-C4ggjY21.js → chunk-G27WJ6UU-DA0j2ueI.js} +1 -1
  294. package/web-shell/assets/{chunk-JWPE2WC7-Bzeu1MYn.js → chunk-JWPE2WC7-BYP9xsTl.js} +1 -1
  295. package/web-shell/assets/{chunk-LCL6LL3I-C0eNeqX8.js → chunk-LCL6LL3I-CqZfx1I5.js} +1 -1
  296. package/web-shell/assets/{chunk-POPQ4Y6H-DA4H00sY.js → chunk-POPQ4Y6H-BEYiYIxG.js} +1 -1
  297. package/web-shell/assets/{chunk-SVP7TREG-C4WaJMXg.js → chunk-SVP7TREG-Df7kB2kI.js} +1 -1
  298. package/web-shell/assets/{chunk-XXDRQBXY-CpcfgzFT.js → chunk-XXDRQBXY-DSVwWamu.js} +1 -1
  299. package/web-shell/assets/classDiagram-DTDB5LWJ-DEyyr5tF.js +1 -0
  300. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DEyyr5tF.js +1 -0
  301. package/web-shell/assets/{cose-bilkent-JH36ORCC-DGMCqLqv.js → cose-bilkent-JH36ORCC-3y3UQaAQ.js} +1 -1
  302. package/web-shell/assets/{cynefin-OW5HDTMX-CvAvaP0w.js → cynefin-OW5HDTMX-D5boSC-y.js} +1 -1
  303. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-D2w8iZeL.js → cynefinDiagram-5FMLGOSQ-D06h0zad.js} +1 -1
  304. package/web-shell/assets/{dagre-3AP2YEHR-WDarxgHt.js → dagre-3AP2YEHR-B5PC4pJb.js} +1 -1
  305. package/web-shell/assets/{diagram-S7CK7UJ4-DU6-MgPI.js → diagram-S7CK7UJ4-CQkjaeF5.js} +1 -1
  306. package/web-shell/assets/{diagram-UQ7AKVKN-DouJsGkJ.js → diagram-UQ7AKVKN-Dp4B8BsM.js} +1 -1
  307. package/web-shell/assets/{diagram-VSXAHHWV-1KcMVF4P.js → diagram-VSXAHHWV-1WUz-IlV.js} +1 -1
  308. package/web-shell/assets/{diagram-VX7I27RA-qcqzMTdM.js → diagram-VX7I27RA-CVOE8dqI.js} +1 -1
  309. package/web-shell/assets/{diagram-Z3DM3KII-BW2msYO9.js → diagram-Z3DM3KII-3gYRwIVB.js} +1 -1
  310. package/web-shell/assets/{ebnfDiagram-PWID7BFC-BN_KX7H4.js → ebnfDiagram-PWID7BFC-tVjIWybZ.js} +1 -1
  311. package/web-shell/assets/{erDiagram-SSCWMZ5O-BEPAXNfa.js → erDiagram-SSCWMZ5O-DKQv6Y6l.js} +1 -1
  312. package/web-shell/assets/{flowDiagram-A5DVABFB-J5rFRAzf.js → flowDiagram-A5DVABFB-C1aZT9uy.js} +1 -1
  313. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DbCDbWau.js → ganttDiagram-EL5Y4UJY-BKVpaHRR.js} +1 -1
  314. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-bqtLvLt6.js → gitGraphDiagram-WWUBYQGX-BZOhM9h_.js} +1 -1
  315. package/web-shell/assets/{index-oRgWK1FG.js → index-CB3Jrunr.js} +1 -1
  316. package/web-shell/assets/{index-CmGS1V0O.js → index-Do4y2b4t.js} +3 -3
  317. package/web-shell/assets/{infoDiagram-RXCK75RN-jD_aGraB.js → infoDiagram-RXCK75RN-D1uBMMVt.js} +1 -1
  318. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-BU_kztq1.js → ishikawaDiagram-5VMMS53U-CEucsPqw.js} +1 -1
  319. package/web-shell/assets/{journeyDiagram-EYS64GPL-CEPbo8Ah.js → journeyDiagram-EYS64GPL-DZzzYLoO.js} +1 -1
  320. package/web-shell/assets/{kanban-definition-3QL26DDD-CPcsw8xU.js → kanban-definition-3QL26DDD-C9BYwkVP.js} +1 -1
  321. package/web-shell/assets/{layout-g0j6TjpV.js → layout-CsgRL45r.js} +1 -1
  322. package/web-shell/assets/{linear-CrwOFzK9.js → linear-BUq0-ZDw.js} +1 -1
  323. package/web-shell/assets/{mermaid.core-CBuVXhOV.js → mermaid.core-D3JSOWCq.js} +6 -6
  324. package/web-shell/assets/{mindmap-definition-FBJOCRG2-DIyba6qt.js → mindmap-definition-FBJOCRG2-BLHYT_f0.js} +1 -1
  325. package/web-shell/assets/{pegDiagram-XKGWAZYB-Ca2HUoSs.js → pegDiagram-XKGWAZYB-B2QHW9UX.js} +1 -1
  326. package/web-shell/assets/{pieDiagram-E7YTZNPT-ByZx2omD.js → pieDiagram-E7YTZNPT-4QDrwUVJ.js} +1 -1
  327. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-mz_nwmua.js → quadrantDiagram-AXDQQJYC-CHkz8icI.js} +1 -1
  328. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DNp6SMnN.js → railroadDiagram-O6MQD6OU-Y1UZxdd7.js} +1 -1
  329. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BjobHLzZ.js → requirementDiagram-EFPCY7ZU-B2STIEs-.js} +1 -1
  330. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BDIEl7pd.js → sankeyDiagram-P5KCCOFB-QX0whSnt.js} +1 -1
  331. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-B3bBatOA.js → sequenceDiagram-WJ2MYXX4-JSPBV6Z9.js} +1 -1
  332. package/web-shell/assets/{sizeCapture-X5ZJPWSS-fjkL_fpm.js → sizeCapture-X5ZJPWSS-BHR85hzV.js} +1 -1
  333. package/web-shell/assets/{stateDiagram-HBIQ2CUA-DWI9ZSoH.js → stateDiagram-HBIQ2CUA-5yqdcEJk.js} +1 -1
  334. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BHsx9uG6.js +1 -0
  335. package/web-shell/assets/{swimlanes-XN3QIQJK-Cy8ZWCm6.js → swimlanes-XN3QIQJK-DtaoSfgY.js} +1 -1
  336. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-AVscCGHh.js +8 -0
  337. package/web-shell/assets/{timeline-definition-24CTP7MA-DCTeUtWc.js → timeline-definition-24CTP7MA-Di2q68WC.js} +1 -1
  338. package/web-shell/assets/{vennDiagram-4TSXK5OY-Bl1hF4mS.js → vennDiagram-4TSXK5OY-BiIN5IkG.js} +1 -1
  339. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-OwTiTsqZ.js → wardleyDiagram-VM6X3IG4-Cjx_SM3A.js} +1 -1
  340. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BiS3y1ib.js → xychartDiagram-S5SC5T6Z-VAFMpQ3K.js} +1 -1
  341. package/web-shell/index.html +1 -1
  342. package/web-shell/sw.js +1 -1
  343. package/chunks/chunk-YCZIOHKD.js +0 -86
  344. package/web-shell/assets/channel-JCMNEoi4.js +0 -1
  345. package/web-shell/assets/classDiagram-DTDB5LWJ-BUSCdUxi.js +0 -1
  346. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BUSCdUxi.js +0 -1
  347. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BJW6-4yh.js +0 -1
  348. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-b7Ml4DU9.js +0 -8
  349. package/chunks/{container-execution-environment-XBTXQ5YE.js → container-execution-environment-WILZRYKO.js} +3 -3
@@ -24,7 +24,7 @@ import {
24
24
  listTasks,
25
25
  onTasksUpdated,
26
26
  unassignTeammateTasks
27
- } from "./chunk-X427DWFD.js";
27
+ } from "./chunk-5LIDCGQZ.js";
28
28
  import {
29
29
  CronScheduler,
30
30
  DEFAULT_RECURRING_MAX_AGE_DAYS,
@@ -39,7 +39,7 @@ import {
39
39
  sendStructuredMessage,
40
40
  wrapConfirmWithBadge,
41
41
  writeMessage
42
- } from "./chunk-7H3GWNGJ.js";
42
+ } from "./chunk-4WIYGAME.js";
43
43
  import {
44
44
  AgentOutputMessageCapture,
45
45
  DEFAULT_OTLP_ENDPOINT,
@@ -99,10 +99,10 @@ import {
99
99
  stringify,
100
100
  validateGoalProposalReason,
101
101
  validateSkillName
102
- } from "./chunk-RP55RX65.js";
102
+ } from "./chunk-WIQEF7ON.js";
103
103
  import {
104
104
  canUseRipgrep
105
- } from "./chunk-AJDAOH4D.js";
105
+ } from "./chunk-A5ZAKF2B.js";
106
106
  import {
107
107
  AGENT_WORKTREE_SLUG_PATTERN,
108
108
  GitWorktreeService,
@@ -116,7 +116,7 @@ import {
116
116
  worktreeHasWork,
117
117
  writeRuntimeStatus,
118
118
  writeWorktreeSessionMarker
119
- } from "./chunk-GM7RKZZ4.js";
119
+ } from "./chunk-WKUCYQM7.js";
120
120
  import {
121
121
  hasVerifiableInode,
122
122
  openSyncNoFollow
@@ -149,7 +149,7 @@ import {
149
149
  deriveSessionName,
150
150
  patchSessionRecord,
151
151
  unregisterSession
152
- } from "./chunk-KEPNWFUD.js";
152
+ } from "./chunk-ZSYQ3RBP.js";
153
153
  import {
154
154
  LEADER_NAME,
155
155
  MAX_TEAMMATES,
@@ -158,11 +158,13 @@ import {
158
158
  findMemberByName,
159
159
  formatAgentId,
160
160
  generateUniqueTeammateName,
161
- readLocalBootId,
162
- readPidNamespaceId,
163
161
  sanitizeName,
164
162
  writeTeamFile
165
- } from "./chunk-OI7IVUEO.js";
163
+ } from "./chunk-D6APUHI5.js";
164
+ import {
165
+ readLocalBootId,
166
+ readPidNamespaceId
167
+ } from "./chunk-UMHRQJOE.js";
166
168
  import {
167
169
  buildModelIdContext,
168
170
  resolveModelId
@@ -176,7 +178,7 @@ import {
176
178
  } from "./chunk-SYMKXR42.js";
177
179
  import {
178
180
  normalizeImageGenerationBaseUrl
179
- } from "./chunk-4MFP7T32.js";
181
+ } from "./chunk-UAIMOPVZ.js";
180
182
  import {
181
183
  restoreSessionSources
182
184
  } from "./chunk-CDYMT4OZ.js";
@@ -195,7 +197,7 @@ import {
195
197
  getShellPagerEnv,
196
198
  isSignalTermination,
197
199
  normalizePathEnvForWindows
198
- } from "./chunk-RKDSZAAB.js";
200
+ } from "./chunk-IUMWWTUV.js";
199
201
  import {
200
202
  stripAnsi
201
203
  } from "./chunk-WU3R2YUE.js";
@@ -203,24 +205,6 @@ import {
203
205
  escapeJsonTagCharacters,
204
206
  formatMemoryUsage
205
207
  } from "./chunk-M7AWQAB7.js";
206
- import {
207
- SHELL_SELF_KILL_REJECTION,
208
- buildShellExecWarnings,
209
- classifyAwkCommandSafety,
210
- classifySedCommandSafety,
211
- detectSelfKillCommand,
212
- escapeShellArg,
213
- getCommandRoot,
214
- getCommandRoots,
215
- getShellConfiguration,
216
- hasShellPatternExpansion,
217
- hasShellSubstitution,
218
- isShellCommandReadOnly,
219
- normalizeMonitorCommand,
220
- shouldDefaultToNodePty,
221
- splitCommands,
222
- stripShellWrapper
223
- } from "./chunk-SBM747MY.js";
224
208
  import {
225
209
  resolveBundleDir
226
210
  } from "./chunk-Z2IHOXIK.js";
@@ -236,13 +220,13 @@ import {
236
220
  admitShellSandbox,
237
221
  assertShellSandboxCwd,
238
222
  probeShellSandbox
239
- } from "./chunk-ZUNJAPSW.js";
223
+ } from "./chunk-K7JOSPO4.js";
240
224
  import {
241
225
  resolveNetworkTarget
242
226
  } from "./chunk-HPQNI3OQ.js";
243
227
  import {
244
228
  isOmniDeliveryActive
245
- } from "./chunk-PHCETAH4.js";
229
+ } from "./chunk-JKBN3WM5.js";
246
230
  import {
247
231
  MediaResourceRegistry,
248
232
  evaluateMediaPolicyToolCall,
@@ -256,7 +240,7 @@ import {
256
240
  DEFERRED_TOOL_CALL_CANCELLATION_PREFIX,
257
241
  DEFERRED_TOOL_CALL_REFUSAL_PREFIX,
258
242
  resolveDeferredToolCall
259
- } from "./chunk-Z335FWG2.js";
243
+ } from "./chunk-F3762QZG.js";
260
244
  import {
261
245
  EXCLUDED_TOOLS_FOR_SUBAGENTS,
262
246
  READ_ONLY_INSPECTION_TOOLS,
@@ -285,13 +269,10 @@ import {
285
269
  splitCompoundCommand,
286
270
  splitCompoundCommandSegments,
287
271
  toolMatchesRuleToolName
288
- } from "./chunk-BASKI2UI.js";
272
+ } from "./chunk-6XC7AQHT.js";
289
273
  import {
290
274
  APPROVAL_MODES
291
275
  } from "./chunk-KQAVEXYD.js";
292
- import {
293
- require_shell_quote
294
- } from "./chunk-WZCKDUBO.js";
295
276
  import {
296
277
  AskUserQuestionTool,
297
278
  TrustedUserAnswers,
@@ -307,7 +288,7 @@ import {
307
288
  resolveInteractionMode,
308
289
  resolveMainSessionOutputStyle,
309
290
  withDisplayModePrompt
310
- } from "./chunk-M7ZHP7VU.js";
291
+ } from "./chunk-UW4ZP77X.js";
311
292
  import {
312
293
  NO_EXEC_CONFIG,
313
294
  findGitRoot,
@@ -333,7 +314,7 @@ import {
333
314
  import {
334
315
  DashScopeOpenAICompatibleProvider,
335
316
  selectDashScopeThinkingKnob
336
- } from "./chunk-A3OHVZOI.js";
317
+ } from "./chunk-T4X6ZODK.js";
337
318
  import {
338
319
  InvalidStreamError,
339
320
  getToolCallPreparations,
@@ -361,7 +342,7 @@ import {
361
342
  runWithAgentDisallowedTools,
362
343
  runWithRuntimeContentGenerator,
363
344
  spawnBlockReason
364
- } from "./chunk-NMOAEZHZ.js";
345
+ } from "./chunk-3ONAZUCS.js";
365
346
  import {
366
347
  getTeammateContext,
367
348
  isTeammate,
@@ -459,7 +440,7 @@ import {
459
440
  updateMCPServerStatus,
460
441
  writeLine,
461
442
  writeLineSync
462
- } from "./chunk-QSHFGJIL.js";
443
+ } from "./chunk-IDOFNXOM.js";
463
444
  import {
464
445
  Mutex
465
446
  } from "./chunk-242JUBPM.js";
@@ -554,12 +535,37 @@ import {
554
535
  stripSystemReminderBlocks,
555
536
  validateForkToolList,
556
537
  wrapSystemReminder
557
- } from "./chunk-5RKM3PAM.js";
538
+ } from "./chunk-26G2BFFM.js";
558
539
  import {
540
+ EXPLICIT_TRUST_HINT,
559
541
  clearLoadedSkillTracking,
560
542
  collectAvailableSkillEntries,
561
543
  renderAvailableSkillsBlock
562
- } from "./chunk-2SMHE6PC.js";
544
+ } from "./chunk-GVJCUUWW.js";
545
+ import {
546
+ SHELL_SELF_KILL_REJECTION,
547
+ buildShellExecWarnings,
548
+ classifyAwkCommandSafety,
549
+ classifySedCommandSafety,
550
+ decodeAnsiCString,
551
+ detectSelfKillCommand,
552
+ escapeShellArg,
553
+ getCommandRoot,
554
+ getCommandRoots,
555
+ getExecutableBasename,
556
+ getShellConfiguration,
557
+ getShellDisplayName,
558
+ hasShellPatternExpansion,
559
+ hasShellSubstitution,
560
+ isShellCommandReadOnly,
561
+ normalizeMonitorCommand,
562
+ shouldDefaultToNodePty,
563
+ splitCommands,
564
+ stripShellWrapper
565
+ } from "./chunk-X4LDF6O3.js";
566
+ import {
567
+ require_shell_quote
568
+ } from "./chunk-WZCKDUBO.js";
563
569
  import {
564
570
  DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
565
571
  O1CodeIgnoreParser,
@@ -614,7 +620,7 @@ import {
614
620
  resolveReasoningCapabilities,
615
621
  resolveReasoningForModel,
616
622
  validateReasoningCapabilities
617
- } from "./chunk-E6CUCFSE.js";
623
+ } from "./chunk-B5DA6HBM.js";
618
624
  import {
619
625
  ResponsesHttpError,
620
626
  classifyRetryError,
@@ -623,7 +629,7 @@ import {
623
629
  isRetryableUpstreamError,
624
630
  isUnattendedMode,
625
631
  retryWithBackoff
626
- } from "./chunk-AFLYEJ7J.js";
632
+ } from "./chunk-NWZDA6PN.js";
627
633
  import {
628
634
  DEFAULT_IMAGE_TOKEN_ESTIMATE,
629
635
  TOKEN_TO_CHAR_RATIO,
@@ -699,7 +705,7 @@ import {
699
705
  resolveProviderProtocol,
700
706
  resolveSavedModelApiKey,
701
707
  stripRuntimeSnapshotPrefix
702
- } from "./chunk-P3WBQU4W.js";
708
+ } from "./chunk-ZME3GEAN.js";
703
709
  import {
704
710
  DEFAULT_TOKEN_LIMIT,
705
711
  OUTPUT_TOKEN_CEILING,
@@ -716,7 +722,7 @@ import {
716
722
  reasoningEffortsForCapability,
717
723
  setGeneratorReasoningEffort,
718
724
  tokenLimit
719
- } from "./chunk-72EBG4FJ.js";
725
+ } from "./chunk-XFIAS7A6.js";
720
726
  import {
721
727
  createGatewayIndependentRequest,
722
728
  gatewayIndependentInput
@@ -767,7 +773,7 @@ import {
767
773
  createContentGenerator,
768
774
  resetPreloadedContentGenerator,
769
775
  resolveContentGeneratorConfigWithSources
770
- } from "./chunk-GSEYQ6LG.js";
776
+ } from "./chunk-USSMX7ZA.js";
771
777
  import {
772
778
  DEFAULT_O1CODE_MODEL
773
779
  } from "./chunk-LEXKU5FI.js";
@@ -13334,9 +13340,9 @@ function roundMs(value) {
13334
13340
  }
13335
13341
  __name(roundMs, "roundMs");
13336
13342
  function getAppendProfileOpenFlags() {
13337
- const constants3 = fs3.constants;
13338
- const noFollow = process.platform === "win32" ? 0 : constants3.O_NOFOLLOW ?? 0;
13339
- return (constants3.O_APPEND ?? 0) | (constants3.O_CREAT ?? 0) | (constants3.O_WRONLY ?? 0) | noFollow;
13343
+ const constants4 = fs3.constants;
13344
+ const noFollow = process.platform === "win32" ? 0 : constants4.O_NOFOLLOW ?? 0;
13345
+ return (constants4.O_APPEND ?? 0) | (constants4.O_CREAT ?? 0) | (constants4.O_WRONLY ?? 0) | noFollow;
13340
13346
  }
13341
13347
  __name(getAppendProfileOpenFlags, "getAppendProfileOpenFlags");
13342
13348
  function assertSafeProfileDirectory(dir) {
@@ -15116,7 +15122,7 @@ var backgroundTurnContext = new AsyncLocalStorage();
15116
15122
  // packages/core/src/services/chatRecordingService.ts
15117
15123
  import path10 from "node:path";
15118
15124
  import fs12 from "node:fs";
15119
- import { randomUUID as randomUUID5 } from "node:crypto";
15125
+ import { randomUUID as randomUUID6 } from "node:crypto";
15120
15126
  import { isDeepStrictEqual } from "node:util";
15121
15127
 
15122
15128
  // packages/core/src/utils/toolResultDisplayCompaction.ts
@@ -16095,12 +16101,13 @@ __name(aggregateUsage, "aggregateUsage");
16095
16101
  // packages/core/src/services/sessionService.ts
16096
16102
  import path9 from "node:path";
16097
16103
  import fs11 from "node:fs";
16098
- import { randomUUID as randomUUID4 } from "node:crypto";
16104
+ import { randomUUID as randomUUID5 } from "node:crypto";
16099
16105
  import readline from "node:readline";
16100
16106
 
16101
16107
  // packages/core/src/services/fileHistoryService.ts
16102
16108
  init_esbuild_shims();
16103
- import { createHash } from "node:crypto";
16109
+ import { createHash, randomUUID as randomUUID2 } from "node:crypto";
16110
+ import { constants as constants2 } from "node:fs";
16104
16111
  import {
16105
16112
  chmod,
16106
16113
  copyFile,
@@ -17038,19 +17045,54 @@ function resolveBackupPath(backupFileName, sessionId) {
17038
17045
  return backupPath;
17039
17046
  }
17040
17047
  __name(resolveBackupPath, "resolveBackupPath");
17041
- async function safeCopyFile(src, dst) {
17048
+ async function safeCopyFile(src, dst, mode = 0) {
17042
17049
  try {
17043
- await copyFile(src, dst);
17050
+ await copyFile(src, dst, mode);
17044
17051
  return "ok";
17045
17052
  } catch (e) {
17046
17053
  if (!isENOENT(e)) throw e;
17047
17054
  if (!await pathExists(src)) return "src-missing";
17048
17055
  await mkdir2(dirname(dst), { recursive: true });
17049
- await copyFile(src, dst);
17056
+ await copyFile(src, dst, mode);
17050
17057
  return "ok";
17051
17058
  }
17052
17059
  }
17053
17060
  __name(safeCopyFile, "safeCopyFile");
17061
+ var BACKUP_RENAME_RETRIES = 3;
17062
+ var BACKUP_RENAME_DELAY_MS = 50;
17063
+ async function copyBackupAtomically(filePath, backupPath, mode) {
17064
+ const tempPath = `${backupPath}.${randomUUID2()}.tmp`;
17065
+ try {
17066
+ const result = await safeCopyFile(
17067
+ filePath,
17068
+ tempPath,
17069
+ constants2.COPYFILE_EXCL
17070
+ );
17071
+ if (result === "src-missing") {
17072
+ await unlink3(tempPath).catch(() => void 0);
17073
+ return result;
17074
+ }
17075
+ await chmod(tempPath, mode & 4095 | 384);
17076
+ const handle = await open(tempPath, "r+");
17077
+ try {
17078
+ await handle.sync();
17079
+ } finally {
17080
+ await handle.close();
17081
+ }
17082
+ await chmod(tempPath, mode);
17083
+ await renameWithRetry(
17084
+ tempPath,
17085
+ backupPath,
17086
+ BACKUP_RENAME_RETRIES,
17087
+ BACKUP_RENAME_DELAY_MS
17088
+ );
17089
+ return "ok";
17090
+ } catch (e) {
17091
+ await unlink3(tempPath).catch(() => void 0);
17092
+ throw e;
17093
+ }
17094
+ }
17095
+ __name(copyBackupAtomically, "copyBackupAtomically");
17054
17096
  async function createBackup(filePath, version2, sessionId) {
17055
17097
  const backupFileName = getBackupFileName(filePath, version2);
17056
17098
  const backupPath = resolveBackupPath(backupFileName, sessionId);
@@ -17063,11 +17105,14 @@ async function createBackup(filePath, version2, sessionId) {
17063
17105
  }
17064
17106
  throw e;
17065
17107
  }
17066
- const result = await safeCopyFile(filePath, backupPath);
17108
+ const result = await copyBackupAtomically(
17109
+ filePath,
17110
+ backupPath,
17111
+ srcStats.mode
17112
+ );
17067
17113
  if (result === "src-missing") {
17068
17114
  return { backupFileName: null, version: version2, backupTime: /* @__PURE__ */ new Date() };
17069
17115
  }
17070
- await chmod(backupPath, srcStats.mode);
17071
17116
  return { backupFileName, version: version2, backupTime: /* @__PURE__ */ new Date() };
17072
17117
  }
17073
17118
  __name(createBackup, "createBackup");
@@ -18272,7 +18317,7 @@ __name(readSessionTitleInfoFromFileSync, "readSessionTitleInfoFromFileSync");
18272
18317
 
18273
18318
  // packages/core/src/services/session-organization-service.ts
18274
18319
  init_esbuild_shims();
18275
- import { randomUUID as randomUUID2 } from "node:crypto";
18320
+ import { randomUUID as randomUUID3 } from "node:crypto";
18276
18321
  import * as fs7 from "node:fs/promises";
18277
18322
  import * as path5 from "node:path";
18278
18323
  var GROUP_COLOR_OPTIONS = [
@@ -18454,7 +18499,7 @@ var SessionOrganizationService = class {
18454
18499
  }
18455
18500
  const now = (/* @__PURE__ */ new Date()).toISOString();
18456
18501
  const group = {
18457
- id: randomUUID2(),
18502
+ id: randomUUID3(),
18458
18503
  name,
18459
18504
  color,
18460
18505
  order: Math.min(
@@ -22733,7 +22778,7 @@ var SessionTranscriptReader = class {
22733
22778
  init_esbuild_shims();
22734
22779
  import { execFile as execFile3 } from "node:child_process";
22735
22780
  import * as nodeConstants from "node:constants";
22736
- import { createHash as createHash2, randomUUID as randomUUID3 } from "node:crypto";
22781
+ import { createHash as createHash2, randomUUID as randomUUID4 } from "node:crypto";
22737
22782
  import * as nodeFs from "node:fs";
22738
22783
  import * as fs10 from "node:fs/promises";
22739
22784
  import * as os from "node:os";
@@ -23958,7 +24003,7 @@ var SessionWriterLease = class _SessionWriterLease {
23958
24003
  schema_version: LOCK_SCHEMA_VERSION,
23959
24004
  state: "active",
23960
24005
  session_id: normalizedOptions.sessionId,
23961
- owner_id: randomUUID3(),
24006
+ owner_id: randomUUID4(),
23962
24007
  pid: process.pid,
23963
24008
  ...processStartIdentity ? { process_start_identity: processStartIdentity } : {},
23964
24009
  ...pidNamespaceId !== null ? { pid_namespace_id: pidNamespaceId } : {},
@@ -24018,7 +24063,7 @@ var SessionWriterLease = class _SessionWriterLease {
24018
24063
  );
24019
24064
  let primaryInstalled = false;
24020
24065
  let staleMoved = false;
24021
- const stalePath = `${lockPath}.stale.${process.pid}.${randomUUID3()}`;
24066
+ const stalePath = `${lockPath}.stale.${process.pid}.${randomUUID4()}`;
24022
24067
  try {
24023
24068
  await assertPathMissing(claimPath);
24024
24069
  const currentState = await _SessionWriterLease.inspectExistingLock(
@@ -27550,7 +27595,7 @@ ${payload}`, "utf8");
27550
27595
  }
27551
27596
  const lastUuid = this.readLastRecordUuid(filePath);
27552
27597
  const titleRecord = {
27553
- uuid: randomUUID4(),
27598
+ uuid: randomUUID5(),
27554
27599
  parentUuid: lastUuid,
27555
27600
  sessionId,
27556
27601
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -27651,7 +27696,7 @@ ${payload}`, "utf8");
27651
27696
  throw new Error(`Source session not found or empty: ${sourceSessionId}`);
27652
27697
  }
27653
27698
  const sourceRecord = options2.source ? {
27654
- uuid: randomUUID4(),
27699
+ uuid: randomUUID5(),
27655
27700
  parentUuid: null,
27656
27701
  sessionId: newSessionId,
27657
27702
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -27725,7 +27770,7 @@ ${payload}`, "utf8");
27725
27770
  ).filter((snapshot) => !existingSnapshotPromptIds.has(snapshot.promptId));
27726
27771
  if (remappedSnapshots?.length) {
27727
27772
  const snapshotRecord = {
27728
- uuid: randomUUID4(),
27773
+ uuid: randomUUID5(),
27729
27774
  parentUuid: prevUuid,
27730
27775
  sessionId: newSessionId,
27731
27776
  type: "system",
@@ -27742,7 +27787,7 @@ ${payload}`, "utf8");
27742
27787
  }
27743
27788
  if (options2.title !== void 0) {
27744
27789
  const titleRecord = {
27745
- uuid: randomUUID4(),
27790
+ uuid: randomUUID5(),
27746
27791
  parentUuid: prevUuid,
27747
27792
  sessionId: newSessionId,
27748
27793
  type: "system",
@@ -27767,7 +27812,7 @@ ${payload}`, "utf8");
27767
27812
  }, "validateTargetBranchPoint");
27768
27813
  validateTargetBranchPoint();
27769
27814
  const body = forked.map((r) => JSON.stringify(r)).join("\n") + "\n";
27770
- const operationId = randomUUID4();
27815
+ const operationId = randomUUID5();
27771
27816
  const artifactSnapshots = rebuildSessionArtifactSnapshot(forked, newSessionId)?.artifacts ?? [];
27772
27817
  const stagedTranscriptPath = path9.join(
27773
27818
  chatsDir,
@@ -29006,7 +29051,7 @@ var ChatRecordingService = class {
29006
29051
  const backgroundTurn = background?.active && background.sessionId === this.getSessionId() && !getCurrentAgentId() ? background.turn : void 0;
29007
29052
  return {
29008
29053
  ...backgroundTurn ? { backgroundTurn } : {},
29009
- uuid: randomUUID5(),
29054
+ uuid: randomUUID6(),
29010
29055
  parentUuid: this.lastRecordUuid,
29011
29056
  sessionId: this.getSessionId(),
29012
29057
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -29437,7 +29482,7 @@ var ChatRecordingService = class {
29437
29482
  pendingCallsAtStart: input2.cursor.pendingToolCalls
29438
29483
  });
29439
29484
  if (!candidate) return void 0;
29440
- const checkpointUuid = randomUUID5();
29485
+ const checkpointUuid = randomUUID6();
29441
29486
  const checkpoint = {
29442
29487
  ...this.createBaseRecord("system"),
29443
29488
  uuid: checkpointUuid,
@@ -32486,6 +32531,14 @@ var CONTEXT_LENGTH_PATTERNS = [
32486
32531
  /\bprompt\s+(?:is\s+)?too long\b/i,
32487
32532
  /\binput\s+(?:token\s+)?(?:count\s+|length\s+)?(?:is\s+)?too long\b/i,
32488
32533
  /\brange of input length should be\b/i,
32534
+ // Hugging Face TGI: "`inputs` tokens + `max_new_tokens` must be <= 32768.
32535
+ // Given: 40000 `inputs` tokens and 1000 `max_new_tokens`" and "`inputs`
32536
+ // must have less than 32768 tokens. Given: 40000".
32537
+ /\binputs`?\s+tokens\s*\+\s*`?max_new_tokens`?\s+must be\s*<=/i,
32538
+ /\binputs`?\s+must have less than\s+\d[\d,]*\s+tokens\b/i,
32539
+ // llama.cpp: "request (279935 tokens) exceeds the available context size
32540
+ // (262144 tokens), try increasing it".
32541
+ /\bexceeds the available context size\b/i,
32489
32542
  /\btoo many tokens\b/i,
32490
32543
  // "exceeds the model's context window", "exceed context limit" (Anthropic's
32491
32544
  // input + max_tokens refusal), Codex's ContextWindowExceeded.
@@ -32540,6 +32593,33 @@ function parseTokenCounts(text) {
32540
32593
  limitTokens: parseInteger(rangeMatch[1])
32541
32594
  };
32542
32595
  }
32596
+ const tgiTotalMatch = text.match(
32597
+ /must be\s*<=\s*(\d[\d,]{0,31})\.?\s*Given:\s*(\d[\d,]{0,31})\s*`?inputs`?\s+tokens/i
32598
+ );
32599
+ if (tgiTotalMatch) {
32600
+ return {
32601
+ actualTokens: parseInteger(tgiTotalMatch[2]),
32602
+ limitTokens: parseInteger(tgiTotalMatch[1])
32603
+ };
32604
+ }
32605
+ const tgiInputMatch = text.match(
32606
+ /must have less than\s+(\d[\d,]{0,31})\s+tokens\.?\s*Given:\s*(\d[\d,]{0,31})/i
32607
+ );
32608
+ if (tgiInputMatch) {
32609
+ return {
32610
+ actualTokens: parseInteger(tgiInputMatch[2]),
32611
+ limitTokens: parseInteger(tgiInputMatch[1])
32612
+ };
32613
+ }
32614
+ const llamaCppMatch = text.match(
32615
+ /\(\s*(\d[\d,]*)\s*tokens?\s*\)\s*exceeds the available context size\s*\(\s*(\d[\d,]*)\s*tokens?\s*\)/i
32616
+ );
32617
+ if (llamaCppMatch) {
32618
+ return {
32619
+ actualTokens: parseInteger(llamaCppMatch[1]),
32620
+ limitTokens: parseInteger(llamaCppMatch[2])
32621
+ };
32622
+ }
32543
32623
  return {};
32544
32624
  }
32545
32625
  __name(parseTokenCounts, "parseTokenCounts");
@@ -34791,7 +34871,7 @@ var LlmChat = class {
34791
34871
  const degradeAttempt = omniMediaDegradeAttempts++;
34792
34872
  let degradeOutcome;
34793
34873
  try {
34794
- const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-JMU44IFK.js");
34874
+ const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-2R225XZN.js");
34795
34875
  degradeOutcome = await degradeOmniMediaAfterServerReject(
34796
34876
  self2.config,
34797
34877
  self2.history,
@@ -38374,7 +38454,7 @@ __name(computeCharContribution, "computeCharContribution");
38374
38454
  init_esbuild_shims();
38375
38455
  import * as fs36 from "node:fs/promises";
38376
38456
  import * as path37 from "node:path";
38377
- import { randomUUID as randomUUID10 } from "node:crypto";
38457
+ import { randomUUID as randomUUID11 } from "node:crypto";
38378
38458
 
38379
38459
  // packages/core/src/memory/store.ts
38380
38460
  init_esbuild_shims();
@@ -38505,7 +38585,7 @@ init_esbuild_shims();
38505
38585
 
38506
38586
  // packages/core/src/agents/forkedAgent.ts
38507
38587
  init_esbuild_shims();
38508
- import { randomUUID as randomUUID9 } from "node:crypto";
38588
+ import { randomUUID as randomUUID10 } from "node:crypto";
38509
38589
 
38510
38590
  // packages/core/src/tools/agent/agent.ts
38511
38591
  init_esbuild_shims();
@@ -38516,12 +38596,12 @@ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
38516
38596
  var goalTurnContext = new AsyncLocalStorage2();
38517
38597
 
38518
38598
  // packages/core/src/tools/agent/agent.ts
38519
- import { randomUUID as randomUUID8 } from "node:crypto";
38599
+ import { randomUUID as randomUUID9 } from "node:crypto";
38520
38600
  import { realpath as realpath3 } from "node:fs/promises";
38521
38601
 
38522
38602
  // packages/core/src/agents/runtime/agent-core.ts
38523
38603
  init_esbuild_shims();
38524
- import { randomUUID as randomUUID6 } from "node:crypto";
38604
+ import { randomUUID as randomUUID7 } from "node:crypto";
38525
38605
 
38526
38606
  // packages/core/src/core/coreToolScheduler.ts
38527
38607
  init_esbuild_shims();
@@ -41054,6 +41134,16 @@ function tokenize2(command) {
41054
41134
  escaped = true;
41055
41135
  continue;
41056
41136
  }
41137
+ if (ch === "$" && command[i + 1] === "'" && !inSingle && !inDouble && // The second `$` of `$$` (the PID) cannot open `$'…'`.
41138
+ command[i - 1] !== "$") {
41139
+ let end = i + 2;
41140
+ while (end < command.length && command[end] !== "'") {
41141
+ end += command[end] === "\\" ? 2 : 1;
41142
+ }
41143
+ current += decodeAnsiCString(command.slice(i + 2, end));
41144
+ i = end;
41145
+ continue;
41146
+ }
41057
41147
  if (ch === "'" && !inDouble) {
41058
41148
  inSingle = !inSingle;
41059
41149
  continue;
@@ -41131,13 +41221,14 @@ function isNetworkPseudoDevice(target) {
41131
41221
  return /^\/dev\/(tcp|udp)\//.test(target);
41132
41222
  }
41133
41223
  __name(isNetworkPseudoDevice, "isNetworkPseudoDevice");
41224
+ var COMBINED_REDIRECT = /^(<<-?|1>>|1>\||1>|>>|>\||>|2>>|2>\||2>|&>>|&>|<)([\s\S]+)$/;
41134
41225
  function extractRedirects(tokens, cwd) {
41135
41226
  const readFiles = [];
41136
41227
  const writeFiles = [];
41137
41228
  const toRemove = /* @__PURE__ */ new Set();
41138
41229
  for (let i = 0; i < tokens.length; i++) {
41139
41230
  const tok = tokens[i];
41140
- if (tok === ">" || tok === "1>") {
41231
+ if (tok === ">" || tok === "1>" || tok === ">|" || tok === "1>|") {
41141
41232
  const target = tokens[i + 1];
41142
41233
  if (target && looksLikePath(target)) {
41143
41234
  if (!isNetworkPseudoDevice(target)) {
@@ -41173,7 +41264,7 @@ function extractRedirects(tokens, cwd) {
41173
41264
  toRemove.add(i + 1);
41174
41265
  i++;
41175
41266
  }
41176
- } else if (tok === "2>" || tok === "2>>" || tok === "&>" || tok === "&>>") {
41267
+ } else if (tok === "2>" || tok === "2>|" || tok === "2>>" || tok === "&>" || tok === "&>>") {
41177
41268
  const target = tokens[i + 1];
41178
41269
  if (target) {
41179
41270
  if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
@@ -41184,14 +41275,21 @@ function extractRedirects(tokens, cwd) {
41184
41275
  i++;
41185
41276
  }
41186
41277
  } else {
41187
- const m2 = tok.match(/^(<<-?|1>>|1>|>>|>|2>>|2>|&>>|&>|<)([\s\S]+)$/);
41278
+ const m2 = tok.match(COMBINED_REDIRECT);
41188
41279
  if (m2) {
41189
41280
  const op = m2[1];
41190
- const target = m2[2];
41281
+ let target = m2[2];
41191
41282
  if (op.startsWith("<<")) {
41192
41283
  toRemove.add(i);
41193
41284
  continue;
41194
41285
  }
41286
+ if (target.startsWith("&")) {
41287
+ target = target.slice(1);
41288
+ if (target === "" || /^(\d+|-)$/.test(target)) {
41289
+ toRemove.add(i);
41290
+ continue;
41291
+ }
41292
+ }
41195
41293
  if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
41196
41294
  if (op === "<") {
41197
41295
  readFiles.push(resolvePath2(target, cwd));
@@ -42726,6 +42824,20 @@ function getHeredocDelimiters(line) {
42726
42824
  return delimiters;
42727
42825
  }
42728
42826
  __name(getHeredocDelimiters, "getHeredocDelimiters");
42827
+ function extractRedirectOperations(command, cwd) {
42828
+ const { readFiles, writeFiles } = extractRedirects(tokenize2(command), cwd);
42829
+ return [
42830
+ ...readFiles.map((filePath) => ({
42831
+ virtualTool: "read_file",
42832
+ filePath
42833
+ })),
42834
+ ...writeFiles.map((filePath) => ({
42835
+ virtualTool: "write_file",
42836
+ filePath
42837
+ }))
42838
+ ];
42839
+ }
42840
+ __name(extractRedirectOperations, "extractRedirectOperations");
42729
42841
  function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42730
42842
  const subCommands = splitCompoundCommandSegments(stripHeredocBodies(command));
42731
42843
  const ops = [];
@@ -42734,6 +42846,12 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42734
42846
  for (const { command: sub, terminator } of subCommands) {
42735
42847
  const backgrounded = terminator === "&";
42736
42848
  const cdTarget = resolveCdTargetCwd(sub, effectiveCwd, cwdUnknown);
42849
+ if (cdTarget.kind !== "not-cd") {
42850
+ const redirectOps = extractRedirectOperations(sub, effectiveCwd);
42851
+ ops.push(
42852
+ ...cwdUnknown ? markCwdUnknownOps(redirectOps, sub, effectiveCwd) : redirectOps
42853
+ );
42854
+ }
42737
42855
  if (cdTarget.kind === "static") {
42738
42856
  if (!backgrounded) {
42739
42857
  effectiveCwd = cdTarget.cwd;
@@ -42777,9 +42895,8 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42777
42895
  __name(walkCompoundCommand, "walkCompoundCommand");
42778
42896
  function hasAbsolutePathTokenForOperation(command, cwd, filePath) {
42779
42897
  for (const token of tokenize2(command)) {
42780
- const redirectTarget3 = token.match(
42781
- /^(?:1>>|1>|>>|>|2>>|2>|&>>|&>|<)([\s\S]+)$/
42782
- )?.[1];
42898
+ const redirect = token.match(COMBINED_REDIRECT);
42899
+ const redirectTarget3 = redirect?.[1]?.startsWith("<<") ? void 0 : redirect?.[2]?.replace(/^&/, "");
42783
42900
  const candidate = redirectTarget3 ?? token;
42784
42901
  if (looksLikePath(candidate) && isShellAbsolutePath(candidate) && resolvePath2(candidate, cwd) === filePath) {
42785
42902
  return true;
@@ -44917,6 +45034,7 @@ var BackgroundShellRegistry = class {
44917
45034
  entry.outputOffset = 0;
44918
45035
  entry.notified = false;
44919
45036
  entry.todoWorkChainId ??= todoWorkChainContext.getStore();
45037
+ entry.sourceTurnId = getInvocationContext()?.promptId ?? promptIdContext.getStore();
44920
45038
  this.entries.set(entry.shellId, entry);
44921
45039
  this.writeStatusFile(entry);
44922
45040
  this.fireRegister(entry);
@@ -45111,7 +45229,8 @@ var BackgroundShellRegistry = class {
45111
45229
  shellId: entry.shellId,
45112
45230
  status: entry.status,
45113
45231
  exitCode: entry.exitCode,
45114
- todoWorkChainId: entry.todoWorkChainId
45232
+ todoWorkChainId: entry.todoWorkChainId,
45233
+ sourceTurnId: entry.sourceTurnId
45115
45234
  };
45116
45235
  try {
45117
45236
  this.notificationCallback(displayText, xmlParts.join("\n"), meta4);
@@ -45323,13 +45442,35 @@ function hasShellVariableReference(value) {
45323
45442
  return value.includes("`") || /\$(?:[A-Za-z_][A-Za-z0-9_]*|\{|\(|\d|[#?@$!*])/u.test(value);
45324
45443
  }
45325
45444
  __name(hasShellVariableReference, "hasShellVariableReference");
45445
+ var SED_REGEX_FLAGS = "su";
45446
+ function hasBracketCharacterEscape(pattern) {
45447
+ let inClass = false;
45448
+ for (let i = 0; i < pattern.length; i++) {
45449
+ const char = pattern[i];
45450
+ if (inClass) {
45451
+ if (char === "]") {
45452
+ inClass = false;
45453
+ } else if (char === "\\" && /[ntrfvadoxc]/u.test(pattern[i + 1] ?? "")) {
45454
+ return true;
45455
+ }
45456
+ continue;
45457
+ }
45458
+ if (char === "\\") {
45459
+ i++;
45460
+ } else if (char === "[") {
45461
+ inClass = true;
45462
+ }
45463
+ }
45464
+ return false;
45465
+ }
45466
+ __name(hasBracketCharacterEscape, "hasBracketCharacterEscape");
45326
45467
  function canCompileSedPattern(sedInfo) {
45327
45468
  try {
45328
45469
  const jsPattern = toJavascriptPattern(sedInfo);
45329
- if (hasPosixBracketExpression(jsPattern) || hasLeadingBracketLiteral(jsPattern) || hasSedJavascriptDivergentEscape(jsPattern)) {
45470
+ if (hasPosixBracketExpression(jsPattern) || hasLeadingBracketLiteral(jsPattern) || hasSedJavascriptDivergentEscape(jsPattern) || hasBracketCharacterEscape(unescapeSedDelimiter(sedInfo.pattern))) {
45330
45471
  return false;
45331
45472
  }
45332
- new RegExp(jsPattern);
45473
+ new RegExp(jsPattern, SED_REGEX_FLAGS);
45333
45474
  if (hasReplacementBackrefBeyondCaptures(
45334
45475
  sedInfo.replacement,
45335
45476
  countCapturingGroups(jsPattern)
@@ -45351,7 +45492,7 @@ function hasLeadingBracketLiteral(pattern) {
45351
45492
  }
45352
45493
  __name(hasLeadingBracketLiteral, "hasLeadingBracketLiteral");
45353
45494
  function hasSedJavascriptDivergentEscape(pattern) {
45354
- return /\\[<>dDwWsS]/u.test(pattern);
45495
+ return /\\[<>dDwWsSpPu]/u.test(pattern);
45355
45496
  }
45356
45497
  __name(hasSedJavascriptDivergentEscape, "hasSedJavascriptDivergentEscape");
45357
45498
  function hasReplacementBackrefBeyondCaptures(replacement, captureCount) {
@@ -45572,7 +45713,7 @@ function applySedSubstitution(content, sedInfo) {
45572
45713
  const occurrence = getOccurrence(sedInfo.flags);
45573
45714
  const replaceAll = sedInfo.flags.includes("g");
45574
45715
  try {
45575
- const globalRegex = new RegExp(jsPattern, "g");
45716
+ const globalRegex = new RegExp(jsPattern, SED_REGEX_FLAGS + "g");
45576
45717
  const parts2 = content.split(/(\n)/);
45577
45718
  const processableParts = content.endsWith("\n") ? parts2.slice(0, -1) : parts2;
45578
45719
  return processableParts.map((part, index) => {
@@ -45592,7 +45733,24 @@ __name(applySedSubstitution, "applySedSubstitution");
45592
45733
  function toJavascriptPattern(sedInfo) {
45593
45734
  const pattern = unescapeSedDelimiter(sedInfo.pattern);
45594
45735
  if (sedInfo.extendedRegex) {
45595
- return pattern;
45736
+ let extended2 = "";
45737
+ let inClass = false;
45738
+ for (let i = 0; i < pattern.length; i++) {
45739
+ const char = pattern[i];
45740
+ if (inClass) {
45741
+ extended2 += char === "\\" ? "\\\\" : char;
45742
+ if (char === "]") inClass = false;
45743
+ continue;
45744
+ }
45745
+ if (char === "\\" && i + 1 < pattern.length) {
45746
+ extended2 += char + pattern[i + 1];
45747
+ i++;
45748
+ continue;
45749
+ }
45750
+ if (char === "[") inClass = true;
45751
+ extended2 += char;
45752
+ }
45753
+ return extended2;
45596
45754
  }
45597
45755
  let jsPattern = "";
45598
45756
  let inCharacterClass = false;
@@ -48705,30 +48863,6 @@ Generated with ${BRAND.displayName}`;
48705
48863
  return command;
48706
48864
  }
48707
48865
  };
48708
- function getExecutableBasename(executable) {
48709
- return path20.basename(path20.win32.basename(executable));
48710
- }
48711
- __name(getExecutableBasename, "getExecutableBasename");
48712
- function getShellDisplayName({
48713
- executable,
48714
- shell
48715
- }) {
48716
- switch (shell) {
48717
- case "cmd":
48718
- return "cmd.exe";
48719
- case "powershell": {
48720
- const basename24 = getExecutableBasename(executable).toLowerCase();
48721
- return basename24 === "pwsh.exe" ? "pwsh.exe" : "powershell.exe";
48722
- }
48723
- case "bash":
48724
- return "bash";
48725
- default: {
48726
- const _exhaustive = shell;
48727
- return _exhaustive;
48728
- }
48729
- }
48730
- }
48731
- __name(getShellDisplayName, "getShellDisplayName");
48732
48866
  function getShellExecutionWrapper(shellConfiguration = getShellConfiguration()) {
48733
48867
  const executable = getShellDisplayName(shellConfiguration);
48734
48868
  return `${executable} ${shellConfiguration.argsPrefix.join(" ")} <command>`;
@@ -77526,7 +77660,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
77526
77660
  const notices = [];
77527
77661
  let omniProcessed = responseParts;
77528
77662
  if (this.config.isOmniEnabled?.()) {
77529
- const { processToolResultOmniMedia } = await import("./tool-result-media-JRIQDJ2K.js");
77663
+ const { processToolResultOmniMedia } = await import("./tool-result-media-F3GNEFYA.js");
77530
77664
  omniProcessed = await processToolResultOmniMedia(
77531
77665
  responseParts,
77532
77666
  this.config,
@@ -79007,7 +79141,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
79007
79141
  this.finalizeToolSpan(reqInfo.callId);
79008
79142
  continue;
79009
79143
  }
79010
- if (!requiresUserInteraction && isAutoEditApproved(approvalMode, confirmationDetails)) {
79144
+ if (!requiresUserInteraction && !pmForcedAsk && isAutoEditApproved(approvalMode, confirmationDetails)) {
79011
79145
  this.setToolCallOutcome(
79012
79146
  reqInfo.callId,
79013
79147
  "proceed_always" /* ProceedAlways */
@@ -80699,7 +80833,7 @@ ${body}
80699
80833
  artifacts: toolResult.artifacts
80700
80834
  } : void 0;
80701
80835
  if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
80702
- const { collectModelPolicyCall } = await import("./model-call-collection-2NC5TJRS.js");
80836
+ const { collectModelPolicyCall } = await import("./model-call-collection-JGJ4TLCJ.js");
80703
80837
  await collectModelPolicyCall({
80704
80838
  config: this.config,
80705
80839
  batch: policyArtifacts,
@@ -81619,23 +81753,10 @@ var ContextState = class {
81619
81753
  };
81620
81754
  function templateString(template, context2) {
81621
81755
  const placeholderRegex = /\$\{([a-zA-Z_]\w*)\}/g;
81622
- const requiredKeys = new Set(
81623
- Array.from(template.matchAll(placeholderRegex), (match) => match[1])
81624
- );
81625
81756
  const contextKeys = new Set(context2.get_keys());
81626
- const missingKeys = Array.from(requiredKeys).filter(
81627
- (key) => !contextKeys.has(key)
81628
- );
81629
- if (missingKeys.length > 0) {
81630
- throw new Error(
81631
- `Missing context values for the following keys: ${missingKeys.join(
81632
- ", "
81633
- )}`
81634
- );
81635
- }
81636
81757
  return template.replace(
81637
81758
  placeholderRegex,
81638
- (_match, key) => String(context2.get(key))
81759
+ (match, key) => contextKeys.has(key) ? String(context2.get(key)) : match
81639
81760
  );
81640
81761
  }
81641
81762
  __name(templateString, "templateString");
@@ -81645,6 +81766,7 @@ var AgentHeadless = class _AgentHeadless {
81645
81766
  }
81646
81767
  core;
81647
81768
  finalText = "";
81769
+ lastError;
81648
81770
  terminateMode = "ERROR" /* ERROR */;
81649
81771
  // Which loop detector fired when terminateMode is LOOP_DETECTED.
81650
81772
  loopType = null;
@@ -81716,6 +81838,7 @@ var AgentHeadless = class _AgentHeadless {
81716
81838
  }
81717
81839
  this.executing = true;
81718
81840
  this.finalText = "";
81841
+ this.lastError = void 0;
81719
81842
  this.terminateMode = "ERROR" /* ERROR */;
81720
81843
  this.loopType = null;
81721
81844
  const resetStats = options2.resetStats !== false;
@@ -81827,6 +81950,7 @@ var AgentHeadless = class _AgentHeadless {
81827
81950
  } catch (error62) {
81828
81951
  debugLogger33.error("Error during subagent execution:", error62);
81829
81952
  this.terminateMode = "ERROR" /* ERROR */;
81953
+ this.lastError = (error62 instanceof Error ? error62.message : String(error62)).replace(/\s+/g, " ").trim().slice(0, 500);
81830
81954
  this.core.eventEmitter?.emit("error" /* ERROR */, {
81831
81955
  subagentId: this.core.subagentId,
81832
81956
  error: error62 instanceof Error ? error62.message : String(error62),
@@ -81904,6 +82028,9 @@ var AgentHeadless = class _AgentHeadless {
81904
82028
  getTerminateMode() {
81905
82029
  return this.terminateMode;
81906
82030
  }
82031
+ getLastError() {
82032
+ return this.lastError;
82033
+ }
81907
82034
  /**
81908
82035
  * Sets a callback that the reasoning loop calls between tool rounds
81909
82036
  * to drain external messages (e.g. from SendMessage tool).
@@ -82051,7 +82178,7 @@ var AgentCore = class {
82051
82178
  lastPromptTokenCount = 0;
82052
82179
  toolUsage = /* @__PURE__ */ new Map();
82053
82180
  constructor(name, runtimeContext, promptConfig, modelConfig, runConfig, toolConfig, eventEmitter, hooks, runtimeView, taskName, subagentId) {
82054
- this.subagentId = subagentId ?? `${name}-${randomUUID6().replace(/-/g, "").slice(0, 8)}`;
82181
+ this.subagentId = subagentId ?? `${name}-${randomUUID7().replace(/-/g, "").slice(0, 8)}`;
82055
82182
  this.name = name;
82056
82183
  this.taskName = taskName;
82057
82184
  this.runtimeContext = runtimeContext;
@@ -82423,7 +82550,7 @@ var AgentCore = class {
82423
82550
  }
82424
82551
  async _runReasoningLoopInner(chat, initialMessages, toolsList, abortController, options2) {
82425
82552
  const startTime = options2?.startTimeMs ?? Date.now();
82426
- const runId = randomUUID6();
82553
+ const runId = randomUUID7();
82427
82554
  let currentMessages = initialMessages;
82428
82555
  let turnCounter = 0;
82429
82556
  let finalText = "";
@@ -83033,7 +83160,7 @@ ${text}` : text;
83033
83160
  }
83034
83161
  const responseByCallId = /* @__PURE__ */ new Map();
83035
83162
  const uniqueFunctionCalls = dedupeToolCallsById(functionCalls2);
83036
- const generatedCallIdBase = randomUUID6();
83163
+ const generatedCallIdBase = randomUUID7();
83037
83164
  const callIdByFunctionCall = new Map(
83038
83165
  uniqueFunctionCalls.map((functionCall, index) => [
83039
83166
  functionCall,
@@ -84767,6 +84894,17 @@ function stripAnalysisOutsideSummary(text) {
84767
84894
  }
84768
84895
  }
84769
84896
  __name(stripAnalysisOutsideSummary, "stripAnalysisOutsideSummary");
84897
+ var TERMINAL_REASON_HINTS = {
84898
+ ["TIMEOUT" /* TIMEOUT */]: "It ran out of its time limit.",
84899
+ ["MAX_TURNS" /* MAX_TURNS */]: "It reached its turn limit.",
84900
+ ["LOOP_DETECTED" /* LOOP_DETECTED */]: "It was stopped for repeating itself.",
84901
+ ["SHUTDOWN" /* SHUTDOWN */]: "Its session was shut down."
84902
+ };
84903
+ function subagentTerminalReason(terminateMode, lastError) {
84904
+ const detail = lastError ? ` Error: ${lastError}` : TERMINAL_REASON_HINTS[terminateMode] ? ` ${TERMINAL_REASON_HINTS[terminateMode]}` : "";
84905
+ return `Subagent did not complete (terminate mode: ${terminateMode}).${detail}`;
84906
+ }
84907
+ __name(subagentTerminalReason, "subagentTerminalReason");
84770
84908
  function toModelVisibleSubagentResult(text, terminateMode = "GOAL" /* GOAL */) {
84771
84909
  if (terminateMode !== "GOAL" /* GOAL */) {
84772
84910
  return text;
@@ -84779,7 +84917,7 @@ __name(toModelVisibleSubagentResult, "toModelVisibleSubagentResult");
84779
84917
  init_esbuild_shims();
84780
84918
  import * as fs24 from "node:fs";
84781
84919
  import * as path25 from "node:path";
84782
- import { randomUUID as randomUUID7 } from "node:crypto";
84920
+ import { randomUUID as randomUUID8 } from "node:crypto";
84783
84921
  var debugLogger35 = createDebugLogger("AGENT_TRANSCRIPT");
84784
84922
  var MAX_PENDING_STREAM_BYTES = 64 * 1024;
84785
84923
  var MAX_PERSISTED_RECENT_ACTIVITIES = 10;
@@ -84919,7 +85057,7 @@ function normalizeResumedAgentDepth(value) {
84919
85057
  }
84920
85058
  __name(normalizeResumedAgentDepth, "normalizeResumedAgentDepth");
84921
85059
  function writeAgentMeta(metaPath, meta4) {
84922
- const tempPath = `${metaPath}.${process.pid}.${randomUUID7()}.tmp`;
85060
+ const tempPath = `${metaPath}.${process.pid}.${randomUUID8()}.tmp`;
84923
85061
  try {
84924
85062
  fs24.mkdirSync(path25.dirname(metaPath), { recursive: true });
84925
85063
  fs24.writeFileSync(tempPath, JSON.stringify(meta4, null, 2), "utf8");
@@ -85057,7 +85195,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
85057
85195
  let fd = null;
85058
85196
  let streamFd = null;
85059
85197
  const streamPath = `${jsonlPath}.stream`;
85060
- const streamRunId = randomUUID7();
85198
+ const streamRunId = randomUUID8();
85061
85199
  let pendingStreamText = "";
85062
85200
  let pendingStreamBytes = 0;
85063
85201
  let streamFlushTimer = null;
@@ -85084,7 +85222,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
85084
85222
  }
85085
85223
  }, "ensureOpen");
85086
85224
  const baseFields = /* @__PURE__ */ __name((type) => ({
85087
- uuid: randomUUID7(),
85225
+ uuid: randomUUID8(),
85088
85226
  parentUuid: lastUuid,
85089
85227
  sessionId: options2.sessionId,
85090
85228
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -87291,7 +87429,7 @@ var AgentToolInvocation = class extends BaseToolInvocation {
87291
87429
  { externalExecutor: subagentConfig.executor !== void 0 }
87292
87430
  );
87293
87431
  restoreParentPM = cleanup;
87294
- const agentIdSuffix = this.callId ?? randomUUID8().slice(0, 8);
87432
+ const agentIdSuffix = this.callId ?? randomUUID9().slice(0, 8);
87295
87433
  const launchDepth = childLaunchDepth();
87296
87434
  const hookOpts = {
87297
87435
  agentId: `${subagentConfig.name}-${agentIdSuffix}`,
@@ -88182,8 +88320,14 @@ output_file: ${jsonlPath} (for review after the completion notification, not for
88182
88320
  );
88183
88321
  const wtSuffix = await cleanupAfterExecution() + (subagentConfig.executor !== void 0 ? EXTERNAL_USAGE_NOTICE : "");
88184
88322
  if (terminateMode === "ERROR" /* ERROR */) {
88323
+ const reason = subagentTerminalReason(
88324
+ terminateMode,
88325
+ subagent.getLastError?.()
88326
+ );
88185
88327
  return {
88186
- llmContent: (finalText || "Subagent execution failed.") + wtSuffix,
88328
+ llmContent: (finalText ? `${reason} Partial result follows:
88329
+
88330
+ ${finalText}` : reason) + wtSuffix,
88187
88331
  returnDisplay: this.currentDisplay
88188
88332
  };
88189
88333
  }
@@ -88194,6 +88338,20 @@ output_file: ${jsonlPath} (for review after the completion notification, not for
88194
88338
  {
88195
88339
  text: `Agent was cancelled by the user. Partial result follows:
88196
88340
 
88341
+ ${partial2}${wtSuffix}`
88342
+ }
88343
+ ],
88344
+ returnDisplay: this.currentDisplay
88345
+ };
88346
+ }
88347
+ if (terminateMode !== "GOAL" /* GOAL */) {
88348
+ const reason = subagentTerminalReason(terminateMode);
88349
+ const partial2 = finalText || "(no partial result captured)";
88350
+ return {
88351
+ llmContent: [
88352
+ {
88353
+ text: `${reason} Partial result follows:
88354
+
88197
88355
  ${partial2}${wtSuffix}`
88198
88356
  }
88199
88357
  ],
@@ -95272,7 +95430,7 @@ function runWithIsolatedFork(config2, runtime, fn) {
95272
95430
  const run = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(runtime, fn), "run");
95273
95431
  return reachesOrganizaOne(
95274
95432
  runtime.runtimeView?.contentGeneratorConfig ?? config2.getContentGeneratorConfig?.()
95275
- ) ? runWithAgentContext(`fork-${randomUUID9()}`, run) : run();
95433
+ ) ? runWithAgentContext(`fork-${randomUUID10()}`, run) : run();
95276
95434
  }
95277
95435
  __name(runWithIsolatedFork, "runWithIsolatedFork");
95278
95436
  function extractQueryUsage(metadata) {
@@ -95392,7 +95550,7 @@ async function runForkedAgent(params) {
95392
95550
  const isGateway = reachesOrganizaOne(
95393
95551
  modelRuntime.runtimeView?.contentGeneratorConfig ?? params.config.getContentGeneratorConfig?.()
95394
95552
  );
95395
- const invocationId = isGateway ? `${params.name}-${randomUUID9()}` : void 0;
95553
+ const invocationId = isGateway ? `${params.name}-${randomUUID10()}` : void 0;
95396
95554
  const promptConfig = {
95397
95555
  systemPrompt: params.systemPrompt,
95398
95556
  initialMessages: isGateway && sourceMessages ? gatewayIndependentInput(sourceMessages) : sourceMessages
@@ -98734,7 +98892,7 @@ var WRITE_TOOL_NAMES2 = /* @__PURE__ */ new Set([
98734
98892
  function makeTaskRecord(type, projectRoot, sessionId) {
98735
98893
  const now = (/* @__PURE__ */ new Date()).toISOString();
98736
98894
  return {
98737
- id: randomUUID10(),
98895
+ id: randomUUID11(),
98738
98896
  taskType: type,
98739
98897
  projectRoot,
98740
98898
  sessionId,
@@ -99844,7 +100002,7 @@ import fsPromises2 from "node:fs/promises";
99844
100002
 
99845
100003
  // packages/core/src/core/message-display-dispatcher.ts
99846
100004
  init_esbuild_shims();
99847
- import { randomUUID as randomUUID11 } from "node:crypto";
100005
+ import { randomUUID as randomUUID12 } from "node:crypto";
99848
100006
 
99849
100007
  // packages/core/src/core/message-display-buffer.ts
99850
100008
  init_esbuild_shims();
@@ -99892,7 +100050,7 @@ var MessageDisplayDispatcher = class {
99892
100050
  static {
99893
100051
  __name(this, "MessageDisplayDispatcher");
99894
100052
  }
99895
- messageId = randomUUID11();
100053
+ messageId = randomUUID12();
99896
100054
  state;
99897
100055
  /** Newest undelivered mid-stream text, coalesced behind {@link inFlight}. */
99898
100056
  pending = null;
@@ -101014,12 +101172,14 @@ var LlmClient = class _LlmClient {
101014
101172
  }
101015
101173
  this.cachedGitStatus = void 0;
101016
101174
  await this.refreshSystemInstruction();
101175
+ const gitStatus = this.getCachedGitStatus();
101017
101176
  this.getChat().addHistory({
101018
101177
  role: "user",
101019
101178
  parts: [
101020
101179
  {
101021
101180
  text: `The session's working directory has changed from ${oldDir} to ${newDir} via /cd. The startup directory context above is stale. All tool calls and relative paths now resolve from ${newDir}.`
101022
- }
101181
+ },
101182
+ ...gitStatus ? [{ text: wrapSystemReminder(gitStatus) }] : []
101023
101183
  ]
101024
101184
  });
101025
101185
  await this.addDirectoryContext();
@@ -101048,7 +101208,6 @@ var LlmClient = class _LlmClient {
101048
101208
  this.config.setStaticSystemPrefix(assembleSystemPrompt(stableLayers));
101049
101209
  return assembleSystemPrompt({
101050
101210
  ...stableLayers,
101051
- gitStatus: this.getCachedGitStatus(),
101052
101211
  autoMemory: this.config.getAutoMemoryPrompt()
101053
101212
  });
101054
101213
  }
@@ -101063,7 +101222,9 @@ var LlmClient = class _LlmClient {
101063
101222
  }
101064
101223
  const remaining = currentHistory.slice(startupLength);
101065
101224
  const [[startupContext], snapshotEntries] = await getInitialChatHistory(
101066
- this.config
101225
+ this.config,
101226
+ void 0,
101227
+ { gitStatus: this.getCachedGitStatus() }
101067
101228
  );
101068
101229
  this.seedSkillReminderDedupFromSnapshot(snapshotEntries);
101069
101230
  await this.seedAgentReminderDedupFromCurrent();
@@ -101096,7 +101257,9 @@ var LlmClient = class _LlmClient {
101096
101257
  return;
101097
101258
  }
101098
101259
  const [[startupContext], snapshotEntries] = await getInitialChatHistory(
101099
- this.config
101260
+ this.config,
101261
+ void 0,
101262
+ { gitStatus: this.getCachedGitStatus() }
101100
101263
  );
101101
101264
  this.seedSkillReminderDedupFromSnapshot(snapshotEntries);
101102
101265
  await this.seedAgentReminderDedupFromCurrent();
@@ -101604,7 +101767,9 @@ var LlmClient = class _LlmClient {
101604
101767
  deferredReminderCount = deferredTools?.length ?? 0;
101605
101768
  [history, snapshotEntries] = await profiler.time(
101606
101769
  "initial_chat_history",
101607
- () => getInitialChatHistory(this.config, extraHistory)
101770
+ () => getInitialChatHistory(this.config, extraHistory, {
101771
+ gitStatus: this.getCachedGitStatus()
101772
+ })
101608
101773
  );
101609
101774
  profiler.timeSync("skill_reminder_seed", () => {
101610
101775
  this.seedSkillReminderDedupFromSnapshot(snapshotEntries);
@@ -111413,9 +111578,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111413
111578
  const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
111414
111579
  return `${varKind} ${this.name}${rhs};` + _n2;
111415
111580
  }
111416
- optimizeNames(names, constants3) {
111581
+ optimizeNames(names, constants4) {
111417
111582
  if (!names[this.name.str]) return;
111418
- if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants3);
111583
+ if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants4);
111419
111584
  return this;
111420
111585
  }
111421
111586
  get names() {
@@ -111435,9 +111600,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111435
111600
  render({ _n: _n2 }) {
111436
111601
  return `${this.lhs} = ${this.rhs};` + _n2;
111437
111602
  }
111438
- optimizeNames(names, constants3) {
111603
+ optimizeNames(names, constants4) {
111439
111604
  if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) return;
111440
- this.rhs = optimizeExpr(this.rhs, names, constants3);
111605
+ this.rhs = optimizeExpr(this.rhs, names, constants4);
111441
111606
  return this;
111442
111607
  }
111443
111608
  get names() {
@@ -111511,8 +111676,8 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111511
111676
  optimizeNodes() {
111512
111677
  return `${this.code}` ? this : void 0;
111513
111678
  }
111514
- optimizeNames(names, constants3) {
111515
- this.code = optimizeExpr(this.code, names, constants3);
111679
+ optimizeNames(names, constants4) {
111680
+ this.code = optimizeExpr(this.code, names, constants4);
111516
111681
  return this;
111517
111682
  }
111518
111683
  get names() {
@@ -111541,12 +111706,12 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111541
111706
  }
111542
111707
  return nodes.length > 0 ? this : void 0;
111543
111708
  }
111544
- optimizeNames(names, constants3) {
111709
+ optimizeNames(names, constants4) {
111545
111710
  const { nodes } = this;
111546
111711
  let i = nodes.length;
111547
111712
  while (i--) {
111548
111713
  const n = nodes[i];
111549
- if (n.optimizeNames(names, constants3)) continue;
111714
+ if (n.optimizeNames(names, constants4)) continue;
111550
111715
  subtractNames(names, n.names);
111551
111716
  nodes.splice(i, 1);
111552
111717
  }
@@ -111605,11 +111770,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111605
111770
  if (cond === false || !this.nodes.length) return void 0;
111606
111771
  return this;
111607
111772
  }
111608
- optimizeNames(names, constants3) {
111773
+ optimizeNames(names, constants4) {
111609
111774
  var _a3;
111610
- this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names, constants3);
111611
- if (!(super.optimizeNames(names, constants3) || this.else)) return;
111612
- this.condition = optimizeExpr(this.condition, names, constants3);
111775
+ this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names, constants4);
111776
+ if (!(super.optimizeNames(names, constants4) || this.else)) return;
111777
+ this.condition = optimizeExpr(this.condition, names, constants4);
111613
111778
  return this;
111614
111779
  }
111615
111780
  get names() {
@@ -111637,9 +111802,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111637
111802
  render(opts) {
111638
111803
  return `for(${this.iteration})` + super.render(opts);
111639
111804
  }
111640
- optimizeNames(names, constants3) {
111641
- if (!super.optimizeNames(names, constants3)) return;
111642
- this.iteration = optimizeExpr(this.iteration, names, constants3);
111805
+ optimizeNames(names, constants4) {
111806
+ if (!super.optimizeNames(names, constants4)) return;
111807
+ this.iteration = optimizeExpr(this.iteration, names, constants4);
111643
111808
  return this;
111644
111809
  }
111645
111810
  get names() {
@@ -111680,9 +111845,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111680
111845
  render(opts) {
111681
111846
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
111682
111847
  }
111683
- optimizeNames(names, constants3) {
111684
- if (!super.optimizeNames(names, constants3)) return;
111685
- this.iterable = optimizeExpr(this.iterable, names, constants3);
111848
+ optimizeNames(names, constants4) {
111849
+ if (!super.optimizeNames(names, constants4)) return;
111850
+ this.iterable = optimizeExpr(this.iterable, names, constants4);
111686
111851
  return this;
111687
111852
  }
111688
111853
  get names() {
@@ -111730,11 +111895,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111730
111895
  (_b = this.finally) === null || _b === void 0 || _b.optimizeNodes();
111731
111896
  return this;
111732
111897
  }
111733
- optimizeNames(names, constants3) {
111898
+ optimizeNames(names, constants4) {
111734
111899
  var _a3, _b;
111735
- super.optimizeNames(names, constants3);
111736
- (_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names, constants3);
111737
- (_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names, constants3);
111900
+ super.optimizeNames(names, constants4);
111901
+ (_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names, constants4);
111902
+ (_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names, constants4);
111738
111903
  return this;
111739
111904
  }
111740
111905
  get names() {
@@ -111994,7 +112159,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111994
112159
  return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
111995
112160
  }
111996
112161
  __name(addExprNames, "addExprNames");
111997
- function optimizeExpr(expr, names, constants3) {
112162
+ function optimizeExpr(expr, names, constants4) {
111998
112163
  if (expr instanceof code_1.Name) return replaceName(expr);
111999
112164
  if (!canOptimize(expr)) return expr;
112000
112165
  return new code_1._Code(expr._items.reduce((items, c) => {
@@ -112004,14 +112169,14 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
112004
112169
  return items;
112005
112170
  }, []));
112006
112171
  function replaceName(n) {
112007
- const c = constants3[n.str];
112172
+ const c = constants4[n.str];
112008
112173
  if (c === void 0 || names[n.str] !== 1) return n;
112009
112174
  delete names[n.str];
112010
112175
  return c;
112011
112176
  }
112012
112177
  __name(replaceName, "replaceName");
112013
112178
  function canOptimize(e) {
112014
- return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants3[c.str] !== void 0);
112179
+ return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants4[c.str] !== void 0);
112015
112180
  }
112016
112181
  __name(canOptimize, "canOptimize");
112017
112182
  }
@@ -126226,19 +126391,51 @@ function applyListingAppResourceUi(tools, resources) {
126226
126391
  });
126227
126392
  }
126228
126393
  __name(applyListingAppResourceUi, "applyListingAppResourceUi");
126394
+ var MCP_MAX_TOOL_LIST_PAGES = 100;
126229
126395
  async function discoverToolsWithMetadata(mcpServerName, mcpServerConfig, mcpClient, cliConfig, opts) {
126230
126396
  try {
126231
126397
  const { mcpToTool } = await import("./node-5A2VFKYD.js");
126232
126398
  const listedTools = [];
126233
126399
  let didListTools = false;
126234
- const listTools = /* @__PURE__ */ __name(async (params) => {
126235
- const result = typeof mcpClient.getProtocolEra !== "function" || canUseModernTypedHelper(mcpClient, "tools") ? await mcpClient.listTools(params) : await mcpClient.request(
126400
+ let hadDuplicateToolNames = false;
126401
+ const listToolsPage = /* @__PURE__ */ __name(async (params) => (
126402
+ // Clients without getProtocolEra (tests and the genai adapter) keep
126403
+ // the typed helper. Modern sessions use it only when `tools` is
126404
+ // declared; otherwise the v2 helper returns [] without a wire request.
126405
+ typeof mcpClient.getProtocolEra !== "function" || canUseModernTypedHelper(mcpClient, "tools") ? await mcpClient.listTools(params) : await mcpClient.request(
126236
126406
  { method: "tools/list", params: params ?? {} },
126237
126407
  ListToolsResultSchema2
126238
- );
126408
+ )
126409
+ ), "listToolsPage");
126410
+ const listTools = /* @__PURE__ */ __name(async (params) => {
126411
+ const allTools = [];
126412
+ const seenCursors = /* @__PURE__ */ new Set();
126413
+ let cursor = params?.cursor;
126414
+ let result = await listToolsPage(cursor ? { cursor } : void 0);
126415
+ allTools.push(...result.tools);
126416
+ while (result.nextCursor && !seenCursors.has(result.nextCursor) && seenCursors.size < MCP_MAX_TOOL_LIST_PAGES) {
126417
+ cursor = result.nextCursor;
126418
+ seenCursors.add(cursor);
126419
+ result = await listToolsPage({ cursor });
126420
+ allTools.push(...result.tools);
126421
+ }
126422
+ const nameCounts = /* @__PURE__ */ new Map();
126423
+ for (const listed of allTools) {
126424
+ nameCounts.set(listed.name, (nameCounts.get(listed.name) ?? 0) + 1);
126425
+ }
126426
+ const duplicated = [...nameCounts].filter(([, count]) => count > 1).map(([name]) => name);
126427
+ if (duplicated.length > 0) {
126428
+ hadDuplicateToolNames = true;
126429
+ debugLogger72.warn(
126430
+ `MCP server '${mcpServerName}' lists these tool names more than once; they are not offered: ${duplicated.join(", ")}`
126431
+ );
126432
+ }
126239
126433
  didListTools = true;
126240
- listedTools.push(...result.tools);
126241
- return result;
126434
+ listedTools.length = 0;
126435
+ listedTools.push(
126436
+ ...allTools.filter((listed) => nameCounts.get(listed.name) === 1)
126437
+ );
126438
+ return { ...result, tools: [...listedTools], nextCursor: void 0 };
126242
126439
  }, "listTools");
126243
126440
  const discoveryClient = { listTools };
126244
126441
  const mcpCallableTool = mcpToTool(discoveryClient, {
@@ -126270,7 +126467,7 @@ async function discoverToolsWithMetadata(mcpServerName, mcpServerConfig, mcpClie
126270
126467
  const mcpTimeout = mcpServerConfig.timeout ?? MCP_DEFAULT_TIMEOUT_MSEC;
126271
126468
  const applyConfigFilters = opts?.applyConfigFilters ?? true;
126272
126469
  const discoveredTools = [];
126273
- let hadVisibilityFilteredTools = false;
126470
+ let hadVisibilityFilteredTools = hadDuplicateToolNames;
126274
126471
  for (const funcDecl of tool.functionDeclarations) {
126275
126472
  try {
126276
126473
  if (!funcDecl.name) {
@@ -133983,14 +134180,15 @@ var PermissionManager = class _PermissionManager {
133983
134180
  /**
133984
134181
  * The session allow rules in force right now: every rule the user granted,
133985
134182
  * plus the repository-granted (`trustGated`) ones only while the folder is
133986
- * trusted. Trust is re-read on every call — `Config.isTrustedFolder()` is
134183
+ * explicitly trusted. Trust is re-read on every call —
134184
+ * `Config.isExplicitlyTrustedFolder()` is
133987
134185
  * live under an IDE connection — so a revocation mid-session suspends a
133988
134186
  * project skill's grants at the next decision, and a later grant of trust
133989
134187
  * restores them, the second side of the gate `applySideEffects` enforces
133990
134188
  * on the way in.
133991
134189
  */
133992
134190
  activeSessionAllowRules() {
133993
- const trusted = this.config.isTrustedFolder?.() ?? true;
134191
+ const trusted = this.config.isExplicitlyTrustedFolder?.() ?? false;
133994
134192
  return trusted ? this.sessionRules.allow : this.sessionRules.allow.filter((rule) => !rule.trustGated);
133995
134193
  }
133996
134194
  /**
@@ -134263,7 +134461,7 @@ var import_yaml3 = __toESM(require_dist2(), 1);
134263
134461
  import * as fs46 from "fs/promises";
134264
134462
  import * as path48 from "path";
134265
134463
  import * as os10 from "os";
134266
- import { randomUUID as randomUUID12 } from "crypto";
134464
+ import { randomUUID as randomUUID13 } from "crypto";
134267
134465
 
134268
134466
  // packages/core/src/subagents/validation.ts
134269
134467
  init_esbuild_shims();
@@ -135430,13 +135628,13 @@ ${config2.systemPrompt}
135430
135628
  );
135431
135629
  const { context: subagentContext, cleanup } = await this.buildSubagentContextOverride(runtimeContext, config2);
135432
135630
  disposeSubagentRegistry = cleanup;
135433
- const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID12().replace(/-/g, "").slice(0, 8)}`;
135631
+ const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID13().replace(/-/g, "").slice(0, 8)}`;
135434
135632
  const hookSystem = runtimeContext.getHookSystem();
135435
135633
  const hookRegistry = hookSystem?.getRegistry();
135436
135634
  if (config2.hooks && Object.keys(config2.hooks).length > 0) {
135437
- if (config2.level === "project" && !runtimeContext.isTrustedFolder()) {
135635
+ if (config2.level === "project" && !runtimeContext.isExplicitlyTrustedFolder()) {
135438
135636
  debugLogger82.warn(
135439
- `Subagent "${config2.name}" is a project agent in an untrusted folder; ignoring its hooks.`
135637
+ `Subagent "${config2.name}" requires explicit folder trust; ignoring its hooks. ${EXPLICIT_TRUST_HINT}`
135440
135638
  );
135441
135639
  } else if (hookRegistry) {
135442
135640
  unregisterAgentHooks = hookRegistry.addAgentHooks(
@@ -136216,6 +136414,7 @@ var MonitorRegistry = class {
136216
136414
  entry.outputOffset = 0;
136217
136415
  entry.notified = false;
136218
136416
  entry.todoWorkChainId ??= todoWorkChainContext.getStore();
136417
+ entry.sourceTurnId = getInvocationContext()?.promptId ?? promptIdContext.getStore();
136219
136418
  this.monitors.set(entry.monitorId, entry);
136220
136419
  debugLogger83.info(`Registered monitor: ${entry.monitorId}`);
136221
136420
  this.resetIdleTimer(entry);
@@ -136478,7 +136677,8 @@ var MonitorRegistry = class {
136478
136677
  eventCount: entry.eventCount,
136479
136678
  toolUseId: entry.toolUseId,
136480
136679
  ownerAgentId: entry.ownerAgentId,
136481
- todoWorkChainId: entry.todoWorkChainId
136680
+ todoWorkChainId: entry.todoWorkChainId,
136681
+ sourceTurnId: entry.sourceTurnId
136482
136682
  };
136483
136683
  this.dispatchNotification(entry, displayLine, xmlParts.join("\n"), meta4);
136484
136684
  }
@@ -136516,7 +136716,8 @@ var MonitorRegistry = class {
136516
136716
  eventCount: entry.eventCount,
136517
136717
  toolUseId: entry.toolUseId,
136518
136718
  ownerAgentId: entry.ownerAgentId,
136519
- todoWorkChainId: entry.todoWorkChainId
136719
+ todoWorkChainId: entry.todoWorkChainId,
136720
+ sourceTurnId: entry.sourceTurnId
136520
136721
  };
136521
136722
  this.dispatchNotification(entry, displayLine, xmlParts.join("\n"), meta4);
136522
136723
  }
@@ -137303,7 +137504,8 @@ var WorkflowRunRegistry = class {
137303
137504
  const meta4 = {
137304
137505
  runId: entry.runId,
137305
137506
  status: entry.status,
137306
- todoWorkChainId: entry.todoWorkChainId
137507
+ todoWorkChainId: entry.todoWorkChainId,
137508
+ sourceTurnId: entry.sourceTurnId
137307
137509
  };
137308
137510
  try {
137309
137511
  runOutsideAgentContext(
@@ -137405,6 +137607,7 @@ var WorkflowRunRegistry = class {
137405
137607
  entry.notified = false;
137406
137608
  entry.isBackgrounded = registration.isBackgrounded ?? false;
137407
137609
  entry.todoWorkChainId ??= todoWorkChainContext.getStore();
137610
+ entry.sourceTurnId = getInvocationContext()?.promptId ?? promptIdContext.getStore();
137408
137611
  entry.currentPhase = null;
137409
137612
  entry.phases = [];
137410
137613
  entry.phaseVisits = [];
@@ -142736,7 +142939,7 @@ var import_toml = __toESM(require_toml(), 1);
142736
142939
  function convertTomlToMarkdown(tomlContent) {
142737
142940
  let parsed;
142738
142941
  try {
142739
- parsed = import_toml.default.parse(tomlContent);
142942
+ parsed = import_toml.default.parse(tomlContent.replace(/^\uFEFF/, ""));
142740
142943
  } catch (error62) {
142741
142944
  throw new Error(
142742
142945
  `Failed to parse TOML: ${error62 instanceof Error ? error62.message : String(error62)}`
@@ -144576,7 +144779,7 @@ __name(extractZipArchive, "extractZipArchive");
144576
144779
  init_esbuild_shims();
144577
144780
  import * as fs61 from "node:fs/promises";
144578
144781
  import * as path63 from "node:path";
144579
- import { randomUUID as randomUUID13 } from "node:crypto";
144782
+ import { randomUUID as randomUUID14 } from "node:crypto";
144580
144783
  var EXTENSION_GIT_CREDENTIAL_SELECTOR_FILENAME = ".o1-code-extension-git-credentials.json";
144581
144784
  var GIT_CREDENTIAL_SERVICE_NAME = "O1-Code Extension Git Credentials";
144582
144785
  var GIT_CREDENTIAL_KEY_PREFIX = "$o1-code:extension-git:v1:";
@@ -144654,7 +144857,7 @@ async function writeGitCredentialSelector(extensionDir, selector) {
144654
144857
  __name(writeGitCredentialSelector, "writeGitCredentialSelector");
144655
144858
  async function prepareStoredGitCredential(extensionDir, credential) {
144656
144859
  const storage = new HybridTokenStorage(GIT_CREDENTIAL_SERVICE_NAME);
144657
- const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID13()}`;
144860
+ const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID14()}`;
144658
144861
  await storage.setSecret(secretKey, JSON.stringify(credential));
144659
144862
  const selector = {
144660
144863
  version: 1,
@@ -144779,6 +144982,7 @@ function createExtensionGitClient(simpleGit, {
144779
144982
  allowEnvironment: [
144780
144983
  "GIT_CONFIG_NOSYSTEM",
144781
144984
  "GIT_CONFIG_GLOBAL",
144985
+ "GIT_TERMINAL_PROMPT",
144782
144986
  ...authentication ? ["GIT_CONFIG_COUNT", "GIT_CONFIG_KEY_0", "GIT_CONFIG_VALUE_0"] : []
144783
144987
  ]
144784
144988
  } : {}
@@ -144790,7 +144994,10 @@ function createExtensionGitClient(simpleGit, {
144790
144994
  // Windows special-cases the POSIX spelling in its compat layer, while
144791
144995
  // os.devNull's win32 value ('\\\\.\\nul') is rejected as
144792
144996
  // "fatal: unable to access '\\.\nul': Invalid argument".
144793
- GIT_CONFIG_GLOBAL: "/dev/null"
144997
+ GIT_CONFIG_GLOBAL: "/dev/null",
144998
+ // The global config is gone, and the credential helper with it: a source
144999
+ // that needs credentials must fail, not wait on a prompt nobody sees.
145000
+ GIT_TERMINAL_PROMPT: "0"
144794
145001
  };
144795
145002
  for (const key of [
144796
145003
  "PATH",
@@ -146825,7 +147032,7 @@ init_esbuild_shims();
146825
147032
  var dotenv = __toESM(require_main(), 1);
146826
147033
  import * as fs67 from "node:fs/promises";
146827
147034
  import * as fsSync3 from "node:fs";
146828
- import { randomUUID as randomUUID15 } from "node:crypto";
147035
+ import { randomUUID as randomUUID16 } from "node:crypto";
146829
147036
  import * as path68 from "node:path";
146830
147037
  var import_prompts7 = __toESM(require_prompts3(), 1);
146831
147038
  var debugLogger98 = createDebugLogger("EXT_SETTINGS");
@@ -146974,7 +147181,7 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
146974
147181
  const envContent = formatEnvContent(nonSensitiveSettings);
146975
147182
  await atomicWriteFile(envFilePath, envContent, { noFollow: true });
146976
147183
  if (Object.keys(sensitiveSettings).length > 0) {
146977
- const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID15()}`;
147184
+ const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID16()}`;
146978
147185
  await keychain.setSecret(bundleKey, JSON.stringify(sensitiveSettings));
146979
147186
  newSelector = {
146980
147187
  version: 1,
@@ -153574,7 +153781,7 @@ var HookRegistry = class {
153574
153781
  // packages/core/src/hooks/hookRunner.ts
153575
153782
  init_esbuild_shims();
153576
153783
  import { execFile as execFile8, spawn as spawn6 } from "node:child_process";
153577
- import { randomUUID as randomUUID17 } from "node:crypto";
153784
+ import { randomUUID as randomUUID18 } from "node:crypto";
153578
153785
  import { rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";
153579
153786
  import { platform as platform3, tmpdir as tmpdir4 } from "node:os";
153580
153787
  import { join as join54 } from "node:path";
@@ -155566,7 +155773,7 @@ __name(terminateSurvivingHookProcessGroup, "terminateSurvivingHookProcessGroup")
155566
155773
  function createSurvivingHookInputFile(input2) {
155567
155774
  const path80 = join54(
155568
155775
  tmpdir4(),
155569
- `o1-code-hook-input-${process.pid}-${randomUUID17()}.json`
155776
+ `o1-code-hook-input-${process.pid}-${randomUUID18()}.json`
155570
155777
  );
155571
155778
  writeFileSync8(path80, JSON.stringify(input2), {
155572
155779
  encoding: "utf8",
@@ -157696,7 +157903,7 @@ var HookEventHandler = class {
157696
157903
  const sessionHooks = registeredSessionHooks.some(
157697
157904
  (entry) => entry.trustGated === true
157698
157905
  ) ? registeredSessionHooks.filter(
157699
- (entry) => !entry.trustGated || this.config.isTrustedFolder()
157906
+ (entry) => !entry.trustGated || this.config.isExplicitlyTrustedFolder()
157700
157907
  ) : registeredSessionHooks;
157701
157908
  if (sessionHooks.length !== registeredSessionHooks.length) {
157702
157909
  debugLogger115.debug(
@@ -158934,7 +159141,9 @@ function buildHooksListing(config2) {
158934
159141
  hookId: entry.hookId,
158935
159142
  skillRoot: entry.skillRoot
158936
159143
  },
158937
- gates
159144
+ // A repository's own hook fires only under explicit trust, so the
159145
+ // listing must not show it as enabled on the weaker answer.
159146
+ entry.trustGated ? { ...gates, trustedFolder: config2.isExplicitlyTrustedFolder() } : gates
158938
159147
  )
158939
159148
  );
158940
159149
  }
@@ -158988,7 +159197,7 @@ var HOOK_EVENT_DISPLAY = Object.freeze({
158988
159197
 
158989
159198
  // packages/core/src/confirmation-bus/message-bus.ts
158990
159199
  init_esbuild_shims();
158991
- import { randomUUID as randomUUID18 } from "node:crypto";
159200
+ import { randomUUID as randomUUID19 } from "node:crypto";
158992
159201
  import { EventEmitter as EventEmitter6 } from "node:events";
158993
159202
  var debugLogger118 = createDebugLogger("TRUSTED_HOOKS");
158994
159203
  var MessageBus = class extends EventEmitter6 {
@@ -159049,7 +159258,7 @@ var MessageBus = class extends EventEmitter6 {
159049
159258
  * The correlation ID is generated internally and added to the request
159050
159259
  */
159051
159260
  async request(request, responseType, timeoutMs = 6e4, signal) {
159052
- const correlationId = randomUUID18();
159261
+ const correlationId = randomUUID19();
159053
159262
  return new Promise((resolve34, reject) => {
159054
159263
  if (signal?.aborted) {
159055
159264
  reject(new Error("Request aborted"));
@@ -159181,7 +159390,7 @@ function isSdkMcpServerConfig(config2) {
159181
159390
  __name(isSdkMcpServerConfig, "isSdkMcpServerConfig");
159182
159391
 
159183
159392
  // packages/core/src/config/config.ts
159184
- import { createHash as createHash12, randomUUID as randomUUID19 } from "node:crypto";
159393
+ import { createHash as createHash12, randomUUID as randomUUID20 } from "node:crypto";
159185
159394
 
159186
159395
  // packages/core/src/memory/memoryDiscovery.ts
159187
159396
  init_esbuild_shims();
@@ -161964,7 +162173,7 @@ async function getMemoryFilePathsInternalForEachDir(dir, userHomePath, fileServi
161964
162173
  logger4.debug(`Determined project root: ${projectRoot ?? "None"}`);
161965
162174
  const upwardPaths = [];
161966
162175
  let currentDir = resolvedCwd;
161967
- const ultimateStopDir = projectRoot ? path76.dirname(projectRoot) : path76.dirname(resolvedHome);
162176
+ const ultimateStopDir = projectRoot ?? path76.dirname(resolvedHome);
161968
162177
  while (currentDir && currentDir !== path76.dirname(currentDir)) {
161969
162178
  if (currentDir === globalO1CodeDir || currentDir === path76.join(resolvedHome, O1CODE_DIR)) {
161970
162179
  break;
@@ -163748,7 +163957,7 @@ var Config = class _Config {
163748
163957
  Storage.getGlobalO1CodeDir()
163749
163958
  );
163750
163959
  this.provisionalWorkspace = params.provisionalWorkspace === true;
163751
- this.sessionId = params.sessionId ?? randomUUID19();
163960
+ this.sessionId = params.sessionId ?? randomUUID20();
163752
163961
  if (!sessionEnvClaimed && process6.env) {
163753
163962
  process6.env["O1CODE_SESSION_ID"] = this.sessionId;
163754
163963
  sessionEnvClaimed = true;
@@ -164272,7 +164481,7 @@ var Config = class _Config {
164272
164481
  await this.proxyDispatcherReady;
164273
164482
  options2?.signal?.throwIfAborted();
164274
164483
  if (this.isOmniEnabled()) {
164275
- const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-D2TJG4J5.js");
164484
+ const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-GPGQJLHV.js");
164276
164485
  this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
164277
164486
  baseUrl: this.omniUploadBaseUrl,
164278
164487
  apiKeyEnv: this.omniUploadApiKeyEnv,
@@ -165434,6 +165643,11 @@ var Config = class _Config {
165434
165643
  (displayPath) => `Extension rule ${displayPath} has no \`paths:\` and was skipped. An extension's rules must be conditional: a baseline one would be sent with every request, which is the cost a rule exists to avoid. Add \`paths:\` to it, or move the content into the extension's context file.`
165435
165644
  );
165436
165645
  const extra = memoryContextWarning ? [...ruleWarnings, memoryContextWarning] : ruleWarnings;
165646
+ if (this.hasProjectHooksWithheldByTrust()) {
165647
+ extra.push(
165648
+ `Project hooks in the workspace settings were not loaded: this folder is not explicitly trusted. ${EXPLICIT_TRUST_HINT}`
165649
+ );
165650
+ }
165437
165651
  return extra.length > 0 ? [...this.warnings, ...extra] : this.warnings;
165438
165652
  }
165439
165653
  getDebugLogger() {
@@ -165462,7 +165676,7 @@ var Config = class _Config {
165462
165676
  void outgoingChatRecordingService?.flush().catch(() => {
165463
165677
  });
165464
165678
  const previousSessionId = this.sessionId;
165465
- const nextSessionId = sessionId ?? randomUUID19();
165679
+ const nextSessionId = sessionId ?? randomUUID20();
165466
165680
  const isSessionTransition = nextSessionId !== previousSessionId;
165467
165681
  if (isSessionTransition) {
165468
165682
  logSessionEnd(this);
@@ -168186,7 +168400,7 @@ var Config = class _Config {
168186
168400
  return this.omniPolicyTools;
168187
168401
  }
168188
168402
  async loadOmniMediaReader() {
168189
- return import("./omni-5EIZ57PX.js");
168403
+ return import("./omni-X2QDE2SC.js");
168190
168404
  }
168191
168405
  /** Normalized `omni.processing` view. Undefined until tool warmup
168192
168406
  * completes (or when omni is disabled). */
@@ -168927,16 +169141,31 @@ var Config = class _Config {
168927
169141
  }
168928
169142
  /**
168929
169143
  * Get project-level hooks configuration.
168930
- * Returns hooks from workspace settings, only in trusted folders.
169144
+ * Returns hooks from workspace settings, only in explicitly trusted folders.
168931
169145
  * Used by HookRegistry to load project-specific hooks with proper source attribution.
168932
169146
  */
168933
169147
  getProjectHooks() {
168934
169148
  if (this.getBareMode() || this.isSafeMode()) {
168935
169149
  return void 0;
168936
169150
  }
168937
- if (!this.isTrustedFolder()) {
169151
+ if (!this.isExplicitlyTrustedFolder()) {
168938
169152
  return void 0;
168939
169153
  }
169154
+ return this.readProjectHooks();
169155
+ }
169156
+ /**
169157
+ * Whether the workspace configured hooks that are not loaded because the
169158
+ * folder is not explicitly trusted. Feeds the startup warning, so hooks do
169159
+ * not stop silently.
169160
+ */
169161
+ hasProjectHooksWithheldByTrust() {
169162
+ if (this.getBareMode() || this.isSafeMode() || this.getDisableAllHooks() || this.isExplicitlyTrustedFolder()) {
169163
+ return false;
169164
+ }
169165
+ const hooks = this.readProjectHooks();
169166
+ return hooks !== void 0 && Object.keys(hooks).length > 0;
169167
+ }
169168
+ readProjectHooks() {
168940
169169
  const hooks = this.projectHooks ?? (this.hasScopedHooks() ? void 0 : this.hooks);
168941
169170
  return hooks;
168942
169171
  }
@@ -169072,6 +169301,17 @@ var Config = class _Config {
169072
169301
  }
169073
169302
  return this.trustedFolder ?? !this.folderTrust;
169074
169303
  }
169304
+ /**
169305
+ * Whether someone actually said this folder is trusted: the folder-trust
169306
+ * feature is on and the folder passed it, or the IDE reports the workspace
169307
+ * as trusted. With the feature off every folder counts as trusted, which is
169308
+ * not a decision anyone made; commands a repository supplies (frontmatter
169309
+ * hooks, tool grants, its own language servers) need this stronger answer.
169310
+ */
169311
+ isExplicitlyTrustedFolder() {
169312
+ const ideTrust = ideContextStore.get()?.workspaceState?.isTrusted;
169313
+ return (this.folderTrust || ideTrust !== void 0) && this.isTrustedFolder();
169314
+ }
169075
169315
  setIdeMode(value) {
169076
169316
  if (this.shellExecutionSandbox && value)
169077
169317
  throw new Error(
@@ -169859,7 +170099,7 @@ var Config = class _Config {
169859
170099
  async registerWorkflowTool(registry2) {
169860
170100
  if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
169861
170101
  await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
169862
- const { WorkflowTool } = await import("./workflow-GSJ6BWL5.js");
170102
+ const { WorkflowTool } = await import("./workflow-QBLEKR24.js");
169863
170103
  return new WorkflowTool(this);
169864
170104
  });
169865
170105
  return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
@@ -169881,7 +170121,7 @@ var Config = class _Config {
169881
170121
  }
169882
170122
  if (status === "disabled") return;
169883
170123
  const factory = /* @__PURE__ */ __name(async () => {
169884
- const { ImageGenTool } = await import("./image-gen-D4WPSZB4.js");
170124
+ const { ImageGenTool } = await import("./image-gen-A5LWAWV5.js");
169885
170125
  return new ImageGenTool(this);
169886
170126
  }, "factory");
169887
170127
  if (status === "deferred") {
@@ -169908,7 +170148,7 @@ var Config = class _Config {
169908
170148
  return;
169909
170149
  }
169910
170150
  const factory = /* @__PURE__ */ __name(async () => {
169911
- const { RecordSourceTool } = await import("./record-source-SKISWRL5.js");
170151
+ const { RecordSourceTool } = await import("./record-source-ZEVZHGGT.js");
169912
170152
  return new RecordSourceTool(this);
169913
170153
  }, "factory");
169914
170154
  if (status === "deferred") {
@@ -169939,16 +170179,16 @@ var Config = class _Config {
169939
170179
  const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
169940
170180
  if (options2?.forSubAgent) return;
169941
170181
  await registerLazy(ToolNames.GET_GOAL, async () => {
169942
- const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-6BHVTRDG.js");
170182
+ const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-RUTV37TK.js");
169943
170183
  return new GetGoalTool2(this);
169944
170184
  });
169945
170185
  await registerLazy(ToolNames.UPDATE_GOAL, async () => {
169946
- const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-6BHVTRDG.js");
170186
+ const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-RUTV37TK.js");
169947
170187
  return new UpdateGoalTool2(this);
169948
170188
  });
169949
170189
  if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
169950
170190
  await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
169951
- const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-6BHVTRDG.js");
170191
+ const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-RUTV37TK.js");
169952
170192
  return new ProposeGoalTool2(this);
169953
170193
  });
169954
170194
  }
@@ -169968,16 +170208,16 @@ var Config = class _Config {
169968
170208
  });
169969
170209
  }
169970
170210
  await registerLazy(ToolNames.WEB_FETCH, async () => {
169971
- const { WebFetchTool } = await import("./web-fetch-F32PQI4W.js");
170211
+ const { WebFetchTool } = await import("./web-fetch-QKY4VT64.js");
169972
170212
  return new WebFetchTool(this);
169973
170213
  });
169974
170214
  const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
169975
170215
  if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
169976
- const { evaluateWebSearchGate } = await import("./web-search-VDENZ7EU.js");
170216
+ const { evaluateWebSearchGate } = await import("./web-search-AMRNCSP6.js");
169977
170217
  const gate = evaluateWebSearchGate(this);
169978
170218
  if (gate.ok) {
169979
170219
  await registerLazy(ToolNames.WEB_SEARCH, async () => {
169980
- const { WebSearchTool } = await import("./web-search-VDENZ7EU.js");
170220
+ const { WebSearchTool } = await import("./web-search-AMRNCSP6.js");
169981
170221
  return new WebSearchTool(this);
169982
170222
  });
169983
170223
  } else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
@@ -169994,8 +170234,8 @@ var Config = class _Config {
169994
170234
  );
169995
170235
  }
169996
170236
  const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
169997
- import("./local-execution-environment-J54RZH2B.js"),
169998
- import("./execution-tool-AOLNHDFN.js")
170237
+ import("./local-execution-environment-NIQC5LCT.js"),
170238
+ import("./execution-tool-JVQOMMTE.js")
169999
170239
  ]);
170000
170240
  for (const [name, tool] of createExecutionTools(this)) {
170001
170241
  if (environment.toolNames && !environment.toolNames.has(name)) continue;
@@ -170006,11 +170246,11 @@ var Config = class _Config {
170006
170246
  );
170007
170247
  }
170008
170248
  await registerLazy(ToolNames.TOOL_CALL, async () => {
170009
- const { ToolCallTool } = await import("./tool-call-GFZXS57E.js");
170249
+ const { ToolCallTool } = await import("./tool-call-BUCHKNUE.js");
170010
170250
  return new ToolCallTool(registry2);
170011
170251
  });
170012
170252
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
170013
- const { ToolSearchTool } = await import("./tool-search-FBD2VWOF.js");
170253
+ const { ToolSearchTool } = await import("./tool-search-ORCJKBH7.js");
170014
170254
  return new ToolSearchTool(this);
170015
170255
  });
170016
170256
  if (this.executionEnvironment && !options2?.forSubAgent) {
@@ -170022,7 +170262,7 @@ var Config = class _Config {
170022
170262
  }
170023
170263
  if (this.shellExecutionSandbox) {
170024
170264
  await registerLazy(ToolNames.SHELL, async () => {
170025
- const { ShellTool: ShellTool2 } = await import("./shell-4E3CQKI5.js");
170265
+ const { ShellTool: ShellTool2 } = await import("./shell-CXFG4D26.js");
170026
170266
  return new ShellTool2(this);
170027
170267
  });
170028
170268
  await registerLazy(ToolNames.TASK_STOP, async () => {
@@ -170030,27 +170270,27 @@ var Config = class _Config {
170030
170270
  return new TaskStopTool(this);
170031
170271
  });
170032
170272
  await registerLazy(ToolNames.READ_FILE, async () => {
170033
- const { ReadFileTool } = await import("./read-file-SX7FXRIG.js");
170273
+ const { ReadFileTool } = await import("./read-file-PVJ2UFNR.js");
170034
170274
  return new ReadFileTool(this);
170035
170275
  });
170036
170276
  await registerLazy(ToolNames.WRITE_FILE, async () => {
170037
- const { WriteFileTool } = await import("./write-file-XHQYIS4I.js");
170277
+ const { WriteFileTool } = await import("./write-file-4QSLWQJN.js");
170038
170278
  return new WriteFileTool(this);
170039
170279
  });
170040
170280
  await registerLazy(ToolNames.EDIT, async () => {
170041
- const { EditTool } = await import("./edit-SYQ6NUEQ.js");
170281
+ const { EditTool } = await import("./edit-XYXDIK5B.js");
170042
170282
  return new EditTool(this);
170043
170283
  });
170044
170284
  await registerLazy(ToolNames.MONITOR, async () => {
170045
- const { MonitorTool } = await import("./monitor-OACO7H2W.js");
170285
+ const { MonitorTool } = await import("./monitor-X5SXPGKJ.js");
170046
170286
  return new MonitorTool(this);
170047
170287
  });
170048
170288
  await registerLazy(ToolNames.AGENT, async () => {
170049
- const { AgentTool: AgentTool2 } = await import("./agent-4CLDKDDT.js");
170289
+ const { AgentTool: AgentTool2 } = await import("./agent-4JVSTPOZ.js");
170050
170290
  return new AgentTool2(this);
170051
170291
  });
170052
170292
  await registerLazy(ToolNames.GLOB, async () => {
170053
- const { GlobTool } = await import("./glob-W2E6FGA4.js");
170293
+ const { GlobTool } = await import("./glob-LPOYT76M.js");
170054
170294
  return new GlobTool(this);
170055
170295
  });
170056
170296
  await registerLazy(ToolNames.LS, async () => {
@@ -170059,7 +170299,7 @@ var Config = class _Config {
170059
170299
  });
170060
170300
  if (resolveInteractionMode(this) !== "headless") {
170061
170301
  await registerLazy(ToolNames.ASK_USER_QUESTION, async () => {
170062
- const { AskUserQuestionTool: AskUserQuestionTool2 } = await import("./askUserQuestion-NWK5LQIZ.js");
170302
+ const { AskUserQuestionTool: AskUserQuestionTool2 } = await import("./askUserQuestion-YPA2ZZLO.js");
170063
170303
  return new AskUserQuestionTool2(this);
170064
170304
  });
170065
170305
  }
@@ -170069,19 +170309,19 @@ var Config = class _Config {
170069
170309
  }
170070
170310
  if (this.getBareMode()) {
170071
170311
  await registerLazy(ToolNames.READ_FILE, async () => {
170072
- const { ReadFileTool } = await import("./read-file-SX7FXRIG.js");
170312
+ const { ReadFileTool } = await import("./read-file-PVJ2UFNR.js");
170073
170313
  return new ReadFileTool(this);
170074
170314
  });
170075
170315
  await registerLazy(ToolNames.EDIT, async () => {
170076
- const { EditTool } = await import("./edit-SYQ6NUEQ.js");
170316
+ const { EditTool } = await import("./edit-XYXDIK5B.js");
170077
170317
  return new EditTool(this);
170078
170318
  });
170079
170319
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
170080
- const { NotebookEditTool } = await import("./notebook-edit-IP2HFHUU.js");
170320
+ const { NotebookEditTool } = await import("./notebook-edit-6AJJRXJE.js");
170081
170321
  return new NotebookEditTool(this);
170082
170322
  });
170083
170323
  await registerLazy(ToolNames.SHELL, async () => {
170084
- const { ShellTool: ShellTool2 } = await import("./shell-4E3CQKI5.js");
170324
+ const { ShellTool: ShellTool2 } = await import("./shell-CXFG4D26.js");
170085
170325
  return new ShellTool2(this);
170086
170326
  });
170087
170327
  await registerGoalWorkerTools();
@@ -170096,11 +170336,11 @@ var Config = class _Config {
170096
170336
  await registerExecIfEnabled();
170097
170337
  await registerGoalWorkerTools();
170098
170338
  await registerLazy(ToolNames.TOOL_CALL, async () => {
170099
- const { ToolCallTool } = await import("./tool-call-GFZXS57E.js");
170339
+ const { ToolCallTool } = await import("./tool-call-BUCHKNUE.js");
170100
170340
  return new ToolCallTool(registry2);
170101
170341
  });
170102
170342
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
170103
- const { ToolSearchTool } = await import("./tool-search-FBD2VWOF.js");
170343
+ const { ToolSearchTool } = await import("./tool-search-ORCJKBH7.js");
170104
170344
  return new ToolSearchTool(this);
170105
170345
  });
170106
170346
  await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
@@ -170108,11 +170348,11 @@ var Config = class _Config {
170108
170348
  return new ReadMcpResourceTool(this);
170109
170349
  });
170110
170350
  await registerLazy(ToolNames.AGENT, async () => {
170111
- const { AgentTool: AgentTool2 } = await import("./agent-4CLDKDDT.js");
170351
+ const { AgentTool: AgentTool2 } = await import("./agent-4JVSTPOZ.js");
170112
170352
  return new AgentTool2(this);
170113
170353
  });
170114
170354
  await registerLazy(ToolNames.LIST_AGENTS, async () => {
170115
- const { ListAgentsTool } = await import("./list-agents-T2EHYFCL.js");
170355
+ const { ListAgentsTool } = await import("./list-agents-QNCQCPBU.js");
170116
170356
  return new ListAgentsTool(this);
170117
170357
  });
170118
170358
  await registerLazy(ToolNames.TASK_STOP, async () => {
@@ -170120,11 +170360,11 @@ var Config = class _Config {
170120
170360
  return new TaskStopTool(this);
170121
170361
  });
170122
170362
  await registerLazy(ToolNames.SEND_MESSAGE, async () => {
170123
- const { SendMessageTool } = await import("./send-message-WKTPR6OU.js");
170363
+ const { SendMessageTool } = await import("./send-message-ZCE2ZSEV.js");
170124
170364
  return new SendMessageTool(this);
170125
170365
  });
170126
170366
  await registerLazy(ToolNames.SKILL, async () => {
170127
- const { SkillTool } = await import("./skill-Q3EH25VF.js");
170367
+ const { SkillTool } = await import("./skill-XAI4BN7B.js");
170128
170368
  return new SkillTool(this);
170129
170369
  });
170130
170370
  if (this.isLsToolEnabled()) {
@@ -170134,11 +170374,11 @@ var Config = class _Config {
170134
170374
  });
170135
170375
  }
170136
170376
  await registerLazy(ToolNames.READ_FILE, async () => {
170137
- const { ReadFileTool } = await import("./read-file-SX7FXRIG.js");
170377
+ const { ReadFileTool } = await import("./read-file-PVJ2UFNR.js");
170138
170378
  return new ReadFileTool(this);
170139
170379
  });
170140
170380
  await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
170141
- const { ZoomImageTool } = await import("./zoom-image-F55GDAZT.js");
170381
+ const { ZoomImageTool } = await import("./zoom-image-FGAGFWD3.js");
170142
170382
  return new ZoomImageTool(this);
170143
170383
  });
170144
170384
  if (this.getUseRipgrep()) {
@@ -170153,7 +170393,7 @@ var Config = class _Config {
170153
170393
  recordStartupEvent("config_initialize_ripgrep_probe_end");
170154
170394
  if (useRipgrep) {
170155
170395
  await registerLazy(ToolNames.GREP, async () => {
170156
- const { RipGrepTool } = await import("./ripGrep-ANRBZHAX.js");
170396
+ const { RipGrepTool } = await import("./ripGrep-SGVDEPUA.js");
170157
170397
  return new RipGrepTool(this);
170158
170398
  });
170159
170399
  } else {
@@ -170166,7 +170406,7 @@ var Config = class _Config {
170166
170406
  )
170167
170407
  );
170168
170408
  await registerLazy(ToolNames.GREP, async () => {
170169
- const { GrepTool } = await import("./grep-5HGH34M6.js");
170409
+ const { GrepTool } = await import("./grep-YVEFUZQF.js");
170170
170410
  return new GrepTool(this);
170171
170411
  });
170172
170412
  }
@@ -170174,28 +170414,28 @@ var Config = class _Config {
170174
170414
  recordStartupEvent("config_initialize_ripgrep_probe_start");
170175
170415
  recordStartupEvent("config_initialize_ripgrep_probe_end");
170176
170416
  await registerLazy(ToolNames.GREP, async () => {
170177
- const { GrepTool } = await import("./grep-5HGH34M6.js");
170417
+ const { GrepTool } = await import("./grep-YVEFUZQF.js");
170178
170418
  return new GrepTool(this);
170179
170419
  });
170180
170420
  }
170181
170421
  await registerLazy(ToolNames.GLOB, async () => {
170182
- const { GlobTool } = await import("./glob-W2E6FGA4.js");
170422
+ const { GlobTool } = await import("./glob-LPOYT76M.js");
170183
170423
  return new GlobTool(this);
170184
170424
  });
170185
170425
  await registerLazy(ToolNames.EDIT, async () => {
170186
- const { EditTool } = await import("./edit-SYQ6NUEQ.js");
170426
+ const { EditTool } = await import("./edit-XYXDIK5B.js");
170187
170427
  return new EditTool(this);
170188
170428
  });
170189
170429
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
170190
- const { NotebookEditTool } = await import("./notebook-edit-IP2HFHUU.js");
170430
+ const { NotebookEditTool } = await import("./notebook-edit-6AJJRXJE.js");
170191
170431
  return new NotebookEditTool(this);
170192
170432
  });
170193
170433
  await registerLazy(ToolNames.WRITE_FILE, async () => {
170194
- const { WriteFileTool } = await import("./write-file-XHQYIS4I.js");
170434
+ const { WriteFileTool } = await import("./write-file-4QSLWQJN.js");
170195
170435
  return new WriteFileTool(this);
170196
170436
  });
170197
170437
  await registerLazy(ToolNames.SHELL, async () => {
170198
- const { ShellTool: ShellTool2 } = await import("./shell-4E3CQKI5.js");
170438
+ const { ShellTool: ShellTool2 } = await import("./shell-CXFG4D26.js");
170199
170439
  return new ShellTool2(this);
170200
170440
  });
170201
170441
  await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
@@ -170205,33 +170445,33 @@ var Config = class _Config {
170205
170445
  const supportsUserInteraction = resolveInteractionMode(this) !== "headless";
170206
170446
  if (supportsUserInteraction) {
170207
170447
  await registerLazy(ToolNames.ASK_USER_QUESTION, async () => {
170208
- const { AskUserQuestionTool: AskUserQuestionTool2 } = await import("./askUserQuestion-NWK5LQIZ.js");
170448
+ const { AskUserQuestionTool: AskUserQuestionTool2 } = await import("./askUserQuestion-YPA2ZZLO.js");
170209
170449
  return new AskUserQuestionTool2(this);
170210
170450
  });
170211
170451
  }
170212
170452
  if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
170213
170453
  await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
170214
- const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-VRCBSQ5U.js");
170454
+ const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-7MZNYWO4.js");
170215
170455
  return new ExitPlanModeTool2(this);
170216
170456
  });
170217
170457
  }
170218
170458
  if (!this.sdkMode && supportsUserInteraction) {
170219
170459
  await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
170220
- const { EnterPlanModeTool } = await import("./enterPlanMode-EDNBOH4T.js");
170460
+ const { EnterPlanModeTool } = await import("./enterPlanMode-VQQZ2UW6.js");
170221
170461
  return new EnterPlanModeTool(this);
170222
170462
  });
170223
170463
  }
170224
170464
  await registerLazy(ToolNames.ENTER_WORKTREE, async () => {
170225
- const { EnterWorktreeTool } = await import("./enter-worktree-FIO6VPWS.js");
170465
+ const { EnterWorktreeTool } = await import("./enter-worktree-DXCRT554.js");
170226
170466
  return new EnterWorktreeTool(this);
170227
170467
  });
170228
170468
  await registerLazy(ToolNames.EXIT_WORKTREE, async () => {
170229
- const { ExitWorktreeTool } = await import("./exit-worktree-3UU4SS47.js");
170469
+ const { ExitWorktreeTool } = await import("./exit-worktree-7YT7VWTK.js");
170230
170470
  return new ExitWorktreeTool(this);
170231
170471
  });
170232
170472
  if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
170233
170473
  await registerLazy(ToolNames.DISPLAY_IMAGE, async () => {
170234
- const { DisplayImageTool } = await import("./display-image-4ZU4ZU53.js");
170474
+ const { DisplayImageTool } = await import("./display-image-VWFOL6K5.js");
170235
170475
  return new DisplayImageTool(this);
170236
170476
  });
170237
170477
  }
@@ -170284,33 +170524,33 @@ var Config = class _Config {
170284
170524
  }
170285
170525
  if (this.isAgentTeamEnabled()) {
170286
170526
  await registerLazy(ToolNames.TEAM_CREATE, async () => {
170287
- const { TeamCreateTool } = await import("./team-create-NNG2GXZ7.js");
170527
+ const { TeamCreateTool } = await import("./team-create-B3GZHAVJ.js");
170288
170528
  return new TeamCreateTool(this);
170289
170529
  });
170290
170530
  await registerLazy(ToolNames.TEAM_DELETE, async () => {
170291
- const { TeamDeleteTool } = await import("./team-delete-RL37ORM3.js");
170531
+ const { TeamDeleteTool } = await import("./team-delete-FZRNXQEK.js");
170292
170532
  return new TeamDeleteTool(this);
170293
170533
  });
170294
170534
  await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
170295
- const { TeamPlanApprovalTool } = await import("./team-plan-approval-CAKGOWV7.js");
170535
+ const { TeamPlanApprovalTool } = await import("./team-plan-approval-AA23AXBX.js");
170296
170536
  return new TeamPlanApprovalTool(this);
170297
170537
  });
170298
170538
  if (!options2?.forSubAgent) {
170299
170539
  await registerLazy(ToolNames.REQUEST_SHUTDOWN, async () => {
170300
- const { RequestShutdownTool } = await import("./request-shutdown-5I22UEVV.js");
170540
+ const { RequestShutdownTool } = await import("./request-shutdown-WWNRWY6N.js");
170301
170541
  return new RequestShutdownTool(this);
170302
170542
  });
170303
170543
  }
170304
170544
  await registerLazy(ToolNames.TASK_CREATE, async () => {
170305
- const { TaskCreateTool } = await import("./task-create-PTXFIS6D.js");
170545
+ const { TaskCreateTool } = await import("./task-create-7KKOP2J2.js");
170306
170546
  return new TaskCreateTool(this);
170307
170547
  });
170308
170548
  await registerLazy(ToolNames.TASK_UPDATE, async () => {
170309
- const { TaskUpdateTool } = await import("./task-update-5LYVCOT2.js");
170549
+ const { TaskUpdateTool } = await import("./task-update-RDNOVBEQ.js");
170310
170550
  return new TaskUpdateTool(this);
170311
170551
  });
170312
170552
  await registerLazy(ToolNames.TASK_LIST, async () => {
170313
- const { TaskListTool } = await import("./task-list-ABYOHJDS.js");
170553
+ const { TaskListTool } = await import("./task-list-J7ECJCOE.js");
170314
170554
  return new TaskListTool(this);
170315
170555
  });
170316
170556
  }
@@ -170388,7 +170628,7 @@ var Config = class _Config {
170388
170628
  }
170389
170629
  }
170390
170630
  await registerLazy(ToolNames.MONITOR, async () => {
170391
- const { MonitorTool } = await import("./monitor-OACO7H2W.js");
170631
+ const { MonitorTool } = await import("./monitor-X5SXPGKJ.js");
170392
170632
  return new MonitorTool(this);
170393
170633
  });
170394
170634
  if (this.pendingMcpBudgetCallback) {
@@ -171252,6 +171492,8 @@ export {
171252
171492
  ToolMode,
171253
171493
  isCodeModeToolCallAllowed,
171254
171494
  getOptInToolNotFoundMessage,
171495
+ TOOL_CANCELLED_BEFORE_COMPLETION_MESSAGE,
171496
+ TRUNCATION_EDIT_REJECTION,
171255
171497
  convertToFunctionResponse,
171256
171498
  convertToFunctionErrorResponse,
171257
171499
  isToolCallConcurrencySafe,