refactor: tier 文件重命名为 agent-mock/agent-scenario/agent-llm
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"test": "bun test --path-ignore-patterns 'tests/agent/**'",
|
"test": "bun test --path-ignore-patterns 'tests/agent/**'",
|
||||||
"test:e2e": "bun test tests/agent/",
|
"test:e2e": "bun test tests/agent/ --path-ignore-patterns 'e2e-llm-judge*'",
|
||||||
"test:e2e:llm": "bun test tests/agent/e2e-llm-judge.test.ts --timeout 120000",
|
"test:e2e:llm": "bun test tests/agent/e2e-llm-judge.test.ts --timeout 120000",
|
||||||
"lint": "oxlint",
|
"lint": "oxlint",
|
||||||
"format": "oxfmt .",
|
"format": "oxfmt .",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { RuneConfig } from "../../src/types.ts";
|
import type { RuneConfig } from "../../src/types.ts";
|
||||||
import type { AgentRunner, AgentResult } from "./runner.ts";
|
import type { AgentRunner, AgentResult } from "./runner.ts";
|
||||||
import { CommandLevelRunner } from "./tier1-command.ts";
|
import { CommandLevelRunner } from "./agent-mock.ts";
|
||||||
|
|
||||||
export type PlanOverride = (
|
export type PlanOverride = (
|
||||||
projectDir: string,
|
projectDir: string,
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { mkdir, writeFile } from "node:fs/promises";
|
import { mkdir, writeFile } from "node:fs/promises";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { createRunner } from "./tier1-command.ts";
|
import { createRunner } from "./agent-mock.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { createRunner } from "./tier1-command.ts";
|
import { createRunner } from "./agent-mock.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { createRunner } from "./tier1-command.ts";
|
import { createRunner } from "./agent-mock.ts";
|
||||||
import { ScenarioRunner, type BuildOverride } from "./tier2-scenario.ts";
|
import { ScenarioRunner, type BuildOverride } from "./agent-scenario.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { CommandLevelRunner } from "./tier1-command.ts";
|
import { CommandLevelRunner } from "./agent-mock.ts";
|
||||||
import { ScenarioRunner } from "./tier2-scenario.ts";
|
import { ScenarioRunner } from "./agent-scenario.ts";
|
||||||
import type { PlanOverride } from "./tier2-scenario.ts";
|
import type { PlanOverride } from "./agent-scenario.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { createRunner } from "./tier1-command.ts";
|
import { createRunner } from "./agent-mock.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { LLMJudgeRunner, isLLMAvailable } from "./tier3-llm-judge.ts";
|
import { LLMJudgeRunner, isLLMAvailable } from "./agent-llm.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
|
||||||
import { createRunner } from "./tier1-command.ts";
|
import { createRunner } from "./agent-mock.ts";
|
||||||
import {
|
import {
|
||||||
setupTempDir,
|
setupTempDir,
|
||||||
cleanupTempDir,
|
cleanupTempDir,
|
||||||
|
|||||||
Reference in New Issue
Block a user