glove-foundry 0.10.1 → 0.11.0
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/{chunk-J6NHL4SM.js → chunk-2JCISE2U.js} +103 -4
- package/dist/{chunk-VLD3DKPI.js → chunk-4WBQ7XVF.js} +30 -1
- package/dist/{chunk-X3HZYVZS.js → chunk-LCDEHWRB.js} +1 -1
- package/dist/{chunk-CYOIHSUX.js → chunk-NWFOY3L7.js} +5 -0
- package/dist/{chunk-L72FKI7P.js → chunk-YCW66WKQ.js} +54 -3
- package/dist/cli.js +4 -4
- package/dist/{client-HM2x2-Ut.d.ts → client-B4Emyeek.d.ts} +11 -2
- package/dist/client.d.ts +2 -2
- package/dist/{event-delivery-C7rYiNPs.d.ts → event-delivery-BfSL9sGo.d.ts} +139 -1
- package/dist/execution-agent.js +1 -1
- package/dist/execution-daemon.js +1 -1
- package/dist/execution-loader.js +108 -8
- package/dist/index.d.ts +9 -5
- package/dist/index.js +42 -5
- package/dist/voice.d.ts +81 -3
- package/dist/voice.js +322 -21
- package/docs/architecture.md +8 -0
- package/docs/building-with-foundry.md +1 -0
- package/package.json +7 -7
|
@@ -14,6 +14,63 @@ import { FactAdapter, FactScope, FactStore, FactInput } from 'glove-facts';
|
|
|
14
14
|
import { GoalAdapter, GoalScope, GoalProgram, GoalRunner } from 'glove-memory/goals';
|
|
15
15
|
import { FormAdapter, FormRunner } from 'glove-memory/forms';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* queued: never attempted. Kept when a call ends; a late-chat policy may take it.
|
|
19
|
+
* dispatching: an attempt began and its outcome may be unknown. Never replayed
|
|
20
|
+
* into another run or call, and never sent to chat instead.
|
|
21
|
+
* accepted: the provider took it. Redelivery acknowledges without saying it again.
|
|
22
|
+
* suppressed: fresh preparation said nothing is due. Redelivery stays silent.
|
|
23
|
+
* redirecting: a provably undispatched event is being handed to a late-chat
|
|
24
|
+
* effect under `effectId`; recovery retries that effect, never voice.
|
|
25
|
+
* redirected: the late-chat effect finished.
|
|
26
|
+
*/
|
|
27
|
+
type FoundryEventReceiptStatus = "queued" | "dispatching" | "accepted" | "suppressed" | "redirecting" | "redirected";
|
|
28
|
+
interface FoundryEventReceipt {
|
|
29
|
+
/** The event's journal id: one receipt per event per conversation. */
|
|
30
|
+
readonly id: string;
|
|
31
|
+
/** The event's own id, as its sender gave it. */
|
|
32
|
+
readonly eventId: string;
|
|
33
|
+
readonly agentId: string;
|
|
34
|
+
readonly conversationId: string;
|
|
35
|
+
readonly workspaceId: string;
|
|
36
|
+
readonly status: FoundryEventReceiptStatus;
|
|
37
|
+
/** The run and call that last moved it, `<runId>/<callId>`. Another generation never replays a dispatch. */
|
|
38
|
+
readonly generation?: string;
|
|
39
|
+
readonly runId?: string;
|
|
40
|
+
/** What was dispatched (accepted) or about to be (dispatching). */
|
|
41
|
+
readonly text?: string;
|
|
42
|
+
/** Why it was suppressed. */
|
|
43
|
+
readonly reason?: string;
|
|
44
|
+
/** The idempotency key of its late-chat effect, derived from the event. */
|
|
45
|
+
readonly effectId?: string;
|
|
46
|
+
/** Set once the transcript line for an accepted event is written. */
|
|
47
|
+
readonly transcriptMessageId?: string;
|
|
48
|
+
readonly createdAt: string;
|
|
49
|
+
readonly updatedAt: string;
|
|
50
|
+
readonly dispatchedAt?: string;
|
|
51
|
+
readonly acceptedAt?: string;
|
|
52
|
+
readonly settledAt?: string;
|
|
53
|
+
}
|
|
54
|
+
interface FoundryEventReceiptFilter {
|
|
55
|
+
readonly agentId?: string;
|
|
56
|
+
readonly conversationId?: string;
|
|
57
|
+
readonly status?: FoundryEventReceiptStatus | ReadonlyArray<FoundryEventReceiptStatus>;
|
|
58
|
+
}
|
|
59
|
+
/** The late-chat effect id for an event: the same on every retry. */
|
|
60
|
+
declare function lateChatEffectId(receiptId: string): string;
|
|
61
|
+
/** The transcript message id for an event's spoken line: the same on every repair. */
|
|
62
|
+
declare function eventTranscriptMessageId(receiptId: string): string;
|
|
63
|
+
interface EventReceiptStore {
|
|
64
|
+
/** False when the data adapter has no receipt methods: receipts last only as long as this process. */
|
|
65
|
+
readonly durable: boolean;
|
|
66
|
+
get(id: string): Promise<FoundryEventReceipt | null>;
|
|
67
|
+
/** Insert if absent. False, and no change, when it exists. */
|
|
68
|
+
claim(receipt: FoundryEventReceipt): Promise<boolean>;
|
|
69
|
+
put(receipt: FoundryEventReceipt): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
/** Receipts through the application's data adapter, or in this process when it keeps none. */
|
|
72
|
+
declare function eventReceiptStore(data: FoundryDataAdapter): EventReceiptStore;
|
|
73
|
+
|
|
17
74
|
declare const FOUNDRY_SCHEDULE_BRAND: unique symbol;
|
|
18
75
|
/**
|
|
19
76
|
* What a recurring schedule does about occurrences that passed while the
|
|
@@ -1629,6 +1686,20 @@ interface FoundryExecutionContext<TInput = unknown> extends FoundrySurfaceContex
|
|
|
1629
1686
|
* listening; anything that arrives after it goes to that turn, or to a new run.
|
|
1630
1687
|
*/
|
|
1631
1688
|
readonly onMeshMessage: (handler: (messages: ReadonlyArray<FoundryMeshMessage>) => void | Promise<void>) => () => Promise<void>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Take addressed events (agent messages and transmissions, not delegation,
|
|
1691
|
+
* mesh or approval deliveries) inside this run, one at a time, with explicit
|
|
1692
|
+
* acknowledgement. The handler gets the events that started the run and any
|
|
1693
|
+
* that arrive while it is registered, optionally only those `match` accepts.
|
|
1694
|
+
* Only `event.ack()` consumes one: registering, returning, or the run ending
|
|
1695
|
+
* does not. An event the handler did not acknowledge stays pending: one that
|
|
1696
|
+
* arrived mid-run goes back to the runtime when the run ends, and one that
|
|
1697
|
+
* started the run is in the next run's events. The returned function stops
|
|
1698
|
+
* taking events and waits for handler calls still running.
|
|
1699
|
+
*/
|
|
1700
|
+
readonly onEvent: (handler: (event: FoundryHandledEvent) => void | Promise<void>, match?: (event: glove_core.AgentEvent) => boolean) => () => Promise<void>;
|
|
1701
|
+
/** True when this run was started for addressed events rather than a message of its own. */
|
|
1702
|
+
readonly eventTurn?: boolean;
|
|
1632
1703
|
}
|
|
1633
1704
|
interface AgentHandlerContext<TInput = unknown> extends FoundryExecutionContext<TInput> {
|
|
1634
1705
|
/** Run the standard Glove loop, optionally with a handler-enriched message. */
|
|
@@ -1667,6 +1738,16 @@ interface AgentAssemblyOptions<TInput = unknown> {
|
|
|
1667
1738
|
readonly delegates?: FoundryListResolver<FoundryDelegate, TInput>;
|
|
1668
1739
|
readonly durableSubagents?: DurableSubagents;
|
|
1669
1740
|
readonly eventDelivery?: FoundryEventPolicy;
|
|
1741
|
+
/**
|
|
1742
|
+
* Read current facts for an addressed event (an agent message or a
|
|
1743
|
+
* transmission) just before a text turn sees it, whether it starts the run
|
|
1744
|
+
* or joins a turn already going. Return `{ say }` to give the turn fresh
|
|
1745
|
+
* text in place of the event's content, or `{ suppress }` when nothing is
|
|
1746
|
+
* due any more: the event is then finished with and the turn never sees it.
|
|
1747
|
+
* Throwing withholds it: the turn does not see it, it is not acknowledged,
|
|
1748
|
+
* and the next attempt prepares it again.
|
|
1749
|
+
*/
|
|
1750
|
+
readonly prepareEvent?: (event: glove_core.AgentEvent, context: FoundryEventPreparationContext) => FoundryEventPreparation | Promise<FoundryEventPreparation>;
|
|
1670
1751
|
/**
|
|
1671
1752
|
* When this agent works on a delegated task, how long glove_foundry_ask
|
|
1672
1753
|
* waits in the same run for an answer before the run suspends. Default 90s.
|
|
@@ -1791,6 +1872,7 @@ interface FoundryAgentConventionModule {
|
|
|
1791
1872
|
readonly delegates?: AgentAssemblyOptions["delegates"];
|
|
1792
1873
|
readonly durableSubagents?: DurableSubagents;
|
|
1793
1874
|
readonly eventDelivery?: FoundryEventPolicy;
|
|
1875
|
+
readonly prepareEvent?: AgentAssemblyOptions["prepareEvent"];
|
|
1794
1876
|
readonly answerWaitMs?: number;
|
|
1795
1877
|
readonly memory?: AgentAssemblyOptions["memory"];
|
|
1796
1878
|
readonly goals?: AgentAssemblyOptions["goals"];
|
|
@@ -2163,6 +2245,19 @@ interface FoundryDataAdapter {
|
|
|
2163
2245
|
putScheduleOccurrence?(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, unknown, never>;
|
|
2164
2246
|
getScheduleOccurrence?(id: string): Effect.Effect<FoundryScheduleOccurrence | null, unknown, never>;
|
|
2165
2247
|
listScheduleOccurrences?(filter?: FoundryScheduleOccurrenceFilter): Effect.Effect<ReadonlyArray<FoundryScheduleOccurrence>, unknown, never>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Event delivery receipts (optional). A handler that tells someone about an
|
|
2250
|
+
* event (a voice call speaking it) records here whether it was never tried,
|
|
2251
|
+
* possibly sent, accepted by the provider, suppressed, or handed to a late
|
|
2252
|
+
* chat effect, so a redelivery after a crash never says it twice. Kept apart
|
|
2253
|
+
* from workspace entries: agent workspace tools cannot read or change them.
|
|
2254
|
+
* `claimEventReceipt` is an atomic insert-if-absent by `id`. Without these,
|
|
2255
|
+
* receipts last only as long as the process that wrote them.
|
|
2256
|
+
*/
|
|
2257
|
+
claimEventReceipt?(receipt: FoundryEventReceipt): Effect.Effect<boolean, unknown, never>;
|
|
2258
|
+
putEventReceipt?(receipt: FoundryEventReceipt): Effect.Effect<void, unknown, never>;
|
|
2259
|
+
getEventReceipt?(id: string): Effect.Effect<FoundryEventReceipt | null, unknown, never>;
|
|
2260
|
+
listEventReceipts?(filter?: FoundryEventReceiptFilter): Effect.Effect<ReadonlyArray<FoundryEventReceipt>, unknown, never>;
|
|
2166
2261
|
getActivation(id: string): Effect.Effect<FoundryActivationRecord | null, unknown, never>;
|
|
2167
2262
|
putActivation(activation: FoundryActivationRecord): Effect.Effect<void, unknown, never>;
|
|
2168
2263
|
listActivations(workspaceId?: string): Effect.Effect<ReadonlyArray<FoundryActivationRecord>, unknown, never>;
|
|
@@ -2219,6 +2314,8 @@ declare function toGloveRequestInput(input: FoundryMessageInput): string | Conte
|
|
|
2219
2314
|
interface FoundryResult {
|
|
2220
2315
|
/** Internal event receipts, acknowledged by the controller only after successful completion. */
|
|
2221
2316
|
readonly consumedEventIds?: ReadonlyArray<string>;
|
|
2317
|
+
/** Events this run withheld because preparing them failed; the runtime retries them after a delay. */
|
|
2318
|
+
readonly retryEventIds?: ReadonlyArray<string>;
|
|
2222
2319
|
readonly status: "completed" | "suspended";
|
|
2223
2320
|
readonly value: unknown;
|
|
2224
2321
|
readonly agentId: string;
|
|
@@ -2294,6 +2391,7 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
2294
2391
|
private readonly approvals;
|
|
2295
2392
|
private readonly activations;
|
|
2296
2393
|
private readonly occurrences;
|
|
2394
|
+
private readonly receipts;
|
|
2297
2395
|
private readonly conversations;
|
|
2298
2396
|
private readonly workspace;
|
|
2299
2397
|
private readonly workingEnvironments;
|
|
@@ -2328,6 +2426,10 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
2328
2426
|
claimEvent(record: FoundryEventRecord): Effect.Effect<boolean, never, never>;
|
|
2329
2427
|
putEvent(record: FoundryEventRecord): Effect.Effect<void, never, never>;
|
|
2330
2428
|
listEvents(): Effect.Effect<FoundryEventRecord[], never, never>;
|
|
2429
|
+
claimEventReceipt(receipt: FoundryEventReceipt): Effect.Effect<boolean, never, never>;
|
|
2430
|
+
putEventReceipt(receipt: FoundryEventReceipt): Effect.Effect<void, never, never>;
|
|
2431
|
+
getEventReceipt(id: string): Effect.Effect<FoundryEventReceipt | null, never, never>;
|
|
2432
|
+
listEventReceipts(filter?: FoundryEventReceiptFilter): Effect.Effect<FoundryEventReceipt[], never, never>;
|
|
2331
2433
|
claimScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<boolean, never, never>;
|
|
2332
2434
|
putScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, never, never>;
|
|
2333
2435
|
getScheduleOccurrence(id: string): Effect.Effect<FoundryScheduleOccurrence | null, never, never>;
|
|
@@ -2531,5 +2633,41 @@ interface FoundryEventRecord {
|
|
|
2531
2633
|
readonly runId?: string;
|
|
2532
2634
|
readonly createdAt: string;
|
|
2533
2635
|
}
|
|
2636
|
+
/**
|
|
2637
|
+
* An addressed event handed to a handler registered with `context.onEvent`.
|
|
2638
|
+
* Nothing acknowledges it but `ack()`: an event the handler did not finish
|
|
2639
|
+
* stays pending and is delivered again, to this conversation's next run.
|
|
2640
|
+
*/
|
|
2641
|
+
interface FoundryHandledEvent {
|
|
2642
|
+
/** The event's journal id: the same on every redelivery. Key receipts and effects on it. */
|
|
2643
|
+
readonly id: string;
|
|
2644
|
+
/** The event as its sender wrote it. */
|
|
2645
|
+
readonly event: AgentEvent;
|
|
2646
|
+
/** True when the event started this run; false when it arrived while the run was going. */
|
|
2647
|
+
readonly initial: boolean;
|
|
2648
|
+
/** This event is finished with. The run reports it consumed; nothing else is. */
|
|
2649
|
+
ack(): void;
|
|
2650
|
+
}
|
|
2651
|
+
/**
|
|
2652
|
+
* What to do with an event about to be told, decided just before telling it.
|
|
2653
|
+
* `say`: the current facts to tell, freshly read. `suppress`: nothing is due
|
|
2654
|
+
* any more (cancelled, moved, too late); the event is finished with silently.
|
|
2655
|
+
* Throwing tells nothing and keeps the event for a later attempt.
|
|
2656
|
+
*/
|
|
2657
|
+
type FoundryEventPreparation = {
|
|
2658
|
+
readonly say: string;
|
|
2659
|
+
} | {
|
|
2660
|
+
readonly suppress: string;
|
|
2661
|
+
};
|
|
2662
|
+
interface FoundryEventPreparationContext {
|
|
2663
|
+
readonly runId: string;
|
|
2664
|
+
readonly definitionId: string;
|
|
2665
|
+
readonly agentId: string;
|
|
2666
|
+
readonly conversationId: string;
|
|
2667
|
+
readonly workspaceId: string;
|
|
2668
|
+
/** The event's journal id. */
|
|
2669
|
+
readonly eventRecordId: string;
|
|
2670
|
+
readonly signal: AbortSignal;
|
|
2671
|
+
}
|
|
2534
2672
|
|
|
2535
|
-
export { type AppRestrictions as $, type AgentHandlerContext as A, AccountSummary as B, type Conversation as C, type AgentApplicationContribution as D, type EnvironmentValue as E, type FoundryDelegationUpdate as F, type AgentApplicationInstallContext as G, type AgentApplicationOptions as H, type InboundDeliveryClaim as I, type AgentAssemblyContext as J, type AgentAssemblyOptions as K, AgentDefinitionId as L, type AgentDefinitionSurfaceContext as M, type AgentFactoryContext as N, OutboundRoute as O, type PlaybookSubscription as P, AgentId as Q, type AgentInstallContext as R, type SharedInboxItem as S, type AgentInstallation as T, type AgentInstallationKind as U, type AgentMessageReceipt as V, type WorkspaceEntry as W, type AgentPlaybookInput as X, type AgentProvisioningPolicy as Y, type AgentRuntimeControls as Z, type AnyFoundryAgent as _, type FoundryMeshMessage as a, type FoundryAgentDefinition as a$, type ApplicationConnectionContext as a0, type ApplicationConnectionState as a1, type ApplicationConnectionStatus as a2, BindingId as a3, BindingNotFound as a4, CapabilityId as a5, type ComposedAgentPlaybook as a6, type ComposedAgentPlaybookInput as a7, type ConnectionReceiveInput as a8, type CreateAgentInstanceOptions as a9, FOUNDRY_AGENT_DEFINITION_BRAND as aA, FOUNDRY_AGENT_FILE_ENV as aB, FOUNDRY_AGENT_ROUTE_ENV as aC, FOUNDRY_APPLICATION_ENV as aD, FOUNDRY_APPROVAL_DIRECTORY_ENV as aE, FOUNDRY_COMPOSED_PLAYBOOK_BRAND as aF, FOUNDRY_CONNECTION_BRAND as aG, FOUNDRY_CORE_COMMAND_EVENT as aH, FOUNDRY_EVENT_PREFIX as aI, FOUNDRY_EXECUTION_MARKER as aJ, FOUNDRY_LAYER_BRAND as aK, FOUNDRY_MCP_BRAND as aL, FOUNDRY_MEMORY_BRAND as aM, FOUNDRY_PLAYBOOK_ACTION_BRAND as aN, FOUNDRY_REPL_BRAND as aO, FOUNDRY_SCHEDULE_BRAND as aP, FOUNDRY_SHARED_TOOL_BRAND as aQ, FOUNDRY_SUBSCRIBER_BRAND as aR, FOUNDRY_TRANSMISSION_BRAND as aS, FOUNDRY_TRANSMISSION_EVENT_BRAND as aT, FOUNDRY_TRANSMISSION_PREDICATE_BRAND as aU, FOUNDRY_WORKING_ENVIRONMENT_BRAND as aV, type FoundryAccountSessionAdapter as aW, type FoundryAgent as aX, type FoundryAgentComponent as aY, type FoundryAgentComposition as aZ, type FoundryAgentConventionModule as a_, type CreateConversationOptions as aa, type CustomProvisionedAgent as ab, type CustomProvisioningContext as ac, DEFAULT_APPROVAL_EXPIRES_AFTER_MS as ad, DEFAULT_APPROVAL_WAIT_MS as ae, type DefineAgentOptions as af, type DefineConnectionOptions as ag, type DefineFoundryReplOptions as ah, type DefineFoundryScheduleOptions as ai, type DefineFoundrySubagentOptions as aj, type DefineFoundryWorkingEnvironmentOptions as ak, type DefinePlaybookSubscriptionOptions as al, type DefinitionConfigInput as am, type DurableSubagentOptions as an, type DurableSubagentOwnership as ao, type DurableSubagents as ap, EMPTY_AGENT_COMPOSITION as aq, EMPTY_CAPABILITY_REGISTRY as ar, EMPTY_NATIVE_REGISTRY as as, type EgressAdapter as at, type EgressContext as au, EventId as av, EventNotFound as aw, EventReference as ax, FOUNDRY_AGENT_APPLICATION_BRAND as ay, FOUNDRY_AGENT_BRAND as az, type FoundryDataAdapter as b, type FoundryProgrammaticToolContext as b$, type FoundryAgentMode as b0, type FoundryApp as b1, type FoundryAppMcp as b2, type FoundryAppMcpTool as b3, type FoundryAppToolDecision as b4, type FoundryApplicationConnection as b5, type FoundryApprovalDecision as b6, FoundryApprovalDisplayManager as b7, type FoundryApprovalPolicy as b8, type FoundryApprovalStatus as b9, type FoundryInstalledApp as bA, type FoundryInstanceProvisioner as bB, type FoundryJavaScriptReplDefinition as bC, type FoundryLayer as bD, type FoundryLayerOptions as bE, type FoundryLayerReference as bF, type FoundryLayerSelection as bG, type FoundryLispReplDefinition as bH, type FoundryListResolver as bI, type FoundryMcp as bJ, type FoundryMcpOptions as bK, type FoundryMemoryProfile as bL, type FoundryMemoryProfileOptions as bM, type FoundryMemoryReference as bN, type FoundryMemorySelection as bO, type FoundryMeshConfig as bP, type FoundryMeshOptions as bQ, type FoundryMeshParty as bR, type FoundryMeshThread as bS, type FoundryMeshThreadStatus as bT, type FoundryMessageInput as bU, type FoundryMessageOptions as bV, type FoundryMountedRepl as bW, type FoundryNativeManifest as bX, type FoundryNativeManifestEntry as bY, type FoundryNativeRegistry as bZ, type FoundryPlaybookAction as b_, type FoundryCall as ba, type FoundryCallContext as bb, type FoundryCallOptions as bc, type FoundryCapabilityKind as bd, type FoundryCapabilityManifest as be, type FoundryCapabilityManifestEntry as bf, type FoundryCapabilityRegistry as bg, type FoundryCompositionSource as bh, type FoundryContextProvider as bi, type FoundryCoreCommand as bj, type FoundryDelegate as bk, type FoundryDelegateOptions as bl, type FoundryDelegation as bm, type FoundryDelegationReply as bn, type FoundryDelegationStatus as bo, type FoundryDomainError as bp, type FoundryEventPolicy as bq, type FoundryEventTarget as br, type FoundryExecutionContext as bs, type FoundryFactsOptions as bt, type FoundryFormsOptions as bu, type FoundryGoalsOptions as bv, type FoundryGuidanceHandles as bw, type FoundryGuidanceScope as bx, type FoundryHookDefinition as by, type FoundryInstallable as bz, type AgentInstance as c, type TransmissionEventDirection as c$, type FoundryProgrammaticToolSelection as c0, type FoundryProgrammaticTools as c1, type FoundryPythonReplDefinition as c2, type FoundryReplApp as c3, type FoundryReplDefinition as c4, type FoundryRequest as c5, type FoundryResolvedMcp as c6, type FoundryResolver as c7, type FoundryResult as c8, type FoundryRouteMap as c9, type InferAgentOutput as cA, type InferInboundEvent as cB, type InferOutboundInput as cC, type InferOutboundOutput as cD, type IngressAdapter as cE, type IngressContext as cF, type InstallationSelection as cG, type McpAdapterFactory as cH, MemoryFoundryDataAdapter as cI, type OutboundContract as cJ, type PlaybookActionOptions as cK, type PlaybookDirective as cL, type PlaybookDirectiveInput as cM, type PlaybookMatch as cN, type PlaybookMatchInput as cO, type PlaybookOutboundDirective as cP, type PlaybookOutboundInput as cQ, type PlaybookSubscriptionTarget as cR, type PlaybookSubscriptionTargetInput as cS, ReplyPolicy as cT, Route as cU, RouteId as cV, RouteNotFound as cW, RunGrant as cX, RunId as cY, type SharedToolOptions as cZ, TopologyConflict as c_, type FoundryScheduleDefinition as ca, type FoundryScheduleMisfirePolicy as cb, type FoundryScheduleOccurrenceStatus as cc, type FoundryScheduleTiming as cd, type FoundryScheduleTimingInput as ce, type FoundrySharedTool as cf, type FoundrySubagentToolContext as cg, type FoundrySubscriber as ch, type FoundrySubscriberOptions as ci, type FoundrySubscriberSelection as cj, type FoundrySurfaceContext as ck, type FoundrySuspension as cl, type FoundryToolBody as cm, type FoundryTransmission as cn, type FoundryTransmissionDelivery as co, type FoundryTransmissionEvent as cp, type FoundryTransmissionPredicate as cq, type FoundryVfs as cr, type FoundryVfsHandle as cs, type FoundryWorkingEnvironmentCreateContext as ct, type FoundryWorkingEnvironmentDefinition as cu, type FoundryWorkingEnvironmentPersistenceAdapter as cv, type FoundryWorkingEnvironmentPersistenceContext as cw, GrantResolutionError as cx, type InboundContract as cy, type InferAgentInput as cz, type FoundryActivationRecord as d, mountFoundrySurfaces as d$, type TransmissionEventOptions as d0, TransmissionId as d1, type TransmissionOptions as d2, type TransmissionPredicateOptions as d3, type TransmissionSerializationContext as d4, type UpdateAgentInstanceOptions as d5, type UpdateConversationOptions as d6, activationScheduleRevision as d7, composeAgent as d8, composePlaybook as d9, defineSharedTool as dA, defineSubagent as dB, defineSubscriber as dC, defineTransmission as dD, defineTransmissionEvent as dE, defineTransmissionPredicate as dF, defineWorkingEnvironment as dG, foundryDataEnvironmentPersistence as dH, foundryGuidanceSubject as dI, hostedMeshOptions as dJ, install as dK, installRegistry as dL, installationKey as dM, installedApplicationTransmissionToolName as dN, internalAgentName as dO, isFoundryAgent as dP, isFoundryAgentDefinition as dQ, isFoundryCapability as dR, isFoundryLayer as dS, isFoundrySchedule as dT, isFoundrySubscriber as dU, isFoundryTransmission as dV, isInboxCapableStore as dW, isMeshTransport as dX, listFoundryApprovals as dY, meshIdentity as dZ, mountAgentDefinitionMemory as d_, configureLayer as da, configureMemory as db, createAgentInstance as dc, createConversation as dd, createFoundryApproval as de, createFoundryCoreTools as df, createInstalledApplicationTransmissionTools as dg, defineAgent as dh, defineAgentApplication as di, defineAgentFromModule as dj, defineAgentInstance as dk, defineApp as dl, defineCall as dm, defineConnection as dn, defineFacts as dp, defineForms as dq, defineGoals as dr, defineLayer as ds, defineMcp as dt, defineMemory as du, definePlaybookAction as dv, definePlaybookSubscription as dw, defineRepl as dx, defineRoutes as dy, defineSchedule as dz, type ProvisionAgentOptions as e, reconstructAgentInstance as e0, reconstructPlaybook as e1, reconstructPlaybookSubscription as e2, resolveFoundryApproval as e3, restrictApp as e4, routeFromInternalAgentName as e5, scheduleOccurrenceId as e6, scheduleRevisionMatches as e7, toGloveMessage as e8, toGloveRequestInput as e9, transmissionPredicate as ea, withFoundryPermissions as eb, type FoundryEventRecord as f, type FoundryScheduleOccurrence as g, type FoundryScheduleOccurrenceFilter as h, type FoundryPendingInbound as i, type FoundryApproval as j, type FoundryWorkingEnvironmentSnapshotOwner as k, type FoundryTask as l, type AgentPlaybook as m, type AnyFoundryTransmission as n, AccountReference as o, type InferAccountMetadata as p, AgentBinding as q, type FoundryAgentApplication as r, InboundRoute as s, type CapabilityDefinition as t, type InferInboundConfig as u, type InferOutboundConfig as v, type AccountContract as w, AccountId as x, AccountNotFound as y, AccountSessionUnavailable as z };
|
|
2673
|
+
export { type AgentProvisioningPolicy as $, type AgentHandlerContext as A, AccountId as B, type Conversation as C, AccountNotFound as D, type EnvironmentValue as E, type FoundryEventPreparation as F, AccountSessionUnavailable as G, AccountSummary as H, type InboundDeliveryClaim as I, type AgentApplicationContribution as J, type AgentApplicationInstallContext as K, type AgentApplicationOptions as L, type AgentAssemblyContext as M, type AgentAssemblyOptions as N, OutboundRoute as O, type PlaybookSubscription as P, AgentDefinitionId as Q, type AgentDefinitionSurfaceContext as R, type SharedInboxItem as S, type AgentFactoryContext as T, AgentId as U, type AgentInstallContext as V, type WorkspaceEntry as W, type AgentInstallation as X, type AgentInstallationKind as Y, type AgentMessageReceipt as Z, type AgentPlaybookInput as _, type FoundryEventReceipt as a, type FoundryAgent as a$, type AgentRuntimeControls as a0, type AnyFoundryAgent as a1, type AppRestrictions as a2, type ApplicationConnectionContext as a3, type ApplicationConnectionState as a4, type ApplicationConnectionStatus as a5, BindingId as a6, BindingNotFound as a7, CapabilityId as a8, type ComposedAgentPlaybook as a9, type EventReceiptStore as aA, EventReference as aB, FOUNDRY_AGENT_APPLICATION_BRAND as aC, FOUNDRY_AGENT_BRAND as aD, FOUNDRY_AGENT_DEFINITION_BRAND as aE, FOUNDRY_AGENT_FILE_ENV as aF, FOUNDRY_AGENT_ROUTE_ENV as aG, FOUNDRY_APPLICATION_ENV as aH, FOUNDRY_APPROVAL_DIRECTORY_ENV as aI, FOUNDRY_COMPOSED_PLAYBOOK_BRAND as aJ, FOUNDRY_CONNECTION_BRAND as aK, FOUNDRY_CORE_COMMAND_EVENT as aL, FOUNDRY_EVENT_PREFIX as aM, FOUNDRY_EXECUTION_MARKER as aN, FOUNDRY_LAYER_BRAND as aO, FOUNDRY_MCP_BRAND as aP, FOUNDRY_MEMORY_BRAND as aQ, FOUNDRY_PLAYBOOK_ACTION_BRAND as aR, FOUNDRY_REPL_BRAND as aS, FOUNDRY_SCHEDULE_BRAND as aT, FOUNDRY_SHARED_TOOL_BRAND as aU, FOUNDRY_SUBSCRIBER_BRAND as aV, FOUNDRY_TRANSMISSION_BRAND as aW, FOUNDRY_TRANSMISSION_EVENT_BRAND as aX, FOUNDRY_TRANSMISSION_PREDICATE_BRAND as aY, FOUNDRY_WORKING_ENVIRONMENT_BRAND as aZ, type FoundryAccountSessionAdapter as a_, type ComposedAgentPlaybookInput as aa, type ConnectionReceiveInput as ab, type CreateAgentInstanceOptions as ac, type CreateConversationOptions as ad, type CustomProvisionedAgent as ae, type CustomProvisioningContext as af, DEFAULT_APPROVAL_EXPIRES_AFTER_MS as ag, DEFAULT_APPROVAL_WAIT_MS as ah, type DefineAgentOptions as ai, type DefineConnectionOptions as aj, type DefineFoundryReplOptions as ak, type DefineFoundryScheduleOptions as al, type DefineFoundrySubagentOptions as am, type DefineFoundryWorkingEnvironmentOptions as an, type DefinePlaybookSubscriptionOptions as ao, type DefinitionConfigInput as ap, type DurableSubagentOptions as aq, type DurableSubagentOwnership as ar, type DurableSubagents as as, EMPTY_AGENT_COMPOSITION as at, EMPTY_CAPABILITY_REGISTRY as au, EMPTY_NATIVE_REGISTRY as av, type EgressAdapter as aw, type EgressContext as ax, EventId as ay, EventNotFound as az, type FoundryDelegationUpdate as b, type FoundryMessageInput as b$, type FoundryAgentComponent as b0, type FoundryAgentComposition as b1, type FoundryAgentConventionModule as b2, type FoundryAgentDefinition as b3, type FoundryAgentMode as b4, type FoundryApp as b5, type FoundryAppMcp as b6, type FoundryAppMcpTool as b7, type FoundryAppToolDecision as b8, type FoundryApplicationConnection as b9, type FoundryFormsOptions as bA, type FoundryGoalsOptions as bB, type FoundryGuidanceHandles as bC, type FoundryGuidanceScope as bD, type FoundryHandledEvent as bE, type FoundryHookDefinition as bF, type FoundryInstallable as bG, type FoundryInstalledApp as bH, type FoundryInstanceProvisioner as bI, type FoundryJavaScriptReplDefinition as bJ, type FoundryLayer as bK, type FoundryLayerOptions as bL, type FoundryLayerReference as bM, type FoundryLayerSelection as bN, type FoundryLispReplDefinition as bO, type FoundryListResolver as bP, type FoundryMcp as bQ, type FoundryMcpOptions as bR, type FoundryMemoryProfile as bS, type FoundryMemoryProfileOptions as bT, type FoundryMemoryReference as bU, type FoundryMemorySelection as bV, type FoundryMeshConfig as bW, type FoundryMeshOptions as bX, type FoundryMeshParty as bY, type FoundryMeshThread as bZ, type FoundryMeshThreadStatus as b_, type FoundryApprovalDecision as ba, FoundryApprovalDisplayManager as bb, type FoundryApprovalPolicy as bc, type FoundryApprovalStatus as bd, type FoundryCall as be, type FoundryCallContext as bf, type FoundryCallOptions as bg, type FoundryCapabilityKind as bh, type FoundryCapabilityManifest as bi, type FoundryCapabilityManifestEntry as bj, type FoundryCapabilityRegistry as bk, type FoundryCompositionSource as bl, type FoundryContextProvider as bm, type FoundryCoreCommand as bn, type FoundryDelegate as bo, type FoundryDelegateOptions as bp, type FoundryDelegation as bq, type FoundryDelegationReply as br, type FoundryDelegationStatus as bs, type FoundryDomainError as bt, type FoundryEventPolicy as bu, type FoundryEventPreparationContext as bv, type FoundryEventReceiptStatus as bw, type FoundryEventTarget as bx, type FoundryExecutionContext as by, type FoundryFactsOptions as bz, type FoundryMeshMessage as c, Route as c$, type FoundryMessageOptions as c0, type FoundryMountedRepl as c1, type FoundryNativeManifest as c2, type FoundryNativeManifestEntry as c3, type FoundryNativeRegistry as c4, type FoundryPlaybookAction as c5, type FoundryProgrammaticToolContext as c6, type FoundryProgrammaticToolSelection as c7, type FoundryProgrammaticTools as c8, type FoundryPythonReplDefinition as c9, type FoundryWorkingEnvironmentCreateContext as cA, type FoundryWorkingEnvironmentDefinition as cB, type FoundryWorkingEnvironmentPersistenceAdapter as cC, type FoundryWorkingEnvironmentPersistenceContext as cD, GrantResolutionError as cE, type InboundContract as cF, type InferAgentInput as cG, type InferAgentOutput as cH, type InferInboundEvent as cI, type InferOutboundInput as cJ, type InferOutboundOutput as cK, type IngressAdapter as cL, type IngressContext as cM, type InstallationSelection as cN, type McpAdapterFactory as cO, MemoryFoundryDataAdapter as cP, type OutboundContract as cQ, type PlaybookActionOptions as cR, type PlaybookDirective as cS, type PlaybookDirectiveInput as cT, type PlaybookMatch as cU, type PlaybookMatchInput as cV, type PlaybookOutboundDirective as cW, type PlaybookOutboundInput as cX, type PlaybookSubscriptionTarget as cY, type PlaybookSubscriptionTargetInput as cZ, ReplyPolicy as c_, type FoundryReplApp as ca, type FoundryReplDefinition as cb, type FoundryRequest as cc, type FoundryResolvedMcp as cd, type FoundryResolver as ce, type FoundryResult as cf, type FoundryRouteMap as cg, type FoundryScheduleDefinition as ch, type FoundryScheduleMisfirePolicy as ci, type FoundryScheduleOccurrenceStatus as cj, type FoundryScheduleTiming as ck, type FoundryScheduleTimingInput as cl, type FoundrySharedTool as cm, type FoundrySubagentToolContext as cn, type FoundrySubscriber as co, type FoundrySubscriberOptions as cp, type FoundrySubscriberSelection as cq, type FoundrySurfaceContext as cr, type FoundrySuspension as cs, type FoundryToolBody as ct, type FoundryTransmission as cu, type FoundryTransmissionDelivery as cv, type FoundryTransmissionEvent as cw, type FoundryTransmissionPredicate as cx, type FoundryVfs as cy, type FoundryVfsHandle as cz, type FoundryDataAdapter as d, isFoundryLayer as d$, RouteId as d0, RouteNotFound as d1, RunGrant as d2, RunId as d3, type SharedToolOptions as d4, TopologyConflict as d5, type TransmissionEventDirection as d6, type TransmissionEventOptions as d7, TransmissionId as d8, type TransmissionOptions as d9, defineMcp as dA, defineMemory as dB, definePlaybookAction as dC, definePlaybookSubscription as dD, defineRepl as dE, defineRoutes as dF, defineSchedule as dG, defineSharedTool as dH, defineSubagent as dI, defineSubscriber as dJ, defineTransmission as dK, defineTransmissionEvent as dL, defineTransmissionPredicate as dM, defineWorkingEnvironment as dN, eventReceiptStore as dO, eventTranscriptMessageId as dP, foundryDataEnvironmentPersistence as dQ, foundryGuidanceSubject as dR, hostedMeshOptions as dS, install as dT, installRegistry as dU, installationKey as dV, installedApplicationTransmissionToolName as dW, internalAgentName as dX, isFoundryAgent as dY, isFoundryAgentDefinition as dZ, isFoundryCapability as d_, type TransmissionPredicateOptions as da, type TransmissionSerializationContext as db, type UpdateAgentInstanceOptions as dc, type UpdateConversationOptions as dd, activationScheduleRevision as de, composeAgent as df, composePlaybook as dg, configureLayer as dh, configureMemory as di, createAgentInstance as dj, createConversation as dk, createFoundryApproval as dl, createFoundryCoreTools as dm, createInstalledApplicationTransmissionTools as dn, defineAgent as dp, defineAgentApplication as dq, defineAgentFromModule as dr, defineAgentInstance as ds, defineApp as dt, defineCall as du, defineConnection as dv, defineFacts as dw, defineForms as dx, defineGoals as dy, defineLayer as dz, type AgentInstance as e, isFoundrySchedule as e0, isFoundrySubscriber as e1, isFoundryTransmission as e2, isInboxCapableStore as e3, isMeshTransport as e4, lateChatEffectId as e5, listFoundryApprovals as e6, meshIdentity as e7, mountAgentDefinitionMemory as e8, mountFoundrySurfaces as e9, reconstructAgentInstance as ea, reconstructPlaybook as eb, reconstructPlaybookSubscription as ec, resolveFoundryApproval as ed, restrictApp as ee, routeFromInternalAgentName as ef, scheduleOccurrenceId as eg, scheduleRevisionMatches as eh, toGloveMessage as ei, toGloveRequestInput as ej, transmissionPredicate as ek, withFoundryPermissions as el, type FoundryActivationRecord as f, type ProvisionAgentOptions as g, type FoundryEventRecord as h, type FoundryEventReceiptFilter as i, type FoundryScheduleOccurrence as j, type FoundryScheduleOccurrenceFilter as k, type FoundryPendingInbound as l, type FoundryApproval as m, type FoundryWorkingEnvironmentSnapshotOwner as n, type FoundryTask as o, type AgentPlaybook as p, type AnyFoundryTransmission as q, AccountReference as r, type InferAccountMetadata as s, AgentBinding as t, type FoundryAgentApplication as u, InboundRoute as v, type CapabilityDefinition as w, type InferInboundConfig as x, type InferOutboundConfig as y, type AccountContract as z };
|
package/dist/execution-agent.js
CHANGED
package/dist/execution-daemon.js
CHANGED
package/dist/execution-loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountFoundryGuidance,
|
|
3
3
|
mountFoundryWorkbench
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LCDEHWRB.js";
|
|
5
5
|
import {
|
|
6
6
|
EMPTY_FOUNDRY_APPLICATION,
|
|
7
7
|
FOUNDRY_APPROVAL_DIRECTORY_ENV,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
toGloveMessage,
|
|
31
31
|
toGloveRequestInput,
|
|
32
32
|
withFoundryPermissions
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4WBQ7XVF.js";
|
|
34
34
|
import {
|
|
35
35
|
FOUNDRY_CONVERSATION_LEASE_EVENT,
|
|
36
36
|
FOUNDRY_CONVERSATION_LISTEN_EVENT,
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
createWorkerTools,
|
|
42
42
|
delegationFromContext,
|
|
43
43
|
deliveryEvent,
|
|
44
|
+
deliveryOf,
|
|
44
45
|
formatRunEvents,
|
|
45
46
|
isDelegationUpdate,
|
|
46
47
|
isOpenDelegation,
|
|
@@ -53,7 +54,7 @@ import {
|
|
|
53
54
|
renderOwnThread,
|
|
54
55
|
threadFromContext,
|
|
55
56
|
waitForConversationLease
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2JCISE2U.js";
|
|
57
58
|
import {
|
|
58
59
|
EMPTY_CAPABILITY_REGISTRY,
|
|
59
60
|
FOUNDRY_APPLICATION_ENV,
|
|
@@ -67,6 +68,7 @@ import {
|
|
|
67
68
|
hostedMeshOptions,
|
|
68
69
|
installRegistry,
|
|
69
70
|
internalAgentName,
|
|
71
|
+
isGenericDelivery,
|
|
70
72
|
isInboxCapableStore,
|
|
71
73
|
isMeshTransport,
|
|
72
74
|
mountAgentDefinitionMemory,
|
|
@@ -74,7 +76,7 @@ import {
|
|
|
74
76
|
refreshDurableAuthority,
|
|
75
77
|
resolveResolvable,
|
|
76
78
|
waitForFoundryCoreCommandResult
|
|
77
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-NWFOY3L7.js";
|
|
78
80
|
|
|
79
81
|
// src/execution-loader.ts
|
|
80
82
|
import { dirname } from "node:path";
|
|
@@ -410,7 +412,35 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
410
412
|
resolveOptional("compactionInstructions", definition.compactionInstructions, "Preserve goals, decisions, unresolved work, tool results, and pending inbox items."),
|
|
411
413
|
resolveOptional("maxTurns", definition.maxTurns, void 0)
|
|
412
414
|
]);
|
|
413
|
-
const
|
|
415
|
+
const withheld = /* @__PURE__ */ new Map();
|
|
416
|
+
const prepareEvent = definition.prepareEvent;
|
|
417
|
+
const eventQueue = new RunEventQueue(prepareEvent ? {
|
|
418
|
+
applies: (delivery) => isGenericDelivery(delivery) && !approvalDecisionOf(delivery),
|
|
419
|
+
prepare: async (event, delivery) => {
|
|
420
|
+
const prepared = await prepareEvent(delivery.durable?.event ?? event, {
|
|
421
|
+
runId,
|
|
422
|
+
definitionId: id,
|
|
423
|
+
agentId: request.agentId,
|
|
424
|
+
conversationId: request.conversationId,
|
|
425
|
+
workspaceId: request.workspaceId,
|
|
426
|
+
eventRecordId: delivery.durable?.id ?? event.id,
|
|
427
|
+
signal: abortController.signal
|
|
428
|
+
});
|
|
429
|
+
withheld.delete(event.id);
|
|
430
|
+
return prepared;
|
|
431
|
+
},
|
|
432
|
+
suppressed: (delivery, reason) => {
|
|
433
|
+
const event = deliveryEvent(delivery);
|
|
434
|
+
forwarded.delete(event.id);
|
|
435
|
+
consumed([delivery]);
|
|
436
|
+
controls.emit({ type: "foundry.event.suppressed", data: { id: delivery.durable?.id ?? event.id, reason } });
|
|
437
|
+
},
|
|
438
|
+
failed: (event, cause) => {
|
|
439
|
+
const delivery = deliveryOf(event);
|
|
440
|
+
if (delivery?.durable) withheld.set(event.id, delivery.durable.id);
|
|
441
|
+
controls.emit({ type: "foundry.event.prepare.failed", data: { id: event.id, message: cause instanceof Error ? cause.message : String(cause) } });
|
|
442
|
+
}
|
|
443
|
+
} : void 0);
|
|
414
444
|
const base = new Glove({
|
|
415
445
|
...runtimeStore ? { store: runtimeStore } : {},
|
|
416
446
|
events: { queue: eventQueue, policy: () => "defer", deferTimeoutMs: Infinity, formatter: formatRunEvents },
|
|
@@ -558,6 +588,13 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
558
588
|
const consumed = (deliveries) => {
|
|
559
589
|
for (const delivery of deliveries) if (delivery.durable) consumedEventIds.add(delivery.durable.id);
|
|
560
590
|
};
|
|
591
|
+
const heldEvents = /* @__PURE__ */ new Map();
|
|
592
|
+
const routedInitial = /* @__PURE__ */ new Set();
|
|
593
|
+
const eventCalls = /* @__PURE__ */ new Set();
|
|
594
|
+
let initialForwarded = false;
|
|
595
|
+
const settleEventCalls = async () => {
|
|
596
|
+
while (eventCalls.size) await Promise.allSettled([...eventCalls]);
|
|
597
|
+
};
|
|
561
598
|
let eventRecipient;
|
|
562
599
|
const bufferedDeliveries = initialDeliveries.length ? [] : [...envelope.events ?? []];
|
|
563
600
|
const forwardDeliveries = async (deliveries) => {
|
|
@@ -591,6 +628,14 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
591
628
|
async forward(deliveries) {
|
|
592
629
|
await forwardDeliveries(deliveries);
|
|
593
630
|
},
|
|
631
|
+
async release() {
|
|
632
|
+
await settleEventCalls();
|
|
633
|
+
const back = [...heldEvents].filter(([, held]) => !held.initial);
|
|
634
|
+
for (const [id2] of back) heldEvents.delete(id2);
|
|
635
|
+
const retrying = new Set(withheld.keys());
|
|
636
|
+
const unread = await this.reclaim(() => true);
|
|
637
|
+
return [...back.map(([, held]) => held.delivery), ...unread.filter((delivery) => !retrying.has(deliveryEvent(delivery).id))];
|
|
638
|
+
},
|
|
594
639
|
async reclaim(match) {
|
|
595
640
|
const buffered = bufferedDeliveries.filter(match);
|
|
596
641
|
for (let i = bufferedDeliveries.length - 1; i >= 0; i--) if (match(bufferedDeliveries[i])) bufferedDeliveries.splice(i, 1);
|
|
@@ -813,6 +858,57 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
813
858
|
const stop = mailbox().onMesh(handler);
|
|
814
859
|
cleanups.push(stop);
|
|
815
860
|
return stop;
|
|
861
|
+
},
|
|
862
|
+
eventTurn: envelope.eventTurn ?? false,
|
|
863
|
+
onEvent: (handler, match) => {
|
|
864
|
+
const senderEvent = (delivery) => delivery.durable?.event ?? deliveryEvent(delivery);
|
|
865
|
+
const accepts = (delivery) => isGenericDelivery(delivery) && !approvalDecisionOf(delivery) && (!match || match(senderEvent(delivery)));
|
|
866
|
+
const calls2 = /* @__PURE__ */ new Set();
|
|
867
|
+
let stopped = false;
|
|
868
|
+
const take = (delivery, initial) => {
|
|
869
|
+
const event = senderEvent(delivery);
|
|
870
|
+
const id2 = delivery.durable?.id ?? event.id;
|
|
871
|
+
if (stopped || heldEvents.has(id2)) return;
|
|
872
|
+
heldEvents.set(id2, { delivery, initial });
|
|
873
|
+
const handled = {
|
|
874
|
+
id: id2,
|
|
875
|
+
event,
|
|
876
|
+
initial,
|
|
877
|
+
ack: () => {
|
|
878
|
+
if (heldEvents.delete(id2)) consumed([delivery]);
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
const call = Promise.resolve().then(() => handler(handled)).catch((cause) => {
|
|
882
|
+
controls.emit({ type: "foundry.event.handler.error", data: { id: id2, message: cause instanceof Error ? cause.message : String(cause) } });
|
|
883
|
+
});
|
|
884
|
+
calls2.add(call);
|
|
885
|
+
eventCalls.add(call);
|
|
886
|
+
void call.finally(() => {
|
|
887
|
+
calls2.delete(call);
|
|
888
|
+
eventCalls.delete(call);
|
|
889
|
+
});
|
|
890
|
+
};
|
|
891
|
+
if (!initialForwarded) {
|
|
892
|
+
for (const delivery of initialDeliveries) {
|
|
893
|
+
if (routedInitial.has(delivery) || !accepts(delivery)) continue;
|
|
894
|
+
routedInitial.add(delivery);
|
|
895
|
+
take(delivery, true);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
const stopMailbox = mailbox().onEvents(accepts, async (delivery) => {
|
|
899
|
+
take(delivery, false);
|
|
900
|
+
});
|
|
901
|
+
const stop = async () => {
|
|
902
|
+
if (stopped) {
|
|
903
|
+
while (calls2.size) await Promise.allSettled([...calls2]);
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
stopped = true;
|
|
907
|
+
await stopMailbox();
|
|
908
|
+
while (calls2.size) await Promise.allSettled([...calls2]);
|
|
909
|
+
};
|
|
910
|
+
cleanups.push(stop);
|
|
911
|
+
return stop;
|
|
816
912
|
}
|
|
817
913
|
};
|
|
818
914
|
for (const call of calls) {
|
|
@@ -992,6 +1088,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
992
1088
|
const defaultRun = async (messageInput = assemblyContext.messageInput) => {
|
|
993
1089
|
if (initialEventsPending && messageInput === assemblyContext.messageInput) {
|
|
994
1090
|
initialEventsPending = false;
|
|
1091
|
+
initialForwarded = true;
|
|
995
1092
|
const decisions = initialDeliveries.filter((delivery) => approvalDecisionOf(delivery));
|
|
996
1093
|
if (decisions.length && glove.resumeToolCalls) {
|
|
997
1094
|
for (const delivery of decisions) {
|
|
@@ -1006,13 +1103,13 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
1006
1103
|
});
|
|
1007
1104
|
if (done.length) {
|
|
1008
1105
|
consumed(done);
|
|
1009
|
-
const rest = initialDeliveries.filter((delivery) => !done.includes(delivery));
|
|
1106
|
+
const rest = initialDeliveries.filter((delivery) => !done.includes(delivery) && !routedInitial.has(delivery));
|
|
1010
1107
|
if (!rest.length) return resumed === void 0 ? null : extractOutput(resumed);
|
|
1011
1108
|
await forwardDeliveries(rest);
|
|
1012
1109
|
return extractOutput(await glove.processEvents(abortController.signal));
|
|
1013
1110
|
}
|
|
1014
1111
|
}
|
|
1015
|
-
await forwardDeliveries(initialDeliveries);
|
|
1112
|
+
await forwardDeliveries(initialDeliveries.filter((delivery) => !routedInitial.has(delivery)));
|
|
1016
1113
|
return extractOutput(await glove.processEvents(abortController.signal));
|
|
1017
1114
|
}
|
|
1018
1115
|
return extractOutput(await glove.processRequest(toGloveRequestInput(messageInput), abortController.signal));
|
|
@@ -1038,7 +1135,8 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
1038
1135
|
awaitingApproval = { approvalId: deferral.approvalId, toolName: String(deferral.toolName ?? "") };
|
|
1039
1136
|
result = `Waiting for approval to run ${awaitingApproval.toolName || "a tool"} (${awaitingApproval.approvalId}).`;
|
|
1040
1137
|
}
|
|
1041
|
-
|
|
1138
|
+
await settleEventCalls();
|
|
1139
|
+
if (initialEventsPending) consumed(initialDeliveries.filter((delivery) => !routedInitial.has(delivery)));
|
|
1042
1140
|
await guidance.snapshot();
|
|
1043
1141
|
const sleep = [...controls.commands].reverse().find(
|
|
1044
1142
|
(command) => command.type === "sleep"
|
|
@@ -1049,6 +1147,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
1049
1147
|
status: sleep || question || waiting || awaitingApproval ? "suspended" : "completed",
|
|
1050
1148
|
value: serializable(result),
|
|
1051
1149
|
...consumedEventIds.size ? { consumedEventIds: [...consumedEventIds] } : {},
|
|
1150
|
+
...withheld.size ? { retryEventIds: [...new Set(withheld.values())].filter((recordId) => !consumedEventIds.has(recordId)) } : {},
|
|
1052
1151
|
agentId: request.agentId,
|
|
1053
1152
|
conversationId: request.conversationId,
|
|
1054
1153
|
workspaceId: request.workspaceId,
|
|
@@ -1211,6 +1310,7 @@ function compileAgentDefinition(definition, route) {
|
|
|
1211
1310
|
});
|
|
1212
1311
|
let builder = signal(internalAgentName(route)).input(executionEnvelope).output(z.object({
|
|
1213
1312
|
consumedEventIds: z.array(z.string()).readonly().optional(),
|
|
1313
|
+
retryEventIds: z.array(z.string()).readonly().optional(),
|
|
1214
1314
|
status: z.enum(["completed", "suspended"]),
|
|
1215
1315
|
value: z.unknown(),
|
|
1216
1316
|
agentId: z.string(),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { d as FoundryDataAdapter, E as EnvironmentValue, e as AgentInstance, C as Conversation, P as PlaybookSubscription, f as FoundryActivationRecord, g as ProvisionAgentOptions, I as InboundDeliveryClaim, h as FoundryEventRecord, a as FoundryEventReceipt, i as FoundryEventReceiptFilter, j as FoundryScheduleOccurrence, k as FoundryScheduleOccurrenceFilter, l as FoundryPendingInbound, m as FoundryApproval, W as WorkspaceEntry, n as FoundryWorkingEnvironmentSnapshotOwner, S as SharedInboxItem, o as FoundryTask, p as AgentPlaybook, q as AnyFoundryTransmission, r as AccountReference, s as InferAccountMetadata, t as AgentBinding, u as FoundryAgentApplication, v as InboundRoute, O as OutboundRoute, w as CapabilityDefinition, x as InferInboundConfig, y as InferOutboundConfig } from './event-delivery-BfSL9sGo.js';
|
|
2
|
+
export { z as AccountContract, B as AccountId, D as AccountNotFound, G as AccountSessionUnavailable, H as AccountSummary, J as AgentApplicationContribution, K as AgentApplicationInstallContext, L as AgentApplicationOptions, M as AgentAssemblyContext, N as AgentAssemblyOptions, Q as AgentDefinitionId, R as AgentDefinitionSurfaceContext, T as AgentFactoryContext, A as AgentHandlerContext, U as AgentId, V as AgentInstallContext, X as AgentInstallation, Y as AgentInstallationKind, Z as AgentMessageReceipt, _ as AgentPlaybookInput, $ as AgentProvisioningPolicy, a0 as AgentRuntimeControls, a1 as AnyFoundryAgent, a2 as AppRestrictions, a3 as ApplicationConnectionContext, a4 as ApplicationConnectionState, a5 as ApplicationConnectionStatus, a6 as BindingId, a7 as BindingNotFound, a8 as CapabilityId, a9 as ComposedAgentPlaybook, aa as ComposedAgentPlaybookInput, ab as ConnectionReceiveInput, ac as CreateAgentInstanceOptions, ad as CreateConversationOptions, ae as CustomProvisionedAgent, af as CustomProvisioningContext, ag as DEFAULT_APPROVAL_EXPIRES_AFTER_MS, ah as DEFAULT_APPROVAL_WAIT_MS, ai as DefineAgentOptions, aj as DefineConnectionOptions, ak as DefineFoundryReplOptions, al as DefineFoundryScheduleOptions, am as DefineFoundrySubagentOptions, an as DefineFoundryWorkingEnvironmentOptions, ao as DefinePlaybookSubscriptionOptions, ap as DefinitionConfigInput, aq as DurableSubagentOptions, ar as DurableSubagentOwnership, as as DurableSubagents, at as EMPTY_AGENT_COMPOSITION, au as EMPTY_CAPABILITY_REGISTRY, av as EMPTY_NATIVE_REGISTRY, aw as EgressAdapter, ax as EgressContext, ay as EventId, az as EventNotFound, aA as EventReceiptStore, aB as EventReference, aC as FOUNDRY_AGENT_APPLICATION_BRAND, aD as FOUNDRY_AGENT_BRAND, aE as FOUNDRY_AGENT_DEFINITION_BRAND, aF as FOUNDRY_AGENT_FILE_ENV, aG as FOUNDRY_AGENT_ROUTE_ENV, aH as FOUNDRY_APPLICATION_ENV, aI as FOUNDRY_APPROVAL_DIRECTORY_ENV, aJ as FOUNDRY_COMPOSED_PLAYBOOK_BRAND, aK as FOUNDRY_CONNECTION_BRAND, aL as FOUNDRY_CORE_COMMAND_EVENT, aM as FOUNDRY_EVENT_PREFIX, aN as FOUNDRY_EXECUTION_MARKER, aO as FOUNDRY_LAYER_BRAND, aP as FOUNDRY_MCP_BRAND, aQ as FOUNDRY_MEMORY_BRAND, aR as FOUNDRY_PLAYBOOK_ACTION_BRAND, aS as FOUNDRY_REPL_BRAND, aT as FOUNDRY_SCHEDULE_BRAND, aU as FOUNDRY_SHARED_TOOL_BRAND, aV as FOUNDRY_SUBSCRIBER_BRAND, aW as FOUNDRY_TRANSMISSION_BRAND, aX as FOUNDRY_TRANSMISSION_EVENT_BRAND, aY as FOUNDRY_TRANSMISSION_PREDICATE_BRAND, aZ as FOUNDRY_WORKING_ENVIRONMENT_BRAND, a_ as FoundryAccountSessionAdapter, a$ as FoundryAgent, b0 as FoundryAgentComponent, b1 as FoundryAgentComposition, b2 as FoundryAgentConventionModule, b3 as FoundryAgentDefinition, b4 as FoundryAgentMode, b5 as FoundryApp, b6 as FoundryAppMcp, b7 as FoundryAppMcpTool, b8 as FoundryAppToolDecision, b9 as FoundryApplicationConnection, ba as FoundryApprovalDecision, bb as FoundryApprovalDisplayManager, bc as FoundryApprovalPolicy, bd as FoundryApprovalStatus, be as FoundryCall, bf as FoundryCallContext, bg as FoundryCallOptions, bh as FoundryCapabilityKind, bi as FoundryCapabilityManifest, bj as FoundryCapabilityManifestEntry, bk as FoundryCapabilityRegistry, bl as FoundryCompositionSource, bm as FoundryContextProvider, bn as FoundryCoreCommand, bo as FoundryDelegate, bp as FoundryDelegateOptions, bq as FoundryDelegation, br as FoundryDelegationReply, bs as FoundryDelegationStatus, b as FoundryDelegationUpdate, bt as FoundryDomainError, bu as FoundryEventPolicy, F as FoundryEventPreparation, bv as FoundryEventPreparationContext, bw as FoundryEventReceiptStatus, bx as FoundryEventTarget, by as FoundryExecutionContext, bz as FoundryFactsOptions, bA as FoundryFormsOptions, bB as FoundryGoalsOptions, bC as FoundryGuidanceHandles, bD as FoundryGuidanceScope, bE as FoundryHandledEvent, bF as FoundryHookDefinition, bG as FoundryInstallable, bH as FoundryInstalledApp, bI as FoundryInstanceProvisioner, bJ as FoundryJavaScriptReplDefinition, bK as FoundryLayer, bL as FoundryLayerOptions, bM as FoundryLayerReference, bN as FoundryLayerSelection, bO as FoundryLispReplDefinition, bP as FoundryListResolver, bQ as FoundryMcp, bR as FoundryMcpOptions, bS as FoundryMemoryProfile, bT as FoundryMemoryProfileOptions, bU as FoundryMemoryReference, bV as FoundryMemorySelection, bW as FoundryMeshConfig, c as FoundryMeshMessage, bX as FoundryMeshOptions, bY as FoundryMeshParty, bZ as FoundryMeshThread, b_ as FoundryMeshThreadStatus, b$ as FoundryMessageInput, c0 as FoundryMessageOptions, c1 as FoundryMountedRepl, c2 as FoundryNativeManifest, c3 as FoundryNativeManifestEntry, c4 as FoundryNativeRegistry, c5 as FoundryPlaybookAction, c6 as FoundryProgrammaticToolContext, c7 as FoundryProgrammaticToolSelection, c8 as FoundryProgrammaticTools, c9 as FoundryPythonReplDefinition, ca as FoundryReplApp, cb as FoundryReplDefinition, cc as FoundryRequest, cd as FoundryResolvedMcp, ce as FoundryResolver, cf as FoundryResult, cg as FoundryRouteMap, ch as FoundryScheduleDefinition, ci as FoundryScheduleMisfirePolicy, cj as FoundryScheduleOccurrenceStatus, ck as FoundryScheduleTiming, cl as FoundryScheduleTimingInput, cm as FoundrySharedTool, cn as FoundrySubagentToolContext, co as FoundrySubscriber, cp as FoundrySubscriberOptions, cq as FoundrySubscriberSelection, cr as FoundrySurfaceContext, cs as FoundrySuspension, ct as FoundryToolBody, cu as FoundryTransmission, cv as FoundryTransmissionDelivery, cw as FoundryTransmissionEvent, cx as FoundryTransmissionPredicate, cy as FoundryVfs, cz as FoundryVfsHandle, cA as FoundryWorkingEnvironmentCreateContext, cB as FoundryWorkingEnvironmentDefinition, cC as FoundryWorkingEnvironmentPersistenceAdapter, cD as FoundryWorkingEnvironmentPersistenceContext, cE as GrantResolutionError, cF as InboundContract, cG as InferAgentInput, cH as InferAgentOutput, cI as InferInboundEvent, cJ as InferOutboundInput, cK as InferOutboundOutput, cL as IngressAdapter, cM as IngressContext, cN as InstallationSelection, cO as McpAdapterFactory, cP as MemoryFoundryDataAdapter, cQ as OutboundContract, cR as PlaybookActionOptions, cS as PlaybookDirective, cT as PlaybookDirectiveInput, cU as PlaybookMatch, cV as PlaybookMatchInput, cW as PlaybookOutboundDirective, cX as PlaybookOutboundInput, cY as PlaybookSubscriptionTarget, cZ as PlaybookSubscriptionTargetInput, c_ as ReplyPolicy, c$ as Route, d0 as RouteId, d1 as RouteNotFound, d2 as RunGrant, d3 as RunId, d4 as SharedToolOptions, d5 as TopologyConflict, d6 as TransmissionEventDirection, d7 as TransmissionEventOptions, d8 as TransmissionId, d9 as TransmissionOptions, da as TransmissionPredicateOptions, db as TransmissionSerializationContext, dc as UpdateAgentInstanceOptions, dd as UpdateConversationOptions, de as activationScheduleRevision, df as composeAgent, dg as composePlaybook, dh as configureLayer, di as configureMemory, dj as createAgentInstance, dk as createConversation, dl as createFoundryApproval, dm as createFoundryCoreTools, dn as createInstalledApplicationTransmissionTools, dp as defineAgent, dq as defineAgentApplication, dr as defineAgentFromModule, ds as defineAgentInstance, dt as defineApp, du as defineCall, dv as defineConnection, dw as defineFacts, dx as defineForms, dy as defineGoals, dz as defineLayer, dA as defineMcp, dB as defineMemory, dC as definePlaybookAction, dD as definePlaybookSubscription, dE as defineRepl, dF as defineRoutes, dG as defineSchedule, dH as defineSharedTool, dI as defineSubagent, dJ as defineSubscriber, dK as defineTransmission, dL as defineTransmissionEvent, dM as defineTransmissionPredicate, dN as defineWorkingEnvironment, dO as eventReceiptStore, dP as eventTranscriptMessageId, dQ as foundryDataEnvironmentPersistence, dR as foundryGuidanceSubject, dS as hostedMeshOptions, dT as install, dU as installRegistry, dV as installationKey, dW as installedApplicationTransmissionToolName, dX as internalAgentName, dY as isFoundryAgent, dZ as isFoundryAgentDefinition, d_ as isFoundryCapability, d$ as isFoundryLayer, e0 as isFoundrySchedule, e1 as isFoundrySubscriber, e2 as isFoundryTransmission, e3 as isInboxCapableStore, e4 as isMeshTransport, e5 as lateChatEffectId, e6 as listFoundryApprovals, e7 as meshIdentity, e8 as mountAgentDefinitionMemory, e9 as mountFoundrySurfaces, ea as reconstructAgentInstance, eb as reconstructPlaybook, ec as reconstructPlaybookSubscription, ed as resolveFoundryApproval, ee as restrictApp, ef as routeFromInternalAgentName, eg as scheduleOccurrenceId, eh as scheduleRevisionMatches, ei as toGloveMessage, ej as toGloveRequestInput, ek as transmissionPredicate, el as withFoundryPermissions } from './event-delivery-BfSL9sGo.js';
|
|
3
3
|
import { Effect, Layer } from 'effect';
|
|
4
4
|
import { EnvSnapshot } from 'glove-working-environment';
|
|
5
|
-
import { T as TopologyStore, F as FoundryRuntime, D as DiscoveredAgent, a as FoundryManifest } from './client-
|
|
6
|
-
export { A as AccountDirectory, b as AccountFilter, c as AccountSessionAdapter, d as AccountSessionRequest, B as BindingFilter, E as EMPTY_FOUNDRY_APPLICATION, e as EventFilter, f as EventStore, g as FOUNDRY_APPLICATION_BRAND, h as FoundryApplication, i as FoundryApplicationManifest, j as FoundryApplicationOptions, k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, n as FoundryConversationTranscript, o as FoundryEvent, p as FoundryEventCategory, q as FoundryHealth, r as FoundryManifestAgent, s as FoundryManifestCapability, t as FoundryManifestTransmission, u as FoundryObservabilityAdapter, v as FoundryRequestAuthorizationAdapter, w as FoundryRequestAuthorizationInput, x as FoundryRun, y as FoundryRunHandle, z as FoundryRuntimeError, C as FoundryRuntimeOptions, G as FoundrySteerHandleResult, H as FoundrySteerResult, I as GrantResolver, M as ManifestCompilationError, J as MemoryObservabilityAdapter, R as ResolveGrantRequest, K as RouteFilter, W as WaitOptions, L as compileApplicationManifest, N as createFoundryClient, O as createManifest, P as defineApplication, Q as discoverAgents, S as findAgentFiles, U as grantResolverLive, V as isFoundryApplication, X as memoryAccountDirectory, Y as memoryEventStore, Z as memoryTopologyStore, _ as routeFromAgentFile } from './client-
|
|
5
|
+
import { T as TopologyStore, F as FoundryRuntime, D as DiscoveredAgent, a as FoundryManifest } from './client-B4Emyeek.js';
|
|
6
|
+
export { A as AccountDirectory, b as AccountFilter, c as AccountSessionAdapter, d as AccountSessionRequest, B as BindingFilter, E as EMPTY_FOUNDRY_APPLICATION, e as EventFilter, f as EventStore, g as FOUNDRY_APPLICATION_BRAND, h as FoundryApplication, i as FoundryApplicationManifest, j as FoundryApplicationOptions, k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, n as FoundryConversationTranscript, o as FoundryEvent, p as FoundryEventCategory, q as FoundryHealth, r as FoundryManifestAgent, s as FoundryManifestCapability, t as FoundryManifestTransmission, u as FoundryObservabilityAdapter, v as FoundryRequestAuthorizationAdapter, w as FoundryRequestAuthorizationInput, x as FoundryRun, y as FoundryRunHandle, z as FoundryRuntimeError, C as FoundryRuntimeOptions, G as FoundrySteerHandleResult, H as FoundrySteerResult, I as GrantResolver, M as ManifestCompilationError, J as MemoryObservabilityAdapter, R as ResolveGrantRequest, K as RouteFilter, W as WaitOptions, L as compileApplicationManifest, N as createFoundryClient, O as createManifest, P as defineApplication, Q as discoverAgents, S as findAgentFiles, U as grantResolverLive, V as isFoundryApplication, X as memoryAccountDirectory, Y as memoryEventStore, Z as memoryTopologyStore, _ as routeFromAgentFile } from './client-B4Emyeek.js';
|
|
7
7
|
import { AddressInfo } from 'node:net';
|
|
8
8
|
import { FoundryBrandingConfig } from './config.js';
|
|
9
9
|
export { FoundryConfig, FoundryExecutionConfig, defineConfig } from './config.js';
|
|
@@ -76,6 +76,10 @@ declare class FileFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
76
76
|
claimEvent(record: FoundryEventRecord): Effect.Effect<boolean, unknown, never>;
|
|
77
77
|
putEvent(record: FoundryEventRecord): Effect.Effect<void, unknown, never>;
|
|
78
78
|
listEvents(): Effect.Effect<FoundryEventRecord[], unknown, never>;
|
|
79
|
+
claimEventReceipt(receipt: FoundryEventReceipt): Effect.Effect<boolean, unknown, never>;
|
|
80
|
+
putEventReceipt(receipt: FoundryEventReceipt): Effect.Effect<void, unknown, never>;
|
|
81
|
+
getEventReceipt(id: string): Effect.Effect<FoundryEventReceipt | null, unknown, never>;
|
|
82
|
+
listEventReceipts(filter?: FoundryEventReceiptFilter): Effect.Effect<FoundryEventReceipt[], unknown, never>;
|
|
79
83
|
claimScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<boolean, unknown, never>;
|
|
80
84
|
putScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, unknown, never>;
|
|
81
85
|
getScheduleOccurrence(id: string): Effect.Effect<FoundryScheduleOccurrence | null, unknown, never>;
|
|
@@ -212,4 +216,4 @@ interface DefineBindingOptions extends Omit<AgentBinding, "id" | "agentId" | "tr
|
|
|
212
216
|
}
|
|
213
217
|
declare function defineBinding(options: DefineBindingOptions): AgentBinding;
|
|
214
218
|
|
|
215
|
-
export { AccountReference, AgentBinding, AgentInstance, AgentPlaybook, AnyFoundryTransmission, CapabilityDefinition, Conversation, type DefineAccountOptions, type DefineBindingOptions, type DefineInboundRouteOptions, type DefineOutboundRouteOptions, DiscoveredAgent, EnvironmentValue, FileFoundryDataAdapter, type FileFoundryDataAdapterOptions, FoundryActivationRecord, FoundryAgentApplication, FoundryApproval, FoundryBrandingConfig, FoundryDataAdapter, FoundryEventRecord, FoundryManifest, FoundryPendingInbound, FoundryRuntime, FoundryScheduleOccurrence, FoundryScheduleOccurrenceFilter, FoundryServer, type FoundryServerOptions, FoundryTask, FoundryWorkingEnvironmentSnapshotOwner, InboundDeliveryClaim, InboundRoute, InferAccountMetadata, InferInboundConfig, InferOutboundConfig, OutboundRoute, PlaybookSubscription, ProvisionAgentOptions, SharedInboxItem, TopologyStore, WorkspaceEntry, defineAccount, defineBinding, defineInboundRoute, defineOutboundRoute, fileTopologyStore, serializeInboundTransmissionXml, writeGeneratedTypes };
|
|
219
|
+
export { AccountReference, AgentBinding, AgentInstance, AgentPlaybook, AnyFoundryTransmission, CapabilityDefinition, Conversation, type DefineAccountOptions, type DefineBindingOptions, type DefineInboundRouteOptions, type DefineOutboundRouteOptions, DiscoveredAgent, EnvironmentValue, FileFoundryDataAdapter, type FileFoundryDataAdapterOptions, FoundryActivationRecord, FoundryAgentApplication, FoundryApproval, FoundryBrandingConfig, FoundryDataAdapter, FoundryEventReceipt, FoundryEventReceiptFilter, FoundryEventRecord, FoundryManifest, FoundryPendingInbound, FoundryRuntime, FoundryScheduleOccurrence, FoundryScheduleOccurrenceFilter, FoundryServer, type FoundryServerOptions, FoundryTask, FoundryWorkingEnvironmentSnapshotOwner, InboundDeliveryClaim, InboundRoute, InferAccountMetadata, InferInboundConfig, InferOutboundConfig, OutboundRoute, PlaybookSubscription, ProvisionAgentOptions, SharedInboxItem, TopologyStore, WorkspaceEntry, defineAccount, defineBinding, defineInboundRoute, defineOutboundRoute, fileTopologyStore, serializeInboundTransmissionXml, writeGeneratedTypes };
|