@tangle-network/agent-app 0.43.76 → 0.44.1
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/README.md +1 -1
- package/dist/DesignCanvas-Z362I3R3.js +10 -0
- package/dist/{DesignCanvasEditor-FJIVYOA2.js → DesignCanvasEditor-ZFE2W4OJ.js} +4 -4
- package/dist/assets/index.d.ts +4 -4
- package/dist/assets/index.js +223 -11
- package/dist/assets/index.js.map +1 -1
- package/dist/assistant/index.d.ts +7 -7
- package/dist/assistant/index.js +3 -3
- package/dist/assistant/index.js.map +1 -1
- package/dist/{attachment-validation-Dv1A_Puy.d.ts → attachment-validation-DRuLEjAE.d.ts} +1 -1
- package/dist/{auth-_FU8w01b.d.ts → auth-anc7mv2W.d.ts} +2 -2
- package/dist/chat-routes/index.d.ts +14 -11
- package/dist/chat-routes/index.js +16 -17
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-store/index.d.ts +26 -7
- package/dist/chat-store/index.js +14 -5
- package/dist/chat-store/index.js.map +1 -1
- package/dist/{chunk-ROLFDOMJ.js → chunk-4TI7QWLW.js} +3 -3
- package/dist/{chunk-3JUTOVUH.js → chunk-6KMAM7BL.js} +1 -1
- package/dist/chunk-6KMAM7BL.js.map +1 -0
- package/dist/{chunk-WL7XHLDK.js → chunk-ICOHEZK6.js} +77 -5
- package/dist/chunk-ICOHEZK6.js.map +1 -0
- package/dist/{chunk-22GLESKE.js → chunk-O63WWYET.js} +2 -4
- package/dist/chunk-O63WWYET.js.map +1 -0
- package/dist/{chunk-E7N67FYI.js → chunk-Q3FONVAK.js} +5 -5
- package/dist/{chunk-E7N67FYI.js.map → chunk-Q3FONVAK.js.map} +1 -1
- package/dist/{chunk-RXOTWZ4G.js → chunk-TKRI463Z.js} +4 -4
- package/dist/chunk-TKRI463Z.js.map +1 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +123 -4
- package/dist/config/index.js.map +1 -1
- package/dist/{contract-B3h7peV3.d.ts → contract-CEewO6DI.d.ts} +1 -1
- package/dist/design-canvas/index.d.ts +4 -4
- package/dist/design-canvas-react/index.js +7 -7
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/eval/index.js +22 -8
- package/dist/eval/index.js.map +1 -1
- package/dist/{flow-types-CqomVAUN.d.ts → flow-types-CJxEmaRy.d.ts} +1 -1
- package/dist/integrations/index.js +67 -5
- package/dist/integrations/index.js.map +1 -1
- package/dist/interactions/index.d.ts +6 -4
- package/dist/interactions/index.js +1 -2
- package/dist/knowledge/index.js +63 -4
- package/dist/knowledge/index.js.map +1 -1
- package/dist/knowledge-loop/index.d.ts +1 -1
- package/dist/knowledge-loop/index.js +94 -4
- package/dist/knowledge-loop/index.js.map +1 -1
- package/dist/{mcp-BjPqQ-3C.d.ts → mcp-D3qVzbE1.d.ts} +2 -2
- package/dist/{mcp-rpc-BfUOsalw.d.ts → mcp-rpc-CzU5LWWT.d.ts} +1 -1
- package/dist/missions/index.js +1143 -23
- package/dist/missions/index.js.map +1 -1
- package/dist/{model-DmdkIteM.d.ts → model-CdCDfBA9.d.ts} +1 -1
- package/dist/object-store/index.js +113 -8
- package/dist/object-store/index.js.map +1 -1
- package/dist/{parts-2ymE5cs-.d.ts → parts-Co_lFgLI.d.ts} +3 -3
- package/dist/platform/index.d.ts +1 -1
- package/dist/preflight/cli.d.ts +13 -0
- package/dist/preflight/cli.js +50 -0
- package/dist/preflight/cli.js.map +1 -0
- package/dist/preset-cloudflare/index.d.ts +1 -1
- package/dist/preset-cloudflare/index.js +284 -11
- package/dist/preset-cloudflare/index.js.map +1 -1
- package/dist/{queue-C24V13h9.d.ts → queue-CD5-_VTX.d.ts} +1 -1
- package/dist/redact/index.js +116 -8
- package/dist/redact/index.js.map +1 -1
- package/dist/runtime/index.d.ts +19 -111
- package/dist/runtime/index.js +234 -14
- package/dist/runtime/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +3 -3
- package/dist/sandbox/index.js +2 -3
- package/dist/sequences/index.d.ts +4 -4
- package/dist/stream/index.d.ts +4 -4
- package/dist/{stream-normalizer-QYUl4vnl.d.ts → stream-normalizer-DnuqkZvw.d.ts} +2 -2
- package/dist/tangle/index.js +42 -4
- package/dist/tangle/index.js.map +1 -1
- package/dist/teams/index.js +5 -5
- package/dist/teams/invitations-api.js +4 -4
- package/dist/teams-react/index.js +3 -3
- package/dist/theme/index.js +0 -1
- package/dist/tools/index.d.ts +6 -6
- package/dist/tools/index.js +5 -7
- package/dist/trace/index.d.ts +1 -1
- package/dist/trace/index.js +179 -10
- package/dist/trace/index.js.map +1 -1
- package/dist/{turn-buffer-BaSgxVmK.d.ts → turn-buffer-BcPfhr1_.d.ts} +1 -1
- package/dist/turn-stream/index.d.ts +1 -1
- package/dist/{types-CBRyqijY.d.ts → types-BCxK0wyS.d.ts} +1 -1
- package/dist/{types-CEchbvgz.d.ts → types-XIZqIdX1.d.ts} +1 -1
- package/dist/web-react/index.d.ts +10 -10
- package/dist/web-react/index.js +5 -5
- package/dist/work-product/index.d.ts +4 -4
- package/dist/work-product/index.js +735 -15
- package/dist/work-product/index.js.map +1 -1
- package/dist/work-product-react/index.d.ts +1 -1
- package/dist/work-product-react/index.js.map +1 -1
- package/package.json +4 -19
- package/dist/DesignCanvas-UNL34LS2.js +0 -12
- package/dist/chunk-22GLESKE.js.map +0 -1
- package/dist/chunk-3JUTOVUH.js.map +0 -1
- package/dist/chunk-5EQCITY3.js +0 -20
- package/dist/chunk-5EQCITY3.js.map +0 -1
- package/dist/chunk-5SD6HT2V.js +0 -236
- package/dist/chunk-5SD6HT2V.js.map +0 -1
- package/dist/chunk-5TESA4SN.js +0 -74
- package/dist/chunk-5TESA4SN.js.map +0 -1
- package/dist/chunk-6GQ5DKFK.js +0 -920
- package/dist/chunk-6GQ5DKFK.js.map +0 -1
- package/dist/chunk-7ESQUSAC.js +0 -343
- package/dist/chunk-7ESQUSAC.js.map +0 -1
- package/dist/chunk-7LNGJDNA.js +0 -1
- package/dist/chunk-7LNGJDNA.js.map +0 -1
- package/dist/chunk-AP2UXKUK.js +0 -69
- package/dist/chunk-AP2UXKUK.js.map +0 -1
- package/dist/chunk-FA4XR66Y.js +0 -32
- package/dist/chunk-FA4XR66Y.js.map +0 -1
- package/dist/chunk-FKCB5FTD.js +0 -126
- package/dist/chunk-FKCB5FTD.js.map +0 -1
- package/dist/chunk-GPBRL2XR.js +0 -102
- package/dist/chunk-GPBRL2XR.js.map +0 -1
- package/dist/chunk-HRH7ASAG.js +0 -759
- package/dist/chunk-HRH7ASAG.js.map +0 -1
- package/dist/chunk-HYTIHYNV.js +0 -297
- package/dist/chunk-HYTIHYNV.js.map +0 -1
- package/dist/chunk-LGBO24FL.js +0 -190
- package/dist/chunk-LGBO24FL.js.map +0 -1
- package/dist/chunk-NLSSFLLS.js +0 -1168
- package/dist/chunk-NLSSFLLS.js.map +0 -1
- package/dist/chunk-OSMNYPOG.js +0 -129
- package/dist/chunk-OSMNYPOG.js.map +0 -1
- package/dist/chunk-QYOD3K56.js +0 -124
- package/dist/chunk-QYOD3K56.js.map +0 -1
- package/dist/chunk-RXOTWZ4G.js.map +0 -1
- package/dist/chunk-UAKFCMWK.js +0 -1
- package/dist/chunk-UAKFCMWK.js.map +0 -1
- package/dist/chunk-UKTYKG57.js +0 -48
- package/dist/chunk-UKTYKG57.js.map +0 -1
- package/dist/chunk-UOAYS72M.js +0 -80
- package/dist/chunk-UOAYS72M.js.map +0 -1
- package/dist/chunk-WL7XHLDK.js.map +0 -1
- package/dist/composer/index.d.ts +0 -2
- package/dist/composer/index.js +0 -22
- package/dist/composer/index.js.map +0 -1
- package/dist/core-7qIM7svy.d.ts +0 -21
- package/dist/durable-chat/index.d.ts +0 -464
- package/dist/durable-chat/index.js +0 -59
- package/dist/durable-chat/index.js.map +0 -1
- package/dist/index.d.ts +0 -51
- package/dist/index.js +0 -827
- package/dist/index.js.map +0 -1
- /package/dist/{DesignCanvas-UNL34LS2.js.map → DesignCanvas-Z362I3R3.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-FJIVYOA2.js.map → DesignCanvasEditor-ZFE2W4OJ.js.map} +0 -0
- /package/dist/{chunk-ROLFDOMJ.js.map → chunk-4TI7QWLW.js.map} +0 -0
|
@@ -1,464 +0,0 @@
|
|
|
1
|
-
import { a as ChatInteraction, h as InteractionAnswerValue, l as InteractionRequestWire, j as InteractionCancelData, k as InteractionPersistedPart } from '../contract-B3h7peV3.js';
|
|
2
|
-
import { ChatPlan } from '../plans/index.js';
|
|
3
|
-
import { DurableInteractionRouteArgs, DurableInteractionRoutePersistence } from '../interactions/index.js';
|
|
4
|
-
import '@tangle-network/agent-interface';
|
|
5
|
-
|
|
6
|
-
/** Define error codes representing possible Durable Chat failure scenarios */
|
|
7
|
-
type DurableChatErrorCode = 'DURABLE_CHAT_BAD_REQUEST' | 'DURABLE_CHAT_UNAUTHORIZED' | 'DURABLE_CHAT_CONFLICT' | 'DURABLE_CHAT_UNAVAILABLE' | 'DURABLE_CHAT_GONE' | 'DURABLE_CHAT_NOT_FOUND';
|
|
8
|
-
/** Typed, fail-loud errors for adapters and route seams. */
|
|
9
|
-
declare class DurableChatError extends Error {
|
|
10
|
-
readonly code: DurableChatErrorCode;
|
|
11
|
-
readonly status: number;
|
|
12
|
-
readonly details?: unknown;
|
|
13
|
-
constructor(code: DurableChatErrorCode, message: string, status: number, details?: unknown);
|
|
14
|
-
}
|
|
15
|
-
/** Represent conflict errors occurring in durable chat state management */
|
|
16
|
-
declare class DurableChatConflictError extends DurableChatError {
|
|
17
|
-
constructor(message?: string, details?: unknown);
|
|
18
|
-
}
|
|
19
|
-
/** Represent unavailable durable chat authority errors with status code 503 */
|
|
20
|
-
declare class DurableChatUnavailableError extends DurableChatError {
|
|
21
|
-
constructor(message?: string, details?: unknown);
|
|
22
|
-
}
|
|
23
|
-
/** Represent durable chat errors indicating the chat plan is no longer available */
|
|
24
|
-
declare class DurableChatGoneError extends DurableChatError {
|
|
25
|
-
constructor(message?: string, details?: unknown);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** An authorization-derived tenant/thread scope. Consumers should only
|
|
29
|
-
* create this value after authenticating the request; the route never accepts
|
|
30
|
-
* an identity or scope from the request body. */
|
|
31
|
-
type DurableChatScope = string & {
|
|
32
|
-
readonly __durableChatScope: unique symbol;
|
|
33
|
-
};
|
|
34
|
-
/** Create a durable chat scope from a non-empty string value */
|
|
35
|
-
declare function createDurableChatScope(value: string): DurableChatScope;
|
|
36
|
-
/** Resolve a valid durable chat scope key from the given scope input */
|
|
37
|
-
declare function durableChatScopeKey(scope: DurableChatScope): string;
|
|
38
|
-
/** Represent durable plan outcomes as either approved or rejected */
|
|
39
|
-
type DurablePlanDecision = 'approved' | 'rejected';
|
|
40
|
-
/** Resolve durable plan authority decisions including approval, rejection, or predefined durable decisions */
|
|
41
|
-
type DurablePlanAuthorityDecision = DurablePlanDecision | 'approve' | 'reject';
|
|
42
|
-
/** Projection retained by a durable store. It is intentionally compatible
|
|
43
|
-
* with the browser `/plans` projection and adds no product-specific fields. */
|
|
44
|
-
type DurablePlanProjection = ChatPlan & {
|
|
45
|
-
metadata?: Record<string, unknown>;
|
|
46
|
-
decidedBy?: string;
|
|
47
|
-
};
|
|
48
|
-
/** Represent a unique identifier key for durable plan commands */
|
|
49
|
-
type DurablePlanCommandKey = string;
|
|
50
|
-
/** Define possible states for a durable plan command in its lifecycle */
|
|
51
|
-
type DurablePlanCommandState = 'claimed' | 'authority_committed' | 'finalized' | 'conflicted';
|
|
52
|
-
/** Define the structure for recording durable plan commands with associated metadata and state information */
|
|
53
|
-
interface DurablePlanCommandRecord {
|
|
54
|
-
scope: DurableChatScope;
|
|
55
|
-
planId: string;
|
|
56
|
-
revision: number;
|
|
57
|
-
decision: DurablePlanDecision;
|
|
58
|
-
commandKey: DurablePlanCommandKey;
|
|
59
|
-
authorityIdempotencyKey: string;
|
|
60
|
-
state: DurablePlanCommandState;
|
|
61
|
-
claimedAt: string;
|
|
62
|
-
authorityResult?: DurablePlanAuthorityResult;
|
|
63
|
-
receipt?: DurableFollowUpReceipt;
|
|
64
|
-
conflict?: string;
|
|
65
|
-
}
|
|
66
|
-
/** Represent the current authoritative state and optional receipt of a durable plan authority */
|
|
67
|
-
interface DurablePlanAuthorityCurrentResult {
|
|
68
|
-
/** Authoritative state. `null` means the authority has forgotten the plan. */
|
|
69
|
-
plan: DurablePlanProjection | null;
|
|
70
|
-
receipt?: DurableFollowUpReceipt;
|
|
71
|
-
}
|
|
72
|
-
/** Define a durable receipt capturing stable identifiers and state for follow-up decisions */
|
|
73
|
-
interface DurableFollowUpReceipt {
|
|
74
|
-
/** Stable for a scope + plan + revision + decision. */
|
|
75
|
-
receiptId: string;
|
|
76
|
-
planId: string;
|
|
77
|
-
revision: number;
|
|
78
|
-
decision: DurablePlanDecision;
|
|
79
|
-
turnId: string;
|
|
80
|
-
state: string;
|
|
81
|
-
/** Authority's stable idempotency key, useful when reconciling. */
|
|
82
|
-
authorityIdempotencyKey: string;
|
|
83
|
-
}
|
|
84
|
-
/** Describe the outcome of an authority's durable plan decision including follow-up and metadata */
|
|
85
|
-
interface DurablePlanAuthorityResult {
|
|
86
|
-
/** Authority's final plan projection. */
|
|
87
|
-
plan: DurablePlanProjection;
|
|
88
|
-
/** Sandbox-style follow-up result. */
|
|
89
|
-
followUp: {
|
|
90
|
-
turnId: string;
|
|
91
|
-
state: string;
|
|
92
|
-
};
|
|
93
|
-
/** True when the authority served a previously committed decision. */
|
|
94
|
-
idempotent?: boolean;
|
|
95
|
-
/** Stable authority operation id, if the provider has one. */
|
|
96
|
-
authorityId?: string;
|
|
97
|
-
receipt?: DurableFollowUpReceipt;
|
|
98
|
-
}
|
|
99
|
-
/** Structural port to Sandbox (or another durable plan authority). */
|
|
100
|
-
interface DurablePlanAuthority {
|
|
101
|
-
current(args: {
|
|
102
|
-
scope: DurableChatScope;
|
|
103
|
-
planId: string;
|
|
104
|
-
revision?: number;
|
|
105
|
-
}): Promise<DurablePlanAuthorityCurrentResult | DurablePlanProjection | null>;
|
|
106
|
-
decide(args: {
|
|
107
|
-
scope: DurableChatScope;
|
|
108
|
-
planId: string;
|
|
109
|
-
revision: number;
|
|
110
|
-
decision: DurablePlanDecision;
|
|
111
|
-
feedback?: string;
|
|
112
|
-
idempotencyKey: string;
|
|
113
|
-
}): Promise<DurablePlanAuthorityResult>;
|
|
114
|
-
}
|
|
115
|
-
/** Define the structure for recording the state and metadata of a durable plan effect */
|
|
116
|
-
interface DurablePlanEffectRecord {
|
|
117
|
-
effectKey: string;
|
|
118
|
-
scope: DurableChatScope;
|
|
119
|
-
planId: string;
|
|
120
|
-
revision: number;
|
|
121
|
-
decision: DurablePlanDecision;
|
|
122
|
-
state: 'claimed' | 'completed' | 'error';
|
|
123
|
-
claimedAt: string;
|
|
124
|
-
completedAt?: string;
|
|
125
|
-
error?: string;
|
|
126
|
-
}
|
|
127
|
-
/** Manage durable storage and retrieval of plan projections, commands, and effects within a scoped context */
|
|
128
|
-
interface DurablePlanStore {
|
|
129
|
-
getPlanProjection(scope: DurableChatScope, planId: string, revision?: number): Promise<DurablePlanProjection | null>;
|
|
130
|
-
putPlanProjection(scope: DurableChatScope, projection: DurablePlanProjection): Promise<void>;
|
|
131
|
-
listPlanProjections?(scope: DurableChatScope, planId?: string): Promise<DurablePlanProjection[]>;
|
|
132
|
-
getPlanCommand(scope: DurableChatScope, commandKey: DurablePlanCommandKey): Promise<DurablePlanCommandRecord | null>;
|
|
133
|
-
claimPlanCommand(scope: DurableChatScope, command: DurablePlanCommandRecord): Promise<{
|
|
134
|
-
status: 'claimed';
|
|
135
|
-
record: DurablePlanCommandRecord;
|
|
136
|
-
} | {
|
|
137
|
-
status: 'existing';
|
|
138
|
-
record: DurablePlanCommandRecord;
|
|
139
|
-
} | {
|
|
140
|
-
status: 'conflict';
|
|
141
|
-
record?: DurablePlanCommandRecord;
|
|
142
|
-
reason: string;
|
|
143
|
-
}>;
|
|
144
|
-
recordPlanAuthorityResult(scope: DurableChatScope, commandKey: DurablePlanCommandKey, result: DurablePlanAuthorityResult, receipt: DurableFollowUpReceipt): Promise<void>;
|
|
145
|
-
finalizePlanCommand(scope: DurableChatScope, commandKey: DurablePlanCommandKey): Promise<void>;
|
|
146
|
-
getPlanEffect(scope: DurableChatScope, effectKey: string): Promise<DurablePlanEffectRecord | null>;
|
|
147
|
-
claimPlanEffect(scope: DurableChatScope, effect: DurablePlanEffectRecord): Promise<{
|
|
148
|
-
status: 'claimed';
|
|
149
|
-
record: DurablePlanEffectRecord;
|
|
150
|
-
} | {
|
|
151
|
-
status: 'existing';
|
|
152
|
-
record: DurablePlanEffectRecord;
|
|
153
|
-
}>;
|
|
154
|
-
completePlanEffect(scope: DurableChatScope, effectKey: string): Promise<void>;
|
|
155
|
-
failPlanEffect(scope: DurableChatScope, effectKey: string, error: string): Promise<void>;
|
|
156
|
-
getInteractionProjection(scope: DurableChatScope, interactionId: string): Promise<DurableInteractionProjection | null>;
|
|
157
|
-
upsertInteractionProjection(scope: DurableChatScope, projection: DurableInteractionProjection): Promise<DurableInteractionProjection>;
|
|
158
|
-
listInteractionProjections?(scope: DurableChatScope): Promise<DurableInteractionProjection[]>;
|
|
159
|
-
getAnswerIntent(scope: DurableChatScope, intentKey: string): Promise<DurableAnswerIntentRecord | null>;
|
|
160
|
-
claimAnswerIntent(scope: DurableChatScope, intent: DurableAnswerIntentRecord): Promise<{
|
|
161
|
-
status: 'claimed';
|
|
162
|
-
record: DurableAnswerIntentRecord;
|
|
163
|
-
} | {
|
|
164
|
-
status: 'existing';
|
|
165
|
-
record: DurableAnswerIntentRecord;
|
|
166
|
-
} | {
|
|
167
|
-
status: 'conflict';
|
|
168
|
-
record?: DurableAnswerIntentRecord;
|
|
169
|
-
reason: string;
|
|
170
|
-
}>;
|
|
171
|
-
acknowledgeAnswerIntent(scope: DurableChatScope, intentKey: string, acknowledgement: DurableInteractionAcknowledgement): Promise<void>;
|
|
172
|
-
/** Atomically settle the interaction projection (including semantic aliases)
|
|
173
|
-
* from the acknowledged intent and mark the intent finalized. */
|
|
174
|
-
finalizeAnswerIntent(scope: DurableChatScope, intentKey: string, guarantee?: DurableInteractionGuarantee): Promise<void>;
|
|
175
|
-
abortAnswerIntent(scope: DurableChatScope, intentKey: string, error: string): Promise<void>;
|
|
176
|
-
}
|
|
177
|
-
/** Alias used by adapters that store all durable chat state in one port. */
|
|
178
|
-
type DurableChatStateStore = DurablePlanStore;
|
|
179
|
-
/** Represent durable storage for plan state management with persistence and reliability guarantees */
|
|
180
|
-
type DurablePlanStateStore = DurablePlanStore;
|
|
181
|
-
/** Pick essential methods to manage and record durable plan command operations */
|
|
182
|
-
type DurablePlanCommandJournal = Pick<DurablePlanStore, 'getPlanCommand' | 'claimPlanCommand' | 'recordPlanAuthorityResult' | 'finalizePlanCommand'>;
|
|
183
|
-
/** Provide durable methods to manage the lifecycle of answer intents in a plan store */
|
|
184
|
-
type DurableAnswerIntentJournal = Pick<DurablePlanStore, 'getAnswerIntent' | 'claimAnswerIntent' | 'acknowledgeAnswerIntent' | 'finalizeAnswerIntent' | 'abortAnswerIntent'>;
|
|
185
|
-
/** Define a durable chat interaction projection with idempotent event tracking and optional tombstone flag */
|
|
186
|
-
interface DurableInteractionProjection extends ChatInteraction {
|
|
187
|
-
/** Sequence/event identity used to make ask replays idempotent. */
|
|
188
|
-
eventId?: string;
|
|
189
|
-
semanticKey?: string;
|
|
190
|
-
/** A cancel-before-ask row is a terminal tombstone. */
|
|
191
|
-
tombstone?: boolean;
|
|
192
|
-
updatedAt?: string;
|
|
193
|
-
}
|
|
194
|
-
/** Define possible states for a durable answer intent lifecycle */
|
|
195
|
-
type DurableAnswerIntentState = 'prepared' | 'acknowledged' | 'finalized' | 'aborted';
|
|
196
|
-
/** Define the structure for recording durable answer intent details and their states */
|
|
197
|
-
interface DurableAnswerIntentRecord {
|
|
198
|
-
scope: DurableChatScope;
|
|
199
|
-
interactionId: string;
|
|
200
|
-
attemptKey: string;
|
|
201
|
-
intentKey: string;
|
|
202
|
-
outcome: 'accepted' | 'declined';
|
|
203
|
-
data?: Record<string, InteractionAnswerValue>;
|
|
204
|
-
state: DurableAnswerIntentState;
|
|
205
|
-
guarantee?: DurableInteractionGuarantee;
|
|
206
|
-
acknowledgement?: DurableInteractionAcknowledgement;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
finalizedAt?: string;
|
|
209
|
-
error?: string;
|
|
210
|
-
}
|
|
211
|
-
/** Represent durable acknowledgement of an interaction with optional authority, status, and timestamp fields */
|
|
212
|
-
interface DurableInteractionAcknowledgement {
|
|
213
|
-
acknowledged: true;
|
|
214
|
-
authorityId?: string;
|
|
215
|
-
status?: string;
|
|
216
|
-
at?: string;
|
|
217
|
-
}
|
|
218
|
-
/** Define interaction durability levels to specify reconciliation or best-effort guarantees */
|
|
219
|
-
type DurableInteractionGuarantee = 'reconciled' | 'best-effort';
|
|
220
|
-
/** Define options for durable interaction settlement including attempt key, guarantee, and timestamp provider */
|
|
221
|
-
interface DurableInteractionSettlementOptions {
|
|
222
|
-
/** Caller-created and stable across retries/reconnects. */
|
|
223
|
-
attemptKey: string;
|
|
224
|
-
guarantee?: DurableInteractionGuarantee;
|
|
225
|
-
now?: () => string;
|
|
226
|
-
}
|
|
227
|
-
/** Manage durable interaction lifecycles by preparing, acknowledging, finalizing, aborting, and reconciling intents */
|
|
228
|
-
interface DurableInteractionSettlement {
|
|
229
|
-
prepare(scope: DurableChatScope, interactionId: string, outcome: 'accepted' | 'declined', data?: Record<string, InteractionAnswerValue>): Promise<DurableAnswerIntentRecord>;
|
|
230
|
-
acknowledge(scope: DurableChatScope, intentKey: string, acknowledgement?: Omit<DurableInteractionAcknowledgement, 'acknowledged'>): Promise<DurableAnswerIntentRecord>;
|
|
231
|
-
finalize(scope: DurableChatScope, intentKey: string): Promise<DurableAnswerIntentRecord>;
|
|
232
|
-
abort(scope: DurableChatScope, intentKey: string, error: string): Promise<DurableAnswerIntentRecord>;
|
|
233
|
-
reconcile(scope: DurableChatScope, intentKey: string): Promise<DurableAnswerIntentRecord | null>;
|
|
234
|
-
}
|
|
235
|
-
/** Normalize input value to a standardized DurablePlanDecision or return null for invalid inputs */
|
|
236
|
-
declare function normalizePlanDecision(value: unknown): DurablePlanDecision | null;
|
|
237
|
-
/** Generate a unique key string for a plan command using plan ID, revision, and decision */
|
|
238
|
-
declare function planCommandKey(planId: string, revision: number, decision: DurablePlanDecision): string;
|
|
239
|
-
/** Generate a unique idempotency key for a plan authority based on scope, plan, revision, and decision */
|
|
240
|
-
declare function planAuthorityIdempotencyKey(scope: DurableChatScope, planId: string, revision: number, decision: DurablePlanDecision): string;
|
|
241
|
-
/** Generate a unique string key representing the effect of a plan decision within a given scope and revision */
|
|
242
|
-
declare function planEffectKey(scope: DurableChatScope, planId: string, revision: number, decision: DurablePlanDecision): string;
|
|
243
|
-
/** Resolve a durable follow-up receipt ensuring idempotency for a given plan decision and revision */
|
|
244
|
-
declare function stablePlanReceipt(scope: DurableChatScope, planId: string, revision: number, decision: DurablePlanDecision, result: Pick<DurablePlanAuthorityResult, 'followUp'>): DurableFollowUpReceipt;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Reference adapter for tests and local development. It is intentionally
|
|
248
|
-
* process-local and non-production: there is no locking across processes,
|
|
249
|
-
* transaction, or crash recovery. Production adapters should implement the
|
|
250
|
-
* same port with a database/Workflow primitive and CAS at every claim.
|
|
251
|
-
*/
|
|
252
|
-
declare class InMemoryDurableChatStateStore implements DurablePlanStore {
|
|
253
|
-
private readonly plans;
|
|
254
|
-
private readonly currentPlans;
|
|
255
|
-
private readonly commands;
|
|
256
|
-
private readonly effects;
|
|
257
|
-
private readonly interactions;
|
|
258
|
-
private readonly interactionSemantic;
|
|
259
|
-
/** Duplicate event ids point at the canonical semantic interaction so all
|
|
260
|
-
* duplicate asks settle through one terminal row/attempt. */
|
|
261
|
-
private readonly interactionAliases;
|
|
262
|
-
private readonly answerIntents;
|
|
263
|
-
private scopePrefix;
|
|
264
|
-
private scopedKey;
|
|
265
|
-
private planKey;
|
|
266
|
-
private currentKey;
|
|
267
|
-
private commandKey;
|
|
268
|
-
private interactionKey;
|
|
269
|
-
private intentKey;
|
|
270
|
-
private effectKey;
|
|
271
|
-
getPlanProjection(scope: DurableChatScope, planId: string, revision?: number): Promise<DurablePlanProjection | null>;
|
|
272
|
-
listPlanProjections(scope: DurableChatScope, planId?: string): Promise<DurablePlanProjection[]>;
|
|
273
|
-
putPlanProjection(scope: DurableChatScope, projection: DurablePlanProjection): Promise<void>;
|
|
274
|
-
getPlanCommand(scope: DurableChatScope, commandKey: DurablePlanCommandKey): Promise<DurablePlanCommandRecord | null>;
|
|
275
|
-
claimPlanCommand(scope: DurableChatScope, command: DurablePlanCommandRecord): Promise<{
|
|
276
|
-
status: "conflict";
|
|
277
|
-
record: DurablePlanCommandRecord;
|
|
278
|
-
reason: string;
|
|
279
|
-
} | {
|
|
280
|
-
status: "claimed";
|
|
281
|
-
record: DurablePlanCommandRecord;
|
|
282
|
-
reason?: undefined;
|
|
283
|
-
} | {
|
|
284
|
-
status: "existing";
|
|
285
|
-
record: DurablePlanCommandRecord;
|
|
286
|
-
reason?: undefined;
|
|
287
|
-
}>;
|
|
288
|
-
recordPlanAuthorityResult(scope: DurableChatScope, commandKey: string, result: DurablePlanAuthorityResult, receipt: DurablePlanCommandRecord['receipt']): Promise<void>;
|
|
289
|
-
finalizePlanCommand(scope: DurableChatScope, commandKey: string): Promise<void>;
|
|
290
|
-
getPlanEffect(scope: DurableChatScope, effectKey: string): Promise<DurablePlanEffectRecord | null>;
|
|
291
|
-
claimPlanEffect(scope: DurableChatScope, effect: DurablePlanEffectRecord): Promise<{
|
|
292
|
-
status: "existing";
|
|
293
|
-
record: DurablePlanEffectRecord;
|
|
294
|
-
} | {
|
|
295
|
-
status: "claimed";
|
|
296
|
-
record: DurablePlanEffectRecord;
|
|
297
|
-
}>;
|
|
298
|
-
completePlanEffect(scope: DurableChatScope, effectKey: string): Promise<void>;
|
|
299
|
-
failPlanEffect(scope: DurableChatScope, effectKey: string, error: string): Promise<void>;
|
|
300
|
-
getInteractionProjection(scope: DurableChatScope, interactionId: string): Promise<DurableInteractionProjection | null>;
|
|
301
|
-
listInteractionProjections(scope: DurableChatScope): Promise<DurableInteractionProjection[]>;
|
|
302
|
-
upsertInteractionProjection(scope: DurableChatScope, projection: DurableInteractionProjection): Promise<DurableInteractionProjection>;
|
|
303
|
-
getAnswerIntent(scope: DurableChatScope, intentKey: string): Promise<DurableAnswerIntentRecord | null>;
|
|
304
|
-
claimAnswerIntent(scope: DurableChatScope, intent: DurableAnswerIntentRecord): Promise<{
|
|
305
|
-
status: "claimed";
|
|
306
|
-
record: DurableAnswerIntentRecord;
|
|
307
|
-
reason?: undefined;
|
|
308
|
-
} | {
|
|
309
|
-
status: "existing";
|
|
310
|
-
record: DurableAnswerIntentRecord;
|
|
311
|
-
reason?: undefined;
|
|
312
|
-
} | {
|
|
313
|
-
status: "conflict";
|
|
314
|
-
record: DurableAnswerIntentRecord;
|
|
315
|
-
reason: string;
|
|
316
|
-
}>;
|
|
317
|
-
acknowledgeAnswerIntent(scope: DurableChatScope, intentKey: string, acknowledgement: DurableAnswerIntentRecord['acknowledgement']): Promise<void>;
|
|
318
|
-
finalizeAnswerIntent(scope: DurableChatScope, intentKey: string, guarantee?: DurableAnswerIntentRecord['guarantee']): Promise<void>;
|
|
319
|
-
abortAnswerIntent(scope: DurableChatScope, intentKey: string, error: string): Promise<void>;
|
|
320
|
-
}
|
|
321
|
-
/** Short aliases retained for adapter authors who call this a durable chat
|
|
322
|
-
* store rather than a state store. Both names refer to the same non-production
|
|
323
|
-
* reference implementation. */
|
|
324
|
-
declare const InMemoryDurableChatStore: typeof InMemoryDurableChatStateStore;
|
|
325
|
-
/** Create an in-memory durable chat state store for managing chat session data efficiently */
|
|
326
|
-
declare function createInMemoryDurableChatStateStore(): InMemoryDurableChatStateStore;
|
|
327
|
-
|
|
328
|
-
/** Apply an ask event. Event ids and semantic signatures make replays safe;
|
|
329
|
-
* a prior cancel creates a tombstone and cannot be resurrected by a late ask. */
|
|
330
|
-
declare function upsertDurableInteractionAsk(store: DurablePlanStore, scope: DurableChatScope, request: InteractionRequestWire, options?: {
|
|
331
|
-
eventId?: string;
|
|
332
|
-
semanticKey?: string;
|
|
333
|
-
now?: () => string;
|
|
334
|
-
}): Promise<DurableInteractionProjection>;
|
|
335
|
-
/** Apply a cancel event. It is valid before the ask arrives and leaves a
|
|
336
|
-
* terminal tombstone so a delayed ask cannot re-open the card. */
|
|
337
|
-
declare function recordDurableInteractionCancel(store: DurablePlanStore, scope: DurableChatScope, interactionId: string, reason?: string, options?: {
|
|
338
|
-
eventId?: string;
|
|
339
|
-
now?: () => string;
|
|
340
|
-
}): Promise<DurableInteractionProjection>;
|
|
341
|
-
/** Record an accepted/declined answer in the projection. The terminal
|
|
342
|
-
* transition is intentionally separate from answer-intent acknowledgement so
|
|
343
|
-
* callers can choose reconciled or best-effort delivery. */
|
|
344
|
-
declare function recordDurableInteractionAnswer(store: DurablePlanStore, scope: DurableChatScope, interactionId: string, outcome: 'accepted' | 'declined', answers?: Record<string, InteractionAnswerValue>, options?: {
|
|
345
|
-
eventId?: string;
|
|
346
|
-
now?: () => string;
|
|
347
|
-
}): Promise<DurableInteractionProjection>;
|
|
348
|
-
/** Define options for creating durable interaction settlement factories including store and optional reconcile authority */
|
|
349
|
-
interface DurableInteractionSettlementFactoryOptions extends DurableInteractionSettlementOptions {
|
|
350
|
-
store: DurablePlanStore;
|
|
351
|
-
/** Optional authority lookup used by `reconcile`; returning null leaves the
|
|
352
|
-
* intent prepared for a later durable retry. */
|
|
353
|
-
reconcileAuthority?: (args: {
|
|
354
|
-
scope: DurableChatScope;
|
|
355
|
-
intent: DurableAnswerIntentRecord;
|
|
356
|
-
}) => Promise<DurableInteractionAcknowledgement | null>;
|
|
357
|
-
}
|
|
358
|
-
/** Additive answer settlement primitive for wiring into `/interactions`.
|
|
359
|
-
* `attemptKey` belongs to the caller and is never generated from user data. */
|
|
360
|
-
declare function createDurableInteractionSettlement(options: DurableInteractionSettlementFactoryOptions): DurableInteractionSettlement;
|
|
361
|
-
/** Stable key helper exported for products implementing their own settlement
|
|
362
|
-
* loop. */
|
|
363
|
-
declare function durableInteractionIntentKey(scope: DurableChatScope, interactionId: string, attemptKey: string): string;
|
|
364
|
-
/** Resolve and upsert a durable interaction ask in the store with optional event and timing parameters */
|
|
365
|
-
declare const applyDurableInteractionAsk: typeof upsertDurableInteractionAsk;
|
|
366
|
-
/** Resolve cancellation of a durable interaction with optional reason and event details */
|
|
367
|
-
declare const applyDurableInteractionCancel: typeof recordDurableInteractionCancel;
|
|
368
|
-
/** Resolve and record the outcome and answers of a durable interaction within the given store and scope */
|
|
369
|
-
declare const applyDurableInteractionAnswer: typeof recordDurableInteractionAnswer;
|
|
370
|
-
|
|
371
|
-
/** Define methods to manage durable interaction projections including upsert, cancel, and materialize operations */
|
|
372
|
-
interface DurableInteractionProjectionAdapter {
|
|
373
|
-
upsertAsk(request: InteractionRequestWire): Promise<void>;
|
|
374
|
-
cancel(cancel: InteractionCancelData): Promise<void>;
|
|
375
|
-
materialize(): Promise<InteractionPersistedPart[]>;
|
|
376
|
-
}
|
|
377
|
-
/** Binds an authorized durable scope/store to interaction lifecycle events. */
|
|
378
|
-
declare function createDurableInteractionProjectionAdapter(options: {
|
|
379
|
-
store: DurablePlanStore;
|
|
380
|
-
scope: DurableChatScope;
|
|
381
|
-
now?: () => string;
|
|
382
|
-
}): DurableInteractionProjectionAdapter;
|
|
383
|
-
/** Resolve chat events and materialize their state into durable records */
|
|
384
|
-
interface DurableChatEventProjection {
|
|
385
|
-
observe(event: unknown): void | Promise<void>;
|
|
386
|
-
materialize(): Array<Record<string, unknown>> | Promise<Array<Record<string, unknown>>>;
|
|
387
|
-
}
|
|
388
|
-
/** Event projector usable with any `ChatTurnRouteProducer` through
|
|
389
|
-
* `withDurableChatProjection`. It tracks this turn's identities so older
|
|
390
|
-
* thread state is not copied into every assistant message. */
|
|
391
|
-
declare function createDurableChatEventProjection(options: {
|
|
392
|
-
store: DurablePlanStore;
|
|
393
|
-
scope: DurableChatScope;
|
|
394
|
-
now?: () => string;
|
|
395
|
-
}): DurableChatEventProjection;
|
|
396
|
-
/** Define a structured response containing scope, settlement, and intent for durable interactions */
|
|
397
|
-
interface PreparedDurableInteractionAnswer {
|
|
398
|
-
scope: DurableChatScope;
|
|
399
|
-
settlement: DurableInteractionSettlement;
|
|
400
|
-
intent: DurableAnswerIntentRecord;
|
|
401
|
-
}
|
|
402
|
-
interface DurableInteractionRoutePersistenceBase {
|
|
403
|
-
store: DurablePlanStore;
|
|
404
|
-
scope(args: DurableInteractionRouteArgs): DurableChatScope | Promise<DurableChatScope>;
|
|
405
|
-
now?: () => string;
|
|
406
|
-
}
|
|
407
|
-
/** Define options for durable interaction route persistence with reconciliation guarantees and authority functions */
|
|
408
|
-
type CreateDurableInteractionRoutePersistenceOptions = (DurableInteractionRoutePersistenceBase & {
|
|
409
|
-
guarantee: 'reconciled';
|
|
410
|
-
reconcileAuthority(args: {
|
|
411
|
-
scope: DurableChatScope;
|
|
412
|
-
intent: DurableAnswerIntentRecord;
|
|
413
|
-
route: DurableInteractionRouteArgs;
|
|
414
|
-
}): Promise<DurableInteractionAcknowledgement | null>;
|
|
415
|
-
}) | (DurableInteractionRoutePersistenceBase & {
|
|
416
|
-
guarantee: 'best-effort';
|
|
417
|
-
reconcileAuthority?: (args: {
|
|
418
|
-
scope: DurableChatScope;
|
|
419
|
-
intent: DurableAnswerIntentRecord;
|
|
420
|
-
route: DurableInteractionRouteArgs;
|
|
421
|
-
}) => Promise<DurableInteractionAcknowledgement | null>;
|
|
422
|
-
});
|
|
423
|
-
/** Ready-to-use bridge from `/interactions` to the durable state port. Only
|
|
424
|
-
* the reconciled variant may claim crash-safe behavior; best-effort is
|
|
425
|
-
* explicit in both its type and persisted intent. */
|
|
426
|
-
declare function createDurableInteractionRoutePersistence(options: CreateDurableInteractionRoutePersistenceOptions): DurableInteractionRoutePersistence<PreparedDurableInteractionAnswer>;
|
|
427
|
-
|
|
428
|
-
/** Resolve authorization status for durable plans using scopes, responses, or nullish values */
|
|
429
|
-
type DurablePlanAuthorization = DurableChatScope | {
|
|
430
|
-
scope: DurableChatScope;
|
|
431
|
-
} | Response | null | undefined;
|
|
432
|
-
/** Define arguments for authorizing durable plan route requests with operation and optional plan ID */
|
|
433
|
-
interface DurablePlanRouteAuthorizeArgs {
|
|
434
|
-
request: Request;
|
|
435
|
-
operation: 'current' | 'decide';
|
|
436
|
-
planId?: string;
|
|
437
|
-
}
|
|
438
|
-
/** Define options for durable plan routing including store, authority, authorization, and idempotent side effect handling */
|
|
439
|
-
interface DurablePlanRouteOptions {
|
|
440
|
-
store: DurablePlanStore;
|
|
441
|
-
authority: DurablePlanAuthority;
|
|
442
|
-
/** Authentication and resource authorization. Scope must be derived by the
|
|
443
|
-
* caller from trusted credentials, never from client JSON. */
|
|
444
|
-
authorize: (args: DurablePlanRouteAuthorizeArgs) => Promise<DurablePlanAuthorization> | DurablePlanAuthorization;
|
|
445
|
-
/** Required idempotent side effect seam. The route claims `effectKey` before
|
|
446
|
-
* calling it; a product must make the callback safe to retry by that key. */
|
|
447
|
-
afterDecision: (args: {
|
|
448
|
-
scope: DurableChatScope;
|
|
449
|
-
plan: DurablePlanProjection;
|
|
450
|
-
receipt: DurableFollowUpReceipt;
|
|
451
|
-
effectKey: string;
|
|
452
|
-
}) => Promise<void> | void;
|
|
453
|
-
now?: () => string;
|
|
454
|
-
logger?: Pick<Console, 'warn' | 'error'>;
|
|
455
|
-
}
|
|
456
|
-
/** Define routes handling durable plan requests with current and decide methods */
|
|
457
|
-
interface DurablePlanRoutes {
|
|
458
|
-
current(request: Request): Promise<Response>;
|
|
459
|
-
decide(request: Request): Promise<Response>;
|
|
460
|
-
}
|
|
461
|
-
/** Build durable plan routes with authorization and effect handling based on provided options */
|
|
462
|
-
declare function createDurablePlanRoutes(options: DurablePlanRouteOptions): DurablePlanRoutes;
|
|
463
|
-
|
|
464
|
-
export { type CreateDurableInteractionRoutePersistenceOptions, type DurableAnswerIntentJournal, type DurableAnswerIntentRecord, type DurableAnswerIntentState, DurableChatConflictError, DurableChatError, type DurableChatErrorCode, type DurableChatEventProjection, DurableChatGoneError, type DurableChatScope, type DurableChatStateStore, DurableChatUnavailableError, type DurableFollowUpReceipt, type DurableInteractionAcknowledgement, type DurableInteractionGuarantee, type DurableInteractionProjection, type DurableInteractionProjectionAdapter, type DurableInteractionSettlement, type DurableInteractionSettlementFactoryOptions, type DurableInteractionSettlementOptions, type DurablePlanAuthority, type DurablePlanAuthorityCurrentResult, type DurablePlanAuthorityDecision, type DurablePlanAuthorityResult, type DurablePlanAuthorization, type DurablePlanCommandJournal, type DurablePlanCommandKey, type DurablePlanCommandRecord, type DurablePlanCommandState, type DurablePlanDecision, type DurablePlanEffectRecord, type DurablePlanProjection, type DurablePlanRouteAuthorizeArgs, type DurablePlanRouteOptions, type DurablePlanRoutes, type DurablePlanStateStore, type DurablePlanStore, InMemoryDurableChatStateStore, InMemoryDurableChatStore, type PreparedDurableInteractionAnswer, applyDurableInteractionAnswer, applyDurableInteractionAsk, applyDurableInteractionCancel, createDurableChatEventProjection, createDurableChatScope, createDurableInteractionProjectionAdapter, createDurableInteractionRoutePersistence, createDurableInteractionSettlement, createDurablePlanRoutes, createInMemoryDurableChatStateStore, durableChatScopeKey, durableInteractionIntentKey, normalizePlanDecision, planAuthorityIdempotencyKey, planCommandKey, planEffectKey, recordDurableInteractionAnswer, recordDurableInteractionCancel, stablePlanReceipt, upsertDurableInteractionAsk };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DurableChatConflictError,
|
|
3
|
-
DurableChatError,
|
|
4
|
-
DurableChatGoneError,
|
|
5
|
-
DurableChatUnavailableError,
|
|
6
|
-
InMemoryDurableChatStateStore,
|
|
7
|
-
InMemoryDurableChatStore,
|
|
8
|
-
applyDurableInteractionAnswer,
|
|
9
|
-
applyDurableInteractionAsk,
|
|
10
|
-
applyDurableInteractionCancel,
|
|
11
|
-
createDurableChatEventProjection,
|
|
12
|
-
createDurableChatScope,
|
|
13
|
-
createDurableInteractionProjectionAdapter,
|
|
14
|
-
createDurableInteractionRoutePersistence,
|
|
15
|
-
createDurableInteractionSettlement,
|
|
16
|
-
createDurablePlanRoutes,
|
|
17
|
-
createInMemoryDurableChatStateStore,
|
|
18
|
-
durableChatScopeKey,
|
|
19
|
-
durableInteractionIntentKey,
|
|
20
|
-
normalizePlanDecision,
|
|
21
|
-
planAuthorityIdempotencyKey,
|
|
22
|
-
planCommandKey,
|
|
23
|
-
planEffectKey,
|
|
24
|
-
recordDurableInteractionAnswer,
|
|
25
|
-
recordDurableInteractionCancel,
|
|
26
|
-
stablePlanReceipt,
|
|
27
|
-
upsertDurableInteractionAsk
|
|
28
|
-
} from "../chunk-6GQ5DKFK.js";
|
|
29
|
-
import "../chunk-3ZK5IJSW.js";
|
|
30
|
-
import "../chunk-YJMCRXQQ.js";
|
|
31
|
-
export {
|
|
32
|
-
DurableChatConflictError,
|
|
33
|
-
DurableChatError,
|
|
34
|
-
DurableChatGoneError,
|
|
35
|
-
DurableChatUnavailableError,
|
|
36
|
-
InMemoryDurableChatStateStore,
|
|
37
|
-
InMemoryDurableChatStore,
|
|
38
|
-
applyDurableInteractionAnswer,
|
|
39
|
-
applyDurableInteractionAsk,
|
|
40
|
-
applyDurableInteractionCancel,
|
|
41
|
-
createDurableChatEventProjection,
|
|
42
|
-
createDurableChatScope,
|
|
43
|
-
createDurableInteractionProjectionAdapter,
|
|
44
|
-
createDurableInteractionRoutePersistence,
|
|
45
|
-
createDurableInteractionSettlement,
|
|
46
|
-
createDurablePlanRoutes,
|
|
47
|
-
createInMemoryDurableChatStateStore,
|
|
48
|
-
durableChatScopeKey,
|
|
49
|
-
durableInteractionIntentKey,
|
|
50
|
-
normalizePlanDecision,
|
|
51
|
-
planAuthorityIdempotencyKey,
|
|
52
|
-
planCommandKey,
|
|
53
|
-
planEffectKey,
|
|
54
|
-
recordDurableInteractionAnswer,
|
|
55
|
-
recordDurableInteractionCancel,
|
|
56
|
-
stablePlanReceipt,
|
|
57
|
-
upsertDurableInteractionAsk
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export { AppToolRuntimeExecutor, CapabilityTokenOptions, DispatchOptions, ExpiringCapabilityTokenOptions, HandleToolRequestOptions, ResolveToolCapabilitiesOptions, ResolvedToolCapabilities, RuntimeExecutorOptions, ToolCapability, ToolInputError, createAppToolRuntimeExecutor, createCapabilityToken, createExpiringCapabilityToken, dispatchAppTool, handleAppToolRequest, outcomeStatus, resolveToolCapabilities, restrictTaxonomy, verifyCapabilityToken, verifyExpiringCapabilityToken } from './tools/index.js';
|
|
2
|
-
export { A as AuthenticateOptions, D as DEFAULT_HEADER_NAMES, T as ToolAuthResult, a as ToolHeaderNames, b as authenticateToolRequest, r as readToolArgs } from './auth-_FU8w01b.js';
|
|
3
|
-
export { A as APP_TOOL_NAMES, a as AddCitationArgs, b as AddCitationResult, c as AppToolContext, d as AppToolDefinition, e as AppToolHandlers, f as AppToolName, g as AppToolOutcome, h as AppToolProducedEvent, i as AppToolTaxonomy, B as BuildAppToolsOptions, O as OpenAIFunctionTool, R as RenderUiArgs, j as RenderUiResult, S as ScheduleFollowupArgs, k as ScheduleFollowupResult, l as SubmitProposalArgs, m as SubmitProposalResult, n as buildAppToolOpenAITools, o as customToolToOpenAI, p as defineAppTool, q as findCustomTool, r as isAppToolName } from './types-CBRyqijY.js';
|
|
4
|
-
export { A as AppToolMcpServer, B as BuildHttpMcpServerOptions, a as BuildMcpServerOptions, D as DEFAULT_APP_TOOL_PATHS, S as ScopedMcpServerEntryOptions, b as buildAppToolMcpServer, c as buildHttpMcpServer, d as buildScopedMcpServerEntry } from './mcp-BjPqQ-3C.js';
|
|
5
|
-
export { C as CreateMcpToolHandlerOptions, M as MCP_PROTOCOL_VERSIONS, a as McpProtocolVersion, b as McpServerInfo, c as McpToolDefinition, d as createMcpToolHandler } from './mcp-rpc-BfUOsalw.js';
|
|
6
|
-
export { BrokerToken, BrokerTokenMinter, BrokerTokenProvider, BrokerTokenProviderOptions, ConsentUrlInput, buildConsentUrl, createBrokerTokenProvider } from './tangle/index.js';
|
|
7
|
-
export { CatalogModel, ModelCatalog, RouterModel, __resetCatalogCache, buildCatalog, fetchModelCatalog, normalizeModelId } from './catalog/index.js';
|
|
8
|
-
export { C as CreateTangleRouterModelConfigOptions, D as DEFAULT_TANGLE_BILLING_ENFORCEMENT_ENV_VAR, a as DEFAULT_TANGLE_ROUTER_BASE_URL, R as ResolveModelOptions, b as ResolveTangleDevOrUserKeyOptions, c as ResolveUserTangleExecutionKeyForUserOptions, d as ResolveUserTangleExecutionKeyOptions, e as ResolvedTangleExecutionKey, T as TangleBillingEnforcementOptions, f as TangleExecutionEnvironment, g as TangleExecutionKeyError, h as TangleExecutionKeyErrorCode, i as TangleExecutionKeyHttpError, j as TangleExecutionKeySource, k as TangleModelConfig, l as createTangleRouterModelConfig, m as isTangleBillingEnforcementDisabled, n as isTangleExecutionKeyError, r as resolveTangleDevOrUserKey, o as resolveTangleExecutionEnvironment, p as resolveTangleModelConfig, q as resolveUserTangleExecutionKey, s as resolveUserTangleExecutionKeyForUser, t as tangleExecutionKeyHttpError, u as trimOrNull } from './model-DmdkIteM.js';
|
|
9
|
-
export { AgentRuntime, AgentRuntimeModelConfig, AgentTurnOptions, AnySurfaceKind, CertifiedDelivery, CertifiedDeliveryConfig, CreateAgentRuntimeOptions, LoopEvent, OpenAICompatStreamTurnOptions, OpenAIStreamChunk, ResolvedAgentProfile, SurfaceKindDefinition, SurfaceMcpServer, SurfaceMergeBase, SurfaceOverlay, SurfacePermissionValue, SurfaceRegistry, createAgentRuntime, createCertifiedDelivery, createOpenAICompatStreamTurn, createSurfaceRegistry, defineSurfaceKind, mergeSurfaceOverlay, toLoopEvents } from './runtime/index.js';
|
|
10
|
-
export { createTokenRecallChecker, producedFromToolEvents } from './eval/index.js';
|
|
11
|
-
export { KnowledgeRequirementSpec, KnowledgeSignal, KnowledgeStateAccessor, SatisfiedByRule, buildKnowledgeRequirements, deriveSignals } from './knowledge/index.js';
|
|
12
|
-
export { CreateKnowledgeLoopDeps, KnowledgeCandidate, KnowledgeDecider, KnowledgeDeciderInput, KnowledgeDecision, KnowledgeGateVerdict, KnowledgeLoop, KnowledgeLoopDriver, createKnowledgeLoop, createReviewerDecider, reviewCandidate } from './knowledge-loop/index.js';
|
|
13
|
-
export { DEFAULT_HARNESS, Harness, KNOWN_HARNESSES, ResolveSessionHarnessInput, ResolvedSessionHarness, assertHarnessModelCompatible, coerceHarness, isHarness, isModelCompatibleWithHarness, resolveSessionHarness, snapHarnessToModel, snapModelToHarness } from './harness/index.js';
|
|
14
|
-
export { AgentAppConfig, AgentIdentityConfig, AgentIntegrationsConfig, AgentKnowledgeConfig, AgentTaxonomyConfig, AgentUiConfig, KnowledgeLoopConfig, KnowledgeSourceSpec, agentAppConfigJsonSchema, defineAgentApp } from './config/index.js';
|
|
15
|
-
export { D1Like, D1PreparedLike, DrizzleColumnLike, DrizzleSqliteCoreLike, PRESET_MIGRATION_SQL, PRESET_TABLES, PresetBillingOptions, PresetKnowledgeAccessorOptions, PresetToolHandlerOptions, VaultKv, createD1KnowledgeStateAccessor, createPresetDrizzleSchema, createPresetFieldCrypto, createPresetToolHandlers, createPresetWorkspaceKeyManager, createPresetWorkspaceKeyStore } from './preset-cloudflare/index.js';
|
|
16
|
-
export { KeyCrypto, KeyProvisioner, PlanLimit, PlatformBalanceInfo, PlatformBalanceManager, PlatformBalanceManagerOptions, PlatformBillingClient, PlatformIdentity, PlatformProductUsage, SharedBillingState, TcloudKeyClient, WorkspaceKeyManager, WorkspaceKeyManagerOptions, WorkspaceKeyRecord, WorkspaceKeyStore, WorkspaceModelKeyUsage, createPlatformBalanceManager, createTcloudKeyProvisioner, createWorkspaceKeyManager } from './billing/index.js';
|
|
17
|
-
export { HttpHeadProbeConfig, PreflightProbe, PreflightProbeResult, PreflightProbeVerdict, PreflightReport, RouterChatProbeConfig, SandboxAuthProbeConfig, formatPreflightReport, httpHeadProbe, routerChatProbe, runPreflight, sandboxAuthProbe } from './preflight/index.js';
|
|
18
|
-
export { ObjectBody, ObjectKeyParts, ObjectStore, PutObjectOptions, R2LikeBucket, R2LikeObjectBody, R2LikeObjectHead, SignObjectUrlArgs, VerifyObjectUrlResult, assertSafeKeySegment, createProxiedArtifactRoute, createR2ObjectStore, objectKey, signObjectUrl, verifyObjectUrl } from './object-store/index.js';
|
|
19
|
-
export { B as BULK_DELETE_MAX_THREADS, C as ChatStoreInputError, t as threadTitleFromMessage } from './core-7qIM7svy.js';
|
|
20
|
-
export { C as ChatAttachmentKind, a as ChatAttachmentPart, b as ChatFilePart, c as ChatImagePart, d as ChatInteractionPart, e as ChatMentionKind, f as ChatMentionPart, g as ChatMessagePart, h as ChatNoticePart, i as ChatPartTime, j as ChatPlanPart, k as ChatReasoningPart, l as ChatStepFinishPart, m as ChatStepStartPart, n as ChatSubtaskPart, o as ChatTextPart, p as ChatToolPart, q as ChatToolState, r as ChatToolStatus, s as ChatUsageTokens, t as ChatWorkProductPart, D as DEFAULT_ATTACHMENT_PROMPT_HEADER, S as StorableHarnessPartKind, u as attachmentInputToPart, v as attachmentKindForMime, w as attachmentPartsFromMessageParts, x as buildAttachmentPromptBlock, y as historyContentWithAttachments, z as isChatAttachmentPart, A as isChatInteractionPart, B as isChatMentionPart, E as isChatPlanPart, F as isChatStepFinishPart, G as isChatTextPart, H as isChatToolPart, I as isChatWorkProductPart, J as mentionInputToPart, K as mentionPartsFromMessageParts, L as toChatMessageParts } from './parts-2ymE5cs-.js';
|
|
21
|
-
export { DeriveKeyOptions, createFieldCrypto, decodeHexKey, decryptAesGcm, decryptBytes, decryptWithKey, deriveKey, encryptAesGcm, encryptBytes, encryptWithKey } from './crypto/index.js';
|
|
22
|
-
export { J as JsonRecord, M as MISSING_TOOL_TERMINAL_ERROR, a as MISSING_TOOL_TERMINAL_REASON, S as StreamEvent, b as asRecord, c as asString, d as attachmentPartKey, e as collapseRedundantTextParts, f as draftAssistantParts, g as encodeEvent, h as finalizeAssistantParts, i as finalizePendingInteractionParts, j as getPartKey, m as mergePersistedPart, n as normalizePersistedPart, k as normalizeTime, l as normalizeToolEvent, r as resolveToolId, o as resolveToolName, t as terminalizeDanglingAssistantToolUpdates, p as terminalizeDanglingToolPart, q as terminalizeDanglingToolParts } from './stream-normalizer-QYUl4vnl.js';
|
|
23
|
-
export { PersistedChatMessageForTurn, ResolvedChatTurn, buildUserTextParts, messageHasTurnId, normalizeClientTurnId, resolveChatTurn } from './stream/index.js';
|
|
24
|
-
export { B as BufferedTurnEvent, a as BufferedTurnOptions, b as BufferedTurnTap, D as D1LikeForTurns, P as PumpBufferedTurnOptions, R as ReplayTurnEventsOptions, T as TURN_EVENTS_MIGRATION_SQL, c as TURN_STATUS_SCOPE_MIGRATION_SQL, d as TurnEventStore, e as TurnStatus, f as coalesceChatStreamEvents, g as coalesceDeltas, h as createBufferedTurnTap, i as createD1TurnEventStore, j as createMemoryTurnEventStore, p as pumpBufferedTurn, r as replayTurnEvents, s as stampReplaySeq } from './turn-buffer-BaSgxVmK.js';
|
|
25
|
-
export { HubExecClient, HubExecClientOptions, HubExecErrorCode, HubExecResult, HubInvokeDeps, HubInvokeInput, HubInvokeOutcome, ParsedIntegrationAction, invokeIntegrationHub, resolveIntegrationAction } from './integrations/index.js';
|
|
26
|
-
export { C as ChatFreeTextField, a as ChatInteraction, b as ChatInteractionField, c as ChatInteractionStatus, d as ChatSelectField, e as ComposerAnswerDelivery, I as INTERACTION_CANCEL_EVENT, f as INTERACTION_EVENT, g as INTERACTION_RESOLVED_EVENT, h as InteractionAnswerValue, i as InteractionAnswers, j as InteractionCancelData, k as InteractionPersistedPart, l as InteractionRequestWire, N as NoticeKind, m as NoticePersistedPart, P as ParseInteractionAnswersResult, n as ParseInteractionResult, o as canTransitionInteractionStatus, p as cancelStatusFor, q as composerAnswerData, r as composerAnswerDeliveries, s as dedupeQuestionInteractionsByContent, t as fieldAcceptsFreeText, u as interactionFromWireRequest, v as interactionPartKey, w as interactionToPersistedPart, x as isRenderableInteractionKind, y as isSafeInteractionFieldKey, z as isTerminalInteractionStatus, A as noticePart, B as noticePartKey, D as parseInteractionAnswers, E as parseInteractionCancel, F as parseInteractionRequest, G as persistedPartToInteraction, H as questionInteractionContentSignature, J as stampInteractionAnswers } from './contract-B3h7peV3.js';
|
|
27
|
-
export { BeforeInteractionAnswerArgs, DurableInteractionRouteArgs, DurableInteractionRoutePersistence, InteractionAnswerBodyValidation, InteractionAnswerRoute, InteractionAnswerRouteOptions, InteractionClientOutcome, InteractionConnectionResolution, InteractionRouteLogger, ResolveInteractionConnectionArgs, SidecarInteractionsConnection, SidecarInteractionsError, SidecarInteractionsResult, createInteractionAnswerRoute, listSessionInteractions, mapInteractionRespondFailure, respondToSessionInteraction, validateInteractionAnswerBody } from './interactions/index.js';
|
|
28
|
-
export { ChatPlan, ChatPlanPersistedPart, ChatPlanStatus, PLAN_SUBMITTED_EVENT, ParsePlanSubmittedResult, canTransitionPlanStatus, parsePlanSubmittedEvent, persistedPartToPlan, planFollowUpTurnId, planPartKey, planRevisionKey, planToPersistedPart } from './plans/index.js';
|
|
29
|
-
export { CreateDurableInteractionRoutePersistenceOptions, DurableAnswerIntentJournal, DurableAnswerIntentRecord, DurableAnswerIntentState, DurableChatConflictError, DurableChatError, DurableChatErrorCode, DurableChatEventProjection, DurableChatGoneError, DurableChatScope, DurableChatStateStore, DurableChatUnavailableError, DurableFollowUpReceipt, DurableInteractionAcknowledgement, DurableInteractionGuarantee, DurableInteractionProjection, DurableInteractionProjectionAdapter, DurableInteractionSettlement, DurableInteractionSettlementFactoryOptions, DurableInteractionSettlementOptions, DurablePlanAuthority, DurablePlanAuthorityCurrentResult, DurablePlanAuthorityDecision, DurablePlanAuthorityResult, DurablePlanAuthorization, DurablePlanCommandJournal, DurablePlanCommandKey, DurablePlanCommandRecord, DurablePlanCommandState, DurablePlanDecision, DurablePlanEffectRecord, DurablePlanProjection, DurablePlanRouteAuthorizeArgs, DurablePlanRouteOptions, DurablePlanRoutes, DurablePlanStateStore, DurablePlanStore, InMemoryDurableChatStateStore, InMemoryDurableChatStore, PreparedDurableInteractionAnswer, applyDurableInteractionAnswer, applyDurableInteractionAsk, applyDurableInteractionCancel, createDurableChatEventProjection, createDurableChatScope, createDurableInteractionProjectionAdapter, createDurableInteractionRoutePersistence, createDurableInteractionSettlement, createDurablePlanRoutes, createInMemoryDurableChatStateStore, durableChatScopeKey, durableInteractionIntentKey, normalizePlanDecision, planAuthorityIdempotencyKey, planCommandKey, planEffectKey, recordDurableInteractionAnswer, recordDurableInteractionCancel, stablePlanReceipt, upsertDurableInteractionAsk } from './durable-chat/index.js';
|
|
30
|
-
export { CompleteMissionInput, CreateMissionInput, DEFAULT_MISSION_STEP_KINDS, InMemoryMissionStore, MISSION_CONTROL_CHANNEL_ID, MissionApprovalsPort, MissionAuditEvent, MissionConcurrencyError, MissionCostLedger, MissionEngine, MissionEngineOptions, MissionEventSink, MissionGateKind, MissionGateOptions, MissionGateProposal, MissionOutcome, MissionPlanRunOptions, MissionProposalResolution, MissionRecord, MissionService, MissionServiceOptions, MissionState, MissionStatus, MissionStep, MissionStepState, MissionStepStatus, MissionStorePort, MissionStreamEvent, MissionStreamStatus, MissionStreamStep, MissionStreamStepStatus, MissionUpdateGuard, MissionUpdatePatch, ParseMissionBlocksOptions, ParsedMission, ParsedMissionStep, PlanOutcome, RetryableStepError, SandboxDispatch, SandboxDispatchDoneResult, SandboxDispatchInProgressResult, SandboxDispatchInput, SandboxDispatchResult, SetStepStatusPatch, StepGateClassification, StepOutcome, applyMissionEvent, asMissionStreamEvent, budgetGateProposalId, buildAgentMissionPlan, createInMemoryMissionStore, createMissionEngine, createMissionService, isMissionStopRequested, isMissionTerminal, mergeMissionState, noopEventSink, parseMissionBlocks, parseSessionStreamEnvelope, reduceMissionEvents, stepGateProposalId, volumeGateProposalId } from './missions/index.js';
|
|
31
|
-
export { S as StepAgentActivity, W as WithAgentActivity, s as stepAgentActivity } from './agent-activity-C8ZG0F0M.js';
|
|
32
|
-
export { A as AgentCheckInput, E as EvidenceEntry, a as EvidenceLocator, b as ExceptionEntry, c as ExceptionSeverity, P as ProfileBacktestSummary, Q as QualityCheck, W as WorkProductArtifact, d as WorkProductAuditEvent, e as WorkProductParseResult, f as WorkProductPatch, g as WorkProductPersistedPart, h as WorkProductProvenance, i as WorkProductRecord, j as WorkProductRef, k as WorkProductStatus, l as WorkProductStorePort, m as WorkProductUpdateGuard, n as WorkProductVersionEntry, o as isWorkProductStatus, p as parseAgentCheckInput, q as parseArtifactInput, r as parseEvidenceInput, s as parseExceptionInput, t as persistedPartToWorkProduct, u as unresolvedBlockingExceptions, w as workProductToPersistedPart } from './types-CEchbvgz.js';
|
|
33
|
-
export { CreateWorkProductInput, EVIDENCE_COVERAGE_CHECK, FinalizeWorkProductProvenanceInput, InMemoryWorkProductStore, MAX_WORK_PRODUCT_BATCH, SubmitWorkProductInput, WorkProductAuthorizeArgs, WorkProductOutcome, WorkProductProvenanceBase, WorkProductRouteAuthorization, WorkProductRoutes, WorkProductRoutesOptions, WorkProductService, WorkProductServiceOptions, WorkProductToolConfig, WorkProductVerdictBody, WorkProductVerdictInput, buildWorkProductTools, canTransitionWorkProduct, createInMemoryWorkProductStore, createWorkProductRoutes, createWorkProductService, finalizeWorkProductProvenance, isWorkProductTerminal, stampProvenance, validateWorkProductVerdictBody, workProductTrustInputs } from './work-product/index.js';
|
|
34
|
-
export { R as ReviewQueueInputs, a as ReviewQueueItem, b as ReviewQueuePendingAsk, c as ReviewQueueState, d as ReviewQueueThread, p as parseReviewQueueItem, e as projectReviewQueue } from './queue-C24V13h9.js';
|
|
35
|
-
export { AppToolDescriptor, AuthenticatedSandboxUser, BuildAppToolMcpServersOptions, BuildSandboxToolFileMountsOptions, DEFAULT_SANDBOX_RESOURCES, DriveSandboxTurnOptions, ENV_TOTAL_MAX_BYTES, ENV_VALUE_MAX_BYTES, EnsureWorkspaceSandboxOptions, LivenessProbeConfig, MemberSyncSeam, Outcome, PROVISION_PAYLOAD_MAX_BYTES, PeekWorkspaceSandboxOutcome, ProfileComposeOptions, PromptInputPart, ProviderResolutionConfig, ProvisionPayloadSections, ProvisionProfileSection, ResolveSandboxClientCredentialsOptions, ResolvedModel, SandboxApiCredentials, SandboxBuildContext, SandboxClientCredentials, SandboxCredentialEnvironment, SandboxExecChannel, SandboxExecOptions, SandboxFileBytesOutcome, SandboxFileSizeOutcome, SandboxPermissionLevel, SandboxResourceConfig, SandboxRestoreSpec, SandboxRuntimeAuthRefreshError, SandboxRuntimeConfig, SandboxRuntimeConnection, SandboxScope, SandboxStepTransition, SandboxTerminalTokenOptions, SandboxTerminalTokenResult, SandboxTerminalTokenSubject, SandboxTerminalWsMatch, SandboxToolPathOptions, SandboxToolSpec, ScopedTokenResult, SecretStore, StoppedSandboxResumeFailure, StoppedSandboxResumeRecovery, StreamSandboxPromptOptions, TerminalProxyIdentity, WorkspaceSandboxConnectionArgs, WorkspaceSandboxConnectionHandlerOptions, WorkspaceSandboxEnsureContext, WorkspaceSandboxInstanceLike, WorkspaceSandboxManager, WorkspaceSandboxManagerOptions, WorkspaceSandboxRuntimeProxyArgs, WorkspaceSandboxRuntimeProxyHandlerOptions, WorkspaceSandboxTerminalUpgradeHandlerOptions, WriteProfileFilesOptions, assertEnvWithinLimits, assertProvisionPayloadWithinCap, attachReasoningEffort, bearerSubprotocolToken, bearerToken, buildAppToolMcpServers, buildSandboxRuntimeProxyHeaders, buildSandboxToolFileMounts, buildSandboxToolPathSetupScript, classifySeveredStream, collectSandboxPromptText, createSandboxTerminalToken, createWorkspaceSandboxConnectionHandler, createWorkspaceSandboxManager, createWorkspaceSandboxRuntimeProxyHandler, createWorkspaceSandboxTerminalUpgradeHandler, deferredCorpusHash, deleteSecret, detectInteractiveQuestion, driveSandboxTurn, encodeSandboxRuntimePath, ensureWorkspaceSandbox, flattenHistory, getClient, isSandboxTerminalWsUpgrade, isTerminalPromptEvent, matchSandboxTerminalWsPath, mergeExtraMcp, mergeHistoryIntoParts, mintSandboxScopedToken, mintTerminalProxyToken, peekWorkspaceSandbox, readSandboxBinaryBytes, readSecret, resetClientCache, resolveModel, resolveSandboxClientCredentials, runSandboxPrompt, runSandboxToolPathSetup, sandboxToolBinDir, sandboxToolPath, sandboxToolRootDir, secretStoreFromClient, shellQuote, splitDeferredProfileFiles, statSandboxFileSize, storeSecret, streamSandboxPrompt, syncSandboxMemberAdd, syncSandboxMemberRemove, syncSandboxMemberRole, terminalTokenFromRequest, verifySandboxTerminalToken, verifyTerminalProxyToken, writeProfileFilesToBox } from './sandbox/index.js';
|
|
36
|
-
export { CookieOptions, JsonObject, KvLike, RateLimitResult, RequestContext, SecurityHeaderOptions, addSecurityHeaders, assertMediaUrl, checkRateLimit, clearCookieHeader, extractRequestContext, parseJsonObjectBody, readCookieValue, requireString, serializeCookie } from './web/index.js';
|
|
37
|
-
export { BuildRedactedDocumentOptions, DEFAULT_REDACTION_PATTERNS, RedactForIngestionOptions, RedactedDocSegment, RedactedDocument, RedactionPattern, RedactionSpan, RevealResult, RevealSpanOptions, buildRedactedDocument, detectSpans, maskSpans, redactForIngestion, revealSpan } from './redact/index.js';
|
|
38
|
-
export { ApprovalEvent, ApprovalEventSchema, AssetContentMap, AssetFormat, AssetSpec, AssetStatus, AssetVariant, BrandTokens, BrandTokensSchema, ConversionMetrics, ConversionMetricsSchema, CopyContent, CopyContentSchema, CopyPlatform, EmailBodySection, EmailContent, EmailContentSchema, EmailCtaSection, EmailDividerSection, EmailFeatureSection, EmailHeroSection, EmailSection, EmailTestimonialSection, ImageBackground, ImageContent, ImageContentSchema, ImageImageLayer, ImageLayer, ImageLayerType, ImageLogoLayer, ImageShapeLayer, ImageSlide, ImageTextLayer, VideoCaption, VideoContent, VideoContentSchema, VideoCountdownScene, VideoImageRevealScene, VideoScene, VideoSlideScene, VideoTextAnimationScene, parseAssetSpec, safeParseAssetSpec } from './assets/index.js';
|
|
39
|
-
export { AgentAppTheme, CanvasRenderPalette, darkTheme, lightTheme, themeColor, themeToCssVars } from './theme/index.js';
|
|
40
|
-
export { ThemeContractMiss, ThemeContractOptions, ThemeContractResult, checkThemeContract } from './theme-contract/index.js';
|
|
41
|
-
export { DistributionSummary, LoopTraceEventLike, MissionFlowStep, MissionTraceContext, StepSpanContext, TimedEvent, buildFlowTrace, childSpanContext, composeMissionFlowTrace, createMissionTraceContext, delegationActivityToFlowSpans, loopTraceEventsToFlowSpans, renderHistogram, renderWaterfall, stepActivityFlowTrace, summarize, timedEventsFromLines, traceEnv } from './trace/index.js';
|
|
42
|
-
export { RunToolLoopOptions as AppToolLoopOptions, ToolLoopAssistantToolCall as LoopAssistantToolCall, ToolLoopMessage as LoopMessage, ToolLoopCall as LoopToolCall, StreamToolLoopOptions as StreamAppToolLoopOptions, StreamToolLoopYield as StreamLoopYield, ToolLoopEvent, ToolLoopResult, ToolLoopStopReason, runToolLoop as runAppToolLoop, streamToolLoop as streamAppToolLoop } from '@tangle-network/agent-runtime';
|
|
43
|
-
export { CompletionRequirement, CompletionVerdict, CorrectnessChecker, ProducedState, RuntimeEventLike, SatisfiedBy, TaskGold, createLlmCorrectnessChecker, extractProducedState, verifyCompletion, weightedComposite } from '@tangle-network/agent-eval';
|
|
44
|
-
export { F as FlowSpan, a as FlowTrace } from './flow-types-CqomVAUN.js';
|
|
45
|
-
export { InteractionData, InteractionOutcome, InteractionRequest, modelProvider } from '@tangle-network/agent-interface';
|
|
46
|
-
export { StorageConfig } from '@tangle-network/sandbox';
|
|
47
|
-
export { T as TrustItem } from './trust-gate-Dcm5xSva.js';
|
|
48
|
-
import '@tangle-network/agent-runtime/intelligence';
|
|
49
|
-
import '@tangle-network/agent-knowledge';
|
|
50
|
-
import './fingerprint-DbmOgy0n.js';
|
|
51
|
-
import 'zod';
|