@tangle-network/agent-app 0.60.63 → 0.60.65
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.
- package/dist/{DesignCanvasEditor-3DL3PF6P.js → DesignCanvasEditor-UOOPYYYR.js} +3 -3
- package/dist/VaultPane-XUAGL5SP.js +7 -0
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +5 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-FAU5FIFD.js → chunk-2FLSODOX.js} +3 -2
- package/dist/chunk-2FLSODOX.js.map +1 -0
- package/dist/{chunk-J2O76TTS.js → chunk-7UB4K2R2.js} +27 -15
- package/dist/{chunk-J2O76TTS.js.map → chunk-7UB4K2R2.js.map} +1 -1
- package/dist/{chunk-T2IESIJ7.js → chunk-BMZTYGKE.js} +2 -2
- package/dist/{chunk-N7ZJWESQ.js → chunk-KBTY4AAU.js} +274 -4
- package/dist/chunk-KBTY4AAU.js.map +1 -0
- package/dist/{chunk-S2G5NAWV.js → chunk-KSITU6BQ.js} +4 -4
- package/dist/{chunk-CN5HNTU6.js → chunk-NRG2YHGY.js} +2 -2
- package/dist/{chunk-GNA5I5NM.js → chunk-ORFRFCXQ.js} +53 -22
- package/dist/chunk-ORFRFCXQ.js.map +1 -0
- package/dist/{chunk-O3ZM5QPC.js → chunk-OUW5AI2G.js} +4 -4
- package/dist/chunk-OUW5AI2G.js.map +1 -0
- package/dist/{chunk-M36GXE2W.js → chunk-QXKKS3I4.js} +3 -3
- package/dist/{chunk-Y6LE5CAW.js → chunk-RYUTKTOR.js} +20 -13
- package/dist/chunk-RYUTKTOR.js.map +1 -0
- package/dist/{chunk-QBNV6BJ4.js → chunk-ST3ARHJH.js} +3 -2
- package/dist/chunk-ST3ARHJH.js.map +1 -0
- package/dist/{chunk-4DIO2LTR.js → chunk-TMOYOMSW.js} +5 -5
- package/dist/{chunk-4DIO2LTR.js.map → chunk-TMOYOMSW.js.map} +1 -1
- package/dist/{chunk-J7TCMW2J.js → chunk-XMIV374H.js} +2 -2
- package/dist/{chunk-XCBDWT5H.js → chunk-Z362IHYL.js} +2 -2
- package/dist/{chunk-VUXCM5ZO.js → chunk-ZZACC24K.js} +1 -1
- package/dist/{chunk-VUXCM5ZO.js.map → chunk-ZZACC24K.js.map} +1 -1
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/launch-invariants/cli.js +2 -2
- package/dist/launch-invariants/index.js +1 -1
- package/dist/launch-invariants/testing.js +2 -2
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/sandbox/index.js +4 -4
- package/dist/signoff/cli.js +7 -2
- package/dist/signoff/cli.js.map +1 -1
- package/dist/signoff/index.d.ts +2 -0
- package/dist/signoff/index.js +15 -1
- package/dist/signoff/shell-alignment-cli.d.ts +8 -0
- package/dist/signoff/shell-alignment.d.ts +82 -0
- package/dist/studio-react/index.js +1 -1
- package/dist/theme/brand.generated.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +7 -2
- package/dist/tools/index.js +4 -4
- package/dist/vault/index.js +1 -1
- package/dist/vault/lazy.js +1 -1
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +7 -3
- package/dist/web-react/lazy-load-boundary.d.ts +19 -1
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-export/index.js +30 -9
- package/dist/workspace-export/index.js.map +1 -1
- package/dist/workspace-export/react.js +14 -5
- package/dist/workspace-export/react.js.map +1 -1
- package/package.json +11 -11
- package/dist/VaultPane-A2RGT5PI.js +0 -7
- package/dist/chunk-FAU5FIFD.js.map +0 -1
- package/dist/chunk-GNA5I5NM.js.map +0 -1
- package/dist/chunk-N7ZJWESQ.js.map +0 -1
- package/dist/chunk-O3ZM5QPC.js.map +0 -1
- package/dist/chunk-QBNV6BJ4.js.map +0 -1
- package/dist/chunk-Y6LE5CAW.js.map +0 -1
- /package/dist/{DesignCanvasEditor-3DL3PF6P.js.map → DesignCanvasEditor-UOOPYYYR.js.map} +0 -0
- /package/dist/{VaultPane-A2RGT5PI.js.map → VaultPane-XUAGL5SP.js.map} +0 -0
- /package/dist/{chunk-T2IESIJ7.js.map → chunk-BMZTYGKE.js.map} +0 -0
- /package/dist/{chunk-S2G5NAWV.js.map → chunk-KSITU6BQ.js.map} +0 -0
- /package/dist/{chunk-CN5HNTU6.js.map → chunk-NRG2YHGY.js.map} +0 -0
- /package/dist/{chunk-M36GXE2W.js.map → chunk-QXKKS3I4.js.map} +0 -0
- /package/dist/{chunk-J7TCMW2J.js.map → chunk-XMIV374H.js.map} +0 -0
- /package/dist/{chunk-XCBDWT5H.js.map → chunk-Z362IHYL.js.map} +0 -0
|
@@ -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-
|
|
19
|
+
} from "../chunk-BMZTYGKE.js";
|
|
20
20
|
import "../chunk-UGWQLQDS.js";
|
|
21
21
|
import {
|
|
22
22
|
ToolInputError
|
|
23
|
-
} from "../chunk-
|
|
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
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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 (
|
|
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);
|