qfai 0.3.0 → 0.3.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/dist/index.d.cts CHANGED
@@ -26,16 +26,14 @@ type ValidationResult = {
26
26
  };
27
27
 
28
28
  type FailOn = "never" | "warning" | "error";
29
- type OutputFormat = "text" | "json" | "github";
29
+ type OutputFormat = "text" | "github";
30
30
  type TraceabilitySeverity = "warning" | "error";
31
31
  type QfaiPaths = {
32
- specDir: string;
33
- decisionsDir: string;
34
- scenariosDir: string;
35
32
  contractsDir: string;
36
- uiContractsDir: string;
37
- apiContractsDir: string;
38
- dataContractsDir: string;
33
+ specsDir: string;
34
+ rulesDir: string;
35
+ outDir: string;
36
+ promptsDir: string;
39
37
  srcDir: string;
40
38
  testsDir: string;
41
39
  };
@@ -52,8 +50,7 @@ type QfaiValidationConfig = {
52
50
  };
53
51
  };
54
52
  type QfaiOutputConfig = {
55
- format: OutputFormat;
56
- jsonPath: string;
53
+ validateJsonPath: string;
57
54
  };
58
55
  type QfaiConfig = {
59
56
  paths: QfaiPaths;
@@ -80,7 +77,6 @@ declare function extractInvalidIds(text: string, prefixes: IdFormatPrefix[]): st
80
77
  type ReportSummary = {
81
78
  specs: number;
82
79
  scenarios: number;
83
- decisions: number;
84
80
  contracts: {
85
81
  api: number;
86
82
  ui: number;
@@ -122,7 +118,7 @@ declare function resolveToolVersion(): Promise<string>;
122
118
  declare function validateContracts(root: string, config: QfaiConfig): Promise<Issue[]>;
123
119
  declare function lintSql(text: string, file: string): Issue[];
124
120
 
125
- declare function validateDecisions(root: string, config: QfaiConfig): Promise<Issue[]>;
121
+ declare function validateDeltas(root: string, config: QfaiConfig): Promise<Issue[]>;
126
122
 
127
123
  declare function validateDefinedIds(root: string, config: QfaiConfig): Promise<Issue[]>;
128
124
 
@@ -134,4 +130,4 @@ declare function validateSpecContent(text: string, file: string, requiredSection
134
130
 
135
131
  declare function validateTraceability(root: string, config: QfaiConfig): Promise<Issue[]>;
136
132
 
137
- export { type ConfigLoadResult, type ConfigPathKey, type FailOn, type IdFormatPrefix, type IdPrefix, type Issue, type IssueLocation, type IssueSeverity, type OutputFormat, type QfaiConfig, type QfaiOutputConfig, type QfaiPaths, type QfaiValidationConfig, type ReportData, type ReportIds, type ReportSummary, type ReportTraceability, type TraceabilitySeverity, VALIDATION_SCHEMA_VERSION, type ValidationCounts, type ValidationResult, createReportData, defaultConfig, extractAllIds, extractIds, extractInvalidIds, formatReportJson, formatReportMarkdown, getConfigPath, lintSql, loadConfig, resolvePath, resolveToolVersion, validateContracts, validateDecisions, validateDefinedIds, validateProject, validateScenarioContent, validateScenarios, validateSpecContent, validateSpecs, validateTraceability };
133
+ export { type ConfigLoadResult, type ConfigPathKey, type FailOn, type IdFormatPrefix, type IdPrefix, type Issue, type IssueLocation, type IssueSeverity, type OutputFormat, type QfaiConfig, type QfaiOutputConfig, type QfaiPaths, type QfaiValidationConfig, type ReportData, type ReportIds, type ReportSummary, type ReportTraceability, type TraceabilitySeverity, VALIDATION_SCHEMA_VERSION, type ValidationCounts, type ValidationResult, createReportData, defaultConfig, extractAllIds, extractIds, extractInvalidIds, formatReportJson, formatReportMarkdown, getConfigPath, lintSql, loadConfig, resolvePath, resolveToolVersion, validateContracts, validateDefinedIds, validateDeltas, validateProject, validateScenarioContent, validateScenarios, validateSpecContent, validateSpecs, validateTraceability };
package/dist/index.d.ts CHANGED
@@ -26,16 +26,14 @@ type ValidationResult = {
26
26
  };
27
27
 
28
28
  type FailOn = "never" | "warning" | "error";
29
- type OutputFormat = "text" | "json" | "github";
29
+ type OutputFormat = "text" | "github";
30
30
  type TraceabilitySeverity = "warning" | "error";
31
31
  type QfaiPaths = {
32
- specDir: string;
33
- decisionsDir: string;
34
- scenariosDir: string;
35
32
  contractsDir: string;
36
- uiContractsDir: string;
37
- apiContractsDir: string;
38
- dataContractsDir: string;
33
+ specsDir: string;
34
+ rulesDir: string;
35
+ outDir: string;
36
+ promptsDir: string;
39
37
  srcDir: string;
40
38
  testsDir: string;
41
39
  };
@@ -52,8 +50,7 @@ type QfaiValidationConfig = {
52
50
  };
53
51
  };
54
52
  type QfaiOutputConfig = {
55
- format: OutputFormat;
56
- jsonPath: string;
53
+ validateJsonPath: string;
57
54
  };
58
55
  type QfaiConfig = {
59
56
  paths: QfaiPaths;
@@ -80,7 +77,6 @@ declare function extractInvalidIds(text: string, prefixes: IdFormatPrefix[]): st
80
77
  type ReportSummary = {
81
78
  specs: number;
82
79
  scenarios: number;
83
- decisions: number;
84
80
  contracts: {
85
81
  api: number;
86
82
  ui: number;
@@ -122,7 +118,7 @@ declare function resolveToolVersion(): Promise<string>;
122
118
  declare function validateContracts(root: string, config: QfaiConfig): Promise<Issue[]>;
123
119
  declare function lintSql(text: string, file: string): Issue[];
124
120
 
125
- declare function validateDecisions(root: string, config: QfaiConfig): Promise<Issue[]>;
121
+ declare function validateDeltas(root: string, config: QfaiConfig): Promise<Issue[]>;
126
122
 
127
123
  declare function validateDefinedIds(root: string, config: QfaiConfig): Promise<Issue[]>;
128
124
 
@@ -134,4 +130,4 @@ declare function validateSpecContent(text: string, file: string, requiredSection
134
130
 
135
131
  declare function validateTraceability(root: string, config: QfaiConfig): Promise<Issue[]>;
136
132
 
137
- export { type ConfigLoadResult, type ConfigPathKey, type FailOn, type IdFormatPrefix, type IdPrefix, type Issue, type IssueLocation, type IssueSeverity, type OutputFormat, type QfaiConfig, type QfaiOutputConfig, type QfaiPaths, type QfaiValidationConfig, type ReportData, type ReportIds, type ReportSummary, type ReportTraceability, type TraceabilitySeverity, VALIDATION_SCHEMA_VERSION, type ValidationCounts, type ValidationResult, createReportData, defaultConfig, extractAllIds, extractIds, extractInvalidIds, formatReportJson, formatReportMarkdown, getConfigPath, lintSql, loadConfig, resolvePath, resolveToolVersion, validateContracts, validateDecisions, validateDefinedIds, validateProject, validateScenarioContent, validateScenarios, validateSpecContent, validateSpecs, validateTraceability };
133
+ export { type ConfigLoadResult, type ConfigPathKey, type FailOn, type IdFormatPrefix, type IdPrefix, type Issue, type IssueLocation, type IssueSeverity, type OutputFormat, type QfaiConfig, type QfaiOutputConfig, type QfaiPaths, type QfaiValidationConfig, type ReportData, type ReportIds, type ReportSummary, type ReportTraceability, type TraceabilitySeverity, VALIDATION_SCHEMA_VERSION, type ValidationCounts, type ValidationResult, createReportData, defaultConfig, extractAllIds, extractIds, extractInvalidIds, formatReportJson, formatReportMarkdown, getConfigPath, lintSql, loadConfig, resolvePath, resolveToolVersion, validateContracts, validateDefinedIds, validateDeltas, validateProject, validateScenarioContent, validateScenarios, validateSpecContent, validateSpecs, validateTraceability };