nolo-cli 0.28.0 → 0.29.0

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 (80) hide show
  1. package/{_executeModel-SUMILI7E.js → _executeModel-YQ57CFSN.js} +20 -20
  2. package/{action-5MNAXR5B.js → action-6BM26ZYM.js} +4 -4
  3. package/{addContentAction-UNSYTVTB.js → addContentAction-HLTFX56O.js} +3 -3
  4. package/{addDialogAgentAction-LJGNP2AO.js → addDialogAgentAction-Q2TYWDO6.js} +2 -2
  5. package/{agentDeleteCommand-GEHAXWM6.js → agentDeleteCommand-VP4VLCMG.js} +10 -10
  6. package/{agentEmailCommands-PQXAKGK2.js → agentEmailCommands-PSLJLQRR.js} +23 -23
  7. package/{agentListCommands-V2IIWNTX.js → agentListCommands-MJJJG3OW.js} +11 -11
  8. package/{agentMachineCommands-Y47CABE2.js → agentMachineCommands-IP2A26V7.js} +10 -10
  9. package/{agentRecordCommands-UYUJUT4K.js → agentRecordCommands-3HK3AR3H.js} +23 -23
  10. package/{agentRunCommand-3P6CCJQK.js → agentRunCommand-2IX2ELJQ.js} +23 -23
  11. package/{agentRuntimeLocal-ZALQDCZ3.js → agentRuntimeLocal-VI3NHLDU.js} +7 -7
  12. package/{agentSlice-LH2YKWE7.js → agentSlice-RR6OT2BW.js} +3 -3
  13. package/{appDeleteCommands-XELAKISE.js → appDeleteCommands-SF2V6QYZ.js} +11 -11
  14. package/{appDeployCommands-PFHVHXJ3.js → appDeployCommands-3EPVR545.js} +11 -11
  15. package/{appDeployStatusCommands-RULB3DGE.js → appDeployStatusCommands-O65Y747J.js} +11 -11
  16. package/{appGetCommands-A3NLQ2U5.js → appGetCommands-AHDOF4SS.js} +11 -11
  17. package/{appListCommands-NQLJ7RHY.js → appListCommands-Y7YCXODU.js} +11 -11
  18. package/{chunk-7OYY7W4W.js → chunk-2IN43Q72.js} +3 -3
  19. package/{chunk-7IX2Z2IF.js → chunk-33K2M3AU.js} +2 -2
  20. package/{chunk-54VHTARN.js → chunk-3LJ4RSSF.js} +1 -1
  21. package/{chunk-HTLBU4ZY.js → chunk-4S7B6YC5.js} +7 -7
  22. package/{chunk-I6RJGORZ.js → chunk-BOPFLKHA.js} +1 -1
  23. package/{chunk-D36OKPFG.js → chunk-BYHN2CP5.js} +1 -1
  24. package/{chunk-OXLLFZNF.js → chunk-DBUNOYLF.js} +1 -1
  25. package/{chunk-S6KVFOUG.js → chunk-ENUJPSZN.js} +2 -2
  26. package/{chunk-MSXDPLDQ.js → chunk-FVY6KI5A.js} +1 -1
  27. package/{chunk-7ZKK4F22.js → chunk-I5TJCJQP.js} +1 -1
  28. package/{chunk-ROJI6DRT.js → chunk-INWBJPQC.js} +2 -2
  29. package/{chunk-FON47ACC.js → chunk-JYSXE6LE.js} +3 -3
  30. package/{chunk-PASYOZYI.js → chunk-KJJ6EWVW.js} +13 -11
  31. package/{chunk-ATGTWONB.js → chunk-MHHYH3JA.js} +1 -1
  32. package/{chunk-MY54LNPC.js → chunk-NV2VP27U.js} +2 -2
  33. package/{chunk-A6WDXLAG.js → chunk-P6TB7JIA.js} +158 -12
  34. package/{chunk-WCP5FDTF.js → chunk-PFTK5SEB.js} +21 -5
  35. package/{chunk-BTA2CW6H.js → chunk-PJI44RVC.js} +9 -9
  36. package/{chunk-JQ3LNEMS.js → chunk-PMSG3OGF.js} +51 -4
  37. package/{chunk-4O2L6YR5.js → chunk-POANOUUC.js} +3 -3
  38. package/{chunk-E4XWECLB.js → chunk-RLQXGHUQ.js} +2 -2
  39. package/{chunk-SFFG3HJH.js → chunk-SIZWJA7H.js} +4 -4
  40. package/{chunk-OMN2LILO.js → chunk-SRFEVECQ.js} +1 -1
  41. package/{chunk-UP7UFQOH.js → chunk-STOUEEBU.js} +1 -1
  42. package/{chunk-QUXMWSCQ.js → chunk-VEHCU5XV.js} +22 -66
  43. package/{chunk-XMAELUQW.js → chunk-VNMOLPVO.js} +20 -20
  44. package/{chunk-MALVZUYL.js → chunk-WPRSBZYN.js} +1 -1
  45. package/{chunk-RRWRVIQU.js → chunk-XISENOC2.js} +1 -1
  46. package/{chunk-4UYKPT74.js → chunk-YRMUYZ5H.js} +2 -2
  47. package/{chunk-JMSCXQUG.js → chunk-Z3LLUGD5.js} +1 -1
  48. package/{chunk-IVMPWUAR.js → chunk-ZXXAMM3K.js} +2 -2
  49. package/{chunk-D5D3XTWF.js → chunk-ZZYNGFTB.js} +58 -20
  50. package/{createAgentAutomationAction-FAYQK5ME.js → createAgentAutomationAction-PIKVVL2R.js} +8 -8
  51. package/{createDialogAction-NDBK6IQG.js → createDialogAction-DQCM7HHO.js} +9 -9
  52. package/{createPageAction-CQTLV7FP.js → createPageAction-W2DRG2J7.js} +8 -8
  53. package/{dbSlice-5BKDURDL.js → dbSlice-GOKRGQ47.js} +2 -2
  54. package/{dialogCommands-ZR42K2M5.js → dialogCommands-N4XKI6ZU.js} +11 -11
  55. package/{dialogSlice-ZLGEYKLO.js → dialogSlice-DZUQZISK.js} +8 -8
  56. package/{docCreateCommands-2WXA3BCQ.js → docCreateCommands-DTDKANXX.js} +10 -10
  57. package/{docDeleteCommands-HSL7CD32.js → docDeleteCommands-U4NB6OHK.js} +11 -11
  58. package/{docReadCommands-YSPUU2DP.js → docReadCommands-SDVQM3BH.js} +10 -10
  59. package/{docStore-LJQIY2ZU.js → docStore-NXDBQRDQ.js} +9 -9
  60. package/{docUpdateCommands-EFYOIVM7.js → docUpdateCommands-O2O644FV.js} +10 -10
  61. package/{handleSendMessageAction-JL6GGVNW.js → handleSendMessageAction-3MMYF664.js} +8 -8
  62. package/index.js +40 -40
  63. package/{machineCommands-VAANUFNC.js → machineCommands-QFDT6G2Q.js} +22 -22
  64. package/{machineWsRunDispatch-ABWV2WZO.js → machineWsRunDispatch-J6IBIDYG.js} +22 -22
  65. package/package.json +1 -1
  66. package/{read-F3L3T2WJ.js → read-A23NKT3O.js} +1 -1
  67. package/{readDocTool-FOHWVA4R.js → readDocTool-JAM5BI5Q.js} +1 -1
  68. package/{readlineWorkspace-GQI3XP5E.js → readlineWorkspace-FU7PWLJU.js} +26 -26
  69. package/{removeDialogAgentAction-QCFGIUIH.js → removeDialogAgentAction-K4HOWFHO.js} +4 -4
  70. package/{runAgentClientLoop-U632N2KO.js → runAgentClientLoop-P6J4YSE4.js} +17 -17
  71. package/{setDialogExtraReferencesAction-DK4CKERU.js → setDialogExtraReferencesAction-JD7J7JM4.js} +3 -3
  72. package/{setPrimaryDialogAgentAction-SJSO6N27.js → setPrimaryDialogAgentAction-YWSA5XEU.js} +4 -4
  73. package/{settingSlice-XNM5AFPU.js → settingSlice-22GTX6CA.js} +3 -3
  74. package/{spaceCommands-DE6KNJIV.js → spaceCommands-WM6W3WMQ.js} +10 -10
  75. package/{spaceSlice-QTMWWQHQ.js → spaceSlice-SVEWO5JX.js} +8 -8
  76. package/{streamAgentChatTurn-VU7BM3K3.js → streamAgentChatTurn-XJRY424B.js} +76 -32
  77. package/{switchDialogAgentAction-4OAC6QRN.js → switchDialogAgentAction-6JKFBJVR.js} +2 -2
  78. package/{tools-LSIS6NY6.js → tools-ZN6GWGYP.js} +15 -15
  79. package/{updateDialogTitleAction-T77A54DE.js → updateDialogTitleAction-ZJ2HF5AQ.js} +8 -8
  80. package/{chunk-ATWUOTJP.js → chunk-NWT2WUCY.js} +1 -1
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  deleteServerSyncedCredential,
14
14
  runLlm
15
- } from "./chunk-SFFG3HJH.js";
15
+ } from "./chunk-SIZWJA7H.js";
16
16
  import {
17
17
  isOAuthApiKeyRef
18
18
  } from "./chunk-YYLHWIW6.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-CWMSB67P.js";
22
22
  import {
23
23
  cleanupCliSessionForDialog
24
- } from "./chunk-ROJI6DRT.js";
24
+ } from "./chunk-INWBJPQC.js";
25
25
  import {
26
26
  getActiveDialogAgentId,
27
27
  getDialogAgentIds,
@@ -41,8 +41,9 @@ import {
41
41
  normalizeAssistantContentBuffer,
42
42
  planCompression,
43
43
  resolveAutoExecutionProfile,
44
+ resolveBuiltinPlatformAgentRecord,
44
45
  serializeMessageContent
45
- } from "./chunk-JQ3LNEMS.js";
46
+ } from "./chunk-PMSG3OGF.js";
46
47
  import {
47
48
  createFileCredentialBroker
48
49
  } from "./chunk-5CS33IBL.js";
@@ -80,7 +81,7 @@ import {
80
81
  selectRemoteServer,
81
82
  selectRemoteServers,
82
83
  selectRemoteSyncServers
83
- } from "./chunk-S6KVFOUG.js";
84
+ } from "./chunk-ENUJPSZN.js";
84
85
  import {
85
86
  asRecordOrEmpty
86
87
  } from "./chunk-KX6YBIHG.js";
@@ -91,7 +92,7 @@ import {
91
92
  createSpaceKey,
92
93
  localSpaceAuthorityPatchStamp,
93
94
  normalizeSpaceId
94
- } from "./chunk-OXLLFZNF.js";
95
+ } from "./chunk-DBUNOYLF.js";
95
96
  import {
96
97
  patch,
97
98
  read,
@@ -104,7 +105,7 @@ import {
104
105
  uploadFileAction,
105
106
  upsertSSREntity,
106
107
  write
107
- } from "./chunk-FON47ACC.js";
108
+ } from "./chunk-JYSXE6LE.js";
108
109
  import {
109
110
  DB_PREFIX,
110
111
  SEPARATOR,
@@ -141,9 +142,8 @@ import {
141
142
  asTrimmedLowercaseString
142
143
  } from "./chunk-QSJ3HFEF.js";
143
144
  import {
144
- builtinRuntimeFallbackEntries,
145
145
  readAction
146
- } from "./chunk-ATWUOTJP.js";
146
+ } from "./chunk-NWT2WUCY.js";
147
147
  import {
148
148
  DEVICE_LOCAL_OWNER_ID,
149
149
  asyncThunkCreator,
@@ -186,8 +186,7 @@ import {
186
186
  } from "./chunk-U6VC4MU4.js";
187
187
  import {
188
188
  extractCustomId,
189
- extractUserId,
190
- publicAgentKey
189
+ extractUserId
191
190
  } from "./chunk-SLOGKB7M.js";
192
191
  import {
193
192
  isRecord
@@ -3804,47 +3803,6 @@ var buildPersonalizationDialogPolicyContext = () => [
3804
3803
  "\u9664\u975E\u7528\u6237\u660E\u786E\u8981\u6C42\uFF0C\u5426\u5219\u4E0D\u8981\u521B\u5EFA\u6587\u6863\uFF0C\u4E0D\u8981\u521B\u5EFA\u6216\u4FEE\u6539\u4EFB\u4F55 agent\u3002"
3805
3804
  ].join("\n");
3806
3805
 
3807
- // packages/agent-runtime/builtinPlatformAgentConfigs.ts
3808
- function buildConfig(e) {
3809
- const key = publicAgentKey(e.id);
3810
- const rawRecord = {
3811
- dbKey: key,
3812
- isPublic: true,
3813
- provider: e.provider,
3814
- model: e.model,
3815
- apiSource: e.apiSource ?? "platform",
3816
- useServerProxy: e.useServerProxy ?? true
3817
- };
3818
- if (e.hasImageOutput) rawRecord.hasImageOutput = true;
3819
- if (e.imageModel) rawRecord.imageModel = e.imageModel;
3820
- if (e.imageWorkflow) rawRecord.imageWorkflow = e.imageWorkflow;
3821
- if (e.imageConfig) rawRecord.imageConfig = e.imageConfig;
3822
- return {
3823
- key,
3824
- name: e.name,
3825
- provider: e.provider,
3826
- model: e.model,
3827
- apiSource: e.apiSource ?? "platform",
3828
- useServerProxy: e.useServerProxy ?? true,
3829
- rawRecord
3830
- };
3831
- }
3832
- var BUILTIN_PLATFORM_AGENT_CONFIGS = Object.fromEntries(
3833
- builtinRuntimeFallbackEntries().map((e) => [publicAgentKey(e.id), buildConfig(e)])
3834
- );
3835
- function resolveBuiltinPlatformAgentConfig(agentRef) {
3836
- return BUILTIN_PLATFORM_AGENT_CONFIGS[agentRef] ?? null;
3837
- }
3838
- function resolveBuiltinPlatformAgentRecord(agentRef) {
3839
- const config = resolveBuiltinPlatformAgentConfig(agentRef);
3840
- if (!config) return null;
3841
- return {
3842
- ...config.rawRecord,
3843
- dbKey: agentRef,
3844
- ...config.name ? { name: config.name } : {}
3845
- };
3846
- }
3847
-
3848
3806
  // packages/chat/dialog/dialogAgentPolicy.ts
3849
3807
  var resolveDialogAgentMode = (dialog) => {
3850
3808
  if (dialog?.agentMode === "auto") return "auto";
@@ -5609,7 +5567,7 @@ var messageSlice = createSliceWithThunks({
5609
5567
  runtimeOptions: args.runtimeOptions
5610
5568
  });
5611
5569
  if (agentKeyToUse) {
5612
- const { streamAgentChatTurn } = await import("./agentSlice-LH2YKWE7.js");
5570
+ const { streamAgentChatTurn } = await import("./agentSlice-RR6OT2BW.js");
5613
5571
  await dispatch(
5614
5572
  streamAgentChatTurn({
5615
5573
  agentKey: agentKeyToUse,
@@ -8348,7 +8306,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8348
8306
  }
8349
8307
  if (isCurrentDialog) {
8350
8308
  await thunkApi.dispatch(resetMsgs());
8351
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ZLGEYKLO.js");
8309
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-DZUQZISK.js");
8352
8310
  dispatch(clearPendingAttachments2());
8353
8311
  clearWorkflow();
8354
8312
  }
@@ -8357,39 +8315,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8357
8315
 
8358
8316
  // packages/chat/dialog/dialogSlice.ts
8359
8317
  var runCreateDialogAction = async (args, thunkApi) => {
8360
- const { createDialogAction } = await import("./createDialogAction-NDBK6IQG.js");
8318
+ const { createDialogAction } = await import("./createDialogAction-DQCM7HHO.js");
8361
8319
  return createDialogAction(args, thunkApi);
8362
8320
  };
8363
8321
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
8364
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-FAYQK5ME.js");
8322
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-PIKVVL2R.js");
8365
8323
  return createAgentAutomationAction(args, thunkApi);
8366
8324
  };
8367
8325
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
8368
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-T77A54DE.js");
8326
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-ZJ2HF5AQ.js");
8369
8327
  return updateDialogTitleAction(args, thunkApi);
8370
8328
  };
8371
8329
  var runAddDialogAgentAction = async (args, thunkApi) => {
8372
- const { addDialogAgentAction } = await import("./addDialogAgentAction-LJGNP2AO.js");
8330
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-Q2TYWDO6.js");
8373
8331
  return addDialogAgentAction(args, thunkApi);
8374
8332
  };
8375
8333
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
8376
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-QCFGIUIH.js");
8334
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-K4HOWFHO.js");
8377
8335
  return removeDialogAgentAction(args, thunkApi);
8378
8336
  };
8379
8337
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
8380
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-SJSO6N27.js");
8338
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-YWSA5XEU.js");
8381
8339
  return setPrimaryDialogAgentAction(args, thunkApi);
8382
8340
  };
8383
8341
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
8384
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-4OAC6QRN.js");
8342
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-6JKFBJVR.js");
8385
8343
  return switchDialogAgentAction(args, thunkApi);
8386
8344
  };
8387
8345
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
8388
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-DK4CKERU.js");
8346
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-JD7J7JM4.js");
8389
8347
  return setDialogExtraReferencesAction(args, thunkApi);
8390
8348
  };
8391
8349
  var runHandleSendMessageAction = async (args, thunkApi) => {
8392
- const { handleSendMessageAction } = await import("./handleSendMessageAction-JL6GGVNW.js");
8350
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-3MMYF664.js");
8393
8351
  return handleSendMessageAction(args, thunkApi);
8394
8352
  };
8395
8353
  function clearDialogState() {
@@ -8402,7 +8360,7 @@ var createPageAndAddReference = createAsyncThunk(
8402
8360
  async (payload, { dispatch, getState, rejectWithValue }) => {
8403
8361
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
8404
8362
  try {
8405
- const { createDocState } = await import("./docStore-LJQIY2ZU.js");
8363
+ const { createDocState } = await import("./docStore-NXDBQRDQ.js");
8406
8364
  const pageKey = await createDocState(
8407
8365
  { slateData, title },
8408
8366
  { dispatch, getState }
@@ -14653,7 +14611,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
14653
14611
  const spaceKey = createSpaceKey.space(spaceId);
14654
14612
  const readSpace = async (dbKey) => {
14655
14613
  try {
14656
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-5BKDURDL.js");
14614
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-GOKRGQ47.js");
14657
14615
  if (fresh) {
14658
14616
  return await dispatch(readAndWait2(dbKey)).unwrap();
14659
14617
  }
@@ -15336,8 +15294,6 @@ var selectViewMode = createSelector(
15336
15294
  var spaceSlice_default = spaceSlice.reducer;
15337
15295
 
15338
15296
  export {
15339
- resolveBuiltinPlatformAgentConfig,
15340
- resolveBuiltinPlatformAgentRecord,
15341
15297
  instance,
15342
15298
  initReactI18next,
15343
15299
  i18nBaseConfig,
@@ -11,7 +11,7 @@ import {
11
11
  readPageFunc,
12
12
  readPageFunctionSchema,
13
13
  slateToSimplifiedMarkdown
14
- } from "./chunk-I6RJGORZ.js";
14
+ } from "./chunk-BOPFLKHA.js";
15
15
  import {
16
16
  sortSafeAgentSummaries,
17
17
  toSafeAgentSummary
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-VF4K2QE6.js";
29
29
  import {
30
30
  createDocState
31
- } from "./chunk-7OYY7W4W.js";
31
+ } from "./chunk-2IN43Q72.js";
32
32
  import {
33
33
  setDialogExtraReferencesAction
34
- } from "./chunk-MALVZUYL.js";
34
+ } from "./chunk-WPRSBZYN.js";
35
35
  import {
36
36
  extractMentionsFromSlate
37
37
  } from "./chunk-VP4WJWKW.js";
@@ -44,7 +44,7 @@ import {
44
44
  buildBuiltinObjectSkillDbKey,
45
45
  buildBuiltinObjectSkillPageContent,
46
46
  createDialogAction
47
- } from "./chunk-IVMPWUAR.js";
47
+ } from "./chunk-ZXXAMM3K.js";
48
48
  import {
49
49
  addCategory,
50
50
  addContentToSpace,
@@ -75,13 +75,13 @@ import {
75
75
  updateContentCategory,
76
76
  updateContentTitle,
77
77
  updateStep
78
- } from "./chunk-QUXMWSCQ.js";
78
+ } from "./chunk-VEHCU5XV.js";
79
79
  import {
80
80
  createAgent,
81
81
  runLlm,
82
82
  streamAgentChatTurn,
83
83
  updateAgent
84
- } from "./chunk-SFFG3HJH.js";
84
+ } from "./chunk-SIZWJA7H.js";
85
85
  import {
86
86
  CODING_SKILL_SLUGS,
87
87
  buildCodingSkillConfig,
@@ -113,10 +113,10 @@ import {
113
113
  redactAgentRecordForWorkspaceTool,
114
114
  resolveNoloDialogInput,
115
115
  verifyNoloDialogSubjectRefQuery
116
- } from "./chunk-WCP5FDTF.js";
116
+ } from "./chunk-PFTK5SEB.js";
117
117
  import {
118
118
  buildDatabaseFileContentUrl
119
- } from "./chunk-JQ3LNEMS.js";
119
+ } from "./chunk-PMSG3OGF.js";
120
120
  import {
121
121
  DEFAULT_MODEL
122
122
  } from "./chunk-GT3GG2H7.js";
@@ -155,7 +155,7 @@ import {
155
155
  } from "./chunk-HNMXYYJR.js";
156
156
  import {
157
157
  shareResourceAction
158
- } from "./chunk-JMSCXQUG.js";
158
+ } from "./chunk-Z3LLUGD5.js";
159
159
  import {
160
160
  AGENT_UPDATE_FIELD_NAMES,
161
161
  nolotusId,
@@ -163,7 +163,7 @@ import {
163
163
  selectAutoApproveSelfUpdateFields,
164
164
  selectCurrentServer,
165
165
  selectSyncServers
166
- } from "./chunk-S6KVFOUG.js";
166
+ } from "./chunk-ENUJPSZN.js";
167
167
  import {
168
168
  asRecordOrEmpty
169
169
  } from "./chunk-KX6YBIHG.js";
@@ -171,7 +171,7 @@ import {
171
171
  addContentAction,
172
172
  createSpaceKey,
173
173
  normalizeSpaceId
174
- } from "./chunk-OXLLFZNF.js";
174
+ } from "./chunk-DBUNOYLF.js";
175
175
  import {
176
176
  patch,
177
177
  read,
@@ -180,7 +180,7 @@ import {
180
180
  selectById,
181
181
  toTimestampMs,
182
182
  write
183
- } from "./chunk-FON47ACC.js";
183
+ } from "./chunk-JYSXE6LE.js";
184
184
  import {
185
185
  SEPARATOR,
186
186
  createAgentKey,
@@ -206,7 +206,7 @@ import {
206
206
  import {
207
207
  DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS,
208
208
  readAction
209
- } from "./chunk-ATWUOTJP.js";
209
+ } from "./chunk-NWT2WUCY.js";
210
210
  import {
211
211
  createAsyncThunk,
212
212
  getRuntimeServerContext,
@@ -14773,7 +14773,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14773
14773
  const deletedDialogIds = [];
14774
14774
  const deletedDialogKeys = [];
14775
14775
  const failures = [];
14776
- const { deleteDialog } = await import("./dialogSlice-ZLGEYKLO.js");
14776
+ const { deleteDialog } = await import("./dialogSlice-DZUQZISK.js");
14777
14777
  for (const target of targets) {
14778
14778
  try {
14779
14779
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -15042,7 +15042,7 @@ var readSkillDocFunctionSchema = {
15042
15042
  }
15043
15043
  };
15044
15044
  async function readSkillDocFunc(args, thunkApi) {
15045
- const { buildReadDocResult } = await import("./readDocTool-FOHWVA4R.js");
15045
+ const { buildReadDocResult } = await import("./readDocTool-JAM5BI5Q.js");
15046
15046
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
15047
15047
  if (typeof id !== "string" || !id.trim()) {
15048
15048
  throw new Error("readSkillDoc requires id or doc.");
@@ -20492,7 +20492,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
20492
20492
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
20493
20493
  async function addImageContentToSpace(input) {
20494
20494
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
20495
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-UNSYTVTB.js")).addContentAction;
20495
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-HLTFX56O.js")).addContentAction;
20496
20496
  await addContentAction2(
20497
20497
  {
20498
20498
  spaceId: input.spaceId,
@@ -24175,7 +24175,7 @@ var executeToolRun = createAsyncThunk(
24175
24175
  if (!executionInput) {
24176
24176
  throw new Error(`ToolRun ${id} has no input to execute with.`);
24177
24177
  }
24178
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-LSIS6NY6.js");
24178
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-ZN6GWGYP.js");
24179
24179
  const { executor } = findToolExecutor2(run.toolName);
24180
24180
  toolRunStarted({
24181
24181
  id: run.id,
@@ -24199,7 +24199,7 @@ var executeToolRun = createAsyncThunk(
24199
24199
  const latestState = thunkApi.getState();
24200
24200
  const userId = latestState.auth?.currentUser?.userId;
24201
24201
  if (userId) {
24202
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-QTMWWQHQ.js");
24202
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-SVEWO5JX.js");
24203
24203
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
24204
24204
  }
24205
24205
  }
@@ -26682,7 +26682,7 @@ async function updateDocFunc(args, thunkApi) {
26682
26682
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26683
26683
  };
26684
26684
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26685
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-LJQIY2ZU.js");
26685
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-NXDBQRDQ.js");
26686
26686
  if (getDocState().pageKey === id) {
26687
26687
  applyExternalDocUpdate({
26688
26688
  slateData: finalSlateData,
@@ -26707,7 +26707,7 @@ async function updateDocFunc(args, thunkApi) {
26707
26707
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
26708
26708
  async function dispatchSetSettings(thunkApi, changes) {
26709
26709
  const injectedSetSettings = thunkApi?.extra?.setSettings;
26710
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-XNM5AFPU.js")).setSettings;
26710
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-22GTX6CA.js")).setSettings;
26711
26711
  await thunkApi.dispatch(setSettings(changes)).unwrap();
26712
26712
  }
26713
26713
  var updateUserPreferenceProfileFunctionSchema = {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-FON47ACC.js";
10
+ } from "./chunk-JYSXE6LE.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-4VNS5WPM.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-ATGTWONB.js";
10
+ } from "./chunk-MHHYH3JA.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-7ZKK4F22.js";
4
+ } from "./chunk-I5TJCJQP.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-A7GB5UGH.js";
14
14
  import {
15
15
  createSpaceKey
16
- } from "./chunk-OXLLFZNF.js";
16
+ } from "./chunk-DBUNOYLF.js";
17
17
  import {
18
18
  asTrimmedLowercaseString
19
19
  } from "./chunk-QSJ3HFEF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-S6KVFOUG.js";
4
+ } from "./chunk-ENUJPSZN.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-QUXMWSCQ.js";
6
+ } from "./chunk-VEHCU5XV.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -24,7 +24,7 @@ import {
24
24
  removeCachedEntity,
25
25
  upsertSSREntity,
26
26
  write
27
- } from "./chunk-FON47ACC.js";
27
+ } from "./chunk-JYSXE6LE.js";
28
28
  import {
29
29
  createAgentKey,
30
30
  createDialogKey,
@@ -19,7 +19,7 @@ import {
19
19
  parseAgentRunEvent,
20
20
  t,
21
21
  toolLabel
22
- } from "./chunk-PASYOZYI.js";
22
+ } from "./chunk-KJJ6EWVW.js";
23
23
  import {
24
24
  getReadableCliDb
25
25
  } from "./chunk-WFHXMLHZ.js";
@@ -27,7 +27,7 @@ import {
27
27
  normalizeAgentHandle,
28
28
  readDbRecord,
29
29
  resolveAgentRecordFromHybridStore
30
- } from "./chunk-7ZKK4F22.js";
30
+ } from "./chunk-I5TJCJQP.js";
31
31
  import {
32
32
  NOLO_PROJECT_MANAGER_AGENT_KEY,
33
33
  isLocalCliAgentKey
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-LTRXGFMS.js";
39
39
  import {
40
40
  formatAgentListCard
41
- } from "./chunk-XMAELUQW.js";
41
+ } from "./chunk-VNMOLPVO.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-RQSOAMPJ.js";
@@ -50,12 +50,12 @@ import {
50
50
  chooseMemoryOwners,
51
51
  loadMemoryCandidatesFromDb,
52
52
  resolveAgentMemoryPolicy
53
- } from "./chunk-IVMPWUAR.js";
53
+ } from "./chunk-ZXXAMM3K.js";
54
54
  import {
55
55
  API_REPORTED_COST_MULTIPLIER,
56
56
  normalizeUsage,
57
57
  parseUiAskChoiceContent
58
- } from "./chunk-QUXMWSCQ.js";
58
+ } from "./chunk-VEHCU5XV.js";
59
59
  import {
60
60
  buildSkillDiscoveryContextLayer
61
61
  } from "./chunk-ZVZMT3EA.js";
@@ -71,7 +71,7 @@ import {
71
71
  LOCAL_TURN_ABORTED_CODE,
72
72
  readActionGate,
73
73
  readCommandActionGatePayload
74
- } from "./chunk-A6WDXLAG.js";
74
+ } from "./chunk-P6TB7JIA.js";
75
75
  import {
76
76
  createThinkParserState,
77
77
  flushThinkParser,
@@ -83,7 +83,7 @@ import {
83
83
  import {
84
84
  DEFAULT_CONTEXT_WINDOW,
85
85
  getModelContextWindow
86
- } from "./chunk-JQ3LNEMS.js";
86
+ } from "./chunk-PMSG3OGF.js";
87
87
  import {
88
88
  clipCompactText
89
89
  } from "./chunk-5MMAK75Q.js";
@@ -141,7 +141,7 @@ import {
141
141
  BUILTIN_NOLO_AGENT_KEY,
142
142
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
143
143
  PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
144
- } from "./chunk-ATWUOTJP.js";
144
+ } from "./chunk-NWT2WUCY.js";
145
145
  import {
146
146
  asTrimmedString
147
147
  } from "./chunk-3EUW3WEO.js";
@@ -3483,7 +3483,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
3483
3483
  // packages/cli/client/agentRun.ts
3484
3484
  import { ulid } from "ulid";
3485
3485
  async function loadRunLocalAgentTurn() {
3486
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-ZALQDCZ3.js");
3486
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-VI3NHLDU.js");
3487
3487
  return runLocalAgentTurn;
3488
3488
  }
3489
3489
  async function resolveCurrentMachineId(options) {
@@ -3650,16 +3650,28 @@ function isMissingLocalAgentConfigError(error, agentRef) {
3650
3650
  error && typeof error === "object" && "code" in error && error.code === LOCAL_AGENT_CONFIG_MISSING_CODE && error.agentRef === agentRef
3651
3651
  );
3652
3652
  }
3653
- var PLATFORM_PROVIDER_FAILED_RE = /platform provider failed:\s*HTTP\s+(\d+)\b/i;
3653
+ var PROVIDER_HTTP_FAILED_RE = /(.+?) provider failed:\s*HTTP\s+(\d+)\b/i;
3654
+ var PLATFORM_TRANSPORT_RE = /\bplatform provider failed\b/i;
3654
3655
  function classifyLocalRunError(message) {
3655
- const m = message.match(PLATFORM_PROVIDER_FAILED_RE);
3656
+ const m = message.match(PROVIDER_HTTP_FAILED_RE);
3656
3657
  if (!m) return { kind: "generic" };
3657
- const status = Number(m[1]);
3658
+ const status = Number(m[2]);
3659
+ const transport = PLATFORM_TRANSPORT_RE.test(message) ? "platform" : "local";
3660
+ if (status === 401 || status === 403) {
3661
+ return { kind: "auth", transport, status };
3662
+ }
3663
+ if (status === 400 || status === 422) {
3664
+ return { kind: "rejected-payload", transport, status };
3665
+ }
3666
+ if (status === 429) {
3667
+ return { kind: "rate-limit", transport, status };
3668
+ }
3658
3669
  if (status >= 500 && status <= 599) {
3659
- return { kind: "platform-proxy-transient", status };
3670
+ return { kind: "transient", transport, status };
3660
3671
  }
3661
- return { kind: "platform-proxy-upstream", status };
3672
+ return { kind: "upstream", transport, status };
3662
3673
  }
3674
+ var HISTORY_REPLAY_REJECTION_RE = /invalid_request_error|invalid\s+tool\s+call\s+arguments?/i;
3663
3675
  function describeLocalRunFailure(message) {
3664
3676
  if (/UPSTREAM_402|Insufficient Balance|余额不足|insufficient\s+balance/i.test(
3665
3677
  message
@@ -3668,16 +3680,36 @@ function describeLocalRunFailure(message) {
3668
3680
  `;
3669
3681
  }
3670
3682
  const cls = classifyLocalRunError(message);
3671
- if (cls.kind === "platform-proxy-transient") {
3672
- return `[nolo] auto runtime: local run unavailable (server chat proxy returned HTTP ${cls.status}; this is an upstream/gateway issue, not your local credential or config).${message ? ` Detail: ${message}` : ""} Not falling back to server. Retry shortly, or use --server to run on the server explicitly.
3683
+ if (cls.kind === "generic") {
3684
+ return `[nolo] auto runtime: local run unavailable (${message}). Not falling back to server. Fix the local credential/config and retry, or use --server to run on the server explicitly.
3673
3685
  `;
3674
3686
  }
3675
- if (cls.kind === "platform-proxy-upstream") {
3676
- return `[nolo] auto runtime: local run unavailable (server chat proxy returned HTTP ${cls.status}).${message ? ` Detail: ${message}` : ""} Not falling back to server. Check the agent's provider/api-key settings on nolo.chat, or use --server to run on the server explicitly.
3687
+ const where = cls.transport === "platform" ? "server chat proxy" : "local provider";
3688
+ const detail = message ? ` Detail: ${message}` : "";
3689
+ switch (cls.kind) {
3690
+ case "auth":
3691
+ return cls.transport === "platform" ? `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}, auth rejected).${detail} Not falling back to server. Check the agent's provider/api-key settings on nolo.chat, or use --server to run on the server explicitly.
3692
+ ` : `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}, auth rejected).${detail} Not falling back to server. Fix the local credential/config and retry, or use --server to run on the server explicitly.
3677
3693
  `;
3678
- }
3679
- return `[nolo] auto runtime: local run unavailable (${message}). Not falling back to server. Fix the local credential/config and retry, or use --server to run on the server explicitly.
3694
+ case "rejected-payload": {
3695
+ const looksLikeHistoryReplay = HISTORY_REPLAY_REJECTION_RE.test(message);
3696
+ const cause = looksLikeHistoryReplay ? ` This usually happens when the dialog history contains tool_calls or reasoning produced by a different model/provider (e.g. after /switch); the new provider rejects that history. Start a fresh dialog, or clean the offending history.` : "";
3697
+ return `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}, the provider rejected the request body \u2014 this is NOT a local credential/config issue).${detail}${cause} Not falling back to server. Use --server to run on the server explicitly, or start a fresh dialog.
3698
+ `;
3699
+ }
3700
+ case "rate-limit":
3701
+ return `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}, rate limited).${detail} Not falling back to server. Retry shortly, or use --server to run on the server explicitly.
3702
+ `;
3703
+ case "transient":
3704
+ return `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}; this is an upstream/gateway issue, not your local credential or config).${detail} Not falling back to server. Retry shortly, or use --server to run on the server explicitly.
3680
3705
  `;
3706
+ case "upstream":
3707
+ default: {
3708
+ return cls.transport === "platform" ? `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}).${detail} Not falling back to server. Check the agent's provider/api-key settings on nolo.chat, or use --server to run on the server explicitly.
3709
+ ` : `[nolo] auto runtime: local run unavailable (${where} returned HTTP ${cls.status}).${detail} Not falling back to server. Check the agent's endpoint/model settings, or use --server to run on the server explicitly.
3710
+ `;
3711
+ }
3712
+ }
3681
3713
  }
3682
3714
  function shouldAttemptAutoLocal(options) {
3683
3715
  if (options.localRuntimeAdapter || options.localRuntimeAdapterFactory)
@@ -3969,6 +4001,12 @@ async function runLocalAgentTurnForCli(options, settings) {
3969
4001
  "[nolo] \u5F53\u524D agent \u4E0D\u652F\u6301\u56FE\u7247\u8F93\u5165\uFF0C\u5DF2\u7528\u5360\u4F4D\u6587\u672C\u66FF\u4EE3\u3002\u8981\u5B8C\u6574\u56FE\u7247\u7406\u89E3\u53EF /switch \u5230 Kimi K2.6\u3002\n"
3970
4002
  );
3971
4003
  }
4004
+ if (event.kind === "image-preprocessed") {
4005
+ options.output.write(
4006
+ `[nolo] \u5DF2\u7528\u89C6\u89C9\u6A21\u578B\u89E3\u6790 ${event.imageCount} \u5F20\u56FE\u7247\u4E3A\u6587\u5B57\u63CF\u8FF0\uFF0C\u4F9B\u5F53\u524D agent \u4F7F\u7528\u3002
4007
+ `
4008
+ );
4009
+ }
3972
4010
  options.onLoopEvent?.(event);
3973
4011
  },
3974
4012
  ...options.abortSignal ? { abortSignal: options.abortSignal } : {},
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-QUXMWSCQ.js";
3
+ } from "./chunk-VEHCU5XV.js";
4
4
  import "./chunk-XOIF2TNF.js";
5
5
  import "./chunk-MRC4Q34M.js";
6
6
  import "./chunk-SIZQB7BD.js";
7
- import "./chunk-SFFG3HJH.js";
7
+ import "./chunk-SIZWJA7H.js";
8
8
  import "./chunk-YYLHWIW6.js";
9
9
  import "./chunk-CWMSB67P.js";
10
- import "./chunk-ROJI6DRT.js";
10
+ import "./chunk-INWBJPQC.js";
11
11
  import "./chunk-5RGU3J7P.js";
12
12
  import "./chunk-M76ECQRD.js";
13
13
  import "./chunk-L65QKSVJ.js";
14
- import "./chunk-JQ3LNEMS.js";
14
+ import "./chunk-PMSG3OGF.js";
15
15
  import "./chunk-5MMAK75Q.js";
16
16
  import "./chunk-5CS33IBL.js";
17
17
  import "./chunk-JZPBVBIY.js";
@@ -22,14 +22,14 @@ import "./chunk-DWLEOOGR.js";
22
22
  import "./chunk-HNMXYYJR.js";
23
23
  import "./chunk-L3QFIBZG.js";
24
24
  import "./chunk-YTA2QOEE.js";
25
- import "./chunk-S6KVFOUG.js";
25
+ import "./chunk-ENUJPSZN.js";
26
26
  import "./chunk-Y5GCAMGP.js";
27
27
  import "./chunk-UZ6XXCVR.js";
28
28
  import "./chunk-KX6YBIHG.js";
29
- import "./chunk-OXLLFZNF.js";
29
+ import "./chunk-DBUNOYLF.js";
30
30
  import {
31
31
  write
32
- } from "./chunk-FON47ACC.js";
32
+ } from "./chunk-JYSXE6LE.js";
33
33
  import {
34
34
  buildAgentAutomationOwnerIndexValue,
35
35
  createAgentAutomationKey,
@@ -39,7 +39,7 @@ import "./chunk-WWC7I6TA.js";
39
39
  import "./chunk-SKDNBYZK.js";
40
40
  import "./chunk-I42VC5KR.js";
41
41
  import "./chunk-QSJ3HFEF.js";
42
- import "./chunk-ATWUOTJP.js";
42
+ import "./chunk-NWT2WUCY.js";
43
43
  import {
44
44
  selectIdentityUserId
45
45
  } from "./chunk-XMLRJUU5.js";