nolo-cli 0.190.0-alpha.1 → 0.191.0-alpha.1

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 (91) hide show
  1. package/{_executeModel-7GFCTOFY.js → _executeModel-WQ2D4ZRH.js} +22 -22
  2. package/{action-HQXK4ZT4.js → action-BHWB4MOK.js} +2 -2
  3. package/{addContentAction-3WAN3OWY.js → addContentAction-BY375D35.js} +3 -3
  4. package/{addDialogAgentAction-WNQBFR5G.js → addDialogAgentAction-HOZYOCWC.js} +2 -2
  5. package/{agentDeleteCommand-USWGJZSW.js → agentDeleteCommand-ADZNLZSO.js} +22 -22
  6. package/{agentEmailCommands-GAY44EQY.js → agentEmailCommands-NGE5AV5C.js} +23 -23
  7. package/{agentListCommands-CVLCMMJH.js → agentListCommands-WYKQI4GX.js} +6 -6
  8. package/{agentMachineCommands-L36OJZVK.js → agentMachineCommands-CQGT2YP2.js} +5 -5
  9. package/{agentRecordCommands-YYWWC4NK.js → agentRecordCommands-M4IFKR35.js} +22 -22
  10. package/{agentRunCommand-R42JIQMC.js → agentRunCommand-FQTQFUF7.js} +23 -23
  11. package/{agentRuntimeLocal-G4KEXO5D.js → agentRuntimeLocal-3H7ZXM5X.js} +3 -3
  12. package/{agentSlice-STUDWJJZ.js → agentSlice-UJPIKKKP.js} +3 -3
  13. package/{appDeleteCommands-C4VXCFO6.js → appDeleteCommands-AUDFCIFP.js} +6 -6
  14. package/{appDeployCommands-RFSFJY75.js → appDeployCommands-ZMVIKSPY.js} +6 -6
  15. package/{appDeployStatusCommands-DBT5WQ3X.js → appDeployStatusCommands-LQNUHHGW.js} +6 -6
  16. package/{appGetCommands-UPIBNR2W.js → appGetCommands-WVCAHY4P.js} +6 -6
  17. package/{appListCommands-PQA5MSVU.js → appListCommands-4HHNJQUI.js} +6 -6
  18. package/{authCommand-PIMMUEN5.js → authCommand-RV5MQDWN.js} +2 -2
  19. package/{authCommands-RFLKIPBT.js → authCommands-MZUXPRYJ.js} +2 -2
  20. package/{builtinSkillRegistry-2VN6JG4U.js → builtinSkillRegistry-7MBUY5EY.js} +3 -3
  21. package/{chunk-H6FUDBS3.js → chunk-2E5M3JVS.js} +5 -5
  22. package/{chunk-4OTMONZL.js → chunk-2KBNF477.js} +9 -9
  23. package/{chunk-O2MBTX37.js → chunk-3NPXGNSK.js} +4 -4
  24. package/{chunk-PUUH5I4K.js → chunk-4MYCKDSI.js} +1 -1
  25. package/{chunk-LOQYQUM2.js → chunk-53PBXLID.js} +1 -1
  26. package/{chunk-KOIGM3KU.js → chunk-5DPVRMSY.js} +1 -1
  27. package/{chunk-RGTPR57U.js → chunk-5EFNSNAV.js} +4 -4
  28. package/{chunk-GSX7Z46F.js → chunk-5HAPEKNH.js} +1 -1
  29. package/{chunk-JOOWHDGM.js → chunk-A5BLRE3G.js} +1 -1
  30. package/{chunk-Y2ZDNW2H.js → chunk-B2N5GZBU.js} +2 -2
  31. package/{chunk-7SJG5ZNX.js → chunk-B6EZB6DW.js} +1 -1
  32. package/{chunk-CLGAGPEM.js → chunk-CNMQATUF.js} +1 -1
  33. package/{chunk-PVZ3GB25.js → chunk-CTPFBJAF.js} +5 -5
  34. package/{chunk-ER4UTWWS.js → chunk-DFF6B7P7.js} +1 -1
  35. package/{chunk-R6AJKHEU.js → chunk-DS5DAOIY.js} +3 -3
  36. package/{chunk-WMHWFFTE.js → chunk-ECX3NKRD.js} +46 -0
  37. package/{chunk-XRADC4SK.js → chunk-EEXYC45V.js} +11 -11
  38. package/{chunk-MMOISK6N.js → chunk-EHB4CKUI.js} +3 -3
  39. package/{chunk-3QFOYFJW.js → chunk-FEDJHD5X.js} +4 -4
  40. package/{chunk-WBCYL63M.js → chunk-GYVLAHA4.js} +1 -1
  41. package/{chunk-PUMVJXBA.js → chunk-HAGQR66F.js} +2 -2
  42. package/{chunk-S4W4GV3B.js → chunk-K6TZSON4.js} +1 -1
  43. package/{chunk-RANCLEEC.js → chunk-KGP7UTNN.js} +10 -10
  44. package/{chunk-ZIOYHDYW.js → chunk-LCSAJ5TJ.js} +2 -2
  45. package/{chunk-6G5V4Y3V.js → chunk-LHOR5MC2.js} +26 -21
  46. package/{chunk-PCPQWTXJ.js → chunk-PD2YRFAI.js} +1 -1
  47. package/{chunk-7N6C3IHF.js → chunk-R5LJWMZE.js} +2 -2
  48. package/{chunk-ZCGA3Q7V.js → chunk-SKFMP4PX.js} +35 -10
  49. package/{chunk-OXOXPREC.js → chunk-SM56M7N7.js} +1 -1
  50. package/{chunk-JAJJUMDC.js → chunk-TFSMPRAY.js} +3 -3
  51. package/{chunk-5LVGXDSL.js → chunk-U5ZHUOLT.js} +1 -1
  52. package/{chunk-IFN7MHWL.js → chunk-UGCQKKXW.js} +1 -1
  53. package/{chunk-YUZIPPER.js → chunk-UVWBGWBO.js} +8 -2
  54. package/{chunk-HVV4B6OL.js → chunk-W622GBH3.js} +2 -2
  55. package/{chunk-BHVB3ICG.js → chunk-YCQ5WURS.js} +3 -3
  56. package/{chunk-RBVR7P3M.js → chunk-YE6A72XL.js} +18 -18
  57. package/{commandRegistry-3EZUYHCR.js → commandRegistry-O2RBWYPW.js} +51 -51
  58. package/{contentThunks-E4DHXF3M.js → contentThunks-HQBAAXNW.js} +8 -8
  59. package/{createAgentAutomationAction-2P2II7B3.js → createAgentAutomationAction-KELPOVMP.js} +8 -8
  60. package/{createDialogAction-MFZGE5EO.js → createDialogAction-Z3SASMTM.js} +10 -10
  61. package/{createPageAction-SBU2YCNR.js → createPageAction-PNHOIG44.js} +8 -8
  62. package/{dbSlice-2O3YBVPP.js → dbSlice-QAUXABCC.js} +2 -2
  63. package/{dialogCommands-Z35VVKWJ.js → dialogCommands-VCQO2OFM.js} +6 -6
  64. package/{dialogSlice-GKPCUQWM.js → dialogSlice-QHV6I3OQ.js} +7 -7
  65. package/{dialogUsageCommand-44XMU6DD.js → dialogUsageCommand-QTG6ILEJ.js} +58 -5
  66. package/{docCreateCommands-I654DRPF.js → docCreateCommands-7FAETK4S.js} +5 -5
  67. package/{docDeleteCommands-CKHY75KZ.js → docDeleteCommands-IVA4T2VS.js} +6 -6
  68. package/{docReadCommands-YOWFZ3XC.js → docReadCommands-F63GIAYX.js} +5 -5
  69. package/{docStore-DOZVBVKZ.js → docStore-LVMUSECS.js} +3 -3
  70. package/{docUpdateCommands-FMUKYCYX.js → docUpdateCommands-QEC4Y2HQ.js} +5 -5
  71. package/{fetchMessages-QLW7INJJ.js → fetchMessages-HWBVATSE.js} +1 -1
  72. package/{handleSendMessageAction-FY4RBJEA.js → handleSendMessageAction-7TONIXHY.js} +15 -15
  73. package/index.js +3 -3
  74. package/{keys-N6HQICY5.js → keys-P4ZDOVJW.js} +11 -1
  75. package/{localDialogRead-55YDVPNU.js → localDialogRead-CT5HGDMC.js} +1 -1
  76. package/{localRuntimeAdapter-X22B3GW3.js → localRuntimeAdapter-4ROHWWBE.js} +20 -20
  77. package/{machineCommands-XEJR6HF3.js → machineCommands-YRYIFT7E.js} +21 -21
  78. package/{machineWsRunDispatch-BYX227T2.js → machineWsRunDispatch-2P52PRIL.js} +21 -21
  79. package/{memberThunks-VXT36MZP.js → memberThunks-ZAE52VIP.js} +3 -3
  80. package/package.json +1 -1
  81. package/{readlineWorkspace-GXU2KWOK.js → readlineWorkspace-LNFLMKKG.js} +27 -27
  82. package/{removeDialogAgentAction-PK24DJ2J.js → removeDialogAgentAction-YEPO5AYI.js} +3 -3
  83. package/{runAgentClientLoop-CFIM6MXT.js → runAgentClientLoop-DCV4BD2W.js} +20 -20
  84. package/{setDialogExtraReferencesAction-BN4IBUO6.js → setDialogExtraReferencesAction-EH5GWDAJ.js} +3 -3
  85. package/{setPrimaryDialogAgentAction-JR5SMLZY.js → setPrimaryDialogAgentAction-PNWRK6IY.js} +3 -3
  86. package/{settingThunks-RJZQHL7H.js → settingThunks-7VCWB6P7.js} +2 -2
  87. package/{spaceCommands-BI3TRIAK.js → spaceCommands-6IH5EH6B.js} +5 -5
  88. package/{streamAgentChatTurn-3BS7IAFR.js → streamAgentChatTurn-NKFKMFQ2.js} +22 -22
  89. package/{switchDialogAgentAction-TSIXBNRH.js → switchDialogAgentAction-23BFWJMV.js} +2 -2
  90. package/{tools-PCTUYG54.js → tools-626VXEY7.js} +17 -17
  91. package/{updateDialogTitleAction-ZHFIMEQL.js → updateDialogTitleAction-RNNQAMXG.js} +8 -8
@@ -53,7 +53,7 @@ import {
53
53
  import {
54
54
  fileKey,
55
55
  getFileIdFromKey
56
- } from "./chunk-WMHWFFTE.js";
56
+ } from "./chunk-ECX3NKRD.js";
57
57
  import {
58
58
  ulid
59
59
  } from "./chunk-XJWWBO34.js";
@@ -782,7 +782,7 @@ var dbSlice = createSliceWithThunks({
782
782
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
783
783
  share: create.asyncThunk(
784
784
  async (config, thunkApi) => {
785
- const { shareResourceAction } = await import("./action-HQXK4ZT4.js");
785
+ const { shareResourceAction } = await import("./action-BHWB4MOK.js");
786
786
  return shareResourceAction(config, thunkApi);
787
787
  }
788
788
  ),
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-Y2ZDNW2H.js";
7
+ } from "./chunk-B2N5GZBU.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
@@ -21,7 +21,7 @@ import {
21
21
  sanitizeShareData,
22
22
  shareKey,
23
23
  toNonEmptyString
24
- } from "./chunk-WMHWFFTE.js";
24
+ } from "./chunk-ECX3NKRD.js";
25
25
 
26
26
  // packages/share/action.ts
27
27
  var generateToken = () => {
@@ -2,7 +2,7 @@ import {
2
2
  patch,
3
3
  remove,
4
4
  write
5
- } from "./chunk-Y2ZDNW2H.js";
5
+ } from "./chunk-B2N5GZBU.js";
6
6
  import {
7
7
  getRuntimeServerContext
8
8
  } from "./chunk-7UODCAWW.js";
@@ -28,7 +28,7 @@ import {
28
28
  createAgentKey,
29
29
  createUserKey,
30
30
  toTrimmedString
31
- } from "./chunk-WMHWFFTE.js";
31
+ } from "./chunk-ECX3NKRD.js";
32
32
  import {
33
33
  asTrimmedString
34
34
  } from "./chunk-3EUW3WEO.js";
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
347
347
  const overrides = {};
348
348
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
349
349
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
350
- const { _executeModel } = await import("./_executeModel-7GFCTOFY.js");
350
+ const { _executeModel } = await import("./_executeModel-WQ2D4ZRH.js");
351
351
  return _executeModel(
352
352
  {
353
353
  isStreaming: args.isStreaming ?? false,
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
368
368
  * - 循环直到无工具调用或触发其他运行时停止条件
369
369
  */
370
370
  runAgent: create.asyncThunk(async (args, thunkApi) => {
371
- const { runAgentClientLoop } = await import("./runAgentClientLoop-CFIM6MXT.js");
371
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-DCV4BD2W.js");
372
372
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
373
373
  {
374
374
  agentKey: args.agentKey,
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
384
384
  * 聊天轮次流式 Agent 调用
385
385
  */
386
386
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
387
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-3BS7IAFR.js");
387
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-NKFKMFQ2.js");
388
388
  return streamAgentChatTurnHandler(args, thunkApi);
389
389
  }),
390
390
  /**
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-Y2ZDNW2H.js";
10
+ } from "./chunk-B2N5GZBU.js";
11
11
 
12
12
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
13
13
  var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-Y2ZDNW2H.js";
10
+ } from "./chunk-B2N5GZBU.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-E4DHXF3M.js");
336
+ const { updateContentTitle } = await import("./contentThunks-HQBAAXNW.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-SBU2YCNR.js");
375
+ const { createPageAction } = await import("./createPageAction-PNHOIG44.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -2990,6 +2990,47 @@ var createTokenKey = {
2990
2990
  end: createKey("token", userId, "\uFFFF")
2991
2991
  })
2992
2992
  };
2993
+ var TOKEN_DIALOG_INDEX_PREFIX = "idx-token-dialog";
2994
+ var encodeTokenIndexSegment = (segment) => {
2995
+ let out = "";
2996
+ for (const ch of segment) {
2997
+ if (/[A-Za-z0-9]/.test(ch)) {
2998
+ out += ch;
2999
+ continue;
3000
+ }
3001
+ for (const byte of new TextEncoder().encode(ch)) {
3002
+ out += `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
3003
+ }
3004
+ }
3005
+ return out;
3006
+ };
3007
+ var createTokenDialogIndexKey = Object.assign(
3008
+ (userId, dialogId, callId) => createKey(
3009
+ TOKEN_DIALOG_INDEX_PREFIX,
3010
+ encodeTokenIndexSegment(userId),
3011
+ encodeTokenIndexSegment(dialogId),
3012
+ encodeTokenIndexSegment(callId)
3013
+ ),
3014
+ {
3015
+ /** 某个用户在某个对话下的全部索引项范围(范围扫描用) */
3016
+ rangeOfDialog: (userId, dialogId) => ({
3017
+ start: createKey(
3018
+ TOKEN_DIALOG_INDEX_PREFIX,
3019
+ encodeTokenIndexSegment(userId),
3020
+ encodeTokenIndexSegment(dialogId),
3021
+ ""
3022
+ ),
3023
+ end: createKey(
3024
+ TOKEN_DIALOG_INDEX_PREFIX,
3025
+ encodeTokenIndexSegment(userId),
3026
+ encodeTokenIndexSegment(dialogId),
3027
+ "\uFFFF"
3028
+ )
3029
+ })
3030
+ }
3031
+ );
3032
+ var TOKEN_DIALOG_INDEX_FORMAT = "v2";
3033
+ var createTokenDialogBackfillKey = (userId) => createKey("idx-tokendlg-backfill", encodeTokenIndexSegment(userId));
2993
3034
  var createTokenStatsKey = Object.assign(
2994
3035
  (userId, dateKey) => createKey("token", "stats", "day", "user", userId, dateKey),
2995
3036
  {
@@ -3461,6 +3502,11 @@ export {
3461
3502
  memorySubjectKindRange,
3462
3503
  createTransactionKey,
3463
3504
  createTokenKey,
3505
+ TOKEN_DIALOG_INDEX_PREFIX,
3506
+ encodeTokenIndexSegment,
3507
+ createTokenDialogIndexKey,
3508
+ TOKEN_DIALOG_INDEX_FORMAT,
3509
+ createTokenDialogBackfillKey,
3464
3510
  createTokenStatsKey,
3465
3511
  createTokenStatsAppliedKey,
3466
3512
  isTokenStatsKey,
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-5LVGXDSL.js";
12
+ } from "./chunk-U5ZHUOLT.js";
13
13
  import {
14
14
  parsePositiveFiniteNumberOrFallback
15
15
  } from "./chunk-Y5GCAMGP.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  readDbRecord,
21
21
  resolveAgentRecordFromHybridStore
22
- } from "./chunk-WBCYL63M.js";
22
+ } from "./chunk-GYVLAHA4.js";
23
23
  import {
24
24
  INSTABOX_RUN_CONFIG_ENV,
25
25
  createCliLocalRuntimeAdapter,
@@ -38,7 +38,7 @@ import {
38
38
  resolveFileWriteGateEnabled,
39
39
  resolveLocalUserId,
40
40
  validateInstaboxWorkspaceSelection
41
- } from "./chunk-ZCGA3Q7V.js";
41
+ } from "./chunk-SKFMP4PX.js";
42
42
  import {
43
43
  clearCredentialAvailability,
44
44
  readEffectiveCredentialEntry,
@@ -72,14 +72,14 @@ import {
72
72
  } from "./chunk-BMQ2MJUK.js";
73
73
  import {
74
74
  resolveCliLocalRuntimeKeyCapability
75
- } from "./chunk-6G5V4Y3V.js";
75
+ } from "./chunk-LHOR5MC2.js";
76
76
  import {
77
77
  isTransientFetchError
78
78
  } from "./chunk-KFHREHUQ.js";
79
79
  import {
80
80
  parseUiCard,
81
81
  uiCardFallback
82
- } from "./chunk-O2MBTX37.js";
82
+ } from "./chunk-3NPXGNSK.js";
83
83
  import {
84
84
  isGatewayHttpStatus
85
85
  } from "./chunk-NF64D32W.js";
@@ -88,7 +88,7 @@ import {
88
88
  chooseMemoryOwners,
89
89
  loadMemoryCandidatesFromDb,
90
90
  resolveAgentMemoryPolicy
91
- } from "./chunk-H6FUDBS3.js";
91
+ } from "./chunk-2E5M3JVS.js";
92
92
  import {
93
93
  API_REPORTED_COST_MULTIPLIER,
94
94
  estimateMessagesTokens,
@@ -96,7 +96,7 @@ import {
96
96
  resolveAgentContextWindow,
97
97
  resolveOccupancy,
98
98
  resolveOccupancyWindow
99
- } from "./chunk-RBVR7P3M.js";
99
+ } from "./chunk-YE6A72XL.js";
100
100
  import {
101
101
  isCliAuthorityBrokerProtocolError,
102
102
  isCliAuthorityBrokerTimeoutError,
@@ -116,7 +116,7 @@ import {
116
116
  LOCAL_AGENT_CONFIG_MISSING_CODE,
117
117
  LOCAL_TURN_ABORTED_CODE,
118
118
  readActionGate
119
- } from "./chunk-HVV4B6OL.js";
119
+ } from "./chunk-W622GBH3.js";
120
120
  import {
121
121
  resolveAgentRuntimeConfigFromRecord
122
122
  } from "./chunk-N7E3LQ4A.js";
@@ -144,7 +144,7 @@ import {
144
144
  } from "./chunk-WJZOQR2J.js";
145
145
  import {
146
146
  normalizeUsage
147
- } from "./chunk-S4W4GV3B.js";
147
+ } from "./chunk-K6TZSON4.js";
148
148
  import {
149
149
  isOAuthApiKeyRef
150
150
  } from "./chunk-UKZX3NHN.js";
@@ -231,7 +231,7 @@ import {
231
231
  } from "./chunk-UNOILAZP.js";
232
232
  import {
233
233
  createMemoryKey
234
- } from "./chunk-WMHWFFTE.js";
234
+ } from "./chunk-ECX3NKRD.js";
235
235
  import {
236
236
  ulid
237
237
  } from "./chunk-XJWWBO34.js";
@@ -11378,7 +11378,7 @@ function isBalanceExhaustedError(error) {
11378
11378
 
11379
11379
  // packages/cli/client/agentRun.ts
11380
11380
  async function loadRunLocalAgentTurn() {
11381
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-G4KEXO5D.js");
11381
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-3H7ZXM5X.js");
11382
11382
  return runLocalAgentTurn;
11383
11383
  }
11384
11384
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-3QFOYFJW.js";
6
+ } from "./chunk-FEDJHD5X.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-PVZ3GB25.js";
9
+ } from "./chunk-CTPFBJAF.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
- } from "./chunk-GSX7Z46F.js";
12
+ } from "./chunk-5HAPEKNH.js";
13
13
  import {
14
14
  CREDENTIAL_HYGIENE_RULE,
15
15
  DELETE_SAFETY_RED_LINE,
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-O2MBTX37.js";
5
+ } from "./chunk-3NPXGNSK.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -21,13 +21,13 @@ import {
21
21
  } from "./chunk-AGIM7IMJ.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-RBVR7P3M.js";
24
+ } from "./chunk-YE6A72XL.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
28
28
  import {
29
29
  read
30
- } from "./chunk-Y2ZDNW2H.js";
30
+ } from "./chunk-B2N5GZBU.js";
31
31
  import {
32
32
  getRuntimeServerContext
33
33
  } from "./chunk-7UODCAWW.js";
@@ -35,7 +35,7 @@ import {
35
35
  extractRuntimePageCapabilities,
36
36
  resolveBuiltinSkillPage,
37
37
  resolveSkillGraphFromRoots
38
- } from "./chunk-GSX7Z46F.js";
38
+ } from "./chunk-5HAPEKNH.js";
39
39
  import {
40
40
  isAbortError
41
41
  } from "./chunk-7DPNBQSV.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-Y6ROFCZO.js";
24
24
  import {
25
25
  createAgentKey
26
- } from "./chunk-WMHWFFTE.js";
26
+ } from "./chunk-ECX3NKRD.js";
27
27
 
28
28
  // packages/cli/agentRecordHelpers.ts
29
29
  import { readFileSync } from "node:fs";
@@ -13,10 +13,10 @@ import {
13
13
  resolveAgentRecordFromHybridStore,
14
14
  sanitizeAgentRecordForCliOutput,
15
15
  writeAgentRecord
16
- } from "./chunk-WBCYL63M.js";
16
+ } from "./chunk-GYVLAHA4.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-ZCGA3Q7V.js";
19
+ } from "./chunk-SKFMP4PX.js";
20
20
  import {
21
21
  readCredentialAvailability
22
22
  } from "./chunk-R4BMKAR5.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  isPageKey,
18
18
  isTableMetaKey
19
- } from "./chunk-WMHWFFTE.js";
19
+ } from "./chunk-ECX3NKRD.js";
20
20
  import {
21
21
  isDialogRecordKey
22
22
  } from "./chunk-XJWWBO34.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-ZIOYHDYW.js";
8
+ } from "./chunk-LCSAJ5TJ.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-MMOISK6N.js";
17
+ } from "./chunk-EHB4CKUI.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-6G5V4Y3V.js";
21
+ } from "./chunk-LHOR5MC2.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-3QFOYFJW.js";
26
+ } from "./chunk-FEDJHD5X.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-O2MBTX37.js";
35
+ } from "./chunk-3NPXGNSK.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -45,10 +45,10 @@ import {
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-RBVR7P3M.js";
48
+ } from "./chunk-YE6A72XL.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-PVZ3GB25.js";
51
+ } from "./chunk-CTPFBJAF.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-Y2ZDNW2H.js";
62
+ } from "./chunk-B2N5GZBU.js";
63
63
  import {
64
64
  createAsyncThunk
65
65
  } from "./chunk-WRCZXJ4N.js";
@@ -88,7 +88,7 @@ import {
88
88
  } from "./chunk-OHRDHS4N.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-S4W4GV3B.js";
91
+ } from "./chunk-K6TZSON4.js";
92
92
  import {
93
93
  getModelInfo
94
94
  } from "./chunk-JIFYXQRD.js";
@@ -109,7 +109,7 @@ import {
109
109
  } from "./chunk-KUG52IAP.js";
110
110
  import {
111
111
  toTrimmedString
112
- } from "./chunk-WMHWFFTE.js";
112
+ } from "./chunk-ECX3NKRD.js";
113
113
  import {
114
114
  createDialogMessageKeyAndId,
115
115
  dialogMessageKey
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-6G5V4Y3V.js";
3
+ } from "./chunk-LHOR5MC2.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-RBVR7P3M.js";
6
+ } from "./chunk-YE6A72XL.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-AKE53VMW.js";
@@ -26,7 +26,7 @@ import {
26
26
  setMembershipRejected,
27
27
  setSpaceInitialized,
28
28
  updateMemberSpaceName
29
- } from "./chunk-LOQYQUM2.js";
29
+ } from "./chunk-53PBXLID.js";
30
30
  import {
31
31
  ToolResultError,
32
32
  clipMultilineText,
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-O2MBTX37.js";
41
+ } from "./chunk-3NPXGNSK.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-VYNMQ6HW.js";
56
56
  import {
57
57
  createDocState
58
- } from "./chunk-R6AJKHEU.js";
58
+ } from "./chunk-DS5DAOIY.js";
59
59
  import {
60
60
  ToolApiError,
61
61
  buildToolRequestHeaders,
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-MYOH447Z.js";
67
67
  import {
68
68
  setDialogExtraReferencesAction
69
- } from "./chunk-ER4UTWWS.js";
69
+ } from "./chunk-DFF6B7P7.js";
70
70
  import {
71
71
  readDocFunc,
72
72
  readDocFunctionSchema,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-63W5N6P3.js";
83
83
  import {
84
84
  createDialogAction
85
- } from "./chunk-H6FUDBS3.js";
85
+ } from "./chunk-2E5M3JVS.js";
86
86
  import {
87
87
  DEFAULT_COLLAPSED_CATEGORIES,
88
88
  addContentToSpace,
@@ -99,7 +99,7 @@ import {
99
99
  updateContentCategory,
100
100
  updateContentTitle,
101
101
  writeStoredCollapsedCategories
102
- } from "./chunk-RGTPR57U.js";
102
+ } from "./chunk-5EFNSNAV.js";
103
103
  import {
104
104
  getCurrentSpaceId,
105
105
  getCurrentSpaceIdRaw,
@@ -122,14 +122,14 @@ import {
122
122
  selectMsgById,
123
123
  uiAskChoiceFunc,
124
124
  uiAskChoiceFunctionSchema
125
- } from "./chunk-RBVR7P3M.js";
125
+ } from "./chunk-YE6A72XL.js";
126
126
  import {
127
127
  createAgent,
128
128
  deleteServerSyncedCredential,
129
129
  runLlm,
130
130
  streamAgentChatTurn,
131
131
  updateAgent
132
- } from "./chunk-PVZ3GB25.js";
132
+ } from "./chunk-CTPFBJAF.js";
133
133
  import {
134
134
  buildMediaToolConfirmation,
135
135
  normalizeMediaConfirmExecutionRevision
@@ -138,7 +138,7 @@ import {
138
138
  UNCATEGORIZED_ID,
139
139
  addContentAction,
140
140
  checkSpaceMembership
141
- } from "./chunk-7SJG5ZNX.js";
141
+ } from "./chunk-B6EZB6DW.js";
142
142
  import {
143
143
  createSpaceKey,
144
144
  normalizeSpaceId
@@ -153,7 +153,7 @@ import {
153
153
  } from "./chunk-YDH3FDFQ.js";
154
154
  import {
155
155
  shareResourceAction
156
- } from "./chunk-CLGAGPEM.js";
156
+ } from "./chunk-CNMQATUF.js";
157
157
  import {
158
158
  selectCurrentServer,
159
159
  selectSyncServers
@@ -169,7 +169,7 @@ import {
169
169
  selectEntities,
170
170
  toTimestampMs,
171
171
  write
172
- } from "./chunk-Y2ZDNW2H.js";
172
+ } from "./chunk-B2N5GZBU.js";
173
173
  import {
174
174
  readAction
175
175
  } from "./chunk-LBXUNNDS.js";
@@ -199,10 +199,10 @@ import {
199
199
  import {
200
200
  listBuiltinSkills,
201
201
  resolveBuiltinSkillByName
202
- } from "./chunk-GSX7Z46F.js";
202
+ } from "./chunk-5HAPEKNH.js";
203
203
  import {
204
204
  CAPABILITY_PACKS
205
- } from "./chunk-OXOXPREC.js";
205
+ } from "./chunk-SM56M7N7.js";
206
206
  import {
207
207
  buildSkillDocMarkdown,
208
208
  normalizeSkillModalities,
@@ -308,7 +308,7 @@ import {
308
308
  rowKey,
309
309
  splitKey,
310
310
  toTrimmedString
311
- } from "./chunk-WMHWFFTE.js";
311
+ } from "./chunk-ECX3NKRD.js";
312
312
  import {
313
313
  dialogMessageRange,
314
314
  isDialogKey,
@@ -3884,7 +3884,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3884
3884
  const deletedDialogIds = [];
3885
3885
  const deletedDialogKeys = [];
3886
3886
  const failures = [];
3887
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-GKPCUQWM.js");
3887
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-QHV6I3OQ.js");
3888
3888
  for (const target of targets) {
3889
3889
  try {
3890
3890
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4468,6 +4468,7 @@ var createInitialState = () => ({
4468
4468
  agentIds: [],
4469
4469
  contentIds: [],
4470
4470
  favoritedAtById: {},
4471
+ displaySummaryById: {},
4471
4472
  initialized: false,
4472
4473
  loading: false,
4473
4474
  snapshotComplete: false,
@@ -4491,9 +4492,11 @@ function removeFavoriteLocally(payload) {
4491
4492
  state = {
4492
4493
  ...state,
4493
4494
  agentIds: state.agentIds.filter((item) => item !== id),
4494
- favoritedAtById: { ...state.favoritedAtById }
4495
+ favoritedAtById: { ...state.favoritedAtById },
4496
+ displaySummaryById: { ...state.displaySummaryById }
4495
4497
  };
4496
4498
  delete state.favoritedAtById[id];
4499
+ delete state.displaySummaryById[id];
4497
4500
  notify();
4498
4501
  return;
4499
4502
  }
@@ -4501,9 +4504,11 @@ function removeFavoriteLocally(payload) {
4501
4504
  state = {
4502
4505
  ...state,
4503
4506
  contentIds: state.contentIds.filter((item) => item !== id),
4504
- favoritedAtById: { ...state.favoritedAtById }
4507
+ favoritedAtById: { ...state.favoritedAtById },
4508
+ displaySummaryById: { ...state.displaySummaryById }
4505
4509
  };
4506
4510
  delete state.favoritedAtById[id];
4511
+ delete state.displaySummaryById[id];
4507
4512
  notify();
4508
4513
  }
4509
4514
  }
@@ -4990,7 +4995,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
4990
4995
  const spaceKey = createSpaceKey.space(spaceId);
4991
4996
  const readSpace = async (dbKey) => {
4992
4997
  try {
4993
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-2O3YBVPP.js");
4998
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QAUXABCC.js");
4994
4999
  if (fresh) {
4995
5000
  return await dispatch(readAndWait2(dbKey)).unwrap();
4996
5001
  }
@@ -11637,7 +11642,7 @@ var selectUserIdFromState = (state2) => {
11637
11642
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
11638
11643
  async function addImageContentToSpace(input) {
11639
11644
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
11640
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-3WAN3OWY.js")).addContentAction;
11645
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-BY375D35.js")).addContentAction;
11641
11646
  await addContentAction2(
11642
11647
  {
11643
11648
  spaceId: input.spaceId,
@@ -18566,7 +18571,7 @@ async function updateDocFunc(args, thunkApi) {
18566
18571
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18567
18572
  };
18568
18573
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18569
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-DOZVBVKZ.js");
18574
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-LVMUSECS.js");
18570
18575
  if (getDocState().pageKey === id) {
18571
18576
  applyExternalDocUpdate({
18572
18577
  slateData: finalSlateData,
@@ -18591,7 +18596,7 @@ async function updateDocFunc(args, thunkApi) {
18591
18596
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
18592
18597
  async function dispatchSetSettings(thunkApi, changes) {
18593
18598
  const injectedSetSettings = thunkApi?.extra?.setSettings;
18594
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-RJZQHL7H.js")).setSettings;
18599
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-7VCWB6P7.js")).setSettings;
18595
18600
  await thunkApi.dispatch(setSettings(changes)).unwrap();
18596
18601
  }
18597
18602
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-WBCYL63M.js";
4
+ } from "./chunk-GYVLAHA4.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-3QFOYFJW.js";
4
+ } from "./chunk-FEDJHD5X.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-RBVR7P3M.js";
7
+ } from "./chunk-YE6A72XL.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";