glove-foundry 0.11.0 → 0.13.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-2JCISE2U.js → chunk-5ZYOBBOK.js} +25 -7
- package/dist/{chunk-N2GVJ257.js → chunk-HNBAEHHS.js} +33 -0
- package/dist/{chunk-4WBQ7XVF.js → chunk-RAZARYUH.js} +103 -2
- package/dist/{chunk-YCW66WKQ.js → chunk-SE44NTGZ.js} +634 -58
- package/dist/{chunk-LCDEHWRB.js → chunk-SEP6QFRK.js} +1 -1
- package/dist/{chunk-NWFOY3L7.js → chunk-WK2O4GIB.js} +1 -0
- package/dist/cli.js +4 -4
- package/dist/{client-B4Emyeek.d.ts → client-Dvli7Y1v.d.ts} +108 -5
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- 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 +14 -6
- package/dist/voice.d.ts +1 -1
- package/dist/voice.js +2 -1
- package/package.json +6 -6
package/dist/execution-agent.js
CHANGED
package/dist/execution-daemon.js
CHANGED
package/dist/execution-loader.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountFoundryGuidance,
|
|
3
3
|
mountFoundryWorkbench
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SEP6QFRK.js";
|
|
5
5
|
import {
|
|
6
6
|
EMPTY_FOUNDRY_APPLICATION,
|
|
7
7
|
FOUNDRY_APPROVAL_DIRECTORY_ENV,
|
|
8
8
|
FOUNDRY_APPROVAL_POLICY_ENV,
|
|
9
|
+
FOUNDRY_BUILTINS_MOUNTED_EVENT,
|
|
9
10
|
FOUNDRY_COMPOSED_PLAYBOOK_BRAND,
|
|
10
11
|
FOUNDRY_CORE_COMMAND_EVENT,
|
|
11
12
|
FOUNDRY_MODEL_REQUESTS_ENV,
|
|
@@ -15,12 +16,14 @@ import {
|
|
|
15
16
|
agentScheduleActivationId,
|
|
16
17
|
agentScheduleRevision,
|
|
17
18
|
bindAgentLocalDefinitions,
|
|
19
|
+
builtinAllowed,
|
|
18
20
|
composedPlaybookRevision,
|
|
19
21
|
createFoundryCoreTools,
|
|
20
22
|
createInstalledApplicationTransmissionTools,
|
|
21
23
|
discoverAgents,
|
|
22
24
|
freezeGloveMessage,
|
|
23
25
|
isFoundryApplication,
|
|
26
|
+
isFoundryBuiltin,
|
|
24
27
|
isFoundrySchedule,
|
|
25
28
|
materializeComposedPlaybook,
|
|
26
29
|
normalizeScheduleTiming,
|
|
@@ -30,7 +33,7 @@ import {
|
|
|
30
33
|
toGloveMessage,
|
|
31
34
|
toGloveRequestInput,
|
|
32
35
|
withFoundryPermissions
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RAZARYUH.js";
|
|
34
37
|
import {
|
|
35
38
|
FOUNDRY_CONVERSATION_LEASE_EVENT,
|
|
36
39
|
FOUNDRY_CONVERSATION_LISTEN_EVENT,
|
|
@@ -46,6 +49,7 @@ import {
|
|
|
46
49
|
isDelegationUpdate,
|
|
47
50
|
isOpenDelegation,
|
|
48
51
|
isOpenThread,
|
|
52
|
+
isTakenOverBy,
|
|
49
53
|
normalizeDelegates,
|
|
50
54
|
openRunMailbox,
|
|
51
55
|
renderDeliveries,
|
|
@@ -54,7 +58,7 @@ import {
|
|
|
54
58
|
renderOwnThread,
|
|
55
59
|
threadFromContext,
|
|
56
60
|
waitForConversationLease
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
58
62
|
import {
|
|
59
63
|
EMPTY_CAPABILITY_REGISTRY,
|
|
60
64
|
FOUNDRY_APPLICATION_ENV,
|
|
@@ -76,7 +80,7 @@ import {
|
|
|
76
80
|
refreshDurableAuthority,
|
|
77
81
|
resolveResolvable,
|
|
78
82
|
waitForFoundryCoreCommandResult
|
|
79
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WK2O4GIB.js";
|
|
80
84
|
|
|
81
85
|
// src/execution-loader.ts
|
|
82
86
|
import { dirname } from "node:path";
|
|
@@ -551,10 +555,18 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
551
555
|
data: { count: desiredSchedules.length, names: desiredSchedules.map((item) => item.name) }
|
|
552
556
|
});
|
|
553
557
|
const effectiveInstallations = [...installations];
|
|
558
|
+
const builtinsPolicy = await resolveOptional("builtins", definition.builtins, void 0);
|
|
559
|
+
const builtinOn = builtinAllowed(builtinsPolicy);
|
|
560
|
+
const mountedBuiltins = [];
|
|
561
|
+
const foldBuiltin = (tool) => {
|
|
562
|
+
if (!builtinOn(tool.name)) return;
|
|
563
|
+
if (isFoundryBuiltin(tool.name)) mountedBuiltins.push(tool.name);
|
|
564
|
+
base.fold(tool);
|
|
565
|
+
};
|
|
554
566
|
for (const tool of createFoundryCoreTools(assemblyContext, desiredSchedules, {
|
|
555
567
|
playbooks: desiredPlaybooks,
|
|
556
568
|
applications: registry.capabilities.applications
|
|
557
|
-
}))
|
|
569
|
+
})) foldBuiltin(tool);
|
|
558
570
|
assembly.mark("foundry-core", "Foundry core tools");
|
|
559
571
|
const applicationTransmissionTools = createInstalledApplicationTransmissionTools(
|
|
560
572
|
assemblyContext,
|
|
@@ -688,7 +700,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
688
700
|
...delegates,
|
|
689
701
|
...durableNames.filter((name) => !delegates.some((item) => (typeof item === "string" ? item : item.agent) === name)).map((name) => ({ agent: name, description: definition.durableSubagents[name].description ?? `Persistent ${name} worker.` }))
|
|
690
702
|
]);
|
|
691
|
-
if (durableNames.length || envelope.agent.durableSubagent)
|
|
703
|
+
if (durableNames.length || envelope.agent.durableSubagent) foldBuiltin(createAgentMessagingTool(assemblyContext, durableNames, Boolean(envelope.agent.durableSubagent)));
|
|
692
704
|
const onReplied = (delegationId) => {
|
|
693
705
|
heard.set(delegationId, "replied");
|
|
694
706
|
};
|
|
@@ -705,7 +717,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
705
717
|
createdAt: now,
|
|
706
718
|
updatedAt: now
|
|
707
719
|
});
|
|
708
|
-
}, onReplied))
|
|
720
|
+
}, onReplied)) foldBuiltin(tool);
|
|
709
721
|
if (normalizedDelegates.length > 0 || assemblyContext.delegations.length > 0) {
|
|
710
722
|
base.addContextProvider(
|
|
711
723
|
() => renderOpenDelegations(
|
|
@@ -730,7 +742,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
730
742
|
answerWaitMs,
|
|
731
743
|
pending: pendingQuestion,
|
|
732
744
|
waitForReply
|
|
733
|
-
}))
|
|
745
|
+
})) foldBuiltin(tool);
|
|
734
746
|
}
|
|
735
747
|
const coreCommandDirectory = process.env[FOUNDRY_CORE_COMMAND_DIRECTORY_ENV];
|
|
736
748
|
const emitMeshCommand = (command) => {
|
|
@@ -759,7 +771,7 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
759
771
|
const ownThread = assemblyContext.thread;
|
|
760
772
|
const hostedMesh = hostedMeshOptions(definition.mesh);
|
|
761
773
|
if (ownDelegation || normalizedDelegates.length || durableNames.length) assembly.mark("delegation", "Delegation");
|
|
762
|
-
const meshHosted = Boolean(hostedMesh && (hostedMesh.mount?.(assemblyContext) ?? true));
|
|
774
|
+
const meshHosted = Boolean(hostedMesh && (hostedMesh.mount?.(assemblyContext) ?? true)) && !(ownThread && isTakenOverBy(ownThread, request.agentId));
|
|
763
775
|
if (hostedMesh && meshHosted) {
|
|
764
776
|
for (const tool of createMeshTools({
|
|
765
777
|
definitionId: id,
|
|
@@ -770,13 +782,19 @@ async function executeDefinition(definition, id, runtimeValue) {
|
|
|
770
782
|
call: callMesh,
|
|
771
783
|
waitFrom,
|
|
772
784
|
pending: pendingReply
|
|
773
|
-
}))
|
|
785
|
+
})) foldBuiltin(tool);
|
|
774
786
|
controls.emit({
|
|
775
787
|
type: "foundry.mesh.mounted",
|
|
776
788
|
data: { open: assemblyContext.threads.length, thread: ownThread?.id ?? null }
|
|
777
789
|
});
|
|
778
790
|
assembly.mark("mesh", "Hosted mesh");
|
|
779
791
|
}
|
|
792
|
+
if (builtinsPolicy !== void 0) {
|
|
793
|
+
controls.emit({
|
|
794
|
+
type: FOUNDRY_BUILTINS_MOUNTED_EVENT,
|
|
795
|
+
data: { tools: mountedBuiltins, transmissionTools: applicationTransmissionTools.map((tool) => tool.name) }
|
|
796
|
+
});
|
|
797
|
+
}
|
|
780
798
|
if (hostedMesh || assemblyContext.threads.length > 0 || ownThread) {
|
|
781
799
|
base.addContextProvider(() => [
|
|
782
800
|
ownThread ? renderOwnThread(ownThread) : null,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as FoundryDataAdapter, E as EnvironmentValue, e as AgentInstance, C as Conversation, P as PlaybookSubscription, f as FoundryActivationRecord, g as ProvisionAgentOptions, I as InboundDeliveryClaim, h as FoundryEventRecord, a as FoundryEventReceipt, i as FoundryEventReceiptFilter, j as FoundryScheduleOccurrence, k as FoundryScheduleOccurrenceFilter, l as FoundryPendingInbound, m as FoundryApproval, W as WorkspaceEntry, n as FoundryWorkingEnvironmentSnapshotOwner, S as SharedInboxItem, o as FoundryTask, p as AgentPlaybook, q as AnyFoundryTransmission, r as AccountReference, s as InferAccountMetadata, t as AgentBinding, u as FoundryAgentApplication, v as InboundRoute, O as OutboundRoute, w as CapabilityDefinition, x as InferInboundConfig, y as InferOutboundConfig } from './event-delivery-
|
|
2
|
-
export { z as AccountContract, B as AccountId, D as AccountNotFound, G as AccountSessionUnavailable, H as AccountSummary, J as AgentApplicationContribution, K as AgentApplicationInstallContext, L as AgentApplicationOptions, M as AgentAssemblyContext, N as AgentAssemblyOptions, Q as AgentDefinitionId, R as AgentDefinitionSurfaceContext, T as AgentFactoryContext, A as AgentHandlerContext, U as AgentId, V as AgentInstallContext, X as AgentInstallation, Y as AgentInstallationKind, Z as AgentMessageReceipt, _ as AgentPlaybookInput, $ as AgentProvisioningPolicy, a0 as AgentRuntimeControls, a1 as AnyFoundryAgent, a2 as AppRestrictions, a3 as ApplicationConnectionContext, a4 as ApplicationConnectionState, a5 as ApplicationConnectionStatus, a6 as BindingId, a7 as BindingNotFound, a8 as CapabilityId, a9 as ComposedAgentPlaybook, aa as ComposedAgentPlaybookInput, ab as ConnectionReceiveInput, ac as CreateAgentInstanceOptions, ad as CreateConversationOptions, ae as CustomProvisionedAgent, af as CustomProvisioningContext, ag as DEFAULT_APPROVAL_EXPIRES_AFTER_MS, ah as DEFAULT_APPROVAL_WAIT_MS, ai as
|
|
1
|
+
import { d as FoundryDataAdapter, E as EnvironmentValue, e as AgentInstance, C as Conversation, P as PlaybookSubscription, f as FoundryActivationRecord, g as ProvisionAgentOptions, I as InboundDeliveryClaim, h as FoundryEventRecord, a as FoundryEventReceipt, i as FoundryEventReceiptFilter, j as FoundryScheduleOccurrence, k as FoundryScheduleOccurrenceFilter, l as FoundryPendingInbound, m as FoundryApproval, W as WorkspaceEntry, n as FoundryWorkingEnvironmentSnapshotOwner, S as SharedInboxItem, o as FoundryTask, p as AgentPlaybook, q as AnyFoundryTransmission, r as AccountReference, s as InferAccountMetadata, t as AgentBinding, u as FoundryAgentApplication, v as InboundRoute, O as OutboundRoute, w as CapabilityDefinition, x as InferInboundConfig, y as InferOutboundConfig } from './event-delivery-CWxarW6L.js';
|
|
2
|
+
export { z as AccountContract, B as AccountId, D as AccountNotFound, G as AccountSessionUnavailable, H as AccountSummary, J as AgentApplicationContribution, K as AgentApplicationInstallContext, L as AgentApplicationOptions, M as AgentAssemblyContext, N as AgentAssemblyOptions, Q as AgentDefinitionId, R as AgentDefinitionSurfaceContext, T as AgentFactoryContext, A as AgentHandlerContext, U as AgentId, V as AgentInstallContext, X as AgentInstallation, Y as AgentInstallationKind, Z as AgentMessageReceipt, _ as AgentPlaybookInput, $ as AgentProvisioningPolicy, a0 as AgentRuntimeControls, a1 as AnyFoundryAgent, a2 as AppRestrictions, a3 as ApplicationConnectionContext, a4 as ApplicationConnectionState, a5 as ApplicationConnectionStatus, a6 as BindingId, a7 as BindingNotFound, a8 as CapabilityId, a9 as ComposedAgentPlaybook, aa as ComposedAgentPlaybookInput, ab as ConnectionReceiveInput, ac as CreateAgentInstanceOptions, ad as CreateConversationOptions, ae as CustomProvisionedAgent, af as CustomProvisioningContext, ag as DEFAULT_APPROVAL_EXPIRES_AFTER_MS, ah as DEFAULT_APPROVAL_WAIT_MS, ai as DEFAULT_MESH_REFUSAL, aj as DefineAgentOptions, ak as DefineConnectionOptions, al as DefineFoundryReplOptions, am as DefineFoundryScheduleOptions, an as DefineFoundrySubagentOptions, ao as DefineFoundryWorkingEnvironmentOptions, ap as DefinePlaybookSubscriptionOptions, aq as DefinitionConfigInput, ar as DurableSubagentOptions, as as DurableSubagentOwnership, at as DurableSubagents, au as EMPTY_AGENT_COMPOSITION, av as EMPTY_CAPABILITY_REGISTRY, aw as EMPTY_NATIVE_REGISTRY, ax as EgressAdapter, ay as EgressContext, az as EventId, aA as EventNotFound, aB as EventReceiptStore, aC as EventReference, aD as FOUNDRY_AGENT_APPLICATION_BRAND, aE as FOUNDRY_AGENT_BRAND, aF as FOUNDRY_AGENT_DEFINITION_BRAND, aG as FOUNDRY_AGENT_FILE_ENV, aH as FOUNDRY_AGENT_ROUTE_ENV, aI as FOUNDRY_APPLICATION_ENV, aJ as FOUNDRY_APPROVAL_DIRECTORY_ENV, aK as FOUNDRY_BUILTIN_TOOLS, aL as FOUNDRY_COMPOSED_PLAYBOOK_BRAND, aM as FOUNDRY_CONNECTION_BRAND, aN as FOUNDRY_CORE_COMMAND_EVENT, aO as FOUNDRY_EVENT_PREFIX, aP as FOUNDRY_EXECUTION_MARKER, aQ as FOUNDRY_LAYER_BRAND, aR as FOUNDRY_MCP_BRAND, aS as FOUNDRY_MEMORY_BRAND, aT as FOUNDRY_PLAYBOOK_ACTION_BRAND, aU as FOUNDRY_REPL_BRAND, aV as FOUNDRY_SCHEDULE_BRAND, aW as FOUNDRY_SHARED_TOOL_BRAND, aX as FOUNDRY_SUBSCRIBER_BRAND, aY as FOUNDRY_TRANSMISSION_BRAND, aZ as FOUNDRY_TRANSMISSION_EVENT_BRAND, a_ as FOUNDRY_TRANSMISSION_PREDICATE_BRAND, a$ as FOUNDRY_WORKING_ENVIRONMENT_BRAND, b0 as FoundryAccountSessionAdapter, b1 as FoundryAgent, b2 as FoundryAgentComponent, b3 as FoundryAgentComposition, b4 as FoundryAgentConventionModule, b5 as FoundryAgentDefinition, b6 as FoundryAgentMode, b7 as FoundryApp, b8 as FoundryAppMcp, b9 as FoundryAppMcpTool, ba as FoundryAppToolDecision, bb as FoundryApplicationConnection, bc as FoundryApplicationMesh, bd as FoundryApprovalDecision, be as FoundryApprovalDisplayManager, bf as FoundryApprovalPolicy, bg as FoundryApprovalStatus, bh as FoundryBuiltinGroup, bi as FoundryBuiltinTool, bj as FoundryBuiltinsPolicy, bk as FoundryCall, bl as FoundryCallContext, bm as FoundryCallOptions, bn as FoundryCapabilityKind, bo as FoundryCapabilityManifest, bp as FoundryCapabilityManifestEntry, bq as FoundryCapabilityRegistry, br as FoundryCompositionSource, bs as FoundryContextProvider, bt as FoundryCoreCommand, bu as FoundryDelegate, bv as FoundryDelegateOptions, bw as FoundryDelegation, bx as FoundryDelegationReply, by as FoundryDelegationStatus, b as FoundryDelegationUpdate, bz as FoundryDomainError, bA as FoundryEventPolicy, F as FoundryEventPreparation, bB as FoundryEventPreparationContext, bC as FoundryEventReceiptStatus, bD as FoundryEventTarget, bE as FoundryExecutionContext, bF as FoundryFactsOptions, bG as FoundryFormsOptions, bH as FoundryGoalsOptions, bI as FoundryGuidanceHandles, bJ as FoundryGuidanceScope, bK as FoundryHandledEvent, bL as FoundryHookDefinition, bM as FoundryInstallable, bN as FoundryInstalledApp, bO as FoundryInstanceProvisioner, bP as FoundryJavaScriptReplDefinition, bQ as FoundryLayer, bR as FoundryLayerOptions, bS as FoundryLayerReference, bT as FoundryLayerSelection, bU as FoundryLispReplDefinition, bV as FoundryListResolver, bW as FoundryMcp, bX as FoundryMcpOptions, bY as FoundryMemoryProfile, bZ as FoundryMemoryProfileOptions, b_ as FoundryMemoryReference, b$ as FoundryMemorySelection, c0 as FoundryMeshConfig, c1 as FoundryMeshDecision, c2 as FoundryMeshHeldMessage, c3 as FoundryMeshHookContext, c as FoundryMeshMessage, c4 as FoundryMeshOptions, c5 as FoundryMeshOutgoing, c6 as FoundryMeshParty, c7 as FoundryMeshPeer, c8 as FoundryMeshRecordedMessage, c9 as FoundryMeshSend, ca as FoundryMeshThread, cb as FoundryMeshThreadStart, cc as FoundryMeshThreadStatus, cd as FoundryMessageInput, ce as FoundryMessageOptions, cf as FoundryMountedRepl, cg as FoundryNativeManifest, ch as FoundryNativeManifestEntry, ci as FoundryNativeRegistry, cj as FoundryPlaybookAction, ck as FoundryProgrammaticToolContext, cl as FoundryProgrammaticToolSelection, cm as FoundryProgrammaticTools, cn as FoundryPythonReplDefinition, co as FoundryReplApp, cp as FoundryReplDefinition, cq as FoundryRequest, cr as FoundryResolvedMcp, cs as FoundryResolver, ct as FoundryResult, cu as FoundryRouteMap, cv as FoundryScheduleDefinition, cw as FoundryScheduleMisfirePolicy, cx as FoundryScheduleOccurrenceStatus, cy as FoundryScheduleTiming, cz as FoundryScheduleTimingInput, cA as FoundrySharedTool, cB as FoundrySubagentToolContext, cC as FoundrySubscriber, cD as FoundrySubscriberOptions, cE as FoundrySubscriberSelection, cF as FoundrySurfaceContext, cG as FoundrySuspension, cH as FoundryToolBody, cI as FoundryTransmission, cJ as FoundryTransmissionDelivery, cK as FoundryTransmissionEvent, cL as FoundryTransmissionPredicate, cM as FoundryVfs, cN as FoundryVfsHandle, cO as FoundryWorkingEnvironmentCreateContext, cP as FoundryWorkingEnvironmentDefinition, cQ as FoundryWorkingEnvironmentPersistenceAdapter, cR as FoundryWorkingEnvironmentPersistenceContext, cS as GrantResolutionError, cT as InboundContract, cU as InferAgentInput, cV as InferAgentOutput, cW as InferInboundEvent, cX as InferOutboundInput, cY as InferOutboundOutput, cZ as IngressAdapter, c_ as IngressContext, c$ as InstallationSelection, d0 as McpAdapterFactory, d1 as MemoryFoundryDataAdapter, d2 as OutboundContract, d3 as PlaybookActionOptions, d4 as PlaybookDirective, d5 as PlaybookDirectiveInput, d6 as PlaybookMatch, d7 as PlaybookMatchInput, d8 as PlaybookOutboundDirective, d9 as PlaybookOutboundInput, da as PlaybookSubscriptionTarget, db as PlaybookSubscriptionTargetInput, dc as ReplyPolicy, dd as Route, de as RouteId, df as RouteNotFound, dg as RunGrant, dh as RunId, di as SharedToolOptions, dj as TopologyConflict, dk as TransmissionEventDirection, dl as TransmissionEventOptions, dm as TransmissionId, dn as TransmissionOptions, dp as TransmissionPredicateOptions, dq as TransmissionSerializationContext, dr as UpdateAgentInstanceOptions, ds as UpdateConversationOptions, dt as activationScheduleRevision, du as builtinAllowed, dv as composeAgent, dw as composePlaybook, dx as configureLayer, dy as configureMemory, dz as createAgentInstance, dA as createConversation, dB as createFoundryApproval, dC as createFoundryCoreTools, dD as createInstalledApplicationTransmissionTools, dE as defineAgent, dF as defineAgentApplication, dG as defineAgentFromModule, dH as defineAgentInstance, dI as defineApp, dJ as defineCall, dK as defineConnection, dL as defineFacts, dM as defineForms, dN as defineGoals, dO as defineLayer, dP as defineMcp, dQ as defineMemory, dR as definePlaybookAction, dS as definePlaybookSubscription, dT as defineRepl, dU as defineRoutes, dV as defineSchedule, dW as defineSharedTool, dX as defineSubagent, dY as defineSubscriber, dZ as defineTransmission, d_ as defineTransmissionEvent, d$ as defineTransmissionPredicate, e0 as defineWorkingEnvironment, e1 as eventReceiptStore, e2 as eventTranscriptMessageId, e3 as foundryDataEnvironmentPersistence, e4 as foundryGuidanceSubject, e5 as hostedMeshOptions, e6 as install, e7 as installRegistry, e8 as installationKey, e9 as installedApplicationTransmissionToolName, ea as internalAgentName, eb as isFoundryAgent, ec as isFoundryAgentDefinition, ed as isFoundryBuiltin, ee as isFoundryCapability, ef as isFoundryLayer, eg as isFoundrySchedule, eh as isFoundrySubscriber, ei as isFoundryTransmission, ej as isInboxCapableStore, ek as isMeshTransport, el as lateChatEffectId, em as listFoundryApprovals, en as meshIdentity, eo as mountAgentDefinitionMemory, ep as mountFoundrySurfaces, eq as reconstructAgentInstance, er as reconstructPlaybook, es as reconstructPlaybookSubscription, et as resolveFoundryApproval, eu as restrictApp, ev as routeFromInternalAgentName, ew as scheduleOccurrenceId, ex as scheduleRevisionMatches, ey as toGloveMessage, ez as toGloveRequestInput, eA as transmissionPredicate, eB as withFoundryPermissions } from './event-delivery-CWxarW6L.js';
|
|
3
3
|
import { Effect, Layer } from 'effect';
|
|
4
4
|
import { EnvSnapshot } from 'glove-working-environment';
|
|
5
|
-
import { T as TopologyStore, F as FoundryRuntime, D as DiscoveredAgent, a as FoundryManifest } from './client-
|
|
6
|
-
export { A as AccountDirectory, b as AccountFilter, c as AccountSessionAdapter, d as AccountSessionRequest, B as BindingFilter, E as EMPTY_FOUNDRY_APPLICATION, e as EventFilter, f as EventStore, g as FOUNDRY_APPLICATION_BRAND, h as FoundryApplication, i as FoundryApplicationManifest, j as FoundryApplicationOptions, k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, n as FoundryConversationTranscript, o as FoundryEvent, p as FoundryEventCategory, q as FoundryHealth, r as FoundryManifestAgent, s as FoundryManifestCapability, t as FoundryManifestTransmission, u as FoundryObservabilityAdapter, v as FoundryRequestAuthorizationAdapter, w as FoundryRequestAuthorizationInput, x as FoundryRun, y as FoundryRunHandle, z as FoundryRuntimeError, C as FoundryRuntimeOptions, G as FoundrySteerHandleResult, H as FoundrySteerResult, I as GrantResolver, M as ManifestCompilationError, J as MemoryObservabilityAdapter, R as ResolveGrantRequest, K as RouteFilter, W as WaitOptions, L as compileApplicationManifest, N as createFoundryClient, O as createManifest, P as defineApplication, Q as discoverAgents, S as findAgentFiles, U as grantResolverLive, V as isFoundryApplication, X as memoryAccountDirectory, Y as memoryEventStore, Z as memoryTopologyStore, _ as routeFromAgentFile } from './client-
|
|
5
|
+
import { T as TopologyStore, F as FoundryRuntime, D as DiscoveredAgent, a as FoundryManifest } from './client-Dvli7Y1v.js';
|
|
6
|
+
export { A as AccountDirectory, b as AccountFilter, c as AccountSessionAdapter, d as AccountSessionRequest, B as BindingFilter, E as EMPTY_FOUNDRY_APPLICATION, e as EventFilter, f as EventStore, g as FOUNDRY_APPLICATION_BRAND, h as FoundryApplication, i as FoundryApplicationManifest, j as FoundryApplicationOptions, k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, n as FoundryConversationTranscript, o as FoundryEvent, p as FoundryEventCategory, q as FoundryHealth, r as FoundryManifestAgent, s as FoundryManifestCapability, t as FoundryManifestTransmission, u as FoundryObservabilityAdapter, v as FoundryRequestAuthorizationAdapter, w as FoundryRequestAuthorizationInput, x as FoundryRun, y as FoundryRunHandle, z as FoundryRuntimeError, C as FoundryRuntimeOptions, G as FoundrySteerHandleResult, H as FoundrySteerResult, I as GrantResolver, M as ManifestCompilationError, J as MemoryObservabilityAdapter, R as ResolveGrantRequest, K as RouteFilter, W as WaitOptions, L as compileApplicationManifest, N as createFoundryClient, O as createManifest, P as defineApplication, Q as discoverAgents, S as findAgentFiles, U as grantResolverLive, V as isFoundryApplication, X as memoryAccountDirectory, Y as memoryEventStore, Z as memoryTopologyStore, _ as routeFromAgentFile } from './client-Dvli7Y1v.js';
|
|
7
7
|
import { AddressInfo } from 'node:net';
|
|
8
8
|
import { FoundryBrandingConfig } from './config.js';
|
|
9
9
|
export { FoundryConfig, FoundryExecutionConfig, defineConfig } from './config.js';
|
package/dist/index.js
CHANGED
|
@@ -43,12 +43,12 @@ import {
|
|
|
43
43
|
memoryTopologyStore,
|
|
44
44
|
serializeInboundTransmissionXml,
|
|
45
45
|
writeGeneratedTypes
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SE44NTGZ.js";
|
|
47
47
|
import {
|
|
48
48
|
FoundryClient,
|
|
49
49
|
FoundryRunHandle,
|
|
50
50
|
createFoundryClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HNBAEHHS.js";
|
|
52
52
|
import {
|
|
53
53
|
defineConfig
|
|
54
54
|
} from "./chunk-ZFNMFE3T.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
defineWorkingEnvironment,
|
|
64
64
|
foundryDataEnvironmentPersistence,
|
|
65
65
|
foundryGuidanceSubject
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SEP6QFRK.js";
|
|
67
67
|
import {
|
|
68
68
|
DEFAULT_APPROVAL_EXPIRES_AFTER_MS,
|
|
69
69
|
DEFAULT_APPROVAL_WAIT_MS,
|
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
EMPTY_FOUNDRY_APPLICATION,
|
|
72
72
|
FOUNDRY_APPLICATION_BRAND,
|
|
73
73
|
FOUNDRY_APPROVAL_DIRECTORY_ENV,
|
|
74
|
+
FOUNDRY_BUILTIN_TOOLS,
|
|
74
75
|
FOUNDRY_COMPOSED_PLAYBOOK_BRAND,
|
|
75
76
|
FOUNDRY_CONNECTION_BRAND,
|
|
76
77
|
FOUNDRY_CORE_COMMAND_EVENT,
|
|
@@ -83,6 +84,7 @@ import {
|
|
|
83
84
|
MemoryFoundryDataAdapter,
|
|
84
85
|
activationScheduleRevision,
|
|
85
86
|
assertScheduleOccurrence,
|
|
87
|
+
builtinAllowed,
|
|
86
88
|
compareOccurrences,
|
|
87
89
|
composeAgent,
|
|
88
90
|
composePlaybook,
|
|
@@ -105,6 +107,7 @@ import {
|
|
|
105
107
|
findAgentFiles,
|
|
106
108
|
installedApplicationTransmissionToolName,
|
|
107
109
|
isFoundryApplication,
|
|
110
|
+
isFoundryBuiltin,
|
|
108
111
|
isFoundrySchedule,
|
|
109
112
|
isFoundryTransmission,
|
|
110
113
|
listFoundryApprovals,
|
|
@@ -121,15 +124,16 @@ import {
|
|
|
121
124
|
toGloveRequestInput,
|
|
122
125
|
transmissionPredicate,
|
|
123
126
|
withFoundryPermissions
|
|
124
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-RAZARYUH.js";
|
|
125
128
|
import {
|
|
129
|
+
DEFAULT_MESH_REFUSAL,
|
|
126
130
|
assertEventReceipt,
|
|
127
131
|
eventReceiptStore,
|
|
128
132
|
eventTranscriptMessageId,
|
|
129
133
|
lateChatEffectId,
|
|
130
134
|
matchesReceiptFilter,
|
|
131
135
|
meshIdentity
|
|
132
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
133
137
|
import {
|
|
134
138
|
EMPTY_CAPABILITY_REGISTRY,
|
|
135
139
|
EMPTY_NATIVE_REGISTRY,
|
|
@@ -176,7 +180,7 @@ import {
|
|
|
176
180
|
mountFoundrySurfaces,
|
|
177
181
|
restrictApp,
|
|
178
182
|
routeFromInternalAgentName
|
|
179
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-WK2O4GIB.js";
|
|
180
184
|
|
|
181
185
|
// src/file-data.ts
|
|
182
186
|
import { randomUUID } from "node:crypto";
|
|
@@ -925,6 +929,7 @@ export {
|
|
|
925
929
|
CapabilityId,
|
|
926
930
|
DEFAULT_APPROVAL_EXPIRES_AFTER_MS,
|
|
927
931
|
DEFAULT_APPROVAL_WAIT_MS,
|
|
932
|
+
DEFAULT_MESH_REFUSAL,
|
|
928
933
|
EMPTY_AGENT_COMPOSITION,
|
|
929
934
|
EMPTY_CAPABILITY_REGISTRY,
|
|
930
935
|
EMPTY_FOUNDRY_APPLICATION,
|
|
@@ -941,6 +946,7 @@ export {
|
|
|
941
946
|
FOUNDRY_APPLICATION_BRAND,
|
|
942
947
|
FOUNDRY_APPLICATION_ENV,
|
|
943
948
|
FOUNDRY_APPROVAL_DIRECTORY_ENV,
|
|
949
|
+
FOUNDRY_BUILTIN_TOOLS,
|
|
944
950
|
FOUNDRY_COMPOSED_PLAYBOOK_BRAND,
|
|
945
951
|
FOUNDRY_CONNECTION_BRAND,
|
|
946
952
|
FOUNDRY_CORE_COMMAND_EVENT,
|
|
@@ -985,6 +991,7 @@ export {
|
|
|
985
991
|
TopologyStore,
|
|
986
992
|
TransmissionId,
|
|
987
993
|
activationScheduleRevision,
|
|
994
|
+
builtinAllowed,
|
|
988
995
|
compileApplicationManifest,
|
|
989
996
|
composeAgent,
|
|
990
997
|
composePlaybook,
|
|
@@ -1045,6 +1052,7 @@ export {
|
|
|
1045
1052
|
isFoundryAgent,
|
|
1046
1053
|
isFoundryAgentDefinition,
|
|
1047
1054
|
isFoundryApplication,
|
|
1055
|
+
isFoundryBuiltin,
|
|
1048
1056
|
isFoundryCapability,
|
|
1049
1057
|
isFoundryLayer,
|
|
1050
1058
|
isFoundrySchedule,
|
package/dist/voice.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentEvent, IGloveRunnable } from 'glove-core';
|
|
2
2
|
import { RealtimeAgent, RealtimeAgentConfig } from 'glove-voice-s2s';
|
|
3
|
-
import { F as FoundryEventPreparation, a as FoundryEventReceipt, A as AgentHandlerContext, b as FoundryDelegationUpdate, c as FoundryMeshMessage } from './event-delivery-
|
|
3
|
+
import { F as FoundryEventPreparation, a as FoundryEventReceipt, A as AgentHandlerContext, b as FoundryDelegationUpdate, c as FoundryMeshMessage } from './event-delivery-CWxarW6L.js';
|
|
4
4
|
import 'effect';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'glove-mesh';
|
package/dist/voice.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
lateChatEffectId,
|
|
5
5
|
renderDeliveries,
|
|
6
6
|
renderMeshMessages
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
8
8
|
|
|
9
9
|
// src/voice.ts
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
@@ -346,6 +346,7 @@ function voiceCall(options) {
|
|
|
346
346
|
...gatedTools(agent),
|
|
347
347
|
...options.realtime?.excludeTools ?? []
|
|
348
348
|
])];
|
|
349
|
+
context.emit({ type: "foundry.voice.tools.excluded", data: { tools: excludeTools } });
|
|
349
350
|
const realtime = new RealtimeAgent({ ...options.realtime, agent, excludeTools });
|
|
350
351
|
const keepTranscript = options.transcript !== false;
|
|
351
352
|
let saving = Promise.resolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glove-foundry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "An Effect-native, file-routed framework for typed, observable Glove agent applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"station-broadcast": "^3.0.0",
|
|
80
80
|
"glove-core": "4.8.0",
|
|
81
81
|
"glove-facts": "0.1.9",
|
|
82
|
-
"glove-mcp": "1.2.7",
|
|
83
82
|
"glove-lisp": "0.5.7",
|
|
84
|
-
"glove-
|
|
85
|
-
"glove-voice-s2s": "0.5.0",
|
|
83
|
+
"glove-mcp": "1.2.7",
|
|
86
84
|
"glove-memory": "2.3.4",
|
|
87
85
|
"glove-mesh": "0.2.4",
|
|
88
|
-
"glove-
|
|
89
|
-
"glove-working-environment": "0.7.0"
|
|
86
|
+
"glove-js": "0.5.7",
|
|
87
|
+
"glove-working-environment": "0.7.0",
|
|
88
|
+
"glove-voice-s2s": "0.5.0",
|
|
89
|
+
"glove-python": "0.4.7"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@modelcontextprotocol/sdk": "^1.29.0",
|