@ttsc/unplugin 0.38.0 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/core/bridge/HostWatchBridge.d.cts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.mts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.ts +1 -1
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.cts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.mts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.ts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js +7 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js.map +1 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs +5 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs.map +1 -0
- package/lib/core/bridge/TtscProjectRecord.d.cts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.mts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.ts +9 -0
- package/lib/core/bridge/fallbackRecordStorage.d.cts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.mts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.ts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.js +96 -0
- package/lib/core/bridge/fallbackRecordStorage.js.map +1 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs +94 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs.map +1 -0
- package/lib/core/bridge/fallbackToolDirectory.d.cts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.mts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.ts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.js +19 -30
- package/lib/core/bridge/fallbackToolDirectory.js.map +1 -1
- package/lib/core/bridge/fallbackToolDirectory.mjs +19 -30
- package/lib/core/bridge/fallbackToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.cts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.mts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.ts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js +38 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js.map +1 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs +36 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs.map +1 -0
- package/lib/core/bridge/hostToolDirectory.d.cts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.mts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.ts +13 -46
- package/lib/core/bridge/hostToolDirectory.js +14 -47
- package/lib/core/bridge/hostToolDirectory.js.map +1 -1
- package/lib/core/bridge/hostToolDirectory.mjs +14 -47
- package/lib/core/bridge/hostToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.d.cts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.mts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.ts +11 -1
- package/lib/core/bridge/openHostWatchBridge.js +28 -6
- package/lib/core/bridge/openHostWatchBridge.js.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.mjs +28 -6
- package/lib/core/bridge/openHostWatchBridge.mjs.map +1 -1
- package/lib/core/bridge/prepareProjectRecordDirectory.d.cts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.mts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.ts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js +127 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js.map +1 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs +125 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.cts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.mts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.ts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js +31 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs +29 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs.map +1 -0
- package/lib/core/bridge/projectRecordMoved.js +5 -0
- package/lib/core/bridge/projectRecordMoved.js.map +1 -1
- package/lib/core/bridge/projectRecordMoved.mjs +5 -0
- package/lib/core/bridge/projectRecordMoved.mjs.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.js +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.js.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.mjs +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.mjs.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.js +23 -1
- package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.mjs +23 -1
- package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.js +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.mjs +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.cts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.mts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.ts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.js +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.mjs +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.mjs.map +1 -1
- package/lib/core/bridge/registerProjectRecord.js +3 -1
- package/lib/core/bridge/registerProjectRecord.js.map +1 -1
- package/lib/core/bridge/registerProjectRecord.mjs +3 -1
- package/lib/core/bridge/registerProjectRecord.mjs.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.js +18 -5
- package/lib/core/bridge/signalProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.mjs +18 -5
- package/lib/core/bridge/signalProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.js +7 -3
- package/lib/core/bridge/writeProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.mjs +7 -3
- package/lib/core/bridge/writeProjectRecordFile.mjs.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.js +9 -7
- package/lib/core/esbuild/createEsbuildOptions.js.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.mjs +9 -7
- package/lib/core/esbuild/createEsbuildOptions.mjs.map +1 -1
- package/lib/core/farm/createFarmRecordUpdates.d.cts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.mts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.ts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.js +129 -0
- package/lib/core/farm/createFarmRecordUpdates.js.map +1 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs +127 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs.map +1 -0
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.cts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.mts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.ts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js.map +1 -1
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs.map +1 -1
- package/lib/core/farm/farmRecordFallback.d.cts +15 -15
- package/lib/core/farm/farmRecordFallback.d.mts +15 -15
- package/lib/core/farm/farmRecordFallback.d.ts +15 -15
- package/lib/core/farm/farmRecordFallback.js +22 -20
- package/lib/core/farm/farmRecordFallback.js.map +1 -1
- package/lib/core/farm/farmRecordFallback.mjs +22 -20
- package/lib/core/farm/farmRecordFallback.mjs.map +1 -1
- package/lib/core/next/next.js +5 -4
- package/lib/core/next/next.js.map +1 -1
- package/lib/core/next/next.mjs +5 -4
- package/lib/core/next/next.mjs.map +1 -1
- package/lib/core/observer/InputCondition.d.cts +5 -0
- package/lib/core/observer/InputCondition.d.mts +5 -0
- package/lib/core/observer/InputCondition.d.ts +5 -0
- package/lib/core/observer/InputObserverChange.d.cts +2 -0
- package/lib/core/observer/InputObserverChange.d.mts +2 -0
- package/lib/core/observer/InputObserverChange.d.ts +2 -0
- package/lib/core/observer/createInputObserver.d.cts +3 -1
- package/lib/core/observer/createInputObserver.d.mts +3 -1
- package/lib/core/observer/createInputObserver.d.ts +3 -1
- package/lib/core/observer/createInputObserver.js +179 -26
- package/lib/core/observer/createInputObserver.js.map +1 -1
- package/lib/core/observer/createInputObserver.mjs +180 -27
- package/lib/core/observer/createInputObserver.mjs.map +1 -1
- package/lib/core/observer/ttscWriteDirectories.d.cts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.mts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.ts +31 -0
- package/lib/core/observer/ttscWriteDirectories.js +59 -0
- package/lib/core/observer/ttscWriteDirectories.js.map +1 -0
- package/lib/core/observer/ttscWriteDirectories.mjs +57 -0
- package/lib/core/observer/ttscWriteDirectories.mjs.map +1 -0
- package/lib/core/rollup/TtscRollupDelivery.d.cts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.mts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.ts +2 -0
- package/lib/core/rollup/createRollupCachedModuleProof.d.cts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.mts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.ts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.js +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.js.map +1 -1
- package/lib/core/rollup/createRollupCachedModuleProof.mjs +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.mjs.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.d.cts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.mts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.ts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.js +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.mjs +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.mjs.map +1 -1
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.cts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.mts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.ts +7 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.js +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
- package/lib/core/transform/deliverCachedTransform.js +1 -0
- package/lib/core/transform/deliverCachedTransform.js.map +1 -1
- package/lib/core/transform/deliverCachedTransform.mjs +1 -0
- package/lib/core/transform/deliverCachedTransform.mjs.map +1 -1
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.cts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.mts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.ts +6 -15
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.cts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.mts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.ts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.js.map +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.mjs.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.cts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.mts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.ts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.js.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.mjs.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.cts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.mts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.ts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.js +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.js.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.cts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.mts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.ts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.js.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.js +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.js.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.mjs +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.cts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.mts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.ts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js +84 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js.map +1 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs +82 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs.map +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js.map +1 -1
- package/lib/core/transform/envelope/envelopeDerivation.mjs +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.mjs.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.cts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.mts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.ts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.d.cts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.mts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.ts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.js +1 -1
- package/lib/core/transform/envelope/isVolatileFile.js.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.d.cts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.mts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.ts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.js +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.js.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.mjs +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.d.cts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.mts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.ts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.js +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.mjs +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.cts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.mts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.ts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.js +4 -1
- package/lib/core/transform/envelope/selectHostInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs +4 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.cts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.mts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.ts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.mjs.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.cts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.mts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.ts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.d.cts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.mts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.ts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.js +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.js.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.mjs +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.mjs.map +1 -1
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.cts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.mts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.ts +3 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.d.cts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.mts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.ts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.js +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.js.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.mjs +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.mjs.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.cts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.mts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.ts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js +13 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs +14 -2
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.d.cts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.mts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.ts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.js +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.mjs +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.d.cts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.mts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.ts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.js +2 -0
- package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.mjs +2 -0
- package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.d.cts +1 -1
- package/lib/core/transform/transformTtsc.d.mts +1 -1
- package/lib/core/transform/transformTtsc.d.ts +1 -1
- package/lib/core/transform/transformTtsc.js +26 -8
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +26 -8
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.cts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.mts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.ts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.d.cts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.mts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.ts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.js +41 -2
- package/lib/core/transform/validation/TtscGenerationProof.js.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.mjs +42 -3
- package/lib/core/transform/validation/TtscGenerationProof.mjs.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js +9 -0
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +10 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.cts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.mts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.ts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.cts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.mts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.ts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.cts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.mts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.ts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.cts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.mts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.ts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.cts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.mts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.ts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs.map +1 -1
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.cts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.mts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.ts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js +12 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js.map +1 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs +10 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.cts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.mts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.ts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs +2 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.cts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.mts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.ts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.js +3 -0
- package/lib/core/transform/watch/TtscTransformHooks.js.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs +2 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs.map +1 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.cts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.mts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.ts +3 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.cts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.mts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.ts +14 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.cts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.mts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.ts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js +54 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js.map +1 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs +52 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs.map +1 -0
- package/lib/core/transform/watch/evidencedWatchInput.js +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.js.map +1 -1
- package/lib/core/transform/watch/evidencedWatchInput.mjs +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.mjs.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.d.cts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.mts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.ts +4 -4
- package/lib/core/transform/watch/handWatchInputs.js +21 -5
- package/lib/core/transform/watch/handWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.mjs +21 -5
- package/lib/core/transform/watch/handWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.cts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.mts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.ts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.js +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.mjs +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.d.cts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.mts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.ts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.js +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.js.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.d.cts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.mts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.ts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.js +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.mjs +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.cts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.mts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.ts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs.map +1 -1
- package/lib/core/transform/watch/projectRecordDirectories.d.cts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.mts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.ts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.js +34 -0
- package/lib/core/transform/watch/projectRecordDirectories.js.map +1 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs +32 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs.map +1 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.js +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.js.map +1 -1
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs.map +1 -1
- package/lib/core/unplugin.js +43 -27
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +43 -27
- package/lib/core/unplugin.mjs.map +1 -1
- package/lib/core/vite/ViteServeInputWatch.d.cts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.mts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.ts +17 -0
- package/lib/core/vite/createViteServeInputWatch.d.cts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.mts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.ts +5 -0
- package/lib/core/vite/createViteServeInputWatch.js +86 -10
- package/lib/core/vite/createViteServeInputWatch.js.map +1 -1
- package/lib/core/vite/createViteServeInputWatch.mjs +86 -10
- package/lib/core/vite/createViteServeInputWatch.mjs.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.d.cts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.mts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.ts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.js +10 -4
- package/lib/core/vite/createViteServeWatchHooks.js.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.mjs +10 -4
- package/lib/core/vite/createViteServeWatchHooks.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/bridge/HostWatchBridge.ts +2 -0
- package/src/core/bridge/MANAGED_PROJECT_RECORDS.ts +2 -0
- package/src/core/bridge/TtscProjectRecord.ts +9 -0
- package/src/core/bridge/fallbackRecordStorage.ts +104 -0
- package/src/core/bridge/fallbackToolDirectory.ts +22 -38
- package/src/core/bridge/fallbackToolDirectoryLocation.ts +40 -0
- package/src/core/bridge/hostToolDirectory.ts +14 -47
- package/src/core/bridge/openHostWatchBridge.ts +48 -6
- package/src/core/bridge/prepareProjectRecordDirectory.ts +134 -0
- package/src/core/bridge/privateProjectRecordAvailable.ts +25 -0
- package/src/core/bridge/projectRecordMoved.ts +7 -0
- package/src/core/bridge/projectRecordWatchInputs.ts +6 -0
- package/src/core/bridge/readProjectRecordFile.ts +28 -1
- package/src/core/bridge/refreshProjectRecordFile.ts +40 -7
- package/src/core/bridge/refreshProjectRecordFiles.ts +44 -12
- package/src/core/bridge/registerProjectRecord.ts +2 -0
- package/src/core/bridge/signalProjectRecordFile.ts +25 -5
- package/src/core/bridge/writeProjectRecordFile.ts +10 -3
- package/src/core/esbuild/createEsbuildOptions.ts +9 -10
- package/src/core/farm/createFarmRecordUpdates.ts +167 -0
- package/src/core/farm/farmPersistentCacheWithoutRecords.ts +25 -55
- package/src/core/farm/farmRecordFallback.ts +25 -20
- package/src/core/next/next.ts +5 -3
- package/src/core/observer/InputCondition.ts +7 -0
- package/src/core/observer/InputObserverChange.ts +3 -0
- package/src/core/observer/createInputObserver.ts +186 -25
- package/src/core/observer/ttscWriteDirectories.ts +56 -0
- package/src/core/rollup/TtscRollupDelivery.ts +2 -0
- package/src/core/rollup/createRollupCachedModuleProof.ts +65 -33
- package/src/core/rollup/rollupDeliveryOptions.ts +7 -4
- package/src/core/transform/cache/TtscCachedProjectTransform.ts +6 -0
- package/src/core/transform/cache/selectCachedGenerationAction.ts +9 -4
- package/src/core/transform/deliverCachedTransform.ts +1 -0
- package/src/core/transform/envelope/TtscEnvelopeDerivation.ts +6 -17
- package/src/core/transform/envelope/collectDeclaredIdentities.ts +1 -1
- package/src/core/transform/envelope/createEnvelopeKeyIndex.ts +1 -1
- package/src/core/transform/envelope/declaresCompleteDependencies.ts +17 -7
- package/src/core/transform/envelope/derivationIdentity.ts +1 -1
- package/src/core/transform/envelope/deriveWatchInputs.ts +10 -64
- package/src/core/transform/envelope/deriveWatchInputsFromIndexes.ts +117 -0
- package/src/core/transform/envelope/envelopeDerivation.ts +1 -0
- package/src/core/transform/envelope/envelopeGraphIndexes.ts +2 -1
- package/src/core/transform/envelope/isVolatileFile.ts +12 -3
- package/src/core/transform/envelope/selectFileDependencies.ts +11 -14
- package/src/core/transform/envelope/selectGraphInputs.ts +13 -10
- package/src/core/transform/envelope/selectHostInputs.ts +11 -2
- package/src/core/transform/envelope/selectNotifiableAbsentInputs.ts +13 -8
- package/src/core/transform/envelope/selectReachableEdges.ts +2 -2
- package/src/core/transform/envelope/selectReachableSources.ts +2 -2
- package/src/core/transform/envelope/selectResolutionCandidateInputs.ts +9 -15
- package/src/core/transform/filesystem/userStateDirectory.ts +46 -15
- package/src/core/transform/generation/TtscFailedGenerationValidation.ts +5 -0
- package/src/core/transform/generation/captureTransformGeneration.ts +64 -22
- package/src/core/transform/generation/createUnstableGenerationError.ts +24 -4
- package/src/core/transform/generation/failedGenerationEnvironmentChanged.ts +18 -2
- package/src/core/transform/inputs/hostInputRealpath.ts +13 -8
- package/src/core/transform/inputs/sameHostInputRealpath.ts +4 -2
- package/src/core/transform/session/claimSharedCompile.ts +2 -0
- package/src/core/transform/transformTtsc.ts +28 -7
- package/src/core/transform/tsconfig/createTransformScratchDirectory.ts +36 -31
- package/src/core/transform/validation/TtscGenerationProof.ts +57 -2
- package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -0
- package/src/core/transform/validation/matchesCachedExternalInputs.ts +6 -1
- package/src/core/transform/validation/matchesCompleteInputSnapshot.ts +23 -9
- package/src/core/transform/validation/matchesExternalInputRealpaths.ts +7 -3
- package/src/core/transform/validation/matchesNarrowPersistentInputs.ts +81 -2
- package/src/core/transform/validation/nativeInputPredicatesHold.ts +15 -6
- package/src/core/transform/watch/RECOVERY_TREE_DIGEST.ts +12 -0
- package/src/core/transform/watch/TtscProjectRegistration.ts +4 -0
- package/src/core/transform/watch/TtscTransformHooks.ts +40 -12
- package/src/core/transform/watch/TtscWatchInputEvidence.ts +3 -0
- package/src/core/transform/watch/TtscWorkspaceWatchEvidence.ts +17 -0
- package/src/core/transform/watch/captureRecoveryTreeDigest.ts +58 -0
- package/src/core/transform/watch/evidencedWatchInput.ts +7 -0
- package/src/core/transform/watch/handWatchInputs.ts +21 -5
- package/src/core/transform/watch/notifyFailedGenerationInputs.ts +66 -10
- package/src/core/transform/watch/notifyProjectRecord.ts +68 -25
- package/src/core/transform/watch/notifyRejectedGenerationInputs.ts +22 -9
- package/src/core/transform/watch/notifyVolatileDelivery.ts +7 -6
- package/src/core/transform/watch/notifyWatchInputs.ts +112 -14
- package/src/core/transform/watch/prepareProjectRecordDirectories.ts +14 -16
- package/src/core/transform/watch/projectRecordDirectories.ts +33 -0
- package/src/core/transform/watch/recordedDependencyWitnesses.ts +8 -9
- package/src/core/transform/watch/watchInputEvidenceMatchesBaseline.ts +2 -1
- package/src/core/transform/watch/watchInputEvidenceMatchesDisk.ts +7 -0
- package/src/core/unplugin.ts +72 -42
- package/src/core/vite/ViteServeInputWatch.ts +24 -0
- package/src/core/vite/createViteServeInputWatch.ts +98 -9
- package/src/core/vite/createViteServeWatchHooks.ts +15 -6
- package/lib/core/bridge/projectRecordDirectoryWritable.d.cts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.mts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.ts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.js +0 -65
- package/lib/core/bridge/projectRecordDirectoryWritable.js.map +0 -1
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs +0 -63
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs.map +0 -1
- package/src/core/bridge/projectRecordDirectoryWritable.ts +0 -61
|
@@ -19,4 +19,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
|
19
19
|
* @evidence contracts/performance.md#efficient-algorithms Each reached identity is popped once and each reached adjacency entry scanned once, giving V + E structural operations. Identity and Map/Set queries also pay spelling/key text hashing or comparison, and cold spellings add native path/ancestor/case observations. Stack, visited identities and output grow with reached vertices and retained text; duplicate edge spellings still require identity queries.
|
|
20
20
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This closure operation owns no cross-request cache; selectWatchInputs owns final per-spelling reuse and envelopeGraphIndexes owns shared adjacency reuse.
|
|
21
21
|
*/
|
|
22
|
-
export declare function selectReachableEdges(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, file: string): string[];
|
|
22
|
+
export declare function selectReachableEdges(graph: Pick<TtscEnvelopeGraphIndexes, "edges">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectReachableEdges.js","sources":["../../../../src/core/transform/envelope/selectReachableEdges.ts"],"sourcesContent":[null],"names":["derivationIdentity"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;AAkBG;SACa,oBAAoB,CAClC,
|
|
1
|
+
{"version":3,"file":"selectReachableEdges.js","sources":["../../../../src/core/transform/envelope/selectReachableEdges.ts"],"sourcesContent":[null],"names":["derivationIdentity"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;AAkBG;SACa,oBAAoB,CAClC,KAA8C,EAC9C,KAAqE,EACrE,IAAY,EAAA;IAEZ,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAS,CAACA,qCAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAClE,IAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC;AACpB,IAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAG;AAC5B,QAAA,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAACA,qCAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACtE,YAAA,EAAE,EAAE;YACJ,MAAM,QAAQ,GAAGA,qCAAkB,CAAC,KAAK,EAAE,MAAM,CAAC;AAClD,YAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACzB;YACF;AACA,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AACrB,YAAA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAClB,YAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACrB;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectReachableEdges.mjs","sources":["../../../../src/core/transform/envelope/selectReachableEdges.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;AAkBG;SACa,oBAAoB,CAClC,
|
|
1
|
+
{"version":3,"file":"selectReachableEdges.mjs","sources":["../../../../src/core/transform/envelope/selectReachableEdges.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;AAkBG;SACa,oBAAoB,CAClC,KAA8C,EAC9C,KAAqE,EACrE,IAAY,EAAA;IAEZ,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAClE,IAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC;AACpB,IAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAG;AAC5B,QAAA,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACtE,YAAA,EAAE,EAAE;YACJ,MAAM,QAAQ,GAAG,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC;AAClD,YAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACzB;YACF;AACA,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AACrB,YAAA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAClB,YAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACrB;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -18,4 +18,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
|
18
18
|
* @evidence contracts/performance.md#efficient-algorithms Each reached identity is popped once and each reached adjacency entry scanned once, giving V + E structural operations. Spelling/key text hashing or comparison and cold native path/ancestor/case observations add identity costs, including queries for duplicate edge spellings. Stack, visited identities and output retain reached-vertex populations and their text; source spelling selection is one additional Map query per newly reached identity.
|
|
19
19
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This source closure is an invocation-local computation; per-delivery watch-list reuse belongs to selectWatchInputs and generation index reuse belongs to envelopeGraphIndexes.
|
|
20
20
|
*/
|
|
21
|
-
export declare function selectReachableSources(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, file: string): string[];
|
|
21
|
+
export declare function selectReachableSources(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -18,4 +18,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
|
18
18
|
* @evidence contracts/performance.md#efficient-algorithms Each reached identity is popped once and each reached adjacency entry scanned once, giving V + E structural operations. Spelling/key text hashing or comparison and cold native path/ancestor/case observations add identity costs, including queries for duplicate edge spellings. Stack, visited identities and output retain reached-vertex populations and their text; source spelling selection is one additional Map query per newly reached identity.
|
|
19
19
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This source closure is an invocation-local computation; per-delivery watch-list reuse belongs to selectWatchInputs and generation index reuse belongs to envelopeGraphIndexes.
|
|
20
20
|
*/
|
|
21
|
-
export declare function selectReachableSources(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, file: string): string[];
|
|
21
|
+
export declare function selectReachableSources(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -18,4 +18,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
|
18
18
|
* @evidence contracts/performance.md#efficient-algorithms Each reached identity is popped once and each reached adjacency entry scanned once, giving V + E structural operations. Spelling/key text hashing or comparison and cold native path/ancestor/case observations add identity costs, including queries for duplicate edge spellings. Stack, visited identities and output retain reached-vertex populations and their text; source spelling selection is one additional Map query per newly reached identity.
|
|
19
19
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This source closure is an invocation-local computation; per-delivery watch-list reuse belongs to selectWatchInputs and generation index reuse belongs to envelopeGraphIndexes.
|
|
20
20
|
*/
|
|
21
|
-
export declare function selectReachableSources(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, file: string): string[];
|
|
21
|
+
export declare function selectReachableSources(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectReachableSources.js","sources":["../../../../src/core/transform/envelope/selectReachableSources.ts"],"sourcesContent":[null],"names":["derivationIdentity"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;AAiBG;SACa,sBAAsB,CACpC,
|
|
1
|
+
{"version":3,"file":"selectReachableSources.js","sources":["../../../../src/core/transform/envelope/selectReachableSources.ts"],"sourcesContent":[null],"names":["derivationIdentity"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;AAiBG;SACa,sBAAsB,CACpC,KAA4D,EAC5D,KAAqE,EACrE,IAAY,EAAA;AAEZ,IAAA,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC;AACrB,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAS,CAACA,qCAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAClE,IAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC;AACpB,IAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAG;AAC5B,QAAA,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAACA,qCAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACtE,YAAA,EAAE,EAAE;YACJ,MAAM,QAAQ,GAAGA,qCAAkB,CAAC,KAAK,EAAE,MAAM,CAAC;AAClD,YAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACzB;YACF;AACA,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AACrB,YAAA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAClB,YAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC;QACtD;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectReachableSources.mjs","sources":["../../../../src/core/transform/envelope/selectReachableSources.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;AAiBG;SACa,sBAAsB,CACpC,
|
|
1
|
+
{"version":3,"file":"selectReachableSources.mjs","sources":["../../../../src/core/transform/envelope/selectReachableSources.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;AAiBG;SACa,sBAAsB,CACpC,KAA4D,EAC5D,KAAqE,EACrE,IAAY,EAAA;AAEZ,IAAA,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC;AACrB,IAAA,MAAM,OAAO,GAAG,IAAI,GAAG,CAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAClE,IAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC;AACpB,IAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAG;AAC5B,QAAA,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACtE,YAAA,EAAE,EAAE;YACJ,MAAM,QAAQ,GAAG,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC;AAClD,YAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACzB;YACF;AACA,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AACrB,YAAA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AAClB,YAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC;QACtD;IACF;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
1
|
import type { TtscEnvelopeDerivation } from "./TtscEnvelopeDerivation.cjs";
|
|
3
2
|
import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
4
3
|
/**
|
|
@@ -21,8 +20,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
|
21
20
|
* @evidence contracts/performance.md#efficient-algorithms Reachable-source traversal pays visited V + E structural work plus spelling/key text and cold native identity observations. Mapping those sources allocates another V-entry array before the membership set; one candidate-entry scan then appends universal and selected list members. Temporary arrays, sets and output scale with reachable sources, universal inputs, selected inputs and their retained text, without compiler module resolution.
|
|
22
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This selector owns no request memo; shared candidate parsing belongs to envelopeGraphIndexes and final per-module list reuse belongs to selectWatchInputs.
|
|
23
22
|
*/
|
|
24
|
-
export declare function selectResolutionCandidateInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation,
|
|
25
|
-
file: string;
|
|
26
|
-
projectRoot: string;
|
|
27
|
-
result: ITtscCompilerTransformation;
|
|
28
|
-
}): string[];
|
|
23
|
+
export declare function selectResolutionCandidateInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings" | "candidates" | "resolutionInputs">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
1
|
import type { TtscEnvelopeDerivation } from "./TtscEnvelopeDerivation.mjs";
|
|
3
2
|
import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
4
3
|
/**
|
|
@@ -21,8 +20,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
|
21
20
|
* @evidence contracts/performance.md#efficient-algorithms Reachable-source traversal pays visited V + E structural work plus spelling/key text and cold native identity observations. Mapping those sources allocates another V-entry array before the membership set; one candidate-entry scan then appends universal and selected list members. Temporary arrays, sets and output scale with reachable sources, universal inputs, selected inputs and their retained text, without compiler module resolution.
|
|
22
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This selector owns no request memo; shared candidate parsing belongs to envelopeGraphIndexes and final per-module list reuse belongs to selectWatchInputs.
|
|
23
22
|
*/
|
|
24
|
-
export declare function selectResolutionCandidateInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation,
|
|
25
|
-
file: string;
|
|
26
|
-
projectRoot: string;
|
|
27
|
-
result: ITtscCompilerTransformation;
|
|
28
|
-
}): string[];
|
|
23
|
+
export declare function selectResolutionCandidateInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings" | "candidates" | "resolutionInputs">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
1
|
import type { TtscEnvelopeDerivation } from "./TtscEnvelopeDerivation";
|
|
3
2
|
import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
4
3
|
/**
|
|
@@ -21,8 +20,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
|
21
20
|
* @evidence contracts/performance.md#efficient-algorithms Reachable-source traversal pays visited V + E structural work plus spelling/key text and cold native identity observations. Mapping those sources allocates another V-entry array before the membership set; one candidate-entry scan then appends universal and selected list members. Temporary arrays, sets and output scale with reachable sources, universal inputs, selected inputs and their retained text, without compiler module resolution.
|
|
22
21
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This selector owns no request memo; shared candidate parsing belongs to envelopeGraphIndexes and final per-module list reuse belongs to selectWatchInputs.
|
|
23
22
|
*/
|
|
24
|
-
export declare function selectResolutionCandidateInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation,
|
|
25
|
-
file: string;
|
|
26
|
-
projectRoot: string;
|
|
27
|
-
result: ITtscCompilerTransformation;
|
|
28
|
-
}): string[];
|
|
23
|
+
export declare function selectResolutionCandidateInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "spellings" | "candidates" | "resolutionInputs">, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, file: string): string[];
|
|
@@ -23,14 +23,11 @@ var selectReachableSources = require('./selectReachableSources.js');
|
|
|
23
23
|
* @evidence contracts/performance.md#efficient-algorithms Reachable-source traversal pays visited V + E structural work plus spelling/key text and cold native identity observations. Mapping those sources allocates another V-entry array before the membership set; one candidate-entry scan then appends universal and selected list members. Temporary arrays, sets and output scale with reachable sources, universal inputs, selected inputs and their retained text, without compiler module resolution.
|
|
24
24
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This selector owns no request memo; shared candidate parsing belongs to envelopeGraphIndexes and final per-module list reuse belongs to selectWatchInputs.
|
|
25
25
|
*/
|
|
26
|
-
function selectResolutionCandidateInputs(graph, state,
|
|
27
|
-
if (props.result.type === "exception" || props.result.graph === undefined) {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
const reachable = new Set(selectReachableSources.selectReachableSources(graph, state, props.file).map((source) => derivationIdentity.derivationIdentity(state, source)));
|
|
26
|
+
function selectResolutionCandidateInputs(graph, state, file) {
|
|
31
27
|
const output = [...graph.resolutionInputs];
|
|
32
|
-
if (
|
|
28
|
+
if (graph.candidates.length === 0)
|
|
33
29
|
return output;
|
|
30
|
+
const reachable = new Set(selectReachableSources.selectReachableSources(graph, state, file).map((source) => derivationIdentity.derivationIdentity(state, source)));
|
|
34
31
|
for (const entry of graph.candidates) {
|
|
35
32
|
if (!reachable.has(entry.source)) {
|
|
36
33
|
continue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectResolutionCandidateInputs.js","sources":["../../../../src/core/transform/envelope/selectResolutionCandidateInputs.ts"],"sourcesContent":[null],"names":["selectReachableSources","derivationIdentity"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"selectResolutionCandidateInputs.js","sources":["../../../../src/core/transform/envelope/selectResolutionCandidateInputs.ts"],"sourcesContent":[null],"names":["selectReachableSources","derivationIdentity"],"mappings":";;;;;AAKA;;;;;;;;;;;;;;;;;;;AAmBG;SACa,+BAA+B,CAC7C,KAGC,EACD,KAAqE,EACrE,IAAY,EAAA;IAEZ,MAAM,MAAM,GAAa,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC;AACpD,IAAA,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,MAAM;AAChD,IAAA,MAAM,SAAS,GAAG,IAAI,GAAG,CACvBA,6CAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,KACpDC,qCAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAClC,CACF;AACD,IAAA,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,UAAU,EAAE;QACpC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAChC;QACF;AACA,QAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,KAAK;AAAE,YAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;IACrE;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -21,14 +21,11 @@ import { selectReachableSources } from './selectReachableSources.mjs';
|
|
|
21
21
|
* @evidence contracts/performance.md#efficient-algorithms Reachable-source traversal pays visited V + E structural work plus spelling/key text and cold native identity observations. Mapping those sources allocates another V-entry array before the membership set; one candidate-entry scan then appends universal and selected list members. Temporary arrays, sets and output scale with reachable sources, universal inputs, selected inputs and their retained text, without compiler module resolution.
|
|
22
22
|
* @evidenceExclude contracts/performance.md#reuse-equivalent-work This selector owns no request memo; shared candidate parsing belongs to envelopeGraphIndexes and final per-module list reuse belongs to selectWatchInputs.
|
|
23
23
|
*/
|
|
24
|
-
function selectResolutionCandidateInputs(graph, state,
|
|
25
|
-
if (props.result.type === "exception" || props.result.graph === undefined) {
|
|
26
|
-
return [];
|
|
27
|
-
}
|
|
28
|
-
const reachable = new Set(selectReachableSources(graph, state, props.file).map((source) => derivationIdentity(state, source)));
|
|
24
|
+
function selectResolutionCandidateInputs(graph, state, file) {
|
|
29
25
|
const output = [...graph.resolutionInputs];
|
|
30
|
-
if (
|
|
26
|
+
if (graph.candidates.length === 0)
|
|
31
27
|
return output;
|
|
28
|
+
const reachable = new Set(selectReachableSources(graph, state, file).map((source) => derivationIdentity(state, source)));
|
|
32
29
|
for (const entry of graph.candidates) {
|
|
33
30
|
if (!reachable.has(entry.source)) {
|
|
34
31
|
continue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectResolutionCandidateInputs.mjs","sources":["../../../../src/core/transform/envelope/selectResolutionCandidateInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"selectResolutionCandidateInputs.mjs","sources":["../../../../src/core/transform/envelope/selectResolutionCandidateInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAKA;;;;;;;;;;;;;;;;;;;AAmBG;SACa,+BAA+B,CAC7C,KAGC,EACD,KAAqE,EACrE,IAAY,EAAA;IAEZ,MAAM,MAAM,GAAa,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC;AACpD,IAAA,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,MAAM;AAChD,IAAA,MAAM,SAAS,GAAG,IAAI,GAAG,CACvB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,KACpD,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAClC,CACF;AACD,IAAA,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,UAAU,EAAE;QACpC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAChC;QACF;AACA,QAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,KAAK;AAAE,YAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;IACrE;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -21,15 +21,33 @@
|
|
|
21
21
|
* temporary directory routinely has (`C:\Users\RUNNER~1\...`), on which libuv's
|
|
22
22
|
* backend aborts.
|
|
23
23
|
*
|
|
24
|
-
* @param
|
|
25
|
-
*
|
|
24
|
+
* @param segment A trusted child name below the root, created and checked.
|
|
25
|
+
* @param projectRoot The host project that must remain outside temporary state.
|
|
26
|
+
* @param create Whether the caller needs to acquire the path now.
|
|
26
27
|
* @evidence contracts/common.md#principled-implementation Internal callers use the shared-store literal or process clock name below the native temporary root; lstat rejects linked entries and POSIX uid/mode checks require user-owned private directories.
|
|
27
28
|
* @evidence contracts/common.md#clear-and-simple-design One provider creates and checks the state root and requested owned directories, leaving store contents, pruning, and probe lifetime to consumers.
|
|
28
29
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Native temporary-root discovery and realpath replace guessed user-directory paths; failures decline optional storage rather than fabricating a usable store.
|
|
29
30
|
* @evidence contracts/common.md#meaningful-documentation The prose explains retained output ownership, per-process probes, uid-capable checks, and the long Windows spelling required by native watchers.
|
|
30
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
31
|
+
* @evidence contracts/portability.md#os-neutral-implementation Shared system-temp selection validates native paths and may select the platform fallback. The store uses native joins and available uid capability; other hosts rely on the temporary directory's native access policy.
|
|
31
32
|
* @evidence contracts/performance.md#bound-retention-and-release-resources This provider leaves no open handles; process probes own exit cleanup, while the persistent store's owner best-effort prunes publication counts, bytes and abandoned-process files.
|
|
32
33
|
* @evidence contracts/performance.md#efficient-algorithms Creation visits only the root and requested segments, with one ownership stat per directory rather than scanning the temporary tree.
|
|
33
34
|
* @evidence contracts/performance.md#reuse-equivalent-work Existing directories are reused by shared compile stores and process probes; consumers independently prove retained content instead of recompiling solely because a process restarted.
|
|
34
35
|
*/
|
|
35
|
-
export declare function userStateDirectory(
|
|
36
|
+
export declare function userStateDirectory(segment?: string, projectRoot?: string, create?: boolean): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Name the user's state directory so a cache owner can inventory records even
|
|
39
|
+
* when the directory has lost its storage qualification.
|
|
40
|
+
*
|
|
41
|
+
* @evidence contracts/common.md#principled-implementation The shared native temporary selector and current uid determine the same name used for storage acquisition.
|
|
42
|
+
* @evidence contracts/common.md#clear-and-simple-design Naming and directory qualification are separate operations.
|
|
43
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Returning the name neither creates the directory nor certifies its suitability.
|
|
44
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why opaque caches require the name independently of access.
|
|
45
|
+
* @evidence contracts/portability.md#os-neutral-implementation The native temporary selector supplies long physical spelling outside the project.
|
|
46
|
+
* @evidence contracts/performance.md#efficient-algorithms The delegated temporary selector performs bounded candidate and ancestor metadata checks followed by a path join.
|
|
47
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The caller owns any naming memo.
|
|
48
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources No handle or state is retained.
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace userStateDirectory {
|
|
51
|
+
/** Return the native spelling before checking the directory itself. */
|
|
52
|
+
function location(projectRoot: string): string;
|
|
53
|
+
}
|
|
@@ -21,15 +21,33 @@
|
|
|
21
21
|
* temporary directory routinely has (`C:\Users\RUNNER~1\...`), on which libuv's
|
|
22
22
|
* backend aborts.
|
|
23
23
|
*
|
|
24
|
-
* @param
|
|
25
|
-
*
|
|
24
|
+
* @param segment A trusted child name below the root, created and checked.
|
|
25
|
+
* @param projectRoot The host project that must remain outside temporary state.
|
|
26
|
+
* @param create Whether the caller needs to acquire the path now.
|
|
26
27
|
* @evidence contracts/common.md#principled-implementation Internal callers use the shared-store literal or process clock name below the native temporary root; lstat rejects linked entries and POSIX uid/mode checks require user-owned private directories.
|
|
27
28
|
* @evidence contracts/common.md#clear-and-simple-design One provider creates and checks the state root and requested owned directories, leaving store contents, pruning, and probe lifetime to consumers.
|
|
28
29
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Native temporary-root discovery and realpath replace guessed user-directory paths; failures decline optional storage rather than fabricating a usable store.
|
|
29
30
|
* @evidence contracts/common.md#meaningful-documentation The prose explains retained output ownership, per-process probes, uid-capable checks, and the long Windows spelling required by native watchers.
|
|
30
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
31
|
+
* @evidence contracts/portability.md#os-neutral-implementation Shared system-temp selection validates native paths and may select the platform fallback. The store uses native joins and available uid capability; other hosts rely on the temporary directory's native access policy.
|
|
31
32
|
* @evidence contracts/performance.md#bound-retention-and-release-resources This provider leaves no open handles; process probes own exit cleanup, while the persistent store's owner best-effort prunes publication counts, bytes and abandoned-process files.
|
|
32
33
|
* @evidence contracts/performance.md#efficient-algorithms Creation visits only the root and requested segments, with one ownership stat per directory rather than scanning the temporary tree.
|
|
33
34
|
* @evidence contracts/performance.md#reuse-equivalent-work Existing directories are reused by shared compile stores and process probes; consumers independently prove retained content instead of recompiling solely because a process restarted.
|
|
34
35
|
*/
|
|
35
|
-
export declare function userStateDirectory(
|
|
36
|
+
export declare function userStateDirectory(segment?: string, projectRoot?: string, create?: boolean): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Name the user's state directory so a cache owner can inventory records even
|
|
39
|
+
* when the directory has lost its storage qualification.
|
|
40
|
+
*
|
|
41
|
+
* @evidence contracts/common.md#principled-implementation The shared native temporary selector and current uid determine the same name used for storage acquisition.
|
|
42
|
+
* @evidence contracts/common.md#clear-and-simple-design Naming and directory qualification are separate operations.
|
|
43
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Returning the name neither creates the directory nor certifies its suitability.
|
|
44
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why opaque caches require the name independently of access.
|
|
45
|
+
* @evidence contracts/portability.md#os-neutral-implementation The native temporary selector supplies long physical spelling outside the project.
|
|
46
|
+
* @evidence contracts/performance.md#efficient-algorithms The delegated temporary selector performs bounded candidate and ancestor metadata checks followed by a path join.
|
|
47
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The caller owns any naming memo.
|
|
48
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources No handle or state is retained.
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace userStateDirectory {
|
|
51
|
+
/** Return the native spelling before checking the directory itself. */
|
|
52
|
+
function location(projectRoot: string): string;
|
|
53
|
+
}
|
|
@@ -21,15 +21,33 @@
|
|
|
21
21
|
* temporary directory routinely has (`C:\Users\RUNNER~1\...`), on which libuv's
|
|
22
22
|
* backend aborts.
|
|
23
23
|
*
|
|
24
|
-
* @param
|
|
25
|
-
*
|
|
24
|
+
* @param segment A trusted child name below the root, created and checked.
|
|
25
|
+
* @param projectRoot The host project that must remain outside temporary state.
|
|
26
|
+
* @param create Whether the caller needs to acquire the path now.
|
|
26
27
|
* @evidence contracts/common.md#principled-implementation Internal callers use the shared-store literal or process clock name below the native temporary root; lstat rejects linked entries and POSIX uid/mode checks require user-owned private directories.
|
|
27
28
|
* @evidence contracts/common.md#clear-and-simple-design One provider creates and checks the state root and requested owned directories, leaving store contents, pruning, and probe lifetime to consumers.
|
|
28
29
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Native temporary-root discovery and realpath replace guessed user-directory paths; failures decline optional storage rather than fabricating a usable store.
|
|
29
30
|
* @evidence contracts/common.md#meaningful-documentation The prose explains retained output ownership, per-process probes, uid-capable checks, and the long Windows spelling required by native watchers.
|
|
30
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
31
|
+
* @evidence contracts/portability.md#os-neutral-implementation Shared system-temp selection validates native paths and may select the platform fallback. The store uses native joins and available uid capability; other hosts rely on the temporary directory's native access policy.
|
|
31
32
|
* @evidence contracts/performance.md#bound-retention-and-release-resources This provider leaves no open handles; process probes own exit cleanup, while the persistent store's owner best-effort prunes publication counts, bytes and abandoned-process files.
|
|
32
33
|
* @evidence contracts/performance.md#efficient-algorithms Creation visits only the root and requested segments, with one ownership stat per directory rather than scanning the temporary tree.
|
|
33
34
|
* @evidence contracts/performance.md#reuse-equivalent-work Existing directories are reused by shared compile stores and process probes; consumers independently prove retained content instead of recompiling solely because a process restarted.
|
|
34
35
|
*/
|
|
35
|
-
export declare function userStateDirectory(
|
|
36
|
+
export declare function userStateDirectory(segment?: string, projectRoot?: string, create?: boolean): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Name the user's state directory so a cache owner can inventory records even
|
|
39
|
+
* when the directory has lost its storage qualification.
|
|
40
|
+
*
|
|
41
|
+
* @evidence contracts/common.md#principled-implementation The shared native temporary selector and current uid determine the same name used for storage acquisition.
|
|
42
|
+
* @evidence contracts/common.md#clear-and-simple-design Naming and directory qualification are separate operations.
|
|
43
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Returning the name neither creates the directory nor certifies its suitability.
|
|
44
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why opaque caches require the name independently of access.
|
|
45
|
+
* @evidence contracts/portability.md#os-neutral-implementation The native temporary selector supplies long physical spelling outside the project.
|
|
46
|
+
* @evidence contracts/performance.md#efficient-algorithms The delegated temporary selector performs bounded candidate and ancestor metadata checks followed by a path join.
|
|
47
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The caller owns any naming memo.
|
|
48
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources No handle or state is retained.
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace userStateDirectory {
|
|
51
|
+
/** Return the native spelling before checking the directory itself. */
|
|
52
|
+
function location(projectRoot: string): string;
|
|
53
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs');
|
|
4
|
-
var os = require('node:os');
|
|
5
4
|
var path = require('node:path');
|
|
5
|
+
var systemTemp = require('ttsc/internal/system-temp');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A directory below this user's own root under the system temporary directory,
|
|
@@ -27,26 +27,27 @@ var path = require('node:path');
|
|
|
27
27
|
* temporary directory routinely has (`C:\Users\RUNNER~1\...`), on which libuv's
|
|
28
28
|
* backend aborts.
|
|
29
29
|
*
|
|
30
|
-
* @param
|
|
31
|
-
*
|
|
30
|
+
* @param segment A trusted child name below the root, created and checked.
|
|
31
|
+
* @param projectRoot The host project that must remain outside temporary state.
|
|
32
|
+
* @param create Whether the caller needs to acquire the path now.
|
|
32
33
|
* @evidence contracts/common.md#principled-implementation Internal callers use the shared-store literal or process clock name below the native temporary root; lstat rejects linked entries and POSIX uid/mode checks require user-owned private directories.
|
|
33
34
|
* @evidence contracts/common.md#clear-and-simple-design One provider creates and checks the state root and requested owned directories, leaving store contents, pruning, and probe lifetime to consumers.
|
|
34
35
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Native temporary-root discovery and realpath replace guessed user-directory paths; failures decline optional storage rather than fabricating a usable store.
|
|
35
36
|
* @evidence contracts/common.md#meaningful-documentation The prose explains retained output ownership, per-process probes, uid-capable checks, and the long Windows spelling required by native watchers.
|
|
36
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
37
|
+
* @evidence contracts/portability.md#os-neutral-implementation Shared system-temp selection validates native paths and may select the platform fallback. The store uses native joins and available uid capability; other hosts rely on the temporary directory's native access policy.
|
|
37
38
|
* @evidence contracts/performance.md#bound-retention-and-release-resources This provider leaves no open handles; process probes own exit cleanup, while the persistent store's owner best-effort prunes publication counts, bytes and abandoned-process files.
|
|
38
39
|
* @evidence contracts/performance.md#efficient-algorithms Creation visits only the root and requested segments, with one ownership stat per directory rather than scanning the temporary tree.
|
|
39
40
|
* @evidence contracts/performance.md#reuse-equivalent-work Existing directories are reused by shared compile stores and process probes; consumers independently prove retained content instead of recompiling solely because a process restarted.
|
|
40
41
|
*/
|
|
41
|
-
function userStateDirectory(
|
|
42
|
+
function userStateDirectory(segment, projectRoot = process.cwd(), create = true) {
|
|
42
43
|
try {
|
|
43
44
|
const user = process.getuid?.();
|
|
44
|
-
let directory =
|
|
45
|
-
if (!ownedDirectory(directory, user))
|
|
45
|
+
let directory = userStateDirectory.location(projectRoot);
|
|
46
|
+
if (!ownedDirectory(directory, user, create))
|
|
46
47
|
return undefined;
|
|
47
|
-
|
|
48
|
+
if (segment !== undefined) {
|
|
48
49
|
directory = path.join(directory, segment);
|
|
49
|
-
if (!ownedDirectory(directory, user))
|
|
50
|
+
if (!ownedDirectory(directory, user, create))
|
|
50
51
|
return undefined;
|
|
51
52
|
}
|
|
52
53
|
return directory;
|
|
@@ -55,14 +56,38 @@ function userStateDirectory(...segments) {
|
|
|
55
56
|
return undefined;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Name the user's state directory so a cache owner can inventory records even
|
|
61
|
+
* when the directory has lost its storage qualification.
|
|
62
|
+
*
|
|
63
|
+
* @evidence contracts/common.md#principled-implementation The shared native temporary selector and current uid determine the same name used for storage acquisition.
|
|
64
|
+
* @evidence contracts/common.md#clear-and-simple-design Naming and directory qualification are separate operations.
|
|
65
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Returning the name neither creates the directory nor certifies its suitability.
|
|
66
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why opaque caches require the name independently of access.
|
|
67
|
+
* @evidence contracts/portability.md#os-neutral-implementation The native temporary selector supplies long physical spelling outside the project.
|
|
68
|
+
* @evidence contracts/performance.md#efficient-algorithms The delegated temporary selector performs bounded candidate and ancestor metadata checks followed by a path join.
|
|
69
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The caller owns any naming memo.
|
|
70
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources No handle or state is retained.
|
|
71
|
+
*/
|
|
72
|
+
(function (userStateDirectory) {
|
|
73
|
+
/** Return the native spelling before checking the directory itself. */
|
|
74
|
+
function location(projectRoot) {
|
|
75
|
+
const user = process.getuid?.();
|
|
76
|
+
return path.join(systemTemp.systemTempOutsideProject(projectRoot), `ttsc-unplugin-sessions${user === undefined ? "" : `-${user}`}`);
|
|
77
|
+
}
|
|
78
|
+
userStateDirectory.location = location;
|
|
79
|
+
})(userStateDirectory || (userStateDirectory = {}));
|
|
58
80
|
/**
|
|
59
81
|
* Create `directory` when absent and check its nonlinked directory kind. When a
|
|
60
82
|
* uid is available, also require that owner and private mode bits; otherwise
|
|
61
83
|
* access control remains with the native temporary-directory policy.
|
|
62
84
|
*/
|
|
63
|
-
function ownedDirectory(directory, user) {
|
|
64
|
-
|
|
65
|
-
|
|
85
|
+
function ownedDirectory(directory, user, create) {
|
|
86
|
+
if (create)
|
|
87
|
+
fs.mkdirSync(directory, { mode: 0o700, recursive: true });
|
|
88
|
+
const stat = fs.lstatSync(directory, { throwIfNoEntry: false });
|
|
89
|
+
if (stat === undefined)
|
|
90
|
+
return !create;
|
|
66
91
|
return (stat.isDirectory() &&
|
|
67
92
|
(user === undefined || (stat.uid === user && (stat.mode & 0o077) === 0)));
|
|
68
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userStateDirectory.js","sources":["../../../../src/core/transform/filesystem/userStateDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAIA
|
|
1
|
+
{"version":3,"file":"userStateDirectory.js","sources":["../../../../src/core/transform/filesystem/userStateDirectory.ts"],"sourcesContent":[null],"names":["systemTempOutsideProject"],"mappings":";;;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACG,SAAU,kBAAkB,CAChC,OAAgB,EAChB,WAAA,GAAsB,OAAO,CAAC,GAAG,EAAE,EACnC,MAAA,GAAkB,IAAI,EAAA;AAEtB,IAAA,IAAI;AACF,QAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI;QAC/B,IAAI,SAAS,GAAG,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC;QACxD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;AAAE,YAAA,OAAO,SAAS;AAC9D,QAAA,IAAI,OAAO,KAAK,SAAS,EAAE;YACzB,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;YACzC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;AAAE,gBAAA,OAAO,SAAS;QAChE;AACA,QAAA,OAAO,SAAS;IAClB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;AAEA;;;;;;;;;;;;AAYG;AACH,CAAA,UAAiB,kBAAkB,EAAA;;IAEjC,SAAgB,QAAQ,CAAC,WAAmB,EAAA;AAC1C,QAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI;QAC/B,OAAO,IAAI,CAAC,IAAI,CACdA,mCAAwB,CAAC,WAAW,CAAC,EACrC,CAAA,sBAAA,EAAyB,IAAI,KAAK,SAAS,GAAG,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,CAAA,CAAE,CAChE;IACH;AANgB,IAAA,kBAAA,CAAA,QAAQ,WAMvB;AACH,CAAC,EATgB,kBAAkB,KAAlB,kBAAkB,GAAA,EAAA,CAAA,CAAA;AAWnC;;;;AAIG;AACH,SAAS,cAAc,CACrB,SAAiB,EACjB,IAAwB,EACxB,MAAe,EAAA;AAEf,IAAA,IAAI,MAAM;AAAE,QAAA,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACrE,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,MAAM;AACtC,IAAA,QACE,IAAI,CAAC,WAAW,EAAE;SACjB,IAAI,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC;AAE5E;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import os from 'node:os';
|
|
3
2
|
import path from 'node:path';
|
|
3
|
+
import { systemTempOutsideProject } from 'ttsc/internal/system-temp';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A directory below this user's own root under the system temporary directory,
|
|
@@ -25,26 +25,27 @@ import path from 'node:path';
|
|
|
25
25
|
* temporary directory routinely has (`C:\Users\RUNNER~1\...`), on which libuv's
|
|
26
26
|
* backend aborts.
|
|
27
27
|
*
|
|
28
|
-
* @param
|
|
29
|
-
*
|
|
28
|
+
* @param segment A trusted child name below the root, created and checked.
|
|
29
|
+
* @param projectRoot The host project that must remain outside temporary state.
|
|
30
|
+
* @param create Whether the caller needs to acquire the path now.
|
|
30
31
|
* @evidence contracts/common.md#principled-implementation Internal callers use the shared-store literal or process clock name below the native temporary root; lstat rejects linked entries and POSIX uid/mode checks require user-owned private directories.
|
|
31
32
|
* @evidence contracts/common.md#clear-and-simple-design One provider creates and checks the state root and requested owned directories, leaving store contents, pruning, and probe lifetime to consumers.
|
|
32
33
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Native temporary-root discovery and realpath replace guessed user-directory paths; failures decline optional storage rather than fabricating a usable store.
|
|
33
34
|
* @evidence contracts/common.md#meaningful-documentation The prose explains retained output ownership, per-process probes, uid-capable checks, and the long Windows spelling required by native watchers.
|
|
34
|
-
* @evidence contracts/portability.md#os-neutral-implementation
|
|
35
|
+
* @evidence contracts/portability.md#os-neutral-implementation Shared system-temp selection validates native paths and may select the platform fallback. The store uses native joins and available uid capability; other hosts rely on the temporary directory's native access policy.
|
|
35
36
|
* @evidence contracts/performance.md#bound-retention-and-release-resources This provider leaves no open handles; process probes own exit cleanup, while the persistent store's owner best-effort prunes publication counts, bytes and abandoned-process files.
|
|
36
37
|
* @evidence contracts/performance.md#efficient-algorithms Creation visits only the root and requested segments, with one ownership stat per directory rather than scanning the temporary tree.
|
|
37
38
|
* @evidence contracts/performance.md#reuse-equivalent-work Existing directories are reused by shared compile stores and process probes; consumers independently prove retained content instead of recompiling solely because a process restarted.
|
|
38
39
|
*/
|
|
39
|
-
function userStateDirectory(
|
|
40
|
+
function userStateDirectory(segment, projectRoot = process.cwd(), create = true) {
|
|
40
41
|
try {
|
|
41
42
|
const user = process.getuid?.();
|
|
42
|
-
let directory =
|
|
43
|
-
if (!ownedDirectory(directory, user))
|
|
43
|
+
let directory = userStateDirectory.location(projectRoot);
|
|
44
|
+
if (!ownedDirectory(directory, user, create))
|
|
44
45
|
return undefined;
|
|
45
|
-
|
|
46
|
+
if (segment !== undefined) {
|
|
46
47
|
directory = path.join(directory, segment);
|
|
47
|
-
if (!ownedDirectory(directory, user))
|
|
48
|
+
if (!ownedDirectory(directory, user, create))
|
|
48
49
|
return undefined;
|
|
49
50
|
}
|
|
50
51
|
return directory;
|
|
@@ -53,14 +54,38 @@ function userStateDirectory(...segments) {
|
|
|
53
54
|
return undefined;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Name the user's state directory so a cache owner can inventory records even
|
|
59
|
+
* when the directory has lost its storage qualification.
|
|
60
|
+
*
|
|
61
|
+
* @evidence contracts/common.md#principled-implementation The shared native temporary selector and current uid determine the same name used for storage acquisition.
|
|
62
|
+
* @evidence contracts/common.md#clear-and-simple-design Naming and directory qualification are separate operations.
|
|
63
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Returning the name neither creates the directory nor certifies its suitability.
|
|
64
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains why opaque caches require the name independently of access.
|
|
65
|
+
* @evidence contracts/portability.md#os-neutral-implementation The native temporary selector supplies long physical spelling outside the project.
|
|
66
|
+
* @evidence contracts/performance.md#efficient-algorithms The delegated temporary selector performs bounded candidate and ancestor metadata checks followed by a path join.
|
|
67
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The caller owns any naming memo.
|
|
68
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources No handle or state is retained.
|
|
69
|
+
*/
|
|
70
|
+
(function (userStateDirectory) {
|
|
71
|
+
/** Return the native spelling before checking the directory itself. */
|
|
72
|
+
function location(projectRoot) {
|
|
73
|
+
const user = process.getuid?.();
|
|
74
|
+
return path.join(systemTempOutsideProject(projectRoot), `ttsc-unplugin-sessions${user === undefined ? "" : `-${user}`}`);
|
|
75
|
+
}
|
|
76
|
+
userStateDirectory.location = location;
|
|
77
|
+
})(userStateDirectory || (userStateDirectory = {}));
|
|
56
78
|
/**
|
|
57
79
|
* Create `directory` when absent and check its nonlinked directory kind. When a
|
|
58
80
|
* uid is available, also require that owner and private mode bits; otherwise
|
|
59
81
|
* access control remains with the native temporary-directory policy.
|
|
60
82
|
*/
|
|
61
|
-
function ownedDirectory(directory, user) {
|
|
62
|
-
|
|
63
|
-
|
|
83
|
+
function ownedDirectory(directory, user, create) {
|
|
84
|
+
if (create)
|
|
85
|
+
fs.mkdirSync(directory, { mode: 0o700, recursive: true });
|
|
86
|
+
const stat = fs.lstatSync(directory, { throwIfNoEntry: false });
|
|
87
|
+
if (stat === undefined)
|
|
88
|
+
return !create;
|
|
64
89
|
return (stat.isDirectory() &&
|
|
65
90
|
(user === undefined || (stat.uid === user && (stat.mode & 0o077) === 0)));
|
|
66
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userStateDirectory.mjs","sources":["../../../../src/core/transform/filesystem/userStateDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIA
|
|
1
|
+
{"version":3,"file":"userStateDirectory.mjs","sources":["../../../../src/core/transform/filesystem/userStateDirectory.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACG,SAAU,kBAAkB,CAChC,OAAgB,EAChB,WAAA,GAAsB,OAAO,CAAC,GAAG,EAAE,EACnC,MAAA,GAAkB,IAAI,EAAA;AAEtB,IAAA,IAAI;AACF,QAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI;QAC/B,IAAI,SAAS,GAAG,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC;QACxD,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;AAAE,YAAA,OAAO,SAAS;AAC9D,QAAA,IAAI,OAAO,KAAK,SAAS,EAAE;YACzB,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;YACzC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;AAAE,gBAAA,OAAO,SAAS;QAChE;AACA,QAAA,OAAO,SAAS;IAClB;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;AAEA;;;;;;;;;;;;AAYG;AACH,CAAA,UAAiB,kBAAkB,EAAA;;IAEjC,SAAgB,QAAQ,CAAC,WAAmB,EAAA;AAC1C,QAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI;QAC/B,OAAO,IAAI,CAAC,IAAI,CACd,wBAAwB,CAAC,WAAW,CAAC,EACrC,CAAA,sBAAA,EAAyB,IAAI,KAAK,SAAS,GAAG,EAAE,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,CAAA,CAAE,CAChE;IACH;AANgB,IAAA,kBAAA,CAAA,QAAQ,WAMvB;AACH,CAAC,EATgB,kBAAkB,KAAlB,kBAAkB,GAAA,EAAA,CAAA,CAAA;AAWnC;;;;AAIG;AACH,SAAS,cAAc,CACrB,SAAiB,EACjB,IAAwB,EACxB,MAAe,EAAA;AAEf,IAAA,IAAI,MAAM;AAAE,QAAA,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACrE,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;IAC/D,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,CAAC,MAAM;AACtC,IAAA,QACE,IAAI,CAAC,WAAW,EAAE;SACjB,IAAI,KAAK,SAAS,KAAK,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC;AAE5E;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
1
2
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform.cjs";
|
|
2
3
|
import type { TtscFailedGenerationInputState } from "./TtscFailedGenerationInputState.cjs";
|
|
3
4
|
/**
|
|
@@ -27,6 +28,8 @@ export interface TtscFailedGenerationValidation {
|
|
|
27
28
|
declaredInputs: ReadonlySet<string> | undefined;
|
|
28
29
|
/** Fingerprints of every out-of-walk and exact host input. */
|
|
29
30
|
inputStates: ReadonlyMap<string, TtscFailedGenerationInputState>;
|
|
31
|
+
/** Exact workspace observations taken when declaring terminal failure. */
|
|
32
|
+
workspaceInputs?: ITtscCompilerTransformation.ISuccess["workspaceInputs"];
|
|
30
33
|
/** On-disk project hashes the final attempt's walk recorded. */
|
|
31
34
|
projectInputHashes: Readonly<Record<string, string>>;
|
|
32
35
|
/** Coherence and exact failure state of the final project walk. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
1
2
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform.mjs";
|
|
2
3
|
import type { TtscFailedGenerationInputState } from "./TtscFailedGenerationInputState.mjs";
|
|
3
4
|
/**
|
|
@@ -27,6 +28,8 @@ export interface TtscFailedGenerationValidation {
|
|
|
27
28
|
declaredInputs: ReadonlySet<string> | undefined;
|
|
28
29
|
/** Fingerprints of every out-of-walk and exact host input. */
|
|
29
30
|
inputStates: ReadonlyMap<string, TtscFailedGenerationInputState>;
|
|
31
|
+
/** Exact workspace observations taken when declaring terminal failure. */
|
|
32
|
+
workspaceInputs?: ITtscCompilerTransformation.ISuccess["workspaceInputs"];
|
|
30
33
|
/** On-disk project hashes the final attempt's walk recorded. */
|
|
31
34
|
projectInputHashes: Readonly<Record<string, string>>;
|
|
32
35
|
/** Coherence and exact failure state of the final project walk. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
1
2
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform";
|
|
2
3
|
import type { TtscFailedGenerationInputState } from "./TtscFailedGenerationInputState";
|
|
3
4
|
/**
|
|
@@ -27,6 +28,8 @@ export interface TtscFailedGenerationValidation {
|
|
|
27
28
|
declaredInputs: ReadonlySet<string> | undefined;
|
|
28
29
|
/** Fingerprints of every out-of-walk and exact host input. */
|
|
29
30
|
inputStates: ReadonlyMap<string, TtscFailedGenerationInputState>;
|
|
31
|
+
/** Exact workspace observations taken when declaring terminal failure. */
|
|
32
|
+
workspaceInputs?: ITtscCompilerTransformation.ISuccess["workspaceInputs"];
|
|
30
33
|
/** On-disk project hashes the final attempt's walk recorded. */
|
|
31
34
|
projectInputHashes: Readonly<Record<string, string>>;
|
|
32
35
|
/** Coherence and exact failure state of the final project walk. */
|