@dual-os/notion-api 6.0.3 → 6.0.4

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.
@@ -575,7 +575,7 @@ var byReferenceUnsafe = (obj) => {
575
575
  var make7 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
576
576
  var isStrictEquivalent = (x, y) => x === y;
577
577
  var strictEqual = () => isStrictEquivalent;
578
- function Tuple2(elements) {
578
+ function Tuple(elements) {
579
579
  return make7((self, that) => {
580
580
  if (self.length !== that.length) {
581
581
  return false;
@@ -1122,7 +1122,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1122
1122
  var causeAddInterrupts = (self, interrupts) => {
1123
1123
  const reasons = self.reasons.slice();
1124
1124
  for (const reason of interrupts.reasons) {
1125
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1125
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1126
1126
  reasons.push(reason);
1127
1127
  }
1128
1128
  }
@@ -1160,7 +1160,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1160
1160
  });
1161
1161
  var isFailReason = (self) => self._tag === "Fail";
1162
1162
  var isDieReason = (self) => self._tag === "Die";
1163
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1163
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1164
1164
  function defaultEvaluate(_fiber) {
1165
1165
  return exitDie(`Effect.evaluate: Not implemented`);
1166
1166
  }
@@ -1345,7 +1345,7 @@ var Done2 = (value) => {
1345
1345
  };
1346
1346
  };
1347
1347
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1348
- var done2 = (value) => {
1348
+ var done3 = (value) => {
1349
1349
  if (value === undefined)
1350
1350
  return doneVoid;
1351
1351
  return exitFail(Done2(value));
@@ -1666,7 +1666,7 @@ var normalizeNonEmpty = (n) => Math.max(1, normalize(n));
1666
1666
 
1667
1667
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1668
1668
  var make9 = (...elements) => elements;
1669
- var makeEquivalence2 = Tuple2;
1669
+ var makeEquivalence2 = Tuple;
1670
1670
 
1671
1671
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1672
1672
  var headUnsafe = (self) => {
@@ -1706,7 +1706,6 @@ var constEmptyIterator = {
1706
1706
  };
1707
1707
  }
1708
1708
  };
1709
- var empty = () => constEmpty;
1710
1709
 
1711
1710
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Array.js
1712
1711
  var Array2 = globalThis.Array;
@@ -1818,7 +1817,7 @@ var hashBucketsAdd = (buckets, value) => {
1818
1817
  bucket.push(value);
1819
1818
  return true;
1820
1819
  };
1821
- var empty2 = () => [];
1820
+ var empty = () => [];
1822
1821
  var of = (a) => [a];
1823
1822
  var map3 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
1824
1823
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -1856,7 +1855,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
1856
1855
  return out;
1857
1856
  });
1858
1857
  var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable(self).reduce((b, a, i) => f(b, a, i), b));
1859
- var fromNullishOr2 = (a) => a == null ? empty2() : [a];
1858
+ var fromNullishOr2 = (a) => a == null ? empty() : [a];
1860
1859
  var every = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
1861
1860
  var some3 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
1862
1861
  var makeEquivalence3 = Array_;
@@ -1952,7 +1951,7 @@ var applyOverlays = (map, overlay) => {
1952
1951
  applyOverlays(map, overlay.parent);
1953
1952
  map.set(overlay.key, overlay.value);
1954
1953
  };
1955
- var flatten = (self) => {
1954
+ var flatten2 = (self) => {
1956
1955
  if (self._flat)
1957
1956
  return self._flat;
1958
1957
  if (!self.overlay)
@@ -1977,7 +1976,7 @@ var lookup = (self, key) => {
1977
1976
  if (value === undefined && !impl.base.has(key))
1978
1977
  return notFound;
1979
1978
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
1980
- impl.base = flatten(impl);
1979
+ impl.base = flatten2(impl);
1981
1980
  impl.overlay = undefined;
1982
1981
  impl.depth = 0;
1983
1982
  }
@@ -1989,7 +1988,7 @@ var makeUnsafe = (mapUnsafe, options) => {
1989
1988
  };
1990
1989
  var Proto = {
1991
1990
  get mapUnsafe() {
1992
- return flatten(this);
1991
+ return flatten2(this);
1993
1992
  },
1994
1993
  ...PipeInspectableProto,
1995
1994
  [TypeId3]: {
@@ -2024,7 +2023,7 @@ var Proto = {
2024
2023
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
2025
2024
  var isContext = (u) => hasProperty(u, TypeId3);
2026
2025
  var isReference = (u) => !!u[ReferenceTypeId];
2027
- var empty7 = () => emptyContext2;
2026
+ var empty6 = () => emptyContext2;
2028
2027
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
2029
2028
  var make10 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
2030
2029
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -2426,14 +2425,6 @@ var Equivalence = (self, that) => matchPair(self, that, {
2426
2425
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2427
2426
 
2428
2427
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2429
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2430
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2431
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2432
- const leftOut = left(input);
2433
- if (isFailure3(leftOut))
2434
- return leftOut;
2435
- return right(leftOut.success);
2436
- });
2437
2428
  var toOption = (self) => (input) => {
2438
2429
  const result = self(input);
2439
2430
  return isFailure3(result) ? none() : some(result.success);
@@ -2848,7 +2839,7 @@ class Interrupt extends ReasonBase {
2848
2839
  };
2849
2840
  }
2850
2841
  [symbol2](that) {
2851
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2842
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2852
2843
  }
2853
2844
  [symbol]() {
2854
2845
  return string(`${this._tag}:${this.fiberId}`);
@@ -2869,7 +2860,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2869
2860
  var hasDies = (self) => self.reasons.some(isDieReason);
2870
2861
  var causeElectDefects = (self) => hasDies(self) && hasFails(self) ? causeFromReasons(self.reasons.map((reason) => reason._tag === "Fail" && !isDone2(reason.error) ? new Die(reason.error, reason.annotations) : reason)) : self;
2871
2862
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2872
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2863
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2873
2864
  var causeFilterInterruptors = (self) => {
2874
2865
  let interruptors;
2875
2866
  for (let i = 0;i < self.reasons.length; i++) {
@@ -2883,7 +2874,6 @@ var causeFilterInterruptors = (self) => {
2883
2874
  }
2884
2875
  return interruptors ? succeed(interruptors) : fail(self);
2885
2876
  };
2886
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
2887
2877
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2888
2878
  let hasFail = false;
2889
2879
  const failures = self.reasons.map((failure) => {
@@ -3194,7 +3184,7 @@ class FiberImpl {
3194
3184
  }
3195
3185
  this._stack.length = 0;
3196
3186
  this._children = undefined;
3197
- this.context = empty7();
3187
+ this.context = empty6();
3198
3188
  const cache = this.cache;
3199
3189
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3200
3190
  this.cache = {
@@ -3400,7 +3390,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3400
3390
  }));
3401
3391
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3402
3392
  const annotations = fiberStackAnnotations(parent);
3403
- let fiberArr = empty2();
3393
+ let fiberArr = empty();
3404
3394
  for (const fiber of fibers) {
3405
3395
  fiber.interruptUnsafe(parent.id, annotations);
3406
3396
  fiberArr.push(fiber);
@@ -3756,7 +3746,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3756
3746
  if (done)
3757
3747
  break;
3758
3748
  const index = i++;
3759
- const fiber = forkUnsafe(parent, effect, true, true, false);
3749
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3760
3750
  fibers.add(fiber);
3761
3751
  fiber.addObserver((exit) => {
3762
3752
  fibers.delete(fiber);
@@ -3783,7 +3773,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3783
3773
  }
3784
3774
  return flatMap5(self, f);
3785
3775
  });
3786
- var flatten2 = (self) => flatMap5(self, identity);
3776
+ var flatten3 = (self) => flatMap5(self, identity);
3787
3777
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3788
3778
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3789
3779
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3859,7 +3849,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3859
3849
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3860
3850
  step: constVoid
3861
3851
  }));
3862
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3852
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3863
3853
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3864
3854
  op: "OnFailure",
3865
3855
  [evaluate]: evaluateCont
@@ -3869,19 +3859,18 @@ var OnFailureImpl = function(self, f) {
3869
3859
  this[contE] = f;
3870
3860
  };
3871
3861
  OnFailureImpl.prototype = OnFailureProto;
3872
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3862
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3873
3863
  if (!predicate(cause)) {
3874
3864
  return failCause2(cause);
3875
3865
  }
3876
3866
  return f(cause);
3877
3867
  }));
3878
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3868
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3879
3869
  const eb = filter(cause);
3880
3870
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
3881
3871
  }));
3882
3872
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
3883
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
3884
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3873
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3885
3874
  const result = filter(cause);
3886
3875
  if (isFailure3(result)) {
3887
3876
  return failCause2(cause);
@@ -3889,7 +3878,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3889
3878
  return andThen2(f(result.success, cause), failCause2(cause));
3890
3879
  }));
3891
3880
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
3892
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3881
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
3893
3882
  const error = findRecoverableError(cause);
3894
3883
  if (isFailure3(error))
3895
3884
  return failCause2(error.failure);
@@ -3908,7 +3897,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
3908
3897
  return f(reason, e);
3909
3898
  return orElse ? orElse(reason, e) : fail8(e);
3910
3899
  }));
3911
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
3900
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
3912
3901
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
3913
3902
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
3914
3903
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4057,7 +4046,7 @@ var runFinalizer = (finalizer, exit_) => {
4057
4046
  return exitDie(defect);
4058
4047
  }
4059
4048
  };
4060
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4049
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4061
4050
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4062
4051
  let exits = [];
4063
4052
  const fibers = [];
@@ -4068,7 +4057,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4068
4057
  if (self.strategy === "sequential") {
4069
4058
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4070
4059
  } else if (key !== parent) {
4071
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4060
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4072
4061
  }
4073
4062
  }
4074
4063
  if (fibers.length > 0) {
@@ -4076,7 +4065,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4076
4065
  }
4077
4066
  return yield* exitAsVoidAll(exits);
4078
4067
  });
4079
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4080
4068
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4081
4069
  const child = makeScope(finalizerStrategy, scope);
4082
4070
  if (scope.state._tag === "Closed") {
@@ -4140,6 +4128,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4140
4128
  var constScopeEmpty = {
4141
4129
  _tag: "Empty"
4142
4130
  };
4131
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4143
4132
  var scope2 = scopeTag;
4144
4133
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4145
4134
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4443,7 +4432,7 @@ var iterateConcurrentImpl = (options) => {
4443
4432
  });
4444
4433
  } else {
4445
4434
  effect = undefined;
4446
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4435
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4447
4436
  if (fiber._exit) {
4448
4437
  terminal = step(state, item, fiber._exit, index);
4449
4438
  if (terminal)
@@ -4524,9 +4513,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4524
4513
  });
4525
4514
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4526
4515
  interruptChildrenPatch();
4527
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4516
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4528
4517
  }));
4529
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4518
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4530
4519
  const parentRuntime = parent;
4531
4520
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4532
4521
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4544,7 +4533,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4544
4533
  };
4545
4534
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4546
4535
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4547
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4536
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4548
4537
  if (!fiber._exit) {
4549
4538
  if (scope.state._tag !== "Closed") {
4550
4539
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4589,8 +4578,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4589
4578
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4590
4579
  return self;
4591
4580
  });
4592
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4593
- var runPromiseExitWith = (context) => {
4581
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty6());
4582
+ var runCallbackWith2 = (context) => {
4583
+ const runFork = runForkWith2(context);
4584
+ return (effect, options) => {
4585
+ const fiber = runFork(effect, options);
4586
+ if (options?.onExit) {
4587
+ fiber.addObserver(options.onExit);
4588
+ }
4589
+ return (interruptor) => {
4590
+ return fiber.interruptUnsafe(interruptor);
4591
+ };
4592
+ };
4593
+ };
4594
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty6());
4595
+ var runPromiseExitWith2 = (context) => {
4594
4596
  const runFork = runForkWith2(context);
4595
4597
  return (effect, options) => {
4596
4598
  const fiber = runFork(effect, options);
@@ -4599,8 +4601,9 @@ var runPromiseExitWith = (context) => {
4599
4601
  });
4600
4602
  };
4601
4603
  };
4602
- var runPromiseWith = (context) => {
4603
- const runPromiseExit = runPromiseExitWith(context);
4604
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty6());
4605
+ var runPromiseWith2 = (context) => {
4606
+ const runPromiseExit = runPromiseExitWith2(context);
4604
4607
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4605
4608
  if (exit._tag === "Failure") {
4606
4609
  throw causeSquash(exit.cause);
@@ -4608,8 +4611,8 @@ var runPromiseWith = (context) => {
4608
4611
  return exit.value;
4609
4612
  });
4610
4613
  };
4611
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty7());
4612
- var runSyncExitWith = (context) => {
4614
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty6());
4615
+ var runSyncExitWith2 = (context) => {
4613
4616
  const runFork = runForkWith2(context);
4614
4617
  return (effect) => {
4615
4618
  if (effectIsExit(effect))
@@ -4622,9 +4625,9 @@ var runSyncExitWith = (context) => {
4622
4625
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4623
4626
  };
4624
4627
  };
4625
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty7());
4626
- var runSyncWith = (context) => {
4627
- const runSyncExit = runSyncExitWith(context);
4628
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty6());
4629
+ var runSyncWith2 = (context) => {
4630
+ const runSyncExit = runSyncExitWith2(context);
4628
4631
  return (effect) => {
4629
4632
  const exit = runSyncExit(effect);
4630
4633
  if (exit._tag === "Failure")
@@ -4632,7 +4635,7 @@ var runSyncWith = (context) => {
4632
4635
  return exit.value;
4633
4636
  };
4634
4637
  };
4635
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty7());
4638
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty6());
4636
4639
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4637
4640
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4638
4641
 
@@ -4754,7 +4757,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4754
4757
  span = noopSpan({
4755
4758
  name,
4756
4759
  parent,
4757
- annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4760
+ annotations: add(options?.annotations ?? empty6(), DisablePropagation, true)
4758
4761
  });
4759
4762
  } else {
4760
4763
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4767,7 +4770,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4767
4770
  span = tracer.span({
4768
4771
  name,
4769
4772
  parent,
4770
- annotations: options?.annotations ?? empty7(),
4773
+ annotations: options?.annotations ?? empty6(),
4771
4774
  links,
4772
4775
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4773
4776
  kind: options?.kind ?? "internal",
@@ -5117,7 +5120,6 @@ var DeferredImpl = function() {
5117
5120
  };
5118
5121
  DeferredImpl.prototype = DeferredProto;
5119
5122
  var makeUnsafe2 = () => new DeferredImpl;
5120
- var make = () => sync2(() => makeUnsafe2());
5121
5123
  var _await = (self) => callback3((resume) => {
5122
5124
  if (self.effect)
5123
5125
  return resume(self.effect);
@@ -5133,8 +5135,8 @@ var _await = (self) => callback3((resume) => {
5133
5135
  });
5134
5136
  });
5135
5137
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5136
- var done3 = completeWith;
5137
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5138
+ var done2 = completeWith;
5139
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5138
5140
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5139
5141
  var isDoneUnsafe = (self) => self.effect !== undefined;
5140
5142
  var doneUnsafe = (self, effect) => {
@@ -5150,19 +5152,18 @@ var doneUnsafe = (self, effect) => {
5150
5152
  }
5151
5153
  return true;
5152
5154
  };
5153
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5154
5155
 
5155
5156
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5156
5157
  var TracerTimingEnabled2 = TracerTimingEnabled;
5157
5158
 
5158
5159
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5159
5160
  var Scope = scopeTag;
5161
+ var make = scopeMake;
5160
5162
  var makeUnsafe3 = scopeMakeUnsafe;
5161
- var provide3 = provideScope;
5163
+ var provide2 = provideScope;
5162
5164
  var addFinalizerExit = scopeAddFinalizerExit;
5163
5165
  var addFinalizer = scopeAddFinalizer;
5164
- var fork = scopeFork;
5165
- var forkUnsafe2 = scopeForkUnsafe;
5166
+ var forkUnsafe = scopeForkUnsafe;
5166
5167
  var close = scopeClose;
5167
5168
 
5168
5169
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5205,7 +5206,7 @@ var fromBuildUnsafe = (build) => {
5205
5206
  return self;
5206
5207
  };
5207
5208
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5208
- const layerScope = forkUnsafe2(scope);
5209
+ const layerScope = forkUnsafe(scope);
5209
5210
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5210
5211
  });
5211
5212
  var fromBuildMemo = (build) => {
@@ -5267,7 +5268,7 @@ var succeed3 = function() {
5267
5268
  return succeedContext(make10(arguments[0], arguments[1]));
5268
5269
  };
5269
5270
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5270
- var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5271
+ var empty7 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty6());
5271
5272
  var effect = function() {
5272
5273
  if (arguments.length === 1) {
5273
5274
  return (effect) => effectImpl(arguments[0], effect);
@@ -5275,10 +5276,10 @@ var effect = function() {
5275
5276
  return effectImpl(arguments[0], arguments[1]);
5276
5277
  };
5277
5278
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make10(service, value)));
5278
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5279
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5279
5280
  var mergeAllEffect = (layers, memoMap, scope) => {
5280
- const parentScope = forkUnsafe2(scope, "parallel");
5281
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5281
+ const parentScope = forkUnsafe(scope, "parallel");
5282
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5282
5283
  concurrency: layers.length
5283
5284
  }).pipe(map6((context) => mergeAll2(...context)));
5284
5285
  };
@@ -5290,19 +5291,16 @@ var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, tha
5290
5291
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5291
5292
  var isCause2 = isCause;
5292
5293
  var isFailReason2 = isFailReason;
5293
- var isInterruptReason = isInterruptReason2;
5294
5294
  var fromReasons = causeFromReasons;
5295
5295
  var fail2 = causeFail;
5296
5296
  var die3 = causeDie;
5297
- var hasInterruptsOnly = hasInterruptsOnly2;
5298
5297
  var map7 = causeMap;
5299
5298
  var squash = causeSquash;
5300
5299
  var findErrorOption2 = findErrorOption;
5301
5300
  var hasInterrupts = hasInterrupts2;
5302
- var filterInterruptors = causeFilterInterruptors;
5303
5301
  var isDone3 = isDone2;
5304
5302
  var Done = Done2;
5305
- var done = done2;
5303
+ var done = done3;
5306
5304
  var IllegalArgumentError2 = IllegalArgumentError;
5307
5305
  var UnknownError = UnknownError2;
5308
5306
 
@@ -5786,10 +5784,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5786
5784
  }
5787
5785
  }));
5788
5786
 
5789
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5790
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5791
- var provide4 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, source, options) => isContext(source) ? provideContext2(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
5792
-
5793
5787
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5794
5788
  var isEffect = isEffect2;
5795
5789
  var all = all3;
@@ -5817,7 +5811,7 @@ var withFiber = withFiber2;
5817
5811
  var fromResult2 = fromResult;
5818
5812
  var fromOption2 = fromOption4;
5819
5813
  var flatMap3 = flatMap5;
5820
- var flatten3 = flatten2;
5814
+ var flatten = flatten3;
5821
5815
  var andThen = andThen2;
5822
5816
  var tap = tap2;
5823
5817
  var result = result2;
@@ -5831,13 +5825,12 @@ var zipWith = zipWith3;
5831
5825
  var catch_ = catch_2;
5832
5826
  var catchTag = catchTag2;
5833
5827
  var catchReason = catchReason2;
5834
- var catchCause = catchCause2;
5828
+ var catchCause2 = catchCause;
5835
5829
  var catchIf = catchIf2;
5836
5830
  var catchCauseIf = catchCauseIf2;
5837
5831
  var mapError = mapError3;
5838
5832
  var orDie = orDie2;
5839
5833
  var tapError3 = tapError2;
5840
- var tapCause = tapCause2;
5841
5834
  var ignore = ignore2;
5842
5835
  var ignoreCause = ignoreCause2;
5843
5836
  var orElseSucceed2 = orElseSucceed;
@@ -5847,7 +5840,6 @@ var matchCauseEffect2 = matchCauseEffect;
5847
5840
  var matchEffect = matchEffect2;
5848
5841
  var context = context2;
5849
5842
  var contextWith2 = contextWith;
5850
- var provide2 = provide4;
5851
5843
  var provideContext = provideContext2;
5852
5844
  var serviceOption = serviceOption2;
5853
5845
  var updateContext2 = updateContext;
@@ -5874,13 +5866,19 @@ var forkIn = forkIn2;
5874
5866
  var forkScoped = forkScoped2;
5875
5867
  var runFork = runFork2;
5876
5868
  var runForkWith = runForkWith2;
5877
- var runPromise2 = runPromise;
5878
- var runSync2 = runSync;
5879
- var runSyncExit2 = runSyncExit;
5869
+ var runCallbackWith = runCallbackWith2;
5870
+ var runCallback = runCallback2;
5871
+ var runPromise = runPromise2;
5872
+ var runPromiseWith = runPromiseWith2;
5873
+ var runPromiseExit = runPromiseExit2;
5874
+ var runPromiseExitWith = runPromiseExitWith2;
5875
+ var runSync = runSync2;
5876
+ var runSyncWith = runSyncWith2;
5877
+ var runSyncExit = runSyncExit2;
5878
+ var runSyncExitWith = runSyncExitWith2;
5880
5879
  var fnUntraced = fnUntraced2;
5881
5880
  var fn = fn2;
5882
5881
  var clockWith = clockWith2;
5883
- var logError = /* @__PURE__ */ logWithLevel("Error");
5884
5882
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
5885
5883
  let synchronous = true;
5886
5884
  let pending;
@@ -6507,12 +6505,12 @@ class HashMapImpl {
6507
6505
  }
6508
6506
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6509
6507
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6510
- var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6508
+ var empty8 = () => new HashMapImpl(false, 0, emptyNode, 0);
6511
6509
  var get6 = /* @__PURE__ */ dual(2, (self, key) => {
6512
6510
  const impl = self;
6513
6511
  return impl._root.get(0, hash(key), key);
6514
6512
  });
6515
- var has4 = /* @__PURE__ */ dual(2, (self, key) => {
6513
+ var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6516
6514
  const impl = self;
6517
6515
  return impl._root.has(0, hash(key), key);
6518
6516
  });
@@ -6549,7 +6547,7 @@ var HashSetProto = {
6549
6547
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6550
6548
  },
6551
6549
  [symbol2](that) {
6552
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has5(that, value));
6550
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6553
6551
  },
6554
6552
  [Symbol.iterator]() {
6555
6553
  return keys2(keyMap(this));
@@ -6579,13 +6577,13 @@ var makeImpl2 = (keyMap) => {
6579
6577
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6580
6578
  var keyMap = (self) => self.keyMap;
6581
6579
  var fromIterable4 = (values) => {
6582
- let map = empty9();
6580
+ let map = empty8();
6583
6581
  for (const value of values) {
6584
6582
  map = set2(map, value, true);
6585
6583
  }
6586
6584
  return makeImpl2(map);
6587
6585
  };
6588
- var has5 = (self, value) => has4(keyMap(self), value);
6586
+ var has4 = (self, value) => has3(keyMap(self), value);
6589
6587
  var size2 = (self) => size(keyMap(self));
6590
6588
  var every2 = (self, predicate) => {
6591
6589
  for (const value of self) {
@@ -6598,7 +6596,7 @@ var every2 = (self, predicate) => {
6598
6596
 
6599
6597
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6600
6598
  var fromIterable2 = fromIterable4;
6601
- var has3 = /* @__PURE__ */ dual(2, has5);
6599
+ var has2 = /* @__PURE__ */ dual(2, has4);
6602
6600
  var size3 = size2;
6603
6601
 
6604
6602
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/encoding/Base64.js
@@ -7038,10 +7036,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7038
7036
  });
7039
7037
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7040
7038
  var Equivalence3 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
7041
- var empty3 = /* @__PURE__ */ Object.create(Proto5);
7039
+ var empty2 = /* @__PURE__ */ Object.create(Proto5);
7042
7040
  var fromInput = (input) => {
7043
7041
  if (input === undefined) {
7044
- return empty3;
7042
+ return empty2;
7045
7043
  } else if (Symbol.iterator in input) {
7046
7044
  const out = Object.create(Proto5);
7047
7045
  for (const [k, v] of input) {
@@ -7202,7 +7200,7 @@ var fromInputNested = (input) => {
7202
7200
  var coerce = (value) => isRedacted(value) ? value : String(value);
7203
7201
  var Equivalence4 = /* @__PURE__ */ make7((a, b) => arrayEquivalence(a.params, b.params));
7204
7202
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7205
- var empty4 = /* @__PURE__ */ make16([]);
7203
+ var empty3 = /* @__PURE__ */ make16([]);
7206
7204
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7207
7205
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7208
7206
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7271,7 +7269,7 @@ var decodeQueryKey = (key) => {
7271
7269
  return key;
7272
7270
  }
7273
7271
  };
7274
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7272
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty6(), CurrentRedactedNames2);
7275
7273
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7276
7274
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7277
7275
  });
@@ -7621,7 +7619,7 @@ var runGetter = (self, input, options) => {
7621
7619
  };
7622
7620
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7623
7621
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7624
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7622
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7625
7623
  if (self._tag === "Passthrough")
7626
7624
  return other;
7627
7625
  if (other._tag === "Passthrough")
@@ -8497,7 +8495,7 @@ var Objects = class extends ASTNodeImpl {
8497
8495
  }
8498
8496
  }
8499
8497
  } else if (parseIndexes) {
8500
- const keyPairs = empty2();
8498
+ const keyPairs = empty();
8501
8499
  for (let i = 0;i < indexCount; i++) {
8502
8500
  const index = indexes[i];
8503
8501
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9015,7 +9013,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9015
9013
  return fail3(new AnyOf(ast, [issue], input, options));
9016
9014
  }
9017
9015
  function catchSingleUnionCandidate(ast, result, input, options) {
9018
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9016
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9019
9017
  }
9020
9018
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9021
9019
  const state = {
@@ -9666,7 +9664,7 @@ function compileTransformationUnsafe(transformation) {
9666
9664
  }
9667
9665
  }
9668
9666
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9669
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9667
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9670
9668
  function makeConstructorParser(descriptor, compile) {
9671
9669
  const transform = compileTransformation(descriptor.link.transformation);
9672
9670
  let sourceParser;
@@ -9922,7 +9920,7 @@ function makeEffect(schema) {
9922
9920
  function makeOption(schema) {
9923
9921
  const parser = makeEffect(schema);
9924
9922
  return (input, options) => {
9925
- const exit = runSyncExit2(parser(input, options));
9923
+ const exit = runSyncExit(parser(input, options));
9926
9924
  if (isSuccess2(exit)) {
9927
9925
  return some(exit.value);
9928
9926
  }
@@ -9961,7 +9959,7 @@ function makeIs(ast) {
9961
9959
  }
9962
9960
  const parser = entry.parser;
9963
9961
  return (input) => {
9964
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
9962
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
9965
9963
  if (isSuccess2(exit))
9966
9964
  return true;
9967
9965
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10029,7 +10027,7 @@ function runWithCompiler(compiler, ast) {
10029
10027
  };
10030
10028
  }
10031
10029
  function asExit(parser) {
10032
- return (input, options) => runSyncExit2(parser(input, options));
10030
+ return (input, options) => runSyncExit(parser(input, options));
10033
10031
  }
10034
10032
  function asOption(parser) {
10035
10033
  const parserExit = asExit(parser);
@@ -10043,7 +10041,7 @@ function asOption(parser) {
10043
10041
  };
10044
10042
  }
10045
10043
  function runSync3(effect, message) {
10046
- const exit = runSyncExit2(effect);
10044
+ const exit = runSyncExit(effect);
10047
10045
  if (isSuccess2(exit)) {
10048
10046
  return exit.value;
10049
10047
  }
@@ -11707,7 +11705,7 @@ function fromIssueEffect(self) {
11707
11705
  if (effectIsExit(self)) {
11708
11706
  return fromIssueExit(self);
11709
11707
  }
11710
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11708
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11711
11709
  }
11712
11710
  function fromIssueExit(exit) {
11713
11711
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11730,7 +11728,7 @@ function getSchemaErrorOrThrow(cause, message) {
11730
11728
  return schemaError;
11731
11729
  }
11732
11730
  function runSchemaErrorSync(self) {
11733
- const exit = runSyncExit2(self);
11731
+ const exit = runSyncExit(self);
11734
11732
  if (isSuccess2(exit)) {
11735
11733
  return exit.value;
11736
11734
  }
@@ -11840,7 +11838,7 @@ function makeTuple(ast, elements) {
11840
11838
  }
11841
11839
  });
11842
11840
  }
11843
- function Tuple(elements) {
11841
+ function Tuple2(elements) {
11844
11842
  return makeTuple(tuple(elements), elements);
11845
11843
  }
11846
11844
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -12734,7 +12732,6 @@ var Json = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json2, {
12734
12732
  var await_ = fiberAwait;
12735
12733
  var join2 = fiberJoin;
12736
12734
  var interrupt2 = fiberInterrupt;
12737
- var interruptAll = fiberInterruptAll;
12738
12735
  var getCurrent = getCurrentFiber;
12739
12736
  var runIn = fiberRunIn;
12740
12737
 
@@ -13272,13 +13269,13 @@ var ChannelProto = {
13272
13269
  };
13273
13270
  var fromTransform = (transform) => {
13274
13271
  const self = Object.create(ChannelProto);
13275
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13272
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13276
13273
  return self;
13277
13274
  };
13278
13275
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13279
13276
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13280
13277
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13281
- const closableScope = forkUnsafe2(scope);
13278
+ const closableScope = forkUnsafe(scope);
13282
13279
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13283
13280
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13284
13281
  return onError(pull, onCause);
@@ -13288,7 +13285,7 @@ var DefaultChunkSize = 4096;
13288
13285
  var asyncQueue = (scope, f, options) => make2({
13289
13286
  capacity: options?.bufferSize,
13290
13287
  strategy: options?.strategy
13291
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13288
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13292
13289
  startImmediately: true
13293
13290
  }))));
13294
13291
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13319,7 +13316,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13319
13316
  };
13320
13317
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13321
13318
  var succeed8 = (value) => fromEffect2(succeed4(value));
13322
- var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13319
+ var empty10 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13323
13320
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13324
13321
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13325
13322
  let done2 = false;
@@ -13393,13 +13390,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13393
13390
  return void_2;
13394
13391
  }), forever({
13395
13392
  disableYield: true
13396
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13393
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13397
13394
  } else {
13398
13395
  const effects = yield* bounded(concurrencyN - 2);
13399
13396
  yield* addFinalizer(forkedScope, shutdown(effects));
13400
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13397
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13401
13398
  disableYield: true
13402
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13399
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13403
13400
  let errorCause;
13404
13401
  const onExit = (exit) => {
13405
13402
  if (exit._tag === "Success")
@@ -13417,7 +13414,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13417
13414
  return offer(effects, join2(fiber));
13418
13415
  }), forever({
13419
13416
  disableYield: true
13420
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13417
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13421
13418
  }
13422
13419
  return take(queue);
13423
13420
  }));
@@ -13426,7 +13423,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13426
13423
  let childPull;
13427
13424
  let childScope;
13428
13425
  const makePull = flatMap3(pull, (value) => {
13429
- childScope ??= forkUnsafe2(scope);
13426
+ childScope ??= forkUnsafe(scope);
13430
13427
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13431
13428
  childPull = catchHalt(pull);
13432
13429
  return childPull;
@@ -13506,7 +13503,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13506
13503
  }
13507
13504
  }
13508
13505
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13509
- const childScope = forkUnsafe2(forkedScope);
13506
+ const childScope = forkUnsafe(forkedScope);
13510
13507
  const childPull = yield* toTransform(channel)(upstream, childScope);
13511
13508
  while (fibers.size >= concurrencyN) {
13512
13509
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13535,7 +13532,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13535
13532
  doneLatch.closeUnsafe();
13536
13533
  fibers.set(fiber, childScope);
13537
13534
  }
13538
- }).pipe(catchCause((cause) => {
13535
+ }).pipe(catchCause2((cause) => {
13539
13536
  const halt = filterDone(cause);
13540
13537
  if (isSuccess(halt)) {
13541
13538
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13571,8 +13568,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13571
13568
  onFailure: (cause) => onExit(side, cause),
13572
13569
  onSuccess: () => onExit(side, cause)
13573
13570
  }))), forkIn(forkedScope));
13574
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13575
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13571
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13572
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13576
13573
  return take(queue);
13577
13574
  })));
13578
13575
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13672,15 +13669,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13672
13669
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13673
13670
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13674
13671
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13675
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13672
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13676
13673
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13677
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13674
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13678
13675
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13679
13676
  let pull;
13680
13677
  return succeed4(suspend(() => {
13681
13678
  if (pull)
13682
13679
  return pull;
13683
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13680
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13684
13681
  }));
13685
13682
  });
13686
13683
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13696,7 +13693,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13696
13693
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13697
13694
  disableYield: true
13698
13695
  }));
13699
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13696
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13700
13697
  disableYield: true
13701
13698
  })));
13702
13699
  var mkUint8Array = (self) => map4(runFold(self, () => ({
@@ -13767,7 +13764,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
13767
13764
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
13768
13765
  var toChannel = (stream) => stream.channel;
13769
13766
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
13770
- var empty5 = /* @__PURE__ */ fromChannel(empty11);
13767
+ var empty4 = /* @__PURE__ */ fromChannel(empty10);
13771
13768
  var suspend3 = (stream) => {
13772
13769
  const suspended = fromChannel(suspend5(() => stream().channel));
13773
13770
  suspendedStreams.set(suspended, stream);
@@ -13776,7 +13773,7 @@ var suspend3 = (stream) => {
13776
13773
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
13777
13774
  var fail6 = (error) => fromChannel(fail10(error));
13778
13775
  var fromIterable3 = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
13779
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
13776
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty4;
13780
13777
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
13781
13778
  var paginate = (s, f) => fromPull(sync(() => {
13782
13779
  let state = s;
@@ -13853,7 +13850,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
13853
13850
  return acc;
13854
13851
  });
13855
13852
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
13856
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
13853
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
13857
13854
  let i = 0;
13858
13855
  return whileLoop2({
13859
13856
  while: () => i < arr.length,
@@ -13873,7 +13870,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13873
13870
  const onAbort = () => fiber.interruptUnsafe();
13874
13871
  return new ReadableStream({
13875
13872
  start(controller) {
13876
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13873
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13877
13874
  latch.closeUnsafe();
13878
13875
  for (let i = 0;i < chunk.length; i++) {
13879
13876
  controller.enqueue(chunk[i]);
@@ -13910,7 +13907,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13910
13907
  if (!fiber)
13911
13908
  return;
13912
13909
  cancelled = true;
13913
- return runPromise2(asVoid2(interrupt2(fiber)));
13910
+ return runPromise(asVoid2(interrupt2(fiber)));
13914
13911
  }
13915
13912
  }, options?.strategy);
13916
13913
  });
@@ -14288,7 +14285,7 @@ class Empty2 extends Proto8 {
14288
14285
  };
14289
14286
  }
14290
14287
  }
14291
- var empty6 = /* @__PURE__ */ new Empty2;
14288
+ var empty5 = /* @__PURE__ */ new Empty2;
14292
14289
  class Uint8Array3 extends Proto8 {
14293
14290
  _tag = "Uint8Array";
14294
14291
  contentType;
@@ -14458,8 +14455,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14458
14455
  self.body = body;
14459
14456
  return self;
14460
14457
  }
14461
- var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14462
- var make24 = (method) => (url, options) => modify(empty12, {
14458
+ var empty11 = /* @__PURE__ */ makeWith("GET", "", empty3, /* @__PURE__ */ none(), empty2, empty5);
14459
+ var make24 = (method) => (url, options) => modify(empty11, {
14463
14460
  method,
14464
14461
  url,
14465
14462
  ...options ?? undefined
@@ -14792,7 +14789,7 @@ class WebHttpClientResponse extends Class2 {
14792
14789
  cause
14793
14790
  })
14794
14791
  })
14795
- }).pipe(cached, runSync2);
14792
+ }).pipe(cached, runSync);
14796
14793
  }
14797
14794
  arrayBufferBody;
14798
14795
  get arrayBuffer() {
@@ -14808,7 +14805,7 @@ class WebHttpClientResponse extends Class2 {
14808
14805
  cause
14809
14806
  })
14810
14807
  })
14811
- }).pipe(cached, runSync2);
14808
+ }).pipe(cached, runSync);
14812
14809
  return this.arrayBufferBody;
14813
14810
  }
14814
14811
  get upgrade() {
@@ -15226,7 +15223,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15226
15223
  return send(undefined);
15227
15224
  });
15228
15225
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15229
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15226
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15230
15227
  var __defProp = Object.defineProperty;
15231
15228
  var __exportAll3 = (all, no_symbols) => {
15232
15229
  let target = {};
@@ -15240,7 +15237,7 @@ var __exportAll3 = (all, no_symbols) => {
15240
15237
  return target;
15241
15238
  };
15242
15239
 
15243
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15240
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15244
15241
  var DefinitionIdentifierKindSchema = Literals([
15245
15242
  "dual",
15246
15243
  "plugin",
@@ -15292,7 +15289,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15292
15289
  }) {
15293
15290
  };
15294
15291
 
15295
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15292
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15296
15293
  var identifierSchema = String3.check(isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15297
15294
  var isIdentifier = is(identifierSchema);
15298
15295
  var validateIdentifier = (kind, identifier) => {
@@ -15317,12 +15314,12 @@ var validateIdentifier = (kind, identifier) => {
15317
15314
  });
15318
15315
  };
15319
15316
 
15320
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15317
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15321
15318
  var PipeableProto = { pipe() {
15322
15319
  return pipeArguments(this, arguments);
15323
15320
  } };
15324
15321
 
15325
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15322
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15326
15323
  var Action_exports = /* @__PURE__ */ __exportAll3({
15327
15324
  ActionHandlerError: () => ActionHandlerError,
15328
15325
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15435,7 +15432,7 @@ var make26 = (identifier, options) => {
15435
15432
  };
15436
15433
  var isAction = (u) => hasProperty(u, TypeId29);
15437
15434
 
15438
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15435
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15439
15436
  var makeBinding = (options) => ({
15440
15437
  connectionId: options.connectionId,
15441
15438
  method: options.method,
@@ -15445,7 +15442,7 @@ var makeBinding = (options) => ({
15445
15442
  });
15446
15443
  var isBindingForMethod = (binding, method) => binding.method === method;
15447
15444
 
15448
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15445
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15449
15446
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15450
15447
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15451
15448
  Service: () => Service3
@@ -15453,7 +15450,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15453
15450
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15454
15451
  };
15455
15452
 
15456
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15453
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15457
15454
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15458
15455
  cause,
15459
15456
  methodIdentifier,
@@ -15615,7 +15612,7 @@ var test = (method, material, context) => {
15615
15612
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15616
15613
  };
15617
15614
 
15618
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15615
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15619
15616
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15620
15617
  AuthMethodHookError: () => AuthMethodHookError,
15621
15618
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15789,7 +15786,7 @@ var oauth2 = (identifier, options) => {
15789
15786
  };
15790
15787
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15791
15788
 
15792
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15789
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15793
15790
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
15794
15791
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
15795
15792
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -15810,13 +15807,13 @@ var findHandler = (context, providerId, handlerKey) => {
15810
15807
  return isMap(group) ? group.get(handlerKey) : undefined;
15811
15808
  };
15812
15809
 
15813
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15810
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15814
15811
  function decodeJson(schema, value) {
15815
15812
  return decodeUnknownEffect(toCodecJson2(schema))(value);
15816
15813
  }
15817
15814
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
15818
15815
 
15819
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15816
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15820
15817
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
15821
15818
  connectionId: String3,
15822
15819
  phase: optional(String3),
@@ -15912,7 +15909,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
15912
15909
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
15913
15910
  };
15914
15911
 
15915
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15912
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15916
15913
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
15917
15914
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
15918
15915
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -15972,7 +15969,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
15972
15969
  });
15973
15970
  });
15974
15971
 
15975
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15972
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15976
15973
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
15977
15974
  description: error.message,
15978
15975
  triggerId
@@ -16107,7 +16104,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16107
16104
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16108
16105
  };
16109
16106
 
16110
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16107
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16111
16108
  var runPhase = (options) => gen(function* () {
16112
16109
  const { entry, phase, request } = options;
16113
16110
  const runtime = yield* options.hook;
@@ -16190,7 +16187,7 @@ var poll2 = (entry, request) => runPhase({
16190
16187
  phase: "poll",
16191
16188
  request
16192
16189
  });
16193
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16190
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16194
16191
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16195
16192
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16196
16193
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -16402,10 +16399,10 @@ var verify2 = verify;
16402
16399
  var parse3 = parse2;
16403
16400
  var poll3 = poll2;
16404
16401
 
16405
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16402
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16406
16403
  var appendElements = (existing, additions) => [...existing, ...additions];
16407
16404
 
16408
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16405
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16409
16406
  var partitionChildren = (children) => ({
16410
16407
  actions: children.filter(isAction),
16411
16408
  groups: children.filter(isGroup),
@@ -16445,7 +16442,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
16445
16442
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
16446
16443
  };
16447
16444
 
16448
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16445
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16449
16446
  var Group_exports = /* @__PURE__ */ __exportAll3({
16450
16447
  TypeId: () => TypeId32,
16451
16448
  add: () => add4,
@@ -16507,7 +16504,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
16507
16504
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
16508
16505
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
16509
16506
 
16510
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
16507
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
16511
16508
  var Schema = TaggedStruct("ToolFile", {
16512
16509
  contentBase64: String3.annotate({
16513
16510
  contentEncoding: "base64",
@@ -16518,7 +16515,7 @@ var Schema = TaggedStruct("ToolFile", {
16518
16515
  sizeBytes: Natural
16519
16516
  });
16520
16517
 
16521
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16518
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16522
16519
  var Key = NonEmptyString.check(isMaxLength(512), isPattern(/^[^\p{Cc}]+$/u));
16523
16520
  var OperationKind = Literals([
16524
16521
  "present_outcome",
@@ -16607,7 +16604,7 @@ var VerifiedIdentity = Struct({
16607
16604
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
16608
16605
  var Verification = Struct({ verified: Literal(true) });
16609
16606
  var Exposure = Literals(["webhook", "host"]);
16610
- var RequiredChecks = Tuple([Literal("access")]);
16607
+ var RequiredChecks = Tuple2([Literal("access")]);
16611
16608
  var Message = Struct({
16612
16609
  content: Content,
16613
16610
  conversation: Destination,
@@ -17004,7 +17001,7 @@ var validateDefinition = (definition, providerId, methods) => {
17004
17001
  }
17005
17002
  };
17006
17003
 
17007
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17004
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17008
17005
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17009
17006
  const seen = /* @__PURE__ */ new Set;
17010
17007
  for (const method of methods) {
@@ -17017,7 +17014,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17017
17014
  }
17018
17015
  };
17019
17016
 
17020
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17017
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17021
17018
  var walkCapabilities = (provider, select) => {
17022
17019
  const entries = [];
17023
17020
  const visit = (owner, prefix) => {
@@ -17036,7 +17033,7 @@ var walkCapabilities = (provider, select) => {
17036
17033
  return entries;
17037
17034
  };
17038
17035
 
17039
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17036
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17040
17037
  var missingDeclaration = (kind, localId, pluginId) => {
17041
17038
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17042
17039
  };
@@ -17081,7 +17078,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17081
17078
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17082
17079
  });
17083
17080
 
17084
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17081
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17085
17082
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17086
17083
  TypeId: () => TypeId33,
17087
17084
  add: () => add5,
@@ -17089,7 +17086,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17089
17086
  isGitRequest: () => isGitRequest,
17090
17087
  isPlugin: () => isPlugin,
17091
17088
  make: () => make6,
17092
- provide: () => provide6,
17089
+ provide: () => provide4,
17093
17090
  toLayer: () => toLayer2,
17094
17091
  withAction: () => withAction2,
17095
17092
  withAgentChannel: () => withAgentChannel,
@@ -17164,7 +17161,7 @@ var make6 = (identifier) => makePlugin({
17164
17161
  iconUrl: undefined,
17165
17162
  iconUrlDark: undefined,
17166
17163
  identifier,
17167
- layer: empty8,
17164
+ layer: empty7,
17168
17165
  name: undefined,
17169
17166
  sandboxAccess: undefined,
17170
17167
  triggers: []
@@ -17214,7 +17211,7 @@ var withAgentChannel = (channel) => (plugin) => {
17214
17211
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17215
17212
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17216
17213
  };
17217
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17214
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17218
17215
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17219
17216
  action: (name, handler) => makeHandlers({
17220
17217
  ...actions,
@@ -17252,7 +17249,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17252
17249
  return yield* toHandlers(plugin, handlers);
17253
17250
  }));
17254
17251
 
17255
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17252
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17256
17253
  var ConnectionContext = Struct({
17257
17254
  actor: optionalKey(Union([Struct({
17258
17255
  kind: Literal("user"),
@@ -17290,7 +17287,7 @@ var AccessInput = Struct({
17290
17287
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17291
17288
  };
17292
17289
  var fail11 = (code) => new ChannelError({ code });
17293
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17290
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17294
17291
  var AssetResultJson = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17295
17292
  var Json3 = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17296
17293
  var strict = { onExcessProperty: "error" };
@@ -17306,7 +17303,7 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17306
17303
  var invokeHandler = (handler, effect2) => effect2.pipe(provideContext(handler.context), catch_((error) => decode4(TaggedStruct("AgentChannelHandlerError", { code: FailureCode }), isObject(error) ? { ...error } : error, "provider_failure").pipe(flatMap3((checked) => fail5(new ChannelError({
17307
17304
  code: "provider_failure",
17308
17305
  providerCode: checked.code
17309
- }))))), catchCause((cause) => {
17306
+ }))))), catchCause2((cause) => {
17310
17307
  if (hasInterrupts(cause))
17311
17308
  return interrupt;
17312
17309
  const error = findErrorOption2(cause);
@@ -17536,7 +17533,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17536
17533
  });
17537
17534
  }));
17538
17535
 
17539
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17536
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17540
17537
  var TypeId34 = "@dual-os/sdk/AiProvider";
17541
17538
  var RuntimeConfig = Struct({
17542
17539
  apiKey: optional(String3),
@@ -17594,7 +17591,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17594
17591
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17595
17592
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17596
17593
 
17597
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17594
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17598
17595
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17599
17596
  action: node,
17600
17597
  actionId: canonicalId,
@@ -17615,7 +17612,7 @@ var resolveAction = (installations, actionId, version) => {
17615
17612
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17616
17613
  };
17617
17614
 
17618
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17615
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17619
17616
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17620
17617
  authMethods: installation.plugin.authMethods,
17621
17618
  localId: walked.localId,
@@ -17636,7 +17633,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17636
17633
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17637
17634
  };
17638
17635
 
17639
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17636
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17640
17637
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17641
17638
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17642
17639
  var authMethodMetadataJson = (method) => {
@@ -17795,7 +17792,7 @@ var materializeResolvedRegistry = (input) => {
17795
17792
  };
17796
17793
  };
17797
17794
 
17798
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17795
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17799
17796
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17800
17797
  };
17801
17798
  var materializePlugin = (plugin, options) => ({
@@ -17814,7 +17811,7 @@ var materializePlugin = (plugin, options) => ({
17814
17811
  }).providers
17815
17812
  });
17816
17813
 
17817
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17814
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17818
17815
  var FieldIssue = class extends Class4("FieldIssue")({
17819
17816
  message: String3,
17820
17817
  path: String3
@@ -17887,7 +17884,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
17887
17884
  fields: schemaErrorFields(error)
17888
17885
  }))));
17889
17886
 
17890
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17887
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17891
17888
  var install = (plugin, version) => ({
17892
17889
  plugin,
17893
17890
  version
@@ -18091,7 +18088,7 @@ var toLayer = (app) => {
18091
18088
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18092
18089
  };
18093
18090
 
18094
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18091
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18095
18092
  var File3 = TaggedStruct("File", {
18096
18093
  contentType: String3,
18097
18094
  id: NonEmptyString,
@@ -18113,7 +18110,7 @@ var write = fnUntraced(function* (file) {
18113
18110
  return yield* (yield* service3).write(file);
18114
18111
  });
18115
18112
 
18116
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18113
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18117
18114
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18118
18115
  cause: optionalKey(Redacted(Defect())),
18119
18116
  message: String3
@@ -18171,7 +18168,7 @@ var ReservedTokenHeaders = fromIterable2([
18171
18168
  ]);
18172
18169
  var TokenHeaders = Record(String3, String3.check(isPattern(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter((headers) => {
18173
18170
  const names = map3(keys(headers), toLowerCase);
18174
- return size3(fromIterable2(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has3(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18171
+ return size3(fromIterable2(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has2(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18175
18172
  }, { message: "Invalid provider token headers" }));
18176
18173
  Struct({
18177
18174
  authorizationParams: Record(String3, String3),
@@ -18529,7 +18526,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18529
18526
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18530
18527
  }));
18531
18528
 
18532
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18529
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18533
18530
  var Identity = Struct({
18534
18531
  artifactDigest: String3.check(isPattern(/^[a-f0-9]{128}$/u)),
18535
18532
  invocationId: NonEmptyString,
@@ -18869,7 +18866,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18869
18866
  })));
18870
18867
  });
18871
18868
 
18872
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18869
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18873
18870
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
18874
18871
  category: Literals([
18875
18872
  "transport",
@@ -18885,49 +18882,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
18885
18882
  var maxPayloadBytes = 1048576;
18886
18883
  var maxMetadataBytes = 67108864;
18887
18884
  var maxChannelResultBytes = 16777216;
18888
- function ipcMessages(channel) {
18889
- return callback2((queue) => {
18890
- const message = (value) => {
18891
- offerUnsafe(queue, value);
18892
- };
18893
- const disconnected = () => {
18894
- endUnsafe(queue);
18895
- };
18896
- const failed = (cause) => {
18897
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
18898
- category: "runner",
18899
- cause: make4(cause),
18900
- message: "Plugin IPC channel failed"
18901
- })));
18902
- };
18903
- return acquireRelease(sync(() => {
18904
- channel.on("message", message);
18905
- channel.on("disconnect", disconnected);
18906
- channel.on("error", failed);
18907
- }), () => sync(() => {
18908
- channel.removeListener("message", message);
18909
- channel.removeListener("disconnect", disconnected);
18910
- channel.removeListener("error", failed);
18911
- }));
18912
- });
18913
- }
18914
- function sendIpc(channel, value) {
18915
- return try_2({
18916
- try: () => {
18917
- if (!channel.connected || channel.send === undefined)
18918
- throw PluginExecutionError.make({
18919
- category: "runner",
18920
- message: "Plugin IPC channel is closed"
18921
- });
18922
- channel.send(value);
18923
- },
18924
- catch: (cause) => PluginExecutionError.make({
18925
- category: "runner",
18926
- cause: make4(cause),
18927
- message: "Cannot send plugin IPC message"
18928
- })
18929
- });
18930
- }
18931
18885
  var OAuthContinuation = Struct({
18932
18886
  expiresAt: DateFromString,
18933
18887
  pkceVerifier: NullOr(String3),
@@ -18995,8 +18949,6 @@ var ExecutionRequest = Union([
18995
18949
  ChannelSettingsRequest
18996
18950
  ]);
18997
18951
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
18998
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
18999
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
19000
18952
  function checkMessageSize(value, maximum) {
19001
18953
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
19002
18954
  return void_2;
@@ -19006,24 +18958,24 @@ function checkMessageSize(value, maximum) {
19006
18958
  }));
19007
18959
  }
19008
18960
  var encodeInput = fnUntraced(function* (input) {
19009
- const encoded = yield* encodeEffect(Input2)(input);
18961
+ const encoded = yield* encodeEffect(Request4)(input);
19010
18962
  yield* checkMessageSize(encoded, maxPayloadBytes);
19011
18963
  return encoded;
19012
18964
  });
19013
18965
  var decodeInput = fnUntraced(function* (input) {
19014
18966
  const json = yield* decodeUnknownEffect(Json)(input);
19015
18967
  yield* checkMessageSize(json, maxPayloadBytes);
19016
- return yield* decodeUnknownEffect(Input2)(json);
18968
+ return yield* decodeUnknownEffect(Request4)(json);
19017
18969
  });
19018
18970
  var encodeOutput = fnUntraced(function* (output, maximum) {
19019
- const encoded = yield* encodeEffect(Output)(output);
18971
+ const encoded = yield* encodeEffect(Response)(output);
19020
18972
  yield* checkMessageSize(encoded, maximum);
19021
18973
  return encoded;
19022
18974
  });
19023
18975
  var decodeOutput = fnUntraced(function* (output) {
19024
18976
  const json = yield* decodeUnknownEffect(Json)(output);
19025
18977
  yield* checkMessageSize(json, maxMetadataBytes);
19026
- return yield* decodeUnknownEffect(Output)(json);
18978
+ return yield* decodeUnknownEffect(Response)(json);
19027
18979
  });
19028
18980
  function responseLimit(request) {
19029
18981
  if ("_tag" in request && request._tag === "extract")
@@ -19055,7 +19007,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19055
19007
  bytes: Buffer.alloc(maximum),
19056
19008
  size: 0
19057
19009
  };
19058
- yield* pipe(input, runForEach((chunk) => gen(function* () {
19010
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19059
19011
  if (output.size + chunk.byteLength > maximum)
19060
19012
  return yield* PluginExecutionError.make({
19061
19013
  category: "protocol",
@@ -19176,7 +19128,7 @@ var execute3 = fnUntraced(function* (request) {
19176
19128
  return yield* executeChannelSettings(request);
19177
19129
  });
19178
19130
 
19179
- export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, hash, equals, byReferenceUnsafe, format, NodeInspectSymbol, toJson, BaseProto, PipeInspectableProto, Prototype, String2, Number2, mapInput, none, some, isNone, isSome, match2, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, contains, exists, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match3, getOrThrow, empty, fromEntries, toEntries, has, map2, fromIterable, ensure, append, appendAll, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, last, findFirst, sort, zip, contains2, empty2, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, toPredicate, has2, compose, TaggedClass, Error2, TaggedError, forkUnsafe, isInterruptReason, fail2, hasInterruptsOnly, squash, hasInterrupts, filterInterruptors, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, make, _await, fail4, isDone, isDoneUnsafe, doneUnsafe, into, Scope, makeUnsafe3, addFinalizerExit, addFinalizer, fork, close, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchCause, catchIf, catchCauseIf, mapError, orDie, tapCause, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provide2, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, fnUntraced, fn, clockWith, logError, effectify, await_, join2, interrupt2, interruptAll, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, fromIterable2, has3, isRedacted, make4, value, empty3, empty4, InvalidValue, compose2, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, Int, Natural, isMinLength, isMaxLength, isMaxProperties, isUnique, NonEmptyString, Defect, fromJsonString, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty5, suspend3, fail6, fromIterable3, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, takeWhile, transduce, decodeText, splitLines, run, runCollect, runHead, runForEach, runDrain, mkString, layer, fromUnknown, value2, when, discriminatorsExhaustive, orElse2, empty6, HttpClientError, InvalidUrlError, makeWith, get3, post, patch, put, del, setMethod, setHeader, setHeaders, bearerToken, setUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, Schema, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, Identity, filesUnavailable, PluginExecutionError, ipcMessages, sendIpc, decodeInput, encodeOutput, responseLimit, execute3 };
19131
+ export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, equals, byReferenceUnsafe, format, NodeInspectSymbol, toJson, BaseProto, PipeInspectableProto, Prototype, String2, Number2, mapInput, none, some, isNone, isSome, match2, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, contains, exists, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match3, getOrThrow, fromEntries, toEntries, has, map2, fromIterable, ensure, append, appendAll, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, last, findFirst, sort, zip, contains2, empty, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, TaggedClass, Error2, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope, make, makeUnsafe3, addFinalizerExit, addFinalizer, forkUnsafe, close, makeMemoMapUnsafe, buildWithMemoMap, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, flatten, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchIf, catchCauseIf, mapError, orDie, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, fromIterable2, has2, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, Int, Natural, isMinLength, isMaxLength, isMaxProperties, isUnique, NonEmptyString, Defect, fromJsonString, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable3, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, takeWhile, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, discriminatorsExhaustive, orElse2, empty5, HttpClientError, InvalidUrlError, makeWith, get3, post, patch, put, del, setMethod, setHeader, setHeaders, bearerToken, setUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, Schema, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19180
19132
 
19181
- //# debugId=3B93D73B066C8D7364756E2164756E21
19182
- //# sourceMappingURL=plugin-w5hwm4bf.js.map
19133
+ //# debugId=6AE0DA44A97CC1AF64756E2164756E21
19134
+ //# sourceMappingURL=plugin-1s0prvga.js.map