@lunora/do 1.0.0-alpha.243 → 1.0.0-alpha.244
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/dist/index.d.mts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/ROOT_DO_SIZE_WARN_BYTES-DLzMQc2f.mjs +13 -0
- package/dist/packem_shared/SESSION_DO_TTL_DEFAULT-CyF6dsyR.mjs +1 -0
- package/dist/packem_shared/SHARD_REGISTRY_DO_NAME-DVCue1t7.mjs +1 -0
- package/dist/packem_shared/json-response-BqTX3KmR.mjs +1 -0
- package/dist/packem_shared/shard-registry-do-DVfOqeqi.mjs +1 -0
- package/package.json +5 -5
- package/dist/packem_shared/ROOT_DO_SIZE_WARN_BYTES-D3QUE4S5.mjs +0 -13
- package/dist/packem_shared/SESSION_DO_TTL_DEFAULT-DSvTwRjc.mjs +0 -1
- package/dist/packem_shared/SHARD_REGISTRY_DO_NAME-DRIFt2FK.mjs +0 -1
- package/dist/packem_shared/constant-time-equal-BRh9yUCr.mjs +0 -1
- package/dist/packem_shared/json-response-0Bq2ky0N.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionIdentity, SchemaLike, DatabaseWriterLike, CrossShardReadArgs, CdcChange, FilterClause, ExportRow, MigrationDirection, ReadFootprint, DependencyTracker, ReactiveCache, ShapeProbeCounters, GlobalPollCounters, ReactiveCacheOptions, TransactionHeadroomTracker, ShardSocketLike, LifecycleDispatchInfo, MigrationRunResult, SearchBackfillProgress, VectorBackfillProgress, TableIndexInfo, ColumnMeta, AdvisoryFinding, AdvisorProcedure, RlsPoliciesResult, MaskPoliciesResult, StorageRulesResult, StudioFeaturesResult, FlagsResult, QueuesResult, WorkflowsResult, ImportShardResult, RelatedPage, ShardRankPageResult, SubscriptionQuery, ShapeSubscriptionQuery, MutationDelta, KeyRange, ResolvedShape, ShapeRow, TtlSweepSpec, ScheduleOutbox, SchedulerLike, TransactionLimits, IndexKeyEntry, SqlExec, CdcChangeKey } from '@lunora/shard-engine';
|
|
1
|
+
import { SubscriptionIdentity, SchemaLike, DatabaseWriterLike, CrossShardReadArgs, CdcChange, FilterClause, ExportRow, MigrationDirection, ReadFootprint, DependencyTracker, ReactiveCache, ShapeProbeCounters, GlobalPollCounters, ReactiveCacheOptions, TransactionHeadroomTracker, ShardSocketLike, LifecycleDispatchInfo, MigrationRunResult, SearchBackfillProgress, VectorBackfillProgress, TableIndexInfo, ColumnMeta, AdvisoryFinding, AdvisorProcedure, RlsPoliciesResult, MaskPoliciesResult, StorageRulesResult, StudioFeaturesResult, FlagsResult, QueuesResult, WorkflowsResult, ImportShardResult, RelatedPage, ShardRankPageResult, SubscriptionQuery, ShapeSubscriptionQuery, MutationDelta, KeyRange, ResolvedShape, ShapeRow, TtlSweepSpec, ScheduleOutbox, SchedulerLike, CompanionMemo, TransactionLimits, IndexKeyEntry, SqlExec, CdcChangeKey } from '@lunora/shard-engine';
|
|
2
2
|
export { type AdvisorProcedure, type AdvisoryFinding, type AggregateIndexDefinitionLike, type DataMigrationLike, type DatabaseWriterLike, type ExportRow, type ExternalSourceLike, type FlagsResult, type ImportShardResult, type KeyRange, type MaskPoliciesResult, type MigrationRunResult, type MutationDelta, type QueuesResult, REPROJECTION_MIGRATION_PREFIX, type RankIndexDefinitionLike, type RelatedPage, type RlsPoliciesResult, type SchedulerLike, type SchemaLike, type SearchBackfillProgress, type ShardRankPageResult, type SourceClientLike, type SqlExec, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionIdentity, type SystemReaderStorageLike, type TransactionHeadroomTracker, UNVOUCHABLE_DEP, type ValidatorLike, type VectorBackfillProgress, type WhereInput, type WorkflowsResult, type WriteHook, applyCdcChanges, assertShapeShardable, backfillSearchIndexes, backfillVectorIndexes, buildReprojectionMigration, clearMemoryTables, countLegacyRows, createReadFootprint, createShardCtxDb, exportShardRows, importShardRows, isSourceDue, markUnvouchableReads, pullExternalSourceIncrementalTick, pullExternalSourceTick, reprojectionMigrationId, reprojectionTables, runDataMigration, runShardMigrations, subscriptionListDeltas } from '@lunora/shard-engine';
|
|
3
3
|
import { DatabaseInstrumentation, MetricHistoryOptions, LogEventInput, TraceAnchor, ContextLogLevel, ContextTracer, SqlClientLike, ContextFetch, ContextMetrics } from '@lunora/observability';
|
|
4
4
|
import { SecretValueHost } from '@lunora/platform';
|
|
@@ -1516,6 +1516,8 @@ declare abstract class ShardDO {
|
|
|
1516
1516
|
* subclass can reach it; nothing in this class calls it.
|
|
1517
1517
|
*/
|
|
1518
1518
|
protected readonly secretValues: SecretValueHost;
|
|
1519
|
+
/** Companions the per-dispatch ctx-db has verified, shared across dispatches through {@link ShardDO.ctxDbTuning}. */
|
|
1520
|
+
private readonly companionMemo;
|
|
1519
1521
|
private readonly deliveryAuthorization;
|
|
1520
1522
|
private readonly deliveryFence;
|
|
1521
1523
|
private readonly deliveryResponsePermits;
|
|
@@ -1870,14 +1872,8 @@ declare abstract class ShardDO {
|
|
|
1870
1872
|
private pendingRefreshTables;
|
|
1871
1873
|
/** True while {@link ShardDO.drainSubscriptionRefreshes} is running; the single-waiter gate that coalesces concurrent flushes. */
|
|
1872
1874
|
private refreshInFlight;
|
|
1873
|
-
/**
|
|
1874
|
-
|
|
1875
|
-
* `refreshSubscriptions` skip re-running queries whose tables were
|
|
1876
|
-
* untouched and suppress pushes when the re-run result is unchanged. Held
|
|
1877
|
-
* in memory only — it does not survive hibernation, which is safe: a cold
|
|
1878
|
-
* memo simply forces one re-run and (at most) one redundant push.
|
|
1879
|
-
*/
|
|
1880
|
-
private readonly subMemos;
|
|
1875
|
+
/** Subscription memos and the socket table index the write-flush fan-outs filter on. */
|
|
1876
|
+
private readonly socketIndex;
|
|
1881
1877
|
/**
|
|
1882
1878
|
* Decoded socket attachments, so a write flush's two fan-out passes do not each
|
|
1883
1879
|
* `deserializeAttachment` (a structured-clone decode of up to 16 KiB) on every
|
|
@@ -1892,7 +1888,7 @@ declare abstract class ShardDO {
|
|
|
1892
1888
|
/**
|
|
1893
1889
|
* Subscriptions whose refresh keeps throwing, so a deterministic failure is
|
|
1894
1890
|
* not re-run (and re-announced) on every write flush. In memory only, like
|
|
1895
|
-
*
|
|
1891
|
+
* the subscription memos: a cold DO forgets and simply retries.
|
|
1896
1892
|
*/
|
|
1897
1893
|
private readonly subscriptionFailures;
|
|
1898
1894
|
/**
|
|
@@ -2276,7 +2272,7 @@ declare abstract class ShardDO {
|
|
|
2276
2272
|
/**
|
|
2277
2273
|
* Exact per-path metric deltas not yet written to `__lunora_metrics*`. Every
|
|
2278
2274
|
* dispatch folds in here; {@link ShardDO.maybeFlushMetrics} writes the sum once
|
|
2279
|
-
* every N dispatches ({@link ShardDO.metricsFlushEvery}, default
|
|
2275
|
+
* every N dispatches ({@link ShardDO.metricsFlushEvery}, default 8), so rates stay exact
|
|
2280
2276
|
* and only write frequency drops. In memory only: an evicted DO loses at most
|
|
2281
2277
|
* N-1 dispatches of counters (no alarm flush).
|
|
2282
2278
|
*/
|
|
@@ -4069,9 +4065,18 @@ declare abstract class ShardDO {
|
|
|
4069
4065
|
*/
|
|
4070
4066
|
protected ctxDbTuning(): {
|
|
4071
4067
|
cache?: ReactiveCache;
|
|
4068
|
+
companionMemo: CompanionMemo;
|
|
4072
4069
|
maxRelationKeys?: number;
|
|
4073
4070
|
relationExistsPushDown?: "always" | "auto" | "never";
|
|
4074
4071
|
};
|
|
4072
|
+
/**
|
|
4073
|
+
* Forget every companion the ctx-db memo holds as verified, so the next write
|
|
4074
|
+
* re-checks each against its durable marker. Called wherever a marker or a
|
|
4075
|
+
* companion can change behind the memo: a migration (the generated
|
|
4076
|
+
* `ensureMigrated`), a rolled-back transaction, and the `rebuildCompanions`
|
|
4077
|
+
* admin op.
|
|
4078
|
+
*/
|
|
4079
|
+
protected invalidateCompanionMemo(): void;
|
|
4075
4080
|
/**
|
|
4076
4081
|
* Whether `functionPath` may have its result memoized by the reactive cache.
|
|
4077
4082
|
*
|
|
@@ -4550,7 +4555,7 @@ declare abstract class ShardDO {
|
|
|
4550
4555
|
* The durable write is COALESCED, not per-dispatch: the call is folded into
|
|
4551
4556
|
* {@link ShardDO.pendingFunctionMetrics} (exact counts, durations, scans and
|
|
4552
4557
|
* index hits) and {@link ShardDO.maybeFlushMetrics} writes the whole delta once
|
|
4553
|
-
* every N dispatches ({@link ShardDO.metricsFlushEvery}; default 1 = every dispatch),
|
|
4558
|
+
* every N dispatches ({@link ShardDO.metricsFlushEvery}; default 8; 1 = every dispatch),
|
|
4554
4559
|
* so the durable counters stay exact and only the write frequency drops.
|
|
4555
4560
|
*/
|
|
4556
4561
|
private recordFunctionCall;
|
|
@@ -4594,9 +4599,10 @@ declare abstract class ShardDO {
|
|
|
4594
4599
|
private flushUnwrittenMetrics;
|
|
4595
4600
|
/**
|
|
4596
4601
|
* Dispatches per durable metric write (env `LUNORA_METRICS_FLUSH_EVERY`): a positive
|
|
4597
|
-
* integer, default
|
|
4598
|
-
* non-numeric or < 1 values fall back to
|
|
4599
|
-
* dispatches of un-flushed counters
|
|
4602
|
+
* integer, default {@link DEFAULT_METRICS_FLUSH_EVERY} (8). Unset, blank, fractional,
|
|
4603
|
+
* non-numeric or < 1 values fall back to the default. An evicted DO loses at most N-1
|
|
4604
|
+
* dispatches of un-flushed counters (7 by default); errored or conflicted dispatches
|
|
4605
|
+
* and minute-boundary crossings still flush immediately. Set 1 to write every dispatch.
|
|
4600
4606
|
*/
|
|
4601
4607
|
private metricsFlushEvery;
|
|
4602
4608
|
/**
|
|
@@ -5399,6 +5405,8 @@ declare abstract class ShardDO {
|
|
|
5399
5405
|
* registers AFTER the unregister, not before it.
|
|
5400
5406
|
*/
|
|
5401
5407
|
private serializeRegistry;
|
|
5408
|
+
/** The `SHARD_REGISTRY_DO_SECRET` the registry requires of its callers, when one is provisioned. */
|
|
5409
|
+
private registrySecret;
|
|
5402
5410
|
/** The registry stub, pinned to this DO's own jurisdiction — the subnamespace the worker pins the registry it reads. */
|
|
5403
5411
|
private registryStub;
|
|
5404
5412
|
/**
|
|
@@ -5481,7 +5489,7 @@ declare abstract class ShardDO {
|
|
|
5481
5489
|
* observable behavior rather than being a pure optimization:
|
|
5482
5490
|
*
|
|
5483
5491
|
* (a) Per-socket memo divergence. The frame a socket receives depends on its
|
|
5484
|
-
* OWN
|
|
5492
|
+
* OWN subscription memo (`pushSubscriptionData`): one socket may need a
|
|
5485
5493
|
* `{type:"delta"}`, a freshly-subscribed socket a full `{type:"data"}`
|
|
5486
5494
|
* snapshot, and an up-to-date socket nothing at all. So only the QUERY RUN +
|
|
5487
5495
|
* its result can be shared — `pushSubscriptionData` must still run per socket.
|
|
@@ -5548,6 +5556,11 @@ declare abstract class ShardDO {
|
|
|
5548
5556
|
* registered, so it recovers by itself once a retry succeeds.
|
|
5549
5557
|
*/
|
|
5550
5558
|
private noteFailingSubscription;
|
|
5559
|
+
/**
|
|
5560
|
+
* Whether the subscription's memo proves its result unchanged by this flush, so
|
|
5561
|
+
* an authorized run can settle from the memo instead of re-running the query.
|
|
5562
|
+
*/
|
|
5563
|
+
private memoSkipsRun;
|
|
5551
5564
|
private refreshSubscriptions;
|
|
5552
5565
|
/**
|
|
5553
5566
|
* Run {@link ShardDO.seedSubscription} and fail the ONE subscription — never
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionIdentity, SchemaLike, DatabaseWriterLike, CrossShardReadArgs, CdcChange, FilterClause, ExportRow, MigrationDirection, ReadFootprint, DependencyTracker, ReactiveCache, ShapeProbeCounters, GlobalPollCounters, ReactiveCacheOptions, TransactionHeadroomTracker, ShardSocketLike, LifecycleDispatchInfo, MigrationRunResult, SearchBackfillProgress, VectorBackfillProgress, TableIndexInfo, ColumnMeta, AdvisoryFinding, AdvisorProcedure, RlsPoliciesResult, MaskPoliciesResult, StorageRulesResult, StudioFeaturesResult, FlagsResult, QueuesResult, WorkflowsResult, ImportShardResult, RelatedPage, ShardRankPageResult, SubscriptionQuery, ShapeSubscriptionQuery, MutationDelta, KeyRange, ResolvedShape, ShapeRow, TtlSweepSpec, ScheduleOutbox, SchedulerLike, TransactionLimits, IndexKeyEntry, SqlExec, CdcChangeKey } from '@lunora/shard-engine';
|
|
1
|
+
import { SubscriptionIdentity, SchemaLike, DatabaseWriterLike, CrossShardReadArgs, CdcChange, FilterClause, ExportRow, MigrationDirection, ReadFootprint, DependencyTracker, ReactiveCache, ShapeProbeCounters, GlobalPollCounters, ReactiveCacheOptions, TransactionHeadroomTracker, ShardSocketLike, LifecycleDispatchInfo, MigrationRunResult, SearchBackfillProgress, VectorBackfillProgress, TableIndexInfo, ColumnMeta, AdvisoryFinding, AdvisorProcedure, RlsPoliciesResult, MaskPoliciesResult, StorageRulesResult, StudioFeaturesResult, FlagsResult, QueuesResult, WorkflowsResult, ImportShardResult, RelatedPage, ShardRankPageResult, SubscriptionQuery, ShapeSubscriptionQuery, MutationDelta, KeyRange, ResolvedShape, ShapeRow, TtlSweepSpec, ScheduleOutbox, SchedulerLike, CompanionMemo, TransactionLimits, IndexKeyEntry, SqlExec, CdcChangeKey } from '@lunora/shard-engine';
|
|
2
2
|
export { type AdvisorProcedure, type AdvisoryFinding, type AggregateIndexDefinitionLike, type DataMigrationLike, type DatabaseWriterLike, type ExportRow, type ExternalSourceLike, type FlagsResult, type ImportShardResult, type KeyRange, type MaskPoliciesResult, type MigrationRunResult, type MutationDelta, type QueuesResult, REPROJECTION_MIGRATION_PREFIX, type RankIndexDefinitionLike, type RelatedPage, type RlsPoliciesResult, type SchedulerLike, type SchemaLike, type SearchBackfillProgress, type ShardRankPageResult, type SourceClientLike, type SqlExec, type StorageRulesResult, type StudioFeaturesResult, type SubscriptionIdentity, type SystemReaderStorageLike, type TransactionHeadroomTracker, UNVOUCHABLE_DEP, type ValidatorLike, type VectorBackfillProgress, type WhereInput, type WorkflowsResult, type WriteHook, applyCdcChanges, assertShapeShardable, backfillSearchIndexes, backfillVectorIndexes, buildReprojectionMigration, clearMemoryTables, countLegacyRows, createReadFootprint, createShardCtxDb, exportShardRows, importShardRows, isSourceDue, markUnvouchableReads, pullExternalSourceIncrementalTick, pullExternalSourceTick, reprojectionMigrationId, reprojectionTables, runDataMigration, runShardMigrations, subscriptionListDeltas } from '@lunora/shard-engine';
|
|
3
3
|
import { DatabaseInstrumentation, MetricHistoryOptions, LogEventInput, TraceAnchor, ContextLogLevel, ContextTracer, SqlClientLike, ContextFetch, ContextMetrics } from '@lunora/observability';
|
|
4
4
|
import { SecretValueHost } from '@lunora/platform';
|
|
@@ -1516,6 +1516,8 @@ declare abstract class ShardDO {
|
|
|
1516
1516
|
* subclass can reach it; nothing in this class calls it.
|
|
1517
1517
|
*/
|
|
1518
1518
|
protected readonly secretValues: SecretValueHost;
|
|
1519
|
+
/** Companions the per-dispatch ctx-db has verified, shared across dispatches through {@link ShardDO.ctxDbTuning}. */
|
|
1520
|
+
private readonly companionMemo;
|
|
1519
1521
|
private readonly deliveryAuthorization;
|
|
1520
1522
|
private readonly deliveryFence;
|
|
1521
1523
|
private readonly deliveryResponsePermits;
|
|
@@ -1870,14 +1872,8 @@ declare abstract class ShardDO {
|
|
|
1870
1872
|
private pendingRefreshTables;
|
|
1871
1873
|
/** True while {@link ShardDO.drainSubscriptionRefreshes} is running; the single-waiter gate that coalesces concurrent flushes. */
|
|
1872
1874
|
private refreshInFlight;
|
|
1873
|
-
/**
|
|
1874
|
-
|
|
1875
|
-
* `refreshSubscriptions` skip re-running queries whose tables were
|
|
1876
|
-
* untouched and suppress pushes when the re-run result is unchanged. Held
|
|
1877
|
-
* in memory only — it does not survive hibernation, which is safe: a cold
|
|
1878
|
-
* memo simply forces one re-run and (at most) one redundant push.
|
|
1879
|
-
*/
|
|
1880
|
-
private readonly subMemos;
|
|
1875
|
+
/** Subscription memos and the socket table index the write-flush fan-outs filter on. */
|
|
1876
|
+
private readonly socketIndex;
|
|
1881
1877
|
/**
|
|
1882
1878
|
* Decoded socket attachments, so a write flush's two fan-out passes do not each
|
|
1883
1879
|
* `deserializeAttachment` (a structured-clone decode of up to 16 KiB) on every
|
|
@@ -1892,7 +1888,7 @@ declare abstract class ShardDO {
|
|
|
1892
1888
|
/**
|
|
1893
1889
|
* Subscriptions whose refresh keeps throwing, so a deterministic failure is
|
|
1894
1890
|
* not re-run (and re-announced) on every write flush. In memory only, like
|
|
1895
|
-
*
|
|
1891
|
+
* the subscription memos: a cold DO forgets and simply retries.
|
|
1896
1892
|
*/
|
|
1897
1893
|
private readonly subscriptionFailures;
|
|
1898
1894
|
/**
|
|
@@ -2276,7 +2272,7 @@ declare abstract class ShardDO {
|
|
|
2276
2272
|
/**
|
|
2277
2273
|
* Exact per-path metric deltas not yet written to `__lunora_metrics*`. Every
|
|
2278
2274
|
* dispatch folds in here; {@link ShardDO.maybeFlushMetrics} writes the sum once
|
|
2279
|
-
* every N dispatches ({@link ShardDO.metricsFlushEvery}, default
|
|
2275
|
+
* every N dispatches ({@link ShardDO.metricsFlushEvery}, default 8), so rates stay exact
|
|
2280
2276
|
* and only write frequency drops. In memory only: an evicted DO loses at most
|
|
2281
2277
|
* N-1 dispatches of counters (no alarm flush).
|
|
2282
2278
|
*/
|
|
@@ -4069,9 +4065,18 @@ declare abstract class ShardDO {
|
|
|
4069
4065
|
*/
|
|
4070
4066
|
protected ctxDbTuning(): {
|
|
4071
4067
|
cache?: ReactiveCache;
|
|
4068
|
+
companionMemo: CompanionMemo;
|
|
4072
4069
|
maxRelationKeys?: number;
|
|
4073
4070
|
relationExistsPushDown?: "always" | "auto" | "never";
|
|
4074
4071
|
};
|
|
4072
|
+
/**
|
|
4073
|
+
* Forget every companion the ctx-db memo holds as verified, so the next write
|
|
4074
|
+
* re-checks each against its durable marker. Called wherever a marker or a
|
|
4075
|
+
* companion can change behind the memo: a migration (the generated
|
|
4076
|
+
* `ensureMigrated`), a rolled-back transaction, and the `rebuildCompanions`
|
|
4077
|
+
* admin op.
|
|
4078
|
+
*/
|
|
4079
|
+
protected invalidateCompanionMemo(): void;
|
|
4075
4080
|
/**
|
|
4076
4081
|
* Whether `functionPath` may have its result memoized by the reactive cache.
|
|
4077
4082
|
*
|
|
@@ -4550,7 +4555,7 @@ declare abstract class ShardDO {
|
|
|
4550
4555
|
* The durable write is COALESCED, not per-dispatch: the call is folded into
|
|
4551
4556
|
* {@link ShardDO.pendingFunctionMetrics} (exact counts, durations, scans and
|
|
4552
4557
|
* index hits) and {@link ShardDO.maybeFlushMetrics} writes the whole delta once
|
|
4553
|
-
* every N dispatches ({@link ShardDO.metricsFlushEvery}; default 1 = every dispatch),
|
|
4558
|
+
* every N dispatches ({@link ShardDO.metricsFlushEvery}; default 8; 1 = every dispatch),
|
|
4554
4559
|
* so the durable counters stay exact and only the write frequency drops.
|
|
4555
4560
|
*/
|
|
4556
4561
|
private recordFunctionCall;
|
|
@@ -4594,9 +4599,10 @@ declare abstract class ShardDO {
|
|
|
4594
4599
|
private flushUnwrittenMetrics;
|
|
4595
4600
|
/**
|
|
4596
4601
|
* Dispatches per durable metric write (env `LUNORA_METRICS_FLUSH_EVERY`): a positive
|
|
4597
|
-
* integer, default
|
|
4598
|
-
* non-numeric or < 1 values fall back to
|
|
4599
|
-
* dispatches of un-flushed counters
|
|
4602
|
+
* integer, default {@link DEFAULT_METRICS_FLUSH_EVERY} (8). Unset, blank, fractional,
|
|
4603
|
+
* non-numeric or < 1 values fall back to the default. An evicted DO loses at most N-1
|
|
4604
|
+
* dispatches of un-flushed counters (7 by default); errored or conflicted dispatches
|
|
4605
|
+
* and minute-boundary crossings still flush immediately. Set 1 to write every dispatch.
|
|
4600
4606
|
*/
|
|
4601
4607
|
private metricsFlushEvery;
|
|
4602
4608
|
/**
|
|
@@ -5399,6 +5405,8 @@ declare abstract class ShardDO {
|
|
|
5399
5405
|
* registers AFTER the unregister, not before it.
|
|
5400
5406
|
*/
|
|
5401
5407
|
private serializeRegistry;
|
|
5408
|
+
/** The `SHARD_REGISTRY_DO_SECRET` the registry requires of its callers, when one is provisioned. */
|
|
5409
|
+
private registrySecret;
|
|
5402
5410
|
/** The registry stub, pinned to this DO's own jurisdiction — the subnamespace the worker pins the registry it reads. */
|
|
5403
5411
|
private registryStub;
|
|
5404
5412
|
/**
|
|
@@ -5481,7 +5489,7 @@ declare abstract class ShardDO {
|
|
|
5481
5489
|
* observable behavior rather than being a pure optimization:
|
|
5482
5490
|
*
|
|
5483
5491
|
* (a) Per-socket memo divergence. The frame a socket receives depends on its
|
|
5484
|
-
* OWN
|
|
5492
|
+
* OWN subscription memo (`pushSubscriptionData`): one socket may need a
|
|
5485
5493
|
* `{type:"delta"}`, a freshly-subscribed socket a full `{type:"data"}`
|
|
5486
5494
|
* snapshot, and an up-to-date socket nothing at all. So only the QUERY RUN +
|
|
5487
5495
|
* its result can be shared — `pushSubscriptionData` must still run per socket.
|
|
@@ -5548,6 +5556,11 @@ declare abstract class ShardDO {
|
|
|
5548
5556
|
* registered, so it recovers by itself once a retry succeeds.
|
|
5549
5557
|
*/
|
|
5550
5558
|
private noteFailingSubscription;
|
|
5559
|
+
/**
|
|
5560
|
+
* Whether the subscription's memo proves its result unchanged by this flush, so
|
|
5561
|
+
* an authorized run can settle from the memo instead of re-running the query.
|
|
5562
|
+
*/
|
|
5563
|
+
private memoSkipsRun;
|
|
5551
5564
|
private refreshSubscriptions;
|
|
5552
5565
|
/**
|
|
5553
5566
|
* Run {@link ShardDO.seedSubscription} and fail the ONE subscription — never
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{installDeliveryFence as a}from"./packem_shared/installDeliveryFence-B6M9KOnb.mjs";import{MERGED_ROLES as t,mergeDurableObjects as c,roleNamespace as S}from"./packem_shared/MERGED_ROLES-C4RToZ16.mjs";import{serveRelationFanout as
|
|
1
|
+
import{installDeliveryFence as a}from"./packem_shared/installDeliveryFence-B6M9KOnb.mjs";import{MERGED_ROLES as t,mergeDurableObjects as c,roleNamespace as S}from"./packem_shared/MERGED_ROLES-C4RToZ16.mjs";import{serveRelationFanout as s}from"./packem_shared/serveRelationFanout-DcSjzAZv.mjs";import{SESSION_DO_TTL_DEFAULT as n,SessionDO as p}from"./packem_shared/SESSION_DO_TTL_DEFAULT-CyF6dsyR.mjs";import{ROOT_DO_SIZE_WARN_BYTES as d,ROOT_SHARD_NAME as m,ShardDO as D}from"./packem_shared/ROOT_DO_SIZE_WARN_BYTES-DLzMQc2f.mjs";import{S as O,a as h}from"./packem_shared/shard-registry-do-DVfOqeqi.mjs";import{createStableIdFactory as x,createStableRandomFactory as u}from"./packem_shared/createStableIdFactory-DPDT_chw.mjs";import{createShardAlarms as f,createShardDirectory as T,createShardHost as I,createShardKvStore as A,createShardPlatform as M,createSocketHost as g,createWorkerPlatform as y}from"@lunora/platform-cloudflare";import{REPROJECTION_MIGRATION_PREFIX as k,UNVOUCHABLE_DEP as F,applyCdcChanges as L,assertShapeShardable as C,backfillSearchIndexes as H,backfillVectorIndexes as P,buildReprojectionMigration as j,clearMemoryTables as v,countLegacyRows as U,createReadFootprint as w,createShardCtxDb as G,exportShardRows as B,importShardRows as V,isSourceDue as W,markUnvouchableReads as Y,pullExternalSourceIncrementalTick as J,pullExternalSourceTick as K,reprojectionMigrationId as X,reprojectionTables as Z,runDataMigration as q,runShardMigrations as z,subscriptionListDeltas as Q}from"@lunora/shard-engine";export{t as MERGED_ROLES,k as REPROJECTION_MIGRATION_PREFIX,d as ROOT_DO_SIZE_WARN_BYTES,m as ROOT_SHARD_NAME,n as SESSION_DO_TTL_DEFAULT,O as SHARD_REGISTRY_DO_NAME,p as SessionDO,D as ShardDO,h as ShardRegistryDO,F as UNVOUCHABLE_DEP,L as applyCdcChanges,C as assertShapeShardable,H as backfillSearchIndexes,P as backfillVectorIndexes,j as buildReprojectionMigration,v as clearMemoryTables,U as countLegacyRows,w as createReadFootprint,f as createShardAlarms,G as createShardCtxDb,T as createShardDirectory,I as createShardHost,A as createShardKvStore,M as createShardPlatform,g as createSocketHost,x as createStableIdFactory,u as createStableRandomFactory,y as createWorkerPlatform,B as exportShardRows,V as importShardRows,a as installDeliveryFence,W as isSourceDue,Y as markUnvouchableReads,c as mergeDurableObjects,J as pullExternalSourceIncrementalTick,K as pullExternalSourceTick,X as reprojectionMigrationId,Z as reprojectionTables,S as roleNamespace,q as runDataMigration,z as runShardMigrations,s as serveRelationFanout,Q as subscriptionListDeltas};
|