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:
Peter Steinberger 2026-09-30 10:35:07 -07:00 • committed by GitHub
parent 8e047c3ce4
commit f6948d0bbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;