agent-afk 5.233.0 → 5.234.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.
@@ -7,5 +7,5 @@ export declare function resolveMaxTokens(config: AgentConfig, model: string): nu
7
7
  export declare function filterContentBlocks(raw: unknown[] | undefined): ContentBlockParam[];
8
8
  export declare function hasValidToolUsePairing(assistantBlocks: ContentBlockParam[], nextUserBlocks: ContentBlockParam[] | undefined): boolean;
9
9
  export declare function resumeHistoryToMessages(history: ResumeHistoryTurn[] | undefined): MessageParam[] | undefined;
10
- export declare function resolveThinkingParam(tc: ThinkingConfig, maxTokens: number, model?: string): ThinkingConfigParam;
10
+ export declare function resolveThinkingParam(tc: ThinkingConfig, maxTokens: number, model?: string, effort?: string): ThinkingConfigParam;
11
11
  export declare function resolveEffort(callerEffort: EffortLevel | undefined, model: string): EffortLevel | undefined;
@@ -0,0 +1,9 @@
1
+ import type { AgentRegistry } from '../agents/index.js';
2
+ import type { CanUseTool } from '../types.js';
3
+ export interface ResolvedComposeAgent {
4
+ systemPrompt?: string;
5
+ namedAgentModel?: string;
6
+ canUseTool?: CanUseTool;
7
+ }
8
+ export declare function buildAllowlistCanUseTool(allowed: string[]): CanUseTool;
9
+ export declare function resolveComposeNodeAgent(agentType: string | undefined, agentRegistry: AgentRegistry | undefined): ResolvedComposeAgent;
@@ -1,11 +1,11 @@
1
1
  import { type ReadScopeInputs } from '../subagent-read-scope.js';
2
- import type { AgentRegistry } from '../agents/index.js';
3
2
  import type { AgentModelInput, IAgentSession } from '../types.js';
4
3
  import type { Surface } from '../awareness/types.js';
5
4
  import type { WorkspaceStore } from '../workspace/index.js';
6
5
  import type { TraceSink } from '../trace/index.js';
7
6
  import type { ToolCall, ToolResult } from './types.js';
8
7
  import type { InboundAttachmentReader } from '../content/attachment-registry.js';
8
+ import type { AgentRegistry } from '../agents/index.js';
9
9
  export interface ComposeExecutorContext {
10
10
  parentSession: Pick<IAgentSession, 'sessionId' | 'abortSignal'>;
11
11
  defaultModel?: AgentModelInput;