@agentproto/runtime 5.13.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.
@@ -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;
@@ -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-DtkidPeI.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-Dq4mAphj.js';
5
5
  import '@agentproto/auth';
6
6
  import '@agentproto/acp';
7
7
  import '@agentproto/command-sandbox';
@@ -370,6 +370,17 @@ Context-continuity policy for this session — controls warning,
370
370
  opportunistic compaction, fresh-continuation, and hard-stop thresholds.
371
371
  Resolved from global → per-adapter → explicit override.
372
372
 
373
+ Every step that discards conversation context writes a checkpoint (goal,
374
+ plan, decisions, changed files, tests, errors, risks, next step) first: a
375
+ `/compact` or `/compress` prompt, the runtime's own auto-compaction, and the
376
+ context hard stop. If the checkpoint can't be written, compaction is refused
377
+ (the hard stop still happens, with a loud warning).
378
+
379
+ `compactRequiresOperator: true` reserves compaction to the operator: a
380
+ compaction prompt attributed to a session (`agent_prompt`, `session_compact`,
381
+ or the session itself) is refused; only an operator-originated prompt (HTTP,
382
+ CLI, UI) can compact. Default off.
383
+
373
384
  ## role
374
385
 
375
386
  Spawn-time role gating whether this child may itself delegate (spawn/drive
@@ -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.13.0",
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",
@@ -32,6 +32,11 @@
32
32
  "import": "./dist/index.mjs",
33
33
  "default": "./dist/index.mjs"
34
34
  },
35
+ "./app-mcp-server": {
36
+ "types": "./dist/app-mcp-server.d.ts",
37
+ "import": "./dist/app-mcp-server.mjs",
38
+ "default": "./dist/app-mcp-server.mjs"
39
+ },
35
40
  "./catalog-models": {
36
41
  "types": "./dist/catalog-models.d.ts",
37
42
  "import": "./dist/catalog-models.mjs",
@@ -185,43 +190,43 @@
185
190
  "zod": "^4.6.5",
186
191
  "@agentproto/a2a": "0.1.0",
187
192
  "@agentproto/acp": "0.10.0",
188
- "@agentproto/adapter-browser": "0.3.0",
189
- "@agentproto/app-client": "0.4.1",
190
- "@agentproto/app-kit": "1.6.2",
193
+ "@agentproto/adapter-browser": "0.3.2",
191
194
  "@agentproto/agent": "0.2.5",
192
- "@agentproto/auth": "1.1.2",
195
+ "@agentproto/app-client": "0.4.1",
196
+ "@agentproto/apps": "0.21.1",
197
+ "@agentproto/app-kit": "1.7.1",
193
198
  "@agentproto/command-sandbox": "0.3.0",
194
- "@agentproto/apps": "0.20.3",
195
- "@agentproto/driver-browser": "0.2.0",
196
- "@agentproto/driver": "0.3.0",
197
- "@agentproto/driver-http": "0.1.10",
198
- "@agentproto/driver-agent-cli": "2.8.0",
199
- "@agentproto/eval-reporters": "0.2.20",
200
- "@agentproto/governance-engine": "0.1.10",
201
- "@agentproto/llm-endpoint": "0.11.5",
199
+ "@agentproto/auth": "1.1.2",
200
+ "@agentproto/driver": "0.3.2",
201
+ "@agentproto/driver-agent-cli": "2.9.0",
202
+ "@agentproto/driver-browser": "0.2.2",
203
+ "@agentproto/eval-reporters": "0.2.22",
202
204
  "@agentproto/governance": "0.1.5",
205
+ "@agentproto/driver-http": "0.1.12",
206
+ "@agentproto/governance-engine": "0.1.12",
203
207
  "@agentproto/manifest": "0.2.3",
204
- "@agentproto/mcp-server": "0.6.1",
205
- "@agentproto/model-catalog": "0.12.0",
208
+ "@agentproto/mcp-server": "0.6.3",
206
209
  "@agentproto/pairing-host": "0.2.5",
207
- "@agentproto/plugin-local-browser": "0.3.2",
208
210
  "@agentproto/provider-kit": "0.4.6",
211
+ "@agentproto/llm-endpoint": "0.11.7",
209
212
  "@agentproto/provider-presets": "0.7.0",
210
- "@agentproto/providers-store": "0.3.23",
213
+ "@agentproto/providers-store": "0.3.25",
214
+ "@agentproto/redaction": "0.2.3",
211
215
  "@agentproto/review": "0.5.0",
212
216
  "@agentproto/routine": "0.3.1",
213
- "@agentproto/redaction": "0.2.3",
214
- "@agentproto/sandbox": "0.8.3",
217
+ "@agentproto/plugin-local-browser": "0.3.4",
215
218
  "@agentproto/secrets": "2.0.0",
216
- "@agentproto/telemetry-langfuse": "0.2.18",
217
- "@agentproto/workflow": "0.7.1",
218
- "@agentproto/tool": "0.4.0",
219
+ "@agentproto/telemetry-langfuse": "0.2.20",
220
+ "@agentproto/tool": "0.5.1",
219
221
  "@agentproto/workflow-loader": "0.2.5",
220
- "@agentproto/workflow-runtime": "0.16.0",
221
- "@agentproto/workspace-brain": "0.5.0"
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"
222
227
  },
223
228
  "optionalDependencies": {
224
- "@agentproto/sandbox-e2b": "0.5.15"
229
+ "@agentproto/sandbox-e2b": "0.5.17"
225
230
  },
226
231
  "devDependencies": {
227
232
  "@types/node": "^25.9.5",