nolo-cli 0.16.0-alpha.17 → 0.16.0-alpha.19

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 (92) hide show
  1. package/{_executeModel-GP2DXECM.js → _executeModel-YY6LVJXJ.js} +24 -24
  2. package/{action-TK62YXTY.js → action-LT7BRFLK.js} +7 -7
  3. package/{addContentAction-IEEBATAA.js → addContentAction-PL3KKBDH.js} +6 -6
  4. package/{addDialogAgentAction-XUZNC36X.js → addDialogAgentAction-FCMSKYAF.js} +5 -5
  5. package/{agentDeleteCommand-6C77LXAA.js → agentDeleteCommand-TJ2EAYDA.js} +13 -13
  6. package/{agentEmailCommands-7KZPAGIW.js → agentEmailCommands-UKEGNW25.js} +28 -28
  7. package/{agentListCommands-EFFASIR2.js → agentListCommands-WD5XYVGK.js} +14 -14
  8. package/{agentMachineCommands-XHLRGCLP.js → agentMachineCommands-OHZ3HKOV.js} +13 -13
  9. package/{agentRecordCommands-ITBT7MPU.js → agentRecordCommands-N2JQMKS4.js} +28 -28
  10. package/{agentRunCommand-HEBSX6ER.js → agentRunCommand-P2ECE6UJ.js} +28 -28
  11. package/{agentRunControl-YVLQ4BW5.js → agentRunControl-P75VPTGS.js} +1 -1
  12. package/{agentRuntimeLocal-KV6MQJQS.js → agentRuntimeLocal-K2J7IS6O.js} +10 -10
  13. package/{agentSlice-HOLDB2UY.js → agentSlice-OOLSXBHE.js} +6 -6
  14. package/{appDeleteCommands-ROPKN6PL.js → appDeleteCommands-X7YGULGZ.js} +14 -14
  15. package/{appDeployCommands-65E4ARQN.js → appDeployCommands-IMNPBUN7.js} +14 -14
  16. package/{appDeployStatusCommands-RFWMQDSJ.js → appDeployStatusCommands-2KFZUEET.js} +14 -14
  17. package/{appGetCommands-LDO2HNAL.js → appGetCommands-AYG44S7G.js} +14 -14
  18. package/{appListCommands-S4MBG4KD.js → appListCommands-Z7CLYPLH.js} +14 -14
  19. package/{chunk-PH7SXF5R.js → chunk-2M54XJFV.js} +24 -24
  20. package/{chunk-XPC5C7BK.js → chunk-3ND52WIL.js} +2 -2
  21. package/{chunk-JQOWVDDX.js → chunk-3PGT7DEK.js} +3 -3
  22. package/{chunk-6N4KODMN.js → chunk-4T5F7YZQ.js} +1 -1
  23. package/{chunk-NJYEXLKX.js → chunk-5ICZUVFN.js} +2 -2
  24. package/{chunk-YZ2PZFC6.js → chunk-7BUYEZ6U.js} +1 -1
  25. package/{chunk-N77EBDJJ.js → chunk-A7QNCVO5.js} +9 -2
  26. package/{chunk-Y3GNPBAB.js → chunk-B26VDWID.js} +2 -8
  27. package/{chunk-HETVWFFQ.js → chunk-BDSHV5HO.js} +24 -24
  28. package/{chunk-V3A3PXQQ.js → chunk-BLQ3U7UK.js} +1 -1
  29. package/{chunk-N3IKVYLL.js → chunk-CGSHUOC7.js} +1 -1
  30. package/{chunk-XV5I4HHL.js → chunk-DKZFOK24.js} +1 -1
  31. package/chunk-DL6EPNIK.js +50 -0
  32. package/{chunk-EWLAMUG5.js → chunk-EGPCU42M.js} +4 -4
  33. package/{chunk-27MGYWLZ.js → chunk-ELT65PZW.js} +2 -2
  34. package/{chunk-WWWIRXLT.js → chunk-IRQJSVET.js} +12 -14
  35. package/{chunk-CIF5XTPN.js → chunk-JBWVSKBS.js} +28 -30
  36. package/{chunk-DS2YYH6W.js → chunk-JIDA7LBE.js} +3 -3
  37. package/{chunk-WVQXRCCZ.js → chunk-JLA4FXYC.js} +1 -1
  38. package/{chunk-KF27FHVT.js → chunk-KO4PXGVN.js} +1 -1
  39. package/{chunk-XGJRT3IK.js → chunk-MVQ4TBSD.js} +1 -1
  40. package/{chunk-IG3SA64O.js → chunk-OOKISU7J.js} +2 -2
  41. package/{chunk-MT2DOPXQ.js → chunk-OZPVJZBX.js} +1 -1
  42. package/{chunk-DXOUTEQC.js → chunk-QCJITMYO.js} +4 -2
  43. package/{chunk-LD6DKWMF.js → chunk-QSLNKTUG.js} +11 -11
  44. package/{chunk-OOSFSFMA.js → chunk-R5V5G73M.js} +2 -0
  45. package/{chunk-L2DKNKL4.js → chunk-RVOUXDFU.js} +4 -4
  46. package/{chunk-3J6QER3H.js → chunk-RYFZ55YC.js} +5 -5
  47. package/{chunk-JTINRTBT.js → chunk-SKDNBYZK.js} +2 -2
  48. package/{chunk-HRLDQJW7.js → chunk-SQNQOXQ6.js} +34 -16
  49. package/{chunk-E5CLOOG5.js → chunk-TSIYZBTH.js} +4 -1
  50. package/{chunk-JKUL77KQ.js → chunk-UGUW3FHG.js} +3 -3
  51. package/{runOverlayPresentation-BHD5POEM.js → chunk-V5R4NZP2.js} +3 -4
  52. package/{chunk-ETXKHE7J.js → chunk-X3AHTP6B.js} +2 -2
  53. package/{chunk-YPAO6HUT.js → chunk-XHG22OEX.js} +4 -4
  54. package/{chunk-DVRHHFEA.js → chunk-XMLRJUU5.js} +1 -1
  55. package/{chunk-NLQBLZUO.js → chunk-XRZJGPFI.js} +6 -6
  56. package/{chunk-VE7PIZFT.js → chunk-XU6XCPWB.js} +1 -1
  57. package/{chunk-LFTQYP3K.js → chunk-XYXJ4JRT.js} +8 -4
  58. package/{chunk-JJPANCH2.js → chunk-YEFSRF54.js} +2 -2
  59. package/{codingSkills-3RK4CIL2.js → codingSkills-36KN5NQT.js} +1 -1
  60. package/{createAgentAutomationAction-63XOK7PE.js → createAgentAutomationAction-EL5ORU35.js} +11 -11
  61. package/{createDialogAction-NBFEO4SU.js → createDialogAction-DKED4DHE.js} +12 -12
  62. package/{createPageAction-JYVUSH57.js → createPageAction-BYW4YP54.js} +11 -11
  63. package/{dbSlice-CJJKYYXK.js → dbSlice-CGSRFJN3.js} +5 -5
  64. package/{deleteFile-WPWVZE4B.js → deleteFile-WDZ3VM7B.js} +3 -3
  65. package/{dialogCommands-JO7YCVND.js → dialogCommands-J7C6MB3Q.js} +14 -14
  66. package/{dialogSlice-6SOMUMGM.js → dialogSlice-RJCHTUIG.js} +11 -11
  67. package/{docCreateCommands-H7KQ345X.js → docCreateCommands-Y7OSXNB6.js} +13 -13
  68. package/{docDeleteCommands-OSEFFFJ5.js → docDeleteCommands-ALZGQRCE.js} +14 -14
  69. package/{docReadCommands-7A5PGQ7J.js → docReadCommands-4BDDESGT.js} +13 -13
  70. package/{docStore-K2SEQBBX.js → docStore-QWYVY7SV.js} +12 -12
  71. package/{docUpdateCommands-3COEELBB.js → docUpdateCommands-LU2ZM2VE.js} +13 -13
  72. package/{handleSendMessageAction-L6NJXNIP.js → handleSendMessageAction-CUZL72WD.js} +11 -11
  73. package/index.js +56 -56
  74. package/{machineCommands-DGDX3GHH.js → machineCommands-QMODXRTA.js} +27 -27
  75. package/{machineWsRunDispatch-ZV6BHKXA.js → machineWsRunDispatch-UPWS4PZD.js} +27 -27
  76. package/package.json +1 -1
  77. package/{queryRunOverlay-KQDJBH32.js → queryRunOverlay-O4LOMMPO.js} +10 -52
  78. package/{read-CN3TNXIP.js → read-3FMPZPER.js} +3 -3
  79. package/{readDocTool-WF3675ED.js → readDocTool-VSYHKK3V.js} +1 -1
  80. package/{readlineWorkspace-BUSQQXPY.js → readlineWorkspace-ZDN3CREA.js} +106 -40
  81. package/{removeDialogAgentAction-XRTUVGAN.js → removeDialogAgentAction-OAGA2G3U.js} +7 -7
  82. package/{runAgentClientLoop-2YPEUG3Q.js → runAgentClientLoop-XKFPXIZC.js} +21 -21
  83. package/runOverlayPresentation-ZO4VCWEU.js +11 -0
  84. package/{setDialogExtraReferencesAction-WNZINFOX.js → setDialogExtraReferencesAction-JZEXA5SL.js} +6 -6
  85. package/{setPrimaryDialogAgentAction-ECVV6DJ3.js → setPrimaryDialogAgentAction-4ZUQQKDG.js} +7 -7
  86. package/{settingSlice-UVDEFVMQ.js → settingSlice-7MNKHZ6R.js} +6 -6
  87. package/{spaceCommands-XPHOVJTB.js → spaceCommands-UG4QHSHD.js} +13 -13
  88. package/{spaceSlice-EGOJICFM.js → spaceSlice-LR2XC33A.js} +11 -11
  89. package/{streamAgentChatTurn-LAFUD4KS.js → streamAgentChatTurn-5UOO7W6S.js} +26 -26
  90. package/{tableCommands-3P7MJ3PF.js → tableCommands-BEQAGE4I.js} +1 -1
  91. package/{tools-O6DVCZ3R.js → tools-VHE5VME5.js} +19 -19
  92. package/{updateDialogTitleAction-DVQFOG64.js → updateDialogTitleAction-OZZQ7SB2.js} +11 -11
@@ -19,7 +19,7 @@ import {
19
19
  readPageFunc,
20
20
  readPageFunctionSchema,
21
21
  slateToSimplifiedMarkdown
22
- } from "./chunk-6N4KODMN.js";
22
+ } from "./chunk-4T5F7YZQ.js";
23
23
  import {
24
24
  markdownToSlate
25
25
  } from "./chunk-3LY4F7SV.js";
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-VF4K2QE6.js";
29
29
  import {
30
30
  createDocState
31
- } from "./chunk-JQOWVDDX.js";
31
+ } from "./chunk-3PGT7DEK.js";
32
32
  import {
33
33
  setDialogExtraReferencesAction
34
- } from "./chunk-WVQXRCCZ.js";
34
+ } from "./chunk-JLA4FXYC.js";
35
35
  import {
36
36
  extractMentionsFromSlate
37
37
  } from "./chunk-VP4WJWKW.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-63W5N6P3.js";
41
41
  import {
42
42
  createDialogAction
43
- } from "./chunk-LFTQYP3K.js";
43
+ } from "./chunk-XYXJ4JRT.js";
44
44
  import {
45
45
  addCategory,
46
46
  addContentToSpace,
@@ -71,18 +71,18 @@ import {
71
71
  updateContentCategory,
72
72
  updateContentTitle,
73
73
  updateStep
74
- } from "./chunk-HETVWFFQ.js";
74
+ } from "./chunk-BDSHV5HO.js";
75
75
  import {
76
76
  createAgent,
77
77
  runLlm,
78
78
  streamAgentChatTurn,
79
79
  updateAgent
80
- } from "./chunk-3J6QER3H.js";
80
+ } from "./chunk-RYFZ55YC.js";
81
81
  import {
82
82
  buildCodingSkillContentBySlug,
83
83
  buildCodingSkillPageKey,
84
84
  resolveCodingBuiltinSlug
85
- } from "./chunk-YZ2PZFC6.js";
85
+ } from "./chunk-7BUYEZ6U.js";
86
86
  import {
87
87
  buildSkillDocMarkdown,
88
88
  normalizeSkillBudgetTier,
@@ -105,10 +105,10 @@ import {
105
105
  redactAgentRecordForWorkspaceTool,
106
106
  resolveNoloDialogInput,
107
107
  verifyNoloDialogSubjectRefQuery
108
- } from "./chunk-XV5I4HHL.js";
108
+ } from "./chunk-DKZFOK24.js";
109
109
  import {
110
110
  buildDatabaseFileContentUrl
111
- } from "./chunk-EWLAMUG5.js";
111
+ } from "./chunk-EGPCU42M.js";
112
112
  import {
113
113
  DEFAULT_MODEL
114
114
  } from "./chunk-HQPG2PIV.js";
@@ -119,7 +119,7 @@ import {
119
119
  addContentAction,
120
120
  createSpaceKey,
121
121
  normalizeSpaceId
122
- } from "./chunk-27MGYWLZ.js";
122
+ } from "./chunk-ELT65PZW.js";
123
123
  import {
124
124
  canonicalizeToolName,
125
125
  canonicalizeToolNames
@@ -154,7 +154,7 @@ import {
154
154
  } from "./chunk-FKXFCYVO.js";
155
155
  import {
156
156
  shareResourceAction
157
- } from "./chunk-JKUL77KQ.js";
157
+ } from "./chunk-UGUW3FHG.js";
158
158
  import {
159
159
  AGENT_UPDATE_FIELD_NAMES,
160
160
  SYSTEM_AGENT_CAPABILITIES,
@@ -163,7 +163,7 @@ import {
163
163
  selectAutoApproveSelfUpdateFields,
164
164
  selectCurrentServer,
165
165
  selectSyncServers
166
- } from "./chunk-L2DKNKL4.js";
166
+ } from "./chunk-RVOUXDFU.js";
167
167
  import {
168
168
  asRecordOrEmpty
169
169
  } from "./chunk-KX6YBIHG.js";
@@ -175,7 +175,7 @@ import {
175
175
  selectById,
176
176
  toTimestampMs,
177
177
  write
178
- } from "./chunk-NLQBLZUO.js";
178
+ } from "./chunk-XRZJGPFI.js";
179
179
  import {
180
180
  SEPARATOR,
181
181
  createAgentKey,
@@ -200,7 +200,7 @@ import {
200
200
  } from "./chunk-QSJ3HFEF.js";
201
201
  import {
202
202
  readAction
203
- } from "./chunk-XPC5C7BK.js";
203
+ } from "./chunk-3ND52WIL.js";
204
204
  import {
205
205
  createAsyncThunk,
206
206
  getRuntimeServerContext,
@@ -208,10 +208,10 @@ import {
208
208
  selectIdentityToken,
209
209
  selectIdentityUserId,
210
210
  selectRuntimeSnapshot
211
- } from "./chunk-DVRHHFEA.js";
211
+ } from "./chunk-XMLRJUU5.js";
212
212
  import {
213
213
  isAbortError
214
- } from "./chunk-OOSFSFMA.js";
214
+ } from "./chunk-R5V5G73M.js";
215
215
  import {
216
216
  asTrimmedString
217
217
  } from "./chunk-3EUW3WEO.js";
@@ -13060,7 +13060,7 @@ async function loadSkillFunc(args, thunkApi) {
13060
13060
  const dbKey = userId ? buildCodingSkillPageKey(userId, builtinSlug) : builtinSlug;
13061
13061
  if (userId) {
13062
13062
  try {
13063
- const { ensureCodingSkills } = await import("./codingSkills-3RK4CIL2.js");
13063
+ const { ensureCodingSkills } = await import("./codingSkills-36KN5NQT.js");
13064
13064
  await ensureCodingSkills(userId)(thunkApi?.dispatch ?? (() => Promise.resolve()));
13065
13065
  } catch {
13066
13066
  }
@@ -14250,7 +14250,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14250
14250
  const deletedDialogIds = [];
14251
14251
  const deletedDialogKeys = [];
14252
14252
  const failures = [];
14253
- const { deleteDialog } = await import("./dialogSlice-6SOMUMGM.js");
14253
+ const { deleteDialog } = await import("./dialogSlice-RJCHTUIG.js");
14254
14254
  for (const target of targets) {
14255
14255
  try {
14256
14256
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -14518,7 +14518,7 @@ var readSkillDocFunctionSchema = {
14518
14518
  }
14519
14519
  };
14520
14520
  async function readSkillDocFunc(args, thunkApi) {
14521
- const { buildReadDocResult } = await import("./readDocTool-WF3675ED.js");
14521
+ const { buildReadDocResult } = await import("./readDocTool-VSYHKK3V.js");
14522
14522
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
14523
14523
  if (typeof id !== "string" || !id.trim()) {
14524
14524
  throw new Error("readSkillDoc requires id or doc.");
@@ -19968,7 +19968,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19968
19968
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19969
19969
  async function addImageContentToSpace(input) {
19970
19970
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19971
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-IEEBATAA.js")).addContentAction;
19971
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-PL3KKBDH.js")).addContentAction;
19972
19972
  await addContentAction2(
19973
19973
  {
19974
19974
  spaceId: input.spaceId,
@@ -23514,7 +23514,7 @@ var executeToolRun = createAsyncThunk(
23514
23514
  if (!executionInput) {
23515
23515
  throw new Error(`ToolRun ${id} has no input to execute with.`);
23516
23516
  }
23517
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-O6DVCZ3R.js");
23517
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-VHE5VME5.js");
23518
23518
  const { executor } = findToolExecutor2(run.toolName);
23519
23519
  toolRunStarted({
23520
23520
  id: run.id,
@@ -23538,7 +23538,7 @@ var executeToolRun = createAsyncThunk(
23538
23538
  const latestState = thunkApi.getState();
23539
23539
  const userId = latestState.auth?.currentUser?.userId;
23540
23540
  if (userId) {
23541
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-EGOJICFM.js");
23541
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-LR2XC33A.js");
23542
23542
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
23543
23543
  }
23544
23544
  }
@@ -26021,7 +26021,7 @@ async function updateDocFunc(args, thunkApi) {
26021
26021
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26022
26022
  };
26023
26023
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26024
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-K2SEQBBX.js");
26024
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-QWYVY7SV.js");
26025
26025
  if (getDocState().pageKey === id) {
26026
26026
  applyExternalDocUpdate({
26027
26027
  slateData: finalSlateData,
@@ -26046,7 +26046,7 @@ async function updateDocFunc(args, thunkApi) {
26046
26046
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
26047
26047
  async function dispatchSetSettings(thunkApi, changes) {
26048
26048
  const injectedSetSettings = thunkApi?.extra?.setSettings;
26049
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-UVDEFVMQ.js")).setSettings;
26049
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-7MNKHZ6R.js")).setSettings;
26050
26050
  await thunkApi.dispatch(setSettings(changes)).unwrap();
26051
26051
  }
26052
26052
  var updateUserPreferenceProfileFunctionSchema = {
@@ -7,14 +7,14 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-DVRHHFEA.js";
10
+ } from "./chunk-XMLRJUU5.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
14
  isAbortError,
15
15
  isReadTimeoutError,
16
16
  logger
17
- } from "./chunk-OOSFSFMA.js";
17
+ } from "./chunk-R5V5G73M.js";
18
18
  import {
19
19
  shouldReplaceWithNextRecord
20
20
  } from "./chunk-GBRG75BQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-HETVWFFQ.js";
3
+ } from "./chunk-BDSHV5HO.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  patch,
15
15
  readAndWait
16
- } from "./chunk-NLQBLZUO.js";
16
+ } from "./chunk-XRZJGPFI.js";
17
17
  import {
18
18
  asOptionalTrimmedString
19
19
  } from "./chunk-G3SUCT4W.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-JYVUSH57.js");
370
+ const { createPageAction } = await import("./createPageAction-BYW4YP54.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -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-CN3TNXIP.js");
202
+ const { readAction } = await import("./read-3FMPZPER.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`);
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-VE7PIZFT.js";
4
+ } from "./chunk-XU6XCPWB.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-N77EBDJJ.js";
7
+ } from "./chunk-A7QNCVO5.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
10
  } from "./chunk-XJITGCTM.js";
@@ -614,7 +614,7 @@ async function resolveCodingEffectiveTools(userId) {
614
614
  }
615
615
  function ensureCodingSkills(userId) {
616
616
  return async (dispatch) => {
617
- const { readAndWait, write } = await import("./dbSlice-CJJKYYXK.js");
617
+ const { readAndWait, write } = await import("./dbSlice-CGSRFJN3.js");
618
618
  const { DataType } = await import("./types-ZSTJ7MPR.js");
619
619
  const now = Date.now();
620
620
  const pages = buildCodingSkillPageRecords(userId);
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
- normalizeAgentHandle,
4
3
  shouldReadAgentKeyRemotely
5
- } from "./chunk-Y3GNPBAB.js";
4
+ } from "./chunk-B26VDWID.js";
6
5
  import {
7
6
  resolveCliAgentKeyInput
8
7
  } from "./chunk-VHBWHNVT.js";
@@ -26,6 +25,13 @@ import {
26
25
 
27
26
  // packages/cli/agentRecordHelpers.ts
28
27
  import { readFileSync } from "node:fs";
28
+
29
+ // packages/core/agentHandle.ts
30
+ function normalizeAgentHandle(value) {
31
+ return typeof value === "string" && value.trim() ? value.trim().toLowerCase().replace(/\s+/g, " ") : void 0;
32
+ }
33
+
34
+ // packages/cli/agentRecordHelpers.ts
29
35
  var PROVIDER_COPY_FIELDS = [
30
36
  "apiSource",
31
37
  "provider",
@@ -612,6 +618,7 @@ async function buildUpdatedAgentRecord(args) {
612
618
  }
613
619
 
614
620
  export {
621
+ normalizeAgentHandle,
615
622
  fetchWithTransportFallback,
616
623
  readAgentRecord,
617
624
  readDbRecord,
@@ -1,19 +1,13 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-JJPANCH2.js";
4
+ } from "./chunk-YEFSRF54.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
8
8
  var shouldReadAgentKeyRemotely = shouldFetchAgentRuntimeRecordRemotely;
9
9
 
10
- // packages/core/agentHandle.ts
11
- function normalizeAgentHandle(value) {
12
- return typeof value === "string" && value.trim() ? value.trim().toLowerCase().replace(/\s+/g, " ") : void 0;
13
- }
14
-
15
10
  export {
16
11
  buildLocalAgentLookupKeys,
17
- shouldReadAgentKeyRemotely,
18
- normalizeAgentHandle
12
+ shouldReadAgentKeyRemotely
19
13
  };
@@ -12,13 +12,13 @@ import {
12
12
  import {
13
13
  deleteServerSyncedCredential,
14
14
  runLlm
15
- } from "./chunk-3J6QER3H.js";
15
+ } from "./chunk-RYFZ55YC.js";
16
16
  import {
17
17
  getApproxPricePerImage
18
18
  } from "./chunk-CWMSB67P.js";
19
19
  import {
20
20
  cleanupCliSessionForDialog
21
- } from "./chunk-YPAO6HUT.js";
21
+ } from "./chunk-XHG22OEX.js";
22
22
  import {
23
23
  getDialogAgentIds,
24
24
  getPrimaryDialogAgentId
@@ -38,7 +38,7 @@ import {
38
38
  planCompression,
39
39
  resolveAutoExecutionProfile,
40
40
  serializeMessageContent
41
- } from "./chunk-EWLAMUG5.js";
41
+ } from "./chunk-EGPCU42M.js";
42
42
  import {
43
43
  createFileCredentialBroker
44
44
  } from "./chunk-5CS33IBL.js";
@@ -56,7 +56,7 @@ import {
56
56
  createSpaceKey,
57
57
  localSpaceAuthorityPatchStamp,
58
58
  normalizeSpaceId
59
- } from "./chunk-27MGYWLZ.js";
59
+ } from "./chunk-ELT65PZW.js";
60
60
  import {
61
61
  extractCustomId,
62
62
  extractUserId
@@ -84,7 +84,7 @@ import {
84
84
  selectRemoteServer,
85
85
  selectRemoteServers,
86
86
  selectRemoteSyncServers
87
- } from "./chunk-L2DKNKL4.js";
87
+ } from "./chunk-RVOUXDFU.js";
88
88
  import {
89
89
  asRecordOrEmpty
90
90
  } from "./chunk-KX6YBIHG.js";
@@ -100,7 +100,7 @@ import {
100
100
  uploadFileAction,
101
101
  upsertSSREntity,
102
102
  write
103
- } from "./chunk-NLQBLZUO.js";
103
+ } from "./chunk-XRZJGPFI.js";
104
104
  import {
105
105
  DB_PREFIX,
106
106
  SEPARATOR,
@@ -138,7 +138,7 @@ import {
138
138
  } from "./chunk-QSJ3HFEF.js";
139
139
  import {
140
140
  readAction
141
- } from "./chunk-XPC5C7BK.js";
141
+ } from "./chunk-3ND52WIL.js";
142
142
  import {
143
143
  DEVICE_LOCAL_OWNER_ID,
144
144
  asyncThunkCreator,
@@ -159,7 +159,7 @@ import {
159
159
  selectIdentityToken,
160
160
  selectIdentityUserId,
161
161
  selectRuntimeSnapshot
162
- } from "./chunk-DVRHHFEA.js";
162
+ } from "./chunk-XMLRJUU5.js";
163
163
  import {
164
164
  createClientLogger,
165
165
  fetchFromServer,
@@ -167,7 +167,7 @@ import {
167
167
  getAllServers,
168
168
  isAbortError,
169
169
  logger
170
- } from "./chunk-OOSFSFMA.js";
170
+ } from "./chunk-R5V5G73M.js";
171
171
  import {
172
172
  buildTombstoneRecord,
173
173
  isTombstoneRecord,
@@ -5596,7 +5596,7 @@ var messageSlice = createSliceWithThunks({
5596
5596
  runtimeOptions: args.runtimeOptions
5597
5597
  });
5598
5598
  if (agentKeyToUse) {
5599
- const { streamAgentChatTurn } = await import("./agentSlice-HOLDB2UY.js");
5599
+ const { streamAgentChatTurn } = await import("./agentSlice-OOLSXBHE.js");
5600
5600
  await dispatch(
5601
5601
  streamAgentChatTurn({
5602
5602
  agentKey: agentKeyToUse,
@@ -8255,7 +8255,7 @@ var deleteOwnedDialogAttachments = async (args) => {
8255
8255
  metadataReadFailures
8256
8256
  });
8257
8257
  if (!plan.deleteCandidates.length) return plan;
8258
- const { deleteFileAction } = await import("./deleteFile-WPWVZE4B.js");
8258
+ const { deleteFileAction } = await import("./deleteFile-WDZ3VM7B.js");
8259
8259
  for (const candidate of plan.deleteCandidates) {
8260
8260
  if (candidate.fileDbKey) {
8261
8261
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -8317,7 +8317,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8317
8317
  }
8318
8318
  if (isCurrentDialog) {
8319
8319
  await thunkApi.dispatch(resetMsgs());
8320
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-6SOMUMGM.js");
8320
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-RJCHTUIG.js");
8321
8321
  dispatch(clearPendingAttachments2());
8322
8322
  clearWorkflow();
8323
8323
  }
@@ -8326,35 +8326,35 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8326
8326
 
8327
8327
  // packages/chat/dialog/dialogSlice.ts
8328
8328
  var runCreateDialogAction = async (args, thunkApi) => {
8329
- const { createDialogAction } = await import("./createDialogAction-NBFEO4SU.js");
8329
+ const { createDialogAction } = await import("./createDialogAction-DKED4DHE.js");
8330
8330
  return createDialogAction(args, thunkApi);
8331
8331
  };
8332
8332
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
8333
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-63XOK7PE.js");
8333
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-EL5ORU35.js");
8334
8334
  return createAgentAutomationAction(args, thunkApi);
8335
8335
  };
8336
8336
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
8337
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DVQFOG64.js");
8337
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OZZQ7SB2.js");
8338
8338
  return updateDialogTitleAction(args, thunkApi);
8339
8339
  };
8340
8340
  var runAddDialogAgentAction = async (args, thunkApi) => {
8341
- const { addDialogAgentAction } = await import("./addDialogAgentAction-XUZNC36X.js");
8341
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-FCMSKYAF.js");
8342
8342
  return addDialogAgentAction(args, thunkApi);
8343
8343
  };
8344
8344
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
8345
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-XRTUVGAN.js");
8345
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-OAGA2G3U.js");
8346
8346
  return removeDialogAgentAction(args, thunkApi);
8347
8347
  };
8348
8348
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
8349
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-ECVV6DJ3.js");
8349
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-4ZUQQKDG.js");
8350
8350
  return setPrimaryDialogAgentAction(args, thunkApi);
8351
8351
  };
8352
8352
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
8353
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-WNZINFOX.js");
8353
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-JZEXA5SL.js");
8354
8354
  return setDialogExtraReferencesAction(args, thunkApi);
8355
8355
  };
8356
8356
  var runHandleSendMessageAction = async (args, thunkApi) => {
8357
- const { handleSendMessageAction } = await import("./handleSendMessageAction-L6NJXNIP.js");
8357
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-CUZL72WD.js");
8358
8358
  return handleSendMessageAction(args, thunkApi);
8359
8359
  };
8360
8360
  function clearDialogState() {
@@ -8367,7 +8367,7 @@ var createPageAndAddReference = createAsyncThunk(
8367
8367
  async (payload, { dispatch, getState, rejectWithValue }) => {
8368
8368
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
8369
8369
  try {
8370
- const { createDocState } = await import("./docStore-K2SEQBBX.js");
8370
+ const { createDocState } = await import("./docStore-QWYVY7SV.js");
8371
8371
  const pageKey = await createDocState(
8372
8372
  { slateData, title },
8373
8373
  { dispatch, getState }
@@ -12327,11 +12327,11 @@ var ENTITY_DELETE_STRATEGIES = {
12327
12327
  await dispatch(deleteTable({ dbKey: key })).unwrap();
12328
12328
  },
12329
12329
  file: async (key, { thunkAPI }) => {
12330
- const { deleteFileAction } = await import("./deleteFile-WPWVZE4B.js");
12330
+ const { deleteFileAction } = await import("./deleteFile-WDZ3VM7B.js");
12331
12331
  await deleteFileAction(key, thunkAPI);
12332
12332
  },
12333
12333
  image: async (key, { thunkAPI }) => {
12334
- const { deleteFileAction } = await import("./deleteFile-WPWVZE4B.js");
12334
+ const { deleteFileAction } = await import("./deleteFile-WDZ3VM7B.js");
12335
12335
  await deleteFileAction(key, thunkAPI);
12336
12336
  },
12337
12337
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -14526,7 +14526,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
14526
14526
  const spaceKey = createSpaceKey.space(spaceId);
14527
14527
  const readSpace = async (dbKey) => {
14528
14528
  try {
14529
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-CJJKYYXK.js");
14529
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-CGSRFJN3.js");
14530
14530
  if (fresh) {
14531
14531
  return await dispatch(readAndWait2(dbKey)).unwrap();
14532
14532
  }
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-VE7PIZFT.js";
10
+ } from "./chunk-XU6XCPWB.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-HRLDQJW7.js";
4
+ } from "./chunk-SQNQOXQ6.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -816,7 +816,7 @@ function buildLoadSkillExecutor(args) {
816
816
  const { resolveSkillByName } = await import("./skillDiscovery-KJWT7JBU.js");
817
817
  const resolved = resolveSkillByName(args.cwd, name);
818
818
  if (!resolved) {
819
- const { resolveCodingBuiltinSlug, buildCodingSkillContentBySlug } = await import("./codingSkills-3RK4CIL2.js");
819
+ const { resolveCodingBuiltinSlug, buildCodingSkillContentBySlug } = await import("./codingSkills-36KN5NQT.js");
820
820
  const builtinSlug = resolveCodingBuiltinSlug(name);
821
821
  if (builtinSlug) {
822
822
  const body = buildCodingSkillContentBySlug(builtinSlug);
@@ -0,0 +1,50 @@
1
+ // packages/core/chat/runOverlayMachine.ts
2
+ var initialRunOverlayState = {
3
+ runs: /* @__PURE__ */ new Map()
4
+ };
5
+ function reduceRunOverlay(state, event) {
6
+ switch (event.type) {
7
+ case "run-state-chg": {
8
+ const prev = state.runs.get(event.runId);
9
+ const now = Date.now();
10
+ const merged = prev ? { ...prev, ...event.info, runId: event.runId, updatedAt: now } : {
11
+ runId: event.runId,
12
+ name: event.info.name ?? "",
13
+ status: event.info.status ?? "running",
14
+ summary: event.info.summary,
15
+ batchId: event.info.batchId,
16
+ parentDialogId: event.info.parentDialogId,
17
+ errorMessage: event.info.errorMessage,
18
+ updatedAt: now
19
+ };
20
+ if (prev && shallowEqualRun(prev, merged)) {
21
+ return state;
22
+ }
23
+ const runs = new Map(state.runs);
24
+ runs.set(event.runId, merged);
25
+ return { runs };
26
+ }
27
+ case "run-removed": {
28
+ if (!state.runs.has(event.runId)) return state;
29
+ const runs = new Map(state.runs);
30
+ runs.delete(event.runId);
31
+ return { runs };
32
+ }
33
+ case "clear-all": {
34
+ if (state.runs.size === 0) return state;
35
+ return { runs: /* @__PURE__ */ new Map() };
36
+ }
37
+ default: {
38
+ const _exhaustive = event;
39
+ return state;
40
+ }
41
+ }
42
+ }
43
+ function shallowEqualRun(a, b) {
44
+ return a.runId === b.runId && a.name === b.name && a.status === b.status && a.summary === b.summary && a.batchId === b.batchId && a.parentDialogId === b.parentDialogId && a.errorMessage === b.errorMessage;
45
+ }
46
+
47
+ export {
48
+ initialRunOverlayState,
49
+ reduceRunOverlay
50
+ };
@@ -3,20 +3,20 @@ import {
3
3
  } from "./chunk-HQPG2PIV.js";
4
4
  import {
5
5
  addContentAction
6
- } from "./chunk-27MGYWLZ.js";
6
+ } from "./chunk-ELT65PZW.js";
7
7
  import {
8
8
  ALL_MODELS
9
9
  } from "./chunk-RK5NYQEL.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-NLQBLZUO.js";
12
+ } from "./chunk-XRZJGPFI.js";
13
13
  import {
14
14
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
15
15
  PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
16
- } from "./chunk-XPC5C7BK.js";
16
+ } from "./chunk-3ND52WIL.js";
17
17
  import {
18
18
  getRuntimeServerContext
19
- } from "./chunk-DVRHHFEA.js";
19
+ } from "./chunk-XMLRJUU5.js";
20
20
  import {
21
21
  API_ENDPOINTS
22
22
  } from "./chunk-LCBAMY2M.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  patch,
3
3
  read
4
- } from "./chunk-NLQBLZUO.js";
4
+ } from "./chunk-XRZJGPFI.js";
5
5
  import {
6
6
  DEVICE_LOCAL_OWNER_ID,
7
7
  isDeviceLocalSpaceBody,
8
8
  selectIdentityUserId
9
- } from "./chunk-DVRHHFEA.js";
9
+ } from "./chunk-XMLRJUU5.js";
10
10
 
11
11
  // packages/create/space/spaceKeys.ts
12
12
  var SEPARATOR = "-";