glove-foundry 0.5.2 → 0.6.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 +77 -0
- package/dist/chunk-B36BGF5R.js +530 -0
- package/dist/{chunk-PVOKR4CN.js → chunk-K2EU63MB.js} +5 -0
- package/dist/{chunk-6Q2LGPSC.js → chunk-OBTOFA7W.js} +15 -1
- package/dist/{chunk-NHV64WNO.js → chunk-RSU7NEDK.js} +9 -3
- package/dist/{chunk-MABLKZVO.js → chunk-TFGETZYH.js} +188 -10
- package/dist/{chunk-D2AHSYOB.js → chunk-X6EWEWWM.js} +875 -53
- package/dist/cli.js +4 -3
- package/dist/client-DWPYe_Nc.d.ts +888 -0
- package/dist/client.d.ts +2 -1
- package/dist/{client-CLTds1uV.d.ts → definition-A8o11aez.d.ts} +193 -822
- package/dist/execution-agent.js +5 -4
- package/dist/execution-daemon.js +37 -2
- package/dist/execution-loader.js +5 -4
- package/dist/index.d.ts +8 -3
- package/dist/index.js +29 -4
- package/dist/voice.d.ts +168 -0
- package/dist/voice.js +348 -0
- package/docs/building-with-foundry.md +28 -19
- package/docs/durable-execution.md +56 -0
- package/package.json +17 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentPart, Message, IGloveRunnable, StoreAdapter, GloveFoldArgs, Tool, SubscriberAdapter, ModelAdapter, DisplayManagerAdapter, HookHandler, DefineSkillArgs, DefineSubAgentArgs,
|
|
2
|
-
import { Schema, Effect
|
|
1
|
+
import { ContentPart, Message, IGloveRunnable, StoreAdapter, GloveFoldArgs, Tool, SubscriberAdapter, RuntimeContextProvider, RuntimeContextOptions, ModelAdapter, DisplayManagerAdapter, HookHandler, DefineSkillArgs, DefineSubAgentArgs, InboxItem } from 'glove-core';
|
|
2
|
+
import { Schema, Effect } from 'effect';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MeshAdapter, AgentIdentity } from 'glove-mesh';
|
|
5
5
|
import { McpCatalogueEntry, McpAdapter } from 'glove-mcp';
|
|
@@ -12,9 +12,6 @@ import { PySession, MountPyConfig } from 'glove-python';
|
|
|
12
12
|
import { FactAdapter, FactScope, FactStore, FactInput } from 'glove-facts';
|
|
13
13
|
import { GoalAdapter, GoalScope, GoalProgram, GoalRunner } from 'glove-memory/goals';
|
|
14
14
|
import { FormAdapter, FormRunner } from 'glove-memory/forms';
|
|
15
|
-
import * as effect_Brand from 'effect/Brand';
|
|
16
|
-
import { FoundryStationDaemonAdapter } from './station.js';
|
|
17
|
-
import { FoundryConfig } from './config.js';
|
|
18
15
|
|
|
19
16
|
declare const TransmissionId: Schema.brand<Schema.refine<string, typeof Schema.String>, "FoundryTransmissionId">;
|
|
20
17
|
type TransmissionId = typeof TransmissionId.Type;
|
|
@@ -385,8 +382,8 @@ interface OutboundContract<TConfig extends Schema.Schema.AnyNoContext = Schema.S
|
|
|
385
382
|
readonly config: TConfig;
|
|
386
383
|
readonly input: TInput;
|
|
387
384
|
readonly output: TOutput;
|
|
388
|
-
/** Require Glove's exact-input approval before this outbound effect is dispatched. */
|
|
389
|
-
readonly requiresPermission?: boolean | ((input: Schema.Schema.Type<TInput>) => boolean);
|
|
385
|
+
/** Require Glove's exact-input approval before this outbound effect is dispatched. A predicate may be async. */
|
|
386
|
+
readonly requiresPermission?: boolean | ((input: Schema.Schema.Type<TInput>) => boolean | Promise<boolean>);
|
|
390
387
|
/**
|
|
391
388
|
* Project provider output into the model-visible tool result. Use this to
|
|
392
389
|
* omit large or sensitive presentation-only bytes without weakening the
|
|
@@ -664,6 +661,21 @@ interface InboundDeliveryClaim {
|
|
|
664
661
|
readonly claimedAt: string;
|
|
665
662
|
readonly completedAt?: string;
|
|
666
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* An inbound event handed to one agent and not yet finished with: kept from
|
|
666
|
+
* dispatch until the run that handles it settles, so a restart delivers it
|
|
667
|
+
* again instead of losing it with the in-memory run queue.
|
|
668
|
+
*/
|
|
669
|
+
interface FoundryPendingInbound {
|
|
670
|
+
/** `<routeId>:<eventId>:<agentId>`. */
|
|
671
|
+
readonly id: string;
|
|
672
|
+
readonly definitionId: string;
|
|
673
|
+
/** The request a run for this event starts from. */
|
|
674
|
+
readonly request: FoundryRequest;
|
|
675
|
+
/** The run handling it now; absent while the event waits for its conversation. */
|
|
676
|
+
readonly runId?: string;
|
|
677
|
+
readonly createdAt: string;
|
|
678
|
+
}
|
|
667
679
|
interface FoundryWorkingEnvironmentSnapshotOwner {
|
|
668
680
|
readonly scope: "agent" | "conversation";
|
|
669
681
|
readonly definitionId: string;
|
|
@@ -709,6 +721,14 @@ interface FoundryDataAdapter {
|
|
|
709
721
|
claimInboundDelivery(key: string): Effect.Effect<boolean, unknown, never>;
|
|
710
722
|
completeInboundDelivery(key: string, runIds: ReadonlyArray<string>): Effect.Effect<void, unknown, never>;
|
|
711
723
|
releaseInboundDelivery(key: string): Effect.Effect<void, unknown, never>;
|
|
724
|
+
/**
|
|
725
|
+
* Pending inbound events (optional). With these, an inbound event survives
|
|
726
|
+
* a restart until the run that handles it finishes; without them, an event
|
|
727
|
+
* whose run was still queued or running when the process stopped is lost.
|
|
728
|
+
*/
|
|
729
|
+
putPendingInbound?(record: FoundryPendingInbound): Effect.Effect<void, unknown, never>;
|
|
730
|
+
deletePendingInbound?(id: string): Effect.Effect<void, unknown, never>;
|
|
731
|
+
listPendingInbound?(): Effect.Effect<ReadonlyArray<FoundryPendingInbound>, unknown, never>;
|
|
712
732
|
getActivation(id: string): Effect.Effect<FoundryActivationRecord | null, unknown, never>;
|
|
713
733
|
putActivation(activation: FoundryActivationRecord): Effect.Effect<void, unknown, never>;
|
|
714
734
|
listActivations(workspaceId?: string): Effect.Effect<ReadonlyArray<FoundryActivationRecord>, unknown, never>;
|
|
@@ -743,7 +763,7 @@ interface FoundryRequest {
|
|
|
743
763
|
readonly payload?: unknown;
|
|
744
764
|
readonly context?: Readonly<Record<string, unknown>>;
|
|
745
765
|
readonly source?: {
|
|
746
|
-
readonly kind: "direct" | "transmission" | "activation" | "spawn" | "background";
|
|
766
|
+
readonly kind: "direct" | "transmission" | "activation" | "spawn" | "background" | "delegation";
|
|
747
767
|
readonly id?: string;
|
|
748
768
|
readonly provider?: string;
|
|
749
769
|
readonly eventId?: string;
|
|
@@ -764,11 +784,19 @@ interface FoundryResult {
|
|
|
764
784
|
readonly agentId: string;
|
|
765
785
|
readonly conversationId: string;
|
|
766
786
|
readonly workspaceId: string;
|
|
767
|
-
readonly suspension?:
|
|
768
|
-
readonly commandId: string;
|
|
769
|
-
readonly wakeAt: string;
|
|
770
|
-
};
|
|
787
|
+
readonly suspension?: FoundrySuspension;
|
|
771
788
|
}
|
|
789
|
+
/** Why a run ended without finishing: it went to sleep, or it asked a question. */
|
|
790
|
+
type FoundrySuspension = {
|
|
791
|
+
readonly kind?: "sleep";
|
|
792
|
+
readonly commandId: string;
|
|
793
|
+
readonly wakeAt: string;
|
|
794
|
+
} | {
|
|
795
|
+
readonly kind: "question";
|
|
796
|
+
readonly commandId: string;
|
|
797
|
+
readonly delegationId: string;
|
|
798
|
+
readonly question: string;
|
|
799
|
+
};
|
|
772
800
|
interface CreateAgentInstanceOptions {
|
|
773
801
|
readonly id?: string;
|
|
774
802
|
readonly workspaceId?: string;
|
|
@@ -801,6 +829,7 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
801
829
|
private readonly agentsByProvisioningKey;
|
|
802
830
|
private readonly subscriptions;
|
|
803
831
|
private readonly inboundDeliveries;
|
|
832
|
+
private readonly pendingInbound;
|
|
804
833
|
private readonly activations;
|
|
805
834
|
private readonly conversations;
|
|
806
835
|
private readonly workspace;
|
|
@@ -832,6 +861,9 @@ declare class MemoryFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
832
861
|
claimInboundDelivery(key: string): Effect.Effect<boolean, never, never>;
|
|
833
862
|
completeInboundDelivery(key: string, runIds: ReadonlyArray<string>): Effect.Effect<void, never, never>;
|
|
834
863
|
releaseInboundDelivery(key: string): Effect.Effect<void, never, never>;
|
|
864
|
+
putPendingInbound(record: FoundryPendingInbound): Effect.Effect<void, never, never>;
|
|
865
|
+
deletePendingInbound(id: string): Effect.Effect<void, never, never>;
|
|
866
|
+
listPendingInbound(): Effect.Effect<FoundryPendingInbound[], never, never>;
|
|
835
867
|
getActivation(id: string): Effect.Effect<FoundryActivationRecord | null, never, never>;
|
|
836
868
|
putActivation(activation: FoundryActivationRecord): Effect.Effect<void, never, never>;
|
|
837
869
|
listActivations(workspaceId?: string): Effect.Effect<FoundryActivationRecord[], never, never>;
|
|
@@ -1309,6 +1341,114 @@ type FoundryCompositionSource = FoundryAgentComponent | FoundryToolBody | Foundr
|
|
|
1309
1341
|
declare function composeAgent(...sources: ReadonlyArray<FoundryCompositionSource>): FoundryAgentComposition;
|
|
1310
1342
|
declare const EMPTY_AGENT_COMPOSITION: FoundryAgentComposition;
|
|
1311
1343
|
|
|
1344
|
+
/**
|
|
1345
|
+
* A sibling agent this one may hand work to, named by its route
|
|
1346
|
+
* (`"coder"` for `agents/coder/agent.ts`). Delegates are named rather than
|
|
1347
|
+
* imported so the delegating agent's process never loads the worker's
|
|
1348
|
+
* dependencies: a fast voice agent should not start up carrying a sandbox SDK.
|
|
1349
|
+
*/
|
|
1350
|
+
type FoundryDelegate = string | FoundryDelegateOptions;
|
|
1351
|
+
interface FoundryDelegateOptions {
|
|
1352
|
+
/** Route of the worker definition. */
|
|
1353
|
+
readonly agent: string;
|
|
1354
|
+
/** What the worker is for. The delegating model reads this to choose. */
|
|
1355
|
+
readonly description?: string;
|
|
1356
|
+
}
|
|
1357
|
+
type FoundryDelegationStatus = "working" | "waiting" | "completed" | "failed" | "cancelled";
|
|
1358
|
+
/**
|
|
1359
|
+
* One handed-off task. Its id is also the worker conversation's id, and the
|
|
1360
|
+
* record lives on that conversation's `context.delegation`.
|
|
1361
|
+
*/
|
|
1362
|
+
interface FoundryDelegation {
|
|
1363
|
+
readonly id: string;
|
|
1364
|
+
/** Route of the worker definition. */
|
|
1365
|
+
readonly to: string;
|
|
1366
|
+
/** The worker instance: one per delegating instance and route. */
|
|
1367
|
+
readonly workerAgentId: string;
|
|
1368
|
+
readonly workspaceId: string;
|
|
1369
|
+
readonly from: {
|
|
1370
|
+
readonly definitionId: string;
|
|
1371
|
+
readonly agentId: string;
|
|
1372
|
+
readonly conversationId: string;
|
|
1373
|
+
readonly runId: string;
|
|
1374
|
+
};
|
|
1375
|
+
readonly task: string;
|
|
1376
|
+
readonly status: FoundryDelegationStatus;
|
|
1377
|
+
/** The open question while status is "waiting". */
|
|
1378
|
+
readonly question?: string;
|
|
1379
|
+
readonly result?: string;
|
|
1380
|
+
readonly error?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* Bookkeeping: an update for the delegating conversation, or replies for the
|
|
1383
|
+
* worker, not handed over yet. Foundry hands them over again after a restart.
|
|
1384
|
+
*/
|
|
1385
|
+
readonly undelivered?: "result" | "question" | "failed";
|
|
1386
|
+
readonly pendingReplies?: ReadonlyArray<string>;
|
|
1387
|
+
readonly createdAt: string;
|
|
1388
|
+
readonly updatedAt: string;
|
|
1389
|
+
}
|
|
1390
|
+
/** What reaches the delegating conversation. */
|
|
1391
|
+
type FoundryDelegationUpdate = {
|
|
1392
|
+
readonly kind: "result";
|
|
1393
|
+
readonly delegationId: string;
|
|
1394
|
+
readonly agent: string;
|
|
1395
|
+
readonly task: string;
|
|
1396
|
+
readonly result: string;
|
|
1397
|
+
} | {
|
|
1398
|
+
readonly kind: "question";
|
|
1399
|
+
readonly delegationId: string;
|
|
1400
|
+
readonly agent: string;
|
|
1401
|
+
readonly task: string;
|
|
1402
|
+
readonly question: string;
|
|
1403
|
+
} | {
|
|
1404
|
+
readonly kind: "failed";
|
|
1405
|
+
readonly delegationId: string;
|
|
1406
|
+
readonly agent: string;
|
|
1407
|
+
readonly task: string;
|
|
1408
|
+
readonly error: string;
|
|
1409
|
+
};
|
|
1410
|
+
/** What reaches a worker: an answer to its question, or more instructions. */
|
|
1411
|
+
interface FoundryDelegationReply {
|
|
1412
|
+
readonly kind: "reply";
|
|
1413
|
+
readonly delegationId: string;
|
|
1414
|
+
/** Route of the delegating definition. */
|
|
1415
|
+
readonly from: string;
|
|
1416
|
+
readonly message: string;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* An inbound transmission event for a conversation that already has a run:
|
|
1420
|
+
* it joins that run's turn, or waits for the conversation, instead of
|
|
1421
|
+
* starting a second run beside it.
|
|
1422
|
+
*/
|
|
1423
|
+
interface FoundryTransmissionDelivery {
|
|
1424
|
+
readonly kind: "transmission";
|
|
1425
|
+
/** The pending-inbound record that keeps this event until a run finishes with it. */
|
|
1426
|
+
readonly pendingId: string;
|
|
1427
|
+
readonly routeId: string;
|
|
1428
|
+
readonly eventId: string;
|
|
1429
|
+
/** The event as the run reads it: the serialized `<transmission>`, or the transmission's own rendering. */
|
|
1430
|
+
readonly message: string;
|
|
1431
|
+
}
|
|
1432
|
+
interface DelegationCommandBase {
|
|
1433
|
+
readonly id: string;
|
|
1434
|
+
readonly definitionId: string;
|
|
1435
|
+
readonly agentId: string;
|
|
1436
|
+
readonly conversationId: string;
|
|
1437
|
+
readonly workspaceId: string;
|
|
1438
|
+
readonly delegationId: string;
|
|
1439
|
+
}
|
|
1440
|
+
type FoundryDelegationCommand = (DelegationCommandBase & {
|
|
1441
|
+
readonly type: "delegate";
|
|
1442
|
+
readonly to: string;
|
|
1443
|
+
readonly task: string;
|
|
1444
|
+
}) | (DelegationCommandBase & {
|
|
1445
|
+
readonly type: "delegate.reply";
|
|
1446
|
+
readonly message: string;
|
|
1447
|
+
}) | (DelegationCommandBase & {
|
|
1448
|
+
readonly type: "delegate.ask";
|
|
1449
|
+
readonly question: string;
|
|
1450
|
+
});
|
|
1451
|
+
|
|
1312
1452
|
declare const FOUNDRY_CORE_COMMAND_EVENT = "foundry.core.command";
|
|
1313
1453
|
type FoundryCoreCommand = {
|
|
1314
1454
|
readonly id: string;
|
|
@@ -1431,7 +1571,7 @@ type FoundryCoreCommand = {
|
|
|
1431
1571
|
readonly observability?: unknown;
|
|
1432
1572
|
readonly applicationId?: string;
|
|
1433
1573
|
readonly transmissionId?: string;
|
|
1434
|
-
};
|
|
1574
|
+
} | FoundryDelegationCommand;
|
|
1435
1575
|
/** Resolve an installed app's generated outbound tool without duplicating ids. */
|
|
1436
1576
|
declare function installedApplicationTransmissionToolName(application: {
|
|
1437
1577
|
readonly id: string;
|
|
@@ -1465,6 +1605,13 @@ interface FoundryFactsOptions {
|
|
|
1465
1605
|
operationId: string;
|
|
1466
1606
|
};
|
|
1467
1607
|
}
|
|
1608
|
+
/**
|
|
1609
|
+
* A context provider for a Foundry definition: a bare provider (re-read before
|
|
1610
|
+
* every model call) or one with a `delivery` of `"request"` or `"history"`.
|
|
1611
|
+
*/
|
|
1612
|
+
type FoundryContextProvider = RuntimeContextProvider | (RuntimeContextOptions & {
|
|
1613
|
+
readonly provider: RuntimeContextProvider;
|
|
1614
|
+
});
|
|
1468
1615
|
interface FoundryGoalsOptions extends Omit<UseGoalRunnerConfig<IGloveRunnable>, "scope" | "preparation"> {
|
|
1469
1616
|
readonly adapter: GoalAdapter;
|
|
1470
1617
|
readonly scope?: FoundryGuidanceScope | GoalScope;
|
|
@@ -1523,6 +1670,10 @@ interface AgentAssemblyContext<TInput = unknown> {
|
|
|
1523
1670
|
readonly conversation: Conversation;
|
|
1524
1671
|
/** Parent-runtime snapshot used by agent schedule management tools. */
|
|
1525
1672
|
readonly activations: ReadonlyArray<FoundryActivationRecord>;
|
|
1673
|
+
/** Delegations this conversation started that were still open when the run began. */
|
|
1674
|
+
readonly delegations: ReadonlyArray<FoundryDelegation>;
|
|
1675
|
+
/** The task this run works on, when another agent delegated it. */
|
|
1676
|
+
readonly delegation?: FoundryDelegation;
|
|
1526
1677
|
readonly data: FoundryDataAdapter;
|
|
1527
1678
|
readonly input: TInput;
|
|
1528
1679
|
/** Native Glove representation of the current inbound user turn. */
|
|
@@ -1570,6 +1721,14 @@ interface FoundryExecutionContext<TInput = unknown> extends FoundrySurfaceContex
|
|
|
1570
1721
|
/** Native Glove REPL session mounted for this run, when configured. */
|
|
1571
1722
|
readonly repl?: FoundryMountedRepl;
|
|
1572
1723
|
readonly invoke: (name: string, input: unknown) => Promise<unknown>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Receive delegation results and questions inside this run while it stays
|
|
1726
|
+
* live, such as a voice call, instead of Foundry starting a new run for each.
|
|
1727
|
+
* Without a handler, an update joins the run's turn at its next tool step
|
|
1728
|
+
* while the turn is still working. Returns a function that stops listening;
|
|
1729
|
+
* anything that arrives after it goes to that turn, or to a new run.
|
|
1730
|
+
*/
|
|
1731
|
+
readonly onDelegationUpdate: (handler: (updates: ReadonlyArray<FoundryDelegationUpdate>) => void | Promise<void>) => () => Promise<void>;
|
|
1573
1732
|
}
|
|
1574
1733
|
interface AgentHandlerContext<TInput = unknown> extends FoundryExecutionContext<TInput> {
|
|
1575
1734
|
/** Run the standard Glove loop, optionally with a handler-enriched message. */
|
|
@@ -1595,13 +1754,29 @@ interface AgentAssemblyOptions<TInput = unknown> {
|
|
|
1595
1754
|
readonly hooks?: FoundryListResolver<FoundryHookDefinition, TInput>;
|
|
1596
1755
|
readonly skills?: FoundryListResolver<DefineSkillArgs, TInput>;
|
|
1597
1756
|
readonly subagents?: FoundryListResolver<DefineSubAgentArgs, TInput>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Sibling agents this one may hand work to, by route. Adds
|
|
1759
|
+
* glove_foundry_delegate and glove_foundry_reply. Each delegation runs as
|
|
1760
|
+
* its own conversation on a worker instance; its result, or a question it
|
|
1761
|
+
* needs answered, comes back to this conversation.
|
|
1762
|
+
*/
|
|
1763
|
+
readonly delegates?: FoundryListResolver<FoundryDelegate, TInput>;
|
|
1764
|
+
/**
|
|
1765
|
+
* When this agent works on a delegated task, how long glove_foundry_ask
|
|
1766
|
+
* waits in the same run for an answer before the run suspends. Default 90s.
|
|
1767
|
+
*/
|
|
1768
|
+
readonly answerWaitMs?: number;
|
|
1598
1769
|
/** Definition-owned Glove memory surfaces; may resolve lazily from run context. */
|
|
1599
1770
|
readonly memory?: FoundryListResolver<FoundryMemorySelection, TInput>;
|
|
1600
1771
|
readonly goals?: FoundryResolver<FoundryGoalsOptions | undefined, TInput>;
|
|
1601
1772
|
readonly facts?: FoundryResolver<FoundryFactsOptions | undefined, TInput>;
|
|
1602
1773
|
readonly forms?: FoundryResolver<FoundryFormsOptions | undefined, TInput>;
|
|
1603
|
-
/**
|
|
1604
|
-
|
|
1774
|
+
/**
|
|
1775
|
+
* Native context providers. A bare provider is re-read before each model
|
|
1776
|
+
* iteration; `{ provider, delivery: "request" | "history", key }` freezes it
|
|
1777
|
+
* per request or saves it to history on change.
|
|
1778
|
+
*/
|
|
1779
|
+
readonly contextProviders?: FoundryListResolver<FoundryContextProvider, TInput>;
|
|
1605
1780
|
/** Lazily load native Glove inbox items into this run's conversation store. */
|
|
1606
1781
|
readonly inboxes?: (agent: FoundryAgentDefinition, context: AgentAssemblyContext<TInput>) => Resolvable<ReadonlyArray<InboxItem>>;
|
|
1607
1782
|
readonly subscribers?: FoundryListResolver<FoundrySubscriberSelection | SubscriberAdapter, TInput>;
|
|
@@ -1681,6 +1856,8 @@ interface FoundryAgentConventionModule {
|
|
|
1681
1856
|
readonly hooks?: AgentAssemblyOptions["hooks"];
|
|
1682
1857
|
readonly skills?: AgentAssemblyOptions["skills"];
|
|
1683
1858
|
readonly subagents?: AgentAssemblyOptions["subagents"];
|
|
1859
|
+
readonly delegates?: AgentAssemblyOptions["delegates"];
|
|
1860
|
+
readonly answerWaitMs?: number;
|
|
1684
1861
|
readonly memory?: AgentAssemblyOptions["memory"];
|
|
1685
1862
|
readonly goals?: AgentAssemblyOptions["goals"];
|
|
1686
1863
|
readonly facts?: AgentAssemblyOptions["facts"];
|
|
@@ -1748,810 +1925,4 @@ declare function defineSubagent(options: DefineFoundrySubagentOptions): DefineSu
|
|
|
1748
1925
|
type FoundryRouteMap = Record<string, object>;
|
|
1749
1926
|
declare function defineRoutes<const TRoutes extends FoundryRouteMap>(routes: TRoutes): TRoutes;
|
|
1750
1927
|
|
|
1751
|
-
|
|
1752
|
-
route: string;
|
|
1753
|
-
filePath: string;
|
|
1754
|
-
relativePath: string;
|
|
1755
|
-
definition: FoundryAgentDefinition;
|
|
1756
|
-
executionName: string;
|
|
1757
|
-
}
|
|
1758
|
-
interface FoundryManifestAgent {
|
|
1759
|
-
id: string;
|
|
1760
|
-
description: string;
|
|
1761
|
-
mode: "agent";
|
|
1762
|
-
file: string;
|
|
1763
|
-
tags: readonly string[];
|
|
1764
|
-
invocationContract: "foundry/request-v1";
|
|
1765
|
-
resultContract: "foundry/result-v1";
|
|
1766
|
-
assembly: "foundry" | "custom";
|
|
1767
|
-
handler: "glove" | "custom";
|
|
1768
|
-
layers: readonly string[];
|
|
1769
|
-
subscribers: readonly string[];
|
|
1770
|
-
tools: readonly string[];
|
|
1771
|
-
hooks: readonly string[];
|
|
1772
|
-
skills: readonly string[];
|
|
1773
|
-
subagents: readonly string[];
|
|
1774
|
-
memory: readonly string[];
|
|
1775
|
-
inboxLoader: boolean;
|
|
1776
|
-
calls: readonly string[];
|
|
1777
|
-
schedules: readonly string[];
|
|
1778
|
-
playbooks: readonly string[];
|
|
1779
|
-
mesh: boolean;
|
|
1780
|
-
workingEnvironment: boolean;
|
|
1781
|
-
repl: "javascript" | "python" | "lisp" | "dynamic" | null;
|
|
1782
|
-
lazy: readonly string[];
|
|
1783
|
-
}
|
|
1784
|
-
interface FoundryManifest {
|
|
1785
|
-
version: 1;
|
|
1786
|
-
generatedAt: string;
|
|
1787
|
-
agents: FoundryManifestAgent[];
|
|
1788
|
-
}
|
|
1789
|
-
declare function routeFromAgentFile(agentsDir: string, filePath: string): string | null;
|
|
1790
|
-
declare function findAgentFiles(agentsDir: string): Promise<string[]>;
|
|
1791
|
-
declare function discoverAgents(options: {
|
|
1792
|
-
agentsDir: string;
|
|
1793
|
-
strictFileRoutes?: boolean;
|
|
1794
|
-
cacheBust?: boolean;
|
|
1795
|
-
}): Promise<DiscoveredAgent[]>;
|
|
1796
|
-
declare function createManifest(agents: readonly DiscoveredAgent[]): FoundryManifest;
|
|
1797
|
-
|
|
1798
|
-
interface AccountFilter {
|
|
1799
|
-
readonly transmissionId?: TransmissionId;
|
|
1800
|
-
}
|
|
1801
|
-
declare const AccountDirectory_base: Context.TagClass<AccountDirectory, "@glove-foundry/AccountDirectory", {
|
|
1802
|
-
readonly get: (id: AccountId) => Effect.Effect<AccountReference, AccountNotFound>;
|
|
1803
|
-
readonly list: (filter?: AccountFilter) => Effect.Effect<ReadonlyArray<AccountReference>>;
|
|
1804
|
-
}>;
|
|
1805
|
-
/**
|
|
1806
|
-
* Read-only account metadata supplied by the application. Deliberately no
|
|
1807
|
-
* create, authorize, refresh, revoke, token, or credential methods exist.
|
|
1808
|
-
*/
|
|
1809
|
-
declare class AccountDirectory extends AccountDirectory_base {
|
|
1810
|
-
}
|
|
1811
|
-
interface RouteFilter {
|
|
1812
|
-
readonly transmissionId?: TransmissionId;
|
|
1813
|
-
readonly accountId?: AccountId;
|
|
1814
|
-
readonly direction?: Route["direction"];
|
|
1815
|
-
readonly enabled?: boolean;
|
|
1816
|
-
}
|
|
1817
|
-
interface BindingFilter {
|
|
1818
|
-
readonly agentId?: AgentId;
|
|
1819
|
-
readonly transmissionId?: TransmissionId;
|
|
1820
|
-
readonly accountId?: AccountId;
|
|
1821
|
-
readonly routeId?: RouteId;
|
|
1822
|
-
readonly enabled?: boolean;
|
|
1823
|
-
}
|
|
1824
|
-
declare const TopologyStore_base: Context.TagClass<TopologyStore, "@glove-foundry/TopologyStore", {
|
|
1825
|
-
readonly getRoute: (id: RouteId) => Effect.Effect<Route, RouteNotFound>;
|
|
1826
|
-
readonly listRoutes: (filter?: RouteFilter) => Effect.Effect<ReadonlyArray<Route>>;
|
|
1827
|
-
readonly putRoute: (route: Route) => Effect.Effect<Route, TopologyConflict>;
|
|
1828
|
-
readonly removeRoute: (id: RouteId) => Effect.Effect<void, RouteNotFound>;
|
|
1829
|
-
readonly getBinding: (id: BindingId) => Effect.Effect<AgentBinding, BindingNotFound>;
|
|
1830
|
-
readonly listBindings: (filter?: BindingFilter) => Effect.Effect<ReadonlyArray<AgentBinding>>;
|
|
1831
|
-
readonly putBinding: (binding: AgentBinding) => Effect.Effect<AgentBinding, TopologyConflict>;
|
|
1832
|
-
readonly removeBinding: (id: BindingId) => Effect.Effect<void, BindingNotFound>;
|
|
1833
|
-
}>;
|
|
1834
|
-
/** Durable desired topology. It stores opaque account ids, never credentials. */
|
|
1835
|
-
declare class TopologyStore extends TopologyStore_base {
|
|
1836
|
-
}
|
|
1837
|
-
declare const EventStore_base: Context.TagClass<EventStore, "@glove-foundry/EventStore", {
|
|
1838
|
-
readonly put: (reference: EventReference, payload: unknown) => Effect.Effect<void>;
|
|
1839
|
-
readonly getReference: (id: EventId) => Effect.Effect<EventReference, EventNotFound>;
|
|
1840
|
-
readonly getPayload: (id: EventId) => Effect.Effect<unknown, EventNotFound>;
|
|
1841
|
-
}>;
|
|
1842
|
-
declare class EventStore extends EventStore_base {
|
|
1843
|
-
}
|
|
1844
|
-
interface AccountSessionRequest {
|
|
1845
|
-
readonly account: AccountReference;
|
|
1846
|
-
readonly operation: string;
|
|
1847
|
-
readonly runId?: RunId;
|
|
1848
|
-
}
|
|
1849
|
-
/**
|
|
1850
|
-
* A user-owned adapter that produces an operation-scoped Effect Layer. Its
|
|
1851
|
-
* implementation owns credential lookup, refresh, SDK construction, and
|
|
1852
|
-
* cleanup. Foundry only provides the resulting service to the operation.
|
|
1853
|
-
*/
|
|
1854
|
-
interface AccountSessionAdapter<TSession> {
|
|
1855
|
-
readonly layer: (request: AccountSessionRequest) => Layer.Layer<TSession, AccountSessionUnavailable>;
|
|
1856
|
-
}
|
|
1857
|
-
declare function memoryAccountDirectory(accounts: ReadonlyArray<AccountReference>): Layer.Layer<AccountDirectory>;
|
|
1858
|
-
declare const memoryTopologyStore: Layer.Layer<TopologyStore>;
|
|
1859
|
-
declare const memoryEventStore: Layer.Layer<EventStore>;
|
|
1860
|
-
|
|
1861
|
-
interface ResolveGrantRequest {
|
|
1862
|
-
readonly runId: RunId;
|
|
1863
|
-
readonly agentId: AgentId;
|
|
1864
|
-
/** The inbound route that caused the run, when one exists. */
|
|
1865
|
-
readonly originRouteId?: RouteId;
|
|
1866
|
-
}
|
|
1867
|
-
declare const GrantResolver_base: Context.TagClass<GrantResolver, "@glove-foundry/GrantResolver", {
|
|
1868
|
-
readonly resolve: (request: ResolveGrantRequest) => Effect.Effect<RunGrant, GrantResolutionError>;
|
|
1869
|
-
}>;
|
|
1870
|
-
declare class GrantResolver extends GrantResolver_base {
|
|
1871
|
-
}
|
|
1872
|
-
/**
|
|
1873
|
-
* Resolve desired bindings into immutable authority for exactly one run.
|
|
1874
|
-
* Agents consume the resulting grant; they never query the topology directly.
|
|
1875
|
-
*/
|
|
1876
|
-
declare const grantResolverLive: Layer.Layer<GrantResolver, never, TopologyStore>;
|
|
1877
|
-
|
|
1878
|
-
declare const FoundryManifestCapability: Schema.Struct<{
|
|
1879
|
-
id: typeof Schema.String;
|
|
1880
|
-
description: typeof Schema.String;
|
|
1881
|
-
account: Schema.Literal<["none", "optional", "required"]>;
|
|
1882
|
-
effect: Schema.Literal<["read", "write"]>;
|
|
1883
|
-
}>;
|
|
1884
|
-
declare const FoundryManifestTransmission: Schema.Struct<{
|
|
1885
|
-
id: typeof Schema.String;
|
|
1886
|
-
name: typeof Schema.String;
|
|
1887
|
-
description: typeof Schema.String;
|
|
1888
|
-
shape: Schema.Literal<["capability-only", "inbound-only", "outbound-only", "bidirectional"]>;
|
|
1889
|
-
account: Schema.optional<Schema.Struct<{
|
|
1890
|
-
required: typeof Schema.Boolean;
|
|
1891
|
-
metadataSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1892
|
-
}>>;
|
|
1893
|
-
capabilities: Schema.Array$<Schema.Struct<{
|
|
1894
|
-
id: typeof Schema.String;
|
|
1895
|
-
description: typeof Schema.String;
|
|
1896
|
-
account: Schema.Literal<["none", "optional", "required"]>;
|
|
1897
|
-
effect: Schema.Literal<["read", "write"]>;
|
|
1898
|
-
}>>;
|
|
1899
|
-
inbound: Schema.optional<Schema.Struct<{
|
|
1900
|
-
configSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1901
|
-
eventSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1902
|
-
}>>;
|
|
1903
|
-
outbound: Schema.optional<Schema.Struct<{
|
|
1904
|
-
configSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1905
|
-
inputSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1906
|
-
outputSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1907
|
-
}>>;
|
|
1908
|
-
}>;
|
|
1909
|
-
declare const FoundryApplicationManifest: Schema.Struct<{
|
|
1910
|
-
schemaVersion: Schema.Literal<[2]>;
|
|
1911
|
-
generatedAt: typeof Schema.String;
|
|
1912
|
-
transmissions: Schema.Array$<Schema.Struct<{
|
|
1913
|
-
id: typeof Schema.String;
|
|
1914
|
-
name: typeof Schema.String;
|
|
1915
|
-
description: typeof Schema.String;
|
|
1916
|
-
shape: Schema.Literal<["capability-only", "inbound-only", "outbound-only", "bidirectional"]>;
|
|
1917
|
-
account: Schema.optional<Schema.Struct<{
|
|
1918
|
-
required: typeof Schema.Boolean;
|
|
1919
|
-
metadataSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1920
|
-
}>>;
|
|
1921
|
-
capabilities: Schema.Array$<Schema.Struct<{
|
|
1922
|
-
id: typeof Schema.String;
|
|
1923
|
-
description: typeof Schema.String;
|
|
1924
|
-
account: Schema.Literal<["none", "optional", "required"]>;
|
|
1925
|
-
effect: Schema.Literal<["read", "write"]>;
|
|
1926
|
-
}>>;
|
|
1927
|
-
inbound: Schema.optional<Schema.Struct<{
|
|
1928
|
-
configSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1929
|
-
eventSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1930
|
-
}>>;
|
|
1931
|
-
outbound: Schema.optional<Schema.Struct<{
|
|
1932
|
-
configSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1933
|
-
inputSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1934
|
-
outputSchema: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1935
|
-
}>>;
|
|
1936
|
-
}>>;
|
|
1937
|
-
}>;
|
|
1938
|
-
type FoundryApplicationManifest = typeof FoundryApplicationManifest.Type;
|
|
1939
|
-
declare const ManifestCompilationError_base: Schema.TaggedErrorClass<ManifestCompilationError, "ManifestCompilationError", {
|
|
1940
|
-
readonly _tag: Schema.tag<"ManifestCompilationError">;
|
|
1941
|
-
} & {
|
|
1942
|
-
message: typeof Schema.String;
|
|
1943
|
-
}>;
|
|
1944
|
-
declare class ManifestCompilationError extends ManifestCompilationError_base {
|
|
1945
|
-
}
|
|
1946
|
-
/** Compile code definitions into a value-only, credential-free manifest. */
|
|
1947
|
-
declare function compileApplicationManifest(transmissions: ReadonlyArray<AnyFoundryTransmission>): Effect.Effect<FoundryApplicationManifest, ManifestCompilationError>;
|
|
1948
|
-
|
|
1949
|
-
type FoundryEventCategory = "agent" | "run" | "model" | "tool" | "extension" | "application" | "inbox" | "memory" | "mcp" | "activation" | "system" | "log";
|
|
1950
|
-
interface FoundryEvent {
|
|
1951
|
-
readonly id: string;
|
|
1952
|
-
readonly sequence: number;
|
|
1953
|
-
readonly timestamp: string;
|
|
1954
|
-
readonly type: string;
|
|
1955
|
-
readonly category: FoundryEventCategory;
|
|
1956
|
-
readonly agent?: string;
|
|
1957
|
-
readonly runId?: string;
|
|
1958
|
-
readonly data: unknown;
|
|
1959
|
-
}
|
|
1960
|
-
interface EventFilter {
|
|
1961
|
-
readonly after?: number;
|
|
1962
|
-
readonly agent?: string;
|
|
1963
|
-
readonly runId?: string;
|
|
1964
|
-
readonly category?: FoundryEventCategory;
|
|
1965
|
-
readonly limit?: number;
|
|
1966
|
-
}
|
|
1967
|
-
interface FoundryObservabilityAdapter {
|
|
1968
|
-
append(event: Omit<FoundryEvent, "id" | "sequence" | "timestamp"> & {
|
|
1969
|
-
timestamp?: string;
|
|
1970
|
-
}): FoundryEvent;
|
|
1971
|
-
list(filter?: EventFilter): FoundryEvent[];
|
|
1972
|
-
subscribe(listener: (event: FoundryEvent) => void): () => void;
|
|
1973
|
-
clear?(): void | Promise<void>;
|
|
1974
|
-
}
|
|
1975
|
-
declare class MemoryObservabilityAdapter implements FoundryObservabilityAdapter {
|
|
1976
|
-
private readonly maxEvents;
|
|
1977
|
-
private readonly events;
|
|
1978
|
-
private readonly listeners;
|
|
1979
|
-
private sequence;
|
|
1980
|
-
constructor(options?: {
|
|
1981
|
-
maxEvents?: number;
|
|
1982
|
-
});
|
|
1983
|
-
append(input: Omit<FoundryEvent, "id" | "sequence" | "timestamp"> & {
|
|
1984
|
-
timestamp?: string;
|
|
1985
|
-
}): FoundryEvent;
|
|
1986
|
-
list(filter?: EventFilter): FoundryEvent[];
|
|
1987
|
-
subscribe(listener: (event: FoundryEvent) => void): () => void;
|
|
1988
|
-
clear(): void;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
declare const FOUNDRY_APPLICATION_BRAND: unique symbol;
|
|
1992
|
-
/**
|
|
1993
|
-
* Secret-bearing HTTP request data passed only to the consumer-owned
|
|
1994
|
-
* authorization adapter. Foundry does not persist or observe this value.
|
|
1995
|
-
*/
|
|
1996
|
-
interface FoundryRequestAuthorizationInput {
|
|
1997
|
-
readonly method: string;
|
|
1998
|
-
readonly path: string;
|
|
1999
|
-
readonly query: string;
|
|
2000
|
-
readonly authorization?: string;
|
|
2001
|
-
readonly cookie?: string;
|
|
2002
|
-
readonly remoteAddress?: string;
|
|
2003
|
-
}
|
|
2004
|
-
/**
|
|
2005
|
-
* Gate the Foundry HTTP surface without making credential acquisition or
|
|
2006
|
-
* refresh a framework concern. The adapter may validate a basic/bearer
|
|
2007
|
-
* credential, a session cookie, or an identity asserted by a trusted proxy.
|
|
2008
|
-
*/
|
|
2009
|
-
interface FoundryRequestAuthorizationAdapter<TError = never> {
|
|
2010
|
-
readonly identifier: string;
|
|
2011
|
-
/** Value for WWW-Authenticate when access is denied. */
|
|
2012
|
-
readonly challenge?: string;
|
|
2013
|
-
readonly authorize: (input: FoundryRequestAuthorizationInput) => Effect.Effect<boolean, TError, never>;
|
|
2014
|
-
}
|
|
2015
|
-
/** Process infrastructure only; agent files own runtime capabilities. */
|
|
2016
|
-
interface FoundryApplicationOptions {
|
|
2017
|
-
readonly name: string;
|
|
2018
|
-
/** Optional configuration of the managed daemon; loaded from the application file in its process. */
|
|
2019
|
-
readonly daemon?: FoundryStationDaemonAdapter;
|
|
2020
|
-
readonly accounts?: ReadonlyArray<AccountReference>;
|
|
2021
|
-
readonly routes?: ReadonlyArray<Route>;
|
|
2022
|
-
readonly bindings?: ReadonlyArray<AgentBinding>;
|
|
2023
|
-
readonly data?: FoundryDataAdapter;
|
|
2024
|
-
readonly conversationStore?: (scope: {
|
|
2025
|
-
readonly definitionId: string;
|
|
2026
|
-
readonly agentId: string;
|
|
2027
|
-
readonly conversationId: string;
|
|
2028
|
-
readonly workspaceId: string;
|
|
2029
|
-
}) => Promise<StoreAdapter> | StoreAdapter;
|
|
2030
|
-
/**
|
|
2031
|
-
* User-owned HTTP authorization boundary. Required for non-loopback binds;
|
|
2032
|
-
* credential values never enter Foundry data, manifests, or observability.
|
|
2033
|
-
*/
|
|
2034
|
-
readonly requestAuthorization?: FoundryRequestAuthorizationAdapter<unknown>;
|
|
2035
|
-
/** User-owned strategy for subscriptions using `provisioning.mode = "custom"`. */
|
|
2036
|
-
readonly provisioner?: FoundryInstanceProvisioner;
|
|
2037
|
-
readonly services?: Layer.Layer<AccountDirectory | TopologyStore | EventStore, unknown>;
|
|
2038
|
-
}
|
|
2039
|
-
type FoundryApplication = Readonly<FoundryApplicationOptions> & {
|
|
2040
|
-
readonly [FOUNDRY_APPLICATION_BRAND]: true;
|
|
2041
|
-
};
|
|
2042
|
-
declare function isFoundryApplication(value: unknown): value is FoundryApplication;
|
|
2043
|
-
/** Define infrastructure. Agent composition is deliberately absent here. */
|
|
2044
|
-
declare function defineApplication(options: FoundryApplicationOptions): FoundryApplication;
|
|
2045
|
-
declare const EMPTY_FOUNDRY_APPLICATION: FoundryApplication;
|
|
2046
|
-
|
|
2047
|
-
interface DiscoveredCapability {
|
|
2048
|
-
readonly kind: "tool" | "application" | "mcp" | "memory";
|
|
2049
|
-
readonly id: string;
|
|
2050
|
-
readonly filePath: string;
|
|
2051
|
-
readonly relativePath: string;
|
|
2052
|
-
}
|
|
2053
|
-
interface DiscoveredFoundryRegistry {
|
|
2054
|
-
readonly capabilities: FoundryCapabilityRegistry;
|
|
2055
|
-
readonly native: FoundryNativeRegistry;
|
|
2056
|
-
readonly files: ReadonlyArray<DiscoveredCapability>;
|
|
2057
|
-
readonly nativeFiles: ReadonlyArray<{
|
|
2058
|
-
readonly kind: "layer" | "subscriber";
|
|
2059
|
-
readonly id: string;
|
|
2060
|
-
readonly filePath: string;
|
|
2061
|
-
readonly relativePath: string;
|
|
2062
|
-
}>;
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
declare const FOUNDRY_APPROVAL_DIRECTORY_ENV = "GLOVE_FOUNDRY_APPROVAL_DIRECTORY";
|
|
2066
|
-
type FoundryApprovalDecision = "approve" | "deny";
|
|
2067
|
-
type FoundryApprovalStatus = "pending" | "approved" | "denied" | "expired" | "cancelled";
|
|
2068
|
-
interface FoundryApproval {
|
|
2069
|
-
readonly id: string;
|
|
2070
|
-
readonly runId: string;
|
|
2071
|
-
readonly definitionId: string;
|
|
2072
|
-
readonly agentId: string;
|
|
2073
|
-
readonly conversationId: string;
|
|
2074
|
-
readonly workspaceId: string;
|
|
2075
|
-
readonly toolName: string;
|
|
2076
|
-
readonly toolInput: unknown;
|
|
2077
|
-
readonly status: FoundryApprovalStatus;
|
|
2078
|
-
readonly requestedAt: string;
|
|
2079
|
-
readonly expiresAt: string;
|
|
2080
|
-
readonly resolvedAt?: string;
|
|
2081
|
-
}
|
|
2082
|
-
declare function createFoundryApproval(directory: string, input: {
|
|
2083
|
-
readonly runId: string;
|
|
2084
|
-
readonly definitionId: string;
|
|
2085
|
-
readonly agentId: string;
|
|
2086
|
-
readonly conversationId: string;
|
|
2087
|
-
readonly workspaceId: string;
|
|
2088
|
-
readonly toolName: string;
|
|
2089
|
-
readonly toolInput: unknown;
|
|
2090
|
-
readonly timeoutMs?: number;
|
|
2091
|
-
}): Promise<FoundryApproval>;
|
|
2092
|
-
declare function listFoundryApprovals(directory: string, filter?: {
|
|
2093
|
-
readonly runId?: string;
|
|
2094
|
-
readonly status?: FoundryApprovalStatus;
|
|
2095
|
-
}): Promise<ReadonlyArray<FoundryApproval>>;
|
|
2096
|
-
declare function resolveFoundryApproval(directory: string, id: string, decision: FoundryApprovalDecision): Promise<FoundryApproval>;
|
|
2097
|
-
declare class FoundryApprovalDisplayManager extends Displaymanager implements DisplayManagerAdapter {
|
|
2098
|
-
private readonly context;
|
|
2099
|
-
constructor(context: {
|
|
2100
|
-
readonly directory?: string;
|
|
2101
|
-
readonly runId: string;
|
|
2102
|
-
readonly definitionId: string;
|
|
2103
|
-
readonly agentId: string;
|
|
2104
|
-
readonly conversationId: string;
|
|
2105
|
-
readonly workspaceId: string;
|
|
2106
|
-
readonly signal: AbortSignal;
|
|
2107
|
-
readonly emit: (event: {
|
|
2108
|
-
readonly type: string;
|
|
2109
|
-
readonly data?: unknown;
|
|
2110
|
-
}) => void;
|
|
2111
|
-
});
|
|
2112
|
-
pushAndWait<I, O>(slot: Omit<Slot<I>, "id">): Promise<O>;
|
|
2113
|
-
}
|
|
2114
|
-
/** Add fail-closed per-input permissions to a custom store that omitted them. */
|
|
2115
|
-
declare function withFoundryPermissions(store: StoreAdapter): StoreAdapter;
|
|
2116
|
-
|
|
2117
|
-
interface FoundryRun<TOutput = unknown> {
|
|
2118
|
-
readonly id: string;
|
|
2119
|
-
readonly agent: string;
|
|
2120
|
-
readonly kind: "trigger" | "recurring";
|
|
2121
|
-
readonly status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
2122
|
-
readonly input: unknown;
|
|
2123
|
-
readonly output?: TOutput;
|
|
2124
|
-
readonly agentId?: string;
|
|
2125
|
-
readonly conversationId?: string;
|
|
2126
|
-
readonly workspaceId?: string;
|
|
2127
|
-
readonly error?: string;
|
|
2128
|
-
readonly attempts: number;
|
|
2129
|
-
readonly maxAttempts: number;
|
|
2130
|
-
readonly timeoutMs: number;
|
|
2131
|
-
readonly createdAt: string;
|
|
2132
|
-
readonly startedAt?: string;
|
|
2133
|
-
readonly completedAt?: string;
|
|
2134
|
-
}
|
|
2135
|
-
interface FoundrySteerResult<TOutput = unknown> {
|
|
2136
|
-
/** The run whose direction was changed. */
|
|
2137
|
-
readonly fromRunId: string;
|
|
2138
|
-
/** True when an active source run accepted cooperative cancellation. */
|
|
2139
|
-
readonly interrupted: boolean;
|
|
2140
|
-
/** The replacement run in the same instance and conversation. */
|
|
2141
|
-
readonly run: FoundryRun<TOutput>;
|
|
2142
|
-
}
|
|
2143
|
-
/** Exact native Glove history and counters for one persisted conversation. */
|
|
2144
|
-
interface FoundryConversationTranscript {
|
|
2145
|
-
readonly conversation: Conversation;
|
|
2146
|
-
readonly messages: ReadonlyArray<Message>;
|
|
2147
|
-
readonly turnCount: number;
|
|
2148
|
-
readonly tokenCount: number;
|
|
2149
|
-
readonly tokenConsumption?: TokenConsumptionCounter;
|
|
2150
|
-
readonly page: {
|
|
2151
|
-
readonly offset: number;
|
|
2152
|
-
readonly limit: number;
|
|
2153
|
-
readonly total: number;
|
|
2154
|
-
readonly hasEarlier: boolean;
|
|
2155
|
-
readonly hasLater: boolean;
|
|
2156
|
-
};
|
|
2157
|
-
/** False means the definition did not configure a durable conversation store. */
|
|
2158
|
-
readonly persisted: boolean;
|
|
2159
|
-
}
|
|
2160
|
-
declare const FoundryRuntimeError_base: Schema.TaggedErrorClass<FoundryRuntimeError, "FoundryRuntimeError", {
|
|
2161
|
-
readonly _tag: Schema.tag<"FoundryRuntimeError">;
|
|
2162
|
-
} & {
|
|
2163
|
-
operation: typeof Schema.String;
|
|
2164
|
-
message: typeof Schema.String;
|
|
2165
|
-
}>;
|
|
2166
|
-
declare class FoundryRuntimeError extends FoundryRuntimeError_base {
|
|
2167
|
-
}
|
|
2168
|
-
interface FoundryRuntimeOptions {
|
|
2169
|
-
readonly rootDir: string;
|
|
2170
|
-
readonly agents: DiscoveredAgent[];
|
|
2171
|
-
readonly application?: FoundryApplication;
|
|
2172
|
-
readonly applicationFilePath?: string;
|
|
2173
|
-
readonly registry?: DiscoveredFoundryRegistry;
|
|
2174
|
-
readonly config?: FoundryConfig;
|
|
2175
|
-
readonly observability?: FoundryObservabilityAdapter;
|
|
2176
|
-
}
|
|
2177
|
-
declare class FoundryRuntime {
|
|
2178
|
-
readonly rootDir: string;
|
|
2179
|
-
readonly agents: readonly DiscoveredAgent[];
|
|
2180
|
-
readonly application: FoundryApplication;
|
|
2181
|
-
readonly applicationFilePath?: string;
|
|
2182
|
-
readonly registry: DiscoveredFoundryRegistry;
|
|
2183
|
-
readonly manifest: FoundryManifest;
|
|
2184
|
-
readonly applicationManifest: FoundryApplicationManifest;
|
|
2185
|
-
readonly observability: FoundryObservabilityAdapter;
|
|
2186
|
-
readonly data: FoundryDataAdapter;
|
|
2187
|
-
private readonly byRoute;
|
|
2188
|
-
private readonly routeBySignalName;
|
|
2189
|
-
private readonly transmissionById;
|
|
2190
|
-
/** Stable topology view used by synchronous playbook validation. */
|
|
2191
|
-
private readonly topologyRoutes;
|
|
2192
|
-
private readonly compositionByDefinition;
|
|
2193
|
-
private readonly connectionSupervisor;
|
|
2194
|
-
private readonly execution;
|
|
2195
|
-
private readonly observer;
|
|
2196
|
-
private readonly signalRunner;
|
|
2197
|
-
private readonly scheduleAdapter;
|
|
2198
|
-
private readonly services;
|
|
2199
|
-
private readonly runnerLoops;
|
|
2200
|
-
private readonly materializedActivations;
|
|
2201
|
-
private readonly activationTransitions;
|
|
2202
|
-
private readonly activationDispatches;
|
|
2203
|
-
private readonly activationTimers;
|
|
2204
|
-
/** Whether each run's child process still holds its conversation, from FOUNDRY_RUN_PROCESS_EVENT. */
|
|
2205
|
-
private readonly runProcesses;
|
|
2206
|
-
private readonly approvalDirectory;
|
|
2207
|
-
private readonly coreCommandDirectory;
|
|
2208
|
-
private started;
|
|
2209
|
-
private disposed;
|
|
2210
|
-
constructor(options: FoundryRuntimeOptions);
|
|
2211
|
-
static discover(options: {
|
|
2212
|
-
rootDir: string;
|
|
2213
|
-
agentsDir: string;
|
|
2214
|
-
application?: FoundryApplication;
|
|
2215
|
-
applicationFilePath?: string;
|
|
2216
|
-
config?: FoundryConfig;
|
|
2217
|
-
observability?: FoundryObservabilityAdapter;
|
|
2218
|
-
}): Promise<FoundryRuntime>;
|
|
2219
|
-
startEffect(): Effect.Effect<void, FoundryRuntimeError>;
|
|
2220
|
-
start(): Promise<void>;
|
|
2221
|
-
stopEffect(): Effect.Effect<void, FoundryRuntimeError>;
|
|
2222
|
-
stop(): Promise<void>;
|
|
2223
|
-
requestEffect(route: string, request: FoundryRequest): Effect.Effect<FoundryRun, FoundryRuntimeError>;
|
|
2224
|
-
request(route: string, request: FoundryRequest): Promise<FoundryRun>;
|
|
2225
|
-
createAgent(definitionId: string, options?: CreateAgentInstanceOptions): Promise<AgentInstance>;
|
|
2226
|
-
createConversation(agentId: string, options?: CreateConversationOptions): Promise<Conversation>;
|
|
2227
|
-
listAgentInstances(definitionId?: string): Promise<ReadonlyArray<AgentInstance>>;
|
|
2228
|
-
setAgentPlaybooks(agentId: string, playbooks: ReadonlyArray<AgentPlaybook>): Promise<AgentInstance>;
|
|
2229
|
-
listPlaybookSubscriptions(workspaceId?: string): Promise<ReadonlyArray<PlaybookSubscription>>;
|
|
2230
|
-
/** List persisted future activations created by schedules or sleeping runs. */
|
|
2231
|
-
listActivations(workspaceId?: string): Promise<ReadonlyArray<FoundryActivationRecord>>;
|
|
2232
|
-
putPlaybookSubscription(input: DefinePlaybookSubscriptionOptions | PlaybookSubscription): Promise<PlaybookSubscription>;
|
|
2233
|
-
deletePlaybookSubscription(id: string): Promise<boolean>;
|
|
2234
|
-
listApplicationConnections(): ReadonlyArray<ApplicationConnectionState>;
|
|
2235
|
-
reconnectApplicationConnection(id: string): Promise<void>;
|
|
2236
|
-
/** Atomically replace the persisted, frontend-editable instance configuration. */
|
|
2237
|
-
configureAgent(agentId: string, options: UpdateAgentInstanceOptions): Promise<AgentInstance>;
|
|
2238
|
-
listConversations(agentId: string): Promise<ReadonlyArray<Conversation>>;
|
|
2239
|
-
updateConversation(agentId: string, conversationId: string, options: UpdateConversationOptions): Promise<Conversation>;
|
|
2240
|
-
/**
|
|
2241
|
-
* Read the same StoreAdapter the child agent process uses. Foundry never
|
|
2242
|
-
* reconstructs chat history from runs or observability events: adapters stay
|
|
2243
|
-
* the single source of truth for durable conversations.
|
|
2244
|
-
*/
|
|
2245
|
-
conversationTranscript(agentId: string, conversationId: string, options?: {
|
|
2246
|
-
readonly offset?: number;
|
|
2247
|
-
readonly limit?: number;
|
|
2248
|
-
}): Promise<FoundryConversationTranscript>;
|
|
2249
|
-
listWorkspaceEntries(workspaceId: string): Promise<ReadonlyArray<WorkspaceEntry>>;
|
|
2250
|
-
putWorkspaceEntry(workspaceId: string, key: string, value: unknown): Promise<WorkspaceEntry>;
|
|
2251
|
-
listSharedInbox(workspaceId: string): Promise<ReadonlyArray<SharedInboxItem>>;
|
|
2252
|
-
postSharedInbox(input: Omit<SharedInboxItem, "id" | "createdAt" | "updatedAt">): Promise<SharedInboxItem>;
|
|
2253
|
-
updateSharedInbox(workspaceId: string, itemId: string, status: SharedInboxItem["status"]): Promise<SharedInboxItem>;
|
|
2254
|
-
listTasks(workspaceId: string): Promise<ReadonlyArray<FoundryTask>>;
|
|
2255
|
-
createTask(input: Omit<FoundryTask, "id" | "createdAt" | "updatedAt">): Promise<FoundryTask>;
|
|
2256
|
-
updateTask(workspaceId: string, taskId: string, status: FoundryTask["status"]): Promise<FoundryTask>;
|
|
2257
|
-
listDataEnvironment(scope: {
|
|
2258
|
-
readonly workspaceId: string;
|
|
2259
|
-
readonly agentId?: string;
|
|
2260
|
-
readonly conversationId?: string;
|
|
2261
|
-
}): Promise<ReadonlyArray<EnvironmentValue>>;
|
|
2262
|
-
send(agentId: string, conversationId: string, message: FoundryMessageInput, options?: {
|
|
2263
|
-
readonly payload?: unknown;
|
|
2264
|
-
readonly context?: Readonly<Record<string, unknown>>;
|
|
2265
|
-
}): Promise<FoundryRun<FoundryResult>>;
|
|
2266
|
-
getRun<TOutput = unknown>(runId: string): Promise<FoundryRun<TOutput> | null>;
|
|
2267
|
-
listRuns(route?: string): Promise<FoundryRun[]>;
|
|
2268
|
-
waitForRun<TOutput = unknown>(runId: string, options?: {
|
|
2269
|
-
pollMs?: number;
|
|
2270
|
-
timeoutMs?: number;
|
|
2271
|
-
}): Promise<FoundryRun<TOutput> | null>;
|
|
2272
|
-
cancel(runId: string): Promise<boolean>;
|
|
2273
|
-
private trackRunProcess;
|
|
2274
|
-
/**
|
|
2275
|
-
* Wait until a cancelled run's process has let go of its conversation. A run
|
|
2276
|
-
* that never started has no process. A process that dies before it reports
|
|
2277
|
-
* (SIGTERM during startup, or Station's SIGKILL five seconds after the
|
|
2278
|
-
* cancel) cannot report, so the wait is bounded by that kill.
|
|
2279
|
-
*/
|
|
2280
|
-
private waitForRunProcessRelease;
|
|
2281
|
-
/**
|
|
2282
|
-
* Change course at a run boundary.
|
|
2283
|
-
*
|
|
2284
|
-
* Foundry does not inject text into an arbitrary in-flight tool. If the
|
|
2285
|
-
* source is active, steering cooperatively cancels it first, waits for that
|
|
2286
|
-
* terminal boundary, then starts a replacement turn in the same durable
|
|
2287
|
-
* conversation with explicit lineage in the request context.
|
|
2288
|
-
*/
|
|
2289
|
-
steer(runId: string, message: FoundryMessageInput): Promise<FoundrySteerResult<FoundryResult>>;
|
|
2290
|
-
listApprovals(filter?: {
|
|
2291
|
-
readonly runId?: string;
|
|
2292
|
-
readonly status?: FoundryApprovalStatus;
|
|
2293
|
-
}): Promise<ReadonlyArray<FoundryApproval>>;
|
|
2294
|
-
resolveApproval(approvalId: string, decision: FoundryApprovalDecision): Promise<FoundryApproval>;
|
|
2295
|
-
capabilityManifest(definitionId: string): FoundryCapabilityManifest;
|
|
2296
|
-
nativeManifest(definitionId: string): FoundryNativeManifest;
|
|
2297
|
-
listInstallations(agentId: string): Promise<ReadonlyArray<AgentInstallation>>;
|
|
2298
|
-
installCapability(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
2299
|
-
uninstallCapability(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
2300
|
-
listAccounts(): Promise<{
|
|
2301
|
-
id: string & effect_Brand.Brand<"FoundryAccountId">;
|
|
2302
|
-
transmissionId: string & effect_Brand.Brand<"FoundryTransmissionId">;
|
|
2303
|
-
externalAccountId: string;
|
|
2304
|
-
label?: string | undefined;
|
|
2305
|
-
metadata: {
|
|
2306
|
-
readonly [x: string]: unknown;
|
|
2307
|
-
};
|
|
2308
|
-
}[]>;
|
|
2309
|
-
listRoutes(): Promise<readonly ({
|
|
2310
|
-
readonly id: string & effect_Brand.Brand<"FoundryRouteId">;
|
|
2311
|
-
readonly transmissionId: string & effect_Brand.Brand<"FoundryTransmissionId">;
|
|
2312
|
-
readonly direction: "inbound";
|
|
2313
|
-
readonly accountId?: (string & effect_Brand.Brand<"FoundryAccountId">) | undefined;
|
|
2314
|
-
readonly visibility: "private" | "workspace";
|
|
2315
|
-
readonly enabled: boolean;
|
|
2316
|
-
readonly config: {
|
|
2317
|
-
readonly [x: string]: unknown;
|
|
2318
|
-
};
|
|
2319
|
-
} | {
|
|
2320
|
-
readonly id: string & effect_Brand.Brand<"FoundryRouteId">;
|
|
2321
|
-
readonly transmissionId: string & effect_Brand.Brand<"FoundryTransmissionId">;
|
|
2322
|
-
readonly direction: "outbound";
|
|
2323
|
-
readonly accountId?: (string & effect_Brand.Brand<"FoundryAccountId">) | undefined;
|
|
2324
|
-
readonly visibility: "private" | "workspace";
|
|
2325
|
-
readonly enabled: boolean;
|
|
2326
|
-
readonly config: {
|
|
2327
|
-
readonly [x: string]: unknown;
|
|
2328
|
-
};
|
|
2329
|
-
})[]>;
|
|
2330
|
-
putRoute(route: Route): Promise<Route>;
|
|
2331
|
-
removeRoute(id: RouteId): Promise<void>;
|
|
2332
|
-
listBindings(): Promise<readonly {
|
|
2333
|
-
readonly id: string & effect_Brand.Brand<"FoundryBindingId">;
|
|
2334
|
-
readonly transmissionId: string & effect_Brand.Brand<"FoundryTransmissionId">;
|
|
2335
|
-
readonly accountId?: (string & effect_Brand.Brand<"FoundryAccountId">) | undefined;
|
|
2336
|
-
readonly enabled: boolean;
|
|
2337
|
-
readonly routeId?: (string & effect_Brand.Brand<"FoundryRouteId">) | undefined;
|
|
2338
|
-
readonly agentId: string & effect_Brand.Brand<"FoundryAgentId">;
|
|
2339
|
-
readonly capabilities: readonly (string & effect_Brand.Brand<"FoundryCapabilityId">)[];
|
|
2340
|
-
readonly reply?: {
|
|
2341
|
-
readonly mode: "none";
|
|
2342
|
-
} | {
|
|
2343
|
-
readonly mode: "origin";
|
|
2344
|
-
} | {
|
|
2345
|
-
readonly mode: "route";
|
|
2346
|
-
readonly routeId: string & effect_Brand.Brand<"FoundryRouteId">;
|
|
2347
|
-
} | undefined;
|
|
2348
|
-
}[]>;
|
|
2349
|
-
putBinding(binding: AgentBinding): Promise<AgentBinding>;
|
|
2350
|
-
removeBinding(id: BindingId): Promise<void>;
|
|
2351
|
-
resolveGrant(request: ResolveGrantRequest): Promise<RunGrant>;
|
|
2352
|
-
putEvent(reference: EventReference, payload: unknown): Promise<void>;
|
|
2353
|
-
dispatchInbound(input: {
|
|
2354
|
-
readonly routeId: string;
|
|
2355
|
-
readonly eventId: string;
|
|
2356
|
-
readonly threadKey: string;
|
|
2357
|
-
readonly conversationKey?: string;
|
|
2358
|
-
readonly conversationScope?: "route" | "agent";
|
|
2359
|
-
readonly raw: unknown;
|
|
2360
|
-
}): Promise<ReadonlyArray<FoundryRun>>;
|
|
2361
|
-
dispatchOutbound(input: {
|
|
2362
|
-
readonly routeId: string;
|
|
2363
|
-
readonly agentId: string;
|
|
2364
|
-
readonly runId: string;
|
|
2365
|
-
readonly payload: unknown;
|
|
2366
|
-
readonly commandId?: string;
|
|
2367
|
-
readonly applicationId?: string;
|
|
2368
|
-
readonly transmissionId?: string;
|
|
2369
|
-
readonly signal?: AbortSignal;
|
|
2370
|
-
}): Promise<unknown>;
|
|
2371
|
-
health(): Promise<Record<string, unknown>>;
|
|
2372
|
-
private runsFromIds;
|
|
2373
|
-
private waitForInboundDelivery;
|
|
2374
|
-
private validatePlaybookSubscription;
|
|
2375
|
-
private playbookMatches;
|
|
2376
|
-
private resolveSubscriptionTarget;
|
|
2377
|
-
private attachSubscriptionPlaybook;
|
|
2378
|
-
private reconcileApplicationConnections;
|
|
2379
|
-
private assertRegisteredInstallation;
|
|
2380
|
-
private validatePlaybooks;
|
|
2381
|
-
private validateRoute;
|
|
2382
|
-
private validateBinding;
|
|
2383
|
-
private seedTopology;
|
|
2384
|
-
private runInBackground;
|
|
2385
|
-
private settleRunnerLoops;
|
|
2386
|
-
private enqueueCoreRequest;
|
|
2387
|
-
private withActivationTransition;
|
|
2388
|
-
private executeCoreCommand;
|
|
2389
|
-
private executeCoreCommandUnlocked;
|
|
2390
|
-
private syncAgentPlaybooks;
|
|
2391
|
-
private assertActivationOwnership;
|
|
2392
|
-
private backendScheduleId;
|
|
2393
|
-
private disarmActivation;
|
|
2394
|
-
private syncDefinitionSchedules;
|
|
2395
|
-
private updateScheduledActivation;
|
|
2396
|
-
private pauseScheduledActivation;
|
|
2397
|
-
private resumeScheduledActivation;
|
|
2398
|
-
private cancelScheduledActivation;
|
|
2399
|
-
private reconstructActivations;
|
|
2400
|
-
private materializeActivation;
|
|
2401
|
-
private armOneShotActivation;
|
|
2402
|
-
private deliverOutbound;
|
|
2403
|
-
private executionEnvelope;
|
|
2404
|
-
private toFoundryRun;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
interface FoundryClientOptions {
|
|
2408
|
-
baseUrl?: string;
|
|
2409
|
-
fetch?: typeof globalThis.fetch;
|
|
2410
|
-
/** Resolve secret-bearing request headers outside Foundry data and state. */
|
|
2411
|
-
authorization?: FoundryClientAuthorizationAdapter;
|
|
2412
|
-
}
|
|
2413
|
-
interface FoundryClientAuthorizationAdapter {
|
|
2414
|
-
readonly identifier: string;
|
|
2415
|
-
readonly headers: (request: {
|
|
2416
|
-
readonly url: string;
|
|
2417
|
-
readonly method: string;
|
|
2418
|
-
}) => HeadersInit | Promise<HeadersInit>;
|
|
2419
|
-
}
|
|
2420
|
-
interface WaitOptions {
|
|
2421
|
-
pollMs?: number;
|
|
2422
|
-
timeoutMs?: number;
|
|
2423
|
-
signal?: AbortSignal;
|
|
2424
|
-
}
|
|
2425
|
-
interface FoundrySteerHandleResult<TOutput = unknown> {
|
|
2426
|
-
readonly fromRunId: string;
|
|
2427
|
-
readonly interrupted: boolean;
|
|
2428
|
-
readonly run: FoundryRunHandle<TOutput>;
|
|
2429
|
-
}
|
|
2430
|
-
interface FoundryHealth {
|
|
2431
|
-
readonly ok: boolean;
|
|
2432
|
-
readonly execution: boolean;
|
|
2433
|
-
readonly environment: boolean;
|
|
2434
|
-
readonly activations: boolean;
|
|
2435
|
-
readonly agents: number;
|
|
2436
|
-
readonly capabilities: number;
|
|
2437
|
-
readonly surfaces: number;
|
|
2438
|
-
}
|
|
2439
|
-
declare class FoundryRunHandle<TOutput> {
|
|
2440
|
-
readonly id: string;
|
|
2441
|
-
readonly initial: FoundryRun<TOutput>;
|
|
2442
|
-
private readonly client;
|
|
2443
|
-
constructor(id: string, initial: FoundryRun<TOutput>, client: FoundryClient<FoundryRouteMap>);
|
|
2444
|
-
get(): Promise<FoundryRun<TOutput>>;
|
|
2445
|
-
cancel(): Promise<boolean>;
|
|
2446
|
-
steer(message: FoundryMessageInput): Promise<FoundrySteerHandleResult<TOutput>>;
|
|
2447
|
-
events(): Promise<FoundryEvent[]>;
|
|
2448
|
-
wait(options?: WaitOptions): Promise<FoundryRun<TOutput>>;
|
|
2449
|
-
}
|
|
2450
|
-
declare class FoundryClient<TRoutes extends FoundryRouteMap> {
|
|
2451
|
-
private readonly baseUrl;
|
|
2452
|
-
private readonly fetcher;
|
|
2453
|
-
constructor(options?: FoundryClientOptions);
|
|
2454
|
-
/** Resolves with `ok: false` when a subsystem is down (the server answers 503). */
|
|
2455
|
-
health(): Promise<FoundryHealth>;
|
|
2456
|
-
agent<TRoute extends Extract<keyof TRoutes, string>>(route: TRoute): {
|
|
2457
|
-
create(options?: CreateAgentInstanceOptions): Promise<AgentInstance>;
|
|
2458
|
-
request(request: FoundryRequest): Promise<FoundryRunHandle<FoundryResult>>;
|
|
2459
|
-
};
|
|
2460
|
-
createAgent(definitionId: string, options?: CreateAgentInstanceOptions): Promise<AgentInstance>;
|
|
2461
|
-
agentInstances(definitionId?: string): Promise<ReadonlyArray<AgentInstance>>;
|
|
2462
|
-
configureAgent(agentId: string, options: UpdateAgentInstanceOptions): Promise<AgentInstance>;
|
|
2463
|
-
setAgentPlaybooks(agentId: string, playbooks: ReadonlyArray<AgentPlaybook>): Promise<AgentInstance>;
|
|
2464
|
-
createConversation(agentId: string, options?: CreateConversationOptions): Promise<Conversation>;
|
|
2465
|
-
conversations(agentId: string): Promise<ReadonlyArray<Conversation>>;
|
|
2466
|
-
updateConversation(agentId: string, conversationId: string, options: UpdateConversationOptions): Promise<Conversation>;
|
|
2467
|
-
conversationTranscript(agentId: string, conversationId: string, options?: {
|
|
2468
|
-
readonly offset?: number;
|
|
2469
|
-
readonly limit?: number;
|
|
2470
|
-
}): Promise<FoundryConversationTranscript>;
|
|
2471
|
-
workspaceEntries(workspaceId: string): Promise<ReadonlyArray<WorkspaceEntry>>;
|
|
2472
|
-
putWorkspaceEntry(workspaceId: string, key: string, value: unknown): Promise<WorkspaceEntry>;
|
|
2473
|
-
sharedInbox(workspaceId: string): Promise<ReadonlyArray<SharedInboxItem>>;
|
|
2474
|
-
postSharedInbox(workspaceId: string, input: {
|
|
2475
|
-
readonly topic: string;
|
|
2476
|
-
readonly payload?: unknown;
|
|
2477
|
-
readonly agentId?: string;
|
|
2478
|
-
readonly conversationId?: string;
|
|
2479
|
-
}): Promise<SharedInboxItem>;
|
|
2480
|
-
updateSharedInbox(workspaceId: string, itemId: string, status: SharedInboxItem["status"]): Promise<SharedInboxItem>;
|
|
2481
|
-
tasks(workspaceId: string): Promise<ReadonlyArray<FoundryTask>>;
|
|
2482
|
-
createTask(workspaceId: string, input: {
|
|
2483
|
-
readonly title: string;
|
|
2484
|
-
readonly detail?: string;
|
|
2485
|
-
readonly agentId?: string;
|
|
2486
|
-
readonly conversationId?: string;
|
|
2487
|
-
}): Promise<FoundryTask>;
|
|
2488
|
-
updateTask(workspaceId: string, taskId: string, status: FoundryTask["status"]): Promise<FoundryTask>;
|
|
2489
|
-
dataEnvironment(workspaceId: string, scope?: {
|
|
2490
|
-
readonly agentId?: string;
|
|
2491
|
-
readonly conversationId?: string;
|
|
2492
|
-
}): Promise<ReadonlyArray<EnvironmentValue>>;
|
|
2493
|
-
dispatchInbound(input: {
|
|
2494
|
-
readonly routeId: string;
|
|
2495
|
-
readonly eventId: string;
|
|
2496
|
-
readonly threadKey: string;
|
|
2497
|
-
readonly conversationKey?: string;
|
|
2498
|
-
readonly conversationScope?: "route" | "agent";
|
|
2499
|
-
readonly raw: unknown;
|
|
2500
|
-
}): Promise<ReadonlyArray<FoundryRun>>;
|
|
2501
|
-
playbookSubscriptions(workspaceId?: string): Promise<ReadonlyArray<PlaybookSubscription>>;
|
|
2502
|
-
activations(workspaceId?: string): Promise<ReadonlyArray<FoundryActivationRecord>>;
|
|
2503
|
-
putPlaybookSubscription(subscription: PlaybookSubscription): Promise<PlaybookSubscription>;
|
|
2504
|
-
deletePlaybookSubscription(id: string): Promise<boolean>;
|
|
2505
|
-
applicationConnections(): Promise<ReadonlyArray<ApplicationConnectionState>>;
|
|
2506
|
-
reconnectApplicationConnection(id: string): Promise<void>;
|
|
2507
|
-
dispatchOutbound(input: {
|
|
2508
|
-
readonly routeId: string;
|
|
2509
|
-
readonly agentId: string;
|
|
2510
|
-
readonly runId: string;
|
|
2511
|
-
readonly payload: unknown;
|
|
2512
|
-
}): Promise<unknown>;
|
|
2513
|
-
send(agentId: string, conversationId: string, message: FoundryMessageInput, options?: {
|
|
2514
|
-
readonly payload?: unknown;
|
|
2515
|
-
readonly context?: Readonly<Record<string, unknown>>;
|
|
2516
|
-
}): Promise<FoundryRunHandle<FoundryResult>>;
|
|
2517
|
-
getRun<TOutput = unknown>(runId: string): Promise<FoundryRun<TOutput>>;
|
|
2518
|
-
runs<TOutput = unknown>(route?: string): Promise<ReadonlyArray<FoundryRun<TOutput>>>;
|
|
2519
|
-
cancelRun(runId: string): Promise<boolean>;
|
|
2520
|
-
steerRun<TOutput = FoundryResult>(runId: string, message: FoundryMessageInput): Promise<FoundrySteerResult<TOutput>>;
|
|
2521
|
-
getEvents(filter?: {
|
|
2522
|
-
runId?: string;
|
|
2523
|
-
agent?: string;
|
|
2524
|
-
after?: number;
|
|
2525
|
-
category?: FoundryEvent["category"];
|
|
2526
|
-
}): Promise<FoundryEvent[]>;
|
|
2527
|
-
approvals(filter?: {
|
|
2528
|
-
readonly runId?: string;
|
|
2529
|
-
readonly status?: FoundryApprovalStatus;
|
|
2530
|
-
}): Promise<ReadonlyArray<FoundryApproval>>;
|
|
2531
|
-
resolveApproval(approvalId: string, decision: FoundryApprovalDecision): Promise<FoundryApproval>;
|
|
2532
|
-
manifest(): Promise<{
|
|
2533
|
-
agents: FoundryManifest;
|
|
2534
|
-
application: FoundryApplicationManifest;
|
|
2535
|
-
definitions: Readonly<Record<string, {
|
|
2536
|
-
capabilities: FoundryCapabilityManifest;
|
|
2537
|
-
surfaces: FoundryNativeManifest;
|
|
2538
|
-
}>>;
|
|
2539
|
-
}>;
|
|
2540
|
-
capabilities(definitionId: string): Promise<FoundryCapabilityManifest>;
|
|
2541
|
-
surfaces(definitionId: string): Promise<FoundryNativeManifest>;
|
|
2542
|
-
installations(agentId: string): Promise<ReadonlyArray<AgentInstallation>>;
|
|
2543
|
-
install(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
2544
|
-
uninstall(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
2545
|
-
accounts(): Promise<ReadonlyArray<AccountSummary>>;
|
|
2546
|
-
routes(): Promise<ReadonlyArray<Route>>;
|
|
2547
|
-
putRoute(route: Route): Promise<Route>;
|
|
2548
|
-
removeRoute(id: string): Promise<void>;
|
|
2549
|
-
bindings(): Promise<ReadonlyArray<AgentBinding>>;
|
|
2550
|
-
putBinding(binding: AgentBinding): Promise<AgentBinding>;
|
|
2551
|
-
removeBinding(id: string): Promise<void>;
|
|
2552
|
-
resolveGrant(request: ResolveGrantRequest): Promise<RunGrant>;
|
|
2553
|
-
private asUntyped;
|
|
2554
|
-
}
|
|
2555
|
-
declare function createFoundryClient<TRoutes extends FoundryRouteMap = Record<string, AnyFoundryAgent>>(options?: FoundryClientOptions): FoundryClient<TRoutes>;
|
|
2556
|
-
|
|
2557
|
-
export { type ApplicationConnectionState as $, type AgentInstance as A, type AgentApplicationInstallContext as B, type Conversation as C, type DiscoveredAgent as D, type EnvironmentValue as E, type FoundryDataAdapter as F, type AgentApplicationOptions as G, type AgentAssemblyContext as H, type InboundDeliveryClaim as I, type AgentAssemblyOptions as J, AgentDefinitionId as K, type AgentDefinitionSurfaceContext as L, type AgentFactoryContext as M, type AgentHandlerContext 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 AgentPlaybookInput as V, type WorkspaceEntry as W, type AgentProvisioningPolicy as X, type AgentRuntimeControls as Y, type AnyFoundryAgent as Z, type ApplicationConnectionContext as _, type FoundryActivationRecord as a, type FoundryApp as a$, type ApplicationConnectionStatus as a0, type BindingFilter as a1, BindingId as a2, BindingNotFound as a3, CapabilityId as a4, type ComposedAgentPlaybook as a5, type ComposedAgentPlaybookInput as a6, type ConnectionReceiveInput as a7, type CreateAgentInstanceOptions as a8, type CreateConversationOptions as a9, FOUNDRY_APPLICATION_BRAND 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 CustomProvisionedAgent as aa, type CustomProvisioningContext as ab, type DefineAgentOptions as ac, type DefineConnectionOptions as ad, type DefineFoundryReplOptions as ae, type DefineFoundryScheduleOptions as af, type DefineFoundrySubagentOptions as ag, type DefineFoundryWorkingEnvironmentOptions as ah, type DefinePlaybookSubscriptionOptions as ai, type DefinitionConfigInput as aj, EMPTY_AGENT_COMPOSITION as ak, EMPTY_CAPABILITY_REGISTRY as al, EMPTY_FOUNDRY_APPLICATION as am, EMPTY_NATIVE_REGISTRY as an, type EgressAdapter as ao, type EgressContext as ap, type EventFilter as aq, EventId as ar, EventNotFound as as, EventReference as at, EventStore as au, FOUNDRY_AGENT_APPLICATION_BRAND as av, FOUNDRY_AGENT_BRAND as aw, FOUNDRY_AGENT_DEFINITION_BRAND as ax, FOUNDRY_AGENT_FILE_ENV as ay, FOUNDRY_AGENT_ROUTE_ENV as az, type ProvisionAgentOptions as b, type FoundryRequest as b$, type FoundryApplication as b0, type FoundryApplicationConnection as b1, FoundryApplicationManifest as b2, type FoundryApplicationOptions as b3, type FoundryApproval as b4, type FoundryApprovalDecision as b5, FoundryApprovalDisplayManager as b6, type FoundryApprovalStatus as b7, type FoundryCall as b8, type FoundryCallContext as b9, type FoundryLayerOptions as bA, type FoundryLayerReference as bB, type FoundryLayerSelection as bC, type FoundryLispReplDefinition as bD, type FoundryListResolver as bE, type FoundryManifestAgent as bF, FoundryManifestCapability as bG, FoundryManifestTransmission as bH, type FoundryMcp as bI, type FoundryMcpOptions as bJ, type FoundryMemoryProfile as bK, type FoundryMemoryProfileOptions as bL, type FoundryMemoryReference as bM, type FoundryMemorySelection as bN, type FoundryMeshConfig as bO, type FoundryMessageInput as bP, type FoundryMountedRepl as bQ, type FoundryNativeManifest as bR, type FoundryNativeManifestEntry as bS, type FoundryNativeRegistry as bT, type FoundryObservabilityAdapter as bU, type FoundryPlaybookAction as bV, type FoundryProgrammaticToolContext as bW, type FoundryProgrammaticToolSelection as bX, type FoundryProgrammaticTools as bY, type FoundryPythonReplDefinition as bZ, type FoundryReplDefinition as b_, type FoundryCallOptions as ba, type FoundryCapabilityKind as bb, type FoundryCapabilityManifest as bc, type FoundryCapabilityManifestEntry as bd, type FoundryCapabilityRegistry as be, FoundryClient as bf, type FoundryClientAuthorizationAdapter as bg, type FoundryClientOptions as bh, type FoundryCompositionSource as bi, type FoundryConversationTranscript as bj, type FoundryCoreCommand as bk, type FoundryDomainError as bl, type FoundryEvent as bm, type FoundryEventCategory as bn, type FoundryExecutionContext as bo, type FoundryFactsOptions as bp, type FoundryFormsOptions as bq, type FoundryGoalsOptions as br, type FoundryGuidanceHandles as bs, type FoundryGuidanceScope as bt, type FoundryHealth as bu, type FoundryHookDefinition as bv, type FoundryInstallable as bw, type FoundryInstanceProvisioner as bx, type FoundryJavaScriptReplDefinition as by, type FoundryLayer as bz, type FoundryWorkingEnvironmentSnapshotOwner as c, RunId as c$, type FoundryRequestAuthorizationAdapter as c0, type FoundryRequestAuthorizationInput as c1, type FoundryResolvedMcp as c2, type FoundryResolver as c3, type FoundryResult as c4, type FoundryRouteMap as c5, type FoundryRun as c6, FoundryRunHandle as c7, FoundryRuntimeError as c8, type FoundryRuntimeOptions as c9, type InferInboundEvent as cA, type InferOutboundInput as cB, type InferOutboundOutput as cC, type IngressAdapter as cD, type IngressContext as cE, type InstallationSelection as cF, ManifestCompilationError as cG, type McpAdapterFactory as cH, MemoryFoundryDataAdapter as cI, MemoryObservabilityAdapter as cJ, type OutboundContract as cK, type PlaybookActionOptions as cL, type PlaybookDirective as cM, type PlaybookDirectiveInput as cN, type PlaybookMatch as cO, type PlaybookMatchInput as cP, type PlaybookOutboundDirective as cQ, type PlaybookOutboundInput as cR, type PlaybookSubscriptionTarget as cS, type PlaybookSubscriptionTargetInput as cT, ReplyPolicy as cU, type ResolveGrantRequest as cV, Route as cW, type RouteFilter as cX, RouteId as cY, RouteNotFound as cZ, RunGrant as c_, type FoundryScheduleDefinition as ca, type FoundryScheduleTiming as cb, type FoundryScheduleTimingInput as cc, type FoundrySharedTool as cd, type FoundrySteerHandleResult as ce, type FoundrySteerResult as cf, type FoundrySubagentToolContext as cg, type FoundrySubscriber as ch, type FoundrySubscriberOptions as ci, type FoundrySubscriberSelection as cj, type FoundrySurfaceContext as ck, type FoundryToolBody as cl, type FoundryTransmission as cm, type FoundryTransmissionEvent as cn, type FoundryTransmissionPredicate as co, type FoundryVfs as cp, type FoundryVfsHandle as cq, type FoundryWorkingEnvironmentCreateContext as cr, type FoundryWorkingEnvironmentDefinition as cs, type FoundryWorkingEnvironmentPersistenceAdapter as ct, type FoundryWorkingEnvironmentPersistenceContext as cu, GrantResolutionError as cv, GrantResolver as cw, type InboundContract as cx, type InferAgentInput as cy, type InferAgentOutput as cz, type FoundryTask as d, isFoundryApplication as d$, type SharedToolOptions as d0, TopologyConflict as d1, TopologyStore as d2, type TransmissionEventDirection as d3, type TransmissionEventOptions as d4, TransmissionId as d5, type TransmissionOptions as d6, type TransmissionPredicateOptions as d7, type TransmissionSerializationContext as d8, type UpdateAgentInstanceOptions as d9, defineLayer as dA, defineMcp as dB, defineMemory as dC, definePlaybookAction as dD, definePlaybookSubscription as dE, defineRepl as dF, defineRoutes as dG, defineSchedule as dH, defineSharedTool as dI, defineSubagent as dJ, defineSubscriber as dK, defineTransmission as dL, defineTransmissionEvent as dM, defineTransmissionPredicate as dN, defineWorkingEnvironment as dO, discoverAgents as dP, findAgentFiles as dQ, foundryDataEnvironmentPersistence as dR, foundryGuidanceSubject as dS, grantResolverLive as dT, install as dU, installRegistry as dV, installationKey as dW, installedApplicationTransmissionToolName as dX, internalAgentName as dY, isFoundryAgent as dZ, isFoundryAgentDefinition as d_, type UpdateConversationOptions as da, type WaitOptions as db, compileApplicationManifest as dc, composeAgent as dd, composePlaybook as de, configureLayer as df, configureMemory as dg, createAgentInstance as dh, createConversation as di, createFoundryApproval as dj, createFoundryClient as dk, createFoundryCoreTools as dl, createInstalledApplicationTransmissionTools as dm, createManifest as dn, defineAgent as dp, defineAgentApplication as dq, defineAgentFromModule as dr, defineAgentInstance as ds, defineApp as dt, defineApplication as du, defineCall as dv, defineConnection as dw, defineFacts as dx, defineForms as dy, defineGoals as dz, type AgentPlaybook as e, isFoundryCapability as e0, isFoundryLayer as e1, isFoundrySchedule as e2, isFoundrySubscriber as e3, isFoundryTransmission as e4, isInboxCapableStore as e5, listFoundryApprovals as e6, memoryAccountDirectory as e7, memoryEventStore as e8, memoryTopologyStore as e9, mountAgentDefinitionMemory as ea, mountFoundrySurfaces as eb, reconstructAgentInstance as ec, reconstructPlaybook as ed, reconstructPlaybookSubscription as ee, resolveFoundryApproval as ef, routeFromAgentFile as eg, routeFromInternalAgentName as eh, toGloveMessage as ei, toGloveRequestInput as ej, transmissionPredicate as ek, withFoundryPermissions as el, FoundryRuntime as f, type FoundryManifest as g, type AnyFoundryTransmission as h, AccountReference as i, type InferAccountMetadata as j, AgentBinding as k, type FoundryAgentApplication as l, InboundRoute as m, type CapabilityDefinition as n, type InferInboundConfig as o, type InferOutboundConfig as p, type AccountContract as q, AccountDirectory as r, type AccountFilter as s, AccountId as t, AccountNotFound as u, type AccountSessionAdapter as v, type AccountSessionRequest as w, AccountSessionUnavailable as x, AccountSummary as y, type AgentApplicationContribution as z };
|
|
1928
|
+
export { type ComposedAgentPlaybook as $, type AgentHandlerContext as A, type AgentAssemblyOptions as B, type Conversation as C, AgentDefinitionId as D, type EnvironmentValue as E, type FoundryDelegationUpdate as F, type AgentDefinitionSurfaceContext as G, type AgentFactoryContext as H, type InboundDeliveryClaim as I, AgentId as J, type AgentInstallContext as K, type AgentInstallation as L, type AgentInstallationKind as M, type AgentPlaybookInput as N, OutboundRoute as O, type PlaybookSubscription as P, type AgentProvisioningPolicy as Q, type AgentRuntimeControls as R, type SharedInboxItem as S, type AnyFoundryAgent as T, type ApplicationConnectionContext as U, type ApplicationConnectionState as V, type WorkspaceEntry as W, type ApplicationConnectionStatus as X, BindingId as Y, BindingNotFound as Z, CapabilityId as _, type FoundryDataAdapter as a, type FoundryCoreCommand as a$, type ComposedAgentPlaybookInput as a0, type ConnectionReceiveInput as a1, type CreateAgentInstanceOptions as a2, type CreateConversationOptions as a3, type CustomProvisionedAgent as a4, type CustomProvisioningContext as a5, type DefineAgentOptions as a6, type DefineConnectionOptions as a7, type DefineFoundryReplOptions as a8, type DefineFoundryScheduleOptions as a9, FOUNDRY_PLAYBOOK_ACTION_BRAND as aA, FOUNDRY_REPL_BRAND as aB, FOUNDRY_SCHEDULE_BRAND as aC, FOUNDRY_SHARED_TOOL_BRAND as aD, FOUNDRY_SUBSCRIBER_BRAND as aE, FOUNDRY_TRANSMISSION_BRAND as aF, FOUNDRY_TRANSMISSION_EVENT_BRAND as aG, FOUNDRY_TRANSMISSION_PREDICATE_BRAND as aH, FOUNDRY_WORKING_ENVIRONMENT_BRAND as aI, type FoundryAccountSessionAdapter as aJ, type FoundryAgent as aK, type FoundryAgentComponent as aL, type FoundryAgentComposition as aM, type FoundryAgentConventionModule as aN, type FoundryAgentDefinition as aO, type FoundryAgentMode as aP, type FoundryApp as aQ, type FoundryApplicationConnection as aR, type FoundryCall as aS, type FoundryCallContext as aT, type FoundryCallOptions as aU, type FoundryCapabilityKind as aV, type FoundryCapabilityManifest as aW, type FoundryCapabilityManifestEntry as aX, type FoundryCapabilityRegistry as aY, type FoundryCompositionSource as aZ, type FoundryContextProvider as a_, type DefineFoundrySubagentOptions as aa, type DefineFoundryWorkingEnvironmentOptions as ab, type DefinePlaybookSubscriptionOptions as ac, type DefinitionConfigInput as ad, EMPTY_AGENT_COMPOSITION as ae, EMPTY_CAPABILITY_REGISTRY as af, EMPTY_NATIVE_REGISTRY as ag, type EgressAdapter as ah, type EgressContext as ai, EventId as aj, EventNotFound as ak, EventReference as al, FOUNDRY_AGENT_APPLICATION_BRAND as am, FOUNDRY_AGENT_BRAND as an, FOUNDRY_AGENT_DEFINITION_BRAND as ao, FOUNDRY_AGENT_FILE_ENV as ap, FOUNDRY_AGENT_ROUTE_ENV as aq, FOUNDRY_APPLICATION_ENV as ar, FOUNDRY_COMPOSED_PLAYBOOK_BRAND as as, FOUNDRY_CONNECTION_BRAND as at, FOUNDRY_CORE_COMMAND_EVENT as au, FOUNDRY_EVENT_PREFIX as av, FOUNDRY_EXECUTION_MARKER as aw, FOUNDRY_LAYER_BRAND as ax, FOUNDRY_MCP_BRAND as ay, FOUNDRY_MEMORY_BRAND as az, type AgentInstance as b, type FoundryWorkingEnvironmentDefinition as b$, type FoundryDelegate as b0, type FoundryDelegateOptions as b1, type FoundryDelegation as b2, type FoundryDelegationReply as b3, type FoundryDelegationStatus as b4, type FoundryDomainError as b5, type FoundryExecutionContext as b6, type FoundryFactsOptions as b7, type FoundryFormsOptions as b8, type FoundryGoalsOptions as b9, type FoundryProgrammaticToolSelection as bA, type FoundryProgrammaticTools as bB, type FoundryPythonReplDefinition as bC, type FoundryReplDefinition as bD, type FoundryRequest as bE, type FoundryResolvedMcp as bF, type FoundryResolver as bG, type FoundryResult as bH, type FoundryRouteMap as bI, type FoundryScheduleDefinition as bJ, type FoundryScheduleTiming as bK, type FoundryScheduleTimingInput as bL, type FoundrySharedTool as bM, type FoundrySubagentToolContext as bN, type FoundrySubscriber as bO, type FoundrySubscriberOptions as bP, type FoundrySubscriberSelection as bQ, type FoundrySurfaceContext as bR, type FoundrySuspension as bS, type FoundryToolBody as bT, type FoundryTransmission as bU, type FoundryTransmissionDelivery as bV, type FoundryTransmissionEvent as bW, type FoundryTransmissionPredicate as bX, type FoundryVfs as bY, type FoundryVfsHandle as bZ, type FoundryWorkingEnvironmentCreateContext as b_, type FoundryGuidanceHandles as ba, type FoundryGuidanceScope as bb, type FoundryHookDefinition as bc, type FoundryInstallable as bd, type FoundryInstanceProvisioner as be, type FoundryJavaScriptReplDefinition as bf, type FoundryLayer as bg, type FoundryLayerOptions as bh, type FoundryLayerReference as bi, type FoundryLayerSelection as bj, type FoundryLispReplDefinition as bk, type FoundryListResolver as bl, type FoundryMcp as bm, type FoundryMcpOptions as bn, type FoundryMemoryProfile as bo, type FoundryMemoryProfileOptions as bp, type FoundryMemoryReference as bq, type FoundryMemorySelection as br, type FoundryMeshConfig as bs, type FoundryMessageInput 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 FoundryActivationRecord as c, defineRepl as c$, type FoundryWorkingEnvironmentPersistenceAdapter as c0, type FoundryWorkingEnvironmentPersistenceContext as c1, GrantResolutionError as c2, type InboundContract as c3, type InferAgentInput as c4, type InferAgentOutput as c5, type InferInboundEvent as c6, type InferOutboundInput as c7, type InferOutboundOutput as c8, type IngressAdapter as c9, type TransmissionPredicateOptions as cA, type TransmissionSerializationContext as cB, type UpdateAgentInstanceOptions as cC, type UpdateConversationOptions as cD, composeAgent as cE, composePlaybook as cF, configureLayer as cG, configureMemory as cH, createAgentInstance as cI, createConversation as cJ, createFoundryCoreTools as cK, createInstalledApplicationTransmissionTools as cL, defineAgent as cM, defineAgentApplication as cN, defineAgentFromModule as cO, defineAgentInstance as cP, defineApp as cQ, defineCall as cR, defineConnection as cS, defineFacts as cT, defineForms as cU, defineGoals as cV, defineLayer as cW, defineMcp as cX, defineMemory as cY, definePlaybookAction as cZ, definePlaybookSubscription as c_, type IngressContext as ca, type InstallationSelection as cb, type McpAdapterFactory as cc, MemoryFoundryDataAdapter as cd, type OutboundContract as ce, type PlaybookActionOptions as cf, type PlaybookDirective as cg, type PlaybookDirectiveInput as ch, type PlaybookMatch as ci, type PlaybookMatchInput as cj, type PlaybookOutboundDirective as ck, type PlaybookOutboundInput as cl, type PlaybookSubscriptionTarget as cm, type PlaybookSubscriptionTargetInput as cn, ReplyPolicy as co, Route as cp, RouteId as cq, RouteNotFound as cr, RunGrant as cs, RunId as ct, type SharedToolOptions as cu, TopologyConflict as cv, type TransmissionEventDirection as cw, type TransmissionEventOptions as cx, TransmissionId as cy, type TransmissionOptions as cz, type ProvisionAgentOptions as d, defineRoutes as d0, defineSchedule as d1, defineSharedTool as d2, defineSubagent as d3, defineSubscriber as d4, defineTransmission as d5, defineTransmissionEvent as d6, defineTransmissionPredicate as d7, defineWorkingEnvironment as d8, foundryDataEnvironmentPersistence as d9, foundryGuidanceSubject as da, install as db, installRegistry as dc, installationKey as dd, installedApplicationTransmissionToolName as de, internalAgentName as df, isFoundryAgent as dg, isFoundryAgentDefinition as dh, isFoundryCapability as di, isFoundryLayer as dj, isFoundrySchedule as dk, isFoundrySubscriber as dl, isFoundryTransmission as dm, isInboxCapableStore as dn, mountAgentDefinitionMemory as dp, mountFoundrySurfaces as dq, reconstructAgentInstance as dr, reconstructPlaybook as ds, reconstructPlaybookSubscription as dt, routeFromInternalAgentName as du, toGloveMessage as dv, toGloveRequestInput as dw, transmissionPredicate as dx, type FoundryPendingInbound as e, type FoundryWorkingEnvironmentSnapshotOwner as f, type FoundryTask as g, type AgentPlaybook as h, type AnyFoundryTransmission as i, AccountReference as j, type InferAccountMetadata as k, AgentBinding as l, type FoundryAgentApplication as m, InboundRoute as n, type CapabilityDefinition as o, type InferInboundConfig as p, type InferOutboundConfig as q, type AccountContract as r, AccountId as s, AccountNotFound as t, AccountSessionUnavailable as u, AccountSummary as v, type AgentApplicationContribution as w, type AgentApplicationInstallContext as x, type AgentApplicationOptions as y, type AgentAssemblyContext as z };
|