mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-25 16:42:16 +03:00
Merged after conflict resolution: the 5 conflicting test files were the base-red drains that #11201 already landed on the tip — kept the tip versions; the feature content is untouched. Validated on the combined batch board + this branch: codex-app-server + codex-gpt56-catalog 25/25, typecheck:core clean, docs-counts green (351 providers), provider-consistency 268/351/0. The opt-in codex-app-server transport (JSON-RPC-over-WS, turn/completed-awaited close, Responses SSE bridge) leaves the default codex path untouched. Thank you @arminanton — a 3.4k-line transport with the docs wave and tests to match!
17 lines
738 B
TypeScript
17 lines
738 B
TypeScript
// Kept in lockstep with the codex CLI actually installed in the OmniRoute image
|
|
// (bin/omniroute-fix.Containerfile installs `codex` latest; app-server runtime is
|
|
// 0.149.0 as of 2026-08-22). When the image's codex is bumped, refresh this so the
|
|
// fingerprint OpenAI sees from the OAuth/Responses face matches the real client
|
|
// version. Overridable per-deployment via the CODEX_CLIENT_VERSION env.
|
|
export const DEFAULT_CODEX_CLIENT_VERSION = "0.149.0";
|
|
export const CODEX_CLI_RS_ORIGINATOR = "codex_cli_rs";
|
|
|
|
export function getCodexCliRsHeaders(
|
|
version = DEFAULT_CODEX_CLIENT_VERSION
|
|
): Record<string, string> {
|
|
return {
|
|
"User-Agent": `${CODEX_CLI_RS_ORIGINATOR}/${version}`,
|
|
originator: CODEX_CLI_RS_ORIGINATOR,
|
|
};
|
|
}
|