brass-runtime 1.16.0 → 1.16.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/CHANGELOG.md +17 -0
- package/README.md +283 -18
- package/dist/agent/cli/main.cjs +38 -38
- package/dist/agent/cli/main.js +6 -6
- package/dist/agent/cli/main.mjs +6 -6
- package/dist/agent/index.cjs +7 -7
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +6 -6
- package/dist/agent/index.mjs +6 -6
- package/dist/chunk-2HQTDLHF.mjs +683 -0
- package/dist/chunk-36I3M4UC.mjs +370 -0
- package/dist/{chunk-QY5FKYEQ.js → chunk-3AYM6WPJ.js} +570 -51
- package/dist/chunk-3LOYJFRR.cjs +300 -0
- package/dist/chunk-3Y2RIUMM.js +300 -0
- package/dist/{chunk-N6VHMOWB.cjs → chunk-4ROBZFL6.cjs} +128 -128
- package/dist/{chunk-NC5SDRYE.js → chunk-52OB2ROS.js} +4 -4
- package/dist/{chunk-JX3LZQJH.cjs → chunk-52PPNNI4.cjs} +82 -20
- package/dist/{chunk-5YOQOXEQ.cjs → chunk-5EC274J5.cjs} +676 -293
- package/dist/chunk-5QC7LRZ3.js +229 -0
- package/dist/{chunk-7TL2LHQJ.js → chunk-5VRJNBLZ.mjs} +524 -141
- package/dist/chunk-62AZW6UT.cjs +313 -0
- package/dist/chunk-6IXXWIUM.js +683 -0
- package/dist/chunk-74ZTY6CP.js +2871 -0
- package/dist/chunk-76YMRMH2.cjs +777 -0
- package/dist/chunk-7CMJS3QE.mjs +2871 -0
- package/dist/{chunk-2WC63LJK.mjs → chunk-7JIJOVCT.js} +20 -10
- package/dist/{chunk-FM4W4QPL.js → chunk-A2OM6NEH.mjs} +5 -4
- package/dist/chunk-AGR5B2BC.cjs +683 -0
- package/dist/chunk-AVNQLJ5V.js +777 -0
- package/dist/chunk-B33ICAKP.js +313 -0
- package/dist/{chunk-J3H54ZRV.mjs → chunk-B5JD23U7.mjs} +1 -1
- package/dist/chunk-BABBZK4Y.js +2024 -0
- package/dist/{chunk-U5KWK3PX.mjs → chunk-C3MDXTRZ.js} +11 -0
- package/dist/{chunk-F5EUMJL7.mjs → chunk-CIZFIMK5.js} +55 -5
- package/dist/{chunk-SPUEME2B.cjs → chunk-CZIVE6NT.cjs} +12 -1
- package/dist/{chunk-TDVMADDN.js → chunk-DNFJLJMW.mjs} +11 -0
- package/dist/chunk-DNFO2EIZ.mjs +777 -0
- package/dist/{chunk-XDZOO4L5.js → chunk-EJ6BPYVR.mjs} +79 -17
- package/dist/{chunk-JNFRRJYH.cjs → chunk-ENKODRU3.cjs} +242 -192
- package/dist/chunk-EOC4UHBS.mjs +229 -0
- package/dist/{chunk-7LVI2GIN.js → chunk-FH2X7BVP.js} +507 -72
- package/dist/{chunk-OOGJ73B6.js → chunk-FHQGHPMO.mjs} +20 -10
- package/dist/{chunk-WQ5QNU5R.cjs → chunk-GLE2WY7Z.cjs} +652 -217
- package/dist/{chunk-G6IQOE4P.mjs → chunk-GYM3LLGS.mjs} +507 -72
- package/dist/chunk-HLWLMW2F.mjs +2024 -0
- package/dist/{chunk-TVN5I4U6.cjs → chunk-JF5WGYJJ.cjs} +25 -24
- package/dist/{chunk-CY33PGEX.mjs → chunk-KH4SYAOS.mjs} +570 -51
- package/dist/chunk-KN32XNTH.mjs +313 -0
- package/dist/chunk-KQLYONSE.cjs +2871 -0
- package/dist/{chunk-7HUOJA4W.cjs → chunk-KZJQ723N.cjs} +90 -80
- package/dist/{chunk-CCKHV5BT.mjs → chunk-L2SYFEBS.js} +5 -4
- package/dist/{chunk-IJT6RRQ5.cjs → chunk-L6VB5N7Q.cjs} +20 -9
- package/dist/{chunk-ZGLD4TVZ.mjs → chunk-MBEJI5HF.mjs} +4 -4
- package/dist/{chunk-PRWCB3QL.mjs → chunk-MIIYDLGM.js} +524 -141
- package/dist/{chunk-H55LI6WY.js → chunk-MOO4L7F4.mjs} +15 -4
- package/dist/{chunk-7XOPAB5Q.js → chunk-MT3OWDPC.mjs} +55 -5
- package/dist/chunk-MVGUEJ5Z.cjs +370 -0
- package/dist/chunk-PD4EJTQC.cjs +229 -0
- package/dist/chunk-PWC3RBQE.mjs +300 -0
- package/dist/{chunk-MWXMNYJS.cjs → chunk-Q2I37RP3.cjs} +643 -124
- package/dist/{chunk-VFIUZG7J.mjs → chunk-RKGKFN2A.js} +79 -17
- package/dist/{chunk-NYL4D7SK.cjs → chunk-SA6HUJVI.cjs} +5 -5
- package/dist/{chunk-K2T3DV26.mjs → chunk-TRM4JUZQ.js} +15 -4
- package/dist/chunk-UB4B6OFY.js +370 -0
- package/dist/{chunk-G3XGCZDQ.js → chunk-UCUBNWM2.js} +1 -1
- package/dist/chunk-VN44DYYT.cjs +2024 -0
- package/dist/{client-CtFmoDvM.d.ts → client-CZHU674n.d.ts} +211 -36
- package/dist/core/index.cjs +135 -9
- package/dist/core/index.d.ts +238 -33
- package/dist/core/index.js +155 -29
- package/dist/core/index.mjs +155 -29
- package/dist/{effect-CGNl5Rqp.d.ts → effect-DIUHZ9IN.d.ts} +89 -1
- package/dist/effectRunner-CFLC32IK.cjs +8 -0
- package/dist/{effectRunner-A4CHJXJI.js → effectRunner-L4S7IPT3.js} +2 -2
- package/dist/{effectRunner-OPUF6QRN.mjs → effectRunner-NNGG75QA.mjs} +2 -2
- package/dist/http/index.cjs +324 -2986
- package/dist/http/index.d.ts +54 -68
- package/dist/http/index.js +238 -2900
- package/dist/http/index.mjs +238 -2900
- package/dist/http/testing.cjs +14 -12
- package/dist/http/testing.d.ts +5 -4
- package/dist/http/testing.js +10 -8
- package/dist/http/testing.mjs +10 -8
- package/dist/index.cjs +423 -255
- package/dist/index.d.ts +87 -69
- package/dist/index.js +301 -133
- package/dist/index.mjs +301 -133
- package/dist/observability/index.cjs +16 -531
- package/dist/observability/index.d.ts +81 -8
- package/dist/observability/index.js +23 -538
- package/dist/observability/index.mjs +23 -538
- package/dist/perf/cli.cjs +401 -0
- package/dist/perf/cli.d.ts +1 -0
- package/dist/perf/cli.js +401 -0
- package/dist/perf/cli.mjs +401 -0
- package/dist/perf/index.cjs +141 -0
- package/dist/perf/index.d.ts +483 -0
- package/dist/perf/index.js +141 -0
- package/dist/perf/index.mjs +141 -0
- package/dist/schedule-CK3Ml_7p.d.ts +259 -0
- package/dist/schema/index.cjs +6 -2
- package/dist/schema/index.d.ts +3 -1
- package/dist/schema/index.js +5 -1
- package/dist/schema/index.mjs +5 -1
- package/dist/{server-C8hDXA74.d.ts → server-GJPg8ZSG.d.ts} +4 -3
- package/dist/{stream-dvSs0QS5.d.ts → stream-B4oK9JFP.d.ts} +1 -1
- package/dist/{tracer-B5tRH9H7.d.ts → tracer-Hwt1cl7h.d.ts} +13 -54
- package/dist/{tracing-Dt9S_6V8.d.ts → tracing-DqbTKGcf.d.ts} +1 -1
- package/docs/ARCHITECTURE.md +292 -0
- package/docs/README.md +63 -0
- package/docs/adr/0001-ai-context-pack.md +32 -0
- package/docs/agent-apply-mode.md +104 -0
- package/docs/agent-approvals.md +110 -0
- package/docs/agent-batch.md +185 -0
- package/docs/agent-boundaries.md +112 -0
- package/docs/agent-chat-sessions.md +160 -0
- package/docs/agent-ci.md +17 -0
- package/docs/agent-cli.md +405 -0
- package/docs/agent-config.md +480 -0
- package/docs/agent-context-discovery.md +159 -0
- package/docs/agent-copilot-like-dx.md +126 -0
- package/docs/agent-declarative-optimized-planning.md +138 -0
- package/docs/agent-dx.md +224 -0
- package/docs/agent-env-files.md +126 -0
- package/docs/agent-follow-up-context.md +43 -0
- package/docs/agent-global-usage.md +180 -0
- package/docs/agent-init.md +109 -0
- package/docs/agent-install-and-configure.md +516 -0
- package/docs/agent-language-workspace-ux.md +99 -0
- package/docs/agent-llm-adapters.md +123 -0
- package/docs/agent-local-install.md +190 -0
- package/docs/agent-local-tests.md +51 -0
- package/docs/agent-observability.md +155 -0
- package/docs/agent-patch-quality-loop.md +162 -0
- package/docs/agent-presets.md +22 -0
- package/docs/agent-project-commands.md +237 -0
- package/docs/agent-project-intelligence.md +156 -0
- package/docs/agent-redaction.md +18 -0
- package/docs/agent-release-readiness.md +76 -0
- package/docs/agent-rollback-safety.md +162 -0
- package/docs/agent-rollback.md +23 -0
- package/docs/agent-run-artifacts.md +16 -0
- package/docs/agent-vscode-auto-discovery.md +137 -0
- package/docs/agent-vscode-batch-runner.md +100 -0
- package/docs/agent-vscode-chat-layout.md +90 -0
- package/docs/agent-vscode-clean-install.md +147 -0
- package/docs/agent-vscode-code-actions.md +70 -0
- package/docs/agent-vscode-diff-preview.md +45 -0
- package/docs/agent-vscode-inline-assist.md +56 -0
- package/docs/agent-vscode-install.md +186 -0
- package/docs/agent-vscode-model-setup.md +97 -0
- package/docs/agent-vscode-patch-preview.md +92 -0
- package/docs/agent-vscode-problems.md +79 -0
- package/docs/agent-vscode-project-dashboard.md +106 -0
- package/docs/agent-vscode-run-history.md +92 -0
- package/docs/agent-vscode-ux.md +73 -0
- package/docs/ai/INVARIANTS.md +84 -0
- package/docs/ai/PROJECT_MAP.md +338 -0
- package/docs/ai/PUBLIC_API.md +336 -0
- package/docs/ai/VALIDATION_MATRIX.md +67 -0
- package/docs/api-polish.md +37 -0
- package/docs/cancellation.md +162 -0
- package/docs/coverage.md +46 -0
- package/docs/getting-started.md +159 -0
- package/docs/guides/README.md +40 -0
- package/docs/guides/circuit-breaker.md +89 -0
- package/docs/guides/error-handling.md +91 -0
- package/docs/guides/getting-started.md +107 -0
- package/docs/guides/layers.md +189 -0
- package/docs/guides/metrics.md +101 -0
- package/docs/guides/resource-management.md +141 -0
- package/docs/guides/retry.md +215 -0
- package/docs/guides/semaphore.md +66 -0
- package/docs/guides/streams.md +117 -0
- package/docs/guides/supervisors.md +98 -0
- package/docs/guides/testing.md +162 -0
- package/docs/guides/tracing.md +71 -0
- package/docs/http-recipes.md +399 -0
- package/docs/http.md +749 -0
- package/docs/modules.md +285 -0
- package/docs/observability-collector-smoke.md +31 -0
- package/docs/observability-framework-examples.md +98 -0
- package/docs/observability.md +542 -0
- package/docs/otel-collector-smoke.yaml +27 -0
- package/docs/performance-profiler.md +199 -0
- package/docs/production-readiness.md +73 -0
- package/docs/recipes/README.md +12 -0
- package/docs/recipes/http-server.md +45 -0
- package/docs/recipes/layers.md +44 -0
- package/docs/recipes/performance.md +47 -0
- package/docs/recipes/runtime.md +41 -0
- package/docs/recipes/testing.md +41 -0
- package/docs/release.md +53 -0
- package/docs/wasm-bounded-queues.md +44 -0
- package/docs/wasm-engine-observability-benchmarks.md +85 -0
- package/docs/wasm-fiber-engine.md +117 -0
- package/docs/wasm-scheduler-state-machine.md +122 -0
- package/docs/wasm-stream-chunks.md +54 -0
- package/package.json +22 -2
- package/dist/chunk-45F7OKGT.cjs +0 -104
- package/dist/chunk-7V4KY4RL.mjs +0 -104
- package/dist/chunk-DJQ7OMMB.cjs +0 -144
- package/dist/chunk-GOV47PPB.mjs +0 -552
- package/dist/chunk-JF4XXPZ5.cjs +0 -552
- package/dist/chunk-KCPT2D6G.js +0 -552
- package/dist/chunk-NOYZIMUJ.mjs +0 -144
- package/dist/chunk-PNVFW245.js +0 -144
- package/dist/chunk-ROJC3NBJ.js +0 -104
- package/dist/effectRunner-3ZHAD3LE.cjs +0 -8
- package/dist/schedule-Fque9Abz.d.ts +0 -70
package/dist/index.cjs
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var _chunkMWXMNYJScjs = require('./chunk-MWXMNYJS.cjs');
|
|
42
41
|
|
|
43
42
|
|
|
44
43
|
|
|
@@ -62,6 +61,7 @@ var _chunkMWXMNYJScjs = require('./chunk-MWXMNYJS.cjs');
|
|
|
62
61
|
|
|
63
62
|
|
|
64
63
|
|
|
64
|
+
var _chunkQ2I37RP3cjs = require('./chunk-Q2I37RP3.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -71,12 +71,12 @@ var _chunkMWXMNYJScjs = require('./chunk-MWXMNYJS.cjs');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var _chunkJF4XXPZ5cjs = require('./chunk-JF4XXPZ5.cjs');
|
|
75
74
|
|
|
76
75
|
|
|
77
76
|
|
|
78
77
|
|
|
79
78
|
|
|
79
|
+
var _chunk62AZW6UTcjs = require('./chunk-62AZW6UT.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -89,17 +89,16 @@ var _chunkJF4XXPZ5cjs = require('./chunk-JF4XXPZ5.cjs');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
var _chunkPD4EJTQCcjs = require('./chunk-PD4EJTQC.cjs');
|
|
92
93
|
|
|
93
94
|
|
|
94
95
|
|
|
95
|
-
var _chunk7HUOJA4Wcjs = require('./chunk-7HUOJA4W.cjs');
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
var _chunk45F7OKGTcjs = require('./chunk-45F7OKGT.cjs');
|
|
103
102
|
|
|
104
103
|
|
|
105
104
|
|
|
@@ -107,18 +106,17 @@ var _chunk45F7OKGTcjs = require('./chunk-45F7OKGT.cjs');
|
|
|
107
106
|
|
|
108
107
|
|
|
109
108
|
|
|
110
|
-
var _chunkJX3LZQJHcjs = require('./chunk-JX3LZQJH.cjs');
|
|
111
109
|
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
|
|
113
|
+
var _chunkKZJQ723Ncjs = require('./chunk-KZJQ723N.cjs');
|
|
115
114
|
|
|
116
|
-
var _chunkNYL4D7SKcjs = require('./chunk-NYL4D7SK.cjs');
|
|
117
115
|
|
|
118
116
|
|
|
119
117
|
|
|
120
118
|
|
|
121
|
-
var
|
|
119
|
+
var _chunkSA6HUJVIcjs = require('./chunk-SA6HUJVI.cjs');
|
|
122
120
|
|
|
123
121
|
|
|
124
122
|
|
|
@@ -163,18 +161,20 @@ var _chunkTVN5I4U6cjs = require('./chunk-TVN5I4U6.cjs');
|
|
|
163
161
|
|
|
164
162
|
|
|
165
163
|
|
|
164
|
+
var _chunkAGR5B2BCcjs = require('./chunk-AGR5B2BC.cjs');
|
|
166
165
|
|
|
167
166
|
|
|
168
167
|
|
|
169
168
|
|
|
169
|
+
var _chunkJF5WGYJJcjs = require('./chunk-JF5WGYJJ.cjs');
|
|
170
170
|
|
|
171
|
-
var _chunkWQ5QNU5Rcjs = require('./chunk-WQ5QNU5R.cjs');
|
|
172
171
|
|
|
173
172
|
|
|
174
173
|
|
|
175
174
|
|
|
176
175
|
|
|
177
176
|
|
|
177
|
+
var _chunk52PPNNI4cjs = require('./chunk-52PPNNI4.cjs');
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
|
|
@@ -200,20 +200,84 @@ var _chunkWQ5QNU5Rcjs = require('./chunk-WQ5QNU5R.cjs');
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
var _chunkGLE2WY7Zcjs = require('./chunk-GLE2WY7Z.cjs');
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
var _chunkMVGUEJ5Zcjs = require('./chunk-MVGUEJ5Z.cjs');
|
|
268
|
+
require('./chunk-CZIVE6NT.cjs');
|
|
205
269
|
require('./chunk-OBGZSXTJ.cjs');
|
|
206
270
|
|
|
207
271
|
// src/core/stream/queue.ts
|
|
208
272
|
function bounded(capacity, strategy = "backpressure", options = {}) {
|
|
209
|
-
return
|
|
273
|
+
return _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => makeQueue(capacity, strategy, options));
|
|
210
274
|
}
|
|
211
275
|
function makeQueue(capacity, strategy, options) {
|
|
212
|
-
const items =
|
|
276
|
+
const items = _chunkGLE2WY7Zcjs.makeBoundedRingBuffer.call(void 0, capacity, capacity, options);
|
|
213
277
|
let closed = false;
|
|
214
278
|
const QueueClosedErr = { _tag: "QueueClosed" };
|
|
215
|
-
const offerWaiters = new (0,
|
|
216
|
-
const takers = new (0,
|
|
279
|
+
const offerWaiters = new (0, _chunkQ2I37RP3cjs.LinkedQueue)();
|
|
280
|
+
const takers = new (0, _chunkQ2I37RP3cjs.LinkedQueue)();
|
|
217
281
|
const shutdown = () => {
|
|
218
282
|
if (closed) return;
|
|
219
283
|
closed = true;
|
|
@@ -230,7 +294,7 @@ function makeQueue(capacity, strategy, options) {
|
|
|
230
294
|
return {
|
|
231
295
|
size: () => items.length,
|
|
232
296
|
shutdown,
|
|
233
|
-
offer: (a) =>
|
|
297
|
+
offer: (a) => _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
|
|
234
298
|
if (closed) {
|
|
235
299
|
cb({ _tag: "Success", value: false });
|
|
236
300
|
return;
|
|
@@ -265,7 +329,7 @@ function makeQueue(capacity, strategy, options) {
|
|
|
265
329
|
};
|
|
266
330
|
return canceler;
|
|
267
331
|
}),
|
|
268
|
-
take: () =>
|
|
332
|
+
take: () => _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
|
|
269
333
|
if (items.length > 0) {
|
|
270
334
|
const a = items.shift();
|
|
271
335
|
cb({ _tag: "Success", value: a });
|
|
@@ -292,7 +356,7 @@ function makeQueue(capacity, strategy, options) {
|
|
|
292
356
|
};
|
|
293
357
|
return canceler;
|
|
294
358
|
}),
|
|
295
|
-
offerBatch: (values) =>
|
|
359
|
+
offerBatch: (values) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => {
|
|
296
360
|
const results = [];
|
|
297
361
|
for (let i = 0; i < values.length; i++) {
|
|
298
362
|
if (closed) {
|
|
@@ -323,7 +387,7 @@ function makeQueue(capacity, strategy, options) {
|
|
|
323
387
|
}
|
|
324
388
|
return results;
|
|
325
389
|
}),
|
|
326
|
-
takeBatch: (n) =>
|
|
390
|
+
takeBatch: (n) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => {
|
|
327
391
|
const results = [];
|
|
328
392
|
const count = Math.min(n, items.length + offerWaiters.length);
|
|
329
393
|
for (let i = 0; i < count; i++) {
|
|
@@ -357,34 +421,34 @@ function buffer(stream, capacity, strategy = "backpressure") {
|
|
|
357
421
|
let q = null;
|
|
358
422
|
let producer = null;
|
|
359
423
|
let upstream = stream;
|
|
360
|
-
const onUpstreamFailure = (opt) =>
|
|
424
|
+
const onUpstreamFailure = (opt) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0,
|
|
361
425
|
opt._tag === "None" ? SIGNAL_END : { _tag: "Fail", error: opt.value }
|
|
362
426
|
);
|
|
363
|
-
const onUpstreamSuccess = ([a, tail]) =>
|
|
427
|
+
const onUpstreamSuccess = ([a, tail]) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => {
|
|
364
428
|
upstream = tail;
|
|
365
429
|
return { _tag: "Elem", value: a };
|
|
366
430
|
});
|
|
367
|
-
const nextSignal = () =>
|
|
368
|
-
|
|
431
|
+
const nextSignal = () => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
432
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, upstream),
|
|
369
433
|
onUpstreamFailure,
|
|
370
434
|
onUpstreamSuccess
|
|
371
435
|
);
|
|
372
|
-
const start = (env) =>
|
|
436
|
+
const start = (env) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, bounded(capacity, strategy), (_q) => {
|
|
373
437
|
q = _q;
|
|
374
438
|
let lastSig;
|
|
375
439
|
const afterOffer = () => {
|
|
376
440
|
if (lastSig._tag !== "Elem") {
|
|
377
|
-
return
|
|
441
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, void 0);
|
|
378
442
|
}
|
|
379
443
|
return loop();
|
|
380
444
|
};
|
|
381
445
|
const onSignal = (sig) => {
|
|
382
446
|
lastSig = sig;
|
|
383
|
-
return
|
|
447
|
+
return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, q.offer(sig), afterOffer);
|
|
384
448
|
};
|
|
385
|
-
const loop = () =>
|
|
386
|
-
producer =
|
|
387
|
-
return
|
|
449
|
+
const loop = () => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, nextSignal(), onSignal);
|
|
450
|
+
producer = _chunkGLE2WY7Zcjs.fork.call(void 0, loop(), env);
|
|
451
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, void 0);
|
|
388
452
|
});
|
|
389
453
|
const pullDown = {
|
|
390
454
|
_tag: "Async",
|
|
@@ -392,7 +456,7 @@ function buffer(stream, capacity, strategy = "backpressure") {
|
|
|
392
456
|
const go = () => {
|
|
393
457
|
if (!started) {
|
|
394
458
|
started = true;
|
|
395
|
-
|
|
459
|
+
_chunkGLE2WY7Zcjs.unsafeGetCurrentRuntime.call(void 0, ).fork(start(env)).join(() => {
|
|
396
460
|
pullFromQueue(env, cb);
|
|
397
461
|
});
|
|
398
462
|
return;
|
|
@@ -404,126 +468,32 @@ function buffer(stream, capacity, strategy = "backpressure") {
|
|
|
404
468
|
};
|
|
405
469
|
function pullFromQueue(env, cb) {
|
|
406
470
|
const takeEff = q.take();
|
|
407
|
-
|
|
471
|
+
_chunkGLE2WY7Zcjs.unsafeGetCurrentRuntime.call(void 0, ).fork(takeEff).join((ex) => {
|
|
408
472
|
if (ex._tag !== "Success") return;
|
|
409
473
|
const sig = ex.value;
|
|
410
474
|
switch (sig._tag) {
|
|
411
475
|
case "Elem":
|
|
412
|
-
cb({ _tag: "Success", value: [sig.value,
|
|
476
|
+
cb({ _tag: "Success", value: [sig.value, _chunkKZJQ723Ncjs.fromPull.call(void 0, pullDown)] });
|
|
413
477
|
return;
|
|
414
478
|
case "End":
|
|
415
479
|
_optionalChain([producer, 'optionalAccess', _ => _.interrupt, 'optionalCall', _2 => _2()]);
|
|
416
|
-
cb({ _tag: "Failure", cause: { _tag: "Fail", error:
|
|
480
|
+
cb({ _tag: "Failure", cause: { _tag: "Fail", error: _chunkMVGUEJ5Zcjs.none } });
|
|
417
481
|
return;
|
|
418
482
|
case "Fail":
|
|
419
483
|
_optionalChain([producer, 'optionalAccess', _3 => _3.interrupt, 'optionalCall', _4 => _4()]);
|
|
420
|
-
cb({ _tag: "Failure", cause: { _tag: "Fail", error:
|
|
484
|
+
cb({ _tag: "Failure", cause: { _tag: "Fail", error: _chunkMVGUEJ5Zcjs.some.call(void 0, sig.error) } });
|
|
421
485
|
return;
|
|
422
486
|
}
|
|
423
487
|
});
|
|
424
488
|
}
|
|
425
|
-
return
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
// src/core/stream/hub.ts
|
|
429
|
-
var toQueueStrategy = (s) => s === "BackPressure" ? "backpressure" : s === "Dropping" ? "dropping" : "sliding";
|
|
430
|
-
function makeHub(capacity, strategy = "BackPressure") {
|
|
431
|
-
const queues = /* @__PURE__ */ new Set();
|
|
432
|
-
let closed = false;
|
|
433
|
-
const publish = (a) => {
|
|
434
|
-
if (closed) return _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, false);
|
|
435
|
-
const size = queues.size;
|
|
436
|
-
if (size === 0) return _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, true);
|
|
437
|
-
if (size === 1) {
|
|
438
|
-
const q = queues.values().next().value;
|
|
439
|
-
return q.offer(a);
|
|
440
|
-
}
|
|
441
|
-
let eff = _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, true);
|
|
442
|
-
for (const q of queues) {
|
|
443
|
-
eff = _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0,
|
|
444
|
-
eff,
|
|
445
|
-
(okSoFar) => _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0, q.offer(a), (ok) => _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, okSoFar && ok))
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
|
-
return eff;
|
|
449
|
-
};
|
|
450
|
-
const publishAll = (as) => {
|
|
451
|
-
let eff = _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, true);
|
|
452
|
-
const it = as[Symbol.iterator]();
|
|
453
|
-
while (true) {
|
|
454
|
-
const n = it.next();
|
|
455
|
-
if (n.done) break;
|
|
456
|
-
const a = n.value;
|
|
457
|
-
eff = _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0,
|
|
458
|
-
eff,
|
|
459
|
-
(okSoFar) => _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0, publish(a), (ok) => _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, okSoFar && ok))
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
return eff;
|
|
463
|
-
};
|
|
464
|
-
const subscribe = () => {
|
|
465
|
-
if (closed) {
|
|
466
|
-
return _chunkDJQ7OMMBcjs.asyncTotal.call(void 0, () => {
|
|
467
|
-
throw { _tag: "HubClosed" };
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
return _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0,
|
|
471
|
-
bounded(capacity, toQueueStrategy(strategy)),
|
|
472
|
-
(q) => _chunkDJQ7OMMBcjs.asyncSync.call(void 0, () => {
|
|
473
|
-
queues.add(q);
|
|
474
|
-
return {
|
|
475
|
-
...q,
|
|
476
|
-
unsubscribe: () => {
|
|
477
|
-
if (!queues.has(q)) return;
|
|
478
|
-
queues.delete(q);
|
|
479
|
-
q.shutdown();
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
})
|
|
483
|
-
);
|
|
484
|
-
};
|
|
485
|
-
const shutdown = () => _chunkDJQ7OMMBcjs.asyncSync.call(void 0, () => {
|
|
486
|
-
if (closed) return;
|
|
487
|
-
closed = true;
|
|
488
|
-
for (const q of queues) q.shutdown();
|
|
489
|
-
queues.clear();
|
|
490
|
-
});
|
|
491
|
-
return {
|
|
492
|
-
publish,
|
|
493
|
-
publishAll,
|
|
494
|
-
subscribe,
|
|
495
|
-
shutdown
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
var broadcast = makeHub;
|
|
499
|
-
function broadcastToHub(stream, hub) {
|
|
500
|
-
return _chunk7HUOJA4Wcjs.foreachStream.call(void 0,
|
|
501
|
-
stream,
|
|
502
|
-
(a) => _chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0, hub.publish(a), () => _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, void 0))
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
function fromHub(hub) {
|
|
506
|
-
return _chunk7HUOJA4Wcjs.managedStream.call(void 0,
|
|
507
|
-
_chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0, hub.subscribe(), (sub) => {
|
|
508
|
-
const loop = _chunk7HUOJA4Wcjs.fromPull.call(void 0,
|
|
509
|
-
_chunkDJQ7OMMBcjs.asyncFlatMap.call(void 0,
|
|
510
|
-
_chunkDJQ7OMMBcjs.asyncMapError.call(void 0, sub.take(), (_queueClosed) => _chunkDJQ7OMMBcjs.none),
|
|
511
|
-
(a) => _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, [a, loop])
|
|
512
|
-
)
|
|
513
|
-
);
|
|
514
|
-
return _chunkDJQ7OMMBcjs.asyncSucceed.call(void 0, {
|
|
515
|
-
stream: loop,
|
|
516
|
-
release: (_exit) => _chunkDJQ7OMMBcjs.asyncSync.call(void 0, () => sub.unsubscribe())
|
|
517
|
-
});
|
|
518
|
-
})
|
|
519
|
-
);
|
|
489
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0, pullDown);
|
|
520
490
|
}
|
|
521
491
|
|
|
522
492
|
// src/core/stream/chunks.ts
|
|
523
493
|
var cachedWasmChunkCtor;
|
|
524
494
|
function resolveWasmChunkBuffer() {
|
|
525
495
|
if (cachedWasmChunkCtor !== void 0) return cachedWasmChunkCtor;
|
|
526
|
-
const mod =
|
|
496
|
+
const mod = _chunkGLE2WY7Zcjs.resolveWasmModule.call(void 0, );
|
|
527
497
|
cachedWasmChunkCtor = _nullishCoalesce(_optionalChain([mod, 'optionalAccess', _5 => _5.BrassWasmChunkBuffer]), () => ( null));
|
|
528
498
|
return cachedWasmChunkCtor;
|
|
529
499
|
}
|
|
@@ -623,19 +593,19 @@ function makeStreamChunker(chunkSize, options = {}) {
|
|
|
623
593
|
}
|
|
624
594
|
function chunks(input, chunkSize, options = {}) {
|
|
625
595
|
const size = Math.max(1, chunkSize | 0);
|
|
626
|
-
const loop = (cur) =>
|
|
627
|
-
const fillChunk = (cur, chunker) =>
|
|
628
|
-
|
|
596
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0, fillChunk(cur, makeStreamChunker(size, options)));
|
|
597
|
+
const fillChunk = (cur, chunker) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
598
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
629
599
|
(opt) => {
|
|
630
600
|
if (opt._tag === "None" && !chunker.isEmpty()) {
|
|
631
|
-
return
|
|
601
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [chunker.takeChunk(), _chunkKZJQ723Ncjs.fromPull.call(void 0, _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, _chunkMVGUEJ5Zcjs.none))]);
|
|
632
602
|
}
|
|
633
|
-
return
|
|
603
|
+
return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt);
|
|
634
604
|
},
|
|
635
605
|
([a, tail]) => {
|
|
636
606
|
chunker.push(a);
|
|
637
607
|
if (chunker.isFull()) {
|
|
638
|
-
return
|
|
608
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [chunker.takeChunk(), loop(tail)]);
|
|
639
609
|
}
|
|
640
610
|
return fillChunk(tail, chunker);
|
|
641
611
|
}
|
|
@@ -646,15 +616,15 @@ function mapChunks(input, chunkSize, f, options = {}) {
|
|
|
646
616
|
const pullOne = (pending, rest) => {
|
|
647
617
|
if (pending.length > 0) {
|
|
648
618
|
const [head, ...tail] = pending;
|
|
649
|
-
return
|
|
619
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0, _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [head, pullOne(tail, rest)]));
|
|
650
620
|
}
|
|
651
|
-
return
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
(opt) =>
|
|
621
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
622
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
623
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, rest),
|
|
624
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
655
625
|
([chunk, tail]) => {
|
|
656
626
|
const mapped = f(chunk);
|
|
657
|
-
return
|
|
627
|
+
return _chunkKZJQ723Ncjs.uncons.call(void 0, pullOne(mapped, tail));
|
|
658
628
|
}
|
|
659
629
|
)
|
|
660
630
|
);
|
|
@@ -667,16 +637,16 @@ function mapChunksEffect(chunkSize, f, options = {}) {
|
|
|
667
637
|
const pullOne = (pending, rest) => {
|
|
668
638
|
if (pending.length > 0) {
|
|
669
639
|
const [head, ...tail] = pending;
|
|
670
|
-
return
|
|
640
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0, _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [head, pullOne(tail, rest)]));
|
|
671
641
|
}
|
|
672
|
-
return
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
(opt) =>
|
|
676
|
-
([chunk, tail]) =>
|
|
677
|
-
|
|
678
|
-
(opt) =>
|
|
679
|
-
(mapped) =>
|
|
642
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
643
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
644
|
+
_chunkMVGUEJ5Zcjs.asyncMapError.call(void 0, _chunkKZJQ723Ncjs.uncons.call(void 0, rest), (opt) => _chunkKZJQ723Ncjs.widenOpt.call(void 0, opt)),
|
|
645
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
646
|
+
([chunk, tail]) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
647
|
+
_chunkMVGUEJ5Zcjs.asyncMapError.call(void 0, f(chunk), (e) => ({ _tag: "Some", value: e })),
|
|
648
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
649
|
+
(mapped) => _chunkKZJQ723Ncjs.uncons.call(void 0, pullOne(mapped, tail))
|
|
680
650
|
)
|
|
681
651
|
)
|
|
682
652
|
);
|
|
@@ -910,20 +880,20 @@ function applyFused(stream, fused) {
|
|
|
910
880
|
return arrayToStream(outputArray);
|
|
911
881
|
}
|
|
912
882
|
const state = fused.initState();
|
|
913
|
-
const loop = (cur) =>
|
|
914
|
-
|
|
915
|
-
|
|
883
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
884
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
885
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
916
886
|
// End-of-stream or error: propagate
|
|
917
|
-
(opt) =>
|
|
887
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
918
888
|
([a, tail]) => {
|
|
919
889
|
const result = fused.step(a, state);
|
|
920
890
|
switch (result.tag) {
|
|
921
891
|
case "emit":
|
|
922
|
-
return
|
|
892
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [result.value, loop(tail)]);
|
|
923
893
|
case "skip":
|
|
924
|
-
return
|
|
894
|
+
return _chunkKZJQ723Ncjs.uncons.call(void 0, loop(tail));
|
|
925
895
|
case "halt":
|
|
926
|
-
return
|
|
896
|
+
return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, _chunkMVGUEJ5Zcjs.none);
|
|
927
897
|
}
|
|
928
898
|
}
|
|
929
899
|
)
|
|
@@ -1109,10 +1079,10 @@ function identity() {
|
|
|
1109
1079
|
}
|
|
1110
1080
|
function mapP(f) {
|
|
1111
1081
|
const pipeline = ((input) => {
|
|
1112
|
-
const onError = (opt) =>
|
|
1113
|
-
const onSuccess = ([a, tail]) =>
|
|
1114
|
-
const loop = (cur) =>
|
|
1115
|
-
|
|
1082
|
+
const onError = (opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt);
|
|
1083
|
+
const onSuccess = ([a, tail]) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [f(a), loop(tail)]);
|
|
1084
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1085
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0, _chunkKZJQ723Ncjs.uncons.call(void 0, cur), onError, onSuccess)
|
|
1116
1086
|
);
|
|
1117
1087
|
return loop(input);
|
|
1118
1088
|
});
|
|
@@ -1121,10 +1091,10 @@ function mapP(f) {
|
|
|
1121
1091
|
}
|
|
1122
1092
|
function filterP(pred) {
|
|
1123
1093
|
const pipeline = ((input) => {
|
|
1124
|
-
const onError = (opt) =>
|
|
1125
|
-
const onSuccess = ([a, tail]) => pred(a) ?
|
|
1126
|
-
const next = (cur) =>
|
|
1127
|
-
const loop = (cur) =>
|
|
1094
|
+
const onError = (opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt);
|
|
1095
|
+
const onSuccess = ([a, tail]) => pred(a) ? _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop(tail)]) : next(tail);
|
|
1096
|
+
const next = (cur) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0, _chunkKZJQ723Ncjs.uncons.call(void 0, cur), onError, onSuccess);
|
|
1097
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0, next(cur));
|
|
1128
1098
|
return loop(input);
|
|
1129
1099
|
});
|
|
1130
1100
|
pipeline[PURE_PIPELINE_TAG] = { kind: "filter", pred };
|
|
@@ -1132,16 +1102,16 @@ function filterP(pred) {
|
|
|
1132
1102
|
}
|
|
1133
1103
|
function filterMapP(f) {
|
|
1134
1104
|
return ((input) => {
|
|
1135
|
-
const onError = (opt) =>
|
|
1136
|
-
const next = (cur) =>
|
|
1137
|
-
|
|
1105
|
+
const onError = (opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt);
|
|
1106
|
+
const next = (cur) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1107
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1138
1108
|
onError,
|
|
1139
1109
|
([a, tail]) => {
|
|
1140
1110
|
const ob = f(a);
|
|
1141
|
-
return ob._tag === "Some" ?
|
|
1111
|
+
return ob._tag === "Some" ? _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [ob.value, loop(tail)]) : next(tail);
|
|
1142
1112
|
}
|
|
1143
1113
|
);
|
|
1144
|
-
const loop = (cur) =>
|
|
1114
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0, next(cur));
|
|
1145
1115
|
return loop(input);
|
|
1146
1116
|
});
|
|
1147
1117
|
}
|
|
@@ -1149,12 +1119,12 @@ function takeP(n) {
|
|
|
1149
1119
|
const m = Math.max(0, n | 0);
|
|
1150
1120
|
const pipeline = ((input) => {
|
|
1151
1121
|
const loop = (cur, remaining) => {
|
|
1152
|
-
if (remaining <= 0) return
|
|
1153
|
-
return
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
(opt) =>
|
|
1157
|
-
([a, tail]) =>
|
|
1122
|
+
if (remaining <= 0) return _chunkKZJQ723Ncjs.emptyStream.call(void 0, );
|
|
1123
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1124
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1125
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1126
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1127
|
+
([a, tail]) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop(tail, remaining - 1)])
|
|
1158
1128
|
)
|
|
1159
1129
|
);
|
|
1160
1130
|
};
|
|
@@ -1168,11 +1138,11 @@ function dropP(n) {
|
|
|
1168
1138
|
const pipeline = ((input) => {
|
|
1169
1139
|
const skip = (cur, remaining) => {
|
|
1170
1140
|
if (remaining <= 0) return cur;
|
|
1171
|
-
return
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
(opt) =>
|
|
1175
|
-
([_a, tail]) =>
|
|
1141
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1142
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1143
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1144
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1145
|
+
([_a, tail]) => _chunkKZJQ723Ncjs.uncons.call(void 0, skip(tail, remaining - 1))
|
|
1176
1146
|
)
|
|
1177
1147
|
);
|
|
1178
1148
|
};
|
|
@@ -1183,19 +1153,19 @@ function dropP(n) {
|
|
|
1183
1153
|
}
|
|
1184
1154
|
function mapEffectP(f) {
|
|
1185
1155
|
return ((input) => {
|
|
1186
|
-
const raiseToOpt = (fa) =>
|
|
1187
|
-
const loop = (cur) =>
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
(opt) =>
|
|
1156
|
+
const raiseToOpt = (fa) => _chunkMVGUEJ5Zcjs.asyncMapError.call(void 0, fa, (e) => _chunkMVGUEJ5Zcjs.some.call(void 0, e));
|
|
1157
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1158
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1159
|
+
_chunkMVGUEJ5Zcjs.asyncMapError.call(void 0,
|
|
1160
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1161
|
+
(opt) => _chunkKZJQ723Ncjs.widenOpt.call(void 0, opt)
|
|
1192
1162
|
),
|
|
1193
|
-
(opt) =>
|
|
1194
|
-
([a, tail]) =>
|
|
1163
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1164
|
+
([a, tail]) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1195
1165
|
raiseToOpt(f(a)),
|
|
1196
1166
|
// Async<Rp, ...>
|
|
1197
|
-
(opt2) =>
|
|
1198
|
-
(b) =>
|
|
1167
|
+
(opt2) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt2),
|
|
1168
|
+
(b) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [b, loop(tail)])
|
|
1199
1169
|
)
|
|
1200
1170
|
)
|
|
1201
1171
|
);
|
|
@@ -1203,7 +1173,7 @@ function mapEffectP(f) {
|
|
|
1203
1173
|
});
|
|
1204
1174
|
}
|
|
1205
1175
|
function tapEffectP(f) {
|
|
1206
|
-
return mapEffectP((a) =>
|
|
1176
|
+
return mapEffectP((a) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, f(a), () => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, a)));
|
|
1207
1177
|
}
|
|
1208
1178
|
function chunksP(chunkSize, options = {}) {
|
|
1209
1179
|
return ((input) => chunks(input, chunkSize, options));
|
|
@@ -1218,23 +1188,23 @@ function groupedP(n) {
|
|
|
1218
1188
|
const size = Math.max(1, n | 0);
|
|
1219
1189
|
return ((input) => {
|
|
1220
1190
|
const gather = (cur, remaining, acc) => {
|
|
1221
|
-
if (remaining <= 0) return
|
|
1222
|
-
return
|
|
1223
|
-
|
|
1191
|
+
if (remaining <= 0) return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, { chunk: acc, rest: cur });
|
|
1192
|
+
return _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1193
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1224
1194
|
(opt) => {
|
|
1225
|
-
if (opt._tag === "None") return
|
|
1226
|
-
return
|
|
1195
|
+
if (opt._tag === "None") return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, { chunk: acc, rest: _chunkKZJQ723Ncjs.emptyStream.call(void 0, ) });
|
|
1196
|
+
return _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt);
|
|
1227
1197
|
},
|
|
1228
1198
|
([a, tail]) => gather(tail, remaining - 1, [...acc, a])
|
|
1229
1199
|
);
|
|
1230
1200
|
};
|
|
1231
|
-
const loop = (cur) =>
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
(opt) =>
|
|
1235
|
-
([a, tail]) =>
|
|
1201
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1202
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1203
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1204
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1205
|
+
([a, tail]) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1236
1206
|
gather(tail, size - 1, [a]),
|
|
1237
|
-
({ chunk, rest }) =>
|
|
1207
|
+
({ chunk, rest }) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [chunk, loop(rest)])
|
|
1238
1208
|
)
|
|
1239
1209
|
)
|
|
1240
1210
|
);
|
|
@@ -1242,28 +1212,161 @@ function groupedP(n) {
|
|
|
1242
1212
|
});
|
|
1243
1213
|
}
|
|
1244
1214
|
|
|
1215
|
+
// src/core/stream/dx.ts
|
|
1216
|
+
var Stream = Object.freeze({
|
|
1217
|
+
from: (values) => asStream(_chunkKZJQ723Ncjs.fromArray.call(void 0, values)),
|
|
1218
|
+
empty: () => asStream(_chunkKZJQ723Ncjs.emptyStream.call(void 0, )),
|
|
1219
|
+
range: (start, end2) => asStream(_chunkKZJQ723Ncjs.rangeStream.call(void 0, start, end2)),
|
|
1220
|
+
wrap: asStream
|
|
1221
|
+
});
|
|
1222
|
+
var Pipeline = Object.freeze({
|
|
1223
|
+
map: mapP,
|
|
1224
|
+
filter: filterP
|
|
1225
|
+
});
|
|
1226
|
+
function asStream(stream) {
|
|
1227
|
+
const target = stream;
|
|
1228
|
+
if (typeof target.pipe === "function") return target;
|
|
1229
|
+
Object.defineProperties(target, {
|
|
1230
|
+
pipe: {
|
|
1231
|
+
value(pipeline) {
|
|
1232
|
+
return asStream(via(target, pipeline));
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
map: {
|
|
1236
|
+
value(f) {
|
|
1237
|
+
return asStream(via(target, mapP(f)));
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
filter: {
|
|
1241
|
+
value(predicate) {
|
|
1242
|
+
return asStream(via(target, filterP(predicate)));
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
collect: {
|
|
1246
|
+
value(runtime) {
|
|
1247
|
+
return runtime.toPromise(_chunkKZJQ723Ncjs.collectStream.call(void 0, target));
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
return target;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// src/core/stream/hub.ts
|
|
1255
|
+
var toQueueStrategy = (s) => s === "BackPressure" ? "backpressure" : s === "Dropping" ? "dropping" : "sliding";
|
|
1256
|
+
function makeHub(capacity, strategy = "BackPressure") {
|
|
1257
|
+
const queues = /* @__PURE__ */ new Set();
|
|
1258
|
+
let closed = false;
|
|
1259
|
+
const publish = (a) => {
|
|
1260
|
+
if (closed) return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, false);
|
|
1261
|
+
const size = queues.size;
|
|
1262
|
+
if (size === 0) return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, true);
|
|
1263
|
+
if (size === 1) {
|
|
1264
|
+
const q = queues.values().next().value;
|
|
1265
|
+
return q.offer(a);
|
|
1266
|
+
}
|
|
1267
|
+
let eff = _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, true);
|
|
1268
|
+
for (const q of queues) {
|
|
1269
|
+
eff = _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1270
|
+
eff,
|
|
1271
|
+
(okSoFar) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, q.offer(a), (ok) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, okSoFar && ok))
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
return eff;
|
|
1275
|
+
};
|
|
1276
|
+
const publishAll = (as) => {
|
|
1277
|
+
let eff = _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, true);
|
|
1278
|
+
const it = as[Symbol.iterator]();
|
|
1279
|
+
while (true) {
|
|
1280
|
+
const n = it.next();
|
|
1281
|
+
if (n.done) break;
|
|
1282
|
+
const a = n.value;
|
|
1283
|
+
eff = _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1284
|
+
eff,
|
|
1285
|
+
(okSoFar) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, publish(a), (ok) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, okSoFar && ok))
|
|
1286
|
+
);
|
|
1287
|
+
}
|
|
1288
|
+
return eff;
|
|
1289
|
+
};
|
|
1290
|
+
const subscribe = () => {
|
|
1291
|
+
if (closed) {
|
|
1292
|
+
return _chunkMVGUEJ5Zcjs.asyncTotal.call(void 0, () => {
|
|
1293
|
+
throw { _tag: "HubClosed" };
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1297
|
+
bounded(capacity, toQueueStrategy(strategy)),
|
|
1298
|
+
(q) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => {
|
|
1299
|
+
queues.add(q);
|
|
1300
|
+
return {
|
|
1301
|
+
...q,
|
|
1302
|
+
unsubscribe: () => {
|
|
1303
|
+
if (!queues.has(q)) return;
|
|
1304
|
+
queues.delete(q);
|
|
1305
|
+
q.shutdown();
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
})
|
|
1309
|
+
);
|
|
1310
|
+
};
|
|
1311
|
+
const shutdown = () => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => {
|
|
1312
|
+
if (closed) return;
|
|
1313
|
+
closed = true;
|
|
1314
|
+
for (const q of queues) q.shutdown();
|
|
1315
|
+
queues.clear();
|
|
1316
|
+
});
|
|
1317
|
+
return {
|
|
1318
|
+
publish,
|
|
1319
|
+
publishAll,
|
|
1320
|
+
subscribe,
|
|
1321
|
+
shutdown
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
var broadcast = makeHub;
|
|
1325
|
+
function broadcastToHub(stream, hub) {
|
|
1326
|
+
return _chunkKZJQ723Ncjs.foreachStream.call(void 0,
|
|
1327
|
+
stream,
|
|
1328
|
+
(a) => _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, hub.publish(a), () => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, void 0))
|
|
1329
|
+
);
|
|
1330
|
+
}
|
|
1331
|
+
function fromHub(hub) {
|
|
1332
|
+
return _chunkKZJQ723Ncjs.managedStream.call(void 0,
|
|
1333
|
+
_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, hub.subscribe(), (sub) => {
|
|
1334
|
+
const loop = _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1335
|
+
_chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
|
|
1336
|
+
_chunkMVGUEJ5Zcjs.asyncMapError.call(void 0, sub.take(), (_queueClosed) => _chunkMVGUEJ5Zcjs.none),
|
|
1337
|
+
(a) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop])
|
|
1338
|
+
)
|
|
1339
|
+
);
|
|
1340
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, {
|
|
1341
|
+
stream: loop,
|
|
1342
|
+
release: (_exit) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0, () => sub.unsubscribe())
|
|
1343
|
+
});
|
|
1344
|
+
})
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1245
1348
|
// src/core/stream/operators.ts
|
|
1246
1349
|
function throttle(stream, intervalMs) {
|
|
1247
1350
|
let lastEmitTime = 0;
|
|
1248
|
-
const loop = (cur) =>
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
(opt) =>
|
|
1351
|
+
const loop = (cur) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1352
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1353
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1354
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1252
1355
|
([a, tail]) => {
|
|
1253
1356
|
const now = Date.now();
|
|
1254
1357
|
if (now - lastEmitTime >= intervalMs) {
|
|
1255
1358
|
lastEmitTime = now;
|
|
1256
|
-
return
|
|
1359
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop(tail)]);
|
|
1257
1360
|
}
|
|
1258
|
-
return
|
|
1361
|
+
return _chunkKZJQ723Ncjs.uncons.call(void 0, loop(tail));
|
|
1259
1362
|
}
|
|
1260
1363
|
)
|
|
1261
1364
|
);
|
|
1262
1365
|
return loop(stream);
|
|
1263
1366
|
}
|
|
1264
1367
|
function debounce(stream, delayMs) {
|
|
1265
|
-
return
|
|
1266
|
-
|
|
1368
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1369
|
+
_chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
|
|
1267
1370
|
let lastValue;
|
|
1268
1371
|
let hasValue = false;
|
|
1269
1372
|
let timerId;
|
|
@@ -1271,15 +1374,15 @@ function debounce(stream, delayMs) {
|
|
|
1271
1374
|
let tail = stream;
|
|
1272
1375
|
const pullNext = () => {
|
|
1273
1376
|
if (done) return;
|
|
1274
|
-
const pull =
|
|
1275
|
-
|
|
1377
|
+
const pull = _chunkKZJQ723Ncjs.uncons.call(void 0, tail);
|
|
1378
|
+
_chunkGLE2WY7Zcjs.unsafeRunAsync.call(void 0, pull, _env, (exit) => {
|
|
1276
1379
|
if (done) return;
|
|
1277
1380
|
if (exit._tag === "Failure") {
|
|
1278
1381
|
if (hasValue) {
|
|
1279
1382
|
const value = lastValue;
|
|
1280
1383
|
hasValue = false;
|
|
1281
1384
|
clearTimeout(timerId);
|
|
1282
|
-
cb({ _tag: "Success", value: [value,
|
|
1385
|
+
cb({ _tag: "Success", value: [value, _chunkKZJQ723Ncjs.emptyStream.call(void 0, )] });
|
|
1283
1386
|
} else {
|
|
1284
1387
|
cb(exit);
|
|
1285
1388
|
}
|
|
@@ -1309,73 +1412,73 @@ function debounce(stream, delayMs) {
|
|
|
1309
1412
|
);
|
|
1310
1413
|
}
|
|
1311
1414
|
function zip2(left, right) {
|
|
1312
|
-
const loop = (l, r) =>
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
(opt) =>
|
|
1316
|
-
([a, lTail]) =>
|
|
1317
|
-
|
|
1318
|
-
(opt) =>
|
|
1319
|
-
([b, rTail]) =>
|
|
1415
|
+
const loop = (l, r) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1416
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1417
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, l),
|
|
1418
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1419
|
+
([a, lTail]) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1420
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, r),
|
|
1421
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1422
|
+
([b, rTail]) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [[a, b], loop(lTail, rTail)])
|
|
1320
1423
|
)
|
|
1321
1424
|
)
|
|
1322
1425
|
);
|
|
1323
1426
|
return loop(left, right);
|
|
1324
1427
|
}
|
|
1325
1428
|
function zipWith(left, right, f) {
|
|
1326
|
-
const loop = (l, r) =>
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
(opt) =>
|
|
1330
|
-
([a, lTail]) =>
|
|
1331
|
-
|
|
1332
|
-
(opt) =>
|
|
1333
|
-
([b, rTail]) =>
|
|
1429
|
+
const loop = (l, r) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1430
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1431
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, l),
|
|
1432
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1433
|
+
([a, lTail]) => _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1434
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, r),
|
|
1435
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1436
|
+
([b, rTail]) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [f(a, b), loop(lTail, rTail)])
|
|
1334
1437
|
)
|
|
1335
1438
|
)
|
|
1336
1439
|
);
|
|
1337
1440
|
return loop(left, right);
|
|
1338
1441
|
}
|
|
1339
1442
|
function scan(stream, initial, f) {
|
|
1340
|
-
const loop = (cur, acc) =>
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
(opt) =>
|
|
1443
|
+
const loop = (cur, acc) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1444
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1445
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1446
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1344
1447
|
([a, tail]) => {
|
|
1345
1448
|
const next = f(acc, a);
|
|
1346
|
-
return
|
|
1449
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [next, loop(tail, next)]);
|
|
1347
1450
|
}
|
|
1348
1451
|
)
|
|
1349
1452
|
);
|
|
1350
|
-
return
|
|
1351
|
-
|
|
1453
|
+
return _chunkKZJQ723Ncjs.concatStream.call(void 0,
|
|
1454
|
+
_chunkKZJQ723Ncjs.emitStream.call(void 0, _chunkMVGUEJ5Zcjs.succeed.call(void 0, initial)),
|
|
1352
1455
|
loop(stream, initial)
|
|
1353
1456
|
);
|
|
1354
1457
|
}
|
|
1355
1458
|
function interleave(left, right) {
|
|
1356
|
-
const loop = (l, r, pickLeft) =>
|
|
1357
|
-
|
|
1358
|
-
|
|
1459
|
+
const loop = (l, r, pickLeft) => _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1460
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1461
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, pickLeft ? l : r),
|
|
1359
1462
|
// Current stream ended — drain the other
|
|
1360
|
-
(_opt) =>
|
|
1463
|
+
(_opt) => _chunkKZJQ723Ncjs.uncons.call(void 0, pickLeft ? r : l),
|
|
1361
1464
|
([a, tail]) => {
|
|
1362
1465
|
const nextL = pickLeft ? tail : l;
|
|
1363
1466
|
const nextR = pickLeft ? r : tail;
|
|
1364
|
-
return
|
|
1467
|
+
return _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop(nextL, nextR, !pickLeft)]);
|
|
1365
1468
|
}
|
|
1366
1469
|
)
|
|
1367
1470
|
);
|
|
1368
1471
|
return loop(left, right, true);
|
|
1369
1472
|
}
|
|
1370
1473
|
function take2(stream, n) {
|
|
1371
|
-
if (n <= 0) return
|
|
1474
|
+
if (n <= 0) return _chunkKZJQ723Ncjs.emptyStream.call(void 0, );
|
|
1372
1475
|
const loop = (cur, remaining) => {
|
|
1373
|
-
if (remaining <= 0) return
|
|
1374
|
-
return
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
(opt) =>
|
|
1378
|
-
([a, tail]) =>
|
|
1476
|
+
if (remaining <= 0) return _chunkKZJQ723Ncjs.emptyStream.call(void 0, );
|
|
1477
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1478
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1479
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1480
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1481
|
+
([a, tail]) => _chunkMVGUEJ5Zcjs.asyncSucceed.call(void 0, [a, loop(tail, remaining - 1)])
|
|
1379
1482
|
)
|
|
1380
1483
|
);
|
|
1381
1484
|
};
|
|
@@ -1385,11 +1488,11 @@ function drop(stream, n) {
|
|
|
1385
1488
|
if (n <= 0) return stream;
|
|
1386
1489
|
const skip = (cur, remaining) => {
|
|
1387
1490
|
if (remaining <= 0) return cur;
|
|
1388
|
-
return
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
(opt) =>
|
|
1392
|
-
([_a, tail]) =>
|
|
1491
|
+
return _chunkKZJQ723Ncjs.fromPull.call(void 0,
|
|
1492
|
+
_chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
|
|
1493
|
+
_chunkKZJQ723Ncjs.uncons.call(void 0, cur),
|
|
1494
|
+
(opt) => _chunkMVGUEJ5Zcjs.asyncFail.call(void 0, opt),
|
|
1495
|
+
([_a, tail]) => _chunkKZJQ723Ncjs.uncons.call(void 0, skip(tail, remaining - 1))
|
|
1393
1496
|
)
|
|
1394
1497
|
);
|
|
1395
1498
|
};
|
|
@@ -1637,4 +1740,69 @@ function selectedEngineStats(requested, engine, data) {
|
|
|
1637
1740
|
|
|
1638
1741
|
|
|
1639
1742
|
|
|
1640
|
-
exports.ABI_VERSION = _chunkWQ5QNU5Rcjs.ABI_VERSION; exports.Async = _chunkDJQ7OMMBcjs.Async; exports.Cause = _chunkDJQ7OMMBcjs.Cause; exports.DefaultHostExecutor = _chunkWQ5QNU5Rcjs.DefaultHostExecutor; exports.EVENT_WORDS = _chunkWQ5QNU5Rcjs.EVENT_WORDS; exports.EngineFiberHandle = _chunkWQ5QNU5Rcjs.EngineFiberHandle; exports.EventBus = _chunkJX3LZQJHcjs.EventBus; exports.EventKindCode = _chunkWQ5QNU5Rcjs.EventKindCode; exports.Exit = _chunkDJQ7OMMBcjs.Exit; exports.HostRegistry = _chunkWQ5QNU5Rcjs.HostRegistry; exports.InMemoryTracer = _chunkJX3LZQJHcjs.InMemoryTracer; exports.JsFiberEngine = _chunkWQ5QNU5Rcjs.JsFiberEngine; exports.NONE_U32 = _chunkWQ5QNU5Rcjs.NONE_U32; exports.NoopHooks = _chunkWQ5QNU5Rcjs.NoopHooks; exports.OpcodeTagCode = _chunkWQ5QNU5Rcjs.OpcodeTagCode; exports.PURE_PIPELINE_TAG = PURE_PIPELINE_TAG; exports.ProgramBuilder = _chunkWQ5QNU5Rcjs.ProgramBuilder; exports.PushStatus = _chunkWQ5QNU5Rcjs.PushStatus; exports.Resource = _chunkJF4XXPZ5cjs.Resource; exports.RingBuffer = _chunkWQ5QNU5Rcjs.RingBuffer; exports.Runtime = _chunkWQ5QNU5Rcjs.Runtime; exports.RuntimeFiber = _chunkWQ5QNU5Rcjs.RuntimeFiber; exports.RuntimeRegistry = _chunkMWXMNYJScjs.RuntimeRegistry; exports.Scheduler = _chunkWQ5QNU5Rcjs.Scheduler; exports.Scope = _chunkTVN5I4U6cjs.Scope; exports.Supervisor = _chunkMWXMNYJScjs.Supervisor; exports.WasmFiberEngine = _chunkWQ5QNU5Rcjs.WasmFiberEngine; exports.WasmFiberRegistryBridge = _chunkWQ5QNU5Rcjs.WasmFiberRegistryBridge; exports.WasmPackFiberBridge = _chunkWQ5QNU5Rcjs.WasmPackFiberBridge; exports.abortablePromiseStats = _chunkWQ5QNU5Rcjs.abortablePromiseStats; exports.acquireRelease = _chunkDJQ7OMMBcjs.acquireRelease; exports.andThen = andThen2; exports.andThenSchedule = _chunkJF4XXPZ5cjs.andThen; exports.applyFused = applyFused; exports.assertCompletesWithin = _chunkMWXMNYJScjs.assertCompletesWithin; exports.assertFails = _chunkMWXMNYJScjs.assertFails; exports.assertFailsWith = _chunkMWXMNYJScjs.assertFailsWith; exports.assertNever = _chunk7HUOJA4Wcjs.assertNever; exports.assertSucceeds = _chunkMWXMNYJScjs.assertSucceeds; exports.async = _chunkDJQ7OMMBcjs.asyncEffect; exports.asyncCatchAll = _chunkDJQ7OMMBcjs.asyncCatchAll; exports.asyncFail = _chunkDJQ7OMMBcjs.asyncFail; exports.asyncFlatMap = _chunkDJQ7OMMBcjs.asyncFlatMap; exports.asyncFold = _chunkDJQ7OMMBcjs.asyncFold; exports.asyncInterruptible = _chunkDJQ7OMMBcjs.asyncInterruptible; exports.asyncMap = _chunkDJQ7OMMBcjs.asyncMap; exports.asyncMapError = _chunkDJQ7OMMBcjs.asyncMapError; exports.asyncSucceed = _chunkDJQ7OMMBcjs.asyncSucceed; exports.asyncSync = _chunkDJQ7OMMBcjs.asyncSync; exports.asyncTotal = _chunkDJQ7OMMBcjs.asyncTotal; exports.bounded = bounded; exports.bracket = _chunkJF4XXPZ5cjs.bracket; exports.broadcast = broadcast; exports.broadcastToHub = broadcastToHub; exports.buffer = buffer; exports.bufferP = bufferP; exports.catchAll = _chunkDJQ7OMMBcjs.catchAll; exports.catchTag = _chunkMWXMNYJScjs.catchTag; exports.catchTags = _chunkMWXMNYJScjs.catchTags; exports.chunks = chunks; exports.chunksP = chunksP; exports.collectAllPar = _chunkNYL4D7SKcjs.collectAllPar; exports.collectStream = _chunk7HUOJA4Wcjs.collectStream; exports.compose = compose2; exports.composeLayer = _chunkMWXMNYJScjs.compose; exports.concatStream = _chunk7HUOJA4Wcjs.concatStream; exports.consoleJsonLogger = _chunkMWXMNYJScjs.consoleJsonLogger; exports.contramapSchedule = _chunkJF4XXPZ5cjs.contramap; exports.ctxExtend = _chunkWQ5QNU5Rcjs.ctxExtend; exports.ctxToObject = _chunkWQ5QNU5Rcjs.ctxToObject; exports.debounce = debounce; exports.decodeEvent = _chunkWQ5QNU5Rcjs.decodeEvent; exports.decodeEventBatch = _chunkWQ5QNU5Rcjs.decodeEventBatch; exports.defaultTracer = _chunkMWXMNYJScjs.defaultTracer; exports.delayedEffect = _chunkMWXMNYJScjs.delayedEffect; exports.derivedRef = _chunkMWXMNYJScjs.derivedRef; exports.deserializeFusedPipeline = deserializeFusedPipeline; exports.dropP = dropP; exports.dropStream = drop; exports.dumpAllFibers = _chunkMWXMNYJScjs.dumpAllFibers; exports.elapsed = _chunkJF4XXPZ5cjs.elapsed; exports.emitStream = _chunk7HUOJA4Wcjs.emitStream; exports.emptyContext = _chunkWQ5QNU5Rcjs.emptyContext; exports.emptyStream = _chunk7HUOJA4Wcjs.emptyStream; exports.encodeOpcodeNodes = _chunkWQ5QNU5Rcjs.encodeOpcodeNodes; exports.encodeOpcodeProgram = _chunkWQ5QNU5Rcjs.encodeOpcodeProgram; exports.end = _chunkDJQ7OMMBcjs.end; exports.engineStats = engineStats; exports.ensuring = _chunkJF4XXPZ5cjs.ensuring; exports.exponential = _chunkJF4XXPZ5cjs.exponential; exports.fail = _chunkDJQ7OMMBcjs.fail; exports.fibonacci = _chunkJF4XXPZ5cjs.fibonacci; exports.filterMapP = filterMapP; exports.filterP = filterP; exports.fixed = _chunkJF4XXPZ5cjs.fixed; exports.flakyEffect = _chunkMWXMNYJScjs.flakyEffect; exports.flatMap = _chunkDJQ7OMMBcjs.flatMap; exports.flattenStream = _chunk7HUOJA4Wcjs.flattenStream; exports.foreachStream = _chunk7HUOJA4Wcjs.foreachStream; exports.fork = _chunkWQ5QNU5Rcjs.fork; exports.fromArray = _chunk7HUOJA4Wcjs.fromArray; exports.fromHub = fromHub; exports.fromPromiseAbortable = _chunkWQ5QNU5Rcjs.fromPromiseAbortable; exports.fromPull = _chunk7HUOJA4Wcjs.fromPull; exports.fuse = fuse; exports.getBenchmarkBudget = _chunkWQ5QNU5Rcjs.getBenchmarkBudget; exports.getCurrentFiber = _chunkWQ5QNU5Rcjs.getCurrentFiber; exports.getStats = getStats; exports.globalScheduler = _chunkWQ5QNU5Rcjs.globalScheduler; exports.gracefulShutdown = _chunkMWXMNYJScjs.gracefulShutdown; exports.groupedP = groupedP; exports.identity = identity; exports.inferCallerLaneFromStack = _chunkWQ5QNU5Rcjs.inferCallerLaneFromStack; exports.initState = initState; exports.interleave = interleave; exports.intersect = _chunkJF4XXPZ5cjs.intersect; exports.isFusionEnabled = isFusionEnabled; exports.isFusionVerbose = isFusionVerbose; exports.jitter = _chunkJF4XXPZ5cjs.jitter; exports.jittered = _chunkJF4XXPZ5cjs.jittered; exports.jitteredSchedule = _chunkJF4XXPZ5cjs.jitteredSchedule; exports.joinSupervised = _chunkMWXMNYJScjs.joinSupervised; exports.laneTag = _chunkWQ5QNU5Rcjs.laneTag; exports.layer = _chunkMWXMNYJScjs.layer; exports.layerFail = _chunkMWXMNYJScjs.layerFail; exports.layerFrom = _chunkMWXMNYJScjs.layerFrom; exports.layerSucceed = _chunkMWXMNYJScjs.layerSucceed; exports.linkAbortController = _chunkMWXMNYJScjs.linkAbortController; exports.makeBoundedRingBuffer = _chunkWQ5QNU5Rcjs.makeBoundedRingBuffer; exports.makeCancelToken = _chunkMWXMNYJScjs.makeCancelToken; exports.makeCircuitBreaker = _chunkJF4XXPZ5cjs.makeCircuitBreaker; exports.makeFiberReadyQueue = _chunkWQ5QNU5Rcjs.makeFiberReadyQueue; exports.makeHub = makeHub; exports.makeMetrics = _chunkJX3LZQJHcjs.makeMetrics; exports.makeRef = _chunkMWXMNYJScjs.makeRef; exports.makeResource = _chunkJF4XXPZ5cjs.makeResource; exports.makeRuntimeEventRecord = _chunkJX3LZQJHcjs.makeRuntimeEventRecord; exports.makeSemaphore = _chunkMWXMNYJScjs.makeSemaphore; exports.makeStreamChunker = makeStreamChunker; exports.makeSupervisor = _chunkMWXMNYJScjs.makeSupervisor; exports.makeTestRuntime = _chunkMWXMNYJScjs.makeTestRuntime; exports.makeTracer = _chunkMWXMNYJScjs.makeTracer; exports.makeWorkerPool = _chunkMWXMNYJScjs.makeWorkerPool; exports.managed = _chunkJF4XXPZ5cjs.managed; exports.managedAll = _chunkJF4XXPZ5cjs.managedAll; exports.managedStream = _chunk7HUOJA4Wcjs.managedStream; exports.map = _chunkDJQ7OMMBcjs.map; exports.mapAsync = _chunkDJQ7OMMBcjs.mapAsync; exports.mapChunks = mapChunks; exports.mapChunksEffect = mapChunksEffect; exports.mapChunksEffectP = mapChunksEffectP; exports.mapEffectP = mapEffectP; exports.mapError = _chunkDJQ7OMMBcjs.mapError; exports.mapErrorTyped = _chunkMWXMNYJScjs.mapError; exports.mapLayer = _chunkMWXMNYJScjs.mapLayer; exports.mapP = mapP; exports.mapSchedule = _chunkJF4XXPZ5cjs.map; exports.mapStream = _chunk7HUOJA4Wcjs.mapStream; exports.mapTryAsync = _chunkDJQ7OMMBcjs.mapTryAsync; exports.merge = _chunk7HUOJA4Wcjs.merge; exports.mergeLayer = _chunkMWXMNYJScjs.merge; exports.mergeStream = _chunk7HUOJA4Wcjs.mergeStream; exports.neverEffect = _chunkMWXMNYJScjs.neverEffect; exports.none = _chunkDJQ7OMMBcjs.none; exports.orElse = _chunkMWXMNYJScjs.orElse; exports.orElseOptional = _chunkDJQ7OMMBcjs.orElseOptional; exports.provideLayer = _chunkMWXMNYJScjs.provideLayer; exports.race = _chunkNYL4D7SKcjs.race; exports.raceWith = _chunkNYL4D7SKcjs.raceWith; exports.rangeStream = _chunk7HUOJA4Wcjs.rangeStream; exports.recurs = _chunkJF4XXPZ5cjs.recurs; exports.registerShutdownHooks = _chunkMWXMNYJScjs.registerShutdownHooks; exports.repeatWithSchedule = _chunkJF4XXPZ5cjs.repeatWithSchedule; exports.resetAbortablePromiseStats = _chunkWQ5QNU5Rcjs.resetAbortablePromiseStats; exports.resource = _chunkJF4XXPZ5cjs.resource; exports.resourceAll = _chunkJF4XXPZ5cjs.resourceAll; exports.resourceFromManaged = _chunkJF4XXPZ5cjs.resourceFromManaged; exports.resourceSucceed = _chunkJF4XXPZ5cjs.resourceSucceed; exports.retry = _chunk45F7OKGTcjs.retry; exports.retryN = _chunk45F7OKGTcjs.retryN; exports.retryWithBackoff = _chunk45F7OKGTcjs.retryWithBackoff; exports.retryWithSchedule = _chunkJF4XXPZ5cjs.retryWithSchedule; exports.runFusedArray = runFusedArray; exports.runtimeCapabilities = _chunkWQ5QNU5Rcjs.runtimeCapabilities; exports.runtimeEventRecordContext = _chunkJX3LZQJHcjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunkWQ5QNU5Rcjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunkJX3LZQJHcjs.runtimeHooksToEventHandler; exports.sanitizeLaneKey = _chunkWQ5QNU5Rcjs.sanitizeLaneKey; exports.scan = scan; exports.selectedEngineStats = selectedEngineStats; exports.serializeFusedPipeline = serializeFusedPipeline; exports.setBenchmarkBudget = _chunkWQ5QNU5Rcjs.setBenchmarkBudget; exports.setFusionEnabled = setFusionEnabled; exports.setFusionVerbose = setFusionVerbose; exports.sleep = _chunk45F7OKGTcjs.sleep; exports.some = _chunkDJQ7OMMBcjs.some; exports.streamFromReadableStream = _chunk7HUOJA4Wcjs.streamFromReadableStream; exports.succeed = _chunkDJQ7OMMBcjs.succeed; exports.supervise = _chunkMWXMNYJScjs.supervise; exports.sync = _chunkDJQ7OMMBcjs.sync; exports.tagError = _chunkMWXMNYJScjs.tagError; exports.takeP = takeP; exports.takeSchedule = _chunkJF4XXPZ5cjs.take; exports.takeStream = take2; exports.tapEffectP = tapEffectP; exports.throttle = throttle; exports.timeout = _chunk45F7OKGTcjs.timeout; exports.toPromise = _chunkWQ5QNU5Rcjs.toPromise; exports.toPromiseByCaller = _chunkWQ5QNU5Rcjs.toPromiseByCaller; exports.uncons = _chunk7HUOJA4Wcjs.uncons; exports.union = _chunkJF4XXPZ5cjs.union; exports.unit = _chunkDJQ7OMMBcjs.unit; exports.unsafeGetCurrentRuntime = _chunkWQ5QNU5Rcjs.unsafeGetCurrentRuntime; exports.unsafeRunAsync = _chunkWQ5QNU5Rcjs.unsafeRunAsync; exports.unsafeRunFoldWithEnv = _chunkWQ5QNU5Rcjs.unsafeRunFoldWithEnv; exports.unwrapScoped = _chunk7HUOJA4Wcjs.unwrapScoped; exports.useManaged = _chunkJF4XXPZ5cjs.useManaged; exports.useResource = _chunkJF4XXPZ5cjs.useResource; exports.via = via; exports.whileInput = _chunkJF4XXPZ5cjs.whileInput; exports.widenOpt = _chunk7HUOJA4Wcjs.widenOpt; exports.windowed = _chunkJF4XXPZ5cjs.windowed; exports.withAsyncPromise = _chunkDJQ7OMMBcjs.withAsyncPromise; exports.withCurrentFiber = _chunkWQ5QNU5Rcjs.withCurrentFiber; exports.withScope = _chunkTVN5I4U6cjs.withScope; exports.withScopeAsync = _chunkTVN5I4U6cjs.withScopeAsync; exports.zip = _chunk7HUOJA4Wcjs.zip; exports.zipPar = _chunkNYL4D7SKcjs.zipPar; exports.zipStream = zip2; exports.zipWith = zipWith;
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
exports.ABI_VERSION = _chunkGLE2WY7Zcjs.ABI_VERSION; exports.Async = _chunkMVGUEJ5Zcjs.Async; exports.Cause = _chunkMVGUEJ5Zcjs.Cause; exports.DefaultHostExecutor = _chunkGLE2WY7Zcjs.DefaultHostExecutor; exports.EVENT_WORDS = _chunkGLE2WY7Zcjs.EVENT_WORDS; exports.EngineFiberHandle = _chunkGLE2WY7Zcjs.EngineFiberHandle; exports.EventBus = _chunk52PPNNI4cjs.EventBus; exports.EventKindCode = _chunkGLE2WY7Zcjs.EventKindCode; exports.Exit = _chunkMVGUEJ5Zcjs.Exit; exports.HostRegistry = _chunkGLE2WY7Zcjs.HostRegistry; exports.InMemoryTracer = _chunk52PPNNI4cjs.InMemoryTracer; exports.JsFiberEngine = _chunkGLE2WY7Zcjs.JsFiberEngine; exports.Layer = _chunkQ2I37RP3cjs.Layer; exports.LayerContext = _chunkQ2I37RP3cjs.LayerContext; exports.MissingLayerServiceError = _chunkQ2I37RP3cjs.MissingLayerServiceError; exports.NONE_U32 = _chunkGLE2WY7Zcjs.NONE_U32; exports.NoopHooks = _chunkGLE2WY7Zcjs.NoopHooks; exports.OpcodeTagCode = _chunkGLE2WY7Zcjs.OpcodeTagCode; exports.PURE_PIPELINE_TAG = PURE_PIPELINE_TAG; exports.Pipeline = Pipeline; exports.ProgramBuilder = _chunkGLE2WY7Zcjs.ProgramBuilder; exports.PushStatus = _chunkGLE2WY7Zcjs.PushStatus; exports.Resource = _chunk62AZW6UTcjs.Resource; exports.RingBuffer = _chunkGLE2WY7Zcjs.RingBuffer; exports.Runtime = _chunkGLE2WY7Zcjs.Runtime; exports.RuntimeFiber = _chunkGLE2WY7Zcjs.RuntimeFiber; exports.RuntimeRegistry = _chunkQ2I37RP3cjs.RuntimeRegistry; exports.Schedule = _chunkAGR5B2BCcjs.Schedule; exports.Scheduler = _chunkGLE2WY7Zcjs.Scheduler; exports.Scope = _chunkJF5WGYJJcjs.Scope; exports.Stream = Stream; exports.Supervisor = _chunkQ2I37RP3cjs.Supervisor; exports.TestClock = _chunkQ2I37RP3cjs.TestClock; exports.TestScheduler = _chunkQ2I37RP3cjs.TestScheduler; exports.WasmFiberEngine = _chunkGLE2WY7Zcjs.WasmFiberEngine; exports.WasmFiberRegistryBridge = _chunkGLE2WY7Zcjs.WasmFiberRegistryBridge; exports.WasmPackFiberBridge = _chunkGLE2WY7Zcjs.WasmPackFiberBridge; exports.abortablePromiseStats = _chunkGLE2WY7Zcjs.abortablePromiseStats; exports.acquireRelease = _chunkMVGUEJ5Zcjs.acquireRelease; exports.andThen = andThen2; exports.andThenSchedule = _chunkAGR5B2BCcjs.andThen; exports.applyFused = applyFused; exports.asStream = asStream; exports.assertCompletesWithin = _chunkQ2I37RP3cjs.assertCompletesWithin; exports.assertFails = _chunkQ2I37RP3cjs.assertFails; exports.assertFailsWith = _chunkQ2I37RP3cjs.assertFailsWith; exports.assertNever = _chunkKZJQ723Ncjs.assertNever; 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.bounded = bounded; exports.bracket = _chunk62AZW6UTcjs.bracket; exports.broadcast = broadcast; exports.broadcastToHub = broadcastToHub; exports.buffer = buffer; exports.bufferP = bufferP; exports.buildLayer = _chunkQ2I37RP3cjs.buildLayer; exports.catchAll = _chunkMVGUEJ5Zcjs.catchAll; exports.catchTag = _chunkQ2I37RP3cjs.catchTag; exports.catchTags = _chunkQ2I37RP3cjs.catchTags; exports.chunks = chunks; exports.chunksP = chunksP; exports.collectAllPar = _chunkSA6HUJVIcjs.collectAllPar; exports.collectStream = _chunkKZJQ723Ncjs.collectStream; exports.compose = compose2; exports.composeLayer = _chunkQ2I37RP3cjs.compose; exports.concatStream = _chunkKZJQ723Ncjs.concatStream; exports.consoleJsonLogger = _chunkQ2I37RP3cjs.consoleJsonLogger; exports.contramapSchedule = _chunkAGR5B2BCcjs.contramap; exports.ctxExtend = _chunkGLE2WY7Zcjs.ctxExtend; exports.ctxToObject = _chunkGLE2WY7Zcjs.ctxToObject; exports.debounce = debounce; exports.decodeEvent = _chunkGLE2WY7Zcjs.decodeEvent; exports.decodeEventBatch = _chunkGLE2WY7Zcjs.decodeEventBatch; exports.defaultTracer = _chunkQ2I37RP3cjs.defaultTracer; exports.defineLayer = _chunkQ2I37RP3cjs.defineLayer; exports.defineService = _chunkQ2I37RP3cjs.defineService; exports.delayedEffect = _chunkQ2I37RP3cjs.delayedEffect; exports.derivedRef = _chunkQ2I37RP3cjs.derivedRef; exports.deserializeFusedPipeline = deserializeFusedPipeline; exports.dropP = dropP; exports.dropStream = drop; exports.dumpAllFibers = _chunkQ2I37RP3cjs.dumpAllFibers; exports.elapsed = _chunkAGR5B2BCcjs.elapsed; exports.emitStream = _chunkKZJQ723Ncjs.emitStream; exports.emptyContext = _chunkGLE2WY7Zcjs.emptyContext; exports.emptyStream = _chunkKZJQ723Ncjs.emptyStream; exports.encodeOpcodeNodes = _chunkGLE2WY7Zcjs.encodeOpcodeNodes; exports.encodeOpcodeProgram = _chunkGLE2WY7Zcjs.encodeOpcodeProgram; exports.end = _chunkMVGUEJ5Zcjs.end; exports.engineStats = engineStats; exports.ensuring = _chunk62AZW6UTcjs.ensuring; exports.exponential = _chunkAGR5B2BCcjs.exponential; exports.fail = _chunkMVGUEJ5Zcjs.fail; exports.fiberRefSnapshot = _chunkPD4EJTQCcjs.fiberRefSnapshot; exports.fibonacci = _chunkAGR5B2BCcjs.fibonacci; exports.filterMapP = filterMapP; exports.filterP = filterP; exports.fixed = _chunkAGR5B2BCcjs.fixed; exports.flakyEffect = _chunkQ2I37RP3cjs.flakyEffect; exports.flatMap = _chunkMVGUEJ5Zcjs.flatMap; exports.flattenStream = _chunkKZJQ723Ncjs.flattenStream; exports.foreachStream = _chunkKZJQ723Ncjs.foreachStream; exports.forever = _chunkAGR5B2BCcjs.forever; exports.fork = _chunkGLE2WY7Zcjs.fork; exports.formatCause = _chunkMVGUEJ5Zcjs.formatCause; exports.formatLayerError = _chunkQ2I37RP3cjs.formatLayerError; exports.fromArray = _chunkKZJQ723Ncjs.fromArray; exports.fromHub = fromHub; exports.fromPromiseAbortable = _chunkGLE2WY7Zcjs.fromPromiseAbortable; exports.fromPull = _chunkKZJQ723Ncjs.fromPull; exports.fuse = fuse; exports.getBenchmarkBudget = _chunkGLE2WY7Zcjs.getBenchmarkBudget; exports.getCurrentFiber = _chunkGLE2WY7Zcjs.getCurrentFiber; exports.getFiberRef = _chunkPD4EJTQCcjs.getFiberRef; exports.getService = _chunkQ2I37RP3cjs.getService; exports.getStats = getStats; exports.globalScheduler = _chunkGLE2WY7Zcjs.globalScheduler; exports.gracefulShutdown = _chunkQ2I37RP3cjs.gracefulShutdown; exports.groupedP = groupedP; exports.identity = identity; exports.inferCallerLaneFromStack = _chunkGLE2WY7Zcjs.inferCallerLaneFromStack; exports.initState = initState; exports.interleave = interleave; exports.interruptible = _chunkMVGUEJ5Zcjs.interruptible; exports.intersect = _chunkAGR5B2BCcjs.intersect; exports.isCause = _chunkMVGUEJ5Zcjs.isCause; exports.isFusionEnabled = isFusionEnabled; exports.isFusionVerbose = isFusionVerbose; exports.jitter = _chunkAGR5B2BCcjs.jitter; exports.jittered = _chunkAGR5B2BCcjs.jittered; exports.jitteredSchedule = _chunkAGR5B2BCcjs.jitteredSchedule; exports.joinSupervised = _chunkQ2I37RP3cjs.joinSupervised; exports.laneTag = _chunkGLE2WY7Zcjs.laneTag; 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.makeBoundedRingBuffer = _chunkGLE2WY7Zcjs.makeBoundedRingBuffer; exports.makeCancelToken = _chunkQ2I37RP3cjs.makeCancelToken; exports.makeCircuitBreaker = _chunk62AZW6UTcjs.makeCircuitBreaker; exports.makeFiberReadyQueue = _chunkGLE2WY7Zcjs.makeFiberReadyQueue; exports.makeFiberRef = _chunkPD4EJTQCcjs.makeFiberRef; exports.makeHub = makeHub; 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.makeStreamChunker = makeStreamChunker; 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.managedStream = _chunkKZJQ723Ncjs.managedStream; exports.map = _chunkMVGUEJ5Zcjs.map; exports.mapAsync = _chunkMVGUEJ5Zcjs.mapAsync; exports.mapChunks = mapChunks; exports.mapChunksEffect = mapChunksEffect; exports.mapChunksEffectP = mapChunksEffectP; exports.mapEffectP = mapEffectP; exports.mapError = _chunkMVGUEJ5Zcjs.mapError; exports.mapErrorTyped = _chunkQ2I37RP3cjs.mapError; exports.mapLayer = _chunkQ2I37RP3cjs.mapLayer; exports.mapP = mapP; exports.mapSchedule = _chunkAGR5B2BCcjs.map; exports.mapStream = _chunkKZJQ723Ncjs.mapStream; exports.mapTryAsync = _chunkMVGUEJ5Zcjs.mapTryAsync; exports.maxDelay = _chunkAGR5B2BCcjs.maxDelay; exports.maxElapsed = _chunkAGR5B2BCcjs.maxElapsed; exports.merge = _chunkKZJQ723Ncjs.merge; exports.mergeLayer = _chunkQ2I37RP3cjs.merge; exports.mergeStream = _chunkKZJQ723Ncjs.mergeStream; 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.race = _chunkSA6HUJVIcjs.race; exports.raceWith = _chunkSA6HUJVIcjs.raceWith; exports.rangeStream = _chunkKZJQ723Ncjs.rangeStream; 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.runFusedArray = runFusedArray; exports.runPromise = _chunkQ2I37RP3cjs.runPromise; exports.runSchedule = _chunkAGR5B2BCcjs.runSchedule; exports.runtimeCapabilities = _chunkGLE2WY7Zcjs.runtimeCapabilities; exports.runtimeClockFromEnv = _chunkGLE2WY7Zcjs.runtimeClockFromEnv; exports.runtimeEventRecordContext = _chunk52PPNNI4cjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunkGLE2WY7Zcjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunk52PPNNI4cjs.runtimeHooksToEventHandler; exports.sanitizeLaneKey = _chunkGLE2WY7Zcjs.sanitizeLaneKey; exports.scan = scan; exports.scheduleDriver = _chunkAGR5B2BCcjs.scheduleDriver; exports.selectedEngineStats = selectedEngineStats; exports.serializeFusedPipeline = serializeFusedPipeline; exports.serviceTag = _chunkQ2I37RP3cjs.serviceTag; exports.setBenchmarkBudget = _chunkGLE2WY7Zcjs.setBenchmarkBudget; exports.setFiberRef = _chunkPD4EJTQCcjs.setFiberRef; exports.setFusionEnabled = setFusionEnabled; exports.setFusionVerbose = setFusionVerbose; exports.sleep = _chunkAGR5B2BCcjs.sleep; exports.some = _chunkMVGUEJ5Zcjs.some; exports.spaced = _chunkAGR5B2BCcjs.spaced; exports.streamFromReadableStream = _chunkKZJQ723Ncjs.streamFromReadableStream; exports.succeed = _chunkMVGUEJ5Zcjs.succeed; exports.supervise = _chunkQ2I37RP3cjs.supervise; exports.sync = _chunkMVGUEJ5Zcjs.sync; exports.tagError = _chunkQ2I37RP3cjs.tagError; exports.takeP = takeP; exports.takeSchedule = _chunkAGR5B2BCcjs.take; exports.takeStream = take2; exports.tapDecision = _chunkAGR5B2BCcjs.tapDecision; exports.tapEffectP = tapEffectP; exports.throttle = throttle; exports.timeout = _chunkAGR5B2BCcjs.timeout; exports.toPromise = _chunkGLE2WY7Zcjs.toPromise; exports.toPromiseByCaller = _chunkGLE2WY7Zcjs.toPromiseByCaller; exports.uncons = _chunkKZJQ723Ncjs.uncons; 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.unwrapScoped = _chunkKZJQ723Ncjs.unwrapScoped; exports.upTo = _chunkAGR5B2BCcjs.upTo; exports.updateFiberRef = _chunkPD4EJTQCcjs.updateFiberRef; exports.useManaged = _chunk62AZW6UTcjs.useManaged; exports.useResource = _chunk62AZW6UTcjs.useResource; exports.via = via; exports.whileInput = _chunkAGR5B2BCcjs.whileInput; exports.whileOutput = _chunkAGR5B2BCcjs.whileOutput; exports.widenOpt = _chunkKZJQ723Ncjs.widenOpt; exports.windowed = _chunkAGR5B2BCcjs.windowed; exports.withAsyncPromise = _chunkMVGUEJ5Zcjs.withAsyncPromise; exports.withCurrentFiber = _chunkGLE2WY7Zcjs.withCurrentFiber; exports.withScope = _chunkJF5WGYJJcjs.withScope; exports.withScopeAsync = _chunkJF5WGYJJcjs.withScopeAsync; exports.zip = _chunkKZJQ723Ncjs.zip; exports.zipPar = _chunkSA6HUJVIcjs.zipPar; exports.zipStream = zip2; exports.zipWith = zipWith;
|