@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,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Where a host's project records live when its own tool directory
|
|
3
|
-
* (`hostToolDirectory`) cannot be written, or `undefined` when
|
|
4
|
-
*
|
|
3
|
+
* (`hostToolDirectory`) cannot be written, or `undefined` when private native
|
|
4
|
+
* storage is unavailable (samchon/ttsc#1480).
|
|
5
5
|
*
|
|
6
6
|
* A module handed to a build host without its project's record depends on its
|
|
7
7
|
* own bytes alone: a watching session cannot tell the host that a type the
|
|
8
8
|
* module's output consulted changed, and a persistent cache restores it
|
|
9
9
|
* whatever its types did. A read-only checkout, a restricted sandbox, or a file
|
|
10
|
-
*
|
|
10
|
+
* occupying an ignored cache path can leave the root unwritable, so the record
|
|
11
11
|
* then lives below this user's own directory under the system temporary
|
|
12
12
|
* directory (`userStateDirectory`), one directory per host root.
|
|
13
13
|
*
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
* below the root. It is spelled in its long form, which webpack and Rspack
|
|
18
18
|
* require of a watched directory on Windows. A host that accepts no record
|
|
19
19
|
* outside its root, Turbopack, or none it cannot relate to its root, Farm on
|
|
20
|
-
* another drive, does not take it (`hostToolDirectory`).
|
|
20
|
+
* another drive, does not take it (`hostToolDirectory`). The returned spelling
|
|
21
|
+
* has passed the private storage probe.
|
|
21
22
|
*
|
|
22
23
|
* @param root The host's root, as `hostToolDirectory` names it.
|
|
23
24
|
* @evidence contracts/common.md#principled-implementation
|
|
24
|
-
* A
|
|
25
|
-
*
|
|
25
|
+
* A stable directory under private native state is returned only after probing
|
|
26
|
+
* its managed ancestry and available access.
|
|
26
27
|
* @evidence contracts/common.md#clear-and-simple-design
|
|
27
|
-
*
|
|
28
|
-
* directory trust and hosts decide whether outside-root dependencies are allowed.
|
|
28
|
+
* The location helper owns naming and the shared storage probe owns qualification.
|
|
29
29
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
30
30
|
* The fallback handles actual unwritable roots using a product-owned user
|
|
31
31
|
* directory, not an arbitrary globally writable or fixture-specific location.
|
|
@@ -34,12 +34,8 @@
|
|
|
34
34
|
* that cannot accept the fallback, following documentation guidance.
|
|
35
35
|
* @evidence contracts/portability.md#os-neutral-implementation The validated user state boundary obtains a private native directory and long Windows spelling; native root resolution determines naming, while adapters separately reject fallback locations their host cannot watch.
|
|
36
36
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* the fallback spelling. A warm name avoids those delegated checks and the
|
|
41
|
-
* naming digest, not root resolution or map-key work.
|
|
42
|
-
* @evidence contracts/performance.md#reuse-equivalent-work A resolved host root shares its stable fallback naming within the process; actual write capability is checked by writers rather than certified by the cached name, and an unavailable initial user root remains unavailable here.
|
|
43
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources The module map retains one optional naming result per distinct resolved root for the process lifetime, without an eviction bound; no native handle is retained, and record-directory persistence belongs to the host cache protocol.
|
|
37
|
+
* A stable name lookup precedes a bounded native path and permission walk.
|
|
38
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The naming helper reuses a cached address while the qualification observes current storage on every call.
|
|
39
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The probe retains no observation or native handle; the naming helper owns its address memo.
|
|
44
40
|
*/
|
|
45
41
|
export declare function fallbackToolDirectory(root: string): string | undefined;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var crypto = require('node:crypto');
|
|
4
3
|
var path = require('node:path');
|
|
5
|
-
var
|
|
4
|
+
var PROJECT_RECORD_DIRECTORY = require('./PROJECT_RECORD_DIRECTORY.js');
|
|
5
|
+
var fallbackRecordStorage = require('./fallbackRecordStorage.js');
|
|
6
|
+
var fallbackToolDirectoryLocation = require('./fallbackToolDirectoryLocation.js');
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Where a host's project records live when its own tool directory
|
|
9
|
-
* (`hostToolDirectory`) cannot be written, or `undefined` when
|
|
10
|
-
*
|
|
10
|
+
* (`hostToolDirectory`) cannot be written, or `undefined` when private native
|
|
11
|
+
* storage is unavailable (samchon/ttsc#1480).
|
|
11
12
|
*
|
|
12
13
|
* A module handed to a build host without its project's record depends on its
|
|
13
14
|
* own bytes alone: a watching session cannot tell the host that a type the
|
|
14
15
|
* module's output consulted changed, and a persistent cache restores it
|
|
15
16
|
* whatever its types did. A read-only checkout, a restricted sandbox, or a file
|
|
16
|
-
*
|
|
17
|
+
* occupying an ignored cache path can leave the root unwritable, so the record
|
|
17
18
|
* then lives below this user's own directory under the system temporary
|
|
18
19
|
* directory (`userStateDirectory`), one directory per host root.
|
|
19
20
|
*
|
|
@@ -23,15 +24,15 @@ var userStateDirectory = require('../transform/filesystem/userStateDirectory.js'
|
|
|
23
24
|
* below the root. It is spelled in its long form, which webpack and Rspack
|
|
24
25
|
* require of a watched directory on Windows. A host that accepts no record
|
|
25
26
|
* outside its root, Turbopack, or none it cannot relate to its root, Farm on
|
|
26
|
-
* another drive, does not take it (`hostToolDirectory`).
|
|
27
|
+
* another drive, does not take it (`hostToolDirectory`). The returned spelling
|
|
28
|
+
* has passed the private storage probe.
|
|
27
29
|
*
|
|
28
30
|
* @param root The host's root, as `hostToolDirectory` names it.
|
|
29
31
|
* @evidence contracts/common.md#principled-implementation
|
|
30
|
-
* A
|
|
31
|
-
*
|
|
32
|
+
* A stable directory under private native state is returned only after probing
|
|
33
|
+
* its managed ancestry and available access.
|
|
32
34
|
* @evidence contracts/common.md#clear-and-simple-design
|
|
33
|
-
*
|
|
34
|
-
* directory trust and hosts decide whether outside-root dependencies are allowed.
|
|
35
|
+
* The location helper owns naming and the shared storage probe owns qualification.
|
|
35
36
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
36
37
|
* The fallback handles actual unwritable roots using a product-owned user
|
|
37
38
|
* directory, not an arbitrary globally writable or fixture-specific location.
|
|
@@ -40,29 +41,17 @@ var userStateDirectory = require('../transform/filesystem/userStateDirectory.js'
|
|
|
40
41
|
* that cannot accept the fallback, following documentation guidance.
|
|
41
42
|
* @evidence contracts/portability.md#os-neutral-implementation The validated user state boundary obtains a private native directory and long Windows spelling; native root resolution determines naming, while adapters separately reject fallback locations their host cannot watch.
|
|
42
43
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* the fallback spelling. A warm name avoids those delegated checks and the
|
|
47
|
-
* naming digest, not root resolution or map-key work.
|
|
48
|
-
* @evidence contracts/performance.md#reuse-equivalent-work A resolved host root shares its stable fallback naming within the process; actual write capability is checked by writers rather than certified by the cached name, and an unavailable initial user root remains unavailable here.
|
|
49
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources The module map retains one optional naming result per distinct resolved root for the process lifetime, without an eviction bound; no native handle is retained, and record-directory persistence belongs to the host cache protocol.
|
|
44
|
+
* A stable name lookup precedes a bounded native path and permission walk.
|
|
45
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The naming helper reuses a cached address while the qualification observes current storage on every call.
|
|
46
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The probe retains no observation or native handle; the naming helper owns its address memo.
|
|
50
47
|
*/
|
|
51
48
|
function fallbackToolDirectory(root) {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const state = userStateDirectory.userStateDirectory();
|
|
58
|
-
FALLBACKS.set(key, state === undefined
|
|
59
|
-
? undefined
|
|
60
|
-
: path.join(state, "hosts", crypto.createHash("sha256").update(key).digest("hex").slice(0, 32)));
|
|
61
|
-
}
|
|
62
|
-
return FALLBACKS.get(key);
|
|
49
|
+
const directory = fallbackToolDirectoryLocation.fallbackToolDirectoryLocation(root);
|
|
50
|
+
return directory !== undefined &&
|
|
51
|
+
fallbackRecordStorage.fallbackRecordStorage(path.join(directory, PROJECT_RECORD_DIRECTORY.PROJECT_RECORD_DIRECTORY), false) === true
|
|
52
|
+
? directory
|
|
53
|
+
: undefined;
|
|
63
54
|
}
|
|
64
|
-
/** Each host root's fallback, established once per process. */
|
|
65
|
-
const FALLBACKS = new Map();
|
|
66
55
|
|
|
67
56
|
exports.fallbackToolDirectory = fallbackToolDirectory;
|
|
68
57
|
//# sourceMappingURL=fallbackToolDirectory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackToolDirectory.js","sources":["../../../src/core/bridge/fallbackToolDirectory.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"fallbackToolDirectory.js","sources":["../../../src/core/bridge/fallbackToolDirectory.ts"],"sourcesContent":[null],"names":["fallbackToolDirectoryLocation","fallbackRecordStorage","PROJECT_RECORD_DIRECTORY"],"mappings":";;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;AACG,SAAU,qBAAqB,CAAC,IAAY,EAAA;AAChD,IAAA,MAAM,SAAS,GAAGA,2DAA6B,CAAC,IAAI,CAAC;IACrD,OAAO,SAAS,KAAK,SAAS;AAC5B,QAAAC,2CAAqB,CACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAEC,iDAAwB,CAAC,EAC9C,KAAK,CACN,KAAK;AACN,UAAE;UACA,SAAS;AACf;;;;"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import crypto from 'node:crypto';
|
|
2
1
|
import path from 'node:path';
|
|
3
|
-
import {
|
|
2
|
+
import { PROJECT_RECORD_DIRECTORY } from './PROJECT_RECORD_DIRECTORY.mjs';
|
|
3
|
+
import { fallbackRecordStorage } from './fallbackRecordStorage.mjs';
|
|
4
|
+
import { fallbackToolDirectoryLocation } from './fallbackToolDirectoryLocation.mjs';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Where a host's project records live when its own tool directory
|
|
7
|
-
* (`hostToolDirectory`) cannot be written, or `undefined` when
|
|
8
|
-
*
|
|
8
|
+
* (`hostToolDirectory`) cannot be written, or `undefined` when private native
|
|
9
|
+
* storage is unavailable (samchon/ttsc#1480).
|
|
9
10
|
*
|
|
10
11
|
* A module handed to a build host without its project's record depends on its
|
|
11
12
|
* own bytes alone: a watching session cannot tell the host that a type the
|
|
12
13
|
* module's output consulted changed, and a persistent cache restores it
|
|
13
14
|
* whatever its types did. A read-only checkout, a restricted sandbox, or a file
|
|
14
|
-
*
|
|
15
|
+
* occupying an ignored cache path can leave the root unwritable, so the record
|
|
15
16
|
* then lives below this user's own directory under the system temporary
|
|
16
17
|
* directory (`userStateDirectory`), one directory per host root.
|
|
17
18
|
*
|
|
@@ -21,15 +22,15 @@ import { userStateDirectory } from '../transform/filesystem/userStateDirectory.m
|
|
|
21
22
|
* below the root. It is spelled in its long form, which webpack and Rspack
|
|
22
23
|
* require of a watched directory on Windows. A host that accepts no record
|
|
23
24
|
* outside its root, Turbopack, or none it cannot relate to its root, Farm on
|
|
24
|
-
* another drive, does not take it (`hostToolDirectory`).
|
|
25
|
+
* another drive, does not take it (`hostToolDirectory`). The returned spelling
|
|
26
|
+
* has passed the private storage probe.
|
|
25
27
|
*
|
|
26
28
|
* @param root The host's root, as `hostToolDirectory` names it.
|
|
27
29
|
* @evidence contracts/common.md#principled-implementation
|
|
28
|
-
* A
|
|
29
|
-
*
|
|
30
|
+
* A stable directory under private native state is returned only after probing
|
|
31
|
+
* its managed ancestry and available access.
|
|
30
32
|
* @evidence contracts/common.md#clear-and-simple-design
|
|
31
|
-
*
|
|
32
|
-
* directory trust and hosts decide whether outside-root dependencies are allowed.
|
|
33
|
+
* The location helper owns naming and the shared storage probe owns qualification.
|
|
33
34
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
34
35
|
* The fallback handles actual unwritable roots using a product-owned user
|
|
35
36
|
* directory, not an arbitrary globally writable or fixture-specific location.
|
|
@@ -38,29 +39,17 @@ import { userStateDirectory } from '../transform/filesystem/userStateDirectory.m
|
|
|
38
39
|
* that cannot accept the fallback, following documentation guidance.
|
|
39
40
|
* @evidence contracts/portability.md#os-neutral-implementation The validated user state boundary obtains a private native directory and long Windows spelling; native root resolution determines naming, while adapters separately reject fallback locations their host cannot watch.
|
|
40
41
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* the fallback spelling. A warm name avoids those delegated checks and the
|
|
45
|
-
* naming digest, not root resolution or map-key work.
|
|
46
|
-
* @evidence contracts/performance.md#reuse-equivalent-work A resolved host root shares its stable fallback naming within the process; actual write capability is checked by writers rather than certified by the cached name, and an unavailable initial user root remains unavailable here.
|
|
47
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources The module map retains one optional naming result per distinct resolved root for the process lifetime, without an eviction bound; no native handle is retained, and record-directory persistence belongs to the host cache protocol.
|
|
42
|
+
* A stable name lookup precedes a bounded native path and permission walk.
|
|
43
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The naming helper reuses a cached address while the qualification observes current storage on every call.
|
|
44
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The probe retains no observation or native handle; the naming helper owns its address memo.
|
|
48
45
|
*/
|
|
49
46
|
function fallbackToolDirectory(root) {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const state = userStateDirectory();
|
|
56
|
-
FALLBACKS.set(key, state === undefined
|
|
57
|
-
? undefined
|
|
58
|
-
: path.join(state, "hosts", crypto.createHash("sha256").update(key).digest("hex").slice(0, 32)));
|
|
59
|
-
}
|
|
60
|
-
return FALLBACKS.get(key);
|
|
47
|
+
const directory = fallbackToolDirectoryLocation(root);
|
|
48
|
+
return directory !== undefined &&
|
|
49
|
+
fallbackRecordStorage(path.join(directory, PROJECT_RECORD_DIRECTORY), false) === true
|
|
50
|
+
? directory
|
|
51
|
+
: undefined;
|
|
61
52
|
}
|
|
62
|
-
/** Each host root's fallback, established once per process. */
|
|
63
|
-
const FALLBACKS = new Map();
|
|
64
53
|
|
|
65
54
|
export { fallbackToolDirectory };
|
|
66
55
|
//# sourceMappingURL=fallbackToolDirectory.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallbackToolDirectory.mjs","sources":["../../../src/core/bridge/fallbackToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fallbackToolDirectory.mjs","sources":["../../../src/core/bridge/fallbackToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;AACG,SAAU,qBAAqB,CAAC,IAAY,EAAA;AAChD,IAAA,MAAM,SAAS,GAAG,6BAA6B,CAAC,IAAI,CAAC;IACrD,OAAO,SAAS,KAAK,SAAS;AAC5B,QAAA,qBAAqB,CACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,EAC9C,KAAK,CACN,KAAK;AACN,UAAE;UACA,SAAS;AACf;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Name a host's private record directory so startup can identify its inventory
|
|
3
|
+
* even when the storage lost qualification after a previous delivery.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The native temporary selector, current uid and resolved host root determine the same spelling used by fallbackToolDirectory.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design The startup address is obtained separately from qualification for writing or replay.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A name neither creates the directory nor certifies that its contents may be accessed.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why cache inventory needs the address independent of access.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation The temporary selector supplies long physical spelling and native joins preserve the host volume.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Resolving the host root precedes a memo lookup. A miss selects the native temporary parent, hashes the resolved root text and joins the managed path.
|
|
11
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Names are shared for the same resolved root within a process. Consumers separately recheck native storage qualification.
|
|
12
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One optional name per distinct resolved root is retained for the process lifetime. No handles are acquired.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fallbackToolDirectoryLocation(root: string): string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Name a host's private record directory so startup can identify its inventory
|
|
3
|
+
* even when the storage lost qualification after a previous delivery.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The native temporary selector, current uid and resolved host root determine the same spelling used by fallbackToolDirectory.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design The startup address is obtained separately from qualification for writing or replay.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A name neither creates the directory nor certifies that its contents may be accessed.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why cache inventory needs the address independent of access.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation The temporary selector supplies long physical spelling and native joins preserve the host volume.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Resolving the host root precedes a memo lookup. A miss selects the native temporary parent, hashes the resolved root text and joins the managed path.
|
|
11
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Names are shared for the same resolved root within a process. Consumers separately recheck native storage qualification.
|
|
12
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One optional name per distinct resolved root is retained for the process lifetime. No handles are acquired.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fallbackToolDirectoryLocation(root: string): string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Name a host's private record directory so startup can identify its inventory
|
|
3
|
+
* even when the storage lost qualification after a previous delivery.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation The native temporary selector, current uid and resolved host root determine the same spelling used by fallbackToolDirectory.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design The startup address is obtained separately from qualification for writing or replay.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A name neither creates the directory nor certifies that its contents may be accessed.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why cache inventory needs the address independent of access.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation The temporary selector supplies long physical spelling and native joins preserve the host volume.
|
|
10
|
+
* @evidence contracts/performance.md#efficient-algorithms Resolving the host root precedes a memo lookup. A miss selects the native temporary parent, hashes the resolved root text and joins the managed path.
|
|
11
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Names are shared for the same resolved root within a process. Consumers separately recheck native storage qualification.
|
|
12
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One optional name per distinct resolved root is retained for the process lifetime. No handles are acquired.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fallbackToolDirectoryLocation(root: string): string | undefined;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var crypto = require('node:crypto');
|
|
4
|
+
var path = require('node:path');
|
|
5
|
+
var userStateDirectory = require('../transform/filesystem/userStateDirectory.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Name a host's private record directory so startup can identify its inventory
|
|
9
|
+
* even when the storage lost qualification after a previous delivery.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/common.md#principled-implementation The native temporary selector, current uid and resolved host root determine the same spelling used by fallbackToolDirectory.
|
|
12
|
+
* @evidence contracts/common.md#clear-and-simple-design The startup address is obtained separately from qualification for writing or replay.
|
|
13
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A name neither creates the directory nor certifies that its contents may be accessed.
|
|
14
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why cache inventory needs the address independent of access.
|
|
15
|
+
* @evidence contracts/portability.md#os-neutral-implementation The temporary selector supplies long physical spelling and native joins preserve the host volume.
|
|
16
|
+
* @evidence contracts/performance.md#efficient-algorithms Resolving the host root precedes a memo lookup. A miss selects the native temporary parent, hashes the resolved root text and joins the managed path.
|
|
17
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Names are shared for the same resolved root within a process. Consumers separately recheck native storage qualification.
|
|
18
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One optional name per distinct resolved root is retained for the process lifetime. No handles are acquired.
|
|
19
|
+
*/
|
|
20
|
+
function fallbackToolDirectoryLocation(root) {
|
|
21
|
+
const key = path.resolve(root);
|
|
22
|
+
if (!FALLBACKS.has(key)) {
|
|
23
|
+
let directory;
|
|
24
|
+
try {
|
|
25
|
+
directory = path.join(userStateDirectory.userStateDirectory.location(key), "hosts", crypto.createHash("sha256").update(key).digest("hex").slice(0, 32));
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
// No system temporary directory outside this host's project.
|
|
29
|
+
}
|
|
30
|
+
FALLBACKS.set(key, directory);
|
|
31
|
+
}
|
|
32
|
+
return FALLBACKS.get(key);
|
|
33
|
+
}
|
|
34
|
+
/** Each host root's fallback name, established once per process. */
|
|
35
|
+
const FALLBACKS = new Map();
|
|
36
|
+
|
|
37
|
+
exports.fallbackToolDirectoryLocation = fallbackToolDirectoryLocation;
|
|
38
|
+
//# sourceMappingURL=fallbackToolDirectoryLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallbackToolDirectoryLocation.js","sources":["../../../src/core/bridge/fallbackToolDirectoryLocation.ts"],"sourcesContent":[null],"names":["userStateDirectory"],"mappings":";;;;;;AAKA;;;;;;;;;;;;AAYG;AACG,SAAU,6BAA6B,CAC3C,IAAY,EAAA;IAEZ,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AACvB,QAAA,IAAI,SAA6B;AACjC,QAAA,IAAI;AACF,YAAA,SAAS,GAAG,IAAI,CAAC,IAAI,CACnBA,qCAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAChC,OAAO,EACP,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CACnE;QACH;AAAE,QAAA,MAAM;;QAER;AACA,QAAA,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC;IAC/B;AACA,IAAA,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC;AAC3B;AAEA;AACA,MAAM,SAAS,GAAG,IAAI,GAAG,EAA8B;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { userStateDirectory } from '../transform/filesystem/userStateDirectory.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Name a host's private record directory so startup can identify its inventory
|
|
7
|
+
* even when the storage lost qualification after a previous delivery.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/common.md#principled-implementation The native temporary selector, current uid and resolved host root determine the same spelling used by fallbackToolDirectory.
|
|
10
|
+
* @evidence contracts/common.md#clear-and-simple-design The startup address is obtained separately from qualification for writing or replay.
|
|
11
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A name neither creates the directory nor certifies that its contents may be accessed.
|
|
12
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why cache inventory needs the address independent of access.
|
|
13
|
+
* @evidence contracts/portability.md#os-neutral-implementation The temporary selector supplies long physical spelling and native joins preserve the host volume.
|
|
14
|
+
* @evidence contracts/performance.md#efficient-algorithms Resolving the host root precedes a memo lookup. A miss selects the native temporary parent, hashes the resolved root text and joins the managed path.
|
|
15
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Names are shared for the same resolved root within a process. Consumers separately recheck native storage qualification.
|
|
16
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One optional name per distinct resolved root is retained for the process lifetime. No handles are acquired.
|
|
17
|
+
*/
|
|
18
|
+
function fallbackToolDirectoryLocation(root) {
|
|
19
|
+
const key = path.resolve(root);
|
|
20
|
+
if (!FALLBACKS.has(key)) {
|
|
21
|
+
let directory;
|
|
22
|
+
try {
|
|
23
|
+
directory = path.join(userStateDirectory.location(key), "hosts", crypto.createHash("sha256").update(key).digest("hex").slice(0, 32));
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
// No system temporary directory outside this host's project.
|
|
27
|
+
}
|
|
28
|
+
FALLBACKS.set(key, directory);
|
|
29
|
+
}
|
|
30
|
+
return FALLBACKS.get(key);
|
|
31
|
+
}
|
|
32
|
+
/** Each host root's fallback name, established once per process. */
|
|
33
|
+
const FALLBACKS = new Map();
|
|
34
|
+
|
|
35
|
+
export { fallbackToolDirectoryLocation };
|
|
36
|
+
//# sourceMappingURL=fallbackToolDirectoryLocation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fallbackToolDirectoryLocation.mjs","sources":["../../../src/core/bridge/fallbackToolDirectoryLocation.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;AAYG;AACG,SAAU,6BAA6B,CAC3C,IAAY,EAAA;IAEZ,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AACvB,QAAA,IAAI,SAA6B;AACjC,QAAA,IAAI;AACF,YAAA,SAAS,GAAG,IAAI,CAAC,IAAI,CACnB,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAChC,OAAO,EACP,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CACnE;QACH;AAAE,QAAA,MAAM;;QAER;AACA,QAAA,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC;IAC/B;AACA,IAAA,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC;AAC3B;AAEA;AACA,MAAM,SAAS,GAAG,IAAI,GAAG,EAA8B;;;;"}
|
|
@@ -1,50 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* the host
|
|
2
|
+
* Name the ignored cache that owns a build host's persistent project records.
|
|
3
|
+
* The path remains below the selected host root for hosts that constrain file
|
|
4
|
+
* dependencies to it. Farm keeps its records here too, and is told of each move
|
|
5
|
+
* its watcher cannot observe below `node_modules` (`createFarmRecordUpdates`).
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* and it lives below Farm's configured root rather than the directory Farm
|
|
15
|
-
* runs in, which a configuration can place on another drive.
|
|
16
|
-
* - Webpack and Rspack watch a dependency's directory through `fs.watch`, and
|
|
17
|
-
* libuv's Windows backend aborts the host on a directory spelled with a short
|
|
18
|
-
* name, which the system temporary directory routinely is
|
|
19
|
-
* (`C:\Users\RUNNER~1\...`), so the file must be spelled as the host's root
|
|
20
|
-
* is.
|
|
21
|
-
*
|
|
22
|
-
* The system temporary directory, the previous default, met none of the three
|
|
23
|
-
* on Windows. `.ttsc` is ttsc's own project-local directory, already excluded
|
|
24
|
-
* from project discovery. The adapter keeps the project records there alone
|
|
25
|
-
* (`PROJECT_RECORD_DIRECTORY`), under a stable name, since a host's persistent
|
|
26
|
-
* cache records them as dependencies and they outlive every process.
|
|
27
|
-
*
|
|
28
|
-
* @param root The host's root: the directory the host runs in for the unplugin
|
|
29
|
-
* adapters and the Next wrapper, Farm's configured root for Farm,
|
|
30
|
-
* `absWorkingDir` for esbuild, and the root Turbopack resolved
|
|
31
|
-
* (`rootContext`) for its loader.
|
|
32
|
-
* @evidence contracts/common.md#principled-implementation
|
|
33
|
-
* Native join locates the package-owned .ttsc directory under the actual host
|
|
34
|
-
* root, satisfying dependency-root restrictions without relocating watched paths.
|
|
35
|
-
* @evidence contracts/common.md#clear-and-simple-design
|
|
36
|
-
* One helper owns the project-local directory convention shared by host adapters.
|
|
37
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
38
|
-
* .ttsc is the product's directory convention; host-specific roots implement
|
|
39
|
-
* actual dependency acceptance rules rather than consumer path exceptions.
|
|
40
|
-
* @evidence contracts/common.md#meaningful-documentation
|
|
41
|
-
* Native paragraphs explain native watched-directory constraints and root
|
|
42
|
-
* meaning for each adapter, with tag separation per documentation guidance.
|
|
43
|
-
* @evidence contracts/portability.md#os-neutral-implementation Node's native join preserves the actual host root's volume and spelling; records stay under that root to satisfy filesystem-root, same-drive and Windows watched-directory constraints.
|
|
44
|
-
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Naming the directory acquires and retains no handle, task or state.
|
|
45
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
46
|
-
* Native join scans and normalizes the supplied root's text and creates the
|
|
47
|
-
* returned spelling. It performs no filesystem access or directory walk.
|
|
48
|
-
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The directory is joined from its argument on every call; no computation is shared.
|
|
7
|
+
* @param root The build host's effective filesystem root.
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The path remains below the supplied host root and places the record protocol under its node_modules cache.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design One naming function serves every host that accepts the default record path; filesystem admission belongs to the record writer.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The automatic record path cannot target a regular project directory.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment states the placement rule and how Farm learns of moves its watcher ignores.
|
|
12
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native join preserves root spelling and volume before host dependency registration.
|
|
13
|
+
* @evidence contracts/performance.md#efficient-algorithms One native join processes the supplied path text without touching the filesystem.
|
|
14
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Naming a path coordinates no completed work.
|
|
15
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The selector creates no directory or retained state.
|
|
49
16
|
*/
|
|
50
17
|
export declare function hostToolDirectory(root: string): string;
|
|
@@ -1,50 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* the host
|
|
2
|
+
* Name the ignored cache that owns a build host's persistent project records.
|
|
3
|
+
* The path remains below the selected host root for hosts that constrain file
|
|
4
|
+
* dependencies to it. Farm keeps its records here too, and is told of each move
|
|
5
|
+
* its watcher cannot observe below `node_modules` (`createFarmRecordUpdates`).
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* and it lives below Farm's configured root rather than the directory Farm
|
|
15
|
-
* runs in, which a configuration can place on another drive.
|
|
16
|
-
* - Webpack and Rspack watch a dependency's directory through `fs.watch`, and
|
|
17
|
-
* libuv's Windows backend aborts the host on a directory spelled with a short
|
|
18
|
-
* name, which the system temporary directory routinely is
|
|
19
|
-
* (`C:\Users\RUNNER~1\...`), so the file must be spelled as the host's root
|
|
20
|
-
* is.
|
|
21
|
-
*
|
|
22
|
-
* The system temporary directory, the previous default, met none of the three
|
|
23
|
-
* on Windows. `.ttsc` is ttsc's own project-local directory, already excluded
|
|
24
|
-
* from project discovery. The adapter keeps the project records there alone
|
|
25
|
-
* (`PROJECT_RECORD_DIRECTORY`), under a stable name, since a host's persistent
|
|
26
|
-
* cache records them as dependencies and they outlive every process.
|
|
27
|
-
*
|
|
28
|
-
* @param root The host's root: the directory the host runs in for the unplugin
|
|
29
|
-
* adapters and the Next wrapper, Farm's configured root for Farm,
|
|
30
|
-
* `absWorkingDir` for esbuild, and the root Turbopack resolved
|
|
31
|
-
* (`rootContext`) for its loader.
|
|
32
|
-
* @evidence contracts/common.md#principled-implementation
|
|
33
|
-
* Native join locates the package-owned .ttsc directory under the actual host
|
|
34
|
-
* root, satisfying dependency-root restrictions without relocating watched paths.
|
|
35
|
-
* @evidence contracts/common.md#clear-and-simple-design
|
|
36
|
-
* One helper owns the project-local directory convention shared by host adapters.
|
|
37
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
38
|
-
* .ttsc is the product's directory convention; host-specific roots implement
|
|
39
|
-
* actual dependency acceptance rules rather than consumer path exceptions.
|
|
40
|
-
* @evidence contracts/common.md#meaningful-documentation
|
|
41
|
-
* Native paragraphs explain native watched-directory constraints and root
|
|
42
|
-
* meaning for each adapter, with tag separation per documentation guidance.
|
|
43
|
-
* @evidence contracts/portability.md#os-neutral-implementation Node's native join preserves the actual host root's volume and spelling; records stay under that root to satisfy filesystem-root, same-drive and Windows watched-directory constraints.
|
|
44
|
-
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Naming the directory acquires and retains no handle, task or state.
|
|
45
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
46
|
-
* Native join scans and normalizes the supplied root's text and creates the
|
|
47
|
-
* returned spelling. It performs no filesystem access or directory walk.
|
|
48
|
-
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The directory is joined from its argument on every call; no computation is shared.
|
|
7
|
+
* @param root The build host's effective filesystem root.
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The path remains below the supplied host root and places the record protocol under its node_modules cache.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design One naming function serves every host that accepts the default record path; filesystem admission belongs to the record writer.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The automatic record path cannot target a regular project directory.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment states the placement rule and how Farm learns of moves its watcher ignores.
|
|
12
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native join preserves root spelling and volume before host dependency registration.
|
|
13
|
+
* @evidence contracts/performance.md#efficient-algorithms One native join processes the supplied path text without touching the filesystem.
|
|
14
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Naming a path coordinates no completed work.
|
|
15
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The selector creates no directory or retained state.
|
|
49
16
|
*/
|
|
50
17
|
export declare function hostToolDirectory(root: string): string;
|
|
@@ -1,50 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* the host
|
|
2
|
+
* Name the ignored cache that owns a build host's persistent project records.
|
|
3
|
+
* The path remains below the selected host root for hosts that constrain file
|
|
4
|
+
* dependencies to it. Farm keeps its records here too, and is told of each move
|
|
5
|
+
* its watcher cannot observe below `node_modules` (`createFarmRecordUpdates`).
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* and it lives below Farm's configured root rather than the directory Farm
|
|
15
|
-
* runs in, which a configuration can place on another drive.
|
|
16
|
-
* - Webpack and Rspack watch a dependency's directory through `fs.watch`, and
|
|
17
|
-
* libuv's Windows backend aborts the host on a directory spelled with a short
|
|
18
|
-
* name, which the system temporary directory routinely is
|
|
19
|
-
* (`C:\Users\RUNNER~1\...`), so the file must be spelled as the host's root
|
|
20
|
-
* is.
|
|
21
|
-
*
|
|
22
|
-
* The system temporary directory, the previous default, met none of the three
|
|
23
|
-
* on Windows. `.ttsc` is ttsc's own project-local directory, already excluded
|
|
24
|
-
* from project discovery. The adapter keeps the project records there alone
|
|
25
|
-
* (`PROJECT_RECORD_DIRECTORY`), under a stable name, since a host's persistent
|
|
26
|
-
* cache records them as dependencies and they outlive every process.
|
|
27
|
-
*
|
|
28
|
-
* @param root The host's root: the directory the host runs in for the unplugin
|
|
29
|
-
* adapters and the Next wrapper, Farm's configured root for Farm,
|
|
30
|
-
* `absWorkingDir` for esbuild, and the root Turbopack resolved
|
|
31
|
-
* (`rootContext`) for its loader.
|
|
32
|
-
* @evidence contracts/common.md#principled-implementation
|
|
33
|
-
* Native join locates the package-owned .ttsc directory under the actual host
|
|
34
|
-
* root, satisfying dependency-root restrictions without relocating watched paths.
|
|
35
|
-
* @evidence contracts/common.md#clear-and-simple-design
|
|
36
|
-
* One helper owns the project-local directory convention shared by host adapters.
|
|
37
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
38
|
-
* .ttsc is the product's directory convention; host-specific roots implement
|
|
39
|
-
* actual dependency acceptance rules rather than consumer path exceptions.
|
|
40
|
-
* @evidence contracts/common.md#meaningful-documentation
|
|
41
|
-
* Native paragraphs explain native watched-directory constraints and root
|
|
42
|
-
* meaning for each adapter, with tag separation per documentation guidance.
|
|
43
|
-
* @evidence contracts/portability.md#os-neutral-implementation Node's native join preserves the actual host root's volume and spelling; records stay under that root to satisfy filesystem-root, same-drive and Windows watched-directory constraints.
|
|
44
|
-
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Naming the directory acquires and retains no handle, task or state.
|
|
45
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
46
|
-
* Native join scans and normalizes the supplied root's text and creates the
|
|
47
|
-
* returned spelling. It performs no filesystem access or directory walk.
|
|
48
|
-
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The directory is joined from its argument on every call; no computation is shared.
|
|
7
|
+
* @param root The build host's effective filesystem root.
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation The path remains below the supplied host root and places the record protocol under its node_modules cache.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design One naming function serves every host that accepts the default record path; filesystem admission belongs to the record writer.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The automatic record path cannot target a regular project directory.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment states the placement rule and how Farm learns of moves its watcher ignores.
|
|
12
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native join preserves root spelling and volume before host dependency registration.
|
|
13
|
+
* @evidence contracts/performance.md#efficient-algorithms One native join processes the supplied path text without touching the filesystem.
|
|
14
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Naming a path coordinates no completed work.
|
|
15
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The selector creates no directory or retained state.
|
|
49
16
|
*/
|
|
50
17
|
export declare function hostToolDirectory(root: string): string;
|