nolo-cli 0.66.0-alpha.3 → 0.66.0-alpha.5

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-TBSKCSBE.js → _executeModel-C63UG367.js} +26 -26
  2. package/{action-76JX3JX3.js → action-AOORTHTU.js} +6 -6
  3. package/{addContentAction-V3NAZRTJ.js → addContentAction-E3S6F3IS.js} +5 -5
  4. package/{addDialogAgentAction-RZOAF46K.js → addDialogAgentAction-EUBNJ5SS.js} +4 -4
  5. package/{agentDeleteCommand-22K5XPEC.js → agentDeleteCommand-AHCJ2KJ7.js} +14 -14
  6. package/{agentEmailCommands-U56B5FHS.js → agentEmailCommands-JOMRC3W2.js} +30 -30
  7. package/{agentListCommands-D6JN4CL4.js → agentListCommands-6KB4IHQS.js} +16 -16
  8. package/{agentMachineCommands-KTW5UF5B.js → agentMachineCommands-SDRE2NTN.js} +14 -14
  9. package/{agentRecordCommands-TVNB6F7R.js → agentRecordCommands-5YZGXSK7.js} +30 -30
  10. package/{agentRunCommand-ORQVEPWY.js → agentRunCommand-AEY7AB2D.js} +30 -30
  11. package/{agentRuntimeLocal-5ENMNOG5.js → agentRuntimeLocal-COPOV7R7.js} +11 -11
  12. package/{agentSlice-FYVXEVSO.js → agentSlice-TV2HZX2H.js} +5 -5
  13. package/{appDeleteCommands-TCJYBQHN.js → appDeleteCommands-F6M2UEWG.js} +15 -15
  14. package/{appDeployCommands-2O4Y7BB3.js → appDeployCommands-THWNABDT.js} +15 -15
  15. package/{appDeployStatusCommands-M6U7ZLJ7.js → appDeployStatusCommands-A4XSWHFX.js} +15 -15
  16. package/{appGetCommands-H2JW2R4K.js → appGetCommands-62FK5II3.js} +15 -15
  17. package/{appListCommands-MWFD4SXY.js → appListCommands-MQTHZLHV.js} +15 -15
  18. package/{chatQueueReduxAdapter-ZFRURUPP.js → chatQueueReduxAdapter-BK5MJ4TA.js} +11 -11
  19. package/{chunk-KWSQR2KK.js → chunk-3RAG2NAD.js} +5 -1
  20. package/{chunk-DNNSCSA2.js → chunk-4K6DB3GJ.js} +5 -5
  21. package/{chunk-L7B47JXR.js → chunk-4MKPBCTN.js} +1 -1
  22. package/{chunk-2PGGC63K.js → chunk-5TJQUZQ7.js} +1 -1
  23. package/{chunk-4NJEIGBQ.js → chunk-76JAMDUT.js} +2 -2
  24. package/{chunk-CP7VIDZ7.js → chunk-7JS3F5ZR.js} +1 -1
  25. package/{chunk-AQPKZXCQ.js → chunk-7TSLWGZZ.js} +10 -10
  26. package/{chunk-FHAGENAS.js → chunk-AUKZOZFG.js} +1 -1
  27. package/{chunk-UZPQSVM6.js → chunk-B62OSA77.js} +1 -1
  28. package/{chunk-ZZXMGOIJ.js → chunk-FER25LZS.js} +7 -7
  29. package/{chunk-YEI76VEX.js → chunk-FPUHDMMQ.js} +3 -3
  30. package/{chunk-AM3KKSJJ.js → chunk-G6LSVBWG.js} +2 -2
  31. package/{chunk-2WB3CWWX.js → chunk-HHR4KGYD.js} +11 -11
  32. package/{chunk-Q6FPSY5O.js → chunk-HQ3ZLBSI.js} +1 -1
  33. package/{chunk-5RHCYQBK.js → chunk-I7SDLO23.js} +1 -1
  34. package/{chunk-RVWRKFUB.js → chunk-IM5EETJX.js} +2 -2
  35. package/{chunk-KFE6BJJS.js → chunk-IOZR6BLM.js} +3 -3
  36. package/{chunk-37XDGCY7.js → chunk-JWO3RQSH.js} +1 -1
  37. package/{chunk-MBOEV4L2.js → chunk-K647EQV3.js} +1 -1
  38. package/{chunk-4TNFXQTF.js → chunk-K76ZXWUZ.js} +36 -26
  39. package/{chunk-NPZQNQFD.js → chunk-KFOJI4XK.js} +3 -3
  40. package/{chunk-WF4MZQFZ.js → chunk-LNEAO4U2.js} +55 -39
  41. package/{chunk-PGX53HOY.js → chunk-M3HN7RBV.js} +1 -1
  42. package/{chunk-2NVUXKVF.js → chunk-MW4F6TUJ.js} +9 -9
  43. package/{chunk-VMWYBIXG.js → chunk-OPNHMILE.js} +3 -3
  44. package/{chunk-LNFMVJK5.js → chunk-OXZDMKZW.js} +5 -5
  45. package/{chunk-P7OOB7QP.js → chunk-Q4OT2DC7.js} +1 -1
  46. package/{chunk-CTCW7U7N.js → chunk-Q6FF2MCK.js} +1 -1
  47. package/{chunk-PAETKIBR.js → chunk-RIDW26NK.js} +7 -7
  48. package/{chunk-LAFC3B2I.js → chunk-RJ5HQDHL.js} +1 -1
  49. package/{chunk-ROXJVF7X.js → chunk-RXVVFYIF.js} +1 -1
  50. package/{chunk-SOJM57FX.js → chunk-SREASRV5.js} +1 -1
  51. package/{chunk-PEZJEQAO.js → chunk-T7PQFKJU.js} +105 -35
  52. package/{chunk-Z4QSJILV.js → chunk-TDTSQVDX.js} +3 -3
  53. package/{chunk-EIBTZ5WF.js → chunk-TG3YNAWW.js} +2 -2
  54. package/{chunk-JMVS6OB2.js → chunk-TWGLYE3V.js} +21 -21
  55. package/{chunk-N2COMZCD.js → chunk-UFTOGLCE.js} +5 -5
  56. package/{chunk-RJ2SAFB5.js → chunk-V3ZKNK5D.js} +550 -1
  57. package/{chunk-JX5PJCWS.js → chunk-WMRPXIZY.js} +2 -2
  58. package/{chunk-WVP4TZ4A.js → chunk-WTP5HY67.js} +4 -4
  59. package/{contentThunks-NUN6NRHW.js → contentThunks-GJEIIFO7.js} +12 -12
  60. package/{createAgentAutomationAction-3MOAQ3JB.js → createAgentAutomationAction-Q2NJFK36.js} +12 -12
  61. package/{createDialogAction-AYGXU34I.js → createDialogAction-M2XLDVIY.js} +13 -13
  62. package/{createPageAction-Y77VWMIU.js → createPageAction-YALT3K3T.js} +12 -12
  63. package/{dbSlice-IBVOBVMS.js → dbSlice-WL5T2LVF.js} +4 -4
  64. package/{deleteFile-FWP2PSBG.js → deleteFile-LWSR674W.js} +2 -2
  65. package/{dialogCommands-23KV3AP6.js → dialogCommands-LM7MOWRV.js} +15 -15
  66. package/{dialogSlice-FEJXMIMV.js → dialogSlice-UXLPONP7.js} +11 -11
  67. package/{docCreateCommands-7H24OAVG.js → docCreateCommands-VBWFWLUP.js} +14 -14
  68. package/{docDeleteCommands-FUAMVMAV.js → docDeleteCommands-B657OXLD.js} +15 -15
  69. package/{docReadCommands-ZOSN3RRZ.js → docReadCommands-STNB2GJG.js} +14 -14
  70. package/{docStore-5LRRKLQA.js → docStore-VA4ZDSQB.js} +5 -5
  71. package/{docUpdateCommands-Q3FFXNVX.js → docUpdateCommands-KFNCAZNJ.js} +14 -14
  72. package/{handleSendMessageAction-YMQD6VXX.js → handleSendMessageAction-QY3N4ZWZ.js} +11 -11
  73. package/index.js +41 -41
  74. package/{machineCommands-O2SEOXVE.js → machineCommands-4CFWCR6F.js} +29 -29
  75. package/{machineWsRunDispatch-SZ2M5MMG.js → machineWsRunDispatch-37NTQTHK.js} +29 -29
  76. package/{memberThunks-VZI6G7YZ.js → memberThunks-OBDDU3NR.js} +5 -5
  77. package/package.json +1 -1
  78. package/{read-2BYWW7AA.js → read-OOTHDABU.js} +2 -2
  79. package/{readDocTool-LC3A7QTB.js → readDocTool-OU4QXJT6.js} +1 -1
  80. package/{readlineWorkspace-EZ2IKTXS.js → readlineWorkspace-TNK2UNEK.js} +33 -33
  81. package/{removeDialogAgentAction-SFYZXHNK.js → removeDialogAgentAction-BVU6E27N.js} +6 -6
  82. package/{runAgentClientLoop-FJFKDMVZ.js → runAgentClientLoop-K27WYC5U.js} +24 -24
  83. package/{setDialogExtraReferencesAction-Q32RGFTA.js → setDialogExtraReferencesAction-AUKADSTQ.js} +5 -5
  84. package/{setPrimaryDialogAgentAction-BFYJHUJS.js → setPrimaryDialogAgentAction-HMHZWURC.js} +6 -6
  85. package/{settingSlice-IRUU4VFB.js → settingSlice-HIQRILF5.js} +5 -5
  86. package/{spaceCommands-7XAOMP6I.js → spaceCommands-PBYDQ77V.js} +14 -14
  87. package/{streamAgentChatTurn-4O2VTVPB.js → streamAgentChatTurn-CDS3RVB2.js} +26 -26
  88. package/{switchDialogAgentAction-L2KOKCGG.js → switchDialogAgentAction-Y66ZTIGP.js} +4 -4
  89. package/{tools-CHXW6V2S.js → tools-WI4AE3VP.js} +21 -21
  90. package/{tuiSummaryLlmCaller-D7CCLLS7.js → tuiSummaryLlmCaller-VL5RDGLT.js} +7 -7
  91. package/{updateDialogTitleAction-Y4UFJSEB.js → updateDialogTitleAction-EDDSMWSX.js} +12 -12
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  deleteDialog,
8
8
  toast
9
- } from "./chunk-JMVS6OB2.js";
9
+ } from "./chunk-TWGLYE3V.js";
10
10
  import {
11
11
  require_date_fns
12
12
  } from "./chunk-M76ECQRD.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-YDH3FDFQ.js";
16
16
  import {
17
17
  isSystemAdmin
18
- } from "./chunk-VMWYBIXG.js";
18
+ } from "./chunk-OPNHMILE.js";
19
19
  import {
20
20
  asRecordOrEmpty
21
21
  } from "./chunk-KX6YBIHG.js";
@@ -24,7 +24,7 @@ import {
24
24
  addContentAction,
25
25
  checkSpaceMembership,
26
26
  localSpaceAuthorityPatchStamp
27
- } from "./chunk-RVWRKFUB.js";
27
+ } from "./chunk-IM5EETJX.js";
28
28
  import {
29
29
  createSpaceKey,
30
30
  normalizeSpaceId
@@ -38,7 +38,7 @@ import {
38
38
  uploadFileAction,
39
39
  upsertSSREntity,
40
40
  write
41
- } from "./chunk-DNNSCSA2.js";
41
+ } from "./chunk-4K6DB3GJ.js";
42
42
  import {
43
43
  SEPARATOR,
44
44
  createKey,
@@ -67,7 +67,7 @@ import {
67
67
  resolveReplicationServers,
68
68
  scheduleDeleteReplication,
69
69
  scheduleWriteReplication
70
- } from "./chunk-KWSQR2KK.js";
70
+ } from "./chunk-3RAG2NAD.js";
71
71
  import {
72
72
  createClientLogger
73
73
  } from "./chunk-QOKAKDPE.js";
@@ -4097,11 +4097,11 @@ var ENTITY_DELETE_STRATEGIES = {
4097
4097
  await dispatch(deleteTable({ dbKey: key })).unwrap();
4098
4098
  },
4099
4099
  file: async (key, { thunkAPI }) => {
4100
- const { deleteFileAction } = await import("./deleteFile-FWP2PSBG.js");
4100
+ const { deleteFileAction } = await import("./deleteFile-LWSR674W.js");
4101
4101
  await deleteFileAction(key, thunkAPI);
4102
4102
  },
4103
4103
  image: async (key, { thunkAPI }) => {
4104
- const { deleteFileAction } = await import("./deleteFile-FWP2PSBG.js");
4104
+ const { deleteFileAction } = await import("./deleteFile-LWSR674W.js");
4105
4105
  await deleteFileAction(key, thunkAPI);
4106
4106
  },
4107
4107
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_AGENT_BASE_POLICY,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE
4
- } from "./chunk-VMWYBIXG.js";
4
+ } from "./chunk-OPNHMILE.js";
5
5
 
6
6
  // packages/ai/policy/runtimePolicy.ts
7
7
  var clampLevel = (value, fallback) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-ZZXMGOIJ.js";
4
+ } from "./chunk-FER25LZS.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-KWSQR2KK.js";
4
+ } from "./chunk-3RAG2NAD.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-QOKAKDPE.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-P7OOB7QP.js";
10
+ } from "./chunk-Q4OT2DC7.js";
11
11
  import {
12
12
  fetchWithTransientRetry
13
13
  } from "./chunk-5XTOKQLW.js";
@@ -26,6 +26,11 @@ import {
26
26
  resolveLocalDialogDbCandidates,
27
27
  resolveServerDbPath
28
28
  } from "./chunk-GLKOYSRU.js";
29
+ import {
30
+ boundSummaryText,
31
+ buildDialogReadEnvelope,
32
+ projectDialogReadForAgent
33
+ } from "./chunk-V3ZKNK5D.js";
29
34
  import {
30
35
  toErrorMessage
31
36
  } from "./chunk-HNMXYYJR.js";
@@ -204,7 +209,8 @@ var VALUE_FLAGS = /* @__PURE__ */ new Set([
204
209
  "--subject-role",
205
210
  "--token",
206
211
  "--machine-key",
207
- "--user"
212
+ "--user",
213
+ "--max-response-chars"
208
214
  ]);
209
215
  function hasFlag(args, flag) {
210
216
  return args.includes(flag);
@@ -416,6 +422,10 @@ Options:
416
422
  --server <url> Prefer this server when reading by raw dialog id.
417
423
  --token <jwt> Override AUTH_TOKEN.
418
424
  --user <userId> Override dialog owner for raw dialog ids.
425
+ --max-response-chars <n>
426
+ Cap the serialized response for agent/automation callers
427
+ (shared budget projection; oversized fields are head-truncated
428
+ with projection stats). Omit for the default full human export.
419
429
 
420
430
  Reads dialog metadata and messages as JSON.
421
431
  `);
@@ -467,6 +477,12 @@ function readDialogLimitArg(args, fallback) {
467
477
  if (!raw) return fallback;
468
478
  return parsePositiveIntegerOrFallback(raw, fallback);
469
479
  }
480
+ function readDialogMaxResponseCharsArg(args) {
481
+ const raw = readOption(args, "--max-response-chars");
482
+ if (!raw) return null;
483
+ const parsed = Number(raw);
484
+ return Number.isFinite(parsed) && parsed > 0 ? Math.floor(parsed) : null;
485
+ }
470
486
  function readDialogOwnerId(args, env, authToken) {
471
487
  return readOption(args, "--user") ?? env.USER_ID ?? parseUserIdFromAuthToken(authToken) ?? "";
472
488
  }
@@ -1247,12 +1263,66 @@ async function runDialogReadCommand(args, deps = {}) {
1247
1263
  readLocalDialogAtDbPath: deps.readLocalDialogAtDbPath
1248
1264
  });
1249
1265
  const orderedMsgs = Array.isArray(read.msgs) ? [...read.msgs].reverse() : read.msgs;
1250
- const lastAssistantMessage = Array.isArray(orderedMsgs) ? [...orderedMsgs].reverse().find((message) => message?.role === "assistant" || message?.authorRole === "assistant") : null;
1251
- const toolMessages = Array.isArray(orderedMsgs) ? orderedMsgs.filter((message) => message?.role === "tool" || message?.authorRole === "tool") : [];
1266
+ const agentMaxResponseChars = readDialogMaxResponseCharsArg(args);
1267
+ const agentProjection = agentMaxResponseChars && Array.isArray(orderedMsgs) ? projectDialogReadForAgent({
1268
+ meta: read.meta,
1269
+ messages: orderedMsgs,
1270
+ options: { maxResponseChars: agentMaxResponseChars }
1271
+ }) : null;
1272
+ const outputMeta = agentProjection ? agentProjection.meta : read.meta;
1273
+ const outputMsgs = agentProjection ? agentProjection.messages : orderedMsgs;
1274
+ const lastAssistantMessage = Array.isArray(outputMsgs) ? [...outputMsgs].reverse().find((message) => message?.role === "assistant" || message?.authorRole === "assistant") : null;
1275
+ const toolMessages = Array.isArray(outputMsgs) ? outputMsgs.filter((message) => message?.role === "tool" || message?.authorRole === "tool") : [];
1252
1276
  const toolNamesFromMessages = toolMessages.map((message) => toToolName(message?.toolName ?? message?.name)).filter(Boolean);
1253
- const toolsUsed = Array.isArray(read.meta?.toolsUsed) && read.meta.toolsUsed.length > 0 ? read.meta.toolsUsed.map((tool) => toToolName(tool)).filter(Boolean) : uniq(toolNamesFromMessages);
1254
- const writtenFiles = Array.isArray(read.meta?.writtenFiles) && read.meta.writtenFiles.length > 0 ? uniq(asTrimmedNonEmptyStringArray(read.meta.writtenFiles)) : deriveWrittenFiles(toolMessages);
1255
- const toolErrors = Array.isArray(read.meta?.toolErrors) && read.meta.toolErrors.length > 0 ? uniq(asTrimmedNonEmptyStringArray(read.meta.toolErrors)) : deriveToolErrors(toolMessages);
1277
+ const toolsUsed = Array.isArray(outputMeta?.toolsUsed) && outputMeta.toolsUsed.length > 0 ? outputMeta.toolsUsed.map((tool) => toToolName(tool)).filter(Boolean) : uniq(toolNamesFromMessages);
1278
+ const writtenFiles = Array.isArray(outputMeta?.writtenFiles) && outputMeta.writtenFiles.length > 0 ? uniq(asTrimmedNonEmptyStringArray(outputMeta.writtenFiles)) : deriveWrittenFiles(toolMessages);
1279
+ const toolErrors = Array.isArray(outputMeta?.toolErrors) && outputMeta.toolErrors.length > 0 ? uniq(asTrimmedNonEmptyStringArray(outputMeta.toolErrors)) : deriveToolErrors(toolMessages);
1280
+ const toolSummary = {
1281
+ metaToolsCount: toolsUsed.length,
1282
+ metaToolsUnique: [...new Set(toolsUsed)],
1283
+ toolMessageCount: toolMessages.length,
1284
+ toolNamesFromMessages: [...new Set(toolNamesFromMessages)],
1285
+ toolMessageCountsByName: countByName(toolNamesFromMessages)
1286
+ };
1287
+ if (agentProjection && agentMaxResponseChars) {
1288
+ const newestAssistant = Array.isArray(outputMsgs) ? [...outputMsgs].reverse().find(
1289
+ (message) => message?.role === "assistant" || message?.authorRole === "assistant"
1290
+ ) : null;
1291
+ const lastAssistantSummary = newestAssistant ? {
1292
+ role: newestAssistant?.role ?? newestAssistant?.authorRole ?? null,
1293
+ contentHead: boundSummaryText(
1294
+ typeof newestAssistant?.content === "string" ? newestAssistant.content : newestAssistant?.content ? JSON.stringify(newestAssistant.content) : "",
1295
+ 200
1296
+ )
1297
+ } : null;
1298
+ const built = buildDialogReadEnvelope({
1299
+ meta: read.meta,
1300
+ messages: agentProjection.messages,
1301
+ stats: agentProjection.stats,
1302
+ envelope: {
1303
+ source: read.source,
1304
+ base: read.resolvedBase,
1305
+ triedBases: read.candidateBases,
1306
+ httpAttempts: read.attempts,
1307
+ spaceId: target.spaceId ?? null,
1308
+ dialogId: target.dialogId,
1309
+ dialogKey: target.dialogKey,
1310
+ userId: target.userId ?? null,
1311
+ messagesCount: agentProjection.stats.messagesReturned
1312
+ },
1313
+ summary: {
1314
+ writtenFiles,
1315
+ toolsUsed,
1316
+ toolErrors,
1317
+ toolSummary,
1318
+ lastAssistantMessage: lastAssistantSummary
1319
+ },
1320
+ options: { maxResponseChars: agentMaxResponseChars }
1321
+ });
1322
+ output.write(built.serialized);
1323
+ output.write("\n");
1324
+ return 0;
1325
+ }
1256
1326
  output.write(JSON.stringify({
1257
1327
  source: read.source,
1258
1328
  base: read.resolvedBase,
@@ -1262,31 +1332,31 @@ async function runDialogReadCommand(args, deps = {}) {
1262
1332
  dialogId: target.dialogId,
1263
1333
  dialogKey: target.dialogKey,
1264
1334
  userId: target.userId,
1265
- title: read.meta?.title ?? null,
1266
- cybots: Array.isArray(read.meta?.cybots) ? read.meta.cybots : [],
1267
- category: read.meta?.category ?? null,
1268
- inheritedFromDialogKey: read.meta?.inheritedFromDialogKey ?? null,
1269
- inheritedFromDialogTitle: read.meta?.inheritedFromDialogTitle ?? null,
1270
- parentDialogId: read.meta?.parentDialogId ?? null,
1271
- rootDialogId: read.meta?.rootDialogId ?? null,
1272
- triggerType: read.meta?.triggerType ?? null,
1273
- executionMode: read.meta?.executionMode ?? null,
1274
- threadKind: read.meta?.threadKind ?? null,
1275
- presentationIntent: read.meta?.presentationIntent ?? null,
1276
- parentThreadId: read.meta?.parentThreadId ?? null,
1277
- rootThreadId: read.meta?.rootThreadId ?? null,
1278
- runtimeBinding: read.meta?.runtimeBinding ?? null,
1279
- runtimeContext: read.meta?.runtimeContext ?? null,
1280
- parentWake: read.meta?.parentWake ?? null,
1281
- subjectRefs: Array.isArray(read.meta?.subjectRefs) ? read.meta.subjectRefs : [],
1282
- status: read.meta?.status,
1283
- errorMessage: read.meta?.errorMessage ?? null,
1284
- runtimeCheckpoint: read.meta?.runtimeCheckpoint ?? null,
1285
- durationMs: read.meta?.durationMs,
1286
- finishedAt: read.meta?.finishedAt,
1287
- createdAt: read.meta?.createdAt,
1288
- updatedAt: read.meta?.updatedAt,
1289
- artifacts: read.meta?.artifacts ?? null,
1335
+ title: outputMeta?.title ?? null,
1336
+ cybots: Array.isArray(outputMeta?.cybots) ? outputMeta.cybots : [],
1337
+ category: outputMeta?.category ?? null,
1338
+ inheritedFromDialogKey: outputMeta?.inheritedFromDialogKey ?? null,
1339
+ inheritedFromDialogTitle: outputMeta?.inheritedFromDialogTitle ?? null,
1340
+ parentDialogId: outputMeta?.parentDialogId ?? null,
1341
+ rootDialogId: outputMeta?.rootDialogId ?? null,
1342
+ triggerType: outputMeta?.triggerType ?? null,
1343
+ executionMode: outputMeta?.executionMode ?? null,
1344
+ threadKind: outputMeta?.threadKind ?? null,
1345
+ presentationIntent: outputMeta?.presentationIntent ?? null,
1346
+ parentThreadId: outputMeta?.parentThreadId ?? null,
1347
+ rootThreadId: outputMeta?.rootThreadId ?? null,
1348
+ runtimeBinding: outputMeta?.runtimeBinding ?? null,
1349
+ runtimeContext: outputMeta?.runtimeContext ?? null,
1350
+ parentWake: outputMeta?.parentWake ?? null,
1351
+ subjectRefs: Array.isArray(outputMeta?.subjectRefs) ? outputMeta.subjectRefs : [],
1352
+ status: outputMeta?.status,
1353
+ errorMessage: outputMeta?.errorMessage ?? null,
1354
+ runtimeCheckpoint: outputMeta?.runtimeCheckpoint ?? null,
1355
+ durationMs: outputMeta?.durationMs,
1356
+ finishedAt: outputMeta?.finishedAt,
1357
+ createdAt: outputMeta?.createdAt,
1358
+ updatedAt: outputMeta?.updatedAt,
1359
+ artifacts: outputMeta?.artifacts ?? null,
1290
1360
  writtenFiles,
1291
1361
  toolsUsed,
1292
1362
  toolErrors,
@@ -1297,10 +1367,10 @@ async function runDialogReadCommand(args, deps = {}) {
1297
1367
  toolNamesFromMessages: [...new Set(toolNamesFromMessages)],
1298
1368
  toolMessageCountsByName: countByName(toolNamesFromMessages)
1299
1369
  },
1300
- agentReply: read.meta?.agentReply ?? null,
1301
- messagesCount: Array.isArray(orderedMsgs) ? orderedMsgs.length : 0,
1370
+ agentReply: outputMeta?.agentReply ?? null,
1371
+ messagesCount: Array.isArray(outputMsgs) ? outputMsgs.length : 0,
1302
1372
  lastAssistantMessage,
1303
- messages: orderedMsgs
1373
+ messages: outputMsgs
1304
1374
  }, null, 2));
1305
1375
  output.write("\n");
1306
1376
  return 0;
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-DWLEOOGR.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-RVWRKFUB.js";
9
+ } from "./chunk-IM5EETJX.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-DNNSCSA2.js";
12
+ } from "./chunk-4K6DB3GJ.js";
13
13
  import {
14
14
  getRuntimeServerContext
15
- } from "./chunk-KWSQR2KK.js";
15
+ } from "./chunk-3RAG2NAD.js";
16
16
  import {
17
17
  API_ENDPOINTS
18
18
  } from "./chunk-LCBAMY2M.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-2WB3CWWX.js";
3
+ } from "./chunk-HHR4KGYD.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-RXX4GDIH.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-FHAGENAS.js";
15
+ } from "./chunk-AUKZOZFG.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-SPAQ4PVV.js";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-LNFMVJK5.js";
16
+ } from "./chunk-OXZDMKZW.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-4NJEIGBQ.js";
19
+ } from "./chunk-76JAMDUT.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -55,7 +55,7 @@ import {
55
55
  readCacheCreationInputTokens,
56
56
  readCacheReadInputTokens,
57
57
  resolveAutoExecutionProfile
58
- } from "./chunk-Q6FPSY5O.js";
58
+ } from "./chunk-HQ3ZLBSI.js";
59
59
  import {
60
60
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
61
61
  buildCompactionMetricsFromPlan,
@@ -67,7 +67,7 @@ import {
67
67
  normalizeTimingMs,
68
68
  planCompression,
69
69
  serializeMessageContent
70
- } from "./chunk-Z4QSJILV.js";
70
+ } from "./chunk-TDTSQVDX.js";
71
71
  import {
72
72
  estimateTokenCount
73
73
  } from "./chunk-PSCNXBYA.js";
@@ -94,7 +94,7 @@ import {
94
94
  } from "./chunk-5YIL5WDC.js";
95
95
  import {
96
96
  nolotusId
97
- } from "./chunk-VMWYBIXG.js";
97
+ } from "./chunk-OPNHMILE.js";
98
98
  import {
99
99
  asRecordOrEmpty
100
100
  } from "./chunk-KX6YBIHG.js";
@@ -104,7 +104,7 @@ import {
104
104
  remove,
105
105
  selectById,
106
106
  write
107
- } from "./chunk-DNNSCSA2.js";
107
+ } from "./chunk-4K6DB3GJ.js";
108
108
  import {
109
109
  buildDialogAgentListIndexDeleteOps,
110
110
  createDialogMessageKeyAndId,
@@ -129,7 +129,7 @@ import {
129
129
  builtinAgentCatalogEntryById,
130
130
  builtinRuntimeFallbackEntries,
131
131
  isBuiltinPlatformAgentKey
132
- } from "./chunk-L7B47JXR.js";
132
+ } from "./chunk-4MKPBCTN.js";
133
133
  import {
134
134
  extractCustomId,
135
135
  extractUserId,
@@ -145,7 +145,7 @@ import {
145
145
  getRuntimeServerContext,
146
146
  parseOwnerUserIdFromDbKey,
147
147
  scheduleDeleteReplication
148
- } from "./chunk-KWSQR2KK.js";
148
+ } from "./chunk-3RAG2NAD.js";
149
149
  import {
150
150
  createClientLogger,
151
151
  isAbortError
@@ -2887,7 +2887,7 @@ var messageSlice = createSliceWithThunks({
2887
2887
  runtimeOptions: args.runtimeOptions
2888
2888
  });
2889
2889
  if (agentKeyToUse) {
2890
- const { streamAgentChatTurn } = await import("./agentSlice-FYVXEVSO.js");
2890
+ const { streamAgentChatTurn } = await import("./agentSlice-TV2HZX2H.js");
2891
2891
  await dispatch(
2892
2892
  streamAgentChatTurn({
2893
2893
  agentKey: agentKeyToUse,
@@ -4130,7 +4130,7 @@ var deleteOwnedDialogAttachments = async (args) => {
4130
4130
  metadataReadFailures
4131
4131
  });
4132
4132
  if (!plan.deleteCandidates.length) return plan;
4133
- const { deleteFileAction } = await import("./deleteFile-FWP2PSBG.js");
4133
+ const { deleteFileAction } = await import("./deleteFile-LWSR674W.js");
4134
4134
  for (const candidate of plan.deleteCandidates) {
4135
4135
  if (candidate.fileDbKey) {
4136
4136
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -4192,7 +4192,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4192
4192
  }
4193
4193
  if (isCurrentDialog) {
4194
4194
  await thunkApi.dispatch(resetMsgs());
4195
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-FEJXMIMV.js");
4195
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-UXLPONP7.js");
4196
4196
  dispatch(clearPendingAttachments2());
4197
4197
  }
4198
4198
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -4200,39 +4200,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
4200
4200
 
4201
4201
  // packages/chat/dialog/dialogSlice.ts
4202
4202
  var runCreateDialogAction = async (args, thunkApi) => {
4203
- const { createDialogAction } = await import("./createDialogAction-AYGXU34I.js");
4203
+ const { createDialogAction } = await import("./createDialogAction-M2XLDVIY.js");
4204
4204
  return createDialogAction(args, thunkApi);
4205
4205
  };
4206
4206
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
4207
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-3MOAQ3JB.js");
4207
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-Q2NJFK36.js");
4208
4208
  return createAgentAutomationAction(args, thunkApi);
4209
4209
  };
4210
4210
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
4211
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-Y4UFJSEB.js");
4211
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-EDDSMWSX.js");
4212
4212
  return updateDialogTitleAction(args, thunkApi);
4213
4213
  };
4214
4214
  var runAddDialogAgentAction = async (args, thunkApi) => {
4215
- const { addDialogAgentAction } = await import("./addDialogAgentAction-RZOAF46K.js");
4215
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-EUBNJ5SS.js");
4216
4216
  return addDialogAgentAction(args, thunkApi);
4217
4217
  };
4218
4218
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
4219
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-SFYZXHNK.js");
4219
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-BVU6E27N.js");
4220
4220
  return removeDialogAgentAction(args, thunkApi);
4221
4221
  };
4222
4222
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
4223
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-BFYJHUJS.js");
4223
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HMHZWURC.js");
4224
4224
  return setPrimaryDialogAgentAction(args, thunkApi);
4225
4225
  };
4226
4226
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
4227
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-L2KOKCGG.js");
4227
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-Y66ZTIGP.js");
4228
4228
  return switchDialogAgentAction(args, thunkApi);
4229
4229
  };
4230
4230
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
4231
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-Q32RGFTA.js");
4231
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AUKADSTQ.js");
4232
4232
  return setDialogExtraReferencesAction(args, thunkApi);
4233
4233
  };
4234
4234
  var runHandleSendMessageAction = async (args, thunkApi) => {
4235
- const { handleSendMessageAction } = await import("./handleSendMessageAction-YMQD6VXX.js");
4235
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-QY3N4ZWZ.js");
4236
4236
  return handleSendMessageAction(args, thunkApi);
4237
4237
  };
4238
4238
  function clearDialogState() {
@@ -4245,7 +4245,7 @@ var createPageAndAddReference = createAsyncThunk(
4245
4245
  async (payload, { dispatch, getState, rejectWithValue }) => {
4246
4246
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
4247
4247
  try {
4248
- const { createDocState } = await import("./docStore-5LRRKLQA.js");
4248
+ const { createDocState } = await import("./docStore-VA4ZDSQB.js");
4249
4249
  const pageKey = await createDocState(
4250
4250
  { slateData, title },
4251
4251
  { dispatch, getState }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YYLHWIW6.js";
4
4
  import {
5
5
  compareAgentSelection
6
- } from "./chunk-RJ2SAFB5.js";
6
+ } from "./chunk-V3ZKNK5D.js";
7
7
  import {
8
8
  getModelAbility
9
9
  } from "./chunk-6IT5ECCC.js";
@@ -12,9 +12,9 @@ import {
12
12
  ownedAgentKey,
13
13
  publicAgentKey
14
14
  } from "./chunk-BJIRLHJR.js";
15
-
16
- // packages/ai/agent/safeAgentSummary.ts
17
- import { createHash } from "node:crypto";
15
+ import {
16
+ fnv1a32Hex
17
+ } from "./chunk-3RAG2NAD.js";
18
18
 
19
19
  // packages/ai/agent/agentBilling.ts
20
20
  function resolveBillingSource(candidate) {
@@ -207,7 +207,7 @@ function deriveCredentialGroup(ref) {
207
207
  credentialKind: "oauth"
208
208
  };
209
209
  }
210
- const hash = createHash("sha256").update(trimmed).digest("hex").slice(0, 12);
210
+ const hash = fnv1a32Hex(trimmed);
211
211
  return {
212
212
  credentialGroup: `cred-${hash}`,
213
213
  credentialKind: "api-key"