nolo-cli 0.250.0-alpha.1 → 0.252.0-alpha.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 (186) hide show
  1. package/{_executeModel-F4MT6OPO.js → _executeModel-D6G3B45S.js} +51 -51
  2. package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
  3. package/{addContentAction-MLI6GOBV.js → addContentAction-MB22YIDV.js} +6 -6
  4. package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
  5. package/{agentDeleteCommand-DBCRHB4S.js → agentDeleteCommand-YCWDGJSF.js} +87 -82
  6. package/{agentEmailCommands-T4PAJ4KG.js → agentEmailCommands-DTWD5FWC.js} +87 -82
  7. package/{agentListCommands-5ULWKQ3E.js → agentListCommands-JTOONLYL.js} +233 -46
  8. package/{agentMachineCommands-65QUOCEY.js → agentMachineCommands-25X7OTLQ.js} +38 -36
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
  11. package/{agentRecordCommands-EKANS3A5.js → agentRecordCommands-SXE3WV2X.js} +86 -81
  12. package/{agentRunCommand-336PXBRJ.js → agentRunCommand-QSIED54S.js} +87 -82
  13. package/{agentRunControl-QMWTWV7C.js → agentRunControl-KNNDEEDI.js} +8 -6
  14. package/{agentRuntimeLocal-KKXJOBD3.js → agentRuntimeLocal-HVJJMB4W.js} +32 -31
  15. package/{agentSlice-FWYXP332.js → agentSlice-NBUJJVRI.js} +7 -7
  16. package/{appDeleteCommands-ERJK367V.js → appDeleteCommands-YU6TT6VN.js} +39 -37
  17. package/{appDeployCommands-LUV6QKQJ.js → appDeployCommands-4DEIX7YP.js} +39 -37
  18. package/{appDeployStatusCommands-WW7IYQD4.js → appDeployStatusCommands-3VKS6GBQ.js} +39 -37
  19. package/{appGetCommands-G7XYYSFO.js → appGetCommands-22FNNROT.js} +39 -37
  20. package/{appListCommands-4RXCIDNI.js → appListCommands-FVGMLHVU.js} +39 -37
  21. package/{authCommand-3C3RN4OU.js → authCommand-5DC3ES4Q.js} +15 -15
  22. package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
  23. package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-AA555ANS.js} +1 -1
  24. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  25. package/chunk-2GAUJDA5.js +594 -0
  26. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  27. package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
  28. package/{chunk-W4G25PVP.js → chunk-2PB653F5.js} +196 -253
  29. package/{chunk-UF6J7NXV.js → chunk-3272HU62.js} +1 -1
  30. package/chunk-3A5NNQCN.js +64 -0
  31. package/{chunk-7IQA2VJF.js → chunk-3N3JPQBQ.js} +210 -56
  32. package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
  33. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  34. package/{chunk-ADOOL3PG.js → chunk-52M4RYVP.js} +1 -1
  35. package/{chunk-U7OMQLRE.js → chunk-5IN2NBDX.js} +9 -9
  36. package/{chunk-BAH3BAUZ.js → chunk-5QEOTC35.js} +5 -5
  37. package/{chunk-E5RYFR7E.js → chunk-5UYDG6HP.js} +19 -0
  38. package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
  39. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  40. package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
  41. package/{chunk-YWNCRUBZ.js → chunk-7XO73H5X.js} +116 -6
  42. package/{chunk-SMEX763N.js → chunk-7ZOVFB2H.js} +100 -43
  43. package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
  44. package/{chunk-ZKMS73DK.js → chunk-A6VIMCWI.js} +3 -3
  45. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  46. package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
  47. package/{chunk-HZDK56EK.js → chunk-CO2NXG2J.js} +32 -10
  48. package/{chunk-OHUYN3YU.js → chunk-CYGFNMCH.js} +1 -1
  49. package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
  50. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  51. package/{chunk-VV5IS3ES.js → chunk-DU3DJYVA.js} +5 -5
  52. package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
  53. package/{chunk-73PZD7JZ.js → chunk-EG3JTV7H.js} +2 -2
  54. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  55. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  56. package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
  57. package/{chunk-TMRJGSK2.js → chunk-FRC2DNTN.js} +1 -1
  58. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  59. package/{chunk-I3J7HO3U.js → chunk-FZI2P64R.js} +137 -53
  60. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  61. package/{chunk-XHG7QROB.js → chunk-GO7UC5VH.js} +5 -5
  62. package/{chunk-RDBDHGU7.js → chunk-GVH2IP2M.js} +5 -5
  63. package/{chunk-AXZ5DDLB.js → chunk-GWS2X7TX.js} +235 -120
  64. package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
  65. package/{chunk-ATRU65OK.js → chunk-HMREADP6.js} +21 -19
  66. package/chunk-HZD5HXUO.js +405 -0
  67. package/{chunk-VHMPJGT4.js → chunk-ITCOQAHS.js} +3 -3
  68. package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
  69. package/chunk-IVK2KT3H.js +209 -0
  70. package/{chunk-FFFKAOJN.js → chunk-JAYPSNGR.js} +1 -1
  71. package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
  72. package/{chunk-3IVFGQIM.js → chunk-JF5QT3YY.js} +2 -2
  73. package/{chunk-V4IYI3SB.js → chunk-JKALGWDL.js} +2 -2
  74. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  75. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  76. package/{chunk-HEIIOJGN.js → chunk-LAQC5FAP.js} +4 -4
  77. package/{chunk-I3OW5RAX.js → chunk-LNIA5JVX.js} +8 -8
  78. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  79. package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
  80. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  81. package/{chunk-SHDJLJWV.js → chunk-N2ZAY2DK.js} +1 -1
  82. package/{chunk-WEZ27JA7.js → chunk-NMXGIRSG.js} +1 -1
  83. package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
  84. package/{chunk-ARFCL53U.js → chunk-NPUHKEOB.js} +4 -4
  85. package/{chunk-32WTED6G.js → chunk-O6LPLIRS.js} +94 -83
  86. package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
  87. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  88. package/{chunk-UPOW5HTG.js → chunk-OMIXG25B.js} +2 -2
  89. package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
  90. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  91. package/{chunk-OKKA4BCM.js → chunk-P6HMEKLL.js} +114 -56
  92. package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
  93. package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
  94. package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
  95. package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
  96. package/{chunk-6TVYUQRM.js → chunk-QV32GSVO.js} +2 -2
  97. package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
  98. package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
  99. package/{chunk-JFRJEPFI.js → chunk-SMZFWEMX.js} +1 -1
  100. package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
  101. package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
  102. package/{chunk-OLGFIQN2.js → chunk-T4VVQHSE.js} +1 -1
  103. package/{chunk-6QL3SUEK.js → chunk-TDI7ARZO.js} +3 -3
  104. package/{chunk-X6LYQDN5.js → chunk-TDLZA6LJ.js} +13 -10
  105. package/chunk-TRRXYFTR.js +46 -0
  106. package/{chunk-WMKA2DPK.js → chunk-TTUIM3PJ.js} +4 -4
  107. package/{chunk-RHBD22LV.js → chunk-TTWNTFTO.js} +39 -4
  108. package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
  109. package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
  110. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  111. package/{chunk-BVEDT6DM.js → chunk-VH7AQEEF.js} +3 -3
  112. package/{chunk-PGDM7AM2.js → chunk-WAOHK3NJ.js} +9 -9
  113. package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
  114. package/{chunk-ZTWDSOXD.js → chunk-WNIBQBOR.js} +1 -1
  115. package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
  116. package/chunk-XRGBJHZX.js +136 -0
  117. package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
  118. package/{chunk-AKWA6PCE.js → chunk-YQYYYATY.js} +45 -27
  119. package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
  120. package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
  121. package/{chunk-YQO5UKHP.js → chunk-ZNOXY73P.js} +632 -124
  122. package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-FKBPFPKR.js} +7 -7
  123. package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  124. package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
  125. package/{cliLocalAgentRecordReader-R4CLUHYO.js → cliLocalAgentRecordReader-DWU3LBO2.js} +36 -35
  126. package/{commandRegistry-UIZRI4JV.js → commandRegistry-7FVATZS2.js} +74 -74
  127. package/{contentThunks-ZQSZA4GH.js → contentThunks-25XCB7VY.js} +20 -20
  128. package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-PT5L4LNB.js} +3 -3
  129. package/{createAgentAutomationAction-RQE4F6PR.js → createAgentAutomationAction-FC5RI2LW.js} +20 -20
  130. package/{createDialogAction-JDSMQ34U.js → createDialogAction-IL3ISSQQ.js} +21 -21
  131. package/{createPageAction-VLF6XCYO.js → createPageAction-RVYBEYZV.js} +23 -23
  132. package/{db-CMUTP3W5.js → db-JMGVD4TB.js} +4 -2
  133. package/{dbSlice-656PMWR2.js → dbSlice-WG3ZG6PZ.js} +5 -5
  134. package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
  135. package/{dialogCommands-PLM7ZFWH.js → dialogCommands-VUJISJZF.js} +48 -42
  136. package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-JKYVSR6K.js} +8 -8
  137. package/{dialogSlice-63DD2ER2.js → dialogSlice-UMP55UAW.js} +18 -18
  138. package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-IHAXS7DW.js} +5 -5
  139. package/{docCreateCommands-BST5DO7L.js → docCreateCommands-S46F6GKP.js} +38 -36
  140. package/{docDeleteCommands-YE6G2SO4.js → docDeleteCommands-LJG4NK6J.js} +39 -37
  141. package/{docReadCommands-M6T35U3G.js → docReadCommands-YPAYGHNM.js} +38 -36
  142. package/{docStore-7QNJWRJ2.js → docStore-VK3MVJ5Q.js} +6 -6
  143. package/{docUpdateCommands-6DFWGPVG.js → docUpdateCommands-MPTM6267.js} +38 -36
  144. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  145. package/{handleSendMessageAction-FCEFFAV4.js → handleSendMessageAction-VPKVNKBU.js} +83 -41
  146. package/{hostCredentialCreate-YEWCAMZN.js → hostCredentialCreate-K56HWPNY.js} +86 -81
  147. package/index.js +23 -11
  148. package/{localDialogRead-CIOTQM5T.js → localDialogRead-NXILOV3T.js} +1 -1
  149. package/{localRuntimeAdapter-Z22ZOZRY.js → localRuntimeAdapter-KVU72FWT.js} +84 -79
  150. package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
  151. package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
  152. package/{machineCommands-PT5OJ36V.js → machineCommands-C3O5RKNJ.js} +85 -80
  153. package/{machineWsRunDispatch-DQVNBSVE.js → machineWsRunDispatch-ZLART7ZA.js} +85 -80
  154. package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
  155. package/{mcpLocalAuthorizeCommand-GO6AYT63.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +15 -11
  156. package/{memberThunks-JFYC4Z5L.js → memberThunks-7DNR6DRD.js} +7 -7
  157. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  158. package/package.json +2 -1
  159. package/{projectArchive-4XUC5SLF.js → projectArchive-UBJFYRL7.js} +23 -23
  160. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  161. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  162. package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
  163. package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
  164. package/{readlineWorkspace-7U5QM3OM.js → readlineWorkspace-TSIYF7C6.js} +655 -248
  165. package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
  166. package/{runAgentClientLoop-7D7UCAS2.js → runAgentClientLoop-YAHGOWXN.js} +48 -48
  167. package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-QGZSKNSE.js} +14 -11
  168. package/{secretCommands-2FEMRUFM.js → secretCommands-BXAQEOES.js} +2 -2
  169. package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
  170. package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
  171. package/{settingThunks-IHXUF276.js → settingThunks-YQNG5L6K.js} +5 -5
  172. package/{spaceCommands-WCLD36WH.js → spaceCommands-P644AAZZ.js} +37 -35
  173. package/{streamAgentChatTurn-DVTOINT3.js → streamAgentChatTurn-5CSYAUAY.js} +81 -77
  174. package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
  175. package/{tools-BOPINT5S.js → tools-UZ3CDIR2.js} +38 -38
  176. package/{tuiRestart-5F2APN66.js → tuiRestart-GF4DGAAN.js} +7 -7
  177. package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +13 -13
  178. package/{updateCommands-FBYA5WVG.js → updateCommands-BZ4YDHNM.js} +3 -3
  179. package/{updateDialogTitleAction-S76PUCLQ.js → updateDialogTitleAction-53XCCDK2.js} +20 -20
  180. package/{usageCommand-L4OFWXEU.js → usageCommand-XVJ7ZUTM.js} +2 -2
  181. package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-NK6S3D4J.js} +3 -3
  182. package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
  183. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
  184. package/chunk-FGHEF6WI.js +0 -34
  185. package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
  186. package/{chunk-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
@@ -7,7 +7,7 @@ import {
7
7
  parsePendingApprovalResult,
8
8
  runConnectorToolWithHostApproval,
9
9
  withHostApprovalRequest
10
- } from "./chunk-WEZ27JA7.js";
10
+ } from "./chunk-NMXGIRSG.js";
11
11
  import {
12
12
  BROWSER_SHELL_BRIDGE_ENV
13
13
  } from "./chunk-FE7G6DSP.js";
@@ -22,12 +22,17 @@ import {
22
22
  resolveClaudeCodeVersion,
23
23
  resolveServerSyncConfig,
24
24
  xaiRefresh
25
- } from "./chunk-6TVYUQRM.js";
25
+ } from "./chunk-QV32GSVO.js";
26
26
  import {
27
27
  clearCredentialAvailability,
28
28
  markCredentialUnavailable,
29
29
  readCredentialEntry
30
- } from "./chunk-WWTSEBDF.js";
30
+ } from "./chunk-GIXWVN2W.js";
31
+ import {
32
+ DialogNotifyError,
33
+ deliverDialogNotification,
34
+ sha256Hex
35
+ } from "./chunk-CYGFNMCH.js";
31
36
  import {
32
37
  SANDBOX_HELPER_PATH,
33
38
  SANDBOX_OUTPUT_LIMITS,
@@ -36,7 +41,7 @@ import {
36
41
  buildWorkspaceHelperSource,
37
42
  dockerExecutionToolNames,
38
43
  parseToolOutput
39
- } from "./chunk-VTHWBTRE.js";
44
+ } from "./chunk-PENRYZ4D.js";
40
45
  import {
41
46
  createChromeConnectorClientResolver,
42
47
  createVerifiedChromeConnectorClient,
@@ -51,31 +56,29 @@ import {
51
56
  resolveCustomNativeEndpoint
52
57
  } from "./chunk-WOAZVUSN.js";
53
58
  import {
54
- DialogNotifyError,
55
- deliverDialogNotification,
56
- sha256Hex
57
- } from "./chunk-OHUYN3YU.js";
59
+ isCursorOAuthAgent
60
+ } from "./chunk-VIWDGTDA.js";
58
61
  import {
59
62
  createTuiSummaryLlmCaller
60
- } from "./chunk-4IQN6FWY.js";
63
+ } from "./chunk-OB4FBZXJ.js";
61
64
  import {
62
65
  CliProviderQuotaError,
63
66
  executeCli,
64
67
  executeCliStreaming
65
68
  } from "./chunk-R7XWZDOH.js";
66
- import {
67
- isCursorOAuthAgent
68
- } from "./chunk-VIWDGTDA.js";
69
69
  import {
70
70
  buildCliPrompt
71
71
  } from "./chunk-ATNTHIZI.js";
72
+ import {
73
+ resolveUserSkillRuntime
74
+ } from "./chunk-A5F6DYP2.js";
72
75
  import {
73
76
  inlineImageUrlsForCustomProvider,
74
77
  prepareTools
75
- } from "./chunk-I3J7HO3U.js";
78
+ } from "./chunk-FZI2P64R.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,22 @@ import {
95
98
  resolveCliLocalSpawnDispatch,
96
99
  resolveRunContextFacts,
97
100
  resolveStartAgentRunCwd
98
- } from "./chunk-7IQA2VJF.js";
101
+ } from "./chunk-3N3JPQBQ.js";
99
102
  import {
100
103
  deriveCredentialGroup,
101
104
  deriveCustomProviderCredentialGroup
102
- } from "./chunk-KHVTT4WW.js";
103
- import {
104
- resolveUserSkillRuntime
105
- } from "./chunk-UR4ZMRV3.js";
105
+ } from "./chunk-HF4C5WIU.js";
106
106
  import {
107
107
  normalizeEnabledPromptSkills,
108
108
  resolveUserEnabledSkills
109
109
  } from "./chunk-WMMKHEGQ.js";
110
110
  import {
111
111
  validateAskChoiceInput
112
- } from "./chunk-VHMPJGT4.js";
112
+ } from "./chunk-ITCOQAHS.js";
113
113
  import {
114
114
  prepareTokenUsageData,
115
115
  runKeyed
116
- } from "./chunk-YQO5UKHP.js";
116
+ } from "./chunk-ZNOXY73P.js";
117
117
  import {
118
118
  applyTokenUsageToDayStats,
119
119
  require_format
@@ -124,16 +124,22 @@ import {
124
124
  } from "./chunk-523DITKR.js";
125
125
  import {
126
126
  fetchServerSyncedCredential
127
- } from "./chunk-AKWA6PCE.js";
127
+ } from "./chunk-YQYYYATY.js";
128
+ import {
129
+ getDefaultCliLocalRuntimeDb
130
+ } from "./chunk-7RYODZDD.js";
128
131
  import {
129
132
  defaultLoopbackRequest,
130
133
  loadLocalRunChildDialogIds
131
- } from "./chunk-SHDJLJWV.js";
134
+ } from "./chunk-N2ZAY2DK.js";
132
135
  import {
133
136
  CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
134
137
  OAUTH_PROVIDER_REFS,
135
138
  getSharedSessionCredentialBroker
136
- } from "./chunk-KJDN2YRH.js";
139
+ } from "./chunk-QMKWSKWA.js";
140
+ import {
141
+ resolveDispatchReasoningEffort
142
+ } from "./chunk-2GAUJDA5.js";
137
143
  import {
138
144
  fetchWithTransientRetry,
139
145
  isTransientFetchError
@@ -163,7 +169,7 @@ import {
163
169
  terminateRunProcess,
164
170
  transitionRunToTerminal,
165
171
  withQueueLock
166
- } from "./chunk-YWNCRUBZ.js";
172
+ } from "./chunk-7XO73H5X.js";
167
173
  import {
168
174
  TASK_PREVIEW_MAX,
169
175
  formatControlRunMessageCard,
@@ -181,18 +187,15 @@ import {
181
187
  resolveRunLabel,
182
188
  shortRunId
183
189
  } from "./chunk-S25VJYXV.js";
184
- import {
185
- getDefaultCliLocalRuntimeDb
186
- } from "./chunk-BFKJ2RS3.js";
187
190
  import {
188
191
  readAgentFromStore,
189
192
  readDialogMessageRecords,
190
193
  readDialogMessages,
191
194
  resolveBuiltinLocalCliAgentConfig
192
- } from "./chunk-HEIIOJGN.js";
195
+ } from "./chunk-LAQC5FAP.js";
193
196
  import {
194
197
  applyPublicAgentCatalogOverride
195
- } from "./chunk-MZVCFV3T.js";
198
+ } from "./chunk-D3WOFN6N.js";
196
199
  import {
197
200
  applyBuiltinAgentRuntimeOverride
198
201
  } from "./chunk-JP2BH4NC.js";
@@ -246,12 +249,13 @@ import {
246
249
  runExecShellGates,
247
250
  validateConfiguredRootExecutionLease,
248
251
  verifyOwnerRouteAck
249
- } from "./chunk-W4G25PVP.js";
252
+ } from "./chunk-2PB653F5.js";
250
253
  import {
251
254
  createHostCredentialBrokerChain,
252
255
  createStrictHostCredentialBroker
253
256
  } from "./chunk-LHCGKAFO.js";
254
257
  import {
258
+ AGENT_PROMPT_IN_MESSAGES,
255
259
  accumulateGeminiChunks,
256
260
  buildGeminiGenerateContentRequest,
257
261
  fetchAntigravityCloudCodeCompletion,
@@ -263,7 +267,7 @@ import {
263
267
  resolveAntigravityFinishReason,
264
268
  resolveGeminiModelQuirks,
265
269
  shouldUseGeminiNativeToolRoute
266
- } from "./chunk-MYYNZG2M.js";
270
+ } from "./chunk-OOV5JN25.js";
267
271
  import {
268
272
  readLocalImage
269
273
  } from "./chunk-AL3TYDIF.js";
@@ -278,37 +282,40 @@ import {
278
282
  readPlatformChatSseCompletion,
279
283
  resolvePlatformChatProviderConfig,
280
284
  shouldUsePlatformChatProvider
281
- } from "./chunk-EDT65EUE.js";
285
+ } from "./chunk-PIVTQRX6.js";
282
286
  import {
283
287
  readSseDataValues,
284
288
  readSseFrames
285
289
  } from "./chunk-HNUWUO75.js";
286
290
  import {
287
291
  resolveAgentRuntimeConfigFromRecord
288
- } from "./chunk-WMKA2DPK.js";
292
+ } from "./chunk-TTUIM3PJ.js";
293
+ import {
294
+ resolveAgentImageInputSupport,
295
+ resolveCatalogImageSupport,
296
+ resolveToolImagePolicy,
297
+ withLiveImageSupport
298
+ } from "./chunk-BZLGPM5B.js";
289
299
  import {
290
300
  assertDispatchSelectionAdmission,
291
301
  buildNoloWorkspaceOpenAiTools,
292
302
  filterClientNoloWorkspaceToolNames,
293
303
  parseNoloWorkspaceToolArguments
294
- } from "./chunk-CFDOIIOZ.js";
295
- import {
296
- MCP_TOOL_NAMES
297
- } from "./chunk-KXOPLLFP.js";
304
+ } from "./chunk-ZMXO5G3E.js";
298
305
  import {
299
306
  extractQuotaSnapshot,
300
307
  isCapacitySaturatedRateLimit,
301
308
  mergeAvailabilityDeadline,
302
309
  resolveAvailabilityAction,
303
310
  resolveCredentialKeyWithFallback
304
- } from "./chunk-QJTZ76CP.js";
311
+ } from "./chunk-LS5KAVFQ.js";
305
312
  import {
306
313
  collectStablePromptPrefix,
307
314
  convertMessagesToResponsesInput,
308
315
  findAgentStatePairingIssues,
309
316
  stablePromptCacheKey,
310
317
  toResponsesTools
311
- } from "./chunk-W3HSD32M.js";
318
+ } from "./chunk-FXEPZKNJ.js";
312
319
  import {
313
320
  EMPTY_TOOL_RESULT_TEXT,
314
321
  MAX_TOOL_IMAGES_PER_REQUEST,
@@ -320,20 +327,17 @@ import {
320
327
  toolImageSource,
321
328
  toolImages
322
329
  } from "./chunk-X4O7FJF5.js";
323
- import {
324
- resolveAgentImageInputSupport,
325
- resolveCatalogImageSupport,
326
- resolveToolImagePolicy,
327
- withLiveImageSupport
328
- } from "./chunk-SX6AWTNK.js";
329
330
  import {
330
331
  resolveAgentRequiredPackIds,
331
332
  resolveAgentSkillConfig,
332
333
  resolveHistoricalToolContentCap
333
- } from "./chunk-CDIRKCPD.js";
334
+ } from "./chunk-6HL6E7ZD.js";
335
+ import {
336
+ MCP_TOOL_NAMES
337
+ } from "./chunk-KXOPLLFP.js";
334
338
  import {
335
339
  resolveAgentCallPlan
336
- } from "./chunk-VUHKG4KS.js";
340
+ } from "./chunk-DNNPARJK.js";
337
341
  import {
338
342
  buildDialogFallbackTitleFromUserInput,
339
343
  normalizeDialogTitle
@@ -346,15 +350,16 @@ import {
346
350
  commitCodexOAuthCatalogWindows,
347
351
  isCodexOAuthAgent,
348
352
  markCodexOAuthCatalogFailure,
349
- resolveCodexOAuthEffectiveModel
350
- } from "./chunk-LTVEOOZL.js";
353
+ resolveCodexOAuthEffectiveModel,
354
+ usesCodexDeveloperPrefix
355
+ } from "./chunk-CIAV4WK2.js";
351
356
  import {
352
357
  isDevinOAuthAgent
353
358
  } from "./chunk-5ZUL4CUO.js";
354
359
  import {
355
360
  normalizeUsage,
356
361
  sanitizeSummarySourceSegments
357
- } from "./chunk-MAA42MMV.js";
362
+ } from "./chunk-2FZVXOFX.js";
358
363
  import {
359
364
  createProviderCallTimingTracker,
360
365
  finalizeProviderCallTiming,
@@ -373,12 +378,12 @@ import {
373
378
  resolveLocalWorkspaceExecutorOptionsFromPolicy,
374
379
  resolveRequestedRuntimeToolNames
375
380
  } from "./chunk-USGHJSGO.js";
376
- import {
377
- createFileCredentialBroker
378
- } from "./chunk-E6A5NHDH.js";
379
381
  import {
380
382
  asRecordOrEmpty
381
383
  } from "./chunk-KX6YBIHG.js";
384
+ import {
385
+ createFileCredentialBroker
386
+ } from "./chunk-E6A5NHDH.js";
382
387
  import {
383
388
  withShellChildEnvironment
384
389
  } from "./chunk-5BRVDQTX.js";
@@ -432,7 +437,7 @@ import {
432
437
  localTurnHasSubjectRefs,
433
438
  resolveLocalUserId,
434
439
  withResolvedRuntimeToolSurface
435
- } from "./chunk-UPOW5HTG.js";
440
+ } from "./chunk-OMIXG25B.js";
436
441
  import {
437
442
  LOCAL_CODEX_AGENT_KEY,
438
443
  isLocalCliAgentKey,
@@ -441,12 +446,12 @@ import {
441
446
  import {
442
447
  HIGH_RISK_MUTATION_TOOL_NAMES,
443
448
  resolveRequestToolSurface
444
- } from "./chunk-NEG5LYK5.js";
449
+ } from "./chunk-JCQ3WCQ3.js";
445
450
  import {
446
451
  remoteDialogSyncTimeout,
447
452
  resolveRuntimeAuthToken,
448
453
  resolveRuntimeServerUrl
449
- } from "./chunk-GX6DITLQ.js";
454
+ } from "./chunk-UUCYUN6Y.js";
450
455
  import {
451
456
  CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
452
457
  canonicalizeChromeConnectorToolNames,
@@ -457,9 +462,11 @@ import {
457
462
  } from "./chunk-U6VC4MU4.js";
458
463
  import {
459
464
  classifyDialogSyncFailure,
460
- getLogger,
461
465
  startOwnedDialogSync
462
- } from "./chunk-6XRPBZRS.js";
466
+ } from "./chunk-XRGBJHZX.js";
467
+ import {
468
+ getLogger
469
+ } from "./chunk-EYLGAEB4.js";
463
470
  import {
464
471
  getHostRuntimeExecutable,
465
472
  isCompiledBinary,
@@ -476,25 +483,26 @@ import {
476
483
  import {
477
484
  agentRunCardLabels,
478
485
  t
479
- } from "./chunk-E5RYFR7E.js";
486
+ } from "./chunk-5UYDG6HP.js";
480
487
  import {
481
488
  isAntigravityOAuthAgent
482
- } from "./chunk-CTWCZKNS.js";
489
+ } from "./chunk-6SOWMEAY.js";
483
490
  import {
484
491
  toErrorMessage
485
492
  } from "./chunk-HNMXYYJR.js";
486
493
  import {
487
494
  buildProviderSessionHeaders,
488
495
  resolvePlatformAuthToken
489
- } from "./chunk-K26XPZRB.js";
496
+ } from "./chunk-LVZVSLKO.js";
490
497
  import {
491
498
  asTrimmedString
492
499
  } from "./chunk-3EUW3WEO.js";
493
500
  import {
501
+ REASONING_EFFORT_OPTIONS,
494
502
  anthropicOAuthModelMaxOutputTokens,
495
503
  findModelConfig,
496
504
  isAdaptiveThinkingModelId
497
- } from "./chunk-CD2DK5JA.js";
505
+ } from "./chunk-OKH74FML.js";
498
506
  import {
499
507
  CLI_PROVIDER_VALUES,
500
508
  isCliProvider
@@ -768,7 +776,7 @@ function resolveThinkingSpec(input) {
768
776
  let finalMaxTokens = maxTokens;
769
777
  let finalTemperature = input.temperature;
770
778
  if (isAdaptiveThinkingModelId(model)) {
771
- if (effortDisabled) {
779
+ if (effortDisabled || normalizedEffort === void 0 && input.enableThinking === false) {
772
780
  thinkingBlock = { type: "disabled" };
773
781
  } else {
774
782
  thinkingBlock = { type: "adaptive", display: "summarized" };
@@ -778,7 +786,7 @@ function resolveThinkingSpec(input) {
778
786
  const injected = input.injectedThinking;
779
787
  const injectedBudget = injected?.type === "enabled" && typeof injected.budget_tokens === "number" ? injected.budget_tokens : void 0;
780
788
  const effortBudget = resolveThinkingBudget(input.reasoningEffort);
781
- 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;
782
790
  const thinkingBudget = effortBudget ?? fallbackBudget;
783
791
  if (thinkingBudget !== void 0) {
784
792
  thinkingBlock = { type: "enabled", budget_tokens: thinkingBudget };
@@ -2576,26 +2584,50 @@ function buildCodexCompatibilityHeaders(identity, accountId) {
2576
2584
  "x-codex-turn-metadata": identity.turnMetadataJson
2577
2585
  };
2578
2586
  }
2579
- function collectInstructions(messages, agentPrompt) {
2587
+ function getInstructionText(content) {
2588
+ if (!Array.isArray(content)) return asOptionalTrimmedString(content);
2589
+ const text = content.filter(
2590
+ (part) => part?.type === "text" && typeof part.text === "string"
2591
+ ).map((part) => part.text).join("\n");
2592
+ return asOptionalTrimmedString(text);
2593
+ }
2594
+ function hasCodexAssembledPrompt(messages) {
2595
+ return messages.some((raw) => {
2596
+ if (!raw || typeof raw !== "object") return false;
2597
+ const message = raw;
2598
+ return message.role === "system" && (message[AGENT_PROMPT_IN_MESSAGES] === true || message.agent_prompt_in_messages === true) && getInstructionText(message.content) !== void 0;
2599
+ });
2600
+ }
2601
+ function collectInstructions(messages, agentPrompt, splitPrefix) {
2580
2602
  const systemTexts = [];
2603
+ let messageTexts = 0;
2604
+ let prefixEnd;
2581
2605
  const prompt = agentPrompt?.trim();
2582
2606
  if (prompt) systemTexts.push(prompt);
2583
2607
  for (const raw of messages) {
2584
2608
  if (!raw || typeof raw !== "object") continue;
2585
2609
  const role = String(raw.role ?? "");
2586
2610
  if (role !== "system" && role !== "developer") continue;
2587
- const content = raw.content;
2588
- const stringContent = asOptionalTrimmedString(content);
2589
- if (stringContent) {
2590
- systemTexts.push(stringContent);
2591
- } else if (Array.isArray(content)) {
2592
- const text = content.filter(
2593
- (p) => !!p && p.type === "text"
2594
- ).map((p) => p.text).join("\n").trim();
2595
- if (text) systemTexts.push(text);
2611
+ const { content, stable_prefix_chars: boundary } = raw;
2612
+ const text = getInstructionText(content);
2613
+ if (text) {
2614
+ if (splitPrefix && prefixEnd === void 0 && messageTexts === 0 && typeof content === "string" && typeof boundary === "number" && Number.isInteger(boundary) && boundary >= 0 && boundary <= content.length) {
2615
+ const stable = content.slice(0, boundary).trim();
2616
+ if (stable) systemTexts.push(stable);
2617
+ prefixEnd = systemTexts.length;
2618
+ const dynamic = content.slice(boundary).trim();
2619
+ if (dynamic) systemTexts.push(dynamic);
2620
+ } else {
2621
+ systemTexts.push(text);
2622
+ messageTexts += 1;
2623
+ }
2596
2624
  }
2597
2625
  }
2598
- return systemTexts.join("\n\n");
2626
+ const split = splitPrefix ? prefixEnd ?? 0 : 0;
2627
+ return {
2628
+ developerPrefix: systemTexts.slice(0, split).join("\n\n"),
2629
+ instructions: systemTexts.slice(split).join("\n\n")
2630
+ };
2599
2631
  }
2600
2632
  function convertMessagesToCodexInput(messages, supportsToolImages = false) {
2601
2633
  const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
@@ -2624,8 +2656,16 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
2624
2656
  routeKind: "codex/responses",
2625
2657
  legacySupportsToolImages: false
2626
2658
  }));
2627
- const fallbackPrompt = hasAssembledAgentPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
2628
- const instructions = collectInstructions(rawMessages, fallbackPrompt);
2659
+ const fallbackPrompt = hasCodexAssembledPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
2660
+ const splitPrefix = usesCodexDeveloperPrefix(args.agentConfig, model);
2661
+ const { instructions, developerPrefix } = collectInstructions(rawMessages, fallbackPrompt, splitPrefix);
2662
+ if (developerPrefix) {
2663
+ input.unshift({
2664
+ type: "message",
2665
+ role: "developer",
2666
+ content: [{ type: "input_text", text: developerPrefix }]
2667
+ });
2668
+ }
2629
2669
  const stableInstructions = collectStablePromptPrefix(rawMessages, fallbackPrompt);
2630
2670
  const tools = toResponsesTools(
2631
2671
  Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
@@ -3126,7 +3166,7 @@ function createCustomNativeProvider(args) {
3126
3166
  }
3127
3167
  }
3128
3168
  function buildGeminiCustomNativeProvider(p) {
3129
- const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl, authToken, transport, log, recordAvailability } = p;
3169
+ const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl, transport, log, recordAvailability } = p;
3130
3170
  const budgetBody = buildGeminiGenerateContentRequest({
3131
3171
  messages: [],
3132
3172
  tools,
@@ -3142,18 +3182,9 @@ function buildGeminiCustomNativeProvider(p) {
3142
3182
  complete: async (messages, options) => {
3143
3183
  const inlineResult = await inlineImageUrlsForCustomProvider({ messages }, {
3144
3184
  shouldInline: true,
3145
- isAllowedImageUrl: (url) => {
3146
- try {
3147
- return new URL(url).origin === new URL(serverUrl).origin;
3148
- } catch {
3149
- return false;
3150
- }
3151
- },
3152
- fetchImage: async (url) => {
3153
- const image = await fetchImpl(url, { headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0, signal: options?.signal });
3154
- if (!image.ok) return { ok: false, error: `HTTP ${image.status}` };
3155
- return { ok: true, mimeType: image.headers.get("content-type") ?? "application/octet-stream", bytes: new Uint8Array(await image.arrayBuffer()) };
3156
- }
3185
+ serverUrl,
3186
+ request: fetchImpl,
3187
+ signal: options?.signal
3157
3188
  });
3158
3189
  const toolImagePolicy = {
3159
3190
  routeKind: "gemini-native",
@@ -3581,7 +3612,7 @@ var resolveDevinTransport = async (ctx) => {
3581
3612
 
3582
3613
  // packages/cli/client/providerResolution/directOpenAiCompatibleTransport.ts
3583
3614
  var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3584
- const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl, authToken } = ctx;
3615
+ const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl } = ctx;
3585
3616
  const providerConfig = await resolveOpenAiCompatibleProviderConfig({
3586
3617
  agentConfig,
3587
3618
  env: deps.env,
@@ -3619,26 +3650,9 @@ var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3619
3650
  { messages },
3620
3651
  {
3621
3652
  shouldInline: true,
3622
- isAllowedImageUrl: (url) => {
3623
- try {
3624
- return new URL(url).origin === new URL(serverUrl).origin;
3625
- } catch {
3626
- return false;
3627
- }
3628
- },
3629
- fetchImage: async (url) => {
3630
- const response = await fetchImpl(url, {
3631
- headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0
3632
- });
3633
- if (!response.ok) {
3634
- return { ok: false, error: `HTTP ${response.status}` };
3635
- }
3636
- return {
3637
- ok: true,
3638
- mimeType: response.headers.get("content-type") ?? "application/octet-stream",
3639
- bytes: new Uint8Array(await response.arrayBuffer())
3640
- };
3641
- }
3653
+ serverUrl,
3654
+ request: fetchImpl,
3655
+ signal: options?.signal
3642
3656
  }
3643
3657
  )).messages;
3644
3658
  logLocalRuntimeDiagnostic("provider.request.start", {
@@ -6491,7 +6505,7 @@ function buildServerPlatformToolExecutors(args) {
6491
6505
  const shortHash = (value, len) => createHash2("sha256").update(value).digest("hex").slice(0, len);
6492
6506
  const localMemoryContext = async () => {
6493
6507
  const openCliLocalRuntimeDb = async () => {
6494
- const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-BO7IVWAZ.js");
6508
+ const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-3CIC4SKC.js");
6495
6509
  return getDefaultCliLocalRuntimeDb2({ env: args.env });
6496
6510
  };
6497
6511
  try {
@@ -6742,7 +6756,7 @@ function buildServerPlatformToolExecutors(args) {
6742
6756
  }
6743
6757
  const ctx = await localMemoryContext();
6744
6758
  if (!ctx) throw new Error("local work memory unavailable");
6745
- const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-37ZNEY5Y.js");
6759
+ const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-FKBPFPKR.js");
6746
6760
  const localUserId = resolveLocalUserId2(args.env);
6747
6761
  const { resolveWorkContextAccess } = await import("./workContextAccess-VU5I4LKZ.js");
6748
6762
  const { updateWorkContext, readWorkContexts } = await import("./workContext-Y3ADAPZU.js");
@@ -7226,9 +7240,13 @@ var VALUELESS_FLAGS = {
7226
7240
  "--local": true,
7227
7241
  "--server": true,
7228
7242
  "--auto": true,
7243
+ "--auto-route": true,
7244
+ "--allow-host-writes": true,
7229
7245
  "--dangerously-allow-shell": true,
7230
7246
  "--trace-tools": true,
7231
7247
  "--bg": true,
7248
+ "--fresh": true,
7249
+ "--fresh-dialog": true,
7232
7250
  "--strict-continue-history": true,
7233
7251
  "--no-stream": true,
7234
7252
  "--debug": true,
@@ -7236,7 +7254,8 @@ var VALUELESS_FLAGS = {
7236
7254
  "--memory-only": true,
7237
7255
  "--read-only": true,
7238
7256
  "--machine-shell": true,
7239
- "--instabox-allow-remote-release": true
7257
+ "--instabox-allow-remote-release": true,
7258
+ "--instabox-allow-paid": true
7240
7259
  };
7241
7260
  function isValuelessFlag(arg) {
7242
7261
  return Object.prototype.hasOwnProperty.call(VALUELESS_FLAGS, arg);
@@ -7412,6 +7431,27 @@ function parseAgentRunArgs(args, options = {}) {
7412
7431
  const allowedToolNames = readRepeatedFlagValues(args, "--allowed-tool").map((value) => value.trim()).filter(Boolean);
7413
7432
  const cwd = readFlagValue(args, "--cwd");
7414
7433
  const timeoutMs = parsePositiveInteger(readFlagValue(args, "--timeout-ms"));
7434
+ const reasoningEffortHits = [];
7435
+ for (let index = 0; index < args.length; index += 1) {
7436
+ const arg = args[index];
7437
+ if (isValuelessFlag(arg)) continue;
7438
+ if (arg === "--reasoning-effort") {
7439
+ reasoningEffortHits.push({ index, value: args[index + 1] });
7440
+ index += 1;
7441
+ continue;
7442
+ }
7443
+ if (arg.startsWith("--")) index += 1;
7444
+ }
7445
+ if (reasoningEffortHits.length > 1) {
7446
+ 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");
7447
+ }
7448
+ const rawReasoningEffort = reasoningEffortHits[0]?.value?.trim().toLowerCase();
7449
+ if (reasoningEffortHits.length === 1 && !REASONING_EFFORT_OPTIONS.includes(rawReasoningEffort ?? "")) {
7450
+ throw new Error(
7451
+ `--reasoning-effort \u5FC5\u987B\u662F ${REASONING_EFFORT_OPTIONS.join("|")} \u4E4B\u4E00`
7452
+ );
7453
+ }
7454
+ const reasoningEffort = rawReasoningEffort ? rawReasoningEffort : void 0;
7415
7455
  const rawEventsMode = readFlagValue(args, "--events");
7416
7456
  const eventsMode = rawEventsMode === "jsonl" ? "jsonl" : void 0;
7417
7457
  const inheritedRef = inheritedFromDialog ? parseDialogReference(inheritedFromDialog) : void 0;
@@ -7479,6 +7519,7 @@ function parseAgentRunArgs(args, options = {}) {
7479
7519
  ...blockedToolNames.length ? { blockedToolNames } : {},
7480
7520
  ...dodCommands.length ? { dodCommands } : {},
7481
7521
  ...typeof timeoutMs === "number" ? { timeoutMs } : {},
7522
+ ...reasoningEffort ? { reasoningEffort } : {},
7482
7523
  ...queueFile ? { queueFile } : {}
7483
7524
  };
7484
7525
  }
@@ -9611,6 +9652,8 @@ async function assertAutoInstaboxPlacementAvailable(readEvidence, options) {
9611
9652
  }
9612
9653
 
9613
9654
  // packages/cli/client/cliAgentRunToolExecutors.ts
9655
+ var normalizeNonEmptyString = (value) => typeof value === "string" && value.trim() ? value.trim() : "";
9656
+ var resolveHostCallerAgentKey = (deps) => normalizeNonEmptyString(deps.currentAgentKey) || normalizeNonEmptyString(deps.source?.agentKey);
9614
9657
  var noopOutput = { write: () => {
9615
9658
  } };
9616
9659
  var parseCallArgs = (call) => {
@@ -9697,6 +9740,11 @@ function buildRunStatusPayload(reconciled, deps, opts = {}) {
9697
9740
  // 结构化失败分类 + 可重试性:编排者据此决策,不再肉读 logTail。
9698
9741
  ...reconciled.failureClass ? { failureClass: reconciled.failureClass } : {},
9699
9742
  ...typeof reconciled.retryable === "boolean" ? { retryable: reconciled.retryable } : {},
9743
+ // 只读观测:本 run 实际跑的模型 / 熔断升级标记 / 正文里明确的 review 结论。
9744
+ // 三者缺省即「未观察到」,不回填猜测值。
9745
+ ...reconciled.model ? { model: reconciled.model } : {},
9746
+ ...reconciled.escalated === true ? { escalated: true } : {},
9747
+ ...reconciled.reviewVerdict ? { reviewVerdict: reconciled.reviewVerdict } : {},
9700
9748
  // 日志落盘路径始终暴露:stalled/failed 且 dialogId 缺失(如 ephemeral)
9701
9749
  // 时 logTail 只能靠它读,不能只留在进程内存。
9702
9750
  ...reconciled.logPath ? { logPath: reconciled.logPath } : {},
@@ -9847,6 +9895,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
9847
9895
  } : {};
9848
9896
  const rawAgentKey = typeof args.agentKey === "string" ? args.agentKey.trim() : "";
9849
9897
  const agentKey = !rawAgentKey || rawAgentKey.toLowerCase() === "self" ? deps.currentAgentKey ?? rawAgentKey : rawAgentKey;
9898
+ const callerAgentKey = resolveHostCallerAgentKey(deps);
9850
9899
  const contextFacts = resolveRunContextFacts(continuedRecord ? typeof continuedRecord === "object" ? continuedRecord : {} : void 0, agentKey);
9851
9900
  const bindingMachineId = agentKey && deps.resolveAgentRuntimeBindingMachineId ? await deps.resolveAgentRuntimeBindingMachineId(agentKey) : void 0;
9852
9901
  const localMachineId = deps.resolveLocalMachineId ? await deps.resolveLocalMachineId() : void 0;
@@ -9945,6 +9994,12 @@ function createCliStartAgentRunExecutor(deps = {}) {
9945
9994
  if (args.instaboxAllowRemoteRelease === true) instaboxArgs.push("--instabox-allow-remote-release");
9946
9995
  if (args.instaboxAllowPaid === true) instaboxArgs.push("--instabox-allow-paid");
9947
9996
  }
9997
+ const dispatchReasoningEffort = await resolveRunDispatchReasoningEffort({
9998
+ deps,
9999
+ agentKey,
10000
+ difficulty: args.difficulty,
10001
+ model: selectedModel
10002
+ });
9948
10003
  const rawArgs = [
9949
10004
  "--agent",
9950
10005
  agentKey,
@@ -9961,7 +10016,8 @@ function createCliStartAgentRunExecutor(deps = {}) {
9961
10016
  // 的地方,成对不变式在 buildCliLocalRuntimeForwardArgs 内机械断言。
9962
10017
  ...buildCliLocalRuntimeForwardArgs(dispatch),
9963
10018
  ...instaboxArgs,
9964
- ...imagePaths.flatMap((path) => ["--image", path])
10019
+ ...imagePaths.flatMap((path) => ["--image", path]),
10020
+ ...dispatchReasoningEffort ? ["--reasoning-effort", dispatchReasoningEffort] : []
9965
10021
  ];
9966
10022
  const agentName = await resolveAgentRunName(
9967
10023
  agentKey,
@@ -10007,6 +10063,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
10007
10063
  cliEntrypointPath: deps.cliEntrypoint,
10008
10064
  agentKey,
10009
10065
  ...agentName ? { agentName } : {},
10066
+ ...callerAgentKey ? { callerAgentKey } : {},
10010
10067
  ...runTitle ? { title: runTitle } : {},
10011
10068
  ...batchId ? { batchId } : {},
10012
10069
  ...credentialGroup ? { credentialGroup } : {},
@@ -10099,6 +10156,28 @@ function createCliStartAgentRunExecutor(deps = {}) {
10099
10156
  };
10100
10157
  };
10101
10158
  }
10159
+ async function resolveRunDispatchReasoningEffort(args) {
10160
+ try {
10161
+ const profile = await args.deps.resolveAgentReasoningProfile?.(args.agentKey);
10162
+ if (!profile) return void 0;
10163
+ let model = args.model;
10164
+ if (!model) {
10165
+ try {
10166
+ model = await args.deps.resolveAgentModel?.(args.agentKey);
10167
+ } catch {
10168
+ model = void 0;
10169
+ }
10170
+ }
10171
+ return resolveDispatchReasoningEffort({
10172
+ difficulty: typeof args.difficulty === "string" ? args.difficulty : void 0,
10173
+ provider: profile.provider,
10174
+ model,
10175
+ agentReasoningEffort: profile.reasoningEffort
10176
+ });
10177
+ } catch {
10178
+ return void 0;
10179
+ }
10180
+ }
10102
10181
  function controlMessageLabels(queuedCount) {
10103
10182
  const labels = agentRunCardLabels().controlMessage;
10104
10183
  return { ...labels, queued: queuedCount === void 0 ? labels.queued : labels.enqueued(queuedCount) };
@@ -10110,6 +10189,12 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10110
10189
  const continuation = resolveLocalContinuation(reconciled, deps);
10111
10190
  const agentKey = reconciled.agentKey;
10112
10191
  const agentName = reconciled.agentName;
10192
+ const callerAgentKey = resolveHostCallerAgentKey(deps);
10193
+ const continuationReasoningEffort = await resolveRunDispatchReasoningEffort({
10194
+ deps,
10195
+ agentKey,
10196
+ difficulty: reconciled.selectionCheck?.difficulty
10197
+ });
10113
10198
  const rawArgs = [
10114
10199
  "--agent",
10115
10200
  agentKey,
@@ -10121,6 +10206,7 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10121
10206
  "PLACEHOLDER",
10122
10207
  "--bg",
10123
10208
  ...reconciled.ephemeral ? ["--ephemeral"] : [],
10209
+ ...continuationReasoningEffort ? ["--reasoning-effort", continuationReasoningEffort] : [],
10124
10210
  ...continuation.rawArgs
10125
10211
  ];
10126
10212
  const continuedFrom = reconciled.runId;
@@ -10132,11 +10218,15 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10132
10218
  cliEntrypointPath: deps.cliEntrypoint,
10133
10219
  agentKey,
10134
10220
  ...agentName ? { agentName } : {},
10221
+ ...callerAgentKey ? { callerAgentKey } : {},
10135
10222
  ...continuedTitle ? { title: continuedTitle } : {},
10136
10223
  ...reconciled.batchId ? { batchId: reconciled.batchId } : {},
10137
10224
  // 续跑也要在 running 阶段就带上目标对话,否则"开着那条对话的 TUI"看不到它。
10138
10225
  ...reconciled.dialogId ? { dialogId: reconciled.dialogId } : {},
10139
10226
  ...reconciled.parentDialogId ? { parentDialogId: reconciled.parentDialogId } : {},
10227
+ // 续跑继承原 run 的难度判定:不传的话第 2 次、第 N 次终态续跑都会丢掉
10228
+ // 原任务的 difficulty,自动联动推理档随之掉回 normal 档。
10229
+ ...reconciled.selectionCheck ? { selectionCheck: reconciled.selectionCheck } : {},
10140
10230
  // 续跑继承原 run 的凭证组(同一 agent),供并发扇出守卫判定。
10141
10231
  ...reconciled.credentialGroup ? { credentialGroup: reconciled.credentialGroup } : {},
10142
10232
  cwd: continuation.cwd,
@@ -10723,7 +10813,8 @@ function pickAgentRunResolverDeps(args) {
10723
10813
  ...args.resolveAgentModel ? { resolveAgentModel: args.resolveAgentModel } : {},
10724
10814
  ...args.resolveAgentDisplayName ? { resolveAgentDisplayName: args.resolveAgentDisplayName } : {},
10725
10815
  ...args.resolveAgentRuntimeBindingMachineId ? { resolveAgentRuntimeBindingMachineId: args.resolveAgentRuntimeBindingMachineId } : {},
10726
- ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {}
10816
+ ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {},
10817
+ ...args.resolveAgentReasoningProfile ? { resolveAgentReasoningProfile: args.resolveAgentReasoningProfile } : {}
10727
10818
  };
10728
10819
  }
10729
10820
  function buildCliWorkspaceToolExecutors(args) {
@@ -10926,6 +11017,11 @@ function buildLocalToolExecutors(args) {
10926
11017
  }),
10927
11018
  controlAgentRun: createCliControlAgentRunExecutor({
10928
11019
  source: { parentDialogId: args.sourceParentDialogId, agentKey: args.agentKey },
11020
+ // 终态续跑(append)要按原 run 的 difficulty 重新算档,因此与 startAgentRun
11021
+ // 共用同一套可信解析器:漏转发会让续跑静默掉回记录默认档。
11022
+ ...pickAgentRunResolverDeps(args),
11023
+ // 派发者身份同样只由宿主注入(controlAgentRun 触发的续跑也要落 callerAgentKey)。
11024
+ currentAgentKey: args.agentKey,
10929
11025
  shellApprovalHostForAgent: args.shellApprovalHostForAgent,
10930
11026
  mcpApprovalHostForAgent: args.mcpApprovalHostForAgent,
10931
11027
  cwd: args.workspaceRoot,
@@ -12535,7 +12631,7 @@ async function createLocalDockerWorkload(args) {
12535
12631
  }
12536
12632
  const createLifecycle = args.createLifecycle ?? (async () => {
12537
12633
  const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
12538
- import("./workloadLifecycle-ZCSQCHG3.js"),
12634
+ import("./workloadLifecycle-DYX5ZMAT.js"),
12539
12635
  import("./accountResolver-NGICIMEE.js")
12540
12636
  ]);
12541
12637
  const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
@@ -15248,6 +15344,24 @@ function createCliLocalRuntimeAdapter(deps) {
15248
15344
  return void 0;
15249
15345
  }
15250
15346
  };
15347
+ const resolveAgentReasoningProfile = async (agentRef) => {
15348
+ try {
15349
+ const record = await readAgentFromStore({
15350
+ agentRef,
15351
+ store: await getOrCreateSharedStore(deps),
15352
+ userId
15353
+ });
15354
+ if (!record) return void 0;
15355
+ const provider = typeof record.provider === "string" ? record.provider.trim() : "";
15356
+ const reasoningEffort = typeof record.reasoning_effort === "string" ? record.reasoning_effort.trim() : "";
15357
+ return {
15358
+ ...provider ? { provider } : {},
15359
+ ...reasoningEffort ? { reasoningEffort } : {}
15360
+ };
15361
+ } catch {
15362
+ return void 0;
15363
+ }
15364
+ };
15251
15365
  const resolveAgentDisplayName = async (agentRef) => {
15252
15366
  try {
15253
15367
  const record = await readAgentFromStore({
@@ -15383,7 +15497,7 @@ function createCliLocalRuntimeAdapter(deps) {
15383
15497
  emitRunIsolationNotice(fact, { runId });
15384
15498
  try {
15385
15499
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync5 } = await import("node:fs");
15386
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QMWTWV7C.js");
15500
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
15387
15501
  recordLocalRunExecutionIsolation({
15388
15502
  runId,
15389
15503
  runsDir: resolveRunsDir2(deps.env),
@@ -15408,7 +15522,7 @@ function createCliLocalRuntimeAdapter(deps) {
15408
15522
  dockerWorkloadReleased = true;
15409
15523
  dockerWorkloadLoad = null;
15410
15524
  if (loaded) {
15411
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QMWTWV7C.js");
15525
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
15412
15526
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
15413
15527
  const warn = (message) => process.stderr.write(`[nolo] ${message}
15414
15528
  `);
@@ -15531,6 +15645,7 @@ function createCliLocalRuntimeAdapter(deps) {
15531
15645
  return !!record && resolveAgentImageInputSupport(await resolveLiveImageSupport({ ...record, hasVision: record.hasVision ?? false }));
15532
15646
  },
15533
15647
  resolveAgentModel,
15648
+ resolveAgentReasoningProfile,
15534
15649
  dialogExistsForCurrentUser: async (dialogId) => {
15535
15650
  const store = await getOrCreateSharedStore(deps);
15536
15651
  const record = await store.read(`dialog-${userId}-${dialogId}`);