agent-afk 5.310.6 → 5.310.8

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,11 +1,17 @@
1
1
  import type { AgentRegistry } from '../agents/index.js';
2
2
  import type { CanUseTool } from '../types.js';
3
+ export { COMPOSE_LEAF_STRIPPED_TOOLS } from './nesting.js';
4
+ export declare const COMPOSE_LEAF_NOTICE: string;
3
5
  export interface ResolvedComposeAgent {
4
6
  replaySafe?: boolean;
5
7
  systemPrompt?: string;
8
+ leafNotice?: string;
6
9
  namedAgentModel?: string;
7
10
  canUseTool?: CanUseTool;
11
+ namedAgentAllowedTools?: string[];
8
12
  readOnlyBash?: true;
9
13
  }
10
14
  export declare function buildAllowlistCanUseTool(allowed: string[]): CanUseTool;
11
15
  export declare function resolveComposeNodeAgent(agentType: string | undefined, agentRegistry: AgentRegistry | undefined): ResolvedComposeAgent;
16
+ export declare function resolveComposeAgentPrompt(agent: ResolvedComposeAgent, basePrompt: string): string;
17
+ export declare function resolvedAgentToolRestriction(agent: ResolvedComposeAgent): Pick<ResolvedComposeAgent, 'canUseTool' | 'namedAgentAllowedTools'> | Record<string, never>;
@@ -4,6 +4,7 @@ import type { CanUseTool } from '../types.js';
4
4
  import type { AgentModelInput } from '../types/model-types.js';
5
5
  export interface ComposeNodeRestrictions {
6
6
  canUseTool?: CanUseTool;
7
+ namedAgentAllowedTools?: string[];
7
8
  readOnlyBash?: true;
8
9
  }
9
10
  export declare function resolveComposeNodeProvider(nodeModel: AgentModelInput, workspaceStore: WorkspaceStore | undefined, openaiBaseUrl: string | undefined, restrictions?: ComposeNodeRestrictions): {
@@ -0,0 +1,2 @@
1
+ export declare function firstBraceAlternation(pattern: string): number | undefined;
2
+ export declare function expandGlobBraces(pattern: string): string[];
@@ -35,10 +35,12 @@ export interface CreateChildProviderFactoryOptions {
35
35
  }
36
36
  export declare function createChildProviderFactory(opts?: CreateChildProviderFactoryOptions): (args: ChildProviderFactoryArgs) => ModelProvider;
37
37
  export declare function buildReadOnlyReconProvider(model: AgentModelInput | undefined, openaiBaseUrl?: string, allowedTools?: readonly string[]): ModelProvider;
38
+ export declare const COMPOSE_LEAF_STRIPPED_TOOLS: ReadonlySet<string>;
38
39
  export interface BuildComposeNodeProviderOpts {
39
40
  openaiBaseUrl?: string;
40
41
  readOnlyBash?: true;
41
42
  canUseTool?: CanUseTool;
43
+ namedAgentAllowedTools?: string[];
42
44
  }
43
45
  export declare function buildComposeNodeProvider(model: AgentModelInput | undefined, workspaceStore: WorkspaceStore | undefined, opts?: BuildComposeNodeProviderOpts): ModelProvider;
44
46
  export declare function createChildSkillExecutorFactory(defaultModel: AgentModelInput, apiKey: string | undefined, childProviderFactory: (args: ChildProviderFactoryArgs) => ModelProvider, baseUrl?: string, traceWriter?: TraceSink, backgroundRegistry?: BackgroundAgentRegistry, cwd?: string, resolveApiKeyForModel?: (model: string) => string | undefined, surface?: Surface, defaultSubagentModel?: AgentModelInput, agentRegistry?: AgentRegistry, openaiBaseUrl?: string, xaiBaseUrl?: string, workspaceStore?: WorkspaceStore, delegationBudget?: import('./delegation-budget.js').DelegationBudget, pluginConfigs?: SdkPluginConfig[], skillAllowlist?: readonly string[], hookRegistry?: HookRegistry): (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string, journalParent?: JournalParent, rootSessionId?: string) => SkillExecutor;
@@ -0,0 +1,4 @@
1
+ import type { Command } from 'commander';
2
+ export declare function needsCredentialGate(command: Command): boolean;
3
+ export declare function runFirstRunDetector(command: Command): Promise<void>;
4
+ export declare function installCredentialGate(program: Command): void;
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export { parseThinking, parseEffort, parseBudget, parseMaxOutputTokens, getMaxBudgetUsd, getTaskBudget, getMaxOutputTokens, } from './shared-helpers.js';
3
- export declare function needsCredentialGate(argv: string[]): boolean;
4
- export declare function runFirstRunDetector(argv?: string[]): Promise<void>;
3
+ export { needsCredentialGate, runFirstRunDetector } from './first-run.js';
@@ -0,0 +1,7 @@
1
+ import { type BundledProviderName } from '../agent/providers/index.js';
2
+ export interface CliProviderContext {
3
+ model?: string;
4
+ openaiBaseUrl?: string;
5
+ }
6
+ export declare function selectCliProvider(raw: string | undefined, opts?: CliProviderContext): string | undefined;
7
+ export declare function cliProviderFamily(raw: string | undefined, opts?: CliProviderContext): BundledProviderName;