agent-afk 5.25.1 → 5.25.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.
|
@@ -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[];
|