agent-afk 5.37.4 → 5.37.6

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,5 +1,6 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../agent/types.js';
2
2
  import type { TraceWriter } from '../agent/trace/index.js';
3
+ import type { ReadScopeInputs } from '../agent/subagent-read-scope.js';
3
4
  export interface SkillExecutionContext {
4
5
  apiKey?: string;
5
6
  defaultModel?: AgentModelInput;
@@ -7,6 +8,7 @@ export interface SkillExecutionContext {
7
8
  callId?: string;
8
9
  dispatchSkill?: (name: string, args?: string) => Promise<string>;
9
10
  traceWriter?: TraceWriter;
11
+ getReadScopeInputs?: () => ReadScopeInputs;
10
12
  }
11
13
  export interface SkillMetadata {
12
14
  name: string;
@@ -4,4 +4,4 @@ export interface BuildResult {
4
4
  testsPassed: boolean;
5
5
  notes: string;
6
6
  }
7
- export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<BuildResult>;
7
+ export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<BuildResult>;
@@ -1,7 +1,7 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../../../agent/types.js';
2
2
  import type { VerifyResult } from './verify.js';
3
3
  import type { BuildResult } from './build.js';
4
- 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>): Promise<{
4
+ 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[]): Promise<{
5
5
  healed: boolean;
6
6
  newHealIterations: number;
7
7
  newVerifyResults: VerifyResult;
@@ -9,4 +9,4 @@ export type ParallelizeDispatchResult = {
9
9
  kind: 'failed';
10
10
  error: string;
11
11
  };
12
- export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<ParallelizeDispatchResult>;
12
+ export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<ParallelizeDispatchResult>;
@@ -1,2 +1,2 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- export declare function runPlanPhase(spec: string, research: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<string>;
2
+ export declare function runPlanPhase(spec: string, research: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<string>;
@@ -1,2 +1,2 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- export declare function runResearchPhase(spec: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<string>;
2
+ export declare function runResearchPhase(spec: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<string>;
@@ -1,3 +1,3 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
2
  import type { MintState } from '../index.js';
3
- export declare function runShipPhase(state: MintState, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<string>;
3
+ export declare function runShipPhase(state: MintState, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<string>;
@@ -1,2 +1,2 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- export declare function runSpecPhase(idea: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<string>;
2
+ export declare function runSpecPhase(idea: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<string>;
@@ -6,4 +6,4 @@ export interface VerifyResult {
6
6
  designReviewPassed: boolean;
7
7
  issues?: string[];
8
8
  }
9
- export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput): Promise<VerifyResult>;
9
+ export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[]): Promise<VerifyResult>;