agent-afk 5.295.6 → 5.295.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.
@@ -4,19 +4,6 @@ import type { InteractiveCtx } from './shared.js';
4
4
  import type { InputSurface } from '../../input/input-surface.js';
5
5
  export interface BoundaryCompositor {
6
6
  hasPendingSubmission(): boolean;
7
- peekQueuedText(): {
8
- text: string;
9
- payloads: readonly unknown[];
10
- } | undefined;
11
- reserveQueued(snapshot: {
12
- payloads: readonly unknown[];
13
- }): void;
14
- releaseQueued(snapshot: {
15
- payloads: readonly unknown[];
16
- }): void;
17
- dropQueued(snapshot: {
18
- payloads: readonly unknown[];
19
- }): number;
20
7
  }
21
8
  export interface BoundarySession {
22
9
  setBeforeNextRound?: (cb: (() => string | undefined) | undefined) => void;
@@ -26,11 +13,12 @@ export interface PeerBoundaryOpts {
26
13
  getCompositor: () => BoundaryCompositor | null;
27
14
  peerNotifier: PeerInboxNotifier;
28
15
  admissionQueue: AdmissionQueue;
16
+ isQueuedHumanTurn?: () => boolean;
29
17
  }
30
18
  export declare function installPeerBoundary(opts: PeerBoundaryOpts): () => void;
31
19
  export declare function reinstallPeerBoundary(opts: PeerBoundaryOpts, prevDispose: (() => void) | undefined): () => void;
32
20
  export declare function drainAdmissionQueueFallback(text: string, q: AdmissionQueue): string;
33
- export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier): {
21
+ export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier, isQueuedHumanTurn: () => boolean): {
34
22
  admissionQueue: AdmissionQueue;
35
23
  reinstall: () => void;
36
24
  };
@@ -46,6 +46,7 @@ export interface ReadWithAutocompleteOpts {
46
46
  };
47
47
  }
48
48
  export interface ReadWithAutocompleteResult {
49
+ queuedSubmission?: boolean;
49
50
  text: string;
50
51
  attachments: ImageAttachment[];
51
52
  }