@rynx-ai/runtime 0.1.11-beta.37 → 0.1.11-beta.39
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/claude/native-bridge.d.ts +85 -0
- package/dist/claude/native-bridge.js +335 -17
- package/dist/claude/native-hook-main.js +18 -1
- package/dist/claude/native-hooks.js +7 -0
- package/dist/claude/native-integration.d.ts +120 -18
- package/dist/claude/native-integration.js +1200 -161
- package/dist/claude/transcript-clone.d.ts +18 -0
- package/dist/claude/transcript-clone.js +497 -0
- package/dist/claude/transcript.d.ts +27 -4
- package/dist/claude/transcript.js +131 -30
- package/dist/codex-session-store.d.ts +23 -0
- package/dist/codex-session-store.js +21 -0
- package/dist/host.d.ts +31 -2
- package/dist/host.js +551 -72
- package/dist/runner/child.d.ts +29 -5
- package/dist/runner/child.js +635 -54
- package/dist/runner/manager.d.ts +25 -0
- package/dist/runner/manager.js +805 -115
- package/dist/runner/protocol.d.ts +76 -3
- package/dist/runner/transport.d.ts +9 -0
- package/dist/runner/transport.js +39 -12
- package/package.json +2 -2
package/dist/runner/manager.d.ts
CHANGED
|
@@ -194,6 +194,12 @@ export declare class RunnerManager implements AgentCapabilities {
|
|
|
194
194
|
private stopPromise;
|
|
195
195
|
/** Sink for mirrored {@link SessionEvent}s from every session's forwarder. */
|
|
196
196
|
private mirrorListener;
|
|
197
|
+
/** Settles process-local projections only when an ordinary durable item has
|
|
198
|
+
* exhausted its permanent retry budget. */
|
|
199
|
+
private mirrorAbandonListener;
|
|
200
|
+
/** Clears process-live optimistic state when /clear permanently moves the
|
|
201
|
+
* native pane away from the old Session. */
|
|
202
|
+
private mirrorSupersedeListener;
|
|
197
203
|
/** Synchronous persistence hook for native collaboration-mode reflection.
|
|
198
204
|
* It runs before the event reaches the Session bus. */
|
|
199
205
|
private collaborationModeListener;
|
|
@@ -244,6 +250,8 @@ export declare class RunnerManager implements AgentCapabilities {
|
|
|
244
250
|
* server wires this to `persistSessionEvent` (bus + canonical log).
|
|
245
251
|
*/
|
|
246
252
|
onMirror(listener: (sessionId: string, event: SessionEvent) => void | Promise<void>): void;
|
|
253
|
+
onMirrorAbandon(listener: (sessionId: string, token: string) => void): void;
|
|
254
|
+
onMirrorSupersede(listener: (sessionId: string) => void): void;
|
|
247
255
|
onCollaborationMode(listener: (sessionId: string, mode: SessionCollaborationMode) => void): void;
|
|
248
256
|
/** Register the sink for session rotations (claude `/clear`·`/fork`): the server
|
|
249
257
|
* records the new session's meta (carry-over agent/model/title). */
|
|
@@ -346,8 +354,19 @@ export declare class RunnerManager implements AgentCapabilities {
|
|
|
346
354
|
private reservedForkTarget;
|
|
347
355
|
private deliverForkBufferedMessage;
|
|
348
356
|
private deliverMirrorMessage;
|
|
357
|
+
private releaseMirrorDelivery;
|
|
349
358
|
private failMirrorImageTransfer;
|
|
350
359
|
private deliverRotateMessage;
|
|
360
|
+
/** Bridge ownership is a child-local binding, but the parent is the only
|
|
361
|
+
* process that knows logical target publication committed. Mark that fact
|
|
362
|
+
* durably before allowing the child to apply and expose the alias. */
|
|
363
|
+
private publishNativeRotationBinding;
|
|
364
|
+
private publishNativeRotationRecords;
|
|
365
|
+
private deliverRotateAppliedMessage;
|
|
366
|
+
private finalizeNativeRotation;
|
|
367
|
+
private acknowledgeRotateApplied;
|
|
368
|
+
private releasePendingNativeRotation;
|
|
369
|
+
private publishNativeRotationNotice;
|
|
351
370
|
private spawnHandle;
|
|
352
371
|
private onChildMessage;
|
|
353
372
|
/** Mark a handle dead and reject every pending run/cap with the exit reason. */
|
|
@@ -364,9 +383,15 @@ export declare class RunnerManager implements AgentCapabilities {
|
|
|
364
383
|
private isManagedNativeHandle;
|
|
365
384
|
private failActiveResponses;
|
|
366
385
|
private interruptActiveResponses;
|
|
386
|
+
/** Crash/termination compensation is intentionally best-effort because it is
|
|
387
|
+
* a terminal/status edge rather than an ordinary transcript delivery.
|
|
388
|
+
* Still consume an asynchronous persistence rejection so a dying child
|
|
389
|
+
* cannot take the parent daemon down with an unhandled rejection. */
|
|
390
|
+
private emitCompensatingMirror;
|
|
367
391
|
/** Track the provider-authoritative response lifecycle. Native-pane busy
|
|
368
392
|
* classification consumes this level directly; output volume is separately
|
|
369
393
|
* grounded in tmux's own activity clock. */
|
|
370
394
|
private observeHandleRuntimeEvent;
|
|
395
|
+
private isStaleMirrorGeneration;
|
|
371
396
|
private openSessionContext;
|
|
372
397
|
}
|