@ttsc/unplugin 0.34.1 → 0.34.2

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 (262) hide show
  1. package/README.md +1 -0
  2. package/lib/api.js +4 -0
  3. package/lib/api.js.map +1 -1
  4. package/lib/api.mjs +2 -0
  5. package/lib/api.mjs.map +1 -1
  6. package/lib/core/bridge/TtscProjectRecord.d.cts +4 -1
  7. package/lib/core/bridge/TtscProjectRecord.d.mts +4 -1
  8. package/lib/core/bridge/TtscProjectRecord.d.ts +4 -1
  9. package/lib/core/bridge/projectRecordArgumentsMatch.d.cts +18 -0
  10. package/lib/core/bridge/projectRecordArgumentsMatch.d.mts +18 -0
  11. package/lib/core/bridge/projectRecordArgumentsMatch.d.ts +18 -0
  12. package/lib/core/bridge/projectRecordArgumentsMatch.js +36 -0
  13. package/lib/core/bridge/projectRecordArgumentsMatch.js.map +1 -0
  14. package/lib/core/bridge/projectRecordArgumentsMatch.mjs +34 -0
  15. package/lib/core/bridge/projectRecordArgumentsMatch.mjs.map +1 -0
  16. package/lib/core/bridge/projectRecordMoved.d.cts +14 -12
  17. package/lib/core/bridge/projectRecordMoved.d.mts +14 -12
  18. package/lib/core/bridge/projectRecordMoved.d.ts +14 -12
  19. package/lib/core/bridge/projectRecordMoved.js +17 -12
  20. package/lib/core/bridge/projectRecordMoved.js.map +1 -1
  21. package/lib/core/bridge/projectRecordMoved.mjs +17 -12
  22. package/lib/core/bridge/projectRecordMoved.mjs.map +1 -1
  23. package/lib/core/bridge/readProjectRecordFile.d.cts +4 -3
  24. package/lib/core/bridge/readProjectRecordFile.d.mts +4 -3
  25. package/lib/core/bridge/readProjectRecordFile.d.ts +4 -3
  26. package/lib/core/bridge/readProjectRecordFile.js +26 -3
  27. package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
  28. package/lib/core/bridge/readProjectRecordFile.mjs +26 -3
  29. package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
  30. package/lib/core/bridge/refreshProjectRecordFile.d.cts +3 -2
  31. package/lib/core/bridge/refreshProjectRecordFile.d.mts +3 -2
  32. package/lib/core/bridge/refreshProjectRecordFile.d.ts +3 -2
  33. package/lib/core/bridge/refreshProjectRecordFile.js +9 -3
  34. package/lib/core/bridge/refreshProjectRecordFile.js.map +1 -1
  35. package/lib/core/bridge/refreshProjectRecordFile.mjs +9 -3
  36. package/lib/core/bridge/refreshProjectRecordFile.mjs.map +1 -1
  37. package/lib/core/bridge/refreshProjectRecordFiles.d.cts +1 -1
  38. package/lib/core/bridge/refreshProjectRecordFiles.d.mts +1 -1
  39. package/lib/core/bridge/refreshProjectRecordFiles.d.ts +1 -1
  40. package/lib/core/bridge/refreshProjectRecordFiles.js +2 -2
  41. package/lib/core/bridge/refreshProjectRecordFiles.js.map +1 -1
  42. package/lib/core/bridge/refreshProjectRecordFiles.mjs +2 -2
  43. package/lib/core/bridge/refreshProjectRecordFiles.mjs.map +1 -1
  44. package/lib/core/index.d.cts +2 -0
  45. package/lib/core/index.d.mts +2 -0
  46. package/lib/core/index.d.ts +2 -0
  47. package/lib/core/index.js +4 -0
  48. package/lib/core/index.js.map +1 -1
  49. package/lib/core/index.mjs +2 -0
  50. package/lib/core/index.mjs.map +1 -1
  51. package/lib/core/next/next.js +5 -2
  52. package/lib/core/next/next.js.map +1 -1
  53. package/lib/core/next/next.mjs +5 -2
  54. package/lib/core/next/next.mjs.map +1 -1
  55. package/lib/core/options/ResolvedTtscUnpluginOptions.d.cts +2 -0
  56. package/lib/core/options/ResolvedTtscUnpluginOptions.d.mts +2 -0
  57. package/lib/core/options/ResolvedTtscUnpluginOptions.d.ts +2 -0
  58. package/lib/core/options/TtscUnpluginOptions.d.cts +8 -0
  59. package/lib/core/options/TtscUnpluginOptions.d.mts +8 -0
  60. package/lib/core/options/TtscUnpluginOptions.d.ts +8 -0
  61. package/lib/core/options/resolveOptions.d.cts +4 -3
  62. package/lib/core/options/resolveOptions.d.mts +4 -3
  63. package/lib/core/options/resolveOptions.d.ts +4 -3
  64. package/lib/core/options/resolveOptions.js +5 -3
  65. package/lib/core/options/resolveOptions.js.map +1 -1
  66. package/lib/core/options/resolveOptions.mjs +5 -3
  67. package/lib/core/options/resolveOptions.mjs.map +1 -1
  68. package/lib/core/rollup/rollupDeliveryOptions.d.cts +6 -6
  69. package/lib/core/rollup/rollupDeliveryOptions.d.mts +6 -6
  70. package/lib/core/rollup/rollupDeliveryOptions.d.ts +6 -6
  71. package/lib/core/rollup/rollupDeliveryOptions.js +9 -6
  72. package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
  73. package/lib/core/rollup/rollupDeliveryOptions.mjs +9 -6
  74. package/lib/core/rollup/rollupDeliveryOptions.mjs.map +1 -1
  75. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.cts +10 -0
  76. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.mts +10 -0
  77. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.d.ts +10 -0
  78. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.js +13 -0
  79. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.js.map +1 -0
  80. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.mjs +11 -0
  81. package/lib/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.mjs.map +1 -0
  82. package/lib/core/transform/cache/TtscCachedProjectTransform.d.cts +6 -0
  83. package/lib/core/transform/cache/TtscCachedProjectTransform.d.mts +6 -0
  84. package/lib/core/transform/cache/TtscCachedProjectTransform.d.ts +6 -0
  85. package/lib/core/transform/cache/createTransformCacheKey.d.cts +11 -8
  86. package/lib/core/transform/cache/createTransformCacheKey.d.mts +11 -8
  87. package/lib/core/transform/cache/createTransformCacheKey.d.ts +11 -8
  88. package/lib/core/transform/cache/createTransformCacheKey.js +11 -8
  89. package/lib/core/transform/cache/createTransformCacheKey.js.map +1 -1
  90. package/lib/core/transform/cache/createTransformCacheKey.mjs +11 -8
  91. package/lib/core/transform/cache/createTransformCacheKey.mjs.map +1 -1
  92. package/lib/core/transform/generation/TtscCompilerMembershipHint.d.cts +20 -0
  93. package/lib/core/transform/generation/TtscCompilerMembershipHint.d.mts +20 -0
  94. package/lib/core/transform/generation/TtscCompilerMembershipHint.d.ts +20 -0
  95. package/lib/core/transform/generation/applyCompilerMembership.d.cts +15 -0
  96. package/lib/core/transform/generation/applyCompilerMembership.d.mts +15 -0
  97. package/lib/core/transform/generation/applyCompilerMembership.d.ts +15 -0
  98. package/lib/core/transform/generation/applyCompilerMembership.js +41 -0
  99. package/lib/core/transform/generation/applyCompilerMembership.js.map +1 -0
  100. package/lib/core/transform/generation/applyCompilerMembership.mjs +39 -0
  101. package/lib/core/transform/generation/applyCompilerMembership.mjs.map +1 -0
  102. package/lib/core/transform/generation/captureTransformGeneration.d.cts +7 -0
  103. package/lib/core/transform/generation/captureTransformGeneration.d.mts +7 -0
  104. package/lib/core/transform/generation/captureTransformGeneration.d.ts +7 -0
  105. package/lib/core/transform/generation/captureTransformGeneration.js +20 -7
  106. package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
  107. package/lib/core/transform/generation/captureTransformGeneration.mjs +20 -7
  108. package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
  109. package/lib/core/transform/generation/onlyLearnedCompileFacts.d.cts +5 -5
  110. package/lib/core/transform/generation/onlyLearnedCompileFacts.d.mts +5 -5
  111. package/lib/core/transform/generation/onlyLearnedCompileFacts.d.ts +5 -5
  112. package/lib/core/transform/generation/onlyLearnedCompileFacts.js +7 -5
  113. package/lib/core/transform/generation/onlyLearnedCompileFacts.js.map +1 -1
  114. package/lib/core/transform/generation/onlyLearnedCompileFacts.mjs +7 -5
  115. package/lib/core/transform/generation/onlyLearnedCompileFacts.mjs.map +1 -1
  116. package/lib/core/transform/generation/primeCompilerMembership.d.cts +22 -0
  117. package/lib/core/transform/generation/primeCompilerMembership.d.mts +22 -0
  118. package/lib/core/transform/generation/primeCompilerMembership.d.ts +22 -0
  119. package/lib/core/transform/generation/primeCompilerMembership.js +32 -0
  120. package/lib/core/transform/generation/primeCompilerMembership.js.map +1 -0
  121. package/lib/core/transform/generation/primeCompilerMembership.mjs +30 -0
  122. package/lib/core/transform/generation/primeCompilerMembership.mjs.map +1 -0
  123. package/lib/core/transform/generation/selectReportedMembershipPolicy.d.cts +7 -7
  124. package/lib/core/transform/generation/selectReportedMembershipPolicy.d.mts +7 -7
  125. package/lib/core/transform/generation/selectReportedMembershipPolicy.d.ts +7 -7
  126. package/lib/core/transform/generation/selectReportedMembershipPolicy.js +43 -9
  127. package/lib/core/transform/generation/selectReportedMembershipPolicy.js.map +1 -1
  128. package/lib/core/transform/generation/selectReportedMembershipPolicy.mjs +43 -9
  129. package/lib/core/transform/generation/selectReportedMembershipPolicy.mjs.map +1 -1
  130. package/lib/core/transform/generation/transformProject.d.cts +7 -0
  131. package/lib/core/transform/generation/transformProject.d.mts +7 -0
  132. package/lib/core/transform/generation/transformProject.d.ts +7 -0
  133. package/lib/core/transform/generation/transformProject.js +3 -0
  134. package/lib/core/transform/generation/transformProject.js.map +1 -1
  135. package/lib/core/transform/generation/transformProject.mjs +3 -0
  136. package/lib/core/transform/generation/transformProject.mjs.map +1 -1
  137. package/lib/core/transform/project/isPossibleProgramFileName.d.cts +13 -11
  138. package/lib/core/transform/project/isPossibleProgramFileName.d.mts +13 -11
  139. package/lib/core/transform/project/isPossibleProgramFileName.d.ts +13 -11
  140. package/lib/core/transform/project/isPossibleProgramFileName.js +21 -13
  141. package/lib/core/transform/project/isPossibleProgramFileName.js.map +1 -1
  142. package/lib/core/transform/project/isPossibleProgramFileName.mjs +21 -13
  143. package/lib/core/transform/project/isPossibleProgramFileName.mjs.map +1 -1
  144. package/lib/core/transform/session/sharedCompileIdentity.d.cts +8 -5
  145. package/lib/core/transform/session/sharedCompileIdentity.d.mts +8 -5
  146. package/lib/core/transform/session/sharedCompileIdentity.d.ts +8 -5
  147. package/lib/core/transform/session/sharedCompileIdentity.js +8 -5
  148. package/lib/core/transform/session/sharedCompileIdentity.js.map +1 -1
  149. package/lib/core/transform/session/sharedCompileIdentity.mjs +8 -5
  150. package/lib/core/transform/session/sharedCompileIdentity.mjs.map +1 -1
  151. package/lib/core/transform/transformTtsc.js +18 -0
  152. package/lib/core/transform/transformTtsc.js.map +1 -1
  153. package/lib/core/transform/transformTtsc.mjs +18 -0
  154. package/lib/core/transform/transformTtsc.mjs.map +1 -1
  155. package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.cts +19 -0
  156. package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.mts +19 -0
  157. package/lib/core/transform/tsconfig/TtscCompilerArgumentsWitness.d.ts +19 -0
  158. package/lib/core/transform/tsconfig/captureCompilerArguments.d.cts +14 -0
  159. package/lib/core/transform/tsconfig/captureCompilerArguments.d.mts +14 -0
  160. package/lib/core/transform/tsconfig/captureCompilerArguments.d.ts +14 -0
  161. package/lib/core/transform/tsconfig/captureCompilerArguments.js +26 -0
  162. package/lib/core/transform/tsconfig/captureCompilerArguments.js.map +1 -0
  163. package/lib/core/transform/tsconfig/captureCompilerArguments.mjs +24 -0
  164. package/lib/core/transform/tsconfig/captureCompilerArguments.mjs.map +1 -0
  165. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.cts +13 -0
  166. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.mts +13 -0
  167. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.d.ts +13 -0
  168. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.js +23 -0
  169. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.js.map +1 -0
  170. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.mjs +21 -0
  171. package/lib/core/transform/tsconfig/compilerEnvironmentIdentity.mjs.map +1 -0
  172. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.cts +17 -0
  173. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.mts +17 -0
  174. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.ts +17 -0
  175. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js +57 -0
  176. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js.map +1 -0
  177. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs +55 -0
  178. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs.map +1 -0
  179. package/lib/core/transform/tsconfig/transformScratchEnvironment.d.cts +6 -6
  180. package/lib/core/transform/tsconfig/transformScratchEnvironment.d.mts +6 -6
  181. package/lib/core/transform/tsconfig/transformScratchEnvironment.d.ts +6 -6
  182. package/lib/core/transform/tsconfig/transformScratchEnvironment.js +7 -7
  183. package/lib/core/transform/tsconfig/transformScratchEnvironment.js.map +1 -1
  184. package/lib/core/transform/tsconfig/transformScratchEnvironment.mjs +7 -7
  185. package/lib/core/transform/tsconfig/transformScratchEnvironment.mjs.map +1 -1
  186. package/lib/core/transform/watch/notifyProjectRecord.js +3 -0
  187. package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
  188. package/lib/core/transform/watch/notifyProjectRecord.mjs +3 -0
  189. package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
  190. package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.cts +14 -1
  191. package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.mts +14 -1
  192. package/lib/core/tsconfig/ITtscProjectMembershipPolicy.d.ts +14 -1
  193. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.cts +4 -3
  194. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.mts +4 -3
  195. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.d.ts +4 -3
  196. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.js +36 -6
  197. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.js.map +1 -1
  198. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.mjs +36 -6
  199. package/lib/core/tsconfig/mergeMembershipPolicyOverlay.mjs.map +1 -1
  200. package/lib/core/tsconfig/readProjectMembershipPolicy.d.cts +3 -2
  201. package/lib/core/tsconfig/readProjectMembershipPolicy.d.mts +3 -2
  202. package/lib/core/tsconfig/readProjectMembershipPolicy.d.ts +3 -2
  203. package/lib/core/tsconfig/readProjectMembershipPolicy.js +49 -15
  204. package/lib/core/tsconfig/readProjectMembershipPolicy.js.map +1 -1
  205. package/lib/core/tsconfig/readProjectMembershipPolicy.mjs +49 -15
  206. package/lib/core/tsconfig/readProjectMembershipPolicy.mjs.map +1 -1
  207. package/lib/core/tsconfig/resolveMembershipInputExtensions.d.cts +16 -0
  208. package/lib/core/tsconfig/resolveMembershipInputExtensions.d.mts +16 -0
  209. package/lib/core/tsconfig/resolveMembershipInputExtensions.d.ts +16 -0
  210. package/lib/core/tsconfig/resolveMembershipInputExtensions.js +45 -0
  211. package/lib/core/tsconfig/resolveMembershipInputExtensions.js.map +1 -0
  212. package/lib/core/tsconfig/resolveMembershipInputExtensions.mjs +43 -0
  213. package/lib/core/tsconfig/resolveMembershipInputExtensions.mjs.map +1 -0
  214. package/lib/core/turbopack/turbopack.d.cts +2 -2
  215. package/lib/core/turbopack/turbopack.d.mts +2 -2
  216. package/lib/core/turbopack/turbopack.d.ts +2 -2
  217. package/lib/core/turbopack/turbopack.js +15 -7
  218. package/lib/core/turbopack/turbopack.js.map +1 -1
  219. package/lib/core/turbopack/turbopack.mjs +15 -7
  220. package/lib/core/turbopack/turbopack.mjs.map +1 -1
  221. package/lib/core/unplugin.js +21 -8
  222. package/lib/core/unplugin.js.map +1 -1
  223. package/lib/core/unplugin.mjs +21 -8
  224. package/lib/core/unplugin.mjs.map +1 -1
  225. package/package.json +3 -3
  226. package/src/core/bridge/TtscProjectRecord.ts +4 -1
  227. package/src/core/bridge/projectRecordArgumentsMatch.ts +37 -0
  228. package/src/core/bridge/projectRecordMoved.ts +17 -11
  229. package/src/core/bridge/readProjectRecordFile.ts +39 -3
  230. package/src/core/bridge/refreshProjectRecordFile.ts +9 -2
  231. package/src/core/bridge/refreshProjectRecordFiles.ts +7 -1
  232. package/src/core/index.ts +2 -0
  233. package/src/core/next/next.ts +18 -2
  234. package/src/core/options/ResolvedTtscUnpluginOptions.ts +3 -0
  235. package/src/core/options/TtscUnpluginOptions.ts +9 -0
  236. package/src/core/options/resolveOptions.ts +5 -3
  237. package/src/core/rollup/rollupDeliveryOptions.ts +9 -5
  238. package/src/core/transform/cache/TRANSFORM_CACHE_MEMBERSHIP_POLICIES.ts +14 -0
  239. package/src/core/transform/cache/TtscCachedProjectTransform.ts +7 -0
  240. package/src/core/transform/cache/createTransformCacheKey.ts +13 -8
  241. package/src/core/transform/generation/TtscCompilerMembershipHint.ts +24 -0
  242. package/src/core/transform/generation/applyCompilerMembership.ts +44 -0
  243. package/src/core/transform/generation/captureTransformGeneration.ts +43 -10
  244. package/src/core/transform/generation/onlyLearnedCompileFacts.ts +7 -5
  245. package/src/core/transform/generation/primeCompilerMembership.ts +39 -0
  246. package/src/core/transform/generation/selectReportedMembershipPolicy.ts +59 -13
  247. package/src/core/transform/generation/transformProject.ts +12 -0
  248. package/src/core/transform/project/isPossibleProgramFileName.ts +28 -15
  249. package/src/core/transform/session/sharedCompileIdentity.ts +10 -5
  250. package/src/core/transform/transformTtsc.ts +21 -0
  251. package/src/core/transform/tsconfig/TtscCompilerArgumentsWitness.ts +19 -0
  252. package/src/core/transform/tsconfig/captureCompilerArguments.ts +25 -0
  253. package/src/core/transform/tsconfig/compilerEnvironmentIdentity.ts +20 -0
  254. package/src/core/transform/tsconfig/resolveCompilerEnvironment.ts +61 -0
  255. package/src/core/transform/tsconfig/transformScratchEnvironment.ts +7 -6
  256. package/src/core/transform/watch/notifyProjectRecord.ts +3 -0
  257. package/src/core/tsconfig/ITtscProjectMembershipPolicy.ts +15 -1
  258. package/src/core/tsconfig/mergeMembershipPolicyOverlay.ts +31 -6
  259. package/src/core/tsconfig/readProjectMembershipPolicy.ts +61 -17
  260. package/src/core/tsconfig/resolveMembershipInputExtensions.ts +45 -0
  261. package/src/core/turbopack/turbopack.ts +27 -7
  262. package/src/core/unplugin.ts +34 -9
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Identify the argument transport in a normalized invocation snapshot.
3
+ *
4
+ * @evidence contracts/common.md#principled-implementation The ordered pair retains raw argv and cwd; absence differs from explicit empty argv.
5
+ * @evidence contracts/common.md#clear-and-simple-design All cache owners use this transport projection, separate from capture.
6
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No argument is dropped based on a consumer or expected output.
7
+ * @evidence contracts/common.md#meaningful-documentation The headline states the normalized-snapshot premise and transport scope.
8
+ * @evidence contracts/portability.md#os-neutral-implementation resolveCompilerEnvironment normalizes native environment names; cwd spelling and JSON argv remain unchanged.
9
+ * @evidence contracts/performance.md#efficient-algorithms Serialization scans two transport strings and allocates their encoded bytes.
10
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work This projection owns no cache or shared operation.
11
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only the returned string escapes the call.
12
+ */
13
+ function compilerEnvironmentIdentity(env = process.env) {
14
+ return JSON.stringify([
15
+ env.TTSC_TSGO_ARGS ?? null,
16
+ env.TTSC_TSGO_ARGS_CWD ?? null,
17
+ ]);
18
+ }
19
+
20
+ export { compilerEnvironmentIdentity };
21
+ //# sourceMappingURL=compilerEnvironmentIdentity.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compilerEnvironmentIdentity.mjs","sources":["../../../../src/core/transform/tsconfig/compilerEnvironmentIdentity.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;AAWG;SACa,2BAA2B,CACzC,GAAA,GAAyB,OAAO,CAAC,GAAG,EAAA;IAEpC,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,GAAG,CAAC,cAAc,IAAI,IAAI;QAC1B,GAAG,CAAC,kBAAkB,IAAI,IAAI;AAC/B,KAAA,CAAC;AACJ;;;;"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Capture one invocation's environment and explicit content-mapper permission.
3
+ *
4
+ * Omission preserves inherited arguments. An explicit boolean appends its
5
+ * upstream assignment after inherited arguments, keeping their order and cwd.
6
+ * Invalid transport fails instead of discarding inherited choices.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation A detached environment and ordered JSON argv preserve inherited choices; an explicit boolean assignment has final precedence.
9
+ * @evidence contracts/common.md#clear-and-simple-design Capture happens before cache selection; scratch routing derives a child copy afterward.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No process global or compiler behavior is replaced.
11
+ * @evidence contracts/common.md#meaningful-documentation Native prose documents omission, precedence, cwd and invalid transport.
12
+ * @evidence contracts/portability.md#os-neutral-implementation Windows environment names follow their native case-insensitive rule; POSIX names remain exact. JSON preserves argv without shell syntax.
13
+ * @evidence contracts/performance.md#efficient-algorithms Copying visits environment keys; Windows normalization scans them once, and an explicit permission parses and serializes argument bytes once.
14
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Every invocation observes current inherited values; cache owners compare its snapshot.
15
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The detached result transfers to its caller and acquires no handle or history.
16
+ */
17
+ export declare function resolveCompilerEnvironment(runExternalCode?: boolean, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Capture one invocation's environment and explicit content-mapper permission.
3
+ *
4
+ * Omission preserves inherited arguments. An explicit boolean appends its
5
+ * upstream assignment after inherited arguments, keeping their order and cwd.
6
+ * Invalid transport fails instead of discarding inherited choices.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation A detached environment and ordered JSON argv preserve inherited choices; an explicit boolean assignment has final precedence.
9
+ * @evidence contracts/common.md#clear-and-simple-design Capture happens before cache selection; scratch routing derives a child copy afterward.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No process global or compiler behavior is replaced.
11
+ * @evidence contracts/common.md#meaningful-documentation Native prose documents omission, precedence, cwd and invalid transport.
12
+ * @evidence contracts/portability.md#os-neutral-implementation Windows environment names follow their native case-insensitive rule; POSIX names remain exact. JSON preserves argv without shell syntax.
13
+ * @evidence contracts/performance.md#efficient-algorithms Copying visits environment keys; Windows normalization scans them once, and an explicit permission parses and serializes argument bytes once.
14
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Every invocation observes current inherited values; cache owners compare its snapshot.
15
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The detached result transfers to its caller and acquires no handle or history.
16
+ */
17
+ export declare function resolveCompilerEnvironment(runExternalCode?: boolean, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Capture one invocation's environment and explicit content-mapper permission.
3
+ *
4
+ * Omission preserves inherited arguments. An explicit boolean appends its
5
+ * upstream assignment after inherited arguments, keeping their order and cwd.
6
+ * Invalid transport fails instead of discarding inherited choices.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation A detached environment and ordered JSON argv preserve inherited choices; an explicit boolean assignment has final precedence.
9
+ * @evidence contracts/common.md#clear-and-simple-design Capture happens before cache selection; scratch routing derives a child copy afterward.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No process global or compiler behavior is replaced.
11
+ * @evidence contracts/common.md#meaningful-documentation Native prose documents omission, precedence, cwd and invalid transport.
12
+ * @evidence contracts/portability.md#os-neutral-implementation Windows environment names follow their native case-insensitive rule; POSIX names remain exact. JSON preserves argv without shell syntax.
13
+ * @evidence contracts/performance.md#efficient-algorithms Copying visits environment keys; Windows normalization scans them once, and an explicit permission parses and serializes argument bytes once.
14
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Every invocation observes current inherited values; cache owners compare its snapshot.
15
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The detached result transfers to its caller and acquires no handle or history.
16
+ */
17
+ export declare function resolveCompilerEnvironment(runExternalCode?: boolean, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Capture one invocation's environment and explicit content-mapper permission.
5
+ *
6
+ * Omission preserves inherited arguments. An explicit boolean appends its
7
+ * upstream assignment after inherited arguments, keeping their order and cwd.
8
+ * Invalid transport fails instead of discarding inherited choices.
9
+ *
10
+ * @evidence contracts/common.md#principled-implementation A detached environment and ordered JSON argv preserve inherited choices; an explicit boolean assignment has final precedence.
11
+ * @evidence contracts/common.md#clear-and-simple-design Capture happens before cache selection; scratch routing derives a child copy afterward.
12
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No process global or compiler behavior is replaced.
13
+ * @evidence contracts/common.md#meaningful-documentation Native prose documents omission, precedence, cwd and invalid transport.
14
+ * @evidence contracts/portability.md#os-neutral-implementation Windows environment names follow their native case-insensitive rule; POSIX names remain exact. JSON preserves argv without shell syntax.
15
+ * @evidence contracts/performance.md#efficient-algorithms Copying visits environment keys; Windows normalization scans them once, and an explicit permission parses and serializes argument bytes once.
16
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Every invocation observes current inherited values; cache owners compare its snapshot.
17
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The detached result transfers to its caller and acquires no handle or history.
18
+ */
19
+ function resolveCompilerEnvironment(runExternalCode, inherited = process.env) {
20
+ const env = { ...inherited };
21
+ if (process.platform === "win32") {
22
+ const selected = new Map();
23
+ for (const key of Object.keys(env)) {
24
+ const name = key.toUpperCase();
25
+ if (name === "TTSC_TSGO_ARGS" || name === "TTSC_TSGO_ARGS_CWD") {
26
+ const prior = selected.get(name);
27
+ if (prior === undefined || key < prior.key)
28
+ selected.set(name, { key, value: env[key] });
29
+ delete env[key];
30
+ }
31
+ }
32
+ for (const [name, value] of selected)
33
+ env[name] = value.value;
34
+ }
35
+ // Own absent channels too: a later process.env edit must not become a new
36
+ // inherited argument between this cache lookup and the compiler spawn.
37
+ env.TTSC_TSGO_ARGS = env.TTSC_TSGO_ARGS;
38
+ env.TTSC_TSGO_ARGS_CWD = env.TTSC_TSGO_ARGS_CWD;
39
+ if (runExternalCode === undefined)
40
+ return env;
41
+ if (typeof runExternalCode !== "boolean")
42
+ throw new TypeError("@ttsc/unplugin: runExternalCode must be a boolean");
43
+ // Go's environment transport trims Unicode White_Space, which excludes BOM.
44
+ const raw = env.TTSC_TSGO_ARGS?.replace(/^\p{White_Space}+|\p{White_Space}+$/gu, "");
45
+ const args = raw === undefined || raw === "" ? [] : JSON.parse(raw);
46
+ if (!Array.isArray(args) || args.some((value) => typeof value !== "string"))
47
+ throw new TypeError("@ttsc/unplugin: TTSC_TSGO_ARGS must be a JSON string array");
48
+ env.TTSC_TSGO_ARGS = JSON.stringify([
49
+ ...args,
50
+ "--runExternalCode",
51
+ String(runExternalCode),
52
+ ]);
53
+ return env;
54
+ }
55
+
56
+ exports.resolveCompilerEnvironment = resolveCompilerEnvironment;
57
+ //# sourceMappingURL=resolveCompilerEnvironment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveCompilerEnvironment.js","sources":["../../../../src/core/transform/tsconfig/resolveCompilerEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,0BAA0B,CACxC,eAAyB,EACzB,SAAA,GAA+B,OAAO,CAAC,GAAG,EAAA;AAE1C,IAAA,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS,EAAE;AAC5B,IAAA,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AAChC,QAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,EAGrB;QACH,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AAClC,YAAA,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE;YAC9B,IAAI,IAAI,KAAK,gBAAgB,IAAI,IAAI,KAAK,oBAAoB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B,KAAA,CAAC;AACF,IAAA,OAAO,GAAG;AACZ;;;;"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Capture one invocation's environment and explicit content-mapper permission.
3
+ *
4
+ * Omission preserves inherited arguments. An explicit boolean appends its
5
+ * upstream assignment after inherited arguments, keeping their order and cwd.
6
+ * Invalid transport fails instead of discarding inherited choices.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation A detached environment and ordered JSON argv preserve inherited choices; an explicit boolean assignment has final precedence.
9
+ * @evidence contracts/common.md#clear-and-simple-design Capture happens before cache selection; scratch routing derives a child copy afterward.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No process global or compiler behavior is replaced.
11
+ * @evidence contracts/common.md#meaningful-documentation Native prose documents omission, precedence, cwd and invalid transport.
12
+ * @evidence contracts/portability.md#os-neutral-implementation Windows environment names follow their native case-insensitive rule; POSIX names remain exact. JSON preserves argv without shell syntax.
13
+ * @evidence contracts/performance.md#efficient-algorithms Copying visits environment keys; Windows normalization scans them once, and an explicit permission parses and serializes argument bytes once.
14
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Every invocation observes current inherited values; cache owners compare its snapshot.
15
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The detached result transfers to its caller and acquires no handle or history.
16
+ */
17
+ function resolveCompilerEnvironment(runExternalCode, inherited = process.env) {
18
+ const env = { ...inherited };
19
+ if (process.platform === "win32") {
20
+ const selected = new Map();
21
+ for (const key of Object.keys(env)) {
22
+ const name = key.toUpperCase();
23
+ if (name === "TTSC_TSGO_ARGS" || name === "TTSC_TSGO_ARGS_CWD") {
24
+ const prior = selected.get(name);
25
+ if (prior === undefined || key < prior.key)
26
+ selected.set(name, { key, value: env[key] });
27
+ delete env[key];
28
+ }
29
+ }
30
+ for (const [name, value] of selected)
31
+ env[name] = value.value;
32
+ }
33
+ // Own absent channels too: a later process.env edit must not become a new
34
+ // inherited argument between this cache lookup and the compiler spawn.
35
+ env.TTSC_TSGO_ARGS = env.TTSC_TSGO_ARGS;
36
+ env.TTSC_TSGO_ARGS_CWD = env.TTSC_TSGO_ARGS_CWD;
37
+ if (runExternalCode === undefined)
38
+ return env;
39
+ if (typeof runExternalCode !== "boolean")
40
+ throw new TypeError("@ttsc/unplugin: runExternalCode must be a boolean");
41
+ // Go's environment transport trims Unicode White_Space, which excludes BOM.
42
+ const raw = env.TTSC_TSGO_ARGS?.replace(/^\p{White_Space}+|\p{White_Space}+$/gu, "");
43
+ const args = raw === undefined || raw === "" ? [] : JSON.parse(raw);
44
+ if (!Array.isArray(args) || args.some((value) => typeof value !== "string"))
45
+ throw new TypeError("@ttsc/unplugin: TTSC_TSGO_ARGS must be a JSON string array");
46
+ env.TTSC_TSGO_ARGS = JSON.stringify([
47
+ ...args,
48
+ "--runExternalCode",
49
+ String(runExternalCode),
50
+ ]);
51
+ return env;
52
+ }
53
+
54
+ export { resolveCompilerEnvironment };
55
+ //# sourceMappingURL=resolveCompilerEnvironment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveCompilerEnvironment.mjs","sources":["../../../../src/core/transform/tsconfig/resolveCompilerEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,0BAA0B,CACxC,eAAyB,EACzB,SAAA,GAA+B,OAAO,CAAC,GAAG,EAAA;AAE1C,IAAA,MAAM,GAAG,GAAG,EAAE,GAAG,SAAS,EAAE;AAC5B,IAAA,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AAChC,QAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,EAGrB;QACH,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;AAClC,YAAA,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,EAAE;YAC9B,IAAI,IAAI,KAAK,gBAAgB,IAAI,IAAI,KAAK,oBAAoB,EAAE;gBAC9D,MAAM,KAAK,GAAG,QAAQ,CAAC,GAA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@@ -1,8 +1,8 @@
1
1
  /**
2
- * The environment a compile runs under: the host's own, with `TEMP`, `TMP`, and
3
- * `TMPDIR` naming the compile's scratch directory. Consumers honoring these
4
- * variables use that temporary root; explicit paths or overridden child
5
- * environments are not confined by these settings.
2
+ * The environment a compile runs under: its captured snapshot, with `TEMP`,
3
+ * `TMP`, and `TMPDIR` naming the compile's scratch directory. Consumers
4
+ * honoring these variables use that temporary root; explicit paths or
5
+ * overridden child environments are not confined by these settings.
6
6
  *
7
7
  * Capture hands this copy to the compiler as `env` (samchon/ttsc#1488);
8
8
  * applying it to workers and inherited child environments belongs to the
@@ -15,7 +15,7 @@
15
15
  * @evidence contracts/common.md#meaningful-documentation The native paragraphs identify the child-process propagation boundary and explicitly distinguish it from changing the host environment.
16
16
  * @evidence contracts/portability.md#os-neutral-implementation All three native temporary-directory variables receive the same owned directory, covering Windows and Unix child consumers without constructing shell syntax or mutating the host environment.
17
17
  * @evidence contracts/performance.md#efficient-algorithms
18
- * The spread enumerates K process environment keys/values into a fresh object
18
+ * The spread enumerates K supplied environment keys/values into a fresh object
19
19
  * before three assignments. Key/value text and native environment retrieval
20
20
  * contribute costs; absence of an explicit loop is not constant work.
21
21
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work
@@ -24,4 +24,4 @@
24
24
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
25
25
  * Acquires no handle, timer or retained state of its own.
26
26
  */
27
- export declare function transformScratchEnvironment(directory: string): NodeJS.ProcessEnv;
27
+ export declare function transformScratchEnvironment(directory: string, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The environment a compile runs under: the host's own, with `TEMP`, `TMP`, and
3
- * `TMPDIR` naming the compile's scratch directory. Consumers honoring these
4
- * variables use that temporary root; explicit paths or overridden child
5
- * environments are not confined by these settings.
2
+ * The environment a compile runs under: its captured snapshot, with `TEMP`,
3
+ * `TMP`, and `TMPDIR` naming the compile's scratch directory. Consumers
4
+ * honoring these variables use that temporary root; explicit paths or
5
+ * overridden child environments are not confined by these settings.
6
6
  *
7
7
  * Capture hands this copy to the compiler as `env` (samchon/ttsc#1488);
8
8
  * applying it to workers and inherited child environments belongs to the
@@ -15,7 +15,7 @@
15
15
  * @evidence contracts/common.md#meaningful-documentation The native paragraphs identify the child-process propagation boundary and explicitly distinguish it from changing the host environment.
16
16
  * @evidence contracts/portability.md#os-neutral-implementation All three native temporary-directory variables receive the same owned directory, covering Windows and Unix child consumers without constructing shell syntax or mutating the host environment.
17
17
  * @evidence contracts/performance.md#efficient-algorithms
18
- * The spread enumerates K process environment keys/values into a fresh object
18
+ * The spread enumerates K supplied environment keys/values into a fresh object
19
19
  * before three assignments. Key/value text and native environment retrieval
20
20
  * contribute costs; absence of an explicit loop is not constant work.
21
21
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work
@@ -24,4 +24,4 @@
24
24
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
25
25
  * Acquires no handle, timer or retained state of its own.
26
26
  */
27
- export declare function transformScratchEnvironment(directory: string): NodeJS.ProcessEnv;
27
+ export declare function transformScratchEnvironment(directory: string, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The environment a compile runs under: the host's own, with `TEMP`, `TMP`, and
3
- * `TMPDIR` naming the compile's scratch directory. Consumers honoring these
4
- * variables use that temporary root; explicit paths or overridden child
5
- * environments are not confined by these settings.
2
+ * The environment a compile runs under: its captured snapshot, with `TEMP`,
3
+ * `TMP`, and `TMPDIR` naming the compile's scratch directory. Consumers
4
+ * honoring these variables use that temporary root; explicit paths or
5
+ * overridden child environments are not confined by these settings.
6
6
  *
7
7
  * Capture hands this copy to the compiler as `env` (samchon/ttsc#1488);
8
8
  * applying it to workers and inherited child environments belongs to the
@@ -15,7 +15,7 @@
15
15
  * @evidence contracts/common.md#meaningful-documentation The native paragraphs identify the child-process propagation boundary and explicitly distinguish it from changing the host environment.
16
16
  * @evidence contracts/portability.md#os-neutral-implementation All three native temporary-directory variables receive the same owned directory, covering Windows and Unix child consumers without constructing shell syntax or mutating the host environment.
17
17
  * @evidence contracts/performance.md#efficient-algorithms
18
- * The spread enumerates K process environment keys/values into a fresh object
18
+ * The spread enumerates K supplied environment keys/values into a fresh object
19
19
  * before three assignments. Key/value text and native environment retrieval
20
20
  * contribute costs; absence of an explicit loop is not constant work.
21
21
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work
@@ -24,4 +24,4 @@
24
24
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
25
25
  * Acquires no handle, timer or retained state of its own.
26
26
  */
27
- export declare function transformScratchEnvironment(directory: string): NodeJS.ProcessEnv;
27
+ export declare function transformScratchEnvironment(directory: string, inherited?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * The environment a compile runs under: the host's own, with `TEMP`, `TMP`, and
5
- * `TMPDIR` naming the compile's scratch directory. Consumers honoring these
6
- * variables use that temporary root; explicit paths or overridden child
7
- * environments are not confined by these settings.
4
+ * The environment a compile runs under: its captured snapshot, with `TEMP`,
5
+ * `TMP`, and `TMPDIR` naming the compile's scratch directory. Consumers
6
+ * honoring these variables use that temporary root; explicit paths or
7
+ * overridden child environments are not confined by these settings.
8
8
  *
9
9
  * Capture hands this copy to the compiler as `env` (samchon/ttsc#1488);
10
10
  * applying it to workers and inherited child environments belongs to the
@@ -17,7 +17,7 @@
17
17
  * @evidence contracts/common.md#meaningful-documentation The native paragraphs identify the child-process propagation boundary and explicitly distinguish it from changing the host environment.
18
18
  * @evidence contracts/portability.md#os-neutral-implementation All three native temporary-directory variables receive the same owned directory, covering Windows and Unix child consumers without constructing shell syntax or mutating the host environment.
19
19
  * @evidence contracts/performance.md#efficient-algorithms
20
- * The spread enumerates K process environment keys/values into a fresh object
20
+ * The spread enumerates K supplied environment keys/values into a fresh object
21
21
  * before three assignments. Key/value text and native environment retrieval
22
22
  * contribute costs; absence of an explicit loop is not constant work.
23
23
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work
@@ -26,9 +26,9 @@
26
26
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
27
27
  * Acquires no handle, timer or retained state of its own.
28
28
  */
29
- function transformScratchEnvironment(directory) {
29
+ function transformScratchEnvironment(directory, inherited = process.env) {
30
30
  return {
31
- ...process.env,
31
+ ...inherited,
32
32
  TEMP: directory,
33
33
  TMP: directory,
34
34
  TMPDIR: directory,
@@ -1 +1 @@
1
- {"version":3,"file":"transformScratchEnvironment.js","sources":["../../../../src/core/transform/tsconfig/transformScratchEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,2BAA2B,CACzC,SAAiB,EAAA;IAEjB,OAAO;QACL,GAAG,OAAO,CAAC,GAAG;AACd,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,MAAM,EAAE,SAAS;KAClB;AACH;;;;"}
1
+ {"version":3,"file":"transformScratchEnvironment.js","sources":["../../../../src/core/transform/tsconfig/transformScratchEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,2BAA2B,CACzC,SAAiB,EACjB,SAAA,GAA+B,OAAO,CAAC,GAAG,EAAA;IAE1C,OAAO;AACL,QAAA,GAAG,SAAS;AACZ,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,MAAM,EAAE,SAAS;KAClB;AACH;;;;"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The environment a compile runs under: the host's own, with `TEMP`, `TMP`, and
3
- * `TMPDIR` naming the compile's scratch directory. Consumers honoring these
4
- * variables use that temporary root; explicit paths or overridden child
5
- * environments are not confined by these settings.
2
+ * The environment a compile runs under: its captured snapshot, with `TEMP`,
3
+ * `TMP`, and `TMPDIR` naming the compile's scratch directory. Consumers
4
+ * honoring these variables use that temporary root; explicit paths or
5
+ * overridden child environments are not confined by these settings.
6
6
  *
7
7
  * Capture hands this copy to the compiler as `env` (samchon/ttsc#1488);
8
8
  * applying it to workers and inherited child environments belongs to the
@@ -15,7 +15,7 @@
15
15
  * @evidence contracts/common.md#meaningful-documentation The native paragraphs identify the child-process propagation boundary and explicitly distinguish it from changing the host environment.
16
16
  * @evidence contracts/portability.md#os-neutral-implementation All three native temporary-directory variables receive the same owned directory, covering Windows and Unix child consumers without constructing shell syntax or mutating the host environment.
17
17
  * @evidence contracts/performance.md#efficient-algorithms
18
- * The spread enumerates K process environment keys/values into a fresh object
18
+ * The spread enumerates K supplied environment keys/values into a fresh object
19
19
  * before three assignments. Key/value text and native environment retrieval
20
20
  * contribute costs; absence of an explicit loop is not constant work.
21
21
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work
@@ -24,9 +24,9 @@
24
24
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
25
25
  * Acquires no handle, timer or retained state of its own.
26
26
  */
27
- function transformScratchEnvironment(directory) {
27
+ function transformScratchEnvironment(directory, inherited = process.env) {
28
28
  return {
29
- ...process.env,
29
+ ...inherited,
30
30
  TEMP: directory,
31
31
  TMP: directory,
32
32
  TMPDIR: directory,
@@ -1 +1 @@
1
- {"version":3,"file":"transformScratchEnvironment.mjs","sources":["../../../../src/core/transform/tsconfig/transformScratchEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,2BAA2B,CACzC,SAAiB,EAAA;IAEjB,OAAO;QACL,GAAG,OAAO,CAAC,GAAG;AACd,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,MAAM,EAAE,SAAS;KAClB;AACH;;;;"}
1
+ {"version":3,"file":"transformScratchEnvironment.mjs","sources":["../../../../src/core/transform/tsconfig/transformScratchEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACG,SAAU,2BAA2B,CACzC,SAAiB,EACjB,SAAA,GAA+B,OAAO,CAAC,GAAG,EAAA;IAE1C,OAAO;AACL,QAAA,GAAG,SAAS;AACZ,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,MAAM,EAAE,SAAS;KAClB;AACH;;;;"}
@@ -189,6 +189,9 @@ function recordAvailable(file) {
189
189
  function recordOf(cached, inputs) {
190
190
  const dependencies = cached.externalDependencyInputs ?? [];
191
191
  const record = {
192
+ ...(cached.compilerArguments === undefined
193
+ ? {}
194
+ : { compilerArguments: cached.compilerArguments }),
192
195
  ...(dependencies.length === 0 ? {} : { dependencies }),
193
196
  inputs: {},
194
197
  membership: cached.projectDirectories === undefined
@@ -1 +1 @@
1
- {"version":3,"file":"notifyProjectRecord.js","sources":["../../../../src/core/transform/watch/notifyProjectRecord.ts"],"sourcesContent":[null],"names":["createHostPathIdentityContext","projectMembershipInput","projectRecordFile","writeProjectRecordFile","warnUnwritableProjectRecord","TtscProjectRecordUnwritableError","membershipRecordDigest","hostInputStateHash","MISSING_INPUT_STATE","pathIdentityKey"],"mappings":";;;;;;;;;;;;;;AAiBA;;;AAGG;AACH,MAAM,MAAM,GAAG,IAAI,OAAO,EAqBvB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,mBAAmB,CACjC,OAAmD,EACnD,MAAkC,EAClC,MAAe,EACf,MAAuC,EACvC,gBAAA,GAA8C,EAAE,EAAA;;;AAIhD,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI;AAAE,QAAA,OAAO,KAAK;IACnD,IAAI,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;AAC/B,IAAA,IAAI,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":3,"file":"notifyProjectRecord.js","sources":["../../../../src/core/transform/watch/notifyProjectRecord.ts"],"sourcesContent":[null],"names":["createHostPathIdentityContext","projectMembershipInput","projectRecordFile","writeProjectRecordFile","warnUnwritableProjectRecord","TtscProjectRecordUnwritableError","membershipRecordDigest","hostInputStateHash","MISSING_INPUT_STATE","pathIdentityKey"],"mappings":";;;;;;;;;;;;;;AAiBA;;;AAGG;AACH,MAAM,MAAM,GAAG,IAAI,OAAO,EAqBvB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,mBAAmB,CACjC,OAAmD,EACnD,MAAkC,EAClC,MAAe,EACf,MAAuC,EACvC,gBAAA,GAA8C,EAAE,EAAA;;;AAIhD,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI;AAAE,QAAA,OAAO,KAAK;IACnD,IAAI,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;AAC/B,IAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,QAAA,MAAM,UAAU,GAAGA,2DAA6B,EAAE;AAClD,QAAA,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,KACnC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CACvC;;;AAGD,QAAA,MAAM,UAAU,GAAGC,6CAAsB,CAAC,MAAM,CAAC;AACjD,QAAA,MAAM,GAAG;YACP,SAAS;AACT,YAAA,MAAM,EAAE,UAAU,KAAK,SAAS,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,EAAE,UAAU,CAAC;AACzE,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,SAAS,EAAE,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC;YACxD,OAAO,EAAE,IAAI,GAAG,EAAE;SACnB;AACD,QAAA,MAA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MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,QAAQ;IAC9C;AACA,IAAA,OAAO,MAAM;AACf;AAEA;;;;;AAKG;AACH,SAAS,mBAAmB,CAC1B,KAAqB,EACrB,UAA4D,EAAA;AAE5D,IAAA,IAAI,KAAK,CAAC,QAAQ,EAAE,KAAK,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;IACrD,MAAM,IAAI,GAAGC,qCAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAIC,uCAAmB;AAClE,IAAA,MAAM,OAAO,GAAG,IAAI,KAAKA,uCAAmB;IAC5C,OAAO;AACL,QAAA,QAAQ,EAAE;AACR,YAAA,QAAQ,EACN,KAAK,CAAC,QAAQ,EAAE,QAAQ,IAAIC,+BAAe,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC;YACrE,OAAO;AACP,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;AAC9B,YAAA,IAAI,OAAO,GAAG,EAAE,WAAW,EAAE,SAAkB,EAAE,GAAG,EAAE,CAAC;AACxD,SAAA;QACD,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB;AACH;;;;"}
@@ -187,6 +187,9 @@ function recordAvailable(file) {
187
187
  function recordOf(cached, inputs) {
188
188
  const dependencies = cached.externalDependencyInputs ?? [];
189
189
  const record = {
190
+ ...(cached.compilerArguments === undefined
191
+ ? {}
192
+ : { compilerArguments: cached.compilerArguments }),
190
193
  ...(dependencies.length === 0 ? {} : { dependencies }),
191
194
  inputs: {},
192
195
  membership: cached.projectDirectories === undefined
@@ -1 +1 @@
1
- {"version":3,"file":"notifyProjectRecord.mjs","sources":["../../../../src/core/transform/watch/notifyProjectRecord.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAiBA;;;AAGG;AACH,MAAM,MAAM,GAAG,IAAI,OAAO,EAqBvB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAQ,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC;YACrE,OAAO;AACP,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;AAC9B,YAAA,IAAI,OAAO,GAAG,EAAE,WAAW,EAAE,SAAkB,EAAE,GAAG,EAAE,CAAC;AACxD,SAAA;QACD,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB;AACH;;;;"}
1
+ {"version":3,"file":"notifyProjectRecord.mjs","sources":["../../../../src/core/transform/watch/notifyProjectRecord.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAiBA;;;AAGG;AACH,MAAM,MAAM,GAAG,IAAI,OAAO,EAqBvB;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEG;AACG,SAAU,mBAAmB,CACjC,OAAmD,EACnD,MAAkC,EAClC,MAAe,EACf,MAAuC,EACvC,gBAAA,GAA8C,EAAE,EAAA;;;AAIhD,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI;AAAE,QAAA,OAAO,KAAK;IACnD,IAAI,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;AAC/B,IAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,QAAA,MAAM,UAAU,GAAG,6BAA6B,EAAE;AAClD,QAAA,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,KACnC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CACvC;;;AAGD,QAAA,MAAM,UAAU,GAAG,sBAAsB,CAAC,MAAM,CAAC;AACjD,QAAA,MAAM,GAAG;YACP,SAAS;AACT,YAAA,MAAM,EAAE,UAAU,KAAK,SAAS,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,EAAE,UAAU,CAAC;AACzE,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,SAAS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E,MAAM,CAAC,QAAQ;KAC1B;AACD,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;AAC1B,QAAA,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;YAC9B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,QAAQ;IAC9C;AACA,IAAA,OAAO,MAAM;AACf;AAEA;;;;;AAKG;AACH,SAAS,mBAAmB,CAC1B,KAAqB,EACrB,UAA4D,EAAA;AAE5D,IAAA,IAAI,KAAK,CAAC,QAAQ,EAAE,KAAK,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;IACrD,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,mBAAmB;AAClE,IAAA,MAAM,OAAO,GAAG,IAAI,KAAK,mBAAmB;IAC5C,OAAO;AACL,QAAA,QAAQ,EAAE;AACR,YAAA,QAAQ,EACN,KAAK,CAAC,QAAQ,EAAE,QAAQ,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC;YACrE,OAAO;AACP,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;AAC9B,YAAA,IAAI,OAAO,GAAG,EAAE,WAAW,EAAE,SAAkB,EAAE,GAAG,EAAE,CAAC;AACxD,SAAA;QACD,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB;AACH;;;;"}
@@ -77,8 +77,21 @@ export interface ITtscProjectMembershipPolicy {
77
77
  }>;
78
78
  /** Absolute directory exclusions represented for project-root discovery. */
79
79
  readonly excludedDirectories: readonly string[];
80
- /** Lowercased extensions a file needs to be a possible program input. */
80
+ /** Literal suffix spellings a file needs to be a possible program input. */
81
81
  readonly inputExtensions: readonly string[];
82
+ /**
83
+ * Explicit extension options before compiler defaults, plus declared mapper
84
+ * suffixes. Missing options use the pinned compiler's defaults. Optional for
85
+ * older policy producers, whose extension lists remain their own authority.
86
+ */
87
+ readonly extensionOptionOrigins?: Readonly<{
88
+ allowJs?: boolean;
89
+ checkJs?: boolean;
90
+ resolveJsonModule?: boolean;
91
+ module?: string;
92
+ moduleResolution?: string;
93
+ mapperExtensions: readonly string[];
94
+ }>;
82
95
  /**
83
96
  * Every config file consulted to produce this policy, including inherited
84
97
  * declarations and unresolved file candidates. A query can stop at its own
@@ -77,8 +77,21 @@ export interface ITtscProjectMembershipPolicy {
77
77
  }>;
78
78
  /** Absolute directory exclusions represented for project-root discovery. */
79
79
  readonly excludedDirectories: readonly string[];
80
- /** Lowercased extensions a file needs to be a possible program input. */
80
+ /** Literal suffix spellings a file needs to be a possible program input. */
81
81
  readonly inputExtensions: readonly string[];
82
+ /**
83
+ * Explicit extension options before compiler defaults, plus declared mapper
84
+ * suffixes. Missing options use the pinned compiler's defaults. Optional for
85
+ * older policy producers, whose extension lists remain their own authority.
86
+ */
87
+ readonly extensionOptionOrigins?: Readonly<{
88
+ allowJs?: boolean;
89
+ checkJs?: boolean;
90
+ resolveJsonModule?: boolean;
91
+ module?: string;
92
+ moduleResolution?: string;
93
+ mapperExtensions: readonly string[];
94
+ }>;
82
95
  /**
83
96
  * Every config file consulted to produce this policy, including inherited
84
97
  * declarations and unresolved file candidates. A query can stop at its own
@@ -77,8 +77,21 @@ export interface ITtscProjectMembershipPolicy {
77
77
  }>;
78
78
  /** Absolute directory exclusions represented for project-root discovery. */
79
79
  readonly excludedDirectories: readonly string[];
80
- /** Lowercased extensions a file needs to be a possible program input. */
80
+ /** Literal suffix spellings a file needs to be a possible program input. */
81
81
  readonly inputExtensions: readonly string[];
82
+ /**
83
+ * Explicit extension options before compiler defaults, plus declared mapper
84
+ * suffixes. Missing options use the pinned compiler's defaults. Optional for
85
+ * older policy producers, whose extension lists remain their own authority.
86
+ */
87
+ readonly extensionOptionOrigins?: Readonly<{
88
+ allowJs?: boolean;
89
+ checkJs?: boolean;
90
+ resolveJsonModule?: boolean;
91
+ module?: string;
92
+ moduleResolution?: string;
93
+ mapperExtensions: readonly string[];
94
+ }>;
82
95
  /**
83
96
  * Every config file consulted to produce this policy, including inherited
84
97
  * declarations and unresolved file candidates. A query can stop at its own
@@ -9,9 +9,10 @@ import type { ITtscProjectMembershipPolicy } from "./ITtscProjectMembershipPolic
9
9
  * turns it off gets the narrower rule for the same reason.
10
10
  *
11
11
  * @evidence contracts/common.md#principled-implementation
12
- * Explicit boolean overlays update extension admission and output path
13
- * overlays update their own exclusion provenance. Null removes an output
14
- * directory; missing legacy provenance preserves explicit exclusions.
12
+ * Extension option provenance preserves explicit false and null clearing
13
+ * while recomputing implicit JavaScript and JSON defaults. Mapper suffixes
14
+ * remain independent. Output paths update their own exclusion provenance;
15
+ * missing legacy provenance preserves authored extension/exclusion lists.
15
16
  *
16
17
  * @evidence contracts/common.md#clear-and-simple-design
17
18
  * The operation clones extension and exclusion state rather than mutating
@@ -9,9 +9,10 @@ import type { ITtscProjectMembershipPolicy } from "./ITtscProjectMembershipPolic
9
9
  * turns it off gets the narrower rule for the same reason.
10
10
  *
11
11
  * @evidence contracts/common.md#principled-implementation
12
- * Explicit boolean overlays update extension admission and output path
13
- * overlays update their own exclusion provenance. Null removes an output
14
- * directory; missing legacy provenance preserves explicit exclusions.
12
+ * Extension option provenance preserves explicit false and null clearing
13
+ * while recomputing implicit JavaScript and JSON defaults. Mapper suffixes
14
+ * remain independent. Output paths update their own exclusion provenance;
15
+ * missing legacy provenance preserves authored extension/exclusion lists.
15
16
  *
16
17
  * @evidence contracts/common.md#clear-and-simple-design
17
18
  * The operation clones extension and exclusion state rather than mutating
@@ -9,9 +9,10 @@ import type { ITtscProjectMembershipPolicy } from "./ITtscProjectMembershipPolic
9
9
  * turns it off gets the narrower rule for the same reason.
10
10
  *
11
11
  * @evidence contracts/common.md#principled-implementation
12
- * Explicit boolean overlays update extension admission and output path
13
- * overlays update their own exclusion provenance. Null removes an output
14
- * directory; missing legacy provenance preserves explicit exclusions.
12
+ * Extension option provenance preserves explicit false and null clearing
13
+ * while recomputing implicit JavaScript and JSON defaults. Mapper suffixes
14
+ * remain independent. Output paths update their own exclusion provenance;
15
+ * missing legacy provenance preserves authored extension/exclusion lists.
15
16
  *
16
17
  * @evidence contracts/common.md#clear-and-simple-design
17
18
  * The operation clones extension and exclusion state rather than mutating