@litfamily/litcodex 1.0.3 → 1.0.5

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.
Files changed (88) hide show
  1. package/README.md +115 -77
  2. package/dist/cli-model-route.js +27 -27
  3. package/dist/cli.js +6 -4
  4. package/dist/config-migration/catalog.d.ts +40 -1
  5. package/dist/config-migration/catalog.js +202 -57
  6. package/dist/config-migration/cli.d.ts +2 -1
  7. package/dist/config-migration/cli.js +34 -32
  8. package/dist/config-migration/gpt56-policy.d.ts +19 -10
  9. package/dist/config-migration/gpt56-policy.js +92 -50
  10. package/dist/config-migration/index.d.ts +2 -0
  11. package/dist/config-migration/index.js +28 -10
  12. package/dist/install/doctor-config.js +5 -5
  13. package/dist/install/doctor-render.js +16 -16
  14. package/dist/install/doctor.js +2 -2
  15. package/dist/install/execute.js +5 -4
  16. package/dist/install/generated-skill-payload-hashes.d.ts +30 -3
  17. package/dist/install/generated-skill-payload-hashes.js +30 -3
  18. package/dist/install/host-capabilities.d.ts +3 -4
  19. package/dist/install/host-capabilities.js +17 -19
  20. package/dist/install/install-model-prompt.js +44 -26
  21. package/dist/install/install-options.js +41 -46
  22. package/dist/install/install-presentation.js +2 -1
  23. package/dist/install/skill-catalog.d.ts +1 -1
  24. package/dist/install/skill-catalog.js +6 -1
  25. package/dist/install/skill-resource-hashes.d.ts +1 -1
  26. package/dist/install/skill-resource-hashes.js +1 -1
  27. package/dist/install/uninstall.js +6 -7
  28. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  29. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  30. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  31. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  32. package/marketplace/plugins/litcodex/components/lit-loop/agents/litcodex-default.toml +1 -1
  33. package/marketplace/plugins/litcodex/components/lit-loop/agents/litcodex-explorer.toml +1 -1
  34. package/marketplace/plugins/litcodex/components/lit-loop/agents/litcodex-librarian.toml +1 -1
  35. package/marketplace/plugins/litcodex/components/lit-loop/agents/litcodex-metis.toml +1 -1
  36. package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +1 -1
  37. package/marketplace/plugins/litcodex/components/lit-loop/dist/lit-mark.d.ts +2 -2
  38. package/marketplace/plugins/litcodex/components/lit-loop/dist/lit-mark.js +4 -44
  39. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  40. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  41. package/marketplace/plugins/litcodex/components/rules/dist/model-metadata.d.ts +2 -1
  42. package/marketplace/plugins/litcodex/components/rules/dist/model-metadata.js +9 -1
  43. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  44. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  45. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  46. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  47. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +22 -19
  48. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/canonical-library.md +7 -1
  49. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +17 -11
  50. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json +64 -0
  51. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +25 -0
  52. package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +94 -0
  53. package/marketplace/plugins/litcodex/skills/readme-studio/references/decoration-patterns.md +36 -0
  54. package/marketplace/plugins/litcodex/skills/readme-studio/references/facts-and-assembly.md +36 -0
  55. package/marketplace/plugins/litcodex/skills/readme-studio/references/motion-and-delivery.md +47 -0
  56. package/marketplace/plugins/litcodex/skills/readme-studio/references/typography-and-imagery.md +34 -0
  57. package/marketplace/plugins/litcodex/skills/readme-studio/scripts/validate-readme-facts.mjs +130 -0
  58. package/marketplace/plugins/litcodex/skills/readme-studio/templates/cover-source.json +35 -0
  59. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/index.html +61 -0
  60. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/index.motion.json +6 -0
  61. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package-lock.json +1969 -0
  62. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package.json +14 -0
  63. package/marketplace/plugins/litcodex/skills/readme-studio/templates/readme-cover-section.md +85 -0
  64. package/marketplace/plugins/litcodex/skills/readme-studio/templates/readme-facts.json +11 -0
  65. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json +3783 -0
  66. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package.json +15 -0
  67. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/ReadmeCover.tsx +102 -0
  68. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/Root.tsx +48 -0
  69. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/index.tsx +4 -0
  70. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/layout.ts +35 -0
  71. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/motion.ts +25 -0
  72. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/package-lock.json +133 -0
  73. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/package.json +8 -0
  74. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +238 -0
  75. package/model-catalog.json +163 -4
  76. package/node_modules/@litcodex/lit-loop/agents/litcodex-default.toml +1 -1
  77. package/node_modules/@litcodex/lit-loop/agents/litcodex-explorer.toml +1 -1
  78. package/node_modules/@litcodex/lit-loop/agents/litcodex-librarian.toml +1 -1
  79. package/node_modules/@litcodex/lit-loop/agents/litcodex-metis.toml +1 -1
  80. package/node_modules/@litcodex/lit-loop/directives/litwork.md +1 -1
  81. package/node_modules/@litcodex/lit-loop/dist/lit-mark.d.ts +2 -2
  82. package/node_modules/@litcodex/lit-loop/dist/lit-mark.js +4 -44
  83. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  84. package/package.json +2 -2
  85. package/readme-assets/badge-version.svg +1 -1
  86. package/readme-assets/cover-motion-still.webp +0 -0
  87. package/readme-assets/cover-motion.webp +0 -0
  88. package/readme-assets/litfamily-machines.png +0 -0
@@ -1,46 +1,78 @@
1
+ import { acceptedModelIds, canonicalModelId, FALLBACK_CATALOG, modelDefinition, } from "./catalog.js";
2
+ function requiredRoleModel(role) {
3
+ const model = FALLBACK_CATALOG.roles[role]?.model;
4
+ if (model === undefined)
5
+ throw new Error(`The bundled model catalog has no ${role} route.`);
6
+ return model;
7
+ }
8
+ function requiredRecommendedModel(role) {
9
+ const model = FALLBACK_CATALOG.models.find((entry) => entry.recommendedRole === role)?.id;
10
+ if (model === undefined)
11
+ throw new Error(`The bundled model catalog has no ${role} recommendation.`);
12
+ return model;
13
+ }
14
+ function requiredLegacyProfileModel(profile) {
15
+ const model = FALLBACK_CATALOG.models.find((entry) => entry.legacyProfile === profile)?.id;
16
+ if (model === undefined)
17
+ throw new Error(`The bundled model catalog has no ${profile} legacy profile.`);
18
+ return model;
19
+ }
20
+ function requiredModelForAlias(alias) {
21
+ const model = modelDefinition(alias);
22
+ if (model === undefined)
23
+ throw new Error(`The bundled model catalog has no ${alias} alias.`);
24
+ return model.id;
25
+ }
26
+ export const GPT6_MODELS = {
27
+ astra: requiredRoleModel("plan"),
28
+ sol: requiredRecommendedModel("coding-lead"),
29
+ luna: requiredRoleModel("default"),
30
+ };
31
+ /** Legacy profile ids are marked in model-catalog.json and keep the public selector stable. */
1
32
  export const GPT56_MODELS = {
2
- sol: "gpt-5.6",
3
- terra: "gpt-5.6-terra",
4
- luna: "gpt-5.6-luna",
33
+ sol: requiredLegacyProfileModel("sol"),
34
+ terra: requiredLegacyProfileModel("terra"),
35
+ luna: requiredLegacyProfileModel("luna"),
5
36
  };
6
- export const ASTRA_MODEL = "gpt-6-astra";
7
- export const EXPLICIT_GPT56_SOL_MODEL = "gpt-5.6-sol";
37
+ export const ASTRA_MODEL = GPT6_MODELS.astra;
38
+ export const EXPLICIT_GPT56_SOL_MODEL = requiredModelForAlias("sol");
8
39
  export const GPT56_CONTEXT_WINDOW_LIMIT = 372_000;
9
40
  export const GPT56_AUTO_COMPACT_TOKEN_LIMIT = 334_800;
41
+ /** Validate a model/effort pair against the authored catalog and legacy safety rules. */
10
42
  export function unsafeEffectiveRoute(current) {
11
43
  const model = terminalModelId(current.model);
12
- if (model === ASTRA_MODEL) {
13
- if (current.model_reasoning_effort !== "low" &&
14
- current.model_reasoning_effort !== "medium" &&
15
- current.model_reasoning_effort !== "high" &&
16
- current.model_reasoning_effort !== "xhigh" &&
17
- current.model_reasoning_effort !== "max") {
18
- return "gpt-6-astra requires low, medium, high, xhigh, or max reasoning effort";
19
- }
44
+ const effort = current.model_reasoning_effort;
45
+ if (model === null || effort === undefined)
20
46
  return null;
47
+ const definition = modelDefinition(model);
48
+ if (definition === undefined)
49
+ return null;
50
+ if (definition.generation === "gpt-6" && !definition.supportedEfforts.includes(effort)) {
51
+ return `${model} requires ${formatEfforts(definition.supportedEfforts)} reasoning effort`;
21
52
  }
22
- if (model === GPT56_MODELS.luna && current.model_reasoning_effort === "xhigh") {
23
- return "gpt-5.6-luna cannot use xhigh reasoning effort; use max";
24
- }
25
- if (model === GPT56_MODELS.luna &&
26
- current.model_reasoning_effort !== "high" &&
27
- current.model_reasoning_effort !== "max") {
28
- return "gpt-5.6-luna requires high or max reasoning effort";
29
- }
30
- if (model === GPT56_MODELS.terra &&
31
- current.model_reasoning_effort !== "high" &&
32
- current.model_reasoning_effort !== "xhigh") {
33
- return "gpt-5.6-terra requires high or xhigh reasoning effort";
53
+ if (definition.safeExistingEfforts !== undefined &&
54
+ !definition.safeExistingEfforts.includes(effort)) {
55
+ if (definition.legacyProfile === "luna" && effort === "xhigh") {
56
+ return `${model} cannot use xhigh reasoning effort; use max`;
57
+ }
58
+ return `${model} requires ${formatEfforts(definition.safeExistingEfforts)} reasoning effort`;
34
59
  }
35
60
  return null;
36
61
  }
37
62
  export function isKnownGpt56Model(model) {
38
- const terminal = terminalModelId(model);
39
- return (terminal === GPT56_MODELS.sol ||
40
- terminal === EXPLICIT_GPT56_SOL_MODEL ||
41
- terminal === GPT56_MODELS.terra ||
42
- terminal === GPT56_MODELS.luna ||
43
- terminal === ASTRA_MODEL);
63
+ return modelDefinition(model) !== undefined;
64
+ }
65
+ /** Resolve an explicit catalog id into the config target while retaining the exact spelling. */
66
+ export function selectedModel(model, effort) {
67
+ const canonical = canonicalModelId(model);
68
+ if (canonical === undefined) {
69
+ throw new Error(`Unknown model ${JSON.stringify(model)}; accepted ids: ${acceptedModelIds().join(", ")}`);
70
+ }
71
+ const selected = { model: canonical, model_reasoning_effort: effort };
72
+ const unsafe = unsafeEffectiveRoute(selected);
73
+ if (unsafe !== null)
74
+ throw new Error(`Invalid ${canonical} model route: ${unsafe}.`);
75
+ return selected;
44
76
  }
45
77
  function terminalModelId(model) {
46
78
  if (model === undefined)
@@ -58,14 +90,15 @@ export function chatgptDesiredRouteModel(model) {
58
90
  const terminal = terminalModelId(model);
59
91
  return terminal === GPT56_MODELS.sol || terminal === EXPLICIT_GPT56_SOL_MODEL ? EXPLICIT_GPT56_SOL_MODEL : model;
60
92
  }
61
- /** Select a profile while keeping Astra's wider effort set separate from legacy GPT-5.6. */
93
+ /** Select a legacy profile or the existing Astra lead default. */
62
94
  export function selectedProfile(profile, effort) {
63
95
  const selected = {
64
96
  model: profile === "astra" ? ASTRA_MODEL : GPT56_MODELS[profile],
65
97
  model_reasoning_effort: effort,
66
98
  };
67
- if (profile !== "astra" && (effort === "low" || effort === "medium")) {
68
- throw new Error(`Invalid ${profile} model route: legacy GPT-5.6 models require high, xhigh, or max reasoning effort.`);
99
+ const definition = modelDefinition(selected.model);
100
+ if (definition !== undefined && !definition.configurableEfforts.includes(effort)) {
101
+ throw new Error(`${selected.model} requires ${formatEfforts(definition.configurableEfforts)} reasoning effort`);
69
102
  }
70
103
  const unsafe = unsafeEffectiveRoute(selected);
71
104
  if (unsafe !== null)
@@ -111,18 +144,22 @@ export function classifyCatalogInput(args) {
111
144
  const originalDispatchId = typeof current.model === "string" ? current.model : null;
112
145
  if (Object.keys(current).length === 0)
113
146
  return { class: "fresh", originalDispatchId };
114
- if (originalDispatchId === GPT56_MODELS.sol ||
115
- originalDispatchId === GPT56_MODELS.terra ||
116
- originalDispatchId === GPT56_MODELS.luna ||
117
- originalDispatchId === ASTRA_MODEL) {
118
- return { class: "existing_managed", originalDispatchId };
119
- }
120
- if (previousState?.managed === true && matchesExact(current, previousState.written)) {
147
+ if (originalDispatchId === EXPLICIT_GPT56_SOL_MODEL &&
148
+ previousState?.managed === true &&
149
+ matchesExact(current, previousState.written)) {
121
150
  return { class: "managed_legacy", originalDispatchId };
122
151
  }
123
152
  if (originalDispatchId === EXPLICIT_GPT56_SOL_MODEL) {
124
153
  return { class: "explicit_sol_dispatch", originalDispatchId };
125
154
  }
155
+ if (originalDispatchId === GPT56_MODELS.sol ||
156
+ originalDispatchId === GPT56_MODELS.terra ||
157
+ originalDispatchId === GPT56_MODELS.luna ||
158
+ originalDispatchId === ASTRA_MODEL ||
159
+ originalDispatchId === GPT6_MODELS.sol ||
160
+ originalDispatchId === GPT6_MODELS.luna) {
161
+ return { class: "existing_managed", originalDispatchId };
162
+ }
126
163
  if (catalog.managedProfiles.some((profile) => matchesExact(current, profile.match))) {
127
164
  return { class: "managed_legacy", originalDispatchId };
128
165
  }
@@ -132,13 +169,12 @@ export function classifyCatalogInput(args) {
132
169
  return { class: "custom", originalDispatchId };
133
170
  }
134
171
  function isKnownCurrent(current) {
135
- const model = current.model;
136
- const effort = current.model_reasoning_effort;
137
- const legacyManaged = (model === GPT56_MODELS.sol || model === GPT56_MODELS.terra) && (effort === "high" || effort === "xhigh");
138
- const lunaManaged = model === GPT56_MODELS.luna && (effort === "high" || effort === "xhigh" || effort === "max");
139
- const astraManaged = model === ASTRA_MODEL &&
140
- (effort === "low" || effort === "medium" || effort === "high" || effort === "xhigh" || effort === "max");
141
- return ((legacyManaged || lunaManaged || astraManaged) &&
172
+ return (current.model !== undefined &&
173
+ current.model_reasoning_effort !== undefined &&
174
+ canonicalModelId(current.model) === current.model &&
175
+ current.model !== EXPLICIT_GPT56_SOL_MODEL &&
176
+ modelDefinition(current.model) !== undefined &&
177
+ unsafeEffectiveRoute(current) === null &&
142
178
  isKnownContextLimitPair(current) &&
143
179
  current.plan_mode_reasoning_effort === undefined);
144
180
  }
@@ -151,8 +187,14 @@ function isKnownContextLimitPair(current) {
151
187
  function matchesExact(current, profile) {
152
188
  const currentEntries = Object.entries(current);
153
189
  const profileEntries = Object.entries(profile);
154
- if (currentEntries.length !== profileEntries.length) {
190
+ if (currentEntries.length !== profileEntries.length)
155
191
  return false;
156
- }
157
192
  return profileEntries.every(([key, value]) => currentEntries.some(([currentKey, currentValue]) => currentKey === key && currentValue === value));
158
193
  }
194
+ function formatEfforts(efforts) {
195
+ if (efforts.length < 2)
196
+ return efforts.join("");
197
+ if (efforts.length === 2)
198
+ return `${efforts[0]} or ${efforts[1]}`;
199
+ return `${efforts.slice(0, -1).join(", ")}, or ${efforts.at(-1)}`;
200
+ }
@@ -19,6 +19,8 @@ export interface MigrateOptions {
19
19
  profile?: Gpt56Profile;
20
20
  effort?: ReasoningEffort;
21
21
  modelContexts?: Gpt56ModelContexts;
22
+ /** Exact catalog model selected by the installer; existing config remains untouched unless reconfigured. */
23
+ modelOverride?: string;
22
24
  /** Override the sol model identifier (e.g. "gpt-5.6-sol" for ChatGPT-subscription auth). */
23
25
  solModelOverride?: string;
24
26
  /** Output style id to persist (e.g. "asd-ste100"). "off" removes the key. Omit to leave unchanged. */
@@ -2,11 +2,11 @@
2
2
  // backup; session-start records per-file errors without blocking the Codex turn.
3
3
  import { dirname, join } from "node:path";
4
4
  import { backupConfigFile } from "./backup.js";
5
- import { readModelCatalog } from "./catalog.js";
5
+ import { modelDefinition, readModelCatalog } from "./catalog.js";
6
6
  import { configPathExists, readConfigFile, writeConfigFile } from "./config-file-io.js";
7
7
  import { configPaths } from "./config-paths.js";
8
8
  import { CodexConfigMigrationError } from "./errors.js";
9
- import { decideCatalogApplication, selectedProfile, unsafeEffectiveRoute, } from "./gpt56-policy.js";
9
+ import { decideCatalogApplication, selectedModel, selectedProfile, unsafeEffectiveRoute, } from "./gpt56-policy.js";
10
10
  import { ensureStableMultiAgent, hasManagedMultiAgentGuard, removeSubagentDefaults } from "./multi-agent-v2-guard.js";
11
11
  import { ensureNativeDefaultAgentConfig } from "./native-default-route.js";
12
12
  import { ensureGpt56ProfileFiles } from "./profile-files.js";
@@ -25,22 +25,40 @@ export async function migrateCodexConfig(options = {}) {
25
25
  const mode = options.mode ?? "install";
26
26
  const dryRun = options.dryRun ?? false;
27
27
  const reconfigure = options.reconfigure ?? false;
28
- const selected = options.profile ?? "astra";
29
- const baseTarget = selectedProfile(selected, options.effort ?? (selected === "astra" ? "xhigh" : "max"));
30
- const target = options.solModelOverride !== undefined && selected === "sol"
31
- ? { ...baseTarget, model: options.solModelOverride }
32
- : baseTarget;
33
28
  // Opt-out short-circuit: no reads, no writes.
34
29
  if (env["LITCODEX_CONFIG_MIGRATION_DISABLED"]?.trim() === "1") {
35
30
  return { changed: [], backups: [], skipped: [], stateWritten: false };
36
31
  }
37
- const subagentModel = options.subagentModel ?? "gpt-5.6-luna";
38
- const subagentEffort = options.subagentEffort ?? "max";
32
+ const catalog = await readModelCatalog(env);
33
+ const defaultDefinition = modelDefinition(catalog.current.model, catalog);
34
+ const selected = options.profile ?? defaultDefinition?.configProfile ?? "astra";
35
+ const selectedEffort = options.effort ??
36
+ (options.modelOverride === undefined && options.profile === undefined
37
+ ? catalog.current.model_reasoning_effort
38
+ : options.modelOverride === undefined
39
+ ? selected === "astra"
40
+ ? "xhigh"
41
+ : "max"
42
+ : (modelDefinition(options.modelOverride)?.recommendedEffort ??
43
+ defaultDefinition?.recommendedEffort ??
44
+ catalog.current.model_reasoning_effort));
45
+ const baseTarget = options.modelOverride !== undefined
46
+ ? selectedModel(options.modelOverride, selectedEffort)
47
+ : options.profile !== undefined
48
+ ? selectedProfile(selected, selectedEffort)
49
+ : catalog.current;
50
+ const target = options.solModelOverride !== undefined && selected === "sol"
51
+ ? { ...baseTarget, model: options.solModelOverride }
52
+ : baseTarget;
53
+ const defaultHelper = catalog.roles["default"];
54
+ const subagentModel = options.subagentModel ?? defaultHelper?.model ?? catalog.current.model;
55
+ const subagentEffort = options.subagentEffort ??
56
+ defaultHelper?.model_reasoning_effort ??
57
+ catalog.current.model_reasoning_effort;
39
58
  const unsafeSubagent = unsafeEffectiveRoute({ model: subagentModel, model_reasoning_effort: subagentEffort });
40
59
  if (unsafeSubagent !== null) {
41
60
  throw new CodexConfigMigrationError("UNSAFE_MODEL_ROUTE", `Requested subagent default route is unsafe: ${unsafeSubagent}.`, null, { model: subagentModel, effort: subagentEffort });
42
61
  }
43
- const catalog = await readModelCatalog(env);
44
62
  const statePath = resolveStatePath(env);
45
63
  const state = await readState(statePath);
46
64
  const previousFiles = "files" in state ? state.files : undefined;
@@ -1,4 +1,5 @@
1
- import { ASTRA_MODEL, EXPLICIT_GPT56_SOL_MODEL, GPT56_MODELS, unsafeEffectiveRoute, } from "../config-migration/gpt56-policy.js";
1
+ import { modelDefinition } from "../config-migration/catalog.js";
2
+ import { EXPLICIT_GPT56_SOL_MODEL, unsafeEffectiveRoute, } from "../config-migration/gpt56-policy.js";
2
3
  import { hasReservedSpawnSchemaMismatch } from "../config-migration/multi-agent-v2-guard.js";
3
4
  import { readRootSettings } from "../config-migration/root-settings.js";
4
5
  /** Read-only effective root-route inspection shared by the doctor surface and its tests. */
@@ -47,8 +48,7 @@ export function inspectEffectiveConfig(fs, configPath) {
47
48
  }
48
49
  }
49
50
  function isManagedRoute(model, effort) {
50
- return ((model === ASTRA_MODEL &&
51
- (effort === "low" || effort === "medium" || effort === "high" || effort === "xhigh" || effort === "max")) ||
52
- ((model === GPT56_MODELS.sol || model === GPT56_MODELS.terra) && (effort === "high" || effort === "xhigh")) ||
53
- (model === GPT56_MODELS.luna && (effort === "high" || effort === "xhigh" || effort === "max")));
51
+ const definition = modelDefinition(model);
52
+ return (definition?.configurableEfforts.includes(effort) === true &&
53
+ unsafeEffectiveRoute({ model, model_reasoning_effort: effort }) === null);
54
54
  }
@@ -4,29 +4,29 @@ const MAX_RESOURCE_PATH_LENGTH = 120;
4
4
  export function renderDoctorText(report) {
5
5
  const lines = [
6
6
  "litcodex doctor",
7
- ` codex binary found: ${yn(report.codexBinaryFound)}`,
8
- ` marketplace registered: ${yn(report.marketplaceRegistered)}`,
9
- ` plugin installed: ${yn(report.pluginInstalled)}`,
10
- ` hook wired: ${yn(report.hooksWired)}`,
11
- ` config managed: ${yn(report.configManaged)}`,
12
- ` effective config: ${report.effectiveConfig.state} (${report.effectiveConfig.detail})`,
13
- ` desired agent config: ${report.agentRouting.desiredConfig}`,
14
- ` installed TOMLs: ${report.agentRouting.installedTomls}`,
15
- ` spawn override: ${report.agentRouting.spawnOverride}`,
16
- ` effective child: ${report.agentRouting.effectiveChild}`,
17
- ` agents installed: ${yn(report.agentsInstalled)}`,
18
- ` skill catalog complete: ${yn(report.skillCatalogComplete)}`,
7
+ ` binary: ${yn(report.codexBinaryFound)}`,
8
+ ` marketplace: ${yn(report.marketplaceRegistered)}`,
9
+ ` plugin: ${yn(report.pluginInstalled)}`,
10
+ ` hook: ${yn(report.hooksWired)}`,
11
+ ` managed config: ${yn(report.configManaged)}`,
12
+ ` config: ${report.effectiveConfig.state} (${report.effectiveConfig.detail})`,
13
+ ` agent config: ${report.agentRouting.desiredConfig}`,
14
+ ` agent TOMLs: ${report.agentRouting.installedTomls}`,
15
+ ` spawn: ${report.agentRouting.spawnOverride}`,
16
+ ` child route: ${report.agentRouting.effectiveChild}`,
17
+ ` agents: ${yn(report.agentsInstalled)}`,
18
+ ` skills complete: ${yn(report.skillCatalogComplete)}`,
19
19
  ...(report.missingSkillResourcePaths.length > 0
20
20
  ? [` missing skill resources: ${missingResourceSummary(report.missingSkillResourcePaths)}`]
21
21
  : []),
22
- ` lit-handoff installed: ${yn(report.handoffInstalled)}`,
23
- ` science payload installed: ${yn(report.scientificVisualizationInstalled)}`,
22
+ ` lit-handoff: ${yn(report.handoffInstalled)}`,
23
+ ` science payload: ${yn(report.scientificVisualizationInstalled)}`,
24
24
  ...(report.autoUpdate === undefined
25
25
  ? []
26
26
  : [
27
- ` foreground auto-update: ${report.autoUpdate.enabled ? "enabled" : "disabled"} (${report.autoUpdate.status ?? "no receipt"}; ${report.autoUpdate.detail})`,
27
+ ` auto-update: ${report.autoUpdate.enabled ? "enabled" : "disabled"} (${report.autoUpdate.status ?? "no receipt"}; ${report.autoUpdate.detail})`,
28
28
  ]),
29
- ` concurrency 20: ${capabilityText(report.capabilities.concurrency)}`,
29
+ ` concurrency: ${capabilityText(report.capabilities.concurrency)}`,
30
30
  ` probe-only explicit context/auto-compaction override: ${capabilityText(report.capabilities.autoCompaction)}`,
31
31
  ];
32
32
  if (report.issues.length > 0) {
@@ -13,7 +13,7 @@ import { detectAuthMode } from "./auth-mode.js";
13
13
  import { probeBundledSkills } from "./bundled-skills.js";
14
14
  import { findCodexBinary, probeMarketplaceRegistration, probePluginInstalled, resolveCodexHome, } from "./codex.js";
15
15
  import { inspectEffectiveConfig } from "./doctor-config.js";
16
- import { probeHostCapabilities } from "./host-capabilities.js";
16
+ import { modelContextsForWrites, probeHostCapabilities } from "./host-capabilities.js";
17
17
  import { canonicalMarketplacePath, LITCODEX_MARKETPLACE, managedMarketplaceRoot } from "./marketplace.js";
18
18
  import { probeSkillCatalogPayload } from "./skill-catalog.js";
19
19
  export { renderDoctorText } from "./doctor-render.js";
@@ -61,7 +61,7 @@ export function runDoctor(deps) {
61
61
  reason: "codex-binary-unavailable",
62
62
  observedSource: "Codex binary discovery",
63
63
  },
64
- modelContexts: { "gpt-5.6": null, "gpt-5.6-terra": null, "gpt-5.6-luna": null },
64
+ modelContexts: modelContextsForWrites(),
65
65
  };
66
66
  if (!codexBinaryFound) {
67
67
  issues.push("Codex CLI not found on PATH or in CODEX_HOME.");
@@ -54,6 +54,7 @@ export async function executeInstallPlan(steps, deps) {
54
54
  hostCapabilities = probeHostCapabilities(codexBin, deps.spawn, {
55
55
  env: deps.env,
56
56
  ...(deps.profile === undefined ? {} : { profile: deps.profile }),
57
+ ...(deps.leadModel === undefined ? {} : { model: deps.leadModel }),
57
58
  ...(deps.effort === undefined ? {} : { effort: deps.effort }),
58
59
  });
59
60
  if (hostCapabilities.concurrency.status === "unavailable") {
@@ -75,11 +76,12 @@ export async function executeInstallPlan(steps, deps) {
75
76
  mode: "install",
76
77
  dryRun: true,
77
78
  ...(deps.profile === undefined ? {} : { profile: deps.profile }),
79
+ ...(deps.leadModel === undefined ? {} : { modelOverride: deps.leadModel }),
78
80
  ...(deps.effort === undefined ? {} : { effort: deps.effort }),
79
81
  ...(deps.reconfigure === undefined ? {} : { reconfigure: deps.reconfigure }),
80
82
  ...(deps.subagentModel === undefined ? {} : { subagentModel: deps.subagentModel }),
81
83
  ...(deps.subagentEffort === undefined ? {} : { subagentEffort: deps.subagentEffort }),
82
- modelContexts: modelContextsForWrites(hostCapabilities),
84
+ modelContexts: modelContextsForWrites(),
83
85
  });
84
86
  deps.onPreflightEnd?.({
85
87
  stage: "config-dry-run",
@@ -181,11 +183,10 @@ async function runConfigUpdate(step, deps) {
181
183
  ...(deps.effort === undefined ? {} : { effort: deps.effort }),
182
184
  ...(deps.style === undefined ? {} : { style: deps.style }),
183
185
  ...(deps.reconfigure === undefined ? {} : { reconfigure: deps.reconfigure }),
184
- ...(deps.hostCapabilities === undefined
185
- ? {}
186
- : { modelContexts: modelContextsForWrites(deps.hostCapabilities) }),
186
+ ...(deps.hostCapabilities === undefined ? {} : { modelContexts: modelContextsForWrites() }),
187
187
  ...(deps.subagentModel === undefined ? {} : { subagentModel: deps.subagentModel }),
188
188
  ...(deps.subagentEffort === undefined ? {} : { subagentEffort: deps.subagentEffort }),
189
+ ...(deps.leadModel === undefined ? {} : { modelOverride: deps.leadModel }),
189
190
  ...(deps.authMode === "chatgpt" || deps.leadModel === EXPLICIT_GPT56_SOL_MODEL
190
191
  ? { solModelOverride: EXPLICIT_GPT56_SOL_MODEL }
191
192
  : {}),
@@ -9,7 +9,7 @@ export declare const BROWSER_DRIVE_PAYLOAD_HASHES: {
9
9
  readonly "scripts/capability-probe.mjs": "95bac59fd820e5a1e1d7f43e984ddf9f8ffdcb10b4803d566afe06be316ad953";
10
10
  };
11
11
  export declare const FRONTEND_UIUX_PAYLOAD_HASHES: {
12
- readonly "SKILL.md": "53c8b25a7e5293b6c3b43e5be34962c504d3a7cbdb37a60c876a0432da7103ff";
12
+ readonly "SKILL.md": "7e1df018a427c7d10a1ab28cc9e53facafa688c12b315eb4d432ceb6e6bb78b7";
13
13
  readonly "references/_canonical-corpus/ATTRIBUTION.md": "a73cd147a533442218a9adef53d99e0eaf15c10d8db4819d9d1542727f077b92";
14
14
  readonly "references/_canonical-corpus/LICENSE": "b083425948376611de9b92b0aeb7377e604505756ea427e541a34d9b030d4dc1";
15
15
  readonly "references/_canonical-corpus/LICENSE-Apache-2.0.txt": "9d95806a26532623360eb84bb17d298f394b55ef73fb4c0796d99b4319b2b0da";
@@ -184,10 +184,11 @@ export declare const FRONTEND_UIUX_PAYLOAD_HASHES: {
184
184
  readonly "references/_canonical-corpus/ui-ux-db/scripts/search.py": "6a565f960a672e16dd064ccadd3406db999bfd1a4bff4d609b36a8d4c6450b86";
185
185
  readonly "references/adaptive-layout.md": "88358fe6580f5ad0d746669344f4b13376238479642dfa01b8a7ad5a7cb257f8";
186
186
  readonly "references/brand-and-imagery.md": "0de21fbb0013eaca9ac4dc6e63455b988d14e80faa3c38a3a41082cfcd454913";
187
- readonly "references/canonical-library.md": "e4ced0d1c6209637de935185cee1953eb49381e378538e624c789930d1b646d6";
188
- readonly "references/complete-contract.md": "3ca3edbc62d97e23391489c3ebaa7d6b9cbbb53dacb8726d93cfd7c4634fe2db";
187
+ readonly "references/canonical-library.md": "afea215bbd96c67396652f65c933d45d9603a135bc48a73951aa3b98593498a9";
188
+ readonly "references/complete-contract.md": "fa0297c508694f77a39b0a30eb3ca086e83240bec908d457a78f1bcdfbba9f3d";
189
189
  readonly "references/composition.md": "ab03d94e607d7a6cbdaf468f800e556eb94d146702b258f1022c407bbe15595a";
190
190
  readonly "references/creative-directions.md": "b24df9bc3d86a4e1e0ea012e5f4ec74dd03d9c75720b23499ac05a69da4c1cd7";
191
+ readonly "references/default-editorial-pixel.json": "0dc947b3f951755e6bb4f8bd8f779aabfcf1cb875f44e0b367260f711315366e";
191
192
  readonly "references/evidence-review.md": "b2fb951b11ce7fc05b679abfd11875a496d790387e16887e532aecf88fe7a4cd";
192
193
  readonly "references/implementation-platforms.md": "ae5567fdf4fe0b99c5ddb1730d08c60af7c0e1eeac371b655427c190676f2af2";
193
194
  readonly "references/inclusive-interface.md": "f51c85deaaee4b2e191e597dc18f615048997ba6f43a271409442b5523a586ad";
@@ -195,6 +196,7 @@ export declare const FRONTEND_UIUX_PAYLOAD_HASHES: {
195
196
  readonly "references/operating-lanes.md": "359a62ec9797dd5cea3be578d27d7b3e963218f7436a140745b95d1c951ab52a";
196
197
  readonly "references/performance-delivery.md": "7e414f93af6ee1d46d77a740258828fbdf8db31fc8bf76b09175fb94b7639318";
197
198
  readonly "references/product-direction.md": "aed47a7e5b26b2befce501d017b4a5e2129f846b07cdad61f7a2d6a3bbe4ae9f";
199
+ readonly "references/production-interview.md": "1b38863d4d745e1dd7ffdf5a9d01c8c2b1c0274c7969281c93b8b13b7b0a829a";
198
200
  readonly "references/redesign-playbook.md": "02c52fe80f0062e518ff6630e37747487d520310478f2c12f69eafb32db5d202";
199
201
  readonly "references/system-foundations.md": "f4d753917479adb85cb4634d36071475d1bb77e2e9ad28e24b9ea11d22a6cbc1";
200
202
  readonly "references/taste-direction.md": "b95595f552ea6371a0f21ffc64a3bc02a1d26bcac65f273fdc5ede4a3d0aafc4";
@@ -208,6 +210,31 @@ export declare const FRONTEND_UIUX_PAYLOAD_HASHES: {
208
210
  readonly "scripts/validate-design-contract.mjs": "ea10c844b40ab3d078685652ddd37b2122dbdde0b48b515d713b24538bff07fc";
209
211
  readonly "scripts/verify-canonical-corpus.mjs": "6d083e5dcdd8345fe5419d7d8e11e26a4e006cd7227c6f76c52fbf6a1bae9b34";
210
212
  };
213
+ export declare const README_STUDIO_PAYLOAD_HASHES: {
214
+ readonly "SKILL.md": "0752b53682edb7927b25101e1f6f576fce35cc4378d7bb8674756b82ab3f5480";
215
+ readonly "references/decoration-patterns.md": "b29cad61cc551a2f5253d6a7b9b77787f60289b9ce42a7981da6fc36cfcd639b";
216
+ readonly "references/facts-and-assembly.md": "534e6be4b4e5ab959f048a53ccfe403d52489f855005224a9699f17e06614790";
217
+ readonly "references/motion-and-delivery.md": "4ce353735b251891e558162dc98a17266ed3bf2adfa624ea152f9c03468b980e";
218
+ readonly "references/typography-and-imagery.md": "3531536a07011c8eec5dba49d915f9a0309fb1c4bf74a43852c3cf1315c4c638";
219
+ readonly "scripts/validate-readme-facts.mjs": "202a6038f25ee9056b86f3e99149ab57c1e371266355689f5da8068b5b536f68";
220
+ readonly "templates/cover-source.json": "2f65ec7706431a308619f57c5741c5fa0b24bd60c0c2c649c364aafdb8170e26";
221
+ readonly "templates/hyperframes-cover/index.html": "cd89b5c6c0fbeeb895eb38a7eb9e232d622323a48adc9773b548032acf6d6c64";
222
+ readonly "templates/hyperframes-cover/index.motion.json": "18dab5464db575a5048e0f3a476c0eddbf284545147283ba04025a8495d16e43";
223
+ readonly "templates/hyperframes-cover/package-lock.json": "6cb809955794acbefa0f8f4ba0a00ba7d91e0b79c65345653ef5a5a8e21d59d8";
224
+ readonly "templates/hyperframes-cover/package.json": "9ec0e871126193a545f898f0ed994412a518e2bf06170cd07b3fc9e61cae2530";
225
+ readonly "templates/readme-cover-section.md": "324e61dd601c42af7117f0eed7ef6ca58c66444c0607919831a64685f4d49b7a";
226
+ readonly "templates/readme-facts.json": "3155f9b36f98db20d588f68358d0152aa24ad395c1cb62c39a72d2084abb6ddd";
227
+ readonly "templates/remotion-cover/package-lock.json": "09fb65f7b5a5088e4f568e6e444a0606f220116d3b3eae0d9ccbec17573219b1";
228
+ readonly "templates/remotion-cover/package.json": "88448fd7021c32527fb36ee4d6a709f32f1289eae126d9532fca033c4b2debeb";
229
+ readonly "templates/remotion-cover/src/ReadmeCover.tsx": "bdaddbadcddd99102e2f915eb16eaa1d1def9d8aacd777772afc6d66d106443d";
230
+ readonly "templates/remotion-cover/src/Root.tsx": "0b3e22dd556216d67bbbca4745f5b041c9fc2a986ca3ba9945bf4b916a51e004";
231
+ readonly "templates/remotion-cover/src/index.tsx": "32185b5fe29233ed658013191cf02a1ba3181fe15dd4c43848136a344887ff0f";
232
+ readonly "templates/remotion-cover/src/layout.ts": "5e50ac6becac693bf4e3833ab3373107629f731d7f93a45ae99302b84303a221";
233
+ readonly "templates/remotion-cover/src/motion.ts": "53301128d9097de2b66b7a6ff93c0f0d5f5282c93743e4ea7cf2aa38368d8556";
234
+ readonly "templates/typography/package-lock.json": "b0c21ae4cf4528ddbc6a1b90b078de720aeffc62030a80fe2d3cc722d8159f4b";
235
+ readonly "templates/typography/package.json": "3f3b4f810d24a5118e91b8d65d977180b17c6ce06b46bce5361cc5106a06c2e9";
236
+ readonly "templates/typography/shape-text-to-svg.mjs": "452c4b39f51b3a6a8a66cd9d1c1b4d7eea1f41321549acbfac7d720167216260";
237
+ };
211
238
  export declare const VISUAL_QA_PAYLOAD_HASHES: {
212
239
  readonly "SKILL.md": "792a9d596d088c52ed7a4c6a20b4c7130b04c4f5f9a32ebc6df2757adac442dd";
213
240
  readonly "references/capture-playbook.md": "cf840e2e186ea2cbc7791bd04ef88d6e5348237e2aeda4965f5293655b511aef";
@@ -10,7 +10,7 @@ export const BROWSER_DRIVE_PAYLOAD_HASHES = {
10
10
  "scripts/capability-probe.mjs": "95bac59fd820e5a1e1d7f43e984ddf9f8ffdcb10b4803d566afe06be316ad953",
11
11
  };
12
12
  export const FRONTEND_UIUX_PAYLOAD_HASHES = {
13
- "SKILL.md": "53c8b25a7e5293b6c3b43e5be34962c504d3a7cbdb37a60c876a0432da7103ff",
13
+ "SKILL.md": "7e1df018a427c7d10a1ab28cc9e53facafa688c12b315eb4d432ceb6e6bb78b7",
14
14
  "references/_canonical-corpus/ATTRIBUTION.md": "a73cd147a533442218a9adef53d99e0eaf15c10d8db4819d9d1542727f077b92",
15
15
  "references/_canonical-corpus/LICENSE": "b083425948376611de9b92b0aeb7377e604505756ea427e541a34d9b030d4dc1",
16
16
  "references/_canonical-corpus/LICENSE-Apache-2.0.txt": "9d95806a26532623360eb84bb17d298f394b55ef73fb4c0796d99b4319b2b0da",
@@ -185,10 +185,11 @@ export const FRONTEND_UIUX_PAYLOAD_HASHES = {
185
185
  "references/_canonical-corpus/ui-ux-db/scripts/search.py": "6a565f960a672e16dd064ccadd3406db999bfd1a4bff4d609b36a8d4c6450b86",
186
186
  "references/adaptive-layout.md": "88358fe6580f5ad0d746669344f4b13376238479642dfa01b8a7ad5a7cb257f8",
187
187
  "references/brand-and-imagery.md": "0de21fbb0013eaca9ac4dc6e63455b988d14e80faa3c38a3a41082cfcd454913",
188
- "references/canonical-library.md": "e4ced0d1c6209637de935185cee1953eb49381e378538e624c789930d1b646d6",
189
- "references/complete-contract.md": "3ca3edbc62d97e23391489c3ebaa7d6b9cbbb53dacb8726d93cfd7c4634fe2db",
188
+ "references/canonical-library.md": "afea215bbd96c67396652f65c933d45d9603a135bc48a73951aa3b98593498a9",
189
+ "references/complete-contract.md": "fa0297c508694f77a39b0a30eb3ca086e83240bec908d457a78f1bcdfbba9f3d",
190
190
  "references/composition.md": "ab03d94e607d7a6cbdaf468f800e556eb94d146702b258f1022c407bbe15595a",
191
191
  "references/creative-directions.md": "b24df9bc3d86a4e1e0ea012e5f4ec74dd03d9c75720b23499ac05a69da4c1cd7",
192
+ "references/default-editorial-pixel.json": "0dc947b3f951755e6bb4f8bd8f779aabfcf1cb875f44e0b367260f711315366e",
192
193
  "references/evidence-review.md": "b2fb951b11ce7fc05b679abfd11875a496d790387e16887e532aecf88fe7a4cd",
193
194
  "references/implementation-platforms.md": "ae5567fdf4fe0b99c5ddb1730d08c60af7c0e1eeac371b655427c190676f2af2",
194
195
  "references/inclusive-interface.md": "f51c85deaaee4b2e191e597dc18f615048997ba6f43a271409442b5523a586ad",
@@ -196,6 +197,7 @@ export const FRONTEND_UIUX_PAYLOAD_HASHES = {
196
197
  "references/operating-lanes.md": "359a62ec9797dd5cea3be578d27d7b3e963218f7436a140745b95d1c951ab52a",
197
198
  "references/performance-delivery.md": "7e414f93af6ee1d46d77a740258828fbdf8db31fc8bf76b09175fb94b7639318",
198
199
  "references/product-direction.md": "aed47a7e5b26b2befce501d017b4a5e2129f846b07cdad61f7a2d6a3bbe4ae9f",
200
+ "references/production-interview.md": "1b38863d4d745e1dd7ffdf5a9d01c8c2b1c0274c7969281c93b8b13b7b0a829a",
199
201
  "references/redesign-playbook.md": "02c52fe80f0062e518ff6630e37747487d520310478f2c12f69eafb32db5d202",
200
202
  "references/system-foundations.md": "f4d753917479adb85cb4634d36071475d1bb77e2e9ad28e24b9ea11d22a6cbc1",
201
203
  "references/taste-direction.md": "b95595f552ea6371a0f21ffc64a3bc02a1d26bcac65f273fdc5ede4a3d0aafc4",
@@ -209,6 +211,31 @@ export const FRONTEND_UIUX_PAYLOAD_HASHES = {
209
211
  "scripts/validate-design-contract.mjs": "ea10c844b40ab3d078685652ddd37b2122dbdde0b48b515d713b24538bff07fc",
210
212
  "scripts/verify-canonical-corpus.mjs": "6d083e5dcdd8345fe5419d7d8e11e26a4e006cd7227c6f76c52fbf6a1bae9b34",
211
213
  };
214
+ export const README_STUDIO_PAYLOAD_HASHES = {
215
+ "SKILL.md": "0752b53682edb7927b25101e1f6f576fce35cc4378d7bb8674756b82ab3f5480",
216
+ "references/decoration-patterns.md": "b29cad61cc551a2f5253d6a7b9b77787f60289b9ce42a7981da6fc36cfcd639b",
217
+ "references/facts-and-assembly.md": "534e6be4b4e5ab959f048a53ccfe403d52489f855005224a9699f17e06614790",
218
+ "references/motion-and-delivery.md": "4ce353735b251891e558162dc98a17266ed3bf2adfa624ea152f9c03468b980e",
219
+ "references/typography-and-imagery.md": "3531536a07011c8eec5dba49d915f9a0309fb1c4bf74a43852c3cf1315c4c638",
220
+ "scripts/validate-readme-facts.mjs": "202a6038f25ee9056b86f3e99149ab57c1e371266355689f5da8068b5b536f68",
221
+ "templates/cover-source.json": "2f65ec7706431a308619f57c5741c5fa0b24bd60c0c2c649c364aafdb8170e26",
222
+ "templates/hyperframes-cover/index.html": "cd89b5c6c0fbeeb895eb38a7eb9e232d622323a48adc9773b548032acf6d6c64",
223
+ "templates/hyperframes-cover/index.motion.json": "18dab5464db575a5048e0f3a476c0eddbf284545147283ba04025a8495d16e43",
224
+ "templates/hyperframes-cover/package-lock.json": "6cb809955794acbefa0f8f4ba0a00ba7d91e0b79c65345653ef5a5a8e21d59d8",
225
+ "templates/hyperframes-cover/package.json": "9ec0e871126193a545f898f0ed994412a518e2bf06170cd07b3fc9e61cae2530",
226
+ "templates/readme-cover-section.md": "324e61dd601c42af7117f0eed7ef6ca58c66444c0607919831a64685f4d49b7a",
227
+ "templates/readme-facts.json": "3155f9b36f98db20d588f68358d0152aa24ad395c1cb62c39a72d2084abb6ddd",
228
+ "templates/remotion-cover/package-lock.json": "09fb65f7b5a5088e4f568e6e444a0606f220116d3b3eae0d9ccbec17573219b1",
229
+ "templates/remotion-cover/package.json": "88448fd7021c32527fb36ee4d6a709f32f1289eae126d9532fca033c4b2debeb",
230
+ "templates/remotion-cover/src/ReadmeCover.tsx": "bdaddbadcddd99102e2f915eb16eaa1d1def9d8aacd777772afc6d66d106443d",
231
+ "templates/remotion-cover/src/Root.tsx": "0b3e22dd556216d67bbbca4745f5b041c9fc2a986ca3ba9945bf4b916a51e004",
232
+ "templates/remotion-cover/src/index.tsx": "32185b5fe29233ed658013191cf02a1ba3181fe15dd4c43848136a344887ff0f",
233
+ "templates/remotion-cover/src/layout.ts": "5e50ac6becac693bf4e3833ab3373107629f731d7f93a45ae99302b84303a221",
234
+ "templates/remotion-cover/src/motion.ts": "53301128d9097de2b66b7a6ff93c0f0d5f5282c93743e4ea7cf2aa38368d8556",
235
+ "templates/typography/package-lock.json": "b0c21ae4cf4528ddbc6a1b90b078de720aeffc62030a80fe2d3cc722d8159f4b",
236
+ "templates/typography/package.json": "3f3b4f810d24a5118e91b8d65d977180b17c6ce06b46bce5361cc5106a06c2e9",
237
+ "templates/typography/shape-text-to-svg.mjs": "452c4b39f51b3a6a8a66cd9d1c1b4d7eea1f41321549acbfac7d720167216260",
238
+ };
212
239
  export const VISUAL_QA_PAYLOAD_HASHES = {
213
240
  "SKILL.md": "792a9d596d088c52ed7a4c6a20b4c7130b04c4f5f9a32ebc6df2757adac442dd",
214
241
  "references/capture-playbook.md": "cf840e2e186ea2cbc7791bd04ef88d6e5348237e2aeda4965f5293655b511aef",
@@ -1,6 +1,5 @@
1
1
  import type { Gpt56Profile, ReasoningEffort } from "../config-migration/gpt56-policy.js";
2
2
  import type { SpawnLike } from "./codex.js";
3
- declare const MODELS: readonly ["gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna"];
4
3
  export type CapabilityStatus = "hard" | "advisory" | "unavailable";
5
4
  export interface CapabilityReport {
6
5
  readonly status: CapabilityStatus;
@@ -13,13 +12,13 @@ export interface CapabilityReport {
13
12
  export interface HostCapabilities {
14
13
  readonly concurrency: CapabilityReport;
15
14
  readonly autoCompaction: CapabilityReport;
16
- readonly modelContexts: Readonly<Record<(typeof MODELS)[number], number | null>>;
15
+ readonly modelContexts: Readonly<Record<string, number | null>>;
17
16
  }
18
17
  export interface CapabilityProbeSelection {
19
18
  readonly profile?: Gpt56Profile;
19
+ readonly model?: string;
20
20
  readonly effort?: ReasoningEffort;
21
21
  readonly env?: NodeJS.ProcessEnv;
22
22
  }
23
23
  export declare function probeHostCapabilities(codexBin: string, spawn: SpawnLike, selection?: CapabilityProbeSelection): HostCapabilities;
24
- export declare function modelContextsForWrites(capabilities: HostCapabilities): HostCapabilities["modelContexts"];
25
- export {};
24
+ export declare function modelContextsForWrites(): HostCapabilities["modelContexts"];
@@ -1,21 +1,16 @@
1
- import { ASTRA_MODEL, alignedContextLimits, GPT56_AUTO_COMPACT_TOKEN_LIMIT } from "../config-migration/gpt56-policy.js";
1
+ import { FALLBACK_CATALOG } from "../config-migration/catalog.js";
2
+ import { ASTRA_MODEL, alignedContextLimits, GPT56_AUTO_COMPACT_TOKEN_LIMIT, GPT56_MODELS, } from "../config-migration/gpt56-policy.js";
2
3
  import { classifyCodexVersion } from "./codex-version.js";
3
4
  import { probeStrictConfig } from "./strict-config-probe.js";
4
5
  const HARD_CONCURRENCY_LIMIT = 20;
5
6
  const PROBE_TIMEOUT_MS = 5_000;
6
- const MODELS = ["gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna"];
7
+ const MODELS = FALLBACK_CATALOG.models.filter((model) => model.contextProbe).map((model) => model.id);
7
8
  export function probeHostCapabilities(codexBin, spawn, selection = {}) {
8
9
  const versionResult = run(spawn, codexBin, ["--version"], PROBE_TIMEOUT_MS, selection.env);
9
10
  const versionSupport = classifyCodexVersion(versionResult.stdout, versionResult.stderr);
10
11
  const modelsResult = run(spawn, codexBin, ["debug", "models", "--bundled"], PROBE_TIMEOUT_MS, selection.env);
11
12
  const modelContexts = parseModelContexts(modelsResult);
12
- const selectedModel = selection.profile === "astra"
13
- ? ASTRA_MODEL
14
- : selection.profile === "terra"
15
- ? MODELS[1]
16
- : selection.profile === "sol"
17
- ? MODELS[0]
18
- : MODELS[2];
13
+ const selectedModel = selection.model ?? modelForProfile(selection.profile);
19
14
  const selectedEffort = selection.effort ?? "max";
20
15
  const selectedContextLimits = selectedModel === ASTRA_MODEL ? undefined : alignedContextLimits(modelContexts[selectedModel]);
21
16
  const strictOverrides = [
@@ -75,18 +70,13 @@ export function probeHostCapabilities(codexBin, spawn, selection = {}) {
75
70
  eligible: selectedContextLimits !== undefined,
76
71
  accepted: contextProbe.kind === "accepted",
77
72
  timedOut: isTimeout(modelsResult) || contextProbe.kind === "timeout",
78
- contexts: [selectedModel === ASTRA_MODEL ? null : modelContexts[selectedModel]],
73
+ contexts: [selectedModel === ASTRA_MODEL ? null : (modelContexts[selectedModel] ?? null)],
79
74
  }),
80
75
  modelContexts,
81
76
  };
82
77
  }
83
- export function modelContextsForWrites(capabilities) {
84
- void capabilities;
85
- return {
86
- "gpt-5.6": null,
87
- "gpt-5.6-terra": null,
88
- "gpt-5.6-luna": null,
89
- };
78
+ export function modelContextsForWrites() {
79
+ return Object.fromEntries(MODELS.map((model) => [model, null]));
90
80
  }
91
81
  function concurrencyReport(args) {
92
82
  const observedSource = `codex-cli ${args.versionSupport.version ?? "unknown"} strict-config + version policy`;
@@ -154,7 +144,7 @@ function run(spawn, command, args, timeout = PROBE_TIMEOUT_MS, env) {
154
144
  return spawn(command, args, { stdio: "pipe", timeout, ...(env === undefined ? {} : { env }) });
155
145
  }
156
146
  function parseModelContexts(result) {
157
- const empty = { "gpt-5.6": null, "gpt-5.6-terra": null, "gpt-5.6-luna": null };
147
+ const empty = Object.fromEntries(MODELS.map((model) => [model, null]));
158
148
  if (result.error || result.status !== 0)
159
149
  return empty;
160
150
  try {
@@ -167,7 +157,8 @@ function parseModelContexts(result) {
167
157
  continue;
168
158
  const slug = item["slug"];
169
159
  const context = item["context_window"];
170
- if ((slug === MODELS[0] || slug === MODELS[1] || slug === MODELS[2]) &&
160
+ if (typeof slug === "string" &&
161
+ MODELS.some((model) => model === slug) &&
171
162
  typeof context === "number" &&
172
163
  Number.isFinite(context)) {
173
164
  contexts[slug] = context;
@@ -181,6 +172,13 @@ function parseModelContexts(result) {
181
172
  throw error;
182
173
  }
183
174
  }
175
+ function modelForProfile(profile) {
176
+ if (profile === "astra")
177
+ return ASTRA_MODEL;
178
+ if (profile === undefined)
179
+ return GPT56_MODELS.luna;
180
+ return GPT56_MODELS[profile];
181
+ }
184
182
  function isTimeout(result) {
185
183
  return result.error instanceof Error && "code" in result.error && result.error.code === "ETIMEDOUT";
186
184
  }