mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:30:44 +00:00
test(codex): remove unused runtime plan helper
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user