qfai 2.1.2 → 2.2.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.
Files changed (162) hide show
  1. package/README.md +46 -6
  2. package/assets/defaults/agent-routing/qfai-implement.yml +9 -0
  3. package/assets/defaults/agent-routing/qfai-triage.yml +9 -0
  4. package/assets/defaults/workflows/answer-in-session.yml +8 -0
  5. package/assets/defaults/workflows/bump-dependency.yml +4 -1
  6. package/assets/defaults/workflows/decide-design.yml +5 -1
  7. package/assets/defaults/workflows/quarantine-flaky.yml +3 -0
  8. package/assets/defaults/workflows/rename-concept.yml +30 -0
  9. package/assets/defaults/workflows/repair-consistency.yml +1 -0
  10. package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
  11. package/assets/defaults/workflows/retire-feature.yml +26 -0
  12. package/assets/defaults/workflows/run-operation.yml +11 -0
  13. package/assets/defaults/workflows/run-release.yml +12 -0
  14. package/assets/defaults/workflows/write-procedure.yml +18 -0
  15. package/assets/graph/codegraph-native.mjs +174 -0
  16. package/assets/graph/graphify-native.py +72 -0
  17. package/assets/init/.claude/settings.json +11 -29
  18. package/assets/init/.codex/hooks.json +9 -21
  19. package/assets/init/.qfai/assistant/agent/backend-engineer.md +1 -1
  20. package/assets/init/.qfai/assistant/agent/frontend-engineer.md +1 -1
  21. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +5 -0
  22. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +8 -3
  23. package/assets/init/.qfai/assistant/rule/constitution.md +36 -18
  24. package/assets/init/.qfai/assistant/rule/drift-protocol.md +80 -1
  25. package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +27 -0
  26. package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
  27. package/assets/init/.qfai/assistant/rule/references/griller-recommendations.md +21 -9
  28. package/assets/init/.qfai/assistant/rule/review-convergence.md +34 -15
  29. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +12 -2
  30. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +14 -7
  31. package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
  32. package/assets/init/.qfai/assistant/rule/workflow.md +2 -1
  33. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +11 -2
  34. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +32 -10
  35. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
  36. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
  37. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
  38. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
  39. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
  40. package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +30 -20
  41. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +4 -3
  42. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +8 -2
  43. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +9 -2
  44. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +10 -0
  45. package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
  46. package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
  47. package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +3 -3
  48. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +10 -9
  49. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +33 -2
  50. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
  51. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +12 -3
  52. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +3 -1
  53. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +31 -5
  54. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +48 -46
  55. package/assets/init/.qfai/assistant/skill/qfai-run/references/codex-cloud-install.md +80 -0
  56. package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +202 -126
  57. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +38 -15
  58. package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +48 -22
  59. package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +134 -0
  60. package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
  61. package/assets/init/.qfai/assistant/skill/qfai-run/scripts/codex-cloud-install.mjs +117 -0
  62. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +2 -1
  63. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +1 -1
  64. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +20 -7
  65. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
  66. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +2 -2
  67. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +5 -1
  68. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +2 -2
  69. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +111 -7
  70. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
  71. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +58 -8
  72. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
  73. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
  74. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +18 -0
  75. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
  76. package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +10 -7
  77. package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +22 -16
  78. package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +1 -1
  79. package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +33 -16
  80. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +37 -8
  81. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +25 -4
  82. package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +1 -0
  83. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +68 -15
  84. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +25 -10
  85. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +17 -1
  86. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +23 -3
  87. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +9 -1
  88. package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -0
  89. package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -0
  90. package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +33 -3
  91. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -3
  92. package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +98 -0
  93. package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +21 -4
  94. package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -5
  95. package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +3 -3
  96. package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -0
  97. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -5
  98. package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +33 -2
  99. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -5
  100. package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +70 -6
  101. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -6
  102. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -3
  103. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +56 -6
  104. package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +13 -0
  105. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +8 -0
  106. package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -4
  107. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -1
  108. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +52 -14
  109. package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +2 -2
  110. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -2
  111. package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -0
  112. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +123 -0
  113. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -10
  114. package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +8 -1
  115. package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +40 -0
  116. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +77 -7
  117. package/assets/init/root/.agents/rules/api-budget.md +8 -3
  118. package/assets/init/root/.agents/rules/document-schema.md +17 -0
  119. package/assets/init/root/.agents/rules/documentation-clarity.md +1 -1
  120. package/assets/init/root/.agents/rules/graph-exploration.md +164 -0
  121. package/assets/init/root/.agents/rules/grilling.md +100 -43
  122. package/assets/init/root/.agents/rules/reminders.json +20 -32
  123. package/assets/init/root/.agents/rules/session-feedback.md +6 -11
  124. package/assets/init/root/.agents/rules/untrusted-content.md +2 -2
  125. package/assets/init/root/.agents/rules/user-questions.md +24 -14
  126. package/assets/init/root/.gitattributes +2 -0
  127. package/assets/init/root/.github/workflows/qfai-docs.yml +2 -2
  128. package/assets/init/root/.github/workflows/qfai-tests.yml +88 -35
  129. package/assets/init/root/.github/workflows/qfai-validate.yml +2 -2
  130. package/assets/init/root/AGENTS.md +1 -0
  131. package/assets/mdschema/manifest.yml +3 -0
  132. package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
  133. package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
  134. package/assets/mdschema/story/decisions.mdschema.yml +12 -0
  135. package/assets/schemas/workflow/extraction.schema.json +98 -2
  136. package/assets/schemas/workflow/plan.schema.json +34 -1
  137. package/assets/scripts/check-mdschema.mjs +497 -39
  138. package/dist/cli/index.cjs +7667 -3515
  139. package/dist/cli/index.cjs.map +1 -1
  140. package/dist/cli/index.mjs +8872 -4702
  141. package/dist/cli/index.mjs.map +1 -1
  142. package/dist/graph/cli.cjs +1568 -0
  143. package/dist/graph/cli.cjs.map +1 -0
  144. package/dist/graph/cli.d.cts +9 -0
  145. package/dist/graph/cli.d.ts +9 -0
  146. package/dist/graph/cli.mjs +1541 -0
  147. package/dist/graph/cli.mjs.map +1 -0
  148. package/dist/graph/hook.cjs +817 -0
  149. package/dist/graph/hook.cjs.map +1 -0
  150. package/dist/graph/hook.d.cts +9 -0
  151. package/dist/graph/hook.d.ts +9 -0
  152. package/dist/graph/hook.mjs +792 -0
  153. package/dist/graph/hook.mjs.map +1 -0
  154. package/dist/index.cjs +6436 -3012
  155. package/dist/index.cjs.map +1 -1
  156. package/dist/index.d.cts +185 -1
  157. package/dist/index.d.ts +185 -1
  158. package/dist/index.mjs +6620 -3197
  159. package/dist/index.mjs.map +1 -1
  160. package/dist/process-C21nTvkT.d.cts +12 -0
  161. package/dist/process-C21nTvkT.d.ts +12 -0
  162. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,3 +1,5 @@
1
+ import { G as GraphProcess } from './process-C21nTvkT.cjs';
2
+
1
3
  type IssueSeverity = "info" | "warning" | "error";
2
4
  type IssueCategory = "canonical" | "change";
3
5
  type IssueLocation = {
@@ -93,6 +95,38 @@ type ValidationTimings = {
93
95
  uiuxBudgetMs: number;
94
96
  htmlMockMs: number;
95
97
  htmlMockBudgetMs: number;
98
+ /**
99
+ * What each validator of the UI/UX group took, slowest first. The validators run side by side
100
+ * on one event loop, so each time includes waiting for the others: the parts overlap, do not
101
+ * add up to `uiuxMs`, and can credit a fast validator with another's time. They say where to
102
+ * look, not how the time divides.
103
+ */
104
+ uiuxParts: readonly {
105
+ name: string;
106
+ ms: number;
107
+ }[];
108
+ };
109
+ /**
110
+ * The time the checks under one label took. The label is the code families of the issues those
111
+ * checks returned (`STORY` for `QFAI-STORY-*`), or a check's own name when it returned none.
112
+ */
113
+ type ValidationFamilyTiming = {
114
+ family: string;
115
+ ms: number;
116
+ };
117
+ /**
118
+ * Wall-clock cost of each finding family, slowest first, written only when `--timings` asks for it.
119
+ *
120
+ * Like `ValidationTimings` it describes the machine, not the tree, so it raises no finding.
121
+ */
122
+ type ValidationFamilyTimings = {
123
+ /** Checks that ran one after another, summed per family. */
124
+ sequential: readonly ValidationFamilyTiming[];
125
+ /**
126
+ * The UI/UX group, whose checks run side by side: each time includes waiting for the others,
127
+ * so these overlap and do not add up to the group's own time.
128
+ */
129
+ overlapping: readonly ValidationFamilyTiming[];
96
130
  };
97
131
  type ValidationResult = {
98
132
  toolVersion: string;
@@ -127,6 +161,7 @@ type ValidationResult = {
127
161
  counts: ValidationCounts;
128
162
  waivers?: ValidationWaivers;
129
163
  timings?: ValidationTimings;
164
+ familyTimings?: ValidationFamilyTimings;
130
165
  };
131
166
 
132
167
  type FailOn = "never" | "warning" | "error";
@@ -337,6 +372,20 @@ declare const SKIPPED_WORKFLOWS_MESSAGE: string;
337
372
  * `null` means the value is not a list of shipped names, and no entry is guessed in its place.
338
373
  */
339
374
  declare function readSkippedWorkflows(document: unknown): ReadonlySet<string> | null;
375
+ /** The config issue an invalid `workflow.acceptedDrift` raises. */
376
+ declare const ACCEPTED_DRIFT_MESSAGE: string;
377
+ /** One `workflow.acceptedDrift` entry: the digest of the accepted text and why it is kept. */
378
+ type AcceptedDrift = {
379
+ readonly digest: string;
380
+ readonly reason: string;
381
+ };
382
+ /**
383
+ * The shipped workflows `workflow.acceptedDrift` accepts as differing from the shipped text, each
384
+ * with the digest of the accepted text and its trimmed reason, read from the parsed config
385
+ * document. `null` means the value is not a list of such entries, and no entry is accepted in its
386
+ * place.
387
+ */
388
+ declare function readAcceptedDrift(document: unknown): ReadonlyMap<string, AcceptedDrift> | null;
340
389
  declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
341
390
  /**
342
391
  * Why the file's `prototyping.primaryUiContract` was rejected, or `undefined` when the file sets
@@ -599,12 +648,37 @@ declare function formatReportMarkdown(data: ReportData, options?: {
599
648
  }): string;
600
649
  declare function formatReportJson(data: ReportData): string;
601
650
 
651
+ /**
652
+ * The checks of a clock under the label a user can read, summed per label, slowest first and ties
653
+ * in name order. The label is the code families of the issues the check returned, sorted and
654
+ * joined with `/`, so it cannot disagree with the findings; a check that returned none keeps its
655
+ * own name.
656
+ */
657
+ declare function labelCheckTimings(clock: ReadonlyMap<string, {
658
+ ms: number;
659
+ families: ReadonlySet<string>;
660
+ }>): ValidationFamilyTiming[];
602
661
  type ValidationOptions = {
603
662
  profile?: ValidationProfile;
604
663
  platform?: string;
605
664
  flowIds?: readonly string[];
665
+ /** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
666
+ renderedPath?: string;
667
+ /** Add the time of each finding family to the result (`--timings`). */
668
+ familyTimings?: boolean;
606
669
  };
607
670
  declare function validateProject(root: string, configResult?: ConfigLoadResult, options?: ValidationOptions): Promise<ValidationResult>;
671
+ /**
672
+ * The parts of the UI/UX group, slowest first. The html-mock part leaves out the one-off load of
673
+ * its parser, as the group's own time does.
674
+ */
675
+ declare function orderUiuxParts(parts: readonly {
676
+ name: string;
677
+ ms: number;
678
+ }[], htmlMockLoadMs: number): {
679
+ name: string;
680
+ ms: number;
681
+ }[];
608
682
  /**
609
683
  * Count findings by severity, skipping suppressed ones. `counts` is the SSOT
610
684
  * every gate reads, so anything that rebuilds a `ValidationResult` from an
@@ -716,6 +790,44 @@ declare function classifyAgainstDeclaration(declaringDir: string, packageDir: st
716
790
  * statement but still a statement.
717
791
  */
718
792
  declare function findDeclaringDir(root: string): Promise<string | null>;
793
+ /**
794
+ * The range the nearest `package.json` declaring qfai gives it, or `null` when
795
+ * no manifest at or above `root` declares it with a text range.
796
+ *
797
+ * Read from the manifest {@link findDeclaringDir} stops at, so the range and the
798
+ * directory it is compared against are one declaration.
799
+ */
800
+ declare function readDeclaredQfaiRange(root: string): Promise<string | null>;
801
+ /**
802
+ * The lowest version a dependency range admits, as `x.y.z`, or `null` when the
803
+ * range does not state one this reads.
804
+ *
805
+ * Only the forms a project writes for a pinned dependency are read: an exact
806
+ * version, and a caret, tilde or `>=` range, each optionally followed by more
807
+ * comparators (`>=2.1.1 <3`). A tag (`latest`), a wildcard (`2.x`), an
808
+ * alternative (`||`), a protocol (`workspace:`, `file:`, `github:`) and a
809
+ * partial version (`^2.1`) answer `null`, so nothing is compared against them.
810
+ */
811
+ declare function lowestVersionOfRange(range: string): string | null;
812
+ /** Whether `version` is strictly older than `other`; `false` where either is unreadable. */
813
+ declare function isOlderVersion(version: string, other: string): boolean;
814
+ /** An installed qfai that is older than the version the project declares. */
815
+ type InstalledOlderThanDeclared = {
816
+ readonly installed: string;
817
+ readonly declaredRange: string;
818
+ readonly declaredLowest: string;
819
+ };
820
+ /**
821
+ * Whether the running qfai is older than the lowest version this project's
822
+ * dependency declaration admits.
823
+ *
824
+ * The declaration is the project's own record of "the qfai this tree was
825
+ * written for", beside the version file `qfai init` writes. An
826
+ * installed copy below that floor is the state a lockfile that moved after the
827
+ * last install leaves, and every rule whose input is a generated file can then
828
+ * disagree with the tree for a reason that is not in the tree.
829
+ */
830
+ declare function compareInstalledToDeclared(installed: string, declaredRange: string | null): InstalledOlderThanDeclared | null;
719
831
  /**
720
832
  * Whether `packageDir` is an installed copy resolved from outside `root`.
721
833
  *
@@ -911,7 +1023,79 @@ declare const DESIGN_MD_SAMPLE_MARKER = "QFAI-SAMPLE-DESIGN-MD";
911
1023
  */
912
1024
  declare function isUnreplacedDesignMdSample(text: unknown): boolean;
913
1025
 
1026
+ interface GraphPreparation {
1027
+ runtime: "installed" | "not-ready";
1028
+ tools?: {
1029
+ codegraph: "installed" | "not-ready";
1030
+ graphify: "installed" | "not-ready";
1031
+ };
1032
+ code: "code-ready" | "code-not-ready";
1033
+ documents: "documents-not-ready";
1034
+ failedStep?: string;
1035
+ recovery?: string;
1036
+ /** A failed download repeated by hand into a throwaway directory, whose output shows the cause. */
1037
+ rerun?: {
1038
+ command: string;
1039
+ directory: string;
1040
+ };
1041
+ previousInstallation?: "retained" | "none";
1042
+ }
1043
+
1044
+ type GraphHookHost = "claude" | "codex" | "copilot" | "vscode";
1045
+
1046
+ interface GraphHostFacts {
1047
+ host: GraphHookHost;
1048
+ version?: string;
1049
+ configuration: "configured" | "not-configured" | "failed";
1050
+ denialEvent?: string;
1051
+ failureProtocol?: "supported" | "unsupported" | "unverified";
1052
+ trust: "required" | "granted" | "not-required" | "unknown";
1053
+ }
1054
+ interface GraphHostProtection {
1055
+ host: GraphHookHost;
1056
+ version?: string;
1057
+ state: "configured" | "trust-required" | "runtime-verified" | "unsupported" | "failed";
1058
+ events: readonly string[];
1059
+ recovery: string;
1060
+ configuration?: GraphHostFacts["configuration"];
1061
+ trust?: GraphHostFacts["trust"];
1062
+ }
1063
+
1064
+ interface GraphSettingsComposition {
1065
+ files: string[];
1066
+ conflicts: string[];
1067
+ }
1068
+
1069
+ type GraphIntegrationPreparation = GraphPreparation & GraphSettingsComposition & {
1070
+ hosts: GraphHostProtection[];
1071
+ };
1072
+ declare function prepareGraphIntegration(root: string, run?: GraphProcess): Promise<GraphIntegrationPreparation>;
1073
+
1074
+ declare function renderGraphPreparation(preparation: GraphPreparation, hosts?: readonly GraphHostProtection[]): string;
1075
+
1076
+ interface GraphReuseEnvironment {
1077
+ platform: string;
1078
+ architecture: string;
1079
+ machine: string;
1080
+ }
1081
+
1082
+ interface DocumentPreparation {
1083
+ status: "prepared" | "not-ready" | "failed";
1084
+ source?: "current" | "restored" | "generated";
1085
+ reuse?: "published" | "unavailable";
1086
+ recovery?: string;
1087
+ }
1088
+ interface ExternalProcessingRequest {
1089
+ readonly destination: string;
1090
+ readonly scope: readonly string[];
1091
+ readonly backend: string;
1092
+ readonly model: string;
1093
+ readonly worktree: string;
1094
+ }
1095
+ type ApproveExternalProcessing = (request: ExternalProcessingRequest) => Promise<boolean>;
1096
+ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, approveExternal?: ApproveExternalProcessing, environment?: GraphReuseEnvironment): Promise<DocumentPreparation>;
1097
+
914
1098
  /** Run one ordered spec-to-story migration step from the current project root. */
915
1099
  declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
916
1100
 
917
- export { AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiReviewProfile, type QfaiRoutingEntry, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isUnreplacedDesignMdSample, lintSql, loadConfig, locateToolAgainstProject, maskFencedCodeBlocks, packageRootProbe, parseDesignMd, reachedThroughLinkedNodeModules, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, routingEntryName, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
1101
+ export { ACCEPTED_DRIFT_MESSAGE, AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type AcceptedDrift, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiReviewProfile, type QfaiRoutingEntry, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationFamilyTiming, type ValidationFamilyTimings, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, compareInstalledToDeclared, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isOlderVersion, isUnreplacedDesignMdSample, labelCheckTimings, lintSql, loadConfig, locateToolAgainstProject, lowestVersionOfRange, maskFencedCodeBlocks, orderUiuxParts, packageRootProbe, parseDesignMd, prepareDocumentAnalysis, prepareGraphIntegration, reachedThroughLinkedNodeModules, readAcceptedDrift, readDeclaredQfaiRange, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, renderGraphPreparation, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, routingEntryName, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { G as GraphProcess } from './process-C21nTvkT.js';
2
+
1
3
  type IssueSeverity = "info" | "warning" | "error";
2
4
  type IssueCategory = "canonical" | "change";
3
5
  type IssueLocation = {
@@ -93,6 +95,38 @@ type ValidationTimings = {
93
95
  uiuxBudgetMs: number;
94
96
  htmlMockMs: number;
95
97
  htmlMockBudgetMs: number;
98
+ /**
99
+ * What each validator of the UI/UX group took, slowest first. The validators run side by side
100
+ * on one event loop, so each time includes waiting for the others: the parts overlap, do not
101
+ * add up to `uiuxMs`, and can credit a fast validator with another's time. They say where to
102
+ * look, not how the time divides.
103
+ */
104
+ uiuxParts: readonly {
105
+ name: string;
106
+ ms: number;
107
+ }[];
108
+ };
109
+ /**
110
+ * The time the checks under one label took. The label is the code families of the issues those
111
+ * checks returned (`STORY` for `QFAI-STORY-*`), or a check's own name when it returned none.
112
+ */
113
+ type ValidationFamilyTiming = {
114
+ family: string;
115
+ ms: number;
116
+ };
117
+ /**
118
+ * Wall-clock cost of each finding family, slowest first, written only when `--timings` asks for it.
119
+ *
120
+ * Like `ValidationTimings` it describes the machine, not the tree, so it raises no finding.
121
+ */
122
+ type ValidationFamilyTimings = {
123
+ /** Checks that ran one after another, summed per family. */
124
+ sequential: readonly ValidationFamilyTiming[];
125
+ /**
126
+ * The UI/UX group, whose checks run side by side: each time includes waiting for the others,
127
+ * so these overlap and do not add up to the group's own time.
128
+ */
129
+ overlapping: readonly ValidationFamilyTiming[];
96
130
  };
97
131
  type ValidationResult = {
98
132
  toolVersion: string;
@@ -127,6 +161,7 @@ type ValidationResult = {
127
161
  counts: ValidationCounts;
128
162
  waivers?: ValidationWaivers;
129
163
  timings?: ValidationTimings;
164
+ familyTimings?: ValidationFamilyTimings;
130
165
  };
131
166
 
132
167
  type FailOn = "never" | "warning" | "error";
@@ -337,6 +372,20 @@ declare const SKIPPED_WORKFLOWS_MESSAGE: string;
337
372
  * `null` means the value is not a list of shipped names, and no entry is guessed in its place.
338
373
  */
339
374
  declare function readSkippedWorkflows(document: unknown): ReadonlySet<string> | null;
375
+ /** The config issue an invalid `workflow.acceptedDrift` raises. */
376
+ declare const ACCEPTED_DRIFT_MESSAGE: string;
377
+ /** One `workflow.acceptedDrift` entry: the digest of the accepted text and why it is kept. */
378
+ type AcceptedDrift = {
379
+ readonly digest: string;
380
+ readonly reason: string;
381
+ };
382
+ /**
383
+ * The shipped workflows `workflow.acceptedDrift` accepts as differing from the shipped text, each
384
+ * with the digest of the accepted text and its trimmed reason, read from the parsed config
385
+ * document. `null` means the value is not a list of such entries, and no entry is accepted in its
386
+ * place.
387
+ */
388
+ declare function readAcceptedDrift(document: unknown): ReadonlyMap<string, AcceptedDrift> | null;
340
389
  declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
341
390
  /**
342
391
  * Why the file's `prototyping.primaryUiContract` was rejected, or `undefined` when the file sets
@@ -599,12 +648,37 @@ declare function formatReportMarkdown(data: ReportData, options?: {
599
648
  }): string;
600
649
  declare function formatReportJson(data: ReportData): string;
601
650
 
651
+ /**
652
+ * The checks of a clock under the label a user can read, summed per label, slowest first and ties
653
+ * in name order. The label is the code families of the issues the check returned, sorted and
654
+ * joined with `/`, so it cannot disagree with the findings; a check that returned none keeps its
655
+ * own name.
656
+ */
657
+ declare function labelCheckTimings(clock: ReadonlyMap<string, {
658
+ ms: number;
659
+ families: ReadonlySet<string>;
660
+ }>): ValidationFamilyTiming[];
602
661
  type ValidationOptions = {
603
662
  profile?: ValidationProfile;
604
663
  platform?: string;
605
664
  flowIds?: readonly string[];
665
+ /** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
666
+ renderedPath?: string;
667
+ /** Add the time of each finding family to the result (`--timings`). */
668
+ familyTimings?: boolean;
606
669
  };
607
670
  declare function validateProject(root: string, configResult?: ConfigLoadResult, options?: ValidationOptions): Promise<ValidationResult>;
671
+ /**
672
+ * The parts of the UI/UX group, slowest first. The html-mock part leaves out the one-off load of
673
+ * its parser, as the group's own time does.
674
+ */
675
+ declare function orderUiuxParts(parts: readonly {
676
+ name: string;
677
+ ms: number;
678
+ }[], htmlMockLoadMs: number): {
679
+ name: string;
680
+ ms: number;
681
+ }[];
608
682
  /**
609
683
  * Count findings by severity, skipping suppressed ones. `counts` is the SSOT
610
684
  * every gate reads, so anything that rebuilds a `ValidationResult` from an
@@ -716,6 +790,44 @@ declare function classifyAgainstDeclaration(declaringDir: string, packageDir: st
716
790
  * statement but still a statement.
717
791
  */
718
792
  declare function findDeclaringDir(root: string): Promise<string | null>;
793
+ /**
794
+ * The range the nearest `package.json` declaring qfai gives it, or `null` when
795
+ * no manifest at or above `root` declares it with a text range.
796
+ *
797
+ * Read from the manifest {@link findDeclaringDir} stops at, so the range and the
798
+ * directory it is compared against are one declaration.
799
+ */
800
+ declare function readDeclaredQfaiRange(root: string): Promise<string | null>;
801
+ /**
802
+ * The lowest version a dependency range admits, as `x.y.z`, or `null` when the
803
+ * range does not state one this reads.
804
+ *
805
+ * Only the forms a project writes for a pinned dependency are read: an exact
806
+ * version, and a caret, tilde or `>=` range, each optionally followed by more
807
+ * comparators (`>=2.1.1 <3`). A tag (`latest`), a wildcard (`2.x`), an
808
+ * alternative (`||`), a protocol (`workspace:`, `file:`, `github:`) and a
809
+ * partial version (`^2.1`) answer `null`, so nothing is compared against them.
810
+ */
811
+ declare function lowestVersionOfRange(range: string): string | null;
812
+ /** Whether `version` is strictly older than `other`; `false` where either is unreadable. */
813
+ declare function isOlderVersion(version: string, other: string): boolean;
814
+ /** An installed qfai that is older than the version the project declares. */
815
+ type InstalledOlderThanDeclared = {
816
+ readonly installed: string;
817
+ readonly declaredRange: string;
818
+ readonly declaredLowest: string;
819
+ };
820
+ /**
821
+ * Whether the running qfai is older than the lowest version this project's
822
+ * dependency declaration admits.
823
+ *
824
+ * The declaration is the project's own record of "the qfai this tree was
825
+ * written for", beside the version file `qfai init` writes. An
826
+ * installed copy below that floor is the state a lockfile that moved after the
827
+ * last install leaves, and every rule whose input is a generated file can then
828
+ * disagree with the tree for a reason that is not in the tree.
829
+ */
830
+ declare function compareInstalledToDeclared(installed: string, declaredRange: string | null): InstalledOlderThanDeclared | null;
719
831
  /**
720
832
  * Whether `packageDir` is an installed copy resolved from outside `root`.
721
833
  *
@@ -911,7 +1023,79 @@ declare const DESIGN_MD_SAMPLE_MARKER = "QFAI-SAMPLE-DESIGN-MD";
911
1023
  */
912
1024
  declare function isUnreplacedDesignMdSample(text: unknown): boolean;
913
1025
 
1026
+ interface GraphPreparation {
1027
+ runtime: "installed" | "not-ready";
1028
+ tools?: {
1029
+ codegraph: "installed" | "not-ready";
1030
+ graphify: "installed" | "not-ready";
1031
+ };
1032
+ code: "code-ready" | "code-not-ready";
1033
+ documents: "documents-not-ready";
1034
+ failedStep?: string;
1035
+ recovery?: string;
1036
+ /** A failed download repeated by hand into a throwaway directory, whose output shows the cause. */
1037
+ rerun?: {
1038
+ command: string;
1039
+ directory: string;
1040
+ };
1041
+ previousInstallation?: "retained" | "none";
1042
+ }
1043
+
1044
+ type GraphHookHost = "claude" | "codex" | "copilot" | "vscode";
1045
+
1046
+ interface GraphHostFacts {
1047
+ host: GraphHookHost;
1048
+ version?: string;
1049
+ configuration: "configured" | "not-configured" | "failed";
1050
+ denialEvent?: string;
1051
+ failureProtocol?: "supported" | "unsupported" | "unverified";
1052
+ trust: "required" | "granted" | "not-required" | "unknown";
1053
+ }
1054
+ interface GraphHostProtection {
1055
+ host: GraphHookHost;
1056
+ version?: string;
1057
+ state: "configured" | "trust-required" | "runtime-verified" | "unsupported" | "failed";
1058
+ events: readonly string[];
1059
+ recovery: string;
1060
+ configuration?: GraphHostFacts["configuration"];
1061
+ trust?: GraphHostFacts["trust"];
1062
+ }
1063
+
1064
+ interface GraphSettingsComposition {
1065
+ files: string[];
1066
+ conflicts: string[];
1067
+ }
1068
+
1069
+ type GraphIntegrationPreparation = GraphPreparation & GraphSettingsComposition & {
1070
+ hosts: GraphHostProtection[];
1071
+ };
1072
+ declare function prepareGraphIntegration(root: string, run?: GraphProcess): Promise<GraphIntegrationPreparation>;
1073
+
1074
+ declare function renderGraphPreparation(preparation: GraphPreparation, hosts?: readonly GraphHostProtection[]): string;
1075
+
1076
+ interface GraphReuseEnvironment {
1077
+ platform: string;
1078
+ architecture: string;
1079
+ machine: string;
1080
+ }
1081
+
1082
+ interface DocumentPreparation {
1083
+ status: "prepared" | "not-ready" | "failed";
1084
+ source?: "current" | "restored" | "generated";
1085
+ reuse?: "published" | "unavailable";
1086
+ recovery?: string;
1087
+ }
1088
+ interface ExternalProcessingRequest {
1089
+ readonly destination: string;
1090
+ readonly scope: readonly string[];
1091
+ readonly backend: string;
1092
+ readonly model: string;
1093
+ readonly worktree: string;
1094
+ }
1095
+ type ApproveExternalProcessing = (request: ExternalProcessingRequest) => Promise<boolean>;
1096
+ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, approveExternal?: ApproveExternalProcessing, environment?: GraphReuseEnvironment): Promise<DocumentPreparation>;
1097
+
914
1098
  /** Run one ordered spec-to-story migration step from the current project root. */
915
1099
  declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
916
1100
 
917
- export { AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiReviewProfile, type QfaiRoutingEntry, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isUnreplacedDesignMdSample, lintSql, loadConfig, locateToolAgainstProject, maskFencedCodeBlocks, packageRootProbe, parseDesignMd, reachedThroughLinkedNodeModules, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, routingEntryName, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
1101
+ export { ACCEPTED_DRIFT_MESSAGE, AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type AcceptedDrift, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiReviewProfile, type QfaiRoutingEntry, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationFamilyTiming, type ValidationFamilyTimings, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, compareInstalledToDeclared, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isOlderVersion, isUnreplacedDesignMdSample, labelCheckTimings, lintSql, loadConfig, locateToolAgainstProject, lowestVersionOfRange, maskFencedCodeBlocks, orderUiuxParts, packageRootProbe, parseDesignMd, prepareDocumentAnalysis, prepareGraphIntegration, reachedThroughLinkedNodeModules, readAcceptedDrift, readDeclaredQfaiRange, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, renderGraphPreparation, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, routingEntryName, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };