brass-runtime 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/agent/cli/main.cjs +30 -30
  2. package/dist/agent/cli/main.js +2 -2
  3. package/dist/agent/cli/main.mjs +2 -2
  4. package/dist/agent/index.cjs +3 -3
  5. package/dist/agent/index.d.ts +1 -1
  6. package/dist/agent/index.js +2 -2
  7. package/dist/agent/index.mjs +2 -2
  8. package/dist/{chunk-PSEU65ND.js → chunk-22HZQG5F.js} +6 -6
  9. package/dist/{chunk-SSQJKDN3.cjs → chunk-2JHJ4YHS.cjs} +227 -117
  10. package/dist/{chunk-IFRBVMWJ.cjs → chunk-2OW6IFY2.cjs} +19 -19
  11. package/dist/{chunk-YTX2JYYP.cjs → chunk-5LC7V2OZ.cjs} +18 -18
  12. package/dist/{chunk-7TXQJFZX.cjs → chunk-5RZ7YITF.cjs} +13 -13
  13. package/dist/{chunk-OT2TESZU.mjs → chunk-6V2AWT4R.mjs} +1 -1
  14. package/dist/{chunk-BG5RNEA2.js → chunk-7DU7IQHK.js} +3 -3
  15. package/dist/{chunk-QCOLAHU3.mjs → chunk-7GBJYOX7.mjs} +5 -5
  16. package/dist/{chunk-ITG6I7ZS.js → chunk-7VQLEN37.js} +1 -1
  17. package/dist/{chunk-QZ6QFJNM.mjs → chunk-B5FKOLTB.mjs} +3 -3
  18. package/dist/{chunk-RREBJX2S.mjs → chunk-BC6Q6BCO.mjs} +1 -1
  19. package/dist/{chunk-KRYP6CAE.mjs → chunk-COOW7BJX.mjs} +2 -2
  20. package/dist/{chunk-ELLF55ER.mjs → chunk-EEN5OTCR.mjs} +1 -1
  21. package/dist/{chunk-3PFZGP23.cjs → chunk-EICAJDNX.cjs} +13 -13
  22. package/dist/{chunk-5XADBMSU.cjs → chunk-ELIECDYN.cjs} +5 -5
  23. package/dist/{chunk-2QNREG6K.mjs → chunk-H626ZTDZ.mjs} +211 -101
  24. package/dist/{chunk-JH4GI3DW.js → chunk-IPSMXUWA.js} +1 -1
  25. package/dist/{chunk-2SLT3X6G.cjs → chunk-J6DUHITE.cjs} +6 -6
  26. package/dist/{chunk-OI4ESUMC.mjs → chunk-JWIEMBE6.mjs} +6 -6
  27. package/dist/{chunk-N6QNSTWD.cjs → chunk-KNTJ7FQB.cjs} +5 -5
  28. package/dist/{chunk-W6WR37HN.js → chunk-LSYQ3C2M.js} +2 -2
  29. package/dist/{chunk-AADFFVYS.js → chunk-OW5VHAOE.js} +1 -1
  30. package/dist/{chunk-G5JTCFMI.mjs → chunk-RBHNOKH4.mjs} +2 -2
  31. package/dist/{chunk-IBRHSH5H.js → chunk-S4HXADU4.js} +1 -1
  32. package/dist/{chunk-XSAHV5HQ.js → chunk-TTSPIU3U.js} +211 -101
  33. package/dist/{chunk-S4HHFUYP.js → chunk-UAKAF32U.js} +2 -2
  34. package/dist/{chunk-R6WDSZA6.mjs → chunk-WCBNXPN6.mjs} +1 -1
  35. package/dist/{chunk-AJMKZXRB.cjs → chunk-WGE2FEZE.cjs} +2 -2
  36. package/dist/{chunk-LXBU5E77.cjs → chunk-WI7GZF3B.cjs} +16 -16
  37. package/dist/{chunk-H5GYX7RZ.js → chunk-WUDHOZIH.js} +113 -5
  38. package/dist/{chunk-KHACHFBQ.cjs → chunk-WVSZOPGQ.cjs} +54 -54
  39. package/dist/{chunk-VIFA4DPN.cjs → chunk-XPIMJQYS.cjs} +193 -85
  40. package/dist/{chunk-3PHU7FWS.js → chunk-YGR2IN4R.js} +5 -5
  41. package/dist/{chunk-ITZQ526U.mjs → chunk-YWLLH27R.mjs} +2 -2
  42. package/dist/{chunk-4YQHPIWJ.js → chunk-YZ5LQ32F.js} +2 -2
  43. package/dist/{chunk-Z3PSSXP3.mjs → chunk-Z3ZZMQUZ.mjs} +113 -5
  44. package/dist/core/index.cjs +13 -7
  45. package/dist/core/index.d.ts +6 -6
  46. package/dist/core/index.js +12 -6
  47. package/dist/core/index.mjs +12 -6
  48. package/dist/{defaultClient-DhpCQW9m.d.ts → defaultClient-Cid0JoUR.d.ts} +29 -4
  49. package/dist/{effect-CtUDl5M5.d.ts → effect-DnGUuhw6.d.ts} +22 -1
  50. package/dist/http/index.cjs +52 -48
  51. package/dist/http/index.d.ts +8 -8
  52. package/dist/http/index.js +10 -6
  53. package/dist/http/index.mjs +10 -6
  54. package/dist/http/testing.cjs +8 -8
  55. package/dist/http/testing.d.ts +4 -4
  56. package/dist/http/testing.js +4 -4
  57. package/dist/http/testing.mjs +4 -4
  58. package/dist/index.cjs +91 -85
  59. package/dist/index.d.ts +7 -7
  60. package/dist/index.js +13 -7
  61. package/dist/index.mjs +13 -7
  62. package/dist/{layer-BalPI6cN.d.ts → layer-D2LFcBVx.d.ts} +1 -1
  63. package/dist/observability/index.cjs +9 -9
  64. package/dist/observability/index.d.ts +7 -7
  65. package/dist/observability/index.js +8 -8
  66. package/dist/observability/index.mjs +8 -8
  67. package/dist/perf/cli.cjs +25 -25
  68. package/dist/perf/cli.js +10 -10
  69. package/dist/perf/cli.mjs +10 -10
  70. package/dist/perf/index.cjs +12 -12
  71. package/dist/perf/index.js +10 -10
  72. package/dist/perf/index.mjs +10 -10
  73. package/dist/{server-C1zVmqE6.d.ts → server-Bf1zNYZk.d.ts} +4 -4
  74. package/dist/{stream-Bb4FTejt.d.ts → stream-I7bkvF7a.d.ts} +1 -1
  75. package/dist/{tracer-DzfuE6um.d.ts → tracer-DF83nLn6.d.ts} +2 -2
  76. package/dist/{tracing-BABA5arE.d.ts → tracing-CWV4gT0u.d.ts} +1 -1
  77. package/package.json +3 -2
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkN6QNSTWDcjs = require('./chunk-N6QNSTWD.cjs');
4
+ var _chunkKNTJ7FQBcjs = require('./chunk-KNTJ7FQB.cjs');
5
5
 
6
6
 
7
- var _chunkKHACHFBQcjs = require('./chunk-KHACHFBQ.cjs');
7
+ var _chunkWVSZOPGQcjs = require('./chunk-WVSZOPGQ.cjs');
8
8
 
9
9
 
10
- var _chunkLXBU5E77cjs = require('./chunk-LXBU5E77.cjs');
10
+ var _chunkWI7GZF3Bcjs = require('./chunk-WI7GZF3B.cjs');
11
11
 
12
12
 
13
- var _chunkAJMKZXRBcjs = require('./chunk-AJMKZXRB.cjs');
13
+ var _chunkWGE2FEZEcjs = require('./chunk-WGE2FEZE.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkVIFA4DPNcjs = require('./chunk-VIFA4DPN.cjs');
17
+ var _chunkXPIMJQYScjs = require('./chunk-XPIMJQYS.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkSSQJKDN3cjs = require('./chunk-SSQJKDN3.cjs');
21
+ var _chunk2JHJ4YHScjs = require('./chunk-2JHJ4YHS.cjs');
22
22
 
23
23
 
24
24
 
@@ -299,10 +299,10 @@ function makeRuntimeCase(variant, chainDepth) {
299
299
  maxCapacity: 8192,
300
300
  flushBudget: 2048
301
301
  };
302
- const scheduler = variant === "wide-scheduler" ? new (0, _chunkSSQJKDN3cjs.Scheduler)(schedulerConfig) : void 0;
303
- const recorder = variant === "recorder" ? _chunkN6QNSTWDcjs.makeRuntimeRecorder.call(void 0, { maxEvents: 1e4 }) : void 0;
304
- const hooks = _nullishCoalesce(_optionalChain([recorder, 'optionalAccess', _8 => _8.hooks]), () => ( (variant === "active-hooks" ? new (0, _chunkAJMKZXRBcjs.EventBus)() : void 0)));
305
- const runtime = _chunkSSQJKDN3cjs.Runtime.makeWithEngine(hooks ? {} : {}, "ts", {
302
+ const scheduler = variant === "wide-scheduler" ? new (0, _chunk2JHJ4YHScjs.Scheduler)(schedulerConfig) : void 0;
303
+ const recorder = variant === "recorder" ? _chunkKNTJ7FQBcjs.makeRuntimeRecorder.call(void 0, { maxEvents: 1e4 }) : void 0;
304
+ const hooks = _nullishCoalesce(_optionalChain([recorder, 'optionalAccess', _8 => _8.hooks]), () => ( (variant === "active-hooks" ? new (0, _chunkWGE2FEZEcjs.EventBus)() : void 0)));
305
+ const runtime = _chunk2JHJ4YHScjs.Runtime.makeWithEngine(hooks ? {} : {}, "ts", {
306
306
  hooks,
307
307
  ...scheduler ? { scheduler } : {},
308
308
  inferLane: false
@@ -349,7 +349,7 @@ function makeFlatMapChain(depth) {
349
349
  return effect;
350
350
  }
351
351
  function makeFiberRefProgram(depth) {
352
- const ref = _chunkN6QNSTWDcjs.makeFiberRef.call(void 0, 0);
352
+ const ref = _chunkKNTJ7FQBcjs.makeFiberRef.call(void 0, 0);
353
353
  let effect = ref.set(0);
354
354
  for (let i = 0; i < depth; i++) {
355
355
  effect = _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0, effect, () => ref.update((n) => n + 1));
@@ -651,7 +651,7 @@ async function profileHttpLayers(options = {}) {
651
651
  }
652
652
  async function runScenario(scenario) {
653
653
  const server = await startDummyServer(scenario.delayMs);
654
- const observability = scenario.variant === "default-json-observed" ? _chunkLXBU5E77cjs.makeObservability.call(void 0, {
654
+ const observability = scenario.variant === "default-json-observed" ? _chunkWI7GZF3Bcjs.makeObservability.call(void 0, {
655
655
  logs: false,
656
656
  traces: { maxFinishedSpans: 1e4 },
657
657
  autoStart: false
@@ -838,9 +838,9 @@ function makeDefaultJsonRunner(server, scenario, preset, disableAdaptiveLimiter
838
838
  }
839
839
  function makeProfileRuntime(concurrency, observability) {
840
840
  const capacity = Math.max(65536, concurrency * 8);
841
- return _chunkSSQJKDN3cjs.Runtime.makeWithEngine(_nullishCoalesce(_optionalChain([observability, 'optionalAccess', _30 => _30.env]), () => ( {})), "ts", {
841
+ return _chunk2JHJ4YHScjs.Runtime.makeWithEngine(_nullishCoalesce(_optionalChain([observability, 'optionalAccess', _30 => _30.env]), () => ( {})), "ts", {
842
842
  hooks: _optionalChain([observability, 'optionalAccess', _31 => _31.hooks]),
843
- scheduler: new (0, _chunkSSQJKDN3cjs.Scheduler)({
843
+ scheduler: new (0, _chunk2JHJ4YHScjs.Scheduler)({
844
844
  laneMode: "single",
845
845
  initialCapacity: capacity,
846
846
  maxCapacity: capacity,
@@ -862,24 +862,24 @@ function baseHttpConfig(baseUrl, scenario) {
862
862
  };
863
863
  }
864
864
  function makeWireClient(baseUrl, scenario) {
865
- return _chunkVIFA4DPNcjs.makeHttp.call(void 0, baseHttpConfig(baseUrl, scenario));
865
+ return _chunkXPIMJQYScjs.makeHttp.call(void 0, baseHttpConfig(baseUrl, scenario));
866
866
  }
867
867
  function makeMinimalClient(baseUrl, scenario) {
868
- return _chunkVIFA4DPNcjs.makeDefaultHttpClient.call(void 0, {
868
+ return _chunkXPIMJQYScjs.makeDefaultHttpClient.call(void 0, {
869
869
  preset: "minimal",
870
870
  compression: false,
871
871
  ...baseHttpConfig(baseUrl, scenario)
872
872
  });
873
873
  }
874
874
  function makeDefaultClient(baseUrl, scenario, preset, disableAdaptiveLimiter, observability) {
875
- return _chunkVIFA4DPNcjs.makeDefaultHttpClient.call(void 0, {
875
+ return _chunkXPIMJQYScjs.makeDefaultHttpClient.call(void 0, {
876
876
  preset,
877
877
  compression: false,
878
878
  ...baseHttpConfig(baseUrl, scenario),
879
879
  ...disableAdaptiveLimiter ? { adaptiveLimiter: false } : {},
880
880
  ...observability ? {
881
881
  middleware: [
882
- _chunkKHACHFBQcjs.withHttpObservability.call(void 0, {
882
+ _chunkWVSZOPGQcjs.withHttpObservability.call(void 0, {
883
883
  metrics: observability.metrics,
884
884
  logs: false,
885
885
  spans: {},
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkSSQJKDN3cjs = require('./chunk-SSQJKDN3.cjs');
6
+ var _chunk2JHJ4YHScjs = require('./chunk-2JHJ4YHS.cjs');
7
7
 
8
8
 
9
9
 
@@ -20,14 +20,14 @@ var _chunkMVGUEJ5Zcjs = require('./chunk-MVGUEJ5Z.cjs');
20
20
  // src/core/runtime/combinators.ts
21
21
  function sleep(ms) {
22
22
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
23
- const clock = _chunkSSQJKDN3cjs.runtimeClockFromEnv.call(void 0, env);
23
+ const clock = _chunk2JHJ4YHScjs.runtimeClockFromEnv.call(void 0, env);
24
24
  const id = clock.setTimeout(() => cb({ _tag: "Success", value: void 0 }), ms);
25
25
  return () => clock.clearTimeout(id);
26
26
  });
27
27
  }
28
28
  function timeout(effect, ms) {
29
29
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
30
- const clock = _chunkSSQJKDN3cjs.runtimeClockFromEnv.call(void 0, env);
30
+ const clock = _chunk2JHJ4YHScjs.runtimeClockFromEnv.call(void 0, env);
31
31
  let done = false;
32
32
  let timerId;
33
33
  let fiber;
@@ -40,7 +40,7 @@ function timeout(effect, ms) {
40
40
  cause: { _tag: "Fail", error: { _tag: "TimeoutError", ms } }
41
41
  });
42
42
  }, ms);
43
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
43
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
44
44
  fiber = runtime.fork(effect);
45
45
  fiber.join((exit) => {
46
46
  if (done) return;
@@ -82,7 +82,7 @@ function retry(effect, policy) {
82
82
  );
83
83
  return _chunkMVGUEJ5Zcjs.asyncFlatMap.call(void 0,
84
84
  { _tag: "Sync", thunk: (env) => {
85
- const clock = _chunkSSQJKDN3cjs.runtimeClockFromEnv.call(void 0, env);
85
+ const clock = _chunk2JHJ4YHScjs.runtimeClockFromEnv.call(void 0, env);
86
86
  return { clock, startedAt: clock.now() };
87
87
  } },
88
88
  ({ clock, startedAt }) => loop(0, startedAt, clock)
@@ -110,8 +110,8 @@ function retryWithBackoff(effect, opts = {}) {
110
110
  // src/core/runtime/resource.ts
111
111
  function bracket(acquire, use, release) {
112
112
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
113
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
114
- const scope = new (0, _chunkSSQJKDN3cjs.Scope)(runtime);
113
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
114
+ const scope = new (0, _chunk2JHJ4YHScjs.Scope)(runtime);
115
115
  const acquireFiber = scope.fork(acquire);
116
116
  acquireFiber.join((acquireExit) => {
117
117
  if (acquireExit._tag === "Failure") {
@@ -150,7 +150,7 @@ function safeRelease(release, resource2, exit) {
150
150
  }
151
151
  function ensuring(effect, finalizer) {
152
152
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
153
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
153
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
154
154
  const fiber = runtime.fork(effect);
155
155
  fiber.join((exit) => {
156
156
  const fin = _chunkMVGUEJ5Zcjs.asyncFold.call(void 0,
@@ -224,7 +224,7 @@ function useManaged(m, body) {
224
224
  }
225
225
  function managedAll(manageds) {
226
226
  const acquire = _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
227
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
227
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
228
228
  const resources = [];
229
229
  let i = 0;
230
230
  const acquireNext = () => {
@@ -250,7 +250,7 @@ function managedAll(manageds) {
250
250
  });
251
251
  const release = (resources, exit) => {
252
252
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
253
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
253
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
254
254
  releaseAcquired(runtime, manageds, resources, exit).then(() => {
255
255
  cb({ _tag: "Success", value: void 0 });
256
256
  });
@@ -593,7 +593,7 @@ function union(left, right) {
593
593
  };
594
594
  }
595
595
  function makeScheduleDriver(schedule, options = {}) {
596
- const clock = _nullishCoalesce(options.clock, () => ( _chunkSSQJKDN3cjs.liveClock));
596
+ const clock = _nullishCoalesce(options.clock, () => ( _chunk2JHJ4YHScjs.liveClock));
597
597
  let startedAtMs = _nullishCoalesce(options.startedAtMs, () => ( clock.now()));
598
598
  let attempt = 0;
599
599
  let lastDecision;
@@ -661,7 +661,7 @@ function runSchedule(schedule, inputs, options = {}) {
661
661
  function driverFromRuntime(schedule, options = {}) {
662
662
  return _chunkMVGUEJ5Zcjs.Async.sync((env) => makeScheduleDriver(schedule, {
663
663
  ...options,
664
- clock: _nullishCoalesce(options.clock, () => ( _chunkSSQJKDN3cjs.runtimeClockFromEnv.call(void 0, env)))
664
+ clock: _nullishCoalesce(options.clock, () => ( _chunk2JHJ4YHScjs.runtimeClockFromEnv.call(void 0, env)))
665
665
  }));
666
666
  }
667
667
  function retryWithSchedule(effect, schedule, options = {}) {
@@ -719,7 +719,7 @@ function normalizeCap(ms) {
719
719
  return normalizeDelay(ms);
720
720
  }
721
721
  function defaultClock() {
722
- return _chunkSSQJKDN3cjs.liveClock.now();
722
+ return _chunk2JHJ4YHScjs.liveClock.now();
723
723
  }
724
724
  function nowFromContext(context) {
725
725
  return _nullishCoalesce(_optionalChain([context, 'optionalAccess', _4 => _4.clock, 'access', _5 => _5.now, 'call', _6 => _6()]), () => ( defaultClock()));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  makeBoundedRingBuffer
3
- } from "./chunk-2QNREG6K.mjs";
3
+ } from "./chunk-H626ZTDZ.mjs";
4
4
  import {
5
5
  Cause
6
6
  } from "./chunk-36I3M4UC.mjs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  makeRuntimeEventRecord
3
- } from "./chunk-AADFFVYS.js";
3
+ } from "./chunk-OW5VHAOE.js";
4
4
  import {
5
5
  layerEffect,
6
6
  makeScheduleDriver
7
- } from "./chunk-IBRHSH5H.js";
7
+ } from "./chunk-S4HXADU4.js";
8
8
  import {
9
9
  Runtime,
10
10
  getCurrentFiber,
@@ -12,7 +12,7 @@ import {
12
12
  runtimeClockFromEnv,
13
13
  toPromise,
14
14
  unsafeRunAsync
15
- } from "./chunk-XSAHV5HQ.js";
15
+ } from "./chunk-TTSPIU3U.js";
16
16
  import {
17
17
  Cause,
18
18
  Exit,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RuntimeService
3
- } from "./chunk-ITZQ526U.mjs";
3
+ } from "./chunk-YWLLH27R.mjs";
4
4
  import {
5
5
  exemplarFromTraceContext,
6
6
  injectTraceContext,
@@ -13,26 +13,26 @@ import {
13
13
  spanEvent,
14
14
  validateHttpObservabilityOptions,
15
15
  withSpan
16
- } from "./chunk-KRYP6CAE.mjs";
16
+ } from "./chunk-COOW7BJX.mjs";
17
17
  import {
18
18
  HttpClientService,
19
19
  getHttpRequestPolicy,
20
20
  httpErrorStatus,
21
21
  isRetryableHttpError,
22
22
  makeDefaultHttpClient
23
- } from "./chunk-Z3PSSXP3.mjs";
23
+ } from "./chunk-Z3ZZMQUZ.mjs";
24
24
  import {
25
25
  registerHttpEffect
26
26
  } from "./chunk-MOO4L7F4.mjs";
27
27
  import {
28
28
  layerEffect,
29
29
  makeServiceTag
30
- } from "./chunk-ELLF55ER.mjs";
30
+ } from "./chunk-EEN5OTCR.mjs";
31
31
  import {
32
32
  Runtime,
33
33
  fromPromiseAbortable,
34
34
  getCurrentFiber
35
- } from "./chunk-2QNREG6K.mjs";
35
+ } from "./chunk-H626ZTDZ.mjs";
36
36
  import {
37
37
  Cause,
38
38
  asyncEffect,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  fromPromiseAbortable,
6
6
  withScopeAsync
7
- } from "./chunk-XSAHV5HQ.js";
7
+ } from "./chunk-TTSPIU3U.js";
8
8
  import {
9
9
  Cause,
10
10
  Exit,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  makeRuntimeEventRecord
3
- } from "./chunk-OT2TESZU.mjs";
3
+ } from "./chunk-6V2AWT4R.mjs";
4
4
  import {
5
5
  layerEffect,
6
6
  makeScheduleDriver
7
- } from "./chunk-ELLF55ER.mjs";
7
+ } from "./chunk-EEN5OTCR.mjs";
8
8
  import {
9
9
  Runtime,
10
10
  getCurrentFiber,
@@ -12,7 +12,7 @@ import {
12
12
  runtimeClockFromEnv,
13
13
  toPromise,
14
14
  unsafeRunAsync
15
- } from "./chunk-2QNREG6K.mjs";
15
+ } from "./chunk-H626ZTDZ.mjs";
16
16
  import {
17
17
  Cause,
18
18
  Exit,
@@ -6,7 +6,7 @@ import {
6
6
  getCurrentFiber,
7
7
  unsafeGetCurrentRuntime,
8
8
  unsafeRunFoldWithEnv
9
- } from "./chunk-2QNREG6K.mjs";
9
+ } from "./chunk-H626ZTDZ.mjs";
10
10
  import {
11
11
  Cause,
12
12
  Exit,
@@ -2,14 +2,14 @@ import {
2
2
  EventBus,
3
3
  InMemoryTracer,
4
4
  makeMetrics
5
- } from "./chunk-OT2TESZU.mjs";
5
+ } from "./chunk-6V2AWT4R.mjs";
6
6
  import {
7
7
  Runtime,
8
8
  ctxExtend,
9
9
  ctxToObject,
10
10
  emptyContext,
11
11
  getCurrentFiber
12
- } from "./chunk-2QNREG6K.mjs";
12
+ } from "./chunk-H626ZTDZ.mjs";
13
13
  import {
14
14
  asyncFail,
15
15
  asyncFlatMap,
@@ -3,7 +3,7 @@ import {
3
3
  liveClock,
4
4
  runtimeClockFromEnv,
5
5
  unsafeGetCurrentRuntime
6
- } from "./chunk-2QNREG6K.mjs";
6
+ } from "./chunk-H626ZTDZ.mjs";
7
7
  import {
8
8
  Async,
9
9
  Cause,
@@ -6,7 +6,7 @@ var _chunkSA6HUJVIcjs = require('./chunk-SA6HUJVI.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkSSQJKDN3cjs = require('./chunk-SSQJKDN3.cjs');
9
+ var _chunk2JHJ4YHScjs = require('./chunk-2JHJ4YHS.cjs');
10
10
 
11
11
 
12
12
 
@@ -99,8 +99,8 @@ function makeMergePull(onLeft, onRight, flip, mergePullId) {
99
99
  const onLeftHandler = streamToRaceWithHandler("L", onLeft, onRight, flip, id);
100
100
  const onRightHandler = streamToRaceWithHandler("R", onLeft, onRight, flip, id);
101
101
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (_env, cb) => {
102
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
103
- const scope = new (0, _chunkSSQJKDN3cjs.Scope)(runtime);
102
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
103
+ const scope = new (0, _chunk2JHJ4YHScjs.Scope)(runtime);
104
104
  const handler = _chunkSA6HUJVIcjs.raceWith.call(void 0,
105
105
  uncons(onLeft),
106
106
  uncons(onRight),
@@ -160,9 +160,9 @@ function uncons(self) {
160
160
  return makeMergePull(self.left, self.right, self.flip, 0);
161
161
  case "Scoped":
162
162
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
163
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
164
- const scope = new (0, _chunkSSQJKDN3cjs.Scope)(runtime);
165
- const fiber = _chunkSSQJKDN3cjs.getCurrentFiber.call(void 0, );
163
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
164
+ const scope = new (0, _chunk2JHJ4YHScjs.Scope)(runtime);
165
+ const fiber = _chunk2JHJ4YHScjs.getCurrentFiber.call(void 0, );
166
166
  _optionalChain([fiber, 'optionalAccess', _2 => _2.addFinalizer, 'call', _3 => _3((exit) => {
167
167
  try {
168
168
  scope.close(exit);
@@ -183,7 +183,7 @@ function uncons(self) {
183
183
  const wrap = (s) => fromPull(
184
184
  _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env2, cb2) => {
185
185
  const pull = uncons(s);
186
- _chunkSSQJKDN3cjs.unsafeRunFoldWithEnv.call(void 0,
186
+ _chunk2JHJ4YHScjs.unsafeRunFoldWithEnv.call(void 0,
187
187
  pull,
188
188
  env2,
189
189
  (cause) => {
@@ -206,14 +206,14 @@ function uncons(self) {
206
206
  }
207
207
  scope.addFinalizer((exit) => self.release(exit));
208
208
  const inner = ex.value;
209
- _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, ).fork(uncons(wrap(inner))).join(cb);
209
+ _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, ).fork(uncons(wrap(inner))).join(cb);
210
210
  });
211
211
  });
212
212
  case "Managed":
213
213
  return _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env, cb) => {
214
- const runtime = _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, );
215
- const scope = new (0, _chunkSSQJKDN3cjs.Scope)(runtime);
216
- _optionalChain([_chunkSSQJKDN3cjs.getCurrentFiber.call(void 0, ), 'optionalAccess', _4 => _4.addFinalizer, 'call', _5 => _5((exit) => {
214
+ const runtime = _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, );
215
+ const scope = new (0, _chunk2JHJ4YHScjs.Scope)(runtime);
216
+ _optionalChain([_chunk2JHJ4YHScjs.getCurrentFiber.call(void 0, ), 'optionalAccess', _4 => _4.addFinalizer, 'call', _5 => _5((exit) => {
217
217
  try {
218
218
  scope.close(exit);
219
219
  } catch (e4) {
@@ -241,7 +241,7 @@ function uncons(self) {
241
241
  scope.addFinalizer((exit) => release(exit));
242
242
  const wrap = (s) => fromPull(
243
243
  _chunkMVGUEJ5Zcjs.asyncEffect.call(void 0, (env2, cb2) => {
244
- _chunkSSQJKDN3cjs.unsafeRunFoldWithEnv.call(void 0,
244
+ _chunk2JHJ4YHScjs.unsafeRunFoldWithEnv.call(void 0,
245
245
  uncons(s),
246
246
  env2,
247
247
  (cause) => {
@@ -255,7 +255,7 @@ function uncons(self) {
255
255
  );
256
256
  })
257
257
  );
258
- _chunkSSQJKDN3cjs.unsafeGetCurrentRuntime.call(void 0, ).fork(uncons(wrap(inner))).join(cb);
258
+ _chunk2JHJ4YHScjs.unsafeGetCurrentRuntime.call(void 0, ).fork(uncons(wrap(inner))).join(cb);
259
259
  });
260
260
  });
261
261
  }
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk7TXQJFZXcjs = require('./chunk-7TXQJFZX.cjs');
4
+ var _chunk5RZ7YITFcjs = require('./chunk-5RZ7YITF.cjs');
5
5
 
6
6
 
7
- var _chunkSSQJKDN3cjs = require('./chunk-SSQJKDN3.cjs');
7
+ var _chunk2JHJ4YHScjs = require('./chunk-2JHJ4YHS.cjs');
8
8
 
9
9
 
10
10
  var _chunkMVGUEJ5Zcjs = require('./chunk-MVGUEJ5Z.cjs');
11
11
 
12
12
  // src/core/runtime/runtimeLayer.ts
13
- var RuntimeService = _chunk7TXQJFZXcjs.makeServiceTag.call(void 0, "Runtime");
13
+ var RuntimeService = _chunk5RZ7YITFcjs.makeServiceTag.call(void 0, "Runtime");
14
14
  function makeRuntimeLayer(env = {}, options = {}) {
15
15
  const { tag = RuntimeService, ...runtimeOptions } = options;
16
- return _chunk7TXQJFZXcjs.layerEffect.call(void 0,
16
+ return _chunk5RZ7YITFcjs.layerEffect.call(void 0,
17
17
  tag,
18
18
  (context) => _chunkMVGUEJ5Zcjs.asyncSync.call(void 0,
19
- () => new (0, _chunkSSQJKDN3cjs.Runtime)({
19
+ () => new (0, _chunk2JHJ4YHScjs.Runtime)({
20
20
  ...runtimeOptions,
21
21
  env: resolveRuntimeLayerEnv(env, context)
22
22
  })