feat: add config --section

This commit is contained in:
Peter Steinberger
2026-01-09 21:27:33 +01:00
parent 24605379b9
commit 564caf49bb
3 changed files with 68 additions and 12 deletions

View File

@@ -97,14 +97,17 @@ import {
} from "./openai-codex-model-default.js";
import { ensureSystemdUserLingerInteractive } from "./systemd-linger.js";
type WizardSection =
| "model"
| "providers"
| "gateway"
| "daemon"
| "workspace"
| "skills"
| "health";
export const CONFIGURE_WIZARD_SECTIONS = [
"workspace",
"model",
"gateway",
"daemon",
"providers",
"skills",
"health",
] as const;
export type WizardSection = (typeof CONFIGURE_WIZARD_SECTIONS)[number];
type ProvidersWizardMode = "configure" | "remove";
@@ -1304,3 +1307,10 @@ export async function runConfigureWizard(
export async function configureCommand(runtime: RuntimeEnv = defaultRuntime) {
await runConfigureWizard({ command: "configure" }, runtime);
}
export async function configureCommandWithSections(
sections: WizardSection[],
runtime: RuntimeEnv = defaultRuntime,
) {
await runConfigureWizard({ command: "configure", sections }, runtime);
}