@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
|
@@ -4,15 +4,13 @@ var path = require('node:path');
|
|
|
4
4
|
var toProjectKey = require('../project/toProjectKey.js');
|
|
5
5
|
var createEnvelopeKeyIndex = require('./createEnvelopeKeyIndex.js');
|
|
6
6
|
var derivationIdentity = require('./derivationIdentity.js');
|
|
7
|
-
var envelopeDerivation = require('./envelopeDerivation.js');
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Extract the absolute, lexical-spelling-deduplicated dependency list for a
|
|
11
10
|
* single file from the compiler result. Mirrors `selectTransformedSource`'s key
|
|
12
11
|
* lookup: fast project-relative match first, then a per-envelope identity
|
|
13
12
|
* index. Distinct lexical aliases must survive so bundlers observe a later
|
|
14
|
-
* symlink or junction retarget.
|
|
15
|
-
* plugin reported nothing.
|
|
13
|
+
* symlink or junction retarget. An absent dependency map yields an empty list.
|
|
16
14
|
*
|
|
17
15
|
* @evidence contracts/common.md#principled-implementation Exact project keys take precedence and a physical-identity index handles alternate producer spellings; returned dependencies resolve against the project root but deduplicate lexically so alias retargeting remains observable.
|
|
18
16
|
* @evidence contracts/common.md#clear-and-simple-design Lookup and list normalization are local stages, while generation ownership, project key semantics and identity indexing stay with their shared helpers.
|
|
@@ -29,21 +27,16 @@ var envelopeDerivation = require('./envelopeDerivation.js');
|
|
|
29
27
|
* temporary entry pairs/normalized arrays drive costs, not only list count.
|
|
30
28
|
* @evidence contracts/performance.md#reuse-equivalent-work The dependency index shares the immutable envelope's producer map and root across deliveries; normalization still returns a fresh array because only keyed lookup, not the final list, is memoized here.
|
|
31
29
|
*/
|
|
32
|
-
function selectFileDependencies(props) {
|
|
33
|
-
if (props.result.type === "exception") {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
const dependencies = props.result.dependencies;
|
|
30
|
+
function selectFileDependencies(state, props, dependencies) {
|
|
37
31
|
if (dependencies === undefined) {
|
|
38
32
|
return [];
|
|
39
33
|
}
|
|
40
|
-
const state = envelopeDerivation.envelopeDerivation(props);
|
|
41
34
|
const key = toProjectKey.toProjectKey(props.projectRoot, props.file, state.identityContext);
|
|
42
35
|
let entries = Object.prototype.hasOwnProperty.call(dependencies, key)
|
|
43
36
|
? dependencies[key]
|
|
44
37
|
: undefined;
|
|
45
38
|
if (entries === undefined) {
|
|
46
|
-
const index = (state.dependencyIndex ??= createEnvelopeKeyIndex.createEnvelopeKeyIndex(state, props.projectRoot, dependencies));
|
|
39
|
+
const index = (state.selection.dependencyIndex ??= createEnvelopeKeyIndex.createEnvelopeKeyIndex(state, props.projectRoot, dependencies));
|
|
47
40
|
entries = index.get(derivationIdentity.derivationIdentity(state, props.file));
|
|
48
41
|
}
|
|
49
42
|
if (!Array.isArray(entries)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectFileDependencies.js","sources":["../../../../src/core/transform/envelope/selectFileDependencies.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"selectFileDependencies.js","sources":["../../../../src/core/transform/envelope/selectFileDependencies.ts"],"sourcesContent":[null],"names":["toProjectKey","createEnvelopeKeyIndex","derivationIdentity"],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;AAqBG;SACa,sBAAsB,CACpC,KAGC,EACD,KAA4C,EAC5C,YAAkE,EAAA;AAElE,IAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,QAAA,OAAO,EAAE;IACX;AACA,IAAA,MAAM,GAAG,GAAGA,yBAAY,CACtB,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,eAAe,CACtB;AACD,IAAA,IAAI,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG;AAClE,UAAE,YAAY,CAAC,GAAG;UAChB,SAAS;AACb,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,KAAK,IAAI,KAAK,CAAC,SAAS,CAAC,eAAe,KAAKC,6CAAsB,CACvE,KAAK,EACL,KAAK,CAAC,WAAW,EACjB,YAAY,CACb,CAAC;AACF,QAAA,OAAO,GAAG,KAAK,CAAC,GAAG,CAACC,qCAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAE5C;IACf;IACA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;AAC3B,QAAA,OAAO,EAAE;IACX;IACA,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;AAC9B,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;QAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACnD;QACF;AACA,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC;AACvD,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YACtB;QACF;AACA,QAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;AAClB,QAAA,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACvB;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -2,15 +2,13 @@ import path from 'node:path';
|
|
|
2
2
|
import { toProjectKey } from '../project/toProjectKey.mjs';
|
|
3
3
|
import { createEnvelopeKeyIndex } from './createEnvelopeKeyIndex.mjs';
|
|
4
4
|
import { derivationIdentity } from './derivationIdentity.mjs';
|
|
5
|
-
import { envelopeDerivation } from './envelopeDerivation.mjs';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Extract the absolute, lexical-spelling-deduplicated dependency list for a
|
|
9
8
|
* single file from the compiler result. Mirrors `selectTransformedSource`'s key
|
|
10
9
|
* lookup: fast project-relative match first, then a per-envelope identity
|
|
11
10
|
* index. Distinct lexical aliases must survive so bundlers observe a later
|
|
12
|
-
* symlink or junction retarget.
|
|
13
|
-
* plugin reported nothing.
|
|
11
|
+
* symlink or junction retarget. An absent dependency map yields an empty list.
|
|
14
12
|
*
|
|
15
13
|
* @evidence contracts/common.md#principled-implementation Exact project keys take precedence and a physical-identity index handles alternate producer spellings; returned dependencies resolve against the project root but deduplicate lexically so alias retargeting remains observable.
|
|
16
14
|
* @evidence contracts/common.md#clear-and-simple-design Lookup and list normalization are local stages, while generation ownership, project key semantics and identity indexing stay with their shared helpers.
|
|
@@ -27,21 +25,16 @@ import { envelopeDerivation } from './envelopeDerivation.mjs';
|
|
|
27
25
|
* temporary entry pairs/normalized arrays drive costs, not only list count.
|
|
28
26
|
* @evidence contracts/performance.md#reuse-equivalent-work The dependency index shares the immutable envelope's producer map and root across deliveries; normalization still returns a fresh array because only keyed lookup, not the final list, is memoized here.
|
|
29
27
|
*/
|
|
30
|
-
function selectFileDependencies(props) {
|
|
31
|
-
if (props.result.type === "exception") {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
const dependencies = props.result.dependencies;
|
|
28
|
+
function selectFileDependencies(state, props, dependencies) {
|
|
35
29
|
if (dependencies === undefined) {
|
|
36
30
|
return [];
|
|
37
31
|
}
|
|
38
|
-
const state = envelopeDerivation(props);
|
|
39
32
|
const key = toProjectKey(props.projectRoot, props.file, state.identityContext);
|
|
40
33
|
let entries = Object.prototype.hasOwnProperty.call(dependencies, key)
|
|
41
34
|
? dependencies[key]
|
|
42
35
|
: undefined;
|
|
43
36
|
if (entries === undefined) {
|
|
44
|
-
const index = (state.dependencyIndex ??= createEnvelopeKeyIndex(state, props.projectRoot, dependencies));
|
|
37
|
+
const index = (state.selection.dependencyIndex ??= createEnvelopeKeyIndex(state, props.projectRoot, dependencies));
|
|
45
38
|
entries = index.get(derivationIdentity(state, props.file));
|
|
46
39
|
}
|
|
47
40
|
if (!Array.isArray(entries)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectFileDependencies.mjs","sources":["../../../../src/core/transform/envelope/selectFileDependencies.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectFileDependencies.mjs","sources":["../../../../src/core/transform/envelope/selectFileDependencies.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAQA;;;;;;;;;;;;;;;;;;;;;AAqBG;SACa,sBAAsB,CACpC,KAGC,EACD,KAA4C,EAC5C,YAAkE,EAAA;AAElE,IAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,QAAA,OAAO,EAAE;IACX;AACA,IAAA,MAAM,GAAG,GAAG,YAAY,CACtB,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,eAAe,CACtB;AACD,IAAA,IAAI,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG;AAClE,UAAE,YAAY,CAAC,GAAG;UAChB,SAAS;AACb,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,KAAK,IAAI,KAAK,CAAC,SAAS,CAAC,eAAe,KAAK,sBAAsB,CACvE,KAAK,EACL,KAAK,CAAC,WAAW,EACjB,YAAY,CACb,CAAC;AACF,QAAA,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAE5C;IACf;IACA,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;AAC3B,QAAA,OAAO,EAAE;IACX;IACA,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;AAC9B,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;QAC3B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACnD;QACF;AACA,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC;AACvD,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YACtB;QACF;AACA,QAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;AAClB,QAAA,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACvB;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
|
/**
|
|
@@ -13,7 +12,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
|
13
12
|
* `complete` drops the reach and globals halves, keeping only the universal
|
|
14
13
|
* config chain: the caller established that the plugin declared its own
|
|
15
14
|
* `dependencies[file]` list the complete replacement for them. Returns an empty
|
|
16
|
-
* list
|
|
15
|
+
* list without an indexed graph.
|
|
17
16
|
*
|
|
18
17
|
* @evidence contracts/common.md#principled-implementation The direct-edge reachability closure plus globals forms the ordinary language-semantic bound, while explicit completeness drops only those two categories and preserves the universal config chain.
|
|
19
18
|
* @evidence contracts/common.md#clear-and-simple-design One completeness branch chooses graph contributions and selectReachableEdges owns traversal; resolver and plugin inputs remain separate selectors because their ownership differs.
|
|
@@ -32,9 +31,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
|
32
31
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
|
|
33
32
|
* Acquires no handle, timer or retained state of its own.
|
|
34
33
|
*/
|
|
35
|
-
export declare function selectGraphInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, props: {
|
|
34
|
+
export declare function selectGraphInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "globals" | "configs"> | undefined, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, props: {
|
|
36
35
|
complete: boolean;
|
|
37
36
|
file: string;
|
|
38
|
-
projectRoot: string;
|
|
39
|
-
result: ITtscCompilerTransformation;
|
|
40
37
|
}): 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
|
/**
|
|
@@ -13,7 +12,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
|
13
12
|
* `complete` drops the reach and globals halves, keeping only the universal
|
|
14
13
|
* config chain: the caller established that the plugin declared its own
|
|
15
14
|
* `dependencies[file]` list the complete replacement for them. Returns an empty
|
|
16
|
-
* list
|
|
15
|
+
* list without an indexed graph.
|
|
17
16
|
*
|
|
18
17
|
* @evidence contracts/common.md#principled-implementation The direct-edge reachability closure plus globals forms the ordinary language-semantic bound, while explicit completeness drops only those two categories and preserves the universal config chain.
|
|
19
18
|
* @evidence contracts/common.md#clear-and-simple-design One completeness branch chooses graph contributions and selectReachableEdges owns traversal; resolver and plugin inputs remain separate selectors because their ownership differs.
|
|
@@ -32,9 +31,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
|
32
31
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
|
|
33
32
|
* Acquires no handle, timer or retained state of its own.
|
|
34
33
|
*/
|
|
35
|
-
export declare function selectGraphInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, props: {
|
|
34
|
+
export declare function selectGraphInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "globals" | "configs"> | undefined, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, props: {
|
|
36
35
|
complete: boolean;
|
|
37
36
|
file: string;
|
|
38
|
-
projectRoot: string;
|
|
39
|
-
result: ITtscCompilerTransformation;
|
|
40
37
|
}): 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
|
/**
|
|
@@ -13,7 +12,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
|
13
12
|
* `complete` drops the reach and globals halves, keeping only the universal
|
|
14
13
|
* config chain: the caller established that the plugin declared its own
|
|
15
14
|
* `dependencies[file]` list the complete replacement for them. Returns an empty
|
|
16
|
-
* list
|
|
15
|
+
* list without an indexed graph.
|
|
17
16
|
*
|
|
18
17
|
* @evidence contracts/common.md#principled-implementation The direct-edge reachability closure plus globals forms the ordinary language-semantic bound, while explicit completeness drops only those two categories and preserves the universal config chain.
|
|
19
18
|
* @evidence contracts/common.md#clear-and-simple-design One completeness branch chooses graph contributions and selectReachableEdges owns traversal; resolver and plugin inputs remain separate selectors because their ownership differs.
|
|
@@ -32,9 +31,7 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes";
|
|
|
32
31
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources
|
|
33
32
|
* Acquires no handle, timer or retained state of its own.
|
|
34
33
|
*/
|
|
35
|
-
export declare function selectGraphInputs(graph: TtscEnvelopeGraphIndexes, state: TtscEnvelopeDerivation, props: {
|
|
34
|
+
export declare function selectGraphInputs(graph: Pick<TtscEnvelopeGraphIndexes, "edges" | "globals" | "configs"> | undefined, state: Pick<TtscEnvelopeDerivation, "identityContext" | "identities">, props: {
|
|
36
35
|
complete: boolean;
|
|
37
36
|
file: string;
|
|
38
|
-
projectRoot: string;
|
|
39
|
-
result: ITtscCompilerTransformation;
|
|
40
37
|
}): string[];
|
|
@@ -14,7 +14,7 @@ var selectReachableEdges = require('./selectReachableEdges.js');
|
|
|
14
14
|
* `complete` drops the reach and globals halves, keeping only the universal
|
|
15
15
|
* config chain: the caller established that the plugin declared its own
|
|
16
16
|
* `dependencies[file]` list the complete replacement for them. Returns an empty
|
|
17
|
-
* list
|
|
17
|
+
* list without an indexed graph.
|
|
18
18
|
*
|
|
19
19
|
* @evidence contracts/common.md#principled-implementation The direct-edge reachability closure plus globals forms the ordinary language-semantic bound, while explicit completeness drops only those two categories and preserves the universal config chain.
|
|
20
20
|
* @evidence contracts/common.md#clear-and-simple-design One completeness branch chooses graph contributions and selectReachableEdges owns traversal; resolver and plugin inputs remain separate selectors because their ownership differs.
|
|
@@ -34,13 +34,14 @@ var selectReachableEdges = require('./selectReachableEdges.js');
|
|
|
34
34
|
* Acquires no handle, timer or retained state of its own.
|
|
35
35
|
*/
|
|
36
36
|
function selectGraphInputs(graph, state, props) {
|
|
37
|
-
if (
|
|
37
|
+
if (graph === undefined) {
|
|
38
38
|
return [];
|
|
39
39
|
}
|
|
40
40
|
const output = [];
|
|
41
41
|
if (!props.complete) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
if (graph.edges.size !== 0)
|
|
43
|
+
for (const entryToAppend of selectReachableEdges.selectReachableEdges(graph, state, props.file))
|
|
44
|
+
output.push(entryToAppend);
|
|
44
45
|
for (const entryToAppend of graph.globals)
|
|
45
46
|
output.push(entryToAppend);
|
|
46
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectGraphInputs.js","sources":["../../../../src/core/transform/envelope/selectGraphInputs.ts"],"sourcesContent":[null],"names":["selectReachableEdges"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"selectGraphInputs.js","sources":["../../../../src/core/transform/envelope/selectGraphInputs.ts"],"sourcesContent":[null],"names":["selectReachableEdges"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;SACa,iBAAiB,CAC/B,KAEa,EACb,KAAqE,EACrE,KAGC,EAAA;AAED,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,QAAA,OAAO,EAAE;IACX;IACA,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;AACnB,QAAA,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;AACxB,YAAA,KAAK,MAAM,aAAa,IAAIA,yCAAoB,CAC9C,KAAK,EACL,KAAK,EACL,KAAK,CAAC,IAAI,CACX;AACC,gBAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;AAC9B,QAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,OAAO;AAAE,YAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;IACvE;AACA,IAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,OAAO;AAAE,QAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;AACrE,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -12,7 +12,7 @@ import { selectReachableEdges } from './selectReachableEdges.mjs';
|
|
|
12
12
|
* `complete` drops the reach and globals halves, keeping only the universal
|
|
13
13
|
* config chain: the caller established that the plugin declared its own
|
|
14
14
|
* `dependencies[file]` list the complete replacement for them. Returns an empty
|
|
15
|
-
* list
|
|
15
|
+
* list without an indexed graph.
|
|
16
16
|
*
|
|
17
17
|
* @evidence contracts/common.md#principled-implementation The direct-edge reachability closure plus globals forms the ordinary language-semantic bound, while explicit completeness drops only those two categories and preserves the universal config chain.
|
|
18
18
|
* @evidence contracts/common.md#clear-and-simple-design One completeness branch chooses graph contributions and selectReachableEdges owns traversal; resolver and plugin inputs remain separate selectors because their ownership differs.
|
|
@@ -32,13 +32,14 @@ import { selectReachableEdges } from './selectReachableEdges.mjs';
|
|
|
32
32
|
* Acquires no handle, timer or retained state of its own.
|
|
33
33
|
*/
|
|
34
34
|
function selectGraphInputs(graph, state, props) {
|
|
35
|
-
if (
|
|
35
|
+
if (graph === undefined) {
|
|
36
36
|
return [];
|
|
37
37
|
}
|
|
38
38
|
const output = [];
|
|
39
39
|
if (!props.complete) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
if (graph.edges.size !== 0)
|
|
41
|
+
for (const entryToAppend of selectReachableEdges(graph, state, props.file))
|
|
42
|
+
output.push(entryToAppend);
|
|
42
43
|
for (const entryToAppend of graph.globals)
|
|
43
44
|
output.push(entryToAppend);
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectGraphInputs.mjs","sources":["../../../../src/core/transform/envelope/selectGraphInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"selectGraphInputs.mjs","sources":["../../../../src/core/transform/envelope/selectGraphInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;SACa,iBAAiB,CAC/B,KAEa,EACb,KAAqE,EACrE,KAGC,EAAA;AAED,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,QAAA,OAAO,EAAE;IACX;IACA,MAAM,MAAM,GAAa,EAAE;AAC3B,IAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;AACnB,QAAA,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;AACxB,YAAA,KAAK,MAAM,aAAa,IAAI,oBAAoB,CAC9C,KAAK,EACL,KAAK,EACL,KAAK,CAAC,IAAI,CACX;AACC,gBAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;AAC9B,QAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,OAAO;AAAE,YAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;IACvE;AACA,IAAA,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,OAAO;AAAE,QAAA,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;AACrE,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -23,5 +23,5 @@ import type { ITtscCompilerTransformation } from "ttsc";
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function selectHostInputs(props: {
|
|
25
25
|
projectRoot: string;
|
|
26
|
-
result: ITtscCompilerTransformation
|
|
26
|
+
result: Pick<ITtscCompilerTransformation.ISuccess | ITtscCompilerTransformation.IFailure, "type" | "hostInputs" | "workspaceInputs"> | Pick<ITtscCompilerTransformation.IException, "type">;
|
|
27
27
|
}): string[];
|
|
@@ -23,5 +23,5 @@ import type { ITtscCompilerTransformation } from "ttsc";
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function selectHostInputs(props: {
|
|
25
25
|
projectRoot: string;
|
|
26
|
-
result: ITtscCompilerTransformation
|
|
26
|
+
result: Pick<ITtscCompilerTransformation.ISuccess | ITtscCompilerTransformation.IFailure, "type" | "hostInputs" | "workspaceInputs"> | Pick<ITtscCompilerTransformation.IException, "type">;
|
|
27
27
|
}): string[];
|
|
@@ -23,5 +23,5 @@ import type { ITtscCompilerTransformation } from "ttsc";
|
|
|
23
23
|
*/
|
|
24
24
|
export declare function selectHostInputs(props: {
|
|
25
25
|
projectRoot: string;
|
|
26
|
-
result: ITtscCompilerTransformation
|
|
26
|
+
result: Pick<ITtscCompilerTransformation.ISuccess | ITtscCompilerTransformation.IFailure, "type" | "hostInputs" | "workspaceInputs"> | Pick<ITtscCompilerTransformation.IException, "type">;
|
|
27
27
|
}): string[];
|
|
@@ -27,7 +27,10 @@ var selectListedFiles = require('./selectListedFiles.js');
|
|
|
27
27
|
function selectHostInputs(props) {
|
|
28
28
|
return props.result.type === "exception"
|
|
29
29
|
? []
|
|
30
|
-
:
|
|
30
|
+
: [
|
|
31
|
+
...selectListedFiles.selectListedFiles(props.projectRoot, props.result.hostInputs),
|
|
32
|
+
...Object.keys(props.result.workspaceInputs ?? {}),
|
|
33
|
+
];
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
exports.selectHostInputs = selectHostInputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectHostInputs.js","sources":["../../../../src/core/transform/envelope/selectHostInputs.ts"],"sourcesContent":[null],"names":["selectListedFiles"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"selectHostInputs.js","sources":["../../../../src/core/transform/envelope/selectHostInputs.ts"],"sourcesContent":[null],"names":["selectListedFiles"],"mappings":";;;;AAIA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,gBAAgB,CAAC,KAShC,EAAA;AACC,IAAA,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK;AAC3B,UAAE;AACF,UAAE;YACE,GAAGA,mCAAiB,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;YAChE,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;SACnD;AACP;;;;"}
|
|
@@ -25,7 +25,10 @@ import { selectListedFiles } from './selectListedFiles.mjs';
|
|
|
25
25
|
function selectHostInputs(props) {
|
|
26
26
|
return props.result.type === "exception"
|
|
27
27
|
? []
|
|
28
|
-
:
|
|
28
|
+
: [
|
|
29
|
+
...selectListedFiles(props.projectRoot, props.result.hostInputs),
|
|
30
|
+
...Object.keys(props.result.workspaceInputs ?? {}),
|
|
31
|
+
];
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
export { selectHostInputs };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectHostInputs.mjs","sources":["../../../../src/core/transform/envelope/selectHostInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"selectHostInputs.mjs","sources":["../../../../src/core/transform/envelope/selectHostInputs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,gBAAgB,CAAC,KAShC,EAAA;AACC,IAAA,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK;AAC3B,UAAE;AACF,UAAE;YACE,GAAG,iBAAiB,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC;YAChE,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;SACnD;AACP;;;;"}
|
|
@@ -17,15 +17,15 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
17
17
|
* link retargeting cannot leave observers attached only to the old target.
|
|
18
18
|
*
|
|
19
19
|
* A chain that does not reach a captured project root before the
|
|
20
|
-
* filesystem-root stopping condition retains direct probing.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* notifications and release.
|
|
20
|
+
* filesystem-root stopping condition retains direct probing. A backend that can
|
|
21
|
+
* allocate a watch per directory declines selections past 512 lexical parent
|
|
22
|
+
* locations. The native recursive broker opens one project-root watch for the
|
|
23
|
+
* whole selection, so its directory count does not consume handles. The tracker
|
|
24
|
+
* owns actual watcher acquisition, notifications and release.
|
|
25
25
|
*
|
|
26
26
|
* @evidence contracts/common.md#principled-implementation Exact failed file predicates select unavailable resolver names, while the lexical ancestor chain witnesses component creation and retargeting; selections outside the root retain direct probes because their chain cannot be covered by project-local watchers.
|
|
27
27
|
* @evidence contracts/common.md#clear-and-simple-design Separate candidate and ancestor sets expose probe-replacement names versus required watcher paths; resource acquisition remains with the tracker instead of occurring during envelope selection.
|
|
28
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The
|
|
28
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The per-directory bound leaves direct validation active instead of claiming partial watch coverage. Native recursion only exempts the allocation bound; actual proof still requires acquired, verified observations.
|
|
29
29
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs distinguish not-file from missing, candidate versus watched lists, root coverage, the population bound and tracker ownership; acknowledgments are separate under the documentation skill.
|
|
30
30
|
* @evidence contracts/portability.md#os-neutral-implementation Native dirname/resolve and lexical containment against captured named/physical roots derive ancestor spellings on the host. Path grammar containment is not a certificate of filesystem case or notification coverage; the tracker owns that native admission. Physical identity excludes the temporary input without collapsing alias watcher names, and supplied/result-derived views must remain coherent.
|
|
31
31
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
@@ -35,7 +35,8 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
35
35
|
* chain deduplication limits appended components. Cost includes path/root
|
|
36
36
|
* text, chain depth, cold native identity/existence work and two final string
|
|
37
37
|
* sorts. Candidate, component and directory populations allocate storage
|
|
38
|
-
* before the 512-directory rejection, so that limit does
|
|
38
|
+
* before the backend-specific 512-directory rejection, so that limit does
|
|
39
|
+
* not bound scan cost.
|
|
39
40
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
40
41
|
* Seen suppresses repeated candidate admission after predicate/path work;
|
|
41
42
|
* chain suppresses repeated component output after constructing the chain.
|
|
@@ -17,15 +17,15 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
17
17
|
* link retargeting cannot leave observers attached only to the old target.
|
|
18
18
|
*
|
|
19
19
|
* A chain that does not reach a captured project root before the
|
|
20
|
-
* filesystem-root stopping condition retains direct probing.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* notifications and release.
|
|
20
|
+
* filesystem-root stopping condition retains direct probing. A backend that can
|
|
21
|
+
* allocate a watch per directory declines selections past 512 lexical parent
|
|
22
|
+
* locations. The native recursive broker opens one project-root watch for the
|
|
23
|
+
* whole selection, so its directory count does not consume handles. The tracker
|
|
24
|
+
* owns actual watcher acquisition, notifications and release.
|
|
25
25
|
*
|
|
26
26
|
* @evidence contracts/common.md#principled-implementation Exact failed file predicates select unavailable resolver names, while the lexical ancestor chain witnesses component creation and retargeting; selections outside the root retain direct probes because their chain cannot be covered by project-local watchers.
|
|
27
27
|
* @evidence contracts/common.md#clear-and-simple-design Separate candidate and ancestor sets expose probe-replacement names versus required watcher paths; resource acquisition remains with the tracker instead of occurring during envelope selection.
|
|
28
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The
|
|
28
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The per-directory bound leaves direct validation active instead of claiming partial watch coverage. Native recursion only exempts the allocation bound; actual proof still requires acquired, verified observations.
|
|
29
29
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs distinguish not-file from missing, candidate versus watched lists, root coverage, the population bound and tracker ownership; acknowledgments are separate under the documentation skill.
|
|
30
30
|
* @evidence contracts/portability.md#os-neutral-implementation Native dirname/resolve and lexical containment against captured named/physical roots derive ancestor spellings on the host. Path grammar containment is not a certificate of filesystem case or notification coverage; the tracker owns that native admission. Physical identity excludes the temporary input without collapsing alias watcher names, and supplied/result-derived views must remain coherent.
|
|
31
31
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
@@ -35,7 +35,8 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
35
35
|
* chain deduplication limits appended components. Cost includes path/root
|
|
36
36
|
* text, chain depth, cold native identity/existence work and two final string
|
|
37
37
|
* sorts. Candidate, component and directory populations allocate storage
|
|
38
|
-
* before the 512-directory rejection, so that limit does
|
|
38
|
+
* before the backend-specific 512-directory rejection, so that limit does
|
|
39
|
+
* not bound scan cost.
|
|
39
40
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
40
41
|
* Seen suppresses repeated candidate admission after predicate/path work;
|
|
41
42
|
* chain suppresses repeated component output after constructing the chain.
|
|
@@ -17,15 +17,15 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
17
17
|
* link retargeting cannot leave observers attached only to the old target.
|
|
18
18
|
*
|
|
19
19
|
* A chain that does not reach a captured project root before the
|
|
20
|
-
* filesystem-root stopping condition retains direct probing.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* notifications and release.
|
|
20
|
+
* filesystem-root stopping condition retains direct probing. A backend that can
|
|
21
|
+
* allocate a watch per directory declines selections past 512 lexical parent
|
|
22
|
+
* locations. The native recursive broker opens one project-root watch for the
|
|
23
|
+
* whole selection, so its directory count does not consume handles. The tracker
|
|
24
|
+
* owns actual watcher acquisition, notifications and release.
|
|
25
25
|
*
|
|
26
26
|
* @evidence contracts/common.md#principled-implementation Exact failed file predicates select unavailable resolver names, while the lexical ancestor chain witnesses component creation and retargeting; selections outside the root retain direct probes because their chain cannot be covered by project-local watchers.
|
|
27
27
|
* @evidence contracts/common.md#clear-and-simple-design Separate candidate and ancestor sets expose probe-replacement names versus required watcher paths; resource acquisition remains with the tracker instead of occurring during envelope selection.
|
|
28
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The
|
|
28
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The per-directory bound leaves direct validation active instead of claiming partial watch coverage. Native recursion only exempts the allocation bound; actual proof still requires acquired, verified observations.
|
|
29
29
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs distinguish not-file from missing, candidate versus watched lists, root coverage, the population bound and tracker ownership; acknowledgments are separate under the documentation skill.
|
|
30
30
|
* @evidence contracts/portability.md#os-neutral-implementation Native dirname/resolve and lexical containment against captured named/physical roots derive ancestor spellings on the host. Path grammar containment is not a certificate of filesystem case or notification coverage; the tracker owns that native admission. Physical identity excludes the temporary input without collapsing alias watcher names, and supplied/result-derived views must remain coherent.
|
|
31
31
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
@@ -35,7 +35,8 @@ import type { TtscTransformFilesystemOperations } from "../filesystem/TtscTransf
|
|
|
35
35
|
* chain deduplication limits appended components. Cost includes path/root
|
|
36
36
|
* text, chain depth, cold native identity/existence work and two final string
|
|
37
37
|
* sorts. Candidate, component and directory populations allocate storage
|
|
38
|
-
* before the 512-directory rejection, so that limit does
|
|
38
|
+
* before the backend-specific 512-directory rejection, so that limit does
|
|
39
|
+
* not bound scan cost.
|
|
39
40
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
40
41
|
* Seen suppresses repeated candidate admission after predicate/path work;
|
|
41
42
|
* chain suppresses repeated component output after constructing the chain.
|
|
@@ -4,6 +4,7 @@ var path = require('node:path');
|
|
|
4
4
|
var createHostPathIdentityContext = require('../filesystem/createHostPathIdentityContext.js');
|
|
5
5
|
var pathIdentityKey = require('../filesystem/pathIdentityKey.js');
|
|
6
6
|
var relativeToProject = require('../filesystem/relativeToProject.js');
|
|
7
|
+
var usesWatchBroker = require('../tracker/broker/usesWatchBroker.js');
|
|
7
8
|
var isTransformScratchInput = require('../tsconfig/isTransformScratchInput.js');
|
|
8
9
|
var envelopeDerivation = require('./envelopeDerivation.js');
|
|
9
10
|
var envelopeGraphIndexes = require('./envelopeGraphIndexes.js');
|
|
@@ -26,15 +27,15 @@ var generationCaseSensitivity = require('./generationCaseSensitivity.js');
|
|
|
26
27
|
* link retargeting cannot leave observers attached only to the old target.
|
|
27
28
|
*
|
|
28
29
|
* A chain that does not reach a captured project root before the
|
|
29
|
-
* filesystem-root stopping condition retains direct probing.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* notifications and release.
|
|
30
|
+
* filesystem-root stopping condition retains direct probing. A backend that can
|
|
31
|
+
* allocate a watch per directory declines selections past 512 lexical parent
|
|
32
|
+
* locations. The native recursive broker opens one project-root watch for the
|
|
33
|
+
* whole selection, so its directory count does not consume handles. The tracker
|
|
34
|
+
* owns actual watcher acquisition, notifications and release.
|
|
34
35
|
*
|
|
35
36
|
* @evidence contracts/common.md#principled-implementation Exact failed file predicates select unavailable resolver names, while the lexical ancestor chain witnesses component creation and retargeting; selections outside the root retain direct probes because their chain cannot be covered by project-local watchers.
|
|
36
37
|
* @evidence contracts/common.md#clear-and-simple-design Separate candidate and ancestor sets expose probe-replacement names versus required watcher paths; resource acquisition remains with the tracker instead of occurring during envelope selection.
|
|
37
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The
|
|
38
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The per-directory bound leaves direct validation active instead of claiming partial watch coverage. Native recursion only exempts the allocation bound; actual proof still requires acquired, verified observations.
|
|
38
39
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs distinguish not-file from missing, candidate versus watched lists, root coverage, the population bound and tracker ownership; acknowledgments are separate under the documentation skill.
|
|
39
40
|
* @evidence contracts/portability.md#os-neutral-implementation Native dirname/resolve and lexical containment against captured named/physical roots derive ancestor spellings on the host. Path grammar containment is not a certificate of filesystem case or notification coverage; the tracker owns that native admission. Physical identity excludes the temporary input without collapsing alias watcher names, and supplied/result-derived views must remain coherent.
|
|
40
41
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
@@ -44,7 +45,8 @@ var generationCaseSensitivity = require('./generationCaseSensitivity.js');
|
|
|
44
45
|
* chain deduplication limits appended components. Cost includes path/root
|
|
45
46
|
* text, chain depth, cold native identity/existence work and two final string
|
|
46
47
|
* sorts. Candidate, component and directory populations allocate storage
|
|
47
|
-
* before the 512-directory rejection, so that limit does
|
|
48
|
+
* before the backend-specific 512-directory rejection, so that limit does
|
|
49
|
+
* not bound scan cost.
|
|
48
50
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
49
51
|
* Seen suppresses repeated candidate admission after predicate/path work;
|
|
50
52
|
* chain suppresses repeated component output after constructing the chain.
|
|
@@ -154,7 +156,8 @@ function selectNotifiableAbsentInputs(props) {
|
|
|
154
156
|
directories.add(path.dirname(spelling));
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
if (directories.size > NOTIFIABLE_ABSENCE_DIRECTORY_LIMIT
|
|
159
|
+
if (directories.size > NOTIFIABLE_ABSENCE_DIRECTORY_LIMIT &&
|
|
160
|
+
!usesWatchBroker.usesWatchBroker(props.filesystem)) {
|
|
158
161
|
// Decline the whole candidate selection past the lexical directory policy
|
|
159
162
|
// limit. Returning partial names would claim only part of the intended
|
|
160
163
|
// chain; an empty selection leaves direct candidate validation active.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectNotifiableAbsentInputs.js","sources":["../../../../src/core/transform/envelope/selectNotifiableAbsentInputs.ts"],"sourcesContent":[null],"names":["createHostPathIdentityContext","generationCaseSensitivity","envelopeDerivation","envelopeGraphIndexes","pathIdentityKey","isTransformScratchInput","relativeToProject"],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectNotifiableAbsentInputs.js","sources":["../../../../src/core/transform/envelope/selectNotifiableAbsentInputs.ts"],"sourcesContent":[null],"names":["createHostPathIdentityContext","generationCaseSensitivity","envelopeDerivation","envelopeGraphIndexes","pathIdentityKey","isTransformScratchInput","relativeToProject","usesWatchBroker"],"mappings":"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"}
|
|
@@ -2,6 +2,7 @@ import path from 'node:path';
|
|
|
2
2
|
import { createHostPathIdentityContext } from '../filesystem/createHostPathIdentityContext.mjs';
|
|
3
3
|
import { pathIdentityKey } from '../filesystem/pathIdentityKey.mjs';
|
|
4
4
|
import { relativeToProject } from '../filesystem/relativeToProject.mjs';
|
|
5
|
+
import { usesWatchBroker } from '../tracker/broker/usesWatchBroker.mjs';
|
|
5
6
|
import { isTransformScratchInput } from '../tsconfig/isTransformScratchInput.mjs';
|
|
6
7
|
import { envelopeDerivation } from './envelopeDerivation.mjs';
|
|
7
8
|
import { envelopeGraphIndexes } from './envelopeGraphIndexes.mjs';
|
|
@@ -24,15 +25,15 @@ import { generationCaseSensitivity } from './generationCaseSensitivity.mjs';
|
|
|
24
25
|
* link retargeting cannot leave observers attached only to the old target.
|
|
25
26
|
*
|
|
26
27
|
* A chain that does not reach a captured project root before the
|
|
27
|
-
* filesystem-root stopping condition retains direct probing.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* notifications and release.
|
|
28
|
+
* filesystem-root stopping condition retains direct probing. A backend that can
|
|
29
|
+
* allocate a watch per directory declines selections past 512 lexical parent
|
|
30
|
+
* locations. The native recursive broker opens one project-root watch for the
|
|
31
|
+
* whole selection, so its directory count does not consume handles. The tracker
|
|
32
|
+
* owns actual watcher acquisition, notifications and release.
|
|
32
33
|
*
|
|
33
34
|
* @evidence contracts/common.md#principled-implementation Exact failed file predicates select unavailable resolver names, while the lexical ancestor chain witnesses component creation and retargeting; selections outside the root retain direct probes because their chain cannot be covered by project-local watchers.
|
|
34
35
|
* @evidence contracts/common.md#clear-and-simple-design Separate candidate and ancestor sets expose probe-replacement names versus required watcher paths; resource acquisition remains with the tracker instead of occurring during envelope selection.
|
|
35
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts The
|
|
36
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The per-directory bound leaves direct validation active instead of claiming partial watch coverage. Native recursion only exempts the allocation bound; actual proof still requires acquired, verified observations.
|
|
36
37
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs distinguish not-file from missing, candidate versus watched lists, root coverage, the population bound and tracker ownership; acknowledgments are separate under the documentation skill.
|
|
37
38
|
* @evidence contracts/portability.md#os-neutral-implementation Native dirname/resolve and lexical containment against captured named/physical roots derive ancestor spellings on the host. Path grammar containment is not a certificate of filesystem case or notification coverage; the tracker owns that native admission. Physical identity excludes the temporary input without collapsing alias watcher names, and supplied/result-derived views must remain coherent.
|
|
38
39
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
@@ -42,7 +43,8 @@ import { generationCaseSensitivity } from './generationCaseSensitivity.mjs';
|
|
|
42
43
|
* chain deduplication limits appended components. Cost includes path/root
|
|
43
44
|
* text, chain depth, cold native identity/existence work and two final string
|
|
44
45
|
* sorts. Candidate, component and directory populations allocate storage
|
|
45
|
-
* before the 512-directory rejection, so that limit does
|
|
46
|
+
* before the backend-specific 512-directory rejection, so that limit does
|
|
47
|
+
* not bound scan cost.
|
|
46
48
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
47
49
|
* Seen suppresses repeated candidate admission after predicate/path work;
|
|
48
50
|
* chain suppresses repeated component output after constructing the chain.
|
|
@@ -152,7 +154,8 @@ function selectNotifiableAbsentInputs(props) {
|
|
|
152
154
|
directories.add(path.dirname(spelling));
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
|
-
if (directories.size > NOTIFIABLE_ABSENCE_DIRECTORY_LIMIT
|
|
157
|
+
if (directories.size > NOTIFIABLE_ABSENCE_DIRECTORY_LIMIT &&
|
|
158
|
+
!usesWatchBroker(props.filesystem)) {
|
|
156
159
|
// Decline the whole candidate selection past the lexical directory policy
|
|
157
160
|
// limit. Returning partial names would claim only part of the intended
|
|
158
161
|
// chain; an empty selection leaves direct candidate validation active.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectNotifiableAbsentInputs.mjs","sources":["../../../../src/core/transform/envelope/selectNotifiableAbsentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selectNotifiableAbsentInputs.mjs","sources":["../../../../src/core/transform/envelope/selectNotifiableAbsentInputs.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -19,4 +19,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.cjs";
|
|
|
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[];
|
|
@@ -19,4 +19,4 @@ import type { TtscEnvelopeGraphIndexes } from "./TtscEnvelopeGraphIndexes.mjs";
|
|
|
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[];
|