mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
fix(scripts): restore Codex protocol config-edit type probe (#162012)
The generated Codex protocol probe still imported a private type alias removed from the maintained protocol barrel. Derive the edit type from the existing config/batchWrite request contract while preserving the upstream ConfigEdit assignability assertion. The real pinned upstream generator reproduces TS2305 on the base and passes the maintained type probe after this fix. The 11 pre-existing JSON schema diagnostics remain identical. Focused tests, changed-file checks, independent review, fresh cycle checks, and import-boundary tests pass; schemas and runtime contracts are unchanged.
This commit is contained in:
parent
8e047c3ce4
commit
f6948d0bbf
1 changed files with 1 additions and 2 deletions
|
|
@ -215,7 +215,6 @@ async function checkMaintainedProtocolTypes(sourceRoot: string): Promise<void> {
|
|||
import type {
|
||||
CodexAppServerRequestParams,
|
||||
CodexAppServerRequestResult,
|
||||
CodexConfigEdit,
|
||||
CodexDynamicToolSpec,
|
||||
CodexDynamicToolCallParams,
|
||||
CodexErrorNotification,
|
||||
|
|
@ -288,7 +287,7 @@ const openClawNullableCommandExecParams: CodexAppServerRequestParams<"command/ex
|
|||
generatedNullableCommandExecParams;
|
||||
declare const openClawConfigBatchWriteParams: CodexAppServerRequestParams<"config/batchWrite">;
|
||||
const generatedConfigBatchWriteParams: ConfigBatchWriteParams = openClawConfigBatchWriteParams;
|
||||
declare const openClawConfigEdit: CodexConfigEdit;
|
||||
declare const openClawConfigEdit: CodexAppServerRequestParams<"config/batchWrite">["edits"][number];
|
||||
const generatedConfigEdit: ConfigEdit = openClawConfigEdit;
|
||||
declare const openClawConfigValueWriteParams: CodexAppServerRequestParams<"config/value/write">;
|
||||
const generatedConfigValueWriteParams: ConfigValueWriteParams = openClawConfigValueWriteParams;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue