@tangle-network/agent-app 0.63.12 → 0.63.14
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/chat-routes/index.js +2 -2
- package/dist/{chunk-U2OZPHGW.js → chunk-562GGG3L.js} +108 -22
- package/dist/chunk-562GGG3L.js.map +1 -0
- package/dist/{chunk-HCCM6SHN.js → chunk-IRD2IVX2.js} +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/public-consultation/index.js +2 -2
- package/dist/sandbox/configuration.d.ts +3 -0
- package/dist/sandbox/foreground-single-flight.d.ts +6 -2
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/request-cancellation.d.ts +6 -0
- package/dist/sandbox/runtime-cache.d.ts +1 -1
- package/dist/sandbox/workspace-boxes.d.ts +2 -1
- package/package.json +1 -1
- package/dist/chunk-U2OZPHGW.js.map +0 -1
- /package/dist/{chunk-HCCM6SHN.js.map → chunk-IRD2IVX2.js.map} +0 -0
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
sandboxPromptRunner,
|
|
32
32
|
streamSandboxPrompt,
|
|
33
33
|
turnStorageBindings
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-562GGG3L.js";
|
|
35
35
|
import {
|
|
36
36
|
addStepFinishUsage,
|
|
37
37
|
assistantRowIdForTurn,
|
|
@@ -3912,4 +3912,4 @@ export {
|
|
|
3912
3912
|
createChatTurnRoutes,
|
|
3913
3913
|
streamChatRouteAsSandboxEvents
|
|
3914
3914
|
};
|
|
3915
|
-
//# sourceMappingURL=chunk-
|
|
3915
|
+
//# sourceMappingURL=chunk-IRD2IVX2.js.map
|
|
@@ -121,9 +121,9 @@ export declare function createPublicConsultation(options: PublicConsultationOpti
|
|
|
121
121
|
executionBudget?: ChatTurnExecutionLimits;
|
|
122
122
|
maxOutputTokens?: number;
|
|
123
123
|
}) => Promise<{
|
|
124
|
+
start?: undefined;
|
|
124
125
|
status: 'unsupported';
|
|
125
126
|
reason: string;
|
|
126
|
-
start?: undefined;
|
|
127
127
|
} | {
|
|
128
128
|
reason?: undefined;
|
|
129
129
|
status: 'prepared';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createChatTurnRoutes,
|
|
3
3
|
streamChatRouteAsSandboxEvents
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IRD2IVX2.js";
|
|
5
5
|
import "../chunk-KH4QSBNI.js";
|
|
6
6
|
import "../chunk-CQGEGPY7.js";
|
|
7
7
|
import "../chunk-RN4WPTBH.js";
|
|
@@ -9,7 +9,7 @@ import "../chunk-WP2GYFZ4.js";
|
|
|
9
9
|
import "../chunk-4DBHC63F.js";
|
|
10
10
|
import "../chunk-MH74DY2I.js";
|
|
11
11
|
import "../chunk-MM6RLOXF.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-562GGG3L.js";
|
|
13
13
|
import "../chunk-F4TUZYMX.js";
|
|
14
14
|
import "../chunk-N6URQ6DM.js";
|
|
15
15
|
import "../chunk-Z4RD5UF7.js";
|
|
@@ -196,6 +196,9 @@ export declare const DEFAULT_SANDBOX_RESOURCES: SandboxResourceConfig;
|
|
|
196
196
|
/** Define options for ensuring a workspace sandbox with provisioning and progress handling */
|
|
197
197
|
export interface EnsureWorkspaceSandboxOptions {
|
|
198
198
|
workspaceId: string;
|
|
199
|
+
/** This caller's lifetime. A cancellation aborts SDK transport and forbids
|
|
200
|
+
* further lifecycle/recovery steps; it does not prove a remote create absent. */
|
|
201
|
+
signal?: AbortSignal;
|
|
199
202
|
userId?: string;
|
|
200
203
|
harness: Harness;
|
|
201
204
|
forceNew?: boolean;
|
|
@@ -49,6 +49,10 @@ export type ForegroundSandboxSingleFlightEvent = {
|
|
|
49
49
|
};
|
|
50
50
|
export interface ForegroundSandboxSingleFlightOptions<T> {
|
|
51
51
|
claim: FencedPrewarmClaimStore;
|
|
52
|
+
/** Cancel this caller's waits. `provision` must forward the same signal to
|
|
53
|
+
* its transport. An aborted owner retains its lease until expiry because a
|
|
54
|
+
* canceled request does not prove the remote lifecycle operation absent. */
|
|
55
|
+
signal?: AbortSignal;
|
|
52
56
|
workspaceId: string;
|
|
53
57
|
harness: Harness;
|
|
54
58
|
/**
|
|
@@ -57,9 +61,9 @@ export interface ForegroundSandboxSingleFlightOptions<T> {
|
|
|
57
61
|
* (`reuseWorkspaceSandbox` is that). The box is used only when no other
|
|
58
62
|
* request holds the lease, because a holder may be changing it.
|
|
59
63
|
*/
|
|
60
|
-
reuse?(): Promise<T | undefined>;
|
|
64
|
+
reuse?(signal?: AbortSignal): Promise<T | undefined>;
|
|
61
65
|
provision(): Promise<T>;
|
|
62
|
-
peek(): Promise<PeekWorkspaceSandboxOutcome>;
|
|
66
|
+
peek(signal?: AbortSignal): Promise<PeekWorkspaceSandboxOutcome>;
|
|
63
67
|
adopt(box: ReadyRunningSandboxOutcome): T | Promise<T>;
|
|
64
68
|
onEvent?(event: ForegroundSandboxSingleFlightEvent): void;
|
|
65
69
|
wait?(ms: number): Promise<void>;
|
package/dist/sandbox/index.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Settle a caller's read/wait promptly. The operation must forward the signal
|
|
2
|
+
* to its transport; this wrapper alone never proves remote absence. Do not use
|
|
3
|
+
* it to abandon a lease acquisition or a lifecycle ownership transition. */
|
|
4
|
+
export declare function awaitSandboxRead<T>(operation: (signal?: AbortSignal) => Promise<T>, signal?: AbortSignal): Promise<T>;
|
|
5
|
+
/** Cancel a polling delay without leaving a default timer or listener. */
|
|
6
|
+
export declare function waitForSandboxPoll(ms: number, signal?: AbortSignal, wait?: (ms: number) => Promise<void>): Promise<void>;
|
|
@@ -28,7 +28,7 @@ export declare function isRecent(at: number | undefined, ttlMs: number, now?: nu
|
|
|
28
28
|
* ensure had probed it and the failure is the box's own.
|
|
29
29
|
*/
|
|
30
30
|
export declare function dropTrustedBox(box: SandboxInstance): boolean;
|
|
31
|
-
export declare function getClientFromCreds(creds: SandboxClientCredentials): Sandbox;
|
|
31
|
+
export declare function getClientFromCreds(creds: SandboxClientCredentials, signal?: AbortSignal): Sandbox;
|
|
32
32
|
/** Resolve a synchronous sandbox client from provided runtime configuration credentials */
|
|
33
33
|
export declare function getClient(shell: SandboxRuntimeConfig): Sandbox;
|
|
34
34
|
/** Reset the process-local sandbox client and liveness-verification caches. */
|
|
@@ -14,7 +14,7 @@ export declare function deleteBox(box: SandboxInstance): Promise<Outcome<void>>;
|
|
|
14
14
|
/** Scope + the client and box key every workspace-scoped sandbox call needs.
|
|
15
15
|
* One place resolves credentials and derives the box name, so the ensure and
|
|
16
16
|
* peek paths cannot drift on which key a workspace's box lives under. */
|
|
17
|
-
export declare function resolveWorkspaceSandboxClient(shell: SandboxRuntimeConfig, workspaceId: string, userId: string | undefined): Promise<{
|
|
17
|
+
export declare function resolveWorkspaceSandboxClient(shell: SandboxRuntimeConfig, workspaceId: string, userId: string | undefined, signal?: AbortSignal): Promise<{
|
|
18
18
|
scope: SandboxScope;
|
|
19
19
|
client: Sandbox;
|
|
20
20
|
name: string;
|
|
@@ -73,4 +73,5 @@ export type PeekWorkspaceSandboxOutcome = {
|
|
|
73
73
|
export declare function peekWorkspaceSandbox(shell: SandboxRuntimeConfig, options: {
|
|
74
74
|
workspaceId: string;
|
|
75
75
|
userId?: string;
|
|
76
|
+
signal?: AbortSignal;
|
|
76
77
|
}): Promise<PeekWorkspaceSandboxOutcome>;
|
package/package.json
CHANGED