nolo-cli 0.159.0-alpha.3 → 0.160.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 (123) hide show
  1. package/{_executeModel-SHA5BWRT.js → _executeModel-3HHZYHHB.js} +38 -37
  2. package/accountResolver-55EDKEIK.js +1 -1
  3. package/action-GPPJC5TI.js +1 -1
  4. package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
  5. package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
  6. package/{agentDeleteCommand-VU3BA264.js → agentDeleteCommand-ON2KVSJ5.js} +55 -55
  7. package/{agentEmailCommands-WUANEGTM.js → agentEmailCommands-2QPD5VP3.js} +55 -55
  8. package/{agentListCommands-3YNO6UP4.js → agentListCommands-L33M3I6V.js} +30 -30
  9. package/{agentMachineCommands-ONGZXXQW.js → agentMachineCommands-V44DPSED.js} +25 -23
  10. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  11. package/{agentRecordCommands-DXXA2RET.js → agentRecordCommands-CKILCNQZ.js} +49 -49
  12. package/{agentRunCommand-WY77TJ72.js → agentRunCommand-6IN7NK7H.js} +52 -52
  13. package/{agentRunControl-PPYWJRIJ.js → agentRunControl-XBSNHHZE.js} +4 -4
  14. package/{agentRuntimeLocal-NHC5DQPJ.js → agentRuntimeLocal-XCKO5FVP.js} +13 -11
  15. package/{agentSlice-MIOEV36T.js → agentSlice-YT3VCCEW.js} +6 -6
  16. package/{appDeleteCommands-VQYCXZRF.js → appDeleteCommands-2PJFNLAJ.js} +22 -20
  17. package/{appDeployCommands-OKSJDVEY.js → appDeployCommands-AZCMCMK6.js} +22 -20
  18. package/{appDeployStatusCommands-UFGNZS6G.js → appDeployStatusCommands-HSIKPVJN.js} +22 -20
  19. package/{appGetCommands-3HNO5WLF.js → appGetCommands-IUZCPAP7.js} +22 -20
  20. package/{appListCommands-H33BIZHJ.js → appListCommands-JLFVS44M.js} +22 -20
  21. package/{authCommand-MSINEFHH.js → authCommand-3Z52KJID.js} +14 -14
  22. package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
  23. package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  24. package/{chunk-MJKKEGF5.js → chunk-2XDQAWBM.js} +12 -12
  25. package/{chunk-GCLZBOB6.js → chunk-2ZYCNT2O.js} +29 -29
  26. package/{chunk-XBLZ5IFE.js → chunk-3GTVM7NJ.js} +17 -17
  27. package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
  28. package/{chunk-QYAYO5JA.js → chunk-4L4K6YR7.js} +1 -1
  29. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  30. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  31. package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
  32. package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
  33. package/{chunk-ZIGIN5IX.js → chunk-DD2EOI6S.js} +1 -1
  34. package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
  35. package/{chunk-DWBY333O.js → chunk-DT7EWFTY.js} +5 -5
  36. package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
  37. package/{chunk-E46SJRWA.js → chunk-EVPKKBSI.js} +13 -13
  38. package/{chunk-ZJG7YU3I.js → chunk-F3SOW2EU.js} +46 -1
  39. package/{chunk-FZYTJOAQ.js → chunk-F5WASHQA.js} +27 -29
  40. package/{chunk-BFI6JGF6.js → chunk-FB5WLEOD.js} +11 -11
  41. package/{chunk-FBSDWUOJ.js → chunk-FCUKCVKN.js} +4 -4
  42. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  43. package/{chunk-PKC7D6SX.js → chunk-FFHV45HO.js} +3 -3
  44. package/{chunk-TMYAT2MD.js → chunk-FZYKQFBQ.js} +3 -3
  45. package/{chunk-CSCSMGQI.js → chunk-HW7EBEC5.js} +15 -191
  46. package/{chunk-5MPS5OOY.js → chunk-I7S63QUU.js} +1 -1
  47. package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
  48. package/{chunk-GSKVOMBU.js → chunk-JDKSYQQN.js} +4 -4
  49. package/{chunk-RJBHRIEL.js → chunk-JSB2OPQT.js} +107 -45
  50. package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
  51. package/{chunk-NT3LMOSE.js → chunk-K25WQPP3.js} +213 -50
  52. package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
  53. package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
  54. package/{chunk-NUE735UT.js → chunk-O2IWR23M.js} +1 -1
  55. package/{chunk-NNE5NIW2.js → chunk-OLVOR45M.js} +2 -2
  56. package/{chunk-CVSKYIXX.js → chunk-QXZH5UDF.js} +2 -2
  57. package/{chunk-QO436IJ5.js → chunk-QZIOZDM6.js} +9 -9
  58. package/{chunk-V4AK4IVZ.js → chunk-R2KWTENX.js} +3 -3
  59. package/{chunk-C3WXTFRP.js → chunk-RIHQGFFA.js} +1 -1
  60. package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
  61. package/{chunk-42W7LKBM.js → chunk-SNAWGDXT.js} +263 -4
  62. package/chunk-TT644UJD.js +188 -0
  63. package/{chunk-QOYJE6NX.js → chunk-U34KT53V.js} +28 -10
  64. package/{chunk-DFWLD7WU.js → chunk-ULQAD7ZY.js} +18 -6
  65. package/{chunk-ZAB4R7LU.js → chunk-UY73HNIN.js} +40 -42
  66. package/{chunk-RE5I35J7.js → chunk-VXS4YYJ2.js} +6 -6
  67. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  68. package/{chunk-6MH6PWVJ.js → chunk-YR47Y7CN.js} +6 -6
  69. package/{chunk-C47WM5SD.js → chunk-ZAV4YVEA.js} +1 -1
  70. package/{chunk-2NROMJBM.js → chunk-ZSLIYVIQ.js} +7 -7
  71. package/{commandRegistry-DAM7RV6E.js → commandRegistry-A4OR4B4L.js} +83 -83
  72. package/{contentThunks-WLKR5KQ6.js → contentThunks-QBL5NK2W.js} +14 -15
  73. package/{createAgentAutomationAction-AI2HZHLE.js → createAgentAutomationAction-5UWBLR2N.js} +14 -15
  74. package/{createDialogAction-AU4IWDR3.js → createDialogAction-NJ2LE7KC.js} +18 -19
  75. package/{createPageAction-CAXS6ZUJ.js → createPageAction-7T3RINS2.js} +16 -17
  76. package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
  77. package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
  78. package/{dialogCommands-2QMR63AY.js → dialogCommands-KMECTGCW.js} +27 -25
  79. package/{dialogSlice-QEP5EUON.js → dialogSlice-GQMTD4HR.js} +13 -14
  80. package/{docCreateCommands-EG3KFJGO.js → docCreateCommands-4IT5PUAL.js} +24 -22
  81. package/{docDeleteCommands-MAM2BLCP.js → docDeleteCommands-QS66YNZV.js} +25 -23
  82. package/{docReadCommands-XVX2VLVM.js → docReadCommands-3SAI46YC.js} +24 -22
  83. package/{docStore-WTXUKAQB.js → docStore-PM5PYKPZ.js} +6 -6
  84. package/{docUpdateCommands-JURMHPS5.js → docUpdateCommands-OGYG5BRC.js} +24 -22
  85. package/{handleSendMessageAction-7MAFLFOD.js → handleSendMessageAction-EQ3U6K5N.js} +31 -28
  86. package/index.js +7 -7
  87. package/{localRuntimeAdapter-DSO3Y5ZS.js → localRuntimeAdapter-MO64KEOS.js} +46 -46
  88. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  89. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  90. package/{machineCommands-DWILXGTZ.js → machineCommands-7MBJJY4K.js} +51 -51
  91. package/{machineWsRunDispatch-NJJZ34JJ.js → machineWsRunDispatch-T4LFRJL3.js} +47 -47
  92. package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
  93. package/package.json +1 -1
  94. package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
  95. package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
  96. package/{readlineWorkspace-STK57SSQ.js → readlineWorkspace-QHPB5LUC.js} +81 -118
  97. package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
  98. package/{runAgentClientLoop-6OD2CTYG.js → runAgentClientLoop-EXIQDX7G.js} +36 -35
  99. package/{runtimeDoctorCommands-HEN5IPIH.js → runtimeDoctorCommands-MMCP4B4U.js} +11 -11
  100. package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
  101. package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
  102. package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
  103. package/{spaceCommands-WPCHZKEY.js → spaceCommands-WQMUCGV7.js} +24 -22
  104. package/{streamAgentChatTurn-BOATI5H3.js → streamAgentChatTurn-DI2334G3.js} +132 -72
  105. package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
  106. package/{tools-FPKQX2J6.js → tools-23VQGJOX.js} +27 -28
  107. package/{tuiSummaryLlmCaller-PEYFTAVL.js → tuiSummaryLlmCaller-FESHBDTT.js} +4 -4
  108. package/{updateCommands-LXZLG44Y.js → updateCommands-KALLBWJE.js} +3 -3
  109. package/{updateDialogTitleAction-WAH5KADA.js → updateDialogTitleAction-AGAYHWS7.js} +14 -15
  110. package/chunk-UKZX3NHN.js +0 -48
  111. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  112. package/{agentProviderCommands-CUBOAVPB.js → agentProviderCommands-CXBHNONN.js} +3 -3
  113. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  114. package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
  115. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  116. package/{chunk-YNCJYU4X.js → chunk-G3VYRPTV.js} +4 -4
  117. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  118. package/{chunk-O4KVUI4W.js → chunk-KABQ74UQ.js} +3 -3
  119. package/{chunk-TCQPBZUL.js → chunk-QA2C5NKI.js} +3 -3
  120. package/{chunk-4RJJDA57.js → chunk-WR37DI7R.js} +3 -3
  121. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  122. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
  123. package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
@@ -9,10 +9,10 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-C47WM5SD.js";
12
+ } from "./chunk-ZAV4YVEA.js";
13
13
  import {
14
14
  getReadableCliDb
15
- } from "./chunk-P5QACQDK.js";
15
+ } from "./chunk-62TBKWTV.js";
16
16
  import {
17
17
  createCliLocalRuntimeAdapter,
18
18
  detectCurrentMachineId,
@@ -27,7 +27,7 @@ import {
27
27
  resolveBoundMachineId,
28
28
  resolveFileWriteGateEnabled,
29
29
  resolveLocalUserId
30
- } from "./chunk-ZAB4R7LU.js";
30
+ } from "./chunk-UY73HNIN.js";
31
31
  import {
32
32
  clearCredentialAvailability,
33
33
  readCredentialEntry,
@@ -60,7 +60,7 @@ import {
60
60
  import {
61
61
  readDbRecord,
62
62
  resolveAgentRecordFromHybridStore
63
- } from "./chunk-O4KVUI4W.js";
63
+ } from "./chunk-KABQ74UQ.js";
64
64
  import {
65
65
  isLocalCliAgentKey
66
66
  } from "./chunk-NBTY7YJF.js";
@@ -75,14 +75,14 @@ import {
75
75
  } from "./chunk-BMQ2MJUK.js";
76
76
  import {
77
77
  resolveCliLocalRuntimeKeyCapability
78
- } from "./chunk-GCLZBOB6.js";
78
+ } from "./chunk-2ZYCNT2O.js";
79
79
  import {
80
80
  isTransientFetchError
81
81
  } from "./chunk-KFHREHUQ.js";
82
82
  import {
83
83
  parseUiCard,
84
84
  uiCardFallback
85
- } from "./chunk-FBSDWUOJ.js";
85
+ } from "./chunk-FCUKCVKN.js";
86
86
  import {
87
87
  isGatewayHttpStatus
88
88
  } from "./chunk-NF64D32W.js";
@@ -91,7 +91,7 @@ import {
91
91
  chooseMemoryOwners,
92
92
  loadMemoryCandidatesFromDb,
93
93
  resolveAgentMemoryPolicy
94
- } from "./chunk-GSKVOMBU.js";
94
+ } from "./chunk-JDKSYQQN.js";
95
95
  import {
96
96
  API_REPORTED_COST_MULTIPLIER,
97
97
  estimateMessagesTokens,
@@ -99,22 +99,22 @@ import {
99
99
  resolveAgentContextWindow,
100
100
  resolveOccupancy,
101
101
  resolveOccupancyWindow
102
- } from "./chunk-FZYTJOAQ.js";
102
+ } from "./chunk-F5WASHQA.js";
103
103
  import {
104
- isOAuthApiKeyRef
105
- } from "./chunk-UKZX3NHN.js";
104
+ buildSkillDiscoveryContextLayer
105
+ } from "./chunk-AU7AXHUL.js";
106
106
  import {
107
107
  parseExternalSkillMarkdown,
108
108
  parseSkillDocProtocol
109
- } from "./chunk-XETG4RIX.js";
109
+ } from "./chunk-AETZ7AD6.js";
110
110
  import {
111
111
  LOCAL_AGENT_CONFIG_MISSING_CODE,
112
112
  LOCAL_TURN_ABORTED_CODE,
113
113
  readActionGate
114
- } from "./chunk-NT3LMOSE.js";
114
+ } from "./chunk-K25WQPP3.js";
115
115
  import {
116
116
  resolveAgentRuntimeConfigFromRecord
117
- } from "./chunk-DFWLD7WU.js";
117
+ } from "./chunk-ULQAD7ZY.js";
118
118
  import {
119
119
  createThinkParserState,
120
120
  flushThinkParser,
@@ -136,8 +136,9 @@ import {
136
136
  resolveCredentialKeyWithFallback
137
137
  } from "./chunk-3MZAGMYY.js";
138
138
  import {
139
+ isOAuthApiKeyRef,
139
140
  normalizeUsage
140
- } from "./chunk-ZJG7YU3I.js";
141
+ } from "./chunk-F3SOW2EU.js";
141
142
  import {
142
143
  clipCompactText
143
144
  } from "./chunk-5MMAK75Q.js";
@@ -148,6 +149,13 @@ import {
148
149
  normalizeRuntimeToolPolicyOverride,
149
150
  resolveEffectiveRuntimeToolPolicy
150
151
  } from "./chunk-LIQJTQRN.js";
152
+ import {
153
+ buildAgentsMdLayer,
154
+ buildMemoryOverlayLayer,
155
+ buildMemoryUseGuidanceLayer,
156
+ partitionScopedBlocks,
157
+ renderTurnContextBlocksWithScope
158
+ } from "./chunk-VEA7H5FG.js";
151
159
  import {
152
160
  BUILTIN_NOLO_AGENT_KEY,
153
161
  BUILTIN_NOLO_AGENT_NAME,
@@ -161,9 +169,6 @@ import {
161
169
  createMemoryKey,
162
170
  ulid
163
171
  } from "./chunk-5EMSBTQ6.js";
164
- import {
165
- isAntigravityOAuthAgent
166
- } from "./chunk-SQX235S2.js";
167
172
  import {
168
173
  createRunActivityTracker,
169
174
  createShellApprovalChild,
@@ -176,7 +181,7 @@ import {
176
181
  serverOriginForDialog,
177
182
  settleRunTerminalAuthoritatively,
178
183
  spawnLocalBackgroundRun
179
- } from "./chunk-42W7LKBM.js";
184
+ } from "./chunk-SNAWGDXT.js";
180
185
  import {
181
186
  formatAgentListCard,
182
187
  formatFinishedRunCard,
@@ -187,26 +192,14 @@ import {
187
192
  formatStopRunCard,
188
193
  isAgentRunTerminalStatus
189
194
  } from "./chunk-PJNFNEJE.js";
190
- import {
191
- resolveClientVersion
192
- } from "./chunk-PIG2IUVZ.js";
193
- import {
194
- findModelConfig
195
- } from "./chunk-6EQD4AQL.js";
196
- import {
197
- asTrimmedString
198
- } from "./chunk-3EUW3WEO.js";
199
195
  import {
200
196
  isCliAuthorityBrokerProtocolError,
201
197
  isCliAuthorityBrokerTimeoutError,
202
198
  isCliAuthorityBrokerUnavailableError
203
199
  } from "./chunk-EXAJ6DCR.js";
204
- import {
205
- toErrorMessage
206
- } from "./chunk-HNMXYYJR.js";
207
200
  import {
208
201
  getDefaultCliLocalRuntimeDb
209
- } from "./chunk-FY4SDK2E.js";
202
+ } from "./chunk-FDLDMJTM.js";
210
203
  import {
211
204
  getLogger,
212
205
  normalizeError
@@ -214,13 +207,28 @@ import {
214
207
  import {
215
208
  resolveAuthToken
216
209
  } from "./chunk-A7GB5UGH.js";
217
- import {
218
- asOptionalTrimmedString
219
- } from "./chunk-G3SUCT4W.js";
220
210
  import {
221
211
  readPipeText,
222
212
  spawnProcess
223
213
  } from "./chunk-Y6ROFCZO.js";
214
+ import {
215
+ isAntigravityOAuthAgent
216
+ } from "./chunk-SQX235S2.js";
217
+ import {
218
+ resolveClientVersion
219
+ } from "./chunk-PIG2IUVZ.js";
220
+ import {
221
+ findModelConfig
222
+ } from "./chunk-6EQD4AQL.js";
223
+ import {
224
+ asTrimmedString
225
+ } from "./chunk-3EUW3WEO.js";
226
+ import {
227
+ toErrorMessage
228
+ } from "./chunk-HNMXYYJR.js";
229
+ import {
230
+ asOptionalTrimmedString
231
+ } from "./chunk-G3SUCT4W.js";
224
232
  import {
225
233
  CLIENT_VERSION_TOO_OLD_CODE,
226
234
  NOLO_CLIENT_VERSION_HEADER,
@@ -229,16 +237,6 @@ import {
229
237
  import {
230
238
  asTrimmedLowercaseString
231
239
  } from "./chunk-QSJ3HFEF.js";
232
- import {
233
- buildSkillDiscoveryContextLayer
234
- } from "./chunk-AU7AXHUL.js";
235
- import {
236
- buildAgentsMdLayer,
237
- buildMemoryOverlayLayer,
238
- buildMemoryUseGuidanceLayer,
239
- partitionScopedBlocks,
240
- renderTurnContextBlocksWithScope
241
- } from "./chunk-VEA7H5FG.js";
242
240
 
243
241
  // packages/agent-runtime/modelLayerOverride.ts
244
242
  var MODEL_LAYER_KEYS = [
@@ -11140,6 +11138,51 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
11140
11138
  return null;
11141
11139
  }
11142
11140
 
11141
+ // packages/cli/idleHeapRelease.ts
11142
+ var IDLE_HEAP_RELEASE_DELAY_MS = 2e3;
11143
+ function releaseHeapPages(options = {}) {
11144
+ const env = options.env ?? process.env;
11145
+ if (env.NOLO_TUI_IDLE_HEAP_RELEASE === "0") return;
11146
+ const bun = "bun" in options ? options.bun : globalThis.Bun;
11147
+ if (typeof bun?.gc !== "function" || typeof bun?.shrink !== "function") return;
11148
+ try {
11149
+ bun.gc(true);
11150
+ bun.shrink();
11151
+ } catch {
11152
+ }
11153
+ }
11154
+ function createIdleHeapReleaser(options = {}) {
11155
+ const env = options.env ?? process.env;
11156
+ const bun = "bun" in options ? options.bun : globalThis.Bun;
11157
+ const disabled = env.NOLO_TUI_IDLE_HEAP_RELEASE === "0" || typeof bun?.gc !== "function" || typeof bun?.shrink !== "function";
11158
+ if (disabled) return { schedule() {
11159
+ }, cancel() {
11160
+ } };
11161
+ const delayMs = options.delayMs ?? IDLE_HEAP_RELEASE_DELAY_MS;
11162
+ const setTimer = options.setTimer ?? ((fn, ms) => {
11163
+ const handle = setTimeout(fn, ms);
11164
+ handle.unref?.();
11165
+ return handle;
11166
+ });
11167
+ const clearTimer = options.clearTimer ?? ((handle) => clearTimeout(handle));
11168
+ let pending = null;
11169
+ const release = () => {
11170
+ pending = null;
11171
+ releaseHeapPages({ env, bun });
11172
+ };
11173
+ return {
11174
+ schedule() {
11175
+ if (pending !== null) clearTimer(pending);
11176
+ pending = setTimer(release, delayMs);
11177
+ },
11178
+ cancel() {
11179
+ if (pending === null) return;
11180
+ clearTimer(pending);
11181
+ pending = null;
11182
+ }
11183
+ };
11184
+ }
11185
+
11143
11186
  // packages/cli/client/agentRun.ts
11144
11187
  import { ulid as ulid2 } from "ulid";
11145
11188
 
@@ -11181,7 +11224,7 @@ function isBalanceExhaustedError(error) {
11181
11224
 
11182
11225
  // packages/cli/client/agentRun.ts
11183
11226
  async function loadRunLocalAgentTurn() {
11184
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-NHC5DQPJ.js");
11227
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XCKO5FVP.js");
11185
11228
  return runLocalAgentTurn;
11186
11229
  }
11187
11230
  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();
@@ -12185,6 +12228,24 @@ async function runLocalAgentTurnForCli(options, settings) {
12185
12228
  }
12186
12229
  }
12187
12230
  async function runLocalAgentTurnForCliWithAdapter(options, settings, resolvedBaseAdapter) {
12231
+ try {
12232
+ return await executeLocalAgentTurnForCliWithAdapter(
12233
+ options,
12234
+ settings,
12235
+ resolvedBaseAdapter
12236
+ );
12237
+ } finally {
12238
+ try {
12239
+ if (typeof options.releaseHeapPages === "function") {
12240
+ options.releaseHeapPages();
12241
+ } else {
12242
+ releaseHeapPages({ env: options.env });
12243
+ }
12244
+ } catch {
12245
+ }
12246
+ }
12247
+ }
12248
+ async function executeLocalAgentTurnForCliWithAdapter(options, settings, resolvedBaseAdapter) {
12188
12249
  const baseAdapter = (() => {
12189
12250
  let adapter2 = resolvedBaseAdapter && options.modelOverride ? wrapLoadAgentConfigWithModelOverride(
12190
12251
  resolvedBaseAdapter,
@@ -16016,6 +16077,7 @@ export {
16016
16077
  computeBaselineContextTokens,
16017
16078
  resolveContextUsage,
16018
16079
  renderTokenStatus,
16080
+ createIdleHeapReleaser,
16019
16081
  COLLAPSED_PASTE_PLACEHOLDER_RE,
16020
16082
  shouldCollapsePaste,
16021
16083
  createCollapsedPasteStore,
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-ZVQHBIWV.js";
7
+ } from "./chunk-CDLP56BS.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-2SGAI64X.js";
11
+ } from "./chunk-43OFVLWJ.js";
12
12
  import {
13
13
  selectIdentityUserId
14
14
  } from "./chunk-PXYBUFDB.js";