@ttsc/unplugin 0.38.1 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/core/bridge/HostWatchBridge.d.cts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.mts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.ts +1 -1
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.cts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.mts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.ts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js +7 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js.map +1 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs +5 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs.map +1 -0
- package/lib/core/bridge/TtscProjectRecord.d.cts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.mts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.ts +9 -0
- package/lib/core/bridge/fallbackRecordStorage.d.cts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.mts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.ts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.js +96 -0
- package/lib/core/bridge/fallbackRecordStorage.js.map +1 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs +94 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs.map +1 -0
- package/lib/core/bridge/fallbackToolDirectory.d.cts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.mts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.ts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.js +19 -30
- package/lib/core/bridge/fallbackToolDirectory.js.map +1 -1
- package/lib/core/bridge/fallbackToolDirectory.mjs +19 -30
- package/lib/core/bridge/fallbackToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.cts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.mts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.ts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js +38 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js.map +1 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs +36 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs.map +1 -0
- package/lib/core/bridge/hostToolDirectory.d.cts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.mts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.ts +13 -46
- package/lib/core/bridge/hostToolDirectory.js +14 -47
- package/lib/core/bridge/hostToolDirectory.js.map +1 -1
- package/lib/core/bridge/hostToolDirectory.mjs +14 -47
- package/lib/core/bridge/hostToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.d.cts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.mts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.ts +11 -1
- package/lib/core/bridge/openHostWatchBridge.js +28 -6
- package/lib/core/bridge/openHostWatchBridge.js.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.mjs +28 -6
- package/lib/core/bridge/openHostWatchBridge.mjs.map +1 -1
- package/lib/core/bridge/prepareProjectRecordDirectory.d.cts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.mts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.ts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js +127 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js.map +1 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs +125 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.cts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.mts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.ts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js +31 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs +29 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs.map +1 -0
- package/lib/core/bridge/projectRecordMoved.js +5 -0
- package/lib/core/bridge/projectRecordMoved.js.map +1 -1
- package/lib/core/bridge/projectRecordMoved.mjs +5 -0
- package/lib/core/bridge/projectRecordMoved.mjs.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.js +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.js.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.mjs +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.mjs.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.js +23 -1
- package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.mjs +23 -1
- package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.js +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.mjs +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.cts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.mts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.ts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.js +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.mjs +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.mjs.map +1 -1
- package/lib/core/bridge/registerProjectRecord.js +3 -1
- package/lib/core/bridge/registerProjectRecord.js.map +1 -1
- package/lib/core/bridge/registerProjectRecord.mjs +3 -1
- package/lib/core/bridge/registerProjectRecord.mjs.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.js +18 -5
- package/lib/core/bridge/signalProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.mjs +18 -5
- package/lib/core/bridge/signalProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.js +7 -3
- package/lib/core/bridge/writeProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.mjs +7 -3
- package/lib/core/bridge/writeProjectRecordFile.mjs.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.js +9 -7
- package/lib/core/esbuild/createEsbuildOptions.js.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.mjs +9 -7
- package/lib/core/esbuild/createEsbuildOptions.mjs.map +1 -1
- package/lib/core/farm/createFarmRecordUpdates.d.cts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.mts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.ts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.js +129 -0
- package/lib/core/farm/createFarmRecordUpdates.js.map +1 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs +127 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs.map +1 -0
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.cts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.mts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.ts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js.map +1 -1
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs.map +1 -1
- package/lib/core/farm/farmRecordFallback.d.cts +15 -15
- package/lib/core/farm/farmRecordFallback.d.mts +15 -15
- package/lib/core/farm/farmRecordFallback.d.ts +15 -15
- package/lib/core/farm/farmRecordFallback.js +22 -20
- package/lib/core/farm/farmRecordFallback.js.map +1 -1
- package/lib/core/farm/farmRecordFallback.mjs +22 -20
- package/lib/core/farm/farmRecordFallback.mjs.map +1 -1
- package/lib/core/next/next.js +5 -4
- package/lib/core/next/next.js.map +1 -1
- package/lib/core/next/next.mjs +5 -4
- package/lib/core/next/next.mjs.map +1 -1
- package/lib/core/observer/InputCondition.d.cts +5 -0
- package/lib/core/observer/InputCondition.d.mts +5 -0
- package/lib/core/observer/InputCondition.d.ts +5 -0
- package/lib/core/observer/InputObserverChange.d.cts +2 -0
- package/lib/core/observer/InputObserverChange.d.mts +2 -0
- package/lib/core/observer/InputObserverChange.d.ts +2 -0
- package/lib/core/observer/createInputObserver.d.cts +3 -1
- package/lib/core/observer/createInputObserver.d.mts +3 -1
- package/lib/core/observer/createInputObserver.d.ts +3 -1
- package/lib/core/observer/createInputObserver.js +179 -26
- package/lib/core/observer/createInputObserver.js.map +1 -1
- package/lib/core/observer/createInputObserver.mjs +180 -27
- package/lib/core/observer/createInputObserver.mjs.map +1 -1
- package/lib/core/observer/ttscWriteDirectories.d.cts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.mts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.ts +31 -0
- package/lib/core/observer/ttscWriteDirectories.js +59 -0
- package/lib/core/observer/ttscWriteDirectories.js.map +1 -0
- package/lib/core/observer/ttscWriteDirectories.mjs +57 -0
- package/lib/core/observer/ttscWriteDirectories.mjs.map +1 -0
- package/lib/core/rollup/TtscRollupDelivery.d.cts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.mts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.ts +2 -0
- package/lib/core/rollup/createRollupCachedModuleProof.d.cts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.mts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.ts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.js +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.js.map +1 -1
- package/lib/core/rollup/createRollupCachedModuleProof.mjs +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.mjs.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.d.cts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.mts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.ts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.js +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.mjs +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.mjs.map +1 -1
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.cts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.mts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.ts +7 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.js +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
- package/lib/core/transform/deliverCachedTransform.js +1 -0
- package/lib/core/transform/deliverCachedTransform.js.map +1 -1
- package/lib/core/transform/deliverCachedTransform.mjs +1 -0
- package/lib/core/transform/deliverCachedTransform.mjs.map +1 -1
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.cts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.mts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.ts +6 -15
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.cts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.mts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.ts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.js.map +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.mjs.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.cts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.mts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.ts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.js.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.mjs.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.cts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.mts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.ts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.js +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.js.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.cts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.mts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.ts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.js.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.js +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.js.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.mjs +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.cts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.mts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.ts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js +84 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js.map +1 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs +82 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs.map +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js.map +1 -1
- package/lib/core/transform/envelope/envelopeDerivation.mjs +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.mjs.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.cts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.mts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.ts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.d.cts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.mts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.ts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.js +1 -1
- package/lib/core/transform/envelope/isVolatileFile.js.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.d.cts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.mts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.ts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.js +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.js.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.mjs +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.d.cts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.mts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.ts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.js +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.mjs +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.cts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.mts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.ts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.js +4 -1
- package/lib/core/transform/envelope/selectHostInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs +4 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.cts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.mts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.ts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.mjs.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.cts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.mts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.ts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.d.cts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.mts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.ts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.js +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.js.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.mjs +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.mjs.map +1 -1
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.cts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.mts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.ts +3 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.d.cts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.mts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.ts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.js +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.js.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.mjs +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.mjs.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.cts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.mts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.ts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js +13 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs +14 -2
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.d.cts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.mts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.ts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.js +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.mjs +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.d.cts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.mts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.ts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.js +2 -0
- package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.mjs +2 -0
- package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.d.cts +1 -1
- package/lib/core/transform/transformTtsc.d.mts +1 -1
- package/lib/core/transform/transformTtsc.d.ts +1 -1
- package/lib/core/transform/transformTtsc.js +26 -8
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +26 -8
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.cts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.mts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.ts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.d.cts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.mts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.ts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.js +41 -2
- package/lib/core/transform/validation/TtscGenerationProof.js.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.mjs +42 -3
- package/lib/core/transform/validation/TtscGenerationProof.mjs.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js +9 -0
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +10 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.cts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.mts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.ts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.cts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.mts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.ts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.cts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.mts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.ts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.cts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.mts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.ts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.cts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.mts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.ts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs.map +1 -1
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.cts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.mts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.ts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js +12 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js.map +1 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs +10 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.cts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.mts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.ts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs +2 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.cts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.mts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.ts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.js +3 -0
- package/lib/core/transform/watch/TtscTransformHooks.js.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs +2 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs.map +1 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.cts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.mts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.ts +3 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.cts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.mts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.ts +14 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.cts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.mts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.ts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js +54 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js.map +1 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs +52 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs.map +1 -0
- package/lib/core/transform/watch/evidencedWatchInput.js +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.js.map +1 -1
- package/lib/core/transform/watch/evidencedWatchInput.mjs +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.mjs.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.d.cts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.mts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.ts +4 -4
- package/lib/core/transform/watch/handWatchInputs.js +21 -5
- package/lib/core/transform/watch/handWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.mjs +21 -5
- package/lib/core/transform/watch/handWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.cts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.mts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.ts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.js +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.mjs +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.d.cts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.mts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.ts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.js +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.js.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.d.cts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.mts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.ts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.js +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.mjs +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.cts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.mts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.ts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs.map +1 -1
- package/lib/core/transform/watch/projectRecordDirectories.d.cts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.mts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.ts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.js +34 -0
- package/lib/core/transform/watch/projectRecordDirectories.js.map +1 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs +32 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs.map +1 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.js +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.js.map +1 -1
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs.map +1 -1
- package/lib/core/unplugin.js +43 -27
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +43 -27
- package/lib/core/unplugin.mjs.map +1 -1
- package/lib/core/vite/ViteServeInputWatch.d.cts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.mts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.ts +17 -0
- package/lib/core/vite/createViteServeInputWatch.d.cts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.mts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.ts +5 -0
- package/lib/core/vite/createViteServeInputWatch.js +86 -10
- package/lib/core/vite/createViteServeInputWatch.js.map +1 -1
- package/lib/core/vite/createViteServeInputWatch.mjs +86 -10
- package/lib/core/vite/createViteServeInputWatch.mjs.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.d.cts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.mts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.ts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.js +10 -4
- package/lib/core/vite/createViteServeWatchHooks.js.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.mjs +10 -4
- package/lib/core/vite/createViteServeWatchHooks.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/bridge/HostWatchBridge.ts +2 -0
- package/src/core/bridge/MANAGED_PROJECT_RECORDS.ts +2 -0
- package/src/core/bridge/TtscProjectRecord.ts +9 -0
- package/src/core/bridge/fallbackRecordStorage.ts +104 -0
- package/src/core/bridge/fallbackToolDirectory.ts +22 -38
- package/src/core/bridge/fallbackToolDirectoryLocation.ts +40 -0
- package/src/core/bridge/hostToolDirectory.ts +14 -47
- package/src/core/bridge/openHostWatchBridge.ts +48 -6
- package/src/core/bridge/prepareProjectRecordDirectory.ts +134 -0
- package/src/core/bridge/privateProjectRecordAvailable.ts +25 -0
- package/src/core/bridge/projectRecordMoved.ts +7 -0
- package/src/core/bridge/projectRecordWatchInputs.ts +6 -0
- package/src/core/bridge/readProjectRecordFile.ts +28 -1
- package/src/core/bridge/refreshProjectRecordFile.ts +40 -7
- package/src/core/bridge/refreshProjectRecordFiles.ts +44 -12
- package/src/core/bridge/registerProjectRecord.ts +2 -0
- package/src/core/bridge/signalProjectRecordFile.ts +25 -5
- package/src/core/bridge/writeProjectRecordFile.ts +10 -3
- package/src/core/esbuild/createEsbuildOptions.ts +9 -10
- package/src/core/farm/createFarmRecordUpdates.ts +167 -0
- package/src/core/farm/farmPersistentCacheWithoutRecords.ts +25 -55
- package/src/core/farm/farmRecordFallback.ts +25 -20
- package/src/core/next/next.ts +5 -3
- package/src/core/observer/InputCondition.ts +7 -0
- package/src/core/observer/InputObserverChange.ts +3 -0
- package/src/core/observer/createInputObserver.ts +186 -25
- package/src/core/observer/ttscWriteDirectories.ts +56 -0
- package/src/core/rollup/TtscRollupDelivery.ts +2 -0
- package/src/core/rollup/createRollupCachedModuleProof.ts +65 -33
- package/src/core/rollup/rollupDeliveryOptions.ts +7 -4
- package/src/core/transform/cache/TtscCachedProjectTransform.ts +6 -0
- package/src/core/transform/cache/selectCachedGenerationAction.ts +9 -4
- package/src/core/transform/deliverCachedTransform.ts +1 -0
- package/src/core/transform/envelope/TtscEnvelopeDerivation.ts +6 -17
- package/src/core/transform/envelope/collectDeclaredIdentities.ts +1 -1
- package/src/core/transform/envelope/createEnvelopeKeyIndex.ts +1 -1
- package/src/core/transform/envelope/declaresCompleteDependencies.ts +17 -7
- package/src/core/transform/envelope/derivationIdentity.ts +1 -1
- package/src/core/transform/envelope/deriveWatchInputs.ts +10 -64
- package/src/core/transform/envelope/deriveWatchInputsFromIndexes.ts +117 -0
- package/src/core/transform/envelope/envelopeDerivation.ts +1 -0
- package/src/core/transform/envelope/envelopeGraphIndexes.ts +2 -1
- package/src/core/transform/envelope/isVolatileFile.ts +12 -3
- package/src/core/transform/envelope/selectFileDependencies.ts +11 -14
- package/src/core/transform/envelope/selectGraphInputs.ts +13 -10
- package/src/core/transform/envelope/selectHostInputs.ts +11 -2
- package/src/core/transform/envelope/selectNotifiableAbsentInputs.ts +13 -8
- package/src/core/transform/envelope/selectReachableEdges.ts +2 -2
- package/src/core/transform/envelope/selectReachableSources.ts +2 -2
- package/src/core/transform/envelope/selectResolutionCandidateInputs.ts +9 -15
- package/src/core/transform/filesystem/userStateDirectory.ts +46 -15
- package/src/core/transform/generation/TtscFailedGenerationValidation.ts +5 -0
- package/src/core/transform/generation/captureTransformGeneration.ts +64 -22
- package/src/core/transform/generation/createUnstableGenerationError.ts +24 -4
- package/src/core/transform/generation/failedGenerationEnvironmentChanged.ts +18 -2
- package/src/core/transform/inputs/hostInputRealpath.ts +13 -8
- package/src/core/transform/inputs/sameHostInputRealpath.ts +4 -2
- package/src/core/transform/session/claimSharedCompile.ts +2 -0
- package/src/core/transform/transformTtsc.ts +28 -7
- package/src/core/transform/tsconfig/createTransformScratchDirectory.ts +36 -31
- package/src/core/transform/validation/TtscGenerationProof.ts +57 -2
- package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -0
- package/src/core/transform/validation/matchesCachedExternalInputs.ts +6 -1
- package/src/core/transform/validation/matchesCompleteInputSnapshot.ts +23 -9
- package/src/core/transform/validation/matchesExternalInputRealpaths.ts +7 -3
- package/src/core/transform/validation/matchesNarrowPersistentInputs.ts +81 -2
- package/src/core/transform/validation/nativeInputPredicatesHold.ts +15 -6
- package/src/core/transform/watch/RECOVERY_TREE_DIGEST.ts +12 -0
- package/src/core/transform/watch/TtscProjectRegistration.ts +4 -0
- package/src/core/transform/watch/TtscTransformHooks.ts +40 -12
- package/src/core/transform/watch/TtscWatchInputEvidence.ts +3 -0
- package/src/core/transform/watch/TtscWorkspaceWatchEvidence.ts +17 -0
- package/src/core/transform/watch/captureRecoveryTreeDigest.ts +58 -0
- package/src/core/transform/watch/evidencedWatchInput.ts +7 -0
- package/src/core/transform/watch/handWatchInputs.ts +21 -5
- package/src/core/transform/watch/notifyFailedGenerationInputs.ts +66 -10
- package/src/core/transform/watch/notifyProjectRecord.ts +68 -25
- package/src/core/transform/watch/notifyRejectedGenerationInputs.ts +22 -9
- package/src/core/transform/watch/notifyVolatileDelivery.ts +7 -6
- package/src/core/transform/watch/notifyWatchInputs.ts +112 -14
- package/src/core/transform/watch/prepareProjectRecordDirectories.ts +14 -16
- package/src/core/transform/watch/projectRecordDirectories.ts +33 -0
- package/src/core/transform/watch/recordedDependencyWitnesses.ts +8 -9
- package/src/core/transform/watch/watchInputEvidenceMatchesBaseline.ts +2 -1
- package/src/core/transform/watch/watchInputEvidenceMatchesDisk.ts +7 -0
- package/src/core/unplugin.ts +72 -42
- package/src/core/vite/ViteServeInputWatch.ts +24 -0
- package/src/core/vite/createViteServeInputWatch.ts +98 -9
- package/src/core/vite/createViteServeWatchHooks.ts +15 -6
- package/lib/core/bridge/projectRecordDirectoryWritable.d.cts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.mts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.ts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.js +0 -65
- package/lib/core/bridge/projectRecordDirectoryWritable.js.map +0 -1
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs +0 -63
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs.map +0 -1
- package/src/core/bridge/projectRecordDirectoryWritable.ts +0 -61
|
@@ -1,56 +1,55 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
|
-
var os = require('node:os');
|
|
5
4
|
var path = require('node:path');
|
|
5
|
+
var systemTemp = require('ttsc/internal/system-temp');
|
|
6
6
|
var DEFAULT_FILESYSTEM_OPERATIONS = require('../filesystem/DEFAULT_FILESYSTEM_OPERATIONS.js');
|
|
7
7
|
var pathIsWithin = require('../filesystem/pathIsWithin.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Create compiler scratch storage outside the project snapshot and watchers.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
12
|
+
* The SDK qualifies system temporary parents against project ancestry and ends
|
|
13
|
+
* with the installation's private `node_modules/.cache/ttsc/temp`. The adapter
|
|
14
|
+
* also checks the current project's lexical worktree, which admits only that
|
|
15
|
+
* private directory inside the project. The created child's postflight physical
|
|
16
|
+
* address is checked again and returned, avoiding reuse of the candidate's
|
|
17
|
+
* known lexical parent alias. These path observations do not pin directory
|
|
18
|
+
* handles or rule out later native replacement. Failed candidates are skipped
|
|
19
|
+
* only after their owned empty child is removed.
|
|
18
20
|
*
|
|
19
|
-
* @evidence contracts/common.md#principled-implementation Preflight and postflight containment reject observed scratch addresses inside the project; returning the checked child spelling avoids knowingly reusing an unresolved parent alias, without certifying later topology cannot change.
|
|
21
|
+
* @evidence contracts/common.md#principled-implementation Preflight and postflight containment reject observed scratch addresses inside the project other than the SDK-verified installation private directory; returning the checked child spelling avoids knowingly reusing an unresolved parent alias, without certifying later topology cannot change.
|
|
20
22
|
* @evidence contracts/common.md#clear-and-simple-design One bounded candidate loop owns creation and immediate rejection cleanup, while the capturing generation owns the lifetime of an accepted directory.
|
|
21
23
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts A failed outside-project check never falls back to project scratch, and rejected child cleanup failures propagate instead of being hidden as another candidate miss.
|
|
22
24
|
* @evidence contracts/common.md#meaningful-documentation The native paragraphs explain both identity checks, the returned physical spelling and the ownership condition on skipping a failed candidate; inline comments justify postflight removal.
|
|
23
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
25
|
+
* @evidence contracts/portability.md#os-neutral-implementation The shared SDK selector qualifies native system temporary parents. Adapter containment checks retain their injected project view, and the native filesystem creates and removes the random child.
|
|
24
26
|
* @evidence contracts/performance.md#bound-retention-and-release-resources Rejected random empty children receive synchronous removal attempts; failure propagates and can leave an artifact rather than silently skipping it. Accepted directory ownership transfers to capture's finally cleanup or its separately retained clock owner. No native directory handle pins these path identities against later replacement.
|
|
25
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
27
|
+
* @evidence contracts/performance.md#efficient-algorithms Two adapter ancestor walks and a bounded SDK candidate scan observe workspace markers without enumerating directory contents. Allocation tries each accepted physical parent at most once.
|
|
26
28
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Scratch allocation is an ownership-bearing effect for one capture and must not be shared merely because two generations select the same candidate parent.
|
|
27
29
|
*/
|
|
28
30
|
function createTransformScratchDirectory(projectRoot, filesystem = DEFAULT_FILESYSTEM_OPERATIONS.DEFAULT_FILESYSTEM_OPERATIONS) {
|
|
29
31
|
const root = path.resolve(projectRoot);
|
|
30
32
|
const canonicalRoot = filesystem.realpath(root);
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
const protectedRoots = new Set([root, canonicalRoot]);
|
|
34
|
+
for (const start of [root, canonicalRoot]) {
|
|
35
|
+
for (let directory = start;; directory = path.dirname(directory)) {
|
|
36
|
+
if (fs.existsSync(path.join(directory, ".git")) ||
|
|
37
|
+
fs.existsSync(path.join(directory, "pnpm-workspace.yaml")))
|
|
38
|
+
protectedRoots.add(directory);
|
|
39
|
+
if (path.dirname(directory) === directory)
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// The installation's private directory is the one location inside a
|
|
44
|
+
// project the SDK yields, after every system candidate. Project walks and
|
|
45
|
+
// watches skip node_modules, as the brokered watch probes below it rely on.
|
|
46
|
+
const isProtected = (candidate) => !systemTemp.systemTempOutsideProject.withinInstallationTemp(candidate) &&
|
|
47
|
+
[...protectedRoots].some((directory) => pathIsWithin.pathIsWithin(candidate, directory));
|
|
40
48
|
const canonicalCandidates = new Set();
|
|
41
49
|
let failure;
|
|
42
|
-
for (const
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
let canonicalCandidate;
|
|
46
|
-
try {
|
|
47
|
-
canonicalCandidate = filesystem.realpath(candidate);
|
|
48
|
-
}
|
|
49
|
-
catch (error) {
|
|
50
|
-
failure = error;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (pathIsWithin.pathIsWithin(canonicalCandidate, canonicalRoot) ||
|
|
50
|
+
for (const { spelling, directory: canonicalCandidate, } of systemTemp.systemTempOutsideProject.candidates(root)) {
|
|
51
|
+
if (isProtected(spelling) ||
|
|
52
|
+
isProtected(canonicalCandidate) ||
|
|
54
53
|
canonicalCandidates.has(canonicalCandidate)) {
|
|
55
54
|
continue;
|
|
56
55
|
}
|
|
@@ -79,7 +78,7 @@ function createTransformScratchDirectory(projectRoot, filesystem = DEFAULT_FILES
|
|
|
79
78
|
// parent symlink/junction after validation, redirecting compiler writes or
|
|
80
79
|
// the final recursive removal into the project through that known alias.
|
|
81
80
|
// The returned path still is not an atomic handle against later replacement.
|
|
82
|
-
if (!
|
|
81
|
+
if (!isProtected(canonicalDirectory)) {
|
|
83
82
|
return canonicalDirectory;
|
|
84
83
|
}
|
|
85
84
|
// Refuse the result and synchronously remove only our empty random child
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTransformScratchDirectory.js","sources":["../../../../src/core/transform/tsconfig/createTransformScratchDirectory.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","pathIsWithin"],"mappings":";;;;;;;;AAQA
|
|
1
|
+
{"version":3,"file":"createTransformScratchDirectory.js","sources":["../../../../src/core/transform/tsconfig/createTransformScratchDirectory.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","systemTempOutsideProject","pathIsWithin"],"mappings":";;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,+BAA+B,CAC7C,WAAmB,EACnB,aAAgDA,2DAA6B,EAAA;IAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACtC,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC/C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACrD,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE;AACzC,QAAA,KAAK,IAAI,SAAS,GAAG,KAAK,GAAI,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;AACjE,YAAA,IACE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;gBAC3C,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAE1D,gBAAA,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC;AAC/B,YAAA,IAAI,IAAI,CAAC,OAAO,CAA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AC;IAClC;AACA,IAAA,OACE,OAAO;AACP,QAAA,IAAI,KAAK,CAAC,yDAAyD,CAAC;AAExE;;;;"}
|
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import os from 'node:os';
|
|
3
2
|
import path from 'node:path';
|
|
3
|
+
import { systemTempOutsideProject } from 'ttsc/internal/system-temp';
|
|
4
4
|
import { DEFAULT_FILESYSTEM_OPERATIONS } from '../filesystem/DEFAULT_FILESYSTEM_OPERATIONS.mjs';
|
|
5
5
|
import { pathIsWithin } from '../filesystem/pathIsWithin.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Create compiler scratch storage outside the project snapshot and watchers.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
10
|
+
* The SDK qualifies system temporary parents against project ancestry and ends
|
|
11
|
+
* with the installation's private `node_modules/.cache/ttsc/temp`. The adapter
|
|
12
|
+
* also checks the current project's lexical worktree, which admits only that
|
|
13
|
+
* private directory inside the project. The created child's postflight physical
|
|
14
|
+
* address is checked again and returned, avoiding reuse of the candidate's
|
|
15
|
+
* known lexical parent alias. These path observations do not pin directory
|
|
16
|
+
* handles or rule out later native replacement. Failed candidates are skipped
|
|
17
|
+
* only after their owned empty child is removed.
|
|
16
18
|
*
|
|
17
|
-
* @evidence contracts/common.md#principled-implementation Preflight and postflight containment reject observed scratch addresses inside the project; returning the checked child spelling avoids knowingly reusing an unresolved parent alias, without certifying later topology cannot change.
|
|
19
|
+
* @evidence contracts/common.md#principled-implementation Preflight and postflight containment reject observed scratch addresses inside the project other than the SDK-verified installation private directory; returning the checked child spelling avoids knowingly reusing an unresolved parent alias, without certifying later topology cannot change.
|
|
18
20
|
* @evidence contracts/common.md#clear-and-simple-design One bounded candidate loop owns creation and immediate rejection cleanup, while the capturing generation owns the lifetime of an accepted directory.
|
|
19
21
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts A failed outside-project check never falls back to project scratch, and rejected child cleanup failures propagate instead of being hidden as another candidate miss.
|
|
20
22
|
* @evidence contracts/common.md#meaningful-documentation The native paragraphs explain both identity checks, the returned physical spelling and the ownership condition on skipping a failed candidate; inline comments justify postflight removal.
|
|
21
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
23
|
+
* @evidence contracts/portability.md#os-neutral-implementation The shared SDK selector qualifies native system temporary parents. Adapter containment checks retain their injected project view, and the native filesystem creates and removes the random child.
|
|
22
24
|
* @evidence contracts/performance.md#bound-retention-and-release-resources Rejected random empty children receive synchronous removal attempts; failure propagates and can leave an artifact rather than silently skipping it. Accepted directory ownership transfers to capture's finally cleanup or its separately retained clock owner. No native directory handle pins these path identities against later replacement.
|
|
23
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
25
|
+
* @evidence contracts/performance.md#efficient-algorithms Two adapter ancestor walks and a bounded SDK candidate scan observe workspace markers without enumerating directory contents. Allocation tries each accepted physical parent at most once.
|
|
24
26
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Scratch allocation is an ownership-bearing effect for one capture and must not be shared merely because two generations select the same candidate parent.
|
|
25
27
|
*/
|
|
26
28
|
function createTransformScratchDirectory(projectRoot, filesystem = DEFAULT_FILESYSTEM_OPERATIONS) {
|
|
27
29
|
const root = path.resolve(projectRoot);
|
|
28
30
|
const canonicalRoot = filesystem.realpath(root);
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
const protectedRoots = new Set([root, canonicalRoot]);
|
|
32
|
+
for (const start of [root, canonicalRoot]) {
|
|
33
|
+
for (let directory = start;; directory = path.dirname(directory)) {
|
|
34
|
+
if (fs.existsSync(path.join(directory, ".git")) ||
|
|
35
|
+
fs.existsSync(path.join(directory, "pnpm-workspace.yaml")))
|
|
36
|
+
protectedRoots.add(directory);
|
|
37
|
+
if (path.dirname(directory) === directory)
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// The installation's private directory is the one location inside a
|
|
42
|
+
// project the SDK yields, after every system candidate. Project walks and
|
|
43
|
+
// watches skip node_modules, as the brokered watch probes below it rely on.
|
|
44
|
+
const isProtected = (candidate) => !systemTempOutsideProject.withinInstallationTemp(candidate) &&
|
|
45
|
+
[...protectedRoots].some((directory) => pathIsWithin(candidate, directory));
|
|
38
46
|
const canonicalCandidates = new Set();
|
|
39
47
|
let failure;
|
|
40
|
-
for (const
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
let canonicalCandidate;
|
|
44
|
-
try {
|
|
45
|
-
canonicalCandidate = filesystem.realpath(candidate);
|
|
46
|
-
}
|
|
47
|
-
catch (error) {
|
|
48
|
-
failure = error;
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
if (pathIsWithin(canonicalCandidate, canonicalRoot) ||
|
|
48
|
+
for (const { spelling, directory: canonicalCandidate, } of systemTempOutsideProject.candidates(root)) {
|
|
49
|
+
if (isProtected(spelling) ||
|
|
50
|
+
isProtected(canonicalCandidate) ||
|
|
52
51
|
canonicalCandidates.has(canonicalCandidate)) {
|
|
53
52
|
continue;
|
|
54
53
|
}
|
|
@@ -77,7 +76,7 @@ function createTransformScratchDirectory(projectRoot, filesystem = DEFAULT_FILES
|
|
|
77
76
|
// parent symlink/junction after validation, redirecting compiler writes or
|
|
78
77
|
// the final recursive removal into the project through that known alias.
|
|
79
78
|
// The returned path still is not an atomic handle against later replacement.
|
|
80
|
-
if (!
|
|
79
|
+
if (!isProtected(canonicalDirectory)) {
|
|
81
80
|
return canonicalDirectory;
|
|
82
81
|
}
|
|
83
82
|
// Refuse the result and synchronously remove only our empty random child
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTransformScratchDirectory.mjs","sources":["../../../../src/core/transform/tsconfig/createTransformScratchDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAQA
|
|
1
|
+
{"version":3,"file":"createTransformScratchDirectory.mjs","sources":["../../../../src/core/transform/tsconfig/createTransformScratchDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAQA;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,+BAA+B,CAC7C,WAAmB,EACnB,aAAgD,6BAA6B,EAAA;IAE7E,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACtC,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC/C,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACrD,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE;AACzC,QAAA,KAAK,IAAI,SAAS,GAAG,KAAK,GAAI,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;AACjE,YAAA,IACE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;gBAC3C,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAE1D,gBAAA,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC;AAC/B,YAAA,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,SAAS;gBAAE;QAC7C;IACF;;;;AAIA,IAAA,MAAM,WAAW,GAAG,CAAC,SAAiB,KACpC,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,SAAS,CAAC;AAC3D,QAAA,CAAC,GAAG,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,YAAY,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAC7E,IAAA,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAU;AAC7C,IAAA,IAAI,OAAgB;AACpB,IAAA,KAAK,MAAM,EACT,QAAQ,EACR,SAAS,EAAE,kBAAkB,GAC9B,IAAI,wBAAwB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC9C,IACE,WAAW,CAAC,QAAQ,CAAC;YACrB,WAAW,CAAC,kBAAkB,CAAC;AAC/B,YAAA,mBAAmB,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAC3C;YACA;QACF;AACA,QAAA,mBAAmB,CAAC,GAAG,CAAC,kBAAkB,CAAC;AAC3C,QAAA,IAAI,SAAiB;AACrB,QAAA,IAAI;AACF,YAAA,SAAS,GAAG,EAAE,CAAC,WAAW,CACxB,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAChD;QACH;QAAE,OAAO,KAAK,EAAE;YACd,OAAO,GAAG,KAAK;YACf;QACF;AACA,QAAA,IAAI,kBAA0B;AAC9B,QAAA,IAAI;AACF,YAAA,kBAAkB,GAAG,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC;QACrD;QAAE,OAAO,KAAK,EAAE;;;AAGd,YAAA,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC;YACvB,OAAO,GAAG,KAAK;YACf;QACF;;;;;;AAMA,QAAA,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAE;AACpC,YAAA,OAAO,kBAAkB;QAC3B;;;AAGA,QAAA,EAAE,CAAC,SAAS,CAAC,kBAAkB,CAAC;IAClC;AACA,IAAA,OACE,OAAO;AACP,QAAA,IAAI,KAAK,CAAC,yDAAyD,CAAC;AAExE;;;;"}
|
|
@@ -52,6 +52,8 @@ export declare namespace TtscGenerationProof {
|
|
|
52
52
|
* one now; an absent or undefined entry proves nothing.
|
|
53
53
|
*/
|
|
54
54
|
readonly locations?: ReadonlyMap<string, string | undefined>;
|
|
55
|
+
/** Whether the adapter uses one generation-wide watch input set. */
|
|
56
|
+
readonly groupedWatchInputs?: boolean;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Prepare native authority only when this delivery needs a new input proof.
|
|
@@ -59,7 +61,7 @@ export declare namespace TtscGenerationProof {
|
|
|
59
61
|
*
|
|
60
62
|
* @evidence contracts/common.md#principled-implementation A qualified first-delivery pass already owns environment proof; all other requests prepare actual authority before synchronous admission.
|
|
61
63
|
* @evidence contracts/common.md#clear-and-simple-design One branch delegates native preparation rather than repeating it in adapters.
|
|
62
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
64
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The pass may supply its own qualified readings. Persistent callers use this route whenever currentWatch cannot establish current native and source-tree authority.
|
|
63
65
|
* @evidence contracts/common.md#meaningful-documentation Prose states preparation versus transaction ordering.
|
|
64
66
|
* @evidence contracts/portability.md#os-neutral-implementation Preparation uses the actual generation filesystem and native toolchain reader.
|
|
65
67
|
* @evidence contracts/performance.md#efficient-algorithms Qualified first deliveries perform baseline/identity lookups; other deliveries delegate one preparation per unique plugin directory.
|
|
@@ -82,7 +84,22 @@ export declare namespace TtscGenerationProof {
|
|
|
82
84
|
* @evidence contracts/performance.md#reuse-equivalent-work Only the following synchronous validators borrow this batch and the location identities; pass sharing uses its independent first-delivery contract.
|
|
83
85
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The caller releases the transaction at the end of synchronous admission; no registry or native handle is acquired.
|
|
84
86
|
*/
|
|
85
|
-
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined): Transaction;
|
|
87
|
+
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined, groupedWatchInputs?: boolean): Transaction;
|
|
88
|
+
/**
|
|
89
|
+
* Admit a watching delivery that already has a proof for its source trees.
|
|
90
|
+
* Capture fresh native environment readings after the last await and share
|
|
91
|
+
* them with synchronous admission.
|
|
92
|
+
*
|
|
93
|
+
* @evidence contracts/common.md#principled-implementation Exact watcher coverage and the recorded digest qualify each tree, and current environment readings must equal the environment that earned that proof.
|
|
94
|
+
* @evidence contracts/common.md#clear-and-simple-design Current admission can avoid asynchronous work only when its native readings and watched trees already suffice; the normal preparation owns every refusal.
|
|
95
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No prior delivery or unobserved source tree grants permission to reuse the current environment.
|
|
96
|
+
* @evidence contracts/common.md#meaningful-documentation The prose states the qualification and the synchronous lifetime.
|
|
97
|
+
* @evidence contracts/portability.md#os-neutral-implementation The existing tracker and environment reader establish native scope and path identity.
|
|
98
|
+
* @evidence contracts/performance.md#efficient-algorithms Healthy deliveries perform one current environment batch and two bounded tree-coverage checks instead of a preparation batch followed by another native witness scan.
|
|
99
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Source-tree evidence serves sibling deliveries only alongside current exact coverage and environment qualification.
|
|
100
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned transaction belongs to the following synchronous admission and acquires no handles.
|
|
101
|
+
*/
|
|
102
|
+
function currentWatch(cached: TtscCachedProjectTransform, file: string): Transaction | undefined;
|
|
86
103
|
/**
|
|
87
104
|
* Whether this module's first delivery belongs to this generation's proven
|
|
88
105
|
* pass. A missing source baseline cannot acquire this permission.
|
|
@@ -52,6 +52,8 @@ export declare namespace TtscGenerationProof {
|
|
|
52
52
|
* one now; an absent or undefined entry proves nothing.
|
|
53
53
|
*/
|
|
54
54
|
readonly locations?: ReadonlyMap<string, string | undefined>;
|
|
55
|
+
/** Whether the adapter uses one generation-wide watch input set. */
|
|
56
|
+
readonly groupedWatchInputs?: boolean;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Prepare native authority only when this delivery needs a new input proof.
|
|
@@ -59,7 +61,7 @@ export declare namespace TtscGenerationProof {
|
|
|
59
61
|
*
|
|
60
62
|
* @evidence contracts/common.md#principled-implementation A qualified first-delivery pass already owns environment proof; all other requests prepare actual authority before synchronous admission.
|
|
61
63
|
* @evidence contracts/common.md#clear-and-simple-design One branch delegates native preparation rather than repeating it in adapters.
|
|
62
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
64
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The pass may supply its own qualified readings. Persistent callers use this route whenever currentWatch cannot establish current native and source-tree authority.
|
|
63
65
|
* @evidence contracts/common.md#meaningful-documentation Prose states preparation versus transaction ordering.
|
|
64
66
|
* @evidence contracts/portability.md#os-neutral-implementation Preparation uses the actual generation filesystem and native toolchain reader.
|
|
65
67
|
* @evidence contracts/performance.md#efficient-algorithms Qualified first deliveries perform baseline/identity lookups; other deliveries delegate one preparation per unique plugin directory.
|
|
@@ -82,7 +84,22 @@ export declare namespace TtscGenerationProof {
|
|
|
82
84
|
* @evidence contracts/performance.md#reuse-equivalent-work Only the following synchronous validators borrow this batch and the location identities; pass sharing uses its independent first-delivery contract.
|
|
83
85
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The caller releases the transaction at the end of synchronous admission; no registry or native handle is acquired.
|
|
84
86
|
*/
|
|
85
|
-
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined): Transaction;
|
|
87
|
+
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined, groupedWatchInputs?: boolean): Transaction;
|
|
88
|
+
/**
|
|
89
|
+
* Admit a watching delivery that already has a proof for its source trees.
|
|
90
|
+
* Capture fresh native environment readings after the last await and share
|
|
91
|
+
* them with synchronous admission.
|
|
92
|
+
*
|
|
93
|
+
* @evidence contracts/common.md#principled-implementation Exact watcher coverage and the recorded digest qualify each tree, and current environment readings must equal the environment that earned that proof.
|
|
94
|
+
* @evidence contracts/common.md#clear-and-simple-design Current admission can avoid asynchronous work only when its native readings and watched trees already suffice; the normal preparation owns every refusal.
|
|
95
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No prior delivery or unobserved source tree grants permission to reuse the current environment.
|
|
96
|
+
* @evidence contracts/common.md#meaningful-documentation The prose states the qualification and the synchronous lifetime.
|
|
97
|
+
* @evidence contracts/portability.md#os-neutral-implementation The existing tracker and environment reader establish native scope and path identity.
|
|
98
|
+
* @evidence contracts/performance.md#efficient-algorithms Healthy deliveries perform one current environment batch and two bounded tree-coverage checks instead of a preparation batch followed by another native witness scan.
|
|
99
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Source-tree evidence serves sibling deliveries only alongside current exact coverage and environment qualification.
|
|
100
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned transaction belongs to the following synchronous admission and acquires no handles.
|
|
101
|
+
*/
|
|
102
|
+
function currentWatch(cached: TtscCachedProjectTransform, file: string): Transaction | undefined;
|
|
86
103
|
/**
|
|
87
104
|
* Whether this module's first delivery belongs to this generation's proven
|
|
88
105
|
* pass. A missing source baseline cannot acquire this permission.
|
|
@@ -52,6 +52,8 @@ export declare namespace TtscGenerationProof {
|
|
|
52
52
|
* one now; an absent or undefined entry proves nothing.
|
|
53
53
|
*/
|
|
54
54
|
readonly locations?: ReadonlyMap<string, string | undefined>;
|
|
55
|
+
/** Whether the adapter uses one generation-wide watch input set. */
|
|
56
|
+
readonly groupedWatchInputs?: boolean;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Prepare native authority only when this delivery needs a new input proof.
|
|
@@ -59,7 +61,7 @@ export declare namespace TtscGenerationProof {
|
|
|
59
61
|
*
|
|
60
62
|
* @evidence contracts/common.md#principled-implementation A qualified first-delivery pass already owns environment proof; all other requests prepare actual authority before synchronous admission.
|
|
61
63
|
* @evidence contracts/common.md#clear-and-simple-design One branch delegates native preparation rather than repeating it in adapters.
|
|
62
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
64
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The pass may supply its own qualified readings. Persistent callers use this route whenever currentWatch cannot establish current native and source-tree authority.
|
|
63
65
|
* @evidence contracts/common.md#meaningful-documentation Prose states preparation versus transaction ordering.
|
|
64
66
|
* @evidence contracts/portability.md#os-neutral-implementation Preparation uses the actual generation filesystem and native toolchain reader.
|
|
65
67
|
* @evidence contracts/performance.md#efficient-algorithms Qualified first deliveries perform baseline/identity lookups; other deliveries delegate one preparation per unique plugin directory.
|
|
@@ -82,7 +84,22 @@ export declare namespace TtscGenerationProof {
|
|
|
82
84
|
* @evidence contracts/performance.md#reuse-equivalent-work Only the following synchronous validators borrow this batch and the location identities; pass sharing uses its independent first-delivery contract.
|
|
83
85
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The caller releases the transaction at the end of synchronous admission; no registry or native handle is acquired.
|
|
84
86
|
*/
|
|
85
|
-
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined): Transaction;
|
|
87
|
+
function create(cached: TtscCachedProjectTransform, file: string, epoch: number | undefined, groupedWatchInputs?: boolean): Transaction;
|
|
88
|
+
/**
|
|
89
|
+
* Admit a watching delivery that already has a proof for its source trees.
|
|
90
|
+
* Capture fresh native environment readings after the last await and share
|
|
91
|
+
* them with synchronous admission.
|
|
92
|
+
*
|
|
93
|
+
* @evidence contracts/common.md#principled-implementation Exact watcher coverage and the recorded digest qualify each tree, and current environment readings must equal the environment that earned that proof.
|
|
94
|
+
* @evidence contracts/common.md#clear-and-simple-design Current admission can avoid asynchronous work only when its native readings and watched trees already suffice; the normal preparation owns every refusal.
|
|
95
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No prior delivery or unobserved source tree grants permission to reuse the current environment.
|
|
96
|
+
* @evidence contracts/common.md#meaningful-documentation The prose states the qualification and the synchronous lifetime.
|
|
97
|
+
* @evidence contracts/portability.md#os-neutral-implementation The existing tracker and environment reader establish native scope and path identity.
|
|
98
|
+
* @evidence contracts/performance.md#efficient-algorithms Healthy deliveries perform one current environment batch and two bounded tree-coverage checks instead of a preparation batch followed by another native witness scan.
|
|
99
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Source-tree evidence serves sibling deliveries only alongside current exact coverage and environment qualification.
|
|
100
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned transaction belongs to the following synchronous admission and acquires no handles.
|
|
101
|
+
*/
|
|
102
|
+
function currentWatch(cached: TtscCachedProjectTransform, file: string): Transaction | undefined;
|
|
86
103
|
/**
|
|
87
104
|
* Whether this module's first delivery belongs to this generation's proven
|
|
88
105
|
* pass. A missing source baseline cannot acquire this permission.
|
|
@@ -10,6 +10,7 @@ var pathIdentityKey = require('../filesystem/pathIdentityKey.js');
|
|
|
10
10
|
var preparePluginBuildEnvironments = require('../inputs/preparePluginBuildEnvironments.js');
|
|
11
11
|
var toProjectKey = require('../project/toProjectKey.js');
|
|
12
12
|
var verifyGenerationLocations = require('../tracker/verifyGenerationLocations.js');
|
|
13
|
+
var trackerProvesInputUnchanged = require('./trackerProvesInputUnchanged.js');
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* The shared ownership boundary for generation reuse in every adapter.
|
|
@@ -43,7 +44,7 @@ exports.TtscGenerationProof = void 0;
|
|
|
43
44
|
*
|
|
44
45
|
* @evidence contracts/common.md#principled-implementation A qualified first-delivery pass already owns environment proof; all other requests prepare actual authority before synchronous admission.
|
|
45
46
|
* @evidence contracts/common.md#clear-and-simple-design One branch delegates native preparation rather than repeating it in adapters.
|
|
46
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
47
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The pass may supply its own qualified readings. Persistent callers use this route whenever currentWatch cannot establish current native and source-tree authority.
|
|
47
48
|
* @evidence contracts/common.md#meaningful-documentation Prose states preparation versus transaction ordering.
|
|
48
49
|
* @evidence contracts/portability.md#os-neutral-implementation Preparation uses the actual generation filesystem and native toolchain reader.
|
|
49
50
|
* @evidence contracts/performance.md#efficient-algorithms Qualified first deliveries perform baseline/identity lookups; other deliveries delegate one preparation per unique plugin directory.
|
|
@@ -70,9 +71,10 @@ exports.TtscGenerationProof = void 0;
|
|
|
70
71
|
* @evidence contracts/performance.md#reuse-equivalent-work Only the following synchronous validators borrow this batch and the location identities; pass sharing uses its independent first-delivery contract.
|
|
71
72
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The caller releases the transaction at the end of synchronous admission; no registry or native handle is acquired.
|
|
72
73
|
*/
|
|
73
|
-
function create(cached, file, epoch) {
|
|
74
|
+
function create(cached, file, epoch, groupedWatchInputs = false) {
|
|
74
75
|
return {
|
|
75
76
|
cached,
|
|
77
|
+
...(groupedWatchInputs ? { groupedWatchInputs } : {}),
|
|
76
78
|
// A persistent delivery rechecks its watched directories here, after
|
|
77
79
|
// its last await, so a directory replaced while it prepared withdraws
|
|
78
80
|
// its tracker before admission reads it.
|
|
@@ -87,6 +89,43 @@ exports.TtscGenerationProof = void 0;
|
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
TtscGenerationProof.create = create;
|
|
92
|
+
/**
|
|
93
|
+
* Admit a watching delivery that already has a proof for its source trees.
|
|
94
|
+
* Capture fresh native environment readings after the last await and share
|
|
95
|
+
* them with synchronous admission.
|
|
96
|
+
*
|
|
97
|
+
* @evidence contracts/common.md#principled-implementation Exact watcher coverage and the recorded digest qualify each tree, and current environment readings must equal the environment that earned that proof.
|
|
98
|
+
* @evidence contracts/common.md#clear-and-simple-design Current admission can avoid asynchronous work only when its native readings and watched trees already suffice; the normal preparation owns every refusal.
|
|
99
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No prior delivery or unobserved source tree grants permission to reuse the current environment.
|
|
100
|
+
* @evidence contracts/common.md#meaningful-documentation The prose states the qualification and the synchronous lifetime.
|
|
101
|
+
* @evidence contracts/portability.md#os-neutral-implementation The existing tracker and environment reader establish native scope and path identity.
|
|
102
|
+
* @evidence contracts/performance.md#efficient-algorithms Healthy deliveries perform one current environment batch and two bounded tree-coverage checks instead of a preparation batch followed by another native witness scan.
|
|
103
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Source-tree evidence serves sibling deliveries only alongside current exact coverage and environment qualification.
|
|
104
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned transaction belongs to the following synchronous admission and acquires no handles.
|
|
105
|
+
*/
|
|
106
|
+
function currentWatch(cached, file) {
|
|
107
|
+
const sources = selectPluginSourceInputs.selectPluginSourceInputs(cached.result);
|
|
108
|
+
if (sources.size === 0)
|
|
109
|
+
return create(cached, file, undefined, true);
|
|
110
|
+
const validation = cached.hostInputValidation;
|
|
111
|
+
const tracker = cached.hostInputMutationTracker;
|
|
112
|
+
if (validation === undefined ||
|
|
113
|
+
!preparePluginBuildEnvironments.usesPreparedPluginBuildEnvironments(cached.result))
|
|
114
|
+
return undefined;
|
|
115
|
+
for (const [directory, state] of sources)
|
|
116
|
+
if (validation.trees.get(directory) !== state ||
|
|
117
|
+
validation.treeEnvironments?.get(directory) === undefined ||
|
|
118
|
+
!trackerProvesInputUnchanged.trackerProvesInputUnchanged(tracker, directory))
|
|
119
|
+
return undefined;
|
|
120
|
+
const proof = create(cached, file, undefined, true);
|
|
121
|
+
for (const directory of sources.keys())
|
|
122
|
+
if (proof.environments?.get(directory) !==
|
|
123
|
+
validation.treeEnvironments?.get(directory) ||
|
|
124
|
+
!trackerProvesInputUnchanged.trackerProvesInputUnchanged(tracker, directory))
|
|
125
|
+
return undefined;
|
|
126
|
+
return proof;
|
|
127
|
+
}
|
|
128
|
+
TtscGenerationProof.currentWatch = currentWatch;
|
|
90
129
|
/**
|
|
91
130
|
* Whether this module's first delivery belongs to this generation's proven
|
|
92
131
|
* pass. A missing source baseline cannot acquire this permission.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TtscGenerationProof.js","sources":["../../../../src/core/transform/validation/TtscGenerationProof.ts"],"sourcesContent":[null],"names":["TtscGenerationProof","preparePluginBuildEnvironments","resultFilesystem","verifyGenerationLocations","PluginBuildEnvironmentReadings","selectPluginSourceInputs","envelopeDerivation","pathIdentityKey","toProjectKey","disposeCachedTransform","evictGeneration"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TtscGenerationProof.js","sources":["../../../../src/core/transform/validation/TtscGenerationProof.ts"],"sourcesContent":[null],"names":["TtscGenerationProof","preparePluginBuildEnvironments","resultFilesystem","verifyGenerationLocations","PluginBuildEnvironmentReadings","selectPluginSourceInputs","usesPreparedPluginBuildEnvironments","trackerProvesInputUnchanged","envelopeDerivation","pathIdentityKey","toProjectKey","disposeCachedTransform","evictGeneration"],"mappings":";;;;;;;;;;;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACcA;AAAjB,CAAA,UAAiB,mBAAmB,EAAA;AAmClC;;;;;;;;;;;;AAYG;AACI,IAAA,eAAe,OAAO,CAC3B,MAAkC,EAClC,IAAY,EACZ,KAAyB,EAAA;QAEzB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AAClC,YAAA,MAAMC,6DAA8B,CAClC,MAAM,CAAC,MAAM,EACbC,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,EAC/B,MAAM,CACP;IACL;AAXsB,IAAA,mBAAA,CAAA,OAAO,UAW5B;AAED;;;;;;;;;;;;;;AAcG;IACH,SAAgB,MAAM,CACpB,MAAkC,EAClC,IAAY,EACZ,KAAyB,EACzB,kBAAkB,GAAG,KAAK,EAAA;QAE1B,OAAO;YACL,MAAM;AACN,YAAA,IAAI,kBAAkB,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC;;;;YAIrD,IAAI,KAAK,KAAK;kBACV,EAAE,SAAS,EAAEC,mDAAyB,CAAC,MAAM,CAAC;kBAC9C,EAAE,CAAC;YACP,IAAI,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK;AAChC,kBAAE;AACF,kBAAE;AACE,oBAAA,YAAY,EAAEC,2CAA8B,CAAC,SAAS,CACpDC,iDAAwB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAC/C;iBACF,CAAC;SACP;IACH;AAvBgB,IAAA,mBAAA,CAAA,MAAM,SAuBrB;AAED;;;;;;;;;;;;;AAaG;AACH,IAAA,SAAgB,YAAY,CAC1B,MAAkC,EAClC,IAAY,EAAA;QAEZ,MAAM,OAAO,GAAGA,iDAAwB,CAAC,MAAM,CAAC,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AC,aAAa,KAAK,KAAK;AAC9B,YAAA,MAAM,CAAC,gBAAgB,KAAK,IAAI;QAClCC,6CAAsB,CAAC,MAAM,CAAC;AAC9B,QAAA,IAAI,CAAC,MAAM;AAAE,YAAAC,+BAAe,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC;QACpD,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,UAAU;AACjD,YAAA,MAAM,IAAI,KAAK,CACb,iOAAiO,CAClO;AACH,QAAA,IAAI;AACF,YAAA,KAAK,EAAE,YAAY,IAAI;QACzB;QAAE,OAAO,KAAK,EAAE;AACd,YAAAA,+BAAe,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC;AACvC,YAAA,MAAM,KAAK;QACb;IACF;AA/BgB,IAAA,mBAAA,CAAA,cAAc,iBA+B7B;AACH,CAAC,EAvOgBZ,2BAAmB,KAAnBA,2BAAmB,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -5,9 +5,10 @@ import { resultFilesystem } from '../cache/resultFilesystem.mjs';
|
|
|
5
5
|
import { envelopeDerivation } from '../envelope/envelopeDerivation.mjs';
|
|
6
6
|
import { selectPluginSourceInputs } from '../envelope/selectPluginSourceInputs.mjs';
|
|
7
7
|
import { pathIdentityKey } from '../filesystem/pathIdentityKey.mjs';
|
|
8
|
-
import { preparePluginBuildEnvironments } from '../inputs/preparePluginBuildEnvironments.mjs';
|
|
8
|
+
import { preparePluginBuildEnvironments, usesPreparedPluginBuildEnvironments } from '../inputs/preparePluginBuildEnvironments.mjs';
|
|
9
9
|
import { toProjectKey } from '../project/toProjectKey.mjs';
|
|
10
10
|
import { verifyGenerationLocations } from '../tracker/verifyGenerationLocations.mjs';
|
|
11
|
+
import { trackerProvesInputUnchanged } from './trackerProvesInputUnchanged.mjs';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* The shared ownership boundary for generation reuse in every adapter.
|
|
@@ -41,7 +42,7 @@ var TtscGenerationProof;
|
|
|
41
42
|
*
|
|
42
43
|
* @evidence contracts/common.md#principled-implementation A qualified first-delivery pass already owns environment proof; all other requests prepare actual authority before synchronous admission.
|
|
43
44
|
* @evidence contracts/common.md#clear-and-simple-design One branch delegates native preparation rather than repeating it in adapters.
|
|
44
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
45
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The pass may supply its own qualified readings. Persistent callers use this route whenever currentWatch cannot establish current native and source-tree authority.
|
|
45
46
|
* @evidence contracts/common.md#meaningful-documentation Prose states preparation versus transaction ordering.
|
|
46
47
|
* @evidence contracts/portability.md#os-neutral-implementation Preparation uses the actual generation filesystem and native toolchain reader.
|
|
47
48
|
* @evidence contracts/performance.md#efficient-algorithms Qualified first deliveries perform baseline/identity lookups; other deliveries delegate one preparation per unique plugin directory.
|
|
@@ -68,9 +69,10 @@ var TtscGenerationProof;
|
|
|
68
69
|
* @evidence contracts/performance.md#reuse-equivalent-work Only the following synchronous validators borrow this batch and the location identities; pass sharing uses its independent first-delivery contract.
|
|
69
70
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The caller releases the transaction at the end of synchronous admission; no registry or native handle is acquired.
|
|
70
71
|
*/
|
|
71
|
-
function create(cached, file, epoch) {
|
|
72
|
+
function create(cached, file, epoch, groupedWatchInputs = false) {
|
|
72
73
|
return {
|
|
73
74
|
cached,
|
|
75
|
+
...(groupedWatchInputs ? { groupedWatchInputs } : {}),
|
|
74
76
|
// A persistent delivery rechecks its watched directories here, after
|
|
75
77
|
// its last await, so a directory replaced while it prepared withdraws
|
|
76
78
|
// its tracker before admission reads it.
|
|
@@ -85,6 +87,43 @@ var TtscGenerationProof;
|
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
89
|
TtscGenerationProof.create = create;
|
|
90
|
+
/**
|
|
91
|
+
* Admit a watching delivery that already has a proof for its source trees.
|
|
92
|
+
* Capture fresh native environment readings after the last await and share
|
|
93
|
+
* them with synchronous admission.
|
|
94
|
+
*
|
|
95
|
+
* @evidence contracts/common.md#principled-implementation Exact watcher coverage and the recorded digest qualify each tree, and current environment readings must equal the environment that earned that proof.
|
|
96
|
+
* @evidence contracts/common.md#clear-and-simple-design Current admission can avoid asynchronous work only when its native readings and watched trees already suffice; the normal preparation owns every refusal.
|
|
97
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No prior delivery or unobserved source tree grants permission to reuse the current environment.
|
|
98
|
+
* @evidence contracts/common.md#meaningful-documentation The prose states the qualification and the synchronous lifetime.
|
|
99
|
+
* @evidence contracts/portability.md#os-neutral-implementation The existing tracker and environment reader establish native scope and path identity.
|
|
100
|
+
* @evidence contracts/performance.md#efficient-algorithms Healthy deliveries perform one current environment batch and two bounded tree-coverage checks instead of a preparation batch followed by another native witness scan.
|
|
101
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Source-tree evidence serves sibling deliveries only alongside current exact coverage and environment qualification.
|
|
102
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The returned transaction belongs to the following synchronous admission and acquires no handles.
|
|
103
|
+
*/
|
|
104
|
+
function currentWatch(cached, file) {
|
|
105
|
+
const sources = selectPluginSourceInputs(cached.result);
|
|
106
|
+
if (sources.size === 0)
|
|
107
|
+
return create(cached, file, undefined, true);
|
|
108
|
+
const validation = cached.hostInputValidation;
|
|
109
|
+
const tracker = cached.hostInputMutationTracker;
|
|
110
|
+
if (validation === undefined ||
|
|
111
|
+
!usesPreparedPluginBuildEnvironments(cached.result))
|
|
112
|
+
return undefined;
|
|
113
|
+
for (const [directory, state] of sources)
|
|
114
|
+
if (validation.trees.get(directory) !== state ||
|
|
115
|
+
validation.treeEnvironments?.get(directory) === undefined ||
|
|
116
|
+
!trackerProvesInputUnchanged(tracker, directory))
|
|
117
|
+
return undefined;
|
|
118
|
+
const proof = create(cached, file, undefined, true);
|
|
119
|
+
for (const directory of sources.keys())
|
|
120
|
+
if (proof.environments?.get(directory) !==
|
|
121
|
+
validation.treeEnvironments?.get(directory) ||
|
|
122
|
+
!trackerProvesInputUnchanged(tracker, directory))
|
|
123
|
+
return undefined;
|
|
124
|
+
return proof;
|
|
125
|
+
}
|
|
126
|
+
TtscGenerationProof.currentWatch = currentWatch;
|
|
88
127
|
/**
|
|
89
128
|
* Whether this module's first delivery belongs to this generation's proven
|
|
90
129
|
* pass. A missing source baseline cannot acquire this permission.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TtscGenerationProof.mjs","sources":["../../../../src/core/transform/validation/TtscGenerationProof.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TtscGenerationProof.mjs","sources":["../../../../src/core/transform/validation/TtscGenerationProof.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAmBA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACG,IAAW;AAAjB,CAAA,UAAiB,mBAAmB,EAAA;AAmClC;;;;;;;;;;;;AAYG;AACI,IAAA,eAAe,OAAO,CAC3B,MAAkC,EAClC,IAAY,EACZ,KAAyB,EAAA;QAEzB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AAClC,YAAA,MAAM,8BAA8B,CAClC,MAAM,CAAC,MAAM,EACb,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,EAC/B,MAAM,CACP;IACL;AAXsB,IAAA,mBAAA,CAAA,OAAO,UAW5B;AAED;;;;;;;;;;;;;;AAcG;IACH,SAAgB,MAAM,CACpB,MAAkC,EAClC,IAAY,EACZ,KAAyB,EACzB,kBAAkB,GAAG,KAAK,EAAA;QAE1B,OAAO;YACL,MAAM;AACN,YAAA,IAAI,kBAAkB,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC;;;;YAIrD,IAAI,KAAK,KAAK;kBACV,EAAE,SAAS,EAAE,yBAAyB,CAAC,MAAM,CAAC;kBAC9C,EAAE,CAAC;YACP,IAAI,UAAU,CAAC,MA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B,KAAqC,EAAA;AAErC,QAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI;YAAE;AACvC,QAAA,MAAM,UAAU,GACd,KAAK,EAAE,QAAQ,KAAK,KAAK;YACzB,KAAK,CAAC,YAAY,KAAK,SAAS;AAChC,aAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,KAAK,SAAS;AACpC,gBAAA,KAAK,CAAC,OAAO,CAAC,QAAQ,KAAK,KAAK,CAAC;QACrC,MAAM,MAAM,GACV,UAAU;AACV,YAAA,KAAK,KAAK,SAAS;YACnB,MAAM,CAAC,aAAa,KAAK,KAAK;AAC9B,YAAA,MAAM,CAAC,gBAAgB,KAAK,IAAI;QAClC,sBAAsB,CAAC,MAAM,CAAC;AAC9B,QAAA,IAAI,CAAC,MAAM;AAAE,YAAA,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC;QACpD,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,UAAU;AACjD,YAAA,MAAM,IAAI,KAAK,CACb,iOAAiO,CAClO;AACH,QAAA,IAAI;AACF,YAAA,KAAK,EAAE,YAAY,IAAI;QACzB;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC;AACvC,YAAA,MAAM,KAAK;QACb;IACF;AA/BgB,IAAA,mBAAA,CAAA,cAAc,iBA+B7B;AACH,CAAC,EAvOgB,mBAAmB,KAAnB,mBAAmB,GAAA,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -71,6 +71,15 @@ environment) {
|
|
|
71
71
|
detail: "observer-incomplete",
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
if (result.type !== "exception")
|
|
75
|
+
for (const [anchor, state] of Object.entries(result.workspaceInputs ?? {})) {
|
|
76
|
+
if (!pluginSource.PluginBuildEnvironmentWitness.holds(state.entries))
|
|
77
|
+
recordGenerationProofFailure.recordGenerationProofFailure(failures, {
|
|
78
|
+
domain: "host",
|
|
79
|
+
kind: "snapshot-mismatch",
|
|
80
|
+
path: anchor,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
74
83
|
const environmentChanged = environmentInputMismatch.environmentInputMismatch(result.type === "exception" ? undefined : result.environmentInputs, environment);
|
|
75
84
|
if (environmentChanged !== undefined) {
|
|
76
85
|
recordGenerationProofFailure.recordGenerationProofFailure(failures, {
|