@graphrefly/graphrefly 0.14.0 → 0.16.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-2ZICUAUJ.js → chunk-26A4E7J7.js} +10 -12
- package/dist/chunk-26A4E7J7.js.map +1 -0
- package/dist/{chunk-CRACCCJY.js → chunk-3BLRREFM.js} +29 -5
- package/dist/chunk-3BLRREFM.js.map +1 -0
- package/dist/{chunk-XQ4UMAU7.js → chunk-ITDVOCFO.js} +2 -2
- package/dist/{chunk-YW6LFCFS.js → chunk-LKP7IWRV.js} +3 -3
- package/dist/{chunk-4APC3AFN.js → chunk-RLVFZDCE.js} +22 -49
- package/dist/chunk-RLVFZDCE.js.map +1 -0
- package/dist/{chunk-GKRKDYNT.js → chunk-RZSQ7P2C.js} +3 -3
- package/dist/{chunk-ZHTHUX5D.js → chunk-SHRJH2DN.js} +3 -3
- package/dist/{chunk-H243FWYP.js → chunk-VZY2B2LU.js} +1 -1
- package/dist/{chunk-H243FWYP.js.map → chunk-VZY2B2LU.js.map} +1 -1
- package/dist/{chunk-QVYZD65U.js → chunk-YX263TXI.js} +10 -38
- package/dist/chunk-YX263TXI.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +38 -41
- 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.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +3 -3
- package/dist/extra/index.cjs +27 -78
- 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 +26 -2
- 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-BXIK5Dq5.d.ts → graph-Dc-P9BVm.d.ts} +15 -3
- package/dist/{graph-BhADtuFU.d.cts → graph-fCsaaVIa.d.cts} +15 -3
- package/dist/{index-DSp5R3Xq.d.ts → index-BBVBYPxr.d.cts} +4 -4
- package/dist/{index-BkToATim.d.ts → index-BR19vQME.d.ts} +1 -1
- package/dist/{index-BNB0KjKe.d.ts → index-BmoUvOGN.d.ts} +1 -1
- package/dist/{index-DBhLjWSV.d.cts → index-ClaKZFPl.d.cts} +100 -31
- package/dist/{index-Dqemj9q0.d.cts → index-DWq0P9T6.d.ts} +4 -4
- package/dist/{index-Wa8jXne6.d.cts → index-Db27z6Ki.d.cts} +1 -1
- package/dist/{index-fYObbpUw.d.ts → index-DhXznWyH.d.ts} +2 -2
- package/dist/{index-DANO9Gg7.d.cts → index-DlGMf_Qe.d.cts} +2 -2
- package/dist/{index-CKyYg4IP.d.ts → index-N704txAA.d.ts} +100 -31
- package/dist/{index-DKIyo4Bq.d.cts → index-YlOH1Gw6.d.cts} +1 -1
- package/dist/index.cjs +185 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -39
- package/dist/index.d.ts +35 -39
- package/dist/index.js +143 -153
- package/dist/index.js.map +1 -1
- package/dist/{meta-CrZUQAJ6.d.cts → meta-BV4pj9ML.d.cts} +6 -0
- package/dist/{meta-CrZUQAJ6.d.ts → meta-BV4pj9ML.d.ts} +6 -0
- package/dist/observable-Cz-AWhwR.d.cts +42 -0
- package/dist/observable-DCqlwGyl.d.ts +42 -0
- package/dist/patterns/reactive-layout/index.cjs +26 -2
- 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/package.json +3 -2
- package/dist/chunk-2ZICUAUJ.js.map +0 -1
- package/dist/chunk-4APC3AFN.js.map +0 -1
- package/dist/chunk-CRACCCJY.js.map +0 -1
- package/dist/chunk-QVYZD65U.js.map +0 -1
- package/dist/reactive-log-ChbpUrY2.d.cts +0 -137
- package/dist/reactive-log-DV--7BWd.d.ts +0 -137
- /package/dist/{chunk-XQ4UMAU7.js.map → chunk-ITDVOCFO.js.map} +0 -0
- /package/dist/{chunk-YW6LFCFS.js.map → chunk-LKP7IWRV.js.map} +0 -0
- /package/dist/{chunk-GKRKDYNT.js.map → chunk-RZSQ7P2C.js.map} +0 -0
- /package/dist/{chunk-ZHTHUX5D.js.map → chunk-SHRJH2DN.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-
|
|
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-
|
|
3
|
-
import { i as index$b, c as cqrs } from './index-
|
|
1
|
+
import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-BV4pj9ML.cjs';
|
|
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-BV4pj9ML.cjs';
|
|
3
|
+
import { i as index$b, c as cqrs } from './index-BBVBYPxr.cjs';
|
|
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 { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, i as core, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, p as partitionForBatch, o as pipe, q as producer, s as state, w as wallClockNs } from './index-
|
|
8
|
-
import { N as NodeInput, D as DistillBundle, E as Extraction
|
|
9
|
-
export { A as AdapterHandlers,
|
|
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 {
|
|
12
|
-
export {
|
|
13
|
-
import { M as MeasurementAdapter, i as index$c } from './index-DANO9Gg7.cjs';
|
|
5
|
+
import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions } from './graph-fCsaaVIa.cjs';
|
|
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-fCsaaVIa.cjs';
|
|
7
|
+
export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, i as core, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, p as partitionForBatch, o as pipe, q as producer, s as state, w as wallClockNs } from './index-YlOH1Gw6.cjs';
|
|
8
|
+
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-ClaKZFPl.cjs';
|
|
9
|
+
export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c7 as extra, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from './index-ClaKZFPl.cjs';
|
|
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-Db27z6Ki.cjs';
|
|
11
|
+
import { M as MeasurementAdapter, i as index$c } from './index-DlGMf_Qe.cjs';
|
|
12
|
+
export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from './observable-Cz-AWhwR.cjs';
|
|
14
13
|
import '@nestjs/common';
|
|
15
14
|
import '@nestjs/core';
|
|
16
15
|
import 'rxjs';
|
|
@@ -718,7 +717,7 @@ type FromLLMStreamOptions = FromLLMOptions;
|
|
|
718
717
|
*/
|
|
719
718
|
type LLMStreamHandle = {
|
|
720
719
|
/** Reactive log node accumulating token chunks. */
|
|
721
|
-
node: Node<
|
|
720
|
+
node: Node<readonly string[]>;
|
|
722
721
|
/** Tear down the internal effect, abort any in-flight stream, and release resources. */
|
|
723
722
|
dispose: () => void;
|
|
724
723
|
};
|
|
@@ -763,8 +762,7 @@ type ChatStreamOptions = {
|
|
|
763
762
|
};
|
|
764
763
|
declare class ChatStreamGraph extends Graph {
|
|
765
764
|
private readonly _log;
|
|
766
|
-
|
|
767
|
-
readonly messages: Node<ReactiveLogSnapshot<ChatMessage>>;
|
|
765
|
+
readonly messages: Node<readonly ChatMessage[]>;
|
|
768
766
|
readonly latest: Node<ChatMessage | undefined>;
|
|
769
767
|
readonly messageCount: Node<number>;
|
|
770
768
|
constructor(name: string, opts?: ChatStreamOptions);
|
|
@@ -772,7 +770,6 @@ declare class ChatStreamGraph extends Graph {
|
|
|
772
770
|
appendToolResult(callId: string, content: string): void;
|
|
773
771
|
clear(): void;
|
|
774
772
|
allMessages(): readonly ChatMessage[];
|
|
775
|
-
destroy(): void;
|
|
776
773
|
}
|
|
777
774
|
declare function chatStream(name: string, opts?: ChatStreamOptions): ChatStreamGraph;
|
|
778
775
|
type ToolRegistryOptions = {
|
|
@@ -781,13 +778,11 @@ type ToolRegistryOptions = {
|
|
|
781
778
|
declare class ToolRegistryGraph extends Graph {
|
|
782
779
|
readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
|
|
783
780
|
readonly schemas: Node<readonly ToolDefinition[]>;
|
|
784
|
-
private readonly _keepaliveSubs;
|
|
785
781
|
constructor(name: string, opts?: ToolRegistryOptions);
|
|
786
782
|
register(tool: ToolDefinition): void;
|
|
787
783
|
unregister(name: string): void;
|
|
788
784
|
execute(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
789
785
|
getDefinition(name: string): ToolDefinition | undefined;
|
|
790
|
-
destroy(): void;
|
|
791
786
|
}
|
|
792
787
|
declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
|
|
793
788
|
/**
|
|
@@ -862,7 +857,7 @@ type MemoryTiersOptions<TMem> = {
|
|
|
862
857
|
type MemoryTiersBundle<TMem> = {
|
|
863
858
|
/** Permanent tier: never evicted. */
|
|
864
859
|
readonly permanent: LightCollectionBundle<TMem>;
|
|
865
|
-
/** Active entries node (reactive, holds
|
|
860
|
+
/** Active entries node (reactive, holds ReadonlyMap). */
|
|
866
861
|
readonly activeEntries: Node<unknown>;
|
|
867
862
|
/** Archive checkpoint handle (null if no adapter). */
|
|
868
863
|
readonly archiveHandle: GraphAutoCheckpointHandle | null;
|
|
@@ -1914,11 +1909,9 @@ type TopicOptions = {
|
|
|
1914
1909
|
};
|
|
1915
1910
|
declare class TopicGraph<T> extends Graph {
|
|
1916
1911
|
private readonly _log;
|
|
1917
|
-
|
|
1918
|
-
readonly events: Node<ReactiveLogSnapshot<T>>;
|
|
1912
|
+
readonly events: Node<readonly T[]>;
|
|
1919
1913
|
readonly latest: Node<T | undefined>;
|
|
1920
1914
|
constructor(name: string, opts?: TopicOptions);
|
|
1921
|
-
destroy(): void;
|
|
1922
1915
|
publish(value: T): void;
|
|
1923
1916
|
retained(): readonly T[];
|
|
1924
1917
|
}
|
|
@@ -1927,12 +1920,10 @@ type SubscriptionOptions = {
|
|
|
1927
1920
|
cursor?: number;
|
|
1928
1921
|
};
|
|
1929
1922
|
declare class SubscriptionGraph<T> extends Graph {
|
|
1930
|
-
|
|
1931
|
-
readonly source: Node<ReactiveLogSnapshot<T>>;
|
|
1923
|
+
readonly source: Node<readonly T[]>;
|
|
1932
1924
|
readonly cursor: Node<number>;
|
|
1933
1925
|
readonly available: Node<readonly T[]>;
|
|
1934
1926
|
constructor(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions);
|
|
1935
|
-
destroy(): void;
|
|
1936
1927
|
ack(count?: number): number;
|
|
1937
1928
|
pull(limit?: number, opts?: {
|
|
1938
1929
|
ack?: boolean;
|
|
@@ -1952,13 +1943,11 @@ type JobQueueOptions = {
|
|
|
1952
1943
|
declare class JobQueueGraph<T> extends Graph {
|
|
1953
1944
|
private readonly _pending;
|
|
1954
1945
|
private readonly _jobs;
|
|
1955
|
-
private readonly _keepaliveDisposers;
|
|
1956
1946
|
private _seq;
|
|
1957
|
-
readonly pending: Node<
|
|
1958
|
-
readonly jobs: Node<
|
|
1947
|
+
readonly pending: Node<readonly string[]>;
|
|
1948
|
+
readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
|
|
1959
1949
|
readonly depth: Node<number>;
|
|
1960
1950
|
constructor(name: string, opts?: JobQueueOptions);
|
|
1961
|
-
destroy(): void;
|
|
1962
1951
|
enqueue(payload: T, opts?: {
|
|
1963
1952
|
id?: string;
|
|
1964
1953
|
metadata?: Record<string, unknown>;
|
|
@@ -1977,12 +1966,10 @@ type JobFlowOptions = {
|
|
|
1977
1966
|
declare class JobFlowGraph<T> extends Graph {
|
|
1978
1967
|
private readonly _stageNames;
|
|
1979
1968
|
private readonly _queues;
|
|
1980
|
-
private readonly _keepaliveDisposers;
|
|
1981
1969
|
private readonly _completed;
|
|
1982
|
-
readonly completed: Node<
|
|
1970
|
+
readonly completed: Node<readonly JobEnvelope<T>[]>;
|
|
1983
1971
|
readonly completedCount: Node<number>;
|
|
1984
1972
|
constructor(name: string, opts?: JobFlowOptions);
|
|
1985
|
-
destroy(): void;
|
|
1986
1973
|
stages(): readonly string[];
|
|
1987
1974
|
queue(stage: string): JobQueueGraph<T>;
|
|
1988
1975
|
enqueue(payload: T, opts?: {
|
|
@@ -2000,10 +1987,8 @@ type TopicBridgeOptions<TIn, TOut> = {
|
|
|
2000
1987
|
declare class TopicBridgeGraph<TIn, TOut = TIn> extends Graph {
|
|
2001
1988
|
private readonly _sourceSub;
|
|
2002
1989
|
private readonly _target;
|
|
2003
|
-
private readonly _keepaliveDisposers;
|
|
2004
1990
|
readonly bridgedCount: Node<number>;
|
|
2005
1991
|
constructor(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>);
|
|
2006
|
-
destroy(): void;
|
|
2007
1992
|
}
|
|
2008
1993
|
/**
|
|
2009
1994
|
* Creates a Pulsar-inspired topic graph (append-only retained stream + latest value).
|
|
@@ -2105,12 +2090,16 @@ interface StrategyEntry {
|
|
|
2105
2090
|
/** Key format: `${rootCause}→${intervention}`. */
|
|
2106
2091
|
type StrategyKey = `${RootCause}→${Intervention}`;
|
|
2107
2092
|
declare function strategyKey(rootCause: RootCause, intervention: Intervention): StrategyKey;
|
|
2108
|
-
/**
|
|
2093
|
+
/** LLM output shape from the EXECUTE stage (partial — lacks `item`). */
|
|
2094
|
+
type ExecuteOutput = {
|
|
2095
|
+
outcome: "success" | "failure" | "partial";
|
|
2096
|
+
detail: string;
|
|
2097
|
+
};
|
|
2098
|
+
/** Full execution result assembled downstream (LLM output + context). */
|
|
2109
2099
|
interface ExecutionResult {
|
|
2110
2100
|
item: TriagedItem;
|
|
2111
2101
|
outcome: "success" | "failure" | "partial";
|
|
2112
2102
|
detail: string;
|
|
2113
|
-
retryCount: number;
|
|
2114
2103
|
}
|
|
2115
2104
|
/** Whether an error is self-correctable (fast-retry) or structural (full loop). */
|
|
2116
2105
|
type ErrorClass = "self-correctable" | "structural";
|
|
@@ -2398,6 +2387,8 @@ interface StrategyModelBundle {
|
|
|
2398
2387
|
record(rootCause: RootCause, intervention: Intervention, success: boolean): void;
|
|
2399
2388
|
/** Look up effectiveness for a specific pair. */
|
|
2400
2389
|
lookup(rootCause: RootCause, intervention: Intervention): StrategyEntry | undefined;
|
|
2390
|
+
/** Tear down internal keepalive subscriptions. */
|
|
2391
|
+
dispose(): void;
|
|
2401
2392
|
}
|
|
2402
2393
|
/**
|
|
2403
2394
|
* Create a strategy model that tracks `rootCause × intervention → successRate`
|
|
@@ -2442,7 +2433,11 @@ declare class HarnessGraph extends Graph {
|
|
|
2442
2433
|
readonly strategy: StrategyModelBundle;
|
|
2443
2434
|
/** Verify results topic — subscribe to see verification outcomes. */
|
|
2444
2435
|
readonly verifyResults: TopicGraph<VerifyResult>;
|
|
2445
|
-
|
|
2436
|
+
/** Per-item fast-retry counts (keyed by base summary). */
|
|
2437
|
+
readonly retryTracker: ReadonlyMap<string, number>;
|
|
2438
|
+
/** Per-item reingestion counts (keyed by base summary). */
|
|
2439
|
+
readonly reingestionTracker: ReadonlyMap<string, number>;
|
|
2440
|
+
constructor(name: string, intake: TopicGraph<IntakeItem>, queues: Map<QueueRoute, TopicGraph<TriagedItem>>, gates: Map<QueueRoute, GateController<TriagedItem>>, strategy: StrategyModelBundle, verifyResults: TopicGraph<VerifyResult>, retryTracker: Map<string, number>, reingestionTracker: Map<string, number>);
|
|
2446
2441
|
}
|
|
2447
2442
|
/**
|
|
2448
2443
|
* Wire the reactive collaboration loop as a static-topology graph.
|
|
@@ -2481,6 +2476,7 @@ type index$1_EvalIntakeBridgeOptions = EvalIntakeBridgeOptions;
|
|
|
2481
2476
|
type index$1_EvalJudgeScore = EvalJudgeScore;
|
|
2482
2477
|
type index$1_EvalResult = EvalResult;
|
|
2483
2478
|
type index$1_EvalTaskResult = EvalTaskResult;
|
|
2479
|
+
type index$1_ExecuteOutput = ExecuteOutput;
|
|
2484
2480
|
type index$1_ExecutionResult = ExecutionResult;
|
|
2485
2481
|
type index$1_HarnessGraph = HarnessGraph;
|
|
2486
2482
|
declare const index$1_HarnessGraph: typeof HarnessGraph;
|
|
@@ -2506,7 +2502,7 @@ declare const index$1_priorityScore: typeof priorityScore;
|
|
|
2506
2502
|
declare const index$1_strategyKey: typeof strategyKey;
|
|
2507
2503
|
declare const index$1_strategyModel: typeof strategyModel;
|
|
2508
2504
|
declare namespace index$1 {
|
|
2509
|
-
export { index$1_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index$1_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index$1_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index$1_ErrorClass as ErrorClass, type index$1_ErrorClassifier as ErrorClassifier, type index$1_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index$1_EvalJudgeScore as EvalJudgeScore, type index$1_EvalResult as EvalResult, type index$1_EvalTaskResult as EvalTaskResult, type index$1_ExecutionResult as ExecutionResult, index$1_HarnessGraph as HarnessGraph, type index$1_HarnessLoopOptions as HarnessLoopOptions, type index$1_IntakeItem as IntakeItem, type index$1_IntakeSource as IntakeSource, type index$1_Intervention as Intervention, type index$1_PrioritySignals as PrioritySignals, type index$1_QueueConfig as QueueConfig, type index$1_QueueRoute as QueueRoute, type index$1_RootCause as RootCause, type index$1_Severity as Severity, type index$1_StrategyEntry as StrategyEntry, type index$1_StrategyKey as StrategyKey, type index$1_StrategyModelBundle as StrategyModelBundle, type index$1_StrategySnapshot as StrategySnapshot, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2505
|
+
export { index$1_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index$1_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index$1_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index$1_ErrorClass as ErrorClass, type index$1_ErrorClassifier as ErrorClassifier, type index$1_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index$1_EvalJudgeScore as EvalJudgeScore, type index$1_EvalResult as EvalResult, type index$1_EvalTaskResult as EvalTaskResult, type index$1_ExecuteOutput as ExecuteOutput, type index$1_ExecutionResult as ExecutionResult, index$1_HarnessGraph as HarnessGraph, type index$1_HarnessLoopOptions as HarnessLoopOptions, type index$1_IntakeItem as IntakeItem, type index$1_IntakeSource as IntakeSource, type index$1_Intervention as Intervention, type index$1_PrioritySignals as PrioritySignals, type index$1_QueueConfig as QueueConfig, type index$1_QueueRoute as QueueRoute, type index$1_RootCause as RootCause, type index$1_Severity as Severity, type index$1_StrategyEntry as StrategyEntry, type index$1_StrategyKey as StrategyKey, type index$1_StrategyModelBundle as StrategyModelBundle, type index$1_StrategySnapshot as StrategySnapshot, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2510
2506
|
}
|
|
2511
2507
|
|
|
2512
2508
|
/**
|
|
@@ -2705,4 +2701,4 @@ declare namespace index {
|
|
|
2705
2701
|
*/
|
|
2706
2702
|
declare const version = "0.0.0";
|
|
2707
2703
|
|
|
2708
|
-
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions,
|
|
2704
|
+
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions, ai, index$2 as compat, cqrs, demoShell$1 as demoShell, domainTemplates, graphspec, index$1 as harness, index$a as jotai, index$c as layout, memory, messaging, index$9 as nanostores, index$b as nestjs, orchestration, index as patterns, index$8 as react, reduction, index$7 as signals, index$6 as solid, index$5 as svelte, version, index$4 as vue, index$3 as zustand };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-
|
|
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-
|
|
3
|
-
import { i as index$b, c as cqrs } from './index-
|
|
1
|
+
import { N as Node, A as Actor, a as NodeOptions, b as NodeActions, c as NodeFn } from './meta-BV4pj9ML.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-BV4pj9ML.js';
|
|
3
|
+
import { i as index$b, c as cqrs } from './index-DWq0P9T6.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 { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, i as core, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, p as partitionForBatch, o as pipe, q as producer, s as state, w as wallClockNs } from './index-
|
|
8
|
-
import { N as NodeInput, D as DistillBundle, E as Extraction
|
|
9
|
-
export { A as AdapterHandlers,
|
|
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 {
|
|
12
|
-
export {
|
|
13
|
-
import { M as MeasurementAdapter, i as index$c } from './index-fYObbpUw.js';
|
|
5
|
+
import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions } from './graph-Dc-P9BVm.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-Dc-P9BVm.js';
|
|
7
|
+
export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, i as core, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, p as partitionForBatch, o as pipe, q as producer, s as state, w as wallClockNs } from './index-BmoUvOGN.js';
|
|
8
|
+
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-N704txAA.js';
|
|
9
|
+
export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c7 as extra, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from './index-N704txAA.js';
|
|
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-BR19vQME.js';
|
|
11
|
+
import { M as MeasurementAdapter, i as index$c } from './index-DhXznWyH.js';
|
|
12
|
+
export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from './observable-DCqlwGyl.js';
|
|
14
13
|
import '@nestjs/common';
|
|
15
14
|
import '@nestjs/core';
|
|
16
15
|
import 'rxjs';
|
|
@@ -718,7 +717,7 @@ type FromLLMStreamOptions = FromLLMOptions;
|
|
|
718
717
|
*/
|
|
719
718
|
type LLMStreamHandle = {
|
|
720
719
|
/** Reactive log node accumulating token chunks. */
|
|
721
|
-
node: Node<
|
|
720
|
+
node: Node<readonly string[]>;
|
|
722
721
|
/** Tear down the internal effect, abort any in-flight stream, and release resources. */
|
|
723
722
|
dispose: () => void;
|
|
724
723
|
};
|
|
@@ -763,8 +762,7 @@ type ChatStreamOptions = {
|
|
|
763
762
|
};
|
|
764
763
|
declare class ChatStreamGraph extends Graph {
|
|
765
764
|
private readonly _log;
|
|
766
|
-
|
|
767
|
-
readonly messages: Node<ReactiveLogSnapshot<ChatMessage>>;
|
|
765
|
+
readonly messages: Node<readonly ChatMessage[]>;
|
|
768
766
|
readonly latest: Node<ChatMessage | undefined>;
|
|
769
767
|
readonly messageCount: Node<number>;
|
|
770
768
|
constructor(name: string, opts?: ChatStreamOptions);
|
|
@@ -772,7 +770,6 @@ declare class ChatStreamGraph extends Graph {
|
|
|
772
770
|
appendToolResult(callId: string, content: string): void;
|
|
773
771
|
clear(): void;
|
|
774
772
|
allMessages(): readonly ChatMessage[];
|
|
775
|
-
destroy(): void;
|
|
776
773
|
}
|
|
777
774
|
declare function chatStream(name: string, opts?: ChatStreamOptions): ChatStreamGraph;
|
|
778
775
|
type ToolRegistryOptions = {
|
|
@@ -781,13 +778,11 @@ type ToolRegistryOptions = {
|
|
|
781
778
|
declare class ToolRegistryGraph extends Graph {
|
|
782
779
|
readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
|
|
783
780
|
readonly schemas: Node<readonly ToolDefinition[]>;
|
|
784
|
-
private readonly _keepaliveSubs;
|
|
785
781
|
constructor(name: string, opts?: ToolRegistryOptions);
|
|
786
782
|
register(tool: ToolDefinition): void;
|
|
787
783
|
unregister(name: string): void;
|
|
788
784
|
execute(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
789
785
|
getDefinition(name: string): ToolDefinition | undefined;
|
|
790
|
-
destroy(): void;
|
|
791
786
|
}
|
|
792
787
|
declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
|
|
793
788
|
/**
|
|
@@ -862,7 +857,7 @@ type MemoryTiersOptions<TMem> = {
|
|
|
862
857
|
type MemoryTiersBundle<TMem> = {
|
|
863
858
|
/** Permanent tier: never evicted. */
|
|
864
859
|
readonly permanent: LightCollectionBundle<TMem>;
|
|
865
|
-
/** Active entries node (reactive, holds
|
|
860
|
+
/** Active entries node (reactive, holds ReadonlyMap). */
|
|
866
861
|
readonly activeEntries: Node<unknown>;
|
|
867
862
|
/** Archive checkpoint handle (null if no adapter). */
|
|
868
863
|
readonly archiveHandle: GraphAutoCheckpointHandle | null;
|
|
@@ -1914,11 +1909,9 @@ type TopicOptions = {
|
|
|
1914
1909
|
};
|
|
1915
1910
|
declare class TopicGraph<T> extends Graph {
|
|
1916
1911
|
private readonly _log;
|
|
1917
|
-
|
|
1918
|
-
readonly events: Node<ReactiveLogSnapshot<T>>;
|
|
1912
|
+
readonly events: Node<readonly T[]>;
|
|
1919
1913
|
readonly latest: Node<T | undefined>;
|
|
1920
1914
|
constructor(name: string, opts?: TopicOptions);
|
|
1921
|
-
destroy(): void;
|
|
1922
1915
|
publish(value: T): void;
|
|
1923
1916
|
retained(): readonly T[];
|
|
1924
1917
|
}
|
|
@@ -1927,12 +1920,10 @@ type SubscriptionOptions = {
|
|
|
1927
1920
|
cursor?: number;
|
|
1928
1921
|
};
|
|
1929
1922
|
declare class SubscriptionGraph<T> extends Graph {
|
|
1930
|
-
|
|
1931
|
-
readonly source: Node<ReactiveLogSnapshot<T>>;
|
|
1923
|
+
readonly source: Node<readonly T[]>;
|
|
1932
1924
|
readonly cursor: Node<number>;
|
|
1933
1925
|
readonly available: Node<readonly T[]>;
|
|
1934
1926
|
constructor(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions);
|
|
1935
|
-
destroy(): void;
|
|
1936
1927
|
ack(count?: number): number;
|
|
1937
1928
|
pull(limit?: number, opts?: {
|
|
1938
1929
|
ack?: boolean;
|
|
@@ -1952,13 +1943,11 @@ type JobQueueOptions = {
|
|
|
1952
1943
|
declare class JobQueueGraph<T> extends Graph {
|
|
1953
1944
|
private readonly _pending;
|
|
1954
1945
|
private readonly _jobs;
|
|
1955
|
-
private readonly _keepaliveDisposers;
|
|
1956
1946
|
private _seq;
|
|
1957
|
-
readonly pending: Node<
|
|
1958
|
-
readonly jobs: Node<
|
|
1947
|
+
readonly pending: Node<readonly string[]>;
|
|
1948
|
+
readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
|
|
1959
1949
|
readonly depth: Node<number>;
|
|
1960
1950
|
constructor(name: string, opts?: JobQueueOptions);
|
|
1961
|
-
destroy(): void;
|
|
1962
1951
|
enqueue(payload: T, opts?: {
|
|
1963
1952
|
id?: string;
|
|
1964
1953
|
metadata?: Record<string, unknown>;
|
|
@@ -1977,12 +1966,10 @@ type JobFlowOptions = {
|
|
|
1977
1966
|
declare class JobFlowGraph<T> extends Graph {
|
|
1978
1967
|
private readonly _stageNames;
|
|
1979
1968
|
private readonly _queues;
|
|
1980
|
-
private readonly _keepaliveDisposers;
|
|
1981
1969
|
private readonly _completed;
|
|
1982
|
-
readonly completed: Node<
|
|
1970
|
+
readonly completed: Node<readonly JobEnvelope<T>[]>;
|
|
1983
1971
|
readonly completedCount: Node<number>;
|
|
1984
1972
|
constructor(name: string, opts?: JobFlowOptions);
|
|
1985
|
-
destroy(): void;
|
|
1986
1973
|
stages(): readonly string[];
|
|
1987
1974
|
queue(stage: string): JobQueueGraph<T>;
|
|
1988
1975
|
enqueue(payload: T, opts?: {
|
|
@@ -2000,10 +1987,8 @@ type TopicBridgeOptions<TIn, TOut> = {
|
|
|
2000
1987
|
declare class TopicBridgeGraph<TIn, TOut = TIn> extends Graph {
|
|
2001
1988
|
private readonly _sourceSub;
|
|
2002
1989
|
private readonly _target;
|
|
2003
|
-
private readonly _keepaliveDisposers;
|
|
2004
1990
|
readonly bridgedCount: Node<number>;
|
|
2005
1991
|
constructor(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>);
|
|
2006
|
-
destroy(): void;
|
|
2007
1992
|
}
|
|
2008
1993
|
/**
|
|
2009
1994
|
* Creates a Pulsar-inspired topic graph (append-only retained stream + latest value).
|
|
@@ -2105,12 +2090,16 @@ interface StrategyEntry {
|
|
|
2105
2090
|
/** Key format: `${rootCause}→${intervention}`. */
|
|
2106
2091
|
type StrategyKey = `${RootCause}→${Intervention}`;
|
|
2107
2092
|
declare function strategyKey(rootCause: RootCause, intervention: Intervention): StrategyKey;
|
|
2108
|
-
/**
|
|
2093
|
+
/** LLM output shape from the EXECUTE stage (partial — lacks `item`). */
|
|
2094
|
+
type ExecuteOutput = {
|
|
2095
|
+
outcome: "success" | "failure" | "partial";
|
|
2096
|
+
detail: string;
|
|
2097
|
+
};
|
|
2098
|
+
/** Full execution result assembled downstream (LLM output + context). */
|
|
2109
2099
|
interface ExecutionResult {
|
|
2110
2100
|
item: TriagedItem;
|
|
2111
2101
|
outcome: "success" | "failure" | "partial";
|
|
2112
2102
|
detail: string;
|
|
2113
|
-
retryCount: number;
|
|
2114
2103
|
}
|
|
2115
2104
|
/** Whether an error is self-correctable (fast-retry) or structural (full loop). */
|
|
2116
2105
|
type ErrorClass = "self-correctable" | "structural";
|
|
@@ -2398,6 +2387,8 @@ interface StrategyModelBundle {
|
|
|
2398
2387
|
record(rootCause: RootCause, intervention: Intervention, success: boolean): void;
|
|
2399
2388
|
/** Look up effectiveness for a specific pair. */
|
|
2400
2389
|
lookup(rootCause: RootCause, intervention: Intervention): StrategyEntry | undefined;
|
|
2390
|
+
/** Tear down internal keepalive subscriptions. */
|
|
2391
|
+
dispose(): void;
|
|
2401
2392
|
}
|
|
2402
2393
|
/**
|
|
2403
2394
|
* Create a strategy model that tracks `rootCause × intervention → successRate`
|
|
@@ -2442,7 +2433,11 @@ declare class HarnessGraph extends Graph {
|
|
|
2442
2433
|
readonly strategy: StrategyModelBundle;
|
|
2443
2434
|
/** Verify results topic — subscribe to see verification outcomes. */
|
|
2444
2435
|
readonly verifyResults: TopicGraph<VerifyResult>;
|
|
2445
|
-
|
|
2436
|
+
/** Per-item fast-retry counts (keyed by base summary). */
|
|
2437
|
+
readonly retryTracker: ReadonlyMap<string, number>;
|
|
2438
|
+
/** Per-item reingestion counts (keyed by base summary). */
|
|
2439
|
+
readonly reingestionTracker: ReadonlyMap<string, number>;
|
|
2440
|
+
constructor(name: string, intake: TopicGraph<IntakeItem>, queues: Map<QueueRoute, TopicGraph<TriagedItem>>, gates: Map<QueueRoute, GateController<TriagedItem>>, strategy: StrategyModelBundle, verifyResults: TopicGraph<VerifyResult>, retryTracker: Map<string, number>, reingestionTracker: Map<string, number>);
|
|
2446
2441
|
}
|
|
2447
2442
|
/**
|
|
2448
2443
|
* Wire the reactive collaboration loop as a static-topology graph.
|
|
@@ -2481,6 +2476,7 @@ type index$1_EvalIntakeBridgeOptions = EvalIntakeBridgeOptions;
|
|
|
2481
2476
|
type index$1_EvalJudgeScore = EvalJudgeScore;
|
|
2482
2477
|
type index$1_EvalResult = EvalResult;
|
|
2483
2478
|
type index$1_EvalTaskResult = EvalTaskResult;
|
|
2479
|
+
type index$1_ExecuteOutput = ExecuteOutput;
|
|
2484
2480
|
type index$1_ExecutionResult = ExecutionResult;
|
|
2485
2481
|
type index$1_HarnessGraph = HarnessGraph;
|
|
2486
2482
|
declare const index$1_HarnessGraph: typeof HarnessGraph;
|
|
@@ -2506,7 +2502,7 @@ declare const index$1_priorityScore: typeof priorityScore;
|
|
|
2506
2502
|
declare const index$1_strategyKey: typeof strategyKey;
|
|
2507
2503
|
declare const index$1_strategyModel: typeof strategyModel;
|
|
2508
2504
|
declare namespace index$1 {
|
|
2509
|
-
export { index$1_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index$1_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index$1_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index$1_ErrorClass as ErrorClass, type index$1_ErrorClassifier as ErrorClassifier, type index$1_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index$1_EvalJudgeScore as EvalJudgeScore, type index$1_EvalResult as EvalResult, type index$1_EvalTaskResult as EvalTaskResult, type index$1_ExecutionResult as ExecutionResult, index$1_HarnessGraph as HarnessGraph, type index$1_HarnessLoopOptions as HarnessLoopOptions, type index$1_IntakeItem as IntakeItem, type index$1_IntakeSource as IntakeSource, type index$1_Intervention as Intervention, type index$1_PrioritySignals as PrioritySignals, type index$1_QueueConfig as QueueConfig, type index$1_QueueRoute as QueueRoute, type index$1_RootCause as RootCause, type index$1_Severity as Severity, type index$1_StrategyEntry as StrategyEntry, type index$1_StrategyKey as StrategyKey, type index$1_StrategyModelBundle as StrategyModelBundle, type index$1_StrategySnapshot as StrategySnapshot, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2505
|
+
export { index$1_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, index$1_DEFAULT_QUEUE_CONFIGS as DEFAULT_QUEUE_CONFIGS, index$1_DEFAULT_SEVERITY_WEIGHTS as DEFAULT_SEVERITY_WEIGHTS, type index$1_ErrorClass as ErrorClass, type index$1_ErrorClassifier as ErrorClassifier, type index$1_EvalIntakeBridgeOptions as EvalIntakeBridgeOptions, type index$1_EvalJudgeScore as EvalJudgeScore, type index$1_EvalResult as EvalResult, type index$1_EvalTaskResult as EvalTaskResult, type index$1_ExecuteOutput as ExecuteOutput, type index$1_ExecutionResult as ExecutionResult, index$1_HarnessGraph as HarnessGraph, type index$1_HarnessLoopOptions as HarnessLoopOptions, type index$1_IntakeItem as IntakeItem, type index$1_IntakeSource as IntakeSource, type index$1_Intervention as Intervention, type index$1_PrioritySignals as PrioritySignals, type index$1_QueueConfig as QueueConfig, type index$1_QueueRoute as QueueRoute, type index$1_RootCause as RootCause, type index$1_Severity as Severity, type index$1_StrategyEntry as StrategyEntry, type index$1_StrategyKey as StrategyKey, type index$1_StrategyModelBundle as StrategyModelBundle, type index$1_StrategySnapshot as StrategySnapshot, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2510
2506
|
}
|
|
2511
2507
|
|
|
2512
2508
|
/**
|
|
@@ -2705,4 +2701,4 @@ declare namespace index {
|
|
|
2705
2701
|
*/
|
|
2706
2702
|
declare const version = "0.0.0";
|
|
2707
2703
|
|
|
2708
|
-
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions,
|
|
2704
|
+
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions, ai, index$2 as compat, cqrs, demoShell$1 as demoShell, domainTemplates, graphspec, index$1 as harness, index$a as jotai, index$c as layout, memory, messaging, index$9 as nanostores, index$b as nestjs, orchestration, index as patterns, index$8 as react, reduction, index$7 as signals, index$6 as solid, index$5 as svelte, version, index$4 as vue, index$3 as zustand };
|