@ttsc/unplugin 0.36.3 → 0.36.4

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 (121) 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/generation/captureTransformGeneration.js +8 -2
  35. package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
  36. package/lib/core/transform/generation/captureTransformGeneration.mjs +8 -2
  37. package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
  38. package/lib/core/transform/session/claimSharedCompile.d.cts +12 -1
  39. package/lib/core/transform/session/claimSharedCompile.d.mts +12 -1
  40. package/lib/core/transform/session/claimSharedCompile.d.ts +12 -1
  41. package/lib/core/transform/session/claimSharedCompile.js +22 -4
  42. package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
  43. package/lib/core/transform/session/claimSharedCompile.mjs +22 -4
  44. package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
  45. package/lib/core/transform/transformTtsc.js +3 -2
  46. package/lib/core/transform/transformTtsc.js.map +1 -1
  47. package/lib/core/transform/transformTtsc.mjs +2 -1
  48. package/lib/core/transform/transformTtsc.mjs.map +1 -1
  49. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.cts +1 -17
  50. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.mts +1 -17
  51. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.d.ts +1 -17
  52. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js +7 -53
  53. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.js.map +1 -1
  54. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs +1 -54
  55. package/lib/core/transform/tsconfig/resolveCompilerEnvironment.mjs.map +1 -1
  56. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.cts +10 -2
  57. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.mts +10 -2
  58. package/lib/core/transform/validation/captureUniversalHostInputValidation.d.ts +10 -2
  59. package/lib/core/transform/validation/captureUniversalHostInputValidation.js +19 -2
  60. package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
  61. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +19 -2
  62. package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
  63. package/lib/core/transform/validation/environmentInputMismatch.d.cts +23 -0
  64. package/lib/core/transform/validation/environmentInputMismatch.d.mts +23 -0
  65. package/lib/core/transform/validation/environmentInputMismatch.d.ts +23 -0
  66. package/lib/core/transform/validation/environmentInputMismatch.js +46 -0
  67. package/lib/core/transform/validation/environmentInputMismatch.js.map +1 -0
  68. package/lib/core/transform/validation/environmentInputMismatch.mjs +44 -0
  69. package/lib/core/transform/validation/environmentInputMismatch.mjs.map +1 -0
  70. package/lib/core/transform/validation/isEnvironmentInputs.d.cts +15 -0
  71. package/lib/core/transform/validation/isEnvironmentInputs.d.mts +15 -0
  72. package/lib/core/transform/validation/isEnvironmentInputs.d.ts +15 -0
  73. package/lib/core/transform/validation/isEnvironmentInputs.js +26 -0
  74. package/lib/core/transform/validation/isEnvironmentInputs.js.map +1 -0
  75. package/lib/core/transform/validation/isEnvironmentInputs.mjs +24 -0
  76. package/lib/core/transform/validation/isEnvironmentInputs.mjs.map +1 -0
  77. package/lib/core/transform/watch/TtscTransformHooks.d.cts +6 -4
  78. package/lib/core/transform/watch/TtscTransformHooks.d.mts +6 -4
  79. package/lib/core/transform/watch/TtscTransformHooks.d.ts +6 -4
  80. package/lib/core/transform/watch/handWatchInputs.d.cts +3 -1
  81. package/lib/core/transform/watch/handWatchInputs.d.mts +3 -1
  82. package/lib/core/transform/watch/handWatchInputs.d.ts +3 -1
  83. package/lib/core/transform/watch/handWatchInputs.js +7 -2
  84. package/lib/core/transform/watch/handWatchInputs.js.map +1 -1
  85. package/lib/core/transform/watch/handWatchInputs.mjs +7 -2
  86. package/lib/core/transform/watch/handWatchInputs.mjs.map +1 -1
  87. package/lib/core/transform/watch/notifyFailedGenerationInputs.js +3 -1
  88. package/lib/core/transform/watch/notifyFailedGenerationInputs.js.map +1 -1
  89. package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs +3 -1
  90. package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs.map +1 -1
  91. package/lib/core/transform/watch/notifyProjectRecord.js +4 -0
  92. package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
  93. package/lib/core/transform/watch/notifyProjectRecord.mjs +4 -0
  94. package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
  95. package/lib/core/transform/watch/notifyWatchInputs.js +3 -1
  96. package/lib/core/transform/watch/notifyWatchInputs.js.map +1 -1
  97. package/lib/core/transform/watch/notifyWatchInputs.mjs +3 -1
  98. package/lib/core/transform/watch/notifyWatchInputs.mjs.map +1 -1
  99. package/lib/core/turbopack/turbopack.js +2 -2
  100. package/lib/core/turbopack/turbopack.js.map +1 -1
  101. package/lib/core/turbopack/turbopack.mjs +1 -1
  102. package/lib/core/unplugin.js +3 -3
  103. package/lib/core/unplugin.js.map +1 -1
  104. package/lib/core/unplugin.mjs +1 -1
  105. package/package.json +3 -3
  106. package/src/core/bridge/TtscProjectRecord.ts +8 -0
  107. package/src/core/bridge/projectRecordArgumentsMatch.ts +19 -7
  108. package/src/core/bridge/readProjectRecordFile.ts +8 -1
  109. package/src/core/transform/cache/selectCachedGenerationAction.ts +19 -4
  110. package/src/core/transform/generation/captureTransformGeneration.ts +8 -1
  111. package/src/core/transform/session/claimSharedCompile.ts +35 -5
  112. package/src/core/transform/transformTtsc.ts +1 -0
  113. package/src/core/transform/tsconfig/resolveCompilerEnvironment.ts +1 -61
  114. package/src/core/transform/validation/captureUniversalHostInputValidation.ts +21 -1
  115. package/src/core/transform/validation/environmentInputMismatch.ts +43 -0
  116. package/src/core/transform/validation/isEnvironmentInputs.ts +28 -0
  117. package/src/core/transform/watch/TtscTransformHooks.ts +6 -3
  118. package/src/core/transform/watch/handWatchInputs.ts +5 -1
  119. package/src/core/transform/watch/notifyFailedGenerationInputs.ts +3 -0
  120. package/src/core/transform/watch/notifyProjectRecord.ts +5 -0
  121. package/src/core/transform/watch/notifyWatchInputs.ts +8 -1
@@ -16,6 +16,7 @@ var missingPathProbe = require('../inputs/missingPathProbe.js');
16
16
  var pluginSourceHolds = require('../inputs/pluginSourceHolds.js');
17
17
  var preparePluginBuildEnvironments = require('../inputs/preparePluginBuildEnvironments.js');
18
18
  var sameHostInputRealpath = require('../inputs/sameHostInputRealpath.js');
19
+ var environmentInputMismatch = require('./environmentInputMismatch.js');
19
20
  var matchesRecordedInput = require('./matchesRecordedInput.js');
20
21
 
21
22
  /**
@@ -31,7 +32,13 @@ var matchesRecordedInput = require('./matchesRecordedInput.js');
31
32
  * callers retain the original native observation API; result identity records
32
33
  * async execution ownership even when preparation fails.
33
34
  *
34
- * @evidence contracts/common.md#principled-implementation Evaluation-time content and physical-target witnesses must agree with the generation snapshot before reuse; explicit producer observation unavailability remains distinct from changed, contradictory or unexplained missing proof, and every input is checked before classifying the attempt.
35
+ * Recorded environment reads are universal inputs too. Each must still have its
36
+ * recorded value, or stay unset, in `environment`, the compiler environment the
37
+ * generation is admitted under; an adopted publication recorded under another
38
+ * value fails here like a changed host input. They need no manifest entry:
39
+ * delivery compares them against its own snapshot.
40
+ *
41
+ * @evidence contracts/common.md#principled-implementation Evaluation-time content and physical-target witnesses and recorded environment values must agree with the generation snapshot before reuse; explicit producer observation unavailability remains distinct from changed, contradictory or unexplained missing proof, and every input is checked before classifying the attempt.
35
42
  * @evidence contracts/common.md#clear-and-simple-design One admission operation builds the manifest; per-entry, grouped or exact-native absence and tree validators own its subsequent checks.
36
43
  * @evidence contracts/common.md#prohibited-implementation-shortcuts A missing publication witness declines narrow reuse instead of certifying an input from a convenient newer read.
37
44
  * @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
@@ -40,7 +47,9 @@ var matchesRecordedInput = require('./matchesRecordedInput.js');
40
47
  * @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Async-owned environments share one synchronous batch, qualifying common SDK paths once across plugin directories. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
41
48
  * @evidence contracts/performance.md#reuse-equivalent-work This shared generation manifest records exactly qualified lexical spellings, separable signatures and tree environments for later validators; changed proof requires new admission.
42
49
  */
43
- function captureUniversalHostInputValidation(cached, currentFile) {
50
+ function captureUniversalHostInputValidation(cached, currentFile,
51
+ /** Compiler environment the generation is admitted under. */
52
+ environment) {
44
53
  const filesystem = resultFilesystem.resultFilesystem(cached.result);
45
54
  const state = envelopeDerivation.envelopeDerivation(cached);
46
55
  const failures = createGenerationProofFailures.createGenerationProofFailures(cached.snapshotFailureClassifier);
@@ -62,6 +71,14 @@ function captureUniversalHostInputValidation(cached, currentFile) {
62
71
  detail: "observer-incomplete",
63
72
  });
64
73
  }
74
+ const environmentChanged = environmentInputMismatch.environmentInputMismatch(result.type === "exception" ? undefined : result.environmentInputs, environment);
75
+ if (environmentChanged !== undefined) {
76
+ recordGenerationProofFailure.recordGenerationProofFailure(failures, {
77
+ domain: "host",
78
+ kind: "environment-changed",
79
+ detail: environmentChanged,
80
+ });
81
+ }
65
82
  for (const [input, reason] of Object.entries(proofFailures ?? {})) {
66
83
  recordGenerationProofFailure.recordGenerationProofFailure(failures, {
67
84
  domain: "host",
@@ -1 +1 @@
1
- {"version":3,"file":"captureUniversalHostInputValidation.js","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":["resultFilesystem","envelopeDerivation","createGenerationProofFailures","recordGenerationProofFailure","selectPersistentHostInputs","hostInputStateHash","sameHostInputRealpath","hostInputRealpath","inputMetadataEvidence","matchesRecordedInput","inputMetadataSignature","missingPathProbe","selectPluginSourceInputs","usesPreparedPluginBuildEnvironments","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IAAI,OAAO,EAAE;;;;QAIzC,MAAM,WAAW,GAAG;AAClB,cAAE,YAAa,CAAC,GAAG,CAAC,SAAS;cAC3BC,0CAA6B,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;QACvE,IACE,WAAW,KAAK,SAAS;YACzB,CAACC,mCAAiB,CAChB,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,GAAG,EAAE,WAAW,EAAE,GAAG,SAAS,EACtC,MAAM,CAAC,WAAW,CACnB,EACD;YACAb,yDAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA,CAAC;YACF;QACF;AACA,QAAA,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,QAAA,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,GAAG,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC;IACzE;AACA,IAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;QAC3D,OAAO,EAAE,QAAQ,EAAE;IACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
1
+ {"version":3,"file":"captureUniversalHostInputValidation.js","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":["resultFilesystem","envelopeDerivation","createGenerationProofFailures","recordGenerationProofFailure","environmentInputMismatch","selectPersistentHostInputs","hostInputStateHash","sameHostInputRealpath","hostInputRealpath","inputMetadataEvidence","matchesRecordedInput","inputMetadataSignature","missingPathProbe","selectPluginSourceInput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ACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
@@ -14,6 +14,7 @@ import { missingPathProbe } from '../inputs/missingPathProbe.mjs';
14
14
  import { pluginSourceHolds } from '../inputs/pluginSourceHolds.mjs';
15
15
  import { usesPreparedPluginBuildEnvironments } from '../inputs/preparePluginBuildEnvironments.mjs';
16
16
  import { sameHostInputRealpath } from '../inputs/sameHostInputRealpath.mjs';
17
+ import { environmentInputMismatch } from './environmentInputMismatch.mjs';
17
18
  import { matchesRecordedInput } from './matchesRecordedInput.mjs';
18
19
 
19
20
  /**
@@ -29,7 +30,13 @@ import { matchesRecordedInput } from './matchesRecordedInput.mjs';
29
30
  * callers retain the original native observation API; result identity records
30
31
  * async execution ownership even when preparation fails.
31
32
  *
32
- * @evidence contracts/common.md#principled-implementation Evaluation-time content and physical-target witnesses must agree with the generation snapshot before reuse; explicit producer observation unavailability remains distinct from changed, contradictory or unexplained missing proof, and every input is checked before classifying the attempt.
33
+ * Recorded environment reads are universal inputs too. Each must still have its
34
+ * recorded value, or stay unset, in `environment`, the compiler environment the
35
+ * generation is admitted under; an adopted publication recorded under another
36
+ * value fails here like a changed host input. They need no manifest entry:
37
+ * delivery compares them against its own snapshot.
38
+ *
39
+ * @evidence contracts/common.md#principled-implementation Evaluation-time content and physical-target witnesses and recorded environment values must agree with the generation snapshot before reuse; explicit producer observation unavailability remains distinct from changed, contradictory or unexplained missing proof, and every input is checked before classifying the attempt.
33
40
  * @evidence contracts/common.md#clear-and-simple-design One admission operation builds the manifest; per-entry, grouped or exact-native absence and tree validators own its subsequent checks.
34
41
  * @evidence contracts/common.md#prohibited-implementation-shortcuts A missing publication witness declines narrow reuse instead of certifying an input from a convenient newer read.
35
42
  * @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
@@ -38,7 +45,9 @@ import { matchesRecordedInput } from './matchesRecordedInput.mjs';
38
45
  * @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Async-owned environments share one synchronous batch, qualifying common SDK paths once across plugin directories. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
39
46
  * @evidence contracts/performance.md#reuse-equivalent-work This shared generation manifest records exactly qualified lexical spellings, separable signatures and tree environments for later validators; changed proof requires new admission.
40
47
  */
41
- function captureUniversalHostInputValidation(cached, currentFile) {
48
+ function captureUniversalHostInputValidation(cached, currentFile,
49
+ /** Compiler environment the generation is admitted under. */
50
+ environment) {
42
51
  const filesystem = resultFilesystem(cached.result);
43
52
  const state = envelopeDerivation(cached);
44
53
  const failures = createGenerationProofFailures(cached.snapshotFailureClassifier);
@@ -60,6 +69,14 @@ function captureUniversalHostInputValidation(cached, currentFile) {
60
69
  detail: "observer-incomplete",
61
70
  });
62
71
  }
72
+ const environmentChanged = environmentInputMismatch(result.type === "exception" ? undefined : result.environmentInputs, environment);
73
+ if (environmentChanged !== undefined) {
74
+ recordGenerationProofFailure(failures, {
75
+ domain: "host",
76
+ kind: "environment-changed",
77
+ detail: environmentChanged,
78
+ });
79
+ }
63
80
  for (const [input, reason] of Object.entries(proofFailures ?? {})) {
64
81
  recordGenerationProofFailure(failures, {
65
82
  domain: "host",
@@ -1 +1 @@
1
- {"version":3,"file":"captureUniversalHostInputValidation.mjs","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;IAQnB,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;AAClD,IAAA,MAAM,KAAK,GAAG,kBAAkB,CA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C,WAAW,CACnB,EACD;YACA,4BAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA,CAAC;YACF;QACF;AACA,QAAA,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,QAAA,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,GAAG,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC;IACzE;AACA,IAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;QAC3D,OAAO,EAAE,QAAQ,EAAE;IACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
1
+ {"version":3,"file":"captureUniversalHostInputValidation.mjs","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB;AACnB;AACA,WAA8B,EAAA;IAQ9B,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;AAClD,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACxC,MAAM,QAAQ,GAAG,6BAA6B,CAC5C,MAAM,CAAC,yBAAyB,CACjC;AACD,IAAA,MAAM,UAAU,GAA4B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;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iB,CAChB,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,GAAG,EAAE,WAAW,EAAE,GAAG,SAAS,EACtC,MAAM,CAAC,WAAW,CACnB,EACD;YACA,4BAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA,CAAC;YACF;QACF;AACA,QAAA,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,QAAA,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,GAAG,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC;IACzE;AACA,IAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;QAC3D,OAAO,EAAE,QAAQ,EAAE;IACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Name the first recorded environment read that no longer has its recorded
3
+ * value, or stays unset, in `environment`; `undefined` when every read holds.
4
+ *
5
+ * Native plugins record each variable they read through `ctx.Env` in the
6
+ * envelope's `environmentInputs`, which generations, publications and project
7
+ * records carry. Output is reusable only under an environment that would make
8
+ * every such read return what it returned, so callers compare against the
9
+ * compiler environment snapshot (`resolveCompilerEnvironment`) a recompile
10
+ * would run under. A cache key cannot carry these names: only the compile
11
+ * discovers them. An absent record, from an exception or from plugins that read
12
+ * no variable, always holds.
13
+ *
14
+ * @evidence contracts/common.md#principled-implementation Equality of each recorded value or absence with the supplied snapshot is exactly the condition under which the plugin's reads would repeat; unrecorded variables are not inputs and are ignored.
15
+ * @evidence contracts/common.md#clear-and-simple-design One predicate over the recorded map serves cached delivery, capture admission, shared-store adoption and persistent project records.
16
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No variable list, prefix or consumer name is special-cased; the recorded names alone decide what is compared.
17
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs state the returned name, the comparison environment, why a key cannot replace this proof and the empty case.
18
+ * @evidence contracts/portability.md#os-neutral-implementation Windows variable names compare case-insensitively against the snapshot, choosing the lexically first spelling as ttsc's sidecar environment does; other platforms compare names exactly.
19
+ * @evidence contracts/performance.md#efficient-algorithms One lookup per recorded name; on Windows each lookup scans the snapshot's names, O(recorded × environment) with both small.
20
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work The predicate decides reuse for its caller and retains no verdict.
21
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Entry and Windows key arrays are call-local; no environment, verdict or native handle is retained.
22
+ */
23
+ export declare function environmentInputMismatch(recorded: Readonly<Record<string, string | null>> | undefined, environment: NodeJS.ProcessEnv): string | undefined;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Name the first recorded environment read that no longer has its recorded
3
+ * value, or stays unset, in `environment`; `undefined` when every read holds.
4
+ *
5
+ * Native plugins record each variable they read through `ctx.Env` in the
6
+ * envelope's `environmentInputs`, which generations, publications and project
7
+ * records carry. Output is reusable only under an environment that would make
8
+ * every such read return what it returned, so callers compare against the
9
+ * compiler environment snapshot (`resolveCompilerEnvironment`) a recompile
10
+ * would run under. A cache key cannot carry these names: only the compile
11
+ * discovers them. An absent record, from an exception or from plugins that read
12
+ * no variable, always holds.
13
+ *
14
+ * @evidence contracts/common.md#principled-implementation Equality of each recorded value or absence with the supplied snapshot is exactly the condition under which the plugin's reads would repeat; unrecorded variables are not inputs and are ignored.
15
+ * @evidence contracts/common.md#clear-and-simple-design One predicate over the recorded map serves cached delivery, capture admission, shared-store adoption and persistent project records.
16
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No variable list, prefix or consumer name is special-cased; the recorded names alone decide what is compared.
17
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs state the returned name, the comparison environment, why a key cannot replace this proof and the empty case.
18
+ * @evidence contracts/portability.md#os-neutral-implementation Windows variable names compare case-insensitively against the snapshot, choosing the lexically first spelling as ttsc's sidecar environment does; other platforms compare names exactly.
19
+ * @evidence contracts/performance.md#efficient-algorithms One lookup per recorded name; on Windows each lookup scans the snapshot's names, O(recorded × environment) with both small.
20
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work The predicate decides reuse for its caller and retains no verdict.
21
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Entry and Windows key arrays are call-local; no environment, verdict or native handle is retained.
22
+ */
23
+ export declare function environmentInputMismatch(recorded: Readonly<Record<string, string | null>> | undefined, environment: NodeJS.ProcessEnv): string | undefined;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Name the first recorded environment read that no longer has its recorded
3
+ * value, or stays unset, in `environment`; `undefined` when every read holds.
4
+ *
5
+ * Native plugins record each variable they read through `ctx.Env` in the
6
+ * envelope's `environmentInputs`, which generations, publications and project
7
+ * records carry. Output is reusable only under an environment that would make
8
+ * every such read return what it returned, so callers compare against the
9
+ * compiler environment snapshot (`resolveCompilerEnvironment`) a recompile
10
+ * would run under. A cache key cannot carry these names: only the compile
11
+ * discovers them. An absent record, from an exception or from plugins that read
12
+ * no variable, always holds.
13
+ *
14
+ * @evidence contracts/common.md#principled-implementation Equality of each recorded value or absence with the supplied snapshot is exactly the condition under which the plugin's reads would repeat; unrecorded variables are not inputs and are ignored.
15
+ * @evidence contracts/common.md#clear-and-simple-design One predicate over the recorded map serves cached delivery, capture admission, shared-store adoption and persistent project records.
16
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No variable list, prefix or consumer name is special-cased; the recorded names alone decide what is compared.
17
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs state the returned name, the comparison environment, why a key cannot replace this proof and the empty case.
18
+ * @evidence contracts/portability.md#os-neutral-implementation Windows variable names compare case-insensitively against the snapshot, choosing the lexically first spelling as ttsc's sidecar environment does; other platforms compare names exactly.
19
+ * @evidence contracts/performance.md#efficient-algorithms One lookup per recorded name; on Windows each lookup scans the snapshot's names, O(recorded × environment) with both small.
20
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work The predicate decides reuse for its caller and retains no verdict.
21
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Entry and Windows key arrays are call-local; no environment, verdict or native handle is retained.
22
+ */
23
+ export declare function environmentInputMismatch(recorded: Readonly<Record<string, string | null>> | undefined, environment: NodeJS.ProcessEnv): string | undefined;
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Name the first recorded environment read that no longer has its recorded
5
+ * value, or stays unset, in `environment`; `undefined` when every read holds.
6
+ *
7
+ * Native plugins record each variable they read through `ctx.Env` in the
8
+ * envelope's `environmentInputs`, which generations, publications and project
9
+ * records carry. Output is reusable only under an environment that would make
10
+ * every such read return what it returned, so callers compare against the
11
+ * compiler environment snapshot (`resolveCompilerEnvironment`) a recompile
12
+ * would run under. A cache key cannot carry these names: only the compile
13
+ * discovers them. An absent record, from an exception or from plugins that read
14
+ * no variable, always holds.
15
+ *
16
+ * @evidence contracts/common.md#principled-implementation Equality of each recorded value or absence with the supplied snapshot is exactly the condition under which the plugin's reads would repeat; unrecorded variables are not inputs and are ignored.
17
+ * @evidence contracts/common.md#clear-and-simple-design One predicate over the recorded map serves cached delivery, capture admission, shared-store adoption and persistent project records.
18
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No variable list, prefix or consumer name is special-cased; the recorded names alone decide what is compared.
19
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs state the returned name, the comparison environment, why a key cannot replace this proof and the empty case.
20
+ * @evidence contracts/portability.md#os-neutral-implementation Windows variable names compare case-insensitively against the snapshot, choosing the lexically first spelling as ttsc's sidecar environment does; other platforms compare names exactly.
21
+ * @evidence contracts/performance.md#efficient-algorithms One lookup per recorded name; on Windows each lookup scans the snapshot's names, O(recorded × environment) with both small.
22
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work The predicate decides reuse for its caller and retains no verdict.
23
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Entry and Windows key arrays are call-local; no environment, verdict or native handle is retained.
24
+ */
25
+ function environmentInputMismatch(recorded, environment) {
26
+ for (const [name, value] of Object.entries(recorded ?? {})) {
27
+ let current;
28
+ if (process.platform === "win32") {
29
+ const identity = name.toUpperCase();
30
+ let selected;
31
+ for (const key of Object.keys(environment))
32
+ if (key.toUpperCase() === identity &&
33
+ (selected === undefined || key < selected))
34
+ selected = key;
35
+ current = selected === undefined ? undefined : environment[selected];
36
+ }
37
+ else if (Object.hasOwn(environment, name))
38
+ current = environment[name];
39
+ if ((current ?? null) !== value)
40
+ return name;
41
+ }
42
+ return undefined;
43
+ }
44
+
45
+ exports.environmentInputMismatch = environmentInputMismatch;
46
+ //# sourceMappingURL=environmentInputMismatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentInputMismatch.js","sources":["../../../../src/core/transform/validation/environmentInputMismatch.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,wBAAwB,CACtC,QAA6D,EAC7D,WAA8B,EAAA;AAE9B,IAAA,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE;AAC1D,QAAA,IAAI,OAA2B;AAC/B,QAAA,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AAChC,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE;AACnC,YAAA,IAAI,QAA4B;YAChC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;AACxC,gBAAA,IACE,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ;AAC9B,qBAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,GAAG,QAAQ,CAAC;oBAE1C,QAAQ,GAAG,GAAG;AAClB,YAAA,OAAO,GAAG,QAAQ,KAAK,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC;QACtE;AAAO,aAAA,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC;AAAE,YAAA,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;AACxE,QAAA,IAAI,CAAC,OAAO,IAAI,IAAI,MAAM,KAAK;AAAE,YAAA,OAAO,IAAI;IAC9C;AACA,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Name the first recorded environment read that no longer has its recorded
3
+ * value, or stays unset, in `environment`; `undefined` when every read holds.
4
+ *
5
+ * Native plugins record each variable they read through `ctx.Env` in the
6
+ * envelope's `environmentInputs`, which generations, publications and project
7
+ * records carry. Output is reusable only under an environment that would make
8
+ * every such read return what it returned, so callers compare against the
9
+ * compiler environment snapshot (`resolveCompilerEnvironment`) a recompile
10
+ * would run under. A cache key cannot carry these names: only the compile
11
+ * discovers them. An absent record, from an exception or from plugins that read
12
+ * no variable, always holds.
13
+ *
14
+ * @evidence contracts/common.md#principled-implementation Equality of each recorded value or absence with the supplied snapshot is exactly the condition under which the plugin's reads would repeat; unrecorded variables are not inputs and are ignored.
15
+ * @evidence contracts/common.md#clear-and-simple-design One predicate over the recorded map serves cached delivery, capture admission, shared-store adoption and persistent project records.
16
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts No variable list, prefix or consumer name is special-cased; the recorded names alone decide what is compared.
17
+ * @evidence contracts/common.md#meaningful-documentation Native paragraphs state the returned name, the comparison environment, why a key cannot replace this proof and the empty case.
18
+ * @evidence contracts/portability.md#os-neutral-implementation Windows variable names compare case-insensitively against the snapshot, choosing the lexically first spelling as ttsc's sidecar environment does; other platforms compare names exactly.
19
+ * @evidence contracts/performance.md#efficient-algorithms One lookup per recorded name; on Windows each lookup scans the snapshot's names, O(recorded × environment) with both small.
20
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work The predicate decides reuse for its caller and retains no verdict.
21
+ * @evidence contracts/performance.md#bound-retention-and-release-resources Entry and Windows key arrays are call-local; no environment, verdict or native handle is retained.
22
+ */
23
+ function environmentInputMismatch(recorded, environment) {
24
+ for (const [name, value] of Object.entries(recorded ?? {})) {
25
+ let current;
26
+ if (process.platform === "win32") {
27
+ const identity = name.toUpperCase();
28
+ let selected;
29
+ for (const key of Object.keys(environment))
30
+ if (key.toUpperCase() === identity &&
31
+ (selected === undefined || key < selected))
32
+ selected = key;
33
+ current = selected === undefined ? undefined : environment[selected];
34
+ }
35
+ else if (Object.hasOwn(environment, name))
36
+ current = environment[name];
37
+ if ((current ?? null) !== value)
38
+ return name;
39
+ }
40
+ return undefined;
41
+ }
42
+
43
+ export { environmentInputMismatch };
44
+ //# sourceMappingURL=environmentInputMismatch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentInputMismatch.mjs","sources":["../../../../src/core/transform/validation/environmentInputMismatch.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,wBAAwB,CACtC,QAA6D,EAC7D,WAA8B,EAAA;AAE9B,IAAA,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE;AAC1D,QAAA,IAAI,OAA2B;AAC/B,QAAA,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;AAChC,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE;AACnC,YAAA,IAAI,QAA4B;YAChC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;AACxC,gBAAA,IACE,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ;AAC9B,qBAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,GAAG,QAAQ,CAAC;oBAE1C,QAAQ,GAAG,GAAG;AAClB,YAAA,OAAO,GAAG,QAAQ,KAAK,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC;QACtE;AAAO,aAAA,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC;AAAE,YAAA,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;AACxE,QAAA,IAAI,CAAC,OAAO,IAAI,IAAI,MAAM,KAAK;AAAE,YAAA,OAAO,IAAI;IAC9C;AACA,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Validate a persisted plugin environment-read map before it can authorize
3
+ * reuse. Optional-field omission belongs to the reader; a present field must
4
+ * contain nonempty names and string values or null for recorded absence.
5
+ *
6
+ * @evidence contracts/common.md#principled-implementation The complete dictionary must satisfy the native envelope's name/value contract before equality can prove its reads. Arrays and primitive whole fields cannot become an empty dependency set.
7
+ * @evidence contracts/common.md#clear-and-simple-design Shared-publication and project-record readers use one predicate for their common environment witness while retaining ownership of their surrounding schemas.
8
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Invalid records are rejected whole without dropping entries, coercing values or reconstructing an earlier observation from the current environment.
9
+ * @evidence contracts/common.md#meaningful-documentation Native prose distinguishes reader-owned omission from a present dictionary and explains null absence.
10
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation This checks decoded JSON names and values without reading native environment state or normalizing platform aliases.
11
+ * @evidence contracts/performance.md#efficient-algorithms Object.entries visits own dictionary entries once; the temporary array grows with the number of recorded reads, and no value bytes are copied or hashed.
12
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Each reader validates its newly decoded record; this predicate retains no prior schema verdict.
13
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The call borrows its value and retains no state, handle or history.
14
+ */
15
+ export declare function isEnvironmentInputs(value: unknown): value is Record<string, string | null>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Validate a persisted plugin environment-read map before it can authorize
3
+ * reuse. Optional-field omission belongs to the reader; a present field must
4
+ * contain nonempty names and string values or null for recorded absence.
5
+ *
6
+ * @evidence contracts/common.md#principled-implementation The complete dictionary must satisfy the native envelope's name/value contract before equality can prove its reads. Arrays and primitive whole fields cannot become an empty dependency set.
7
+ * @evidence contracts/common.md#clear-and-simple-design Shared-publication and project-record readers use one predicate for their common environment witness while retaining ownership of their surrounding schemas.
8
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Invalid records are rejected whole without dropping entries, coercing values or reconstructing an earlier observation from the current environment.
9
+ * @evidence contracts/common.md#meaningful-documentation Native prose distinguishes reader-owned omission from a present dictionary and explains null absence.
10
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation This checks decoded JSON names and values without reading native environment state or normalizing platform aliases.
11
+ * @evidence contracts/performance.md#efficient-algorithms Object.entries visits own dictionary entries once; the temporary array grows with the number of recorded reads, and no value bytes are copied or hashed.
12
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Each reader validates its newly decoded record; this predicate retains no prior schema verdict.
13
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The call borrows its value and retains no state, handle or history.
14
+ */
15
+ export declare function isEnvironmentInputs(value: unknown): value is Record<string, string | null>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Validate a persisted plugin environment-read map before it can authorize
3
+ * reuse. Optional-field omission belongs to the reader; a present field must
4
+ * contain nonempty names and string values or null for recorded absence.
5
+ *
6
+ * @evidence contracts/common.md#principled-implementation The complete dictionary must satisfy the native envelope's name/value contract before equality can prove its reads. Arrays and primitive whole fields cannot become an empty dependency set.
7
+ * @evidence contracts/common.md#clear-and-simple-design Shared-publication and project-record readers use one predicate for their common environment witness while retaining ownership of their surrounding schemas.
8
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Invalid records are rejected whole without dropping entries, coercing values or reconstructing an earlier observation from the current environment.
9
+ * @evidence contracts/common.md#meaningful-documentation Native prose distinguishes reader-owned omission from a present dictionary and explains null absence.
10
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation This checks decoded JSON names and values without reading native environment state or normalizing platform aliases.
11
+ * @evidence contracts/performance.md#efficient-algorithms Object.entries visits own dictionary entries once; the temporary array grows with the number of recorded reads, and no value bytes are copied or hashed.
12
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Each reader validates its newly decoded record; this predicate retains no prior schema verdict.
13
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The call borrows its value and retains no state, handle or history.
14
+ */
15
+ export declare function isEnvironmentInputs(value: unknown): value is Record<string, string | null>;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Validate a persisted plugin environment-read map before it can authorize
5
+ * reuse. Optional-field omission belongs to the reader; a present field must
6
+ * contain nonempty names and string values or null for recorded absence.
7
+ *
8
+ * @evidence contracts/common.md#principled-implementation The complete dictionary must satisfy the native envelope's name/value contract before equality can prove its reads. Arrays and primitive whole fields cannot become an empty dependency set.
9
+ * @evidence contracts/common.md#clear-and-simple-design Shared-publication and project-record readers use one predicate for their common environment witness while retaining ownership of their surrounding schemas.
10
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Invalid records are rejected whole without dropping entries, coercing values or reconstructing an earlier observation from the current environment.
11
+ * @evidence contracts/common.md#meaningful-documentation Native prose distinguishes reader-owned omission from a present dictionary and explains null absence.
12
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation This checks decoded JSON names and values without reading native environment state or normalizing platform aliases.
13
+ * @evidence contracts/performance.md#efficient-algorithms Object.entries visits own dictionary entries once; the temporary array grows with the number of recorded reads, and no value bytes are copied or hashed.
14
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Each reader validates its newly decoded record; this predicate retains no prior schema verdict.
15
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The call borrows its value and retains no state, handle or history.
16
+ */
17
+ function isEnvironmentInputs(value) {
18
+ return (typeof value === "object" &&
19
+ value !== null &&
20
+ !Array.isArray(value) &&
21
+ Object.entries(value).every(([name, recorded]) => name.length !== 0 &&
22
+ (recorded === null || typeof recorded === "string")));
23
+ }
24
+
25
+ exports.isEnvironmentInputs = isEnvironmentInputs;
26
+ //# sourceMappingURL=isEnvironmentInputs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEnvironmentInputs.js","sources":["../../../../src/core/transform/validation/isEnvironmentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;AAaG;AACG,SAAU,mBAAmB,CACjC,KAAc,EAAA;AAEd,IAAA,QACE,OAAO,KAAK,KAAK,QAAQ;AACzB,QAAA,KAAK,KAAK,IAAI;AACd,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CACzB,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,KACf,IAAI,CAAC,MAAM,KAAK,CAAC;aAChB,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,KAAK,QAAQ,CAAC,CACtD;AAEL;;;;"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Validate a persisted plugin environment-read map before it can authorize
3
+ * reuse. Optional-field omission belongs to the reader; a present field must
4
+ * contain nonempty names and string values or null for recorded absence.
5
+ *
6
+ * @evidence contracts/common.md#principled-implementation The complete dictionary must satisfy the native envelope's name/value contract before equality can prove its reads. Arrays and primitive whole fields cannot become an empty dependency set.
7
+ * @evidence contracts/common.md#clear-and-simple-design Shared-publication and project-record readers use one predicate for their common environment witness while retaining ownership of their surrounding schemas.
8
+ * @evidence contracts/common.md#prohibited-implementation-shortcuts Invalid records are rejected whole without dropping entries, coercing values or reconstructing an earlier observation from the current environment.
9
+ * @evidence contracts/common.md#meaningful-documentation Native prose distinguishes reader-owned omission from a present dictionary and explains null absence.
10
+ * @evidenceExclude contracts/portability.md#os-neutral-implementation This checks decoded JSON names and values without reading native environment state or normalizing platform aliases.
11
+ * @evidence contracts/performance.md#efficient-algorithms Object.entries visits own dictionary entries once; the temporary array grows with the number of recorded reads, and no value bytes are copied or hashed.
12
+ * @evidenceExclude contracts/performance.md#reuse-equivalent-work Each reader validates its newly decoded record; this predicate retains no prior schema verdict.
13
+ * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The call borrows its value and retains no state, handle or history.
14
+ */
15
+ function isEnvironmentInputs(value) {
16
+ return (typeof value === "object" &&
17
+ value !== null &&
18
+ !Array.isArray(value) &&
19
+ Object.entries(value).every(([name, recorded]) => name.length !== 0 &&
20
+ (recorded === null || typeof recorded === "string")));
21
+ }
22
+
23
+ export { isEnvironmentInputs };
24
+ //# sourceMappingURL=isEnvironmentInputs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEnvironmentInputs.mjs","sources":["../../../../src/core/transform/validation/isEnvironmentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;AAaG;AACG,SAAU,mBAAmB,CACjC,KAAc,EAAA;AAEd,IAAA,QACE,OAAO,KAAK,KAAK,QAAQ;AACzB,QAAA,KAAK,KAAK,IAAI;AACd,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CACzB,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,KACf,IAAI,CAAC,MAAM,KAAK,CAAC;aAChB,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,KAAK,QAAQ,CAAC,CACtD;AAEL;;;;"}
@@ -58,7 +58,9 @@ export interface TtscTransformHooks {
58
58
  * once per delivered module and does not call `addWatchFile` for that module.
59
59
  * `failed` marks a recovery batch: a failed compiler can omit inputs from its
60
60
  * previous successful result, so replacing hosts should retain those
61
- * spellings until the next successful delivery.
61
+ * spellings until the next successful delivery. The third argument carries
62
+ * the generation's environment reads for hosts that include non-file inputs
63
+ * in their persistent keys.
62
64
  */
63
65
  addWatchFiles?: TtscAddWatchFiles;
64
66
  /**
@@ -147,9 +149,9 @@ export interface TtscTransformHooks {
147
149
  */
148
150
  export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence) => void;
149
151
  /**
150
- * Receive a readonly input batch; failed batches retain recovery dependencies.
152
+ * Receive a readonly input batch and its recorded environment reads.
151
153
  *
152
- * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery without erasing per-input evidence.
154
+ * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery; optional environment reads retain non-file inputs for persistent keys.
153
155
  * @evidence contracts/common.md#clear-and-simple-design A single named function signature preserves the optional flag and original function-property assignability.
154
156
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Recovery is an explicit host contract rather than successful evidence manufactured for a failed compile.
155
157
  * @evidence contracts/common.md#meaningful-documentation Native prose and the owning member explain readonly batching and failed retention; separated tags follow documentation guidance.
@@ -164,7 +166,7 @@ export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence)
164
166
  * TtscAddWatchFiles only declares a shape; it has no handle or retained
165
167
  * state at runtime.
166
168
  */
167
- export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean) => void;
169
+ export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean, environmentInputs?: Readonly<Record<string, string | null>>) => void;
168
170
  /**
169
171
  * Hand a host the project record and its watching inputs for this delivery.
170
172
  *
@@ -58,7 +58,9 @@ export interface TtscTransformHooks {
58
58
  * once per delivered module and does not call `addWatchFile` for that module.
59
59
  * `failed` marks a recovery batch: a failed compiler can omit inputs from its
60
60
  * previous successful result, so replacing hosts should retain those
61
- * spellings until the next successful delivery.
61
+ * spellings until the next successful delivery. The third argument carries
62
+ * the generation's environment reads for hosts that include non-file inputs
63
+ * in their persistent keys.
62
64
  */
63
65
  addWatchFiles?: TtscAddWatchFiles;
64
66
  /**
@@ -147,9 +149,9 @@ export interface TtscTransformHooks {
147
149
  */
148
150
  export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence) => void;
149
151
  /**
150
- * Receive a readonly input batch; failed batches retain recovery dependencies.
152
+ * Receive a readonly input batch and its recorded environment reads.
151
153
  *
152
- * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery without erasing per-input evidence.
154
+ * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery; optional environment reads retain non-file inputs for persistent keys.
153
155
  * @evidence contracts/common.md#clear-and-simple-design A single named function signature preserves the optional flag and original function-property assignability.
154
156
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Recovery is an explicit host contract rather than successful evidence manufactured for a failed compile.
155
157
  * @evidence contracts/common.md#meaningful-documentation Native prose and the owning member explain readonly batching and failed retention; separated tags follow documentation guidance.
@@ -164,7 +166,7 @@ export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence)
164
166
  * TtscAddWatchFiles only declares a shape; it has no handle or retained
165
167
  * state at runtime.
166
168
  */
167
- export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean) => void;
169
+ export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean, environmentInputs?: Readonly<Record<string, string | null>>) => void;
168
170
  /**
169
171
  * Hand a host the project record and its watching inputs for this delivery.
170
172
  *
@@ -58,7 +58,9 @@ export interface TtscTransformHooks {
58
58
  * once per delivered module and does not call `addWatchFile` for that module.
59
59
  * `failed` marks a recovery batch: a failed compiler can omit inputs from its
60
60
  * previous successful result, so replacing hosts should retain those
61
- * spellings until the next successful delivery.
61
+ * spellings until the next successful delivery. The third argument carries
62
+ * the generation's environment reads for hosts that include non-file inputs
63
+ * in their persistent keys.
62
64
  */
63
65
  addWatchFiles?: TtscAddWatchFiles;
64
66
  /**
@@ -147,9 +149,9 @@ export interface TtscTransformHooks {
147
149
  */
148
150
  export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence) => void;
149
151
  /**
150
- * Receive a readonly input batch; failed batches retain recovery dependencies.
152
+ * Receive a readonly input batch and its recorded environment reads.
151
153
  *
152
- * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery without erasing per-input evidence.
154
+ * @evidence contracts/common.md#principled-implementation The batch and optional failure flag express replacement versus recovery delivery; optional environment reads retain non-file inputs for persistent keys.
153
155
  * @evidence contracts/common.md#clear-and-simple-design A single named function signature preserves the optional flag and original function-property assignability.
154
156
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Recovery is an explicit host contract rather than successful evidence manufactured for a failed compile.
155
157
  * @evidence contracts/common.md#meaningful-documentation Native prose and the owning member explain readonly batching and failed retention; separated tags follow documentation guidance.
@@ -164,7 +166,7 @@ export type TtscAddWatchFile = (file: string, evidence?: TtscWatchInputEvidence)
164
166
  * TtscAddWatchFiles only declares a shape; it has no handle or retained
165
167
  * state at runtime.
166
168
  */
167
- export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean) => void;
169
+ export type TtscAddWatchFiles = (inputs: readonly TtscWatchInput[], failed?: boolean, environmentInputs?: Readonly<Record<string, string | null>>) => void;
168
170
  /**
169
171
  * Hand a host the project record and its watching inputs for this delivery.
170
172
  *
@@ -24,6 +24,8 @@ import type { TtscWatchInput } from "./TtscWatchInput.cjs";
24
24
  * @param hooks The host's hooks; nothing is handed when it takes no inputs.
25
25
  * @param inputs The inputs in the order they were derived.
26
26
  * @param failed Whether they are a failed generation's, for a batching host.
27
+ * @param environmentInputs Generation-time environment reads for a batching
28
+ * host's persistent key, including recorded absences.
27
29
  * @evidence contracts/common.md#principled-implementation Exact registration spellings are deduplicated with membership preferred over ordinary evidence and evidence over a recovery-only path; equal-ranked entries retain the first observation.
28
30
  * @evidence contracts/common.md#clear-and-simple-design One precedence pass feeds either the batch callback or individual callbacks, leaving evidence derivation and bundler policy with their owners.
29
31
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Contract-defined precedence keeps the strongest available input meaning without inventing facts, and batch preference follows the supported callback contract.
@@ -33,4 +35,4 @@ import type { TtscWatchInput } from "./TtscWatchInput.cjs";
33
35
  * @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The chosen map and batch are call-local; host callbacks own any retained watcher state after delivery.
34
36
  * @evidenceExclude contracts/portability.md#os-neutral-implementation Deduplicates inputs by their exact spelling and hands them to host callbacks; no path is parsed.
35
37
  */
36
- export declare function handWatchInputs(hooks: TtscTransformHooks | undefined, inputs: readonly TtscWatchInput[], failed?: boolean): void;
38
+ export declare function handWatchInputs(hooks: TtscTransformHooks | undefined, inputs: readonly TtscWatchInput[], failed?: boolean, environmentInputs?: Readonly<Record<string, string | null>>): void;