test(runtime): update auth fallback fixture for confirmation context

This commit is contained in:
若麒
2026-08-28 17:48:07 +08:00
parent 4f59ca5118
commit 676b6c2ece
@@ -12,6 +12,7 @@ import {
resolveModelBaseUrl,
writeConfigFile,
type CommandPackManager,
type LocalizedText,
type SourceFlags,
} from "bailian-cli-core";
import { authStage, type RunContext } from "../src/middleware.ts";
@@ -56,6 +57,8 @@ function makeContext(
path,
command,
flags: {},
confirmed: false,
localize: (text: LocalizedText) => (typeof text === "string" ? text : text["en-US"]),
settings,
sources,
configStore: makeConfigStore(sources.configName),