mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 13:51:39 +00:00
* fix(macos): bootstrap Codex before onboarding test * fix(plugins): activate deferred runtimes on demand * fix(macos): stage Codex runtime for onboarding probe * fix(macos): expose sanitized onboarding errors * fix(codex): reuse native CLI auth during onboarding * fix(macos): hide Crestodian without inference * fix(codex): honor explicit runtime policy during setup * fix(onboarding): redact verification errors * fix(macos): reset onboarding state with gateway route * fix(onboarding): persist Codex plugin install metadata * chore: refresh onboarding inventories * fix(macos): restart AI setup after gateway change * chore: refresh native onboarding inventory * fix(onboarding): defer gateway restart until setup persists * fix(macos): reset Crestodian on gateway changes * chore(macos): refresh native i18n inventory * fix(onboarding): harden inference setup state * docs(skills): reuse pristine Parallels snapshots * chore(macos): refresh onboarding i18n inventory * fix(onboarding): prevent stale gateway and install state * docs(skills): preserve saved Parallels sessions * fix(macos): balance AI onboarding layout * fix(parallels): parse npm workspace pack output * chore(macos): refresh onboarding i18n inventory * fix(parallels): bundle workspace runtime in package artifact * fix(parallels): isolate canonical package helper * fix(parallels): pack self-contained workspace artifact * fix(packaging): exclude macOS app bundle * fix(macos): restart inference checks after route changes * docs(changelog): defer onboarding note to release * fix(onboarding): enforce inference-first gateway setup
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
// Codex runtime plugin auto-install/repair helpers for OpenAI model selections.
|
|
import { modelSelectionShouldEnsureCodexPlugin } from "../agents/openai-routing.js";
|
|
import { createRuntimePluginModelSelectionHelpers } from "./runtime-plugin-install.js";
|
|
|
|
export const CODEX_RUNTIME_PLUGIN_ID = "codex";
|
|
const CODEX_RUNTIME_PLUGIN_LABEL = "Codex";
|
|
const CODEX_RUNTIME_PLUGIN_NPM_SPEC = "@openclaw/codex";
|
|
const CODEX_RUNTIME_PLUGIN_DESCRIPTOR = {
|
|
pluginId: CODEX_RUNTIME_PLUGIN_ID,
|
|
label: CODEX_RUNTIME_PLUGIN_LABEL,
|
|
npmSpec: CODEX_RUNTIME_PLUGIN_NPM_SPEC,
|
|
warningLabel: CODEX_RUNTIME_PLUGIN_LABEL,
|
|
};
|
|
|
|
const codexRuntimePluginInstall = createRuntimePluginModelSelectionHelpers({
|
|
descriptor: CODEX_RUNTIME_PLUGIN_DESCRIPTOR,
|
|
shouldEnsure: ({ cfg, model, agentId }) =>
|
|
modelSelectionShouldEnsureCodexPlugin({
|
|
config: cfg,
|
|
model,
|
|
agentId,
|
|
}),
|
|
});
|
|
|
|
export const ensureCodexRuntimePluginForModelSelection = codexRuntimePluginInstall.ensure;
|
|
export const repairCodexRuntimePluginInstallForModelSelection = codexRuntimePluginInstall.repair;
|