nolo-cli 0.29.2 → 0.30.0-alpha.2

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 (135) hide show
  1. package/{_executeModel-BFVTGZXE.js → _executeModel-VBHHG7LT.js} +62 -68
  2. package/{action-LG32A6DJ.js → action-FENWPT3C.js} +14 -15
  3. package/{addContentAction-MPGMBJTQ.js → addContentAction-Z5S5ZQ7I.js} +12 -12
  4. package/{addDialogAgentAction-ZH23WDID.js → addDialogAgentAction-VUNVD2XR.js} +11 -11
  5. package/{agentDeleteCommand-4S4STG42.js → agentDeleteCommand-LLGZXUYJ.js} +60 -39
  6. package/{agentEmailCommands-3F4IP4DI.js → agentEmailCommands-LC2FPN6G.js} +76 -81
  7. package/{agentGrantCommands-JNDE4RWR.js → agentGrantCommands-E7ZZFRHK.js} +2 -1
  8. package/{agentListCommands-JCRV2XF6.js → agentListCommands-A6OBQ3QX.js} +57 -40
  9. package/{agentMachineCommands-KYXPYSFP.js → agentMachineCommands-4O4Q5B5X.js} +53 -35
  10. package/{agentPullCommand-ZZGU5KOY.js → agentPullCommand-4V36XNGV.js} +4 -3
  11. package/{agentRecordCommands-UADUPIXO.js → agentRecordCommands-W22RIQRV.js} +73 -78
  12. package/{agentRunCommand-MJWSR53W.js → agentRunCommand-V4OBU4FB.js} +77 -82
  13. package/{agentRunControl-SNUKXN6J.js → agentRunControl-AKBN2366.js} +13 -1
  14. package/{agentRuntimeLocal-PC5RRRPT.js → agentRuntimeLocal-I57YSGH4.js} +48 -30
  15. package/{agentSlice-C5OYLNBT.js → agentSlice-3ZHY7RAO.js} +12 -13
  16. package/{appDeleteCommands-ZXODZ5AD.js → appDeleteCommands-DJJF466K.js} +53 -35
  17. package/{appDeployCommands-AWC6JPZH.js → appDeployCommands-WJZGIOEZ.js} +53 -35
  18. package/{appDeployStatusCommands-74NXMDAI.js → appDeployStatusCommands-ICYXUJNO.js} +53 -35
  19. package/{appGetCommands-6YGIAP5L.js → appGetCommands-UOCWYJPV.js} +53 -35
  20. package/{appListCommands-DZWBHMNK.js → appListCommands-EOKWTXPW.js} +53 -35
  21. package/{authCommand-XMQHBK5L.js → authCommand-H5KE7K7K.js} +16 -16
  22. package/{authCommands-JSOG2H4E.js → authCommands-CXJ6PI2O.js} +7 -7
  23. package/{chunk-OEWEE4VW.js → chunk-2XM5KUNE.js} +4 -2
  24. package/{chunk-7H3UTGPM.js → chunk-3AUWC6EM.js} +82 -3
  25. package/{chunk-HEXXIS77.js → chunk-3RIWR23B.js} +1 -1
  26. package/{chunk-R7LOFGRE.js → chunk-446VANPP.js} +18 -14
  27. package/{chunk-RZNYL4LW.js → chunk-4SAV7BD7.js} +65 -1
  28. package/{chunk-QC6ZWDSV.js → chunk-56IUA7RU.js} +3 -3
  29. package/{chunk-R3JSTDQO.js → chunk-66O5MZYH.js} +1 -1
  30. package/{chunk-PSK2RUHV.js → chunk-7CD24PU4.js} +360 -2
  31. package/{chunk-G2BZ43DV.js → chunk-A4JDTA5T.js} +13 -13
  32. package/{chunk-DZ3XJVET.js → chunk-AOS5IN2I.js} +1 -1
  33. package/{chunk-SKDNBYZK.js → chunk-BOL2D2JW.js} +1 -1
  34. package/{chunk-YTA2QOEE.js → chunk-CAENRKNJ.js} +15 -0
  35. package/{chunk-2TYLTEAH.js → chunk-CV6I4HBA.js} +1 -1
  36. package/chunk-DCDL3GC4.js +171 -0
  37. package/{chunk-FVOSIYXM.js → chunk-DCWBP2O7.js} +42 -393
  38. package/{chunk-OLWMGSW2.js → chunk-DI6MXJK5.js} +37 -37
  39. package/{chunk-HRPWRVBI.js → chunk-DKRT67FG.js} +11 -11
  40. package/{chunk-L6RBX4L4.js → chunk-DWQNDGO7.js} +20 -8
  41. package/{chunk-VKBTAQWT.js → chunk-FS5TTXPS.js} +6 -6
  42. package/chunk-G5JHHUAK.js +73 -0
  43. package/{chunk-TOGGHWHI.js → chunk-G6VITLCZ.js} +3 -3
  44. package/{chunk-RJBTU7AS.js → chunk-GAGUBI42.js} +302 -14
  45. package/{chunk-NXMJ55RU.js → chunk-GVKTKT3O.js} +3 -3
  46. package/{chunk-5ZXNLOAG.js → chunk-HI7QZNWX.js} +17 -10
  47. package/{chunk-DF7SMWEV.js → chunk-HLG6GAUD.js} +1 -1
  48. package/{chunk-MQRZ5QUH.js → chunk-IXZX5CJK.js} +1 -1
  49. package/{chunk-IC7W63RM.js → chunk-IZ3CBMD5.js} +3 -3
  50. package/{chunk-VHBWHNVT.js → chunk-K6QEHQZ3.js} +8 -4
  51. package/chunk-KW47OSRJ.js +3246 -0
  52. package/{chunk-Q5RXHXKU.js → chunk-KWKD3BCC.js} +189 -122
  53. package/{chunk-L65QKSVJ.js → chunk-L3GCUVOH.js} +1 -1
  54. package/{chunk-4BDPDTJU.js → chunk-L3VQOVKK.js} +8 -8
  55. package/{chunk-HALKDXKP.js → chunk-MEUZFIAJ.js} +8 -4
  56. package/{chunk-H5S4XUGI.js → chunk-MMCVBEAD.js} +174 -149
  57. package/{chunk-XOIF2TNF.js → chunk-OB6FBSH3.js} +13 -0
  58. package/chunk-OYK7PA5U.js +1707 -0
  59. package/{chunk-6HTWA77J.js → chunk-Q24P6TUS.js} +1 -1
  60. package/{chunk-GMJS5AYP.js → chunk-QLV2GKU5.js} +16 -178
  61. package/{chunk-WMB7GVPN.js → chunk-SWOTB2TX.js} +134 -1166
  62. package/{chunk-GC34RRTQ.js → chunk-SWYMCHM7.js} +1 -69
  63. package/{chunk-BBGRJB5E.js → chunk-SZ5CBYMZ.js} +4 -4
  64. package/chunk-T27IEBNQ.js +149 -0
  65. package/{chunk-WX3ZOSTL.js → chunk-T3Y5EMJS.js} +24 -26
  66. package/{chunk-UFL6WHHJ.js → chunk-THTAR67C.js} +1056 -137
  67. package/{chunk-2FX23RGA.js → chunk-TJYWZ3LO.js} +4 -4
  68. package/{chunk-KEF5OBOZ.js → chunk-UKC5HU2C.js} +33 -27
  69. package/{chunk-HRJEPMZY.js → chunk-UTQZ73QQ.js} +2 -2
  70. package/{chunk-GT3GG2H7.js → chunk-VSTUQGLT.js} +1 -1
  71. package/{chunk-32ZM6HVI.js → chunk-W2YKDXT7.js} +95 -95
  72. package/{chunk-L3QFIBZG.js → chunk-WTGCTVJG.js} +1 -1
  73. package/{chunk-XS7UPVR7.js → chunk-XD5NQEOH.js} +5 -5
  74. package/{chunk-WSQLK2KR.js → chunk-XFGM5PJP.js} +6 -6
  75. package/{chunk-JSB4N6NU.js → chunk-YLADSPDU.js} +3 -3
  76. package/{chunk-FRN5QOKN.js → chunk-YWGSCF37.js} +19 -4
  77. package/{codingSkills-EN6Z6G6U.js → codingSkills-V35TRR4Y.js} +1 -2
  78. package/{createAgentAutomationAction-BK4UZJKU.js → createAgentAutomationAction-3GMH6ORX.js} +30 -37
  79. package/{createDialogAction-MJJUI2MK.js → createDialogAction-R5MCL4RE.js} +32 -38
  80. package/{createPageAction-YMZ7K363.js → createPageAction-QYTG656R.js} +43 -50
  81. package/{dbSlice-6QJYQUBV.js → dbSlice-OBV7VFCF.js} +11 -11
  82. package/{deleteFile-WDZ3VM7B.js → deleteFile-AC45HYSM.js} +5 -5
  83. package/{dialogCommands-OKH45ASS.js → dialogCommands-NUQGIXVZ.js} +53 -37
  84. package/{dialogSlice-UDOKNDHB.js → dialogSlice-CFDECXEU.js} +27 -34
  85. package/{docCreateCommands-MCLMR4TE.js → docCreateCommands-UNFCXB5N.js} +52 -36
  86. package/{docDeleteCommands-ONDHI7JV.js → docDeleteCommands-NG5IVKE5.js} +54 -38
  87. package/{docReadCommands-FCXBMISW.js → docReadCommands-6J7MUUX6.js} +52 -36
  88. package/{docStore-N66O4CGH.js → docStore-MZZWJM4F.js} +28 -35
  89. package/{docUpdateCommands-T3XN6XOX.js → docUpdateCommands-6AW3VZOX.js} +55 -39
  90. package/{fetchMessages-W4IKHPCS.js → fetchMessages-VPPQDDZ4.js} +3 -3
  91. package/{getPricing-X6I23RN6.js → getPricing-XQYSSVV6.js} +6 -7
  92. package/{handleSendMessageAction-KC4AYUZP.js → handleSendMessageAction-IU2QNTLM.js} +30 -37
  93. package/index.js +72 -72
  94. package/{localDialogRead-UFLBS6OT.js → localDialogRead-P72W2U2R.js} +1 -1
  95. package/{machineCommands-DIMRFA3Y.js → machineCommands-Z2QEWTHZ.js} +76 -81
  96. package/{machineWsRunDispatch-2DYJZI6Z.js → machineWsRunDispatch-SJTYHZHN.js} +71 -76
  97. package/{models-YT32CTT5.js → models-WDUTTYFS.js} +2 -2
  98. package/{offlineMarxistsAgentCommand-5OOWZLJI.js → offlineMarxistsAgentCommand-E6LUG63A.js} +6 -2
  99. package/package.json +1 -1
  100. package/{read-C7Y6LSBM.js → read-QK7ZRX6G.js} +6 -6
  101. package/{readDocTool-TOHRYJHP.js → readDocTool-EYDMVRBL.js} +2 -1
  102. package/{readlineWorkspace-HUPHMLDG.js → readlineWorkspace-BGKPABK4.js} +208 -183
  103. package/{removeDialogAgentAction-WZXPOH5S.js → removeDialogAgentAction-TBW3UZJW.js} +15 -16
  104. package/{runAgentClientLoop-5TGSUKHV.js → runAgentClientLoop-N3YDLTMS.js} +61 -66
  105. package/{setDialogExtraReferencesAction-INZY2ENI.js → setDialogExtraReferencesAction-Q3ANF2NR.js} +12 -12
  106. package/{setPrimaryDialogAgentAction-WCVLPYCF.js → setPrimaryDialogAgentAction-FQ5R3EFJ.js} +15 -16
  107. package/{settingSlice-IDUM4LWU.js → settingSlice-JKKV2T7O.js} +13 -14
  108. package/{skillDiscovery-ITA7BI7A.js → skillDiscovery-I3QRA7NE.js} +2 -2
  109. package/{spaceCommands-XSSDB3YK.js → spaceCommands-R6AEQNLG.js} +57 -40
  110. package/{spaceSlice-BXDCO6PT.js → spaceSlice-MCH7RLLP.js} +27 -34
  111. package/{streamAgentChatTurn-HRFMVSVC.js → streamAgentChatTurn-Q4U2CVMI.js} +130 -1300
  112. package/{switchDialogAgentAction-YBFFCBOD.js → switchDialogAgentAction-QQGVE4SL.js} +11 -11
  113. package/{toolApiClient-WVTUYOFM.js → toolApiClient-ARGFDJAG.js} +2 -2
  114. package/{tools-5V6FHWQU.js → tools-Y3UBLLYW.js} +50 -56
  115. package/{tuiSummaryLlmCaller-GCUPULOV.js → tuiSummaryLlmCaller-4474IBTI.js} +12 -12
  116. package/{updateDialogTitleAction-W62C4W4K.js → updateDialogTitleAction-3J7GH67I.js} +35 -43
  117. package/chunk-5CS33IBL.js +0 -301
  118. package/chunk-5MMAK75Q.js +0 -15
  119. package/chunk-HYSJHRWD.js +0 -669
  120. package/chunk-MRC4Q34M.js +0 -188
  121. package/chunk-SIZQB7BD.js +0 -91
  122. package/chunk-UEOPA6MV.js +0 -641
  123. package/chunk-VIDPVFP3.js +0 -20
  124. package/chunk-W2LZV5GE.js +0 -231
  125. package/chunk-Y5GCAMGP.js +0 -9
  126. package/chunk-YYLHWIW6.js +0 -48
  127. package/chunk-Z54ZAZZC.js +0 -1791
  128. package/chunk-ZZ2MH7LE.js +0 -84
  129. package/{chunk-OMP5L5NF.js → chunk-44HACRCK.js} +3 -3
  130. package/{chunk-ZVZMT3EA.js → chunk-KWCLUYGQ.js} +3 -3
  131. package/{chunk-NRY4GCKJ.js → chunk-WHLVPK32.js} +3 -3
  132. package/{chunk-RQSOAMPJ.js → chunk-Z5MXSEOJ.js} +2 -2
  133. package/{chunk-XMLRJUU5.js → chunk-ZFTCLBEX.js} +9 -9
  134. package/{runtimeDoctorCommands-HSU632DY.js → runtimeDoctorCommands-E2OUORHK.js} +3 -3
  135. package/{tableCommands-QSZILI7I.js → tableCommands-PRJNWN6Q.js} +6 -6
@@ -3,11 +3,9 @@ import {
3
3
  normalizeDialogRecord,
4
4
  readDialogSnapshot,
5
5
  sortDialogs
6
- } from "./chunk-4BDPDTJU.js";
6
+ } from "./chunk-L3VQOVKK.js";
7
7
  import {
8
8
  ANSI_ESCAPE_REGEX,
9
- CLI_AUTO_TIER_AGENT_KEY_TABLE,
10
- CLI_IMAGE_AGENT_KEY,
11
9
  COLLAPSED_PASTE_PLACEHOLDER_RE,
12
10
  THEME_PALETTES,
13
11
  allocateCollapsedPaste,
@@ -59,8 +57,8 @@ import {
59
57
  visibleWidth,
60
58
  wrapTextToLines,
61
59
  wrapTranscriptLine
62
- } from "./chunk-Q5RXHXKU.js";
63
- import "./chunk-DZ3XJVET.js";
60
+ } from "./chunk-KWKD3BCC.js";
61
+ import "./chunk-AOS5IN2I.js";
64
62
  import "./chunk-6HYVJV7B.js";
65
63
  import {
66
64
  listFavoriteAgentIdsAcrossServers,
@@ -68,12 +66,12 @@ import {
68
66
  listRemoteAgents,
69
67
  listRemoteAgentsAcrossServers,
70
68
  normalizeListedAgent
71
- } from "./chunk-NXMJ55RU.js";
69
+ } from "./chunk-GVKTKT3O.js";
72
70
  import "./chunk-ID4G2MAR.js";
73
71
  import {
74
72
  listUserRecordsFromServers,
75
73
  readLiveDbRecordAfterTombstoneMerge
76
- } from "./chunk-DF7SMWEV.js";
74
+ } from "./chunk-HLG6GAUD.js";
77
75
  import {
78
76
  createCliLocalRuntimeAdapter,
79
77
  initCliLocale,
@@ -81,8 +79,17 @@ import {
81
79
  readTimestamp,
82
80
  setCliLocale,
83
81
  t
84
- } from "./chunk-H5S4XUGI.js";
85
- import "./chunk-WX3ZOSTL.js";
82
+ } from "./chunk-MMCVBEAD.js";
83
+ import "./chunk-T3Y5EMJS.js";
84
+ import {
85
+ checkStaleRun,
86
+ isRunRecordClaimed,
87
+ readRunRecord
88
+ } from "./chunk-4SAV7BD7.js";
89
+ import "./chunk-JDSUTNYY.js";
90
+ import "./chunk-WJRJDX2W.js";
91
+ import "./chunk-LM6IYQ3F.js";
92
+ import "./chunk-JBTJAPUF.js";
86
93
  import {
87
94
  getReadableCliDb
88
95
  } from "./chunk-WFHXMLHZ.js";
@@ -90,114 +97,55 @@ import {
90
97
  deleteDbRecord,
91
98
  queryUserRecords,
92
99
  readDbRecord
93
- } from "./chunk-QC6ZWDSV.js";
94
- import "./chunk-R3JSTDQO.js";
100
+ } from "./chunk-56IUA7RU.js";
101
+ import "./chunk-66O5MZYH.js";
95
102
  import {
96
103
  NOLO_DEFAULT_AGENT_KEY,
97
104
  resolveCliAgentKeyInput
98
- } from "./chunk-VHBWHNVT.js";
99
- import "./chunk-LTRXGFMS.js";
100
- import "./chunk-W2LZV5GE.js";
101
- import "./chunk-JEXVIMYZ.js";
102
- import {
103
- prepareTools
104
- } from "./chunk-32ZM6HVI.js";
105
- import "./chunk-2FX23RGA.js";
106
- import "./chunk-WMB7GVPN.js";
107
- import "./chunk-RQSOAMPJ.js";
108
- import "./chunk-GC34RRTQ.js";
109
- import "./chunk-HRJEPMZY.js";
110
- import "./chunk-KQHGZWSV.js";
111
- import "./chunk-3LY4F7SV.js";
112
- import "./chunk-VF4K2QE6.js";
113
- import "./chunk-VKBTAQWT.js";
114
- import "./chunk-6HTWA77J.js";
115
- import "./chunk-VP4WJWKW.js";
116
- import "./chunk-63W5N6P3.js";
117
- import "./chunk-WJRJDX2W.js";
118
- import "./chunk-GMJS5AYP.js";
119
- import {
120
- extractReferenceKeysFromMessage
121
- } from "./chunk-UFL6WHHJ.js";
122
- import {
123
- buildBuiltinSummaryContent
124
- } from "./chunk-XOIF2TNF.js";
125
- import "./chunk-MRC4Q34M.js";
126
- import "./chunk-SIZQB7BD.js";
127
- import "./chunk-RJBTU7AS.js";
128
- import "./chunk-YYLHWIW6.js";
129
- import "./chunk-CWMSB67P.js";
130
- import "./chunk-IC7W63RM.js";
131
- import "./chunk-5RGU3J7P.js";
132
- import "./chunk-M76ECQRD.js";
133
- import "./chunk-L65QKSVJ.js";
105
+ } from "./chunk-K6QEHQZ3.js";
134
106
  import {
135
107
  buildSkillDiscoveryContextBlock,
136
108
  buildSkillDiscoveryContextLayer
137
- } from "./chunk-ZVZMT3EA.js";
138
- import "./chunk-7H3UTGPM.js";
139
- import {
140
- expandEnabledPacks
141
- } from "./chunk-CF7S2RYZ.js";
142
- import "./chunk-ZWJOGMKH.js";
143
- import "./chunk-WZSRQNQG.js";
109
+ } from "./chunk-KWCLUYGQ.js";
144
110
  import {
145
111
  buildLocalWorkspaceOpenAiTools,
146
112
  buildLocalWorkspaceToolset,
147
113
  getProcessRegistry
148
- } from "./chunk-KEF5OBOZ.js";
114
+ } from "./chunk-UKC5HU2C.js";
149
115
  import "./chunk-ZNFJWEN4.js";
150
- import "./chunk-HALKDXKP.js";
116
+ import "./chunk-MEUZFIAJ.js";
117
+ import "./chunk-LTRXGFMS.js";
118
+ import "./chunk-ATNTHIZI.js";
151
119
  import "./chunk-OIQPORYI.js";
120
+ import "./chunk-T27IEBNQ.js";
121
+ import "./chunk-JEXVIMYZ.js";
122
+ import {
123
+ prepareTools
124
+ } from "./chunk-W2YKDXT7.js";
152
125
  import {
153
- readCommandActionGatePayload,
154
- resolveAgentImageInputSupport
155
- } from "./chunk-Z54ZAZZC.js";
126
+ readCommandActionGatePayload
127
+ } from "./chunk-KW47OSRJ.js";
156
128
  import "./chunk-N7J63Q6C.js";
129
+ import {
130
+ buildAgentsMdLayer,
131
+ partitionScopedBlocks,
132
+ renderTurnContextBlocksWithScope
133
+ } from "./chunk-PJY5AH5A.js";
134
+ import "./chunk-TJYWZ3LO.js";
157
135
  import {
158
136
  buildCurrentTimeBlock,
159
137
  buildIdentityBlock,
160
138
  buildRuntimeGuidanceBlocks,
161
139
  resolveToolGuidedSections
162
- } from "./chunk-PSK2RUHV.js";
140
+ } from "./chunk-7CD24PU4.js";
163
141
  import "./chunk-D34RI6NI.js";
164
142
  import {
165
143
  resolvePlatformAuthToken
166
- } from "./chunk-XS7UPVR7.js";
167
- import "./chunk-UEOPA6MV.js";
168
- import "./chunk-2MBTWINN.js";
169
- import {
170
- DEFAULT_CONTEXT_WINDOW,
171
- estimateTokenCount,
172
- getModelContextWindow,
173
- planCompression,
174
- serializeMessageContent
175
- } from "./chunk-HYSJHRWD.js";
176
- import {
177
- clipCompactText
178
- } from "./chunk-5MMAK75Q.js";
179
- import "./chunk-5CS33IBL.js";
180
- import "./chunk-JZPBVBIY.js";
181
- import "./chunk-GT3GG2H7.js";
182
- import "./chunk-ZHXJ6M7T.js";
183
- import {
184
- buildAgentsMdLayer,
185
- partitionScopedBlocks,
186
- renderTurnContextBlocksWithScope
187
- } from "./chunk-PJY5AH5A.js";
144
+ } from "./chunk-XD5NQEOH.js";
188
145
  import "./chunk-4PWB7JRR.js";
189
- import {
190
- canonicalizeToolNames
191
- } from "./chunk-ZZ2MH7LE.js";
192
- import "./chunk-OMP5L5NF.js";
193
- import "./chunk-3ASDTTEI.js";
194
- import {
195
- compactWhitespace
196
- } from "./chunk-DWLEOOGR.js";
197
- import {
198
- checkStaleRun,
199
- readRunRecord
200
- } from "./chunk-RZNYL4LW.js";
146
+ import "./chunk-2MBTWINN.js";
147
+ import "./chunk-SWOTB2TX.js";
148
+ import "./chunk-Z5MXSEOJ.js";
201
149
  import {
202
150
  clipText,
203
151
  formatDuration,
@@ -209,13 +157,50 @@ import {
209
157
  runShowsLogTail,
210
158
  shortRunId
211
159
  } from "./chunk-KXKQO4Q6.js";
212
- import "./chunk-JDSUTNYY.js";
213
- import "./chunk-JBTJAPUF.js";
214
- import "./chunk-ATNTHIZI.js";
215
- import "./chunk-LM6IYQ3F.js";
160
+ import "./chunk-UTQZ73QQ.js";
161
+ import "./chunk-KQHGZWSV.js";
162
+ import "./chunk-OYK7PA5U.js";
163
+ import "./chunk-FS5TTXPS.js";
164
+ import "./chunk-Q24P6TUS.js";
165
+ import "./chunk-G5JHHUAK.js";
166
+ import "./chunk-SWYMCHM7.js";
167
+ import "./chunk-44HACRCK.js";
168
+ import "./chunk-QLV2GKU5.js";
169
+ import "./chunk-DCDL3GC4.js";
170
+ import "./chunk-YWGSCF37.js";
171
+ import "./chunk-3LY4F7SV.js";
172
+ import {
173
+ DEFAULT_CONTEXT_WINDOW,
174
+ estimateTokenCount,
175
+ extractReferenceKeysFromMessage,
176
+ getModelContextWindow,
177
+ planCompression,
178
+ serializeMessageContent
179
+ } from "./chunk-THTAR67C.js";
180
+ import {
181
+ buildBuiltinSummaryContent,
182
+ clipCompactText
183
+ } from "./chunk-OB6FBSH3.js";
184
+ import "./chunk-IZ3CBMD5.js";
185
+ import "./chunk-GAGUBI42.js";
186
+ import "./chunk-JZPBVBIY.js";
187
+ import "./chunk-5RGU3J7P.js";
188
+ import "./chunk-M76ECQRD.js";
216
189
  import {
217
190
  toErrorMessage
218
191
  } from "./chunk-HNMXYYJR.js";
192
+ import {
193
+ compactWhitespace
194
+ } from "./chunk-DWLEOOGR.js";
195
+ import "./chunk-3ASDTTEI.js";
196
+ import "./chunk-YLADSPDU.js";
197
+ import "./chunk-WTGCTVJG.js";
198
+ import "./chunk-CWMSB67P.js";
199
+ import "./chunk-VSTUQGLT.js";
200
+ import "./chunk-ZHXJ6M7T.js";
201
+ import "./chunk-CAENRKNJ.js";
202
+ import "./chunk-63W5N6P3.js";
203
+ import "./chunk-VF4K2QE6.js";
219
204
  import {
220
205
  checkForCliUpdate,
221
206
  runSelfUpdate
@@ -237,35 +222,41 @@ import {
237
222
  import {
238
223
  DEFAULT_NOLO_SERVER_URL
239
224
  } from "./chunk-OLZBQWZU.js";
240
- import "./chunk-L3QFIBZG.js";
241
- import "./chunk-YTA2QOEE.js";
242
- import "./chunk-HRPWRVBI.js";
243
- import "./chunk-R7LOFGRE.js";
244
- import "./chunk-Y5GCAMGP.js";
245
- import "./chunk-UZ6XXCVR.js";
225
+ import "./chunk-DKRT67FG.js";
226
+ import "./chunk-446VANPP.js";
246
227
  import "./chunk-KX6YBIHG.js";
247
- import "./chunk-JSB4N6NU.js";
248
- import "./chunk-G2BZ43DV.js";
249
- import "./chunk-NRY4GCKJ.js";
250
- import "./chunk-WWC7I6TA.js";
251
- import "./chunk-SKDNBYZK.js";
252
- import "./chunk-I42VC5KR.js";
228
+ import "./chunk-A4JDTA5T.js";
229
+ import "./chunk-BOL2D2JW.js";
253
230
  import {
254
231
  asTrimmedLowercaseString
255
232
  } from "./chunk-QSJ3HFEF.js";
256
- import "./chunk-L6RBX4L4.js";
257
- import "./chunk-XMLRJUU5.js";
258
- import "./chunk-R5V5G73M.js";
259
- import "./chunk-GBRG75BQ.js";
260
- import "./chunk-3EUW3WEO.js";
261
- import "./chunk-U6VC4MU4.js";
233
+ import "./chunk-DWQNDGO7.js";
262
234
  import {
263
235
  extractCustomId
264
236
  } from "./chunk-TOW4E763.js";
265
- import "./chunk-KUG52IAP.js";
237
+ import "./chunk-ZFTCLBEX.js";
238
+ import "./chunk-R5V5G73M.js";
266
239
  import "./chunk-LCBAMY2M.js";
267
240
  import "./chunk-4SN6J65J.js";
268
241
  import "./chunk-CF7PE763.js";
242
+ import "./chunk-VP4WJWKW.js";
243
+ import "./chunk-L3GCUVOH.js";
244
+ import "./chunk-WHLVPK32.js";
245
+ import "./chunk-WWC7I6TA.js";
246
+ import "./chunk-GBRG75BQ.js";
247
+ import "./chunk-3EUW3WEO.js";
248
+ import "./chunk-U6VC4MU4.js";
249
+ import "./chunk-KUG52IAP.js";
250
+ import {
251
+ canonicalizeToolNames
252
+ } from "./chunk-3AUWC6EM.js";
253
+ import {
254
+ expandEnabledPacks
255
+ } from "./chunk-CF7S2RYZ.js";
256
+ import "./chunk-ZWJOGMKH.js";
257
+ import "./chunk-WZSRQNQG.js";
258
+ import "./chunk-UZ6XXCVR.js";
259
+ import "./chunk-I42VC5KR.js";
269
260
  import {
270
261
  asOptionalTrimmedString
271
262
  } from "./chunk-G3SUCT4W.js";
@@ -2271,13 +2262,22 @@ function createRunCompletionWatcher(deps) {
2271
2262
  const createdAt = now();
2272
2263
  const lastStatusByRunId = /* @__PURE__ */ new Map();
2273
2264
  const notifiedRunIds = /* @__PURE__ */ new Set();
2265
+ const runDuration = (record) => formatRunAge(
2266
+ {
2267
+ startedAt: readTimestamp(record.startedAt),
2268
+ finishedAt: readTimestamp(record.endedAt ?? record.finishedAt)
2269
+ },
2270
+ now()
2271
+ ) ?? "";
2272
+ const isFailureStatus = (status) => typeof status === "string" && status !== "done";
2274
2273
  const describeRun = (record) => {
2275
2274
  const lines = [
2276
2275
  `runId: ${record.runId}`,
2277
2276
  `agent: ${resolveRunLabel(record)}`,
2278
2277
  `status: ${record.status}`
2279
2278
  ];
2280
- if (typeof record.exitCode === "number") {
2279
+ const verbose = isFailureStatus(record.status);
2280
+ if (verbose && typeof record.exitCode === "number") {
2281
2281
  lines.push(`exitCode: ${record.exitCode}`);
2282
2282
  }
2283
2283
  if (record.dialogId) {
@@ -2287,18 +2287,12 @@ function createRunCompletionWatcher(deps) {
2287
2287
  } else {
2288
2288
  lines.push(`childDialogId: missing (result unpersisted or ephemeral)`);
2289
2289
  }
2290
- const duration = formatRunAge(
2291
- {
2292
- startedAt: readTimestamp(record.startedAt),
2293
- finishedAt: readTimestamp(record.endedAt ?? record.finishedAt)
2294
- },
2295
- now()
2296
- );
2290
+ const duration = runDuration(record);
2297
2291
  if (duration) lines.push(`duration: ${duration}`);
2298
2292
  const recordError = "error" in record && typeof record.error === "string" ? record.error : void 0;
2299
2293
  const note = typeof record.note === "string" ? clipText(record.note, WAKE_NOTE_MAX_CHARS) : typeof recordError === "string" ? clipText(recordError, WAKE_NOTE_MAX_CHARS) : "";
2300
2294
  if (note) lines.push(`note: ${note}`);
2301
- const counters = record.activity?.counters;
2295
+ const counters = verbose ? record.activity?.counters : void 0;
2302
2296
  if (counters && typeof counters.toolCalls === "number" && typeof counters.llmCalls === "number" && typeof counters.fileEdits === "number") {
2303
2297
  lines.push(
2304
2298
  `activity: ${counters.toolCalls} tool calls \xB7 ${counters.llmCalls} llm calls \xB7 ${counters.fileEdits} edits`
@@ -2319,6 +2313,16 @@ function createRunCompletionWatcher(deps) {
2319
2313
  );
2320
2314
  return lines.join("\n");
2321
2315
  };
2316
+ const buildWakeDisplayText = (finished) => {
2317
+ const parts = finished.map((record) => {
2318
+ const mark = isFailureStatus(record.status) ? "\u2717" : "\u2713";
2319
+ const duration = runDuration(record);
2320
+ const label = resolveRunLabel(record);
2321
+ const status = isFailureStatus(record.status) ? ` ${record.status}` : "";
2322
+ return `${mark} ${label}${status}${duration ? ` \xB7 ${duration}` : ""}`;
2323
+ });
2324
+ return `${finished.length} \u6761\u540E\u53F0 run \u5DF2\u5B8C\u6210 \xB7 ${parts.join(" \xB7 ")}`;
2325
+ };
2322
2326
  return {
2323
2327
  observe(records) {
2324
2328
  const finished = [];
@@ -2328,13 +2332,15 @@ function createRunCompletionWatcher(deps) {
2328
2332
  if (!rawRecord || typeof rawRecord.runId !== "string" || !rawRecord.runId) continue;
2329
2333
  const record = rawRecord;
2330
2334
  if (notifiedRunIds.has(record.runId)) continue;
2331
- if (record.ack === true) {
2332
- notifiedRunIds.add(record.runId);
2333
- continue;
2334
- }
2335
2335
  const status = record.status;
2336
2336
  if (typeof status !== "string") continue;
2337
2337
  if (record.parentDialogId !== currentDialogId) continue;
2338
+ if (isRunRecordClaimed(record, now())) {
2339
+ if (!isAgentRunTerminalStatus(status)) {
2340
+ lastStatusByRunId.set(record.runId, status);
2341
+ }
2342
+ continue;
2343
+ }
2338
2344
  const previous = lastStatusByRunId.get(record.runId);
2339
2345
  lastStatusByRunId.set(record.runId, status);
2340
2346
  if (!isAgentRunTerminalStatus(status)) continue;
@@ -2356,7 +2362,8 @@ function createRunCompletionWatcher(deps) {
2356
2362
  const event = {
2357
2363
  kind: "child-run-completed",
2358
2364
  runs: shapes,
2359
- text: summaryText
2365
+ text: summaryText,
2366
+ displayText: buildWakeDisplayText(finished)
2360
2367
  };
2361
2368
  deps.onWake(event);
2362
2369
  },
@@ -3630,7 +3637,6 @@ var SLASH_COMMANDS = [
3630
3637
  "/ctx",
3631
3638
  "/runtime",
3632
3639
  "/tools",
3633
- "/thinking",
3634
3640
  "/switch",
3635
3641
  "/agent",
3636
3642
  "/agents",
@@ -4507,6 +4513,10 @@ function resolveChatSendDecision(input) {
4507
4513
  }
4508
4514
 
4509
4515
  // packages/core/chat/chatQueueStatus.ts
4516
+ function resolveQueuePreviewText(item) {
4517
+ if (typeof item === "string") return item;
4518
+ return item?.event?.displayText ?? item?.text ?? "";
4519
+ }
4510
4520
  function projectChatQueueStatus({
4511
4521
  state,
4512
4522
  maxPreview = 3,
@@ -4515,7 +4525,7 @@ function projectChatQueueStatus({
4515
4525
  const preview = [];
4516
4526
  for (let i = 0; i < Math.min(maxPreview, state.queue.length); i++) {
4517
4527
  const item = state.queue[i];
4518
- const text = typeof item === "string" ? item : item?.text ?? "";
4528
+ const text = resolveQueuePreviewText(item);
4519
4529
  preview.push(text.length > previewCharLimit ? text.slice(0, previewCharLimit) + "\u2026" : text);
4520
4530
  }
4521
4531
  let composerPlaceholderKey = "default";
@@ -4715,6 +4725,18 @@ function finalizeCurrentTurn(history) {
4715
4725
  }
4716
4726
  }
4717
4727
  }
4728
+ function appendLocalTurn(history, command, output) {
4729
+ finalizeCurrentTurn(history);
4730
+ history.turns.push({
4731
+ role: "local",
4732
+ command,
4733
+ content: output
4734
+ });
4735
+ if (history.turns.length > MAX_TUI_HISTORY_TURNS) {
4736
+ history.turns = history.turns.slice(history.turns.length - MAX_TUI_HISTORY_TURNS);
4737
+ }
4738
+ resetStreamingTurnCache();
4739
+ }
4718
4740
  function applyOutputChunkToCurrentTurn(history, chunk) {
4719
4741
  const next = applyTerminalOutputToText(history.currentContent, chunk);
4720
4742
  if (next === history.currentContent) return false;
@@ -4742,7 +4764,7 @@ function fillUserBubbleRow(row, surfaceSeq, contentWidth) {
4742
4764
  }
4743
4765
  return renderSurfaceLine({ text: row, surface: surfaceSeq, padTo: contentWidth });
4744
4766
  }
4745
- function renderTurnBlock(role, content, contentWidth, colorEnabled) {
4767
+ function renderTurnBlock(role, content, contentWidth, colorEnabled, command) {
4746
4768
  content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
4747
4769
  const lines = [];
4748
4770
  if (role === "user") {
@@ -4761,6 +4783,21 @@ function renderTurnBlock(role, content, contentWidth, colorEnabled) {
4761
4783
  ...surfaceSeq ? rows.map((row) => fillUserBubbleRow(row, surfaceSeq, contentWidth)) : rows
4762
4784
  );
4763
4785
  }
4786
+ } else if (role === "local") {
4787
+ const dimSeq = colorEnabled ? "\x1B[2m" : "";
4788
+ const resetSeq = colorEnabled ? "\x1B[0m" : "";
4789
+ if (command) {
4790
+ lines.push(
4791
+ ...wrapTranscriptLine(`${dimSeq}\u203A ${command}${resetSeq}`, contentWidth)
4792
+ );
4793
+ }
4794
+ if (content) {
4795
+ for (const line of content.split("\n")) {
4796
+ lines.push(
4797
+ ...wrapTranscriptLine(`${dimSeq} ${line}${resetSeq}`, contentWidth)
4798
+ );
4799
+ }
4800
+ }
4764
4801
  } else {
4765
4802
  const styledEntry = styleAssistantTurn(content, colorEnabled);
4766
4803
  for (const logicalLine of styledEntry.split("\n")) {
@@ -4894,13 +4931,22 @@ function getAssistantPlainLines(content) {
4894
4931
  assistantPlainLinesCache.set(content, plainLines);
4895
4932
  return plainLines;
4896
4933
  }
4897
- function countTurnLines(role, content, contentWidth) {
4934
+ function countTurnLines(role, content, contentWidth, command) {
4898
4935
  content = content.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
4899
4936
  let count = 0;
4900
4937
  if (role === "user") {
4901
4938
  for (const line of content.split("\n")) {
4902
4939
  count += wrapTranscriptLine(`\u2503 ${line}`, contentWidth, "\u2503 ").length;
4903
4940
  }
4941
+ } else if (role === "local") {
4942
+ if (command) {
4943
+ count += wrapTranscriptLine(`\u203A ${command}`, contentWidth).length;
4944
+ }
4945
+ if (content) {
4946
+ for (const line of content.split("\n")) {
4947
+ count += wrapTranscriptLine(` ${line}`, contentWidth).length;
4948
+ }
4949
+ }
4904
4950
  } else {
4905
4951
  const plainLines = getAssistantPlainLines(content);
4906
4952
  for (let i = 0; i < plainLines.length; i++) {
@@ -4924,7 +4970,7 @@ function buildTurnOffsets(history, contentWidth) {
4924
4970
  if (cached && cached.width === contentWidth) {
4925
4971
  lineCount = cached.count;
4926
4972
  } else {
4927
- lineCount = countTurnLines(turn.role, turn.content, contentWidth);
4973
+ lineCount = countTurnLines(turn.role, turn.content, contentWidth, turn.command);
4928
4974
  turnLineCountCache.set(turn, { width: contentWidth, count: lineCount });
4929
4975
  }
4930
4976
  entries.push({ startRow: offset, lineCount, separatorAbove });
@@ -4944,7 +4990,14 @@ function buildCopyViewLines(history) {
4944
4990
  for (const [index, turn] of turns.entries()) {
4945
4991
  if (index > 0) lines.push("");
4946
4992
  const normalized = stripAnsi(turn.content).replace(/\r\n/g, "\n").replace(/\r/g, "\n");
4947
- lines.push(...normalized.split("\n"));
4993
+ if (turn.role === "local") {
4994
+ if (turn.command) {
4995
+ lines.push(`\u203A ${stripAnsi(turn.command)}`);
4996
+ }
4997
+ lines.push(...normalized.split("\n"));
4998
+ } else {
4999
+ lines.push(...normalized.split("\n"));
5000
+ }
4948
5001
  }
4949
5002
  return lines;
4950
5003
  }
@@ -5008,7 +5061,7 @@ function renderHistory(output, history, inputLines) {
5008
5061
  lines = cached.lines;
5009
5062
  } else {
5010
5063
  renderCacheMissCount += 1;
5011
- lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled);
5064
+ lines = renderTurnBlock(turn.role, turn.content, contentWidth, colorEnabled, turn.command);
5012
5065
  turnLineCache.set(turn, {
5013
5066
  width: contentWidth,
5014
5067
  color: colorEnabled,
@@ -5714,34 +5767,6 @@ async function runAgentChat(scriptDir, state, message, env, output, agentRunner
5714
5767
  );
5715
5768
  }
5716
5769
  }
5717
- const userSelectedAgent = state.agentKey !== DEFAULT_TUI_AGENT_KEY;
5718
- const visionProbeKey = hasImages && userSelectedAgent ? state.agentKey : effectiveAgentKey;
5719
- if (hasImages && effectiveAgentKey !== CLI_IMAGE_AGENT_KEY) {
5720
- let needsVisionSwitch = false;
5721
- if (CLI_AUTO_TIER_AGENT_KEY_TABLE[visionProbeKey]) {
5722
- needsVisionSwitch = true;
5723
- } else {
5724
- const authToken = resolvePlatformAuthToken(env);
5725
- const record = await readDbRecord({
5726
- dbKey: visionProbeKey,
5727
- authToken,
5728
- serverUrl: state.serverUrl,
5729
- fetchImpl: fetch
5730
- }).catch(() => null);
5731
- if (record && !resolveAgentImageInputSupport(record)) {
5732
- needsVisionSwitch = true;
5733
- }
5734
- }
5735
- if (needsVisionSwitch) {
5736
- output.write(
5737
- `
5738
- [nolo] \u5F53\u524D agent \u4E0D\u652F\u6301\u56FE\u7247\u8F93\u5165\uFF0C\u5DF2\u81EA\u52A8\u5207\u6362\u5230 Kimi K2.6
5739
- `
5740
- );
5741
- effectiveAgentKey = CLI_IMAGE_AGENT_KEY;
5742
- effectiveAgentName = "Kimi K2.6";
5743
- }
5744
- }
5745
5770
  let effectiveMessage = message;
5746
5771
  let skillAllowedTools;
5747
5772
  let skillContextBlocks;
@@ -6352,8 +6377,13 @@ async function startTuiWorkspace(options) {
6352
6377
  turnEpoch += 1;
6353
6378
  const myEpoch = turnEpoch;
6354
6379
  history.followBottom = true;
6355
- startTurn(history, "user");
6356
- appendToCurrentTurn(history, message);
6380
+ const isInternalEvent = req.event.kind !== "user";
6381
+ const transcriptText = req.event.kind === "child-run-completed" ? req.event.displayText ?? req.event.text : message;
6382
+ startTurn(history, isInternalEvent ? "assistant" : "user");
6383
+ appendToCurrentTurn(
6384
+ history,
6385
+ isInternalEvent ? dimCliText(transcriptText, resolveCliColorEnabled()) : transcriptText
6386
+ );
6357
6387
  finalizeCurrentTurn(history);
6358
6388
  renderHistoryToOutput();
6359
6389
  if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
@@ -6497,7 +6527,7 @@ async function startTuiWorkspace(options) {
6497
6527
  activeTurnAbort.abort();
6498
6528
  }
6499
6529
  };
6500
- const emitCommandOutput = (text) => {
6530
+ const emitCommandOutput = (text, command = "") => {
6501
6531
  if (!text) return;
6502
6532
  if (!isInteractiveInput(input)) {
6503
6533
  output.write(`${text}
@@ -6505,9 +6535,7 @@ async function startTuiWorkspace(options) {
6505
6535
  return;
6506
6536
  }
6507
6537
  history.followBottom = true;
6508
- startTurn(history, "assistant");
6509
- appendToCurrentTurn(history, text);
6510
- finalizeCurrentTurn(history);
6538
+ appendLocalTurn(history, command, text);
6511
6539
  renderHistoryToOutput();
6512
6540
  if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
6513
6541
  };
@@ -6528,21 +6556,17 @@ async function startTuiWorkspace(options) {
6528
6556
  const previousAgentKey = state.agentKey;
6529
6557
  state = result.nextState;
6530
6558
  const interactive = isInteractiveInput(input);
6531
- if (interactive && result.action?.type !== "chat") {
6532
- history.followBottom = true;
6533
- startTurn(history, "user");
6534
- appendToCurrentTurn(history, line.trim());
6535
- finalizeCurrentTurn(history);
6536
- renderHistoryToOutput();
6537
- if (fixedInput.active) fixedInput.repaint(buffer, cursorPos);
6538
- }
6539
- if (result.output) {
6540
- emitCommandOutput(result.output);
6559
+ if (result.action?.type !== "chat" && result.action?.type !== "exit" && result.output) {
6560
+ emitCommandOutput(result.output, interactive ? line.trim() : "");
6541
6561
  }
6542
6562
  if (state.agentKey !== previousAgentKey) {
6543
6563
  persistExplicitAgentSwitch(previousAgentKey);
6544
6564
  }
6545
- if (result.action?.type === "exit") return true;
6565
+ if (result.action?.type === "exit") {
6566
+ if (result.output) output.write(`${result.output}
6567
+ `);
6568
+ return true;
6569
+ }
6546
6570
  if (result.action?.type === "clear") {
6547
6571
  if (result.action.dialogId) {
6548
6572
  const authToken = resolvePlatformAuthToken(options.env ?? {});
@@ -7375,6 +7399,7 @@ ${renderStatusLine(state)}
7375
7399
  }
7376
7400
  export {
7377
7401
  ANSI_ESCAPE_REGEX,
7402
+ appendLocalTurn,
7378
7403
  appendToCurrentTurn,
7379
7404
  applyOutputChunkToCurrentTurn,
7380
7405
  applyScrollAction,