feat: 定义 AgentRunner 接口

This commit is contained in:
2026-06-09 15:11:43 +08:00
parent 5a7b8f1dcc
commit 9b52b46d3e

17
tests/agent/runner.ts Normal file
View 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>;
}