@agentproto/runtime 4.0.0 → 5.1.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/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SpawnDefaultsConfig } from './spawn-defaults-CZj39Znq.js';
1
+ import { S as SpawnDefaultsConfig } from './spawn-defaults-wQV9AeiG.js';
2
2
  import './context-continuity-Bn99UtVC.js';
3
3
  import '@agentproto/acp';
4
4
  import '@agentproto/command-sandbox';
@@ -70,6 +70,18 @@ interface DaemonConfig {
70
70
  * `agentproto config set daemon.resumeSessionsOnBoot true`. Surfaced in
71
71
  * `daemon_health` / `GET /health`. */
72
72
  resumeSessionsOnBoot?: boolean;
73
+ /** Opt-in continue-on-boot (continue-interrupted). When true, right after
74
+ * the eager resume pass, the boot sends a "the daemon restarted mid-turn,
75
+ * check the state on disk and continue" prompt to every session the LAST
76
+ * restart interrupted mid-turn (`interrupted: true`) that is resumable,
77
+ * under the resume cap, idle, and whose resume didn't fail. Never loops: at
78
+ * most one auto-continue per restart and `MAX_AUTO_CONTINUE_ATTEMPTS` in a
79
+ * row without a successful turn-end. Default false — the interrupted prompt
80
+ * itself is never auto-retried, and a continue prompt is still a prompt
81
+ * (tokens, side effects), so it's opt-in. The manual
82
+ * `session_continue_interrupted` verb works regardless. Set via
83
+ * `agentproto config set daemon.continueInterruptedOnBoot true`. */
84
+ continueInterruptedOnBoot?: boolean;
73
85
  /** Idle agent-session reaper (PR-6). When set to a positive number of
74
86
  * milliseconds, the daemon periodically retires agent-cli sessions that have
75
87
  * been idle (not busy, not awaiting input, `status:"running"`) longer than
@@ -171,6 +183,16 @@ interface FeaturesConfig {
171
183
  * an opt-in feature; when off, the `llm-endpoint` custom route is not
172
184
  * registered and the `llm_endpoint_*` MCP tools are not exposed. */
173
185
  llmEndpoint?: boolean;
186
+ /** Expose this daemon's local inference endpoint(s) (the `llmEndpoint`
187
+ * sidecar above) to paired controllers over a HOST-scoped pairing —
188
+ * `GET /device-inference/v1/models` + `POST
189
+ * /device-inference/v1/chat/completions` in http-server.ts. Default
190
+ * false: even with `llmEndpoint` on, a plain remote-control pairing (or
191
+ * `serve --connect`) never gets these routes regardless of this flag —
192
+ * it also requires the pairing itself to be host-scoped (`pair offer
193
+ * --host` + `devices add`). Toggle via `agentproto devices
194
+ * share-inference on|off`. */
195
+ deviceInferenceShare?: boolean;
174
196
  }
175
197
  /**
176
198
  * Policy for `agentproto worktree new` (PLAN.md §1.4 — config carries
@@ -298,6 +320,19 @@ interface ProvenanceConfig {
298
320
  /** Enable the opt-in `gh` provenance PATH shim for spawned sessions. */
299
321
  wrapGh?: boolean;
300
322
  }
323
+ /**
324
+ * Sentinel auto-link policy (AIP-60 §6, step 4) — whether a PR an executor
325
+ * session opens gets a sentinel created for it automatically.
326
+ */
327
+ interface SentinelConfig {
328
+ /** Auto-watch a PR when a session opens one (`recordOpenedPr`, fed by
329
+ * `command_execute`'s stamper and both `pr-provenance-reconciler.ts`
330
+ * lanes). When unset, the daemon defaults to `true` only when the
331
+ * `local-gh` provider is available (i.e. `gh auth status` succeeds) —
332
+ * otherwise `false`, logged once. Explicitly setting this always wins
333
+ * over that probe. Per-spawn opt-out: `agent_start.sentinel: false`. */
334
+ autoWatchPrs?: boolean;
335
+ }
301
336
  /**
302
337
  * Session-presence policy — how the dashboard triages a session into its
303
338
  * `running` / `tending` / `attention` / `quiet` presence state (see
@@ -480,6 +515,8 @@ interface AgentprotoConfig {
480
515
  sessions?: SessionsConfig;
481
516
  /** Provenance policy — the opt-in `gh` PATH shim. See {@link ProvenanceConfig}. */
482
517
  provenance?: ProvenanceConfig;
518
+ /** Sentinel auto-link policy. See {@link SentinelConfig}. */
519
+ sentinel?: SentinelConfig;
483
520
  /** Daemon-side AGENTS.md resolution/injection policy. See {@link AgentsMdConfig}. */
484
521
  agentsMd?: AgentsMdConfig;
485
522
  /** Daemon-side session titler (`session-titler.ts`). DEFAULT OFF — when
@@ -552,4 +589,4 @@ declare function getConfigKey(cfg: AgentprotoConfig, dotted: string): unknown;
552
589
  */
553
590
  declare function setConfigKey(cfg: AgentprotoConfig, dotted: string, value: unknown): AgentprotoConfig;
554
591
 
555
- export { type AcpAgentConfigEntry, type AgentprotoConfig, type AgentsMdConfig, CONFIG_FILE_PATH, CONFIG_VERSION, type DaemonConfig, type FeaturesConfig, type PairingConfig, type ProfileConfig, type ProvenanceConfig, type SessionsConfig, type SpawnAttachMode, type SpawnConfig, type SpawnDedupeMode, type TerminalPreset, type TitlerConfig, type TunnelConfig, type WorktreeIsolationMode, type WorktreesConfig, getConfigKey, loadConfig, saveConfig, setConfigKey };
592
+ export { type AcpAgentConfigEntry, type AgentprotoConfig, type AgentsMdConfig, CONFIG_FILE_PATH, CONFIG_VERSION, type DaemonConfig, type FeaturesConfig, type PairingConfig, type ProfileConfig, type ProvenanceConfig, type SentinelConfig, type SessionsConfig, type SpawnAttachMode, type SpawnConfig, type SpawnDedupeMode, type TerminalPreset, type TitlerConfig, type TunnelConfig, type WorktreeIsolationMode, type WorktreesConfig, getConfigKey, loadConfig, saveConfig, setConfigKey };