agent-afk 5.324.1 → 5.324.3
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/cli/commands/interactive/loop-iteration.boundary.d.ts +15 -0
- package/dist/cli.mjs +395 -394
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.misc.d.ts +8 -0
- package/dist/index.mjs +200 -200
- package/dist/telegram.mjs +214 -214
- package/package.json +1 -1
|
@@ -3,12 +3,25 @@ import { AdmissionQueue } from '../../../agent/peer/admission-queue.js';
|
|
|
3
3
|
import type { InteractiveCtx } from './shared.js';
|
|
4
4
|
import type { InputSurface } from '../../input/input-surface.js';
|
|
5
5
|
import { type InjectionSource } from './loop-iteration.injections.js';
|
|
6
|
+
import type { TraceSink } from '../../../agent/trace/index.js';
|
|
6
7
|
export interface BoundaryCompositor {
|
|
7
8
|
hasPendingSubmission(): boolean;
|
|
9
|
+
peekQueuedText?(): {
|
|
10
|
+
readonly text: string;
|
|
11
|
+
readonly preview: string;
|
|
12
|
+
readonly payloads: readonly unknown[];
|
|
13
|
+
} | undefined;
|
|
14
|
+
dropQueued?(snapshot: {
|
|
15
|
+
readonly text: string;
|
|
16
|
+
readonly preview: string;
|
|
17
|
+
readonly payloads: readonly unknown[];
|
|
18
|
+
}): number;
|
|
8
19
|
}
|
|
9
20
|
export interface BoundarySession {
|
|
10
21
|
setBeforeNextRound?: (cb: (() => string | undefined) | undefined) => void;
|
|
11
22
|
}
|
|
23
|
+
export type SteerMode = 'boundary' | 'turn-end';
|
|
24
|
+
export declare function resolveSteerMode(): SteerMode;
|
|
12
25
|
export interface PeerBoundaryOpts {
|
|
13
26
|
getSession: () => BoundarySession | undefined;
|
|
14
27
|
getCompositor: () => BoundaryCompositor | null;
|
|
@@ -16,6 +29,8 @@ export interface PeerBoundaryOpts {
|
|
|
16
29
|
admissionQueue: AdmissionQueue;
|
|
17
30
|
isQueuedHumanTurn?: () => boolean;
|
|
18
31
|
processJobNotifier?: InjectionSource;
|
|
32
|
+
steerMode?: SteerMode;
|
|
33
|
+
traceWriter?: TraceSink;
|
|
19
34
|
}
|
|
20
35
|
export declare function installPeerBoundary(opts: PeerBoundaryOpts): () => void;
|
|
21
36
|
export declare function reinstallPeerBoundary(opts: PeerBoundaryOpts, prevDispose: (() => void) | undefined): () => void;
|