@organizaone/o1-code 0.26.0 → 0.28.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 (298) hide show
  1. package/bundled/qc-helper/docs/configuration/auth.md +13 -1
  2. package/bundled/qc-helper/docs/configuration/settings.md +3 -2
  3. package/bundled/qc-helper/docs/features/auto-mode.md +10 -0
  4. package/bundled/qc-helper/docs/features/commands.md +2 -0
  5. package/chunks/{MaxSizedBox-BT4NRHBZ.js → MaxSizedBox-UGM4WNJZ.js} +25 -25
  6. package/chunks/{StandaloneSessionPicker-AB5L4OIP.js → StandaloneSessionPicker-LNBEBZCV.js} +41 -41
  7. package/chunks/{acp-subagent-executor-J6YQDFIY.js → acp-subagent-executor-6SLQGZBW.js} +28 -28
  8. package/chunks/{acpAgent-UNNKQA2R.js → acpAgent-AZRWMHQS.js} +138 -80
  9. package/chunks/{agent-4JVSTPOZ.js → agent-SW6B5GXR.js} +13 -13
  10. package/chunks/{agent-headless-SQ3YMNWD.js → agent-headless-4T56G4HD.js} +13 -13
  11. package/chunks/{all-providers-A35HOOOY.js → all-providers-7XOONDDH.js} +2 -2
  12. package/chunks/{anthropicContentGenerator-X6IMIHOI.js → anthropicContentGenerator-PCGLXAN2.js} +4 -4
  13. package/chunks/{artifact-tool-6QDGNGTO.js → artifact-tool-2YUI7TMU.js} +2 -1
  14. package/chunks/{askUserQuestion-YPA2ZZLO.js → askUserQuestion-CJCXE4MK.js} +1 -1
  15. package/chunks/{bridge-RP3BQEM7.js → bridge-MMSBIFUO.js} +28 -28
  16. package/chunks/{chunk-LU2TTE5Y.js → chunk-2RXC7SUB.js} +3 -3
  17. package/chunks/{chunk-SU4W42KU.js → chunk-34DGARAI.js} +2 -2
  18. package/chunks/{chunk-KRE356Z5.js → chunk-4RJLQH7V.js} +2 -2
  19. package/chunks/{chunk-UA6BRUXW.js → chunk-4S3RAGV6.js} +2 -2
  20. package/chunks/{chunk-USSMX7ZA.js → chunk-5BFVYOZU.js} +7 -7
  21. package/chunks/{chunk-M5BPWICM.js → chunk-5GPXFBUV.js} +933 -445
  22. package/chunks/{chunk-O6GD6SFV.js → chunk-5ONKDCZM.js} +4 -0
  23. package/chunks/{chunk-UDUKUEW5.js → chunk-5T7HH4QY.js} +4 -4
  24. package/chunks/{chunk-A2MUOMJH.js → chunk-65WJP4PQ.js} +2 -2
  25. package/chunks/{chunk-GOPTB5FL.js → chunk-6OYKQCEN.js} +5 -5
  26. package/chunks/{chunk-MEPWN6XC.js → chunk-6P2HD4R3.js} +1 -1
  27. package/chunks/{chunk-3UZT6L3M.js → chunk-6RBLQ2FL.js} +3 -3
  28. package/chunks/{chunk-T4X6ZODK.js → chunk-7OTIZIFD.js} +2 -2
  29. package/chunks/{chunk-B6U27UHQ.js → chunk-A2IU6TBE.js} +3 -3
  30. package/chunks/{chunk-UW4ZP77X.js → chunk-AEVV2DGL.js} +8 -3
  31. package/chunks/{chunk-DFRZXARB.js → chunk-ALTTOY55.js} +2 -2
  32. package/chunks/{chunk-HNHCMHHY.js → chunk-APDBWTCU.js} +3 -3
  33. package/chunks/{chunk-SF7RCEDN.js → chunk-AXXXWTIX.js} +1 -1
  34. package/chunks/{chunk-FGV2OPGK.js → chunk-CFDP4DA7.js} +1 -1
  35. package/chunks/{chunk-SQZJGTAP.js → chunk-CGQA3YUE.js} +15 -15
  36. package/chunks/{chunk-B7QLJKM6.js → chunk-CPGFB67A.js} +8 -5
  37. package/chunks/{chunk-ZME3GEAN.js → chunk-DN5T6AO6.js} +12 -3
  38. package/chunks/{chunk-AOJFG2LZ.js → chunk-DOYXO67V.js} +10 -10
  39. package/chunks/{chunk-WIQEF7ON.js → chunk-DV2KGLEW.js} +1 -1
  40. package/chunks/{chunk-6VXX63QU.js → chunk-DVF2XU6V.js} +3 -3
  41. package/chunks/{chunk-Y24XITI5.js → chunk-E7IFCC56.js} +24 -11
  42. package/chunks/{chunk-6TAZUYYH.js → chunk-ECVYOBZB.js} +1 -1
  43. package/chunks/{chunk-QIGHINXO.js → chunk-ESGMIMHJ.js} +1 -1
  44. package/chunks/{chunk-3GZRVIU2.js → chunk-G4WEER2E.js} +2 -2
  45. package/chunks/{chunk-ZQ7TCAOB.js → chunk-GGY4LV75.js} +6 -6
  46. package/chunks/{chunk-3NWXBIE2.js → chunk-GTEXKLUX.js} +1 -1
  47. package/chunks/{chunk-5UTAX2O6.js → chunk-HFVFJKSG.js} +3 -3
  48. package/chunks/{chunk-NUUQWXXC.js → chunk-HHXRZCTN.js} +1 -1
  49. package/chunks/{chunk-FVH27ARU.js → chunk-IKTZAG3N.js} +8 -8
  50. package/chunks/{chunk-MSBLDE7B.js → chunk-INL5DBBY.js} +6 -6
  51. package/chunks/{chunk-BBBU4UJL.js → chunk-IX3QKVUR.js} +1 -1
  52. package/chunks/{chunk-U7EB32Z2.js → chunk-J6C5LOZU.js} +2 -2
  53. package/chunks/{chunk-HKWXDV5S.js → chunk-JNDU22G5.js} +1 -1
  54. package/chunks/{chunk-INUPQ3V2.js → chunk-KBQIWWPG.js} +3 -3
  55. package/chunks/{chunk-3GPZEENL.js → chunk-KE2WGNUQ.js} +3 -3
  56. package/chunks/{chunk-CQPBRNKG.js → chunk-KFN7QGTC.js} +1 -1
  57. package/chunks/{chunk-OWWR2OAO.js → chunk-L7HW4A3Y.js} +1 -1
  58. package/chunks/{chunk-2B5MRPGZ.js → chunk-LFNFDXBQ.js} +9 -9
  59. package/chunks/{chunk-B5DA6HBM.js → chunk-LMZTL6BD.js} +1 -1
  60. package/chunks/{chunk-A3XVGA3W.js → chunk-LPAIZXYK.js} +1 -1
  61. package/chunks/{chunk-GR257V6A.js → chunk-LTDEWYQR.js} +1 -1
  62. package/chunks/{chunk-3H6ZRETK.js → chunk-LXGCQKEU.js} +2 -2
  63. package/chunks/{chunk-LDKVV42E.js → chunk-M57Y7TXE.js} +2 -2
  64. package/chunks/{chunk-IDOFNXOM.js → chunk-MNLPYHDS.js} +59 -11
  65. package/chunks/{chunk-ASR3UKPL.js → chunk-MRH3SYVM.js} +5 -5
  66. package/chunks/{chunk-6XC7AQHT.js → chunk-MWYTSG52.js} +83 -3
  67. package/chunks/{chunk-G6PZ7ZRF.js → chunk-O6IXKCOG.js} +1 -1
  68. package/chunks/{chunk-73UYQDL3.js → chunk-P2S3W72W.js} +4 -4
  69. package/chunks/{chunk-4UZHVDN6.js → chunk-PB7WGTEV.js} +1 -1
  70. package/chunks/{chunk-JVRNE7NT.js → chunk-PJOCOZLX.js} +262 -73
  71. package/chunks/{chunk-ITHF4F4L.js → chunk-PMYMZZOL.js} +4 -4
  72. package/chunks/{chunk-RLV563CG.js → chunk-POWVKJJ5.js} +1 -1
  73. package/chunks/{chunk-44NOS72H.js → chunk-PPK5GYKF.js} +4 -4
  74. package/chunks/{chunk-O7BIOEV2.js → chunk-PQJUGWAL.js} +1 -1
  75. package/chunks/{chunk-LGFB7Z2H.js → chunk-PVV4PS73.js} +4 -4
  76. package/chunks/{chunk-6HLOPCFZ.js → chunk-PYQSQFGU.js} +1 -1
  77. package/chunks/{chunk-ULLCJNT5.js → chunk-QER5OBZQ.js} +1 -1
  78. package/chunks/{chunk-QRDZ4FN6.js → chunk-QGSX4KMO.js} +3 -3
  79. package/chunks/{chunk-F3762QZG.js → chunk-QIFODGLE.js} +1 -1
  80. package/chunks/{chunk-SJSBSQJI.js → chunk-QNXMP5ZZ.js} +1 -1
  81. package/chunks/{chunk-7TZUSRNH.js → chunk-QPIQLU5S.js} +1 -1
  82. package/chunks/{chunk-BNX26EYK.js → chunk-QYXH4QO6.js} +1 -1
  83. package/chunks/{chunk-O53S3WDY.js → chunk-R2EUGEY3.js} +1 -1
  84. package/chunks/{chunk-3UIMC3MD.js → chunk-R4MYRZBH.js} +4 -4
  85. package/chunks/{chunk-UXFP67XM.js → chunk-R6KPCIC7.js} +4 -4
  86. package/chunks/{chunk-VMWSMIAG.js → chunk-RP5IWKTY.js} +1 -1
  87. package/chunks/{chunk-YRW7SOH4.js → chunk-S2J5OVPG.js} +43 -12
  88. package/chunks/{chunk-ITXHD6QG.js → chunk-SNF3LRCO.js} +5 -5
  89. package/chunks/{chunk-YXIMD7AK.js → chunk-T7AVLAAZ.js} +4 -4
  90. package/chunks/{chunk-HASGT63Y.js → chunk-TNDQQXZG.js} +5 -5
  91. package/chunks/{chunk-P5EIXSKJ.js → chunk-TQREMT4H.js} +1 -1
  92. package/chunks/{chunk-QJLOQHNR.js → chunk-TRRPP67K.js} +1 -1
  93. package/chunks/{chunk-K5Y3DMKT.js → chunk-U33LK6H3.js} +23 -7
  94. package/chunks/{chunk-2SKOHXQM.js → chunk-U3ALLY3C.js} +3 -3
  95. package/chunks/{chunk-PUBPS6I4.js → chunk-URV7VB5I.js} +134171 -132876
  96. package/chunks/{chunk-JYZMO5E7.js → chunk-UU6DJDI6.js} +7 -7
  97. package/chunks/{chunk-6CW53FOJ.js → chunk-VBDYNBGQ.js} +33 -0
  98. package/chunks/{chunk-ON5CGP6B.js → chunk-VGL4QINZ.js} +1 -1
  99. package/chunks/{chunk-BNJ3IJB7.js → chunk-VLTW32Z7.js} +5 -1
  100. package/chunks/{chunk-S2HJR2FT.js → chunk-VQURYS66.js} +1 -1
  101. package/chunks/{chunk-76FPHNLE.js → chunk-WEGKPUVT.js} +19 -18
  102. package/chunks/{chunk-JMMAXVTG.js → chunk-WIU4UVDX.js} +2 -2
  103. package/chunks/{chunk-EJHVUZDO.js → chunk-WKC6U3JJ.js} +1 -1
  104. package/chunks/{chunk-BWF5HABA.js → chunk-WLOIRIGM.js} +2 -2
  105. package/chunks/{chunk-GLXNABTW.js → chunk-WNPJDCZG.js} +1 -1
  106. package/chunks/{chunk-KPRGWI4Y.js → chunk-X2C52LE7.js} +1 -1
  107. package/chunks/{chunk-IDL5E3SK.js → chunk-X5MCTTTU.js} +1 -1
  108. package/chunks/{chunk-SJGCHKHG.js → chunk-XFHJCR6Q.js} +8 -8
  109. package/chunks/{chunk-JKBN3WM5.js → chunk-XGQNWLJE.js} +1 -1
  110. package/chunks/{chunk-WIDNRAGK.js → chunk-XPR26FUE.js} +2 -2
  111. package/chunks/{chunk-BQKZFSFW.js → chunk-XYWNIKCP.js} +3 -3
  112. package/chunks/{chunk-YMESB5YT.js → chunk-YO56DYD6.js} +3 -3
  113. package/chunks/{chunk-QU2DEIX4.js → chunk-YRZLD3UC.js} +1 -1
  114. package/chunks/{chunk-JDMI736Y.js → chunk-YSIQBGKE.js} +2 -2
  115. package/chunks/{chunk-UOG4OHEQ.js → chunk-Z2FVI2QE.js} +50 -33
  116. package/chunks/{chunk-UKUBYF44.js → chunk-ZFFEGZQP.js} +9 -9
  117. package/chunks/{chunk-ZZYIXQMV.js → chunk-ZXEMQEIR.js} +6 -6
  118. package/chunks/{codex-subagent-executor-ME2J5ZAK.js → codex-subagent-executor-IG3FMD7C.js} +28 -28
  119. package/chunks/{contextCommand-G3DP2V3O.js → contextCommand-V52TZ7WC.js} +27 -27
  120. package/chunks/{core-runtime-GHUSNSJC.js → core-runtime-2W7PZ32G.js} +25 -25
  121. package/chunks/{create-sub-session-ZVGBSQEO.js → create-sub-session-7F6RQ63I.js} +26 -26
  122. package/chunks/{create-sub-session-UEQ23VBD.js → create-sub-session-7RBPOM63.js} +1 -1
  123. package/chunks/{daemon-git-worktree-guard-JSMTW3IM.js → daemon-git-worktree-guard-XEYAHZKE.js} +25 -25
  124. package/chunks/{daemon-status-provider-C5NDII62.js → daemon-status-provider-3PGG4SFQ.js} +33 -33
  125. package/chunks/{daemon-trust-policy-22D6WDDX.js → daemon-trust-policy-4GR6OQIW.js} +31 -31
  126. package/chunks/{daemon-trust-policy-monitor-RLYT7BZS.js → daemon-trust-policy-monitor-ZYBKKGWV.js} +31 -31
  127. package/chunks/{deferred-core-runtime-KWFERRTL.js → deferred-core-runtime-EFVOFPFW.js} +25 -25
  128. package/chunks/{edit-XYXDIK5B.js → edit-ERIYX7VL.js} +15 -15
  129. package/chunks/{en-ZRJL6ZFP.js → en-AHX4A3X4.js} +19 -0
  130. package/chunks/{enterPlanMode-VQQZ2UW6.js → enterPlanMode-ESSALZKU.js} +13 -13
  131. package/chunks/{environment-EBFJ4TH2.js → environment-GJ4BXV6M.js} +27 -27
  132. package/chunks/{errors-3B4RPL2I.js → errors-TIRL2U2V.js} +27 -27
  133. package/chunks/{execution-tool-JVQOMMTE.js → execution-tool-S776S6AA.js} +15 -15
  134. package/chunks/{execution-worker-JMNHLRNL.js → execution-worker-EORKZE7B.js} +18 -18
  135. package/chunks/{exitPlanMode-7MZNYWO4.js → exitPlanMode-O5IF7SIB.js} +13 -13
  136. package/chunks/{fast-path-NJVM56IM.js → fast-path-IUBXHYB5.js} +2 -2
  137. package/chunks/{foreground-runner-LQEPDOLD.js → foreground-runner-5PAXAU7Q.js} +27 -27
  138. package/chunks/{gateway-models-2M6TFLX3.js → gateway-models-NK4WGZPX.js} +3 -3
  139. package/chunks/{glob-LPOYT76M.js → glob-PTGLSNFV.js} +13 -13
  140. package/chunks/{goal-tools-RUTV37TK.js → goal-tools-7XAPEACG.js} +13 -13
  141. package/chunks/{handleAutoUpdate-FYNNYADV.js → handleAutoUpdate-LB3EXOSL.js} +28 -28
  142. package/chunks/{i18n-QOCTCT72.js → i18n-2HPFDRCM.js} +26 -26
  143. package/chunks/{initializer-VMXV3BW6.js → initializer-YIPVTBD4.js} +31 -31
  144. package/chunks/{installationInfo-ZMTB5KY4.js → installationInfo-JEVGNV5S.js} +25 -25
  145. package/chunks/{list-HWTHYFDH.js → list-Q43RN5XQ.js} +33 -33
  146. package/chunks/{list-agents-QNCQCPBU.js → list-agents-YJZPHUQG.js} +12 -2
  147. package/chunks/{llm-BSHLCKRC.js → llm-ACGE4OPC.js} +58 -58
  148. package/chunks/{llm-content-generator-FOOFF7NM.js → llm-content-generator-N67V7IMO.js} +4 -4
  149. package/chunks/{loadedSettingsAdapter-DVQC5LYU.js → loadedSettingsAdapter-PCSL2RHU.js} +31 -31
  150. package/chunks/{local-execution-environment-NIQC5LCT.js → local-execution-environment-QPSZFUKG.js} +18 -18
  151. package/chunks/{loggingContentGenerator-KMXV7FXR.js → loggingContentGenerator-XIBC3H5T.js} +15 -15
  152. package/chunks/{managed-npm-update-6NXTMHIC.js → managed-npm-update-3C5UV3UA.js} +25 -25
  153. package/chunks/{mcp-B6BEFRFC.js → mcp-WJH2PRLP.js} +31 -31
  154. package/chunks/{model-call-collection-JGJ4TLCJ.js → model-call-collection-FCU2E3DK.js} +1 -1
  155. package/chunks/{model-configuration-HSAVOFVS.js → model-configuration-LWZ6AN7O.js} +32 -32
  156. package/chunks/{modelConfigUtils-E7WNOMPL.js → modelConfigUtils-NF2XXNHK.js} +27 -27
  157. package/chunks/{monitor-X5SXPGKJ.js → monitor-AUGWTFPN.js} +15 -14
  158. package/chunks/{nonInteractiveCli-ALN7VTV2.js → nonInteractiveCli-ICHDPCXZ.js} +63 -61
  159. package/chunks/{nonInteractiveToolExecutor-EP57MOQU.js → nonInteractiveToolExecutor-MEFA3XG6.js} +14 -14
  160. package/chunks/{notebook-edit-6AJJRXJE.js → notebook-edit-3FTHMUPG.js} +14 -14
  161. package/chunks/{omni-X2QDE2SC.js → omni-OB2XIDP6.js} +8 -8
  162. package/chunks/{openaiContentGenerator-DGFUUNP4.js → openaiContentGenerator-OVNPJ45X.js} +125 -13
  163. package/chunks/{openaiResponsesContentGenerator-QBWIVIZ3.js → openaiResponsesContentGenerator-LDEWDIIO.js} +483 -381
  164. package/chunks/{processUtils-RAKPTGL4.js → processUtils-ACE5MNN5.js} +2 -2
  165. package/chunks/{prompt-terminal-ledger-LNMBMLKZ.js → prompt-terminal-ledger-7AQNYK6B.js} +26 -26
  166. package/chunks/{pt-2EWDZAFN.js → pt-K4HAS53U.js} +19 -0
  167. package/chunks/{reactive-degrade-2R225XZN.js → reactive-degrade-FLQPZB4E.js} +7 -7
  168. package/chunks/{read-file-PVJ2UFNR.js → read-file-UAKMF6YY.js} +2 -2
  169. package/chunks/{record-source-ZEVZHGGT.js → record-source-6XCNP6XF.js} +2 -2
  170. package/chunks/{request-shutdown-WWNRWY6N.js → request-shutdown-6M76E2KV.js} +1 -1
  171. package/chunks/{resumeHistoryUtils-7JVBU7F6.js → resumeHistoryUtils-SFAPPPBU.js} +29 -29
  172. package/chunks/{ripGrep-SGVDEPUA.js → ripGrep-2V6G4VY4.js} +3 -3
  173. package/chunks/{run-o1-code-serve-6YBADDNM.js → run-o1-code-serve-Y6CZ4WSK.js} +32 -32
  174. package/chunks/{sandboxConfig-XSRSA444.js → sandboxConfig-5OYKJA5H.js} +25 -25
  175. package/chunks/{scheduled-tasks-I2ERGMGX.js → scheduled-tasks-YDANC666.js} +31 -31
  176. package/chunks/{scheduler-DOUZC3BT.js → scheduler-3RSBLGO5.js} +27 -27
  177. package/chunks/{send-message-ZCE2ZSEV.js → send-message-B2HM2LKH.js} +1 -1
  178. package/chunks/{serve-TWF224E6.js → serve-GPPUJF7A.js} +31 -31
  179. package/chunks/{server-QM5WDSMX.js → server-QSYUPWC4.js} +64 -69
  180. package/chunks/{session-UAA3BUYD.js → session-RYM42HON.js} +64 -62
  181. package/chunks/{session-YILUXNUN.js → session-YX6EADY3.js} +1 -1
  182. package/chunks/{session-attachments-root-7SV6ROO3.js → session-attachments-root-ONU4OCIH.js} +25 -25
  183. package/chunks/{session-pr-refresh-ZQEMZUOC.js → session-pr-refresh-PJMHSQS3.js} +30 -30
  184. package/chunks/{settings-I5BT5XJA.js → settings-QUPXDEE4.js} +30 -30
  185. package/chunks/{shell-CXFG4D26.js → shell-CBB5CVAS.js} +13 -13
  186. package/chunks/{skill-XAI4BN7B.js → skill-6GBBXV3Y.js} +3 -3
  187. package/chunks/{skill-settings-I6V36IWY.js → skill-settings-4KLNZO7M.js} +31 -31
  188. package/chunks/{spawnChannel-A3JN3SKE.js → spawnChannel-77A66ZTS.js} +27 -27
  189. package/chunks/{standalone-update-665KNR5K.js → standalone-update-Y6CLALFV.js} +27 -27
  190. package/chunks/{startInteractiveUI-3SDDBRSS.js → startInteractiveUI-LDCEYD4E.js} +2235 -2291
  191. package/chunks/{supervisor-runner-GJZ5FZ2L.js → supervisor-runner-UNQRYYHF.js} +2 -2
  192. package/chunks/{task-create-7KKOP2J2.js → task-create-AJSUW4SS.js} +2 -2
  193. package/chunks/{task-update-RDNOVBEQ.js → task-update-X65AWLX3.js} +2 -2
  194. package/chunks/{team-create-B3GZHAVJ.js → team-create-FETEWNIH.js} +13 -13
  195. package/chunks/{team-plan-approval-AA23AXBX.js → team-plan-approval-NGV34RBG.js} +13 -13
  196. package/chunks/{terminal-image-renderer-645UO3CY.js → terminal-image-renderer-QMHATNDT.js} +25 -25
  197. package/chunks/{theme-manager-Z724NWSU.js → theme-manager-LNPRQP4D.js} +25 -25
  198. package/chunks/{tool-call-BUCHKNUE.js → tool-call-BERI4DIZ.js} +2 -2
  199. package/chunks/{tool-result-media-F3GNEFYA.js → tool-result-media-BV3MLBOV.js} +8 -8
  200. package/chunks/{tool-search-ORCJKBH7.js → tool-search-WXUEK4Y4.js} +7 -4
  201. package/chunks/{total-session-admission-FVSADUS4.js → total-session-admission-GUPN7ETO.js} +28 -28
  202. package/chunks/{trustedFolders-53SWJNQM.js → trustedFolders-7N5EEZQZ.js} +26 -26
  203. package/chunks/{update-relaunch-TO7RIC2Z.js → update-relaunch-XEXPWCS3.js} +5 -5
  204. package/chunks/{updateCheck-ZO65M4E7.js → updateCheck-24QAZMCF.js} +27 -27
  205. package/chunks/{upload-config-GPGQJLHV.js → upload-config-R7KD3TYE.js} +5 -5
  206. package/chunks/{useAutoAcceptIndicator-XSYAN4MD.js → useAutoAcceptIndicator-5JIRDUHE.js} +33 -33
  207. package/chunks/{validateNonInterActiveAuth-KYRPPB7L.js → validateNonInterActiveAuth-NCIZ27CP.js} +60 -58
  208. package/chunks/{version-QWEY3XDL.js → version-ON5MXG2T.js} +1 -1
  209. package/chunks/{web-fetch-QKY4VT64.js → web-fetch-MXP24DZ5.js} +34 -18
  210. package/chunks/{web-search-AMRNCSP6.js → web-search-VHBFC7UE.js} +5 -5
  211. package/chunks/{workflow-QBLEKR24.js → workflow-W53REJII.js} +16 -15
  212. package/chunks/{workspace-providers-status-CH7DJDKT.js → workspace-providers-status-MQ4ORT4E.js} +37 -37
  213. package/chunks/{workspace-registration-store-HU2UBVSE.js → workspace-registration-store-AMXMOPWO.js} +1 -1
  214. package/chunks/{workspace-registry-PKZFC4K6.js → workspace-registry-RCQ4IEK3.js} +28 -28
  215. package/chunks/{workspace-runtime-coordinator-HLMOBHFQ.js → workspace-runtime-coordinator-6OTMUMU3.js} +29 -29
  216. package/chunks/{workspace-service-CD6JZZGR.js → workspace-service-ZIE2JRN3.js} +36 -36
  217. package/chunks/{workspace-skills-status-ECZGFEYZ.js → workspace-skills-status-FQPWMSLR.js} +34 -34
  218. package/chunks/{workspace-trust-reconciler-NADYMCWA.js → workspace-trust-reconciler-TLAP6FPV.js} +34 -34
  219. package/chunks/{write-file-4QSLWQJN.js → write-file-6ALKQRAE.js} +15 -15
  220. package/chunks/{zh-JJGCFWTL.js → zh-RF4IW7H6.js} +18 -0
  221. package/chunks/{zh-TW-7LWX7CCJ.js → zh-TW-65FIGD7M.js} +18 -0
  222. package/chunks/{zoom-image-FGAGFWD3.js → zoom-image-S5EHXDCZ.js} +2 -2
  223. package/cli.js +16 -16
  224. package/execution-worker.js +1 -1
  225. package/export-transcript-document.js +1 -1
  226. package/locales/en.js +27 -0
  227. package/locales/pt.js +28 -0
  228. package/locales/zh-TW.js +24 -0
  229. package/locales/zh.js +24 -0
  230. package/package.json +2 -2
  231. package/release-notes.json +31 -0
  232. package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  233. package/vendor/tree-sitter/tree-sitter.wasm +0 -0
  234. package/web-shell/assets/{abnfDiagram-VCTEODGH-CXGkTYKR.js → abnfDiagram-VCTEODGH-DUjEqeft.js} +1 -1
  235. package/web-shell/assets/{arc-Bgtf2wGs.js → arc-W0jfDngQ.js} +1 -1
  236. package/web-shell/assets/{architectureDiagram-5GKGNRK7-CdAnFxID.js → architectureDiagram-5GKGNRK7-DyF3Ulps.js} +1 -1
  237. package/web-shell/assets/{blockDiagram-NRAW4CY4-BetLLPQA.js → blockDiagram-NRAW4CY4-_rS4wVsL.js} +1 -1
  238. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BVEDlbNL.js → c4Diagram-UCG6FXSJ-Ba_maCcq.js} +1 -1
  239. package/web-shell/assets/channel-MNzhF6WL.js +1 -0
  240. package/web-shell/assets/{chunk-2Q5K7J3B-Bu_XLqIX.js → chunk-2Q5K7J3B-Dp-kK_66.js} +1 -1
  241. package/web-shell/assets/{chunk-5VM5RSS4-CuIm-L87.js → chunk-5VM5RSS4-BReLjFMB.js} +1 -1
  242. package/web-shell/assets/{chunk-F27PBJKO-zdnqrtCA.js → chunk-F27PBJKO-CyfDw0xH.js} +1 -1
  243. package/web-shell/assets/{chunk-G27WJ6UU-DA0j2ueI.js → chunk-G27WJ6UU-BD-E3vyG.js} +1 -1
  244. package/web-shell/assets/{chunk-JWPE2WC7-BYP9xsTl.js → chunk-JWPE2WC7-BNg2LZ1b.js} +1 -1
  245. package/web-shell/assets/{chunk-LCL6LL3I-CqZfx1I5.js → chunk-LCL6LL3I-CD6sIbXP.js} +1 -1
  246. package/web-shell/assets/{chunk-POPQ4Y6H-BEYiYIxG.js → chunk-POPQ4Y6H-biiydq96.js} +1 -1
  247. package/web-shell/assets/{chunk-SVP7TREG-Df7kB2kI.js → chunk-SVP7TREG-DSAy-8IK.js} +1 -1
  248. package/web-shell/assets/{chunk-XXDRQBXY-DSVwWamu.js → chunk-XXDRQBXY-CQsQoyx5.js} +1 -1
  249. package/web-shell/assets/classDiagram-DTDB5LWJ-DK4qave1.js +1 -0
  250. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DK4qave1.js +1 -0
  251. package/web-shell/assets/{cose-bilkent-JH36ORCC-3y3UQaAQ.js → cose-bilkent-JH36ORCC-cY73mmYw.js} +1 -1
  252. package/web-shell/assets/{cynefin-OW5HDTMX-D5boSC-y.js → cynefin-OW5HDTMX-BTO6WVz1.js} +1 -1
  253. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-D06h0zad.js → cynefinDiagram-5FMLGOSQ-VDQcZUqd.js} +1 -1
  254. package/web-shell/assets/{dagre-3AP2YEHR-B5PC4pJb.js → dagre-3AP2YEHR-Bv2vVLCG.js} +1 -1
  255. package/web-shell/assets/{diagram-S7CK7UJ4-CQkjaeF5.js → diagram-S7CK7UJ4-BqJUJmzm.js} +1 -1
  256. package/web-shell/assets/{diagram-UQ7AKVKN-Dp4B8BsM.js → diagram-UQ7AKVKN-BnLr2eEw.js} +1 -1
  257. package/web-shell/assets/{diagram-VSXAHHWV-1WUz-IlV.js → diagram-VSXAHHWV-D6XN-3Ym.js} +1 -1
  258. package/web-shell/assets/{diagram-VX7I27RA-CVOE8dqI.js → diagram-VX7I27RA-Ci66ZVMg.js} +1 -1
  259. package/web-shell/assets/{diagram-Z3DM3KII-3gYRwIVB.js → diagram-Z3DM3KII-CdKapkP8.js} +1 -1
  260. package/web-shell/assets/{ebnfDiagram-PWID7BFC-tVjIWybZ.js → ebnfDiagram-PWID7BFC-BMaAVNO9.js} +1 -1
  261. package/web-shell/assets/{erDiagram-SSCWMZ5O-DKQv6Y6l.js → erDiagram-SSCWMZ5O-tJDW3Qos.js} +1 -1
  262. package/web-shell/assets/{flowDiagram-A5DVABFB-C1aZT9uy.js → flowDiagram-A5DVABFB-CkeFnWh8.js} +1 -1
  263. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BKVpaHRR.js → ganttDiagram-EL5Y4UJY-BhdRaGW7.js} +1 -1
  264. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BZOhM9h_.js → gitGraphDiagram-WWUBYQGX-_3xhVP9s.js} +1 -1
  265. package/web-shell/assets/{index-CB3Jrunr.js → index-CL6noNpm.js} +1 -1
  266. package/web-shell/assets/{index-Do4y2b4t.js → index-JJUratVS.js} +3 -3
  267. package/web-shell/assets/{infoDiagram-RXCK75RN-D1uBMMVt.js → infoDiagram-RXCK75RN-Ct5KstKl.js} +1 -1
  268. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CEucsPqw.js → ishikawaDiagram-5VMMS53U-CaWQH0FX.js} +1 -1
  269. package/web-shell/assets/{journeyDiagram-EYS64GPL-DZzzYLoO.js → journeyDiagram-EYS64GPL-wL4IPDN7.js} +1 -1
  270. package/web-shell/assets/{kanban-definition-3QL26DDD-C9BYwkVP.js → kanban-definition-3QL26DDD-zF6R7MCX.js} +1 -1
  271. package/web-shell/assets/{layout-CsgRL45r.js → layout-BHURDNhy.js} +1 -1
  272. package/web-shell/assets/{linear-BUq0-ZDw.js → linear-BSG9T8Eq.js} +1 -1
  273. package/web-shell/assets/{mermaid.core-D3JSOWCq.js → mermaid.core-CN3wMJE1.js} +6 -6
  274. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BLHYT_f0.js → mindmap-definition-FBJOCRG2-C0-g1D9W.js} +1 -1
  275. package/web-shell/assets/{pegDiagram-XKGWAZYB-B2QHW9UX.js → pegDiagram-XKGWAZYB-1cBE4q6f.js} +1 -1
  276. package/web-shell/assets/{pieDiagram-E7YTZNPT-4QDrwUVJ.js → pieDiagram-E7YTZNPT-BsHzVeMb.js} +1 -1
  277. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CHkz8icI.js → quadrantDiagram-AXDQQJYC-CeW8aBeN.js} +1 -1
  278. package/web-shell/assets/{railroadDiagram-O6MQD6OU-Y1UZxdd7.js → railroadDiagram-O6MQD6OU-BOCp1FXY.js} +1 -1
  279. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-B2STIEs-.js → requirementDiagram-EFPCY7ZU-Xq9keBxz.js} +1 -1
  280. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-QX0whSnt.js → sankeyDiagram-P5KCCOFB-Ce8E1MlF.js} +1 -1
  281. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-JSPBV6Z9.js → sequenceDiagram-WJ2MYXX4-Cf1g7Rf3.js} +1 -1
  282. package/web-shell/assets/{sizeCapture-X5ZJPWSS-BHR85hzV.js → sizeCapture-X5ZJPWSS-S2-ACap9.js} +1 -1
  283. package/web-shell/assets/{stateDiagram-HBIQ2CUA-5yqdcEJk.js → stateDiagram-HBIQ2CUA-DAqItqGd.js} +1 -1
  284. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BAK1hNnl.js +1 -0
  285. package/web-shell/assets/{swimlanes-XN3QIQJK-DtaoSfgY.js → swimlanes-XN3QIQJK-DhvAaL9i.js} +1 -1
  286. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-3m_PeoO-.js +8 -0
  287. package/web-shell/assets/{timeline-definition-24CTP7MA-Di2q68WC.js → timeline-definition-24CTP7MA-CxSAzpJr.js} +1 -1
  288. package/web-shell/assets/{vennDiagram-4TSXK5OY-BiIN5IkG.js → vennDiagram-4TSXK5OY-BsZKmoYt.js} +1 -1
  289. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Cjx_SM3A.js → wardleyDiagram-VM6X3IG4-B8cw7lrk.js} +1 -1
  290. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-VAFMpQ3K.js → xychartDiagram-S5SC5T6Z-DwM0RAy-.js} +1 -1
  291. package/web-shell/index.html +1 -1
  292. package/web-shell/sw.js +1 -1
  293. package/vendor/o1-connect/.lintstagedrc.mjs +0 -7
  294. package/web-shell/assets/channel-qApIjhnO.js +0 -1
  295. package/web-shell/assets/classDiagram-DTDB5LWJ-DEyyr5tF.js +0 -1
  296. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DEyyr5tF.js +0 -1
  297. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BHsx9uG6.js +0 -1
  298. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-AVscCGHh.js +0 -8
@@ -10,6 +10,7 @@ import {
10
10
  isTeammate
11
11
  } from "./chunk-FOZEB37P.js";
12
12
  import {
13
+ generateLegacyMcpToolName,
13
14
  normalizeMcpToolName,
14
15
  sanitizeToolNameForProvider
15
16
  } from "./chunk-23AFREUQ.js";
@@ -2176,12 +2177,19 @@ function parseRule(raw) {
2176
2177
  };
2177
2178
  }
2178
2179
  __name(parseRule, "parseRule");
2179
- function parseRules(raws) {
2180
+ function warnDroppedPermissionRule(raw, kind) {
2181
+ console.warn(
2182
+ `[permissions] ignoring malformed ${kind ? `${kind} ` : ""}rule (unbalanced parentheses): ${raw} \u2014 it matches nothing, so it has no effect. Balance the parentheses to make it apply.`
2183
+ );
2184
+ }
2185
+ __name(warnDroppedPermissionRule, "warnDroppedPermissionRule");
2186
+ function parseRules(raws, kind) {
2180
2187
  return raws.filter((r) => r && r.trim()).map(parseRule).map((r) => {
2181
2188
  if (r.invalid) {
2182
2189
  debugLogger.warn(
2183
2190
  `Ignoring malformed rule (unbalanced parentheses): ${r.raw}`
2184
2191
  );
2192
+ warnDroppedPermissionRule(r.raw, kind);
2185
2193
  }
2186
2194
  return r;
2187
2195
  });
@@ -2755,11 +2763,80 @@ function matchesMcpPattern(pattern, toolName) {
2755
2763
  return false;
2756
2764
  }
2757
2765
  __name(matchesMcpPattern, "matchesMcpPattern");
2766
+ var McpGrantStrength = {
2767
+ NONE: 0,
2768
+ /** Through a sanitized or historical spelling, which other keys can share. */
2769
+ LOSSY: 1,
2770
+ /** Through the server key exactly as configured. */
2771
+ SERVER: 2,
2772
+ /** The tool's registered or raw full name. */
2773
+ EXACT: 3,
2774
+ /** A prefix that names no server boundary: deliberately broad. */
2775
+ COARSE: 4
2776
+ };
2777
+ function mcpSegmentSpellings(segment) {
2778
+ return [
2779
+ segment,
2780
+ segment.replace(/[^A-Za-z0-9_.-]/g, "_"),
2781
+ segment.replace(/[^A-Za-z0-9_-]/g, "_")
2782
+ ];
2783
+ }
2784
+ __name(mcpSegmentSpellings, "mcpSegmentSpellings");
2785
+ function mcpGrantStrength(pattern, registeredName, identity) {
2786
+ const { serverName, serverToolName } = identity;
2787
+ const rawName = `mcp__${serverName}__${serverToolName}`;
2788
+ const serverSpellings = mcpSegmentSpellings(serverName);
2789
+ if (!pattern.endsWith("*")) {
2790
+ if (pattern === registeredName || pattern === rawName) {
2791
+ return McpGrantStrength.EXACT;
2792
+ }
2793
+ if (pattern === `mcp__${serverName}`) {
2794
+ return McpGrantStrength.SERVER;
2795
+ }
2796
+ return pattern === generateLegacyMcpToolName(rawName) || serverSpellings.some((server) => pattern === `mcp__${server}`) ? McpGrantStrength.LOSSY : McpGrantStrength.NONE;
2797
+ }
2798
+ const prefix = pattern.slice(0, -1);
2799
+ if (!prefix.startsWith("mcp__")) {
2800
+ return prefix !== "" && "mcp__".startsWith(prefix) ? McpGrantStrength.COARSE : McpGrantStrength.NONE;
2801
+ }
2802
+ const body = prefix.slice("mcp__".length);
2803
+ if (!body.includes("__")) {
2804
+ return serverSpellings.some((server) => `${server}__`.startsWith(body)) ? McpGrantStrength.COARSE : McpGrantStrength.NONE;
2805
+ }
2806
+ const registeredBoundary = `mcp__${serverSpellings[2]}__`;
2807
+ const toolSpellings = [
2808
+ ...mcpSegmentSpellings(serverToolName),
2809
+ // Keeps a prefix that reaches into a hash or truncation suffix.
2810
+ ...registeredName.startsWith(registeredBoundary) ? [registeredName.slice(registeredBoundary.length)] : []
2811
+ ];
2812
+ let strength = McpGrantStrength.NONE;
2813
+ serverSpellings.forEach((server, index) => {
2814
+ const boundary = `${server}__`;
2815
+ if (!body.startsWith(boundary)) return;
2816
+ const toolPrefix = body.slice(boundary.length);
2817
+ if (toolSpellings.some((spelling) => spelling.startsWith(toolPrefix))) {
2818
+ strength = Math.max(
2819
+ strength,
2820
+ index === 0 ? McpGrantStrength.SERVER : McpGrantStrength.LOSSY
2821
+ );
2822
+ }
2823
+ });
2824
+ return strength;
2825
+ }
2826
+ __name(mcpGrantStrength, "mcpGrantStrength");
2827
+ function isMcpGrantContested(pattern, registeredName, identity, registeredTools) {
2828
+ const own = mcpGrantStrength(pattern, registeredName, identity);
2829
+ if (own === McpGrantStrength.COARSE) return false;
2830
+ return registeredTools.some(
2831
+ (other) => other.serverName !== identity.serverName && mcpGrantStrength(pattern, other.name, other) >= own
2832
+ );
2833
+ }
2834
+ __name(isMcpGrantContested, "isMcpGrantContested");
2758
2835
  function matchesToolPattern(pattern, toolName) {
2759
2836
  return toolName.startsWith("mcp__") ? matchesMcpPattern(pattern, toolName) : pattern === toolName;
2760
2837
  }
2761
2838
  __name(matchesToolPattern, "matchesToolPattern");
2762
- function matchesRule(rule, toolName, command, filePath, domain, pathContext, specifier, toolParams, toolAliases, pathMatchMode = "lexical") {
2839
+ function matchesRule(rule, toolName, command, filePath, domain, pathContext, specifier, toolParams, toolAliases, pathMatchMode = "lexical", mcp) {
2763
2840
  const canonicalCtxToolName = resolveToolName(toolName);
2764
2841
  if (rule.invalid) {
2765
2842
  return false;
@@ -2768,7 +2845,8 @@ function matchesRule(rule, toolName, command, filePath, domain, pathContext, spe
2768
2845
  const matchesLegacyExactName = !rule.toolName.endsWith("*") && rule.toolName.split("__").length >= 3 && (toolAliases ?? []).some(
2769
2846
  (alias) => rule.toolName === resolveToolName(alias)
2770
2847
  );
2771
- const matchesMcpName = matchesMcpPattern(rule.toolName, canonicalCtxToolName) || matchesLegacyExactName;
2848
+ const matchesIdentity = mcp !== void 0 && mcpGrantStrength(rule.toolName, canonicalCtxToolName, mcp.identity) !== McpGrantStrength.NONE;
2849
+ const matchesMcpName = mcp?.grant ? matchesIdentity : matchesMcpPattern(rule.toolName, canonicalCtxToolName) || matchesLegacyExactName || matchesIdentity;
2772
2850
  if (!matchesMcpName) {
2773
2851
  return false;
2774
2852
  }
@@ -3052,12 +3130,14 @@ export {
3052
3130
  getToolNameAliases,
3053
3131
  toolMatchesRuleToolName,
3054
3132
  parseRule,
3133
+ warnDroppedPermissionRule,
3055
3134
  parseRules,
3056
3135
  getRuleDisplayName,
3057
3136
  buildPermissionRules,
3058
3137
  buildHumanReadableRuleLabel,
3059
3138
  splitCompoundCommandSegments,
3060
3139
  splitCompoundCommand,
3140
+ isMcpGrantContested,
3061
3141
  matchesToolPattern,
3062
3142
  matchesRule,
3063
3143
  SUBAGENT_PLAN_LIFECYCLE_TOOLS,
@@ -978,7 +978,7 @@ async function executePolicy(config, item, policy, store, cache, signal, memory)
978
978
  stage: policy.stage
979
979
  }
980
980
  };
981
- const { executeToolCall } = await import("./nonInteractiveToolExecutor-EP57MOQU.js");
981
+ const { executeToolCall } = await import("./nonInteractiveToolExecutor-MEFA3XG6.js");
982
982
  const response = await executeToolCall(
983
983
  config,
984
984
  request,
@@ -4,16 +4,16 @@ import {
4
4
  LoadedSettings,
5
5
  getNestedProperty,
6
6
  getPersistScopeForModelSelection
7
- } from "./chunk-HASGT63Y.js";
7
+ } from "./chunk-TNDQQXZG.js";
8
8
  import {
9
9
  getHomeEnvFallbackVars
10
- } from "./chunk-UA6BRUXW.js";
10
+ } from "./chunk-4S3RAGV6.js";
11
11
  import {
12
12
  writeWithBackupSync
13
- } from "./chunk-P5EIXSKJ.js";
13
+ } from "./chunk-TQREMT4H.js";
14
14
  import {
15
15
  preserveModelProviderPlaceholders
16
- } from "./chunk-MSBLDE7B.js";
16
+ } from "./chunk-INL5DBBY.js";
17
17
  import {
18
18
  resolveEnvVarsInObject
19
19
  } from "./chunk-EYWIFUPJ.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  runExitCleanup
5
- } from "./chunk-FGV2OPGK.js";
5
+ } from "./chunk-CFDP4DA7.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-S2467S6L.js";
@@ -4,6 +4,9 @@ import {
4
4
  convertSchema,
5
5
  relaxSchemaForFunctionCalling
6
6
  } from "./chunk-2LYPPV2R.js";
7
+ import {
8
+ markToolCallArgumentsIncomplete
9
+ } from "./chunk-VBDYNBGQ.js";
7
10
  import {
8
11
  isDisclosureText
9
12
  } from "./chunk-HX6AICAX.js";
@@ -170,6 +173,109 @@ function evictOldestImagesBeyondCap(messages, cap = DEFAULT_MAX_REQUEST_IMAGES)
170
173
  }
171
174
  __name(evictOldestImagesBeyondCap, "evictOldestImagesBeyondCap");
172
175
 
176
+ // packages/core/src/core/openaiContentGenerator/trailing-thinking-tag-filter.ts
177
+ init_esbuild_shims();
178
+ var CLOSING_TAG_LINE = /\r?\n[ \t]*<\/(think|thinking)[ \t]*>[ \t\r\n]*$/i;
179
+ var CLOSING_MARKUP = /<\//;
180
+ var LITERAL_OPENING_MARKUP = /<(?!(?:t|th|thi|thin|thinki|thinkin)\s*(?=<|$)|think(?=$)|thinking(?=$))[a-z!?]/i;
181
+ var MAX_PENDING_LENGTH = 128;
182
+ var TAIL_LENGTH = 12;
183
+ var TrailingThinkingTagFilter = class {
184
+ static {
185
+ __name(this, "TrailingThinkingTagFilter");
186
+ }
187
+ pending = "";
188
+ hasVisibleText = false;
189
+ literalContent = false;
190
+ markerTail = "";
191
+ emittedTail = "";
192
+ previousLineBlank = true;
193
+ currentLineBlank = true;
194
+ lineIndent = 0;
195
+ /** Set when a call removed a tag; the caller reads and clears it. */
196
+ sanitizedTagName;
197
+ /**
198
+ * @param final no more text follows; nothing stays withheld after this call.
199
+ * @param completed the response ended normally, so a trailing tag is an
200
+ * artifact and not the edge of a cut answer.
201
+ */
202
+ parse(text, final, completed) {
203
+ this.pending += text;
204
+ const markers = this.markerTail + text;
205
+ this.literalContent ||= /`|~{3}/.test(markers) || LITERAL_OPENING_MARKUP.test(markers);
206
+ this.markerTail = markers.replace(/\s+$/, " ").slice(-TAIL_LENGTH);
207
+ this.trackIndentedCode(text);
208
+ const closing = CLOSING_TAG_LINE.exec(this.pending);
209
+ let candidateStart = closing?.index ?? this.pending.lastIndexOf("\n");
210
+ if (!closing && this.pending.endsWith("\r")) {
211
+ candidateStart = Math.max(candidateStart, this.pending.length - 1);
212
+ } else if (!closing && this.pending[candidateStart - 1] === "\r") {
213
+ candidateStart--;
214
+ }
215
+ if (!closing && candidateStart >= 0) {
216
+ const candidate = this.pending.slice(candidateStart).trimStart();
217
+ const lowered = candidate.toLowerCase();
218
+ if (!["</think>", "</thinking>"].some((tag) => tag.startsWith(lowered)) && !/^<\/(?:think|thinking)[ \t]*>?[ \t\r\n]*$/i.test(candidate)) {
219
+ candidateStart = -1;
220
+ }
221
+ }
222
+ const prefix = candidateStart >= 0 ? this.pending.slice(0, candidateStart) : this.pending;
223
+ this.literalContent ||= CLOSING_MARKUP.test(this.emittedTail + prefix);
224
+ const eligible = !this.literalContent && candidateStart >= 0 && (this.hasVisibleText || /\S/.test(prefix)) && this.pending.length - candidateStart <= MAX_PENDING_LENGTH;
225
+ if (eligible && (!final || completed && closing)) {
226
+ if (final && closing) {
227
+ this.sanitizedTagName = closing[1].toLowerCase();
228
+ }
229
+ this.pending = final ? "" : this.pending.slice(candidateStart);
230
+ this.hasVisibleText ||= /\S/.test(prefix);
231
+ this.noteReleased(prefix);
232
+ return prefix;
233
+ }
234
+ const result = this.pending;
235
+ this.pending = "";
236
+ this.literalContent ||= CLOSING_MARKUP.test(this.emittedTail + result);
237
+ this.hasVisibleText ||= /\S/.test(result);
238
+ this.noteReleased(result);
239
+ return result;
240
+ }
241
+ /**
242
+ * Hands back a hold that is only whitespace, for a caller that is about to
243
+ * stop using this filter. A held tag fragment stays held.
244
+ */
245
+ drainWhitespace() {
246
+ if (!/^\s+$/.test(this.pending)) return "";
247
+ const held = this.pending;
248
+ this.pending = "";
249
+ this.noteReleased(held);
250
+ return held;
251
+ }
252
+ // A line indented by four columns after a blank line is a code block. After
253
+ // a paragraph line it is not, so one newline and four spaces before the tag
254
+ // must still let it be removed.
255
+ trackIndentedCode(text) {
256
+ for (const character of text) {
257
+ if (character === "\n") {
258
+ this.previousLineBlank = this.currentLineBlank;
259
+ this.currentLineBlank = true;
260
+ this.lineIndent = 0;
261
+ } else if (this.currentLineBlank && /[ \t\r]/.test(character)) {
262
+ if (character !== "\r") {
263
+ this.lineIndent = Math.min(
264
+ 4,
265
+ this.lineIndent + (character === " " ? 4 - this.lineIndent % 4 : 1)
266
+ );
267
+ }
268
+ } else {
269
+ this.literalContent ||= this.currentLineBlank && this.previousLineBlank && this.lineIndent >= 4;
270
+ this.currentLineBlank = false;
271
+ }
272
+ }
273
+ }
274
+ noteReleased(text) {
275
+ this.emittedTail = (this.emittedTail + text).slice(-TAIL_LENGTH);
276
+ }
277
+ };
278
+
173
279
  // packages/core/src/core/openaiContentGenerator/converter.ts
174
280
  var debugLogger2 = createDebugLogger("CONVERTER");
175
281
  var SPLIT_TOOL_MEDIA_TEXT = "(attached media from previous tool call)";
@@ -371,10 +477,10 @@ function convertLlmRequestToOpenAI(request, requestContext, options = { cleanOrp
371
477
  let messages = [];
372
478
  addSystemInstructionMessage(request, messages);
373
479
  processContents(request.contents, messages, requestContext);
374
- messages = mergeConsecutiveAssistantMessages(messages);
480
+ messages = normalizeAssistantMessages(messages);
375
481
  if (options.cleanOrphanToolCalls) {
376
482
  messages = cleanOrphanedToolCalls(messages);
377
- messages = mergeConsecutiveAssistantMessages(messages);
483
+ messages = normalizeAssistantMessages(messages);
378
484
  }
379
485
  evictOldestImagesBeyondCap(messages);
380
486
  return messages;
@@ -489,6 +595,33 @@ function processContent(content, messages, requestContext) {
489
595
  const emittedFunctionCallIds = /* @__PURE__ */ new Set();
490
596
  const emittedFunctionResponseIds = /* @__PURE__ */ new Set();
491
597
  const accumulatedSplitMedia = [];
598
+ const flushAssistantMessage = /* @__PURE__ */ __name(() => {
599
+ if (contentParts.length === 0 && toolCalls.length === 0 && reasoningParts.length === 0) {
600
+ return;
601
+ }
602
+ const assistantTextContent = contentParts.filter(
603
+ (part) => part.type === "text"
604
+ ).map((part) => part.text).join("");
605
+ const assistantMessage = {
606
+ role: "assistant",
607
+ // When there is reasoning content but no text, use "" instead of null.
608
+ // Some OpenAI-compatible providers (e.g. Ollama) reject content: null
609
+ // when reasoning_content is present, returning HTTP 400.
610
+ // For tool-call-only messages we keep null to stay spec-compliant.
611
+ content: assistantTextContent || (reasoningParts.length > 0 ? "" : null)
612
+ };
613
+ if (toolCalls.length > 0) {
614
+ assistantMessage.tool_calls = [...toolCalls];
615
+ }
616
+ const reasoningContent = reasoningParts.join("");
617
+ if (reasoningContent) {
618
+ assistantMessage.reasoning_content = reasoningContent;
619
+ }
620
+ messages.push(assistantMessage);
621
+ contentParts.length = 0;
622
+ reasoningParts.length = 0;
623
+ toolCalls.length = 0;
624
+ }, "flushAssistantMessage");
492
625
  for (const part of parts) {
493
626
  if (typeof part === "string") {
494
627
  contentParts.push({ type: "text", text: part });
@@ -496,6 +629,9 @@ function processContent(content, messages, requestContext) {
496
629
  }
497
630
  if ("text" in part && "thought" in part && part.thought) {
498
631
  if (role === "assistant" && part.text) {
632
+ if (contentParts.length > 0 || toolCalls.length > 0) {
633
+ flushAssistantMessage();
634
+ }
499
635
  reasoningParts.push(part.text);
500
636
  }
501
637
  }
@@ -587,28 +723,7 @@ function processContent(content, messages, requestContext) {
587
723
  });
588
724
  }
589
725
  if (role === "assistant") {
590
- if (contentParts.length === 0 && toolCalls.length === 0 && reasoningParts.length === 0) {
591
- return;
592
- }
593
- const assistantTextContent = contentParts.filter(
594
- (part) => part.type === "text"
595
- ).map((part) => part.text).join("");
596
- const assistantMessage = {
597
- role: "assistant",
598
- // When there is reasoning content but no text, use "" instead of null.
599
- // Some OpenAI-compatible providers (e.g. Ollama) reject content: null
600
- // when reasoning_content is present, returning HTTP 400.
601
- // For tool-call-only messages we keep null to stay spec-compliant.
602
- content: assistantTextContent || (reasoningParts.length > 0 ? "" : null)
603
- };
604
- if (toolCalls.length > 0) {
605
- assistantMessage.tool_calls = toolCalls;
606
- }
607
- const reasoningContent = reasoningParts.join("");
608
- if (reasoningContent) {
609
- assistantMessage.reasoning_content = reasoningContent;
610
- }
611
- messages.push(assistantMessage);
726
+ flushAssistantMessage();
612
727
  return;
613
728
  }
614
729
  if (contentParts.length > 0) {
@@ -895,8 +1010,23 @@ function extractTextFromContentUnion(contentUnion) {
895
1010
  return "";
896
1011
  }
897
1012
  __name(extractTextFromContentUnion, "extractTextFromContentUnion");
898
- function convertOpenAITextToParts(text, requestContext, final = true) {
1013
+ function convertOpenAITextToParts(text, requestContext, final, completed) {
899
1014
  if (!requestContext.responseParsingOptions?.taggedThinkingTags && !requestContext.taggedThinkingParser) {
1015
+ if (requestContext.responseParsingOptions?.contentOnlyThinkingTagLeaks) {
1016
+ const filter = requestContext.trailingThinkingTagFilter ??= new TrailingThinkingTagFilter();
1017
+ text = filter.parse(
1018
+ text,
1019
+ final || requestContext.hasThinkingTagInReasoning === true,
1020
+ completed && !requestContext.hasThinkingTagInReasoning
1021
+ );
1022
+ if (filter.sanitizedTagName) {
1023
+ requestContext.protocolTagSanitized = {
1024
+ tagName: filter.sanitizedTagName,
1025
+ toolCallCount: 0
1026
+ };
1027
+ filter.sanitizedTagName = void 0;
1028
+ }
1029
+ }
900
1030
  return text ? [{ text }] : [];
901
1031
  }
902
1032
  if (requestContext.taggedThinkingParser) {
@@ -916,6 +1046,10 @@ var LEADING_THINKING_TAG_PATTERN = /^\s*<\/?think(?:ing)?\s*>/i;
916
1046
  var STANDALONE_CLOSING_THINKING_TAG_PATTERN = /^\s*<\/(think|thinking)\s*>\s*$/i;
917
1047
  var STANDALONE_OPENING_THINKING_TAG_PATTERN = /^\s*<(think|thinking)\s*>\s*$/i;
918
1048
  var MAX_THINKING_TAG_CANDIDATE_LENGTH = 128;
1049
+ function completedNormally(finishReason, reasoningText) {
1050
+ return mapOpenAIFinishReasonToLlm(finishReason || "stop") === FinishReason.STOP && !THINKING_TAG_PATTERN.test(reasoningText ?? "");
1051
+ }
1052
+ __name(completedNormally, "completedNormally");
919
1053
  function canBeStandaloneThinkingTagPrefix(text) {
920
1054
  const candidate = text.trimStart().toLowerCase();
921
1055
  if (!candidate) return true;
@@ -983,7 +1117,12 @@ function convertOpenAIResponseToLlm(openaiResponse, requestContext) {
983
1117
  const response = new GenerateContentResponse();
984
1118
  if (choice) {
985
1119
  const parts = [];
986
- const textParts = choice.message.content ? convertOpenAITextToParts(choice.message.content, requestContext) : [];
1120
+ const textParts = choice.message.content ? convertOpenAITextToParts(
1121
+ choice.message.content,
1122
+ requestContext,
1123
+ true,
1124
+ completedNormally(choice.finish_reason, reasoningText)
1125
+ ) : [];
987
1126
  if (reasoningText && !hasThoughtPart(textParts)) {
988
1127
  parts.push(createOpenAIReasoningThoughtPart(reasoningText));
989
1128
  }
@@ -1085,6 +1224,9 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
1085
1224
  let parts = [];
1086
1225
  let contentParts = [];
1087
1226
  const reasoningText = choice.delta?.reasoning_content ?? choice.delta?.reasoning;
1227
+ if (!requestContext.responseParsingOptions?.taggedThinkingTags && THINKING_TAG_PATTERN.test(reasoningText ?? "")) {
1228
+ requestContext.hasThinkingTagInReasoning = true;
1229
+ }
1088
1230
  if (typeof choice.delta?.content === "string") {
1089
1231
  const rawContent = choice.delta.content;
1090
1232
  const replayState = requestContext.textDeltaState;
@@ -1106,19 +1248,26 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
1106
1248
  if (requestContext.responseParsingOptions?.taggedThinkingTagsAfterReasoning && (requestContext.hasStructuredReasoningContent || reasoningText) && LEADING_THINKING_TAG_PATTERN.test(taggedThinkingCandidate) && !taggedThinkingCandidate.trimStart().startsWith("</")) {
1107
1249
  requestContext.taggedThinkingParser ??= new TaggedThinkingParser();
1108
1250
  requestContext.pendingThinkingTagCandidate = void 0;
1251
+ const drainedWhitespace = requestContext.trailingThinkingTagFilter?.drainWhitespace() ?? "";
1109
1252
  contentParts = requestContext.taggedThinkingParser.parse(
1110
- taggedThinkingCandidate,
1253
+ drainedWhitespace + taggedThinkingCandidate,
1111
1254
  Boolean(choice.finish_reason)
1112
1255
  );
1113
1256
  } else if (normalizedContent || choice.finish_reason) {
1114
1257
  contentParts = convertOpenAITextToParts(
1115
1258
  normalizedContent,
1116
1259
  requestContext,
1117
- Boolean(choice.finish_reason)
1260
+ Boolean(choice.finish_reason),
1261
+ completedNormally(choice.finish_reason, reasoningText)
1118
1262
  );
1119
1263
  }
1120
1264
  } else if (choice.finish_reason) {
1121
- contentParts = convertOpenAITextToParts("", requestContext, true);
1265
+ contentParts = convertOpenAITextToParts(
1266
+ "",
1267
+ requestContext,
1268
+ true,
1269
+ completedNormally(choice.finish_reason, reasoningText)
1270
+ );
1122
1271
  }
1123
1272
  if (choice.finish_reason && requestContext.responseParsingOptions?.taggedThinkingTagsAfterReasoning && requestContext.taggedThinkingParser?.hasUnclosedThought()) {
1124
1273
  throwProtocolTagLeak(requestContext);
@@ -1296,6 +1445,9 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
1296
1445
  const toolCallWithoutName = toolCallParser.hasNamelessToolCall();
1297
1446
  const completedToolCalls = choice.finish_reason ? toolCallParser.getCompletedToolCalls() : [];
1298
1447
  const toolCallsTruncated = choice.finish_reason ? toolCallParser.hasIncompleteToolCalls() : false;
1448
+ if (choice.finish_reason && requestContext.protocolTagSanitized) {
1449
+ requestContext.protocolTagSanitized.toolCallCount = completedToolCalls.length;
1450
+ }
1299
1451
  if (choice.finish_reason && requestContext.pendingThinkingTagCandidate?.closingTagName) {
1300
1452
  if (requestContext.hasThinkingTagInReasoning === true || choice.finish_reason !== "tool_calls" || completedToolCalls.length === 0 || toolCallWithoutName || toolCallParser.hasConflictingToolCallIdentity() || toolCallsTruncated || toolCallParser.hasInvalidToolCallArguments()) {
1301
1453
  throwProtocolTagLeak(requestContext);
@@ -1334,7 +1486,28 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
1334
1486
  }
1335
1487
  }
1336
1488
  }
1337
- const effectiveFinishReason = toolCallsTruncated && choice.finish_reason !== "length" ? "length" : choice.finish_reason;
1489
+ const suspectTruncation = toolCallsTruncated && choice.finish_reason !== "length";
1490
+ const usageVerdict = corroborateTruncationFromCompletionTokens(
1491
+ chunk.usage?.completion_tokens,
1492
+ requestContext.maxOutputTokens
1493
+ );
1494
+ if (suspectTruncation) {
1495
+ debugLogger2.debug("Truncated tool-call finish_reason override", {
1496
+ providerFinishReason: choice.finish_reason,
1497
+ completionTokens: chunk.usage?.completion_tokens ?? null,
1498
+ maxOutputTokens: requestContext.maxOutputTokens ?? null,
1499
+ verdict: usageVerdict
1500
+ });
1501
+ }
1502
+ const effectiveFinishReason = suspectTruncation && usageVerdict !== "disproved" ? "length" : choice.finish_reason;
1503
+ if (suspectTruncation && usageVerdict === "unknown") {
1504
+ requestContext.pendingTruncationOverride = {
1505
+ finishReason: mapOpenAIFinishReasonToLlm(choice.finish_reason)
1506
+ };
1507
+ }
1508
+ if (suspectTruncation && usageVerdict === "disproved") {
1509
+ markToolCallArgumentsIncomplete(parts);
1510
+ }
1338
1511
  const candidate = {
1339
1512
  content: {
1340
1513
  parts,
@@ -1394,6 +1567,14 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
1394
1567
  return response;
1395
1568
  }
1396
1569
  __name(convertOpenAIChunkToLlm, "convertOpenAIChunkToLlm");
1570
+ var TRUNCATION_COMPLETION_TOKEN_RATIO_THRESHOLD = 0.5;
1571
+ function corroborateTruncationFromCompletionTokens(completionTokens, maxOutputTokens) {
1572
+ if (typeof completionTokens !== "number" || !Number.isFinite(completionTokens) || completionTokens <= 0 || maxOutputTokens === void 0 || maxOutputTokens <= 0) {
1573
+ return "unknown";
1574
+ }
1575
+ return completionTokens >= maxOutputTokens * TRUNCATION_COMPLETION_TOKEN_RATIO_THRESHOLD ? "corroborated" : "disproved";
1576
+ }
1577
+ __name(corroborateTruncationFromCompletionTokens, "corroborateTruncationFromCompletionTokens");
1397
1578
  function mapOpenAIFinishReasonToLlm(openaiReason) {
1398
1579
  if (typeof openaiReason !== "string") {
1399
1580
  return FinishReason.FINISH_REASON_UNSPECIFIED;
@@ -1496,9 +1677,6 @@ function cleanOrphanedToolCalls(messages) {
1496
1677
  }
1497
1678
  continue;
1498
1679
  }
1499
- if (nextMessage.role === "assistant" && !hasToolCalls(nextMessage)) {
1500
- continue;
1501
- }
1502
1680
  break;
1503
1681
  }
1504
1682
  const validToolCalls = candidateToolCalls.filter(
@@ -1564,50 +1742,55 @@ function cleanOrphanedToolCalls(messages) {
1564
1742
  return cleaned;
1565
1743
  }
1566
1744
  __name(cleanOrphanedToolCalls, "cleanOrphanedToolCalls");
1567
- function mergeConsecutiveAssistantMessages(messages) {
1568
- const merged = [];
1745
+ function normalizeAssistantMessages(messages) {
1746
+ const normalized = [];
1747
+ let toolCalls = [];
1748
+ const flushToolCalls = /* @__PURE__ */ __name(() => {
1749
+ if (toolCalls.length === 0) return;
1750
+ const last = normalized.at(-1);
1751
+ if (last?.role === "assistant") {
1752
+ last.tool_calls = toolCalls;
1753
+ } else {
1754
+ normalized.push({
1755
+ role: "assistant",
1756
+ content: null,
1757
+ tool_calls: toolCalls
1758
+ });
1759
+ }
1760
+ toolCalls = [];
1761
+ }, "flushToolCalls");
1569
1762
  for (const message of messages) {
1570
- if (message.role === "assistant" && merged.length > 0) {
1571
- const lastMessage = merged[merged.length - 1];
1572
- if (lastMessage.role === "assistant") {
1573
- const lastToolCalls = "tool_calls" in lastMessage ? lastMessage.tool_calls || [] : [];
1574
- const currentToolCalls = "tool_calls" in message ? message.tool_calls || [] : [];
1575
- const lastContent = lastMessage.content;
1576
- const currentContent = message.content;
1577
- const useArrayFormat = Array.isArray(lastContent) || Array.isArray(currentContent);
1578
- let combinedContent;
1579
- if (useArrayFormat) {
1580
- const lastParts = Array.isArray(lastContent) ? lastContent : typeof lastContent === "string" && lastContent ? [{ type: "text", text: lastContent }] : [];
1581
- const currentParts = Array.isArray(currentContent) ? currentContent : typeof currentContent === "string" && currentContent ? [{ type: "text", text: currentContent }] : [];
1582
- combinedContent = [
1583
- ...lastParts,
1584
- ...currentParts
1585
- ];
1586
- } else {
1587
- const lastText = typeof lastContent === "string" ? lastContent : "";
1588
- const currentText = typeof currentContent === "string" ? currentContent : "";
1589
- const mergedText = [lastText, currentText].filter(Boolean).join("");
1590
- combinedContent = mergedText || null;
1591
- }
1592
- const combinedToolCalls = [...lastToolCalls, ...currentToolCalls];
1593
- lastMessage.content = combinedContent || null;
1594
- if (combinedToolCalls.length > 0) {
1595
- lastMessage.tool_calls = combinedToolCalls;
1596
- }
1597
- const lastReasoning = lastMessage.reasoning_content;
1598
- const currentReasoning = message.reasoning_content;
1599
- const combinedReasoning = [lastReasoning, currentReasoning].filter(Boolean).join("");
1600
- if (combinedReasoning) {
1601
- lastMessage.reasoning_content = combinedReasoning;
1602
- }
1603
- continue;
1604
- }
1763
+ if (message.role !== "assistant") {
1764
+ flushToolCalls();
1765
+ normalized.push(message);
1766
+ continue;
1767
+ }
1768
+ const { tool_calls: calls = [], ...next } = message;
1769
+ const last = normalized.at(-1);
1770
+ const lastAssistant = last?.role === "assistant" ? last : void 0;
1771
+ toolCalls.push(...calls);
1772
+ if (!next.content && !next.reasoning_content && calls.length > 0) {
1773
+ continue;
1774
+ }
1775
+ if (!lastAssistant || next.reasoning_content) {
1776
+ normalized.push(next);
1777
+ continue;
1778
+ }
1779
+ if (Array.isArray(lastAssistant.content) || Array.isArray(next.content)) {
1780
+ const asParts = /* @__PURE__ */ __name((content) => Array.isArray(content) ? content : content ? [{ type: "text", text: content }] : [], "asParts");
1781
+ lastAssistant.content = [
1782
+ ...asParts(lastAssistant.content),
1783
+ ...asParts(next.content)
1784
+ ];
1785
+ } else {
1786
+ const text = (lastAssistant.content || "") + (next.content || "");
1787
+ lastAssistant.content = text || (lastAssistant.reasoning_content ? "" : null);
1605
1788
  }
1606
- merged.push(message);
1607
1789
  }
1608
- return merged;
1790
+ flushToolCalls();
1791
+ return normalized;
1609
1792
  }
1610
- __name(mergeConsecutiveAssistantMessages, "mergeConsecutiveAssistantMessages");
1793
+ __name(normalizeAssistantMessages, "normalizeAssistantMessages");
1611
1794
  var OpenAIContentConverter = {
1612
1795
  convertLlmToolParametersToOpenAI,
1613
1796
  convertLlmToolsToOpenAI,
@@ -1624,6 +1807,7 @@ var openaiRequestCaptureContext = new AsyncLocalStorage();
1624
1807
 
1625
1808
  export {
1626
1809
  TaggedThinkingParser,
1810
+ corroborateTruncationFromCompletionTokens,
1627
1811
  OpenAIContentConverter,
1628
1812
  openaiRequestCaptureContext
1629
1813
  };
@@ -1637,3 +1821,8 @@ export {
1637
1821
  * Copyright 2025 Google LLC
1638
1822
  * SPDX-License-Identifier: Apache-2.0
1639
1823
  */
1824
+ /**
1825
+ * @license
1826
+ * Copyright 2026 o1-code contributors
1827
+ * SPDX-License-Identifier: Apache-2.0
1828
+ */
@@ -2,24 +2,24 @@
2
2
  "use strict";
3
3
  import {
4
4
  t
5
- } from "./chunk-44NOS72H.js";
5
+ } from "./chunk-PPK5GYKF.js";
6
6
  import {
7
7
  computeThresholds,
8
8
  estimateContextTextTokens,
9
9
  formatContextFileDisplayPath,
10
10
  getMainSessionBaseSystemPrompt,
11
11
  stripTerminalControlSequences
12
- } from "./chunk-PUBPS6I4.js";
12
+ } from "./chunk-URV7VB5I.js";
13
13
  import {
14
14
  qualifySkillName
15
- } from "./chunk-WIQEF7ON.js";
15
+ } from "./chunk-DV2KGLEW.js";
16
16
  import {
17
17
  isMediaPolicyToolHiddenFromModel
18
18
  } from "./chunk-CI2ZHR5C.js";
19
19
  import {
20
20
  DiscoveredMCPTool,
21
21
  uiTelemetryService
22
- } from "./chunk-IDOFNXOM.js";
22
+ } from "./chunk-MNLPYHDS.js";
23
23
  import {
24
24
  buildAvailableSkillsReminder,
25
25
  getStartupContextLength