qfai 1.0.1 → 1.0.3

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.
Files changed (29) hide show
  1. package/README.md +13 -3
  2. package/assets/init/.qfai/README.md +2 -2
  3. package/assets/init/.qfai/contracts/README.md +21 -1
  4. package/assets/init/.qfai/contracts/ui/assets/thema-001-facebook-like/assets.yaml +6 -0
  5. package/assets/init/.qfai/contracts/ui/assets/thema-001-facebook-like/palette.png +0 -0
  6. package/assets/init/.qfai/contracts/ui/assets/ui-0001-sample/assets.yaml +6 -0
  7. package/assets/init/.qfai/contracts/ui/assets/ui-0001-sample/snapshots/login__desktop__light__default.png +0 -0
  8. package/assets/init/.qfai/contracts/ui/thema-001-facebook-like.yml +13 -0
  9. package/assets/init/.qfai/contracts/ui/ui-0001-sample.yaml +9 -0
  10. package/assets/init/.qfai/prompts/makeBusinessFlow.md +1 -1
  11. package/assets/init/.qfai/prompts/makeOverview.md +1 -1
  12. package/assets/init/.qfai/prompts/qfai-maintain-traceability.md +1 -1
  13. package/assets/init/.qfai/prompts/require-to-spec.md +2 -2
  14. package/assets/init/.qfai/samples/analyze/analysis.md +1 -1
  15. package/assets/init/.qfai/specs/README.md +3 -3
  16. package/assets/init/.qfai/specs/spec-0001/delta.md +1 -1
  17. package/assets/init/.qfai/specs/spec-0001/{scenario.md → scenario.feature} +1 -1
  18. package/assets/init/.qfai/specs/spec-0001/spec.md +1 -1
  19. package/dist/cli/index.cjs +589 -114
  20. package/dist/cli/index.cjs.map +1 -1
  21. package/dist/cli/index.mjs +591 -116
  22. package/dist/cli/index.mjs.map +1 -1
  23. package/dist/index.cjs +542 -67
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -1
  26. package/dist/index.d.ts +3 -1
  27. package/dist/index.mjs +544 -69
  28. package/dist/index.mjs.map +1 -1
  29. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -99,7 +99,7 @@ declare function findConfigRoot(startDir: string): Promise<ConfigSearchResult>;
99
99
  declare function loadConfig(root: string): Promise<ConfigLoadResult>;
100
100
  declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
101
101
 
102
- type IdPrefix = "SPEC" | "BR" | "SC" | "UI" | "API" | "DB";
102
+ type IdPrefix = "SPEC" | "BR" | "SC" | "UI" | "API" | "DB" | "THEMA";
103
103
  type IdFormatPrefix = IdPrefix | "ADR";
104
104
  declare function extractIds(text: string, prefix: IdPrefix): string[];
105
105
  declare function extractAllIds(text: string): string[];
@@ -112,6 +112,7 @@ type ReportSummary = {
112
112
  api: number;
113
113
  ui: number;
114
114
  db: number;
115
+ thema: number;
115
116
  };
116
117
  counts: ValidationCounts;
117
118
  };
@@ -122,6 +123,7 @@ type ReportIds = {
122
123
  ui: string[];
123
124
  api: string[];
124
125
  db: string[];
126
+ thema: string[];
125
127
  };
126
128
  type ReportContractCoverage = {
127
129
  total: number;
package/dist/index.d.ts CHANGED
@@ -99,7 +99,7 @@ declare function findConfigRoot(startDir: string): Promise<ConfigSearchResult>;
99
99
  declare function loadConfig(root: string): Promise<ConfigLoadResult>;
100
100
  declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
101
101
 
102
- type IdPrefix = "SPEC" | "BR" | "SC" | "UI" | "API" | "DB";
102
+ type IdPrefix = "SPEC" | "BR" | "SC" | "UI" | "API" | "DB" | "THEMA";
103
103
  type IdFormatPrefix = IdPrefix | "ADR";
104
104
  declare function extractIds(text: string, prefix: IdPrefix): string[];
105
105
  declare function extractAllIds(text: string): string[];
@@ -112,6 +112,7 @@ type ReportSummary = {
112
112
  api: number;
113
113
  ui: number;
114
114
  db: number;
115
+ thema: number;
115
116
  };
116
117
  counts: ValidationCounts;
117
118
  };
@@ -122,6 +123,7 @@ type ReportIds = {
122
123
  ui: string[];
123
124
  api: string[];
124
125
  db: string[];
126
+ thema: string[];
125
127
  };
126
128
  type ReportContractCoverage = {
127
129
  total: number;