@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,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
|
+
var privateProjectRecordAvailable = require('../bridge/privateProjectRecordAvailable.js');
|
|
4
5
|
var projectRecordDigest = require('../bridge/projectRecordDigest.js');
|
|
5
6
|
var refreshProjectRecordFile = require('../bridge/refreshProjectRecordFile.js');
|
|
6
7
|
|
|
@@ -28,12 +29,15 @@ var refreshProjectRecordFile = require('../bridge/refreshProjectRecordFile.js');
|
|
|
28
29
|
* An owned module carrying no delivery, or one no cache may serve, runs again,
|
|
29
30
|
* since nothing proves its output.
|
|
30
31
|
*
|
|
31
|
-
* A record read is cached
|
|
32
|
-
* or a first proof attempt invalidates it.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
32
|
+
* A record read is cached by path and storage policy, including unavailable
|
|
33
|
+
* results, until begin clears it or a first proof attempt invalidates it.
|
|
34
|
+
* Deliveries replace the saved digest for their own policy with their recorded
|
|
35
|
+
* bytes and invalidate the other policy's digest. A later judgment need not
|
|
36
|
+
* reread a record moved by another process in mid-build; the next pass observes
|
|
37
|
+
* it. A changed proves callback can invalidate an already read digest within
|
|
38
|
+
* this pass. A failed managed invalidation prevents reuse for the rest of the
|
|
39
|
+
* pass unless a delivery under that policy updates the record. Reading the same
|
|
40
|
+
* path under another policy leaves this refusal in place.
|
|
37
41
|
*
|
|
38
42
|
* @param name The plugin's name, the key of its entry in a module's `meta`.
|
|
39
43
|
* @param includes Whether the adapter transforms a module id.
|
|
@@ -41,51 +45,46 @@ var refreshProjectRecordFile = require('../bridge/refreshProjectRecordFile.js');
|
|
|
41
45
|
* (`rollupDeliveryOptions`).
|
|
42
46
|
* @param proves Whether the build proves the records its cached modules name,
|
|
43
47
|
* which a build without a watching session's bridge does.
|
|
44
|
-
* @evidence contracts/common.md#principled-implementation Adapter-owned modules compare options and pass-observed record digest; matching record-less metadata follows the no-project rule. Missing delivery, malformed
|
|
48
|
+
* @evidence contracts/common.md#principled-implementation Adapter-owned modules compare options and pass-observed record digest; matching record-less metadata follows the no-project rule. Missing delivery, malformed or unreadable records, and a failed managed invalidation request retransformation.
|
|
45
49
|
* @evidence contracts/common.md#clear-and-simple-design Per-pass proven and digest tables back the existing begin/deliver/moved interface; shared record refresh owns filesystem-state proof.
|
|
46
50
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts The adapter uses the host retransformation hook without patching its cache or inventing a record when no proof exists.
|
|
47
51
|
* @evidence contracts/common.md#meaningful-documentation Paragraphs explain optional record refresh, pass observation reuse and invalidation, including callback failure and record-less delivery semantics.
|
|
48
52
|
* @evidence contracts/portability.md#os-neutral-implementation OS-neutral record access uses producer-supplied native paths and the shared native record refresh operation, without universal path case normalization or fixed storage directories.
|
|
49
53
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
50
54
|
* Judgment adds module filtering, current-option work and metadata/text
|
|
51
|
-
* comparison. Each lexical record gets one refresh attempt per pass, including
|
|
55
|
+
* comparison. Each lexical record and storage policy gets one refresh attempt per pass, including
|
|
52
56
|
* native input/walk/record I/O work. Digest reads/hash follow record bytes
|
|
53
57
|
* and can repeat after proof invalidation; delivery updates avoid a reread.
|
|
54
58
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
55
|
-
* Modules with the same lexical record reuse a pass's refresh attempt and
|
|
59
|
+
* Modules with the same lexical record and storage policy reuse a pass's refresh attempt and
|
|
56
60
|
* observed digest. Begin ends the window; first refresh invalidates an older
|
|
57
61
|
* read and delivery updates the digest. Quiet mid-pass observation is a
|
|
58
62
|
* defined reuse window, not independently fresh native state for every module.
|
|
59
63
|
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
60
64
|
* The returned proof owner retains attempted keys and optional digests for R
|
|
61
65
|
* lexical records until begin clears them or the owner becomes unreachable.
|
|
62
|
-
* There is no count/byte cap within a pass or dedicated close.
|
|
63
|
-
*
|
|
66
|
+
* There is no count/byte cap within a pass or dedicated close. A failed
|
|
67
|
+
* managed refresh stores an unavailable result until reset or delivery. No
|
|
68
|
+
* native handle or task is held.
|
|
64
69
|
*/
|
|
65
70
|
function createRollupCachedModuleProof(name, includes, options, proves) {
|
|
66
|
-
const proven = new
|
|
71
|
+
const proven = new Map();
|
|
67
72
|
const digests = new Map();
|
|
68
|
-
const
|
|
69
|
-
if (digests.has(record))
|
|
70
|
-
return digests.get(record);
|
|
71
|
-
let digest;
|
|
72
|
-
try {
|
|
73
|
-
digest = projectRecordDigest.projectRecordDigest(fs.readFileSync(record));
|
|
74
|
-
}
|
|
75
|
-
catch {
|
|
76
|
-
// A record that cannot be read proves nothing.
|
|
77
|
-
}
|
|
78
|
-
digests.set(record, digest);
|
|
79
|
-
return digest;
|
|
80
|
-
};
|
|
73
|
+
const keyOf = (file, privateStorage) => (privateStorage === true ? "1" : "0") + file;
|
|
81
74
|
return {
|
|
82
75
|
begin: () => {
|
|
83
76
|
proven.clear();
|
|
84
77
|
digests.clear();
|
|
85
78
|
},
|
|
86
79
|
deliver: (delivery) => {
|
|
87
|
-
if (delivery?.record !== undefined)
|
|
88
|
-
|
|
80
|
+
if (delivery?.record !== undefined) {
|
|
81
|
+
const { file, digest, privateStorage } = delivery.record;
|
|
82
|
+
const key = keyOf(file, privateStorage);
|
|
83
|
+
if (proven.get(key) === false)
|
|
84
|
+
proven.set(key, true);
|
|
85
|
+
digests.set(key, digest);
|
|
86
|
+
digests.delete(keyOf(file, privateStorage !== true));
|
|
87
|
+
}
|
|
89
88
|
return { [name]: delivery };
|
|
90
89
|
},
|
|
91
90
|
moved: ({ id, meta }) => {
|
|
@@ -96,17 +95,47 @@ function createRollupCachedModuleProof(name, includes, options, proves) {
|
|
|
96
95
|
return true;
|
|
97
96
|
if (delivery.record === undefined)
|
|
98
97
|
return false;
|
|
99
|
-
const { digest, file } = (delivery.record ??
|
|
98
|
+
const { digest, file, privateStorage } = (delivery.record ??
|
|
99
|
+
{});
|
|
100
100
|
if (typeof file !== "string" || typeof digest !== "string")
|
|
101
101
|
return true;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
const key = keyOf(file, privateStorage);
|
|
103
|
+
if (proven.get(key) === false)
|
|
104
|
+
return true;
|
|
105
|
+
if (proves() && !proven.has(key)) {
|
|
106
|
+
proven.set(key, true);
|
|
105
107
|
// What a delivery of this build wrote is what the proof ran over, and
|
|
106
108
|
// a move it made is read from the file.
|
|
107
|
-
digests.delete(
|
|
109
|
+
digests.delete(key);
|
|
110
|
+
digests.delete(keyOf(file, privateStorage !== true));
|
|
111
|
+
try {
|
|
112
|
+
const refreshed = refreshProjectRecordFile.refreshProjectRecordFile(file, undefined, undefined, undefined, privateStorage === true, privateStorage === true);
|
|
113
|
+
if (refreshed === false) {
|
|
114
|
+
proven.set(key, false);
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
if (privateStorage !== true)
|
|
120
|
+
throw error;
|
|
121
|
+
// A failed managed signal can leave exactly the stale digest the
|
|
122
|
+
// host cached. Refuse that record for this pass.
|
|
123
|
+
proven.set(key, false);
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (!digests.has(key)) {
|
|
128
|
+
let observed;
|
|
129
|
+
try {
|
|
130
|
+
if (privateStorage !== true || privateProjectRecordAvailable.privateProjectRecordAvailable(file))
|
|
131
|
+
observed = projectRecordDigest.projectRecordDigest(fs.readFileSync(file));
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
// A record that cannot be read proves nothing.
|
|
135
|
+
}
|
|
136
|
+
digests.set(key, observed);
|
|
108
137
|
}
|
|
109
|
-
return
|
|
138
|
+
return digests.get(key) !== digest;
|
|
110
139
|
},
|
|
111
140
|
};
|
|
112
141
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRollupCachedModuleProof.js","sources":["../../../src/core/rollup/createRollupCachedModuleProof.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"createRollupCachedModuleProof.js","sources":["../../../src/core/rollup/createRollupCachedModuleProof.ts"],"sourcesContent":[null],"names":["refreshProjectRecordFile","privateProjectRecordAvailable","projectRecordDigest"],"mappings":"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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
+
import { privateProjectRecordAvailable } from '../bridge/privateProjectRecordAvailable.mjs';
|
|
2
3
|
import { projectRecordDigest } from '../bridge/projectRecordDigest.mjs';
|
|
3
4
|
import { refreshProjectRecordFile } from '../bridge/refreshProjectRecordFile.mjs';
|
|
4
5
|
|
|
@@ -26,12 +27,15 @@ import { refreshProjectRecordFile } from '../bridge/refreshProjectRecordFile.mjs
|
|
|
26
27
|
* An owned module carrying no delivery, or one no cache may serve, runs again,
|
|
27
28
|
* since nothing proves its output.
|
|
28
29
|
*
|
|
29
|
-
* A record read is cached
|
|
30
|
-
* or a first proof attempt invalidates it.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* A record read is cached by path and storage policy, including unavailable
|
|
31
|
+
* results, until begin clears it or a first proof attempt invalidates it.
|
|
32
|
+
* Deliveries replace the saved digest for their own policy with their recorded
|
|
33
|
+
* bytes and invalidate the other policy's digest. A later judgment need not
|
|
34
|
+
* reread a record moved by another process in mid-build; the next pass observes
|
|
35
|
+
* it. A changed proves callback can invalidate an already read digest within
|
|
36
|
+
* this pass. A failed managed invalidation prevents reuse for the rest of the
|
|
37
|
+
* pass unless a delivery under that policy updates the record. Reading the same
|
|
38
|
+
* path under another policy leaves this refusal in place.
|
|
35
39
|
*
|
|
36
40
|
* @param name The plugin's name, the key of its entry in a module's `meta`.
|
|
37
41
|
* @param includes Whether the adapter transforms a module id.
|
|
@@ -39,51 +43,46 @@ import { refreshProjectRecordFile } from '../bridge/refreshProjectRecordFile.mjs
|
|
|
39
43
|
* (`rollupDeliveryOptions`).
|
|
40
44
|
* @param proves Whether the build proves the records its cached modules name,
|
|
41
45
|
* which a build without a watching session's bridge does.
|
|
42
|
-
* @evidence contracts/common.md#principled-implementation Adapter-owned modules compare options and pass-observed record digest; matching record-less metadata follows the no-project rule. Missing delivery, malformed
|
|
46
|
+
* @evidence contracts/common.md#principled-implementation Adapter-owned modules compare options and pass-observed record digest; matching record-less metadata follows the no-project rule. Missing delivery, malformed or unreadable records, and a failed managed invalidation request retransformation.
|
|
43
47
|
* @evidence contracts/common.md#clear-and-simple-design Per-pass proven and digest tables back the existing begin/deliver/moved interface; shared record refresh owns filesystem-state proof.
|
|
44
48
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts The adapter uses the host retransformation hook without patching its cache or inventing a record when no proof exists.
|
|
45
49
|
* @evidence contracts/common.md#meaningful-documentation Paragraphs explain optional record refresh, pass observation reuse and invalidation, including callback failure and record-less delivery semantics.
|
|
46
50
|
* @evidence contracts/portability.md#os-neutral-implementation OS-neutral record access uses producer-supplied native paths and the shared native record refresh operation, without universal path case normalization or fixed storage directories.
|
|
47
51
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
48
52
|
* Judgment adds module filtering, current-option work and metadata/text
|
|
49
|
-
* comparison. Each lexical record gets one refresh attempt per pass, including
|
|
53
|
+
* comparison. Each lexical record and storage policy gets one refresh attempt per pass, including
|
|
50
54
|
* native input/walk/record I/O work. Digest reads/hash follow record bytes
|
|
51
55
|
* and can repeat after proof invalidation; delivery updates avoid a reread.
|
|
52
56
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
53
|
-
* Modules with the same lexical record reuse a pass's refresh attempt and
|
|
57
|
+
* Modules with the same lexical record and storage policy reuse a pass's refresh attempt and
|
|
54
58
|
* observed digest. Begin ends the window; first refresh invalidates an older
|
|
55
59
|
* read and delivery updates the digest. Quiet mid-pass observation is a
|
|
56
60
|
* defined reuse window, not independently fresh native state for every module.
|
|
57
61
|
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
58
62
|
* The returned proof owner retains attempted keys and optional digests for R
|
|
59
63
|
* lexical records until begin clears them or the owner becomes unreachable.
|
|
60
|
-
* There is no count/byte cap within a pass or dedicated close.
|
|
61
|
-
*
|
|
64
|
+
* There is no count/byte cap within a pass or dedicated close. A failed
|
|
65
|
+
* managed refresh stores an unavailable result until reset or delivery. No
|
|
66
|
+
* native handle or task is held.
|
|
62
67
|
*/
|
|
63
68
|
function createRollupCachedModuleProof(name, includes, options, proves) {
|
|
64
|
-
const proven = new
|
|
69
|
+
const proven = new Map();
|
|
65
70
|
const digests = new Map();
|
|
66
|
-
const
|
|
67
|
-
if (digests.has(record))
|
|
68
|
-
return digests.get(record);
|
|
69
|
-
let digest;
|
|
70
|
-
try {
|
|
71
|
-
digest = projectRecordDigest(fs.readFileSync(record));
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
// A record that cannot be read proves nothing.
|
|
75
|
-
}
|
|
76
|
-
digests.set(record, digest);
|
|
77
|
-
return digest;
|
|
78
|
-
};
|
|
71
|
+
const keyOf = (file, privateStorage) => (privateStorage === true ? "1" : "0") + file;
|
|
79
72
|
return {
|
|
80
73
|
begin: () => {
|
|
81
74
|
proven.clear();
|
|
82
75
|
digests.clear();
|
|
83
76
|
},
|
|
84
77
|
deliver: (delivery) => {
|
|
85
|
-
if (delivery?.record !== undefined)
|
|
86
|
-
|
|
78
|
+
if (delivery?.record !== undefined) {
|
|
79
|
+
const { file, digest, privateStorage } = delivery.record;
|
|
80
|
+
const key = keyOf(file, privateStorage);
|
|
81
|
+
if (proven.get(key) === false)
|
|
82
|
+
proven.set(key, true);
|
|
83
|
+
digests.set(key, digest);
|
|
84
|
+
digests.delete(keyOf(file, privateStorage !== true));
|
|
85
|
+
}
|
|
87
86
|
return { [name]: delivery };
|
|
88
87
|
},
|
|
89
88
|
moved: ({ id, meta }) => {
|
|
@@ -94,17 +93,47 @@ function createRollupCachedModuleProof(name, includes, options, proves) {
|
|
|
94
93
|
return true;
|
|
95
94
|
if (delivery.record === undefined)
|
|
96
95
|
return false;
|
|
97
|
-
const { digest, file } = (delivery.record ??
|
|
96
|
+
const { digest, file, privateStorage } = (delivery.record ??
|
|
97
|
+
{});
|
|
98
98
|
if (typeof file !== "string" || typeof digest !== "string")
|
|
99
99
|
return true;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const key = keyOf(file, privateStorage);
|
|
101
|
+
if (proven.get(key) === false)
|
|
102
|
+
return true;
|
|
103
|
+
if (proves() && !proven.has(key)) {
|
|
104
|
+
proven.set(key, true);
|
|
103
105
|
// What a delivery of this build wrote is what the proof ran over, and
|
|
104
106
|
// a move it made is read from the file.
|
|
105
|
-
digests.delete(
|
|
107
|
+
digests.delete(key);
|
|
108
|
+
digests.delete(keyOf(file, privateStorage !== true));
|
|
109
|
+
try {
|
|
110
|
+
const refreshed = refreshProjectRecordFile(file, undefined, undefined, undefined, privateStorage === true, privateStorage === true);
|
|
111
|
+
if (refreshed === false) {
|
|
112
|
+
proven.set(key, false);
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
if (privateStorage !== true)
|
|
118
|
+
throw error;
|
|
119
|
+
// A failed managed signal can leave exactly the stale digest the
|
|
120
|
+
// host cached. Refuse that record for this pass.
|
|
121
|
+
proven.set(key, false);
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (!digests.has(key)) {
|
|
126
|
+
let observed;
|
|
127
|
+
try {
|
|
128
|
+
if (privateStorage !== true || privateProjectRecordAvailable(file))
|
|
129
|
+
observed = projectRecordDigest(fs.readFileSync(file));
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
// A record that cannot be read proves nothing.
|
|
133
|
+
}
|
|
134
|
+
digests.set(key, observed);
|
|
106
135
|
}
|
|
107
|
-
return
|
|
136
|
+
return digests.get(key) !== digest;
|
|
108
137
|
},
|
|
109
138
|
};
|
|
110
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRollupCachedModuleProof.mjs","sources":["../../../src/core/rollup/createRollupCachedModuleProof.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRollupCachedModuleProof.mjs","sources":["../../../src/core/rollup/createRollupCachedModuleProof.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -5,10 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../options/ResolvedTtscUnplugi
|
|
|
5
5
|
*
|
|
6
6
|
* The identity records alias mappings, compiler overlay, plugin payloads and
|
|
7
7
|
* configured project/source-root selection and effective compiler argument
|
|
8
|
-
* transport.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* transport. The record policy generation requires new delivery of older
|
|
9
|
+
* metadata that did not identify managed storage. Tsconfig input state is
|
|
10
|
+
* represented separately by the delivery's project record. A configured project
|
|
11
|
+
* resolves under the same native cwd rule as explicit selection; it is not
|
|
12
|
+
* canonicalized to a physical alias or made process-independent across
|
|
13
|
+
* different cwd spellings.
|
|
12
14
|
*
|
|
13
15
|
* Compiler options, plugin payloads and alias mappings preserve their actual
|
|
14
16
|
* JSON order. Their consumers can observe declaration order; the host cannot
|
|
@@ -5,10 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../options/ResolvedTtscUnplugi
|
|
|
5
5
|
*
|
|
6
6
|
* The identity records alias mappings, compiler overlay, plugin payloads and
|
|
7
7
|
* configured project/source-root selection and effective compiler argument
|
|
8
|
-
* transport.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* transport. The record policy generation requires new delivery of older
|
|
9
|
+
* metadata that did not identify managed storage. Tsconfig input state is
|
|
10
|
+
* represented separately by the delivery's project record. A configured project
|
|
11
|
+
* resolves under the same native cwd rule as explicit selection; it is not
|
|
12
|
+
* canonicalized to a physical alias or made process-independent across
|
|
13
|
+
* different cwd spellings.
|
|
12
14
|
*
|
|
13
15
|
* Compiler options, plugin payloads and alias mappings preserve their actual
|
|
14
16
|
* JSON order. Their consumers can observe declaration order; the host cannot
|
|
@@ -5,10 +5,12 @@ import type { ResolvedTtscUnpluginOptions } from "../options/ResolvedTtscUnplugi
|
|
|
5
5
|
*
|
|
6
6
|
* The identity records alias mappings, compiler overlay, plugin payloads and
|
|
7
7
|
* configured project/source-root selection and effective compiler argument
|
|
8
|
-
* transport.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* transport. The record policy generation requires new delivery of older
|
|
9
|
+
* metadata that did not identify managed storage. Tsconfig input state is
|
|
10
|
+
* represented separately by the delivery's project record. A configured project
|
|
11
|
+
* resolves under the same native cwd rule as explicit selection; it is not
|
|
12
|
+
* canonicalized to a physical alias or made process-independent across
|
|
13
|
+
* different cwd spellings.
|
|
12
14
|
*
|
|
13
15
|
* Compiler options, plugin payloads and alias mappings preserve their actual
|
|
14
16
|
* JSON order. Their consumers can observe declaration order; the host cannot
|
|
@@ -12,10 +12,12 @@ var stableStringify = require('../transform/utils/stableStringify.js');
|
|
|
12
12
|
*
|
|
13
13
|
* The identity records alias mappings, compiler overlay, plugin payloads and
|
|
14
14
|
* configured project/source-root selection and effective compiler argument
|
|
15
|
-
* transport.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* transport. The record policy generation requires new delivery of older
|
|
16
|
+
* metadata that did not identify managed storage. Tsconfig input state is
|
|
17
|
+
* represented separately by the delivery's project record. A configured project
|
|
18
|
+
* resolves under the same native cwd rule as explicit selection; it is not
|
|
19
|
+
* canonicalized to a physical alias or made process-independent across
|
|
20
|
+
* different cwd spellings.
|
|
19
21
|
*
|
|
20
22
|
* Compiler options, plugin payloads and alias mappings preserve their actual
|
|
21
23
|
* JSON order. Their consumers can observe declaration order; the host cannot
|
|
@@ -50,6 +52,7 @@ function rollupDeliveryOptions(options, aliasPaths, compilerEnvironment = ttsc.r
|
|
|
50
52
|
projectRoot: options.projectRoot === undefined
|
|
51
53
|
? null
|
|
52
54
|
: path.resolve(options.projectRoot),
|
|
55
|
+
recordPolicy: 1,
|
|
53
56
|
}));
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollupDeliveryOptions.js","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":["resolveCompilerEnvironment","hashText","stableStringify","compilerEnvironmentIdentity"],"mappings":";;;;;;;;AAQA
|
|
1
|
+
{"version":3,"file":"rollupDeliveryOptions.js","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":["resolveCompilerEnvironment","hashText","stableStringify","compilerEnvironmentIdentity"],"mappings":";;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCG;AACG,SAAU,qBAAqB,CACnC,OAAoC,EACpC,UAAoC,EACpC,mBAAmB,GAAGA,+BAA0B,CAAC,OAAO,CAAC,eAAe,CAAC,EAAA;IAEzE,OAAOC,iBAAQ,CACbC,+BAAe,CAAC;AACd,QAAA,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACtC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;AACxD,QAAA,mBAAmB,EAAEC,uDAA2B,CAAC,mBAAmB,CAAC;QACrE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;QACxC,OAAO,EACL,OAAO,CAAC,OAAO,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AACtE,QAAA,WAAW,EACT,OAAO,CAAC,WAAW,KAAK;AACtB,cAAE;cACA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;AACvC,QAAA,YAAY,EAAE,CAAC;AAChB,KAAA,CAAC,CACH;AACH;;;;"}
|
|
@@ -10,10 +10,12 @@ import { stableStringify } from '../transform/utils/stableStringify.mjs';
|
|
|
10
10
|
*
|
|
11
11
|
* The identity records alias mappings, compiler overlay, plugin payloads and
|
|
12
12
|
* configured project/source-root selection and effective compiler argument
|
|
13
|
-
* transport.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* transport. The record policy generation requires new delivery of older
|
|
14
|
+
* metadata that did not identify managed storage. Tsconfig input state is
|
|
15
|
+
* represented separately by the delivery's project record. A configured project
|
|
16
|
+
* resolves under the same native cwd rule as explicit selection; it is not
|
|
17
|
+
* canonicalized to a physical alias or made process-independent across
|
|
18
|
+
* different cwd spellings.
|
|
17
19
|
*
|
|
18
20
|
* Compiler options, plugin payloads and alias mappings preserve their actual
|
|
19
21
|
* JSON order. Their consumers can observe declaration order; the host cannot
|
|
@@ -48,6 +50,7 @@ function rollupDeliveryOptions(options, aliasPaths, compilerEnvironment = resolv
|
|
|
48
50
|
projectRoot: options.projectRoot === undefined
|
|
49
51
|
? null
|
|
50
52
|
: path.resolve(options.projectRoot),
|
|
53
|
+
recordPolicy: 1,
|
|
51
54
|
}));
|
|
52
55
|
}
|
|
53
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollupDeliveryOptions.mjs","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAQA
|
|
1
|
+
{"version":3,"file":"rollupDeliveryOptions.mjs","sources":["../../../src/core/rollup/rollupDeliveryOptions.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCG;AACG,SAAU,qBAAqB,CACnC,OAAoC,EACpC,UAAoC,EACpC,mBAAmB,GAAG,0BAA0B,CAAC,OAAO,CAAC,eAAe,CAAC,EAAA;IAEzE,OAAO,QAAQ,CACb,eAAe,CAAC;AACd,QAAA,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;QACtC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;AACxD,QAAA,mBAAmB,EAAE,2BAA2B,CAAC,mBAAmB,CAAC;QACrE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;QACxC,OAAO,EACL,OAAO,CAAC,OAAO,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AACtE,QAAA,WAAW,EACT,OAAO,CAAC,WAAW,KAAK;AACtB,cAAE;cACA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;AACvC,QAAA,YAAY,EAAE,CAAC;AAChB,KAAA,CAAC,CACH;AACH;;;;"}
|
|
@@ -105,6 +105,13 @@ export interface TtscCachedProjectTransform {
|
|
|
105
105
|
* separate from identity keys so validation replays each reported alias.
|
|
106
106
|
*/
|
|
107
107
|
externalInputPaths?: string[];
|
|
108
|
+
/** Source observation taken before the compiler invocation that threw. */
|
|
109
|
+
failedCompilerSource?: {
|
|
110
|
+
file: string;
|
|
111
|
+
digest: string | null;
|
|
112
|
+
};
|
|
113
|
+
/** Absent external names replayed directly instead of watching their parents. */
|
|
114
|
+
directExternalInputs?: readonly string[];
|
|
108
115
|
/**
|
|
109
116
|
* Optional metadata signature earned around a successful external content or
|
|
110
117
|
* predicate comparison and recorded only once the observed filesystem's clock
|
|
@@ -105,6 +105,13 @@ export interface TtscCachedProjectTransform {
|
|
|
105
105
|
* separate from identity keys so validation replays each reported alias.
|
|
106
106
|
*/
|
|
107
107
|
externalInputPaths?: string[];
|
|
108
|
+
/** Source observation taken before the compiler invocation that threw. */
|
|
109
|
+
failedCompilerSource?: {
|
|
110
|
+
file: string;
|
|
111
|
+
digest: string | null;
|
|
112
|
+
};
|
|
113
|
+
/** Absent external names replayed directly instead of watching their parents. */
|
|
114
|
+
directExternalInputs?: readonly string[];
|
|
108
115
|
/**
|
|
109
116
|
* Optional metadata signature earned around a successful external content or
|
|
110
117
|
* predicate comparison and recorded only once the observed filesystem's clock
|
|
@@ -105,6 +105,13 @@ export interface TtscCachedProjectTransform {
|
|
|
105
105
|
* separate from identity keys so validation replays each reported alias.
|
|
106
106
|
*/
|
|
107
107
|
externalInputPaths?: string[];
|
|
108
|
+
/** Source observation taken before the compiler invocation that threw. */
|
|
109
|
+
failedCompilerSource?: {
|
|
110
|
+
file: string;
|
|
111
|
+
digest: string | null;
|
|
112
|
+
};
|
|
113
|
+
/** Absent external names replayed directly instead of watching their parents. */
|
|
114
|
+
directExternalInputs?: readonly string[];
|
|
108
115
|
/**
|
|
109
116
|
* Optional metadata signature earned around a successful external content or
|
|
110
117
|
* predicate comparison and recorded only once the observed filesystem's clock
|
|
@@ -14,7 +14,7 @@ import type { TtscTransformCache } from "./TtscTransformCache.cjs";
|
|
|
14
14
|
* proof can stand in for it. A serving decision does not perform output
|
|
15
15
|
* selection or host notification, which remain with delivery.
|
|
16
16
|
*
|
|
17
|
-
* @evidence contracts/common.md#principled-implementation
|
|
17
|
+
* @evidence contracts/common.md#principled-implementation A generation requiring workspace replay serves in its original registered pass or to an unregistered caller that joined its pending capture. Volatility, recorded environment reads and recorded source proof also decide serving. Identity-guarded eviction distinguishes a sibling's replacement from an empty capture slot.
|
|
18
18
|
* @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
|
|
19
19
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
|
|
@@ -37,6 +37,8 @@ export declare function selectCachedGenerationAction(props: {
|
|
|
37
37
|
cache: TtscTransformCache | undefined;
|
|
38
38
|
cached: TtscCachedProjectTransform;
|
|
39
39
|
epoch: number | undefined;
|
|
40
|
+
/** The caller joined this exact generation while its capture was pending. */
|
|
41
|
+
joinedCapture?: boolean;
|
|
40
42
|
file: string;
|
|
41
43
|
generation: Promise<TtscCachedProjectTransform>;
|
|
42
44
|
key: string;
|
|
@@ -14,7 +14,7 @@ import type { TtscTransformCache } from "./TtscTransformCache.mjs";
|
|
|
14
14
|
* proof can stand in for it. A serving decision does not perform output
|
|
15
15
|
* selection or host notification, which remain with delivery.
|
|
16
16
|
*
|
|
17
|
-
* @evidence contracts/common.md#principled-implementation
|
|
17
|
+
* @evidence contracts/common.md#principled-implementation A generation requiring workspace replay serves in its original registered pass or to an unregistered caller that joined its pending capture. Volatility, recorded environment reads and recorded source proof also decide serving. Identity-guarded eviction distinguishes a sibling's replacement from an empty capture slot.
|
|
18
18
|
* @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
|
|
19
19
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
|
|
@@ -37,6 +37,8 @@ export declare function selectCachedGenerationAction(props: {
|
|
|
37
37
|
cache: TtscTransformCache | undefined;
|
|
38
38
|
cached: TtscCachedProjectTransform;
|
|
39
39
|
epoch: number | undefined;
|
|
40
|
+
/** The caller joined this exact generation while its capture was pending. */
|
|
41
|
+
joinedCapture?: boolean;
|
|
40
42
|
file: string;
|
|
41
43
|
generation: Promise<TtscCachedProjectTransform>;
|
|
42
44
|
key: string;
|
|
@@ -14,7 +14,7 @@ import type { TtscTransformCache } from "./TtscTransformCache";
|
|
|
14
14
|
* proof can stand in for it. A serving decision does not perform output
|
|
15
15
|
* selection or host notification, which remain with delivery.
|
|
16
16
|
*
|
|
17
|
-
* @evidence contracts/common.md#principled-implementation
|
|
17
|
+
* @evidence contracts/common.md#principled-implementation A generation requiring workspace replay serves in its original registered pass or to an unregistered caller that joined its pending capture. Volatility, recorded environment reads and recorded source proof also decide serving. Identity-guarded eviction distinguishes a sibling's replacement from an empty capture slot.
|
|
18
18
|
* @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
|
|
19
19
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
|
|
20
20
|
* @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
|
|
@@ -37,6 +37,8 @@ export declare function selectCachedGenerationAction(props: {
|
|
|
37
37
|
cache: TtscTransformCache | undefined;
|
|
38
38
|
cached: TtscCachedProjectTransform;
|
|
39
39
|
epoch: number | undefined;
|
|
40
|
+
/** The caller joined this exact generation while its capture was pending. */
|
|
41
|
+
joinedCapture?: boolean;
|
|
40
42
|
file: string;
|
|
41
43
|
generation: Promise<TtscCachedProjectTransform>;
|
|
42
44
|
key: string;
|
|
@@ -19,7 +19,7 @@ var evictGeneration = require('./evictGeneration.js');
|
|
|
19
19
|
* proof can stand in for it. A serving decision does not perform output
|
|
20
20
|
* selection or host notification, which remain with delivery.
|
|
21
21
|
*
|
|
22
|
-
* @evidence contracts/common.md#principled-implementation
|
|
22
|
+
* @evidence contracts/common.md#principled-implementation A generation requiring workspace replay serves in its original registered pass or to an unregistered caller that joined its pending capture. Volatility, recorded environment reads and recorded source proof also decide serving. Identity-guarded eviction distinguishes a sibling's replacement from an empty capture slot.
|
|
23
23
|
* @evidence contracts/common.md#clear-and-simple-design One synchronous operation selects serve/retry/capture and owns mismatch eviction, while its production caller owns awaiting, notification settling, native capture and output delivery.
|
|
24
24
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Decisions inspect the supplied actual generation and validators without fabricating a producer result, capability or success; no injectable compiler callback or test-only branch is introduced.
|
|
25
25
|
* @evidence contracts/common.md#meaningful-documentation Native prose states the caller's awaited-Promise and settled-notification responsibilities and separates the decision from producer and delivery effects.
|
|
@@ -39,9 +39,12 @@ var evictGeneration = require('./evictGeneration.js');
|
|
|
39
39
|
* @evidence contracts/portability.md#os-neutral-implementation Generation derivation and source validation retain their actual filesystem identity and compiler policy; this coordinator adds no platform inference or path rewriting.
|
|
40
40
|
*/
|
|
41
41
|
function selectCachedGenerationAction(props) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
const result = props.cached.result;
|
|
43
|
+
if ((result.type === "exception" ||
|
|
44
|
+
result.workspaceReplayRequired !== true ||
|
|
45
|
+
(props.cached.deliveryEpoch === props.epoch &&
|
|
46
|
+
(props.epoch !== undefined || props.joinedCapture === true))) &&
|
|
47
|
+
environmentInputMismatch.environmentInputMismatch(result.type === "exception" ? undefined : result.environmentInputs, props.environment) === undefined &&
|
|
45
48
|
!isVolatileFile.isVolatileFile(envelopeDerivation.envelopeDerivation(props.cached), {
|
|
46
49
|
file: props.file,
|
|
47
50
|
projectRoot: props.cached.projectRoot,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectCachedGenerationAction.js","sources":["../../../../src/core/transform/cache/selectCachedGenerationAction.ts"],"sourcesContent":[null],"names":["environmentInputMismatch","isVolatileFile","envelopeDerivation","matchesCachedSource","evictGeneration"],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;AACG,SAAU,4BAA4B,CAAC,
|
|
1
|
+
{"version":3,"file":"selectCachedGenerationAction.js","sources":["../../../../src/core/transform/cache/selectCachedGenerationAction.ts"],"sourcesContent":[null],"names":["environmentInputMismatch","isVolatileFile","envelopeDerivation","matchesCachedSource","evictGeneration"],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;AACG,SAAU,4BAA4B,CAAC,KAkB5C,EAAA;AACC,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM;AAClC,IAAA,IACE,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW;QAC1B,MAAM,CAAC,uBAAuB,KAAK,IAAI;SACtC,KAAK,CAAC,MAAM,CAAC,aAAa,KAAK,KAAK,CAAC,KAAK;AACzC,aAAC,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC,CAAC;QAChEA,iDAAwB,CACtB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,iBAAiB,EAClE,KAAK,CAAC,WAAW,CAClB,KAAK,SAAS;QACf,CAACC,6BAAc,CAACC,qCAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAChD,IAAI,EAAE,KAAK,CAAC,IAAI;AAChB,YAAA,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW;AACrC,YAAA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;SAC5B,CAAC;QACFC,uCAAmB,CACjB,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,gBAAgB,CACvB,EACD;AACA,QAAA,OAAO,OAAO;IAChB;AACA,IAAAC,+BAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC;IACzD,OAAO,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,GAAG,OAAO,GAAG,SAAS;AACxE;;;;"}
|