@ttsc/unplugin 0.38.1 → 0.38.3
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,78 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var path = require('node:path');
|
|
4
|
-
var
|
|
5
|
-
var projectRecordDirectoryWritable = require('../bridge/projectRecordDirectoryWritable.js');
|
|
4
|
+
var prepareProjectRecordDirectory = require('../bridge/prepareProjectRecordDirectory.js');
|
|
6
5
|
var farmRecordFallback = require('./farmRecordFallback.js');
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
|
-
* Farm's
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Disable Farm's persistent cache when no project record can be written: the
|
|
9
|
+
* root's own `node_modules/.cache/ttsc/unplugin` cannot hold one, and neither
|
|
10
|
+
* can the same-volume fallback (`farmRecordFallback`). Farm has no per-module
|
|
11
|
+
* persistent-cache switch, so without a record an edit made while Farm was
|
|
12
|
+
* stopped could leave an old transformed module in its cache. A record Farm
|
|
13
|
+
* holds as a watch file is revalidated when Farm starts again, below
|
|
14
|
+
* `node_modules` as anywhere else (measured on Farm 1.7.11 and 2.0.1).
|
|
12
15
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* will exist: below its root (`hostToolDirectory`), or in the fallback it
|
|
22
|
-
* accepts (`farmRecordFallback`), each tested by a current write. This does not
|
|
23
|
-
* promise later write capability. Where neither can be written persistent cache
|
|
24
|
-
* use is disabled in the returned configuration, and the user is told once why,
|
|
25
|
-
* as a Node process warning, code `TTSC_PROJECT_RECORD_UNWRITABLE`.
|
|
26
|
-
*
|
|
27
|
-
* @param config Farm's user configuration, as its `config` hook receives it.
|
|
28
|
-
* @param cwd The directory Farm runs in, the root when the configuration names
|
|
29
|
-
* none.
|
|
30
|
-
* @evidence contracts/common.md#principled-implementation Current record-directory probes select whether Farm is asked to retain persistent modules; when both fail the returned config disables that cache. Later writes still need delivery-time failure handling, so a successful probe is not lifetime invalidation authority.
|
|
31
|
-
* @evidence contracts/common.md#clear-and-simple-design The configuration hook probes the two existing record locations and returns a shallow config/compilation copy changing persistentCache when needed. Other own enumerable fields and shared nested values are preserved.
|
|
32
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts This is a host capability boundary with a stated invalidation reason, rather than a test-only bypass, patched cache implementation, or assumed writable directory.
|
|
33
|
-
* @evidence contracts/common.md#meaningful-documentation The comment explains why per-module opt-out is unavailable and why the warning and configuration-level fallback are necessary.
|
|
34
|
-
* @evidence contracts/portability.md#os-neutral-implementation Writability is proven by an actual write below the tool directory and the fallback, and the root is resolved with path.resolve against cwd, so no operating-system name, permission bit or drive layout is assumed.
|
|
35
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
36
|
-
* At most two write probes retain native path/mkdir/write/removal work and
|
|
37
|
-
* delegated fallback naming/trust setup. Warning text follows path length;
|
|
38
|
-
* disabling cache copies the config/compilation own fields. A fixed probe
|
|
39
|
-
* count does not make native operations or field populations constant cost.
|
|
40
|
-
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
41
|
-
* The WARNED set emits the unwritable-records warning once per tool
|
|
42
|
-
* directory spelling, not once per config pass. It marks before emission,
|
|
43
|
-
* so it suppresses later attempts rather than certifying user receipt. Write
|
|
44
|
-
* capability is still freshly probed instead of reused from that warning key.
|
|
45
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
46
|
-
* WARNED retains each distinct tool-directory spelling for the process life,
|
|
47
|
-
* without eviction or a fixed string-byte bound. Probe cleanup and persistent
|
|
48
|
-
* directories belong to the write-probe helper; failed removal can leave its
|
|
49
|
-
* probe. Returned config ownership transfers to Farm.
|
|
16
|
+
* @evidence contracts/common.md#principled-implementation The configuration hook keeps persistent caching whenever the default record directory or the private fallback on Farm's volume can host an ordinary record directory; a later write retains its own error handling.
|
|
17
|
+
* @evidence contracts/common.md#clear-and-simple-design The default location's probe and the fallback query, in the order records are written, decide whether to copy the config with persistentCache disabled.
|
|
18
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No probe file or nonignored project directory is created to test the candidate.
|
|
19
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains the host limitation, invalidation failure and configuration-level fallback.
|
|
20
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native path resolution and filesystem access checks observe the candidate under the host's selected root and platform permissions.
|
|
21
|
+
* @evidence contracts/performance.md#efficient-algorithms The default location's bounded component walk runs first, and the fallback's ancestor walk only when it refuses; the disabled case copies the configuration's own properties.
|
|
22
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Writability is observed afresh on each configuration pass.
|
|
23
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The warning set retains one spelling per refused root for the process lifetime, with no fixed cap. No probe file or handle is retained.
|
|
50
24
|
*/
|
|
51
25
|
function farmPersistentCacheWithoutRecords(config, cwd) {
|
|
52
26
|
if (config.compilation?.persistentCache === false)
|
|
53
27
|
return config;
|
|
54
28
|
const root = path.resolve(cwd, config.root ?? ".");
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return config;
|
|
58
|
-
const fallback = farmRecordFallback.farmRecordFallback(root);
|
|
59
|
-
if (fallback !== undefined && projectRecordDirectoryWritable.projectRecordDirectoryWritable(fallback)) {
|
|
29
|
+
if (prepareProjectRecordDirectory.prepareProjectRecordDirectory.available(root) ||
|
|
30
|
+
farmRecordFallback.farmRecordFallback(root) !== undefined)
|
|
60
31
|
return config;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
`${toolDirectory}, nor anywhere else Farm accepts them, so Farm's ` +
|
|
66
|
-
"persistent cache is turned off: it would restore a module whatever " +
|
|
67
|
-
"the types its output consulted did while Farm was stopped. Let the " +
|
|
68
|
-
`adapter write below ${toolDirectory}.`, { code: "TTSC_PROJECT_RECORD_UNWRITABLE" });
|
|
32
|
+
if (!WARNED.has(root)) {
|
|
33
|
+
WARNED.add(root);
|
|
34
|
+
process.emitWarning(`@ttsc/unplugin: Farm's persistent cache is off for ${root}. ` +
|
|
35
|
+
"Neither its node_modules/.cache nor a writable same-volume directory can hold its project records.", { code: "TTSC_PROJECT_RECORD_UNWRITABLE" });
|
|
69
36
|
}
|
|
70
37
|
return {
|
|
71
38
|
...config,
|
|
72
39
|
compilation: { ...config.compilation, persistentCache: false },
|
|
73
40
|
};
|
|
74
41
|
}
|
|
75
|
-
/** The
|
|
42
|
+
/** The host roots this process already warned about. */
|
|
76
43
|
const WARNED = new Set();
|
|
77
44
|
|
|
78
45
|
exports.farmPersistentCacheWithoutRecords = farmPersistentCacheWithoutRecords;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farmPersistentCacheWithoutRecords.js","sources":["../../../src/core/farm/farmPersistentCacheWithoutRecords.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"farmPersistentCacheWithoutRecords.js","sources":["../../../src/core/farm/farmPersistentCacheWithoutRecords.ts"],"sourcesContent":[null],"names":["prepareProjectRecordDirectory","farmRecordFallback"],"mappings":";;;;;;AAKA;;;;;;;;;;;;;;;;;AAiBG;AACG,SAAU,iCAAiC,CAK/C,MAAc,EAAE,GAAW,EAAA;AAC3B,IAAA,IAAI,MAAM,CAAC,WAAW,EAAE,eAAe,KAAK,KAAK;AAAE,QAAA,OAAO,MAAM;AAChE,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC;AAClD,IAAA,IACEA,2DAA6B,CAAC,SAAS,CAAC,IAAI,CAAC;AAC7C,QAAAC,qCAAkB,CAAC,IAAI,CAAC,KAAK,SAAS;AAEtC,QAAA,OAAO,MAAM;IACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AACrB,QAAA,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AAChB,QAAA,OAAO,CAAC,WAAW,CACjB,CAAA,mDAAA,EAAsD,IAAI,CAAA,EAAA,CAAI;AAC5D,YAAA,oGAAoG,EACtG,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAC3C;IACH;IACA,OAAO;AACL,QAAA,GAAG,MAAM;QACT,WAAW,EAAE,EAAE,GAAG,MAAM,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE;KAC/D;AACH;AAEA;AACA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU;;;;"}
|
|
@@ -1,76 +1,43 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import {
|
|
3
|
-
import { projectRecordDirectoryWritable } from '../bridge/projectRecordDirectoryWritable.mjs';
|
|
2
|
+
import { prepareProjectRecordDirectory } from '../bridge/prepareProjectRecordDirectory.mjs';
|
|
4
3
|
import { farmRecordFallback } from './farmRecordFallback.mjs';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
|
-
* Farm's
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Disable Farm's persistent cache when no project record can be written: the
|
|
7
|
+
* root's own `node_modules/.cache/ttsc/unplugin` cannot hold one, and neither
|
|
8
|
+
* can the same-volume fallback (`farmRecordFallback`). Farm has no per-module
|
|
9
|
+
* persistent-cache switch, so without a record an edit made while Farm was
|
|
10
|
+
* stopped could leave an old transformed module in its cache. A record Farm
|
|
11
|
+
* holds as a watch file is revalidated when Farm starts again, below
|
|
12
|
+
* `node_modules` as anywhere else (measured on Farm 1.7.11 and 2.0.1).
|
|
10
13
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* will exist: below its root (`hostToolDirectory`), or in the fallback it
|
|
20
|
-
* accepts (`farmRecordFallback`), each tested by a current write. This does not
|
|
21
|
-
* promise later write capability. Where neither can be written persistent cache
|
|
22
|
-
* use is disabled in the returned configuration, and the user is told once why,
|
|
23
|
-
* as a Node process warning, code `TTSC_PROJECT_RECORD_UNWRITABLE`.
|
|
24
|
-
*
|
|
25
|
-
* @param config Farm's user configuration, as its `config` hook receives it.
|
|
26
|
-
* @param cwd The directory Farm runs in, the root when the configuration names
|
|
27
|
-
* none.
|
|
28
|
-
* @evidence contracts/common.md#principled-implementation Current record-directory probes select whether Farm is asked to retain persistent modules; when both fail the returned config disables that cache. Later writes still need delivery-time failure handling, so a successful probe is not lifetime invalidation authority.
|
|
29
|
-
* @evidence contracts/common.md#clear-and-simple-design The configuration hook probes the two existing record locations and returns a shallow config/compilation copy changing persistentCache when needed. Other own enumerable fields and shared nested values are preserved.
|
|
30
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts This is a host capability boundary with a stated invalidation reason, rather than a test-only bypass, patched cache implementation, or assumed writable directory.
|
|
31
|
-
* @evidence contracts/common.md#meaningful-documentation The comment explains why per-module opt-out is unavailable and why the warning and configuration-level fallback are necessary.
|
|
32
|
-
* @evidence contracts/portability.md#os-neutral-implementation Writability is proven by an actual write below the tool directory and the fallback, and the root is resolved with path.resolve against cwd, so no operating-system name, permission bit or drive layout is assumed.
|
|
33
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
34
|
-
* At most two write probes retain native path/mkdir/write/removal work and
|
|
35
|
-
* delegated fallback naming/trust setup. Warning text follows path length;
|
|
36
|
-
* disabling cache copies the config/compilation own fields. A fixed probe
|
|
37
|
-
* count does not make native operations or field populations constant cost.
|
|
38
|
-
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
39
|
-
* The WARNED set emits the unwritable-records warning once per tool
|
|
40
|
-
* directory spelling, not once per config pass. It marks before emission,
|
|
41
|
-
* so it suppresses later attempts rather than certifying user receipt. Write
|
|
42
|
-
* capability is still freshly probed instead of reused from that warning key.
|
|
43
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
44
|
-
* WARNED retains each distinct tool-directory spelling for the process life,
|
|
45
|
-
* without eviction or a fixed string-byte bound. Probe cleanup and persistent
|
|
46
|
-
* directories belong to the write-probe helper; failed removal can leave its
|
|
47
|
-
* probe. Returned config ownership transfers to Farm.
|
|
14
|
+
* @evidence contracts/common.md#principled-implementation The configuration hook keeps persistent caching whenever the default record directory or the private fallback on Farm's volume can host an ordinary record directory; a later write retains its own error handling.
|
|
15
|
+
* @evidence contracts/common.md#clear-and-simple-design The default location's probe and the fallback query, in the order records are written, decide whether to copy the config with persistentCache disabled.
|
|
16
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No probe file or nonignored project directory is created to test the candidate.
|
|
17
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains the host limitation, invalidation failure and configuration-level fallback.
|
|
18
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native path resolution and filesystem access checks observe the candidate under the host's selected root and platform permissions.
|
|
19
|
+
* @evidence contracts/performance.md#efficient-algorithms The default location's bounded component walk runs first, and the fallback's ancestor walk only when it refuses; the disabled case copies the configuration's own properties.
|
|
20
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Writability is observed afresh on each configuration pass.
|
|
21
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The warning set retains one spelling per refused root for the process lifetime, with no fixed cap. No probe file or handle is retained.
|
|
48
22
|
*/
|
|
49
23
|
function farmPersistentCacheWithoutRecords(config, cwd) {
|
|
50
24
|
if (config.compilation?.persistentCache === false)
|
|
51
25
|
return config;
|
|
52
26
|
const root = path.resolve(cwd, config.root ?? ".");
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return config;
|
|
56
|
-
const fallback = farmRecordFallback(root);
|
|
57
|
-
if (fallback !== undefined && projectRecordDirectoryWritable(fallback)) {
|
|
27
|
+
if (prepareProjectRecordDirectory.available(root) ||
|
|
28
|
+
farmRecordFallback(root) !== undefined)
|
|
58
29
|
return config;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`${toolDirectory}, nor anywhere else Farm accepts them, so Farm's ` +
|
|
64
|
-
"persistent cache is turned off: it would restore a module whatever " +
|
|
65
|
-
"the types its output consulted did while Farm was stopped. Let the " +
|
|
66
|
-
`adapter write below ${toolDirectory}.`, { code: "TTSC_PROJECT_RECORD_UNWRITABLE" });
|
|
30
|
+
if (!WARNED.has(root)) {
|
|
31
|
+
WARNED.add(root);
|
|
32
|
+
process.emitWarning(`@ttsc/unplugin: Farm's persistent cache is off for ${root}. ` +
|
|
33
|
+
"Neither its node_modules/.cache nor a writable same-volume directory can hold its project records.", { code: "TTSC_PROJECT_RECORD_UNWRITABLE" });
|
|
67
34
|
}
|
|
68
35
|
return {
|
|
69
36
|
...config,
|
|
70
37
|
compilation: { ...config.compilation, persistentCache: false },
|
|
71
38
|
};
|
|
72
39
|
}
|
|
73
|
-
/** The
|
|
40
|
+
/** The host roots this process already warned about. */
|
|
74
41
|
const WARNED = new Set();
|
|
75
42
|
|
|
76
43
|
export { farmPersistentCacheWithoutRecords };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farmPersistentCacheWithoutRecords.mjs","sources":["../../../src/core/farm/farmPersistentCacheWithoutRecords.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"farmPersistentCacheWithoutRecords.mjs","sources":["../../../src/core/farm/farmPersistentCacheWithoutRecords.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;AAiBG;AACG,SAAU,iCAAiC,CAK/C,MAAc,EAAE,GAAW,EAAA;AAC3B,IAAA,IAAI,MAAM,CAAC,WAAW,EAAE,eAAe,KAAK,KAAK;AAAE,QAAA,OAAO,MAAM;AAChE,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,IAAI,GAAG,CAAC;AAClD,IAAA,IACE,6BAA6B,CAAC,SAAS,CAAC,IAAI,CAAC;AAC7C,QAAA,kBAAkB,CAAC,IAAI,CAAC,KAAK,SAAS;AAEtC,QAAA,OAAO,MAAM;IACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AACrB,QAAA,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AAChB,QAAA,OAAO,CAAC,WAAW,CACjB,CAAA,mDAAA,EAAsD,IAAI,CAAA,EAAA,CAAI;AAC5D,YAAA,oGAAoG,EACtG,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAC3C;IACH;IACA,OAAO;AACL,QAAA,GAAG,MAAM;QACT,WAAW,EAAE,EAAE,GAAG,MAAM,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE;KAC/D;AACH;AAEA;AACA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU;;;;"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The fallback tool directory Farm accepts for a root
|
|
3
|
-
*
|
|
2
|
+
* The fallback tool directory Farm accepts for a root whose own
|
|
3
|
+
* `node_modules/.cache` cannot hold records, or `undefined` when it accepts
|
|
4
|
+
* none (samchon/ttsc#1480).
|
|
4
5
|
*
|
|
5
|
-
* Farm computes every watch file's path relative to its root and
|
|
6
|
-
* it cannot relate, such as a file on another Windows drive
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* Farm 1 computes every watch file's path relative to its root and panics on
|
|
7
|
+
* one it cannot relate, such as a file on another Windows drive (measured on
|
|
8
|
+
* Farm 1.7.11: `Invalid relative`). The fallback below this user's validated
|
|
9
|
+
* state directory (`fallbackToolDirectory`) therefore qualifies only where it
|
|
10
|
+
* shares the root's drive. Farm's watcher need not observe it, since the
|
|
11
|
+
* adapter tells Farm of every move itself (`createFarmRecordUpdates`,
|
|
12
|
+
* samchon/ttsc#1942).
|
|
12
13
|
*
|
|
13
14
|
* @param root Farm's configured root.
|
|
14
|
-
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root
|
|
15
|
-
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with
|
|
15
|
+
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root, the one watch-file restriction left once the adapter reports record moves itself.
|
|
16
|
+
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with the host's one restriction instead of creating another record location policy.
|
|
16
17
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts No drive letter or user directory is hardcoded; rejection follows the host's actual path and watcher capabilities.
|
|
17
|
-
* @evidence contracts/common.md#meaningful-documentation The native comment names
|
|
18
|
-
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters
|
|
18
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment names the host restriction, where it was measured, and why the watcher's own limits no longer apply.
|
|
19
|
+
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters.
|
|
19
20
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
20
|
-
* Native relative/isAbsolute processing follows root/fallback text
|
|
21
|
-
* split/includes scans its path components and allocates their array. Cold
|
|
21
|
+
* Native relative/isAbsolute processing follows root/fallback text. Cold
|
|
22
22
|
* fallback naming additionally retains native user-state trust setup and
|
|
23
23
|
* root hashing; a cached name does not certify current writability.
|
|
24
24
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The fallback tool directory Farm accepts for a root
|
|
3
|
-
*
|
|
2
|
+
* The fallback tool directory Farm accepts for a root whose own
|
|
3
|
+
* `node_modules/.cache` cannot hold records, or `undefined` when it accepts
|
|
4
|
+
* none (samchon/ttsc#1480).
|
|
4
5
|
*
|
|
5
|
-
* Farm computes every watch file's path relative to its root and
|
|
6
|
-
* it cannot relate, such as a file on another Windows drive
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* Farm 1 computes every watch file's path relative to its root and panics on
|
|
7
|
+
* one it cannot relate, such as a file on another Windows drive (measured on
|
|
8
|
+
* Farm 1.7.11: `Invalid relative`). The fallback below this user's validated
|
|
9
|
+
* state directory (`fallbackToolDirectory`) therefore qualifies only where it
|
|
10
|
+
* shares the root's drive. Farm's watcher need not observe it, since the
|
|
11
|
+
* adapter tells Farm of every move itself (`createFarmRecordUpdates`,
|
|
12
|
+
* samchon/ttsc#1942).
|
|
12
13
|
*
|
|
13
14
|
* @param root Farm's configured root.
|
|
14
|
-
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root
|
|
15
|
-
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with
|
|
15
|
+
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root, the one watch-file restriction left once the adapter reports record moves itself.
|
|
16
|
+
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with the host's one restriction instead of creating another record location policy.
|
|
16
17
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts No drive letter or user directory is hardcoded; rejection follows the host's actual path and watcher capabilities.
|
|
17
|
-
* @evidence contracts/common.md#meaningful-documentation The native comment names
|
|
18
|
-
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters
|
|
18
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment names the host restriction, where it was measured, and why the watcher's own limits no longer apply.
|
|
19
|
+
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters.
|
|
19
20
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
20
|
-
* Native relative/isAbsolute processing follows root/fallback text
|
|
21
|
-
* split/includes scans its path components and allocates their array. Cold
|
|
21
|
+
* Native relative/isAbsolute processing follows root/fallback text. Cold
|
|
22
22
|
* fallback naming additionally retains native user-state trust setup and
|
|
23
23
|
* root hashing; a cached name does not certify current writability.
|
|
24
24
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The fallback tool directory Farm accepts for a root
|
|
3
|
-
*
|
|
2
|
+
* The fallback tool directory Farm accepts for a root whose own
|
|
3
|
+
* `node_modules/.cache` cannot hold records, or `undefined` when it accepts
|
|
4
|
+
* none (samchon/ttsc#1480).
|
|
4
5
|
*
|
|
5
|
-
* Farm computes every watch file's path relative to its root and
|
|
6
|
-
* it cannot relate, such as a file on another Windows drive
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* Farm 1 computes every watch file's path relative to its root and panics on
|
|
7
|
+
* one it cannot relate, such as a file on another Windows drive (measured on
|
|
8
|
+
* Farm 1.7.11: `Invalid relative`). The fallback below this user's validated
|
|
9
|
+
* state directory (`fallbackToolDirectory`) therefore qualifies only where it
|
|
10
|
+
* shares the root's drive. Farm's watcher need not observe it, since the
|
|
11
|
+
* adapter tells Farm of every move itself (`createFarmRecordUpdates`,
|
|
12
|
+
* samchon/ttsc#1942).
|
|
12
13
|
*
|
|
13
14
|
* @param root Farm's configured root.
|
|
14
|
-
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root
|
|
15
|
-
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with
|
|
15
|
+
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root, the one watch-file restriction left once the adapter reports record moves itself.
|
|
16
|
+
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with the host's one restriction instead of creating another record location policy.
|
|
16
17
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts No drive letter or user directory is hardcoded; rejection follows the host's actual path and watcher capabilities.
|
|
17
|
-
* @evidence contracts/common.md#meaningful-documentation The native comment names
|
|
18
|
-
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters
|
|
18
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment names the host restriction, where it was measured, and why the watcher's own limits no longer apply.
|
|
19
|
+
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters.
|
|
19
20
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
20
|
-
* Native relative/isAbsolute processing follows root/fallback text
|
|
21
|
-
* split/includes scans its path components and allocates their array. Cold
|
|
21
|
+
* Native relative/isAbsolute processing follows root/fallback text. Cold
|
|
22
22
|
* fallback naming additionally retains native user-state trust setup and
|
|
23
23
|
* root hashing; a cached name does not certify current writability.
|
|
24
24
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var path = require('node:path');
|
|
4
|
-
var
|
|
4
|
+
var PROJECT_RECORD_DIRECTORY = require('../bridge/PROJECT_RECORD_DIRECTORY.js');
|
|
5
|
+
var fallbackRecordStorage = require('../bridge/fallbackRecordStorage.js');
|
|
6
|
+
var fallbackToolDirectoryLocation = require('../bridge/fallbackToolDirectoryLocation.js');
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
|
-
* The fallback tool directory Farm accepts for a root
|
|
8
|
-
*
|
|
9
|
+
* The fallback tool directory Farm accepts for a root whose own
|
|
10
|
+
* `node_modules/.cache` cannot hold records, or `undefined` when it accepts
|
|
11
|
+
* none (samchon/ttsc#1480).
|
|
9
12
|
*
|
|
10
|
-
* Farm computes every watch file's path relative to its root and
|
|
11
|
-
* it cannot relate, such as a file on another Windows drive
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* Farm 1 computes every watch file's path relative to its root and panics on
|
|
14
|
+
* one it cannot relate, such as a file on another Windows drive (measured on
|
|
15
|
+
* Farm 1.7.11: `Invalid relative`). The fallback below this user's validated
|
|
16
|
+
* state directory (`fallbackToolDirectory`) therefore qualifies only where it
|
|
17
|
+
* shares the root's drive. Farm's watcher need not observe it, since the
|
|
18
|
+
* adapter tells Farm of every move itself (`createFarmRecordUpdates`,
|
|
19
|
+
* samchon/ttsc#1942).
|
|
17
20
|
*
|
|
18
21
|
* @param root Farm's configured root.
|
|
19
|
-
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root
|
|
20
|
-
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with
|
|
22
|
+
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root, the one watch-file restriction left once the adapter reports record moves itself.
|
|
23
|
+
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with the host's one restriction instead of creating another record location policy.
|
|
21
24
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts No drive letter or user directory is hardcoded; rejection follows the host's actual path and watcher capabilities.
|
|
22
|
-
* @evidence contracts/common.md#meaningful-documentation The native comment names
|
|
23
|
-
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters
|
|
25
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment names the host restriction, where it was measured, and why the watcher's own limits no longer apply.
|
|
26
|
+
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters.
|
|
24
27
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
25
|
-
* Native relative/isAbsolute processing follows root/fallback text
|
|
26
|
-
* split/includes scans its path components and allocates their array. Cold
|
|
28
|
+
* Native relative/isAbsolute processing follows root/fallback text. Cold
|
|
27
29
|
* fallback naming additionally retains native user-state trust setup and
|
|
28
30
|
* root hashing; a cached name does not certify current writability.
|
|
29
31
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work
|
|
@@ -33,14 +35,14 @@ var fallbackToolDirectory = require('../bridge/fallbackToolDirectory.js');
|
|
|
33
35
|
* Acquires no handle, timer or retained state of its own.
|
|
34
36
|
*/
|
|
35
37
|
function farmRecordFallback(root) {
|
|
36
|
-
const fallback =
|
|
38
|
+
const fallback = fallbackToolDirectoryLocation.fallbackToolDirectoryLocation(root);
|
|
37
39
|
if (fallback === undefined)
|
|
38
40
|
return undefined;
|
|
39
41
|
if (path.isAbsolute(path.relative(root, fallback)))
|
|
40
42
|
return undefined;
|
|
41
|
-
return
|
|
42
|
-
?
|
|
43
|
-
:
|
|
43
|
+
return fallbackRecordStorage.fallbackRecordStorage(path.join(fallback, PROJECT_RECORD_DIRECTORY.PROJECT_RECORD_DIRECTORY), false)
|
|
44
|
+
? fallback
|
|
45
|
+
: undefined;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
exports.farmRecordFallback = farmRecordFallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farmRecordFallback.js","sources":["../../../src/core/farm/farmRecordFallback.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"farmRecordFallback.js","sources":["../../../src/core/farm/farmRecordFallback.ts"],"sourcesContent":[null],"names":["fallbackToolDirectoryLocation","fallbackRecordStorage","PROJECT_RECORD_DIRECTORY"],"mappings":";;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACG,SAAU,kBAAkB,CAAC,IAAY,EAAA;AAC7C,IAAA,MAAM,QAAQ,GAAGA,2DAA6B,CAAC,IAAI,CAAC;IACpD,IAAI,QAAQ,KAAK,SAAS;AAAE,QAAA,OAAO,SAAS;AAC5C,IAAA,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAAE,QAAA,OAAO,SAAS;AACpE,IAAA,OAAOC,2CAAqB,CAC1B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAEC,iDAAwB,CAAC,EAC7C,KAAK;AAEL,UAAE;UACA,SAAS;AACf;;;;"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import {
|
|
2
|
+
import { PROJECT_RECORD_DIRECTORY } from '../bridge/PROJECT_RECORD_DIRECTORY.mjs';
|
|
3
|
+
import { fallbackRecordStorage } from '../bridge/fallbackRecordStorage.mjs';
|
|
4
|
+
import { fallbackToolDirectoryLocation } from '../bridge/fallbackToolDirectoryLocation.mjs';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
|
-
* The fallback tool directory Farm accepts for a root
|
|
6
|
-
*
|
|
7
|
+
* The fallback tool directory Farm accepts for a root whose own
|
|
8
|
+
* `node_modules/.cache` cannot hold records, or `undefined` when it accepts
|
|
9
|
+
* none (samchon/ttsc#1480).
|
|
7
10
|
*
|
|
8
|
-
* Farm computes every watch file's path relative to its root and
|
|
9
|
-
* it cannot relate, such as a file on another Windows drive
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* Farm 1 computes every watch file's path relative to its root and panics on
|
|
12
|
+
* one it cannot relate, such as a file on another Windows drive (measured on
|
|
13
|
+
* Farm 1.7.11: `Invalid relative`). The fallback below this user's validated
|
|
14
|
+
* state directory (`fallbackToolDirectory`) therefore qualifies only where it
|
|
15
|
+
* shares the root's drive. Farm's watcher need not observe it, since the
|
|
16
|
+
* adapter tells Farm of every move itself (`createFarmRecordUpdates`,
|
|
17
|
+
* samchon/ttsc#1942).
|
|
15
18
|
*
|
|
16
19
|
* @param root Farm's configured root.
|
|
17
|
-
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root
|
|
18
|
-
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with
|
|
20
|
+
* @evidence contracts/common.md#principled-implementation A fallback is usable only when native relative-path semantics relate it to the Farm root, the one watch-file restriction left once the adapter reports record moves itself.
|
|
21
|
+
* @evidence contracts/common.md#clear-and-simple-design The adapter filters the shared user-state fallback provider with the host's one restriction instead of creating another record location policy.
|
|
19
22
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts No drive letter or user directory is hardcoded; rejection follows the host's actual path and watcher capabilities.
|
|
20
|
-
* @evidence contracts/common.md#meaningful-documentation The native comment names
|
|
21
|
-
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters
|
|
23
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment names the host restriction, where it was measured, and why the watcher's own limits no longer apply.
|
|
24
|
+
* @evidence contracts/portability.md#os-neutral-implementation Containment is decided with path.relative and path.isAbsolute, so a fallback on another Windows drive is refused without comparing drive letters.
|
|
22
25
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
23
|
-
* Native relative/isAbsolute processing follows root/fallback text
|
|
24
|
-
* split/includes scans its path components and allocates their array. Cold
|
|
26
|
+
* Native relative/isAbsolute processing follows root/fallback text. Cold
|
|
25
27
|
* fallback naming additionally retains native user-state trust setup and
|
|
26
28
|
* root hashing; a cached name does not certify current writability.
|
|
27
29
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work
|
|
@@ -31,14 +33,14 @@ import { fallbackToolDirectory } from '../bridge/fallbackToolDirectory.mjs';
|
|
|
31
33
|
* Acquires no handle, timer or retained state of its own.
|
|
32
34
|
*/
|
|
33
35
|
function farmRecordFallback(root) {
|
|
34
|
-
const fallback =
|
|
36
|
+
const fallback = fallbackToolDirectoryLocation(root);
|
|
35
37
|
if (fallback === undefined)
|
|
36
38
|
return undefined;
|
|
37
39
|
if (path.isAbsolute(path.relative(root, fallback)))
|
|
38
40
|
return undefined;
|
|
39
|
-
return
|
|
40
|
-
?
|
|
41
|
-
:
|
|
41
|
+
return fallbackRecordStorage(path.join(fallback, PROJECT_RECORD_DIRECTORY), false)
|
|
42
|
+
? fallback
|
|
43
|
+
: undefined;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export { farmRecordFallback };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farmRecordFallback.mjs","sources":["../../../src/core/farm/farmRecordFallback.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"farmRecordFallback.mjs","sources":["../../../src/core/farm/farmRecordFallback.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACG,SAAU,kBAAkB,CAAC,IAAY,EAAA;AAC7C,IAAA,MAAM,QAAQ,GAAG,6BAA6B,CAAC,IAAI,CAAC;IACpD,IAAI,QAAQ,KAAK,SAAS;AAAE,QAAA,OAAO,SAAS;AAC5C,IAAA,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAAE,QAAA,OAAO,SAAS;AACpE,IAAA,OAAO,qBAAqB,CAC1B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,EAC7C,KAAK;AAEL,UAAE;UACA,SAAS;AACf;;;;"}
|
package/lib/core/next/next.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
4
|
var path = require('node:path');
|
|
5
5
|
var node_url = require('node:url');
|
|
6
|
-
var
|
|
6
|
+
var tsconfig = require('ttsc/tsconfig');
|
|
7
|
+
var fallbackToolDirectoryLocation = require('../bridge/fallbackToolDirectoryLocation.js');
|
|
7
8
|
var hostToolDirectory = require('../bridge/hostToolDirectory.js');
|
|
8
9
|
var refreshProjectRecordFiles = require('../bridge/refreshProjectRecordFiles.js');
|
|
9
10
|
var TYPESCRIPT_TURBOPACK_RULE_GLOBS = require('../source/TYPESCRIPT_TURBOPACK_RULE_GLOBS.js');
|
|
@@ -96,9 +97,9 @@ function next(nextConfig = {}, options) {
|
|
|
96
97
|
refreshProjectRecordFiles.refreshProjectRecordFiles(hostToolDirectory.hostToolDirectory(process.cwd()), undefined, undefined, compilerArguments);
|
|
97
98
|
// And where webpack's records live when that directory cannot be written
|
|
98
99
|
// (samchon/ttsc#1480); Turbopack's loader proves its own.
|
|
99
|
-
const fallback =
|
|
100
|
+
const fallback = fallbackToolDirectoryLocation.fallbackToolDirectoryLocation(process.cwd());
|
|
100
101
|
if (fallback !== undefined)
|
|
101
|
-
refreshProjectRecordFiles.refreshProjectRecordFiles(fallback, undefined, undefined, compilerArguments);
|
|
102
|
+
refreshProjectRecordFiles.refreshProjectRecordFiles(fallback, undefined, undefined, compilerArguments, true);
|
|
102
103
|
return {
|
|
103
104
|
...nextConfig,
|
|
104
105
|
turbopack: withTtscTurbopackRules(nextConfig.turbopack, options),
|
|
@@ -362,7 +363,7 @@ function isResolvedTtscLoader(identity, resolvedLoaderResults) {
|
|
|
362
363
|
}
|
|
363
364
|
let matches = false;
|
|
364
365
|
try {
|
|
365
|
-
const manifest =
|
|
366
|
+
const manifest = tsconfig.ConfigJsonText.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"));
|
|
366
367
|
matches = manifest.name === "@ttsc/unplugin";
|
|
367
368
|
}
|
|
368
369
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.js","sources":["../../../src/core/next/next.ts"],"sourcesContent":[null],"names":["TYPESCRIPT_TURBOPACK_RULE_GLOBS","openTtscTransformSession","captureCompilerArguments","resolveCompilerEnvironment","refreshProjectRecordFiles","hostToolDirectory","
|
|
1
|
+
{"version":3,"file":"next.js","sources":["../../../src/core/next/next.ts"],"sourcesContent":[null],"names":["TYPESCRIPT_TURBOPACK_RULE_GLOBS","openTtscTransformSession","captureCompilerArguments","resolveCompilerEnvironment","refreshProjectRecordFiles","hostToolDirectory","fallbackToolDirectoryLocation","unplugin","TURBOPACK_PROJECT_WIDE_GLOB_COVERAGE","fileURLToPath","ConfigJsonText"],"mappings":";;;;;;;;;;;;;;;;AAoBA;AACA,MAAM,gBAAgB,GAAG,0BAA0B;AAEnD;;;;;;AAMG;AACH,MAAM,oBAAoB,GAAGA,+DAA+B;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DG;SACa,IAAI,CAClB,UAAA,GAA6B,EAAE,EAC/B,OAA6B,EAAA;IAE7B,gCAAgC,CAAC,UAAU,CAAC;;;;AAI5C,IAAAC,iDAAwB,EAAE;;;;AAI1B,IAAA,MAAM,iBAAiB,GAAGC,iDAAwB,CAChDC,+BAA0B,CAAC,OAAO,EAAE,eAAe,CAAC,CACrD,CAAC,QAAQ;AACV,IAAAC,mDAAyB,CACvBC,mCAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAChC,SAAS,EACT,SAAS,EACT,iBAAiB,CAClB;;;IAGD,MAAM,QAAQ,GAAGC,2DAA6B,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC7D,IAAI,QAAQ,KAAK,SAAS;QACxBF,mDAAyB,CACvB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,IAAI,CACL;IACH,OAAO;AACL,QAAA,GAAG,UAAU;QACb,SAAS,EAAE,sBAAsB,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC;QAChE,OAAO,CAAC,MAAyB,EAAE,cAAuB,EAAA;YACxD,MAAM,CAA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