nolo-cli 0.251.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 (165) hide show
  1. package/{_executeModel-55PHWQWB.js → _executeModel-D6G3B45S.js} +44 -44
  2. package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
  3. package/{addContentAction-LBVAQUF7.js → addContentAction-MB22YIDV.js} +6 -6
  4. package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
  5. package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-YCWDGJSF.js} +66 -65
  6. package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-DTWD5FWC.js} +66 -65
  7. package/{agentListCommands-L3TLPLNH.js → agentListCommands-JTOONLYL.js} +224 -37
  8. package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-25X7OTLQ.js} +29 -27
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-SXE3WV2X.js} +65 -64
  11. package/{agentRunCommand-POL6B6BO.js → agentRunCommand-QSIED54S.js} +65 -64
  12. package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
  13. package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-HVJJMB4W.js} +24 -23
  14. package/{agentSlice-3G2YLTA4.js → agentSlice-NBUJJVRI.js} +6 -6
  15. package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-YU6TT6VN.js} +31 -29
  16. package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-4DEIX7YP.js} +31 -29
  17. package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-3VKS6GBQ.js} +31 -29
  18. package/{appGetCommands-GOOKYMKO.js → appGetCommands-22FNNROT.js} +31 -29
  19. package/{appListCommands-OBCGUG3S.js → appListCommands-FVGMLHVU.js} +31 -29
  20. package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
  21. package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
  22. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  23. package/chunk-2GAUJDA5.js +594 -0
  24. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  25. package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
  26. package/{chunk-PKMDYRAM.js → chunk-2PB653F5.js} +171 -237
  27. package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
  28. package/{chunk-3ZWJVKFB.js → chunk-3N3JPQBQ.js} +82 -38
  29. package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
  30. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  31. package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
  32. package/{chunk-6UNJ6JGR.js → chunk-5IN2NBDX.js} +4 -4
  33. package/{chunk-OQCAHPDQ.js → chunk-5QEOTC35.js} +4 -4
  34. package/{chunk-R7D5SRAZ.js → chunk-5UYDG6HP.js} +17 -0
  35. package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
  36. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  37. package/{chunk-UCMUXZJV.js → chunk-7XO73H5X.js} +111 -1
  38. package/{chunk-N3SEV3CG.js → chunk-7ZOVFB2H.js} +79 -30
  39. package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
  40. package/{chunk-FAFDIQJG.js → chunk-A6VIMCWI.js} +3 -3
  41. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  42. package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
  43. package/{chunk-IFJ6OTI6.js → chunk-CO2NXG2J.js} +32 -10
  44. package/{chunk-D3E5MYXO.js → chunk-CYGFNMCH.js} +1 -1
  45. package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
  46. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  47. package/{chunk-PLS2MJVW.js → chunk-DU3DJYVA.js} +4 -4
  48. package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
  49. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  50. package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
  51. package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
  52. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  53. package/{chunk-D35TOEMM.js → chunk-FZI2P64R.js} +137 -53
  54. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  55. package/{chunk-CUYFRVJF.js → chunk-GO7UC5VH.js} +5 -5
  56. package/{chunk-KZVRPCOR.js → chunk-GVH2IP2M.js} +4 -4
  57. package/{chunk-KGOBJAWC.js → chunk-GWS2X7TX.js} +206 -93
  58. package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
  59. package/{chunk-Q5KZ6F55.js → chunk-HMREADP6.js} +19 -17
  60. package/{chunk-X337N4D6.js → chunk-ITCOQAHS.js} +3 -3
  61. package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
  62. package/chunk-IVK2KT3H.js +209 -0
  63. package/{chunk-IXAGRTAR.js → chunk-JAYPSNGR.js} +1 -1
  64. package/{chunk-LOXR4TQN.js → chunk-JF5QT3YY.js} +2 -2
  65. package/{chunk-QLGL43SI.js → chunk-JKALGWDL.js} +2 -2
  66. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  67. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  68. package/{chunk-3KWJPTVP.js → chunk-LAQC5FAP.js} +4 -4
  69. package/{chunk-NTNX77FI.js → chunk-LNIA5JVX.js} +6 -6
  70. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  71. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  72. package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
  73. package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
  74. package/{chunk-HD5EKSLF.js → chunk-NPUHKEOB.js} +2 -2
  75. package/{chunk-OARYOLF3.js → chunk-O6LPLIRS.js} +11 -11
  76. package/{chunk-HQLCYPL4.js → chunk-OB4FBZXJ.js} +4 -4
  77. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  78. package/{chunk-IZWGO2ZS.js → chunk-OMIXG25B.js} +1 -1
  79. package/{chunk-CJ2BP6V7.js → chunk-OOV5JN25.js} +2 -2
  80. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  81. package/{chunk-K5CIMK3R.js → chunk-P6HMEKLL.js} +114 -56
  82. package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
  83. package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
  84. package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
  85. package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
  86. package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
  87. package/{chunk-KRAPKTAS.js → chunk-SMZFWEMX.js} +1 -1
  88. package/{chunk-43VT5PLM.js → chunk-T4VVQHSE.js} +1 -1
  89. package/{chunk-W2N4OAKM.js → chunk-TDI7ARZO.js} +3 -3
  90. package/{chunk-TGKAUEV3.js → chunk-TDLZA6LJ.js} +13 -10
  91. package/{chunk-LMMRWGGJ.js → chunk-TTUIM3PJ.js} +2 -2
  92. package/{chunk-5IKKSJYX.js → chunk-TTWNTFTO.js} +35 -2
  93. package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
  94. package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
  95. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  96. package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
  97. package/{chunk-ZKKJZBNO.js → chunk-WAOHK3NJ.js} +9 -9
  98. package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
  99. package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
  100. package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
  101. package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
  102. package/{chunk-QJ5YDTEF.js → chunk-YQYYYATY.js} +42 -24
  103. package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
  104. package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
  105. package/{chunk-A55E2OCP.js → chunk-ZNOXY73P.js} +632 -124
  106. package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
  107. package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-DWU3LBO2.js} +28 -27
  108. package/{commandRegistry-OM5DU4DS.js → commandRegistry-7FVATZS2.js} +70 -70
  109. package/{contentThunks-7URM43ET.js → contentThunks-25XCB7VY.js} +18 -18
  110. package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
  111. package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-FC5RI2LW.js} +18 -18
  112. package/{createDialogAction-IXXEMFRQ.js → createDialogAction-IL3ISSQQ.js} +19 -19
  113. package/{createPageAction-IXIVLIOO.js → createPageAction-RVYBEYZV.js} +19 -19
  114. package/{db-J5KE7XRI.js → db-JMGVD4TB.js} +2 -1
  115. package/{dbSlice-IE4ADINL.js → dbSlice-WG3ZG6PZ.js} +5 -5
  116. package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
  117. package/{dialogCommands-RPBHOZB6.js → dialogCommands-VUJISJZF.js} +33 -31
  118. package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
  119. package/{dialogSlice-5FQB2TNN.js → dialogSlice-UMP55UAW.js} +16 -16
  120. package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-S46F6GKP.js} +30 -28
  121. package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LJG4NK6J.js} +31 -29
  122. package/{docReadCommands-LRRVDS46.js → docReadCommands-YPAYGHNM.js} +30 -28
  123. package/{docStore-SUAVM24F.js → docStore-VK3MVJ5Q.js} +6 -6
  124. package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-MPTM6267.js} +30 -28
  125. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  126. package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-VPKVNKBU.js} +33 -33
  127. package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-K56HWPNY.js} +65 -64
  128. package/index.js +8 -8
  129. package/{localDialogRead-USDZXKIL.js → localDialogRead-NXILOV3T.js} +1 -1
  130. package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-KVU72FWT.js} +64 -63
  131. package/{machineCommands-I3YA7TNC.js → machineCommands-C3O5RKNJ.js} +65 -64
  132. package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-ZLART7ZA.js} +65 -64
  133. package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
  134. package/{memberThunks-T7EAZE6A.js → memberThunks-7DNR6DRD.js} +7 -7
  135. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  136. package/package.json +1 -1
  137. package/{projectArchive-A7E65AZO.js → projectArchive-UBJFYRL7.js} +19 -19
  138. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  139. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  140. package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
  141. package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
  142. package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-TSIYF7C6.js} +610 -206
  143. package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
  144. package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-YAHGOWXN.js} +41 -41
  145. package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
  146. package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
  147. package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
  148. package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
  149. package/{settingThunks-X4PT66J2.js → settingThunks-YQNG5L6K.js} +5 -5
  150. package/{spaceCommands-EVSNTGRS.js → spaceCommands-P644AAZZ.js} +29 -27
  151. package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-5CSYAUAY.js} +54 -50
  152. package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
  153. package/{tools-2AO2SK4L.js → tools-UZ3CDIR2.js} +34 -34
  154. package/{tuiRestart-HBQDF4AE.js → tuiRestart-GF4DGAAN.js} +7 -7
  155. package/{tuiSummaryLlmCaller-Q2PNR63K.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
  156. package/{updateCommands-6SI7NWVC.js → updateCommands-BZ4YDHNM.js} +3 -3
  157. package/{updateDialogTitleAction-MWVMBIPZ.js → updateDialogTitleAction-53XCCDK2.js} +18 -18
  158. package/{usageCommand-D44AOTMH.js → usageCommand-XVJ7ZUTM.js} +1 -1
  159. package/{usageRebuildCommand-IRIMKDI5.js → usageRebuildCommand-NK6S3D4J.js} +2 -2
  160. package/{windowsSelfUpdate-BJIJKKIS.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
  161. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
  162. package/chunk-FGHEF6WI.js +0 -34
  163. package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
  164. package/{chunk-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
  165. package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
@@ -22,17 +22,17 @@ import {
22
22
  resolveClaudeCodeVersion,
23
23
  resolveServerSyncConfig,
24
24
  xaiRefresh
25
- } from "./chunk-XC5RPSXK.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
31
  import {
32
32
  DialogNotifyError,
33
33
  deliverDialogNotification,
34
34
  sha256Hex
35
- } from "./chunk-D3E5MYXO.js";
35
+ } from "./chunk-CYGFNMCH.js";
36
36
  import {
37
37
  SANDBOX_HELPER_PATH,
38
38
  SANDBOX_OUTPUT_LIMITS,
@@ -41,7 +41,7 @@ import {
41
41
  buildWorkspaceHelperSource,
42
42
  dockerExecutionToolNames,
43
43
  parseToolOutput
44
- } from "./chunk-VTHWBTRE.js";
44
+ } from "./chunk-PENRYZ4D.js";
45
45
  import {
46
46
  createChromeConnectorClientResolver,
47
47
  createVerifiedChromeConnectorClient,
@@ -60,7 +60,7 @@ import {
60
60
  } from "./chunk-VIWDGTDA.js";
61
61
  import {
62
62
  createTuiSummaryLlmCaller
63
- } from "./chunk-HQLCYPL4.js";
63
+ } from "./chunk-OB4FBZXJ.js";
64
64
  import {
65
65
  CliProviderQuotaError,
66
66
  executeCli,
@@ -71,14 +71,14 @@ import {
71
71
  } from "./chunk-ATNTHIZI.js";
72
72
  import {
73
73
  resolveUserSkillRuntime
74
- } from "./chunk-UR4ZMRV3.js";
74
+ } from "./chunk-A5F6DYP2.js";
75
75
  import {
76
76
  inlineImageUrlsForCustomProvider,
77
77
  prepareTools
78
- } from "./chunk-D35TOEMM.js";
78
+ } from "./chunk-FZI2P64R.js";
79
79
  import {
80
80
  getServerProviderSecret
81
- } from "./chunk-HS7MLR74.js";
81
+ } from "./chunk-KZ4A7EIV.js";
82
82
  import {
83
83
  CONTROL_AGENT_RUN_ACTIONS,
84
84
  buildCliLocalRuntimeForwardArgs,
@@ -98,22 +98,22 @@ import {
98
98
  resolveCliLocalSpawnDispatch,
99
99
  resolveRunContextFacts,
100
100
  resolveStartAgentRunCwd
101
- } from "./chunk-3ZWJVKFB.js";
101
+ } from "./chunk-3N3JPQBQ.js";
102
102
  import {
103
103
  deriveCredentialGroup,
104
104
  deriveCustomProviderCredentialGroup
105
- } from "./chunk-KHVTT4WW.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-X337N4D6.js";
112
+ } from "./chunk-ITCOQAHS.js";
113
113
  import {
114
114
  prepareTokenUsageData,
115
115
  runKeyed
116
- } from "./chunk-A55E2OCP.js";
116
+ } from "./chunk-ZNOXY73P.js";
117
117
  import {
118
118
  applyTokenUsageToDayStats,
119
119
  require_format
@@ -124,19 +124,22 @@ import {
124
124
  } from "./chunk-523DITKR.js";
125
125
  import {
126
126
  fetchServerSyncedCredential
127
- } from "./chunk-QJ5YDTEF.js";
127
+ } from "./chunk-YQYYYATY.js";
128
128
  import {
129
129
  getDefaultCliLocalRuntimeDb
130
130
  } from "./chunk-7RYODZDD.js";
131
131
  import {
132
132
  defaultLoopbackRequest,
133
133
  loadLocalRunChildDialogIds
134
- } from "./chunk-ZSRR6HCH.js";
134
+ } from "./chunk-N2ZAY2DK.js";
135
135
  import {
136
136
  CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
137
137
  OAUTH_PROVIDER_REFS,
138
138
  getSharedSessionCredentialBroker
139
- } from "./chunk-KJDN2YRH.js";
139
+ } from "./chunk-QMKWSKWA.js";
140
+ import {
141
+ resolveDispatchReasoningEffort
142
+ } from "./chunk-2GAUJDA5.js";
140
143
  import {
141
144
  fetchWithTransientRetry,
142
145
  isTransientFetchError
@@ -166,7 +169,7 @@ import {
166
169
  terminateRunProcess,
167
170
  transitionRunToTerminal,
168
171
  withQueueLock
169
- } from "./chunk-UCMUXZJV.js";
172
+ } from "./chunk-7XO73H5X.js";
170
173
  import {
171
174
  TASK_PREVIEW_MAX,
172
175
  formatControlRunMessageCard,
@@ -189,10 +192,10 @@ import {
189
192
  readDialogMessageRecords,
190
193
  readDialogMessages,
191
194
  resolveBuiltinLocalCliAgentConfig
192
- } from "./chunk-3KWJPTVP.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-PKMDYRAM.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-CJ2BP6V7.js";
270
+ } from "./chunk-OOV5JN25.js";
267
271
  import {
268
272
  readLocalImage
269
273
  } from "./chunk-AL3TYDIF.js";
@@ -278,40 +282,40 @@ import {
278
282
  readPlatformChatSseCompletion,
279
283
  resolvePlatformChatProviderConfig,
280
284
  shouldUsePlatformChatProvider
281
- } from "./chunk-WZPG63Q4.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-LMMRWGGJ.js";
292
+ } from "./chunk-TTUIM3PJ.js";
289
293
  import {
290
294
  resolveAgentImageInputSupport,
291
295
  resolveCatalogImageSupport,
292
296
  resolveToolImagePolicy,
293
297
  withLiveImageSupport
294
- } from "./chunk-SX6AWTNK.js";
298
+ } from "./chunk-BZLGPM5B.js";
295
299
  import {
296
300
  assertDispatchSelectionAdmission,
297
301
  buildNoloWorkspaceOpenAiTools,
298
302
  filterClientNoloWorkspaceToolNames,
299
303
  parseNoloWorkspaceToolArguments
300
- } from "./chunk-CFDOIIOZ.js";
304
+ } from "./chunk-ZMXO5G3E.js";
301
305
  import {
302
306
  extractQuotaSnapshot,
303
307
  isCapacitySaturatedRateLimit,
304
308
  mergeAvailabilityDeadline,
305
309
  resolveAvailabilityAction,
306
310
  resolveCredentialKeyWithFallback
307
- } from "./chunk-QJTZ76CP.js";
311
+ } from "./chunk-LS5KAVFQ.js";
308
312
  import {
309
313
  collectStablePromptPrefix,
310
314
  convertMessagesToResponsesInput,
311
315
  findAgentStatePairingIssues,
312
316
  stablePromptCacheKey,
313
317
  toResponsesTools
314
- } from "./chunk-W3HSD32M.js";
318
+ } from "./chunk-FXEPZKNJ.js";
315
319
  import {
316
320
  EMPTY_TOOL_RESULT_TEXT,
317
321
  MAX_TOOL_IMAGES_PER_REQUEST,
@@ -327,13 +331,13 @@ import {
327
331
  resolveAgentRequiredPackIds,
328
332
  resolveAgentSkillConfig,
329
333
  resolveHistoricalToolContentCap
330
- } from "./chunk-CDIRKCPD.js";
334
+ } from "./chunk-6HL6E7ZD.js";
331
335
  import {
332
336
  MCP_TOOL_NAMES
333
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,
@@ -432,7 +437,7 @@ import {
432
437
  localTurnHasSubjectRefs,
433
438
  resolveLocalUserId,
434
439
  withResolvedRuntimeToolSurface
435
- } from "./chunk-IZWGO2ZS.js";
440
+ } from "./chunk-OMIXG25B.js";
436
441
  import {
437
442
  LOCAL_CODEX_AGENT_KEY,
438
443
  isLocalCliAgentKey,
@@ -446,7 +451,7 @@ 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,
@@ -478,25 +483,26 @@ import {
478
483
  import {
479
484
  agentRunCardLabels,
480
485
  t
481
- } from "./chunk-R7D5SRAZ.js";
486
+ } from "./chunk-5UYDG6HP.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 };
@@ -2578,26 +2584,50 @@ function buildCodexCompatibilityHeaders(identity, accountId) {
2578
2584
  "x-codex-turn-metadata": identity.turnMetadataJson
2579
2585
  };
2580
2586
  }
2581
- 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) {
2582
2602
  const systemTexts = [];
2603
+ let messageTexts = 0;
2604
+ let prefixEnd;
2583
2605
  const prompt = agentPrompt?.trim();
2584
2606
  if (prompt) systemTexts.push(prompt);
2585
2607
  for (const raw of messages) {
2586
2608
  if (!raw || typeof raw !== "object") continue;
2587
2609
  const role = String(raw.role ?? "");
2588
2610
  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);
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
+ }
2598
2624
  }
2599
2625
  }
2600
- 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
+ };
2601
2631
  }
2602
2632
  function convertMessagesToCodexInput(messages, supportsToolImages = false) {
2603
2633
  const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
@@ -2626,8 +2656,16 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
2626
2656
  routeKind: "codex/responses",
2627
2657
  legacySupportsToolImages: false
2628
2658
  }));
2629
- const fallbackPrompt = hasAssembledAgentPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
2630
- 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
+ }
2631
2669
  const stableInstructions = collectStablePromptPrefix(rawMessages, fallbackPrompt);
2632
2670
  const tools = toResponsesTools(
2633
2671
  Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
@@ -3128,7 +3166,7 @@ function createCustomNativeProvider(args) {
3128
3166
  }
3129
3167
  }
3130
3168
  function buildGeminiCustomNativeProvider(p) {
3131
- 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;
3132
3170
  const budgetBody = buildGeminiGenerateContentRequest({
3133
3171
  messages: [],
3134
3172
  tools,
@@ -3144,18 +3182,9 @@ function buildGeminiCustomNativeProvider(p) {
3144
3182
  complete: async (messages, options) => {
3145
3183
  const inlineResult = await inlineImageUrlsForCustomProvider({ messages }, {
3146
3184
  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
- }
3185
+ serverUrl,
3186
+ request: fetchImpl,
3187
+ signal: options?.signal
3159
3188
  });
3160
3189
  const toolImagePolicy = {
3161
3190
  routeKind: "gemini-native",
@@ -3583,7 +3612,7 @@ var resolveDevinTransport = async (ctx) => {
3583
3612
 
3584
3613
  // packages/cli/client/providerResolution/directOpenAiCompatibleTransport.ts
3585
3614
  var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3586
- 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;
3587
3616
  const providerConfig = await resolveOpenAiCompatibleProviderConfig({
3588
3617
  agentConfig,
3589
3618
  env: deps.env,
@@ -3621,26 +3650,9 @@ var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
3621
3650
  { messages },
3622
3651
  {
3623
3652
  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
- }
3653
+ serverUrl,
3654
+ request: fetchImpl,
3655
+ signal: options?.signal
3644
3656
  }
3645
3657
  )).messages;
3646
3658
  logLocalRuntimeDiagnostic("provider.request.start", {
@@ -6744,7 +6756,7 @@ function buildServerPlatformToolExecutors(args) {
6744
6756
  }
6745
6757
  const ctx = await localMemoryContext();
6746
6758
  if (!ctx) throw new Error("local work memory unavailable");
6747
- const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-N6LTB7UY.js");
6759
+ const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-FKBPFPKR.js");
6748
6760
  const localUserId = resolveLocalUserId2(args.env);
6749
6761
  const { resolveWorkContextAccess } = await import("./workContextAccess-VU5I4LKZ.js");
6750
6762
  const { updateWorkContext, readWorkContexts } = await import("./workContext-Y3ADAPZU.js");
@@ -7228,9 +7240,13 @@ var VALUELESS_FLAGS = {
7228
7240
  "--local": true,
7229
7241
  "--server": true,
7230
7242
  "--auto": true,
7243
+ "--auto-route": true,
7244
+ "--allow-host-writes": true,
7231
7245
  "--dangerously-allow-shell": true,
7232
7246
  "--trace-tools": true,
7233
7247
  "--bg": true,
7248
+ "--fresh": true,
7249
+ "--fresh-dialog": true,
7234
7250
  "--strict-continue-history": true,
7235
7251
  "--no-stream": true,
7236
7252
  "--debug": true,
@@ -7238,7 +7254,8 @@ var VALUELESS_FLAGS = {
7238
7254
  "--memory-only": true,
7239
7255
  "--read-only": true,
7240
7256
  "--machine-shell": true,
7241
- "--instabox-allow-remote-release": true
7257
+ "--instabox-allow-remote-release": true,
7258
+ "--instabox-allow-paid": true
7242
7259
  };
7243
7260
  function isValuelessFlag(arg) {
7244
7261
  return Object.prototype.hasOwnProperty.call(VALUELESS_FLAGS, arg);
@@ -7414,6 +7431,27 @@ function parseAgentRunArgs(args, options = {}) {
7414
7431
  const allowedToolNames = readRepeatedFlagValues(args, "--allowed-tool").map((value) => value.trim()).filter(Boolean);
7415
7432
  const cwd = readFlagValue(args, "--cwd");
7416
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;
7417
7455
  const rawEventsMode = readFlagValue(args, "--events");
7418
7456
  const eventsMode = rawEventsMode === "jsonl" ? "jsonl" : void 0;
7419
7457
  const inheritedRef = inheritedFromDialog ? parseDialogReference(inheritedFromDialog) : void 0;
@@ -7481,6 +7519,7 @@ function parseAgentRunArgs(args, options = {}) {
7481
7519
  ...blockedToolNames.length ? { blockedToolNames } : {},
7482
7520
  ...dodCommands.length ? { dodCommands } : {},
7483
7521
  ...typeof timeoutMs === "number" ? { timeoutMs } : {},
7522
+ ...reasoningEffort ? { reasoningEffort } : {},
7484
7523
  ...queueFile ? { queueFile } : {}
7485
7524
  };
7486
7525
  }
@@ -9613,6 +9652,8 @@ async function assertAutoInstaboxPlacementAvailable(readEvidence, options) {
9613
9652
  }
9614
9653
 
9615
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);
9616
9657
  var noopOutput = { write: () => {
9617
9658
  } };
9618
9659
  var parseCallArgs = (call) => {
@@ -9699,6 +9740,11 @@ function buildRunStatusPayload(reconciled, deps, opts = {}) {
9699
9740
  // 结构化失败分类 + 可重试性:编排者据此决策,不再肉读 logTail。
9700
9741
  ...reconciled.failureClass ? { failureClass: reconciled.failureClass } : {},
9701
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 } : {},
9702
9748
  // 日志落盘路径始终暴露:stalled/failed 且 dialogId 缺失(如 ephemeral)
9703
9749
  // 时 logTail 只能靠它读,不能只留在进程内存。
9704
9750
  ...reconciled.logPath ? { logPath: reconciled.logPath } : {},
@@ -9849,6 +9895,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
9849
9895
  } : {};
9850
9896
  const rawAgentKey = typeof args.agentKey === "string" ? args.agentKey.trim() : "";
9851
9897
  const agentKey = !rawAgentKey || rawAgentKey.toLowerCase() === "self" ? deps.currentAgentKey ?? rawAgentKey : rawAgentKey;
9898
+ const callerAgentKey = resolveHostCallerAgentKey(deps);
9852
9899
  const contextFacts = resolveRunContextFacts(continuedRecord ? typeof continuedRecord === "object" ? continuedRecord : {} : void 0, agentKey);
9853
9900
  const bindingMachineId = agentKey && deps.resolveAgentRuntimeBindingMachineId ? await deps.resolveAgentRuntimeBindingMachineId(agentKey) : void 0;
9854
9901
  const localMachineId = deps.resolveLocalMachineId ? await deps.resolveLocalMachineId() : void 0;
@@ -9947,6 +9994,12 @@ function createCliStartAgentRunExecutor(deps = {}) {
9947
9994
  if (args.instaboxAllowRemoteRelease === true) instaboxArgs.push("--instabox-allow-remote-release");
9948
9995
  if (args.instaboxAllowPaid === true) instaboxArgs.push("--instabox-allow-paid");
9949
9996
  }
9997
+ const dispatchReasoningEffort = await resolveRunDispatchReasoningEffort({
9998
+ deps,
9999
+ agentKey,
10000
+ difficulty: args.difficulty,
10001
+ model: selectedModel
10002
+ });
9950
10003
  const rawArgs = [
9951
10004
  "--agent",
9952
10005
  agentKey,
@@ -9963,7 +10016,8 @@ function createCliStartAgentRunExecutor(deps = {}) {
9963
10016
  // 的地方,成对不变式在 buildCliLocalRuntimeForwardArgs 内机械断言。
9964
10017
  ...buildCliLocalRuntimeForwardArgs(dispatch),
9965
10018
  ...instaboxArgs,
9966
- ...imagePaths.flatMap((path) => ["--image", path])
10019
+ ...imagePaths.flatMap((path) => ["--image", path]),
10020
+ ...dispatchReasoningEffort ? ["--reasoning-effort", dispatchReasoningEffort] : []
9967
10021
  ];
9968
10022
  const agentName = await resolveAgentRunName(
9969
10023
  agentKey,
@@ -10009,6 +10063,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
10009
10063
  cliEntrypointPath: deps.cliEntrypoint,
10010
10064
  agentKey,
10011
10065
  ...agentName ? { agentName } : {},
10066
+ ...callerAgentKey ? { callerAgentKey } : {},
10012
10067
  ...runTitle ? { title: runTitle } : {},
10013
10068
  ...batchId ? { batchId } : {},
10014
10069
  ...credentialGroup ? { credentialGroup } : {},
@@ -10101,6 +10156,28 @@ function createCliStartAgentRunExecutor(deps = {}) {
10101
10156
  };
10102
10157
  };
10103
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
+ }
10104
10181
  function controlMessageLabels(queuedCount) {
10105
10182
  const labels = agentRunCardLabels().controlMessage;
10106
10183
  return { ...labels, queued: queuedCount === void 0 ? labels.queued : labels.enqueued(queuedCount) };
@@ -10112,6 +10189,12 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10112
10189
  const continuation = resolveLocalContinuation(reconciled, deps);
10113
10190
  const agentKey = reconciled.agentKey;
10114
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
+ });
10115
10198
  const rawArgs = [
10116
10199
  "--agent",
10117
10200
  agentKey,
@@ -10123,6 +10206,7 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10123
10206
  "PLACEHOLDER",
10124
10207
  "--bg",
10125
10208
  ...reconciled.ephemeral ? ["--ephemeral"] : [],
10209
+ ...continuationReasoningEffort ? ["--reasoning-effort", continuationReasoningEffort] : [],
10126
10210
  ...continuation.rawArgs
10127
10211
  ];
10128
10212
  const continuedFrom = reconciled.runId;
@@ -10134,11 +10218,15 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
10134
10218
  cliEntrypointPath: deps.cliEntrypoint,
10135
10219
  agentKey,
10136
10220
  ...agentName ? { agentName } : {},
10221
+ ...callerAgentKey ? { callerAgentKey } : {},
10137
10222
  ...continuedTitle ? { title: continuedTitle } : {},
10138
10223
  ...reconciled.batchId ? { batchId: reconciled.batchId } : {},
10139
10224
  // 续跑也要在 running 阶段就带上目标对话,否则"开着那条对话的 TUI"看不到它。
10140
10225
  ...reconciled.dialogId ? { dialogId: reconciled.dialogId } : {},
10141
10226
  ...reconciled.parentDialogId ? { parentDialogId: reconciled.parentDialogId } : {},
10227
+ // 续跑继承原 run 的难度判定:不传的话第 2 次、第 N 次终态续跑都会丢掉
10228
+ // 原任务的 difficulty,自动联动推理档随之掉回 normal 档。
10229
+ ...reconciled.selectionCheck ? { selectionCheck: reconciled.selectionCheck } : {},
10142
10230
  // 续跑继承原 run 的凭证组(同一 agent),供并发扇出守卫判定。
10143
10231
  ...reconciled.credentialGroup ? { credentialGroup: reconciled.credentialGroup } : {},
10144
10232
  cwd: continuation.cwd,
@@ -10725,7 +10813,8 @@ function pickAgentRunResolverDeps(args) {
10725
10813
  ...args.resolveAgentModel ? { resolveAgentModel: args.resolveAgentModel } : {},
10726
10814
  ...args.resolveAgentDisplayName ? { resolveAgentDisplayName: args.resolveAgentDisplayName } : {},
10727
10815
  ...args.resolveAgentRuntimeBindingMachineId ? { resolveAgentRuntimeBindingMachineId: args.resolveAgentRuntimeBindingMachineId } : {},
10728
- ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {}
10816
+ ...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {},
10817
+ ...args.resolveAgentReasoningProfile ? { resolveAgentReasoningProfile: args.resolveAgentReasoningProfile } : {}
10729
10818
  };
10730
10819
  }
10731
10820
  function buildCliWorkspaceToolExecutors(args) {
@@ -10928,6 +11017,11 @@ function buildLocalToolExecutors(args) {
10928
11017
  }),
10929
11018
  controlAgentRun: createCliControlAgentRunExecutor({
10930
11019
  source: { parentDialogId: args.sourceParentDialogId, agentKey: args.agentKey },
11020
+ // 终态续跑(append)要按原 run 的 difficulty 重新算档,因此与 startAgentRun
11021
+ // 共用同一套可信解析器:漏转发会让续跑静默掉回记录默认档。
11022
+ ...pickAgentRunResolverDeps(args),
11023
+ // 派发者身份同样只由宿主注入(controlAgentRun 触发的续跑也要落 callerAgentKey)。
11024
+ currentAgentKey: args.agentKey,
10931
11025
  shellApprovalHostForAgent: args.shellApprovalHostForAgent,
10932
11026
  mcpApprovalHostForAgent: args.mcpApprovalHostForAgent,
10933
11027
  cwd: args.workspaceRoot,
@@ -12537,7 +12631,7 @@ async function createLocalDockerWorkload(args) {
12537
12631
  }
12538
12632
  const createLifecycle = args.createLifecycle ?? (async () => {
12539
12633
  const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
12540
- import("./workloadLifecycle-ZCSQCHG3.js"),
12634
+ import("./workloadLifecycle-DYX5ZMAT.js"),
12541
12635
  import("./accountResolver-NGICIMEE.js")
12542
12636
  ]);
12543
12637
  const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
@@ -15250,6 +15344,24 @@ function createCliLocalRuntimeAdapter(deps) {
15250
15344
  return void 0;
15251
15345
  }
15252
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
+ };
15253
15365
  const resolveAgentDisplayName = async (agentRef) => {
15254
15366
  try {
15255
15367
  const record = await readAgentFromStore({
@@ -15385,7 +15497,7 @@ function createCliLocalRuntimeAdapter(deps) {
15385
15497
  emitRunIsolationNotice(fact, { runId });
15386
15498
  try {
15387
15499
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync5 } = await import("node:fs");
15388
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-FKSXBUAF.js");
15500
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
15389
15501
  recordLocalRunExecutionIsolation({
15390
15502
  runId,
15391
15503
  runsDir: resolveRunsDir2(deps.env),
@@ -15410,7 +15522,7 @@ function createCliLocalRuntimeAdapter(deps) {
15410
15522
  dockerWorkloadReleased = true;
15411
15523
  dockerWorkloadLoad = null;
15412
15524
  if (loaded) {
15413
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-FKSXBUAF.js");
15525
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
15414
15526
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
15415
15527
  const warn = (message) => process.stderr.write(`[nolo] ${message}
15416
15528
  `);
@@ -15533,6 +15645,7 @@ function createCliLocalRuntimeAdapter(deps) {
15533
15645
  return !!record && resolveAgentImageInputSupport(await resolveLiveImageSupport({ ...record, hasVision: record.hasVision ?? false }));
15534
15646
  },
15535
15647
  resolveAgentModel,
15648
+ resolveAgentReasoningProfile,
15536
15649
  dialogExistsForCurrentUser: async (dialogId) => {
15537
15650
  const store = await getOrCreateSharedStore(deps);
15538
15651
  const record = await store.read(`dialog-${userId}-${dialogId}`);