nolo-cli 0.224.0-alpha.1 → 0.225.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 (115) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-L5VHAXSU.js} +26 -25
  2. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-4WC7INCX.js} +39 -38
  3. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-3XFR6WY7.js} +40 -39
  4. package/{agentListCommands-5UNM7CGG.js → agentListCommands-BBCP5XYW.js} +23 -23
  5. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-YZDCOLQL.js} +19 -19
  6. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-7BSJH7TO.js} +2 -2
  7. package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-KLYKI4Z7.js} +39 -38
  8. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-NHYBV4G5.js} +41 -39
  9. package/{agentRunControl-QDFW5P2T.js → agentRunControl-7A2FOXIJ.js} +6 -6
  10. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-GSTYFEX4.js} +17 -17
  11. package/{agentSlice-ACZGTZVW.js → agentSlice-O6IGTM3Y.js} +1 -1
  12. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-L7HL4AWF.js} +20 -20
  13. package/{appDeployCommands-2BAHY522.js → appDeployCommands-SGSUNFZR.js} +20 -20
  14. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-AAA3XD54.js} +20 -20
  15. package/{appGetCommands-WKFEJO6A.js → appGetCommands-LN72GAOA.js} +20 -20
  16. package/{appListCommands-HNAZZLFX.js → appListCommands-IJQQ3VND.js} +20 -20
  17. package/{authCommand-4FDPL7WG.js → authCommand-7JXW54U4.js} +16 -12
  18. package/{authCommands-GAJ3NIXO.js → authCommands-YDNAIDEY.js} +5 -1
  19. package/{chunk-FRSBYNWI.js → chunk-2TIQO6TC.js} +1 -1
  20. package/{chunk-6D7NVU66.js → chunk-2VA6TU4I.js} +2 -2
  21. package/{chunk-4NMHE7CX.js → chunk-3KNEE64G.js} +4 -4
  22. package/{chunk-Q6HOUF4O.js → chunk-3QFLXA24.js} +1 -1
  23. package/{chunk-G2EJ7NL4.js → chunk-45LZIYXB.js} +2 -2
  24. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  25. package/{chunk-5R63B62U.js → chunk-4HFTBHBF.js} +4 -4
  26. package/{chunk-2OLYKYNY.js → chunk-4NA3YTBC.js} +2 -2
  27. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  28. package/{chunk-2KTUDBG7.js → chunk-67BE44IS.js} +1 -1
  29. package/{chunk-Q7WP5RPC.js → chunk-6J4TTPS2.js} +1 -1
  30. package/{chunk-XFJ4ZPFC.js → chunk-7XS4W5KP.js} +9 -9
  31. package/chunk-BJF2MHJ3.js +118 -0
  32. package/{chunk-UMRI2IRY.js → chunk-DISQCYPE.js} +3 -3
  33. package/{chunk-3N4ASIP6.js → chunk-EOJZGQAE.js} +2 -2
  34. package/{chunk-JC5XLWZK.js → chunk-EWPDMS4N.js} +3 -3
  35. package/{chunk-N7HVLYOY.js → chunk-F3YK7KIU.js} +2 -2
  36. package/{chunk-FVZW66K4.js → chunk-FNDSBM4J.js} +12 -12
  37. package/{chunk-AFHOCBSP.js → chunk-FTQWYWUI.js} +1 -1
  38. package/{chunk-6NKA6RKF.js → chunk-GBZ4YKEO.js} +1 -1
  39. package/{chunk-6RQFZCKH.js → chunk-GOAPXKQU.js} +3 -3
  40. package/{chunk-T3O6BLYU.js → chunk-HOK3ILHA.js} +12 -12
  41. package/{chunk-7WPAI5JJ.js → chunk-IUD7YR3B.js} +3 -3
  42. package/{chunk-HCJFGH6Y.js → chunk-IZIN2UNJ.js} +3 -3
  43. package/{chunk-MKQ2UTTX.js → chunk-JCK3EFZS.js} +11 -11
  44. package/{chunk-PFJNLBRU.js → chunk-JM5C4EUA.js} +2 -2
  45. package/{chunk-QWYFFHCJ.js → chunk-K44HIUBX.js} +3 -3
  46. package/{chunk-TVFRV3UQ.js → chunk-KC4SCKXO.js} +12 -12
  47. package/{chunk-SYQR7FQS.js → chunk-KDAGMRDA.js} +2 -2
  48. package/{chunk-SRL56PI2.js → chunk-KNIIRXHF.js} +3 -3
  49. package/{chunk-LE6LGAJE.js → chunk-KYH7XW3K.js} +1 -1
  50. package/{chunk-OOF7XDZF.js → chunk-KZU52OJ5.js} +1 -1
  51. package/{chunk-IWQAOW2X.js → chunk-LJSNEV7M.js} +2 -2
  52. package/{chunk-XWGDCWXY.js → chunk-LM2PS3YS.js} +1 -1
  53. package/{chunk-N3J4VDGV.js → chunk-LS2MGTUS.js} +3 -3
  54. package/{chunk-5OZC7R7Y.js → chunk-N5PQJKCY.js} +3 -3
  55. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  56. package/{chunk-65XXHYZ5.js → chunk-P25E3CKY.js} +3 -3
  57. package/chunk-PMDVQBGA.js +100 -0
  58. package/{chunk-OXKUPBAQ.js → chunk-QZI44GWV.js} +2 -2
  59. package/{chunk-OGHP3CTL.js → chunk-SBVTHMEG.js} +1 -1
  60. package/{chunk-4A2JIXR2.js → chunk-SOG7OEXX.js} +1 -1
  61. package/{chunk-DVQH4BTR.js → chunk-TXGQ4O5S.js} +5 -1
  62. package/{chunk-O2CYENYJ.js → chunk-TZEP5J4A.js} +33 -109
  63. package/{chunk-SASHAZ67.js → chunk-UEKXWO7A.js} +1 -1
  64. package/{chunk-J6T25AJ6.js → chunk-UKS7D2NL.js} +1 -1
  65. package/{chunk-IWH5SOU4.js → chunk-VFBVA3U2.js} +2 -2
  66. package/{chunk-DJSTBAOU.js → chunk-VV7TXWOC.js} +4 -4
  67. package/{chunk-KAVGK4ES.js → chunk-WG2LFJYB.js} +2 -2
  68. package/{chunk-K5FNYHZC.js → chunk-WQEMD4Z4.js} +1 -1
  69. package/{chunk-H7R3365N.js → chunk-XN23AUVU.js} +3 -3
  70. package/{chunk-3ESU44FG.js → chunk-XQBIZRGW.js} +3 -3
  71. package/{chunk-S7SB7L2I.js → chunk-XZGQ6ZCV.js} +8 -8
  72. package/{chunk-CXDPIPZ4.js → chunk-YDBMZ7FV.js} +2 -2
  73. package/{chunk-VHPAA6MT.js → chunk-YI5CDUJD.js} +2 -2
  74. package/{chunk-F3TQURKK.js → chunk-YXMBJ7UH.js} +1 -1
  75. package/{chunk-7UH3DGV6.js → chunk-Z6USB65D.js} +6 -117
  76. package/{chunk-EGXPAWLG.js → chunk-ZH6MUQEO.js} +1 -1
  77. package/{chunk-KO63FPG3.js → chunk-ZRAARRA3.js} +26 -26
  78. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-KICKKNYQ.js} +6 -6
  79. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-6FXGFBI3.js} +20 -20
  80. package/{commandRegistry-SDSYBKMC.js → commandRegistry-HJDPQSQ4.js} +61 -61
  81. package/{contentThunks-G3TRPEAU.js → contentThunks-I6OR5ENG.js} +9 -9
  82. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-7BCCTWO5.js} +9 -9
  83. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-CU27KSCJ.js} +11 -10
  84. package/{createPageAction-HXKJ7OFG.js → createPageAction-CWRTEYVA.js} +10 -10
  85. package/{dialogCommands-6KQEBHSG.js → dialogCommands-OPTRZWTE.js} +22 -22
  86. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-77B57PL6.js} +7 -7
  87. package/{dialogSlice-HXPKFGRL.js → dialogSlice-XODSLDHY.js} +8 -8
  88. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-36WS33BK.js} +19 -19
  89. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-C4CS4XLF.js} +20 -20
  90. package/{docReadCommands-TTMXCDER.js → docReadCommands-QZMSFMPN.js} +19 -19
  91. package/{docStore-A2B3GH33.js → docStore-TVN4SNVE.js} +1 -1
  92. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-BYI64HVV.js} +19 -19
  93. package/{getPricing-YH3VMSVU.js → getPricing-VNGFM4PN.js} +3 -3
  94. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-NSEMVHWX.js} +19 -19
  95. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-WBZY7DZB.js} +39 -38
  96. package/index.js +4 -4
  97. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  98. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-OAIWERFA.js} +38 -37
  99. package/{machineCommands-WFWV25IR.js → machineCommands-OI37ZUQ4.js} +39 -38
  100. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-73HKPV6D.js} +39 -38
  101. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  102. package/package.json +1 -1
  103. package/{projectArchive-ULJDLUA6.js → projectArchive-GVEARCOG.js} +10 -10
  104. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-J3WMRPD2.js} +5 -5
  105. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-KJGB5XWS.js} +5 -5
  106. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-5DWUGNSU.js} +51 -49
  107. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-RDXIPF34.js} +23 -22
  108. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-UXKXYBW6.js} +5 -5
  109. package/{spaceCommands-IB6FKWIC.js → spaceCommands-GUKMDRWN.js} +19 -19
  110. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-XEYQZPDJ.js} +30 -29
  111. package/{tools-JVOJ5HC4.js → tools-6DFTHCFX.js} +17 -16
  112. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-7WLUKNP2.js} +12 -12
  113. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-AMSBV2H7.js} +9 -9
  114. package/{usageCommand-RVKHEPLU.js → usageCommand-YPJ2ZI2F.js} +1 -1
  115. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-FERQO74C.js} +2 -2
@@ -49,7 +49,7 @@ import {
49
49
  withholdIfSecretLike,
50
50
  wrapLocalCommandWorkspaceObservation,
51
51
  writeUsage
52
- } from "./chunk-KO63FPG3.js";
52
+ } from "./chunk-ZRAARRA3.js";
53
53
  import {
54
54
  clearCredentialAvailability,
55
55
  readEffectiveCredentialEntry
@@ -57,7 +57,7 @@ import {
57
57
  import {
58
58
  readDbRecord,
59
59
  resolveAgentRecordFromHybridStore
60
- } from "./chunk-6D7NVU66.js";
60
+ } from "./chunk-2VA6TU4I.js";
61
61
  import {
62
62
  boxGlyphs,
63
63
  displayWidth,
@@ -65,7 +65,12 @@ import {
65
65
  stripAnsi,
66
66
  tokenizeAnsiLine,
67
67
  visibleWidth
68
- } from "./chunk-J6T25AJ6.js";
68
+ } from "./chunk-UKS7D2NL.js";
69
+ import {
70
+ deriveStateResident,
71
+ resolvePureVNextRuntime,
72
+ touchMemoryItemsInDb
73
+ } from "./chunk-PMDVQBGA.js";
69
74
  import {
70
75
  _appendEntityBatch,
71
76
  _appendEvidenceBatch,
@@ -83,7 +88,7 @@ import {
83
88
  import {
84
89
  rankMemoryCandidates,
85
90
  recallMemoryVNextLocal
86
- } from "./chunk-YL3EFYL3.js";
91
+ } from "./chunk-4D4QD7FT.js";
87
92
  import {
88
93
  DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
89
94
  EXPLICIT_REMEMBER_PREFIX_REGEX,
@@ -96,7 +101,7 @@ import {
96
101
  import {
97
102
  isBuiltinNoloAgentRef,
98
103
  resolveLocalUserId
99
- } from "./chunk-OOF7XDZF.js";
104
+ } from "./chunk-KZU52OJ5.js";
100
105
  import {
101
106
  CliProviderQuotaError
102
107
  } from "./chunk-MK2Q7ZJD.js";
@@ -108,24 +113,26 @@ import {
108
113
  } from "./chunk-BMQ2MJUK.js";
109
114
  import {
110
115
  resolveCliLocalRuntimeKeyCapability
111
- } from "./chunk-T3O6BLYU.js";
116
+ } from "./chunk-HOK3ILHA.js";
112
117
  import {
113
118
  isTransientFetchError
114
119
  } from "./chunk-KFHREHUQ.js";
115
120
  import {
116
121
  parseUiCard,
117
122
  uiCardFallback
118
- } from "./chunk-3N4ASIP6.js";
123
+ } from "./chunk-EOJZGQAE.js";
119
124
  import {
120
125
  isGatewayHttpStatus
121
126
  } from "./chunk-NF64D32W.js";
122
127
  import {
123
128
  buildMemorySubjectsForAgent,
129
+ resolveAgentMemoryPolicy
130
+ } from "./chunk-Z6USB65D.js";
131
+ import {
124
132
  chooseMemoryOwners,
125
133
  loadMemoryCandidatesFromDb,
126
- loadOwnerItemsFromDb,
127
- resolveAgentMemoryPolicy
128
- } from "./chunk-7UH3DGV6.js";
134
+ loadOwnerItemsFromDb
135
+ } from "./chunk-BJF2MHJ3.js";
129
136
  import {
130
137
  API_REPORTED_COST_MULTIPLIER,
131
138
  estimateMessagesTokens,
@@ -135,7 +142,7 @@ import {
135
142
  resolveAgentContextWindow,
136
143
  resolveOccupancy,
137
144
  resolveOccupancyWindow
138
- } from "./chunk-FVZW66K4.js";
145
+ } from "./chunk-FNDSBM4J.js";
139
146
  import {
140
147
  isCliAuthorityBrokerProtocolError,
141
148
  isCliAuthorityBrokerTimeoutError,
@@ -153,10 +160,10 @@ import {
153
160
  evaluateTaskExecutionContract,
154
161
  markCliUserBatchPhase,
155
162
  readActionGate
156
- } from "./chunk-TVFRV3UQ.js";
163
+ } from "./chunk-KC4SCKXO.js";
157
164
  import {
158
165
  resolveAgentRuntimeConfigFromRecord
159
- } from "./chunk-SASHAZ67.js";
166
+ } from "./chunk-UEKXWO7A.js";
160
167
  import {
161
168
  createThinkParserState,
162
169
  flushThinkParser,
@@ -174,12 +181,12 @@ import {
174
181
  ATTACHMENT_PART_VERSION,
175
182
  describeAttachmentForModel,
176
183
  normalizeAttachmentPart
177
- } from "./chunk-XWGDCWXY.js";
184
+ } from "./chunk-LM2PS3YS.js";
178
185
  import {
179
186
  findCodexOAuthPinnedContextWindow,
180
187
  normalizeUsage,
181
188
  readCacheReadInputTokensOrNull
182
- } from "./chunk-HCJFGH6Y.js";
189
+ } from "./chunk-IZIN2UNJ.js";
183
190
  import {
184
191
  isOAuthApiKeyRef
185
192
  } from "./chunk-UKZX3NHN.js";
@@ -195,7 +202,7 @@ import {
195
202
  } from "./chunk-DWLEOOGR.js";
196
203
  import {
197
204
  isAntigravityOAuthAgent
198
- } from "./chunk-JC5XLWZK.js";
205
+ } from "./chunk-EWPDMS4N.js";
199
206
  import {
200
207
  parseExternalSkillMarkdown,
201
208
  parseSkillDocProtocol
@@ -209,9 +216,6 @@ import {
209
216
  import {
210
217
  parsePublicAgentId
211
218
  } from "./chunk-M2EJHDJP.js";
212
- import {
213
- createMemoryKey
214
- } from "./chunk-SYTHYBMI.js";
215
219
  import {
216
220
  ulid
217
221
  } from "./chunk-OJKUU3LP.js";
@@ -255,7 +259,7 @@ import {
255
259
  serverOriginForDialog,
256
260
  settleRunTerminalAuthoritatively,
257
261
  spawnLocalBackgroundRun
258
- } from "./chunk-K5FNYHZC.js";
262
+ } from "./chunk-WQEMD4Z4.js";
259
263
  import {
260
264
  formatAgentListCard,
261
265
  formatFinishedRunCard,
@@ -273,7 +277,7 @@ import {
273
277
  } from "./chunk-EWQ3HGNZ.js";
274
278
  import {
275
279
  resolveClientVersion
276
- } from "./chunk-2OLYKYNY.js";
280
+ } from "./chunk-4NA3YTBC.js";
277
281
  import {
278
282
  toErrorMessage
279
283
  } from "./chunk-HNMXYYJR.js";
@@ -282,12 +286,12 @@ import {
282
286
  } from "./chunk-3EUW3WEO.js";
283
287
  import {
284
288
  findModelConfig
285
- } from "./chunk-LE6LGAJE.js";
289
+ } from "./chunk-KYH7XW3K.js";
286
290
  import {
287
291
  CLIENT_VERSION_TOO_OLD_CODE,
288
292
  NOLO_CLIENT_VERSION_HEADER,
289
293
  buildClientVersionUpgradeMessage
290
- } from "./chunk-VALBGPM6.js";
294
+ } from "./chunk-OBSEKCVK.js";
291
295
  import {
292
296
  asTrimmedLowercaseString
293
297
  } from "./chunk-QSJ3HFEF.js";
@@ -11019,7 +11023,7 @@ async function assessHostTaskWorkspace(input) {
11019
11023
 
11020
11024
  // packages/cli/client/agentRun.ts
11021
11025
  async function loadRunLocalAgentTurn() {
11022
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-SD7U2EGY.js");
11026
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-GSTYFEX4.js");
11023
11027
  return runLocalAgentTurn;
11024
11028
  }
11025
11029
  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();
@@ -13545,22 +13549,6 @@ function imageMimeTypeForPath(path2) {
13545
13549
  }
13546
13550
  }
13547
13551
 
13548
- // packages/ai/memory/storeShared.ts
13549
- var retrievalCountOf = (item) => item.activationCount ?? 0;
13550
- var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
13551
- if (items.length === 0) return;
13552
- const batch = db.batch();
13553
- for (const item of items) {
13554
- batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
13555
- ...item,
13556
- // retrieval bookkeeping on legacy storage names — see doc comment above
13557
- lastActivatedAt: now,
13558
- activationCount: retrievalCountOf(item) + 1
13559
- });
13560
- }
13561
- await batch.write();
13562
- };
13563
-
13564
13552
  // packages/ai/memory/vnext/detachedThrottle.ts
13565
13553
  var DEFAULT_DETACHED_MEMORY_COOLDOWN_MS = 10 * 60 * 1e3;
13566
13554
  var MAX_COOLDOWN_KEYS = 512;
@@ -14725,75 +14713,10 @@ var isMemoryVNextLazyPromotionEnabled = (env = typeof process !== "undefined" ?
14725
14713
  // packages/ai/memory/vnext/pureReadGate.ts
14726
14714
  var isMemoryVNextPureReadEnabled = (env = typeof process !== "undefined" ? process.env : {}) => env.NOLO_MEMORY_VNEXT_PURE_READ === "1" || env.NOLO_MEMORY_VNEXT_PURE_READ === "true";
14727
14715
 
14728
- // packages/ai/memory/remember.ts
14729
- var RESIDENT_MAX_CONTENT_CHARS = 240;
14730
-
14731
- // packages/ai/memory/vnext/pureVNextRuntime.ts
14732
- function deriveStateResident(state2, ownerType) {
14733
- if (ownerType !== "user") return false;
14734
- if (state2.text.trim().length > RESIDENT_MAX_CONTENT_CHARS) return false;
14735
- return state2.facet === "preference" || state2.facet === "style";
14736
- }
14737
- var buildSynthesizedStateItem = (state2, entity, ownerType, ownerId) => ({
14738
- id: `vnext-state-${state2.id}`,
14739
- ownerType,
14740
- ownerId,
14741
- visibility: "private",
14742
- subjectType: "user",
14743
- subjectId: ownerId,
14744
- kind: "semantic",
14745
- content: state2.text.trim(),
14746
- createdAt: state2.createdAt,
14747
- lastActivatedAt: state2.createdAt,
14748
- activationCount: 1,
14749
- importance: 0.9,
14750
- confidence: 0.9,
14751
- resident: deriveStateResident(state2, ownerType)
14752
- });
14753
- async function resolvePureVNextRuntime(input) {
14754
- const { db, owners, userInput } = input;
14755
- if (owners.length === 0 || !userInput.trim()) {
14756
- return { selectedItems: [], promptBlock: null, recalledStateCount: 0 };
14757
- }
14758
- const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
14759
- const catalogs = await Promise.all(
14760
- ownerIds.map((ownerId) => loadMemoryVNextCatalog(db, ownerId))
14761
- );
14762
- const selectedItems = [];
14763
- const seenStateKeys = /* @__PURE__ */ new Set();
14764
- for (let i = 0; i < owners.length; i++) {
14765
- const owner = owners[i];
14766
- const catalog = catalogs[i];
14767
- const currentStates = catalog.states.filter((s) => !s.retiredAt && s.text.trim());
14768
- const hits = recallMemoryVNextLocal({
14769
- query: userInput,
14770
- entities: catalog.entities,
14771
- states: currentStates
14772
- });
14773
- const entityById = new Map(catalog.entities.map((e) => [e.id, e]));
14774
- for (const hit of hits) {
14775
- const stateKey = `${hit.state.ownerId}\0${hit.state.id}`;
14776
- if (seenStateKeys.has(stateKey)) continue;
14777
- seenStateKeys.add(stateKey);
14778
- selectedItems.push(
14779
- buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
14780
- );
14781
- }
14782
- }
14783
- const promptBlock = selectedItems.length === 0 ? null : buildMemoryOverlay(selectedItems, {
14784
- maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
14785
- });
14786
- return {
14787
- selectedItems,
14788
- promptBlock,
14789
- recalledStateCount: selectedItems.length
14790
- };
14791
- }
14792
-
14793
14716
  // packages/ai/memory/vnext/primaryRead.ts
14794
14717
  var MEMORY_VNEXT_PRIMARY_READ_TIMEOUT_MS = 300;
14795
14718
  var isMemoryVNextPrimaryReadEnabled = (env = typeof process !== "undefined" ? process.env : {}) => env.NOLO_MEMORY_VNEXT_PRIMARY_READ === "1" || env.NOLO_MEMORY_VNEXT_PRIMARY_READ === "true";
14796
- var buildSynthesizedStateItem2 = (state2, entity, ownerType, ownerId) => ({
14719
+ var buildSynthesizedStateItem = (state2, entity, ownerType, ownerId) => ({
14797
14720
  id: `vnext-state-${state2.id}`,
14798
14721
  ownerType,
14799
14722
  ownerId,
@@ -14805,8 +14728,9 @@ var buildSynthesizedStateItem2 = (state2, entity, ownerType, ownerId) => ({
14805
14728
  createdAt: state2.createdAt,
14806
14729
  importance: 0.9,
14807
14730
  confidence: 0.9,
14808
- // Flag resident preferences so they flow into overlay's resident section.
14809
- resident: state2.facet === "preference" || state2.facet === "style",
14731
+ // 与 pureVNextRuntime / queryMemoryHandler 共用同一判定,避免四条合成路径分裂
14732
+ // (2026-11-15:这里原先各自写 facet,漏了 ownerType/长度约束)。
14733
+ resident: deriveStateResident(state2, ownerType),
14810
14734
  lastActivatedAt: state2.createdAt,
14811
14735
  activationCount: 1
14812
14736
  });
@@ -14838,7 +14762,7 @@ var resolveMemoryVNextM4Selection = async (input) => {
14838
14762
  if (recalledStateIds.has(hit.state.id)) continue;
14839
14763
  recalledStateIds.add(hit.state.id);
14840
14764
  recalledStates.push(
14841
- buildSynthesizedStateItem2(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
14765
+ buildSynthesizedStateItem(hit.state, entityById.get(hit.state.entityId), owner.ownerType, owner.ownerId)
14842
14766
  );
14843
14767
  }
14844
14768
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveAgentImageInputSupport
3
- } from "./chunk-SRL56PI2.js";
3
+ } from "./chunk-KNIIRXHF.js";
4
4
  import {
5
5
  TOOL_HAD_IMAGES,
6
6
  hadToolImages
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-JC5XLWZK.js";
14
+ } from "./chunk-EWPDMS4N.js";
15
15
  import {
16
16
  buildEnvFromProfile,
17
17
  loadProfileConfig
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-SRL56PI2.js";
6
+ } from "./chunk-KNIIRXHF.js";
7
7
  import {
8
8
  projectOpenAiToolImages
9
9
  } from "./chunk-E2BESSAW.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-JC5XLWZK.js";
14
+ } from "./chunk-EWPDMS4N.js";
15
15
  import {
16
16
  asOptionalTrimmedString
17
17
  } from "./chunk-G3SUCT4W.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-SRL56PI2.js";
6
+ } from "./chunk-KNIIRXHF.js";
7
7
  import {
8
8
  accumulateToolCallDelta,
9
9
  createThinkParserState,
@@ -31,7 +31,7 @@ import {
31
31
  stablePromptCacheKey,
32
32
  toOpenAiCompatibleMessages,
33
33
  toResponsesTools
34
- } from "./chunk-PFJNLBRU.js";
34
+ } from "./chunk-JM5C4EUA.js";
35
35
  import {
36
36
  isMeaningfulChatCompletionOutput,
37
37
  isMeaningfulResponsesOutput
@@ -51,14 +51,14 @@ import {
51
51
  resolvePlatformAuthToken,
52
52
  resolvePlatformServerUrl,
53
53
  resolveProviderTransportDecision
54
- } from "./chunk-2OLYKYNY.js";
54
+ } from "./chunk-4NA3YTBC.js";
55
55
  import {
56
56
  isRecord
57
57
  } from "./chunk-KUG52IAP.js";
58
58
  import {
59
59
  NOLO_CLIENT_VERSION_HEADER,
60
60
  isPlatformMimoProviderModel
61
- } from "./chunk-VALBGPM6.js";
61
+ } from "./chunk-OBSEKCVK.js";
62
62
 
63
63
  // packages/ai/token/sseUsageExtract.ts
64
64
  var TOKEN_FIELDS = [
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-3N4ASIP6.js";
5
+ } from "./chunk-EOJZGQAE.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-BGGHA5DV.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-FVZW66K4.js";
24
+ } from "./chunk-FNDSBM4J.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveRuntimeAuthToken,
3
3
  resolveRuntimeServerUrl
4
- } from "./chunk-OGHP3CTL.js";
4
+ } from "./chunk-SBVTHMEG.js";
5
5
  import {
6
6
  isAgentRunTerminalStatus,
7
7
  normalizeRunTitle,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-AFHOCBSP.js";
4
+ } from "./chunk-FTQWYWUI.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-6D7NVU66.js";
7
+ } from "./chunk-2VA6TU4I.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-OXKUPBAQ.js";
10
+ } from "./chunk-QZI44GWV.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-BV3FLP2L.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-T3O6BLYU.js";
3
+ } from "./chunk-HOK3ILHA.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-FVZW66K4.js";
6
+ } from "./chunk-FNDSBM4J.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-6OVNSQHN.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  isNoloHostedProvider
15
- } from "./chunk-VALBGPM6.js";
15
+ } from "./chunk-OBSEKCVK.js";
16
16
  import {
17
17
  asTrimmedLowercaseString
18
18
  } from "./chunk-QSJ3HFEF.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-KAVGK4ES.js";
6
+ } from "./chunk-WG2LFJYB.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-QWYFFHCJ.js";
9
+ } from "./chunk-K44HIUBX.js";
10
10
  import {
11
11
  CREDENTIAL_HYGIENE_RULE,
12
12
  DELETE_SAFETY_RED_LINE,
@@ -22,7 +22,7 @@ import {
22
22
  compileContextLayers,
23
23
  detectDispatchIntentFromMessages,
24
24
  resolveToolGuidedSections
25
- } from "./chunk-FRSBYNWI.js";
25
+ } from "./chunk-2TIQO6TC.js";
26
26
  import {
27
27
  convertMessagesToResponsesInput,
28
28
  getUsageRequestOptions,
@@ -31,11 +31,11 @@ import {
31
31
  resolveReasoningReplayOptions,
32
32
  shouldStripReasoningContentForOutbound,
33
33
  stablePromptCacheKey
34
- } from "./chunk-PFJNLBRU.js";
34
+ } from "./chunk-JM5C4EUA.js";
35
35
  import {
36
36
  resolveAgentCallPlan,
37
37
  resolveClientWire
38
- } from "./chunk-UMRI2IRY.js";
38
+ } from "./chunk-DISQCYPE.js";
39
39
  import {
40
40
  createFileCredentialBroker
41
41
  } from "./chunk-SNBZZPYH.js";
@@ -53,7 +53,7 @@ import {
53
53
  } from "./chunk-L5I543VB.js";
54
54
  import {
55
55
  buildProviderAuthHeaders
56
- } from "./chunk-2OLYKYNY.js";
56
+ } from "./chunk-4NA3YTBC.js";
57
57
  import {
58
58
  toErrorMessage
59
59
  } from "./chunk-HNMXYYJR.js";
@@ -64,7 +64,7 @@ import {
64
64
  clampReasoningEffort,
65
65
  getModelConfig,
66
66
  isModelSupportReasoningEffort
67
- } from "./chunk-LE6LGAJE.js";
67
+ } from "./chunk-KYH7XW3K.js";
68
68
  import {
69
69
  isRecord
70
70
  } from "./chunk-KUG52IAP.js";
@@ -73,7 +73,7 @@ import {
73
73
  isFireworksKimiModel,
74
74
  isPlatformMimoProviderModel,
75
75
  resolveFireworksKimiModel
76
- } from "./chunk-VALBGPM6.js";
76
+ } from "./chunk-OBSEKCVK.js";
77
77
  import {
78
78
  API_ENDPOINTS
79
79
  } from "./chunk-LCBAMY2M.js";
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-GRAFOZF2.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-FERQO74C.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
11729
11729
  return 0;
11730
11730
  }
11731
11731
  async function resolveUsageUserId(env) {
11732
- const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-PO3MVDME.js");
11732
+ const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-KICKKNYQ.js");
11733
11733
  return resolveLocalUserId(env);
11734
11734
  }
11735
11735
  function isLocalDbMissingError(error) {
@@ -14,10 +14,10 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-F3TQURKK.js";
17
+ } from "./chunk-YXMBJ7UH.js";
18
18
  import {
19
19
  runtime_default
20
- } from "./chunk-FVZW66K4.js";
20
+ } from "./chunk-FNDSBM4J.js";
21
21
  import {
22
22
  getCurrentSpaceId
23
23
  } from "./chunk-MOMR7NMG.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-FVZW66K4.js";
5
+ } from "./chunk-FNDSBM4J.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,