brass-runtime 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +410 -135
  2. package/dist/agent/cli/main.cjs +49 -43
  3. package/dist/agent/cli/main.js +11 -5
  4. package/dist/agent/cli/main.mjs +11 -5
  5. package/dist/agent/index.cjs +8 -3
  6. package/dist/agent/index.d.ts +1 -1
  7. package/dist/agent/index.js +7 -2
  8. package/dist/agent/index.mjs +7 -2
  9. package/dist/{chunk-BMRF4FN6.js → chunk-2WC63LJK.mjs} +68 -242
  10. package/dist/chunk-3RG5ZIWI.js +10 -0
  11. package/dist/chunk-45F7OKGT.cjs +104 -0
  12. package/dist/chunk-5YOQOXEQ.cjs +2491 -0
  13. package/dist/chunk-7HUOJA4W.cjs +493 -0
  14. package/dist/{chunk-4N2JEK4H.mjs → chunk-7LVI2GIN.js} +252 -495
  15. package/dist/chunk-7TL2LHQJ.js +2491 -0
  16. package/dist/chunk-7V4KY4RL.mjs +104 -0
  17. package/dist/chunk-7XOPAB5Q.js +2143 -0
  18. package/dist/chunk-CCKHV5BT.mjs +193 -0
  19. package/dist/chunk-CY33PGEX.mjs +1110 -0
  20. package/dist/chunk-DJQ7OMMB.cjs +144 -0
  21. package/dist/chunk-F5EUMJL7.mjs +2143 -0
  22. package/dist/chunk-FM4W4QPL.js +193 -0
  23. package/dist/chunk-G3XGCZDQ.js +131 -0
  24. package/dist/{chunk-JT7D6M5H.js → chunk-G6IQOE4P.mjs} +252 -495
  25. package/dist/chunk-GOV47PPB.mjs +552 -0
  26. package/dist/chunk-H55LI6WY.js +93 -0
  27. package/dist/chunk-IJT6RRQ5.cjs +93 -0
  28. package/dist/chunk-J3H54ZRV.mjs +131 -0
  29. package/dist/chunk-JF4XXPZ5.cjs +552 -0
  30. package/dist/chunk-JNFRRJYH.cjs +2143 -0
  31. package/dist/chunk-JX3LZQJH.cjs +354 -0
  32. package/dist/chunk-K2T3DV26.mjs +93 -0
  33. package/dist/chunk-KCPT2D6G.js +552 -0
  34. package/dist/chunk-MWXMNYJS.cjs +1110 -0
  35. package/dist/{chunk-XTMZTVIT.cjs → chunk-N6VHMOWB.cjs} +140 -134
  36. package/dist/{chunk-WJESVBWN.js → chunk-NC5SDRYE.js} +16 -10
  37. package/dist/chunk-NOYZIMUJ.mjs +144 -0
  38. package/dist/chunk-NYL4D7SK.cjs +131 -0
  39. package/dist/chunk-OBGZSXTJ.cjs +10 -0
  40. package/dist/{chunk-UWMMYKVK.mjs → chunk-OOGJ73B6.js} +68 -242
  41. package/dist/chunk-PNVFW245.js +144 -0
  42. package/dist/chunk-PRWCB3QL.mjs +2491 -0
  43. package/dist/chunk-QY5FKYEQ.js +1110 -0
  44. package/dist/chunk-ROJC3NBJ.js +104 -0
  45. package/dist/chunk-SPUEME2B.cjs +343 -0
  46. package/dist/chunk-TDVMADDN.js +343 -0
  47. package/dist/chunk-TVN5I4U6.cjs +193 -0
  48. package/dist/chunk-U5KWK3PX.mjs +343 -0
  49. package/dist/chunk-VFIUZG7J.mjs +354 -0
  50. package/dist/{chunk-BKBFSOGT.cjs → chunk-WQ5QNU5R.cjs} +460 -703
  51. package/dist/chunk-XDZOO4L5.js +354 -0
  52. package/dist/chunk-Y6FXYEAI.mjs +10 -0
  53. package/dist/{chunk-MQF7HZ7Y.mjs → chunk-ZGLD4TVZ.mjs} +16 -10
  54. package/dist/client-CtFmoDvM.d.ts +645 -0
  55. package/dist/core/index.cjs +284 -0
  56. package/dist/core/index.d.ts +567 -0
  57. package/dist/core/index.js +284 -0
  58. package/dist/core/index.mjs +284 -0
  59. package/dist/{effect-DM56H743.d.ts → effect-CGNl5Rqp.d.ts} +118 -11
  60. package/dist/effectRunner-3ZHAD3LE.cjs +8 -0
  61. package/dist/effectRunner-A4CHJXJI.js +8 -0
  62. package/dist/effectRunner-OPUF6QRN.mjs +8 -0
  63. package/dist/http/index.cjs +4130 -890
  64. package/dist/http/index.d.ts +2289 -219
  65. package/dist/http/index.js +4116 -876
  66. package/dist/http/index.mjs +4116 -876
  67. package/dist/http/testing.cjs +159 -0
  68. package/dist/http/testing.d.ts +42 -0
  69. package/dist/http/testing.js +159 -0
  70. package/dist/http/testing.mjs +159 -0
  71. package/dist/index.cjs +305 -1168
  72. package/dist/index.d.ts +9 -701
  73. package/dist/index.js +176 -1039
  74. package/dist/index.mjs +176 -1039
  75. package/dist/observability/index.cjs +677 -0
  76. package/dist/observability/index.d.ts +79 -0
  77. package/dist/observability/index.js +677 -0
  78. package/dist/observability/index.mjs +677 -0
  79. package/dist/schedule-Fque9Abz.d.ts +70 -0
  80. package/dist/schema/index.cjs +25 -0
  81. package/dist/schema/index.d.ts +177 -0
  82. package/dist/schema/index.js +25 -0
  83. package/dist/schema/index.mjs +25 -0
  84. package/dist/server-C8hDXA74.d.ts +674 -0
  85. package/dist/stream-dvSs0QS5.d.ts +74 -0
  86. package/dist/tracer-B5tRH9H7.d.ts +230 -0
  87. package/dist/tracing-Dt9S_6V8.d.ts +148 -0
  88. package/package.json +37 -3
  89. package/dist/chunk-SKVY72E5.cjs +0 -667
  90. package/dist/stream-Oqe6WeLE.d.ts +0 -173
@@ -0,0 +1,284 @@
1
+ import {
2
+ RuntimeRegistry,
3
+ Supervisor,
4
+ assertCompletesWithin,
5
+ assertFails,
6
+ assertFailsWith,
7
+ assertSucceeds,
8
+ catchTag,
9
+ catchTags,
10
+ compose,
11
+ consoleJsonLogger,
12
+ defaultTracer,
13
+ delayedEffect,
14
+ derivedRef,
15
+ dumpAllFibers,
16
+ flakyEffect,
17
+ gracefulShutdown,
18
+ joinSupervised,
19
+ layer,
20
+ layerFail,
21
+ layerFrom,
22
+ layerSucceed,
23
+ linkAbortController,
24
+ makeCancelToken,
25
+ makeRef,
26
+ makeSemaphore,
27
+ makeSupervisor,
28
+ makeTestRuntime,
29
+ makeTracer,
30
+ makeWorkerPool,
31
+ mapError as mapError2,
32
+ mapLayer,
33
+ merge,
34
+ neverEffect,
35
+ orElse,
36
+ provideLayer,
37
+ registerShutdownHooks,
38
+ supervise,
39
+ tagError
40
+ } from "../chunk-QY5FKYEQ.js";
41
+ import {
42
+ Resource,
43
+ andThen,
44
+ bracket,
45
+ contramap,
46
+ elapsed,
47
+ ensuring,
48
+ exponential,
49
+ fibonacci,
50
+ fixed,
51
+ intersect,
52
+ jitter,
53
+ jittered,
54
+ jitteredSchedule,
55
+ makeCircuitBreaker,
56
+ makeResource,
57
+ managed,
58
+ managedAll,
59
+ map as map2,
60
+ recurs,
61
+ repeatWithSchedule,
62
+ resource,
63
+ resourceAll,
64
+ resourceFromManaged,
65
+ resourceSucceed,
66
+ retryWithSchedule,
67
+ take,
68
+ union,
69
+ useManaged,
70
+ useResource,
71
+ whileInput,
72
+ windowed
73
+ } from "../chunk-KCPT2D6G.js";
74
+ import {
75
+ retry,
76
+ retryN,
77
+ retryWithBackoff,
78
+ sleep,
79
+ timeout
80
+ } from "../chunk-ROJC3NBJ.js";
81
+ import {
82
+ EventBus,
83
+ InMemoryTracer,
84
+ makeMetrics,
85
+ makeRuntimeEventRecord,
86
+ runtimeEventRecordContext,
87
+ runtimeHooksToEventHandler
88
+ } from "../chunk-XDZOO4L5.js";
89
+ import {
90
+ Scope,
91
+ withScope,
92
+ withScopeAsync
93
+ } from "../chunk-FM4W4QPL.js";
94
+ import {
95
+ NoopHooks,
96
+ Runtime,
97
+ RuntimeFiber,
98
+ abortablePromiseStats,
99
+ ctxExtend,
100
+ ctxToObject,
101
+ emptyContext,
102
+ fork,
103
+ fromPromiseAbortable,
104
+ getBenchmarkBudget,
105
+ getCurrentFiber,
106
+ resetAbortablePromiseStats,
107
+ runtimeForCaller,
108
+ setBenchmarkBudget,
109
+ toPromise,
110
+ toPromiseByCaller,
111
+ unsafeGetCurrentRuntime,
112
+ unsafeRunAsync,
113
+ unsafeRunFoldWithEnv,
114
+ withCurrentFiber
115
+ } from "../chunk-7LVI2GIN.js";
116
+ import {
117
+ Async,
118
+ Cause,
119
+ Exit,
120
+ acquireRelease,
121
+ asyncCatchAll,
122
+ asyncEffect,
123
+ asyncFail,
124
+ asyncFlatMap,
125
+ asyncFold,
126
+ asyncInterruptible,
127
+ asyncMap,
128
+ asyncMapError,
129
+ asyncSucceed,
130
+ asyncSync,
131
+ asyncTotal,
132
+ catchAll,
133
+ end,
134
+ fail,
135
+ flatMap,
136
+ map,
137
+ mapAsync,
138
+ mapError,
139
+ mapTryAsync,
140
+ none,
141
+ orElseOptional,
142
+ some,
143
+ succeed,
144
+ sync,
145
+ unit,
146
+ withAsyncPromise
147
+ } from "../chunk-PNVFW245.js";
148
+ import "../chunk-TDVMADDN.js";
149
+ import "../chunk-3RG5ZIWI.js";
150
+ export {
151
+ Async,
152
+ Cause,
153
+ EventBus,
154
+ Exit,
155
+ InMemoryTracer,
156
+ NoopHooks,
157
+ Resource,
158
+ Runtime,
159
+ RuntimeFiber,
160
+ RuntimeRegistry,
161
+ Scope,
162
+ Supervisor,
163
+ abortablePromiseStats,
164
+ acquireRelease,
165
+ andThen as andThenSchedule,
166
+ assertCompletesWithin,
167
+ assertFails,
168
+ assertFailsWith,
169
+ assertSucceeds,
170
+ asyncEffect as async,
171
+ asyncCatchAll,
172
+ asyncFail,
173
+ asyncFlatMap,
174
+ asyncFold,
175
+ asyncInterruptible,
176
+ asyncMap,
177
+ asyncMapError,
178
+ asyncSucceed,
179
+ asyncSync,
180
+ asyncTotal,
181
+ bracket,
182
+ catchAll,
183
+ catchTag,
184
+ catchTags,
185
+ compose as composeLayer,
186
+ consoleJsonLogger,
187
+ contramap as contramapSchedule,
188
+ ctxExtend,
189
+ ctxToObject,
190
+ defaultTracer,
191
+ delayedEffect,
192
+ derivedRef,
193
+ dumpAllFibers,
194
+ elapsed,
195
+ emptyContext,
196
+ end,
197
+ ensuring,
198
+ exponential,
199
+ fail,
200
+ fibonacci,
201
+ fixed,
202
+ flakyEffect,
203
+ flatMap,
204
+ fork,
205
+ fromPromiseAbortable,
206
+ getBenchmarkBudget,
207
+ getCurrentFiber,
208
+ gracefulShutdown,
209
+ intersect,
210
+ jitter,
211
+ jittered,
212
+ jitteredSchedule,
213
+ joinSupervised,
214
+ layer,
215
+ layerFail,
216
+ layerFrom,
217
+ layerSucceed,
218
+ linkAbortController,
219
+ makeCancelToken,
220
+ makeCircuitBreaker,
221
+ makeMetrics,
222
+ makeRef,
223
+ makeResource,
224
+ makeRuntimeEventRecord,
225
+ makeSemaphore,
226
+ makeSupervisor,
227
+ makeTestRuntime,
228
+ makeTracer,
229
+ makeWorkerPool,
230
+ managed,
231
+ managedAll,
232
+ map,
233
+ mapAsync,
234
+ mapError,
235
+ mapError2 as mapErrorTyped,
236
+ mapLayer,
237
+ map2 as mapSchedule,
238
+ mapTryAsync,
239
+ merge as mergeLayer,
240
+ neverEffect,
241
+ none,
242
+ orElse,
243
+ orElseOptional,
244
+ provideLayer,
245
+ recurs,
246
+ registerShutdownHooks,
247
+ repeatWithSchedule,
248
+ resetAbortablePromiseStats,
249
+ resource,
250
+ resourceAll,
251
+ resourceFromManaged,
252
+ resourceSucceed,
253
+ retry,
254
+ retryN,
255
+ retryWithBackoff,
256
+ retryWithSchedule,
257
+ runtimeEventRecordContext,
258
+ runtimeForCaller,
259
+ runtimeHooksToEventHandler,
260
+ setBenchmarkBudget,
261
+ sleep,
262
+ some,
263
+ succeed,
264
+ supervise,
265
+ sync,
266
+ tagError,
267
+ take as takeSchedule,
268
+ timeout,
269
+ toPromise,
270
+ toPromiseByCaller,
271
+ union,
272
+ unit,
273
+ unsafeGetCurrentRuntime,
274
+ unsafeRunAsync,
275
+ unsafeRunFoldWithEnv,
276
+ useManaged,
277
+ useResource,
278
+ whileInput,
279
+ windowed,
280
+ withAsyncPromise,
281
+ withCurrentFiber,
282
+ withScope,
283
+ withScopeAsync
284
+ };
@@ -0,0 +1,284 @@
1
+ import {
2
+ RuntimeRegistry,
3
+ Supervisor,
4
+ assertCompletesWithin,
5
+ assertFails,
6
+ assertFailsWith,
7
+ assertSucceeds,
8
+ catchTag,
9
+ catchTags,
10
+ compose,
11
+ consoleJsonLogger,
12
+ defaultTracer,
13
+ delayedEffect,
14
+ derivedRef,
15
+ dumpAllFibers,
16
+ flakyEffect,
17
+ gracefulShutdown,
18
+ joinSupervised,
19
+ layer,
20
+ layerFail,
21
+ layerFrom,
22
+ layerSucceed,
23
+ linkAbortController,
24
+ makeCancelToken,
25
+ makeRef,
26
+ makeSemaphore,
27
+ makeSupervisor,
28
+ makeTestRuntime,
29
+ makeTracer,
30
+ makeWorkerPool,
31
+ mapError as mapError2,
32
+ mapLayer,
33
+ merge,
34
+ neverEffect,
35
+ orElse,
36
+ provideLayer,
37
+ registerShutdownHooks,
38
+ supervise,
39
+ tagError
40
+ } from "../chunk-CY33PGEX.mjs";
41
+ import {
42
+ Resource,
43
+ andThen,
44
+ bracket,
45
+ contramap,
46
+ elapsed,
47
+ ensuring,
48
+ exponential,
49
+ fibonacci,
50
+ fixed,
51
+ intersect,
52
+ jitter,
53
+ jittered,
54
+ jitteredSchedule,
55
+ makeCircuitBreaker,
56
+ makeResource,
57
+ managed,
58
+ managedAll,
59
+ map as map2,
60
+ recurs,
61
+ repeatWithSchedule,
62
+ resource,
63
+ resourceAll,
64
+ resourceFromManaged,
65
+ resourceSucceed,
66
+ retryWithSchedule,
67
+ take,
68
+ union,
69
+ useManaged,
70
+ useResource,
71
+ whileInput,
72
+ windowed
73
+ } from "../chunk-GOV47PPB.mjs";
74
+ import {
75
+ retry,
76
+ retryN,
77
+ retryWithBackoff,
78
+ sleep,
79
+ timeout
80
+ } from "../chunk-7V4KY4RL.mjs";
81
+ import {
82
+ EventBus,
83
+ InMemoryTracer,
84
+ makeMetrics,
85
+ makeRuntimeEventRecord,
86
+ runtimeEventRecordContext,
87
+ runtimeHooksToEventHandler
88
+ } from "../chunk-VFIUZG7J.mjs";
89
+ import {
90
+ Scope,
91
+ withScope,
92
+ withScopeAsync
93
+ } from "../chunk-CCKHV5BT.mjs";
94
+ import {
95
+ NoopHooks,
96
+ Runtime,
97
+ RuntimeFiber,
98
+ abortablePromiseStats,
99
+ ctxExtend,
100
+ ctxToObject,
101
+ emptyContext,
102
+ fork,
103
+ fromPromiseAbortable,
104
+ getBenchmarkBudget,
105
+ getCurrentFiber,
106
+ resetAbortablePromiseStats,
107
+ runtimeForCaller,
108
+ setBenchmarkBudget,
109
+ toPromise,
110
+ toPromiseByCaller,
111
+ unsafeGetCurrentRuntime,
112
+ unsafeRunAsync,
113
+ unsafeRunFoldWithEnv,
114
+ withCurrentFiber
115
+ } from "../chunk-G6IQOE4P.mjs";
116
+ import {
117
+ Async,
118
+ Cause,
119
+ Exit,
120
+ acquireRelease,
121
+ asyncCatchAll,
122
+ asyncEffect,
123
+ asyncFail,
124
+ asyncFlatMap,
125
+ asyncFold,
126
+ asyncInterruptible,
127
+ asyncMap,
128
+ asyncMapError,
129
+ asyncSucceed,
130
+ asyncSync,
131
+ asyncTotal,
132
+ catchAll,
133
+ end,
134
+ fail,
135
+ flatMap,
136
+ map,
137
+ mapAsync,
138
+ mapError,
139
+ mapTryAsync,
140
+ none,
141
+ orElseOptional,
142
+ some,
143
+ succeed,
144
+ sync,
145
+ unit,
146
+ withAsyncPromise
147
+ } from "../chunk-NOYZIMUJ.mjs";
148
+ import "../chunk-U5KWK3PX.mjs";
149
+ import "../chunk-Y6FXYEAI.mjs";
150
+ export {
151
+ Async,
152
+ Cause,
153
+ EventBus,
154
+ Exit,
155
+ InMemoryTracer,
156
+ NoopHooks,
157
+ Resource,
158
+ Runtime,
159
+ RuntimeFiber,
160
+ RuntimeRegistry,
161
+ Scope,
162
+ Supervisor,
163
+ abortablePromiseStats,
164
+ acquireRelease,
165
+ andThen as andThenSchedule,
166
+ assertCompletesWithin,
167
+ assertFails,
168
+ assertFailsWith,
169
+ assertSucceeds,
170
+ asyncEffect as async,
171
+ asyncCatchAll,
172
+ asyncFail,
173
+ asyncFlatMap,
174
+ asyncFold,
175
+ asyncInterruptible,
176
+ asyncMap,
177
+ asyncMapError,
178
+ asyncSucceed,
179
+ asyncSync,
180
+ asyncTotal,
181
+ bracket,
182
+ catchAll,
183
+ catchTag,
184
+ catchTags,
185
+ compose as composeLayer,
186
+ consoleJsonLogger,
187
+ contramap as contramapSchedule,
188
+ ctxExtend,
189
+ ctxToObject,
190
+ defaultTracer,
191
+ delayedEffect,
192
+ derivedRef,
193
+ dumpAllFibers,
194
+ elapsed,
195
+ emptyContext,
196
+ end,
197
+ ensuring,
198
+ exponential,
199
+ fail,
200
+ fibonacci,
201
+ fixed,
202
+ flakyEffect,
203
+ flatMap,
204
+ fork,
205
+ fromPromiseAbortable,
206
+ getBenchmarkBudget,
207
+ getCurrentFiber,
208
+ gracefulShutdown,
209
+ intersect,
210
+ jitter,
211
+ jittered,
212
+ jitteredSchedule,
213
+ joinSupervised,
214
+ layer,
215
+ layerFail,
216
+ layerFrom,
217
+ layerSucceed,
218
+ linkAbortController,
219
+ makeCancelToken,
220
+ makeCircuitBreaker,
221
+ makeMetrics,
222
+ makeRef,
223
+ makeResource,
224
+ makeRuntimeEventRecord,
225
+ makeSemaphore,
226
+ makeSupervisor,
227
+ makeTestRuntime,
228
+ makeTracer,
229
+ makeWorkerPool,
230
+ managed,
231
+ managedAll,
232
+ map,
233
+ mapAsync,
234
+ mapError,
235
+ mapError2 as mapErrorTyped,
236
+ mapLayer,
237
+ map2 as mapSchedule,
238
+ mapTryAsync,
239
+ merge as mergeLayer,
240
+ neverEffect,
241
+ none,
242
+ orElse,
243
+ orElseOptional,
244
+ provideLayer,
245
+ recurs,
246
+ registerShutdownHooks,
247
+ repeatWithSchedule,
248
+ resetAbortablePromiseStats,
249
+ resource,
250
+ resourceAll,
251
+ resourceFromManaged,
252
+ resourceSucceed,
253
+ retry,
254
+ retryN,
255
+ retryWithBackoff,
256
+ retryWithSchedule,
257
+ runtimeEventRecordContext,
258
+ runtimeForCaller,
259
+ runtimeHooksToEventHandler,
260
+ setBenchmarkBudget,
261
+ sleep,
262
+ some,
263
+ succeed,
264
+ supervise,
265
+ sync,
266
+ tagError,
267
+ take as takeSchedule,
268
+ timeout,
269
+ toPromise,
270
+ toPromiseByCaller,
271
+ union,
272
+ unit,
273
+ unsafeGetCurrentRuntime,
274
+ unsafeRunAsync,
275
+ unsafeRunFoldWithEnv,
276
+ useManaged,
277
+ useResource,
278
+ whileInput,
279
+ windowed,
280
+ withAsyncPromise,
281
+ withCurrentFiber,
282
+ withScope,
283
+ withScopeAsync
284
+ };