@ihyeon/flow-qa 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +18 -6
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -13,6 +13,7 @@ import { CaseSelectionError, isReportSelectionValid, selectCases } from "./case-
|
|
|
13
13
|
import { runSuite } from "./engine.js";
|
|
14
14
|
import { renderSavedMarkdown } from "./report.js";
|
|
15
15
|
import { registrationTarget, sameReportTarget, targetLabel } from "./targets.js";
|
|
16
|
+
import { compareCaseSteps } from "./step-comparison.js";
|
|
16
17
|
import { createAgentHandoff, reviewAgentHandoff } from "./agent-handoff.js";
|
|
17
18
|
const help = {
|
|
18
19
|
en: `Flow QA — turn user flows into repeatable tests and evidence-backed QA reports
|
|
@@ -37,7 +38,7 @@ Usage: flow-qa <command> [arguments] [options]
|
|
|
37
38
|
agent-review <handoff-dir> <result.json>
|
|
38
39
|
Check agent-supplied findings and evidence references
|
|
39
40
|
report <run-directory> View a saved QA report
|
|
40
|
-
compare <run-a> <run-b> Compare case results
|
|
41
|
+
compare <run-a> <run-b> Compare case results and authored steps
|
|
41
42
|
ui [--demo] [--port 4310] Start the local QA UI
|
|
42
43
|
browser install [--with-deps] Install this package's Playwright Chromium
|
|
43
44
|
doctor Check the local engine and connections
|
|
@@ -68,7 +69,7 @@ Local example: flow-qa ui --demo
|
|
|
68
69
|
agent-review <handoff-dir> <result.json>
|
|
69
70
|
에이전트 관찰 결과와 증거 파일 참조 검사
|
|
70
71
|
report <run-directory> 저장된 QA 리포트 보기
|
|
71
|
-
compare <run-a> <run-b>
|
|
72
|
+
compare <run-a> <run-b> 케이스 결과와 원본 단계 비교
|
|
72
73
|
ui [--demo] [--port 4310] 로컬 QA 화면 실행
|
|
73
74
|
browser install [--with-deps] 패키지의 Playwright Chromium 설치
|
|
74
75
|
doctor 로컬 엔진과 연결 설정 확인
|
|
@@ -356,10 +357,21 @@ export async function main(args) {
|
|
|
356
357
|
console.log(comparable ? localized(locale, 'Comparing the same suite, target and case selection (check external data state separately)', '동일 명세·대상·케이스 범위 비교 (외부 데이터 상태는 별도 확인)') : localized(locale, 'Suite, target or case selection differs; no direct regression verdict is made.', '명세·대상 또는 케이스 범위가 달라 직접적인 회귀 판정은 하지 않습니다.'));
|
|
357
358
|
if (before.selection || after.selection)
|
|
358
359
|
console.log(localized(locale, 'This comparison includes selected cases only; omitted cases were not evaluated.', '이 비교에는 선택 실행이 포함되어 있습니다. 미선택 케이스는 검증되지 않았습니다.'));
|
|
359
|
-
const previous = new Map(before.cases.map((
|
|
360
|
-
const current = new Map(after.cases.map((
|
|
361
|
-
for (const id of new Set([...previous.keys(), ...current.keys()]))
|
|
362
|
-
|
|
360
|
+
const previous = new Map(before.cases.map((item) => [item.id, item]));
|
|
361
|
+
const current = new Map(after.cases.map((item) => [item.id, item]));
|
|
362
|
+
for (const id of new Set([...previous.keys(), ...current.keys()])) {
|
|
363
|
+
const baselineCase = previous.get(id);
|
|
364
|
+
const currentCase = current.get(id);
|
|
365
|
+
console.log(`${safeText(id)}: ${safeText(baselineCase?.status ?? localized(locale, 'not included', '미포함'))} → ${safeText(currentCase?.status ?? localized(locale, 'not included', '미포함'))}`);
|
|
366
|
+
if (!comparable || !baselineCase || !currentCase)
|
|
367
|
+
continue;
|
|
368
|
+
const steps = compareCaseSteps(baselineCase, currentCase, true);
|
|
369
|
+
if (steps.availability !== 'compared')
|
|
370
|
+
continue;
|
|
371
|
+
const common = steps.lastCommonPassedStepIndex === undefined ? localized(locale, 'none', '없음') : String(steps.lastCommonPassedStepIndex + 1);
|
|
372
|
+
const difference = steps.firstDifferenceStepIndex === undefined ? localized(locale, 'none', '없음') : String(steps.firstDifferenceStepIndex + 1);
|
|
373
|
+
console.log(localized(locale, ` Last common passed step: ${common}; first differing step: ${difference}`, ` 마지막 공통 성공 단계: ${common}, 첫 결과 차이 단계: ${difference}`));
|
|
374
|
+
}
|
|
363
375
|
return;
|
|
364
376
|
}
|
|
365
377
|
if (command === 'doctor') {
|