From 0ab4591ac9dd99efd8f35ab0af4bc592e458fcb6 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Mon, 16 Feb 2026 02:48:14 +0000 Subject: [PATCH] refactor: rename delegation-strategy to delegation-executor Align file name with class name DelegationExecutor introduced in #532. Co-Authored-By: Claude Opus 4.6 --- .changeset/empty-rename-delegation-executor.md | 3 +++ ...egation-strategy.test.ts => delegation-executor.test.ts} | 6 +++--- .../{delegation-strategy.ts => delegation-executor.ts} | 0 packages/runtime/src/orchestration/index.ts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/empty-rename-delegation-executor.md rename packages/runtime/src/orchestration/{delegation-strategy.test.ts => delegation-executor.test.ts} (99%) rename packages/runtime/src/orchestration/{delegation-strategy.ts => delegation-executor.ts} (100%) diff --git a/.changeset/empty-rename-delegation-executor.md b/.changeset/empty-rename-delegation-executor.md new file mode 100644 index 00000000..ec380ec4 --- /dev/null +++ b/.changeset/empty-rename-delegation-executor.md @@ -0,0 +1,3 @@ +--- +--- + diff --git a/packages/runtime/src/orchestration/delegation-strategy.test.ts b/packages/runtime/src/orchestration/delegation-executor.test.ts similarity index 99% rename from packages/runtime/src/orchestration/delegation-strategy.test.ts rename to packages/runtime/src/orchestration/delegation-executor.test.ts index 28e8ee19..5672ebdd 100644 --- a/packages/runtime/src/orchestration/delegation-strategy.test.ts +++ b/packages/runtime/src/orchestration/delegation-executor.test.ts @@ -4,7 +4,7 @@ import { type DelegationContext, DelegationExecutor, extractDelegationContext, -} from "./delegation-strategy.js" +} from "./delegation-executor.js" const createMockUsage = (): Usage => ({ inputTokens: 100, @@ -59,7 +59,7 @@ const createMockDelegation = (overrides?: Partial): Delegation ...overrides, }) -describe("@perstack/runtime: delegation-strategy", () => { +describe("@perstack/runtime: delegation-executor", () => { describe("DelegationExecutor", () => { it("throws error when delegations is empty", async () => { const executor = new DelegationExecutor() @@ -452,7 +452,7 @@ describe("@perstack/runtime: delegation-strategy", () => { describe("buildReturnFromDelegation()", () => { it("builds return state from completed delegation", async () => { - const { buildReturnFromDelegation } = await import("./delegation-strategy.js") + const { buildReturnFromDelegation } = await import("./delegation-executor.js") const currentSetting = createMockSetting() const resultCheckpoint = createMockCheckpoint({ status: "completed", diff --git a/packages/runtime/src/orchestration/delegation-strategy.ts b/packages/runtime/src/orchestration/delegation-executor.ts similarity index 100% rename from packages/runtime/src/orchestration/delegation-strategy.ts rename to packages/runtime/src/orchestration/delegation-executor.ts diff --git a/packages/runtime/src/orchestration/index.ts b/packages/runtime/src/orchestration/index.ts index 5d0e53c8..a2b00f8f 100644 --- a/packages/runtime/src/orchestration/index.ts +++ b/packages/runtime/src/orchestration/index.ts @@ -6,7 +6,7 @@ export { type DelegationResult, type DelegationRunOptions, extractDelegationContext, -} from "./delegation-strategy.js" +} from "./delegation-executor.js" export { SingleRunExecutor, type SingleRunExecutorOptions,