agent-afk 5.324.2 → 5.324.4

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.
@@ -1,3 +1,4 @@
1
- export declare const WIND_DOWN_NO_ANSWER_PLACEHOLDER: string;
1
+ import { WIND_DOWN_NO_ANSWER_PLACEHOLDER } from '../../shared/tool-loop-cap.js';
2
+ export { WIND_DOWN_NO_ANSWER_PLACEHOLDER };
2
3
  export declare function stripToolCallMarkup(text: string): string;
3
4
  export declare function windDownFinalText(roundText: string): string;
@@ -1,5 +1,6 @@
1
1
  export declare const TOOL_USE_LOOP_CAPPED = "tool_use_loop_capped";
2
2
  export declare const DEFAULT_MAX_TOOL_USE_ITERATIONS = 0;
3
+ export declare const WIND_DOWN_NO_ANSWER_PLACEHOLDER: string;
3
4
  export declare const WIND_DOWN_NOTE: string;
4
5
  export declare function resolveMaxToolIterations(configured: number | undefined): number;
5
6
  export declare function shouldWindDown(completedRounds: number, maxIterations: number): boolean;
@@ -46,6 +46,7 @@ export interface BuildInitPromiseOptions {
46
46
  setProviderIterator: (i: AsyncIterator<ProviderEvent>) => void;
47
47
  getProviderIterator: () => AsyncIterator<ProviderEvent>;
48
48
  getInputStream: () => QueryInputStream;
49
+ getProviderQuery: () => ProviderQuery;
49
50
  isClosed: () => boolean;
50
51
  abortSignal: AbortSignal;
51
52
  accounting: AccountingAccumulator;
@@ -1,4 +1,4 @@
1
- export declare const GIT_READ_SUBCOMMANDS: readonly ["status", "log", "diff", "show", "grep", "tag", "branch", "blame", "ls-files", "rev-parse"];
1
+ export declare const GIT_READ_SUBCOMMANDS: readonly ["status", "log", "diff", "show", "grep", "tag", "branch", "blame", "ls-files", "rev-parse", "merge-base", "rev-list", "reflog", "for-each-ref", "describe", "shortlog", "cat-file", "remote", "stash", "worktree"];
2
2
  export type GitReadSubcommand = (typeof GIT_READ_SUBCOMMANDS)[number];
3
3
  export interface GitReadRequest {
4
4
  subcommand: unknown;
@@ -1,5 +1,6 @@
1
1
  import type { RegisteredAgent } from '../agents/index.js';
2
2
  import type { ToolResult } from './types.js';
3
+ export declare function stripQuotedContent(prompt: string): string;
3
4
  export declare function classifyDispatchIntent(prompt: string): string | undefined;
4
5
  export declare function checkReadOnlyDispatchIntent(childWriteCapable: boolean, namedAgent: RegisteredAgent | undefined, prompt: string, classifyFn: (p: string) => string | undefined): ToolResult | undefined;
5
6
  export declare function checkComposeReadOnlyDispatchIntent(nodes: ReadonlyArray<{
@@ -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;