@dual-os/elevenlabs-api 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -575,7 +575,7 @@ var byReferenceUnsafe = (obj) => {
575
575
  var make7 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
576
576
  var isStrictEquivalent = (x, y) => x === y;
577
577
  var strictEqual = () => isStrictEquivalent;
578
- function Tuple2(elements) {
578
+ function Tuple(elements) {
579
579
  return make7((self, that) => {
580
580
  if (self.length !== that.length) {
581
581
  return false;
@@ -1122,7 +1122,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1122
1122
  var causeAddInterrupts = (self, interrupts) => {
1123
1123
  const reasons = self.reasons.slice();
1124
1124
  for (const reason of interrupts.reasons) {
1125
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1125
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1126
1126
  reasons.push(reason);
1127
1127
  }
1128
1128
  }
@@ -1160,7 +1160,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1160
1160
  });
1161
1161
  var isFailReason = (self) => self._tag === "Fail";
1162
1162
  var isDieReason = (self) => self._tag === "Die";
1163
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1163
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1164
1164
  function defaultEvaluate(_fiber) {
1165
1165
  return exitDie(`Effect.evaluate: Not implemented`);
1166
1166
  }
@@ -1345,7 +1345,7 @@ var Done2 = (value) => {
1345
1345
  };
1346
1346
  };
1347
1347
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1348
- var done2 = (value) => {
1348
+ var done3 = (value) => {
1349
1349
  if (value === undefined)
1350
1350
  return doneVoid;
1351
1351
  return exitFail(Done2(value));
@@ -1366,7 +1366,7 @@ var SomeProto = /* @__PURE__ */ Object.defineProperty(/* @__PURE__ */ Object.ass
1366
1366
  _tag: "Some",
1367
1367
  _op: "Some",
1368
1368
  [symbol2](that) {
1369
- return isOption(that) && isSome2(that) && equals(this.value, that.value);
1369
+ return isOption(that) && isSome(that) && equals(this.value, that.value);
1370
1370
  },
1371
1371
  [symbol]() {
1372
1372
  return combine(hash(this._tag))(hash(this.value));
@@ -1409,7 +1409,7 @@ var NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Comm
1409
1409
  });
1410
1410
  var isOption = (input) => hasProperty(input, TypeId);
1411
1411
  var isNone2 = (fa) => fa._tag === "None";
1412
- var isSome2 = (fa) => fa._tag === "Some";
1412
+ var isSome = (fa) => fa._tag === "Some";
1413
1413
  var none2 = /* @__PURE__ */ Object.create(NoneProto);
1414
1414
  var SomeImpl = function(value) {
1415
1415
  this.value = value;
@@ -1514,7 +1514,7 @@ var none = () => none2;
1514
1514
  var some = some2;
1515
1515
  var isOption2 = isOption;
1516
1516
  var isNone = isNone2;
1517
- var isSome = isSome2;
1517
+ var isSome2 = isSome;
1518
1518
  var match = /* @__PURE__ */ dual(2, (self, {
1519
1519
  onNone,
1520
1520
  onSome
@@ -1666,7 +1666,7 @@ var normalizeNonEmpty = (n) => Math.max(1, normalize(n));
1666
1666
 
1667
1667
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1668
1668
  var make9 = (...elements) => elements;
1669
- var makeEquivalence2 = Tuple2;
1669
+ var makeEquivalence2 = Tuple;
1670
1670
 
1671
1671
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1672
1672
  var headUnsafe = (self) => {
@@ -1685,7 +1685,7 @@ var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
1685
1685
  return some(a);
1686
1686
  }
1687
1687
  } else {
1688
- if (isSome(o)) {
1688
+ if (isSome2(o)) {
1689
1689
  return o;
1690
1690
  }
1691
1691
  }
@@ -1706,7 +1706,6 @@ var constEmptyIterator = {
1706
1706
  };
1707
1707
  }
1708
1708
  };
1709
- var empty = () => constEmpty;
1710
1709
 
1711
1710
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Array.js
1712
1711
  var Array2 = globalThis.Array;
@@ -1815,7 +1814,7 @@ var hashBucketsAdd = (buckets, value) => {
1815
1814
  bucket.push(value);
1816
1815
  return true;
1817
1816
  };
1818
- var empty2 = () => [];
1817
+ var empty = () => [];
1819
1818
  var of = (a) => [a];
1820
1819
  var map3 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
1821
1820
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -1853,7 +1852,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
1853
1852
  return out;
1854
1853
  });
1855
1854
  var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable(self).reduce((b, a, i) => f(b, a, i), b));
1856
- var fromNullishOr2 = (a) => a == null ? empty2() : [a];
1855
+ var fromNullishOr2 = (a) => a == null ? empty() : [a];
1857
1856
  var every = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
1858
1857
  var some3 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
1859
1858
  var makeEquivalence3 = Array_;
@@ -2274,7 +2273,7 @@ var applyOverlays = (map, overlay) => {
2274
2273
  applyOverlays(map, overlay.parent);
2275
2274
  map.set(overlay.key, overlay.value);
2276
2275
  };
2277
- var flatten = (self) => {
2276
+ var flatten2 = (self) => {
2278
2277
  if (self._flat)
2279
2278
  return self._flat;
2280
2279
  if (!self.overlay)
@@ -2299,7 +2298,7 @@ var lookup = (self, key) => {
2299
2298
  if (value === undefined && !impl.base.has(key))
2300
2299
  return notFound;
2301
2300
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
2302
- impl.base = flatten(impl);
2301
+ impl.base = flatten2(impl);
2303
2302
  impl.overlay = undefined;
2304
2303
  impl.depth = 0;
2305
2304
  }
@@ -2311,7 +2310,7 @@ var makeUnsafe = (mapUnsafe, options) => {
2311
2310
  };
2312
2311
  var Proto = {
2313
2312
  get mapUnsafe() {
2314
- return flatten(this);
2313
+ return flatten2(this);
2315
2314
  },
2316
2315
  ...PipeInspectableProto,
2317
2316
  [TypeId4]: {
@@ -2346,7 +2345,7 @@ var Proto = {
2346
2345
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
2347
2346
  var isContext = (u) => hasProperty(u, TypeId4);
2348
2347
  var isReference = (u) => !!u[ReferenceTypeId];
2349
- var empty7 = () => emptyContext2;
2348
+ var empty6 = () => emptyContext2;
2350
2349
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
2351
2350
  var make11 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
2352
2351
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -2424,14 +2423,6 @@ var mergeAll2 = (...ctxs) => {
2424
2423
  var Reference = Service;
2425
2424
 
2426
2425
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2427
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2428
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2429
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2430
- const leftOut = left(input);
2431
- if (isFailure3(leftOut))
2432
- return leftOut;
2433
- return right(leftOut.success);
2434
- });
2435
2426
  var toOption = (self) => (input) => {
2436
2427
  const result = self(input);
2437
2428
  return isFailure3(result) ? none() : some(result.success);
@@ -2846,7 +2837,7 @@ class Interrupt extends ReasonBase {
2846
2837
  };
2847
2838
  }
2848
2839
  [symbol2](that) {
2849
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2840
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2850
2841
  }
2851
2842
  [symbol]() {
2852
2843
  return string(`${this._tag}:${this.fiberId}`);
@@ -2867,7 +2858,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2867
2858
  var hasDies = (self) => self.reasons.some(isDieReason);
2868
2859
  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;
2869
2860
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2870
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2861
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2871
2862
  var causeFilterInterruptors = (self) => {
2872
2863
  let interruptors;
2873
2864
  for (let i = 0;i < self.reasons.length; i++) {
@@ -2881,7 +2872,6 @@ var causeFilterInterruptors = (self) => {
2881
2872
  }
2882
2873
  return interruptors ? succeed(interruptors) : fail(self);
2883
2874
  };
2884
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
2885
2875
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2886
2876
  let hasFail = false;
2887
2877
  const failures = self.reasons.map((failure) => {
@@ -3192,7 +3182,7 @@ class FiberImpl {
3192
3182
  }
3193
3183
  this._stack.length = 0;
3194
3184
  this._children = undefined;
3195
- this.context = empty7();
3185
+ this.context = empty6();
3196
3186
  const cache = this.cache;
3197
3187
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3198
3188
  this.cache = {
@@ -3398,7 +3388,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3398
3388
  }));
3399
3389
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3400
3390
  const annotations = fiberStackAnnotations(parent);
3401
- let fiberArr = empty2();
3391
+ let fiberArr = empty();
3402
3392
  for (const fiber of fibers) {
3403
3393
  fiber.interruptUnsafe(parent.id, annotations);
3404
3394
  fiberArr.push(fiber);
@@ -3754,7 +3744,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3754
3744
  if (done)
3755
3745
  break;
3756
3746
  const index = i++;
3757
- const fiber = forkUnsafe(parent, effect, true, true, false);
3747
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3758
3748
  fibers.add(fiber);
3759
3749
  fiber.addObserver((exit) => {
3760
3750
  fibers.delete(fiber);
@@ -3781,7 +3771,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3781
3771
  }
3782
3772
  return flatMap5(self, f);
3783
3773
  });
3784
- var flatten2 = (self) => flatMap5(self, identity);
3774
+ var flatten3 = (self) => flatMap5(self, identity);
3785
3775
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3786
3776
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3787
3777
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3857,7 +3847,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3857
3847
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3858
3848
  step: constVoid
3859
3849
  }));
3860
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3850
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3861
3851
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3862
3852
  op: "OnFailure",
3863
3853
  [evaluate]: evaluateCont
@@ -3867,19 +3857,18 @@ var OnFailureImpl = function(self, f) {
3867
3857
  this[contE] = f;
3868
3858
  };
3869
3859
  OnFailureImpl.prototype = OnFailureProto;
3870
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3860
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3871
3861
  if (!predicate(cause)) {
3872
3862
  return failCause2(cause);
3873
3863
  }
3874
3864
  return f(cause);
3875
3865
  }));
3876
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3866
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3877
3867
  const eb = filter(cause);
3878
3868
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
3879
3869
  }));
3880
3870
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
3881
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
3882
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3871
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3883
3872
  const result = filter(cause);
3884
3873
  if (isFailure3(result)) {
3885
3874
  return failCause2(cause);
@@ -3887,7 +3876,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3887
3876
  return andThen2(f(result.success, cause), failCause2(cause));
3888
3877
  }));
3889
3878
  var tapError3 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
3890
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3879
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
3891
3880
  const error = findRecoverableError(cause);
3892
3881
  if (isFailure3(error))
3893
3882
  return failCause2(error.failure);
@@ -3906,7 +3895,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
3906
3895
  return f(reason, e);
3907
3896
  return orElse ? orElse(reason, e) : fail8(e);
3908
3897
  }));
3909
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
3898
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
3910
3899
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
3911
3900
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
3912
3901
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4055,7 +4044,7 @@ var runFinalizer = (finalizer, exit_) => {
4055
4044
  return exitDie(defect);
4056
4045
  }
4057
4046
  };
4058
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4047
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4059
4048
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4060
4049
  let exits = [];
4061
4050
  const fibers = [];
@@ -4066,7 +4055,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4066
4055
  if (self.strategy === "sequential") {
4067
4056
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4068
4057
  } else if (key !== parent) {
4069
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4058
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4070
4059
  }
4071
4060
  }
4072
4061
  if (fibers.length > 0) {
@@ -4074,7 +4063,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4074
4063
  }
4075
4064
  return yield* exitAsVoidAll(exits);
4076
4065
  });
4077
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4078
4066
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4079
4067
  const child = makeScope(finalizerStrategy, scope);
4080
4068
  if (scope.state._tag === "Closed") {
@@ -4138,6 +4126,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4138
4126
  var constScopeEmpty = {
4139
4127
  _tag: "Empty"
4140
4128
  };
4129
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4141
4130
  var scope2 = scopeTag;
4142
4131
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4143
4132
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4441,7 +4430,7 @@ var iterateConcurrentImpl = (options) => {
4441
4430
  });
4442
4431
  } else {
4443
4432
  effect = undefined;
4444
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4433
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4445
4434
  if (fiber._exit) {
4446
4435
  terminal = step(state, item, fiber._exit, index);
4447
4436
  if (terminal)
@@ -4522,9 +4511,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4522
4511
  });
4523
4512
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4524
4513
  interruptChildrenPatch();
4525
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4514
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4526
4515
  }));
4527
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4516
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4528
4517
  const parentRuntime = parent;
4529
4518
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4530
4519
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4542,7 +4531,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4542
4531
  };
4543
4532
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4544
4533
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4545
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4534
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4546
4535
  if (!fiber._exit) {
4547
4536
  if (scope.state._tag !== "Closed") {
4548
4537
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4587,8 +4576,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4587
4576
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4588
4577
  return self;
4589
4578
  });
4590
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4591
- var runPromiseExitWith = (context) => {
4579
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty6());
4580
+ var runCallbackWith2 = (context) => {
4581
+ const runFork = runForkWith2(context);
4582
+ return (effect, options) => {
4583
+ const fiber = runFork(effect, options);
4584
+ if (options?.onExit) {
4585
+ fiber.addObserver(options.onExit);
4586
+ }
4587
+ return (interruptor) => {
4588
+ return fiber.interruptUnsafe(interruptor);
4589
+ };
4590
+ };
4591
+ };
4592
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty6());
4593
+ var runPromiseExitWith2 = (context) => {
4592
4594
  const runFork = runForkWith2(context);
4593
4595
  return (effect, options) => {
4594
4596
  const fiber = runFork(effect, options);
@@ -4597,8 +4599,9 @@ var runPromiseExitWith = (context) => {
4597
4599
  });
4598
4600
  };
4599
4601
  };
4600
- var runPromiseWith = (context) => {
4601
- const runPromiseExit = runPromiseExitWith(context);
4602
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty6());
4603
+ var runPromiseWith2 = (context) => {
4604
+ const runPromiseExit = runPromiseExitWith2(context);
4602
4605
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4603
4606
  if (exit._tag === "Failure") {
4604
4607
  throw causeSquash(exit.cause);
@@ -4606,8 +4609,8 @@ var runPromiseWith = (context) => {
4606
4609
  return exit.value;
4607
4610
  });
4608
4611
  };
4609
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty7());
4610
- var runSyncExitWith = (context) => {
4612
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty6());
4613
+ var runSyncExitWith2 = (context) => {
4611
4614
  const runFork = runForkWith2(context);
4612
4615
  return (effect) => {
4613
4616
  if (effectIsExit(effect))
@@ -4620,9 +4623,9 @@ var runSyncExitWith = (context) => {
4620
4623
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4621
4624
  };
4622
4625
  };
4623
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty7());
4624
- var runSyncWith = (context) => {
4625
- const runSyncExit = runSyncExitWith(context);
4626
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty6());
4627
+ var runSyncWith2 = (context) => {
4628
+ const runSyncExit = runSyncExitWith2(context);
4626
4629
  return (effect) => {
4627
4630
  const exit = runSyncExit(effect);
4628
4631
  if (exit._tag === "Failure")
@@ -4630,7 +4633,7 @@ var runSyncWith = (context) => {
4630
4633
  return exit.value;
4631
4634
  };
4632
4635
  };
4633
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty7());
4636
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty6());
4634
4637
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4635
4638
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4636
4639
 
@@ -4752,7 +4755,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4752
4755
  span = noopSpan({
4753
4756
  name,
4754
4757
  parent,
4755
- annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4758
+ annotations: add(options?.annotations ?? empty6(), DisablePropagation, true)
4756
4759
  });
4757
4760
  } else {
4758
4761
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4765,12 +4768,12 @@ var makeSpanUnsafe = (fiber, name, options) => {
4765
4768
  span = tracer.span({
4766
4769
  name,
4767
4770
  parent,
4768
- annotations: options?.annotations ?? empty7(),
4771
+ annotations: options?.annotations ?? empty6(),
4769
4772
  links,
4770
4773
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4771
4774
  kind: options?.kind ?? "internal",
4772
4775
  root: options?.root ?? false,
4773
- sampled: options?.sampled ?? (isSome(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4776
+ sampled: options?.sampled ?? (isSome2(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4774
4777
  });
4775
4778
  for (const key in annotationsFromEnv) {
4776
4779
  span.attribute(key, annotationsFromEnv[key]);
@@ -5166,7 +5169,6 @@ var DeferredImpl = function() {
5166
5169
  };
5167
5170
  DeferredImpl.prototype = DeferredProto;
5168
5171
  var makeUnsafe2 = () => new DeferredImpl;
5169
- var make = () => sync2(() => makeUnsafe2());
5170
5172
  var _await = (self) => callback3((resume) => {
5171
5173
  if (self.effect)
5172
5174
  return resume(self.effect);
@@ -5182,8 +5184,8 @@ var _await = (self) => callback3((resume) => {
5182
5184
  });
5183
5185
  });
5184
5186
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5185
- var done3 = completeWith;
5186
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5187
+ var done2 = completeWith;
5188
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5187
5189
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5188
5190
  var isDoneUnsafe = (self) => self.effect !== undefined;
5189
5191
  var doneUnsafe = (self, effect) => {
@@ -5199,19 +5201,18 @@ var doneUnsafe = (self, effect) => {
5199
5201
  }
5200
5202
  return true;
5201
5203
  };
5202
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5203
5204
 
5204
5205
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5205
5206
  var TracerTimingEnabled2 = TracerTimingEnabled;
5206
5207
 
5207
5208
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5208
5209
  var Scope = scopeTag;
5210
+ var make = scopeMake;
5209
5211
  var makeUnsafe3 = scopeMakeUnsafe;
5210
- var provide3 = provideScope;
5212
+ var provide2 = provideScope;
5211
5213
  var addFinalizerExit = scopeAddFinalizerExit;
5212
5214
  var addFinalizer = scopeAddFinalizer;
5213
- var fork = scopeFork;
5214
- var forkUnsafe2 = scopeForkUnsafe;
5215
+ var forkUnsafe = scopeForkUnsafe;
5215
5216
  var close = scopeClose;
5216
5217
 
5217
5218
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5254,7 +5255,7 @@ var fromBuildUnsafe = (build) => {
5254
5255
  return self;
5255
5256
  };
5256
5257
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5257
- const layerScope = forkUnsafe2(scope);
5258
+ const layerScope = forkUnsafe(scope);
5258
5259
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5259
5260
  });
5260
5261
  var fromBuildMemo = (build) => {
@@ -5316,7 +5317,7 @@ var succeed3 = function() {
5316
5317
  return succeedContext(make11(arguments[0], arguments[1]));
5317
5318
  };
5318
5319
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5319
- var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5320
+ var empty7 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty6());
5320
5321
  var effect = function() {
5321
5322
  if (arguments.length === 1) {
5322
5323
  return (effect) => effectImpl(arguments[0], effect);
@@ -5324,10 +5325,10 @@ var effect = function() {
5324
5325
  return effectImpl(arguments[0], arguments[1]);
5325
5326
  };
5326
5327
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make11(service, value)));
5327
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5328
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5328
5329
  var mergeAllEffect = (layers, memoMap, scope) => {
5329
- const parentScope = forkUnsafe2(scope, "parallel");
5330
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5330
+ const parentScope = forkUnsafe(scope, "parallel");
5331
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5331
5332
  concurrency: layers.length
5332
5333
  }).pipe(map6((context) => mergeAll2(...context)));
5333
5334
  };
@@ -5339,19 +5340,16 @@ var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, tha
5339
5340
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5340
5341
  var isCause2 = isCause;
5341
5342
  var isFailReason2 = isFailReason;
5342
- var isInterruptReason = isInterruptReason2;
5343
5343
  var fromReasons = causeFromReasons;
5344
5344
  var fail2 = causeFail;
5345
5345
  var die3 = causeDie;
5346
- var hasInterruptsOnly = hasInterruptsOnly2;
5347
5346
  var map7 = causeMap;
5348
5347
  var squash = causeSquash;
5349
5348
  var findErrorOption2 = findErrorOption;
5350
5349
  var hasInterrupts = hasInterrupts2;
5351
- var filterInterruptors = causeFilterInterruptors;
5352
5350
  var isDone3 = isDone2;
5353
5351
  var Done = Done2;
5354
- var done = done2;
5352
+ var done = done3;
5355
5353
  var IllegalArgumentError2 = IllegalArgumentError;
5356
5354
  var UnknownError = UnknownError2;
5357
5355
 
@@ -5784,10 +5782,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5784
5782
  }
5785
5783
  }));
5786
5784
 
5787
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5788
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5789
- 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));
5790
-
5791
5785
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5792
5786
  var isEffect = isEffect2;
5793
5787
  var all = all3;
@@ -5815,7 +5809,7 @@ var withFiber = withFiber2;
5815
5809
  var fromResult2 = fromResult;
5816
5810
  var fromOption2 = fromOption4;
5817
5811
  var flatMap3 = flatMap5;
5818
- var flatten3 = flatten2;
5812
+ var flatten = flatten3;
5819
5813
  var andThen = andThen2;
5820
5814
  var tap = tap2;
5821
5815
  var result = result2;
@@ -5829,13 +5823,12 @@ var zipWith = zipWith3;
5829
5823
  var catch_ = catch_2;
5830
5824
  var catchTag = catchTag2;
5831
5825
  var catchReason = catchReason2;
5832
- var catchCause = catchCause2;
5826
+ var catchCause2 = catchCause;
5833
5827
  var catchIf = catchIf2;
5834
5828
  var catchCauseIf = catchCauseIf2;
5835
5829
  var mapError = mapError3;
5836
5830
  var orDie = orDie2;
5837
5831
  var tapError = tapError3;
5838
- var tapCause = tapCause2;
5839
5832
  var ignore = ignore2;
5840
5833
  var ignoreCause = ignoreCause2;
5841
5834
  var orElseSucceed2 = orElseSucceed;
@@ -5845,7 +5838,6 @@ var matchCauseEffect2 = matchCauseEffect;
5845
5838
  var matchEffect = matchEffect2;
5846
5839
  var context = context2;
5847
5840
  var contextWith2 = contextWith;
5848
- var provide2 = provide4;
5849
5841
  var provideContext = provideContext2;
5850
5842
  var serviceOption = serviceOption2;
5851
5843
  var updateContext2 = updateContext;
@@ -5872,13 +5864,19 @@ var forkIn = forkIn2;
5872
5864
  var forkScoped = forkScoped2;
5873
5865
  var runFork = runFork2;
5874
5866
  var runForkWith = runForkWith2;
5875
- var runPromise2 = runPromise;
5876
- var runSync2 = runSync;
5877
- var runSyncExit2 = runSyncExit;
5867
+ var runCallbackWith = runCallbackWith2;
5868
+ var runCallback = runCallback2;
5869
+ var runPromise = runPromise2;
5870
+ var runPromiseWith = runPromiseWith2;
5871
+ var runPromiseExit = runPromiseExit2;
5872
+ var runPromiseExitWith = runPromiseExitWith2;
5873
+ var runSync = runSync2;
5874
+ var runSyncWith = runSyncWith2;
5875
+ var runSyncExit = runSyncExit2;
5876
+ var runSyncExitWith = runSyncExitWith2;
5878
5877
  var fnUntraced = fnUntraced2;
5879
5878
  var fn = fn2;
5880
5879
  var clockWith = clockWith2;
5881
- var logError = /* @__PURE__ */ logWithLevel("Error");
5882
5880
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
5883
5881
  let synchronous = true;
5884
5882
  let pending;
@@ -6505,12 +6503,12 @@ class HashMapImpl {
6505
6503
  }
6506
6504
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6507
6505
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6508
- var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6506
+ var empty8 = () => new HashMapImpl(false, 0, emptyNode, 0);
6509
6507
  var get6 = /* @__PURE__ */ dual(2, (self, key) => {
6510
6508
  const impl = self;
6511
6509
  return impl._root.get(0, hash(key), key);
6512
6510
  });
6513
- var has4 = /* @__PURE__ */ dual(2, (self, key) => {
6511
+ var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6514
6512
  const impl = self;
6515
6513
  return impl._root.has(0, hash(key), key);
6516
6514
  });
@@ -6547,7 +6545,7 @@ var HashSetProto = {
6547
6545
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6548
6546
  },
6549
6547
  [symbol2](that) {
6550
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has5(that, value));
6548
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6551
6549
  },
6552
6550
  [Symbol.iterator]() {
6553
6551
  return keys2(keyMap(this));
@@ -6577,13 +6575,13 @@ var makeImpl2 = (keyMap) => {
6577
6575
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6578
6576
  var keyMap = (self) => self.keyMap;
6579
6577
  var fromIterable4 = (values) => {
6580
- let map = empty9();
6578
+ let map = empty8();
6581
6579
  for (const value of values) {
6582
6580
  map = set2(map, value, true);
6583
6581
  }
6584
6582
  return makeImpl2(map);
6585
6583
  };
6586
- var has5 = (self, value) => has4(keyMap(self), value);
6584
+ var has4 = (self, value) => has3(keyMap(self), value);
6587
6585
  var size2 = (self) => size(keyMap(self));
6588
6586
  var every2 = (self, predicate) => {
6589
6587
  for (const value of self) {
@@ -6596,7 +6594,7 @@ var every2 = (self, predicate) => {
6596
6594
 
6597
6595
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6598
6596
  var fromIterable2 = fromIterable4;
6599
- var has3 = /* @__PURE__ */ dual(2, has5);
6597
+ var has2 = /* @__PURE__ */ dual(2, has4);
6600
6598
  var size3 = size2;
6601
6599
 
6602
6600
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/encoding/Base64.js
@@ -7036,10 +7034,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7036
7034
  });
7037
7035
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7038
7036
  var Equivalence3 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
7039
- var empty3 = /* @__PURE__ */ Object.create(Proto5);
7037
+ var empty2 = /* @__PURE__ */ Object.create(Proto5);
7040
7038
  var fromInput = (input) => {
7041
7039
  if (input === undefined) {
7042
- return empty3;
7040
+ return empty2;
7043
7041
  } else if (Symbol.iterator in input) {
7044
7042
  const out = Object.create(Proto5);
7045
7043
  for (const [k, v] of input) {
@@ -7200,7 +7198,7 @@ var fromInputNested = (input) => {
7200
7198
  var coerce = (value) => isRedacted(value) ? value : String(value);
7201
7199
  var Equivalence4 = /* @__PURE__ */ make7((a, b) => arrayEquivalence(a.params, b.params));
7202
7200
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7203
- var empty4 = /* @__PURE__ */ make16([]);
7201
+ var empty3 = /* @__PURE__ */ make16([]);
7204
7202
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7205
7203
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7206
7204
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7269,7 +7267,7 @@ var decodeQueryKey = (key) => {
7269
7267
  return key;
7270
7268
  }
7271
7269
  };
7272
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7270
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty6(), CurrentRedactedNames2);
7273
7271
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7274
7272
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7275
7273
  });
@@ -7619,7 +7617,7 @@ var runGetter = (self, input, options) => {
7619
7617
  };
7620
7618
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7621
7619
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7622
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7620
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7623
7621
  if (self._tag === "Passthrough")
7624
7622
  return other;
7625
7623
  if (other._tag === "Passthrough")
@@ -7671,7 +7669,7 @@ function forbidden(message) {
7671
7669
  const annotations = {
7672
7670
  message: message(oe)
7673
7671
  };
7674
- return isSome(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7672
+ return isSome2(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7675
7673
  });
7676
7674
  }
7677
7675
  var forbiddenEncoding = /* @__PURE__ */ forbidden(() => "Encoding is not supported");
@@ -8495,7 +8493,7 @@ var Objects = class extends ASTNodeImpl {
8495
8493
  }
8496
8494
  }
8497
8495
  } else if (parseIndexes) {
8498
- const keyPairs = empty2();
8496
+ const keyPairs = empty();
8499
8497
  for (let i = 0;i < indexCount; i++) {
8500
8498
  const index = indexes[i];
8501
8499
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9013,7 +9011,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9013
9011
  return fail3(new AnyOf(ast, [issue], input, options));
9014
9012
  }
9015
9013
  function catchSingleUnionCandidate(ast, result, input, options) {
9016
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9014
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9017
9015
  }
9018
9016
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9019
9017
  const state = {
@@ -9664,7 +9662,7 @@ function compileTransformationUnsafe(transformation) {
9664
9662
  }
9665
9663
  }
9666
9664
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9667
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9665
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9668
9666
  function makeConstructorParser(descriptor, compile) {
9669
9667
  const transform = compileTransformation(descriptor.link.transformation);
9670
9668
  let sourceParser;
@@ -9920,7 +9918,7 @@ function makeEffect(schema) {
9920
9918
  function makeOption(schema) {
9921
9919
  const parser = makeEffect(schema);
9922
9920
  return (input, options) => {
9923
- const exit = runSyncExit2(parser(input, options));
9921
+ const exit = runSyncExit(parser(input, options));
9924
9922
  if (isSuccess2(exit)) {
9925
9923
  return some(exit.value);
9926
9924
  }
@@ -9959,7 +9957,7 @@ function makeIs(ast) {
9959
9957
  }
9960
9958
  const parser = entry.parser;
9961
9959
  return (input) => {
9962
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
9960
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
9963
9961
  if (isSuccess2(exit))
9964
9962
  return true;
9965
9963
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10027,7 +10025,7 @@ function runWithCompiler(compiler, ast) {
10027
10025
  };
10028
10026
  }
10029
10027
  function asExit(parser) {
10030
- return (input, options) => runSyncExit2(parser(input, options));
10028
+ return (input, options) => runSyncExit(parser(input, options));
10031
10029
  }
10032
10030
  function asOption(parser) {
10033
10031
  const parserExit = asExit(parser);
@@ -10041,7 +10039,7 @@ function asOption(parser) {
10041
10039
  };
10042
10040
  }
10043
10041
  function runSync3(effect, message) {
10044
- const exit = runSyncExit2(effect);
10042
+ const exit = runSyncExit(effect);
10045
10043
  if (isSuccess2(exit)) {
10046
10044
  return exit.value;
10047
10045
  }
@@ -11705,7 +11703,7 @@ function fromIssueEffect(self) {
11705
11703
  if (effectIsExit(self)) {
11706
11704
  return fromIssueExit(self);
11707
11705
  }
11708
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11706
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11709
11707
  }
11710
11708
  function fromIssueExit(exit) {
11711
11709
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11728,7 +11726,7 @@ function getSchemaErrorOrThrow(cause, message) {
11728
11726
  return schemaError;
11729
11727
  }
11730
11728
  function runSchemaErrorSync(self) {
11731
- const exit = runSyncExit2(self);
11729
+ const exit = runSyncExit(self);
11732
11730
  if (isSuccess2(exit)) {
11733
11731
  return exit.value;
11734
11732
  }
@@ -11838,7 +11836,7 @@ function makeTuple(ast, elements) {
11838
11836
  }
11839
11837
  });
11840
11838
  }
11841
- function Tuple(elements) {
11839
+ function Tuple2(elements) {
11842
11840
  return makeTuple(tuple(elements), elements);
11843
11841
  }
11844
11842
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -12586,7 +12584,7 @@ function Redacted(value2, options) {
12586
12584
  decode: transform((e) => make4(e, {
12587
12585
  label
12588
12586
  })),
12589
- encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12587
+ encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12590
12588
  }),
12591
12589
  toEquivalence: ([value2]) => makeEquivalence4(value2)
12592
12590
  });
@@ -12759,7 +12757,6 @@ var Json = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json2, {
12759
12757
  var await_ = fiberAwait;
12760
12758
  var join2 = fiberJoin;
12761
12759
  var interrupt2 = fiberInterrupt;
12762
- var interruptAll = fiberInterruptAll;
12763
12760
  var getCurrent = getCurrentFiber;
12764
12761
  var runIn = fiberRunIn;
12765
12762
 
@@ -13297,13 +13294,13 @@ var ChannelProto = {
13297
13294
  };
13298
13295
  var fromTransform = (transform) => {
13299
13296
  const self = Object.create(ChannelProto);
13300
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13297
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13301
13298
  return self;
13302
13299
  };
13303
13300
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13304
13301
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13305
13302
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13306
- const closableScope = forkUnsafe2(scope);
13303
+ const closableScope = forkUnsafe(scope);
13307
13304
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13308
13305
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13309
13306
  return onError(pull, onCause);
@@ -13313,7 +13310,7 @@ var DefaultChunkSize = 4096;
13313
13310
  var asyncQueue = (scope, f, options) => make2({
13314
13311
  capacity: options?.bufferSize,
13315
13312
  strategy: options?.strategy
13316
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13313
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13317
13314
  startImmediately: true
13318
13315
  }))));
13319
13316
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13344,7 +13341,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13344
13341
  };
13345
13342
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13346
13343
  var succeed8 = (value) => fromEffect2(succeed4(value));
13347
- var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13344
+ var empty10 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13348
13345
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13349
13346
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13350
13347
  let done2 = false;
@@ -13418,13 +13415,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13418
13415
  return void_2;
13419
13416
  }), forever({
13420
13417
  disableYield: true
13421
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13418
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13422
13419
  } else {
13423
13420
  const effects = yield* bounded(concurrencyN - 2);
13424
13421
  yield* addFinalizer(forkedScope, shutdown(effects));
13425
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13422
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13426
13423
  disableYield: true
13427
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13424
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13428
13425
  let errorCause;
13429
13426
  const onExit = (exit) => {
13430
13427
  if (exit._tag === "Success")
@@ -13442,7 +13439,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13442
13439
  return offer(effects, join2(fiber));
13443
13440
  }), forever({
13444
13441
  disableYield: true
13445
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13442
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13446
13443
  }
13447
13444
  return take(queue);
13448
13445
  }));
@@ -13451,7 +13448,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13451
13448
  let childPull;
13452
13449
  let childScope;
13453
13450
  const makePull = flatMap3(pull, (value) => {
13454
- childScope ??= forkUnsafe2(scope);
13451
+ childScope ??= forkUnsafe(scope);
13455
13452
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13456
13453
  childPull = catchHalt(pull);
13457
13454
  return childPull;
@@ -13531,7 +13528,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13531
13528
  }
13532
13529
  }
13533
13530
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13534
- const childScope = forkUnsafe2(forkedScope);
13531
+ const childScope = forkUnsafe(forkedScope);
13535
13532
  const childPull = yield* toTransform(channel)(upstream, childScope);
13536
13533
  while (fibers.size >= concurrencyN) {
13537
13534
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13560,7 +13557,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13560
13557
  doneLatch.closeUnsafe();
13561
13558
  fibers.set(fiber, childScope);
13562
13559
  }
13563
- }).pipe(catchCause((cause) => {
13560
+ }).pipe(catchCause2((cause) => {
13564
13561
  const halt = filterDone(cause);
13565
13562
  if (isSuccess(halt)) {
13566
13563
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13596,8 +13593,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13596
13593
  onFailure: (cause) => onExit(side, cause),
13597
13594
  onSuccess: () => onExit(side, cause)
13598
13595
  }))), forkIn(forkedScope));
13599
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13600
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13596
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13597
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13601
13598
  return take(queue);
13602
13599
  })));
13603
13600
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13697,15 +13694,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13697
13694
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13698
13695
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13699
13696
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13700
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13697
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13701
13698
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13702
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13699
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13703
13700
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13704
13701
  let pull;
13705
13702
  return succeed4(suspend(() => {
13706
13703
  if (pull)
13707
13704
  return pull;
13708
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13705
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13709
13706
  }));
13710
13707
  });
13711
13708
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13721,7 +13718,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13721
13718
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13722
13719
  disableYield: true
13723
13720
  }));
13724
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13721
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13725
13722
  disableYield: true
13726
13723
  })));
13727
13724
  var mkUint8Array = (self) => map4(runFold(self, () => ({
@@ -13792,7 +13789,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
13792
13789
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
13793
13790
  var toChannel = (stream) => stream.channel;
13794
13791
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
13795
- var empty5 = /* @__PURE__ */ fromChannel(empty11);
13792
+ var empty4 = /* @__PURE__ */ fromChannel(empty10);
13796
13793
  var suspend3 = (stream) => {
13797
13794
  const suspended = fromChannel(suspend5(() => stream().channel));
13798
13795
  suspendedStreams.set(suspended, stream);
@@ -13801,7 +13798,7 @@ var suspend3 = (stream) => {
13801
13798
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
13802
13799
  var fail6 = (error) => fromChannel(fail10(error));
13803
13800
  var fromIterable3 = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
13804
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
13801
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty4;
13805
13802
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
13806
13803
  var paginate = (s, f) => fromPull(sync(() => {
13807
13804
  let state = s;
@@ -13862,7 +13859,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
13862
13859
  return acc;
13863
13860
  });
13864
13861
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
13865
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
13862
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
13866
13863
  let i = 0;
13867
13864
  return whileLoop2({
13868
13865
  while: () => i < arr.length,
@@ -13882,7 +13879,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13882
13879
  const onAbort = () => fiber.interruptUnsafe();
13883
13880
  return new ReadableStream({
13884
13881
  start(controller) {
13885
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13882
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13886
13883
  latch.closeUnsafe();
13887
13884
  for (let i = 0;i < chunk.length; i++) {
13888
13885
  controller.enqueue(chunk[i]);
@@ -13919,7 +13916,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13919
13916
  if (!fiber)
13920
13917
  return;
13921
13918
  cancelled = true;
13922
- return runPromise2(asVoid2(interrupt2(fiber)));
13919
+ return runPromise(asVoid2(interrupt2(fiber)));
13923
13920
  }
13924
13921
  }, options?.strategy);
13925
13922
  });
@@ -14297,7 +14294,7 @@ class Empty2 extends Proto8 {
14297
14294
  };
14298
14295
  }
14299
14296
  }
14300
- var empty6 = /* @__PURE__ */ new Empty2;
14297
+ var empty5 = /* @__PURE__ */ new Empty2;
14301
14298
  class Uint8Array3 extends Proto8 {
14302
14299
  _tag = "Uint8Array";
14303
14300
  contentType;
@@ -14467,8 +14464,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14467
14464
  self.body = body;
14468
14465
  return self;
14469
14466
  }
14470
- var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14471
- var make24 = (method) => (url, options) => modify(empty12, {
14467
+ var empty11 = /* @__PURE__ */ makeWith("GET", "", empty3, /* @__PURE__ */ none(), empty2, empty5);
14468
+ var make24 = (method) => (url, options) => modify(empty11, {
14472
14469
  method,
14473
14470
  url,
14474
14471
  ...options ?? undefined
@@ -14802,7 +14799,7 @@ class WebHttpClientResponse extends Class2 {
14802
14799
  cause
14803
14800
  })
14804
14801
  })
14805
- }).pipe(cached, runSync2);
14802
+ }).pipe(cached, runSync);
14806
14803
  }
14807
14804
  arrayBufferBody;
14808
14805
  get arrayBuffer() {
@@ -14818,7 +14815,7 @@ class WebHttpClientResponse extends Class2 {
14818
14815
  cause
14819
14816
  })
14820
14817
  })
14821
- }).pipe(cached, runSync2);
14818
+ }).pipe(cached, runSync);
14822
14819
  return this.arrayBufferBody;
14823
14820
  }
14824
14821
  get upgrade() {
@@ -15236,7 +15233,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15236
15233
  return send(undefined);
15237
15234
  });
15238
15235
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15239
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15236
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15240
15237
  var __defProp = Object.defineProperty;
15241
15238
  var __exportAll3 = (all, no_symbols) => {
15242
15239
  let target = {};
@@ -15250,7 +15247,7 @@ var __exportAll3 = (all, no_symbols) => {
15250
15247
  return target;
15251
15248
  };
15252
15249
 
15253
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15250
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15254
15251
  var DefinitionIdentifierKindSchema = Literals([
15255
15252
  "dual",
15256
15253
  "plugin",
@@ -15302,7 +15299,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15302
15299
  }) {
15303
15300
  };
15304
15301
 
15305
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15302
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15306
15303
  var identifierSchema = String3.check(isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15307
15304
  var isIdentifier = is(identifierSchema);
15308
15305
  var validateIdentifier = (kind, identifier) => {
@@ -15327,12 +15324,12 @@ var validateIdentifier = (kind, identifier) => {
15327
15324
  });
15328
15325
  };
15329
15326
 
15330
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15327
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15331
15328
  var PipeableProto = { pipe() {
15332
15329
  return pipeArguments(this, arguments);
15333
15330
  } };
15334
15331
 
15335
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15332
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15336
15333
  var Action_exports = /* @__PURE__ */ __exportAll3({
15337
15334
  ActionHandlerError: () => ActionHandlerError,
15338
15335
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15445,7 +15442,7 @@ var make26 = (identifier, options) => {
15445
15442
  };
15446
15443
  var isAction = (u) => hasProperty(u, TypeId29);
15447
15444
 
15448
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15445
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15449
15446
  var makeBinding = (options) => ({
15450
15447
  connectionId: options.connectionId,
15451
15448
  method: options.method,
@@ -15455,7 +15452,7 @@ var makeBinding = (options) => ({
15455
15452
  });
15456
15453
  var isBindingForMethod = (binding, method) => binding.method === method;
15457
15454
 
15458
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15455
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15459
15456
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15460
15457
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15461
15458
  Service: () => Service3
@@ -15463,7 +15460,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15463
15460
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15464
15461
  };
15465
15462
 
15466
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15463
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15467
15464
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15468
15465
  cause,
15469
15466
  methodIdentifier,
@@ -15625,7 +15622,7 @@ var test = (method, material, context) => {
15625
15622
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15626
15623
  };
15627
15624
 
15628
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15625
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15629
15626
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15630
15627
  AuthMethodHookError: () => AuthMethodHookError,
15631
15628
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15799,7 +15796,7 @@ var oauth2 = (identifier, options) => {
15799
15796
  };
15800
15797
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15801
15798
 
15802
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15799
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15803
15800
  var ToolFile_exports = /* @__PURE__ */ __exportAll3({
15804
15801
  Schema: () => Schema,
15805
15802
  ToolFile: () => ToolFile_exports
@@ -15814,7 +15811,7 @@ var Schema = TaggedStruct("ToolFile", {
15814
15811
  sizeBytes: Natural
15815
15812
  });
15816
15813
 
15817
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15814
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15818
15815
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
15819
15816
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
15820
15817
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -15835,13 +15832,13 @@ var findHandler = (context, providerId, handlerKey) => {
15835
15832
  return isMap(group) ? group.get(handlerKey) : undefined;
15836
15833
  };
15837
15834
 
15838
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15835
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15839
15836
  function decodeJson(schema, value) {
15840
15837
  return decodeUnknownEffect(toCodecJson2(schema))(value);
15841
15838
  }
15842
15839
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
15843
15840
 
15844
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15841
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15845
15842
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
15846
15843
  connectionId: String3,
15847
15844
  phase: optional(String3),
@@ -15937,7 +15934,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
15937
15934
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
15938
15935
  };
15939
15936
 
15940
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15937
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15941
15938
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
15942
15939
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
15943
15940
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -15997,7 +15994,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
15997
15994
  });
15998
15995
  });
15999
15996
 
16000
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15997
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
16001
15998
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
16002
15999
  description: error.message,
16003
16000
  triggerId
@@ -16132,7 +16129,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16132
16129
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16133
16130
  };
16134
16131
 
16135
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16132
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16136
16133
  var runPhase = (options) => gen(function* () {
16137
16134
  const { entry, phase, request } = options;
16138
16135
  const runtime = yield* options.hook;
@@ -16215,7 +16212,7 @@ var poll2 = (entry, request) => runPhase({
16215
16212
  phase: "poll",
16216
16213
  request
16217
16214
  });
16218
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16215
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16219
16216
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16220
16217
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16221
16218
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -16427,10 +16424,10 @@ var verify2 = verify;
16427
16424
  var parse3 = parse2;
16428
16425
  var poll3 = poll2;
16429
16426
 
16430
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16427
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16431
16428
  var appendElements = (existing, additions) => [...existing, ...additions];
16432
16429
 
16433
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16430
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16434
16431
  var partitionChildren = (children) => ({
16435
16432
  actions: children.filter(isAction),
16436
16433
  groups: children.filter(isGroup),
@@ -16470,7 +16467,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
16470
16467
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
16471
16468
  };
16472
16469
 
16473
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16470
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16474
16471
  var Group_exports = /* @__PURE__ */ __exportAll3({
16475
16472
  TypeId: () => TypeId32,
16476
16473
  add: () => add4,
@@ -16532,7 +16529,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
16532
16529
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
16533
16530
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
16534
16531
 
16535
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16532
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16536
16533
  var Key = NonEmptyString.check(isMaxLength(512), isPattern(/^[^\p{Cc}]+$/u));
16537
16534
  var OperationKind = Literals([
16538
16535
  "present_outcome",
@@ -16621,7 +16618,7 @@ var VerifiedIdentity = Struct({
16621
16618
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
16622
16619
  var Verification = Struct({ verified: Literal(true) });
16623
16620
  var Exposure = Literals(["webhook", "host"]);
16624
- var RequiredChecks = Tuple([Literal("access")]);
16621
+ var RequiredChecks = Tuple2([Literal("access")]);
16625
16622
  var Message = Struct({
16626
16623
  content: Content,
16627
16624
  conversation: Destination,
@@ -17018,7 +17015,7 @@ var validateDefinition = (definition, providerId, methods) => {
17018
17015
  }
17019
17016
  };
17020
17017
 
17021
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17018
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17022
17019
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17023
17020
  const seen = /* @__PURE__ */ new Set;
17024
17021
  for (const method of methods) {
@@ -17031,7 +17028,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17031
17028
  }
17032
17029
  };
17033
17030
 
17034
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17031
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17035
17032
  var walkCapabilities = (provider, select) => {
17036
17033
  const entries = [];
17037
17034
  const visit = (owner, prefix) => {
@@ -17050,7 +17047,7 @@ var walkCapabilities = (provider, select) => {
17050
17047
  return entries;
17051
17048
  };
17052
17049
 
17053
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17050
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17054
17051
  var missingDeclaration = (kind, localId, pluginId) => {
17055
17052
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17056
17053
  };
@@ -17095,7 +17092,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17095
17092
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17096
17093
  });
17097
17094
 
17098
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17095
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17099
17096
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17100
17097
  TypeId: () => TypeId33,
17101
17098
  add: () => add5,
@@ -17103,7 +17100,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17103
17100
  isGitRequest: () => isGitRequest,
17104
17101
  isPlugin: () => isPlugin,
17105
17102
  make: () => make6,
17106
- provide: () => provide6,
17103
+ provide: () => provide4,
17107
17104
  toLayer: () => toLayer2,
17108
17105
  withAction: () => withAction2,
17109
17106
  withAgentChannel: () => withAgentChannel,
@@ -17178,7 +17175,7 @@ var make6 = (identifier) => makePlugin({
17178
17175
  iconUrl: undefined,
17179
17176
  iconUrlDark: undefined,
17180
17177
  identifier,
17181
- layer: empty8,
17178
+ layer: empty7,
17182
17179
  name: undefined,
17183
17180
  sandboxAccess: undefined,
17184
17181
  triggers: []
@@ -17228,7 +17225,7 @@ var withAgentChannel = (channel) => (plugin) => {
17228
17225
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17229
17226
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17230
17227
  };
17231
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17228
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17232
17229
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17233
17230
  action: (name, handler) => makeHandlers({
17234
17231
  ...actions,
@@ -17266,7 +17263,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17266
17263
  return yield* toHandlers(plugin, handlers);
17267
17264
  }));
17268
17265
 
17269
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17266
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17270
17267
  var ConnectionContext = Struct({
17271
17268
  actor: optionalKey(Union([Struct({
17272
17269
  kind: Literal("user"),
@@ -17304,7 +17301,7 @@ var AccessInput = Struct({
17304
17301
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17305
17302
  };
17306
17303
  var fail11 = (code) => new ChannelError({ code });
17307
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17304
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17308
17305
  var AssetResultJson = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17309
17306
  var Json3 = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17310
17307
  var strict = { onExcessProperty: "error" };
@@ -17320,11 +17317,11 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17320
17317
  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({
17321
17318
  code: "provider_failure",
17322
17319
  providerCode: checked.code
17323
- }))))), catchCause((cause) => {
17320
+ }))))), catchCause2((cause) => {
17324
17321
  if (hasInterrupts(cause))
17325
17322
  return interrupt;
17326
17323
  const error = findErrorOption2(cause);
17327
- return isSome(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17324
+ return isSome2(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17328
17325
  }));
17329
17326
  var checkExtensions = fn("AgentChannelRuntime.checkExtensions")(function* (definition, extensions, code) {
17330
17327
  for (const [key, value] of Object.entries(extensions ?? {})) {
@@ -17550,7 +17547,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17550
17547
  });
17551
17548
  }));
17552
17549
 
17553
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17550
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17554
17551
  var TypeId34 = "@dual-os/sdk/AiProvider";
17555
17552
  var RuntimeConfig = Struct({
17556
17553
  apiKey: optional(String3),
@@ -17608,7 +17605,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17608
17605
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17609
17606
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17610
17607
 
17611
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17608
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17612
17609
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17613
17610
  action: node,
17614
17611
  actionId: canonicalId,
@@ -17629,7 +17626,7 @@ var resolveAction = (installations, actionId, version) => {
17629
17626
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17630
17627
  };
17631
17628
 
17632
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17629
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17633
17630
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17634
17631
  authMethods: installation.plugin.authMethods,
17635
17632
  localId: walked.localId,
@@ -17650,7 +17647,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17650
17647
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17651
17648
  };
17652
17649
 
17653
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17650
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17654
17651
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17655
17652
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17656
17653
  var authMethodMetadataJson = (method) => {
@@ -17809,7 +17806,7 @@ var materializeResolvedRegistry = (input) => {
17809
17806
  };
17810
17807
  };
17811
17808
 
17812
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17809
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17813
17810
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17814
17811
  };
17815
17812
  var materializePlugin = (plugin, options) => ({
@@ -17828,7 +17825,7 @@ var materializePlugin = (plugin, options) => ({
17828
17825
  }).providers
17829
17826
  });
17830
17827
 
17831
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17828
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17832
17829
  var FieldIssue = class extends Class4("FieldIssue")({
17833
17830
  message: String3,
17834
17831
  path: String3
@@ -17901,7 +17898,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
17901
17898
  fields: schemaErrorFields(error)
17902
17899
  }))));
17903
17900
 
17904
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17901
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17905
17902
  var install = (plugin, version) => ({
17906
17903
  plugin,
17907
17904
  version
@@ -18105,7 +18102,7 @@ var toLayer = (app) => {
18105
18102
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18106
18103
  };
18107
18104
 
18108
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18105
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18109
18106
  var File3 = TaggedStruct("File", {
18110
18107
  contentType: String3,
18111
18108
  id: NonEmptyString,
@@ -18127,7 +18124,7 @@ var write = fnUntraced(function* (file) {
18127
18124
  return yield* (yield* service3).write(file);
18128
18125
  });
18129
18126
 
18130
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18127
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18131
18128
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18132
18129
  cause: optionalKey(Redacted(Defect())),
18133
18130
  message: String3
@@ -18185,7 +18182,7 @@ var ReservedTokenHeaders = fromIterable2([
18185
18182
  ]);
18186
18183
  var TokenHeaders = Record(String3, String3.check(isPattern(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter((headers) => {
18187
18184
  const names = map3(keys(headers), toLowerCase);
18188
- return size3(fromIterable2(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has3(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18185
+ return size3(fromIterable2(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has2(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18189
18186
  }, { message: "Invalid provider token headers" }));
18190
18187
  Struct({
18191
18188
  authorizationParams: Record(String3, String3),
@@ -18543,7 +18540,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18543
18540
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18544
18541
  }));
18545
18542
 
18546
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18543
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18547
18544
  var Identity = Struct({
18548
18545
  artifactDigest: String3.check(isPattern(/^[a-f0-9]{128}$/u)),
18549
18546
  invocationId: NonEmptyString,
@@ -18883,7 +18880,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18883
18880
  })));
18884
18881
  });
18885
18882
 
18886
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18883
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18887
18884
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
18888
18885
  category: Literals([
18889
18886
  "transport",
@@ -18899,49 +18896,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
18899
18896
  var maxPayloadBytes = 1048576;
18900
18897
  var maxMetadataBytes = 67108864;
18901
18898
  var maxChannelResultBytes = 16777216;
18902
- function ipcMessages(channel) {
18903
- return callback2((queue) => {
18904
- const message = (value) => {
18905
- offerUnsafe(queue, value);
18906
- };
18907
- const disconnected = () => {
18908
- endUnsafe(queue);
18909
- };
18910
- const failed = (cause) => {
18911
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
18912
- category: "runner",
18913
- cause: make4(cause),
18914
- message: "Plugin IPC channel failed"
18915
- })));
18916
- };
18917
- return acquireRelease(sync(() => {
18918
- channel.on("message", message);
18919
- channel.on("disconnect", disconnected);
18920
- channel.on("error", failed);
18921
- }), () => sync(() => {
18922
- channel.removeListener("message", message);
18923
- channel.removeListener("disconnect", disconnected);
18924
- channel.removeListener("error", failed);
18925
- }));
18926
- });
18927
- }
18928
- function sendIpc(channel, value) {
18929
- return try_2({
18930
- try: () => {
18931
- if (!channel.connected || channel.send === undefined)
18932
- throw PluginExecutionError.make({
18933
- category: "runner",
18934
- message: "Plugin IPC channel is closed"
18935
- });
18936
- channel.send(value);
18937
- },
18938
- catch: (cause) => PluginExecutionError.make({
18939
- category: "runner",
18940
- cause: make4(cause),
18941
- message: "Cannot send plugin IPC message"
18942
- })
18943
- });
18944
- }
18945
18899
  var OAuthContinuation = Struct({
18946
18900
  expiresAt: DateFromString,
18947
18901
  pkceVerifier: NullOr(String3),
@@ -19009,8 +18963,6 @@ var ExecutionRequest = Union([
19009
18963
  ChannelSettingsRequest
19010
18964
  ]);
19011
18965
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
19012
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
19013
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
19014
18966
  function checkMessageSize(value, maximum) {
19015
18967
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
19016
18968
  return void_2;
@@ -19020,24 +18972,24 @@ function checkMessageSize(value, maximum) {
19020
18972
  }));
19021
18973
  }
19022
18974
  var encodeInput = fnUntraced(function* (input) {
19023
- const encoded = yield* encodeEffect(Input2)(input);
18975
+ const encoded = yield* encodeEffect(Request4)(input);
19024
18976
  yield* checkMessageSize(encoded, maxPayloadBytes);
19025
18977
  return encoded;
19026
18978
  });
19027
18979
  var decodeInput = fnUntraced(function* (input) {
19028
18980
  const json = yield* decodeUnknownEffect(Json)(input);
19029
18981
  yield* checkMessageSize(json, maxPayloadBytes);
19030
- return yield* decodeUnknownEffect(Input2)(json);
18982
+ return yield* decodeUnknownEffect(Request4)(json);
19031
18983
  });
19032
18984
  var encodeOutput = fnUntraced(function* (output, maximum) {
19033
- const encoded = yield* encodeEffect(Output)(output);
18985
+ const encoded = yield* encodeEffect(Response)(output);
19034
18986
  yield* checkMessageSize(encoded, maximum);
19035
18987
  return encoded;
19036
18988
  });
19037
18989
  var decodeOutput = fnUntraced(function* (output) {
19038
18990
  const json = yield* decodeUnknownEffect(Json)(output);
19039
18991
  yield* checkMessageSize(json, maxMetadataBytes);
19040
- return yield* decodeUnknownEffect(Output)(json);
18992
+ return yield* decodeUnknownEffect(Response)(json);
19041
18993
  });
19042
18994
  function responseLimit(request) {
19043
18995
  if ("_tag" in request && request._tag === "extract")
@@ -19069,7 +19021,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19069
19021
  bytes: Buffer.alloc(maximum),
19070
19022
  size: 0
19071
19023
  };
19072
- yield* pipe(input, runForEach((chunk) => gen(function* () {
19024
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19073
19025
  if (output.size + chunk.byteLength > maximum)
19074
19026
  return yield* PluginExecutionError.make({
19075
19027
  category: "protocol",
@@ -19190,7 +19142,7 @@ var execute3 = fnUntraced(function* (request) {
19190
19142
  return yield* executeChannelSettings(request);
19191
19143
  });
19192
19144
 
19193
- 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, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, exists, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, empty, fromEntries, toEntries, has, map2, fromIterable, ensure, append, isArray, isReadonlyArrayEmpty, isReadonlyArrayNonEmpty, get2, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty2, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupe, join, fromInputUnsafe, isFinite, millis, minutes, hours, 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, between, parse, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match3, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchCause, catchIf, catchCauseIf, mapError, orDie, tapError, tapCause, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provide2, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, fnUntraced, fn, clockWith, logError, effectify, await_, join2, interrupt2, interruptAll, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, fromIterable2, has3, isRedacted, make4, value, empty3, empty4, InvalidValue, compose2, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeUnknownEffect, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isBetween, Int, Natural, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty5, suspend3, fail6, fromIterable3, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError2, transduce, decodeText, splitLines, run, runCollect, runHead, runForEach, runDrain, mkString, layer, fromUnknown, value2, when, discriminatorsExhaustive, orElse2, empty6, HttpClientError, InvalidUrlError, makeWith, get4, post, patch, put, del, setMethod, setHeader, setHeaders, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_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 };
19145
+ 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, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, exists, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, fromEntries, toEntries, has, map2, fromIterable, ensure, append, isArray, isReadonlyArrayEmpty, isReadonlyArrayNonEmpty, get2, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, dedupe, join, fromInputUnsafe, isFinite, millis, minutes, hours, 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, between, parse, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match3, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, flatten, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchIf, catchCauseIf, mapError, orDie, tapError, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, fromIterable2, has2, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeUnknownEffect, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isBetween, Int, Natural, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable3, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError2, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, discriminatorsExhaustive, orElse2, empty5, HttpClientError, InvalidUrlError, makeWith, get4, post, patch, put, del, setMethod, setHeader, setHeaders, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_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 };
19194
19146
 
19195
- //# debugId=FBE5CC0E2C7FAB8164756E2164756E21
19196
- //# sourceMappingURL=plugin-edkff71p.js.map
19147
+ //# debugId=44C5B7636C6A819C64756E2164756E21
19148
+ //# sourceMappingURL=plugin-4r725dtm.js.map