@zxyycom/vibe-check 0.0.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 (767) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +154 -0
  3. package/dist/esm/check/check.mjs +5 -0
  4. package/dist/esm/check/check.mjs.map +1 -0
  5. package/dist/esm/check/descriptor-validation.mjs +37 -0
  6. package/dist/esm/check/descriptor-validation.mjs.map +1 -0
  7. package/dist/esm/check/descriptor.mjs +2 -0
  8. package/dist/esm/check/descriptor.mjs.map +1 -0
  9. package/dist/esm/check/inherited-collection.mjs +62 -0
  10. package/dist/esm/check/inherited-collection.mjs.map +1 -0
  11. package/dist/esm/check/options-snapshot.mjs +75 -0
  12. package/dist/esm/check/options-snapshot.mjs.map +1 -0
  13. package/dist/esm/check-settlement/fact-validation.mjs +216 -0
  14. package/dist/esm/check-settlement/fact-validation.mjs.map +1 -0
  15. package/dist/esm/check-settlement/facts.mjs +2 -0
  16. package/dist/esm/check-settlement/facts.mjs.map +1 -0
  17. package/dist/esm/check-settlement/outcome-normalization.mjs +80 -0
  18. package/dist/esm/check-settlement/outcome-normalization.mjs.map +1 -0
  19. package/dist/esm/check-settlement/record-store.mjs +59 -0
  20. package/dist/esm/check-settlement/record-store.mjs.map +1 -0
  21. package/dist/esm/check-settlement/session.mjs +179 -0
  22. package/dist/esm/check-settlement/session.mjs.map +1 -0
  23. package/dist/esm/data-boundary/canonical-data.mjs +159 -0
  24. package/dist/esm/data-boundary/canonical-data.mjs.map +1 -0
  25. package/dist/esm/data-boundary/canonical-json.mjs +2 -0
  26. package/dist/esm/data-boundary/canonical-json.mjs.map +1 -0
  27. package/dist/esm/data-boundary/closed-values.mjs +98 -0
  28. package/dist/esm/data-boundary/closed-values.mjs.map +1 -0
  29. package/dist/esm/data-boundary/value-shapes.mjs +13 -0
  30. package/dist/esm/data-boundary/value-shapes.mjs.map +1 -0
  31. package/dist/esm/finding-waivers/reconciliation.mjs +84 -0
  32. package/dist/esm/finding-waivers/reconciliation.mjs.map +1 -0
  33. package/dist/esm/index.mjs +26 -0
  34. package/dist/esm/index.mjs.map +1 -0
  35. package/dist/esm/machine-output/v4/atomic-publication.mjs +102 -0
  36. package/dist/esm/machine-output/v4/atomic-publication.mjs.map +1 -0
  37. package/dist/esm/machine-output/v4/freeze-publication-value.mjs +14 -0
  38. package/dist/esm/machine-output/v4/freeze-publication-value.mjs.map +1 -0
  39. package/dist/esm/machine-output/v4/projection.mjs +23 -0
  40. package/dist/esm/machine-output/v4/projection.mjs.map +1 -0
  41. package/dist/esm/machine-output/v4/publication-invariants.mjs +59 -0
  42. package/dist/esm/machine-output/v4/publication-invariants.mjs.map +1 -0
  43. package/dist/esm/machine-output/v4/publication-model.mjs +19 -0
  44. package/dist/esm/machine-output/v4/publication-model.mjs.map +1 -0
  45. package/dist/esm/machine-output/v4/publish.mjs +20 -0
  46. package/dist/esm/machine-output/v4/publish.mjs.map +1 -0
  47. package/dist/esm/machine-output/v4/records-fingerprint.mjs +9 -0
  48. package/dist/esm/machine-output/v4/records-fingerprint.mjs.map +1 -0
  49. package/dist/esm/machine-output/v4/schema-identities.mjs +8 -0
  50. package/dist/esm/machine-output/v4/schema-identities.mjs.map +1 -0
  51. package/dist/esm/machine-output/v4/schema.mjs +50 -0
  52. package/dist/esm/machine-output/v4/schema.mjs.map +1 -0
  53. package/dist/esm/machine-output/v4/serializers.mjs +9 -0
  54. package/dist/esm/machine-output/v4/serializers.mjs.map +1 -0
  55. package/dist/esm/machine-output/v4/validation-result.mjs +16 -0
  56. package/dist/esm/machine-output/v4/validation-result.mjs.map +1 -0
  57. package/dist/esm/machine-output/v4/validation.mjs +131 -0
  58. package/dist/esm/machine-output/v4/validation.mjs.map +1 -0
  59. package/dist/esm/package-checks/code-quality-findings/policy.mjs +49 -0
  60. package/dist/esm/package-checks/code-quality-findings/policy.mjs.map +1 -0
  61. package/dist/esm/package-checks/duplicate-detection/area-policy.mjs +71 -0
  62. package/dist/esm/package-checks/duplicate-detection/area-policy.mjs.map +1 -0
  63. package/dist/esm/package-checks/duplicate-detection/cache/cache-contract.mjs +2 -0
  64. package/dist/esm/package-checks/duplicate-detection/cache/cache-contract.mjs.map +1 -0
  65. package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs +37 -0
  66. package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs.map +1 -0
  67. package/dist/esm/package-checks/duplicate-detection/cache/key.mjs +38 -0
  68. package/dist/esm/package-checks/duplicate-detection/cache/key.mjs.map +1 -0
  69. package/dist/esm/package-checks/duplicate-detection/cache/payload.mjs +47 -0
  70. package/dist/esm/package-checks/duplicate-detection/cache/payload.mjs.map +1 -0
  71. package/dist/esm/package-checks/duplicate-detection/cache/store.mjs +44 -0
  72. package/dist/esm/package-checks/duplicate-detection/cache/store.mjs.map +1 -0
  73. package/dist/esm/package-checks/duplicate-detection/default-check.mjs +39 -0
  74. package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -0
  75. package/dist/esm/package-checks/duplicate-detection/execution.mjs +124 -0
  76. package/dist/esm/package-checks/duplicate-detection/execution.mjs.map +1 -0
  77. package/dist/esm/package-checks/duplicate-detection/final-data.mjs +6 -0
  78. package/dist/esm/package-checks/duplicate-detection/final-data.mjs.map +1 -0
  79. package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs +77 -0
  80. package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs.map +1 -0
  81. package/dist/esm/package-checks/duplicate-detection/jscpd/command-path.mjs +6 -0
  82. package/dist/esm/package-checks/duplicate-detection/jscpd/command-path.mjs.map +1 -0
  83. package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs +87 -0
  84. package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs.map +1 -0
  85. package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs +94 -0
  86. package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs.map +1 -0
  87. package/dist/esm/package-checks/duplicate-detection/jscpd/scanner-contract.mjs +2 -0
  88. package/dist/esm/package-checks/duplicate-detection/jscpd/scanner-contract.mjs.map +1 -0
  89. package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs +180 -0
  90. package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs.map +1 -0
  91. package/dist/esm/package-checks/duplicate-detection/jscpd/scoped-fragments.mjs +10 -0
  92. package/dist/esm/package-checks/duplicate-detection/jscpd/scoped-fragments.mjs.map +1 -0
  93. package/dist/esm/package-checks/duplicate-detection/measurement-model.mjs +2 -0
  94. package/dist/esm/package-checks/duplicate-detection/measurement-model.mjs.map +1 -0
  95. package/dist/esm/package-checks/duplicate-detection/measurement.mjs +151 -0
  96. package/dist/esm/package-checks/duplicate-detection/measurement.mjs.map +1 -0
  97. package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs +126 -0
  98. package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs.map +1 -0
  99. package/dist/esm/package-checks/duplicate-detection/options-validation.mjs +60 -0
  100. package/dist/esm/package-checks/duplicate-detection/options-validation.mjs.map +1 -0
  101. package/dist/esm/package-checks/duplicate-detection/options.mjs +2 -0
  102. package/dist/esm/package-checks/duplicate-detection/options.mjs.map +1 -0
  103. package/dist/esm/package-checks/duplicate-detection/project-revision.mjs +5 -0
  104. package/dist/esm/package-checks/duplicate-detection/project-revision.mjs.map +1 -0
  105. package/dist/esm/package-checks/duplicate-detection/records.mjs +119 -0
  106. package/dist/esm/package-checks/duplicate-detection/records.mjs.map +1 -0
  107. package/dist/esm/package-checks/file-metrics/constructor.mjs +39 -0
  108. package/dist/esm/package-checks/file-metrics/constructor.mjs.map +1 -0
  109. package/dist/esm/package-checks/file-metrics/execution.mjs +170 -0
  110. package/dist/esm/package-checks/file-metrics/execution.mjs.map +1 -0
  111. package/dist/esm/package-checks/file-metrics/final-data.mjs +6 -0
  112. package/dist/esm/package-checks/file-metrics/final-data.mjs.map +1 -0
  113. package/dist/esm/package-checks/file-metrics/measurement-model.mjs +2 -0
  114. package/dist/esm/package-checks/file-metrics/measurement-model.mjs.map +1 -0
  115. package/dist/esm/package-checks/file-metrics/measurement.mjs +33 -0
  116. package/dist/esm/package-checks/file-metrics/measurement.mjs.map +1 -0
  117. package/dist/esm/package-checks/file-metrics/options-resolution.mjs +171 -0
  118. package/dist/esm/package-checks/file-metrics/options-resolution.mjs.map +1 -0
  119. package/dist/esm/package-checks/file-metrics/options-validation.mjs +82 -0
  120. package/dist/esm/package-checks/file-metrics/options-validation.mjs.map +1 -0
  121. package/dist/esm/package-checks/file-metrics/options.mjs +2 -0
  122. package/dist/esm/package-checks/file-metrics/options.mjs.map +1 -0
  123. package/dist/esm/package-checks/file-metrics/records.mjs +109 -0
  124. package/dist/esm/package-checks/file-metrics/records.mjs.map +1 -0
  125. package/dist/esm/package-checks/file-metrics/scc/availability.mjs +59 -0
  126. package/dist/esm/package-checks/file-metrics/scc/availability.mjs.map +1 -0
  127. package/dist/esm/package-checks/file-metrics/scc/csv.mjs +17 -0
  128. package/dist/esm/package-checks/file-metrics/scc/csv.mjs.map +1 -0
  129. package/dist/esm/package-checks/file-metrics/scc/parser.mjs +145 -0
  130. package/dist/esm/package-checks/file-metrics/scc/parser.mjs.map +1 -0
  131. package/dist/esm/package-checks/file-metrics/scc/scanner.mjs +54 -0
  132. package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -0
  133. package/dist/esm/package-checks/final-data-parsing.mjs +35 -0
  134. package/dist/esm/package-checks/final-data-parsing.mjs.map +1 -0
  135. package/dist/esm/package-checks/function-metrics/analysis.mjs +96 -0
  136. package/dist/esm/package-checks/function-metrics/analysis.mjs.map +1 -0
  137. package/dist/esm/package-checks/function-metrics/constructor.mjs +43 -0
  138. package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -0
  139. package/dist/esm/package-checks/function-metrics/execution.mjs +178 -0
  140. package/dist/esm/package-checks/function-metrics/execution.mjs.map +1 -0
  141. package/dist/esm/package-checks/function-metrics/final-data.mjs +6 -0
  142. package/dist/esm/package-checks/function-metrics/final-data.mjs.map +1 -0
  143. package/dist/esm/package-checks/function-metrics/lizard/availability.mjs +64 -0
  144. package/dist/esm/package-checks/function-metrics/lizard/availability.mjs.map +1 -0
  145. package/dist/esm/package-checks/function-metrics/lizard/csv.mjs +17 -0
  146. package/dist/esm/package-checks/function-metrics/lizard/csv.mjs.map +1 -0
  147. package/dist/esm/package-checks/function-metrics/lizard/parser.mjs +138 -0
  148. package/dist/esm/package-checks/function-metrics/lizard/parser.mjs.map +1 -0
  149. package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs +35 -0
  150. package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs.map +1 -0
  151. package/dist/esm/package-checks/function-metrics/measurement-model.mjs +2 -0
  152. package/dist/esm/package-checks/function-metrics/measurement-model.mjs.map +1 -0
  153. package/dist/esm/package-checks/function-metrics/measurement.mjs +35 -0
  154. package/dist/esm/package-checks/function-metrics/measurement.mjs.map +1 -0
  155. package/dist/esm/package-checks/function-metrics/options-resolution.mjs +171 -0
  156. package/dist/esm/package-checks/function-metrics/options-resolution.mjs.map +1 -0
  157. package/dist/esm/package-checks/function-metrics/options-validation.mjs +71 -0
  158. package/dist/esm/package-checks/function-metrics/options-validation.mjs.map +1 -0
  159. package/dist/esm/package-checks/function-metrics/options.mjs +2 -0
  160. package/dist/esm/package-checks/function-metrics/options.mjs.map +1 -0
  161. package/dist/esm/package-checks/function-metrics/records.mjs +133 -0
  162. package/dist/esm/package-checks/function-metrics/records.mjs.map +1 -0
  163. package/dist/esm/package-checks/function-metrics/target-files.mjs +75 -0
  164. package/dist/esm/package-checks/function-metrics/target-files.mjs.map +1 -0
  165. package/dist/esm/package-checks/host-environment/error-message.mjs +4 -0
  166. package/dist/esm/package-checks/host-environment/error-message.mjs.map +1 -0
  167. package/dist/esm/package-checks/host-environment/filesystem.mjs +81 -0
  168. package/dist/esm/package-checks/host-environment/filesystem.mjs.map +1 -0
  169. package/dist/esm/package-checks/host-environment/git.mjs +51 -0
  170. package/dist/esm/package-checks/host-environment/git.mjs.map +1 -0
  171. package/dist/esm/package-checks/host-environment/path.mjs +18 -0
  172. package/dist/esm/package-checks/host-environment/path.mjs.map +1 -0
  173. package/dist/esm/package-checks/host-environment/process/command.mjs +13 -0
  174. package/dist/esm/package-checks/host-environment/process/command.mjs.map +1 -0
  175. package/dist/esm/package-checks/host-environment/process/contract.mjs +2 -0
  176. package/dist/esm/package-checks/host-environment/process/contract.mjs.map +1 -0
  177. package/dist/esm/package-checks/host-environment/process/env.mjs +19 -0
  178. package/dist/esm/package-checks/host-environment/process/env.mjs.map +1 -0
  179. package/dist/esm/package-checks/host-environment/process/failure.mjs +34 -0
  180. package/dist/esm/package-checks/host-environment/process/failure.mjs.map +1 -0
  181. package/dist/esm/package-checks/host-environment/process/result.mjs +33 -0
  182. package/dist/esm/package-checks/host-environment/process/result.mjs.map +1 -0
  183. package/dist/esm/package-checks/host-environment/process/runner.mjs +30 -0
  184. package/dist/esm/package-checks/host-environment/process/runner.mjs.map +1 -0
  185. package/dist/esm/package-checks/json-document/strict-document.mjs +163 -0
  186. package/dist/esm/package-checks/json-document/strict-document.mjs.map +1 -0
  187. package/dist/esm/package-checks/json-schema-validation/default-check.mjs +39 -0
  188. package/dist/esm/package-checks/json-schema-validation/default-check.mjs.map +1 -0
  189. package/dist/esm/package-checks/json-schema-validation/execution-stages.mjs +141 -0
  190. package/dist/esm/package-checks/json-schema-validation/execution-stages.mjs.map +1 -0
  191. package/dist/esm/package-checks/json-schema-validation/final-data.mjs +64 -0
  192. package/dist/esm/package-checks/json-schema-validation/final-data.mjs.map +1 -0
  193. package/dist/esm/package-checks/json-schema-validation/issue-collector.mjs +35 -0
  194. package/dist/esm/package-checks/json-schema-validation/issue-collector.mjs.map +1 -0
  195. package/dist/esm/package-checks/json-schema-validation/json-schema-validation.mjs +118 -0
  196. package/dist/esm/package-checks/json-schema-validation/json-schema-validation.mjs.map +1 -0
  197. package/dist/esm/package-checks/json-schema-validation/options-resolution.mjs +45 -0
  198. package/dist/esm/package-checks/json-schema-validation/options-resolution.mjs.map +1 -0
  199. package/dist/esm/package-checks/json-schema-validation/options-validation.mjs +212 -0
  200. package/dist/esm/package-checks/json-schema-validation/options-validation.mjs.map +1 -0
  201. package/dist/esm/package-checks/json-schema-validation/options.mjs +2 -0
  202. package/dist/esm/package-checks/json-schema-validation/options.mjs.map +1 -0
  203. package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs +128 -0
  204. package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs.map +1 -0
  205. package/dist/esm/package-checks/json-schema-validation/remote-response.mjs +71 -0
  206. package/dist/esm/package-checks/json-schema-validation/remote-response.mjs.map +1 -0
  207. package/dist/esm/package-checks/json-schema-validation/schema-engine.mjs +190 -0
  208. package/dist/esm/package-checks/json-schema-validation/schema-engine.mjs.map +1 -0
  209. package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs +234 -0
  210. package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs.map +1 -0
  211. package/dist/esm/package-checks/json-validation/default-check.mjs +39 -0
  212. package/dist/esm/package-checks/json-validation/default-check.mjs.map +1 -0
  213. package/dist/esm/package-checks/json-validation/final-data.mjs +27 -0
  214. package/dist/esm/package-checks/json-validation/final-data.mjs.map +1 -0
  215. package/dist/esm/package-checks/json-validation/json-validation.mjs +138 -0
  216. package/dist/esm/package-checks/json-validation/json-validation.mjs.map +1 -0
  217. package/dist/esm/package-checks/json-validation/options-resolution.mjs +33 -0
  218. package/dist/esm/package-checks/json-validation/options-resolution.mjs.map +1 -0
  219. package/dist/esm/package-checks/json-validation/options-validation.mjs +16 -0
  220. package/dist/esm/package-checks/json-validation/options-validation.mjs.map +1 -0
  221. package/dist/esm/package-checks/json-validation/options.mjs +2 -0
  222. package/dist/esm/package-checks/json-validation/options.mjs.map +1 -0
  223. package/dist/esm/package-checks/maintenance-reminders/assessment-results.mjs +73 -0
  224. package/dist/esm/package-checks/maintenance-reminders/assessment-results.mjs.map +1 -0
  225. package/dist/esm/package-checks/maintenance-reminders/final-data.mjs +153 -0
  226. package/dist/esm/package-checks/maintenance-reminders/final-data.mjs.map +1 -0
  227. package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs +155 -0
  228. package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs.map +1 -0
  229. package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs +58 -0
  230. package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs.map +1 -0
  231. package/dist/esm/package-checks/maintenance-reminders/measurement.mjs +125 -0
  232. package/dist/esm/package-checks/maintenance-reminders/measurement.mjs.map +1 -0
  233. package/dist/esm/package-checks/maintenance-reminders/options-validation.mjs +72 -0
  234. package/dist/esm/package-checks/maintenance-reminders/options-validation.mjs.map +1 -0
  235. package/dist/esm/package-checks/markdown-link-validation/default-check.mjs +55 -0
  236. package/dist/esm/package-checks/markdown-link-validation/default-check.mjs.map +1 -0
  237. package/dist/esm/package-checks/markdown-link-validation/execution.mjs +199 -0
  238. package/dist/esm/package-checks/markdown-link-validation/execution.mjs.map +1 -0
  239. package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs +109 -0
  240. package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs.map +1 -0
  241. package/dist/esm/package-checks/markdown-link-validation/final-data.mjs +28 -0
  242. package/dist/esm/package-checks/markdown-link-validation/final-data.mjs.map +1 -0
  243. package/dist/esm/package-checks/markdown-link-validation/local-resolution.mjs +158 -0
  244. package/dist/esm/package-checks/markdown-link-validation/local-resolution.mjs.map +1 -0
  245. package/dist/esm/package-checks/markdown-link-validation/local-resolver.mjs +17 -0
  246. package/dist/esm/package-checks/markdown-link-validation/local-resolver.mjs.map +1 -0
  247. package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs +191 -0
  248. package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs.map +1 -0
  249. package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs +83 -0
  250. package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs.map +1 -0
  251. package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs +50 -0
  252. package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs.map +1 -0
  253. package/dist/esm/package-checks/markdown-link-validation/options.mjs +2 -0
  254. package/dist/esm/package-checks/markdown-link-validation/options.mjs.map +1 -0
  255. package/dist/esm/package-checks/markdown-link-validation/records.mjs +32 -0
  256. package/dist/esm/package-checks/markdown-link-validation/records.mjs.map +1 -0
  257. package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs +196 -0
  258. package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs.map +1 -0
  259. package/dist/esm/package-checks/markdown-link-validation/target-descriptor.mjs +23 -0
  260. package/dist/esm/package-checks/markdown-link-validation/target-descriptor.mjs.map +1 -0
  261. package/dist/esm/package-checks/markdown-link-validation/traversal-result.mjs +41 -0
  262. package/dist/esm/package-checks/markdown-link-validation/traversal-result.mjs.map +1 -0
  263. package/dist/esm/package-checks/project-files/collection.mjs +142 -0
  264. package/dist/esm/package-checks/project-files/collection.mjs.map +1 -0
  265. package/dist/esm/package-checks/project-files/config-glob.mjs +11 -0
  266. package/dist/esm/package-checks/project-files/config-glob.mjs.map +1 -0
  267. package/dist/esm/package-checks/project-files/configuration.mjs +104 -0
  268. package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -0
  269. package/dist/esm/package-checks/project-files/exact-input-measurement.mjs +24 -0
  270. package/dist/esm/package-checks/project-files/exact-input-measurement.mjs.map +1 -0
  271. package/dist/esm/package-checks/project-files/file-fingerprint.mjs +36 -0
  272. package/dist/esm/package-checks/project-files/file-fingerprint.mjs.map +1 -0
  273. package/dist/esm/package-checks/project-files/gitlink-revision.mjs +57 -0
  274. package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -0
  275. package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +72 -0
  276. package/dist/esm/package-checks/project-files/gitlink-worktree.mjs.map +1 -0
  277. package/dist/esm/package-checks/project-files/input-eligibility.mjs +13 -0
  278. package/dist/esm/package-checks/project-files/input-eligibility.mjs.map +1 -0
  279. package/dist/esm/package-checks/project-files/reported-path.mjs +30 -0
  280. package/dist/esm/package-checks/project-files/reported-path.mjs.map +1 -0
  281. package/dist/esm/package-checks/project-files/revision-paths.mjs +19 -0
  282. package/dist/esm/package-checks/project-files/revision-paths.mjs.map +1 -0
  283. package/dist/esm/package-checks/project-files/revision-worktree-files.mjs +102 -0
  284. package/dist/esm/package-checks/project-files/revision-worktree-files.mjs.map +1 -0
  285. package/dist/esm/project-definition/check-tree/authoring.mjs +242 -0
  286. package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -0
  287. package/dist/esm/project-definition/check-tree/materialization.mjs +50 -0
  288. package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -0
  289. package/dist/esm/project-definition/check-tree/resolution.mjs +60 -0
  290. package/dist/esm/project-definition/check-tree/resolution.mjs.map +1 -0
  291. package/dist/esm/project-definition/output-defaults.mjs +7 -0
  292. package/dist/esm/project-definition/output-defaults.mjs.map +1 -0
  293. package/dist/esm/project-definition/output-validation.mjs +44 -0
  294. package/dist/esm/project-definition/output-validation.mjs.map +1 -0
  295. package/dist/esm/project-definition/project-definition-validation.mjs +95 -0
  296. package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -0
  297. package/dist/esm/project-definition/project-definition.mjs +92 -0
  298. package/dist/esm/project-definition/project-definition.mjs.map +1 -0
  299. package/dist/esm/project-run/aggregation.mjs +66 -0
  300. package/dist/esm/project-run/aggregation.mjs.map +1 -0
  301. package/dist/esm/project-run/check-execution/callback.mjs +70 -0
  302. package/dist/esm/project-run/check-execution/callback.mjs.map +1 -0
  303. package/dist/esm/project-run/check-execution/dependencies.mjs +50 -0
  304. package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -0
  305. package/dist/esm/project-run/check-execution/execution-finalization.mjs +103 -0
  306. package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -0
  307. package/dist/esm/project-run/check-execution/execution-settlement.mjs +90 -0
  308. package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -0
  309. package/dist/esm/project-run/check-execution/messages.mjs +38 -0
  310. package/dist/esm/project-run/check-execution/messages.mjs.map +1 -0
  311. package/dist/esm/project-run/check-execution/plan.mjs +35 -0
  312. package/dist/esm/project-run/check-execution/plan.mjs.map +1 -0
  313. package/dist/esm/project-run/check-execution/preflight-result.mjs +83 -0
  314. package/dist/esm/project-run/check-execution/preflight-result.mjs.map +1 -0
  315. package/dist/esm/project-run/check-execution/preflight.mjs +186 -0
  316. package/dist/esm/project-run/check-execution/preflight.mjs.map +1 -0
  317. package/dist/esm/project-run/check-execution/resolved-checks.mjs +168 -0
  318. package/dist/esm/project-run/check-execution/resolved-checks.mjs.map +1 -0
  319. package/dist/esm/project-run/check-execution/terminal-result.mjs +49 -0
  320. package/dist/esm/project-run/check-execution/terminal-result.mjs.map +1 -0
  321. package/dist/esm/project-run/completion.mjs +173 -0
  322. package/dist/esm/project-run/completion.mjs.map +1 -0
  323. package/dist/esm/project-run/controls/contract.mjs +2 -0
  324. package/dist/esm/project-run/controls/contract.mjs.map +1 -0
  325. package/dist/esm/project-run/controls/outputs-override-validation.mjs +61 -0
  326. package/dist/esm/project-run/controls/outputs-override-validation.mjs.map +1 -0
  327. package/dist/esm/project-run/controls/validation-result.mjs +2 -0
  328. package/dist/esm/project-run/controls/validation-result.mjs.map +1 -0
  329. package/dist/esm/project-run/controls/validation.mjs +156 -0
  330. package/dist/esm/project-run/controls/validation.mjs.map +1 -0
  331. package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs +182 -0
  332. package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs.map +1 -0
  333. package/dist/esm/project-run/diagnostic-logging/logger.mjs +242 -0
  334. package/dist/esm/project-run/diagnostic-logging/logger.mjs.map +1 -0
  335. package/dist/esm/project-run/invocation-creation.mjs +111 -0
  336. package/dist/esm/project-run/invocation-creation.mjs.map +1 -0
  337. package/dist/esm/project-run/invocation.mjs +195 -0
  338. package/dist/esm/project-run/invocation.mjs.map +1 -0
  339. package/dist/esm/project-run/machine-publication.mjs +16 -0
  340. package/dist/esm/project-run/machine-publication.mjs.map +1 -0
  341. package/dist/esm/project-run/output-configuration.mjs +17 -0
  342. package/dist/esm/project-run/output-configuration.mjs.map +1 -0
  343. package/dist/esm/project-run/output-status.mjs +43 -0
  344. package/dist/esm/project-run/output-status.mjs.map +1 -0
  345. package/dist/esm/project-run/progress-rendering/presentation.mjs +135 -0
  346. package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -0
  347. package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +100 -0
  348. package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -0
  349. package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +123 -0
  350. package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -0
  351. package/dist/esm/project-run/progress-rendering/renderer.mjs +12 -0
  352. package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -0
  353. package/dist/esm/project-run/project-context.mjs +8 -0
  354. package/dist/esm/project-run/project-context.mjs.map +1 -0
  355. package/dist/esm/project-run/result.mjs +54 -0
  356. package/dist/esm/project-run/result.mjs.map +1 -0
  357. package/dist/esm/project-run/run.mjs +23 -0
  358. package/dist/esm/project-run/run.mjs.map +1 -0
  359. package/dist/esm/project-run/task-scheduler/execution-state.mjs +66 -0
  360. package/dist/esm/project-run/task-scheduler/execution-state.mjs.map +1 -0
  361. package/dist/esm/project-run/task-scheduler/graph-validation.mjs +119 -0
  362. package/dist/esm/project-run/task-scheduler/graph-validation.mjs.map +1 -0
  363. package/dist/esm/project-run/task-scheduler/graph.mjs +116 -0
  364. package/dist/esm/project-run/task-scheduler/graph.mjs.map +1 -0
  365. package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs +82 -0
  366. package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs.map +1 -0
  367. package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs +27 -0
  368. package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs.map +1 -0
  369. package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs +125 -0
  370. package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs.map +1 -0
  371. package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs +45 -0
  372. package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs.map +1 -0
  373. package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs +74 -0
  374. package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs.map +1 -0
  375. package/dist/esm/project-run/task-scheduler/scheduler.mjs +147 -0
  376. package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -0
  377. package/docs/api-mechanics.md +205 -0
  378. package/docs/checks/duplicate-detection.md +195 -0
  379. package/docs/checks/file-metrics.md +229 -0
  380. package/docs/checks/function-metrics.md +222 -0
  381. package/docs/checks/json-schema-validation.md +190 -0
  382. package/docs/checks/json-validation.md +133 -0
  383. package/docs/checks/maintenance-reminders.md +158 -0
  384. package/docs/checks/markdown-link-validation.md +192 -0
  385. package/docs/examples/artifacts/mixed-outcomes/definition.ts +195 -0
  386. package/docs/examples/artifacts/mixed-outcomes/records.ndjson +2 -0
  387. package/docs/examples/artifacts/mixed-outcomes/run.json +70 -0
  388. package/docs/output.md +97 -0
  389. package/docs/schemas/vibe-check-record.schema.json +33 -0
  390. package/docs/schemas/vibe-check-run.schema.json +173 -0
  391. package/index.mjs +1 -0
  392. package/package.json +49 -0
  393. package/src/check/check.ts +497 -0
  394. package/src/check/descriptor-validation.ts +60 -0
  395. package/src/check/descriptor.ts +5 -0
  396. package/src/check/inherited-collection.ts +101 -0
  397. package/src/check/options-snapshot.ts +80 -0
  398. package/src/check-settlement/fact-validation.ts +289 -0
  399. package/src/check-settlement/facts.ts +27 -0
  400. package/src/check-settlement/outcome-normalization.ts +118 -0
  401. package/src/check-settlement/record-store.ts +73 -0
  402. package/src/check-settlement/session.ts +257 -0
  403. package/src/data-boundary/canonical-data.ts +188 -0
  404. package/src/data-boundary/canonical-json.ts +11 -0
  405. package/src/data-boundary/closed-values.ts +126 -0
  406. package/src/data-boundary/value-shapes.ts +15 -0
  407. package/src/finding-waivers/reconciliation.ts +176 -0
  408. package/src/index.ts +123 -0
  409. package/src/machine-output/v4/atomic-publication.ts +123 -0
  410. package/src/machine-output/v4/freeze-publication-value.ts +12 -0
  411. package/src/machine-output/v4/projection.ts +36 -0
  412. package/src/machine-output/v4/publication-invariants.ts +89 -0
  413. package/src/machine-output/v4/publication-model.ts +38 -0
  414. package/src/machine-output/v4/publish.ts +23 -0
  415. package/src/machine-output/v4/records-fingerprint.ts +12 -0
  416. package/src/machine-output/v4/schema-identities.ts +8 -0
  417. package/src/machine-output/v4/schema.ts +97 -0
  418. package/src/machine-output/v4/serializers.ts +18 -0
  419. package/src/machine-output/v4/validation-result.ts +59 -0
  420. package/src/machine-output/v4/validation.ts +166 -0
  421. package/src/package-checks/code-quality-findings/policy.ts +85 -0
  422. package/src/package-checks/duplicate-detection/area-policy.ts +103 -0
  423. package/src/package-checks/duplicate-detection/cache/cache-contract.ts +49 -0
  424. package/src/package-checks/duplicate-detection/cache/identity.ts +61 -0
  425. package/src/package-checks/duplicate-detection/cache/key.ts +46 -0
  426. package/src/package-checks/duplicate-detection/cache/payload.ts +78 -0
  427. package/src/package-checks/duplicate-detection/cache/store.ts +77 -0
  428. package/src/package-checks/duplicate-detection/default-check.ts +50 -0
  429. package/src/package-checks/duplicate-detection/execution.ts +168 -0
  430. package/src/package-checks/duplicate-detection/final-data.ts +10 -0
  431. package/src/package-checks/duplicate-detection/jscpd/availability.ts +137 -0
  432. package/src/package-checks/duplicate-detection/jscpd/command-path.ts +8 -0
  433. package/src/package-checks/duplicate-detection/jscpd/command-resolution.ts +112 -0
  434. package/src/package-checks/duplicate-detection/jscpd/json-report.ts +137 -0
  435. package/src/package-checks/duplicate-detection/jscpd/scanner-contract.ts +18 -0
  436. package/src/package-checks/duplicate-detection/jscpd/scanner.ts +257 -0
  437. package/src/package-checks/duplicate-detection/jscpd/scoped-fragments.ts +17 -0
  438. package/src/package-checks/duplicate-detection/measurement-model.ts +44 -0
  439. package/src/package-checks/duplicate-detection/measurement.ts +223 -0
  440. package/src/package-checks/duplicate-detection/options-resolution.ts +162 -0
  441. package/src/package-checks/duplicate-detection/options-validation.ts +75 -0
  442. package/src/package-checks/duplicate-detection/options.ts +72 -0
  443. package/src/package-checks/duplicate-detection/project-revision.ts +5 -0
  444. package/src/package-checks/duplicate-detection/records.ts +171 -0
  445. package/src/package-checks/file-metrics/constructor.ts +46 -0
  446. package/src/package-checks/file-metrics/execution.ts +233 -0
  447. package/src/package-checks/file-metrics/final-data.ts +10 -0
  448. package/src/package-checks/file-metrics/measurement-model.ts +10 -0
  449. package/src/package-checks/file-metrics/measurement.ts +52 -0
  450. package/src/package-checks/file-metrics/options-resolution.ts +213 -0
  451. package/src/package-checks/file-metrics/options-validation.ts +104 -0
  452. package/src/package-checks/file-metrics/options.ts +91 -0
  453. package/src/package-checks/file-metrics/records.ts +182 -0
  454. package/src/package-checks/file-metrics/scc/availability.ts +100 -0
  455. package/src/package-checks/file-metrics/scc/csv.ts +20 -0
  456. package/src/package-checks/file-metrics/scc/parser.ts +223 -0
  457. package/src/package-checks/file-metrics/scc/scanner.ts +68 -0
  458. package/src/package-checks/final-data-parsing.ts +49 -0
  459. package/src/package-checks/function-metrics/analysis.ts +138 -0
  460. package/src/package-checks/function-metrics/constructor.ts +55 -0
  461. package/src/package-checks/function-metrics/execution.ts +263 -0
  462. package/src/package-checks/function-metrics/final-data.ts +10 -0
  463. package/src/package-checks/function-metrics/lizard/availability.ts +90 -0
  464. package/src/package-checks/function-metrics/lizard/csv.ts +20 -0
  465. package/src/package-checks/function-metrics/lizard/parser.ts +179 -0
  466. package/src/package-checks/function-metrics/lizard/scanner.ts +62 -0
  467. package/src/package-checks/function-metrics/measurement-model.ts +30 -0
  468. package/src/package-checks/function-metrics/measurement.ts +57 -0
  469. package/src/package-checks/function-metrics/options-resolution.ts +215 -0
  470. package/src/package-checks/function-metrics/options-validation.ts +89 -0
  471. package/src/package-checks/function-metrics/options.ts +84 -0
  472. package/src/package-checks/function-metrics/records.ts +254 -0
  473. package/src/package-checks/function-metrics/target-files.ts +85 -0
  474. package/src/package-checks/host-environment/error-message.ts +3 -0
  475. package/src/package-checks/host-environment/filesystem.ts +110 -0
  476. package/src/package-checks/host-environment/git.ts +68 -0
  477. package/src/package-checks/host-environment/path.ts +20 -0
  478. package/src/package-checks/host-environment/process/command.ts +21 -0
  479. package/src/package-checks/host-environment/process/contract.ts +56 -0
  480. package/src/package-checks/host-environment/process/env.ts +25 -0
  481. package/src/package-checks/host-environment/process/failure.ts +40 -0
  482. package/src/package-checks/host-environment/process/result.ts +39 -0
  483. package/src/package-checks/host-environment/process/runner.ts +47 -0
  484. package/src/package-checks/json-document/strict-document.ts +209 -0
  485. package/src/package-checks/json-schema-validation/default-check.ts +54 -0
  486. package/src/package-checks/json-schema-validation/execution-stages.ts +230 -0
  487. package/src/package-checks/json-schema-validation/final-data.ts +115 -0
  488. package/src/package-checks/json-schema-validation/issue-collector.ts +43 -0
  489. package/src/package-checks/json-schema-validation/json-schema-validation.ts +191 -0
  490. package/src/package-checks/json-schema-validation/options-resolution.ts +61 -0
  491. package/src/package-checks/json-schema-validation/options-validation.ts +256 -0
  492. package/src/package-checks/json-schema-validation/options.ts +66 -0
  493. package/src/package-checks/json-schema-validation/reference-resolver.ts +165 -0
  494. package/src/package-checks/json-schema-validation/remote-response.ts +84 -0
  495. package/src/package-checks/json-schema-validation/schema-engine.ts +263 -0
  496. package/src/package-checks/json-schema-validation/schema-policy.ts +275 -0
  497. package/src/package-checks/json-validation/default-check.ts +48 -0
  498. package/src/package-checks/json-validation/final-data.ts +46 -0
  499. package/src/package-checks/json-validation/json-validation.ts +212 -0
  500. package/src/package-checks/json-validation/options-resolution.ts +50 -0
  501. package/src/package-checks/json-validation/options-validation.ts +27 -0
  502. package/src/package-checks/json-validation/options.ts +18 -0
  503. package/src/package-checks/maintenance-reminders/assessment-results.ts +117 -0
  504. package/src/package-checks/maintenance-reminders/final-data.ts +239 -0
  505. package/src/package-checks/maintenance-reminders/maintenance-reminders.ts +264 -0
  506. package/src/package-checks/maintenance-reminders/maintenance-support.ts +67 -0
  507. package/src/package-checks/maintenance-reminders/measurement.ts +183 -0
  508. package/src/package-checks/maintenance-reminders/options-validation.ts +88 -0
  509. package/src/package-checks/markdown-link-validation/default-check.ts +70 -0
  510. package/src/package-checks/markdown-link-validation/execution.ts +325 -0
  511. package/src/package-checks/markdown-link-validation/filesystem-probes.ts +127 -0
  512. package/src/package-checks/markdown-link-validation/final-data.ts +47 -0
  513. package/src/package-checks/markdown-link-validation/local-resolution.ts +306 -0
  514. package/src/package-checks/markdown-link-validation/local-resolver.ts +51 -0
  515. package/src/package-checks/markdown-link-validation/markdown-parser.ts +302 -0
  516. package/src/package-checks/markdown-link-validation/options-resolution.ts +114 -0
  517. package/src/package-checks/markdown-link-validation/options-validation.ts +72 -0
  518. package/src/package-checks/markdown-link-validation/options.ts +50 -0
  519. package/src/package-checks/markdown-link-validation/records.ts +77 -0
  520. package/src/package-checks/markdown-link-validation/resolver-engine.ts +276 -0
  521. package/src/package-checks/markdown-link-validation/target-descriptor.ts +34 -0
  522. package/src/package-checks/markdown-link-validation/traversal-result.ts +58 -0
  523. package/src/package-checks/project-files/collection.ts +199 -0
  524. package/src/package-checks/project-files/config-glob.ts +17 -0
  525. package/src/package-checks/project-files/configuration.ts +152 -0
  526. package/src/package-checks/project-files/exact-input-measurement.ts +38 -0
  527. package/src/package-checks/project-files/file-fingerprint.ts +46 -0
  528. package/src/package-checks/project-files/gitlink-revision.ts +82 -0
  529. package/src/package-checks/project-files/gitlink-worktree.ts +106 -0
  530. package/src/package-checks/project-files/input-eligibility.ts +21 -0
  531. package/src/package-checks/project-files/reported-path.ts +35 -0
  532. package/src/package-checks/project-files/revision-paths.ts +34 -0
  533. package/src/package-checks/project-files/revision-worktree-files.ts +148 -0
  534. package/src/project-definition/check-tree/authoring.ts +332 -0
  535. package/src/project-definition/check-tree/materialization.ts +56 -0
  536. package/src/project-definition/check-tree/resolution.ts +108 -0
  537. package/src/project-definition/output-defaults.ts +6 -0
  538. package/src/project-definition/output-validation.ts +54 -0
  539. package/src/project-definition/project-definition-validation.ts +123 -0
  540. package/src/project-definition/project-definition.ts +184 -0
  541. package/src/project-run/aggregation.ts +90 -0
  542. package/src/project-run/check-execution/callback.ts +106 -0
  543. package/src/project-run/check-execution/dependencies.ts +70 -0
  544. package/src/project-run/check-execution/execution-finalization.ts +177 -0
  545. package/src/project-run/check-execution/execution-settlement.ts +147 -0
  546. package/src/project-run/check-execution/messages.ts +46 -0
  547. package/src/project-run/check-execution/plan.ts +46 -0
  548. package/src/project-run/check-execution/preflight-result.ts +131 -0
  549. package/src/project-run/check-execution/preflight.ts +321 -0
  550. package/src/project-run/check-execution/resolved-checks.ts +285 -0
  551. package/src/project-run/check-execution/terminal-result.ts +74 -0
  552. package/src/project-run/completion.ts +263 -0
  553. package/src/project-run/controls/contract.ts +24 -0
  554. package/src/project-run/controls/outputs-override-validation.ts +86 -0
  555. package/src/project-run/controls/validation-result.ts +12 -0
  556. package/src/project-run/controls/validation.ts +176 -0
  557. package/src/project-run/diagnostic-logging/diagnostic-detail-rendering.ts +223 -0
  558. package/src/project-run/diagnostic-logging/logger.ts +325 -0
  559. package/src/project-run/invocation-creation.ts +160 -0
  560. package/src/project-run/invocation.ts +303 -0
  561. package/src/project-run/machine-publication.ts +23 -0
  562. package/src/project-run/output-configuration.ts +24 -0
  563. package/src/project-run/output-status.ts +69 -0
  564. package/src/project-run/progress-rendering/presentation.ts +189 -0
  565. package/src/project-run/progress-rendering/renderer-formatting.ts +141 -0
  566. package/src/project-run/progress-rendering/renderer-lifecycle.ts +152 -0
  567. package/src/project-run/progress-rendering/renderer.ts +68 -0
  568. package/src/project-run/project-context.ts +11 -0
  569. package/src/project-run/result.ts +175 -0
  570. package/src/project-run/run.ts +50 -0
  571. package/src/project-run/task-scheduler/execution-state.ts +153 -0
  572. package/src/project-run/task-scheduler/graph-validation.ts +176 -0
  573. package/src/project-run/task-scheduler/graph.ts +185 -0
  574. package/src/project-run/task-scheduler/scheduler-admission-decision.ts +177 -0
  575. package/src/project-run/task-scheduler/scheduler-blocker-summary.ts +42 -0
  576. package/src/project-run/task-scheduler/scheduler-decision-inspection.ts +199 -0
  577. package/src/project-run/task-scheduler/scheduler-decision-model.ts +158 -0
  578. package/src/project-run/task-scheduler/scheduler-decision.ts +103 -0
  579. package/src/project-run/task-scheduler/scheduler.ts +228 -0
  580. package/third-party-licenses/momoa-3.3.12-LICENSE +201 -0
  581. package/types/check/check.d.ts +350 -0
  582. package/types/check/descriptor-validation.d.ts +18 -0
  583. package/types/check/descriptor.d.ts +5 -0
  584. package/types/check/inherited-collection.d.ts +35 -0
  585. package/types/check/options-snapshot.d.ts +2 -0
  586. package/types/check-settlement/fact-validation.d.ts +14 -0
  587. package/types/check-settlement/facts.d.ts +19 -0
  588. package/types/check-settlement/outcome-normalization.d.ts +9 -0
  589. package/types/check-settlement/record-store.d.ts +14 -0
  590. package/types/check-settlement/session.d.ts +41 -0
  591. package/types/data-boundary/canonical-data.d.ts +13 -0
  592. package/types/data-boundary/canonical-json.d.ts +6 -0
  593. package/types/data-boundary/closed-values.d.ts +8 -0
  594. package/types/data-boundary/value-shapes.d.ts +4 -0
  595. package/types/finding-waivers/reconciliation.d.ts +66 -0
  596. package/types/index.d.ts +57 -0
  597. package/types/machine-output/v4/atomic-publication.d.ts +9 -0
  598. package/types/machine-output/v4/freeze-publication-value.d.ts +6 -0
  599. package/types/machine-output/v4/projection.d.ts +7 -0
  600. package/types/machine-output/v4/publication-invariants.d.ts +3 -0
  601. package/types/machine-output/v4/publication-model.d.ts +15 -0
  602. package/types/machine-output/v4/publish.d.ts +7 -0
  603. package/types/machine-output/v4/records-fingerprint.d.ts +4 -0
  604. package/types/machine-output/v4/schema-identities.d.ts +7 -0
  605. package/types/machine-output/v4/schema.d.ts +44 -0
  606. package/types/machine-output/v4/serializers.d.ts +6 -0
  607. package/types/machine-output/v4/validation-result.d.ts +26 -0
  608. package/types/machine-output/v4/validation.d.ts +6 -0
  609. package/types/package-checks/code-quality-findings/policy.d.ts +20 -0
  610. package/types/package-checks/duplicate-detection/area-policy.d.ts +3 -0
  611. package/types/package-checks/duplicate-detection/cache/cache-contract.d.ts +48 -0
  612. package/types/package-checks/duplicate-detection/cache/identity.d.ts +17 -0
  613. package/types/package-checks/duplicate-detection/cache/key.d.ts +4 -0
  614. package/types/package-checks/duplicate-detection/cache/payload.d.ts +4 -0
  615. package/types/package-checks/duplicate-detection/cache/store.d.ts +18 -0
  616. package/types/package-checks/duplicate-detection/default-check.d.ts +11 -0
  617. package/types/package-checks/duplicate-detection/execution.d.ts +11 -0
  618. package/types/package-checks/duplicate-detection/final-data.d.ts +5 -0
  619. package/types/package-checks/duplicate-detection/jscpd/availability.d.ts +19 -0
  620. package/types/package-checks/duplicate-detection/jscpd/command-path.d.ts +1 -0
  621. package/types/package-checks/duplicate-detection/jscpd/command-resolution.d.ts +23 -0
  622. package/types/package-checks/duplicate-detection/jscpd/json-report.d.ts +2 -0
  623. package/types/package-checks/duplicate-detection/jscpd/scanner-contract.d.ts +11 -0
  624. package/types/package-checks/duplicate-detection/jscpd/scanner.d.ts +21 -0
  625. package/types/package-checks/duplicate-detection/jscpd/scoped-fragments.d.ts +4 -0
  626. package/types/package-checks/duplicate-detection/measurement-model.d.ts +36 -0
  627. package/types/package-checks/duplicate-detection/measurement.d.ts +14 -0
  628. package/types/package-checks/duplicate-detection/options-resolution.d.ts +3 -0
  629. package/types/package-checks/duplicate-detection/options-validation.d.ts +1 -0
  630. package/types/package-checks/duplicate-detection/options.d.ts +65 -0
  631. package/types/package-checks/duplicate-detection/project-revision.d.ts +1 -0
  632. package/types/package-checks/duplicate-detection/records.d.ts +22 -0
  633. package/types/package-checks/file-metrics/constructor.d.ts +11 -0
  634. package/types/package-checks/file-metrics/execution.d.ts +11 -0
  635. package/types/package-checks/file-metrics/final-data.d.ts +5 -0
  636. package/types/package-checks/file-metrics/measurement-model.d.ts +12 -0
  637. package/types/package-checks/file-metrics/measurement.d.ts +13 -0
  638. package/types/package-checks/file-metrics/options-resolution.d.ts +3 -0
  639. package/types/package-checks/file-metrics/options-validation.d.ts +3 -0
  640. package/types/package-checks/file-metrics/options.d.ts +75 -0
  641. package/types/package-checks/file-metrics/records.d.ts +43 -0
  642. package/types/package-checks/file-metrics/scc/availability.d.ts +18 -0
  643. package/types/package-checks/file-metrics/scc/csv.d.ts +1 -0
  644. package/types/package-checks/file-metrics/scc/parser.d.ts +25 -0
  645. package/types/package-checks/file-metrics/scc/scanner.d.ts +14 -0
  646. package/types/package-checks/final-data-parsing.d.ts +9 -0
  647. package/types/package-checks/function-metrics/analysis.d.ts +10 -0
  648. package/types/package-checks/function-metrics/constructor.d.ts +11 -0
  649. package/types/package-checks/function-metrics/execution.d.ts +7 -0
  650. package/types/package-checks/function-metrics/final-data.d.ts +5 -0
  651. package/types/package-checks/function-metrics/lizard/availability.d.ts +11 -0
  652. package/types/package-checks/function-metrics/lizard/csv.d.ts +1 -0
  653. package/types/package-checks/function-metrics/lizard/parser.d.ts +17 -0
  654. package/types/package-checks/function-metrics/lizard/scanner.d.ts +15 -0
  655. package/types/package-checks/function-metrics/measurement-model.d.ts +26 -0
  656. package/types/package-checks/function-metrics/measurement.d.ts +21 -0
  657. package/types/package-checks/function-metrics/options-resolution.d.ts +3 -0
  658. package/types/package-checks/function-metrics/options-validation.d.ts +3 -0
  659. package/types/package-checks/function-metrics/options.d.ts +76 -0
  660. package/types/package-checks/function-metrics/records.d.ts +37 -0
  661. package/types/package-checks/function-metrics/target-files.d.ts +3 -0
  662. package/types/package-checks/host-environment/error-message.d.ts +1 -0
  663. package/types/package-checks/host-environment/filesystem.d.ts +19 -0
  664. package/types/package-checks/host-environment/git.d.ts +13 -0
  665. package/types/package-checks/host-environment/path.d.ts +3 -0
  666. package/types/package-checks/host-environment/process/command.d.ts +7 -0
  667. package/types/package-checks/host-environment/process/contract.d.ts +50 -0
  668. package/types/package-checks/host-environment/process/env.d.ts +16 -0
  669. package/types/package-checks/host-environment/process/failure.d.ts +4 -0
  670. package/types/package-checks/host-environment/process/result.d.ts +2 -0
  671. package/types/package-checks/host-environment/process/runner.d.ts +3 -0
  672. package/types/package-checks/json-document/strict-document.d.ts +35 -0
  673. package/types/package-checks/json-schema-validation/default-check.d.ts +11 -0
  674. package/types/package-checks/json-schema-validation/execution-stages.d.ts +27 -0
  675. package/types/package-checks/json-schema-validation/final-data.d.ts +15 -0
  676. package/types/package-checks/json-schema-validation/issue-collector.d.ts +12 -0
  677. package/types/package-checks/json-schema-validation/json-schema-validation.d.ts +42 -0
  678. package/types/package-checks/json-schema-validation/options-resolution.d.ts +3 -0
  679. package/types/package-checks/json-schema-validation/options-validation.d.ts +2 -0
  680. package/types/package-checks/json-schema-validation/options.d.ts +53 -0
  681. package/types/package-checks/json-schema-validation/reference-resolver.d.ts +23 -0
  682. package/types/package-checks/json-schema-validation/remote-response.d.ts +2 -0
  683. package/types/package-checks/json-schema-validation/schema-engine.d.ts +33 -0
  684. package/types/package-checks/json-schema-validation/schema-policy.d.ts +17 -0
  685. package/types/package-checks/json-validation/default-check.d.ts +11 -0
  686. package/types/package-checks/json-validation/final-data.d.ts +10 -0
  687. package/types/package-checks/json-validation/json-validation.d.ts +28 -0
  688. package/types/package-checks/json-validation/options-resolution.d.ts +3 -0
  689. package/types/package-checks/json-validation/options-validation.d.ts +2 -0
  690. package/types/package-checks/json-validation/options.d.ts +13 -0
  691. package/types/package-checks/maintenance-reminders/assessment-results.d.ts +10 -0
  692. package/types/package-checks/maintenance-reminders/final-data.d.ts +47 -0
  693. package/types/package-checks/maintenance-reminders/maintenance-reminders.d.ts +111 -0
  694. package/types/package-checks/maintenance-reminders/maintenance-support.d.ts +7 -0
  695. package/types/package-checks/maintenance-reminders/measurement.d.ts +10 -0
  696. package/types/package-checks/maintenance-reminders/options-validation.d.ts +3 -0
  697. package/types/package-checks/markdown-link-validation/default-check.d.ts +27 -0
  698. package/types/package-checks/markdown-link-validation/execution.d.ts +12 -0
  699. package/types/package-checks/markdown-link-validation/filesystem-probes.d.ts +10 -0
  700. package/types/package-checks/markdown-link-validation/final-data.d.ts +10 -0
  701. package/types/package-checks/markdown-link-validation/local-resolution.d.ts +92 -0
  702. package/types/package-checks/markdown-link-validation/local-resolver.d.ts +5 -0
  703. package/types/package-checks/markdown-link-validation/markdown-parser.d.ts +37 -0
  704. package/types/package-checks/markdown-link-validation/options-resolution.d.ts +3 -0
  705. package/types/package-checks/markdown-link-validation/options-validation.d.ts +2 -0
  706. package/types/package-checks/markdown-link-validation/options.d.ts +43 -0
  707. package/types/package-checks/markdown-link-validation/records.d.ts +37 -0
  708. package/types/package-checks/markdown-link-validation/resolver-engine.d.ts +15 -0
  709. package/types/package-checks/markdown-link-validation/target-descriptor.d.ts +5 -0
  710. package/types/package-checks/markdown-link-validation/traversal-result.d.ts +12 -0
  711. package/types/package-checks/project-files/collection.d.ts +9 -0
  712. package/types/package-checks/project-files/config-glob.d.ts +5 -0
  713. package/types/package-checks/project-files/configuration.d.ts +31 -0
  714. package/types/package-checks/project-files/exact-input-measurement.d.ts +12 -0
  715. package/types/package-checks/project-files/file-fingerprint.d.ts +7 -0
  716. package/types/package-checks/project-files/gitlink-revision.d.ts +9 -0
  717. package/types/package-checks/project-files/gitlink-worktree.d.ts +26 -0
  718. package/types/package-checks/project-files/input-eligibility.d.ts +7 -0
  719. package/types/package-checks/project-files/reported-path.d.ts +1 -0
  720. package/types/package-checks/project-files/revision-paths.d.ts +12 -0
  721. package/types/package-checks/project-files/revision-worktree-files.d.ts +5 -0
  722. package/types/project-definition/check-tree/authoring.d.ts +41 -0
  723. package/types/project-definition/check-tree/materialization.d.ts +4 -0
  724. package/types/project-definition/check-tree/resolution.d.ts +25 -0
  725. package/types/project-definition/output-defaults.d.ts +14 -0
  726. package/types/project-definition/output-validation.d.ts +3 -0
  727. package/types/project-definition/project-definition-validation.d.ts +6 -0
  728. package/types/project-definition/project-definition.d.ts +88 -0
  729. package/types/project-run/aggregation.d.ts +7 -0
  730. package/types/project-run/check-execution/callback.d.ts +24 -0
  731. package/types/project-run/check-execution/dependencies.d.ts +9 -0
  732. package/types/project-run/check-execution/execution-finalization.d.ts +18 -0
  733. package/types/project-run/check-execution/execution-settlement.d.ts +41 -0
  734. package/types/project-run/check-execution/messages.d.ts +3 -0
  735. package/types/project-run/check-execution/plan.d.ts +10 -0
  736. package/types/project-run/check-execution/preflight-result.d.ts +23 -0
  737. package/types/project-run/check-execution/preflight.d.ts +27 -0
  738. package/types/project-run/check-execution/resolved-checks.d.ts +51 -0
  739. package/types/project-run/check-execution/terminal-result.d.ts +27 -0
  740. package/types/project-run/completion.d.ts +14 -0
  741. package/types/project-run/controls/contract.d.ts +24 -0
  742. package/types/project-run/controls/outputs-override-validation.d.ts +3 -0
  743. package/types/project-run/controls/validation-result.d.ts +14 -0
  744. package/types/project-run/controls/validation.d.ts +3 -0
  745. package/types/project-run/diagnostic-logging/diagnostic-detail-rendering.d.ts +11 -0
  746. package/types/project-run/diagnostic-logging/logger.d.ts +33 -0
  747. package/types/project-run/invocation-creation.d.ts +12 -0
  748. package/types/project-run/invocation.d.ts +34 -0
  749. package/types/project-run/machine-publication.d.ts +10 -0
  750. package/types/project-run/output-configuration.d.ts +3 -0
  751. package/types/project-run/output-status.d.ts +21 -0
  752. package/types/project-run/progress-rendering/presentation.d.ts +28 -0
  753. package/types/project-run/progress-rendering/renderer-formatting.d.ts +23 -0
  754. package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +24 -0
  755. package/types/project-run/progress-rendering/renderer.d.ts +44 -0
  756. package/types/project-run/project-context.d.ts +7 -0
  757. package/types/project-run/result.d.ts +99 -0
  758. package/types/project-run/run.d.ts +18 -0
  759. package/types/project-run/task-scheduler/execution-state.d.ts +67 -0
  760. package/types/project-run/task-scheduler/graph-validation.d.ts +11 -0
  761. package/types/project-run/task-scheduler/graph.d.ts +40 -0
  762. package/types/project-run/task-scheduler/scheduler-admission-decision.d.ts +8 -0
  763. package/types/project-run/task-scheduler/scheduler-blocker-summary.d.ts +4 -0
  764. package/types/project-run/task-scheduler/scheduler-decision-inspection.d.ts +24 -0
  765. package/types/project-run/task-scheduler/scheduler-decision-model.d.ts +94 -0
  766. package/types/project-run/task-scheduler/scheduler-decision.d.ts +8 -0
  767. package/types/project-run/task-scheduler/scheduler.d.ts +3 -0
@@ -0,0 +1,88 @@
1
+ import type { MeaninglessCheckWarning } from "./check-tree/authoring.ts";
2
+ import type { CheckDescriptor } from "../check/descriptor.ts";
3
+ import type { Check, CheckExecution, CheckPreflight, CheckVisibility } from "../check/check.ts";
4
+ /** 一次 Project Run 的明确输出配置。 */
5
+ export interface ProjectOutputs {
6
+ /** `run.json` 与 `records.ndjson` publication。 */
7
+ readonly machinePublication: Readonly<{
8
+ /** 相对目录以 project root 解析,默认 `artifacts/vibe-check`。 */
9
+ readonly directory: string;
10
+ /** `false` 时本次 Run 不发布 machine output。 */
11
+ readonly enabled: boolean;
12
+ }>;
13
+ /** 人读 progress rendering。 */
14
+ readonly progressRendering: Readonly<{
15
+ /** `false` 时不构造或写入 progress writer。 */
16
+ readonly enabled: boolean;
17
+ }>;
18
+ /** 仅供维护者读取的一次 invocation diagnostic log。 */
19
+ readonly diagnosticLogging: Readonly<{
20
+ /** 相对目录以 project root 解析,默认 `.log/vibe-check`。 */
21
+ readonly directory: string;
22
+ /** `false` 时不创建 diagnostic writer 或 file。 */
23
+ readonly enabled: boolean;
24
+ }>;
25
+ }
26
+ /** 定义级的 Check 调度预算。 */
27
+ export interface SchedulerPolicy {
28
+ readonly maxParallel: number;
29
+ }
30
+ /** 已补齐默认 outputs、可交给 run 执行的项目定义。 */
31
+ export interface ProjectDefinition {
32
+ readonly apiVersion: "1";
33
+ readonly checks: readonly Check[];
34
+ readonly outputs: ProjectOutputs;
35
+ readonly scheduler: SchedulerPolicy;
36
+ }
37
+ type ProjectDefinitionInput = Readonly<{
38
+ apiVersion?: "1";
39
+ checks?: readonly Check[];
40
+ outputs?: Partial<{
41
+ machinePublication: Partial<ProjectOutputs["machinePublication"]>;
42
+ progressRendering: Partial<ProjectOutputs["progressRendering"]>;
43
+ diagnosticLogging: Partial<ProjectOutputs["diagnosticLogging"]>;
44
+ }>;
45
+ scheduler?: Partial<SchedulerPolicy>;
46
+ }>;
47
+ export interface ProjectDefinitionDiagnostic {
48
+ readonly kind: "invalid-project-definition";
49
+ readonly path: string;
50
+ readonly reason: "invalid-value" | "unknown-key";
51
+ }
52
+ export type DefinitionWarning = MeaninglessCheckWarning;
53
+ export type ProjectDefinitionValidationResult = Readonly<{
54
+ readonly ok: true;
55
+ readonly value: ProjectDefinition;
56
+ readonly warnings: readonly DefinitionWarning[];
57
+ } | {
58
+ readonly ok: false;
59
+ readonly error: ProjectDefinitionDiagnostic;
60
+ }>;
61
+ export interface NormalizedCheckDeclaration {
62
+ readonly definition: CheckDescriptor;
63
+ readonly dependsOn: readonly string[];
64
+ readonly maxParallel: number;
65
+ readonly mutex: readonly string[];
66
+ readonly options: object;
67
+ readonly visibility: CheckVisibility;
68
+ }
69
+ export interface NormalizedCheck extends NormalizedCheckDeclaration {
70
+ readonly execution: CheckExecution;
71
+ readonly preflight?: CheckPreflight;
72
+ }
73
+ export interface DeclarativeProjectSnapshot {
74
+ readonly apiVersion: "1";
75
+ readonly checks: readonly NormalizedCheckDeclaration[];
76
+ readonly outputs: ProjectOutputs;
77
+ readonly scheduler: SchedulerPolicy;
78
+ }
79
+ export interface NormalizedProjectDefinition {
80
+ readonly checks: readonly NormalizedCheck[];
81
+ readonly declarative: DeclarativeProjectSnapshot;
82
+ readonly definitionWarnings: readonly DefinitionWarning[];
83
+ }
84
+ /** 使用 Product 默认输出创建普通 Project Definition。 */
85
+ export declare function defineConfig<const T extends ProjectDefinitionInput>(value: T & Record<Exclude<keyof T, keyof ProjectDefinitionInput>, never>): ProjectDefinition;
86
+ export declare function normalizeProjectDefinition(definition: ProjectDefinition): NormalizedProjectDefinition;
87
+ export declare function createDeclarativeFingerprint(snapshot: DeclarativeProjectSnapshot): string;
88
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { RunControlValidationResult } from "./controls/validation-result.ts";
2
+ import type { CheckAggregate, CheckAggregation } from "./controls/contract.ts";
3
+ import type { CoreSnapshot } from "../check-settlement/facts.ts";
4
+ /** Validates that aggregation selects only normalized executable Check IDs. */
5
+ export declare function validateCheckAggregationSelection(aggregation: CheckAggregation | undefined, checkIds: readonly string[]): RunControlValidationResult<CheckAggregation | undefined>;
6
+ /** Derives one explicit consumer-selected aggregate from settled Check statuses only. */
7
+ export declare function aggregateCheckOutcomes(snapshot: CoreSnapshot, aggregation: CheckAggregation): CheckAggregate;
@@ -0,0 +1,24 @@
1
+ import type { CheckDependencies, CheckOutcome, CheckProjectContext } from "../../check/check.ts";
2
+ import type { NormalizedCheck } from "../../project-definition/project-definition.ts";
3
+ import { type TrustedCheckScope } from "../../check-settlement/session.ts";
4
+ import { type DiagnosticLogger } from "../diagnostic-logging/logger.ts";
5
+ export type CallbackExecution = Readonly<{
6
+ /** Raw author result; Core owns its sole validation and canonicalization. */
7
+ readonly source: "author";
8
+ readonly result: unknown;
9
+ } | {
10
+ /** Only callback containment may create a Product-controlled outcome. */
11
+ readonly source: "product";
12
+ readonly result: CheckOutcome;
13
+ }>;
14
+ interface CheckCallbackInput {
15
+ readonly check: NormalizedCheck;
16
+ readonly dependencies: CheckDependencies;
17
+ readonly diagnosticLogger?: DiagnosticLogger;
18
+ readonly project: CheckProjectContext;
19
+ readonly scope: TrustedCheckScope;
20
+ readonly signal: AbortSignal;
21
+ }
22
+ /** Runs one trusted callback and closes its Check-owned reporter before return. */
23
+ export declare function executeCheckCallback(input: CheckCallbackInput): Promise<CallbackExecution>;
24
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { CheckDependencies } from "../../check/check.ts";
2
+ import type { CoreCheckSession } from "../../check-settlement/session.ts";
3
+ import { type DiagnosticLogger } from "../diagnostic-logging/logger.ts";
4
+ export declare function createCheckDependencies(input: Readonly<{
5
+ readonly checkId: string;
6
+ readonly diagnosticLogger: DiagnosticLogger | undefined;
7
+ readonly directDependencyIds: readonly string[];
8
+ readonly session: CoreCheckSession;
9
+ }>): CheckDependencies;
@@ -0,0 +1,18 @@
1
+ import type { NormalizedCheck } from "../../project-definition/project-definition.ts";
2
+ import { CheckExecutionInvariantFailure, type CheckIdentity } from "./execution-settlement.ts";
3
+ import type { PreparedCheck } from "./preflight.ts";
4
+ import type { CheckExecutionState, ResolvedCheckExecution } from "./resolved-checks.ts";
5
+ /** Closes the task graph, lifecycle facts, and canonical Check summaries as one Run boundary. */
6
+ export declare function closeResolvedChecks(input: Readonly<{
7
+ readonly allChecks: readonly NormalizedCheck[];
8
+ readonly graphRun: Awaited<ReturnType<typeof import("../task-scheduler/scheduler.ts").runTaskGraph<void>>>;
9
+ readonly readyChecks: readonly PreparedCheck[];
10
+ readonly state: CheckExecutionState;
11
+ }>): ResolvedCheckExecution;
12
+ export declare function closeCancelledExecution(input: Readonly<{
13
+ readonly normalizedChecks: readonly NormalizedCheck[];
14
+ readonly preparedChecks: readonly PreparedCheck[];
15
+ readonly state: CheckExecutionState;
16
+ }>): ResolvedCheckExecution;
17
+ export declare function checkIdentity(check: Pick<NormalizedCheck, "definition" | "visibility">): CheckIdentity;
18
+ export declare function trustedFailure(error: unknown): CheckExecutionInvariantFailure;
@@ -0,0 +1,41 @@
1
+ import type { CheckMessage, CheckOutcome, CheckVisibility } from "../../check/check.ts";
2
+ import type { CoreCheckSession } from "../../check-settlement/session.ts";
3
+ import { type DiagnosticLogger } from "../diagnostic-logging/logger.ts";
4
+ import type { CheckExecutionLifecycle } from "./resolved-checks.ts";
5
+ import type { executeCheckCallback } from "./callback.ts";
6
+ export type CheckIdentity = Readonly<{
7
+ readonly checkId: string;
8
+ readonly displayName: string;
9
+ readonly visibility: CheckVisibility;
10
+ }>;
11
+ export interface SettledCheckFacts {
12
+ readonly durationMs: number | null;
13
+ readonly messages: readonly CheckMessage[];
14
+ }
15
+ export type CheckExecutionSettlementState = Readonly<{
16
+ readonly diagnosticLogger: DiagnosticLogger | undefined;
17
+ readonly lifecycle: CheckExecutionLifecycle | undefined;
18
+ readonly settledFactsByCheckId: Map<string, SettledCheckFacts>;
19
+ }>;
20
+ export declare class CheckExecutionInvariantFailure extends Error {
21
+ constructor(message: string);
22
+ }
23
+ export declare function settleCallback(input: Readonly<{
24
+ readonly callback: Awaited<ReturnType<typeof executeCheckCallback>>;
25
+ readonly checkId: string;
26
+ readonly diagnosticLogger: DiagnosticLogger | undefined;
27
+ readonly preflightMessages: readonly CheckMessage[];
28
+ readonly scope: ReturnType<CoreCheckSession["openCheckScope"]>;
29
+ }>): Readonly<{
30
+ readonly messages: readonly CheckMessage[];
31
+ readonly outcome: CheckOutcome;
32
+ }>;
33
+ /** Records one terminal Check lifecycle fact after its owning Core scope has closed. */
34
+ export declare function recordSettledCheck(input: Readonly<{
35
+ readonly check: CheckIdentity;
36
+ readonly durationMs: number | null;
37
+ readonly messages: readonly CheckMessage[];
38
+ readonly outcome: CheckOutcome;
39
+ readonly phase: "execution" | "preflight";
40
+ readonly state: CheckExecutionSettlementState;
41
+ }>): void;
@@ -0,0 +1,3 @@
1
+ import type { CheckMessage } from "../../check/check.ts";
2
+ /** Parses the shared closed Check-message attachment without retaining author input. */
3
+ export declare function parseCheckMessages(value: unknown): readonly CheckMessage[] | undefined;
@@ -0,0 +1,10 @@
1
+ import type { TaskGraph } from "../task-scheduler/graph.ts";
2
+ import type { NormalizedCheck } from "../../project-definition/project-definition.ts";
3
+ /**
4
+ * Pure executable-Check projection. Check ids are the only scheduler Task
5
+ * identities: containment has already been resolved by Definition and has no
6
+ * runtime alias or completion semantics here.
7
+ */
8
+ export declare function planStaticCheckGraph(checks: readonly NormalizedCheck[], options?: Readonly<{
9
+ readonly alreadySettledCheckIds?: ReadonlySet<string>;
10
+ }>): TaskGraph;
@@ -0,0 +1,23 @@
1
+ import type { CheckMessage } from "../../check/check.ts";
2
+ export type ParsedCheckPreflightResult = Readonly<{
3
+ readonly status: "success";
4
+ readonly preparedOptions: unknown;
5
+ readonly messages: readonly CheckMessage[];
6
+ }> | Readonly<{
7
+ readonly status: "failure";
8
+ readonly action: "block";
9
+ readonly reason: {
10
+ readonly code: string;
11
+ };
12
+ readonly messages: readonly CheckMessage[];
13
+ }> | Readonly<{
14
+ readonly status: "failure";
15
+ readonly action: "continue";
16
+ readonly fallback: unknown;
17
+ readonly reason: {
18
+ readonly code: string;
19
+ };
20
+ readonly messages: readonly CheckMessage[];
21
+ }>;
22
+ /** Parses the closed result vocabulary returned by one trusted Check preflight. */
23
+ export declare function parseCheckPreflightResult(value: unknown): ParsedCheckPreflightResult | undefined;
@@ -0,0 +1,27 @@
1
+ import type { CheckMessage, CheckOutcome } from "../../check/check.ts";
2
+ import type { NormalizedCheck } from "../../project-definition/project-definition.ts";
3
+ import { type DiagnosticLogger } from "../diagnostic-logging/logger.ts";
4
+ export type PreparedCheck = Omit<NormalizedCheck, "options" | "preflight"> & Readonly<{
5
+ readonly options: object;
6
+ readonly preflightMessages: readonly CheckMessage[];
7
+ }>;
8
+ type BlockedCheck = Pick<NormalizedCheck, "definition" | "visibility"> & Readonly<{
9
+ readonly preflightMessages: readonly CheckMessage[];
10
+ }>;
11
+ export type ReadyCheckPreflightResolution = Readonly<{
12
+ readonly kind: "ready";
13
+ readonly check: PreparedCheck;
14
+ }>;
15
+ export type BlockedCheckPreflightResolution = Readonly<{
16
+ readonly kind: "blocked";
17
+ readonly check: BlockedCheck;
18
+ readonly outcome: CheckOutcome;
19
+ }>;
20
+ export type CheckPreflightResolution = ReadyCheckPreflightResolution | BlockedCheckPreflightResolution;
21
+ /** Completes the sequential invocation-wide barrier before any Check enters the Task graph. */
22
+ export declare function prepareChecks(input: Readonly<{
23
+ readonly checks: readonly NormalizedCheck[];
24
+ readonly diagnosticLogger?: DiagnosticLogger;
25
+ readonly signal: AbortSignal | undefined;
26
+ }>): Promise<readonly CheckPreflightResolution[]>;
27
+ export {};
@@ -0,0 +1,51 @@
1
+ import type { CheckMessage, CheckOutcome, CheckProjectContext, CheckVisibility } from "../../check/check.ts";
2
+ import type { NormalizedCheck } from "../../project-definition/project-definition.ts";
3
+ import { type CoreCheckSession } from "../../check-settlement/session.ts";
4
+ import { type DiagnosticLogger } from "../diagnostic-logging/logger.ts";
5
+ import { type CheckExecutionSettlementState } from "./execution-settlement.ts";
6
+ /** Private Run handoff for Check lifecycle presentation and accounting. */
7
+ export type CheckExecutionLifecycle = Readonly<{
8
+ readonly started: (fact: CheckStartedFact) => void;
9
+ readonly settled: (fact: CheckSettledFact) => void;
10
+ }>;
11
+ /** Package-private monotonic clock seam for execution accounting. */
12
+ export type CheckExecutionClock = Readonly<{
13
+ now(): number;
14
+ }>;
15
+ export type CheckStartedFact = Readonly<{
16
+ checkId: string;
17
+ displayName: string;
18
+ }>;
19
+ export type CheckSettledFact = CheckStartedFact & Readonly<{
20
+ durationMs: number | null;
21
+ messages: readonly CheckMessage[];
22
+ outcome: CheckOutcome;
23
+ visibility: CheckVisibility;
24
+ }>;
25
+ type ResolvedCheckExecutionFacts = Readonly<{
26
+ readonly checkDurations: readonly import("../result.ts").CheckDuration[];
27
+ readonly checkMessages: readonly import("../result.ts").CheckRunMessage[];
28
+ readonly snapshot: import("../../check-settlement/facts.ts").CoreSnapshot;
29
+ }>;
30
+ export type ResolvedCheckExecution = (Readonly<{
31
+ readonly kind: "completed";
32
+ }> & ResolvedCheckExecutionFacts) | (Readonly<{
33
+ readonly kind: "cancelled";
34
+ }> & ResolvedCheckExecutionFacts);
35
+ export interface CheckExecutionState extends CheckExecutionSettlementState {
36
+ readonly session: CoreCheckSession;
37
+ }
38
+ /**
39
+ * Runs the already normalized executable Check collection through one generic
40
+ * Task per Check. Graph validation happens before Core scopes or callbacks.
41
+ */
42
+ export declare function executeResolvedChecks(input: Readonly<{
43
+ readonly checks: readonly NormalizedCheck[];
44
+ readonly maxParallel: number;
45
+ readonly project: CheckProjectContext;
46
+ readonly signal: AbortSignal | undefined;
47
+ readonly clock?: CheckExecutionClock;
48
+ readonly diagnosticLogger?: DiagnosticLogger;
49
+ readonly lifecycle?: CheckExecutionLifecycle;
50
+ }>): Promise<ResolvedCheckExecution>;
51
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { CheckMessage } from "../../check/check.ts";
2
+ /**
3
+ * A terminal callback result split into the Core-owned four-state result and
4
+ * detached presentation-only messages. The caller must still pass `result` to
5
+ * Core; this adapter never validates outcome data or reasons.
6
+ */
7
+ export interface ParsedCheckTerminalResult {
8
+ readonly messages: readonly CheckMessage[];
9
+ readonly result: StrippedTerminalResult;
10
+ }
11
+ type StrippedTerminalResult = Readonly<{
12
+ readonly status: "passed" | "failed";
13
+ readonly data: unknown;
14
+ }> | Readonly<{
15
+ readonly status: "not-applicable";
16
+ readonly reason?: unknown;
17
+ }> | Readonly<{
18
+ readonly status: "unavailable";
19
+ readonly reason: unknown;
20
+ }>;
21
+ /**
22
+ * Safely removes an optional terminal-message attachment from an otherwise
23
+ * closed author result. Any malformed attachment rejects the whole value so a
24
+ * valid prefix can never escape into lifecycle or Run result state.
25
+ */
26
+ export declare function parseCheckTerminalResult(value: unknown): ParsedCheckTerminalResult | undefined;
27
+ export {};
@@ -0,0 +1,14 @@
1
+ import { type CheckDuration, type CheckRunMessage, type NonConfigurationRunResult } from "./result.ts";
2
+ import type { CheckAggregate } from "./controls/contract.ts";
3
+ import type { Invocation } from "./invocation.ts";
4
+ import type { CoreSnapshot } from "../check-settlement/facts.ts";
5
+ /** Settled Check facts consumed by completion and output publication. */
6
+ export type CoreExecution = Readonly<{
7
+ readonly aggregate: CheckAggregate | null;
8
+ readonly checkDurations: readonly CheckDuration[];
9
+ readonly checkMessages: readonly CheckRunMessage[];
10
+ readonly snapshot: CoreSnapshot;
11
+ }>;
12
+ export declare function completeInvocation(invocation: Invocation, core: CoreExecution): NonConfigurationRunResult;
13
+ /** Closes diagnostic logging and applies final output priority to a non-configuration candidate. */
14
+ export declare function finalizeInvocation(invocation: Invocation, candidate: NonConfigurationRunResult): NonConfigurationRunResult;
@@ -0,0 +1,24 @@
1
+ import type { ProjectOutputs } from "../../project-definition/project-definition.ts";
2
+ /** 单次 run 调用的闭合上下文与 output override;Project Definition 保持为 authored input。 */
3
+ export interface RunControls {
4
+ readonly checkAggregation?: CheckAggregation;
5
+ /** 仅为本次调用覆盖 Run-owned outputs。 */
6
+ readonly outputs?: Partial<{
7
+ machinePublication: Partial<ProjectOutputs["machinePublication"]>;
8
+ progressRendering: Partial<ProjectOutputs["progressRendering"]>;
9
+ diagnosticLogging: Partial<ProjectOutputs["diagnosticLogging"]>;
10
+ }>;
11
+ readonly flags?: readonly string[];
12
+ readonly projectRoot?: string;
13
+ readonly signal?: AbortSignal;
14
+ }
15
+ /** 将选定 Check statuses 折叠为 invocation aggregate 的规则。 */
16
+ export interface CheckAggregation {
17
+ readonly checks: "all" | readonly string[];
18
+ readonly mode: "all" | "any";
19
+ readonly unavailable: "propagate" | "fail" | "exclude";
20
+ readonly notApplicable: "exclude" | "pass" | "fail";
21
+ readonly empty: "passed" | "failed" | "not-applicable";
22
+ }
23
+ /** `CheckAggregation` 计算出的 invocation 级结果。 */
24
+ export type CheckAggregate = "passed" | "failed" | "not-applicable" | "unavailable";
@@ -0,0 +1,3 @@
1
+ import type { RunControls } from "./contract.ts";
2
+ /** Parses invocation-local outputs without changing Definition defaults. */
3
+ export declare function parseOutputsOverride(value: unknown): RunControls["outputs"] | undefined;
@@ -0,0 +1,14 @@
1
+ /** Diagnostic emitted when one invocation control is not a closed supported value. */
2
+ export interface RunControlDiagnostic {
3
+ readonly kind: "invalid-run-controls";
4
+ readonly path: string;
5
+ readonly reason: "invalid-value" | "unknown-key";
6
+ }
7
+ /** Closed validation result for a Run-owned invocation control. */
8
+ export type RunControlValidationResult<T> = Readonly<{
9
+ readonly ok: true;
10
+ readonly value: T;
11
+ } | {
12
+ readonly ok: false;
13
+ readonly error: RunControlDiagnostic;
14
+ }>;
@@ -0,0 +1,3 @@
1
+ import type { RunControlValidationResult } from "./validation-result.ts";
2
+ import type { RunControls } from "./contract.ts";
3
+ export declare function validateRunControls(value?: unknown): RunControlValidationResult<RunControls>;
@@ -0,0 +1,11 @@
1
+ import type { DiagnosticValueSummary } from "./logger.ts";
2
+ export declare function summarizeDiagnosticValue(value: unknown): DiagnosticValueSummary;
3
+ export declare function renderSafeDiagnosticDetail(value: unknown): DetailRendering;
4
+ type DetailRendering = Readonly<{
5
+ readonly ok: true;
6
+ readonly text: string;
7
+ }> | Readonly<{
8
+ readonly ok: false;
9
+ readonly reason: string;
10
+ }>;
11
+ export {};
@@ -0,0 +1,33 @@
1
+ import type { CheckExecutionClock } from "../check-execution/resolved-checks.ts";
2
+ export { summarizeDiagnosticValue } from "./diagnostic-detail-rendering.ts";
3
+ /** Product-private observation written synchronously at the fact owner. */
4
+ export interface DiagnosticObservation {
5
+ readonly details?: unknown;
6
+ readonly event: string;
7
+ readonly tags: readonly string[];
8
+ }
9
+ /** Product-private invocation logger; its failures never escape lifecycle owners. */
10
+ export interface DiagnosticLogger {
11
+ close(): "disabled" | "failed" | "succeeded";
12
+ observe(observation: DiagnosticObservation): void;
13
+ }
14
+ /** A bounded, descriptor-safe description for normal diagnostic payloads. */
15
+ export type DiagnosticValueSummary = Readonly<{
16
+ readonly availability: "available";
17
+ readonly bytes: number;
18
+ readonly items?: number;
19
+ readonly keys?: number;
20
+ readonly shape: "array" | "boolean" | "null" | "number" | "object" | "string";
21
+ }> | Readonly<{
22
+ readonly availability: "unavailable";
23
+ readonly reason: string;
24
+ }>;
25
+ /** Test-only construction seam; Product invocation owns its lifecycle and output mapping. */
26
+ export type DiagnosticLoggerFactory = (input: Readonly<{
27
+ readonly clock: CheckExecutionClock;
28
+ readonly enabled: boolean;
29
+ readonly file: string | null;
30
+ }>) => DiagnosticLogger;
31
+ export declare const createDiagnosticLogger: DiagnosticLoggerFactory;
32
+ /** Builds one immutable set of human-filterable diagnostic labels. */
33
+ export declare function diagnosticTags(...tags: readonly string[]): readonly string[];
@@ -0,0 +1,12 @@
1
+ import { type DefinitionWarning, type NormalizedProjectDefinition, type ProjectDefinition } from "../project-definition/project-definition.ts";
2
+ import type { RunControls } from "./controls/contract.ts";
3
+ import type { Invocation, RunInvocationDependencies } from "./invocation.ts";
4
+ export interface InvocationCreationInput {
5
+ readonly controls: RunControls;
6
+ readonly definition: ProjectDefinition;
7
+ readonly definitionWarnings: readonly DefinitionWarning[];
8
+ readonly dependencies: RunInvocationDependencies;
9
+ readonly normalized: NormalizedProjectDefinition;
10
+ }
11
+ /** Creates immutable invocation-owned output state before any planning or execution work. */
12
+ export declare function createInvocation(input: InvocationCreationInput): Invocation;
@@ -0,0 +1,34 @@
1
+ import { type DefinitionWarning, type NormalizedProjectDefinition, type ProjectDefinition } from "../project-definition/project-definition.ts";
2
+ import type { RunControls } from "./controls/contract.ts";
3
+ import { type CheckExecutionClock } from "./check-execution/resolved-checks.ts";
4
+ import { type ProgressRefreshScheduler, type ProgressRendering, type ProgressWriterFactory } from "./progress-rendering/presentation.ts";
5
+ import { type RunResult } from "./result.ts";
6
+ import { type DiagnosticLogger, type DiagnosticLoggerFactory } from "./diagnostic-logging/logger.ts";
7
+ import type { OutputStatuses } from "./output-status.ts";
8
+ export type Invocation = Readonly<{
9
+ readonly clock: CheckExecutionClock;
10
+ readonly controls: RunControls;
11
+ readonly declarativeFingerprint: string;
12
+ readonly definition: ProjectDefinition;
13
+ readonly definitionWarnings: readonly DefinitionWarning[];
14
+ readonly diagnosticLogger: DiagnosticLogger;
15
+ readonly outputConfiguration: ProjectDefinition["outputs"];
16
+ readonly outputs: OutputStatuses;
17
+ readonly invocationId: string;
18
+ readonly normalized: NormalizedProjectDefinition;
19
+ readonly progressRendering: ProgressRendering;
20
+ readonly projectRoot: string;
21
+ /** Immutable UTC instant captured for enabled diagnostic or machine output, otherwise `null`. */
22
+ readonly startedAtUtc: string | null;
23
+ }>;
24
+ export interface RunInvocationDependencies {
25
+ readonly clock?: CheckExecutionClock;
26
+ readonly progressRefreshScheduler?: ProgressRefreshScheduler;
27
+ readonly progressWriterFactory?: ProgressWriterFactory;
28
+ readonly diagnosticLoggerFactory?: DiagnosticLoggerFactory;
29
+ /** Test seam for the invocation's machine-readable wall-clock timestamp. */
30
+ readonly wallClock?: Readonly<{
31
+ now(): Date;
32
+ }>;
33
+ }
34
+ export declare function executeValidatedRun(definition: ProjectDefinition, controls: RunControls, definitionWarnings: readonly DefinitionWarning[], dependencies?: RunInvocationDependencies): Promise<RunResult>;
@@ -0,0 +1,10 @@
1
+ import type { ProjectOutputs } from "../project-definition/project-definition.ts";
2
+ import type { TrustedPublicationModelV4 } from "../machine-output/v4/publication-model.ts";
3
+ import type { OutputStatuses } from "./output-status.ts";
4
+ /** Publishes an already-trusted v4 model as the Run-owned machine output. */
5
+ export declare function publishMachineOutput(input: Readonly<{
6
+ readonly configuration: ProjectOutputs["machinePublication"];
7
+ readonly statuses: OutputStatuses;
8
+ readonly model: TrustedPublicationModelV4;
9
+ readonly directory: string;
10
+ }>): boolean;
@@ -0,0 +1,3 @@
1
+ import type { ProjectDefinition, ProjectOutputs } from "../project-definition/project-definition.ts";
2
+ import type { RunControls } from "./controls/contract.ts";
3
+ export declare function effectiveOutputs(definition: ProjectDefinition, controls: RunControls): ProjectOutputs;
@@ -0,0 +1,21 @@
1
+ import type { ProjectOutputs } from "../project-definition/project-definition.ts";
2
+ export interface RunOutputStatus {
3
+ readonly enabled: boolean;
4
+ readonly status: "disabled" | "failed" | "not-run" | "succeeded";
5
+ }
6
+ export interface RunDiagnosticLoggingOutputStatus extends RunOutputStatus {
7
+ /** Project-root-relative target when enabled, otherwise `null`. */
8
+ readonly file: string | null;
9
+ }
10
+ export interface RunOutputStatuses {
11
+ readonly machinePublication: RunOutputStatus;
12
+ readonly progressRendering: RunOutputStatus;
13
+ readonly diagnosticLogging: RunDiagnosticLoggingOutputStatus;
14
+ }
15
+ export interface OutputStatuses {
16
+ readonly failed: (output: keyof RunOutputStatuses) => void;
17
+ readonly succeeded: (output: keyof RunOutputStatuses) => void;
18
+ readonly value: () => RunOutputStatuses;
19
+ }
20
+ export declare function createOutputStatuses(configuration: ProjectOutputs, diagnosticLoggingFile: string | null): OutputStatuses;
21
+ export declare function failedOutput(statuses: RunOutputStatuses): keyof RunOutputStatuses | undefined;
@@ -0,0 +1,28 @@
1
+ import type { CheckExecutionLifecycle } from "../check-execution/resolved-checks.ts";
2
+ import { type ProgressClock, type ProgressOutcomeCounts, type ProgressWriter } from "./renderer.ts";
3
+ import type { ProjectOutputs } from "../../project-definition/project-definition.ts";
4
+ import type { OutputStatuses } from "../output-status.ts";
5
+ export interface ProgressRendering {
6
+ readonly final: (input: ProgressFinalFeedback) => void;
7
+ readonly lifecycle: CheckExecutionLifecycle;
8
+ readonly prepared: (totalChecks: number) => void;
9
+ }
10
+ export interface ProgressFinalFeedback {
11
+ readonly counts: ProgressOutcomeCounts;
12
+ readonly elapsedMs: number;
13
+ readonly execution: "cancelled" | "completed";
14
+ }
15
+ export type ProgressWriterFactory = () => ProgressWriter;
16
+ export interface ProgressRefreshSchedule {
17
+ cancel(): void;
18
+ }
19
+ export interface ProgressRefreshScheduler {
20
+ schedule(refresh: () => void, intervalMs: number): ProgressRefreshSchedule;
21
+ }
22
+ export interface ProgressRenderingDependencies {
23
+ readonly clock?: ProgressClock;
24
+ readonly refreshScheduler?: ProgressRefreshScheduler;
25
+ readonly writerFactory?: ProgressWriterFactory;
26
+ }
27
+ /** Owns progress writer lifecycle and rendering; failed writers are permanently muted. */
28
+ export declare function createProgressRendering(configuration: ProjectOutputs["progressRendering"], statuses: OutputStatuses, dependencies?: ProgressRenderingDependencies): ProgressRendering;
@@ -0,0 +1,23 @@
1
+ import type { CheckMessage, CheckOutcome } from "../../check/check.ts";
2
+ import type { ProgressFeedback } from "./renderer.ts";
3
+ export declare function formatRunningRow(input: Readonly<{
4
+ readonly displayIndex: number;
5
+ readonly displayName: string;
6
+ readonly elapsedMs: number | null;
7
+ readonly totalChecks: number;
8
+ }>): string;
9
+ export declare function shouldPresentSettledFeedback(feedback: Extract<ProgressFeedback, {
10
+ readonly kind: "settled";
11
+ }>): boolean;
12
+ export declare function formatSettledBlock(input: Readonly<{
13
+ readonly completionOrdinal: number;
14
+ readonly displayName: string;
15
+ readonly durationMs: number | null;
16
+ readonly messages: readonly CheckMessage[];
17
+ readonly outcome: CheckOutcome;
18
+ readonly totalChecks: number;
19
+ readonly usesColor: boolean;
20
+ }>): string;
21
+ export declare function formatFinalSummary(input: Extract<ProgressFeedback, {
22
+ readonly kind: "final";
23
+ }>): string;
@@ -0,0 +1,24 @@
1
+ import type { ProgressClock, ProgressFeedback, ProgressRenderer, ProgressWriter } from "./renderer.ts";
2
+ /** Maintains the mutable lifecycle state and the TTY-only running terminal region. */
3
+ export declare class ProgressRendererController implements ProgressRenderer {
4
+ readonly refreshesRunningRegion: boolean;
5
+ private readonly clock;
6
+ private readonly writer;
7
+ private completedCount;
8
+ private preparedTotal;
9
+ private renderedRunningRows;
10
+ private readonly running;
11
+ private readonly usesColor;
12
+ constructor(writer: ProgressWriter, clock: ProgressClock);
13
+ refresh(): void;
14
+ render(feedback: ProgressFeedback): void;
15
+ private prepare;
16
+ private start;
17
+ private settle;
18
+ private finish;
19
+ private eraseRunningRegion;
20
+ private redrawRunningRegion;
21
+ private removeRunningCheck;
22
+ private updateRunningDurations;
23
+ private requirePrepared;
24
+ }