@ttsc/unplugin 0.36.3 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/lib/api.js +5 -2
  2. package/lib/api.js.map +1 -1
  3. package/lib/api.mjs +1 -1
  4. package/lib/core/bridge/TtscProjectRecord.d.cts +7 -0
  5. package/lib/core/bridge/TtscProjectRecord.d.mts +7 -0
  6. package/lib/core/bridge/TtscProjectRecord.d.ts +7 -0
  7. package/lib/core/bridge/projectRecordArgumentsMatch.d.cts +8 -5
  8. package/lib/core/bridge/projectRecordArgumentsMatch.d.mts +8 -5
  9. package/lib/core/bridge/projectRecordArgumentsMatch.d.ts +8 -5
  10. package/lib/core/bridge/projectRecordArgumentsMatch.js +15 -8
  11. package/lib/core/bridge/projectRecordArgumentsMatch.js.map +1 -1
  12. package/lib/core/bridge/projectRecordArgumentsMatch.mjs +15 -8
  13. package/lib/core/bridge/projectRecordArgumentsMatch.mjs.map +1 -1
  14. package/lib/core/bridge/readProjectRecordFile.js +8 -1
  15. package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
  16. package/lib/core/bridge/readProjectRecordFile.mjs +8 -1
  17. package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
  18. package/lib/core/index.js +5 -2
  19. package/lib/core/index.js.map +1 -1
  20. package/lib/core/index.mjs +1 -1
  21. package/lib/core/next/next.js +2 -2
  22. package/lib/core/next/next.js.map +1 -1
  23. package/lib/core/next/next.mjs +1 -1
  24. package/lib/core/rollup/rollupDeliveryOptions.js +2 -2
  25. package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
  26. package/lib/core/rollup/rollupDeliveryOptions.mjs +1 -1
  27. package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +12 -4
  28. package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +12 -4
  29. package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +12 -4
  30. package/lib/core/transform/cache/selectCachedGenerationAction.js +16 -9
  31. package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
  32. package/lib/core/transform/cache/selectCachedGenerationAction.mjs +16 -9
  33. package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
  34. package/lib/core/transform/clock/filesystemListingDevices.d.cts +24 -0
  35. package/lib/core/transform/clock/filesystemListingDevices.d.mts +24 -0
  36. package/lib/core/transform/clock/filesystemListingDevices.d.ts +24 -0
  37. package/lib/core/transform/clock/filesystemListingDevices.js +36 -0
  38. package/lib/core/transform/clock/filesystemListingDevices.js.map +1 -0
  39. package/lib/core/transform/clock/filesystemListingDevices.mjs +34 -0
  40. package/lib/core/transform/clock/filesystemListingDevices.mjs.map +1 -0
  41. package/lib/core/transform/clock/refreshFilesystemClockReference.d.cts +10 -4
  42. package/lib/core/transform/clock/refreshFilesystemClockReference.d.mts +10 -4
  43. package/lib/core/transform/clock/refreshFilesystemClockReference.d.ts +10 -4
  44. package/lib/core/transform/clock/refreshFilesystemClockReference.js +40 -4
  45. package/lib/core/transform/clock/refreshFilesystemClockReference.js.map +1 -1
  46. package/lib/core/transform/clock/refreshFilesystemClockReference.mjs +40 -4
  47. package/lib/core/transform/clock/refreshFilesystemClockReference.mjs.map +1 -1
  48. package/lib/core/transform/generation/captureTransformGeneration.js +8 -2
  49. package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
  50. package/lib/core/transform/generation/captureTransformGeneration.mjs +8 -2
  51. package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
  52. package/lib/core/transform/inputs/pluginSourceFilesDigest.d.cts +7 -1
  53. package/lib/core/transform/inputs/pluginSourceFilesDigest.d.mts +7 -1
  54. package/lib/core/transform/inputs/pluginSourceFilesDigest.d.ts +7 -1
  55. package/lib/core/transform/inputs/pluginSourceFilesDigest.js +66 -4
  56. package/lib/core/transform/inputs/pluginSourceFilesDigest.js.map +1 -1
  57. package/lib/core/transform/inputs/pluginSourceFilesDigest.mjs +66 -4
  58. package/lib/core/transform/inputs/pluginSourceFilesDigest.mjs.map +1 -1
  59. package/lib/core/transform/session/claimSharedCompile.d.cts +12 -1
  60. package/lib/core/transform/session/claimSharedCompile.d.mts +12 -1
  61. package/lib/core/transform/session/claimSharedCompile.d.ts +12 -1
  62. package/lib/core/transform/session/claimSharedCompile.js +22 -4
  63. package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
  64. package/lib/core/transform/session/claimSharedCompile.mjs +22 -4
  65. package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
  66. package/lib/core/transform/transformTtsc.js +3 -2
  67. package/lib/core/transform/transformTtsc.js.map +1 -1
  68. package/lib/core/transform/transformTtsc.mjs +2 -1
  69. package/lib/core/transform/transformTtsc.mjs.map +1 -1
  70. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.cts +1 -17
  71. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.mts +1 -17
  72. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.ts +1 -17
  73. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js +7 -53
  74. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js.map +1 -1
  75. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs +1 -54
  76. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs.map +1 -1
  77. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.cts +10 -2
  78. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.mts +10 -2
  79. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.ts +10 -2
  80. package/lib/core/transform/validation/captureUniversalHostInputValidation.js +19 -2
  81. package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
  82. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +19 -2
  83. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
  84. package/lib/core/transform/validation/environmentInputMismatch.d.cts +23 -0
  85. package/lib/core/transform/validation/environmentInputMismatch.d.mts +23 -0
  86. package/lib/core/transform/validation/environmentInputMismatch.d.ts +23 -0
  87. package/lib/core/transform/validation/environmentInputMismatch.js +46 -0
  88. package/lib/core/transform/validation/environmentInputMismatch.js.map +1 -0
  89. package/lib/core/transform/validation/environmentInputMismatch.mjs +44 -0
  90. package/lib/core/transform/validation/environmentInputMismatch.mjs.map +1 -0
  91. package/lib/core/transform/validation/isEnvironmentInputs.d.cts +15 -0
  92. package/lib/core/transform/validation/isEnvironmentInputs.d.mts +15 -0
  93. package/lib/core/transform/validation/isEnvironmentInputs.d.ts +15 -0
  94. package/lib/core/transform/validation/isEnvironmentInputs.js +26 -0
  95. package/lib/core/transform/validation/isEnvironmentInputs.js.map +1 -0
  96. package/lib/core/transform/validation/isEnvironmentInputs.mjs +24 -0
  97. package/lib/core/transform/validation/isEnvironmentInputs.mjs.map +1 -0
  98. package/lib/core/transform/watch/TtscTransformHooks.d.cts +6 -4
  99. package/lib/core/transform/watch/TtscTransformHooks.d.mts +6 -4
  100. package/lib/core/transform/watch/TtscTransformHooks.d.ts +6 -4
  101. package/lib/core/transform/watch/handWatchInputs.d.cts +3 -1
  102. package/lib/core/transform/watch/handWatchInputs.d.mts +3 -1
  103. package/lib/core/transform/watch/handWatchInputs.d.ts +3 -1
  104. package/lib/core/transform/watch/handWatchInputs.js +7 -2
  105. package/lib/core/transform/watch/handWatchInputs.js.map +1 -1
  106. package/lib/core/transform/watch/handWatchInputs.mjs +7 -2
  107. package/lib/core/transform/watch/handWatchInputs.mjs.map +1 -1
  108. package/lib/core/transform/watch/notifyFailedGenerationInputs.js +3 -1
  109. package/lib/core/transform/watch/notifyFailedGenerationInputs.js.map +1 -1
  110. package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs +3 -1
  111. package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs.map +1 -1
  112. package/lib/core/transform/watch/notifyProjectRecord.js +4 -0
  113. package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
  114. package/lib/core/transform/watch/notifyProjectRecord.mjs +4 -0
  115. package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
  116. package/lib/core/transform/watch/notifyWatchInputs.js +3 -1
  117. package/lib/core/transform/watch/notifyWatchInputs.js.map +1 -1
  118. package/lib/core/transform/watch/notifyWatchInputs.mjs +3 -1
  119. package/lib/core/transform/watch/notifyWatchInputs.mjs.map +1 -1
  120. package/lib/core/turbopack/turbopack.js +2 -2
  121. package/lib/core/turbopack/turbopack.js.map +1 -1
  122. package/lib/core/turbopack/turbopack.mjs +1 -1
  123. package/lib/core/unplugin.js +3 -3
  124. package/lib/core/unplugin.js.map +1 -1
  125. package/lib/core/unplugin.mjs +1 -1
  126. package/package.json +3 -3
  127. package/src/core/bridge/TtscProjectRecord.ts +8 -0
  128. package/src/core/bridge/projectRecordArgumentsMatch.ts +19 -7
  129. package/src/core/bridge/readProjectRecordFile.ts +8 -1
  130. package/src/core/transform/cache/selectCachedGenerationAction.ts +19 -4
  131. package/src/core/transform/clock/filesystemListingDevices.ts +38 -0
  132. package/src/core/transform/clock/refreshFilesystemClockReference.ts +42 -4
  133. package/src/core/transform/generation/captureTransformGeneration.ts +8 -1
  134. package/src/core/transform/inputs/pluginSourceFilesDigest.ts +73 -5
  135. package/src/core/transform/session/claimSharedCompile.ts +35 -5
  136. package/src/core/transform/transformTtsc.ts +1 -0
  137. package/src/core/transform/tsconfig/resolveCompilerEnvironment.ts +1 -61
  138. package/src/core/transform/validation/captureUniversalHostInputValidation.ts +21 -1
  139. package/src/core/transform/validation/environmentInputMismatch.ts +43 -0
  140. package/src/core/transform/validation/isEnvironmentInputs.ts +28 -0
  141. package/src/core/transform/watch/TtscTransformHooks.ts +6 -3
  142. package/src/core/transform/watch/handWatchInputs.ts +5 -1
  143. package/src/core/transform/watch/notifyFailedGenerationInputs.ts +3 -0
  144. package/src/core/transform/watch/notifyProjectRecord.ts +5 -0
  145. package/src/core/transform/watch/notifyWatchInputs.ts +8 -1
package/lib/api.js CHANGED
@@ -21,7 +21,7 @@ var collectProjectInputHashSnapshot = require('./core/transform/project/collectP
21
21
  var isProjectWalkPath = require('./core/transform/project/isProjectWalkPath.js');
22
22
  var transformTtsc = require('./core/transform/transformTtsc.js');
23
23
  var compilerEnvironmentIdentity = require('./core/transform/tsconfig/compilerEnvironmentIdentity.js');
24
- var resolveCompilerEnvironment = require('./core/transform/tsconfig/resolveCompilerEnvironment.js');
24
+ var ttsc = require('ttsc');
25
25
  var captureWatchInputBaseline = require('./core/transform/watch/captureWatchInputBaseline.js');
26
26
  var captureWatchInputFileBaseline = require('./core/transform/watch/captureWatchInputFileBaseline.js');
27
27
  var isWatchInputKeyBaseline = require('./core/transform/watch/isWatchInputKeyBaseline.js');
@@ -59,7 +59,10 @@ exports.collectProjectInputHashSnapshot = collectProjectInputHashSnapshot.collec
59
59
  exports.isProjectWalkPath = isProjectWalkPath.isProjectWalkPath;
60
60
  exports.transformTtsc = transformTtsc.transformTtsc;
61
61
  exports.compilerEnvironmentIdentity = compilerEnvironmentIdentity.compilerEnvironmentIdentity;
62
- exports.resolveCompilerEnvironment = resolveCompilerEnvironment.resolveCompilerEnvironment;
62
+ Object.defineProperty(exports, "resolveCompilerEnvironment", {
63
+ enumerable: true,
64
+ get: function () { return ttsc.resolveCompilerEnvironment; }
65
+ });
63
66
  exports.captureWatchInputBaseline = captureWatchInputBaseline.captureWatchInputBaseline;
64
67
  exports.captureWatchInputFileBaseline = captureWatchInputFileBaseline.captureWatchInputFileBaseline;
65
68
  exports.isWatchInputKeyBaseline = isWatchInputKeyBaseline.isWatchInputKeyBaseline;
package/lib/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"api.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/api.mjs CHANGED
@@ -19,7 +19,7 @@ export { collectProjectInputHashSnapshot } from './core/transform/project/collec
19
19
  export { isProjectWalkPath } from './core/transform/project/isProjectWalkPath.mjs';
20
20
  export { transformTtsc } from './core/transform/transformTtsc.mjs';
21
21
  export { compilerEnvironmentIdentity } from './core/transform/tsconfig/compilerEnvironmentIdentity.mjs';
22
- export { resolveCompilerEnvironment } from './core/transform/tsconfig/resolveCompilerEnvironment.mjs';
22
+ export { resolveCompilerEnvironment } from 'ttsc';
23
23
  export { captureWatchInputBaseline } from './core/transform/watch/captureWatchInputBaseline.mjs';
24
24
  export { captureWatchInputFileBaseline } from './core/transform/watch/captureWatchInputFileBaseline.mjs';
25
25
  export { isWatchInputKeyBaseline } from './core/transform/watch/isWatchInputKeyBaseline.mjs';
@@ -59,6 +59,13 @@ export interface TtscProjectRecord {
59
59
  * compiles again (samchon/ttsc#1743). They only say what to read.
60
60
  */
61
61
  dependencies?: readonly string[];
62
+ /**
63
+ * The environment variables the generation's plugins read through `ctx.Env`
64
+ * (the envelope's `environmentInputs`), with the value read or null when
65
+ * unset; absent when they read none. A later process proves each against its
66
+ * own compiler environment before the record may stand for the output.
67
+ */
68
+ environmentInputs?: Record<string, string | null>;
62
69
  /**
63
70
  * Evidenced delivery inputs, keyed by absolute path, with the state the
64
71
  * generation recorded for them. An input whose generation recorded no state,
@@ -59,6 +59,13 @@ export interface TtscProjectRecord {
59
59
  * compiles again (samchon/ttsc#1743). They only say what to read.
60
60
  */
61
61
  dependencies?: readonly string[];
62
+ /**
63
+ * The environment variables the generation's plugins read through `ctx.Env`
64
+ * (the envelope's `environmentInputs`), with the value read or null when
65
+ * unset; absent when they read none. A later process proves each against its
66
+ * own compiler environment before the record may stand for the output.
67
+ */
68
+ environmentInputs?: Record<string, string | null>;
62
69
  /**
63
70
  * Evidenced delivery inputs, keyed by absolute path, with the state the
64
71
  * generation recorded for them. An input whose generation recorded no state,
@@ -59,6 +59,13 @@ export interface TtscProjectRecord {
59
59
  * compiles again (samchon/ttsc#1743). They only say what to read.
60
60
  */
61
61
  dependencies?: readonly string[];
62
+ /**
63
+ * The environment variables the generation's plugins read through `ctx.Env`
64
+ * (the envelope's `environmentInputs`), with the value read or null when
65
+ * unset; absent when they read none. A later process proves each against its
66
+ * own compiler environment before the record may stand for the output.
67
+ */
68
+ environmentInputs?: Record<string, string | null>;
62
69
  /**
63
70
  * Evidenced delivery inputs, keyed by absolute path, with the state the
64
71
  * generation recorded for them. An input whose generation recorded no state,
@@ -5,13 +5,16 @@ import type { TtscProjectRecord } from "./TtscProjectRecord.cjs";
5
5
  * A supplied identity describes the active adapter's explicit override too.
6
6
  * Generic detached readers instead replay the recorded override against current
7
7
  * inheritance. Older records lack that authority and require a new delivery.
8
+ * Every environment variable the generation's plugins read must also still have
9
+ * its recorded value, or stay unset, in the current compiler environment: the
10
+ * record stands for output those reads produced.
8
11
  *
9
- * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override; absent witnesses never certify unknown prior arguments.
12
+ * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override, and recorded environment reads must hold in the current compiler environment; absent witnesses never certify unknown prior arguments.
10
13
  * @evidence contracts/common.md#clear-and-simple-design One predicate serves detached proof and watching bridge admission before filesystem evidence can authorize host cache restoration.
11
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission.
12
- * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison and legacy migration.
13
- * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses.
14
- * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners.
14
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission, and a changed environment read is not excused by matching argument transport.
15
+ * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison, environment reads and legacy migration.
16
+ * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses; recorded reads compare under the same native name rule.
17
+ * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners. Recorded reads add one environment snapshot and a lookup per name, only when the record carries any.
15
18
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work Current inheritance is observed on each generic proof; no prior environment verdict is retained.
16
19
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only call-local environment/encoding data is allocated; the record owner retains the witness.
17
20
  */
@@ -5,13 +5,16 @@ import type { TtscProjectRecord } from "./TtscProjectRecord.mjs";
5
5
  * A supplied identity describes the active adapter's explicit override too.
6
6
  * Generic detached readers instead replay the recorded override against current
7
7
  * inheritance. Older records lack that authority and require a new delivery.
8
+ * Every environment variable the generation's plugins read must also still have
9
+ * its recorded value, or stay unset, in the current compiler environment: the
10
+ * record stands for output those reads produced.
8
11
  *
9
- * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override; absent witnesses never certify unknown prior arguments.
12
+ * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override, and recorded environment reads must hold in the current compiler environment; absent witnesses never certify unknown prior arguments.
10
13
  * @evidence contracts/common.md#clear-and-simple-design One predicate serves detached proof and watching bridge admission before filesystem evidence can authorize host cache restoration.
11
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission.
12
- * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison and legacy migration.
13
- * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses.
14
- * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners.
14
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission, and a changed environment read is not excused by matching argument transport.
15
+ * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison, environment reads and legacy migration.
16
+ * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses; recorded reads compare under the same native name rule.
17
+ * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners. Recorded reads add one environment snapshot and a lookup per name, only when the record carries any.
15
18
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work Current inheritance is observed on each generic proof; no prior environment verdict is retained.
16
19
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only call-local environment/encoding data is allocated; the record owner retains the witness.
17
20
  */
@@ -5,13 +5,16 @@ import type { TtscProjectRecord } from "./TtscProjectRecord";
5
5
  * A supplied identity describes the active adapter's explicit override too.
6
6
  * Generic detached readers instead replay the recorded override against current
7
7
  * inheritance. Older records lack that authority and require a new delivery.
8
+ * Every environment variable the generation's plugins read must also still have
9
+ * its recorded value, or stay unset, in the current compiler environment: the
10
+ * record stands for output those reads produced.
8
11
  *
9
- * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override; absent witnesses never certify unknown prior arguments.
12
+ * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override, and recorded environment reads must hold in the current compiler environment; absent witnesses never certify unknown prior arguments.
10
13
  * @evidence contracts/common.md#clear-and-simple-design One predicate serves detached proof and watching bridge admission before filesystem evidence can authorize host cache restoration.
11
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission.
12
- * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison and legacy migration.
13
- * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses.
14
- * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners.
14
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission, and a changed environment read is not excused by matching argument transport.
15
+ * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison, environment reads and legacy migration.
16
+ * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses; recorded reads compare under the same native name rule.
17
+ * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners. Recorded reads add one environment snapshot and a lookup per name, only when the record carries any.
15
18
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work Current inheritance is observed on each generic proof; no prior environment verdict is retained.
16
19
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only call-local environment/encoding data is allocated; the record owner retains the witness.
17
20
  */
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var captureCompilerArguments = require('../transform/tsconfig/captureCompilerArguments.js');
4
- var resolveCompilerEnvironment = require('../transform/tsconfig/resolveCompilerEnvironment.js');
4
+ var ttsc = require('ttsc');
5
+ var environmentInputMismatch = require('../transform/validation/environmentInputMismatch.js');
5
6
 
6
7
  /**
7
8
  * Require a record's captured invocation to match the current host context.
@@ -9,13 +10,16 @@ var resolveCompilerEnvironment = require('../transform/tsconfig/resolveCompilerE
9
10
  * A supplied identity describes the active adapter's explicit override too.
10
11
  * Generic detached readers instead replay the recorded override against current
11
12
  * inheritance. Older records lack that authority and require a new delivery.
13
+ * Every environment variable the generation's plugins read must also still have
14
+ * its recorded value, or stay unset, in the current compiler environment: the
15
+ * record stands for output those reads produced.
12
16
  *
13
- * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override; absent witnesses never certify unknown prior arguments.
17
+ * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override, and recorded environment reads must hold in the current compiler environment; absent witnesses never certify unknown prior arguments.
14
18
  * @evidence contracts/common.md#clear-and-simple-design One predicate serves detached proof and watching bridge admission before filesystem evidence can authorize host cache restoration.
15
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission.
16
- * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison and legacy migration.
17
- * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses.
18
- * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners.
19
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission, and a changed environment read is not excused by matching argument transport.
20
+ * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison, environment reads and legacy migration.
21
+ * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses; recorded reads compare under the same native name rule.
22
+ * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners. Recorded reads add one environment snapshot and a lookup per name, only when the record carries any.
19
23
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work Current inheritance is observed on each generic proof; no prior environment verdict is retained.
20
24
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only call-local environment/encoding data is allocated; the record owner retains the witness.
21
25
  */
@@ -23,9 +27,12 @@ function projectRecordArgumentsMatch(record, currentIdentity) {
23
27
  if (record.compilerArguments === undefined)
24
28
  return false;
25
29
  try {
26
- return (record.compilerArguments.identity ===
30
+ if (record.compilerArguments.identity !==
27
31
  (currentIdentity ??
28
- captureCompilerArguments.captureCompilerArguments(resolveCompilerEnvironment.resolveCompilerEnvironment(record.compilerArguments.runExternalCode)).identity));
32
+ captureCompilerArguments.captureCompilerArguments(ttsc.resolveCompilerEnvironment(record.compilerArguments.runExternalCode)).identity))
33
+ return false;
34
+ return (record.environmentInputs === undefined ||
35
+ environmentInputMismatch.environmentInputMismatch(record.environmentInputs, ttsc.resolveCompilerEnvironment(record.compilerArguments.runExternalCode)) === undefined);
29
36
  }
30
37
  catch {
31
38
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"projectRecordArgumentsMatch.js","sources":["../../../src/core/bridge/projectRecordArgumentsMatch.ts"],"sourcesContent":[null],"names":["captureCompilerArguments","resolveCompilerEnvironment"],"mappings":";;;;;AAIA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,2BAA2B,CACzC,MAAyB,EACzB,eAAwB,EAAA;AAExB,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;AACxD,IAAA,IAAI;AACF,QAAA,QACE,MAAM,CAAC,iBAAiB,CAAC,QAAQ;AACjC,aAAC,eAAe;AACd,gBAAAA,iDAAwB,CACtBC,qDAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,CAAC,QAAQ,CAAC;IAEjB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;;;;"}
1
+ {"version":3,"file":"projectRecordArgumentsMatch.js","sources":["../../../src/core/bridge/projectRecordArgumentsMatch.ts"],"sourcesContent":[null],"names":["captureCompilerArguments","resolveCompilerEnvironment","environmentInputMismatch"],"mappings":";;;;;;AAKA;;;;;;;;;;;;;;;;;;AAkBG;AACG,SAAU,2BAA2B,CACzC,MAAyB,EACzB,eAAwB,EAAA;AAExB,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;AACxD,IAAA,IAAI;AACF,QAAA,IACE,MAAM,CAAC,iBAAiB,CAAC,QAAQ;AACjC,aAAC,eAAe;AACd,gBAAAA,iDAAwB,CACtBC,+BAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,CAAC,QAAQ,CAAC;AAEb,YAAA,OAAO,KAAK;AACd,QAAA,QACE,MAAM,CAAC,iBAAiB,KAAK,SAAS;AACtC,YAAAC,iDAAwB,CACtB,MAAM,CAAC,iBAAiB,EACxBD,+BAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,KAAK,SAAS;IAEnB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { captureCompilerArguments } from '../transform/tsconfig/captureCompilerArguments.mjs';
2
- import { resolveCompilerEnvironment } from '../transform/tsconfig/resolveCompilerEnvironment.mjs';
2
+ import { resolveCompilerEnvironment } from 'ttsc';
3
+ import { environmentInputMismatch } from '../transform/validation/environmentInputMismatch.mjs';
3
4
 
4
5
  /**
5
6
  * Require a record's captured invocation to match the current host context.
@@ -7,13 +8,16 @@ import { resolveCompilerEnvironment } from '../transform/tsconfig/resolveCompile
7
8
  * A supplied identity describes the active adapter's explicit override too.
8
9
  * Generic detached readers instead replay the recorded override against current
9
10
  * inheritance. Older records lack that authority and require a new delivery.
11
+ * Every environment variable the generation's plugins read must also still have
12
+ * its recorded value, or stay unset, in the current compiler environment: the
13
+ * record stands for output those reads produced.
10
14
  *
11
- * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override; absent witnesses never certify unknown prior arguments.
15
+ * @evidence contracts/common.md#principled-implementation Recorded effective arguments must match the active context or a current derivation using the recorded override, and recorded environment reads must hold in the current compiler environment; absent witnesses never certify unknown prior arguments.
12
16
  * @evidence contracts/common.md#clear-and-simple-design One predicate serves detached proof and watching bridge admission before filesystem evidence can authorize host cache restoration.
13
- * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission.
14
- * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison and legacy migration.
15
- * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses.
16
- * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners.
17
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Malformed inherited transport declines reuse rather than restoring a result compiled under different permission, and a changed environment read is not excused by matching argument transport.
18
+ * @evidence contracts/common.md#meaningful-documentation Native prose states active versus generic comparison, environment reads and legacy migration.
19
+ * @evidence contracts/portability.md#os-neutral-implementation The shared environment owner applies native Windows name selection and preserves argv/cwd spelling without platform guesses; recorded reads compare under the same native name rule.
20
+ * @evidence contracts/performance.md#efficient-algorithms An active digest requires scalar comparison; generic replay additionally snapshots environment keys and encodes/hashes argument bytes through existing owners. Recorded reads add one environment snapshot and a lookup per name, only when the record carries any.
17
21
  * @evidenceExclude contracts/performance.md#reuse-equivalent-work Current inheritance is observed on each generic proof; no prior environment verdict is retained.
18
22
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Only call-local environment/encoding data is allocated; the record owner retains the witness.
19
23
  */
@@ -21,9 +25,12 @@ function projectRecordArgumentsMatch(record, currentIdentity) {
21
25
  if (record.compilerArguments === undefined)
22
26
  return false;
23
27
  try {
24
- return (record.compilerArguments.identity ===
28
+ if (record.compilerArguments.identity !==
25
29
  (currentIdentity ??
26
- captureCompilerArguments(resolveCompilerEnvironment(record.compilerArguments.runExternalCode)).identity));
30
+ captureCompilerArguments(resolveCompilerEnvironment(record.compilerArguments.runExternalCode)).identity))
31
+ return false;
32
+ return (record.environmentInputs === undefined ||
33
+ environmentInputMismatch(record.environmentInputs, resolveCompilerEnvironment(record.compilerArguments.runExternalCode)) === undefined);
27
34
  }
28
35
  catch {
29
36
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"projectRecordArgumentsMatch.mjs","sources":["../../../src/core/bridge/projectRecordArgumentsMatch.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,2BAA2B,CACzC,MAAyB,EACzB,eAAwB,EAAA;AAExB,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;AACxD,IAAA,IAAI;AACF,QAAA,QACE,MAAM,CAAC,iBAAiB,CAAC,QAAQ;AACjC,aAAC,eAAe;AACd,gBAAA,wBAAwB,CACtB,0BAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,CAAC,QAAQ,CAAC;IAEjB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;;;;"}
1
+ {"version":3,"file":"projectRecordArgumentsMatch.mjs","sources":["../../../src/core/bridge/projectRecordArgumentsMatch.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;AAkBG;AACG,SAAU,2BAA2B,CACzC,MAAyB,EACzB,eAAwB,EAAA;AAExB,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS;AAAE,QAAA,OAAO,KAAK;AACxD,IAAA,IAAI;AACF,QAAA,IACE,MAAM,CAAC,iBAAiB,CAAC,QAAQ;AACjC,aAAC,eAAe;AACd,gBAAA,wBAAwB,CACtB,0BAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,CAAC,QAAQ,CAAC;AAEb,YAAA,OAAO,KAAK;AACd,QAAA,QACE,MAAM,CAAC,iBAAiB,KAAK,SAAS;AACtC,YAAA,wBAAwB,CACtB,MAAM,CAAC,iBAAiB,EACxB,0BAA0B,CAAC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,CACrE,KAAK,SAAS;IAEnB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;;;;"}
@@ -2,6 +2,7 @@
2
2
 
3
3
  var fs = require('node:fs');
4
4
  var normalizeGraphInputObservation = require('../transform/envelope/normalizeGraphInputObservation.js');
5
+ var isEnvironmentInputs = require('../transform/validation/isEnvironmentInputs.js');
5
6
 
6
7
  /**
7
8
  * Read a project record (`projectRecordFile`) back, or nothing for a file that
@@ -50,7 +51,10 @@ function readProjectRecordFile(file) {
50
51
  !isMembership(candidate.membership) ||
51
52
  (candidate.compilerArguments !== undefined &&
52
53
  !isCompilerArguments(candidate.compilerArguments)) ||
53
- (candidate.dependencies !== undefined && !isStrings(candidate.dependencies))) {
54
+ (candidate.dependencies !== undefined &&
55
+ !isStrings(candidate.dependencies)) ||
56
+ (candidate.environmentInputs !== undefined &&
57
+ !isEnvironmentInputs.isEnvironmentInputs(candidate.environmentInputs))) {
54
58
  return undefined;
55
59
  }
56
60
  return {
@@ -60,6 +64,9 @@ function readProjectRecordFile(file) {
60
64
  ...(candidate.dependencies === undefined
61
65
  ? {}
62
66
  : { dependencies: candidate.dependencies }),
67
+ ...(candidate.environmentInputs === undefined
68
+ ? {}
69
+ : { environmentInputs: candidate.environmentInputs }),
63
70
  inputs: candidate.inputs,
64
71
  membership: candidate.membership,
65
72
  root: candidate.root,
@@ -1 +1 @@
1
- {"version":3,"file":"readProjectRecordFile.js","sources":["../../../src/core/bridge/readProjectRecordFile.ts"],"sourcesContent":[null],"names":["normalizeGraphInputObservation"],"mappings":";;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,qBAAqB,CACnC,IAAY,EAAA;AAEZ,IAAA,IAAI,MAAe;AACnB,IAAA,IAAI;AACF,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpD;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,SAAS;IACvC,MAAM,SAAS,GAAG,MAAM;AAC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,SAAS,mBAAmB,CAC1B,KAAc,EAAA;AAEd,IAAA,QACE,QAAQ,CAAC,KAAK,CAAC;AACf,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACrC,SAAC,KAAK,CAAC,eAAe,KAAK,SAAS;AAClC,YAAA,OAAO,KAAK,CAAC,eAAe,KAAK,SAAS,CAAC;AAEjD;;;;"}
1
+ {"version":3,"file":"readProjectRecordFile.js","sources":["../../../src/core/bridge/readProjectRecordFile.ts"],"sourcesContent":[null],"names":["isEnvironmentInputs","normalizeGraphInputObservation"],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,qBAAqB,CACnC,IAAY,EAAA;AAEZ,IAAA,IAAI,MAAe;AACnB,IAAA,IAAI;AACF,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpD;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,SAAS;IACvC,MAAM,SAAS,GAAG,MAAM;AACxB,IAAA,IACE,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ;AACtC,QAAA,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ;AAClC,QAAA,OAAO,SAAS,CAAC,MAAM,KAAK,QAAQ;AACpC,QAAA,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC;AAClC,QAAA,CAAC,kBAAkB,CAAC,SAAS,CAAC,MAAM,CAAC;AACrC,QAAA,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC;AACnC,SAAC,SAAS,CAAC,iBAAiB,KAAK,SAAS;AACxC,YAAA,CAAC,mBAAmB,CAAC,SAAS,CAAC,i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AAC,KAAK,CAAC,eAAe,KAAK,SAAS;AAClC,YAAA,OAAO,KAAK,CAAC,eAAe,KAAK,SAAS,CAAC;AAEjD;;;;"}
@@ -1,5 +1,6 @@
1
1
  import fs from 'node:fs';
2
2
  import { normalizeGraphInputObservation } from '../transform/envelope/normalizeGraphInputObservation.mjs';
3
+ import { isEnvironmentInputs } from '../transform/validation/isEnvironmentInputs.mjs';
3
4
 
4
5
  /**
5
6
  * Read a project record (`projectRecordFile`) back, or nothing for a file that
@@ -48,7 +49,10 @@ function readProjectRecordFile(file) {
48
49
  !isMembership(candidate.membership) ||
49
50
  (candidate.compilerArguments !== undefined &&
50
51
  !isCompilerArguments(candidate.compilerArguments)) ||
51
- (candidate.dependencies !== undefined && !isStrings(candidate.dependencies))) {
52
+ (candidate.dependencies !== undefined &&
53
+ !isStrings(candidate.dependencies)) ||
54
+ (candidate.environmentInputs !== undefined &&
55
+ !isEnvironmentInputs(candidate.environmentInputs))) {
52
56
  return undefined;
53
57
  }
54
58
  return {
@@ -58,6 +62,9 @@ function readProjectRecordFile(file) {
58
62
  ...(candidate.dependencies === undefined
59
63
  ? {}
60
64
  : { dependencies: candidate.dependencies }),
65
+ ...(candidate.environmentInputs === undefined
66
+ ? {}
67
+ : { environmentInputs: candidate.environmentInputs }),
61
68
  inputs: candidate.inputs,
62
69
  membership: candidate.membership,
63
70
  root: candidate.root,
@@ -1 +1 @@
1
- {"version":3,"file":"readProjectRecordFile.mjs","sources":["../../../src/core/bridge/readProjectRecordFile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,qBAAqB,CACnC,IAAY,EAAA;AAEZ,IAAA,IAAI,MAAe;AACnB,IAAA,IAAI;AACF,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpD;AAAE,IAAA,MAAM;AACN,QAAA,OAAO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,KAAK,QAAQ;AAClC,QAAA,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACrC,SAAC,KAAK,CAAC,eAAe,KAAK,SAAS;AAClC,YAAA,OAAO,KAAK,CAAC,eAAe,KAAK,SAAS,CAAC;AAEjD;;;;"}
package/lib/core/index.js CHANGED
@@ -23,7 +23,7 @@ var collectProjectInputHashSnapshot = require('./transform/project/collectProjec
23
23
  var isProjectWalkPath = require('./transform/project/isProjectWalkPath.js');
24
24
  var transformTtsc = require('./transform/transformTtsc.js');
25
25
  var compilerEnvironmentIdentity = require('./transform/tsconfig/compilerEnvironmentIdentity.js');
26
- var resolveCompilerEnvironment = require('./transform/tsconfig/resolveCompilerEnvironment.js');
26
+ var ttsc = require('ttsc');
27
27
  var captureWatchInputBaseline = require('./transform/watch/captureWatchInputBaseline.js');
28
28
  var captureWatchInputFileBaseline = require('./transform/watch/captureWatchInputFileBaseline.js');
29
29
  var isWatchInputKeyBaseline = require('./transform/watch/isWatchInputKeyBaseline.js');
@@ -61,7 +61,10 @@ exports.collectProjectInputHashSnapshot = collectProjectInputHashSnapshot.collec
61
61
  exports.isProjectWalkPath = isProjectWalkPath.isProjectWalkPath;
62
62
  exports.transformTtsc = transformTtsc.transformTtsc;
63
63
  exports.compilerEnvironmentIdentity = compilerEnvironmentIdentity.compilerEnvironmentIdentity;
64
- exports.resolveCompilerEnvironment = resolveCompilerEnvironment.resolveCompilerEnvironment;
64
+ Object.defineProperty(exports, "resolveCompilerEnvironment", {
65
+ enumerable: true,
66
+ get: function () { return ttsc.resolveCompilerEnvironment; }
67
+ });
65
68
  exports.captureWatchInputBaseline = captureWatchInputBaseline.captureWatchInputBaseline;
66
69
  exports.captureWatchInputFileBaseline = captureWatchInputFileBaseline.captureWatchInputFileBaseline;
67
70
  exports.isWatchInputKeyBaseline = isWatchInputKeyBaseline.isWatchInputKeyBaseline;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -19,7 +19,7 @@ export { collectProjectInputHashSnapshot } from './transform/project/collectProj
19
19
  export { isProjectWalkPath } from './transform/project/isProjectWalkPath.mjs';
20
20
  export { transformTtsc } from './transform/transformTtsc.mjs';
21
21
  export { compilerEnvironmentIdentity } from './transform/tsconfig/compilerEnvironmentIdentity.mjs';
22
- export { resolveCompilerEnvironment } from './transform/tsconfig/resolveCompilerEnvironment.mjs';
22
+ export { resolveCompilerEnvironment } from 'ttsc';
23
23
  export { captureWatchInputBaseline } from './transform/watch/captureWatchInputBaseline.mjs';
24
24
  export { captureWatchInputFileBaseline } from './transform/watch/captureWatchInputFileBaseline.mjs';
25
25
  export { isWatchInputKeyBaseline } from './transform/watch/isWatchInputKeyBaseline.mjs';
@@ -9,7 +9,7 @@ var refreshProjectRecordFiles = require('../bridge/refreshProjectRecordFiles.js'
9
9
  var TYPESCRIPT_TURBOPACK_RULE_GLOBS = require('../source/TYPESCRIPT_TURBOPACK_RULE_GLOBS.js');
10
10
  var openTtscTransformSession = require('../transform/session/openTtscTransformSession.js');
11
11
  var captureCompilerArguments = require('../transform/tsconfig/captureCompilerArguments.js');
12
- var resolveCompilerEnvironment = require('../transform/tsconfig/resolveCompilerEnvironment.js');
12
+ var ttsc = require('ttsc');
13
13
  var unplugin = require('../unplugin.js');
14
14
  var TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE = require('./TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE.js');
15
15
 
@@ -92,7 +92,7 @@ function next(nextConfig = {}, options) {
92
92
  // Before either compiler validates a module against the cache below
93
93
  // `.next`: a project whose state moved while nothing ran is heard through
94
94
  // its record, which only a proof here can move.
95
- const compilerArguments = captureCompilerArguments.captureCompilerArguments(resolveCompilerEnvironment.resolveCompilerEnvironment(options?.runExternalCode)).identity;
95
+ const compilerArguments = captureCompilerArguments.captureCompilerArguments(ttsc.resolveCompilerEnvironment(options?.runExternalCode)).identity;
96
96
  refreshProjectRecordFiles.refreshProjectRecordFiles(hostToolDirectory.hostToolDirectory(process.cwd()), undefined, undefined, compilerArguments);
97
97
  // And where webpack's records live when that directory cannot be written
98
98
  // (samchon/ttsc#1480); Turbopack's loader proves its own.
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sources":["../../../src/core/next/next.ts"],"sourcesContent":[null],"names":["TYPESCRIPT_TURBOPACK_RULE_GLOBS","openTtscTransformSession","captureCompilerArguments","resolveCompilerEnvironment","refreshProjectRecordFiles","hostToolDirectory","fallbackToolDirectory","unplugin","TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE","fileURLToPath"],"mappings":";;;;;;;;;;;;;;;AAmBA;AACA,MAAM,gBAAgB,GAAG,0BAA0B;AAEnD;;;;;;AAMG;AACH,MAAM,oBAAoB,GAAGA,+DAA+B;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DG;SACa,IAAI,CAClB,UAAA,GAA6B,EAAE,EAC/B,OAA6B,EAAA;IAE7B,gCAAgC,CAAC,UAAU,CAAC;;;;AAI5C,IAAAC,iDAAwB,EAAE;;;;AAI1B,IAAA,MAAM,iBAAiB,GAAGC,iDAAwB,CAChDC,qDAA0B,CAAC,OAAO,EAAE,eAAe,CAAC,CACrD,CAAC,QAAQ;AACV,IAAAC,mDAAyB,CACvBC,mCAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAChC,SAAS,EACT,SAAS,EACT,iBAAiB,CAClB;;;IAGD,MAAM,QAAQ,GAAGC,2CAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,CAA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AAE,GAAG,CAAC;IAC5B,IAAI,QAAQ,KAAK,kBAAkB,IAAI,QAAQ,KAAK,mBAAmB,EAAE;AACvE,QAAA,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC;AAC1C,QAAA,OAAO,KAAK;IACd;IACA,IAAI,OAAO,GAAG,KAAK;AACnB,IAAA,IAAI;QACF,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAC1C;AACvB,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,KAAK,gBAAgB;IAC9C;AAAE,IAAA,MAAM;;IAER;AACA,IAAA,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC5C,IAAA,OAAO,OAAO;AAChB;;;;"}
1
+ {"version":3,"file":"next.js","sources":["../../../src/core/next/next.ts"],"sourcesContent":[null],"names":["TYPESCRIPT_TURBOPACK_RULE_GLOBS","openTtscTransformSession","captureCompilerArguments","resolveCompilerEnvironment","refreshProjectRecordFiles","hostToolDirectory","fallbackToolDirectory","unplugin","TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE","fileURLToPath"],"mappings":";;;;;;;;;;;;;;;AAmBA;AACA,MAAM,gBAAgB,GAAG,0BAA0B;AAEnD;;;;;;AAMG;AACH,MAAM,oBAAoB,GAAGA,+DAA+B;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DG;SACa,IAAI,CAClB,UAAA,GAA6B,EAAE,EAC/B,OAA6B,EAAA;IAE7B,gCAAgC,CAAC,UAAU,CAAC;;;;AAI5C,IAAAC,iDAAwB,EAAE;;;;AAI1B,IAAA,MAAM,iBAAiB,GAAGC,iDAAwB,CAChDC,+BAA0B,CAAC,OAAO,EAAE,eAAe,CAAC,CACrD,CAAC,QAAQ;AAC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AAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG;AACd,SAAA,QAAQ,CAAC,WAAW,EAAE,YAAY;AAClC,SAAA,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC;IAC5B,IAAI,QAAQ,KAAK,kBAAkB,IAAI,QAAQ,KAAK,mBAAmB,EAAE;AACvE,QAAA,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC;AAC1C,QAAA,OAAO,KAAK;IACd;IACA,IAAI,OAAO,GAAG,KAAK;AACnB,IAAA,IAAI;QACF,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAC1C;AACvB,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,KAAK,gBAAgB;IAC9C;AAAE,IAAA,MAAM;;IAER;AACA,IAAA,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC5C,IAAA,OAAO,OAAO;AAChB;;;;"}
@@ -7,7 +7,7 @@ import { refreshProjectRecordFiles } from '../bridge/refreshProjectRecordFiles.m
7
7
  import { TYPESCRIPT_TURBOPACK_RULE_GLOBS } from '../source/TYPESCRIPT_TURBOPACK_RULE_GLOBS.mjs';
8
8
  import { openTtscTransformSession } from '../transform/session/openTtscTransformSession.mjs';
9
9
  import { captureCompilerArguments } from '../transform/tsconfig/captureCompilerArguments.mjs';
10
- import { resolveCompilerEnvironment } from '../transform/tsconfig/resolveCompilerEnvironment.mjs';
10
+ import { resolveCompilerEnvironment } from 'ttsc';
11
11
  import { unplugin } from '../unplugin.mjs';
12
12
  import { TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE } from './TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE.mjs';
13
13
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var path = require('node:path');
4
4
  var compilerEnvironmentIdentity = require('../transform/tsconfig/compilerEnvironmentIdentity.js');
5
- var resolveCompilerEnvironment = require('../transform/tsconfig/resolveCompilerEnvironment.js');
5
+ var ttsc = require('ttsc');
6
6
  var hashText = require('../transform/utils/hashText.js');
7
7
  var stableStringify = require('../transform/utils/stableStringify.js');
8
8
 
@@ -40,7 +40,7 @@ var stableStringify = require('../transform/utils/stableStringify.js');
40
40
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
41
41
  * Acquires no handle, timer or retained state of its own.
42
42
  */
43
- function rollupDeliveryOptions(options, aliasPaths, compilerEnvironment = resolveCompilerEnvironment.resolveCompilerEnvironment(options.runExternalCode)) {
43
+ function rollupDeliveryOptions(options, aliasPaths, compilerEnvironment = ttsc.resolveCompilerEnvironment(options.runExternalCode)) {
44
44
  return hashText.hashText(stableStringify.stableStringify({
45
45
  aliasPaths: JSON.stringify(aliasPaths),
46
46
  compilerOptions: JSON.stringify(options.compilerOptions),
@@ -1 +1 @@
1
- {"version":3,"file":"rollupDeliveryOptions.js","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":["resolveCompilerEnvironment","hashText","stableStringify","compilerEnvironmentIdentity"],"mappings":";;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCG;AACG,SAAU,qBAAqB,CACnC,OAAoC,EACpC,UAAoC,EACpC,mBAAmB,GAAGA,qDAA0B,CAAC,OAAO,CAAC,eAAe,CAAC,EAAA;IAEzE,OAAOC,iBAAQ,CACbC,+BAAe,CAAC;AACd,QAAA,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACtC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;AACxD,QAAA,mBAAmB,EAAEC,uDAA2B,CAAC,mBAAmB,CAAC;QACrE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;QACxC,OAAO,EACL,OAAO,CAAC,OAAO,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AACtE,QAAA,WAAW,EACT,OAAO,CAAC,WAAW,KAAK;AACtB,cAAE;cACA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;AACxC,KAAA,CAAC,CACH;AACH;;;;"}
1
+ {"version":3,"file":"rollupDeliveryOptions.js","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":["resolveCompilerEnvironment","hashText","stableStringify","compilerEnvironmentIdentity"],"mappings":";;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCG;AACG,SAAU,qBAAqB,CACnC,OAAoC,EACpC,UAAoC,EACpC,mBAAmB,GAAGA,+BAA0B,CAAC,OAAO,CAAC,eAAe,CAAC,EAAA;IAEzE,OAAOC,iBAAQ,CACbC,+BAAe,CAAC;AACd,QAAA,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACtC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;AACxD,QAAA,mBAAmB,EAAEC,uDAA2B,CAAC,mBAAmB,CAAC;QACrE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;QACxC,OAAO,EACL,OAAO,CAAC,OAAO,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AACtE,QAAA,WAAW,EACT,OAAO,CAAC,WAAW,KAAK;AACtB,cAAE;cACA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;AACxC,KAAA,CAAC,CACH;AACH;;;;"}
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path';
2
2
  import { compilerEnvironmentIdentity } from '../transform/tsconfig/compilerEnvironmentIdentity.mjs';
3
- import { resolveCompilerEnvironment } from '../transform/tsconfig/resolveCompilerEnvironment.mjs';
3
+ import { resolveCompilerEnvironment } from 'ttsc';
4
4
  import { hashText } from '../transform/utils/hashText.mjs';
5
5
  import { stableStringify } from '../transform/utils/stableStringify.mjs';
6
6
 
@@ -7,11 +7,14 @@ import type { TtscTransformCache } from "./TtscTransformCache.cjs";
7
7
  * The caller owns awaiting, Promise-ownership checks and required native
8
8
  * notification settling. A volatile or mismatching generation is evicted by
9
9
  * identity; if eviction exposed a sibling replacement, the caller retries it.
10
- * Otherwise the caller must capture a new generation. A serving decision does
11
- * not perform output selection or host notification, which remain with
12
- * delivery.
10
+ * Otherwise the caller must capture a new generation. A generation whose
11
+ * plugins read an environment variable that `environment`, the delivery's
12
+ * compiler environment snapshot, no longer gives the recorded value is
13
+ * mismatching on every path, the pass-shared first delivery included: no file
14
+ * proof can stand in for it. A serving decision does not perform output
15
+ * selection or host notification, which remain with delivery.
13
16
  *
14
- * @evidence contracts/common.md#principled-implementation The actual generation's volatility and recorded source proof decide serving; identity-guarded eviction then distinguishes a sibling's current replacement from an empty capture slot.
17
+ * @evidence contracts/common.md#principled-implementation The actual generation's volatility, recorded environment reads and recorded source proof decide serving; identity-guarded eviction then distinguishes a sibling's current replacement from an empty capture slot.
15
18
  * @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
16
19
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
17
20
  * @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
@@ -38,6 +41,11 @@ export declare function selectCachedGenerationAction(props: {
38
41
  generation: Promise<TtscCachedProjectTransform>;
39
42
  key: string;
40
43
  source: string;
44
+ /**
45
+ * The delivery's compiler environment snapshot, the one a recompile would run
46
+ * under, against which recorded environment reads are compared.
47
+ */
48
+ environment: NodeJS.ProcessEnv;
41
49
  /** False only for speculative source reads before an actual module delivery. */
42
50
  reportDivergence?: boolean;
43
51
  proof?: TtscGenerationProof.Transaction;
@@ -7,11 +7,14 @@ import type { TtscTransformCache } from "./TtscTransformCache.mjs";
7
7
  * The caller owns awaiting, Promise-ownership checks and required native
8
8
  * notification settling. A volatile or mismatching generation is evicted by
9
9
  * identity; if eviction exposed a sibling replacement, the caller retries it.
10
- * Otherwise the caller must capture a new generation. A serving decision does
11
- * not perform output selection or host notification, which remain with
12
- * delivery.
10
+ * Otherwise the caller must capture a new generation. A generation whose
11
+ * plugins read an environment variable that `environment`, the delivery's
12
+ * compiler environment snapshot, no longer gives the recorded value is
13
+ * mismatching on every path, the pass-shared first delivery included: no file
14
+ * proof can stand in for it. A serving decision does not perform output
15
+ * selection or host notification, which remain with delivery.
13
16
  *
14
- * @evidence contracts/common.md#principled-implementation The actual generation's volatility and recorded source proof decide serving; identity-guarded eviction then distinguishes a sibling's current replacement from an empty capture slot.
17
+ * @evidence contracts/common.md#principled-implementation The actual generation's volatility, recorded environment reads and recorded source proof decide serving; identity-guarded eviction then distinguishes a sibling's current replacement from an empty capture slot.
15
18
  * @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
16
19
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
17
20
  * @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
@@ -38,6 +41,11 @@ export declare function selectCachedGenerationAction(props: {
38
41
  generation: Promise<TtscCachedProjectTransform>;
39
42
  key: string;
40
43
  source: string;
44
+ /**
45
+ * The delivery's compiler environment snapshot, the one a recompile would run
46
+ * under, against which recorded environment reads are compared.
47
+ */
48
+ environment: NodeJS.ProcessEnv;
41
49
  /** False only for speculative source reads before an actual module delivery. */
42
50
  reportDivergence?: boolean;
43
51
  proof?: TtscGenerationProof.Transaction;