@agentproto/runtime 5.14.0 → 5.15.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/index.d.ts +349 -219
- package/dist/index.mjs +367 -66
- package/dist/index.mjs.map +1 -1
- package/dist/{sessions-DtkidPeI.d.ts → sessions-Dq4mAphj.d.ts} +2 -0
- package/dist/user-presets.d.ts +1 -1
- package/docs/mcp-tools/session_list.md +66 -0
- package/package.json +25 -25
|
@@ -1029,6 +1029,8 @@ declare function policyToActivities(policy: ActivityPolicySlice): ActivityRecord
|
|
|
1029
1029
|
*/
|
|
1030
1030
|
interface ActivityTurnSession {
|
|
1031
1031
|
id: string;
|
|
1032
|
+
title?: string;
|
|
1033
|
+
label?: string;
|
|
1032
1034
|
kind?: string;
|
|
1033
1035
|
status?: string;
|
|
1034
1036
|
startedAt: string;
|
package/dist/user-presets.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'zod';
|
|
2
2
|
import './session-config-B3PRyxlI.js';
|
|
3
3
|
import './spawn-defaults-CTi2g-Zr.js';
|
|
4
|
-
export { c9 as RecentSpawnConfig, U as UserPreset, bc as UserPresetsFile, bt as deleteUserPreset, ca as deriveRecentSpawnConfigs, bA as getUserPreset, bG as listUserPresets, bI as loadUserPresets, c4 as saveUserPreset, cb as touchUserPreset, cc as userPresetSchema, c7 as userPresetsPath } from './sessions-
|
|
4
|
+
export { c9 as RecentSpawnConfig, U as UserPreset, bc as UserPresetsFile, bt as deleteUserPreset, ca as deriveRecentSpawnConfigs, bA as getUserPreset, bG as listUserPresets, bI as loadUserPresets, c4 as saveUserPreset, cb as touchUserPreset, cc as userPresetSchema, c7 as userPresetsPath } from './sessions-Dq4mAphj.js';
|
|
5
5
|
import '@agentproto/auth';
|
|
6
6
|
import '@agentproto/acp';
|
|
7
7
|
import '@agentproto/command-sandbox';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# session_list
|
|
2
|
+
|
|
3
|
+
List the sessions the daemon tracks. A busy daemon holds hundreds, mostly
|
|
4
|
+
noise (review lanes, workflow stages, finished one-shot commands), so narrow
|
|
5
|
+
server-side before reading. All filters are optional and AND together; rows
|
|
6
|
+
come back newest-activity first (`lastActivityAt`, falling back to
|
|
7
|
+
`startedAt`) and `total` is the size of the filtered set, before `limit`.
|
|
8
|
+
|
|
9
|
+
The same names work on `GET /sessions` (query params) and the CLI
|
|
10
|
+
(`agentproto sessions --q … --exclude-noise …`).
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{ "q": "checkout", "excludeNoise": true, "limit": 10 }
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## filters
|
|
17
|
+
|
|
18
|
+
| Filter | Meaning |
|
|
19
|
+
|---|---|
|
|
20
|
+
| `q` | case-insensitive substring over id, name, label, title and cwd |
|
|
21
|
+
| `excludeNoise` | preset, see the `excludeNoise` topic |
|
|
22
|
+
| `excludeLabelPrefix` | drop sessions whose label starts with any of these (string or list) |
|
|
23
|
+
| `excludeLabels` | drop sessions whose label equals any of these exactly (`session_follow`'s `exclude.labels`) |
|
|
24
|
+
| `excludeKinds` | drop `terminal` / `agent-cli` / `command` |
|
|
25
|
+
| `rootOnly` | only sessions with no parent (`session_follow`'s `selector.rootOnly`) |
|
|
26
|
+
| `parentSessionId` | only direct children of this session (id or name) |
|
|
27
|
+
| `updatedSince` | last activity (else start) at/after an ISO-8601 time or relative age `30m`, `24h`, `7d`, `2w` |
|
|
28
|
+
| `startedSince` | started at/after, same formats |
|
|
29
|
+
|
|
30
|
+
A malformed `updatedSince` / `startedSince` returns an error result (HTTP 400
|
|
31
|
+
`invalid_filter`), never a silently empty list.
|
|
32
|
+
|
|
33
|
+
## excludeNoise
|
|
34
|
+
|
|
35
|
+
Drops exactly:
|
|
36
|
+
|
|
37
|
+
1. sessions labelled `review:*` or with origin `review`;
|
|
38
|
+
2. sessions labelled `wf:*` or with origin `workflow`;
|
|
39
|
+
3. ended (`exited` / `killed`) one-shot runs: `kind: "command"`, or a
|
|
40
|
+
`terminal` with no agent adapter (`bash -lc …`, `node script.mjs`).
|
|
41
|
+
|
|
42
|
+
Keeps live sessions, errored ones, every other agent session (ended ones
|
|
43
|
+
included) and agent TUIs such as `claude`. Default false.
|
|
44
|
+
|
|
45
|
+
## stats and memory
|
|
46
|
+
|
|
47
|
+
`stats: true | "full"` adds per-live-session RSS, %CPU, process count and the
|
|
48
|
+
top commands by RSS (normalized: `pnpm install`, `vitest`, `tsc`, `git`, …)
|
|
49
|
+
under each row's `stats`; `"full"` also lists every process (pid, ppid,
|
|
50
|
+
command, RSS, CPU, elapsed). Sampled on demand and cached ~3s; rows with no
|
|
51
|
+
live process carry no `stats`. `withMemory: true` adds `rssBytes` (summed RSS
|
|
52
|
+
of the process tree via `ps`, one spawn per call). For the host-level view
|
|
53
|
+
(daemon / provisioning / orphan buckets, load, free memory) use
|
|
54
|
+
`session_stats`.
|
|
55
|
+
|
|
56
|
+
## output
|
|
57
|
+
|
|
58
|
+
Compact projection by default (id, kind, name, label, status, command, cwd,
|
|
59
|
+
model, busy, awaitingInput, blockedOn, lastActivityAt, depth,
|
|
60
|
+
parentSessionId, continuedFrom, lastTurnErroredAt, interrupted);
|
|
61
|
+
`interrupted: true` marks a session a daemon restart cut off mid-turn (see
|
|
62
|
+
`session_continue_interrupted`). `fields:[…]` keeps only some keys per row
|
|
63
|
+
(honoured with or without `limit`), `full:true` returns the whole descriptor.
|
|
64
|
+
`kind:"command"` rows are hidden unless asked for (`kind:"command"` or
|
|
65
|
+
`includeCommands:true`). For ranked text search over past sessions' index
|
|
66
|
+
sidecars use `session_search`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/runtime",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.0",
|
|
4
4
|
"description": "@agentproto/runtime — long-running gateway that turns an agentproto workspace into a live runtime. Composes @agentproto/mcp-server (CRUD verbs) with HTTP transport, HEARTBEAT.md autonomy loop, and append-only conversation persistence. Drop a workspace dir, point your MCP client at it, and the agent ticks on its own.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -188,45 +188,45 @@
|
|
|
188
188
|
"gray-matter": "^4.0.3",
|
|
189
189
|
"ws": "^8.21.3",
|
|
190
190
|
"zod": "^4.6.5",
|
|
191
|
-
"@agentproto/acp": "0.10.0",
|
|
192
191
|
"@agentproto/a2a": "0.1.0",
|
|
193
|
-
"@agentproto/
|
|
192
|
+
"@agentproto/acp": "0.10.0",
|
|
193
|
+
"@agentproto/adapter-browser": "0.3.2",
|
|
194
194
|
"@agentproto/agent": "0.2.5",
|
|
195
195
|
"@agentproto/app-client": "0.4.1",
|
|
196
|
-
"@agentproto/apps": "0.21.
|
|
197
|
-
"@agentproto/
|
|
196
|
+
"@agentproto/apps": "0.21.1",
|
|
197
|
+
"@agentproto/app-kit": "1.7.1",
|
|
198
198
|
"@agentproto/command-sandbox": "0.3.0",
|
|
199
|
-
"@agentproto/
|
|
200
|
-
"@agentproto/driver
|
|
201
|
-
"@agentproto/driver-http": "0.1.11",
|
|
202
|
-
"@agentproto/eval-reporters": "0.2.21",
|
|
203
|
-
"@agentproto/governance": "0.1.5",
|
|
204
|
-
"@agentproto/governance-engine": "0.1.11",
|
|
199
|
+
"@agentproto/auth": "1.1.2",
|
|
200
|
+
"@agentproto/driver": "0.3.2",
|
|
205
201
|
"@agentproto/driver-agent-cli": "2.9.0",
|
|
206
|
-
"@agentproto/
|
|
202
|
+
"@agentproto/driver-browser": "0.2.2",
|
|
203
|
+
"@agentproto/eval-reporters": "0.2.22",
|
|
204
|
+
"@agentproto/governance": "0.1.5",
|
|
205
|
+
"@agentproto/driver-http": "0.1.12",
|
|
206
|
+
"@agentproto/governance-engine": "0.1.12",
|
|
207
207
|
"@agentproto/manifest": "0.2.3",
|
|
208
|
-
"@agentproto/mcp-server": "0.6.
|
|
209
|
-
"@agentproto/model-catalog": "0.12.1",
|
|
208
|
+
"@agentproto/mcp-server": "0.6.3",
|
|
210
209
|
"@agentproto/pairing-host": "0.2.5",
|
|
211
|
-
"@agentproto/plugin-local-browser": "0.3.3",
|
|
212
210
|
"@agentproto/provider-kit": "0.4.6",
|
|
213
|
-
"@agentproto/
|
|
211
|
+
"@agentproto/llm-endpoint": "0.11.7",
|
|
214
212
|
"@agentproto/provider-presets": "0.7.0",
|
|
215
|
-
"@agentproto/
|
|
213
|
+
"@agentproto/providers-store": "0.3.25",
|
|
216
214
|
"@agentproto/redaction": "0.2.3",
|
|
215
|
+
"@agentproto/review": "0.5.0",
|
|
217
216
|
"@agentproto/routine": "0.3.1",
|
|
218
|
-
"@agentproto/
|
|
217
|
+
"@agentproto/plugin-local-browser": "0.3.4",
|
|
219
218
|
"@agentproto/secrets": "2.0.0",
|
|
220
|
-
"@agentproto/
|
|
221
|
-
"@agentproto/
|
|
222
|
-
"@agentproto/workflow": "0.7.1",
|
|
223
|
-
"@agentproto/app-kit": "1.7.0",
|
|
219
|
+
"@agentproto/telemetry-langfuse": "0.2.20",
|
|
220
|
+
"@agentproto/tool": "0.5.1",
|
|
224
221
|
"@agentproto/workflow-loader": "0.2.5",
|
|
225
|
-
"@agentproto/
|
|
226
|
-
"@agentproto/workflow
|
|
222
|
+
"@agentproto/workflow-runtime": "0.17.1",
|
|
223
|
+
"@agentproto/workflow": "0.7.1",
|
|
224
|
+
"@agentproto/workspace-brain": "0.5.2",
|
|
225
|
+
"@agentproto/sandbox": "0.8.5",
|
|
226
|
+
"@agentproto/model-catalog": "0.12.2"
|
|
227
227
|
},
|
|
228
228
|
"optionalDependencies": {
|
|
229
|
-
"@agentproto/sandbox-e2b": "0.5.
|
|
229
|
+
"@agentproto/sandbox-e2b": "0.5.17"
|
|
230
230
|
},
|
|
231
231
|
"devDependencies": {
|
|
232
232
|
"@types/node": "^25.9.5",
|