nolo-cli 0.33.0-alpha.13 → 0.33.0-alpha.15

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 (93) hide show
  1. package/{_executeModel-S346WSM5.js → _executeModel-N7UZ7MFF.js} +28 -28
  2. package/{action-OQWPNKAH.js → action-Q4KO7DDW.js} +4 -4
  3. package/{addContentAction-YVINZQTF.js → addContentAction-FRXDZKSI.js} +3 -3
  4. package/{addDialogAgentAction-6IOCIEPI.js → addDialogAgentAction-XL5G3LPR.js} +2 -2
  5. package/{agentDeleteCommand-6TTPXGS3.js → agentDeleteCommand-DNLUNGHG.js} +13 -13
  6. package/{agentEmailCommands-JIXFG6AM.js → agentEmailCommands-EMQB3J4A.js} +32 -32
  7. package/{agentListCommands-ZTT3KU35.js → agentListCommands-CBAILFEV.js} +15 -15
  8. package/{agentMachineCommands-25DROOMX.js → agentMachineCommands-2BW7345K.js} +14 -14
  9. package/{agentRecordCommands-N4L55KRX.js → agentRecordCommands-YFND6UBV.js} +31 -31
  10. package/{agentRunCommand-4CKVVQ4P.js → agentRunCommand-KUFIMMXB.js} +31 -31
  11. package/{agentRuntimeLocal-O4IDDLPA.js → agentRuntimeLocal-WPHIGITW.js} +13 -13
  12. package/{agentSlice-47VUR2ZD.js → agentSlice-DL5WYNE7.js} +3 -3
  13. package/{appDeleteCommands-SWXRVOE4.js → appDeleteCommands-QCKSZMHC.js} +15 -15
  14. package/{appDeployCommands-WQ3ZXXQH.js → appDeployCommands-X3RPEPOZ.js} +15 -15
  15. package/{appDeployStatusCommands-BM5CVBFC.js → appDeployStatusCommands-2DEUCBPH.js} +15 -15
  16. package/{appGetCommands-SHI5HG4U.js → appGetCommands-XD67TWUX.js} +15 -15
  17. package/{appListCommands-5IKTBNWH.js → appListCommands-5YWXIUEE.js} +15 -15
  18. package/{authCommand-VIHTCZDN.js → authCommand-EX5G5PF4.js} +7 -7
  19. package/{chatQueueReduxAdapter-GBGNFB7U.js → chatQueueReduxAdapter-YCAKX5VE.js} +13 -13
  20. package/{chunk-GJXRIOLS.js → chunk-2CNX3CJE.js} +4 -84
  21. package/{chunk-PIDDBIHR.js → chunk-2ORF5DS4.js} +18 -215
  22. package/{chunk-SHOLLFRN.js → chunk-5LWAL7BM.js} +12 -12
  23. package/{chunk-3WXRAHCG.js → chunk-6MSSX7FI.js} +1 -1
  24. package/{chunk-7XSIRXOO.js → chunk-6XYCMONZ.js} +8 -8
  25. package/{chunk-UM4H3URE.js → chunk-6YH4UR3E.js} +3 -3
  26. package/{chunk-OR2HNLVO.js → chunk-7EPNNOL4.js} +6 -6
  27. package/{chunk-RPRRIFXV.js → chunk-7OGIWPNK.js} +1 -1
  28. package/{chunk-SNFD447J.js → chunk-7RUIWGT2.js} +24 -24
  29. package/{chunk-DFUPZE6V.js → chunk-7SLMYTSF.js} +1 -1
  30. package/{chunk-CSNOI72O.js → chunk-7XR4OGXP.js} +4 -4
  31. package/{chunk-3GZXL6FM.js → chunk-AOWETAXX.js} +1 -1
  32. package/{chunk-PWI34D3P.js → chunk-BFCPDCYR.js} +3 -3
  33. package/{chunk-ZZV52MOO.js → chunk-BG7P4GQ3.js} +1 -1
  34. package/{chunk-2IVEXF7P.js → chunk-BHILFABL.js} +1 -1
  35. package/{chunk-DF22DYA4.js → chunk-CIHJW5VX.js} +3 -3
  36. package/{chunk-5WEQKEFO.js → chunk-CXGYEBNT.js} +2 -2
  37. package/{chunk-3RUW3ONU.js → chunk-DDET6246.js} +1 -1
  38. package/{chunk-RJKIB55Y.js → chunk-EQ6HOWEJ.js} +2 -2
  39. package/{chunk-6YXDOOSH.js → chunk-FH7VUJN5.js} +2 -2
  40. package/{chunk-6KOS7ZBZ.js → chunk-FV63ICZC.js} +1 -1
  41. package/{chunk-3UG2IIZ3.js → chunk-GTEHJWXU.js} +1 -1
  42. package/{chunk-AVO73UMB.js → chunk-H442K6U4.js} +102 -23
  43. package/{chunk-DKMOY3QI.js → chunk-HCOIKLSH.js} +2 -2
  44. package/{chunk-VBUQYOX7.js → chunk-IEHZHWN7.js} +1 -1
  45. package/{chunk-2QTEYCR7.js → chunk-JFUW3UTO.js} +1 -1
  46. package/{chunk-75U775RZ.js → chunk-KIL7V27H.js} +1 -1
  47. package/{chunk-4F5M2MW5.js → chunk-KMMQFY5O.js} +1 -1
  48. package/{chunk-IR6W62Q6.js → chunk-KZB5SNYH.js} +1 -14
  49. package/{chunk-ASDXPOJH.js → chunk-L5XKDBSH.js} +1 -1
  50. package/{chunk-SCUETSRP.js → chunk-LAZTMWIU.js} +1 -1
  51. package/{chunk-IXTC74NZ.js → chunk-LWVOFTNC.js} +4 -4
  52. package/{chunk-4EKYN24Q.js → chunk-N3ER5S5E.js} +1 -1
  53. package/{chunk-7YYHKBJP.js → chunk-OQVRTSZ5.js} +1 -1
  54. package/{chunk-UNOTBWZZ.js → chunk-QKCMP3LU.js} +2 -2
  55. package/{chunk-TIX6O4IC.js → chunk-TVUO5GM6.js} +11 -11
  56. package/{chunk-IKWTTKWG.js → chunk-V4MT7AEN.js} +1 -1
  57. package/{chunk-PQQXQV6V.js → chunk-V5EN447C.js} +3 -3
  58. package/{chunk-CPYYM4RJ.js → chunk-VIRTYWWE.js} +4 -5
  59. package/{chunk-MIRUCHZP.js → chunk-X52KQTFN.js} +16 -17
  60. package/{chunk-GUC65EFO.js → chunk-ZDUEQ6HC.js} +87 -33
  61. package/{createAgentAutomationAction-7DWATWIT.js → createAgentAutomationAction-DXG33NH6.js} +14 -14
  62. package/{createDialogAction-3CPIR267.js → createDialogAction-NSYFGB3J.js} +15 -15
  63. package/{createPageAction-5GUFQTAW.js → createPageAction-2L3BQD2N.js} +14 -14
  64. package/{dbSlice-UI2VCBLG.js → dbSlice-2YD2PZER.js} +2 -2
  65. package/{dialogCommands-XKC5TIAA.js → dialogCommands-7Q2C7ODY.js} +13 -13
  66. package/{dialogSlice-YFWNV3JJ.js → dialogSlice-LW6C3M6A.js} +13 -13
  67. package/{docCreateCommands-MRH4H6DW.js → docCreateCommands-6YHGFV54.js} +14 -14
  68. package/{docDeleteCommands-KJJU6NLM.js → docDeleteCommands-QN3VJSRH.js} +14 -14
  69. package/{docReadCommands-JXOSUS5I.js → docReadCommands-NYKOOFFB.js} +14 -14
  70. package/{docStore-SGQ6EE5P.js → docStore-EJUEJZQE.js} +15 -15
  71. package/{docUpdateCommands-AGUFF52W.js → docUpdateCommands-MBFOJPVJ.js} +14 -14
  72. package/{getPricing-L2ENXWHV.js → getPricing-J4VXWR5B.js} +3 -3
  73. package/{handleSendMessageAction-RGCSLENY.js → handleSendMessageAction-LB4EPR3X.js} +13 -13
  74. package/index.js +47 -47
  75. package/{machineCommands-P5DVPETV.js → machineCommands-RJZZCTN7.js} +31 -31
  76. package/{machineWsRunDispatch-66ZCBLIC.js → machineWsRunDispatch-PBRWNUXC.js} +31 -31
  77. package/{models-OX2S5C6Q.js → models-SQFOI4FI.js} +2 -2
  78. package/package.json +1 -1
  79. package/{read-2VHEHCAN.js → read-526GJR3R.js} +1 -1
  80. package/{readDocTool-CSWD6NPC.js → readDocTool-JNEZUOSM.js} +1 -1
  81. package/{readlineWorkspace-U2LVP43X.js → readlineWorkspace-I2LS4HKQ.js} +32 -32
  82. package/{removeDialogAgentAction-2T7BPM3T.js → removeDialogAgentAction-NPMEFEJW.js} +4 -4
  83. package/{runAgentClientLoop-WVL2KOS5.js → runAgentClientLoop-UDNCP7YC.js} +25 -25
  84. package/{setDialogExtraReferencesAction-GPT37HTW.js → setDialogExtraReferencesAction-ZZ6QWAG2.js} +3 -3
  85. package/{setPrimaryDialogAgentAction-3746P7IW.js → setPrimaryDialogAgentAction-BG72QA6S.js} +4 -4
  86. package/{settingSlice-FIFOQ6OR.js → settingSlice-JCCLCXZB.js} +3 -3
  87. package/{spaceCommands-O33WUJEV.js → spaceCommands-LU2YYNE4.js} +13 -13
  88. package/{spaceSlice-R5X62SG3.js → spaceSlice-KHPDJFFP.js} +14 -14
  89. package/{streamAgentChatTurn-CLC5VQYO.js → streamAgentChatTurn-7VYQ3GP7.js} +36 -46
  90. package/{switchDialogAgentAction-MQTUTQHL.js → switchDialogAgentAction-YPGPM2LL.js} +2 -2
  91. package/{tools-4QHXZBRQ.js → tools-ZDXFZEEW.js} +21 -21
  92. package/{tuiSummaryLlmCaller-EAWQ3IZX.js → tuiSummaryLlmCaller-WUVAOIYU.js} +9 -9
  93. package/{updateDialogTitleAction-IOSJSJ5S.js → updateDialogTitleAction-WREH6JRU.js} +14 -14
@@ -9,7 +9,7 @@ import {
9
9
  isAgentUnavailableNow,
10
10
  sortSafeAgentSummaries,
11
11
  toSafeAgentSummary
12
- } from "./chunk-2IVEXF7P.js";
12
+ } from "./chunk-BHILFABL.js";
13
13
  import {
14
14
  getUserDataItemTimestamp,
15
15
  mergeAndDedupUserData
@@ -20,7 +20,7 @@ import {
20
20
  readPageFunc,
21
21
  readPageFunctionSchema,
22
22
  slateToSimplifiedMarkdown
23
- } from "./chunk-75U775RZ.js";
23
+ } from "./chunk-KIL7V27H.js";
24
24
  import {
25
25
  markdownToSlate
26
26
  } from "./chunk-INZZJSQF.js";
@@ -35,17 +35,17 @@ import {
35
35
  } from "./chunk-VF4K2QE6.js";
36
36
  import {
37
37
  createDocState
38
- } from "./chunk-PQQXQV6V.js";
38
+ } from "./chunk-V5EN447C.js";
39
39
  import {
40
40
  setDialogExtraReferencesAction
41
- } from "./chunk-ASDXPOJH.js";
41
+ } from "./chunk-L5XKDBSH.js";
42
42
  import {
43
43
  BUILTIN_OBJECT_SKILL_IDS,
44
44
  buildBuiltinObjectSkillConfig,
45
45
  buildBuiltinObjectSkillDbKey,
46
46
  buildBuiltinObjectSkillPageContent,
47
47
  createDialogAction
48
- } from "./chunk-CSNOI72O.js";
48
+ } from "./chunk-7XR4OGXP.js";
49
49
  import {
50
50
  addCategory,
51
51
  addContentToSpace,
@@ -65,7 +65,7 @@ import {
65
65
  loadTableRows,
66
66
  updateContentCategory,
67
67
  updateContentTitle
68
- } from "./chunk-7XSIRXOO.js";
68
+ } from "./chunk-6XYCMONZ.js";
69
69
  import {
70
70
  incrementFailedSteps,
71
71
  incrementStepsExecuted,
@@ -79,13 +79,13 @@ import {
79
79
  uiAskChoiceFunc,
80
80
  uiAskChoiceFunctionSchema,
81
81
  updateStep
82
- } from "./chunk-AVO73UMB.js";
82
+ } from "./chunk-H442K6U4.js";
83
83
  import {
84
84
  createAgent,
85
85
  runLlm,
86
86
  streamAgentChatTurn,
87
87
  updateAgent
88
- } from "./chunk-IXTC74NZ.js";
88
+ } from "./chunk-LWVOFTNC.js";
89
89
  import {
90
90
  NOLO_WORKSPACE_TOOL_NAMES,
91
91
  buildAgentRuntimeAgentLookupKeys,
@@ -103,10 +103,10 @@ import {
103
103
  } from "./chunk-ADLYMQB6.js";
104
104
  import {
105
105
  buildDatabaseFileContentUrl
106
- } from "./chunk-DKMOY3QI.js";
106
+ } from "./chunk-HCOIKLSH.js";
107
107
  import {
108
108
  DEFAULT_MODEL
109
- } from "./chunk-DFUPZE6V.js";
109
+ } from "./chunk-7SLMYTSF.js";
110
110
  import {
111
111
  CODING_SKILL_SLUGS,
112
112
  buildCodingSkillConfig,
@@ -160,7 +160,7 @@ import {
160
160
  } from "./chunk-HNMXYYJR.js";
161
161
  import {
162
162
  shareResourceAction
163
- } from "./chunk-3RUW3ONU.js";
163
+ } from "./chunk-DDET6246.js";
164
164
  import {
165
165
  AGENT_UPDATE_FIELD_NAMES,
166
166
  nolotusId,
@@ -168,7 +168,7 @@ import {
168
168
  selectAutoApproveSelfUpdateFields,
169
169
  selectCurrentServer,
170
170
  selectSyncServers
171
- } from "./chunk-UNOTBWZZ.js";
171
+ } from "./chunk-QKCMP3LU.js";
172
172
  import {
173
173
  asRecordOrEmpty
174
174
  } from "./chunk-KX6YBIHG.js";
@@ -176,7 +176,7 @@ import {
176
176
  addContentAction,
177
177
  createSpaceKey,
178
178
  normalizeSpaceId
179
- } from "./chunk-4F5M2MW5.js";
179
+ } from "./chunk-KMMQFY5O.js";
180
180
  import {
181
181
  patch,
182
182
  read,
@@ -185,7 +185,7 @@ import {
185
185
  selectById,
186
186
  toTimestampMs,
187
187
  write
188
- } from "./chunk-UM4H3URE.js";
188
+ } from "./chunk-6YH4UR3E.js";
189
189
  import {
190
190
  SEPARATOR,
191
191
  createAgentKey,
@@ -211,7 +211,7 @@ import {
211
211
  import {
212
212
  DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS,
213
213
  readAction
214
- } from "./chunk-IR6W62Q6.js";
214
+ } from "./chunk-KZB5SNYH.js";
215
215
  import {
216
216
  createAsyncThunk,
217
217
  getRuntimeServerContext,
@@ -11383,7 +11383,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
11383
11383
  workspace: { mode: "lease" }
11384
11384
  };
11385
11385
  var findModelConfig = async (modelName, provider) => {
11386
- const { ALL_MODELS } = await import("./models-OX2S5C6Q.js");
11386
+ const { ALL_MODELS } = await import("./models-SQFOI4FI.js");
11387
11387
  const name = toTrimmedString(modelName);
11388
11388
  const prov = toTrimmedString(provider ?? "");
11389
11389
  if (!name) return null;
@@ -11624,7 +11624,7 @@ var buildFormDataFromArgs = async (args) => {
11624
11624
  const trimmedModel = toTrimmedString(model);
11625
11625
  const trimmedProvider = toTrimmedString(provider);
11626
11626
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11627
- const { getModelPricing } = await import("./getPricing-L2ENXWHV.js");
11627
+ const { getModelPricing } = await import("./getPricing-J4VXWR5B.js");
11628
11628
  const normalizedTools = tools ?? [];
11629
11629
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11630
11630
  const formData = {
@@ -14907,7 +14907,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14907
14907
  const deletedDialogIds = [];
14908
14908
  const deletedDialogKeys = [];
14909
14909
  const failures = [];
14910
- const { deleteDialog } = await import("./dialogSlice-YFWNV3JJ.js");
14910
+ const { deleteDialog } = await import("./dialogSlice-LW6C3M6A.js");
14911
14911
  for (const target of targets) {
14912
14912
  try {
14913
14913
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -15182,7 +15182,7 @@ var readSkillDocFunctionSchema = {
15182
15182
  }
15183
15183
  };
15184
15184
  async function readSkillDocFunc(args, thunkApi) {
15185
- const { buildReadDocResult } = await import("./readDocTool-CSWD6NPC.js");
15185
+ const { buildReadDocResult } = await import("./readDocTool-JNEZUOSM.js");
15186
15186
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
15187
15187
  if (typeof id !== "string" || !id.trim()) {
15188
15188
  throw new Error("readSkillDoc requires id or doc.");
@@ -20637,7 +20637,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
20637
20637
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
20638
20638
  async function addImageContentToSpace(input) {
20639
20639
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
20640
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-YVINZQTF.js")).addContentAction;
20640
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-FRXDZKSI.js")).addContentAction;
20641
20641
  await addContentAction2(
20642
20642
  {
20643
20643
  spaceId: input.spaceId,
@@ -24434,7 +24434,7 @@ var executeToolRun = createAsyncThunk(
24434
24434
  if (!executionInput) {
24435
24435
  throw new Error(`ToolRun ${id} has no input to execute with.`);
24436
24436
  }
24437
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-4QHXZBRQ.js");
24437
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-ZDXFZEEW.js");
24438
24438
  const { executor } = findToolExecutor2(run.toolName);
24439
24439
  toolRunStarted({
24440
24440
  id: run.id,
@@ -24458,7 +24458,7 @@ var executeToolRun = createAsyncThunk(
24458
24458
  const latestState = thunkApi.getState();
24459
24459
  const userId = latestState.auth?.currentUser?.userId;
24460
24460
  if (userId) {
24461
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-R5X62SG3.js");
24461
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-KHPDJFFP.js");
24462
24462
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
24463
24463
  }
24464
24464
  }
@@ -26941,7 +26941,7 @@ async function updateDocFunc(args, thunkApi) {
26941
26941
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26942
26942
  };
26943
26943
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26944
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-SGQ6EE5P.js");
26944
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-EJUEJZQE.js");
26945
26945
  if (getDocState().pageKey === id) {
26946
26946
  applyExternalDocUpdate({
26947
26947
  slateData: finalSlateData,
@@ -26966,7 +26966,7 @@ async function updateDocFunc(args, thunkApi) {
26966
26966
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
26967
26967
  async function dispatchSetSettings(thunkApi, changes) {
26968
26968
  const injectedSetSettings = thunkApi?.extra?.setSettings;
26969
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-FIFOQ6OR.js")).setSettings;
26969
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-JCCLCXZB.js")).setSettings;
26970
26970
  await thunkApi.dispatch(setSettings(changes)).unwrap();
26971
26971
  }
26972
26972
  var updateUserPreferenceProfileFunctionSchema = {
@@ -13,7 +13,7 @@ import {
13
13
  platformHostedModels,
14
14
  xaiModels,
15
15
  zaiModels
16
- } from "./chunk-OR2HNLVO.js";
16
+ } from "./chunk-7EPNNOL4.js";
17
17
 
18
18
  // packages/integrations/anthropic/anthropicModels.ts
19
19
  var anthropicModels = [
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-7XSIRXOO.js";
3
+ } from "./chunk-6XYCMONZ.js";
4
4
  import {
5
5
  prepareAndPersistMessage,
6
6
  uiAskChoiceFunc,
7
7
  uiAskChoiceFunctionSchema
8
- } from "./chunk-AVO73UMB.js";
8
+ } from "./chunk-H442K6U4.js";
9
9
  import {
10
10
  require_date_fns
11
11
  } from "./chunk-M76ECQRD.js";
@@ -19,14 +19,14 @@ import {
19
19
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
20
20
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
21
21
  PLATFORM_HOSTED_KIMI_PROVIDER
22
- } from "./chunk-OR2HNLVO.js";
22
+ } from "./chunk-7EPNNOL4.js";
23
23
  import {
24
24
  read,
25
25
  readAndWait,
26
26
  removeCachedEntity,
27
27
  upsertSSREntity,
28
28
  write
29
- } from "./chunk-UM4H3URE.js";
29
+ } from "./chunk-6YH4UR3E.js";
30
30
  import {
31
31
  createAgentKey,
32
32
  createDialogKey,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-CWMSB67P.js";
7
7
  import {
8
8
  getModelConfig
9
- } from "./chunk-DFUPZE6V.js";
9
+ } from "./chunk-7SLMYTSF.js";
10
10
  import {
11
11
  asOptionalFiniteNumber
12
12
  } from "./chunk-WWC7I6TA.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-GUC65EFO.js";
4
+ } from "./chunk-ZDUEQ6HC.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-SNFD447J.js";
7
+ } from "./chunk-7RUIWGT2.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-PIDDBIHR.js";
10
+ } from "./chunk-2ORF5DS4.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-RQFO3CAF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-SHOLLFRN.js";
4
+ } from "./chunk-5LWAL7BM.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YYLHWIW6.js";
4
4
  import {
5
5
  getModelAbility
6
- } from "./chunk-2QTEYCR7.js";
6
+ } from "./chunk-JFUW3UTO.js";
7
7
  import {
8
8
  isOwnedAgentKey,
9
9
  ownedAgentKey,
@@ -7,13 +7,13 @@ import {
7
7
  providerHttpFailure,
8
8
  readSseFrames,
9
9
  throwIfChatCompletionStreamFailed
10
- } from "./chunk-RJKIB55Y.js";
10
+ } from "./chunk-EQ6HOWEJ.js";
11
11
  import {
12
12
  sanitizeForOutbound
13
13
  } from "./chunk-T27IEBNQ.js";
14
14
  import {
15
15
  resolveHistoricalToolContentCap
16
- } from "./chunk-PIDDBIHR.js";
16
+ } from "./chunk-2ORF5DS4.js";
17
17
  import {
18
18
  createThinkParserState,
19
19
  createToolCallAccumulator,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  buildProviderAuthHeaders,
40
40
  buildProviderExecutionPlan
41
- } from "./chunk-7YYHKBJP.js";
41
+ } from "./chunk-OQVRTSZ5.js";
42
42
  import {
43
43
  NOLO_WORKSPACE_TOOL_NAMES,
44
44
  buildNoloWorkspaceCommandArgs,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-SNFD447J.js";
4
+ } from "./chunk-7RUIWGT2.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-ZZ2MH7LE.js";
8
8
  import {
9
9
  isNoloHostedProvider
10
- } from "./chunk-OR2HNLVO.js";
10
+ } from "./chunk-7EPNNOL4.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-UNOTBWZZ.js";
4
+ } from "./chunk-QKCMP3LU.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -32,10 +32,10 @@ import {
32
32
  resolvePlatformAuthToken,
33
33
  resolvePlatformServerUrl,
34
34
  resolveProviderTransportDecision
35
- } from "./chunk-7YYHKBJP.js";
35
+ } from "./chunk-OQVRTSZ5.js";
36
36
  import {
37
37
  clipCompactText
38
- } from "./chunk-DKMOY3QI.js";
38
+ } from "./chunk-HCOIKLSH.js";
39
39
  import {
40
40
  isRecord
41
41
  } from "./chunk-KUG52IAP.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-UNOTBWZZ.js";
3
+ } from "./chunk-QKCMP3LU.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-UM4H3URE.js";
6
+ } from "./chunk-6YH4UR3E.js";
7
7
  import {
8
8
  selectIdentityToken
9
9
  } from "./chunk-X664KVEV.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-VBUQYOX7.js";
4
+ } from "./chunk-IEHZHWN7.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-IKWTTKWG.js";
3
+ } from "./chunk-V4MT7AEN.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-CWMSB67P.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-IXTC74NZ.js";
16
+ } from "./chunk-LWVOFTNC.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-6YXDOOSH.js";
19
+ } from "./chunk-FH7VUJN5.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -33,9 +33,8 @@ import {
33
33
  DEFAULT_CONTEXT_WINDOW,
34
34
  getModelContextWindow,
35
35
  getModelInfo,
36
- resolveAutoExecutionProfile,
37
- resolveBuiltinPlatformAgentRecord
38
- } from "./chunk-GJXRIOLS.js";
36
+ resolveAutoExecutionProfile
37
+ } from "./chunk-2CNX3CJE.js";
39
38
  import {
40
39
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
41
40
  buildCompactionMetricsFromPlan,
@@ -47,11 +46,11 @@ import {
47
46
  normalizeAssistantContentBuffer,
48
47
  planCompression,
49
48
  serializeMessageContent
50
- } from "./chunk-DKMOY3QI.js";
49
+ } from "./chunk-HCOIKLSH.js";
51
50
  import {
52
51
  findModelConfig,
53
52
  getModelConfig
54
- } from "./chunk-DFUPZE6V.js";
53
+ } from "./chunk-7SLMYTSF.js";
55
54
  import {
56
55
  abortActiveControllers,
57
56
  addPageReferenceToRuntime,
@@ -73,10 +72,10 @@ import {
73
72
  import {
74
73
  getPlatformHostedDeepSeekV4Price,
75
74
  isPlatformHostedDeepSeekV4Model
76
- } from "./chunk-OR2HNLVO.js";
75
+ } from "./chunk-7EPNNOL4.js";
77
76
  import {
78
77
  nolotusId
79
- } from "./chunk-UNOTBWZZ.js";
78
+ } from "./chunk-QKCMP3LU.js";
80
79
  import {
81
80
  asRecordOrEmpty
82
81
  } from "./chunk-KX6YBIHG.js";
@@ -86,7 +85,7 @@ import {
86
85
  remove,
87
86
  selectById,
88
87
  write
89
- } from "./chunk-UM4H3URE.js";
88
+ } from "./chunk-6YH4UR3E.js";
90
89
  import {
91
90
  buildDialogAgentListIndexDeleteOps,
92
91
  createDialogMessageKeyAndId,
@@ -107,6 +106,11 @@ import {
107
106
  import {
108
107
  asTrimmedLowercaseString
109
108
  } from "./chunk-QSJ3HFEF.js";
109
+ import {
110
+ builtinAgentCatalogEntryById,
111
+ builtinRuntimeFallbackEntries,
112
+ isBuiltinPlatformAgentKey
113
+ } from "./chunk-KZB5SNYH.js";
110
114
  import {
111
115
  asyncThunkCreator,
112
116
  buildCreateSlice,
@@ -131,7 +135,9 @@ import {
131
135
  } from "./chunk-3EUW3WEO.js";
132
136
  import {
133
137
  extractCustomId,
134
- extractUserId
138
+ extractUserId,
139
+ parsePublicAgentId,
140
+ publicAgentKey
135
141
  } from "./chunk-BJIRLHJR.js";
136
142
  import {
137
143
  isRecord
@@ -1643,6 +1649,76 @@ var buildPersonalizationDialogPolicyContext = () => [
1643
1649
  "\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"
1644
1650
  ].join("\n");
1645
1651
 
1652
+ // packages/agent-runtime/builtinPlatformAgentRoute.ts
1653
+ function resolveBuiltinAgentRuntimeFields(agentKey) {
1654
+ if (!isBuiltinPlatformAgentKey(agentKey)) return null;
1655
+ const entry = builtinAgentCatalogEntryById(parsePublicAgentId(agentKey));
1656
+ if (!entry) return null;
1657
+ return { provider: entry.provider, model: entry.model };
1658
+ }
1659
+
1660
+ // packages/agent-runtime/builtinPlatformAgentConfigs.ts
1661
+ function buildConfig(e) {
1662
+ const key = publicAgentKey(e.id);
1663
+ const rawRecord = {
1664
+ dbKey: key,
1665
+ isPublic: true,
1666
+ provider: e.provider,
1667
+ model: e.model,
1668
+ apiSource: e.apiSource ?? "platform",
1669
+ useServerProxy: e.useServerProxy ?? true
1670
+ };
1671
+ if (e.hasImageOutput) rawRecord.hasImageOutput = true;
1672
+ if (e.imageModel) rawRecord.imageModel = e.imageModel;
1673
+ if (e.imageWorkflow) rawRecord.imageWorkflow = e.imageWorkflow;
1674
+ if (e.imageConfig) rawRecord.imageConfig = e.imageConfig;
1675
+ return {
1676
+ key,
1677
+ name: e.name,
1678
+ provider: e.provider,
1679
+ model: e.model,
1680
+ apiSource: e.apiSource ?? "platform",
1681
+ useServerProxy: e.useServerProxy ?? true,
1682
+ rawRecord
1683
+ };
1684
+ }
1685
+ var BUILTIN_PLATFORM_AGENT_CONFIGS = Object.fromEntries(
1686
+ builtinRuntimeFallbackEntries().map((e) => [publicAgentKey(e.id), buildConfig(e)])
1687
+ );
1688
+ function resolveBuiltinPlatformAgentConfig(agentRef) {
1689
+ return BUILTIN_PLATFORM_AGENT_CONFIGS[agentRef] ?? null;
1690
+ }
1691
+ function resolveBuiltinPlatformAgentRecord(agentRef) {
1692
+ const config = resolveBuiltinPlatformAgentConfig(agentRef);
1693
+ if (!config) return null;
1694
+ return {
1695
+ ...config.rawRecord,
1696
+ dbKey: agentRef,
1697
+ ...config.name ? { name: config.name } : {}
1698
+ };
1699
+ }
1700
+ function applyBuiltinAgentRuntimeOverride(agentKey, record) {
1701
+ const fields = resolveBuiltinAgentRuntimeFields(agentKey);
1702
+ if (!fields) return record;
1703
+ const current = record;
1704
+ const rawNeedsOverride = current.rawRecord != null && (current.rawRecord.provider !== fields.provider || current.rawRecord.model !== fields.model);
1705
+ if (current.provider === fields.provider && current.model === fields.model && !rawNeedsOverride) {
1706
+ return record;
1707
+ }
1708
+ return {
1709
+ ...record,
1710
+ provider: fields.provider,
1711
+ model: fields.model,
1712
+ ...current.rawRecord ? {
1713
+ rawRecord: {
1714
+ ...current.rawRecord,
1715
+ provider: fields.provider,
1716
+ model: fields.model
1717
+ }
1718
+ } : {}
1719
+ };
1720
+ }
1721
+
1646
1722
  // packages/chat/dialog/dialogAgentPolicy.ts
1647
1723
  var resolveDialogAgentMode = (dialog) => {
1648
1724
  if (dialog?.agentMode === "auto") return "auto";
@@ -3444,7 +3520,7 @@ var messageSlice = createSliceWithThunks({
3444
3520
  runtimeOptions: args.runtimeOptions
3445
3521
  });
3446
3522
  if (agentKeyToUse) {
3447
- const { streamAgentChatTurn } = await import("./agentSlice-47VUR2ZD.js");
3523
+ const { streamAgentChatTurn } = await import("./agentSlice-DL5WYNE7.js");
3448
3524
  await dispatch(
3449
3525
  streamAgentChatTurn({
3450
3526
  agentKey: agentKeyToUse,
@@ -4703,7 +4779,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4703
4779
  }
4704
4780
  if (isCurrentDialog) {
4705
4781
  await thunkApi.dispatch(resetMsgs());
4706
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-YFWNV3JJ.js");
4782
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LW6C3M6A.js");
4707
4783
  dispatch(clearPendingAttachments2());
4708
4784
  clearWorkflow();
4709
4785
  }
@@ -4712,39 +4788,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4712
4788
 
4713
4789
  // packages/chat/dialog/dialogSlice.ts
4714
4790
  var runCreateDialogAction = async (args, thunkApi) => {
4715
- const { createDialogAction } = await import("./createDialogAction-3CPIR267.js");
4791
+ const { createDialogAction } = await import("./createDialogAction-NSYFGB3J.js");
4716
4792
  return createDialogAction(args, thunkApi);
4717
4793
  };
4718
4794
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
4719
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-7DWATWIT.js");
4795
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-DXG33NH6.js");
4720
4796
  return createAgentAutomationAction(args, thunkApi);
4721
4797
  };
4722
4798
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
4723
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-IOSJSJ5S.js");
4799
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-WREH6JRU.js");
4724
4800
  return updateDialogTitleAction(args, thunkApi);
4725
4801
  };
4726
4802
  var runAddDialogAgentAction = async (args, thunkApi) => {
4727
- const { addDialogAgentAction } = await import("./addDialogAgentAction-6IOCIEPI.js");
4803
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-XL5G3LPR.js");
4728
4804
  return addDialogAgentAction(args, thunkApi);
4729
4805
  };
4730
4806
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
4731
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-2T7BPM3T.js");
4807
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-NPMEFEJW.js");
4732
4808
  return removeDialogAgentAction(args, thunkApi);
4733
4809
  };
4734
4810
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
4735
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-3746P7IW.js");
4811
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-BG72QA6S.js");
4736
4812
  return setPrimaryDialogAgentAction(args, thunkApi);
4737
4813
  };
4738
4814
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
4739
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-MQTUTQHL.js");
4815
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-YPGPM2LL.js");
4740
4816
  return switchDialogAgentAction(args, thunkApi);
4741
4817
  };
4742
4818
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
4743
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-GPT37HTW.js");
4819
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-ZZ6QWAG2.js");
4744
4820
  return setDialogExtraReferencesAction(args, thunkApi);
4745
4821
  };
4746
4822
  var runHandleSendMessageAction = async (args, thunkApi) => {
4747
- const { handleSendMessageAction } = await import("./handleSendMessageAction-RGCSLENY.js");
4823
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-LB4EPR3X.js");
4748
4824
  return handleSendMessageAction(args, thunkApi);
4749
4825
  };
4750
4826
  function clearDialogState() {
@@ -4757,7 +4833,7 @@ var createPageAndAddReference = createAsyncThunk(
4757
4833
  async (payload, { dispatch, getState, rejectWithValue }) => {
4758
4834
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
4759
4835
  try {
4760
- const { createDocState } = await import("./docStore-SGQ6EE5P.js");
4836
+ const { createDocState } = await import("./docStore-EJUEJZQE.js");
4761
4837
  const pageKey = await createDocState(
4762
4838
  { slateData, title },
4763
4839
  { dispatch, getState }
@@ -4918,6 +4994,9 @@ var selectCurrentDialogTokens = createSelector(
4918
4994
  var selectTotalDialogTokens = selectCurrentDialogTokens;
4919
4995
 
4920
4996
  export {
4997
+ resolveBuiltinPlatformAgentConfig,
4998
+ resolveBuiltinPlatformAgentRecord,
4999
+ applyBuiltinAgentRuntimeOverride,
4921
5000
  isAssistantToolStub,
4922
5001
  fetchAndCacheMessages,
4923
5002
  extractReferenceKeysFromMessage,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-DWLEOOGR.js";
4
4
  import {
5
5
  addContentAction
6
- } from "./chunk-4F5M2MW5.js";
6
+ } from "./chunk-KMMQFY5O.js";
7
7
  import {
8
8
  upload
9
- } from "./chunk-UM4H3URE.js";
9
+ } from "./chunk-6YH4UR3E.js";
10
10
  import {
11
11
  getRuntimeServerContext
12
12
  } from "./chunk-X664KVEV.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-SCUETSRP.js";
14
+ } from "./chunk-LAZTMWIU.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-QTZD6HBK.js";
@@ -9,7 +9,7 @@ import {
9
9
  platformHostedModels,
10
10
  xaiModels,
11
11
  zaiModels
12
- } from "./chunk-OR2HNLVO.js";
12
+ } from "./chunk-7EPNNOL4.js";
13
13
 
14
14
  // packages/ai/llm/modelAbility.ts
15
15
  var MODEL_ABILITY_TABLE = {
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
199
199
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
200
200
  }
201
201
  try {
202
- const { readAction } = await import("./read-2VHEHCAN.js");
202
+ const { readAction } = await import("./read-526GJR3R.js");
203
203
  const pageData = await readAction({ dbKey: id }, thunkApi);
204
204
  if (!pageData) {
205
205
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);