@dual-os/dynamics-api 8.0.3 → 8.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.
@@ -572,7 +572,7 @@ var byReferenceUnsafe = (obj) => {
572
572
  var make7 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
573
573
  var isStrictEquivalent = (x, y) => x === y;
574
574
  var strictEqual = () => isStrictEquivalent;
575
- function Tuple2(elements) {
575
+ function Tuple(elements) {
576
576
  return make7((self, that) => {
577
577
  if (self.length !== that.length) {
578
578
  return false;
@@ -1119,7 +1119,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1119
1119
  var causeAddInterrupts = (self, interrupts) => {
1120
1120
  const reasons = self.reasons.slice();
1121
1121
  for (const reason of interrupts.reasons) {
1122
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1122
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1123
1123
  reasons.push(reason);
1124
1124
  }
1125
1125
  }
@@ -1157,7 +1157,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1157
1157
  });
1158
1158
  var isFailReason = (self) => self._tag === "Fail";
1159
1159
  var isDieReason = (self) => self._tag === "Die";
1160
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1160
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1161
1161
  function defaultEvaluate(_fiber) {
1162
1162
  return exitDie(`Effect.evaluate: Not implemented`);
1163
1163
  }
@@ -1342,7 +1342,7 @@ var Done2 = (value) => {
1342
1342
  };
1343
1343
  };
1344
1344
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1345
- var done2 = (value) => {
1345
+ var done3 = (value) => {
1346
1346
  if (value === undefined)
1347
1347
  return doneVoid;
1348
1348
  return exitFail(Done2(value));
@@ -1611,7 +1611,7 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onFailure) => {
1611
1611
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
1612
1612
 
1613
1613
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Record.js
1614
- var empty2 = () => ({});
1614
+ var empty = () => ({});
1615
1615
  var isEmptyRecord = (self) => Object.keys(self).length === 0;
1616
1616
  var fromEntries = Object.fromEntries;
1617
1617
  var collect = /* @__PURE__ */ dual(2, (self, f) => {
@@ -1682,7 +1682,7 @@ var normalizeNonEmpty = (n) => Math.max(1, normalize(n));
1682
1682
 
1683
1683
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1684
1684
  var make9 = (...elements) => elements;
1685
- var makeEquivalence2 = Tuple2;
1685
+ var makeEquivalence2 = Tuple;
1686
1686
 
1687
1687
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1688
1688
  var headUnsafe = (self) => {
@@ -1722,7 +1722,6 @@ var constEmptyIterator = {
1722
1722
  };
1723
1723
  }
1724
1724
  };
1725
- var empty = () => constEmpty;
1726
1725
 
1727
1726
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Array.js
1728
1727
  var Array2 = globalThis.Array;
@@ -1831,7 +1830,7 @@ var hashBucketsAdd = (buckets, value) => {
1831
1830
  bucket.push(value);
1832
1831
  return true;
1833
1832
  };
1834
- var empty3 = () => [];
1833
+ var empty2 = () => [];
1835
1834
  var of = (a) => [a];
1836
1835
  var map3 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
1837
1836
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -1869,7 +1868,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
1869
1868
  return out;
1870
1869
  });
1871
1870
  var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable2(self).reduce((b, a, i) => f(b, a, i), b));
1872
- var fromNullishOr2 = (a) => a == null ? empty3() : [a];
1871
+ var fromNullishOr2 = (a) => a == null ? empty2() : [a];
1873
1872
  var every = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
1874
1873
  var some3 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
1875
1874
  var makeEquivalence3 = Array_;
@@ -1977,7 +1976,7 @@ var applyOverlays = (map, overlay) => {
1977
1976
  applyOverlays(map, overlay.parent);
1978
1977
  map.set(overlay.key, overlay.value);
1979
1978
  };
1980
- var flatten = (self) => {
1979
+ var flatten2 = (self) => {
1981
1980
  if (self._flat)
1982
1981
  return self._flat;
1983
1982
  if (!self.overlay)
@@ -2002,7 +2001,7 @@ var lookup = (self, key) => {
2002
2001
  if (value === undefined && !impl.base.has(key))
2003
2002
  return notFound;
2004
2003
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
2005
- impl.base = flatten(impl);
2004
+ impl.base = flatten2(impl);
2006
2005
  impl.overlay = undefined;
2007
2006
  impl.depth = 0;
2008
2007
  }
@@ -2014,7 +2013,7 @@ var makeUnsafe = (mapUnsafe, options) => {
2014
2013
  };
2015
2014
  var Proto = {
2016
2015
  get mapUnsafe() {
2017
- return flatten(this);
2016
+ return flatten2(this);
2018
2017
  },
2019
2018
  ...PipeInspectableProto,
2020
2019
  [TypeId3]: {
@@ -2049,7 +2048,7 @@ var Proto = {
2049
2048
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
2050
2049
  var isContext = (u) => hasProperty(u, TypeId3);
2051
2050
  var isReference = (u) => !!u[ReferenceTypeId];
2052
- var empty8 = () => emptyContext2;
2051
+ var empty7 = () => emptyContext2;
2053
2052
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
2054
2053
  var make10 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
2055
2054
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -2451,14 +2450,6 @@ var Equivalence = (self, that) => matchPair(self, that, {
2451
2450
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2452
2451
 
2453
2452
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2454
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2455
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2456
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2457
- const leftOut = left(input);
2458
- if (isFailure3(leftOut))
2459
- return leftOut;
2460
- return right(leftOut.success);
2461
- });
2462
2453
  var toOption = (self) => (input) => {
2463
2454
  const result = self(input);
2464
2455
  return isFailure3(result) ? none() : some(result.success);
@@ -2873,7 +2864,7 @@ class Interrupt extends ReasonBase {
2873
2864
  };
2874
2865
  }
2875
2866
  [symbol2](that) {
2876
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2867
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2877
2868
  }
2878
2869
  [symbol]() {
2879
2870
  return string(`${this._tag}:${this.fiberId}`);
@@ -2894,7 +2885,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2894
2885
  var hasDies = (self) => self.reasons.some(isDieReason);
2895
2886
  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;
2896
2887
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2897
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2888
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2898
2889
  var causeFilterInterruptors = (self) => {
2899
2890
  let interruptors;
2900
2891
  for (let i = 0;i < self.reasons.length; i++) {
@@ -2908,7 +2899,6 @@ var causeFilterInterruptors = (self) => {
2908
2899
  }
2909
2900
  return interruptors ? succeed(interruptors) : fail(self);
2910
2901
  };
2911
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
2912
2902
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2913
2903
  let hasFail = false;
2914
2904
  const failures = self.reasons.map((failure) => {
@@ -3219,7 +3209,7 @@ class FiberImpl {
3219
3209
  }
3220
3210
  this._stack.length = 0;
3221
3211
  this._children = undefined;
3222
- this.context = empty8();
3212
+ this.context = empty7();
3223
3213
  const cache = this.cache;
3224
3214
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3225
3215
  this.cache = {
@@ -3425,7 +3415,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3425
3415
  }));
3426
3416
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3427
3417
  const annotations = fiberStackAnnotations(parent);
3428
- let fiberArr = empty3();
3418
+ let fiberArr = empty2();
3429
3419
  for (const fiber of fibers) {
3430
3420
  fiber.interruptUnsafe(parent.id, annotations);
3431
3421
  fiberArr.push(fiber);
@@ -3781,7 +3771,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3781
3771
  if (done)
3782
3772
  break;
3783
3773
  const index = i++;
3784
- const fiber = forkUnsafe(parent, effect, true, true, false);
3774
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3785
3775
  fibers.add(fiber);
3786
3776
  fiber.addObserver((exit) => {
3787
3777
  fibers.delete(fiber);
@@ -3808,7 +3798,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3808
3798
  }
3809
3799
  return flatMap5(self, f);
3810
3800
  });
3811
- var flatten2 = (self) => flatMap5(self, identity);
3801
+ var flatten3 = (self) => flatMap5(self, identity);
3812
3802
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3813
3803
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3814
3804
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3884,7 +3874,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3884
3874
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3885
3875
  step: constVoid
3886
3876
  }));
3887
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3877
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3888
3878
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3889
3879
  op: "OnFailure",
3890
3880
  [evaluate]: evaluateCont
@@ -3894,19 +3884,18 @@ var OnFailureImpl = function(self, f) {
3894
3884
  this[contE] = f;
3895
3885
  };
3896
3886
  OnFailureImpl.prototype = OnFailureProto;
3897
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3887
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3898
3888
  if (!predicate(cause)) {
3899
3889
  return failCause2(cause);
3900
3890
  }
3901
3891
  return f(cause);
3902
3892
  }));
3903
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3893
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3904
3894
  const eb = filter(cause);
3905
3895
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
3906
3896
  }));
3907
3897
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
3908
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
3909
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3898
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3910
3899
  const result = filter(cause);
3911
3900
  if (isFailure3(result)) {
3912
3901
  return failCause2(cause);
@@ -3914,7 +3903,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3914
3903
  return andThen2(f(result.success, cause), failCause2(cause));
3915
3904
  }));
3916
3905
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
3917
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3906
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
3918
3907
  const error = findRecoverableError(cause);
3919
3908
  if (isFailure3(error))
3920
3909
  return failCause2(error.failure);
@@ -3933,7 +3922,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
3933
3922
  return f(reason, e);
3934
3923
  return orElse ? orElse(reason, e) : fail8(e);
3935
3924
  }));
3936
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
3925
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
3937
3926
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
3938
3927
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
3939
3928
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4082,7 +4071,7 @@ var runFinalizer = (finalizer, exit_) => {
4082
4071
  return exitDie(defect);
4083
4072
  }
4084
4073
  };
4085
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4074
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4086
4075
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4087
4076
  let exits = [];
4088
4077
  const fibers = [];
@@ -4093,7 +4082,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4093
4082
  if (self.strategy === "sequential") {
4094
4083
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4095
4084
  } else if (key !== parent) {
4096
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4085
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4097
4086
  }
4098
4087
  }
4099
4088
  if (fibers.length > 0) {
@@ -4101,7 +4090,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4101
4090
  }
4102
4091
  return yield* exitAsVoidAll(exits);
4103
4092
  });
4104
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4105
4093
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4106
4094
  const child = makeScope(finalizerStrategy, scope);
4107
4095
  if (scope.state._tag === "Closed") {
@@ -4165,6 +4153,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4165
4153
  var constScopeEmpty = {
4166
4154
  _tag: "Empty"
4167
4155
  };
4156
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4168
4157
  var scope2 = scopeTag;
4169
4158
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4170
4159
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4485,7 +4474,7 @@ var iterateConcurrentImpl = (options) => {
4485
4474
  });
4486
4475
  } else {
4487
4476
  effect = undefined;
4488
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4477
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4489
4478
  if (fiber._exit) {
4490
4479
  terminal = step(state, item, fiber._exit, index);
4491
4480
  if (terminal)
@@ -4566,9 +4555,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4566
4555
  });
4567
4556
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4568
4557
  interruptChildrenPatch();
4569
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4558
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4570
4559
  }));
4571
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4560
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4572
4561
  const parentRuntime = parent;
4573
4562
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4574
4563
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4586,7 +4575,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4586
4575
  };
4587
4576
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4588
4577
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4589
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4578
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4590
4579
  if (!fiber._exit) {
4591
4580
  if (scope.state._tag !== "Closed") {
4592
4581
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4631,8 +4620,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4631
4620
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4632
4621
  return self;
4633
4622
  });
4634
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty8());
4635
- var runPromiseExitWith = (context) => {
4623
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4624
+ var runCallbackWith2 = (context) => {
4625
+ const runFork = runForkWith2(context);
4626
+ return (effect, options) => {
4627
+ const fiber = runFork(effect, options);
4628
+ if (options?.onExit) {
4629
+ fiber.addObserver(options.onExit);
4630
+ }
4631
+ return (interruptor) => {
4632
+ return fiber.interruptUnsafe(interruptor);
4633
+ };
4634
+ };
4635
+ };
4636
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty7());
4637
+ var runPromiseExitWith2 = (context) => {
4636
4638
  const runFork = runForkWith2(context);
4637
4639
  return (effect, options) => {
4638
4640
  const fiber = runFork(effect, options);
@@ -4641,8 +4643,9 @@ var runPromiseExitWith = (context) => {
4641
4643
  });
4642
4644
  };
4643
4645
  };
4644
- var runPromiseWith = (context) => {
4645
- const runPromiseExit = runPromiseExitWith(context);
4646
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty7());
4647
+ var runPromiseWith2 = (context) => {
4648
+ const runPromiseExit = runPromiseExitWith2(context);
4646
4649
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4647
4650
  if (exit._tag === "Failure") {
4648
4651
  throw causeSquash(exit.cause);
@@ -4650,8 +4653,8 @@ var runPromiseWith = (context) => {
4650
4653
  return exit.value;
4651
4654
  });
4652
4655
  };
4653
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty8());
4654
- var runSyncExitWith = (context) => {
4656
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty7());
4657
+ var runSyncExitWith2 = (context) => {
4655
4658
  const runFork = runForkWith2(context);
4656
4659
  return (effect) => {
4657
4660
  if (effectIsExit(effect))
@@ -4664,9 +4667,9 @@ var runSyncExitWith = (context) => {
4664
4667
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4665
4668
  };
4666
4669
  };
4667
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty8());
4668
- var runSyncWith = (context) => {
4669
- const runSyncExit = runSyncExitWith(context);
4670
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty7());
4671
+ var runSyncWith2 = (context) => {
4672
+ const runSyncExit = runSyncExitWith2(context);
4670
4673
  return (effect) => {
4671
4674
  const exit = runSyncExit(effect);
4672
4675
  if (exit._tag === "Failure")
@@ -4674,7 +4677,7 @@ var runSyncWith = (context) => {
4674
4677
  return exit.value;
4675
4678
  };
4676
4679
  };
4677
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty8());
4680
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty7());
4678
4681
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4679
4682
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4680
4683
 
@@ -4796,7 +4799,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4796
4799
  span = noopSpan({
4797
4800
  name,
4798
4801
  parent,
4799
- annotations: add(options?.annotations ?? empty8(), DisablePropagation, true)
4802
+ annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4800
4803
  });
4801
4804
  } else {
4802
4805
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4809,7 +4812,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4809
4812
  span = tracer.span({
4810
4813
  name,
4811
4814
  parent,
4812
- annotations: options?.annotations ?? empty8(),
4815
+ annotations: options?.annotations ?? empty7(),
4813
4816
  links,
4814
4817
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4815
4818
  kind: options?.kind ?? "internal",
@@ -5210,7 +5213,6 @@ var DeferredImpl = function() {
5210
5213
  };
5211
5214
  DeferredImpl.prototype = DeferredProto;
5212
5215
  var makeUnsafe2 = () => new DeferredImpl;
5213
- var make = () => sync2(() => makeUnsafe2());
5214
5216
  var _await = (self) => callback3((resume) => {
5215
5217
  if (self.effect)
5216
5218
  return resume(self.effect);
@@ -5226,8 +5228,8 @@ var _await = (self) => callback3((resume) => {
5226
5228
  });
5227
5229
  });
5228
5230
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5229
- var done3 = completeWith;
5230
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5231
+ var done2 = completeWith;
5232
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5231
5233
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5232
5234
  var isDoneUnsafe = (self) => self.effect !== undefined;
5233
5235
  var doneUnsafe = (self, effect) => {
@@ -5243,19 +5245,18 @@ var doneUnsafe = (self, effect) => {
5243
5245
  }
5244
5246
  return true;
5245
5247
  };
5246
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5247
5248
 
5248
5249
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5249
5250
  var TracerTimingEnabled2 = TracerTimingEnabled;
5250
5251
 
5251
5252
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5252
5253
  var Scope = scopeTag;
5254
+ var make = scopeMake;
5253
5255
  var makeUnsafe3 = scopeMakeUnsafe;
5254
- var provide3 = provideScope;
5256
+ var provide2 = provideScope;
5255
5257
  var addFinalizerExit = scopeAddFinalizerExit;
5256
5258
  var addFinalizer = scopeAddFinalizer;
5257
- var fork = scopeFork;
5258
- var forkUnsafe2 = scopeForkUnsafe;
5259
+ var forkUnsafe = scopeForkUnsafe;
5259
5260
  var close = scopeClose;
5260
5261
 
5261
5262
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5298,7 +5299,7 @@ var fromBuildUnsafe = (build) => {
5298
5299
  return self;
5299
5300
  };
5300
5301
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5301
- const layerScope = forkUnsafe2(scope);
5302
+ const layerScope = forkUnsafe(scope);
5302
5303
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5303
5304
  });
5304
5305
  var fromBuildMemo = (build) => {
@@ -5360,7 +5361,7 @@ var succeed3 = function() {
5360
5361
  return succeedContext(make10(arguments[0], arguments[1]));
5361
5362
  };
5362
5363
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5363
- var empty9 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty8());
5364
+ var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5364
5365
  var effect = function() {
5365
5366
  if (arguments.length === 1) {
5366
5367
  return (effect) => effectImpl(arguments[0], effect);
@@ -5368,10 +5369,10 @@ var effect = function() {
5368
5369
  return effectImpl(arguments[0], arguments[1]);
5369
5370
  };
5370
5371
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make10(service, value)));
5371
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5372
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5372
5373
  var mergeAllEffect = (layers, memoMap, scope) => {
5373
- const parentScope = forkUnsafe2(scope, "parallel");
5374
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5374
+ const parentScope = forkUnsafe(scope, "parallel");
5375
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5375
5376
  concurrency: layers.length
5376
5377
  }).pipe(map6((context) => mergeAll2(...context)));
5377
5378
  };
@@ -5383,19 +5384,16 @@ var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, tha
5383
5384
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5384
5385
  var isCause2 = isCause;
5385
5386
  var isFailReason2 = isFailReason;
5386
- var isInterruptReason = isInterruptReason2;
5387
5387
  var fromReasons = causeFromReasons;
5388
5388
  var fail2 = causeFail;
5389
5389
  var die3 = causeDie;
5390
- var hasInterruptsOnly = hasInterruptsOnly2;
5391
5390
  var map7 = causeMap;
5392
5391
  var squash = causeSquash;
5393
5392
  var findErrorOption2 = findErrorOption;
5394
5393
  var hasInterrupts = hasInterrupts2;
5395
- var filterInterruptors = causeFilterInterruptors;
5396
5394
  var isDone3 = isDone2;
5397
5395
  var Done = Done2;
5398
- var done = done2;
5396
+ var done = done3;
5399
5397
  var IllegalArgumentError2 = IllegalArgumentError;
5400
5398
  var UnknownError = UnknownError2;
5401
5399
 
@@ -5828,10 +5826,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5828
5826
  }
5829
5827
  }));
5830
5828
 
5831
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5832
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5833
- 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));
5834
-
5835
5829
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5836
5830
  var isEffect = isEffect2;
5837
5831
  var all = all3;
@@ -5860,7 +5854,7 @@ var withFiber = withFiber2;
5860
5854
  var fromResult2 = fromResult;
5861
5855
  var fromOption2 = fromOption4;
5862
5856
  var flatMap3 = flatMap5;
5863
- var flatten3 = flatten2;
5857
+ var flatten = flatten3;
5864
5858
  var andThen = andThen2;
5865
5859
  var tap = tap2;
5866
5860
  var result = result2;
@@ -5874,13 +5868,12 @@ var zipWith = zipWith3;
5874
5868
  var catch_ = catch_2;
5875
5869
  var catchTag = catchTag2;
5876
5870
  var catchReason = catchReason2;
5877
- var catchCause = catchCause2;
5871
+ var catchCause2 = catchCause;
5878
5872
  var catchIf = catchIf2;
5879
5873
  var catchCauseIf = catchCauseIf2;
5880
5874
  var mapError = mapError3;
5881
5875
  var orDie = orDie2;
5882
5876
  var tapError3 = tapError2;
5883
- var tapCause = tapCause2;
5884
5877
  var ignore = ignore2;
5885
5878
  var ignoreCause = ignoreCause2;
5886
5879
  var orElseSucceed2 = orElseSucceed;
@@ -5890,7 +5883,6 @@ var matchCauseEffect2 = matchCauseEffect;
5890
5883
  var matchEffect = matchEffect2;
5891
5884
  var context = context2;
5892
5885
  var contextWith2 = contextWith;
5893
- var provide2 = provide4;
5894
5886
  var provideContext = provideContext2;
5895
5887
  var serviceOption = serviceOption2;
5896
5888
  var updateContext2 = updateContext;
@@ -5917,13 +5909,19 @@ var forkIn = forkIn2;
5917
5909
  var forkScoped = forkScoped2;
5918
5910
  var runFork = runFork2;
5919
5911
  var runForkWith = runForkWith2;
5920
- var runPromise2 = runPromise;
5921
- var runSync2 = runSync;
5922
- var runSyncExit2 = runSyncExit;
5912
+ var runCallbackWith = runCallbackWith2;
5913
+ var runCallback = runCallback2;
5914
+ var runPromise = runPromise2;
5915
+ var runPromiseWith = runPromiseWith2;
5916
+ var runPromiseExit = runPromiseExit2;
5917
+ var runPromiseExitWith = runPromiseExitWith2;
5918
+ var runSync = runSync2;
5919
+ var runSyncWith = runSyncWith2;
5920
+ var runSyncExit = runSyncExit2;
5921
+ var runSyncExitWith = runSyncExitWith2;
5923
5922
  var fnUntraced = fnUntraced2;
5924
5923
  var fn = fn2;
5925
5924
  var clockWith = clockWith2;
5926
- var logError = /* @__PURE__ */ logWithLevel("Error");
5927
5925
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
5928
5926
  let synchronous = true;
5929
5927
  let pending;
@@ -6726,12 +6724,12 @@ class HashMapImpl {
6726
6724
  }
6727
6725
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6728
6726
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6729
- var empty10 = () => new HashMapImpl(false, 0, emptyNode, 0);
6727
+ var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6730
6728
  var get6 = /* @__PURE__ */ dual(2, (self, key) => {
6731
6729
  const impl = self;
6732
6730
  return impl._root.get(0, hash(key), key);
6733
6731
  });
6734
- var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6732
+ var has2 = /* @__PURE__ */ dual(2, (self, key) => {
6735
6733
  const impl = self;
6736
6734
  return impl._root.has(0, hash(key), key);
6737
6735
  });
@@ -6768,7 +6766,7 @@ var HashSetProto = {
6768
6766
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6769
6767
  },
6770
6768
  [symbol2](that) {
6771
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6769
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has3(that, value));
6772
6770
  },
6773
6771
  [Symbol.iterator]() {
6774
6772
  return keys2(keyMap(this));
@@ -6798,13 +6796,13 @@ var makeImpl2 = (keyMap) => {
6798
6796
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6799
6797
  var keyMap = (self) => self.keyMap;
6800
6798
  var fromIterable3 = (values) => {
6801
- let map = empty10();
6799
+ let map = empty9();
6802
6800
  for (const value of values) {
6803
6801
  map = set3(map, value, true);
6804
6802
  }
6805
6803
  return makeImpl2(map);
6806
6804
  };
6807
- var has4 = (self, value) => has3(keyMap(self), value);
6805
+ var has3 = (self, value) => has2(keyMap(self), value);
6808
6806
  var size2 = (self) => size(keyMap(self));
6809
6807
  var every2 = (self, predicate) => {
6810
6808
  for (const value of self) {
@@ -6817,7 +6815,7 @@ var every2 = (self, predicate) => {
6817
6815
 
6818
6816
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6819
6817
  var fromIterable4 = fromIterable3;
6820
- var has5 = /* @__PURE__ */ dual(2, has4);
6818
+ var has4 = /* @__PURE__ */ dual(2, has3);
6821
6819
  var size3 = size2;
6822
6820
 
6823
6821
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
@@ -7081,10 +7079,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7081
7079
  });
7082
7080
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7083
7081
  var Equivalence3 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
7084
- var empty4 = /* @__PURE__ */ Object.create(Proto5);
7082
+ var empty3 = /* @__PURE__ */ Object.create(Proto5);
7085
7083
  var fromInput = (input) => {
7086
7084
  if (input === undefined) {
7087
- return empty4;
7085
+ return empty3;
7088
7086
  } else if (Symbol.iterator in input) {
7089
7087
  const out = Object.create(Proto5);
7090
7088
  for (const [k, v] of input) {
@@ -7245,7 +7243,7 @@ var fromInputNested = (input) => {
7245
7243
  var coerce = (value) => isRedacted(value) ? value : String(value);
7246
7244
  var Equivalence4 = /* @__PURE__ */ make7((a, b) => arrayEquivalence(a.params, b.params));
7247
7245
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7248
- var empty5 = /* @__PURE__ */ make16([]);
7246
+ var empty4 = /* @__PURE__ */ make16([]);
7249
7247
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7250
7248
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7251
7249
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7315,7 +7313,7 @@ var decodeQueryKey = (key) => {
7315
7313
  return key;
7316
7314
  }
7317
7315
  };
7318
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty8(), CurrentRedactedNames2);
7316
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7319
7317
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7320
7318
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7321
7319
  });
@@ -7665,7 +7663,7 @@ var runGetter = (self, input, options) => {
7665
7663
  };
7666
7664
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7667
7665
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7668
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7666
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7669
7667
  if (self._tag === "Passthrough")
7670
7668
  return other;
7671
7669
  if (other._tag === "Passthrough")
@@ -8540,7 +8538,7 @@ var Objects = class extends ASTNodeImpl {
8540
8538
  }
8541
8539
  }
8542
8540
  } else if (parseIndexes) {
8543
- const keyPairs = empty3();
8541
+ const keyPairs = empty2();
8544
8542
  for (let i = 0;i < indexCount; i++) {
8545
8543
  const index = indexes[i];
8546
8544
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9058,7 +9056,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9058
9056
  return fail3(new AnyOf(ast, [issue], input, options));
9059
9057
  }
9060
9058
  function catchSingleUnionCandidate(ast, result, input, options) {
9061
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9059
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9062
9060
  }
9063
9061
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9064
9062
  const state = {
@@ -9709,7 +9707,7 @@ function compileTransformationUnsafe(transformation) {
9709
9707
  }
9710
9708
  }
9711
9709
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9712
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9710
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9713
9711
  function makeConstructorParser(descriptor, compile) {
9714
9712
  const transform = compileTransformation(descriptor.link.transformation);
9715
9713
  let sourceParser;
@@ -9965,7 +9963,7 @@ function makeEffect(schema) {
9965
9963
  function makeOption(schema) {
9966
9964
  const parser = makeEffect(schema);
9967
9965
  return (input, options) => {
9968
- const exit = runSyncExit2(parser(input, options));
9966
+ const exit = runSyncExit(parser(input, options));
9969
9967
  if (isSuccess2(exit)) {
9970
9968
  return some(exit.value);
9971
9969
  }
@@ -10004,7 +10002,7 @@ function makeIs(ast) {
10004
10002
  }
10005
10003
  const parser = entry.parser;
10006
10004
  return (input) => {
10007
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
10005
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
10008
10006
  if (isSuccess2(exit))
10009
10007
  return true;
10010
10008
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10072,7 +10070,7 @@ function runWithCompiler(compiler, ast) {
10072
10070
  };
10073
10071
  }
10074
10072
  function asExit(parser) {
10075
- return (input, options) => runSyncExit2(parser(input, options));
10073
+ return (input, options) => runSyncExit(parser(input, options));
10076
10074
  }
10077
10075
  function asOption(parser) {
10078
10076
  const parserExit = asExit(parser);
@@ -10086,7 +10084,7 @@ function asOption(parser) {
10086
10084
  };
10087
10085
  }
10088
10086
  function runSync3(effect, message) {
10089
- const exit = runSyncExit2(effect);
10087
+ const exit = runSyncExit(effect);
10090
10088
  if (isSuccess2(exit)) {
10091
10089
  return exit.value;
10092
10090
  }
@@ -11750,7 +11748,7 @@ function fromIssueEffect(self) {
11750
11748
  if (effectIsExit(self)) {
11751
11749
  return fromIssueExit(self);
11752
11750
  }
11753
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11751
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11754
11752
  }
11755
11753
  function fromIssueExit(exit) {
11756
11754
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11773,7 +11771,7 @@ function getSchemaErrorOrThrow(cause, message) {
11773
11771
  return schemaError;
11774
11772
  }
11775
11773
  function runSchemaErrorSync(self) {
11776
- const exit = runSyncExit2(self);
11774
+ const exit = runSyncExit(self);
11777
11775
  if (isSuccess2(exit)) {
11778
11776
  return exit.value;
11779
11777
  }
@@ -11885,7 +11883,7 @@ function makeTuple(ast, elements) {
11885
11883
  }
11886
11884
  });
11887
11885
  }
11888
- function Tuple(elements) {
11886
+ function Tuple2(elements) {
11889
11887
  return makeTuple(tuple(elements), elements);
11890
11888
  }
11891
11889
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -11947,7 +11945,7 @@ function toIssueEffect(self) {
11947
11945
  if (effectIsExit(self) && self._tag === "Success") {
11948
11946
  return self;
11949
11947
  }
11950
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (error) => error.issue)));
11948
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (error) => error.issue)));
11951
11949
  }
11952
11950
  function withDecodingDefaultKey(defaultValue, options) {
11953
11951
  const encode = options?.encodingStrategy === "omit" ? omit() : passthrough();
@@ -12683,7 +12681,6 @@ var Json = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json2, {
12683
12681
  var await_ = fiberAwait;
12684
12682
  var join2 = fiberJoin;
12685
12683
  var interrupt2 = fiberInterrupt;
12686
- var interruptAll = fiberInterruptAll;
12687
12684
  var getCurrent = getCurrentFiber;
12688
12685
  var runIn = fiberRunIn;
12689
12686
 
@@ -13221,13 +13218,13 @@ var ChannelProto = {
13221
13218
  };
13222
13219
  var fromTransform = (transform) => {
13223
13220
  const self = Object.create(ChannelProto);
13224
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13221
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13225
13222
  return self;
13226
13223
  };
13227
13224
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13228
13225
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13229
13226
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13230
- const closableScope = forkUnsafe2(scope);
13227
+ const closableScope = forkUnsafe(scope);
13231
13228
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13232
13229
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13233
13230
  return onError(pull, onCause);
@@ -13237,7 +13234,7 @@ var DefaultChunkSize = 4096;
13237
13234
  var asyncQueue = (scope, f, options) => make2({
13238
13235
  capacity: options?.bufferSize,
13239
13236
  strategy: options?.strategy
13240
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13237
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13241
13238
  startImmediately: true
13242
13239
  }))));
13243
13240
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13268,7 +13265,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13268
13265
  };
13269
13266
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13270
13267
  var succeed8 = (value) => fromEffect2(succeed4(value));
13271
- var empty12 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13268
+ var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13272
13269
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13273
13270
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13274
13271
  let done2 = false;
@@ -13342,13 +13339,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13342
13339
  return void_2;
13343
13340
  }), forever({
13344
13341
  disableYield: true
13345
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13342
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13346
13343
  } else {
13347
13344
  const effects = yield* bounded(concurrencyN - 2);
13348
13345
  yield* addFinalizer(forkedScope, shutdown(effects));
13349
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13346
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13350
13347
  disableYield: true
13351
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13348
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13352
13349
  let errorCause;
13353
13350
  const onExit = (exit) => {
13354
13351
  if (exit._tag === "Success")
@@ -13366,7 +13363,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13366
13363
  return offer(effects, join2(fiber));
13367
13364
  }), forever({
13368
13365
  disableYield: true
13369
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13366
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13370
13367
  }
13371
13368
  return take(queue);
13372
13369
  }));
@@ -13375,7 +13372,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13375
13372
  let childPull;
13376
13373
  let childScope;
13377
13374
  const makePull = flatMap3(pull, (value) => {
13378
- childScope ??= forkUnsafe2(scope);
13375
+ childScope ??= forkUnsafe(scope);
13379
13376
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13380
13377
  childPull = catchHalt(pull);
13381
13378
  return childPull;
@@ -13455,7 +13452,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13455
13452
  }
13456
13453
  }
13457
13454
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13458
- const childScope = forkUnsafe2(forkedScope);
13455
+ const childScope = forkUnsafe(forkedScope);
13459
13456
  const childPull = yield* toTransform(channel)(upstream, childScope);
13460
13457
  while (fibers.size >= concurrencyN) {
13461
13458
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13484,7 +13481,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13484
13481
  doneLatch.closeUnsafe();
13485
13482
  fibers.set(fiber, childScope);
13486
13483
  }
13487
- }).pipe(catchCause((cause) => {
13484
+ }).pipe(catchCause2((cause) => {
13488
13485
  const halt = filterDone(cause);
13489
13486
  if (isSuccess(halt)) {
13490
13487
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13520,8 +13517,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13520
13517
  onFailure: (cause) => onExit(side, cause),
13521
13518
  onSuccess: () => onExit(side, cause)
13522
13519
  }))), forkIn(forkedScope));
13523
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13524
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13520
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13521
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13525
13522
  return take(queue);
13526
13523
  })));
13527
13524
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13621,15 +13618,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13621
13618
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13622
13619
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13623
13620
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13624
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13621
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13625
13622
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13626
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13623
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13627
13624
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13628
13625
  let pull;
13629
13626
  return succeed4(suspend(() => {
13630
13627
  if (pull)
13631
13628
  return pull;
13632
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13629
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13633
13630
  }));
13634
13631
  });
13635
13632
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13645,7 +13642,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13645
13642
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13646
13643
  disableYield: true
13647
13644
  }));
13648
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13645
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13649
13646
  disableYield: true
13650
13647
  })));
13651
13648
  var mkUint8Array = (self) => map4(runFold2(self, () => ({
@@ -13716,7 +13713,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
13716
13713
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
13717
13714
  var toChannel = (stream) => stream.channel;
13718
13715
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
13719
- var empty6 = /* @__PURE__ */ fromChannel(empty12);
13716
+ var empty5 = /* @__PURE__ */ fromChannel(empty11);
13720
13717
  var suspend3 = (stream) => {
13721
13718
  const suspended = fromChannel(suspend5(() => stream().channel));
13722
13719
  suspendedStreams.set(suspended, stream);
@@ -13725,7 +13722,7 @@ var suspend3 = (stream) => {
13725
13722
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
13726
13723
  var fail6 = (error) => fromChannel(fail10(error));
13727
13724
  var fromIterable = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
13728
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty6;
13725
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
13729
13726
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
13730
13727
  var paginate = (s, f) => fromPull(sync(() => {
13731
13728
  let state = s;
@@ -13792,7 +13789,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => runFold2(self.channe
13792
13789
  return acc;
13793
13790
  }));
13794
13791
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
13795
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
13792
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
13796
13793
  let i = 0;
13797
13794
  return whileLoop2({
13798
13795
  while: () => i < arr.length,
@@ -13812,7 +13809,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13812
13809
  const onAbort = () => fiber.interruptUnsafe();
13813
13810
  return new ReadableStream({
13814
13811
  start(controller) {
13815
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13812
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13816
13813
  latch.closeUnsafe();
13817
13814
  for (let i = 0;i < chunk.length; i++) {
13818
13815
  controller.enqueue(chunk[i]);
@@ -13849,7 +13846,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13849
13846
  if (!fiber)
13850
13847
  return;
13851
13848
  cancelled = true;
13852
- return runPromise2(asVoid2(interrupt2(fiber)));
13849
+ return runPromise(asVoid2(interrupt2(fiber)));
13853
13850
  }
13854
13851
  }, options?.strategy);
13855
13852
  });
@@ -14221,7 +14218,7 @@ class Empty2 extends Proto8 {
14221
14218
  };
14222
14219
  }
14223
14220
  }
14224
- var empty7 = /* @__PURE__ */ new Empty2;
14221
+ var empty6 = /* @__PURE__ */ new Empty2;
14225
14222
  class Uint8Array3 extends Proto8 {
14226
14223
  _tag = "Uint8Array";
14227
14224
  contentType;
@@ -14393,8 +14390,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14393
14390
  self.body = body;
14394
14391
  return self;
14395
14392
  }
14396
- var empty13 = /* @__PURE__ */ makeWith("GET", "", empty5, /* @__PURE__ */ none(), empty4, empty7);
14397
- var make24 = (method) => (url, options) => modify(empty13, {
14393
+ var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14394
+ var make24 = (method) => (url, options) => modify(empty12, {
14398
14395
  method,
14399
14396
  url,
14400
14397
  ...options ?? undefined
@@ -14734,7 +14731,7 @@ class WebHttpClientResponse extends Class2 {
14734
14731
  cause
14735
14732
  })
14736
14733
  })
14737
- }).pipe(cached, runSync2);
14734
+ }).pipe(cached, runSync);
14738
14735
  }
14739
14736
  arrayBufferBody;
14740
14737
  get arrayBuffer() {
@@ -14750,7 +14747,7 @@ class WebHttpClientResponse extends Class2 {
14750
14747
  cause
14751
14748
  })
14752
14749
  })
14753
- }).pipe(cached, runSync2);
14750
+ }).pipe(cached, runSync);
14754
14751
  return this.arrayBufferBody;
14755
14752
  }
14756
14753
  get upgrade() {
@@ -15168,7 +15165,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15168
15165
  return send(undefined);
15169
15166
  });
15170
15167
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15171
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15168
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15172
15169
  var __defProp = Object.defineProperty;
15173
15170
  var __exportAll3 = (all, no_symbols) => {
15174
15171
  let target = {};
@@ -15182,7 +15179,7 @@ var __exportAll3 = (all, no_symbols) => {
15182
15179
  return target;
15183
15180
  };
15184
15181
 
15185
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15182
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15186
15183
  var DefinitionIdentifierKindSchema = Literals([
15187
15184
  "dual",
15188
15185
  "plugin",
@@ -15234,7 +15231,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15234
15231
  }) {
15235
15232
  };
15236
15233
 
15237
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15234
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15238
15235
  var identifierSchema = String3.check(isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15239
15236
  var isIdentifier = is(identifierSchema);
15240
15237
  var validateIdentifier = (kind, identifier) => {
@@ -15259,12 +15256,12 @@ var validateIdentifier = (kind, identifier) => {
15259
15256
  });
15260
15257
  };
15261
15258
 
15262
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15259
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15263
15260
  var PipeableProto = { pipe() {
15264
15261
  return pipeArguments(this, arguments);
15265
15262
  } };
15266
15263
 
15267
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15264
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15268
15265
  var Action_exports = /* @__PURE__ */ __exportAll3({
15269
15266
  ActionHandlerError: () => ActionHandlerError,
15270
15267
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15377,7 +15374,7 @@ var make26 = (identifier, options) => {
15377
15374
  };
15378
15375
  var isAction = (u) => hasProperty(u, TypeId29);
15379
15376
 
15380
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15377
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15381
15378
  var makeBinding = (options) => ({
15382
15379
  connectionId: options.connectionId,
15383
15380
  method: options.method,
@@ -15387,7 +15384,7 @@ var makeBinding = (options) => ({
15387
15384
  });
15388
15385
  var isBindingForMethod = (binding, method) => binding.method === method;
15389
15386
 
15390
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15387
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15391
15388
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15392
15389
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15393
15390
  Service: () => Service3
@@ -15395,7 +15392,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15395
15392
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15396
15393
  };
15397
15394
 
15398
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15395
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15399
15396
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15400
15397
  cause,
15401
15398
  methodIdentifier,
@@ -15557,7 +15554,7 @@ var test = (method, material, context) => {
15557
15554
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15558
15555
  };
15559
15556
 
15560
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15557
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15561
15558
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15562
15559
  AuthMethodHookError: () => AuthMethodHookError,
15563
15560
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15731,7 +15728,7 @@ var oauth2 = (identifier, options) => {
15731
15728
  };
15732
15729
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15733
15730
 
15734
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15731
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15735
15732
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
15736
15733
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
15737
15734
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -15752,13 +15749,13 @@ var findHandler = (context, providerId, handlerKey) => {
15752
15749
  return isMap(group) ? group.get(handlerKey) : undefined;
15753
15750
  };
15754
15751
 
15755
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15752
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15756
15753
  function decodeJson(schema, value) {
15757
15754
  return decodeUnknownEffect(toCodecJson2(schema))(value);
15758
15755
  }
15759
15756
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
15760
15757
 
15761
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15758
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15762
15759
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
15763
15760
  connectionId: String3,
15764
15761
  phase: optional(String3),
@@ -15854,7 +15851,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
15854
15851
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
15855
15852
  };
15856
15853
 
15857
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15854
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15858
15855
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
15859
15856
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
15860
15857
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -15914,7 +15911,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
15914
15911
  });
15915
15912
  });
15916
15913
 
15917
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15914
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15918
15915
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
15919
15916
  description: error.message,
15920
15917
  triggerId
@@ -16049,7 +16046,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16049
16046
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16050
16047
  };
16051
16048
 
16052
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16049
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16053
16050
  var runPhase = (options) => gen(function* () {
16054
16051
  const { entry, phase, request } = options;
16055
16052
  const runtime = yield* options.hook;
@@ -16132,7 +16129,7 @@ var poll2 = (entry, request) => runPhase({
16132
16129
  phase: "poll",
16133
16130
  request
16134
16131
  });
16135
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16132
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16136
16133
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16137
16134
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16138
16135
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -16344,10 +16341,10 @@ var verify2 = verify;
16344
16341
  var parse3 = parse2;
16345
16342
  var poll3 = poll2;
16346
16343
 
16347
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16344
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16348
16345
  var appendElements = (existing, additions) => [...existing, ...additions];
16349
16346
 
16350
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16347
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16351
16348
  var partitionChildren = (children) => ({
16352
16349
  actions: children.filter(isAction),
16353
16350
  groups: children.filter(isGroup),
@@ -16387,7 +16384,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
16387
16384
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
16388
16385
  };
16389
16386
 
16390
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16387
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16391
16388
  var Group_exports = /* @__PURE__ */ __exportAll3({
16392
16389
  TypeId: () => TypeId32,
16393
16390
  add: () => add4,
@@ -16449,7 +16446,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
16449
16446
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
16450
16447
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
16451
16448
 
16452
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
16449
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
16453
16450
  var Schema = TaggedStruct("ToolFile", {
16454
16451
  contentBase64: String3.annotate({
16455
16452
  contentEncoding: "base64",
@@ -16460,7 +16457,7 @@ var Schema = TaggedStruct("ToolFile", {
16460
16457
  sizeBytes: Natural
16461
16458
  });
16462
16459
 
16463
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16460
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16464
16461
  var Key = NonEmptyString.check(isMaxLength(512), isPattern(/^[^\p{Cc}]+$/u));
16465
16462
  var OperationKind = Literals([
16466
16463
  "present_outcome",
@@ -16549,7 +16546,7 @@ var VerifiedIdentity = Struct({
16549
16546
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
16550
16547
  var Verification = Struct({ verified: Literal(true) });
16551
16548
  var Exposure = Literals(["webhook", "host"]);
16552
- var RequiredChecks = Tuple([Literal("access")]);
16549
+ var RequiredChecks = Tuple2([Literal("access")]);
16553
16550
  var Message = Struct({
16554
16551
  content: Content,
16555
16552
  conversation: Destination,
@@ -16946,7 +16943,7 @@ var validateDefinition = (definition, providerId, methods) => {
16946
16943
  }
16947
16944
  };
16948
16945
 
16949
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
16946
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
16950
16947
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
16951
16948
  const seen = /* @__PURE__ */ new Set;
16952
16949
  for (const method of methods) {
@@ -16959,7 +16956,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
16959
16956
  }
16960
16957
  };
16961
16958
 
16962
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
16959
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
16963
16960
  var walkCapabilities = (provider, select) => {
16964
16961
  const entries = [];
16965
16962
  const visit = (owner, prefix) => {
@@ -16978,7 +16975,7 @@ var walkCapabilities = (provider, select) => {
16978
16975
  return entries;
16979
16976
  };
16980
16977
 
16981
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
16978
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
16982
16979
  var missingDeclaration = (kind, localId, pluginId) => {
16983
16980
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
16984
16981
  };
@@ -17023,7 +17020,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17023
17020
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17024
17021
  });
17025
17022
 
17026
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17023
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17027
17024
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17028
17025
  TypeId: () => TypeId33,
17029
17026
  add: () => add5,
@@ -17031,7 +17028,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17031
17028
  isGitRequest: () => isGitRequest,
17032
17029
  isPlugin: () => isPlugin,
17033
17030
  make: () => make6,
17034
- provide: () => provide6,
17031
+ provide: () => provide4,
17035
17032
  toLayer: () => toLayer2,
17036
17033
  withAction: () => withAction2,
17037
17034
  withAgentChannel: () => withAgentChannel,
@@ -17106,7 +17103,7 @@ var make6 = (identifier) => makePlugin({
17106
17103
  iconUrl: undefined,
17107
17104
  iconUrlDark: undefined,
17108
17105
  identifier,
17109
- layer: empty9,
17106
+ layer: empty8,
17110
17107
  name: undefined,
17111
17108
  sandboxAccess: undefined,
17112
17109
  triggers: []
@@ -17156,7 +17153,7 @@ var withAgentChannel = (channel) => (plugin) => {
17156
17153
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17157
17154
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17158
17155
  };
17159
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17156
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17160
17157
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17161
17158
  action: (name, handler) => makeHandlers({
17162
17159
  ...actions,
@@ -17194,7 +17191,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17194
17191
  return yield* toHandlers(plugin, handlers);
17195
17192
  }));
17196
17193
 
17197
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17194
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17198
17195
  var ConnectionContext = Struct({
17199
17196
  actor: optionalKey(Union([Struct({
17200
17197
  kind: Literal("user"),
@@ -17232,7 +17229,7 @@ var AccessInput = Struct({
17232
17229
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17233
17230
  };
17234
17231
  var fail11 = (code) => new ChannelError({ code });
17235
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17232
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17236
17233
  var AssetResultJson = Json.check(makeFilter2((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17237
17234
  var Json3 = Json.check(makeFilter2((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17238
17235
  var strict = { onExcessProperty: "error" };
@@ -17248,7 +17245,7 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17248
17245
  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({
17249
17246
  code: "provider_failure",
17250
17247
  providerCode: checked.code
17251
- }))))), catchCause((cause) => {
17248
+ }))))), catchCause2((cause) => {
17252
17249
  if (hasInterrupts(cause))
17253
17250
  return interrupt;
17254
17251
  const error = findErrorOption2(cause);
@@ -17478,7 +17475,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17478
17475
  });
17479
17476
  }));
17480
17477
 
17481
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17478
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17482
17479
  var TypeId34 = "@dual-os/sdk/AiProvider";
17483
17480
  var RuntimeConfig = Struct({
17484
17481
  apiKey: optional(String3),
@@ -17536,7 +17533,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17536
17533
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17537
17534
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17538
17535
 
17539
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17536
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17540
17537
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17541
17538
  action: node,
17542
17539
  actionId: canonicalId,
@@ -17557,7 +17554,7 @@ var resolveAction = (installations, actionId, version) => {
17557
17554
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17558
17555
  };
17559
17556
 
17560
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17557
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17561
17558
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17562
17559
  authMethods: installation.plugin.authMethods,
17563
17560
  localId: walked.localId,
@@ -17578,7 +17575,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17578
17575
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17579
17576
  };
17580
17577
 
17581
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17578
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17582
17579
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17583
17580
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17584
17581
  var authMethodMetadataJson = (method) => {
@@ -17737,7 +17734,7 @@ var materializeResolvedRegistry = (input) => {
17737
17734
  };
17738
17735
  };
17739
17736
 
17740
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17737
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17741
17738
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17742
17739
  };
17743
17740
  var materializePlugin = (plugin, options) => ({
@@ -17756,7 +17753,7 @@ var materializePlugin = (plugin, options) => ({
17756
17753
  }).providers
17757
17754
  });
17758
17755
 
17759
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17756
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17760
17757
  var FieldIssue = class extends Class4("FieldIssue")({
17761
17758
  message: String3,
17762
17759
  path: String3
@@ -17829,7 +17826,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
17829
17826
  fields: schemaErrorFields(error)
17830
17827
  }))));
17831
17828
 
17832
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17829
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17833
17830
  var install = (plugin, version) => ({
17834
17831
  plugin,
17835
17832
  version
@@ -18033,7 +18030,7 @@ var toLayer = (app) => {
18033
18030
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18034
18031
  };
18035
18032
 
18036
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18033
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18037
18034
  var File3 = TaggedStruct("File", {
18038
18035
  contentType: String3,
18039
18036
  id: NonEmptyString,
@@ -18055,7 +18052,7 @@ var write = fnUntraced(function* (file) {
18055
18052
  return yield* (yield* service3).write(file);
18056
18053
  });
18057
18054
 
18058
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18055
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18059
18056
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18060
18057
  cause: optionalKey(Redacted(Defect())),
18061
18058
  message: String3
@@ -18113,7 +18110,7 @@ var ReservedTokenHeaders = fromIterable4([
18113
18110
  ]);
18114
18111
  var TokenHeaders = Record(String3, String3.check(isPattern(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter2((headers) => {
18115
18112
  const names = map3(keys(headers), toLowerCase);
18116
- return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has5(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18113
+ return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has4(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18117
18114
  }, { message: "Invalid provider token headers" }));
18118
18115
  Struct({
18119
18116
  authorizationParams: Record(String3, String3),
@@ -18471,7 +18468,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18471
18468
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18472
18469
  }));
18473
18470
 
18474
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18471
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18475
18472
  var Identity = Struct({
18476
18473
  artifactDigest: String3.check(isPattern(/^[a-f0-9]{128}$/u)),
18477
18474
  invocationId: NonEmptyString,
@@ -18811,7 +18808,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18811
18808
  })));
18812
18809
  });
18813
18810
 
18814
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18811
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18815
18812
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
18816
18813
  category: Literals([
18817
18814
  "transport",
@@ -18827,49 +18824,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
18827
18824
  var maxPayloadBytes = 1048576;
18828
18825
  var maxMetadataBytes = 67108864;
18829
18826
  var maxChannelResultBytes = 16777216;
18830
- function ipcMessages(channel) {
18831
- return callback2((queue) => {
18832
- const message = (value) => {
18833
- offerUnsafe(queue, value);
18834
- };
18835
- const disconnected = () => {
18836
- endUnsafe(queue);
18837
- };
18838
- const failed = (cause) => {
18839
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
18840
- category: "runner",
18841
- cause: make4(cause),
18842
- message: "Plugin IPC channel failed"
18843
- })));
18844
- };
18845
- return acquireRelease(sync(() => {
18846
- channel.on("message", message);
18847
- channel.on("disconnect", disconnected);
18848
- channel.on("error", failed);
18849
- }), () => sync(() => {
18850
- channel.removeListener("message", message);
18851
- channel.removeListener("disconnect", disconnected);
18852
- channel.removeListener("error", failed);
18853
- }));
18854
- });
18855
- }
18856
- function sendIpc(channel, value) {
18857
- return try_2({
18858
- try: () => {
18859
- if (!channel.connected || channel.send === undefined)
18860
- throw PluginExecutionError.make({
18861
- category: "runner",
18862
- message: "Plugin IPC channel is closed"
18863
- });
18864
- channel.send(value);
18865
- },
18866
- catch: (cause) => PluginExecutionError.make({
18867
- category: "runner",
18868
- cause: make4(cause),
18869
- message: "Cannot send plugin IPC message"
18870
- })
18871
- });
18872
- }
18873
18827
  var OAuthContinuation = Struct({
18874
18828
  expiresAt: DateFromString,
18875
18829
  pkceVerifier: NullOr(String3),
@@ -18937,8 +18891,6 @@ var ExecutionRequest = Union([
18937
18891
  ChannelSettingsRequest
18938
18892
  ]);
18939
18893
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
18940
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
18941
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
18942
18894
  function checkMessageSize(value, maximum) {
18943
18895
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
18944
18896
  return void_2;
@@ -18948,24 +18900,24 @@ function checkMessageSize(value, maximum) {
18948
18900
  }));
18949
18901
  }
18950
18902
  var encodeInput = fnUntraced(function* (input) {
18951
- const encoded = yield* encodeEffect(Input2)(input);
18903
+ const encoded = yield* encodeEffect(Request4)(input);
18952
18904
  yield* checkMessageSize(encoded, maxPayloadBytes);
18953
18905
  return encoded;
18954
18906
  });
18955
18907
  var decodeInput = fnUntraced(function* (input) {
18956
18908
  const json = yield* decodeUnknownEffect(Json)(input);
18957
18909
  yield* checkMessageSize(json, maxPayloadBytes);
18958
- return yield* decodeUnknownEffect(Input2)(json);
18910
+ return yield* decodeUnknownEffect(Request4)(json);
18959
18911
  });
18960
18912
  var encodeOutput = fnUntraced(function* (output, maximum) {
18961
- const encoded = yield* encodeEffect(Output)(output);
18913
+ const encoded = yield* encodeEffect(Response)(output);
18962
18914
  yield* checkMessageSize(encoded, maximum);
18963
18915
  return encoded;
18964
18916
  });
18965
18917
  var decodeOutput = fnUntraced(function* (output) {
18966
18918
  const json = yield* decodeUnknownEffect(Json)(output);
18967
18919
  yield* checkMessageSize(json, maxMetadataBytes);
18968
- return yield* decodeUnknownEffect(Output)(json);
18920
+ return yield* decodeUnknownEffect(Response)(json);
18969
18921
  });
18970
18922
  function responseLimit(request) {
18971
18923
  if ("_tag" in request && request._tag === "extract")
@@ -18997,7 +18949,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
18997
18949
  bytes: Buffer.alloc(maximum),
18998
18950
  size: 0
18999
18951
  };
19000
- yield* pipe(input, runForEach((chunk) => gen(function* () {
18952
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19001
18953
  if (output.size + chunk.byteLength > maximum)
19002
18954
  return yield* PluginExecutionError.make({
19003
18955
  category: "protocol",
@@ -19118,7 +19070,7 @@ var execute3 = fnUntraced(function* (request) {
19118
19070
  return yield* executeChannelSettings(request);
19119
19071
  });
19120
19072
 
19121
- 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, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match3, getOrThrow, empty, empty2, fromEntries, toEntries, has, get2, remove, map2, set, ensure, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains2, empty3, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupeWith, 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, currentTimeMillis, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, reduce2, 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, isRedacted, make4, value, empty4, empty5, InvalidValue, compose2, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Unknown, String3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, Union, Literals, NullOr, UndefinedOr, suspend2, decodeTo, withDecodingDefaultKey, tag, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, Int, Natural, NonEmptyString, Defect, fromJsonString, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, set2, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty6, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, layer, fromUnknown, value2, when, orElse2, empty7, HttpClientError, InvalidUrlError, makeWith, get4, post, patch, put, del, setMethod, setHeader, setHeaders, bearerToken, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, bodyFormDataRecord, schemaBodyJson, 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 };
19073
+ 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, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match3, getOrThrow, empty, fromEntries, toEntries, has, get2, remove, map2, set, ensure, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains2, empty2, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupeWith, 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, currentTimeMillis, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, reduce2, 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, isRedacted, make4, value, empty3, empty4, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Unknown, String3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, UndefinedOr, suspend2, decodeTo, withDecodingDefaultKey, tag, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, Int, Natural, NonEmptyString, Defect, fromJsonString, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, set2, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty5, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runFold, runHead, runDrain, mkString, layer, fromUnknown, value2, when, orElse2, empty6, HttpClientError, InvalidUrlError, makeWith, get4, post, patch, put, del, setMethod, setHeader, setHeaders, bearerToken, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, bodyFormDataRecord, schemaBodyJson, 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 };
19122
19074
 
19123
- //# debugId=DFBCE71A7728F2CF64756E2164756E21
19124
- //# sourceMappingURL=plugin-72zm9ftz.js.map
19075
+ //# debugId=62E837B5EE42D4FD64756E2164756E21
19076
+ //# sourceMappingURL=plugin-a6qpnp2x.js.map