glove-foundry 0.7.0 → 0.9.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 +80 -4
- package/dist/{chunk-64UBLGYM.js → chunk-CYOIHSUX.js} +131 -7
- package/dist/{chunk-EJZJAVNG.js → chunk-EUGKVW3J.js} +335 -7
- package/dist/{chunk-AC6SRI5V.js → chunk-J6NHL4SM.js} +357 -56
- package/dist/{chunk-EEHGAWXM.js → chunk-L5JQVTHD.js} +4 -0
- package/dist/{chunk-2GXPSIRL.js → chunk-LI7VIGVH.js} +1919 -104
- package/dist/{chunk-IPASF7PK.js → chunk-X3HZYVZS.js} +36 -1
- package/dist/cli.js +4 -4
- package/dist/{client-BgpgsnoO.d.ts → client-CCY4_vqN.d.ts} +95 -55
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/{event-delivery-BaYe6d9w.d.ts → event-delivery-CNCsVqi8.d.ts} +379 -11
- package/dist/execution-agent.js +1 -1
- package/dist/execution-daemon.js +10 -5
- package/dist/execution-loader.js +256 -18
- package/dist/index.d.ts +17 -6
- package/dist/index.js +114 -15
- package/dist/voice.d.ts +11 -7
- package/dist/voice.js +51 -10
- package/docs/README.md +1 -1
- package/docs/building-with-foundry.md +128 -4
- package/docs/durable-subagents.md +101 -23
- package/docs/execution.md +4 -0
- package/docs/inspector.md +321 -29
- package/package.json +11 -10
- package/templates/travel-concierge/README.md +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { Effect } from 'effect';
|
|
1
|
+
import { b as FoundryDataAdapter, E as EnvironmentValue, c as AgentInstance, C as Conversation, P as PlaybookSubscription, d as FoundryActivationRecord, e as ProvisionAgentOptions, I as InboundDeliveryClaim, f as FoundryEventRecord, g as FoundryPendingInbound, h as FoundryApproval, W as WorkspaceEntry, i as FoundryWorkingEnvironmentSnapshotOwner, S as SharedInboxItem, j as FoundryTask, k as AgentPlaybook, l as AnyFoundryTransmission, m as AccountReference, n as InferAccountMetadata, o as AgentBinding, p as FoundryAgentApplication, q as InboundRoute, O as OutboundRoute, r as CapabilityDefinition, s as InferInboundConfig, t as InferOutboundConfig } from './event-delivery-CNCsVqi8.js';
|
|
2
|
+
export { u as AccountContract, v as AccountId, w as AccountNotFound, x as AccountSessionUnavailable, y as AccountSummary, z as AgentApplicationContribution, B as AgentApplicationInstallContext, D as AgentApplicationOptions, G as AgentAssemblyContext, H as AgentAssemblyOptions, J as AgentDefinitionId, K as AgentDefinitionSurfaceContext, L as AgentFactoryContext, A as AgentHandlerContext, M as AgentId, N as AgentInstallContext, Q as AgentInstallation, R as AgentInstallationKind, T as AgentMessageReceipt, U as AgentPlaybookInput, V as AgentProvisioningPolicy, X as AgentRuntimeControls, Y as AnyFoundryAgent, Z as AppRestrictions, _ as ApplicationConnectionContext, $ as ApplicationConnectionState, a0 as ApplicationConnectionStatus, a1 as BindingId, a2 as BindingNotFound, a3 as CapabilityId, a4 as ComposedAgentPlaybook, a5 as ComposedAgentPlaybookInput, a6 as ConnectionReceiveInput, a7 as CreateAgentInstanceOptions, a8 as CreateConversationOptions, a9 as CustomProvisionedAgent, aa as CustomProvisioningContext, ab as DEFAULT_APPROVAL_EXPIRES_AFTER_MS, ac as DEFAULT_APPROVAL_WAIT_MS, ad as DefineAgentOptions, ae as DefineConnectionOptions, af as DefineFoundryReplOptions, ag as DefineFoundryScheduleOptions, ah as DefineFoundrySubagentOptions, ai as DefineFoundryWorkingEnvironmentOptions, aj as DefinePlaybookSubscriptionOptions, ak as DefinitionConfigInput, al as DurableSubagentOptions, am as DurableSubagentOwnership, an as DurableSubagents, ao as EMPTY_AGENT_COMPOSITION, ap as EMPTY_CAPABILITY_REGISTRY, aq as EMPTY_NATIVE_REGISTRY, ar as EgressAdapter, as as EgressContext, at as EventId, au as EventNotFound, av as EventReference, aw as FOUNDRY_AGENT_APPLICATION_BRAND, ax as FOUNDRY_AGENT_BRAND, ay as FOUNDRY_AGENT_DEFINITION_BRAND, az as FOUNDRY_AGENT_FILE_ENV, aA as FOUNDRY_AGENT_ROUTE_ENV, aB as FOUNDRY_APPLICATION_ENV, aC as FOUNDRY_APPROVAL_DIRECTORY_ENV, aD as FOUNDRY_COMPOSED_PLAYBOOK_BRAND, aE as FOUNDRY_CONNECTION_BRAND, aF as FOUNDRY_CORE_COMMAND_EVENT, aG as FOUNDRY_EVENT_PREFIX, aH as FOUNDRY_EXECUTION_MARKER, aI as FOUNDRY_LAYER_BRAND, aJ as FOUNDRY_MCP_BRAND, aK as FOUNDRY_MEMORY_BRAND, aL as FOUNDRY_PLAYBOOK_ACTION_BRAND, aM as FOUNDRY_REPL_BRAND, aN as FOUNDRY_SCHEDULE_BRAND, aO as FOUNDRY_SHARED_TOOL_BRAND, aP as FOUNDRY_SUBSCRIBER_BRAND, aQ as FOUNDRY_TRANSMISSION_BRAND, aR as FOUNDRY_TRANSMISSION_EVENT_BRAND, aS as FOUNDRY_TRANSMISSION_PREDICATE_BRAND, aT as FOUNDRY_WORKING_ENVIRONMENT_BRAND, aU as FoundryAccountSessionAdapter, aV as FoundryAgent, aW as FoundryAgentComponent, aX as FoundryAgentComposition, aY as FoundryAgentConventionModule, aZ as FoundryAgentDefinition, a_ as FoundryAgentMode, a$ as FoundryApp, b0 as FoundryAppMcp, b1 as FoundryAppMcpTool, b2 as FoundryAppToolDecision, b3 as FoundryApplicationConnection, b4 as FoundryApprovalDecision, b5 as FoundryApprovalDisplayManager, b6 as FoundryApprovalPolicy, b7 as FoundryApprovalStatus, b8 as FoundryCall, b9 as FoundryCallContext, ba as FoundryCallOptions, bb as FoundryCapabilityKind, bc as FoundryCapabilityManifest, bd as FoundryCapabilityManifestEntry, be as FoundryCapabilityRegistry, bf as FoundryCompositionSource, bg as FoundryContextProvider, bh as FoundryCoreCommand, bi as FoundryDelegate, bj as FoundryDelegateOptions, bk as FoundryDelegation, bl as FoundryDelegationReply, bm as FoundryDelegationStatus, F as FoundryDelegationUpdate, bn as FoundryDomainError, bo as FoundryEventPolicy, bp as FoundryEventTarget, bq as FoundryExecutionContext, br as FoundryFactsOptions, bs as FoundryFormsOptions, bt as FoundryGoalsOptions, bu as FoundryGuidanceHandles, bv as FoundryGuidanceScope, bw as FoundryHookDefinition, bx as FoundryInstallable, by as FoundryInstalledApp, bz as FoundryInstanceProvisioner, bA as FoundryJavaScriptReplDefinition, bB as FoundryLayer, bC as FoundryLayerOptions, bD as FoundryLayerReference, bE as FoundryLayerSelection, bF as FoundryLispReplDefinition, bG as FoundryListResolver, bH as FoundryMcp, bI as FoundryMcpOptions, bJ as FoundryMemoryProfile, bK as FoundryMemoryProfileOptions, bL as FoundryMemoryReference, bM as FoundryMemorySelection, bN as FoundryMeshConfig, a as FoundryMeshMessage, bO as FoundryMeshOptions, bP as FoundryMeshParty, bQ as FoundryMeshThread, bR as FoundryMeshThreadStatus, bS as FoundryMessageInput, bT as FoundryMessageOptions, bU as FoundryMountedRepl, bV as FoundryNativeManifest, bW as FoundryNativeManifestEntry, bX as FoundryNativeRegistry, bY as FoundryPlaybookAction, bZ as FoundryProgrammaticToolContext, b_ as FoundryProgrammaticToolSelection, b$ as FoundryProgrammaticTools, c0 as FoundryPythonReplDefinition, c1 as FoundryReplApp, c2 as FoundryReplDefinition, c3 as FoundryRequest, c4 as FoundryResolvedMcp, c5 as FoundryResolver, c6 as FoundryResult, c7 as FoundryRouteMap, c8 as FoundryScheduleDefinition, c9 as FoundryScheduleTiming, ca as FoundryScheduleTimingInput, cb as FoundrySharedTool, cc as FoundrySubagentToolContext, cd as FoundrySubscriber, ce as FoundrySubscriberOptions, cf as FoundrySubscriberSelection, cg as FoundrySurfaceContext, ch as FoundrySuspension, ci as FoundryToolBody, cj as FoundryTransmission, ck as FoundryTransmissionDelivery, cl as FoundryTransmissionEvent, cm as FoundryTransmissionPredicate, cn as FoundryVfs, co as FoundryVfsHandle, cp as FoundryWorkingEnvironmentCreateContext, cq as FoundryWorkingEnvironmentDefinition, cr as FoundryWorkingEnvironmentPersistenceAdapter, cs as FoundryWorkingEnvironmentPersistenceContext, ct as GrantResolutionError, cu as InboundContract, cv as InferAgentInput, cw as InferAgentOutput, cx as InferInboundEvent, cy as InferOutboundInput, cz as InferOutboundOutput, cA as IngressAdapter, cB as IngressContext, cC as InstallationSelection, cD as McpAdapterFactory, cE as MemoryFoundryDataAdapter, cF as OutboundContract, cG as PlaybookActionOptions, cH as PlaybookDirective, cI as PlaybookDirectiveInput, cJ as PlaybookMatch, cK as PlaybookMatchInput, cL as PlaybookOutboundDirective, cM as PlaybookOutboundInput, cN as PlaybookSubscriptionTarget, cO as PlaybookSubscriptionTargetInput, cP as ReplyPolicy, cQ as Route, cR as RouteId, cS as RouteNotFound, cT as RunGrant, cU as RunId, cV as SharedToolOptions, cW as TopologyConflict, cX as TransmissionEventDirection, cY as TransmissionEventOptions, cZ as TransmissionId, c_ as TransmissionOptions, c$ as TransmissionPredicateOptions, d0 as TransmissionSerializationContext, d1 as UpdateAgentInstanceOptions, d2 as UpdateConversationOptions, d3 as composeAgent, d4 as composePlaybook, d5 as configureLayer, d6 as configureMemory, d7 as createAgentInstance, d8 as createConversation, d9 as createFoundryApproval, da as createFoundryCoreTools, db as createInstalledApplicationTransmissionTools, dc as defineAgent, dd as defineAgentApplication, de as defineAgentFromModule, df as defineAgentInstance, dg as defineApp, dh as defineCall, di as defineConnection, dj as defineFacts, dk as defineForms, dl as defineGoals, dm as defineLayer, dn as defineMcp, dp as defineMemory, dq as definePlaybookAction, dr as definePlaybookSubscription, ds as defineRepl, dt as defineRoutes, du as defineSchedule, dv as defineSharedTool, dw as defineSubagent, dx as defineSubscriber, dy as defineTransmission, dz as defineTransmissionEvent, dA as defineTransmissionPredicate, dB as defineWorkingEnvironment, dC as foundryDataEnvironmentPersistence, dD as foundryGuidanceSubject, dE as hostedMeshOptions, dF as install, dG as installRegistry, dH as installationKey, dI as installedApplicationTransmissionToolName, dJ as internalAgentName, dK as isFoundryAgent, dL as isFoundryAgentDefinition, dM as isFoundryCapability, dN as isFoundryLayer, dO as isFoundrySchedule, dP as isFoundrySubscriber, dQ as isFoundryTransmission, dR as isInboxCapableStore, dS as isMeshTransport, dT as listFoundryApprovals, dU as meshIdentity, dV as mountAgentDefinitionMemory, dW as mountFoundrySurfaces, dX as reconstructAgentInstance, dY as reconstructPlaybook, dZ as reconstructPlaybookSubscription, d_ as resolveFoundryApproval, d$ as restrictApp, e0 as routeFromInternalAgentName, e1 as toGloveMessage, e2 as toGloveRequestInput, e3 as transmissionPredicate, e4 as withFoundryPermissions } from './event-delivery-CNCsVqi8.js';
|
|
3
|
+
import { Effect, Layer } from 'effect';
|
|
4
4
|
import { EnvSnapshot } from 'glove-working-environment';
|
|
5
|
-
import { 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
|
|
5
|
+
import { T as TopologyStore, F as FoundryRuntime, D as DiscoveredAgent, a as FoundryManifest } from './client-CCY4_vqN.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-CCY4_vqN.js';
|
|
7
7
|
import { AddressInfo } from 'node:net';
|
|
8
8
|
import { FoundryBrandingConfig } from './config.js';
|
|
9
9
|
export { FoundryConfig, FoundryExecutionConfig, defineConfig } from './config.js';
|
|
@@ -79,6 +79,9 @@ declare class FileFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
79
79
|
putPendingInbound(record: FoundryPendingInbound): Effect.Effect<void, unknown, never>;
|
|
80
80
|
deletePendingInbound(id: string): Effect.Effect<void, unknown, never>;
|
|
81
81
|
listPendingInbound(): Effect.Effect<FoundryPendingInbound[], unknown, never>;
|
|
82
|
+
putApproval(approval: FoundryApproval): Effect.Effect<void, unknown, never>;
|
|
83
|
+
getApproval(id: string): Effect.Effect<FoundryApproval | null, unknown, never>;
|
|
84
|
+
listApprovals(): Effect.Effect<FoundryApproval[], unknown, never>;
|
|
82
85
|
releaseInboundDelivery(key: string): Effect.Effect<void, unknown, never>;
|
|
83
86
|
getActivation(id: string): Effect.Effect<FoundryActivationRecord | null, unknown, never>;
|
|
84
87
|
putActivation(activation: FoundryActivationRecord): Effect.Effect<void, unknown, never>;
|
|
@@ -102,6 +105,14 @@ declare class FileFoundryDataAdapter implements FoundryDataAdapter {
|
|
|
102
105
|
readonly conversationId?: string;
|
|
103
106
|
}): Effect.Effect<EnvironmentValue[], unknown, never>;
|
|
104
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Keep routes and bindings in one JSON file, so topology an application writes
|
|
110
|
+
* at runtime (a person connecting an app) survives a restart on a single host.
|
|
111
|
+
* Only the control process holds it; writes are serialized and committed by
|
|
112
|
+
* atomic rename. Use a database-backed TopologyStore when several hosts share
|
|
113
|
+
* one topology.
|
|
114
|
+
*/
|
|
115
|
+
declare function fileTopologyStore(file: string): Layer.Layer<TopologyStore>;
|
|
105
116
|
|
|
106
117
|
/** Deterministic default rendering for an event merged into a Glove conversation. */
|
|
107
118
|
declare function serializeInboundTransmissionXml(input: {
|
|
@@ -197,4 +208,4 @@ interface DefineBindingOptions extends Omit<AgentBinding, "id" | "agentId" | "tr
|
|
|
197
208
|
}
|
|
198
209
|
declare function defineBinding(options: DefineBindingOptions): AgentBinding;
|
|
199
210
|
|
|
200
|
-
export { AccountReference, AgentBinding, AgentInstance, AgentPlaybook, AnyFoundryTransmission, CapabilityDefinition, Conversation, type DefineAccountOptions, type DefineBindingOptions, type DefineInboundRouteOptions, type DefineOutboundRouteOptions, DiscoveredAgent, EnvironmentValue, FileFoundryDataAdapter, type FileFoundryDataAdapterOptions, FoundryActivationRecord, FoundryAgentApplication, FoundryBrandingConfig, FoundryDataAdapter, FoundryEventRecord, FoundryManifest, FoundryPendingInbound, FoundryRuntime, FoundryServer, type FoundryServerOptions, FoundryTask, FoundryWorkingEnvironmentSnapshotOwner, InboundDeliveryClaim, InboundRoute, InferAccountMetadata, InferInboundConfig, InferOutboundConfig, OutboundRoute, PlaybookSubscription, ProvisionAgentOptions, SharedInboxItem, WorkspaceEntry, defineAccount, defineBinding, defineInboundRoute, defineOutboundRoute, serializeInboundTransmissionXml, writeGeneratedTypes };
|
|
211
|
+
export { AccountReference, AgentBinding, AgentInstance, AgentPlaybook, AnyFoundryTransmission, CapabilityDefinition, Conversation, type DefineAccountOptions, type DefineBindingOptions, type DefineInboundRouteOptions, type DefineOutboundRouteOptions, DiscoveredAgent, EnvironmentValue, FileFoundryDataAdapter, type FileFoundryDataAdapterOptions, FoundryActivationRecord, FoundryAgentApplication, FoundryApproval, FoundryBrandingConfig, FoundryDataAdapter, FoundryEventRecord, FoundryManifest, FoundryPendingInbound, FoundryRuntime, FoundryServer, type FoundryServerOptions, FoundryTask, FoundryWorkingEnvironmentSnapshotOwner, InboundDeliveryClaim, InboundRoute, InferAccountMetadata, InferInboundConfig, InferOutboundConfig, OutboundRoute, PlaybookSubscription, ProvisionAgentOptions, SharedInboxItem, TopologyStore, WorkspaceEntry, defineAccount, defineBinding, defineInboundRoute, defineOutboundRoute, fileTopologyStore, serializeInboundTransmissionXml, writeGeneratedTypes };
|
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-LI7VIGVH.js";
|
|
47
47
|
import {
|
|
48
48
|
FoundryClient,
|
|
49
49
|
FoundryRunHandle,
|
|
50
50
|
createFoundryClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-L5JQVTHD.js";
|
|
52
52
|
import {
|
|
53
53
|
defineConfig
|
|
54
54
|
} from "./chunk-ZFNMFE3T.js";
|
|
@@ -63,8 +63,10 @@ import {
|
|
|
63
63
|
defineWorkingEnvironment,
|
|
64
64
|
foundryDataEnvironmentPersistence,
|
|
65
65
|
foundryGuidanceSubject
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-X3HZYVZS.js";
|
|
67
67
|
import {
|
|
68
|
+
DEFAULT_APPROVAL_EXPIRES_AFTER_MS,
|
|
69
|
+
DEFAULT_APPROVAL_WAIT_MS,
|
|
68
70
|
EMPTY_AGENT_COMPOSITION,
|
|
69
71
|
EMPTY_FOUNDRY_APPLICATION,
|
|
70
72
|
FOUNDRY_APPLICATION_BRAND,
|
|
@@ -112,8 +114,10 @@ import {
|
|
|
112
114
|
toGloveRequestInput,
|
|
113
115
|
transmissionPredicate,
|
|
114
116
|
withFoundryPermissions
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import
|
|
117
|
+
} from "./chunk-EUGKVW3J.js";
|
|
118
|
+
import {
|
|
119
|
+
meshIdentity
|
|
120
|
+
} from "./chunk-J6NHL4SM.js";
|
|
117
121
|
import {
|
|
118
122
|
EMPTY_CAPABILITY_REGISTRY,
|
|
119
123
|
EMPTY_NATIVE_REGISTRY,
|
|
@@ -144,6 +148,7 @@ import {
|
|
|
144
148
|
defineSharedTool,
|
|
145
149
|
defineSubagent,
|
|
146
150
|
defineSubscriber,
|
|
151
|
+
hostedMeshOptions,
|
|
147
152
|
install,
|
|
148
153
|
installRegistry,
|
|
149
154
|
installationKey,
|
|
@@ -154,17 +159,18 @@ import {
|
|
|
154
159
|
isFoundryLayer,
|
|
155
160
|
isFoundrySubscriber,
|
|
156
161
|
isInboxCapableStore,
|
|
162
|
+
isMeshTransport,
|
|
157
163
|
mountAgentDefinitionMemory,
|
|
158
164
|
mountFoundrySurfaces,
|
|
159
165
|
restrictApp,
|
|
160
166
|
routeFromInternalAgentName
|
|
161
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-CYOIHSUX.js";
|
|
162
168
|
|
|
163
169
|
// src/file-data.ts
|
|
164
170
|
import { randomUUID } from "node:crypto";
|
|
165
171
|
import { mkdir, open, readFile, rename, stat, unlink } from "node:fs/promises";
|
|
166
172
|
import { dirname } from "node:path";
|
|
167
|
-
import { Effect } from "effect";
|
|
173
|
+
import { Effect, Layer, Ref, Schema } from "effect";
|
|
168
174
|
function emptyState(environment) {
|
|
169
175
|
return {
|
|
170
176
|
version: 1,
|
|
@@ -173,6 +179,7 @@ function emptyState(environment) {
|
|
|
173
179
|
inboundDeliveries: [],
|
|
174
180
|
events: [],
|
|
175
181
|
pendingInbound: [],
|
|
182
|
+
approvals: [],
|
|
176
183
|
activations: [],
|
|
177
184
|
conversations: [],
|
|
178
185
|
workspaceEntries: [],
|
|
@@ -281,6 +288,7 @@ var FileFoundryDataAdapter = class {
|
|
|
281
288
|
inboundDeliveries: parsed.inboundDeliveries ?? [],
|
|
282
289
|
events: parsed.events ?? [],
|
|
283
290
|
pendingInbound: parsed.pendingInbound ?? [],
|
|
291
|
+
approvals: parsed.approvals ?? [],
|
|
284
292
|
activations: parsed.activations ?? [],
|
|
285
293
|
conversations: parsed.conversations ?? [],
|
|
286
294
|
workspaceEntries: parsed.workspaceEntries ?? [],
|
|
@@ -404,6 +412,7 @@ var FileFoundryDataAdapter = class {
|
|
|
404
412
|
const ids = new Set(state.conversations.filter((item) => item.agentId === agentId).map((item) => item.id));
|
|
405
413
|
state.events = state.events.filter((item) => item.target.agentId !== agentId);
|
|
406
414
|
state.pendingInbound = state.pendingInbound.filter((item) => item.request.agentId !== agentId);
|
|
415
|
+
state.approvals = state.approvals.filter((item) => item.agentId !== agentId);
|
|
407
416
|
state.activations = state.activations.filter((item) => item.agentId !== agentId);
|
|
408
417
|
state.conversations = state.conversations.filter((item) => item.agentId !== agentId);
|
|
409
418
|
state.workingEnvironments = state.workingEnvironments.filter((item) => item.owner.agentId !== agentId);
|
|
@@ -518,6 +527,20 @@ var FileFoundryDataAdapter = class {
|
|
|
518
527
|
listPendingInbound() {
|
|
519
528
|
return effect(async () => structuredClone((await this.snapshot()).pendingInbound));
|
|
520
529
|
}
|
|
530
|
+
putApproval(approval) {
|
|
531
|
+
return effect(async () => {
|
|
532
|
+
await this.ensureInitialized();
|
|
533
|
+
await this.mutate((state) => {
|
|
534
|
+
replaceById(state.approvals, structuredClone(approval));
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
getApproval(id) {
|
|
539
|
+
return effect(async () => structuredClone((await this.snapshot()).approvals.find((item) => item.id === id) ?? null));
|
|
540
|
+
}
|
|
541
|
+
listApprovals() {
|
|
542
|
+
return effect(async () => structuredClone((await this.snapshot()).approvals));
|
|
543
|
+
}
|
|
521
544
|
releaseInboundDelivery(key) {
|
|
522
545
|
return effect(async () => {
|
|
523
546
|
await this.ensureInitialized();
|
|
@@ -627,9 +650,79 @@ var FileFoundryDataAdapter = class {
|
|
|
627
650
|
)));
|
|
628
651
|
}
|
|
629
652
|
};
|
|
653
|
+
function fileTopologyStore(file) {
|
|
654
|
+
return Layer.effect(TopologyStore, Effect.gen(function* () {
|
|
655
|
+
const loaded = yield* Effect.promise(async () => {
|
|
656
|
+
try {
|
|
657
|
+
const parsed = JSON.parse(await readFile(file, "utf8"));
|
|
658
|
+
return {
|
|
659
|
+
version: 1,
|
|
660
|
+
routes: (parsed.routes ?? []).map((route) => Schema.decodeUnknownSync(Route)(route)),
|
|
661
|
+
bindings: (parsed.bindings ?? []).map((binding) => Schema.decodeUnknownSync(AgentBinding)(binding))
|
|
662
|
+
};
|
|
663
|
+
} catch (cause) {
|
|
664
|
+
if (cause.code === "ENOENT") return { version: 1, routes: [], bindings: [] };
|
|
665
|
+
throw cause;
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
const state = yield* Ref.make(loaded);
|
|
669
|
+
const lock = yield* Effect.makeSemaphore(1);
|
|
670
|
+
const commit = (next) => Effect.promise(async () => {
|
|
671
|
+
await mkdir(dirname(file), { recursive: true });
|
|
672
|
+
const temporary = `${file}.${process.pid}.${randomUUID()}.tmp`;
|
|
673
|
+
const handle = await open(temporary, "wx", 384);
|
|
674
|
+
try {
|
|
675
|
+
await handle.writeFile(`${JSON.stringify(next, null, 2)}
|
|
676
|
+
`, "utf8");
|
|
677
|
+
await handle.sync();
|
|
678
|
+
} finally {
|
|
679
|
+
await handle.close();
|
|
680
|
+
}
|
|
681
|
+
try {
|
|
682
|
+
await rename(temporary, file);
|
|
683
|
+
} catch (cause) {
|
|
684
|
+
try {
|
|
685
|
+
await unlink(temporary);
|
|
686
|
+
} catch {
|
|
687
|
+
}
|
|
688
|
+
throw cause;
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
const update = (change) => lock.withPermits(1)(Effect.gen(function* () {
|
|
692
|
+
const [result, next] = change(yield* Ref.get(state));
|
|
693
|
+
if (next) {
|
|
694
|
+
yield* commit(next);
|
|
695
|
+
yield* Ref.set(state, next);
|
|
696
|
+
}
|
|
697
|
+
return result;
|
|
698
|
+
}));
|
|
699
|
+
const withRoutes = (current, routes) => ({ ...current, routes });
|
|
700
|
+
const withBindings = (current, bindings) => ({ ...current, bindings });
|
|
701
|
+
return {
|
|
702
|
+
getRoute: (id) => Ref.get(state).pipe(Effect.flatMap((current) => {
|
|
703
|
+
const route = current.routes.find((candidate) => candidate.id === id);
|
|
704
|
+
return route ? Effect.succeed(route) : Effect.fail(new RouteNotFound({ routeId: id }));
|
|
705
|
+
})),
|
|
706
|
+
listRoutes: (filter = {}) => Ref.get(state).pipe(Effect.map((current) => current.routes.filter((route) => (filter.transmissionId === void 0 || route.transmissionId === filter.transmissionId) && (filter.accountId === void 0 || route.accountId === filter.accountId) && (filter.direction === void 0 || route.direction === filter.direction) && (filter.enabled === void 0 || route.enabled === filter.enabled)))),
|
|
707
|
+
putRoute: (route) => update((current) => [route, withRoutes(current, [...current.routes.filter((candidate) => candidate.id !== route.id), route])]),
|
|
708
|
+
removeRoute: (id) => update((current) => current.routes.some((route) => route.id === id) ? [true, withRoutes(current, current.routes.filter((route) => route.id !== id))] : [false, void 0]).pipe(
|
|
709
|
+
Effect.flatMap((removed) => removed ? Effect.void : Effect.fail(new RouteNotFound({ routeId: id })))
|
|
710
|
+
),
|
|
711
|
+
getBinding: (id) => Ref.get(state).pipe(Effect.flatMap((current) => {
|
|
712
|
+
const binding = current.bindings.find((candidate) => candidate.id === id);
|
|
713
|
+
return binding ? Effect.succeed(binding) : Effect.fail(new BindingNotFound({ bindingId: id }));
|
|
714
|
+
})),
|
|
715
|
+
listBindings: (filter = {}) => Ref.get(state).pipe(Effect.map((current) => current.bindings.filter((binding) => (filter.agentId === void 0 || binding.agentId === filter.agentId) && (filter.transmissionId === void 0 || binding.transmissionId === filter.transmissionId) && (filter.accountId === void 0 || binding.accountId === filter.accountId) && (filter.routeId === void 0 || binding.routeId === filter.routeId) && (filter.enabled === void 0 || binding.enabled === filter.enabled)))),
|
|
716
|
+
putBinding: (binding) => update((current) => [binding, withBindings(current, [...current.bindings.filter((candidate) => candidate.id !== binding.id), binding])]),
|
|
717
|
+
removeBinding: (id) => update((current) => current.bindings.some((binding) => binding.id === id) ? [true, withBindings(current, current.bindings.filter((binding) => binding.id !== id))] : [false, void 0]).pipe(
|
|
718
|
+
Effect.flatMap((removed) => removed ? Effect.void : Effect.fail(new BindingNotFound({ bindingId: id })))
|
|
719
|
+
)
|
|
720
|
+
};
|
|
721
|
+
}));
|
|
722
|
+
}
|
|
630
723
|
|
|
631
724
|
// src/authoring.ts
|
|
632
|
-
import { Schema } from "effect";
|
|
725
|
+
import { Schema as Schema2 } from "effect";
|
|
633
726
|
var accountTransmissions = /* @__PURE__ */ new WeakMap();
|
|
634
727
|
var routeTransmissions = /* @__PURE__ */ new WeakMap();
|
|
635
728
|
function defineAccount(options) {
|
|
@@ -637,8 +730,8 @@ function defineAccount(options) {
|
|
|
637
730
|
if (!transmission.account) {
|
|
638
731
|
throw new Error("The referenced transmission has no account contract.");
|
|
639
732
|
}
|
|
640
|
-
const metadata =
|
|
641
|
-
const decoded =
|
|
733
|
+
const metadata = Schema2.decodeUnknownSync(transmission.account.metadata)(data.metadata);
|
|
734
|
+
const decoded = Schema2.decodeUnknownSync(AccountReference)({
|
|
642
735
|
...data,
|
|
643
736
|
metadata,
|
|
644
737
|
transmissionId: "pending"
|
|
@@ -659,8 +752,8 @@ function defineInboundRoute(options) {
|
|
|
659
752
|
if (account && accountTransmissions.get(account) !== transmission) {
|
|
660
753
|
throw new Error(`Account "${account.id}" belongs to another transmission.`);
|
|
661
754
|
}
|
|
662
|
-
const config =
|
|
663
|
-
const decoded =
|
|
755
|
+
const config = Schema2.decodeUnknownSync(transmission.inbound.config)(data.config);
|
|
756
|
+
const decoded = Schema2.decodeUnknownSync(InboundRoute)({
|
|
664
757
|
...data,
|
|
665
758
|
config,
|
|
666
759
|
direction: "inbound",
|
|
@@ -683,8 +776,8 @@ function defineOutboundRoute(options) {
|
|
|
683
776
|
if (account && accountTransmissions.get(account) !== transmission) {
|
|
684
777
|
throw new Error(`Account "${account.id}" belongs to another transmission.`);
|
|
685
778
|
}
|
|
686
|
-
const config =
|
|
687
|
-
const decoded =
|
|
779
|
+
const config = Schema2.decodeUnknownSync(transmission.outbound.config)(data.config);
|
|
780
|
+
const decoded = Schema2.decodeUnknownSync(OutboundRoute)({
|
|
688
781
|
...data,
|
|
689
782
|
config,
|
|
690
783
|
direction: "outbound",
|
|
@@ -727,7 +820,7 @@ function defineBinding(options) {
|
|
|
727
820
|
`Account "${account.id}" does not belong to the referenced transmission.`
|
|
728
821
|
);
|
|
729
822
|
}
|
|
730
|
-
const decoded =
|
|
823
|
+
const decoded = Schema2.decodeUnknownSync(AgentBinding)({
|
|
731
824
|
...data,
|
|
732
825
|
agentId: agent.id,
|
|
733
826
|
transmissionId: "pending",
|
|
@@ -758,6 +851,8 @@ export {
|
|
|
758
851
|
BindingId,
|
|
759
852
|
BindingNotFound,
|
|
760
853
|
CapabilityId,
|
|
854
|
+
DEFAULT_APPROVAL_EXPIRES_AFTER_MS,
|
|
855
|
+
DEFAULT_APPROVAL_WAIT_MS,
|
|
761
856
|
EMPTY_AGENT_COMPOSITION,
|
|
762
857
|
EMPTY_CAPABILITY_REGISTRY,
|
|
763
858
|
EMPTY_FOUNDRY_APPLICATION,
|
|
@@ -861,10 +956,12 @@ export {
|
|
|
861
956
|
defineTransmissionPredicate,
|
|
862
957
|
defineWorkingEnvironment,
|
|
863
958
|
discoverAgents,
|
|
959
|
+
fileTopologyStore,
|
|
864
960
|
findAgentFiles,
|
|
865
961
|
foundryDataEnvironmentPersistence,
|
|
866
962
|
foundryGuidanceSubject,
|
|
867
963
|
grantResolverLive,
|
|
964
|
+
hostedMeshOptions,
|
|
868
965
|
install,
|
|
869
966
|
installRegistry,
|
|
870
967
|
installationKey,
|
|
@@ -879,10 +976,12 @@ export {
|
|
|
879
976
|
isFoundrySubscriber,
|
|
880
977
|
isFoundryTransmission,
|
|
881
978
|
isInboxCapableStore,
|
|
979
|
+
isMeshTransport,
|
|
882
980
|
listFoundryApprovals,
|
|
883
981
|
memoryAccountDirectory,
|
|
884
982
|
memoryEventStore,
|
|
885
983
|
memoryTopologyStore,
|
|
984
|
+
meshIdentity,
|
|
886
985
|
mountAgentDefinitionMemory,
|
|
887
986
|
mountFoundrySurfaces,
|
|
888
987
|
reconstructAgentInstance,
|
package/dist/voice.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IGloveRunnable } from 'glove-core';
|
|
2
2
|
import { RealtimeAgent, RealtimeAgentConfig } from 'glove-voice-s2s';
|
|
3
|
-
import { A as AgentHandlerContext, F as FoundryDelegationUpdate } from './event-delivery-
|
|
3
|
+
import { A as AgentHandlerContext, F as FoundryDelegationUpdate, a as FoundryMeshMessage } from './event-delivery-CNCsVqi8.js';
|
|
4
4
|
import 'effect';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'glove-mesh';
|
|
@@ -78,9 +78,11 @@ interface VoiceCallOptions {
|
|
|
78
78
|
readonly realtime?: Omit<RealtimeAgentConfig, "agent">;
|
|
79
79
|
/** How a delegation update is put to the model. Return null to keep it silent. */
|
|
80
80
|
readonly announce?: (update: FoundryDelegationUpdate) => string | null;
|
|
81
|
+
/** How a message from a peer on the mesh Foundry hosts is put to the model. Return null to keep it silent. */
|
|
82
|
+
readonly announceMesh?: (message: FoundryMeshMessage) => string | null;
|
|
81
83
|
/**
|
|
82
|
-
* A run that is not a call: a delegation result
|
|
83
|
-
* caller hung up. By default it is saved to the conversation, so the next
|
|
84
|
+
* A run that is not a call: a delegation result, or a peer's reply on the
|
|
85
|
+
* mesh, that arrived after the caller hung up. By default it is saved to the conversation, so the next
|
|
84
86
|
* call starts knowing it.
|
|
85
87
|
*/
|
|
86
88
|
readonly offCall?: (agent: IGloveRunnable, context: AgentHandlerContext) => unknown;
|
|
@@ -90,19 +92,21 @@ interface VoiceCallResult {
|
|
|
90
92
|
readonly durationMs: number;
|
|
91
93
|
/** How many times the agent spoke. */
|
|
92
94
|
readonly turns: number;
|
|
93
|
-
/** Delegation updates put to the caller during the call. */
|
|
95
|
+
/** Delegation updates and mesh messages put to the caller during the call. */
|
|
94
96
|
readonly updatesSpoken: number;
|
|
95
97
|
}
|
|
96
98
|
/** The default way a delegation update is put to the model mid-call. */
|
|
97
99
|
declare function announceDelegationUpdate(update: FoundryDelegationUpdate): string;
|
|
100
|
+
/** The default way a message from a peer on the mesh is put to the model mid-call. */
|
|
101
|
+
declare function announceMeshMessage(message: FoundryMeshMessage): string;
|
|
98
102
|
/**
|
|
99
103
|
* Run an agent as a live voice call: use it as a definition's `run`.
|
|
100
104
|
*
|
|
101
105
|
* The agent's prompt, tools and context configure a realtime speech session
|
|
102
106
|
* (its model must be `s2sDrivenModel(...)`, or pass `realtime.adapter`). The
|
|
103
107
|
* room connects callers. What both sides say is saved to the conversation.
|
|
104
|
-
* Delegation results and questions
|
|
105
|
-
* waiting for the call to end. Foundry's bookkeeping tools and any tool that
|
|
108
|
+
* Delegation results and questions, and messages from peers on the mesh, are
|
|
109
|
+
* spoken at the next pause instead of waiting for the call to end. Foundry's bookkeeping tools and any tool that
|
|
106
110
|
* needs an approval are kept off the call; delegate that work instead.
|
|
107
111
|
*/
|
|
108
112
|
declare function voiceCall(options: VoiceCallOptions): (agent: IGloveRunnable, context: AgentHandlerContext) => Promise<VoiceCallResult | unknown>;
|
|
@@ -165,4 +169,4 @@ interface WebSocketRoomOptions {
|
|
|
165
169
|
*/
|
|
166
170
|
declare function webSocketRoom(options: WebSocketRoomOptions): FoundryVoiceRoom;
|
|
167
171
|
|
|
168
|
-
export { type FoundryVoiceCall, type FoundryVoiceRoom, VOICE_EXCLUDED_FOUNDRY_TOOLS, type VoiceCallOptions, type VoiceCallResult, type VoiceRoomClientMessage, type VoiceRoomServerMessage, type WebSocketRoomOptions, announceDelegationUpdate, voiceCall, webSocketRoom };
|
|
172
|
+
export { type FoundryVoiceCall, type FoundryVoiceRoom, VOICE_EXCLUDED_FOUNDRY_TOOLS, type VoiceCallOptions, type VoiceCallResult, type VoiceRoomClientMessage, type VoiceRoomServerMessage, type WebSocketRoomOptions, announceDelegationUpdate, announceMeshMessage, voiceCall, webSocketRoom };
|
package/dist/voice.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
renderDeliveries
|
|
3
|
-
|
|
2
|
+
renderDeliveries,
|
|
3
|
+
renderMeshMessages
|
|
4
|
+
} from "./chunk-J6NHL4SM.js";
|
|
4
5
|
|
|
5
6
|
// src/voice.ts
|
|
6
7
|
import { createServer } from "node:http";
|
|
@@ -38,12 +39,33 @@ function announceDelegationUpdate(update) {
|
|
|
38
39
|
"Let the caller know, briefly."
|
|
39
40
|
].join("\n");
|
|
40
41
|
}
|
|
42
|
+
function announceMeshMessage(message) {
|
|
43
|
+
const who = `${message.from.name} (${message.from.agentId})`;
|
|
44
|
+
if (message.kind === "reply") {
|
|
45
|
+
return [
|
|
46
|
+
`${who} replied to what you sent them (thread ${message.threadId}):`,
|
|
47
|
+
message.content,
|
|
48
|
+
"Tell the caller what matters, briefly and in plain speech."
|
|
49
|
+
].join("\n");
|
|
50
|
+
}
|
|
51
|
+
if (message.kind === "failed") {
|
|
52
|
+
return [
|
|
53
|
+
`${who} could not finish (thread ${message.threadId}): ${message.content}`,
|
|
54
|
+
"Let the caller know, briefly."
|
|
55
|
+
].join("\n");
|
|
56
|
+
}
|
|
57
|
+
return [
|
|
58
|
+
`${who} asks (thread ${message.threadId}): ${message.content}`,
|
|
59
|
+
`If you already know the answer, reply with glove_mesh_send_message to "${message.from.agentId}" with in_reply_to "${message.id}".`,
|
|
60
|
+
"Otherwise ask the caller, then reply with their answer."
|
|
61
|
+
].join("\n");
|
|
62
|
+
}
|
|
41
63
|
function gatedTools(agent) {
|
|
42
64
|
return agent.tools.filter((tool) => tool.requiresPermission !== void 0 && tool.requiresPermission !== false).map((tool) => tool.name);
|
|
43
65
|
}
|
|
44
66
|
function voiceCall(options) {
|
|
45
67
|
return async (agent, context) => {
|
|
46
|
-
if (context.request.source?.kind === "delegation") {
|
|
68
|
+
if (context.request.source?.kind === "delegation" || context.request.source?.kind === "mesh") {
|
|
47
69
|
if (options.offCall) return options.offCall(agent, context);
|
|
48
70
|
await agent.store.appendMessages([{ sender: "user", text: context.messageText }]);
|
|
49
71
|
return { endedBecause: "not a call", durationMs: 0, turns: 0, updatesSpoken: 0 };
|
|
@@ -81,7 +103,17 @@ function voiceCall(options) {
|
|
|
81
103
|
realtime.on("tool_started", (name) => context.emit({ type: "foundry.voice.tool", data: { name, phase: "start" } }));
|
|
82
104
|
realtime.on("tool_finished", (name) => context.emit({ type: "foundry.voice.tool", data: { name, phase: "done" } }));
|
|
83
105
|
const announce = options.announce ?? announceDelegationUpdate;
|
|
106
|
+
const announceMesh = options.announceMesh ?? announceMeshMessage;
|
|
84
107
|
const queue = [];
|
|
108
|
+
const meshSide = (message) => message.threadId === context.conversationId ? "recipient" : "starter";
|
|
109
|
+
const rendered = (batch) => {
|
|
110
|
+
const updates = batch.flatMap((item) => "update" in item ? [item.update] : []);
|
|
111
|
+
const messages = batch.flatMap((item) => "mesh" in item ? [item.mesh] : []);
|
|
112
|
+
return [
|
|
113
|
+
updates.length ? renderDeliveries(updates) : "",
|
|
114
|
+
messages.length ? renderMeshMessages(messages, meshSide) : ""
|
|
115
|
+
].filter(Boolean).join("\n\n");
|
|
116
|
+
};
|
|
85
117
|
let heldSince = 0;
|
|
86
118
|
let retry;
|
|
87
119
|
const pump = () => {
|
|
@@ -97,13 +129,16 @@ function voiceCall(options) {
|
|
|
97
129
|
return;
|
|
98
130
|
}
|
|
99
131
|
const batch = queue.splice(0);
|
|
100
|
-
save([{ sender: "user", text:
|
|
101
|
-
const text = batch.map(announce).filter((line) => Boolean(line)).join("\n\n");
|
|
132
|
+
save([{ sender: "user", text: rendered(batch) }]);
|
|
133
|
+
const text = batch.map((item) => "update" in item ? announce(item.update) : announceMesh(item.mesh)).filter((line) => Boolean(line)).join("\n\n");
|
|
102
134
|
if (text) realtime.inject(text, { respond: true });
|
|
103
135
|
updatesSpoken += batch.length;
|
|
104
136
|
context.emit({
|
|
105
137
|
type: "foundry.voice.updates.spoken",
|
|
106
|
-
data: {
|
|
138
|
+
data: {
|
|
139
|
+
delegationIds: batch.flatMap((item) => "update" in item ? [item.update.delegationId] : []),
|
|
140
|
+
threadIds: batch.flatMap((item) => "mesh" in item ? [item.mesh.threadId] : [])
|
|
141
|
+
}
|
|
107
142
|
});
|
|
108
143
|
};
|
|
109
144
|
realtime.adapter.on("agent_speech_started", () => {
|
|
@@ -123,11 +158,16 @@ function voiceCall(options) {
|
|
|
123
158
|
realtime.adapter.on("interrupted", () => {
|
|
124
159
|
agentSpeaking = false;
|
|
125
160
|
});
|
|
126
|
-
const
|
|
161
|
+
const hear = (items) => {
|
|
127
162
|
if (queue.length === 0) heldSince = Date.now();
|
|
128
|
-
queue.push(...
|
|
163
|
+
queue.push(...items);
|
|
129
164
|
pump();
|
|
130
|
-
}
|
|
165
|
+
};
|
|
166
|
+
const stopUpdates = context.onDelegationUpdate((updates) => hear(updates.map((update) => ({ update }))));
|
|
167
|
+
const stopMesh = context.onMeshMessage((messages) => hear(messages.map((mesh) => ({ mesh }))));
|
|
168
|
+
const stopListening = async () => {
|
|
169
|
+
await Promise.all([stopUpdates(), stopMesh()]);
|
|
170
|
+
};
|
|
131
171
|
const room = typeof options.room === "function" ? await options.room(context) : options.room;
|
|
132
172
|
const idleMs = options.idleMs ?? 12e4;
|
|
133
173
|
const maxDurationMs = options.maxDurationMs ?? 30 * 6e4;
|
|
@@ -196,7 +236,7 @@ function voiceCall(options) {
|
|
|
196
236
|
if (retry) clearTimeout(retry);
|
|
197
237
|
context.signal.removeEventListener("abort", onAbort);
|
|
198
238
|
await stopListening();
|
|
199
|
-
if (queue.length > 0) save([{ sender: "user", text:
|
|
239
|
+
if (queue.length > 0) save([{ sender: "user", text: rendered(queue.splice(0)) }]);
|
|
200
240
|
try {
|
|
201
241
|
await room.close();
|
|
202
242
|
} catch {
|
|
@@ -343,6 +383,7 @@ function webSocketRoom(options) {
|
|
|
343
383
|
export {
|
|
344
384
|
VOICE_EXCLUDED_FOUNDRY_TOOLS,
|
|
345
385
|
announceDelegationUpdate,
|
|
386
|
+
announceMeshMessage,
|
|
346
387
|
voiceCall,
|
|
347
388
|
webSocketRoom
|
|
348
389
|
};
|
package/docs/README.md
CHANGED
|
@@ -7,7 +7,7 @@ These package-local documents provide the implementation-level companion referen
|
|
|
7
7
|
- [Building with Foundry](./building-with-foundry.md): project layout and complete authoring flow.
|
|
8
8
|
- [Architecture](./architecture.md): definitions, instances, subscriptions, connections, and adapter boundaries.
|
|
9
9
|
- [HTTP files and host secrets](../../glove-working-environment/HTTP-AND-SECRETS.md): secure downloads/uploads, HTTP calls, keystore references, and per-instance storage.
|
|
10
|
-
- [Inspector](./inspector.md): page hierarchy,
|
|
10
|
+
- [Inspector](./inspector.md): page hierarchy, runs opened like DevTools (Network, Console, Context), live updates, and the operator API.
|
|
11
11
|
- [Evaluation checklist](./evaluation-checklist.md): concrete review criteria and verification commands.
|
|
12
12
|
- [Implementation backlog](./implementation-backlog.md): remaining follow-up work, if any.
|
|
13
13
|
|