@graphrefly/graphrefly 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4APC3AFN.js → chunk-2PORF4RP.js} +22 -49
- package/dist/chunk-2PORF4RP.js.map +1 -0
- package/dist/{chunk-QVYZD65U.js → chunk-646OG3PO.js} +10 -38
- package/dist/chunk-646OG3PO.js.map +1 -0
- package/dist/{chunk-H243FWYP.js → chunk-BV3TPSBK.js} +1 -2
- package/dist/chunk-BV3TPSBK.js.map +1 -0
- package/dist/chunk-EBNKJULL.js +231 -0
- package/dist/chunk-EBNKJULL.js.map +1 -0
- package/dist/{chunk-XQ4UMAU7.js → chunk-F2ULI3Q3.js} +2 -2
- package/dist/{chunk-CRACCCJY.js → chunk-IHJHBADD.js} +29 -5
- package/dist/chunk-IHJHBADD.js.map +1 -0
- package/dist/{chunk-YW6LFCFS.js → chunk-R6OHUUYB.js} +3 -3
- package/dist/{chunk-2ZICUAUJ.js → chunk-XJ6EMQ22.js} +10 -12
- package/dist/chunk-XJ6EMQ22.js.map +1 -0
- package/dist/{chunk-GKRKDYNT.js → chunk-YXROQFXZ.js} +3 -3
- package/dist/compat/nestjs/index.cjs +38 -42
- 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 +0 -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 +3 -3
- package/dist/extra/index.cjs +27 -79
- 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 +151 -5
- 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 +10 -6
- 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-BkToATim.d.ts → index-4OIX-q0C.d.cts} +88 -3
- package/dist/{index-DSp5R3Xq.d.ts → index-BBVBYPxr.d.cts} +4 -4
- 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-Wa8jXne6.d.cts → index-D7y9Q8W4.d.ts} +88 -3
- package/dist/{index-Dqemj9q0.d.cts → index-DWq0P9T6.d.ts} +4 -4
- 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 +302 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -41
- package/dist/index.d.ts +71 -41
- package/dist/index.js +131 -151
- 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 -3
- 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 +1 -1
- 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-H243FWYP.js.map +0 -1
- package/dist/chunk-QVYZD65U.js.map +0 -1
- package/dist/chunk-ZHTHUX5D.js +0 -107
- package/dist/chunk-ZHTHUX5D.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-F2ULI3Q3.js.map} +0 -0
- /package/dist/{chunk-YW6LFCFS.js.map → chunk-R6OHUUYB.js.map} +0 -0
- /package/dist/{chunk-GKRKDYNT.js.map → chunk-YXROQFXZ.js.map} +0 -0
package/dist/index.d.cts
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 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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
import { G as GraphProfileResult, a as GraphProfileOptions } from './index-4OIX-q0C.cjs';
|
|
11
|
+
export { D as DeltaCheckpoint, E as EvictedSubgraphInfo, b as EvictionPolicy, c as GraphCodec, J as JsonCodec, L as LazyGraphCodec, N as NodeProfile, W as WALEntry, d as createDagCborCodec, e as createDagCborZstdCodec, i as graph, g as graphProfile, n as negotiateCodec, r as replayWAL, s as sizeof } from './index-4OIX-q0C.cjs';
|
|
12
|
+
import { M as MeasurementAdapter, i as index$c } from './index-DlGMf_Qe.cjs';
|
|
13
|
+
export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from './observable-Cz-AWhwR.cjs';
|
|
14
14
|
import '@nestjs/common';
|
|
15
15
|
import '@nestjs/core';
|
|
16
16
|
import 'rxjs';
|
|
@@ -718,7 +718,7 @@ type FromLLMStreamOptions = FromLLMOptions;
|
|
|
718
718
|
*/
|
|
719
719
|
type LLMStreamHandle = {
|
|
720
720
|
/** Reactive log node accumulating token chunks. */
|
|
721
|
-
node: Node<
|
|
721
|
+
node: Node<readonly string[]>;
|
|
722
722
|
/** Tear down the internal effect, abort any in-flight stream, and release resources. */
|
|
723
723
|
dispose: () => void;
|
|
724
724
|
};
|
|
@@ -763,8 +763,7 @@ type ChatStreamOptions = {
|
|
|
763
763
|
};
|
|
764
764
|
declare class ChatStreamGraph extends Graph {
|
|
765
765
|
private readonly _log;
|
|
766
|
-
|
|
767
|
-
readonly messages: Node<ReactiveLogSnapshot<ChatMessage>>;
|
|
766
|
+
readonly messages: Node<readonly ChatMessage[]>;
|
|
768
767
|
readonly latest: Node<ChatMessage | undefined>;
|
|
769
768
|
readonly messageCount: Node<number>;
|
|
770
769
|
constructor(name: string, opts?: ChatStreamOptions);
|
|
@@ -772,7 +771,6 @@ declare class ChatStreamGraph extends Graph {
|
|
|
772
771
|
appendToolResult(callId: string, content: string): void;
|
|
773
772
|
clear(): void;
|
|
774
773
|
allMessages(): readonly ChatMessage[];
|
|
775
|
-
destroy(): void;
|
|
776
774
|
}
|
|
777
775
|
declare function chatStream(name: string, opts?: ChatStreamOptions): ChatStreamGraph;
|
|
778
776
|
type ToolRegistryOptions = {
|
|
@@ -781,13 +779,11 @@ type ToolRegistryOptions = {
|
|
|
781
779
|
declare class ToolRegistryGraph extends Graph {
|
|
782
780
|
readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
|
|
783
781
|
readonly schemas: Node<readonly ToolDefinition[]>;
|
|
784
|
-
private readonly _keepaliveSubs;
|
|
785
782
|
constructor(name: string, opts?: ToolRegistryOptions);
|
|
786
783
|
register(tool: ToolDefinition): void;
|
|
787
784
|
unregister(name: string): void;
|
|
788
785
|
execute(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
789
786
|
getDefinition(name: string): ToolDefinition | undefined;
|
|
790
|
-
destroy(): void;
|
|
791
787
|
}
|
|
792
788
|
declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
|
|
793
789
|
/**
|
|
@@ -862,7 +858,7 @@ type MemoryTiersOptions<TMem> = {
|
|
|
862
858
|
type MemoryTiersBundle<TMem> = {
|
|
863
859
|
/** Permanent tier: never evicted. */
|
|
864
860
|
readonly permanent: LightCollectionBundle<TMem>;
|
|
865
|
-
/** Active entries node (reactive, holds
|
|
861
|
+
/** Active entries node (reactive, holds ReadonlyMap). */
|
|
866
862
|
readonly activeEntries: Node<unknown>;
|
|
867
863
|
/** Archive checkpoint handle (null if no adapter). */
|
|
868
864
|
readonly archiveHandle: GraphAutoCheckpointHandle | null;
|
|
@@ -1914,11 +1910,9 @@ type TopicOptions = {
|
|
|
1914
1910
|
};
|
|
1915
1911
|
declare class TopicGraph<T> extends Graph {
|
|
1916
1912
|
private readonly _log;
|
|
1917
|
-
|
|
1918
|
-
readonly events: Node<ReactiveLogSnapshot<T>>;
|
|
1913
|
+
readonly events: Node<readonly T[]>;
|
|
1919
1914
|
readonly latest: Node<T | undefined>;
|
|
1920
1915
|
constructor(name: string, opts?: TopicOptions);
|
|
1921
|
-
destroy(): void;
|
|
1922
1916
|
publish(value: T): void;
|
|
1923
1917
|
retained(): readonly T[];
|
|
1924
1918
|
}
|
|
@@ -1927,12 +1921,10 @@ type SubscriptionOptions = {
|
|
|
1927
1921
|
cursor?: number;
|
|
1928
1922
|
};
|
|
1929
1923
|
declare class SubscriptionGraph<T> extends Graph {
|
|
1930
|
-
|
|
1931
|
-
readonly source: Node<ReactiveLogSnapshot<T>>;
|
|
1924
|
+
readonly source: Node<readonly T[]>;
|
|
1932
1925
|
readonly cursor: Node<number>;
|
|
1933
1926
|
readonly available: Node<readonly T[]>;
|
|
1934
1927
|
constructor(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions);
|
|
1935
|
-
destroy(): void;
|
|
1936
1928
|
ack(count?: number): number;
|
|
1937
1929
|
pull(limit?: number, opts?: {
|
|
1938
1930
|
ack?: boolean;
|
|
@@ -1952,13 +1944,11 @@ type JobQueueOptions = {
|
|
|
1952
1944
|
declare class JobQueueGraph<T> extends Graph {
|
|
1953
1945
|
private readonly _pending;
|
|
1954
1946
|
private readonly _jobs;
|
|
1955
|
-
private readonly _keepaliveDisposers;
|
|
1956
1947
|
private _seq;
|
|
1957
|
-
readonly pending: Node<
|
|
1958
|
-
readonly jobs: Node<
|
|
1948
|
+
readonly pending: Node<readonly string[]>;
|
|
1949
|
+
readonly jobs: Node<ReadonlyMap<string, JobEnvelope<T>>>;
|
|
1959
1950
|
readonly depth: Node<number>;
|
|
1960
1951
|
constructor(name: string, opts?: JobQueueOptions);
|
|
1961
|
-
destroy(): void;
|
|
1962
1952
|
enqueue(payload: T, opts?: {
|
|
1963
1953
|
id?: string;
|
|
1964
1954
|
metadata?: Record<string, unknown>;
|
|
@@ -1977,12 +1967,10 @@ type JobFlowOptions = {
|
|
|
1977
1967
|
declare class JobFlowGraph<T> extends Graph {
|
|
1978
1968
|
private readonly _stageNames;
|
|
1979
1969
|
private readonly _queues;
|
|
1980
|
-
private readonly _keepaliveDisposers;
|
|
1981
1970
|
private readonly _completed;
|
|
1982
|
-
readonly completed: Node<
|
|
1971
|
+
readonly completed: Node<readonly JobEnvelope<T>[]>;
|
|
1983
1972
|
readonly completedCount: Node<number>;
|
|
1984
1973
|
constructor(name: string, opts?: JobFlowOptions);
|
|
1985
|
-
destroy(): void;
|
|
1986
1974
|
stages(): readonly string[];
|
|
1987
1975
|
queue(stage: string): JobQueueGraph<T>;
|
|
1988
1976
|
enqueue(payload: T, opts?: {
|
|
@@ -2000,10 +1988,8 @@ type TopicBridgeOptions<TIn, TOut> = {
|
|
|
2000
1988
|
declare class TopicBridgeGraph<TIn, TOut = TIn> extends Graph {
|
|
2001
1989
|
private readonly _sourceSub;
|
|
2002
1990
|
private readonly _target;
|
|
2003
|
-
private readonly _keepaliveDisposers;
|
|
2004
1991
|
readonly bridgedCount: Node<number>;
|
|
2005
1992
|
constructor(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>);
|
|
2006
|
-
destroy(): void;
|
|
2007
1993
|
}
|
|
2008
1994
|
/**
|
|
2009
1995
|
* Creates a Pulsar-inspired topic graph (append-only retained stream + latest value).
|
|
@@ -2071,6 +2057,8 @@ type RootCause = "composition" | "missing-fn" | "bad-docs" | "schema-gap" | "reg
|
|
|
2071
2057
|
type Intervention = "template" | "catalog-fn" | "docs" | "wrapper" | "schema-change" | "investigate";
|
|
2072
2058
|
/** Routing destinations after triage. */
|
|
2073
2059
|
type QueueRoute = "auto-fix" | "needs-decision" | "investigation" | "backlog";
|
|
2060
|
+
/** Ordered queue route names for iteration. */
|
|
2061
|
+
declare const QUEUE_NAMES: readonly QueueRoute[];
|
|
2074
2062
|
/**
|
|
2075
2063
|
* An item entering the harness loop via the INTAKE stage.
|
|
2076
2064
|
*
|
|
@@ -2085,6 +2073,8 @@ interface IntakeItem {
|
|
|
2085
2073
|
affectsEvalTasks?: string[];
|
|
2086
2074
|
severity?: Severity;
|
|
2087
2075
|
relatedTo?: string[];
|
|
2076
|
+
/** Item-carried reingestion count. Incremented on each full-loop reingestion. */
|
|
2077
|
+
_reingestions?: number;
|
|
2088
2078
|
}
|
|
2089
2079
|
/** Output of the TRIAGE stage — enriched intake item with classification. */
|
|
2090
2080
|
interface TriagedItem extends IntakeItem {
|
|
@@ -2093,6 +2083,8 @@ interface TriagedItem extends IntakeItem {
|
|
|
2093
2083
|
route: QueueRoute;
|
|
2094
2084
|
priority: number;
|
|
2095
2085
|
triageReasoning?: string;
|
|
2086
|
+
/** Item-carried retry count. Incremented on each fast-retry pass. */
|
|
2087
|
+
_retries?: number;
|
|
2096
2088
|
}
|
|
2097
2089
|
/** Effectiveness record for a rootCause→intervention pair. */
|
|
2098
2090
|
interface StrategyEntry {
|
|
@@ -2174,8 +2166,12 @@ interface HarnessLoopOptions {
|
|
|
2174
2166
|
errorClassifier?: ErrorClassifier;
|
|
2175
2167
|
/** Max fast-retries per item before routing to full intake (default 2). */
|
|
2176
2168
|
maxRetries?: number;
|
|
2169
|
+
/** Global retry cap across all items — circuit breaker (default maxRetries × 10). */
|
|
2170
|
+
maxTotalRetries?: number;
|
|
2177
2171
|
/** Max re-ingestions from verify→intake before giving up (default 1). */
|
|
2178
2172
|
maxReingestions?: number;
|
|
2173
|
+
/** Global reingestion cap across all items — circuit breaker (default maxReingestions × 10). */
|
|
2174
|
+
maxTotalReingestions?: number;
|
|
2179
2175
|
/** Retained limit for topic logs (default 1000). */
|
|
2180
2176
|
retainedLimit?: number;
|
|
2181
2177
|
}
|
|
@@ -2402,6 +2398,8 @@ interface StrategyModelBundle {
|
|
|
2402
2398
|
record(rootCause: RootCause, intervention: Intervention, success: boolean): void;
|
|
2403
2399
|
/** Look up effectiveness for a specific pair. */
|
|
2404
2400
|
lookup(rootCause: RootCause, intervention: Intervention): StrategyEntry | undefined;
|
|
2401
|
+
/** Tear down internal keepalive subscriptions. */
|
|
2402
|
+
dispose(): void;
|
|
2405
2403
|
}
|
|
2406
2404
|
/**
|
|
2407
2405
|
* Create a strategy model that tracks `rootCause × intervention → successRate`
|
|
@@ -2446,11 +2444,11 @@ declare class HarnessGraph extends Graph {
|
|
|
2446
2444
|
readonly strategy: StrategyModelBundle;
|
|
2447
2445
|
/** Verify results topic — subscribe to see verification outcomes. */
|
|
2448
2446
|
readonly verifyResults: TopicGraph<VerifyResult>;
|
|
2449
|
-
/**
|
|
2450
|
-
readonly
|
|
2451
|
-
/**
|
|
2452
|
-
readonly
|
|
2453
|
-
constructor(name: string, intake: TopicGraph<IntakeItem>, queues: Map<QueueRoute, TopicGraph<TriagedItem>>, gates: Map<QueueRoute, GateController<TriagedItem>>, strategy: StrategyModelBundle, verifyResults: TopicGraph<VerifyResult>,
|
|
2447
|
+
/** Global retry count across all items (circuit breaker). Reactive — subscribable. */
|
|
2448
|
+
readonly totalRetries: Node<number>;
|
|
2449
|
+
/** Global reingestion count across all items (circuit breaker). Reactive — subscribable. */
|
|
2450
|
+
readonly totalReingestions: Node<number>;
|
|
2451
|
+
constructor(name: string, intake: TopicGraph<IntakeItem>, queues: Map<QueueRoute, TopicGraph<TriagedItem>>, gates: Map<QueueRoute, GateController<TriagedItem>>, strategy: StrategyModelBundle, verifyResults: TopicGraph<VerifyResult>, totalRetries: Node<number>, totalReingestions: Node<number>);
|
|
2454
2452
|
}
|
|
2455
2453
|
/**
|
|
2456
2454
|
* Wire the reactive collaboration loop as a static-topology graph.
|
|
@@ -2470,6 +2468,35 @@ declare class HarnessGraph extends Graph {
|
|
|
2470
2468
|
*/
|
|
2471
2469
|
declare function harnessLoop(name: string, opts: HarnessLoopOptions): HarnessGraph;
|
|
2472
2470
|
|
|
2471
|
+
/**
|
|
2472
|
+
* Harness-specific graph profiling (roadmap §9.0).
|
|
2473
|
+
*
|
|
2474
|
+
* Extends {@link graphProfile} with harness domain counters:
|
|
2475
|
+
* queue depths, strategy entries, retry/reingestion tracker sizes.
|
|
2476
|
+
*
|
|
2477
|
+
* @module
|
|
2478
|
+
*/
|
|
2479
|
+
|
|
2480
|
+
/** Harness-specific profile extending the base graph profile. */
|
|
2481
|
+
interface HarnessProfileResult extends GraphProfileResult {
|
|
2482
|
+
/** Per-queue retained item counts. */
|
|
2483
|
+
queueDepths: Record<QueueRoute, number>;
|
|
2484
|
+
/** Number of rootCause→intervention entries in the strategy model. */
|
|
2485
|
+
strategyEntries: number;
|
|
2486
|
+
/** Global retry count across all items. */
|
|
2487
|
+
totalRetries: number;
|
|
2488
|
+
/** Global reingestion count across all items. */
|
|
2489
|
+
totalReingestions: number;
|
|
2490
|
+
}
|
|
2491
|
+
/**
|
|
2492
|
+
* Profile a harness graph with domain-specific counters.
|
|
2493
|
+
*
|
|
2494
|
+
* @param harness - The HarnessGraph to profile.
|
|
2495
|
+
* @param opts - Optional base profile options.
|
|
2496
|
+
* @returns Harness profile with queue depths, strategy stats, and tracker sizes.
|
|
2497
|
+
*/
|
|
2498
|
+
declare function harnessProfile(harness: HarnessGraph, opts?: GraphProfileOptions): HarnessProfileResult;
|
|
2499
|
+
|
|
2473
2500
|
/**
|
|
2474
2501
|
* Harness wiring (roadmap §9.0).
|
|
2475
2502
|
*
|
|
@@ -2494,10 +2521,12 @@ type index$1_ExecutionResult = ExecutionResult;
|
|
|
2494
2521
|
type index$1_HarnessGraph = HarnessGraph;
|
|
2495
2522
|
declare const index$1_HarnessGraph: typeof HarnessGraph;
|
|
2496
2523
|
type index$1_HarnessLoopOptions = HarnessLoopOptions;
|
|
2524
|
+
type index$1_HarnessProfileResult = HarnessProfileResult;
|
|
2497
2525
|
type index$1_IntakeItem = IntakeItem;
|
|
2498
2526
|
type index$1_IntakeSource = IntakeSource;
|
|
2499
2527
|
type index$1_Intervention = Intervention;
|
|
2500
2528
|
type index$1_PrioritySignals = PrioritySignals;
|
|
2529
|
+
declare const index$1_QUEUE_NAMES: typeof QUEUE_NAMES;
|
|
2501
2530
|
type index$1_QueueConfig = QueueConfig;
|
|
2502
2531
|
type index$1_QueueRoute = QueueRoute;
|
|
2503
2532
|
type index$1_RootCause = RootCause;
|
|
@@ -2511,11 +2540,12 @@ type index$1_VerifyResult = VerifyResult;
|
|
|
2511
2540
|
declare const index$1_defaultErrorClassifier: typeof defaultErrorClassifier;
|
|
2512
2541
|
declare const index$1_evalIntakeBridge: typeof evalIntakeBridge;
|
|
2513
2542
|
declare const index$1_harnessLoop: typeof harnessLoop;
|
|
2543
|
+
declare const index$1_harnessProfile: typeof harnessProfile;
|
|
2514
2544
|
declare const index$1_priorityScore: typeof priorityScore;
|
|
2515
2545
|
declare const index$1_strategyKey: typeof strategyKey;
|
|
2516
2546
|
declare const index$1_strategyModel: typeof strategyModel;
|
|
2517
2547
|
declare namespace index$1 {
|
|
2518
|
-
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 };
|
|
2548
|
+
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_HarnessProfileResult as HarnessProfileResult, type index$1_IntakeItem as IntakeItem, type index$1_IntakeSource as IntakeSource, type index$1_Intervention as Intervention, type index$1_PrioritySignals as PrioritySignals, index$1_QUEUE_NAMES as QUEUE_NAMES, 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_harnessProfile as harnessProfile, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2519
2549
|
}
|
|
2520
2550
|
|
|
2521
2551
|
/**
|
|
@@ -2714,4 +2744,4 @@ declare namespace index {
|
|
|
2714
2744
|
*/
|
|
2715
2745
|
declare const version = "0.0.0";
|
|
2716
2746
|
|
|
2717
|
-
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, Node, NodeActions, NodeFn, NodeInput, NodeOptions,
|
|
2747
|
+
export { Actor, AutoCheckpointAdapter, DistillBundle, Extraction, Graph, GraphAutoCheckpointHandle, GraphAutoCheckpointOptions, GraphOptions, GraphProfileOptions, GraphProfileResult, 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 };
|