@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
|
@@ -3,56 +3,23 @@
|
|
|
3
3
|
var path = require('node:path');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* the host
|
|
6
|
+
* Name the ignored cache that owns a build host's persistent project records.
|
|
7
|
+
* The path remains below the selected host root for hosts that constrain file
|
|
8
|
+
* dependencies to it. Farm keeps its records here too, and is told of each move
|
|
9
|
+
* its watcher cannot observe below `node_modules` (`createFarmRecordUpdates`).
|
|
8
10
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* -
|
|
13
|
-
*
|
|
14
|
-
* -
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* and it lives below Farm's configured root rather than the directory Farm
|
|
19
|
-
* runs in, which a configuration can place on another drive.
|
|
20
|
-
* - Webpack and Rspack watch a dependency's directory through `fs.watch`, and
|
|
21
|
-
* libuv's Windows backend aborts the host on a directory spelled with a short
|
|
22
|
-
* name, which the system temporary directory routinely is
|
|
23
|
-
* (`C:\Users\RUNNER~1\...`), so the file must be spelled as the host's root
|
|
24
|
-
* is.
|
|
25
|
-
*
|
|
26
|
-
* The system temporary directory, the previous default, met none of the three
|
|
27
|
-
* on Windows. `.ttsc` is ttsc's own project-local directory, already excluded
|
|
28
|
-
* from project discovery. The adapter keeps the project records there alone
|
|
29
|
-
* (`PROJECT_RECORD_DIRECTORY`), under a stable name, since a host's persistent
|
|
30
|
-
* cache records them as dependencies and they outlive every process.
|
|
31
|
-
*
|
|
32
|
-
* @param root The host's root: the directory the host runs in for the unplugin
|
|
33
|
-
* adapters and the Next wrapper, Farm's configured root for Farm,
|
|
34
|
-
* `absWorkingDir` for esbuild, and the root Turbopack resolved
|
|
35
|
-
* (`rootContext`) for its loader.
|
|
36
|
-
* @evidence contracts/common.md#principled-implementation
|
|
37
|
-
* Native join locates the package-owned .ttsc directory under the actual host
|
|
38
|
-
* root, satisfying dependency-root restrictions without relocating watched paths.
|
|
39
|
-
* @evidence contracts/common.md#clear-and-simple-design
|
|
40
|
-
* One helper owns the project-local directory convention shared by host adapters.
|
|
41
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
42
|
-
* .ttsc is the product's directory convention; host-specific roots implement
|
|
43
|
-
* actual dependency acceptance rules rather than consumer path exceptions.
|
|
44
|
-
* @evidence contracts/common.md#meaningful-documentation
|
|
45
|
-
* Native paragraphs explain native watched-directory constraints and root
|
|
46
|
-
* meaning for each adapter, with tag separation per documentation guidance.
|
|
47
|
-
* @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.
|
|
48
|
-
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Naming the directory acquires and retains no handle, task or state.
|
|
49
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
50
|
-
* Native join scans and normalizes the supplied root's text and creates the
|
|
51
|
-
* returned spelling. It performs no filesystem access or directory walk.
|
|
52
|
-
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The directory is joined from its argument on every call; no computation is shared.
|
|
11
|
+
* @param root The build host's effective filesystem root.
|
|
12
|
+
* @evidence contracts/common.md#principled-implementation The path remains below the supplied host root and places the record protocol under its node_modules cache.
|
|
13
|
+
* @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.
|
|
14
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The automatic record path cannot target a regular project directory.
|
|
15
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment states the placement rule and how Farm learns of moves its watcher ignores.
|
|
16
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native join preserves root spelling and volume before host dependency registration.
|
|
17
|
+
* @evidence contracts/performance.md#efficient-algorithms One native join processes the supplied path text without touching the filesystem.
|
|
18
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Naming a path coordinates no completed work.
|
|
19
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The selector creates no directory or retained state.
|
|
53
20
|
*/
|
|
54
21
|
function hostToolDirectory(root) {
|
|
55
|
-
return path.join(root, ".ttsc");
|
|
22
|
+
return path.join(root, "node_modules", ".cache", "ttsc", "unplugin");
|
|
56
23
|
}
|
|
57
24
|
|
|
58
25
|
exports.hostToolDirectory = hostToolDirectory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostToolDirectory.js","sources":["../../../src/core/bridge/hostToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAEA
|
|
1
|
+
{"version":3,"file":"hostToolDirectory.js","sources":["../../../src/core/bridge/hostToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAEA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,iBAAiB,CAAC,IAAY,EAAA;AAC5C,IAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC;AACtE;;;;"}
|
|
@@ -1,56 +1,23 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* the host
|
|
4
|
+
* Name the ignored cache that owns a build host's persistent project records.
|
|
5
|
+
* The path remains below the selected host root for hosts that constrain file
|
|
6
|
+
* dependencies to it. Farm keeps its records here too, and is told of each move
|
|
7
|
+
* its watcher cannot observe below `node_modules` (`createFarmRecordUpdates`).
|
|
6
8
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
* -
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* and it lives below Farm's configured root rather than the directory Farm
|
|
17
|
-
* runs in, which a configuration can place on another drive.
|
|
18
|
-
* - Webpack and Rspack watch a dependency's directory through `fs.watch`, and
|
|
19
|
-
* libuv's Windows backend aborts the host on a directory spelled with a short
|
|
20
|
-
* name, which the system temporary directory routinely is
|
|
21
|
-
* (`C:\Users\RUNNER~1\...`), so the file must be spelled as the host's root
|
|
22
|
-
* is.
|
|
23
|
-
*
|
|
24
|
-
* The system temporary directory, the previous default, met none of the three
|
|
25
|
-
* on Windows. `.ttsc` is ttsc's own project-local directory, already excluded
|
|
26
|
-
* from project discovery. The adapter keeps the project records there alone
|
|
27
|
-
* (`PROJECT_RECORD_DIRECTORY`), under a stable name, since a host's persistent
|
|
28
|
-
* cache records them as dependencies and they outlive every process.
|
|
29
|
-
*
|
|
30
|
-
* @param root The host's root: the directory the host runs in for the unplugin
|
|
31
|
-
* adapters and the Next wrapper, Farm's configured root for Farm,
|
|
32
|
-
* `absWorkingDir` for esbuild, and the root Turbopack resolved
|
|
33
|
-
* (`rootContext`) for its loader.
|
|
34
|
-
* @evidence contracts/common.md#principled-implementation
|
|
35
|
-
* Native join locates the package-owned .ttsc directory under the actual host
|
|
36
|
-
* root, satisfying dependency-root restrictions without relocating watched paths.
|
|
37
|
-
* @evidence contracts/common.md#clear-and-simple-design
|
|
38
|
-
* One helper owns the project-local directory convention shared by host adapters.
|
|
39
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
40
|
-
* .ttsc is the product's directory convention; host-specific roots implement
|
|
41
|
-
* actual dependency acceptance rules rather than consumer path exceptions.
|
|
42
|
-
* @evidence contracts/common.md#meaningful-documentation
|
|
43
|
-
* Native paragraphs explain native watched-directory constraints and root
|
|
44
|
-
* meaning for each adapter, with tag separation per documentation guidance.
|
|
45
|
-
* @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.
|
|
46
|
-
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Naming the directory acquires and retains no handle, task or state.
|
|
47
|
-
* @evidence contracts/performance.md#efficient-algorithms
|
|
48
|
-
* Native join scans and normalizes the supplied root's text and creates the
|
|
49
|
-
* returned spelling. It performs no filesystem access or directory walk.
|
|
50
|
-
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The directory is joined from its argument on every call; no computation is shared.
|
|
9
|
+
* @param root The build host's effective filesystem root.
|
|
10
|
+
* @evidence contracts/common.md#principled-implementation The path remains below the supplied host root and places the record protocol under its node_modules cache.
|
|
11
|
+
* @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.
|
|
12
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The automatic record path cannot target a regular project directory.
|
|
13
|
+
* @evidence contracts/common.md#meaningful-documentation The native comment states the placement rule and how Farm learns of moves its watcher ignores.
|
|
14
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native join preserves root spelling and volume before host dependency registration.
|
|
15
|
+
* @evidence contracts/performance.md#efficient-algorithms One native join processes the supplied path text without touching the filesystem.
|
|
16
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Naming a path coordinates no completed work.
|
|
17
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The selector creates no directory or retained state.
|
|
51
18
|
*/
|
|
52
19
|
function hostToolDirectory(root) {
|
|
53
|
-
return path.join(root, ".ttsc");
|
|
20
|
+
return path.join(root, "node_modules", ".cache", "ttsc", "unplugin");
|
|
54
21
|
}
|
|
55
22
|
|
|
56
23
|
export { hostToolDirectory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostToolDirectory.mjs","sources":["../../../src/core/bridge/hostToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA
|
|
1
|
+
{"version":3,"file":"hostToolDirectory.mjs","sources":["../../../src/core/bridge/hostToolDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;AAeG;AACG,SAAU,iBAAiB,CAAC,IAAY,EAAA;AAC5C,IAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC;AACtE;;;;"}
|
|
@@ -46,11 +46,21 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
46
46
|
* recorded it as a dependency of every module, and a build start proves it
|
|
47
47
|
* against the disk (`refreshProjectRecordFiles`).
|
|
48
48
|
*
|
|
49
|
+
* A host whose watcher cannot observe the record holds it as a dependency all
|
|
50
|
+
* the same, and is told of each move instead (`announce`): Farm's watcher
|
|
51
|
+
* ignores every path below `node_modules`, where the record lives, so the
|
|
52
|
+
* adapter asks Farm itself to update the record's dependents
|
|
53
|
+
* (`createFarmRecordUpdates`, samchon/ttsc#1942). Every move is told, the first
|
|
54
|
+
* and each later one, since a move a host heard while it was compiling may land
|
|
55
|
+
* in that compile rather than after it.
|
|
56
|
+
*
|
|
49
57
|
* @param root The directory whose pinned scope observes the project.
|
|
50
58
|
* @param operations Observer watch/poll/case capabilities, which do not replace
|
|
51
59
|
* native record writes or the filesystem used to recheck input conditions.
|
|
52
60
|
* @param polling The current host's polling declaration, including its active
|
|
53
61
|
* watch-session option. Standalone callers retain the environment default.
|
|
62
|
+
* @param announce Told the absolute record path after each move that landed,
|
|
63
|
+
* for a host whose watcher does not observe the record.
|
|
54
64
|
* @evidence contracts/common.md#principled-implementation
|
|
55
65
|
* Each record owns generation input evidence. A change remains owed until a
|
|
56
66
|
* registration replaces that evidence; replacement immediately signals again
|
|
@@ -111,4 +121,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.cjs";
|
|
|
111
121
|
* close is best effort, and the opened root/pass window can survive close for
|
|
112
122
|
* later registration; completion does not certify every native handle's release.
|
|
113
123
|
*/
|
|
114
|
-
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean): HostWatchBridge;
|
|
124
|
+
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean, announce?: (record: string) => void): HostWatchBridge;
|
|
@@ -46,11 +46,21 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
46
46
|
* recorded it as a dependency of every module, and a build start proves it
|
|
47
47
|
* against the disk (`refreshProjectRecordFiles`).
|
|
48
48
|
*
|
|
49
|
+
* A host whose watcher cannot observe the record holds it as a dependency all
|
|
50
|
+
* the same, and is told of each move instead (`announce`): Farm's watcher
|
|
51
|
+
* ignores every path below `node_modules`, where the record lives, so the
|
|
52
|
+
* adapter asks Farm itself to update the record's dependents
|
|
53
|
+
* (`createFarmRecordUpdates`, samchon/ttsc#1942). Every move is told, the first
|
|
54
|
+
* and each later one, since a move a host heard while it was compiling may land
|
|
55
|
+
* in that compile rather than after it.
|
|
56
|
+
*
|
|
49
57
|
* @param root The directory whose pinned scope observes the project.
|
|
50
58
|
* @param operations Observer watch/poll/case capabilities, which do not replace
|
|
51
59
|
* native record writes or the filesystem used to recheck input conditions.
|
|
52
60
|
* @param polling The current host's polling declaration, including its active
|
|
53
61
|
* watch-session option. Standalone callers retain the environment default.
|
|
62
|
+
* @param announce Told the absolute record path after each move that landed,
|
|
63
|
+
* for a host whose watcher does not observe the record.
|
|
54
64
|
* @evidence contracts/common.md#principled-implementation
|
|
55
65
|
* Each record owns generation input evidence. A change remains owed until a
|
|
56
66
|
* registration replaces that evidence; replacement immediately signals again
|
|
@@ -111,4 +121,4 @@ import type { HostWatchBridge } from "./HostWatchBridge.mjs";
|
|
|
111
121
|
* close is best effort, and the opened root/pass window can survive close for
|
|
112
122
|
* later registration; completion does not certify every native handle's release.
|
|
113
123
|
*/
|
|
114
|
-
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean): HostWatchBridge;
|
|
124
|
+
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean, announce?: (record: string) => void): HostWatchBridge;
|
|
@@ -46,11 +46,21 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
46
46
|
* recorded it as a dependency of every module, and a build start proves it
|
|
47
47
|
* against the disk (`refreshProjectRecordFiles`).
|
|
48
48
|
*
|
|
49
|
+
* A host whose watcher cannot observe the record holds it as a dependency all
|
|
50
|
+
* the same, and is told of each move instead (`announce`): Farm's watcher
|
|
51
|
+
* ignores every path below `node_modules`, where the record lives, so the
|
|
52
|
+
* adapter asks Farm itself to update the record's dependents
|
|
53
|
+
* (`createFarmRecordUpdates`, samchon/ttsc#1942). Every move is told, the first
|
|
54
|
+
* and each later one, since a move a host heard while it was compiling may land
|
|
55
|
+
* in that compile rather than after it.
|
|
56
|
+
*
|
|
49
57
|
* @param root The directory whose pinned scope observes the project.
|
|
50
58
|
* @param operations Observer watch/poll/case capabilities, which do not replace
|
|
51
59
|
* native record writes or the filesystem used to recheck input conditions.
|
|
52
60
|
* @param polling The current host's polling declaration, including its active
|
|
53
61
|
* watch-session option. Standalone callers retain the environment default.
|
|
62
|
+
* @param announce Told the absolute record path after each move that landed,
|
|
63
|
+
* for a host whose watcher does not observe the record.
|
|
54
64
|
* @evidence contracts/common.md#principled-implementation
|
|
55
65
|
* Each record owns generation input evidence. A change remains owed until a
|
|
56
66
|
* registration replaces that evidence; replacement immediately signals again
|
|
@@ -111,4 +121,4 @@ import type { HostWatchBridge } from "./HostWatchBridge";
|
|
|
111
121
|
* close is best effort, and the opened root/pass window can survive close for
|
|
112
122
|
* later registration; completion does not certify every native handle's release.
|
|
113
123
|
*/
|
|
114
|
-
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean): HostWatchBridge;
|
|
124
|
+
export declare function openHostWatchBridge(root: string, operations?: Partial<InputObserverOperations>, polling?: boolean, announce?: (record: string) => void): HostWatchBridge;
|
|
@@ -51,11 +51,21 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
51
51
|
* recorded it as a dependency of every module, and a build start proves it
|
|
52
52
|
* against the disk (`refreshProjectRecordFiles`).
|
|
53
53
|
*
|
|
54
|
+
* A host whose watcher cannot observe the record holds it as a dependency all
|
|
55
|
+
* the same, and is told of each move instead (`announce`): Farm's watcher
|
|
56
|
+
* ignores every path below `node_modules`, where the record lives, so the
|
|
57
|
+
* adapter asks Farm itself to update the record's dependents
|
|
58
|
+
* (`createFarmRecordUpdates`, samchon/ttsc#1942). Every move is told, the first
|
|
59
|
+
* and each later one, since a move a host heard while it was compiling may land
|
|
60
|
+
* in that compile rather than after it.
|
|
61
|
+
*
|
|
54
62
|
* @param root The directory whose pinned scope observes the project.
|
|
55
63
|
* @param operations Observer watch/poll/case capabilities, which do not replace
|
|
56
64
|
* native record writes or the filesystem used to recheck input conditions.
|
|
57
65
|
* @param polling The current host's polling declaration, including its active
|
|
58
66
|
* watch-session option. Standalone callers retain the environment default.
|
|
67
|
+
* @param announce Told the absolute record path after each move that landed,
|
|
68
|
+
* for a host whose watcher does not observe the record.
|
|
59
69
|
* @evidence contracts/common.md#principled-implementation
|
|
60
70
|
* Each record owns generation input evidence. A change remains owed until a
|
|
61
71
|
* registration replaces that evidence; replacement immediately signals again
|
|
@@ -116,7 +126,7 @@ var signalProjectRecordFile = require('./signalProjectRecordFile.js');
|
|
|
116
126
|
* close is best effort, and the opened root/pass window can survive close for
|
|
117
127
|
* later registration; completion does not certify every native handle's release.
|
|
118
128
|
*/
|
|
119
|
-
function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPolling.hostDeclaresPolling(process.env)) {
|
|
129
|
+
function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPolling.hostDeclaresPolling(process.env), announce) {
|
|
120
130
|
// Every map below is keyed by the record's absolute spelling, the one the
|
|
121
131
|
// observer reports its owners under.
|
|
122
132
|
// What each record was last registered with.
|
|
@@ -139,6 +149,7 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
139
149
|
// The records the host's last compile did not depend on, which its watcher
|
|
140
150
|
// does not observe, reported by a host that reports it (`compiled`).
|
|
141
151
|
const unwatched = new Set();
|
|
152
|
+
let requiredSignalRecord;
|
|
142
153
|
const settle = (record) => {
|
|
143
154
|
owed.delete(record);
|
|
144
155
|
clearTimeout(pending.get(record));
|
|
@@ -150,7 +161,8 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
150
161
|
// after whatever baseline the host takes next.
|
|
151
162
|
if (pending.has(record))
|
|
152
163
|
return;
|
|
153
|
-
signalProjectRecordFile.signalProjectRecordFile(record)
|
|
164
|
+
if (signalProjectRecordFile.signalProjectRecordFile(record, registered.get(record)?.privateStorage, requiredSignalRecord === record))
|
|
165
|
+
announce?.(record);
|
|
154
166
|
// The later moves defend a watcher's baseline, and no watcher of this host
|
|
155
167
|
// observes the record: a compile that comes to depend on it reads this
|
|
156
168
|
// move through its cache's snapshot, and `compiled` resumes the schedule
|
|
@@ -161,7 +173,8 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
161
173
|
const timer = setTimeout(() => {
|
|
162
174
|
if (pending.get(record) !== timer)
|
|
163
175
|
return;
|
|
164
|
-
signalProjectRecordFile.signalProjectRecordFile(record)
|
|
176
|
+
if (signalProjectRecordFile.signalProjectRecordFile(record, registered.get(record)?.privateStorage))
|
|
177
|
+
announce?.(record);
|
|
165
178
|
moveAfter(Math.min(delay * 4, MAX_TIMER_DELAY_MS));
|
|
166
179
|
}, delay).unref();
|
|
167
180
|
pending.set(record, timer);
|
|
@@ -206,7 +219,7 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
206
219
|
},
|
|
207
220
|
owes: (record) => (answeredIn !== undefined && pass <= answeredIn + 1) ||
|
|
208
221
|
(record === undefined ? owed.size !== 0 : owed.has(path.resolve(record))),
|
|
209
|
-
register(file, inputs, failed, startedAt) {
|
|
222
|
+
register(file, inputs, failed, startedAt, privateStorage = false, requiredSignal = false) {
|
|
210
223
|
const record = path.resolve(file);
|
|
211
224
|
// Deliveries with the same immutable input population and pass reuse
|
|
212
225
|
// the established observation. A generation whose later module adds
|
|
@@ -216,10 +229,11 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
216
229
|
if (last !== undefined &&
|
|
217
230
|
last.inputs === inputs &&
|
|
218
231
|
last.startedAt === startedAt &&
|
|
232
|
+
last.privateStorage === privateStorage &&
|
|
219
233
|
failed !== true) {
|
|
220
234
|
return;
|
|
221
235
|
}
|
|
222
|
-
registered.set(record, { inputs, startedAt });
|
|
236
|
+
registered.set(record, { inputs, startedAt, privateStorage });
|
|
223
237
|
if (owed.has(record) &&
|
|
224
238
|
startedAt !== undefined &&
|
|
225
239
|
startedAt === lastBegin) {
|
|
@@ -229,7 +243,15 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
229
243
|
// read a state a change since `startedAt` has left, the replacement
|
|
230
244
|
// finds that at once and signals again.
|
|
231
245
|
settle(record);
|
|
232
|
-
|
|
246
|
+
if (requiredSignal)
|
|
247
|
+
requiredSignalRecord = record;
|
|
248
|
+
try {
|
|
249
|
+
observer.replace(record, inputs, failed, startedAt);
|
|
250
|
+
}
|
|
251
|
+
finally {
|
|
252
|
+
if (requiredSignal)
|
|
253
|
+
requiredSignalRecord = undefined;
|
|
254
|
+
}
|
|
233
255
|
},
|
|
234
256
|
};
|
|
235
257
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openHostWatchBridge.js","sources":["../../../src/core/bridge/openHostWatchBridge.ts"],"sourcesContent":[null],"names":["hostDeclaresPolling","signalProjectRecordFile","createInputObserver"],"mappings":";;;;;;;AASA
|
|
1
|
+
{"version":3,"file":"openHostWatchBridge.js","sources":["../../../src/core/bridge/openHostWatchBridge.ts"],"sourcesContent":[null],"names":["hostDeclaresPolling","signalProjectRecordFile","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,YAAA,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AAC7D,YAAA,IACE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;AAChB,gBAAA,SAAS,KAAK,SAAS;gBACvB,SAAS,KAAK,SAAS,EACvB;gBACA,UAAU,GAAG,IAAI;YACnB;;;;YAIA,MAAM,CAAC,MAAM,CAAC;AACd,YAAA,IAAI,cAAc;gBAAE,oBAAoB,GAAG,MAAM;AACjD,YAAA,IAAI;gBACF,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC;YACrD;oBAAU;AACR,gBAAA,IAAI,cAAc;oBAAE,oBAAoB,GAAG,SAAS;YACtD;QACF,CAAC;KACF;AACH;AAEA;;;;AAIG;AACH,MAAM,qBAAqB,GAAG,EAAE;AAEhC;AACA,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC;;;;"}
|
|
@@ -49,11 +49,21 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
49
49
|
* recorded it as a dependency of every module, and a build start proves it
|
|
50
50
|
* against the disk (`refreshProjectRecordFiles`).
|
|
51
51
|
*
|
|
52
|
+
* A host whose watcher cannot observe the record holds it as a dependency all
|
|
53
|
+
* the same, and is told of each move instead (`announce`): Farm's watcher
|
|
54
|
+
* ignores every path below `node_modules`, where the record lives, so the
|
|
55
|
+
* adapter asks Farm itself to update the record's dependents
|
|
56
|
+
* (`createFarmRecordUpdates`, samchon/ttsc#1942). Every move is told, the first
|
|
57
|
+
* and each later one, since a move a host heard while it was compiling may land
|
|
58
|
+
* in that compile rather than after it.
|
|
59
|
+
*
|
|
52
60
|
* @param root The directory whose pinned scope observes the project.
|
|
53
61
|
* @param operations Observer watch/poll/case capabilities, which do not replace
|
|
54
62
|
* native record writes or the filesystem used to recheck input conditions.
|
|
55
63
|
* @param polling The current host's polling declaration, including its active
|
|
56
64
|
* watch-session option. Standalone callers retain the environment default.
|
|
65
|
+
* @param announce Told the absolute record path after each move that landed,
|
|
66
|
+
* for a host whose watcher does not observe the record.
|
|
57
67
|
* @evidence contracts/common.md#principled-implementation
|
|
58
68
|
* Each record owns generation input evidence. A change remains owed until a
|
|
59
69
|
* registration replaces that evidence; replacement immediately signals again
|
|
@@ -114,7 +124,7 @@ import { signalProjectRecordFile } from './signalProjectRecordFile.mjs';
|
|
|
114
124
|
* close is best effort, and the opened root/pass window can survive close for
|
|
115
125
|
* later registration; completion does not certify every native handle's release.
|
|
116
126
|
*/
|
|
117
|
-
function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPolling(process.env)) {
|
|
127
|
+
function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPolling(process.env), announce) {
|
|
118
128
|
// Every map below is keyed by the record's absolute spelling, the one the
|
|
119
129
|
// observer reports its owners under.
|
|
120
130
|
// What each record was last registered with.
|
|
@@ -137,6 +147,7 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
137
147
|
// The records the host's last compile did not depend on, which its watcher
|
|
138
148
|
// does not observe, reported by a host that reports it (`compiled`).
|
|
139
149
|
const unwatched = new Set();
|
|
150
|
+
let requiredSignalRecord;
|
|
140
151
|
const settle = (record) => {
|
|
141
152
|
owed.delete(record);
|
|
142
153
|
clearTimeout(pending.get(record));
|
|
@@ -148,7 +159,8 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
148
159
|
// after whatever baseline the host takes next.
|
|
149
160
|
if (pending.has(record))
|
|
150
161
|
return;
|
|
151
|
-
signalProjectRecordFile(record)
|
|
162
|
+
if (signalProjectRecordFile(record, registered.get(record)?.privateStorage, requiredSignalRecord === record))
|
|
163
|
+
announce?.(record);
|
|
152
164
|
// The later moves defend a watcher's baseline, and no watcher of this host
|
|
153
165
|
// observes the record: a compile that comes to depend on it reads this
|
|
154
166
|
// move through its cache's snapshot, and `compiled` resumes the schedule
|
|
@@ -159,7 +171,8 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
159
171
|
const timer = setTimeout(() => {
|
|
160
172
|
if (pending.get(record) !== timer)
|
|
161
173
|
return;
|
|
162
|
-
signalProjectRecordFile(record)
|
|
174
|
+
if (signalProjectRecordFile(record, registered.get(record)?.privateStorage))
|
|
175
|
+
announce?.(record);
|
|
163
176
|
moveAfter(Math.min(delay * 4, MAX_TIMER_DELAY_MS));
|
|
164
177
|
}, delay).unref();
|
|
165
178
|
pending.set(record, timer);
|
|
@@ -204,7 +217,7 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
204
217
|
},
|
|
205
218
|
owes: (record) => (answeredIn !== undefined && pass <= answeredIn + 1) ||
|
|
206
219
|
(record === undefined ? owed.size !== 0 : owed.has(path.resolve(record))),
|
|
207
|
-
register(file, inputs, failed, startedAt) {
|
|
220
|
+
register(file, inputs, failed, startedAt, privateStorage = false, requiredSignal = false) {
|
|
208
221
|
const record = path.resolve(file);
|
|
209
222
|
// Deliveries with the same immutable input population and pass reuse
|
|
210
223
|
// the established observation. A generation whose later module adds
|
|
@@ -214,10 +227,11 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
214
227
|
if (last !== undefined &&
|
|
215
228
|
last.inputs === inputs &&
|
|
216
229
|
last.startedAt === startedAt &&
|
|
230
|
+
last.privateStorage === privateStorage &&
|
|
217
231
|
failed !== true) {
|
|
218
232
|
return;
|
|
219
233
|
}
|
|
220
|
-
registered.set(record, { inputs, startedAt });
|
|
234
|
+
registered.set(record, { inputs, startedAt, privateStorage });
|
|
221
235
|
if (owed.has(record) &&
|
|
222
236
|
startedAt !== undefined &&
|
|
223
237
|
startedAt === lastBegin) {
|
|
@@ -227,7 +241,15 @@ function openHostWatchBridge(root, operations = {}, polling = hostDeclaresPollin
|
|
|
227
241
|
// read a state a change since `startedAt` has left, the replacement
|
|
228
242
|
// finds that at once and signals again.
|
|
229
243
|
settle(record);
|
|
230
|
-
|
|
244
|
+
if (requiredSignal)
|
|
245
|
+
requiredSignalRecord = record;
|
|
246
|
+
try {
|
|
247
|
+
observer.replace(record, inputs, failed, startedAt);
|
|
248
|
+
}
|
|
249
|
+
finally {
|
|
250
|
+
if (requiredSignal)
|
|
251
|
+
requiredSignalRecord = undefined;
|
|
252
|
+
}
|
|
231
253
|
},
|
|
232
254
|
};
|
|
233
255
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openHostWatchBridge.mjs","sources":["../../../src/core/bridge/openHostWatchBridge.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AASA
|
|
1
|
+
{"version":3,"file":"openHostWatchBridge.mjs","sources":["../../../src/core/bridge/openHostWatchBridge.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHG;SACa,mBAAmB,CACjC,IAAY,EACZ,aAA+C,EAAE,EACjD,OAAA,GAAmB,mBAAmB,CAAC,OAAO,CAAC,GAAG,CAAC,EACnD,QAAmC,EAAA;;;;AAKnC,IAAA,MAAM,UAAU,GAAG,IAAI,GAAG,EAOvB;;AAEH,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;;;;;;;;;IAS9B,IAAI,IAAI,GAAG,CAAC;AACZ,IAAA,IAAI,SAA6B;AACjC,IAAA,IAAI,UAA8B;;AAElC,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,EAA0B;;;AAGjD,IAAA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU;AACnC,IAAA,IAAI,oBAAwC;AAC5C,IAAA,MAAM,MAAM,GAAG,CAAC,MAAc,KAAU;AACtC,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACnB,YAAY,CAAC,O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CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3E,QAAA,QAAQ,CACN,IAAI,EACJ,MAAM,EACN,MAAM,EACN,SAAS,EACT,cAAc,GAAG,KAAK,EACtB,cAAc,GAAG,KAAK,EAAA;YAEtB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;;;;;YAKjC,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;YACnC,IACE,IAAI,KAAK,SAAS;gBAClB,IAAI,CAAC,MAAM,KAAK,MAAM;gBACtB,IAAI,CAAC,SAAS,KAAK,SAAS;gBAC5B,IAAI,CAAC,cAAc,KAAK,cAAc;gBACtC,MAAM,KAAK,IAAI,EACf;gBACA;YACF;AACA,YAAA,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AAC7D,YAAA,IACE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;AAChB,gBAAA,SAAS,KAAK,SAAS;gBACvB,SAAS,KAAK,SAAS,EACvB;gBACA,UAAU,GAAG,IAAI;YACnB;;;;YAIA,MAAM,CAAC,MAAM,CAAC;AACd,YAAA,IAAI,cAAc;gBAAE,oBAAoB,GAAG,MAAM;AACjD,YAAA,IAAI;gBACF,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC;YACrD;oBAAU;AACR,gBAAA,IAAI,cAAc;oBAAE,oBAAoB,GAAG,SAAS;YACtD;QACF,CAAC;KACF;AACH;AAEA;;;;AAIG;AACH,MAAM,qBAAqB,GAAG,EAAE;AAEhC;AACA,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create the record directory under the current physical installation.
|
|
3
|
+
* Automatic cache components are checked one at a time before descending into
|
|
4
|
+
* them. Explicit record owners and the same-volume fallback supply an already
|
|
5
|
+
* selected parent. The result is the spelling the publisher writes through.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/common.md#principled-implementation Native realpath and lstat keep every automatic cache component under an ordinary physical node_modules installation before the record writer accesses it.
|
|
8
|
+
* @evidence contracts/common.md#clear-and-simple-design One owner handles the default cache policy for both directory preparation and record publication.
|
|
9
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts An alias at a default cache child refuses writes before recursion can reach its destination.
|
|
10
|
+
* @evidence contracts/common.md#meaningful-documentation The prose explains physical placement, explicit ownership and the returned address.
|
|
11
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native fs and path primitives check directory kinds and preserve the root volume and native spelling.
|
|
12
|
+
* @evidence contracts/performance.md#efficient-algorithms The default layout performs a bounded sequence of direct child checks. Explicit paths retain their recursive parent creation cost.
|
|
13
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each preparation observes current filesystem topology.
|
|
14
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Created directories belong to the persistent record protocol. No additional scratch or open handle survives preparation.
|
|
15
|
+
*/
|
|
16
|
+
export declare function prepareProjectRecordDirectory(directory: string, privateStorage?: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* Probe the default record layout without creating it (samchon/ttsc#1942).
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/common.md#principled-implementation The probe walks the components creation walks, with the same physical-installation and ordinary-directory checks, and asks the OS for the access creation needs.
|
|
21
|
+
* @evidence contracts/common.md#clear-and-simple-design Probing and creation share one walk, so the two cannot disagree on the layout.
|
|
22
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Nothing is created, and a link or file at a component refuses the location instead of being followed.
|
|
23
|
+
* @evidence contracts/common.md#meaningful-documentation The member comment states what qualifies and which caller decides on it.
|
|
24
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native realpath, lstat and access report links, kinds and permissions on every platform.
|
|
25
|
+
* @evidence contracts/performance.md#efficient-algorithms At most two realpath calls, five lstat calls and one access check.
|
|
26
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The installation can change between configuration passes.
|
|
27
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Probing creates and retains nothing.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace prepareProjectRecordDirectory {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the default record directory below a host root can hold records,
|
|
32
|
+
* observed without creating anything: every present component passes the
|
|
33
|
+
* checks creation applies, and the first missing one has a parent the current
|
|
34
|
+
* user can create in and traverse. A host with no per-module cache control
|
|
35
|
+
* decides on this before any record is written
|
|
36
|
+
* (`farmPersistentCacheWithoutRecords`).
|
|
37
|
+
*
|
|
38
|
+
* @param root The build host's effective filesystem root.
|
|
39
|
+
*/
|
|
40
|
+
function available(root: string): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create the record directory under the current physical installation.
|
|
3
|
+
* Automatic cache components are checked one at a time before descending into
|
|
4
|
+
* them. Explicit record owners and the same-volume fallback supply an already
|
|
5
|
+
* selected parent. The result is the spelling the publisher writes through.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/common.md#principled-implementation Native realpath and lstat keep every automatic cache component under an ordinary physical node_modules installation before the record writer accesses it.
|
|
8
|
+
* @evidence contracts/common.md#clear-and-simple-design One owner handles the default cache policy for both directory preparation and record publication.
|
|
9
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts An alias at a default cache child refuses writes before recursion can reach its destination.
|
|
10
|
+
* @evidence contracts/common.md#meaningful-documentation The prose explains physical placement, explicit ownership and the returned address.
|
|
11
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native fs and path primitives check directory kinds and preserve the root volume and native spelling.
|
|
12
|
+
* @evidence contracts/performance.md#efficient-algorithms The default layout performs a bounded sequence of direct child checks. Explicit paths retain their recursive parent creation cost.
|
|
13
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each preparation observes current filesystem topology.
|
|
14
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Created directories belong to the persistent record protocol. No additional scratch or open handle survives preparation.
|
|
15
|
+
*/
|
|
16
|
+
export declare function prepareProjectRecordDirectory(directory: string, privateStorage?: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* Probe the default record layout without creating it (samchon/ttsc#1942).
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/common.md#principled-implementation The probe walks the components creation walks, with the same physical-installation and ordinary-directory checks, and asks the OS for the access creation needs.
|
|
21
|
+
* @evidence contracts/common.md#clear-and-simple-design Probing and creation share one walk, so the two cannot disagree on the layout.
|
|
22
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Nothing is created, and a link or file at a component refuses the location instead of being followed.
|
|
23
|
+
* @evidence contracts/common.md#meaningful-documentation The member comment states what qualifies and which caller decides on it.
|
|
24
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native realpath, lstat and access report links, kinds and permissions on every platform.
|
|
25
|
+
* @evidence contracts/performance.md#efficient-algorithms At most two realpath calls, five lstat calls and one access check.
|
|
26
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The installation can change between configuration passes.
|
|
27
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Probing creates and retains nothing.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace prepareProjectRecordDirectory {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the default record directory below a host root can hold records,
|
|
32
|
+
* observed without creating anything: every present component passes the
|
|
33
|
+
* checks creation applies, and the first missing one has a parent the current
|
|
34
|
+
* user can create in and traverse. A host with no per-module cache control
|
|
35
|
+
* decides on this before any record is written
|
|
36
|
+
* (`farmPersistentCacheWithoutRecords`).
|
|
37
|
+
*
|
|
38
|
+
* @param root The build host's effective filesystem root.
|
|
39
|
+
*/
|
|
40
|
+
function available(root: string): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create the record directory under the current physical installation.
|
|
3
|
+
* Automatic cache components are checked one at a time before descending into
|
|
4
|
+
* them. Explicit record owners and the same-volume fallback supply an already
|
|
5
|
+
* selected parent. The result is the spelling the publisher writes through.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/common.md#principled-implementation Native realpath and lstat keep every automatic cache component under an ordinary physical node_modules installation before the record writer accesses it.
|
|
8
|
+
* @evidence contracts/common.md#clear-and-simple-design One owner handles the default cache policy for both directory preparation and record publication.
|
|
9
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts An alias at a default cache child refuses writes before recursion can reach its destination.
|
|
10
|
+
* @evidence contracts/common.md#meaningful-documentation The prose explains physical placement, explicit ownership and the returned address.
|
|
11
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native fs and path primitives check directory kinds and preserve the root volume and native spelling.
|
|
12
|
+
* @evidence contracts/performance.md#efficient-algorithms The default layout performs a bounded sequence of direct child checks. Explicit paths retain their recursive parent creation cost.
|
|
13
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each preparation observes current filesystem topology.
|
|
14
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Created directories belong to the persistent record protocol. No additional scratch or open handle survives preparation.
|
|
15
|
+
*/
|
|
16
|
+
export declare function prepareProjectRecordDirectory(directory: string, privateStorage?: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* Probe the default record layout without creating it (samchon/ttsc#1942).
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/common.md#principled-implementation The probe walks the components creation walks, with the same physical-installation and ordinary-directory checks, and asks the OS for the access creation needs.
|
|
21
|
+
* @evidence contracts/common.md#clear-and-simple-design Probing and creation share one walk, so the two cannot disagree on the layout.
|
|
22
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Nothing is created, and a link or file at a component refuses the location instead of being followed.
|
|
23
|
+
* @evidence contracts/common.md#meaningful-documentation The member comment states what qualifies and which caller decides on it.
|
|
24
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native realpath, lstat and access report links, kinds and permissions on every platform.
|
|
25
|
+
* @evidence contracts/performance.md#efficient-algorithms At most two realpath calls, five lstat calls and one access check.
|
|
26
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The installation can change between configuration passes.
|
|
27
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Probing creates and retains nothing.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace prepareProjectRecordDirectory {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the default record directory below a host root can hold records,
|
|
32
|
+
* observed without creating anything: every present component passes the
|
|
33
|
+
* checks creation applies, and the first missing one has a parent the current
|
|
34
|
+
* user can create in and traverse. A host with no per-module cache control
|
|
35
|
+
* decides on this before any record is written
|
|
36
|
+
* (`farmPersistentCacheWithoutRecords`).
|
|
37
|
+
*
|
|
38
|
+
* @param root The build host's effective filesystem root.
|
|
39
|
+
*/
|
|
40
|
+
function available(root: string): boolean;
|
|
41
|
+
}
|