@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readProjectRecordFile.mjs","sources":["../../../src/core/bridge/readProjectRecordFile.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readProjectRecordFile.mjs","sources":["../../../src/core/bridge/readProjectRecordFile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,qBAAqB,CACnC,IAAY,EAAA;AAEZ,IAAA,IAAI,MAAe;AACnB,IAAA,IAAI;AACF,QAAA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpD;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,SAAS;IACvC,MAAM,SAAS,GAAG,MAAM;AACxB,IAAA,IACE,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ;AACtC,QAAA,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ;AAClC,QAAA,OAAO,SAAS,CAAC,MAAM,KAAK,QAAQ;AACpC,QAAA,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC;AAClC,QAAA,CAAC,kBAAkB,CAAC,SAAS,CAAC,MAAM,CAAC;AACrC,QAAA,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC;AACnC,SAAC,SAAS,CAAC,iBAAiB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A,OAAO,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;AACzC,QAAA,KAAK,YAAY;AACf,YAAA,OAAO,YAAY,CAAC,KAAK,CAAC;AAC5B,QAAA;AACE,YAAA,OAAO,KAAK;;AAElB;AAEA;AACA,SAAS,eAAe,CACtB,KAAc,EAAA;AAEd,IAAA,QACE,QAAQ,CAAC,KAAK,CAAC;AACf,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,OAAO,KAAK,CAAC,OAAO,KAAK,SAAS;AAClC,SAAC,KAAK,CAAC,WAAW,KAAK,SAAS;YAC9B,KAAK,CAAC,WAAW,KAAK,SAAS;AAC/B,YAAA,KAAK,CAAC,WAAW,KAAK,UAAU,CAAC;AACnC,SAAC,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAE5D;AAEA;AACA,SAAS,kBAAkB,CACzB,KAAc,EAAA;AAEd,IAAA,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;AACvE;AAEA;AACA,SAAS,mBAAmB,CAC1B,KAAc,EAAA;AAEd,IAAA,QACE,QAAQ,CAAC,KAAK,CAAC;AACf,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACrC,SAAC,KAAK,CAAC,eAAe,KAAK,SAAS;AAClC,YAAA,OAAO,KAAK,CAAC,eAAe,KAAK,SAAS,CAAC;AAEjD;;;;"}
|
|
@@ -18,6 +18,9 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
18
18
|
* record that cannot be read proves nothing and is moved too. A record whose
|
|
19
19
|
* tsconfig is gone is removed instead, the one move no delivery has to end.
|
|
20
20
|
*
|
|
21
|
+
* A persisted workspace replay requirement moves the record before either
|
|
22
|
+
* restoration path can use it. Opaque hosts require that move to succeed.
|
|
23
|
+
*
|
|
21
24
|
* A watching session's bridge takes the record instead
|
|
22
25
|
* (`projectRecordWatchInputs`): the bridge proves the recorded inputs as it
|
|
23
26
|
* takes them, moves a record it finds stale and again until a delivery answers,
|
|
@@ -32,6 +35,8 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
32
35
|
*
|
|
33
36
|
* @param file The project record (`projectRecordFile`).
|
|
34
37
|
* @param bridge The watching session's bridge, when the host has one.
|
|
38
|
+
* @returns False when this record needs a new workspace delivery.
|
|
39
|
+
* @throws When startup requires invalidation and the record cannot be moved.
|
|
35
40
|
* @evidence contracts/common.md#principled-implementation
|
|
36
41
|
* An unreadable record proves nothing and is signaled; a vanished project is
|
|
37
42
|
* removed. Watching restoration transfers evidence to the bridge, while a
|
|
@@ -45,7 +50,7 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
45
50
|
* @evidence contracts/common.md#meaningful-documentation
|
|
46
51
|
* Native paragraphs explain cached-session restoration and proof failure effects,
|
|
47
52
|
* with lifecycle comments and tag separation per documentation guidance.
|
|
48
|
-
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view
|
|
53
|
+
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view. Required native effects report failure to the restoring host.
|
|
49
54
|
* @evidence contracts/performance.md#bound-retention-and-release-resources It keeps no handle. A record whose tsconfig is gone is removed, which ends a record no generation will write again, and a removal another process blocks is retried by the next proof.
|
|
50
55
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
51
56
|
* Record reading parses and validates byte/list populations. Detached replay
|
|
@@ -58,4 +63,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
58
63
|
* this function itself refreshes each request without a verdict cache. A bridge
|
|
59
64
|
* coordinates retained observations only under its current evidence authority.
|
|
60
65
|
*/
|
|
61
|
-
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
66
|
+
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean, required?: boolean, opaqueRestore?: boolean): false | void;
|
|
@@ -18,6 +18,9 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
18
18
|
* record that cannot be read proves nothing and is moved too. A record whose
|
|
19
19
|
* tsconfig is gone is removed instead, the one move no delivery has to end.
|
|
20
20
|
*
|
|
21
|
+
* A persisted workspace replay requirement moves the record before either
|
|
22
|
+
* restoration path can use it. Opaque hosts require that move to succeed.
|
|
23
|
+
*
|
|
21
24
|
* A watching session's bridge takes the record instead
|
|
22
25
|
* (`projectRecordWatchInputs`): the bridge proves the recorded inputs as it
|
|
23
26
|
* takes them, moves a record it finds stale and again until a delivery answers,
|
|
@@ -32,6 +35,8 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
32
35
|
*
|
|
33
36
|
* @param file The project record (`projectRecordFile`).
|
|
34
37
|
* @param bridge The watching session's bridge, when the host has one.
|
|
38
|
+
* @returns False when this record needs a new workspace delivery.
|
|
39
|
+
* @throws When startup requires invalidation and the record cannot be moved.
|
|
35
40
|
* @evidence contracts/common.md#principled-implementation
|
|
36
41
|
* An unreadable record proves nothing and is signaled; a vanished project is
|
|
37
42
|
* removed. Watching restoration transfers evidence to the bridge, while a
|
|
@@ -45,7 +50,7 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
45
50
|
* @evidence contracts/common.md#meaningful-documentation
|
|
46
51
|
* Native paragraphs explain cached-session restoration and proof failure effects,
|
|
47
52
|
* with lifecycle comments and tag separation per documentation guidance.
|
|
48
|
-
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view
|
|
53
|
+
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view. Required native effects report failure to the restoring host.
|
|
49
54
|
* @evidence contracts/performance.md#bound-retention-and-release-resources It keeps no handle. A record whose tsconfig is gone is removed, which ends a record no generation will write again, and a removal another process blocks is retried by the next proof.
|
|
50
55
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
51
56
|
* Record reading parses and validates byte/list populations. Detached replay
|
|
@@ -58,4 +63,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
58
63
|
* this function itself refreshes each request without a verdict cache. A bridge
|
|
59
64
|
* coordinates retained observations only under its current evidence authority.
|
|
60
65
|
*/
|
|
61
|
-
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
66
|
+
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean, required?: boolean, opaqueRestore?: boolean): false | void;
|
|
@@ -18,6 +18,9 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
18
18
|
* record that cannot be read proves nothing and is moved too. A record whose
|
|
19
19
|
* tsconfig is gone is removed instead, the one move no delivery has to end.
|
|
20
20
|
*
|
|
21
|
+
* A persisted workspace replay requirement moves the record before either
|
|
22
|
+
* restoration path can use it. Opaque hosts require that move to succeed.
|
|
23
|
+
*
|
|
21
24
|
* A watching session's bridge takes the record instead
|
|
22
25
|
* (`projectRecordWatchInputs`): the bridge proves the recorded inputs as it
|
|
23
26
|
* takes them, moves a record it finds stale and again until a delivery answers,
|
|
@@ -32,6 +35,8 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
32
35
|
*
|
|
33
36
|
* @param file The project record (`projectRecordFile`).
|
|
34
37
|
* @param bridge The watching session's bridge, when the host has one.
|
|
38
|
+
* @returns False when this record needs a new workspace delivery.
|
|
39
|
+
* @throws When startup requires invalidation and the record cannot be moved.
|
|
35
40
|
* @evidence contracts/common.md#principled-implementation
|
|
36
41
|
* An unreadable record proves nothing and is signaled; a vanished project is
|
|
37
42
|
* removed. Watching restoration transfers evidence to the bridge, while a
|
|
@@ -45,7 +50,7 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
45
50
|
* @evidence contracts/common.md#meaningful-documentation
|
|
46
51
|
* Native paragraphs explain cached-session restoration and proof failure effects,
|
|
47
52
|
* with lifecycle comments and tag separation per documentation guidance.
|
|
48
|
-
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view
|
|
53
|
+
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view. Required native effects report failure to the restoring host.
|
|
49
54
|
* @evidence contracts/performance.md#bound-retention-and-release-resources It keeps no handle. A record whose tsconfig is gone is removed, which ends a record no generation will write again, and a removal another process blocks is retried by the next proof.
|
|
50
55
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
51
56
|
* Record reading parses and validates byte/list populations. Detached replay
|
|
@@ -58,4 +63,4 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
58
63
|
* this function itself refreshes each request without a verdict cache. A bridge
|
|
59
64
|
* coordinates retained observations only under its current evidence authority.
|
|
60
65
|
*/
|
|
61
|
-
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
66
|
+
export declare function refreshProjectRecordFile(file: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean, required?: boolean, opaqueRestore?: boolean): false | void;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
4
|
var DEFAULT_FILESYSTEM_OPERATIONS = require('../transform/filesystem/DEFAULT_FILESYSTEM_OPERATIONS.js');
|
|
5
|
+
var privateProjectRecordAvailable = require('./privateProjectRecordAvailable.js');
|
|
5
6
|
var projectRecordArgumentsMatch = require('./projectRecordArgumentsMatch.js');
|
|
6
7
|
var projectRecordMoved = require('./projectRecordMoved.js');
|
|
7
8
|
var projectRecordWatchInputs = require('./projectRecordWatchInputs.js');
|
|
@@ -26,6 +27,9 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
26
27
|
* record that cannot be read proves nothing and is moved too. A record whose
|
|
27
28
|
* tsconfig is gone is removed instead, the one move no delivery has to end.
|
|
28
29
|
*
|
|
30
|
+
* A persisted workspace replay requirement moves the record before either
|
|
31
|
+
* restoration path can use it. Opaque hosts require that move to succeed.
|
|
32
|
+
*
|
|
29
33
|
* A watching session's bridge takes the record instead
|
|
30
34
|
* (`projectRecordWatchInputs`): the bridge proves the recorded inputs as it
|
|
31
35
|
* takes them, moves a record it finds stale and again until a delivery answers,
|
|
@@ -40,6 +44,8 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
40
44
|
*
|
|
41
45
|
* @param file The project record (`projectRecordFile`).
|
|
42
46
|
* @param bridge The watching session's bridge, when the host has one.
|
|
47
|
+
* @returns False when this record needs a new workspace delivery.
|
|
48
|
+
* @throws When startup requires invalidation and the record cannot be moved.
|
|
43
49
|
* @evidence contracts/common.md#principled-implementation
|
|
44
50
|
* An unreadable record proves nothing and is signaled; a vanished project is
|
|
45
51
|
* removed. Watching restoration transfers evidence to the bridge, while a
|
|
@@ -53,7 +59,7 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
53
59
|
* @evidence contracts/common.md#meaningful-documentation
|
|
54
60
|
* Native paragraphs explain cached-session restoration and proof failure effects,
|
|
55
61
|
* with lifecycle comments and tag separation per documentation guidance.
|
|
56
|
-
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view
|
|
62
|
+
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view. Required native effects report failure to the restoring host.
|
|
57
63
|
* @evidence contracts/performance.md#bound-retention-and-release-resources It keeps no handle. A record whose tsconfig is gone is removed, which ends a record no generation will write again, and a removal another process blocks is retried by the next proof.
|
|
58
64
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
59
65
|
* Record reading parses and validates byte/list populations. Detached replay
|
|
@@ -66,7 +72,12 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
66
72
|
* this function itself refreshes each request without a verdict cache. A bridge
|
|
67
73
|
* coordinates retained observations only under its current evidence authority.
|
|
68
74
|
*/
|
|
69
|
-
function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS.DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity) {
|
|
75
|
+
function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS.DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity, privateStorage = false, required = false, opaqueRestore = false) {
|
|
76
|
+
if (privateStorage && !privateProjectRecordAvailable.privateProjectRecordAvailable(file)) {
|
|
77
|
+
if (required)
|
|
78
|
+
throw new Error(`@ttsc/unplugin: unavailable private project record prevents cache restoration: ${file}`);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
70
81
|
const record = readProjectRecordFile.readProjectRecordFile(file);
|
|
71
82
|
// A record that cannot be read proves nothing, and is moved as a proof that
|
|
72
83
|
// found a change is. A host may hold exactly these bytes: a signal that could
|
|
@@ -78,7 +89,7 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
78
89
|
// writer caught mid-write loses its bytes to the move, which its own host
|
|
79
90
|
// hears and runs on, and a record another process removed stays removed.
|
|
80
91
|
if (record === undefined) {
|
|
81
|
-
signalProjectRecordFile.signalProjectRecordFile(file);
|
|
92
|
+
signalProjectRecordFile.signalProjectRecordFile(file, privateStorage, required);
|
|
82
93
|
return;
|
|
83
94
|
}
|
|
84
95
|
// Nothing will write this project again: the record's own rule, that it
|
|
@@ -90,17 +101,23 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
90
101
|
try {
|
|
91
102
|
fs.rmSync(file, { force: true });
|
|
92
103
|
}
|
|
93
|
-
catch {
|
|
104
|
+
catch (cause) {
|
|
105
|
+
if (required)
|
|
106
|
+
throw new Error(`@ttsc/unplugin: cannot remove project record before cache restoration: ${file}`, { cause });
|
|
94
107
|
// Held by another process; the next proof removes it.
|
|
95
108
|
}
|
|
96
109
|
return;
|
|
97
110
|
}
|
|
111
|
+
if (record.workspaceReplayRequired === true) {
|
|
112
|
+
signalProjectRecordFile.signalProjectRecordFile(file, privateStorage, required || opaqueRestore);
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
98
115
|
if (bridge !== undefined) {
|
|
99
116
|
if (!projectRecordArgumentsMatch.projectRecordArgumentsMatch(record, compilerArgumentsIdentity)) {
|
|
100
|
-
signalProjectRecordFile.signalProjectRecordFile(file);
|
|
117
|
+
signalProjectRecordFile.signalProjectRecordFile(file, privateStorage, required);
|
|
101
118
|
return;
|
|
102
119
|
}
|
|
103
|
-
bridge.register(file, projectRecordWatchInputs.projectRecordWatchInputs(record));
|
|
120
|
+
bridge.register(file, projectRecordWatchInputs.projectRecordWatchInputs(record), undefined, undefined, privateStorage || record.privateStorage === true, required);
|
|
104
121
|
return;
|
|
105
122
|
}
|
|
106
123
|
// A proof that cannot run proves nothing, and the record is moved as if it
|
|
@@ -114,7 +131,7 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
114
131
|
moved = record.root;
|
|
115
132
|
}
|
|
116
133
|
if (moved !== undefined)
|
|
117
|
-
signalProjectRecordFile.signalProjectRecordFile(file);
|
|
134
|
+
signalProjectRecordFile.signalProjectRecordFile(file, privateStorage, required);
|
|
118
135
|
}
|
|
119
136
|
|
|
120
137
|
exports.refreshProjectRecordFile = refreshProjectRecordFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshProjectRecordFile.js","sources":["../../../src/core/bridge/refreshProjectRecordFile.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","readProjectRecordFile","signalProjectRecordFile","projectRecordArgumentsMatch","projectRecordWatchInputs","projectRecordMoved"],"mappings":"
|
|
1
|
+
{"version":3,"file":"refreshProjectRecordFile.js","sources":["../../../src/core/bridge/refreshProjectRecordFile.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","privateProjectRecordAvailable","readProjectRecordFile","signalProjectRecordFile","projectRecordArgumentsMatch","projectRecordWatchInputs","projectRecordMoved"],"mappings":";;;;;;;;;;;AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DG;AACG,SAAU,wBAAwB,CACtC,IAAY,EACZ,MAAwB,EACxB,UAAA,GAAgDA,2DAA6B,EAC7E,yBAAkC,EAClC,cAAc,GAAG,KAAK,EACtB,QAAQ,GAAG,KAAK,EAChB,aAAa,GAAG,KAAK,EAAA;IAErB,IAAI,cAAc,IAAI,CAACC,2DAA6B,CAAC,IAAI,CAAC,EAAE;AAC1D,QAAA,IAAI,QAAQ;AACV,YAAA,MAAM,IAAI,KAAK,CACb,kFAAkF,IAAI,CAAA,CAAE,CACzF;QACH;IACF;AACA,IAAA,MAAM,MAAM,GAAGC,2CAAqB,CAAC,IAAI,CAAC;;;;;;;;;;AAU1C,IAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,QAAAC,+CAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC;QACvD;IACF;;;;;;IAMA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;AACvC,QAAA,IAAI;YACF,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAClC;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,IAAI,QAAQ;gBACV,MAAM,IAAI,KAAK,CACb,CAAA,uEAAA,EAA0E,IAAI,CAAA,CAAE,EAChF,EAAE,KAAK,EAAE,CACV;;QAEL;QACA;IACF;AACA,IAAA,IAAI,MAAM,CAAC,uBAAuB,KAAK,IAAI,EAAE;QAC3CA,+CAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,IAAI,aAAa,CAAC;AACxE,QAAA,OAAO,KAAK;IACd;AACA,IAAA,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,IAAI,CAACC,uDAA2B,CAAC,MAAM,EAAE,yBAAyB,CAAC,EAAE;AACnE,YAAAD,+CAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC;YACvD;QACF;QACA,MAAM,CAAC,QAAQ,CACb,IAAI,EACJE,iDAAwB,CAAC,MAAM,CAAC,EAChC,SAAS,EACT,SAAS,EACT,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,EAChD,QAAQ,CACT;QACD;IACF;;;;AAIA,IAAA,IAAI,KAAyB;AAC7B,IAAA,IAAI;QACF,KAAK,GAAGC,qCAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,yBAAyB,CAAC;IAC3E;AAAE,IAAA,MAAM;AACN,QAAA,KAAK,GAAG,MAAM,CAAC,IAAI;IACrB;IACA,IAAI,KAAK,KAAK,SAAS;AACrB,QAAAH,+CAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC;AAC3D;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import { DEFAULT_FILESYSTEM_OPERATIONS } from '../transform/filesystem/DEFAULT_FILESYSTEM_OPERATIONS.mjs';
|
|
3
|
+
import { privateProjectRecordAvailable } from './privateProjectRecordAvailable.mjs';
|
|
3
4
|
import { projectRecordArgumentsMatch } from './projectRecordArgumentsMatch.mjs';
|
|
4
5
|
import { projectRecordMoved } from './projectRecordMoved.mjs';
|
|
5
6
|
import { projectRecordWatchInputs } from './projectRecordWatchInputs.mjs';
|
|
@@ -24,6 +25,9 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
24
25
|
* record that cannot be read proves nothing and is moved too. A record whose
|
|
25
26
|
* tsconfig is gone is removed instead, the one move no delivery has to end.
|
|
26
27
|
*
|
|
28
|
+
* A persisted workspace replay requirement moves the record before either
|
|
29
|
+
* restoration path can use it. Opaque hosts require that move to succeed.
|
|
30
|
+
*
|
|
27
31
|
* A watching session's bridge takes the record instead
|
|
28
32
|
* (`projectRecordWatchInputs`): the bridge proves the recorded inputs as it
|
|
29
33
|
* takes them, moves a record it finds stale and again until a delivery answers,
|
|
@@ -38,6 +42,8 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
38
42
|
*
|
|
39
43
|
* @param file The project record (`projectRecordFile`).
|
|
40
44
|
* @param bridge The watching session's bridge, when the host has one.
|
|
45
|
+
* @returns False when this record needs a new workspace delivery.
|
|
46
|
+
* @throws When startup requires invalidation and the record cannot be moved.
|
|
41
47
|
* @evidence contracts/common.md#principled-implementation
|
|
42
48
|
* An unreadable record proves nothing and is signaled; a vanished project is
|
|
43
49
|
* removed. Watching restoration transfers evidence to the bridge, while a
|
|
@@ -51,7 +57,7 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
51
57
|
* @evidence contracts/common.md#meaningful-documentation
|
|
52
58
|
* Native paragraphs explain cached-session restoration and proof failure effects,
|
|
53
59
|
* with lifecycle comments and tag separation per documentation guidance.
|
|
54
|
-
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view
|
|
60
|
+
* @evidence contracts/portability.md#os-neutral-implementation Record persistence remains on the host's native filesystem, while project existence and proof use the supplied observation view. Required native effects report failure to the restoring host.
|
|
55
61
|
* @evidence contracts/performance.md#bound-retention-and-release-resources It keeps no handle. A record whose tsconfig is gone is removed, which ends a record no generation will write again, and a removal another process blocks is retried by the next proof.
|
|
56
62
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
57
63
|
* Record reading parses and validates byte/list populations. Detached replay
|
|
@@ -64,7 +70,12 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
64
70
|
* this function itself refreshes each request without a verdict cache. A bridge
|
|
65
71
|
* coordinates retained observations only under its current evidence authority.
|
|
66
72
|
*/
|
|
67
|
-
function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity) {
|
|
73
|
+
function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity, privateStorage = false, required = false, opaqueRestore = false) {
|
|
74
|
+
if (privateStorage && !privateProjectRecordAvailable(file)) {
|
|
75
|
+
if (required)
|
|
76
|
+
throw new Error(`@ttsc/unplugin: unavailable private project record prevents cache restoration: ${file}`);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
68
79
|
const record = readProjectRecordFile(file);
|
|
69
80
|
// A record that cannot be read proves nothing, and is moved as a proof that
|
|
70
81
|
// found a change is. A host may hold exactly these bytes: a signal that could
|
|
@@ -76,7 +87,7 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
76
87
|
// writer caught mid-write loses its bytes to the move, which its own host
|
|
77
88
|
// hears and runs on, and a record another process removed stays removed.
|
|
78
89
|
if (record === undefined) {
|
|
79
|
-
signalProjectRecordFile(file);
|
|
90
|
+
signalProjectRecordFile(file, privateStorage, required);
|
|
80
91
|
return;
|
|
81
92
|
}
|
|
82
93
|
// Nothing will write this project again: the record's own rule, that it
|
|
@@ -88,17 +99,23 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
88
99
|
try {
|
|
89
100
|
fs.rmSync(file, { force: true });
|
|
90
101
|
}
|
|
91
|
-
catch {
|
|
102
|
+
catch (cause) {
|
|
103
|
+
if (required)
|
|
104
|
+
throw new Error(`@ttsc/unplugin: cannot remove project record before cache restoration: ${file}`, { cause });
|
|
92
105
|
// Held by another process; the next proof removes it.
|
|
93
106
|
}
|
|
94
107
|
return;
|
|
95
108
|
}
|
|
109
|
+
if (record.workspaceReplayRequired === true) {
|
|
110
|
+
signalProjectRecordFile(file, privateStorage, required || opaqueRestore);
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
96
113
|
if (bridge !== undefined) {
|
|
97
114
|
if (!projectRecordArgumentsMatch(record, compilerArgumentsIdentity)) {
|
|
98
|
-
signalProjectRecordFile(file);
|
|
115
|
+
signalProjectRecordFile(file, privateStorage, required);
|
|
99
116
|
return;
|
|
100
117
|
}
|
|
101
|
-
bridge.register(file, projectRecordWatchInputs(record));
|
|
118
|
+
bridge.register(file, projectRecordWatchInputs(record), undefined, undefined, privateStorage || record.privateStorage === true, required);
|
|
102
119
|
return;
|
|
103
120
|
}
|
|
104
121
|
// A proof that cannot run proves nothing, and the record is moved as if it
|
|
@@ -112,7 +129,7 @@ function refreshProjectRecordFile(file, bridge, filesystem = DEFAULT_FILESYSTEM_
|
|
|
112
129
|
moved = record.root;
|
|
113
130
|
}
|
|
114
131
|
if (moved !== undefined)
|
|
115
|
-
signalProjectRecordFile(file);
|
|
132
|
+
signalProjectRecordFile(file, privateStorage, required);
|
|
116
133
|
}
|
|
117
134
|
|
|
118
135
|
export { refreshProjectRecordFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshProjectRecordFile.mjs","sources":["../../../src/core/bridge/refreshProjectRecordFile.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refreshProjectRecordFile.mjs","sources":["../../../src/core/bridge/refreshProjectRecordFile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAYA;;;;;;;;;;;;;;;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,QAAQ,CAAC;YACvD;QACF;QACA,MAAM,CAAC,QAAQ,CACb,IAAI,EACJ,wBAAwB,CAAC,MAAM,CAAC,EAChC,SAAS,EACT,SAAS,EACT,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,EAChD,QAAQ,CACT;QACD;IACF;;;;AAIA,IAAA,IAAI,KAAyB;AAC7B,IAAA,IAAI;QACF,KAAK,GAAG,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,yBAAyB,CAAC;IAC3E;AAAE,IAAA,MAAM;AACN,QAAA,KAAK,GAAG,MAAM,CAAC,IAAI;IACrB;IACA,IAAI,KAAK,KAAK,SAAS;AACrB,QAAA,uBAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC;AAC3D;;;;"}
|
|
@@ -16,11 +16,14 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
16
16
|
* none.
|
|
17
17
|
*
|
|
18
18
|
* Each call enumerates the directory and refreshes each `.json` name once; host
|
|
19
|
-
* owners invoke it at their restore/start boundaries.
|
|
20
|
-
*
|
|
19
|
+
* owners invoke it at their restore/start boundaries. A managed inventory
|
|
20
|
+
* qualifies its ancestry before listing. A missing directory or a readable
|
|
21
|
+
* empty directory has no records to replay. If a stale managed record needs
|
|
22
|
+
* invalidation, startup requires the signal or removal to complete.
|
|
21
23
|
*
|
|
22
24
|
* @param toolDirectory The host's tool directory (`hostToolDirectory`).
|
|
23
25
|
* @param bridge The watching session's bridge, when the host has one.
|
|
26
|
+
* @throws When managed records cannot be enumerated or safely refreshed.
|
|
24
27
|
* @evidence contracts/common.md#principled-implementation
|
|
25
28
|
* Every persisted project record is refreshed because an opaque host cache can
|
|
26
29
|
* restore projects other than the current option's project. Absent directories
|
|
@@ -34,7 +37,7 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
34
37
|
* @evidence contracts/common.md#meaningful-documentation
|
|
35
38
|
* Native paragraphs explain complete inventory and per-build proof cost,
|
|
36
39
|
* with parameter/tag separation following documentation guidance.
|
|
37
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native
|
|
40
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native ancestry proof checks managed paths before listing. Managed access or update failures prevent opaque restoration; ordinary host paths keep their existing refresh policy.
|
|
38
41
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
39
42
|
* Native listing allocates N directory names; suffix tests scan their text
|
|
40
43
|
* and selected .json names pay path joins and delegated record parse/replay,
|
|
@@ -47,4 +50,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
47
50
|
* the supplied bridge owns later qualified observer sharing.
|
|
48
51
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This synchronous inventory retains only a call-local name array; the bridge and per-record refresh own transferred registrations and record deletion.
|
|
49
52
|
*/
|
|
50
|
-
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
53
|
+
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean): void;
|
|
@@ -16,11 +16,14 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
16
16
|
* none.
|
|
17
17
|
*
|
|
18
18
|
* Each call enumerates the directory and refreshes each `.json` name once; host
|
|
19
|
-
* owners invoke it at their restore/start boundaries.
|
|
20
|
-
*
|
|
19
|
+
* owners invoke it at their restore/start boundaries. A managed inventory
|
|
20
|
+
* qualifies its ancestry before listing. A missing directory or a readable
|
|
21
|
+
* empty directory has no records to replay. If a stale managed record needs
|
|
22
|
+
* invalidation, startup requires the signal or removal to complete.
|
|
21
23
|
*
|
|
22
24
|
* @param toolDirectory The host's tool directory (`hostToolDirectory`).
|
|
23
25
|
* @param bridge The watching session's bridge, when the host has one.
|
|
26
|
+
* @throws When managed records cannot be enumerated or safely refreshed.
|
|
24
27
|
* @evidence contracts/common.md#principled-implementation
|
|
25
28
|
* Every persisted project record is refreshed because an opaque host cache can
|
|
26
29
|
* restore projects other than the current option's project. Absent directories
|
|
@@ -34,7 +37,7 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
34
37
|
* @evidence contracts/common.md#meaningful-documentation
|
|
35
38
|
* Native paragraphs explain complete inventory and per-build proof cost,
|
|
36
39
|
* with parameter/tag separation following documentation guidance.
|
|
37
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native
|
|
40
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native ancestry proof checks managed paths before listing. Managed access or update failures prevent opaque restoration; ordinary host paths keep their existing refresh policy.
|
|
38
41
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
39
42
|
* Native listing allocates N directory names; suffix tests scan their text
|
|
40
43
|
* and selected .json names pay path joins and delegated record parse/replay,
|
|
@@ -47,4 +50,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
47
50
|
* the supplied bridge owns later qualified observer sharing.
|
|
48
51
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This synchronous inventory retains only a call-local name array; the bridge and per-record refresh own transferred registrations and record deletion.
|
|
49
52
|
*/
|
|
50
|
-
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
53
|
+
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean): void;
|
|
@@ -16,11 +16,14 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
16
16
|
* none.
|
|
17
17
|
*
|
|
18
18
|
* Each call enumerates the directory and refreshes each `.json` name once; host
|
|
19
|
-
* owners invoke it at their restore/start boundaries.
|
|
20
|
-
*
|
|
19
|
+
* owners invoke it at their restore/start boundaries. A managed inventory
|
|
20
|
+
* qualifies its ancestry before listing. A missing directory or a readable
|
|
21
|
+
* empty directory has no records to replay. If a stale managed record needs
|
|
22
|
+
* invalidation, startup requires the signal or removal to complete.
|
|
21
23
|
*
|
|
22
24
|
* @param toolDirectory The host's tool directory (`hostToolDirectory`).
|
|
23
25
|
* @param bridge The watching session's bridge, when the host has one.
|
|
26
|
+
* @throws When managed records cannot be enumerated or safely refreshed.
|
|
24
27
|
* @evidence contracts/common.md#principled-implementation
|
|
25
28
|
* Every persisted project record is refreshed because an opaque host cache can
|
|
26
29
|
* restore projects other than the current option's project. Absent directories
|
|
@@ -34,7 +37,7 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
34
37
|
* @evidence contracts/common.md#meaningful-documentation
|
|
35
38
|
* Native paragraphs explain complete inventory and per-build proof cost,
|
|
36
39
|
* with parameter/tag separation following documentation guidance.
|
|
37
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native
|
|
40
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native ancestry proof checks managed paths before listing. Managed access or update failures prevent opaque restoration; ordinary host paths keep their existing refresh policy.
|
|
38
41
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
39
42
|
* Native listing allocates N directory names; suffix tests scan their text
|
|
40
43
|
* and selected .json names pay path joins and delegated record parse/replay,
|
|
@@ -47,4 +50,4 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
47
50
|
* the supplied bridge owns later qualified observer sharing.
|
|
48
51
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This synchronous inventory retains only a call-local name array; the bridge and per-record refresh own transferred registrations and record deletion.
|
|
49
52
|
*/
|
|
50
|
-
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string): void;
|
|
53
|
+
export declare function refreshProjectRecordFiles(toolDirectory: string, bridge?: HostWatchBridge, filesystem?: TtscTransformFilesystemOperations, compilerArgumentsIdentity?: string, privateStorage?: boolean): void;
|
|
@@ -4,6 +4,8 @@ var fs = require('node:fs');
|
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var DEFAULT_FILESYSTEM_OPERATIONS = require('../transform/filesystem/DEFAULT_FILESYSTEM_OPERATIONS.js');
|
|
6
6
|
var PROJECT_RECORD_DIRECTORY = require('./PROJECT_RECORD_DIRECTORY.js');
|
|
7
|
+
var fallbackRecordStorage = require('./fallbackRecordStorage.js');
|
|
8
|
+
var privateProjectRecordAvailable = require('./privateProjectRecordAvailable.js');
|
|
7
9
|
var refreshProjectRecordFile = require('./refreshProjectRecordFile.js');
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -22,11 +24,14 @@ var refreshProjectRecordFile = require('./refreshProjectRecordFile.js');
|
|
|
22
24
|
* none.
|
|
23
25
|
*
|
|
24
26
|
* Each call enumerates the directory and refreshes each `.json` name once; host
|
|
25
|
-
* owners invoke it at their restore/start boundaries.
|
|
26
|
-
*
|
|
27
|
+
* owners invoke it at their restore/start boundaries. A managed inventory
|
|
28
|
+
* qualifies its ancestry before listing. A missing directory or a readable
|
|
29
|
+
* empty directory has no records to replay. If a stale managed record needs
|
|
30
|
+
* invalidation, startup requires the signal or removal to complete.
|
|
27
31
|
*
|
|
28
32
|
* @param toolDirectory The host's tool directory (`hostToolDirectory`).
|
|
29
33
|
* @param bridge The watching session's bridge, when the host has one.
|
|
34
|
+
* @throws When managed records cannot be enumerated or safely refreshed.
|
|
30
35
|
* @evidence contracts/common.md#principled-implementation
|
|
31
36
|
* Every persisted project record is refreshed because an opaque host cache can
|
|
32
37
|
* restore projects other than the current option's project. Absent directories
|
|
@@ -40,7 +45,7 @@ var refreshProjectRecordFile = require('./refreshProjectRecordFile.js');
|
|
|
40
45
|
* @evidence contracts/common.md#meaningful-documentation
|
|
41
46
|
* Native paragraphs explain complete inventory and per-build proof cost,
|
|
42
47
|
* with parameter/tag separation following documentation guidance.
|
|
43
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native
|
|
48
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native ancestry proof checks managed paths before listing. Managed access or update failures prevent opaque restoration; ordinary host paths keep their existing refresh policy.
|
|
44
49
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
45
50
|
* Native listing allocates N directory names; suffix tests scan their text
|
|
46
51
|
* and selected .json names pay path joins and delegated record parse/replay,
|
|
@@ -53,18 +58,35 @@ var refreshProjectRecordFile = require('./refreshProjectRecordFile.js');
|
|
|
53
58
|
* the supplied bridge owns later qualified observer sharing.
|
|
54
59
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This synchronous inventory retains only a call-local name array; the bridge and per-record refresh own transferred registrations and record deletion.
|
|
55
60
|
*/
|
|
56
|
-
function refreshProjectRecordFiles(toolDirectory, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS.DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity) {
|
|
61
|
+
function refreshProjectRecordFiles(toolDirectory, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS.DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity, privateStorage = false) {
|
|
57
62
|
const directory = path.join(toolDirectory, PROJECT_RECORD_DIRECTORY.PROJECT_RECORD_DIRECTORY);
|
|
63
|
+
const unsafe = () => new Error(`@ttsc/unplugin: unsafe private project records prevent cache restoration: ${directory}`);
|
|
64
|
+
if (privateStorage) {
|
|
65
|
+
const inventory = fallbackRecordStorage.fallbackRecordStorage.inventory(directory);
|
|
66
|
+
if (inventory === "missing")
|
|
67
|
+
return;
|
|
68
|
+
if (inventory === "blocked")
|
|
69
|
+
throw unsafe();
|
|
70
|
+
}
|
|
58
71
|
let names;
|
|
59
72
|
try {
|
|
60
73
|
names = fs.readdirSync(directory);
|
|
61
74
|
}
|
|
62
|
-
catch {
|
|
75
|
+
catch (error) {
|
|
76
|
+
if (privateStorage)
|
|
77
|
+
throw new Error(`@ttsc/unplugin: cannot inspect private project records before cache restoration: ${directory}`, { cause: error });
|
|
63
78
|
return;
|
|
64
79
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
const records = names
|
|
81
|
+
.filter((name) => name.endsWith(".json"))
|
|
82
|
+
.map((name) => path.join(directory, name));
|
|
83
|
+
if (privateStorage &&
|
|
84
|
+
records.length !== 0 &&
|
|
85
|
+
(fallbackRecordStorage.fallbackRecordStorage(directory, false) !== true ||
|
|
86
|
+
records.some((file) => !privateProjectRecordAvailable.privateProjectRecordAvailable(file))))
|
|
87
|
+
throw unsafe();
|
|
88
|
+
for (const file of records) {
|
|
89
|
+
refreshProjectRecordFile.refreshProjectRecordFile(file, bridge, filesystem, compilerArgumentsIdentity, privateStorage, privateStorage, true);
|
|
68
90
|
}
|
|
69
91
|
}
|
|
70
92
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshProjectRecordFiles.js","sources":["../../../src/core/bridge/refreshProjectRecordFiles.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","PROJECT_RECORD_DIRECTORY","refreshProjectRecordFile"],"mappings":"
|
|
1
|
+
{"version":3,"file":"refreshProjectRecordFiles.js","sources":["../../../src/core/bridge/refreshProjectRecordFiles.ts"],"sourcesContent":[null],"names":["DEFAULT_FILESYSTEM_OPERATIONS","PROJECT_RECORD_DIRECTORY","fallbackRecordStorage","privateProjectRecordAvailable","refreshProjectRecordFile"],"mappings":";;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDG;AACG,SAAU,yBAAyB,CACvC,aAAqB,EACrB,MAAwB,EACxB,UAAA,GAAgDA,2DAA6B,EAC7E,yBAAkC,EAClC,cAAc,GAAG,KAAK,EAAA;IAEtB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAEC,iDAAwB,CAAC;AACpE,IAAA,MAAM,MAAM,GAAG,MACb,IAAI,KAAK,CACP,CAAA,0EAAA,EAA6E,SAAS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_FILESYSTEM_OPERATIONS.mjs';
|
|
4
4
|
import { PROJECT_RECORD_DIRECTORY } from './PROJECT_RECORD_DIRECTORY.mjs';
|
|
5
|
+
import { fallbackRecordStorage } from './fallbackRecordStorage.mjs';
|
|
6
|
+
import { privateProjectRecordAvailable } from './privateProjectRecordAvailable.mjs';
|
|
5
7
|
import { refreshProjectRecordFile } from './refreshProjectRecordFile.mjs';
|
|
6
8
|
|
|
7
9
|
/**
|
|
@@ -20,11 +22,14 @@ import { refreshProjectRecordFile } from './refreshProjectRecordFile.mjs';
|
|
|
20
22
|
* none.
|
|
21
23
|
*
|
|
22
24
|
* Each call enumerates the directory and refreshes each `.json` name once; host
|
|
23
|
-
* owners invoke it at their restore/start boundaries.
|
|
24
|
-
*
|
|
25
|
+
* owners invoke it at their restore/start boundaries. A managed inventory
|
|
26
|
+
* qualifies its ancestry before listing. A missing directory or a readable
|
|
27
|
+
* empty directory has no records to replay. If a stale managed record needs
|
|
28
|
+
* invalidation, startup requires the signal or removal to complete.
|
|
25
29
|
*
|
|
26
30
|
* @param toolDirectory The host's tool directory (`hostToolDirectory`).
|
|
27
31
|
* @param bridge The watching session's bridge, when the host has one.
|
|
32
|
+
* @throws When managed records cannot be enumerated or safely refreshed.
|
|
28
33
|
* @evidence contracts/common.md#principled-implementation
|
|
29
34
|
* Every persisted project record is refreshed because an opaque host cache can
|
|
30
35
|
* restore projects other than the current option's project. Absent directories
|
|
@@ -38,7 +43,7 @@ import { refreshProjectRecordFile } from './refreshProjectRecordFile.mjs';
|
|
|
38
43
|
* @evidence contracts/common.md#meaningful-documentation
|
|
39
44
|
* Native paragraphs explain complete inventory and per-build proof cost,
|
|
40
45
|
* with parameter/tag separation following documentation guidance.
|
|
41
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native
|
|
46
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native ancestry proof checks managed paths before listing. Managed access or update failures prevent opaque restoration; ordinary host paths keep their existing refresh policy.
|
|
42
47
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
43
48
|
* Native listing allocates N directory names; suffix tests scan their text
|
|
44
49
|
* and selected .json names pay path joins and delegated record parse/replay,
|
|
@@ -51,18 +56,35 @@ import { refreshProjectRecordFile } from './refreshProjectRecordFile.mjs';
|
|
|
51
56
|
* the supplied bridge owns later qualified observer sharing.
|
|
52
57
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources This synchronous inventory retains only a call-local name array; the bridge and per-record refresh own transferred registrations and record deletion.
|
|
53
58
|
*/
|
|
54
|
-
function refreshProjectRecordFiles(toolDirectory, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity) {
|
|
59
|
+
function refreshProjectRecordFiles(toolDirectory, bridge, filesystem = DEFAULT_FILESYSTEM_OPERATIONS, compilerArgumentsIdentity, privateStorage = false) {
|
|
55
60
|
const directory = path.join(toolDirectory, PROJECT_RECORD_DIRECTORY);
|
|
61
|
+
const unsafe = () => new Error(`@ttsc/unplugin: unsafe private project records prevent cache restoration: ${directory}`);
|
|
62
|
+
if (privateStorage) {
|
|
63
|
+
const inventory = fallbackRecordStorage.inventory(directory);
|
|
64
|
+
if (inventory === "missing")
|
|
65
|
+
return;
|
|
66
|
+
if (inventory === "blocked")
|
|
67
|
+
throw unsafe();
|
|
68
|
+
}
|
|
56
69
|
let names;
|
|
57
70
|
try {
|
|
58
71
|
names = fs.readdirSync(directory);
|
|
59
72
|
}
|
|
60
|
-
catch {
|
|
73
|
+
catch (error) {
|
|
74
|
+
if (privateStorage)
|
|
75
|
+
throw new Error(`@ttsc/unplugin: cannot inspect private project records before cache restoration: ${directory}`, { cause: error });
|
|
61
76
|
return;
|
|
62
77
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
78
|
+
const records = names
|
|
79
|
+
.filter((name) => name.endsWith(".json"))
|
|
80
|
+
.map((name) => path.join(directory, name));
|
|
81
|
+
if (privateStorage &&
|
|
82
|
+
records.length !== 0 &&
|
|
83
|
+
(fallbackRecordStorage(directory, false) !== true ||
|
|
84
|
+
records.some((file) => !privateProjectRecordAvailable(file))))
|
|
85
|
+
throw unsafe();
|
|
86
|
+
for (const file of records) {
|
|
87
|
+
refreshProjectRecordFile(file, bridge, filesystem, compilerArgumentsIdentity, privateStorage, privateStorage, true);
|
|
66
88
|
}
|
|
67
89
|
}
|
|
68
90
|
|