chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -78,10 +78,7 @@ export async function modelsAliasesAddCommand(
runtime.log(`Alias ${alias} -> ${resolved.provider}/${resolved.model}`);
}
export async function modelsAliasesRemoveCommand(
aliasRaw: string,
runtime: RuntimeEnv,
) {
export async function modelsAliasesRemoveCommand(aliasRaw: string, runtime: RuntimeEnv) {
const alias = normalizeAlias(aliasRaw);
const updated = await updateConfig((cfg) => {
const nextModels = { ...cfg.agents?.defaults?.models };
@@ -111,9 +108,7 @@ export async function modelsAliasesRemoveCommand(
runtime.log(`Updated ${CONFIG_PATH_CLAWDBOT}`);
if (
!updated.agents?.defaults?.models ||
Object.values(updated.agents.defaults.models).every(
(entry) => !entry?.alias?.trim(),
)
Object.values(updated.agents.defaults.models).every((entry) => !entry?.alias?.trim())
) {
runtime.log("No aliases configured.");
}