@@ -4,14 +4,25 @@ import { join } from "node:path";
44import type { TestLabel , TestStatus } from "@allurereport/core-api" ;
55
66import { AgentUsageError } from "./errors.js" ;
7- import type { AgentFindingCategory , AgentFindingSeverity , AgentOutputBundle , AgentTestManifestLine } from "./harness.js" ;
7+ import type {
8+ AgentFindingCategory ,
9+ AgentFindingSeverity ,
10+ AgentOutputBundle ,
11+ AgentTestManifestLine ,
12+ } from "./harness.js" ;
813import type { AgentLabelFilter } from "./selection.js" ;
914
1015export const AGENT_QUERY_SCHEMA = "allure-agent-query/v1" ;
1116export const AGENT_QUERY_VIEWS = [ "summary" , "tests" , "findings" , "test" ] as const ;
1217export const AGENT_TEST_STATUSES : TestStatus [ ] = [ "failed" , "broken" , "unknown" , "skipped" , "passed" ] ;
1318export const AGENT_FINDING_SEVERITIES : AgentFindingSeverity [ ] = [ "high" , "warning" , "info" ] ;
14- export const AGENT_FINDING_CATEGORIES : AgentFindingCategory [ ] = [ "bootstrap" , "scope" , "metadata" , "evidence" , "smells" ] ;
19+ export const AGENT_FINDING_CATEGORIES : AgentFindingCategory [ ] = [
20+ "bootstrap" ,
21+ "scope" ,
22+ "metadata" ,
23+ "evidence" ,
24+ "smells" ,
25+ ] ;
1526
1627export type AgentQueryView = ( typeof AGENT_QUERY_VIEWS ) [ number ] ;
1728
@@ -213,7 +224,9 @@ const buildAgentQueryTestPayload = async (output: AgentOutputBundle, filters: Ag
213224 }
214225
215226 if ( matched . length > 1 ) {
216- throw new AgentUsageError ( `Query matched ${ matched . length } tests in ${ output . outputDir } . Use --test <full-name-or-id>.` ) ;
227+ throw new AgentUsageError (
228+ `Query matched ${ matched . length } tests in ${ output . outputDir } . Use --test <full-name-or-id>.` ,
229+ ) ;
217230 }
218231
219232 const test = matched [ 0 ] ;
0 commit comments