agent-afk 5.110.0 → 5.110.2

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,6 +15,8 @@ export interface OpenRoundTransport {
15
15
  export type OpenRoundResult = OpenRoundTransport | {
16
16
  kind: 'retry-ttfb';
17
17
  requestStartedAt: number;
18
+ } | {
19
+ kind: 'overload-exhausted';
18
20
  } | {
19
21
  kind: 'terminated';
20
22
  };
@@ -1,5 +1,5 @@
1
1
  import type { ProviderEvent } from '../../provider.js';
2
- export declare const OVERLOAD_EXHAUSTED = "overload_exhausted";
2
+ export { OVERLOAD_EXHAUSTED } from '../shared/overload-sentinel.js';
3
3
  export declare const OVERLOAD_EXHAUSTED_NOTICE: string;
4
4
  export declare const OVERLOAD_PAUSE_CEILING_MS: number;
5
5
  export declare const OVERLOAD_PAUSE_MAX_MS: number;
@@ -0,0 +1 @@
1
+ export declare const OVERLOAD_EXHAUSTED = "overload_exhausted";
@@ -27,7 +27,7 @@ export interface CreateChildProviderFactoryOptions {
27
27
  }
28
28
  export declare function createChildProviderFactory(opts?: CreateChildProviderFactoryOptions): (args: ChildProviderFactoryArgs) => ModelProvider;
29
29
  export declare function buildReadOnlyReconProvider(model: AgentModelInput | undefined, openaiBaseUrl?: string, allowedTools?: readonly string[]): ModelProvider;
30
- export declare function createChildSkillExecutorFactory(defaultModel: AgentModelInput, apiKey: string | undefined, childProviderFactory: (args: ChildProviderFactoryArgs) => ModelProvider, baseUrl?: string, traceWriter?: TraceWriter, backgroundRegistry?: BackgroundAgentRegistry, cwd?: string, resolveApiKeyForModel?: (model: string) => string | undefined, surface?: Surface, defaultSubagentModel?: AgentModelInput, agentRegistry?: AgentRegistry, openaiBaseUrl?: string): (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs) => SkillExecutor;
30
+ export declare function createChildSkillExecutorFactory(defaultModel: AgentModelInput, apiKey: string | undefined, childProviderFactory: (args: ChildProviderFactoryArgs) => ModelProvider, baseUrl?: string, traceWriter?: TraceWriter, backgroundRegistry?: BackgroundAgentRegistry, cwd?: string, resolveApiKeyForModel?: (model: string) => string | undefined, surface?: Surface, defaultSubagentModel?: AgentModelInput, agentRegistry?: AgentRegistry, openaiBaseUrl?: string): (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string) => SkillExecutor;
31
31
  export type PhaseRole = 'read-only' | 'read-write';
32
32
  export declare function buildSkillRestrictedProvider(allowedTools: string[], model: AgentModelInput | undefined, readOnlyBash?: boolean, openaiBaseUrl?: string): ModelProvider;
33
33
  export declare function buildPhaseRestrictedProvider(_role: 'read-only', model: AgentModelInput | undefined): ModelProvider;
@@ -20,12 +20,13 @@ export interface SkillExecutorContext {
20
20
  depth?: number;
21
21
  maxDepth?: number;
22
22
  childProviderFactory?: (args: ChildProviderFactoryArgs) => ModelProvider;
23
- childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs) => SkillExecutor;
23
+ childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string) => SkillExecutor;
24
24
  traceWriter?: TraceWriter;
25
25
  backgroundRegistry?: BackgroundAgentRegistry;
26
26
  cwd?: string;
27
27
  getReadScopeInputs?: () => ReadScopeInputs;
28
28
  agentRegistry?: import('../../agents/index.js').AgentRegistry;
29
+ skillDispatchName?: string;
29
30
  }
30
31
  export interface SkillInput {
31
32
  name: string;
@@ -22,11 +22,11 @@ export interface BuildChildConfigArgs {
22
22
  currentCwd: string | undefined;
23
23
  childInheritedReadRoots?: string[];
24
24
  signal: AbortSignal;
25
- defaultConfig: Pick<AgentConfig, 'apiKey' | 'systemPrompt' | 'baseUrl' | 'openaiBaseUrl'>;
25
+ defaultConfig: Pick<AgentConfig, 'apiKey' | 'systemPrompt' | 'baseUrl' | 'openaiBaseUrl' | 'skillDispatchName'>;
26
26
  resolveApiKeyForModel?: (model: string) => string | undefined;
27
27
  defaultSubagentModel?: AgentModelInput;
28
28
  childProviderFactory?: (args: ChildProviderFactoryArgs) => ModelProvider;
29
- childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs) => SkillExecutor;
29
+ childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string) => SkillExecutor;
30
30
  surface?: Surface;
31
31
  allowedTools?: string[];
32
32
  readOnlyBash?: boolean;
@@ -18,12 +18,12 @@ export type { AgentExecutionMode };
18
18
  export interface SubagentExecutorContext {
19
19
  subagentManager: SubagentManager;
20
20
  parentSession: Pick<IAgentSession, 'sessionId' | 'getInputStreamRef' | 'abortSignal'> & Partial<Pick<IAgentSession, 'hookRegistry'>>;
21
- defaultConfig: Pick<AgentConfig, 'apiKey' | 'systemPrompt' | 'baseUrl' | 'openaiBaseUrl'>;
21
+ defaultConfig: Pick<AgentConfig, 'apiKey' | 'systemPrompt' | 'baseUrl' | 'openaiBaseUrl' | 'skillDispatchName'>;
22
22
  surface?: Surface;
23
23
  resolveApiKeyForModel?: (model: string) => string | undefined;
24
24
  defaultSubagentModel?: AgentModelInput;
25
25
  childProviderFactory?: (args: ChildProviderFactoryArgs) => ModelProvider;
26
- childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs) => SkillExecutor;
26
+ childSkillExecutorFactory?: (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string) => SkillExecutor;
27
27
  depth: number;
28
28
  maxDepth?: number;
29
29
  backgroundRegistry?: BackgroundAgentRegistry;
@@ -0,0 +1 @@
1
+ export declare function collectPostRunWarnings(model: string, hasAttachments: boolean, agentName: string | undefined, prompt: string, childWriteCapable: boolean, supportsVisionFn: (m: string) => boolean): string;