mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
test(runtime): update auth fallback fixture for confirmation context
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user