chore: fix lint/test gating

This commit is contained in:
Peter Steinberger
2025-12-26 23:54:30 +00:00
parent a3dc46bf9d
commit 2477ffd860
7 changed files with 21 additions and 12 deletions

View File

@@ -405,10 +405,7 @@ describe("directive parsing", () => {
agent: {
model: "openai/gpt-4.1-mini",
workspace: path.join(home, "clawd"),
allowedModels: [
"openai/gpt-4.1-mini",
"anthropic/claude-opus-4-5",
],
allowedModels: ["openai/gpt-4.1-mini", "anthropic/claude-opus-4-5"],
modelAliases: {
Opus: "anthropic/claude-opus-4-5",
},

View File

@@ -11,8 +11,8 @@ import {
buildAllowedModelSet,
buildModelAliasIndex,
modelKey,
resolveModelRefFromString,
resolveConfiguredModelRef,
resolveModelRefFromString,
} from "../agents/model-selection.js";
import {
abortEmbeddedPiRun,
@@ -579,7 +579,9 @@ export async function getReplyFromConfig(
const label = `${entry.provider}/${entry.id}`;
const aliases = aliasIndex.byKey.get(label);
const aliasSuffix =
aliases && aliases.length > 0 ? ` (alias: ${aliases.join(", ")})` : "";
aliases && aliases.length > 0
? ` (alias: ${aliases.join(", ")})`
: "";
const suffix =
entry.name && entry.name !== entry.id ? `${entry.name}` : "";
lines.push(`- ${label}${aliasSuffix}${suffix}`);