@graphrefly/graphrefly 0.10.0 → 0.12.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 (70) hide show
  1. package/dist/{chunk-QTZSBQGJ.js → chunk-4F2ZFD5L.js} +19 -1
  2. package/dist/chunk-4F2ZFD5L.js.map +1 -0
  3. package/dist/{chunk-LR2CLSEF.js → chunk-6OLNYOGU.js} +2 -3
  4. package/dist/chunk-6OLNYOGU.js.map +1 -0
  5. package/dist/{chunk-TZLX4KIT.js → chunk-BRPCN2HJ.js} +46 -17
  6. package/dist/chunk-BRPCN2HJ.js.map +1 -0
  7. package/dist/{chunk-A2AJJOSJ.js → chunk-IXTW3BIO.js} +3 -3
  8. package/dist/{chunk-XCZPGOVP.js → chunk-JYRHO63K.js} +3 -3
  9. package/dist/{chunk-UCW3VWMN.js → chunk-NULSP7U4.js} +4 -4
  10. package/dist/{chunk-WYI7YW54.js → chunk-VQWLA6XQ.js} +3 -3
  11. package/dist/{chunk-YWTP2XRJ.js → chunk-X732W3QA.js} +2 -2
  12. package/dist/{chunk-E7OH6ZAZ.js → chunk-XWMTVV2D.js} +62 -3
  13. package/dist/chunk-XWMTVV2D.js.map +1 -0
  14. package/dist/compat/nestjs/index.cjs +10 -1
  15. package/dist/compat/nestjs/index.cjs.map +1 -1
  16. package/dist/compat/nestjs/index.d.cts +4 -4
  17. package/dist/compat/nestjs/index.d.ts +4 -4
  18. package/dist/compat/nestjs/index.js +7 -7
  19. package/dist/core/index.cjs +74 -1
  20. package/dist/core/index.cjs.map +1 -1
  21. package/dist/core/index.d.cts +2 -2
  22. package/dist/core/index.d.ts +2 -2
  23. package/dist/core/index.js +12 -3
  24. package/dist/extra/index.cjs +52 -14
  25. package/dist/extra/index.cjs.map +1 -1
  26. package/dist/extra/index.d.cts +4 -4
  27. package/dist/extra/index.d.ts +4 -4
  28. package/dist/extra/index.js +5 -5
  29. package/dist/graph/index.cjs +10 -1
  30. package/dist/graph/index.cjs.map +1 -1
  31. package/dist/graph/index.d.cts +3 -3
  32. package/dist/graph/index.d.ts +3 -3
  33. package/dist/graph/index.js +4 -4
  34. package/dist/{graph-DqTICAY2.d.cts → graph-BE10ujU9.d.cts} +1 -1
  35. package/dist/{graph-X9uwnD_z.d.ts → graph-DXT95WZ3.d.ts} +1 -1
  36. package/dist/{index-DLO8wnYU.d.ts → index-53cDGX7F.d.ts} +3 -3
  37. package/dist/{index-DMv1Etbi.d.ts → index-B10Q0sQB.d.ts} +2 -2
  38. package/dist/{index-BPCeYDS4.d.ts → index-C0_7g9sj.d.ts} +1 -1
  39. package/dist/{index-3U0WxdD-.d.cts → index-CCvzN5GB.d.cts} +2 -2
  40. package/dist/{index-BP1t_38S.d.cts → index-CiAqgfFg.d.ts} +17 -13
  41. package/dist/{index-a5gHmH5b.d.ts → index-CthwPnHQ.d.cts} +17 -13
  42. package/dist/{index-BVG5pjin.d.ts → index-Dzdm20sx.d.ts} +88 -3
  43. package/dist/{index-BYEgosAX.d.cts → index-QfbXNW1N.d.cts} +88 -3
  44. package/dist/{index-BYa2YMat.d.cts → index-aBZ2RoP0.d.cts} +3 -3
  45. package/dist/{index-DbwgQ4Cw.d.cts → index-nRulwTr-.d.cts} +1 -1
  46. package/dist/index.cjs +1084 -118
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.cts +422 -22
  49. package/dist/index.d.ts +422 -22
  50. package/dist/index.js +988 -120
  51. package/dist/index.js.map +1 -1
  52. package/dist/{meta-BJEU8fYz.d.cts → meta-BcuDhtwu.d.cts} +33 -1
  53. package/dist/{meta-BJEU8fYz.d.ts → meta-BcuDhtwu.d.ts} +33 -1
  54. package/dist/patterns/reactive-layout/index.cjs +10 -1
  55. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  56. package/dist/patterns/reactive-layout/index.d.cts +3 -3
  57. package/dist/patterns/reactive-layout/index.d.ts +3 -3
  58. package/dist/patterns/reactive-layout/index.js +4 -4
  59. package/dist/{reactive-log-RhgIog2Z.d.ts → reactive-log-Cu0VdqkT.d.ts} +2 -2
  60. package/dist/{reactive-log-BfX6bOSZ.d.cts → reactive-log-OULQssZg.d.cts} +2 -2
  61. package/package.json +7 -2
  62. package/dist/chunk-E7OH6ZAZ.js.map +0 -1
  63. package/dist/chunk-LR2CLSEF.js.map +0 -1
  64. package/dist/chunk-QTZSBQGJ.js.map +0 -1
  65. package/dist/chunk-TZLX4KIT.js.map +0 -1
  66. /package/dist/{chunk-A2AJJOSJ.js.map → chunk-IXTW3BIO.js.map} +0 -0
  67. /package/dist/{chunk-XCZPGOVP.js.map → chunk-JYRHO63K.js.map} +0 -0
  68. /package/dist/{chunk-UCW3VWMN.js.map → chunk-NULSP7U4.js.map} +0 -0
  69. /package/dist/{chunk-WYI7YW54.js.map → chunk-VQWLA6XQ.js.map} +0 -0
  70. /package/dist/{chunk-YWTP2XRJ.js.map → chunk-X732W3QA.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-BJEU8fYz.js';
2
- export { C as COMPLETE, D as DATA, d as DEFAULT_ACTOR, e as DIRTY, f as DescribeDetail, g as DescribeField, h as DescribeNodeOutput, E as ERROR, G as GuardAction, i as GuardDenied, j as GuardDeniedDetails, H as HashFn, I as INVALIDATE, M as Message, k as Messages, l as NodeDescribeKind, m as NodeGuard, n as NodeSink, o as NodeStatus, p as NodeTransportOptions, q as NodeVersionInfo, O as OnMessageHandler, P as PAUSE, r as PolicyAllow, s as PolicyDeny, t as PolicyRuleData, R as RESOLVED, u as RESUME, S as SubscribeHints, T as TEARDOWN, V as V0, v as V1, w as VersioningLevel, x as VersioningOptions, y as accessHintForGuard, z as advanceVersion, B as createVersioning, F as defaultHash, J as describeNode, K as isKnownMessageType, L as isPhase2Message, Q as isTerminalMessage, U as isV1, W as knownMessageTypes, X as messageTier, Y as metaSnapshot, Z as node, _ as normalizeActor, $ as policy, a0 as policyFromRules, a1 as propagatesToMeta, a2 as resolveDescribeFields } from './meta-BJEU8fYz.js';
3
- import { i as index$a, c as cqrs } from './index-DLO8wnYU.js';
1
+ import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-BcuDhtwu.js';
2
+ export { C as CLEANUP_RESULT, d as COMPLETE, e as CleanupResult, D as DATA, f as DEFAULT_ACTOR, g as DIRTY, h as DescribeDetail, i as DescribeField, j as DescribeNodeOutput, E as ERROR, G as GuardAction, k as GuardDenied, l as GuardDeniedDetails, H as HashFn, I as INVALIDATE, M as Message, m as Messages, n as NodeDescribeKind, o as NodeGuard, p as NodeSink, q as NodeStatus, r as NodeTransportOptions, s as NodeVersionInfo, O as OnMessageHandler, P as PAUSE, t as PolicyAllow, u as PolicyDeny, v as PolicyRuleData, R as RESOLVED, w as RESUME, S as SubscribeHints, T as TEARDOWN, V as V0, x as V1, y as VersioningLevel, z as VersioningOptions, B as accessHintForGuard, F as advanceVersion, J as cleanupResult, K as createVersioning, L as defaultHash, Q as describeNode, U as isKnownMessageType, W as isPhase2Message, X as isTerminalMessage, Y as isV1, Z as knownMessageTypes, _ as messageTier, $ as metaSnapshot, a0 as node, a1 as normalizeActor, a2 as policy, a3 as policyFromRules, a4 as propagatesToMeta, a5 as resolveDescribeFields } from './meta-BcuDhtwu.js';
3
+ import { i as index$a, c as cqrs } from './index-53cDGX7F.js';
4
4
  import { Ref, WatchSource } from 'vue';
5
- import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions } from './graph-X9uwnD_z.js';
6
- export { D as DescribeFilter, d as GRAPH_META_SEGMENT, e as GraphActorOptions, f as GraphCheckpointRecord, g as GraphDescribeOptions, h as GraphDescribeOutput, i as GraphDiagramDirection, j as GraphDiagramOptions, k as GraphDiffChange, l as GraphDiffResult, m as GraphDumpOptions, n as GraphFactoryContext, o as GraphNodeFactory, p as GraphObserveAll, q as GraphObserveOne, r as GraphPersistSnapshot, s as GraphSpyHandle, t as GraphSpyOptions, u as GraphSpyTheme, v as GraphSpyThemeName, O as ObserveDetail, w as ObserveEvent, x as ObserveOptions, y as ObserveResult, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, B as reachable } from './graph-X9uwnD_z.js';
7
- export { D as DynGet, a as DynamicNodeFn, b as DynamicNodeImpl, c as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, d as batch, i as core, e as derived, f as dynamicNode, g as effect, h as emitWithBatch, j as isBatching, m as monotonicNs, p as partitionForBatch, k as pipe, l as producer, s as state, w as wallClockNs } from './index-BVG5pjin.js';
8
- import { N as NodeInput, D as DistillBundle, E as Extraction, R as ReactiveListSnapshot, a as ReactiveMapSnapshot } from './index-a5gHmH5b.js';
9
- 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, w as DistillOptions, x as DrizzleQueryLike, y as ErrorMessage, z as EventTargetLike, F as ExponentialBackoffOptions, 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, 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, aK as ReactiveMapBundle, aL as ReactiveMapOptions, 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, c8 as extra, 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 gate, cN as globToRegExp, cO as interval, cP as last, cQ as linear, cR as lru, cS as map, cT as matchesAnyPattern, cU as matchesCron, cV as merge, cW as mergeMap, cX as nameToSignal, cY as never, cZ as of, c_ as pairwise, c$ as parseCron, d0 as parsePrometheusText, d1 as parseStatsD, d2 as parseSyslog, d3 as pausable, d4 as pubsub, d5 as race, d6 as rateLimiter, d7 as reactiveIndex, d8 as reactiveList, 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 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-a5gHmH5b.js';
10
- export { D as DeltaCheckpoint, E as EvictedSubgraphInfo, a as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, W as WALEntry, c as createDagCborCodec, b as createDagCborZstdCodec, i as graph, n as negotiateCodec, r as replayWAL } from './index-BPCeYDS4.js';
11
- import { R as ReactiveLogSnapshot } from './reactive-log-RhgIog2Z.js';
12
- export { a as ReactiveLogBundle, b as ReactiveLogOptions, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from './reactive-log-RhgIog2Z.js';
13
- import { M as MeasurementAdapter, i as index$b } from './index-DMv1Etbi.js';
5
+ import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions } from './graph-DXT95WZ3.js';
6
+ export { D as DescribeFilter, d as GRAPH_META_SEGMENT, e as GraphActorOptions, f as GraphCheckpointRecord, g as GraphDescribeOptions, h as GraphDescribeOutput, i as GraphDiagramDirection, j as GraphDiagramOptions, k as GraphDiffChange, l as GraphDiffResult, m as GraphDumpOptions, n as GraphFactoryContext, o as GraphNodeFactory, p as GraphObserveAll, q as GraphObserveOne, r as GraphPersistSnapshot, s as GraphSpyHandle, t as GraphSpyOptions, u as GraphSpyTheme, v as GraphSpyThemeName, O as ObserveDetail, w as ObserveEvent, x as ObserveOptions, y as ObserveResult, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, B as reachable } from './graph-DXT95WZ3.js';
7
+ export { B as BridgeOptions, D as DEFAULT_DOWN, a as DynGet, b as DynamicNodeFn, c as DynamicNodeImpl, d as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, e as batch, f as bridge, i as core, g as derived, h as dynamicNode, j as effect, k as emitWithBatch, l as isBatching, m as monotonicNs, p as partitionForBatch, n as pipe, o as producer, s as state, w as wallClockNs } from './index-Dzdm20sx.js';
8
+ import { N as NodeInput, D as DistillBundle, E as Extraction, R as ReactiveListSnapshot, a as ReactiveMapSnapshot } from './index-CiAqgfFg.js';
9
+ 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, w as DistillOptions, x as DrizzleQueryLike, y as ErrorMessage, z as EventTargetLike, F as ExponentialBackoffOptions, 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, 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, aK as ReactiveMapBundle, aL as ReactiveMapOptions, 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, c8 as extra, 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-CiAqgfFg.js';
10
+ export { D as DeltaCheckpoint, E as EvictedSubgraphInfo, a as EvictionPolicy, G as GraphCodec, J as JsonCodec, L as LazyGraphCodec, W as WALEntry, c as createDagCborCodec, b as createDagCborZstdCodec, i as graph, n as negotiateCodec, r as replayWAL } from './index-C0_7g9sj.js';
11
+ import { R as ReactiveLogSnapshot } from './reactive-log-Cu0VdqkT.js';
12
+ export { a as ReactiveLogBundle, b as ReactiveLogOptions, l as logSlice, o as observeGraph$, c as observeNode$, r as reactiveLog, t as toMessages$, d as toObservable } from './reactive-log-Cu0VdqkT.js';
13
+ import { M as MeasurementAdapter, i as index$b } from './index-B10Q0sQB.js';
14
14
  import '@nestjs/common';
15
15
  import '@nestjs/core';
16
16
  import 'rxjs';
@@ -732,6 +732,31 @@ type LLMStreamHandle = {
732
732
  * tear down the effect and release resources.
733
733
  */
734
734
  declare function fromLLMStream(adapter: LLMAdapter, messages: NodeInput<readonly ChatMessage[]>, opts?: FromLLMStreamOptions): LLMStreamHandle;
735
+ type PromptNodeOptions = {
736
+ name?: string;
737
+ model?: string;
738
+ temperature?: number;
739
+ maxTokens?: number;
740
+ /** Output format — `"json"` attempts JSON.parse on the response. Default: `"text"`. */
741
+ format?: "text" | "json";
742
+ /** Number of retries on transient errors. Default: 0. */
743
+ retries?: number;
744
+ /** Cache LLM responses for identical inputs. Default: false. */
745
+ cache?: boolean;
746
+ systemPrompt?: string;
747
+ meta?: Record<string, unknown>;
748
+ };
749
+ /**
750
+ * Universal LLM transform: wraps a prompt template + model adapter into a reactive derived node.
751
+ * Re-invokes the LLM whenever any dep changes. Suitable for triage, QA, hypothesis, parity, etc.
752
+ *
753
+ * @param adapter - LLM adapter (provider-agnostic).
754
+ * @param deps - Input nodes whose values feed the prompt.
755
+ * @param prompt - Static string or template function receiving dep values.
756
+ * @param opts - Optional configuration.
757
+ * @returns `Node` emitting LLM responses (string or parsed JSON).
758
+ */
759
+ declare function promptNode<T = string>(adapter: LLMAdapter, deps: readonly Node<unknown>[], prompt: string | ((...depValues: unknown[]) => string), opts?: PromptNodeOptions): Node<T | null>;
735
760
  type ChatStreamOptions = {
736
761
  graph?: GraphOptions;
737
762
  maxMessages?: number;
@@ -1199,6 +1224,7 @@ type ai_MemoryTier = MemoryTier;
1199
1224
  type ai_MemoryTiersBundle<TMem> = MemoryTiersBundle<TMem>;
1200
1225
  type ai_MemoryTiersOptions<TMem> = MemoryTiersOptions<TMem>;
1201
1226
  type ai_OpenAIToolSchema = OpenAIToolSchema;
1227
+ type ai_PromptNodeOptions = PromptNodeOptions;
1202
1228
  type ai_RetrievalEntry<TMem> = RetrievalEntry<TMem>;
1203
1229
  type ai_RetrievalPipelineOptions<TMem> = RetrievalPipelineOptions<TMem>;
1204
1230
  type ai_RetrievalQuery = RetrievalQuery;
@@ -1223,12 +1249,13 @@ declare const ai_graphFromSpec: typeof graphFromSpec;
1223
1249
  declare const ai_knobsAsTools: typeof knobsAsTools;
1224
1250
  declare const ai_llmConsolidator: typeof llmConsolidator;
1225
1251
  declare const ai_llmExtractor: typeof llmExtractor;
1252
+ declare const ai_promptNode: typeof promptNode;
1226
1253
  declare const ai_suggestStrategy: typeof suggestStrategy;
1227
1254
  declare const ai_systemPromptBuilder: typeof systemPromptBuilder;
1228
1255
  declare const ai_toolRegistry: typeof toolRegistry;
1229
1256
  declare const ai_validateGraphDef: typeof validateGraphDef;
1230
1257
  declare namespace ai {
1231
- export { type ai_AdmissionScore3DOptions as AdmissionScore3DOptions, type ai_AdmissionScores as AdmissionScores, ai_AgentLoopGraph as AgentLoopGraph, type ai_AgentLoopOptions as AgentLoopOptions, type ai_AgentLoopStatus as AgentLoopStatus, type ai_AgentMemoryGraph as AgentMemoryGraph, type ai_AgentMemoryOptions as AgentMemoryOptions, type ai_ChatMessage as ChatMessage, ai_ChatStreamGraph as ChatStreamGraph, type ai_ChatStreamOptions as ChatStreamOptions, type ai_FromLLMOptions as FromLLMOptions, type ai_FromLLMStreamOptions as FromLLMStreamOptions, type ai_GaugesAsContextOptions as GaugesAsContextOptions, type ai_GraphDefValidation as GraphDefValidation, type ai_GraphFromSpecOptions as GraphFromSpecOptions, type ai_KnobsAsToolsResult as KnobsAsToolsResult, type ai_LLMAdapter as LLMAdapter, type ai_LLMConsolidatorOptions as LLMConsolidatorOptions, type ai_LLMExtractorOptions as LLMExtractorOptions, type ai_LLMInvokeOptions as LLMInvokeOptions, type ai_LLMResponse as LLMResponse, type ai_LLMStreamHandle as LLMStreamHandle, type ai_McpToolSchema as McpToolSchema, type ai_MemoryTier as MemoryTier, type ai_MemoryTiersBundle as MemoryTiersBundle, type ai_MemoryTiersOptions as MemoryTiersOptions, type ai_OpenAIToolSchema as OpenAIToolSchema, type ai_RetrievalEntry as RetrievalEntry, type ai_RetrievalPipelineOptions as RetrievalPipelineOptions, type ai_RetrievalQuery as RetrievalQuery, type ai_RetrievalTrace as RetrievalTrace, type ai_StrategyOperation as StrategyOperation, type ai_StrategyPlan as StrategyPlan, type ai_SuggestStrategyOptions as SuggestStrategyOptions, type ai_SystemPromptHandle as SystemPromptHandle, type ai_ToolCall as ToolCall, type ai_ToolDefinition as ToolDefinition, ai_ToolRegistryGraph as ToolRegistryGraph, type ai_ToolRegistryOptions as ToolRegistryOptions, ai_admissionFilter3D as admissionFilter3D, ai_agentLoop as agentLoop, ai_agentMemory as agentMemory, ai_chatStream as chatStream, ai_fromLLM as fromLLM, ai_fromLLMStream as fromLLMStream, ai_gaugesAsContext as gaugesAsContext, ai_graphFromSpec as graphFromSpec, ai_knobsAsTools as knobsAsTools, ai_llmConsolidator as llmConsolidator, ai_llmExtractor as llmExtractor, ai_suggestStrategy as suggestStrategy, ai_systemPromptBuilder as systemPromptBuilder, ai_toolRegistry as toolRegistry, ai_validateGraphDef as validateGraphDef };
1258
+ export { type ai_AdmissionScore3DOptions as AdmissionScore3DOptions, type ai_AdmissionScores as AdmissionScores, ai_AgentLoopGraph as AgentLoopGraph, type ai_AgentLoopOptions as AgentLoopOptions, type ai_AgentLoopStatus as AgentLoopStatus, type ai_AgentMemoryGraph as AgentMemoryGraph, type ai_AgentMemoryOptions as AgentMemoryOptions, type ai_ChatMessage as ChatMessage, ai_ChatStreamGraph as ChatStreamGraph, type ai_ChatStreamOptions as ChatStreamOptions, type ai_FromLLMOptions as FromLLMOptions, type ai_FromLLMStreamOptions as FromLLMStreamOptions, type ai_GaugesAsContextOptions as GaugesAsContextOptions, type ai_GraphDefValidation as GraphDefValidation, type ai_GraphFromSpecOptions as GraphFromSpecOptions, type ai_KnobsAsToolsResult as KnobsAsToolsResult, type ai_LLMAdapter as LLMAdapter, type ai_LLMConsolidatorOptions as LLMConsolidatorOptions, type ai_LLMExtractorOptions as LLMExtractorOptions, type ai_LLMInvokeOptions as LLMInvokeOptions, type ai_LLMResponse as LLMResponse, type ai_LLMStreamHandle as LLMStreamHandle, type ai_McpToolSchema as McpToolSchema, type ai_MemoryTier as MemoryTier, type ai_MemoryTiersBundle as MemoryTiersBundle, type ai_MemoryTiersOptions as MemoryTiersOptions, type ai_OpenAIToolSchema as OpenAIToolSchema, type ai_PromptNodeOptions as PromptNodeOptions, type ai_RetrievalEntry as RetrievalEntry, type ai_RetrievalPipelineOptions as RetrievalPipelineOptions, type ai_RetrievalQuery as RetrievalQuery, type ai_RetrievalTrace as RetrievalTrace, type ai_StrategyOperation as StrategyOperation, type ai_StrategyPlan as StrategyPlan, type ai_SuggestStrategyOptions as SuggestStrategyOptions, type ai_SystemPromptHandle as SystemPromptHandle, type ai_ToolCall as ToolCall, type ai_ToolDefinition as ToolDefinition, ai_ToolRegistryGraph as ToolRegistryGraph, type ai_ToolRegistryOptions as ToolRegistryOptions, ai_admissionFilter3D as admissionFilter3D, ai_agentLoop as agentLoop, ai_agentMemory as agentMemory, ai_chatStream as chatStream, ai_fromLLM as fromLLM, ai_fromLLMStream as fromLLMStream, ai_gaugesAsContext as gaugesAsContext, ai_graphFromSpec as graphFromSpec, ai_knobsAsTools as knobsAsTools, ai_llmConsolidator as llmConsolidator, ai_llmExtractor as llmExtractor, ai_promptNode as promptNode, ai_suggestStrategy as suggestStrategy, ai_systemPromptBuilder as systemPromptBuilder, ai_toolRegistry as toolRegistry, ai_validateGraphDef as validateGraphDef };
1232
1259
  }
1233
1260
 
1234
1261
  /**
@@ -1329,6 +1356,233 @@ declare namespace demoShell$1 {
1329
1356
  export { type demoShell$1_DemoShellHandle as DemoShellHandle, type demoShell$1_DemoShellOptions as DemoShellOptions, type demoShell$1_FullscreenPane as FullscreenPane, type demoShell$1_GraphLabelSize as GraphLabelSize, type demoShell$1_HighlightCallbacks as HighlightCallbacks, type demoShell$1_HoverPaneType as HoverPaneType, type demoShell$1_HoverTarget as HoverTarget, type demoShell$1_NodeRegistry as NodeRegistry, demoShell$1_demoShell as demoShell };
1330
1357
  }
1331
1358
 
1359
+ /**
1360
+ * Domain templates (roadmap §8.2).
1361
+ *
1362
+ * Opinionated Graph factories for common "info → action" domains.
1363
+ * Each template wires up §8.1 reduction primitives (stratify, funnel, feedback,
1364
+ * budgetGate, scorer) with domain-specific stages. Users fork/extend by
1365
+ * accessing named nodes and swapping stages.
1366
+ *
1367
+ * **Source injection (option B):** templates accept a `source` node, not a
1368
+ * hardcoded adapter. Pass `fromOTel(...)`, `fromGitHook(...)`, or a test
1369
+ * `state()` — the topology is the same.
1370
+ *
1371
+ * @module
1372
+ */
1373
+
1374
+ /** Stratification branch config for observability signals. */
1375
+ type ObservabilityBranch = {
1376
+ name: string;
1377
+ classify: (value: unknown) => boolean;
1378
+ };
1379
+ /** Options for {@link observabilityGraph}. */
1380
+ type ObservabilityGraphOptions = GraphOptions & {
1381
+ /** Ingested signal source (e.g. fromOTel(...) or test state). */
1382
+ source: Node<unknown>;
1383
+ /**
1384
+ * Classification rules for signal stratification.
1385
+ * Default: errors / traces / metrics branches.
1386
+ */
1387
+ branches?: ObservabilityBranch[];
1388
+ /**
1389
+ * Correlation function: receives stratified branch values and produces
1390
+ * correlated insights. Default: identity pass-through.
1391
+ */
1392
+ correlate?: (values: unknown[]) => unknown;
1393
+ /**
1394
+ * SLO verification function: returns a verification result for a
1395
+ * correlated insight. Default: always passes.
1396
+ */
1397
+ sloCheck?: (value: unknown) => unknown;
1398
+ /**
1399
+ * Scorer weights for alert prioritization. One per branch.
1400
+ * Default: equal weights [1, 1, 1].
1401
+ */
1402
+ weights?: number[];
1403
+ /** Max feedback iterations for false-positive learning. Default: 5. */
1404
+ maxFeedbackIterations?: number;
1405
+ };
1406
+ /**
1407
+ * OTel ingest → stratified reduction → correlation → SLO verification →
1408
+ * alert prioritization → output.
1409
+ *
1410
+ * Well-known node names:
1411
+ * - `"source"` — injected signal source
1412
+ * - `"stratify::branch/<name>"` — per-branch classification
1413
+ * - `"correlate"` — cross-branch correlation
1414
+ * - `"slo_value"`, `"slo_verified"` — SLO verification pair
1415
+ * - `"alerts"` — scored, prioritized output
1416
+ * - `"output"` — final output (alias for alerts)
1417
+ *
1418
+ * @category patterns
1419
+ */
1420
+ declare function observabilityGraph(name: string, opts: ObservabilityGraphOptions): Graph;
1421
+ /** A structured issue extracted from raw findings. */
1422
+ type ExtractedIssue = {
1423
+ id: string;
1424
+ title: string;
1425
+ severity: number;
1426
+ source: string;
1427
+ raw: unknown;
1428
+ };
1429
+ /** Options for {@link issueTrackerGraph}. */
1430
+ type IssueTrackerGraphOptions = GraphOptions & {
1431
+ /** Findings source (e.g. fromGitHook(...), fromFSWatch(...)). */
1432
+ source: Node<unknown>;
1433
+ /**
1434
+ * Extract structured issues from raw findings.
1435
+ * Default: wraps raw value as a single issue.
1436
+ */
1437
+ extract?: (raw: unknown) => ExtractedIssue;
1438
+ /**
1439
+ * Verify an extracted issue (assertion check).
1440
+ * Default: always valid.
1441
+ */
1442
+ verify?: (issue: ExtractedIssue) => unknown;
1443
+ /**
1444
+ * Detect regression by comparing against known patterns.
1445
+ * Receives (current issue, known patterns).
1446
+ * Default: no regression detected.
1447
+ */
1448
+ detectRegression?: (issue: ExtractedIssue, known: unknown) => unknown;
1449
+ /** Max feedback iterations for re-scanning. Default: 3. */
1450
+ maxFeedbackIterations?: number;
1451
+ };
1452
+ /**
1453
+ * Findings ingest → extraction → verification → regression detection →
1454
+ * distillation → prioritized queue.
1455
+ *
1456
+ * Well-known node names:
1457
+ * - `"source"` — injected findings source
1458
+ * - `"extract"` — structured issue extraction
1459
+ * - `"verify"` — issue verification
1460
+ * - `"known_patterns"` — accumulated known issue patterns (state)
1461
+ * - `"regression"` — regression detection
1462
+ * - `"priority"` — severity-based prioritization
1463
+ * - `"output"` — final prioritized output
1464
+ *
1465
+ * @category patterns
1466
+ */
1467
+ declare function issueTrackerGraph(name: string, opts: IssueTrackerGraphOptions): Graph;
1468
+ /** Classification result from LLM moderation. */
1469
+ type ModerationResult = {
1470
+ label: "safe" | "review" | "block";
1471
+ confidence: number;
1472
+ reason?: string;
1473
+ original: unknown;
1474
+ };
1475
+ /** Options for {@link contentModerationGraph}. */
1476
+ type ContentModerationGraphOptions = GraphOptions & {
1477
+ /** Content source (text/multimedia ingest). */
1478
+ source: Node<unknown>;
1479
+ /**
1480
+ * Classification function: returns a ModerationResult.
1481
+ * Default: labels everything "review" with confidence 0.5.
1482
+ */
1483
+ classify?: (content: unknown) => ModerationResult;
1484
+ /** System prompt for LLM classification. */
1485
+ systemPrompt?: string;
1486
+ /** Scorer weights: [safe, review, block]. Default: [0.1, 1, 2]. */
1487
+ weights?: [number, number, number];
1488
+ /** Max feedback iterations for policy refinement. Default: 5. */
1489
+ maxFeedbackIterations?: number;
1490
+ /** Max review queue size. When set, oldest entries are trimmed on overflow. */
1491
+ maxQueueSize?: number;
1492
+ };
1493
+ /**
1494
+ * Content ingest → LLM/rule classification → stratified routing (safe/review/block) →
1495
+ * human review queue → scorer → feedback (false positives → policy refinement) → output.
1496
+ *
1497
+ * Well-known node names:
1498
+ * - `"source"` — content ingest
1499
+ * - `"classify"` — LLM or rule-based classification
1500
+ * - `"stratify::branch/safe"`, `"stratify::branch/review"`, `"stratify::branch/block"` — routed branches
1501
+ * - `"review_queue"` — state node for human review items
1502
+ * - `"priority"` — scored priority output
1503
+ * - `"policy"` — writable state for policy refinement
1504
+ * - `"output"` — final moderation output
1505
+ *
1506
+ * @category patterns
1507
+ */
1508
+ declare function contentModerationGraph(name: string, opts: ContentModerationGraphOptions): Graph;
1509
+ /** Schema validation result. */
1510
+ type ValidationResult = {
1511
+ valid: boolean;
1512
+ errors: string[];
1513
+ record: unknown;
1514
+ };
1515
+ /** Anomaly detection result. */
1516
+ type AnomalyResult = {
1517
+ anomaly: boolean;
1518
+ score: number;
1519
+ detail?: string;
1520
+ record: unknown;
1521
+ };
1522
+ /** Options for {@link dataQualityGraph}. */
1523
+ type DataQualityGraphOptions = GraphOptions & {
1524
+ /** Data source (e.g. fromPrisma(...), fromKysely(...)). */
1525
+ source: Node<unknown>;
1526
+ /**
1527
+ * Schema validation function.
1528
+ * Default: always valid.
1529
+ */
1530
+ validate?: (record: unknown) => ValidationResult;
1531
+ /**
1532
+ * Anomaly detection function.
1533
+ * Default: no anomaly.
1534
+ */
1535
+ detectAnomaly?: (record: unknown) => AnomalyResult;
1536
+ /**
1537
+ * Drift detection: compares current record against baseline.
1538
+ * Default: no drift.
1539
+ */
1540
+ detectDrift?: (record: unknown, baseline: unknown) => unknown;
1541
+ /**
1542
+ * Remediation suggestion function.
1543
+ * Default: no suggestion.
1544
+ */
1545
+ suggest?: (result: {
1546
+ validation: ValidationResult;
1547
+ anomaly: AnomalyResult;
1548
+ }) => unknown;
1549
+ /** Max feedback iterations for rule refinement. Default: 3. */
1550
+ maxFeedbackIterations?: number;
1551
+ };
1552
+ /**
1553
+ * Data ingest → schema validation → anomaly detection → drift alerting →
1554
+ * auto-remediation suggestions → output.
1555
+ *
1556
+ * Well-known node names:
1557
+ * - `"source"` — data ingest
1558
+ * - `"validate"` — schema validation
1559
+ * - `"anomaly"` — anomaly detection
1560
+ * - `"baseline"` — rolling baseline state
1561
+ * - `"drift"` — drift detection
1562
+ * - `"remediate"` — auto-remediation suggestions
1563
+ * - `"output"` — combined quality report
1564
+ *
1565
+ * @category patterns
1566
+ */
1567
+ declare function dataQualityGraph(name: string, opts: DataQualityGraphOptions): Graph;
1568
+
1569
+ type domainTemplates_AnomalyResult = AnomalyResult;
1570
+ type domainTemplates_ContentModerationGraphOptions = ContentModerationGraphOptions;
1571
+ type domainTemplates_DataQualityGraphOptions = DataQualityGraphOptions;
1572
+ type domainTemplates_ExtractedIssue = ExtractedIssue;
1573
+ type domainTemplates_IssueTrackerGraphOptions = IssueTrackerGraphOptions;
1574
+ type domainTemplates_ModerationResult = ModerationResult;
1575
+ type domainTemplates_ObservabilityBranch = ObservabilityBranch;
1576
+ type domainTemplates_ObservabilityGraphOptions = ObservabilityGraphOptions;
1577
+ type domainTemplates_ValidationResult = ValidationResult;
1578
+ declare const domainTemplates_contentModerationGraph: typeof contentModerationGraph;
1579
+ declare const domainTemplates_dataQualityGraph: typeof dataQualityGraph;
1580
+ declare const domainTemplates_issueTrackerGraph: typeof issueTrackerGraph;
1581
+ declare const domainTemplates_observabilityGraph: typeof observabilityGraph;
1582
+ declare namespace domainTemplates {
1583
+ export { type domainTemplates_AnomalyResult as AnomalyResult, type domainTemplates_ContentModerationGraphOptions as ContentModerationGraphOptions, type domainTemplates_DataQualityGraphOptions as DataQualityGraphOptions, type domainTemplates_ExtractedIssue as ExtractedIssue, type domainTemplates_IssueTrackerGraphOptions as IssueTrackerGraphOptions, type domainTemplates_ModerationResult as ModerationResult, type domainTemplates_ObservabilityBranch as ObservabilityBranch, type domainTemplates_ObservabilityGraphOptions as ObservabilityGraphOptions, type domainTemplates_ValidationResult as ValidationResult, domainTemplates_contentModerationGraph as contentModerationGraph, domainTemplates_dataQualityGraph as dataQualityGraph, domainTemplates_issueTrackerGraph as issueTrackerGraph, domainTemplates_observabilityGraph as observabilityGraph };
1584
+ }
1585
+
1332
1586
  /**
1333
1587
  * LLM graph composition (roadmap §8.3).
1334
1588
  *
@@ -1404,11 +1658,88 @@ type FnFactory = (deps: Node<unknown>[], config: Record<string, unknown>) => Nod
1404
1658
  * Receives the config from the spec.
1405
1659
  */
1406
1660
  type SourceFactory = (config: Record<string, unknown>) => Node<unknown>;
1407
- /** Fn/source lookup table passed to compileSpec. */
1661
+ /** Simple config field descriptor for LLM prompt generation and validation. */
1662
+ type ConfigFieldSchema = {
1663
+ /** Human-readable type: "string", "number", "boolean", "string[]", etc. */
1664
+ type: string;
1665
+ /** Whether this field is required (default: true). */
1666
+ required?: boolean;
1667
+ /** Allowed values (enum constraint). */
1668
+ enum?: readonly (string | number | boolean)[];
1669
+ /** Human-readable description for LLM context. */
1670
+ description?: string;
1671
+ /** Default value if omitted. */
1672
+ default?: unknown;
1673
+ };
1674
+ /**
1675
+ * Rich catalog entry: bundles a runtime factory with LLM-facing metadata.
1676
+ *
1677
+ * The metadata is used to:
1678
+ * 1. Auto-generate prompt text for {@link llmCompose} (replaces manual `catalogDescription`)
1679
+ * 2. Validate LLM output in {@link validateSpec} (catch wrong fn names, invalid config)
1680
+ * 3. Provide actionable error messages for {@link llmRefine} feedback loops
1681
+ *
1682
+ * Developers register ONE object; the library handles prompt generation and validation.
1683
+ */
1684
+ type CatalogFnEntry = {
1685
+ /** Runtime factory. */
1686
+ factory: FnFactory;
1687
+ /** One-line description for LLM prompt (what it does, not how). */
1688
+ description: string;
1689
+ /** Config field schemas. Keys are config field names. */
1690
+ configSchema?: Record<string, ConfigFieldSchema>;
1691
+ /** Example config objects (shown in prompt for complex fns). */
1692
+ examples?: Record<string, unknown>[];
1693
+ /** Category tags for grouping in prompt (e.g., "resilience", "reduction", "ai"). */
1694
+ tags?: string[];
1695
+ };
1696
+ /** Rich catalog entry for producer sources. */
1697
+ type CatalogSourceEntry = {
1698
+ /** Runtime factory. */
1699
+ factory: SourceFactory;
1700
+ /** One-line description for LLM prompt. */
1701
+ description: string;
1702
+ /** Config field schemas. */
1703
+ configSchema?: Record<string, ConfigFieldSchema>;
1704
+ /** Example config objects. */
1705
+ examples?: Record<string, unknown>[];
1706
+ /** Category tags. */
1707
+ tags?: string[];
1708
+ };
1709
+ /**
1710
+ * Fn/source lookup table passed to compileSpec and llmCompose.
1711
+ *
1712
+ * Accepts both bare factories (backward-compatible) and rich {@link CatalogFnEntry}
1713
+ * / {@link CatalogSourceEntry} objects. When rich entries are provided, the library
1714
+ * auto-generates LLM prompts and validates LLM output against the catalog.
1715
+ */
1408
1716
  type GraphSpecCatalog = {
1409
- fns?: Record<string, FnFactory>;
1410
- sources?: Record<string, SourceFactory>;
1717
+ fns?: Record<string, FnFactory | CatalogFnEntry>;
1718
+ sources?: Record<string, SourceFactory | CatalogSourceEntry>;
1411
1719
  };
1720
+ /** Type guard: is this a rich catalog fn entry (vs bare factory)? */
1721
+ declare function isRichFnEntry(entry: FnFactory | CatalogFnEntry): entry is CatalogFnEntry;
1722
+ /** Type guard: is this a rich catalog source entry (vs bare factory)? */
1723
+ declare function isRichSourceEntry(entry: SourceFactory | CatalogSourceEntry): entry is CatalogSourceEntry;
1724
+ /** Extract the runtime factory from a catalog entry (rich or bare). */
1725
+ declare function extractFnFactory(entry: FnFactory | CatalogFnEntry): FnFactory;
1726
+ /** Extract the runtime factory from a catalog source entry (rich or bare). */
1727
+ declare function extractSourceFactory(entry: SourceFactory | CatalogSourceEntry): SourceFactory;
1728
+ /**
1729
+ * Auto-generate catalog prompt text from rich catalog entries.
1730
+ *
1731
+ * Groups fns by tag, formats each as `- name: description. Config: { ... }`.
1732
+ * Falls back to listing names only for bare factories.
1733
+ */
1734
+ declare function generateCatalogPrompt(catalog: GraphSpecCatalog): string;
1735
+ /**
1736
+ * Validate a GraphSpec against a catalog.
1737
+ *
1738
+ * Checks that fn/source names reference actual catalog entries, and validates
1739
+ * config fields against configSchema when rich entries are available.
1740
+ * Returns additional errors beyond structural {@link validateSpec} checks.
1741
+ */
1742
+ declare function validateSpecAgainstCatalog(spec: GraphSpec, catalog: GraphSpecCatalog): GraphSpecValidation;
1412
1743
  /** Validation result from {@link validateSpec}. */
1413
1744
  type GraphSpecValidation = {
1414
1745
  valid: boolean;
@@ -1485,8 +1816,24 @@ type LLMComposeOptions = {
1485
1816
  maxTokens?: number;
1486
1817
  /** Extra instructions appended to the system prompt. */
1487
1818
  systemPromptExtra?: string;
1488
- /** Available fn/source catalog names for the LLM to reference. */
1819
+ /**
1820
+ * Available fn/source catalog names for the LLM to reference.
1821
+ * When omitted and `catalog` contains rich {@link CatalogFnEntry} entries,
1822
+ * the prompt is auto-generated via {@link generateCatalogPrompt}.
1823
+ */
1489
1824
  catalogDescription?: string;
1825
+ /**
1826
+ * Catalog for auto-prompt generation and catalog-aware validation.
1827
+ * When rich entries are provided, the catalog prompt is auto-generated
1828
+ * and LLM output is validated against fn/source names and config schemas.
1829
+ */
1830
+ catalog?: GraphSpecCatalog;
1831
+ /**
1832
+ * Max auto-refine attempts when the LLM output fails catalog validation.
1833
+ * Each attempt feeds the validation errors back to the LLM via llmRefine.
1834
+ * Default: 0 (no auto-refine). Set to 2-3 for production use.
1835
+ */
1836
+ maxAutoRefine?: number;
1490
1837
  };
1491
1838
  /**
1492
1839
  * Ask an LLM to compose a GraphSpec from a natural-language problem description.
@@ -1519,7 +1866,10 @@ type LLMRefineOptions = LLMComposeOptions;
1519
1866
  */
1520
1867
  declare function llmRefine(currentSpec: GraphSpec, feedback: string, adapter: LLMAdapter, opts?: LLMRefineOptions): Promise<GraphSpec>;
1521
1868
 
1869
+ type graphspec_CatalogFnEntry = CatalogFnEntry;
1870
+ type graphspec_CatalogSourceEntry = CatalogSourceEntry;
1522
1871
  type graphspec_CompileSpecOptions = CompileSpecOptions;
1872
+ type graphspec_ConfigFieldSchema = ConfigFieldSchema;
1523
1873
  type graphspec_FnFactory = FnFactory;
1524
1874
  type graphspec_GraphSpec = GraphSpec;
1525
1875
  type graphspec_GraphSpecCatalog = GraphSpecCatalog;
@@ -1535,12 +1885,18 @@ type graphspec_SpecDiffEntry = SpecDiffEntry;
1535
1885
  type graphspec_SpecDiffResult = SpecDiffResult;
1536
1886
  declare const graphspec_compileSpec: typeof compileSpec;
1537
1887
  declare const graphspec_decompileGraph: typeof decompileGraph;
1888
+ declare const graphspec_extractFnFactory: typeof extractFnFactory;
1889
+ declare const graphspec_extractSourceFactory: typeof extractSourceFactory;
1890
+ declare const graphspec_generateCatalogPrompt: typeof generateCatalogPrompt;
1891
+ declare const graphspec_isRichFnEntry: typeof isRichFnEntry;
1892
+ declare const graphspec_isRichSourceEntry: typeof isRichSourceEntry;
1538
1893
  declare const graphspec_llmCompose: typeof llmCompose;
1539
1894
  declare const graphspec_llmRefine: typeof llmRefine;
1540
1895
  declare const graphspec_specDiff: typeof specDiff;
1541
1896
  declare const graphspec_validateSpec: typeof validateSpec;
1897
+ declare const graphspec_validateSpecAgainstCatalog: typeof validateSpecAgainstCatalog;
1542
1898
  declare namespace graphspec {
1543
- export { type graphspec_CompileSpecOptions as CompileSpecOptions, type graphspec_FnFactory as FnFactory, type graphspec_GraphSpec as GraphSpec, type graphspec_GraphSpecCatalog as GraphSpecCatalog, type graphspec_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type graphspec_GraphSpecNode as GraphSpecNode, type graphspec_GraphSpecTemplate as GraphSpecTemplate, type graphspec_GraphSpecTemplateRef as GraphSpecTemplateRef, type graphspec_GraphSpecValidation as GraphSpecValidation, type graphspec_LLMComposeOptions as LLMComposeOptions, type graphspec_LLMRefineOptions as LLMRefineOptions, type graphspec_SourceFactory as SourceFactory, type graphspec_SpecDiffEntry as SpecDiffEntry, type graphspec_SpecDiffResult as SpecDiffResult, graphspec_compileSpec as compileSpec, graphspec_decompileGraph as decompileGraph, graphspec_llmCompose as llmCompose, graphspec_llmRefine as llmRefine, graphspec_specDiff as specDiff, graphspec_validateSpec as validateSpec };
1899
+ export { type graphspec_CatalogFnEntry as CatalogFnEntry, type graphspec_CatalogSourceEntry as CatalogSourceEntry, type graphspec_CompileSpecOptions as CompileSpecOptions, type graphspec_ConfigFieldSchema as ConfigFieldSchema, type graphspec_FnFactory as FnFactory, type graphspec_GraphSpec as GraphSpec, type graphspec_GraphSpecCatalog as GraphSpecCatalog, type graphspec_GraphSpecFeedbackEdge as GraphSpecFeedbackEdge, type graphspec_GraphSpecNode as GraphSpecNode, type graphspec_GraphSpecTemplate as GraphSpecTemplate, type graphspec_GraphSpecTemplateRef as GraphSpecTemplateRef, type graphspec_GraphSpecValidation as GraphSpecValidation, type graphspec_LLMComposeOptions as LLMComposeOptions, type graphspec_LLMRefineOptions as LLMRefineOptions, type graphspec_SourceFactory as SourceFactory, type graphspec_SpecDiffEntry as SpecDiffEntry, type graphspec_SpecDiffResult as SpecDiffResult, graphspec_compileSpec as compileSpec, graphspec_decompileGraph as decompileGraph, graphspec_extractFnFactory as extractFnFactory, graphspec_extractSourceFactory as extractSourceFactory, graphspec_generateCatalogPrompt as generateCatalogPrompt, graphspec_isRichFnEntry as isRichFnEntry, graphspec_isRichSourceEntry as isRichSourceEntry, graphspec_llmCompose as llmCompose, graphspec_llmRefine as llmRefine, graphspec_specDiff as specDiff, graphspec_validateSpec as validateSpec, graphspec_validateSpecAgainstCatalog as validateSpecAgainstCatalog };
1544
1900
  }
1545
1901
 
1546
1902
  /**
@@ -1743,7 +2099,7 @@ declare function branch<T>(graph: Graph, name: string, source: StepRef$1, predic
1743
2099
  /**
1744
2100
  * Forwards source values only while `control` is truthy.
1745
2101
  */
1746
- declare function gate<T>(graph: Graph, name: string, source: StepRef$1, control: StepRef$1, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
2102
+ declare function valve<T>(graph: Graph, name: string, source: StepRef$1, control: StepRef$1, opts?: Omit<OrchestrationStepOptions, "deps">): Node<T>;
1747
2103
  type ApprovalOptions = Omit<OrchestrationStepOptions, "deps"> & {
1748
2104
  isApproved?: (value: unknown) => boolean;
1749
2105
  };
@@ -1751,6 +2107,46 @@ type ApprovalOptions = Omit<OrchestrationStepOptions, "deps"> & {
1751
2107
  * Human/LLM approval gate over a source value.
1752
2108
  */
1753
2109
  declare function approval<T>(graph: Graph, name: string, source: StepRef$1, approver: StepRef$1, opts?: ApprovalOptions): Node<T>;
2110
+ interface GateOptions {
2111
+ /** Maximum queue size. Oldest values are FIFO-dropped when exceeded. Default: Infinity. */
2112
+ maxPending?: number;
2113
+ /** Start in open mode (auto-approve). Default: false. */
2114
+ startOpen?: boolean;
2115
+ meta?: Record<string, unknown>;
2116
+ }
2117
+ /** Control surface returned by {@link gate}. */
2118
+ interface GateController<T> {
2119
+ /** The output node registered in the graph (subscribe to receive approved values). */
2120
+ node: Node<T>;
2121
+ /** Reactive queue of values waiting for approval. */
2122
+ pending: Node<T[]>;
2123
+ /** Derived count of pending items. */
2124
+ count: Node<number>;
2125
+ /** Whether the gate is currently open (auto-approving). */
2126
+ isOpen: Node<boolean>;
2127
+ /** Approve and forward the next `count` pending values (default: 1). */
2128
+ approve(count?: number): void;
2129
+ /** Reject (discard) the next `count` pending values (default: 1). */
2130
+ reject(count?: number): void;
2131
+ /**
2132
+ * Transform and forward `count` pending values (default: 1).
2133
+ * `fn` receives `(value, index, pending)` — Array.map-style.
2134
+ */
2135
+ modify(fn: (value: T, index: number, pending: readonly T[]) => T, count?: number): void;
2136
+ /** Flush all pending values and auto-approve future values. */
2137
+ open(): void;
2138
+ /** Re-enable manual gating (stop auto-approving). */
2139
+ close(): void;
2140
+ }
2141
+ /**
2142
+ * Human-in-the-loop gate: queues incoming values from `source` and lets an external
2143
+ * controller {@link GateController.approve approve}, {@link GateController.reject reject},
2144
+ * or {@link GateController.modify modify} them before forwarding downstream.
2145
+ *
2146
+ * Observable surfaces (`pending`, `count`, `isOpen`) are reactive nodes registered in
2147
+ * the graph. The gate output node is also registered.
2148
+ */
2149
+ declare function gate<T>(graph: Graph, name: string, source: StepRef$1, opts?: GateOptions): GateController<T>;
1754
2150
  /**
1755
2151
  * Registers a workflow side-effect step. The step remains graph-observable and forwards messages.
1756
2152
  */
@@ -1786,6 +2182,8 @@ declare function onFailure<T>(graph: Graph, name: string, source: StepRef$1, rec
1786
2182
 
1787
2183
  type orchestration_ApprovalOptions = ApprovalOptions;
1788
2184
  type orchestration_BranchResult<T> = BranchResult<T>;
2185
+ type orchestration_GateController<T> = GateController<T>;
2186
+ type orchestration_GateOptions = GateOptions;
1789
2187
  type orchestration_LoopOptions = LoopOptions;
1790
2188
  type orchestration_OrchestrationStepOptions = OrchestrationStepOptions;
1791
2189
  type orchestration_SensorControls<T> = SensorControls<T>;
@@ -1802,9 +2200,10 @@ declare const orchestration_pipeline: typeof pipeline;
1802
2200
  declare const orchestration_sensor: typeof sensor;
1803
2201
  declare const orchestration_subPipeline: typeof subPipeline;
1804
2202
  declare const orchestration_task: typeof task;
2203
+ declare const orchestration_valve: typeof valve;
1805
2204
  declare const orchestration_wait: typeof wait;
1806
2205
  declare namespace orchestration {
1807
- export { type orchestration_ApprovalOptions as ApprovalOptions, type orchestration_BranchResult as BranchResult, type orchestration_LoopOptions as LoopOptions, type orchestration_OrchestrationStepOptions as OrchestrationStepOptions, type orchestration_SensorControls as SensorControls, type StepRef$1 as StepRef, type orchestration_SubPipelineBuilder as SubPipelineBuilder, type orchestration_WaitOptions as WaitOptions, orchestration_approval as approval, orchestration_branch as branch, orchestration_forEach as forEach, orchestration_gate as gate, orchestration_join as join, orchestration_loop as loop, orchestration_onFailure as onFailure, orchestration_pipeline as pipeline, orchestration_sensor as sensor, orchestration_subPipeline as subPipeline, orchestration_task as task, orchestration_wait as wait };
2206
+ export { type orchestration_ApprovalOptions as ApprovalOptions, type orchestration_BranchResult as BranchResult, type orchestration_GateController as GateController, type orchestration_GateOptions as GateOptions, type orchestration_LoopOptions as LoopOptions, type orchestration_OrchestrationStepOptions as OrchestrationStepOptions, type orchestration_SensorControls as SensorControls, type StepRef$1 as StepRef, type orchestration_SubPipelineBuilder as SubPipelineBuilder, type orchestration_WaitOptions as WaitOptions, orchestration_approval as approval, orchestration_branch as branch, orchestration_forEach as forEach, orchestration_gate as gate, orchestration_join as join, orchestration_loop as loop, orchestration_onFailure as onFailure, orchestration_pipeline as pipeline, orchestration_sensor as sensor, orchestration_subPipeline as subPipeline, orchestration_task as task, orchestration_valve as valve, orchestration_wait as wait };
1808
2207
  }
1809
2208
 
1810
2209
  /**
@@ -1988,13 +2387,14 @@ declare namespace reduction {
1988
2387
 
1989
2388
  declare const index_ai: typeof ai;
1990
2389
  declare const index_cqrs: typeof cqrs;
2390
+ declare const index_domainTemplates: typeof domainTemplates;
1991
2391
  declare const index_graphspec: typeof graphspec;
1992
2392
  declare const index_memory: typeof memory;
1993
2393
  declare const index_messaging: typeof messaging;
1994
2394
  declare const index_orchestration: typeof orchestration;
1995
2395
  declare const index_reduction: typeof reduction;
1996
2396
  declare namespace index {
1997
- export { index_ai as ai, index_cqrs as cqrs, demoShell$1 as demoShell, index_graphspec as graphspec, index$b as layout, index_memory as memory, index_messaging as messaging, index_orchestration as orchestration, index_reduction as reduction };
2397
+ export { index_ai as ai, index_cqrs as cqrs, demoShell$1 as demoShell, index_domainTemplates as domainTemplates, index_graphspec as graphspec, index$b as layout, index_memory as memory, index_messaging as messaging, index_orchestration as orchestration, index_reduction as reduction };
1998
2398
  }
1999
2399
 
2000
2400
  /**
@@ -2002,4 +2402,4 @@ declare namespace index {
2002
2402
  */
2003
2403
  declare const version = "0.0.0";
2004
2404
 
2005
- export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions, ReactiveListSnapshot, ReactiveLogSnapshot, ReactiveMapSnapshot, ai, index$1 as compat, cqrs, demoShell$1 as demoShell, graphspec, index$9 as jotai, index$b as layout, memory, messaging, index$8 as nanostores, index$a as nestjs, orchestration, index as patterns, index$7 as react, reduction, index$6 as signals, index$5 as solid, index$4 as svelte, version, index$3 as vue, index$2 as zustand };
2405
+ export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions, ReactiveListSnapshot, ReactiveLogSnapshot, ReactiveMapSnapshot, ai, index$1 as compat, cqrs, demoShell$1 as demoShell, domainTemplates, graphspec, index$9 as jotai, index$b as layout, memory, messaging, index$8 as nanostores, index$a as nestjs, orchestration, index as patterns, index$7 as react, reduction, index$6 as signals, index$5 as solid, index$4 as svelte, version, index$3 as vue, index$2 as zustand };