agent-afk 5.25.0 → 5.25.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.
@@ -1 +1,2 @@
1
1
  export declare function supportsVision(model: string | undefined): boolean;
2
+ export declare function isOSeriesModel(model: string | undefined): boolean;
@@ -1,7 +1,8 @@
1
1
  import type { EffortLevel } from '../../../types/sdk-types.js';
2
+ import { isOSeriesModel } from '../../../model-capabilities.js';
2
3
  export declare function resolveEffectiveMaxOutputTokens(model: string, configMaxOutput: number | undefined): number;
3
4
  export declare function resolveStreamingMaxTokens(model: string, configMaxOutput: number | undefined): Record<string, number>;
4
5
  export declare function normalizePermissionMode(mode: string | undefined): string;
5
- export declare function isOSeriesModel(model: string): boolean;
6
+ export { isOSeriesModel };
6
7
  export declare function mapEffortForOpenAI(effort: EffortLevel): 'low' | 'medium' | 'high';
7
8
  export declare function resolveReasoningEffort(effort: EffortLevel | undefined, model: string): 'low' | 'medium' | 'high' | undefined;
@@ -12,6 +12,8 @@ import type { SubagentStatus, SubagentResult, SubagentTrace } from './subagent/r
12
12
  export type { SubagentStatus, SubagentResult, SubagentTrace, SubagentHandle };
13
13
  export declare const DENY_ELICITATION: NonNullable<AgentConfig['onElicitation']>;
14
14
  export declare const SUBAGENT_DEFAULT_MAX_TOOL_USE_ITERATIONS = 50;
15
+ export declare const SUBAGENT_DEFAULT_TIMEOUT_MS: number;
16
+ export declare const SUBAGENT_BACKGROUND_TIMEOUT_MS: number;
15
17
  export interface ForkParent {
16
18
  sessionId?: string;
17
19
  id?: string;
@@ -1,5 +1,6 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../types.js';
2
2
  import type { Surface } from '../awareness/types.js';
3
+ import type { TraceWriter } from '../trace/index.js';
3
4
  import type { ToolCall, ToolResult } from './types.js';
4
5
  export interface ComposeExecutorContext {
5
6
  parentSession: Pick<IAgentSession, 'sessionId' | 'abortSignal'>;
@@ -10,6 +11,7 @@ export interface ComposeExecutorContext {
10
11
  baseUrl?: string;
11
12
  systemPrompt: string;
12
13
  cwd?: string;
14
+ traceWriter?: TraceWriter;
13
15
  surface?: Surface;
14
16
  depth?: number;
15
17
  }
@@ -7,6 +7,7 @@ import type { RegisteredAgent } from '../../agents/index.js';
7
7
  import type { AgentRegistry } from '../../agents/index.js';
8
8
  import type { SkillExecutor } from '../skill-executor.js';
9
9
  import type { Surface } from '../../awareness/types.js';
10
+ import type { TraceWriter } from '../../trace/index.js';
10
11
  import type { SubagentExecutor, SubagentExecutorContext } from '../subagent-executor.js';
11
12
  import type { AgentInput } from './input-parse.js';
12
13
  export type ChildParentSession = ReturnType<typeof createStubParentSession> & {
@@ -29,6 +30,7 @@ export interface BuildChildConfigArgs {
29
30
  readOnlyBash?: boolean;
30
31
  agentRegistry?: AgentRegistry;
31
32
  parentModel?: AgentModelInput;
33
+ traceWriter?: TraceWriter;
32
34
  createChildExecutor: (ctx: SubagentExecutorContext) => SubagentExecutor;
33
35
  }
34
36
  export interface BuildChildConfigResult {
@@ -8,6 +8,7 @@ import { type ChildProviderFactoryArgs } from './nesting.js';
8
8
  import type { AgentRegistry } from '../agents/index.js';
9
9
  import type { SkillExecutor } from './skill-executor.js';
10
10
  import type { Surface } from '../awareness/types.js';
11
+ import type { TraceWriter } from '../trace/index.js';
11
12
  import { type AgentExecutionMode } from './subagent/input-parse.js';
12
13
  export { DEFAULT_MAX_NESTING_DEPTH, type ChildProviderFactoryArgs } from './nesting.js';
13
14
  export type { AgentExecutionMode };
@@ -24,6 +25,7 @@ export interface SubagentExecutorContext {
24
25
  maxDepth?: number;
25
26
  backgroundRegistry?: BackgroundAgentRegistry;
26
27
  cwd?: string;
28
+ traceWriter?: TraceWriter;
27
29
  allowedTools?: string[];
28
30
  readOnlyBash?: boolean;
29
31
  nestedAgentAllowlist?: readonly string[];