@tangle-network/agent-app 0.60.62 → 0.60.64

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 (113) hide show
  1. package/dist/{DesignCanvasEditor-3DL3PF6P.js → DesignCanvasEditor-UOOPYYYR.js} +3 -3
  2. package/dist/VaultPane-XUAGL5SP.js +7 -0
  3. package/dist/agent-profiles/d1.js +3 -3
  4. package/dist/agent-profiles/index.js +3 -3
  5. package/dist/app-auth/index.js +3 -3
  6. package/dist/assistant/index.js +11 -10
  7. package/dist/assistant/index.js.map +1 -1
  8. package/dist/chat-react/index.js +1 -1
  9. package/dist/chat-routes/index.js +16 -16
  10. package/dist/chat-store/index.js +3 -3
  11. package/dist/{chunk-FAU5FIFD.js → chunk-2FLSODOX.js} +3 -2
  12. package/dist/chunk-2FLSODOX.js.map +1 -0
  13. package/dist/chunk-5UQJ7F3P.js +41 -0
  14. package/dist/chunk-5UQJ7F3P.js.map +1 -0
  15. package/dist/{chunk-YXYQ6MJL.js → chunk-5V6VTO5Q.js} +65 -2
  16. package/dist/chunk-5V6VTO5Q.js.map +1 -0
  17. package/dist/chunk-7UB4K2R2.js +470 -0
  18. package/dist/chunk-7UB4K2R2.js.map +1 -0
  19. package/dist/{chunk-T2IESIJ7.js → chunk-BMZTYGKE.js} +2 -2
  20. package/dist/{chunk-2YLSWZ5W.js → chunk-JBEFTXDO.js} +4 -4
  21. package/dist/{chunk-JGZ7WEPL.js → chunk-JC7YSRBR.js} +15 -1
  22. package/dist/chunk-JC7YSRBR.js.map +1 -0
  23. package/dist/{chunk-N7ZJWESQ.js → chunk-KBTY4AAU.js} +274 -4
  24. package/dist/chunk-KBTY4AAU.js.map +1 -0
  25. package/dist/{chunk-S2G5NAWV.js → chunk-KSITU6BQ.js} +4 -4
  26. package/dist/{chunk-CN5HNTU6.js → chunk-NRG2YHGY.js} +2 -2
  27. package/dist/{chunk-GNA5I5NM.js → chunk-ORFRFCXQ.js} +53 -22
  28. package/dist/chunk-ORFRFCXQ.js.map +1 -0
  29. package/dist/{chunk-4WJREKXX.js → chunk-OUW5AI2G.js} +9 -9
  30. package/dist/chunk-OUW5AI2G.js.map +1 -0
  31. package/dist/{chunk-M36GXE2W.js → chunk-QXKKS3I4.js} +3 -3
  32. package/dist/chunk-RYUTKTOR.js +510 -0
  33. package/dist/chunk-RYUTKTOR.js.map +1 -0
  34. package/dist/{chunk-FWLCPAST.js → chunk-SH56N4PV.js} +3 -3
  35. package/dist/{chunk-QBNV6BJ4.js → chunk-ST3ARHJH.js} +3 -2
  36. package/dist/chunk-ST3ARHJH.js.map +1 -0
  37. package/dist/{chunk-4DIO2LTR.js → chunk-TMOYOMSW.js} +5 -5
  38. package/dist/{chunk-4DIO2LTR.js.map → chunk-TMOYOMSW.js.map} +1 -1
  39. package/dist/{chunk-J7TCMW2J.js → chunk-XMIV374H.js} +2 -2
  40. package/dist/{chunk-ZGUXI5SI.js → chunk-XNKLQG26.js} +5 -5
  41. package/dist/{chunk-XCBDWT5H.js → chunk-Z362IHYL.js} +2 -2
  42. package/dist/{chunk-VUXCM5ZO.js → chunk-ZZACC24K.js} +1 -1
  43. package/dist/{chunk-VUXCM5ZO.js.map → chunk-ZZACC24K.js.map} +1 -1
  44. package/dist/design-canvas-react/index.js +6 -6
  45. package/dist/design-canvas-react/lazy.js +1 -1
  46. package/dist/launch-invariants/auth-lookup-cache.d.ts +57 -0
  47. package/dist/launch-invariants/catalog.d.ts +51 -0
  48. package/dist/launch-invariants/cli.d.ts +10 -0
  49. package/dist/launch-invariants/cli.js +88 -0
  50. package/dist/launch-invariants/cli.js.map +1 -0
  51. package/dist/launch-invariants/conformance.d.ts +49 -0
  52. package/dist/launch-invariants/index.d.ts +19 -0
  53. package/dist/launch-invariants/index.js +253 -0
  54. package/dist/launch-invariants/index.js.map +1 -0
  55. package/dist/launch-invariants/limit-alarms.d.ts +66 -0
  56. package/dist/launch-invariants/schedule.d.ts +114 -0
  57. package/dist/launch-invariants/settlement.d.ts +90 -0
  58. package/dist/launch-invariants/sized-reads.d.ts +50 -0
  59. package/dist/launch-invariants/testing.d.ts +175 -0
  60. package/dist/launch-invariants/testing.js +45 -0
  61. package/dist/launch-invariants/testing.js.map +1 -0
  62. package/dist/preset-cloudflare/index.js +2 -2
  63. package/dist/public-consultation/index.js +7 -7
  64. package/dist/sandbox/index.js +4 -4
  65. package/dist/signoff/cli.js +7 -2
  66. package/dist/signoff/cli.js.map +1 -1
  67. package/dist/signoff/index.d.ts +2 -0
  68. package/dist/signoff/index.js +15 -1
  69. package/dist/signoff/shell-alignment-cli.d.ts +8 -0
  70. package/dist/signoff/shell-alignment.d.ts +82 -0
  71. package/dist/stream/index.d.ts +1 -0
  72. package/dist/stream/index.js +9 -5
  73. package/dist/stream/orphaned-turns.d.ts +56 -0
  74. package/dist/stream/turn-buffer.d.ts +12 -0
  75. package/dist/studio-react/index.js +1 -1
  76. package/dist/teams/invitations-api.js +3 -3
  77. package/dist/theme/brand.generated.d.ts +1 -1
  78. package/dist/theme/index.js +1 -1
  79. package/dist/theme/tokens.css +7 -2
  80. package/dist/tools/index.js +4 -4
  81. package/dist/turn-health/index.js +6 -17
  82. package/dist/turn-health/index.js.map +1 -1
  83. package/dist/turn-stream/index.js +1 -1
  84. package/dist/vault/index.js +1 -1
  85. package/dist/vault/lazy.js +1 -1
  86. package/dist/web-react/index.d.ts +1 -1
  87. package/dist/web-react/index.js +19 -15
  88. package/dist/web-react/lazy-load-boundary.d.ts +19 -1
  89. package/dist/work-product/index.js +2 -2
  90. package/dist/workspace-export/index.js +30 -9
  91. package/dist/workspace-export/index.js.map +1 -1
  92. package/dist/workspace-export/react.js +14 -5
  93. package/dist/workspace-export/react.js.map +1 -1
  94. package/package.json +23 -12
  95. package/dist/VaultPane-A2RGT5PI.js +0 -7
  96. package/dist/chunk-4WJREKXX.js.map +0 -1
  97. package/dist/chunk-FAU5FIFD.js.map +0 -1
  98. package/dist/chunk-GNA5I5NM.js.map +0 -1
  99. package/dist/chunk-JGZ7WEPL.js.map +0 -1
  100. package/dist/chunk-N7ZJWESQ.js.map +0 -1
  101. package/dist/chunk-QBNV6BJ4.js.map +0 -1
  102. package/dist/chunk-YXYQ6MJL.js.map +0 -1
  103. /package/dist/{DesignCanvasEditor-3DL3PF6P.js.map → DesignCanvasEditor-UOOPYYYR.js.map} +0 -0
  104. /package/dist/{VaultPane-A2RGT5PI.js.map → VaultPane-XUAGL5SP.js.map} +0 -0
  105. /package/dist/{chunk-T2IESIJ7.js.map → chunk-BMZTYGKE.js.map} +0 -0
  106. /package/dist/{chunk-2YLSWZ5W.js.map → chunk-JBEFTXDO.js.map} +0 -0
  107. /package/dist/{chunk-S2G5NAWV.js.map → chunk-KSITU6BQ.js.map} +0 -0
  108. /package/dist/{chunk-CN5HNTU6.js.map → chunk-NRG2YHGY.js.map} +0 -0
  109. /package/dist/{chunk-M36GXE2W.js.map → chunk-QXKKS3I4.js.map} +0 -0
  110. /package/dist/{chunk-FWLCPAST.js.map → chunk-SH56N4PV.js.map} +0 -0
  111. /package/dist/{chunk-J7TCMW2J.js.map → chunk-XMIV374H.js.map} +0 -0
  112. /package/dist/{chunk-ZGUXI5SI.js.map → chunk-XNKLQG26.js.map} +0 -0
  113. /package/dist/{chunk-XCBDWT5H.js.map → chunk-Z362IHYL.js.map} +0 -0
@@ -139,17 +139,26 @@ import {
139
139
  withoutRecordGridCreated,
140
140
  withoutRecordGridRemoved,
141
141
  withoutRecordGridUpdate
142
- } from "../chunk-4WJREKXX.js";
142
+ } from "../chunk-OUW5AI2G.js";
143
143
  import {
144
144
  SessionHistoryPanel,
145
145
  formatSessionTimestamp,
146
146
  useInfiniteScroll,
147
147
  useSessionActions,
148
148
  useSessionHistory
149
- } from "../chunk-FAU5FIFD.js";
149
+ } from "../chunk-2FLSODOX.js";
150
150
  import {
151
151
  MENTION_PILL_CLASS
152
152
  } from "../chunk-3HUFJ5LO.js";
153
+ import {
154
+ WorkspaceInitial,
155
+ WorkspaceSwitcher
156
+ } from "../chunk-KHCJKVQN.js";
157
+ import "../chunk-XEURJVS5.js";
158
+ import {
159
+ tabTerminalConnectionId,
160
+ useSandboxTerminalConnection
161
+ } from "../chunk-E4AY62T2.js";
153
162
  import "../chunk-FBVLEGEG.js";
154
163
  import {
155
164
  EvidenceLineageTable,
@@ -181,17 +190,14 @@ import {
181
190
  filterAcceptedFiles,
182
191
  formatDictationElapsed,
183
192
  isAcceptedFileType,
193
+ lazyRoute,
184
194
  pickDictationMimeType,
195
+ preloadWhenIdle,
185
196
  renamePastedImages,
186
197
  useComposerAttachments,
187
198
  useDictation
188
- } from "../chunk-GNA5I5NM.js";
199
+ } from "../chunk-ORFRFCXQ.js";
189
200
  import "../chunk-L7MB2LLM.js";
190
- import {
191
- WorkspaceInitial,
192
- WorkspaceSwitcher
193
- } from "../chunk-KHCJKVQN.js";
194
- import "../chunk-XEURJVS5.js";
195
201
  import "../chunk-NJDQ2JCP.js";
196
202
  import {
197
203
  DEFAULT_EFFORT_LEVELS,
@@ -210,10 +216,6 @@ import {
210
216
  usePending,
211
217
  usePopover
212
218
  } from "../chunk-HG4OONJA.js";
213
- import {
214
- tabTerminalConnectionId,
215
- useSandboxTerminalConnection
216
- } from "../chunk-E4AY62T2.js";
217
219
  import "../chunk-SJWIZT7B.js";
218
220
  import {
219
221
  ProviderLogo
@@ -234,7 +236,7 @@ import {
234
236
  isChatAttachmentPart,
235
237
  mentionInputToPart,
236
238
  mentionPartsFromMessageParts
237
- } from "../chunk-2YLSWZ5W.js";
239
+ } from "../chunk-JBEFTXDO.js";
238
240
  import "../chunk-ZVEEWGDK.js";
239
241
  import {
240
242
  DISPATCH_MAX_MEDIA_PARTS,
@@ -260,7 +262,8 @@ import {
260
262
  import "../chunk-TXD5HXLE.js";
261
263
  import {
262
264
  attachmentPartKey
263
- } from "../chunk-ZGUXI5SI.js";
265
+ } from "../chunk-XNKLQG26.js";
266
+ import "../chunk-LQYIBL3G.js";
264
267
  import {
265
268
  INTERACTION_CANCEL_EVENT,
266
269
  INTERACTION_EVENT,
@@ -286,7 +289,6 @@ import {
286
289
  questionInteractionContentSignature,
287
290
  stampInteractionAnswers
288
291
  } from "../chunk-6VQCFJWP.js";
289
- import "../chunk-LQYIBL3G.js";
290
292
  export {
291
293
  AGENT_PROFILE_EDITOR_SECTIONS,
292
294
  ATTACHMENT_ACCEPT,
@@ -448,6 +450,7 @@ export {
448
450
  isTerminalInteractionStatus,
449
451
  isTurnPhaseEvent,
450
452
  lateAnswerMessage,
453
+ lazyRoute,
451
454
  loadAttachmentFile,
452
455
  loadingProvenanceSources,
453
456
  mediaTypeForMentionPath,
@@ -467,6 +470,7 @@ export {
467
470
  pendingApprovalOf,
468
471
  persistedPartToInteraction,
469
472
  pickDictationMimeType,
473
+ preloadWhenIdle,
470
474
  projectRecordGridRows,
471
475
  provenanceBasisMeta,
472
476
  provenanceGaps,
@@ -1,4 +1,4 @@
1
- import { Component, type ReactNode } from 'react';
1
+ import { Component, type ComponentType, type ReactElement, type ReactNode } from 'react';
2
2
  interface LazyLoadBoundaryProps {
3
3
  children: ReactNode;
4
4
  renderFailure: (error: unknown) => ReactNode;
@@ -25,4 +25,22 @@ export interface RouteChunkBoundaryProps {
25
25
  }
26
26
  /** Wrap a lazy route and its Suspense fallback; recovery requests a fresh document URL. */
27
27
  export declare function RouteChunkBoundary({ children, autoReloadOnChunkError }: RouteChunkBoundaryProps): import("react").JSX.Element;
28
+ /**
29
+ * A lazily loaded route that renders synchronously once its module has loaded.
30
+ *
31
+ * `React.lazy` calls its loader only on first render, so even an already
32
+ * downloaded chunk suspends once, and React holds that Suspense retry for its
33
+ * ~300 ms fallback throttle. Hospitality measured 305 ms before the first data
34
+ * read on every first visit to a lazy route, with the chunk already cached.
35
+ * Each mount decides once which component it renders, so a route mounted
36
+ * before its module arrived keeps its state when it re-renders later.
37
+ */
38
+ export type LazyRoute<P extends object> = ((props: P) => ReactElement) & {
39
+ preload: () => Promise<void>;
40
+ };
41
+ export declare function lazyRoute<P extends object>(load: () => Promise<ComponentType<P>>): LazyRoute<P>;
42
+ /** Load routes while the browser is idle (at most `timeoutMs` later), so a first visit waits only on its data. */
43
+ export declare function preloadWhenIdle(routes: ReadonlyArray<{
44
+ preload: () => Promise<void>;
45
+ }>, timeoutMs?: number): () => void;
28
46
  export {};
@@ -16,11 +16,11 @@ import {
16
16
  } from "../chunk-3NVVBQ2U.js";
17
17
  import {
18
18
  defineAppTool
19
- } from "../chunk-T2IESIJ7.js";
19
+ } from "../chunk-BMZTYGKE.js";
20
20
  import "../chunk-UGWQLQDS.js";
21
21
  import {
22
22
  ToolInputError
23
- } from "../chunk-4DIO2LTR.js";
23
+ } from "../chunk-TMOYOMSW.js";
24
24
  import {
25
25
  isWorkProductStatus,
26
26
  parseAgentCheckInput,
@@ -319,19 +319,31 @@ function createSecretScanner(options = {}) {
319
319
  if (!final && buffer.length - emitEnd > maxCarry) emitEnd = buffer.length - window;
320
320
  return emitEnd;
321
321
  }
322
+ const block = 256 * 1024;
323
+ let pending = [];
324
+ let pendingLength = 0;
325
+ function drain(controller, final) {
326
+ const buffer = new Uint8Array(carry.length + pendingLength);
327
+ buffer.set(carry, 0);
328
+ let offset = carry.length;
329
+ for (const part of pending) {
330
+ buffer.set(part, offset);
331
+ offset += part.length;
332
+ }
333
+ pending = [];
334
+ pendingLength = 0;
335
+ const emitEnd = scan(buffer, final);
336
+ if (emitEnd > 0) controller.enqueue(buffer.slice(0, emitEnd));
337
+ carry = buffer.slice(emitEnd);
338
+ }
322
339
  return new TransformStream({
323
340
  transform(chunk, controller) {
324
- const buffer = new Uint8Array(carry.length + chunk.length);
325
- buffer.set(carry, 0);
326
- buffer.set(chunk, carry.length);
327
- const emitEnd = scan(buffer, false);
328
- if (emitEnd > 0) controller.enqueue(buffer.slice(0, emitEnd));
329
- carry = buffer.slice(emitEnd);
341
+ pending.push(chunk);
342
+ pendingLength += chunk.length;
343
+ if (pendingLength >= block) drain(controller, false);
330
344
  },
331
345
  flush(controller) {
332
- if (!carry.length) return;
333
- scan(carry, true);
334
- controller.enqueue(carry);
346
+ if (carry.length || pendingLength) drain(controller, true);
335
347
  }
336
348
  });
337
349
  }
@@ -1035,7 +1047,16 @@ function createExportEngine(options) {
1035
1047
  if (unit.status !== "pending") continue;
1036
1048
  if (now() > deadline) break;
1037
1049
  const source = sources.get(unit.name);
1050
+ if (unit.attempts >= MAX_ATTEMPTS) {
1051
+ unit.status = "failed";
1052
+ unit.error ??= "the request exporting this source ended before it finished";
1053
+ job.status = "failed";
1054
+ job.error = `${unit.name}: ${unit.error}`;
1055
+ etag = await saveJob(job, etag);
1056
+ break;
1057
+ }
1038
1058
  unit.attempts += 1;
1059
+ etag = await saveJob(job, etag);
1039
1060
  try {
1040
1061
  if (!source || source.kind !== unit.kind) throw new Error("source is no longer available");
1041
1062
  await runUnit(job, unit, index, source, scanner, deadline);