@runuai/host 0.9.5 → 0.9.7

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.
@@ -107,6 +107,13 @@ export type AgentEvent =
107
107
  | { type: "message_complete"; text: string }
108
108
  /** The agent invoked a tool / ran a command. Rendered as a card. */
109
109
  | { type: "tool_call"; id: string; title: string; detail: string }
110
+ /** ADR-083: the designated secretary invoked Uai's typed dispatch tool. */
111
+ | {
112
+ type: "dispatch";
113
+ dispatchId: string;
114
+ recipients: string[];
115
+ instruction: string;
116
+ }
110
117
  /** The agent needs approval before proceeding. */
111
118
  | { type: "permission_request"; id: string; title: string; detail: string }
112
119
  /** The agent addressed another agent — uai routes this as a peer message. */
@@ -168,6 +175,10 @@ export interface AgentSessionFactory {
168
175
  /** Host-derived restricted execution policy (ADR-083). Never supplied by
169
176
  * the browser or stored on the roster entry. */
170
177
  executionProfile?: "communicator";
178
+ /** Durable runners are keyed by task+agent. A host-owned policy change
179
+ * supplies a new key so restart recovery replaces, rather than attaches,
180
+ * a process launched with incompatible argv/preamble/tooling. */
181
+ attachCompatibilityKey?: string;
171
182
  /** ADR-048: extra per-agent env for the `docker exec` (e.g. this agent's
172
183
  * own UAI_TASK_TOKEN so its `uai` CLI carries only its own permissions). */
173
184
  agentEnv?: Record<string, string>;