@ttsc/unplugin 0.31.5 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/bridge/TtscProjectRecord.d.cts +8 -0
- package/lib/core/bridge/TtscProjectRecord.d.mts +8 -0
- package/lib/core/bridge/TtscProjectRecord.d.ts +8 -0
- package/lib/core/bridge/readProjectRecordFile.js +5 -1
- package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.mjs +5 -1
- package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
- package/lib/core/observer/WatchScope.d.cts +3 -3
- package/lib/core/observer/WatchScope.d.mts +3 -3
- package/lib/core/observer/WatchScope.d.ts +3 -3
- package/lib/core/observer/createInputObserver.d.cts +7 -8
- package/lib/core/observer/createInputObserver.d.mts +7 -8
- package/lib/core/observer/createInputObserver.d.ts +7 -8
- package/lib/core/observer/createInputObserver.js +7 -8
- package/lib/core/observer/createInputObserver.js.map +1 -1
- package/lib/core/observer/createInputObserver.mjs +7 -8
- package/lib/core/observer/createInputObserver.mjs.map +1 -1
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.cts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.mts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.ts +2 -0
- package/lib/core/options/TtscUnpluginOptions.d.cts +12 -2
- package/lib/core/options/TtscUnpluginOptions.d.mts +12 -2
- package/lib/core/options/TtscUnpluginOptions.d.ts +12 -2
- package/lib/core/options/resolveOptions.d.cts +4 -3
- package/lib/core/options/resolveOptions.d.mts +4 -3
- package/lib/core/options/resolveOptions.d.ts +4 -3
- package/lib/core/options/resolveOptions.js +5 -3
- package/lib/core/options/resolveOptions.js.map +1 -1
- package/lib/core/options/resolveOptions.mjs +5 -3
- package/lib/core/options/resolveOptions.mjs.map +1 -1
- package/lib/core/transform/TtscPrecompilation.d.cts +52 -0
- package/lib/core/transform/TtscPrecompilation.d.mts +52 -0
- package/lib/core/transform/TtscPrecompilation.d.ts +52 -0
- package/lib/core/transform/TtscPrecompilation.js +101 -0
- package/lib/core/transform/TtscPrecompilation.js.map +1 -0
- package/lib/core/transform/TtscPrecompilation.mjs +101 -0
- package/lib/core/transform/TtscPrecompilation.mjs.map +1 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.js +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.js +2 -0
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.js.map +1 -1
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs +2 -0
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs.map +1 -1
- package/lib/core/transform/envelope/generationCaseSensitivity.d.cts +32 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.d.mts +32 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.d.ts +32 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.js +39 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.js.map +1 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.mjs +37 -0
- package/lib/core/transform/envelope/generationCaseSensitivity.mjs.map +1 -0
- package/lib/core/transform/envelope/selectExternalInputPaths.js +2 -1
- package/lib/core/transform/envelope/selectExternalInputPaths.js.map +1 -1
- package/lib/core/transform/envelope/selectExternalInputPaths.mjs +2 -1
- package/lib/core/transform/envelope/selectExternalInputPaths.mjs.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js +2 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs +2 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs.map +1 -1
- package/lib/core/transform/filesystem/createHostPathIdentityContext.d.cts +9 -1
- package/lib/core/transform/filesystem/createHostPathIdentityContext.d.mts +9 -1
- package/lib/core/transform/filesystem/createHostPathIdentityContext.d.ts +9 -1
- package/lib/core/transform/filesystem/createHostPathIdentityContext.js +10 -2
- package/lib/core/transform/filesystem/createHostPathIdentityContext.js.map +1 -1
- package/lib/core/transform/filesystem/createHostPathIdentityContext.mjs +10 -2
- package/lib/core/transform/filesystem/createHostPathIdentityContext.mjs.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.d.cts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.mts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.ts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +17 -4
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +17 -4
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/selectPersistentHostInputs.js +2 -1
- package/lib/core/transform/generation/selectPersistentHostInputs.js.map +1 -1
- package/lib/core/transform/generation/selectPersistentHostInputs.mjs +2 -1
- package/lib/core/transform/generation/selectPersistentHostInputs.mjs.map +1 -1
- package/lib/core/transform/generation/transformProject.d.cts +2 -0
- package/lib/core/transform/generation/transformProject.d.mts +2 -0
- package/lib/core/transform/generation/transformProject.d.ts +2 -0
- package/lib/core/transform/generation/transformProject.js.map +1 -1
- package/lib/core/transform/generation/transformProject.mjs.map +1 -1
- package/lib/core/transform/inputs/nativeInputPredicateState.js.map +1 -1
- package/lib/core/transform/inputs/nativeInputPredicateState.mjs.map +1 -1
- package/lib/core/transform/tracker/createHostInputMutationTracker.d.cts +7 -1
- package/lib/core/transform/tracker/createHostInputMutationTracker.d.mts +7 -1
- package/lib/core/transform/tracker/createHostInputMutationTracker.d.ts +7 -1
- package/lib/core/transform/tracker/createHostInputMutationTracker.js +8 -2
- package/lib/core/transform/tracker/createHostInputMutationTracker.js.map +1 -1
- package/lib/core/transform/tracker/createHostInputMutationTracker.mjs +8 -2
- package/lib/core/transform/tracker/createHostInputMutationTracker.mjs.map +1 -1
- package/lib/core/transform/tracker/createProjectMutationTracker.d.cts +6 -4
- package/lib/core/transform/tracker/createProjectMutationTracker.d.mts +6 -4
- package/lib/core/transform/tracker/createProjectMutationTracker.d.ts +6 -4
- package/lib/core/transform/tracker/createProjectMutationTracker.js +29 -6
- package/lib/core/transform/tracker/createProjectMutationTracker.js.map +1 -1
- package/lib/core/transform/tracker/createProjectMutationTracker.mjs +29 -6
- package/lib/core/transform/tracker/createProjectMutationTracker.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.d.cts +8 -24
- package/lib/core/transform/transformTtsc.d.mts +8 -24
- package/lib/core/transform/transformTtsc.d.ts +8 -24
- package/lib/core/transform/transformTtsc.js +56 -32
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +56 -32
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.cts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.mts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.ts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js +12 -4
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +12 -4
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedSource.d.cts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.d.mts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.d.ts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.js +11 -3
- package/lib/core/transform/validation/matchesCachedSource.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedSource.mjs +11 -3
- package/lib/core/transform/validation/matchesCachedSource.mjs.map +1 -1
- package/lib/core/transform/watch/TtscTransformHooks.d.cts +9 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.mts +9 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.ts +9 -0
- package/lib/core/transform/watch/TtscWatchInputBaseline.d.cts +2 -1
- package/lib/core/transform/watch/TtscWatchInputBaseline.d.mts +2 -1
- package/lib/core/transform/watch/TtscWatchInputBaseline.d.ts +2 -1
- package/lib/core/transform/watch/isWatchInputKeyBaseline.js.map +1 -1
- package/lib/core/transform/watch/isWatchInputKeyBaseline.mjs.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.d.cts +3 -4
- package/lib/core/transform/watch/notifyProjectRecord.d.mts +3 -4
- package/lib/core/transform/watch/notifyProjectRecord.d.ts +3 -4
- package/lib/core/transform/watch/notifyProjectRecord.js +5 -4
- package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.mjs +5 -4
- package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
- package/lib/core/transform/watch/recordedDependencyWitnesses.d.cts +30 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.d.mts +30 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.d.ts +30 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.js +51 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.js.map +1 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs +49 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs.map +1 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.cts +1 -2
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.mts +1 -2
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.d.ts +1 -2
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js +1 -2
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs +1 -2
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs.map +1 -1
- package/lib/core/tsconfig/TsconfigReadTransaction.d.cts +11 -8
- package/lib/core/tsconfig/TsconfigReadTransaction.d.mts +11 -8
- package/lib/core/tsconfig/TsconfigReadTransaction.d.ts +11 -8
- package/lib/core/tsconfig/TsconfigReadTransaction.js +11 -8
- package/lib/core/tsconfig/TsconfigReadTransaction.js.map +1 -1
- package/lib/core/tsconfig/TsconfigReadTransaction.mjs +11 -8
- package/lib/core/tsconfig/TsconfigReadTransaction.mjs.map +1 -1
- package/lib/core/tsconfig/findDeclaredCompilerOption.d.cts +3 -2
- package/lib/core/tsconfig/findDeclaredCompilerOption.d.mts +3 -2
- package/lib/core/tsconfig/findDeclaredCompilerOption.d.ts +3 -2
- package/lib/core/tsconfig/findDeclaredCompilerOption.js +3 -2
- package/lib/core/tsconfig/findDeclaredCompilerOption.js.map +1 -1
- package/lib/core/tsconfig/findDeclaredCompilerOption.mjs +3 -2
- package/lib/core/tsconfig/findDeclaredCompilerOption.mjs.map +1 -1
- package/lib/core/tsconfig/findDeclaredFileSpecs.d.cts +3 -2
- package/lib/core/tsconfig/findDeclaredFileSpecs.d.mts +3 -2
- package/lib/core/tsconfig/findDeclaredFileSpecs.d.ts +3 -2
- package/lib/core/tsconfig/findDeclaredFileSpecs.js +3 -2
- package/lib/core/tsconfig/findDeclaredFileSpecs.js.map +1 -1
- package/lib/core/tsconfig/findDeclaredFileSpecs.mjs +3 -2
- package/lib/core/tsconfig/findDeclaredFileSpecs.mjs.map +1 -1
- package/lib/core/tsconfig/findDeclaredPaths.d.cts +3 -3
- package/lib/core/tsconfig/findDeclaredPaths.d.mts +3 -3
- package/lib/core/tsconfig/findDeclaredPaths.d.ts +3 -3
- package/lib/core/tsconfig/findDeclaredPaths.js +2 -2
- package/lib/core/tsconfig/findDeclaredPaths.mjs +2 -2
- package/lib/core/tsconfig/findDeclaredValue.d.cts +2 -1
- package/lib/core/tsconfig/findDeclaredValue.d.mts +2 -1
- package/lib/core/tsconfig/findDeclaredValue.d.ts +2 -1
- package/lib/core/tsconfig/findDeclaredValue.js +2 -1
- package/lib/core/tsconfig/findDeclaredValue.js.map +1 -1
- package/lib/core/tsconfig/findDeclaredValue.mjs +2 -1
- package/lib/core/tsconfig/findDeclaredValue.mjs.map +1 -1
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.js +1 -1
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.mjs +1 -1
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.cts +2 -2
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.mts +2 -2
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.d.ts +2 -2
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.js +2 -2
- package/lib/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.mjs +2 -2
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.cts +3 -3
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.mts +3 -3
- package/lib/core/tsconfig/readProjectMembershipPolicy.d.ts +3 -3
- package/lib/core/tsconfig/readProjectMembershipPolicy.js +4 -4
- package/lib/core/tsconfig/readProjectMembershipPolicy.mjs +4 -4
- package/lib/core/unplugin.js +14 -0
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +14 -0
- package/lib/core/unplugin.mjs.map +1 -1
- package/lib/core/vite/installViteDependencyScanPlugins.d.cts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.d.mts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.d.ts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.js +186 -0
- package/lib/core/vite/installViteDependencyScanPlugins.js.map +1 -0
- package/lib/core/vite/installViteDependencyScanPlugins.mjs +184 -0
- package/lib/core/vite/installViteDependencyScanPlugins.mjs.map +1 -0
- package/package.json +5 -4
- package/src/core/bridge/TtscProjectRecord.ts +9 -0
- package/src/core/bridge/readProjectRecordFile.ts +5 -1
- package/src/core/observer/WatchScope.ts +3 -3
- package/src/core/observer/createInputObserver.ts +7 -8
- package/src/core/options/ResolvedTtscUnpluginOptions.ts +3 -0
- package/src/core/options/TtscUnpluginOptions.ts +13 -2
- package/src/core/options/resolveOptions.ts +6 -3
- package/src/core/transform/TtscPrecompilation.ts +103 -0
- package/src/core/transform/cache/selectCachedGenerationAction.ts +3 -0
- package/src/core/transform/cache/withdrawTtscTransformGenerations.ts +2 -0
- package/src/core/transform/envelope/generationCaseSensitivity.ts +46 -0
- package/src/core/transform/envelope/selectExternalInputPaths.ts +5 -1
- package/src/core/transform/envelope/selectNotifiableAbsentInputs.ts +5 -1
- package/src/core/transform/filesystem/createHostPathIdentityContext.ts +9 -1
- package/src/core/transform/generation/captureTransformGeneration.ts +22 -2
- package/src/core/transform/generation/selectPersistentHostInputs.ts +5 -1
- package/src/core/transform/generation/transformProject.ts +3 -0
- package/src/core/transform/inputs/nativeInputPredicateState.ts +1 -3
- package/src/core/transform/tracker/createHostInputMutationTracker.ts +10 -1
- package/src/core/transform/tracker/createProjectMutationTracker.ts +34 -6
- package/src/core/transform/transformTtsc.ts +86 -37
- package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -4
- package/src/core/transform/validation/matchesCachedSource.ts +9 -2
- package/src/core/transform/watch/TtscTransformHooks.ts +10 -0
- package/src/core/transform/watch/TtscWatchInputBaseline.ts +2 -1
- package/src/core/transform/watch/isWatchInputKeyBaseline.ts +4 -2
- package/src/core/transform/watch/notifyProjectRecord.ts +5 -4
- package/src/core/transform/watch/recordedDependencyWitnesses.ts +50 -0
- package/src/core/transform/watch/watchInputEvidenceMatchesBaseline.ts +1 -2
- package/src/core/tsconfig/TsconfigReadTransaction.ts +11 -8
- package/src/core/tsconfig/findDeclaredCompilerOption.ts +3 -2
- package/src/core/tsconfig/findDeclaredFileSpecs.ts +3 -2
- package/src/core/tsconfig/findDeclaredPaths.ts +3 -3
- package/src/core/tsconfig/findDeclaredValue.ts +2 -1
- package/src/core/tsconfig/readEffectiveTsconfigTemplateCompilerOptions.ts +1 -1
- package/src/core/tsconfig/readEffectiveTsconfigTemplateFileSpecs.ts +2 -2
- package/src/core/tsconfig/readProjectMembershipPolicy.ts +4 -4
- package/src/core/unplugin.ts +32 -0
- package/src/core/vite/installViteDependencyScanPlugins.ts +219 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import { TtscPrecompilation } from './TtscPrecompilation.mjs';
|
|
2
3
|
import { createAliasPaths } from './alias/createAliasPaths.mjs';
|
|
3
4
|
import { TERMINAL_TRANSFORM_GENERATIONS } from './cache/TERMINAL_TRANSFORM_GENERATIONS.mjs';
|
|
4
5
|
import { TRANSFORM_CACHE_CASE_POLICIES } from './cache/TRANSFORM_CACHE_CASE_POLICIES.mjs';
|
|
@@ -27,6 +28,7 @@ import { stripQuery } from './utils/stripQuery.mjs';
|
|
|
27
28
|
import { TtscGenerationProof } from './validation/TtscGenerationProof.mjs';
|
|
28
29
|
import { notifyRejectedGenerationInputs } from './watch/notifyRejectedGenerationInputs.mjs';
|
|
29
30
|
import { prepareProjectRecordDirectories } from './watch/prepareProjectRecordDirectories.mjs';
|
|
31
|
+
import { recordedDependencyWitnesses } from './watch/recordedDependencyWitnesses.mjs';
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* Apply the ttsc plugin transform to a single source file.
|
|
@@ -61,32 +63,25 @@ import { prepareProjectRecordDirectories } from './watch/prepareProjectRecordDir
|
|
|
61
63
|
* @param hooks - Optional adapter callbacks; see {@link TtscTransformHooks}.
|
|
62
64
|
* Dependency notifications fire on cache hits too; watch registrations are
|
|
63
65
|
* per build, not per compilation.
|
|
64
|
-
* @evidence contracts/common.md#principled-implementation Project selection and generation-qualified
|
|
65
|
-
* @evidence contracts/common.md#clear-and-simple-design One
|
|
66
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines
|
|
67
|
-
* @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build
|
|
68
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* In-flight/valid completed reuse avoids compilation, not those checks or
|
|
73
|
-
* output/map/notification/record work. Capture misses pay whole native compile
|
|
74
|
-
* and input populations. The common proof owner skips redundant environment
|
|
75
|
-
* preparation for proven first deliveries and shares synchronous native proof
|
|
76
|
-
* queries; persistent/repeated delivery establishes fresh authority. Concurrent supersession can repeat the outer loop
|
|
77
|
-
* without a delivery-level retry/time bound here.
|
|
78
|
-
* @evidence contracts/performance.md#reuse-equivalent-work Cache identity covers config/options/plugins/aliases; current generations, pass-qualified terminal verdicts and in-flight Promises are shared only while their source and dependency proof remains valid.
|
|
79
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
80
|
-
* Optional cache state retains current generation Promises/results and
|
|
81
|
-
* per-key dependency/case facts without a byte/key cap here. Native tasks
|
|
82
|
-
* belong to compiler/capture owners; uncached captures retain no notification
|
|
83
|
-
* or persistent clock probe. Fresh-only delivery releases capture resources,
|
|
84
|
-
* retaining only an explicitly admitted local pass result; rejected or failed
|
|
85
|
-
* incomplete handoff detaches its generation. Eviction/disposal attempt independent resource release
|
|
86
|
-
* and native failures need not close every handle or remove every probe.
|
|
87
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native module paths and project coordinates use supported path/filesystem abstractions, while actual case policy and watcher capability come from generation proof rather than OS-name assumptions.
|
|
66
|
+
* @evidence contracts/common.md#principled-implementation Project selection and generation-qualified admission preserve compiler disk authority; preparation shares selection, keys, capture and input proofs with delivery, while host effects and first-delivery permission remain exclusive to actual delivery. Fresh-only success still requires an explicit nonwatching lifecycle, coherent project declaration and supported host-cache withdrawal because incomplete observation cannot establish watch invalidation.
|
|
67
|
+
* @evidence contracts/common.md#clear-and-simple-design One coordinator mode shares project selection, admission, compilation and output selection between preparation and delivery; dedicated owners retain proof and lifetime internals, and delivery alone performs host notification.
|
|
68
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Wrapper modules cannot poison source baselines. Preparation skips handoff rather than postcompile proof, and superseded preparation stops without reviving withdrawn generations. Incomplete local results share only explicitly nonwatching first deliveries in their exact pass; unknown/watching lifecycles or unsupported withdrawal reject and evict without invented persistent records or dependency closure.
|
|
69
|
+
* @evidence contracts/common.md#meaningful-documentation Native paragraphs and argument tags explain project scope, no-transform outcomes, cache epochs and per-build notifications; coordinator prose identifies delivery-only effects and postpreparation admission, with maintained invalidation reference context.
|
|
70
|
+
* @evidence contracts/performance.md#efficient-algorithms Selection and keys pay ancestor/config/alias/option/path-text work. Each iteration may prepare toolchains, settle notifications and replay source/project/external/universal proofs; reuse avoids compilation rather than those checks or output/map/notification/record work. Misses pay native compilation and input populations. Proven first deliveries skip redundant environment preparation and share synchronous proof queries; repeated delivery establishes fresh authority. Startup schedules explicit entries concurrently and skips delivery output/map/registration work. Supersession can repeat the outer loop without a retry or time bound.
|
|
71
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Config/options/plugins/aliases key the ordinary project Promise shared by preparation, simultaneous loads and sibling entries; completed generations, pass-qualified terminal verdicts and in-flight work remain reusable only under current source and dependency proof.
|
|
72
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Optional cache state retains generation Promises/results and per-key dependency/case facts without a byte/key cap. Native tasks belong to compiler/capture owners; uncached captures retain no notification or persistent clock probe. Fresh-only delivery releases capture resources while retaining an admitted local pass result; failed or rejected incomplete handoff detaches its generation. Superseded preparation preserves the new owner, and withdrawal schedules disposal of its pending fulfilled result. Eviction/disposal attempt independent release; native failure need not close every handle or remove every probe.
|
|
73
|
+
* @evidence contracts/portability.md#os-neutral-implementation Preparation and delivery use the same native project selection, path identity and cache-owned filesystem boundaries, with exact startup entry paths. Generation proof supplies case and watcher policy rather than OS-name assumptions.
|
|
88
74
|
*/
|
|
89
|
-
|
|
75
|
+
function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
76
|
+
return runTransformTtsc(id, source, options, aliases, cache, hooks, false);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Coordinate capture and actual delivery through the same project cache.
|
|
80
|
+
* Preparation stops before handoff: it cannot mark a module served, publish a
|
|
81
|
+
* host record, acknowledge volatility or emit module diagnostics. A prepared
|
|
82
|
+
* generation must still pass ordinary admission when the host requests it.
|
|
83
|
+
*/
|
|
84
|
+
async function runTransformTtsc(id, source, options, aliases, cache, hooks, preparing) {
|
|
90
85
|
const filesystem = transformFilesystem(cache);
|
|
91
86
|
const exact = hooks?.exactPath === true;
|
|
92
87
|
const clean = exact ? id : stripQuery(id);
|
|
@@ -110,7 +105,9 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
110
105
|
// Acquire host-owned storage before any generation observes directory inputs.
|
|
111
106
|
// Writing the delivered record must not create a new member of that proof.
|
|
112
107
|
prepareProjectRecordDirectories(hooks?.project);
|
|
113
|
-
const selection =
|
|
108
|
+
const selection = hooks?.projectSelection === undefined
|
|
109
|
+
? resolveProjectSelection(file, options.project, filesystem)
|
|
110
|
+
: { tsconfig: path.resolve(hooks.projectSelection), consulted: [] };
|
|
114
111
|
const tsconfig = selection.tsconfig;
|
|
115
112
|
const selectedProjectRoot = path.resolve(options.projectRoot ?? path.dirname(tsconfig));
|
|
116
113
|
// Reported config reads and failed discovery candidates are watch inputs:
|
|
@@ -125,6 +122,9 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
125
122
|
tsconfig,
|
|
126
123
|
};
|
|
127
124
|
const aliasPaths = createAliasPaths(aliases);
|
|
125
|
+
if (!preparing && cache !== undefined) {
|
|
126
|
+
TtscPrecompilation.start(cache, options, aliasPaths, (entry, text) => runTransformTtsc(entry, text, options, aliases, cache, { ...hooks, exactPath: true, projectSelection: undefined }, true));
|
|
127
|
+
}
|
|
128
128
|
const key = createTransformCacheKey({
|
|
129
129
|
aliasPaths,
|
|
130
130
|
compilerOptions: options.compilerOptions,
|
|
@@ -145,8 +145,11 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
145
145
|
if (terminal !== undefined) {
|
|
146
146
|
if (terminal instanceof TtscUnstableGenerationError) {
|
|
147
147
|
await preparePluginBuildEnvironments(terminal.validation.cached.result, filesystem, undefined, terminal.validation.cached.projectRoot);
|
|
148
|
-
if (cache?.get(key) !== transformed)
|
|
148
|
+
if (cache?.get(key) !== transformed) {
|
|
149
|
+
if (preparing)
|
|
150
|
+
return undefined;
|
|
149
151
|
continue;
|
|
152
|
+
}
|
|
150
153
|
}
|
|
151
154
|
// A terminal verdict is an answer about one observed environment, not an
|
|
152
155
|
// invitation for every later module to repeat the whole compile.
|
|
@@ -155,7 +158,8 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
155
158
|
currentSource: source,
|
|
156
159
|
filesystem,
|
|
157
160
|
})) {
|
|
158
|
-
|
|
161
|
+
if (!preparing)
|
|
162
|
+
notifyRejectedGenerationInputs(hooks, terminal, file, watchSelection);
|
|
159
163
|
throw terminal;
|
|
160
164
|
}
|
|
161
165
|
evictGeneration(cache, key, transformed);
|
|
@@ -167,13 +171,16 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
167
171
|
}
|
|
168
172
|
if (transformed !== undefined) {
|
|
169
173
|
const cached = await awaitOrEvict(cache, key, transformed).catch((rejection) => {
|
|
170
|
-
|
|
174
|
+
if (!preparing)
|
|
175
|
+
notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
|
|
171
176
|
throw rejection;
|
|
172
177
|
});
|
|
173
178
|
TRANSFORM_RESULT_FILESYSTEM.set(cached.result, filesystem);
|
|
174
179
|
// While this caller awaited the old Promise, another caller may have
|
|
175
180
|
// invalidated it and installed a newer authoritative generation.
|
|
176
181
|
if (cache?.get(key) !== transformed) {
|
|
182
|
+
if (preparing)
|
|
183
|
+
return undefined;
|
|
177
184
|
continue;
|
|
178
185
|
}
|
|
179
186
|
// A generation captured while native notifications were trusted keeps
|
|
@@ -186,12 +193,17 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
186
193
|
if (epoch === undefined) {
|
|
187
194
|
await settleProjectMutationEvents(cached);
|
|
188
195
|
if (cache?.get(key) !== transformed) {
|
|
196
|
+
if (preparing)
|
|
197
|
+
return undefined;
|
|
189
198
|
continue;
|
|
190
199
|
}
|
|
191
200
|
}
|
|
192
201
|
await TtscGenerationProof.prepare(cached, file, epoch);
|
|
193
|
-
if (cache?.get(key) !== transformed)
|
|
202
|
+
if (cache?.get(key) !== transformed) {
|
|
203
|
+
if (preparing)
|
|
204
|
+
return undefined;
|
|
194
205
|
continue;
|
|
206
|
+
}
|
|
195
207
|
// No await between this observation and synchronous admission.
|
|
196
208
|
const proof = TtscGenerationProof.create(cached, file, epoch);
|
|
197
209
|
const action = selectCachedGenerationAction({
|
|
@@ -203,11 +215,14 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
203
215
|
generation: transformed,
|
|
204
216
|
key,
|
|
205
217
|
source,
|
|
218
|
+
reportDivergence: !preparing,
|
|
206
219
|
});
|
|
207
220
|
if (action === "retry") {
|
|
208
221
|
continue;
|
|
209
222
|
}
|
|
210
223
|
if (action === "serve") {
|
|
224
|
+
if (preparing)
|
|
225
|
+
return undefined;
|
|
211
226
|
return deliverCachedTransform({
|
|
212
227
|
cache,
|
|
213
228
|
cached,
|
|
@@ -229,6 +244,7 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
229
244
|
projectRoot: selectedProjectRoot,
|
|
230
245
|
currentFile: file,
|
|
231
246
|
currentSource: source,
|
|
247
|
+
reportDivergence: !preparing,
|
|
232
248
|
// Stamp the pass this compile was started for, not the one it happens
|
|
233
249
|
// to finish in: a boundary crossed mid-compile leaves the generation
|
|
234
250
|
// belonging to the earlier pass, so the next pass re-proves it.
|
|
@@ -249,18 +265,24 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
249
265
|
useCaseSensitiveFileNames: cache === undefined
|
|
250
266
|
? undefined
|
|
251
267
|
: TRANSFORM_CACHE_CASE_POLICIES.get(cache)?.get(key),
|
|
268
|
+
// A cache without a list of its own takes the names the project's
|
|
269
|
+
// record carries from an earlier process (samchon/ttsc#1743).
|
|
252
270
|
witnessedDependencies: cache === undefined
|
|
253
271
|
? undefined
|
|
254
|
-
: TRANSFORM_CACHE_DEPENDENCY_WITNESSES.get(cache)?.get(key)
|
|
272
|
+
: (TRANSFORM_CACHE_DEPENDENCY_WITNESSES.get(cache)?.get(key) ??
|
|
273
|
+
recordedDependencyWitnesses(hooks?.project, tsconfig)),
|
|
255
274
|
});
|
|
256
275
|
cache?.set(key, transformed);
|
|
257
276
|
}
|
|
258
277
|
const generation = transformed;
|
|
259
278
|
const cached = await awaitOrEvict(cache, key, generation).catch((rejection) => {
|
|
260
|
-
|
|
279
|
+
if (!preparing)
|
|
280
|
+
notifyRejectedGenerationInputs(hooks, rejection, file, watchSelection);
|
|
261
281
|
throw rejection;
|
|
262
282
|
});
|
|
263
283
|
if (cache !== undefined && cache.get(key) !== generation) {
|
|
284
|
+
if (preparing)
|
|
285
|
+
return undefined;
|
|
264
286
|
continue;
|
|
265
287
|
}
|
|
266
288
|
if (cache !== undefined) {
|
|
@@ -280,6 +302,8 @@ async function transformTtsc(id, source, options, aliases, cache, hooks) {
|
|
|
280
302
|
policies.set(key, reported);
|
|
281
303
|
}
|
|
282
304
|
}
|
|
305
|
+
if (preparing)
|
|
306
|
+
return undefined;
|
|
283
307
|
return deliverCachedTransform({
|
|
284
308
|
cache,
|
|
285
309
|
cached,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformTtsc.mjs","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transformTtsc.mjs","sources":["../../../src/core/transform/transformTtsc.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCG;AACG,SAAU,aAAa,CAC3B,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAiB,EACjB,KAA0B,EAC1B,KAA0B,EAAA;AAE1B,IAAA,OAAO,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AAC5E;AAEA;;;;;AAKG;AACH,eAAe,gBAAgB,CAC7B,EAAU,EACV,MAAc,EACd,OAAoC,EACpC,OAAgB,EAChB,KAAqC,EACrC,KAAqC,EACrC,SAAkB,EAAA;AAElB,IAAA,MAAM,UAAU,GAAG,mBAAmB,CAAC,KAAK,CAAC;AAC7C,IAAA,MAAM,KAAK,GAAG,KAAK,EAAE,SAAS,KAAK,IAAI;AACvC,IAAA,MAAM,KAAK,GAAG,KAAK,GAAG,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;AACzC,IAAA,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACxB,QAAA,OAAO,SAAS;IAClB;;;;;IAKA,IAAI,CAAC,KAAK,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE;AACpC,QAAA,OAAO,SAAS;IAClB;IACA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;AAChC,IAAA,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;AACvC,QAAA,OAAO,SAAS;IAClB;;;AAIA,IAAA,+BAA+B,CAAC,KAAK,E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F;AACA,QAAA,IAAI,SAAS;AAAE,YAAA,OAAO,SAAS;AAC/B,QAAA,OAAO,sBAAsB,CAAC;YAC5B,KAAK;YACL,MAAM;YACN,UAAU;YACV,GAAG;YACH,KAAK;YACL,IAAI;YACJ,MAAM;YACN,KAAK;AACL,YAAA,SAAS,EAAE,cAAc;AAC1B,SAAA,CAAC;IACJ;AACF;;;;"}
|
|
@@ -20,7 +20,7 @@ import type { TtscHostInputValidation } from "./TtscHostInputValidation.cjs";
|
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
21
21
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
22
22
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
23
|
-
* @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. 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.
|
|
23
|
+
* @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.
|
|
24
24
|
* @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.
|
|
25
25
|
*/
|
|
26
26
|
export declare function captureUniversalHostInputValidation(cached: TtscCachedProjectTransform, currentFile: string): {
|
|
@@ -20,7 +20,7 @@ import type { TtscHostInputValidation } from "./TtscHostInputValidation.mjs";
|
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
21
21
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
22
22
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
23
|
-
* @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. 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.
|
|
23
|
+
* @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.
|
|
24
24
|
* @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.
|
|
25
25
|
*/
|
|
26
26
|
export declare function captureUniversalHostInputValidation(cached: TtscCachedProjectTransform, currentFile: string): {
|
|
@@ -20,7 +20,7 @@ import type { TtscHostInputValidation } from "./TtscHostInputValidation";
|
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
21
21
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
22
22
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
23
|
-
* @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. 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.
|
|
23
|
+
* @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.
|
|
24
24
|
* @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.
|
|
25
25
|
*/
|
|
26
26
|
export declare function captureUniversalHostInputValidation(cached: TtscCachedProjectTransform, currentFile: string): {
|
|
@@ -37,7 +37,7 @@ var matchesRecordedInput = require('./matchesRecordedInput.js');
|
|
|
37
37
|
* @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
38
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
39
39
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
40
|
-
* @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. 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.
|
|
40
|
+
* @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
41
|
* @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
42
|
*/
|
|
43
43
|
function captureUniversalHostInputValidation(cached, currentFile) {
|
|
@@ -267,13 +267,21 @@ function captureUniversalHostInputValidation(cached, currentFile) {
|
|
|
267
267
|
// A plugin binary keyed on a source other than the disk's now, whether it
|
|
268
268
|
// was built here or adopted from another worker, is output for a state
|
|
269
269
|
// already gone (samchon/ttsc#1487).
|
|
270
|
-
|
|
270
|
+
const sources = selectPluginSourceInputs.selectPluginSourceInputs(cached.result);
|
|
271
|
+
const prepared = preparePluginBuildEnvironments.usesPreparedPluginBuildEnvironments(cached.result);
|
|
272
|
+
// Plugin directories commonly share the thousands-file Go SDK. Qualify it
|
|
273
|
+
// once for this synchronous proof, not once per directory (#1764). The map
|
|
274
|
+
// must stay inside this call: an await or later delivery needs fresh native
|
|
275
|
+
// authority, even when source watchers heard no change (#1712, #1516).
|
|
276
|
+
const environments = prepared
|
|
277
|
+
? pluginSource.PluginBuildEnvironmentReadings.cachedAll(sources.keys())
|
|
278
|
+
: undefined;
|
|
279
|
+
for (const [directory, digest] of sources) {
|
|
271
280
|
// The environment is recorded as read before the proof, so it is never a
|
|
272
281
|
// reading the proof did not see; one that moved meanwhile only makes the
|
|
273
282
|
// next delivery prove the tree again.
|
|
274
|
-
const prepared = preparePluginBuildEnvironments.usesPreparedPluginBuildEnvironments(cached.result);
|
|
275
283
|
const environment = prepared
|
|
276
|
-
?
|
|
284
|
+
? environments.get(directory)
|
|
277
285
|
: pluginSource.processPluginBuildEnvironment(directory, false, cached.projectRoot);
|
|
278
286
|
if (environment === undefined ||
|
|
279
287
|
!pluginSourceHolds.pluginSourceHolds(directory, digest, filesystem, prepared ? { environment } : undefined, cached.projectRoot)) {
|
|
@@ -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","PluginBuildEnvironmentReadings","processPluginBuildEnvironment","pluginSourceHolds"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;IAQnB,MAAM,UAAU,GAAGA,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC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,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,MAAM,IAAI,GAAI,KAA+B,CAAC,IAAI;YAClD,MAAM,GAAG,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS;QAClD;QACA,IAAI,CAAC,MAAM,EAAE;YACXA,yDAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,2BAA2B;AACjC,gBAAA,IAAI,EAAE,KAAK;AACZ,aAAA,CAAC;YACF;QACF;AACA,QAAA,IAAI,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC;AACnD,QAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,YAAA,KAAK,GAAG,IAAI,GAAG,EAAU;YACzB,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC;QAChD;;AAEA,QAAA,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;IACvB;;;;
|
|
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","PluginBuildEnvironmentReadings","processPluginBuildEnvironment","pluginSourceHolds"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;IAQnB,MAAM,UAAU,GAAGA,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;AAClD,IA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AAE,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;;;;"}
|
|
@@ -35,7 +35,7 @@ import { matchesRecordedInput } from './matchesRecordedInput.mjs';
|
|
|
35
35
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
36
36
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
37
37
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
38
|
-
* @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. 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.
|
|
38
|
+
* @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
39
|
* @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
40
|
*/
|
|
41
41
|
function captureUniversalHostInputValidation(cached, currentFile) {
|
|
@@ -265,13 +265,21 @@ function captureUniversalHostInputValidation(cached, currentFile) {
|
|
|
265
265
|
// A plugin binary keyed on a source other than the disk's now, whether it
|
|
266
266
|
// was built here or adopted from another worker, is output for a state
|
|
267
267
|
// already gone (samchon/ttsc#1487).
|
|
268
|
-
|
|
268
|
+
const sources = selectPluginSourceInputs(cached.result);
|
|
269
|
+
const prepared = usesPreparedPluginBuildEnvironments(cached.result);
|
|
270
|
+
// Plugin directories commonly share the thousands-file Go SDK. Qualify it
|
|
271
|
+
// once for this synchronous proof, not once per directory (#1764). The map
|
|
272
|
+
// must stay inside this call: an await or later delivery needs fresh native
|
|
273
|
+
// authority, even when source watchers heard no change (#1712, #1516).
|
|
274
|
+
const environments = prepared
|
|
275
|
+
? PluginBuildEnvironmentReadings.cachedAll(sources.keys())
|
|
276
|
+
: undefined;
|
|
277
|
+
for (const [directory, digest] of sources) {
|
|
269
278
|
// The environment is recorded as read before the proof, so it is never a
|
|
270
279
|
// reading the proof did not see; one that moved meanwhile only makes the
|
|
271
280
|
// next delivery prove the tree again.
|
|
272
|
-
const prepared = usesPreparedPluginBuildEnvironments(cached.result);
|
|
273
281
|
const environment = prepared
|
|
274
|
-
?
|
|
282
|
+
? environments.get(directory)
|
|
275
283
|
: processPluginBuildEnvironment(directory, false, cached.projectRoot);
|
|
276
284
|
if (environment === undefined ||
|
|
277
285
|
!pluginSourceHolds(directory, digest, filesystem, prepared ? { environment } : undefined, cached.projectRoot)) {
|
|
@@ -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,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,QAAQ,GAAG,6BAA6B,EAAE;AAChD,IAAA,MAAM,UAAU,GAA4B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,aAAa,EAAE,IAAI,GAAG,EAAE;QACxB,KAAK,EAAE,IAAI,GAAG,EAAE;KACjB;AACD,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM;AAC5B,IAAA,MAAM,gBAAgB,GACpB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,eAAe;AAClE,IAAA,MAAM,mBAAmB,GACvB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,kBAAkB;AACrE,IAAA,MAAM,aAAa,GACjB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,sBAAsB;AACzE,IAAA,IAAI,MAAM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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,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,QAAQ,GAAG,6BAA6B,EAAE;AAChD,IAAA,MAAM,UAAU,GAA4B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,aAAa,EAAE,IAAI,GAAG,EAAE;QACxB,KAAK,EAAE,IAAI,GAAG,EAAE;KACjB;AACD,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM;AAC5B,IAAA,MAAM,gBAAgB,GACpB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,eAAe;AAClE,IAAA,MAAM,mBAAmB,GACvB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,kBAAkB;AACrE,IAAA,MAAM,aAAa,GACjB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,sBAAsB;AACzE,IAAA,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE;QACxE,4BAA4B,CAAC,QAAQ,EAAE;AACrC,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,MAAM,EAAE,qBAAqB;AAC9B,SAAA,CAAC;IACJ;AACA,IAAA,KAAK,MAAM,CAAC,KAAK,EAAE,M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O,EAAE;;;;QAIzC,MAAM,WAAW,GAAG;AAClB,cAAE,YAAa,CAAC,GAAG,CAAC,SAAS;cAC3B,6BAA6B,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;QACvE,IACE,WAAW,KAAK,SAAS;YACzB,CAAC,iBAAiB,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;;;;"}
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof.cjs";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof.mjs";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -38,7 +38,9 @@ var notificationsProveProgramUnchanged = require('./notificationsProveProgramUnc
|
|
|
38
38
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
39
39
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
40
40
|
* generation compiled is not one: it is reported and served, since the compile
|
|
41
|
-
* read the disk (samchon/ttsc#1394).
|
|
41
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
42
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
43
|
+
* delivered module.
|
|
42
44
|
*
|
|
43
45
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
44
46
|
* mapped in the maintainer page
|
|
@@ -72,7 +74,12 @@ file,
|
|
|
72
74
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
73
75
|
source,
|
|
74
76
|
/** Current host pass, or undefined for persistent input validation. */
|
|
75
|
-
epoch, proof
|
|
77
|
+
epoch, proof,
|
|
78
|
+
/**
|
|
79
|
+
* Preparation compares the same native bytes without reporting a host
|
|
80
|
+
* rewrite.
|
|
81
|
+
*/
|
|
82
|
+
reportDivergence = true) {
|
|
76
83
|
if (!nativeInputPredicatesHold.nativeInputPredicatesHold(cached, proof))
|
|
77
84
|
return false;
|
|
78
85
|
const pass = TtscGenerationProof.TtscGenerationProof.sharesPass(cached, file, epoch);
|
|
@@ -115,7 +122,8 @@ epoch, proof) {
|
|
|
115
122
|
hostInputStateHash.hostInputStateHash(file, resultFilesystem.resultFilesystem(cached.result)) !== expected) {
|
|
116
123
|
return false;
|
|
117
124
|
}
|
|
118
|
-
|
|
125
|
+
if (reportDivergence)
|
|
126
|
+
reportDivergentDelivery.reportDivergentDelivery(cached, file);
|
|
119
127
|
}
|
|
120
128
|
if (pass)
|
|
121
129
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesCachedSource.js","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],"names":["nativeInputPredicatesHold","TtscGenerationProof","envelopeDerivation","toProjectKey","pathIdentityKey","matchesProjectRootFile","resultFilesystem","createEnvelopeKeyIndex","notificationsProveProgramUnchanged","refreshFilesystemClockReference","TRANSFORM_CLOCK_REFERENCE_DIRECTORIES","matchesCompleteInputSnapshot","hashText","hostInputStateHash","reportDivergentDelivery","matchesNarrowPersistentInputs"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA
|
|
1
|
+
{"version":3,"file":"matchesCachedSource.js","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],"names":["nativeInputPredicatesHold","TtscGenerationProof","envelopeDerivation","toProjectKey","pathIdentityKey","matchesProjectRootFile","resultFilesystem","createEnvelopeKeyIndex","notificationsProveProgramUnchanged","refreshFilesystemClockReference","TR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AAI,MAAM,CAAC,aAAa,KAAK,KAAK,EAAE;;;;;;;AAOlC,YAAAL,+DAA+B,CAC7BC,2EAAqC,CAAC,GAAG,CAAC,MAAM,CAAC,EACjDJ,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAChC;YACD,IAAI,CAACK,yDAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;AAChD,gBAAA,OAAO,KAAK;YACd;AACA,YAAA,MAAM,CAAC,aAAa,GAAG,KAAK;AAC5B,YAAA,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE;AAC3B,YAAA,OAAO,IAAI;QACb;QACA,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;AACtC,YAAA,OAAO,IAAI;QACb;IACF;AACA,IAAAF,+DAA+B,CAC7BC,2EAAqC,CAAC,GAAG,CAAC,MAAM,CAAC,EACjDJ,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAChC;AACD,IAAA,IACE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;AAChC,QAAA,MAAM,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS;QACjC,MAAM,CAAC,uBAAuB,KAAK,IAAI;QACvC,MAAM,CAAC,kBAAkB,KAAK,SAAS;QACvC,MAAM,CAAC,sBAAsB,KAAK,SAAS;AAC3C,QAAA,MAAM,CAAC,wBAAwB,KAAK,SAAS,EAC7C;QACA,MAAM,MAAM,GAAGS,2DAA6B,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AACjE,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,YAAA,OAAO,MAAM;QACf;;;;IAIF;AACA,IAAA,OAAOJ,yDAA4B,CAAC,MAAM,EAAE,KAAK,CAAC;AACpD;;;;"}
|
|
@@ -36,7 +36,9 @@ import { notificationsProveProgramUnchanged } from './notificationsProveProgramU
|
|
|
36
36
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
37
37
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
38
38
|
* generation compiled is not one: it is reported and served, since the compile
|
|
39
|
-
* read the disk (samchon/ttsc#1394).
|
|
39
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
40
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
41
|
+
* delivered module.
|
|
40
42
|
*
|
|
41
43
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
42
44
|
* mapped in the maintainer page
|
|
@@ -70,7 +72,12 @@ file,
|
|
|
70
72
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
71
73
|
source,
|
|
72
74
|
/** Current host pass, or undefined for persistent input validation. */
|
|
73
|
-
epoch, proof
|
|
75
|
+
epoch, proof,
|
|
76
|
+
/**
|
|
77
|
+
* Preparation compares the same native bytes without reporting a host
|
|
78
|
+
* rewrite.
|
|
79
|
+
*/
|
|
80
|
+
reportDivergence = true) {
|
|
74
81
|
if (!nativeInputPredicatesHold(cached, proof))
|
|
75
82
|
return false;
|
|
76
83
|
const pass = TtscGenerationProof.sharesPass(cached, file, epoch);
|
|
@@ -113,7 +120,8 @@ epoch, proof) {
|
|
|
113
120
|
hostInputStateHash(file, resultFilesystem(cached.result)) !== expected) {
|
|
114
121
|
return false;
|
|
115
122
|
}
|
|
116
|
-
|
|
123
|
+
if (reportDivergence)
|
|
124
|
+
reportDivergentDelivery(cached, file);
|
|
117
125
|
}
|
|
118
126
|
if (pass)
|
|
119
127
|
return true;
|