@ttsc/unplugin 0.31.5 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/lib/core/bridge/TtscProjectRecord.d.cts +8 -0
  2. package/lib/core/bridge/TtscProjectRecord.d.mts +8 -0
  3. package/lib/core/bridge/TtscProjectRecord.d.ts +8 -0
  4. package/lib/core/bridge/readProjectRecordFile.js +5 -1
  5. package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
  6. package/lib/core/bridge/readProjectRecordFile.mjs +5 -1
  7. package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
  8. package/lib/core/observer/WatchScope.d.cts +3 -3
  9. package/lib/core/observer/WatchScope.d.mts +3 -3
  10. package/lib/core/observer/WatchScope.d.ts +3 -3
  11. package/lib/core/observer/createInputObserver.d.cts +7 -8
  12. package/lib/core/observer/createInputObserver.d.mts +7 -8
  13. package/lib/core/observer/createInputObserver.d.ts +7 -8
  14. package/lib/core/observer/createInputObserver.js +7 -8
  15. package/lib/core/observer/createInputObserver.js.map +1 -1
  16. package/lib/core/observer/createInputObserver.mjs +7 -8
  17. package/lib/core/observer/createInputObserver.mjs.map +1 -1
  18. package/lib/core/options/ResolvedTtscUnpluginOptions.d.cts +2 -0
  19. package/lib/core/options/ResolvedTtscUnpluginOptions.d.mts +2 -0
  20. package/lib/core/options/ResolvedTtscUnpluginOptions.d.ts +2 -0
  21. package/lib/core/options/TtscUnpluginOptions.d.cts +12 -2
  22. package/lib/core/options/TtscUnpluginOptions.d.mts +12 -2
  23. package/lib/core/options/TtscUnpluginOptions.d.ts +12 -2
  24. package/lib/core/options/resolveOptions.d.cts +4 -3
  25. package/lib/core/options/resolveOptions.d.mts +4 -3
  26. package/lib/core/options/resolveOptions.d.ts +4 -3
  27. package/lib/core/options/resolveOptions.js +5 -3
  28. package/lib/core/options/resolveOptions.js.map +1 -1
  29. package/lib/core/options/resolveOptions.mjs +5 -3
  30. package/lib/core/options/resolveOptions.mjs.map +1 -1
  31. package/lib/core/transform/TtscPrecompilation.d.cts +52 -0
  32. package/lib/core/transform/TtscPrecompilation.d.mts +52 -0
  33. package/lib/core/transform/TtscPrecompilation.d.ts +52 -0
  34. package/lib/core/transform/TtscPrecompilation.js +101 -0
  35. package/lib/core/transform/TtscPrecompilation.js.map +1 -0
  36. package/lib/core/transform/TtscPrecompilation.mjs +101 -0
  37. package/lib/core/transform/TtscPrecompilation.mjs.map +1 -0
  38. package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +2 -0
  39. package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +2 -0
  40. package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +2 -0
  41. package/lib/core/transform/cache/selectCachedGenerationAction.js +1 -1
  42. package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
  43. package/lib/core/transform/cache/selectCachedGenerationAction.mjs +1 -1
  44. package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
  45. package/lib/core/transform/cache/withdrawTtscTransformGenerations.js +2 -0
  46. package/lib/core/transform/cache/withdrawTtscTransformGenerations.js.map +1 -1
  47. package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs +2 -0
  48. package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs.map +1 -1
  49. package/lib/core/transform/envelope/generationCaseSensitivity.d.cts +32 -0
  50. package/lib/core/transform/envelope/generationCaseSensitivity.d.mts +32 -0
  51. package/lib/core/transform/envelope/generationCaseSensitivity.d.ts +32 -0
  52. package/lib/core/transform/envelope/generationCaseSensitivity.js +39 -0
  53. package/lib/core/transform/envelope/generationCaseSensitivity.js.map +1 -0
  54. package/lib/core/transform/envelope/generationCaseSensitivity.mjs +37 -0
  55. package/lib/core/transform/envelope/generationCaseSensitivity.mjs.map +1 -0
  56. package/lib/core/transform/envelope/selectExternalInputPaths.js +2 -1
  57. package/lib/core/transform/envelope/selectExternalInputPaths.js.map +1 -1
  58. package/lib/core/transform/envelope/selectExternalInputPaths.mjs +2 -1
  59. package/lib/core/transform/envelope/selectExternalInputPaths.mjs.map +1 -1
  60. package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js +2 -1
  61. package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js.map +1 -1
  62. package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs +2 -1
  63. package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs.map +1 -1
  64. package/lib/core/transform/filesystem/createHostPathIdentityContext.d.cts +9 -1
  65. package/lib/core/transform/filesystem/createHostPathIdentityContext.d.mts +9 -1
  66. package/lib/core/transform/filesystem/createHostPathIdentityContext.d.ts +9 -1
  67. package/lib/core/transform/filesystem/createHostPathIdentityContext.js +10 -2
  68. package/lib/core/transform/filesystem/createHostPathIdentityContext.js.map +1 -1
  69. package/lib/core/transform/filesystem/createHostPathIdentityContext.mjs +10 -2
  70. package/lib/core/transform/filesystem/createHostPathIdentityContext.mjs.map +1 -1
  71. package/lib/core/transform/generation/captureTransformGeneration.d.cts +2 -0
  72. package/lib/core/transform/generation/captureTransformGeneration.d.mts +2 -0
  73. package/lib/core/transform/generation/captureTransformGeneration.d.ts +2 -0
  74. package/lib/core/transform/generation/captureTransformGeneration.js +17 -4
  75. package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
  76. package/lib/core/transform/generation/captureTransformGeneration.mjs +17 -4
  77. package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
  78. package/lib/core/transform/generation/selectPersistentHostInputs.js +2 -1
  79. package/lib/core/transform/generation/selectPersistentHostInputs.js.map +1 -1
  80. package/lib/core/transform/generation/selectPersistentHostInputs.mjs +2 -1
  81. package/lib/core/transform/generation/selectPersistentHostInputs.mjs.map +1 -1
  82. package/lib/core/transform/generation/transformProject.d.cts +2 -0
  83. package/lib/core/transform/generation/transformProject.d.mts +2 -0
  84. package/lib/core/transform/generation/transformProject.d.ts +2 -0
  85. package/lib/core/transform/generation/transformProject.js.map +1 -1
  86. package/lib/core/transform/generation/transformProject.mjs.map +1 -1
  87. package/lib/core/transform/inputs/nativeInputPredicateState.js.map +1 -1
  88. package/lib/core/transform/inputs/nativeInputPredicateState.mjs.map +1 -1
  89. package/lib/core/transform/tracker/createHostInputMutationTracker.d.cts +7 -1
  90. package/lib/core/transform/tracker/createHostInputMutationTracker.d.mts +7 -1
  91. package/lib/core/transform/tracker/createHostInputMutationTracker.d.ts +7 -1
  92. package/lib/core/transform/tracker/createHostInputMutationTracker.js +8 -2
  93. package/lib/core/transform/tracker/createHostInputMutationTracker.js.map +1 -1
  94. package/lib/core/transform/tracker/createHostInputMutationTracker.mjs +8 -2
  95. package/lib/core/transform/tracker/createHostInputMutationTracker.mjs.map +1 -1
  96. package/lib/core/transform/tracker/createProjectMutationTracker.d.cts +6 -4
  97. package/lib/core/transform/tracker/createProjectMutationTracker.d.mts +6 -4
  98. package/lib/core/transform/tracker/createProjectMutationTracker.d.ts +6 -4
  99. package/lib/core/transform/tracker/createProjectMutationTracker.js +29 -6
  100. package/lib/core/transform/tracker/createProjectMutationTracker.js.map +1 -1
  101. package/lib/core/transform/tracker/createProjectMutationTracker.mjs +29 -6
  102. package/lib/core/transform/tracker/createProjectMutationTracker.mjs.map +1 -1
  103. package/lib/core/transform/transformTtsc.d.cts +8 -24
  104. package/lib/core/transform/transformTtsc.d.mts +8 -24
  105. package/lib/core/transform/transformTtsc.d.ts +8 -24
  106. package/lib/core/transform/transformTtsc.js +56 -32
  107. package/lib/core/transform/transformTtsc.js.map +1 -1
  108. package/lib/core/transform/transformTtsc.mjs +56 -32
  109. package/lib/core/transform/transformTtsc.mjs.map +1 -1
  110. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.cts +1 -1
  111. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.mts +1 -1
  112. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.ts +1 -1
  113. package/lib/core/transform/validation/captureUniversalHostInputValidation.js +12 -4
  114. package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
  115. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +12 -4
  116. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
  117. package/lib/core/transform/validation/matchesCachedSource.d.cts +9 -2
  118. package/lib/core/transform/validation/matchesCachedSource.d.mts +9 -2
  119. package/lib/core/transform/validation/matchesCachedSource.d.ts +9 -2
  120. package/lib/core/transform/validation/matchesCachedSource.js +11 -3
  121. package/lib/core/transform/validation/matchesCachedSource.js.map +1 -1
  122. package/lib/core/transform/validation/matchesCachedSource.mjs +11 -3
  123. package/lib/core/transform/validation/matchesCachedSource.mjs.map +1 -1
  124. package/lib/core/transform/watch/TtscTransformHooks.d.cts +9 -0
  125. package/lib/core/transform/watch/TtscTransformHooks.d.mts +9 -0
  126. package/lib/core/transform/watch/TtscTransformHooks.d.ts +9 -0
  127. package/lib/core/transform/watch/TtscWatchInputBaseline.d.cts +2 -1
  128. package/lib/core/transform/watch/TtscWatchInputBaseline.d.mts +2 -1
  129. package/lib/core/transform/watch/TtscWatchInputBaseline.d.ts +2 -1
  130. package/lib/core/transform/watch/isWatchInputKeyBaseline.js.map +1 -1
  131. package/lib/core/transform/watch/isWatchInputKeyBaseline.mjs.map +1 -1
  132. package/lib/core/transform/watch/notifyProjectRecord.d.cts +3 -4
  133. package/lib/core/transform/watch/notifyProjectRecord.d.mts +3 -4
  134. package/lib/core/transform/watch/notifyProjectRecord.d.ts +3 -4
  135. package/lib/core/transform/watch/notifyProjectRecord.js +5 -4
  136. package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
  137. package/lib/core/transform/watch/notifyProjectRecord.mjs +5 -4
  138. package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
  139. package/lib/core/transform/watch/recordedDependencyWitnesses.d.cts +30 -0
  140. package/lib/core/transform/watch/recordedDependencyWitnesses.d.mts +30 -0
  141. package/lib/core/transform/watch/recordedDependencyWitnesses.d.ts +30 -0
  142. package/lib/core/transform/watch/recordedDependencyWitnesses.js +51 -0
  143. package/lib/core/transform/watch/recordedDependencyWitnesses.js.map +1 -0
  144. package/lib/core/transform/watch/recordedDependencyWitnesses.mjs +49 -0
  145. package/lib/core/transform/watch/recordedDependencyWitnesses.mjs.map +1 -0
  146. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.cts +1 -2
  147. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.mts +1 -2
  148. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.ts +1 -2
  149. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js +1 -2
  150. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js.map +1 -1
  151. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs +1 -2
  152. package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs.map +1 -1
  153. package/lib/core/tsconfig/TsconfigReadTransaction.d.cts +11 -8
  154. package/lib/core/tsconfig/TsconfigReadTransaction.d.mts +11 -8
  155. package/lib/core/tsconfig/TsconfigReadTransaction.d.ts +11 -8
  156. package/lib/core/tsconfig/TsconfigReadTransaction.js +11 -8
  157. package/lib/core/tsconfig/TsconfigReadTransaction.js.map +1 -1
  158. package/lib/core/tsconfig/TsconfigReadTransaction.mjs +11 -8
  159. package/lib/core/tsconfig/TsconfigReadTransaction.mjs.map +1 -1
  160. package/lib/core/tsconfig/findDeclaredCompilerOption.d.cts +3 -2
  161. package/lib/core/tsconfig/findDeclaredCompilerOption.d.mts +3 -2
  162. package/lib/core/tsconfig/findDeclaredCompilerOption.d.ts +3 -2
  163. package/lib/core/tsconfig/findDeclaredCompilerOption.js +3 -2
  164. package/lib/core/tsconfig/findDeclaredCompilerOption.js.map +1 -1
  165. package/lib/core/tsconfig/findDeclaredCompilerOption.mjs +3 -2
  166. package/lib/core/tsconfig/findDeclaredCompilerOption.mjs.map +1 -1
  167. package/lib/core/tsconfig/findDeclaredFileSpecs.d.cts +3 -2
  168. package/lib/core/tsconfig/findDeclaredFileSpecs.d.mts +3 -2
  169. package/lib/core/tsconfig/findDeclaredFileSpecs.d.ts +3 -2
  170. package/lib/core/tsconfig/findDeclaredFileSpecs.js +3 -2
  171. package/lib/core/tsconfig/findDeclaredFileSpecs.js.map +1 -1
  172. package/lib/core/tsconfig/findDeclaredFileSpecs.mjs +3 -2
  173. package/lib/core/tsconfig/findDeclaredFileSpecs.mjs.map +1 -1
  174. package/lib/core/tsconfig/findDeclaredPaths.d.cts +3 -3
  175. package/lib/core/tsconfig/findDeclaredPaths.d.mts +3 -3
  176. package/lib/core/tsconfig/findDeclaredPaths.d.ts +3 -3
  177. package/lib/core/tsconfig/findDeclaredPaths.js +2 -2
  178. package/lib/core/tsconfig/findDeclaredPaths.mjs +2 -2
  179. package/lib/core/tsconfig/findDeclaredValue.d.cts +2 -1
  180. package/lib/core/tsconfig/findDeclaredValue.d.mts +2 -1
  181. package/lib/core/tsconfig/findDeclaredValue.d.ts +2 -1
  182. package/lib/core/tsconfig/findDeclaredValue.js +2 -1
  183. package/lib/core/tsconfig/findDeclaredValue.js.map +1 -1
  184. package/lib/core/tsconfig/findDeclaredValue.mjs +2 -1
  185. package/lib/core/tsconfig/findDeclaredValue.mjs.map +1 -1
  186. package/lib/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.js +1 -1
  187. package/lib/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.mjs +1 -1
  188. package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.cts +2 -2
  189. package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.mts +2 -2
  190. package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.ts +2 -2
  191. package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.js +2 -2
  192. package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.mjs +2 -2
  193. package/lib/core/tsconfig/readProjectMembershipPolicy.d.cts +3 -3
  194. package/lib/core/tsconfig/readProjectMembershipPolicy.d.mts +3 -3
  195. package/lib/core/tsconfig/readProjectMembershipPolicy.d.ts +3 -3
  196. package/lib/core/tsconfig/readProjectMembershipPolicy.js +4 -4
  197. package/lib/core/tsconfig/readProjectMembershipPolicy.mjs +4 -4
  198. package/lib/core/unplugin.js +14 -0
  199. package/lib/core/unplugin.js.map +1 -1
  200. package/lib/core/unplugin.mjs +14 -0
  201. package/lib/core/unplugin.mjs.map +1 -1
  202. package/lib/core/vite/installViteDependencyScanPlugins.d.cts +46 -0
  203. package/lib/core/vite/installViteDependencyScanPlugins.d.mts +46 -0
  204. package/lib/core/vite/installViteDependencyScanPlugins.d.ts +46 -0
  205. package/lib/core/vite/installViteDependencyScanPlugins.js +186 -0
  206. package/lib/core/vite/installViteDependencyScanPlugins.js.map +1 -0
  207. package/lib/core/vite/installViteDependencyScanPlugins.mjs +184 -0
  208. package/lib/core/vite/installViteDependencyScanPlugins.mjs.map +1 -0
  209. package/package.json +5 -4
  210. package/src/core/bridge/TtscProjectRecord.ts +9 -0
  211. package/src/core/bridge/readProjectRecordFile.ts +5 -1
  212. package/src/core/observer/WatchScope.ts +3 -3
  213. package/src/core/observer/createInputObserver.ts +7 -8
  214. package/src/core/options/ResolvedTtscUnpluginOptions.ts +3 -0
  215. package/src/core/options/TtscUnpluginOptions.ts +13 -2
  216. package/src/core/options/resolveOptions.ts +6 -3
  217. package/src/core/transform/TtscPrecompilation.ts +103 -0
  218. package/src/core/transform/cache/selectCachedGenerationAction.ts +3 -0
  219. package/src/core/transform/cache/withdrawTtscTransformGenerations.ts +2 -0
  220. package/src/core/transform/envelope/generationCaseSensitivity.ts +46 -0
  221. package/src/core/transform/envelope/selectExternalInputPaths.ts +5 -1
  222. package/src/core/transform/envelope/selectNotifiableAbsentInputs.ts +5 -1
  223. package/src/core/transform/filesystem/createHostPathIdentityContext.ts +9 -1
  224. package/src/core/transform/generation/captureTransformGeneration.ts +22 -2
  225. package/src/core/transform/generation/selectPersistentHostInputs.ts +5 -1
  226. package/src/core/transform/generation/transformProject.ts +3 -0
  227. package/src/core/transform/inputs/nativeInputPredicateState.ts +1 -3
  228. package/src/core/transform/tracker/createHostInputMutationTracker.ts +10 -1
  229. package/src/core/transform/tracker/createProjectMutationTracker.ts +34 -6
  230. package/src/core/transform/transformTtsc.ts +86 -37
  231. package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -4
  232. package/src/core/transform/validation/matchesCachedSource.ts +9 -2
  233. package/src/core/transform/watch/TtscTransformHooks.ts +10 -0
  234. package/src/core/transform/watch/TtscWatchInputBaseline.ts +2 -1
  235. package/src/core/transform/watch/isWatchInputKeyBaseline.ts +4 -2
  236. package/src/core/transform/watch/notifyProjectRecord.ts +5 -4
  237. package/src/core/transform/watch/recordedDependencyWitnesses.ts +50 -0
  238. package/src/core/transform/watch/watchInputEvidenceMatchesBaseline.ts +1 -2
  239. package/src/core/tsconfig/TsconfigReadTransaction.ts +11 -8
  240. package/src/core/tsconfig/findDeclaredCompilerOption.ts +3 -2
  241. package/src/core/tsconfig/findDeclaredFileSpecs.ts +3 -2
  242. package/src/core/tsconfig/findDeclaredPaths.ts +3 -3
  243. package/src/core/tsconfig/findDeclaredValue.ts +2 -1
  244. package/src/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.ts +1 -1
  245. package/src/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.ts +2 -2
  246. package/src/core/tsconfig/readProjectMembershipPolicy.ts +4 -4
  247. package/src/core/unplugin.ts +32 -0
  248. package/src/core/vite/installViteDependencyScanPlugins.ts +219 -0
@@ -1 +1 @@
1
- {"version":3,"file":"createProjectMutationTracker.mjs","sources":["../../../../src/core/transform/tracker/createProjectMutationTracker.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEG;AACI,eAAe,4BAA4B,CAChD,WAAoD,EACpD,OAA4B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,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;QAC5C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC;QACzC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE;YAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YAClC,IAAI,MAAM,KAAK,IAAI;AAAE,gBAAA,OAAO,SAAS;YACrC,IAAI,GAAG,MAAM;QACf;IACF;AACA,IAAA,OAAO,IAAI;AACb;;;;"}
1
+ {"version":3,"file":"createProjectMutationTracker.mjs","sources":["../../../../src/core/transform/tracker/createProjectMutationTracker.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEG;AACI,eAAe,4BAA4B,CAChD,WAAoD,EACpD,OAA4B,EAC5B,UAAA,GAAgD,6BAA6B,EAC7E,SAAuC,oCAAoC,EAAA;AAE3E,IAAA,MAAM,KAAK,GACT,CAAC,UAAU,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,MAAM;UAC1C,IAAI,CAAC;AACP,UAAE,IAAI,CAAC,KAAK;AAChB,IAAA,MAAM,UAAU,GAAG,6BAA6B,CAAC,UAAU,CAAC;IAC5D,MAAM,IAAI,GAAG,mBAAmB,CAC9B,WAAW,CAAC,GAAG,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,EAC9C,UAAU,CAAC,QAAQ,CACpB;AACD,IAAA,MAAM,OAAO,GAA+B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;AAClB,QAAA,cAAc,EAAE,KAAK;QACrB,KAAK,EAAE,MAAK;AACV,YAAA,OAAO,CAAC,MAAM,GAAG,IAAI;QACvB,CAAC;;;;QAID,OAAO;AACP,QAAA,MAAM,EAAE,KAA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AE;QAC5C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC;QACzC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE;YAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YAClC,IAAI,MAAM,KAAK,IAAI;AAAE,gBAAA,OAAO,SAAS;YACrC,IAAI,GAAG,MAAM;QACf;IACF;AACA,IAAA,OAAO,IAAI;AACb;;;;"}
@@ -35,29 +35,13 @@ import type { TtscTransformHooks } from "./watch/TtscTransformHooks.cjs";
35
35
  * @param hooks - Optional adapter callbacks; see {@link TtscTransformHooks}.
36
36
  * Dependency notifications fire on cache hits too; watch registrations are
37
37
  * per build, not per compilation.
38
- * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified cache admission preserve compiler disk authority; fresh-only success additionally needs an explicit nonwatching lifecycle, coherent project declaration and actual host-cache withdrawal, because incomplete observation cannot support watch invalidation.
39
- * @evidence contracts/common.md#clear-and-simple-design One delivery coordinator composes project selection, cache admission, compilation, output selection and host notifications; dedicated owners handle proof and lifetime internals.
40
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines; incomplete local results can share only explicitly nonwatching first deliveries in their exact pass. Unknown/watching lifecycles or unsupported withdrawal reject and evict them rather than invent persistent records or dependency closure.
41
- * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notification responsibilities with links to maintained reference context.
42
- * @evidence contracts/performance.md#efficient-algorithms
43
- * Selection/key construction pays ancestor/config/alias/option/path text work.
44
- * Each iteration may prepare toolchain state, settle native notifications and
45
- * replay source/project/external/universal proofs before selecting output.
46
- * In-flight/valid completed reuse avoids compilation, not those checks or
47
- * output/map/notification/record work. Capture misses pay whole native compile
48
- * and input populations. The common proof owner skips redundant environment
49
- * preparation for proven first deliveries and shares synchronous native proof
50
- * queries; persistent/repeated delivery establishes fresh authority. Concurrent supersession can repeat the outer loop
51
- * without a delivery-level retry/time bound here.
52
- * @evidence contracts/performance.md#reuse-equivalent-work Cache identity covers config/options/plugins/aliases; current generations, pass-qualified terminal verdicts and in-flight Promises are shared only while their source and dependency proof remains valid.
53
- * @evidence contracts/performance.md#bound-retention-and-release-resources
54
- * Optional cache state retains current generation Promises/results and
55
- * per-key dependency/case facts without a byte/key cap here. Native tasks
56
- * belong to compiler/capture owners; uncached captures retain no notification
57
- * or persistent clock probe. Fresh-only delivery releases capture resources,
58
- * retaining only an explicitly admitted local pass result; rejected or failed
59
- * incomplete handoff detaches its generation. Eviction/disposal attempt independent resource release
60
- * and native failures need not close every handle or remove every probe.
61
- * @evidence contracts/portability.md#os-neutral-implementation Native module paths and project coordinates use supported path/filesystem abstractions, while actual case policy and watcher capability come from generation proof rather than OS-name assumptions.
38
+ * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified admission preserve compiler disk authority; preparation shares selection, keys, capture and input proofs with delivery, while host effects and first-delivery permission remain exclusive to actual delivery. Fresh-only success still requires an explicit nonwatching lifecycle, coherent project declaration and supported host-cache withdrawal because incomplete observation cannot establish watch invalidation.
39
+ * @evidence contracts/common.md#clear-and-simple-design One coordinator mode shares project selection, admission, compilation and output selection between preparation and delivery; dedicated owners retain proof and lifetime internals, and delivery alone performs host notification.
40
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines. Preparation skips handoff rather than postcompile proof, and superseded preparation stops without reviving withdrawn generations. Incomplete local results share only explicitly nonwatching first deliveries in their exact pass; unknown/watching lifecycles or unsupported withdrawal reject and evict without invented persistent records or dependency closure.
41
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notifications; coordinator prose identifies delivery-only effects and postpreparation admission, with maintained invalidation reference context.
42
+ * @evidence contracts/performance.md#efficient-algorithms Selection and keys pay ancestor/config/alias/option/path-text work. Each iteration may prepare toolchains, settle notifications and replay source/project/external/universal proofs; reuse avoids compilation rather than those checks or output/map/notification/record work. Misses pay native compilation and input populations. Proven first deliveries skip redundant environment preparation and share synchronous proof queries; repeated delivery establishes fresh authority. Startup schedules explicit entries concurrently and skips delivery output/map/registration work. Supersession can repeat the outer loop without a retry or time bound.
43
+ * @evidence contracts/performance.md#reuse-equivalent-work Config/options/plugins/aliases key the ordinary project Promise shared by preparation, simultaneous loads and sibling entries; completed generations, pass-qualified terminal verdicts and in-flight work remain reusable only under current source and dependency proof.
44
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Optional cache state retains generation Promises/results and per-key dependency/case facts without a byte/key cap. Native tasks belong to compiler/capture owners; uncached captures retain no notification or persistent clock probe. Fresh-only delivery releases capture resources while retaining an admitted local pass result; failed or rejected incomplete handoff detaches its generation. Superseded preparation preserves the new owner, and withdrawal schedules disposal of its pending fulfilled result. Eviction/disposal attempt independent release; native failure need not close every handle or remove every probe.
45
+ * @evidence contracts/portability.md#os-neutral-implementation Preparation and delivery use the same native project selection, path identity and cache-owned filesystem boundaries, with exact startup entry paths. Generation proof supplies case and watcher policy rather than OS-name assumptions.
62
46
  */
63
47
  export declare function transformTtsc(id: string, source: string, options: ResolvedTtscUnpluginOptions, aliases?: unknown, cache?: TtscTransformCache, hooks?: TtscTransformHooks): Promise<TtscTransformResult | undefined>;
@@ -35,29 +35,13 @@ import type { TtscTransformHooks } from "./watch/TtscTransformHooks.mjs";
35
35
  * @param hooks - Optional adapter callbacks; see {@link TtscTransformHooks}.
36
36
  * Dependency notifications fire on cache hits too; watch registrations are
37
37
  * per build, not per compilation.
38
- * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified cache admission preserve compiler disk authority; fresh-only success additionally needs an explicit nonwatching lifecycle, coherent project declaration and actual host-cache withdrawal, because incomplete observation cannot support watch invalidation.
39
- * @evidence contracts/common.md#clear-and-simple-design One delivery coordinator composes project selection, cache admission, compilation, output selection and host notifications; dedicated owners handle proof and lifetime internals.
40
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines; incomplete local results can share only explicitly nonwatching first deliveries in their exact pass. Unknown/watching lifecycles or unsupported withdrawal reject and evict them rather than invent persistent records or dependency closure.
41
- * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notification responsibilities with links to maintained reference context.
42
- * @evidence contracts/performance.md#efficient-algorithms
43
- * Selection/key construction pays ancestor/config/alias/option/path text work.
44
- * Each iteration may prepare toolchain state, settle native notifications and
45
- * replay source/project/external/universal proofs before selecting output.
46
- * In-flight/valid completed reuse avoids compilation, not those checks or
47
- * output/map/notification/record work. Capture misses pay whole native compile
48
- * and input populations. The common proof owner skips redundant environment
49
- * preparation for proven first deliveries and shares synchronous native proof
50
- * queries; persistent/repeated delivery establishes fresh authority. Concurrent supersession can repeat the outer loop
51
- * without a delivery-level retry/time bound here.
52
- * @evidence contracts/performance.md#reuse-equivalent-work Cache identity covers config/options/plugins/aliases; current generations, pass-qualified terminal verdicts and in-flight Promises are shared only while their source and dependency proof remains valid.
53
- * @evidence contracts/performance.md#bound-retention-and-release-resources
54
- * Optional cache state retains current generation Promises/results and
55
- * per-key dependency/case facts without a byte/key cap here. Native tasks
56
- * belong to compiler/capture owners; uncached captures retain no notification
57
- * or persistent clock probe. Fresh-only delivery releases capture resources,
58
- * retaining only an explicitly admitted local pass result; rejected or failed
59
- * incomplete handoff detaches its generation. Eviction/disposal attempt independent resource release
60
- * and native failures need not close every handle or remove every probe.
61
- * @evidence contracts/portability.md#os-neutral-implementation Native module paths and project coordinates use supported path/filesystem abstractions, while actual case policy and watcher capability come from generation proof rather than OS-name assumptions.
38
+ * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified admission preserve compiler disk authority; preparation shares selection, keys, capture and input proofs with delivery, while host effects and first-delivery permission remain exclusive to actual delivery. Fresh-only success still requires an explicit nonwatching lifecycle, coherent project declaration and supported host-cache withdrawal because incomplete observation cannot establish watch invalidation.
39
+ * @evidence contracts/common.md#clear-and-simple-design One coordinator mode shares project selection, admission, compilation and output selection between preparation and delivery; dedicated owners retain proof and lifetime internals, and delivery alone performs host notification.
40
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines. Preparation skips handoff rather than postcompile proof, and superseded preparation stops without reviving withdrawn generations. Incomplete local results share only explicitly nonwatching first deliveries in their exact pass; unknown/watching lifecycles or unsupported withdrawal reject and evict without invented persistent records or dependency closure.
41
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notifications; coordinator prose identifies delivery-only effects and postpreparation admission, with maintained invalidation reference context.
42
+ * @evidence contracts/performance.md#efficient-algorithms Selection and keys pay ancestor/config/alias/option/path-text work. Each iteration may prepare toolchains, settle notifications and replay source/project/external/universal proofs; reuse avoids compilation rather than those checks or output/map/notification/record work. Misses pay native compilation and input populations. Proven first deliveries skip redundant environment preparation and share synchronous proof queries; repeated delivery establishes fresh authority. Startup schedules explicit entries concurrently and skips delivery output/map/registration work. Supersession can repeat the outer loop without a retry or time bound.
43
+ * @evidence contracts/performance.md#reuse-equivalent-work Config/options/plugins/aliases key the ordinary project Promise shared by preparation, simultaneous loads and sibling entries; completed generations, pass-qualified terminal verdicts and in-flight work remain reusable only under current source and dependency proof.
44
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Optional cache state retains generation Promises/results and per-key dependency/case facts without a byte/key cap. Native tasks belong to compiler/capture owners; uncached captures retain no notification or persistent clock probe. Fresh-only delivery releases capture resources while retaining an admitted local pass result; failed or rejected incomplete handoff detaches its generation. Superseded preparation preserves the new owner, and withdrawal schedules disposal of its pending fulfilled result. Eviction/disposal attempt independent release; native failure need not close every handle or remove every probe.
45
+ * @evidence contracts/portability.md#os-neutral-implementation Preparation and delivery use the same native project selection, path identity and cache-owned filesystem boundaries, with exact startup entry paths. Generation proof supplies case and watcher policy rather than OS-name assumptions.
62
46
  */
63
47
  export declare function transformTtsc(id: string, source: string, options: ResolvedTtscUnpluginOptions, aliases?: unknown, cache?: TtscTransformCache, hooks?: TtscTransformHooks): Promise<TtscTransformResult | undefined>;
@@ -35,29 +35,13 @@ import type { TtscTransformHooks } from "./watch/TtscTransformHooks";
35
35
  * @param hooks - Optional adapter callbacks; see {@link TtscTransformHooks}.
36
36
  * Dependency notifications fire on cache hits too; watch registrations are
37
37
  * per build, not per compilation.
38
- * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified cache admission preserve compiler disk authority; fresh-only success additionally needs an explicit nonwatching lifecycle, coherent project declaration and actual host-cache withdrawal, because incomplete observation cannot support watch invalidation.
39
- * @evidence contracts/common.md#clear-and-simple-design One delivery coordinator composes project selection, cache admission, compilation, output selection and host notifications; dedicated owners handle proof and lifetime internals.
40
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines; incomplete local results can share only explicitly nonwatching first deliveries in their exact pass. Unknown/watching lifecycles or unsupported withdrawal reject and evict them rather than invent persistent records or dependency closure.
41
- * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notification responsibilities with links to maintained reference context.
42
- * @evidence contracts/performance.md#efficient-algorithms
43
- * Selection/key construction pays ancestor/config/alias/option/path text work.
44
- * Each iteration may prepare toolchain state, settle native notifications and
45
- * replay source/project/external/universal proofs before selecting output.
46
- * In-flight/valid completed reuse avoids compilation, not those checks or
47
- * output/map/notification/record work. Capture misses pay whole native compile
48
- * and input populations. The common proof owner skips redundant environment
49
- * preparation for proven first deliveries and shares synchronous native proof
50
- * queries; persistent/repeated delivery establishes fresh authority. Concurrent supersession can repeat the outer loop
51
- * without a delivery-level retry/time bound here.
52
- * @evidence contracts/performance.md#reuse-equivalent-work Cache identity covers config/options/plugins/aliases; current generations, pass-qualified terminal verdicts and in-flight Promises are shared only while their source and dependency proof remains valid.
53
- * @evidence contracts/performance.md#bound-retention-and-release-resources
54
- * Optional cache state retains current generation Promises/results and
55
- * per-key dependency/case facts without a byte/key cap here. Native tasks
56
- * belong to compiler/capture owners; uncached captures retain no notification
57
- * or persistent clock probe. Fresh-only delivery releases capture resources,
58
- * retaining only an explicitly admitted local pass result; rejected or failed
59
- * incomplete handoff detaches its generation. Eviction/disposal attempt independent resource release
60
- * and native failures need not close every handle or remove every probe.
61
- * @evidence contracts/portability.md#os-neutral-implementation Native module paths and project coordinates use supported path/filesystem abstractions, while actual case policy and watcher capability come from generation proof rather than OS-name assumptions.
38
+ * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified admission preserve compiler disk authority; preparation shares selection, keys, capture and input proofs with delivery, while host effects and first-delivery permission remain exclusive to actual delivery. Fresh-only success still requires an explicit nonwatching lifecycle, coherent project declaration and supported host-cache withdrawal because incomplete observation cannot establish watch invalidation.
39
+ * @evidence contracts/common.md#clear-and-simple-design One coordinator mode shares project selection, admission, compilation and output selection between preparation and delivery; dedicated owners retain proof and lifetime internals, and delivery alone performs host notification.
40
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines. Preparation skips handoff rather than postcompile proof, and superseded preparation stops without reviving withdrawn generations. Incomplete local results share only explicitly nonwatching first deliveries in their exact pass; unknown/watching lifecycles or unsupported withdrawal reject and evict without invented persistent records or dependency closure.
41
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notifications; coordinator prose identifies delivery-only effects and postpreparation admission, with maintained invalidation reference context.
42
+ * @evidence contracts/performance.md#efficient-algorithms Selection and keys pay ancestor/config/alias/option/path-text work. Each iteration may prepare toolchains, settle notifications and replay source/project/external/universal proofs; reuse avoids compilation rather than those checks or output/map/notification/record work. Misses pay native compilation and input populations. Proven first deliveries skip redundant environment preparation and share synchronous proof queries; repeated delivery establishes fresh authority. Startup schedules explicit entries concurrently and skips delivery output/map/registration work. Supersession can repeat the outer loop without a retry or time bound.
43
+ * @evidence contracts/performance.md#reuse-equivalent-work Config/options/plugins/aliases key the ordinary project Promise shared by preparation, simultaneous loads and sibling entries; completed generations, pass-qualified terminal verdicts and in-flight work remain reusable only under current source and dependency proof.
44
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Optional cache state retains generation Promises/results and per-key dependency/case facts without a byte/key cap. Native tasks belong to compiler/capture owners; uncached captures retain no notification or persistent clock probe. Fresh-only delivery releases capture resources while retaining an admitted local pass result; failed or rejected incomplete handoff detaches its generation. Superseded preparation preserves the new owner, and withdrawal schedules disposal of its pending fulfilled result. Eviction/disposal attempt independent release; native failure need not close every handle or remove every probe.
45
+ * @evidence contracts/portability.md#os-neutral-implementation Preparation and delivery use the same native project selection, path identity and cache-owned filesystem boundaries, with exact startup entry paths. Generation proof supplies case and watcher policy rather than OS-name assumptions.
62
46
  */
63
47
  export declare function transformTtsc(id: string, source: string, options: ResolvedTtscUnpluginOptions, aliases?: unknown, cache?: TtscTransformCache, hooks?: TtscTransformHooks): Promise<TtscTransformResult | undefined>;
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var path = require('node:path');
4
+ var TtscPrecompilation = require('./TtscPrecompilation.js');
4
5
  var createAliasPaths = require('./alias/createAliasPaths.js');
5
6
  var TERMINAL_TRANSFORM_GENERATIONS = require('./cache/TERMINAL_TRANSFORM_GENERATIONS.js');
6
7
  var TRANSFORM_CACHE_CASE_POLICIES = require('./cache/TRANSFORM_CACHE_CASE_POLICIES.js');
@@ -29,6 +30,7 @@ var stripQuery = require('./utils/stripQuery.js');
29
30
  var TtscGenerationProof = require('./validation/TtscGenerationProof.js');
30
31
  var notifyRejectedGenerationInputs = require('./watch/notifyRejectedGenerationInputs.js');
31
32
  var prepareProjectRecordDirectories = require('./watch/prepareProjectRecordDirectories.js');
33
+ var recordedDependencyWitnesses = require('./watch/recordedDependencyWitnesses.js');
32
34
 
33
35
  /**
34
36
  * Apply the ttsc plugin transform to a single source file.
@@ -63,32 +65,25 @@ var prepareProjectRecordDirectories = require('./watch/prepareProjectRecordDirec
63
65
  * @param hooks - Optional adapter callbacks; see {@link TtscTransformHooks}.
64
66
  * Dependency notifications fire on cache hits too; watch registrations are
65
67
  * per build, not per compilation.
66
- * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified cache admission preserve compiler disk authority; fresh-only success additionally needs an explicit nonwatching lifecycle, coherent project declaration and actual host-cache withdrawal, because incomplete observation cannot support watch invalidation.
67
- * @evidence contracts/common.md#clear-and-simple-design One delivery coordinator composes project selection, cache admission, compilation, output selection and host notifications; dedicated owners handle proof and lifetime internals.
68
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines; incomplete local results can share only explicitly nonwatching first deliveries in their exact pass. Unknown/watching lifecycles or unsupported withdrawal reject and evict them rather than invent persistent records or dependency closure.
69
- * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notification responsibilities with links to maintained reference context.
70
- * @evidence contracts/performance.md#efficient-algorithms
71
- * Selection/key construction pays ancestor/config/alias/option/path text work.
72
- * Each iteration may prepare toolchain state, settle native notifications and
73
- * replay source/project/external/universal proofs before selecting output.
74
- * In-flight/valid completed reuse avoids compilation, not those checks or
75
- * output/map/notification/record work. Capture misses pay whole native compile
76
- * and input populations. The common proof owner skips redundant environment
77
- * preparation for proven first deliveries and shares synchronous native proof
78
- * queries; persistent/repeated delivery establishes fresh authority. Concurrent supersession can repeat the outer loop
79
- * without a delivery-level retry/time bound here.
80
- * @evidence contracts/performance.md#reuse-equivalent-work Cache identity covers config/options/plugins/aliases; current generations, pass-qualified terminal verdicts and in-flight Promises are shared only while their source and dependency proof remains valid.
81
- * @evidence contracts/performance.md#bound-retention-and-release-resources
82
- * Optional cache state retains current generation Promises/results and
83
- * per-key dependency/case facts without a byte/key cap here. Native tasks
84
- * belong to compiler/capture owners; uncached captures retain no notification
85
- * or persistent clock probe. Fresh-only delivery releases capture resources,
86
- * retaining only an explicitly admitted local pass result; rejected or failed
87
- * incomplete handoff detaches its generation. Eviction/disposal attempt independent resource release
88
- * and native failures need not close every handle or remove every probe.
89
- * @evidence contracts/portability.md#os-neutral-implementation Native module paths and project coordinates use supported path/filesystem abstractions, while actual case policy and watcher capability come from generation proof rather than OS-name assumptions.
68
+ * @evidence contracts/common.md#principled-implementation Project selection and generation-qualified admission preserve compiler disk authority; preparation shares selection, keys, capture and input proofs with delivery, while host effects and first-delivery permission remain exclusive to actual delivery. Fresh-only success still requires an explicit nonwatching lifecycle, coherent project declaration and supported host-cache withdrawal because incomplete observation cannot establish watch invalidation.
69
+ * @evidence contracts/common.md#clear-and-simple-design One coordinator mode shares project selection, admission, compilation and output selection between preparation and delivery; dedicated owners retain proof and lifetime internals, and delivery alone performs host notification.
70
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines. Preparation skips handoff rather than postcompile proof, and superseded preparation stops without reviving withdrawn generations. Incomplete local results share only explicitly nonwatching first deliveries in their exact pass; unknown/watching lifecycles or unsupported withdrawal reject and evict without invented persistent records or dependency closure.
71
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notifications; coordinator prose identifies delivery-only effects and postpreparation admission, with maintained invalidation reference context.
72
+ * @evidence contracts/performance.md#efficient-algorithms Selection and keys pay ancestor/config/alias/option/path-text work. Each iteration may prepare toolchains, settle notifications and replay source/project/external/universal proofs; reuse avoids compilation rather than those checks or output/map/notification/record work. Misses pay native compilation and input populations. Proven first deliveries skip redundant environment preparation and share synchronous proof queries; repeated delivery establishes fresh authority. Startup schedules explicit entries concurrently and skips delivery output/map/registration work. Supersession can repeat the outer loop without a retry or time bound.
73
+ * @evidence contracts/performance.md#reuse-equivalent-work Config/options/plugins/aliases key the ordinary project Promise shared by preparation, simultaneous loads and sibling entries; completed generations, pass-qualified terminal verdicts and in-flight work remain reusable only under current source and dependency proof.
74
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Optional cache state retains generation Promises/results and per-key dependency/case facts without a byte/key cap. Native tasks belong to compiler/capture owners; uncached captures retain no notification or persistent clock probe. Fresh-only delivery releases capture resources while retaining an admitted local pass result; failed or rejected incomplete handoff detaches its generation. Superseded preparation preserves the new owner, and withdrawal schedules disposal of its pending fulfilled result. Eviction/disposal attempt independent release; native failure need not close every handle or remove every probe.
75
+ * @evidence contracts/portability.md#os-neutral-implementation Preparation and delivery use the same native project selection, path identity and cache-owned filesystem boundaries, with exact startup entry paths. Generation proof supplies case and watcher policy rather than OS-name assumptions.
90
76
  */
91
- async function transformTtsc(id, source, options, aliases, cache, hooks) {
77
+ function transformTtsc(id, source, options, aliases, cache, hooks) {
78
+ return runTransformTtsc(id, source, options, aliases, cache, hooks, false);
79
+ }
80
+ /**
81
+ * Coordinate capture and actual delivery through the same project cache.
82
+ * Preparation stops before handoff: it cannot mark a module served, publish a
83
+ * host record, acknowledge volatility or emit module diagnostics. A prepared
84
+ * generation must still pass ordinary admission when the host requests it.
85
+ */
86
+ async function runTransformTtsc(id, source, options, aliases, cache, hooks, preparing) {
92
87
  const filesystem = transformFilesystem.transformFilesystem(cache);
93
88
  const exact = hooks?.exactPath === true;
94
89
  const clean = exact ? id : stripQuery.stripQuery(id);
@@ -112,7 +107,9 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
112
107
  // Acquire host-owned storage before any generation observes directory inputs.
113
108
  // Writing the delivered record must not create a new member of that proof.
114
109
  prepareProjectRecordDirectories.prepareProjectRecordDirectories(hooks?.project);
115
- const selection = resolveProjectSelection.resolveProjectSelection(file, options.project, filesystem);
110
+ const selection = hooks?.projectSelection === undefined
111
+ ? resolveProjectSelection.resolveProjectSelection(file, options.project, filesystem)
112
+ : { tsconfig: path.resolve(hooks.projectSelection), consulted: [] };
116
113
  const tsconfig = selection.tsconfig;
117
114
  const selectedProjectRoot = path.resolve(options.projectRoot ?? path.dirname(tsconfig));
118
115
  // Reported config reads and failed discovery candidates are watch inputs:
@@ -127,6 +124,9 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
127
124
  tsconfig,
128
125
  };
129
126
  const aliasPaths = createAliasPaths.createAliasPaths(aliases);
127
+ if (!preparing && cache !== undefined) {
128
+ TtscPrecompilation.TtscPrecompilation.start(cache, options, aliasPaths, (entry, text) => runTransformTtsc(entry, text, options, aliases, cache, { ...hooks, exactPath: true, projectSelection: undefined }, true));
129
+ }
130
130
  const key = createTransformCacheKey.createTransformCacheKey({
131
131
  aliasPaths,
132
132
  compilerOptions: options.compilerOptions,
@@ -147,8 +147,11 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
147
147
  if (terminal !== undefined) {
148
148
  if (terminal instanceof TtscUnstableGenerationError.TtscUnstableGenerationError) {
149
149
  await preparePluginBuildEnvironments.preparePluginBuildEnvironments(terminal.validation.cached.result, filesystem, undefined, terminal.validation.cached.projectRoot);
150
- if (cache?.get(key) !== transformed)
150
+ if (cache?.get(key) !== transformed) {
151
+ if (preparing)
152
+ return undefined;
151
153
  continue;
154
+ }
152
155
  }
153
156
  // A terminal verdict is an answer about one observed environment, not an
154
157
  // invitation for every later module to repeat the whole compile.
@@ -157,7 +160,8 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
157
160
  currentSource: source,
158
161
  filesystem,
159
162
  })) {
160
- notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, terminal, file, watchSelection);
163
+ if (!preparing)
164
+ notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, terminal, file, watchSelection);
161
165
  throw terminal;
162
166
  }
163
167
  evictGeneration.evictGeneration(cache, key, transformed);
@@ -169,13 +173,16 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
169
173
  }
170
174
  if (transformed !== undefined) {
171
175
  const cached = await awaitOrEvict.awaitOrEvict(cache, key, transformed).catch((rejection) => {
172
- notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
176
+ if (!preparing)
177
+ notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
173
178
  throw rejection;
174
179
  });
175
180
  TRANSFORM_RESULT_FILESYSTEM.TRANSFORM_RESULT_FILESYSTEM.set(cached.result, filesystem);
176
181
  // While this caller awaited the old Promise, another caller may have
177
182
  // invalidated it and installed a newer authoritative generation.
178
183
  if (cache?.get(key) !== transformed) {
184
+ if (preparing)
185
+ return undefined;
179
186
  continue;
180
187
  }
181
188
  // A generation captured while native notifications were trusted keeps
@@ -188,12 +195,17 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
188
195
  if (epoch === undefined) {
189
196
  await settleProjectMutationEvents.settleProjectMutationEvents(cached);
190
197
  if (cache?.get(key) !== transformed) {
198
+ if (preparing)
199
+ return undefined;
191
200
  continue;
192
201
  }
193
202
  }
194
203
  await TtscGenerationProof.TtscGenerationProof.prepare(cached, file, epoch);
195
- if (cache?.get(key) !== transformed)
204
+ if (cache?.get(key) !== transformed) {
205
+ if (preparing)
206
+ return undefined;
196
207
  continue;
208
+ }
197
209
  // No await between this observation and synchronous admission.
198
210
  const proof = TtscGenerationProof.TtscGenerationProof.create(cached, file, epoch);
199
211
  const action = selectCachedGenerationAction.selectCachedGenerationAction({
@@ -205,11 +217,14 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
205
217
  generation: transformed,
206
218
  key,
207
219
  source,
220
+ reportDivergence: !preparing,
208
221
  });
209
222
  if (action === "retry") {
210
223
  continue;
211
224
  }
212
225
  if (action === "serve") {
226
+ if (preparing)
227
+ return undefined;
213
228
  return deliverCachedTransform.deliverCachedTransform({
214
229
  cache,
215
230
  cached,
@@ -231,6 +246,7 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
231
246
  projectRoot: selectedProjectRoot,
232
247
  currentFile: file,
233
248
  currentSource: source,
249
+ reportDivergence: !preparing,
234
250
  // Stamp the pass this compile was started for, not the one it happens
235
251
  // to finish in: a boundary crossed mid-compile leaves the generation
236
252
  // belonging to the earlier pass, so the next pass re-proves it.
@@ -251,18 +267,24 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
251
267
  useCaseSensitiveFileNames: cache === undefined
252
268
  ? undefined
253
269
  : TRANSFORM_CACHE_CASE_POLICIES.TRANSFORM_CACHE_CASE_POLICIES.get(cache)?.get(key),
270
+ // A cache without a list of its own takes the names the project's
271
+ // record carries from an earlier process (samchon/ttsc#1743).
254
272
  witnessedDependencies: cache === undefined
255
273
  ? undefined
256
- : TRANSFORM_CACHE_DEPENDENCY_WITNESSES.TRANSFORM_CACHE_DEPENDENCY_WITNESSES.get(cache)?.get(key),
274
+ : (TRANSFORM_CACHE_DEPENDENCY_WITNESSES.TRANSFORM_CACHE_DEPENDENCY_WITNESSES.get(cache)?.get(key) ??
275
+ recordedDependencyWitnesses.recordedDependencyWitnesses(hooks?.project, tsconfig)),
257
276
  });
258
277
  cache?.set(key, transformed);
259
278
  }
260
279
  const generation = transformed;
261
280
  const cached = await awaitOrEvict.awaitOrEvict(cache, key, generation).catch((rejection) => {
262
- notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
281
+ if (!preparing)
282
+ notifyRejectedGenerationInputs.notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
263
283
  throw rejection;
264
284
  });
265
285
  if (cache !== undefined && cache.get(key) !== generation) {
286
+ if (preparing)
287
+ return undefined;
266
288
  continue;
267
289
  }
268
290
  if (cache !== undefined) {
@@ -282,6 +304,8 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
282
304
  policies.set(key, reported);
283
305
  }
284
306
  }
307
+ if (preparing)
308
+ return undefined;
285
309
  return deliverCachedTransform.deliverCachedTransform({
286
310
  cache,
287
311
  cached,
@@ -1 +1 @@
1
- {"version":3,"file":"transformTtsc.js","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":["transformFilesystem","stripQuery","isHostWrapperQuery","isDeclarationFile","pluginsAreDisabled","prepareProjectRecordDirectories","resolveProjectSelection","createAliasPaths","createTransformCacheKey","transformCacheEpoch","TERMINAL_TRANSFORM_GENERATIONS","TtscUnstableGenerationError","preparePluginBuildEnvironments","replaysTerminalGeneration","notifyRejectedGenerationInputs","evictGeneration","awaitOrEvict","TRANSFORM_RESULT_FILESYSTEM","transformCacheTrustsNotifications","withdrawGenerationNotifications","settleProjectMutationEvents","TtscGenerationProof","selectCachedGenerationAction","deliverCachedTransform","transformProject","TRANSFORM_CACHE_SESSIONS","TRANSFORM_CACHE_CASE_POLICIES","TRANSFORM_CACHE_DEPENDENCY_WITNESSES"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDG;AACI,eAAe,aAAa,CACjC,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAiB,EACjB,KAA0B,EAC1B,KAA0B,EAAA;AAE1B,IAAA,MAAM,UAAU,GAAGA,uCAAmB,CAAC,KAAK,CAAC;AAC7C,IAAA,MAAM,KAAK,GAAG,KAAK,EAAE,SAAS,KAAK,IAAI;AACvC,IAAA,MAAM,KAAK,GAAG,KAAK,GAAG,EAAE,GAAGC,qBAAU,CAAC,EAAE,CAAC;AACzC,IAAA,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACxB,QAAA,OAAO,SAAS;IAClB;;;;;IAKA,IAAI,CAAC,KAAK,IAAIC,qCAAkB,CAAC,EAAE,CAAC,EAAE;AACpC,QAAA,OAAO,SAAS;IAClB;IACA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AAChC,IAAA,IAAIC,mCAAiB,CAAC,IAAI,CAAC,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAIC,qCAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;AACvC,QAAA,OAAO,SAAS;IAClB;;;AAIA,IAAAC,+DAA+B,CAAC,KAAK,EAAE,OAAO,CAAC;AAE/C,IAAA,MAAM,SAAS,GAAGC,+CAAuB,CA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1B,oBAAA,QAAQ,GAAG,IAAI,GAAG,EAAE;AACpB,oBAAAA,2DAA6B,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC;gBACpD;AACA,gBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC;YAC7B;QACF;AACA,QAAA,OAAOH,6CAAsB,CAAC;YAC5B,KAAK;YACL,MAAM;YACN,UAAU;YACV,GAAG;YACH,KAAK;YACL,IAAI;YACJ,MAAM;YACN,KAAK;AACL,YAAA,SAAS,EAAE,cAAc;AAC1B,SAAA,CAAC;IACJ;AACF;;;;"}
1
+ {"version":3,"file":"transformTtsc.js","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":["transformFilesystem","stripQuery","isHostWrapperQuery","isDeclarationFile","pluginsAreDisabled","prepareProjectRecordDirectories","resolveProjectSelection","createAliasPaths","TtscPrecompilation","createTransformCacheKey","transformCacheEpoch","TERMINAL_TRANSFORM_GENERATIONS","TtscUnstableGenerationError","preparePluginBuildEnvironments","replaysTerminalGeneration","notifyRejectedGenerationInputs","evictGeneration","awaitOrEvict","TRANSFORM_RESULT_FILESYSTEM","transformCacheTrustsNotifications","withdrawGenerationNotifications","settleProjectMutationEvents","TtscGenerationProof","selectCachedGenerationAction","deliverCachedTransform","transformProject","TRANSFORM_CACHE_SESSIONS","TRANSFORM_CACHE_CASE_POLICIES","TRANSFORM_CACHE_DEPENDENCY_WITNESSES","recordedDependencyWitnesses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACG,SAAU,aAAa,CAC3B,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAiB,EACjB,KAA0B,EAC1B,KAA0B,EAAA;AAE1B,IAAA,OAAO,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,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