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,