@bitkyc08/opencodex 1.9.0 → 1.9.1
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/package.json +1 -1
- package/src/codex-catalog.ts +1 -1
- package/src/codex-inject.ts +1 -1
- package/src/config.ts +2 -2
- package/src/types.ts +1 -1
package/package.json
CHANGED
package/src/codex-catalog.ts
CHANGED
|
@@ -206,7 +206,7 @@ function deriveEntry(template: RawEntry | null, slug: string, desc: string, prio
|
|
|
206
206
|
* catalog sync and the proxy `/v1/models?client_version` branch.
|
|
207
207
|
* Native gpt slugs stay bare; routed models are namespaced `<provider>/<model>`.
|
|
208
208
|
*/
|
|
209
|
-
export function buildCatalogEntries(template: RawEntry | null, gptSlugs: string[], goModels: CatalogModel[], featured?: string[], wsEnabled =
|
|
209
|
+
export function buildCatalogEntries(template: RawEntry | null, gptSlugs: string[], goModels: CatalogModel[], featured?: string[], wsEnabled = true): RawEntry[] {
|
|
210
210
|
// Codex's models-manager sorts by `priority` ASC and advertises the first 5 picker-visible
|
|
211
211
|
// models to spawn_agent (sort_by_key(priority) + MAX_MODEL_OVERRIDES_IN_SPAWN_AGENT=5). Catalog
|
|
212
212
|
// ARRAY order is discarded — so "featuring" a model = giving it the LOWEST priority (0..N-1) so
|
package/src/codex-inject.ts
CHANGED
|
@@ -14,7 +14,7 @@ const OCX_SECTION_MARKER = "# Auto-injected by opencodex";
|
|
|
14
14
|
* whatever `[table]` happened to be open last (e.g. `[plugins."chrome@openai-bundled"]`), so Codex
|
|
15
15
|
* never saw a global model_provider and silently fell back to the `openai` (ChatGPT) provider.
|
|
16
16
|
*/
|
|
17
|
-
export function buildProviderTableBlock(port: number, supportsWebsockets =
|
|
17
|
+
export function buildProviderTableBlock(port: number, supportsWebsockets = true): string {
|
|
18
18
|
const lines = [
|
|
19
19
|
"",
|
|
20
20
|
OCX_SECTION_MARKER,
|
package/src/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function saveConfig(config: OcxConfig): void {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export function websocketsEnabled(config: Pick<OcxConfig, "websockets">): boolean {
|
|
61
|
-
return config.websockets
|
|
61
|
+
return config.websockets !== false;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export function getDefaultConfig(): OcxConfig {
|
|
@@ -76,7 +76,7 @@ export function getDefaultConfig(): OcxConfig {
|
|
|
76
76
|
},
|
|
77
77
|
defaultProvider: "openai",
|
|
78
78
|
subagentModels: [...DEFAULT_SUBAGENT_MODELS],
|
|
79
|
-
websockets:
|
|
79
|
+
websockets: true,
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
package/src/types.ts
CHANGED
|
@@ -175,7 +175,7 @@ export interface OcxConfig {
|
|
|
175
175
|
subagentModels?: string[];
|
|
176
176
|
/** Routed model ids ("<provider>/<model>") hidden from Codex (excluded from the catalog + /v1/models). */
|
|
177
177
|
disabledModels?: string[];
|
|
178
|
-
/** Advertise supports_websockets so Codex opens the WS endpoint. Default
|
|
178
|
+
/** Advertise supports_websockets so Codex opens the WS endpoint. Default true; set false to force HTTPS/SSE. */
|
|
179
179
|
websockets?: boolean;
|
|
180
180
|
/** Freshness window (ms) for the per-provider live `/models` cache. Defaults to 5 min. */
|
|
181
181
|
modelCacheTtlMs?: number;
|