@ttsc/unplugin 0.38.0 → 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
|
@@ -3,7 +3,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
3
3
|
* Re-check graph-owned physical identities in complete-snapshot fallback.
|
|
4
4
|
*
|
|
5
5
|
* Predicate-bearing spellings are already replayed by their owning validator;
|
|
6
|
-
* this pass handles only
|
|
6
|
+
* this pass handles only legacy graph realpath witnesses outside the caller's
|
|
7
|
+
* verified host tracker coverage.
|
|
7
8
|
*
|
|
8
9
|
* @evidence contracts/common.md#principled-implementation Each recorded legacy physical target must still match under the generation's identity context; predicate observations retain their independent native semantics.
|
|
9
10
|
* @evidence contracts/common.md#clear-and-simple-design This pass owns only the physical half of legacy external snapshot fallback rather than duplicating predicate replay.
|
|
@@ -13,8 +14,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
13
14
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The pass borrows generation records and retains no map, handle or historical result.
|
|
14
15
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
15
16
|
* Materializes recorded target keys for the empty check, then scans external
|
|
16
|
-
* spellings until a mismatch. Predicate
|
|
17
|
-
* entries pay native identity
|
|
17
|
+
* spellings until a mismatch. Predicate and currently proven spellings skip
|
|
18
|
+
* legacy proof. Other entries pay native identity and realpath observation
|
|
18
19
|
* comparison, including uncached native components/case and path text.
|
|
19
20
|
* No source content or recursive directory enumeration is performed here.
|
|
20
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Complete snapshot admission owns shared proof and adoption; this pass contributes one physical-target verdict.
|
|
@@ -24,4 +25,6 @@ export declare function matchesExternalInputRealpaths(
|
|
|
24
25
|
* Generation retaining legacy target witnesses and separately replayed
|
|
25
26
|
* predicates.
|
|
26
27
|
*/
|
|
27
|
-
cached: TtscCachedProjectTransform
|
|
28
|
+
cached: TtscCachedProjectTransform,
|
|
29
|
+
/** Whether this delivery's verified watcher proves this exact spelling. */
|
|
30
|
+
provenByWatch?: (file: string) => boolean): boolean;
|
|
@@ -3,7 +3,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
3
3
|
* Re-check graph-owned physical identities in complete-snapshot fallback.
|
|
4
4
|
*
|
|
5
5
|
* Predicate-bearing spellings are already replayed by their owning validator;
|
|
6
|
-
* this pass handles only
|
|
6
|
+
* this pass handles only legacy graph realpath witnesses outside the caller's
|
|
7
|
+
* verified host tracker coverage.
|
|
7
8
|
*
|
|
8
9
|
* @evidence contracts/common.md#principled-implementation Each recorded legacy physical target must still match under the generation's identity context; predicate observations retain their independent native semantics.
|
|
9
10
|
* @evidence contracts/common.md#clear-and-simple-design This pass owns only the physical half of legacy external snapshot fallback rather than duplicating predicate replay.
|
|
@@ -13,8 +14,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
13
14
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The pass borrows generation records and retains no map, handle or historical result.
|
|
14
15
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
15
16
|
* Materializes recorded target keys for the empty check, then scans external
|
|
16
|
-
* spellings until a mismatch. Predicate
|
|
17
|
-
* entries pay native identity
|
|
17
|
+
* spellings until a mismatch. Predicate and currently proven spellings skip
|
|
18
|
+
* legacy proof. Other entries pay native identity and realpath observation
|
|
18
19
|
* comparison, including uncached native components/case and path text.
|
|
19
20
|
* No source content or recursive directory enumeration is performed here.
|
|
20
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Complete snapshot admission owns shared proof and adoption; this pass contributes one physical-target verdict.
|
|
@@ -24,4 +25,6 @@ export declare function matchesExternalInputRealpaths(
|
|
|
24
25
|
* Generation retaining legacy target witnesses and separately replayed
|
|
25
26
|
* predicates.
|
|
26
27
|
*/
|
|
27
|
-
cached: TtscCachedProjectTransform
|
|
28
|
+
cached: TtscCachedProjectTransform,
|
|
29
|
+
/** Whether this delivery's verified watcher proves this exact spelling. */
|
|
30
|
+
provenByWatch?: (file: string) => boolean): boolean;
|
|
@@ -3,7 +3,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
3
3
|
* Re-check graph-owned physical identities in complete-snapshot fallback.
|
|
4
4
|
*
|
|
5
5
|
* Predicate-bearing spellings are already replayed by their owning validator;
|
|
6
|
-
* this pass handles only
|
|
6
|
+
* this pass handles only legacy graph realpath witnesses outside the caller's
|
|
7
|
+
* verified host tracker coverage.
|
|
7
8
|
*
|
|
8
9
|
* @evidence contracts/common.md#principled-implementation Each recorded legacy physical target must still match under the generation's identity context; predicate observations retain their independent native semantics.
|
|
9
10
|
* @evidence contracts/common.md#clear-and-simple-design This pass owns only the physical half of legacy external snapshot fallback rather than duplicating predicate replay.
|
|
@@ -13,8 +14,8 @@ import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTrans
|
|
|
13
14
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The pass borrows generation records and retains no map, handle or historical result.
|
|
14
15
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
15
16
|
* Materializes recorded target keys for the empty check, then scans external
|
|
16
|
-
* spellings until a mismatch. Predicate
|
|
17
|
-
* entries pay native identity
|
|
17
|
+
* spellings until a mismatch. Predicate and currently proven spellings skip
|
|
18
|
+
* legacy proof. Other entries pay native identity and realpath observation
|
|
18
19
|
* comparison, including uncached native components/case and path text.
|
|
19
20
|
* No source content or recursive directory enumeration is performed here.
|
|
20
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Complete snapshot admission owns shared proof and adoption; this pass contributes one physical-target verdict.
|
|
@@ -24,4 +25,6 @@ export declare function matchesExternalInputRealpaths(
|
|
|
24
25
|
* Generation retaining legacy target witnesses and separately replayed
|
|
25
26
|
* predicates.
|
|
26
27
|
*/
|
|
27
|
-
cached: TtscCachedProjectTransform
|
|
28
|
+
cached: TtscCachedProjectTransform,
|
|
29
|
+
/** Whether this delivery's verified watcher proves this exact spelling. */
|
|
30
|
+
provenByWatch?: (file: string) => boolean): boolean;
|
|
@@ -11,7 +11,8 @@ var sameHostInputRealpath = require('../inputs/sameHostInputRealpath.js');
|
|
|
11
11
|
* Re-check graph-owned physical identities in complete-snapshot fallback.
|
|
12
12
|
*
|
|
13
13
|
* Predicate-bearing spellings are already replayed by their owning validator;
|
|
14
|
-
* this pass handles only
|
|
14
|
+
* this pass handles only legacy graph realpath witnesses outside the caller's
|
|
15
|
+
* verified host tracker coverage.
|
|
15
16
|
*
|
|
16
17
|
* @evidence contracts/common.md#principled-implementation Each recorded legacy physical target must still match under the generation's identity context; predicate observations retain their independent native semantics.
|
|
17
18
|
* @evidence contracts/common.md#clear-and-simple-design This pass owns only the physical half of legacy external snapshot fallback rather than duplicating predicate replay.
|
|
@@ -21,8 +22,8 @@ var sameHostInputRealpath = require('../inputs/sameHostInputRealpath.js');
|
|
|
21
22
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The pass borrows generation records and retains no map, handle or historical result.
|
|
22
23
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
23
24
|
* Materializes recorded target keys for the empty check, then scans external
|
|
24
|
-
* spellings until a mismatch. Predicate
|
|
25
|
-
* entries pay native identity
|
|
25
|
+
* spellings until a mismatch. Predicate and currently proven spellings skip
|
|
26
|
+
* legacy proof. Other entries pay native identity and realpath observation
|
|
26
27
|
* comparison, including uncached native components/case and path text.
|
|
27
28
|
* No source content or recursive directory enumeration is performed here.
|
|
28
29
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Complete snapshot admission owns shared proof and adoption; this pass contributes one physical-target verdict.
|
|
@@ -32,13 +33,17 @@ function matchesExternalInputRealpaths(
|
|
|
32
33
|
* Generation retaining legacy target witnesses and separately replayed
|
|
33
34
|
* predicates.
|
|
34
35
|
*/
|
|
35
|
-
cached
|
|
36
|
+
cached,
|
|
37
|
+
/** Whether this delivery's verified watcher proves this exact spelling. */
|
|
38
|
+
provenByWatch) {
|
|
36
39
|
const expected = cached.externalInputRealpaths;
|
|
37
40
|
if (expected === undefined || Object.keys(expected).length === 0)
|
|
38
41
|
return true;
|
|
39
42
|
const state = envelopeDerivation.envelopeDerivation(cached);
|
|
40
43
|
const filesystem = resultFilesystem.resultFilesystem(cached.result);
|
|
41
44
|
for (const input of cached.externalInputPaths ?? []) {
|
|
45
|
+
if (provenByWatch?.(input) === true)
|
|
46
|
+
continue;
|
|
42
47
|
if (cached.externalInputObservations?.[path.resolve(input)] !== undefined) {
|
|
43
48
|
continue;
|
|
44
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesExternalInputRealpaths.js","sources":["../../../../src/core/transform/validation/matchesExternalInputRealpaths.ts"],"sourcesContent":[null],"names":["envelopeDerivation","resultFilesystem","derivationIdentity","sameHostInputRealpath","hostInputRealpath"],"mappings":";;;;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"matchesExternalInputRealpaths.js","sources":["../../../../src/core/transform/validation/matchesExternalInputRealpaths.ts"],"sourcesContent":[null],"names":["envelopeDerivation","resultFilesystem","derivationIdentity","sameHostInputRealpath","hostInputRealpath"],"mappings":";;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,6BAA6B;AAC3C;;;AAGG;AACH,MAAkC;AAClC;AACA,aAAyC,EAAA;AAEzC,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,sBAAsB;AAC9C,IAAA,IAAI,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI;AAC7E,IAAA,MAAM,KAAK,GAAGA,qCAAkB,CAAC,MAAM,CAAC;IACxC,MAAM,UAAU,GAAGC,iCAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,kBAAkB,IAAI,EAAE,EAAE;AACnD,QAAA,IAAI,aAAa,GAAG,KAAK,CAAC,KAAK,IAAI;YAAE;AACrC,QAAA,IAAI,MAAM,CAAC,yBAAyB,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YACzE;QACF;QACA,MAAM,QAAQ,GAAGC,qCAAkB,CAAC,KAAK,EAAE,KAAK,CAAC;AACjD,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;YAAE;QAC/D,IACE,CAACC,2CAAqB,CACpB,QAAQ,CAAC,QAAQ,CAAC,EAClBC,mCAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EACpC,KAAK,CAAC,eAAe,CACtB,EACD;AACA,YAAA,OAAO,KAAK;QACd;IACF;AACA,IAAA,OAAO,IAAI;AACb;;;;"}
|
|
@@ -9,7 +9,8 @@ import { sameHostInputRealpath } from '../inputs/sameHostInputRealpath.mjs';
|
|
|
9
9
|
* Re-check graph-owned physical identities in complete-snapshot fallback.
|
|
10
10
|
*
|
|
11
11
|
* Predicate-bearing spellings are already replayed by their owning validator;
|
|
12
|
-
* this pass handles only
|
|
12
|
+
* this pass handles only legacy graph realpath witnesses outside the caller's
|
|
13
|
+
* verified host tracker coverage.
|
|
13
14
|
*
|
|
14
15
|
* @evidence contracts/common.md#principled-implementation Each recorded legacy physical target must still match under the generation's identity context; predicate observations retain their independent native semantics.
|
|
15
16
|
* @evidence contracts/common.md#clear-and-simple-design This pass owns only the physical half of legacy external snapshot fallback rather than duplicating predicate replay.
|
|
@@ -19,8 +20,8 @@ import { sameHostInputRealpath } from '../inputs/sameHostInputRealpath.mjs';
|
|
|
19
20
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The pass borrows generation records and retains no map, handle or historical result.
|
|
20
21
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
21
22
|
* Materializes recorded target keys for the empty check, then scans external
|
|
22
|
-
* spellings until a mismatch. Predicate
|
|
23
|
-
* entries pay native identity
|
|
23
|
+
* spellings until a mismatch. Predicate and currently proven spellings skip
|
|
24
|
+
* legacy proof. Other entries pay native identity and realpath observation
|
|
24
25
|
* comparison, including uncached native components/case and path text.
|
|
25
26
|
* No source content or recursive directory enumeration is performed here.
|
|
26
27
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Complete snapshot admission owns shared proof and adoption; this pass contributes one physical-target verdict.
|
|
@@ -30,13 +31,17 @@ function matchesExternalInputRealpaths(
|
|
|
30
31
|
* Generation retaining legacy target witnesses and separately replayed
|
|
31
32
|
* predicates.
|
|
32
33
|
*/
|
|
33
|
-
cached
|
|
34
|
+
cached,
|
|
35
|
+
/** Whether this delivery's verified watcher proves this exact spelling. */
|
|
36
|
+
provenByWatch) {
|
|
34
37
|
const expected = cached.externalInputRealpaths;
|
|
35
38
|
if (expected === undefined || Object.keys(expected).length === 0)
|
|
36
39
|
return true;
|
|
37
40
|
const state = envelopeDerivation(cached);
|
|
38
41
|
const filesystem = resultFilesystem(cached.result);
|
|
39
42
|
for (const input of cached.externalInputPaths ?? []) {
|
|
43
|
+
if (provenByWatch?.(input) === true)
|
|
44
|
+
continue;
|
|
40
45
|
if (cached.externalInputObservations?.[path.resolve(input)] !== undefined) {
|
|
41
46
|
continue;
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesExternalInputRealpaths.mjs","sources":["../../../../src/core/transform/validation/matchesExternalInputRealpaths.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"matchesExternalInputRealpaths.mjs","sources":["../../../../src/core/transform/validation/matchesExternalInputRealpaths.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AASA;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,6BAA6B;AAC3C;;;AAGG;AACH,MAAkC;AAClC;AACA,aAAyC,EAAA;AAEzC,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,sBAAsB;AAC9C,IAAA,IAAI,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI;AAC7E,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACxC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,kBAAkB,IAAI,EAAE,EAAE;AACnD,QAAA,IAAI,aAAa,GAAG,KAAK,CAAC,KAAK,IAAI;YAAE;AACrC,QAAA,IAAI,MAAM,CAAC,yBAAyB,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YACzE;QACF;QACA,MAAM,QAAQ,GAAG,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC;AACjD,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC;YAAE;QAC/D,IACE,CAAC,qBAAqB,CACpB,QAAQ,CAAC,QAAQ,CAAC,EAClB,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EACpC,KAAK,CAAC,eAAe,CACtB,EACD;AACA,YAAA,OAAO,KAAK;QACd;IACF;AACA,IAAA,OAAO,IAAI;AACb;;;;"}
|
|
@@ -30,8 +30,11 @@ import type { TtscGenerationProof } from "./TtscGenerationProof.cjs";
|
|
|
30
30
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
31
31
|
* Immutable envelope selections, universal manifests and currently qualified
|
|
32
32
|
* per-input signatures serve sibling deliveries. Universal validation is
|
|
33
|
-
* invoked on each call
|
|
34
|
-
*
|
|
33
|
+
* invoked on each call. Quiet authoritative scopes let sibling deliveries
|
|
34
|
+
* share the exact coverage decision. A candidate watcher only proves a
|
|
35
|
+
* recorded file-unavailability predicate. The native gate has already
|
|
36
|
+
* replayed direct external inputs. Other unproven inputs need the module's
|
|
37
|
+
* own selection.
|
|
35
38
|
*/
|
|
36
39
|
export declare function matchesNarrowPersistentInputs(
|
|
37
40
|
/**
|
|
@@ -30,8 +30,11 @@ import type { TtscGenerationProof } from "./TtscGenerationProof.mjs";
|
|
|
30
30
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
31
31
|
* Immutable envelope selections, universal manifests and currently qualified
|
|
32
32
|
* per-input signatures serve sibling deliveries. Universal validation is
|
|
33
|
-
* invoked on each call
|
|
34
|
-
*
|
|
33
|
+
* invoked on each call. Quiet authoritative scopes let sibling deliveries
|
|
34
|
+
* share the exact coverage decision. A candidate watcher only proves a
|
|
35
|
+
* recorded file-unavailability predicate. The native gate has already
|
|
36
|
+
* replayed direct external inputs. Other unproven inputs need the module's
|
|
37
|
+
* own selection.
|
|
35
38
|
*/
|
|
36
39
|
export declare function matchesNarrowPersistentInputs(
|
|
37
40
|
/**
|
|
@@ -30,8 +30,11 @@ import type { TtscGenerationProof } from "./TtscGenerationProof";
|
|
|
30
30
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
31
31
|
* Immutable envelope selections, universal manifests and currently qualified
|
|
32
32
|
* per-input signatures serve sibling deliveries. Universal validation is
|
|
33
|
-
* invoked on each call
|
|
34
|
-
*
|
|
33
|
+
* invoked on each call. Quiet authoritative scopes let sibling deliveries
|
|
34
|
+
* share the exact coverage decision. A candidate watcher only proves a
|
|
35
|
+
* recorded file-unavailability predicate. The native gate has already
|
|
36
|
+
* replayed direct external inputs. Other unproven inputs need the module's
|
|
37
|
+
* own selection.
|
|
35
38
|
*/
|
|
36
39
|
export declare function matchesNarrowPersistentInputs(
|
|
37
40
|
/**
|
|
@@ -5,9 +5,11 @@ var envelopeDerivation = require('../envelope/envelopeDerivation.js');
|
|
|
5
5
|
var selectWatchInputs = require('../envelope/selectWatchInputs.js');
|
|
6
6
|
var notificationsProveMembership = require('../tracker/notificationsProveMembership.js');
|
|
7
7
|
var reportsMembershipChange = require('../tracker/reportsMembershipChange.js');
|
|
8
|
+
var generationWatchInputs = require('../watch/generationWatchInputs.js');
|
|
8
9
|
var matchesProvenInput = require('./matchesProvenInput.js');
|
|
9
10
|
var matchesUniversalHostInputs = require('./matchesUniversalHostInputs.js');
|
|
10
11
|
|
|
12
|
+
const uncoveredInputs = new WeakMap();
|
|
11
13
|
/**
|
|
12
14
|
* Validate one graph-bearing cached output against only the inputs that can
|
|
13
15
|
* affect that file. The delivery validator establishes its complete baseline
|
|
@@ -38,8 +40,11 @@ var matchesUniversalHostInputs = require('./matchesUniversalHostInputs.js');
|
|
|
38
40
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
39
41
|
* Immutable envelope selections, universal manifests and currently qualified
|
|
40
42
|
* per-input signatures serve sibling deliveries. Universal validation is
|
|
41
|
-
* invoked on each call
|
|
42
|
-
*
|
|
43
|
+
* invoked on each call. Quiet authoritative scopes let sibling deliveries
|
|
44
|
+
* share the exact coverage decision. A candidate watcher only proves a
|
|
45
|
+
* recorded file-unavailability predicate. The native gate has already
|
|
46
|
+
* replayed direct external inputs. Other unproven inputs need the module's
|
|
47
|
+
* own selection.
|
|
43
48
|
*/
|
|
44
49
|
function matchesNarrowPersistentInputs(
|
|
45
50
|
/**
|
|
@@ -63,6 +68,46 @@ file, proof) {
|
|
|
63
68
|
if (!matchesUniversalHostInputs.matchesUniversalHostInputs(cached, hostValidation, proof)) {
|
|
64
69
|
return false;
|
|
65
70
|
}
|
|
71
|
+
const verified = proof?.cached === cached &&
|
|
72
|
+
proof.groupedWatchInputs === true &&
|
|
73
|
+
proof.locations !== undefined;
|
|
74
|
+
const project = verified
|
|
75
|
+
? quietCoverage(cached.projectMutationTracker)
|
|
76
|
+
: undefined;
|
|
77
|
+
const host = verified
|
|
78
|
+
? quietCoverage(cached.hostInputMutationTracker)
|
|
79
|
+
: undefined;
|
|
80
|
+
const candidate = verified
|
|
81
|
+
? quietCoverage(cached.candidateMutationTracker)
|
|
82
|
+
: undefined;
|
|
83
|
+
if (project !== undefined || host !== undefined || candidate !== undefined) {
|
|
84
|
+
let uncovered = uncoveredInputs.get(cached);
|
|
85
|
+
if (uncovered === undefined ||
|
|
86
|
+
uncovered.project !== project ||
|
|
87
|
+
uncovered.host !== host ||
|
|
88
|
+
uncovered.candidate !== candidate) {
|
|
89
|
+
const direct = new Set(cached.directExternalInputs);
|
|
90
|
+
uncovered = {
|
|
91
|
+
project,
|
|
92
|
+
host,
|
|
93
|
+
candidate,
|
|
94
|
+
complete: generationWatchInputs.generationWatchInputs(cached).every(({ file }) => {
|
|
95
|
+
if (hostValidation.covered.has(file) ||
|
|
96
|
+
project?.has(file) ||
|
|
97
|
+
host?.has(file) ||
|
|
98
|
+
direct.has(file))
|
|
99
|
+
return true;
|
|
100
|
+
const observation = cached.externalInputObservations?.[file];
|
|
101
|
+
return (candidate?.has(file) === true &&
|
|
102
|
+
observation?.fileExists === false &&
|
|
103
|
+
Object.keys(observation).length === 1);
|
|
104
|
+
}),
|
|
105
|
+
};
|
|
106
|
+
uncoveredInputs.set(cached, uncovered);
|
|
107
|
+
}
|
|
108
|
+
if (uncovered.complete)
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
66
111
|
const inputs = selectWatchInputs.selectWatchInputs({
|
|
67
112
|
file,
|
|
68
113
|
projectRoot: cached.projectRoot,
|
|
@@ -83,6 +128,21 @@ file, proof) {
|
|
|
83
128
|
}
|
|
84
129
|
return true;
|
|
85
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Covered spellings can stand for the whole quiet scope after its current
|
|
133
|
+
* location and notification checks.
|
|
134
|
+
*/
|
|
135
|
+
function quietCoverage(tracker) {
|
|
136
|
+
return tracker?.contentAuthoritative === true &&
|
|
137
|
+
!tracker.failed &&
|
|
138
|
+
!tracker.unverified &&
|
|
139
|
+
!tracker.changesOmitted &&
|
|
140
|
+
!tracker.membershipChanged &&
|
|
141
|
+
tracker.changes.size === 0 &&
|
|
142
|
+
(tracker.unproven?.size ?? 0) === 0
|
|
143
|
+
? tracker.covered
|
|
144
|
+
: undefined;
|
|
145
|
+
}
|
|
86
146
|
|
|
87
147
|
exports.matchesNarrowPersistentInputs = matchesNarrowPersistentInputs;
|
|
88
148
|
//# sourceMappingURL=matchesNarrowPersistentInputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesNarrowPersistentInputs.js","sources":["../../../../src/core/transform/validation/matchesNarrowPersistentInputs.ts"],"sourcesContent":[null],"names":["reportsMembershipChange","notificationsProveMembership","envelopeDerivation","matchesUniversalHostInputs","selectWatchInputs","matchesProvenInput"],"mappings":"
|
|
1
|
+
{"version":3,"file":"matchesNarrowPersistentInputs.js","sources":["../../../../src/core/transform/validation/matchesNarrowPersistentInputs.ts"],"sourcesContent":[null],"names":["reportsMembershipChange","notificationsProveMembership","envelopeDerivation","matchesUniversalHostInputs","generationWatchInputs","selectWatchInputs","matchesProvenInput"],"mappings":";;;;;;;;;;;AAaA,MAAM,eAAe,GAAG,IAAI,OAAO,EAQhC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCG;SACa,6BAA6B;AAC3C;;;AAGG;AACH,MAAkC;AAClC;AACA,IAAY,EACZ,KAAuC,EAAA;AAEvC,IAAA,IAAIA,+CAAuB,CAAC,MAAM,CAAC,EAAE;AACnC,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,CAACC,yDAA4B,CAAC,MAAM,CAAC,EAAE;AACzC,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,MAAM,KAAK,GAAGC,qCAAkB,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB;AACjD,IAAA,IAAI,cAAc,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AAC,OAAO,CAAC,IAAI,KAAK,CAAC;QAC1B,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,MAAM;UAChC,OAAO,CAAC;UACR,SAAS;AACf;;;;"}
|
|
@@ -3,9 +3,11 @@ import { envelopeDerivation } from '../envelope/envelopeDerivation.mjs';
|
|
|
3
3
|
import { selectWatchInputs } from '../envelope/selectWatchInputs.mjs';
|
|
4
4
|
import { notificationsProveMembership } from '../tracker/notificationsProveMembership.mjs';
|
|
5
5
|
import { reportsMembershipChange } from '../tracker/reportsMembershipChange.mjs';
|
|
6
|
+
import { generationWatchInputs } from '../watch/generationWatchInputs.mjs';
|
|
6
7
|
import { matchesProvenInput } from './matchesProvenInput.mjs';
|
|
7
8
|
import { matchesUniversalHostInputs } from './matchesUniversalHostInputs.mjs';
|
|
8
9
|
|
|
10
|
+
const uncoveredInputs = new WeakMap();
|
|
9
11
|
/**
|
|
10
12
|
* Validate one graph-bearing cached output against only the inputs that can
|
|
11
13
|
* affect that file. The delivery validator establishes its complete baseline
|
|
@@ -36,8 +38,11 @@ import { matchesUniversalHostInputs } from './matchesUniversalHostInputs.mjs';
|
|
|
36
38
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
37
39
|
* Immutable envelope selections, universal manifests and currently qualified
|
|
38
40
|
* per-input signatures serve sibling deliveries. Universal validation is
|
|
39
|
-
* invoked on each call
|
|
40
|
-
*
|
|
41
|
+
* invoked on each call. Quiet authoritative scopes let sibling deliveries
|
|
42
|
+
* share the exact coverage decision. A candidate watcher only proves a
|
|
43
|
+
* recorded file-unavailability predicate. The native gate has already
|
|
44
|
+
* replayed direct external inputs. Other unproven inputs need the module's
|
|
45
|
+
* own selection.
|
|
41
46
|
*/
|
|
42
47
|
function matchesNarrowPersistentInputs(
|
|
43
48
|
/**
|
|
@@ -61,6 +66,46 @@ file, proof) {
|
|
|
61
66
|
if (!matchesUniversalHostInputs(cached, hostValidation, proof)) {
|
|
62
67
|
return false;
|
|
63
68
|
}
|
|
69
|
+
const verified = proof?.cached === cached &&
|
|
70
|
+
proof.groupedWatchInputs === true &&
|
|
71
|
+
proof.locations !== undefined;
|
|
72
|
+
const project = verified
|
|
73
|
+
? quietCoverage(cached.projectMutationTracker)
|
|
74
|
+
: undefined;
|
|
75
|
+
const host = verified
|
|
76
|
+
? quietCoverage(cached.hostInputMutationTracker)
|
|
77
|
+
: undefined;
|
|
78
|
+
const candidate = verified
|
|
79
|
+
? quietCoverage(cached.candidateMutationTracker)
|
|
80
|
+
: undefined;
|
|
81
|
+
if (project !== undefined || host !== undefined || candidate !== undefined) {
|
|
82
|
+
let uncovered = uncoveredInputs.get(cached);
|
|
83
|
+
if (uncovered === undefined ||
|
|
84
|
+
uncovered.project !== project ||
|
|
85
|
+
uncovered.host !== host ||
|
|
86
|
+
uncovered.candidate !== candidate) {
|
|
87
|
+
const direct = new Set(cached.directExternalInputs);
|
|
88
|
+
uncovered = {
|
|
89
|
+
project,
|
|
90
|
+
host,
|
|
91
|
+
candidate,
|
|
92
|
+
complete: generationWatchInputs(cached).every(({ file }) => {
|
|
93
|
+
if (hostValidation.covered.has(file) ||
|
|
94
|
+
project?.has(file) ||
|
|
95
|
+
host?.has(file) ||
|
|
96
|
+
direct.has(file))
|
|
97
|
+
return true;
|
|
98
|
+
const observation = cached.externalInputObservations?.[file];
|
|
99
|
+
return (candidate?.has(file) === true &&
|
|
100
|
+
observation?.fileExists === false &&
|
|
101
|
+
Object.keys(observation).length === 1);
|
|
102
|
+
}),
|
|
103
|
+
};
|
|
104
|
+
uncoveredInputs.set(cached, uncovered);
|
|
105
|
+
}
|
|
106
|
+
if (uncovered.complete)
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
64
109
|
const inputs = selectWatchInputs({
|
|
65
110
|
file,
|
|
66
111
|
projectRoot: cached.projectRoot,
|
|
@@ -81,6 +126,21 @@ file, proof) {
|
|
|
81
126
|
}
|
|
82
127
|
return true;
|
|
83
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Covered spellings can stand for the whole quiet scope after its current
|
|
131
|
+
* location and notification checks.
|
|
132
|
+
*/
|
|
133
|
+
function quietCoverage(tracker) {
|
|
134
|
+
return tracker?.contentAuthoritative === true &&
|
|
135
|
+
!tracker.failed &&
|
|
136
|
+
!tracker.unverified &&
|
|
137
|
+
!tracker.changesOmitted &&
|
|
138
|
+
!tracker.membershipChanged &&
|
|
139
|
+
tracker.changes.size === 0 &&
|
|
140
|
+
(tracker.unproven?.size ?? 0) === 0
|
|
141
|
+
? tracker.covered
|
|
142
|
+
: undefined;
|
|
143
|
+
}
|
|
84
144
|
|
|
85
145
|
export { matchesNarrowPersistentInputs };
|
|
86
146
|
//# sourceMappingURL=matchesNarrowPersistentInputs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesNarrowPersistentInputs.mjs","sources":["../../../../src/core/transform/validation/matchesNarrowPersistentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"matchesNarrowPersistentInputs.mjs","sources":["../../../../src/core/transform/validation/matchesNarrowPersistentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAaA,MAAM,eAAe,GAAG,IAAI,OAAO,EAQhC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCG;SACa,6BAA6B;AAC3C;;;AAGG;AACH,MAAkC;AAClC;AACA,IAAY,EACZ,KAAuC,EAAA;AAEvC,IAAA,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE;AACnC,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,CAAC,4BAA4B,CAAC,MAAM,CAAC,EAAE;AACzC,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB;AACjD,IAAA,IAAI,cAAc,KAAK,SAAS,EAAE;AAChC,QAAA,O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;QAC1B,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,MAAM;UAChC,OAAO,CAAC;UACR,SAAS;AACf;;;;"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform.cjs";
|
|
2
2
|
import type { TtscGenerationProof } from "./TtscGenerationProof.cjs";
|
|
3
3
|
/**
|
|
4
|
-
* Validate
|
|
5
|
-
* This check also applies when
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Validate generation-owned native config predicates and directly observed
|
|
5
|
+
* external names before cache reuse. This check also applies when
|
|
6
|
+
* notification/epoch shortcuts admit other inputs. A generation with neither
|
|
7
|
+
* source of input requires no native replay context. Other proof owners still
|
|
8
|
+
* perform their own validation.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/common.md#principled-implementation Every recorded native predicate must match through the generation's
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation Every recorded native predicate and each external name deliberately left to direct validation must match through the generation's filesystem view before reuse.
|
|
10
11
|
* @evidence contracts/common.md#clear-and-simple-design One gate is shared by source, complete-snapshot and universal-input admission; the typed replay owns encodings and native errors.
|
|
11
12
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Metadata and notification shortcuts cannot omit typed config predicates or repair an unstable producer witness.
|
|
12
13
|
* @evidence contracts/common.md#meaningful-documentation The comment identifies generation ownership and the admission shortcuts that must retain this gate.
|
|
13
14
|
* @evidence contracts/portability.md#os-neutral-implementation Relative names are resolved against the recorded project with the filesystem view's path dialect; native identity and encoding belong to the replay operation.
|
|
14
|
-
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each
|
|
15
|
+
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each synchronous admission replays the selected external names and indexed native predicates, stopping at the first refusal. Nested validators share its verdict without another scan or native query.
|
|
15
16
|
* @evidence contracts/performance.md#reuse-equivalent-work A weak observation index shares immutable membership. Current verdicts belong only to an exact-owner synchronous transaction, never the next delivery or an await.
|
|
16
17
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The weak index follows immutable observation lifetime; synchronous verdicts and native queries acquire no handle or history.
|
|
17
18
|
*/
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform.mjs";
|
|
2
2
|
import type { TtscGenerationProof } from "./TtscGenerationProof.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* Validate
|
|
5
|
-
* This check also applies when
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Validate generation-owned native config predicates and directly observed
|
|
5
|
+
* external names before cache reuse. This check also applies when
|
|
6
|
+
* notification/epoch shortcuts admit other inputs. A generation with neither
|
|
7
|
+
* source of input requires no native replay context. Other proof owners still
|
|
8
|
+
* perform their own validation.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/common.md#principled-implementation Every recorded native predicate must match through the generation's
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation Every recorded native predicate and each external name deliberately left to direct validation must match through the generation's filesystem view before reuse.
|
|
10
11
|
* @evidence contracts/common.md#clear-and-simple-design One gate is shared by source, complete-snapshot and universal-input admission; the typed replay owns encodings and native errors.
|
|
11
12
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Metadata and notification shortcuts cannot omit typed config predicates or repair an unstable producer witness.
|
|
12
13
|
* @evidence contracts/common.md#meaningful-documentation The comment identifies generation ownership and the admission shortcuts that must retain this gate.
|
|
13
14
|
* @evidence contracts/portability.md#os-neutral-implementation Relative names are resolved against the recorded project with the filesystem view's path dialect; native identity and encoding belong to the replay operation.
|
|
14
|
-
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each
|
|
15
|
+
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each synchronous admission replays the selected external names and indexed native predicates, stopping at the first refusal. Nested validators share its verdict without another scan or native query.
|
|
15
16
|
* @evidence contracts/performance.md#reuse-equivalent-work A weak observation index shares immutable membership. Current verdicts belong only to an exact-owner synchronous transaction, never the next delivery or an await.
|
|
16
17
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The weak index follows immutable observation lifetime; synchronous verdicts and native queries acquire no handle or history.
|
|
17
18
|
*/
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform";
|
|
2
2
|
import type { TtscGenerationProof } from "./TtscGenerationProof";
|
|
3
3
|
/**
|
|
4
|
-
* Validate
|
|
5
|
-
* This check also applies when
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Validate generation-owned native config predicates and directly observed
|
|
5
|
+
* external names before cache reuse. This check also applies when
|
|
6
|
+
* notification/epoch shortcuts admit other inputs. A generation with neither
|
|
7
|
+
* source of input requires no native replay context. Other proof owners still
|
|
8
|
+
* perform their own validation.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/common.md#principled-implementation Every recorded native predicate must match through the generation's
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation Every recorded native predicate and each external name deliberately left to direct validation must match through the generation's filesystem view before reuse.
|
|
10
11
|
* @evidence contracts/common.md#clear-and-simple-design One gate is shared by source, complete-snapshot and universal-input admission; the typed replay owns encodings and native errors.
|
|
11
12
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Metadata and notification shortcuts cannot omit typed config predicates or repair an unstable producer witness.
|
|
12
13
|
* @evidence contracts/common.md#meaningful-documentation The comment identifies generation ownership and the admission shortcuts that must retain this gate.
|
|
13
14
|
* @evidence contracts/portability.md#os-neutral-implementation Relative names are resolved against the recorded project with the filesystem view's path dialect; native identity and encoding belong to the replay operation.
|
|
14
|
-
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each
|
|
15
|
+
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each synchronous admission replays the selected external names and indexed native predicates, stopping at the first refusal. Nested validators share its verdict without another scan or native query.
|
|
15
16
|
* @evidence contracts/performance.md#reuse-equivalent-work A weak observation index shares immutable membership. Current verdicts belong only to an exact-owner synchronous transaction, never the next delivery or an await.
|
|
16
17
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The weak index follows immutable observation lifetime; synchronous verdicts and native queries acquire no handle or history.
|
|
17
18
|
*/
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var path = require('node:path');
|
|
4
|
+
var pluginSource = require('ttsc/plugin-source');
|
|
4
5
|
var resultFilesystem = require('../cache/resultFilesystem.js');
|
|
5
6
|
var envelopeDerivation = require('../envelope/envelopeDerivation.js');
|
|
6
7
|
var nativeInputPredicateMatches = require('../inputs/nativeInputPredicateMatches.js');
|
|
8
|
+
var matchesRecordedInput = require('./matchesRecordedInput.js');
|
|
7
9
|
|
|
8
10
|
// Weakly owned by immutable observation membership, never by current verdict.
|
|
9
11
|
// Keeping this separate from native path derivation also preserves the empty
|
|
10
12
|
// predicate gate's promise to perform no native identity observations.
|
|
11
13
|
const predicateInputs = new WeakMap();
|
|
12
14
|
/**
|
|
13
|
-
* Validate
|
|
14
|
-
* This check also applies when
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Validate generation-owned native config predicates and directly observed
|
|
16
|
+
* external names before cache reuse. This check also applies when
|
|
17
|
+
* notification/epoch shortcuts admit other inputs. A generation with neither
|
|
18
|
+
* source of input requires no native replay context. Other proof owners still
|
|
19
|
+
* perform their own validation.
|
|
17
20
|
*
|
|
18
|
-
* @evidence contracts/common.md#principled-implementation Every recorded native predicate must match through the generation's
|
|
21
|
+
* @evidence contracts/common.md#principled-implementation Every recorded native predicate and each external name deliberately left to direct validation must match through the generation's filesystem view before reuse.
|
|
19
22
|
* @evidence contracts/common.md#clear-and-simple-design One gate is shared by source, complete-snapshot and universal-input admission; the typed replay owns encodings and native errors.
|
|
20
23
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Metadata and notification shortcuts cannot omit typed config predicates or repair an unstable producer witness.
|
|
21
24
|
* @evidence contracts/common.md#meaningful-documentation The comment identifies generation ownership and the admission shortcuts that must retain this gate.
|
|
22
25
|
* @evidence contracts/portability.md#os-neutral-implementation Relative names are resolved against the recorded project with the filesystem view's path dialect; native identity and encoding belong to the replay operation.
|
|
23
|
-
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each
|
|
26
|
+
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each synchronous admission replays the selected external names and indexed native predicates, stopping at the first refusal. Nested validators share its verdict without another scan or native query.
|
|
24
27
|
* @evidence contracts/performance.md#reuse-equivalent-work A weak observation index shares immutable membership. Current verdicts belong only to an exact-owner synchronous transaction, never the next delivery or an await.
|
|
25
28
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The weak index follows immutable observation lifetime; synchronous verdicts and native queries acquire no handle or history.
|
|
26
29
|
*/
|
|
@@ -37,6 +40,13 @@ function nativeInputPredicatesHold(cached, proof) {
|
|
|
37
40
|
proof.nativePredicates = matches;
|
|
38
41
|
return matches;
|
|
39
42
|
};
|
|
43
|
+
for (const file of cached.directExternalInputs ?? []) {
|
|
44
|
+
if (!matchesRecordedInput.matchesRecordedInput(cached, file))
|
|
45
|
+
return finish(false);
|
|
46
|
+
}
|
|
47
|
+
for (const state of Object.values(cached.result.workspaceInputs ?? {}))
|
|
48
|
+
if (!pluginSource.PluginBuildEnvironmentWitness.holds(state.entries))
|
|
49
|
+
return finish(false);
|
|
40
50
|
const observations = cached.result.graph?.inputObservations;
|
|
41
51
|
if (observations === undefined)
|
|
42
52
|
return finish(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeInputPredicatesHold.js","sources":["../../../../src/core/transform/validation/nativeInputPredicatesHold.ts"],"sourcesContent":[null],"names":["resultFilesystem","envelopeDerivation","nativeInputPredicateMatches"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeInputPredicatesHold.js","sources":["../../../../src/core/transform/validation/nativeInputPredicatesHold.ts"],"sourcesContent":[null],"names":["matchesRecordedInput","PluginBuildEnvironmentWitness","resultFilesystem","envelopeDerivation","nativeInputPredicateMatches"],"mappings":";;;;;;;;;AAWA;AACA;AACA;AACA,MAAM,eAAe,GAAG,IAAI,OAAO,EAGhC;AAEH;;;;;;;;;;;;;;;AAeG;AACG,SAAU,yBAAyB,CACvC,MAAkC,EAClC,KAAuC,EAAA;AAEvC,IAAA,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;IACpD,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS;QAClE,OAAO,KAAK,CAAC,gBAAgB;;;;AAI/B,IAAA,MAAM,MAAM,GAAG,CAAC,OAAgB,KAAa;AAC3C,QAAA,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM;AAAE,YAAA,KAAK,CAAC,gBAAgB,GAAG,OAAO;AAC9D,QAAA,OAAO,OAAO;AAChB,IAAA,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,oBAAoB,IAAI,EAAE,EAAE;AACpD,QAAA,IAAI,CAACA,yCAAoB,CAAC,MAAM,EAAE,IAAI,CAAC;AAAE,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC;IAC/D;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QACpE,IAAI,CAACC,0CAA6B,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;AACrD,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC;IACxB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,iBAAiB;IAC3D,IAAI,YAAY,KAAK,SAAS;A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