@graphrefly/graphrefly 0.47.2 → 0.48.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.
- package/dist/base/composition/index.cjs +4 -3
- package/dist/base/composition/index.cjs.map +1 -1
- package/dist/base/composition/index.d.cts +14 -5
- package/dist/base/composition/index.d.ts +14 -5
- package/dist/base/composition/index.js +8 -8
- package/dist/base/index.cjs +152 -78
- package/dist/base/index.cjs.map +1 -1
- package/dist/base/index.d.cts +2 -2
- package/dist/base/index.d.ts +2 -2
- package/dist/base/index.js +75 -70
- package/dist/base/io/index.cjs +31 -17
- package/dist/base/io/index.cjs.map +1 -1
- package/dist/base/io/index.d.cts +32 -5
- package/dist/base/io/index.d.ts +32 -5
- package/dist/base/io/index.js +1 -1
- package/dist/base/mutation/index.cjs +21 -0
- package/dist/base/mutation/index.cjs.map +1 -1
- package/dist/base/mutation/index.d.cts +23 -1
- package/dist/base/mutation/index.d.ts +23 -1
- package/dist/base/mutation/index.js +3 -1
- package/dist/base/sources/browser/index.cjs +5 -3
- package/dist/base/sources/browser/index.cjs.map +1 -1
- package/dist/base/sources/browser/index.d.cts +20 -2
- package/dist/base/sources/browser/index.d.ts +20 -2
- package/dist/base/sources/browser/index.js +5 -3
- package/dist/base/sources/browser/index.js.map +1 -1
- package/dist/base/sources/event/index.cjs +28 -0
- package/dist/base/sources/event/index.cjs.map +1 -1
- package/dist/base/sources/event/index.d.cts +67 -3
- package/dist/base/sources/event/index.d.ts +67 -3
- package/dist/base/sources/event/index.js +4 -1
- package/dist/base/sources/index.cjs +75 -37
- package/dist/base/sources/index.cjs.map +1 -1
- package/dist/base/sources/index.d.cts +1 -1
- package/dist/base/sources/index.d.ts +1 -1
- package/dist/base/sources/index.js +5 -2
- package/dist/{chunk-R6ZCSXKX.js → chunk-23MAWVOJ.js} +3 -3
- package/dist/{chunk-MS3WPRJR.js → chunk-3REMCHSS.js} +6 -6
- package/dist/chunk-3REMCHSS.js.map +1 -0
- package/dist/{chunk-CEVNQ74M.js → chunk-3YGXPUHW.js} +2 -2
- package/dist/{chunk-CEVNQ74M.js.map → chunk-3YGXPUHW.js.map} +1 -1
- package/dist/{chunk-6ZLCPUXS.js → chunk-46X2EFQH.js} +15 -4
- package/dist/chunk-46X2EFQH.js.map +1 -0
- package/dist/{chunk-NY2PYHNC.js → chunk-5UY3PNFY.js} +12 -5
- package/dist/chunk-5UY3PNFY.js.map +1 -0
- package/dist/{chunk-FQSQONOU.js → chunk-65OM4XLQ.js} +49 -3
- package/dist/chunk-65OM4XLQ.js.map +1 -0
- package/dist/{chunk-3PSLNJDU.js → chunk-6DQYBIHW.js} +314 -49
- package/dist/chunk-6DQYBIHW.js.map +1 -0
- package/dist/{chunk-LDCSZ72P.js → chunk-6YBER5UP.js} +3 -3
- package/dist/{chunk-LDCSZ72P.js.map → chunk-6YBER5UP.js.map} +1 -1
- package/dist/{chunk-3O3NKZJW.js → chunk-7T7WLEPM.js} +24 -3
- package/dist/chunk-7T7WLEPM.js.map +1 -0
- package/dist/{chunk-PKPO3JTZ.js → chunk-AQAKDE7F.js} +29 -11
- package/dist/chunk-AQAKDE7F.js.map +1 -0
- package/dist/{chunk-6MRSX3YK.js → chunk-B5Y5GPD5.js} +2 -2
- package/dist/{chunk-BXGZFGZ4.js → chunk-C5QD5DQX.js} +22 -1
- package/dist/chunk-C5QD5DQX.js.map +1 -0
- package/dist/{chunk-4XCHZRUJ.js → chunk-D5YGR4TP.js} +58 -7
- package/dist/chunk-D5YGR4TP.js.map +1 -0
- package/dist/{chunk-NPRP3MCV.js → chunk-DHDCOOJU.js} +2 -2
- package/dist/chunk-DHDCOOJU.js.map +1 -0
- package/dist/{chunk-VP3TIUDF.js → chunk-DVTDF5OI.js} +2 -2
- package/dist/{chunk-OXD5LFQP.js → chunk-G7H6PN7P.js} +2 -2
- package/dist/{chunk-EL5VHUGK.js → chunk-GGKHHG5Y.js} +32 -18
- package/dist/chunk-GGKHHG5Y.js.map +1 -0
- package/dist/{chunk-446I4EGD.js → chunk-J5TBZFBD.js} +2 -2
- package/dist/{chunk-7AVQIGF6.js → chunk-K4ZYJ4EM.js} +554 -460
- package/dist/chunk-K4ZYJ4EM.js.map +1 -0
- package/dist/{chunk-QFE5BQH7.js → chunk-LTSI7ULC.js} +2 -2
- package/dist/{chunk-5GVURVIG.js → chunk-MMHGYX44.js} +12 -2
- package/dist/{chunk-5GVURVIG.js.map → chunk-MMHGYX44.js.map} +1 -1
- package/dist/{chunk-KRFGO5QH.js → chunk-MQMTRKY3.js} +118 -43
- package/dist/chunk-MQMTRKY3.js.map +1 -0
- package/dist/{chunk-42FQ27MQ.js → chunk-MTODGQBR.js} +44 -179
- package/dist/chunk-MTODGQBR.js.map +1 -0
- package/dist/{chunk-FVINAAKA.js → chunk-NBK6QQMG.js} +14 -13
- package/dist/{chunk-FVINAAKA.js.map → chunk-NBK6QQMG.js.map} +1 -1
- package/dist/{chunk-KNU73RZW.js → chunk-NSA5K5G2.js} +2 -2
- package/dist/{chunk-MLTPJMH6.js → chunk-QQYULEZL.js} +2 -2
- package/dist/chunk-QSW4DFKE.js +31 -0
- package/dist/chunk-QSW4DFKE.js.map +1 -0
- package/dist/{chunk-VAZXUK6G.js → chunk-SUNCHMML.js} +2 -2
- package/dist/{chunk-EP4WVQLX.js → chunk-T2U6N3FV.js} +6 -6
- package/dist/{chunk-T7SP3EYR.js → chunk-T5URUIIY.js} +33 -24
- package/dist/chunk-T5URUIIY.js.map +1 -0
- package/dist/{chunk-VNXAF2KE.js → chunk-TPTZZV25.js} +6 -6
- package/dist/chunk-TPTZZV25.js.map +1 -0
- package/dist/{chunk-IOJDYUA7.js → chunk-V46JWFGV.js} +6 -5
- package/dist/chunk-V46JWFGV.js.map +1 -0
- package/dist/{chunk-WGDEBIP4.js → chunk-X6ESZDR6.js} +5 -6
- package/dist/chunk-X6ESZDR6.js.map +1 -0
- package/dist/{chunk-N65E26UL.js → chunk-XEWV254I.js} +2 -2
- package/dist/{chunk-N65E26UL.js.map → chunk-XEWV254I.js.map} +1 -1
- package/dist/{chunk-PTWADEH3.js → chunk-YBJVKMTM.js} +34 -14
- package/dist/chunk-YBJVKMTM.js.map +1 -0
- package/dist/{chunk-DDTS7F5O.js → chunk-ZW32BPXV.js} +12 -3
- package/dist/chunk-ZW32BPXV.js.map +1 -0
- package/dist/compat/index.cjs +51 -4
- package/dist/compat/index.cjs.map +1 -1
- package/dist/compat/index.d.cts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +6 -6
- package/dist/compat/nestjs/index.cjs +51 -4
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +1 -1
- package/dist/compat/nestjs/index.d.ts +1 -1
- package/dist/compat/nestjs/index.js +3 -3
- package/dist/{fallback-Bx46zqky.d.cts → fallback-BROR6ZhO.d.cts} +1 -1
- package/dist/{fallback-pIWW8A2d.d.ts → fallback-DO80aM_3.d.ts} +1 -1
- package/dist/{index-B_p8tnvf.d.cts → index-D1z3XcF9.d.cts} +1 -0
- package/dist/{index-_HDSmPyp.d.ts → index-DZ6yua0Q.d.ts} +1 -0
- package/dist/index.cjs +2215 -1676
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +169 -146
- package/dist/index.js.map +1 -1
- package/dist/presets/ai/index.cjs +46 -0
- package/dist/presets/ai/index.cjs.map +1 -1
- package/dist/presets/ai/index.js +12 -12
- package/dist/presets/harness/index.cjs +130 -18
- package/dist/presets/harness/index.cjs.map +1 -1
- package/dist/presets/harness/index.d.cts +15 -5
- package/dist/presets/harness/index.d.ts +15 -5
- package/dist/presets/harness/index.js +22 -22
- package/dist/presets/index.cjs +222 -53
- package/dist/presets/index.cjs.map +1 -1
- package/dist/presets/index.d.cts +2 -2
- package/dist/presets/index.d.ts +2 -2
- package/dist/presets/index.js +45 -45
- package/dist/presets/inspect/index.cjs +63 -14
- package/dist/presets/inspect/index.cjs.map +1 -1
- package/dist/presets/inspect/index.d.cts +1 -1
- package/dist/presets/inspect/index.d.ts +1 -1
- package/dist/presets/inspect/index.js +6 -6
- package/dist/presets/resilience/index.cjs +29 -21
- package/dist/presets/resilience/index.cjs.map +1 -1
- package/dist/presets/resilience/index.d.cts +12 -8
- package/dist/presets/resilience/index.d.ts +12 -8
- package/dist/presets/resilience/index.js +3 -3
- package/dist/{rate-limiter-DpVbSYdH.d.cts → rate-limiter-DC26FM8J.d.cts} +10 -1
- package/dist/{rate-limiter-CEALq4N1.d.ts → rate-limiter-DyWpwpQP.d.ts} +10 -1
- package/dist/{reactive-layout-fswlBUvX.d.ts → reactive-layout-BBBWH0V_.d.cts} +85 -4
- package/dist/{reactive-layout-fswlBUvX.d.cts → reactive-layout-BBBWH0V_.d.ts} +85 -4
- package/dist/solutions/index.cjs +168 -47
- package/dist/solutions/index.cjs.map +1 -1
- package/dist/solutions/index.d.cts +2 -2
- package/dist/solutions/index.d.ts +2 -2
- package/dist/solutions/index.js +28 -28
- package/dist/{spawnable-5mDY501F.d.cts → spawnable-B2IlW60f.d.cts} +23 -2
- package/dist/{spawnable-D3lR0oQu.d.ts → spawnable-tttFz2Nh.d.ts} +23 -2
- package/dist/testing/index.cjs +94 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +59 -0
- package/dist/testing/index.d.ts +59 -0
- package/dist/testing/index.js +73 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/utils/ai/browser.cjs.map +1 -1
- package/dist/utils/ai/browser.d.cts +2 -2
- package/dist/utils/ai/browser.d.ts +2 -2
- package/dist/utils/ai/browser.js +6 -6
- package/dist/utils/ai/browser.js.map +1 -1
- package/dist/utils/ai/index.cjs +250 -166
- package/dist/utils/ai/index.cjs.map +1 -1
- package/dist/utils/ai/index.d.cts +108 -12
- package/dist/utils/ai/index.d.ts +108 -12
- package/dist/utils/ai/index.js +21 -19
- package/dist/utils/ai/node.cjs.map +1 -1
- package/dist/utils/ai/node.d.cts +5 -5
- package/dist/utils/ai/node.d.ts +5 -5
- package/dist/utils/ai/node.js +2 -2
- package/dist/utils/ai/node.js.map +1 -1
- package/dist/utils/cqrs/index.cjs +29 -3
- package/dist/utils/cqrs/index.cjs.map +1 -1
- package/dist/utils/cqrs/index.d.cts +12 -7
- package/dist/utils/cqrs/index.d.ts +12 -7
- package/dist/utils/cqrs/index.js +2 -2
- package/dist/utils/demo-shell/index.cjs +45 -19
- package/dist/utils/demo-shell/index.cjs.map +1 -1
- package/dist/utils/demo-shell/index.d.cts +1 -1
- package/dist/utils/demo-shell/index.d.ts +1 -1
- package/dist/utils/demo-shell/index.js +2 -2
- package/dist/utils/domain-templates/index.cjs.map +1 -1
- package/dist/utils/domain-templates/index.js +3 -3
- package/dist/utils/graphspec/index.cjs.map +1 -1
- package/dist/utils/graphspec/index.js +3 -3
- package/dist/utils/index.cjs +1642 -1225
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +7 -7
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +72 -54
- package/dist/utils/inspect/index.cjs +52 -4
- package/dist/utils/inspect/index.cjs.map +1 -1
- package/dist/utils/inspect/index.d.cts +32 -3
- package/dist/utils/inspect/index.d.ts +32 -3
- package/dist/utils/inspect/index.js +4 -4
- package/dist/utils/job-queue/index.cjs +46 -9
- package/dist/utils/job-queue/index.cjs.map +1 -1
- package/dist/utils/job-queue/index.d.cts +33 -3
- package/dist/utils/job-queue/index.d.ts +33 -3
- package/dist/utils/job-queue/index.js +2 -2
- package/dist/utils/memory/index.cjs +556 -462
- package/dist/utils/memory/index.cjs.map +1 -1
- package/dist/utils/memory/index.d.cts +203 -24
- package/dist/utils/memory/index.d.ts +203 -24
- package/dist/utils/memory/index.js +10 -2
- package/dist/utils/messaging/index.cjs.map +1 -1
- package/dist/utils/messaging/index.d.cts +4 -3
- package/dist/utils/messaging/index.d.ts +4 -3
- package/dist/utils/messaging/index.js +2 -2
- package/dist/utils/orchestration/index.cjs +9 -0
- package/dist/utils/orchestration/index.cjs.map +1 -1
- package/dist/utils/orchestration/index.js +3 -3
- package/dist/utils/process/index.cjs +32 -2
- package/dist/utils/process/index.cjs.map +1 -1
- package/dist/utils/process/index.d.cts +4 -3
- package/dist/utils/process/index.d.ts +4 -3
- package/dist/utils/process/index.js +2 -2
- package/dist/utils/reactive-layout/index.cjs +184 -55
- package/dist/utils/reactive-layout/index.cjs.map +1 -1
- package/dist/utils/reactive-layout/index.d.cts +128 -3
- package/dist/utils/reactive-layout/index.d.ts +128 -3
- package/dist/utils/reactive-layout/index.js +16 -8
- package/dist/utils/reduction/index.cjs.map +1 -1
- package/dist/utils/reduction/index.js +2 -2
- package/dist/utils/resilience/index.cjs +29 -20
- package/dist/utils/resilience/index.cjs.map +1 -1
- package/dist/utils/resilience/index.d.cts +1 -1
- package/dist/utils/resilience/index.d.ts +1 -1
- package/dist/utils/resilience/index.js +2 -2
- package/dist/utils/surface/index.cjs.map +1 -1
- package/dist/utils/surface/index.js +4 -4
- package/package.json +15 -3
- package/dist/chunk-3O3NKZJW.js.map +0 -1
- package/dist/chunk-3PSLNJDU.js.map +0 -1
- package/dist/chunk-42FQ27MQ.js.map +0 -1
- package/dist/chunk-4XCHZRUJ.js.map +0 -1
- package/dist/chunk-6ZLCPUXS.js.map +0 -1
- package/dist/chunk-7AVQIGF6.js.map +0 -1
- package/dist/chunk-BXGZFGZ4.js.map +0 -1
- package/dist/chunk-DDTS7F5O.js.map +0 -1
- package/dist/chunk-EL5VHUGK.js.map +0 -1
- package/dist/chunk-FQSQONOU.js.map +0 -1
- package/dist/chunk-IOJDYUA7.js.map +0 -1
- package/dist/chunk-KRFGO5QH.js.map +0 -1
- package/dist/chunk-MS3WPRJR.js.map +0 -1
- package/dist/chunk-NPRP3MCV.js.map +0 -1
- package/dist/chunk-NY2PYHNC.js.map +0 -1
- package/dist/chunk-PKPO3JTZ.js.map +0 -1
- package/dist/chunk-PTWADEH3.js.map +0 -1
- package/dist/chunk-T7SP3EYR.js.map +0 -1
- package/dist/chunk-VNXAF2KE.js.map +0 -1
- package/dist/chunk-W2BOPXTI.js +0 -1
- package/dist/chunk-W2BOPXTI.js.map +0 -1
- package/dist/chunk-WGDEBIP4.js.map +0 -1
- /package/dist/{chunk-R6ZCSXKX.js.map → chunk-23MAWVOJ.js.map} +0 -0
- /package/dist/{chunk-6MRSX3YK.js.map → chunk-B5Y5GPD5.js.map} +0 -0
- /package/dist/{chunk-VP3TIUDF.js.map → chunk-DVTDF5OI.js.map} +0 -0
- /package/dist/{chunk-OXD5LFQP.js.map → chunk-G7H6PN7P.js.map} +0 -0
- /package/dist/{chunk-446I4EGD.js.map → chunk-J5TBZFBD.js.map} +0 -0
- /package/dist/{chunk-QFE5BQH7.js.map → chunk-LTSI7ULC.js.map} +0 -0
- /package/dist/{chunk-KNU73RZW.js.map → chunk-NSA5K5G2.js.map} +0 -0
- /package/dist/{chunk-MLTPJMH6.js.map → chunk-QQYULEZL.js.map} +0 -0
- /package/dist/{chunk-VAZXUK6G.js.map → chunk-SUNCHMML.js.map} +0 -0
- /package/dist/{chunk-EP4WVQLX.js.map → chunk-T2U6N3FV.js.map} +0 -0
package/dist/base/index.d.cts
CHANGED
|
@@ -4,10 +4,10 @@ export { B as BundleTriad, E as EmitTriad, a as ExternalBundleOptions, b as Exte
|
|
|
4
4
|
export { I as InteropObservable, a as InteropObserver, b as InteropSubscription, T as ToObservableOptions, t as toObservable } from '../observable-B25XqCbZ.cjs';
|
|
5
5
|
export { AckableMessage, AdapterHandlers, BufferedSinkHandle, CSVRow, CheckpointToRedisOptions, CheckpointToS3Options, ClickHouseClientLike, ClickHouseInsertClientLike, ClickHouseRow, DrizzleQueryLike, FileWriterLike, FromCSVOptions, FromClickHouseWatchOptions, FromDrizzleOptions, FromHTTPOptions, FromHTTPPollOptions, FromHTTPStreamOptions, FromKafkaOptions, FromKyselyOptions, FromMCPOptions, FromNATSOptions, FromNDJSONOptions, FromOTelOptions, FromPrismaOptions, FromPrometheusOptions, FromPulsarOptions, FromRabbitMQOptions, FromRedisStreamOptions, FromSSEOptions, FromSqliteOptions, FromStatsDOptions, FromSyslogOptions, FromWebSocketReconnectOptions, HTTPBundle, KafkaConsumerLike, KafkaMessage, KafkaProducerLike, KyselyQueryLike, LokiClientLike, LokiStream, MCPClientLike, MongoCollectionLike, NATSClientLike, NATSMessage, NATSSubscriptionLike, OTelBundle, OTelLog, OTelMetric, OTelRegister, OTelSpan, ParseSSEStreamOptions, PostgresClientLike, PrismaModelLike, PrometheusMetric, PulsarConsumerLike, PulsarMessage, PulsarProducerLike, RabbitMQChannelLike, RabbitMQMessage, RedisCheckpointClientLike, RedisClientLike, RedisStreamEntry, S3ClientLike, SSEEvent, SinkHandle, SinkTransportError, SqliteDbLike, SqliteIterableDbLike, StatsDMetric, StatsDRegister, SyslogMessage, SyslogRegister, TempoClientLike, ToCSVOptions, ToClickHouseOptions, ToFileOptions, ToHTTPOptions, ToKafkaOptions, ToLokiOptions, ToMongoOptions, ToNATSOptions, ToPostgresOptions, ToPulsarOptions, ToRabbitMQOptions, ToRedisStreamOptions, ToS3Options, ToSSEOptions, ToSqliteOptions, ToTempoOptions, ToWebSocketOptions, WebSocketLike, WebSocketMessageEventLike, WebSocketRegister, WebhookRegister, checkpointToRedis, checkpointToS3, csvRows, fromCSV, fromClickHouseWatch, fromDrizzle, fromHTTP, fromHTTPPoll, fromHTTPStream, fromKafka, fromKysely, fromMCP, fromNATS, fromNDJSON, fromOTel, fromPrisma, fromPrometheus, fromPulsar, fromRabbitMQ, fromRedisStream, fromSSE, fromSqlite, fromSqliteCursor, fromStatsD, fromSyslog, fromWebSocket, fromWebSocketReconnect, fromWebhook, ndjsonRows, parsePrometheusText, parseSSEStream, parseStatsD, parseSyslog, toCSV, toClickHouse, toFile, toHTTP, toKafka, toLoki, toMongo, toNATS, toPostgres, toPulsar, toRabbitMQ, toReadableStream, toRedisStream, toS3, toSSE, toSSEBytes, toSqlite, toTempo, toWebSocket } from './io/index.cjs';
|
|
6
6
|
export { domainMeta, emitToMeta } from './meta/index.cjs';
|
|
7
|
-
export { AuditLogOpts, BaseAuditRecord, DEFAULT_AUDIT_GUARD, FailureMeta, MutateOpts, MutationAct, MutationFrame, SuccessMeta, appendAudit, bumpCursor, createAuditLog, mutate, registerCursor, registerCursorMap, tryIncrementBounded } from './mutation/index.cjs';
|
|
7
|
+
export { AuditLogOpts, BaseAuditRecord, DEFAULT_AUDIT_GUARD, FailureMeta, MutateOpts, MutationAct, MutationFrame, ReadonlyAuditLog, SuccessMeta, appendAudit, bumpCursor, createAuditLog, mutate, readonlyAuditLog, registerCursor, registerCursorMap, tryIncrementBounded } from './mutation/index.cjs';
|
|
8
8
|
export { DiagramDirection, GraphSpecToAsciiOptions, GraphSpecToD2Options, GraphSpecToJsonOptions, GraphSpecToMermaidOptions, GraphSpecToMermaidUrlOptions, GraphSpecToPrettyOptions, LayoutDirection, LayoutFrameToSvgOptions, MermaidLiveTheme, graphSpecToAscii, graphSpecToD2, graphSpecToJson, graphSpecToMermaid, graphSpecToMermaidUrl, graphSpecToPretty, layoutFrameToSvg, mermaidLiveUrl } from './render/index.cjs';
|
|
9
9
|
export { ReactiveCounterBundle, awaitSettled, cached, defer, firstValueFrom, firstWhere, forEach, nodeSignal, reactiveCounter, replay, share, shareReplay, toArray } from './sources/index.cjs';
|
|
10
|
-
export { CronSchedule, FromCronOptions, fromCron, matchesCron, parseCron } from './sources/event/index.cjs';
|
|
10
|
+
export { CronSchedule, FromCronOptions, PushRegister, PushUnsubscribe, fromCron, fromPushNotification, matchesCron, parseCron } from './sources/event/index.cjs';
|
|
11
11
|
export { DEFAULT_DECAY_RATE, decay } from './utils/index.cjs';
|
|
12
12
|
export { BatchMessage, BridgeMessage, ErrorMessage, InitMessage, ReadyMessage, SignalMessage, ValueMessage, WorkerBridge, WorkerBridgeOptions, WorkerSelfHandle, WorkerSelfOptions, WorkerTransport, createTransport, deserializeError, nameToSignal, serializeError, signalToName, workerBridge, workerSelf } from './worker/index.cjs';
|
|
13
13
|
import '@graphrefly/pure-ts/core';
|
package/dist/base/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export { B as BundleTriad, E as EmitTriad, a as ExternalBundleOptions, b as Exte
|
|
|
4
4
|
export { I as InteropObservable, a as InteropObserver, b as InteropSubscription, T as ToObservableOptions, t as toObservable } from '../observable-B25XqCbZ.js';
|
|
5
5
|
export { AckableMessage, AdapterHandlers, BufferedSinkHandle, CSVRow, CheckpointToRedisOptions, CheckpointToS3Options, ClickHouseClientLike, ClickHouseInsertClientLike, ClickHouseRow, DrizzleQueryLike, FileWriterLike, FromCSVOptions, FromClickHouseWatchOptions, FromDrizzleOptions, FromHTTPOptions, FromHTTPPollOptions, FromHTTPStreamOptions, FromKafkaOptions, FromKyselyOptions, FromMCPOptions, FromNATSOptions, FromNDJSONOptions, FromOTelOptions, FromPrismaOptions, FromPrometheusOptions, FromPulsarOptions, FromRabbitMQOptions, FromRedisStreamOptions, FromSSEOptions, FromSqliteOptions, FromStatsDOptions, FromSyslogOptions, FromWebSocketReconnectOptions, HTTPBundle, KafkaConsumerLike, KafkaMessage, KafkaProducerLike, KyselyQueryLike, LokiClientLike, LokiStream, MCPClientLike, MongoCollectionLike, NATSClientLike, NATSMessage, NATSSubscriptionLike, OTelBundle, OTelLog, OTelMetric, OTelRegister, OTelSpan, ParseSSEStreamOptions, PostgresClientLike, PrismaModelLike, PrometheusMetric, PulsarConsumerLike, PulsarMessage, PulsarProducerLike, RabbitMQChannelLike, RabbitMQMessage, RedisCheckpointClientLike, RedisClientLike, RedisStreamEntry, S3ClientLike, SSEEvent, SinkHandle, SinkTransportError, SqliteDbLike, SqliteIterableDbLike, StatsDMetric, StatsDRegister, SyslogMessage, SyslogRegister, TempoClientLike, ToCSVOptions, ToClickHouseOptions, ToFileOptions, ToHTTPOptions, ToKafkaOptions, ToLokiOptions, ToMongoOptions, ToNATSOptions, ToPostgresOptions, ToPulsarOptions, ToRabbitMQOptions, ToRedisStreamOptions, ToS3Options, ToSSEOptions, ToSqliteOptions, ToTempoOptions, ToWebSocketOptions, WebSocketLike, WebSocketMessageEventLike, WebSocketRegister, WebhookRegister, checkpointToRedis, checkpointToS3, csvRows, fromCSV, fromClickHouseWatch, fromDrizzle, fromHTTP, fromHTTPPoll, fromHTTPStream, fromKafka, fromKysely, fromMCP, fromNATS, fromNDJSON, fromOTel, fromPrisma, fromPrometheus, fromPulsar, fromRabbitMQ, fromRedisStream, fromSSE, fromSqlite, fromSqliteCursor, fromStatsD, fromSyslog, fromWebSocket, fromWebSocketReconnect, fromWebhook, ndjsonRows, parsePrometheusText, parseSSEStream, parseStatsD, parseSyslog, toCSV, toClickHouse, toFile, toHTTP, toKafka, toLoki, toMongo, toNATS, toPostgres, toPulsar, toRabbitMQ, toReadableStream, toRedisStream, toS3, toSSE, toSSEBytes, toSqlite, toTempo, toWebSocket } from './io/index.js';
|
|
6
6
|
export { domainMeta, emitToMeta } from './meta/index.js';
|
|
7
|
-
export { AuditLogOpts, BaseAuditRecord, DEFAULT_AUDIT_GUARD, FailureMeta, MutateOpts, MutationAct, MutationFrame, SuccessMeta, appendAudit, bumpCursor, createAuditLog, mutate, registerCursor, registerCursorMap, tryIncrementBounded } from './mutation/index.js';
|
|
7
|
+
export { AuditLogOpts, BaseAuditRecord, DEFAULT_AUDIT_GUARD, FailureMeta, MutateOpts, MutationAct, MutationFrame, ReadonlyAuditLog, SuccessMeta, appendAudit, bumpCursor, createAuditLog, mutate, readonlyAuditLog, registerCursor, registerCursorMap, tryIncrementBounded } from './mutation/index.js';
|
|
8
8
|
export { DiagramDirection, GraphSpecToAsciiOptions, GraphSpecToD2Options, GraphSpecToJsonOptions, GraphSpecToMermaidOptions, GraphSpecToMermaidUrlOptions, GraphSpecToPrettyOptions, LayoutDirection, LayoutFrameToSvgOptions, MermaidLiveTheme, graphSpecToAscii, graphSpecToD2, graphSpecToJson, graphSpecToMermaid, graphSpecToMermaidUrl, graphSpecToPretty, layoutFrameToSvg, mermaidLiveUrl } from './render/index.js';
|
|
9
9
|
export { ReactiveCounterBundle, awaitSettled, cached, defer, firstValueFrom, firstWhere, forEach, nodeSignal, reactiveCounter, replay, share, shareReplay, toArray } from './sources/index.js';
|
|
10
|
-
export { CronSchedule, FromCronOptions, fromCron, matchesCron, parseCron } from './sources/event/index.js';
|
|
10
|
+
export { CronSchedule, FromCronOptions, PushRegister, PushUnsubscribe, fromCron, fromPushNotification, matchesCron, parseCron } from './sources/event/index.js';
|
|
11
11
|
export { DEFAULT_DECAY_RATE, decay } from './utils/index.js';
|
|
12
12
|
export { BatchMessage, BridgeMessage, ErrorMessage, InitMessage, ReadyMessage, SignalMessage, ValueMessage, WorkerBridge, WorkerBridgeOptions, WorkerSelfHandle, WorkerSelfOptions, WorkerTransport, createTransport, deserializeError, nameToSignal, serializeError, signalToName, workerBridge, workerSelf } from './worker/index.js';
|
|
13
13
|
import '@graphrefly/pure-ts/core';
|
package/dist/base/index.js
CHANGED
|
@@ -1,7 +1,58 @@
|
|
|
1
1
|
import "../chunk-CZQHCKKG.js";
|
|
2
|
+
import {
|
|
3
|
+
checkpointToRedis,
|
|
4
|
+
checkpointToS3,
|
|
5
|
+
csvRows,
|
|
6
|
+
fromCSV,
|
|
7
|
+
fromClickHouseWatch,
|
|
8
|
+
fromDrizzle,
|
|
9
|
+
fromHTTP,
|
|
10
|
+
fromHTTPPoll,
|
|
11
|
+
fromHTTPStream,
|
|
12
|
+
fromKafka,
|
|
13
|
+
fromKysely,
|
|
14
|
+
fromMCP,
|
|
15
|
+
fromNATS,
|
|
16
|
+
fromNDJSON,
|
|
17
|
+
fromOTel,
|
|
18
|
+
fromPrisma,
|
|
19
|
+
fromPrometheus,
|
|
20
|
+
fromPulsar,
|
|
21
|
+
fromRabbitMQ,
|
|
22
|
+
fromRedisStream,
|
|
23
|
+
fromSqlite,
|
|
24
|
+
fromSqliteCursor,
|
|
25
|
+
fromStatsD,
|
|
26
|
+
fromSyslog,
|
|
27
|
+
fromWebSocket,
|
|
28
|
+
fromWebSocketReconnect,
|
|
29
|
+
fromWebhook,
|
|
30
|
+
ndjsonRows,
|
|
31
|
+
parsePrometheusText,
|
|
32
|
+
parseStatsD,
|
|
33
|
+
parseSyslog,
|
|
34
|
+
toCSV,
|
|
35
|
+
toClickHouse,
|
|
36
|
+
toFile,
|
|
37
|
+
toHTTP,
|
|
38
|
+
toKafka,
|
|
39
|
+
toLoki,
|
|
40
|
+
toMongo,
|
|
41
|
+
toNATS,
|
|
42
|
+
toPostgres,
|
|
43
|
+
toPulsar,
|
|
44
|
+
toRabbitMQ,
|
|
45
|
+
toRedisStream,
|
|
46
|
+
toS3,
|
|
47
|
+
toSqlite,
|
|
48
|
+
toTempo,
|
|
49
|
+
toWebSocket
|
|
50
|
+
} from "../chunk-GGKHHG5Y.js";
|
|
2
51
|
import "../chunk-KPG3DGLA.js";
|
|
3
52
|
import "../chunk-T5BN5KG7.js";
|
|
4
|
-
import
|
|
53
|
+
import {
|
|
54
|
+
fromPushNotification
|
|
55
|
+
} from "../chunk-QSW4DFKE.js";
|
|
5
56
|
import "../chunk-OQUIJT7A.js";
|
|
6
57
|
import {
|
|
7
58
|
createTransport,
|
|
@@ -32,6 +83,17 @@ import {
|
|
|
32
83
|
} from "../chunk-PKGQG5QQ.js";
|
|
33
84
|
import "../chunk-36NMM65U.js";
|
|
34
85
|
import "../chunk-DMSNO6ZB.js";
|
|
86
|
+
import {
|
|
87
|
+
fromSSE,
|
|
88
|
+
parseSSEStream,
|
|
89
|
+
toReadableStream,
|
|
90
|
+
toSSE,
|
|
91
|
+
toSSEBytes
|
|
92
|
+
} from "../chunk-F7EKHR32.js";
|
|
93
|
+
import "../chunk-JA67ZQG2.js";
|
|
94
|
+
import "../chunk-KUFXLAEY.js";
|
|
95
|
+
import "../chunk-TSBFTJKM.js";
|
|
96
|
+
import "../chunk-P5LBT622.js";
|
|
35
97
|
import {
|
|
36
98
|
DEFAULT_DECAY_RATE,
|
|
37
99
|
decay
|
|
@@ -45,17 +107,22 @@ import {
|
|
|
45
107
|
bumpCursor,
|
|
46
108
|
createAuditLog,
|
|
47
109
|
mutate,
|
|
110
|
+
readonlyAuditLog,
|
|
48
111
|
registerCursor,
|
|
49
112
|
registerCursorMap,
|
|
50
113
|
tryIncrementBounded
|
|
51
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-C5QD5DQX.js";
|
|
52
115
|
import {
|
|
53
116
|
NativePubSubBackend,
|
|
54
117
|
materialize,
|
|
55
118
|
pubsub,
|
|
56
119
|
selector,
|
|
57
120
|
verifiable
|
|
58
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-J5TBZFBD.js";
|
|
122
|
+
import {
|
|
123
|
+
externalBundle,
|
|
124
|
+
externalProducer
|
|
125
|
+
} from "../chunk-VLDRAMP7.js";
|
|
59
126
|
import {
|
|
60
127
|
createWatermarkController,
|
|
61
128
|
toObservable
|
|
@@ -63,10 +130,10 @@ import {
|
|
|
63
130
|
import {
|
|
64
131
|
singleFromAny,
|
|
65
132
|
singleNodeFromAny
|
|
66
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-V46JWFGV.js";
|
|
67
134
|
import {
|
|
68
135
|
distill
|
|
69
|
-
} from "../chunk-
|
|
136
|
+
} from "../chunk-G7H6PN7P.js";
|
|
70
137
|
import {
|
|
71
138
|
cached,
|
|
72
139
|
defer,
|
|
@@ -75,7 +142,7 @@ import {
|
|
|
75
142
|
share,
|
|
76
143
|
shareReplay,
|
|
77
144
|
toArray
|
|
78
|
-
} from "../chunk-
|
|
145
|
+
} from "../chunk-MMHGYX44.js";
|
|
79
146
|
import {
|
|
80
147
|
awaitSettled,
|
|
81
148
|
firstValueFrom,
|
|
@@ -83,70 +150,6 @@ import {
|
|
|
83
150
|
nodeSignal,
|
|
84
151
|
reactiveCounter
|
|
85
152
|
} from "../chunk-N6MNJNHB.js";
|
|
86
|
-
import {
|
|
87
|
-
checkpointToRedis,
|
|
88
|
-
checkpointToS3,
|
|
89
|
-
csvRows,
|
|
90
|
-
fromCSV,
|
|
91
|
-
fromClickHouseWatch,
|
|
92
|
-
fromDrizzle,
|
|
93
|
-
fromHTTP,
|
|
94
|
-
fromHTTPPoll,
|
|
95
|
-
fromHTTPStream,
|
|
96
|
-
fromKafka,
|
|
97
|
-
fromKysely,
|
|
98
|
-
fromMCP,
|
|
99
|
-
fromNATS,
|
|
100
|
-
fromNDJSON,
|
|
101
|
-
fromOTel,
|
|
102
|
-
fromPrisma,
|
|
103
|
-
fromPrometheus,
|
|
104
|
-
fromPulsar,
|
|
105
|
-
fromRabbitMQ,
|
|
106
|
-
fromRedisStream,
|
|
107
|
-
fromSqlite,
|
|
108
|
-
fromSqliteCursor,
|
|
109
|
-
fromStatsD,
|
|
110
|
-
fromSyslog,
|
|
111
|
-
fromWebSocket,
|
|
112
|
-
fromWebSocketReconnect,
|
|
113
|
-
fromWebhook,
|
|
114
|
-
ndjsonRows,
|
|
115
|
-
parsePrometheusText,
|
|
116
|
-
parseStatsD,
|
|
117
|
-
parseSyslog,
|
|
118
|
-
toCSV,
|
|
119
|
-
toClickHouse,
|
|
120
|
-
toFile,
|
|
121
|
-
toHTTP,
|
|
122
|
-
toKafka,
|
|
123
|
-
toLoki,
|
|
124
|
-
toMongo,
|
|
125
|
-
toNATS,
|
|
126
|
-
toPostgres,
|
|
127
|
-
toPulsar,
|
|
128
|
-
toRabbitMQ,
|
|
129
|
-
toRedisStream,
|
|
130
|
-
toS3,
|
|
131
|
-
toSqlite,
|
|
132
|
-
toTempo,
|
|
133
|
-
toWebSocket
|
|
134
|
-
} from "../chunk-EL5VHUGK.js";
|
|
135
|
-
import {
|
|
136
|
-
fromSSE,
|
|
137
|
-
parseSSEStream,
|
|
138
|
-
toReadableStream,
|
|
139
|
-
toSSE,
|
|
140
|
-
toSSEBytes
|
|
141
|
-
} from "../chunk-F7EKHR32.js";
|
|
142
|
-
import "../chunk-JA67ZQG2.js";
|
|
143
|
-
import "../chunk-KUFXLAEY.js";
|
|
144
|
-
import "../chunk-TSBFTJKM.js";
|
|
145
|
-
import "../chunk-P5LBT622.js";
|
|
146
|
-
import {
|
|
147
|
-
externalBundle,
|
|
148
|
-
externalProducer
|
|
149
|
-
} from "../chunk-VLDRAMP7.js";
|
|
150
153
|
import "../chunk-AZDQPQ3V.js";
|
|
151
154
|
export {
|
|
152
155
|
DEFAULT_AUDIT_GUARD,
|
|
@@ -189,6 +192,7 @@ export {
|
|
|
189
192
|
fromPrisma,
|
|
190
193
|
fromPrometheus,
|
|
191
194
|
fromPulsar,
|
|
195
|
+
fromPushNotification,
|
|
192
196
|
fromRabbitMQ,
|
|
193
197
|
fromRedisStream,
|
|
194
198
|
fromSSE,
|
|
@@ -220,6 +224,7 @@ export {
|
|
|
220
224
|
parseSyslog,
|
|
221
225
|
pubsub,
|
|
222
226
|
reactiveCounter,
|
|
227
|
+
readonlyAuditLog,
|
|
223
228
|
registerCursor,
|
|
224
229
|
registerCursorMap,
|
|
225
230
|
replay,
|
package/dist/base/io/index.cjs
CHANGED
|
@@ -78,7 +78,12 @@ module.exports = __toCommonJS(io_exports);
|
|
|
78
78
|
// src/base/io/checkpoint.ts
|
|
79
79
|
var import_core = require("@graphrefly/pure-ts/core");
|
|
80
80
|
function checkpointToS3(graph, client, bucket, opts) {
|
|
81
|
-
const {
|
|
81
|
+
const {
|
|
82
|
+
prefix = "checkpoints/",
|
|
83
|
+
debounceMs = 500,
|
|
84
|
+
compactEvery = 10,
|
|
85
|
+
onError = (err) => console.error(`checkpointToS3(${bucket}): checkpoint persistence failed`, err)
|
|
86
|
+
} = opts ?? {};
|
|
82
87
|
const tier = {
|
|
83
88
|
name: `s3:${bucket}`,
|
|
84
89
|
debounceMs,
|
|
@@ -90,7 +95,7 @@ function checkpointToS3(graph, client, bucket, opts) {
|
|
|
90
95
|
try {
|
|
91
96
|
body = JSON.stringify(record);
|
|
92
97
|
} catch (err) {
|
|
93
|
-
onError
|
|
98
|
+
onError(err);
|
|
94
99
|
return;
|
|
95
100
|
}
|
|
96
101
|
void client.putObject({
|
|
@@ -98,13 +103,13 @@ function checkpointToS3(graph, client, bucket, opts) {
|
|
|
98
103
|
Key: s3Key,
|
|
99
104
|
Body: body,
|
|
100
105
|
ContentType: "application/json"
|
|
101
|
-
}).catch((err) => onError
|
|
106
|
+
}).catch((err) => onError(err));
|
|
102
107
|
}
|
|
103
108
|
// S3 tier is write-only here — one object per checkpoint timestamp,
|
|
104
109
|
// no canonical "latest" key for load.
|
|
105
110
|
};
|
|
106
111
|
return graph.attachSnapshotStorage([{ snapshot: tier }], {
|
|
107
|
-
onError: (err) => onError
|
|
112
|
+
onError: (err) => onError(err)
|
|
108
113
|
});
|
|
109
114
|
}
|
|
110
115
|
function checkpointToRedis(graph, client, opts) {
|
|
@@ -112,7 +117,7 @@ function checkpointToRedis(graph, client, opts) {
|
|
|
112
117
|
prefix = "graphrefly:checkpoint:",
|
|
113
118
|
debounceMs = 500,
|
|
114
119
|
compactEvery = 10,
|
|
115
|
-
onError
|
|
120
|
+
onError = (err) => console.error(`checkpointToRedis(${graph.name}): checkpoint persistence failed`, err)
|
|
116
121
|
} = opts ?? {};
|
|
117
122
|
const redisKey = `${prefix}${graph.name}`;
|
|
118
123
|
const tier = {
|
|
@@ -124,23 +129,24 @@ function checkpointToRedis(graph, client, opts) {
|
|
|
124
129
|
try {
|
|
125
130
|
body = JSON.stringify(record);
|
|
126
131
|
} catch (err) {
|
|
127
|
-
onError
|
|
132
|
+
onError(err);
|
|
128
133
|
return;
|
|
129
134
|
}
|
|
130
|
-
void client.set(redisKey, body).catch((err) => onError
|
|
135
|
+
void client.set(redisKey, body).catch((err) => onError(err));
|
|
131
136
|
},
|
|
132
137
|
async load() {
|
|
133
138
|
const raw = await client.get(redisKey);
|
|
134
139
|
if (raw == null) return void 0;
|
|
135
140
|
try {
|
|
136
141
|
return JSON.parse(raw);
|
|
137
|
-
} catch {
|
|
142
|
+
} catch (err) {
|
|
143
|
+
onError(err);
|
|
138
144
|
return void 0;
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
};
|
|
142
148
|
return graph.attachSnapshotStorage([{ snapshot: tier }], {
|
|
143
|
-
onError: (err) => onError
|
|
149
|
+
onError: (err) => onError(err)
|
|
144
150
|
});
|
|
145
151
|
}
|
|
146
152
|
|
|
@@ -711,7 +717,21 @@ function reactiveSink(source, config) {
|
|
|
711
717
|
}
|
|
712
718
|
return run();
|
|
713
719
|
};
|
|
714
|
-
|
|
720
|
+
let maxBuf = Number.POSITIVE_INFINITY;
|
|
721
|
+
if (backpressure) {
|
|
722
|
+
const mb = backpressure.maxBuffer;
|
|
723
|
+
if (mb === void 0) {
|
|
724
|
+
throw new RangeError(
|
|
725
|
+
"reactiveSink: backpressure requires explicit maxBuffer (use Infinity to opt in to unbounded)"
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
if (mb !== Number.POSITIVE_INFINITY && (!Number.isInteger(mb) || mb < 1)) {
|
|
729
|
+
throw new RangeError(
|
|
730
|
+
"reactiveSink: backpressure.maxBuffer must be a positive integer (or Infinity for unbounded)"
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
maxBuf = mb;
|
|
734
|
+
}
|
|
715
735
|
const buffer = new BackpressureBuffer(maxBuf);
|
|
716
736
|
let flushTimer;
|
|
717
737
|
let disposed = false;
|
|
@@ -3297,13 +3317,7 @@ function toWebSocket(source, socket, opts) {
|
|
|
3297
3317
|
return handle;
|
|
3298
3318
|
}
|
|
3299
3319
|
function fromWebSocketReconnect(factory, opts) {
|
|
3300
|
-
const {
|
|
3301
|
-
parse,
|
|
3302
|
-
maxRetries,
|
|
3303
|
-
backoff = "exponential",
|
|
3304
|
-
closeOnTeardown = true,
|
|
3305
|
-
...rest
|
|
3306
|
-
} = opts ?? {};
|
|
3320
|
+
const { parse, maxRetries, backoff = "exponential", closeOnTeardown = true, ...rest } = opts;
|
|
3307
3321
|
return retry(
|
|
3308
3322
|
() => fromWebSocket(factory(), {
|
|
3309
3323
|
parse,
|