@agentproto/runtime 2.10.1 → 2.11.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 CHANGED
@@ -65,7 +65,7 @@ The `/mcp` endpoint exposes the core toolset plus several opt-in / feature-gated
65
65
  | `terminal_start` / `terminal_input` / `terminal_output` / `terminal_kill` | Raw PTY sessions |
66
66
  | `session_list` / `session_tree` / `session_usage` / `session_restart` / `session_rename` | Session management |
67
67
  | `app_install` / `app_run` / `app_list` / `app_status` / `app_stop` / `app_apply` / `app_unapply` / `app_list_applied` | App-kit apps |
68
- | `app_data_read` / `app_data_write` / `app_data_list` / `app_data_migrate` | App-scoped durable data plane (new) |
68
+ | `app_data_read` / `app_data_write` / `app_data_list` / `app_data_migrate` | App-scoped durable data plane, anchored at the app's `dataDir` (default `<dir>/data`; `app_install {dataDir}`) |
69
69
  | `harness_preset_list` / `harness_preset_create` / `harness_preset_delete` / `harness_preset_set_default` | Persisted harness→auth-profile presets (new) |
70
70
  | `workspace_brain_query` / `workspace_brain_status` / `workspace_brain_ingest` | Per-workspace transcript recall (new) |
71
71
  | `conversation_export` | Export a daemon transcript to a target adapter's native store, e.g. `claude-code` (new) |
package/dist/index.d.ts CHANGED
@@ -557,15 +557,16 @@ interface ToolCallRecord {
557
557
  *
558
558
  * Deliberately dependency-free — a `SessionState`, two pure summarisers, one
559
559
  * regenerate/guard helper — so it can be BOTH:
560
- * - reused verbatim by `summarize_session` (agents-overview-app.ts re-exports
561
- * `summarizeLines` / `deriveSessionState` from here), and
560
+ * - reused verbatim by `summarize_session` (summarize-session-tool.ts
561
+ * imports `summarizeLines` / `deriveSessionState` from here), and
562
562
  * - imported by the session store (sessions.ts) to stamp `activitySummary`
563
563
  * onto the descriptor on turn-end, WITHOUT dragging the overview panel's
564
- * HTML bundle or the MCP-app wiring into the hot session path.
564
+ * HTML bundle (now @agentproto/apps/agents-overview) or the MCP-app
565
+ * wiring into the hot session path.
565
566
  *
566
- * HEURISTIC, no LLM: `@agentproto/runtime` has no inference client (see the
567
- * agents-overview-app.ts header for why a `ModelLike.complete` call is too
568
- * heavy today). `regenerateActivitySummary` is the documented swap point —
567
+ * HEURISTIC, no LLM: `@agentproto/runtime` has no inference client (see
568
+ * summarize-session-tool.ts's header for why a `ModelLike.complete` call is
569
+ * too heavy today). `regenerateActivitySummary` is the documented swap point —
569
570
  * replace its `summarizeLines`/`deriveSessionState` body with a
570
571
  * `ModelLike.complete({ system, prompt })` call to upgrade the line to a
571
572
  * semantic one; the trigger + `renamedByUser` guard contract and the
@@ -6351,6 +6352,7 @@ interface SpawnAgentInput {
6351
6352
  * reads its state.db keyed by the adapter session id). Omit for adapters
6352
6353
  * with no usage source. */
6353
6354
  readUsage?: () => Promise<{
6355
+ model?: string;
6354
6356
  costUsd?: number;
6355
6357
  tokensIn?: number;
6356
6358
  tokensOut?: number;
@@ -6400,6 +6402,7 @@ type PendingAgentOutcome = {
6400
6402
  resumable?: boolean;
6401
6403
  nativeTerminalResume?: boolean;
6402
6404
  readUsage?: () => Promise<{
6405
+ model?: string;
6403
6406
  costUsd?: number;
6404
6407
  tokensIn?: number;
6405
6408
  tokensOut?: number;
@@ -6781,6 +6784,7 @@ interface ReconcilerSession extends FooterSession {
6781
6784
  worktreePath?: string;
6782
6785
  openedPrs?: readonly {
6783
6786
  url: string;
6787
+ number?: number;
6784
6788
  }[];
6785
6789
  }
6786
6790
  /** The registry slice the reconciler needs — structurally satisfied by the full