nolo-cli 0.228.0 → 0.228.1

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 (212) hide show
  1. package/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
  2. package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
  3. package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
  4. package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
  5. package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
  6. package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
  7. package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
  8. package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  11. package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
  12. package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
  13. package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
  14. package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
  15. package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
  16. package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
  17. package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
  18. package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
  19. package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
  20. package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
  21. package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
  22. package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
  23. package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
  24. package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
  25. package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
  26. package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
  27. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  28. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  29. package/chunk-3A5NNQCN.js +64 -0
  30. package/chunk-3F2FRLIO.js +372 -0
  31. package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
  32. package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
  33. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  34. package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
  35. package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
  36. package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
  37. package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
  38. package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
  39. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  40. package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
  41. package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
  42. package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
  43. package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
  44. package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
  45. package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
  46. package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
  47. package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
  48. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  49. package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
  50. package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
  51. package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
  52. package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
  53. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  54. package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
  55. package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
  56. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  57. package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
  58. package/chunk-EUGTFFO6.js +42 -0
  59. package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
  60. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  61. package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
  62. package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
  63. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  64. package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
  65. package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
  66. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  67. package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
  68. package/chunk-HEVRQGGH.js +106 -0
  69. package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
  70. package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
  71. package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
  72. package/chunk-IVK2KT3H.js +209 -0
  73. package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
  74. package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
  75. package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
  76. package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
  77. package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
  78. package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
  79. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  80. package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
  81. package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
  82. package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
  83. package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
  84. package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
  85. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  86. package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
  87. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  88. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  89. package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
  90. package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
  91. package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
  92. package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
  93. package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
  94. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  95. package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
  96. package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
  97. package/chunk-OQFOE4SJ.js +405 -0
  98. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  99. package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
  100. package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
  101. package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
  102. package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
  103. package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
  104. package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
  105. package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
  106. package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
  107. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  108. package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
  109. package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
  110. package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
  111. package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
  112. package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
  113. package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
  114. package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
  115. package/chunk-TRRXYFTR.js +46 -0
  116. package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
  117. package/chunk-TYJCIA2O.js +835 -0
  118. package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
  119. package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
  120. package/chunk-UAF5VQCE.js +77 -0
  121. package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
  122. package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
  123. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  124. package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
  125. package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
  126. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  127. package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
  128. package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
  129. package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
  130. package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
  131. package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
  132. package/chunk-XRGBJHZX.js +136 -0
  133. package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
  134. package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
  135. package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
  136. package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
  137. package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
  138. package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
  139. package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
  140. package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
  141. package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  142. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  143. package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
  144. package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
  145. package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
  146. package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
  147. package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
  148. package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
  149. package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
  150. package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
  151. package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
  152. package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
  153. package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
  154. package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
  155. package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
  156. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  157. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  158. package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
  159. package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
  160. package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
  161. package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
  162. package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
  163. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  164. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  165. package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
  166. package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
  167. package/index.js +23 -11
  168. package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
  169. package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
  170. package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
  171. package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  172. package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
  173. package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
  174. package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
  175. package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
  176. package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
  177. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  178. package/package.json +2 -1
  179. package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
  180. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  181. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  182. package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
  183. package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
  184. package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
  185. package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
  186. package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
  187. package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  188. package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
  189. package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
  190. package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
  191. package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
  192. package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
  193. package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
  194. package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
  195. package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
  196. package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
  197. package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
  198. package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
  199. package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
  200. package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
  201. package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
  202. package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
  203. package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  204. package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  205. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  206. package/chunk-FGHEF6WI.js +0 -34
  207. package/chunk-U5LOKQ2R.js +0 -176
  208. package/chunk-YDRRGVT5.js +0 -142
  209. package/chunk-YGDYYFRX.js +0 -86
  210. package/chunk-Z7KE4K3H.js +0 -758
  211. package/lib-62SWPXNF.js +0 -21042
  212. /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  parsePendingApprovalResult,
8
8
  runConnectorToolWithHostApproval,
9
9
  withHostApprovalRequest
10
- } from "./chunk-KLAMJNKQ.js";
10
+ } from "./chunk-6PAHSSD2.js";
11
11
  import {
12
12
  BROWSER_SHELL_BRIDGE_ENV
13
- } from "./chunk-FE7G6DSP.js";
13
+ } from "./chunk-R72QWIFO.js";
14
14
  import {
15
15
  adoptRequiredClaudeCodeVersion,
16
16
  anthropicRefresh,
@@ -22,12 +22,12 @@ import {
22
22
  resolveClaudeCodeVersion,
23
23
  resolveServerSyncConfig,
24
24
  xaiRefresh
25
- } from "./chunk-6TVYUQRM.js";
25
+ } from "./chunk-6BMTKYAO.js";
26
26
  import {
27
27
  clearCredentialAvailability,
28
28
  markCredentialUnavailable,
29
29
  readCredentialEntry
30
- } from "./chunk-WWTSEBDF.js";
30
+ } from "./chunk-GIXWVN2W.js";
31
31
  import {
32
32
  SANDBOX_HELPER_PATH,
33
33
  SANDBOX_OUTPUT_LIMITS,
@@ -36,7 +36,7 @@ import {
36
36
  buildWorkspaceHelperSource,
37
37
  dockerExecutionToolNames,
38
38
  parseToolOutput
39
- } from "./chunk-VTHWBTRE.js";
39
+ } from "./chunk-BPB3T5EU.js";
40
40
  import {
41
41
  createChromeConnectorClientResolver,
42
42
  createVerifiedChromeConnectorClient,
@@ -54,10 +54,10 @@ import {
54
54
  DialogNotifyError,
55
55
  deliverDialogNotification,
56
56
  sha256Hex
57
- } from "./chunk-OHUYN3YU.js";
57
+ } from "./chunk-OKAXQFON.js";
58
58
  import {
59
59
  createTuiSummaryLlmCaller
60
- } from "./chunk-4IQN6FWY.js";
60
+ } from "./chunk-OB4FBZXJ.js";
61
61
  import {
62
62
  CliProviderQuotaError,
63
63
  executeCli,
@@ -69,13 +69,16 @@ import {
69
69
  import {
70
70
  buildCliPrompt
71
71
  } from "./chunk-ATNTHIZI.js";
72
+ import {
73
+ resolveUserSkillRuntime
74
+ } from "./chunk-V5TI7HJH.js";
72
75
  import {
73
76
  inlineImageUrlsForCustomProvider,
74
77
  prepareTools
75
- } from "./chunk-IIOSZAJX.js";
78
+ } from "./chunk-KDBDOXOM.js";
76
79
  import {
77
80
  getServerProviderSecret
78
- } from "./chunk-HS7MLR74.js";
81
+ } from "./chunk-KZ4A7EIV.js";
79
82
  import {
80
83
  CONTROL_AGENT_RUN_ACTIONS,
81
84
  buildCliLocalRuntimeForwardArgs,
@@ -95,25 +98,18 @@ import {
95
98
  resolveCliLocalSpawnDispatch,
96
99
  resolveRunContextFacts,
97
100
  resolveStartAgentRunCwd
98
- } from "./chunk-FTWAOKFU.js";
99
- import {
100
- deriveCredentialGroup,
101
- deriveCustomProviderCredentialGroup
102
- } from "./chunk-XCA4WHX5.js";
103
- import {
104
- resolveUserSkillRuntime
105
- } from "./chunk-XSRSAU3O.js";
101
+ } from "./chunk-U3BUWDUP.js";
106
102
  import {
107
103
  normalizeEnabledPromptSkills,
108
104
  resolveUserEnabledSkills
109
- } from "./chunk-UOUMPHS5.js";
105
+ } from "./chunk-R3FZHW4Q.js";
110
106
  import {
111
107
  validateAskChoiceInput
112
- } from "./chunk-ODBYGVO2.js";
108
+ } from "./chunk-YXK3GJF5.js";
113
109
  import {
114
110
  prepareTokenUsageData,
115
111
  runKeyed
116
- } from "./chunk-YFW4H6DL.js";
112
+ } from "./chunk-EVHTYVD2.js";
117
113
  import {
118
114
  applyTokenUsageToDayStats,
119
115
  require_format
@@ -124,16 +120,24 @@ import {
124
120
  } from "./chunk-523DITKR.js";
125
121
  import {
126
122
  fetchServerSyncedCredential
127
- } from "./chunk-N74XL3NI.js";
123
+ } from "./chunk-7PON4LBY.js";
124
+ import {
125
+ getDefaultCliLocalRuntimeDb
126
+ } from "./chunk-J55F3IEZ.js";
128
127
  import {
129
128
  defaultLoopbackRequest,
130
129
  loadLocalRunChildDialogIds
131
- } from "./chunk-CIGCTSBF.js";
130
+ } from "./chunk-KDDHQMSH.js";
132
131
  import {
133
132
  CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
134
133
  OAUTH_PROVIDER_REFS,
135
134
  getSharedSessionCredentialBroker
136
- } from "./chunk-CIUZXD5D.js";
135
+ } from "./chunk-UFGUJ2IH.js";
136
+ import {
137
+ deriveCredentialGroup,
138
+ deriveCustomProviderCredentialGroup,
139
+ resolveDispatchReasoningEffort
140
+ } from "./chunk-PNLDLUMO.js";
137
141
  import {
138
142
  fetchWithTransientRetry,
139
143
  isTransientFetchError
@@ -163,7 +167,7 @@ import {
163
167
  terminateRunProcess,
164
168
  transitionRunToTerminal,
165
169
  withQueueLock
166
- } from "./chunk-AEZBAFC6.js";
170
+ } from "./chunk-JAKRY74O.js";
167
171
  import {
168
172
  TASK_PREVIEW_MAX,
169
173
  formatControlRunMessageCard,
@@ -181,21 +185,18 @@ import {
181
185
  resolveRunLabel,
182
186
  shortRunId
183
187
  } from "./chunk-S25VJYXV.js";
184
- import {
185
- getDefaultCliLocalRuntimeDb
186
- } from "./chunk-BFKJ2RS3.js";
187
188
  import {
188
189
  readAgentFromStore,
189
190
  readDialogMessageRecords,
190
191
  readDialogMessages,
191
192
  resolveBuiltinLocalCliAgentConfig
192
- } from "./chunk-7UVVLYKC.js";
193
+ } from "./chunk-KKIQAVDR.js";
193
194
  import {
194
195
  applyPublicAgentCatalogOverride
195
- } from "./chunk-MZVCFV3T.js";
196
+ } from "./chunk-223KZUJ6.js";
196
197
  import {
197
198
  applyBuiltinAgentRuntimeOverride
198
- } from "./chunk-JP2BH4NC.js";
199
+ } from "./chunk-CEKRIR22.js";
199
200
  import {
200
201
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
201
202
  Duration_exports,
@@ -246,12 +247,13 @@ import {
246
247
  runExecShellGates,
247
248
  validateConfiguredRootExecutionLease,
248
249
  verifyOwnerRouteAck
249
- } from "./chunk-XNTZD4AE.js";
250
+ } from "./chunk-TUOHSUK5.js";
250
251
  import {
251
252
  createHostCredentialBrokerChain,
252
253
  createStrictHostCredentialBroker
253
- } from "./chunk-LHCGKAFO.js";
254
+ } from "./chunk-EHFBP6IK.js";
254
255
  import {
256
+ AGENT_PROMPT_IN_MESSAGES,
255
257
  accumulateGeminiChunks,
256
258
  buildGeminiGenerateContentRequest,
257
259
  fetchAntigravityCloudCodeCompletion,
@@ -263,7 +265,7 @@ import {
263
265
  resolveAntigravityFinishReason,
264
266
  resolveGeminiModelQuirks,
265
267
  shouldUseGeminiNativeToolRoute
266
- } from "./chunk-MYYNZG2M.js";
268
+ } from "./chunk-OOV5JN25.js";
267
269
  import {
268
270
  readLocalImage
269
271
  } from "./chunk-AL3TYDIF.js";
@@ -278,37 +280,39 @@ import {
278
280
  readPlatformChatSseCompletion,
279
281
  resolvePlatformChatProviderConfig,
280
282
  shouldUsePlatformChatProvider
281
- } from "./chunk-EDT65EUE.js";
283
+ } from "./chunk-PIVTQRX6.js";
282
284
  import {
283
285
  readSseDataValues,
284
286
  readSseFrames
285
287
  } from "./chunk-HNUWUO75.js";
286
288
  import {
287
289
  resolveAgentRuntimeConfigFromRecord
288
- } from "./chunk-4OXPN3WC.js";
290
+ } from "./chunk-5ISNPTQH.js";
291
+ import {
292
+ resolveAgentImageInputSupport,
293
+ resolveCatalogImageSupport,
294
+ resolveToolImagePolicy,
295
+ withLiveImageSupport
296
+ } from "./chunk-BZLGPM5B.js";
289
297
  import {
290
- assertDispatchSelectionAdmission,
291
298
  buildNoloWorkspaceOpenAiTools,
292
299
  filterClientNoloWorkspaceToolNames,
293
300
  parseNoloWorkspaceToolArguments
294
- } from "./chunk-ITBX27W6.js";
295
- import {
296
- MCP_TOOL_NAMES
297
- } from "./chunk-KXOPLLFP.js";
301
+ } from "./chunk-VJFDG3ZG.js";
298
302
  import {
299
303
  extractQuotaSnapshot,
300
304
  isCapacitySaturatedRateLimit,
301
305
  mergeAvailabilityDeadline,
302
306
  resolveAvailabilityAction,
303
307
  resolveCredentialKeyWithFallback
304
- } from "./chunk-QJTZ76CP.js";
308
+ } from "./chunk-LS5KAVFQ.js";
305
309
  import {
306
310
  collectStablePromptPrefix,
307
311
  convertMessagesToResponsesInput,
308
312
  findAgentStatePairingIssues,
309
313
  stablePromptCacheKey,
310
314
  toResponsesTools
311
- } from "./chunk-W3HSD32M.js";
315
+ } from "./chunk-FXEPZKNJ.js";
312
316
  import {
313
317
  EMPTY_TOOL_RESULT_TEXT,
314
318
  MAX_TOOL_IMAGES_PER_REQUEST,
@@ -321,21 +325,16 @@ import {
321
325
  toolImages
322
326
  } from "./chunk-X4O7FJF5.js";
323
327
  import {
324
- resolveAgentImageInputSupport,
325
- resolveCatalogImageSupport,
326
- resolveToolImagePolicy,
327
- withLiveImageSupport
328
- } from "./chunk-SX6AWTNK.js";
329
- import {
328
+ resolveAgentRequiredPackIds,
329
+ resolveAgentSkillConfig,
330
330
  resolveHistoricalToolContentCap
331
- } from "./chunk-WFGNWWJI.js";
331
+ } from "./chunk-VH7UO6E5.js";
332
332
  import {
333
- resolveAgentCallPlan
334
- } from "./chunk-VUHKG4KS.js";
333
+ MCP_TOOL_NAMES
334
+ } from "./chunk-KXOPLLFP.js";
335
335
  import {
336
- resolveAgentRequiredPackIds,
337
- resolveAgentSkillConfig
338
- } from "./chunk-YDRRGVT5.js";
336
+ resolveAgentCallPlan
337
+ } from "./chunk-DNNPARJK.js";
339
338
  import {
340
339
  buildDialogFallbackTitleFromUserInput,
341
340
  normalizeDialogTitle
@@ -348,15 +347,16 @@ import {
348
347
  commitCodexOAuthCatalogWindows,
349
348
  isCodexOAuthAgent,
350
349
  markCodexOAuthCatalogFailure,
351
- resolveCodexOAuthEffectiveModel
352
- } from "./chunk-LTVEOOZL.js";
350
+ resolveCodexOAuthEffectiveModel,
351
+ usesCodexDeveloperPrefix
352
+ } from "./chunk-7WHCIA5V.js";
353
353
  import {
354
354
  isDevinOAuthAgent
355
355
  } from "./chunk-5ZUL4CUO.js";
356
356
  import {
357
357
  normalizeUsage,
358
358
  sanitizeSummarySourceSegments
359
- } from "./chunk-MAA42MMV.js";
359
+ } from "./chunk-2FZVXOFX.js";
360
360
  import {
361
361
  createProviderCallTimingTracker,
362
362
  finalizeProviderCallTiming,
@@ -383,7 +383,10 @@ import {
383
383
  } from "./chunk-KX6YBIHG.js";
384
384
  import {
385
385
  withShellChildEnvironment
386
- } from "./chunk-CTIEJRTP.js";
386
+ } from "./chunk-UP7KBWLE.js";
387
+ import {
388
+ assertDispatchSelectionAdmission
389
+ } from "./chunk-HEVRQGGH.js";
387
390
  import {
388
391
  estimateTokenCount
389
392
  } from "./chunk-PSCNXBYA.js";
@@ -413,7 +416,7 @@ import {
413
416
  expandEnabledPacks,
414
417
  resolveBuiltinSkillEntry,
415
418
  resolveEffectiveEnabledPacks
416
- } from "./chunk-6MTVACLN.js";
419
+ } from "./chunk-WC3J5SL2.js";
417
420
  import {
418
421
  DIALOG_AGENT_LIST_INDEX_PREFIX,
419
422
  TOKEN_DIALOG_INDEX_PREFIX,
@@ -434,7 +437,7 @@ import {
434
437
  localTurnHasSubjectRefs,
435
438
  resolveLocalUserId,
436
439
  withResolvedRuntimeToolSurface
437
- } from "./chunk-UPOW5HTG.js";
440
+ } from "./chunk-QGFLVQ6E.js";
438
441
  import {
439
442
  LOCAL_CODEX_AGENT_KEY,
440
443
  isLocalCliAgentKey,
@@ -443,12 +446,12 @@ import {
443
446
  import {
444
447
  HIGH_RISK_MUTATION_TOOL_NAMES,
445
448
  resolveRequestToolSurface
446
- } from "./chunk-NEG5LYK5.js";
449
+ } from "./chunk-JCQ3WCQ3.js";
447
450
  import {
448
451
  remoteDialogSyncTimeout,
449
452
  resolveRuntimeAuthToken,
450
453
  resolveRuntimeServerUrl
451
- } from "./chunk-GX6DITLQ.js";
454
+ } from "./chunk-UUCYUN6Y.js";
452
455
  import {
453
456
  CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
454
457
  canonicalizeChromeConnectorToolNames,
@@ -459,9 +462,11 @@ import {
459
462
  } from "./chunk-U6VC4MU4.js";
460
463
  import {
461
464
  classifyDialogSyncFailure,
462
- getLogger,
463
465
  startOwnedDialogSync
464
- } from "./chunk-6XRPBZRS.js";
466
+ } from "./chunk-XRGBJHZX.js";
467
+ import {
468
+ getLogger
469
+ } from "./chunk-EYLGAEB4.js";
465
470
  import {
466
471
  getHostRuntimeExecutable,
467
472
  isCompiledBinary,
@@ -478,25 +483,26 @@ import {
478
483
  import {
479
484
  agentRunCardLabels,
480
485
  t
481
- } from "./chunk-E5RYFR7E.js";
486
+ } from "./chunk-FEIVARWR.js";
482
487
  import {
483
488
  isAntigravityOAuthAgent
484
- } from "./chunk-CTWCZKNS.js";
489
+ } from "./chunk-6SOWMEAY.js";
485
490
  import {
486
491
  toErrorMessage
487
492
  } from "./chunk-HNMXYYJR.js";
488
493
  import {
489
494
  buildProviderSessionHeaders,
490
495
  resolvePlatformAuthToken
491
- } from "./chunk-K26XPZRB.js";
496
+ } from "./chunk-LVZVSLKO.js";
492
497
  import {
493
498
  asTrimmedString
494
499
  } from "./chunk-3EUW3WEO.js";
495
500
  import {
501
+ REASONING_EFFORT_OPTIONS,
496
502
  anthropicOAuthModelMaxOutputTokens,
497
503
  findModelConfig,
498
504
  isAdaptiveThinkingModelId
499
- } from "./chunk-CD2DK5JA.js";
505
+ } from "./chunk-OKH74FML.js";
500
506
  import {
501
507
  CLI_PROVIDER_VALUES,
502
508
  isCliProvider
@@ -770,7 +776,7 @@ function resolveThinkingSpec(input) {
770
776
  let finalMaxTokens = maxTokens;
771
777
  let finalTemperature = input.temperature;
772
778
  if (isAdaptiveThinkingModelId(model)) {
773
- if (effortDisabled) {
779
+ if (effortDisabled || normalizedEffort === void 0 && input.enableThinking === false) {
774
780
  thinkingBlock = { type: "disabled" };
775
781
  } else {
776
782
  thinkingBlock = { type: "adaptive", display: "summarized" };
@@ -780,7 +786,7 @@ function resolveThinkingSpec(input) {
780
786
  const injected = input.injectedThinking;
781
787
  const injectedBudget = injected?.type === "enabled" && typeof injected.budget_tokens === "number" ? injected.budget_tokens : void 0;
782
788
  const effortBudget = resolveThinkingBudget(input.reasoningEffort);
783
- const fallbackBudget = input.reasoningEffort === void 0 ? injectedBudget ?? (input.enableThinking === true ? typeof input.thinkingBudget === "number" ? input.thinkingBudget : DEFAULT_ENABLE_THINKING_BUDGET : DEFAULT_ENABLED_BUDGET) : void 0;
789
+ const fallbackBudget = input.reasoningEffort === void 0 && input.enableThinking !== false ? injectedBudget ?? (input.enableThinking === true ? typeof input.thinkingBudget === "number" ? input.thinkingBudget : DEFAULT_ENABLE_THINKING_BUDGET : DEFAULT_ENABLED_BUDGET) : void 0;
784
790
  const thinkingBudget = effortBudget ?? fallbackBudget;
785
791
  if (thinkingBudget !== void 0) {
786
792
  thinkingBlock = { type: "enabled", budget_tokens: thinkingBudget };
@@ -1466,7 +1472,8 @@ function buildOrchestrationOpenAiTools(args) {
1466
1472
  });
1467
1473
  const startSchema = buildStartAgentRunFunctionSchema({
1468
1474
  supportsWait: false,
1469
- wakeEnabled: wakeChannel
1475
+ wakeEnabled: wakeChannel,
1476
+ includeInstabox: hostExposesInstaboxParams(args.env)
1470
1477
  });
1471
1478
  return [
1472
1479
  ...prepareTools(names).map((tool) => {
@@ -1483,7 +1490,10 @@ function buildOrchestrationOpenAiTools(args) {
1483
1490
  var CLI_DEFAULT_TOOLS = [
1484
1491
  "exa_search",
1485
1492
  "fetchWebpage",
1486
- "ask_user",
1493
+ // ask_user 不在默认面:它只在 agent 显式声明(direct tool 或 enabledPacks
1494
+ // 展开)时才暴露。默认常驻白占 schema/菜单指令上下文,而多轮里真正需要向
1495
+ // 用户提问的比例很低;TUI 的 AskChoice dialog、headless 的编号菜单降级、
1496
+ // executor 与 policy 通道全部照旧,只是不再「未声明也可见」。
1487
1497
  // 凭据请求面板(Block 1a):抬 kind:"input" gate,宿主面板输入后在宿主进程内写 store。
1488
1498
  "secret-request",
1489
1499
  // 非阻塞展示型交互(与 ask_user 的阻塞提问区分)
@@ -1521,6 +1531,14 @@ function withRuntimeEnabledPacksAndPrompt(config) {
1521
1531
  ...prompt ? { prompt } : {}
1522
1532
  };
1523
1533
  }
1534
+ var MCP_EXPOSURE_ENV = "NOLO_EXPOSE_MCP_TOOLS";
1535
+ function hostExposesMcpTools(env) {
1536
+ return String(env[MCP_EXPOSURE_ENV] ?? "").trim() === "1";
1537
+ }
1538
+ var INSTABOX_SCHEMA_EXPOSURE_ENV = "NOLO_EXPOSE_INSTABOX_PARAMS";
1539
+ function hostExposesInstaboxParams(env) {
1540
+ return String(env[INSTABOX_SCHEMA_EXPOSURE_ENV] ?? "").trim() === "1";
1541
+ }
1524
1542
  function resolveCliRequestedToolNames(agentConfig, env, systemBuiltinSkills) {
1525
1543
  const declaredOnly = shouldUseDeclaredOnlyLocalWorkspaceTools(env);
1526
1544
  const isSubtask = isSubtaskRun(env);
@@ -1552,7 +1570,11 @@ function resolveCliRequestedToolNames(agentConfig, env, systemBuiltinSkills) {
1552
1570
  filtered,
1553
1571
  agentConfig?.disabledTools
1554
1572
  );
1555
- return filterToolNamesForRunKind(afterDisabled.filter((name) => !MCP_TOOL_NAMES.includes(name) || agentConfig.key === "agent-0e95801d90-gpt-6-1-sol" && Array.isArray(agentConfig.toolNames) && agentConfig.toolNames.includes(name)), isSubtask);
1573
+ const mcpSurface = hostExposesMcpTools(env) ? applyDisabledTools(
1574
+ [.../* @__PURE__ */ new Set([...afterDisabled, ...MCP_TOOL_NAMES])],
1575
+ agentConfig?.disabledTools
1576
+ ) : afterDisabled;
1577
+ return filterToolNamesForRunKind(mcpSurface, isSubtask);
1556
1578
  }
1557
1579
  function resolveProviderOpenAiToolBundle(agentConfig, env, buildTools = buildOpenAiTools, additionalToolNames = []) {
1558
1580
  const requestedToolNames = [
@@ -2578,26 +2600,50 @@ function buildCodexCompatibilityHeaders(identity, accountId) {
2578
2600
  "x-codex-turn-metadata": identity.turnMetadataJson
2579
2601
  };
2580
2602
  }
2581
- function collectInstructions(messages, agentPrompt) {
2603
+ function getInstructionText(content) {
2604
+ if (!Array.isArray(content)) return asOptionalTrimmedString(content);
2605
+ const text = content.filter(
2606
+ (part) => part?.type === "text" && typeof part.text === "string"
2607
+ ).map((part) => part.text).join("\n");
2608
+ return asOptionalTrimmedString(text);
2609
+ }
2610
+ function hasCodexAssembledPrompt(messages) {
2611
+ return messages.some((raw) => {
2612
+ if (!raw || typeof raw !== "object") return false;
2613
+ const message = raw;
2614
+ return message.role === "system" && (message[AGENT_PROMPT_IN_MESSAGES] === true || message.agent_prompt_in_messages === true) && getInstructionText(message.content) !== void 0;
2615
+ });
2616
+ }
2617
+ function collectInstructions(messages, agentPrompt, splitPrefix) {
2582
2618
  const systemTexts = [];
2619
+ let messageTexts = 0;
2620
+ let prefixEnd;
2583
2621
  const prompt = agentPrompt?.trim();
2584
2622
  if (prompt) systemTexts.push(prompt);
2585
2623
  for (const raw of messages) {
2586
2624
  if (!raw || typeof raw !== "object") continue;
2587
2625
  const role = String(raw.role ?? "");
2588
2626
  if (role !== "system" && role !== "developer") continue;
2589
- const content = raw.content;
2590
- const stringContent = asOptionalTrimmedString(content);
2591
- if (stringContent) {
2592
- systemTexts.push(stringContent);
2593
- } else if (Array.isArray(content)) {
2594
- const text = content.filter(
2595
- (p) => !!p && p.type === "text"
2596
- ).map((p) => p.text).join("\n").trim();
2597
- if (text) systemTexts.push(text);
2627
+ const { content, stable_prefix_chars: boundary } = raw;
2628
+ const text = getInstructionText(content);
2629
+ if (text) {
2630
+ if (splitPrefix && prefixEnd === void 0 && messageTexts === 0 && typeof content === "string" && typeof boundary === "number" && Number.isInteger(boundary) && boundary >= 0 && boundary <= content.length) {
2631
+ const stable = content.slice(0, boundary).trim();
2632
+ if (stable) systemTexts.push(stable);
2633
+ prefixEnd = systemTexts.length;
2634
+ const dynamic = content.slice(boundary).trim();
2635
+ if (dynamic) systemTexts.push(dynamic);
2636
+ } else {
2637
+ systemTexts.push(text);
2638
+ messageTexts += 1;
2639
+ }
2598
2640
  }
2599
2641
  }
2600
- return systemTexts.join("\n\n");
2642
+ const split = splitPrefix ? prefixEnd ?? 0 : 0;
2643
+ return {
2644
+ developerPrefix: systemTexts.slice(0, split).join("\n\n"),
2645
+ instructions: systemTexts.slice(split).join("\n\n")
2646
+ };
2601
2647
  }
2602
2648
  function convertMessagesToCodexInput(messages, supportsToolImages = false) {
2603
2649
  const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
@@ -2626,8 +2672,16 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
2626
2672
  routeKind: "codex/responses",
2627
2673
  legacySupportsToolImages: false
2628
2674
  }));
2629
- const fallbackPrompt = hasAssembledAgentPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
2630
- const instructions = collectInstructions(rawMessages, fallbackPrompt);
2675
+ const fallbackPrompt = hasCodexAssembledPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
2676
+ const splitPrefix = usesCodexDeveloperPrefix(args.agentConfig, model);
2677
+ const { instructions, developerPrefix } = collectInstructions(rawMessages, fallbackPrompt, splitPrefix);
2678
+ if (developerPrefix) {
2679
+ input.unshift({
2680
+ type: "message",
2681
+ role: "developer",
2682
+ content: [{ type: "input_text", text: developerPrefix }]
2683
+ });
2684
+ }
2631
2685
  const stableInstructions = collectStablePromptPrefix(rawMessages, fallbackPrompt);
2632
2686
  const tools = toResponsesTools(
2633
2687
  Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
@@ -3128,7 +3182,7 @@ function createCustomNativeProvider(args) {
3128
3182
  }
3129
3183
  }
3130
3184
  function buildGeminiCustomNativeProvider(p) {
3131
- const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl, authToken, transport, log, recordAvailability } = p;
3185
+ const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl, transport, log, recordAvailability } = p;
3132
3186
  const budgetBody = buildGeminiGenerateContentRequest({
3133
3187
  messages: [],
3134
3188
  tools,
@@ -3144,18 +3198,9 @@ function buildGeminiCustomNativeProvider(p) {
3144
3198
  complete: async (messages, options) => {
3145
3199
  const inlineResult = await inlineImageUrlsForCustomProvider({ messages }, {
3146
3200
  shouldInline: true,
3147
- isAllowedImageUrl: (url) => {
3148
- try {
3149
- return new URL(url).origin === new URL(serverUrl).origin;
3150
- } catch {
3151
- return false;
3152
- }
3153
- },
3154
- fetchImage: async (url) => {
3155
- const image = await fetchImpl(url, { headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0, signal: options?.signal });
3156
- if (!image.ok) return { ok: false, error: `HTTP ${image.status}` };
3157
- return { ok: true, mimeType: image.headers.get("content-type") ?? "application/octet-stream", bytes: new Uint8Array(await image.arrayBuffer()) };
3158
- }
3201
+ serverUrl,
3202
+ request: fetchImpl,
3203
+ signal: options?.signal
3159
3204
  });
3160
3205
  const toolImagePolicy = {
3161
3206
  routeKind: "gemini-native",
@@ -3583,7 +3628,7 @@ var resolveDevinTransport = async (ctx) => {
3583
3628
 
3584
3629
  // packages/cli/client/providerResolution/directOpenAiCompatibleTransport.ts
3585
3630
  var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3586
- const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl, authToken } = ctx;
3631
+ const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl } = ctx;
3587
3632
  const providerConfig = await resolveOpenAiCompatibleProviderConfig({
3588
3633
  agentConfig,
3589
3634
  env: deps.env,
@@ -3621,26 +3666,9 @@ var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3621
3666
  { messages },
3622
3667
  {
3623
3668
  shouldInline: true,
3624
- isAllowedImageUrl: (url) => {
3625
- try {
3626
- return new URL(url).origin === new URL(serverUrl).origin;
3627
- } catch {
3628
- return false;
3629
- }
3630
- },
3631
- fetchImage: async (url) => {
3632
- const response = await fetchImpl(url, {
3633
- headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0
3634
- });
3635
- if (!response.ok) {
3636
- return { ok: false, error: `HTTP ${response.status}` };
3637
- }
3638
- return {
3639
- ok: true,
3640
- mimeType: response.headers.get("content-type") ?? "application/octet-stream",
3641
- bytes: new Uint8Array(await response.arrayBuffer())
3642
- };
3643
- }
3669
+ serverUrl,
3670
+ request: fetchImpl,
3671
+ signal: options?.signal
3644
3672
  }
3645
3673
  )).messages;
3646
3674
  logLocalRuntimeDiagnostic("provider.request.start", {
@@ -6037,13 +6065,14 @@ async function createBrowserShellApprovalBridge(args) {
6037
6065
  const bindings = /* @__PURE__ */ new Map();
6038
6066
  let closing;
6039
6067
  let timer;
6068
+ const terminalOutcome = () => Date.now() >= deadline ? { outcome: "expired", code: "USER_APPROVAL_EXPIRED" } : { outcome: "cancelled", code: "USER_APPROVAL_CANCELLED" };
6040
6069
  const active = () => !lifetime.signal.aborted && Date.now() < deadline;
6041
6070
  const requireActive = () => {
6042
6071
  if (!active()) throw new Error("Browser approval bridge revoked");
6043
6072
  };
6044
6073
  const server = createServer(async (request, response) => {
6045
6074
  const reply = (status, result, extra) => {
6046
- if (!response.destroyed) {
6075
+ if (!response.destroyed && !response.writableEnded) {
6047
6076
  response.writeHead(200, { "content-type": "application/json", "cache-control": "no-store" });
6048
6077
  response.end(JSON.stringify({
6049
6078
  status,
@@ -6053,14 +6082,17 @@ async function createBrowserShellApprovalBridge(args) {
6053
6082
  }));
6054
6083
  }
6055
6084
  };
6056
- const disconnect = () => {
6057
- if (!response.writableEnded) void close();
6058
- };
6059
- response.on("close", disconnect);
6085
+ const revoke = () => reply("blocked", void 0, terminalOutcome());
6060
6086
  try {
6061
6087
  const authorization = request.headers.authorization ?? "";
6062
6088
  const expected = `Bearer ${capability}`;
6063
6089
  if (!active() || request.method !== "POST" || request.url !== "/approval" || authorization.length !== expected.length || !timingSafeEqual(Buffer.from(authorization), Buffer.from(expected))) return reply("rejected");
6090
+ response.on("close", () => {
6091
+ lifetime.signal.removeEventListener("abort", revoke);
6092
+ if (!response.writableEnded) void close();
6093
+ });
6094
+ lifetime.signal.addEventListener("abort", revoke, { once: true });
6095
+ response.setTimeout(timeoutMs + 5e3);
6064
6096
  let body = "";
6065
6097
  for await (const chunk of request) {
6066
6098
  body += chunk.toString();
@@ -6123,14 +6155,10 @@ async function createBrowserShellApprovalBridge(args) {
6123
6155
  reply("retry_once", void 0, { outcome: "allowed" });
6124
6156
  } else {
6125
6157
  const metaCode = flowResult.metadata?.code;
6126
- reply("blocked", void 0, mapBlockedOutcome(metaCode, Boolean(args.awaitHostApproval)));
6158
+ reply("blocked", void 0, mapBlockedOutcome(Date.now() >= deadline ? "USER_APPROVAL_EXPIRED" : metaCode, Boolean(args.awaitHostApproval)));
6127
6159
  }
6128
6160
  } catch {
6129
- reply(
6130
- "blocked",
6131
- void 0,
6132
- lifetime.signal.aborted ? { outcome: "cancelled", code: "USER_APPROVAL_CANCELLED" } : { outcome: "unavailable", code: "USER_APPROVAL_UNAVAILABLE" }
6133
- );
6161
+ reply("blocked", void 0, lifetime.signal.aborted || Date.now() >= deadline ? terminalOutcome() : { outcome: "unavailable", code: "USER_APPROVAL_UNAVAILABLE" });
6134
6162
  }
6135
6163
  });
6136
6164
  server.requestTimeout = timeoutMs;
@@ -6140,13 +6168,17 @@ async function createBrowserShellApprovalBridge(args) {
6140
6168
  };
6141
6169
  function close() {
6142
6170
  if (closing) return closing;
6143
- lifetime.abort();
6144
- clearTimeout(timer);
6145
- args.signal?.removeEventListener("abort", onAbort);
6146
- bindings.clear();
6147
6171
  closing = new Promise((resolve8) => {
6148
- server.close(() => resolve8());
6149
- server.closeAllConnections();
6172
+ lifetime.abort();
6173
+ clearTimeout(timer);
6174
+ args.signal?.removeEventListener("abort", onAbort);
6175
+ bindings.clear();
6176
+ const forceClose = setTimeout(() => server.closeAllConnections(), 1e3);
6177
+ server.close(() => {
6178
+ clearTimeout(forceClose);
6179
+ resolve8();
6180
+ });
6181
+ server.closeIdleConnections();
6150
6182
  });
6151
6183
  return closing;
6152
6184
  }
@@ -6493,7 +6525,7 @@ function buildServerPlatformToolExecutors(args) {
6493
6525
  const shortHash = (value, len) => createHash2("sha256").update(value).digest("hex").slice(0, len);
6494
6526
  const localMemoryContext = async () => {
6495
6527
  const openCliLocalRuntimeDb = async () => {
6496
- const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-BO7IVWAZ.js");
6528
+ const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-ZJFGNHML.js");
6497
6529
  return getDefaultCliLocalRuntimeDb2({ env: args.env });
6498
6530
  };
6499
6531
  try {
@@ -6744,7 +6776,7 @@ function buildServerPlatformToolExecutors(args) {
6744
6776
  }
6745
6777
  const ctx = await localMemoryContext();
6746
6778
  if (!ctx) throw new Error("local work memory unavailable");
6747
- const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-37ZNEY5Y.js");
6779
+ const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-BXHQ3PXP.js");
6748
6780
  const localUserId = resolveLocalUserId2(args.env);
6749
6781
  const { resolveWorkContextAccess } = await import("./workContextAccess-VU5I4LKZ.js");
6750
6782
  const { updateWorkContext, readWorkContexts } = await import("./workContext-Y3ADAPZU.js");
@@ -7228,9 +7260,13 @@ var VALUELESS_FLAGS = {
7228
7260
  "--local": true,
7229
7261
  "--server": true,
7230
7262
  "--auto": true,
7263
+ "--auto-route": true,
7264
+ "--allow-host-writes": true,
7231
7265
  "--dangerously-allow-shell": true,
7232
7266
  "--trace-tools": true,
7233
7267
  "--bg": true,
7268
+ "--fresh": true,
7269
+ "--fresh-dialog": true,
7234
7270
  "--strict-continue-history": true,
7235
7271
  "--no-stream": true,
7236
7272
  "--debug": true,
@@ -7238,7 +7274,8 @@ var VALUELESS_FLAGS = {
7238
7274
  "--memory-only": true,
7239
7275
  "--read-only": true,
7240
7276
  "--machine-shell": true,
7241
- "--instabox-allow-remote-release": true
7277
+ "--instabox-allow-remote-release": true,
7278
+ "--instabox-allow-paid": true
7242
7279
  };
7243
7280
  function isValuelessFlag(arg) {
7244
7281
  return Object.prototype.hasOwnProperty.call(VALUELESS_FLAGS, arg);
@@ -7414,6 +7451,27 @@ function parseAgentRunArgs(args, options = {}) {
7414
7451
  const allowedToolNames = readRepeatedFlagValues(args, "--allowed-tool").map((value) => value.trim()).filter(Boolean);
7415
7452
  const cwd = readFlagValue(args, "--cwd");
7416
7453
  const timeoutMs = parsePositiveInteger(readFlagValue(args, "--timeout-ms"));
7454
+ const reasoningEffortHits = [];
7455
+ for (let index = 0; index < args.length; index += 1) {
7456
+ const arg = args[index];
7457
+ if (isValuelessFlag(arg)) continue;
7458
+ if (arg === "--reasoning-effort") {
7459
+ reasoningEffortHits.push({ index, value: args[index + 1] });
7460
+ index += 1;
7461
+ continue;
7462
+ }
7463
+ if (arg.startsWith("--")) index += 1;
7464
+ }
7465
+ if (reasoningEffortHits.length > 1) {
7466
+ throw new Error("--reasoning-effort \u53EA\u80FD\u51FA\u73B0\u4E00\u6B21\uFF08\u91CD\u590D\u53C2\u6570\u4E0D\u4F1A\u88AB\u9759\u9ED8\u53D6\u7B2C\u4E00\u4E2A\uFF09");
7467
+ }
7468
+ const rawReasoningEffort = reasoningEffortHits[0]?.value?.trim().toLowerCase();
7469
+ if (reasoningEffortHits.length === 1 && !REASONING_EFFORT_OPTIONS.includes(rawReasoningEffort ?? "")) {
7470
+ throw new Error(
7471
+ `--reasoning-effort \u5FC5\u987B\u662F ${REASONING_EFFORT_OPTIONS.join("|")} \u4E4B\u4E00`
7472
+ );
7473
+ }
7474
+ const reasoningEffort = rawReasoningEffort ? rawReasoningEffort : void 0;
7417
7475
  const rawEventsMode = readFlagValue(args, "--events");
7418
7476
  const eventsMode = rawEventsMode === "jsonl" ? "jsonl" : void 0;
7419
7477
  const inheritedRef = inheritedFromDialog ? parseDialogReference(inheritedFromDialog) : void 0;
@@ -7481,6 +7539,7 @@ function parseAgentRunArgs(args, options = {}) {
7481
7539
  ...blockedToolNames.length ? { blockedToolNames } : {},
7482
7540
  ...dodCommands.length ? { dodCommands } : {},
7483
7541
  ...typeof timeoutMs === "number" ? { timeoutMs } : {},
7542
+ ...reasoningEffort ? { reasoningEffort } : {},
7484
7543
  ...queueFile ? { queueFile } : {}
7485
7544
  };
7486
7545
  }
@@ -9613,6 +9672,8 @@ async function assertAutoInstaboxPlacementAvailable(readEvidence, options) {
9613
9672
  }
9614
9673
 
9615
9674
  // packages/cli/client/cliAgentRunToolExecutors.ts
9675
+ var normalizeNonEmptyString = (value) => typeof value === "string" && value.trim() ? value.trim() : "";
9676
+ var resolveHostCallerAgentKey = (deps) => normalizeNonEmptyString(deps.currentAgentKey) || normalizeNonEmptyString(deps.source?.agentKey);
9616
9677
  var noopOutput = { write: () => {
9617
9678
  } };
9618
9679
  var parseCallArgs = (call) => {
@@ -9699,6 +9760,11 @@ function buildRunStatusPayload(reconciled, deps, opts = {}) {
9699
9760
  // 结构化失败分类 + 可重试性:编排者据此决策,不再肉读 logTail。
9700
9761
  ...reconciled.failureClass ? { failureClass: reconciled.failureClass } : {},
9701
9762
  ...typeof reconciled.retryable === "boolean" ? { retryable: reconciled.retryable } : {},
9763
+ // 只读观测:本 run 实际跑的模型 / 熔断升级标记 / 正文里明确的 review 结论。
9764
+ // 三者缺省即「未观察到」,不回填猜测值。
9765
+ ...reconciled.model ? { model: reconciled.model } : {},
9766
+ ...reconciled.escalated === true ? { escalated: true } : {},
9767
+ ...reconciled.reviewVerdict ? { reviewVerdict: reconciled.reviewVerdict } : {},
9702
9768
  // 日志落盘路径始终暴露:stalled/failed 且 dialogId 缺失(如 ephemeral)
9703
9769
  // 时 logTail 只能靠它读,不能只留在进程内存。
9704
9770
  ...reconciled.logPath ? { logPath: reconciled.logPath } : {},
@@ -9849,6 +9915,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
9849
9915
  } : {};
9850
9916
  const rawAgentKey = typeof args.agentKey === "string" ? args.agentKey.trim() : "";
9851
9917
  const agentKey = !rawAgentKey || rawAgentKey.toLowerCase() === "self" ? deps.currentAgentKey ?? rawAgentKey : rawAgentKey;
9918
+ const callerAgentKey = resolveHostCallerAgentKey(deps);
9852
9919
  const contextFacts = resolveRunContextFacts(continuedRecord ? typeof continuedRecord === "object" ? continuedRecord : {} : void 0, agentKey);
9853
9920
  const bindingMachineId = agentKey && deps.resolveAgentRuntimeBindingMachineId ? await deps.resolveAgentRuntimeBindingMachineId(agentKey) : void 0;
9854
9921
  const localMachineId = deps.resolveLocalMachineId ? await deps.resolveLocalMachineId() : void 0;
@@ -9947,6 +10014,12 @@ function createCliStartAgentRunExecutor(deps = {}) {
9947
10014
  if (args.instaboxAllowRemoteRelease === true) instaboxArgs.push("--instabox-allow-remote-release");
9948
10015
  if (args.instaboxAllowPaid === true) instaboxArgs.push("--instabox-allow-paid");
9949
10016
  }
10017
+ const dispatchReasoningEffort = await resolveRunDispatchReasoningEffort({
10018
+ deps,
10019
+ agentKey,
10020
+ difficulty: args.difficulty,
10021
+ model: selectedModel
10022
+ });
9950
10023
  const rawArgs = [
9951
10024
  "--agent",
9952
10025
  agentKey,
@@ -9963,7 +10036,8 @@ function createCliStartAgentRunExecutor(deps = {}) {
9963
10036
  // 的地方,成对不变式在 buildCliLocalRuntimeForwardArgs 内机械断言。
9964
10037
  ...buildCliLocalRuntimeForwardArgs(dispatch),
9965
10038
  ...instaboxArgs,
9966
- ...imagePaths.flatMap((path) => ["--image", path])
10039
+ ...imagePaths.flatMap((path) => ["--image", path]),
10040
+ ...dispatchReasoningEffort ? ["--reasoning-effort", dispatchReasoningEffort] : []
9967
10041
  ];
9968
10042
  const agentName = await resolveAgentRunName(
9969
10043
  agentKey,
@@ -10009,6 +10083,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
10009
10083
  cliEntrypointPath: deps.cliEntrypoint,
10010
10084
  agentKey,
10011
10085
  ...agentName ? { agentName } : {},
10086
+ ...callerAgentKey ? { callerAgentKey } : {},
10012
10087
  ...runTitle ? { title: runTitle } : {},
10013
10088
  ...batchId ? { batchId } : {},
10014
10089
  ...credentialGroup ? { credentialGroup } : {},
@@ -10101,6 +10176,28 @@ function createCliStartAgentRunExecutor(deps = {}) {
10101
10176
  };
10102
10177
  };
10103
10178
  }
10179
+ async function resolveRunDispatchReasoningEffort(args) {
10180
+ try {
10181
+ const profile = await args.deps.resolveAgentReasoningProfile?.(args.agentKey);
10182
+ if (!profile) return void 0;
10183
+ let model = args.model;
10184
+ if (!model) {
10185
+ try {
10186
+ model = await args.deps.resolveAgentModel?.(args.agentKey);
10187
+ } catch {
10188
+ model = void 0;
10189
+ }
10190
+ }
10191
+ return resolveDispatchReasoningEffort({
10192
+ difficulty: typeof args.difficulty === "string" ? args.difficulty : void 0,
10193
+ provider: profile.provider,
10194
+ model,
10195
+ agentReasoningEffort: profile.reasoningEffort
10196
+ });
10197
+ } catch {
10198
+ return void 0;
10199
+ }
10200
+ }
10104
10201
  function controlMessageLabels(queuedCount) {
10105
10202
  const labels = agentRunCardLabels().controlMessage;
10106
10203
  return { ...labels, queued: queuedCount === void 0 ? labels.queued : labels.enqueued(queuedCount) };
@@ -10112,6 +10209,12 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10112
10209
  const continuation = resolveLocalContinuation(reconciled, deps);
10113
10210
  const agentKey = reconciled.agentKey;
10114
10211
  const agentName = reconciled.agentName;
10212
+ const callerAgentKey = resolveHostCallerAgentKey(deps);
10213
+ const continuationReasoningEffort = await resolveRunDispatchReasoningEffort({
10214
+ deps,
10215
+ agentKey,
10216
+ difficulty: reconciled.selectionCheck?.difficulty
10217
+ });
10115
10218
  const rawArgs = [
10116
10219
  "--agent",
10117
10220
  agentKey,
@@ -10123,6 +10226,7 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10123
10226
  "PLACEHOLDER",
10124
10227
  "--bg",
10125
10228
  ...reconciled.ephemeral ? ["--ephemeral"] : [],
10229
+ ...continuationReasoningEffort ? ["--reasoning-effort", continuationReasoningEffort] : [],
10126
10230
  ...continuation.rawArgs
10127
10231
  ];
10128
10232
  const continuedFrom = reconciled.runId;
@@ -10134,11 +10238,15 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10134
10238
  cliEntrypointPath: deps.cliEntrypoint,
10135
10239
  agentKey,
10136
10240
  ...agentName ? { agentName } : {},
10241
+ ...callerAgentKey ? { callerAgentKey } : {},
10137
10242
  ...continuedTitle ? { title: continuedTitle } : {},
10138
10243
  ...reconciled.batchId ? { batchId: reconciled.batchId } : {},
10139
10244
  // 续跑也要在 running 阶段就带上目标对话,否则"开着那条对话的 TUI"看不到它。
10140
10245
  ...reconciled.dialogId ? { dialogId: reconciled.dialogId } : {},
10141
10246
  ...reconciled.parentDialogId ? { parentDialogId: reconciled.parentDialogId } : {},
10247
+ // 续跑继承原 run 的难度判定:不传的话第 2 次、第 N 次终态续跑都会丢掉
10248
+ // 原任务的 difficulty,自动联动推理档随之掉回 normal 档。
10249
+ ...reconciled.selectionCheck ? { selectionCheck: reconciled.selectionCheck } : {},
10142
10250
  // 续跑继承原 run 的凭证组(同一 agent),供并发扇出守卫判定。
10143
10251
  ...reconciled.credentialGroup ? { credentialGroup: reconciled.credentialGroup } : {},
10144
10252
  cwd: continuation.cwd,
@@ -10725,7 +10833,8 @@ function pickAgentRunResolverDeps(args) {
10725
10833
  ...args.resolveAgentModel ? { resolveAgentModel: args.resolveAgentModel } : {},
10726
10834
  ...args.resolveAgentDisplayName ? { resolveAgentDisplayName: args.resolveAgentDisplayName } : {},
10727
10835
  ...args.resolveAgentRuntimeBindingMachineId ? { resolveAgentRuntimeBindingMachineId: args.resolveAgentRuntimeBindingMachineId } : {},
10728
- ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {}
10836
+ ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {},
10837
+ ...args.resolveAgentReasoningProfile ? { resolveAgentReasoningProfile: args.resolveAgentReasoningProfile } : {}
10729
10838
  };
10730
10839
  }
10731
10840
  function buildCliWorkspaceToolExecutors(args) {
@@ -10928,6 +11037,11 @@ function buildLocalToolExecutors(args) {
10928
11037
  }),
10929
11038
  controlAgentRun: createCliControlAgentRunExecutor({
10930
11039
  source: { parentDialogId: args.sourceParentDialogId, agentKey: args.agentKey },
11040
+ // 终态续跑(append)要按原 run 的 difficulty 重新算档,因此与 startAgentRun
11041
+ // 共用同一套可信解析器:漏转发会让续跑静默掉回记录默认档。
11042
+ ...pickAgentRunResolverDeps(args),
11043
+ // 派发者身份同样只由宿主注入(controlAgentRun 触发的续跑也要落 callerAgentKey)。
11044
+ currentAgentKey: args.agentKey,
10931
11045
  shellApprovalHostForAgent: args.shellApprovalHostForAgent,
10932
11046
  mcpApprovalHostForAgent: args.mcpApprovalHostForAgent,
10933
11047
  cwd: args.workspaceRoot,
@@ -12537,7 +12651,7 @@ async function createLocalDockerWorkload(args) {
12537
12651
  }
12538
12652
  const createLifecycle = args.createLifecycle ?? (async () => {
12539
12653
  const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
12540
- import("./workloadLifecycle-ZCSQCHG3.js"),
12654
+ import("./workloadLifecycle-P2SJVV3S.js"),
12541
12655
  import("./accountResolver-NGICIMEE.js")
12542
12656
  ]);
12543
12657
  const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
@@ -15250,6 +15364,24 @@ function createCliLocalRuntimeAdapter(deps) {
15250
15364
  return void 0;
15251
15365
  }
15252
15366
  };
15367
+ const resolveAgentReasoningProfile = async (agentRef) => {
15368
+ try {
15369
+ const record = await readAgentFromStore({
15370
+ agentRef,
15371
+ store: await getOrCreateSharedStore(deps),
15372
+ userId
15373
+ });
15374
+ if (!record) return void 0;
15375
+ const provider = typeof record.provider === "string" ? record.provider.trim() : "";
15376
+ const reasoningEffort = typeof record.reasoning_effort === "string" ? record.reasoning_effort.trim() : "";
15377
+ return {
15378
+ ...provider ? { provider } : {},
15379
+ ...reasoningEffort ? { reasoningEffort } : {}
15380
+ };
15381
+ } catch {
15382
+ return void 0;
15383
+ }
15384
+ };
15253
15385
  const resolveAgentDisplayName = async (agentRef) => {
15254
15386
  try {
15255
15387
  const record = await readAgentFromStore({
@@ -15385,7 +15517,7 @@ function createCliLocalRuntimeAdapter(deps) {
15385
15517
  emitRunIsolationNotice(fact, { runId });
15386
15518
  try {
15387
15519
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync5 } = await import("node:fs");
15388
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-RN2P6AOD.js");
15520
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QYTXUQGY.js");
15389
15521
  recordLocalRunExecutionIsolation({
15390
15522
  runId,
15391
15523
  runsDir: resolveRunsDir2(deps.env),
@@ -15410,7 +15542,7 @@ function createCliLocalRuntimeAdapter(deps) {
15410
15542
  dockerWorkloadReleased = true;
15411
15543
  dockerWorkloadLoad = null;
15412
15544
  if (loaded) {
15413
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-RN2P6AOD.js");
15545
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QYTXUQGY.js");
15414
15546
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
15415
15547
  const warn = (message) => process.stderr.write(`[nolo] ${message}
15416
15548
  `);
@@ -15533,6 +15665,7 @@ function createCliLocalRuntimeAdapter(deps) {
15533
15665
  return !!record && resolveAgentImageInputSupport(await resolveLiveImageSupport({ ...record, hasVision: record.hasVision ?? false }));
15534
15666
  },
15535
15667
  resolveAgentModel,
15668
+ resolveAgentReasoningProfile,
15536
15669
  dialogExistsForCurrentUser: async (dialogId) => {
15537
15670
  const store = await getOrCreateSharedStore(deps);
15538
15671
  const record = await store.read(`dialog-${userId}-${dialogId}`);
@@ -16351,8 +16484,6 @@ export {
16351
16484
  readTimestamp,
16352
16485
  parseAgentRunEvent,
16353
16486
  isLiveAgentRunObservation,
16354
- createOriginShellGrant,
16355
- createCliHybridRecordStore,
16356
16487
  preparedAgentRuntimeCache,
16357
16488
  hybridStoreCache,
16358
16489
  normalizeRuntimeCacheCwd,
@@ -16363,18 +16494,6 @@ export {
16363
16494
  createFallbackId,
16364
16495
  logLocalRuntimeDiagnostic,
16365
16496
  summarizeOpenAiToolNames,
16366
- prepareRemoteDialogEvidenceRecord,
16367
- postRemoteRecord,
16368
- syncLocalDialogEvidenceToRemote,
16369
- resolveStore,
16370
- getOrCreateSharedStore,
16371
- createLocalDialogTitleGenerator,
16372
- writeLocalTokenRecord,
16373
- writeDialog,
16374
- resolveCliDialogRecordKey,
16375
- loadCliDialogSummary,
16376
- saveCliDialogSummary,
16377
- loadCliDialogLastContextUsage,
16378
16497
  LOCAL_SERVER_TABLE_TOOL_NAMES,
16379
16498
  LOCAL_SERVER_TABLE_TOOL_NAME_SET,
16380
16499
  LOCAL_SERVER_WEB_TOOL_NAMES,
@@ -16383,11 +16502,27 @@ export {
16383
16502
  buildOpenAiTools,
16384
16503
  resolveCliEffectiveEnabledPacks,
16385
16504
  withRuntimeEnabledPacksAndPrompt,
16505
+ MCP_EXPOSURE_ENV,
16506
+ INSTABOX_SCHEMA_EXPOSURE_ENV,
16386
16507
  resolveCliRequestedToolNames,
16387
16508
  resolveProviderOpenAiToolBundle,
16388
16509
  buildLocalWorkspaceToolsetForEnv,
16389
16510
  buildLocalPolicyToolNames,
16390
16511
  buildServerPlatformOpenAiTools,
16512
+ createOriginShellGrant,
16513
+ createCliHybridRecordStore,
16514
+ prepareRemoteDialogEvidenceRecord,
16515
+ postRemoteRecord,
16516
+ syncLocalDialogEvidenceToRemote,
16517
+ resolveStore,
16518
+ getOrCreateSharedStore,
16519
+ createLocalDialogTitleGenerator,
16520
+ writeLocalTokenRecord,
16521
+ writeDialog,
16522
+ resolveCliDialogRecordKey,
16523
+ loadCliDialogSummary,
16524
+ saveCliDialogSummary,
16525
+ loadCliDialogLastContextUsage,
16391
16526
  summarizeEndpoint,
16392
16527
  resolveAuthToken2 as resolveAuthToken,
16393
16528
  resolveFileWriteGateEnabled,