glove-foundry 0.12.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-WRGSTYBW.js → chunk-5ZYOBBOK.js} +7 -3
- package/dist/{chunk-N2GVJ257.js → chunk-HNBAEHHS.js} +33 -0
- package/dist/{chunk-UGYXSWPE.js → chunk-RAZARYUH.js} +1 -1
- package/dist/{chunk-DAYYZPVE.js → chunk-SE44NTGZ.js} +67 -3
- package/dist/cli.js +3 -3
- package/dist/{client-Dy6_aqsi.d.ts → client-Dvli7Y1v.d.ts} +26 -2
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/execution-loader.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/voice.js +1 -1
- package/package.json +5 -5
|
@@ -456,8 +456,11 @@ function createWorkerTools(context, delegation, options) {
|
|
|
456
456
|
}
|
|
457
457
|
];
|
|
458
458
|
}
|
|
459
|
+
function mailboxName(id) {
|
|
460
|
+
return createHash("sha256").update(id, "utf8").digest("hex");
|
|
461
|
+
}
|
|
459
462
|
function conversationDirectory(directory, conversationId) {
|
|
460
|
-
return join(directory,
|
|
463
|
+
return join(directory, mailboxName(conversationId));
|
|
461
464
|
}
|
|
462
465
|
async function writeMailboxDelivery(directory, conversationId, delivery) {
|
|
463
466
|
const target = conversationDirectory(directory, conversationId);
|
|
@@ -473,11 +476,12 @@ var DELIVERY_SCHEMA = z2.intersection(z2.object({ request: z2.custom().optional(
|
|
|
473
476
|
z2.object({
|
|
474
477
|
kind: z2.literal("mesh"),
|
|
475
478
|
side: z2.enum(["recipient", "starter"]),
|
|
479
|
+
peer: z2.string().optional(),
|
|
476
480
|
message: z2.object({
|
|
477
481
|
kind: z2.enum(["message", "reply", "failed", "ack"]),
|
|
478
482
|
id: z2.string(),
|
|
479
483
|
threadId: z2.string(),
|
|
480
|
-
from: z2.object({ agentId: z2.string(), name: z2.string() }),
|
|
484
|
+
from: z2.object({ agentId: z2.string(), name: z2.string(), kind: z2.enum(["agent", "human"]).optional() }),
|
|
481
485
|
to: z2.string(),
|
|
482
486
|
// A read receipt's note is optional, and JSON drops it when absent.
|
|
483
487
|
content: z2.string().default(""),
|
|
@@ -817,7 +821,7 @@ var RunEventQueue = class {
|
|
|
817
821
|
}
|
|
818
822
|
};
|
|
819
823
|
function leaseFile(directory, runId) {
|
|
820
|
-
return join(directory, ".leases",
|
|
824
|
+
return join(directory, ".leases", mailboxName(runId));
|
|
821
825
|
}
|
|
822
826
|
async function writeConversationLease(directory, runId) {
|
|
823
827
|
await mkdir(join(directory, ".leases"), { recursive: true, mode: 448 });
|
|
@@ -374,6 +374,39 @@ var FoundryClient = class {
|
|
|
374
374
|
}
|
|
375
375
|
));
|
|
376
376
|
}
|
|
377
|
+
/** Mesh threads, newest first: by who started them, the conversation that did, the recipient or status. */
|
|
378
|
+
async threads(filter = {}) {
|
|
379
|
+
const query = new URLSearchParams();
|
|
380
|
+
for (const [key, value] of Object.entries(filter)) if (typeof value === "string") query.set(key, value);
|
|
381
|
+
const suffix = query.size ? `?${query}` : "";
|
|
382
|
+
return readResponse(await this.fetcher(`${this.baseUrl}/api/threads${suffix}`));
|
|
383
|
+
}
|
|
384
|
+
async thread(threadId) {
|
|
385
|
+
return readResponse(await this.fetcher(`${this.baseUrl}/api/threads/${encodeURIComponent(threadId)}`));
|
|
386
|
+
}
|
|
387
|
+
/** A person's message in a thread, from your record: `runtime.meshHumanMessage`. */
|
|
388
|
+
async meshHumanMessage(threadId, input) {
|
|
389
|
+
return readResponse(await this.fetcher(`${this.baseUrl}/api/threads/${encodeURIComponent(threadId)}/messages`, {
|
|
390
|
+
method: "POST",
|
|
391
|
+
headers: { "content-type": "application/json" },
|
|
392
|
+
body: JSON.stringify(input)
|
|
393
|
+
}));
|
|
394
|
+
}
|
|
395
|
+
/** A person takes a thread over: `runtime.meshTakeOver`. */
|
|
396
|
+
async meshTakeOver(threadId, options) {
|
|
397
|
+
return readResponse(await this.fetcher(`${this.baseUrl}/api/threads/${encodeURIComponent(threadId)}/take-over`, {
|
|
398
|
+
method: "POST",
|
|
399
|
+
headers: { "content-type": "application/json" },
|
|
400
|
+
body: JSON.stringify(options)
|
|
401
|
+
}));
|
|
402
|
+
}
|
|
403
|
+
/** Deliver or discard a message the application's gate held: `runtime.releaseMeshMessage`. */
|
|
404
|
+
async releaseMeshMessage(threadId, messageId, decision) {
|
|
405
|
+
return readResponse(await this.fetcher(
|
|
406
|
+
`${this.baseUrl}/api/threads/${encodeURIComponent(threadId)}/held/${encodeURIComponent(messageId)}`,
|
|
407
|
+
{ method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ decision }) }
|
|
408
|
+
));
|
|
409
|
+
}
|
|
377
410
|
async manifest() {
|
|
378
411
|
return readResponse(
|
|
379
412
|
await this.fetcher(`${this.baseUrl}/api/manifest`)
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
scheduleOccurrenceId,
|
|
44
44
|
scheduleRevisionMatches,
|
|
45
45
|
transmissionPredicate
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-RAZARYUH.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_MESH_REFUSAL,
|
|
49
49
|
FOUNDRY_CONVERSATION_LEASE_EVENT,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
workerAgentId,
|
|
71
71
|
writeConversationLease,
|
|
72
72
|
writeMailboxDelivery
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
74
74
|
import {
|
|
75
75
|
EMPTY_CAPABILITY_REGISTRY,
|
|
76
76
|
EMPTY_NATIVE_REGISTRY,
|
|
@@ -3201,6 +3201,8 @@ var FoundryRuntime = class _FoundryRuntime {
|
|
|
3201
3201
|
const runs = [];
|
|
3202
3202
|
const deliveries = [];
|
|
3203
3203
|
const matchedByAgent = /* @__PURE__ */ new Map();
|
|
3204
|
+
const subscriptions = await this.listPlaybookSubscriptions();
|
|
3205
|
+
const subscribedPlaybooks = new Set(subscriptions.map((subscription) => subscription.playbook.id));
|
|
3204
3206
|
for (const stored of instances) {
|
|
3205
3207
|
let agent;
|
|
3206
3208
|
try {
|
|
@@ -3220,6 +3222,7 @@ var FoundryRuntime = class _FoundryRuntime {
|
|
|
3220
3222
|
if (!hasInstalledOwner) continue;
|
|
3221
3223
|
const matched = [];
|
|
3222
3224
|
for (const playbook of agent.playbooks) {
|
|
3225
|
+
if (subscribedPlaybooks.has(playbook.id)) continue;
|
|
3223
3226
|
if (await this.playbookMatches(
|
|
3224
3227
|
playbook,
|
|
3225
3228
|
integration,
|
|
@@ -3232,7 +3235,7 @@ var FoundryRuntime = class _FoundryRuntime {
|
|
|
3232
3235
|
if (matched.length === 0) continue;
|
|
3233
3236
|
matchedByAgent.set(agent.id, { agent, playbooks: matched });
|
|
3234
3237
|
}
|
|
3235
|
-
for (const subscription of
|
|
3238
|
+
for (const subscription of subscriptions) {
|
|
3236
3239
|
if (!subscription.enabled || subscription.workspaceId.length === 0) continue;
|
|
3237
3240
|
if (!await this.playbookMatches(
|
|
3238
3241
|
subscription.playbook,
|
|
@@ -4612,6 +4615,10 @@ var FoundryRuntime = class _FoundryRuntime {
|
|
|
4612
4615
|
// travel as "mesh" deliveries on the same durable path as delegation
|
|
4613
4616
|
// updates: into the run working on that conversation, or as one run once it
|
|
4614
4617
|
// is free. The recipient's final reply goes back on its own.
|
|
4618
|
+
/** One mesh thread, by id. Null when there is none. */
|
|
4619
|
+
getThread(threadId) {
|
|
4620
|
+
return this.loadThread(threadId);
|
|
4621
|
+
}
|
|
4615
4622
|
/** Every thread, newest first, optionally narrowed to who started it or who it went to. */
|
|
4616
4623
|
async listThreads(filter = {}) {
|
|
4617
4624
|
const found = [];
|
|
@@ -9582,6 +9589,63 @@ var FoundryServer = class {
|
|
|
9582
9589
|
));
|
|
9583
9590
|
return;
|
|
9584
9591
|
}
|
|
9592
|
+
if (url.pathname === "/api/threads" && method === "GET") {
|
|
9593
|
+
const status = url.searchParams.get("status");
|
|
9594
|
+
json(response, 200, await this.runtime.listThreads({
|
|
9595
|
+
...url.searchParams.get("agentId") ? { agentId: url.searchParams.get("agentId") } : {},
|
|
9596
|
+
...url.searchParams.get("conversationId") ? { conversationId: url.searchParams.get("conversationId") } : {},
|
|
9597
|
+
...url.searchParams.get("to") ? { to: url.searchParams.get("to") } : {},
|
|
9598
|
+
...status ? { status } : {}
|
|
9599
|
+
}));
|
|
9600
|
+
return;
|
|
9601
|
+
}
|
|
9602
|
+
const threadMatch = url.pathname.match(/^\/api\/threads\/([^/]+)(?:\/(messages|take-over|held\/([^/]+)))?$/);
|
|
9603
|
+
if (threadMatch) {
|
|
9604
|
+
const threadId = decodeURIComponent(threadMatch[1]);
|
|
9605
|
+
const thread = await this.runtime.getThread(threadId);
|
|
9606
|
+
if (!thread) throw new RequestError(404, "Foundry mesh thread was not found.");
|
|
9607
|
+
const action = threadMatch[2];
|
|
9608
|
+
if (!action && method === "GET") {
|
|
9609
|
+
json(response, 200, thread);
|
|
9610
|
+
return;
|
|
9611
|
+
}
|
|
9612
|
+
if (method === "POST") {
|
|
9613
|
+
const body = await readJson(request);
|
|
9614
|
+
if (action === "messages") {
|
|
9615
|
+
if (typeof body.authorId !== "string" || !body.authorId.trim() || typeof body.text !== "string" || !body.text.trim()) {
|
|
9616
|
+
throw new RequestError(400, "authorId and text are required.");
|
|
9617
|
+
}
|
|
9618
|
+
json(response, 201, await this.runtime.meshHumanMessage(threadId, {
|
|
9619
|
+
authorId: body.authorId,
|
|
9620
|
+
text: body.text,
|
|
9621
|
+
...typeof body.name === "string" ? { name: body.name } : {},
|
|
9622
|
+
...typeof body.id === "string" ? { id: body.id } : {}
|
|
9623
|
+
}));
|
|
9624
|
+
return;
|
|
9625
|
+
}
|
|
9626
|
+
if (action === "take-over") {
|
|
9627
|
+
if (typeof body.by !== "string" || !body.by.trim()) throw new RequestError(400, "by is required.");
|
|
9628
|
+
if (body.agentId !== void 0 && typeof body.agentId !== "string") throw new RequestError(400, "agentId must be a string.");
|
|
9629
|
+
if (typeof body.agentId === "string" && body.agentId !== thread.from.agentId && body.agentId !== thread.to.agentId) {
|
|
9630
|
+
throw new RequestError(400, "agentId is not in this thread.");
|
|
9631
|
+
}
|
|
9632
|
+
json(response, 200, await this.runtime.meshTakeOver(threadId, {
|
|
9633
|
+
by: body.by,
|
|
9634
|
+
...typeof body.agentId === "string" ? { agentId: body.agentId } : {}
|
|
9635
|
+
}));
|
|
9636
|
+
return;
|
|
9637
|
+
}
|
|
9638
|
+
if (action?.startsWith("held/")) {
|
|
9639
|
+
const messageId = decodeURIComponent(threadMatch[3]);
|
|
9640
|
+
if (body.decision !== "deliver" && body.decision !== "discard") throw new RequestError(400, 'decision must be "deliver" or "discard".');
|
|
9641
|
+
const held = thread.held?.find((item) => item.message.id === messageId);
|
|
9642
|
+
if (!held) throw new RequestError(404, "The thread holds no such message.");
|
|
9643
|
+
if (held.decision === "draft") throw new RequestError(409, `This message is a draft: decide approval "${held.approvalId}" instead.`);
|
|
9644
|
+
json(response, 200, await this.runtime.releaseMeshMessage(threadId, messageId, body.decision));
|
|
9645
|
+
return;
|
|
9646
|
+
}
|
|
9647
|
+
}
|
|
9648
|
+
}
|
|
9585
9649
|
const transmissionFire = url.pathname.match(/^\/api\/transmissions\/([^/]+)\/fire$/);
|
|
9586
9650
|
if (transmissionFire && method === "POST") {
|
|
9587
9651
|
const body = await readJson(request);
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
FoundryRuntime,
|
|
4
4
|
FoundryServer,
|
|
5
5
|
writeGeneratedTypes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SE44NTGZ.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_FOUNDRY_CONFIG
|
|
9
9
|
} from "./chunk-ZFNMFE3T.js";
|
|
@@ -11,8 +11,8 @@ import "./chunk-J7ZBJM54.js";
|
|
|
11
11
|
import {
|
|
12
12
|
EMPTY_FOUNDRY_APPLICATION,
|
|
13
13
|
isFoundryApplication
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-RAZARYUH.js";
|
|
15
|
+
import "./chunk-5ZYOBBOK.js";
|
|
16
16
|
import "./chunk-WK2O4GIB.js";
|
|
17
17
|
|
|
18
18
|
// src/cli.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreAdapter, AgentEvent, Message, TokenConsumptionCounter } from 'glove-core';
|
|
2
|
-
import { B as AccountId, r as AccountReference, D as AccountNotFound, dm as TransmissionId, de as RouteId, dd as Route, df as RouteNotFound, dj as TopologyConflict, a6 as BindingId, t as AgentBinding, a7 as BindingNotFound, U as AgentId, aC as EventReference, az as EventId, aA as EventNotFound, dh as RunId, G as AccountSessionUnavailable, d as FoundryDataAdapter, bO as FoundryInstanceProvisioner, m as FoundryApproval, bc as FoundryApplicationMesh, b5 as FoundryAgentDefinition, dg as RunGrant, cS as GrantResolutionError, q as AnyFoundryTransmission, bq as FoundryCapabilityRegistry, ci as FoundryNativeRegistry, cq as FoundryRequest, ac as CreateAgentInstanceOptions, e as AgentInstance, ce as FoundryMessageOptions, Z as AgentMessageReceipt, bD as FoundryEventTarget, bA as FoundryEventPolicy, C as Conversation, h as FoundryEventRecord, f as FoundryActivationRecord, l as FoundryPendingInbound, o as FoundryTask, S as SharedInboxItem, ad as CreateConversationOptions, p as AgentPlaybook, P as PlaybookSubscription, ap as DefinePlaybookSubscriptionOptions, a4 as ApplicationConnectionState, dr as UpdateAgentInstanceOptions, ds as UpdateConversationOptions, W as WorkspaceEntry, E as EnvironmentValue, cd as FoundryMessageInput, ct as FoundryResult, bg as FoundryApprovalStatus, bd as FoundryApprovalDecision, bo as FoundryCapabilityManifest, cg as FoundryNativeManifest, X as AgentInstallation, by as FoundryDelegationStatus, bw as FoundryDelegation,
|
|
2
|
+
import { B as AccountId, r as AccountReference, D as AccountNotFound, dm as TransmissionId, de as RouteId, dd as Route, df as RouteNotFound, dj as TopologyConflict, a6 as BindingId, t as AgentBinding, a7 as BindingNotFound, U as AgentId, aC as EventReference, az as EventId, aA as EventNotFound, dh as RunId, G as AccountSessionUnavailable, d as FoundryDataAdapter, bO as FoundryInstanceProvisioner, m as FoundryApproval, bc as FoundryApplicationMesh, b5 as FoundryAgentDefinition, dg as RunGrant, cS as GrantResolutionError, q as AnyFoundryTransmission, bq as FoundryCapabilityRegistry, ci as FoundryNativeRegistry, cq as FoundryRequest, ac as CreateAgentInstanceOptions, e as AgentInstance, ce as FoundryMessageOptions, Z as AgentMessageReceipt, bD as FoundryEventTarget, bA as FoundryEventPolicy, C as Conversation, h as FoundryEventRecord, f as FoundryActivationRecord, l as FoundryPendingInbound, o as FoundryTask, S as SharedInboxItem, ad as CreateConversationOptions, p as AgentPlaybook, P as PlaybookSubscription, ap as DefinePlaybookSubscriptionOptions, a4 as ApplicationConnectionState, dr as UpdateAgentInstanceOptions, ds as UpdateConversationOptions, W as WorkspaceEntry, E as EnvironmentValue, cd as FoundryMessageInput, ct as FoundryResult, bg as FoundryApprovalStatus, bd as FoundryApprovalDecision, bo as FoundryCapabilityManifest, cg as FoundryNativeManifest, X as AgentInstallation, by as FoundryDelegationStatus, bw as FoundryDelegation, ca as FoundryMeshThread, cc as FoundryMeshThreadStatus, c as FoundryMeshMessage, k as FoundryScheduleOccurrenceFilter, j as FoundryScheduleOccurrence, cu as FoundryRouteMap, H as AccountSummary, a1 as AnyFoundryAgent } from './event-delivery-CWxarW6L.js';
|
|
3
3
|
import * as effect_Brand from 'effect/Brand';
|
|
4
4
|
import { Context, Effect, Layer, Schema } from 'effect';
|
|
5
5
|
import { FoundryStationDaemonAdapter } from './station.js';
|
|
@@ -631,10 +631,10 @@ declare class FoundryRuntime {
|
|
|
631
631
|
installCapability(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
632
632
|
uninstallCapability(agentId: string, installation: AgentInstallation): Promise<AgentInstance>;
|
|
633
633
|
listAccounts(): Promise<{
|
|
634
|
-
label?: string | undefined;
|
|
635
634
|
id: string & effect_Brand.Brand<"FoundryAccountId">;
|
|
636
635
|
transmissionId: string & effect_Brand.Brand<"FoundryTransmissionId">;
|
|
637
636
|
externalAccountId: string;
|
|
637
|
+
label?: string | undefined;
|
|
638
638
|
metadata: {
|
|
639
639
|
readonly [x: string]: unknown;
|
|
640
640
|
};
|
|
@@ -771,6 +771,8 @@ declare class FoundryRuntime {
|
|
|
771
771
|
private executeDelegationCommand;
|
|
772
772
|
private startDelegation;
|
|
773
773
|
/** Report a worker's finished run back to whoever delegated to it. */
|
|
774
|
+
/** One mesh thread, by id. Null when there is none. */
|
|
775
|
+
getThread(threadId: string): Promise<FoundryMeshThread | null>;
|
|
774
776
|
/** Every thread, newest first, optionally narrowed to who started it or who it went to. */
|
|
775
777
|
listThreads(filter?: {
|
|
776
778
|
/** The agent that started the thread. */
|
|
@@ -1075,6 +1077,28 @@ declare class FoundryClient<TRoutes extends FoundryRouteMap> {
|
|
|
1075
1077
|
/** One approval, by id: what a link to it opens. */
|
|
1076
1078
|
approval(approvalId: string): Promise<FoundryApproval>;
|
|
1077
1079
|
resolveApproval(approvalId: string, decision: FoundryApprovalDecision): Promise<FoundryApproval>;
|
|
1080
|
+
/** Mesh threads, newest first: by who started them, the conversation that did, the recipient or status. */
|
|
1081
|
+
threads(filter?: {
|
|
1082
|
+
readonly agentId?: string;
|
|
1083
|
+
readonly conversationId?: string;
|
|
1084
|
+
readonly to?: string;
|
|
1085
|
+
readonly status?: FoundryMeshThreadStatus;
|
|
1086
|
+
}): Promise<ReadonlyArray<FoundryMeshThread>>;
|
|
1087
|
+
thread(threadId: string): Promise<FoundryMeshThread>;
|
|
1088
|
+
/** A person's message in a thread, from your record: `runtime.meshHumanMessage`. */
|
|
1089
|
+
meshHumanMessage(threadId: string, input: {
|
|
1090
|
+
readonly authorId: string;
|
|
1091
|
+
readonly name?: string;
|
|
1092
|
+
readonly text: string;
|
|
1093
|
+
readonly id?: string;
|
|
1094
|
+
}): Promise<FoundryMeshMessage>;
|
|
1095
|
+
/** A person takes a thread over: `runtime.meshTakeOver`. */
|
|
1096
|
+
meshTakeOver(threadId: string, options: {
|
|
1097
|
+
readonly by: string;
|
|
1098
|
+
readonly agentId?: string;
|
|
1099
|
+
}): Promise<FoundryMeshThread>;
|
|
1100
|
+
/** Deliver or discard a message the application's gate held: `runtime.releaseMeshMessage`. */
|
|
1101
|
+
releaseMeshMessage(threadId: string, messageId: string, decision: "deliver" | "discard"): Promise<FoundryMeshThread>;
|
|
1078
1102
|
manifest(): Promise<{
|
|
1079
1103
|
agents: FoundryManifest;
|
|
1080
1104
|
application: FoundryApplicationManifest;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'glove-core';
|
|
2
2
|
import './event-delivery-CWxarW6L.js';
|
|
3
|
-
export { k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, q as FoundryHealth, y as FoundryRunHandle, G as FoundrySteerHandleResult, W as WaitOptions, N as createFoundryClient } from './client-
|
|
3
|
+
export { k as FoundryClient, l as FoundryClientAuthorizationAdapter, m as FoundryClientOptions, q as FoundryHealth, y as FoundryRunHandle, G as FoundrySteerHandleResult, W as WaitOptions, N as createFoundryClient } from './client-Dvli7Y1v.js';
|
|
4
4
|
import 'effect';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'glove-mesh';
|
package/dist/client.js
CHANGED
package/dist/execution-loader.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
toGloveMessage,
|
|
34
34
|
toGloveRequestInput,
|
|
35
35
|
withFoundryPermissions
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RAZARYUH.js";
|
|
37
37
|
import {
|
|
38
38
|
FOUNDRY_CONVERSATION_LEASE_EVENT,
|
|
39
39
|
FOUNDRY_CONVERSATION_LISTEN_EVENT,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
renderOwnThread,
|
|
59
59
|
threadFromContext,
|
|
60
60
|
waitForConversationLease
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
62
62
|
import {
|
|
63
63
|
EMPTY_CAPABILITY_REGISTRY,
|
|
64
64
|
FOUNDRY_APPLICATION_ENV,
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { d as FoundryDataAdapter, E as EnvironmentValue, e as AgentInstance, C a
|
|
|
2
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";
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
toGloveRequestInput,
|
|
125
125
|
transmissionPredicate,
|
|
126
126
|
withFoundryPermissions
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-RAZARYUH.js";
|
|
128
128
|
import {
|
|
129
129
|
DEFAULT_MESH_REFUSAL,
|
|
130
130
|
assertEventReceipt,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
lateChatEffectId,
|
|
134
134
|
matchesReceiptFilter,
|
|
135
135
|
meshIdentity
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-5ZYOBBOK.js";
|
|
137
137
|
import {
|
|
138
138
|
EMPTY_CAPABILITY_REGISTRY,
|
|
139
139
|
EMPTY_NATIVE_REGISTRY,
|
package/dist/voice.js
CHANGED
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,13 +79,13 @@
|
|
|
79
79
|
"station-broadcast": "^3.0.0",
|
|
80
80
|
"glove-core": "4.8.0",
|
|
81
81
|
"glove-facts": "0.1.9",
|
|
82
|
-
"glove-memory": "2.3.4",
|
|
83
|
-
"glove-mcp": "1.2.7",
|
|
84
|
-
"glove-js": "0.5.7",
|
|
85
82
|
"glove-lisp": "0.5.7",
|
|
83
|
+
"glove-mcp": "1.2.7",
|
|
84
|
+
"glove-memory": "2.3.4",
|
|
86
85
|
"glove-mesh": "0.2.4",
|
|
87
|
-
"glove-
|
|
86
|
+
"glove-js": "0.5.7",
|
|
88
87
|
"glove-working-environment": "0.7.0",
|
|
88
|
+
"glove-voice-s2s": "0.5.0",
|
|
89
89
|
"glove-python": "0.4.7"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|