nolo-cli 0.102.1 → 0.102.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 (104) hide show
  1. package/{_executeModel-WLFACVFR.js → _executeModel-B6SS2ISV.js} +32 -32
  2. package/{action-PNPQLJHG.js → action-C4KMTCJF.js} +2 -2
  3. package/{addContentAction-RBOUD7SJ.js → addContentAction-7TNIOVZI.js} +6 -6
  4. package/{addDialogAgentAction-IODCR6TB.js → addDialogAgentAction-O47J3MVW.js} +5 -5
  5. package/{agentDeleteCommand-XHHDYJ3U.js → agentDeleteCommand-MEKEAJS6.js} +36 -36
  6. package/{agentEmailCommands-GJ2TE3CV.js → agentEmailCommands-NCQSCDX7.js} +36 -36
  7. package/{agentListCommands-B3YHJQNM.js → agentListCommands-VLNQH2BR.js} +19 -19
  8. package/{agentMachineCommands-KQLRJF5O.js → agentMachineCommands-ZYKZGX65.js} +17 -17
  9. package/{agentRecordCommands-LXDIXYQM.js → agentRecordCommands-2INKPT2O.js} +36 -36
  10. package/{agentRunCommand-P2KLVSYL.js → agentRunCommand-2SZBC7BP.js} +36 -36
  11. package/{agentRuntimeLocal-SXYAKX3A.js → agentRuntimeLocal-7VIX3R3R.js} +14 -14
  12. package/{agentSlice-WBSSBKBB.js → agentSlice-4JIT2XG4.js} +7 -7
  13. package/{appDeleteCommands-4EX37I4K.js → appDeleteCommands-YLCAVP4I.js} +18 -18
  14. package/{appDeployCommands-SDBR3J75.js → appDeployCommands-7PQPIIEL.js} +18 -18
  15. package/{appDeployStatusCommands-764PQNYN.js → appDeployStatusCommands-Z3YBCYU3.js} +18 -18
  16. package/{appGetCommands-BBCN3XJC.js → appGetCommands-MCY6JLD3.js} +18 -18
  17. package/{appListCommands-OGTABCS3.js → appListCommands-O6QDXYKT.js} +18 -18
  18. package/{authCommand-NHDLY3IB.js → authCommand-I6LVUQKM.js} +2 -2
  19. package/{authCommands-UDBJVSZU.js → authCommands-LWLOZETU.js} +2 -2
  20. package/{builtinSkillRegistry-MAR5LPAC.js → builtinSkillRegistry-GFY77VRN.js} +4 -4
  21. package/{chunk-UM4PH574.js → chunk-22RVE2PC.js} +1 -1
  22. package/{chunk-XFUBXRVI.js → chunk-2H6SEVDS.js} +1 -1
  23. package/{chunk-PCF3QU5Q.js → chunk-2K4TM6AW.js} +1 -1
  24. package/{chunk-5LTAPGPV.js → chunk-2K54PIZY.js} +2 -2
  25. package/{chunk-VEYL5MO5.js → chunk-4G4C5SXT.js} +3 -3
  26. package/{chunk-WCGC6S77.js → chunk-4HTMUQIZ.js} +2 -2
  27. package/{chunk-4FFUDT6D.js → chunk-56HJ2LAA.js} +17 -7
  28. package/{chunk-E73ON47R.js → chunk-5EPHWMP5.js} +2 -2
  29. package/{chunk-DNHENQ3T.js → chunk-5UQRASYE.js} +5 -5
  30. package/{chunk-7EPXUZOX.js → chunk-6UEJDFF7.js} +2 -2
  31. package/{chunk-5OA5HMTL.js → chunk-7JWCVINR.js} +1 -1
  32. package/{chunk-4YSOUKUR.js → chunk-7KWFIKKK.js} +1 -1
  33. package/{chunk-6O4IK4V2.js → chunk-CUF4MYKI.js} +1 -1
  34. package/{chunk-PTDYOADJ.js → chunk-D2GQE6AF.js} +1 -1
  35. package/{chunk-OYPMWCIQ.js → chunk-DLXHN5XZ.js} +9 -9
  36. package/{chunk-KLUBZL6X.js → chunk-ERFIIS4C.js} +1 -1
  37. package/{chunk-46Y5D2BZ.js → chunk-EV235ILT.js} +1 -1
  38. package/{chunk-HRYFI64G.js → chunk-F6DFZLO4.js} +3 -3
  39. package/{chunk-FJ5BGMNM.js → chunk-FBTNYNAL.js} +1 -1
  40. package/{chunk-EHER73LN.js → chunk-GCTKWVLU.js} +1 -1
  41. package/{chunk-U6IGAJT4.js → chunk-GJ647AYV.js} +7 -7
  42. package/{chunk-SEB5HAUU.js → chunk-HD3S2F7U.js} +1 -1
  43. package/{chunk-LKERWYPX.js → chunk-IRZTHHNM.js} +2 -2
  44. package/{chunk-V5OWQOJZ.js → chunk-K4URP6NQ.js} +1 -1
  45. package/{chunk-7TKWCTSY.js → chunk-KNVDNYH7.js} +2 -2
  46. package/{chunk-7MMSLEPA.js → chunk-LB5A6JTU.js} +3 -3
  47. package/{chunk-TVCAR26G.js → chunk-MSFZ7FMO.js} +1 -1
  48. package/{chunk-XIRXOUBV.js → chunk-NGO72MN2.js} +6 -6
  49. package/{chunk-CJN5OERD.js → chunk-NMMU6M4Z.js} +22 -22
  50. package/{chunk-UJXNKP5V.js → chunk-O7SVKKLY.js} +129 -14
  51. package/{chunk-SNMQMOD2.js → chunk-Q7O72MF5.js} +1 -1
  52. package/{chunk-GARACBQB.js → chunk-RILRSUGC.js} +1 -1
  53. package/{chunk-AOJB5QYD.js → chunk-S7HQBOEA.js} +10 -10
  54. package/{chunk-CHNCM7EF.js → chunk-TAPMD4SO.js} +7 -7
  55. package/{chunk-SEA64CDY.js → chunk-TSXNDTXL.js} +1 -1
  56. package/{chunk-GUYEMTRK.js → chunk-TTMNMJVI.js} +45 -32
  57. package/{chunk-W72ISAKC.js → chunk-UNAOTLKO.js} +1 -1
  58. package/{chunk-PH275YDS.js → chunk-V3R3UZ4F.js} +24 -17
  59. package/{chunk-N4QIAW6W.js → chunk-V6YASAZR.js} +1 -1
  60. package/{chunk-AUDNYVRC.js → chunk-VLGL7FOL.js} +1 -1
  61. package/{chunk-ODTDLPBV.js → chunk-VPNDYFUB.js} +3 -3
  62. package/{chunk-NTDEBTK5.js → chunk-XMUZHRSB.js} +6 -6
  63. package/{chunk-Z56IK6UT.js → chunk-XTM4WSXT.js} +8 -8
  64. package/{chunk-ADBZWMFB.js → chunk-YDO5ERB4.js} +1 -1
  65. package/{chunk-U7XXEI5R.js → chunk-YGCJITP3.js} +2 -2
  66. package/{chunk-YXZYNMYK.js → chunk-Z5X5MD6D.js} +2 -2
  67. package/{chunk-G53AA7RW.js → chunk-ZQZZJIQI.js} +63 -14
  68. package/{commandRegistry-TDXN5OP7.js → commandRegistry-X7FA6WJQ.js} +50 -50
  69. package/{contentThunks-F2BNWOZV.js → contentThunks-CH5Z3XAD.js} +15 -15
  70. package/{createAgentAutomationAction-5N2NRNR7.js → createAgentAutomationAction-4MV3MWVE.js} +15 -15
  71. package/{createDialogAction-DSEG4L5Y.js → createDialogAction-BYCJKWFY.js} +18 -18
  72. package/{createPageAction-K32FYQPE.js → createPageAction-XWDTQHFL.js} +16 -16
  73. package/{dbSlice-Q25STFGJ.js → dbSlice-QOLNF5GN.js} +5 -5
  74. package/{deleteFile-AJ2EZMHT.js → deleteFile-KESP65GC.js} +2 -2
  75. package/{dialogCommands-ODG2OKLO.js → dialogCommands-NNSKMYZR.js} +19 -19
  76. package/{dialogSlice-4GBOUTGL.js → dialogSlice-LUUVLJKZ.js} +14 -14
  77. package/{docCreateCommands-Q6FQUHUF.js → docCreateCommands-BKCYZTJW.js} +19 -19
  78. package/{docDeleteCommands-N224CFZL.js → docDeleteCommands-AJDU5BUV.js} +20 -20
  79. package/{docReadCommands-CJWAEAB4.js → docReadCommands-PPI2UAIW.js} +19 -19
  80. package/{docStore-ZTYSP3YE.js → docStore-RRAGFCNQ.js} +6 -6
  81. package/{docUpdateCommands-OPG6ZY4H.js → docUpdateCommands-62WIRKAN.js} +19 -19
  82. package/{fetchMessages-I5ICDDHM.js → fetchMessages-5L7OVM5Y.js} +2 -2
  83. package/{handleSendMessageAction-XFZH2TQS.js → handleSendMessageAction-CW5HSH4E.js} +14 -14
  84. package/index.js +3 -3
  85. package/{localDialogRead-ZHZ3KXDM.js → localDialogRead-O5A26FDK.js} +1 -1
  86. package/{machineCommands-KMU3D5I5.js → machineCommands-FG6HBFB7.js} +35 -35
  87. package/{machineWsRunDispatch-6GJ5YOSW.js → machineWsRunDispatch-7JCANNGT.js} +35 -35
  88. package/{memberThunks-R75S3RWP.js → memberThunks-25K6DDRA.js} +6 -6
  89. package/package.json +1 -1
  90. package/{read-SRQMNO26.js → read-PJIT2YEJ.js} +2 -2
  91. package/{readDocTool-RC3JUNJ2.js → readDocTool-DRSXHGNL.js} +1 -1
  92. package/{readlineWorkspace-EXCG3IFX.js → readlineWorkspace-HISW3JNJ.js} +40 -40
  93. package/{removeDialogAgentAction-46XQV5Q7.js → removeDialogAgentAction-VIWJL6MX.js} +6 -6
  94. package/{runAgentClientLoop-URRDZ5WG.js → runAgentClientLoop-4XIIPXH3.js} +30 -30
  95. package/{setDialogExtraReferencesAction-J4V5ADQF.js → setDialogExtraReferencesAction-A7VA3NFM.js} +6 -6
  96. package/{setPrimaryDialogAgentAction-UHHV2QZW.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +6 -6
  97. package/{settingThunks-PPZZZOWN.js → settingThunks-KOYSAT65.js} +5 -5
  98. package/{spaceCommands-7CLUNI2I.js → spaceCommands-BBEY2U7J.js} +17 -17
  99. package/{streamAgentChatTurn-YPUYKXDX.js → streamAgentChatTurn-WRLQAWTW.js} +32 -32
  100. package/{switchDialogAgentAction-A2TMVGAE.js → switchDialogAgentAction-3VYWHZKH.js} +5 -5
  101. package/{tools-M5ENXZRJ.js → tools-NPSZ3DTN.js} +27 -27
  102. package/{tuiSummaryLlmCaller-Q65IBDGO.js → tuiSummaryLlmCaller-O3DZKOHE.js} +8 -8
  103. package/{updateDialogTitleAction-7PNUE23W.js → updateDialogTitleAction-DBW4OTMM.js} +15 -15
  104. /package/{chunk-3AH7LNUB.js → chunk-ODAPITXL.js} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  createFileCredentialBroker,
4
4
  migrateAgentSecrets,
5
5
  normalizeAgentRuntimeToolPolicy
6
- } from "./chunk-XFUBXRVI.js";
6
+ } from "./chunk-2H6SEVDS.js";
7
7
  import {
8
8
  asRecordOrEmpty
9
9
  } from "./chunk-KX6YBIHG.js";
@@ -11,14 +11,14 @@ import {
11
11
  patch,
12
12
  remove,
13
13
  write
14
- } from "./chunk-4FFUDT6D.js";
14
+ } from "./chunk-56HJ2LAA.js";
15
15
  import {
16
16
  getRuntimeServerContext
17
- } from "./chunk-UJXNKP5V.js";
17
+ } from "./chunk-O7SVKKLY.js";
18
18
  import {
19
19
  createAgentKey,
20
20
  toTrimmedString
21
- } from "./chunk-3AH7LNUB.js";
21
+ } from "./chunk-ODAPITXL.js";
22
22
  import {
23
23
  asyncThunkCreator,
24
24
  buildCreateSlice
@@ -306,7 +306,7 @@ var slice = createSliceWithThunks({
306
306
  const overrides = {};
307
307
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
308
308
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
309
- const { _executeModel } = await import("./_executeModel-WLFACVFR.js");
309
+ const { _executeModel } = await import("./_executeModel-B6SS2ISV.js");
310
310
  return _executeModel(
311
311
  {
312
312
  isStreaming: args.isStreaming ?? false,
@@ -327,7 +327,7 @@ var slice = createSliceWithThunks({
327
327
  * - 循环直到无工具调用或触发其他运行时停止条件
328
328
  */
329
329
  runAgent: create.asyncThunk(async (args, thunkApi) => {
330
- const { runAgentClientLoop } = await import("./runAgentClientLoop-URRDZ5WG.js");
330
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-4XIIPXH3.js");
331
331
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
332
332
  {
333
333
  agentKey: args.agentKey,
@@ -343,7 +343,7 @@ var slice = createSliceWithThunks({
343
343
  * 聊天轮次流式 Agent 调用
344
344
  */
345
345
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
346
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YPUYKXDX.js");
346
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-WRLQAWTW.js");
347
347
  return streamAgentChatTurnHandler(args, thunkApi);
348
348
  }),
349
349
  /**
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-7EPXUZOX.js";
5
+ } from "./chunk-6UEJDFF7.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-OXME3PEE.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  assembleAgentDiscoveryResult,
6
6
  resolveDiscoveryScope
7
- } from "./chunk-U7XXEI5R.js";
7
+ } from "./chunk-YGCJITP3.js";
8
8
  import {
9
9
  fetchWithTransientRetry
10
10
  } from "./chunk-AOTBKDRK.js";
@@ -34,7 +34,7 @@ import {
34
34
  readPageFunc,
35
35
  readPageFunctionSchema,
36
36
  resolvePageReadMarkdown
37
- } from "./chunk-GARACBQB.js";
37
+ } from "./chunk-RILRSUGC.js";
38
38
  import {
39
39
  addMemberSpace,
40
40
  fetchAuthoritativeRemoteSpace,
@@ -46,7 +46,7 @@ import {
46
46
  setMembershipRejected,
47
47
  setSpaceInitialized,
48
48
  updateMemberSpaceName
49
- } from "./chunk-FJ5BGMNM.js";
49
+ } from "./chunk-FBTNYNAL.js";
50
50
  import {
51
51
  ToolApiError,
52
52
  buildToolRequestHeaders,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-HP57OUJO.js";
58
58
  import {
59
59
  setDialogExtraReferencesAction
60
- } from "./chunk-UM4PH574.js";
60
+ } from "./chunk-22RVE2PC.js";
61
61
  import {
62
62
  waitForAbortableDelay
63
63
  } from "./chunk-N4G4PKQ6.js";
@@ -75,10 +75,10 @@ import {
75
75
  } from "./chunk-VF4K2QE6.js";
76
76
  import {
77
77
  createDocState
78
- } from "./chunk-ODTDLPBV.js";
78
+ } from "./chunk-VPNDYFUB.js";
79
79
  import {
80
80
  createDialogAction
81
- } from "./chunk-DNHENQ3T.js";
81
+ } from "./chunk-5UQRASYE.js";
82
82
  import {
83
83
  TASK_PREVIEW_MAX,
84
84
  buildDelegatedTaskContent,
@@ -108,7 +108,7 @@ import {
108
108
  updateContentCategory,
109
109
  updateContentTitle,
110
110
  writeStoredCollapsedCategories
111
- } from "./chunk-U6IGAJT4.js";
111
+ } from "./chunk-GJ647AYV.js";
112
112
  import {
113
113
  getCurrentSpaceId,
114
114
  getCurrentSpaceIdRaw,
@@ -130,14 +130,14 @@ import {
130
130
  selectMsgById,
131
131
  uiAskChoiceFunc,
132
132
  uiAskChoiceFunctionSchema
133
- } from "./chunk-CJN5OERD.js";
133
+ } from "./chunk-NMMU6M4Z.js";
134
134
  import {
135
135
  createAgent,
136
136
  deleteServerSyncedCredential,
137
137
  runLlm,
138
138
  streamAgentChatTurn,
139
139
  updateAgent
140
- } from "./chunk-CHNCM7EF.js";
140
+ } from "./chunk-TAPMD4SO.js";
141
141
  import {
142
142
  getActiveDialogKey,
143
143
  selectCurrentDialogKey,
@@ -151,10 +151,10 @@ import {
151
151
  resolveBuiltinCapability,
152
152
  resolveBuiltinSkillByName,
153
153
  resolveBuiltinSkillEntry
154
- } from "./chunk-VEYL5MO5.js";
154
+ } from "./chunk-4G4C5SXT.js";
155
155
  import {
156
156
  CAPABILITY_PACKS
157
- } from "./chunk-WCGC6S77.js";
157
+ } from "./chunk-4HTMUQIZ.js";
158
158
  import {
159
159
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
160
160
  } from "./chunk-WJ3B6FX6.js";
@@ -165,7 +165,7 @@ import {
165
165
  parseExternalSkillMarkdown,
166
166
  parseSkillDocProtocol,
167
167
  resolvePageSkillMetadata
168
- } from "./chunk-AUDNYVRC.js";
168
+ } from "./chunk-VLGL7FOL.js";
169
169
  import {
170
170
  DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
171
171
  NOLO_WORKSPACE_TOOL_NAMES,
@@ -182,10 +182,10 @@ import {
182
182
  redactAgentRecordForWorkspaceTool,
183
183
  resolveNoloDialogInput,
184
184
  verifyNoloDialogSubjectRefQuery
185
- } from "./chunk-4YSOUKUR.js";
185
+ } from "./chunk-7KWFIKKK.js";
186
186
  import {
187
187
  buildDatabaseFileContentUrl
188
- } from "./chunk-7MMSLEPA.js";
188
+ } from "./chunk-LB5A6JTU.js";
189
189
  import {
190
190
  clipCompactText
191
191
  } from "./chunk-5MMAK75Q.js";
@@ -194,7 +194,7 @@ import {
194
194
  } from "./chunk-DWLEOOGR.js";
195
195
  import {
196
196
  createFileCredentialBroker
197
- } from "./chunk-XFUBXRVI.js";
197
+ } from "./chunk-2H6SEVDS.js";
198
198
  import {
199
199
  asRecordOrEmpty
200
200
  } from "./chunk-KX6YBIHG.js";
@@ -202,7 +202,7 @@ import {
202
202
  UNCATEGORIZED_ID,
203
203
  addContentAction,
204
204
  checkSpaceMembership
205
- } from "./chunk-E73ON47R.js";
205
+ } from "./chunk-5EPHWMP5.js";
206
206
  import {
207
207
  createSpaceKey,
208
208
  normalizeSpaceId
@@ -218,7 +218,7 @@ import {
218
218
  selectEntities,
219
219
  toTimestampMs,
220
220
  write
221
- } from "./chunk-4FFUDT6D.js";
221
+ } from "./chunk-56HJ2LAA.js";
222
222
  import {
223
223
  canonicalizeToolName,
224
224
  canonicalizeToolNames
@@ -243,7 +243,7 @@ import {
243
243
  } from "./chunk-QSJ3HFEF.js";
244
244
  import {
245
245
  readAction
246
- } from "./chunk-PTDYOADJ.js";
246
+ } from "./chunk-D2GQE6AF.js";
247
247
  import {
248
248
  DEVICE_LOCAL_OWNER_ID,
249
249
  getRuntimeServerContext,
@@ -253,7 +253,7 @@ import {
253
253
  resolveEffectiveSpaceActorId,
254
254
  resolveRecordOwnerUserId,
255
255
  selectRuntimeSnapshot
256
- } from "./chunk-UJXNKP5V.js";
256
+ } from "./chunk-O7SVKKLY.js";
257
257
  import {
258
258
  buildTombstoneRecord,
259
259
  isTombstoneRecord
@@ -266,7 +266,7 @@ import {
266
266
  } from "./chunk-KUG52IAP.js";
267
267
  import {
268
268
  shareResourceAction
269
- } from "./chunk-W72ISAKC.js";
269
+ } from "./chunk-UNAOTLKO.js";
270
270
  import {
271
271
  selectCurrentServer,
272
272
  selectSyncServers
@@ -291,7 +291,7 @@ import {
291
291
  splitKey,
292
292
  toTrimmedString,
293
293
  ulid
294
- } from "./chunk-3AH7LNUB.js";
294
+ } from "./chunk-ODAPITXL.js";
295
295
  import {
296
296
  asOptionalFiniteNumber
297
297
  } from "./chunk-WWC7I6TA.js";
@@ -3892,6 +3892,8 @@ async function readDialogFunc(args, thunkApi) {
3892
3892
  // 对全量消息做 materialize + 整体 stringify。
3893
3893
  body: JSON.stringify({
3894
3894
  dialogId: resolved.dialogId,
3895
+ // 同作用域已解析出的记录 key:不传则服务端退化为 `dialog-*` 全命名空间扫描。
3896
+ dialogKey: resolved.dbKey,
3895
3897
  limit,
3896
3898
  maxChars: DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS
3897
3899
  })
@@ -3996,7 +3998,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3996
3998
  const deletedDialogIds = [];
3997
3999
  const deletedDialogKeys = [];
3998
4000
  const failures = [];
3999
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-4GBOUTGL.js");
4001
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-LUUVLJKZ.js");
4000
4002
  for (const target of targets) {
4001
4003
  try {
4002
4004
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4312,7 +4314,7 @@ var readSkillDocFunctionSchema = {
4312
4314
  }
4313
4315
  };
4314
4316
  async function readSkillDocFunc(args, thunkApi) {
4315
- const { buildReadDocResult } = await import("./readDocTool-RC3JUNJ2.js");
4317
+ const { buildReadDocResult } = await import("./readDocTool-DRSXHGNL.js");
4316
4318
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4317
4319
  if (typeof id !== "string" || !id.trim()) {
4318
4320
  throw new Error("readSkillDoc requires id or doc.");
@@ -5104,7 +5106,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5104
5106
  const spaceKey = createSpaceKey.space(spaceId);
5105
5107
  const readSpace = async (dbKey) => {
5106
5108
  try {
5107
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-Q25STFGJ.js");
5109
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QOLNF5GN.js");
5108
5110
  if (fresh) {
5109
5111
  return await dispatch(readAndWait2(dbKey)).unwrap();
5110
5112
  }
@@ -10852,7 +10854,7 @@ var selectUserIdFromState = (state2) => {
10852
10854
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
10853
10855
  async function addImageContentToSpace(input) {
10854
10856
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
10855
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-RBOUD7SJ.js")).addContentAction;
10857
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-7TNIOVZI.js")).addContentAction;
10856
10858
  await addContentAction2(
10857
10859
  {
10858
10860
  spaceId: input.spaceId,
@@ -14905,7 +14907,7 @@ var executeToolRun = createAsyncThunk(
14905
14907
  if (!executionInput) {
14906
14908
  throw new Error(`ToolRun ${id} has no input to execute with.`);
14907
14909
  }
14908
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-M5ENXZRJ.js");
14910
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-NPSZ3DTN.js");
14909
14911
  const { executor } = findToolExecutor2(run.toolName);
14910
14912
  toolRunStarted({
14911
14913
  id: run.id,
@@ -14929,7 +14931,7 @@ var executeToolRun = createAsyncThunk(
14929
14931
  const latestState = thunkApi.getState();
14930
14932
  const userId = selectIdentityUserId(latestState);
14931
14933
  if (userId) {
14932
- const { fetchUserSpaceMemberships } = await import("./memberThunks-R75S3RWP.js");
14934
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-25K6DDRA.js");
14933
14935
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
14934
14936
  }
14935
14937
  }
@@ -17229,7 +17231,11 @@ async function fetchDialogMessagesFromServer(args) {
17229
17231
  Authorization: `Bearer ${args.token}`,
17230
17232
  "Content-Type": "application/json"
17231
17233
  },
17232
- body: JSON.stringify({ dialogId: args.dialogId, limit: args.limit })
17234
+ body: JSON.stringify({
17235
+ dialogId: args.dialogId,
17236
+ ...args.dialogKey ? { dialogKey: args.dialogKey } : {},
17237
+ limit: args.limit
17238
+ })
17233
17239
  });
17234
17240
  if (!response.ok) return [];
17235
17241
  const newestFirst = await response.json();
@@ -17239,7 +17245,7 @@ async function fetchDialogMessagesFromServer(args) {
17239
17245
  dbKey: message.dbKey
17240
17246
  }));
17241
17247
  }
17242
- async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLimit) {
17248
+ async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLimit, dialogKey) {
17243
17249
  const localMessages = await collectDialogMessages(db, dialogId);
17244
17250
  const state2 = thunkApi?.getState?.();
17245
17251
  const runtime = state2 ? selectRuntimeSnapshot(state2) : null;
@@ -17255,6 +17261,7 @@ async function collectBestAvailableDialogMessages(db, dialogId, thunkApi, scanLi
17255
17261
  serverBase: base,
17256
17262
  token: runtime?.currentToken,
17257
17263
  dialogId,
17264
+ ...dialogKey ? { dialogKey } : {},
17258
17265
  limit: scanLimit
17259
17266
  }).catch(() => [])
17260
17267
  )
@@ -17330,7 +17337,13 @@ async function searchDialogMessagesFunc(args, _thunkApi, context) {
17330
17337
  1,
17331
17338
  SERVER_SCAN_LIMIT
17332
17339
  );
17333
- const messages = await collectBestAvailableDialogMessages(db, dialogId, _thunkApi, scanLimit);
17340
+ const messages = await collectBestAvailableDialogMessages(
17341
+ db,
17342
+ dialogId,
17343
+ _thunkApi,
17344
+ scanLimit,
17345
+ dialogKey
17346
+ );
17334
17347
  const limit = clampDialogSearchNumber(args.limit, 5, 1, MAX_LIMIT);
17335
17348
  const contextMessages = clampDialogSearchNumber(args.contextMessages, 1, 0, MAX_CONTEXT_MESSAGES);
17336
17349
  const results = buildDialogMessageSearchResults({
@@ -17412,7 +17425,7 @@ async function updateDocFunc(args, thunkApi) {
17412
17425
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
17413
17426
  };
17414
17427
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
17415
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-ZTYSP3YE.js");
17428
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-RRAGFCNQ.js");
17416
17429
  if (getDocState().pageKey === id) {
17417
17430
  applyExternalDocUpdate({
17418
17431
  slateData: finalSlateData,
@@ -17437,7 +17450,7 @@ async function updateDocFunc(args, thunkApi) {
17437
17450
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
17438
17451
  async function dispatchSetSettings(thunkApi, changes) {
17439
17452
  const injectedSetSettings = thunkApi?.extra?.setSettings;
17440
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-PPZZZOWN.js")).setSettings;
17453
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-KOYSAT65.js")).setSettings;
17441
17454
  await thunkApi.dispatch(setSettings(changes)).unwrap();
17442
17455
  }
17443
17456
  var updateUserPreferenceProfileFunctionSchema = {
@@ -10,7 +10,7 @@ import {
10
10
  sanitizeShareData,
11
11
  shareKey,
12
12
  toNonEmptyString
13
- } from "./chunk-3AH7LNUB.js";
13
+ } from "./chunk-ODAPITXL.js";
14
14
  import {
15
15
  noloDeleteRequest,
16
16
  noloWriteRequest
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-EADNWBAZ.js";
23
23
  import {
24
24
  buildLocalAgentLookupKeys
25
- } from "./chunk-TVCAR26G.js";
25
+ } from "./chunk-MSFZ7FMO.js";
26
26
  import {
27
27
  LOCAL_CODEX_AGENT_ID,
28
28
  LOCAL_CODEX_AGENT_KEY,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  inlineImageUrlsForCustomProvider,
47
47
  prepareTools
48
- } from "./chunk-5LTAPGPV.js";
48
+ } from "./chunk-2K54PIZY.js";
49
49
  import {
50
50
  getServerProviderSecret
51
51
  } from "./chunk-HS7MLR74.js";
@@ -63,11 +63,11 @@ import {
63
63
  rememberMemoryFunctionSchema,
64
64
  resolveAgentRequiredPackIds,
65
65
  setTodoListFunc
66
- } from "./chunk-GUYEMTRK.js";
66
+ } from "./chunk-TTMNMJVI.js";
67
67
  import {
68
68
  deriveCredentialGroup,
69
69
  deriveCustomProviderCredentialGroup
70
- } from "./chunk-U7XXEI5R.js";
70
+ } from "./chunk-YGCJITP3.js";
71
71
  import {
72
72
  fetchWithTransientRetry,
73
73
  isTransientFetchError
@@ -115,14 +115,14 @@ import {
115
115
  prepareTokenUsageData,
116
116
  resolveBuiltinPlatformAgentConfig,
117
117
  runKeyed
118
- } from "./chunk-CJN5OERD.js";
118
+ } from "./chunk-NMMU6M4Z.js";
119
119
  import {
120
120
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
121
121
  BUILTIN_TITLE_LLM_CONFIG
122
122
  } from "./chunk-523DITKR.js";
123
123
  import {
124
124
  fetchServerSyncedCredential
125
- } from "./chunk-CHNCM7EF.js";
125
+ } from "./chunk-TAPMD4SO.js";
126
126
  import {
127
127
  FORCED_TOOLS,
128
128
  addDefaultLightWebToolsForConfiguredAgents,
@@ -132,7 +132,7 @@ import {
132
132
  applySystemBuiltinSkillFilter,
133
133
  expandEnabledPacks,
134
134
  resolveEffectiveEnabledPacks
135
- } from "./chunk-WCGC6S77.js";
135
+ } from "./chunk-4HTMUQIZ.js";
136
136
  import {
137
137
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
138
138
  Duration_exports,
@@ -163,7 +163,7 @@ import {
163
163
  readDevinUpstreamFailure,
164
164
  resolveOpenAiCompatibleProviderConfig,
165
165
  resolveSessionKey
166
- } from "./chunk-G53AA7RW.js";
166
+ } from "./chunk-ZQZZJIQI.js";
167
167
  import {
168
168
  accumulateGeminiChunks,
169
169
  buildGeminiGenerateContentRequest,
@@ -185,14 +185,14 @@ import {
185
185
  readPlatformChatSseCompletion,
186
186
  resolvePlatformChatProviderConfig,
187
187
  shouldUsePlatformChatProvider
188
- } from "./chunk-V5OWQOJZ.js";
188
+ } from "./chunk-K4URP6NQ.js";
189
189
  import {
190
190
  readSseDataValues
191
191
  } from "./chunk-GMZLP5DV.js";
192
192
  import {
193
193
  resolveAgentRuntimeConfigFromRecord,
194
194
  resolveHistoricalToolContentCap
195
- } from "./chunk-SEB5HAUU.js";
195
+ } from "./chunk-HD3S2F7U.js";
196
196
  import {
197
197
  isDevinOAuthAgent
198
198
  } from "./chunk-5ZUL4CUO.js";
@@ -206,7 +206,7 @@ import {
206
206
  buildNoloWorkspaceOpenAiTools,
207
207
  parseNoloWorkspaceToolArguments,
208
208
  resolveRuntimeToolSurfaceForAgent
209
- } from "./chunk-4YSOUKUR.js";
209
+ } from "./chunk-7KWFIKKK.js";
210
210
  import {
211
211
  mergeAvailabilityDeadline,
212
212
  resolveAvailabilityAction,
@@ -219,14 +219,14 @@ import {
219
219
  } from "./chunk-2MBTWINN.js";
220
220
  import {
221
221
  normalizeUsage
222
- } from "./chunk-LKERWYPX.js";
222
+ } from "./chunk-IRZTHHNM.js";
223
223
  import {
224
224
  createProviderCallTimingTracker,
225
225
  finalizeProviderCallTiming,
226
226
  observeMeaningfulProviderResponse,
227
227
  observeMeaningfulProviderResponseAt,
228
228
  withProviderCallTimingFields
229
- } from "./chunk-7MMSLEPA.js";
229
+ } from "./chunk-LB5A6JTU.js";
230
230
  import {
231
231
  clipCompactText
232
232
  } from "./chunk-5MMAK75Q.js";
@@ -238,7 +238,7 @@ import {
238
238
  resolveCurrentRunRuntimeToolPolicy,
239
239
  resolveLocalWorkspaceExecutorOptionsFromPolicy,
240
240
  resolveRequestedRuntimeToolNames
241
- } from "./chunk-XFUBXRVI.js";
241
+ } from "./chunk-2H6SEVDS.js";
242
242
  import {
243
243
  estimateTokenCount
244
244
  } from "./chunk-PSCNXBYA.js";
@@ -311,7 +311,7 @@ import {
311
311
  createTokenStatsKey,
312
312
  createUserKey,
313
313
  dialogMessageRange
314
- } from "./chunk-3AH7LNUB.js";
314
+ } from "./chunk-ODAPITXL.js";
315
315
  import {
316
316
  asTrimmedString
317
317
  } from "./chunk-3EUW3WEO.js";
@@ -4035,7 +4035,7 @@ var resolvePlatformProxyTransport = async (ctx) => {
4035
4035
  return {
4036
4036
  model: providerConfig.model,
4037
4037
  complete: async (messages, options) => {
4038
- const requestId = crypto.randomUUID();
4038
+ const requestId = options?.requestId ?? crypto.randomUUID();
4039
4039
  const usesResponsesApi = providerConfig.endpoint.includes("/responses");
4040
4040
  const stream = Boolean(options?.onTextDelta);
4041
4041
  const request = buildPlatformChatCompletionRequest({
@@ -4064,7 +4064,14 @@ var resolvePlatformProxyTransport = async (ctx) => {
4064
4064
  fetchImpl,
4065
4065
  request.url,
4066
4066
  {
4067
- ...request.init
4067
+ ...request.init,
4068
+ // 取消信号必须落到 fetch init 上:否则 abort 只停止 runtime 侧
4069
+ // 的等待,HTTP 请求仍在途,与 fallback / 下一轮请求重叠。
4070
+ // fetchWithTransientRetry 在 init.signal.aborted 时直接抛出、
4071
+ // 不做任何重试判定(错误分类前先看 aborted),所以 abort 既
4072
+ // 不会被当成可重试的网络错误,也不会重放这个已发起的 POST。
4073
+ // 注意:客户端取消不等于服务端一定停止生成或停止计费。
4074
+ ...options?.signal ? { signal: options.signal } : {}
4068
4075
  },
4069
4076
  {
4070
4077
  sleep: deps.sleep,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-EHER73LN.js";
3
+ } from "./chunk-GCTKWVLU.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-KHCLMKZZ.js";
5
5
  import {
6
6
  asTrimmedNonEmptyStringArray
7
- } from "./chunk-3AH7LNUB.js";
7
+ } from "./chunk-ODAPITXL.js";
8
8
  import {
9
9
  asOptionalTrimmedString
10
10
  } from "./chunk-G3SUCT4W.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-4FFUDT6D.js";
10
+ } from "./chunk-56HJ2LAA.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-F2BNWOZV.js");
336
+ const { updateContentTitle } = await import("./contentThunks-CH5Z3XAD.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-K32FYQPE.js");
375
+ const { createPageAction } = await import("./createPageAction-XWDTQHFL.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-SEA64CDY.js";
10
+ } from "./chunk-TSXNDTXL.js";
11
11
  import {
12
12
  fetchWithTransientRetry,
13
13
  parsePositiveFiniteNumberOrFallback
@@ -26,12 +26,12 @@ import {
26
26
  import {
27
27
  buildDialogAttachmentPlan,
28
28
  extractFileContentIds
29
- } from "./chunk-6O4IK4V2.js";
29
+ } from "./chunk-CUF4MYKI.js";
30
30
  import {
31
31
  boundSummaryText,
32
32
  buildDialogReadEnvelope,
33
33
  projectDialogReadForAgent
34
- } from "./chunk-4YSOUKUR.js";
34
+ } from "./chunk-7KWFIKKK.js";
35
35
  import {
36
36
  asRecordOrEmpty
37
37
  } from "./chunk-KX6YBIHG.js";
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  asNonEmptyStringArray,
54
54
  asTrimmedNonEmptyStringArray
55
- } from "./chunk-3AH7LNUB.js";
55
+ } from "./chunk-ODAPITXL.js";
56
56
  import {
57
57
  createClientLogger
58
58
  } from "./chunk-HIM3FCLF.js";
@@ -723,7 +723,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
723
723
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
724
724
  }
725
725
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
726
- const reader = readLocalDialog ?? (await import("./localDialogRead-ZHZ3KXDM.js")).readDialogFromLocalDb;
726
+ const reader = readLocalDialog ?? (await import("./localDialogRead-O5A26FDK.js")).readDialogFromLocalDb;
727
727
  const result = await reader({ dialogKey, dialogId, limit });
728
728
  return {
729
729
  ...result,
@@ -740,7 +740,7 @@ async function readLocalDialogAtDbPathDefault(args) {
740
740
  const [{ Level }, { safeJsonEncoding }, { fetchMessages }] = await Promise.all([
741
741
  import("./levelLazyShim-GZBKODGI.js"),
742
742
  import("./serverStoreFactory-YMXDF4NI.js"),
743
- import("./fetchMessages-I5ICDDHM.js")
743
+ import("./fetchMessages-5L7OVM5Y.js")
744
744
  ]);
745
745
  const db = new Level(args.dbPath, {
746
746
  valueEncoding: safeJsonEncoding,
@@ -5,14 +5,14 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-5LTAPGPV.js";
8
+ } from "./chunk-2K54PIZY.js";
9
9
  import {
10
10
  INVALID_TOOL_ARGS_REPLACEMENT,
11
11
  buildInvalidToolCallSelfHealResult,
12
12
  parseToolCallArguments,
13
13
  performFetchRequest,
14
14
  sanitizeOutboundMessages
15
- } from "./chunk-OYPMWCIQ.js";
15
+ } from "./chunk-DLXHN5XZ.js";
16
16
  import {
17
17
  createSSEParser,
18
18
  createToolRunId,
@@ -23,7 +23,7 @@ import {
23
23
  toolRunSetPending,
24
24
  toolRunStarted,
25
25
  toolRunSucceeded
26
- } from "./chunk-GUYEMTRK.js";
26
+ } from "./chunk-TTMNMJVI.js";
27
27
  import {
28
28
  getPublicImageAgentMode
29
29
  } from "./chunk-VIDPVFP3.js";
@@ -38,10 +38,10 @@ import {
38
38
  messageStreamEnd,
39
39
  messageStreaming,
40
40
  updateToolMessage
41
- } from "./chunk-CJN5OERD.js";
41
+ } from "./chunk-NMMU6M4Z.js";
42
42
  import {
43
43
  streamAgentChatTurn
44
- } from "./chunk-CHNCM7EF.js";
44
+ } from "./chunk-TAPMD4SO.js";
45
45
  import {
46
46
  addActiveController,
47
47
  removeActiveController,
@@ -59,10 +59,10 @@ import {
59
59
  import {
60
60
  EMPTY_ASSISTANT_REPAIR_PROMPT,
61
61
  getModelInfo
62
- } from "./chunk-LKERWYPX.js";
62
+ } from "./chunk-IRZTHHNM.js";
63
63
  import {
64
64
  write
65
- } from "./chunk-4FFUDT6D.js";
65
+ } from "./chunk-56HJ2LAA.js";
66
66
  import {
67
67
  getApiEndpoint
68
68
  } from "./chunk-3BXNTXYI.js";
@@ -82,7 +82,7 @@ import {
82
82
  createDialogMessageKeyAndId,
83
83
  dialogMessageKey,
84
84
  toTrimmedString
85
- } from "./chunk-3AH7LNUB.js";
85
+ } from "./chunk-ODAPITXL.js";
86
86
  import {
87
87
  createAsyncThunk
88
88
  } from "./chunk-VY6VFGKR.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KUG52IAP.js";
7
7
  import {
8
8
  dialogMessageRange
9
- } from "./chunk-3AH7LNUB.js";
9
+ } from "./chunk-ODAPITXL.js";
10
10
 
11
11
  // packages/chat/messages/fetchMessages.ts
12
12
  function isUnboundedMessageLimit(limit) {