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/core/index.cjs
CHANGED
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
+
var _chunk2OW6IFY2cjs = require('../chunk-2OW6IFY2.cjs');
|
|
40
41
|
|
|
41
42
|
|
|
43
|
+
var _chunk7TKI527Dcjs = require('../chunk-7TKI527D.cjs');
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
|
|
@@ -51,17 +53,19 @@
|
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
|
|
56
|
+
var _chunkKNTJ7FQBcjs = require('../chunk-KNTJ7FQB.cjs');
|
|
54
57
|
|
|
55
58
|
|
|
56
59
|
|
|
60
|
+
var _chunkELIECDYNcjs = require('../chunk-ELIECDYN.cjs');
|
|
57
61
|
|
|
58
62
|
|
|
59
63
|
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
|
|
63
|
-
var _chunkQ2I37RP3cjs = require('../chunk-Q2I37RP3.cjs');
|
|
64
67
|
|
|
68
|
+
var _chunkWGE2FEZEcjs = require('../chunk-WGE2FEZE.cjs');
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
|
|
@@ -75,7 +79,6 @@ var _chunkQ2I37RP3cjs = require('../chunk-Q2I37RP3.cjs');
|
|
|
75
79
|
|
|
76
80
|
|
|
77
81
|
|
|
78
|
-
var _chunk62AZW6UTcjs = require('../chunk-62AZW6UT.cjs');
|
|
79
82
|
|
|
80
83
|
|
|
81
84
|
|
|
@@ -88,7 +91,6 @@ var _chunk62AZW6UTcjs = require('../chunk-62AZW6UT.cjs');
|
|
|
88
91
|
|
|
89
92
|
|
|
90
93
|
|
|
91
|
-
var _chunkPD4EJTQCcjs = require('../chunk-PD4EJTQC.cjs');
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
|
|
@@ -133,12 +135,10 @@ var _chunkPD4EJTQCcjs = require('../chunk-PD4EJTQC.cjs');
|
|
|
133
135
|
|
|
134
136
|
|
|
135
137
|
|
|
136
|
-
var _chunkAGR5B2BCcjs = require('../chunk-AGR5B2BC.cjs');
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
|
|
140
141
|
|
|
141
|
-
var _chunkJF5WGYJJcjs = require('../chunk-JF5WGYJJ.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
@@ -146,7 +146,6 @@ var _chunkJF5WGYJJcjs = require('../chunk-JF5WGYJJ.cjs');
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
|
|
149
|
-
var _chunk52PPNNI4cjs = require('../chunk-52PPNNI4.cjs');
|
|
150
149
|
|
|
151
150
|
|
|
152
151
|
|
|
@@ -155,6 +154,7 @@ var _chunk52PPNNI4cjs = require('../chunk-52PPNNI4.cjs');
|
|
|
155
154
|
|
|
156
155
|
|
|
157
156
|
|
|
157
|
+
var _chunk5RZ7YITFcjs = require('../chunk-5RZ7YITF.cjs');
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
@@ -170,7 +170,21 @@ var _chunk52PPNNI4cjs = require('../chunk-52PPNNI4.cjs');
|
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
var _chunk2JHJ4YHScjs = require('../chunk-2JHJ4YHS.cjs');
|
|
174
188
|
|
|
175
189
|
|
|
176
190
|
|
|
@@ -209,7 +223,7 @@ var _chunkGLE2WY7Zcjs = require('../chunk-GLE2WY7Z.cjs');
|
|
|
209
223
|
|
|
210
224
|
|
|
211
225
|
var _chunkMVGUEJ5Zcjs = require('../chunk-MVGUEJ5Z.cjs');
|
|
212
|
-
require('../chunk-
|
|
226
|
+
require('../chunk-UUMKZJRJ.cjs');
|
|
213
227
|
require('../chunk-OBGZSXTJ.cjs');
|
|
214
228
|
|
|
215
229
|
|
|
@@ -407,4 +421,18 @@ require('../chunk-OBGZSXTJ.cjs');
|
|
|
407
421
|
|
|
408
422
|
|
|
409
423
|
|
|
410
|
-
exports.Async = _chunkMVGUEJ5Zcjs.Async; exports.Cause = _chunkMVGUEJ5Zcjs.Cause; exports.EventBus = _chunk52PPNNI4cjs.EventBus; exports.Exit = _chunkMVGUEJ5Zcjs.Exit; exports.InMemoryTracer = _chunk52PPNNI4cjs.InMemoryTracer; exports.Layer = _chunkQ2I37RP3cjs.Layer; exports.LayerContext = _chunkQ2I37RP3cjs.LayerContext; exports.MissingLayerServiceError = _chunkQ2I37RP3cjs.MissingLayerServiceError; exports.NoopHooks = _chunkGLE2WY7Zcjs.NoopHooks; exports.Resource = _chunk62AZW6UTcjs.Resource; exports.Runtime = _chunkGLE2WY7Zcjs.Runtime; exports.RuntimeFiber = _chunkGLE2WY7Zcjs.RuntimeFiber; exports.RuntimeRegistry = _chunkQ2I37RP3cjs.RuntimeRegistry; exports.Schedule = _chunkAGR5B2BCcjs.Schedule; exports.Scope = _chunkJF5WGYJJcjs.Scope; exports.Supervisor = _chunkQ2I37RP3cjs.Supervisor; exports.TestClock = _chunkQ2I37RP3cjs.TestClock; exports.TestScheduler = _chunkQ2I37RP3cjs.TestScheduler; exports.abortablePromiseStats = _chunkGLE2WY7Zcjs.abortablePromiseStats; exports.acquireRelease = _chunkMVGUEJ5Zcjs.acquireRelease; exports.andThenSchedule = _chunkAGR5B2BCcjs.andThen; exports.assertCompletesWithin = _chunkQ2I37RP3cjs.assertCompletesWithin; exports.assertFails = _chunkQ2I37RP3cjs.assertFails; exports.assertFailsWith = _chunkQ2I37RP3cjs.assertFailsWith; exports.assertSucceeds = _chunkQ2I37RP3cjs.assertSucceeds; exports.async = _chunkMVGUEJ5Zcjs.asyncEffect; exports.asyncCatchAll = _chunkMVGUEJ5Zcjs.asyncCatchAll; exports.asyncFail = _chunkMVGUEJ5Zcjs.asyncFail; exports.asyncFlatMap = _chunkMVGUEJ5Zcjs.asyncFlatMap; exports.asyncFold = _chunkMVGUEJ5Zcjs.asyncFold; exports.asyncInterruptible = _chunkMVGUEJ5Zcjs.asyncInterruptible; exports.asyncMap = _chunkMVGUEJ5Zcjs.asyncMap; exports.asyncMapError = _chunkMVGUEJ5Zcjs.asyncMapError; exports.asyncSucceed = _chunkMVGUEJ5Zcjs.asyncSucceed; exports.asyncSync = _chunkMVGUEJ5Zcjs.asyncSync; exports.asyncTotal = _chunkMVGUEJ5Zcjs.asyncTotal; exports.bracket = _chunk62AZW6UTcjs.bracket; exports.buildLayer = _chunkQ2I37RP3cjs.buildLayer; exports.catchAll = _chunkMVGUEJ5Zcjs.catchAll; exports.catchTag = _chunkQ2I37RP3cjs.catchTag; exports.catchTags = _chunkQ2I37RP3cjs.catchTags; exports.composeLayer = _chunkQ2I37RP3cjs.compose; exports.consoleJsonLogger = _chunkQ2I37RP3cjs.consoleJsonLogger; exports.contramapSchedule = _chunkAGR5B2BCcjs.contramap; exports.ctxExtend = _chunkGLE2WY7Zcjs.ctxExtend; exports.ctxToObject = _chunkGLE2WY7Zcjs.ctxToObject; exports.defaultTracer = _chunkQ2I37RP3cjs.defaultTracer; exports.defineLayer = _chunkQ2I37RP3cjs.defineLayer; exports.defineService = _chunkQ2I37RP3cjs.defineService; exports.delayedEffect = _chunkQ2I37RP3cjs.delayedEffect; exports.derivedRef = _chunkQ2I37RP3cjs.derivedRef; exports.dumpAllFibers = _chunkQ2I37RP3cjs.dumpAllFibers; exports.elapsed = _chunkAGR5B2BCcjs.elapsed; exports.emptyContext = _chunkGLE2WY7Zcjs.emptyContext; exports.end = _chunkMVGUEJ5Zcjs.end; exports.ensuring = _chunk62AZW6UTcjs.ensuring; exports.exponential = _chunkAGR5B2BCcjs.exponential; exports.fail = _chunkMVGUEJ5Zcjs.fail; exports.fiberRefSnapshot = _chunkPD4EJTQCcjs.fiberRefSnapshot; exports.fibonacci = _chunkAGR5B2BCcjs.fibonacci; exports.fixed = _chunkAGR5B2BCcjs.fixed; exports.flakyEffect = _chunkQ2I37RP3cjs.flakyEffect; exports.flatMap = _chunkMVGUEJ5Zcjs.flatMap; exports.forever = _chunkAGR5B2BCcjs.forever; exports.fork = _chunkGLE2WY7Zcjs.fork; exports.formatCause = _chunkMVGUEJ5Zcjs.formatCause; exports.formatLayerError = _chunkQ2I37RP3cjs.formatLayerError; exports.fromPromiseAbortable = _chunkGLE2WY7Zcjs.fromPromiseAbortable; exports.getBenchmarkBudget = _chunkGLE2WY7Zcjs.getBenchmarkBudget; exports.getCurrentFiber = _chunkGLE2WY7Zcjs.getCurrentFiber; exports.getFiberRef = _chunkPD4EJTQCcjs.getFiberRef; exports.getService = _chunkQ2I37RP3cjs.getService; exports.gracefulShutdown = _chunkQ2I37RP3cjs.gracefulShutdown; exports.interruptible = _chunkMVGUEJ5Zcjs.interruptible; exports.intersect = _chunkAGR5B2BCcjs.intersect; exports.isCause = _chunkMVGUEJ5Zcjs.isCause; exports.jitter = _chunkAGR5B2BCcjs.jitter; exports.jittered = _chunkAGR5B2BCcjs.jittered; exports.jitteredSchedule = _chunkAGR5B2BCcjs.jitteredSchedule; exports.joinSupervised = _chunkQ2I37RP3cjs.joinSupervised; exports.layer = _chunkQ2I37RP3cjs.layer; exports.layerEffect = _chunkQ2I37RP3cjs.layerEffect; exports.layerFail = _chunkQ2I37RP3cjs.layerFail; exports.layerFrom = _chunkQ2I37RP3cjs.layerFrom; exports.layerFromContext = _chunkQ2I37RP3cjs.layerFromContext; exports.layerSucceed = _chunkQ2I37RP3cjs.layerSucceed; exports.layerValue = _chunkQ2I37RP3cjs.layerValue; exports.linear = _chunkAGR5B2BCcjs.linear; exports.linkAbortController = _chunkQ2I37RP3cjs.linkAbortController; exports.liveClock = _chunkGLE2WY7Zcjs.liveClock; exports.locallyFiberRef = _chunkPD4EJTQCcjs.locallyFiberRef; exports.locallyFiberRefWith = _chunkPD4EJTQCcjs.locallyFiberRefWith; exports.makeCancelToken = _chunkQ2I37RP3cjs.makeCancelToken; exports.makeCircuitBreaker = _chunk62AZW6UTcjs.makeCircuitBreaker; exports.makeFiberRef = _chunkPD4EJTQCcjs.makeFiberRef; exports.makeLayerScope = _chunkQ2I37RP3cjs.makeLayerScope; exports.makeMetrics = _chunk52PPNNI4cjs.makeMetrics; exports.makeRef = _chunkQ2I37RP3cjs.makeRef; exports.makeResource = _chunk62AZW6UTcjs.makeResource; exports.makeRuntime = _chunkQ2I37RP3cjs.makeRuntime; exports.makeRuntimeEventRecord = _chunk52PPNNI4cjs.makeRuntimeEventRecord; exports.makeRuntimeRecorder = _chunkPD4EJTQCcjs.makeRuntimeRecorder; exports.makeScheduleDriver = _chunkAGR5B2BCcjs.makeScheduleDriver; exports.makeSemaphore = _chunkQ2I37RP3cjs.makeSemaphore; exports.makeServiceTag = _chunkQ2I37RP3cjs.makeServiceTag; exports.makeSupervisor = _chunkQ2I37RP3cjs.makeSupervisor; exports.makeTestRuntime = _chunkQ2I37RP3cjs.makeTestRuntime; exports.makeTracer = _chunkQ2I37RP3cjs.makeTracer; exports.makeWorkerPool = _chunkQ2I37RP3cjs.makeWorkerPool; exports.managed = _chunk62AZW6UTcjs.managed; exports.managedAll = _chunk62AZW6UTcjs.managedAll; exports.map = _chunkMVGUEJ5Zcjs.map; exports.mapAsync = _chunkMVGUEJ5Zcjs.mapAsync; exports.mapError = _chunkMVGUEJ5Zcjs.mapError; exports.mapErrorTyped = _chunkQ2I37RP3cjs.mapError; exports.mapLayer = _chunkQ2I37RP3cjs.mapLayer; exports.mapSchedule = _chunkAGR5B2BCcjs.map; exports.mapTryAsync = _chunkMVGUEJ5Zcjs.mapTryAsync; exports.maxDelay = _chunkAGR5B2BCcjs.maxDelay; exports.maxElapsed = _chunkAGR5B2BCcjs.maxElapsed; exports.mergeLayer = _chunkQ2I37RP3cjs.merge; exports.modifyFiberRef = _chunkPD4EJTQCcjs.modifyFiberRef; exports.namedSchedule = _chunkAGR5B2BCcjs.named; exports.never = _chunkAGR5B2BCcjs.never; exports.neverEffect = _chunkQ2I37RP3cjs.neverEffect; exports.none = _chunkMVGUEJ5Zcjs.none; exports.once = _chunkAGR5B2BCcjs.once; exports.orElse = _chunkQ2I37RP3cjs.orElse; exports.orElseOptional = _chunkMVGUEJ5Zcjs.orElseOptional; exports.pollWithSchedule = _chunkAGR5B2BCcjs.poll; exports.prettyCause = _chunkMVGUEJ5Zcjs.prettyCause; exports.provide = _chunkQ2I37RP3cjs.provide; exports.provideContext = _chunkQ2I37RP3cjs.provideContext; exports.provideLayer = _chunkQ2I37RP3cjs.provideLayer; exports.provideLayerContext = _chunkQ2I37RP3cjs.provideLayerContext; exports.recurs = _chunkAGR5B2BCcjs.recurs; exports.registerShutdownHooks = _chunkQ2I37RP3cjs.registerShutdownHooks; exports.repeatWithSchedule = _chunkAGR5B2BCcjs.repeatWithSchedule; exports.repeatWithScheduleAlias = _chunkAGR5B2BCcjs.repeat; exports.resetAbortablePromiseStats = _chunkGLE2WY7Zcjs.resetAbortablePromiseStats; exports.resource = _chunk62AZW6UTcjs.resource; exports.resourceAll = _chunk62AZW6UTcjs.resourceAll; exports.resourceFromManaged = _chunk62AZW6UTcjs.resourceFromManaged; exports.resourceSucceed = _chunk62AZW6UTcjs.resourceSucceed; exports.retry = _chunkAGR5B2BCcjs.retry; exports.retryN = _chunkAGR5B2BCcjs.retryN; exports.retryWithBackoff = _chunkAGR5B2BCcjs.retryWithBackoff; exports.retryWithSchedule = _chunkAGR5B2BCcjs.retryWithSchedule; exports.retryWithScheduleAlias = _chunkAGR5B2BCcjs.retry2; exports.runEffect = _chunkQ2I37RP3cjs.runEffect; exports.runExit = _chunkQ2I37RP3cjs.runExit; exports.runPromise = _chunkQ2I37RP3cjs.runPromise; exports.runSchedule = _chunkAGR5B2BCcjs.runSchedule; exports.runtimeClockFromEnv = _chunkGLE2WY7Zcjs.runtimeClockFromEnv; exports.runtimeEventRecordContext = _chunk52PPNNI4cjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunkGLE2WY7Zcjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunk52PPNNI4cjs.runtimeHooksToEventHandler; exports.scheduleDriver = _chunkAGR5B2BCcjs.scheduleDriver; exports.serviceTag = _chunkQ2I37RP3cjs.serviceTag; exports.setBenchmarkBudget = _chunkGLE2WY7Zcjs.setBenchmarkBudget; exports.setFiberRef = _chunkPD4EJTQCcjs.setFiberRef; exports.sleep = _chunkAGR5B2BCcjs.sleep; exports.some = _chunkMVGUEJ5Zcjs.some; exports.spaced = _chunkAGR5B2BCcjs.spaced; exports.succeed = _chunkMVGUEJ5Zcjs.succeed; exports.supervise = _chunkQ2I37RP3cjs.supervise; exports.sync = _chunkMVGUEJ5Zcjs.sync; exports.tagError = _chunkQ2I37RP3cjs.tagError; exports.takeSchedule = _chunkAGR5B2BCcjs.take; exports.tapDecision = _chunkAGR5B2BCcjs.tapDecision; exports.timeout = _chunkAGR5B2BCcjs.timeout; exports.toPromise = _chunkGLE2WY7Zcjs.toPromise; exports.toPromiseByCaller = _chunkGLE2WY7Zcjs.toPromiseByCaller; exports.uninterruptible = _chunkMVGUEJ5Zcjs.uninterruptible; exports.uninterruptibleMask = _chunkMVGUEJ5Zcjs.uninterruptibleMask; exports.union = _chunkAGR5B2BCcjs.union; exports.unit = _chunkMVGUEJ5Zcjs.unit; exports.unsafeGetCurrentRuntime = _chunkGLE2WY7Zcjs.unsafeGetCurrentRuntime; exports.unsafeGetFiberRef = _chunkPD4EJTQCcjs.unsafeGetFiberRef; exports.unsafeRunAsync = _chunkGLE2WY7Zcjs.unsafeRunAsync; exports.unsafeRunFoldWithEnv = _chunkGLE2WY7Zcjs.unsafeRunFoldWithEnv; exports.unsafeSetFiberRef = _chunkPD4EJTQCcjs.unsafeSetFiberRef; exports.untilInput = _chunkAGR5B2BCcjs.untilInput; exports.untilOutput = _chunkAGR5B2BCcjs.untilOutput; exports.upTo = _chunkAGR5B2BCcjs.upTo; exports.updateFiberRef = _chunkPD4EJTQCcjs.updateFiberRef; exports.useManaged = _chunk62AZW6UTcjs.useManaged; exports.useResource = _chunk62AZW6UTcjs.useResource; exports.whileInput = _chunkAGR5B2BCcjs.whileInput; exports.whileOutput = _chunkAGR5B2BCcjs.whileOutput; exports.windowed = _chunkAGR5B2BCcjs.windowed; exports.withAsyncPromise = _chunkMVGUEJ5Zcjs.withAsyncPromise; exports.withCurrentFiber = _chunkGLE2WY7Zcjs.withCurrentFiber; exports.withScope = _chunkJF5WGYJJcjs.withScope; exports.withScopeAsync = _chunkJF5WGYJJcjs.withScopeAsync;
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
exports.Async = _chunkMVGUEJ5Zcjs.Async; exports.Cause = _chunkMVGUEJ5Zcjs.Cause; exports.EventBus = _chunkWGE2FEZEcjs.EventBus; exports.Exit = _chunkMVGUEJ5Zcjs.Exit; exports.InMemoryTracer = _chunkWGE2FEZEcjs.InMemoryTracer; exports.Layer = _chunk5RZ7YITFcjs.Layer; exports.LayerContext = _chunk5RZ7YITFcjs.LayerContext; exports.MissingLayerServiceError = _chunk5RZ7YITFcjs.MissingLayerServiceError; exports.NoopHooks = _chunk2JHJ4YHScjs.NoopHooks; exports.Resource = _chunk5RZ7YITFcjs.Resource; exports.Runtime = _chunk2JHJ4YHScjs.Runtime; exports.RuntimeFiber = _chunk2JHJ4YHScjs.RuntimeFiber; exports.RuntimeRegistry = _chunk2OW6IFY2cjs.RuntimeRegistry; exports.RuntimeService = _chunkELIECDYNcjs.RuntimeService; exports.Schedule = _chunk5RZ7YITFcjs.Schedule; exports.Scope = _chunk2JHJ4YHScjs.Scope; exports.Supervisor = _chunk2OW6IFY2cjs.Supervisor; exports.TestClock = _chunk2OW6IFY2cjs.TestClock; exports.TestScheduler = _chunk2OW6IFY2cjs.TestScheduler; exports.abortablePromiseStats = _chunk2JHJ4YHScjs.abortablePromiseStats; exports.acquireRelease = _chunkMVGUEJ5Zcjs.acquireRelease; exports.andThenSchedule = _chunk5RZ7YITFcjs.andThen; exports.assertCompletesWithin = _chunk2OW6IFY2cjs.assertCompletesWithin; exports.assertFails = _chunk2OW6IFY2cjs.assertFails; exports.assertFailsWith = _chunk2OW6IFY2cjs.assertFailsWith; exports.assertSucceeds = _chunk2OW6IFY2cjs.assertSucceeds; exports.async = _chunkMVGUEJ5Zcjs.asyncEffect; exports.asyncCatchAll = _chunkMVGUEJ5Zcjs.asyncCatchAll; exports.asyncFail = _chunkMVGUEJ5Zcjs.asyncFail; exports.asyncFlatMap = _chunkMVGUEJ5Zcjs.asyncFlatMap; exports.asyncFold = _chunkMVGUEJ5Zcjs.asyncFold; exports.asyncInterruptible = _chunkMVGUEJ5Zcjs.asyncInterruptible; exports.asyncMap = _chunkMVGUEJ5Zcjs.asyncMap; exports.asyncMapError = _chunkMVGUEJ5Zcjs.asyncMapError; exports.asyncSucceed = _chunkMVGUEJ5Zcjs.asyncSucceed; exports.asyncSync = _chunkMVGUEJ5Zcjs.asyncSync; exports.asyncTotal = _chunkMVGUEJ5Zcjs.asyncTotal; exports.bracket = _chunk5RZ7YITFcjs.bracket; exports.buildLayer = _chunk5RZ7YITFcjs.buildLayer; exports.catchAll = _chunkMVGUEJ5Zcjs.catchAll; exports.catchTag = _chunk2OW6IFY2cjs.catchTag; exports.catchTags = _chunk2OW6IFY2cjs.catchTags; exports.composeAll = _chunk5RZ7YITFcjs.composeAll; exports.composeLayer = _chunk5RZ7YITFcjs.compose; exports.consoleJsonLogger = _chunk2OW6IFY2cjs.consoleJsonLogger; exports.contramapSchedule = _chunk5RZ7YITFcjs.contramap; exports.ctxExtend = _chunk2JHJ4YHScjs.ctxExtend; exports.ctxToObject = _chunk2JHJ4YHScjs.ctxToObject; exports.defaultTracer = _chunk2OW6IFY2cjs.defaultTracer; exports.defineConfigLayer = _chunk2OW6IFY2cjs.defineConfigLayer; exports.defineLayer = _chunk5RZ7YITFcjs.defineLayer; exports.defineService = _chunk5RZ7YITFcjs.defineService; exports.delayedEffect = _chunk2OW6IFY2cjs.delayedEffect; exports.derivedRef = _chunk2OW6IFY2cjs.derivedRef; exports.dumpAllFibers = _chunk2OW6IFY2cjs.dumpAllFibers; exports.elapsed = _chunk5RZ7YITFcjs.elapsed; exports.emptyContext = _chunk2JHJ4YHScjs.emptyContext; exports.end = _chunkMVGUEJ5Zcjs.end; exports.ensuring = _chunk5RZ7YITFcjs.ensuring; exports.exponential = _chunk5RZ7YITFcjs.exponential; exports.fail = _chunkMVGUEJ5Zcjs.fail; exports.fiberRefSnapshot = _chunkKNTJ7FQBcjs.fiberRefSnapshot; exports.fibonacci = _chunk5RZ7YITFcjs.fibonacci; exports.fixed = _chunk5RZ7YITFcjs.fixed; exports.flakyEffect = _chunk2OW6IFY2cjs.flakyEffect; exports.flatMap = _chunkMVGUEJ5Zcjs.flatMap; exports.forever = _chunk5RZ7YITFcjs.forever; exports.fork = _chunk2JHJ4YHScjs.fork; exports.formatCause = _chunkMVGUEJ5Zcjs.formatCause; exports.formatLayerError = _chunk5RZ7YITFcjs.formatLayerError; exports.fromPromiseAbortable = _chunk2JHJ4YHScjs.fromPromiseAbortable; exports.getBenchmarkBudget = _chunk2JHJ4YHScjs.getBenchmarkBudget; exports.getCurrentFiber = _chunk2JHJ4YHScjs.getCurrentFiber; exports.getFiberRef = _chunkKNTJ7FQBcjs.getFiberRef; exports.getService = _chunk5RZ7YITFcjs.getService; exports.getServices = _chunk5RZ7YITFcjs.getServices; exports.gracefulShutdown = _chunk2OW6IFY2cjs.gracefulShutdown; exports.interruptible = _chunkMVGUEJ5Zcjs.interruptible; exports.intersect = _chunk5RZ7YITFcjs.intersect; exports.isCause = _chunkMVGUEJ5Zcjs.isCause; exports.jitter = _chunk5RZ7YITFcjs.jitter; exports.jittered = _chunk5RZ7YITFcjs.jittered; exports.jitteredSchedule = _chunk5RZ7YITFcjs.jitteredSchedule; exports.joinSupervised = _chunk2OW6IFY2cjs.joinSupervised; exports.layer = _chunk5RZ7YITFcjs.layer; exports.layerEffect = _chunk5RZ7YITFcjs.layerEffect; exports.layerFail = _chunk5RZ7YITFcjs.layerFail; exports.layerFrom = _chunk5RZ7YITFcjs.layerFrom; exports.layerFromContext = _chunk5RZ7YITFcjs.layerFromContext; exports.layerSucceed = _chunk5RZ7YITFcjs.layerSucceed; exports.layerValue = _chunk5RZ7YITFcjs.layerValue; exports.linear = _chunk5RZ7YITFcjs.linear; exports.linkAbortController = _chunk2OW6IFY2cjs.linkAbortController; exports.liveClock = _chunk2JHJ4YHScjs.liveClock; exports.locallyFiberRef = _chunkKNTJ7FQBcjs.locallyFiberRef; exports.locallyFiberRefWith = _chunkKNTJ7FQBcjs.locallyFiberRefWith; exports.makeCancelToken = _chunk2OW6IFY2cjs.makeCancelToken; exports.makeCircuitBreaker = _chunk7TKI527Dcjs.makeCircuitBreaker; exports.makeConfigLayer = _chunk2OW6IFY2cjs.makeConfigLayer; exports.makeFiberRef = _chunkKNTJ7FQBcjs.makeFiberRef; exports.makeLayerScope = _chunk5RZ7YITFcjs.makeLayerScope; exports.makeMetrics = _chunkWGE2FEZEcjs.makeMetrics; exports.makeRef = _chunk2OW6IFY2cjs.makeRef; exports.makeResource = _chunk5RZ7YITFcjs.makeResource; exports.makeRuntime = _chunk2OW6IFY2cjs.makeRuntime; exports.makeRuntimeEventRecord = _chunkWGE2FEZEcjs.makeRuntimeEventRecord; exports.makeRuntimeLayer = _chunkELIECDYNcjs.makeRuntimeLayer; exports.makeRuntimeRecorder = _chunkKNTJ7FQBcjs.makeRuntimeRecorder; exports.makeScheduleDriver = _chunk5RZ7YITFcjs.makeScheduleDriver; exports.makeSemaphore = _chunk2OW6IFY2cjs.makeSemaphore; exports.makeServiceTag = _chunk5RZ7YITFcjs.makeServiceTag; exports.makeSupervisor = _chunk2OW6IFY2cjs.makeSupervisor; exports.makeTestLayer = _chunk5RZ7YITFcjs.makeTestLayer; exports.makeTestLayers = _chunk5RZ7YITFcjs.makeTestLayers; exports.makeTestRuntime = _chunk2OW6IFY2cjs.makeTestRuntime; exports.makeTracer = _chunk2OW6IFY2cjs.makeTracer; exports.makeWorkerPool = _chunk2OW6IFY2cjs.makeWorkerPool; exports.managed = _chunk5RZ7YITFcjs.managed; exports.managedAll = _chunk5RZ7YITFcjs.managedAll; exports.map = _chunkMVGUEJ5Zcjs.map; exports.mapAsync = _chunkMVGUEJ5Zcjs.mapAsync; exports.mapError = _chunkMVGUEJ5Zcjs.mapError; exports.mapErrorTyped = _chunk2OW6IFY2cjs.mapError; exports.mapLayer = _chunk5RZ7YITFcjs.mapLayer; exports.mapSchedule = _chunk5RZ7YITFcjs.map; exports.mapTryAsync = _chunkMVGUEJ5Zcjs.mapTryAsync; exports.maxDelay = _chunk5RZ7YITFcjs.maxDelay; exports.maxElapsed = _chunk5RZ7YITFcjs.maxElapsed; exports.mergeAll = _chunk5RZ7YITFcjs.mergeAll; exports.mergeLayer = _chunk5RZ7YITFcjs.merge; exports.modifyFiberRef = _chunkKNTJ7FQBcjs.modifyFiberRef; exports.namedSchedule = _chunk5RZ7YITFcjs.named; exports.never = _chunk5RZ7YITFcjs.never; exports.neverEffect = _chunk2OW6IFY2cjs.neverEffect; exports.none = _chunkMVGUEJ5Zcjs.none; exports.once = _chunk5RZ7YITFcjs.once; exports.orElse = _chunk2OW6IFY2cjs.orElse; exports.orElseOptional = _chunkMVGUEJ5Zcjs.orElseOptional; exports.pollWithSchedule = _chunk5RZ7YITFcjs.poll; exports.prettyCause = _chunkMVGUEJ5Zcjs.prettyCause; exports.provide = _chunk5RZ7YITFcjs.provide; exports.provideContext = _chunk5RZ7YITFcjs.provideContext; exports.provideLayer = _chunk5RZ7YITFcjs.provideLayer; exports.provideLayerContext = _chunk5RZ7YITFcjs.provideLayerContext; exports.recordAbortablePromiseFinish = _chunk2JHJ4YHScjs.recordAbortablePromiseFinish; exports.recordAbortablePromiseStart = _chunk2JHJ4YHScjs.recordAbortablePromiseStart; exports.recurs = _chunk5RZ7YITFcjs.recurs; exports.registerShutdownHooks = _chunk2OW6IFY2cjs.registerShutdownHooks; exports.repeatWithSchedule = _chunk5RZ7YITFcjs.repeatWithSchedule; exports.repeatWithScheduleAlias = _chunk5RZ7YITFcjs.repeat; exports.resetAbortablePromiseStats = _chunk2JHJ4YHScjs.resetAbortablePromiseStats; exports.resource = _chunk5RZ7YITFcjs.resource; exports.resourceAll = _chunk5RZ7YITFcjs.resourceAll; exports.resourceFromManaged = _chunk5RZ7YITFcjs.resourceFromManaged; exports.resourceSucceed = _chunk5RZ7YITFcjs.resourceSucceed; exports.retry = _chunk5RZ7YITFcjs.retry; exports.retryN = _chunk5RZ7YITFcjs.retryN; exports.retryWithBackoff = _chunk5RZ7YITFcjs.retryWithBackoff; exports.retryWithSchedule = _chunk5RZ7YITFcjs.retryWithSchedule; exports.retryWithScheduleAlias = _chunk5RZ7YITFcjs.retry2; exports.runEffect = _chunk2OW6IFY2cjs.runEffect; exports.runExit = _chunk2OW6IFY2cjs.runExit; exports.runPromise = _chunk2OW6IFY2cjs.runPromise; exports.runSchedule = _chunk5RZ7YITFcjs.runSchedule; exports.runtimeClockFromEnv = _chunk2JHJ4YHScjs.runtimeClockFromEnv; exports.runtimeEventRecordContext = _chunkWGE2FEZEcjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunk2JHJ4YHScjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunkWGE2FEZEcjs.runtimeHooksToEventHandler; exports.scheduleDriver = _chunk5RZ7YITFcjs.scheduleDriver; exports.serviceTag = _chunk5RZ7YITFcjs.serviceTag; exports.setAbortablePromisePerLabelTracking = _chunk2JHJ4YHScjs.setAbortablePromisePerLabelTracking; exports.setBenchmarkBudget = _chunk2JHJ4YHScjs.setBenchmarkBudget; exports.setFiberRef = _chunkKNTJ7FQBcjs.setFiberRef; exports.sleep = _chunk5RZ7YITFcjs.sleep; exports.some = _chunkMVGUEJ5Zcjs.some; exports.spaced = _chunk5RZ7YITFcjs.spaced; exports.succeed = _chunkMVGUEJ5Zcjs.succeed; exports.supervise = _chunk2OW6IFY2cjs.supervise; exports.sync = _chunkMVGUEJ5Zcjs.sync; exports.tagError = _chunk2OW6IFY2cjs.tagError; exports.takeSchedule = _chunk5RZ7YITFcjs.take; exports.tapDecision = _chunk5RZ7YITFcjs.tapDecision; exports.timeout = _chunk5RZ7YITFcjs.timeout; exports.toPromise = _chunk2JHJ4YHScjs.toPromise; exports.toPromiseByCaller = _chunk2JHJ4YHScjs.toPromiseByCaller; exports.uninterruptible = _chunkMVGUEJ5Zcjs.uninterruptible; exports.uninterruptibleMask = _chunkMVGUEJ5Zcjs.uninterruptibleMask; exports.union = _chunk5RZ7YITFcjs.union; exports.unit = _chunkMVGUEJ5Zcjs.unit; exports.unsafeGetCurrentRuntime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime; exports.unsafeGetFiberRef = _chunkKNTJ7FQBcjs.unsafeGetFiberRef; exports.unsafeRunAsync = _chunk2JHJ4YHScjs.unsafeRunAsync; exports.unsafeRunFoldWithEnv = _chunk2JHJ4YHScjs.unsafeRunFoldWithEnv; exports.unsafeSetFiberRef = _chunkKNTJ7FQBcjs.unsafeSetFiberRef; exports.untilInput = _chunk5RZ7YITFcjs.untilInput; exports.untilOutput = _chunk5RZ7YITFcjs.untilOutput; exports.upTo = _chunk5RZ7YITFcjs.upTo; exports.updateFiberRef = _chunkKNTJ7FQBcjs.updateFiberRef; exports.useManaged = _chunk5RZ7YITFcjs.useManaged; exports.useResource = _chunk5RZ7YITFcjs.useResource; exports.useService = _chunk5RZ7YITFcjs.useService; exports.useServices = _chunk5RZ7YITFcjs.useServices; exports.whileInput = _chunk5RZ7YITFcjs.whileInput; exports.whileOutput = _chunk5RZ7YITFcjs.whileOutput; exports.windowed = _chunk5RZ7YITFcjs.windowed; exports.withAsyncPromise = _chunkMVGUEJ5Zcjs.withAsyncPromise; exports.withCurrentFiber = _chunk2JHJ4YHScjs.withCurrentFiber; exports.withScope = _chunk2JHJ4YHScjs.withScope; exports.withScopeAsync = _chunk2JHJ4YHScjs.withScopeAsync;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { A as Async,
|
|
2
|
-
export { u as AbortablePromiseFinish, v as AbortablePromiseLabelStats, w as AbortablePromiseOptions, x as AbortablePromiseOutcome, y as AbortablePromiseStats,
|
|
3
|
-
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-
|
|
4
|
-
import { R as RuntimeClock,
|
|
5
|
-
export {
|
|
6
|
-
|
|
1
|
+
import { A as Async, a as RuntimeOptions, b as Runtime, E as Exit, aJ as Task, ay as ScheduleResult, aD as SchedulerStats, R as RuntimeHooks, f as RuntimeEventRecord, h as RuntimeRegistry, k as Fiber } from '../effect-DnGUuhw6.js';
|
|
2
|
+
export { u as AbortablePromiseFinish, v as AbortablePromiseLabelStats, w as AbortablePromiseOptions, x as AbortablePromiseOutcome, y as AbortablePromiseStats, z as AbortablePromiseTimerWheel, D as AsyncWithPromise, H as CancelToken, I as Canceler, K as Cause, L as CausePrettyOptions, M as ContextNode, $ as FiberContext, l as FiberId, a1 as FiberInfo, a5 as FiberRunState, m as FiberStatus, ah as Interrupted, ai as InterruptibilityMode, J as JSONValue, al as None, am as NoopHooks, O as Option, as as RestoreInterruptibility, e as RuntimeEmitContext, d as RuntimeEvent, i as RuntimeFiber, g as RuntimeSpanLink, S as Scope, aF as ScopeId, aG as ScopeInfo, aH as Some, T as TraceContext, 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, b3 as fail, b4 as flatMap, b5 as fork, b6 as formatCause, b7 as fromPromiseAbortable, b8 as getBenchmarkBudget, b9 as getCurrentFiber, bc as interruptible, bd as isCause, bf as linkAbortController, bh as makeCancelToken, 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, bv as runtimeEventRecordContext, bw as runtimeForCaller, 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 { 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';
|
|
4
|
+
import { R as RuntimeClock, k as RuntimeTimerId, j as RuntimeClockEnv, a as LayerContext, S as ServiceTag, L as Layer, l as Schedule } from '../layer-D2LFcBVx.js';
|
|
5
|
+
export { B as BuiltLayer, b as CircuitBreaker, c as CircuitBreakerConfig, d as CircuitBreakerError, e as CircuitBreakerState, C as CircuitBreakerStats, f as LayerErrorOf, g as LayerInputOf, h as LayerOutputOf, i as LayerScope, M as MissingLayerServiceError, m as ScheduleDecision, n as ScheduleDriver, o as ScheduleDriverDecision, p as ScheduleDriverOptions, q as ScheduleDriverSnapshot, r as ScheduleObserver, s as ScheduleObserverEvent, t as ScheduleStepContext, 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
|
+
import { JsonSchemaLike } from '../schema/index.js';
|
|
7
|
+
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
8
|
|
|
8
9
|
type TimeoutError = {
|
|
9
10
|
readonly _tag: "TimeoutError";
|
|
@@ -382,153 +383,19 @@ declare function delayedEffect<A>(ms: number, value: A): Async<unknown, never, A
|
|
|
382
383
|
*/
|
|
383
384
|
declare function neverEffect<A = never>(): Async<unknown, never, A>;
|
|
384
385
|
|
|
385
|
-
type
|
|
386
|
-
|
|
387
|
-
readonly
|
|
388
|
-
readonly name: string;
|
|
389
|
-
};
|
|
390
|
-
declare class MissingLayerServiceError extends Error {
|
|
391
|
-
readonly _tag: "MissingLayerService";
|
|
392
|
-
readonly serviceName: string;
|
|
393
|
-
constructor(serviceName: string);
|
|
394
|
-
}
|
|
395
|
-
declare function formatLayerError(error: unknown): string;
|
|
396
|
-
declare function makeServiceTag<A>(name: string): ServiceTag<A>;
|
|
397
|
-
declare const serviceTag: typeof makeServiceTag;
|
|
398
|
-
declare const defineService: typeof makeServiceTag;
|
|
399
|
-
declare class LayerContext<Services = unknown> {
|
|
400
|
-
private readonly services;
|
|
401
|
-
constructor(entries?: Iterable<readonly [ServiceTag<any>, unknown]> | Map<symbol, unknown>);
|
|
402
|
-
static empty(): LayerContext<unknown>;
|
|
403
|
-
get<A>(tag: ServiceTag<A>): A | undefined;
|
|
404
|
-
unsafeGet<A>(tag: ServiceTag<A>): A;
|
|
405
|
-
has(tag: ServiceTag<unknown>): boolean;
|
|
406
|
-
add<A>(tag: ServiceTag<A>, service: A): LayerContext<Services & A>;
|
|
407
|
-
merge<Other>(other: LayerContext<Other>): LayerContext<Services & Other>;
|
|
408
|
-
size(): number;
|
|
409
|
-
}
|
|
410
|
-
type LayerScope = {
|
|
411
|
-
readonly get: <RIn, E, ROut>(layer: Layer<RIn, E, ROut>, deps?: RIn) => Async<unknown, E, ROut>;
|
|
412
|
-
readonly close: () => Async<unknown, never, void>;
|
|
413
|
-
readonly size: () => number;
|
|
414
|
-
};
|
|
415
|
-
type BuiltLayer<ROut> = {
|
|
416
|
-
readonly service: ROut;
|
|
417
|
-
readonly scope: LayerScope;
|
|
418
|
-
readonly close: () => Async<unknown, never, void>;
|
|
419
|
-
readonly use: <E, A>(body: (service: ROut) => Async<unknown, E, A>) => Async<unknown, E, A>;
|
|
386
|
+
type ConfigLayerSource = unknown | ((context: LayerContext) => unknown);
|
|
387
|
+
type ConfigLayerOptions = {
|
|
388
|
+
readonly name?: string;
|
|
420
389
|
};
|
|
421
|
-
declare function
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
* (pool) => pool.close()
|
|
429
|
-
* );
|
|
430
|
-
* ```
|
|
431
|
-
*/
|
|
432
|
-
declare function layer<ROut, E = never>(acquire: () => Async<unknown, E, ROut>, release?: (service: ROut) => Async<unknown, never, void>): Layer<unknown, E, ROut>;
|
|
433
|
-
declare function layerValue<A>(tag: ServiceTag<A>, value: A): Layer<LayerContext, never, LayerContext>;
|
|
434
|
-
declare function layerEffect<E, A>(tag: ServiceTag<A>, acquire: (deps: LayerContext) => Async<unknown, E, A>, release?: (service: A) => Async<unknown, never, void>): Layer<LayerContext, E, LayerContext>;
|
|
435
|
-
declare const layerFromContext: typeof layerEffect;
|
|
436
|
-
declare const defineLayer: typeof layerEffect;
|
|
437
|
-
declare function getService<A>(tag: ServiceTag<A>): Async<LayerContext, MissingLayerServiceError, A>;
|
|
438
|
-
/**
|
|
439
|
-
* Creates a Layer that depends on another service.
|
|
440
|
-
*
|
|
441
|
-
* ```ts
|
|
442
|
-
* const RepoLayer = layerFrom<DbPool>()(
|
|
443
|
-
* (pool) => createRepo(pool),
|
|
444
|
-
* (repo) => repo.close()
|
|
445
|
-
* );
|
|
446
|
-
* ```
|
|
447
|
-
*/
|
|
448
|
-
declare function layerFrom<RIn>(): <ROut, E = never>(acquire: (deps: RIn) => Async<unknown, E, ROut>, release?: (service: ROut) => Async<unknown, never, void>) => Layer<RIn, E, ROut>;
|
|
449
|
-
/**
|
|
450
|
-
* Creates a Layer from a pure value (no lifecycle).
|
|
451
|
-
*
|
|
452
|
-
* ```ts
|
|
453
|
-
* const ConfigLayer = layerSucceed({ port: 3000, host: "localhost" });
|
|
454
|
-
* ```
|
|
455
|
-
*/
|
|
456
|
-
declare function layerSucceed<ROut>(value: ROut): Layer<unknown, never, ROut>;
|
|
457
|
-
/**
|
|
458
|
-
* Creates a Layer that always fails.
|
|
459
|
-
*/
|
|
460
|
-
declare function layerFail<E>(error: E): Layer<unknown, E, never>;
|
|
461
|
-
/**
|
|
462
|
-
* Compose two layers: the output of `from` feeds into `to`.
|
|
463
|
-
*
|
|
464
|
-
* ```ts
|
|
465
|
-
* const AppLayer = compose(DbLayer, RepoLayer);
|
|
466
|
-
* // DbLayer produces DbPool → RepoLayer consumes DbPool → produces Repo
|
|
467
|
-
* ```
|
|
468
|
-
*/
|
|
469
|
-
declare function compose<R1, E1, Mid, E2, ROut>(from: Layer<R1, E1, Mid>, to: Layer<Mid, E2, ROut>): Layer<R1, E1 | E2, ROut>;
|
|
470
|
-
/**
|
|
471
|
-
* Merge two independent layers into one that produces both services.
|
|
472
|
-
*
|
|
473
|
-
* ```ts
|
|
474
|
-
* const AppLayer = merge(DbLayer, CacheLayer);
|
|
475
|
-
* // Produces { db: DbPool, cache: CacheClient }
|
|
476
|
-
* ```
|
|
477
|
-
*/
|
|
478
|
-
declare function merge<R1, E1, A, R2, E2, B>(left: Layer<R1, E1, A>, right: Layer<R2, E2, B>): Layer<R1 & R2, E1 | E2, A & B>;
|
|
479
|
-
/**
|
|
480
|
-
* Map the output of a layer.
|
|
481
|
-
*/
|
|
482
|
-
declare function mapLayer<RIn, E, A, B>(l: Layer<RIn, E, A>, f: (a: A) => B): Layer<RIn, E, B>;
|
|
483
|
-
declare function buildLayer<RIn, E, ROut>(l: Layer<RIn, E, ROut>, deps?: RIn): Async<unknown, E, BuiltLayer<ROut>>;
|
|
484
|
-
/**
|
|
485
|
-
* Builds a layer, runs an effect with the produced service, and releases.
|
|
486
|
-
*
|
|
487
|
-
* ```ts
|
|
488
|
-
* const result = await run(
|
|
489
|
-
* provideLayer(AppLayer, (services) => services.db.query("SELECT 1"))
|
|
490
|
-
* );
|
|
491
|
-
* ```
|
|
492
|
-
*/
|
|
493
|
-
declare function provideLayer<RIn, E, ROut, E2, A>(l: Layer<RIn, E, ROut>, use: (service: ROut) => Async<unknown, E2, A>, deps?: RIn): Async<unknown, E | E2, A>;
|
|
494
|
-
declare function provideLayerContext<E, E2, A>(l: Layer<LayerContext, E, LayerContext>, use: (context: LayerContext) => Async<unknown, E2, A>, deps?: LayerContext): Async<unknown, E | E2, A>;
|
|
495
|
-
declare const provide: typeof provideLayer;
|
|
496
|
-
declare const provideContext: typeof provideLayerContext;
|
|
497
|
-
/**
|
|
498
|
-
* A Layer describes how to build a service.
|
|
499
|
-
*
|
|
500
|
-
* - RIn: dependencies required to build this service
|
|
501
|
-
* - E: possible failure during construction
|
|
502
|
-
* - ROut: the service produced
|
|
503
|
-
*/
|
|
504
|
-
type Layer<RIn, E, ROut> = {
|
|
505
|
-
readonly _tag: "Layer";
|
|
506
|
-
readonly build: (deps: RIn) => Async<unknown, E, {
|
|
507
|
-
service: ROut;
|
|
508
|
-
release: () => Async<unknown, never, void>;
|
|
509
|
-
}>;
|
|
510
|
-
readonly buildScoped?: (deps: RIn, scope: LayerScope) => Async<unknown, E, ROut>;
|
|
390
|
+
declare function makeConfigLayer<A>(tag: ServiceTag<A>, schema: JsonSchemaLike<A>, source: ConfigLayerSource, options?: ConfigLayerOptions): Layer<LayerContext, unknown, LayerContext>;
|
|
391
|
+
declare const defineConfigLayer: typeof makeConfigLayer;
|
|
392
|
+
|
|
393
|
+
declare const RuntimeService: ServiceTag<Runtime<any>>;
|
|
394
|
+
type RuntimeLayerEnv<R extends object> = R | ((context: LayerContext) => R);
|
|
395
|
+
type RuntimeLayerOptions<R extends object> = Omit<RuntimeOptions<R>, "env"> & {
|
|
396
|
+
readonly tag?: ServiceTag<Runtime<R>>;
|
|
511
397
|
};
|
|
512
|
-
declare
|
|
513
|
-
make: typeof layer;
|
|
514
|
-
from: typeof layerFrom;
|
|
515
|
-
succeed: typeof layerSucceed;
|
|
516
|
-
fail: typeof layerFail;
|
|
517
|
-
value: typeof layerValue;
|
|
518
|
-
effect: typeof layerEffect;
|
|
519
|
-
define: typeof layerEffect;
|
|
520
|
-
fromContext: typeof layerEffect;
|
|
521
|
-
compose: typeof compose;
|
|
522
|
-
merge: typeof merge;
|
|
523
|
-
map: typeof mapLayer;
|
|
524
|
-
provide: typeof provideLayer;
|
|
525
|
-
provideContext: typeof provideLayerContext;
|
|
526
|
-
build: typeof buildLayer;
|
|
527
|
-
scope: typeof makeLayerScope;
|
|
528
|
-
context: typeof LayerContext.empty;
|
|
529
|
-
tag: typeof makeServiceTag;
|
|
530
|
-
service: typeof getService;
|
|
531
|
-
}>;
|
|
398
|
+
declare function makeRuntimeLayer<R extends object = {}>(env?: RuntimeLayerEnv<R>, options?: RuntimeLayerOptions<R>): Layer<LayerContext, unknown, LayerContext>;
|
|
532
399
|
|
|
533
400
|
type WorkerPoolConfig = {
|
|
534
401
|
/** Number of worker threads. Default: number of CPUs - 1 */
|
|
@@ -769,4 +636,4 @@ declare function makeSupervisor<R>(runtime: Runtime<R>, config?: SupervisorConfi
|
|
|
769
636
|
declare function supervise<R, E, A>(runtime: Runtime<R>, spec: SupervisedChildSpec<R, E, A>, config?: SupervisorConfig): SupervisedFiber<E, A>;
|
|
770
637
|
declare function joinSupervised<E, A>(fiber: SupervisedFiber<E, A>): Async<unknown, E, A>;
|
|
771
638
|
|
|
772
|
-
export { Async, type
|
|
639
|
+
export { Async, type ConfigLayerOptions, type ConfigLayerSource, type EffectEnvironment, type EffectFailure, type EffectSuccess, Exit, Fiber, type FiberRef, Layer, LayerContext, type LogLevel, type MakeRuntimeOptions, type Ref, type RetryPolicy, type RetryState, Runtime, RuntimeClock, RuntimeClockEnv, RuntimeEventRecord, RuntimeHooks, type RuntimeLayerEnv, type RuntimeLayerOptions, RuntimeOptions, type RuntimeRecorder, type RuntimeRecorderExplainOptions, type RuntimeRecorderOptions, type RuntimeRecorderStats, RuntimeRegistry, RuntimeService, RuntimeTimerId, Schedule, type Semaphore, type SemaphoreStats, ServiceTag, type ShutdownConfig, type ShutdownStats, type SupervisedChildSpec, type SupervisedChildStatus, type SupervisedFiber, Supervisor, type SupervisorConfig, type SupervisorEscalation, type SupervisorEvent, type SupervisorRestartContext, type SupervisorRestartMode, type SupervisorRestartPolicy, type SupervisorStrategy, type TaggedError, TestClock, type TestClockTimerSnapshot, type TestRuntime, type TestRuntimeOptions, type TestScheduledTask, TestScheduler, type TimeoutError, type WorkerPool, type WorkerPoolConfig, type WorkerPoolError, type 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, mapError as mapErrorTyped, modifyFiberRef, neverEffect, orElse, registerShutdownHooks, retry, retryN, retryWithBackoff, runEffect, runExit, runPromise, setFiberRef, sleep, supervise, tagError, timeout, unsafeGetFiberRef, unsafeSetFiberRef, updateFiberRef };
|