agent-afk 5.317.0 → 5.317.1

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.
@@ -15,7 +15,7 @@ export interface StreamConsumerContext {
15
15
  stallTimeoutMs: number;
16
16
  requestStartedAt: number;
17
17
  }
18
- export interface StreamRoundState {
18
+ interface StreamRoundState {
19
19
  turnResult: TurnResult | null;
20
20
  translatorErrored: boolean;
21
21
  retryTtfb: boolean;
@@ -40,3 +40,4 @@ export declare function handleCatchError(state: StreamRoundState, err: unknown,
40
40
  done: false;
41
41
  };
42
42
  export declare function consumeRoundStream({ events, input, turn, retry, ttfb, stall, stallTimeoutMs, requestStartedAt, }: StreamConsumerContext): AsyncGenerator<ProviderEvent, RoundOutcome, void>;
43
+ export {};
@@ -1,4 +1,4 @@
1
1
  import type { SubagentProgressSink } from '../types/session-types.js';
2
2
  import type { Message } from '../types.js';
3
3
  import type { SubagentHandleImpl } from './handle.js';
4
- export declare function drainAndEmitSuccess<T>(handle: SubagentHandleImpl<T>, firstMsg: Message, startTime: number, sinkOverride: SubagentProgressSink | undefined): Promise<Message>;
4
+ export declare function drainAndEmitSuccess(handle: SubagentHandleImpl<unknown>, firstMsg: Message, startTime: number, sinkOverride: SubagentProgressSink | undefined): Promise<Message>;
@@ -103,3 +103,4 @@ export interface RunBackgroundDispatchArgs {
103
103
  }
104
104
  export declare function runBackgroundDispatch(args: RunBackgroundDispatchArgs): Promise<ToolResult>;
105
105
  export declare function checkNestedScope(nestedScope: readonly string[], requestedType: string | undefined): ToolResult | undefined;
106
+ export declare function checkReadOnlyDispatchIntent(childWriteCapable: boolean, namedAgent: RegisteredAgent | undefined, prompt: string, classifyFn: (p: string) => boolean): ToolResult | undefined;
@@ -1 +1,2 @@
1
+ export declare function classifyDispatchIntent(prompt: string): boolean;
1
2
  export declare function collectPostRunWarnings(model: string, hasAttachments: boolean, agentName: string | undefined, prompt: string, childWriteCapable: boolean, supportsVisionFn: (m: string) => boolean): string;