codex-copilot-dx 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/codex-model-catalog.mjs +22 -11
package/README.md
CHANGED
|
@@ -26,9 +26,9 @@ Codex Auto-review uses the hidden `codex-auto-review` model ID. CCDX maps it to
|
|
|
26
26
|
|
|
27
27
|
Codex App requests a versioned, capability-rich model catalog that is different from Copilot's raw model list. CCDX reads the complete catalog bundled with the installed Codex App and preserves every other model entry and capability. It exposes each managed GPT-6 entry only when Copilot advertises that exact model as enabled, selectable, OpenAI-owned, and Responses-capable.
|
|
28
28
|
|
|
29
|
-
When an installed 0.155.x catalog does not yet contain `gpt-6-sol` or `gpt-6-luna`, CCDX derives their client-compatible entries from that catalog's GPT-6 Astra schema and the published OpenAI Codex model definitions at commit `0a2eb4696c26ac33204bcd255721ab30220a4774`.
|
|
29
|
+
When an installed 0.155.x catalog does not yet contain `gpt-6-sol` or `gpt-6-luna`, CCDX derives their client-compatible entries from that catalog's GPT-6 Astra schema and the published OpenAI Codex model definitions at commit `0a2eb4696c26ac33204bcd255721ab30220a4774`. When an installed 0.158+ catalog contains `gpt-6-sol` but not `gpt-6.1-sol`, CCDX derives only the missing 6.1 entry from that client's Sol schema and OpenAI Codex model identity/defaults at commit `ab84d71f5767e4a565ce81c2c426287cb48c7918`. Fallback reasoning controls are intersected with Copilot's advertised efforts; every other bundled entry retains its established behavior. A newer client-provided entry supplies its schema and future fields while CCDX still gates its visibility, speed tiers, and 6.1 Sol reasoning controls against Copilot.
|
|
30
30
|
|
|
31
|
-
CCDX exposes GPT-6 Standard paths and removes unverified speed-tier metadata.
|
|
31
|
+
CCDX exposes GPT-6 Standard paths and removes unverified speed-tier metadata. Existing GPT-6 bundled reasoning-effort options remain unchanged; 6.1 Sol is limited to efforts advertised by Copilot. Fast follows the exact upstream-variant rule above. Versioned model discovery matches the bundled catalog to the client's `client_version`, including the nested Codex CLI binary in current macOS App bundles, caches it by application binary identity, and reloads it after an App update. If a matching usable catalog cannot be loaded, the versioned models request returns `503`; an unversioned request returns the Copilot-style list.
|
|
32
32
|
|
|
33
33
|
`/v1/models` still attempts live discovery first. With a usable in-process catalog, it limits that upstream wait to 1.5 seconds (or a shorter configured upstream timeout) before falling back to last-known-good data. Without a catalog it retains the regular upstream timeout. Received HTTP `401`/`403` responses remain errors, not cached successes; fallback does not grant inference access. This does not change the explicitly live `ccdx models` command.
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -4,11 +4,17 @@ import os from "node:os";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { CODEX_GPT6_MODEL } from "./models.mjs";
|
|
6
6
|
|
|
7
|
-
//
|
|
8
|
-
// at commit 0a2eb4696c26ac33204bcd255721ab30220a4774.
|
|
9
|
-
//
|
|
10
|
-
//
|
|
7
|
+
// GPT-6 Sol/Luna compatibility metadata comes from OpenAI Codex's public models
|
|
8
|
+
// catalog at commit 0a2eb4696c26ac33204bcd255721ab30220a4774. GPT-6.1 Sol
|
|
9
|
+
// identity and defaults come from commit ab84d71f5767e4a565ce81c2c426287cb48c7918.
|
|
10
|
+
// The installed client's Astra or Sol entry supplies its schema and instructions.
|
|
11
11
|
const GPT6_COMPATIBILITY_SPECS = new Map([
|
|
12
|
+
["gpt-6.1-sol", Object.freeze({
|
|
13
|
+
display_name: "GPT-6.1-Sol",
|
|
14
|
+
description: "Latest workhorse model for coding and everyday work.",
|
|
15
|
+
default_reasoning_level: "low",
|
|
16
|
+
priority: 1,
|
|
17
|
+
})],
|
|
12
18
|
["gpt-6-sol", Object.freeze({
|
|
13
19
|
display_name: "GPT-6-Sol",
|
|
14
20
|
description: "Workhorse model for coding and everyday work.",
|
|
@@ -33,8 +39,12 @@ export { CODEX_GPT6_MODEL };
|
|
|
33
39
|
export const CODEX_APP_BINARY_PATHS = [
|
|
34
40
|
"/Applications/Codex.app/Contents/Resources/codex",
|
|
35
41
|
"/Applications/ChatGPT.app/Contents/Resources/codex",
|
|
42
|
+
"/Applications/Codex.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex",
|
|
43
|
+
"/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex",
|
|
36
44
|
path.join(os.homedir(), "Applications", "Codex.app", "Contents", "Resources", "codex"),
|
|
37
45
|
path.join(os.homedir(), "Applications", "ChatGPT.app", "Contents", "Resources", "codex"),
|
|
46
|
+
path.join(os.homedir(), "Applications", "Codex.app", "Contents", "Resources", "codex-cli", "CodexCLI.app", "Contents", "MacOS", "codex"),
|
|
47
|
+
path.join(os.homedir(), "Applications", "ChatGPT.app", "Contents", "Resources", "codex-cli", "CodexCLI.app", "Contents", "MacOS", "codex"),
|
|
38
48
|
];
|
|
39
49
|
export const CODEX_MODEL_CATALOG_TIMEOUT_MS = 5_000;
|
|
40
50
|
export const CODEX_MODEL_CATALOG_MAX_BUFFER = 8 * 1024 * 1024;
|
|
@@ -96,7 +106,7 @@ function catalogModelForCopilot(model, copilotModels, { filterReasoning = false
|
|
|
96
106
|
const patched = {
|
|
97
107
|
...structuredClone(model),
|
|
98
108
|
visibility: "list",
|
|
99
|
-
supported_reasoning_levels: filterReasoning && reasoning.size
|
|
109
|
+
supported_reasoning_levels: filterReasoning && reasoning.size && Array.isArray(model.supported_reasoning_levels)
|
|
100
110
|
? model.supported_reasoning_levels.filter(({ effort }) => reasoning.has(effort))
|
|
101
111
|
: model.supported_reasoning_levels,
|
|
102
112
|
};
|
|
@@ -111,17 +121,18 @@ function catalogModelForCopilot(model, copilotModels, { filterReasoning = false
|
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
function compatibilityModel(codexCatalog, slug) {
|
|
114
|
-
const
|
|
124
|
+
const isGpt61Sol = slug === "gpt-6.1-sol";
|
|
125
|
+
const template = codexCatalog.models.find((model) => model.slug === (isGpt61Sol ? "gpt-6-sol" : CODEX_GPT6_MODEL));
|
|
115
126
|
const spec = GPT6_COMPATIBILITY_SPECS.get(slug);
|
|
116
|
-
if (!
|
|
127
|
+
if (!template || !spec || (isGpt61Sol && !Array.isArray(template.supported_reasoning_levels))) return null;
|
|
117
128
|
return {
|
|
118
|
-
...structuredClone(
|
|
129
|
+
...structuredClone(template),
|
|
119
130
|
...spec,
|
|
120
131
|
slug,
|
|
121
132
|
supports_parallel_tool_calls: true,
|
|
122
|
-
multi_agent_reasoning_effort: null,
|
|
133
|
+
multi_agent_reasoning_effort: isGpt61Sol ? "xhigh" : null,
|
|
123
134
|
supports_experimental_context: false,
|
|
124
|
-
minimal_client_version: "0.155.0",
|
|
135
|
+
minimal_client_version: isGpt61Sol ? "0.158.0" : "0.155.0",
|
|
125
136
|
};
|
|
126
137
|
}
|
|
127
138
|
|
|
@@ -141,7 +152,7 @@ export function buildCodexModelResponse({ copilotModels, codexCatalog } = {}) {
|
|
|
141
152
|
const models = codexCatalog.models.map((model) => {
|
|
142
153
|
if (!MANAGED_GPT6_MODELS.has(model.slug)) return model;
|
|
143
154
|
if (!isEligibleCopilotGpt6(copilotModels, model.slug)) return { ...model, visibility: "hide" };
|
|
144
|
-
return catalogModelForCopilot(model, copilotModels);
|
|
155
|
+
return catalogModelForCopilot(model, copilotModels, { filterReasoning: model.slug === "gpt-6.1-sol" });
|
|
145
156
|
});
|
|
146
157
|
for (const slug of GPT6_COMPATIBILITY_SPECS.keys()) {
|
|
147
158
|
if (bundledSlugs.has(slug) || !isEligibleCopilotGpt6(copilotModels, slug)) continue;
|