@zxyycom/vibe-check 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (670) hide show
  1. package/README.md +36 -5
  2. package/dist/esm/check/check.mjs +4 -0
  3. package/dist/esm/check/check.mjs.map +1 -1
  4. package/dist/esm/check/flag-enablement.mjs +32 -0
  5. package/dist/esm/check/flag-enablement.mjs.map +1 -0
  6. package/dist/esm/check/handoff-provider-identity.mjs +18 -0
  7. package/dist/esm/check/handoff-provider-identity.mjs.map +1 -0
  8. package/dist/esm/check/inherited-collection.mjs +1 -1
  9. package/dist/esm/check/inherited-collection.mjs.map +1 -1
  10. package/dist/esm/check/project-changes.mjs +2 -0
  11. package/dist/esm/check/project-changes.mjs.map +1 -0
  12. package/dist/esm/check/project-context.mjs +2 -0
  13. package/dist/esm/check/project-context.mjs.map +1 -0
  14. package/dist/esm/check-settlement/facts.mjs.map +1 -1
  15. package/dist/esm/check-settlement/record-store.mjs +1 -1
  16. package/dist/esm/check-settlement/record-store.mjs.map +1 -1
  17. package/dist/esm/data-boundary/canonical-data.mjs +36 -7
  18. package/dist/esm/data-boundary/canonical-data.mjs.map +1 -1
  19. package/dist/esm/data-boundary/canonical-json.mjs.map +1 -1
  20. package/dist/esm/data-boundary/closed-values.mjs +28 -4
  21. package/dist/esm/data-boundary/closed-values.mjs.map +1 -1
  22. package/dist/esm/{package-checks/project-files → data-boundary}/config-glob.mjs +3 -3
  23. package/dist/esm/data-boundary/config-glob.mjs.map +1 -0
  24. package/dist/esm/data-boundary/project-path.mjs +19 -0
  25. package/dist/esm/data-boundary/project-path.mjs.map +1 -0
  26. package/dist/esm/index.mjs +12 -5
  27. package/dist/esm/index.mjs.map +1 -1
  28. package/dist/esm/machine-output/v4/atomic-publication.mjs +4 -1
  29. package/dist/esm/machine-output/v4/atomic-publication.mjs.map +1 -1
  30. package/dist/esm/package-checks/check-authoring.mjs +69 -0
  31. package/dist/esm/package-checks/check-authoring.mjs.map +1 -0
  32. package/dist/esm/package-checks/code-quality-findings/finding-waiver-authoring.mjs.map +1 -1
  33. package/dist/esm/package-checks/code-quality-findings/finding-waiver-evidence.mjs.map +1 -1
  34. package/dist/esm/package-checks/command-check/command-check.mjs +55 -0
  35. package/dist/esm/package-checks/command-check/command-check.mjs.map +1 -0
  36. package/dist/esm/package-checks/command-check/contract.mjs +2 -0
  37. package/dist/esm/package-checks/command-check/contract.mjs.map +1 -0
  38. package/dist/esm/package-checks/command-check/execution.mjs +134 -0
  39. package/dist/esm/package-checks/command-check/execution.mjs.map +1 -0
  40. package/dist/esm/package-checks/command-check/options.mjs +284 -0
  41. package/dist/esm/package-checks/command-check/options.mjs.map +1 -0
  42. package/dist/esm/package-checks/command-check/transcript.mjs +26 -0
  43. package/dist/esm/package-checks/command-check/transcript.mjs.map +1 -0
  44. package/dist/esm/package-checks/duplicate-detection/default-check.mjs +9 -11
  45. package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -1
  46. package/dist/esm/package-checks/duplicate-detection/execution.mjs +2 -4
  47. package/dist/esm/package-checks/duplicate-detection/execution.mjs.map +1 -1
  48. package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs +1 -1
  49. package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs.map +1 -1
  50. package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs +1 -1
  51. package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs.map +1 -1
  52. package/dist/esm/package-checks/duplicate-detection/options.mjs.map +1 -1
  53. package/dist/esm/package-checks/duplicate-detection/records.mjs.map +1 -1
  54. package/dist/esm/package-checks/file-metrics/constructor.mjs +9 -11
  55. package/dist/esm/package-checks/file-metrics/constructor.mjs.map +1 -1
  56. package/dist/esm/package-checks/file-metrics/execution.mjs +2 -4
  57. package/dist/esm/package-checks/file-metrics/execution.mjs.map +1 -1
  58. package/dist/esm/package-checks/file-metrics/finding-messages.mjs +1 -1
  59. package/dist/esm/package-checks/file-metrics/finding-messages.mjs.map +1 -1
  60. package/dist/esm/package-checks/file-metrics/options.mjs.map +1 -1
  61. package/dist/esm/package-checks/file-metrics/records.mjs.map +1 -1
  62. package/dist/esm/package-checks/file-metrics/scc/availability.mjs +1 -1
  63. package/dist/esm/package-checks/file-metrics/scc/availability.mjs.map +1 -1
  64. package/dist/esm/package-checks/file-metrics/scc/batch-planner.mjs +38 -0
  65. package/dist/esm/package-checks/file-metrics/scc/batch-planner.mjs.map +1 -0
  66. package/dist/esm/package-checks/file-metrics/scc/logical-scan-resources.mjs +35 -0
  67. package/dist/esm/package-checks/file-metrics/scc/logical-scan-resources.mjs.map +1 -0
  68. package/dist/esm/package-checks/file-metrics/scc/scanner.mjs +102 -29
  69. package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -1
  70. package/dist/esm/package-checks/function-metrics/analysis.mjs +7 -2
  71. package/dist/esm/package-checks/function-metrics/analysis.mjs.map +1 -1
  72. package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs +1 -1
  73. package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs.map +1 -1
  74. package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs +1 -3
  75. package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs.map +1 -1
  76. package/dist/esm/package-checks/function-metrics/analyzer/extensions/protocol.mjs.map +1 -1
  77. package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs +3 -2
  78. package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs.map +1 -1
  79. package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs +6 -6
  80. package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs.map +1 -1
  81. package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs +1 -1
  82. package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs.map +1 -1
  83. package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs +9 -3
  84. package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs.map +1 -1
  85. package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs +12 -7
  86. package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs.map +1 -1
  87. package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs +6 -6
  88. package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs.map +1 -1
  89. package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs +5 -3
  90. package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs.map +1 -1
  91. package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs +2 -0
  92. package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs.map +1 -1
  93. package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs +9 -3
  94. package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs.map +1 -1
  95. package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs +9 -3
  96. package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs.map +1 -1
  97. package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs +3 -1
  98. package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs.map +1 -1
  99. package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs +3 -1
  100. package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs.map +1 -1
  101. package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs +12 -5
  102. package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs.map +1 -1
  103. package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs +20 -8
  104. package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs.map +1 -1
  105. package/dist/esm/package-checks/function-metrics/constructor.mjs +9 -11
  106. package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -1
  107. package/dist/esm/package-checks/function-metrics/execution.mjs +2 -4
  108. package/dist/esm/package-checks/function-metrics/execution.mjs.map +1 -1
  109. package/dist/esm/package-checks/function-metrics/finding-messages.mjs +1 -1
  110. package/dist/esm/package-checks/function-metrics/finding-messages.mjs.map +1 -1
  111. package/dist/esm/package-checks/function-metrics/measurement.mjs +3 -1
  112. package/dist/esm/package-checks/function-metrics/measurement.mjs.map +1 -1
  113. package/dist/esm/package-checks/function-metrics/options.mjs.map +1 -1
  114. package/dist/esm/package-checks/function-metrics/records.mjs.map +1 -1
  115. package/dist/esm/package-checks/host-environment/git.mjs +11 -0
  116. package/dist/esm/package-checks/host-environment/git.mjs.map +1 -1
  117. package/dist/esm/package-checks/host-environment/path.mjs +1 -17
  118. package/dist/esm/package-checks/host-environment/path.mjs.map +1 -1
  119. package/dist/esm/package-checks/host-environment/process/contract.mjs.map +1 -1
  120. package/dist/esm/package-checks/host-environment/process/result.mjs +43 -17
  121. package/dist/esm/package-checks/host-environment/process/result.mjs.map +1 -1
  122. package/dist/esm/package-checks/host-environment/process/runner.mjs +7 -5
  123. package/dist/esm/package-checks/host-environment/process/runner.mjs.map +1 -1
  124. package/dist/esm/package-checks/json-schema-validation/default-check.mjs +9 -11
  125. package/dist/esm/package-checks/json-schema-validation/default-check.mjs.map +1 -1
  126. package/dist/esm/package-checks/json-schema-validation/options.mjs.map +1 -1
  127. package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs +6 -2
  128. package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs.map +1 -1
  129. package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs +11 -3
  130. package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs.map +1 -1
  131. package/dist/esm/package-checks/json-validation/default-check.mjs +9 -11
  132. package/dist/esm/package-checks/json-validation/default-check.mjs.map +1 -1
  133. package/dist/esm/package-checks/json-validation/options.mjs.map +1 -1
  134. package/dist/esm/package-checks/local-cache-options.mjs +28 -0
  135. package/dist/esm/package-checks/local-cache-options.mjs.map +1 -0
  136. package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs +37 -45
  137. package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs.map +1 -1
  138. package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs +3 -1
  139. package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs.map +1 -1
  140. package/dist/esm/package-checks/markdown-link-validation/default-check.mjs +19 -33
  141. package/dist/esm/package-checks/markdown-link-validation/default-check.mjs.map +1 -1
  142. package/dist/esm/package-checks/markdown-link-validation/execution.mjs +1 -1
  143. package/dist/esm/package-checks/markdown-link-validation/execution.mjs.map +1 -1
  144. package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs +1 -1
  145. package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs.map +1 -1
  146. package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs +1 -3
  147. package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs.map +1 -1
  148. package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs +3 -18
  149. package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs.map +1 -1
  150. package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs +2 -14
  151. package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs.map +1 -1
  152. package/dist/esm/package-checks/markdown-link-validation/options.mjs.map +1 -1
  153. package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache-payload.mjs +4 -5
  154. package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache-payload.mjs.map +1 -1
  155. package/dist/esm/package-checks/markdown-lint/adapter.mjs +125 -0
  156. package/dist/esm/package-checks/markdown-lint/adapter.mjs.map +1 -0
  157. package/dist/esm/package-checks/markdown-lint/default-check.mjs +37 -0
  158. package/dist/esm/package-checks/markdown-lint/default-check.mjs.map +1 -0
  159. package/dist/esm/package-checks/markdown-lint/execution.mjs +202 -0
  160. package/dist/esm/package-checks/markdown-lint/execution.mjs.map +1 -0
  161. package/dist/esm/package-checks/markdown-lint/final-data.mjs +16 -0
  162. package/dist/esm/package-checks/markdown-lint/final-data.mjs.map +1 -0
  163. package/dist/esm/package-checks/markdown-lint/finding-messages.mjs +72 -0
  164. package/dist/esm/package-checks/markdown-lint/finding-messages.mjs.map +1 -0
  165. package/dist/esm/package-checks/markdown-lint/finding-waiver-identity.mjs +41 -0
  166. package/dist/esm/package-checks/markdown-lint/finding-waiver-identity.mjs.map +1 -0
  167. package/dist/esm/package-checks/markdown-lint/findings-cache.mjs +110 -0
  168. package/dist/esm/package-checks/markdown-lint/findings-cache.mjs.map +1 -0
  169. package/dist/esm/package-checks/markdown-lint/options-resolution.mjs +74 -0
  170. package/dist/esm/package-checks/markdown-lint/options-resolution.mjs.map +1 -0
  171. package/dist/esm/package-checks/markdown-lint/options-validation.mjs +41 -0
  172. package/dist/esm/package-checks/markdown-lint/options-validation.mjs.map +1 -0
  173. package/dist/esm/package-checks/markdown-lint/options.mjs +13 -0
  174. package/dist/esm/package-checks/markdown-lint/options.mjs.map +1 -0
  175. package/dist/esm/package-checks/markdown-lint/records.mjs +65 -0
  176. package/dist/esm/package-checks/markdown-lint/records.mjs.map +1 -0
  177. package/dist/esm/package-checks/markdown-lint/unavailable-reasons.mjs +14 -0
  178. package/dist/esm/package-checks/markdown-lint/unavailable-reasons.mjs.map +1 -0
  179. package/dist/esm/package-checks/project-files/collection.mjs +23 -19
  180. package/dist/esm/package-checks/project-files/collection.mjs.map +1 -1
  181. package/dist/esm/package-checks/project-files/configuration.mjs +1 -1
  182. package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -1
  183. package/dist/esm/package-checks/project-files/gitlink-revision.mjs +2 -5
  184. package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -1
  185. package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +22 -6
  186. package/dist/esm/package-checks/project-files/gitlink-worktree.mjs.map +1 -1
  187. package/dist/esm/package-checks/project-files/public-collection.mjs +1 -1
  188. package/dist/esm/package-checks/project-files/public-collection.mjs.map +1 -1
  189. package/dist/esm/package-checks/project-files/revision-paths.mjs +3 -3
  190. package/dist/esm/package-checks/project-files/revision-paths.mjs.map +1 -1
  191. package/dist/esm/package-checks/project-files/revision-worktree-files.mjs +11 -15
  192. package/dist/esm/package-checks/project-files/revision-worktree-files.mjs.map +1 -1
  193. package/dist/esm/package-checks/secret-detection/default-check.mjs +9 -11
  194. package/dist/esm/package-checks/secret-detection/default-check.mjs.map +1 -1
  195. package/dist/esm/package-checks/secret-detection/execution.mjs +2 -2
  196. package/dist/esm/package-checks/secret-detection/execution.mjs.map +1 -1
  197. package/dist/esm/package-checks/secret-detection/input-preparation.mjs +46 -7
  198. package/dist/esm/package-checks/secret-detection/input-preparation.mjs.map +1 -1
  199. package/dist/esm/package-checks/secret-detection/options.mjs.map +1 -1
  200. package/dist/esm/package-checks/secret-detection/records.mjs.map +1 -1
  201. package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs +3 -4
  202. package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs.map +1 -1
  203. package/dist/esm/package-tools/admission-policy/define-admission-policy.mjs +10 -0
  204. package/dist/esm/package-tools/admission-policy/define-admission-policy.mjs.map +1 -0
  205. package/dist/esm/{cache → package-tools/cache}/cache-json-by-key.mjs +13 -14
  206. package/dist/esm/package-tools/cache/cache-json-by-key.mjs.map +1 -0
  207. package/dist/esm/package-tools/finding-presentation/finding-presentation.mjs.map +1 -0
  208. package/dist/esm/{finding-waivers → package-tools/finding-waivers}/reconciliation.mjs +14 -5
  209. package/dist/esm/package-tools/finding-waivers/reconciliation.mjs.map +1 -0
  210. package/dist/esm/package-tools/learned-critical-path/critical-path-ranking.mjs.map +1 -0
  211. package/dist/esm/package-tools/learned-critical-path/duration-model/bounded-history.mjs.map +1 -0
  212. package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.mjs +2 -2
  213. package/dist/esm/package-tools/learned-critical-path/duration-model/prediction.mjs.map +1 -0
  214. package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.mjs +4 -2
  215. package/dist/esm/package-tools/learned-critical-path/duration-model/preparation.mjs.map +1 -0
  216. package/dist/esm/package-tools/learned-critical-path/duration-model/recording.mjs.map +1 -0
  217. package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.mjs +8 -8
  218. package/dist/esm/package-tools/learned-critical-path/duration-model/storage.mjs.map +1 -0
  219. package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.mjs +1 -2
  220. package/dist/esm/package-tools/learned-critical-path/selection-layers.mjs.map +1 -0
  221. package/dist/esm/package-tools/learned-critical-path/static-decision.mjs.map +1 -0
  222. package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/strategy.mjs +3 -3
  223. package/dist/esm/package-tools/learned-critical-path/strategy.mjs.map +1 -0
  224. package/dist/esm/project-definition/check-tree/authoring.mjs +8 -5
  225. package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -1
  226. package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs +79 -66
  227. package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs.map +1 -1
  228. package/dist/esm/project-definition/check-tree/flag-conditions.mjs +71 -0
  229. package/dist/esm/project-definition/check-tree/flag-conditions.mjs.map +1 -0
  230. package/dist/esm/project-definition/check-tree/materialization.mjs +13 -8
  231. package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -1
  232. package/dist/esm/project-definition/check-tree/resolution.mjs +7 -6
  233. package/dist/esm/project-definition/check-tree/resolution.mjs.map +1 -1
  234. package/dist/esm/project-definition/declarative-snapshot.mjs +2 -1
  235. package/dist/esm/project-definition/declarative-snapshot.mjs.map +1 -1
  236. package/dist/esm/project-definition/project-changes.mjs +70 -0
  237. package/dist/esm/project-definition/project-changes.mjs.map +1 -0
  238. package/dist/esm/project-definition/project-definition-validation.mjs +40 -8
  239. package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -1
  240. package/dist/esm/project-definition/project-definition.mjs +22 -15
  241. package/dist/esm/project-definition/project-definition.mjs.map +1 -1
  242. package/dist/esm/project-definition/scheduler-policy.mjs.map +1 -1
  243. package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs +9 -6
  244. package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs.map +1 -1
  245. package/dist/esm/project-run/admission-strategy-provider/prepared-admission-strategy.mjs.map +1 -1
  246. package/dist/esm/project-run/aggregation.mjs +42 -59
  247. package/dist/esm/project-run/aggregation.mjs.map +1 -1
  248. package/dist/esm/project-run/changes/git.mjs +161 -0
  249. package/dist/esm/project-run/changes/git.mjs.map +1 -0
  250. package/dist/esm/project-run/check-execution/admitted-check-execution.mjs +41 -0
  251. package/dist/esm/project-run/check-execution/admitted-check-execution.mjs.map +1 -0
  252. package/dist/esm/project-run/check-execution/callback.mjs +3 -2
  253. package/dist/esm/project-run/check-execution/callback.mjs.map +1 -1
  254. package/dist/esm/project-run/check-execution/dependencies.mjs +80 -5
  255. package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -1
  256. package/dist/esm/project-run/check-execution/execution-finalization.mjs +5 -3
  257. package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -1
  258. package/dist/esm/project-run/check-execution/execution-settlement.mjs +37 -16
  259. package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -1
  260. package/dist/esm/project-run/check-execution/flag-controls.mjs +15 -7
  261. package/dist/esm/project-run/check-execution/flag-controls.mjs.map +1 -1
  262. package/dist/esm/project-run/check-execution/lifecycle.mjs.map +1 -1
  263. package/dist/esm/project-run/check-execution/{preflight-result.mjs → preparation-result.mjs} +24 -24
  264. package/dist/esm/project-run/check-execution/preparation-result.mjs.map +1 -0
  265. package/dist/esm/project-run/check-execution/{preflight.mjs → preparation.mjs} +52 -52
  266. package/dist/esm/project-run/check-execution/preparation.mjs.map +1 -0
  267. package/dist/esm/project-run/check-execution/ready-check-execution.mjs +71 -0
  268. package/dist/esm/project-run/check-execution/ready-check-execution.mjs.map +1 -0
  269. package/dist/esm/project-run/check-execution/resolved-checks.mjs +27 -164
  270. package/dist/esm/project-run/check-execution/resolved-checks.mjs.map +1 -1
  271. package/dist/esm/project-run/check-execution/scheduled-check-run.mjs +79 -0
  272. package/dist/esm/project-run/check-execution/scheduled-check-run.mjs.map +1 -0
  273. package/dist/esm/project-run/check-execution/terminal-result.mjs +70 -25
  274. package/dist/esm/project-run/check-execution/terminal-result.mjs.map +1 -1
  275. package/dist/esm/project-run/completion/completion.mjs +18 -1
  276. package/dist/esm/project-run/completion/completion.mjs.map +1 -1
  277. package/dist/esm/project-run/controls/contract.mjs.map +1 -1
  278. package/dist/esm/project-run/controls/validation.mjs +7 -54
  279. package/dist/esm/project-run/controls/validation.mjs.map +1 -1
  280. package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs +3 -3
  281. package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs.map +1 -1
  282. package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs +1 -1
  283. package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs.map +1 -1
  284. package/dist/esm/project-run/invocation/candidate.mjs +17 -13
  285. package/dist/esm/project-run/invocation/candidate.mjs.map +1 -1
  286. package/dist/esm/project-run/invocation/candidates.mjs +26 -0
  287. package/dist/esm/project-run/invocation/candidates.mjs.map +1 -0
  288. package/dist/esm/project-run/invocation/creation.mjs +7 -3
  289. package/dist/esm/project-run/invocation/creation.mjs.map +1 -1
  290. package/dist/esm/project-run/invocation/execution.mjs +98 -0
  291. package/dist/esm/project-run/invocation/execution.mjs.map +1 -0
  292. package/dist/esm/project-run/invocation/run.mjs +13 -112
  293. package/dist/esm/project-run/invocation/run.mjs.map +1 -1
  294. package/dist/esm/project-run/invocation/scheduler.mjs +13 -6
  295. package/dist/esm/project-run/invocation/scheduler.mjs.map +1 -1
  296. package/dist/esm/project-run/outputs/status.mjs +12 -12
  297. package/dist/esm/project-run/outputs/status.mjs.map +1 -1
  298. package/dist/esm/project-run/progress-rendering/presentation.mjs +31 -11
  299. package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -1
  300. package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +11 -4
  301. package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -1
  302. package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +20 -6
  303. package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -1
  304. package/dist/esm/project-run/progress-rendering/renderer.mjs +6 -2
  305. package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -1
  306. package/dist/esm/project-run/project-context.mjs +2 -1
  307. package/dist/esm/project-run/project-context.mjs.map +1 -1
  308. package/dist/esm/project-run/result.mjs +2 -2
  309. package/dist/esm/project-run/result.mjs.map +1 -1
  310. package/dist/esm/project-run/run.mjs.map +1 -1
  311. package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph-lookup.mjs +45 -0
  312. package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph-lookup.mjs.map +1 -0
  313. package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph.mjs +9 -4
  314. package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph.mjs.map +1 -1
  315. package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs +3 -5
  316. package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs.map +1 -1
  317. package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs +25 -8
  318. package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs.map +1 -1
  319. package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs +8 -8
  320. package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs.map +1 -1
  321. package/dist/esm/project-run/task-scheduler/execution-state.mjs.map +1 -1
  322. package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs +8 -4
  323. package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs.map +1 -1
  324. package/dist/esm/project-run/task-scheduler/measurement/timing.mjs +12 -6
  325. package/dist/esm/project-run/task-scheduler/measurement/timing.mjs.map +1 -1
  326. package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs +3 -1
  327. package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs.map +1 -1
  328. package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs +17 -17
  329. package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs.map +1 -1
  330. package/dist/esm/project-run/task-scheduler/scheduler.mjs +18 -6
  331. package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -1
  332. package/docs/api-mechanics.md +147 -28
  333. package/docs/changelog.md +145 -2
  334. package/docs/checks/duplicate-detection.md +22 -3
  335. package/docs/checks/file-metrics.md +25 -6
  336. package/docs/checks/function-metrics.md +21 -2
  337. package/docs/checks/json-schema-validation.md +25 -4
  338. package/docs/checks/json-validation.md +24 -5
  339. package/docs/checks/maintenance-reminders.md +30 -6
  340. package/docs/checks/markdown-link-validation.md +24 -4
  341. package/docs/checks/markdown-lint.md +167 -0
  342. package/docs/checks/secret-detection.md +31 -7
  343. package/docs/examples/artifacts/mixed-outcomes/definition.ts +10 -10
  344. package/docs/guides/building-project-gate.md +706 -0
  345. package/docs/guides/callbacks.md +81 -22
  346. package/docs/guides/check-dependencies.md +41 -10
  347. package/docs/guides/collecting-project-files.md +7 -7
  348. package/docs/guides/command-check.md +155 -0
  349. package/docs/guides/data-boundaries.md +140 -0
  350. package/docs/guides/extending-check-lifecycle.md +77 -25
  351. package/docs/guides/finding-waivers.md +43 -1
  352. package/docs/guides/learned-scheduling.md +1 -1
  353. package/docs/guides/run-outputs.md +35 -9
  354. package/docs/guides/scheduling.md +15 -15
  355. package/docs/output.md +6 -5
  356. package/package.json +2 -1
  357. package/src/check/check.ts +332 -92
  358. package/src/check/flag-enablement.ts +76 -0
  359. package/src/check/handoff-provider-identity.ts +34 -0
  360. package/src/check/inherited-collection.ts +1 -1
  361. package/src/check/project-changes.ts +14 -0
  362. package/src/check/project-context.ts +11 -0
  363. package/src/check-settlement/facts.ts +1 -1
  364. package/src/check-settlement/record-store.ts +1 -1
  365. package/src/data-boundary/canonical-data.ts +36 -9
  366. package/src/data-boundary/canonical-json.ts +18 -1
  367. package/src/data-boundary/closed-values.ts +26 -6
  368. package/src/data-boundary/config-glob.ts +17 -0
  369. package/src/data-boundary/project-path.ts +21 -0
  370. package/src/index.ts +72 -11
  371. package/src/machine-output/v4/atomic-publication.ts +3 -1
  372. package/src/package-checks/check-authoring.ts +136 -0
  373. package/src/package-checks/code-quality-findings/finding-waiver-authoring.ts +1 -1
  374. package/src/package-checks/code-quality-findings/finding-waiver-evidence.ts +1 -1
  375. package/src/package-checks/command-check/command-check.ts +152 -0
  376. package/src/package-checks/command-check/contract.ts +168 -0
  377. package/src/package-checks/command-check/execution.ts +211 -0
  378. package/src/package-checks/command-check/options.ts +331 -0
  379. package/src/package-checks/command-check/transcript.ts +35 -0
  380. package/src/package-checks/duplicate-detection/default-check.ts +37 -6
  381. package/src/package-checks/duplicate-detection/execution.ts +2 -4
  382. package/src/package-checks/duplicate-detection/finding-messages.ts +2 -2
  383. package/src/package-checks/duplicate-detection/jscpd/availability.ts +1 -1
  384. package/src/package-checks/duplicate-detection/options.ts +6 -3
  385. package/src/package-checks/duplicate-detection/records.ts +1 -1
  386. package/src/package-checks/file-metrics/constructor.ts +29 -6
  387. package/src/package-checks/file-metrics/execution.ts +2 -4
  388. package/src/package-checks/file-metrics/finding-messages.ts +1 -1
  389. package/src/package-checks/file-metrics/options.ts +6 -3
  390. package/src/package-checks/file-metrics/records.ts +1 -1
  391. package/src/package-checks/file-metrics/scc/availability.ts +1 -1
  392. package/src/package-checks/file-metrics/scc/batch-planner.ts +56 -0
  393. package/src/package-checks/file-metrics/scc/logical-scan-resources.ts +59 -0
  394. package/src/package-checks/file-metrics/scc/scanner.ts +134 -32
  395. package/src/package-checks/function-metrics/analysis.ts +7 -2
  396. package/src/package-checks/function-metrics/analyzer/analysis-model.ts +1 -1
  397. package/src/package-checks/function-metrics/analyzer/extension-output.ts +14 -6
  398. package/src/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.ts +1 -3
  399. package/src/package-checks/function-metrics/analyzer/extensions/protocol.ts +3 -3
  400. package/src/package-checks/function-metrics/analyzer/pipeline.ts +4 -2
  401. package/src/package-checks/function-metrics/analyzer/readers/erlang.ts +6 -6
  402. package/src/package-checks/function-metrics/analyzer/readers/fortran.ts +1 -1
  403. package/src/package-checks/function-metrics/analyzer/readers/objc.ts +9 -3
  404. package/src/package-checks/function-metrics/analyzer/readers/php-states.ts +14 -7
  405. package/src/package-checks/function-metrics/analyzer/readers/plsql.ts +8 -4
  406. package/src/package-checks/function-metrics/analyzer/readers/python.ts +4 -3
  407. package/src/package-checks/function-metrics/analyzer/readers/r.ts +2 -1
  408. package/src/package-checks/function-metrics/analyzer/readers/ttcn.ts +9 -3
  409. package/src/package-checks/function-metrics/analyzer/readers/typescript.ts +9 -3
  410. package/src/package-checks/function-metrics/analyzer/readers/zig.ts +2 -1
  411. package/src/package-checks/function-metrics/analyzer/shared/code-reader.ts +3 -1
  412. package/src/package-checks/function-metrics/analyzer/shared/js-style-regex.ts +10 -5
  413. package/src/package-checks/function-metrics/analyzer-worker-port.ts +20 -6
  414. package/src/package-checks/function-metrics/constructor.ts +30 -7
  415. package/src/package-checks/function-metrics/execution.ts +2 -4
  416. package/src/package-checks/function-metrics/finding-messages.ts +2 -2
  417. package/src/package-checks/function-metrics/measurement.ts +3 -1
  418. package/src/package-checks/function-metrics/options.ts +6 -3
  419. package/src/package-checks/function-metrics/records.ts +1 -1
  420. package/src/package-checks/host-environment/git.ts +11 -0
  421. package/src/package-checks/host-environment/path.ts +1 -20
  422. package/src/package-checks/host-environment/process/contract.ts +17 -9
  423. package/src/package-checks/host-environment/process/result.ts +48 -20
  424. package/src/package-checks/host-environment/process/runner.ts +8 -4
  425. package/src/package-checks/json-schema-validation/default-check.ts +38 -5
  426. package/src/package-checks/json-schema-validation/options.ts +4 -1
  427. package/src/package-checks/json-schema-validation/reference-resolver.ts +6 -2
  428. package/src/package-checks/json-schema-validation/schema-policy.ts +10 -5
  429. package/src/package-checks/json-validation/default-check.ts +27 -6
  430. package/src/package-checks/json-validation/options.ts +4 -1
  431. package/src/package-checks/local-cache-options.ts +40 -0
  432. package/src/package-checks/maintenance-reminders/maintenance-reminders.ts +89 -9
  433. package/src/package-checks/maintenance-reminders/maintenance-support.ts +3 -3
  434. package/src/package-checks/markdown-link-validation/default-check.ts +48 -5
  435. package/src/package-checks/markdown-link-validation/execution.ts +1 -1
  436. package/src/package-checks/markdown-link-validation/finding-messages.ts +1 -1
  437. package/src/package-checks/markdown-link-validation/markdown-parser.ts +1 -5
  438. package/src/package-checks/markdown-link-validation/options-resolution.ts +2 -19
  439. package/src/package-checks/markdown-link-validation/options-validation.ts +2 -17
  440. package/src/package-checks/markdown-link-validation/options.ts +6 -7
  441. package/src/package-checks/markdown-link-validation/parse-facts-cache-payload.ts +4 -5
  442. package/src/package-checks/markdown-lint/adapter.ts +167 -0
  443. package/src/package-checks/markdown-lint/default-check.ts +92 -0
  444. package/src/package-checks/markdown-lint/execution.ts +266 -0
  445. package/src/package-checks/markdown-lint/final-data.ts +33 -0
  446. package/src/package-checks/markdown-lint/finding-messages.ts +87 -0
  447. package/src/package-checks/markdown-lint/finding-waiver-identity.ts +54 -0
  448. package/src/package-checks/markdown-lint/findings-cache.ts +141 -0
  449. package/src/package-checks/markdown-lint/options-resolution.ts +102 -0
  450. package/src/package-checks/markdown-lint/options-validation.ts +50 -0
  451. package/src/package-checks/markdown-lint/options.ts +82 -0
  452. package/src/package-checks/markdown-lint/records.ts +132 -0
  453. package/src/package-checks/markdown-lint/unavailable-reasons.ts +33 -0
  454. package/src/package-checks/project-files/collection.ts +38 -22
  455. package/src/package-checks/project-files/config-glob.ts +1 -17
  456. package/src/package-checks/project-files/configuration.ts +1 -1
  457. package/src/package-checks/project-files/gitlink-revision.ts +4 -6
  458. package/src/package-checks/project-files/gitlink-worktree.ts +35 -7
  459. package/src/package-checks/project-files/public-collection.ts +1 -1
  460. package/src/package-checks/project-files/revision-paths.ts +3 -3
  461. package/src/package-checks/project-files/revision-worktree-files.ts +16 -16
  462. package/src/package-checks/secret-detection/default-check.ts +29 -6
  463. package/src/package-checks/secret-detection/execution.ts +2 -2
  464. package/src/package-checks/secret-detection/input-preparation.ts +64 -7
  465. package/src/package-checks/secret-detection/options.ts +5 -2
  466. package/src/package-checks/secret-detection/records.ts +1 -1
  467. package/src/package-checks/secret-detection/secretlint/adapter.ts +3 -4
  468. package/src/package-tools/admission-policy/define-admission-policy.ts +54 -0
  469. package/src/{cache → package-tools/cache}/cache-json-by-key.ts +13 -17
  470. package/src/{check → package-tools/finding-presentation}/finding-presentation.ts +3 -1
  471. package/src/{finding-waivers → package-tools/finding-waivers}/reconciliation.ts +16 -8
  472. package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.ts +5 -2
  473. package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.ts +5 -3
  474. package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.ts +5 -4
  475. package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.ts +9 -10
  476. package/src/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.ts +2 -3
  477. package/src/{learned-critical-path → package-tools/learned-critical-path}/static-decision.ts +1 -1
  478. package/src/{learned-critical-path → package-tools/learned-critical-path}/strategy.ts +7 -4
  479. package/src/project-definition/check-tree/authoring.ts +15 -8
  480. package/src/project-definition/check-tree/check-fields-authoring.ts +106 -91
  481. package/src/project-definition/check-tree/flag-conditions.ts +99 -0
  482. package/src/project-definition/check-tree/materialization.ts +12 -8
  483. package/src/project-definition/check-tree/resolution.ts +13 -15
  484. package/src/project-definition/declarative-snapshot.ts +9 -2
  485. package/src/project-definition/project-changes.ts +112 -0
  486. package/src/project-definition/project-definition-validation.ts +58 -10
  487. package/src/project-definition/project-definition.ts +41 -68
  488. package/src/project-definition/scheduler-policy.ts +6 -3
  489. package/src/project-run/admission-strategy-provider/custom-strategy-preparation.ts +11 -8
  490. package/src/project-run/admission-strategy-provider/prepared-admission-strategy.ts +2 -2
  491. package/src/project-run/aggregation.ts +51 -74
  492. package/src/project-run/changes/git.ts +206 -0
  493. package/src/project-run/check-execution/admitted-check-execution.ts +62 -0
  494. package/src/project-run/check-execution/callback.ts +3 -2
  495. package/src/project-run/check-execution/dependencies.ts +120 -6
  496. package/src/project-run/check-execution/execution-finalization.ts +6 -4
  497. package/src/project-run/check-execution/execution-settlement.ts +88 -29
  498. package/src/project-run/check-execution/flag-controls.ts +22 -8
  499. package/src/project-run/check-execution/lifecycle.ts +14 -6
  500. package/src/project-run/check-execution/{preflight-result.ts → preparation-result.ts} +34 -32
  501. package/src/project-run/check-execution/{preflight.ts → preparation.ts} +92 -84
  502. package/src/project-run/check-execution/ready-check-execution.ts +97 -0
  503. package/src/project-run/check-execution/resolved-checks.ts +40 -219
  504. package/src/project-run/check-execution/scheduled-check-run.ts +119 -0
  505. package/src/project-run/check-execution/terminal-result.ts +108 -29
  506. package/src/project-run/completion/completion.ts +17 -3
  507. package/src/project-run/controls/contract.ts +6 -16
  508. package/src/project-run/controls/validation.ts +7 -60
  509. package/src/project-run/diagnostic-logging/diagnostic-detail-rendering.ts +1 -2
  510. package/src/project-run/diagnostic-logging/observation-rendering.ts +1 -1
  511. package/src/project-run/invocation/candidate.ts +28 -15
  512. package/src/project-run/invocation/candidates.ts +56 -0
  513. package/src/project-run/invocation/creation.ts +7 -3
  514. package/src/project-run/invocation/execution.ts +136 -0
  515. package/src/project-run/invocation/run.ts +15 -179
  516. package/src/project-run/invocation/scheduler.ts +13 -6
  517. package/src/project-run/outputs/status.ts +15 -15
  518. package/src/project-run/progress-rendering/presentation.ts +35 -13
  519. package/src/project-run/progress-rendering/renderer-formatting.ts +20 -7
  520. package/src/project-run/progress-rendering/renderer-lifecycle.ts +23 -6
  521. package/src/project-run/progress-rendering/renderer.ts +10 -4
  522. package/src/project-run/project-context.ts +8 -4
  523. package/src/project-run/result.ts +5 -5
  524. package/src/project-run/run.ts +1 -1
  525. package/src/project-run/task-scheduler/admission-core/compiled-graph-lookup.ts +71 -0
  526. package/src/project-run/task-scheduler/admission-core/compiled-graph.ts +9 -4
  527. package/src/project-run/task-scheduler/admission-core/selection-query.ts +6 -4
  528. package/src/project-run/task-scheduler/admission-core/selection-seed.ts +36 -6
  529. package/src/project-run/task-scheduler/admission-core/selection-transition.ts +17 -8
  530. package/src/project-run/task-scheduler/execution-state.ts +4 -4
  531. package/src/project-run/task-scheduler/measurement/diagnostics.ts +10 -4
  532. package/src/project-run/task-scheduler/measurement/timing.ts +13 -5
  533. package/src/project-run/task-scheduler/scheduler-observation.ts +3 -1
  534. package/src/project-run/task-scheduler/scheduler-terminal-measurement.ts +24 -22
  535. package/src/project-run/task-scheduler/scheduler.ts +23 -6
  536. package/types/check/check.d.ts +178 -67
  537. package/types/check/flag-enablement.d.ts +42 -0
  538. package/types/check/handoff-provider-identity.d.ts +12 -0
  539. package/types/check/project-changes.d.ts +13 -0
  540. package/types/check/project-context.d.ts +10 -0
  541. package/types/check-settlement/facts.d.ts +1 -1
  542. package/types/data-boundary/canonical-data.d.ts +28 -5
  543. package/types/data-boundary/canonical-json.d.ts +18 -1
  544. package/types/data-boundary/closed-values.d.ts +17 -1
  545. package/types/data-boundary/config-glob.d.ts +5 -0
  546. package/types/data-boundary/project-path.d.ts +4 -0
  547. package/types/index.d.ts +27 -11
  548. package/types/package-checks/check-authoring.d.ts +45 -0
  549. package/types/package-checks/code-quality-findings/finding-waiver-authoring.d.ts +1 -1
  550. package/types/package-checks/code-quality-findings/finding-waiver-evidence.d.ts +1 -1
  551. package/types/package-checks/command-check/command-check.d.ts +48 -0
  552. package/types/package-checks/command-check/contract.d.ts +108 -0
  553. package/types/package-checks/command-check/execution.d.ts +7 -0
  554. package/types/package-checks/command-check/options.d.ts +11 -0
  555. package/types/package-checks/command-check/transcript.d.ts +8 -0
  556. package/types/package-checks/duplicate-detection/default-check.d.ts +5 -2
  557. package/types/package-checks/duplicate-detection/finding-messages.d.ts +1 -1
  558. package/types/package-checks/duplicate-detection/options.d.ts +4 -3
  559. package/types/package-checks/duplicate-detection/records.d.ts +1 -1
  560. package/types/package-checks/file-metrics/constructor.d.ts +5 -2
  561. package/types/package-checks/file-metrics/options.d.ts +4 -3
  562. package/types/package-checks/file-metrics/records.d.ts +1 -1
  563. package/types/package-checks/file-metrics/scc/batch-planner.d.ts +18 -0
  564. package/types/package-checks/file-metrics/scc/logical-scan-resources.d.ts +14 -0
  565. package/types/package-checks/function-metrics/analyzer/extensions/protocol.d.ts +3 -3
  566. package/types/package-checks/function-metrics/constructor.d.ts +5 -2
  567. package/types/package-checks/function-metrics/finding-messages.d.ts +1 -1
  568. package/types/package-checks/function-metrics/options.d.ts +4 -3
  569. package/types/package-checks/function-metrics/records.d.ts +1 -1
  570. package/types/package-checks/host-environment/git.d.ts +2 -0
  571. package/types/package-checks/host-environment/path.d.ts +1 -3
  572. package/types/package-checks/host-environment/process/contract.d.ts +17 -9
  573. package/types/package-checks/json-schema-validation/default-check.d.ts +4 -1
  574. package/types/package-checks/json-schema-validation/options.d.ts +2 -1
  575. package/types/package-checks/json-validation/default-check.d.ts +4 -1
  576. package/types/package-checks/json-validation/options.d.ts +2 -1
  577. package/types/package-checks/local-cache-options.d.ts +9 -0
  578. package/types/package-checks/maintenance-reminders/maintenance-reminders.d.ts +11 -2
  579. package/types/package-checks/markdown-link-validation/default-check.d.ts +4 -1
  580. package/types/package-checks/markdown-link-validation/options.d.ts +4 -7
  581. package/types/package-checks/markdown-lint/adapter.d.ts +10 -0
  582. package/types/package-checks/markdown-lint/default-check.d.ts +37 -0
  583. package/types/package-checks/markdown-lint/execution.d.ts +24 -0
  584. package/types/package-checks/markdown-lint/final-data.d.ts +8 -0
  585. package/types/package-checks/markdown-lint/finding-messages.d.ts +6 -0
  586. package/types/package-checks/markdown-lint/finding-waiver-identity.d.ts +3 -0
  587. package/types/package-checks/markdown-lint/findings-cache.d.ts +17 -0
  588. package/types/package-checks/markdown-lint/options-resolution.d.ts +3 -0
  589. package/types/package-checks/markdown-lint/options-validation.d.ts +2 -0
  590. package/types/package-checks/markdown-lint/options.d.ts +65 -0
  591. package/types/package-checks/markdown-lint/records.d.ts +39 -0
  592. package/types/package-checks/markdown-lint/unavailable-reasons.d.ts +3 -0
  593. package/types/package-checks/secret-detection/default-check.d.ts +4 -1
  594. package/types/package-checks/secret-detection/options.d.ts +3 -2
  595. package/types/package-tools/admission-policy/define-admission-policy.d.ts +26 -0
  596. package/types/{check → package-tools/finding-presentation}/finding-presentation.d.ts +3 -1
  597. package/types/{finding-waivers → package-tools/finding-waivers}/reconciliation.d.ts +3 -3
  598. package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.d.ts +2 -2
  599. package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.d.ts +1 -1
  600. package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.d.ts +1 -1
  601. package/types/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.d.ts +1 -1
  602. package/types/{learned-critical-path → package-tools/learned-critical-path}/static-decision.d.ts +1 -1
  603. package/types/{learned-critical-path → package-tools/learned-critical-path}/strategy.d.ts +1 -1
  604. package/types/project-definition/check-tree/authoring.d.ts +5 -3
  605. package/types/project-definition/check-tree/check-fields-authoring.d.ts +12 -7
  606. package/types/project-definition/check-tree/flag-conditions.d.ts +5 -0
  607. package/types/project-definition/check-tree/resolution.d.ts +6 -4
  608. package/types/project-definition/declarative-snapshot.d.ts +4 -1
  609. package/types/project-definition/project-changes.d.ts +30 -0
  610. package/types/project-definition/project-definition.d.ts +15 -30
  611. package/types/project-definition/scheduler-policy.d.ts +3 -3
  612. package/types/project-run/admission-strategy-provider/prepared-admission-strategy.d.ts +2 -2
  613. package/types/project-run/aggregation.d.ts +8 -6
  614. package/types/project-run/changes/git.d.ts +14 -0
  615. package/types/project-run/check-execution/admitted-check-execution.d.ts +18 -0
  616. package/types/project-run/check-execution/dependencies.d.ts +3 -0
  617. package/types/project-run/check-execution/execution-finalization.d.ts +1 -1
  618. package/types/project-run/check-execution/execution-settlement.d.ts +15 -7
  619. package/types/project-run/check-execution/flag-controls.d.ts +1 -1
  620. package/types/project-run/check-execution/lifecycle.d.ts +9 -5
  621. package/types/project-run/check-execution/{preflight-result.d.ts → preparation-result.d.ts} +3 -3
  622. package/types/project-run/check-execution/{preflight.d.ts → preparation.d.ts} +10 -9
  623. package/types/project-run/check-execution/ready-check-execution.d.ts +18 -0
  624. package/types/project-run/check-execution/resolved-checks.d.ts +12 -13
  625. package/types/project-run/check-execution/scheduled-check-run.d.ts +10 -0
  626. package/types/project-run/check-execution/terminal-result.d.ts +13 -1
  627. package/types/project-run/completion/completion.d.ts +3 -1
  628. package/types/project-run/controls/contract.d.ts +6 -16
  629. package/types/project-run/invocation/candidates.d.ts +8 -0
  630. package/types/project-run/invocation/execution.d.ts +5 -0
  631. package/types/project-run/invocation/run.d.ts +2 -2
  632. package/types/project-run/outputs/status.d.ts +4 -4
  633. package/types/project-run/progress-rendering/presentation.d.ts +4 -3
  634. package/types/project-run/progress-rendering/renderer-formatting.d.ts +5 -2
  635. package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +2 -0
  636. package/types/project-run/progress-rendering/renderer.d.ts +4 -2
  637. package/types/project-run/project-context.d.ts +3 -3
  638. package/types/project-run/result.d.ts +3 -3
  639. package/types/project-run/run.d.ts +1 -1
  640. package/types/project-run/task-scheduler/admission-core/compiled-graph-lookup.d.ts +10 -0
  641. package/types/project-run/task-scheduler/execution-state.d.ts +4 -4
  642. package/types/project-run/task-scheduler/measurement/diagnostics.d.ts +2 -2
  643. package/types/project-run/task-scheduler/scheduler-terminal-measurement.d.ts +1 -1
  644. package/dist/esm/cache/cache-json-by-key.mjs.map +0 -1
  645. package/dist/esm/check/finding-presentation.mjs.map +0 -1
  646. package/dist/esm/finding-waivers/reconciliation.mjs.map +0 -1
  647. package/dist/esm/learned-critical-path/duration-model/bounded-history.mjs.map +0 -1
  648. package/dist/esm/learned-critical-path/duration-model/prediction.mjs.map +0 -1
  649. package/dist/esm/learned-critical-path/duration-model/preparation.mjs.map +0 -1
  650. package/dist/esm/learned-critical-path/duration-model/recording.mjs.map +0 -1
  651. package/dist/esm/learned-critical-path/duration-model/storage.mjs.map +0 -1
  652. package/dist/esm/learned-critical-path/selection-layers.mjs.map +0 -1
  653. package/dist/esm/learned-critical-path/static-decision.mjs.map +0 -1
  654. package/dist/esm/learned-critical-path/strategy.mjs.map +0 -1
  655. package/dist/esm/package-checks/project-files/config-glob.mjs.map +0 -1
  656. package/dist/esm/project-run/check-execution/preflight-result.mjs.map +0 -1
  657. package/dist/esm/project-run/check-execution/preflight.mjs.map +0 -1
  658. package/dist/esm/project-run/task-scheduler/critical-path-ranking.mjs.map +0 -1
  659. package/types/package-checks/project-files/config-glob.d.ts +0 -5
  660. /package/dist/esm/{check → package-tools/finding-presentation}/finding-presentation.mjs +0 -0
  661. /package/dist/esm/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.mjs +0 -0
  662. /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.mjs +0 -0
  663. /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.mjs +0 -0
  664. /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/static-decision.mjs +0 -0
  665. /package/src/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.ts +0 -0
  666. /package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.ts +0 -0
  667. /package/types/{cache → package-tools/cache}/cache-json-by-key.d.ts +0 -0
  668. /package/types/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.d.ts +0 -0
  669. /package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.d.ts +0 -0
  670. /package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.d.ts +0 -0
@@ -9,9 +9,12 @@ export interface ProcessFailure extends Error {
9
9
  }
10
10
  export type ProcessResult = {
11
11
  readonly error?: Error;
12
+ readonly isCanceled?: true;
13
+ readonly isMaxBuffer?: true;
12
14
  readonly signal: NodeJS.Signals | null;
13
15
  readonly status: number | null;
14
16
  readonly stderr: string;
17
+ readonly timedOut?: true;
15
18
  readonly stdout: string;
16
19
  };
17
20
  export type RunProcessSyncOptions = {
@@ -27,8 +30,11 @@ export type RunProcessSyncOptions = {
27
30
  };
28
31
  export type RunProcessOptions = {
29
32
  readonly args?: readonly string[];
33
+ readonly cancelSignal?: AbortSignal;
30
34
  readonly command: string;
31
35
  readonly cwd?: string | URL;
36
+ /** `false` uses only the supplied `env`; omission preserves Execa's inherited default. */
37
+ readonly extendEnv?: boolean;
32
38
  readonly env?: NodeJS.ProcessEnv;
33
39
  readonly label?: string;
34
40
  readonly maxBuffer?: number;
@@ -36,15 +42,17 @@ export type RunProcessOptions = {
36
42
  readonly windowsHide?: boolean;
37
43
  };
38
44
  export type ExecaResultLike = {
39
- readonly code?: string;
40
- readonly exitCode?: number;
41
- readonly failed?: boolean;
42
- readonly isMaxBuffer?: boolean;
43
- readonly message?: string;
44
- readonly originalMessage?: string;
45
- readonly shortMessage?: string;
46
- readonly signal?: NodeJS.Signals;
45
+ /** Execa's imported result types permit explicitly present `undefined` values. */
46
+ readonly code?: string | undefined;
47
+ readonly exitCode?: number | undefined;
48
+ readonly failed?: boolean | undefined;
49
+ readonly isCanceled?: boolean | undefined;
50
+ readonly isMaxBuffer?: boolean | undefined;
51
+ readonly message?: string | undefined;
52
+ readonly originalMessage?: string | undefined;
53
+ readonly shortMessage?: string | undefined;
54
+ readonly signal?: NodeJS.Signals | undefined;
47
55
  readonly stderr?: unknown;
48
56
  readonly stdout?: unknown;
49
- readonly timedOut?: boolean;
57
+ readonly timedOut?: boolean | undefined;
50
58
  };
@@ -1,4 +1,5 @@
1
1
  import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckIdentityInput } from "../check-authoring.ts";
2
3
  import { parseJsonSchemaValidationData } from "./final-data.ts";
3
4
  import type { JsonSchemaValidationOptions, ResolvedJsonSchemaValidationOptions } from "./options.ts";
4
5
  /**
@@ -8,4 +9,6 @@ import type { JsonSchemaValidationOptions, ResolvedJsonSchemaValidationOptions }
8
9
  * @returns 固定 `json-schema-validation` identity、完整冻结 options、parser 与执行逻辑。
9
10
  * @throws {TypeError} input 不符合 closed authoring policy、identity 或 binding 不变量时抛出。
10
11
  */
11
- export declare function jsonSchemaValidation(options?: JsonSchemaValidationOptions): TypedCheckWithOptions<"json-schema-validation", ResolvedJsonSchemaValidationOptions, typeof parseJsonSchemaValidationData>;
12
+ export declare function jsonSchemaValidation(options?: JsonSchemaValidationOptions<"json-schema-validation">): TypedCheckWithOptions<"json-schema-validation", ResolvedJsonSchemaValidationOptions, typeof parseJsonSchemaValidationData>;
13
+ export declare function jsonSchemaValidation<const Id extends string>(options: JsonSchemaValidationOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedJsonSchemaValidationOptions, typeof parseJsonSchemaValidationData>;
14
+ export declare function jsonSchemaValidation(options: JsonSchemaValidationOptions): TypedCheckWithOptions<string, ResolvedJsonSchemaValidationOptions, typeof parseJsonSchemaValidationData>;
@@ -1,3 +1,4 @@
1
+ import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
1
2
  import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
2
3
  /** 已注册 schema 的 root `$id` 与配置 identity 之间的全 Check 统一规则。 */
3
4
  export type JsonSchemaIdentityMode =
@@ -56,7 +57,7 @@ export interface JsonSchemaInstanceBinding {
56
57
  readonly schemaId: string;
57
58
  }
58
59
  /** `jsonSchemaValidation(options?)` 接受的可省略 authoring policy。 */
59
- export interface JsonSchemaValidationOptions {
60
+ export interface JsonSchemaValidationOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
60
61
  /** schema/instance declarations 必须属于的 repository-file selection。 */
61
62
  readonly files?: ProjectFileSelectionOptions;
62
63
  /** 每个 local schema/instance document 允许的最大 raw byte 数;省略时为 1 MiB。 */
@@ -1,4 +1,5 @@
1
1
  import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckIdentityInput } from "../check-authoring.ts";
2
3
  import { parseJsonValidationData } from "./final-data.ts";
3
4
  import type { JsonValidationOptions, ResolvedJsonValidationOptions } from "./options.ts";
4
5
  /**
@@ -8,4 +9,6 @@ import type { JsonValidationOptions, ResolvedJsonValidationOptions } from "./opt
8
9
  * @returns 固定 `json-validation` identity、完整冻结 options、final-data parser 与执行逻辑。
9
10
  * @throws {TypeError} input 含未知字段、非法文件选择或非法 byte limit 时抛出。
10
11
  */
11
- export declare function jsonValidation(options?: JsonValidationOptions): TypedCheckWithOptions<"json-validation", ResolvedJsonValidationOptions, typeof parseJsonValidationData>;
12
+ export declare function jsonValidation(options?: JsonValidationOptions<"json-validation">): TypedCheckWithOptions<"json-validation", ResolvedJsonValidationOptions, typeof parseJsonValidationData>;
13
+ export declare function jsonValidation<const Id extends string>(options: JsonValidationOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedJsonValidationOptions, typeof parseJsonValidationData>;
14
+ export declare function jsonValidation(options: JsonValidationOptions): TypedCheckWithOptions<string, ResolvedJsonValidationOptions, typeof parseJsonValidationData>;
@@ -1,6 +1,7 @@
1
+ import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
1
2
  import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
2
3
  /** `jsonValidation(options?)` 接受的可省略 authoring policy。 */
3
- export interface JsonValidationOptions {
4
+ export interface JsonValidationOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
4
5
  /** 参与本 Check 的 repository-file selection;省略字段使用 package defaults。 */
5
6
  readonly files?: ProjectFileSelectionOptions;
6
7
  /** 单个 JSON document 允许的最大 raw byte 数;省略时为 1 MiB。 */
@@ -0,0 +1,9 @@
1
+ /** Shared closed grammar for an explicitly owned, deletable local cache directory. */
2
+ export type LocalCacheOptions = Readonly<{
3
+ readonly enabled: false;
4
+ }> | Readonly<{
5
+ readonly enabled: true;
6
+ readonly directory: string;
7
+ }>;
8
+ export declare function resolveOptionalLocalCacheOptions(value: unknown): LocalCacheOptions | undefined;
9
+ export declare function validLocalCacheOptions(value: unknown): value is LocalCacheOptions;
@@ -1,4 +1,5 @@
1
1
  import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckAuthoringOptions, type PackageCheckIdentityInput } from "../check-authoring.ts";
2
3
  import { MAINTENANCE_REMINDER_UNAVAILABLE_REASON, parseMaintenanceRemindersData, type MaintenanceReminderAssessment } from "./final-data.ts";
3
4
  export declare const MAINTENANCE_REMINDERS_CHECK_ID = "maintenance-reminders";
4
5
  declare const WHOLE_CHECK_UNAVAILABLE_CODE: Readonly<{
@@ -33,6 +34,11 @@ export interface MaintenanceReminderOptions {
33
34
  readonly executable: string;
34
35
  }>;
35
36
  }
37
+ /** `maintenanceReminders` 的对象式构造输入,组合提醒政策与项目 Check 声明。 */
38
+ export interface MaintenanceRemindersInput<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
39
+ /** 保留作者声明顺序的提醒政策条目。 */
40
+ readonly entries: readonly MaintenanceReminder[];
41
+ }
36
42
  /** `maintenance-reminders` whole-Check unavailable outcome 的稳定 reason code。 */
37
43
  export type MaintenanceRemindersUnavailableCode = (typeof WHOLE_CHECK_UNAVAILABLE_CODE)[keyof typeof WHOLE_CHECK_UNAVAILABLE_CODE];
38
44
  export type FirstParentHistoryUnavailableReason = typeof MAINTENANCE_REMINDER_UNAVAILABLE_REASON.firstParentHistoryInvalid | typeof MAINTENANCE_REMINDER_UNAVAILABLE_REASON.firstParentHistoryUnavailable | typeof MAINTENANCE_REMINDER_UNAVAILABLE_REASON.headInvalid | typeof MAINTENANCE_REMINDER_UNAVAILABLE_REASON.headUnavailable;
@@ -68,9 +74,9 @@ export type ReminderMeasurement = Readonly<{
68
74
  readonly value: ReminderEvaluation;
69
75
  }>;
70
76
  /**
71
- * 创建一个固定 ID 的普通 Check,并在其局部最终数据中评估多条维护提醒。
77
+ * 创建一个维护提醒普通 Check,并在其局部最终数据中评估多条维护提醒。
72
78
  *
73
- * @remarks 构造函数只接收项目无法可靠推断的提醒政策;它补齐 Git 可执行文件、身份、可见性和直接执行逻辑。返回值仍是普通 Check,可按现有原生对象组合规则替换完整 `options` 分支。
79
+ * @remarks 传入 entries 数组会保留默认 identity;对象输入可同时声明项目 Check 字段。构造函数补齐 Git 可执行文件、默认展示和直接执行逻辑,返回值仍是普通 Check,可按现有原生对象组合规则替换完整 `options` 分支。
74
80
  * @example 创建一个单一 Check 的维护提醒
75
81
  * ```ts
76
82
  * import { defineConfig, maintenanceReminders, run } from "@zxyycom/vibe-check";
@@ -106,6 +112,9 @@ export type ReminderMeasurement = Readonly<{
106
112
  * ```
107
113
  */
108
114
  export declare function maintenanceReminders(entries: readonly MaintenanceReminder[]): TypedCheckWithOptions<typeof MAINTENANCE_REMINDERS_CHECK_ID, MaintenanceReminderOptions, typeof parseMaintenanceRemindersData>;
115
+ export declare function maintenanceReminders(input: MaintenanceRemindersInput<typeof MAINTENANCE_REMINDERS_CHECK_ID>): TypedCheckWithOptions<typeof MAINTENANCE_REMINDERS_CHECK_ID, MaintenanceReminderOptions, typeof parseMaintenanceRemindersData>;
116
+ export declare function maintenanceReminders<const Id extends string>(input: MaintenanceRemindersInput<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, MaintenanceReminderOptions, typeof parseMaintenanceRemindersData>;
117
+ export declare function maintenanceReminders(input: MaintenanceRemindersInput): TypedCheckWithOptions<string, MaintenanceReminderOptions, typeof parseMaintenanceRemindersData>;
109
118
  /** 在普通对象组合后验证完整的选项形状。 */
110
119
  export declare function validMaintenanceReminderOptions(value: unknown): value is MaintenanceReminderOptions;
111
120
  export {};
@@ -1,4 +1,5 @@
1
1
  import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckIdentityInput } from "../check-authoring.ts";
2
3
  import { parseMarkdownLinkValidationData } from "./final-data.ts";
3
4
  import type { MarkdownLinkValidationOptions, ResolvedMarkdownLinkValidationOptions } from "./options.ts";
4
5
  /**
@@ -30,4 +31,6 @@ import type { MarkdownLinkValidationOptions, ResolvedMarkdownLinkValidationOptio
30
31
  * if (result.kind !== "completed") throw new Error(`Run did not complete: ${result.kind}`);
31
32
  * ```
32
33
  */
33
- export declare function markdownLinkValidation(options?: MarkdownLinkValidationOptions): TypedCheckWithOptions<"markdown-link-validation", ResolvedMarkdownLinkValidationOptions, typeof parseMarkdownLinkValidationData>;
34
+ export declare function markdownLinkValidation(options?: MarkdownLinkValidationOptions<"markdown-link-validation">): TypedCheckWithOptions<"markdown-link-validation", ResolvedMarkdownLinkValidationOptions, typeof parseMarkdownLinkValidationData>;
35
+ export declare function markdownLinkValidation<const Id extends string>(options: MarkdownLinkValidationOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedMarkdownLinkValidationOptions, typeof parseMarkdownLinkValidationData>;
36
+ export declare function markdownLinkValidation(options: MarkdownLinkValidationOptions): TypedCheckWithOptions<string, ResolvedMarkdownLinkValidationOptions, typeof parseMarkdownLinkValidationData>;
@@ -1,13 +1,10 @@
1
+ import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
1
2
  import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
2
3
  import type { FindingPolicy } from "../code-quality-findings/policy.ts";
4
+ import type { LocalCacheOptions } from "../local-cache-options.ts";
3
5
  export type MarkdownRootExternalTargetMode = "ignore" | "report" | "validate";
4
6
  /** 调用方显式拥有的 Link-private parse-facts local cache policy。 */
5
- type MarkdownLinkValidationCacheOptions = Readonly<{
6
- readonly enabled: false;
7
- }> | Readonly<{
8
- readonly enabled: true;
9
- readonly directory: string;
10
- }>;
7
+ type MarkdownLinkValidationCacheOptions = LocalCacheOptions;
11
8
  /** 可省略的 Markdown validation work limits。 */
12
9
  export interface MarkdownLinkValidationLimitOptions {
13
10
  readonly maxMarkdownBytes?: number;
@@ -15,7 +12,7 @@ export interface MarkdownLinkValidationLimitOptions {
15
12
  readonly maxTargetReads?: number;
16
13
  }
17
14
  /** `markdownLinkValidation(options?)` 接受的可省略 authoring policy。 */
18
- export interface MarkdownLinkValidationOptions {
15
+ export interface MarkdownLinkValidationOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
19
16
  /** 参与本 Check 的 Markdown source selection;省略字段使用 package defaults。 */
20
17
  readonly files?: ProjectFileSelectionOptions;
21
18
  /** local-reference finding 是否使本 Check failed;省略时为 non-blocking。 */
@@ -0,0 +1,10 @@
1
+ import { type MarkdownLintRuleName } from "./options.ts";
2
+ export interface MarkdownLintBackendFinding {
3
+ readonly lineNumber: number;
4
+ readonly range: readonly [number, number] | null;
5
+ readonly rule: MarkdownLintRuleName;
6
+ }
7
+ /** Runs the fixed markdownlint Promise strings API and validates its raw protocol. */
8
+ export declare function lintMarkdownString(sourcePath: string, sourceText: string, rules: readonly MarkdownLintRuleName[]): Promise<readonly MarkdownLintBackendFinding[] | "backend-failed" | "backend-protocol-invalid">;
9
+ /** Validates one backend or restored-cache range against the current source line. */
10
+ export declare function parseMarkdownLintRange(value: unknown, line: string): readonly [number, number] | null | undefined;
@@ -0,0 +1,37 @@
1
+ import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckIdentityInput } from "../check-authoring.ts";
3
+ import { parseMarkdownLintData } from "./final-data.ts";
4
+ import type { MarkdownLintOptions, ResolvedMarkdownLintOptions } from "./options.ts";
5
+ /**
6
+ * 构造使用稳定闭合规则与受限输入的 Markdown 结构检查。
7
+ * 精确 findingWaivers 只在完整 traversal 后应用;原 Finding、计数与缓存 facts 保留。
8
+ *
9
+ * @param options - 省略时采用八项 recommended 规则;非空 rules 数组完整替换该集合。
10
+ * @returns 使用默认或指定 checkId 的 typed Check,携带完整冻结 options、parser 与执行逻辑。
11
+ * @throws {TypeError} options 含未知字段、未知/重复规则、非法 limits 或 findingWaivers 时抛出。
12
+ * @example 最小用法
13
+ * ```ts
14
+ * import { defineConfig, markdownLint, run } from "@zxyycom/vibe-check";
15
+ *
16
+ * const check = markdownLint({ findingPolicy: "blocking" });
17
+ * const definition = defineConfig({
18
+ * checks: [check],
19
+ * outputs: {
20
+ * diagnosticLogging: { enabled: false },
21
+ * machinePublication: { enabled: false },
22
+ * progressRendering: { enabled: false }
23
+ * }
24
+ * });
25
+ *
26
+ * const result = await run(definition);
27
+ * if (result.kind !== "completed") throw new Error(`Run did not complete: ${result.kind}`);
28
+ * const outcome = result.snapshot.checks.find(({ checkId }) => checkId === check.checkId)?.outcome;
29
+ * if (outcome?.status !== "passed" && outcome?.status !== "not-applicable") {
30
+ * throw new Error(`Markdown lint did not pass: ${outcome?.status ?? "no outcome"}`);
31
+ * }
32
+ * if (outcome.status === "not-applicable") console.warn("No Markdown input selected; no lint evidence.");
33
+ * ```
34
+ */
35
+ export declare function markdownLint(options?: MarkdownLintOptions<"markdown-lint">): TypedCheckWithOptions<"markdown-lint", ResolvedMarkdownLintOptions, typeof parseMarkdownLintData>;
36
+ export declare function markdownLint<const Id extends string>(options: MarkdownLintOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedMarkdownLintOptions, typeof parseMarkdownLintData>;
37
+ export declare function markdownLint(options: MarkdownLintOptions): TypedCheckWithOptions<string, ResolvedMarkdownLintOptions, typeof parseMarkdownLintData>;
@@ -0,0 +1,24 @@
1
+ import type { CheckExecutionContext, CheckResult } from "../../check/check.ts";
2
+ import type { MarkdownLintFinalData } from "./final-data.ts";
3
+ import type { ResolvedMarkdownLintOptions } from "./options.ts";
4
+ import { type MarkdownLintRecordCandidate } from "./records.ts";
5
+ import { type MarkdownLintUnavailableReason } from "./unavailable-reasons.ts";
6
+ export type { MarkdownLintUnavailableReason } from "./unavailable-reasons.ts";
7
+ export declare const MARKDOWN_LINT_CHECK_DEFINITION: {
8
+ readonly checkId: "markdown-lint";
9
+ readonly displayName: "Markdown lint";
10
+ };
11
+ type Traversal = Readonly<{
12
+ readonly kind: "complete";
13
+ readonly candidates: readonly MarkdownLintRecordCandidate[];
14
+ readonly sourceFileCount: number;
15
+ }> | Readonly<{
16
+ readonly kind: "unavailable";
17
+ readonly reason: MarkdownLintUnavailableReason;
18
+ }>;
19
+ /** Executes one bounded, ordered lint pass over the exact selected Markdown source paths. */
20
+ export declare function executeMarkdownLint(context: CheckExecutionContext<ResolvedMarkdownLintOptions>): Promise<CheckResult<MarkdownLintFinalData>>;
21
+ /** Reconciles only a complete traversal, then publishes all evidence and the live policy outcome. */
22
+ export declare function publishMarkdownLintTraversal(context: CheckExecutionContext<ResolvedMarkdownLintOptions>, traversal: Extract<Traversal, {
23
+ readonly kind: "complete";
24
+ }>, rejectedPaths: readonly string[]): CheckResult<MarkdownLintFinalData>;
@@ -0,0 +1,8 @@
1
+ /** 已完成 `markdownLint` execution 的 canonical final data。 */
2
+ export interface MarkdownLintFinalData {
3
+ readonly sourceFileCount: number;
4
+ readonly findingCount: number;
5
+ readonly rejectedInputCount: number;
6
+ }
7
+ /** 解析并验证 `markdownLint` 完成结果中的 canonical final data。 */
8
+ export declare function parseMarkdownLintData(data: unknown): MarkdownLintFinalData;
@@ -0,0 +1,6 @@
1
+ import type { CheckMessage } from "../../check/check.ts";
2
+ import type { FindingWaiverReconciliation } from "../../package-tools/finding-waivers/reconciliation.ts";
3
+ import { type MarkdownLintRecordCandidate } from "./records.ts";
4
+ export declare function markdownLintFindingMessages(candidates: readonly MarkdownLintRecordCandidate[], rejectedPaths: readonly string[], blocking: boolean): readonly CheckMessage[];
5
+ /** Explains every configured waiver without turning accepted findings into error messages. */
6
+ export declare function markdownLintWaiverMessages(reconciliation: FindingWaiverReconciliation<MarkdownLintRecordCandidate>): readonly CheckMessage[];
@@ -0,0 +1,3 @@
1
+ import { type MarkdownLintFindingIdentity } from "./options.ts";
2
+ /** Validates and detaches the complete public location used for exact waiver matching. */
3
+ export declare function resolveMarkdownLintFindingIdentity(value: unknown): MarkdownLintFindingIdentity | undefined;
@@ -0,0 +1,17 @@
1
+ import { type MarkdownLintBackendFinding } from "./adapter.ts";
2
+ import { type MarkdownLintCacheOptions, type MarkdownLintRuleName } from "./options.ts";
3
+ import type { MarkdownLintUnavailableReason } from "./unavailable-reasons.ts";
4
+ type MarkdownLintCacheInput = Readonly<{
5
+ readonly sourcePath: string;
6
+ readonly sourceText: string;
7
+ readonly rules: readonly MarkdownLintRuleName[];
8
+ readonly cache: MarkdownLintCacheOptions;
9
+ readonly signal: AbortSignal;
10
+ }>;
11
+ export type MarkdownLintFactsResult = Readonly<{
12
+ readonly findings: readonly MarkdownLintBackendFinding[];
13
+ readonly source: "cache" | "computed" | "uncached";
14
+ }> | MarkdownLintUnavailableReason;
15
+ /** Reuses only validated per-source findings; all source reads and Check settlement remain live. */
16
+ export declare function lintMarkdownWithCache(input: MarkdownLintCacheInput): Promise<MarkdownLintFactsResult>;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type ResolvedMarkdownLintOptions } from "./options.ts";
2
+ /** Resolves closed partial authoring options into an immutable complete policy. */
3
+ export declare function resolveMarkdownLintOptions(value: unknown): ResolvedMarkdownLintOptions | undefined;
@@ -0,0 +1,2 @@
1
+ import { type ResolvedMarkdownLintOptions } from "./options.ts";
2
+ export declare function validMarkdownLintOptions(value: unknown): value is ResolvedMarkdownLintOptions;
@@ -0,0 +1,65 @@
1
+ import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
2
+ import type { LocalCacheOptions } from "../local-cache-options.ts";
3
+ import type { FindingPolicy } from "../code-quality-findings/policy.ts";
4
+ import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
5
+ import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
6
+ /** 由 Product 拥有且独立于 backend 名称的闭合 Markdown lint 规则目录。 */
7
+ export declare const MARKDOWN_LINT_RULE_NAMES: readonly ["heading-increment", "no-reversed-links", "no-missing-space-atx", "fenced-code-language", "no-empty-links", "no-alt-text", "link-fragments", "reference-links-images", "table-column-count"];
8
+ /** `markdownLint` 支持的稳定 Product-owned 规则名称。 */
9
+ export type MarkdownLintRuleName = (typeof MARKDOWN_LINT_RULE_NAMES)[number];
10
+ /** 可直接从 lint Record 复制的精确身份;完整 range 相同的多个 Finding 不可唯一豁免。 */
11
+ export interface MarkdownLintFindingIdentity {
12
+ /** 规范化的 project-root-relative `/` 路径。 */
13
+ readonly path: string;
14
+ /** 闭合 Product catalog 中的规则名称。 */
15
+ readonly rule: MarkdownLintRuleName;
16
+ /** 一基 UTF-16 正安全整数位置;必须同行,end-exclusive column 不小于 start column。 */
17
+ readonly range: Readonly<{
18
+ readonly start: Readonly<{
19
+ readonly line: number;
20
+ readonly column: number;
21
+ }>;
22
+ readonly end: Readonly<{
23
+ readonly line: number;
24
+ readonly column: number;
25
+ }>;
26
+ }>;
27
+ }
28
+ /** 完整 traversal 后唯一匹配才应用的精确豁免;reason 会公开发布,不得包含秘密。 */
29
+ export type MarkdownLintFindingWaiver = FindingWaiver<MarkdownLintFindingIdentity>;
30
+ /** `markdownLint(options?)` 可接受的可省略 work limits。 */
31
+ export interface MarkdownLintLimitOptions {
32
+ /** 单个 accepted Markdown source 的 UTF-8 字节上限。 */
33
+ readonly maxMarkdownBytes?: number;
34
+ /** 一次完整 traversal 中可积累的 lint finding 上限。 */
35
+ readonly maxFindings?: number;
36
+ }
37
+ /** 调用方拥有的逐文件 lint findings 本地缓存;省略时关闭。 */
38
+ export type MarkdownLintCacheOptions = LocalCacheOptions;
39
+ /** `markdownLint(options?)` 可接受的闭合 authoring policy。 */
40
+ export interface MarkdownLintOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
41
+ /** 参与本 Check 的 source selection;省略时使用 package defaults。 */
42
+ readonly files?: ProjectFileSelectionOptions;
43
+ /** 未豁免 lint finding 是否使本 Check failed;省略时为 non-blocking。 */
44
+ readonly findingPolicy?: FindingPolicy;
45
+ /** 闭合的精确 Finding 豁免;保留原始证据,不改变输入、limits 或缓存 facts。 */
46
+ readonly findingWaivers?: readonly MarkdownLintFindingWaiver[];
47
+ /** 非空数组完整替换 recommended rule set。 */
48
+ readonly rules?: readonly MarkdownLintRuleName[];
49
+ /** 每次 execution 的 Markdown 内容与 finding work 上限。 */
50
+ readonly limits?: MarkdownLintLimitOptions;
51
+ /** 可删除、可信 absolute directory;只缓存由当前 bytes 和规则计算的逐文件 findings。 */
52
+ readonly cache?: MarkdownLintCacheOptions;
53
+ }
54
+ /** `markdown-lint` execution 消费的完整冻结 policy。 */
55
+ export interface ResolvedMarkdownLintOptions {
56
+ readonly files: ProjectFileSelection;
57
+ readonly findingPolicy: FindingPolicy;
58
+ readonly findingWaivers: readonly MarkdownLintFindingWaiver[];
59
+ readonly rules: readonly MarkdownLintRuleName[];
60
+ readonly cache: MarkdownLintCacheOptions;
61
+ readonly limits: Readonly<{
62
+ readonly maxMarkdownBytes: number;
63
+ readonly maxFindings: number;
64
+ }>;
65
+ }
@@ -0,0 +1,39 @@
1
+ import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
2
+ import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
3
+ import type { MarkdownLintBackendFinding } from "./adapter.ts";
4
+ import type { MarkdownLintFindingIdentity, MarkdownLintRuleName } from "./options.ts";
5
+ /** 一条保留原位置的 lint Finding;唯一命中 waiver 时仅附加公开理由。 */
6
+ export type MarkdownLintFindingRecordData = Readonly<MarkdownLintFindingIdentity & {
7
+ readonly kind: "lint-finding";
8
+ readonly waiver?: Readonly<{
9
+ readonly reason: string;
10
+ }>;
11
+ }>;
12
+ /** 未使用或匹配多个 Markdown lint Findings 的精确 waiver audit Record data。 */
13
+ export type MarkdownLintFindingWaiverAuditRecordData = FindingWaiverAuditRecordData<MarkdownLintFindingIdentity>;
14
+ export type MarkdownLintInputRejectedRecordData = Readonly<{
15
+ readonly kind: "input-rejected";
16
+ readonly blocking: false;
17
+ readonly path: string;
18
+ readonly reason: "unsupported-file-type";
19
+ }>;
20
+ /** Markdown lint 发布的 Finding、input-rejection 或 finding-waiver audit Record data。 */
21
+ export type MarkdownLintRecordData = MarkdownLintFindingRecordData | MarkdownLintInputRejectedRecordData | MarkdownLintFindingWaiverAuditRecordData;
22
+ export interface MarkdownLintRecordCandidate {
23
+ readonly id: string;
24
+ readonly data: MarkdownLintFindingRecordData;
25
+ }
26
+ export declare function markdownLintFindingIdentity(candidate: MarkdownLintRecordCandidate): MarkdownLintFindingIdentity;
27
+ export declare function markdownLintWaiverIdentity(waiver: MaterializedFindingWaiver): MarkdownLintFindingIdentity;
28
+ export declare function markdownLintWaiverAuditRecord(audit: FindingWaiverRecordAudit): Readonly<{
29
+ readonly id: string;
30
+ readonly data: MarkdownLintFindingWaiverAuditRecordData;
31
+ }>;
32
+ export declare function orderedMarkdownLintCandidates(values: readonly Readonly<{
33
+ readonly path: string;
34
+ readonly finding: MarkdownLintBackendFinding;
35
+ }>[], catalog: readonly MarkdownLintRuleName[]): readonly MarkdownLintRecordCandidate[];
36
+ export declare function buildMarkdownLintInputRejectedRecord(path: string): Readonly<{
37
+ readonly id: string;
38
+ readonly data: MarkdownLintInputRejectedRecordData;
39
+ }>;
@@ -0,0 +1,3 @@
1
+ /** Markdown lint complete Check 的稳定 unavailable 原因。 */
2
+ export type MarkdownLintUnavailableReason = "backend-failed" | "backend-protocol-invalid" | "cancelled" | "finding-limit-exceeded" | "invalid-options" | "project-root-unavailable" | "source-too-large" | "source-unavailable";
3
+ export declare function markdownLintUnavailableMessage(reason: MarkdownLintUnavailableReason): string;
@@ -1,4 +1,5 @@
1
1
  import { type TypedCheckWithOptions } from "../../check/check.ts";
2
+ import { type PackageCheckIdentityInput } from "../check-authoring.ts";
2
3
  import { parseSecretDetectionData } from "./final-data.ts";
3
4
  import type { ResolvedSecretDetectionOptions, SecretDetectionOptions } from "./options.ts";
4
5
  /**
@@ -8,4 +9,6 @@ import type { ResolvedSecretDetectionOptions, SecretDetectionOptions } from "./o
8
9
  * @returns 固定 `secret-detection` identity、完整冻结 options、final-data parser 与 execution。
9
10
  * @throws {TypeError} files 缺失、策略不完整或输入含未知字段时抛出。
10
11
  */
11
- export declare function secretDetection(options: SecretDetectionOptions): TypedCheckWithOptions<"secret-detection", ResolvedSecretDetectionOptions, typeof parseSecretDetectionData>;
12
+ export declare function secretDetection(options: SecretDetectionOptions<"secret-detection">): TypedCheckWithOptions<"secret-detection", ResolvedSecretDetectionOptions, typeof parseSecretDetectionData>;
13
+ export declare function secretDetection<const Id extends string>(options: SecretDetectionOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedSecretDetectionOptions, typeof parseSecretDetectionData>;
14
+ export declare function secretDetection(options: SecretDetectionOptions): TypedCheckWithOptions<string, ResolvedSecretDetectionOptions, typeof parseSecretDetectionData>;
@@ -1,7 +1,8 @@
1
- import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
1
+ import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
2
+ import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
2
3
  import type { ProjectFileSelection } from "../project-files/configuration.ts";
3
4
  /** `secretDetection(options)` 的明确 authoring policy。 */
4
- export interface SecretDetectionOptions {
5
+ export interface SecretDetectionOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
5
6
  /** 必填的完整 project-file policy;只有它选中的 path 可以被读取或传给 detector。 */
6
7
  readonly files: ProjectFileSelection;
7
8
  /** 单个输入允许的最大 raw byte 数;超过时形成不可豁免的 coverage gap。 */
@@ -0,0 +1,26 @@
1
+ import type { AdmissionPolicy, CustomAdmissionPreparationContext, CustomAdmissionStrategy, PreparedCustomAdmissionStrategy } from "../../project-definition/scheduler-policy.ts";
2
+ type ExactAdmissionPolicy<T extends AdmissionPolicy> = T extends Readonly<{
3
+ readonly kind: "static";
4
+ }> ? T & Record<Exclude<keyof T, "kind">, never> : T extends Readonly<{
5
+ readonly kind: "custom";
6
+ }> ? T & Record<Exclude<keyof T, "kind" | "strategy">, never> & Readonly<{
7
+ readonly strategy: ExactCustomAdmissionStrategy<T["strategy"]>;
8
+ }> : never;
9
+ type ExactCustomAdmissionStrategy<T extends CustomAdmissionStrategy> = T extends Readonly<{
10
+ readonly kind: "simple";
11
+ }> ? T & Record<Exclude<keyof T, "kind" | "decide">, never> : T extends Readonly<{
12
+ readonly kind: "prepared";
13
+ }> ? T & Record<Exclude<keyof T, "kind" | "prepare">, never> & Readonly<{
14
+ readonly prepare: ExactCustomPreparation<T["prepare"]>;
15
+ }> : never;
16
+ type ExactCustomPreparation<T> = T extends (this: void, context: CustomAdmissionPreparationContext) => infer Result ? (this: void, context: CustomAdmissionPreparationContext) => ExactCustomPreparationResult<Result> : never;
17
+ type ExactCustomPreparationResult<T> = T extends Promise<unknown> ? Promise<ExactPreparedCustomAdmissionStrategy<Awaited<T>>> : ExactPreparedCustomAdmissionStrategy<T>;
18
+ type ExactPreparedCustomAdmissionStrategy<T> = T extends PreparedCustomAdmissionStrategy ? T & Record<Exclude<keyof T, "decide" | "terminalEffect">, never> : never;
19
+ /**
20
+ * 保留 closed admission policy literal 的 TypeScript inference,不创建额外运行语义。
21
+ *
22
+ * @remarks inline policy 与此 helper 的结果完全等价。custom simple `decide` 同步运行;prepared
23
+ * strategy 为每个 graph-ready Run 解析独立 closure,调用方负责其 trusted host callback 的可重入性。
24
+ */
25
+ export declare function defineAdmissionPolicy<const T extends AdmissionPolicy>(policy: ExactAdmissionPolicy<T>): T;
26
+ export {};
@@ -1,4 +1,5 @@
1
- import type { CheckMessage, CheckResult } from "./check.ts";
1
+ import type { CheckResult } from "../../check/check.ts";
2
+ type CheckMessage = NonNullable<CheckResult["messages"]>[number];
2
3
  /**
3
4
  * 将 Check-owned Finding 投影为有界 terminal messages 所需的超限上下文。
4
5
  * 完整 Finding facts 与深入查看位置继续由调用方拥有。
@@ -23,3 +24,4 @@ export declare function presentCheckFindings<Finding>(input: {
23
24
  }): readonly CheckMessage[];
24
25
  /** Appends presentation-only messages without changing the owning terminal result. */
25
26
  export declare function appendCheckMessages<Data extends object>(result: CheckResult<Data>, messages: readonly CheckMessage[]): CheckResult<Data>;
27
+ export {};
@@ -1,4 +1,4 @@
1
- import { type CanonicalJsonValue } from "../data-boundary/canonical-data.ts";
1
+ import { type CanonicalJsonValue } from "../../data-boundary/canonical-data.ts";
2
2
  /** 由采用方声明、用于匹配一个 finding 的语义身份与豁免理由。 */
3
3
  export interface FindingWaiver<Identity> {
4
4
  /** 调用方定义的稳定 finding 身份;匹配时按 canonical JSON 结构比较。 */
@@ -47,8 +47,8 @@ export interface ReconcileFindingWaiversOptions<Finding, Identity> {
47
47
  readonly findings: readonly Finding[];
48
48
  /** 从完整 finding 提取调用方选择的稳定语义身份。 */
49
49
  readonly identify: (finding: Finding) => Identity;
50
- /** 要与识别器输出进行 canonical structural matching 的 waiver。 */
51
- readonly waivers: readonly FindingWaiver<Identity>[];
50
+ /** 要对账的 waiver;省略或 undefined 等同于空数组,仍验证全部 finding identity。 */
51
+ readonly waivers?: readonly FindingWaiver<Identity>[] | undefined;
52
52
  }
53
53
  /** 独立 waiver reconciliation 的完整输出,保留 finding 处置和每项配置审计。 */
54
54
  export interface FindingWaiverReconciliation<Finding> {
@@ -1,4 +1,4 @@
1
- import { type CanonicalJsonValue } from "../../data-boundary/canonical-data.ts";
1
+ import { type CanonicalJsonValue } from "../../../data-boundary/canonical-data.ts";
2
2
  import { type SchedulerHistoryModel } from "./bounded-history.ts";
3
3
  export type SchedulerPredictionSource = "learned" | "project-prior" | "cold-start";
4
4
  export interface SchedulerPredictionInput {
@@ -27,6 +27,6 @@ export declare function createSchedulerHistoryIdentity(input: {
27
27
  readonly checkId: string;
28
28
  readonly flags: CanonicalJsonValue;
29
29
  }): string;
30
- /** Forms learned means first, then one project median prior, without invoking preflight. */
30
+ /** Forms learned means first, then one project median prior, without invoking preparation. */
31
31
  export declare function createSchedulerPredictionSnapshot(history: SchedulerHistoryModel, inputs: readonly SchedulerPredictionInput[], coldStartDurationMs?: number): SchedulerPredictionSnapshot;
32
32
  export declare function predictionForTask(snapshot: SchedulerPredictionSnapshot, taskId: string): SchedulerTaskPrediction | undefined;
@@ -1,4 +1,4 @@
1
- import type { SchedulerMeasurementContext } from "../../project-definition/project-definition.ts";
1
+ import type { SchedulerMeasurementContext } from "../../../project-definition/project-definition.ts";
2
2
  import { type SchedulerHistoryRecordingObservation } from "./recording.ts";
3
3
  import { type SchedulerPredictionInput, type SchedulerPredictionSnapshot } from "./prediction.ts";
4
4
  import { loadSchedulerHistory, writeSchedulerHistory } from "./storage.ts";
@@ -1,4 +1,4 @@
1
- import type { SchedulerRawMeasurement } from "../../project-definition/project-definition.ts";
1
+ import type { SchedulerRawMeasurement } from "../../../project-definition/project-definition.ts";
2
2
  import { type SchedulerDurationSettlementKind, type SchedulerHistoryModel } from "./bounded-history.ts";
3
3
  import { type SchedulerPredictionSnapshot } from "./prediction.ts";
4
4
  export type SchedulerHistoryRecordingObservation = Readonly<{
@@ -1,4 +1,4 @@
1
- import type { AdmissionPolicyContext, SchedulerGraphSnapshot } from "../project-definition/project-definition.ts";
1
+ import type { AdmissionPolicyContext, SchedulerGraphSnapshot } from "../../project-definition/project-definition.ts";
2
2
  type Candidate = AdmissionPolicyContext["candidates"][number];
3
3
  type Task = SchedulerGraphSnapshot["tasks"][number];
4
4
  type Scope = SchedulerGraphSnapshot["scopes"][number];
@@ -1,3 +1,3 @@
1
- import type { AdmissionPolicyContext, AdmissionProposal } from "../project-definition/project-definition.ts";
1
+ import type { AdmissionPolicyContext, AdmissionProposal } from "../../project-definition/project-definition.ts";
2
2
  /** Preserves ordinary static selection when learned preparation cannot form a ranking. */
3
3
  export declare function staticDecision(context: AdmissionPolicyContext): AdmissionProposal;
@@ -1,4 +1,4 @@
1
- import type { CustomAdmissionStrategy, SchedulerGraphSnapshot } from "../project-definition/project-definition.ts";
1
+ import type { CustomAdmissionStrategy, SchedulerGraphSnapshot } from "../../project-definition/project-definition.ts";
2
2
  /** 公开 learned critical-path prepared strategy 的调用方配置。 */
3
3
  export interface LearnedCriticalPathStrategyOptions {
4
4
  /** 调用方拥有的可丢弃 learned duration history 本地目录;必须是绝对路径。 */
@@ -1,4 +1,5 @@
1
1
  import type { CheckDescriptor } from "../../check/descriptor.ts";
2
+ import { type HandoffProviderIdentity } from "../../check/handoff-provider-identity.ts";
2
3
  import { type ParsedCheckFields, type ParsedCheckFieldPrelude, type TrustedDataParser } from "./check-fields-authoring.ts";
3
4
  import { type ParsedCheckCollection } from "./scheduling-authoring.ts";
4
5
  import type { ResourceUnitMapping } from "../resource-unit-mapping.ts";
@@ -11,7 +12,8 @@ export interface ParsedCheck {
11
12
  readonly dependsOn: ParsedCheckCollection | undefined;
12
13
  readonly displayName: string;
13
14
  readonly enabledByFlags: ParsedCheckFieldPrelude["enabledByFlags"];
14
- readonly execution: ParsedCheckFieldPrelude["execution"];
15
+ readonly execute: ParsedCheckFieldPrelude["execute"];
16
+ readonly handoff: HandoffProviderIdentity | null;
15
17
  readonly maxParallel: number | undefined;
16
18
  readonly mutex: ParsedCheckCollection | undefined;
17
19
  readonly observes: ParsedCheckCollection | undefined;
@@ -19,8 +21,8 @@ export interface ParsedCheck {
19
21
  readonly options: object | null;
20
22
  readonly path: string;
21
23
  readonly parseData: TrustedDataParser | null;
22
- readonly preflight: ParsedCheckFieldPrelude["preflight"];
23
- readonly visibility: ParsedCheckFields["visibility"];
24
+ readonly prepare: ParsedCheckFieldPrelude["prepare"];
25
+ readonly omitQuietPassedRow: ParsedCheckFields["omitQuietPassedRow"];
24
26
  }
25
27
  export interface ParsedCheckTree {
26
28
  readonly checks: readonly ParsedCheck[];