@agentproto/runtime 3.5.0 → 4.0.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,6 +1,8 @@
1
- import { S as SpawnDefaultsConfig } from './spawn-defaults-CwI9Puwy.js';
1
+ import { S as SpawnDefaultsConfig } from './spawn-defaults-CZj39Znq.js';
2
+ import './context-continuity-Bn99UtVC.js';
3
+ import '@agentproto/acp';
4
+ import '@agentproto/command-sandbox';
2
5
  import '@agentproto/model-catalog';
3
- import './context-continuity-ib9_bVYM.js';
4
6
 
5
7
  /**
6
8
  * `~/.agentproto/config.json` — single hand-editable JSON for the
@@ -127,6 +129,15 @@ interface DaemonConfig {
127
129
  * `GET /health`. */
128
130
  turnStallAfterMs?: number;
129
131
  }
132
+ interface TitlerConfig {
133
+ /** Enable the daemon-side session titler. Default false. */
134
+ enabled?: boolean;
135
+ /** OpenRouter model id used to generate titles. Default
136
+ * `z-ai/glm-5.2@openrouter`. Requires `OPENROUTER_API_KEY` in the
137
+ * daemon's environment; without a key the titler falls back to the
138
+ * local (first-prompt-line) title. */
139
+ model?: string;
140
+ }
130
141
  interface TunnelConfig {
131
142
  /** Cloud WS URL. When set + autoconnect=true, `agentproto serve`
132
143
  * bootstraps with `--connect <host>`. */
@@ -350,6 +361,12 @@ interface PairingConfig {
350
361
  * persisted pairing on boot (so a paired client can reconnect anytime).
351
362
  * Mirrors `tunnel.autoconnect`. Default true when a rendezvous is set. */
352
363
  autoconnect?: boolean;
364
+ /** Web pair page for `pair offer --qr` (the offer rides in its fragment).
365
+ * A template with `{fp}` in the HOSTNAME, filled with the daemon
366
+ * fingerprint (one origin per daemon), or a plain http(s) URL (one shared
367
+ * origin). Unset → `https://{fp}.agentproto.cloud/pair`. `--pair-page`
368
+ * overrides it. */
369
+ pairPage?: string;
353
370
  }
354
371
  /**
355
372
  * A user-defined generic ACP agent — the config-file half of
@@ -465,6 +482,19 @@ interface AgentprotoConfig {
465
482
  provenance?: ProvenanceConfig;
466
483
  /** Daemon-side AGENTS.md resolution/injection policy. See {@link AgentsMdConfig}. */
467
484
  agentsMd?: AgentsMdConfig;
485
+ /** Daemon-side session titler (`session-titler.ts`). DEFAULT OFF — when
486
+ * `enabled` is not explicitly true the titler is a complete no-op and
487
+ * nothing renames anything. When on, at the end of the FIRST completed
488
+ * turn of a `kind:"agent-cli"` session whose label is still a spawn
489
+ * default (`chat-starter`, `chat-starter-autoprompt`, `agentproto`, empty,
490
+ * or equal to the derived title), the daemon generates a short prosaic
491
+ * title (4-8 words) from the first turn's transcript and renames the
492
+ * session via the same write path as `session_rename`. Generation tries
493
+ * OpenRouter (`model`, default `z-ai/glm-5.2@openrouter`, needs
494
+ * `OPENROUTER_API_KEY`) and falls back locally (first line of the first
495
+ * user prompt, 6 whole words) on any failure. A user-created label is
496
+ * NEVER overwritten, and a session is titled at most once. */
497
+ titler?: TitlerConfig;
468
498
  /** Named connection profiles. See `ProfileConfig` for the merge
469
499
  * semantics — a profile's fields shallow-override the top-level
470
500
  * defaults for the selected run. */
@@ -522,4 +552,4 @@ declare function getConfigKey(cfg: AgentprotoConfig, dotted: string): unknown;
522
552
  */
523
553
  declare function setConfigKey(cfg: AgentprotoConfig, dotted: string, value: unknown): AgentprotoConfig;
524
554
 
525
- 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 TunnelConfig, type WorktreeIsolationMode, type WorktreesConfig, getConfigKey, loadConfig, saveConfig, setConfigKey };
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 };