test(codex): remove unused runtime plan helper

This commit is contained in:
Vincent Koc
2026-05-06 11:33:53 -07:00
parent e43ae8e8cd
commit 1ab00c4469

View File

@@ -4,7 +4,6 @@ import path from "node:path";
import { SessionManager } from "@mariozechner/pi-coding-agent";
import {
abortAgentHarnessRun,
buildAgentRuntimePlan,
embeddedAgentLog,
nativeHookRelayTesting,
onAgentEvent,
@@ -55,32 +54,6 @@ function createParams(sessionFile: string, workspaceDir: string): EmbeddedRunAtt
} as EmbeddedRunAttemptParams;
}
function createParamsWithRuntimePlan(
sessionFile: string,
workspaceDir: string,
): EmbeddedRunAttemptParams {
const params = createParams(sessionFile, workspaceDir);
return {
...params,
runtimePlan: buildCodexRuntimePlan(params, workspaceDir),
};
}
function buildCodexRuntimePlan(params: EmbeddedRunAttemptParams, workspaceDir: string) {
return buildAgentRuntimePlan({
provider: params.provider,
modelId: params.modelId,
model: params.model,
modelApi: params.model.api,
harnessId: "codex",
harnessRuntime: "codex",
config: params.config,
workspaceDir,
agentDir: tempDir,
thinkingLevel: params.thinkLevel,
});
}
function createCodexRuntimePlanFixture(): NonNullable<EmbeddedRunAttemptParams["runtimePlan"]> {
return {
auth: {},