glove-foundry 0.8.0 → 0.10.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 +1 -1
- package/dist/{chunk-L5JQVTHD.js → chunk-N2GVJ257.js} +12 -0
- package/dist/{chunk-DTFCEX67.js → chunk-PMNRLJIQ.js} +902 -183
- package/dist/{chunk-EUGKVW3J.js → chunk-T6YLIGER.js} +135 -12
- package/dist/cli.js +2 -2
- package/dist/{client-CekanYLW.d.ts → client-Cj2wDXuc.d.ts} +41 -5
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/{event-delivery-CNCsVqi8.d.ts → event-delivery-a9B1Qq_u.d.ts} +141 -50
- package/dist/execution-daemon.js +0 -7
- package/dist/execution-loader.js +87 -4
- package/dist/index.d.ts +9 -5
- package/dist/index.js +42 -3
- package/dist/voice.d.ts +1 -1
- package/docs/architecture.md +18 -0
- package/docs/building-with-foundry.md +1 -1
- package/docs/inspector.md +191 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -534,7 +534,7 @@ Schedules are composable agent-local primitives, never a root registry. A lazy `
|
|
|
534
534
|
- `glove_foundry_schedules` lists, updates, or cancels triggers owned by the current instance.
|
|
535
535
|
- `glove_foundry_sleep` suspends the current logical run until an absolute time or for a duration, then wakes the same instance and conversation with a resolution message.
|
|
536
536
|
|
|
537
|
-
Both operations persist adapter-backed activation data before the
|
|
537
|
+
Both operations persist adapter-backed activation data before Foundry arms them. When one comes due, Foundry stores a schedule occurrence (stable id, `scheduledFor`, run and outcome) before it moves the activation's `nextOccurrenceAt` past it, then hands it to a run; on restart it delivers unfinished occurrences and re-arms from the stored cursor, not the current time. Delivery is at least once; key side effects on `request.source.occurrenceId`. Read occurrences with `runtime.listScheduleOccurrences()` or `client.scheduleOccurrences()`. The bundled memory adapter is for development, while a durable `FoundryDataAdapter` (with the optional occurrence methods) supplies production persistence.
|
|
538
538
|
|
|
539
539
|
Durations accept compact forms such as `30s`, `20m`, and `2h`, as well as Effect duration forms such as `20 minutes`. The execution backend remains private; agent projects see only these purpose-built tools and correlated activation events.
|
|
540
540
|
|
|
@@ -252,6 +252,18 @@ var FoundryClient = class {
|
|
|
252
252
|
await this.fetcher(`${this.baseUrl}/api/activations${query}`)
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
+
/** Occurrences of schedules and sleeps: when each was meant for, the run that took it and how it ended. */
|
|
256
|
+
async scheduleOccurrences(filter = {}) {
|
|
257
|
+
const query = new URLSearchParams();
|
|
258
|
+
if (filter.activationId) query.set("activation", filter.activationId);
|
|
259
|
+
if (filter.workspaceId) query.set("workspace", filter.workspaceId);
|
|
260
|
+
if (filter.agentId) query.set("agent", filter.agentId);
|
|
261
|
+
for (const status of typeof filter.status === "string" ? [filter.status] : filter.status ?? []) query.append("status", status);
|
|
262
|
+
const suffix = query.size ? `?${query}` : "";
|
|
263
|
+
return readResponse(
|
|
264
|
+
await this.fetcher(`${this.baseUrl}/api/schedule-occurrences${suffix}`)
|
|
265
|
+
);
|
|
266
|
+
}
|
|
255
267
|
async putPlaybookSubscription(subscription) {
|
|
256
268
|
return readResponse(
|
|
257
269
|
await this.fetcher(`${this.baseUrl}/api/playbook-subscriptions`, {
|