brass-runtime 1.17.0 → 1.18.1
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/README.md +36 -3
- package/dist/agent/cli/main.cjs +31 -32
- package/dist/agent/cli/main.js +3 -4
- package/dist/agent/cli/main.mjs +3 -4
- package/dist/agent/index.cjs +4 -5
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +3 -4
- package/dist/agent/index.mjs +3 -4
- package/dist/{chunk-7X3K5RMS.js → chunk-22HZQG5F.js} +9 -11
- package/dist/{chunk-GLE2WY7Z.cjs → chunk-2JHJ4YHS.cjs} +417 -124
- package/dist/{chunk-Q2I37RP3.cjs → chunk-2OW6IFY2.cjs} +44 -323
- package/dist/{chunk-7ZPEZ57L.cjs → chunk-5LC7V2OZ.cjs} +18 -20
- package/dist/{chunk-AGR5B2BC.cjs → chunk-5RZ7YITF.cjs} +564 -12
- package/dist/{chunk-DNFJLJMW.mjs → chunk-6MLAZPBL.mjs} +48 -24
- package/dist/{chunk-EJ6BPYVR.mjs → chunk-6V2AWT4R.mjs} +1 -1
- package/dist/{chunk-3AYM6WPJ.js → chunk-7DU7IQHK.js} +20 -299
- package/dist/{chunk-SK7UZRNI.mjs → chunk-7GBJYOX7.mjs} +528 -23
- package/dist/chunk-7TKI527D.cjs +123 -0
- package/dist/{chunk-52OB2ROS.js → chunk-7VQLEN37.js} +2 -4
- package/dist/{chunk-KH4SYAOS.mjs → chunk-B5FKOLTB.mjs} +20 -299
- package/dist/{chunk-FHQGHPMO.mjs → chunk-BC6Q6BCO.mjs} +2 -4
- package/dist/{chunk-4P2HHGAX.mjs → chunk-COOW7BJX.mjs} +32 -11
- package/dist/{chunk-2HQTDLHF.mjs → chunk-EEN5OTCR.mjs} +555 -3
- package/dist/{chunk-KZJQ723N.cjs → chunk-EICAJDNX.cjs} +13 -15
- package/dist/chunk-ELIECDYN.cjs +33 -0
- package/dist/{chunk-GYM3LLGS.mjs → chunk-H626ZTDZ.mjs} +399 -106
- package/dist/{chunk-C3MDXTRZ.js → chunk-HCJ4S3YB.js} +48 -24
- package/dist/{chunk-7JIJOVCT.js → chunk-IPSMXUWA.js} +2 -4
- package/dist/{chunk-4ROBZFL6.cjs → chunk-J6DUHITE.cjs} +6 -8
- package/dist/{chunk-6RY2FFN4.mjs → chunk-JWIEMBE6.mjs} +9 -11
- package/dist/{chunk-PD4EJTQC.cjs → chunk-KNTJ7FQB.cjs} +5 -5
- package/dist/chunk-KTGDLBLD.mjs +123 -0
- package/dist/chunk-LSYQ3C2M.js +33 -0
- package/dist/{chunk-RKGKFN2A.js → chunk-OW5VHAOE.js} +1 -1
- package/dist/{chunk-EOC4UHBS.mjs → chunk-RBHNOKH4.mjs} +2 -2
- package/dist/{chunk-6IXXWIUM.js → chunk-S4HXADU4.js} +555 -3
- package/dist/{chunk-FH2X7BVP.js → chunk-TTSPIU3U.js} +399 -106
- package/dist/{chunk-5QC7LRZ3.js → chunk-UAKAF32U.js} +2 -2
- package/dist/{chunk-CZIVE6NT.cjs → chunk-UUMKZJRJ.cjs} +48 -24
- package/dist/{chunk-MBEJI5HF.mjs → chunk-WCBNXPN6.mjs} +2 -4
- package/dist/{chunk-52PPNNI4.cjs → chunk-WGE2FEZE.cjs} +2 -2
- package/dist/{chunk-WBGRHGBP.cjs → chunk-WI7GZF3B.cjs} +114 -93
- package/dist/chunk-WUDHOZIH.js +6234 -0
- package/dist/{chunk-F6XWZQY4.cjs → chunk-WVSZOPGQ.cjs} +583 -78
- package/dist/chunk-XPIMJQYS.cjs +6234 -0
- package/dist/{chunk-VWIPB6I5.js → chunk-YGR2IN4R.js} +528 -23
- package/dist/chunk-YM3EDNYD.js +123 -0
- package/dist/chunk-YWLLH27R.mjs +33 -0
- package/dist/{chunk-BKK77SBA.js → chunk-YZ5LQ32F.js} +32 -11
- package/dist/chunk-Z3ZZMQUZ.mjs +6234 -0
- package/dist/core/index.cjs +37 -9
- package/dist/core/index.d.ts +19 -152
- package/dist/core/index.js +86 -58
- package/dist/core/index.mjs +86 -58
- package/dist/defaultClient-Cid0JoUR.d.ts +1648 -0
- package/dist/{effect-DIUHZ9IN.d.ts → effect-DnGUuhw6.d.ts} +22 -1
- package/dist/http/index.cjs +206 -59
- package/dist/http/index.d.ts +55 -819
- package/dist/http/index.js +220 -73
- package/dist/http/index.mjs +220 -73
- package/dist/http/testing.cjs +31 -10
- package/dist/http/testing.d.ts +16 -5
- package/dist/http/testing.js +29 -8
- package/dist/http/testing.mjs +29 -8
- package/dist/index.cjs +116 -88
- package/dist/index.d.ts +9 -8
- package/dist/index.js +87 -59
- package/dist/index.mjs +87 -59
- package/dist/{schedule-CK3Ml_7p.d.ts → layer-D2LFcBVx.d.ts} +176 -2
- package/dist/observability/index.cjs +20 -7
- package/dist/observability/index.d.ts +32 -8
- package/dist/observability/index.js +19 -6
- package/dist/observability/index.mjs +19 -6
- package/dist/perf/cli.cjs +26 -28
- package/dist/perf/cli.js +11 -13
- package/dist/perf/cli.mjs +11 -13
- package/dist/perf/index.cjs +13 -15
- package/dist/perf/index.js +11 -13
- package/dist/perf/index.mjs +11 -13
- package/dist/schema/index.cjs +2 -2
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.mjs +1 -1
- package/dist/{server-D6JZ15_e.d.ts → server-Bf1zNYZk.d.ts} +5 -5
- package/dist/{stream-B4oK9JFP.d.ts → stream-I7bkvF7a.d.ts} +1 -1
- package/dist/{tracer-Hwt1cl7h.d.ts → tracer-DF83nLn6.d.ts} +2 -2
- package/dist/{tracing-DqbTKGcf.d.ts → tracing-CWV4gT0u.d.ts} +1 -1
- package/docs/README.md +2 -0
- package/docs/ai/PUBLIC_API.md +28 -7
- package/docs/articles/brass-runtime-http-observability.md +467 -0
- package/docs/frameworks/angular.md +51 -0
- package/docs/frameworks/express.md +58 -0
- package/docs/frameworks/fastify.md +49 -0
- package/docs/frameworks/nestjs.md +53 -0
- package/docs/frameworks/nextjs.md +55 -0
- package/docs/frameworks/react.md +44 -0
- package/docs/frameworks/vanilla.md +56 -0
- package/docs/guides/layers.md +130 -0
- package/docs/http-recipes.md +31 -1
- package/docs/http.md +50 -1
- package/docs/observability.md +132 -0
- package/docs/performance-profiler.md +6 -2
- package/docs/recipes/layers.md +46 -2
- package/docs/recipes/testing.md +25 -0
- package/package.json +6 -2
- package/dist/chunk-3LOYJFRR.cjs +0 -300
- package/dist/chunk-3Y2RIUMM.js +0 -300
- package/dist/chunk-5EC274J5.cjs +0 -2874
- package/dist/chunk-5VRJNBLZ.mjs +0 -2874
- package/dist/chunk-62AZW6UT.cjs +0 -313
- package/dist/chunk-74ZTY6CP.js +0 -2871
- package/dist/chunk-7CMJS3QE.mjs +0 -2871
- package/dist/chunk-A2OM6NEH.mjs +0 -194
- package/dist/chunk-B33ICAKP.js +0 -313
- package/dist/chunk-JF5WGYJJ.cjs +0 -194
- package/dist/chunk-KN32XNTH.mjs +0 -313
- package/dist/chunk-KQLYONSE.cjs +0 -2871
- package/dist/chunk-L2SYFEBS.js +0 -194
- package/dist/chunk-MIIYDLGM.js +0 -2874
- package/dist/chunk-PWC3RBQE.mjs +0 -300
- package/dist/client-CZHU674n.d.ts +0 -820
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { F as FiberEngine, W as WasmEngineRuntime, A as Async, i as RuntimeFiber, j as FiberEngineStats, k as Fiber, l as FiberId, m as FiberStatus, E as Exit,
|
|
2
|
-
export { u as AbortablePromiseFinish, v as AbortablePromiseLabelStats, w as AbortablePromiseOptions, x as AbortablePromiseOutcome, y as AbortablePromiseStats, z as
|
|
3
|
-
export {
|
|
4
|
-
export { M as ManagedResource, R as Resource, R as ResourceDescriptor, S as Span, a as SpanContext, b as SpanEvent, c as SpanStatus, T as Tracer, d as TracerConfig, e as bracket, f as ensuring, m as makeResource, g as makeTracer, h as managed, i as managedAll, r as resource, j as resourceAll, k as resourceFromManaged, l as resourceSucceed, u as useManaged, n as useResource } from './tracing-
|
|
5
|
-
export {
|
|
6
|
-
export { B as BrassEnv, C as Counter, E as EventBus, f as EventBusOptions, g as EventHandler, G as Gauge, H as Histogram, h as HistogramBuckets, I as InMemoryTracer, e as InMemoryTracerOptions, i as InMemoryTracerStats, a as MetricExemplar, b as MetricSnapshot, j as MetricType, k as MetricValue, M as MetricsRegistry, R as RuntimeSpan, l as RuntimeSpanEvent, d as RuntimeTraceIdGenerator, m as defaultTracer, n as makeMetrics, r as runtimeHooksToEventHandler } from './tracer-
|
|
7
|
-
import { Z as ZStream } from './stream-
|
|
8
|
-
export { C as Concat, E as Emit, a as Empty, F as Flatten, b as FromArray, c as FromPull, M as Managed, d as Merge, N as Normalize, R as ReadableStreamOptions, S as Scoped, e as assertNever, f as collectStream, g as concatStream, h as emitStream, i as emptyStream, j as flattenStream, k as foreachStream, l as fromArray, m as fromPull, n as managedStream, o as mapStream, p as merge, q as mergeStream, r as rangeStream, s as streamFromReadableStream, u as uncons, t as unwrapScoped, w as widenOpt, z as zip } from './stream-
|
|
1
|
+
import { F as FiberEngine, W as WasmEngineRuntime, A as Async, i as RuntimeFiber, j as FiberEngineStats, k as Fiber, l as FiberId, m as FiberStatus, E as Exit, d as RuntimeEvent, n as WasmBridge, o as OpcodeProgram, p as FiberId$1, q as EngineEvent, r as RefId, N as NodeId, s as OpcodeNode, t as EngineStats, O as Option, b as Runtime, S as Scope, c as RingBufferOptions } from './effect-DnGUuhw6.js';
|
|
2
|
+
export { u as AbortablePromiseFinish, v as AbortablePromiseLabelStats, w as AbortablePromiseOptions, x as AbortablePromiseOutcome, y as AbortablePromiseStats, z as AbortablePromiseTimerWheel, C as AsyncRegisterRef, D as AsyncWithPromise, G as BoundedRingBuffer, H as CancelToken, I as Canceler, K as Cause, L as CausePrettyOptions, M as ContextNode, P as CustomHostAction, Q as DbHostAction, U as DecodeRef, V as DefaultHostExecutor, X as EngineKind, Y as EngineSelection, _ as EngineSelectionMode, $ as FiberContext, a0 as FiberEngineKind, a1 as FiberInfo, a2 as FiberReadyQueue, a3 as FiberReadyQueueOptions, a4 as FiberReadyQueueStats, a5 as FiberRunState, a6 as FlatMapRef, a7 as FoldFailureRef, a8 as FoldSuccessRef, a9 as HostAction, aa as HostActionKind, ab as HostActionResult, ac as HostExecutionContext, ad as HostExecutor, ae as HostRegistry, af as HostRegistryStats, ag as HttpHostAction, ah as Interrupted, ai as InterruptibilityMode, J as JSONValue, aj as Joiner, ak as LaneStatsData, al as None, am as NoopHooks, an as ProgramBuilder, ao as ProgramPatch, ap as PushStatus, aq as QueueHostAction, ar as ReadyQueueScheduleKind, as as RestoreInterruptibility, at as RingBuffer, au as RingBufferEngine, av as RingBufferStatsData, aw as RuntimeCapabilities, e as RuntimeEmitContext, ax as RuntimeEngineMode, f as RuntimeEventRecord, R as RuntimeHooks, a as RuntimeOptions, h as RuntimeRegistry, g as RuntimeSpanLink, ay as ScheduleResult, az as Scheduler, aA as SchedulerEngine, aB as SchedulerLaneMode, aC as SchedulerOptions, aD as SchedulerStats, aE as SchedulerStatsData, aF as ScopeId, aG as ScopeInfo, aH as Some, aI as SyncRef, aJ as Task, T as TraceContext, aK as WasmFiberEngine, aL as WasmFiberEngineOptions, Z as ZIO, aM as abortablePromiseStats, aN as acquireRelease, aO as async, aP as asyncCatchAll, aQ as asyncFail, aR as asyncFlatMap, aS as asyncFold, aT as asyncInterruptible, aU as asyncMap, aV as asyncMapError, aW as asyncSucceed, aX as asyncSync, aY as asyncTotal, aZ as catchAll, a_ as ctxExtend, a$ as ctxToObject, b0 as emptyContext, b1 as end, b2 as engineStats, b3 as fail, b4 as flatMap, b5 as fork, b6 as formatCause, b7 as fromPromiseAbortable, b8 as getBenchmarkBudget, b9 as getCurrentFiber, ba as globalScheduler, bb as inferCallerLaneFromStack, bc as interruptible, bd as isCause, be as laneTag, bf as linkAbortController, bg as makeBoundedRingBuffer, bh as makeCancelToken, bi as makeFiberReadyQueue, bj as makeRuntimeEventRecord, bk as map, bl as mapAsync, bm as mapError, bn as mapTryAsync, bo as none, bp as orElseOptional, bq as prettyCause, br as recordAbortablePromiseFinish, bs as recordAbortablePromiseStart, bt as resetAbortablePromiseStats, bu as runtimeCapabilities, bv as runtimeEventRecordContext, bw as runtimeForCaller, bx as sanitizeLaneKey, by as selectedEngineStats, bz as setAbortablePromisePerLabelTracking, bA as setBenchmarkBudget, bB as some, bC as succeed, bD as sync, bE as toPromise, bF as toPromiseByCaller, bG as uninterruptible, bH as uninterruptibleMask, bI as unit, bJ as unsafeGetCurrentRuntime, bK as unsafeRunAsync, bL as unsafeRunFoldWithEnv, bM as withAsyncPromise, bN as withCurrentFiber, bO as withScope, bP as withScopeAsync } from './effect-DnGUuhw6.js';
|
|
3
|
+
export { ConfigLayerOptions, ConfigLayerSource, EffectEnvironment, EffectFailure, EffectSuccess, FiberRef, LogLevel, MakeRuntimeOptions, Ref, RetryPolicy, RetryState, RuntimeLayerEnv, RuntimeLayerOptions, RuntimeRecorder, RuntimeRecorderExplainOptions, RuntimeRecorderOptions, RuntimeRecorderStats, RuntimeService, Semaphore, SemaphoreStats, ShutdownConfig, ShutdownStats, SupervisedChildSpec, SupervisedChildStatus, SupervisedFiber, Supervisor, SupervisorConfig, SupervisorEscalation, SupervisorEvent, SupervisorRestartContext, SupervisorRestartMode, SupervisorRestartPolicy, SupervisorStrategy, TaggedError, TestClock, TestClockTimerSnapshot, TestRuntime, TestRuntimeOptions, TestScheduledTask, TestScheduler, TimeoutError, WorkerPool, WorkerPoolConfig, WorkerPoolError, WorkerPoolStats, assertCompletesWithin, assertFails, assertFailsWith, assertSucceeds, catchTag, catchTags, consoleJsonLogger, defineConfigLayer, delayedEffect, derivedRef, dumpAllFibers, fiberRefSnapshot, flakyEffect, getFiberRef, gracefulShutdown, joinSupervised, locallyFiberRef, locallyFiberRefWith, makeConfigLayer, makeFiberRef, makeRef, makeRuntime, makeRuntimeLayer, makeRuntimeRecorder, makeSemaphore, makeSupervisor, makeTestRuntime, makeWorkerPool, mapErrorTyped, modifyFiberRef, neverEffect, orElse, registerShutdownHooks, retry, retryN, retryWithBackoff, runEffect, runExit, runPromise, setFiberRef, sleep, supervise, tagError, timeout, unsafeGetFiberRef, unsafeSetFiberRef, updateFiberRef } from './core/index.js';
|
|
4
|
+
export { M as ManagedResource, R as Resource, R as ResourceDescriptor, S as Span, a as SpanContext, b as SpanEvent, c as SpanStatus, T as Tracer, d as TracerConfig, e as bracket, f as ensuring, m as makeResource, g as makeTracer, h as managed, i as managedAll, r as resource, j as resourceAll, k as resourceFromManaged, l as resourceSucceed, u as useManaged, n as useResource } from './tracing-CWV4gT0u.js';
|
|
5
|
+
export { B as BuiltLayer, b as CircuitBreaker, c as CircuitBreakerConfig, d as CircuitBreakerError, e as CircuitBreakerState, C as CircuitBreakerStats, L as Layer, a as LayerContext, f as LayerErrorOf, g as LayerInputOf, h as LayerOutputOf, i as LayerScope, M as MissingLayerServiceError, R as RuntimeClock, j as RuntimeClockEnv, k as RuntimeTimerId, l as Schedule, m as ScheduleDecision, n as ScheduleDriver, o as ScheduleDriverDecision, p as ScheduleDriverOptions, q as ScheduleDriverSnapshot, r as ScheduleObserver, s as ScheduleObserverEvent, t as ScheduleStepContext, S as ServiceTag, u as ServiceTagMap, v as ServicesOf, T as TestLayerProvider, w as andThenSchedule, x as buildLayer, y as composeAll, z as composeLayer, A as contramapSchedule, D as defineLayer, E as defineService, F as elapsed, G as exponential, H as fibonacci, I as fixed, J as forever, K as formatLayerError, N as getService, O as getServices, P as intersect, Q as jitter, U as jittered, V as jitteredSchedule, W as layer, X as layerEffect, Y as layerFail, Z as layerFrom, _ as layerFromContext, $ as layerSucceed, a0 as layerValue, a1 as linear, a2 as liveClock, a3 as makeCircuitBreaker, a4 as makeLayerScope, a5 as makeScheduleDriver, a6 as makeServiceTag, a7 as makeTestLayer, a8 as makeTestLayers, a9 as mapLayer, aa as mapSchedule, ab as maxDelay, ac as maxElapsed, ad as mergeAll, ae as mergeLayer, af as namedSchedule, ag as never, ah as once, ai as pollWithSchedule, aj as provide, ak as provideContext, al as provideLayer, am as provideLayerContext, an as recurs, ao as repeatWithSchedule, ap as repeatWithScheduleAlias, aq as retryWithSchedule, ar as retryWithScheduleAlias, as as runSchedule, at as runtimeClockFromEnv, au as scheduleDriver, av as serviceTag, aw as spaced, ax as takeSchedule, ay as tapDecision, az as union, aA as untilInput, aB as untilOutput, aC as upTo, aD as useService, aE as useServices, aF as whileInput, aG as whileOutput, aH as windowed } from './layer-D2LFcBVx.js';
|
|
6
|
+
export { B as BrassEnv, C as Counter, E as EventBus, f as EventBusOptions, g as EventHandler, G as Gauge, H as Histogram, h as HistogramBuckets, I as InMemoryTracer, e as InMemoryTracerOptions, i as InMemoryTracerStats, a as MetricExemplar, b as MetricSnapshot, j as MetricType, k as MetricValue, M as MetricsRegistry, R as RuntimeSpan, l as RuntimeSpanEvent, d as RuntimeTraceIdGenerator, m as defaultTracer, n as makeMetrics, r as runtimeHooksToEventHandler } from './tracer-DF83nLn6.js';
|
|
7
|
+
import { Z as ZStream } from './stream-I7bkvF7a.js';
|
|
8
|
+
export { C as Concat, E as Emit, a as Empty, F as Flatten, b as FromArray, c as FromPull, M as Managed, d as Merge, N as Normalize, R as ReadableStreamOptions, S as Scoped, e as assertNever, f as collectStream, g as concatStream, h as emitStream, i as emptyStream, j as flattenStream, k as foreachStream, l as fromArray, m as fromPull, n as managedStream, o as mapStream, p as merge, q as mergeStream, r as rangeStream, s as streamFromReadableStream, u as uncons, t as unwrapScoped, w as widenOpt, z as zip } from './stream-I7bkvF7a.js';
|
|
9
|
+
import './schema/index.js';
|
|
9
10
|
|
|
10
11
|
declare class JsFiberEngine<R> implements FiberEngine<R> {
|
|
11
12
|
private readonly runtime;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Layer,
|
|
3
|
-
LayerContext,
|
|
4
2
|
LinkedQueue,
|
|
5
|
-
MissingLayerServiceError,
|
|
6
3
|
RuntimeRegistry,
|
|
7
4
|
Supervisor,
|
|
8
5
|
TestClock,
|
|
@@ -11,72 +8,40 @@ import {
|
|
|
11
8
|
assertFails,
|
|
12
9
|
assertFailsWith,
|
|
13
10
|
assertSucceeds,
|
|
14
|
-
buildLayer,
|
|
15
11
|
catchTag,
|
|
16
12
|
catchTags,
|
|
17
|
-
compose,
|
|
18
13
|
consoleJsonLogger,
|
|
19
14
|
defaultTracer,
|
|
20
|
-
|
|
21
|
-
defineService,
|
|
15
|
+
defineConfigLayer,
|
|
22
16
|
delayedEffect,
|
|
23
17
|
derivedRef,
|
|
24
18
|
dumpAllFibers,
|
|
25
19
|
flakyEffect,
|
|
26
|
-
formatLayerError,
|
|
27
|
-
getService,
|
|
28
20
|
gracefulShutdown,
|
|
29
21
|
joinSupervised,
|
|
30
|
-
layer,
|
|
31
|
-
layerEffect,
|
|
32
|
-
layerFail,
|
|
33
|
-
layerFrom,
|
|
34
|
-
layerFromContext,
|
|
35
|
-
layerSucceed,
|
|
36
|
-
layerValue,
|
|
37
22
|
linkAbortController,
|
|
38
23
|
makeCancelToken,
|
|
39
|
-
|
|
24
|
+
makeConfigLayer,
|
|
40
25
|
makeRef,
|
|
41
26
|
makeRuntime,
|
|
42
27
|
makeSemaphore,
|
|
43
|
-
makeServiceTag,
|
|
44
28
|
makeSupervisor,
|
|
45
29
|
makeTestRuntime,
|
|
46
30
|
makeTracer,
|
|
47
31
|
makeWorkerPool,
|
|
48
32
|
mapError as mapError2,
|
|
49
|
-
mapLayer,
|
|
50
|
-
merge,
|
|
51
33
|
neverEffect,
|
|
52
34
|
orElse,
|
|
53
|
-
provide,
|
|
54
|
-
provideContext,
|
|
55
|
-
provideLayer,
|
|
56
|
-
provideLayerContext,
|
|
57
35
|
registerShutdownHooks,
|
|
58
36
|
runEffect,
|
|
59
37
|
runExit,
|
|
60
38
|
runPromise,
|
|
61
|
-
serviceTag,
|
|
62
39
|
supervise,
|
|
63
40
|
tagError
|
|
64
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-7DU7IQHK.js";
|
|
65
42
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ensuring,
|
|
69
|
-
makeCircuitBreaker,
|
|
70
|
-
makeResource,
|
|
71
|
-
managed,
|
|
72
|
-
managedAll,
|
|
73
|
-
resource,
|
|
74
|
-
resourceAll,
|
|
75
|
-
resourceFromManaged,
|
|
76
|
-
resourceSucceed,
|
|
77
|
-
useManaged,
|
|
78
|
-
useResource
|
|
79
|
-
} from "./chunk-B33ICAKP.js";
|
|
43
|
+
makeCircuitBreaker
|
|
44
|
+
} from "./chunk-YM3EDNYD.js";
|
|
80
45
|
import {
|
|
81
46
|
fiberRefSnapshot,
|
|
82
47
|
getFiberRef,
|
|
@@ -89,7 +54,19 @@ import {
|
|
|
89
54
|
unsafeGetFiberRef,
|
|
90
55
|
unsafeSetFiberRef,
|
|
91
56
|
updateFiberRef
|
|
92
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UAKAF32U.js";
|
|
58
|
+
import {
|
|
59
|
+
RuntimeService,
|
|
60
|
+
makeRuntimeLayer
|
|
61
|
+
} from "./chunk-LSYQ3C2M.js";
|
|
62
|
+
import {
|
|
63
|
+
EventBus,
|
|
64
|
+
InMemoryTracer,
|
|
65
|
+
makeMetrics,
|
|
66
|
+
makeRuntimeEventRecord,
|
|
67
|
+
runtimeEventRecordContext,
|
|
68
|
+
runtimeHooksToEventHandler
|
|
69
|
+
} from "./chunk-OW5VHAOE.js";
|
|
93
70
|
import {
|
|
94
71
|
assertNever,
|
|
95
72
|
collectStream,
|
|
@@ -110,7 +87,7 @@ import {
|
|
|
110
87
|
unwrapScoped,
|
|
111
88
|
widenOpt,
|
|
112
89
|
zip
|
|
113
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-IPSMXUWA.js";
|
|
114
91
|
import {
|
|
115
92
|
collectAllPar,
|
|
116
93
|
race,
|
|
@@ -118,30 +95,69 @@ import {
|
|
|
118
95
|
zipPar
|
|
119
96
|
} from "./chunk-UCUBNWM2.js";
|
|
120
97
|
import {
|
|
98
|
+
Layer,
|
|
99
|
+
LayerContext,
|
|
100
|
+
MissingLayerServiceError,
|
|
101
|
+
Resource,
|
|
121
102
|
Schedule,
|
|
122
103
|
andThen,
|
|
104
|
+
bracket,
|
|
105
|
+
buildLayer,
|
|
106
|
+
compose,
|
|
107
|
+
composeAll,
|
|
123
108
|
contramap,
|
|
109
|
+
defineLayer,
|
|
110
|
+
defineService,
|
|
124
111
|
elapsed,
|
|
112
|
+
ensuring,
|
|
125
113
|
exponential,
|
|
126
114
|
fibonacci,
|
|
127
115
|
fixed,
|
|
128
116
|
forever,
|
|
117
|
+
formatLayerError,
|
|
118
|
+
getService,
|
|
119
|
+
getServices,
|
|
129
120
|
intersect,
|
|
130
121
|
jitter,
|
|
131
122
|
jittered,
|
|
132
123
|
jitteredSchedule,
|
|
124
|
+
layer,
|
|
125
|
+
layerEffect,
|
|
126
|
+
layerFail,
|
|
127
|
+
layerFrom,
|
|
128
|
+
layerFromContext,
|
|
129
|
+
layerSucceed,
|
|
130
|
+
layerValue,
|
|
133
131
|
linear,
|
|
132
|
+
makeLayerScope,
|
|
133
|
+
makeResource,
|
|
134
134
|
makeScheduleDriver,
|
|
135
|
+
makeServiceTag,
|
|
136
|
+
makeTestLayer,
|
|
137
|
+
makeTestLayers,
|
|
138
|
+
managed,
|
|
139
|
+
managedAll,
|
|
135
140
|
map as map2,
|
|
141
|
+
mapLayer,
|
|
136
142
|
maxDelay,
|
|
137
143
|
maxElapsed,
|
|
144
|
+
merge,
|
|
145
|
+
mergeAll,
|
|
138
146
|
named,
|
|
139
147
|
never,
|
|
140
148
|
once,
|
|
141
149
|
poll,
|
|
150
|
+
provide,
|
|
151
|
+
provideContext,
|
|
152
|
+
provideLayer,
|
|
153
|
+
provideLayerContext,
|
|
142
154
|
recurs,
|
|
143
155
|
repeat,
|
|
144
156
|
repeatWithSchedule,
|
|
157
|
+
resource,
|
|
158
|
+
resourceAll,
|
|
159
|
+
resourceFromManaged,
|
|
160
|
+
resourceSucceed,
|
|
145
161
|
retry,
|
|
146
162
|
retry2,
|
|
147
163
|
retryN,
|
|
@@ -149,6 +165,7 @@ import {
|
|
|
149
165
|
retryWithSchedule,
|
|
150
166
|
runSchedule,
|
|
151
167
|
scheduleDriver,
|
|
168
|
+
serviceTag,
|
|
152
169
|
sleep,
|
|
153
170
|
spaced,
|
|
154
171
|
take,
|
|
@@ -158,23 +175,14 @@ import {
|
|
|
158
175
|
untilInput,
|
|
159
176
|
untilOutput,
|
|
160
177
|
upTo,
|
|
178
|
+
useManaged,
|
|
179
|
+
useResource,
|
|
180
|
+
useService,
|
|
181
|
+
useServices,
|
|
161
182
|
whileInput,
|
|
162
183
|
whileOutput,
|
|
163
184
|
windowed
|
|
164
|
-
} from "./chunk-
|
|
165
|
-
import {
|
|
166
|
-
Scope,
|
|
167
|
-
withScope,
|
|
168
|
-
withScopeAsync
|
|
169
|
-
} from "./chunk-L2SYFEBS.js";
|
|
170
|
-
import {
|
|
171
|
-
EventBus,
|
|
172
|
-
InMemoryTracer,
|
|
173
|
-
makeMetrics,
|
|
174
|
-
makeRuntimeEventRecord,
|
|
175
|
-
runtimeEventRecordContext,
|
|
176
|
-
runtimeHooksToEventHandler
|
|
177
|
-
} from "./chunk-RKGKFN2A.js";
|
|
185
|
+
} from "./chunk-S4HXADU4.js";
|
|
178
186
|
import {
|
|
179
187
|
ABI_VERSION,
|
|
180
188
|
DefaultHostExecutor,
|
|
@@ -192,6 +200,7 @@ import {
|
|
|
192
200
|
Runtime,
|
|
193
201
|
RuntimeFiber,
|
|
194
202
|
Scheduler,
|
|
203
|
+
Scope,
|
|
195
204
|
WasmFiberEngine,
|
|
196
205
|
WasmFiberRegistryBridge,
|
|
197
206
|
WasmPackFiberBridge,
|
|
@@ -213,20 +222,25 @@ import {
|
|
|
213
222
|
liveClock,
|
|
214
223
|
makeBoundedRingBuffer,
|
|
215
224
|
makeFiberReadyQueue,
|
|
225
|
+
recordAbortablePromiseFinish,
|
|
226
|
+
recordAbortablePromiseStart,
|
|
216
227
|
resetAbortablePromiseStats,
|
|
217
228
|
resolveWasmModule,
|
|
218
229
|
runtimeCapabilities,
|
|
219
230
|
runtimeClockFromEnv,
|
|
220
231
|
runtimeForCaller,
|
|
221
232
|
sanitizeLaneKey,
|
|
233
|
+
setAbortablePromisePerLabelTracking,
|
|
222
234
|
setBenchmarkBudget,
|
|
223
235
|
toPromise,
|
|
224
236
|
toPromiseByCaller,
|
|
225
237
|
unsafeGetCurrentRuntime,
|
|
226
238
|
unsafeRunAsync,
|
|
227
239
|
unsafeRunFoldWithEnv,
|
|
228
|
-
withCurrentFiber
|
|
229
|
-
|
|
240
|
+
withCurrentFiber,
|
|
241
|
+
withScope,
|
|
242
|
+
withScopeAsync
|
|
243
|
+
} from "./chunk-TTSPIU3U.js";
|
|
230
244
|
import {
|
|
231
245
|
Async,
|
|
232
246
|
Cause,
|
|
@@ -265,7 +279,7 @@ import {
|
|
|
265
279
|
unit,
|
|
266
280
|
withAsyncPromise
|
|
267
281
|
} from "./chunk-UB4B6OFY.js";
|
|
268
|
-
import "./chunk-
|
|
282
|
+
import "./chunk-HCJ4S3YB.js";
|
|
269
283
|
import "./chunk-3RG5ZIWI.js";
|
|
270
284
|
|
|
271
285
|
// src/core/stream/queue.ts
|
|
@@ -1537,6 +1551,7 @@ export {
|
|
|
1537
1551
|
Runtime,
|
|
1538
1552
|
RuntimeFiber,
|
|
1539
1553
|
RuntimeRegistry,
|
|
1554
|
+
RuntimeService,
|
|
1540
1555
|
Schedule,
|
|
1541
1556
|
Scheduler,
|
|
1542
1557
|
Scope,
|
|
@@ -1584,6 +1599,7 @@ export {
|
|
|
1584
1599
|
collectAllPar,
|
|
1585
1600
|
collectStream,
|
|
1586
1601
|
compose2 as compose,
|
|
1602
|
+
composeAll,
|
|
1587
1603
|
compose as composeLayer,
|
|
1588
1604
|
concatStream,
|
|
1589
1605
|
consoleJsonLogger,
|
|
@@ -1594,6 +1610,7 @@ export {
|
|
|
1594
1610
|
decodeEvent,
|
|
1595
1611
|
decodeEventBatch,
|
|
1596
1612
|
defaultTracer,
|
|
1613
|
+
defineConfigLayer,
|
|
1597
1614
|
defineLayer,
|
|
1598
1615
|
defineService,
|
|
1599
1616
|
delayedEffect,
|
|
@@ -1635,6 +1652,7 @@ export {
|
|
|
1635
1652
|
getCurrentFiber,
|
|
1636
1653
|
getFiberRef,
|
|
1637
1654
|
getService,
|
|
1655
|
+
getServices,
|
|
1638
1656
|
getStats,
|
|
1639
1657
|
globalScheduler,
|
|
1640
1658
|
gracefulShutdown,
|
|
@@ -1668,6 +1686,7 @@ export {
|
|
|
1668
1686
|
makeBoundedRingBuffer,
|
|
1669
1687
|
makeCancelToken,
|
|
1670
1688
|
makeCircuitBreaker,
|
|
1689
|
+
makeConfigLayer,
|
|
1671
1690
|
makeFiberReadyQueue,
|
|
1672
1691
|
makeFiberRef,
|
|
1673
1692
|
makeHub,
|
|
@@ -1677,12 +1696,15 @@ export {
|
|
|
1677
1696
|
makeResource,
|
|
1678
1697
|
makeRuntime,
|
|
1679
1698
|
makeRuntimeEventRecord,
|
|
1699
|
+
makeRuntimeLayer,
|
|
1680
1700
|
makeRuntimeRecorder,
|
|
1681
1701
|
makeScheduleDriver,
|
|
1682
1702
|
makeSemaphore,
|
|
1683
1703
|
makeServiceTag,
|
|
1684
1704
|
makeStreamChunker,
|
|
1685
1705
|
makeSupervisor,
|
|
1706
|
+
makeTestLayer,
|
|
1707
|
+
makeTestLayers,
|
|
1686
1708
|
makeTestRuntime,
|
|
1687
1709
|
makeTracer,
|
|
1688
1710
|
makeWorkerPool,
|
|
@@ -1705,6 +1727,7 @@ export {
|
|
|
1705
1727
|
maxDelay,
|
|
1706
1728
|
maxElapsed,
|
|
1707
1729
|
merge2 as merge,
|
|
1730
|
+
mergeAll,
|
|
1708
1731
|
merge as mergeLayer,
|
|
1709
1732
|
mergeStream,
|
|
1710
1733
|
modifyFiberRef,
|
|
@@ -1724,6 +1747,8 @@ export {
|
|
|
1724
1747
|
race,
|
|
1725
1748
|
raceWith,
|
|
1726
1749
|
rangeStream,
|
|
1750
|
+
recordAbortablePromiseFinish,
|
|
1751
|
+
recordAbortablePromiseStart,
|
|
1727
1752
|
recurs,
|
|
1728
1753
|
registerShutdownHooks,
|
|
1729
1754
|
repeatWithSchedule,
|
|
@@ -1754,6 +1779,7 @@ export {
|
|
|
1754
1779
|
selectedEngineStats,
|
|
1755
1780
|
serializeFusedPipeline,
|
|
1756
1781
|
serviceTag,
|
|
1782
|
+
setAbortablePromisePerLabelTracking,
|
|
1757
1783
|
setBenchmarkBudget,
|
|
1758
1784
|
setFiberRef,
|
|
1759
1785
|
setFusionEnabled,
|
|
@@ -1792,6 +1818,8 @@ export {
|
|
|
1792
1818
|
updateFiberRef,
|
|
1793
1819
|
useManaged,
|
|
1794
1820
|
useResource,
|
|
1821
|
+
useService,
|
|
1822
|
+
useServices,
|
|
1795
1823
|
via,
|
|
1796
1824
|
whileInput,
|
|
1797
1825
|
whileOutput,
|