@organizaone/o1-code 0.24.3 → 0.25.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 (278) hide show
  1. package/bundled/qc-helper/docs/configuration/trusted-folders.md +2 -0
  2. package/bundled/qc-helper/docs/features/lsp.md +1 -1
  3. package/bundled/qc-helper/docs/features/skills.md +1 -1
  4. package/chunks/{MaxSizedBox-PJX4DP24.js → MaxSizedBox-SX7L43GF.js} +24 -24
  5. package/chunks/{StandaloneSessionPicker-27TPGDJ6.js → StandaloneSessionPicker-V6A3S6MF.js} +38 -38
  6. package/chunks/{acp-subagent-executor-VU6BYGXV.js → acp-subagent-executor-52MZCRRP.js} +26 -26
  7. package/chunks/{acpAgent-3ZRD3F2Z.js → acpAgent-IQDDNOET.js} +113 -66
  8. package/chunks/{agent-KPY2HBYP.js → agent-O6PLYNPF.js} +15 -15
  9. package/chunks/{agent-headless-7KNSFP26.js → agent-headless-P2WT7VGJ.js} +15 -15
  10. package/chunks/{all-providers-RIK4DYM6.js → all-providers-WWSVGE7P.js} +2 -2
  11. package/chunks/{anthropicContentGenerator-357CGTVZ.js → anthropicContentGenerator-FLIKRMH6.js} +4 -4
  12. package/chunks/{artifact-tool-VKDCERQZ.js → artifact-tool-6QDGNGTO.js} +1 -1
  13. package/chunks/{bridge-2KLALYHA.js → bridge-RVD5UN3S.js} +26 -26
  14. package/chunks/{bwrap-execution-SD7FCUZG.js → bwrap-execution-623BHVNE.js} +4 -4
  15. package/chunks/{chunk-CVTKGQ6D.js → chunk-2DIUCC6N.js} +1 -1
  16. package/chunks/{chunk-4ZNYTAZ2.js → chunk-2KBKQCET.js} +2 -2
  17. package/chunks/{chunk-XZEYYLES.js → chunk-2KF67MR3.js} +1 -1
  18. package/chunks/{chunk-KH5PKMPX.js → chunk-2KYJA6BK.js} +1 -1
  19. package/chunks/{chunk-RKDSZAAB.js → chunk-3GX2JF2F.js} +1 -1
  20. package/chunks/{chunk-QTNNFUNI.js → chunk-3LGQKO4S.js} +2 -2
  21. package/chunks/{chunk-QWCTYJ4C.js → chunk-3W635FXS.js} +1 -1
  22. package/chunks/{chunk-Y3JWAVRJ.js → chunk-4CSMD2N2.js} +1 -1
  23. package/chunks/{chunk-M5YWMQ66.js → chunk-4KOM3B7Q.js} +4 -4
  24. package/chunks/{chunk-5B3VZB6E.js → chunk-5DYWST3G.js} +273 -159
  25. package/chunks/{chunk-YXIVVZG7.js → chunk-5HHYWAT2.js} +3 -3
  26. package/chunks/{chunk-6XDSAVPQ.js → chunk-6JK2YX3M.js} +1 -1
  27. package/chunks/{chunk-Z335FWG2.js → chunk-6KVIR254.js} +1 -1
  28. package/chunks/{chunk-WXOD2VGG.js → chunk-74GVXLB4.js} +3 -3
  29. package/chunks/{chunk-UPULOYRG.js → chunk-7H3GMHNV.js} +1 -1
  30. package/chunks/{chunk-O3YQBIK2.js → chunk-7Y53G2LA.js} +2 -2
  31. package/chunks/{chunk-5JWNJJ3X.js → chunk-7YEY47HZ.js} +1 -1
  32. package/chunks/{chunk-FNWRGVHQ.js → chunk-BGIED5LF.js} +1 -1
  33. package/chunks/{chunk-IMNGDYG4.js → chunk-BZCAZORI.js} +10 -6
  34. package/chunks/{chunk-5RKM3PAM.js → chunk-C6GZRQ6A.js} +2 -2
  35. package/chunks/{chunk-NMOAEZHZ.js → chunk-CCGIWTGK.js} +1 -1
  36. package/chunks/{chunk-UNGSC5FO.js → chunk-CD4C4ADN.js} +1 -1
  37. package/chunks/{chunk-TNNDUM5G.js → chunk-CL6WD3KD.js} +1 -1
  38. package/chunks/{chunk-RPCDTVFG.js → chunk-DF73UBWX.js} +2 -2
  39. package/chunks/{chunk-YAF7XG66.js → chunk-E66W34L5.js} +28 -28
  40. package/chunks/{chunk-FDNTWDR3.js → chunk-GF6S73XT.js} +53 -3
  41. package/chunks/{chunk-D5AJXYTA.js → chunk-GJ7VXZXF.js} +3 -3
  42. package/chunks/{chunk-OWPXF2AZ.js → chunk-GNJ6CIDW.js} +4 -4
  43. package/chunks/{chunk-2SMHE6PC.js → chunk-GVJCUUWW.js} +12 -2
  44. package/chunks/{chunk-PK5XWB4J.js → chunk-GY3JWX4O.js} +1 -1
  45. package/chunks/{chunk-X4L2PDKJ.js → chunk-H7Z2QHT6.js} +3 -3
  46. package/chunks/{chunk-PRVRKBKD.js → chunk-HFVCWMFQ.js} +4 -4
  47. package/chunks/{chunk-UFCPTKMM.js → chunk-IA7N7U2C.js} +16 -8
  48. package/chunks/{chunk-JIPOXNXK.js → chunk-IV2ZUCOX.js} +1 -1
  49. package/chunks/{chunk-USV4PB5M.js → chunk-JTIB6W5A.js} +1 -1
  50. package/chunks/{chunk-BTMXGXUA.js → chunk-JUKBFMZ5.js} +2 -2
  51. package/chunks/{chunk-3HW5BHLK.js → chunk-JUPK7JWP.js} +1 -1
  52. package/chunks/{chunk-ZPKLDOPE.js → chunk-KDPUC3CO.js} +2 -2
  53. package/chunks/{chunk-D23IQYZG.js → chunk-KDUC6UGX.js} +2 -2
  54. package/chunks/{chunk-GPKVAKJR.js → chunk-KJBZVVEC.js} +4 -4
  55. package/chunks/{chunk-RPPZ6HLE.js → chunk-KMGKWFHR.js} +16 -10
  56. package/chunks/{chunk-5DOU7T2W.js → chunk-KU6I333M.js} +2 -2
  57. package/chunks/{chunk-I45JJJDZ.js → chunk-KWP7CAXY.js} +3 -3
  58. package/chunks/{chunk-M4LEEFKE.js → chunk-KX6OMS75.js} +1 -1
  59. package/chunks/{chunk-7TZUSGPI.js → chunk-KZW5RTF3.js} +4 -4
  60. package/chunks/{chunk-IF6MXSWH.js → chunk-LK26AJMU.js} +1 -1
  61. package/chunks/{chunk-D6Y4EKBS.js → chunk-LZAXDVE3.js} +3 -3
  62. package/chunks/{chunk-UW2LIOIJ.js → chunk-MG37E6PW.js} +1 -1
  63. package/chunks/{chunk-JCKTWSZT.js → chunk-MMIJMF43.js} +2 -2
  64. package/chunks/{chunk-S66PEVT3.js → chunk-MPN67YNU.js} +7 -7
  65. package/chunks/{chunk-UFPNSAJO.js → chunk-NJ75V6UO.js} +2 -2
  66. package/chunks/{chunk-VVGCAYOV.js → chunk-NRCLJUSY.js} +1 -1
  67. package/chunks/{chunk-K76XQMZW.js → chunk-OBBP2ZN7.js} +4 -4
  68. package/chunks/{chunk-6ZMU3OWY.js → chunk-ODNOCYH7.js} +1 -1
  69. package/chunks/{chunk-F5M7PBZD.js → chunk-OQ35ZKIB.js} +2 -2
  70. package/chunks/{chunk-ZDG5WJ24.js → chunk-OZFPMAHJ.js} +1 -1
  71. package/chunks/{chunk-PTPAN3O4.js → chunk-P4XQQFCZ.js} +3 -8
  72. package/chunks/{chunk-B3P77ORJ.js → chunk-P7BCOR5S.js} +8 -8
  73. package/chunks/{chunk-VOFZHNYH.js → chunk-PCKTU3X5.js} +1 -1
  74. package/chunks/{chunk-A2WXFTLD.js → chunk-PGFXYKSJ.js} +8 -8
  75. package/chunks/{chunk-WNK4LXCX.js → chunk-PK2LRZWK.js} +8 -8
  76. package/chunks/{chunk-HX6PP5L7.js → chunk-PZNY2JJJ.js} +1 -1
  77. package/chunks/{chunk-753J2KNG.js → chunk-QKYD3YLE.js} +4 -4
  78. package/chunks/{chunk-G7SUACM4.js → chunk-R77APYHJ.js} +1 -1
  79. package/chunks/{chunk-IS7YVXHB.js → chunk-RIG4A6YO.js} +1 -1
  80. package/chunks/{chunk-KEWMJKIM.js → chunk-RLV4EZSY.js} +1 -1
  81. package/chunks/{chunk-7S47PUKT.js → chunk-RUDVLHPQ.js} +6 -6
  82. package/chunks/{chunk-KH4BV4SN.js → chunk-RXNYXW2A.js} +3 -3
  83. package/chunks/{chunk-BAIRHZ3U.js → chunk-RXOKJEB4.js} +13 -13
  84. package/chunks/{chunk-NINV7SSB.js → chunk-S4ASMRKL.js} +3 -3
  85. package/chunks/{chunk-IYEB6Z66.js → chunk-S5JHP5C5.js} +12 -12
  86. package/chunks/{chunk-34UDI4H6.js → chunk-S7SIWFBW.js} +33 -33
  87. package/chunks/{chunk-X35VISLA.js → chunk-SELDIVLD.js} +3 -3
  88. package/chunks/{chunk-FH5Z2MW6.js → chunk-SH5HEA4E.js} +4 -4
  89. package/chunks/{chunk-J7OVP4JH.js → chunk-TOWDGX4R.js} +1 -1
  90. package/chunks/{chunk-GGULLRXE.js → chunk-TYGBYVRJ.js} +4 -4
  91. package/chunks/{chunk-X4G33MXY.js → chunk-UAN7WQIF.js} +2 -2
  92. package/chunks/{chunk-6KV247AF.js → chunk-UUUIRL5U.js} +1 -1
  93. package/chunks/{chunk-BASKI2UI.js → chunk-UYG4HVPV.js} +4 -1
  94. package/chunks/{chunk-3V36LFMS.js → chunk-UYRSN6YI.js} +2 -2
  95. package/chunks/{chunk-2L4FFSP5.js → chunk-V4QKOYNB.js} +2 -2
  96. package/chunks/{chunk-OJTLJE4C.js → chunk-WZ3DCPKN.js} +1 -1
  97. package/chunks/{chunk-ZUNJAPSW.js → chunk-XGP4RGF4.js} +1 -1
  98. package/chunks/{chunk-HP35IAJV.js → chunk-XHETKALB.js} +7 -7
  99. package/chunks/{chunk-APGHTRDJ.js → chunk-XHFAV57Y.js} +1 -1
  100. package/chunks/{chunk-QF2NXQ22.js → chunk-YAWHSZ4N.js} +1 -1
  101. package/chunks/{chunk-O4XGLMGY.js → chunk-YVLUG6HM.js} +2 -2
  102. package/chunks/{chunk-MLAF3GLB.js → chunk-Z4T563RX.js} +3 -0
  103. package/chunks/{chunk-XMPIEDRO.js → chunk-ZE5EC3FJ.js} +4 -4
  104. package/chunks/{chunk-GCQLIGYW.js → chunk-ZS5CRCES.js} +1 -1
  105. package/chunks/{chunk-QGMDX5ZV.js → chunk-ZUZXFA5O.js} +1 -1
  106. package/chunks/{codex-subagent-executor-TIBLQI5P.js → codex-subagent-executor-IH3LMUV4.js} +26 -26
  107. package/chunks/{contextCommand-XWASHR3A.js → contextCommand-RKQX2A2Q.js} +25 -25
  108. package/chunks/{core-runtime-SXVA3AAZ.js → core-runtime-GGSTSFTA.js} +24 -24
  109. package/chunks/{create-sub-session-2QNBO7KA.js → create-sub-session-5OVGZIQZ.js} +25 -25
  110. package/chunks/{daemon-git-worktree-guard-JL7P2Z5F.js → daemon-git-worktree-guard-PWH5UXXA.js} +24 -24
  111. package/chunks/{daemon-status-provider-G7NDOXPC.js → daemon-status-provider-PB2RABB3.js} +30 -30
  112. package/chunks/{daemon-trust-policy-4E3HGY3Y.js → daemon-trust-policy-VKBYIHIA.js} +30 -30
  113. package/chunks/{daemon-trust-policy-monitor-FD6NKN52.js → daemon-trust-policy-monitor-QFZLQW7N.js} +30 -30
  114. package/chunks/{deferred-core-runtime-VAV2IJG5.js → deferred-core-runtime-OPWIBNWK.js} +24 -24
  115. package/chunks/{display-image-4ZU4ZU53.js → display-image-Y35PSJXX.js} +2 -2
  116. package/chunks/{edit-2IEELV32.js → edit-EI2QZFML.js} +17 -17
  117. package/chunks/{enterPlanMode-J65ME6DQ.js → enterPlanMode-HZIALG5T.js} +15 -15
  118. package/chunks/{environment-XKDV4AZA.js → environment-TM5YFH77.js} +27 -27
  119. package/chunks/{errors-IG2M6UDV.js → errors-75WEKSIY.js} +26 -26
  120. package/chunks/{execution-sandbox-config-C36KPQWE.js → execution-sandbox-config-ZTU7YXTL.js} +5 -5
  121. package/chunks/{execution-tool-I5FWVNBN.js → execution-tool-IEMS4OMY.js} +17 -17
  122. package/chunks/{execution-worker-5TPC2MRT.js → execution-worker-BR2UBKVZ.js} +20 -20
  123. package/chunks/{exitPlanMode-2GFYBUDI.js → exitPlanMode-46FWANRT.js} +15 -15
  124. package/chunks/{fast-path-WDFQFQMU.js → fast-path-FB2AYQT2.js} +3 -3
  125. package/chunks/{fast-path-settings-FIMIXD3V.js → fast-path-settings-BT63K4L7.js} +2 -2
  126. package/chunks/{foreground-runner-RCIVXRWP.js → foreground-runner-5OQ7IKWR.js} +26 -26
  127. package/chunks/{gateway-content-generator-QAPPEVZY.js → gateway-content-generator-BPZXVQWC.js} +3 -3
  128. package/chunks/{gateway-models-O7AI4KMB.js → gateway-models-5JPME6AP.js} +3 -3
  129. package/chunks/{glob-JISX3DBJ.js → glob-QZSWKHOW.js} +15 -15
  130. package/chunks/{goal-tools-RHACDZ5U.js → goal-tools-LZLIELOL.js} +15 -15
  131. package/chunks/{handleAutoUpdate-66EU7QOP.js → handleAutoUpdate-UZIU3KK4.js} +26 -26
  132. package/chunks/{i18n-KND5NW6E.js → i18n-UVPXLFMF.js} +24 -24
  133. package/chunks/{initializer-WM567ZJ5.js → initializer-Q4DUD7GF.js} +30 -30
  134. package/chunks/{installationInfo-FSUDD5OK.js → installationInfo-DWIXOKSE.js} +24 -24
  135. package/chunks/{list-NUCSO5NY.js → list-TUO4ATZ7.js} +32 -32
  136. package/chunks/{llm-NKNXCBB6.js → llm-MMOAP23Q.js} +56 -56
  137. package/chunks/{llm-content-generator-KUFJIYHC.js → llm-content-generator-7NOJCUX2.js} +4 -4
  138. package/chunks/{loadedSettingsAdapter-4U6CU2TY.js → loadedSettingsAdapter-LONKNEI2.js} +30 -30
  139. package/chunks/{local-execution-environment-HTR2MQYF.js → local-execution-environment-W6RR5CM2.js} +20 -20
  140. package/chunks/{loggingContentGenerator-UHTD3TV2.js → loggingContentGenerator-BTD3KTLK.js} +15 -15
  141. package/chunks/{managed-npm-update-XJSQINNO.js → managed-npm-update-6QDOTNQW.js} +24 -24
  142. package/chunks/{mcp-JPEF7ES3.js → mcp-XBVFA4NK.js} +30 -30
  143. package/chunks/{model-call-collection-FSMQKDF7.js → model-call-collection-HQF2N6XF.js} +1 -1
  144. package/chunks/{model-configuration-JKK3TAD3.js → model-configuration-BBZJMCHB.js} +31 -31
  145. package/chunks/{modelConfigUtils-SBOYE2UP.js → modelConfigUtils-UFJV3ZJS.js} +26 -26
  146. package/chunks/{monitor-Y4BAUHQ3.js → monitor-4DJ5VKXK.js} +15 -15
  147. package/chunks/{nonInteractiveCli-OCHNHKFD.js → nonInteractiveCli-IIJI63XP.js} +54 -54
  148. package/chunks/{nonInteractiveToolExecutor-GFOOZK4P.js → nonInteractiveToolExecutor-MET7I2DQ.js} +16 -16
  149. package/chunks/{notebook-edit-SVXYE4TT.js → notebook-edit-EOFZ4EKN.js} +16 -16
  150. package/chunks/{omni-TWP5GBCI.js → omni-MLLL6UUM.js} +8 -8
  151. package/chunks/{openaiContentGenerator-UG5U7EDW.js → openaiContentGenerator-FUN5S2AD.js} +8 -8
  152. package/chunks/{openaiResponsesContentGenerator-YFFRBXTX.js → openaiResponsesContentGenerator-TIRM5XJN.js} +3 -3
  153. package/chunks/{processUtils-SCXZUU6U.js → processUtils-WPVNEHRF.js} +2 -2
  154. package/chunks/{prompt-terminal-ledger-PB23BPMR.js → prompt-terminal-ledger-PQYRGDN6.js} +25 -25
  155. package/chunks/{reactive-degrade-VBELPYNP.js → reactive-degrade-RAVGIKCJ.js} +7 -7
  156. package/chunks/{read-file-CBWUHH7L.js → read-file-BTMZPG5O.js} +1 -1
  157. package/chunks/{record-source-SKISWRL5.js → record-source-4K4EQAX7.js} +5 -5
  158. package/chunks/{request-shutdown-5I22UEVV.js → request-shutdown-4LPYJZTK.js} +4 -4
  159. package/chunks/{resumeHistoryUtils-6HG5KNZQ.js → resumeHistoryUtils-RSU25WYV.js} +25 -25
  160. package/chunks/{ripGrep-MKBS4HS7.js → ripGrep-N425H66N.js} +1 -1
  161. package/chunks/{run-o1-code-serve-HRGG2BIM.js → run-o1-code-serve-FGCE7K7C.js} +34 -34
  162. package/chunks/{runtime-shell-policy-4MZ2UJQH.js → runtime-shell-policy-ZAYLMR65.js} +1 -1
  163. package/chunks/{sandboxConfig-5USOPVFM.js → sandboxConfig-AZSEWZCT.js} +24 -24
  164. package/chunks/{scheduled-tasks-QWUW5CF3.js → scheduled-tasks-ZUCWMR44.js} +29 -29
  165. package/chunks/{scheduler-V7XTWBSJ.js → scheduler-ZRZBVAWJ.js} +26 -26
  166. package/chunks/{send-message-WKTPR6OU.js → send-message-CD2AOPQD.js} +4 -4
  167. package/chunks/{serve-5VA7ZEQ4.js → serve-V2C4I5RF.js} +30 -30
  168. package/chunks/{server-JPQ663PH.js → server-HPF2IP2F.js} +54 -54
  169. package/chunks/{session-A6SI725D.js → session-7VBZLPP7.js} +1 -1
  170. package/chunks/{session-Y6MYKIZP.js → session-ZOBQ7E3F.js} +55 -55
  171. package/chunks/{session-attachments-root-IIA6LKAB.js → session-attachments-root-5LVSTHJX.js} +24 -24
  172. package/chunks/{session-pr-refresh-3Y3XWCD7.js → session-pr-refresh-B3GHMCV5.js} +28 -28
  173. package/chunks/{settings-QWKF7NPF.js → settings-4EWIU2CS.js} +29 -29
  174. package/chunks/{shell-H7OVXNTJ.js → shell-PEPAVCLP.js} +15 -15
  175. package/chunks/{skill-GSDG7DCN.js → skill-KYZIZDCI.js} +2 -2
  176. package/chunks/{skill-settings-JN72UKIJ.js → skill-settings-FMPMQYFV.js} +29 -29
  177. package/chunks/{spawnChannel-GOZTWG75.js → spawnChannel-TW6GZJXJ.js} +25 -25
  178. package/chunks/{standalone-update-WKCQVJXM.js → standalone-update-SV7MBAIU.js} +25 -25
  179. package/chunks/{startInteractiveUI-DSDUXSCT.js → startInteractiveUI-MDF4JJD5.js} +90 -100
  180. package/chunks/{supervisor-runner-GRHVZHAG.js → supervisor-runner-XJAZN7YG.js} +2 -2
  181. package/chunks/{task-create-PTXFIS6D.js → task-create-W3R3G7FM.js} +5 -5
  182. package/chunks/{task-update-5LYVCOT2.js → task-update-JQOO6HUS.js} +5 -5
  183. package/chunks/{team-create-7FQMEHVN.js → team-create-O66TUESF.js} +15 -15
  184. package/chunks/{team-plan-approval-5VMFGIBJ.js → team-plan-approval-667K2B3B.js} +15 -15
  185. package/chunks/{terminal-image-renderer-XSEVSR6U.js → terminal-image-renderer-PMVAADQU.js} +24 -24
  186. package/chunks/{theme-manager-DHSREBNQ.js → theme-manager-PHZIRE2I.js} +24 -24
  187. package/chunks/{tool-call-GFZXS57E.js → tool-call-ZR564L2K.js} +5 -5
  188. package/chunks/{tool-result-media-QF5HXQW7.js → tool-result-media-PXJEED5J.js} +8 -8
  189. package/chunks/{tool-search-JUYHPTLU.js → tool-search-5GZKW7RO.js} +5 -5
  190. package/chunks/{total-session-admission-2PE6MBZE.js → total-session-admission-WTPY7HAP.js} +26 -26
  191. package/chunks/{trustedFolders-FF2NLVXB.js → trustedFolders-JOAYZVGA.js} +25 -25
  192. package/chunks/{update-relaunch-4CGVNJDY.js → update-relaunch-3WTWA6Y3.js} +5 -5
  193. package/chunks/{updateCheck-GEMF7O6L.js → updateCheck-3EBFSQYZ.js} +24 -24
  194. package/chunks/{upload-config-A53Y6PRH.js → upload-config-GAXSQ3UL.js} +5 -5
  195. package/chunks/{useAutoAcceptIndicator-L64724WC.js → useAutoAcceptIndicator-KDDP4EGH.js} +32 -32
  196. package/chunks/{validateNonInterActiveAuth-OGRABAOH.js → validateNonInterActiveAuth-SMUVFO2L.js} +52 -52
  197. package/chunks/{version-JCZMG2LS.js → version-LOJWIDPQ.js} +1 -1
  198. package/chunks/{web-fetch-4IG2L5TB.js → web-fetch-XIUI6SSS.js} +1 -1
  199. package/chunks/{web-search-PXPZ3HCQ.js → web-search-53FZUSEO.js} +5 -5
  200. package/chunks/{workflow-ZSVXMZ6V.js → workflow-V26XKAXG.js} +16 -16
  201. package/chunks/{workspace-providers-status-UG3RORNY.js → workspace-providers-status-E4V3ZW7E.js} +34 -34
  202. package/chunks/{workspace-registration-store-KBNCV2IT.js → workspace-registration-store-2YYKRGZQ.js} +1 -1
  203. package/chunks/{workspace-registry-7GZKQIY2.js → workspace-registry-EFTIIC5P.js} +26 -26
  204. package/chunks/{workspace-runtime-coordinator-4VBNK7FX.js → workspace-runtime-coordinator-LCEDKI3V.js} +26 -26
  205. package/chunks/{workspace-service-ADFFSDNV.js → workspace-service-EJHV4F5K.js} +33 -33
  206. package/chunks/{workspace-skills-status-HO4VMWDH.js → workspace-skills-status-DGOQVL5O.js} +30 -30
  207. package/chunks/{workspace-trust-reconciler-PNI6V3K2.js → workspace-trust-reconciler-L7QJK4OH.js} +32 -32
  208. package/chunks/{write-file-CGE7ZDR6.js → write-file-OA3YWX4Z.js} +17 -17
  209. package/chunks/{zoom-image-ZNLADFKD.js → zoom-image-2FAU5GG7.js} +1 -1
  210. package/cli.js +15 -15
  211. package/execution-worker.js +1 -1
  212. package/export-transcript-document.js +1 -1
  213. package/package.json +2 -2
  214. package/release-notes.json +17 -0
  215. package/web-shell/assets/{abnfDiagram-VCTEODGH-DAFIGQd3.js → abnfDiagram-VCTEODGH-BHe02xuM.js} +1 -1
  216. package/web-shell/assets/{arc-Dmc6j0lr.js → arc-B5VovhrP.js} +1 -1
  217. package/web-shell/assets/{architectureDiagram-5GKGNRK7-C8KuBdZn.js → architectureDiagram-5GKGNRK7-ByvXrzMN.js} +1 -1
  218. package/web-shell/assets/{blockDiagram-NRAW4CY4-BSg3CcdK.js → blockDiagram-NRAW4CY4-CS0RXmiX.js} +1 -1
  219. package/web-shell/assets/{c4Diagram-UCG6FXSJ-DcRpl4in.js → c4Diagram-UCG6FXSJ-WPcIgAxw.js} +1 -1
  220. package/web-shell/assets/channel-CBQoqDm3.js +1 -0
  221. package/web-shell/assets/{chunk-2Q5K7J3B-CA7hInAG.js → chunk-2Q5K7J3B-Bj1gOQC9.js} +1 -1
  222. package/web-shell/assets/{chunk-5VM5RSS4-CwIC_xo8.js → chunk-5VM5RSS4-C3R9A3P3.js} +1 -1
  223. package/web-shell/assets/{chunk-F27PBJKO-DlSClzld.js → chunk-F27PBJKO-CvmqvEHu.js} +1 -1
  224. package/web-shell/assets/{chunk-G27WJ6UU-N1AZFye3.js → chunk-G27WJ6UU-C_If25TG.js} +1 -1
  225. package/web-shell/assets/{chunk-JWPE2WC7-CX3M4PkY.js → chunk-JWPE2WC7-BvDHAb7t.js} +1 -1
  226. package/web-shell/assets/{chunk-LCL6LL3I-BqfrRYRj.js → chunk-LCL6LL3I-lMoppd_e.js} +1 -1
  227. package/web-shell/assets/{chunk-POPQ4Y6H-B9eJFJLU.js → chunk-POPQ4Y6H-C-dB9zRU.js} +1 -1
  228. package/web-shell/assets/{chunk-SVP7TREG-CcvJz_0_.js → chunk-SVP7TREG-Bq7Iu-7R.js} +1 -1
  229. package/web-shell/assets/{chunk-XXDRQBXY-DeT47Kpi.js → chunk-XXDRQBXY-Dh3H4DSX.js} +1 -1
  230. package/web-shell/assets/classDiagram-DTDB5LWJ-CiD27im_.js +1 -0
  231. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CiD27im_.js +1 -0
  232. package/web-shell/assets/{cose-bilkent-JH36ORCC-BCoLcBuI.js → cose-bilkent-JH36ORCC-CSCSbMtg.js} +1 -1
  233. package/web-shell/assets/{cynefin-OW5HDTMX-BHM-CEms.js → cynefin-OW5HDTMX-RRLTsTaE.js} +1 -1
  234. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Ew-tg9Nr.js → cynefinDiagram-5FMLGOSQ-C65LN46e.js} +1 -1
  235. package/web-shell/assets/{dagre-3AP2YEHR-kbODDxPA.js → dagre-3AP2YEHR-BdovI5E9.js} +1 -1
  236. package/web-shell/assets/{diagram-S7CK7UJ4-BMvngkqA.js → diagram-S7CK7UJ4-C__1sM3W.js} +1 -1
  237. package/web-shell/assets/{diagram-UQ7AKVKN-C3ReWhyE.js → diagram-UQ7AKVKN-CPmRM5zO.js} +1 -1
  238. package/web-shell/assets/{diagram-VSXAHHWV-C8WFXuNJ.js → diagram-VSXAHHWV-DqhwLyY5.js} +1 -1
  239. package/web-shell/assets/{diagram-VX7I27RA-B7NfY5h3.js → diagram-VX7I27RA-D2vw9R7V.js} +1 -1
  240. package/web-shell/assets/{diagram-Z3DM3KII-DearqqH9.js → diagram-Z3DM3KII-DiNJsGCW.js} +1 -1
  241. package/web-shell/assets/{ebnfDiagram-PWID7BFC-CCGtTlZ_.js → ebnfDiagram-PWID7BFC-DzQJrp__.js} +1 -1
  242. package/web-shell/assets/{erDiagram-SSCWMZ5O-JraosAtk.js → erDiagram-SSCWMZ5O-BatwnmvO.js} +1 -1
  243. package/web-shell/assets/{flowDiagram-A5DVABFB-Cz0u2faK.js → flowDiagram-A5DVABFB-BhzHirl4.js} +1 -1
  244. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-D2w6vn-s.js → ganttDiagram-EL5Y4UJY-C_xchuB7.js} +1 -1
  245. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DxSEJe1W.js → gitGraphDiagram-WWUBYQGX-DNlzQUEd.js} +1 -1
  246. package/web-shell/assets/{index-DFo1HjyY.js → index-CEoLVNsR.js} +3 -3
  247. package/web-shell/assets/{index-BNQp1c9N.js → index-D3-F421W.js} +1 -1
  248. package/web-shell/assets/{infoDiagram-RXCK75RN-4WaqYuvJ.js → infoDiagram-RXCK75RN-BqwTMueq.js} +1 -1
  249. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CIcrvDB9.js → ishikawaDiagram-5VMMS53U-DtO4tLwV.js} +1 -1
  250. package/web-shell/assets/{journeyDiagram-EYS64GPL-3CjJlxB6.js → journeyDiagram-EYS64GPL-CFSU0yqx.js} +1 -1
  251. package/web-shell/assets/{kanban-definition-3QL26DDD-TqQCVAtw.js → kanban-definition-3QL26DDD-Co3XYypK.js} +1 -1
  252. package/web-shell/assets/{layout-Dbd3oBBa.js → layout-nWXTib3H.js} +1 -1
  253. package/web-shell/assets/{linear-ClRMHJ20.js → linear-D-XaGQzj.js} +1 -1
  254. package/web-shell/assets/{mermaid.core-TaBr_oOz.js → mermaid.core-iNkpLd37.js} +6 -6
  255. package/web-shell/assets/{mindmap-definition-FBJOCRG2-Cyo4dSB4.js → mindmap-definition-FBJOCRG2-ugnDSQpM.js} +1 -1
  256. package/web-shell/assets/{pegDiagram-XKGWAZYB-Ccf1Exjc.js → pegDiagram-XKGWAZYB-DFsc7FgE.js} +1 -1
  257. package/web-shell/assets/{pieDiagram-E7YTZNPT-ormGGEVA.js → pieDiagram-E7YTZNPT-fcQtkfjw.js} +1 -1
  258. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DJM_llZe.js → quadrantDiagram-AXDQQJYC-Dx7rAH6a.js} +1 -1
  259. package/web-shell/assets/{railroadDiagram-O6MQD6OU-CJFcdRR4.js → railroadDiagram-O6MQD6OU-0nnlkbZ1.js} +1 -1
  260. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-B4vrR47v.js → requirementDiagram-EFPCY7ZU-B-04HJA0.js} +1 -1
  261. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-qaKVHbEh.js → sankeyDiagram-P5KCCOFB-CLsEV75E.js} +1 -1
  262. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DdGKeP3J.js → sequenceDiagram-WJ2MYXX4-Cejvbn9H.js} +1 -1
  263. package/web-shell/assets/{sizeCapture-X5ZJPWSS-CrDxtc9t.js → sizeCapture-X5ZJPWSS-DZ3R_cCz.js} +1 -1
  264. package/web-shell/assets/{stateDiagram-HBIQ2CUA-BSM7VvtV.js → stateDiagram-HBIQ2CUA-BZEDmn1B.js} +1 -1
  265. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Bl6xZ4cy.js +1 -0
  266. package/web-shell/assets/{swimlanes-XN3QIQJK-DuFk2PjA.js → swimlanes-XN3QIQJK-3SAiHcQZ.js} +1 -1
  267. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DbPmOu0B.js +8 -0
  268. package/web-shell/assets/{timeline-definition-24CTP7MA-alUM0cR-.js → timeline-definition-24CTP7MA-BvRpsN9o.js} +1 -1
  269. package/web-shell/assets/{vennDiagram-4TSXK5OY-M-6RtS1I.js → vennDiagram-4TSXK5OY-B_run13a.js} +1 -1
  270. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BOmCrlLQ.js → wardleyDiagram-VM6X3IG4-86ZF0DQ5.js} +1 -1
  271. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BAcATvyH.js → xychartDiagram-S5SC5T6Z-CoxU4Yje.js} +1 -1
  272. package/web-shell/index.html +1 -1
  273. package/web-shell/sw.js +1 -1
  274. package/web-shell/assets/channel-XX5nZz4m.js +0 -1
  275. package/web-shell/assets/classDiagram-DTDB5LWJ-79OTR1FE.js +0 -1
  276. package/web-shell/assets/classDiagram-v2-JRS7N3AN-79OTR1FE.js +0 -1
  277. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BrpNPw00.js +0 -1
  278. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CNWsInx_.js +0 -8
@@ -139,10 +139,11 @@ import {
139
139
  selectTranscriptLeaf,
140
140
  shouldAttemptBrowserLaunch,
141
141
  stripGeneratedAttachmentTokens,
142
+ stripLeadingSystemReminders,
142
143
  validateTranscriptRecord,
143
144
  walkTranscriptUuidChain,
144
145
  wrapUserPromptSubmitContext
145
- } from "./chunk-FDNTWDR3.js";
146
+ } from "./chunk-GF6S73XT.js";
146
147
  import {
147
148
  SHARED_RECORD_SLOT,
148
149
  deriveSessionName,
@@ -194,7 +195,7 @@ import {
194
195
  getShellPagerEnv,
195
196
  isSignalTermination,
196
197
  normalizePathEnvForWindows
197
- } from "./chunk-RKDSZAAB.js";
198
+ } from "./chunk-3GX2JF2F.js";
198
199
  import {
199
200
  stripAnsi
200
201
  } from "./chunk-WU3R2YUE.js";
@@ -235,13 +236,13 @@ import {
235
236
  admitShellSandbox,
236
237
  assertShellSandboxCwd,
237
238
  probeShellSandbox
238
- } from "./chunk-ZUNJAPSW.js";
239
+ } from "./chunk-XGP4RGF4.js";
239
240
  import {
240
241
  resolveNetworkTarget
241
242
  } from "./chunk-HPQNI3OQ.js";
242
243
  import {
243
244
  isOmniDeliveryActive
244
- } from "./chunk-USV4PB5M.js";
245
+ } from "./chunk-JTIB6W5A.js";
245
246
  import {
246
247
  MediaResourceRegistry,
247
248
  evaluateMediaPolicyToolCall,
@@ -255,7 +256,7 @@ import {
255
256
  DEFERRED_TOOL_CALL_CANCELLATION_PREFIX,
256
257
  DEFERRED_TOOL_CALL_REFUSAL_PREFIX,
257
258
  resolveDeferredToolCall
258
- } from "./chunk-Z335FWG2.js";
259
+ } from "./chunk-6KVIR254.js";
259
260
  import {
260
261
  EXCLUDED_TOOLS_FOR_SUBAGENTS,
261
262
  READ_ONLY_INSPECTION_TOOLS,
@@ -284,7 +285,7 @@ import {
284
285
  splitCompoundCommand,
285
286
  splitCompoundCommandSegments,
286
287
  toolMatchesRuleToolName
287
- } from "./chunk-BASKI2UI.js";
288
+ } from "./chunk-UYG4HVPV.js";
288
289
  import {
289
290
  APPROVAL_MODES
290
291
  } from "./chunk-KQAVEXYD.js";
@@ -332,7 +333,7 @@ import {
332
333
  import {
333
334
  DashScopeOpenAICompatibleProvider,
334
335
  selectDashScopeThinkingKnob
335
- } from "./chunk-X4G33MXY.js";
336
+ } from "./chunk-UAN7WQIF.js";
336
337
  import {
337
338
  InvalidStreamError,
338
339
  getToolCallPreparations,
@@ -360,7 +361,7 @@ import {
360
361
  runWithAgentDisallowedTools,
361
362
  runWithRuntimeContentGenerator,
362
363
  spawnBlockReason
363
- } from "./chunk-NMOAEZHZ.js";
364
+ } from "./chunk-CCGIWTGK.js";
364
365
  import {
365
366
  getTeammateContext,
366
367
  isTeammate,
@@ -553,12 +554,13 @@ import {
553
554
  stripSystemReminderBlocks,
554
555
  validateForkToolList,
555
556
  wrapSystemReminder
556
- } from "./chunk-5RKM3PAM.js";
557
+ } from "./chunk-C6GZRQ6A.js";
557
558
  import {
559
+ EXPLICIT_TRUST_HINT,
558
560
  clearLoadedSkillTracking,
559
561
  collectAvailableSkillEntries,
560
562
  renderAvailableSkillsBlock
561
- } from "./chunk-2SMHE6PC.js";
563
+ } from "./chunk-GVJCUUWW.js";
562
564
  import {
563
565
  DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
564
566
  O1CodeIgnoreParser,
@@ -613,7 +615,7 @@ import {
613
615
  resolveReasoningCapabilities,
614
616
  resolveReasoningForModel,
615
617
  validateReasoningCapabilities
616
- } from "./chunk-UPULOYRG.js";
618
+ } from "./chunk-7H3GMHNV.js";
617
619
  import {
618
620
  ResponsesHttpError,
619
621
  classifyRetryError,
@@ -698,7 +700,7 @@ import {
698
700
  resolveProviderProtocol,
699
701
  resolveSavedModelApiKey,
700
702
  stripRuntimeSnapshotPrefix
701
- } from "./chunk-X4L2PDKJ.js";
703
+ } from "./chunk-H7Z2QHT6.js";
702
704
  import {
703
705
  DEFAULT_TOKEN_LIMIT,
704
706
  OUTPUT_TOKEN_CEILING,
@@ -766,7 +768,7 @@ import {
766
768
  createContentGenerator,
767
769
  resetPreloadedContentGenerator,
768
770
  resolveContentGeneratorConfigWithSources
769
- } from "./chunk-A2WXFTLD.js";
771
+ } from "./chunk-PGFXYKSJ.js";
770
772
  import {
771
773
  DEFAULT_O1CODE_MODEL
772
774
  } from "./chunk-LEXKU5FI.js";
@@ -13333,9 +13335,9 @@ function roundMs(value) {
13333
13335
  }
13334
13336
  __name(roundMs, "roundMs");
13335
13337
  function getAppendProfileOpenFlags() {
13336
- const constants3 = fs3.constants;
13337
- const noFollow = process.platform === "win32" ? 0 : constants3.O_NOFOLLOW ?? 0;
13338
- return (constants3.O_APPEND ?? 0) | (constants3.O_CREAT ?? 0) | (constants3.O_WRONLY ?? 0) | noFollow;
13338
+ const constants4 = fs3.constants;
13339
+ const noFollow = process.platform === "win32" ? 0 : constants4.O_NOFOLLOW ?? 0;
13340
+ return (constants4.O_APPEND ?? 0) | (constants4.O_CREAT ?? 0) | (constants4.O_WRONLY ?? 0) | noFollow;
13339
13341
  }
13340
13342
  __name(getAppendProfileOpenFlags, "getAppendProfileOpenFlags");
13341
13343
  function assertSafeProfileDirectory(dir) {
@@ -15115,7 +15117,7 @@ var backgroundTurnContext = new AsyncLocalStorage();
15115
15117
  // packages/core/src/services/chatRecordingService.ts
15116
15118
  import path10 from "node:path";
15117
15119
  import fs12 from "node:fs";
15118
- import { randomUUID as randomUUID5 } from "node:crypto";
15120
+ import { randomUUID as randomUUID6 } from "node:crypto";
15119
15121
  import { isDeepStrictEqual } from "node:util";
15120
15122
 
15121
15123
  // packages/core/src/utils/toolResultDisplayCompaction.ts
@@ -16094,12 +16096,13 @@ __name(aggregateUsage, "aggregateUsage");
16094
16096
  // packages/core/src/services/sessionService.ts
16095
16097
  import path9 from "node:path";
16096
16098
  import fs11 from "node:fs";
16097
- import { randomUUID as randomUUID4 } from "node:crypto";
16099
+ import { randomUUID as randomUUID5 } from "node:crypto";
16098
16100
  import readline from "node:readline";
16099
16101
 
16100
16102
  // packages/core/src/services/fileHistoryService.ts
16101
16103
  init_esbuild_shims();
16102
- import { createHash } from "node:crypto";
16104
+ import { createHash, randomUUID as randomUUID2 } from "node:crypto";
16105
+ import { constants as constants2 } from "node:fs";
16103
16106
  import {
16104
16107
  chmod,
16105
16108
  copyFile,
@@ -17037,19 +17040,54 @@ function resolveBackupPath(backupFileName, sessionId) {
17037
17040
  return backupPath;
17038
17041
  }
17039
17042
  __name(resolveBackupPath, "resolveBackupPath");
17040
- async function safeCopyFile(src, dst) {
17043
+ async function safeCopyFile(src, dst, mode = 0) {
17041
17044
  try {
17042
- await copyFile(src, dst);
17045
+ await copyFile(src, dst, mode);
17043
17046
  return "ok";
17044
17047
  } catch (e) {
17045
17048
  if (!isENOENT(e)) throw e;
17046
17049
  if (!await pathExists(src)) return "src-missing";
17047
17050
  await mkdir2(dirname(dst), { recursive: true });
17048
- await copyFile(src, dst);
17051
+ await copyFile(src, dst, mode);
17049
17052
  return "ok";
17050
17053
  }
17051
17054
  }
17052
17055
  __name(safeCopyFile, "safeCopyFile");
17056
+ var BACKUP_RENAME_RETRIES = 3;
17057
+ var BACKUP_RENAME_DELAY_MS = 50;
17058
+ async function copyBackupAtomically(filePath, backupPath, mode) {
17059
+ const tempPath = `${backupPath}.${randomUUID2()}.tmp`;
17060
+ try {
17061
+ const result = await safeCopyFile(
17062
+ filePath,
17063
+ tempPath,
17064
+ constants2.COPYFILE_EXCL
17065
+ );
17066
+ if (result === "src-missing") {
17067
+ await unlink3(tempPath).catch(() => void 0);
17068
+ return result;
17069
+ }
17070
+ await chmod(tempPath, mode & 4095 | 384);
17071
+ const handle = await open(tempPath, "r+");
17072
+ try {
17073
+ await handle.sync();
17074
+ } finally {
17075
+ await handle.close();
17076
+ }
17077
+ await chmod(tempPath, mode);
17078
+ await renameWithRetry(
17079
+ tempPath,
17080
+ backupPath,
17081
+ BACKUP_RENAME_RETRIES,
17082
+ BACKUP_RENAME_DELAY_MS
17083
+ );
17084
+ return "ok";
17085
+ } catch (e) {
17086
+ await unlink3(tempPath).catch(() => void 0);
17087
+ throw e;
17088
+ }
17089
+ }
17090
+ __name(copyBackupAtomically, "copyBackupAtomically");
17053
17091
  async function createBackup(filePath, version2, sessionId) {
17054
17092
  const backupFileName = getBackupFileName(filePath, version2);
17055
17093
  const backupPath = resolveBackupPath(backupFileName, sessionId);
@@ -17062,11 +17100,14 @@ async function createBackup(filePath, version2, sessionId) {
17062
17100
  }
17063
17101
  throw e;
17064
17102
  }
17065
- const result = await safeCopyFile(filePath, backupPath);
17103
+ const result = await copyBackupAtomically(
17104
+ filePath,
17105
+ backupPath,
17106
+ srcStats.mode
17107
+ );
17066
17108
  if (result === "src-missing") {
17067
17109
  return { backupFileName: null, version: version2, backupTime: /* @__PURE__ */ new Date() };
17068
17110
  }
17069
- await chmod(backupPath, srcStats.mode);
17070
17111
  return { backupFileName, version: version2, backupTime: /* @__PURE__ */ new Date() };
17071
17112
  }
17072
17113
  __name(createBackup, "createBackup");
@@ -18271,7 +18312,7 @@ __name(readSessionTitleInfoFromFileSync, "readSessionTitleInfoFromFileSync");
18271
18312
 
18272
18313
  // packages/core/src/services/session-organization-service.ts
18273
18314
  init_esbuild_shims();
18274
- import { randomUUID as randomUUID2 } from "node:crypto";
18315
+ import { randomUUID as randomUUID3 } from "node:crypto";
18275
18316
  import * as fs7 from "node:fs/promises";
18276
18317
  import * as path5 from "node:path";
18277
18318
  var GROUP_COLOR_OPTIONS = [
@@ -18453,7 +18494,7 @@ var SessionOrganizationService = class {
18453
18494
  }
18454
18495
  const now = (/* @__PURE__ */ new Date()).toISOString();
18455
18496
  const group = {
18456
- id: randomUUID2(),
18497
+ id: randomUUID3(),
18457
18498
  name,
18458
18499
  color,
18459
18500
  order: Math.min(
@@ -22732,7 +22773,7 @@ var SessionTranscriptReader = class {
22732
22773
  init_esbuild_shims();
22733
22774
  import { execFile as execFile3 } from "node:child_process";
22734
22775
  import * as nodeConstants from "node:constants";
22735
- import { createHash as createHash2, randomUUID as randomUUID3 } from "node:crypto";
22776
+ import { createHash as createHash2, randomUUID as randomUUID4 } from "node:crypto";
22736
22777
  import * as nodeFs from "node:fs";
22737
22778
  import * as fs10 from "node:fs/promises";
22738
22779
  import * as os from "node:os";
@@ -23957,7 +23998,7 @@ var SessionWriterLease = class _SessionWriterLease {
23957
23998
  schema_version: LOCK_SCHEMA_VERSION,
23958
23999
  state: "active",
23959
24000
  session_id: normalizedOptions.sessionId,
23960
- owner_id: randomUUID3(),
24001
+ owner_id: randomUUID4(),
23961
24002
  pid: process.pid,
23962
24003
  ...processStartIdentity ? { process_start_identity: processStartIdentity } : {},
23963
24004
  ...pidNamespaceId !== null ? { pid_namespace_id: pidNamespaceId } : {},
@@ -24017,7 +24058,7 @@ var SessionWriterLease = class _SessionWriterLease {
24017
24058
  );
24018
24059
  let primaryInstalled = false;
24019
24060
  let staleMoved = false;
24020
- const stalePath = `${lockPath}.stale.${process.pid}.${randomUUID3()}`;
24061
+ const stalePath = `${lockPath}.stale.${process.pid}.${randomUUID4()}`;
24021
24062
  try {
24022
24063
  await assertPathMissing(claimPath);
24023
24064
  const currentState = await _SessionWriterLease.inspectExistingLock(
@@ -26288,7 +26329,8 @@ ${payload}`, "utf8");
26288
26329
  for (const part of message.parts) {
26289
26330
  if ("text" in part) {
26290
26331
  const textPart = part;
26291
- const text = textPart.text;
26332
+ const text = stripLeadingSystemReminders(textPart.text);
26333
+ if (!text) continue;
26292
26334
  return this.truncatePromptForDisplay(text);
26293
26335
  }
26294
26336
  }
@@ -26303,7 +26345,7 @@ ${payload}`, "utf8");
26303
26345
  if (record2.type !== "user" || record2.subtype !== void 0) continue;
26304
26346
  const payload = record2.systemPayload;
26305
26347
  if (payload?.displayText !== void 0) {
26306
- const displayText = payload.displayText;
26348
+ const displayText = stripLeadingSystemReminders(payload.displayText);
26307
26349
  if (displayText) {
26308
26350
  return this.truncatePromptForDisplay(displayText);
26309
26351
  }
@@ -27548,7 +27590,7 @@ ${payload}`, "utf8");
27548
27590
  }
27549
27591
  const lastUuid = this.readLastRecordUuid(filePath);
27550
27592
  const titleRecord = {
27551
- uuid: randomUUID4(),
27593
+ uuid: randomUUID5(),
27552
27594
  parentUuid: lastUuid,
27553
27595
  sessionId,
27554
27596
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -27649,7 +27691,7 @@ ${payload}`, "utf8");
27649
27691
  throw new Error(`Source session not found or empty: ${sourceSessionId}`);
27650
27692
  }
27651
27693
  const sourceRecord = options2.source ? {
27652
- uuid: randomUUID4(),
27694
+ uuid: randomUUID5(),
27653
27695
  parentUuid: null,
27654
27696
  sessionId: newSessionId,
27655
27697
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -27723,7 +27765,7 @@ ${payload}`, "utf8");
27723
27765
  ).filter((snapshot) => !existingSnapshotPromptIds.has(snapshot.promptId));
27724
27766
  if (remappedSnapshots?.length) {
27725
27767
  const snapshotRecord = {
27726
- uuid: randomUUID4(),
27768
+ uuid: randomUUID5(),
27727
27769
  parentUuid: prevUuid,
27728
27770
  sessionId: newSessionId,
27729
27771
  type: "system",
@@ -27740,7 +27782,7 @@ ${payload}`, "utf8");
27740
27782
  }
27741
27783
  if (options2.title !== void 0) {
27742
27784
  const titleRecord = {
27743
- uuid: randomUUID4(),
27785
+ uuid: randomUUID5(),
27744
27786
  parentUuid: prevUuid,
27745
27787
  sessionId: newSessionId,
27746
27788
  type: "system",
@@ -27765,7 +27807,7 @@ ${payload}`, "utf8");
27765
27807
  }, "validateTargetBranchPoint");
27766
27808
  validateTargetBranchPoint();
27767
27809
  const body = forked.map((r) => JSON.stringify(r)).join("\n") + "\n";
27768
- const operationId = randomUUID4();
27810
+ const operationId = randomUUID5();
27769
27811
  const artifactSnapshots = rebuildSessionArtifactSnapshot(forked, newSessionId)?.artifacts ?? [];
27770
27812
  const stagedTranscriptPath = path9.join(
27771
27813
  chatsDir,
@@ -29004,7 +29046,7 @@ var ChatRecordingService = class {
29004
29046
  const backgroundTurn = background?.active && background.sessionId === this.getSessionId() && !getCurrentAgentId() ? background.turn : void 0;
29005
29047
  return {
29006
29048
  ...backgroundTurn ? { backgroundTurn } : {},
29007
- uuid: randomUUID5(),
29049
+ uuid: randomUUID6(),
29008
29050
  parentUuid: this.lastRecordUuid,
29009
29051
  sessionId: this.getSessionId(),
29010
29052
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -29435,7 +29477,7 @@ var ChatRecordingService = class {
29435
29477
  pendingCallsAtStart: input2.cursor.pendingToolCalls
29436
29478
  });
29437
29479
  if (!candidate) return void 0;
29438
- const checkpointUuid = randomUUID5();
29480
+ const checkpointUuid = randomUUID6();
29439
29481
  const checkpoint = {
29440
29482
  ...this.createBaseRecord("system"),
29441
29483
  uuid: checkpointUuid,
@@ -34789,7 +34831,7 @@ var LlmChat = class {
34789
34831
  const degradeAttempt = omniMediaDegradeAttempts++;
34790
34832
  let degradeOutcome;
34791
34833
  try {
34792
- const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-VBELPYNP.js");
34834
+ const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-RAVGIKCJ.js");
34793
34835
  degradeOutcome = await degradeOmniMediaAfterServerReject(
34794
34836
  self2.config,
34795
34837
  self2.history,
@@ -38372,7 +38414,7 @@ __name(computeCharContribution, "computeCharContribution");
38372
38414
  init_esbuild_shims();
38373
38415
  import * as fs36 from "node:fs/promises";
38374
38416
  import * as path37 from "node:path";
38375
- import { randomUUID as randomUUID10 } from "node:crypto";
38417
+ import { randomUUID as randomUUID11 } from "node:crypto";
38376
38418
 
38377
38419
  // packages/core/src/memory/store.ts
38378
38420
  init_esbuild_shims();
@@ -38503,7 +38545,7 @@ init_esbuild_shims();
38503
38545
 
38504
38546
  // packages/core/src/agents/forkedAgent.ts
38505
38547
  init_esbuild_shims();
38506
- import { randomUUID as randomUUID9 } from "node:crypto";
38548
+ import { randomUUID as randomUUID10 } from "node:crypto";
38507
38549
 
38508
38550
  // packages/core/src/tools/agent/agent.ts
38509
38551
  init_esbuild_shims();
@@ -38514,12 +38556,12 @@ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
38514
38556
  var goalTurnContext = new AsyncLocalStorage2();
38515
38557
 
38516
38558
  // packages/core/src/tools/agent/agent.ts
38517
- import { randomUUID as randomUUID8 } from "node:crypto";
38559
+ import { randomUUID as randomUUID9 } from "node:crypto";
38518
38560
  import { realpath as realpath3 } from "node:fs/promises";
38519
38561
 
38520
38562
  // packages/core/src/agents/runtime/agent-core.ts
38521
38563
  init_esbuild_shims();
38522
- import { randomUUID as randomUUID6 } from "node:crypto";
38564
+ import { randomUUID as randomUUID7 } from "node:crypto";
38523
38565
 
38524
38566
  // packages/core/src/core/coreToolScheduler.ts
38525
38567
  init_esbuild_shims();
@@ -41129,13 +41171,14 @@ function isNetworkPseudoDevice(target) {
41129
41171
  return /^\/dev\/(tcp|udp)\//.test(target);
41130
41172
  }
41131
41173
  __name(isNetworkPseudoDevice, "isNetworkPseudoDevice");
41174
+ var COMBINED_REDIRECT = /^(<<-?|1>>|1>\||1>|>>|>\||>|2>>|2>\||2>|&>>|&>|<)([\s\S]+)$/;
41132
41175
  function extractRedirects(tokens, cwd) {
41133
41176
  const readFiles = [];
41134
41177
  const writeFiles = [];
41135
41178
  const toRemove = /* @__PURE__ */ new Set();
41136
41179
  for (let i = 0; i < tokens.length; i++) {
41137
41180
  const tok = tokens[i];
41138
- if (tok === ">" || tok === "1>") {
41181
+ if (tok === ">" || tok === "1>" || tok === ">|" || tok === "1>|") {
41139
41182
  const target = tokens[i + 1];
41140
41183
  if (target && looksLikePath(target)) {
41141
41184
  if (!isNetworkPseudoDevice(target)) {
@@ -41171,7 +41214,7 @@ function extractRedirects(tokens, cwd) {
41171
41214
  toRemove.add(i + 1);
41172
41215
  i++;
41173
41216
  }
41174
- } else if (tok === "2>" || tok === "2>>" || tok === "&>" || tok === "&>>") {
41217
+ } else if (tok === "2>" || tok === "2>|" || tok === "2>>" || tok === "&>" || tok === "&>>") {
41175
41218
  const target = tokens[i + 1];
41176
41219
  if (target) {
41177
41220
  if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
@@ -41182,14 +41225,21 @@ function extractRedirects(tokens, cwd) {
41182
41225
  i++;
41183
41226
  }
41184
41227
  } else {
41185
- const m2 = tok.match(/^(<<-?|1>>|1>|>>|>|2>>|2>|&>>|&>|<)([\s\S]+)$/);
41228
+ const m2 = tok.match(COMBINED_REDIRECT);
41186
41229
  if (m2) {
41187
41230
  const op = m2[1];
41188
- const target = m2[2];
41231
+ let target = m2[2];
41189
41232
  if (op.startsWith("<<")) {
41190
41233
  toRemove.add(i);
41191
41234
  continue;
41192
41235
  }
41236
+ if (target.startsWith("&")) {
41237
+ target = target.slice(1);
41238
+ if (target === "" || /^(\d+|-)$/.test(target)) {
41239
+ toRemove.add(i);
41240
+ continue;
41241
+ }
41242
+ }
41193
41243
  if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
41194
41244
  if (op === "<") {
41195
41245
  readFiles.push(resolvePath2(target, cwd));
@@ -42724,6 +42774,20 @@ function getHeredocDelimiters(line) {
42724
42774
  return delimiters;
42725
42775
  }
42726
42776
  __name(getHeredocDelimiters, "getHeredocDelimiters");
42777
+ function extractRedirectOperations(command, cwd) {
42778
+ const { readFiles, writeFiles } = extractRedirects(tokenize2(command), cwd);
42779
+ return [
42780
+ ...readFiles.map((filePath) => ({
42781
+ virtualTool: "read_file",
42782
+ filePath
42783
+ })),
42784
+ ...writeFiles.map((filePath) => ({
42785
+ virtualTool: "write_file",
42786
+ filePath
42787
+ }))
42788
+ ];
42789
+ }
42790
+ __name(extractRedirectOperations, "extractRedirectOperations");
42727
42791
  function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42728
42792
  const subCommands = splitCompoundCommandSegments(stripHeredocBodies(command));
42729
42793
  const ops = [];
@@ -42732,6 +42796,12 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42732
42796
  for (const { command: sub, terminator } of subCommands) {
42733
42797
  const backgrounded = terminator === "&";
42734
42798
  const cdTarget = resolveCdTargetCwd(sub, effectiveCwd, cwdUnknown);
42799
+ if (cdTarget.kind !== "not-cd") {
42800
+ const redirectOps = extractRedirectOperations(sub, effectiveCwd);
42801
+ ops.push(
42802
+ ...cwdUnknown ? markCwdUnknownOps(redirectOps, sub, effectiveCwd) : redirectOps
42803
+ );
42804
+ }
42735
42805
  if (cdTarget.kind === "static") {
42736
42806
  if (!backgrounded) {
42737
42807
  effectiveCwd = cdTarget.cwd;
@@ -42775,9 +42845,8 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
42775
42845
  __name(walkCompoundCommand, "walkCompoundCommand");
42776
42846
  function hasAbsolutePathTokenForOperation(command, cwd, filePath) {
42777
42847
  for (const token of tokenize2(command)) {
42778
- const redirectTarget3 = token.match(
42779
- /^(?:1>>|1>|>>|>|2>>|2>|&>>|&>|<)([\s\S]+)$/
42780
- )?.[1];
42848
+ const redirect = token.match(COMBINED_REDIRECT);
42849
+ const redirectTarget3 = redirect?.[1]?.startsWith("<<") ? void 0 : redirect?.[2]?.replace(/^&/, "");
42781
42850
  const candidate = redirectTarget3 ?? token;
42782
42851
  if (looksLikePath(candidate) && isShellAbsolutePath(candidate) && resolvePath2(candidate, cwd) === filePath) {
42783
42852
  return true;
@@ -77524,7 +77593,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
77524
77593
  const notices = [];
77525
77594
  let omniProcessed = responseParts;
77526
77595
  if (this.config.isOmniEnabled?.()) {
77527
- const { processToolResultOmniMedia } = await import("./tool-result-media-QF5HXQW7.js");
77596
+ const { processToolResultOmniMedia } = await import("./tool-result-media-PXJEED5J.js");
77528
77597
  omniProcessed = await processToolResultOmniMedia(
77529
77598
  responseParts,
77530
77599
  this.config,
@@ -79005,7 +79074,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
79005
79074
  this.finalizeToolSpan(reqInfo.callId);
79006
79075
  continue;
79007
79076
  }
79008
- if (!requiresUserInteraction && isAutoEditApproved(approvalMode, confirmationDetails)) {
79077
+ if (!requiresUserInteraction && !pmForcedAsk && isAutoEditApproved(approvalMode, confirmationDetails)) {
79009
79078
  this.setToolCallOutcome(
79010
79079
  reqInfo.callId,
79011
79080
  "proceed_always" /* ProceedAlways */
@@ -80697,7 +80766,7 @@ ${body}
80697
80766
  artifacts: toolResult.artifacts
80698
80767
  } : void 0;
80699
80768
  if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
80700
- const { collectModelPolicyCall } = await import("./model-call-collection-FSMQKDF7.js");
80769
+ const { collectModelPolicyCall } = await import("./model-call-collection-HQF2N6XF.js");
80701
80770
  await collectModelPolicyCall({
80702
80771
  config: this.config,
80703
80772
  batch: policyArtifacts,
@@ -82049,7 +82118,7 @@ var AgentCore = class {
82049
82118
  lastPromptTokenCount = 0;
82050
82119
  toolUsage = /* @__PURE__ */ new Map();
82051
82120
  constructor(name, runtimeContext, promptConfig, modelConfig, runConfig, toolConfig, eventEmitter, hooks, runtimeView, taskName, subagentId) {
82052
- this.subagentId = subagentId ?? `${name}-${randomUUID6().replace(/-/g, "").slice(0, 8)}`;
82121
+ this.subagentId = subagentId ?? `${name}-${randomUUID7().replace(/-/g, "").slice(0, 8)}`;
82053
82122
  this.name = name;
82054
82123
  this.taskName = taskName;
82055
82124
  this.runtimeContext = runtimeContext;
@@ -82421,7 +82490,7 @@ var AgentCore = class {
82421
82490
  }
82422
82491
  async _runReasoningLoopInner(chat, initialMessages, toolsList, abortController, options2) {
82423
82492
  const startTime = options2?.startTimeMs ?? Date.now();
82424
- const runId = randomUUID6();
82493
+ const runId = randomUUID7();
82425
82494
  let currentMessages = initialMessages;
82426
82495
  let turnCounter = 0;
82427
82496
  let finalText = "";
@@ -83031,7 +83100,7 @@ ${text}` : text;
83031
83100
  }
83032
83101
  const responseByCallId = /* @__PURE__ */ new Map();
83033
83102
  const uniqueFunctionCalls = dedupeToolCallsById(functionCalls2);
83034
- const generatedCallIdBase = randomUUID6();
83103
+ const generatedCallIdBase = randomUUID7();
83035
83104
  const callIdByFunctionCall = new Map(
83036
83105
  uniqueFunctionCalls.map((functionCall, index) => [
83037
83106
  functionCall,
@@ -84777,7 +84846,7 @@ __name(toModelVisibleSubagentResult, "toModelVisibleSubagentResult");
84777
84846
  init_esbuild_shims();
84778
84847
  import * as fs24 from "node:fs";
84779
84848
  import * as path25 from "node:path";
84780
- import { randomUUID as randomUUID7 } from "node:crypto";
84849
+ import { randomUUID as randomUUID8 } from "node:crypto";
84781
84850
  var debugLogger35 = createDebugLogger("AGENT_TRANSCRIPT");
84782
84851
  var MAX_PENDING_STREAM_BYTES = 64 * 1024;
84783
84852
  var MAX_PERSISTED_RECENT_ACTIVITIES = 10;
@@ -84917,7 +84986,7 @@ function normalizeResumedAgentDepth(value) {
84917
84986
  }
84918
84987
  __name(normalizeResumedAgentDepth, "normalizeResumedAgentDepth");
84919
84988
  function writeAgentMeta(metaPath, meta4) {
84920
- const tempPath = `${metaPath}.${process.pid}.${randomUUID7()}.tmp`;
84989
+ const tempPath = `${metaPath}.${process.pid}.${randomUUID8()}.tmp`;
84921
84990
  try {
84922
84991
  fs24.mkdirSync(path25.dirname(metaPath), { recursive: true });
84923
84992
  fs24.writeFileSync(tempPath, JSON.stringify(meta4, null, 2), "utf8");
@@ -85055,7 +85124,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
85055
85124
  let fd = null;
85056
85125
  let streamFd = null;
85057
85126
  const streamPath = `${jsonlPath}.stream`;
85058
- const streamRunId = randomUUID7();
85127
+ const streamRunId = randomUUID8();
85059
85128
  let pendingStreamText = "";
85060
85129
  let pendingStreamBytes = 0;
85061
85130
  let streamFlushTimer = null;
@@ -85082,7 +85151,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
85082
85151
  }
85083
85152
  }, "ensureOpen");
85084
85153
  const baseFields = /* @__PURE__ */ __name((type) => ({
85085
- uuid: randomUUID7(),
85154
+ uuid: randomUUID8(),
85086
85155
  parentUuid: lastUuid,
85087
85156
  sessionId: options2.sessionId,
85088
85157
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
@@ -87289,7 +87358,7 @@ var AgentToolInvocation = class extends BaseToolInvocation {
87289
87358
  { externalExecutor: subagentConfig.executor !== void 0 }
87290
87359
  );
87291
87360
  restoreParentPM = cleanup;
87292
- const agentIdSuffix = this.callId ?? randomUUID8().slice(0, 8);
87361
+ const agentIdSuffix = this.callId ?? randomUUID9().slice(0, 8);
87293
87362
  const launchDepth = childLaunchDepth();
87294
87363
  const hookOpts = {
87295
87364
  agentId: `${subagentConfig.name}-${agentIdSuffix}`,
@@ -95270,7 +95339,7 @@ function runWithIsolatedFork(config2, runtime, fn) {
95270
95339
  const run = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(runtime, fn), "run");
95271
95340
  return reachesOrganizaOne(
95272
95341
  runtime.runtimeView?.contentGeneratorConfig ?? config2.getContentGeneratorConfig?.()
95273
- ) ? runWithAgentContext(`fork-${randomUUID9()}`, run) : run();
95342
+ ) ? runWithAgentContext(`fork-${randomUUID10()}`, run) : run();
95274
95343
  }
95275
95344
  __name(runWithIsolatedFork, "runWithIsolatedFork");
95276
95345
  function extractQueryUsage(metadata) {
@@ -95390,7 +95459,7 @@ async function runForkedAgent(params) {
95390
95459
  const isGateway = reachesOrganizaOne(
95391
95460
  modelRuntime.runtimeView?.contentGeneratorConfig ?? params.config.getContentGeneratorConfig?.()
95392
95461
  );
95393
- const invocationId = isGateway ? `${params.name}-${randomUUID9()}` : void 0;
95462
+ const invocationId = isGateway ? `${params.name}-${randomUUID10()}` : void 0;
95394
95463
  const promptConfig = {
95395
95464
  systemPrompt: params.systemPrompt,
95396
95465
  initialMessages: isGateway && sourceMessages ? gatewayIndependentInput(sourceMessages) : sourceMessages
@@ -98732,7 +98801,7 @@ var WRITE_TOOL_NAMES2 = /* @__PURE__ */ new Set([
98732
98801
  function makeTaskRecord(type, projectRoot, sessionId) {
98733
98802
  const now = (/* @__PURE__ */ new Date()).toISOString();
98734
98803
  return {
98735
- id: randomUUID10(),
98804
+ id: randomUUID11(),
98736
98805
  taskType: type,
98737
98806
  projectRoot,
98738
98807
  sessionId,
@@ -99842,7 +99911,7 @@ import fsPromises2 from "node:fs/promises";
99842
99911
 
99843
99912
  // packages/core/src/core/message-display-dispatcher.ts
99844
99913
  init_esbuild_shims();
99845
- import { randomUUID as randomUUID11 } from "node:crypto";
99914
+ import { randomUUID as randomUUID12 } from "node:crypto";
99846
99915
 
99847
99916
  // packages/core/src/core/message-display-buffer.ts
99848
99917
  init_esbuild_shims();
@@ -99890,7 +99959,7 @@ var MessageDisplayDispatcher = class {
99890
99959
  static {
99891
99960
  __name(this, "MessageDisplayDispatcher");
99892
99961
  }
99893
- messageId = randomUUID11();
99962
+ messageId = randomUUID12();
99894
99963
  state;
99895
99964
  /** Newest undelivered mid-stream text, coalesced behind {@link inFlight}. */
99896
99965
  pending = null;
@@ -102712,6 +102781,11 @@ The current date is: ${today}. Note: This is the authoritative current date \u20
102712
102781
  this.lastInjectedDate = today;
102713
102782
  }
102714
102783
  }
102784
+ if (messageType === "userQuery" /* UserQuery */) {
102785
+ for (const reminder of this.config.consumeTurnReminders?.() ?? []) {
102786
+ systemReminders.push(wrapSystemReminder(reminder));
102787
+ }
102788
+ }
102715
102789
  if (this.config.getApprovalMode() === "plan" /* PLAN */) {
102716
102790
  systemReminders.push(
102717
102791
  // SDK clients do not receive the interactive exit-plan flow, so
@@ -111406,9 +111480,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111406
111480
  const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
111407
111481
  return `${varKind} ${this.name}${rhs};` + _n2;
111408
111482
  }
111409
- optimizeNames(names, constants3) {
111483
+ optimizeNames(names, constants4) {
111410
111484
  if (!names[this.name.str]) return;
111411
- if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants3);
111485
+ if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants4);
111412
111486
  return this;
111413
111487
  }
111414
111488
  get names() {
@@ -111428,9 +111502,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111428
111502
  render({ _n: _n2 }) {
111429
111503
  return `${this.lhs} = ${this.rhs};` + _n2;
111430
111504
  }
111431
- optimizeNames(names, constants3) {
111505
+ optimizeNames(names, constants4) {
111432
111506
  if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) return;
111433
- this.rhs = optimizeExpr(this.rhs, names, constants3);
111507
+ this.rhs = optimizeExpr(this.rhs, names, constants4);
111434
111508
  return this;
111435
111509
  }
111436
111510
  get names() {
@@ -111504,8 +111578,8 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111504
111578
  optimizeNodes() {
111505
111579
  return `${this.code}` ? this : void 0;
111506
111580
  }
111507
- optimizeNames(names, constants3) {
111508
- this.code = optimizeExpr(this.code, names, constants3);
111581
+ optimizeNames(names, constants4) {
111582
+ this.code = optimizeExpr(this.code, names, constants4);
111509
111583
  return this;
111510
111584
  }
111511
111585
  get names() {
@@ -111534,12 +111608,12 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111534
111608
  }
111535
111609
  return nodes.length > 0 ? this : void 0;
111536
111610
  }
111537
- optimizeNames(names, constants3) {
111611
+ optimizeNames(names, constants4) {
111538
111612
  const { nodes } = this;
111539
111613
  let i = nodes.length;
111540
111614
  while (i--) {
111541
111615
  const n = nodes[i];
111542
- if (n.optimizeNames(names, constants3)) continue;
111616
+ if (n.optimizeNames(names, constants4)) continue;
111543
111617
  subtractNames(names, n.names);
111544
111618
  nodes.splice(i, 1);
111545
111619
  }
@@ -111598,11 +111672,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111598
111672
  if (cond === false || !this.nodes.length) return void 0;
111599
111673
  return this;
111600
111674
  }
111601
- optimizeNames(names, constants3) {
111675
+ optimizeNames(names, constants4) {
111602
111676
  var _a3;
111603
- this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names, constants3);
111604
- if (!(super.optimizeNames(names, constants3) || this.else)) return;
111605
- this.condition = optimizeExpr(this.condition, names, constants3);
111677
+ this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names, constants4);
111678
+ if (!(super.optimizeNames(names, constants4) || this.else)) return;
111679
+ this.condition = optimizeExpr(this.condition, names, constants4);
111606
111680
  return this;
111607
111681
  }
111608
111682
  get names() {
@@ -111630,9 +111704,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111630
111704
  render(opts) {
111631
111705
  return `for(${this.iteration})` + super.render(opts);
111632
111706
  }
111633
- optimizeNames(names, constants3) {
111634
- if (!super.optimizeNames(names, constants3)) return;
111635
- this.iteration = optimizeExpr(this.iteration, names, constants3);
111707
+ optimizeNames(names, constants4) {
111708
+ if (!super.optimizeNames(names, constants4)) return;
111709
+ this.iteration = optimizeExpr(this.iteration, names, constants4);
111636
111710
  return this;
111637
111711
  }
111638
111712
  get names() {
@@ -111673,9 +111747,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111673
111747
  render(opts) {
111674
111748
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
111675
111749
  }
111676
- optimizeNames(names, constants3) {
111677
- if (!super.optimizeNames(names, constants3)) return;
111678
- this.iterable = optimizeExpr(this.iterable, names, constants3);
111750
+ optimizeNames(names, constants4) {
111751
+ if (!super.optimizeNames(names, constants4)) return;
111752
+ this.iterable = optimizeExpr(this.iterable, names, constants4);
111679
111753
  return this;
111680
111754
  }
111681
111755
  get names() {
@@ -111723,11 +111797,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111723
111797
  (_b = this.finally) === null || _b === void 0 || _b.optimizeNodes();
111724
111798
  return this;
111725
111799
  }
111726
- optimizeNames(names, constants3) {
111800
+ optimizeNames(names, constants4) {
111727
111801
  var _a3, _b;
111728
- super.optimizeNames(names, constants3);
111729
- (_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names, constants3);
111730
- (_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names, constants3);
111802
+ super.optimizeNames(names, constants4);
111803
+ (_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names, constants4);
111804
+ (_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names, constants4);
111731
111805
  return this;
111732
111806
  }
111733
111807
  get names() {
@@ -111987,7 +112061,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111987
112061
  return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
111988
112062
  }
111989
112063
  __name(addExprNames, "addExprNames");
111990
- function optimizeExpr(expr, names, constants3) {
112064
+ function optimizeExpr(expr, names, constants4) {
111991
112065
  if (expr instanceof code_1.Name) return replaceName(expr);
111992
112066
  if (!canOptimize(expr)) return expr;
111993
112067
  return new code_1._Code(expr._items.reduce((items, c) => {
@@ -111997,14 +112071,14 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
111997
112071
  return items;
111998
112072
  }, []));
111999
112073
  function replaceName(n) {
112000
- const c = constants3[n.str];
112074
+ const c = constants4[n.str];
112001
112075
  if (c === void 0 || names[n.str] !== 1) return n;
112002
112076
  delete names[n.str];
112003
112077
  return c;
112004
112078
  }
112005
112079
  __name(replaceName, "replaceName");
112006
112080
  function canOptimize(e) {
112007
- return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants3[c.str] !== void 0);
112081
+ return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants4[c.str] !== void 0);
112008
112082
  }
112009
112083
  __name(canOptimize, "canOptimize");
112010
112084
  }
@@ -133976,14 +134050,15 @@ var PermissionManager = class _PermissionManager {
133976
134050
  /**
133977
134051
  * The session allow rules in force right now: every rule the user granted,
133978
134052
  * plus the repository-granted (`trustGated`) ones only while the folder is
133979
- * trusted. Trust is re-read on every call — `Config.isTrustedFolder()` is
134053
+ * explicitly trusted. Trust is re-read on every call —
134054
+ * `Config.isExplicitlyTrustedFolder()` is
133980
134055
  * live under an IDE connection — so a revocation mid-session suspends a
133981
134056
  * project skill's grants at the next decision, and a later grant of trust
133982
134057
  * restores them, the second side of the gate `applySideEffects` enforces
133983
134058
  * on the way in.
133984
134059
  */
133985
134060
  activeSessionAllowRules() {
133986
- const trusted = this.config.isTrustedFolder?.() ?? true;
134061
+ const trusted = this.config.isExplicitlyTrustedFolder?.() ?? false;
133987
134062
  return trusted ? this.sessionRules.allow : this.sessionRules.allow.filter((rule) => !rule.trustGated);
133988
134063
  }
133989
134064
  /**
@@ -134256,7 +134331,7 @@ var import_yaml3 = __toESM(require_dist2(), 1);
134256
134331
  import * as fs46 from "fs/promises";
134257
134332
  import * as path48 from "path";
134258
134333
  import * as os10 from "os";
134259
- import { randomUUID as randomUUID12 } from "crypto";
134334
+ import { randomUUID as randomUUID13 } from "crypto";
134260
134335
 
134261
134336
  // packages/core/src/subagents/validation.ts
134262
134337
  init_esbuild_shims();
@@ -135423,13 +135498,13 @@ ${config2.systemPrompt}
135423
135498
  );
135424
135499
  const { context: subagentContext, cleanup } = await this.buildSubagentContextOverride(runtimeContext, config2);
135425
135500
  disposeSubagentRegistry = cleanup;
135426
- const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID12().replace(/-/g, "").slice(0, 8)}`;
135501
+ const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID13().replace(/-/g, "").slice(0, 8)}`;
135427
135502
  const hookSystem = runtimeContext.getHookSystem();
135428
135503
  const hookRegistry = hookSystem?.getRegistry();
135429
135504
  if (config2.hooks && Object.keys(config2.hooks).length > 0) {
135430
- if (config2.level === "project" && !runtimeContext.isTrustedFolder()) {
135505
+ if (config2.level === "project" && !runtimeContext.isExplicitlyTrustedFolder()) {
135431
135506
  debugLogger82.warn(
135432
- `Subagent "${config2.name}" is a project agent in an untrusted folder; ignoring its hooks.`
135507
+ `Subagent "${config2.name}" requires explicit folder trust; ignoring its hooks. ${EXPLICIT_TRUST_HINT}`
135433
135508
  );
135434
135509
  } else if (hookRegistry) {
135435
135510
  unregisterAgentHooks = hookRegistry.addAgentHooks(
@@ -144569,7 +144644,7 @@ __name(extractZipArchive, "extractZipArchive");
144569
144644
  init_esbuild_shims();
144570
144645
  import * as fs61 from "node:fs/promises";
144571
144646
  import * as path63 from "node:path";
144572
- import { randomUUID as randomUUID13 } from "node:crypto";
144647
+ import { randomUUID as randomUUID14 } from "node:crypto";
144573
144648
  var EXTENSION_GIT_CREDENTIAL_SELECTOR_FILENAME = ".o1-code-extension-git-credentials.json";
144574
144649
  var GIT_CREDENTIAL_SERVICE_NAME = "O1-Code Extension Git Credentials";
144575
144650
  var GIT_CREDENTIAL_KEY_PREFIX = "$o1-code:extension-git:v1:";
@@ -144647,7 +144722,7 @@ async function writeGitCredentialSelector(extensionDir, selector) {
144647
144722
  __name(writeGitCredentialSelector, "writeGitCredentialSelector");
144648
144723
  async function prepareStoredGitCredential(extensionDir, credential) {
144649
144724
  const storage = new HybridTokenStorage(GIT_CREDENTIAL_SERVICE_NAME);
144650
- const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID13()}`;
144725
+ const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID14()}`;
144651
144726
  await storage.setSecret(secretKey, JSON.stringify(credential));
144652
144727
  const selector = {
144653
144728
  version: 1,
@@ -146818,7 +146893,7 @@ init_esbuild_shims();
146818
146893
  var dotenv = __toESM(require_main(), 1);
146819
146894
  import * as fs67 from "node:fs/promises";
146820
146895
  import * as fsSync3 from "node:fs";
146821
- import { randomUUID as randomUUID15 } from "node:crypto";
146896
+ import { randomUUID as randomUUID16 } from "node:crypto";
146822
146897
  import * as path68 from "node:path";
146823
146898
  var import_prompts7 = __toESM(require_prompts3(), 1);
146824
146899
  var debugLogger98 = createDebugLogger("EXT_SETTINGS");
@@ -146967,7 +147042,7 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
146967
147042
  const envContent = formatEnvContent(nonSensitiveSettings);
146968
147043
  await atomicWriteFile(envFilePath, envContent, { noFollow: true });
146969
147044
  if (Object.keys(sensitiveSettings).length > 0) {
146970
- const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID15()}`;
147045
+ const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID16()}`;
146971
147046
  await keychain.setSecret(bundleKey, JSON.stringify(sensitiveSettings));
146972
147047
  newSelector = {
146973
147048
  version: 1,
@@ -153567,7 +153642,7 @@ var HookRegistry = class {
153567
153642
  // packages/core/src/hooks/hookRunner.ts
153568
153643
  init_esbuild_shims();
153569
153644
  import { execFile as execFile8, spawn as spawn6 } from "node:child_process";
153570
- import { randomUUID as randomUUID17 } from "node:crypto";
153645
+ import { randomUUID as randomUUID18 } from "node:crypto";
153571
153646
  import { rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";
153572
153647
  import { platform as platform3, tmpdir as tmpdir4 } from "node:os";
153573
153648
  import { join as join54 } from "node:path";
@@ -155559,7 +155634,7 @@ __name(terminateSurvivingHookProcessGroup, "terminateSurvivingHookProcessGroup")
155559
155634
  function createSurvivingHookInputFile(input2) {
155560
155635
  const path80 = join54(
155561
155636
  tmpdir4(),
155562
- `o1-code-hook-input-${process.pid}-${randomUUID17()}.json`
155637
+ `o1-code-hook-input-${process.pid}-${randomUUID18()}.json`
155563
155638
  );
155564
155639
  writeFileSync8(path80, JSON.stringify(input2), {
155565
155640
  encoding: "utf8",
@@ -157689,7 +157764,7 @@ var HookEventHandler = class {
157689
157764
  const sessionHooks = registeredSessionHooks.some(
157690
157765
  (entry) => entry.trustGated === true
157691
157766
  ) ? registeredSessionHooks.filter(
157692
- (entry) => !entry.trustGated || this.config.isTrustedFolder()
157767
+ (entry) => !entry.trustGated || this.config.isExplicitlyTrustedFolder()
157693
157768
  ) : registeredSessionHooks;
157694
157769
  if (sessionHooks.length !== registeredSessionHooks.length) {
157695
157770
  debugLogger115.debug(
@@ -158927,7 +159002,9 @@ function buildHooksListing(config2) {
158927
159002
  hookId: entry.hookId,
158928
159003
  skillRoot: entry.skillRoot
158929
159004
  },
158930
- gates
159005
+ // A repository's own hook fires only under explicit trust, so the
159006
+ // listing must not show it as enabled on the weaker answer.
159007
+ entry.trustGated ? { ...gates, trustedFolder: config2.isExplicitlyTrustedFolder() } : gates
158931
159008
  )
158932
159009
  );
158933
159010
  }
@@ -158981,7 +159058,7 @@ var HOOK_EVENT_DISPLAY = Object.freeze({
158981
159058
 
158982
159059
  // packages/core/src/confirmation-bus/message-bus.ts
158983
159060
  init_esbuild_shims();
158984
- import { randomUUID as randomUUID18 } from "node:crypto";
159061
+ import { randomUUID as randomUUID19 } from "node:crypto";
158985
159062
  import { EventEmitter as EventEmitter6 } from "node:events";
158986
159063
  var debugLogger118 = createDebugLogger("TRUSTED_HOOKS");
158987
159064
  var MessageBus = class extends EventEmitter6 {
@@ -159042,7 +159119,7 @@ var MessageBus = class extends EventEmitter6 {
159042
159119
  * The correlation ID is generated internally and added to the request
159043
159120
  */
159044
159121
  async request(request, responseType, timeoutMs = 6e4, signal) {
159045
- const correlationId = randomUUID18();
159122
+ const correlationId = randomUUID19();
159046
159123
  return new Promise((resolve34, reject) => {
159047
159124
  if (signal?.aborted) {
159048
159125
  reject(new Error("Request aborted"));
@@ -159174,7 +159251,7 @@ function isSdkMcpServerConfig(config2) {
159174
159251
  __name(isSdkMcpServerConfig, "isSdkMcpServerConfig");
159175
159252
 
159176
159253
  // packages/core/src/config/config.ts
159177
- import { createHash as createHash12, randomUUID as randomUUID19 } from "node:crypto";
159254
+ import { createHash as createHash12, randomUUID as randomUUID20 } from "node:crypto";
159178
159255
 
159179
159256
  // packages/core/src/memory/memoryDiscovery.ts
159180
159257
  init_esbuild_shims();
@@ -161957,7 +162034,7 @@ async function getMemoryFilePathsInternalForEachDir(dir, userHomePath, fileServi
161957
162034
  logger4.debug(`Determined project root: ${projectRoot ?? "None"}`);
161958
162035
  const upwardPaths = [];
161959
162036
  let currentDir = resolvedCwd;
161960
- const ultimateStopDir = projectRoot ? path76.dirname(projectRoot) : path76.dirname(resolvedHome);
162037
+ const ultimateStopDir = projectRoot ?? path76.dirname(resolvedHome);
161961
162038
  while (currentDir && currentDir !== path76.dirname(currentDir)) {
161962
162039
  if (currentDir === globalO1CodeDir || currentDir === path76.join(resolvedHome, O1CODE_DIR)) {
161963
162040
  break;
@@ -163276,6 +163353,7 @@ var Config = class _Config {
163276
163353
  */
163277
163354
  pendingStartupWorktreeNotice = null;
163278
163355
  pendingRecoveredAgentsNotice = null;
163356
+ turnReminders = [];
163279
163357
  debugLogger;
163280
163358
  toolRegistry;
163281
163359
  /**
@@ -163740,7 +163818,7 @@ var Config = class _Config {
163740
163818
  Storage.getGlobalO1CodeDir()
163741
163819
  );
163742
163820
  this.provisionalWorkspace = params.provisionalWorkspace === true;
163743
- this.sessionId = params.sessionId ?? randomUUID19();
163821
+ this.sessionId = params.sessionId ?? randomUUID20();
163744
163822
  if (!sessionEnvClaimed && process6.env) {
163745
163823
  process6.env["O1CODE_SESSION_ID"] = this.sessionId;
163746
163824
  sessionEnvClaimed = true;
@@ -164264,7 +164342,7 @@ var Config = class _Config {
164264
164342
  await this.proxyDispatcherReady;
164265
164343
  options2?.signal?.throwIfAborted();
164266
164344
  if (this.isOmniEnabled()) {
164267
- const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-A53Y6PRH.js");
164345
+ const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-GAXSQ3UL.js");
164268
164346
  this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
164269
164347
  baseUrl: this.omniUploadBaseUrl,
164270
164348
  apiKeyEnv: this.omniUploadApiKeyEnv,
@@ -165454,7 +165532,7 @@ var Config = class _Config {
165454
165532
  void outgoingChatRecordingService?.flush().catch(() => {
165455
165533
  });
165456
165534
  const previousSessionId = this.sessionId;
165457
- const nextSessionId = sessionId ?? randomUUID19();
165535
+ const nextSessionId = sessionId ?? randomUUID20();
165458
165536
  const isSessionTransition = nextSessionId !== previousSessionId;
165459
165537
  if (isSessionTransition) {
165460
165538
  logSessionEnd(this);
@@ -165476,6 +165554,7 @@ var Config = class _Config {
165476
165554
  }
165477
165555
  this.clearSessionRestoreProjection();
165478
165556
  this.pendingRecoveredAgentsNotice = null;
165557
+ this.getOwnTurnReminders().length = 0;
165479
165558
  this.clearActiveTodoReminders();
165480
165559
  if (sessionIdContext.getStore() === void 0) {
165481
165560
  setDebugLogSession(this);
@@ -168177,7 +168256,7 @@ var Config = class _Config {
168177
168256
  return this.omniPolicyTools;
168178
168257
  }
168179
168258
  async loadOmniMediaReader() {
168180
- return import("./omni-TWP5GBCI.js");
168259
+ return import("./omni-MLLL6UUM.js");
168181
168260
  }
168182
168261
  /** Normalized `omni.processing` view. Undefined until tool warmup
168183
168262
  * completes (or when omni is disabled). */
@@ -169063,6 +169142,17 @@ var Config = class _Config {
169063
169142
  }
169064
169143
  return this.trustedFolder ?? !this.folderTrust;
169065
169144
  }
169145
+ /**
169146
+ * Whether someone actually said this folder is trusted: the folder-trust
169147
+ * feature is on and the folder passed it, or the IDE reports the workspace
169148
+ * as trusted. With the feature off every folder counts as trusted, which is
169149
+ * not a decision anyone made; commands a repository supplies (frontmatter
169150
+ * hooks, tool grants, its own language servers) need this stronger answer.
169151
+ */
169152
+ isExplicitlyTrustedFolder() {
169153
+ const ideTrust = ideContextStore.get()?.workspaceState?.isTrusted;
169154
+ return (this.folderTrust || ideTrust !== void 0) && this.isTrustedFolder();
169155
+ }
169066
169156
  setIdeMode(value) {
169067
169157
  if (this.shellExecutionSandbox && value)
169068
169158
  throw new Error(
@@ -169661,6 +169751,29 @@ var Config = class _Config {
169661
169751
  this.pendingRecoveredAgentsNotice = null;
169662
169752
  return notice;
169663
169753
  }
169754
+ // A Config derived from this one (a subagent's) must not drain the
169755
+ // reminders queued for the main conversation, so the queue is an own
169756
+ // property of each instance.
169757
+ getOwnTurnReminders() {
169758
+ if (!Object.prototype.hasOwnProperty.call(this, "turnReminders")) {
169759
+ this.turnReminders = [];
169760
+ }
169761
+ return this.turnReminders;
169762
+ }
169763
+ /**
169764
+ * Queues text that only the model reads, delivered as a system reminder
169765
+ * with the next user prompt. A host uses this instead of writing the
169766
+ * reminder into the prompt, which is the user's own text: it is rendered,
169767
+ * recorded and recalled as what they typed.
169768
+ */
169769
+ queueTurnReminder(text) {
169770
+ if (text.trim().length > 0) {
169771
+ this.getOwnTurnReminders().push(text);
169772
+ }
169773
+ }
169774
+ consumeTurnReminders() {
169775
+ return this.getOwnTurnReminders().splice(0);
169776
+ }
169664
169777
  async resumeBackgroundAgent(agentId, initialMessage) {
169665
169778
  return this.getBackgroundAgentResumeService().resumeBackgroundAgent(
169666
169779
  agentId,
@@ -169827,7 +169940,7 @@ var Config = class _Config {
169827
169940
  async registerWorkflowTool(registry2) {
169828
169941
  if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
169829
169942
  await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
169830
- const { WorkflowTool } = await import("./workflow-ZSVXMZ6V.js");
169943
+ const { WorkflowTool } = await import("./workflow-V26XKAXG.js");
169831
169944
  return new WorkflowTool(this);
169832
169945
  });
169833
169946
  return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
@@ -169876,7 +169989,7 @@ var Config = class _Config {
169876
169989
  return;
169877
169990
  }
169878
169991
  const factory = /* @__PURE__ */ __name(async () => {
169879
- const { RecordSourceTool } = await import("./record-source-SKISWRL5.js");
169992
+ const { RecordSourceTool } = await import("./record-source-4K4EQAX7.js");
169880
169993
  return new RecordSourceTool(this);
169881
169994
  }, "factory");
169882
169995
  if (status === "deferred") {
@@ -169907,16 +170020,16 @@ var Config = class _Config {
169907
170020
  const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
169908
170021
  if (options2?.forSubAgent) return;
169909
170022
  await registerLazy(ToolNames.GET_GOAL, async () => {
169910
- const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-RHACDZ5U.js");
170023
+ const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
169911
170024
  return new GetGoalTool2(this);
169912
170025
  });
169913
170026
  await registerLazy(ToolNames.UPDATE_GOAL, async () => {
169914
- const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-RHACDZ5U.js");
170027
+ const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
169915
170028
  return new UpdateGoalTool2(this);
169916
170029
  });
169917
170030
  if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
169918
170031
  await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
169919
- const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-RHACDZ5U.js");
170032
+ const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
169920
170033
  return new ProposeGoalTool2(this);
169921
170034
  });
169922
170035
  }
@@ -169936,16 +170049,16 @@ var Config = class _Config {
169936
170049
  });
169937
170050
  }
169938
170051
  await registerLazy(ToolNames.WEB_FETCH, async () => {
169939
- const { WebFetchTool } = await import("./web-fetch-4IG2L5TB.js");
170052
+ const { WebFetchTool } = await import("./web-fetch-XIUI6SSS.js");
169940
170053
  return new WebFetchTool(this);
169941
170054
  });
169942
170055
  const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
169943
170056
  if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
169944
- const { evaluateWebSearchGate } = await import("./web-search-PXPZ3HCQ.js");
170057
+ const { evaluateWebSearchGate } = await import("./web-search-53FZUSEO.js");
169945
170058
  const gate = evaluateWebSearchGate(this);
169946
170059
  if (gate.ok) {
169947
170060
  await registerLazy(ToolNames.WEB_SEARCH, async () => {
169948
- const { WebSearchTool } = await import("./web-search-PXPZ3HCQ.js");
170061
+ const { WebSearchTool } = await import("./web-search-53FZUSEO.js");
169949
170062
  return new WebSearchTool(this);
169950
170063
  });
169951
170064
  } else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
@@ -169962,8 +170075,8 @@ var Config = class _Config {
169962
170075
  );
169963
170076
  }
169964
170077
  const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
169965
- import("./local-execution-environment-HTR2MQYF.js"),
169966
- import("./execution-tool-I5FWVNBN.js")
170078
+ import("./local-execution-environment-W6RR5CM2.js"),
170079
+ import("./execution-tool-IEMS4OMY.js")
169967
170080
  ]);
169968
170081
  for (const [name, tool] of createExecutionTools(this)) {
169969
170082
  if (environment.toolNames && !environment.toolNames.has(name)) continue;
@@ -169974,11 +170087,11 @@ var Config = class _Config {
169974
170087
  );
169975
170088
  }
169976
170089
  await registerLazy(ToolNames.TOOL_CALL, async () => {
169977
- const { ToolCallTool } = await import("./tool-call-GFZXS57E.js");
170090
+ const { ToolCallTool } = await import("./tool-call-ZR564L2K.js");
169978
170091
  return new ToolCallTool(registry2);
169979
170092
  });
169980
170093
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
169981
- const { ToolSearchTool } = await import("./tool-search-JUYHPTLU.js");
170094
+ const { ToolSearchTool } = await import("./tool-search-5GZKW7RO.js");
169982
170095
  return new ToolSearchTool(this);
169983
170096
  });
169984
170097
  if (this.executionEnvironment && !options2?.forSubAgent) {
@@ -169990,7 +170103,7 @@ var Config = class _Config {
169990
170103
  }
169991
170104
  if (this.shellExecutionSandbox) {
169992
170105
  await registerLazy(ToolNames.SHELL, async () => {
169993
- const { ShellTool: ShellTool2 } = await import("./shell-H7OVXNTJ.js");
170106
+ const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
169994
170107
  return new ShellTool2(this);
169995
170108
  });
169996
170109
  await registerLazy(ToolNames.TASK_STOP, async () => {
@@ -169998,27 +170111,27 @@ var Config = class _Config {
169998
170111
  return new TaskStopTool(this);
169999
170112
  });
170000
170113
  await registerLazy(ToolNames.READ_FILE, async () => {
170001
- const { ReadFileTool } = await import("./read-file-CBWUHH7L.js");
170114
+ const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
170002
170115
  return new ReadFileTool(this);
170003
170116
  });
170004
170117
  await registerLazy(ToolNames.WRITE_FILE, async () => {
170005
- const { WriteFileTool } = await import("./write-file-CGE7ZDR6.js");
170118
+ const { WriteFileTool } = await import("./write-file-OA3YWX4Z.js");
170006
170119
  return new WriteFileTool(this);
170007
170120
  });
170008
170121
  await registerLazy(ToolNames.EDIT, async () => {
170009
- const { EditTool } = await import("./edit-2IEELV32.js");
170122
+ const { EditTool } = await import("./edit-EI2QZFML.js");
170010
170123
  return new EditTool(this);
170011
170124
  });
170012
170125
  await registerLazy(ToolNames.MONITOR, async () => {
170013
- const { MonitorTool } = await import("./monitor-Y4BAUHQ3.js");
170126
+ const { MonitorTool } = await import("./monitor-4DJ5VKXK.js");
170014
170127
  return new MonitorTool(this);
170015
170128
  });
170016
170129
  await registerLazy(ToolNames.AGENT, async () => {
170017
- const { AgentTool: AgentTool2 } = await import("./agent-KPY2HBYP.js");
170130
+ const { AgentTool: AgentTool2 } = await import("./agent-O6PLYNPF.js");
170018
170131
  return new AgentTool2(this);
170019
170132
  });
170020
170133
  await registerLazy(ToolNames.GLOB, async () => {
170021
- const { GlobTool } = await import("./glob-JISX3DBJ.js");
170134
+ const { GlobTool } = await import("./glob-QZSWKHOW.js");
170022
170135
  return new GlobTool(this);
170023
170136
  });
170024
170137
  await registerLazy(ToolNames.LS, async () => {
@@ -170037,19 +170150,19 @@ var Config = class _Config {
170037
170150
  }
170038
170151
  if (this.getBareMode()) {
170039
170152
  await registerLazy(ToolNames.READ_FILE, async () => {
170040
- const { ReadFileTool } = await import("./read-file-CBWUHH7L.js");
170153
+ const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
170041
170154
  return new ReadFileTool(this);
170042
170155
  });
170043
170156
  await registerLazy(ToolNames.EDIT, async () => {
170044
- const { EditTool } = await import("./edit-2IEELV32.js");
170157
+ const { EditTool } = await import("./edit-EI2QZFML.js");
170045
170158
  return new EditTool(this);
170046
170159
  });
170047
170160
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
170048
- const { NotebookEditTool } = await import("./notebook-edit-SVXYE4TT.js");
170161
+ const { NotebookEditTool } = await import("./notebook-edit-EOFZ4EKN.js");
170049
170162
  return new NotebookEditTool(this);
170050
170163
  });
170051
170164
  await registerLazy(ToolNames.SHELL, async () => {
170052
- const { ShellTool: ShellTool2 } = await import("./shell-H7OVXNTJ.js");
170165
+ const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
170053
170166
  return new ShellTool2(this);
170054
170167
  });
170055
170168
  await registerGoalWorkerTools();
@@ -170064,11 +170177,11 @@ var Config = class _Config {
170064
170177
  await registerExecIfEnabled();
170065
170178
  await registerGoalWorkerTools();
170066
170179
  await registerLazy(ToolNames.TOOL_CALL, async () => {
170067
- const { ToolCallTool } = await import("./tool-call-GFZXS57E.js");
170180
+ const { ToolCallTool } = await import("./tool-call-ZR564L2K.js");
170068
170181
  return new ToolCallTool(registry2);
170069
170182
  });
170070
170183
  await registerLazy(ToolNames.TOOL_SEARCH, async () => {
170071
- const { ToolSearchTool } = await import("./tool-search-JUYHPTLU.js");
170184
+ const { ToolSearchTool } = await import("./tool-search-5GZKW7RO.js");
170072
170185
  return new ToolSearchTool(this);
170073
170186
  });
170074
170187
  await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
@@ -170076,7 +170189,7 @@ var Config = class _Config {
170076
170189
  return new ReadMcpResourceTool(this);
170077
170190
  });
170078
170191
  await registerLazy(ToolNames.AGENT, async () => {
170079
- const { AgentTool: AgentTool2 } = await import("./agent-KPY2HBYP.js");
170192
+ const { AgentTool: AgentTool2 } = await import("./agent-O6PLYNPF.js");
170080
170193
  return new AgentTool2(this);
170081
170194
  });
170082
170195
  await registerLazy(ToolNames.LIST_AGENTS, async () => {
@@ -170088,11 +170201,11 @@ var Config = class _Config {
170088
170201
  return new TaskStopTool(this);
170089
170202
  });
170090
170203
  await registerLazy(ToolNames.SEND_MESSAGE, async () => {
170091
- const { SendMessageTool } = await import("./send-message-WKTPR6OU.js");
170204
+ const { SendMessageTool } = await import("./send-message-CD2AOPQD.js");
170092
170205
  return new SendMessageTool(this);
170093
170206
  });
170094
170207
  await registerLazy(ToolNames.SKILL, async () => {
170095
- const { SkillTool } = await import("./skill-GSDG7DCN.js");
170208
+ const { SkillTool } = await import("./skill-KYZIZDCI.js");
170096
170209
  return new SkillTool(this);
170097
170210
  });
170098
170211
  if (this.isLsToolEnabled()) {
@@ -170102,11 +170215,11 @@ var Config = class _Config {
170102
170215
  });
170103
170216
  }
170104
170217
  await registerLazy(ToolNames.READ_FILE, async () => {
170105
- const { ReadFileTool } = await import("./read-file-CBWUHH7L.js");
170218
+ const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
170106
170219
  return new ReadFileTool(this);
170107
170220
  });
170108
170221
  await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
170109
- const { ZoomImageTool } = await import("./zoom-image-ZNLADFKD.js");
170222
+ const { ZoomImageTool } = await import("./zoom-image-2FAU5GG7.js");
170110
170223
  return new ZoomImageTool(this);
170111
170224
  });
170112
170225
  if (this.getUseRipgrep()) {
@@ -170121,7 +170234,7 @@ var Config = class _Config {
170121
170234
  recordStartupEvent("config_initialize_ripgrep_probe_end");
170122
170235
  if (useRipgrep) {
170123
170236
  await registerLazy(ToolNames.GREP, async () => {
170124
- const { RipGrepTool } = await import("./ripGrep-MKBS4HS7.js");
170237
+ const { RipGrepTool } = await import("./ripGrep-N425H66N.js");
170125
170238
  return new RipGrepTool(this);
170126
170239
  });
170127
170240
  } else {
@@ -170147,23 +170260,23 @@ var Config = class _Config {
170147
170260
  });
170148
170261
  }
170149
170262
  await registerLazy(ToolNames.GLOB, async () => {
170150
- const { GlobTool } = await import("./glob-JISX3DBJ.js");
170263
+ const { GlobTool } = await import("./glob-QZSWKHOW.js");
170151
170264
  return new GlobTool(this);
170152
170265
  });
170153
170266
  await registerLazy(ToolNames.EDIT, async () => {
170154
- const { EditTool } = await import("./edit-2IEELV32.js");
170267
+ const { EditTool } = await import("./edit-EI2QZFML.js");
170155
170268
  return new EditTool(this);
170156
170269
  });
170157
170270
  await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
170158
- const { NotebookEditTool } = await import("./notebook-edit-SVXYE4TT.js");
170271
+ const { NotebookEditTool } = await import("./notebook-edit-EOFZ4EKN.js");
170159
170272
  return new NotebookEditTool(this);
170160
170273
  });
170161
170274
  await registerLazy(ToolNames.WRITE_FILE, async () => {
170162
- const { WriteFileTool } = await import("./write-file-CGE7ZDR6.js");
170275
+ const { WriteFileTool } = await import("./write-file-OA3YWX4Z.js");
170163
170276
  return new WriteFileTool(this);
170164
170277
  });
170165
170278
  await registerLazy(ToolNames.SHELL, async () => {
170166
- const { ShellTool: ShellTool2 } = await import("./shell-H7OVXNTJ.js");
170279
+ const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
170167
170280
  return new ShellTool2(this);
170168
170281
  });
170169
170282
  await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
@@ -170179,13 +170292,13 @@ var Config = class _Config {
170179
170292
  }
170180
170293
  if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
170181
170294
  await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
170182
- const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-2GFYBUDI.js");
170295
+ const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-46FWANRT.js");
170183
170296
  return new ExitPlanModeTool2(this);
170184
170297
  });
170185
170298
  }
170186
170299
  if (!this.sdkMode && supportsUserInteraction) {
170187
170300
  await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
170188
- const { EnterPlanModeTool } = await import("./enterPlanMode-J65ME6DQ.js");
170301
+ const { EnterPlanModeTool } = await import("./enterPlanMode-HZIALG5T.js");
170189
170302
  return new EnterPlanModeTool(this);
170190
170303
  });
170191
170304
  }
@@ -170199,14 +170312,14 @@ var Config = class _Config {
170199
170312
  });
170200
170313
  if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
170201
170314
  await registerLazy(ToolNames.DISPLAY_IMAGE, async () => {
170202
- const { DisplayImageTool } = await import("./display-image-4ZU4ZU53.js");
170315
+ const { DisplayImageTool } = await import("./display-image-Y35PSJXX.js");
170203
170316
  return new DisplayImageTool(this);
170204
170317
  });
170205
170318
  }
170206
170319
  await this.registerImageGenerationTool(registry2);
170207
170320
  if (this.isArtifactEnabled()) {
170208
170321
  await registerLazy(ToolNames.ARTIFACT, async () => {
170209
- const { ArtifactTool } = await import("./artifact-tool-VKDCERQZ.js");
170322
+ const { ArtifactTool } = await import("./artifact-tool-6QDGNGTO.js");
170210
170323
  return new ArtifactTool(this);
170211
170324
  });
170212
170325
  }
@@ -170252,7 +170365,7 @@ var Config = class _Config {
170252
170365
  }
170253
170366
  if (this.isAgentTeamEnabled()) {
170254
170367
  await registerLazy(ToolNames.TEAM_CREATE, async () => {
170255
- const { TeamCreateTool } = await import("./team-create-7FQMEHVN.js");
170368
+ const { TeamCreateTool } = await import("./team-create-O66TUESF.js");
170256
170369
  return new TeamCreateTool(this);
170257
170370
  });
170258
170371
  await registerLazy(ToolNames.TEAM_DELETE, async () => {
@@ -170260,21 +170373,21 @@ var Config = class _Config {
170260
170373
  return new TeamDeleteTool(this);
170261
170374
  });
170262
170375
  await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
170263
- const { TeamPlanApprovalTool } = await import("./team-plan-approval-5VMFGIBJ.js");
170376
+ const { TeamPlanApprovalTool } = await import("./team-plan-approval-667K2B3B.js");
170264
170377
  return new TeamPlanApprovalTool(this);
170265
170378
  });
170266
170379
  if (!options2?.forSubAgent) {
170267
170380
  await registerLazy(ToolNames.REQUEST_SHUTDOWN, async () => {
170268
- const { RequestShutdownTool } = await import("./request-shutdown-5I22UEVV.js");
170381
+ const { RequestShutdownTool } = await import("./request-shutdown-4LPYJZTK.js");
170269
170382
  return new RequestShutdownTool(this);
170270
170383
  });
170271
170384
  }
170272
170385
  await registerLazy(ToolNames.TASK_CREATE, async () => {
170273
- const { TaskCreateTool } = await import("./task-create-PTXFIS6D.js");
170386
+ const { TaskCreateTool } = await import("./task-create-W3R3G7FM.js");
170274
170387
  return new TaskCreateTool(this);
170275
170388
  });
170276
170389
  await registerLazy(ToolNames.TASK_UPDATE, async () => {
170277
- const { TaskUpdateTool } = await import("./task-update-5LYVCOT2.js");
170390
+ const { TaskUpdateTool } = await import("./task-update-JQOO6HUS.js");
170278
170391
  return new TaskUpdateTool(this);
170279
170392
  });
170280
170393
  await registerLazy(ToolNames.TASK_LIST, async () => {
@@ -170356,7 +170469,7 @@ var Config = class _Config {
170356
170469
  }
170357
170470
  }
170358
170471
  await registerLazy(ToolNames.MONITOR, async () => {
170359
- const { MonitorTool } = await import("./monitor-Y4BAUHQ3.js");
170472
+ const { MonitorTool } = await import("./monitor-4DJ5VKXK.js");
170360
170473
  return new MonitorTool(this);
170361
170474
  });
170362
170475
  if (this.pendingMcpBudgetCallback) {
@@ -171220,6 +171333,7 @@ export {
171220
171333
  ToolMode,
171221
171334
  isCodeModeToolCallAllowed,
171222
171335
  getOptInToolNotFoundMessage,
171336
+ TRUNCATION_EDIT_REJECTION,
171223
171337
  convertToFunctionResponse,
171224
171338
  convertToFunctionErrorResponse,
171225
171339
  isToolCallConcurrencySafe,