feat: 定义 AgentRunner 接口
This commit is contained in:
17
tests/agent/runner.ts
Normal file
17
tests/agent/runner.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { RuneConfig } from "../../src/types.ts";
|
||||
|
||||
export interface AgentResult {
|
||||
files: string[];
|
||||
}
|
||||
|
||||
export interface AgentRunner {
|
||||
readonly tier: number;
|
||||
runPlan(
|
||||
projectDir: string,
|
||||
changeName: string,
|
||||
docName: string,
|
||||
config: RuneConfig,
|
||||
): Promise<AgentResult>;
|
||||
runBuild(projectDir: string, changeName: string, config: RuneConfig): Promise<AgentResult>;
|
||||
runArchive(projectDir: string, changeName: string, config: RuneConfig): Promise<AgentResult>;
|
||||
}
|
||||
Reference in New Issue
Block a user