@rynx-ai/runtime 0.1.11-beta.24 → 0.1.11-beta.26

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/host.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ResolvedExecutionSnapshot, type ResolvedExecutionBudget, type RuntimeUserInput, type LiveSessionFailure, type SessionWorkspaceSnapshot, type SessionInteractionResolution, type SessionEvent } from "@rynx-ai/core";
1
+ import { type ResolvedExecutionSnapshot, type ResolvedExecutionBudget, type RuntimeTurnOptions, type RuntimeUserInput, type SessionCollaborationMode, type LiveSessionFailure, type SessionWorkspaceSnapshot, type SessionInteractionResolution, type SessionEvent } from "@rynx-ai/core";
2
2
  import { type AgentRuntimeId } from "@rynx-ai/core";
3
3
  import { type AppConfig } from "@rynx-ai/core";
4
4
  import { createCodexChildEnv } from "./codex-child-env.js";
@@ -189,6 +189,13 @@ export declare class LocalAgentHost implements CodexCapabilities {
189
189
  private createAppServerClient;
190
190
  /** Resolve a pending native question/approval without opening a new Turn. */
191
191
  resolveInteraction(localThreadId: string, interactionId: string, resolution: SessionInteractionResolution): Promise<ResolveInteractionResult>;
192
+ /** Apply collaboration mode to an already-loaded Codex-lineage thread. The
193
+ * caller persists only after this native RPC succeeds. */
194
+ updateCollaborationMode(localThreadId: string, mode: SessionCollaborationMode): Promise<void>;
195
+ /** Apply one explicit collaboration mode to the current native thread and
196
+ * remember only a successful RPC. A supplied client is already initialized
197
+ * and remains owned by its caller (used by cold-resume preload). */
198
+ private applyLiveCollaborationMode;
192
199
  /**
193
200
  * The command to run in a session's live terminal so it co-drives the codex
194
201
  * app-server thread (Phase D). Returns `null` when live-terminal is off, the
@@ -227,7 +234,7 @@ export declare class LocalAgentHost implements CodexCapabilities {
227
234
  * Fresh sessions already connected their discovery listener before launch;
228
235
  * this is therefore an idempotent no-op for them and for a healthy observer. */
229
236
  startLiveCodexObserver(localThreadId: string): void;
230
- /** Omnigent treats the forwarder as a required component of one native
237
+ /** reference implementation treats the forwarder as a required component of one native
231
238
  * lifecycle: if its transport dies, it closes the app-server instead of
232
239
  * accepting turns that can no longer reach the canonical mirror. */
233
240
  private failObserverLifecycle;
@@ -237,7 +244,7 @@ export declare class LocalAgentHost implements CodexCapabilities {
237
244
  * Subscribe the forwarder connection to a thread (reference implementation's
238
245
  * `_subscribe_until_ready`). A fresh TUI thread has no rollout until its first
239
246
  * turn, so `thread/resume` is retried: park until the forwarder observes the
240
- * thread active, then retry. Like Omnigent, the first attempt always uses
247
+ * thread active, then retry. Like reference implementation, the first attempt always uses
241
248
  * `excludeTurns`: a known-session cold resume therefore never reconstructs
242
249
  * historical running/completed state. Only a fresh thread whose first attempt
243
250
  * failed as not-ready retries without `excludeTurns`, backfilling the newly
@@ -273,7 +280,7 @@ export declare class LocalAgentHost implements CodexCapabilities {
273
280
  * forwarder). Park-until-ready (~60s), aligning reference implementation's executor waiting for
274
281
  * the bridge instead of a short race that falls back to a second output path.
275
282
  */
276
- injectMessage(localThreadId: string, input: RuntimeUserInput | string): Promise<InjectResult>;
283
+ injectMessage(localThreadId: string, input: RuntimeUserInput | string, options?: RuntimeTurnOptions): Promise<InjectResult>;
277
284
  /**
278
285
  * Interrupt the session's active turn — the web Stop button. codex: the
279
286
  * app-server `turn/interrupt` on the active `{threadId, turnId}` (exactly what
@@ -288,7 +295,7 @@ export declare class LocalAgentHost implements CodexCapabilities {
288
295
  deferClaudeInteractionCleanup?: boolean;
289
296
  }): void;
290
297
  /** Tear down one codex-lineage native runtime without deleting its durable
291
- * session-store binding. Omnigent couples its auxiliary Terminal, observer,
298
+ * session-store binding. reference implementation couples its auxiliary Terminal, observer,
292
299
  * forwarder and per-session app-server as one disposable runtime envelope;
293
300
  * the next message recreates that envelope and cold-resumes the native id. */
294
301
  teardownLiveCodexSession(localThreadId: string, error?: Error): boolean;
@@ -321,8 +328,9 @@ export declare class LocalAgentHost implements CodexCapabilities {
321
328
  * would fail and (pre-reference implementation) fall through to a second output path. */
322
329
  private waitInjector;
323
330
  /** Attach a session's tmux pane injector (from the runner-child, which owns the
324
- * terminal registry — the host does not hold tmux). Ignored for codex sessions
325
- * (they inject via the app-server). Idempotent. */
331
+ * terminal registry — the host does not hold tmux). Claude uses it for normal
332
+ * message injection; Codex uses it only to dismiss the exact TUI-local Plan
333
+ * picker after its synthetic Web form is submitted. Idempotent. */
326
334
  attachTerminalInjector(localThreadId: string, injector: TerminalInjector): void;
327
335
  /** Close an active native response when its terminal or runner disappears. */
328
336
  failLiveSession(localThreadId: string, error: Error): boolean;