@codyswann/lisa 5.4.0 → 5.5.0

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 (370) hide show
  1. package/README.md +60 -3
  2. package/all/copy-contents/gitignore +16 -0
  3. package/all/copy-contents/scripts/lisa-mutation.sh +4 -6
  4. package/all/copy-overwrite/scripts/fetch-test-access-map.d.mts +71 -0
  5. package/all/copy-overwrite/scripts/fetch-test-access-map.mjs +674 -0
  6. package/all/copy-overwrite/scripts/lib/affected-tests.mjs +818 -0
  7. package/all/copy-overwrite/scripts/lib/automation-provenance-local.mjs +22 -1
  8. package/all/copy-overwrite/scripts/lib/build-marker.mjs +410 -0
  9. package/all/copy-overwrite/scripts/lib/gate-pass-cache.mjs +537 -0
  10. package/all/copy-overwrite/scripts/lib/kill-marks.mjs +1 -2
  11. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.mjs +3 -4
  12. package/all/copy-overwrite/scripts/lib/npm-update-controller-broker.mjs +1 -1
  13. package/all/copy-overwrite/scripts/lib/npm-update-gate-hooks.mjs +2 -1
  14. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +8 -1
  15. package/all/copy-overwrite/scripts/lib/npm-update-hosted-hook.mjs +1 -1
  16. package/all/copy-overwrite/scripts/lib/npm-update-tool-launcher.mjs +1 -1
  17. package/all/copy-overwrite/scripts/lib/push-admission.mjs +158 -0
  18. package/all/copy-overwrite/scripts/lib/push-gate-defaults.d.mts +34 -0
  19. package/all/copy-overwrite/scripts/lib/push-gate-defaults.mjs +147 -0
  20. package/all/copy-overwrite/scripts/lib/push-timing.mjs +323 -0
  21. package/all/copy-overwrite/scripts/lib/rspec-selection.mjs +672 -0
  22. package/all/copy-overwrite/scripts/lisa-affected-tests.mjs +566 -0
  23. package/all/copy-overwrite/scripts/lisa-gates.mjs +29 -0
  24. package/all/copy-overwrite/scripts/lisa-lint-staged-preflight.mjs +10 -1
  25. package/all/copy-overwrite/scripts/lisa-push-timing-report.mjs +153 -0
  26. package/all/copy-overwrite/scripts/lisa-rspec-select.mjs +982 -0
  27. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +231 -6
  28. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +105 -17
  29. package/all/deletions.json +11 -2
  30. package/cdk/create-only/vitest.config.local.ts +1 -7
  31. package/cdk/package-lisa/package.lisa.json +4 -4
  32. package/dist/cli/admit-cmd.d.ts +21 -0
  33. package/dist/cli/admit-cmd.d.ts.map +1 -0
  34. package/dist/cli/admit-cmd.js +142 -0
  35. package/dist/cli/admit-cmd.js.map +1 -0
  36. package/dist/cli/check-cmd.d.ts +72 -0
  37. package/dist/cli/check-cmd.d.ts.map +1 -0
  38. package/dist/cli/check-cmd.js +316 -0
  39. package/dist/cli/check-cmd.js.map +1 -0
  40. package/dist/cli/index.d.ts.map +1 -1
  41. package/dist/cli/index.js +6 -4
  42. package/dist/cli/index.js.map +1 -1
  43. package/dist/cli/lisa-test-run-admission.d.ts +18 -0
  44. package/dist/cli/lisa-test-run-admission.d.ts.map +1 -0
  45. package/dist/cli/lisa-test-run-admission.js +62 -0
  46. package/dist/cli/lisa-test-run-admission.js.map +1 -0
  47. package/dist/cli/lisa-test-run-payload.d.ts +37 -0
  48. package/dist/cli/lisa-test-run-payload.d.ts.map +1 -0
  49. package/dist/cli/lisa-test-run-payload.js +55 -0
  50. package/dist/cli/lisa-test-run-payload.js.map +1 -0
  51. package/dist/cli/lisa-test-run-shard-files.d.ts +89 -0
  52. package/dist/cli/lisa-test-run-shard-files.d.ts.map +1 -0
  53. package/dist/cli/lisa-test-run-shard-files.js +239 -0
  54. package/dist/cli/lisa-test-run-shard-files.js.map +1 -0
  55. package/dist/cli/lisa-test-run-shard.d.ts +6 -2
  56. package/dist/cli/lisa-test-run-shard.d.ts.map +1 -1
  57. package/dist/cli/lisa-test-run-shard.js +25 -13
  58. package/dist/cli/lisa-test-run-shard.js.map +1 -1
  59. package/dist/cli/lisa-test-run.d.ts +1 -1
  60. package/dist/cli/lisa-test-run.d.ts.map +1 -1
  61. package/dist/cli/lisa-test-run.js +47 -10
  62. package/dist/cli/lisa-test-run.js.map +1 -1
  63. package/dist/cli/update-check-hook.d.ts.map +1 -1
  64. package/dist/cli/update-check-hook.js +3 -0
  65. package/dist/cli/update-check-hook.js.map +1 -1
  66. package/dist/configs/vitest/base.d.ts +58 -135
  67. package/dist/configs/vitest/base.d.ts.map +1 -1
  68. package/dist/configs/vitest/base.js +76 -228
  69. package/dist/configs/vitest/base.js.map +1 -1
  70. package/dist/configs/vitest/cdk.d.ts.map +1 -1
  71. package/dist/configs/vitest/cdk.js +3 -2
  72. package/dist/configs/vitest/cdk.js.map +1 -1
  73. package/dist/configs/vitest/coverage-include-global-setup.d.ts.map +1 -1
  74. package/dist/configs/vitest/coverage-include-global-setup.js +3 -4
  75. package/dist/configs/vitest/coverage-include-global-setup.js.map +1 -1
  76. package/dist/configs/vitest/coverage-reports-directory.d.ts +27 -5
  77. package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
  78. package/dist/configs/vitest/coverage-reports-directory.js +47 -10
  79. package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
  80. package/dist/configs/vitest/harper-fabric.d.ts.map +1 -1
  81. package/dist/configs/vitest/harper-fabric.js +3 -2
  82. package/dist/configs/vitest/harper-fabric.js.map +1 -1
  83. package/dist/configs/vitest/nestjs.d.ts.map +1 -1
  84. package/dist/configs/vitest/nestjs.js +3 -2
  85. package/dist/configs/vitest/nestjs.js.map +1 -1
  86. package/dist/configs/vitest/phaser.d.ts.map +1 -1
  87. package/dist/configs/vitest/phaser.js +3 -2
  88. package/dist/configs/vitest/phaser.js.map +1 -1
  89. package/dist/configs/vitest/refusal-announcement.d.ts +51 -0
  90. package/dist/configs/vitest/refusal-announcement.d.ts.map +1 -0
  91. package/dist/configs/vitest/refusal-announcement.js +97 -0
  92. package/dist/configs/vitest/refusal-announcement.js.map +1 -0
  93. package/dist/configs/vitest/socket-safe-temp-base.d.ts +3 -4
  94. package/dist/configs/vitest/socket-safe-temp-base.d.ts.map +1 -1
  95. package/dist/configs/vitest/socket-safe-temp-base.js +7 -6
  96. package/dist/configs/vitest/socket-safe-temp-base.js.map +1 -1
  97. package/dist/configs/vitest/typescript.d.ts.map +1 -1
  98. package/dist/configs/vitest/typescript.js +3 -2
  99. package/dist/configs/vitest/typescript.js.map +1 -1
  100. package/dist/core/admission-decision.d.ts +110 -0
  101. package/dist/core/admission-decision.d.ts.map +1 -0
  102. package/dist/core/admission-decision.js +91 -0
  103. package/dist/core/admission-decision.js.map +1 -0
  104. package/dist/core/admission-lock.d.ts +69 -0
  105. package/dist/core/admission-lock.d.ts.map +1 -0
  106. package/dist/core/admission-lock.js +278 -0
  107. package/dist/core/admission-lock.js.map +1 -0
  108. package/dist/core/admission-settings.d.ts +69 -0
  109. package/dist/core/admission-settings.d.ts.map +1 -0
  110. package/dist/core/admission-settings.js +204 -0
  111. package/dist/core/admission-settings.js.map +1 -0
  112. package/dist/core/admission-state.d.ts +50 -0
  113. package/dist/core/admission-state.d.ts.map +1 -0
  114. package/dist/core/admission-state.js +168 -0
  115. package/dist/core/admission-state.js.map +1 -0
  116. package/dist/core/admission.d.ts +70 -0
  117. package/dist/core/admission.d.ts.map +1 -0
  118. package/dist/core/admission.js +205 -0
  119. package/dist/core/admission.js.map +1 -0
  120. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  121. package/dist/core/lisa-owned-hash-ledger.js +318 -0
  122. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  123. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  124. package/dist/core/project-config-push-gate.d.ts +66 -0
  125. package/dist/core/project-config-push-gate.d.ts.map +1 -0
  126. package/dist/core/project-config-push-gate.js +82 -0
  127. package/dist/core/project-config-push-gate.js.map +1 -0
  128. package/dist/core/project-config.d.ts +4 -0
  129. package/dist/core/project-config.d.ts.map +1 -1
  130. package/dist/core/project-config.js +14 -9
  131. package/dist/core/project-config.js.map +1 -1
  132. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  133. package/dist/core/upstream-evidence-manifest.js +197 -123
  134. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  135. package/expo/package-lisa/package.lisa.json +2 -2
  136. package/harper-fabric/package-lisa/package.lisa.json +4 -4
  137. package/nestjs/create-only/vitest.config.local.ts +1 -7
  138. package/nestjs/package-lisa/package.lisa.json +4 -4
  139. package/npm-package/package-lisa/package.lisa.json +4 -4
  140. package/package.json +12 -11
  141. package/phaser/package-lisa/package.lisa.json +4 -4
  142. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  143. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  144. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  145. package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -1
  146. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
  147. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  148. package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -1
  149. package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
  150. package/plugins/lisa-agy/plugin.json +1 -1
  151. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  152. package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -1
  153. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
  154. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  155. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  156. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  157. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  160. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  161. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  163. package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -1
  164. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
  165. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  166. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  167. package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -1
  168. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
  169. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  171. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  172. package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -1
  173. package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
  174. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  176. package/plugins/lisa-expo-agy/plugin.json +1 -1
  177. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  178. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  179. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  180. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  181. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  183. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  184. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  185. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  187. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  188. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  189. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  190. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  191. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  192. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  193. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  194. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  195. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  197. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  198. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  199. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  200. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  201. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  202. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  203. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  204. package/plugins/lisa-rails-agy/plugin.json +1 -1
  205. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  206. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  207. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  208. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  209. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  210. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  211. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  212. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  213. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  214. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  215. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  216. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  217. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  218. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  219. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  220. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  221. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  222. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  223. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
  224. package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -1
  225. package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
  226. package/rails/copy-overwrite/Gemfile.lisa +8 -0
  227. package/rails/copy-overwrite/lefthook.yml +25 -11
  228. package/rails/copy-overwrite/scripts/lisa-rails-gates.mjs +686 -0
  229. package/rails/copy-overwrite/scripts/lisa-rspec-shards.mjs +2 -2
  230. package/rails/copy-overwrite/scripts/lisa_crystalball_recorder.rb +239 -0
  231. package/rails/copy-overwrite/scripts/lisa_rspec_partial_coverage.rb +83 -0
  232. package/scripts/build-unless-marked.mjs +83 -0
  233. package/scripts/check-plugins-sync.sh +22 -5
  234. package/scripts/classify-markdown-assertions.mjs +141 -0
  235. package/scripts/integration-shard-build.mjs +143 -0
  236. package/scripts/lib/history-scanner-suites.mjs +19 -0
  237. package/scripts/lib/markdown-assertions/classify.mjs +289 -0
  238. package/scripts/lib/markdown-assertions/context.mjs +53 -0
  239. package/scripts/lib/markdown-assertions/corpus.mjs +222 -0
  240. package/scripts/lib/markdown-assertions/manifest-cull.mjs +86 -0
  241. package/scripts/lib/markdown-assertions/record-setup.mjs +265 -0
  242. package/scripts/lib/markdown-assertions/record.mjs +115 -0
  243. package/scripts/lib/markdown-assertions/record.vitest.config.mjs +24 -0
  244. package/scripts/lib/markdown-assertions/sites.mjs +273 -0
  245. package/scripts/lib/markdown-assertions/test-cull.mjs +768 -0
  246. package/scripts/lib/markdown-assertions/tokens.mjs +158 -0
  247. package/scripts/lib/shell-guard-trace.mjs +6 -0
  248. package/scripts/lib/test-access-map-setup.mjs +40 -0
  249. package/scripts/lib/test-access-map-tracer.mjs +205 -0
  250. package/scripts/lib/test-access-map.d.mts +72 -0
  251. package/scripts/lib/test-access-map.mjs +395 -0
  252. package/scripts/lib/test-timings-reporter.d.mts +17 -0
  253. package/scripts/lib/test-timings-reporter.mjs +99 -0
  254. package/scripts/plan-integration-shards.mjs +300 -0
  255. package/scripts/test-timing-report.d.mts +41 -0
  256. package/scripts/test-timing-report.mjs +361 -0
  257. package/scripts/two-channel-couplings.json +132 -36
  258. package/scripts/verify-npm-advisories-4333.mjs +3 -12
  259. package/typescript/copy-overwrite/.prettierignore +12 -0
  260. package/typescript/create-only/vitest.config.local.ts +1 -7
  261. package/typescript/package-lisa/package.lisa.json +4 -4
  262. package/all/copy-overwrite/scripts/lisa-scratch-run.sh +0 -1078
  263. package/dist/cli/lisa-test-run-bootstrap.d.ts +0 -3
  264. package/dist/cli/lisa-test-run-bootstrap.d.ts.map +0 -1
  265. package/dist/cli/lisa-test-run-bootstrap.js +0 -229
  266. package/dist/cli/lisa-test-run-bootstrap.js.map +0 -1
  267. package/dist/cli/lisa-test-run-ipc.d.ts +0 -49
  268. package/dist/cli/lisa-test-run-ipc.d.ts.map +0 -1
  269. package/dist/cli/lisa-test-run-ipc.js +0 -226
  270. package/dist/cli/lisa-test-run-ipc.js.map +0 -1
  271. package/dist/cli/lisa-test-run-process-group.d.ts +0 -30
  272. package/dist/cli/lisa-test-run-process-group.d.ts.map +0 -1
  273. package/dist/cli/lisa-test-run-process-group.js +0 -140
  274. package/dist/cli/lisa-test-run-process-group.js.map +0 -1
  275. package/dist/cli/lisa-test-run-reaper.d.ts +0 -3
  276. package/dist/cli/lisa-test-run-reaper.d.ts.map +0 -1
  277. package/dist/cli/lisa-test-run-reaper.js +0 -195
  278. package/dist/cli/lisa-test-run-reaper.js.map +0 -1
  279. package/dist/cli/lisa-test-run-runtime.d.ts +0 -46
  280. package/dist/cli/lisa-test-run-runtime.d.ts.map +0 -1
  281. package/dist/cli/lisa-test-run-runtime.js +0 -123
  282. package/dist/cli/lisa-test-run-runtime.js.map +0 -1
  283. package/dist/cli/lisa-test-run-supervisor.d.ts +0 -13
  284. package/dist/cli/lisa-test-run-supervisor.d.ts.map +0 -1
  285. package/dist/cli/lisa-test-run-supervisor.js +0 -265
  286. package/dist/cli/lisa-test-run-supervisor.js.map +0 -1
  287. package/dist/configs/vitest/fleet-admission-global-setup.d.ts +0 -34
  288. package/dist/configs/vitest/fleet-admission-global-setup.d.ts.map +0 -1
  289. package/dist/configs/vitest/fleet-admission-global-setup.js +0 -123
  290. package/dist/configs/vitest/fleet-admission-global-setup.js.map +0 -1
  291. package/dist/configs/vitest/fleet-admission.d.ts +0 -129
  292. package/dist/configs/vitest/fleet-admission.d.ts.map +0 -1
  293. package/dist/configs/vitest/fleet-admission.js +0 -239
  294. package/dist/configs/vitest/fleet-admission.js.map +0 -1
  295. package/dist/configs/vitest/scratch-authority.d.ts +0 -25
  296. package/dist/configs/vitest/scratch-authority.d.ts.map +0 -1
  297. package/dist/configs/vitest/scratch-authority.js +0 -107
  298. package/dist/configs/vitest/scratch-authority.js.map +0 -1
  299. package/dist/configs/vitest/scratch-bound-cleanup-programs.d.ts +0 -5
  300. package/dist/configs/vitest/scratch-bound-cleanup-programs.d.ts.map +0 -1
  301. package/dist/configs/vitest/scratch-bound-cleanup-programs.js +0 -219
  302. package/dist/configs/vitest/scratch-bound-cleanup-programs.js.map +0 -1
  303. package/dist/configs/vitest/scratch-bound-cleanup.d.ts +0 -28
  304. package/dist/configs/vitest/scratch-bound-cleanup.d.ts.map +0 -1
  305. package/dist/configs/vitest/scratch-bound-cleanup.js +0 -155
  306. package/dist/configs/vitest/scratch-bound-cleanup.js.map +0 -1
  307. package/dist/configs/vitest/scratch-bound-root-cleanup.d.ts +0 -17
  308. package/dist/configs/vitest/scratch-bound-root-cleanup.d.ts.map +0 -1
  309. package/dist/configs/vitest/scratch-bound-root-cleanup.js +0 -149
  310. package/dist/configs/vitest/scratch-bound-root-cleanup.js.map +0 -1
  311. package/dist/configs/vitest/scratch-global-setup.d.ts +0 -258
  312. package/dist/configs/vitest/scratch-global-setup.d.ts.map +0 -1
  313. package/dist/configs/vitest/scratch-global-setup.js +0 -505
  314. package/dist/configs/vitest/scratch-global-setup.js.map +0 -1
  315. package/dist/configs/vitest/scratch-leak-setup.d.ts +0 -2
  316. package/dist/configs/vitest/scratch-leak-setup.d.ts.map +0 -1
  317. package/dist/configs/vitest/scratch-leak-setup.js +0 -108
  318. package/dist/configs/vitest/scratch-leak-setup.js.map +0 -1
  319. package/dist/configs/vitest/scratch-namespace-authority.d.ts +0 -80
  320. package/dist/configs/vitest/scratch-namespace-authority.d.ts.map +0 -1
  321. package/dist/configs/vitest/scratch-namespace-authority.js +0 -291
  322. package/dist/configs/vitest/scratch-namespace-authority.js.map +0 -1
  323. package/dist/configs/vitest/scratch-owner.d.ts +0 -131
  324. package/dist/configs/vitest/scratch-owner.d.ts.map +0 -1
  325. package/dist/configs/vitest/scratch-owner.js +0 -297
  326. package/dist/configs/vitest/scratch-owner.js.map +0 -1
  327. package/dist/configs/vitest/scratch-route-profile.d.ts +0 -46
  328. package/dist/configs/vitest/scratch-route-profile.d.ts.map +0 -1
  329. package/dist/configs/vitest/scratch-route-profile.js +0 -233
  330. package/dist/configs/vitest/scratch-route-profile.js.map +0 -1
  331. package/dist/configs/vitest/scratch-run-root-compatibility.d.ts +0 -33
  332. package/dist/configs/vitest/scratch-run-root-compatibility.d.ts.map +0 -1
  333. package/dist/configs/vitest/scratch-run-root-compatibility.js +0 -137
  334. package/dist/configs/vitest/scratch-run-root-compatibility.js.map +0 -1
  335. package/dist/configs/vitest/scratch-run-root-intent.d.ts +0 -66
  336. package/dist/configs/vitest/scratch-run-root-intent.d.ts.map +0 -1
  337. package/dist/configs/vitest/scratch-run-root-intent.js +0 -183
  338. package/dist/configs/vitest/scratch-run-root-intent.js.map +0 -1
  339. package/dist/configs/vitest/scratch-setup.d.ts +0 -46
  340. package/dist/configs/vitest/scratch-setup.d.ts.map +0 -1
  341. package/dist/configs/vitest/scratch-setup.js +0 -226
  342. package/dist/configs/vitest/scratch-setup.js.map +0 -1
  343. package/dist/configs/vitest/scratch-supervision-intent.d.ts +0 -8
  344. package/dist/configs/vitest/scratch-supervision-intent.d.ts.map +0 -1
  345. package/dist/configs/vitest/scratch-supervision-intent.js +0 -125
  346. package/dist/configs/vitest/scratch-supervision-intent.js.map +0 -1
  347. package/dist/configs/vitest/scratch-supervision-protocol.d.ts +0 -12
  348. package/dist/configs/vitest/scratch-supervision-protocol.d.ts.map +0 -1
  349. package/dist/configs/vitest/scratch-supervision-protocol.js +0 -230
  350. package/dist/configs/vitest/scratch-supervision-protocol.js.map +0 -1
  351. package/dist/configs/vitest/scratch-supervision.d.ts +0 -69
  352. package/dist/configs/vitest/scratch-supervision.d.ts.map +0 -1
  353. package/dist/configs/vitest/scratch-supervision.js +0 -244
  354. package/dist/configs/vitest/scratch-supervision.js.map +0 -1
  355. package/dist/configs/vitest/scratch-sweep.d.ts +0 -66
  356. package/dist/configs/vitest/scratch-sweep.d.ts.map +0 -1
  357. package/dist/configs/vitest/scratch-sweep.js +0 -82
  358. package/dist/configs/vitest/scratch-sweep.js.map +0 -1
  359. package/dist/configs/vitest/scratch-tmpdir-trust.d.ts +0 -48
  360. package/dist/configs/vitest/scratch-tmpdir-trust.d.ts.map +0 -1
  361. package/dist/configs/vitest/scratch-tmpdir-trust.js +0 -194
  362. package/dist/configs/vitest/scratch-tmpdir-trust.js.map +0 -1
  363. package/dist/configs/vitest/scratch.d.ts +0 -19
  364. package/dist/configs/vitest/scratch.d.ts.map +0 -1
  365. package/dist/configs/vitest/scratch.js +0 -34
  366. package/dist/configs/vitest/scratch.js.map +0 -1
  367. package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts +0 -86
  368. package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts.map +0 -1
  369. package/dist/configs/vitest/synthesis-scratch-reclaim.js +0 -226
  370. package/dist/configs/vitest/synthesis-scratch-reclaim.js.map +0 -1
@@ -1,137 +0,0 @@
1
- /** Compatibility allocation/adoption atop the owned run-root lifecycle. */
2
- import { randomBytes } from "node:crypto";
3
- import * as fs from "node:fs";
4
- import * as path from "node:path";
5
- import { createScratchNamespaceAuthority, parseRunRootName, removeAuthorizedScratchRoot, runRootName, } from "./scratch-authority.js";
6
- import { registeredScratchPrefixes, scratchSuiteLabel, } from "./scratch-route-profile.js";
7
- import { createScratchOwnerRecord, readScratchOwnerRecord, scratchPathIdentity, writeScratchOwnerRecord, } from "./scratch-owner.js";
8
- import { sweepScratchNamespace } from "./scratch-sweep.js";
9
- /**
10
- * Create the immutable owner marker for a newly materialized root.
11
- * @param authority - Pinned namespace authority
12
- * @param root - Newly materialized direct root
13
- * @param now - Creation epoch milliseconds
14
- * @param configuration - Validated owner attribution
15
- * @returns Immutable owner marker
16
- */
17
- function createOwnerForNewRoot(authority, root, now, configuration) {
18
- return createScratchOwnerRecord({
19
- authority,
20
- root,
21
- suiteLabel: configuration.suiteLabel,
22
- registeredPrefixes: configuration.registeredPrefixes,
23
- now: new Date(now),
24
- });
25
- }
26
- /**
27
- * Create a legacy-compatible owned root with transactional marker rollback.
28
- * @param options - Clock and marker-writer seams
29
- * @param options.now - Epoch milliseconds recorded in the basename
30
- * @param options.writeOwnerRecord - Injectable transactional marker writer
31
- * @returns Absolute run-root path
32
- */
33
- export const createRunRoot = ({ now = Date.now(), writeOwnerRecord = writeScratchOwnerRecord, } = {}) => {
34
- if (!Number.isSafeInteger(now) || now < 0) {
35
- throw new Error("Scratch run-root timestamp must be a non-negative integer");
36
- }
37
- const configuration = {
38
- suiteLabel: scratchSuiteLabel(),
39
- registeredPrefixes: registeredScratchPrefixes(),
40
- };
41
- const authority = createScratchNamespaceAuthority();
42
- const root = path.join(authority.namespace.canonicalPath, runRootName(process.pid, now, randomBytes(4).toString("hex")));
43
- const expectedIdentity = (() => {
44
- fs.mkdirSync(root, { mode: 0o700 });
45
- return scratchPathIdentity(root);
46
- })();
47
- try {
48
- const owner = createOwnerForNewRoot(authority, root, now, configuration);
49
- writeOwnerRecord(root, owner);
50
- }
51
- catch (error) {
52
- try {
53
- removeAuthorizedScratchRoot({
54
- authority,
55
- basename: path.basename(root),
56
- expectedIdentity,
57
- });
58
- }
59
- catch (cleanupError) {
60
- throw new AggregateError([error, cleanupError], "Scratch root allocation failed and rollback could not reclaim it");
61
- }
62
- throw error;
63
- }
64
- return root;
65
- };
66
- /**
67
- * Reclaim residue, then allocate a durable owned-root handle.
68
- * @returns Owned current-process root
69
- */
70
- export function reclaimAndCreateOwnedRunRoot() {
71
- const authority = createScratchNamespaceAuthority();
72
- const root = (() => {
73
- sweepScratchNamespace();
74
- return createRunRoot();
75
- })();
76
- return {
77
- path: root,
78
- basename: path.basename(root),
79
- authority,
80
- owner: readScratchOwnerRecord(root),
81
- };
82
- }
83
- /**
84
- * Read an existing marker or atomically upgrade a legacy current root.
85
- * @param authority - Pinned namespace authority
86
- * @param root - Existing current-process root
87
- * @param startedAt - Timestamp encoded in the recognized basename
88
- * @returns Existing or newly written marker
89
- */
90
- function readOrCreateAdoptedOwner(authority, root, startedAt) {
91
- try {
92
- return readScratchOwnerRecord(root);
93
- }
94
- catch (error) {
95
- if (error.code !== "ENOENT")
96
- throw error;
97
- const owner = createScratchOwnerRecord({
98
- authority,
99
- root,
100
- suiteLabel: scratchSuiteLabel(),
101
- registeredPrefixes: registeredScratchPrefixes(),
102
- now: new Date(startedAt),
103
- });
104
- writeScratchOwnerRecord(root, owner);
105
- return owner;
106
- }
107
- }
108
- /**
109
- * Upgrade a source/dist-compatible path memo created by an older setup copy.
110
- * @param root - Existing memoized run-root path
111
- * @returns Durable handle for the existing root
112
- */
113
- export function adoptOwnedScratchRunRoot(root) {
114
- const authority = createScratchNamespaceAuthority();
115
- const canonicalRoot = fs.realpathSync(root);
116
- if (path.dirname(canonicalRoot) !== authority.namespace.canonicalPath ||
117
- path.basename(root) !== path.basename(canonicalRoot)) {
118
- throw new Error("Memoized scratch root is outside canonical authority");
119
- }
120
- const parsed = parseRunRootName(path.basename(root));
121
- if (parsed?.pid !== process.pid) {
122
- throw new Error("Memoized scratch root is not owned by this process");
123
- }
124
- const owner = readOrCreateAdoptedOwner(authority, root, parsed.startedAt);
125
- return {
126
- path: root,
127
- basename: path.basename(root),
128
- authority,
129
- owner,
130
- };
131
- }
132
- /**
133
- * Reclaim residue, then return one current-process root path.
134
- * @returns Newly allocated root path
135
- */
136
- export const reclaimAndCreateRunRoot = () => reclaimAndCreateOwnedRunRoot().path;
137
- //# sourceMappingURL=scratch-run-root-compatibility.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scratch-run-root-compatibility.js","sourceRoot":"","sources":["../../../src/configs/vitest/scratch-run-root-compatibility.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,+BAA+B,EAC/B,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,GAEZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAe3D;;;;;;;GAOG;AACH,SAAS,qBAAqB,CAC5B,SAAoC,E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AS,CAAC;SACzB,CAAC,CAAC;QACH,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACrC,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACnD,MAAM,SAAS,GAAG,+BAA+B,EAAE,CAAC;IACpD,MAAM,aAAa,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC5C,IACE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,SAAS,CAAC,SAAS,CAAC,aAAa;QACjE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EACpD,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,IAAI,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IACD,MAAM,KAAK,GAAG,wBAAwB,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1E,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC7B,SAAS;QACT,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAW,EAAE,CAClD,4BAA4B,EAAE,CAAC,IAAI,CAAC"}
@@ -1,66 +0,0 @@
1
- import { type ScratchNamespaceAuthority } from "./scratch-authority.js";
2
- import { writeScratchOwnerRecord, type ScratchOwnerRecordV1, type ScratchPathIdentity } from "./scratch-owner.js";
3
- /** Durable handle for one run root owned by this process. */
4
- export interface OwnedScratchRunRoot {
5
- readonly path: string;
6
- readonly basename: string;
7
- readonly authority: ScratchNamespaceAuthority;
8
- readonly owner: ScratchOwnerRecordV1;
9
- }
10
- /** Precommitted immutable intent for one exact direct run root. */
11
- export interface ScratchRunRootIntentV1 {
12
- readonly schema: 1;
13
- readonly rootPath: string;
14
- readonly basename: string;
15
- readonly authority: ScratchNamespaceAuthority;
16
- readonly pid: number;
17
- readonly processBirthFingerprint: string;
18
- readonly createdAt: string;
19
- readonly token: string;
20
- readonly suiteLabel: string;
21
- readonly registeredPrefixes: readonly string[];
22
- }
23
- /** Deterministic seams for precommitting process-birth authority. */
24
- interface PrepareRunRootOptions {
25
- readonly platform?: NodeJS.Platform;
26
- readonly processBirthFingerprint?: (pid: number) => string | undefined;
27
- readonly suiteLabel?: string;
28
- readonly registeredPrefixes?: readonly string[];
29
- }
30
- /** Deterministic seams for transactional root materialization. */
31
- interface MaterializeRunRootOptions {
32
- readonly writeOwnerRecord?: typeof writeScratchOwnerRecord;
33
- }
34
- /**
35
- * Prepare an exact root identity without creating that root.
36
- * @param options - Deterministic authority seams
37
- * @returns Immutable precommitted root intent
38
- */
39
- export declare function prepareOwnedScratchRunRoot(options?: PrepareRunRootOptions): ScratchRunRootIntentV1;
40
- /**
41
- * Materialize one armed root and persist its immutable marker.
42
- * @param intent - Precommitted root intent
43
- * @param options - Transactional marker-writer seams
44
- * @returns Durable owned-root handle
45
- */
46
- export declare function materializeOwnedScratchRunRoot(intent: ScratchRunRootIntentV1, options?: MaterializeRunRootOptions): OwnedScratchRunRoot;
47
- /**
48
- * Validate an opened marker against the complete armed intent.
49
- * @param intent - Precommitted root facts
50
- * @param owner - Persisted owner marker
51
- * @param root - Currently opened root identity
52
- */
53
- declare function assertIntentOwner(intent: ScratchRunRootIntentV1, owner: ScratchOwnerRecordV1, root: ScratchPathIdentity): void;
54
- /**
55
- * Open one exact materialized root without following a replacement symlink.
56
- * @param intent - Armed root intent
57
- * @returns Owned handle, or undefined when not yet materialized
58
- */
59
- export declare function openOwnedScratchRunRoot(intent: ScratchRunRootIntentV1): OwnedScratchRunRoot | undefined;
60
- /**
61
- * Remove a run root using only the authority captured when it was made.
62
- * @param owned - Durable handle or precommitted intent
63
- */
64
- export declare function removeOwnedScratchRunRoot(owned: OwnedScratchRunRoot | ScratchRunRootIntentV1): void;
65
- export { assertIntentOwner };
66
- //# sourceMappingURL=scratch-run-root-intent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scratch-run-root-intent.d.ts","sourceRoot":"","sources":["../../../src/configs/vitest/scratch-run-root-intent.ts"],"names":[],"mappings":"AAKA,OAAO,EAML,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAKL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,6DAA6D;AAC7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAC;CACtC;AAED,mEAAmE;AACnE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACnB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AAED,qEAAqE;AACrE,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IACpC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjD;AAED,kEAAkE;AAClE,UAAU,yBAAyB;IACjC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;CAC5D;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,qBAA0B,GAClC,sBAAsB,CA+BxB;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE,yBAA8B,GACtC,mBAAmB,CAiDrB;AAED;;;;;GAKG;AACH,iBAAS,iBAAiB,CACxB,MAAM,EAAE,sBAAsB,EAC9B,KAAK,EAAE,oBAAoB,EAC3B,IAAI,EAAE,mBAAmB,GACxB,IAAI,CAcN;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,sBAAsB,GAC7B,mBAAmB,GAAG,SAAS,CAiBjC;AAiCD;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,mBAAmB,GAAG,sBAAsB,GAClD,IAAI,CAuBN;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,183 +0,0 @@
1
- /** Pre-root intent, materialization, and reopening for one owned scratch root. */
2
- import { randomBytes } from "node:crypto";
3
- import * as fs from "node:fs";
4
- import * as path from "node:path";
5
- import { SCRATCH_QUARANTINE_PREFIX, createScratchNamespaceAuthority, readBoundedScratchNamespace, removeAuthorizedScratchRoot, runRootName, } from "./scratch-authority.js";
6
- import { registeredScratchPrefixes, scratchSuiteLabel, } from "./scratch-route-profile.js";
7
- import { createScratchOwnerRecord, processBirthFingerprint, readScratchOwnerRecord, scratchPathIdentity, writeScratchOwnerRecord, } from "./scratch-owner.js";
8
- /**
9
- * Prepare an exact root identity without creating that root.
10
- * @param options - Deterministic authority seams
11
- * @returns Immutable precommitted root intent
12
- */
13
- export function prepareOwnedScratchRunRoot(options = {}) {
14
- const suiteLabel = options.suiteLabel ?? scratchSuiteLabel();
15
- const prefixes = options.registeredPrefixes ?? registeredScratchPrefixes();
16
- const authority = createScratchNamespaceAuthority();
17
- const now = Date.now();
18
- const basename = runRootName(process.pid, now, randomBytes(4).toString("hex"));
19
- const platform = options.platform ?? process.platform;
20
- const birth = (options.processBirthFingerprint ?? processBirthFingerprint)(process.pid);
21
- if (birth === undefined && (platform === "darwin" || platform === "linux")) {
22
- throw new Error(`Scratch process-birth authority is unavailable on ${platform}`);
23
- }
24
- return Object.freeze({
25
- schema: 1,
26
- rootPath: path.join(authority.namespace.canonicalPath, basename),
27
- basename,
28
- authority,
29
- pid: process.pid,
30
- processBirthFingerprint: birth ?? `unsupported:${String(process.pid)}`,
31
- createdAt: new Date(now).toISOString(),
32
- token: randomBytes(16).toString("hex"),
33
- suiteLabel,
34
- registeredPrefixes: prefixes,
35
- });
36
- }
37
- /**
38
- * Materialize one armed root and persist its immutable marker.
39
- * @param intent - Precommitted root intent
40
- * @param options - Transactional marker-writer seams
41
- * @returns Durable owned-root handle
42
- */
43
- export function materializeOwnedScratchRunRoot(intent, options = {}) {
44
- if (intent.schema !== 1)
45
- throw new Error("Invalid scratch root intent schema");
46
- if (path.join(intent.authority.namespace.canonicalPath, intent.basename) !==
47
- intent.rootPath) {
48
- throw new Error("Scratch root intent path does not match its authority");
49
- }
50
- const expectedIdentity = (() => {
51
- fs.mkdirSync(intent.rootPath, { mode: 0o700 });
52
- return scratchPathIdentity(intent.rootPath);
53
- })();
54
- try {
55
- const owner = createScratchOwnerRecord({
56
- authority: intent.authority,
57
- root: intent.rootPath,
58
- pid: intent.pid,
59
- processBirthFingerprint: intent.processBirthFingerprint,
60
- suiteLabel: intent.suiteLabel,
61
- registeredPrefixes: intent.registeredPrefixes,
62
- token: intent.token,
63
- now: new Date(intent.createdAt),
64
- });
65
- (options.writeOwnerRecord ?? writeScratchOwnerRecord)(intent.rootPath, owner);
66
- return {
67
- path: intent.rootPath,
68
- basename: intent.basename,
69
- authority: intent.authority,
70
- owner,
71
- };
72
- }
73
- catch (error) {
74
- try {
75
- removeAuthorizedScratchRoot({
76
- authority: intent.authority,
77
- basename: intent.basename,
78
- expectedIdentity,
79
- });
80
- }
81
- catch (cleanupError) {
82
- throw new AggregateError([error, cleanupError], "Scratch root materialization failed and rollback could not reclaim it");
83
- }
84
- throw error;
85
- }
86
- }
87
- /**
88
- * Validate an opened marker against the complete armed intent.
89
- * @param intent - Precommitted root facts
90
- * @param owner - Persisted owner marker
91
- * @param root - Currently opened root identity
92
- */
93
- function assertIntentOwner(intent, owner, root) {
94
- if (owner.token !== intent.token ||
95
- owner.pid !== intent.pid ||
96
- owner.processBirthFingerprint !== intent.processBirthFingerprint ||
97
- owner.namespace.dev !== intent.authority.namespace.dev ||
98
- owner.namespace.ino !== intent.authority.namespace.ino ||
99
- owner.root.dev !== root.dev ||
100
- owner.root.ino !== root.ino) {
101
- throw new Error("Scratch owner token or armed identity does not match intent");
102
- }
103
- }
104
- /**
105
- * Open one exact materialized root without following a replacement symlink.
106
- * @param intent - Armed root intent
107
- * @returns Owned handle, or undefined when not yet materialized
108
- */
109
- export function openOwnedScratchRunRoot(intent) {
110
- // eslint-disable-next-line functional/no-let -- path-level ENOENT must be separated from marker-level ENOENT
111
- let root;
112
- try {
113
- root = scratchPathIdentity(intent.rootPath);
114
- }
115
- catch (error) {
116
- if (error.code === "ENOENT")
117
- return undefined;
118
- throw error;
119
- }
120
- const owner = readScratchOwnerRecord(intent.rootPath);
121
- assertIntentOwner(intent, owner, root);
122
- return {
123
- path: intent.rootPath,
124
- basename: intent.basename,
125
- authority: intent.authority,
126
- owner,
127
- };
128
- }
129
- /**
130
- * Find an interrupted quarantine bound to the intent token and root inode.
131
- * @param intent - Precommitted root facts
132
- * @returns Matching quarantine identity, or undefined
133
- */
134
- function interruptedQuarantine(intent) {
135
- for (const basename of readBoundedScratchNamespace(intent.authority.namespace.canonicalPath)) {
136
- if (!basename.startsWith(SCRATCH_QUARANTINE_PREFIX))
137
- continue;
138
- const candidate = path.join(intent.authority.namespace.canonicalPath, basename);
139
- try {
140
- const owner = readScratchOwnerRecord(candidate);
141
- if (owner.token !== intent.token)
142
- continue;
143
- const identity = scratchPathIdentity(candidate);
144
- assertIntentOwner(intent, owner, identity);
145
- return { basename, identity };
146
- }
147
- catch {
148
- // Foreign and malformed quarantines never authorize this intent.
149
- }
150
- }
151
- return undefined;
152
- }
153
- /**
154
- * Remove a run root using only the authority captured when it was made.
155
- * @param owned - Durable handle or precommitted intent
156
- */
157
- export function removeOwnedScratchRunRoot(owned) {
158
- if ("rootPath" in owned) {
159
- const opened = openOwnedScratchRunRoot(owned);
160
- if (opened !== undefined) {
161
- removeOwnedScratchRunRoot(opened);
162
- return;
163
- }
164
- const quarantine = interruptedQuarantine(owned);
165
- if (quarantine === undefined)
166
- return;
167
- removeAuthorizedScratchRoot({
168
- authority: owned.authority,
169
- basename: quarantine.basename,
170
- expectedToken: owned.token,
171
- expectedIdentity: quarantine.identity,
172
- });
173
- return;
174
- }
175
- removeAuthorizedScratchRoot({
176
- authority: owned.authority,
177
- basename: owned.basename,
178
- expectedToken: owned.owner.token,
179
- expectedIdentity: owned.owner.root,
180
- });
181
- }
182
- export { assertIntentOwner };
183
- //# sourceMappingURL=scratch-run-root-intent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scratch-run-root-intent.js","sourceRoot":"","sources":["../../../src/configs/vitest/scratch-run-root-intent.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAE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0,0 @@
1
- import { type ScratchSupervisionLeaseV1 } from "./scratch-supervision.js";
2
- import { type ScratchRunRootIntentV1 } from "./scratch-run-root-intent.js";
3
- /** A usable suite lease, plus the suite root this process must reclaim itself. */
4
- export interface AcquiredSuiteLease {
5
- readonly lease: ScratchSupervisionLeaseV1;
6
- /** Set only when this process minted the lease and therefore owns the root. */
7
- readonly ownedSuiteRoot?: ScratchRunRootIntentV1;
8
- }
9
- /**
10
- * Obtain the suite lease, minting one when the environment carries none.
11
- *
12
- * An inherited lease is the supervised case and is preferred whenever it is
13
- * present. Its absence means someone ran `vitest` directly, which is an
14
- * ordinary thing to do — from an editor, a watch mode, a CI step that predates
15
- * the wrapper — and it used to throw out of a `setupFiles` module. A throw
16
- * there fails collection, so the suite reports zero tests and a gate goes red
17
- * having evaluated nothing. That is a worse outcome than an unsupervised run:
18
- * it looks like a verdict and is not one.
19
- *
20
- * So the unsupervised caller gets the same lifecycle, self-supervised. The
21
- * minted lease is a real lease over a real owned root, which keeps the rest of
22
- * this file — and the leak guard in `scratch-leak-setup`, which requires a
23
- * `worker-` scope — on exactly one code path. The single capability the wrapper
24
- * adds is the detached reaper covering `SIGKILL`; without it, reclaim-on-start
25
- * recovers the residue at the next run, which is the documented fallback.
26
- *
27
- * Exported for its own unit case. `installScratchRoot()` cannot stand in for
28
- * it: that function registers `exit` and signal handlers on the process it is
29
- * called from, so a case that drove the unsupervised branch through it would
30
- * leave a handler behind pointing at a root the case had already cleaned up,
31
- * and every later suite in the same worker would inherit the noise.
32
- * @returns The lease to run under, and the suite root to reclaim if self-owned.
33
- */
34
- export declare const acquireSuiteLease: () => AcquiredSuiteLease;
35
- /**
36
- * Points this process's temp directory at a run root it owns, creating the root
37
- * on first call and reusing it afterwards.
38
- *
39
- * All three of `TMPDIR`, `TMP` and `TEMP` are set: Node reads `TMPDIR` on POSIX
40
- * and `TEMP`/`TMP` on Windows, and non-Node tools spawned by fixtures read
41
- * whichever their platform prefers. Setting one would leave the others pointing
42
- * at the shared directory for exactly the callers hardest to see.
43
- * @returns Absolute path of this process's run root.
44
- */
45
- export declare const installScratchRoot: () => string;
46
- //# sourceMappingURL=scratch-setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scratch-setup.d.ts","sourceRoot":"","sources":["../../../src/configs/vitest/scratch-setup.ts"],"names":[],"mappings":"AAsCA,OAAO,EAOL,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAIL,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AA+FtC,kFAAkF;AAClF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,+EAA+E;IAC/E,QAAQ,CAAC,cAAc,CAAC,EAAE,sBAAsB,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,QAAO,kBAgBpC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,QAAO,MA+DrC,CAAC"}