mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 04:01:05 +00:00
chore(qa): align qa cli provider input types
This commit is contained in:
committed by
Peter Steinberger
parent
5aa4fd3216
commit
816a3eae8a
@@ -83,7 +83,7 @@ describe("qa cli runtime", () => {
|
||||
it("normalizes legacy live-openai suite runs onto the frontier provider mode", async () => {
|
||||
await runQaSuiteCommand({
|
||||
repoRoot: "/tmp/openclaw-repo",
|
||||
providerMode: "live-openai" as "live-frontier",
|
||||
providerMode: "live-openai",
|
||||
scenarioIds: ["approval-turn-tool-followthrough"],
|
||||
});
|
||||
|
||||
@@ -174,7 +174,7 @@ describe("qa cli runtime", () => {
|
||||
it("normalizes legacy live-openai manual runs onto the frontier provider mode", async () => {
|
||||
await runQaManualLaneCommand({
|
||||
repoRoot: "/tmp/openclaw-repo",
|
||||
providerMode: "live-openai" as "live-frontier",
|
||||
providerMode: "live-openai",
|
||||
message: "read qa kickoff and reply short",
|
||||
});
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
defaultQaModelForMode,
|
||||
normalizeQaProviderMode,
|
||||
type QaProviderMode,
|
||||
type QaProviderModeInput,
|
||||
} from "./run-config.js";
|
||||
import { runQaSuite } from "./suite.js";
|
||||
|
||||
@@ -71,7 +72,7 @@ export async function runQaLabSelfCheckCommand(opts: { repoRoot?: string; output
|
||||
export async function runQaSuiteCommand(opts: {
|
||||
repoRoot?: string;
|
||||
outputDir?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
primaryModel?: string;
|
||||
alternateModel?: string;
|
||||
fastMode?: boolean;
|
||||
@@ -95,7 +96,7 @@ export async function runQaSuiteCommand(opts: {
|
||||
|
||||
export async function runQaManualLaneCommand(opts: {
|
||||
repoRoot?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
primaryModel?: string;
|
||||
alternateModel?: string;
|
||||
fastMode?: boolean;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { Command } from "commander";
|
||||
import type { QaProviderModeInput } from "./run-config.js";
|
||||
|
||||
type QaLabCliRuntime = typeof import("./cli.runtime.js");
|
||||
|
||||
@@ -17,7 +18,7 @@ async function runQaSelfCheck(opts: { repoRoot?: string; output?: string }) {
|
||||
async function runQaSuite(opts: {
|
||||
repoRoot?: string;
|
||||
outputDir?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
primaryModel?: string;
|
||||
alternateModel?: string;
|
||||
fastMode?: boolean;
|
||||
@@ -29,7 +30,7 @@ async function runQaSuite(opts: {
|
||||
|
||||
async function runQaManualLane(opts: {
|
||||
repoRoot?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
primaryModel?: string;
|
||||
alternateModel?: string;
|
||||
fastMode?: boolean;
|
||||
@@ -129,7 +130,7 @@ export function registerQaLabCli(program: Command) {
|
||||
async (opts: {
|
||||
repoRoot?: string;
|
||||
outputDir?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
model?: string;
|
||||
altModel?: string;
|
||||
scenario?: string[];
|
||||
@@ -164,7 +165,7 @@ export function registerQaLabCli(program: Command) {
|
||||
async (opts: {
|
||||
message: string;
|
||||
repoRoot?: string;
|
||||
providerMode?: "mock-openai" | "live-frontier";
|
||||
providerMode?: QaProviderModeInput;
|
||||
model?: string;
|
||||
altModel?: string;
|
||||
fast?: boolean;
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
import type { QaSeedScenario } from "./scenario-catalog.js";
|
||||
|
||||
export type { QaProviderMode } from "./model-selection.js";
|
||||
export type QaProviderModeInput = QaProviderMode | "live-openai";
|
||||
|
||||
export type QaLabRunSelection = {
|
||||
providerMode: QaProviderMode;
|
||||
|
||||
Reference in New Issue
Block a user