@graphrefly/graphrefly 0.19.0 → 0.20.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-XUOY3YKN.js → chunk-2L5J6RPM.js} +2 -2
- package/dist/{chunk-JC2SN46B.js → chunk-3N2Y6PCR.js} +3 -3
- package/dist/{chunk-OO5QOAXI.js → chunk-5PSVTDNZ.js} +22 -9
- package/dist/chunk-5PSVTDNZ.js.map +1 -0
- package/dist/{chunk-BER7UYLM.js → chunk-BJAOEU4D.js} +10 -6
- package/dist/{chunk-BER7UYLM.js.map → chunk-BJAOEU4D.js.map} +1 -1
- package/dist/{chunk-UW77D7SP.js → chunk-IAPLC4NR.js} +3 -3
- package/dist/{chunk-IRZAGZUB.js → chunk-OOA2UTXF.js} +26 -2
- package/dist/chunk-OOA2UTXF.js.map +1 -0
- package/dist/{chunk-AHRKWMNI.js → chunk-PGEU5MEH.js} +3 -3
- package/dist/{chunk-YLR5JUJZ.js → chunk-R2LPZIY2.js} +3 -3
- package/dist/{chunk-YXR3WW3Q.js → chunk-XYL3GLB3.js} +3 -3
- package/dist/{chunk-YXR3WW3Q.js.map → chunk-XYL3GLB3.js.map} +1 -1
- package/dist/compat/nestjs/index.cjs +14 -5
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.js +7 -7
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +3 -3
- package/dist/extra/index.cjs +31 -5
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +1 -1
- package/dist/extra/index.d.ts +1 -1
- package/dist/extra/index.js +7 -3
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.js +4 -4
- package/dist/{index-CvKzv0AW.d.ts → index-BHfg_Ez3.d.ts} +1 -1
- package/dist/{index-BBUYZfJ1.d.cts → index-Bc_diYYJ.d.cts} +1 -1
- package/dist/{index-BnkMgNNa.d.ts → index-DuN3bhtm.d.ts} +47 -2
- package/dist/{index-Bjh5C1Tp.d.cts → index-SFzE_KTa.d.cts} +47 -2
- package/dist/index.cjs +153 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -6
- package/dist/index.d.ts +75 -6
- package/dist/index.js +126 -90
- package/dist/index.js.map +1 -1
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-IRZAGZUB.js.map +0 -1
- package/dist/chunk-OO5QOAXI.js.map +0 -1
- /package/dist/{chunk-XUOY3YKN.js.map → chunk-2L5J6RPM.js.map} +0 -0
- /package/dist/{chunk-JC2SN46B.js.map → chunk-3N2Y6PCR.js.map} +0 -0
- /package/dist/{chunk-UW77D7SP.js.map → chunk-IAPLC4NR.js.map} +0 -0
- /package/dist/{chunk-AHRKWMNI.js.map → chunk-PGEU5MEH.js.map} +0 -0
- /package/dist/{chunk-YLR5JUJZ.js.map → chunk-R2LPZIY2.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -4,10 +4,10 @@ import { i as index$b, c as cqrs } from './index-BjtlNirP.cjs';
|
|
|
4
4
|
import { Ref, WatchSource } from 'vue';
|
|
5
5
|
import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions, d as GraphProfileResult, e as GraphProfileOptions } from './graph-KsTe57nI.cjs';
|
|
6
6
|
export { D as DescribeFilter, f as GRAPH_META_SEGMENT, g as GraphActorOptions, h as GraphCheckpointRecord, i as GraphDescribeOptions, j as GraphDescribeOutput, k as GraphDiagramDirection, l as GraphDiagramOptions, m as GraphDiffChange, n as GraphDiffResult, o as GraphDumpOptions, p as GraphFactoryContext, q as GraphNodeFactory, r as GraphObserveAll, s as GraphObserveOne, t as GraphPersistSnapshot, N as NodeProfile, O as ObserveDetail, u as ObserveEvent, v as ObserveOptions, w as ObserveResult, x as ObserveTheme, y as ObserveThemeName, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, B as graphProfile, C as reachable } from './graph-KsTe57nI.cjs';
|
|
7
|
-
import { N as NodeFn } from './index-
|
|
8
|
-
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, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from './index-
|
|
9
|
-
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-
|
|
10
|
-
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
|
|
7
|
+
import { N as NodeFn } from './index-Bc_diYYJ.cjs';
|
|
8
|
+
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, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from './index-Bc_diYYJ.cjs';
|
|
9
|
+
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-SFzE_KTa.cjs';
|
|
10
|
+
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 ReactiveCounterBundle, aE as ReactiveIndexBundle, aF as ReactiveIndexOptions, aG as ReactiveListBundle, aH as ReactiveListOptions, aI as ReactiveLogBundle, aJ as ReactiveLogOptions, 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 firstWhere, cg as flatMap, ch as forEach, ci as fromAny, cj as fromAsyncIter, ck as fromCSV, cl as fromClickHouseWatch, cm as fromCron, cn as fromDrizzle, co as fromEvent, cp as fromFSWatch, cq as fromGitHook, cr as fromHTTP, cs as fromIDBRequest, ct as fromIDBTransaction, cu as fromIter, cv as fromKafka, cw as fromKysely, cx as fromMCP, cy as fromNATS, cz as fromNDJSON, cA as fromOTel, cB as fromPrisma, cC as fromPrometheus, cD as fromPromise, cE as fromPulsar, cF as fromRabbitMQ, cG as fromRedisStream, cH as fromSqlite, cI as fromStatsD, cJ as fromSyslog, cK as fromTimer, cL as fromWebSocket, cM as fromWebhook, cN as globToRegExp, cO as interval, cP as keepalive, cQ as last, cR as linear, cS as logSlice, cT as lru, cU as map, cV as matchesAnyPattern, cW as matchesCron, cX as merge, cY as mergeMap, cZ as nameToSignal, c_ as never, c$ as of, d0 as pairwise, d1 as parseCron, d2 as parsePrometheusText, d3 as parseStatsD, d4 as parseSyslog, d5 as pausable, d6 as pubsub, d7 as race, d8 as rateLimiter, d9 as reactiveCounter, da as reactiveIndex, db as reactiveList, dc as reactiveLog, dd as reactiveMap, de as reduce, df as repeat, dg as replay, dh as rescue, di as resolveBackoffPreset, dj as restoreGraphCheckpoint, dk as restoreGraphCheckpointIndexedDb, dl as retry, dm as sample, dn as saveGraphCheckpoint, dp as saveGraphCheckpointIndexedDb, dq as scan, dr as serializeError, ds as share, dt as shareReplay, du as signalToName, dv as skip, dw as switchMap, dx as take, dy as takeUntil, dz as takeWhile, dA as tap, dB as throttle, dC as throttleTime, dD as throwError, dE as tieredStorage, dF as timeout, dG as toArray, dH as toCSV, dI as toClickHouse, dJ as toFile, dK as toKafka, dL as toLoki, dM as toMongo, dN as toNATS, dO as toPostgres, dP as toPulsar, dQ as toRabbitMQ, dR as toRedisStream, dS as toS3, dT as toSSE, dU as toSqlite, dV as toTempo, dW as toWebSocket, dX as tokenBucket, dY as tokenTracker, dZ as valve, d_ as verifiable, d$ as window, e0 as windowCount, e1 as windowTime, e2 as withBreaker, e3 as withLatestFrom, e4 as withMaxAttempts, e5 as withStatus, e6 as workerBridge, e7 as workerSelf, e8 as zip } from './index-SFzE_KTa.cjs';
|
|
11
11
|
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, s as sizeof } from './index-UudxGnzc.cjs';
|
|
12
12
|
import { M as MeasurementAdapter, i as index$c } from './index-VHA43cGP.cjs';
|
|
13
13
|
export { T as ToObservableOptions, t as toObservable } from './observable-C8Kx_O6k.cjs';
|
|
@@ -2482,6 +2482,29 @@ interface HarnessLoopOptions {
|
|
|
2482
2482
|
* @module
|
|
2483
2483
|
*/
|
|
2484
2484
|
|
|
2485
|
+
/** Options for {@link createIntakeBridge}. */
|
|
2486
|
+
interface IntakeBridgeOptions {
|
|
2487
|
+
/** Name for the effect node (default "intake-bridge"). */
|
|
2488
|
+
name?: string;
|
|
2489
|
+
}
|
|
2490
|
+
/**
|
|
2491
|
+
* Generic source→intake bridge factory.
|
|
2492
|
+
*
|
|
2493
|
+
* Watches a source node for new values, passes each through a user-supplied
|
|
2494
|
+
* `parser` that produces zero or more `IntakeItem`s, and publishes them to
|
|
2495
|
+
* the given intake topic.
|
|
2496
|
+
*
|
|
2497
|
+
* This is the generalized pattern behind {@link evalIntakeBridge}. Use it for
|
|
2498
|
+
* CI results, test failures, Slack messages, monitoring alerts, or any domain
|
|
2499
|
+
* where structured results should flow into a harness loop.
|
|
2500
|
+
*
|
|
2501
|
+
* @param source - Reactive node emitting domain-specific data.
|
|
2502
|
+
* @param intakeTopic - TopicGraph to publish IntakeItem entries to.
|
|
2503
|
+
* @param parser - Converts source data into IntakeItem[]. Return empty array to skip.
|
|
2504
|
+
* @param opts - Optional configuration.
|
|
2505
|
+
* @returns The effect node (for lifecycle management).
|
|
2506
|
+
*/
|
|
2507
|
+
declare function createIntakeBridge<T>(source: Node<T>, intakeTopic: TopicGraph<IntakeItem>, parser: (value: T) => IntakeItem[], opts?: IntakeBridgeOptions): Node<unknown>;
|
|
2485
2508
|
/**
|
|
2486
2509
|
* Minimal eval result shape accepted by the bridge.
|
|
2487
2510
|
*
|
|
@@ -2752,6 +2775,7 @@ type index$1_HarnessLoopOptions = HarnessLoopOptions;
|
|
|
2752
2775
|
type index$1_HarnessProfileResult = HarnessProfileResult;
|
|
2753
2776
|
type index$1_HarnessTraceHandle = HarnessTraceHandle;
|
|
2754
2777
|
type index$1_HarnessTraceOptions = HarnessTraceOptions;
|
|
2778
|
+
type index$1_IntakeBridgeOptions = IntakeBridgeOptions;
|
|
2755
2779
|
type index$1_IntakeItem = IntakeItem;
|
|
2756
2780
|
type index$1_IntakeSource = IntakeSource;
|
|
2757
2781
|
type index$1_Intervention = Intervention;
|
|
@@ -2770,6 +2794,7 @@ type index$1_TraceEvent = TraceEvent;
|
|
|
2770
2794
|
type index$1_TraceEventType = TraceEventType;
|
|
2771
2795
|
type index$1_TriagedItem = TriagedItem;
|
|
2772
2796
|
type index$1_VerifyResult = VerifyResult;
|
|
2797
|
+
declare const index$1_createIntakeBridge: typeof createIntakeBridge;
|
|
2773
2798
|
declare const index$1_defaultErrorClassifier: typeof defaultErrorClassifier;
|
|
2774
2799
|
declare const index$1_evalIntakeBridge: typeof evalIntakeBridge;
|
|
2775
2800
|
declare const index$1_harnessLoop: typeof harnessLoop;
|
|
@@ -2779,7 +2804,7 @@ declare const index$1_priorityScore: typeof priorityScore;
|
|
|
2779
2804
|
declare const index$1_strategyKey: typeof strategyKey;
|
|
2780
2805
|
declare const index$1_strategyModel: typeof strategyModel;
|
|
2781
2806
|
declare namespace index$1 {
|
|
2782
|
-
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_HarnessTraceHandle as HarnessTraceHandle, type index$1_HarnessTraceOptions as HarnessTraceOptions, 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_TraceDetail as TraceDetail, type index$1_TraceEvent as TraceEvent, type index$1_TraceEventType as TraceEventType, 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_harnessTrace as harnessTrace, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2807
|
+
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_HarnessTraceHandle as HarnessTraceHandle, type index$1_HarnessTraceOptions as HarnessTraceOptions, type index$1_IntakeBridgeOptions as IntakeBridgeOptions, 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_TraceDetail as TraceDetail, type index$1_TraceEvent as TraceEvent, type index$1_TraceEventType as TraceEventType, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_createIntakeBridge as createIntakeBridge, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_harnessProfile as harnessProfile, index$1_harnessTrace as harnessTrace, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2783
2808
|
}
|
|
2784
2809
|
|
|
2785
2810
|
/**
|
|
@@ -2937,9 +2962,52 @@ type ScorerOptions = Omit<NodeOptions, "describeKind" | "name" | "meta"> & {
|
|
|
2937
2962
|
* @category patterns
|
|
2938
2963
|
*/
|
|
2939
2964
|
declare function scorer(sources: ReadonlyArray<Node<number>>, weights: ReadonlyArray<Node<number>>, opts?: ScorerOptions): Node<ScoredItem<number[]>>;
|
|
2965
|
+
/** A single effectiveness record for an action×context pair. */
|
|
2966
|
+
type EffectivenessEntry = {
|
|
2967
|
+
readonly key: string;
|
|
2968
|
+
readonly attempts: number;
|
|
2969
|
+
readonly successes: number;
|
|
2970
|
+
readonly successRate: number;
|
|
2971
|
+
};
|
|
2972
|
+
/** Snapshot shape for the effectiveness tracker node. */
|
|
2973
|
+
type EffectivenessSnapshot = ReadonlyMap<string, EffectivenessEntry>;
|
|
2974
|
+
/** Bundle returned by {@link effectivenessTracker}. */
|
|
2975
|
+
interface EffectivenessTrackerBundle {
|
|
2976
|
+
/** Reactive node — current effectiveness map snapshot. */
|
|
2977
|
+
readonly node: Node<EffectivenessSnapshot>;
|
|
2978
|
+
/** Record a completed action (success or failure). */
|
|
2979
|
+
record(key: string, success: boolean): void;
|
|
2980
|
+
/** Look up effectiveness for a specific key. */
|
|
2981
|
+
lookup(key: string): EffectivenessEntry | undefined;
|
|
2982
|
+
/** Tear down internal keepalive subscriptions. */
|
|
2983
|
+
dispose(): void;
|
|
2984
|
+
}
|
|
2985
|
+
/** Options for {@link effectivenessTracker}. */
|
|
2986
|
+
type EffectivenessTrackerOptions = {
|
|
2987
|
+
/** Name for the reactive map (default "effectiveness-entries"). */
|
|
2988
|
+
name?: string;
|
|
2989
|
+
};
|
|
2990
|
+
/**
|
|
2991
|
+
* Generic action×context → success rate tracker.
|
|
2992
|
+
*
|
|
2993
|
+
* Generalized from the harness `strategyModel` pattern. Tracks attempts and
|
|
2994
|
+
* successes per string key, exposes a reactive snapshot node, and provides
|
|
2995
|
+
* `record()` / `lookup()` methods.
|
|
2996
|
+
*
|
|
2997
|
+
* Use cases: A/B testing, routing optimization, cache policy tuning, retry
|
|
2998
|
+
* strategy selection — any domain that tracks effectiveness per action.
|
|
2999
|
+
*
|
|
3000
|
+
* @param opts - Optional configuration.
|
|
3001
|
+
* @returns Bundle with reactive node, record(), lookup(), dispose().
|
|
3002
|
+
*/
|
|
3003
|
+
declare function effectivenessTracker(opts?: EffectivenessTrackerOptions): EffectivenessTrackerBundle;
|
|
2940
3004
|
|
|
2941
3005
|
type reduction_BudgetConstraint<T = unknown> = BudgetConstraint<T>;
|
|
2942
3006
|
type reduction_BudgetGateOptions = BudgetGateOptions;
|
|
3007
|
+
type reduction_EffectivenessEntry = EffectivenessEntry;
|
|
3008
|
+
type reduction_EffectivenessSnapshot = EffectivenessSnapshot;
|
|
3009
|
+
type reduction_EffectivenessTrackerBundle = EffectivenessTrackerBundle;
|
|
3010
|
+
type reduction_EffectivenessTrackerOptions = EffectivenessTrackerOptions;
|
|
2943
3011
|
type reduction_FeedbackOptions = FeedbackOptions;
|
|
2944
3012
|
type reduction_FunnelOptions = FunnelOptions;
|
|
2945
3013
|
type reduction_FunnelStage = FunnelStage;
|
|
@@ -2949,12 +3017,13 @@ type reduction_StepRef = StepRef;
|
|
|
2949
3017
|
type reduction_StratifyOptions = StratifyOptions;
|
|
2950
3018
|
type reduction_StratifyRule<T> = StratifyRule<T>;
|
|
2951
3019
|
declare const reduction_budgetGate: typeof budgetGate;
|
|
3020
|
+
declare const reduction_effectivenessTracker: typeof effectivenessTracker;
|
|
2952
3021
|
declare const reduction_feedback: typeof feedback;
|
|
2953
3022
|
declare const reduction_funnel: typeof funnel;
|
|
2954
3023
|
declare const reduction_scorer: typeof scorer;
|
|
2955
3024
|
declare const reduction_stratify: typeof stratify;
|
|
2956
3025
|
declare namespace reduction {
|
|
2957
|
-
export { type reduction_BudgetConstraint as BudgetConstraint, type reduction_BudgetGateOptions as BudgetGateOptions, type reduction_FeedbackOptions as FeedbackOptions, type reduction_FunnelOptions as FunnelOptions, type reduction_FunnelStage as FunnelStage, type reduction_ScoredItem as ScoredItem, type reduction_ScorerOptions as ScorerOptions, type reduction_StepRef as StepRef, type reduction_StratifyOptions as StratifyOptions, type reduction_StratifyRule as StratifyRule, reduction_budgetGate as budgetGate, reduction_feedback as feedback, reduction_funnel as funnel, reduction_scorer as scorer, reduction_stratify as stratify };
|
|
3026
|
+
export { type reduction_BudgetConstraint as BudgetConstraint, type reduction_BudgetGateOptions as BudgetGateOptions, type reduction_EffectivenessEntry as EffectivenessEntry, type reduction_EffectivenessSnapshot as EffectivenessSnapshot, type reduction_EffectivenessTrackerBundle as EffectivenessTrackerBundle, type reduction_EffectivenessTrackerOptions as EffectivenessTrackerOptions, type reduction_FeedbackOptions as FeedbackOptions, type reduction_FunnelOptions as FunnelOptions, type reduction_FunnelStage as FunnelStage, type reduction_ScoredItem as ScoredItem, type reduction_ScorerOptions as ScorerOptions, type reduction_StepRef as StepRef, type reduction_StratifyOptions as StratifyOptions, type reduction_StratifyRule as StratifyRule, reduction_budgetGate as budgetGate, reduction_effectivenessTracker as effectivenessTracker, reduction_feedback as feedback, reduction_funnel as funnel, reduction_scorer as scorer, reduction_stratify as stratify };
|
|
2958
3027
|
}
|
|
2959
3028
|
|
|
2960
3029
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { i as index$b, c as cqrs } from './index-CgSiUouz.js';
|
|
|
4
4
|
import { Ref, WatchSource } from 'vue';
|
|
5
5
|
import { G as Graph, a as GraphOptions, b as GraphAutoCheckpointHandle, A as AutoCheckpointAdapter, c as GraphAutoCheckpointOptions, d as GraphProfileResult, e as GraphProfileOptions } from './graph-mILUUqW8.js';
|
|
6
6
|
export { D as DescribeFilter, f as GRAPH_META_SEGMENT, g as GraphActorOptions, h as GraphCheckpointRecord, i as GraphDescribeOptions, j as GraphDescribeOutput, k as GraphDiagramDirection, l as GraphDiagramOptions, m as GraphDiffChange, n as GraphDiffResult, o as GraphDumpOptions, p as GraphFactoryContext, q as GraphNodeFactory, r as GraphObserveAll, s as GraphObserveOne, t as GraphPersistSnapshot, N as NodeProfile, O as ObserveDetail, u as ObserveEvent, v as ObserveOptions, w as ObserveResult, x as ObserveTheme, y as ObserveThemeName, R as ReachableDirection, z as ReachableOptions, T as TraceEntry, B as graphProfile, C as reachable } from './graph-mILUUqW8.js';
|
|
7
|
-
import { N as NodeFn } from './index-
|
|
8
|
-
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, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from './index-
|
|
9
|
-
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-
|
|
10
|
-
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
|
|
7
|
+
import { N as NodeFn } from './index-BHfg_Ez3.js';
|
|
8
|
+
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, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from './index-BHfg_Ez3.js';
|
|
9
|
+
import { N as NodeInput, D as DistillBundle, E as Extraction } from './index-DuN3bhtm.js';
|
|
10
|
+
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 ReactiveCounterBundle, aE as ReactiveIndexBundle, aF as ReactiveIndexOptions, aG as ReactiveListBundle, aH as ReactiveListOptions, aI as ReactiveLogBundle, aJ as ReactiveLogOptions, 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 firstWhere, cg as flatMap, ch as forEach, ci as fromAny, cj as fromAsyncIter, ck as fromCSV, cl as fromClickHouseWatch, cm as fromCron, cn as fromDrizzle, co as fromEvent, cp as fromFSWatch, cq as fromGitHook, cr as fromHTTP, cs as fromIDBRequest, ct as fromIDBTransaction, cu as fromIter, cv as fromKafka, cw as fromKysely, cx as fromMCP, cy as fromNATS, cz as fromNDJSON, cA as fromOTel, cB as fromPrisma, cC as fromPrometheus, cD as fromPromise, cE as fromPulsar, cF as fromRabbitMQ, cG as fromRedisStream, cH as fromSqlite, cI as fromStatsD, cJ as fromSyslog, cK as fromTimer, cL as fromWebSocket, cM as fromWebhook, cN as globToRegExp, cO as interval, cP as keepalive, cQ as last, cR as linear, cS as logSlice, cT as lru, cU as map, cV as matchesAnyPattern, cW as matchesCron, cX as merge, cY as mergeMap, cZ as nameToSignal, c_ as never, c$ as of, d0 as pairwise, d1 as parseCron, d2 as parsePrometheusText, d3 as parseStatsD, d4 as parseSyslog, d5 as pausable, d6 as pubsub, d7 as race, d8 as rateLimiter, d9 as reactiveCounter, da as reactiveIndex, db as reactiveList, dc as reactiveLog, dd as reactiveMap, de as reduce, df as repeat, dg as replay, dh as rescue, di as resolveBackoffPreset, dj as restoreGraphCheckpoint, dk as restoreGraphCheckpointIndexedDb, dl as retry, dm as sample, dn as saveGraphCheckpoint, dp as saveGraphCheckpointIndexedDb, dq as scan, dr as serializeError, ds as share, dt as shareReplay, du as signalToName, dv as skip, dw as switchMap, dx as take, dy as takeUntil, dz as takeWhile, dA as tap, dB as throttle, dC as throttleTime, dD as throwError, dE as tieredStorage, dF as timeout, dG as toArray, dH as toCSV, dI as toClickHouse, dJ as toFile, dK as toKafka, dL as toLoki, dM as toMongo, dN as toNATS, dO as toPostgres, dP as toPulsar, dQ as toRabbitMQ, dR as toRedisStream, dS as toS3, dT as toSSE, dU as toSqlite, dV as toTempo, dW as toWebSocket, dX as tokenBucket, dY as tokenTracker, dZ as valve, d_ as verifiable, d$ as window, e0 as windowCount, e1 as windowTime, e2 as withBreaker, e3 as withLatestFrom, e4 as withMaxAttempts, e5 as withStatus, e6 as workerBridge, e7 as workerSelf, e8 as zip } from './index-DuN3bhtm.js';
|
|
11
11
|
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, s as sizeof } from './index-B2SvPEbc.js';
|
|
12
12
|
import { M as MeasurementAdapter, i as index$c } from './index-8a605sg9.js';
|
|
13
13
|
export { T as ToObservableOptions, t as toObservable } from './observable-DcBwQY7t.js';
|
|
@@ -2482,6 +2482,29 @@ interface HarnessLoopOptions {
|
|
|
2482
2482
|
* @module
|
|
2483
2483
|
*/
|
|
2484
2484
|
|
|
2485
|
+
/** Options for {@link createIntakeBridge}. */
|
|
2486
|
+
interface IntakeBridgeOptions {
|
|
2487
|
+
/** Name for the effect node (default "intake-bridge"). */
|
|
2488
|
+
name?: string;
|
|
2489
|
+
}
|
|
2490
|
+
/**
|
|
2491
|
+
* Generic source→intake bridge factory.
|
|
2492
|
+
*
|
|
2493
|
+
* Watches a source node for new values, passes each through a user-supplied
|
|
2494
|
+
* `parser` that produces zero or more `IntakeItem`s, and publishes them to
|
|
2495
|
+
* the given intake topic.
|
|
2496
|
+
*
|
|
2497
|
+
* This is the generalized pattern behind {@link evalIntakeBridge}. Use it for
|
|
2498
|
+
* CI results, test failures, Slack messages, monitoring alerts, or any domain
|
|
2499
|
+
* where structured results should flow into a harness loop.
|
|
2500
|
+
*
|
|
2501
|
+
* @param source - Reactive node emitting domain-specific data.
|
|
2502
|
+
* @param intakeTopic - TopicGraph to publish IntakeItem entries to.
|
|
2503
|
+
* @param parser - Converts source data into IntakeItem[]. Return empty array to skip.
|
|
2504
|
+
* @param opts - Optional configuration.
|
|
2505
|
+
* @returns The effect node (for lifecycle management).
|
|
2506
|
+
*/
|
|
2507
|
+
declare function createIntakeBridge<T>(source: Node<T>, intakeTopic: TopicGraph<IntakeItem>, parser: (value: T) => IntakeItem[], opts?: IntakeBridgeOptions): Node<unknown>;
|
|
2485
2508
|
/**
|
|
2486
2509
|
* Minimal eval result shape accepted by the bridge.
|
|
2487
2510
|
*
|
|
@@ -2752,6 +2775,7 @@ type index$1_HarnessLoopOptions = HarnessLoopOptions;
|
|
|
2752
2775
|
type index$1_HarnessProfileResult = HarnessProfileResult;
|
|
2753
2776
|
type index$1_HarnessTraceHandle = HarnessTraceHandle;
|
|
2754
2777
|
type index$1_HarnessTraceOptions = HarnessTraceOptions;
|
|
2778
|
+
type index$1_IntakeBridgeOptions = IntakeBridgeOptions;
|
|
2755
2779
|
type index$1_IntakeItem = IntakeItem;
|
|
2756
2780
|
type index$1_IntakeSource = IntakeSource;
|
|
2757
2781
|
type index$1_Intervention = Intervention;
|
|
@@ -2770,6 +2794,7 @@ type index$1_TraceEvent = TraceEvent;
|
|
|
2770
2794
|
type index$1_TraceEventType = TraceEventType;
|
|
2771
2795
|
type index$1_TriagedItem = TriagedItem;
|
|
2772
2796
|
type index$1_VerifyResult = VerifyResult;
|
|
2797
|
+
declare const index$1_createIntakeBridge: typeof createIntakeBridge;
|
|
2773
2798
|
declare const index$1_defaultErrorClassifier: typeof defaultErrorClassifier;
|
|
2774
2799
|
declare const index$1_evalIntakeBridge: typeof evalIntakeBridge;
|
|
2775
2800
|
declare const index$1_harnessLoop: typeof harnessLoop;
|
|
@@ -2779,7 +2804,7 @@ declare const index$1_priorityScore: typeof priorityScore;
|
|
|
2779
2804
|
declare const index$1_strategyKey: typeof strategyKey;
|
|
2780
2805
|
declare const index$1_strategyModel: typeof strategyModel;
|
|
2781
2806
|
declare namespace index$1 {
|
|
2782
|
-
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_HarnessTraceHandle as HarnessTraceHandle, type index$1_HarnessTraceOptions as HarnessTraceOptions, 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_TraceDetail as TraceDetail, type index$1_TraceEvent as TraceEvent, type index$1_TraceEventType as TraceEventType, 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_harnessTrace as harnessTrace, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2807
|
+
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_HarnessTraceHandle as HarnessTraceHandle, type index$1_HarnessTraceOptions as HarnessTraceOptions, type index$1_IntakeBridgeOptions as IntakeBridgeOptions, 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_TraceDetail as TraceDetail, type index$1_TraceEvent as TraceEvent, type index$1_TraceEventType as TraceEventType, type index$1_TriagedItem as TriagedItem, type index$1_VerifyResult as VerifyResult, index$1_createIntakeBridge as createIntakeBridge, index$1_defaultErrorClassifier as defaultErrorClassifier, index$1_evalIntakeBridge as evalIntakeBridge, index$1_harnessLoop as harnessLoop, index$1_harnessProfile as harnessProfile, index$1_harnessTrace as harnessTrace, index$1_priorityScore as priorityScore, index$1_strategyKey as strategyKey, index$1_strategyModel as strategyModel };
|
|
2783
2808
|
}
|
|
2784
2809
|
|
|
2785
2810
|
/**
|
|
@@ -2937,9 +2962,52 @@ type ScorerOptions = Omit<NodeOptions, "describeKind" | "name" | "meta"> & {
|
|
|
2937
2962
|
* @category patterns
|
|
2938
2963
|
*/
|
|
2939
2964
|
declare function scorer(sources: ReadonlyArray<Node<number>>, weights: ReadonlyArray<Node<number>>, opts?: ScorerOptions): Node<ScoredItem<number[]>>;
|
|
2965
|
+
/** A single effectiveness record for an action×context pair. */
|
|
2966
|
+
type EffectivenessEntry = {
|
|
2967
|
+
readonly key: string;
|
|
2968
|
+
readonly attempts: number;
|
|
2969
|
+
readonly successes: number;
|
|
2970
|
+
readonly successRate: number;
|
|
2971
|
+
};
|
|
2972
|
+
/** Snapshot shape for the effectiveness tracker node. */
|
|
2973
|
+
type EffectivenessSnapshot = ReadonlyMap<string, EffectivenessEntry>;
|
|
2974
|
+
/** Bundle returned by {@link effectivenessTracker}. */
|
|
2975
|
+
interface EffectivenessTrackerBundle {
|
|
2976
|
+
/** Reactive node — current effectiveness map snapshot. */
|
|
2977
|
+
readonly node: Node<EffectivenessSnapshot>;
|
|
2978
|
+
/** Record a completed action (success or failure). */
|
|
2979
|
+
record(key: string, success: boolean): void;
|
|
2980
|
+
/** Look up effectiveness for a specific key. */
|
|
2981
|
+
lookup(key: string): EffectivenessEntry | undefined;
|
|
2982
|
+
/** Tear down internal keepalive subscriptions. */
|
|
2983
|
+
dispose(): void;
|
|
2984
|
+
}
|
|
2985
|
+
/** Options for {@link effectivenessTracker}. */
|
|
2986
|
+
type EffectivenessTrackerOptions = {
|
|
2987
|
+
/** Name for the reactive map (default "effectiveness-entries"). */
|
|
2988
|
+
name?: string;
|
|
2989
|
+
};
|
|
2990
|
+
/**
|
|
2991
|
+
* Generic action×context → success rate tracker.
|
|
2992
|
+
*
|
|
2993
|
+
* Generalized from the harness `strategyModel` pattern. Tracks attempts and
|
|
2994
|
+
* successes per string key, exposes a reactive snapshot node, and provides
|
|
2995
|
+
* `record()` / `lookup()` methods.
|
|
2996
|
+
*
|
|
2997
|
+
* Use cases: A/B testing, routing optimization, cache policy tuning, retry
|
|
2998
|
+
* strategy selection — any domain that tracks effectiveness per action.
|
|
2999
|
+
*
|
|
3000
|
+
* @param opts - Optional configuration.
|
|
3001
|
+
* @returns Bundle with reactive node, record(), lookup(), dispose().
|
|
3002
|
+
*/
|
|
3003
|
+
declare function effectivenessTracker(opts?: EffectivenessTrackerOptions): EffectivenessTrackerBundle;
|
|
2940
3004
|
|
|
2941
3005
|
type reduction_BudgetConstraint<T = unknown> = BudgetConstraint<T>;
|
|
2942
3006
|
type reduction_BudgetGateOptions = BudgetGateOptions;
|
|
3007
|
+
type reduction_EffectivenessEntry = EffectivenessEntry;
|
|
3008
|
+
type reduction_EffectivenessSnapshot = EffectivenessSnapshot;
|
|
3009
|
+
type reduction_EffectivenessTrackerBundle = EffectivenessTrackerBundle;
|
|
3010
|
+
type reduction_EffectivenessTrackerOptions = EffectivenessTrackerOptions;
|
|
2943
3011
|
type reduction_FeedbackOptions = FeedbackOptions;
|
|
2944
3012
|
type reduction_FunnelOptions = FunnelOptions;
|
|
2945
3013
|
type reduction_FunnelStage = FunnelStage;
|
|
@@ -2949,12 +3017,13 @@ type reduction_StepRef = StepRef;
|
|
|
2949
3017
|
type reduction_StratifyOptions = StratifyOptions;
|
|
2950
3018
|
type reduction_StratifyRule<T> = StratifyRule<T>;
|
|
2951
3019
|
declare const reduction_budgetGate: typeof budgetGate;
|
|
3020
|
+
declare const reduction_effectivenessTracker: typeof effectivenessTracker;
|
|
2952
3021
|
declare const reduction_feedback: typeof feedback;
|
|
2953
3022
|
declare const reduction_funnel: typeof funnel;
|
|
2954
3023
|
declare const reduction_scorer: typeof scorer;
|
|
2955
3024
|
declare const reduction_stratify: typeof stratify;
|
|
2956
3025
|
declare namespace reduction {
|
|
2957
|
-
export { type reduction_BudgetConstraint as BudgetConstraint, type reduction_BudgetGateOptions as BudgetGateOptions, type reduction_FeedbackOptions as FeedbackOptions, type reduction_FunnelOptions as FunnelOptions, type reduction_FunnelStage as FunnelStage, type reduction_ScoredItem as ScoredItem, type reduction_ScorerOptions as ScorerOptions, type reduction_StepRef as StepRef, type reduction_StratifyOptions as StratifyOptions, type reduction_StratifyRule as StratifyRule, reduction_budgetGate as budgetGate, reduction_feedback as feedback, reduction_funnel as funnel, reduction_scorer as scorer, reduction_stratify as stratify };
|
|
3026
|
+
export { type reduction_BudgetConstraint as BudgetConstraint, type reduction_BudgetGateOptions as BudgetGateOptions, type reduction_EffectivenessEntry as EffectivenessEntry, type reduction_EffectivenessSnapshot as EffectivenessSnapshot, type reduction_EffectivenessTrackerBundle as EffectivenessTrackerBundle, type reduction_EffectivenessTrackerOptions as EffectivenessTrackerOptions, type reduction_FeedbackOptions as FeedbackOptions, type reduction_FunnelOptions as FunnelOptions, type reduction_FunnelStage as FunnelStage, type reduction_ScoredItem as ScoredItem, type reduction_ScorerOptions as ScorerOptions, type reduction_StepRef as StepRef, type reduction_StratifyOptions as StratifyOptions, type reduction_StratifyRule as StratifyRule, reduction_budgetGate as budgetGate, reduction_effectivenessTracker as effectivenessTracker, reduction_feedback as feedback, reduction_funnel as funnel, reduction_scorer as scorer, reduction_stratify as stratify };
|
|
2958
3027
|
}
|
|
2959
3028
|
|
|
2960
3029
|
/**
|