@oh-my-pi/pi-catalog 18.2.9 → 18.2.10

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.
@@ -1,4 +1,5 @@
1
1
  import { CHARM_HYPER_API_BASE_URL, normalizeCharmHyperBaseUrl } from "../wire/charm-hyper";
2
+ import { CODEX_CLIENT_VERSION } from "../wire/codex";
2
3
  import { PERSONAL_GITHUB_COPILOT_BASE_URL } from "../wire/github-copilot";
3
4
  import {
4
5
  SINGULARITYAPI_DEV_API_BASE_URL,
@@ -68,6 +69,9 @@ export function resolveOllamaModelCacheProviderId(providerId: string, baseUrl?:
68
69
  /** Resolve the cache namespace used by a provider's model-manager options without constructing those options. */
69
70
  export function resolveModelCacheProviderId(providerId: string, options: ModelCacheProviderIdOptions = {}): string {
70
71
  switch (providerId) {
72
+ case "openai-codex":
73
+ // The backend filters the roster by client version.
74
+ return `${providerId}:${CODEX_CLIENT_VERSION}`;
71
75
  case "ollama":
72
76
  return resolveOllamaModelCacheProviderId(providerId, options.baseUrl);
73
77
  case "cursor":
@@ -50,6 +50,7 @@ export function openaiCodexModelManagerOptions(
50
50
  const { resolveAccounts, clientVersion, fetch } = config;
51
51
  return {
52
52
  providerId: "openai-codex",
53
+ cacheProviderId: resolveModelCacheProviderId("openai-codex"),
53
54
  dynamicModelsAuthoritative: true,
54
55
  ...(resolveAccounts
55
56
  ? {
package/src/wire/codex.ts CHANGED
@@ -6,12 +6,13 @@ export const CODEX_BASE_URL = "https://chatgpt.com/backend-api";
6
6
 
7
7
  /**
8
8
  * Pinned OpenAI Codex client version (corresponds to @openai/codex package version).
9
+ * Updated from npm by `bun run check-spoofed-versions --update`.
9
10
  *
10
11
  * The backend version-gates model availability against this value on both
11
- * `/models?client_version=` and `/responses` (`gpt-6-astra` requires ≥ 0.153.0);
12
- * an older pin silently hides newer SKUs from discovery.
12
+ * `/models?client_version=` and `/responses`; 0.155.1 exposes GPT-6 Sol and Luna.
13
+ * An older pin silently hides newer SKUs from discovery.
13
14
  */
14
- export const CODEX_CLIENT_VERSION = "0.153.0";
15
+ export const CODEX_CLIENT_VERSION = "0.155.1";
15
16
 
16
17
  export const OPENAI_HEADERS = {
17
18
  BETA: "OpenAI-Beta",