agent-afk 5.240.1 → 5.240.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.
@@ -2,6 +2,7 @@ import type { AgentModelInput } from '../../../agent/types.js';
2
2
  import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { WorkspaceStore } from '../../../agent/workspace/index.js';
4
4
  import type { PhaseRole } from '../../../agent/tools/nesting.js';
5
+ import type { DelegationBudget } from '../../../agent/tools/delegation-budget.js';
5
6
  export interface ForkMintPhaseOptions {
6
7
  phaseName: string;
7
8
  phaseId: string;
@@ -15,5 +16,6 @@ export interface ForkMintPhaseOptions {
15
16
  parentReadRoots?: string[];
16
17
  traceWriter?: TraceSink;
17
18
  workspaceStore?: WorkspaceStore;
19
+ delegationBudget?: DelegationBudget;
18
20
  }
19
21
  export declare function forkMintPhase(opts: ForkMintPhaseOptions): Promise<string>;
@@ -1,9 +1,10 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
2
  import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { WorkspaceStore } from '../../../agent/workspace/index.js';
4
+ import type { DelegationBudget } from '../../../agent/tools/delegation-budget.js';
4
5
  export interface BuildResult {
5
6
  filesChanged: string[];
6
7
  testsPassed: boolean;
7
8
  notes: string;
8
9
  }
9
- export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore): Promise<BuildResult>;
10
+ export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore, delegationBudget?: DelegationBudget): Promise<BuildResult>;
@@ -1,9 +1,10 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../../../agent/types.js';
2
2
  import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { WorkspaceStore } from '../../../agent/workspace/index.js';
4
+ import type { DelegationBudget } from '../../../agent/tools/delegation-budget.js';
4
5
  import type { VerifyResult } from './verify.js';
5
6
  import type { BuildResult } from './build.js';
6
- export declare function runHealPhase(plan: string, buildResults: BuildResult, verifyResults: VerifyResult, healIterations: number, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, dispatchSkill?: (name: string, args?: string) => Promise<string>, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore): Promise<{
7
+ export declare function runHealPhase(plan: string, buildResults: BuildResult, verifyResults: VerifyResult, healIterations: number, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, dispatchSkill?: (name: string, args?: string) => Promise<string>, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore, delegationBudget?: DelegationBudget): Promise<{
7
8
  healed: boolean;
8
9
  newHealIterations: number;
9
10
  newVerifyResults: VerifyResult;
@@ -1,6 +1,7 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../../../agent/types.js';
2
2
  import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { WorkspaceStore } from '../../../agent/workspace/index.js';
4
+ import type { DelegationBudget } from '../../../agent/tools/delegation-budget.js';
4
5
  export type ParallelizeDispatchResult = {
5
6
  kind: 'skipped';
6
7
  reason: 'too-few-files' | 'skill-body-missing';
@@ -11,4 +12,4 @@ export type ParallelizeDispatchResult = {
11
12
  kind: 'failed';
12
13
  error: string;
13
14
  };
14
- export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore): Promise<ParallelizeDispatchResult>;
15
+ export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore, delegationBudget?: DelegationBudget): Promise<ParallelizeDispatchResult>;
@@ -2,10 +2,11 @@ import type { BuildResult } from './build.js';
2
2
  import type { AgentModelInput } from '../../../agent/types.js';
3
3
  import type { TraceSink } from '../../../agent/trace/index.js';
4
4
  import type { WorkspaceStore } from '../../../agent/workspace/index.js';
5
+ import type { DelegationBudget } from '../../../agent/tools/delegation-budget.js';
5
6
  export interface VerifyResult {
6
7
  testsPassed: boolean;
7
8
  lintPassed: boolean;
8
9
  designReviewPassed: boolean;
9
10
  issues?: string[];
10
11
  }
11
- export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore): Promise<VerifyResult>;
12
+ export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink, workspaceStore?: WorkspaceStore, delegationBudget?: DelegationBudget): Promise<VerifyResult>;
@@ -10,6 +10,7 @@ export interface SkillExecutionContext {
10
10
  traceWriter?: TraceSink;
11
11
  getReadScopeInputs?: () => ReadScopeInputs;
12
12
  workspaceStore?: import('../agent/workspace/index.js').WorkspaceStore;
13
+ delegationBudget?: import('../agent/tools/delegation-budget.js').DelegationBudget;
13
14
  }
14
15
  export interface SkillMetadata {
15
16
  name: string;