refactor: trim qa lab helper exports · openclaw/openclaw@fd4bee9
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import {
|
3 | 3 | QA_AGENTIC_PARITY_TOOL_BACKED_SCENARIO_TITLES, |
4 | 4 | } from "./agentic-parity.js"; |
5 | 5 | |
6 | | -export type QaParityReportStep = { |
| 6 | +type QaParityReportStep = { |
7 | 7 | name: string; |
8 | 8 | status: "pass" | "fail" | "skip"; |
9 | 9 | details?: string; |
@@ -23,7 +23,7 @@ export type QaParityReportScenario = {
|
23 | 23 | * skips the label-match verification for backwards compatibility |
24 | 24 | * with legacy summaries that predate the run metadata block. |
25 | 25 | */ |
26 | | -export type QaParityRunBlock = { |
| 26 | +type QaParityRunBlock = { |
27 | 27 | primaryProvider?: string; |
28 | 28 | primaryModel?: string; |
29 | 29 | primaryModelName?: string; |
@@ -42,7 +42,7 @@ export type QaParitySuiteSummary = {
|
42 | 42 | run?: QaParityRunBlock; |
43 | 43 | }; |
44 | 44 | |
45 | | -export type QaAgenticParityMetrics = { |
| 45 | +type QaAgenticParityMetrics = { |
46 | 46 | totalScenarios: number; |
47 | 47 | passedScenarios: number; |
48 | 48 | failedScenarios: number; |
@@ -54,15 +54,15 @@ export type QaAgenticParityMetrics = {
|
54 | 54 | fakeSuccessCount: number; |
55 | 55 | }; |
56 | 56 | |
57 | | -export type QaAgenticParityScenarioComparison = { |
| 57 | +type QaAgenticParityScenarioComparison = { |
58 | 58 | name: string; |
59 | 59 | candidateStatus: "pass" | "fail" | "skip" | "missing"; |
60 | 60 | baselineStatus: "pass" | "fail" | "skip" | "missing"; |
61 | 61 | candidateDetails?: string; |
62 | 62 | baselineDetails?: string; |
63 | 63 | }; |
64 | 64 | |
65 | | -export type QaAgenticParityComparison = { |
| 65 | +type QaAgenticParityComparison = { |
66 | 66 | candidateLabel: string; |
67 | 67 | baselineLabel: string; |
68 | 68 | comparedAt: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export const QA_AGENTIC_PARITY_PACK = "agentic"; |
| 1 | +const QA_AGENTIC_PARITY_PACK = "agentic"; |
2 | 2 | |
3 | | -export const QA_AGENTIC_PARITY_SCENARIOS = [ |
| 3 | +const QA_AGENTIC_PARITY_SCENARIOS = [ |
4 | 4 | { |
5 | 5 | id: "approval-turn-tool-followthrough", |
6 | 6 | title: "Approval turn tool followthrough", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ export type QaCharacterModelOptions = {
|
33 | 33 | fastMode?: boolean; |
34 | 34 | }; |
35 | 35 | |
36 | | -export type QaCharacterEvalRun = { |
| 36 | +type QaCharacterEvalRun = { |
37 | 37 | model: string; |
38 | 38 | status: QaCharacterRunStatus; |
39 | 39 | durationMs: number; |
@@ -61,15 +61,15 @@ export type QaCharacterEvalJudgment = {
|
61 | 61 | weaknesses: string[]; |
62 | 62 | }; |
63 | 63 | |
64 | | -export type QaCharacterEvalResult = { |
| 64 | +type QaCharacterEvalResult = { |
65 | 65 | outputDir: string; |
66 | 66 | reportPath: string; |
67 | 67 | summaryPath: string; |
68 | 68 | runs: QaCharacterEvalRun[]; |
69 | 69 | judgments: QaCharacterEvalJudgeResult[]; |
70 | 70 | }; |
71 | 71 | |
72 | | -export type QaCharacterEvalJudgeResult = { |
| 72 | +type QaCharacterEvalJudgeResult = { |
73 | 73 | model: string; |
74 | 74 | thinkingDefault: QaThinkingLevel; |
75 | 75 | fastMode: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { QaSeedScenarioWithSource } from "./scenario-catalog.js"; |
2 | 2 | |
3 | | -export type QaCoverageScenarioSummary = { |
| 3 | +type QaCoverageScenarioSummary = { |
4 | 4 | id: string; |
5 | 5 | title: string; |
6 | 6 | sourcePath: string; |
@@ -9,18 +9,18 @@ export type QaCoverageScenarioSummary = {
|
9 | 9 | risk: string; |
10 | 10 | }; |
11 | 11 | |
12 | | -export type QaCoverageIntent = "primary" | "secondary"; |
| 12 | +type QaCoverageIntent = "primary" | "secondary"; |
13 | 13 | |
14 | | -export type QaCoverageScenarioReference = QaCoverageScenarioSummary & { |
| 14 | +type QaCoverageScenarioReference = QaCoverageScenarioSummary & { |
15 | 15 | intent: QaCoverageIntent; |
16 | 16 | }; |
17 | 17 | |
18 | | -export type QaCoverageFeatureSummary = { |
| 18 | +type QaCoverageFeatureSummary = { |
19 | 19 | id: string; |
20 | 20 | scenarios: QaCoverageScenarioReference[]; |
21 | 21 | }; |
22 | 22 | |
23 | | -export type QaCoverageInventory = { |
| 23 | +type QaCoverageInventory = { |
24 | 24 | scenarioCount: number; |
25 | 25 | coverageIdCount: number; |
26 | 26 | primaryCoverageIdCount: number; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { setTimeout as sleep } from "node:timers/promises"; |
2 | 2 | import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; |
3 | 3 | |
4 | | -export type QaCronRunLogEntry = { |
| 4 | +type QaCronRunLogEntry = { |
5 | 5 | ts?: number; |
6 | 6 | status?: "ok" | "error" | "skipped"; |
7 | 7 | summary?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ export async function fetchHealthUrl(url: string): Promise<{ ok: boolean }> {
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
29 | | -export function describeError(error: unknown) { |
| 29 | +function describeError(error: unknown) { |
30 | 30 | if (error instanceof Error) { |
31 | 31 | return error.message; |
32 | 32 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ type QaGatewayRpcRequestOptions = {
|
7 | 7 | timeoutMs?: number; |
8 | 8 | }; |
9 | 9 | |
10 | | -export type QaGatewayRpcClient = { |
| 10 | +type QaGatewayRpcClient = { |
11 | 11 | request(method: string, rpcParams?: unknown, opts?: QaGatewayRpcRequestOptions): Promise<unknown>; |
12 | 12 | stop(): Promise<void>; |
13 | 13 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ const CAPTURE_QUERY_PRESETS = new Set([
|
10 | 10 | "error-bursts", |
11 | 11 | ]); |
12 | 12 | |
13 | | -export type QaStartupProbeStatus = { |
| 13 | +type QaStartupProbeStatus = { |
14 | 14 | label: string; |
15 | 15 | url: string; |
16 | 16 | ok: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ export function missingUiHtml() {
|
50 | 50 | </html>`; |
51 | 51 | } |
52 | 52 | |
53 | | -export function resolveUiDistDir(overrideDir?: string | null, repoRoot = process.cwd()) { |
| 53 | +function resolveUiDistDir(overrideDir?: string | null, repoRoot = process.cwd()) { |
54 | 54 | if (overrideDir?.trim()) { |
55 | 55 | return overrideDir; |
56 | 56 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,9 +7,9 @@ export type QaLabLatestReport = {
|
7 | 7 | generatedAt: string; |
8 | 8 | }; |
9 | 9 | |
10 | | -export type QaLabRunStatus = "idle" | "running" | "completed"; |
| 10 | +type QaLabRunStatus = "idle" | "running" | "completed"; |
11 | 11 | |
12 | | -export type QaLabScenarioStep = { |
| 12 | +type QaLabScenarioStep = { |
13 | 13 | name: string; |
14 | 14 | status: "pass" | "fail" | "skip"; |
15 | 15 | details?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。