agent-afk 5.226.0 → 5.226.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.
- package/dist/agent/tools/compose-executor.d.ts +2 -0
- package/dist/agent/tools/nesting.d.ts +1 -1
- package/dist/cli.mjs +240 -240
- package/dist/index.mjs +110 -110
- package/dist/telegram.mjs +131 -131
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReadScopeInputs } from '../subagent-read-scope.js';
|
|
2
|
+
import type { AgentRegistry } from '../agents/index.js';
|
|
2
3
|
import type { AgentModelInput, IAgentSession } from '../types.js';
|
|
3
4
|
import type { Surface } from '../awareness/types.js';
|
|
4
5
|
import type { WorkspaceStore } from '../workspace/index.js';
|
|
@@ -20,6 +21,7 @@ export interface ComposeExecutorContext {
|
|
|
20
21
|
maxDepth?: number;
|
|
21
22
|
getReadScopeInputs?: () => ReadScopeInputs;
|
|
22
23
|
workspaceStore?: WorkspaceStore;
|
|
24
|
+
agentRegistry?: AgentRegistry;
|
|
23
25
|
delegationBudget?: import('./delegation-budget.js').DelegationBudget;
|
|
24
26
|
onSubagentSucceeded?: (usage: import('../subagent/result.js').SubagentTrace['usage'], costUsd: number | undefined) => void;
|
|
25
27
|
}
|
|
@@ -34,5 +34,5 @@ export declare function buildReadOnlyReconProvider(model: AgentModelInput | unde
|
|
|
34
34
|
export declare function buildComposeNodeProvider(model: AgentModelInput | undefined, workspaceStore: WorkspaceStore, openaiBaseUrl?: string, readOnlyBash?: boolean): ModelProvider;
|
|
35
35
|
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): (depth: number, maxDepth: number, signal: AbortSignal, inheritedCwd?: string, inheritedReadScope?: ReadScopeInputs, skillDispatchName?: string) => SkillExecutor;
|
|
36
36
|
export type PhaseRole = 'read-only' | 'read-write';
|
|
37
|
-
export declare function buildSkillRestrictedProvider(allowedTools: string[], model: AgentModelInput | undefined, readOnlyBash?: boolean, openaiBaseUrl?: string): ModelProvider;
|
|
37
|
+
export declare function buildSkillRestrictedProvider(allowedTools: string[], model: AgentModelInput | undefined, readOnlyBash?: boolean, openaiBaseUrl?: string, workspaceStore?: WorkspaceStore): ModelProvider;
|
|
38
38
|
export declare function buildPhaseRestrictedProvider(_role: 'read-only', model: AgentModelInput | undefined): ModelProvider;
|