nolo-cli 0.97.4 → 0.97.6

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 (140) hide show
  1. package/{_executeModel-GWED52PB.js → _executeModel-E64QIKWF.js} +69 -67
  2. package/action-PNPQLJHG.js +20 -0
  3. package/{addContentAction-B2DRF7P6.js → addContentAction-DX6T34JR.js} +13 -12
  4. package/{addDialogAgentAction-T3I7IXPK.js → addDialogAgentAction-6SGG37BF.js} +17 -16
  5. package/{agentDeleteCommand-FH462XO5.js → agentDeleteCommand-76VXVM3N.js} +40 -39
  6. package/{agentEmailCommands-6UNG6QKI.js → agentEmailCommands-URGNKPPJ.js} +79 -77
  7. package/{agentListCommands-7QQZXKMN.js → agentListCommands-62NGDFOS.js} +50 -49
  8. package/{agentMachineCommands-DCBE3CPT.js → agentMachineCommands-SDIABR4D.js} +38 -37
  9. package/{agentProviderCommands-EMZCM6VA.js → agentProviderCommands-SG535ZMY.js} +1 -1
  10. package/{agentPullCommand-HF4A42D4.js → agentPullCommand-5DOL6RGF.js} +1 -1
  11. package/{agentRecordCommands-TNOVFCQ3.js → agentRecordCommands-ZICUGEEH.js} +73 -71
  12. package/{agentRunCommand-PAUTLE6D.js → agentRunCommand-66NCRPQ7.js} +76 -74
  13. package/{agentRunControl-2TTTUTSW.js → agentRunControl-3HWA2LLQ.js} +2 -2
  14. package/{agentRuntimeLocal-AY6YNUAL.js → agentRuntimeLocal-EZPUCRMS.js} +35 -34
  15. package/{agentSlice-FRLSN5HD.js → agentSlice-V2EDVUXC.js} +15 -14
  16. package/{appDeleteCommands-DFA4W66A.js → appDeleteCommands-7WLUFWPE.js} +35 -34
  17. package/{appDeployCommands-RDTG2IGP.js → appDeployCommands-NK22AMAW.js} +35 -34
  18. package/{appDeployStatusCommands-43XL5KEM.js → appDeployStatusCommands-PIWSMQET.js} +35 -34
  19. package/{appGetCommands-AKEAHGIG.js → appGetCommands-J3H6IHUT.js} +35 -34
  20. package/{appListCommands-F2H37K7K.js → appListCommands-CF4NYHRY.js} +35 -34
  21. package/{authCommand-2YPMMIJN.js → authCommand-T6UO5KPG.js} +20 -20
  22. package/{authCommands-FFDS4FVX.js → authCommands-KTIUCVVG.js} +4 -4
  23. package/{builtinSkillRegistry-CALVIJTX.js → builtinSkillRegistry-MAR5LPAC.js} +7 -6
  24. package/{chunk-4J3Q2KJL.js → chunk-2LM7XUCX.js} +10 -8
  25. package/{chunk-EKS2APRJ.js → chunk-2TYM4V33.js} +2 -2
  26. package/{chunk-O26PCYLS.js → chunk-2WJ57RJA.js} +6 -6
  27. package/{chunk-XVLDUNF7.js → chunk-3PELUSVV.js} +4 -4
  28. package/{chunk-C53ZG23R.js → chunk-4XYBLM4D.js} +4 -4
  29. package/{chunk-ZOVKKMF6.js → chunk-74D5HEDI.js} +1 -1
  30. package/{chunk-UQNS32WZ.js → chunk-7MTCBOOS.js} +1 -1
  31. package/chunk-A4SQRTZ6.js +15 -0
  32. package/chunk-AGIM7IMJ.js +147 -0
  33. package/{chunk-7WCQEMPB.js → chunk-ANRWQGOV.js} +27 -27
  34. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  35. package/{chunk-4HXY5QQG.js → chunk-APVTZ66V.js} +1 -1
  36. package/{chunk-OTEMQQZI.js → chunk-BFWQ65IZ.js} +1 -1
  37. package/{chunk-QMX4FNL4.js → chunk-BS7YHAQP.js} +84 -84
  38. package/{chunk-6D2JFXLY.js → chunk-BZ7NPA6G.js} +0 -2
  39. package/{chunk-34TW5T2M.js → chunk-CERE5KFG.js} +1 -1
  40. package/{chunk-TU5NE4U3.js → chunk-CV366NXM.js} +7 -7
  41. package/{chunk-KLMW4NNN.js → chunk-DBOMSOYX.js} +1 -1
  42. package/{chunk-AWF3WO5R.js → chunk-DHA6B3LS.js} +7 -7
  43. package/chunk-DZ7R5V3Y.js +164 -0
  44. package/{chunk-I3QNET24.js → chunk-E3YWHWCR.js} +20 -1
  45. package/{chunk-Z4CSIXYP.js → chunk-ELIMCKNX.js} +5 -5
  46. package/{chunk-CTUQJVQM.js → chunk-EMQZSES6.js} +1 -1
  47. package/{chunk-RSEEDUMS.js → chunk-EPCAQM3U.js} +2 -2
  48. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  49. package/{chunk-DCLMZ5TX.js → chunk-HP57OUJO.js} +5 -5
  50. package/{chunk-WILHZY7K.js → chunk-JNXHAQPJ.js} +4 -4
  51. package/{chunk-AZRHIN5B.js → chunk-K6U4NKFJ.js} +1 -1
  52. package/{chunk-3R7EAVTC.js → chunk-KFJ7ZWBF.js} +38 -38
  53. package/{chunk-PQ3B6KI6.js → chunk-LYKHXIQC.js} +92 -92
  54. package/{chunk-HYZIYH2H.js → chunk-NVRC52JS.js} +22 -20
  55. package/chunk-NWENLDMM.js +42 -0
  56. package/{chunk-YXXI6MJ2.js → chunk-OCZQEXMX.js} +56 -60
  57. package/{chunk-P6GMCCAT.js → chunk-OW4APERY.js} +1 -1
  58. package/{chunk-RJK4MLDC.js → chunk-OXEHLZNH.js} +18 -20
  59. package/{chunk-DSSTTEKI.js → chunk-PQ6BKMXB.js} +2 -2
  60. package/{chunk-VN45QM57.js → chunk-QNTL2KFU.js} +76 -76
  61. package/{chunk-QJC7X767.js → chunk-RJYTVNWD.js} +1 -1
  62. package/{chunk-CPUFH46E.js → chunk-ROFPWC4X.js} +12 -12
  63. package/{chunk-IAESIMK7.js → chunk-RX4HD4H7.js} +8 -8
  64. package/{chunk-7AEF6ZXP.js → chunk-SBFHKTI7.js} +7 -7
  65. package/{chunk-VVXRRZXE.js → chunk-SESH42J6.js} +3 -3
  66. package/{chunk-DDBBIUXZ.js → chunk-SH7KLR4U.js} +20 -20
  67. package/{chunk-DAWDCRIG.js → chunk-TAWF7YAW.js} +1 -1
  68. package/{chunk-ZYWQNCBN.js → chunk-TVCAR26G.js} +1 -1
  69. package/{chunk-APMUYAPK.js → chunk-U3C3IA32.js} +1 -1
  70. package/chunk-UJXNKP5V.js +760 -0
  71. package/{chunk-O2OWEFII.js → chunk-VCAQFMVN.js} +1 -1
  72. package/{chunk-KCDUTE5V.js → chunk-VEYL5MO5.js} +4 -4
  73. package/{chunk-WIWM4FE3.js → chunk-VY6VFGKR.js} +7 -746
  74. package/{chunk-XAYSAKSS.js → chunk-VZZUQTBR.js} +2 -2
  75. package/{chunk-CU3QB4HW.js → chunk-W72ISAKC.js} +3 -3
  76. package/{chunk-QKUMVP3O.js → chunk-WCGC6S77.js} +4 -4
  77. package/{chunk-SEZZCP3H.js → chunk-WGPKQLZO.js} +27 -27
  78. package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
  79. package/{chunk-6ZWMH6TJ.js → chunk-WS2VEVHS.js} +4 -5
  80. package/{chunk-7CHC4W22.js → chunk-XBIYSBSG.js} +5 -5
  81. package/{chunk-NR4IWY23.js → chunk-YWLAWZYQ.js} +40 -260
  82. package/{chunk-R5VLGKMK.js → chunk-Z7A2EDGT.js} +15 -15
  83. package/{chunk-VFWN2MLE.js → chunk-ZGNDLCYH.js} +170 -153
  84. package/{commandRegistry-PUSRUY6V.js → commandRegistry-N47CRDOH.js} +70 -70
  85. package/{contentThunks-JFPH7ZGN.js → contentThunks-RRD2XMWB.js} +32 -32
  86. package/{createAgentAutomationAction-AYUD3TVG.js → createAgentAutomationAction-OW4WEVHP.js} +35 -35
  87. package/{createDialogAction-5EJGAQL5.js → createDialogAction-L3WMTD5Z.js} +36 -35
  88. package/{createPageAction-OJVJJSAD.js → createPageAction-PWG3K3K7.js} +43 -42
  89. package/{dbSlice-DQ32LYTJ.js → dbSlice-BUB77DHH.js} +12 -11
  90. package/{deleteFile-NX6QHCWZ.js → deleteFile-HG4BF3CS.js} +8 -7
  91. package/{dialogCommands-TQ2EYOO3.js → dialogCommands-CNXJGME5.js} +38 -38
  92. package/{dialogSlice-L5SA2HCW.js → dialogSlice-M7ZWTW5D.js} +31 -31
  93. package/{docCreateCommands-YGTVED6F.js → docCreateCommands-U2TEDZHS.js} +34 -33
  94. package/{docDeleteCommands-Y2K6UBU5.js → docDeleteCommands-K4ME6F6S.js} +35 -34
  95. package/{docReadCommands-JSJTTCVY.js → docReadCommands-ZUAVR3HH.js} +34 -33
  96. package/{docStore-DAAP4WFC.js → docStore-IX7ASJUP.js} +13 -12
  97. package/{docUpdateCommands-X2ZC37D3.js → docUpdateCommands-UKEOVRTF.js} +34 -33
  98. package/{fetchMessages-67MEFPZR.js → fetchMessages-N2BW2L62.js} +4 -4
  99. package/getPricing-NMMFT3YI.js +1 -1
  100. package/{handleSendMessageAction-NCZABULQ.js → handleSendMessageAction-KMPC6UD4.js} +36 -36
  101. package/index.js +3 -3
  102. package/{localDialogRead-EBRS242U.js → localDialogRead-3FHUPYAR.js} +1 -1
  103. package/{localRuntimeDb-3LRMNLCM.js → localRuntimeDb-AXJREE2T.js} +1 -1
  104. package/{machineCommands-GRIO3LQG.js → machineCommands-U4RRZGU6.js} +79 -77
  105. package/{machineWsRunDispatch-65IU4CLA.js → machineWsRunDispatch-V3IOP2P2.js} +71 -69
  106. package/{memberThunks-5ZXPR63F.js → memberThunks-LEUNURN2.js} +21 -19
  107. package/package.json +1 -1
  108. package/{providerPresetApply-76AVU3HD.js → providerPresetApply-76AHT34P.js} +4 -4
  109. package/{providerRegistry-Z62NC45X.js → providerRegistry-6HAQAQXB.js} +4 -4
  110. package/{read-EPTJRAEF.js → read-TBK4DFHP.js} +8 -7
  111. package/{readDocTool-W4NDXNEX.js → readDocTool-TJFCZ3ND.js} +1 -1
  112. package/{readlineWorkspace-6F27WVAV.js → readlineWorkspace-QTCU2BC4.js} +327 -110
  113. package/{removeDialogAgentAction-BVAWQKXE.js → removeDialogAgentAction-CT5HGRZH.js} +20 -22
  114. package/{runAgentClientLoop-CKC7RYAK.js → runAgentClientLoop-4VOARXQF.js} +65 -63
  115. package/{runtimeDoctorCommands-3USD722U.js → runtimeDoctorCommands-EQJA4MGD.js} +2 -2
  116. package/{setDialogExtraReferencesAction-LYY45IAD.js → setDialogExtraReferencesAction-JOENKFTX.js} +14 -13
  117. package/{setPrimaryDialogAgentAction-73IL7DLU.js → setPrimaryDialogAgentAction-MHWOGXP3.js} +20 -22
  118. package/{chunk-SONWNI3L.js → settingThunks-KLPZNA6L.js} +104 -921
  119. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  120. package/{spaceCommands-JZO2QK77.js → spaceCommands-ZESRWSTC.js} +36 -35
  121. package/{streamAgentChatTurn-4PBF5RK5.js → streamAgentChatTurn-VDAVK7N3.js} +110 -108
  122. package/{switchDialogAgentAction-UUXDSQ6X.js → switchDialogAgentAction-JHA4JEYA.js} +14 -13
  123. package/{tableCommands-G7RV3RU3.js → tableCommands-6U4BMLRR.js} +7 -7
  124. package/{toolApiClient-INIQCPGY.js → toolApiClient-EJT6TMFG.js} +4 -4
  125. package/{tools-BQ375D2L.js → tools-VJ3L5V6D.js} +53 -51
  126. package/{tuiSummaryLlmCaller-74NRRLVW.js → tuiSummaryLlmCaller-QUCBFGZK.js} +18 -17
  127. package/{updateDialogTitleAction-DTREH6RR.js → updateDialogTitleAction-GBUSLAQR.js} +39 -39
  128. package/action-GI44T4DR.js +0 -31
  129. package/browser-image-compression-MFDTD7K6.js +0 -1763
  130. package/chatQueueReduxAdapter-B3PSJ3GC.js +0 -187
  131. package/chunk-MEYIRKDN.js +0 -8967
  132. package/chunk-Y5GCAMGP.js +0 -9
  133. package/chunk-YPREESF4.js +0 -225
  134. package/settingSlice-Q6EKL7EQ.js +0 -204
  135. package/syncMapping-N6RGXGBW.js +0 -437
  136. package/{chunk-6PHKBY2Q.js → chunk-4YSOUKUR.js} +8 -8
  137. package/{chunk-S5XGT6GB.js → chunk-UA324D4O.js} +3 -3
  138. package/{chunk-MX574M24.js → chunk-V4UYSDTH.js} +3 -3
  139. package/{chunk-ESRMFY7G.js → chunk-XFUBXRVI.js} +5 -5
  140. package/{localRuntimeAuthority-5W6IJRAD.js → localRuntimeAuthority-AENMRPGX.js} +5 -5
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-VFWN2MLE.js";
3
+ } from "./chunk-ZGNDLCYH.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-QMX4FNL4.js";
6
+ } from "./chunk-BS7YHAQP.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-XUWRURDF.js";
@@ -17,6 +17,94 @@ import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
19
19
 
20
+ // packages/ai/chat/inlineImageUrlsForCustomProvider.ts
21
+ var FILE_CONTENT_PATH = "/api/v1/db/file/content/";
22
+ var shouldInlineImageUrlsForAgent = (agentConfig) => {
23
+ const apiSource = agentConfig?.apiSource?.toLowerCase();
24
+ const provider = agentConfig?.provider?.toLowerCase();
25
+ const model = agentConfig?.model?.toLowerCase();
26
+ if (apiSource === "custom" || provider === "custom") return true;
27
+ if (isNoloHostedProvider(provider)) return true;
28
+ return provider === "openrouter" && model === "minimax/minimax-m3";
29
+ };
30
+ var isInlineCandidate = (url) => /^https?:\/\//i.test(url) && url.includes(FILE_CONTENT_PATH);
31
+ var bytesToBase64 = (bytes) => {
32
+ let binary = "";
33
+ for (const byte of bytes) {
34
+ binary += String.fromCharCode(byte);
35
+ }
36
+ return btoa(binary);
37
+ };
38
+ var defaultFetchImage = async (url) => {
39
+ const response = await fetch(url);
40
+ if (!response.ok) {
41
+ return {
42
+ ok: false,
43
+ error: `HTTP ${response.status}`
44
+ };
45
+ }
46
+ const bytes = new Uint8Array(await response.arrayBuffer());
47
+ return {
48
+ ok: true,
49
+ mimeType: response.headers.get("content-type") ?? "application/octet-stream",
50
+ bytes
51
+ };
52
+ };
53
+ var cloneImagePartWithDataUrl = async (part, fetchImage, isAllowedImageUrl) => {
54
+ const url = part?.image_url?.url;
55
+ if (typeof url !== "string" || !isInlineCandidate(url) || isAllowedImageUrl && !isAllowedImageUrl(url)) {
56
+ return part;
57
+ }
58
+ const result = await fetchImage(url);
59
+ if (!result.ok || !result.bytes) return part;
60
+ const mimeType = result.mimeType || "application/octet-stream";
61
+ return {
62
+ ...part,
63
+ image_url: {
64
+ ...part.image_url,
65
+ url: `data:${mimeType};base64,${bytesToBase64(result.bytes)}`
66
+ }
67
+ };
68
+ };
69
+ var inlineImageUrlsForCustomProvider = async (bodyData, options) => {
70
+ if (!options.shouldInline) return bodyData;
71
+ const body = bodyData;
72
+ if (!Array.isArray(body?.messages)) return bodyData;
73
+ const fetchImage = options.fetchImage ?? defaultFetchImage;
74
+ let changed = false;
75
+ const messages = [];
76
+ for (const message of body.messages) {
77
+ if (!Array.isArray(message?.content)) {
78
+ messages.push(message);
79
+ continue;
80
+ }
81
+ const content = await Promise.all(
82
+ message.content.map(async (part) => {
83
+ if (part?.type !== "image_url") return part;
84
+ return cloneImagePartWithDataUrl(
85
+ part,
86
+ fetchImage,
87
+ options.isAllowedImageUrl
88
+ );
89
+ })
90
+ );
91
+ let messageChanged = false;
92
+ for (let i = 0; i < content.length; i++) {
93
+ if (content[i] !== message.content[i]) {
94
+ changed = true;
95
+ messageChanged = true;
96
+ break;
97
+ }
98
+ }
99
+ messages.push(messageChanged ? { ...message, content } : message);
100
+ }
101
+ if (!changed) return bodyData;
102
+ return {
103
+ ...body,
104
+ messages
105
+ };
106
+ };
107
+
20
108
  // packages/ai/tools/toolSchemaCompatibility.ts
21
109
  var COMPOSITION_KEYS = ["anyOf", "oneOf", "allOf"];
22
110
  var LIMITED_JSON_SCHEMA_PROVIDERS = /* @__PURE__ */ new Set([
@@ -180,96 +268,8 @@ var prepareTools = (toolNames, options) => {
180
268
  return prepared.slice();
181
269
  };
182
270
 
183
- // packages/ai/chat/inlineImageUrlsForCustomProvider.ts
184
- var FILE_CONTENT_PATH = "/api/v1/db/file/content/";
185
- var shouldInlineImageUrlsForAgent = (agentConfig) => {
186
- const apiSource = agentConfig?.apiSource?.toLowerCase();
187
- const provider = agentConfig?.provider?.toLowerCase();
188
- const model = agentConfig?.model?.toLowerCase();
189
- if (apiSource === "custom" || provider === "custom") return true;
190
- if (isNoloHostedProvider(provider)) return true;
191
- return provider === "openrouter" && model === "minimax/minimax-m3";
192
- };
193
- var isInlineCandidate = (url) => /^https?:\/\//i.test(url) && url.includes(FILE_CONTENT_PATH);
194
- var bytesToBase64 = (bytes) => {
195
- let binary = "";
196
- for (const byte of bytes) {
197
- binary += String.fromCharCode(byte);
198
- }
199
- return btoa(binary);
200
- };
201
- var defaultFetchImage = async (url) => {
202
- const response = await fetch(url);
203
- if (!response.ok) {
204
- return {
205
- ok: false,
206
- error: `HTTP ${response.status}`
207
- };
208
- }
209
- const bytes = new Uint8Array(await response.arrayBuffer());
210
- return {
211
- ok: true,
212
- mimeType: response.headers.get("content-type") ?? "application/octet-stream",
213
- bytes
214
- };
215
- };
216
- var cloneImagePartWithDataUrl = async (part, fetchImage, isAllowedImageUrl) => {
217
- const url = part?.image_url?.url;
218
- if (typeof url !== "string" || !isInlineCandidate(url) || isAllowedImageUrl && !isAllowedImageUrl(url)) {
219
- return part;
220
- }
221
- const result = await fetchImage(url);
222
- if (!result.ok || !result.bytes) return part;
223
- const mimeType = result.mimeType || "application/octet-stream";
224
- return {
225
- ...part,
226
- image_url: {
227
- ...part.image_url,
228
- url: `data:${mimeType};base64,${bytesToBase64(result.bytes)}`
229
- }
230
- };
231
- };
232
- var inlineImageUrlsForCustomProvider = async (bodyData, options) => {
233
- if (!options.shouldInline) return bodyData;
234
- const body = bodyData;
235
- if (!Array.isArray(body?.messages)) return bodyData;
236
- const fetchImage = options.fetchImage ?? defaultFetchImage;
237
- let changed = false;
238
- const messages = [];
239
- for (const message of body.messages) {
240
- if (!Array.isArray(message?.content)) {
241
- messages.push(message);
242
- continue;
243
- }
244
- const content = await Promise.all(
245
- message.content.map(async (part) => {
246
- if (part?.type !== "image_url") return part;
247
- return cloneImagePartWithDataUrl(
248
- part,
249
- fetchImage,
250
- options.isAllowedImageUrl
251
- );
252
- })
253
- );
254
- let messageChanged = false;
255
- for (let i = 0; i < content.length; i++) {
256
- if (content[i] !== message.content[i]) {
257
- changed = true;
258
- messageChanged = true;
259
- break;
260
- }
261
- }
262
- messages.push(messageChanged ? { ...message, content } : message);
263
- }
264
- if (!changed) return bodyData;
265
- return {
266
- ...body,
267
- messages
268
- };
269
- };
270
-
271
271
  export {
272
- prepareTools,
273
272
  shouldInlineImageUrlsForAgent,
274
- inlineImageUrlsForCustomProvider
273
+ inlineImageUrlsForCustomProvider,
274
+ prepareTools
275
275
  };
@@ -2,24 +2,15 @@ import {
2
2
  loadFileFromIndexedDb,
3
3
  removeAction,
4
4
  saveFileToIndexedDb
5
- } from "./chunk-7CHC4W22.js";
6
- import {
7
- fileKey,
8
- getFileIdFromKey,
9
- ulid
10
- } from "./chunk-3AH7LNUB.js";
5
+ } from "./chunk-XBIYSBSG.js";
11
6
  import {
12
7
  readAction,
13
8
  readRequestManager,
14
9
  resolveAgentReadServers
15
- } from "./chunk-IAESIMK7.js";
10
+ } from "./chunk-RX4HD4H7.js";
16
11
  import {
17
- asyncThunkCreator,
18
- buildCreateSlice,
19
12
  compareRemoteRecordsByComparableTime,
20
- createEntityAdapter,
21
13
  getRuntimeServerContext,
22
- noloDeleteRequest,
23
14
  pickBestSettledRemoteRecord,
24
15
  planAuthorityReadServers,
25
16
  resolveAuthorityReplicationServers,
@@ -32,19 +23,30 @@ import {
32
23
  shouldReplaceLocalWithRemoteRecord,
33
24
  shouldReplicateLocalRecord,
34
25
  uploadToCurrentServer
35
- } from "./chunk-WIWM4FE3.js";
36
- import {
37
- fetchFromClientDb,
38
- fetchFromServer,
39
- logger,
40
- normalizeTimeFields
41
- } from "./chunk-QOKAKDPE.js";
26
+ } from "./chunk-UJXNKP5V.js";
42
27
  import {
43
28
  isTombstoneRecord
44
29
  } from "./chunk-GBRG75BQ.js";
45
30
  import {
46
31
  isRecord
47
32
  } from "./chunk-KUG52IAP.js";
33
+ import {
34
+ fileKey,
35
+ getFileIdFromKey,
36
+ ulid
37
+ } from "./chunk-3AH7LNUB.js";
38
+ import {
39
+ asyncThunkCreator,
40
+ buildCreateSlice,
41
+ createEntityAdapter,
42
+ noloDeleteRequest
43
+ } from "./chunk-VY6VFGKR.js";
44
+ import {
45
+ fetchFromClientDb,
46
+ fetchFromServer,
47
+ logger,
48
+ normalizeTimeFields
49
+ } from "./chunk-HIM3FCLF.js";
48
50
  import {
49
51
  API_ENDPOINTS
50
52
  } from "./chunk-LCBAMY2M.js";
@@ -712,7 +714,7 @@ var dbSlice = createSliceWithThunks({
712
714
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
713
715
  read: create.asyncThunk(
714
716
  async (payload, thunkApi) => {
715
- const { readAction: readAction2 } = await import("./read-EPTJRAEF.js");
717
+ const { readAction: readAction2 } = await import("./read-TBK4DFHP.js");
716
718
  return readAction2(payload, thunkApi);
717
719
  },
718
720
  {
@@ -786,7 +788,7 @@ var dbSlice = createSliceWithThunks({
786
788
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
787
789
  share: create.asyncThunk(
788
790
  async (config, thunkApi) => {
789
- const { shareResourceAction } = await import("./action-GI44T4DR.js");
791
+ const { shareResourceAction } = await import("./action-PNPQLJHG.js");
790
792
  return shareResourceAction(config, thunkApi);
791
793
  }
792
794
  ),
@@ -0,0 +1,42 @@
1
+ import {
2
+ createSelector
3
+ } from "./chunk-VY6VFGKR.js";
4
+ import {
5
+ getAllServers,
6
+ getIsDesktopApp
7
+ } from "./chunk-HIM3FCLF.js";
8
+ import {
9
+ SERVERS
10
+ } from "./chunk-LCBAMY2M.js";
11
+ import {
12
+ isLocalServerUrl
13
+ } from "./chunk-4SN6J65J.js";
14
+
15
+ // packages/app/settings/serverSelectors.ts
16
+ var resolveDesktopSafeServer = (value) => {
17
+ if (!getIsDesktopApp()) return value || SERVERS.MAIN;
18
+ return isLocalServerUrl(value) ? SERVERS.MAIN : value || SERVERS.MAIN;
19
+ };
20
+ var selectSettings = (state) => state.settings;
21
+ var selectCurrentServer = createSelector(
22
+ [selectSettings],
23
+ (settings) => resolveDesktopSafeServer(settings.currentServer)
24
+ );
25
+ var selectSyncServers = createSelector(
26
+ [selectSettings],
27
+ (settings) => (settings.syncServers || []).filter(
28
+ (server) => !getIsDesktopApp() || !isLocalServerUrl(server)
29
+ )
30
+ );
31
+ var selectRemoteServer = selectCurrentServer;
32
+ var selectRemoteSyncServers = selectSyncServers;
33
+ var selectRemoteServers = createSelector(
34
+ [selectRemoteServer, selectRemoteSyncServers],
35
+ (currentServer, syncServers) => getAllServers(currentServer, syncServers)
36
+ );
37
+
38
+ export {
39
+ selectCurrentServer,
40
+ selectSyncServers,
41
+ selectRemoteServers
42
+ };
@@ -28,7 +28,7 @@ import {
28
28
  t,
29
29
  toolLabel,
30
30
  toolLabelVariants
31
- } from "./chunk-VN45QM57.js";
31
+ } from "./chunk-QNTL2KFU.js";
32
32
  import {
33
33
  clearCredentialAvailability,
34
34
  readCredentialEntry,
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-62IL3KQV.js";
37
37
  import {
38
38
  getReadableCliDb
39
- } from "./chunk-CTUQJVQM.js";
39
+ } from "./chunk-EMQZSES6.js";
40
40
  import {
41
41
  _appendEntityBatch,
42
42
  _appendEvidenceBatch,
@@ -51,52 +51,49 @@ import {
51
51
  loadMemoryVNextCatalog,
52
52
  putMemoryEvidenceVNext
53
53
  } from "./chunk-TY3TIUJK.js";
54
- import {
55
- resolveMachineId
56
- } from "./chunk-ESHYE7WU.js";
57
54
  import {
58
55
  readDbRecord,
59
56
  resolveAgentRecordFromHybridStore
60
- } from "./chunk-XAYSAKSS.js";
57
+ } from "./chunk-VZZUQTBR.js";
61
58
  import {
62
59
  isLocalCliAgentKey
63
60
  } from "./chunk-SV5IJK6K.js";
64
- import {
65
- extractGoogleValidationLink
66
- } from "./chunk-BMQ2MJUK.js";
67
- import {
68
- createRunActivityTracker,
69
- popSingleQueueMessage,
70
- readRunRecord,
71
- resolveRunQueuePath,
72
- settleRunTerminalAuthoritatively,
73
- spawnLocalBackgroundRun
74
- } from "./chunk-APMUYAPK.js";
75
- import {
76
- isCliAuthorityBrokerProtocolError,
77
- isCliAuthorityBrokerTimeoutError,
78
- isCliAuthorityBrokerUnavailableError
79
- } from "./chunk-EXAJ6DCR.js";
80
- import {
81
- getDefaultCliLocalRuntimeDb
82
- } from "./chunk-ZOVKKMF6.js";
83
61
  import {
84
62
  CliProviderQuotaError
85
63
  } from "./chunk-MP64VFGD.js";
64
+ import {
65
+ resolveMachineId
66
+ } from "./chunk-ESHYE7WU.js";
86
67
  import {
87
68
  applyModelLayerOverride,
88
69
  buildModelLayerOverride
89
70
  } from "./chunk-LTRXGFMS.js";
90
- import {
91
- formatAgentListCard
92
- } from "./chunk-VFWN2MLE.js";
93
71
  import {
94
72
  isGatewayHttpStatus
95
73
  } from "./chunk-NF64D32W.js";
96
74
  import {
97
- isTransientFetchError
98
- } from "./chunk-5UTFL4QJ.js";
75
+ isTransientFetchError,
76
+ parsePositiveFiniteNumberOrFallback
77
+ } from "./chunk-AOTBKDRK.js";
78
+ import {
79
+ extractGoogleValidationLink
80
+ } from "./chunk-BMQ2MJUK.js";
81
+ import {
82
+ buildMemorySubjectsForAgent,
83
+ chooseMemoryOwners,
84
+ loadMemoryCandidatesFromDb,
85
+ resolveAgentMemoryPolicy
86
+ } from "./chunk-SH7KLR4U.js";
87
+ import {
88
+ createRunActivityTracker,
89
+ popSingleQueueMessage,
90
+ readRunRecord,
91
+ resolveRunQueuePath,
92
+ settleRunTerminalAuthoritatively,
93
+ spawnLocalBackgroundRun
94
+ } from "./chunk-U3C3IA32.js";
99
95
  import {
96
+ formatAgentListCard,
100
97
  formatFinishedRunCard,
101
98
  formatListRunsCard,
102
99
  formatNotFoundRunCard,
@@ -104,17 +101,19 @@ import {
104
101
  formatStatusRunCard,
105
102
  formatStopRunCard,
106
103
  isAgentRunTerminalStatus
107
- } from "./chunk-I3QNET24.js";
104
+ } from "./chunk-E3YWHWCR.js";
108
105
  import {
109
- buildMemorySubjectsForAgent,
110
- chooseMemoryOwners,
111
- loadMemoryCandidatesFromDb,
112
- resolveAgentMemoryPolicy
113
- } from "./chunk-DDBBIUXZ.js";
106
+ isCliAuthorityBrokerProtocolError,
107
+ isCliAuthorityBrokerTimeoutError,
108
+ isCliAuthorityBrokerUnavailableError
109
+ } from "./chunk-EXAJ6DCR.js";
110
+ import {
111
+ getDefaultCliLocalRuntimeDb
112
+ } from "./chunk-74D5HEDI.js";
114
113
  import {
115
114
  API_REPORTED_COST_MULTIPLIER,
116
115
  parseUiAskChoiceContent
117
- } from "./chunk-QMX4FNL4.js";
116
+ } from "./chunk-BS7YHAQP.js";
118
117
  import {
119
118
  isOAuthApiKeyRef
120
119
  } from "./chunk-YYLHWIW6.js";
@@ -129,10 +128,10 @@ import {
129
128
  LOCAL_AGENT_CONFIG_MISSING_CODE,
130
129
  LOCAL_TURN_ABORTED_CODE,
131
130
  readActionGate
132
- } from "./chunk-7WCQEMPB.js";
131
+ } from "./chunk-ANRWQGOV.js";
133
132
  import {
134
133
  resolveAgentRuntimeConfigFromRecord
135
- } from "./chunk-C53ZG23R.js";
134
+ } from "./chunk-4XYBLM4D.js";
136
135
  import {
137
136
  createThinkParserState,
138
137
  flushThinkParser,
@@ -146,29 +145,17 @@ import {
146
145
  resolveCooldownGate,
147
146
  resolveCredentialKeyWithFallback
148
147
  } from "./chunk-H6A6X4EK.js";
149
- import {
150
- isAntigravityOAuthAgent
151
- } from "./chunk-S5XGT6GB.js";
152
- import {
153
- resolveClientVersion
154
- } from "./chunk-27ONFIEY.js";
155
148
  import {
156
149
  DEFAULT_CONTEXT_WINDOW,
157
150
  getModelContextWindow,
158
151
  normalizeUsage
159
- } from "./chunk-WILHZY7K.js";
152
+ } from "./chunk-JNXHAQPJ.js";
160
153
  import {
161
154
  clipCompactText
162
155
  } from "./chunk-5MMAK75Q.js";
163
156
  import {
164
157
  compactWhitespace
165
158
  } from "./chunk-DWLEOOGR.js";
166
- import {
167
- toErrorMessage
168
- } from "./chunk-HNMXYYJR.js";
169
- import {
170
- findModelConfig
171
- } from "./chunk-3BXNTXYI.js";
172
159
  import {
173
160
  buildAgentsMdLayer,
174
161
  buildMemoryOverlayLayer,
@@ -176,6 +163,18 @@ import {
176
163
  partitionScopedBlocks,
177
164
  renderTurnContextBlocksWithScope
178
165
  } from "./chunk-HDLLCBRF.js";
166
+ import {
167
+ isAntigravityOAuthAgent
168
+ } from "./chunk-UA324D4O.js";
169
+ import {
170
+ resolveClientVersion
171
+ } from "./chunk-27ONFIEY.js";
172
+ import {
173
+ findModelConfig
174
+ } from "./chunk-3BXNTXYI.js";
175
+ import {
176
+ toErrorMessage
177
+ } from "./chunk-HNMXYYJR.js";
179
178
  import {
180
179
  getLogger,
181
180
  normalizeError
@@ -192,13 +191,6 @@ import {
192
191
  NOLO_CLIENT_VERSION_HEADER,
193
192
  buildClientVersionUpgradeMessage
194
193
  } from "./chunk-Y3PMXGLH.js";
195
- import {
196
- parsePositiveFiniteNumberOrFallback
197
- } from "./chunk-Y5GCAMGP.js";
198
- import {
199
- createMemoryKey,
200
- ulid
201
- } from "./chunk-3AH7LNUB.js";
202
194
  import {
203
195
  asTrimmedLowercaseString
204
196
  } from "./chunk-QSJ3HFEF.js";
@@ -210,6 +202,10 @@ import {
210
202
  import {
211
203
  parsePublicAgentId
212
204
  } from "./chunk-M2EJHDJP.js";
205
+ import {
206
+ createMemoryKey,
207
+ ulid
208
+ } from "./chunk-3AH7LNUB.js";
213
209
  import {
214
210
  asTrimmedString
215
211
  } from "./chunk-3EUW3WEO.js";
@@ -10726,7 +10722,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
10726
10722
  // packages/cli/client/agentRun.ts
10727
10723
  import { ulid as ulid2 } from "ulid";
10728
10724
  async function loadRunLocalAgentTurn() {
10729
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AY6YNUAL.js");
10725
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-EZPUCRMS.js");
10730
10726
  return runLocalAgentTurn;
10731
10727
  }
10732
10728
  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();
@@ -5,7 +5,7 @@ import {
5
5
  getAntigravityUserAgent,
6
6
  readAntigravityProjectId,
7
7
  resolveAntigravityCloudCodeBaseUrl
8
- } from "./chunk-S5XGT6GB.js";
8
+ } from "./chunk-UA324D4O.js";
9
9
  import {
10
10
  asOptionalTrimmedString
11
11
  } from "./chunk-G3SUCT4W.js";
@@ -7,7 +7,15 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-QJC7X767.js";
10
+ } from "./chunk-RJYTVNWD.js";
11
+ import {
12
+ fetchWithTransientRetry,
13
+ parsePositiveFiniteNumberOrFallback
14
+ } from "./chunk-AOTBKDRK.js";
15
+ import {
16
+ DRAIN_EXHAUSTED_USER_MESSAGE,
17
+ isDrainExhaustedResponse
18
+ } from "./chunk-3L2WKC3W.js";
11
19
  import {
12
20
  isLevelLockError
13
21
  } from "./chunk-URMS4XY2.js";
@@ -15,13 +23,6 @@ import {
15
23
  resolveLocalDialogDbCandidates,
16
24
  resolveServerDbPath
17
25
  } from "./chunk-GLKOYSRU.js";
18
- import {
19
- fetchWithTransientRetry
20
- } from "./chunk-5UTFL4QJ.js";
21
- import {
22
- DRAIN_EXHAUSTED_USER_MESSAGE,
23
- isDrainExhaustedResponse
24
- } from "./chunk-3L2WKC3W.js";
25
26
  import {
26
27
  buildDialogAttachmentPlan,
27
28
  extractFileContentIds
@@ -30,7 +31,10 @@ import {
30
31
  boundSummaryText,
31
32
  buildDialogReadEnvelope,
32
33
  projectDialogReadForAgent
33
- } from "./chunk-6PHKBY2Q.js";
34
+ } from "./chunk-4YSOUKUR.js";
35
+ import {
36
+ asRecordOrEmpty
37
+ } from "./chunk-KX6YBIHG.js";
34
38
  import {
35
39
  toErrorMessage
36
40
  } from "./chunk-HNMXYYJR.js";
@@ -43,24 +47,18 @@ import {
43
47
  resolveServerUrl
44
48
  } from "./chunk-A7GB5UGH.js";
45
49
  import {
46
- parsePositiveFiniteNumberOrFallback
47
- } from "./chunk-Y5GCAMGP.js";
48
- import {
49
- asRecordOrEmpty
50
- } from "./chunk-KX6YBIHG.js";
50
+ isRecord
51
+ } from "./chunk-KUG52IAP.js";
51
52
  import {
52
53
  asNonEmptyStringArray,
53
54
  asTrimmedNonEmptyStringArray
54
55
  } from "./chunk-3AH7LNUB.js";
55
56
  import {
56
57
  createClientLogger
57
- } from "./chunk-QOKAKDPE.js";
58
+ } from "./chunk-HIM3FCLF.js";
58
59
  import {
59
60
  isLevelNotFoundError
60
61
  } from "./chunk-OW765XBU.js";
61
- import {
62
- isRecord
63
- } from "./chunk-KUG52IAP.js";
64
62
  import {
65
63
  asTrimmedString
66
64
  } from "./chunk-3EUW3WEO.js";
@@ -725,7 +723,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
725
723
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
726
724
  }
727
725
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
728
- const reader = readLocalDialog ?? (await import("./localDialogRead-EBRS242U.js")).readDialogFromLocalDb;
726
+ const reader = readLocalDialog ?? (await import("./localDialogRead-3FHUPYAR.js")).readDialogFromLocalDb;
729
727
  const result = await reader({ dialogKey, dialogId, limit });
730
728
  return {
731
729
  ...result,
@@ -742,7 +740,7 @@ async function readLocalDialogAtDbPathDefault(args) {
742
740
  const [{ Level }, { safeJsonEncoding }, { fetchMessages }] = await Promise.all([
743
741
  import("./levelLazyShim-GZBKODGI.js"),
744
742
  import("./serverStoreFactory-YMXDF4NI.js"),
745
- import("./fetchMessages-67MEFPZR.js")
743
+ import("./fetchMessages-N2BW2L62.js")
746
744
  ]);
747
745
  const db = new Level(args.dbPath, {
748
746
  valueEncoding: safeJsonEncoding,
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-ZRAU6T47.js";
4
4
  import {
5
5
  getActiveDialogKey
6
- } from "./chunk-6D2JFXLY.js";
6
+ } from "./chunk-BZ7NPA6G.js";
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-HYZIYH2H.js";
10
+ } from "./chunk-NVRC52JS.js";
11
11
 
12
12
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
13
13
  var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {