agent-afk 5.36.0 → 5.36.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.
@@ -7,6 +7,7 @@ export interface PluginSkillMetadata {
7
7
  allowedTools?: string[];
8
8
  context?: string;
9
9
  readOnly?: boolean;
10
+ model?: string;
10
11
  body?: string;
11
12
  audience?: 'public' | 'internal';
12
13
  }
@@ -23,7 +23,7 @@ export interface CreateChildProviderFactoryOptions {
23
23
  openaiBaseUrl?: string;
24
24
  }
25
25
  export declare function createChildProviderFactory(opts?: CreateChildProviderFactoryOptions): (args: ChildProviderFactoryArgs) => ModelProvider;
26
- export declare function buildReadOnlyReconProvider(model: AgentModelInput | undefined, openaiBaseUrl?: string): ModelProvider;
26
+ export declare function buildReadOnlyReconProvider(model: AgentModelInput | undefined, openaiBaseUrl?: string, allowedTools?: readonly string[]): ModelProvider;
27
27
  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) => SkillExecutor;
28
28
  export type PhaseRole = 'read-only' | 'read-write';
29
29
  export declare function buildSkillRestrictedProvider(allowedTools: string[], model: AgentModelInput | undefined, readOnlyBash?: boolean, openaiBaseUrl?: string): ModelProvider;
@@ -19,6 +19,7 @@ export interface PluginSkillBody {
19
19
  allowedTools?: string[];
20
20
  context?: string;
21
21
  readOnly?: boolean;
22
+ model?: string;
22
23
  }
23
24
  export declare function discoverPluginSkillBodies(pluginConfigs?: SdkPluginConfig[], opts?: CollectSkillEntriesOptions): Map<string, PluginSkillBody>;
24
25
  export declare function discoverPluginAgents(pluginConfigs?: SdkPluginConfig[]): RegisteredAgent[];
@@ -8,7 +8,7 @@ export declare function executeForkedRegistrySkill(internals: SkillExecutorInter
8
8
  model?: string;
9
9
  readOnly?: boolean;
10
10
  }, args: string | undefined, call: ToolCall): Promise<ToolResult>;
11
- export declare function executePluginSkill(internals: SkillExecutorInternals, skillName: string, body: string, pluginPath: string, args: string | undefined, call: ToolCall, readOnly?: boolean, allowedTools?: string[]): Promise<ToolResult>;
11
+ export declare function executePluginSkill(internals: SkillExecutorInternals, skillName: string, body: string, pluginPath: string, args: string | undefined, call: ToolCall, readOnly?: boolean, allowedTools?: string[], model?: string): Promise<ToolResult>;
12
12
  export declare function runForkedSkillToResult(internals: SkillExecutorInternals, params: {
13
13
  manager: SubagentManager;
14
14
  childManager: SubagentManager | undefined;