@graphrefly/graphrefly 0.15.0 → 0.17.0

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.
Files changed (75) hide show
  1. package/dist/{chunk-4APC3AFN.js → chunk-2PORF4RP.js} +22 -49
  2. package/dist/chunk-2PORF4RP.js.map +1 -0
  3. package/dist/{chunk-QVYZD65U.js → chunk-646OG3PO.js} +10 -38
  4. package/dist/chunk-646OG3PO.js.map +1 -0
  5. package/dist/{chunk-H243FWYP.js → chunk-BV3TPSBK.js} +1 -2
  6. package/dist/chunk-BV3TPSBK.js.map +1 -0
  7. package/dist/chunk-EBNKJULL.js +231 -0
  8. package/dist/chunk-EBNKJULL.js.map +1 -0
  9. package/dist/{chunk-XQ4UMAU7.js → chunk-F2ULI3Q3.js} +2 -2
  10. package/dist/{chunk-CRACCCJY.js → chunk-IHJHBADD.js} +29 -5
  11. package/dist/chunk-IHJHBADD.js.map +1 -0
  12. package/dist/{chunk-YW6LFCFS.js → chunk-R6OHUUYB.js} +3 -3
  13. package/dist/{chunk-2ZICUAUJ.js → chunk-XJ6EMQ22.js} +10 -12
  14. package/dist/chunk-XJ6EMQ22.js.map +1 -0
  15. package/dist/{chunk-GKRKDYNT.js → chunk-YXROQFXZ.js} +3 -3
  16. package/dist/compat/nestjs/index.cjs +38 -42
  17. package/dist/compat/nestjs/index.cjs.map +1 -1
  18. package/dist/compat/nestjs/index.d.cts +4 -4
  19. package/dist/compat/nestjs/index.d.ts +4 -4
  20. package/dist/compat/nestjs/index.js +7 -7
  21. package/dist/core/index.cjs +0 -1
  22. package/dist/core/index.cjs.map +1 -1
  23. package/dist/core/index.d.cts +2 -2
  24. package/dist/core/index.d.ts +2 -2
  25. package/dist/core/index.js +3 -3
  26. package/dist/extra/index.cjs +27 -79
  27. package/dist/extra/index.cjs.map +1 -1
  28. package/dist/extra/index.d.cts +4 -4
  29. package/dist/extra/index.d.ts +4 -4
  30. package/dist/extra/index.js +3 -3
  31. package/dist/graph/index.cjs +151 -5
  32. package/dist/graph/index.cjs.map +1 -1
  33. package/dist/graph/index.d.cts +3 -3
  34. package/dist/graph/index.d.ts +3 -3
  35. package/dist/graph/index.js +10 -6
  36. package/dist/{graph-BXIK5Dq5.d.ts → graph-Dc-P9BVm.d.ts} +15 -3
  37. package/dist/{graph-BhADtuFU.d.cts → graph-fCsaaVIa.d.cts} +15 -3
  38. package/dist/{index-BkToATim.d.ts → index-4OIX-q0C.d.cts} +88 -3
  39. package/dist/{index-DSp5R3Xq.d.ts → index-BBVBYPxr.d.cts} +4 -4
  40. package/dist/{index-BNB0KjKe.d.ts → index-BmoUvOGN.d.ts} +1 -1
  41. package/dist/{index-DBhLjWSV.d.cts → index-ClaKZFPl.d.cts} +100 -31
  42. package/dist/{index-Wa8jXne6.d.cts → index-D7y9Q8W4.d.ts} +88 -3
  43. package/dist/{index-Dqemj9q0.d.cts → index-DWq0P9T6.d.ts} +4 -4
  44. package/dist/{index-fYObbpUw.d.ts → index-DhXznWyH.d.ts} +2 -2
  45. package/dist/{index-DANO9Gg7.d.cts → index-DlGMf_Qe.d.cts} +2 -2
  46. package/dist/{index-CKyYg4IP.d.ts → index-N704txAA.d.ts} +100 -31
  47. package/dist/{index-DKIyo4Bq.d.cts → index-YlOH1Gw6.d.cts} +1 -1
  48. package/dist/index.cjs +302 -231
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +71 -41
  51. package/dist/index.d.ts +71 -41
  52. package/dist/index.js +131 -151
  53. package/dist/index.js.map +1 -1
  54. package/dist/{meta-CrZUQAJ6.d.cts → meta-BV4pj9ML.d.cts} +6 -0
  55. package/dist/{meta-CrZUQAJ6.d.ts → meta-BV4pj9ML.d.ts} +6 -0
  56. package/dist/observable-Cz-AWhwR.d.cts +42 -0
  57. package/dist/observable-DCqlwGyl.d.ts +42 -0
  58. package/dist/patterns/reactive-layout/index.cjs +26 -3
  59. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  60. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  61. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  62. package/dist/patterns/reactive-layout/index.js +4 -4
  63. package/package.json +1 -1
  64. package/dist/chunk-2ZICUAUJ.js.map +0 -1
  65. package/dist/chunk-4APC3AFN.js.map +0 -1
  66. package/dist/chunk-CRACCCJY.js.map +0 -1
  67. package/dist/chunk-H243FWYP.js.map +0 -1
  68. package/dist/chunk-QVYZD65U.js.map +0 -1
  69. package/dist/chunk-ZHTHUX5D.js +0 -107
  70. package/dist/chunk-ZHTHUX5D.js.map +0 -1
  71. package/dist/reactive-log-ChbpUrY2.d.cts +0 -137
  72. package/dist/reactive-log-DV--7BWd.d.ts +0 -137
  73. /package/dist/{chunk-XQ4UMAU7.js.map → chunk-F2ULI3Q3.js.map} +0 -0
  74. /package/dist/{chunk-YW6LFCFS.js.map → chunk-R6OHUUYB.js.map} +0 -0
  75. /package/dist/{chunk-GKRKDYNT.js.map → chunk-YXROQFXZ.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- export { A as AdapterHandlers, b as AsyncSourceOpts, B as BackoffPreset, c as BackoffStrategy, d as BatchMessage, e as BridgeMessage, f as BufferedSinkHandle, C as CSVRow, g as CacheEvictionPolicy, h as CacheTier, i as CascadingCache, j as CascadingCacheOptions, k as CheckpointAdapter, l as CheckpointToRedisOptions, m as CheckpointToS3Options, n as CircuitBreaker, o as CircuitBreakerOptions, p as CircuitOpenError, q as CircuitState, r as ClickHouseClientLike, s as ClickHouseInsertClientLike, t as ClickHouseRow, u as CronSchedule, v as DictCheckpointAdapter, D as DistillBundle, w as DistillOptions, x as DrizzleQueryLike, y as ErrorMessage, z as EventTargetLike, F as ExponentialBackoffOptions, E as Extraction, G as FSEvent, H as FSEventType, I as FileCheckpointAdapter, J as FileWriterLike, K as FromCSVOptions, L as FromClickHouseWatchOptions, M as FromCronOptions, O as FromDrizzleOptions, P as FromFSWatchOptions, Q as FromGitHookOptions, S as FromHTTPOptions, T as FromKafkaOptions, U as FromKyselyOptions, V as FromMCPOptions, W as FromNATSOptions, X as FromNDJSONOptions, Y as FromOTelOptions, Z as FromPrismaOptions, _ as FromPrometheusOptions, $ as FromPulsarOptions, a0 as FromRabbitMQOptions, a1 as FromRedisStreamOptions, a2 as FromSqliteOptions, a3 as FromStatsDOptions, a4 as FromSyslogOptions, a5 as GitEvent, a6 as GitHookType, a7 as HTTPBundle, a8 as IndexRow, a9 as IndexedDbCheckpointSpec, aa as InitMessage, ab as JitterMode, ac as KafkaConsumerLike, ad as KafkaMessage, ae as KafkaProducerLike, af as KyselyQueryLike, ag as LokiClientLike, ah as LokiStream, ai as MCPClientLike, aj as MemoryCheckpointAdapter, ak as MergeMapOptions, al as MongoCollectionLike, am as NATSClientLike, an as NATSMessage, ao as NATSSubscriptionLike, ap as NS_PER_MS, aq as NS_PER_SEC, N as NodeInput, ar as OTelBundle, as as OTelLog, at as OTelMetric, au as OTelRegister, av as OTelSpan, aw as PostgresClientLike, ax as PrismaModelLike, ay as PrometheusMetric, az as PubSubHub, aA as PulsarConsumerLike, aB as PulsarMessage, aC as PulsarProducerLike, aD as RabbitMQChannelLike, aE as RabbitMQMessage, aF as ReactiveIndexBundle, aG as ReactiveIndexOptions, aH as ReactiveIndexSnapshot, aI as ReactiveListBundle, aJ as ReactiveListOptions, R as ReactiveListSnapshot, aK as ReactiveMapBundle, aL as ReactiveMapOptions, a as ReactiveMapSnapshot, aM as ReadyMessage, aN as RedisCheckpointClientLike, aO as RedisClientLike, aP as RedisStreamEntry, aQ as RetryOptions, aR as S3ClientLike, aS as SignalMessage, aT as SinkHandle, aU as SinkTransportError, aV as SqliteCheckpointAdapter, aW as SqliteDbLike, aX as StatsDMetric, aY as StatsDRegister, aZ as StatusValue, a_ as SyslogMessage, a$ as SyslogRegister, b0 as TapObserver, b1 as TempoClientLike, b2 as ThrottleOptions, b3 as TieredStorage, b4 as TieredStorageOptions, b5 as TimeoutError, b6 as ToCSVOptions, b7 as ToClickHouseOptions, b8 as ToFileOptions, b9 as ToKafkaOptions, ba as ToLokiOptions, bb as ToMongoOptions, bc as ToNATSOptions, bd as ToPostgresOptions, be as ToPulsarOptions, bf as ToRabbitMQOptions, bg as ToRedisStreamOptions, bh as ToS3Options, bi as ToSSEOptions, bj as ToSqliteOptions, bk as ToTempoOptions, bl as ToWebSocketOptions, bm as ToWebSocketTransportError, bn as TokenBucket, bo as ValueMessage, bp as VerifiableBundle, bq as VerifiableOptions, br as VerifyValue, bs as WatermarkController, bt as WatermarkOptions, bu as WebSocketLike, bv as WebSocketMessageEventLike, bw as WebSocketRegister, bx as WebhookRegister, by as WithBreakerBundle, bz as WithStatusBundle, bA as WorkerBridge, bB as WorkerBridgeOptions, bC as WorkerSelfHandle, bD as WorkerSelfOptions, bE as WorkerTransport, bF as audit, bG as buffer, bH as bufferCount, bI as bufferTime, bJ as cache, bK as cached, bL as cascadingCache, bM as catchError, bN as checkpointNodeValue, bO as checkpointToRedis, bP as checkpointToS3, bQ as circuitBreaker, bR as combine, bS as combineLatest, bT as concat, bU as concatMap, bV as constant, bW as createTransport, bX as createWatermarkController, bY as debounce, bZ as debounceTime, b_ as decorrelatedJitter, b$ as delay, c0 as deserializeError, c1 as distill, c2 as distinctUntilChanged, c3 as elementAt, c4 as empty, c5 as escapeRegexChar, c6 as exhaustMap, c7 as exponential, c9 as fallback, ca as fibonacci, cb as filter, cc as find, cd as first, ce as firstValueFrom, cf as flatMap, cg as forEach, ch as fromAny, ci as fromAsyncIter, cj as fromCSV, ck as fromClickHouseWatch, cl as fromCron, cm as fromDrizzle, cn as fromEvent, co as fromFSWatch, cp as fromGitHook, cq as fromHTTP, cr as fromIDBRequest, cs as fromIDBTransaction, ct as fromIter, cu as fromKafka, cv as fromKysely, cw as fromMCP, cx as fromNATS, cy as fromNDJSON, cz as fromOTel, cA as fromPrisma, cB as fromPrometheus, cC as fromPromise, cD as fromPulsar, cE as fromRabbitMQ, cF as fromRedisStream, cG as fromSqlite, cH as fromStatsD, cI as fromSyslog, cJ as fromTimer, cK as fromWebSocket, cL as fromWebhook, cM as globToRegExp, cN as interval, cO as last, cP as linear, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveMap, d9 as reduce, da as repeat, db as replay, dc as rescue, dd as resolveBackoffPreset, de as restoreGraphCheckpoint, df as restoreGraphCheckpointIndexedDb, dg as retry, dh as sample, di as saveGraphCheckpoint, dj as saveGraphCheckpointIndexedDb, dk as scan, dl as serializeError, dm as share, dn as shareReplay, dp as signalToName, dq as skip, dr as startWith, ds as switchMap, dt as take, du as takeUntil, dv as takeWhile, dw as tap, dx as throttle, dy as throttleTime, dz as throwError, dA as tieredStorage, dB as timeout, dC as toArray, dD as toCSV, dE as toClickHouse, dF as toFile, dG as toKafka, dH as toLoki, dI as toMongo, dJ as toNATS, dK as toPostgres, dL as toPulsar, dM as toRabbitMQ, dN as toRedisStream, dO as toS3, dP as toSSE, dQ as toSqlite, dR as toTempo, dS as toWebSocket, dT as tokenBucket, dU as tokenTracker, dV as valve, dW as verifiable, dX as window, dY as windowCount, dZ as windowTime, d_ as withBreaker, d$ as withLatestFrom, e0 as withMaxAttempts, e1 as withStatus, e2 as workerBridge, e3 as workerSelf, e4 as zip } from '../index-DBhLjWSV.cjs';
2
- export { a as ReactiveLogBundle, b as ReactiveLogOptions, R as ReactiveLogSnapshot, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from '../reactive-log-ChbpUrY2.cjs';
3
- import '../meta-CrZUQAJ6.cjs';
4
- import '../graph-BhADtuFU.cjs';
1
+ export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, D as DistillBundle, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, E as Extraction, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, N as NodeInput, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from '../index-ClaKZFPl.cjs';
2
+ export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../observable-Cz-AWhwR.cjs';
3
+ import '../meta-BV4pj9ML.cjs';
4
+ import '../graph-fCsaaVIa.cjs';
5
5
  import 'rxjs';
@@ -1,5 +1,5 @@
1
- export { A as AdapterHandlers, b as AsyncSourceOpts, B as BackoffPreset, c as BackoffStrategy, d as BatchMessage, e as BridgeMessage, f as BufferedSinkHandle, C as CSVRow, g as CacheEvictionPolicy, h as CacheTier, i as CascadingCache, j as CascadingCacheOptions, k as CheckpointAdapter, l as CheckpointToRedisOptions, m as CheckpointToS3Options, n as CircuitBreaker, o as CircuitBreakerOptions, p as CircuitOpenError, q as CircuitState, r as ClickHouseClientLike, s as ClickHouseInsertClientLike, t as ClickHouseRow, u as CronSchedule, v as DictCheckpointAdapter, D as DistillBundle, w as DistillOptions, x as DrizzleQueryLike, y as ErrorMessage, z as EventTargetLike, F as ExponentialBackoffOptions, E as Extraction, G as FSEvent, H as FSEventType, I as FileCheckpointAdapter, J as FileWriterLike, K as FromCSVOptions, L as FromClickHouseWatchOptions, M as FromCronOptions, O as FromDrizzleOptions, P as FromFSWatchOptions, Q as FromGitHookOptions, S as FromHTTPOptions, T as FromKafkaOptions, U as FromKyselyOptions, V as FromMCPOptions, W as FromNATSOptions, X as FromNDJSONOptions, Y as FromOTelOptions, Z as FromPrismaOptions, _ as FromPrometheusOptions, $ as FromPulsarOptions, a0 as FromRabbitMQOptions, a1 as FromRedisStreamOptions, a2 as FromSqliteOptions, a3 as FromStatsDOptions, a4 as FromSyslogOptions, a5 as GitEvent, a6 as GitHookType, a7 as HTTPBundle, a8 as IndexRow, a9 as IndexedDbCheckpointSpec, aa as InitMessage, ab as JitterMode, ac as KafkaConsumerLike, ad as KafkaMessage, ae as KafkaProducerLike, af as KyselyQueryLike, ag as LokiClientLike, ah as LokiStream, ai as MCPClientLike, aj as MemoryCheckpointAdapter, ak as MergeMapOptions, al as MongoCollectionLike, am as NATSClientLike, an as NATSMessage, ao as NATSSubscriptionLike, ap as NS_PER_MS, aq as NS_PER_SEC, N as NodeInput, ar as OTelBundle, as as OTelLog, at as OTelMetric, au as OTelRegister, av as OTelSpan, aw as PostgresClientLike, ax as PrismaModelLike, ay as PrometheusMetric, az as PubSubHub, aA as PulsarConsumerLike, aB as PulsarMessage, aC as PulsarProducerLike, aD as RabbitMQChannelLike, aE as RabbitMQMessage, aF as ReactiveIndexBundle, aG as ReactiveIndexOptions, aH as ReactiveIndexSnapshot, aI as ReactiveListBundle, aJ as ReactiveListOptions, R as ReactiveListSnapshot, aK as ReactiveMapBundle, aL as ReactiveMapOptions, a as ReactiveMapSnapshot, aM as ReadyMessage, aN as RedisCheckpointClientLike, aO as RedisClientLike, aP as RedisStreamEntry, aQ as RetryOptions, aR as S3ClientLike, aS as SignalMessage, aT as SinkHandle, aU as SinkTransportError, aV as SqliteCheckpointAdapter, aW as SqliteDbLike, aX as StatsDMetric, aY as StatsDRegister, aZ as StatusValue, a_ as SyslogMessage, a$ as SyslogRegister, b0 as TapObserver, b1 as TempoClientLike, b2 as ThrottleOptions, b3 as TieredStorage, b4 as TieredStorageOptions, b5 as TimeoutError, b6 as ToCSVOptions, b7 as ToClickHouseOptions, b8 as ToFileOptions, b9 as ToKafkaOptions, ba as ToLokiOptions, bb as ToMongoOptions, bc as ToNATSOptions, bd as ToPostgresOptions, be as ToPulsarOptions, bf as ToRabbitMQOptions, bg as ToRedisStreamOptions, bh as ToS3Options, bi as ToSSEOptions, bj as ToSqliteOptions, bk as ToTempoOptions, bl as ToWebSocketOptions, bm as ToWebSocketTransportError, bn as TokenBucket, bo as ValueMessage, bp as VerifiableBundle, bq as VerifiableOptions, br as VerifyValue, bs as WatermarkController, bt as WatermarkOptions, bu as WebSocketLike, bv as WebSocketMessageEventLike, bw as WebSocketRegister, bx as WebhookRegister, by as WithBreakerBundle, bz as WithStatusBundle, bA as WorkerBridge, bB as WorkerBridgeOptions, bC as WorkerSelfHandle, bD as WorkerSelfOptions, bE as WorkerTransport, bF as audit, bG as buffer, bH as bufferCount, bI as bufferTime, bJ as cache, bK as cached, bL as cascadingCache, bM as catchError, bN as checkpointNodeValue, bO as checkpointToRedis, bP as checkpointToS3, bQ as circuitBreaker, bR as combine, bS as combineLatest, bT as concat, bU as concatMap, bV as constant, bW as createTransport, bX as createWatermarkController, bY as debounce, bZ as debounceTime, b_ as decorrelatedJitter, b$ as delay, c0 as deserializeError, c1 as distill, c2 as distinctUntilChanged, c3 as elementAt, c4 as empty, c5 as escapeRegexChar, c6 as exhaustMap, c7 as exponential, c9 as fallback, ca as fibonacci, cb as filter, cc as find, cd as first, ce as firstValueFrom, cf as flatMap, cg as forEach, ch as fromAny, ci as fromAsyncIter, cj as fromCSV, ck as fromClickHouseWatch, cl as fromCron, cm as fromDrizzle, cn as fromEvent, co as fromFSWatch, cp as fromGitHook, cq as fromHTTP, cr as fromIDBRequest, cs as fromIDBTransaction, ct as fromIter, cu as fromKafka, cv as fromKysely, cw as fromMCP, cx as fromNATS, cy as fromNDJSON, cz as fromOTel, cA as fromPrisma, cB as fromPrometheus, cC as fromPromise, cD as fromPulsar, cE as fromRabbitMQ, cF as fromRedisStream, cG as fromSqlite, cH as fromStatsD, cI as fromSyslog, cJ as fromTimer, cK as fromWebSocket, cL as fromWebhook, cM as globToRegExp, cN as interval, cO as last, cP as linear, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveMap, d9 as reduce, da as repeat, db as replay, dc as rescue, dd as resolveBackoffPreset, de as restoreGraphCheckpoint, df as restoreGraphCheckpointIndexedDb, dg as retry, dh as sample, di as saveGraphCheckpoint, dj as saveGraphCheckpointIndexedDb, dk as scan, dl as serializeError, dm as share, dn as shareReplay, dp as signalToName, dq as skip, dr as startWith, ds as switchMap, dt as take, du as takeUntil, dv as takeWhile, dw as tap, dx as throttle, dy as throttleTime, dz as throwError, dA as tieredStorage, dB as timeout, dC as toArray, dD as toCSV, dE as toClickHouse, dF as toFile, dG as toKafka, dH as toLoki, dI as toMongo, dJ as toNATS, dK as toPostgres, dL as toPulsar, dM as toRabbitMQ, dN as toRedisStream, dO as toS3, dP as toSSE, dQ as toSqlite, dR as toTempo, dS as toWebSocket, dT as tokenBucket, dU as tokenTracker, dV as valve, dW as verifiable, dX as window, dY as windowCount, dZ as windowTime, d_ as withBreaker, d$ as withLatestFrom, e0 as withMaxAttempts, e1 as withStatus, e2 as workerBridge, e3 as workerSelf, e4 as zip } from '../index-CKyYg4IP.js';
2
- export { a as ReactiveLogBundle, b as ReactiveLogOptions, R as ReactiveLogSnapshot, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from '../reactive-log-DV--7BWd.js';
3
- import '../meta-CrZUQAJ6.js';
4
- import '../graph-BXIK5Dq5.js';
1
+ export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, D as DistillBundle, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, E as Extraction, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, N as NodeInput, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from '../index-N704txAA.js';
2
+ export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../observable-DCqlwGyl.js';
3
+ import '../meta-BV4pj9ML.js';
4
+ import '../graph-Dc-P9BVm.js';
5
5
  import 'rxjs';
@@ -136,7 +136,7 @@ import {
136
136
  workerBridge,
137
137
  workerSelf,
138
138
  zip
139
- } from "../chunk-4APC3AFN.js";
139
+ } from "../chunk-2PORF4RP.js";
140
140
  import {
141
141
  cached,
142
142
  createWatermarkController,
@@ -169,9 +169,9 @@ import {
169
169
  toArray,
170
170
  toMessages$,
171
171
  toObservable
172
- } from "../chunk-QVYZD65U.js";
172
+ } from "../chunk-646OG3PO.js";
173
173
  import "../chunk-WZ2Z2CRV.js";
174
- import "../chunk-H243FWYP.js";
174
+ import "../chunk-BV3TPSBK.js";
175
175
  export {
176
176
  CircuitOpenError,
177
177
  DictCheckpointAdapter,
@@ -25,9 +25,11 @@ __export(graph_exports, {
25
25
  JsonCodec: () => JsonCodec,
26
26
  createDagCborCodec: () => createDagCborCodec,
27
27
  createDagCborZstdCodec: () => createDagCborZstdCodec,
28
+ graphProfile: () => graphProfile,
28
29
  negotiateCodec: () => negotiateCodec,
29
30
  reachable: () => reachable,
30
- replayWAL: () => replayWAL
31
+ replayWAL: () => replayWAL,
32
+ sizeof: () => sizeof
31
33
  });
32
34
  module.exports = __toCommonJS(graph_exports);
33
35
 
@@ -787,7 +789,6 @@ var NodeImpl = class {
787
789
  this._downInternal(wasDirty ? [[RESOLVED]] : [[DIRTY], [RESOLVED]]);
788
790
  return;
789
791
  }
790
- this._cached = value;
791
792
  this._downInternal(wasDirty ? [[DATA, value]] : [[DIRTY], [DATA, value]]);
792
793
  }
793
794
  _runFn() {
@@ -1823,6 +1824,7 @@ var Graph = class _Graph {
1823
1824
  /** @internal — exposed for {@link teardownMountedGraph}. */
1824
1825
  _mounts = /* @__PURE__ */ new Map();
1825
1826
  _autoCheckpointDisposers = /* @__PURE__ */ new Set();
1827
+ _disposers = /* @__PURE__ */ new Set();
1826
1828
  _defaultVersioningLevel;
1827
1829
  static registerFactory(pattern, factory) {
1828
1830
  if (!pattern) {
@@ -2958,10 +2960,33 @@ var Graph = class _Graph {
2958
2960
  // Lifecycle & persistence (§3.7–§3.8)
2959
2961
  // ——————————————————————————————————————————————————————————————
2960
2962
  /**
2961
- * Sends `[[TEARDOWN]]` to all nodes, then clears registries on this graph and every
2962
- * mounted subgraph (§3.7). The instance is left empty and may be reused with {@link Graph.add}.
2963
+ * Register a cleanup function to be called on {@link Graph.destroy}.
2964
+ *
2965
+ * Factories use this to attach teardown logic for internal nodes, keepalive
2966
+ * subscriptions, or other resources that are not registered on the graph and
2967
+ * would otherwise leak on repeated create/destroy cycles.
2968
+ *
2969
+ * Returns a removal function — call it to unregister the disposer early.
2970
+ */
2971
+ addDisposer(fn) {
2972
+ this._disposers.add(fn);
2973
+ return () => {
2974
+ this._disposers.delete(fn);
2975
+ };
2976
+ }
2977
+ /**
2978
+ * Drains disposers (registered via {@link addDisposer}), then sends `[[TEARDOWN]]` to all
2979
+ * nodes and clears registries on this graph and every mounted subgraph (§3.7).
2980
+ * The instance is left empty and may be reused with {@link Graph.add}.
2963
2981
  */
2964
2982
  destroy() {
2983
+ for (const dispose of [...this._disposers]) {
2984
+ try {
2985
+ dispose();
2986
+ } catch {
2987
+ }
2988
+ }
2989
+ this._disposers.clear();
2965
2990
  this.signal([[TEARDOWN]], { internal: true });
2966
2991
  for (const dispose of [...this._autoCheckpointDisposers]) {
2967
2992
  try {
@@ -3430,6 +3455,125 @@ function reachable(described, from, direction, options = {}) {
3430
3455
  }
3431
3456
  return [...out].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
3432
3457
  }
3458
+
3459
+ // src/graph/sizeof.ts
3460
+ var OVERHEAD = {
3461
+ object: 56,
3462
+ array: 64,
3463
+ string: 40,
3464
+ // header; content added separately
3465
+ number: 8,
3466
+ boolean: 4,
3467
+ null: 0,
3468
+ undefined: 0,
3469
+ symbol: 40,
3470
+ bigint: 16,
3471
+ function: 120,
3472
+ map: 72,
3473
+ set: 72,
3474
+ mapEntry: 40,
3475
+ setEntry: 24
3476
+ };
3477
+ function sizeof(value) {
3478
+ const seen = /* @__PURE__ */ new WeakSet();
3479
+ return _sizeof(value, seen);
3480
+ }
3481
+ function _sizeof(value, seen) {
3482
+ if (value == null) return 0;
3483
+ const t = typeof value;
3484
+ switch (t) {
3485
+ case "number":
3486
+ return OVERHEAD.number;
3487
+ case "boolean":
3488
+ return OVERHEAD.boolean;
3489
+ case "string":
3490
+ return OVERHEAD.string + value.length * 2;
3491
+ // UTF-16
3492
+ case "bigint":
3493
+ return OVERHEAD.bigint;
3494
+ case "symbol":
3495
+ return OVERHEAD.symbol;
3496
+ case "function":
3497
+ if (seen.has(value)) return 0;
3498
+ seen.add(value);
3499
+ return OVERHEAD.function;
3500
+ case "undefined":
3501
+ return 0;
3502
+ }
3503
+ const obj = value;
3504
+ if (seen.has(obj)) return 0;
3505
+ seen.add(obj);
3506
+ if (obj instanceof Map) {
3507
+ let size2 = OVERHEAD.map;
3508
+ for (const [k, v] of obj) {
3509
+ size2 += OVERHEAD.mapEntry + _sizeof(k, seen) + _sizeof(v, seen);
3510
+ }
3511
+ return size2;
3512
+ }
3513
+ if (obj instanceof Set) {
3514
+ let size2 = OVERHEAD.set;
3515
+ for (const v of obj) {
3516
+ size2 += OVERHEAD.setEntry + _sizeof(v, seen);
3517
+ }
3518
+ return size2;
3519
+ }
3520
+ if (Array.isArray(obj)) {
3521
+ let size2 = OVERHEAD.array + obj.length * 8;
3522
+ for (const item of obj) {
3523
+ size2 += _sizeof(item, seen);
3524
+ }
3525
+ return size2;
3526
+ }
3527
+ if (obj instanceof ArrayBuffer) return obj.byteLength;
3528
+ if (ArrayBuffer.isView(obj)) return obj.byteLength;
3529
+ let size = OVERHEAD.object;
3530
+ const keys = Object.keys(obj);
3531
+ for (const key of keys) {
3532
+ size += OVERHEAD.string + key.length * 2;
3533
+ size += _sizeof(obj[key], seen);
3534
+ }
3535
+ return size;
3536
+ }
3537
+
3538
+ // src/graph/profile.ts
3539
+ function graphProfile(graph, opts) {
3540
+ const topN = opts?.topN ?? 10;
3541
+ const desc = graph.describe({ detail: "standard" });
3542
+ const targets = [];
3543
+ if (typeof graph._collectObserveTargets === "function") {
3544
+ graph._collectObserveTargets("", targets);
3545
+ }
3546
+ const pathToNode = /* @__PURE__ */ new Map();
3547
+ for (const [p, n] of targets) {
3548
+ pathToNode.set(p, n);
3549
+ }
3550
+ const profiles = [];
3551
+ for (const [path, nodeDesc] of Object.entries(desc.nodes)) {
3552
+ const nd = pathToNode.get(path);
3553
+ const impl = nd instanceof NodeImpl ? nd : null;
3554
+ const valueSizeBytes = impl ? sizeof(impl.get()) : 0;
3555
+ const subscriberCount = impl ? impl._sinkCount : 0;
3556
+ const depCount = nodeDesc.deps?.length ?? 0;
3557
+ profiles.push({
3558
+ path,
3559
+ type: nodeDesc.type,
3560
+ status: nodeDesc.status ?? "unknown",
3561
+ valueSizeBytes,
3562
+ subscriberCount,
3563
+ depCount
3564
+ });
3565
+ }
3566
+ const totalValueSizeBytes = profiles.reduce((sum, p) => sum + p.valueSizeBytes, 0);
3567
+ const hotspots = [...profiles].sort((a, b) => b.valueSizeBytes - a.valueSizeBytes).slice(0, topN);
3568
+ return {
3569
+ nodeCount: profiles.length,
3570
+ edgeCount: desc.edges.length,
3571
+ subgraphCount: desc.subgraphs.length,
3572
+ nodes: profiles,
3573
+ totalValueSizeBytes,
3574
+ hotspots
3575
+ };
3576
+ }
3433
3577
  // Annotate the CommonJS export names for ESM import in node:
3434
3578
  0 && (module.exports = {
3435
3579
  GRAPH_META_SEGMENT,
@@ -3437,8 +3581,10 @@ function reachable(described, from, direction, options = {}) {
3437
3581
  JsonCodec,
3438
3582
  createDagCborCodec,
3439
3583
  createDagCborZstdCodec,
3584
+ graphProfile,
3440
3585
  negotiateCodec,
3441
3586
  reachable,
3442
- replayWAL
3587
+ replayWAL,
3588
+ sizeof
3443
3589
  });
3444
3590
  //# sourceMappingURL=index.cjs.map