@ihyeon/flow-qa 0.11.0 → 0.12.1
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/README.ko.md +4 -0
- package/README.md +4 -0
- package/dist/src/cli.js +18 -8
- package/dist/src/report.js +2 -1
- package/dist/src/ui/server.js +50 -35
- package/docs/releases.md +8 -0
- package/docs/ui.md +1 -1
- package/llms.txt +1 -0
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
사용자 플로우를 검토 가능한 테스트 케이스로 바꾸고, 실제 브라우저 실행 결과를 증거가 연결된 QA 리포트로 남기는 로컬 도구입니다. 플로우의 기대 결과가 모호하면 추측해 통과시키지 않고 질문과 차단 상태로 남깁니다.
|
|
8
8
|
|
|
9
|
+
Flow QA는 대상 URL만으로 단독 사용할 수 있으며, 다른 `@ihyeon` 패키지들과 함께 연계해 쓰는 구성은 [@ihyeon QA Suite 호환 허브](https://qa.hyeonse.dev/?lang=ko)에서 확인할 수 있습니다.
|
|
10
|
+
|
|
9
11
|
CLI와 `127.0.0.1` 전용 웹 UI를 제공합니다. UI는 영어로 시작하며 상단 언어 전환에서 한국어를 선택할 수 있습니다. 선택은 이 브라우저에 저장됩니다. 테스트 대상의 URL과 화면 계약을 사용하며 앱 소스 또는 데이터베이스 접근은 필수가 아닙니다. 설치 없이 구조를 보려면 [아키텍처](https://github.com/hyeonse-swing/flow-qa/blob/main/docs/architecture.md)와 [UI 안내](https://github.com/hyeonse-swing/flow-qa/blob/main/docs/ui.md)를 참고하세요.
|
|
10
12
|
|
|
11
13
|

|
|
@@ -72,6 +74,8 @@ flow-qa plan flows/my-flow.md --workspace my-qa
|
|
|
72
74
|
|
|
73
75
|
CLI에서는 `flow-qa run cases/task-flow.json --target demo --case TC-001 --case TC-003`처럼 ID를 반복합니다. `--case`를 생략하면 전체를 실행합니다. 부분 실행의 통과는 선택한 케이스에만 해당하며, 보고서와 비교 화면에도 선택 범위를 표시합니다. 자세한 동작은 [UI 가이드](docs/ui.md#run-selected-cases)를 참고하세요.
|
|
74
76
|
|
|
77
|
+
재실행 목록은 보고서에 저장된 종료 시각과 시작 시각 순으로 표시합니다. `flow-qa rerun <실행 폴더> --dry-run`으로 등록된 대상과 실패 케이스 ID를 미리 볼 수 있습니다. 미리보기에서는 대상 요청과 새 보고서 생성이 발생하지 않습니다.
|
|
78
|
+
|
|
75
79
|
`0.5.0`부터 상세 보고서에서 **실패·오류 케이스 준비**를 누르면 실행 당시와 같은 저장된 케이스를 불러와 `실패`와 `실행 오류`만 선택합니다. 준비 후 케이스와 대상을 다시 검토하고 직접 실행하세요. 케이스·원본 파일이 없거나 바뀌었으면 준비를 중단하며, 실행 대상이 없거나 바뀌었으면 다시 선택해야 합니다. 자세한 동작은 [실패 케이스 준비](docs/ui.md#prepare-failed-cases)를 참고하세요.
|
|
76
80
|
|
|
77
81
|
준비한 케이스 정의·대상·선택 케이스 그대로 실행하면 새 보고서에 원본 실행 ID가 남습니다. 상세 보고서에서 원본을 열거나 두 결과를 바로 비교할 수 있습니다. 이 조건을 변경해 실행하면 독립 실행으로 저장합니다. 원본 보고서가 삭제돼도 새 보고서는 읽을 수 있으며 원본이 없다는 상태를 표시합니다.
|
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Flow QA turns a user flow into reviewable test cases, runs them in a real browser, and ties the results to evidence in a QA report. When an expected outcome is unclear, it keeps the question visible and blocks that case instead of guessing.
|
|
8
8
|
|
|
9
|
+
Flow QA works standalone on any target URL; when pairing it with other `@ihyeon` packages, see the [@ihyeon QA Suite compatibility hub](https://qa.hyeonse.dev/).
|
|
10
|
+
|
|
9
11
|
Flow QA is available as a CLI and a web UI bound to `127.0.0.1`. Provide a target URL and describe the screen behavior; access to the application's source code or database is optional. The UI starts in English. Use the language switch in the top bar for Korean; the choice is saved in this browser. See the [architecture](https://github.com/hyeonse-swing/flow-qa/blob/main/docs/architecture.md) and [UI guide](https://github.com/hyeonse-swing/flow-qa/blob/main/docs/ui.md) for the details.
|
|
10
12
|
|
|
11
13
|

|
|
@@ -80,6 +82,8 @@ From an original report, **Find reruns of this run** shows directly linked runs
|
|
|
80
82
|
|
|
81
83
|
In the CLI, `flow-qa reruns .flowqa/runs/<original-run-id> --workspace my-qa` lists direct reruns with their status and saved directory. Pass a listed directory to `flow-qa report` or compare it with the original using `flow-qa compare` and the same `--workspace`. The command checks the saved reports and skips incomplete entries.
|
|
82
84
|
|
|
85
|
+
Direct reruns are ordered by their saved finish and start times. Add `--dry-run` to `flow-qa rerun <run-directory>` to print the registered target and failing case IDs before execution. Previewing makes no target requests and creates no new report.
|
|
86
|
+
|
|
83
87
|
Run `flow-qa rerun .flowqa/runs/<original-run-id> --workspace my-qa` to execute only its failed and errored cases against the original registered target. The new report records the original run ID, so `reruns` and `compare` can show what changed. A report with no failed or errored cases prints a message and exits successfully without creating another run. If the saved cases, source flow, or target changed, the command stops before starting a run. Each case must establish its own starting state.
|
|
84
88
|
|
|
85
89
|
From `0.8.0`, **Detailed report** supports case/error-text search, status filters, and **Failed/error only**. Use **At least 2 attempts** (0.8.7) to see only cases with multiple recorded attempts. Counts distinguish displayed matches from all recorded cases. Markdown/JSON downloads and failed/error preparation retain the full report scope. To save just the filtered IDs in the displayed order, choose **Download visible case IDs** (0.8.6). See [report case exploration](docs/ui.md#explore-cases-in-a-report).
|
package/dist/src/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ Usage: flow-qa <command> [arguments] [options]
|
|
|
39
39
|
agent-review <handoff-dir> <result.json>
|
|
40
40
|
Check agent-supplied findings and evidence references
|
|
41
41
|
report <run-directory> View a saved QA report
|
|
42
|
-
rerun <run-directory>
|
|
42
|
+
rerun <run-directory> [--dry-run] Rerun failed/error cases from a saved report
|
|
43
43
|
reruns <run-directory> List runs prepared from a saved report
|
|
44
44
|
compare <run-a> <run-b> Compare case results and authored steps
|
|
45
45
|
ui [--demo] [--port 4310] Start the local QA UI
|
|
@@ -72,7 +72,7 @@ Local example: flow-qa ui --demo
|
|
|
72
72
|
agent-review <handoff-dir> <result.json>
|
|
73
73
|
에이전트 관찰 결과와 증거 파일 참조 검사
|
|
74
74
|
report <run-directory> 저장된 QA 리포트 보기
|
|
75
|
-
rerun <run-directory>
|
|
75
|
+
rerun <run-directory> [--dry-run] 저장된 실행의 실패·오류 케이스 재실행
|
|
76
76
|
reruns <run-directory> 저장된 리포트에서 시작한 재실행 찾기
|
|
77
77
|
compare <run-a> <run-b> 케이스 결과와 원본 단계 비교
|
|
78
78
|
ui [--demo] [--port 4310] 로컬 QA 화면 실행
|
|
@@ -225,7 +225,7 @@ export async function main(args) {
|
|
|
225
225
|
case: { type: 'string', multiple: true },
|
|
226
226
|
platform: { type: 'string' }, 'bundle-id': { type: 'string' }, device: { type: 'string' },
|
|
227
227
|
'prompt-only': { type: 'boolean' }, help: { type: 'boolean', short: 'h' },
|
|
228
|
-
demo: { type: 'boolean' }, port: { type: 'string' }, 'with-deps': { type: 'boolean' }, lang: { type: 'string' },
|
|
228
|
+
'dry-run': { type: 'boolean' }, demo: { type: 'boolean' }, port: { type: 'string' }, 'with-deps': { type: 'boolean' }, lang: { type: 'string' },
|
|
229
229
|
} });
|
|
230
230
|
if (values.lang !== undefined) {
|
|
231
231
|
if (values.lang !== 'en' && values.lang !== 'ko')
|
|
@@ -242,7 +242,7 @@ export async function main(args) {
|
|
|
242
242
|
(values['bundle-id'] !== undefined || values.device !== undefined) && command !== 'connect') {
|
|
243
243
|
throw new Error(localized(locale, 'Platform and device options are only supported by connect and plan. See --help.', '플랫폼·기기 옵션은 connect와 plan에서만 사용할 수 있습니다. --help를 참고하세요.'));
|
|
244
244
|
}
|
|
245
|
-
if (values.case !== undefined && command !== 'run' && command !== 'agent-handoff' || values.demo && command !== 'ui' || values.port && command !== 'ui' ||
|
|
245
|
+
if (values['dry-run'] && command !== 'rerun' || values.case !== undefined && command !== 'run' && command !== 'agent-handoff' || values.demo && command !== 'ui' || values.port && command !== 'ui' ||
|
|
246
246
|
values['with-deps'] && (command !== 'browser' || arg !== 'install'))
|
|
247
247
|
throw new Error(localized(locale, 'This option is not supported for the command. See --help.', '이 명령에서 사용할 수 없는 옵션입니다. --help를 참고하세요.'));
|
|
248
248
|
if (command === 'ui') {
|
|
@@ -454,12 +454,19 @@ export async function main(args) {
|
|
|
454
454
|
}
|
|
455
455
|
const config = configSchema.parse(JSON.parse(await readSafeFile(canonicalWorkspace, 'flowqa.config.json', 256 * 1024)));
|
|
456
456
|
const prepared = prepareRerunSelection(previous, suite, config);
|
|
457
|
+
if (!prepared.targetMatches && (prepared.caseIds.length || values['dry-run'])) {
|
|
458
|
+
throw new Error(localized(locale, 'The selected target changed. Review it again.', '실행 대상 설정이 변경됐습니다. 다시 확인하세요.'));
|
|
459
|
+
}
|
|
460
|
+
if (values['dry-run']) {
|
|
461
|
+
console.log(localized(locale, `Target: ${prepared.targetName}`, `실행 대상: ${prepared.targetName}`));
|
|
462
|
+
}
|
|
457
463
|
if (prepared.caseIds.length === 0) {
|
|
458
464
|
console.log(localizeProductMessage('No failed or errored cases are available to rerun.', locale));
|
|
459
465
|
return;
|
|
460
466
|
}
|
|
461
|
-
if (
|
|
462
|
-
|
|
467
|
+
if (values['dry-run']) {
|
|
468
|
+
console.log(localized(locale, `Cases: ${prepared.caseIds.join(', ')}`, `케이스: ${prepared.caseIds.join(', ')}`));
|
|
469
|
+
return;
|
|
463
470
|
}
|
|
464
471
|
await executeRun({ workspace: canonicalWorkspace, suite, config, targetName: prepared.targetName,
|
|
465
472
|
caseIds: prepared.caseIds, parentRunId: originalId }, locale, true);
|
|
@@ -484,11 +491,14 @@ export async function main(args) {
|
|
|
484
491
|
const report = await readArchivedRun(root, id);
|
|
485
492
|
if (report?.parentRunId !== originalId)
|
|
486
493
|
continue;
|
|
487
|
-
|
|
494
|
+
const startTime = Date.parse(report.startedAt);
|
|
495
|
+
const finishTime = Date.parse(report.finishedAt);
|
|
496
|
+
const started = Number.isFinite(startTime) ? startTime : -Infinity;
|
|
497
|
+
matches.push({ id, status: report.status, started, finished: Number.isFinite(finishTime) ? finishTime : started });
|
|
488
498
|
}
|
|
489
499
|
catch { /* Incomplete or unsafe saved run. */ }
|
|
490
500
|
}
|
|
491
|
-
matches.sort((a, b) => b.
|
|
501
|
+
matches.sort((a, b) => b.finished - a.finished || b.started - a.started || a.id.localeCompare(b.id));
|
|
492
502
|
if (!matches.length) {
|
|
493
503
|
console.log(localized(locale, 'No runs were prepared from this report.', '이 리포트에서 시작한 재실행이 없습니다.'));
|
|
494
504
|
return;
|
package/dist/src/report.js
CHANGED
|
@@ -16,7 +16,7 @@ const archiveEnvelopeSchema = z.object({
|
|
|
16
16
|
z.object({ name: z.string(), url: z.string() }),
|
|
17
17
|
z.object({ name: z.string(), kind: z.literal('mobile'), platform: z.enum(['ios', 'android']), bundleId: z.string(), device: z.string() }),
|
|
18
18
|
]),
|
|
19
|
-
startedAt: z.string(), finishedAt: z.string(), status: z.enum(['passed', 'failed', 'blocked', 'error', 'interrupted']),
|
|
19
|
+
startedAt: z.string().default(''), finishedAt: z.string().default(''), status: z.enum(['passed', 'failed', 'blocked', 'error', 'interrupted']),
|
|
20
20
|
cases: z.array(z.object({ id: z.string(), title: z.string(), status: z.enum(['passed', 'failed', 'flaky', 'blocked', 'skipped', 'error']),
|
|
21
21
|
expected: z.array(z.string()), definedSteps: z.array(z.object({ type: z.string() })).optional(),
|
|
22
22
|
attempts: z.array(z.unknown()), reason: z.string().optional() }).passthrough()),
|
|
@@ -39,6 +39,7 @@ const savedAttemptSchema = z.object({
|
|
|
39
39
|
});
|
|
40
40
|
const savedReportSchema = z.object({
|
|
41
41
|
...archiveEnvelopeSchema.shape,
|
|
42
|
+
startedAt: z.string(), finishedAt: z.string(),
|
|
42
43
|
suiteHash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
43
44
|
cases: z.array(z.object({
|
|
44
45
|
id: idSchema, title: z.string(), status: z.enum(['passed', 'failed', 'flaky', 'blocked', 'skipped', 'error']),
|
package/dist/src/ui/server.js
CHANGED
|
@@ -38,10 +38,14 @@ const BROWSER_INSTALL_COMMAND = 'flow-qa browser install';
|
|
|
38
38
|
const RUN_STATUSES = new Set(['passed', 'failed', 'blocked', 'error', 'interrupted']);
|
|
39
39
|
const RUN_HISTORY_LIMIT = 50;
|
|
40
40
|
const RUN_CURSOR_MAX_LENGTH = 512;
|
|
41
|
-
const
|
|
41
|
+
const legacyRunCursor = z.object({
|
|
42
42
|
version: z.literal(1), mtime: z.number().finite().nonnegative(), id: z.string().regex(RUN_ID),
|
|
43
43
|
filterHash: z.string().regex(/^[0-9a-f]{64}$/),
|
|
44
44
|
}).strict();
|
|
45
|
+
const runCursorSchema = z.discriminatedUnion('version', [legacyRunCursor, z.object({
|
|
46
|
+
version: z.literal(2), finished: z.number().finite(), started: z.number().finite(), id: z.string().regex(RUN_ID),
|
|
47
|
+
filterHash: z.string().regex(/^[0-9a-f]{64}$/),
|
|
48
|
+
}).strict()]);
|
|
45
49
|
const FILE_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$/;
|
|
46
50
|
const MODULE_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
47
51
|
const PUBLIC_DIR = path.join(MODULE_DIR, 'public');
|
|
@@ -84,7 +88,7 @@ function runFilterHash(query, status, parentRunId) {
|
|
|
84
88
|
}
|
|
85
89
|
// The cursor is independent of page size, so clients may change limit between pages.
|
|
86
90
|
function encodeRunCursor(candidate, filterHash) {
|
|
87
|
-
return Buffer.from(JSON.stringify({ version:
|
|
91
|
+
return Buffer.from(JSON.stringify({ version: 2, ...candidate, filterHash })).toString('base64url');
|
|
88
92
|
}
|
|
89
93
|
function decodeRunCursor(value, filterHash) {
|
|
90
94
|
if (value.length === 0 || value.length > RUN_CURSOR_MAX_LENGTH || !/^[A-Za-z0-9_-]+$/.test(value))
|
|
@@ -96,12 +100,21 @@ function decodeRunCursor(value, filterHash) {
|
|
|
96
100
|
const parsed = runCursorSchema.safeParse(JSON.parse(bytes.toString('utf8')));
|
|
97
101
|
if (!parsed.success || parsed.data.filterHash !== filterHash)
|
|
98
102
|
invalid('Invalid run cursor.');
|
|
99
|
-
return
|
|
103
|
+
return parsed.data;
|
|
100
104
|
}
|
|
101
105
|
catch {
|
|
102
106
|
return invalid('Invalid run cursor.');
|
|
103
107
|
}
|
|
104
108
|
}
|
|
109
|
+
function compareRunCandidates(a, b) {
|
|
110
|
+
return b.finished - a.finished || b.started - a.started || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0);
|
|
111
|
+
}
|
|
112
|
+
function runSortKey(summary) {
|
|
113
|
+
const startTime = Date.parse(summary.startedAt);
|
|
114
|
+
const finishTime = Date.parse(summary.finishedAt);
|
|
115
|
+
const started = Number.isFinite(startTime) ? startTime : Number.MIN_SAFE_INTEGER;
|
|
116
|
+
return { id: summary.runId, started, finished: Number.isFinite(finishTime) ? finishTime : started };
|
|
117
|
+
}
|
|
105
118
|
const SCHEMA_FIELDS = new Set([
|
|
106
119
|
'suite', 'schemaVersion', 'id', 'title', 'source', 'file', 'sha256', 'requirements', 'cases',
|
|
107
120
|
'requirementIds', 'preconditions', 'questions', 'steps', 'type', 'path', 'instruction',
|
|
@@ -416,14 +429,18 @@ export async function startUIServer(options) {
|
|
|
416
429
|
}
|
|
417
430
|
async function report(runId, includeMarkdown, locale = 'en') {
|
|
418
431
|
const dir = await runDirectory(runId);
|
|
419
|
-
const raw =
|
|
420
|
-
if (!raw || raw.runId !== runId)
|
|
421
|
-
notFound();
|
|
432
|
+
const raw = await readRunReport(dir, runId);
|
|
422
433
|
let markdown = includeMarkdown ? await readRegular(dir, 'qa-report.md', MAX_REPORT) : undefined;
|
|
423
434
|
if (markdown !== undefined)
|
|
424
435
|
markdown = renderSavedMarkdown(raw, markdown, locale);
|
|
425
436
|
return { report: raw, ...(markdown === undefined ? {} : { markdown }) };
|
|
426
437
|
}
|
|
438
|
+
async function readRunReport(dir, runId) {
|
|
439
|
+
const raw = parseArchivedReportEnvelope(jsonObject(await readRegular(dir, 'qa-report.json', MAX_REPORT)));
|
|
440
|
+
if (!raw || raw.runId !== runId)
|
|
441
|
+
notFound();
|
|
442
|
+
return raw;
|
|
443
|
+
}
|
|
427
444
|
async function preparedRerun(runId) {
|
|
428
445
|
const { report: previous } = await report(runId, false);
|
|
429
446
|
const matches = (await suites()).filter((item) => item.id === previous.suiteId);
|
|
@@ -457,23 +474,6 @@ export async function startUIServer(options) {
|
|
|
457
474
|
throw new HTTPError(409, error.message);
|
|
458
475
|
}
|
|
459
476
|
}
|
|
460
|
-
async function runCandidates() {
|
|
461
|
-
const root = await directory(['.flowqa', 'runs']);
|
|
462
|
-
if (!root)
|
|
463
|
-
return [];
|
|
464
|
-
const candidates = [];
|
|
465
|
-
for (const id of await readdir(root)) {
|
|
466
|
-
if (!RUN_ID.test(id))
|
|
467
|
-
continue;
|
|
468
|
-
try {
|
|
469
|
-
const info = await lstat(path.join(root, id));
|
|
470
|
-
if (info.isDirectory() && !info.isSymbolicLink())
|
|
471
|
-
candidates.push({ id, mtime: info.mtimeMs });
|
|
472
|
-
}
|
|
473
|
-
catch { /* incomplete run */ }
|
|
474
|
-
}
|
|
475
|
-
return candidates.sort((a, b) => b.mtime - a.mtime || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
|
|
476
|
-
}
|
|
477
477
|
function runSummary(item) {
|
|
478
478
|
return { runId: item.runId, suiteId: item.suiteId, status: item.status, startedAt: item.startedAt,
|
|
479
479
|
finishedAt: item.finishedAt, caseCount: item.cases.length,
|
|
@@ -481,26 +481,41 @@ export async function startUIServer(options) {
|
|
|
481
481
|
target: item.target, ...(item.selection ? { selection: item.selection } : {}),
|
|
482
482
|
...(item.parentRunId ? { parentRunId: item.parentRunId } : {}) };
|
|
483
483
|
}
|
|
484
|
+
const summaryCache = new Map();
|
|
484
485
|
async function runSummaries(limit, query = '', status = '', after, parentRunId = '') {
|
|
486
|
+
const root = await directory(['.flowqa', 'runs']);
|
|
485
487
|
const history = [];
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
488
|
+
const ids = new Set(root ? (await readdir(root)).filter(id => RUN_ID.test(id)) : []);
|
|
489
|
+
for (const id of summaryCache.keys())
|
|
490
|
+
if (!ids.has(id))
|
|
491
|
+
summaryCache.delete(id);
|
|
492
|
+
for (const id of ids) {
|
|
489
493
|
try {
|
|
490
|
-
const
|
|
491
|
-
|
|
494
|
+
const dir = await runDirectory(id);
|
|
495
|
+
const info = await lstat(path.join(dir, 'qa-report.json'));
|
|
496
|
+
if (!info.isFile() || info.size > MAX_REPORT)
|
|
497
|
+
continue;
|
|
498
|
+
const fingerprint = [info.dev, info.ino, info.size, info.mtimeMs, info.ctimeMs].join(':');
|
|
499
|
+
const cached = summaryCache.get(id);
|
|
500
|
+
const summary = cached?.fingerprint === fingerprint ? cached.summary : runSummary(await readRunReport(dir, id));
|
|
501
|
+
summaryCache.set(id, { fingerprint, summary });
|
|
502
|
+
if (parentRunId && summary.parentRunId !== parentRunId)
|
|
492
503
|
continue;
|
|
493
|
-
if (status &&
|
|
504
|
+
if (status && summary.status !== status)
|
|
494
505
|
continue;
|
|
495
|
-
if (query && ![
|
|
506
|
+
if (query && ![summary.suiteId, summary.runId, summary.target.name].some(field => field.toLowerCase().includes(query)))
|
|
496
507
|
continue;
|
|
497
|
-
history.push({ candidate
|
|
498
|
-
|
|
499
|
-
|
|
508
|
+
history.push({ candidate: runSortKey(summary), summary });
|
|
509
|
+
}
|
|
510
|
+
catch {
|
|
511
|
+
summaryCache.delete(id);
|
|
500
512
|
}
|
|
501
|
-
catch { /* incomplete or unsafe run */ }
|
|
502
513
|
}
|
|
503
|
-
|
|
514
|
+
const anchor = after?.version === 1 ? history.find(row => row.candidate.id === after.id)?.candidate : after;
|
|
515
|
+
if (after && !anchor)
|
|
516
|
+
invalid('Invalid run cursor.');
|
|
517
|
+
history.sort((a, b) => compareRunCandidates(a.candidate, b.candidate));
|
|
518
|
+
return (anchor ? history.filter(row => compareRunCandidates(row.candidate, anchor) > 0) : history).slice(0, limit);
|
|
504
519
|
}
|
|
505
520
|
function modelState(model) {
|
|
506
521
|
if (!model)
|
package/docs/releases.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Releases and verification
|
|
2
2
|
|
|
3
|
+
## 0.12.1 — keep run history stable when an archive changes
|
|
4
|
+
|
|
5
|
+
The local UI orders saved runs by the report's recorded finish time and start time. Adding a note or copying an archive leaves the order and pagination unchanged. Undated reports remain available at the end of the list.
|
|
6
|
+
|
|
7
|
+
## 0.12.0 — preview failed cases and order reruns by execution time
|
|
8
|
+
|
|
9
|
+
`flow-qa rerun <saved-run> --dry-run` verifies the saved suite and target, then prints the target name and the failed or errored case IDs. The preview makes no target requests and writes no reports. `reruns` orders children by recorded finish time, start time and run ID. Undated legacy reports remain in the list.
|
|
10
|
+
|
|
3
11
|
## 0.11.0 — rerun failed cases from the CLI
|
|
4
12
|
|
|
5
13
|
`flow-qa rerun <saved-run> --workspace <workspace>` runs the failed or errored cases from an original report against its unchanged registered target. It shares the local UI's checks for the saved suite, selected cases, and target identity. The new report retains `parentRunId`, and `reruns` lists it. A report without failed or errored cases exits successfully with an informational message and creates no run. Changed definitions, source flows, targets, and unsafe saved paths stop before execution.
|
package/docs/ui.md
CHANGED
|
@@ -74,7 +74,7 @@ From version `0.2.6`, **Case library** filters saved suites as you type in **Sea
|
|
|
74
74
|
|
|
75
75
|
**Find reruns of this run** in a detailed report opens Run history filtered by the exact original run ID recorded in each child. The list can be paginated and narrowed by status. **Show all runs** clears the relation, and typing in Search runs switches back to the ordinary text search.
|
|
76
76
|
|
|
77
|
-
Results load 50 at a time, newest first by
|
|
77
|
+
Results load 50 at a time, newest first by the report's recorded finish time, then start time and run ID. Reports without a finish time use the start time. Older reports without either timestamp appear last and remain available. Adding a note or copying a run directory leaves the order unchanged. **Load more** appends older matches. The displayed count describes loaded matches, not a global total. End-of-results, loading, and retry guidance distinguish an empty result from an unavailable request. A failed page request preserves loaded rows so you can retry.
|
|
78
78
|
|
|
79
79
|
Changing search or status restarts at the first page. The query, status, and loaded pages stay through navigation and language changes, and reset on page reload. The open report, its downloads, and scenario draft stay intact. A delayed response from an older query cannot replace newer results. Older reports support the same report downloads and failed/error-case preparation.
|
|
80
80
|
|
package/llms.txt
CHANGED
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
- [External agent handoff](docs/agent-handoff.md): Bundle contract and result-review limits.
|
|
8
8
|
- [CLI and overview](README.md): Setup, commands, and result interpretation.
|
|
9
9
|
- [한국어 안내](README.ko.md): Korean overview.
|
|
10
|
+
- [@ihyeon QA Suite compatibility hub](https://qa.hyeonse.dev/): standalone usage and optional package pairing across all six `@ihyeon` npm packages.
|