@tangle-network/agent-app 0.46.51 → 0.46.52

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.
@@ -1,41 +0,0 @@
1
- import type { SandboxInstance } from '@tangle-network/sandbox';
2
- type SandboxSession = ReturnType<SandboxInstance['session']>;
3
- type CreateSessionRequest = Parameters<SandboxInstance['createSession']>[0];
4
- type SendMessageRequest = Parameters<SandboxSession['sendMessage']>[0];
5
- type SendMessageOptions = NonNullable<Parameters<SandboxSession['sendMessage']>[1]>;
6
- type SentSessionMessage = Awaited<ReturnType<SandboxSession['sendMessage']>>;
7
- /** Backend configuration fixed when the Sandbox session is created. */
8
- export type SandboxSessionTurnBackend = CreateSessionRequest['backend'];
9
- /** Message fields forwarded to the Sandbox session lane. */
10
- export type SandboxSessionTurnMessage = Omit<SendMessageRequest, 'turnId'>;
11
- /** Request controls forwarded to the Sandbox session lane. */
12
- export type SandboxSessionTurnSendOptions = SendMessageOptions;
13
- /** Options for admitting one browser-visible turn on the Sandbox message lane. */
14
- export interface AdmitSandboxSessionTurnOptions {
15
- /** Authorized Sandbox instance for the product workspace. */
16
- box: Pick<SandboxInstance, 'createSession'>;
17
- /** Stable session identity shared by the browser and the Workflow. */
18
- sessionId: string;
19
- /** Stable idempotency identity for this logical user turn. */
20
- turnId: string;
21
- /** Backend profile bound to the session at creation. */
22
- backend: SandboxSessionTurnBackend;
23
- /** User message sent through the gateway-visible message lane. */
24
- message: SandboxSessionTurnMessage;
25
- title?: string;
26
- sendOptions?: SandboxSessionTurnSendOptions;
27
- }
28
- /** Plain result safe to return from a durable admission step. */
29
- export interface SandboxSessionTurnAdmission {
30
- sessionId: string;
31
- turnId: string;
32
- receipt: SentSessionMessage;
33
- }
34
- /**
35
- * Create or reuse one Sandbox session, then admit one stable turn.
36
- *
37
- * The Sandbox API owns idempotency for repeated `turnId` values. This helper
38
- * does not keep process-local state, so retries remain safe across Workers.
39
- */
40
- export declare function admitSandboxSessionTurn(options: AdmitSandboxSessionTurnOptions): Promise<SandboxSessionTurnAdmission>;
41
- export {};