test(codex): remove unused runtime plan helper · openclaw/openclaw@1ab00c4
vincentkoc
·
2026-05-07
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,6 @@ import path from "node:path";
|
4 | 4 | import { SessionManager } from "@mariozechner/pi-coding-agent"; |
5 | 5 | import { |
6 | 6 | abortAgentHarnessRun, |
7 | | -buildAgentRuntimePlan, |
8 | 7 | embeddedAgentLog, |
9 | 8 | nativeHookRelayTesting, |
10 | 9 | onAgentEvent, |
@@ -55,32 +54,6 @@ function createParams(sessionFile: string, workspaceDir: string): EmbeddedRunAtt
|
55 | 54 | } as EmbeddedRunAttemptParams; |
56 | 55 | } |
57 | 56 | |
58 | | -function createParamsWithRuntimePlan( |
59 | | -sessionFile: string, |
60 | | -workspaceDir: string, |
61 | | -): EmbeddedRunAttemptParams { |
62 | | -const params = createParams(sessionFile, workspaceDir); |
63 | | -return { |
64 | | - ...params, |
65 | | -runtimePlan: buildCodexRuntimePlan(params, workspaceDir), |
66 | | -}; |
67 | | -} |
68 | | - |
69 | | -function buildCodexRuntimePlan(params: EmbeddedRunAttemptParams, workspaceDir: string) { |
70 | | -return buildAgentRuntimePlan({ |
71 | | -provider: params.provider, |
72 | | -modelId: params.modelId, |
73 | | -model: params.model, |
74 | | -modelApi: params.model.api, |
75 | | -harnessId: "codex", |
76 | | -harnessRuntime: "codex", |
77 | | -config: params.config, |
78 | | - workspaceDir, |
79 | | -agentDir: tempDir, |
80 | | -thinkingLevel: params.thinkLevel, |
81 | | -}); |
82 | | -} |
83 | | - |
84 | 57 | function createCodexRuntimePlanFixture(): NonNullable<EmbeddedRunAttemptParams["runtimePlan"]> { |
85 | 58 | return { |
86 | 59 | auth: {}, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。