glove-foundry 0.11.0 → 0.12.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-YCW66WKQ.js → chunk-DAYYZPVE.js} +569 -57
- package/dist/{chunk-LCDEHWRB.js → chunk-SEP6QFRK.js} +1 -1
- package/dist/{chunk-4WBQ7XVF.js → chunk-UGYXSWPE.js} +103 -2
- package/dist/{chunk-NWFOY3L7.js → chunk-WK2O4GIB.js} +1 -0
- package/dist/{chunk-2JCISE2U.js → chunk-WRGSTYBW.js} +18 -4
- package/dist/cli.js +4 -4
- package/dist/{client-B4Emyeek.d.ts → client-Dy6_aqsi.d.ts} +85 -6
- package/dist/client.d.ts +2 -2
- package/dist/{event-delivery-BfSL9sGo.d.ts → event-delivery-CWxarW6L.d.ts} +469 -254
- package/dist/execution-agent.js +1 -1
- package/dist/execution-daemon.js +1 -1
- package/dist/execution-loader.js +28 -10
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -5
- package/dist/voice.d.ts +1 -1
- package/dist/voice.js +2 -1
- package/package.json +6 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as glove_core from 'glove-core';
|
|
2
2
|
import { Displaymanager, DisplayManagerAdapter, Slot, StoreAdapter, Message, IGloveRunnable, GloveFoldArgs, Tool, SubscriberAdapter, RuntimeContextProvider, RuntimeContextOptions, ModelAdapter, HookHandler, DefineSkillArgs, DefineSubAgentArgs, InboxItem, ContentPart, AgentEvent } from 'glove-core';
|
|
3
|
+
import * as effect from 'effect';
|
|
3
4
|
import { Schema, Effect } from 'effect';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
import { AgentIdentity, MeshAdapter } from 'glove-mesh';
|
|
@@ -221,6 +222,14 @@ interface FoundryApproval {
|
|
|
221
222
|
readonly resumeRunId?: string;
|
|
222
223
|
/** The run that asked read the decision itself, so no resume is owed. */
|
|
223
224
|
readonly settledInRun?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* A mesh message the application's gate drafted. Approved, it is
|
|
227
|
+
* delivered; denied (or expired), it is dropped. The sender is not told.
|
|
228
|
+
*/
|
|
229
|
+
readonly mesh?: {
|
|
230
|
+
readonly threadId: string;
|
|
231
|
+
readonly messageId: string;
|
|
232
|
+
};
|
|
224
233
|
}
|
|
225
234
|
declare function createFoundryApproval(directory: string, input: {
|
|
226
235
|
readonly runId: string;
|
|
@@ -1021,258 +1030,6 @@ interface FoundryAccountSessionAdapter {
|
|
|
1021
1030
|
declare function installRegistry(options: InstallRegistryOptions): Effect.Effect<ReadonlyArray<AgentInstallation>, unknown, never>;
|
|
1022
1031
|
declare function isFoundryCapability(value: unknown): boolean;
|
|
1023
1032
|
|
|
1024
|
-
declare const FOUNDRY_WORKING_ENVIRONMENT_BRAND: unique symbol;
|
|
1025
|
-
declare const FOUNDRY_REPL_BRAND: unique symbol;
|
|
1026
|
-
type FoundryVfs = Vfs;
|
|
1027
|
-
type FoundryVfsHandle = EnvFsHandle;
|
|
1028
|
-
interface FoundryWorkingEnvironmentPersistenceContext {
|
|
1029
|
-
readonly definitionId: string;
|
|
1030
|
-
readonly agentId: string;
|
|
1031
|
-
readonly conversationId: string;
|
|
1032
|
-
readonly workspaceId: string;
|
|
1033
|
-
readonly runId: string;
|
|
1034
|
-
readonly data: FoundryDataAdapter;
|
|
1035
|
-
readonly signal: AbortSignal;
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
* Storage is deliberately adapter-owned. Foundry never chooses a database,
|
|
1039
|
-
* object store, locking policy, or credential lifecycle for an environment.
|
|
1040
|
-
*/
|
|
1041
|
-
interface FoundryWorkingEnvironmentPersistenceAdapter {
|
|
1042
|
-
readonly identifier: string;
|
|
1043
|
-
readonly load: (context: FoundryWorkingEnvironmentPersistenceContext) => Resolvable<EnvSnapshot | null>;
|
|
1044
|
-
readonly save: (snapshot: EnvSnapshot, context: FoundryWorkingEnvironmentPersistenceContext) => Resolvable<void>;
|
|
1045
|
-
}
|
|
1046
|
-
interface FoundryWorkingEnvironmentCreateContext {
|
|
1047
|
-
readonly assembly: AgentAssemblyContext<FoundryRequest>;
|
|
1048
|
-
readonly snapshot: EnvSnapshot | null;
|
|
1049
|
-
}
|
|
1050
|
-
interface DefineFoundryWorkingEnvironmentOptions {
|
|
1051
|
-
/**
|
|
1052
|
-
* Build the native Glove environment. Use this when creation itself needs
|
|
1053
|
-
* custom logic. The loaded snapshot is provided but never applied implicitly.
|
|
1054
|
-
*/
|
|
1055
|
-
readonly create?: (context: FoundryWorkingEnvironmentCreateContext) => Resolvable<WorkingEnvironment>;
|
|
1056
|
-
/**
|
|
1057
|
-
* Native environment options. When persistence returns a snapshot and no
|
|
1058
|
-
* filesystem is supplied, Foundry restores that snapshot automatically.
|
|
1059
|
-
*/
|
|
1060
|
-
readonly options?: CreateWorkingEnvironmentOptions | ((context: FoundryWorkingEnvironmentCreateContext) => Resolvable<CreateWorkingEnvironmentOptions>);
|
|
1061
|
-
readonly persistence?: FoundryWorkingEnvironmentPersistenceAdapter;
|
|
1062
|
-
/** Native mount behavior: prompt priming and optional tool prefix. */
|
|
1063
|
-
readonly mount?: Omit<MountWorkingEnvironmentConfig, "env">;
|
|
1064
|
-
/** Close worker/adaptor resources after the run. Default true. */
|
|
1065
|
-
readonly close?: boolean;
|
|
1066
|
-
}
|
|
1067
|
-
type FoundryWorkingEnvironmentDefinition = Readonly<DefineFoundryWorkingEnvironmentOptions> & {
|
|
1068
|
-
readonly [FOUNDRY_WORKING_ENVIRONMENT_BRAND]: true;
|
|
1069
|
-
};
|
|
1070
|
-
declare function defineWorkingEnvironment(options?: DefineFoundryWorkingEnvironmentOptions): FoundryWorkingEnvironmentDefinition;
|
|
1071
|
-
/**
|
|
1072
|
-
* Convenience persistence over the configured FoundryDataAdapter's private
|
|
1073
|
-
* snapshot seam. VFS contents never become public workspace entries.
|
|
1074
|
-
* Scope "agent" (default) keeps one snapshot per instance, "conversation" one
|
|
1075
|
-
* per conversation, and "workspace" one shared by every agent in the
|
|
1076
|
-
* workspace. Saves replace the snapshot, so with "workspace" the last run to
|
|
1077
|
-
* finish wins; give agents that write at the same time a live machine instead.
|
|
1078
|
-
*/
|
|
1079
|
-
declare function foundryDataEnvironmentPersistence(options?: {
|
|
1080
|
-
readonly scope?: "agent" | "conversation" | "workspace";
|
|
1081
|
-
}): FoundryWorkingEnvironmentPersistenceAdapter;
|
|
1082
|
-
interface FoundryReplBase {
|
|
1083
|
-
readonly [FOUNDRY_REPL_BRAND]: true;
|
|
1084
|
-
/**
|
|
1085
|
-
* Project an explicit set of the fully assembled agent's tools into the
|
|
1086
|
-
* sandbox as ordinary functions. Selection happens after applications,
|
|
1087
|
-
* installed capabilities, memory, mesh, calls, and `configure` have mounted.
|
|
1088
|
-
*
|
|
1089
|
-
* Returning the actual tool values keeps code relationships referential;
|
|
1090
|
-
* Foundry never accepts a second list of copied string ids here.
|
|
1091
|
-
*/
|
|
1092
|
-
readonly programmaticTools?: FoundryProgrammaticTools;
|
|
1093
|
-
}
|
|
1094
|
-
interface FoundryProgrammaticToolSelection {
|
|
1095
|
-
/** One of the exact live tools supplied to the selector context. */
|
|
1096
|
-
readonly tool: Tool<unknown>;
|
|
1097
|
-
/** Optional valid interpreter identifier when the tool name is unsuitable. */
|
|
1098
|
-
readonly name?: string;
|
|
1099
|
-
/** Informational effect hint used by capability discovery. */
|
|
1100
|
-
readonly readOnly?: boolean;
|
|
1101
|
-
/** Optional capability group used by progressive discovery. */
|
|
1102
|
-
readonly server?: string;
|
|
1103
|
-
readonly serverDescription?: string;
|
|
1104
|
-
readonly resultShape?: string;
|
|
1105
|
-
}
|
|
1106
|
-
/** An installed app, with its live tools ready to select into the REPL. */
|
|
1107
|
-
interface FoundryReplApp {
|
|
1108
|
-
readonly id: string;
|
|
1109
|
-
readonly description: string;
|
|
1110
|
-
readonly accountId?: string;
|
|
1111
|
-
/** Each tool grouped under the app, named for code, and marked when it only reads. */
|
|
1112
|
-
readonly tools: ReadonlyArray<FoundryProgrammaticToolSelection>;
|
|
1113
|
-
}
|
|
1114
|
-
interface FoundryProgrammaticToolContext {
|
|
1115
|
-
readonly assembly: AgentAssemblyContext<FoundryRequest>;
|
|
1116
|
-
readonly glove: IGloveRunnable;
|
|
1117
|
-
/** Snapshot of every tool mounted before the programmatic surface itself. */
|
|
1118
|
-
readonly tools: ReadonlyArray<Tool<unknown>>;
|
|
1119
|
-
/** The apps installed on this agent, one group per app. */
|
|
1120
|
-
readonly apps: ReadonlyArray<FoundryReplApp>;
|
|
1121
|
-
readonly workingEnvironment?: WorkingEnvironment;
|
|
1122
|
-
readonly vfs?: EnvFsHandle;
|
|
1123
|
-
}
|
|
1124
|
-
interface FoundryProgrammaticTools {
|
|
1125
|
-
/**
|
|
1126
|
-
* Select direct live tool references. A selection may decorate its callable
|
|
1127
|
-
* name and discovery metadata without replacing the underlying capability.
|
|
1128
|
-
*/
|
|
1129
|
-
readonly select: (context: FoundryProgrammaticToolContext) => Resolvable<ReadonlyArray<Tool<unknown> | FoundryProgrammaticToolSelection>>;
|
|
1130
|
-
/** Total underlying calls permitted during this assembled run. Default 50. */
|
|
1131
|
-
readonly maxCalls?: number;
|
|
1132
|
-
/**
|
|
1133
|
-
* Keep selected tools in the model's direct tool list as well. Default true.
|
|
1134
|
-
* Pass false to reach them only from code, which keeps a large app
|
|
1135
|
-
* catalogue out of context. A tool that needs approval always stays direct.
|
|
1136
|
-
*/
|
|
1137
|
-
readonly keepDirect?: boolean;
|
|
1138
|
-
}
|
|
1139
|
-
type FoundryJavaScriptReplDefinition = FoundryReplBase & Readonly<{
|
|
1140
|
-
readonly language: "javascript";
|
|
1141
|
-
readonly session: JsSession;
|
|
1142
|
-
readonly mount?: Omit<MountJsConfig, "session">;
|
|
1143
|
-
}>;
|
|
1144
|
-
type FoundryPythonReplDefinition = FoundryReplBase & Readonly<{
|
|
1145
|
-
readonly language: "python";
|
|
1146
|
-
readonly session: PySession;
|
|
1147
|
-
readonly mount?: Omit<MountPyConfig, "session">;
|
|
1148
|
-
}>;
|
|
1149
|
-
type FoundryLispReplDefinition = FoundryReplBase & Readonly<{
|
|
1150
|
-
readonly language: "lisp";
|
|
1151
|
-
readonly session: LispSession;
|
|
1152
|
-
readonly mount?: Omit<MountLispConfig, "session">;
|
|
1153
|
-
}>;
|
|
1154
|
-
type FoundryReplDefinition = FoundryJavaScriptReplDefinition | FoundryPythonReplDefinition | FoundryLispReplDefinition;
|
|
1155
|
-
type DefineFoundryReplOptions = Omit<FoundryJavaScriptReplDefinition, typeof FOUNDRY_REPL_BRAND> | Omit<FoundryPythonReplDefinition, typeof FOUNDRY_REPL_BRAND> | Omit<FoundryLispReplDefinition, typeof FOUNDRY_REPL_BRAND>;
|
|
1156
|
-
declare function defineRepl(options: DefineFoundryReplOptions): FoundryReplDefinition;
|
|
1157
|
-
type FoundryMountedRepl = Readonly<{
|
|
1158
|
-
readonly language: "javascript";
|
|
1159
|
-
readonly session: JsSession;
|
|
1160
|
-
}> | Readonly<{
|
|
1161
|
-
readonly language: "python";
|
|
1162
|
-
readonly session: PySession;
|
|
1163
|
-
}> | Readonly<{
|
|
1164
|
-
readonly language: "lisp";
|
|
1165
|
-
readonly session: LispSession;
|
|
1166
|
-
}>;
|
|
1167
|
-
|
|
1168
|
-
declare const FOUNDRY_LAYER_BRAND: unique symbol;
|
|
1169
|
-
declare const FOUNDRY_SUBSCRIBER_BRAND: unique symbol;
|
|
1170
|
-
interface FoundrySurfaceContext<TInput = unknown> {
|
|
1171
|
-
readonly definitionId: string;
|
|
1172
|
-
readonly agentId: string;
|
|
1173
|
-
readonly conversationId: string;
|
|
1174
|
-
readonly workspaceId: string;
|
|
1175
|
-
readonly runId: string;
|
|
1176
|
-
readonly input: TInput;
|
|
1177
|
-
readonly request: FoundryRequest;
|
|
1178
|
-
readonly message: Message;
|
|
1179
|
-
readonly messageInput: FoundryMessageInput;
|
|
1180
|
-
readonly messageText: string;
|
|
1181
|
-
readonly history: ReadonlyArray<Message>;
|
|
1182
|
-
readonly messages: ReadonlyArray<Message>;
|
|
1183
|
-
readonly glove: IGloveRunnable;
|
|
1184
|
-
readonly workingEnvironment?: WorkingEnvironment;
|
|
1185
|
-
readonly vfs?: FoundryVfsHandle;
|
|
1186
|
-
readonly repl?: FoundryMountedRepl;
|
|
1187
|
-
readonly signal: AbortSignal;
|
|
1188
|
-
readonly emit: (event: {
|
|
1189
|
-
type: string;
|
|
1190
|
-
data?: unknown;
|
|
1191
|
-
}) => void;
|
|
1192
|
-
}
|
|
1193
|
-
type FoundrySurfaceCleanup = () => void | Promise<void> | Effect.Effect<void, unknown, never>;
|
|
1194
|
-
interface FoundryLayerOptions<TConfigSchema extends z.ZodType | undefined = undefined> {
|
|
1195
|
-
/** @deprecated File-routed definitions derive identity from their filename. */
|
|
1196
|
-
readonly id?: string;
|
|
1197
|
-
readonly description: string;
|
|
1198
|
-
readonly config?: TConfigSchema;
|
|
1199
|
-
/**
|
|
1200
|
-
* Mount any Glove-native package or application concern onto the compiled
|
|
1201
|
-
* runnable. Mesh, memory subagent composition, scratchpads, image surfaces,
|
|
1202
|
-
* voice bridges and future Glove packages all fit through this seam.
|
|
1203
|
-
*/
|
|
1204
|
-
readonly setup: (context: FoundrySurfaceContext & {
|
|
1205
|
-
readonly config: TConfigSchema extends z.ZodType ? z.output<TConfigSchema> : unknown;
|
|
1206
|
-
}) => Effect.Effect<void | FoundrySurfaceCleanup, unknown, never>;
|
|
1207
|
-
}
|
|
1208
|
-
type FoundryLayer<TConfigSchema extends z.ZodType | undefined = undefined> = Readonly<FoundryLayerOptions<TConfigSchema>> & {
|
|
1209
|
-
readonly id: string;
|
|
1210
|
-
readonly [FOUNDRY_LAYER_BRAND]: true;
|
|
1211
|
-
};
|
|
1212
|
-
declare function defineLayer<TConfigSchema extends z.ZodType | undefined = undefined>(options: FoundryLayerOptions<TConfigSchema>): FoundryLayer<TConfigSchema>;
|
|
1213
|
-
interface FoundryLayerReference<TLayer extends FoundryLayer<any> = FoundryLayer<any>> {
|
|
1214
|
-
readonly layer: TLayer;
|
|
1215
|
-
readonly config?: TLayer extends FoundryLayer<infer TSchema> ? TSchema extends z.ZodType ? z.input<TSchema> : never : never;
|
|
1216
|
-
}
|
|
1217
|
-
type FoundryLayerSelection = FoundryLayerReference<any> | FoundryLayer<any>;
|
|
1218
|
-
/** Select a configured layer with schema-inferred input. */
|
|
1219
|
-
declare function configureLayer<TLayer extends FoundryLayer<any>>(layer: TLayer, config: FoundryLayerReference<TLayer>["config"]): FoundryLayerReference<TLayer>;
|
|
1220
|
-
interface FoundrySubscriberOptions {
|
|
1221
|
-
/** @deprecated File-routed definitions derive identity from their filename. */
|
|
1222
|
-
readonly id?: string;
|
|
1223
|
-
readonly description: string;
|
|
1224
|
-
readonly create: SubscriberAdapter | ((context: FoundrySurfaceContext) => SubscriberAdapter | Promise<SubscriberAdapter> | Effect.Effect<SubscriberAdapter, unknown, never>);
|
|
1225
|
-
}
|
|
1226
|
-
type FoundrySubscriber = Readonly<FoundrySubscriberOptions> & {
|
|
1227
|
-
readonly id: string;
|
|
1228
|
-
readonly [FOUNDRY_SUBSCRIBER_BRAND]: true;
|
|
1229
|
-
};
|
|
1230
|
-
declare function defineSubscriber(options: FoundrySubscriberOptions): FoundrySubscriber;
|
|
1231
|
-
type FoundrySubscriberSelection = FoundrySubscriber;
|
|
1232
|
-
interface FoundryNativeRegistry {
|
|
1233
|
-
readonly layers: ReadonlyArray<FoundryLayer<any>>;
|
|
1234
|
-
readonly subscribers: ReadonlyArray<FoundrySubscriber>;
|
|
1235
|
-
}
|
|
1236
|
-
interface FoundryNativeManifestEntry {
|
|
1237
|
-
readonly id: string;
|
|
1238
|
-
readonly kind: "layer" | "subscriber";
|
|
1239
|
-
readonly description: string;
|
|
1240
|
-
readonly file?: string;
|
|
1241
|
-
}
|
|
1242
|
-
interface FoundryNativeManifest {
|
|
1243
|
-
readonly layers: ReadonlyArray<FoundryNativeManifestEntry>;
|
|
1244
|
-
readonly subscribers: ReadonlyArray<FoundryNativeManifestEntry>;
|
|
1245
|
-
}
|
|
1246
|
-
declare const EMPTY_NATIVE_REGISTRY: FoundryNativeRegistry;
|
|
1247
|
-
declare function mountFoundrySurfaces(options: {
|
|
1248
|
-
readonly registry: FoundryNativeRegistry;
|
|
1249
|
-
readonly layers?: ReadonlyArray<FoundryLayerSelection>;
|
|
1250
|
-
readonly subscribers?: ReadonlyArray<FoundrySubscriberSelection | SubscriberAdapter>;
|
|
1251
|
-
readonly context: FoundrySurfaceContext;
|
|
1252
|
-
}): Promise<() => Promise<void>>;
|
|
1253
|
-
declare function isFoundryLayer(value: unknown): value is FoundryLayer;
|
|
1254
|
-
declare function isFoundrySubscriber(value: unknown): value is FoundrySubscriber;
|
|
1255
|
-
|
|
1256
|
-
type FoundryAgentComponent = FoundrySharedTool<any> | FoundryAgentApplication | FoundryMcp | FoundryMemoryProfile | FoundryLayer<any> | FoundrySubscriber;
|
|
1257
|
-
/**
|
|
1258
|
-
* A colocated `*.tool.ts` may export the Glove tool body directly. Foundry
|
|
1259
|
-
* supplies the runtime tool name from the file route, so the authored module
|
|
1260
|
-
* never has to repeat its identity as a string.
|
|
1261
|
-
*/
|
|
1262
|
-
type FoundryToolBody = Omit<GloveFoldArgs<any>, "name">;
|
|
1263
|
-
interface FoundryAgentComposition {
|
|
1264
|
-
readonly capabilities: FoundryCapabilityRegistry;
|
|
1265
|
-
readonly native: FoundryNativeRegistry;
|
|
1266
|
-
}
|
|
1267
|
-
type FoundryCompositionSource = FoundryAgentComponent | FoundryToolBody | FoundryAgentComposition | ReadonlyArray<FoundryCompositionSource> | (() => FoundryCompositionSource) | false | null | undefined;
|
|
1268
|
-
/**
|
|
1269
|
-
* Compose colocated, headless agent parts into one immutable catalogue.
|
|
1270
|
-
* Functions are factories, not runtime installers: they return definitions and
|
|
1271
|
-
* never receive or mutate a Glove instance.
|
|
1272
|
-
*/
|
|
1273
|
-
declare function composeAgent(...sources: ReadonlyArray<FoundryCompositionSource>): FoundryAgentComposition;
|
|
1274
|
-
declare const EMPTY_AGENT_COMPOSITION: FoundryAgentComposition;
|
|
1275
|
-
|
|
1276
1033
|
/**
|
|
1277
1034
|
* Put an agent on the mesh. Its peers are the other agent instances in its
|
|
1278
1035
|
* workspace, found from data: a person's bots, a team's agents, whatever the
|
|
@@ -1295,11 +1052,32 @@ interface FoundryMeshOptions {
|
|
|
1295
1052
|
}
|
|
1296
1053
|
/** How an agent appears to its peers: from its instance data. */
|
|
1297
1054
|
declare function meshIdentity(agent: AgentInstance): AgentIdentity;
|
|
1298
|
-
type FoundryMeshThreadStatus = "working" | "waiting" | "replied" | "failed" | "cancelled";
|
|
1055
|
+
type FoundryMeshThreadStatus = "working" | "waiting" | "replied" | "failed" | "cancelled" | "taken-over";
|
|
1299
1056
|
interface FoundryMeshParty {
|
|
1300
1057
|
readonly agentId: string;
|
|
1301
1058
|
readonly name: string;
|
|
1302
1059
|
readonly definitionId: string;
|
|
1060
|
+
/** The party's workspace. Older records: the thread's `workspaceId`. */
|
|
1061
|
+
readonly workspaceId?: string;
|
|
1062
|
+
}
|
|
1063
|
+
/** A message the application's gate held or drafted: stored, not delivered. */
|
|
1064
|
+
interface FoundryMeshHeldMessage {
|
|
1065
|
+
readonly message: FoundryMeshMessage;
|
|
1066
|
+
readonly side: "recipient" | "starter";
|
|
1067
|
+
readonly decision: "hold" | "draft";
|
|
1068
|
+
/** The approval that decides a draft. */
|
|
1069
|
+
readonly approvalId?: string;
|
|
1070
|
+
/** What delivering it changes on the thread, such as a question the starter is now asked. */
|
|
1071
|
+
readonly onDeliver?: {
|
|
1072
|
+
readonly status?: FoundryMeshThreadStatus;
|
|
1073
|
+
readonly question?: string;
|
|
1074
|
+
readonly reply?: string;
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
/** A message on its way: committed to the application's record (or about to be), not yet handed over. */
|
|
1078
|
+
interface FoundryMeshOutgoing {
|
|
1079
|
+
readonly message: FoundryMeshMessage;
|
|
1080
|
+
readonly side: "recipient" | "starter";
|
|
1303
1081
|
}
|
|
1304
1082
|
/**
|
|
1305
1083
|
* A conversation between two agents. Its id is also the recipient's
|
|
@@ -1326,6 +1104,18 @@ interface FoundryMeshThread {
|
|
|
1326
1104
|
/** The recipient's last reply. */
|
|
1327
1105
|
readonly reply?: string;
|
|
1328
1106
|
readonly error?: string;
|
|
1107
|
+
/** The application's record this thread is bound to (`mesh.bindThread`). Default: the thread id. */
|
|
1108
|
+
readonly record?: string;
|
|
1109
|
+
/** Messages the application's gate held or drafted, until they are released or discarded. */
|
|
1110
|
+
readonly held?: ReadonlyArray<FoundryMeshHeldMessage>;
|
|
1111
|
+
/** Messages being committed to the application's record and handed over. Retried at start. */
|
|
1112
|
+
readonly outbox?: ReadonlyArray<FoundryMeshOutgoing>;
|
|
1113
|
+
/** Who took the thread over, and which agents left it. */
|
|
1114
|
+
readonly takenOver?: {
|
|
1115
|
+
readonly by: string;
|
|
1116
|
+
readonly agentIds: ReadonlyArray<string>;
|
|
1117
|
+
readonly at: string;
|
|
1118
|
+
};
|
|
1329
1119
|
/**
|
|
1330
1120
|
* Older records only: messages not handed over yet, for the starter's
|
|
1331
1121
|
* conversation and for this one. On start Foundry moves them to the event
|
|
@@ -1346,9 +1136,14 @@ interface FoundryMeshMessage {
|
|
|
1346
1136
|
readonly kind: "message" | "reply" | "failed" | "ack";
|
|
1347
1137
|
readonly id: string;
|
|
1348
1138
|
readonly threadId: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* Who sent it. For a person (`kind: "human"`, entered with
|
|
1141
|
+
* `runtime.meshHumanMessage`), `agentId` is the application's id for them.
|
|
1142
|
+
*/
|
|
1349
1143
|
readonly from: {
|
|
1350
1144
|
readonly agentId: string;
|
|
1351
1145
|
readonly name: string;
|
|
1146
|
+
readonly kind?: "agent" | "human";
|
|
1352
1147
|
};
|
|
1353
1148
|
readonly to: string;
|
|
1354
1149
|
readonly content: string;
|
|
@@ -1383,6 +1178,119 @@ type FoundryMeshCommand = (MeshCommandBase & {
|
|
|
1383
1178
|
readonly messageId: string;
|
|
1384
1179
|
readonly note: string;
|
|
1385
1180
|
});
|
|
1181
|
+
/** An agent the application lets a sender see. Name and description default to the instance's. */
|
|
1182
|
+
interface FoundryMeshPeer {
|
|
1183
|
+
readonly agentId: string;
|
|
1184
|
+
readonly name?: string;
|
|
1185
|
+
readonly description?: string;
|
|
1186
|
+
}
|
|
1187
|
+
/** What the application's hooks get besides their input. */
|
|
1188
|
+
interface FoundryMeshHookContext {
|
|
1189
|
+
readonly data: FoundryDataAdapter;
|
|
1190
|
+
/** The run that sent it, when an agent did. */
|
|
1191
|
+
readonly runId?: string;
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* One message on its way, for the gate. The sender is the run's own
|
|
1195
|
+
* instance, checked by the controller: never what the model claimed.
|
|
1196
|
+
*/
|
|
1197
|
+
interface FoundryMeshSend {
|
|
1198
|
+
/** "message": sent with glove_mesh_send_message. "reply": the recipient's final answer. "ack": a read receipt. */
|
|
1199
|
+
readonly kind: "message" | "reply" | "ack";
|
|
1200
|
+
/** Stable across retries. */
|
|
1201
|
+
readonly messageId: string;
|
|
1202
|
+
/** The thread it continues. Absent when it would start one. */
|
|
1203
|
+
readonly thread?: FoundryMeshThread;
|
|
1204
|
+
readonly sender: AgentInstance;
|
|
1205
|
+
/** The sender's conversation it was sent from. */
|
|
1206
|
+
readonly senderConversationId: string;
|
|
1207
|
+
readonly recipient: AgentInstance;
|
|
1208
|
+
readonly content: string;
|
|
1209
|
+
readonly inReplyTo?: string;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* What happens to a message. To the sender, "deliver", "hold" and "draft"
|
|
1213
|
+
* look the same. "refuse" fails the send with `message`, your wording.
|
|
1214
|
+
*/
|
|
1215
|
+
type FoundryMeshDecision = {
|
|
1216
|
+
readonly decision: "deliver";
|
|
1217
|
+
}
|
|
1218
|
+
/** Stored, not delivered, until `runtime.releaseMeshMessage`. */
|
|
1219
|
+
| {
|
|
1220
|
+
readonly decision: "hold";
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Stored, not delivered, behind a Foundry approval: approved, it is
|
|
1224
|
+
* delivered; denied, it is dropped. Pass `approvalId` (`approval_<uuid>`)
|
|
1225
|
+
* to choose its id.
|
|
1226
|
+
*/
|
|
1227
|
+
| {
|
|
1228
|
+
readonly decision: "draft";
|
|
1229
|
+
readonly approvalId?: string;
|
|
1230
|
+
} | {
|
|
1231
|
+
readonly decision: "refuse";
|
|
1232
|
+
readonly message: string;
|
|
1233
|
+
};
|
|
1234
|
+
/** A thread about to start, for the application to bind to its record. */
|
|
1235
|
+
interface FoundryMeshThreadStart {
|
|
1236
|
+
/** The id Foundry would use. */
|
|
1237
|
+
readonly proposedId: string;
|
|
1238
|
+
readonly sender: AgentInstance;
|
|
1239
|
+
readonly senderConversationId: string;
|
|
1240
|
+
readonly recipient: AgentInstance;
|
|
1241
|
+
readonly messageId: string;
|
|
1242
|
+
readonly content: string;
|
|
1243
|
+
}
|
|
1244
|
+
/** A message for the application's record, before it is delivered. */
|
|
1245
|
+
interface FoundryMeshRecordedMessage {
|
|
1246
|
+
readonly thread: FoundryMeshThread;
|
|
1247
|
+
readonly message: FoundryMeshMessage;
|
|
1248
|
+
/** The side it goes to. */
|
|
1249
|
+
readonly side: "recipient" | "starter";
|
|
1250
|
+
}
|
|
1251
|
+
type MeshResolvable<T> = T | Promise<T> | effect.Effect.Effect<T, unknown, never>;
|
|
1252
|
+
interface FoundryApplicationMesh {
|
|
1253
|
+
/**
|
|
1254
|
+
* Who `sender` can see and message, in any workspace. Replaces the
|
|
1255
|
+
* workspace's agents when set; a definition's own `mesh.peers` still
|
|
1256
|
+
* narrows it. Asked again for every list and every new thread, so a block
|
|
1257
|
+
* takes effect at once.
|
|
1258
|
+
*/
|
|
1259
|
+
readonly peers?: (sender: AgentInstance, context: FoundryMeshHookContext) => MeshResolvable<ReadonlyArray<FoundryMeshPeer>>;
|
|
1260
|
+
/**
|
|
1261
|
+
* The gate, asked before every message is delivered: new threads, replies
|
|
1262
|
+
* in open threads (both ways), recipients' final answers and read
|
|
1263
|
+
* receipts. Default: deliver.
|
|
1264
|
+
*/
|
|
1265
|
+
readonly authorize?: (send: FoundryMeshSend, context: FoundryMeshHookContext) => MeshResolvable<FoundryMeshDecision>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Name a new thread after your record, such as your conversation id.
|
|
1268
|
+
* `threadId` is the recipient's conversation id in Foundry, so it is new
|
|
1269
|
+
* per direction; `record` (default `threadId`) is what `commit` gets.
|
|
1270
|
+
* Returning the id of a thread between the same two agents, in the same
|
|
1271
|
+
* direction, continues that thread.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly bindThread?: (start: FoundryMeshThreadStart, context: FoundryMeshHookContext) => MeshResolvable<{
|
|
1274
|
+
readonly threadId: string;
|
|
1275
|
+
readonly record?: string;
|
|
1276
|
+
}>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Write a message to your record before it is delivered. Must be
|
|
1279
|
+
* idempotent on `message.id`: after a crash Foundry commits again, then
|
|
1280
|
+
* delivers. A person's message (`runtime.meshHumanMessage`) came from your
|
|
1281
|
+
* record and is not committed again.
|
|
1282
|
+
*/
|
|
1283
|
+
readonly commit?: (recorded: FoundryMeshRecordedMessage, context: FoundryMeshHookContext) => MeshResolvable<{
|
|
1284
|
+
readonly recordId?: string;
|
|
1285
|
+
} | void>;
|
|
1286
|
+
/**
|
|
1287
|
+
* What a sender reads when Foundry itself refuses: an agent it cannot
|
|
1288
|
+
* reach, or a thread it was taken off. Default: "Your message could not be sent."
|
|
1289
|
+
*/
|
|
1290
|
+
readonly refusal?: string;
|
|
1291
|
+
}
|
|
1292
|
+
/** The default wording when the application's mesh refuses a send. */
|
|
1293
|
+
declare const DEFAULT_MESH_REFUSAL = "Your message could not be sent.";
|
|
1386
1294
|
|
|
1387
1295
|
declare const FOUNDRY_CORE_COMMAND_EVENT = "foundry.core.command";
|
|
1388
1296
|
type FoundryCoreCommand = {
|
|
@@ -1529,6 +1437,302 @@ declare function createFoundryCoreTools(context: AgentAssemblyContext, desiredSc
|
|
|
1529
1437
|
readonly applications?: ReadonlyArray<OutboundOwner>;
|
|
1530
1438
|
}): ReadonlyArray<GloveFoldArgs<any>>;
|
|
1531
1439
|
|
|
1440
|
+
/**
|
|
1441
|
+
* Which of Foundry's built-in tools a run gets.
|
|
1442
|
+
*
|
|
1443
|
+
* Every run gets every built-in unless its definition says otherwise with
|
|
1444
|
+
* `builtins`. A policy is an allow list, a block list or a filter, and is
|
|
1445
|
+
* resolved per run, so it can depend on the conversation. Names may end in
|
|
1446
|
+
* `*` to match a prefix (`glove_foundry_*`, `glove_mesh_*`).
|
|
1447
|
+
*
|
|
1448
|
+
* A built-in a run did not get is withheld, not refused: the model never sees
|
|
1449
|
+
* it. The controller also refuses any command from that run that only a
|
|
1450
|
+
* withheld tool could have sent.
|
|
1451
|
+
*/
|
|
1452
|
+
|
|
1453
|
+
/** What a built-in does, for filters that decide by kind rather than by name. */
|
|
1454
|
+
type FoundryBuiltinGroup = "scheduling" | "spawning" | "transmission" | "conversations" | "workspace" | "environment" | "delegation" | "messaging" | "mesh";
|
|
1455
|
+
interface FoundryBuiltinTool {
|
|
1456
|
+
readonly name: string;
|
|
1457
|
+
readonly group: FoundryBuiltinGroup;
|
|
1458
|
+
/** Reads or writes data shared by the whole workspace (or every conversation of the instance). */
|
|
1459
|
+
readonly workspaceWide: boolean;
|
|
1460
|
+
}
|
|
1461
|
+
declare const FOUNDRY_BUILTIN_TOOLS: ReadonlyArray<FoundryBuiltinTool>;
|
|
1462
|
+
declare function isFoundryBuiltin(name: string): boolean;
|
|
1463
|
+
/**
|
|
1464
|
+
* Which built-ins a run gets:
|
|
1465
|
+
*
|
|
1466
|
+
* - `["glove_foundry_schedule", "glove_mesh_*"]` or `{ allow: [...] }`: only
|
|
1467
|
+
* these. A built-in added in a later release stays off.
|
|
1468
|
+
* - `{ block: [...] }`: every built-in but these. A later built-in is on.
|
|
1469
|
+
* - `{ filter: (tool) => boolean }`: decide per tool, by name, group, or
|
|
1470
|
+
* whether it reaches workspace-wide data.
|
|
1471
|
+
*
|
|
1472
|
+
* Omitted, every built-in is on.
|
|
1473
|
+
*/
|
|
1474
|
+
type FoundryBuiltinsPolicy = ReadonlyArray<string> | {
|
|
1475
|
+
readonly allow: ReadonlyArray<string>;
|
|
1476
|
+
} | {
|
|
1477
|
+
readonly block: ReadonlyArray<string>;
|
|
1478
|
+
} | {
|
|
1479
|
+
readonly filter: (tool: FoundryBuiltinTool) => boolean;
|
|
1480
|
+
};
|
|
1481
|
+
/** Whether a built-in is on under this policy. Names that are not built-ins are always on. */
|
|
1482
|
+
declare function builtinAllowed(policy: FoundryBuiltinsPolicy | undefined): (name: string) => boolean;
|
|
1483
|
+
|
|
1484
|
+
declare const FOUNDRY_WORKING_ENVIRONMENT_BRAND: unique symbol;
|
|
1485
|
+
declare const FOUNDRY_REPL_BRAND: unique symbol;
|
|
1486
|
+
type FoundryVfs = Vfs;
|
|
1487
|
+
type FoundryVfsHandle = EnvFsHandle;
|
|
1488
|
+
interface FoundryWorkingEnvironmentPersistenceContext {
|
|
1489
|
+
readonly definitionId: string;
|
|
1490
|
+
readonly agentId: string;
|
|
1491
|
+
readonly conversationId: string;
|
|
1492
|
+
readonly workspaceId: string;
|
|
1493
|
+
readonly runId: string;
|
|
1494
|
+
readonly data: FoundryDataAdapter;
|
|
1495
|
+
readonly signal: AbortSignal;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Storage is deliberately adapter-owned. Foundry never chooses a database,
|
|
1499
|
+
* object store, locking policy, or credential lifecycle for an environment.
|
|
1500
|
+
*/
|
|
1501
|
+
interface FoundryWorkingEnvironmentPersistenceAdapter {
|
|
1502
|
+
readonly identifier: string;
|
|
1503
|
+
readonly load: (context: FoundryWorkingEnvironmentPersistenceContext) => Resolvable<EnvSnapshot | null>;
|
|
1504
|
+
readonly save: (snapshot: EnvSnapshot, context: FoundryWorkingEnvironmentPersistenceContext) => Resolvable<void>;
|
|
1505
|
+
}
|
|
1506
|
+
interface FoundryWorkingEnvironmentCreateContext {
|
|
1507
|
+
readonly assembly: AgentAssemblyContext<FoundryRequest>;
|
|
1508
|
+
readonly snapshot: EnvSnapshot | null;
|
|
1509
|
+
}
|
|
1510
|
+
interface DefineFoundryWorkingEnvironmentOptions {
|
|
1511
|
+
/**
|
|
1512
|
+
* Build the native Glove environment. Use this when creation itself needs
|
|
1513
|
+
* custom logic. The loaded snapshot is provided but never applied implicitly.
|
|
1514
|
+
*/
|
|
1515
|
+
readonly create?: (context: FoundryWorkingEnvironmentCreateContext) => Resolvable<WorkingEnvironment>;
|
|
1516
|
+
/**
|
|
1517
|
+
* Native environment options. When persistence returns a snapshot and no
|
|
1518
|
+
* filesystem is supplied, Foundry restores that snapshot automatically.
|
|
1519
|
+
*/
|
|
1520
|
+
readonly options?: CreateWorkingEnvironmentOptions | ((context: FoundryWorkingEnvironmentCreateContext) => Resolvable<CreateWorkingEnvironmentOptions>);
|
|
1521
|
+
readonly persistence?: FoundryWorkingEnvironmentPersistenceAdapter;
|
|
1522
|
+
/** Native mount behavior: prompt priming and optional tool prefix. */
|
|
1523
|
+
readonly mount?: Omit<MountWorkingEnvironmentConfig, "env">;
|
|
1524
|
+
/** Close worker/adaptor resources after the run. Default true. */
|
|
1525
|
+
readonly close?: boolean;
|
|
1526
|
+
}
|
|
1527
|
+
type FoundryWorkingEnvironmentDefinition = Readonly<DefineFoundryWorkingEnvironmentOptions> & {
|
|
1528
|
+
readonly [FOUNDRY_WORKING_ENVIRONMENT_BRAND]: true;
|
|
1529
|
+
};
|
|
1530
|
+
declare function defineWorkingEnvironment(options?: DefineFoundryWorkingEnvironmentOptions): FoundryWorkingEnvironmentDefinition;
|
|
1531
|
+
/**
|
|
1532
|
+
* Convenience persistence over the configured FoundryDataAdapter's private
|
|
1533
|
+
* snapshot seam. VFS contents never become public workspace entries.
|
|
1534
|
+
* Scope "agent" (default) keeps one snapshot per instance, "conversation" one
|
|
1535
|
+
* per conversation, and "workspace" one shared by every agent in the
|
|
1536
|
+
* workspace. Saves replace the snapshot, so with "workspace" the last run to
|
|
1537
|
+
* finish wins; give agents that write at the same time a live machine instead.
|
|
1538
|
+
*/
|
|
1539
|
+
declare function foundryDataEnvironmentPersistence(options?: {
|
|
1540
|
+
readonly scope?: "agent" | "conversation" | "workspace";
|
|
1541
|
+
}): FoundryWorkingEnvironmentPersistenceAdapter;
|
|
1542
|
+
interface FoundryReplBase {
|
|
1543
|
+
readonly [FOUNDRY_REPL_BRAND]: true;
|
|
1544
|
+
/**
|
|
1545
|
+
* Project an explicit set of the fully assembled agent's tools into the
|
|
1546
|
+
* sandbox as ordinary functions. Selection happens after applications,
|
|
1547
|
+
* installed capabilities, memory, mesh, calls, and `configure` have mounted.
|
|
1548
|
+
*
|
|
1549
|
+
* Returning the actual tool values keeps code relationships referential;
|
|
1550
|
+
* Foundry never accepts a second list of copied string ids here.
|
|
1551
|
+
*/
|
|
1552
|
+
readonly programmaticTools?: FoundryProgrammaticTools;
|
|
1553
|
+
}
|
|
1554
|
+
interface FoundryProgrammaticToolSelection {
|
|
1555
|
+
/** One of the exact live tools supplied to the selector context. */
|
|
1556
|
+
readonly tool: Tool<unknown>;
|
|
1557
|
+
/** Optional valid interpreter identifier when the tool name is unsuitable. */
|
|
1558
|
+
readonly name?: string;
|
|
1559
|
+
/** Informational effect hint used by capability discovery. */
|
|
1560
|
+
readonly readOnly?: boolean;
|
|
1561
|
+
/** Optional capability group used by progressive discovery. */
|
|
1562
|
+
readonly server?: string;
|
|
1563
|
+
readonly serverDescription?: string;
|
|
1564
|
+
readonly resultShape?: string;
|
|
1565
|
+
}
|
|
1566
|
+
/** An installed app, with its live tools ready to select into the REPL. */
|
|
1567
|
+
interface FoundryReplApp {
|
|
1568
|
+
readonly id: string;
|
|
1569
|
+
readonly description: string;
|
|
1570
|
+
readonly accountId?: string;
|
|
1571
|
+
/** Each tool grouped under the app, named for code, and marked when it only reads. */
|
|
1572
|
+
readonly tools: ReadonlyArray<FoundryProgrammaticToolSelection>;
|
|
1573
|
+
}
|
|
1574
|
+
interface FoundryProgrammaticToolContext {
|
|
1575
|
+
readonly assembly: AgentAssemblyContext<FoundryRequest>;
|
|
1576
|
+
readonly glove: IGloveRunnable;
|
|
1577
|
+
/** Snapshot of every tool mounted before the programmatic surface itself. */
|
|
1578
|
+
readonly tools: ReadonlyArray<Tool<unknown>>;
|
|
1579
|
+
/** The apps installed on this agent, one group per app. */
|
|
1580
|
+
readonly apps: ReadonlyArray<FoundryReplApp>;
|
|
1581
|
+
readonly workingEnvironment?: WorkingEnvironment;
|
|
1582
|
+
readonly vfs?: EnvFsHandle;
|
|
1583
|
+
}
|
|
1584
|
+
interface FoundryProgrammaticTools {
|
|
1585
|
+
/**
|
|
1586
|
+
* Select direct live tool references. A selection may decorate its callable
|
|
1587
|
+
* name and discovery metadata without replacing the underlying capability.
|
|
1588
|
+
*/
|
|
1589
|
+
readonly select: (context: FoundryProgrammaticToolContext) => Resolvable<ReadonlyArray<Tool<unknown> | FoundryProgrammaticToolSelection>>;
|
|
1590
|
+
/** Total underlying calls permitted during this assembled run. Default 50. */
|
|
1591
|
+
readonly maxCalls?: number;
|
|
1592
|
+
/**
|
|
1593
|
+
* Keep selected tools in the model's direct tool list as well. Default true.
|
|
1594
|
+
* Pass false to reach them only from code, which keeps a large app
|
|
1595
|
+
* catalogue out of context. A tool that needs approval always stays direct.
|
|
1596
|
+
*/
|
|
1597
|
+
readonly keepDirect?: boolean;
|
|
1598
|
+
}
|
|
1599
|
+
type FoundryJavaScriptReplDefinition = FoundryReplBase & Readonly<{
|
|
1600
|
+
readonly language: "javascript";
|
|
1601
|
+
readonly session: JsSession;
|
|
1602
|
+
readonly mount?: Omit<MountJsConfig, "session">;
|
|
1603
|
+
}>;
|
|
1604
|
+
type FoundryPythonReplDefinition = FoundryReplBase & Readonly<{
|
|
1605
|
+
readonly language: "python";
|
|
1606
|
+
readonly session: PySession;
|
|
1607
|
+
readonly mount?: Omit<MountPyConfig, "session">;
|
|
1608
|
+
}>;
|
|
1609
|
+
type FoundryLispReplDefinition = FoundryReplBase & Readonly<{
|
|
1610
|
+
readonly language: "lisp";
|
|
1611
|
+
readonly session: LispSession;
|
|
1612
|
+
readonly mount?: Omit<MountLispConfig, "session">;
|
|
1613
|
+
}>;
|
|
1614
|
+
type FoundryReplDefinition = FoundryJavaScriptReplDefinition | FoundryPythonReplDefinition | FoundryLispReplDefinition;
|
|
1615
|
+
type DefineFoundryReplOptions = Omit<FoundryJavaScriptReplDefinition, typeof FOUNDRY_REPL_BRAND> | Omit<FoundryPythonReplDefinition, typeof FOUNDRY_REPL_BRAND> | Omit<FoundryLispReplDefinition, typeof FOUNDRY_REPL_BRAND>;
|
|
1616
|
+
declare function defineRepl(options: DefineFoundryReplOptions): FoundryReplDefinition;
|
|
1617
|
+
type FoundryMountedRepl = Readonly<{
|
|
1618
|
+
readonly language: "javascript";
|
|
1619
|
+
readonly session: JsSession;
|
|
1620
|
+
}> | Readonly<{
|
|
1621
|
+
readonly language: "python";
|
|
1622
|
+
readonly session: PySession;
|
|
1623
|
+
}> | Readonly<{
|
|
1624
|
+
readonly language: "lisp";
|
|
1625
|
+
readonly session: LispSession;
|
|
1626
|
+
}>;
|
|
1627
|
+
|
|
1628
|
+
declare const FOUNDRY_LAYER_BRAND: unique symbol;
|
|
1629
|
+
declare const FOUNDRY_SUBSCRIBER_BRAND: unique symbol;
|
|
1630
|
+
interface FoundrySurfaceContext<TInput = unknown> {
|
|
1631
|
+
readonly definitionId: string;
|
|
1632
|
+
readonly agentId: string;
|
|
1633
|
+
readonly conversationId: string;
|
|
1634
|
+
readonly workspaceId: string;
|
|
1635
|
+
readonly runId: string;
|
|
1636
|
+
readonly input: TInput;
|
|
1637
|
+
readonly request: FoundryRequest;
|
|
1638
|
+
readonly message: Message;
|
|
1639
|
+
readonly messageInput: FoundryMessageInput;
|
|
1640
|
+
readonly messageText: string;
|
|
1641
|
+
readonly history: ReadonlyArray<Message>;
|
|
1642
|
+
readonly messages: ReadonlyArray<Message>;
|
|
1643
|
+
readonly glove: IGloveRunnable;
|
|
1644
|
+
readonly workingEnvironment?: WorkingEnvironment;
|
|
1645
|
+
readonly vfs?: FoundryVfsHandle;
|
|
1646
|
+
readonly repl?: FoundryMountedRepl;
|
|
1647
|
+
readonly signal: AbortSignal;
|
|
1648
|
+
readonly emit: (event: {
|
|
1649
|
+
type: string;
|
|
1650
|
+
data?: unknown;
|
|
1651
|
+
}) => void;
|
|
1652
|
+
}
|
|
1653
|
+
type FoundrySurfaceCleanup = () => void | Promise<void> | Effect.Effect<void, unknown, never>;
|
|
1654
|
+
interface FoundryLayerOptions<TConfigSchema extends z.ZodType | undefined = undefined> {
|
|
1655
|
+
/** @deprecated File-routed definitions derive identity from their filename. */
|
|
1656
|
+
readonly id?: string;
|
|
1657
|
+
readonly description: string;
|
|
1658
|
+
readonly config?: TConfigSchema;
|
|
1659
|
+
/**
|
|
1660
|
+
* Mount any Glove-native package or application concern onto the compiled
|
|
1661
|
+
* runnable. Mesh, memory subagent composition, scratchpads, image surfaces,
|
|
1662
|
+
* voice bridges and future Glove packages all fit through this seam.
|
|
1663
|
+
*/
|
|
1664
|
+
readonly setup: (context: FoundrySurfaceContext & {
|
|
1665
|
+
readonly config: TConfigSchema extends z.ZodType ? z.output<TConfigSchema> : unknown;
|
|
1666
|
+
}) => Effect.Effect<void | FoundrySurfaceCleanup, unknown, never>;
|
|
1667
|
+
}
|
|
1668
|
+
type FoundryLayer<TConfigSchema extends z.ZodType | undefined = undefined> = Readonly<FoundryLayerOptions<TConfigSchema>> & {
|
|
1669
|
+
readonly id: string;
|
|
1670
|
+
readonly [FOUNDRY_LAYER_BRAND]: true;
|
|
1671
|
+
};
|
|
1672
|
+
declare function defineLayer<TConfigSchema extends z.ZodType | undefined = undefined>(options: FoundryLayerOptions<TConfigSchema>): FoundryLayer<TConfigSchema>;
|
|
1673
|
+
interface FoundryLayerReference<TLayer extends FoundryLayer<any> = FoundryLayer<any>> {
|
|
1674
|
+
readonly layer: TLayer;
|
|
1675
|
+
readonly config?: TLayer extends FoundryLayer<infer TSchema> ? TSchema extends z.ZodType ? z.input<TSchema> : never : never;
|
|
1676
|
+
}
|
|
1677
|
+
type FoundryLayerSelection = FoundryLayerReference<any> | FoundryLayer<any>;
|
|
1678
|
+
/** Select a configured layer with schema-inferred input. */
|
|
1679
|
+
declare function configureLayer<TLayer extends FoundryLayer<any>>(layer: TLayer, config: FoundryLayerReference<TLayer>["config"]): FoundryLayerReference<TLayer>;
|
|
1680
|
+
interface FoundrySubscriberOptions {
|
|
1681
|
+
/** @deprecated File-routed definitions derive identity from their filename. */
|
|
1682
|
+
readonly id?: string;
|
|
1683
|
+
readonly description: string;
|
|
1684
|
+
readonly create: SubscriberAdapter | ((context: FoundrySurfaceContext) => SubscriberAdapter | Promise<SubscriberAdapter> | Effect.Effect<SubscriberAdapter, unknown, never>);
|
|
1685
|
+
}
|
|
1686
|
+
type FoundrySubscriber = Readonly<FoundrySubscriberOptions> & {
|
|
1687
|
+
readonly id: string;
|
|
1688
|
+
readonly [FOUNDRY_SUBSCRIBER_BRAND]: true;
|
|
1689
|
+
};
|
|
1690
|
+
declare function defineSubscriber(options: FoundrySubscriberOptions): FoundrySubscriber;
|
|
1691
|
+
type FoundrySubscriberSelection = FoundrySubscriber;
|
|
1692
|
+
interface FoundryNativeRegistry {
|
|
1693
|
+
readonly layers: ReadonlyArray<FoundryLayer<any>>;
|
|
1694
|
+
readonly subscribers: ReadonlyArray<FoundrySubscriber>;
|
|
1695
|
+
}
|
|
1696
|
+
interface FoundryNativeManifestEntry {
|
|
1697
|
+
readonly id: string;
|
|
1698
|
+
readonly kind: "layer" | "subscriber";
|
|
1699
|
+
readonly description: string;
|
|
1700
|
+
readonly file?: string;
|
|
1701
|
+
}
|
|
1702
|
+
interface FoundryNativeManifest {
|
|
1703
|
+
readonly layers: ReadonlyArray<FoundryNativeManifestEntry>;
|
|
1704
|
+
readonly subscribers: ReadonlyArray<FoundryNativeManifestEntry>;
|
|
1705
|
+
}
|
|
1706
|
+
declare const EMPTY_NATIVE_REGISTRY: FoundryNativeRegistry;
|
|
1707
|
+
declare function mountFoundrySurfaces(options: {
|
|
1708
|
+
readonly registry: FoundryNativeRegistry;
|
|
1709
|
+
readonly layers?: ReadonlyArray<FoundryLayerSelection>;
|
|
1710
|
+
readonly subscribers?: ReadonlyArray<FoundrySubscriberSelection | SubscriberAdapter>;
|
|
1711
|
+
readonly context: FoundrySurfaceContext;
|
|
1712
|
+
}): Promise<() => Promise<void>>;
|
|
1713
|
+
declare function isFoundryLayer(value: unknown): value is FoundryLayer;
|
|
1714
|
+
declare function isFoundrySubscriber(value: unknown): value is FoundrySubscriber;
|
|
1715
|
+
|
|
1716
|
+
type FoundryAgentComponent = FoundrySharedTool<any> | FoundryAgentApplication | FoundryMcp | FoundryMemoryProfile | FoundryLayer<any> | FoundrySubscriber;
|
|
1717
|
+
/**
|
|
1718
|
+
* A colocated `*.tool.ts` may export the Glove tool body directly. Foundry
|
|
1719
|
+
* supplies the runtime tool name from the file route, so the authored module
|
|
1720
|
+
* never has to repeat its identity as a string.
|
|
1721
|
+
*/
|
|
1722
|
+
type FoundryToolBody = Omit<GloveFoldArgs<any>, "name">;
|
|
1723
|
+
interface FoundryAgentComposition {
|
|
1724
|
+
readonly capabilities: FoundryCapabilityRegistry;
|
|
1725
|
+
readonly native: FoundryNativeRegistry;
|
|
1726
|
+
}
|
|
1727
|
+
type FoundryCompositionSource = FoundryAgentComponent | FoundryToolBody | FoundryAgentComposition | ReadonlyArray<FoundryCompositionSource> | (() => FoundryCompositionSource) | false | null | undefined;
|
|
1728
|
+
/**
|
|
1729
|
+
* Compose colocated, headless agent parts into one immutable catalogue.
|
|
1730
|
+
* Functions are factories, not runtime installers: they return definitions and
|
|
1731
|
+
* never receive or mutate a Glove instance.
|
|
1732
|
+
*/
|
|
1733
|
+
declare function composeAgent(...sources: ReadonlyArray<FoundryCompositionSource>): FoundryAgentComposition;
|
|
1734
|
+
declare const EMPTY_AGENT_COMPOSITION: FoundryAgentComposition;
|
|
1735
|
+
|
|
1532
1736
|
/** Conversation isolation is the default. Instance scope deliberately shares conversations. */
|
|
1533
1737
|
type FoundryGuidanceScope = "conversation" | "instance";
|
|
1534
1738
|
interface FoundryFactsOptions {
|
|
@@ -1737,6 +1941,14 @@ interface AgentAssemblyOptions<TInput = unknown> {
|
|
|
1737
1941
|
*/
|
|
1738
1942
|
readonly delegates?: FoundryListResolver<FoundryDelegate, TInput>;
|
|
1739
1943
|
readonly durableSubagents?: DurableSubagents;
|
|
1944
|
+
/**
|
|
1945
|
+
* Which of Foundry's built-in tools this run gets, resolved per run like
|
|
1946
|
+
* `tools`: an allow list (`["glove_foundry_schedule", "glove_mesh_*"]` or
|
|
1947
|
+
* `{ allow }`), a block list (`{ block }`) or `{ filter: (tool) => boolean }`.
|
|
1948
|
+
* Omitted, every built-in is on. A withheld built-in is never shown to the
|
|
1949
|
+
* model, and the controller refuses commands only it could have sent.
|
|
1950
|
+
*/
|
|
1951
|
+
readonly builtins?: FoundryResolver<FoundryBuiltinsPolicy, TInput>;
|
|
1740
1952
|
readonly eventDelivery?: FoundryEventPolicy;
|
|
1741
1953
|
/**
|
|
1742
1954
|
* Read current facts for an addressed event (an agent message or a
|
|
@@ -1873,6 +2085,7 @@ interface FoundryAgentConventionModule {
|
|
|
1873
2085
|
readonly durableSubagents?: DurableSubagents;
|
|
1874
2086
|
readonly eventDelivery?: FoundryEventPolicy;
|
|
1875
2087
|
readonly prepareEvent?: AgentAssemblyOptions["prepareEvent"];
|
|
2088
|
+
readonly builtins?: AgentAssemblyOptions["builtins"];
|
|
1876
2089
|
readonly answerWaitMs?: number;
|
|
1877
2090
|
readonly memory?: AgentAssemblyOptions["memory"];
|
|
1878
2091
|
readonly goals?: AgentAssemblyOptions["goals"];
|
|
@@ -2581,6 +2794,8 @@ interface FoundryMeshDelivery {
|
|
|
2581
2794
|
readonly kind: "mesh";
|
|
2582
2795
|
readonly side: "recipient" | "starter";
|
|
2583
2796
|
readonly message: FoundryMeshMessage;
|
|
2797
|
+
/** The agent on the other side, for a person's message that reaches the starter. */
|
|
2798
|
+
readonly peer?: string;
|
|
2584
2799
|
}
|
|
2585
2800
|
interface DelegationCommandBase {
|
|
2586
2801
|
readonly id: string;
|
|
@@ -2670,4 +2885,4 @@ interface FoundryEventPreparationContext {
|
|
|
2670
2885
|
readonly signal: AbortSignal;
|
|
2671
2886
|
}
|
|
2672
2887
|
|
|
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 };
|
|
2888
|
+
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, FOUNDRY_WORKING_ENVIRONMENT_BRAND 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, EventNotFound as aA, type EventReceiptStore as aB, EventReference as aC, FOUNDRY_AGENT_APPLICATION_BRAND as aD, FOUNDRY_AGENT_BRAND as aE, FOUNDRY_AGENT_DEFINITION_BRAND as aF, FOUNDRY_AGENT_FILE_ENV as aG, FOUNDRY_AGENT_ROUTE_ENV as aH, FOUNDRY_APPLICATION_ENV as aI, FOUNDRY_APPROVAL_DIRECTORY_ENV as aJ, FOUNDRY_BUILTIN_TOOLS as aK, FOUNDRY_COMPOSED_PLAYBOOK_BRAND as aL, FOUNDRY_CONNECTION_BRAND as aM, FOUNDRY_CORE_COMMAND_EVENT as aN, FOUNDRY_EVENT_PREFIX as aO, FOUNDRY_EXECUTION_MARKER as aP, FOUNDRY_LAYER_BRAND as aQ, FOUNDRY_MCP_BRAND as aR, FOUNDRY_MEMORY_BRAND as aS, FOUNDRY_PLAYBOOK_ACTION_BRAND as aT, FOUNDRY_REPL_BRAND as aU, FOUNDRY_SCHEDULE_BRAND as aV, FOUNDRY_SHARED_TOOL_BRAND as aW, FOUNDRY_SUBSCRIBER_BRAND as aX, FOUNDRY_TRANSMISSION_BRAND as aY, FOUNDRY_TRANSMISSION_EVENT_BRAND as aZ, FOUNDRY_TRANSMISSION_PREDICATE_BRAND 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, DEFAULT_MESH_REFUSAL as ai, type DefineAgentOptions as aj, type DefineConnectionOptions as ak, type DefineFoundryReplOptions as al, type DefineFoundryScheduleOptions as am, type DefineFoundrySubagentOptions as an, type DefineFoundryWorkingEnvironmentOptions as ao, type DefinePlaybookSubscriptionOptions as ap, type DefinitionConfigInput as aq, type DurableSubagentOptions as ar, type DurableSubagentOwnership as as, type DurableSubagents as at, EMPTY_AGENT_COMPOSITION as au, EMPTY_CAPABILITY_REGISTRY as av, EMPTY_NATIVE_REGISTRY as aw, type EgressAdapter as ax, type EgressContext as ay, EventId as az, type FoundryDelegationUpdate as b, type FoundryMemorySelection as b$, type FoundryAccountSessionAdapter as b0, type FoundryAgent as b1, type FoundryAgentComponent as b2, type FoundryAgentComposition as b3, type FoundryAgentConventionModule as b4, type FoundryAgentDefinition as b5, type FoundryAgentMode as b6, type FoundryApp as b7, type FoundryAppMcp as b8, type FoundryAppMcpTool as b9, type FoundryEventPolicy as bA, type FoundryEventPreparationContext as bB, type FoundryEventReceiptStatus as bC, type FoundryEventTarget as bD, type FoundryExecutionContext as bE, type FoundryFactsOptions as bF, type FoundryFormsOptions as bG, type FoundryGoalsOptions as bH, type FoundryGuidanceHandles as bI, type FoundryGuidanceScope as bJ, type FoundryHandledEvent as bK, type FoundryHookDefinition as bL, type FoundryInstallable as bM, type FoundryInstalledApp as bN, type FoundryInstanceProvisioner as bO, type FoundryJavaScriptReplDefinition as bP, type FoundryLayer as bQ, type FoundryLayerOptions as bR, type FoundryLayerReference as bS, type FoundryLayerSelection as bT, type FoundryLispReplDefinition as bU, type FoundryListResolver as bV, type FoundryMcp as bW, type FoundryMcpOptions as bX, type FoundryMemoryProfile as bY, type FoundryMemoryProfileOptions as bZ, type FoundryMemoryReference as b_, type FoundryAppToolDecision as ba, type FoundryApplicationConnection as bb, type FoundryApplicationMesh as bc, type FoundryApprovalDecision as bd, FoundryApprovalDisplayManager as be, type FoundryApprovalPolicy as bf, type FoundryApprovalStatus as bg, type FoundryBuiltinGroup as bh, type FoundryBuiltinTool as bi, type FoundryBuiltinsPolicy as bj, type FoundryCall as bk, type FoundryCallContext as bl, type FoundryCallOptions as bm, type FoundryCapabilityKind as bn, type FoundryCapabilityManifest as bo, type FoundryCapabilityManifestEntry as bp, type FoundryCapabilityRegistry as bq, type FoundryCompositionSource as br, type FoundryContextProvider as bs, type FoundryCoreCommand as bt, type FoundryDelegate as bu, type FoundryDelegateOptions as bv, type FoundryDelegation as bw, type FoundryDelegationReply as bx, type FoundryDelegationStatus as by, type FoundryDomainError as bz, type FoundryMeshMessage as c, type InstallationSelection as c$, type FoundryMeshConfig as c0, type FoundryMeshDecision as c1, type FoundryMeshHeldMessage as c2, type FoundryMeshHookContext as c3, type FoundryMeshOptions as c4, type FoundryMeshOutgoing as c5, type FoundryMeshParty as c6, type FoundryMeshPeer as c7, type FoundryMeshRecordedMessage as c8, type FoundryMeshSend as c9, type FoundrySharedTool as cA, type FoundrySubagentToolContext as cB, type FoundrySubscriber as cC, type FoundrySubscriberOptions as cD, type FoundrySubscriberSelection as cE, type FoundrySurfaceContext as cF, type FoundrySuspension as cG, type FoundryToolBody as cH, type FoundryTransmission as cI, type FoundryTransmissionDelivery as cJ, type FoundryTransmissionEvent as cK, type FoundryTransmissionPredicate as cL, type FoundryVfs as cM, type FoundryVfsHandle as cN, type FoundryWorkingEnvironmentCreateContext as cO, type FoundryWorkingEnvironmentDefinition as cP, type FoundryWorkingEnvironmentPersistenceAdapter as cQ, type FoundryWorkingEnvironmentPersistenceContext as cR, GrantResolutionError as cS, type InboundContract as cT, type InferAgentInput as cU, type InferAgentOutput as cV, type InferInboundEvent as cW, type InferOutboundInput as cX, type InferOutboundOutput as cY, type IngressAdapter as cZ, type IngressContext as c_, type FoundryMeshThread as ca, type FoundryMeshThreadStart as cb, type FoundryMeshThreadStatus as cc, type FoundryMessageInput as cd, type FoundryMessageOptions as ce, type FoundryMountedRepl as cf, type FoundryNativeManifest as cg, type FoundryNativeManifestEntry as ch, type FoundryNativeRegistry as ci, type FoundryPlaybookAction as cj, type FoundryProgrammaticToolContext as ck, type FoundryProgrammaticToolSelection as cl, type FoundryProgrammaticTools as cm, type FoundryPythonReplDefinition as cn, type FoundryReplApp as co, type FoundryReplDefinition as cp, type FoundryRequest as cq, type FoundryResolvedMcp as cr, type FoundryResolver as cs, type FoundryResult as ct, type FoundryRouteMap as cu, type FoundryScheduleDefinition as cv, type FoundryScheduleMisfirePolicy as cw, type FoundryScheduleOccurrenceStatus as cx, type FoundryScheduleTiming as cy, type FoundryScheduleTimingInput as cz, type FoundryDataAdapter as d, defineTransmissionPredicate as d$, type McpAdapterFactory as d0, MemoryFoundryDataAdapter as d1, type OutboundContract as d2, type PlaybookActionOptions as d3, type PlaybookDirective as d4, type PlaybookDirectiveInput as d5, type PlaybookMatch as d6, type PlaybookMatchInput as d7, type PlaybookOutboundDirective as d8, type PlaybookOutboundInput as d9, createConversation as dA, createFoundryApproval as dB, createFoundryCoreTools as dC, createInstalledApplicationTransmissionTools as dD, defineAgent as dE, defineAgentApplication as dF, defineAgentFromModule as dG, defineAgentInstance as dH, defineApp as dI, defineCall as dJ, defineConnection as dK, defineFacts as dL, defineForms as dM, defineGoals as dN, defineLayer as dO, defineMcp as dP, defineMemory as dQ, definePlaybookAction as dR, definePlaybookSubscription as dS, defineRepl as dT, defineRoutes as dU, defineSchedule as dV, defineSharedTool as dW, defineSubagent as dX, defineSubscriber as dY, defineTransmission as dZ, defineTransmissionEvent as d_, type PlaybookSubscriptionTarget as da, type PlaybookSubscriptionTargetInput as db, ReplyPolicy as dc, Route as dd, RouteId as de, RouteNotFound as df, RunGrant as dg, RunId as dh, type SharedToolOptions as di, TopologyConflict as dj, type TransmissionEventDirection as dk, type TransmissionEventOptions as dl, TransmissionId as dm, type TransmissionOptions as dn, type TransmissionPredicateOptions as dp, type TransmissionSerializationContext as dq, type UpdateAgentInstanceOptions as dr, type UpdateConversationOptions as ds, activationScheduleRevision as dt, builtinAllowed as du, composeAgent as dv, composePlaybook as dw, configureLayer as dx, configureMemory as dy, createAgentInstance as dz, type AgentInstance as e, defineWorkingEnvironment as e0, eventReceiptStore as e1, eventTranscriptMessageId as e2, foundryDataEnvironmentPersistence as e3, foundryGuidanceSubject as e4, hostedMeshOptions as e5, install as e6, installRegistry as e7, installationKey as e8, installedApplicationTransmissionToolName as e9, transmissionPredicate as eA, withFoundryPermissions as eB, internalAgentName as ea, isFoundryAgent as eb, isFoundryAgentDefinition as ec, isFoundryBuiltin as ed, isFoundryCapability as ee, isFoundryLayer as ef, isFoundrySchedule as eg, isFoundrySubscriber as eh, isFoundryTransmission as ei, isInboxCapableStore as ej, isMeshTransport as ek, lateChatEffectId as el, listFoundryApprovals as em, meshIdentity as en, mountAgentDefinitionMemory as eo, mountFoundrySurfaces as ep, reconstructAgentInstance as eq, reconstructPlaybook as er, reconstructPlaybookSubscription as es, resolveFoundryApproval as et, restrictApp as eu, routeFromInternalAgentName as ev, scheduleOccurrenceId as ew, scheduleRevisionMatches as ex, toGloveMessage as ey, toGloveRequestInput as ez, 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 };
|