@graphrefly/graphrefly 0.9.0 → 0.11.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/{chunk-WYI7YW54.js → chunk-2OTXEZQO.js} +3 -3
- package/dist/{chunk-TZLX4KIT.js → chunk-2VHNCFGG.js} +3 -3
- package/dist/{chunk-XCZPGOVP.js → chunk-3WACHRHV.js} +3 -3
- package/dist/{chunk-YWTP2XRJ.js → chunk-5WXTWOD7.js} +2 -2
- package/dist/{chunk-E7OH6ZAZ.js → chunk-FMVFRP7L.js} +62 -3
- package/dist/chunk-FMVFRP7L.js.map +1 -0
- package/dist/{chunk-LR2CLSEF.js → chunk-OHUECHWY.js} +2 -3
- package/dist/chunk-OHUECHWY.js.map +1 -0
- package/dist/{chunk-UCW3VWMN.js → chunk-PZCDQD2U.js} +4 -4
- package/dist/{chunk-A2AJJOSJ.js → chunk-U5HFZGAQ.js} +3 -3
- package/dist/{chunk-QTZSBQGJ.js → chunk-UG2QZMRN.js} +18 -1
- package/dist/chunk-UG2QZMRN.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +10 -1
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +7 -7
- package/dist/core/index.cjs +74 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +12 -3
- package/dist/extra/index.cjs +10 -0
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +3 -3
- package/dist/graph/index.cjs +10 -1
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +4 -4
- package/dist/{graph-DqTICAY2.d.cts → graph-BE10ujU9.d.cts} +1 -1
- package/dist/{graph-X9uwnD_z.d.ts → graph-DXT95WZ3.d.ts} +1 -1
- package/dist/{index-DLO8wnYU.d.ts → index-53cDGX7F.d.ts} +3 -3
- package/dist/{index-DMv1Etbi.d.ts → index-B10Q0sQB.d.ts} +2 -2
- package/dist/{index-a5gHmH5b.d.ts → index-Bbgvinsi.d.ts} +3 -3
- package/dist/{index-BPCeYDS4.d.ts → index-C0_7g9sj.d.ts} +1 -1
- package/dist/{index-3U0WxdD-.d.cts → index-CCvzN5GB.d.cts} +2 -2
- package/dist/{index-BP1t_38S.d.cts → index-DpZozxaJ.d.cts} +3 -3
- package/dist/{index-BVG5pjin.d.ts → index-Dzdm20sx.d.ts} +88 -3
- package/dist/{index-BYEgosAX.d.cts → index-QfbXNW1N.d.cts} +88 -3
- package/dist/{index-BYa2YMat.d.cts → index-aBZ2RoP0.d.cts} +3 -3
- package/dist/{index-DbwgQ4Cw.d.cts → index-nRulwTr-.d.cts} +1 -1
- package/dist/index.cjs +2009 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +559 -14
- package/dist/index.d.ts +559 -14
- package/dist/index.js +1938 -406
- package/dist/index.js.map +1 -1
- package/dist/{meta-BJEU8fYz.d.cts → meta-BcuDhtwu.d.cts} +33 -1
- package/dist/{meta-BJEU8fYz.d.ts → meta-BcuDhtwu.d.ts} +33 -1
- package/dist/patterns/reactive-layout/index.cjs +10 -1
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/dist/{reactive-log-RhgIog2Z.d.ts → reactive-log-Cu0VdqkT.d.ts} +2 -2
- package/dist/{reactive-log-BfX6bOSZ.d.cts → reactive-log-OULQssZg.d.cts} +2 -2
- package/package.json +7 -2
- package/dist/chunk-E7OH6ZAZ.js.map +0 -1
- package/dist/chunk-LR2CLSEF.js.map +0 -1
- package/dist/chunk-QTZSBQGJ.js.map +0 -1
- /package/dist/{chunk-WYI7YW54.js.map → chunk-2OTXEZQO.js.map} +0 -0
- /package/dist/{chunk-TZLX4KIT.js.map → chunk-2VHNCFGG.js.map} +0 -0
- /package/dist/{chunk-XCZPGOVP.js.map → chunk-3WACHRHV.js.map} +0 -0
- /package/dist/{chunk-YWTP2XRJ.js.map → chunk-5WXTWOD7.js.map} +0 -0
- /package/dist/{chunk-UCW3VWMN.js.map → chunk-PZCDQD2U.js.map} +0 -0
- /package/dist/{chunk-A2AJJOSJ.js.map → chunk-U5HFZGAQ.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-
|
|
2
|
-
export { C as COMPLETE, D as DATA,
|
|
3
|
-
import { i as index$a, c as cqrs } from './index-
|
|
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-
|
|
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-
|
|
7
|
-
export { D as
|
|
8
|
-
import { N as NodeInput, D as DistillBundle, E as Extraction, R as ReactiveListSnapshot, a as ReactiveMapSnapshot } from './index-
|
|
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-
|
|
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-
|
|
11
|
-
import { R as ReactiveLogSnapshot } from './reactive-log-
|
|
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-
|
|
13
|
-
import { M as MeasurementAdapter, i as index$b } from './index-
|
|
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-Bbgvinsi.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-Bbgvinsi.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';
|
|
@@ -1329,6 +1329,549 @@ declare namespace demoShell$1 {
|
|
|
1329
1329
|
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
1330
|
}
|
|
1331
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* Domain templates (roadmap §8.2).
|
|
1334
|
+
*
|
|
1335
|
+
* Opinionated Graph factories for common "info → action" domains.
|
|
1336
|
+
* Each template wires up §8.1 reduction primitives (stratify, funnel, feedback,
|
|
1337
|
+
* budgetGate, scorer) with domain-specific stages. Users fork/extend by
|
|
1338
|
+
* accessing named nodes and swapping stages.
|
|
1339
|
+
*
|
|
1340
|
+
* **Source injection (option B):** templates accept a `source` node, not a
|
|
1341
|
+
* hardcoded adapter. Pass `fromOTel(...)`, `fromGitHook(...)`, or a test
|
|
1342
|
+
* `state()` — the topology is the same.
|
|
1343
|
+
*
|
|
1344
|
+
* @module
|
|
1345
|
+
*/
|
|
1346
|
+
|
|
1347
|
+
/** Stratification branch config for observability signals. */
|
|
1348
|
+
type ObservabilityBranch = {
|
|
1349
|
+
name: string;
|
|
1350
|
+
classify: (value: unknown) => boolean;
|
|
1351
|
+
};
|
|
1352
|
+
/** Options for {@link observabilityGraph}. */
|
|
1353
|
+
type ObservabilityGraphOptions = GraphOptions & {
|
|
1354
|
+
/** Ingested signal source (e.g. fromOTel(...) or test state). */
|
|
1355
|
+
source: Node<unknown>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Classification rules for signal stratification.
|
|
1358
|
+
* Default: errors / traces / metrics branches.
|
|
1359
|
+
*/
|
|
1360
|
+
branches?: ObservabilityBranch[];
|
|
1361
|
+
/**
|
|
1362
|
+
* Correlation function: receives stratified branch values and produces
|
|
1363
|
+
* correlated insights. Default: identity pass-through.
|
|
1364
|
+
*/
|
|
1365
|
+
correlate?: (values: unknown[]) => unknown;
|
|
1366
|
+
/**
|
|
1367
|
+
* SLO verification function: returns a verification result for a
|
|
1368
|
+
* correlated insight. Default: always passes.
|
|
1369
|
+
*/
|
|
1370
|
+
sloCheck?: (value: unknown) => unknown;
|
|
1371
|
+
/**
|
|
1372
|
+
* Scorer weights for alert prioritization. One per branch.
|
|
1373
|
+
* Default: equal weights [1, 1, 1].
|
|
1374
|
+
*/
|
|
1375
|
+
weights?: number[];
|
|
1376
|
+
/** Max feedback iterations for false-positive learning. Default: 5. */
|
|
1377
|
+
maxFeedbackIterations?: number;
|
|
1378
|
+
};
|
|
1379
|
+
/**
|
|
1380
|
+
* OTel ingest → stratified reduction → correlation → SLO verification →
|
|
1381
|
+
* alert prioritization → output.
|
|
1382
|
+
*
|
|
1383
|
+
* Well-known node names:
|
|
1384
|
+
* - `"source"` — injected signal source
|
|
1385
|
+
* - `"stratify::branch/<name>"` — per-branch classification
|
|
1386
|
+
* - `"correlate"` — cross-branch correlation
|
|
1387
|
+
* - `"slo_value"`, `"slo_verified"` — SLO verification pair
|
|
1388
|
+
* - `"alerts"` — scored, prioritized output
|
|
1389
|
+
* - `"output"` — final output (alias for alerts)
|
|
1390
|
+
*
|
|
1391
|
+
* @category patterns
|
|
1392
|
+
*/
|
|
1393
|
+
declare function observabilityGraph(name: string, opts: ObservabilityGraphOptions): Graph;
|
|
1394
|
+
/** A structured issue extracted from raw findings. */
|
|
1395
|
+
type ExtractedIssue = {
|
|
1396
|
+
id: string;
|
|
1397
|
+
title: string;
|
|
1398
|
+
severity: number;
|
|
1399
|
+
source: string;
|
|
1400
|
+
raw: unknown;
|
|
1401
|
+
};
|
|
1402
|
+
/** Options for {@link issueTrackerGraph}. */
|
|
1403
|
+
type IssueTrackerGraphOptions = GraphOptions & {
|
|
1404
|
+
/** Findings source (e.g. fromGitHook(...), fromFSWatch(...)). */
|
|
1405
|
+
source: Node<unknown>;
|
|
1406
|
+
/**
|
|
1407
|
+
* Extract structured issues from raw findings.
|
|
1408
|
+
* Default: wraps raw value as a single issue.
|
|
1409
|
+
*/
|
|
1410
|
+
extract?: (raw: unknown) => ExtractedIssue;
|
|
1411
|
+
/**
|
|
1412
|
+
* Verify an extracted issue (assertion check).
|
|
1413
|
+
* Default: always valid.
|
|
1414
|
+
*/
|
|
1415
|
+
verify?: (issue: ExtractedIssue) => unknown;
|
|
1416
|
+
/**
|
|
1417
|
+
* Detect regression by comparing against known patterns.
|
|
1418
|
+
* Receives (current issue, known patterns).
|
|
1419
|
+
* Default: no regression detected.
|
|
1420
|
+
*/
|
|
1421
|
+
detectRegression?: (issue: ExtractedIssue, known: unknown) => unknown;
|
|
1422
|
+
/** Max feedback iterations for re-scanning. Default: 3. */
|
|
1423
|
+
maxFeedbackIterations?: number;
|
|
1424
|
+
};
|
|
1425
|
+
/**
|
|
1426
|
+
* Findings ingest → extraction → verification → regression detection →
|
|
1427
|
+
* distillation → prioritized queue.
|
|
1428
|
+
*
|
|
1429
|
+
* Well-known node names:
|
|
1430
|
+
* - `"source"` — injected findings source
|
|
1431
|
+
* - `"extract"` — structured issue extraction
|
|
1432
|
+
* - `"verify"` — issue verification
|
|
1433
|
+
* - `"known_patterns"` — accumulated known issue patterns (state)
|
|
1434
|
+
* - `"regression"` — regression detection
|
|
1435
|
+
* - `"priority"` — severity-based prioritization
|
|
1436
|
+
* - `"output"` — final prioritized output
|
|
1437
|
+
*
|
|
1438
|
+
* @category patterns
|
|
1439
|
+
*/
|
|
1440
|
+
declare function issueTrackerGraph(name: string, opts: IssueTrackerGraphOptions): Graph;
|
|
1441
|
+
/** Classification result from LLM moderation. */
|
|
1442
|
+
type ModerationResult = {
|
|
1443
|
+
label: "safe" | "review" | "block";
|
|
1444
|
+
confidence: number;
|
|
1445
|
+
reason?: string;
|
|
1446
|
+
original: unknown;
|
|
1447
|
+
};
|
|
1448
|
+
/** Options for {@link contentModerationGraph}. */
|
|
1449
|
+
type ContentModerationGraphOptions = GraphOptions & {
|
|
1450
|
+
/** Content source (text/multimedia ingest). */
|
|
1451
|
+
source: Node<unknown>;
|
|
1452
|
+
/**
|
|
1453
|
+
* Classification function: returns a ModerationResult.
|
|
1454
|
+
* Default: labels everything "review" with confidence 0.5.
|
|
1455
|
+
*/
|
|
1456
|
+
classify?: (content: unknown) => ModerationResult;
|
|
1457
|
+
/** System prompt for LLM classification. */
|
|
1458
|
+
systemPrompt?: string;
|
|
1459
|
+
/** Scorer weights: [safe, review, block]. Default: [0.1, 1, 2]. */
|
|
1460
|
+
weights?: [number, number, number];
|
|
1461
|
+
/** Max feedback iterations for policy refinement. Default: 5. */
|
|
1462
|
+
maxFeedbackIterations?: number;
|
|
1463
|
+
/** Max review queue size. When set, oldest entries are trimmed on overflow. */
|
|
1464
|
+
maxQueueSize?: number;
|
|
1465
|
+
};
|
|
1466
|
+
/**
|
|
1467
|
+
* Content ingest → LLM/rule classification → stratified routing (safe/review/block) →
|
|
1468
|
+
* human review queue → scorer → feedback (false positives → policy refinement) → output.
|
|
1469
|
+
*
|
|
1470
|
+
* Well-known node names:
|
|
1471
|
+
* - `"source"` — content ingest
|
|
1472
|
+
* - `"classify"` — LLM or rule-based classification
|
|
1473
|
+
* - `"stratify::branch/safe"`, `"stratify::branch/review"`, `"stratify::branch/block"` — routed branches
|
|
1474
|
+
* - `"review_queue"` — state node for human review items
|
|
1475
|
+
* - `"priority"` — scored priority output
|
|
1476
|
+
* - `"policy"` — writable state for policy refinement
|
|
1477
|
+
* - `"output"` — final moderation output
|
|
1478
|
+
*
|
|
1479
|
+
* @category patterns
|
|
1480
|
+
*/
|
|
1481
|
+
declare function contentModerationGraph(name: string, opts: ContentModerationGraphOptions): Graph;
|
|
1482
|
+
/** Schema validation result. */
|
|
1483
|
+
type ValidationResult = {
|
|
1484
|
+
valid: boolean;
|
|
1485
|
+
errors: string[];
|
|
1486
|
+
record: unknown;
|
|
1487
|
+
};
|
|
1488
|
+
/** Anomaly detection result. */
|
|
1489
|
+
type AnomalyResult = {
|
|
1490
|
+
anomaly: boolean;
|
|
1491
|
+
score: number;
|
|
1492
|
+
detail?: string;
|
|
1493
|
+
record: unknown;
|
|
1494
|
+
};
|
|
1495
|
+
/** Options for {@link dataQualityGraph}. */
|
|
1496
|
+
type DataQualityGraphOptions = GraphOptions & {
|
|
1497
|
+
/** Data source (e.g. fromPrisma(...), fromKysely(...)). */
|
|
1498
|
+
source: Node<unknown>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Schema validation function.
|
|
1501
|
+
* Default: always valid.
|
|
1502
|
+
*/
|
|
1503
|
+
validate?: (record: unknown) => ValidationResult;
|
|
1504
|
+
/**
|
|
1505
|
+
* Anomaly detection function.
|
|
1506
|
+
* Default: no anomaly.
|
|
1507
|
+
*/
|
|
1508
|
+
detectAnomaly?: (record: unknown) => AnomalyResult;
|
|
1509
|
+
/**
|
|
1510
|
+
* Drift detection: compares current record against baseline.
|
|
1511
|
+
* Default: no drift.
|
|
1512
|
+
*/
|
|
1513
|
+
detectDrift?: (record: unknown, baseline: unknown) => unknown;
|
|
1514
|
+
/**
|
|
1515
|
+
* Remediation suggestion function.
|
|
1516
|
+
* Default: no suggestion.
|
|
1517
|
+
*/
|
|
1518
|
+
suggest?: (result: {
|
|
1519
|
+
validation: ValidationResult;
|
|
1520
|
+
anomaly: AnomalyResult;
|
|
1521
|
+
}) => unknown;
|
|
1522
|
+
/** Max feedback iterations for rule refinement. Default: 3. */
|
|
1523
|
+
maxFeedbackIterations?: number;
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* Data ingest → schema validation → anomaly detection → drift alerting →
|
|
1527
|
+
* auto-remediation suggestions → output.
|
|
1528
|
+
*
|
|
1529
|
+
* Well-known node names:
|
|
1530
|
+
* - `"source"` — data ingest
|
|
1531
|
+
* - `"validate"` — schema validation
|
|
1532
|
+
* - `"anomaly"` — anomaly detection
|
|
1533
|
+
* - `"baseline"` — rolling baseline state
|
|
1534
|
+
* - `"drift"` — drift detection
|
|
1535
|
+
* - `"remediate"` — auto-remediation suggestions
|
|
1536
|
+
* - `"output"` — combined quality report
|
|
1537
|
+
*
|
|
1538
|
+
* @category patterns
|
|
1539
|
+
*/
|
|
1540
|
+
declare function dataQualityGraph(name: string, opts: DataQualityGraphOptions): Graph;
|
|
1541
|
+
|
|
1542
|
+
type domainTemplates_AnomalyResult = AnomalyResult;
|
|
1543
|
+
type domainTemplates_ContentModerationGraphOptions = ContentModerationGraphOptions;
|
|
1544
|
+
type domainTemplates_DataQualityGraphOptions = DataQualityGraphOptions;
|
|
1545
|
+
type domainTemplates_ExtractedIssue = ExtractedIssue;
|
|
1546
|
+
type domainTemplates_IssueTrackerGraphOptions = IssueTrackerGraphOptions;
|
|
1547
|
+
type domainTemplates_ModerationResult = ModerationResult;
|
|
1548
|
+
type domainTemplates_ObservabilityBranch = ObservabilityBranch;
|
|
1549
|
+
type domainTemplates_ObservabilityGraphOptions = ObservabilityGraphOptions;
|
|
1550
|
+
type domainTemplates_ValidationResult = ValidationResult;
|
|
1551
|
+
declare const domainTemplates_contentModerationGraph: typeof contentModerationGraph;
|
|
1552
|
+
declare const domainTemplates_dataQualityGraph: typeof dataQualityGraph;
|
|
1553
|
+
declare const domainTemplates_issueTrackerGraph: typeof issueTrackerGraph;
|
|
1554
|
+
declare const domainTemplates_observabilityGraph: typeof observabilityGraph;
|
|
1555
|
+
declare namespace domainTemplates {
|
|
1556
|
+
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 };
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* LLM graph composition (roadmap §8.3).
|
|
1561
|
+
*
|
|
1562
|
+
* Declarative GraphSpec schema + compiler/decompiler for graph topology.
|
|
1563
|
+
* The LLM designs graphs as JSON; compileSpec instantiates them; decompileGraph
|
|
1564
|
+
* extracts them back. Templates support reusable subgraph patterns. Feedback
|
|
1565
|
+
* edges express bounded cycles via §8.1 feedback().
|
|
1566
|
+
*
|
|
1567
|
+
* @module
|
|
1568
|
+
*/
|
|
1569
|
+
|
|
1570
|
+
/** A single node declaration in a GraphSpec. */
|
|
1571
|
+
type GraphSpecNode = {
|
|
1572
|
+
/** Node kind: state, producer, derived, effect, operator. */
|
|
1573
|
+
type: "state" | "producer" | "derived" | "effect" | "operator";
|
|
1574
|
+
/** Dependency node names (for derived/effect/operator). */
|
|
1575
|
+
deps?: string[];
|
|
1576
|
+
/** Named function from the catalog (for derived/effect/operator/producer). */
|
|
1577
|
+
fn?: string;
|
|
1578
|
+
/** Named source from the catalog (for producer). */
|
|
1579
|
+
source?: string;
|
|
1580
|
+
/** Freeform config passed to the catalog fn/source factory. */
|
|
1581
|
+
config?: Record<string, unknown>;
|
|
1582
|
+
/** Initial value (for state nodes). */
|
|
1583
|
+
initial?: unknown;
|
|
1584
|
+
/** Human/LLM-readable metadata. */
|
|
1585
|
+
meta?: Record<string, unknown>;
|
|
1586
|
+
};
|
|
1587
|
+
/** Template instantiation node — expanded at compile time. */
|
|
1588
|
+
type GraphSpecTemplateRef = {
|
|
1589
|
+
type: "template";
|
|
1590
|
+
/** Name of the template to instantiate. */
|
|
1591
|
+
template: string;
|
|
1592
|
+
/** Parameter bindings: template param name → node name. */
|
|
1593
|
+
bind: Record<string, string>;
|
|
1594
|
+
};
|
|
1595
|
+
/** A reusable subgraph pattern with parameter substitution. */
|
|
1596
|
+
type GraphSpecTemplate = {
|
|
1597
|
+
/** Parameter names (prefixed with $ in node refs). */
|
|
1598
|
+
params: string[];
|
|
1599
|
+
/** Node declarations within the template. */
|
|
1600
|
+
nodes: Record<string, GraphSpecNode>;
|
|
1601
|
+
/** Which node's output is the template's output. */
|
|
1602
|
+
output: string;
|
|
1603
|
+
};
|
|
1604
|
+
/** A feedback edge: bounded cycle from condition to reentry. */
|
|
1605
|
+
type GraphSpecFeedbackEdge = {
|
|
1606
|
+
/** Node whose DATA triggers the feedback. */
|
|
1607
|
+
from: string;
|
|
1608
|
+
/** State node that receives the feedback value. */
|
|
1609
|
+
to: string;
|
|
1610
|
+
/** Max iterations before stopping (default: 10). */
|
|
1611
|
+
maxIterations?: number;
|
|
1612
|
+
};
|
|
1613
|
+
/** Declarative graph topology for LLM composition (§8.3). */
|
|
1614
|
+
type GraphSpec = {
|
|
1615
|
+
/** Graph name. */
|
|
1616
|
+
name: string;
|
|
1617
|
+
/** Node declarations (keyed by node name). */
|
|
1618
|
+
nodes: Record<string, GraphSpecNode | GraphSpecTemplateRef>;
|
|
1619
|
+
/** Reusable subgraph templates. */
|
|
1620
|
+
templates?: Record<string, GraphSpecTemplate>;
|
|
1621
|
+
/** Feedback edges (bounded cycles). */
|
|
1622
|
+
feedback?: GraphSpecFeedbackEdge[];
|
|
1623
|
+
};
|
|
1624
|
+
/**
|
|
1625
|
+
* Factory for creating a derived/effect/operator node from catalog.
|
|
1626
|
+
* Receives resolved dep nodes and the config from the spec.
|
|
1627
|
+
*/
|
|
1628
|
+
type FnFactory = (deps: Node<unknown>[], config: Record<string, unknown>) => Node<unknown>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Factory for creating a producer node from catalog.
|
|
1631
|
+
* Receives the config from the spec.
|
|
1632
|
+
*/
|
|
1633
|
+
type SourceFactory = (config: Record<string, unknown>) => Node<unknown>;
|
|
1634
|
+
/** Simple config field descriptor for LLM prompt generation and validation. */
|
|
1635
|
+
type ConfigFieldSchema = {
|
|
1636
|
+
/** Human-readable type: "string", "number", "boolean", "string[]", etc. */
|
|
1637
|
+
type: string;
|
|
1638
|
+
/** Whether this field is required (default: true). */
|
|
1639
|
+
required?: boolean;
|
|
1640
|
+
/** Allowed values (enum constraint). */
|
|
1641
|
+
enum?: readonly (string | number | boolean)[];
|
|
1642
|
+
/** Human-readable description for LLM context. */
|
|
1643
|
+
description?: string;
|
|
1644
|
+
/** Default value if omitted. */
|
|
1645
|
+
default?: unknown;
|
|
1646
|
+
};
|
|
1647
|
+
/**
|
|
1648
|
+
* Rich catalog entry: bundles a runtime factory with LLM-facing metadata.
|
|
1649
|
+
*
|
|
1650
|
+
* The metadata is used to:
|
|
1651
|
+
* 1. Auto-generate prompt text for {@link llmCompose} (replaces manual `catalogDescription`)
|
|
1652
|
+
* 2. Validate LLM output in {@link validateSpec} (catch wrong fn names, invalid config)
|
|
1653
|
+
* 3. Provide actionable error messages for {@link llmRefine} feedback loops
|
|
1654
|
+
*
|
|
1655
|
+
* Developers register ONE object; the library handles prompt generation and validation.
|
|
1656
|
+
*/
|
|
1657
|
+
type CatalogFnEntry = {
|
|
1658
|
+
/** Runtime factory. */
|
|
1659
|
+
factory: FnFactory;
|
|
1660
|
+
/** One-line description for LLM prompt (what it does, not how). */
|
|
1661
|
+
description: string;
|
|
1662
|
+
/** Config field schemas. Keys are config field names. */
|
|
1663
|
+
configSchema?: Record<string, ConfigFieldSchema>;
|
|
1664
|
+
/** Example config objects (shown in prompt for complex fns). */
|
|
1665
|
+
examples?: Record<string, unknown>[];
|
|
1666
|
+
/** Category tags for grouping in prompt (e.g., "resilience", "reduction", "ai"). */
|
|
1667
|
+
tags?: string[];
|
|
1668
|
+
};
|
|
1669
|
+
/** Rich catalog entry for producer sources. */
|
|
1670
|
+
type CatalogSourceEntry = {
|
|
1671
|
+
/** Runtime factory. */
|
|
1672
|
+
factory: SourceFactory;
|
|
1673
|
+
/** One-line description for LLM prompt. */
|
|
1674
|
+
description: string;
|
|
1675
|
+
/** Config field schemas. */
|
|
1676
|
+
configSchema?: Record<string, ConfigFieldSchema>;
|
|
1677
|
+
/** Example config objects. */
|
|
1678
|
+
examples?: Record<string, unknown>[];
|
|
1679
|
+
/** Category tags. */
|
|
1680
|
+
tags?: string[];
|
|
1681
|
+
};
|
|
1682
|
+
/**
|
|
1683
|
+
* Fn/source lookup table passed to compileSpec and llmCompose.
|
|
1684
|
+
*
|
|
1685
|
+
* Accepts both bare factories (backward-compatible) and rich {@link CatalogFnEntry}
|
|
1686
|
+
* / {@link CatalogSourceEntry} objects. When rich entries are provided, the library
|
|
1687
|
+
* auto-generates LLM prompts and validates LLM output against the catalog.
|
|
1688
|
+
*/
|
|
1689
|
+
type GraphSpecCatalog = {
|
|
1690
|
+
fns?: Record<string, FnFactory | CatalogFnEntry>;
|
|
1691
|
+
sources?: Record<string, SourceFactory | CatalogSourceEntry>;
|
|
1692
|
+
};
|
|
1693
|
+
/** Type guard: is this a rich catalog fn entry (vs bare factory)? */
|
|
1694
|
+
declare function isRichFnEntry(entry: FnFactory | CatalogFnEntry): entry is CatalogFnEntry;
|
|
1695
|
+
/** Type guard: is this a rich catalog source entry (vs bare factory)? */
|
|
1696
|
+
declare function isRichSourceEntry(entry: SourceFactory | CatalogSourceEntry): entry is CatalogSourceEntry;
|
|
1697
|
+
/** Extract the runtime factory from a catalog entry (rich or bare). */
|
|
1698
|
+
declare function extractFnFactory(entry: FnFactory | CatalogFnEntry): FnFactory;
|
|
1699
|
+
/** Extract the runtime factory from a catalog source entry (rich or bare). */
|
|
1700
|
+
declare function extractSourceFactory(entry: SourceFactory | CatalogSourceEntry): SourceFactory;
|
|
1701
|
+
/**
|
|
1702
|
+
* Auto-generate catalog prompt text from rich catalog entries.
|
|
1703
|
+
*
|
|
1704
|
+
* Groups fns by tag, formats each as `- name: description. Config: { ... }`.
|
|
1705
|
+
* Falls back to listing names only for bare factories.
|
|
1706
|
+
*/
|
|
1707
|
+
declare function generateCatalogPrompt(catalog: GraphSpecCatalog): string;
|
|
1708
|
+
/**
|
|
1709
|
+
* Validate a GraphSpec against a catalog.
|
|
1710
|
+
*
|
|
1711
|
+
* Checks that fn/source names reference actual catalog entries, and validates
|
|
1712
|
+
* config fields against configSchema when rich entries are available.
|
|
1713
|
+
* Returns additional errors beyond structural {@link validateSpec} checks.
|
|
1714
|
+
*/
|
|
1715
|
+
declare function validateSpecAgainstCatalog(spec: GraphSpec, catalog: GraphSpecCatalog): GraphSpecValidation;
|
|
1716
|
+
/** Validation result from {@link validateSpec}. */
|
|
1717
|
+
type GraphSpecValidation = {
|
|
1718
|
+
valid: boolean;
|
|
1719
|
+
errors: string[];
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
* Validate a GraphSpec JSON object.
|
|
1723
|
+
*
|
|
1724
|
+
* Checks structural validity: required fields, node types, dep references,
|
|
1725
|
+
* template references, feedback edge targets, self-cycles, and bind completeness.
|
|
1726
|
+
*/
|
|
1727
|
+
declare function validateSpec(spec: unknown): GraphSpecValidation;
|
|
1728
|
+
/** Options for {@link compileSpec}. */
|
|
1729
|
+
type CompileSpecOptions = {
|
|
1730
|
+
/** Fn/source catalog for resolving named factories. */
|
|
1731
|
+
catalog?: GraphSpecCatalog;
|
|
1732
|
+
};
|
|
1733
|
+
/**
|
|
1734
|
+
* Instantiate a Graph from a GraphSpec.
|
|
1735
|
+
*
|
|
1736
|
+
* Handles template expansion (mounted subgraphs), feedback wiring via §8.1
|
|
1737
|
+
* feedback(), node factory lookup from the catalog, and topology validation.
|
|
1738
|
+
*
|
|
1739
|
+
* @param spec - Declarative graph topology.
|
|
1740
|
+
* @param opts - Catalog and compile options.
|
|
1741
|
+
* @returns A running Graph.
|
|
1742
|
+
* @throws On validation failure, missing catalog entries, or unresolvable deps.
|
|
1743
|
+
*
|
|
1744
|
+
* @category patterns
|
|
1745
|
+
*/
|
|
1746
|
+
declare function compileSpec(spec: GraphSpec, opts?: CompileSpecOptions): Graph;
|
|
1747
|
+
/**
|
|
1748
|
+
* Extract a GraphSpec from a running graph.
|
|
1749
|
+
*
|
|
1750
|
+
* Uses `describe({ detail: "standard" })` as a starting point, then enriches:
|
|
1751
|
+
* - Feedback edges recovered from counter node meta (`feedbackFrom`/`feedbackTo`)
|
|
1752
|
+
* - Template refs recovered from output node meta (`_templateName`/`_templateBind`)
|
|
1753
|
+
* - Structural fingerprinting as fallback for 2+ identical mounted subgraphs
|
|
1754
|
+
*
|
|
1755
|
+
* @param graph - Running graph to decompile.
|
|
1756
|
+
* @returns A GraphSpec representation.
|
|
1757
|
+
*
|
|
1758
|
+
* @category patterns
|
|
1759
|
+
*/
|
|
1760
|
+
declare function decompileGraph(graph: Graph): GraphSpec;
|
|
1761
|
+
/** A single change in a spec diff. */
|
|
1762
|
+
type SpecDiffEntry = {
|
|
1763
|
+
type: "added" | "removed" | "changed";
|
|
1764
|
+
path: string;
|
|
1765
|
+
detail?: string;
|
|
1766
|
+
};
|
|
1767
|
+
/** Structural diff between two GraphSpecs. */
|
|
1768
|
+
type SpecDiffResult = {
|
|
1769
|
+
entries: SpecDiffEntry[];
|
|
1770
|
+
summary: string;
|
|
1771
|
+
};
|
|
1772
|
+
/**
|
|
1773
|
+
* Compute a structural diff between two GraphSpecs.
|
|
1774
|
+
*
|
|
1775
|
+
* Template-aware: reports "changed template definition" vs "changed
|
|
1776
|
+
* instantiation bindings." No runtime needed — pure JSON comparison.
|
|
1777
|
+
*
|
|
1778
|
+
* @param specA - The "before" spec.
|
|
1779
|
+
* @param specB - The "after" spec.
|
|
1780
|
+
* @returns Diff entries and a human-readable summary.
|
|
1781
|
+
*
|
|
1782
|
+
* @category patterns
|
|
1783
|
+
*/
|
|
1784
|
+
declare function specDiff(specA: GraphSpec, specB: GraphSpec): SpecDiffResult;
|
|
1785
|
+
/** Options for {@link llmCompose}. */
|
|
1786
|
+
type LLMComposeOptions = {
|
|
1787
|
+
model?: string;
|
|
1788
|
+
temperature?: number;
|
|
1789
|
+
maxTokens?: number;
|
|
1790
|
+
/** Extra instructions appended to the system prompt. */
|
|
1791
|
+
systemPromptExtra?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Available fn/source catalog names for the LLM to reference.
|
|
1794
|
+
* When omitted and `catalog` contains rich {@link CatalogFnEntry} entries,
|
|
1795
|
+
* the prompt is auto-generated via {@link generateCatalogPrompt}.
|
|
1796
|
+
*/
|
|
1797
|
+
catalogDescription?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Catalog for auto-prompt generation and catalog-aware validation.
|
|
1800
|
+
* When rich entries are provided, the catalog prompt is auto-generated
|
|
1801
|
+
* and LLM output is validated against fn/source names and config schemas.
|
|
1802
|
+
*/
|
|
1803
|
+
catalog?: GraphSpecCatalog;
|
|
1804
|
+
/**
|
|
1805
|
+
* Max auto-refine attempts when the LLM output fails catalog validation.
|
|
1806
|
+
* Each attempt feeds the validation errors back to the LLM via llmRefine.
|
|
1807
|
+
* Default: 0 (no auto-refine). Set to 2-3 for production use.
|
|
1808
|
+
*/
|
|
1809
|
+
maxAutoRefine?: number;
|
|
1810
|
+
};
|
|
1811
|
+
/**
|
|
1812
|
+
* Ask an LLM to compose a GraphSpec from a natural-language problem description.
|
|
1813
|
+
*
|
|
1814
|
+
* The LLM generates a GraphSpec (with templates + feedback), validated before
|
|
1815
|
+
* returning. The spec is for human review before compilation via compileSpec().
|
|
1816
|
+
*
|
|
1817
|
+
* @param problem - Natural language problem description.
|
|
1818
|
+
* @param adapter - LLM adapter for the generation call.
|
|
1819
|
+
* @param opts - Model options and catalog description.
|
|
1820
|
+
* @returns A validated GraphSpec.
|
|
1821
|
+
* @throws On invalid LLM output or validation failure.
|
|
1822
|
+
*
|
|
1823
|
+
* @category patterns
|
|
1824
|
+
*/
|
|
1825
|
+
declare function llmCompose(problem: string, adapter: LLMAdapter, opts?: LLMComposeOptions): Promise<GraphSpec>;
|
|
1826
|
+
/** Options for {@link llmRefine}. */
|
|
1827
|
+
type LLMRefineOptions = LLMComposeOptions;
|
|
1828
|
+
/**
|
|
1829
|
+
* Ask an LLM to modify an existing GraphSpec based on feedback or changed requirements.
|
|
1830
|
+
*
|
|
1831
|
+
* @param currentSpec - The current GraphSpec to modify.
|
|
1832
|
+
* @param feedback - Natural language feedback or changed requirements.
|
|
1833
|
+
* @param adapter - LLM adapter for the generation call.
|
|
1834
|
+
* @param opts - Model options.
|
|
1835
|
+
* @returns A new GraphSpec incorporating the feedback.
|
|
1836
|
+
* @throws On invalid LLM output or validation failure.
|
|
1837
|
+
*
|
|
1838
|
+
* @category patterns
|
|
1839
|
+
*/
|
|
1840
|
+
declare function llmRefine(currentSpec: GraphSpec, feedback: string, adapter: LLMAdapter, opts?: LLMRefineOptions): Promise<GraphSpec>;
|
|
1841
|
+
|
|
1842
|
+
type graphspec_CatalogFnEntry = CatalogFnEntry;
|
|
1843
|
+
type graphspec_CatalogSourceEntry = CatalogSourceEntry;
|
|
1844
|
+
type graphspec_CompileSpecOptions = CompileSpecOptions;
|
|
1845
|
+
type graphspec_ConfigFieldSchema = ConfigFieldSchema;
|
|
1846
|
+
type graphspec_FnFactory = FnFactory;
|
|
1847
|
+
type graphspec_GraphSpec = GraphSpec;
|
|
1848
|
+
type graphspec_GraphSpecCatalog = GraphSpecCatalog;
|
|
1849
|
+
type graphspec_GraphSpecFeedbackEdge = GraphSpecFeedbackEdge;
|
|
1850
|
+
type graphspec_GraphSpecNode = GraphSpecNode;
|
|
1851
|
+
type graphspec_GraphSpecTemplate = GraphSpecTemplate;
|
|
1852
|
+
type graphspec_GraphSpecTemplateRef = GraphSpecTemplateRef;
|
|
1853
|
+
type graphspec_GraphSpecValidation = GraphSpecValidation;
|
|
1854
|
+
type graphspec_LLMComposeOptions = LLMComposeOptions;
|
|
1855
|
+
type graphspec_LLMRefineOptions = LLMRefineOptions;
|
|
1856
|
+
type graphspec_SourceFactory = SourceFactory;
|
|
1857
|
+
type graphspec_SpecDiffEntry = SpecDiffEntry;
|
|
1858
|
+
type graphspec_SpecDiffResult = SpecDiffResult;
|
|
1859
|
+
declare const graphspec_compileSpec: typeof compileSpec;
|
|
1860
|
+
declare const graphspec_decompileGraph: typeof decompileGraph;
|
|
1861
|
+
declare const graphspec_extractFnFactory: typeof extractFnFactory;
|
|
1862
|
+
declare const graphspec_extractSourceFactory: typeof extractSourceFactory;
|
|
1863
|
+
declare const graphspec_generateCatalogPrompt: typeof generateCatalogPrompt;
|
|
1864
|
+
declare const graphspec_isRichFnEntry: typeof isRichFnEntry;
|
|
1865
|
+
declare const graphspec_isRichSourceEntry: typeof isRichSourceEntry;
|
|
1866
|
+
declare const graphspec_llmCompose: typeof llmCompose;
|
|
1867
|
+
declare const graphspec_llmRefine: typeof llmRefine;
|
|
1868
|
+
declare const graphspec_specDiff: typeof specDiff;
|
|
1869
|
+
declare const graphspec_validateSpec: typeof validateSpec;
|
|
1870
|
+
declare const graphspec_validateSpecAgainstCatalog: typeof validateSpecAgainstCatalog;
|
|
1871
|
+
declare namespace graphspec {
|
|
1872
|
+
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 };
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1332
1875
|
/**
|
|
1333
1876
|
* Messaging patterns (roadmap §4.2).
|
|
1334
1877
|
*
|
|
@@ -1774,12 +2317,14 @@ declare namespace reduction {
|
|
|
1774
2317
|
|
|
1775
2318
|
declare const index_ai: typeof ai;
|
|
1776
2319
|
declare const index_cqrs: typeof cqrs;
|
|
2320
|
+
declare const index_domainTemplates: typeof domainTemplates;
|
|
2321
|
+
declare const index_graphspec: typeof graphspec;
|
|
1777
2322
|
declare const index_memory: typeof memory;
|
|
1778
2323
|
declare const index_messaging: typeof messaging;
|
|
1779
2324
|
declare const index_orchestration: typeof orchestration;
|
|
1780
2325
|
declare const index_reduction: typeof reduction;
|
|
1781
2326
|
declare namespace index {
|
|
1782
|
-
export { index_ai as ai, index_cqrs as cqrs, demoShell$1 as demoShell, index$b as layout, index_memory as memory, index_messaging as messaging, index_orchestration as orchestration, index_reduction as reduction };
|
|
2327
|
+
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 };
|
|
1783
2328
|
}
|
|
1784
2329
|
|
|
1785
2330
|
/**
|
|
@@ -1787,4 +2332,4 @@ declare namespace index {
|
|
|
1787
2332
|
*/
|
|
1788
2333
|
declare const version = "0.0.0";
|
|
1789
2334
|
|
|
1790
|
-
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, 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 };
|
|
2335
|
+
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 };
|