glove-foundry 0.8.0 → 0.10.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/README.md +1 -1
- package/dist/{chunk-L5JQVTHD.js → chunk-N2GVJ257.js} +12 -0
- package/dist/{chunk-DTFCEX67.js → chunk-PMNRLJIQ.js} +902 -183
- package/dist/{chunk-EUGKVW3J.js → chunk-T6YLIGER.js} +135 -12
- package/dist/cli.js +2 -2
- package/dist/{client-CekanYLW.d.ts → client-Cj2wDXuc.d.ts} +41 -5
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/{event-delivery-CNCsVqi8.d.ts → event-delivery-a9B1Qq_u.d.ts} +141 -50
- package/dist/execution-daemon.js +0 -7
- package/dist/execution-loader.js +87 -4
- package/dist/index.d.ts +9 -5
- package/dist/index.js +42 -3
- package/dist/voice.d.ts +1 -1
- package/docs/architecture.md +18 -0
- package/docs/building-with-foundry.md +1 -1
- package/docs/inspector.md +191 -7
- package/package.json +10 -10
|
@@ -14,6 +14,109 @@ 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
|
+
declare const FOUNDRY_SCHEDULE_BRAND: unique symbol;
|
|
18
|
+
/**
|
|
19
|
+
* What a recurring schedule does about occurrences that passed while the
|
|
20
|
+
* runtime was not running. `fire-once` (default) delivers the earliest missed
|
|
21
|
+
* occurrence and folds the rest into it; `catch-up` delivers every one in
|
|
22
|
+
* order; `skip` drops an occurrence more than a minute late.
|
|
23
|
+
*/
|
|
24
|
+
type FoundryScheduleMisfirePolicy = "fire-once" | "skip" | "catch-up";
|
|
25
|
+
type FoundryScheduleTimingInput = {
|
|
26
|
+
readonly kind: "at";
|
|
27
|
+
readonly at: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: "after";
|
|
30
|
+
readonly duration: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly kind: "every";
|
|
33
|
+
readonly interval: string;
|
|
34
|
+
readonly misfire?: FoundryScheduleMisfirePolicy;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: "cron";
|
|
37
|
+
readonly expression: string;
|
|
38
|
+
readonly timezone?: string;
|
|
39
|
+
readonly misfire?: FoundryScheduleMisfirePolicy;
|
|
40
|
+
};
|
|
41
|
+
type FoundryScheduleTiming = {
|
|
42
|
+
readonly kind: "at";
|
|
43
|
+
readonly at: string;
|
|
44
|
+
} | {
|
|
45
|
+
readonly kind: "every";
|
|
46
|
+
readonly intervalMs: number;
|
|
47
|
+
readonly misfire?: FoundryScheduleMisfirePolicy;
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: "cron";
|
|
50
|
+
readonly expression: string;
|
|
51
|
+
readonly timezone: string;
|
|
52
|
+
readonly misfire?: FoundryScheduleMisfirePolicy;
|
|
53
|
+
};
|
|
54
|
+
interface DefineFoundryScheduleOptions {
|
|
55
|
+
/** Stable semantic name within one agent definition. It is not a runtime id. */
|
|
56
|
+
readonly name: string;
|
|
57
|
+
readonly description?: string;
|
|
58
|
+
readonly message: string;
|
|
59
|
+
readonly payload?: unknown;
|
|
60
|
+
readonly timing: FoundryScheduleTimingInput;
|
|
61
|
+
readonly enabled?: boolean;
|
|
62
|
+
}
|
|
63
|
+
type FoundryScheduleDefinition = Readonly<DefineFoundryScheduleOptions> & {
|
|
64
|
+
readonly [FOUNDRY_SCHEDULE_BRAND]: true;
|
|
65
|
+
};
|
|
66
|
+
declare function defineSchedule(options: DefineFoundryScheduleOptions): FoundryScheduleDefinition;
|
|
67
|
+
declare function isFoundrySchedule(value: unknown): value is FoundryScheduleDefinition;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* pending: claimed, not yet handed to a run (or the run that had it was lost).
|
|
71
|
+
* accepted: a run has it. completed / failed: that run settled.
|
|
72
|
+
* skipped: deliberately not delivered (a missed occurrence under `misfire: "skip"`).
|
|
73
|
+
* cancelled: the activation was paused, cancelled or changed before delivery, or its run was cancelled.
|
|
74
|
+
*/
|
|
75
|
+
type FoundryScheduleOccurrenceStatus = "pending" | "accepted" | "completed" | "failed" | "skipped" | "cancelled";
|
|
76
|
+
interface FoundryScheduleOccurrence {
|
|
77
|
+
/** Deterministic: activation id, schedule revision and scheduled time. */
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly activationId: string;
|
|
80
|
+
/** The activation's schedule revision when this occurrence was claimed. */
|
|
81
|
+
readonly revision: string;
|
|
82
|
+
/** The time the schedule meant, independent of when it was claimed, run or finished. */
|
|
83
|
+
readonly scheduledFor: string;
|
|
84
|
+
readonly definitionId: string;
|
|
85
|
+
readonly agentId: string;
|
|
86
|
+
readonly conversationId: string;
|
|
87
|
+
readonly workspaceId: string;
|
|
88
|
+
/** The request a run for this occurrence starts from; `source.occurrenceId` is this id. */
|
|
89
|
+
readonly request: FoundryRequest;
|
|
90
|
+
readonly status: FoundryScheduleOccurrenceStatus;
|
|
91
|
+
/** Why it was skipped or cancelled: misfire, paused, cancelled, superseded, agent-inactive, run-cancelled. */
|
|
92
|
+
readonly reason?: string;
|
|
93
|
+
/** The run handling it now, or the run that settled it. */
|
|
94
|
+
readonly runId?: string;
|
|
95
|
+
/** Every run it was handed to, oldest first. More than one means a retry after a crash. */
|
|
96
|
+
readonly runIds?: ReadonlyArray<string>;
|
|
97
|
+
/** Handoffs so far. */
|
|
98
|
+
readonly attempts: number;
|
|
99
|
+
/** Later occurrences that also passed while the runtime was down and were folded into this one (`fire-once`). */
|
|
100
|
+
readonly coalesced?: number;
|
|
101
|
+
readonly createdAt: string;
|
|
102
|
+
readonly updatedAt: string;
|
|
103
|
+
readonly acceptedAt?: string;
|
|
104
|
+
readonly settledAt?: string;
|
|
105
|
+
}
|
|
106
|
+
interface FoundryScheduleOccurrenceFilter {
|
|
107
|
+
readonly activationId?: string;
|
|
108
|
+
readonly workspaceId?: string;
|
|
109
|
+
readonly agentId?: string;
|
|
110
|
+
readonly status?: FoundryScheduleOccurrenceStatus | ReadonlyArray<FoundryScheduleOccurrenceStatus>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The schedule configuration an occurrence belongs to. It changes only when
|
|
114
|
+
* what the schedule delivers, to whom, or when changes; status and timestamp
|
|
115
|
+
* writes leave it alone.
|
|
116
|
+
*/
|
|
117
|
+
declare function activationScheduleRevision(activation: Pick<FoundryActivationRecord, "definitionId" | "agentId" | "conversationId" | "message" | "payload" | "timing">): string;
|
|
118
|
+
declare function scheduleOccurrenceId(activationId: string, revision: string, scheduledFor: string): string;
|
|
119
|
+
|
|
17
120
|
declare const FOUNDRY_APPROVAL_DIRECTORY_ENV = "GLOVE_FOUNDRY_APPROVAL_DIRECTORY";
|
|
18
121
|
/** Default live wait before a run with durable approvals suspends. */
|
|
19
122
|
declare const DEFAULT_APPROVAL_WAIT_MS = 60000;
|
|
@@ -1217,47 +1320,6 @@ type FoundryMeshCommand = (MeshCommandBase & {
|
|
|
1217
1320
|
readonly note: string;
|
|
1218
1321
|
});
|
|
1219
1322
|
|
|
1220
|
-
declare const FOUNDRY_SCHEDULE_BRAND: unique symbol;
|
|
1221
|
-
type FoundryScheduleTimingInput = {
|
|
1222
|
-
readonly kind: "at";
|
|
1223
|
-
readonly at: string;
|
|
1224
|
-
} | {
|
|
1225
|
-
readonly kind: "after";
|
|
1226
|
-
readonly duration: string;
|
|
1227
|
-
} | {
|
|
1228
|
-
readonly kind: "every";
|
|
1229
|
-
readonly interval: string;
|
|
1230
|
-
} | {
|
|
1231
|
-
readonly kind: "cron";
|
|
1232
|
-
readonly expression: string;
|
|
1233
|
-
readonly timezone?: string;
|
|
1234
|
-
};
|
|
1235
|
-
type FoundryScheduleTiming = {
|
|
1236
|
-
readonly kind: "at";
|
|
1237
|
-
readonly at: string;
|
|
1238
|
-
} | {
|
|
1239
|
-
readonly kind: "every";
|
|
1240
|
-
readonly intervalMs: number;
|
|
1241
|
-
} | {
|
|
1242
|
-
readonly kind: "cron";
|
|
1243
|
-
readonly expression: string;
|
|
1244
|
-
readonly timezone: string;
|
|
1245
|
-
};
|
|
1246
|
-
interface DefineFoundryScheduleOptions {
|
|
1247
|
-
/** Stable semantic name within one agent definition. It is not a runtime id. */
|
|
1248
|
-
readonly name: string;
|
|
1249
|
-
readonly description?: string;
|
|
1250
|
-
readonly message: string;
|
|
1251
|
-
readonly payload?: unknown;
|
|
1252
|
-
readonly timing: FoundryScheduleTimingInput;
|
|
1253
|
-
readonly enabled?: boolean;
|
|
1254
|
-
}
|
|
1255
|
-
type FoundryScheduleDefinition = Readonly<DefineFoundryScheduleOptions> & {
|
|
1256
|
-
readonly [FOUNDRY_SCHEDULE_BRAND]: true;
|
|
1257
|
-
};
|
|
1258
|
-
declare function defineSchedule(options: DefineFoundryScheduleOptions): FoundryScheduleDefinition;
|
|
1259
|
-
declare function isFoundrySchedule(value: unknown): value is FoundryScheduleDefinition;
|
|
1260
|
-
|
|
1261
1323
|
declare const FOUNDRY_CORE_COMMAND_EVENT = "foundry.core.command";
|
|
1262
1324
|
type FoundryCoreCommand = {
|
|
1263
1325
|
readonly id: string;
|
|
@@ -1280,14 +1342,7 @@ type FoundryCoreCommand = {
|
|
|
1280
1342
|
readonly timing: {
|
|
1281
1343
|
readonly kind: "at";
|
|
1282
1344
|
readonly at: string;
|
|
1283
|
-
} |
|
|
1284
|
-
readonly kind: "every";
|
|
1285
|
-
readonly intervalMs: number;
|
|
1286
|
-
} | {
|
|
1287
|
-
readonly kind: "cron";
|
|
1288
|
-
readonly expression: string;
|
|
1289
|
-
readonly timezone: string;
|
|
1290
|
-
};
|
|
1345
|
+
} | FoundryScheduleTiming;
|
|
1291
1346
|
} | {
|
|
1292
1347
|
readonly id: string;
|
|
1293
1348
|
readonly type: "playbook.sync";
|
|
@@ -2033,6 +2088,18 @@ interface FoundryActivationRecord {
|
|
|
2033
2088
|
readonly status: "pending" | "active" | "paused" | "completed" | "cancelled";
|
|
2034
2089
|
readonly createdByRunId: string;
|
|
2035
2090
|
readonly lastRunId?: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* The schedule configuration `nextOccurrenceAt` belongs to (see
|
|
2093
|
+
* `activationScheduleRevision`). Set by Foundry; a changed configuration
|
|
2094
|
+
* starts a new cursor and new occurrence identities.
|
|
2095
|
+
*/
|
|
2096
|
+
readonly scheduleRevision?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* The scheduled time of the next occurrence this activation owes. Foundry
|
|
2099
|
+
* moves it only after the occurrence at the old value is stored, so a
|
|
2100
|
+
* restart resumes from here instead of from the current time.
|
|
2101
|
+
*/
|
|
2102
|
+
readonly nextOccurrenceAt?: string;
|
|
2036
2103
|
readonly createdAt: string;
|
|
2037
2104
|
readonly updatedAt: string;
|
|
2038
2105
|
}
|
|
@@ -2074,6 +2141,21 @@ interface FoundryDataAdapter {
|
|
|
2074
2141
|
putApproval?(approval: FoundryApproval): Effect.Effect<void, unknown, never>;
|
|
2075
2142
|
getApproval?(id: string): Effect.Effect<FoundryApproval | null, unknown, never>;
|
|
2076
2143
|
listApprovals?(): Effect.Effect<ReadonlyArray<FoundryApproval>, unknown, never>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Schedule occurrences (optional). With these, every occurrence of a
|
|
2146
|
+
* schedule or sleep is stored before the activation moves past it, survives
|
|
2147
|
+
* a restart until a run settles it, and stays listable afterwards. Without
|
|
2148
|
+
* them Foundry keeps occurrences in memory, and a crash between an
|
|
2149
|
+
* occurrence coming due and its run finishing can lose it.
|
|
2150
|
+
*
|
|
2151
|
+
* `claimScheduleOccurrence` is an atomic insert-if-absent by `id`: it
|
|
2152
|
+
* returns false, and changes nothing, when the id exists. Adapters may drop
|
|
2153
|
+
* terminal occurrences older than the latest few per activation.
|
|
2154
|
+
*/
|
|
2155
|
+
claimScheduleOccurrence?(occurrence: FoundryScheduleOccurrence): Effect.Effect<boolean, unknown, never>;
|
|
2156
|
+
putScheduleOccurrence?(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, unknown, never>;
|
|
2157
|
+
getScheduleOccurrence?(id: string): Effect.Effect<FoundryScheduleOccurrence | null, unknown, never>;
|
|
2158
|
+
listScheduleOccurrences?(filter?: FoundryScheduleOccurrenceFilter): Effect.Effect<ReadonlyArray<FoundryScheduleOccurrence>, unknown, never>;
|
|
2077
2159
|
getActivation(id: string): Effect.Effect<FoundryActivationRecord | null, unknown, never>;
|
|
2078
2160
|
putActivation(activation: FoundryActivationRecord): Effect.Effect<void, unknown, never>;
|
|
2079
2161
|
listActivations(workspaceId?: string): Effect.Effect<ReadonlyArray<FoundryActivationRecord>, unknown, never>;
|
|
@@ -2113,6 +2195,10 @@ interface FoundryRequest {
|
|
|
2113
2195
|
readonly provider?: string;
|
|
2114
2196
|
readonly eventId?: string;
|
|
2115
2197
|
readonly threadKey?: string;
|
|
2198
|
+
/** For an activation: the occurrence this run delivers. Stable across retries; use it to key side effects. */
|
|
2199
|
+
readonly occurrenceId?: string;
|
|
2200
|
+
/** For an activation: the time the schedule meant, whenever the run actually starts. */
|
|
2201
|
+
readonly scheduledFor?: string;
|
|
2116
2202
|
};
|
|
2117
2203
|
}
|
|
2118
2204
|
/**
|
|
@@ -2200,6 +2286,7 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
2200
2286
|
private readonly pendingInbound;
|
|
2201
2287
|
private readonly approvals;
|
|
2202
2288
|
private readonly activations;
|
|
2289
|
+
private readonly occurrences;
|
|
2203
2290
|
private readonly conversations;
|
|
2204
2291
|
private readonly workspace;
|
|
2205
2292
|
private readonly workingEnvironments;
|
|
@@ -2234,6 +2321,10 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
2234
2321
|
claimEvent(record: FoundryEventRecord): Effect.Effect<boolean, never, never>;
|
|
2235
2322
|
putEvent(record: FoundryEventRecord): Effect.Effect<void, never, never>;
|
|
2236
2323
|
listEvents(): Effect.Effect<FoundryEventRecord[], never, never>;
|
|
2324
|
+
claimScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<boolean, never, never>;
|
|
2325
|
+
putScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, never, never>;
|
|
2326
|
+
getScheduleOccurrence(id: string): Effect.Effect<FoundryScheduleOccurrence | null, never, never>;
|
|
2327
|
+
listScheduleOccurrences(filter?: FoundryScheduleOccurrenceFilter): Effect.Effect<FoundryScheduleOccurrence[], never, never>;
|
|
2237
2328
|
putPendingInbound(record: FoundryPendingInbound): Effect.Effect<void, never, never>;
|
|
2238
2329
|
deletePendingInbound(id: string): Effect.Effect<void, never, never>;
|
|
2239
2330
|
listPendingInbound(): Effect.Effect<FoundryPendingInbound[], never, never>;
|
|
@@ -2434,4 +2525,4 @@ interface FoundryEventRecord {
|
|
|
2434
2525
|
readonly createdAt: string;
|
|
2435
2526
|
}
|
|
2436
2527
|
|
|
2437
|
-
export { type ApplicationConnectionState as $, type AgentHandlerContext as A, type AgentApplicationInstallContext as B, type Conversation as C, type AgentApplicationOptions as D, type EnvironmentValue as E, type FoundryDelegationUpdate as F, type AgentAssemblyContext as G, type AgentAssemblyOptions as H, type InboundDeliveryClaim as I, AgentDefinitionId as J, type AgentDefinitionSurfaceContext as K, type AgentFactoryContext as L, AgentId as M, type AgentInstallContext as N, OutboundRoute as O, type PlaybookSubscription as P, type AgentInstallation as Q, type AgentInstallationKind as R, type SharedInboxItem as S, type AgentMessageReceipt as T, type AgentPlaybookInput as U, type AgentProvisioningPolicy as V, type WorkspaceEntry as W, type AgentRuntimeControls as X, type AnyFoundryAgent as Y, type AppRestrictions as Z, type ApplicationConnectionContext as _, type FoundryMeshMessage as a, type FoundryApp as a$, type ApplicationConnectionStatus as a0, BindingId as a1, BindingNotFound as a2, CapabilityId as a3, type ComposedAgentPlaybook as a4, type ComposedAgentPlaybookInput as a5, type ConnectionReceiveInput as a6, type CreateAgentInstanceOptions as a7, type CreateConversationOptions as a8, type CustomProvisionedAgent as a9, FOUNDRY_AGENT_ROUTE_ENV as aA, FOUNDRY_APPLICATION_ENV as aB, FOUNDRY_APPROVAL_DIRECTORY_ENV as aC, FOUNDRY_COMPOSED_PLAYBOOK_BRAND as aD, FOUNDRY_CONNECTION_BRAND as aE, FOUNDRY_CORE_COMMAND_EVENT as aF, FOUNDRY_EVENT_PREFIX as aG, FOUNDRY_EXECUTION_MARKER as aH, FOUNDRY_LAYER_BRAND as aI, FOUNDRY_MCP_BRAND as aJ, FOUNDRY_MEMORY_BRAND as aK, FOUNDRY_PLAYBOOK_ACTION_BRAND as aL, FOUNDRY_REPL_BRAND as aM, FOUNDRY_SCHEDULE_BRAND as aN, FOUNDRY_SHARED_TOOL_BRAND as aO, FOUNDRY_SUBSCRIBER_BRAND as aP, FOUNDRY_TRANSMISSION_BRAND as aQ, FOUNDRY_TRANSMISSION_EVENT_BRAND as aR, FOUNDRY_TRANSMISSION_PREDICATE_BRAND as aS, FOUNDRY_WORKING_ENVIRONMENT_BRAND as aT, type FoundryAccountSessionAdapter as aU, type FoundryAgent as aV, type FoundryAgentComponent as aW, type FoundryAgentComposition as aX, type FoundryAgentConventionModule as aY, type FoundryAgentDefinition as aZ, type FoundryAgentMode as a_, type CustomProvisioningContext as aa, DEFAULT_APPROVAL_EXPIRES_AFTER_MS as ab, DEFAULT_APPROVAL_WAIT_MS as ac, type DefineAgentOptions as ad, type DefineConnectionOptions as ae, type DefineFoundryReplOptions as af, type DefineFoundryScheduleOptions as ag, type DefineFoundrySubagentOptions as ah, type DefineFoundryWorkingEnvironmentOptions as ai, type DefinePlaybookSubscriptionOptions as aj, type DefinitionConfigInput as ak, type DurableSubagentOptions as al, type DurableSubagentOwnership as am, type DurableSubagents as an, EMPTY_AGENT_COMPOSITION as ao, EMPTY_CAPABILITY_REGISTRY as ap, EMPTY_NATIVE_REGISTRY as aq, type EgressAdapter as ar, type EgressContext as as, EventId as at, EventNotFound as au, EventReference as av, FOUNDRY_AGENT_APPLICATION_BRAND as aw, FOUNDRY_AGENT_BRAND as ax, FOUNDRY_AGENT_DEFINITION_BRAND as ay, FOUNDRY_AGENT_FILE_ENV as az, type FoundryDataAdapter as b, type FoundryProgrammaticTools as b$, type FoundryAppMcp as b0, type FoundryAppMcpTool as b1, type FoundryAppToolDecision as b2, type FoundryApplicationConnection as b3, type FoundryApprovalDecision as b4, FoundryApprovalDisplayManager as b5, type FoundryApprovalPolicy as b6, type FoundryApprovalStatus as b7, type FoundryCall as b8, type FoundryCallContext as b9, type FoundryJavaScriptReplDefinition as bA, type FoundryLayer as bB, type FoundryLayerOptions as bC, type FoundryLayerReference as bD, type FoundryLayerSelection as bE, type FoundryLispReplDefinition as bF, type FoundryListResolver as bG, type FoundryMcp as bH, type FoundryMcpOptions as bI, type FoundryMemoryProfile as bJ, type FoundryMemoryProfileOptions as bK, type FoundryMemoryReference as bL, type FoundryMemorySelection as bM, type FoundryMeshConfig as bN, type FoundryMeshOptions as bO, type FoundryMeshParty as bP, type FoundryMeshThread as bQ, type FoundryMeshThreadStatus as bR, type FoundryMessageInput as bS, type FoundryMessageOptions as bT, type FoundryMountedRepl as bU, type FoundryNativeManifest as bV, type FoundryNativeManifestEntry as bW, type FoundryNativeRegistry as bX, type FoundryPlaybookAction as bY, type FoundryProgrammaticToolContext as bZ, type FoundryProgrammaticToolSelection as b_, type FoundryCallOptions as ba, type FoundryCapabilityKind as bb, type FoundryCapabilityManifest as bc, type FoundryCapabilityManifestEntry as bd, type FoundryCapabilityRegistry as be, type FoundryCompositionSource as bf, type FoundryContextProvider as bg, type FoundryCoreCommand as bh, type FoundryDelegate as bi, type FoundryDelegateOptions as bj, type FoundryDelegation as bk, type FoundryDelegationReply as bl, type FoundryDelegationStatus as bm, type FoundryDomainError as bn, type FoundryEventPolicy as bo, type FoundryEventTarget as bp, type FoundryExecutionContext as bq, type FoundryFactsOptions as br, type FoundryFormsOptions as bs, type FoundryGoalsOptions as bt, type FoundryGuidanceHandles as bu, type FoundryGuidanceScope as bv, type FoundryHookDefinition as bw, type FoundryInstallable as bx, type FoundryInstalledApp as by, type FoundryInstanceProvisioner as bz, type AgentInstance as c, type TransmissionPredicateOptions as c$, type FoundryPythonReplDefinition as c0, type FoundryReplApp as c1, type FoundryReplDefinition as c2, type FoundryRequest as c3, type FoundryResolvedMcp as c4, type FoundryResolver as c5, type FoundryResult as c6, type FoundryRouteMap as c7, type FoundryScheduleDefinition as c8, type FoundryScheduleTiming as c9, type IngressAdapter as cA, type IngressContext as cB, type InstallationSelection as cC, type McpAdapterFactory as cD, MemoryFoundryDataAdapter as cE, type OutboundContract as cF, type PlaybookActionOptions as cG, type PlaybookDirective as cH, type PlaybookDirectiveInput as cI, type PlaybookMatch as cJ, type PlaybookMatchInput as cK, type PlaybookOutboundDirective as cL, type PlaybookOutboundInput as cM, type PlaybookSubscriptionTarget as cN, type PlaybookSubscriptionTargetInput as cO, ReplyPolicy as cP, Route as cQ, RouteId as cR, RouteNotFound as cS, RunGrant as cT, RunId as cU, type SharedToolOptions as cV, TopologyConflict as cW, type TransmissionEventDirection as cX, type TransmissionEventOptions as cY, TransmissionId as cZ, type TransmissionOptions as c_, type FoundryScheduleTimingInput as ca, type FoundrySharedTool as cb, type FoundrySubagentToolContext as cc, type FoundrySubscriber as cd, type FoundrySubscriberOptions as ce, type FoundrySubscriberSelection as cf, type FoundrySurfaceContext as cg, type FoundrySuspension as ch, type FoundryToolBody as ci, type FoundryTransmission as cj, type FoundryTransmissionDelivery as ck, type FoundryTransmissionEvent as cl, type FoundryTransmissionPredicate as cm, type FoundryVfs as cn, type FoundryVfsHandle as co, type FoundryWorkingEnvironmentCreateContext as cp, type FoundryWorkingEnvironmentDefinition as cq, type FoundryWorkingEnvironmentPersistenceAdapter as cr, type FoundryWorkingEnvironmentPersistenceContext as cs, GrantResolutionError as ct, type InboundContract as cu, type InferAgentInput as cv, type InferAgentOutput as cw, type InferInboundEvent as cx, type InferOutboundInput as cy, type InferOutboundOutput as cz, type FoundryActivationRecord as d, restrictApp as d$, type TransmissionSerializationContext as d0, type UpdateAgentInstanceOptions as d1, type UpdateConversationOptions as d2, composeAgent as d3, composePlaybook as d4, configureLayer as d5, configureMemory as d6, createAgentInstance as d7, createConversation as d8, createFoundryApproval as d9, defineTransmissionPredicate as dA, defineWorkingEnvironment as dB, foundryDataEnvironmentPersistence as dC, foundryGuidanceSubject as dD, hostedMeshOptions as dE, install as dF, installRegistry as dG, installationKey as dH, installedApplicationTransmissionToolName as dI, internalAgentName as dJ, isFoundryAgent as dK, isFoundryAgentDefinition as dL, isFoundryCapability as dM, isFoundryLayer as dN, isFoundrySchedule as dO, isFoundrySubscriber as dP, isFoundryTransmission as dQ, isInboxCapableStore as dR, isMeshTransport as dS, listFoundryApprovals as dT, meshIdentity as dU, mountAgentDefinitionMemory as dV, mountFoundrySurfaces as dW, reconstructAgentInstance as dX, reconstructPlaybook as dY, reconstructPlaybookSubscription as dZ, resolveFoundryApproval as d_, createFoundryCoreTools as da, createInstalledApplicationTransmissionTools as db, defineAgent as dc, defineAgentApplication as dd, defineAgentFromModule as de, defineAgentInstance as df, defineApp as dg, defineCall as dh, defineConnection as di, defineFacts as dj, defineForms as dk, defineGoals as dl, defineLayer as dm, defineMcp as dn, defineMemory as dp, definePlaybookAction as dq, definePlaybookSubscription as dr, defineRepl as ds, defineRoutes as dt, defineSchedule as du, defineSharedTool as dv, defineSubagent as dw, defineSubscriber as dx, defineTransmission as dy, defineTransmissionEvent as dz, type ProvisionAgentOptions as e, routeFromInternalAgentName as e0, toGloveMessage as e1, toGloveRequestInput as e2, transmissionPredicate as e3, withFoundryPermissions as e4, type FoundryEventRecord as f, type FoundryPendingInbound as g, type FoundryApproval as h, type FoundryWorkingEnvironmentSnapshotOwner as i, type FoundryTask as j, type AgentPlaybook as k, type AnyFoundryTransmission as l, AccountReference as m, type InferAccountMetadata as n, AgentBinding as o, type FoundryAgentApplication as p, InboundRoute as q, type CapabilityDefinition as r, type InferInboundConfig as s, type InferOutboundConfig as t, type AccountContract as u, AccountId as v, AccountNotFound as w, AccountSessionUnavailable as x, AccountSummary as y, type AgentApplicationContribution as z };
|
|
2528
|
+
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, toGloveMessage as e7, toGloveRequestInput as e8, transmissionPredicate as e9, withFoundryPermissions as ea, 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 };
|
package/dist/execution-daemon.js
CHANGED
|
@@ -167,13 +167,6 @@ export default await loadExecutionAgent(${JSON.stringify(agent.route)}, ${JSON.s
|
|
|
167
167
|
else throw error;
|
|
168
168
|
}
|
|
169
169
|
break;
|
|
170
|
-
case "schedule.add":
|
|
171
|
-
await schedules.add(command.schedule);
|
|
172
|
-
value = null;
|
|
173
|
-
break;
|
|
174
|
-
case "schedule.delete":
|
|
175
|
-
value = await schedules.delete(command.id);
|
|
176
|
-
break;
|
|
177
170
|
case "ping":
|
|
178
171
|
value = Boolean(client && (await client.health()).ok);
|
|
179
172
|
break;
|
package/dist/execution-loader.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
toGloveMessage,
|
|
31
31
|
toGloveRequestInput,
|
|
32
32
|
withFoundryPermissions
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T6YLIGER.js";
|
|
34
34
|
import {
|
|
35
35
|
FOUNDRY_CONVERSATION_LEASE_EVENT,
|
|
36
36
|
FOUNDRY_CONVERSATION_LISTEN_EVENT,
|
|
@@ -87,6 +87,38 @@ import { mountMesh } from "glove-mesh";
|
|
|
87
87
|
import { Effect } from "effect";
|
|
88
88
|
import { signal } from "station-signal";
|
|
89
89
|
import { z } from "zod";
|
|
90
|
+
|
|
91
|
+
// src/assembly-trace.ts
|
|
92
|
+
var FOUNDRY_ASSEMBLY_COMPOSED_EVENT = "foundry.assembly.composed";
|
|
93
|
+
function assemblyRecorder(glove, now = Date.now) {
|
|
94
|
+
const started = now();
|
|
95
|
+
let last = started;
|
|
96
|
+
const known = /* @__PURE__ */ new Set();
|
|
97
|
+
const steps = [];
|
|
98
|
+
return {
|
|
99
|
+
mark(step, label, options = {}) {
|
|
100
|
+
const names = (options.glove ?? glove).tools.map((tool) => tool.name);
|
|
101
|
+
const added = names.filter((name) => !known.has(name));
|
|
102
|
+
for (const name of names) known.add(name);
|
|
103
|
+
const at = now();
|
|
104
|
+
const ms = at - last;
|
|
105
|
+
last = at;
|
|
106
|
+
if (!added.length && ms < 1 && !options.keep) return;
|
|
107
|
+
steps.push({
|
|
108
|
+
step,
|
|
109
|
+
label,
|
|
110
|
+
...options.kind ? { kind: options.kind } : {},
|
|
111
|
+
...options.id ? { id: options.id } : {},
|
|
112
|
+
tools: added,
|
|
113
|
+
ms
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
steps,
|
|
117
|
+
elapsedMs: () => now() - started
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// src/agent-runtime.ts
|
|
90
122
|
var DEFAULT_ANSWER_WAIT_MS = 9e4;
|
|
91
123
|
var INBOX_ITEMS_SCHEMA = z.array(z.object({
|
|
92
124
|
id: z.string().min(1),
|
|
@@ -396,6 +428,8 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
396
428
|
...definition.enableToolResultSummary !== void 0 ? { enableToolResultSummary: definition.enableToolResultSummary } : {}
|
|
397
429
|
}).build();
|
|
398
430
|
base.addSubscriber(subscriber);
|
|
431
|
+
const assembly = assemblyRecorder(base);
|
|
432
|
+
assembly.mark("glove", "Glove built-ins");
|
|
399
433
|
const [tools, hooks, skills, subagents, delegates, memory, inboxItems, layers, subscribers, calls, playbooks, schedules, mesh, workingEnvironment, repl] = await Promise.all([
|
|
400
434
|
resolveOptional("tools", definition.tools, []),
|
|
401
435
|
resolveOptional("hooks", definition.hooks, []),
|
|
@@ -491,6 +525,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
491
525
|
playbooks: desiredPlaybooks,
|
|
492
526
|
applications: registry.capabilities.applications
|
|
493
527
|
})) base.fold(tool);
|
|
528
|
+
assembly.mark("foundry-core", "Foundry core tools");
|
|
494
529
|
const applicationTransmissionTools = createInstalledApplicationTransmissionTools(
|
|
495
530
|
assemblyContext,
|
|
496
531
|
registry.capabilities.applications,
|
|
@@ -498,6 +533,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
498
533
|
desiredPlaybooks
|
|
499
534
|
);
|
|
500
535
|
for (const tool of applicationTransmissionTools) base.fold(tool);
|
|
536
|
+
assembly.mark("transmissions", "App transmissions");
|
|
501
537
|
if (applicationTransmissionTools.length > 0) {
|
|
502
538
|
controls.emit({
|
|
503
539
|
type: "foundry.application.transmission-tools.mounted",
|
|
@@ -510,6 +546,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
510
546
|
for (const hook of hooks) base.defineHook(hook.name, hook.handler);
|
|
511
547
|
for (const skill of skills) base.defineSkill(skill);
|
|
512
548
|
for (const subagent of subagents) base.defineSubAgent(subagent);
|
|
549
|
+
assembly.mark("definition", "Definition tools, skills and subagents");
|
|
513
550
|
const mailboxDirectory = process.env[FOUNDRY_MAILBOX_DIRECTORY_ENV];
|
|
514
551
|
const emitDelegationCommand = (command) => {
|
|
515
552
|
controls.commands.push(command);
|
|
@@ -676,7 +713,9 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
676
713
|
const pendingReply = {};
|
|
677
714
|
const ownThread = assemblyContext.thread;
|
|
678
715
|
const hostedMesh = hostedMeshOptions(definition.mesh);
|
|
679
|
-
if (
|
|
716
|
+
if (ownDelegation || normalizedDelegates.length || durableNames.length) assembly.mark("delegation", "Delegation");
|
|
717
|
+
const meshHosted = Boolean(hostedMesh && (hostedMesh.mount?.(assemblyContext) ?? true));
|
|
718
|
+
if (hostedMesh && meshHosted) {
|
|
680
719
|
for (const tool of createMeshTools({
|
|
681
720
|
definitionId: id,
|
|
682
721
|
agentId: request.agentId,
|
|
@@ -691,6 +730,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
691
730
|
type: "foundry.mesh.mounted",
|
|
692
731
|
data: { open: assemblyContext.threads.length, thread: ownThread?.id ?? null }
|
|
693
732
|
});
|
|
733
|
+
assembly.mark("mesh", "Hosted mesh");
|
|
694
734
|
}
|
|
695
735
|
if (hostedMesh || assemblyContext.threads.length > 0 || ownThread) {
|
|
696
736
|
base.addContextProvider(() => [
|
|
@@ -709,6 +749,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
709
749
|
apps: () => installedApps
|
|
710
750
|
});
|
|
711
751
|
cleanups.push(workbench.dispose);
|
|
752
|
+
assembly.mark("workbench", "Working environment");
|
|
712
753
|
const callByName = /* @__PURE__ */ new Map();
|
|
713
754
|
const invoke = async (name, callInput) => {
|
|
714
755
|
const call = callByName.get(name);
|
|
@@ -749,6 +790,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
749
790
|
guidance.dispose();
|
|
750
791
|
}
|
|
751
792
|
});
|
|
793
|
+
assembly.mark("guidance", "Goals, facts and forms");
|
|
752
794
|
const callContext = {
|
|
753
795
|
...surfaceContext,
|
|
754
796
|
...guidance.handles,
|
|
@@ -795,12 +837,14 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
795
837
|
});
|
|
796
838
|
}
|
|
797
839
|
}
|
|
840
|
+
assembly.mark("calls", "Calls");
|
|
798
841
|
disposeSurfaces = await mountFoundrySurfaces({
|
|
799
842
|
registry: registry.native,
|
|
800
843
|
layers,
|
|
801
844
|
subscribers,
|
|
802
845
|
context: surfaceContext
|
|
803
846
|
});
|
|
847
|
+
assembly.mark("surfaces", "Layers and subscribers");
|
|
804
848
|
await Effect.runPromise(
|
|
805
849
|
installRegistry({
|
|
806
850
|
registry: registry.capabilities,
|
|
@@ -830,7 +874,14 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
830
874
|
messages,
|
|
831
875
|
glove: base,
|
|
832
876
|
store: base.store,
|
|
833
|
-
|
|
877
|
+
// Each installation's tools are folded just before it reports completing.
|
|
878
|
+
emit: (event) => {
|
|
879
|
+
if (event.type === "foundry.installation.completed") {
|
|
880
|
+
const installed = event.data;
|
|
881
|
+
assembly.mark("installation", installed.id ?? "installation", { keep: true, ...installed.kind ? { kind: installed.kind } : {}, ...installed.id ? { id: installed.id } : {} });
|
|
882
|
+
}
|
|
883
|
+
controls.emit(event);
|
|
884
|
+
}
|
|
834
885
|
},
|
|
835
886
|
...definition.mcpAdapter ? { mcpAdapter: definition.mcpAdapter } : {},
|
|
836
887
|
...definition.accountSessions ? { accountSessions: definition.accountSessions } : {},
|
|
@@ -842,6 +893,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
842
893
|
}
|
|
843
894
|
})
|
|
844
895
|
);
|
|
896
|
+
assembly.mark("mcp", "MCP servers");
|
|
845
897
|
await Effect.runPromise(
|
|
846
898
|
mountAgentDefinitionMemory({
|
|
847
899
|
registry: registry.capabilities,
|
|
@@ -865,6 +917,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
865
917
|
}
|
|
866
918
|
})
|
|
867
919
|
);
|
|
920
|
+
assembly.mark("memory", "Memory");
|
|
868
921
|
if (definition.inboxes) {
|
|
869
922
|
await hydrateInbox(base.store, inboxItems, controls.emit);
|
|
870
923
|
}
|
|
@@ -888,12 +941,16 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
888
941
|
}
|
|
889
942
|
});
|
|
890
943
|
cleanups.push(() => mesh.adapter.unregister());
|
|
944
|
+
assembly.mark("mesh", "Mesh transport");
|
|
891
945
|
}
|
|
892
946
|
if (definition.configure) {
|
|
893
947
|
await resolveResolvable(definition.configure(base, callContext));
|
|
948
|
+
assembly.mark("configure", "configure()");
|
|
894
949
|
}
|
|
895
950
|
await workbench.mountRepl();
|
|
951
|
+
assembly.mark("repl", "REPL");
|
|
896
952
|
const glove = definition.build ? await resolveResolvable(definition.build(base, assemblyContext)) ?? base : base;
|
|
953
|
+
if (glove !== base) assembly.mark("build", "build()", { glove });
|
|
897
954
|
if (glove !== base) {
|
|
898
955
|
base.removeSubscriber(subscriber);
|
|
899
956
|
base.removeSubscriber(deliverySubscriber);
|
|
@@ -905,6 +962,30 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
905
962
|
glove.removeSubscriber(deliverySubscriber);
|
|
906
963
|
});
|
|
907
964
|
eventRecipient = glove;
|
|
965
|
+
controls.emit({
|
|
966
|
+
type: FOUNDRY_ASSEMBLY_COMPOSED_EVENT,
|
|
967
|
+
data: {
|
|
968
|
+
durationMs: assembly.elapsedMs(),
|
|
969
|
+
steps: assembly.steps,
|
|
970
|
+
tools: glove.tools.map((tool) => tool.name),
|
|
971
|
+
installations: effectiveInstallations.map((installation) => ({ kind: installation.kind, id: installation.id, ...installation.accountId ? { accountId: installation.accountId } : {} })),
|
|
972
|
+
apps: installedApps.map((app) => ({ id: app.id, description: app.description, ...app.accountId ? { accountId: app.accountId } : {}, tools: app.tools })),
|
|
973
|
+
playbooks: desiredPlaybooks.map((playbook) => ({ id: playbook.id, ...playbook.playbookName ? { name: playbook.playbookName } : {} })),
|
|
974
|
+
schedules: desiredSchedules.map((schedule) => ({ name: schedule.name, timing: schedule.timing, enabled: schedule.enabled })),
|
|
975
|
+
delegates: normalizedDelegates.map((delegate) => ({ agent: delegate.agent, ...delegate.description ? { description: delegate.description } : {} })),
|
|
976
|
+
durableSubagents: durableNames,
|
|
977
|
+
openDelegations: assemblyContext.delegations.length,
|
|
978
|
+
...ownDelegation ? { delegation: { id: ownDelegation.id, from: ownDelegation.from.definitionId, task: ownDelegation.task } } : {},
|
|
979
|
+
mesh: { hosted: meshHosted, transport: Boolean(mesh), threads: assemblyContext.threads.length, ...ownThread ? { thread: ownThread.id } : {} },
|
|
980
|
+
hooks: hooks.map((hook) => hook.name),
|
|
981
|
+
skills: skills.map((skill) => skill.name),
|
|
982
|
+
subagents: subagents.map((subagent) => subagent.name),
|
|
983
|
+
calls: calls.map((call) => ({ name: call.name, exposed: call.exposeToAgent ?? true })),
|
|
984
|
+
workingEnvironment: Boolean(workbench.workingEnvironment),
|
|
985
|
+
repl: Boolean(workbench.repl),
|
|
986
|
+
events: { initial: initialDeliveries.length, buffered: bufferedDeliveries.length }
|
|
987
|
+
}
|
|
988
|
+
});
|
|
908
989
|
await forwardDeliveries(bufferedDeliveries.splice(0));
|
|
909
990
|
const runtimeContext = { ...callContext, glove };
|
|
910
991
|
let initialEventsPending = initialDeliveries.length > 0;
|
|
@@ -1015,7 +1096,9 @@ function compileAgentDefinition(definition, route) {
|
|
|
1015
1096
|
id: z.string().optional(),
|
|
1016
1097
|
provider: z.string().optional(),
|
|
1017
1098
|
eventId: z.string().optional(),
|
|
1018
|
-
threadKey: z.string().optional()
|
|
1099
|
+
threadKey: z.string().optional(),
|
|
1100
|
+
occurrenceId: z.string().optional(),
|
|
1101
|
+
scheduledFor: z.string().optional()
|
|
1019
1102
|
}).optional()
|
|
1020
1103
|
});
|
|
1021
1104
|
const executionEnvelope = z.object({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as FoundryDataAdapter, E as EnvironmentValue, c as AgentInstance, C as Conversation, P as PlaybookSubscription, d as FoundryActivationRecord, e as ProvisionAgentOptions, I as InboundDeliveryClaim, f as FoundryEventRecord, g as
|
|
2
|
-
export {
|
|
1
|
+
import { b as FoundryDataAdapter, E as EnvironmentValue, c as AgentInstance, C as Conversation, P as PlaybookSubscription, d as FoundryActivationRecord, e as ProvisionAgentOptions, I as InboundDeliveryClaim, f as FoundryEventRecord, g as FoundryScheduleOccurrence, h as FoundryScheduleOccurrenceFilter, i as FoundryPendingInbound, j as FoundryApproval, W as WorkspaceEntry, k as FoundryWorkingEnvironmentSnapshotOwner, S as SharedInboxItem, l as FoundryTask, m as AgentPlaybook, n as AnyFoundryTransmission, o as AccountReference, p as InferAccountMetadata, q as AgentBinding, r as FoundryAgentApplication, s as InboundRoute, O as OutboundRoute, t as CapabilityDefinition, u as InferInboundConfig, v as InferOutboundConfig } from './event-delivery-a9B1Qq_u.js';
|
|
2
|
+
export { w as AccountContract, x as AccountId, y as AccountNotFound, z as AccountSessionUnavailable, B as AccountSummary, D as AgentApplicationContribution, G as AgentApplicationInstallContext, H as AgentApplicationOptions, J as AgentAssemblyContext, K as AgentAssemblyOptions, L as AgentDefinitionId, M as AgentDefinitionSurfaceContext, N as AgentFactoryContext, A as AgentHandlerContext, Q as AgentId, R as AgentInstallContext, T as AgentInstallation, U as AgentInstallationKind, V as AgentMessageReceipt, X as AgentPlaybookInput, Y as AgentProvisioningPolicy, Z as AgentRuntimeControls, _ as AnyFoundryAgent, $ as AppRestrictions, a0 as ApplicationConnectionContext, a1 as ApplicationConnectionState, a2 as ApplicationConnectionStatus, a3 as BindingId, a4 as BindingNotFound, a5 as CapabilityId, a6 as ComposedAgentPlaybook, a7 as ComposedAgentPlaybookInput, a8 as ConnectionReceiveInput, a9 as CreateAgentInstanceOptions, aa as CreateConversationOptions, ab as CustomProvisionedAgent, ac as CustomProvisioningContext, ad as DEFAULT_APPROVAL_EXPIRES_AFTER_MS, ae as DEFAULT_APPROVAL_WAIT_MS, af as DefineAgentOptions, ag as DefineConnectionOptions, ah as DefineFoundryReplOptions, ai as DefineFoundryScheduleOptions, aj as DefineFoundrySubagentOptions, ak as DefineFoundryWorkingEnvironmentOptions, al as DefinePlaybookSubscriptionOptions, am as DefinitionConfigInput, an as DurableSubagentOptions, ao as DurableSubagentOwnership, ap as DurableSubagents, aq as EMPTY_AGENT_COMPOSITION, ar as EMPTY_CAPABILITY_REGISTRY, as as EMPTY_NATIVE_REGISTRY, at as EgressAdapter, au as EgressContext, av as EventId, aw as EventNotFound, ax as EventReference, ay as FOUNDRY_AGENT_APPLICATION_BRAND, az as FOUNDRY_AGENT_BRAND, aA as FOUNDRY_AGENT_DEFINITION_BRAND, aB as FOUNDRY_AGENT_FILE_ENV, aC as FOUNDRY_AGENT_ROUTE_ENV, aD as FOUNDRY_APPLICATION_ENV, aE as FOUNDRY_APPROVAL_DIRECTORY_ENV, aF as FOUNDRY_COMPOSED_PLAYBOOK_BRAND, aG as FOUNDRY_CONNECTION_BRAND, aH as FOUNDRY_CORE_COMMAND_EVENT, aI as FOUNDRY_EVENT_PREFIX, aJ as FOUNDRY_EXECUTION_MARKER, aK as FOUNDRY_LAYER_BRAND, aL as FOUNDRY_MCP_BRAND, aM as FOUNDRY_MEMORY_BRAND, aN as FOUNDRY_PLAYBOOK_ACTION_BRAND, aO as FOUNDRY_REPL_BRAND, aP as FOUNDRY_SCHEDULE_BRAND, aQ as FOUNDRY_SHARED_TOOL_BRAND, aR as FOUNDRY_SUBSCRIBER_BRAND, aS as FOUNDRY_TRANSMISSION_BRAND, aT as FOUNDRY_TRANSMISSION_EVENT_BRAND, aU as FOUNDRY_TRANSMISSION_PREDICATE_BRAND, aV as FOUNDRY_WORKING_ENVIRONMENT_BRAND, aW as FoundryAccountSessionAdapter, aX as FoundryAgent, aY as FoundryAgentComponent, aZ as FoundryAgentComposition, a_ as FoundryAgentConventionModule, a$ as FoundryAgentDefinition, b0 as FoundryAgentMode, b1 as FoundryApp, b2 as FoundryAppMcp, b3 as FoundryAppMcpTool, b4 as FoundryAppToolDecision, b5 as FoundryApplicationConnection, b6 as FoundryApprovalDecision, b7 as FoundryApprovalDisplayManager, b8 as FoundryApprovalPolicy, b9 as FoundryApprovalStatus, ba as FoundryCall, bb as FoundryCallContext, bc as FoundryCallOptions, bd as FoundryCapabilityKind, be as FoundryCapabilityManifest, bf as FoundryCapabilityManifestEntry, bg as FoundryCapabilityRegistry, bh as FoundryCompositionSource, bi as FoundryContextProvider, bj as FoundryCoreCommand, bk as FoundryDelegate, bl as FoundryDelegateOptions, bm as FoundryDelegation, bn as FoundryDelegationReply, bo as FoundryDelegationStatus, F as FoundryDelegationUpdate, bp as FoundryDomainError, bq as FoundryEventPolicy, br as FoundryEventTarget, bs as FoundryExecutionContext, bt as FoundryFactsOptions, bu as FoundryFormsOptions, bv as FoundryGoalsOptions, bw as FoundryGuidanceHandles, bx as FoundryGuidanceScope, by as FoundryHookDefinition, bz as FoundryInstallable, bA as FoundryInstalledApp, bB as FoundryInstanceProvisioner, bC as FoundryJavaScriptReplDefinition, bD as FoundryLayer, bE as FoundryLayerOptions, bF as FoundryLayerReference, bG as FoundryLayerSelection, bH as FoundryLispReplDefinition, bI as FoundryListResolver, bJ as FoundryMcp, bK as FoundryMcpOptions, bL as FoundryMemoryProfile, bM as FoundryMemoryProfileOptions, bN as FoundryMemoryReference, bO as FoundryMemorySelection, bP as FoundryMeshConfig, a as FoundryMeshMessage, bQ as FoundryMeshOptions, bR as FoundryMeshParty, bS as FoundryMeshThread, bT as FoundryMeshThreadStatus, bU as FoundryMessageInput, bV as FoundryMessageOptions, bW as FoundryMountedRepl, bX as FoundryNativeManifest, bY as FoundryNativeManifestEntry, bZ as FoundryNativeRegistry, b_ as FoundryPlaybookAction, b$ as FoundryProgrammaticToolContext, c0 as FoundryProgrammaticToolSelection, c1 as FoundryProgrammaticTools, c2 as FoundryPythonReplDefinition, c3 as FoundryReplApp, c4 as FoundryReplDefinition, c5 as FoundryRequest, c6 as FoundryResolvedMcp, c7 as FoundryResolver, c8 as FoundryResult, c9 as FoundryRouteMap, ca as FoundryScheduleDefinition, cb as FoundryScheduleMisfirePolicy, cc as FoundryScheduleOccurrenceStatus, cd as FoundryScheduleTiming, ce as FoundryScheduleTimingInput, cf as FoundrySharedTool, cg as FoundrySubagentToolContext, ch as FoundrySubscriber, ci as FoundrySubscriberOptions, cj as FoundrySubscriberSelection, ck as FoundrySurfaceContext, cl as FoundrySuspension, cm as FoundryToolBody, cn as FoundryTransmission, co as FoundryTransmissionDelivery, cp as FoundryTransmissionEvent, cq as FoundryTransmissionPredicate, cr as FoundryVfs, cs as FoundryVfsHandle, ct as FoundryWorkingEnvironmentCreateContext, cu as FoundryWorkingEnvironmentDefinition, cv as FoundryWorkingEnvironmentPersistenceAdapter, cw as FoundryWorkingEnvironmentPersistenceContext, cx as GrantResolutionError, cy as InboundContract, cz as InferAgentInput, cA as InferAgentOutput, cB as InferInboundEvent, cC as InferOutboundInput, cD as InferOutboundOutput, cE as IngressAdapter, cF as IngressContext, cG as InstallationSelection, cH as McpAdapterFactory, cI as MemoryFoundryDataAdapter, cJ as OutboundContract, cK as PlaybookActionOptions, cL as PlaybookDirective, cM as PlaybookDirectiveInput, cN as PlaybookMatch, cO as PlaybookMatchInput, cP as PlaybookOutboundDirective, cQ as PlaybookOutboundInput, cR as PlaybookSubscriptionTarget, cS as PlaybookSubscriptionTargetInput, cT as ReplyPolicy, cU as Route, cV as RouteId, cW as RouteNotFound, cX as RunGrant, cY as RunId, cZ as SharedToolOptions, c_ as TopologyConflict, c$ as TransmissionEventDirection, d0 as TransmissionEventOptions, d1 as TransmissionId, d2 as TransmissionOptions, d3 as TransmissionPredicateOptions, d4 as TransmissionSerializationContext, d5 as UpdateAgentInstanceOptions, d6 as UpdateConversationOptions, d7 as activationScheduleRevision, d8 as composeAgent, d9 as composePlaybook, da as configureLayer, db as configureMemory, dc as createAgentInstance, dd as createConversation, de as createFoundryApproval, df as createFoundryCoreTools, dg as createInstalledApplicationTransmissionTools, dh as defineAgent, di as defineAgentApplication, dj as defineAgentFromModule, dk as defineAgentInstance, dl as defineApp, dm as defineCall, dn as defineConnection, dp as defineFacts, dq as defineForms, dr as defineGoals, ds as defineLayer, dt as defineMcp, du as defineMemory, dv as definePlaybookAction, dw as definePlaybookSubscription, dx as defineRepl, dy as defineRoutes, dz as defineSchedule, dA as defineSharedTool, dB as defineSubagent, dC as defineSubscriber, dD as defineTransmission, dE as defineTransmissionEvent, dF as defineTransmissionPredicate, dG as defineWorkingEnvironment, dH as foundryDataEnvironmentPersistence, dI as foundryGuidanceSubject, dJ as hostedMeshOptions, dK as install, dL as installRegistry, dM as installationKey, dN as installedApplicationTransmissionToolName, dO as internalAgentName, dP as isFoundryAgent, dQ as isFoundryAgentDefinition, dR as isFoundryCapability, dS as isFoundryLayer, dT as isFoundrySchedule, dU as isFoundrySubscriber, dV as isFoundryTransmission, dW as isInboxCapableStore, dX as isMeshTransport, dY as listFoundryApprovals, dZ as meshIdentity, d_ as mountAgentDefinitionMemory, d$ as mountFoundrySurfaces, e0 as reconstructAgentInstance, e1 as reconstructPlaybook, e2 as reconstructPlaybookSubscription, e3 as resolveFoundryApproval, e4 as restrictApp, e5 as routeFromInternalAgentName, e6 as scheduleOccurrenceId, e7 as toGloveMessage, e8 as toGloveRequestInput, e9 as transmissionPredicate, ea as withFoundryPermissions } from './event-delivery-a9B1Qq_u.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-Cj2wDXuc.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-Cj2wDXuc.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
|
+
claimScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<boolean, unknown, never>;
|
|
80
|
+
putScheduleOccurrence(occurrence: FoundryScheduleOccurrence): Effect.Effect<void, unknown, never>;
|
|
81
|
+
getScheduleOccurrence(id: string): Effect.Effect<FoundryScheduleOccurrence | null, unknown, never>;
|
|
82
|
+
listScheduleOccurrences(filter?: FoundryScheduleOccurrenceFilter): Effect.Effect<FoundryScheduleOccurrence[], unknown, never>;
|
|
79
83
|
putPendingInbound(record: FoundryPendingInbound): Effect.Effect<void, unknown, never>;
|
|
80
84
|
deletePendingInbound(id: string): Effect.Effect<void, unknown, never>;
|
|
81
85
|
listPendingInbound(): Effect.Effect<FoundryPendingInbound[], unknown, never>;
|
|
@@ -208,4 +212,4 @@ interface DefineBindingOptions extends Omit<AgentBinding, "id" | "agentId" | "tr
|
|
|
208
212
|
}
|
|
209
213
|
declare function defineBinding(options: DefineBindingOptions): AgentBinding;
|
|
210
214
|
|
|
211
|
-
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, FoundryServer, type FoundryServerOptions, FoundryTask, FoundryWorkingEnvironmentSnapshotOwner, InboundDeliveryClaim, InboundRoute, InferAccountMetadata, InferInboundConfig, InferOutboundConfig, OutboundRoute, PlaybookSubscription, ProvisionAgentOptions, SharedInboxItem, TopologyStore, WorkspaceEntry, defineAccount, defineBinding, defineInboundRoute, defineOutboundRoute, fileTopologyStore, serializeInboundTransmissionXml, writeGeneratedTypes };
|
|
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 };
|