@fluidframework/container-runtime 2.0.0-internal.8.0.1 → 2.0.0-rc.1.0.1
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/CHANGELOG.md +34 -0
- package/README.md +1 -7
- package/api-extractor-esm.json +4 -0
- package/api-extractor-lint.json +1 -10
- package/api-extractor.json +1 -9
- package/api-report/container-runtime.api.md +18 -17
- package/dist/blobManager.d.ts +8 -3
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +15 -4
- package/dist/blobManager.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +265 -17
- package/dist/container-runtime-beta.d.ts +0 -42
- package/dist/container-runtime-public.d.ts +0 -42
- package/dist/container-runtime-untrimmed.d.ts +32 -17
- package/dist/containerRuntime.d.ts +8 -4
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +15 -29
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStoreContext.d.ts +5 -2
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +10 -3
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStores.d.ts +10 -3
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +51 -8
- package/dist/dataStores.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +15 -4
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcConfigs.d.ts.map +1 -1
- package/dist/gc/gcConfigs.js +26 -19
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +29 -6
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js +5 -3
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +13 -6
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.js +18 -9
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/gc/index.d.ts +1 -1
- package/dist/gc/index.d.ts.map +1 -1
- package/dist/gc/index.js +2 -1
- package/dist/gc/index.js.map +1 -1
- package/dist/messageTypes.d.ts +1 -1
- package/dist/messageTypes.js +1 -1
- package/dist/messageTypes.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +1 -1
- package/dist/opLifecycle/definitions.d.ts.map +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +4 -4
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +4 -1
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts +1 -1
- package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/dist/summary/runningSummarizer.d.ts +5 -0
- package/dist/summary/runningSummarizer.d.ts.map +1 -1
- package/dist/summary/runningSummarizer.js +46 -17
- package/dist/summary/runningSummarizer.js.map +1 -1
- package/dist/summary/summarizer.d.ts +1 -1
- package/dist/summary/summarizer.js +1 -1
- package/dist/summary/summarizer.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +3 -1
- package/dist/summary/summarizerTypes.d.ts.map +1 -1
- package/dist/summary/summarizerTypes.js.map +1 -1
- package/dist/summary/summaryCollection.d.ts +7 -7
- package/dist/summary/summaryCollection.js +1 -1
- package/dist/summary/summaryCollection.js.map +1 -1
- package/lib/{batchTracker.d.ts → batchTracker.d.mts} +1 -1
- package/lib/batchTracker.d.mts.map +1 -0
- package/lib/{batchTracker.js → batchTracker.mjs} +1 -1
- package/lib/batchTracker.mjs.map +1 -0
- package/lib/{blobManager.d.ts → blobManager.d.mts} +9 -4
- package/lib/blobManager.d.mts.map +1 -0
- package/lib/{blobManager.js → blobManager.mjs} +17 -6
- package/lib/blobManager.mjs.map +1 -0
- package/lib/{connectionTelemetry.d.ts → connectionTelemetry.d.mts} +1 -1
- package/lib/connectionTelemetry.d.mts.map +1 -0
- package/lib/{connectionTelemetry.js → connectionTelemetry.mjs} +1 -1
- package/lib/connectionTelemetry.mjs.map +1 -0
- package/lib/{container-runtime-alpha.d.ts → container-runtime-alpha.d.mts} +265 -17
- package/lib/{container-runtime-beta.d.ts → container-runtime-beta.d.mts} +0 -42
- package/lib/{container-runtime-public.d.ts → container-runtime-public.d.mts} +0 -42
- package/lib/{container-runtime-untrimmed.d.ts → container-runtime-untrimmed.d.mts} +32 -17
- package/lib/{containerHandleContext.d.ts → containerHandleContext.d.mts} +2 -2
- package/lib/containerHandleContext.d.mts.map +1 -0
- package/lib/{containerHandleContext.js → containerHandleContext.mjs} +1 -1
- package/lib/containerHandleContext.mjs.map +1 -0
- package/lib/{containerRuntime.d.ts → containerRuntime.d.mts} +14 -14
- package/lib/containerRuntime.d.mts.map +1 -0
- package/lib/{containerRuntime.js → containerRuntime.mjs} +31 -22
- package/lib/containerRuntime.mjs.map +1 -0
- package/lib/{dataStore.d.ts → dataStore.d.mts} +3 -3
- package/lib/dataStore.d.mts.map +1 -0
- package/lib/{dataStore.js → dataStore.mjs} +1 -1
- package/lib/dataStore.mjs.map +1 -0
- package/lib/{dataStoreContext.d.ts → dataStoreContext.d.mts} +7 -4
- package/lib/dataStoreContext.d.mts.map +1 -0
- package/lib/{dataStoreContext.js → dataStoreContext.mjs} +13 -6
- package/lib/dataStoreContext.mjs.map +1 -0
- package/lib/{dataStoreContexts.d.ts → dataStoreContexts.d.mts} +2 -2
- package/lib/dataStoreContexts.d.mts.map +1 -0
- package/lib/{dataStoreContexts.js → dataStoreContexts.mjs} +1 -1
- package/lib/dataStoreContexts.mjs.map +1 -0
- package/lib/{dataStoreRegistry.d.ts → dataStoreRegistry.d.mts} +1 -1
- package/lib/dataStoreRegistry.d.mts.map +1 -0
- package/lib/{dataStoreRegistry.js → dataStoreRegistry.mjs} +1 -5
- package/lib/dataStoreRegistry.mjs.map +1 -0
- package/lib/{dataStores.d.ts → dataStores.d.mts} +17 -10
- package/lib/dataStores.d.mts.map +1 -0
- package/lib/{dataStores.js → dataStores.mjs} +58 -16
- package/lib/dataStores.mjs.map +1 -0
- package/lib/{deltaManagerProxyBase.d.ts → deltaManagerProxyBase.d.mts} +1 -1
- package/lib/deltaManagerProxyBase.d.mts.map +1 -0
- package/lib/{deltaManagerProxyBase.js → deltaManagerProxyBase.mjs} +1 -1
- package/lib/deltaManagerProxyBase.mjs.map +1 -0
- package/lib/{deltaManagerSummarizerProxy.d.ts → deltaManagerSummarizerProxy.d.mts} +2 -2
- package/lib/deltaManagerSummarizerProxy.d.mts.map +1 -0
- package/lib/{deltaManagerSummarizerProxy.js → deltaManagerSummarizerProxy.mjs} +3 -3
- package/lib/deltaManagerSummarizerProxy.mjs.map +1 -0
- package/lib/{deltaScheduler.d.ts → deltaScheduler.d.mts} +1 -1
- package/lib/deltaScheduler.d.mts.map +1 -0
- package/lib/{deltaScheduler.js → deltaScheduler.mjs} +1 -1
- package/lib/deltaScheduler.mjs.map +1 -0
- package/lib/{error.d.ts → error.d.mts} +1 -1
- package/lib/error.d.mts.map +1 -0
- package/lib/{error.js → error.mjs} +1 -1
- package/lib/error.mjs.map +1 -0
- package/lib/gc/{garbageCollection.d.ts → garbageCollection.d.mts} +5 -5
- package/lib/gc/garbageCollection.d.mts.map +1 -0
- package/lib/gc/{garbageCollection.js → garbageCollection.mjs} +28 -17
- package/lib/gc/garbageCollection.mjs.map +1 -0
- package/lib/gc/{gcConfigs.d.ts → gcConfigs.d.mts} +3 -3
- package/lib/gc/gcConfigs.d.mts.map +1 -0
- package/lib/gc/{gcConfigs.js → gcConfigs.mjs} +29 -22
- package/lib/gc/gcConfigs.mjs.map +1 -0
- package/lib/gc/{gcDefinitions.d.ts → gcDefinitions.d.mts} +33 -10
- package/lib/gc/gcDefinitions.d.mts.map +1 -0
- package/lib/gc/{gcDefinitions.js → gcDefinitions.mjs} +5 -3
- package/lib/gc/gcDefinitions.mjs.map +1 -0
- package/lib/gc/{gcHelpers.d.ts → gcHelpers.d.mts} +3 -3
- package/lib/gc/{gcHelpers.d.ts.map → gcHelpers.d.mts.map} +1 -1
- package/lib/gc/{gcHelpers.js → gcHelpers.mjs} +1 -1
- package/lib/gc/gcHelpers.mjs.map +1 -0
- package/lib/gc/{gcReferenceGraphAlgorithm.d.ts → gcReferenceGraphAlgorithm.d.mts} +2 -2
- package/lib/gc/gcReferenceGraphAlgorithm.d.mts.map +1 -0
- package/lib/gc/{gcReferenceGraphAlgorithm.js → gcReferenceGraphAlgorithm.mjs} +1 -1
- package/lib/gc/gcReferenceGraphAlgorithm.mjs.map +1 -0
- package/lib/gc/{gcSummaryDefinitions.d.ts → gcSummaryDefinitions.d.mts} +1 -1
- package/lib/gc/gcSummaryDefinitions.d.mts.map +1 -0
- package/lib/gc/{gcSummaryDefinitions.js → gcSummaryDefinitions.mjs} +1 -1
- package/lib/gc/gcSummaryDefinitions.mjs.map +1 -0
- package/lib/gc/{gcSummaryStateTracker.d.ts → gcSummaryStateTracker.d.mts} +4 -4
- package/lib/gc/gcSummaryStateTracker.d.mts.map +1 -0
- package/lib/gc/{gcSummaryStateTracker.js → gcSummaryStateTracker.mjs} +2 -2
- package/lib/gc/gcSummaryStateTracker.mjs.map +1 -0
- package/lib/gc/{gcTelemetry.d.ts → gcTelemetry.d.mts} +18 -11
- package/lib/gc/gcTelemetry.d.mts.map +1 -0
- package/lib/gc/{gcTelemetry.js → gcTelemetry.mjs} +20 -11
- package/lib/gc/gcTelemetry.mjs.map +1 -0
- package/lib/gc/{gcUnreferencedStateTracker.d.ts → gcUnreferencedStateTracker.d.mts} +2 -2
- package/lib/gc/gcUnreferencedStateTracker.d.mts.map +1 -0
- package/lib/gc/{gcUnreferencedStateTracker.js → gcUnreferencedStateTracker.mjs} +2 -2
- package/lib/gc/gcUnreferencedStateTracker.mjs.map +1 -0
- package/lib/gc/{index.d.ts → index.d.mts} +9 -9
- package/lib/gc/index.d.mts.map +1 -0
- package/lib/gc/{index.js → index.mjs} +8 -8
- package/lib/gc/index.mjs.map +1 -0
- package/lib/{index.d.ts → index.d.mts} +8 -8
- package/lib/index.d.mts.map +1 -0
- package/lib/{index.js → index.mjs} +7 -9
- package/lib/index.mjs.map +1 -0
- package/lib/{messageTypes.d.ts → messageTypes.d.mts} +5 -5
- package/lib/messageTypes.d.mts.map +1 -0
- package/lib/{messageTypes.js → messageTypes.mjs} +2 -2
- package/lib/messageTypes.mjs.map +1 -0
- package/lib/{metadata.d.ts → metadata.d.mts} +1 -1
- package/lib/metadata.d.mts.map +1 -0
- package/lib/{metadata.js → metadata.mjs} +1 -1
- package/lib/metadata.mjs.map +1 -0
- package/lib/opLifecycle/{batchManager.d.ts → batchManager.d.mts} +3 -3
- package/lib/opLifecycle/batchManager.d.mts.map +1 -0
- package/lib/opLifecycle/{batchManager.js → batchManager.mjs} +1 -1
- package/lib/opLifecycle/batchManager.mjs.map +1 -0
- package/lib/opLifecycle/{definitions.d.ts → definitions.d.mts} +3 -3
- package/lib/opLifecycle/definitions.d.mts.map +1 -0
- package/lib/opLifecycle/{definitions.js → definitions.mjs} +1 -1
- package/lib/opLifecycle/definitions.mjs.map +1 -0
- package/lib/opLifecycle/index.d.mts +13 -0
- package/lib/opLifecycle/index.d.mts.map +1 -0
- package/lib/opLifecycle/index.mjs +12 -0
- package/lib/opLifecycle/index.mjs.map +1 -0
- package/lib/opLifecycle/{opCompressor.d.ts → opCompressor.d.mts} +2 -2
- package/lib/opLifecycle/opCompressor.d.mts.map +1 -0
- package/lib/opLifecycle/{opCompressor.js → opCompressor.mjs} +3 -3
- package/lib/opLifecycle/opCompressor.mjs.map +1 -0
- package/lib/opLifecycle/{opDecompressor.d.ts → opDecompressor.d.mts} +2 -2
- package/lib/opLifecycle/opDecompressor.d.mts.map +1 -0
- package/lib/opLifecycle/{opDecompressor.js → opDecompressor.mjs} +2 -2
- package/lib/opLifecycle/opDecompressor.mjs.map +1 -0
- package/lib/opLifecycle/{opGroupingManager.d.ts → opGroupingManager.d.mts} +2 -2
- package/lib/opLifecycle/opGroupingManager.d.mts.map +1 -0
- package/lib/opLifecycle/{opGroupingManager.js → opGroupingManager.mjs} +1 -1
- package/lib/opLifecycle/opGroupingManager.mjs.map +1 -0
- package/lib/opLifecycle/{opSplitter.d.ts → opSplitter.d.mts} +2 -2
- package/lib/opLifecycle/opSplitter.d.mts.map +1 -0
- package/lib/opLifecycle/{opSplitter.js → opSplitter.mjs} +3 -3
- package/lib/opLifecycle/opSplitter.mjs.map +1 -0
- package/lib/opLifecycle/{outbox.d.ts → outbox.d.mts} +11 -11
- package/lib/opLifecycle/outbox.d.mts.map +1 -0
- package/lib/opLifecycle/{outbox.js → outbox.mjs} +6 -3
- package/lib/opLifecycle/outbox.mjs.map +1 -0
- package/lib/opLifecycle/{remoteMessageProcessor.d.ts → remoteMessageProcessor.d.mts} +5 -5
- package/lib/opLifecycle/remoteMessageProcessor.d.mts.map +1 -0
- package/lib/opLifecycle/{remoteMessageProcessor.js → remoteMessageProcessor.mjs} +2 -2
- package/lib/opLifecycle/remoteMessageProcessor.mjs.map +1 -0
- package/lib/{opProperties.d.ts → opProperties.d.mts} +1 -1
- package/lib/opProperties.d.mts.map +1 -0
- package/lib/{opProperties.js → opProperties.mjs} +1 -1
- package/lib/opProperties.mjs.map +1 -0
- package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
- package/lib/packageVersion.d.mts.map +1 -0
- package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
- package/lib/packageVersion.mjs.map +1 -0
- package/lib/{pendingStateManager.d.ts → pendingStateManager.d.mts} +2 -2
- package/lib/pendingStateManager.d.mts.map +1 -0
- package/lib/{pendingStateManager.js → pendingStateManager.mjs} +2 -2
- package/lib/pendingStateManager.mjs.map +1 -0
- package/lib/{scheduleManager.d.ts → scheduleManager.d.mts} +1 -5
- package/lib/scheduleManager.d.mts.map +1 -0
- package/lib/{scheduleManager.js → scheduleManager.mjs} +3 -3
- package/lib/scheduleManager.mjs.map +1 -0
- package/lib/{storageServiceWithAttachBlobs.d.ts → storageServiceWithAttachBlobs.d.mts} +1 -1
- package/lib/storageServiceWithAttachBlobs.d.mts.map +1 -0
- package/lib/{storageServiceWithAttachBlobs.js → storageServiceWithAttachBlobs.mjs} +1 -1
- package/lib/storageServiceWithAttachBlobs.mjs.map +1 -0
- package/lib/summary/{index.d.ts → index.d.mts} +13 -13
- package/lib/summary/index.d.mts.map +1 -0
- package/lib/summary/{index.js → index.mjs} +12 -12
- package/lib/summary/index.mjs.map +1 -0
- package/lib/summary/{orderedClientElection.d.ts → orderedClientElection.d.mts} +1 -5
- package/lib/summary/orderedClientElection.d.mts.map +1 -0
- package/lib/summary/{orderedClientElection.js → orderedClientElection.mjs} +2 -2
- package/lib/summary/orderedClientElection.mjs.map +1 -0
- package/lib/summary/{runWhileConnectedCoordinator.d.ts → runWhileConnectedCoordinator.d.mts} +3 -3
- package/lib/summary/runWhileConnectedCoordinator.d.mts.map +1 -0
- package/lib/summary/{runWhileConnectedCoordinator.js → runWhileConnectedCoordinator.mjs} +1 -1
- package/lib/summary/runWhileConnectedCoordinator.mjs.map +1 -0
- package/lib/summary/{runningSummarizer.d.ts → runningSummarizer.d.mts} +10 -5
- package/lib/summary/runningSummarizer.d.mts.map +1 -0
- package/lib/summary/{runningSummarizer.js → runningSummarizer.mjs} +50 -21
- package/lib/summary/runningSummarizer.mjs.map +1 -0
- package/lib/summary/{summarizer.d.ts → summarizer.d.mts} +6 -6
- package/lib/summary/summarizer.d.mts.map +1 -0
- package/lib/summary/{summarizer.js → summarizer.mjs} +5 -5
- package/lib/summary/summarizer.mjs.map +1 -0
- package/lib/summary/{summarizerClientElection.d.ts → summarizerClientElection.d.mts} +3 -3
- package/lib/summary/summarizerClientElection.d.mts.map +1 -0
- package/lib/summary/{summarizerClientElection.js → summarizerClientElection.mjs} +1 -1
- package/lib/summary/summarizerClientElection.mjs.map +1 -0
- package/lib/summary/{summarizerHeuristics.d.ts → summarizerHeuristics.d.mts} +4 -4
- package/lib/summary/summarizerHeuristics.d.mts.map +1 -0
- package/lib/summary/{summarizerHeuristics.js → summarizerHeuristics.mjs} +1 -1
- package/lib/summary/summarizerHeuristics.mjs.map +1 -0
- package/lib/summary/summarizerNode/{index.d.ts → index.d.mts} +4 -4
- package/lib/summary/summarizerNode/index.d.mts.map +1 -0
- package/lib/summary/summarizerNode/{index.js → index.mjs} +3 -3
- package/lib/summary/summarizerNode/index.mjs.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNode.d.ts → summarizerNode.d.mts} +2 -2
- package/lib/summary/summarizerNode/summarizerNode.d.mts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNode.js → summarizerNode.mjs} +2 -2
- package/lib/summary/summarizerNode/summarizerNode.mjs.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeUtils.d.ts → summarizerNodeUtils.d.mts} +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.mts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeUtils.js → summarizerNodeUtils.mjs} +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.mjs.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeWithGc.d.ts → summarizerNodeWithGc.d.mts} +3 -3
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.mts.map +1 -0
- package/lib/summary/summarizerNode/{summarizerNodeWithGc.js → summarizerNodeWithGc.mjs} +4 -4
- package/lib/summary/summarizerNode/summarizerNodeWithGc.mjs.map +1 -0
- package/lib/summary/{summarizerTypes.d.ts → summarizerTypes.d.mts} +7 -5
- package/lib/summary/summarizerTypes.d.mts.map +1 -0
- package/lib/summary/{summarizerTypes.js → summarizerTypes.mjs} +1 -1
- package/lib/summary/summarizerTypes.mjs.map +1 -0
- package/lib/summary/{summaryCollection.d.ts → summaryCollection.d.mts} +8 -8
- package/lib/summary/summaryCollection.d.mts.map +1 -0
- package/lib/summary/{summaryCollection.js → summaryCollection.mjs} +2 -2
- package/lib/summary/summaryCollection.mjs.map +1 -0
- package/lib/summary/{summaryFormat.d.ts → summaryFormat.d.mts} +2 -2
- package/lib/summary/summaryFormat.d.mts.map +1 -0
- package/lib/summary/{summaryFormat.js → summaryFormat.mjs} +1 -1
- package/lib/summary/summaryFormat.mjs.map +1 -0
- package/lib/summary/{summaryGenerator.d.ts → summaryGenerator.d.mts} +3 -3
- package/lib/summary/summaryGenerator.d.mts.map +1 -0
- package/lib/summary/{summaryGenerator.js → summaryGenerator.mjs} +1 -1
- package/lib/summary/summaryGenerator.mjs.map +1 -0
- package/lib/summary/{summaryManager.d.ts → summaryManager.d.mts} +5 -5
- package/lib/summary/summaryManager.d.mts.map +1 -0
- package/lib/summary/{summaryManager.js → summaryManager.mjs} +2 -2
- package/lib/summary/summaryManager.mjs.map +1 -0
- package/lib/{throttler.d.ts → throttler.d.mts} +1 -1
- package/lib/throttler.d.mts.map +1 -0
- package/lib/{throttler.js → throttler.mjs} +1 -1
- package/lib/throttler.mjs.map +1 -0
- package/package.json +145 -39
- package/src/blobManager.ts +15 -4
- package/src/containerRuntime.ts +15 -4
- package/src/dataStoreContext.ts +11 -4
- package/src/dataStores.ts +61 -7
- package/src/gc/garbageCollection.ts +18 -4
- package/src/gc/gcConfigs.ts +28 -20
- package/src/gc/gcDefinitions.ts +30 -6
- package/src/gc/gcTelemetry.ts +19 -9
- package/src/gc/index.ts +3 -0
- package/src/messageTypes.ts +1 -1
- package/src/opLifecycle/definitions.ts +1 -1
- package/src/opLifecycle/outbox.ts +5 -2
- package/src/packageVersion.ts +1 -1
- package/src/summary/runWhileConnectedCoordinator.ts +1 -1
- package/src/summary/runningSummarizer.ts +58 -25
- package/src/summary/summarizer.ts +1 -1
- package/src/summary/summarizerTypes.ts +3 -1
- package/src/summary/summaryCollection.ts +7 -7
- package/tsconfig.json +6 -4
- package/lib/batchTracker.d.ts.map +0 -1
- package/lib/batchTracker.js.map +0 -1
- package/lib/blobManager.d.ts.map +0 -1
- package/lib/blobManager.js.map +0 -1
- package/lib/connectionTelemetry.d.ts.map +0 -1
- package/lib/connectionTelemetry.js.map +0 -1
- package/lib/containerHandleContext.d.ts.map +0 -1
- package/lib/containerHandleContext.js.map +0 -1
- package/lib/containerRuntime.d.ts.map +0 -1
- package/lib/containerRuntime.js.map +0 -1
- package/lib/dataStore.d.ts.map +0 -1
- package/lib/dataStore.js.map +0 -1
- package/lib/dataStoreContext.d.ts.map +0 -1
- package/lib/dataStoreContext.js.map +0 -1
- package/lib/dataStoreContexts.d.ts.map +0 -1
- package/lib/dataStoreContexts.js.map +0 -1
- package/lib/dataStoreRegistry.d.ts.map +0 -1
- package/lib/dataStoreRegistry.js.map +0 -1
- package/lib/dataStores.d.ts.map +0 -1
- package/lib/dataStores.js.map +0 -1
- package/lib/deltaManagerProxyBase.d.ts.map +0 -1
- package/lib/deltaManagerProxyBase.js.map +0 -1
- package/lib/deltaManagerSummarizerProxy.d.ts.map +0 -1
- package/lib/deltaManagerSummarizerProxy.js.map +0 -1
- package/lib/deltaScheduler.d.ts.map +0 -1
- package/lib/deltaScheduler.js.map +0 -1
- package/lib/error.d.ts.map +0 -1
- package/lib/error.js.map +0 -1
- package/lib/gc/garbageCollection.d.ts.map +0 -1
- package/lib/gc/garbageCollection.js.map +0 -1
- package/lib/gc/gcConfigs.d.ts.map +0 -1
- package/lib/gc/gcConfigs.js.map +0 -1
- package/lib/gc/gcDefinitions.d.ts.map +0 -1
- package/lib/gc/gcDefinitions.js.map +0 -1
- package/lib/gc/gcHelpers.js.map +0 -1
- package/lib/gc/gcReferenceGraphAlgorithm.d.ts.map +0 -1
- package/lib/gc/gcReferenceGraphAlgorithm.js.map +0 -1
- package/lib/gc/gcSummaryDefinitions.d.ts.map +0 -1
- package/lib/gc/gcSummaryDefinitions.js.map +0 -1
- package/lib/gc/gcSummaryStateTracker.d.ts.map +0 -1
- package/lib/gc/gcSummaryStateTracker.js.map +0 -1
- package/lib/gc/gcTelemetry.d.ts.map +0 -1
- package/lib/gc/gcTelemetry.js.map +0 -1
- package/lib/gc/gcUnreferencedStateTracker.d.ts.map +0 -1
- package/lib/gc/gcUnreferencedStateTracker.js.map +0 -1
- package/lib/gc/index.d.ts.map +0 -1
- package/lib/gc/index.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/messageTypes.d.ts.map +0 -1
- package/lib/messageTypes.js.map +0 -1
- package/lib/metadata.d.ts.map +0 -1
- package/lib/metadata.js.map +0 -1
- package/lib/opLifecycle/batchManager.d.ts.map +0 -1
- package/lib/opLifecycle/batchManager.js.map +0 -1
- package/lib/opLifecycle/definitions.d.ts.map +0 -1
- package/lib/opLifecycle/definitions.js.map +0 -1
- package/lib/opLifecycle/index.d.ts +0 -13
- package/lib/opLifecycle/index.d.ts.map +0 -1
- package/lib/opLifecycle/index.js +0 -12
- package/lib/opLifecycle/index.js.map +0 -1
- package/lib/opLifecycle/opCompressor.d.ts.map +0 -1
- package/lib/opLifecycle/opCompressor.js.map +0 -1
- package/lib/opLifecycle/opDecompressor.d.ts.map +0 -1
- package/lib/opLifecycle/opDecompressor.js.map +0 -1
- package/lib/opLifecycle/opGroupingManager.d.ts.map +0 -1
- package/lib/opLifecycle/opGroupingManager.js.map +0 -1
- package/lib/opLifecycle/opSplitter.d.ts.map +0 -1
- package/lib/opLifecycle/opSplitter.js.map +0 -1
- package/lib/opLifecycle/outbox.d.ts.map +0 -1
- package/lib/opLifecycle/outbox.js.map +0 -1
- package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +0 -1
- package/lib/opLifecycle/remoteMessageProcessor.js.map +0 -1
- package/lib/opProperties.d.ts.map +0 -1
- package/lib/opProperties.js.map +0 -1
- package/lib/packageVersion.d.ts.map +0 -1
- package/lib/packageVersion.js.map +0 -1
- package/lib/pendingStateManager.d.ts.map +0 -1
- package/lib/pendingStateManager.js.map +0 -1
- package/lib/scheduleManager.d.ts.map +0 -1
- package/lib/scheduleManager.js.map +0 -1
- package/lib/storageServiceWithAttachBlobs.d.ts.map +0 -1
- package/lib/storageServiceWithAttachBlobs.js.map +0 -1
- package/lib/summary/index.d.ts.map +0 -1
- package/lib/summary/index.js.map +0 -1
- package/lib/summary/orderedClientElection.d.ts.map +0 -1
- package/lib/summary/orderedClientElection.js.map +0 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts.map +0 -1
- package/lib/summary/runWhileConnectedCoordinator.js.map +0 -1
- package/lib/summary/runningSummarizer.d.ts.map +0 -1
- package/lib/summary/runningSummarizer.js.map +0 -1
- package/lib/summary/summarizer.d.ts.map +0 -1
- package/lib/summary/summarizer.js.map +0 -1
- package/lib/summary/summarizerClientElection.d.ts.map +0 -1
- package/lib/summary/summarizerClientElection.js.map +0 -1
- package/lib/summary/summarizerHeuristics.d.ts.map +0 -1
- package/lib/summary/summarizerHeuristics.js.map +0 -1
- package/lib/summary/summarizerNode/index.d.ts.map +0 -1
- package/lib/summary/summarizerNode/index.js.map +0 -1
- package/lib/summary/summarizerNode/summarizerNode.d.ts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNode.js.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +0 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +0 -1
- package/lib/summary/summarizerTypes.d.ts.map +0 -1
- package/lib/summary/summarizerTypes.js.map +0 -1
- package/lib/summary/summaryCollection.d.ts.map +0 -1
- package/lib/summary/summaryCollection.js.map +0 -1
- package/lib/summary/summaryFormat.d.ts.map +0 -1
- package/lib/summary/summaryFormat.js.map +0 -1
- package/lib/summary/summaryGenerator.d.ts.map +0 -1
- package/lib/summary/summaryGenerator.js.map +0 -1
- package/lib/summary/summaryManager.d.ts.map +0 -1
- package/lib/summary/summaryManager.js.map +0 -1
- package/lib/throttler.d.ts.map +0 -1
- package/lib/throttler.js.map +0 -1
- package/tsconfig.esnext.json +0 -7
|
@@ -51,7 +51,10 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
51
51
|
|
|
52
52
|
/* Excluded from this release type: AllowInactiveRequestHeaderKey */
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
/** True if a tombstoned object should be returned without erroring
|
|
55
|
+
* @alpha
|
|
56
|
+
*/
|
|
57
|
+
export declare const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
55
58
|
|
|
56
59
|
/* Excluded from this release type: assertIsStableId */
|
|
57
60
|
|
|
@@ -65,7 +68,28 @@ export declare enum CompressionAlgorithms {
|
|
|
65
68
|
lz4 = "lz4"
|
|
66
69
|
}
|
|
67
70
|
|
|
68
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @alpha
|
|
73
|
+
*/
|
|
74
|
+
export declare enum ContainerMessageType {
|
|
75
|
+
FluidDataStoreOp = "component",
|
|
76
|
+
Attach = "attach",
|
|
77
|
+
ChunkedOp = "chunkedOp",
|
|
78
|
+
BlobAttach = "blobAttach",
|
|
79
|
+
Rejoin = "rejoin",
|
|
80
|
+
Alias = "alias",
|
|
81
|
+
/**
|
|
82
|
+
* An op containing an IdRange of Ids allocated using the runtime's IdCompressor since
|
|
83
|
+
* the last allocation op was sent.
|
|
84
|
+
* See the [IdCompressor README](./id-compressor/README.md) for more details.
|
|
85
|
+
*/
|
|
86
|
+
IdAllocation = "idAllocation",
|
|
87
|
+
/**
|
|
88
|
+
* Garbage collection specific op. This is sent by the summarizer client when GC runs. It's used to synchronize GC
|
|
89
|
+
* state across all clients.
|
|
90
|
+
*/
|
|
91
|
+
GC = "GC"
|
|
92
|
+
}
|
|
69
93
|
|
|
70
94
|
/**
|
|
71
95
|
* Represents the runtime of the container. Contains helper functions/state of the container.
|
|
@@ -423,6 +447,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
423
447
|
deleteSweepReadyNodes(sweepReadyRoutes: readonly string[]): readonly string[];
|
|
424
448
|
/**
|
|
425
449
|
* This is called to update objects that are tombstones.
|
|
450
|
+
*
|
|
451
|
+
* A Tombstoned object has been unreferenced long enough that GC knows it won't be referenced again.
|
|
452
|
+
* Tombstoned objects are eventually deleted by GC.
|
|
453
|
+
*
|
|
426
454
|
* @param tombstonedRoutes - Data store and attachment blob routes that are tombstones in this Container.
|
|
427
455
|
*/
|
|
428
456
|
updateTombstonedRoutes(tombstonedRoutes: readonly string[]): void;
|
|
@@ -546,7 +574,10 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
546
574
|
|
|
547
575
|
/* Excluded from this release type: ContainerRuntimeMessage */
|
|
548
576
|
|
|
549
|
-
|
|
577
|
+
/**
|
|
578
|
+
* @alpha
|
|
579
|
+
*/
|
|
580
|
+
export declare const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
550
581
|
|
|
551
582
|
/**
|
|
552
583
|
* @alpha
|
|
@@ -621,7 +652,14 @@ export declare type GCVersion = number;
|
|
|
621
652
|
|
|
622
653
|
/* Excluded from this release type: generateStableId */
|
|
623
654
|
|
|
624
|
-
|
|
655
|
+
/**
|
|
656
|
+
* A single summary which has already been acked by the server.
|
|
657
|
+
* @alpha
|
|
658
|
+
*/
|
|
659
|
+
export declare interface IAckedSummary {
|
|
660
|
+
readonly summaryOp: ISummaryOpMessage;
|
|
661
|
+
readonly summaryAck: ISummaryAckMessage;
|
|
662
|
+
}
|
|
625
663
|
|
|
626
664
|
/**
|
|
627
665
|
* @alpha
|
|
@@ -661,7 +699,13 @@ export declare interface IBroadcastSummaryResult {
|
|
|
661
699
|
readonly broadcastDuration: number;
|
|
662
700
|
}
|
|
663
701
|
|
|
664
|
-
|
|
702
|
+
/**
|
|
703
|
+
* Similar to AbortController, but using promise instead of events
|
|
704
|
+
* @alpha
|
|
705
|
+
*/
|
|
706
|
+
export declare interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
707
|
+
stop(reason: SummarizerStopReason): void;
|
|
708
|
+
}
|
|
665
709
|
|
|
666
710
|
/**
|
|
667
711
|
* Similar to AbortSignal, but using promise instead of events
|
|
@@ -680,7 +724,14 @@ export declare interface ICancellationToken<T> {
|
|
|
680
724
|
|
|
681
725
|
/* Excluded from this release type: IChunkedOp */
|
|
682
726
|
|
|
683
|
-
|
|
727
|
+
/**
|
|
728
|
+
* Watches summaries created by a specific client.
|
|
729
|
+
* @alpha
|
|
730
|
+
*/
|
|
731
|
+
export declare interface IClientSummaryWatcher extends IDisposable {
|
|
732
|
+
watchSummary(clientSequenceNumber: number): ISummary;
|
|
733
|
+
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
734
|
+
}
|
|
684
735
|
|
|
685
736
|
/**
|
|
686
737
|
* Options for op compression.
|
|
@@ -835,6 +886,8 @@ export declare interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOpti
|
|
|
835
886
|
}
|
|
836
887
|
|
|
837
888
|
/**
|
|
889
|
+
* GC-specific metadata to be written into the summary.
|
|
890
|
+
*
|
|
838
891
|
* @alpha
|
|
839
892
|
*/
|
|
840
893
|
export declare interface IGCMetadata {
|
|
@@ -868,8 +921,15 @@ export declare interface IGCMetadata {
|
|
|
868
921
|
readonly sweepEnabled?: boolean;
|
|
869
922
|
/** If this is present, the session for this container will expire after this time and the container will close */
|
|
870
923
|
readonly sessionExpiryTimeoutMs?: number;
|
|
871
|
-
/**
|
|
872
|
-
|
|
924
|
+
/**
|
|
925
|
+
* How long to wait after an object is unreferenced before it becomes a Tombstone.
|
|
926
|
+
*
|
|
927
|
+
* After this point, there's a grace period before the object is deleted.
|
|
928
|
+
* @see IGCRuntimeOptions.sweepGracePeriodMs
|
|
929
|
+
*
|
|
930
|
+
* So the full sweep timeout in a session is tombstoneTimeoutMs + sweepGracePeriodMs.
|
|
931
|
+
*/
|
|
932
|
+
readonly tombstoneTimeoutMs?: number;
|
|
873
933
|
}
|
|
874
934
|
|
|
875
935
|
/**
|
|
@@ -1001,7 +1061,11 @@ export declare interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
1001
1061
|
readonly ackNackDuration: number;
|
|
1002
1062
|
}
|
|
1003
1063
|
|
|
1004
|
-
|
|
1064
|
+
/**
|
|
1065
|
+
* Inactive error responses will have this header set to true
|
|
1066
|
+
* @alpha
|
|
1067
|
+
*/
|
|
1068
|
+
export declare const InactiveResponseHeaderKey = "isInactive";
|
|
1005
1069
|
|
|
1006
1070
|
/**
|
|
1007
1071
|
* @alpha
|
|
@@ -1009,6 +1073,8 @@ export declare interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
1009
1073
|
export declare interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
1010
1074
|
/** Reason for generating summary. */
|
|
1011
1075
|
readonly reason: string;
|
|
1076
|
+
/** In case of a failure, will attempt to retry based on if the failure is retriable. */
|
|
1077
|
+
readonly retryOnFailure?: boolean;
|
|
1012
1078
|
}
|
|
1013
1079
|
|
|
1014
1080
|
/**
|
|
@@ -1108,7 +1174,41 @@ export declare interface ISummarizeOptions {
|
|
|
1108
1174
|
readonly refreshLatestAck?: boolean;
|
|
1109
1175
|
}
|
|
1110
1176
|
|
|
1111
|
-
|
|
1177
|
+
/**
|
|
1178
|
+
* @alpha
|
|
1179
|
+
*/
|
|
1180
|
+
export declare interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
1181
|
+
/**
|
|
1182
|
+
* Allows {@link ISummarizer} to be used with our {@link @fluidframework/core-interfaces#FluidObject} pattern.
|
|
1183
|
+
*/
|
|
1184
|
+
readonly ISummarizer?: ISummarizer;
|
|
1185
|
+
stop(reason: SummarizerStopReason): void;
|
|
1186
|
+
close(): void;
|
|
1187
|
+
run(onBehalfOf: string, disableHeuristics?: boolean): Promise<SummarizerStopReason>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Attempts to generate a summary on demand. If already running, takes no action.
|
|
1190
|
+
* @param options - options controlling the summarize attempt
|
|
1191
|
+
* @returns an alreadyRunning promise if a summarize attempt is already in progress,
|
|
1192
|
+
* which will resolve when the current attempt completes. At that point caller can
|
|
1193
|
+
* decide to try again or not. Otherwise, it will return an object containing promises
|
|
1194
|
+
* that resolve as the summarize attempt progresses. They will resolve with success
|
|
1195
|
+
* false if a failure is encountered.
|
|
1196
|
+
*/
|
|
1197
|
+
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
1198
|
+
/**
|
|
1199
|
+
* Enqueue an attempt to summarize after the specified sequence number.
|
|
1200
|
+
* If afterSequenceNumber is provided, the summarize attempt is "enqueued"
|
|
1201
|
+
* to run once an eligible op comes in with sequenceNumber \>= afterSequenceNumber.
|
|
1202
|
+
* @param options - options controlling the summarize attempt
|
|
1203
|
+
* @returns an object containing an alreadyEnqueued flag to indicate if another
|
|
1204
|
+
* summarize attempt has already been enqueued. It also may contain an overridden flag
|
|
1205
|
+
* when alreadyEnqueued is true, that indicates whether this attempt forced the
|
|
1206
|
+
* previous attempt to abort. If this attempt becomes enqueued, it returns an object
|
|
1207
|
+
* containing promises that resolve as the summarize attempt progresses. They will
|
|
1208
|
+
* resolve with success false if a failure is encountered.
|
|
1209
|
+
*/
|
|
1210
|
+
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
1211
|
+
}
|
|
1112
1212
|
|
|
1113
1213
|
/**
|
|
1114
1214
|
* @alpha
|
|
@@ -1155,7 +1255,17 @@ export declare interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
1155
1255
|
|
|
1156
1256
|
/* Excluded from this release type: ISummarizingWarning */
|
|
1157
1257
|
|
|
1158
|
-
|
|
1258
|
+
/**
|
|
1259
|
+
* A single summary which can be tracked as it goes through its life cycle.
|
|
1260
|
+
* The life cycle is: Local to Broadcast to Acked/Nacked.
|
|
1261
|
+
* @alpha
|
|
1262
|
+
*/
|
|
1263
|
+
export declare interface ISummary {
|
|
1264
|
+
readonly clientId: string;
|
|
1265
|
+
readonly clientSequenceNumber: number;
|
|
1266
|
+
waitBroadcast(): Promise<ISummaryOpMessage>;
|
|
1267
|
+
waitAckNack(): Promise<ISummaryAckMessage | ISummaryNackMessage>;
|
|
1268
|
+
}
|
|
1159
1269
|
|
|
1160
1270
|
/**
|
|
1161
1271
|
* Interface for summary ack messages with typed contents.
|
|
@@ -1193,7 +1303,12 @@ export declare interface ISummaryBaseConfiguration {
|
|
|
1193
1303
|
*/
|
|
1194
1304
|
export declare type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
1195
1305
|
|
|
1196
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* @alpha
|
|
1308
|
+
*/
|
|
1309
|
+
export declare interface ISummaryCollectionOpEvents extends IEvent {
|
|
1310
|
+
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
1311
|
+
}
|
|
1197
1312
|
|
|
1198
1313
|
/**
|
|
1199
1314
|
* @alpha
|
|
@@ -1348,9 +1463,15 @@ export declare interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeR
|
|
|
1348
1463
|
|
|
1349
1464
|
/* Excluded from this release type: neverCancelledSummaryToken */
|
|
1350
1465
|
|
|
1351
|
-
|
|
1466
|
+
/**
|
|
1467
|
+
* @alpha
|
|
1468
|
+
*/
|
|
1469
|
+
export declare type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
1352
1470
|
|
|
1353
|
-
|
|
1471
|
+
/**
|
|
1472
|
+
* @alpha
|
|
1473
|
+
*/
|
|
1474
|
+
export declare type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
1354
1475
|
|
|
1355
1476
|
/* Excluded from this release type: RecentlyAddedContainerRuntimeMessageDetails */
|
|
1356
1477
|
|
|
@@ -1385,7 +1506,78 @@ export declare interface SubmitSummaryFailureData extends IRetriableFailureResul
|
|
|
1385
1506
|
*/
|
|
1386
1507
|
export declare type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
1387
1508
|
|
|
1388
|
-
|
|
1509
|
+
/**
|
|
1510
|
+
* Summarizer is responsible for coordinating when to generate and send summaries.
|
|
1511
|
+
* It is the main entry point for summary work.
|
|
1512
|
+
* It is created only by summarizing container (i.e. one with clientType === "summarizer")
|
|
1513
|
+
* @alpha
|
|
1514
|
+
*/
|
|
1515
|
+
export declare class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
1516
|
+
/** Reference to runtime that created this object.
|
|
1517
|
+
* i.e. runtime with clientType === "summarizer"
|
|
1518
|
+
*/
|
|
1519
|
+
private readonly runtime;
|
|
1520
|
+
private readonly configurationGetter;
|
|
1521
|
+
/** Represents an object that can generate summary.
|
|
1522
|
+
* In practical terms, it's same runtime (this.runtime) with clientType === "summarizer".
|
|
1523
|
+
*/
|
|
1524
|
+
private readonly internalsProvider;
|
|
1525
|
+
readonly summaryCollection: SummaryCollection;
|
|
1526
|
+
private readonly runCoordinatorCreateFn;
|
|
1527
|
+
get ISummarizer(): this;
|
|
1528
|
+
private readonly logger;
|
|
1529
|
+
private runningSummarizer?;
|
|
1530
|
+
private _disposed;
|
|
1531
|
+
private starting;
|
|
1532
|
+
private readonly stopDeferred;
|
|
1533
|
+
constructor(
|
|
1534
|
+
/** Reference to runtime that created this object.
|
|
1535
|
+
* i.e. runtime with clientType === "summarizer"
|
|
1536
|
+
*/
|
|
1537
|
+
runtime: ISummarizerRuntime, configurationGetter: () => ISummaryConfiguration,
|
|
1538
|
+
/** Represents an object that can generate summary.
|
|
1539
|
+
* In practical terms, it's same runtime (this.runtime) with clientType === "summarizer".
|
|
1540
|
+
*/
|
|
1541
|
+
internalsProvider: ISummarizerInternalsProvider, handleContext: IFluidHandleContext, summaryCollection: SummaryCollection, runCoordinatorCreateFn: (runtime: IConnectableRuntime) => Promise<ICancellableSummarizerController>);
|
|
1542
|
+
run(onBehalfOf: string): Promise<SummarizerStopReason>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Stops the summarizer from running. This will complete
|
|
1545
|
+
* the run promise, and also close the container.
|
|
1546
|
+
* @param reason - reason code for stopping
|
|
1547
|
+
*/
|
|
1548
|
+
stop(reason: SummarizerStopReason): void;
|
|
1549
|
+
close(): void;
|
|
1550
|
+
private runCore;
|
|
1551
|
+
/**
|
|
1552
|
+
* Should we try to run a last summary for the given stop reason?
|
|
1553
|
+
* Currently only allows "parentNotConnected"
|
|
1554
|
+
* @param stopReason - SummarizerStopReason
|
|
1555
|
+
* @returns `true` if the stop reason can run a last summary, otherwise `false`.
|
|
1556
|
+
*/
|
|
1557
|
+
static stopReasonCanRunLastSummary(stopReason: SummarizerStopReason): boolean;
|
|
1558
|
+
private _heuristicData;
|
|
1559
|
+
/**
|
|
1560
|
+
* Put the summarizer in a started state, including creating and initializing the RunningSummarizer.
|
|
1561
|
+
* The start request can come either from the SummaryManager (in the auto-summarize case) or from the user
|
|
1562
|
+
* (in the on-demand case).
|
|
1563
|
+
* @param onBehalfOf - ID of the client that requested that the summarizer start
|
|
1564
|
+
* @param runCoordinator - cancellation token
|
|
1565
|
+
* @param newConfig - Summary configuration to override the existing config when invoking the RunningSummarizer.
|
|
1566
|
+
* @returns A promise that is fulfilled when the RunningSummarizer is ready.
|
|
1567
|
+
*/
|
|
1568
|
+
private start;
|
|
1569
|
+
private readonly handleSummarizeEvent;
|
|
1570
|
+
/**
|
|
1571
|
+
* Disposes of resources after running. This cleanup will
|
|
1572
|
+
* clear any outstanding timers and reset some of the state
|
|
1573
|
+
* properties.
|
|
1574
|
+
* Called by ContainerRuntime when it is disposed, as well as at the end the run().
|
|
1575
|
+
*/
|
|
1576
|
+
dispose(): void;
|
|
1577
|
+
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
1578
|
+
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
1579
|
+
recordSummaryAttempt?(summaryRefSeqNum?: number): void;
|
|
1580
|
+
}
|
|
1389
1581
|
|
|
1390
1582
|
/**
|
|
1391
1583
|
* @alpha
|
|
@@ -1429,7 +1621,59 @@ export declare type SummarizerStopReason =
|
|
|
1429
1621
|
*/
|
|
1430
1622
|
| "latestSummaryStateStale";
|
|
1431
1623
|
|
|
1432
|
-
|
|
1624
|
+
/**
|
|
1625
|
+
* Data structure that looks at the op stream to track summaries as they
|
|
1626
|
+
* are broadcast, acked and nacked.
|
|
1627
|
+
* It provides functionality for watching specific summaries.
|
|
1628
|
+
* @alpha
|
|
1629
|
+
*/
|
|
1630
|
+
export declare class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
1631
|
+
private readonly deltaManager;
|
|
1632
|
+
private readonly logger;
|
|
1633
|
+
private readonly summaryWatchers;
|
|
1634
|
+
private readonly pendingSummaries;
|
|
1635
|
+
private refreshWaitNextAck;
|
|
1636
|
+
private lastSummaryTimestamp;
|
|
1637
|
+
private maxAckWaitTime;
|
|
1638
|
+
private pendingAckTimerTimeoutCallback;
|
|
1639
|
+
private lastAck;
|
|
1640
|
+
get latestAck(): IAckedSummary | undefined;
|
|
1641
|
+
emit(event: OpActionEventName, ...args: Parameters<OpActionEventListener>): boolean;
|
|
1642
|
+
get opsSinceLastAck(): number;
|
|
1643
|
+
addOpListener(listener: () => void): void;
|
|
1644
|
+
removeOpListener(listener: () => void): void;
|
|
1645
|
+
constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, logger: ITelemetryLoggerExt);
|
|
1646
|
+
/**
|
|
1647
|
+
* Creates and returns a summary watcher for a specific client.
|
|
1648
|
+
* This will allow for local sent summaries to be better tracked.
|
|
1649
|
+
* @param clientId - client id for watcher
|
|
1650
|
+
*/
|
|
1651
|
+
createWatcher(clientId: string): IClientSummaryWatcher;
|
|
1652
|
+
removeWatcher(clientId: string): void;
|
|
1653
|
+
setPendingAckTimerTimeoutCallback(maxAckWaitTime: number, timeoutCallback: () => void): void;
|
|
1654
|
+
unsetPendingAckTimerTimeoutCallback(): void;
|
|
1655
|
+
/**
|
|
1656
|
+
* Returns a promise that resolves once all pending summary ops
|
|
1657
|
+
* have been acked or nacked.
|
|
1658
|
+
*/
|
|
1659
|
+
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Returns a promise that resolves once a summary is acked that has a reference
|
|
1662
|
+
* sequence number greater than or equal to the passed in sequence number.
|
|
1663
|
+
* @param referenceSequenceNumber - reference sequence number to wait for
|
|
1664
|
+
* @returns The latest acked summary
|
|
1665
|
+
*/
|
|
1666
|
+
waitSummaryAck(referenceSequenceNumber: number): Promise<IAckedSummary>;
|
|
1667
|
+
private parseContent;
|
|
1668
|
+
/**
|
|
1669
|
+
* Handler for ops; only handles ops relating to summaries.
|
|
1670
|
+
* @param op - op message to handle
|
|
1671
|
+
*/
|
|
1672
|
+
private handleOp;
|
|
1673
|
+
private handleSummaryOp;
|
|
1674
|
+
private handleSummaryAck;
|
|
1675
|
+
private handleSummaryNack;
|
|
1676
|
+
}
|
|
1433
1677
|
|
|
1434
1678
|
/**
|
|
1435
1679
|
* The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.
|
|
@@ -1437,7 +1681,11 @@ export declare type SummarizerStopReason =
|
|
|
1437
1681
|
*/
|
|
1438
1682
|
export declare type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
1439
1683
|
|
|
1440
|
-
|
|
1684
|
+
/**
|
|
1685
|
+
* Tombstone error responses will have this header set to true
|
|
1686
|
+
* @alpha
|
|
1687
|
+
*/
|
|
1688
|
+
export declare const TombstoneResponseHeaderKey = "isTombstoned";
|
|
1441
1689
|
|
|
1442
1690
|
/* Excluded from this release type: unpackRuntimeMessage */
|
|
1443
1691
|
|
|
@@ -55,8 +55,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
55
55
|
|
|
56
56
|
/* Excluded from this release type: assertIsStableId */
|
|
57
57
|
|
|
58
|
-
/* Excluded from this release type: AttachState */
|
|
59
|
-
|
|
60
58
|
/* Excluded from this release type: CompatModeBehavior */
|
|
61
59
|
|
|
62
60
|
/* Excluded from this release type: CompressionAlgorithms */
|
|
@@ -77,8 +75,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
77
75
|
|
|
78
76
|
/* Excluded from this release type: FluidDataStoreRegistryEntry */
|
|
79
77
|
|
|
80
|
-
/* Excluded from this release type: FluidObject */
|
|
81
|
-
|
|
82
78
|
/* Excluded from this release type: FlushMode */
|
|
83
79
|
|
|
84
80
|
/* Excluded from this release type: GCFeatureMatrix */
|
|
@@ -93,8 +89,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
93
89
|
|
|
94
90
|
/* Excluded from this release type: IAckSummaryResult */
|
|
95
91
|
|
|
96
|
-
/* Excluded from this release type: IAudience */
|
|
97
|
-
|
|
98
92
|
/* Excluded from this release type: IBaseSummarizeResult */
|
|
99
93
|
|
|
100
94
|
/* Excluded from this release type: IBlobManagerLoadInfo */
|
|
@@ -127,32 +121,16 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
127
121
|
|
|
128
122
|
/* Excluded from this release type: ICreateContainerMetadata */
|
|
129
123
|
|
|
130
|
-
/* Excluded from this release type: ICriticalContainerError */
|
|
131
|
-
|
|
132
124
|
/* Excluded from this release type: IDataStore */
|
|
133
125
|
|
|
134
|
-
/* Excluded from this release type: IDeltaManager */
|
|
135
|
-
|
|
136
|
-
/* Excluded from this release type: IDisposable */
|
|
137
|
-
|
|
138
126
|
/* Excluded from this release type: IDocumentStorageService */
|
|
139
127
|
|
|
140
128
|
/* Excluded from this release type: IEnqueueSummarizeOptions */
|
|
141
129
|
|
|
142
|
-
/* Excluded from this release type: IEvent */
|
|
143
|
-
|
|
144
|
-
/* Excluded from this release type: IEventProvider */
|
|
145
|
-
|
|
146
130
|
/* Excluded from this release type: IFluidDataStoreContextDetached */
|
|
147
131
|
|
|
148
132
|
/* Excluded from this release type: IFluidDataStoreRegistry */
|
|
149
133
|
|
|
150
|
-
/* Excluded from this release type: IFluidHandle */
|
|
151
|
-
|
|
152
|
-
/* Excluded from this release type: IFluidHandleContext */
|
|
153
|
-
|
|
154
|
-
/* Excluded from this release type: IGarbageCollectionData */
|
|
155
|
-
|
|
156
134
|
/* Excluded from this release type: IGCMetadata */
|
|
157
135
|
|
|
158
136
|
/* Excluded from this release type: IGCRuntimeOptions */
|
|
@@ -165,12 +143,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
165
143
|
|
|
166
144
|
/* Excluded from this release type: IGetPendingLocalStateProps */
|
|
167
145
|
|
|
168
|
-
/* Excluded from this release type: IIdCompressor */
|
|
169
|
-
|
|
170
146
|
/* Excluded from this release type: IIdCompressorCore */
|
|
171
147
|
|
|
172
|
-
/* Excluded from this release type: ILoaderOptions */
|
|
173
|
-
|
|
174
148
|
/* Excluded from this release type: IMarkPhaseStats */
|
|
175
149
|
|
|
176
150
|
/* Excluded from this release type: INackSummaryResult */
|
|
@@ -179,14 +153,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
179
153
|
|
|
180
154
|
/* Excluded from this release type: IOnDemandSummarizeOptions */
|
|
181
155
|
|
|
182
|
-
/* Excluded from this release type: IProvideFluidHandleContext */
|
|
183
|
-
|
|
184
156
|
/* Excluded from this release type: IRefreshSummaryAckOptions */
|
|
185
157
|
|
|
186
|
-
/* Excluded from this release type: IRequest */
|
|
187
|
-
|
|
188
|
-
/* Excluded from this release type: IResponse */
|
|
189
|
-
|
|
190
158
|
/* Excluded from this release type: IRetriableFailureResult */
|
|
191
159
|
|
|
192
160
|
/* Excluded from this release type: IRuntime */
|
|
@@ -243,16 +211,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
243
211
|
|
|
244
212
|
/* Excluded from this release type: ISummaryRuntimeOptions */
|
|
245
213
|
|
|
246
|
-
/* Excluded from this release type: ISummaryStats */
|
|
247
|
-
|
|
248
|
-
/* Excluded from this release type: ISummaryTreeWithStats */
|
|
249
|
-
|
|
250
214
|
/* Excluded from this release type: ISweepPhaseStats */
|
|
251
215
|
|
|
252
|
-
/* Excluded from this release type: ITelemetryContext */
|
|
253
|
-
|
|
254
|
-
/* Excluded from this release type: ITelemetryLoggerExt */
|
|
255
|
-
|
|
256
216
|
/* Excluded from this release type: IUploadSummaryResult */
|
|
257
217
|
|
|
258
218
|
/* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
|
|
@@ -285,8 +245,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
285
245
|
|
|
286
246
|
/* Excluded from this release type: TombstoneResponseHeaderKey */
|
|
287
247
|
|
|
288
|
-
/* Excluded from this release type: TypedEventEmitter */
|
|
289
|
-
|
|
290
248
|
/* Excluded from this release type: unpackRuntimeMessage */
|
|
291
249
|
|
|
292
250
|
export { }
|
|
@@ -55,8 +55,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
55
55
|
|
|
56
56
|
/* Excluded from this release type: assertIsStableId */
|
|
57
57
|
|
|
58
|
-
/* Excluded from this release type: AttachState */
|
|
59
|
-
|
|
60
58
|
/* Excluded from this release type: CompatModeBehavior */
|
|
61
59
|
|
|
62
60
|
/* Excluded from this release type: CompressionAlgorithms */
|
|
@@ -77,8 +75,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
77
75
|
|
|
78
76
|
/* Excluded from this release type: FluidDataStoreRegistryEntry */
|
|
79
77
|
|
|
80
|
-
/* Excluded from this release type: FluidObject */
|
|
81
|
-
|
|
82
78
|
/* Excluded from this release type: FlushMode */
|
|
83
79
|
|
|
84
80
|
/* Excluded from this release type: GCFeatureMatrix */
|
|
@@ -93,8 +89,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
93
89
|
|
|
94
90
|
/* Excluded from this release type: IAckSummaryResult */
|
|
95
91
|
|
|
96
|
-
/* Excluded from this release type: IAudience */
|
|
97
|
-
|
|
98
92
|
/* Excluded from this release type: IBaseSummarizeResult */
|
|
99
93
|
|
|
100
94
|
/* Excluded from this release type: IBlobManagerLoadInfo */
|
|
@@ -127,32 +121,16 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
127
121
|
|
|
128
122
|
/* Excluded from this release type: ICreateContainerMetadata */
|
|
129
123
|
|
|
130
|
-
/* Excluded from this release type: ICriticalContainerError */
|
|
131
|
-
|
|
132
124
|
/* Excluded from this release type: IDataStore */
|
|
133
125
|
|
|
134
|
-
/* Excluded from this release type: IDeltaManager */
|
|
135
|
-
|
|
136
|
-
/* Excluded from this release type: IDisposable */
|
|
137
|
-
|
|
138
126
|
/* Excluded from this release type: IDocumentStorageService */
|
|
139
127
|
|
|
140
128
|
/* Excluded from this release type: IEnqueueSummarizeOptions */
|
|
141
129
|
|
|
142
|
-
/* Excluded from this release type: IEvent */
|
|
143
|
-
|
|
144
|
-
/* Excluded from this release type: IEventProvider */
|
|
145
|
-
|
|
146
130
|
/* Excluded from this release type: IFluidDataStoreContextDetached */
|
|
147
131
|
|
|
148
132
|
/* Excluded from this release type: IFluidDataStoreRegistry */
|
|
149
133
|
|
|
150
|
-
/* Excluded from this release type: IFluidHandle */
|
|
151
|
-
|
|
152
|
-
/* Excluded from this release type: IFluidHandleContext */
|
|
153
|
-
|
|
154
|
-
/* Excluded from this release type: IGarbageCollectionData */
|
|
155
|
-
|
|
156
134
|
/* Excluded from this release type: IGCMetadata */
|
|
157
135
|
|
|
158
136
|
/* Excluded from this release type: IGCRuntimeOptions */
|
|
@@ -165,12 +143,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
165
143
|
|
|
166
144
|
/* Excluded from this release type: IGetPendingLocalStateProps */
|
|
167
145
|
|
|
168
|
-
/* Excluded from this release type: IIdCompressor */
|
|
169
|
-
|
|
170
146
|
/* Excluded from this release type: IIdCompressorCore */
|
|
171
147
|
|
|
172
|
-
/* Excluded from this release type: ILoaderOptions */
|
|
173
|
-
|
|
174
148
|
/* Excluded from this release type: IMarkPhaseStats */
|
|
175
149
|
|
|
176
150
|
/* Excluded from this release type: INackSummaryResult */
|
|
@@ -179,14 +153,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
179
153
|
|
|
180
154
|
/* Excluded from this release type: IOnDemandSummarizeOptions */
|
|
181
155
|
|
|
182
|
-
/* Excluded from this release type: IProvideFluidHandleContext */
|
|
183
|
-
|
|
184
156
|
/* Excluded from this release type: IRefreshSummaryAckOptions */
|
|
185
157
|
|
|
186
|
-
/* Excluded from this release type: IRequest */
|
|
187
|
-
|
|
188
|
-
/* Excluded from this release type: IResponse */
|
|
189
|
-
|
|
190
158
|
/* Excluded from this release type: IRetriableFailureResult */
|
|
191
159
|
|
|
192
160
|
/* Excluded from this release type: IRuntime */
|
|
@@ -243,16 +211,8 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
243
211
|
|
|
244
212
|
/* Excluded from this release type: ISummaryRuntimeOptions */
|
|
245
213
|
|
|
246
|
-
/* Excluded from this release type: ISummaryStats */
|
|
247
|
-
|
|
248
|
-
/* Excluded from this release type: ISummaryTreeWithStats */
|
|
249
|
-
|
|
250
214
|
/* Excluded from this release type: ISweepPhaseStats */
|
|
251
215
|
|
|
252
|
-
/* Excluded from this release type: ITelemetryContext */
|
|
253
|
-
|
|
254
|
-
/* Excluded from this release type: ITelemetryLoggerExt */
|
|
255
|
-
|
|
256
216
|
/* Excluded from this release type: IUploadSummaryResult */
|
|
257
217
|
|
|
258
218
|
/* Excluded from this release type: NamedFluidDataStoreRegistryEntries */
|
|
@@ -285,8 +245,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
285
245
|
|
|
286
246
|
/* Excluded from this release type: TombstoneResponseHeaderKey */
|
|
287
247
|
|
|
288
|
-
/* Excluded from this release type: TypedEventEmitter */
|
|
289
|
-
|
|
290
248
|
/* Excluded from this release type: unpackRuntimeMessage */
|
|
291
249
|
|
|
292
250
|
export { }
|