nolo-cli 0.224.1 → 0.225.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/{_executeModel-5NA4USGG.js → _executeModel-UCWDB72C.js} +50 -50
  2. package/{action-X75O3XPH.js → action-24MZYW2B.js} +6 -6
  3. package/{addContentAction-GVC77QSN.js → addContentAction-HEMCSSHT.js} +9 -9
  4. package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-SQYDOXHA.js} +8 -8
  5. package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-P7O3ACNJ.js} +76 -77
  6. package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-A5BRSYWK.js} +80 -81
  7. package/{agentListCommands-HSGLDPDQ.js → agentListCommands-LDRCOOMO.js} +37 -36
  8. package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-AYL53KJV.js} +31 -30
  9. package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-N5EA3ED2.js} +2 -2
  10. package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
  11. package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-FICBZ57C.js} +75 -76
  12. package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-CTXQGDUM.js} +81 -80
  13. package/{agentRunControl-VBL7UFSG.js → agentRunControl-CO6BASZF.js} +7 -7
  14. package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5YN4D5WT.js} +26 -25
  15. package/{agentSlice-XJNKE3PG.js → agentSlice-DJ5D4DU4.js} +9 -9
  16. package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-B4E7N7M2.js} +32 -31
  17. package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-E4DTXRRM.js} +32 -31
  18. package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-FCNHYHZM.js} +32 -31
  19. package/{appGetCommands-N4NI5GGJ.js → appGetCommands-4DXSQHUZ.js} +32 -31
  20. package/{appListCommands-5C6ONN3Z.js → appListCommands-2NN5E4F6.js} +32 -31
  21. package/{authCommand-4CVBDADE.js → authCommand-47DR6GZT.js} +22 -18
  22. package/{authCommands-EHU2BHOX.js → authCommands-ZZ3L5IFM.js} +10 -6
  23. package/builtinSkillRegistry-AYWYQVA4.js +1 -1
  24. package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-VZWAY2KR.js} +1 -1
  25. package/{chunk-UFC4J7OY.js → chunk-24GVXSWK.js} +3 -3
  26. package/{chunk-4IQVE43Z.js → chunk-25OCZXSX.js} +15 -15
  27. package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
  28. package/{chunk-U3G7RRXJ.js → chunk-2XMKW2OY.js} +4 -4
  29. package/{chunk-MYOSN6BT.js → chunk-3NFWMSTA.js} +31 -10
  30. package/{chunk-A74QP4FI.js → chunk-3V6JT6WN.js} +343 -136
  31. package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
  32. package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
  33. package/chunk-53W5BXLN.js +340 -0
  34. package/{chunk-H7ZYKHAZ.js → chunk-5TJE4QCL.js} +102 -31
  35. package/{chunk-FZKA3XFA.js → chunk-6BGJHJRN.js} +9 -9
  36. package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
  37. package/{chunk-L32W3PRP.js → chunk-6X3CS6NJ.js} +161 -12
  38. package/{chunk-3FBAVU2Y.js → chunk-6XBOPKUH.js} +11 -76
  39. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  40. package/{chunk-7TTMMOKH.js → chunk-7OTNBI77.js} +1 -1
  41. package/{chunk-BGGV6B5O.js → chunk-7Q7MKJZN.js} +83 -50
  42. package/{chunk-2574ANSV.js → chunk-7U2TFUWW.js} +1 -1
  43. package/{chunk-A3LUWRQK.js → chunk-B72AFRR2.js} +4 -4
  44. package/{chunk-P3IZUMIC.js → chunk-BDERPCJW.js} +4 -4
  45. package/{chunk-MYPKBJJO.js → chunk-BIJTI5SX.js} +2 -2
  46. package/{chunk-ZEKUFJLW.js → chunk-BWW6WRX6.js} +3 -3
  47. package/chunk-C5A54QS7.js +108 -0
  48. package/{chunk-IUTUWIKE.js → chunk-C646JEUV.js} +1 -1
  49. package/{chunk-FFYE5ATM.js → chunk-CT6GT2BG.js} +7 -7
  50. package/{chunk-T6VROBY7.js → chunk-CZLSTOVM.js} +2 -2
  51. package/{chunk-SRCCSTIM.js → chunk-DGUUOHBF.js} +2 -2
  52. package/{chunk-A5EVA6HU.js → chunk-DIBQXNGW.js} +2 -2
  53. package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
  54. package/{chunk-IJTXNLQE.js → chunk-DLTMAXLF.js} +6 -6
  55. package/{chunk-5QZSEQSK.js → chunk-DWWUVRB5.js} +1 -1
  56. package/{chunk-TRHJ4NJB.js → chunk-EIFSCI4C.js} +381 -155
  57. package/{chunk-DXW5WDHZ.js → chunk-EW37CXCQ.js} +3 -3
  58. package/{chunk-GXXY2NL3.js → chunk-F3FQPVHE.js} +37 -2
  59. package/{chunk-7AJRJGSQ.js → chunk-FCAMGBLY.js} +378 -146
  60. package/{chunk-YGCOJNFZ.js → chunk-FPMPWNVQ.js} +3 -3
  61. package/{chunk-MECDGHLK.js → chunk-FSIEHQNH.js} +2 -2
  62. package/{chunk-B7DE5XJW.js → chunk-FXX6VFMV.js} +208 -25
  63. package/{chunk-Z2WZAE4P.js → chunk-G6OPRPXH.js} +11 -11
  64. package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
  65. package/{chunk-PGKA77TZ.js → chunk-GCVFX6ZL.js} +169 -106
  66. package/{chunk-E5KJOZWY.js → chunk-H6CHPU6M.js} +3 -3
  67. package/{chunk-RETQOQ4D.js → chunk-HNWZJI4N.js} +1 -1
  68. package/{chunk-BGGAY6OK.js → chunk-IPRPYKBP.js} +3 -3
  69. package/{chunk-G22P367E.js → chunk-IUXBKS5L.js} +57 -13
  70. package/{chunk-PRMEU7BT.js → chunk-KGIIZXPL.js} +4 -4
  71. package/chunk-KK3FCYZM.js +647 -0
  72. package/{chunk-4Q6HQORG.js → chunk-KOIDLCAQ.js} +1 -1
  73. package/{chunk-PROOOQZ3.js → chunk-LCQJH7KN.js} +1 -1
  74. package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
  75. package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
  76. package/{chunk-ANJRDS6U.js → chunk-LMZRXDWG.js} +3 -3
  77. package/{chunk-6CKUO32A.js → chunk-LN4ZVSO7.js} +6 -3
  78. package/{chunk-N2JROHD3.js → chunk-LT3DMEIB.js} +3 -3
  79. package/{chunk-F6YWDVIB.js → chunk-MDVP5TLI.js} +1 -1
  80. package/chunk-MVOZ22RZ.js +26 -0
  81. package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
  82. package/{chunk-3EMIEC27.js → chunk-NBB2EBQD.js} +1 -1
  83. package/{chunk-TWTJV35S.js → chunk-NL7J2J5Z.js} +3 -3
  84. package/{chunk-EEOOBRA7.js → chunk-NQQL2DKF.js} +2 -2
  85. package/{chunk-AEQMKYZN.js → chunk-NWWQY2J5.js} +4 -4
  86. package/{chunk-AH5R7BYW.js → chunk-OATIWAKN.js} +5 -5
  87. package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
  88. package/{chunk-HOM6LTEW.js → chunk-OYHJ4TW7.js} +6 -6
  89. package/{chunk-BXSMFPTG.js → chunk-QES2NCVM.js} +3 -3
  90. package/{chunk-Y5OWZQMJ.js → chunk-QGMIUVBT.js} +5 -5
  91. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  92. package/chunk-SR4FE5VD.js +9 -0
  93. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  94. package/{chunk-CKZPMJNU.js → chunk-T444ENEC.js} +3 -3
  95. package/{chunk-TEMLHVGX.js → chunk-TE2XH4KH.js} +1 -1
  96. package/{chunk-4FIO2S7Z.js → chunk-TFGGNRT6.js} +1 -1
  97. package/{chunk-HCNOO374.js → chunk-TTEBPPUV.js} +1 -1
  98. package/{chunk-RM4UMFY4.js → chunk-TXFYIWAW.js} +7 -7
  99. package/{chunk-6WZVM33D.js → chunk-TXQVH72L.js} +2 -2
  100. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  101. package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
  102. package/{chunk-VM72HKW2.js → chunk-UAHUJ4HH.js} +11 -11
  103. package/{chunk-BIABIPGW.js → chunk-UAOFSUG7.js} +1 -1
  104. package/{chunk-D374I563.js → chunk-UKSKCDBG.js} +1 -1
  105. package/{chunk-IUMS6F53.js → chunk-WHO3LYDW.js} +9 -5
  106. package/{chunk-F3XI6WQP.js → chunk-X37RQEA3.js} +2 -2
  107. package/{chunk-B5SV4H3J.js → chunk-XAFOLWLU.js} +1 -1
  108. package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
  109. package/{chunk-VREG6ANQ.js → chunk-Y5RN44VH.js} +8 -8
  110. package/{chunk-S2MHR4PU.js → chunk-YFRJAE3R.js} +178 -114
  111. package/{chunk-GDUC4VS2.js → chunk-YMCSR7PA.js} +7 -7
  112. package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
  113. package/{chunk-CVJRVBJL.js → chunk-ZBQ5UGYY.js} +3 -3
  114. package/{chunk-O6IPRAVV.js → chunk-ZQUCJBS4.js} +2 -2
  115. package/{chunk-KZPEGO6D.js → chunk-ZT3DYK5T.js} +3 -3
  116. package/{chunk-DNZ4JJ7C.js → chunk-ZTLTDUV6.js} +16 -3
  117. package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +6 -6
  118. package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  119. package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +30 -29
  120. package/{commandRegistry-TME7INFU.js → commandRegistry-IHWZVV4G.js} +86 -86
  121. package/{contentThunks-U6OC4R2N.js → contentThunks-YQRCBDKF.js} +22 -21
  122. package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-W67DE765.js} +1 -1
  123. package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-ERSDNR4R.js} +22 -21
  124. package/{createDialogAction-IAGQJ3LH.js → createDialogAction-QXC7JZPE.js} +23 -22
  125. package/{createPageAction-AZ3UIFKA.js → createPageAction-RLZ7776F.js} +24 -23
  126. package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
  127. package/{dbSlice-DKKMJJYY.js → dbSlice-7M2ESEUO.js} +8 -8
  128. package/{deleteFile-TQSONMVU.js → deleteFile-WO6WSSNK.js} +5 -5
  129. package/{dialogCommands-PCDRMBWG.js → dialogCommands-UIRO4QNN.js} +37 -36
  130. package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-VDUFYBZV.js} +8 -8
  131. package/{dialogSlice-QAKYN4DE.js → dialogSlice-A4U3C76D.js} +20 -19
  132. package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-SEC6UZWM.js} +2 -2
  133. package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-MHPYTJWR.js} +31 -30
  134. package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-VYULMBAQ.js} +32 -31
  135. package/{docReadCommands-XQILYSAJ.js → docReadCommands-FV3GGZ7V.js} +31 -30
  136. package/{docStore-GIVRT7TQ.js → docStore-AWWI72FA.js} +9 -9
  137. package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-JNS3HX7F.js} +31 -30
  138. package/fetchMessages-TQEUZD7H.js +1 -1
  139. package/{getPricing-LF5C4XSI.js → getPricing-U5AR7ZHS.js} +3 -3
  140. package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-WDJOUDNV.js} +41 -40
  141. package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-H3FF2SAO.js} +75 -76
  142. package/index.js +8 -8
  143. package/keys-RWF7UCB4.js +1 -1
  144. package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
  145. package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-JAQQXZJP.js} +74 -73
  146. package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
  147. package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  148. package/{machineCommands-K6XIGOAD.js → machineCommands-WYOFNB5I.js} +73 -74
  149. package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-Y7UIAZNM.js} +73 -74
  150. package/markdownToSlate-KIYM7B3P.js +8 -0
  151. package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-SCYEFLRK.js} +9 -9
  152. package/{memberThunks-PBJPZ2JU.js → memberThunks-DIITWU4M.js} +10 -10
  153. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  154. package/package.json +1 -1
  155. package/{projectArchive-G7AOQPRW.js → projectArchive-IZJXBW5N.js} +26 -25
  156. package/{providerPresetApply-OPBCAONX.js → providerPresetApply-2QWXPJXZ.js} +5 -5
  157. package/{providerRegistry-J2HCVTHE.js → providerRegistry-W4LCKK6V.js} +5 -5
  158. package/{read-JEGPITEW.js → read-OBLJNMA2.js} +5 -5
  159. package/{readDocTool-TE3XIU4Y.js → readDocTool-QQZ4DAER.js} +1 -1
  160. package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-WF3SWZGR.js} +2914 -1240
  161. package/rememberExplicit-CPAPONSI.js +15 -0
  162. package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-HC3SOY3G.js} +10 -10
  163. package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-Z7V6TA3O.js} +48 -48
  164. package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-KX6YLPWV.js} +8 -8
  165. package/{secretCommands-NJXFVHZU.js → secretCommands-STRAX275.js} +2 -2
  166. package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-DDZUQPY6.js} +9 -9
  167. package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +10 -10
  168. package/{settingThunks-AY76OHYX.js → settingThunks-TN6GFASU.js} +8 -8
  169. package/{spaceCommands-G63QGYQO.js → spaceCommands-HBYQUVJI.js} +30 -29
  170. package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-CM7QQXOS.js} +78 -78
  171. package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-XY5TKQQE.js} +8 -8
  172. package/{tableCommands-JI75ZHDI.js → tableCommands-MXFL3JIT.js} +2 -2
  173. package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
  174. package/{tools-7RSX22FT.js → tools-AT6H73LD.js} +39 -40
  175. package/{tuiRestart-KAAA7TND.js → tuiRestart-272SAYSK.js} +8 -8
  176. package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-K2OVRVHG.js} +13 -12
  177. package/{updateCommands-ASK5XYPH.js → updateCommands-O3BOVVVN.js} +3 -3
  178. package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-PGY4UPLH.js} +22 -21
  179. package/{usageCommand-JVT5J3DC.js → usageCommand-SCF3ROV2.js} +3 -3
  180. package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-K5WPIBA5.js} +4 -4
  181. package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
  182. package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
  183. package/chunk-XBAEM4RI.js +0 -272
  184. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  185. package/{chunk-ULLHVDTZ.js → chunk-C3GOEQJF.js} +3 -3
  186. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  187. package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-HFJIN5IZ.js} +5 -5
@@ -1,9 +1,14 @@
1
1
  import {
2
2
  findPotentialSecrets
3
3
  } from "./chunk-6QDYSCPW.js";
4
+ import {
5
+ deriveStateResident,
6
+ resolvePureVNextRuntime,
7
+ touchMemoryItemsInDb
8
+ } from "./chunk-GAHJLSDO.js";
4
9
  import {
5
10
  getReadableCliDb
6
- } from "./chunk-AVJDELEA.js";
11
+ } from "./chunk-DLT2DN4M.js";
7
12
  import {
8
13
  INSTABOX_RUN_CONFIG_ENV,
9
14
  buildLocalRunEnv,
@@ -17,7 +22,6 @@ import {
17
22
  isInstaboxBillingPolicy,
18
23
  isLiveAgentRunObservation,
19
24
  isMachineBoundLocalhostCustomProvider,
20
- isSubtaskRun,
21
25
  normalizeCliRunImages,
22
26
  parseAgentRunArgs,
23
27
  parseAgentRunEvent,
@@ -29,25 +33,21 @@ import {
29
33
  resolveServerUrl,
30
34
  validateInstaboxWorkspaceSelection,
31
35
  writeUsage
32
- } from "./chunk-7AJRJGSQ.js";
33
- import {
34
- clearCredentialAvailability,
35
- readEffectiveCredentialEntry
36
- } from "./chunk-WWTSEBDF.js";
36
+ } from "./chunk-FCAMGBLY.js";
37
37
  import {
38
38
  boxGlyphs,
39
39
  displayWidth,
40
40
  fitAnsiLine,
41
+ resolveAmbiguousWidth,
41
42
  resolveBoxCharset,
42
43
  stripAnsi,
43
44
  tokenizeAnsiLine,
44
45
  visibleWidth
45
- } from "./chunk-MYOSN6BT.js";
46
+ } from "./chunk-3NFWMSTA.js";
46
47
  import {
47
- deriveStateResident,
48
- resolvePureVNextRuntime,
49
- touchMemoryItemsInDb
50
- } from "./chunk-VSRISJXZ.js";
48
+ clearCredentialAvailability,
49
+ readEffectiveCredentialEntry
50
+ } from "./chunk-WWTSEBDF.js";
51
51
  import {
52
52
  rankMemoryCandidates,
53
53
  recallMemoryVNextLocal
@@ -67,14 +67,21 @@ import {
67
67
  resolveWorkContextAccess
68
68
  } from "./chunk-Z6YTCDU4.js";
69
69
  import {
70
- applyMemoryInterpreterMutation,
71
70
  isWorkContextState,
72
71
  readWorkContexts
73
- } from "./chunk-6WOLPIPY.js";
72
+ } from "./chunk-C5A54QS7.js";
73
+ import {
74
+ applyMemoryInterpreterMutation
75
+ } from "./chunk-6RSNVJGO.js";
76
+ import {
77
+ getMemoryEvidenceVNextStrict,
78
+ loadMemoryVNextCatalog,
79
+ putMemoryEvidenceVNext
80
+ } from "./chunk-324FWHUA.js";
74
81
  import {
75
82
  isBuiltinNoloAgentRef,
76
83
  resolveLocalUserId
77
- } from "./chunk-2574ANSV.js";
84
+ } from "./chunk-7U2TFUWW.js";
78
85
  import {
79
86
  CliProviderQuotaError
80
87
  } from "./chunk-R7XWZDOH.js";
@@ -82,20 +89,15 @@ import {
82
89
  resolveMachineId
83
90
  } from "./chunk-S73EPYNC.js";
84
91
  import {
85
- getMemoryEvidenceVNextStrict,
86
- loadMemoryVNextCatalog,
87
- putMemoryEvidenceVNext
88
- } from "./chunk-324FWHUA.js";
92
+ resolveCliLocalRuntimeKeyCapability
93
+ } from "./chunk-7Q7MKJZN.js";
89
94
  import {
90
95
  extractGoogleValidationLink
91
96
  } from "./chunk-BMQ2MJUK.js";
92
- import {
93
- resolveCliLocalRuntimeKeyCapability
94
- } from "./chunk-BGGV6B5O.js";
95
97
  import {
96
98
  parseUiCard,
97
99
  uiCardFallback
98
- } from "./chunk-VREG6ANQ.js";
100
+ } from "./chunk-Y5RN44VH.js";
99
101
  import {
100
102
  isGatewayHttpStatus
101
103
  } from "./chunk-NF64D32W.js";
@@ -106,7 +108,7 @@ import {
106
108
  loadOwnerItemsFromDb,
107
109
  parseUiAskChoiceContent,
108
110
  resolveAgentMemoryPolicy
109
- } from "./chunk-PRMEU7BT.js";
111
+ } from "./chunk-KGIIZXPL.js";
110
112
  import {
111
113
  API_REPORTED_COST_MULTIPLIER,
112
114
  estimateMessagesTokens,
@@ -115,14 +117,14 @@ import {
115
117
  resolveAgentContextWindow,
116
118
  resolveOccupancy,
117
119
  resolveOccupancyWindow
118
- } from "./chunk-B7DE5XJW.js";
120
+ } from "./chunk-FXX6VFMV.js";
119
121
  import {
120
122
  parsePositiveFiniteNumberOrFallback
121
123
  } from "./chunk-Y5GCAMGP.js";
122
124
  import {
123
125
  readDbRecord,
124
126
  resolveAgentRecordFromHybridStore
125
- } from "./chunk-BXSMFPTG.js";
127
+ } from "./chunk-QES2NCVM.js";
126
128
  import {
127
129
  isTransientFetchError
128
130
  } from "./chunk-DXWGFL2Z.js";
@@ -130,10 +132,10 @@ import {
130
132
  isCliAuthorityBrokerProtocolError,
131
133
  isCliAuthorityBrokerTimeoutError,
132
134
  isCliAuthorityBrokerUnavailableError
133
- } from "./chunk-XBAEM4RI.js";
135
+ } from "./chunk-KK3FCYZM.js";
134
136
  import {
135
137
  getDefaultCliLocalRuntimeDb
136
- } from "./chunk-Y2MF4DCJ.js";
138
+ } from "./chunk-LELADM5Q.js";
137
139
  import {
138
140
  awaitLocalWriterChild,
139
141
  createMcpApprovalChild,
@@ -154,7 +156,7 @@ import {
154
156
  settleRunTerminalAuthoritatively,
155
157
  spawnLocalBackgroundRun,
156
158
  transitionRunToTerminal
157
- } from "./chunk-MECDGHLK.js";
159
+ } from "./chunk-FSIEHQNH.js";
158
160
  import {
159
161
  formatAgentListCard,
160
162
  formatFinishedRunCard,
@@ -165,23 +167,21 @@ import {
165
167
  formatStopRunCard,
166
168
  getAgentRunStatusIcon,
167
169
  isAgentRunTerminalStatus
168
- } from "./chunk-OOJNQK6V.js";
170
+ } from "./chunk-S25VJYXV.js";
169
171
  import {
170
172
  isLocalCliAgentKey
171
173
  } from "./chunk-BR3GT6MR.js";
172
174
  import {
173
175
  LOCAL_AGENT_CONFIG_MISSING_CODE,
174
176
  LOCAL_TURN_ABORTED_CODE,
177
+ isSubtaskRun,
175
178
  markCliUserBatchPhase,
176
179
  readActionGate,
177
180
  readAgentsMdLayerFromDisk
178
- } from "./chunk-TRHJ4NJB.js";
181
+ } from "./chunk-EIFSCI4C.js";
179
182
  import {
180
183
  resolveAgentRuntimeConfigFromRecord
181
- } from "./chunk-KZPEGO6D.js";
182
- import {
183
- resolveAgentImageInputSupport
184
- } from "./chunk-BGGAY6OK.js";
184
+ } from "./chunk-ZT3DYK5T.js";
185
185
  import {
186
186
  createThinkParserState,
187
187
  flushThinkParser,
@@ -194,17 +194,23 @@ import {
194
194
  resolveAvailabilityAction,
195
195
  resolveCredentialKeyWithFallback
196
196
  } from "./chunk-QJTZ76CP.js";
197
+ import {
198
+ resolveAgentImageInputSupport
199
+ } from "./chunk-IPRPYKBP.js";
200
+ import {
201
+ isContextOverflowText
202
+ } from "./chunk-TLE77UJ5.js";
197
203
  import {
198
204
  ATTACHMENT_PART_TYPE,
199
205
  ATTACHMENT_PART_VERSION,
200
206
  describeAttachmentForModel,
201
207
  normalizeAttachmentPart
202
- } from "./chunk-DNZ4JJ7C.js";
208
+ } from "./chunk-ZTLTDUV6.js";
203
209
  import {
204
210
  findCodexOAuthPinnedContextWindow,
205
211
  normalizeUsage,
206
212
  readCacheReadInputTokensOrNull
207
- } from "./chunk-L32W3PRP.js";
213
+ } from "./chunk-6X3CS6NJ.js";
208
214
  import {
209
215
  isOAuthApiKeyRef
210
216
  } from "./chunk-UKZX3NHN.js";
@@ -275,13 +281,13 @@ import {
275
281
  toolIcon,
276
282
  toolLabel,
277
283
  toolLabelVariants
278
- } from "./chunk-S2MHR4PU.js";
284
+ } from "./chunk-YFRJAE3R.js";
279
285
  import {
280
286
  isAntigravityOAuthAgent
281
- } from "./chunk-6CKUO32A.js";
287
+ } from "./chunk-LN4ZVSO7.js";
282
288
  import {
283
289
  resolveClientVersion
284
- } from "./chunk-RTHFJZ6M.js";
290
+ } from "./chunk-LMFMV5UC.js";
285
291
  import {
286
292
  toErrorMessage
287
293
  } from "./chunk-HNMXYYJR.js";
@@ -290,7 +296,7 @@ import {
290
296
  } from "./chunk-3EUW3WEO.js";
291
297
  import {
292
298
  findModelConfig
293
- } from "./chunk-CD3RU7XL.js";
299
+ } from "./chunk-OJRTTERA.js";
294
300
  import {
295
301
  asOptionalTrimmedString
296
302
  } from "./chunk-G3SUCT4W.js";
@@ -298,7 +304,7 @@ import {
298
304
  CLIENT_VERSION_TOO_OLD_CODE,
299
305
  NOLO_CLIENT_VERSION_HEADER,
300
306
  buildClientVersionUpgradeMessage
301
- } from "./chunk-OBSEKCVK.js";
307
+ } from "./chunk-U4VSBDO5.js";
302
308
  import {
303
309
  asTrimmedLowercaseString
304
310
  } from "./chunk-QSJ3HFEF.js";
@@ -1700,19 +1706,23 @@ function diffLineSequences(env = process.env, brightness = resolveTuiBrightness(
1700
1706
  added: {
1701
1707
  fg: successSgr,
1702
1708
  bg: hexToBgSgr(addedBgHex),
1703
- bar: `${successSgr}\u258C\x1B[39m`
1709
+ bar: `${successSgr}\u258E\x1B[39m`
1704
1710
  },
1705
1711
  removed: {
1706
1712
  fg: dangerSgr,
1707
1713
  bg: hexToBgSgr(removedBgHex),
1708
- bar: `${dangerSgr}\u258C\x1B[39m`
1714
+ bar: `${dangerSgr}\u258E\x1B[39m`
1709
1715
  },
1710
1716
  hunk: {
1711
1717
  fg: infoSgr,
1712
1718
  bg: hexToBgSgr(hunkBgHex),
1713
- bar: " "
1719
+ bar: `${infoSgr}\u2502\x1B[39m`
1714
1720
  },
1715
- context: { fg: "", bg: "", bar: " " }
1721
+ context: {
1722
+ fg: "",
1723
+ bg: "",
1724
+ bar: `${themeColorSequence("chrome", env, brightness)}\u2502\x1B[39m`
1725
+ }
1716
1726
  };
1717
1727
  }
1718
1728
  function renderSurfaceLine(args) {
@@ -1723,10 +1733,19 @@ function renderSurfaceLine(args) {
1723
1733
  return `${surface}${reopened}${padding}\x1B[0m`;
1724
1734
  }
1725
1735
  function renderDiffLine(args) {
1726
- const { kind, text, highlightedText } = args;
1736
+ const { kind, text, highlightedText, gutter } = args;
1727
1737
  const env = args.env ?? process.env;
1728
1738
  const colorEnabled = args.colorEnabled ?? resolveCliColorEnabled();
1729
1739
  if (!colorEnabled) return text;
1740
+ if (gutter) {
1741
+ const charset = args.boxCharset ?? resolveBoxCharset(resolveAmbiguousWidth(void 0, env), env);
1742
+ const railGlyph = charset === "ascii" ? boxGlyphs("ascii").v : kind === "added" || kind === "removed" ? "\u258E" : boxGlyphs("unicode").v;
1743
+ const railTone = kind === "added" ? "success" : kind === "removed" ? "danger" : kind === "hunk" ? "info" : "chrome";
1744
+ const rail = `${themeColorSequence(railTone, env)}${railGlyph}\x1B[39m`;
1745
+ const body = highlightedText ?? (kind === "context" ? text : `${themeColorSequence(railTone, env)}${text}`);
1746
+ const closedBody = body.endsWith("\x1B[0m") ? body : `${body}\x1B[0m`;
1747
+ return `${rail} ${closedBody}`;
1748
+ }
1730
1749
  const seqs = diffLineSequences(env);
1731
1750
  if (!seqs) {
1732
1751
  if (kind === "context") return highlightedText ?? text;
@@ -7299,6 +7318,59 @@ function renderMermaidBlock(source, brightness, colorEnabled = true, cols) {
7299
7318
  return toAnsi(art, themeAnsiTheme(brightness)).join("\n");
7300
7319
  }
7301
7320
 
7321
+ // packages/cli/tui/tuiUrlOpener.ts
7322
+ import { spawn as nodeSpawn } from "node:child_process";
7323
+ var MAX_URL_LENGTH = 2048;
7324
+ function normalizeHttpUrl(raw) {
7325
+ const trimmed = raw.trim();
7326
+ if (trimmed.length === 0 || trimmed.length > MAX_URL_LENGTH) return null;
7327
+ if (/[\u0000-\u001f\u007f]/.test(trimmed)) return null;
7328
+ let parsed;
7329
+ try {
7330
+ parsed = new URL(trimmed);
7331
+ } catch {
7332
+ return null;
7333
+ }
7334
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return null;
7335
+ if (parsed.hostname.length === 0) return null;
7336
+ return trimmed;
7337
+ }
7338
+ function resolveUrlOpenCommand(platform, url) {
7339
+ if (normalizeHttpUrl(url) === null) return null;
7340
+ if (platform === "darwin") {
7341
+ return { command: "open", args: [url] };
7342
+ }
7343
+ if (platform === "win32") {
7344
+ return { command: "rundll32.exe", args: ["url.dll,FileProtocolHandler", url] };
7345
+ }
7346
+ return { command: "xdg-open", args: [url] };
7347
+ }
7348
+ function openExternalUrl(raw, options = {}) {
7349
+ const url = normalizeHttpUrl(raw);
7350
+ if (url === null) return false;
7351
+ const resolved = resolveUrlOpenCommand(options.platform ?? process.platform, url);
7352
+ if (!resolved) return false;
7353
+ const spawnImpl = options.spawnImpl ?? nodeSpawn;
7354
+ const report = (error) => {
7355
+ try {
7356
+ options.onError?.(error instanceof Error ? error.message : String(error));
7357
+ } catch {
7358
+ }
7359
+ };
7360
+ try {
7361
+ const child = spawnImpl(resolved.command, resolved.args, {
7362
+ detached: true,
7363
+ stdio: "ignore"
7364
+ });
7365
+ child.on?.("error", report);
7366
+ child.unref?.();
7367
+ return true;
7368
+ } catch (error) {
7369
+ report(error);
7370
+ return false;
7371
+ }
7372
+ }
7373
+
7302
7374
  // packages/cli/client/mathText.ts
7303
7375
  var mathRenderingEnabled = true;
7304
7376
  function setMathRenderingEnabled(enabled) {
@@ -7863,19 +7935,42 @@ var STYLE = {
7863
7935
  function colorSeq(token, brightness) {
7864
7936
  return themeColorSequence(token, process.env, brightness);
7865
7937
  }
7866
- function renderMarkdownLink(match, text, url) {
7867
- const visible = `${text} (${url})`;
7868
- return `\x1B]8;;${url}\x1B\\${visible}\x1B]8;;\x1B\\`;
7938
+ function renderMarkdownLink(text, url, brightness) {
7939
+ const safeText = sanitizeHyperlinkLabel(text);
7940
+ const safeHttpUrl = normalizeHttpUrl(url);
7941
+ if (safeHttpUrl === null) {
7942
+ const safeRawUrl = sanitizeHyperlinkLabel(url);
7943
+ return safeText.trim() === safeRawUrl.trim() ? safeText : `${safeText} (${safeRawUrl})`;
7944
+ }
7945
+ const sameAsUrl = safeText.trim() === safeHttpUrl.trim();
7946
+ if (!resolveCliHyperlinkEnabled()) {
7947
+ return sameAsUrl ? safeText : `${safeText} (${safeHttpUrl})`;
7948
+ }
7949
+ const colorEnabled = resolveCliColorEnabled();
7950
+ if (sameAsUrl || !safeText.trim()) {
7951
+ const label = safeText.trim() ? safeText : safeHttpUrl;
7952
+ if (!colorEnabled) {
7953
+ return `\x1B]8;;${safeHttpUrl}\x1B\\${label}\x1B]8;;\x1B\\`;
7954
+ }
7955
+ const linkColor2 = colorSeq("accent", brightness);
7956
+ return `\x1B]8;;${safeHttpUrl}\x1B\\\x1B[4m${linkColor2}${label}${STYLE.reset}\x1B]8;;\x1B\\`;
7957
+ }
7958
+ if (!colorEnabled) {
7959
+ return `\x1B]8;;${safeHttpUrl}\x1B\\${safeText} \u2197\x1B]8;;\x1B\\`;
7960
+ }
7961
+ const linkColor = colorSeq("accent", brightness);
7962
+ const muted = colorSeq("muted", brightness);
7963
+ return `\x1B]8;;${safeHttpUrl}\x1B\\\x1B[4m${linkColor}${safeText}${STYLE.reset}${muted} \u2197${STYLE.reset}\x1B]8;;\x1B\\`;
7869
7964
  }
7870
7965
  var MARKDOWN_LINK_RE = /\[([^\]]+)\]\(([^)\s]+)\)/g;
7871
7966
  function styleInlineMarkdown(line, brightness) {
7872
- const inlineCode = colorSeq("muted", brightness);
7967
+ const inlineCode = colorSeq("info", brightness);
7873
7968
  const reset = STYLE.reset;
7874
7969
  const bold = STYLE.bold;
7875
7970
  const dim = STYLE.dim;
7876
7971
  const zwsCode = "\u200B";
7877
7972
  const mathMask = maskMathInLine(line, brightness);
7878
- const styled = mathMask.maskedText.replace(MARKDOWN_LINK_RE, (m, t2, u) => renderMarkdownLink(m, t2, u)).replace(
7973
+ const styled = mathMask.maskedText.replace(MARKDOWN_LINK_RE, (_m, t2, u) => renderMarkdownLink(t2, u, brightness)).replace(
7879
7974
  /\u200b([^\u200b\n]+)\u200b/g,
7880
7975
  (_m, inner) => `${zwsCode}${inlineCode}${inner}${reset}${zwsCode}`
7881
7976
  ).replace(/`([^`]+)`/g, `${inlineCode}$1${reset}`).replace(/\*\*(.+?)\*\*/g, `${bold}$1${reset}`).replace(/(?<!\*)\*([^*]+?)\*(?!\*)/g, `${dim}$1${reset}`).replace(/~~([^~]+?)~~/g, `${dim}\x1B[9m$1\x1B[29m${reset}`);
@@ -8728,6 +8823,26 @@ function styleRichMarkdownLine(line, brightness) {
8728
8823
  }
8729
8824
  return styleInlineMarkdown(line, brightness);
8730
8825
  }
8826
+ var CODE_FENCE_RULE_WIDTH = 24;
8827
+ function renderCodeFenceOpen(rawLang, brightness) {
8828
+ const { h, tl } = boxGlyphs(resolveBoxCharset());
8829
+ const chromeDim = `${colorSeq("chrome", brightness)}${STYLE.dim}`;
8830
+ if (rawLang) {
8831
+ const tailLen = Math.max(4, CODE_FENCE_RULE_WIDTH - rawLang.length - 3);
8832
+ return `${chromeDim}${tl}${h} ${rawLang} ${h.repeat(tailLen)}${STYLE.reset}`;
8833
+ }
8834
+ return `${chromeDim}${tl}${h.repeat(CODE_FENCE_RULE_WIDTH)}${STYLE.reset}`;
8835
+ }
8836
+ function renderCodeFenceClose(brightness) {
8837
+ const { h, bl } = boxGlyphs(resolveBoxCharset());
8838
+ const chromeDim = `${colorSeq("chrome", brightness)}${STYLE.dim}`;
8839
+ return `${chromeDim}${bl}${h.repeat(CODE_FENCE_RULE_WIDTH)}${STYLE.reset}`;
8840
+ }
8841
+ function renderCodeFenceLine(line, lang, brightness) {
8842
+ const { v } = boxGlyphs(resolveBoxCharset());
8843
+ const chromeDim = `${colorSeq("chrome", brightness)}${STYLE.dim}`;
8844
+ return `${chromeDim}${v}${STYLE.reset} ${highlightCodeLine(line, lang, brightness)}`;
8845
+ }
8731
8846
  var FenceTracker = class {
8732
8847
  inFence = false;
8733
8848
  inMermaid = false;
@@ -8754,15 +8869,15 @@ var FenceTracker = class {
8754
8869
  this.fenceLang = "unknown";
8755
8870
  return { kind: "close-code" };
8756
8871
  }
8757
- const lang = readFenceLanguage(line);
8758
- this.fenceLang = normalizeCodeLang(lang);
8872
+ const rawLang = readFenceLanguage(line);
8873
+ this.fenceLang = normalizeCodeLang(rawLang);
8759
8874
  this.inFence = true;
8760
- if (/^mermaid$/i.test(lang)) {
8875
+ if (/^mermaid$/i.test(rawLang)) {
8761
8876
  this.inMermaid = true;
8762
8877
  this.mermaidBody = [];
8763
- return { kind: "open" };
8878
+ return { kind: "open-mermaid" };
8764
8879
  }
8765
- return { kind: "open" };
8880
+ return { kind: "open-code", rawLang };
8766
8881
  }
8767
8882
  if (this.inMermaid) {
8768
8883
  this.mermaidBody.push(line);
@@ -8810,21 +8925,25 @@ function formatAssistantDisplay(text, options = {}) {
8810
8925
  const event = tracker.processLine(line);
8811
8926
  if (event.kind === "close-mermaid") {
8812
8927
  out.push(renderMermaidBody(event.body, brightness));
8813
- out.push(`${STYLE.dim}${line}${STYLE.reset}`);
8814
8928
  i++;
8815
8929
  continue;
8816
8930
  }
8817
- if (event.kind === "open" || event.kind === "close-code") {
8818
- out.push(`${STYLE.dim}${line}${STYLE.reset}`);
8931
+ if (event.kind === "open-mermaid" || event.kind === "mermaid-body") {
8819
8932
  i++;
8820
8933
  continue;
8821
8934
  }
8822
- if (event.kind === "mermaid-body") {
8935
+ if (event.kind === "open-code") {
8936
+ out.push(renderCodeFenceOpen(event.rawLang, brightness));
8937
+ i++;
8938
+ continue;
8939
+ }
8940
+ if (event.kind === "close-code") {
8941
+ out.push(renderCodeFenceClose(brightness));
8823
8942
  i++;
8824
8943
  continue;
8825
8944
  }
8826
8945
  if (event.kind === "code-line") {
8827
- out.push(highlightCodeLine(line, event.lang, brightness));
8946
+ out.push(renderCodeFenceLine(line, event.lang, brightness));
8828
8947
  i++;
8829
8948
  continue;
8830
8949
  }
@@ -8950,17 +9069,30 @@ function createRenderAwareStreamWriter(args) {
8950
9069
  if (event.kind === "close-mermaid") {
8951
9070
  const diagram = renderMermaidBody(event.body, brightness);
8952
9071
  args.write(diagram + "\n");
8953
- emitBreathIfNeeded("fence");
8954
- args.write(`${STYLE.dim}${firstLine}${STYLE.reset}
9072
+ lastKind = "fence";
9073
+ lastLine = firstLine;
9074
+ buffer = lines.slice(1).join("\n");
9075
+ continue;
9076
+ }
9077
+ if (event.kind === "open-mermaid") {
9078
+ emitBreathIfNeeded("fence", firstLine);
9079
+ lastKind = "fence";
9080
+ lastLine = firstLine;
9081
+ buffer = lines.slice(1).join("\n");
9082
+ continue;
9083
+ }
9084
+ if (event.kind === "open-code") {
9085
+ emitBreathIfNeeded("fence", firstLine);
9086
+ args.write(`${renderCodeFenceOpen(event.rawLang, brightness)}
8955
9087
  `);
8956
9088
  lastKind = "fence";
8957
9089
  lastLine = firstLine;
8958
9090
  buffer = lines.slice(1).join("\n");
8959
9091
  continue;
8960
9092
  }
8961
- if (event.kind === "open" || event.kind === "close-code") {
8962
- emitBreathIfNeeded("fence");
8963
- args.write(`${STYLE.dim}${firstLine}${STYLE.reset}
9093
+ if (event.kind === "close-code") {
9094
+ emitBreathIfNeeded("fence", firstLine);
9095
+ args.write(`${renderCodeFenceClose(brightness)}
8964
9096
  `);
8965
9097
  lastKind = "fence";
8966
9098
  lastLine = firstLine;
@@ -8972,7 +9104,7 @@ function createRenderAwareStreamWriter(args) {
8972
9104
  continue;
8973
9105
  }
8974
9106
  if (event.kind === "code-line") {
8975
- args.write(`${highlightCodeLine(firstLine, event.lang, brightness)}
9107
+ args.write(`${renderCodeFenceLine(firstLine, event.lang, brightness)}
8976
9108
  `);
8977
9109
  lastKind = "fence";
8978
9110
  lastLine = firstLine;
@@ -9065,6 +9197,16 @@ function createRenderAwareStreamWriter(args) {
9065
9197
  },
9066
9198
  flush() {
9067
9199
  if (tracker.isInMermaid()) {
9200
+ if (buffer && isCodeFenceLine(buffer)) {
9201
+ const event2 = tracker.processLine(buffer);
9202
+ buffer = "";
9203
+ if (event2.kind === "close-mermaid") {
9204
+ args.write(renderMermaidBody(event2.body, brightness));
9205
+ lastKind = "fence";
9206
+ lastLine = "```";
9207
+ return;
9208
+ }
9209
+ }
9068
9210
  const extra = buffer ? buffer.split("\n") : void 0;
9069
9211
  const unclosed = tracker.flushMermaid(extra);
9070
9212
  if (unclosed !== null) {
@@ -9074,8 +9216,25 @@ function createRenderAwareStreamWriter(args) {
9074
9216
  return;
9075
9217
  }
9076
9218
  if (!buffer) return;
9077
- if (tracker.isInFence()) {
9078
- args.write(buffer);
9219
+ const event = tracker.processLine(buffer);
9220
+ if (event.kind === "open-mermaid") {
9221
+ emitBreathIfNeeded("fence", buffer);
9222
+ lastKind = "fence";
9223
+ lastLine = buffer;
9224
+ } else if (event.kind === "open-code") {
9225
+ emitBreathIfNeeded("fence", buffer);
9226
+ args.write(renderCodeFenceOpen(event.rawLang, brightness));
9227
+ lastKind = "fence";
9228
+ lastLine = buffer;
9229
+ } else if (event.kind === "close-code") {
9230
+ emitBreathIfNeeded("fence", buffer);
9231
+ args.write(renderCodeFenceClose(brightness));
9232
+ lastKind = "fence";
9233
+ lastLine = buffer;
9234
+ } else if (event.kind === "code-line") {
9235
+ args.write(renderCodeFenceLine(buffer, event.lang, brightness));
9236
+ lastKind = "fence";
9237
+ lastLine = buffer;
9079
9238
  } else {
9080
9239
  emitBreathIfNeeded(classifyStreamLine(buffer), buffer);
9081
9240
  emitFormattedAssistantBlock(args.write, buffer);
@@ -10026,6 +10185,8 @@ var families = {
10026
10185
  editFile: ["edit", "\u4FEE\u6539", ["path"], false],
10027
10186
  globFiles: ["find", "\u67E5\u627E\u6587\u4EF6", ["pattern", "path"], true],
10028
10187
  search: ["search", "\u641C\u7D22", ["query", "pattern"], true],
10188
+ codeSearch: ["search", "\u641C\u7D22", ["query", "pattern"], true],
10189
+ exa_search: ["search", "\u641C\u7D22", ["query", "pattern"], true],
10029
10190
  grep: ["search", "\u641C\u7D22", ["pattern", "query"], true],
10030
10191
  loadSkill: ["skill", "\u52A0\u8F7D\u6280\u80FD", ["name", "slug"], true]
10031
10192
  };
@@ -10986,15 +11147,19 @@ function formatEditDetailBlock(lines, colorEnabled, filePath, env = process.env)
10986
11147
  const isTruecolor = supportsTruecolor(env);
10987
11148
  const lang = isTruecolor ? detectCodeLangFromPath(filePath) : "unknown";
10988
11149
  const brightness = resolveTuiBrightness(env);
10989
- const padTo = resolveSurfacePaintWidth(process.stdout.columns || 80);
10990
- return lines.map((line) => renderDiffLine({
10991
- kind: line.kind,
10992
- text: fitAnsiLine(` ${line.text}`, padTo),
10993
- highlightedText: shouldHighlightEditLine(line, lang, isTruecolor) ? fitAnsiLine(` ${buildHighlightedEditLine(line, lang, brightness, env)}`, padTo) : void 0,
10994
- padTo,
10995
- colorEnabled: true,
10996
- env
10997
- }) + "\n").join("");
11150
+ const maxLineWidth = resolveSurfacePaintWidth(process.stdout.columns || 80);
11151
+ return lines.map((line) => {
11152
+ const rendered = renderDiffLine({
11153
+ kind: line.kind,
11154
+ text: line.text,
11155
+ highlightedText: shouldHighlightEditLine(line, lang, isTruecolor) ? buildHighlightedEditLine(line, lang, brightness, env) : void 0,
11156
+ gutter: true,
11157
+ colorEnabled: true,
11158
+ env
11159
+ });
11160
+ return `${fitAnsiLine(` ${rendered}`, maxLineWidth)}
11161
+ `;
11162
+ }).join("");
10998
11163
  }
10999
11164
  function shouldHighlightEditLine(line, lang, isTruecolor) {
11000
11165
  if (!isTruecolor || lang === "unknown") return false;
@@ -11044,7 +11209,7 @@ function normalToolGistRaw(event) {
11044
11209
  const url = typeof metadata.url === "string" ? metadata.url : "";
11045
11210
  if (url) return formatFetchItemUrl(url);
11046
11211
  }
11047
- if (toolName === "exa_search") {
11212
+ if (toolName === "exa_search" || toolName === "codeSearch" || toolName === "globFiles") {
11048
11213
  const query2 = typeof metadata.query === "string" ? metadata.query : typeof metadata.pattern === "string" ? metadata.pattern : "";
11049
11214
  const path3 = typeof metadata.path === "string" ? metadata.path : void 0;
11050
11215
  if (query2 || path3) return formatSearchItemQuery(query2, path3);
@@ -11127,7 +11292,7 @@ function formatNormalToolLine(event, pending, colorEnabled, opts, omitSuccessGly
11127
11292
  const title = gist2 ? `${label} \xB7 ${gist2}` : label;
11128
11293
  return formatToolTraceLine(fitNormalLine(`\u25B8 ${title}`, `\u2717 ${reason}`, totalBudget), colorEnabled, "error");
11129
11294
  }
11130
- const successLabel = omitSuccessGlyph?.(toolName) ? " " : label;
11295
+ const successLabel = omitSuccessGlyph?.(toolName) ? " ".repeat(displayWidth(label)) : label;
11131
11296
  const resultSummary = normalResultSummary(event);
11132
11297
  const gist = [normalToolGist(event), resultSummary].filter(Boolean).join(" \xB7 ");
11133
11298
  const hint = editFileResultHint(event);
@@ -11234,7 +11399,7 @@ var TUI_TREE_END = "";
11234
11399
  var TUI_TREE_TOOLS = {
11235
11400
  Run: ["execShell", "runCommand", "launchProcess"],
11236
11401
  Read: ["readFile"],
11237
- Search: ["exa_search"],
11402
+ Search: ["exa_search", "globFiles", "codeSearch"],
11238
11403
  Fetch: ["fetchWebpage"]
11239
11404
  };
11240
11405
  function toolDetails(event, line) {
@@ -11259,20 +11424,38 @@ function createToolEventFormatter(colorEnabled = resolveCliColorEnabled(), opts
11259
11424
  let lastFamilyId;
11260
11425
  let tree = null;
11261
11426
  const treeKind = (name) => Object.keys(TUI_TREE_TOOLS).find((kind) => TUI_TREE_TOOLS[kind].includes(name)) ?? null;
11262
- const treeLine = (kind, items, fallback, details) => {
11263
- const label = kind === "Run" ? toolIcon("execShell") : kind === "Read" ? toolIcon("readFile") : kind === "Fetch" ? toolIcon("fetchWebpage") : toolIcon("exa_search");
11264
- const header = `${label} (${items.length}) \xB7 `;
11427
+ const treeLine = (kind, counts, items, fallback, details) => {
11428
+ const activeKinds = Object.keys(counts).filter((k) => counts[k] > 0);
11429
+ const isMixed = activeKinds.length > 1;
11265
11430
  const columns = resolveHistoryLayoutGeometry(process.stdout.columns).contentWidth - displayWidth("\u25C8 ");
11266
11431
  const budget = Math.max(1, columns);
11267
- let shown = 1;
11268
- for (let count = 2; count <= items.length; count++) {
11269
- const suffix = count < items.length ? ", \u2026" : "";
11270
- if (displayWidth(`\u25B8 ${header}${items.slice(0, count).join(", ")}${suffix} \u2713`) > budget) break;
11271
- shown = count;
11432
+ let summary;
11433
+ let payloadKind = kind;
11434
+ if (isMixed) {
11435
+ const parts = [
11436
+ counts.Read > 0 ? t("explorePartRead", String(counts.Read)) : "",
11437
+ counts.Search > 0 ? t("explorePartSearch", String(counts.Search)) : "",
11438
+ counts.Run > 0 ? t("explorePartRun", String(counts.Run)) : "",
11439
+ counts.Fetch > 0 ? t("explorePartFetch", String(counts.Fetch)) : ""
11440
+ ].filter(Boolean).join(", ");
11441
+ const label = toolIcon("readFile");
11442
+ summary = fitNormalLine(`${label} \xB7 ${t("exploreSummary", String(items.length), parts)}`, "\u2713", Math.max(1, budget - 2));
11443
+ payloadKind = "Read";
11444
+ } else {
11445
+ const singleKind = activeKinds[0] ?? kind;
11446
+ payloadKind = singleKind;
11447
+ const label = singleKind === "Run" ? toolIcon("execShell") : singleKind === "Read" ? toolIcon("readFile") : singleKind === "Fetch" ? toolIcon("fetchWebpage") : toolIcon("exa_search");
11448
+ const header = `${label} (${items.length}) \xB7 `;
11449
+ let shown = 1;
11450
+ for (let count = 2; count <= items.length; count++) {
11451
+ const suffix = count < items.length ? ", \u2026" : "";
11452
+ if (displayWidth(`\u25B8 ${header}${items.slice(0, count).join(", ")}${suffix} \u2713`) > budget) break;
11453
+ shown = count;
11454
+ }
11455
+ summary = fitNormalLine(`${header}${items.slice(0, shown).join(", ")}${shown < items.length ? ", \u2026" : ""}`, "\u2713", Math.max(1, budget - 2));
11272
11456
  }
11273
- const summary = fitNormalLine(`${header}${items.slice(0, shown).join(", ")}${shown < items.length ? ", \u2026" : ""}`, "\u2713", Math.max(1, budget - 2));
11274
11457
  const payload = {
11275
- kind,
11458
+ kind: payloadKind,
11276
11459
  summary,
11277
11460
  fallback,
11278
11461
  details,
@@ -11303,11 +11486,17 @@ function createToolEventFormatter(colorEnabled = resolveCliColorEnabled(), opts
11303
11486
  attention: [],
11304
11487
  mode: "ordinary",
11305
11488
  // Formatter lifecycle/reset is the real assistant-output boundary;
11306
- // round comes from the execution stream, never from adjacent rows.
11489
+ // consecutive read-only exploration folds across rounds until a
11490
+ // non-readonly tool, error/gate, or assistant prose interrupts it.
11307
11491
  scopeKey: `assistant:${scope}`,
11308
- batchKey: Number.isInteger(event.round) && event.round >= 0 ? `round:${event.round}` : void 0,
11492
+ batchKey: `explore:${scope}`,
11309
11493
  evidenceKey: event.toolCallId
11310
11494
  });
11495
+ const isReadOnlyExploration = kind === "Read" || kind === "Search" || kind === "Fetch" || kind === "Run" && activity.readOnly === true;
11496
+ if (!isReadOnlyExploration) {
11497
+ tree = null;
11498
+ return null;
11499
+ }
11311
11500
  let item = "";
11312
11501
  const m = event.metadata ?? {};
11313
11502
  if (kind === "Run") {
@@ -11317,7 +11506,10 @@ function createToolEventFormatter(colorEnabled = resolveCliColorEnabled(), opts
11317
11506
  if (kind === "Search") item = formatSearchItemQuery(typeof m.query === "string" ? m.query : typeof m.pattern === "string" ? m.pattern : "search", typeof m.path === "string" ? m.path : void 0);
11318
11507
  if (kind === "Fetch") item = formatFetchItemUrl(typeof m.url === "string" ? m.url : "webpage");
11319
11508
  item = safeAskText(item) || toolLabel(name);
11320
- if (tree?.kind !== kind || !canCoalesceToolActivities(tree.activity, activity)) tree = { kind, items: [], activity };
11509
+ if (!tree || !canCoalesceToolActivities(tree.activity, activity)) {
11510
+ tree = { counts: { Run: 0, Read: 0, Search: 0, Fetch: 0 }, items: [], activity };
11511
+ }
11512
+ tree.counts[kind] += 1;
11321
11513
  tree.items.push(item);
11322
11514
  if (tree.items.length < 2) {
11323
11515
  const line2 = formatNormalToolLine(event, call, colorEnabled, opts);
@@ -11326,7 +11518,7 @@ function createToolEventFormatter(colorEnabled = resolveCliColorEnabled(), opts
11326
11518
  `;
11327
11519
  }
11328
11520
  const line = formatNormalToolLine(event, call, colorEnabled, opts);
11329
- return treeLine(kind, tree.items, line, toolDetails(event, line));
11521
+ return treeLine(kind, tree.counts, tree.items, line, toolDetails(event, line));
11330
11522
  };
11331
11523
  const format = (event) => {
11332
11524
  if (event.type === "tool-call") {
@@ -11616,7 +11808,7 @@ function createCliTurnOutput(params) {
11616
11808
  });
11617
11809
  const eventMode = resolveAgentEventMode(options);
11618
11810
  const assistantLabelManaged = options.output.assistantLabelManaged === true;
11619
- const showThinking = !assistantLabelManaged && options.showThinking !== false;
11811
+ const showThinking = options.showThinking !== false;
11620
11812
  const hidesRoutineTuiToolDetail = (event) => {
11621
11813
  return false;
11622
11814
  };
@@ -11626,28 +11818,17 @@ function createCliTurnOutput(params) {
11626
11818
  let thinkState = createThinkParserState();
11627
11819
  let thinkingFirstAt = null;
11628
11820
  let thinkingPreview = "";
11629
- let tuiThinkingReported = false;
11630
- const clearTuiThinkingLabel = () => {
11631
- if (!tuiThinkingReported) return;
11632
- tuiThinkingReported = false;
11633
- options.activityReporter?.(null);
11634
- };
11635
11821
  const markThinkingDelta = (chunk) => {
11636
- if (assistantLabelManaged) {
11637
- if (!tuiThinkingReported && !streamedAssistantText) {
11638
- tuiThinkingReported = true;
11639
- options.activityReporter?.(t("thinkingActive"));
11640
- }
11641
- return;
11642
- }
11643
11822
  if (!showThinking) return;
11644
- if (streamedAssistantText) return;
11823
+ if (streamedAssistantText || assistantLabelManaged && pendingTuiNarration) return;
11645
11824
  if (thinkingFirstAt === null) {
11646
11825
  thinkingFirstAt = Date.now();
11647
11826
  thinkingPreview = "";
11648
11827
  }
11649
11828
  thinkingPreview = appendThinkingPreview(thinkingPreview, chunk);
11650
- spinner.setThinkingHint(thinkingPreview);
11829
+ if (!assistantLabelManaged) {
11830
+ spinner.setThinkingHint(thinkingPreview);
11831
+ }
11651
11832
  reportThinkingProgress();
11652
11833
  };
11653
11834
  const reportThinkingProgress = () => {
@@ -11657,14 +11838,15 @@ function createCliTurnOutput(params) {
11657
11838
  options.activityReporter?.(label);
11658
11839
  };
11659
11840
  const endThinkingPhase = () => {
11660
- clearTuiThinkingLabel();
11661
11841
  if (thinkingFirstAt === null) return;
11662
11842
  const seconds = Math.max(0, Math.round((Date.now() - thinkingFirstAt) / 1e3));
11663
11843
  thinkingFirstAt = null;
11664
11844
  thinkingPreview = "";
11665
- spinner.stop();
11845
+ if (!assistantLabelManaged) {
11846
+ spinner.stop();
11847
+ }
11666
11848
  options.activityReporter?.(null);
11667
- if (seconds >= 1) {
11849
+ if (!assistantLabelManaged && seconds >= 1) {
11668
11850
  options.output.write(`${dimCliText(t("thinkingTraceLine", formatElapsed(seconds)))}
11669
11851
  `);
11670
11852
  }
@@ -12288,11 +12470,15 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
12288
12470
  return null;
12289
12471
  }
12290
12472
 
12291
- // packages/cli/idleHeapRelease.ts
12473
+ // packages/agent-runtime/idleHeapRelease.ts
12292
12474
  var IDLE_HEAP_RELEASE_DELAY_MS = 2e3;
12475
+ function isIdleHeapReleaseDisabled(env, disableEnvVar) {
12476
+ return env?.[disableEnvVar] === "0";
12477
+ }
12293
12478
  function releaseHeapPages(options = {}) {
12294
12479
  const env = options.env ?? process.env;
12295
- if (env.NOLO_TUI_IDLE_HEAP_RELEASE === "0") return;
12480
+ const disableEnvVar = options.disableEnvVar ?? "NOLO_TUI_IDLE_HEAP_RELEASE";
12481
+ if (isIdleHeapReleaseDisabled(env, disableEnvVar)) return;
12296
12482
  const bun = "bun" in options ? options.bun : globalThis.Bun;
12297
12483
  if (typeof bun?.gc !== "function" || typeof bun?.shrink !== "function") return;
12298
12484
  try {
@@ -12302,10 +12488,11 @@ function releaseHeapPages(options = {}) {
12302
12488
  }
12303
12489
  }
12304
12490
  function createIdleHeapReleaser(options = {}) {
12305
- const env = options.env ?? process.env;
12491
+ const disableEnvVar = options.disableEnvVar ?? "NOLO_TUI_IDLE_HEAP_RELEASE";
12492
+ const hasExplicitEnv = "env" in options;
12306
12493
  const bun = "bun" in options ? options.bun : globalThis.Bun;
12307
- const disabled = env.NOLO_TUI_IDLE_HEAP_RELEASE === "0" || typeof bun?.gc !== "function" || typeof bun?.shrink !== "function";
12308
- if (disabled) return { schedule() {
12494
+ const disabledAtCreation = hasExplicitEnv && isIdleHeapReleaseDisabled(options.env, disableEnvVar) || typeof bun?.gc !== "function" || typeof bun?.shrink !== "function";
12495
+ if (disabledAtCreation) return { schedule() {
12309
12496
  }, cancel() {
12310
12497
  } };
12311
12498
  const delayMs = options.delayMs ?? IDLE_HEAP_RELEASE_DELAY_MS;
@@ -12316,20 +12503,26 @@ function createIdleHeapReleaser(options = {}) {
12316
12503
  });
12317
12504
  const clearTimer = options.clearTimer ?? ((handle) => clearTimeout(handle));
12318
12505
  let pending = null;
12506
+ const currentEnv = () => hasExplicitEnv ? options.env : process.env;
12507
+ const cancel = () => {
12508
+ if (pending === null) return;
12509
+ clearTimer(pending);
12510
+ pending = null;
12511
+ };
12319
12512
  const release = () => {
12320
12513
  pending = null;
12321
- releaseHeapPages({ env, bun });
12514
+ releaseHeapPages({ env: currentEnv(), disableEnvVar, bun });
12322
12515
  };
12323
12516
  return {
12324
12517
  schedule() {
12518
+ if (isIdleHeapReleaseDisabled(currentEnv(), disableEnvVar)) {
12519
+ cancel();
12520
+ return;
12521
+ }
12325
12522
  if (pending !== null) clearTimer(pending);
12326
12523
  pending = setTimer(release, delayMs);
12327
12524
  },
12328
- cancel() {
12329
- if (pending === null) return;
12330
- clearTimer(pending);
12331
- pending = null;
12332
- }
12525
+ cancel
12333
12526
  };
12334
12527
  }
12335
12528
 
@@ -12374,7 +12567,7 @@ function isBalanceExhaustedError(error) {
12374
12567
 
12375
12568
  // packages/cli/client/agentRun.ts
12376
12569
  async function loadRunLocalAgentTurn() {
12377
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-T7BX2WGL.js");
12570
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-5YN4D5WT.js");
12378
12571
  return runLocalAgentTurn;
12379
12572
  }
12380
12573
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -12422,7 +12615,7 @@ function parseEmbeddedBalanceDetails(message) {
12422
12615
  function parseContextLengthDetails(message) {
12423
12616
  let max;
12424
12617
  let requested;
12425
- const maxMatch = message.match(/maximum context length\s+(?:is|of)\s*(\d+)/i);
12618
+ const maxMatch = message.match(/maximum context length\s+(?:is|of)\s*(\d+)/i) ?? message.match(/maximum number of tokens allowed(?:\s*(?:is|of))?\s*[:=]?\s*(\d+)/i) ?? message.match(/exceeds?\s+(?:the\s+)?(?:model(?:'s)?\s+)?maximum(?:\s+context)?\s+(?:length|limit|tokens?)\s*(?:is|of|:)?\s*(\d+)/i);
12426
12619
  if (maxMatch) {
12427
12620
  max = maxMatch[1];
12428
12621
  }
@@ -12647,6 +12840,12 @@ function looksLikeRateLimitedText(message) {
12647
12840
  return EXTRA_RATE_LIMIT_TEXT_RE.test(message) || QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(message));
12648
12841
  }
12649
12842
  var AUTH_TEXT_SIGNAL_RE = /\b401\b|unauthori[sz]ed|invalid[_\s-]?(?:api[_\s-]?key|token|credential)s?|(?:api[_\s-]?key|token|credential)s?[_\s-](?:invalid|expired|rejected|missing|not[_\s-]?found)|authentication[_\s-]?(?:error|failed|required)/i;
12843
+ function isAuthFailureError(error) {
12844
+ if (!error) return false;
12845
+ const msg = toErrorMessage(error);
12846
+ if (!msg) return false;
12847
+ return AUTH_TEXT_SIGNAL_RE.test(msg) || classifyLocalRunError(msg).kind === "auth";
12848
+ }
12650
12849
  var QUOTA_EXHAUSTED_EXTRA_RE = /insufficient[_\s-]?(?:quota|balance|credits?)|余额不足|额度已?用尽/i;
12651
12850
  function looksLikeQuotaExhaustedText(message) {
12652
12851
  return isQuotaExhaustedText(message) || QUOTA_EXHAUSTED_EXTRA_RE.test(message);
@@ -13073,6 +13272,12 @@ function formatLocalTurnFailureLine(error) {
13073
13272
  }
13074
13273
  if (isMissingBatchReceiptFailure(message)) {
13075
13274
  return `[nolo] ${describeMissingBatchReceipt()}.
13275
+ `;
13276
+ }
13277
+ if (isContextOverflowText(message)) {
13278
+ const details = parseContextLengthDetails(message);
13279
+ const shownMessage = details.requested && details.max ? t("contextLengthExceeded", details.requested, details.max) : details.max ? t("contextLengthExceededLimitOnly", details.max) : t("contextLengthExceededGeneric");
13280
+ return `[nolo] ${shownMessage}
13076
13281
  `;
13077
13282
  }
13078
13283
  if (error?.code === "LLM_REQUEST_TIMEOUT") {
@@ -13133,7 +13338,11 @@ function describeLocalRunFailure(message, rawError) {
13133
13338
  where: PLATFORM_TRANSPORT_RE.test(message) ? "server chat proxy" : "local provider"
13134
13339
  });
13135
13340
  }
13136
- if (/maximum context length/i.test(message)) {
13341
+ if (isLocalContextCoverageFailure(rawError ?? message)) {
13342
+ return `[nolo] ${describeContextRefusal(contextRefusalDiagnostics(rawError))}
13343
+ `;
13344
+ }
13345
+ if (isContextOverflowText(message)) {
13137
13346
  const details = parseContextLengthDetails(message);
13138
13347
  const shownMessage = details.requested && details.max ? t("contextLengthExceeded", details.requested, details.max) : details.max ? t("contextLengthExceededLimitOnly", details.max) : t("contextLengthExceededGeneric");
13139
13348
  return `[nolo] ${shownMessage}
@@ -13166,10 +13375,6 @@ function describeLocalRunFailure(message, rawError) {
13166
13375
  if (isCliBatchPhaseFailure(rawError)) {
13167
13376
  return describeCliBatchPhaseFailure(rawError);
13168
13377
  }
13169
- if (isLocalContextCoverageFailure(rawError ?? message)) {
13170
- return `[nolo] ${describeContextRefusal(contextRefusalDiagnostics(rawError))}
13171
- `;
13172
- }
13173
13378
  if (isMissingBatchReceiptFailure(message)) {
13174
13379
  return `[nolo] ${describeMissingBatchReceipt()}.
13175
13380
  `;
@@ -17440,17 +17645,17 @@ export {
17440
17645
  setActiveThemeMode,
17441
17646
  setActiveBrightness,
17442
17647
  detectSystemBrightnessFromEnv,
17443
- resolveTuiBrightnessSignal,
17444
17648
  resolveTuiThemeMode,
17445
17649
  themeColorSequence,
17446
17650
  resetWorkspaceThemeState,
17447
17651
  applyDetectedBackground,
17448
17652
  renderSurfaceLine,
17449
17653
  surfaceBackgroundSequence,
17450
- composerSurfaceBackgroundSequence,
17451
- userSurfaceBackgroundSequence,
17452
17654
  themeText,
17453
17655
  tuiRenderThemeFingerprint,
17656
+ MAX_URL_LENGTH,
17657
+ normalizeHttpUrl,
17658
+ openExternalUrl,
17454
17659
  setMathRenderingEnabled,
17455
17660
  polishBreathInsertsBlankBetween,
17456
17661
  formatAssistantDisplay,
@@ -17465,6 +17670,7 @@ export {
17465
17670
  allocateCollapsedPaste,
17466
17671
  releaseCollapsedPaste,
17467
17672
  clearCollapsedPasteStore,
17673
+ expandCollapsedPastes,
17468
17674
  replaceCollapsedPastesWithReferences,
17469
17675
  releaseCollapsedPasteReferences,
17470
17676
  expandRangeToCollapsedPasteChips,
@@ -17475,6 +17681,7 @@ export {
17475
17681
  describeContextRefusal,
17476
17682
  inspectLocalRunWorkspace,
17477
17683
  isBalanceExhaustedError,
17684
+ isAuthFailureError,
17478
17685
  OWNER_OAUTH_UNAVAILABLE_HINT,
17479
17686
  isOwnerOAuthUnavailableError,
17480
17687
  isInvalidGrantError,