@ttsc/unplugin 0.38.1 → 0.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/core/bridge/HostWatchBridge.d.cts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.mts +1 -1
- package/lib/core/bridge/HostWatchBridge.d.ts +1 -1
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.cts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.mts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.d.ts +2 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js +7 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.js.map +1 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs +5 -0
- package/lib/core/bridge/MANAGED_PROJECT_RECORDS.mjs.map +1 -0
- package/lib/core/bridge/TtscProjectRecord.d.cts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.mts +9 -0
- package/lib/core/bridge/TtscProjectRecord.d.ts +9 -0
- package/lib/core/bridge/fallbackRecordStorage.d.cts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.mts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.d.ts +33 -0
- package/lib/core/bridge/fallbackRecordStorage.js +96 -0
- package/lib/core/bridge/fallbackRecordStorage.js.map +1 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs +94 -0
- package/lib/core/bridge/fallbackRecordStorage.mjs.map +1 -0
- package/lib/core/bridge/fallbackToolDirectory.d.cts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.mts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.d.ts +11 -15
- package/lib/core/bridge/fallbackToolDirectory.js +19 -30
- package/lib/core/bridge/fallbackToolDirectory.js.map +1 -1
- package/lib/core/bridge/fallbackToolDirectory.mjs +19 -30
- package/lib/core/bridge/fallbackToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.cts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.mts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.d.ts +14 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js +38 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.js.map +1 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs +36 -0
- package/lib/core/bridge/fallbackToolDirectoryLocation.mjs.map +1 -0
- package/lib/core/bridge/hostToolDirectory.d.cts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.mts +13 -46
- package/lib/core/bridge/hostToolDirectory.d.ts +13 -46
- package/lib/core/bridge/hostToolDirectory.js +14 -47
- package/lib/core/bridge/hostToolDirectory.js.map +1 -1
- package/lib/core/bridge/hostToolDirectory.mjs +14 -47
- package/lib/core/bridge/hostToolDirectory.mjs.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.d.cts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.mts +11 -1
- package/lib/core/bridge/openHostWatchBridge.d.ts +11 -1
- package/lib/core/bridge/openHostWatchBridge.js +28 -6
- package/lib/core/bridge/openHostWatchBridge.js.map +1 -1
- package/lib/core/bridge/openHostWatchBridge.mjs +28 -6
- package/lib/core/bridge/openHostWatchBridge.mjs.map +1 -1
- package/lib/core/bridge/prepareProjectRecordDirectory.d.cts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.mts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.d.ts +41 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js +127 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.js.map +1 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs +125 -0
- package/lib/core/bridge/prepareProjectRecordDirectory.mjs.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.cts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.mts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.d.ts +13 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js +31 -0
- package/lib/core/bridge/privateProjectRecordAvailable.js.map +1 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs +29 -0
- package/lib/core/bridge/privateProjectRecordAvailable.mjs.map +1 -0
- package/lib/core/bridge/projectRecordMoved.js +5 -0
- package/lib/core/bridge/projectRecordMoved.js.map +1 -1
- package/lib/core/bridge/projectRecordMoved.mjs +5 -0
- package/lib/core/bridge/projectRecordMoved.mjs.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.js +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.js.map +1 -1
- package/lib/core/bridge/projectRecordWatchInputs.mjs +6 -0
- package/lib/core/bridge/projectRecordWatchInputs.mjs.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.js +23 -1
- package/lib/core/bridge/readProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/readProjectRecordFile.mjs +23 -1
- package/lib/core/bridge/readProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/refreshProjectRecordFile.js +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFile.mjs +24 -7
- package/lib/core/bridge/refreshProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.d.cts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.mts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.d.ts +7 -4
- package/lib/core/bridge/refreshProjectRecordFiles.js +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.js.map +1 -1
- package/lib/core/bridge/refreshProjectRecordFiles.mjs +30 -8
- package/lib/core/bridge/refreshProjectRecordFiles.mjs.map +1 -1
- package/lib/core/bridge/registerProjectRecord.js +3 -1
- package/lib/core/bridge/registerProjectRecord.js.map +1 -1
- package/lib/core/bridge/registerProjectRecord.mjs +3 -1
- package/lib/core/bridge/registerProjectRecord.mjs.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.d.cts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.mts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.d.ts +7 -2
- package/lib/core/bridge/signalProjectRecordFile.js +18 -5
- package/lib/core/bridge/signalProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/signalProjectRecordFile.mjs +18 -5
- package/lib/core/bridge/signalProjectRecordFile.mjs.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.js +7 -3
- package/lib/core/bridge/writeProjectRecordFile.js.map +1 -1
- package/lib/core/bridge/writeProjectRecordFile.mjs +7 -3
- package/lib/core/bridge/writeProjectRecordFile.mjs.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.js +9 -7
- package/lib/core/esbuild/createEsbuildOptions.js.map +1 -1
- package/lib/core/esbuild/createEsbuildOptions.mjs +9 -7
- package/lib/core/esbuild/createEsbuildOptions.mjs.map +1 -1
- package/lib/core/farm/createFarmRecordUpdates.d.cts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.mts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.d.ts +63 -0
- package/lib/core/farm/createFarmRecordUpdates.js +129 -0
- package/lib/core/farm/createFarmRecordUpdates.js.map +1 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs +127 -0
- package/lib/core/farm/createFarmRecordUpdates.mjs.map +1 -0
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.cts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.mts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.d.ts +15 -40
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.js.map +1 -1
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs +23 -56
- package/lib/core/farm/farmPersistentCacheWithoutRecords.mjs.map +1 -1
- package/lib/core/farm/farmRecordFallback.d.cts +15 -15
- package/lib/core/farm/farmRecordFallback.d.mts +15 -15
- package/lib/core/farm/farmRecordFallback.d.ts +15 -15
- package/lib/core/farm/farmRecordFallback.js +22 -20
- package/lib/core/farm/farmRecordFallback.js.map +1 -1
- package/lib/core/farm/farmRecordFallback.mjs +22 -20
- package/lib/core/farm/farmRecordFallback.mjs.map +1 -1
- package/lib/core/next/next.js +5 -4
- package/lib/core/next/next.js.map +1 -1
- package/lib/core/next/next.mjs +5 -4
- package/lib/core/next/next.mjs.map +1 -1
- package/lib/core/observer/InputCondition.d.cts +5 -0
- package/lib/core/observer/InputCondition.d.mts +5 -0
- package/lib/core/observer/InputCondition.d.ts +5 -0
- package/lib/core/observer/InputObserverChange.d.cts +2 -0
- package/lib/core/observer/InputObserverChange.d.mts +2 -0
- package/lib/core/observer/InputObserverChange.d.ts +2 -0
- package/lib/core/observer/createInputObserver.d.cts +3 -1
- package/lib/core/observer/createInputObserver.d.mts +3 -1
- package/lib/core/observer/createInputObserver.d.ts +3 -1
- package/lib/core/observer/createInputObserver.js +179 -26
- package/lib/core/observer/createInputObserver.js.map +1 -1
- package/lib/core/observer/createInputObserver.mjs +180 -27
- package/lib/core/observer/createInputObserver.mjs.map +1 -1
- package/lib/core/observer/ttscWriteDirectories.d.cts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.mts +31 -0
- package/lib/core/observer/ttscWriteDirectories.d.ts +31 -0
- package/lib/core/observer/ttscWriteDirectories.js +59 -0
- package/lib/core/observer/ttscWriteDirectories.js.map +1 -0
- package/lib/core/observer/ttscWriteDirectories.mjs +57 -0
- package/lib/core/observer/ttscWriteDirectories.mjs.map +1 -0
- package/lib/core/rollup/TtscRollupDelivery.d.cts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.mts +2 -0
- package/lib/core/rollup/TtscRollupDelivery.d.ts +2 -0
- package/lib/core/rollup/createRollupCachedModuleProof.d.cts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.mts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.d.ts +15 -11
- package/lib/core/rollup/createRollupCachedModuleProof.js +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.js.map +1 -1
- package/lib/core/rollup/createRollupCachedModuleProof.mjs +62 -33
- package/lib/core/rollup/createRollupCachedModuleProof.mjs.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.d.cts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.mts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.d.ts +6 -4
- package/lib/core/rollup/rollupDeliveryOptions.js +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.js.map +1 -1
- package/lib/core/rollup/rollupDeliveryOptions.mjs +7 -4
- package/lib/core/rollup/rollupDeliveryOptions.mjs.map +1 -1
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.cts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.mts +7 -0
- package/lib/core/transform/cache/TtscCachedProjectTransform.d.ts +7 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +3 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.js +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs +7 -4
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
- package/lib/core/transform/deliverCachedTransform.js +1 -0
- package/lib/core/transform/deliverCachedTransform.js.map +1 -1
- package/lib/core/transform/deliverCachedTransform.mjs +1 -0
- package/lib/core/transform/deliverCachedTransform.mjs.map +1 -1
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.cts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.mts +6 -15
- package/lib/core/transform/envelope/TtscEnvelopeDerivation.d.ts +6 -15
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.cts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.mts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.d.ts +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.js.map +1 -1
- package/lib/core/transform/envelope/collectDeclaredIdentities.mjs.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.cts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.mts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.d.ts +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.js.map +1 -1
- package/lib/core/transform/envelope/createEnvelopeKeyIndex.mjs.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.cts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.mts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.d.ts +2 -2
- package/lib/core/transform/envelope/declaresCompleteDependencies.js +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.js.map +1 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs +2 -1
- package/lib/core/transform/envelope/declaresCompleteDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.cts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.mts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.d.ts +1 -1
- package/lib/core/transform/envelope/derivationIdentity.js.map +1 -1
- package/lib/core/transform/envelope/derivationIdentity.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.js +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.js.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputs.mjs +4 -64
- package/lib/core/transform/envelope/deriveWatchInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.cts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.mts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.d.ts +24 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js +84 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.js.map +1 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs +82 -0
- package/lib/core/transform/envelope/deriveWatchInputsFromIndexes.mjs.map +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.js.map +1 -1
- package/lib/core/transform/envelope/envelopeDerivation.mjs +1 -0
- package/lib/core/transform/envelope/envelopeDerivation.mjs.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.cts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.mts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.d.ts +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.js.map +1 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs +2 -1
- package/lib/core/transform/envelope/envelopeGraphIndexes.mjs.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.d.cts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.mts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.d.ts +2 -2
- package/lib/core/transform/envelope/isVolatileFile.js +1 -1
- package/lib/core/transform/envelope/isVolatileFile.js.map +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs +1 -1
- package/lib/core/transform/envelope/isVolatileFile.mjs.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.d.cts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.mts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.d.ts +4 -5
- package/lib/core/transform/envelope/selectFileDependencies.js +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.js.map +1 -1
- package/lib/core/transform/envelope/selectFileDependencies.mjs +3 -10
- package/lib/core/transform/envelope/selectFileDependencies.mjs.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.d.cts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.mts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.d.ts +2 -5
- package/lib/core/transform/envelope/selectGraphInputs.js +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectGraphInputs.mjs +5 -4
- package/lib/core/transform/envelope/selectGraphInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.cts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.mts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.d.ts +1 -1
- package/lib/core/transform/envelope/selectHostInputs.js +4 -1
- package/lib/core/transform/envelope/selectHostInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs +4 -1
- package/lib/core/transform/envelope/selectHostInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.cts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.mts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.d.ts +8 -7
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs +11 -8
- package/lib/core/transform/envelope/selectNotifiableAbsentInputs.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableEdges.mjs.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.cts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.mts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.d.ts +1 -1
- package/lib/core/transform/envelope/selectReachableSources.js.map +1 -1
- package/lib/core/transform/envelope/selectReachableSources.mjs.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.cts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.mts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.d.ts +1 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.js.map +1 -1
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs +3 -6
- package/lib/core/transform/envelope/selectResolutionCandidateInputs.mjs.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.d.cts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.mts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.d.ts +22 -4
- package/lib/core/transform/filesystem/userStateDirectory.js +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.js.map +1 -1
- package/lib/core/transform/filesystem/userStateDirectory.mjs +37 -12
- package/lib/core/transform/filesystem/userStateDirectory.mjs.map +1 -1
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.cts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.mts +3 -0
- package/lib/core/transform/generation/TtscFailedGenerationValidation.d.ts +3 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +51 -13
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.d.cts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.mts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.d.ts +5 -3
- package/lib/core/transform/generation/createUnstableGenerationError.js +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.js.map +1 -1
- package/lib/core/transform/generation/createUnstableGenerationError.mjs +21 -4
- package/lib/core/transform/generation/createUnstableGenerationError.mjs.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.cts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.mts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.d.ts +5 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js +13 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.js.map +1 -1
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs +14 -2
- package/lib/core/transform/generation/failedGenerationEnvironmentChanged.mjs.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.d.cts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.mts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.d.ts +9 -8
- package/lib/core/transform/inputs/hostInputRealpath.js +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/hostInputRealpath.mjs +12 -8
- package/lib/core/transform/inputs/hostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.d.cts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.mts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.d.ts +3 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.js.map +1 -1
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs +5 -2
- package/lib/core/transform/inputs/sameHostInputRealpath.mjs.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.js +2 -0
- package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.mjs +2 -0
- package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.d.cts +1 -1
- package/lib/core/transform/transformTtsc.d.mts +1 -1
- package/lib/core/transform/transformTtsc.d.ts +1 -1
- package/lib/core/transform/transformTtsc.js +26 -8
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +26 -8
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.cts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.mts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.d.ts +11 -9
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.js.map +1 -1
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs +31 -32
- package/lib/core/transform/tsconfig/createTransformScratchDirectory.mjs.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.d.cts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.mts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.d.ts +19 -2
- package/lib/core/transform/validation/TtscGenerationProof.js +41 -2
- package/lib/core/transform/validation/TtscGenerationProof.js.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.mjs +42 -3
- package/lib/core/transform/validation/TtscGenerationProof.mjs.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js +9 -0
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +10 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.cts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.mts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.ts +6 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs +8 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.cts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.mts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.d.ts +8 -7
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs +19 -9
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.cts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.mts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.d.ts +7 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.js.map +1 -1
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs +9 -4
- package/lib/core/transform/validation/matchesExternalInputRealpaths.mjs.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.cts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.mts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.d.ts +5 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs +62 -2
- package/lib/core/transform/validation/matchesNarrowPersistentInputs.mjs.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.cts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.mts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.d.ts +7 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.js.map +1 -1
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs +16 -6
- package/lib/core/transform/validation/nativeInputPredicatesHold.mjs.map +1 -1
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.cts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.mts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.d.ts +8 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js +12 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.js.map +1 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs +10 -0
- package/lib/core/transform/watch/RECOVERY_TREE_DIGEST.mjs.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.cts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.mts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.d.ts +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js +3 -0
- package/lib/core/transform/watch/TtscProjectRegistration.js.map +1 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs +2 -0
- package/lib/core/transform/watch/TtscProjectRegistration.mjs.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.cts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.mts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.d.ts +33 -12
- package/lib/core/transform/watch/TtscTransformHooks.js +3 -0
- package/lib/core/transform/watch/TtscTransformHooks.js.map +1 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs +2 -0
- package/lib/core/transform/watch/TtscTransformHooks.mjs.map +1 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.cts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.mts +3 -0
- package/lib/core/transform/watch/TtscWatchInputEvidence.d.ts +3 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.cts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.mts +14 -0
- package/lib/core/transform/watch/TtscWorkspaceWatchEvidence.d.ts +14 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.cts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.mts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.d.ts +26 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js +54 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.js.map +1 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs +52 -0
- package/lib/core/transform/watch/captureRecoveryTreeDigest.mjs.map +1 -0
- package/lib/core/transform/watch/evidencedWatchInput.js +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.js.map +1 -1
- package/lib/core/transform/watch/evidencedWatchInput.mjs +6 -0
- package/lib/core/transform/watch/evidencedWatchInput.mjs.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.d.cts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.mts +4 -4
- package/lib/core/transform/watch/handWatchInputs.d.ts +4 -4
- package/lib/core/transform/watch/handWatchInputs.js +21 -5
- package/lib/core/transform/watch/handWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/handWatchInputs.mjs +21 -5
- package/lib/core/transform/watch/handWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.cts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.mts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.d.ts +8 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs +51 -9
- package/lib/core/transform/watch/notifyFailedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.js +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.js.map +1 -1
- package/lib/core/transform/watch/notifyProjectRecord.mjs +55 -20
- package/lib/core/transform/watch/notifyProjectRecord.mjs.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs +20 -10
- package/lib/core/transform/watch/notifyRejectedGenerationInputs.mjs.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.d.cts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.mts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.d.ts +4 -6
- package/lib/core/transform/watch/notifyVolatileDelivery.js +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.js.map +1 -1
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs +12 -11
- package/lib/core/transform/watch/notifyVolatileDelivery.mjs.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.d.cts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.mts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.d.ts +6 -3
- package/lib/core/transform/watch/notifyWatchInputs.js +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.js.map +1 -1
- package/lib/core/transform/watch/notifyWatchInputs.mjs +66 -14
- package/lib/core/transform/watch/notifyWatchInputs.mjs.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.cts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.mts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.d.ts +4 -5
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.js.map +1 -1
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs +9 -16
- package/lib/core/transform/watch/prepareProjectRecordDirectories.mjs.map +1 -1
- package/lib/core/transform/watch/projectRecordDirectories.d.cts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.mts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.d.ts +18 -0
- package/lib/core/transform/watch/projectRecordDirectories.js +34 -0
- package/lib/core/transform/watch/projectRecordDirectories.js.map +1 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs +32 -0
- package/lib/core/transform/watch/projectRecordDirectories.mjs.map +1 -0
- package/lib/core/transform/watch/recordedDependencyWitnesses.js +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.js.map +1 -1
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs +7 -7
- package/lib/core/transform/watch/recordedDependencyWitnesses.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs +2 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesBaseline.mjs.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.js.map +1 -1
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs +7 -0
- package/lib/core/transform/watch/watchInputEvidenceMatchesDisk.mjs.map +1 -1
- package/lib/core/unplugin.js +43 -27
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +43 -27
- package/lib/core/unplugin.mjs.map +1 -1
- package/lib/core/vite/ViteServeInputWatch.d.cts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.mts +17 -0
- package/lib/core/vite/ViteServeInputWatch.d.ts +17 -0
- package/lib/core/vite/createViteServeInputWatch.d.cts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.mts +5 -0
- package/lib/core/vite/createViteServeInputWatch.d.ts +5 -0
- package/lib/core/vite/createViteServeInputWatch.js +86 -10
- package/lib/core/vite/createViteServeInputWatch.js.map +1 -1
- package/lib/core/vite/createViteServeInputWatch.mjs +86 -10
- package/lib/core/vite/createViteServeInputWatch.mjs.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.d.cts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.mts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.d.ts +6 -5
- package/lib/core/vite/createViteServeWatchHooks.js +10 -4
- package/lib/core/vite/createViteServeWatchHooks.js.map +1 -1
- package/lib/core/vite/createViteServeWatchHooks.mjs +10 -4
- package/lib/core/vite/createViteServeWatchHooks.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/bridge/HostWatchBridge.ts +2 -0
- package/src/core/bridge/MANAGED_PROJECT_RECORDS.ts +2 -0
- package/src/core/bridge/TtscProjectRecord.ts +9 -0
- package/src/core/bridge/fallbackRecordStorage.ts +104 -0
- package/src/core/bridge/fallbackToolDirectory.ts +22 -38
- package/src/core/bridge/fallbackToolDirectoryLocation.ts +40 -0
- package/src/core/bridge/hostToolDirectory.ts +14 -47
- package/src/core/bridge/openHostWatchBridge.ts +48 -6
- package/src/core/bridge/prepareProjectRecordDirectory.ts +134 -0
- package/src/core/bridge/privateProjectRecordAvailable.ts +25 -0
- package/src/core/bridge/projectRecordMoved.ts +7 -0
- package/src/core/bridge/projectRecordWatchInputs.ts +6 -0
- package/src/core/bridge/readProjectRecordFile.ts +28 -1
- package/src/core/bridge/refreshProjectRecordFile.ts +40 -7
- package/src/core/bridge/refreshProjectRecordFiles.ts +44 -12
- package/src/core/bridge/registerProjectRecord.ts +2 -0
- package/src/core/bridge/signalProjectRecordFile.ts +25 -5
- package/src/core/bridge/writeProjectRecordFile.ts +10 -3
- package/src/core/esbuild/createEsbuildOptions.ts +9 -10
- package/src/core/farm/createFarmRecordUpdates.ts +167 -0
- package/src/core/farm/farmPersistentCacheWithoutRecords.ts +25 -55
- package/src/core/farm/farmRecordFallback.ts +25 -20
- package/src/core/next/next.ts +5 -3
- package/src/core/observer/InputCondition.ts +7 -0
- package/src/core/observer/InputObserverChange.ts +3 -0
- package/src/core/observer/createInputObserver.ts +186 -25
- package/src/core/observer/ttscWriteDirectories.ts +56 -0
- package/src/core/rollup/TtscRollupDelivery.ts +2 -0
- package/src/core/rollup/createRollupCachedModuleProof.ts +65 -33
- package/src/core/rollup/rollupDeliveryOptions.ts +7 -4
- package/src/core/transform/cache/TtscCachedProjectTransform.ts +6 -0
- package/src/core/transform/cache/selectCachedGenerationAction.ts +9 -4
- package/src/core/transform/deliverCachedTransform.ts +1 -0
- package/src/core/transform/envelope/TtscEnvelopeDerivation.ts +6 -17
- package/src/core/transform/envelope/collectDeclaredIdentities.ts +1 -1
- package/src/core/transform/envelope/createEnvelopeKeyIndex.ts +1 -1
- package/src/core/transform/envelope/declaresCompleteDependencies.ts +17 -7
- package/src/core/transform/envelope/derivationIdentity.ts +1 -1
- package/src/core/transform/envelope/deriveWatchInputs.ts +10 -64
- package/src/core/transform/envelope/deriveWatchInputsFromIndexes.ts +117 -0
- package/src/core/transform/envelope/envelopeDerivation.ts +1 -0
- package/src/core/transform/envelope/envelopeGraphIndexes.ts +2 -1
- package/src/core/transform/envelope/isVolatileFile.ts +12 -3
- package/src/core/transform/envelope/selectFileDependencies.ts +11 -14
- package/src/core/transform/envelope/selectGraphInputs.ts +13 -10
- package/src/core/transform/envelope/selectHostInputs.ts +11 -2
- package/src/core/transform/envelope/selectNotifiableAbsentInputs.ts +13 -8
- package/src/core/transform/envelope/selectReachableEdges.ts +2 -2
- package/src/core/transform/envelope/selectReachableSources.ts +2 -2
- package/src/core/transform/envelope/selectResolutionCandidateInputs.ts +9 -15
- package/src/core/transform/filesystem/userStateDirectory.ts +46 -15
- package/src/core/transform/generation/TtscFailedGenerationValidation.ts +5 -0
- package/src/core/transform/generation/captureTransformGeneration.ts +64 -22
- package/src/core/transform/generation/createUnstableGenerationError.ts +24 -4
- package/src/core/transform/generation/failedGenerationEnvironmentChanged.ts +18 -2
- package/src/core/transform/inputs/hostInputRealpath.ts +13 -8
- package/src/core/transform/inputs/sameHostInputRealpath.ts +4 -2
- package/src/core/transform/session/claimSharedCompile.ts +2 -0
- package/src/core/transform/transformTtsc.ts +28 -7
- package/src/core/transform/tsconfig/createTransformScratchDirectory.ts +36 -31
- package/src/core/transform/validation/TtscGenerationProof.ts +57 -2
- package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -0
- package/src/core/transform/validation/matchesCachedExternalInputs.ts +6 -1
- package/src/core/transform/validation/matchesCompleteInputSnapshot.ts +23 -9
- package/src/core/transform/validation/matchesExternalInputRealpaths.ts +7 -3
- package/src/core/transform/validation/matchesNarrowPersistentInputs.ts +81 -2
- package/src/core/transform/validation/nativeInputPredicatesHold.ts +15 -6
- package/src/core/transform/watch/RECOVERY_TREE_DIGEST.ts +12 -0
- package/src/core/transform/watch/TtscProjectRegistration.ts +4 -0
- package/src/core/transform/watch/TtscTransformHooks.ts +40 -12
- package/src/core/transform/watch/TtscWatchInputEvidence.ts +3 -0
- package/src/core/transform/watch/TtscWorkspaceWatchEvidence.ts +17 -0
- package/src/core/transform/watch/captureRecoveryTreeDigest.ts +58 -0
- package/src/core/transform/watch/evidencedWatchInput.ts +7 -0
- package/src/core/transform/watch/handWatchInputs.ts +21 -5
- package/src/core/transform/watch/notifyFailedGenerationInputs.ts +66 -10
- package/src/core/transform/watch/notifyProjectRecord.ts +68 -25
- package/src/core/transform/watch/notifyRejectedGenerationInputs.ts +22 -9
- package/src/core/transform/watch/notifyVolatileDelivery.ts +7 -6
- package/src/core/transform/watch/notifyWatchInputs.ts +112 -14
- package/src/core/transform/watch/prepareProjectRecordDirectories.ts +14 -16
- package/src/core/transform/watch/projectRecordDirectories.ts +33 -0
- package/src/core/transform/watch/recordedDependencyWitnesses.ts +8 -9
- package/src/core/transform/watch/watchInputEvidenceMatchesBaseline.ts +2 -1
- package/src/core/transform/watch/watchInputEvidenceMatchesDisk.ts +7 -0
- package/src/core/unplugin.ts +72 -42
- package/src/core/vite/ViteServeInputWatch.ts +24 -0
- package/src/core/vite/createViteServeInputWatch.ts +98 -9
- package/src/core/vite/createViteServeWatchHooks.ts +15 -6
- package/lib/core/bridge/projectRecordDirectoryWritable.d.cts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.mts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.d.ts +0 -36
- package/lib/core/bridge/projectRecordDirectoryWritable.js +0 -65
- package/lib/core/bridge/projectRecordDirectoryWritable.js.map +0 -1
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs +0 -63
- package/lib/core/bridge/projectRecordDirectoryWritable.mjs.map +0 -1
- package/src/core/bridge/projectRecordDirectoryWritable.ts +0 -61
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import { PluginBuildEnvironmentWitness } from 'ttsc/plugin-source';
|
|
2
3
|
import { resultFilesystem } from '../cache/resultFilesystem.mjs';
|
|
3
4
|
import { envelopeDerivation } from '../envelope/envelopeDerivation.mjs';
|
|
4
5
|
import { nativeInputPredicateMatches } from '../inputs/nativeInputPredicateMatches.mjs';
|
|
6
|
+
import { matchesRecordedInput } from './matchesRecordedInput.mjs';
|
|
5
7
|
|
|
6
8
|
// Weakly owned by immutable observation membership, never by current verdict.
|
|
7
9
|
// Keeping this separate from native path derivation also preserves the empty
|
|
8
10
|
// predicate gate's promise to perform no native identity observations.
|
|
9
11
|
const predicateInputs = new WeakMap();
|
|
10
12
|
/**
|
|
11
|
-
* Validate
|
|
12
|
-
* This check also applies when
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Validate generation-owned native config predicates and directly observed
|
|
14
|
+
* external names before cache reuse. This check also applies when
|
|
15
|
+
* notification/epoch shortcuts admit other inputs. A generation with neither
|
|
16
|
+
* source of input requires no native replay context. Other proof owners still
|
|
17
|
+
* perform their own validation.
|
|
15
18
|
*
|
|
16
|
-
* @evidence contracts/common.md#principled-implementation Every recorded native predicate must match through the generation's
|
|
19
|
+
* @evidence contracts/common.md#principled-implementation Every recorded native predicate and each external name deliberately left to direct validation must match through the generation's filesystem view before reuse.
|
|
17
20
|
* @evidence contracts/common.md#clear-and-simple-design One gate is shared by source, complete-snapshot and universal-input admission; the typed replay owns encodings and native errors.
|
|
18
21
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Metadata and notification shortcuts cannot omit typed config predicates or repair an unstable producer witness.
|
|
19
22
|
* @evidence contracts/common.md#meaningful-documentation The comment identifies generation ownership and the admission shortcuts that must retain this gate.
|
|
20
23
|
* @evidence contracts/portability.md#os-neutral-implementation Relative names are resolved against the recorded project with the filesystem view's path dialect; native identity and encoding belong to the replay operation.
|
|
21
|
-
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each
|
|
24
|
+
* @evidence contracts/performance.md#efficient-algorithms Immutable observation membership is indexed once, including an empty population. Each synchronous admission replays the selected external names and indexed native predicates, stopping at the first refusal. Nested validators share its verdict without another scan or native query.
|
|
22
25
|
* @evidence contracts/performance.md#reuse-equivalent-work A weak observation index shares immutable membership. Current verdicts belong only to an exact-owner synchronous transaction, never the next delivery or an await.
|
|
23
26
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The weak index follows immutable observation lifetime; synchronous verdicts and native queries acquire no handle or history.
|
|
24
27
|
*/
|
|
@@ -35,6 +38,13 @@ function nativeInputPredicatesHold(cached, proof) {
|
|
|
35
38
|
proof.nativePredicates = matches;
|
|
36
39
|
return matches;
|
|
37
40
|
};
|
|
41
|
+
for (const file of cached.directExternalInputs ?? []) {
|
|
42
|
+
if (!matchesRecordedInput(cached, file))
|
|
43
|
+
return finish(false);
|
|
44
|
+
}
|
|
45
|
+
for (const state of Object.values(cached.result.workspaceInputs ?? {}))
|
|
46
|
+
if (!PluginBuildEnvironmentWitness.holds(state.entries))
|
|
47
|
+
return finish(false);
|
|
38
48
|
const observations = cached.result.graph?.inputObservations;
|
|
39
49
|
if (observations === undefined)
|
|
40
50
|
return finish(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeInputPredicatesHold.mjs","sources":["../../../../src/core/transform/validation/nativeInputPredicatesHold.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeInputPredicatesHold.mjs","sources":["../../../../src/core/transform/validation/nativeInputPredicatesHold.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAWA;AACA;AACA;AACA,MAAM,eAAe,GAAG,IAAI,OAAO,EAGhC;AAEH;;;;;;;;;;;;;;;AAeG;AACG,SAAU,yBAAyB,CACvC,MAAkC,EAClC,KAAuC,EAAA;AAEvC,IAAA,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;IACpD,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS;QAClE,OAAO,KAAK,CAAC,gBAAgB;;;;AAI/B,IAAA,MAAM,MAAM,GAAG,CAAC,OAAgB,KAAa;AAC3C,QAAA,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM;AAAE,YAAA,KAAK,CAAC,gBAAgB,GAAG,OAAO;AAC9D,QAAA,OAAO,OAAO;AAChB,IAAA,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,oBAAoB,IAAI,EAAE,EAAE;AACpD,QAAA,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC;AAAE,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC;IAC/D;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QACpE,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;AACrD,YAAA,OAAO,MAAM,CAAC,KAAK,CAAC;IACxB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,iBAAiB;IAC3D,IAAI,YAAY,KAAK,SAAS;AAAE,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC;IACnD,IAAI,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC;AAC9C,IAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,QAAA,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,CAC1C,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,gBAAgB,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CACvE;AACD,QAAA,eAAe,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC;IAC3C;AACA,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC;IAC5C,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;IAClD,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,eAAe;IAC7D,KAAK,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,MAAM,EAAE;AACxC,QAAA,MAAM,IAAI,GAAG,CACX,CAAC,UAAU,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,MAAM;cAC1C,IAAI,CAAC;AACP,cAAE,IAAI,CAAC,KAAK,EACd,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC;AACnC,QAAA,KAAK,MAAM,SAAS,IAAI,WAAW,CAAC,gBAAgB,IAAI,EAAE;YACxD,IAAI,CAAC,2BAA2B,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC;AACvE,gBAAA,OAAO,MAAM,CAAC,KAAK,CAAC;IAC1B;AACA,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TtscWatchInput } from "./TtscWatchInput.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* The internal recovery condition attached to a watcher registration.
|
|
4
|
+
*
|
|
5
|
+
* A missing attachment is undefined. A null digest records an unavailable
|
|
6
|
+
* target. The weak key releases the digest with its registration.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RECOVERY_TREE_DIGEST: WeakMap<TtscWatchInput, string | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TtscWatchInput } from "./TtscWatchInput.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The internal recovery condition attached to a watcher registration.
|
|
4
|
+
*
|
|
5
|
+
* A missing attachment is undefined. A null digest records an unavailable
|
|
6
|
+
* target. The weak key releases the digest with its registration.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RECOVERY_TREE_DIGEST: WeakMap<TtscWatchInput, string | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TtscWatchInput } from "./TtscWatchInput";
|
|
2
|
+
/**
|
|
3
|
+
* The internal recovery condition attached to a watcher registration.
|
|
4
|
+
*
|
|
5
|
+
* A missing attachment is undefined. A null digest records an unavailable
|
|
6
|
+
* target. The weak key releases the digest with its registration.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RECOVERY_TREE_DIGEST: WeakMap<TtscWatchInput, string | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The internal recovery condition attached to a watcher registration.
|
|
5
|
+
*
|
|
6
|
+
* A missing attachment is undefined. A null digest records an unavailable
|
|
7
|
+
* target. The weak key releases the digest with its registration.
|
|
8
|
+
*/
|
|
9
|
+
const RECOVERY_TREE_DIGEST = new WeakMap();
|
|
10
|
+
|
|
11
|
+
exports.RECOVERY_TREE_DIGEST = RECOVERY_TREE_DIGEST;
|
|
12
|
+
//# sourceMappingURL=RECOVERY_TREE_DIGEST.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RECOVERY_TREE_DIGEST.js","sources":["../../../../src/core/transform/watch/RECOVERY_TREE_DIGEST.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;AACI,MAAM,oBAAoB,GAAG,IAAI,OAAO;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The internal recovery condition attached to a watcher registration.
|
|
3
|
+
*
|
|
4
|
+
* A missing attachment is undefined. A null digest records an unavailable
|
|
5
|
+
* target. The weak key releases the digest with its registration.
|
|
6
|
+
*/
|
|
7
|
+
const RECOVERY_TREE_DIGEST = new WeakMap();
|
|
8
|
+
|
|
9
|
+
export { RECOVERY_TREE_DIGEST };
|
|
10
|
+
//# sourceMappingURL=RECOVERY_TREE_DIGEST.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RECOVERY_TREE_DIGEST.mjs","sources":["../../../../src/core/transform/watch/RECOVERY_TREE_DIGEST.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;;AAKG;AACI,MAAM,oBAAoB,GAAG,IAAI,OAAO;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS.cjs";
|
|
1
2
|
import type { TtscWatchInput } from "./TtscWatchInput.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* What one delivery hands a host that observes the project through its record
|
|
@@ -23,6 +24,8 @@ import type { TtscWatchInput } from "./TtscWatchInput.cjs";
|
|
|
23
24
|
* retained state at runtime.
|
|
24
25
|
*/
|
|
25
26
|
export interface TtscProjectRegistration {
|
|
27
|
+
/** The adapter selected a generated managed record. */
|
|
28
|
+
[MANAGED_PROJECT_RECORDS]?: true;
|
|
26
29
|
/**
|
|
27
30
|
* The digest of snapshot bytes this process wrote or found identical in
|
|
28
31
|
* {@link record} for the delivery's revision (`projectRecordDigest`), or
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS.mjs";
|
|
1
2
|
import type { TtscWatchInput } from "./TtscWatchInput.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* What one delivery hands a host that observes the project through its record
|
|
@@ -23,6 +24,8 @@ import type { TtscWatchInput } from "./TtscWatchInput.mjs";
|
|
|
23
24
|
* retained state at runtime.
|
|
24
25
|
*/
|
|
25
26
|
export interface TtscProjectRegistration {
|
|
27
|
+
/** The adapter selected a generated managed record. */
|
|
28
|
+
[MANAGED_PROJECT_RECORDS]?: true;
|
|
26
29
|
/**
|
|
27
30
|
* The digest of snapshot bytes this process wrote or found identical in
|
|
28
31
|
* {@link record} for the delivery's revision (`projectRecordDigest`), or
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS";
|
|
1
2
|
import type { TtscWatchInput } from "./TtscWatchInput";
|
|
2
3
|
/**
|
|
3
4
|
* What one delivery hands a host that observes the project through its record
|
|
@@ -23,6 +24,8 @@ import type { TtscWatchInput } from "./TtscWatchInput";
|
|
|
23
24
|
* retained state at runtime.
|
|
24
25
|
*/
|
|
25
26
|
export interface TtscProjectRegistration {
|
|
27
|
+
/** The adapter selected a generated managed record. */
|
|
28
|
+
[MANAGED_PROJECT_RECORDS]?: true;
|
|
26
29
|
/**
|
|
27
30
|
* The digest of snapshot bytes this process wrote or found identical in
|
|
28
31
|
* {@link record} for the delivery's revision (`projectRecordDigest`), or
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TtscProjectRegistration.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TtscProjectRegistration.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS.cjs";
|
|
1
2
|
import type { TtscProjectRegistration } from "./TtscProjectRegistration.cjs";
|
|
2
3
|
import type { TtscWatchInput } from "./TtscWatchInput.cjs";
|
|
3
4
|
import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.cjs";
|
|
@@ -29,6 +30,21 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.cjs";
|
|
|
29
30
|
* state at runtime.
|
|
30
31
|
*/
|
|
31
32
|
export interface TtscTransformHooks {
|
|
33
|
+
/**
|
|
34
|
+
* Join a shared compiler generation with this module's routing and membership
|
|
35
|
+
* inputs. The callback can use `affected` to decide if changed paths reach
|
|
36
|
+
* the module. Returning false requests ordinary per-module registration.
|
|
37
|
+
*
|
|
38
|
+
* @evidence contracts/common.md#principled-implementation The callback receives the generation owner and its input set, the module's input set, and the module's own invalidation predicate.
|
|
39
|
+
* @evidence contracts/common.md#clear-and-simple-design The callback separates group registration from module dependency selection and reports whether it accepted the handoff.
|
|
40
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Refusal keeps the flat dependency handoff. Joining a group still supplies module-local inputs and the affected predicate.
|
|
41
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains the two input sets, the predicate and the return value.
|
|
42
|
+
* @evidence contracts/portability.md#os-neutral-implementation Both input sets carry native watch spellings, and the predicate receives native spellings reported by the observer.
|
|
43
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The declaration supplies a callback shape. Its implementation owns registration costs.
|
|
44
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The host decides whether its generation registrations can be shared.
|
|
45
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The declaration retains no input set or native watcher.
|
|
46
|
+
*/
|
|
47
|
+
watchGeneration?: (owner: string, inputs: readonly TtscWatchInput[], local: readonly TtscWatchInput[], affected: (changed: ReadonlySet<string>) => boolean) => boolean;
|
|
32
48
|
/**
|
|
33
49
|
* Native config already selected by the host for this delivered module.
|
|
34
50
|
*
|
|
@@ -54,13 +70,13 @@ export interface TtscTransformHooks {
|
|
|
54
70
|
*/
|
|
55
71
|
addWatchFile?: TtscAddWatchFile;
|
|
56
72
|
/**
|
|
57
|
-
* Batched form of {@link addWatchFile}.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
73
|
+
* Batched form of {@link addWatchFile}. For a flat delivery, this callback
|
|
74
|
+
* receives one batch in place of individual calls to `addWatchFile`. `failed`
|
|
75
|
+
* marks a recovery batch: a failed compiler can omit inputs from its previous
|
|
76
|
+
* successful result, so replacing hosts should retain those spellings until
|
|
77
|
+
* the next successful delivery. The third argument carries the generation's
|
|
78
|
+
* environment reads for hosts that include non-file inputs in their
|
|
79
|
+
* persistent keys.
|
|
64
80
|
*/
|
|
65
81
|
addWatchFiles?: TtscAddWatchFiles;
|
|
66
82
|
/**
|
|
@@ -98,6 +114,8 @@ export interface TtscTransformHooks {
|
|
|
98
114
|
* watching session's bridge (`registerProjectRecord`).
|
|
99
115
|
*/
|
|
100
116
|
project?: {
|
|
117
|
+
/** The directory generated under private storage by the built-in adapter. */
|
|
118
|
+
[MANAGED_PROJECT_RECORDS]?: "toolDirectory" | "fallbackToolDirectory";
|
|
101
119
|
/** Called once per delivery, failed deliveries included. */
|
|
102
120
|
register: TtscRegisterWatchProject;
|
|
103
121
|
/** The host's tool directory (`hostToolDirectory`), where the record lives. */
|
|
@@ -122,13 +140,16 @@ export interface TtscTransformHooks {
|
|
|
122
140
|
* snapshot of the module represents: the plugin declared the transformed file
|
|
123
141
|
* volatile (the envelope's `volatile` list), or the module was handed over
|
|
124
142
|
* without a complete host-observation closure, or without the project's
|
|
125
|
-
* record, which could not be written.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* the
|
|
143
|
+
* record, which could not be written. An opaque cache can also opt in to this
|
|
144
|
+
* callback for a generated workspace that must be resolved again. Adapters
|
|
145
|
+
* should mark the module uncacheable where the bundler exposes that control
|
|
146
|
+
* (e.g. a webpack loader context's `cacheable(false)`), or answer the
|
|
147
|
+
* bundler's cache for it where the bundler asks instead (Rollup's
|
|
148
|
+
* `shouldTransformCachedModule`, through the module's `meta`).
|
|
130
149
|
*/
|
|
131
150
|
markVolatile?: TtscMarkVolatile;
|
|
151
|
+
/** Use markVolatile for workspace replay when the host has no restore hook. */
|
|
152
|
+
workspaceReplayUsesVolatility?: true;
|
|
132
153
|
}
|
|
133
154
|
/**
|
|
134
155
|
* Receive one absolute watch spelling and its optional generation facts.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS.mjs";
|
|
1
2
|
import type { TtscProjectRegistration } from "./TtscProjectRegistration.mjs";
|
|
2
3
|
import type { TtscWatchInput } from "./TtscWatchInput.mjs";
|
|
3
4
|
import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.mjs";
|
|
@@ -29,6 +30,21 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.mjs";
|
|
|
29
30
|
* state at runtime.
|
|
30
31
|
*/
|
|
31
32
|
export interface TtscTransformHooks {
|
|
33
|
+
/**
|
|
34
|
+
* Join a shared compiler generation with this module's routing and membership
|
|
35
|
+
* inputs. The callback can use `affected` to decide if changed paths reach
|
|
36
|
+
* the module. Returning false requests ordinary per-module registration.
|
|
37
|
+
*
|
|
38
|
+
* @evidence contracts/common.md#principled-implementation The callback receives the generation owner and its input set, the module's input set, and the module's own invalidation predicate.
|
|
39
|
+
* @evidence contracts/common.md#clear-and-simple-design The callback separates group registration from module dependency selection and reports whether it accepted the handoff.
|
|
40
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Refusal keeps the flat dependency handoff. Joining a group still supplies module-local inputs and the affected predicate.
|
|
41
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains the two input sets, the predicate and the return value.
|
|
42
|
+
* @evidence contracts/portability.md#os-neutral-implementation Both input sets carry native watch spellings, and the predicate receives native spellings reported by the observer.
|
|
43
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The declaration supplies a callback shape. Its implementation owns registration costs.
|
|
44
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The host decides whether its generation registrations can be shared.
|
|
45
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The declaration retains no input set or native watcher.
|
|
46
|
+
*/
|
|
47
|
+
watchGeneration?: (owner: string, inputs: readonly TtscWatchInput[], local: readonly TtscWatchInput[], affected: (changed: ReadonlySet<string>) => boolean) => boolean;
|
|
32
48
|
/**
|
|
33
49
|
* Native config already selected by the host for this delivered module.
|
|
34
50
|
*
|
|
@@ -54,13 +70,13 @@ export interface TtscTransformHooks {
|
|
|
54
70
|
*/
|
|
55
71
|
addWatchFile?: TtscAddWatchFile;
|
|
56
72
|
/**
|
|
57
|
-
* Batched form of {@link addWatchFile}.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
73
|
+
* Batched form of {@link addWatchFile}. For a flat delivery, this callback
|
|
74
|
+
* receives one batch in place of individual calls to `addWatchFile`. `failed`
|
|
75
|
+
* marks a recovery batch: a failed compiler can omit inputs from its previous
|
|
76
|
+
* successful result, so replacing hosts should retain those spellings until
|
|
77
|
+
* the next successful delivery. The third argument carries the generation's
|
|
78
|
+
* environment reads for hosts that include non-file inputs in their
|
|
79
|
+
* persistent keys.
|
|
64
80
|
*/
|
|
65
81
|
addWatchFiles?: TtscAddWatchFiles;
|
|
66
82
|
/**
|
|
@@ -98,6 +114,8 @@ export interface TtscTransformHooks {
|
|
|
98
114
|
* watching session's bridge (`registerProjectRecord`).
|
|
99
115
|
*/
|
|
100
116
|
project?: {
|
|
117
|
+
/** The directory generated under private storage by the built-in adapter. */
|
|
118
|
+
[MANAGED_PROJECT_RECORDS]?: "toolDirectory" | "fallbackToolDirectory";
|
|
101
119
|
/** Called once per delivery, failed deliveries included. */
|
|
102
120
|
register: TtscRegisterWatchProject;
|
|
103
121
|
/** The host's tool directory (`hostToolDirectory`), where the record lives. */
|
|
@@ -122,13 +140,16 @@ export interface TtscTransformHooks {
|
|
|
122
140
|
* snapshot of the module represents: the plugin declared the transformed file
|
|
123
141
|
* volatile (the envelope's `volatile` list), or the module was handed over
|
|
124
142
|
* without a complete host-observation closure, or without the project's
|
|
125
|
-
* record, which could not be written.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* the
|
|
143
|
+
* record, which could not be written. An opaque cache can also opt in to this
|
|
144
|
+
* callback for a generated workspace that must be resolved again. Adapters
|
|
145
|
+
* should mark the module uncacheable where the bundler exposes that control
|
|
146
|
+
* (e.g. a webpack loader context's `cacheable(false)`), or answer the
|
|
147
|
+
* bundler's cache for it where the bundler asks instead (Rollup's
|
|
148
|
+
* `shouldTransformCachedModule`, through the module's `meta`).
|
|
130
149
|
*/
|
|
131
150
|
markVolatile?: TtscMarkVolatile;
|
|
151
|
+
/** Use markVolatile for workspace replay when the host has no restore hook. */
|
|
152
|
+
workspaceReplayUsesVolatility?: true;
|
|
132
153
|
}
|
|
133
154
|
/**
|
|
134
155
|
* Receive one absolute watch spelling and its optional generation facts.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANAGED_PROJECT_RECORDS } from "../../bridge/MANAGED_PROJECT_RECORDS";
|
|
1
2
|
import type { TtscProjectRegistration } from "./TtscProjectRegistration";
|
|
2
3
|
import type { TtscWatchInput } from "./TtscWatchInput";
|
|
3
4
|
import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence";
|
|
@@ -29,6 +30,21 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence";
|
|
|
29
30
|
* state at runtime.
|
|
30
31
|
*/
|
|
31
32
|
export interface TtscTransformHooks {
|
|
33
|
+
/**
|
|
34
|
+
* Join a shared compiler generation with this module's routing and membership
|
|
35
|
+
* inputs. The callback can use `affected` to decide if changed paths reach
|
|
36
|
+
* the module. Returning false requests ordinary per-module registration.
|
|
37
|
+
*
|
|
38
|
+
* @evidence contracts/common.md#principled-implementation The callback receives the generation owner and its input set, the module's input set, and the module's own invalidation predicate.
|
|
39
|
+
* @evidence contracts/common.md#clear-and-simple-design The callback separates group registration from module dependency selection and reports whether it accepted the handoff.
|
|
40
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Refusal keeps the flat dependency handoff. Joining a group still supplies module-local inputs and the affected predicate.
|
|
41
|
+
* @evidence contracts/common.md#meaningful-documentation The comment explains the two input sets, the predicate and the return value.
|
|
42
|
+
* @evidence contracts/portability.md#os-neutral-implementation Both input sets carry native watch spellings, and the predicate receives native spellings reported by the observer.
|
|
43
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The declaration supplies a callback shape. Its implementation owns registration costs.
|
|
44
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The host decides whether its generation registrations can be shared.
|
|
45
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The declaration retains no input set or native watcher.
|
|
46
|
+
*/
|
|
47
|
+
watchGeneration?: (owner: string, inputs: readonly TtscWatchInput[], local: readonly TtscWatchInput[], affected: (changed: ReadonlySet<string>) => boolean) => boolean;
|
|
32
48
|
/**
|
|
33
49
|
* Native config already selected by the host for this delivered module.
|
|
34
50
|
*
|
|
@@ -54,13 +70,13 @@ export interface TtscTransformHooks {
|
|
|
54
70
|
*/
|
|
55
71
|
addWatchFile?: TtscAddWatchFile;
|
|
56
72
|
/**
|
|
57
|
-
* Batched form of {@link addWatchFile}.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
73
|
+
* Batched form of {@link addWatchFile}. For a flat delivery, this callback
|
|
74
|
+
* receives one batch in place of individual calls to `addWatchFile`. `failed`
|
|
75
|
+
* marks a recovery batch: a failed compiler can omit inputs from its previous
|
|
76
|
+
* successful result, so replacing hosts should retain those spellings until
|
|
77
|
+
* the next successful delivery. The third argument carries the generation's
|
|
78
|
+
* environment reads for hosts that include non-file inputs in their
|
|
79
|
+
* persistent keys.
|
|
64
80
|
*/
|
|
65
81
|
addWatchFiles?: TtscAddWatchFiles;
|
|
66
82
|
/**
|
|
@@ -98,6 +114,8 @@ export interface TtscTransformHooks {
|
|
|
98
114
|
* watching session's bridge (`registerProjectRecord`).
|
|
99
115
|
*/
|
|
100
116
|
project?: {
|
|
117
|
+
/** The directory generated under private storage by the built-in adapter. */
|
|
118
|
+
[MANAGED_PROJECT_RECORDS]?: "toolDirectory" | "fallbackToolDirectory";
|
|
101
119
|
/** Called once per delivery, failed deliveries included. */
|
|
102
120
|
register: TtscRegisterWatchProject;
|
|
103
121
|
/** The host's tool directory (`hostToolDirectory`), where the record lives. */
|
|
@@ -122,13 +140,16 @@ export interface TtscTransformHooks {
|
|
|
122
140
|
* snapshot of the module represents: the plugin declared the transformed file
|
|
123
141
|
* volatile (the envelope's `volatile` list), or the module was handed over
|
|
124
142
|
* without a complete host-observation closure, or without the project's
|
|
125
|
-
* record, which could not be written.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* the
|
|
143
|
+
* record, which could not be written. An opaque cache can also opt in to this
|
|
144
|
+
* callback for a generated workspace that must be resolved again. Adapters
|
|
145
|
+
* should mark the module uncacheable where the bundler exposes that control
|
|
146
|
+
* (e.g. a webpack loader context's `cacheable(false)`), or answer the
|
|
147
|
+
* bundler's cache for it where the bundler asks instead (Rollup's
|
|
148
|
+
* `shouldTransformCachedModule`, through the module's `meta`).
|
|
130
149
|
*/
|
|
131
150
|
markVolatile?: TtscMarkVolatile;
|
|
151
|
+
/** Use markVolatile for workspace replay when the host has no restore hook. */
|
|
152
|
+
workspaceReplayUsesVolatility?: true;
|
|
132
153
|
}
|
|
133
154
|
/**
|
|
134
155
|
* Receive one absolute watch spelling and its optional generation facts.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TtscTransformHooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TtscTransformHooks.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TtscWatchInputState } from "./TtscWatchInputState.cjs";
|
|
2
|
+
import type { TtscWorkspaceWatchEvidence } from "./TtscWorkspaceWatchEvidence.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* What the generation already knows about one derived watch input, handed to
|
|
4
5
|
* the adapter so it does not rederive it per input per delivery.
|
|
@@ -28,6 +29,8 @@ import type { TtscWatchInputState } from "./TtscWatchInputState.cjs";
|
|
|
28
29
|
* retained state at runtime.
|
|
29
30
|
*/
|
|
30
31
|
export interface TtscWatchInputEvidence {
|
|
32
|
+
/** Independent workspace metadata sharing the same watch spelling. */
|
|
33
|
+
workspace?: TtscWorkspaceWatchEvidence;
|
|
31
34
|
/** Memoized filesystem identity of the input. */
|
|
32
35
|
identity: string;
|
|
33
36
|
/** Whether the generation recorded this input as unavailable as a file. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TtscWatchInputState } from "./TtscWatchInputState.mjs";
|
|
2
|
+
import type { TtscWorkspaceWatchEvidence } from "./TtscWorkspaceWatchEvidence.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* What the generation already knows about one derived watch input, handed to
|
|
4
5
|
* the adapter so it does not rederive it per input per delivery.
|
|
@@ -28,6 +29,8 @@ import type { TtscWatchInputState } from "./TtscWatchInputState.mjs";
|
|
|
28
29
|
* retained state at runtime.
|
|
29
30
|
*/
|
|
30
31
|
export interface TtscWatchInputEvidence {
|
|
32
|
+
/** Independent workspace metadata sharing the same watch spelling. */
|
|
33
|
+
workspace?: TtscWorkspaceWatchEvidence;
|
|
31
34
|
/** Memoized filesystem identity of the input. */
|
|
32
35
|
identity: string;
|
|
33
36
|
/** Whether the generation recorded this input as unavailable as a file. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TtscWatchInputState } from "./TtscWatchInputState";
|
|
2
|
+
import type { TtscWorkspaceWatchEvidence } from "./TtscWorkspaceWatchEvidence";
|
|
2
3
|
/**
|
|
3
4
|
* What the generation already knows about one derived watch input, handed to
|
|
4
5
|
* the adapter so it does not rederive it per input per delivery.
|
|
@@ -28,6 +29,8 @@ import type { TtscWatchInputState } from "./TtscWatchInputState";
|
|
|
28
29
|
* retained state at runtime.
|
|
29
30
|
*/
|
|
30
31
|
export interface TtscWatchInputEvidence {
|
|
32
|
+
/** Independent workspace metadata sharing the same watch spelling. */
|
|
33
|
+
workspace?: TtscWorkspaceWatchEvidence;
|
|
31
34
|
/** Memoized filesystem identity of the input. */
|
|
32
35
|
identity: string;
|
|
33
36
|
/** Whether the generation recorded this input as unavailable as a file. */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
|
+
/**
|
|
3
|
+
* Native workspace evidence attached independently of a compiler input codec.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation Preserves the producer's metadata and delivery requirements at a usable watch spelling.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Attaches workspace observations to a path independently of its compiler state.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A workspace witness cannot masquerade as a compiler file, tree or predicate codec.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Describes how this evidence coexists with the input codec.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation Witness keys keep the original native spelling, including encoded POSIX bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The type declares a carrier with no runtime computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The observer owns condition reuse.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The type allocates no resource.
|
|
13
|
+
*/
|
|
14
|
+
export type TtscWorkspaceWatchEvidence = NonNullable<ITtscCompilerTransformation.ISuccess["workspaceInputs"]>[string];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
|
+
/**
|
|
3
|
+
* Native workspace evidence attached independently of a compiler input codec.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation Preserves the producer's metadata and delivery requirements at a usable watch spelling.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Attaches workspace observations to a path independently of its compiler state.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A workspace witness cannot masquerade as a compiler file, tree or predicate codec.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Describes how this evidence coexists with the input codec.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation Witness keys keep the original native spelling, including encoded POSIX bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The type declares a carrier with no runtime computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The observer owns condition reuse.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The type allocates no resource.
|
|
13
|
+
*/
|
|
14
|
+
export type TtscWorkspaceWatchEvidence = NonNullable<ITtscCompilerTransformation.ISuccess["workspaceInputs"]>[string];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ITtscCompilerTransformation } from "ttsc";
|
|
2
|
+
/**
|
|
3
|
+
* Native workspace evidence attached independently of a compiler input codec.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/common.md#principled-implementation Preserves the producer's metadata and delivery requirements at a usable watch spelling.
|
|
6
|
+
* @evidence contracts/common.md#clear-and-simple-design Attaches workspace observations to a path independently of its compiler state.
|
|
7
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A workspace witness cannot masquerade as a compiler file, tree or predicate codec.
|
|
8
|
+
* @evidence contracts/common.md#meaningful-documentation Describes how this evidence coexists with the input codec.
|
|
9
|
+
* @evidence contracts/portability.md#os-neutral-implementation Witness keys keep the original native spelling, including encoded POSIX bytes.
|
|
10
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms The type declares a carrier with no runtime computation.
|
|
11
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work The observer owns condition reuse.
|
|
12
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources The type allocates no resource.
|
|
13
|
+
*/
|
|
14
|
+
export type TtscWorkspaceWatchEvidence = NonNullable<ITtscCompilerTransformation.ISuccess["workspaceInputs"]>[string];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransformFilesystemOperations.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* Observe the directory and the sources a failed compiler can recover from.
|
|
4
|
+
*
|
|
5
|
+
* A missing or non-directory target has no digest. A directory whose source
|
|
6
|
+
* cannot be read still records its physical target, so making its source
|
|
7
|
+
* readable changes the recovery observation.
|
|
8
|
+
*
|
|
9
|
+
* Capture before compilation can use the compiler's content store under its
|
|
10
|
+
* effective environment. The store owns its clock probes and reuses a digest
|
|
11
|
+
* only while its source metadata qualifies. A cold or unproven reading requires
|
|
12
|
+
* the selected source bytes.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/common.md#principled-implementation The native target and shared source digest distinguish directory appearance, retargeting, and changes to selected files. No Go environment or successful compiler state is inferred.
|
|
15
|
+
* @evidence contracts/common.md#clear-and-simple-design One source observation serves failed delivery, the live observer and detached records.
|
|
16
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Directory availability is checked independently because the build's source digest treats a missing directory like an empty one.
|
|
17
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose explains unavailable targets and unreadable sources, with a blank line before the tags.
|
|
18
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native stat follows directory links, and physical target witnesses retain POSIX bytes. The shared source selector reads native files, so the supplied view must describe the same paths.
|
|
19
|
+
* @evidence contracts/performance.md#efficient-algorithms Unavailable targets cost one stat attempt or a stat and realpath. Available directories pay for the source selector. With a store this includes opening its cache and probing source metadata, with content read on a miss. Direct replay reads selected bytes. Both paths hash the target and source digest text.
|
|
20
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The caller's exact project and effective environment select the existing compiler content store. Store-owned separable source signatures qualify a warm digest; other calls read current bytes.
|
|
21
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The digest and filesystem observations are call-local. The existing content store releases its clock probes and owns the retention of persisted identities.
|
|
22
|
+
*/
|
|
23
|
+
export declare function captureRecoveryTreeDigest(file: string, filesystem?: TtscTransformFilesystemOperations, compiler?: {
|
|
24
|
+
projectRoot: string;
|
|
25
|
+
environment: NodeJS.ProcessEnv;
|
|
26
|
+
}): string | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransformFilesystemOperations.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Observe the directory and the sources a failed compiler can recover from.
|
|
4
|
+
*
|
|
5
|
+
* A missing or non-directory target has no digest. A directory whose source
|
|
6
|
+
* cannot be read still records its physical target, so making its source
|
|
7
|
+
* readable changes the recovery observation.
|
|
8
|
+
*
|
|
9
|
+
* Capture before compilation can use the compiler's content store under its
|
|
10
|
+
* effective environment. The store owns its clock probes and reuses a digest
|
|
11
|
+
* only while its source metadata qualifies. A cold or unproven reading requires
|
|
12
|
+
* the selected source bytes.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/common.md#principled-implementation The native target and shared source digest distinguish directory appearance, retargeting, and changes to selected files. No Go environment or successful compiler state is inferred.
|
|
15
|
+
* @evidence contracts/common.md#clear-and-simple-design One source observation serves failed delivery, the live observer and detached records.
|
|
16
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Directory availability is checked independently because the build's source digest treats a missing directory like an empty one.
|
|
17
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose explains unavailable targets and unreadable sources, with a blank line before the tags.
|
|
18
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native stat follows directory links, and physical target witnesses retain POSIX bytes. The shared source selector reads native files, so the supplied view must describe the same paths.
|
|
19
|
+
* @evidence contracts/performance.md#efficient-algorithms Unavailable targets cost one stat attempt or a stat and realpath. Available directories pay for the source selector. With a store this includes opening its cache and probing source metadata, with content read on a miss. Direct replay reads selected bytes. Both paths hash the target and source digest text.
|
|
20
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The caller's exact project and effective environment select the existing compiler content store. Store-owned separable source signatures qualify a warm digest; other calls read current bytes.
|
|
21
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The digest and filesystem observations are call-local. The existing content store releases its clock probes and owns the retention of persisted identities.
|
|
22
|
+
*/
|
|
23
|
+
export declare function captureRecoveryTreeDigest(file: string, filesystem?: TtscTransformFilesystemOperations, compiler?: {
|
|
24
|
+
projectRoot: string;
|
|
25
|
+
environment: NodeJS.ProcessEnv;
|
|
26
|
+
}): string | null;
|