glove-foundry 0.7.0 → 0.8.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.
@@ -1,24 +1,54 @@
1
1
  # Durable subagents
2
2
 
3
- A durable subagent is a named worker owned by one agent instance. It keeps its own
4
- identity, conversations, schedules, private data, and event delivery state across requests. Reusing
5
- an agent definition creates an owned instance; it does not adopt an unrelated
6
- existing instance. Different parents and different names always have different workers.
3
+ A durable subagent is an agent instance owned by another agent instance. Declare a
4
+ named worker in `defineAgent`; Foundry creates it on first use and keeps its identity,
5
+ conversations and owned data available for future work.
6
+
7
+ Use durable subagents when one agent needs several intelligent workers with separate
8
+ responsibilities. Each can have its own model, instructions, tools, memory access and
9
+ run budget, handle many tasks over time, receive events independently, and own further
10
+ workers. The parent can keep serving requests while that work proceeds. This applies
11
+ to chat agents, background services, scheduled work and systems with no conversational
12
+ front. A realtime front is one possible consumer of the same primitives.
13
+
14
+ ## What exists in code and storage
15
+
16
+ | Concept | Meaning |
17
+ | --- | --- |
18
+ | Worker definition | A normal `defineAgent` value describing a model, instructions and capabilities. Several slots or parents can reuse it. |
19
+ | Named slot | A key in `durableSubagents`, with a worker definition, inheritance selections and delivery defaults. |
20
+ | Owned worker instance | One persisted agent for a particular parent instance and slot name, with its own instance ID in the parent's workspace. |
21
+ | Conversation | A context owned by that worker. Its default event conversation and individual delegated-task conversations are separate. |
22
+ | Run | An execution assembled to process work in a conversation. The same worker instance can be used by many runs. |
23
+
24
+ Two parent instances using the same definition get different workers. Two slots on
25
+ one parent get different workers even when they reuse the same definition. Reusing a
26
+ definition does not adopt an unrelated existing instance.
27
+
28
+ The identity and stored state are durable. A worker does not need a continuously
29
+ running JavaScript process or model session. Foundry assembles it again for each run;
30
+ an idle worker does not occupy an execution slot just to exist.
31
+
32
+ ## Declare the relationship
33
+
34
+ Keep workers as ordinary agent definitions, then select them in the parent. An inline
35
+ `defineAgent` value works too. Models and persistence adapters use normal Foundry
36
+ configuration; there is no separate worker harness to construct.
7
37
 
8
38
  ```ts
9
39
  import { defineAgent, restrictApp } from "glove-foundry";
10
- import researcher from "../researcher/agent.js";
40
+ import worker from "../worker/agent.js";
11
41
  import knowledgeBase from "./apps/knowledge-base.app.js";
12
42
  import { components } from "./composition.js";
13
43
 
14
44
  export default defineAgent({
15
- description: "A responsive assistant with persistent research",
45
+ description: "Coordinate requests and independent workers",
16
46
  model: fastModel,
17
47
  systemPrompt: "Help the user and coordinate your workers.",
18
48
  components,
19
49
  durableSubagents: {
20
- research: {
21
- agent: researcher,
50
+ analysis: {
51
+ agent: worker,
22
52
  eventDelivery: { whenIdle: "wake" },
23
53
  inherit: {
24
54
  context: true,
@@ -50,22 +80,52 @@ export default defineAgent({
50
80
 
51
81
  Imported definitions and inline `defineAgent` values work, including nested workers.
52
82
  Definitions remain immutable. Discovery derives a route such as
53
- `assistant/workers/research`; `workers` inside a route is reserved for this purpose.
83
+ `coordinator/workers/analysis`; `workers` inside a route is reserved for this purpose.
54
84
  Names must be lowercase slugs; `parent` is reserved. Cycles and route collisions fail
55
85
  discovery. Declare these relationships statically; ordinary assembly fields remain lazy.
56
86
 
57
- ## Independent work and messaging
87
+ ## Provisioning and reuse
88
+
89
+ Declaring a slot makes a worker available; it does not create every possible instance
90
+ at startup. A first message or delegated task atomically provisions the owned worker.
91
+ An application can also ensure one explicitly:
92
+
93
+ ```ts
94
+ import { createFoundryClient } from "glove-foundry/client";
95
+
96
+ const client = createFoundryClient({ baseUrl: process.env.FOUNDRY_URL! });
97
+ const parent = await client.agent("coordinator").create({ workspaceId: "workspace-a" });
98
+ const worker = client.subagent(parent.id, "analysis"); // handle only; no request yet
99
+ const instance = await worker.ensure(); // create once or return the existing instance
100
+ await worker.send("Review the current plan."); // also ensures the worker if needed
101
+ ```
102
+
103
+ The ownership key is the parent instance ID plus the slot name. New messages, tasks
104
+ and controller restarts reuse that instance when the data adapter is persistent.
105
+ Ensuring a worker does not start a model run. Listing and inspection do not provision
106
+ or reactivate workers. A new parent gets new workers; changing a slot name identifies
107
+ a different worker rather than renaming its stored instance.
108
+
109
+ ## Direct messages and task delegation
110
+
111
+ A durable worker is a place to send work over time. Task delegation adds an assignment,
112
+ clarification questions, task status and a correlated final result to that independent
113
+ lifetime. Direct messages communicate facts, priority changes or spontaneous findings
114
+ without creating a tracked task. Both use the same addressed event-delivery layer.
58
115
 
59
- Workers are provisioned atomically on first use, once per parent and slot. Calls to
60
- `glove_foundry_delegate({ to: "research", task: "Write a report" })` use the owned
61
- researcher. Existing `delegates` continue to work. A durable name takes precedence
116
+ Calls to
117
+ `glove_foundry_delegate({ to: "analysis", task: "Write a report" })` use the owned
118
+ worker. Existing `delegates` continue to work. A durable name takes precedence
62
119
  when it also names a sibling delegate. Each task gets a separate conversation;
63
120
  its final result and questions return to the originating parent conversation.
64
121
 
65
- `glove_foundry_message({ to: "research", message: "Watch this competitor" })`
122
+ `glove_foundry_message({ to: "analysis", message: "Watch this competitor" })`
66
123
  sends a spontaneous message without creating a task. The worker can send
67
124
  `glove_foundry_message({ to: "parent", message: "Something changed" })` at any time.
68
- By default messages address a stable conversation belonging to the recipient. Supply
125
+ An instance ID identifies the worker; a conversation ID identifies the particular
126
+ context in which it processes an event. By default messages address a stable event
127
+ conversation belonging to the recipient. They do not automatically enter an active
128
+ task or the latest parent chat. Supply
69
129
  `delivery.conversationId` to address an existing conversation explicitly. Foundry
70
130
  validates that it belongs to the recipient and shares its workspace; it never guesses
71
131
  the latest chat. The model tool accepts only declared children and the actual parent.
@@ -75,7 +135,7 @@ reply. There is no automatic reply loop.
75
135
 
76
136
  ```ts
77
137
  await worker.send("Include these three companies.", {
78
- id: "research-update-42", // stable across retries
138
+ id: "analysis-update-42", // stable across retries
79
139
  conversationId: reportConversationId,
80
140
  whenIdle: "defer", // join the next turn
81
141
  deferTimeoutMs: 30_000, // or wake after 30 seconds
@@ -84,7 +144,7 @@ await worker.send("Include these three companies.", {
84
144
 
85
145
  // The same layer supports direct addressed events from an application.
86
146
  await client.emitEvent(
87
- { agentId: researcherId, conversationId: reportConversationId },
147
+ { agentId: workerId, conversationId: reportConversationId },
88
148
  { id: "source-change-42", source: "app:watcher", kind: "source.changed", content: "The source changed." },
89
149
  { whenIdle: "wake" },
90
150
  );
@@ -96,13 +156,17 @@ await messageTool.run({
96
156
  });
97
157
  ```
98
158
 
159
+ ## Delivery policies
160
+
99
161
  `defineAgent({ eventDelivery })` sets the recipient's default policy; a durable slot
100
- can override it with `durableSubagents.research.eventDelivery`. Each send can override
101
- that policy again. The default is `whenIdle: "wake"`. `defer` without a timeout waits
162
+ can replace that default object with `durableSubagents.analysis.eventDelivery`. Each
163
+ send can override fields of the effective policy. The default is `whenIdle: "wake"`.
164
+ `defer` with no effective timeout waits
102
165
  for another turn; with `deferTimeoutMs`, the original acceptance time determines the
103
166
  wake deadline, including across restarts. `expiresAt` discards stale events before
104
- injection. Policies affect idle targets; events sent to a busy target join its next
105
- native event boundary. A waking event can carry other deferred events into the same
167
+ injection. Policies affect idle conversations; events sent to a conversation with a
168
+ live run join its next native event boundary. Different conversations can run
169
+ independently within execution limits. A waking event can carry other deferred events into the same
106
170
  turn. These are deterministic controller policies; they do not infer user presence.
107
171
 
108
172
  The message tool waits for durable acceptance, not for the recipient's answer.
@@ -156,6 +220,12 @@ application `conversationStore` (or worker `store`) for transcripts. Instance an
156
220
  message persistence does not itself persist native Glove transcripts, memory, or
157
221
  external files. These keep their existing Foundry persistence boundaries.
158
222
 
223
+ ## Execution budgets and responsiveness
224
+
225
+ A worker's run is independent of the run that delegated to it. A parent can finish a
226
+ request while the worker continues; a question or result can later wake the originating
227
+ parent conversation. Models and run budgets can be chosen separately for each role.
228
+
159
229
  `runTimeoutMs` sets a definition's run deadline; the existing default remains five
160
230
  minutes. `maxConcurrentRuns` limits that definition's simultaneous runs. Set runtime
161
231
  `execution.maxConcurrent` above the combined background limits to leave slots for
@@ -210,11 +280,11 @@ instead of bypassing it with process-global credentials.
210
280
  ## Management and retention
211
281
 
212
282
  ```ts
213
- const worker = client.subagent(assistantId, "research");
283
+ const worker = client.subagent(parentId, "analysis");
214
284
  const instance = await worker.ensure();
215
285
  await worker.send("Include these three companies.");
216
286
  const state = await worker.data();
217
- const children = await client.subagents(assistantId);
287
+ const children = await client.subagents(parentId);
218
288
  await worker.archive();
219
289
  await worker.resume();
220
290
  await worker.archive();
@@ -257,3 +327,11 @@ manage its lifecycle. The runtime exposes matching `subagent`, `listSubagents`,
257
327
  `POST /api/events` accepts `{ target: { agentId, conversationId }, event, policy? }`,
258
328
  matching `runtime.emitEvent` and `client.emitEvent`. It uses the same application
259
329
  request authorization as the rest of the HTTP API.
330
+
331
+ ## Complete worked example
332
+
333
+ The [realtime front and durable researcher walkthrough](https://glove.dterminal.net/foundry/docs/durable-subagents/realtime-example)
334
+ applies these primitives in a runnable project with persistent stores, memory/app
335
+ inheritance, direct messages, task delegation, delivery policies and restart checks.
336
+ Source: `examples/foundry-durable-research`. The ownership and delivery model above
337
+ applies regardless of how the agents receive work.
package/docs/execution.md CHANGED
@@ -61,6 +61,10 @@ Foundry stops Station and its resource adapters on shutdown, and cleans up on fa
61
61
 
62
62
  Programmatic `FoundryRuntime.discover` calls using a daemon adapter must supply `applicationFilePath`; closures are loaded in the child process, never serialized from the parent. Each Foundry runtime owns its Station instance. A fixed port must be unique per instance; omitting it avoids manual port allocation.
63
63
 
64
+ ## Kuiper's browsers and sandboxes, without a daemon
65
+
66
+ On [Kuiper](https://kuiper.sh), `glove-execution/kuiper` mounts Kuiper's browsers (real Chrome) and sandboxes through `@kuiper-sh/sdk`: `kuiperBrowser({ browsers: kuiper.browsers, … })` and `kuiperSandbox({ sandboxes: kuiper.sandboxes, … })`. They need no `stationDaemon`. A Kuiper session or sandbox belongs to the project rather than the process, so each run mounts it in `configure`, and the next run reconnects by the IDs the application kept, usually on the agent instance. The browser adapter takes a `guard` that sees every request the browser makes, and an `onHandOff` that gives a person Kuiper's live view for a sign-in. See the [glove-execution README](../../glove-execution/README.md#kuiper) and the personal-agent example.
67
+
64
68
  ## Optional capability mounts
65
69
 
66
70
  Browser and sandbox support is opt-in through `glove-execution`. Neither `glove-core` nor Foundry depends on that package. Use the same explicit mounting pattern as other Glove extensions, inside Foundry's existing `configure` hook:
package/docs/inspector.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Foundry inspector
2
2
 
3
- Run detail includes a **Conversation guidance** card when goals, facts, forms or
4
- custom context providers are mounted. It shows the latest observed progress,
5
- fact/claim counts and pending form effects, not a live database query. Answer
6
- values and fact bodies are excluded from this summary. See [guidance](./guidance.md).
3
+ The development server includes a runtime inspector. Most pages follow Foundry's ownership boundaries: definitions, instances, conversations, automations, integrations and workspaces. A run opens as a workbench modelled on a browser's DevTools:
7
4
 
8
- The development server includes a read-oriented runtime inspector. It is organized around Foundry's actual ownership boundaries rather than presenting every event on one screen.
5
+ - **Network** lists every model request and tool call.
6
+ - **Console** is the run's log.
7
+ - **Context** shows what the agent had to work with.
8
+ - **Summary** gives the outcome.
9
9
 
10
10
  ## Navigation
11
11
 
@@ -17,18 +17,137 @@ The development server includes a read-oriented runtime inspector. It is organiz
17
17
  | Agent instance | Which context, installations, playbooks, conversations, and runs belong to this persisted identity? |
18
18
  | Chat | What has this exact instance/conversation said, and how can I continue, stop, or redirect it? |
19
19
  | Runs | Which invocations occurred and what status, source, and attempt count did each have? |
20
- | Run detail | What observable phases and events produced this outcome? |
20
+ | Run | What did the model see and do at each step: requests, tool calls, log, context and outcome? |
21
21
  | Automations | Which schedules, sleeping runs, playbook listeners, and inbound application workers exist? |
22
22
  | Integrations | Which transmissions, safe account references, routes, and agent bindings form the external topology? |
23
23
  | Workspaces | Which shared entries, inbox items, tasks, and non-secret environment values are available? |
24
24
 
25
- Every detail view has a real URL. For example, `/agents/support-lead`, `/instances/<agent-id>`, `/chat/<conversation-id>?agent=<agent-id>`, and `/runs/<run-id>` can be bookmarked or opened directly; the Foundry server returns the inspector shell for non-API paths.
25
+ Every view has a real URL that can be bookmarked or opened directly, for example:
26
26
 
27
- The inspector and APIs share one authorization boundary. Loopback remains the
28
- development default. Foundry refuses a non-loopback bind without the application's
29
- `requestAuthorization` adapter; when configured, every HTML, API, health, and event
30
- stream request must pass it. The adapter owns credential/session validation and the
31
- browser challenge, while Foundry keeps credential values out of state and traces.
27
+ - `/agents/support-lead`
28
+ - `/instances/<agent-id>`
29
+ - `/chat/<conversation-id>?agent=<agent-id>`
30
+ - `/runs/<run-id>?item=<request>&pane=context`
31
+
32
+ The Foundry server returns the inspector shell for every path outside the API.
33
+
34
+ The inspector and APIs share one authorization boundary:
35
+
36
+ - Loopback remains the development default.
37
+ - Foundry refuses a non-loopback bind without the application's `requestAuthorization` adapter.
38
+ - When that adapter is configured, every HTML, API, health and event stream request must pass it.
39
+ - The adapter owns credential and session validation and the browser challenge. Foundry keeps credential values out of state and traces.
40
+
41
+ ## Following a run
42
+
43
+ Open **Runs**, then a run. A strip at the top gives its status, duration, number of model requests and tool calls, tokens and agent instance. Below it are four views:
44
+
45
+ - Switch between them with `1`–`4`.
46
+ - The view, the open request and its pane are all in the URL, so a link opens someone else on the same step.
47
+
48
+ The screenshots below are runs of Meta Muse, the [personal agent example](../../../examples/foundry-personal-agent), on Claude Sonnet 5.5 through OpenRouter. They use the example's sample accounts and its offline stand-in for Kuiper's browsers.
49
+
50
+ ### Network
51
+
52
+ ![The Network view: each model request and tool call of a run, with type, status, initiator, size, time and a waterfall](../../site/public/foundry/inspector/network.webp)
53
+
54
+ In this run Muse tries to book a restaurant:
55
+
56
+ 1. The Sentinel blocks a site Rosa hasn't allowed (the first red row).
57
+ 2. Rosa allows it with `request_access`.
58
+ 3. The page still fails to load. The model asked for HTTPS, and the offline demo serves its sample sites over plain HTTP.
59
+ 4. Midway, at #5, Glove compacts the conversation.
60
+ 5. The calls a REPL program makes sit under the `execute_js` call that ran them.
61
+
62
+ Each row is one model request (a square), one tool call (a circle), or a subagent. The columns:
63
+
64
+ | Column | Meaning |
65
+ | --- | --- |
66
+ | Name | `#1 request`, `#2 request`, … or the tool's name, with the model and message count, or the tool's input, underneath. |
67
+ | Type | `model`, `compaction`, `tool`, `repl call` (a tool called from inside a REPL program) or `subagent`. |
68
+ | Status | `ok`, `error`, `aborted`, `denied`, `pending`, or `approval` while a person hasn't decided. |
69
+ | Initiator | What led to the row. A request follows `run input` or the tools of the previous request (`after search`). A tool call comes from the request whose response asked for it. Click it to jump there. |
70
+ | Size | Tokens in → out for a model request; the size of the result for a tool. |
71
+ | Time and Waterfall | How long it took, and when, across the whole run. |
72
+
73
+ Filter rows by text (name, input, result or reply) and by **All**, **Model**, **Tools** or **Errors**. The footer totals requests, tool calls, tokens (and cache reads), and the time spent in the model and in tools.
74
+
75
+ Click a row, or walk them with `j` and `k`, to open it beside the list. `Esc` closes it. A model request has these panes:
76
+
77
+ | Pane | What it shows |
78
+ | --- | --- |
79
+ | Overview | Request id, model, status, start, duration, tokens and cache, stop reason, initiator, sizes, and links to the tool calls in its response. |
80
+ | Prompt | The system prompt this request was sent. |
81
+ | Messages | The conversation as this request sent it. Messages already sent earlier fold away, so what's new sits at the end. Tool calls and results show their JSON, and each links to its tool row. |
82
+ | Context | The runtime context added at the end of this request: memory, goals, forms, or any context provider. Each entry is marked new, changed or the same as the previous request. |
83
+ | Tools | Each tool the model was offered, with its description and input schema. |
84
+ | Response | What the model sent back, its stop reason and tokens, or the error that ended the request. |
85
+ | Raw | The recorded events. |
86
+
87
+ **Copy request** copies the request as JSON: model, system prompt, messages, runtime context and tools. Use it to replay a step against a model, or to attach it to an issue.
88
+
89
+ ![A model request open beside the list: the Messages pane shows the conversation the model was sent, with new messages at the end](../../site/public/foundry/inspector/request-messages.webp)
90
+
91
+ ![The Context pane: runtime context, such as memory, added at the end of this request](../../site/public/foundry/inspector/request-context.webp)
92
+
93
+ A tool call has these panes:
94
+
95
+ - **Overview**: call id, duration, the request that made it, and its approval (who decided, and when).
96
+ - **Input**: what the model passed.
97
+ - **Result**: status, message and data. JSON held inside a string opens as a tree.
98
+ - **Raw**: the recorded events.
99
+
100
+ ![A tool call that needed approval, open beside the list](../../site/public/foundry/inspector/tool-call.webp)
101
+
102
+ ### Console
103
+
104
+ ![The Console view: the run as a levelled log, with warnings and errors highlighted](../../site/public/foundry/inspector/console.webp)
105
+
106
+ The run as a log, one line per event:
107
+
108
+ - **Levels.** Errors and warnings are coloured: a failed tool, a run that failed or retried, stderr, an approval being waited on. **Default levels** hides verbose detail, such as assembly steps and streamed text. **All levels** shows it. You can also show only warnings and errors, or only errors.
109
+ - **Streamed text.** A streamed reply is one line, not one line per chunk.
110
+ - **Filters.** Filter by text and by source (`run`, `model`, `tool`, `stdout`, `stderr`, `assembly`, …).
111
+ - **Expanding a line.** Click a line to see its data as a tree and to copy it. Lines about a request or tool call have **Open in Network**.
112
+ - **Live runs.** While the run is live, the console stays at the bottom unless you have scrolled up.
113
+
114
+ ### Context
115
+
116
+ ![The Context view: system prompt, runtime context, tools and messages per request, then the run's input and output, the agent instance, and memory](../../site/public/foundry/inspector/context.webp)
117
+
118
+ Like DevTools' Application panel, a tree on the left and the selected item on the right:
119
+
120
+ | Group | Items |
121
+ | --- | --- |
122
+ | Model request | System prompt, runtime context, tools and messages. **As of** chooses which request; the latest is the default. When the run used more than one system prompt (a subagent has its own), each is listed with the requests that used it. |
123
+ | Run | The input it was given, and its output or error. |
124
+ | Agent | The instance's stored context, installations and playbooks, with links to the instance, workspace and conversation. |
125
+ | Memory | Goals, facts and forms (see [guidance](./guidance.md)), and the memory events the run recorded. What memory put in front of the model is in each request's runtime context. |
126
+
127
+ ### Summary
128
+
129
+ The run's phases (accepted, assembled, agent work, outcome), its recorded output and input, the slowest steps and every failed request or tool call, each linking to its row in Network. A failed run states its error at the top of the page, and pending approvals show there with their exact input. **Export trace** downloads the run and every event as JSON. **Run again** reopens the run drawer with the same instance and message.
130
+
131
+ The inspector shows what was observable: what was sent, called and returned. It doesn't show a model's hidden reasoning, and reasoning a provider asks to have echoed back isn't recorded.
132
+
133
+ ### What each model request records
134
+
135
+ Glove reports every model call to subscribers that ask for it, as `model_request` and `model_request_end` events. These carry the system prompt, messages, tools, outcome, response and tokens. A run records them compactly, because a long conversation would otherwise be copied into every request:
136
+
137
+ - The system prompt and the tool list are recorded in full the first time a run sends them, then by hash.
138
+ - Messages are recorded as a change against the previous request with the same system prompt: how many leading messages were kept, then the rest. The inspector puts each request's full list back together.
139
+ - Runtime context is recorded with every request, since it is worked out again each time.
140
+ - Text is cut at 16,000 characters and JSON at 16,000 characters; the system prompt is cut at 64,000.
141
+ - Images, video and documents become a placeholder with their type and name. A request records at most about 400 KB of messages, newest first; older ones are counted.
142
+ - `renderData` (which the model never sees) and echoed provider reasoning are left out.
143
+
144
+ Events are kept in memory, 10,000 by default (`observability.maxEvents`). A message whose request has aged out shows as *not retained*. To keep model requests out of the event stream entirely, set this in `foundry.config.ts`:
145
+
146
+ ```ts
147
+ export default defineConfig({ observability: { modelRequests: false } });
148
+ ```
149
+
150
+ Runs recorded before this, or with model requests off, still list their tool calls, model responses and log.
32
151
 
33
152
  ## Talking to an agent
34
153
 
@@ -53,19 +172,6 @@ is explicit in the URL, and every refresh reloads history from the server. New
53
172
  conversations take the first text turn as their initial title and can be renamed
54
173
  later without changing their stable conversation identity.
55
174
 
56
- ## Following a run
57
-
58
- Open **Runs**, then choose one invocation. The run detail starts with a four-phase spine:
59
-
60
- 1. Accepted: Foundry persisted the invocation and its source.
61
- 2. Assembled: context-dependent agent components were resolved and mounted.
62
- 3. Agent work: observable model and tool work occurred.
63
- 4. Completed, failed, cancelled, or still in progress.
64
-
65
- The event trace below the spine is collapsed by default. Each row carries its wall-clock time and its offset from the start of the run, so a slow phase is visible without arithmetic. Filter the trace by event category, expand an event when you need its adapter payload, and copy a payload straight from the expanded row. The inspector shows observable intent, actions, and outcomes; it does not expose a model's private hidden chain-of-thought.
66
-
67
- A failed run states its error above the spine rather than only inside the recorded output. A run that is still going says so and keeps a running duration. **Run again** reopens the run drawer with the same instance and message.
68
-
69
175
  ## Starting work
70
176
 
71
177
  Use **New run** from any page. Select a definition and either:
@@ -91,7 +197,7 @@ The **Runs** page keeps its filters in the query string, so any view is a link y
91
197
 
92
198
  The inspector subscribes to `/api/events` with server-sent events and also performs a low-frequency reconciliation. A busy run emits many events, so they are coalesced into one refresh rather than one repaint each.
93
199
 
94
- A refresh preserves what you are doing: scroll position, an expanded event, an open `Output` panel, and the text and caret in a filter box all survive it. Relative timestamps and the duration of an in-flight run tick every second without a repaint.
200
+ A refresh preserves what you are doing: scroll position (including each pane of a run), expanded and collapsed sections, and the text and caret in a filter box all survive it. A run's page fetches that run's own events, then only the new ones (`/api/runs/:id/events?after=<sequence>`), so a long run isn't cut short by the global event list. Relative timestamps and the duration of an in-flight run tick every second without a repaint.
95
201
 
96
202
  Press `Command-K` or `Control-K` to search pages, definitions, instances, and retained runs.
97
203
 
@@ -99,13 +205,14 @@ Press `Command-K` or `Control-K` to search pages, definitions, instances, and re
99
205
 
100
206
  | Key | Action |
101
207
  | --- | --- |
102
- | `j` / `k` | Move down and up the current list |
208
+ | `j` / `k` | Move down and up the current list; on a run's Network view, open the next or previous request |
209
+ | `1`–`4` | On a run: Summary, Network, Console, Context |
103
210
  | `Enter` or `o` | Open the highlighted row |
104
- | `/` | Focus the run filter, or open search elsewhere |
211
+ | `/` | Focus the filter (runs, Network, Console), or open search elsewhere |
105
212
  | `c` | Start a run |
106
213
  | `r` | Refresh runtime data |
107
214
  | `Command-K` / `Control-K` | Search |
108
- | `Escape` | Close the drawer or search |
215
+ | `Escape` | Close the drawer or search; on a run, close the open request, or leave a filter box |
109
216
  | `Command-Enter` | Submit the run drawer |
110
217
 
111
218
  Every truncated identifier in the inspector has a copy button, so the full run, instance, or conversation id is always retrievable.
@@ -119,6 +226,7 @@ The inspector is an API client and adds no hidden runtime state. Its primary rea
119
226
  - `POST /api/conversations/:id/messages` and `/api/runs/:id/cancel|steer`
120
227
  - `PATCH /api/conversations/:id` for an instance-owned title or context update
121
228
  - `/api/runs`, `/api/runs/:id`, and `/api/events`
229
+ - `/api/runs/:id/events`, with `?after=<sequence>` for only what's new, for one run's trace
122
230
  - `/api/activations` and `/api/playbook-subscriptions`
123
231
  - `/api/application-connections`
124
232
  - `/api/transmissions`, `/api/accounts`, `/api/routes`, and `/api/bindings`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glove-foundry",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "An Effect-native, file-routed framework for typed, observable Glove agent applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -77,18 +77,19 @@
77
77
  "station-client": "^3.0.0",
78
78
  "station-beacon": "^3.0.0",
79
79
  "station-broadcast": "^3.0.0",
80
- "glove-core": "4.6.0",
81
- "glove-facts": "0.1.7",
82
- "glove-lisp": "0.5.5",
83
- "glove-js": "0.5.5",
84
- "glove-mcp": "1.2.5",
85
- "glove-mesh": "0.2.2",
86
- "glove-memory": "2.3.2",
87
- "glove-python": "0.4.5",
88
- "glove-working-environment": "0.7.0",
89
- "glove-voice-s2s": "0.4.5"
80
+ "glove-core": "4.7.0",
81
+ "glove-js": "0.5.6",
82
+ "glove-facts": "0.1.8",
83
+ "glove-memory": "2.3.3",
84
+ "glove-mcp": "1.2.6",
85
+ "glove-lisp": "0.5.6",
86
+ "glove-python": "0.4.6",
87
+ "glove-mesh": "0.2.3",
88
+ "glove-voice-s2s": "0.4.6",
89
+ "glove-working-environment": "0.7.0"
90
90
  },
91
91
  "devDependencies": {
92
+ "@modelcontextprotocol/sdk": "^1.29.0",
92
93
  "@types/node": "^25.2.3",
93
94
  "@types/ws": "8.18.1",
94
95
  "tsup": "^8.5.1",
@@ -213,7 +213,7 @@ console.log((await run.wait()).output);
213
213
  | Overview | Is the runtime healthy, what is running, what needs attention |
214
214
  | Agents | Which definitions exist and which instances were provisioned |
215
215
  | Runs | Every invocation, with status, duration, and source |
216
- | Run detail | The phase spine and the full observable event trace |
216
+ | Run | Each model request (system prompt, messages, memory, tools) and tool call, the log, and the outcome |
217
217
  | Automations | Schedules, sleeping runs, playbook listeners, inbound workers |
218
218
  | Integrations | Transmissions, accounts, routes, and bindings |
219
219
  | Workspaces | Shared entries, inbox, tasks, and non-secret environment values |