@dual-os/box-api 6.0.3 → 6.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -575,7 +575,7 @@ var byReferenceUnsafe = (obj) => {
575
575
  var make7 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
576
576
  var isStrictEquivalent = (x, y) => x === y;
577
577
  var strictEqual = () => isStrictEquivalent;
578
- function Tuple2(elements) {
578
+ function Tuple(elements) {
579
579
  return make7((self, that) => {
580
580
  if (self.length !== that.length) {
581
581
  return false;
@@ -1122,7 +1122,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1122
1122
  var causeAddInterrupts = (self, interrupts) => {
1123
1123
  const reasons = self.reasons.slice();
1124
1124
  for (const reason of interrupts.reasons) {
1125
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1125
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1126
1126
  reasons.push(reason);
1127
1127
  }
1128
1128
  }
@@ -1160,7 +1160,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1160
1160
  });
1161
1161
  var isFailReason = (self) => self._tag === "Fail";
1162
1162
  var isDieReason = (self) => self._tag === "Die";
1163
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1163
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1164
1164
  function defaultEvaluate(_fiber) {
1165
1165
  return exitDie(`Effect.evaluate: Not implemented`);
1166
1166
  }
@@ -1345,7 +1345,7 @@ var Done2 = (value) => {
1345
1345
  };
1346
1346
  };
1347
1347
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1348
- var done2 = (value) => {
1348
+ var done3 = (value) => {
1349
1349
  if (value === undefined)
1350
1350
  return doneVoid;
1351
1351
  return exitFail(Done2(value));
@@ -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
@@ -1622,7 +1622,7 @@ var getOrThrow = /* @__PURE__ */ getOrThrowWith(identity);
1622
1622
 
1623
1623
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1624
1624
  var make9 = (...elements) => elements;
1625
- var makeEquivalence = Tuple2;
1625
+ var makeEquivalence = Tuple;
1626
1626
 
1627
1627
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1628
1628
  var headUnsafe = (self) => {
@@ -1641,7 +1641,7 @@ var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
1641
1641
  return some(a);
1642
1642
  }
1643
1643
  } else {
1644
- if (isSome(o)) {
1644
+ if (isSome2(o)) {
1645
1645
  return o;
1646
1646
  }
1647
1647
  }
@@ -1662,7 +1662,6 @@ var constEmptyIterator = {
1662
1662
  };
1663
1663
  }
1664
1664
  };
1665
- var empty = () => constEmpty;
1666
1665
 
1667
1666
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Record.js
1668
1667
  var isEmptyRecord = (self) => Object.keys(self).length === 0;
@@ -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_;
@@ -2273,7 +2272,7 @@ var applyOverlays = (map, overlay) => {
2273
2272
  applyOverlays(map, overlay.parent);
2274
2273
  map.set(overlay.key, overlay.value);
2275
2274
  };
2276
- var flatten = (self) => {
2275
+ var flatten2 = (self) => {
2277
2276
  if (self._flat)
2278
2277
  return self._flat;
2279
2278
  if (!self.overlay)
@@ -2298,7 +2297,7 @@ var lookup = (self, key) => {
2298
2297
  if (value === undefined && !impl.base.has(key))
2299
2298
  return notFound;
2300
2299
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
2301
- impl.base = flatten(impl);
2300
+ impl.base = flatten2(impl);
2302
2301
  impl.overlay = undefined;
2303
2302
  impl.depth = 0;
2304
2303
  }
@@ -2310,7 +2309,7 @@ var makeUnsafe = (mapUnsafe, options) => {
2310
2309
  };
2311
2310
  var Proto = {
2312
2311
  get mapUnsafe() {
2313
- return flatten(this);
2312
+ return flatten2(this);
2314
2313
  },
2315
2314
  ...PipeInspectableProto,
2316
2315
  [TypeId4]: {
@@ -2345,7 +2344,7 @@ var Proto = {
2345
2344
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
2346
2345
  var isContext = (u) => hasProperty(u, TypeId4);
2347
2346
  var isReference = (u) => !!u[ReferenceTypeId];
2348
- var empty7 = () => emptyContext2;
2347
+ var empty6 = () => emptyContext2;
2349
2348
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
2350
2349
  var make11 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
2351
2350
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -2423,14 +2422,6 @@ var mergeAll2 = (...ctxs) => {
2423
2422
  var Reference = Service;
2424
2423
 
2425
2424
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2426
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2427
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2428
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2429
- const leftOut = left(input);
2430
- if (isFailure3(leftOut))
2431
- return leftOut;
2432
- return right(leftOut.success);
2433
- });
2434
2425
  var toOption = (self) => (input) => {
2435
2426
  const result = self(input);
2436
2427
  return isFailure3(result) ? none() : some(result.success);
@@ -2845,7 +2836,7 @@ class Interrupt extends ReasonBase {
2845
2836
  };
2846
2837
  }
2847
2838
  [symbol2](that) {
2848
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2839
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2849
2840
  }
2850
2841
  [symbol]() {
2851
2842
  return string(`${this._tag}:${this.fiberId}`);
@@ -2866,7 +2857,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2866
2857
  var hasDies = (self) => self.reasons.some(isDieReason);
2867
2858
  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;
2868
2859
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2869
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2860
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2870
2861
  var causeFilterInterruptors = (self) => {
2871
2862
  let interruptors;
2872
2863
  for (let i = 0;i < self.reasons.length; i++) {
@@ -2880,7 +2871,6 @@ var causeFilterInterruptors = (self) => {
2880
2871
  }
2881
2872
  return interruptors ? succeed(interruptors) : fail(self);
2882
2873
  };
2883
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
2884
2874
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2885
2875
  let hasFail = false;
2886
2876
  const failures = self.reasons.map((failure) => {
@@ -3191,7 +3181,7 @@ class FiberImpl {
3191
3181
  }
3192
3182
  this._stack.length = 0;
3193
3183
  this._children = undefined;
3194
- this.context = empty7();
3184
+ this.context = empty6();
3195
3185
  const cache = this.cache;
3196
3186
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3197
3187
  this.cache = {
@@ -3397,7 +3387,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3397
3387
  }));
3398
3388
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3399
3389
  const annotations = fiberStackAnnotations(parent);
3400
- let fiberArr = empty2();
3390
+ let fiberArr = empty();
3401
3391
  for (const fiber of fibers) {
3402
3392
  fiber.interruptUnsafe(parent.id, annotations);
3403
3393
  fiberArr.push(fiber);
@@ -3753,7 +3743,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3753
3743
  if (done)
3754
3744
  break;
3755
3745
  const index = i++;
3756
- const fiber = forkUnsafe(parent, effect, true, true, false);
3746
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3757
3747
  fibers.add(fiber);
3758
3748
  fiber.addObserver((exit) => {
3759
3749
  fibers.delete(fiber);
@@ -3780,7 +3770,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3780
3770
  }
3781
3771
  return flatMap5(self, f);
3782
3772
  });
3783
- var flatten2 = (self) => flatMap5(self, identity);
3773
+ var flatten3 = (self) => flatMap5(self, identity);
3784
3774
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3785
3775
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3786
3776
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3856,7 +3846,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3856
3846
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3857
3847
  step: constVoid
3858
3848
  }));
3859
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3849
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3860
3850
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3861
3851
  op: "OnFailure",
3862
3852
  [evaluate]: evaluateCont
@@ -3866,19 +3856,18 @@ var OnFailureImpl = function(self, f) {
3866
3856
  this[contE] = f;
3867
3857
  };
3868
3858
  OnFailureImpl.prototype = OnFailureProto;
3869
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3859
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3870
3860
  if (!predicate(cause)) {
3871
3861
  return failCause2(cause);
3872
3862
  }
3873
3863
  return f(cause);
3874
3864
  }));
3875
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3865
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3876
3866
  const eb = filter(cause);
3877
3867
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
3878
3868
  }));
3879
3869
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
3880
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
3881
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3870
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3882
3871
  const result = filter(cause);
3883
3872
  if (isFailure3(result)) {
3884
3873
  return failCause2(cause);
@@ -3886,7 +3875,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3886
3875
  return andThen2(f(result.success, cause), failCause2(cause));
3887
3876
  }));
3888
3877
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
3889
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3878
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
3890
3879
  const error = findRecoverableError(cause);
3891
3880
  if (isFailure3(error))
3892
3881
  return failCause2(error.failure);
@@ -3905,7 +3894,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
3905
3894
  return f(reason, e);
3906
3895
  return orElse ? orElse(reason, e) : fail8(e);
3907
3896
  }));
3908
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
3897
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
3909
3898
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
3910
3899
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
3911
3900
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4054,7 +4043,7 @@ var runFinalizer = (finalizer, exit_) => {
4054
4043
  return exitDie(defect);
4055
4044
  }
4056
4045
  };
4057
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4046
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4058
4047
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4059
4048
  let exits = [];
4060
4049
  const fibers = [];
@@ -4065,7 +4054,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4065
4054
  if (self.strategy === "sequential") {
4066
4055
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4067
4056
  } else if (key !== parent) {
4068
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4057
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4069
4058
  }
4070
4059
  }
4071
4060
  if (fibers.length > 0) {
@@ -4073,7 +4062,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4073
4062
  }
4074
4063
  return yield* exitAsVoidAll(exits);
4075
4064
  });
4076
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4077
4065
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4078
4066
  const child = makeScope(finalizerStrategy, scope);
4079
4067
  if (scope.state._tag === "Closed") {
@@ -4137,6 +4125,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4137
4125
  var constScopeEmpty = {
4138
4126
  _tag: "Empty"
4139
4127
  };
4128
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4140
4129
  var scope2 = scopeTag;
4141
4130
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4142
4131
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4440,7 +4429,7 @@ var iterateConcurrentImpl = (options) => {
4440
4429
  });
4441
4430
  } else {
4442
4431
  effect = undefined;
4443
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4432
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4444
4433
  if (fiber._exit) {
4445
4434
  terminal = step(state, item, fiber._exit, index);
4446
4435
  if (terminal)
@@ -4521,9 +4510,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4521
4510
  });
4522
4511
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4523
4512
  interruptChildrenPatch();
4524
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4513
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4525
4514
  }));
4526
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4515
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4527
4516
  const parentRuntime = parent;
4528
4517
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4529
4518
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4541,7 +4530,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4541
4530
  };
4542
4531
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4543
4532
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4544
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4533
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4545
4534
  if (!fiber._exit) {
4546
4535
  if (scope.state._tag !== "Closed") {
4547
4536
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4586,8 +4575,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4586
4575
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4587
4576
  return self;
4588
4577
  });
4589
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4590
- var runPromiseExitWith = (context) => {
4578
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty6());
4579
+ var runCallbackWith2 = (context) => {
4580
+ const runFork = runForkWith2(context);
4581
+ return (effect, options) => {
4582
+ const fiber = runFork(effect, options);
4583
+ if (options?.onExit) {
4584
+ fiber.addObserver(options.onExit);
4585
+ }
4586
+ return (interruptor) => {
4587
+ return fiber.interruptUnsafe(interruptor);
4588
+ };
4589
+ };
4590
+ };
4591
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty6());
4592
+ var runPromiseExitWith2 = (context) => {
4591
4593
  const runFork = runForkWith2(context);
4592
4594
  return (effect, options) => {
4593
4595
  const fiber = runFork(effect, options);
@@ -4596,8 +4598,9 @@ var runPromiseExitWith = (context) => {
4596
4598
  });
4597
4599
  };
4598
4600
  };
4599
- var runPromiseWith = (context) => {
4600
- const runPromiseExit = runPromiseExitWith(context);
4601
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty6());
4602
+ var runPromiseWith2 = (context) => {
4603
+ const runPromiseExit = runPromiseExitWith2(context);
4601
4604
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4602
4605
  if (exit._tag === "Failure") {
4603
4606
  throw causeSquash(exit.cause);
@@ -4605,8 +4608,8 @@ var runPromiseWith = (context) => {
4605
4608
  return exit.value;
4606
4609
  });
4607
4610
  };
4608
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty7());
4609
- var runSyncExitWith = (context) => {
4611
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty6());
4612
+ var runSyncExitWith2 = (context) => {
4610
4613
  const runFork = runForkWith2(context);
4611
4614
  return (effect) => {
4612
4615
  if (effectIsExit(effect))
@@ -4619,9 +4622,9 @@ var runSyncExitWith = (context) => {
4619
4622
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4620
4623
  };
4621
4624
  };
4622
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty7());
4623
- var runSyncWith = (context) => {
4624
- const runSyncExit = runSyncExitWith(context);
4625
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty6());
4626
+ var runSyncWith2 = (context) => {
4627
+ const runSyncExit = runSyncExitWith2(context);
4625
4628
  return (effect) => {
4626
4629
  const exit = runSyncExit(effect);
4627
4630
  if (exit._tag === "Failure")
@@ -4629,7 +4632,7 @@ var runSyncWith = (context) => {
4629
4632
  return exit.value;
4630
4633
  };
4631
4634
  };
4632
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty7());
4635
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty6());
4633
4636
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4634
4637
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4635
4638
 
@@ -4751,7 +4754,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4751
4754
  span = noopSpan({
4752
4755
  name,
4753
4756
  parent,
4754
- annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4757
+ annotations: add(options?.annotations ?? empty6(), DisablePropagation, true)
4755
4758
  });
4756
4759
  } else {
4757
4760
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4764,12 +4767,12 @@ var makeSpanUnsafe = (fiber, name, options) => {
4764
4767
  span = tracer.span({
4765
4768
  name,
4766
4769
  parent,
4767
- annotations: options?.annotations ?? empty7(),
4770
+ annotations: options?.annotations ?? empty6(),
4768
4771
  links,
4769
4772
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4770
4773
  kind: options?.kind ?? "internal",
4771
4774
  root: options?.root ?? false,
4772
- sampled: options?.sampled ?? (isSome(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4775
+ sampled: options?.sampled ?? (isSome2(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4773
4776
  });
4774
4777
  for (const key in annotationsFromEnv) {
4775
4778
  span.attribute(key, annotationsFromEnv[key]);
@@ -5118,7 +5121,6 @@ var DeferredImpl = function() {
5118
5121
  };
5119
5122
  DeferredImpl.prototype = DeferredProto;
5120
5123
  var makeUnsafe2 = () => new DeferredImpl;
5121
- var make = () => sync2(() => makeUnsafe2());
5122
5124
  var _await = (self) => callback3((resume) => {
5123
5125
  if (self.effect)
5124
5126
  return resume(self.effect);
@@ -5134,8 +5136,8 @@ var _await = (self) => callback3((resume) => {
5134
5136
  });
5135
5137
  });
5136
5138
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5137
- var done3 = completeWith;
5138
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5139
+ var done2 = completeWith;
5140
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5139
5141
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5140
5142
  var isDoneUnsafe = (self) => self.effect !== undefined;
5141
5143
  var doneUnsafe = (self, effect) => {
@@ -5151,19 +5153,18 @@ var doneUnsafe = (self, effect) => {
5151
5153
  }
5152
5154
  return true;
5153
5155
  };
5154
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5155
5156
 
5156
5157
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5157
5158
  var TracerTimingEnabled2 = TracerTimingEnabled;
5158
5159
 
5159
5160
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5160
5161
  var Scope = scopeTag;
5162
+ var make = scopeMake;
5161
5163
  var makeUnsafe3 = scopeMakeUnsafe;
5162
- var provide3 = provideScope;
5164
+ var provide2 = provideScope;
5163
5165
  var addFinalizerExit = scopeAddFinalizerExit;
5164
5166
  var addFinalizer = scopeAddFinalizer;
5165
- var fork = scopeFork;
5166
- var forkUnsafe2 = scopeForkUnsafe;
5167
+ var forkUnsafe = scopeForkUnsafe;
5167
5168
  var close = scopeClose;
5168
5169
 
5169
5170
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5206,7 +5207,7 @@ var fromBuildUnsafe = (build) => {
5206
5207
  return self;
5207
5208
  };
5208
5209
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5209
- const layerScope = forkUnsafe2(scope);
5210
+ const layerScope = forkUnsafe(scope);
5210
5211
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5211
5212
  });
5212
5213
  var fromBuildMemo = (build) => {
@@ -5268,7 +5269,7 @@ var succeed3 = function() {
5268
5269
  return succeedContext(make11(arguments[0], arguments[1]));
5269
5270
  };
5270
5271
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5271
- var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5272
+ var empty7 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty6());
5272
5273
  var effect = function() {
5273
5274
  if (arguments.length === 1) {
5274
5275
  return (effect) => effectImpl(arguments[0], effect);
@@ -5276,10 +5277,10 @@ var effect = function() {
5276
5277
  return effectImpl(arguments[0], arguments[1]);
5277
5278
  };
5278
5279
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make11(service, value)));
5279
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5280
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5280
5281
  var mergeAllEffect = (layers, memoMap, scope) => {
5281
- const parentScope = forkUnsafe2(scope, "parallel");
5282
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5282
+ const parentScope = forkUnsafe(scope, "parallel");
5283
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5283
5284
  concurrency: layers.length
5284
5285
  }).pipe(map6((context) => mergeAll2(...context)));
5285
5286
  };
@@ -5291,19 +5292,16 @@ var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, tha
5291
5292
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5292
5293
  var isCause2 = isCause;
5293
5294
  var isFailReason2 = isFailReason;
5294
- var isInterruptReason = isInterruptReason2;
5295
5295
  var fromReasons = causeFromReasons;
5296
5296
  var fail2 = causeFail;
5297
5297
  var die3 = causeDie;
5298
- var hasInterruptsOnly = hasInterruptsOnly2;
5299
5298
  var map7 = causeMap;
5300
5299
  var squash = causeSquash;
5301
5300
  var findErrorOption2 = findErrorOption;
5302
5301
  var hasInterrupts = hasInterrupts2;
5303
- var filterInterruptors = causeFilterInterruptors;
5304
5302
  var isDone3 = isDone2;
5305
5303
  var Done = Done2;
5306
- var done = done2;
5304
+ var done = done3;
5307
5305
  var IllegalArgumentError2 = IllegalArgumentError;
5308
5306
  var UnknownError = UnknownError2;
5309
5307
 
@@ -5812,10 +5810,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5812
5810
  }
5813
5811
  }));
5814
5812
 
5815
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5816
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5817
- 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));
5818
-
5819
5813
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5820
5814
  var isEffect = isEffect2;
5821
5815
  var all = all3;
@@ -5843,7 +5837,7 @@ var withFiber = withFiber2;
5843
5837
  var fromResult2 = fromResult;
5844
5838
  var fromOption2 = fromOption4;
5845
5839
  var flatMap3 = flatMap5;
5846
- var flatten3 = flatten2;
5840
+ var flatten = flatten3;
5847
5841
  var andThen = andThen2;
5848
5842
  var tap = tap2;
5849
5843
  var result = result2;
@@ -5857,13 +5851,12 @@ var zipWith = zipWith3;
5857
5851
  var catch_ = catch_2;
5858
5852
  var catchTag = catchTag2;
5859
5853
  var catchReason = catchReason2;
5860
- var catchCause = catchCause2;
5854
+ var catchCause2 = catchCause;
5861
5855
  var catchIf = catchIf2;
5862
5856
  var catchCauseIf = catchCauseIf2;
5863
5857
  var mapError = mapError3;
5864
5858
  var orDie = orDie2;
5865
5859
  var tapError3 = tapError2;
5866
- var tapCause = tapCause2;
5867
5860
  var ignore = ignore2;
5868
5861
  var ignoreCause = ignoreCause2;
5869
5862
  var orElseSucceed2 = orElseSucceed;
@@ -5873,7 +5866,6 @@ var matchCauseEffect2 = matchCauseEffect;
5873
5866
  var matchEffect = matchEffect2;
5874
5867
  var context = context2;
5875
5868
  var contextWith2 = contextWith;
5876
- var provide2 = provide4;
5877
5869
  var provideContext = provideContext2;
5878
5870
  var serviceOption = serviceOption2;
5879
5871
  var updateContext2 = updateContext;
@@ -5900,13 +5892,19 @@ var forkIn = forkIn2;
5900
5892
  var forkScoped = forkScoped2;
5901
5893
  var runFork = runFork2;
5902
5894
  var runForkWith = runForkWith2;
5903
- var runPromise2 = runPromise;
5904
- var runSync2 = runSync;
5905
- var runSyncExit2 = runSyncExit;
5895
+ var runCallbackWith = runCallbackWith2;
5896
+ var runCallback = runCallback2;
5897
+ var runPromise = runPromise2;
5898
+ var runPromiseWith = runPromiseWith2;
5899
+ var runPromiseExit = runPromiseExit2;
5900
+ var runPromiseExitWith = runPromiseExitWith2;
5901
+ var runSync = runSync2;
5902
+ var runSyncWith = runSyncWith2;
5903
+ var runSyncExit = runSyncExit2;
5904
+ var runSyncExitWith = runSyncExitWith2;
5906
5905
  var fnUntraced = fnUntraced2;
5907
5906
  var fn = fn2;
5908
5907
  var clockWith = clockWith2;
5909
- var logError = /* @__PURE__ */ logWithLevel("Error");
5910
5908
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
5911
5909
  let synchronous = true;
5912
5910
  let pending;
@@ -6709,12 +6707,12 @@ class HashMapImpl {
6709
6707
  }
6710
6708
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6711
6709
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6712
- var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6710
+ var empty8 = () => new HashMapImpl(false, 0, emptyNode, 0);
6713
6711
  var get6 = /* @__PURE__ */ dual(2, (self, key) => {
6714
6712
  const impl = self;
6715
6713
  return impl._root.get(0, hash(key), key);
6716
6714
  });
6717
- var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6715
+ var has2 = /* @__PURE__ */ dual(2, (self, key) => {
6718
6716
  const impl = self;
6719
6717
  return impl._root.has(0, hash(key), key);
6720
6718
  });
@@ -6751,7 +6749,7 @@ var HashSetProto = {
6751
6749
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6752
6750
  },
6753
6751
  [symbol2](that) {
6754
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6752
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has3(that, value));
6755
6753
  },
6756
6754
  [Symbol.iterator]() {
6757
6755
  return keys2(keyMap(this));
@@ -6781,13 +6779,13 @@ var makeImpl2 = (keyMap) => {
6781
6779
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6782
6780
  var keyMap = (self) => self.keyMap;
6783
6781
  var fromIterable3 = (values) => {
6784
- let map = empty9();
6782
+ let map = empty8();
6785
6783
  for (const value of values) {
6786
6784
  map = set2(map, value, true);
6787
6785
  }
6788
6786
  return makeImpl2(map);
6789
6787
  };
6790
- var has4 = (self, value) => has3(keyMap(self), value);
6788
+ var has3 = (self, value) => has2(keyMap(self), value);
6791
6789
  var size2 = (self) => size(keyMap(self));
6792
6790
  var every2 = (self, predicate) => {
6793
6791
  for (const value of self) {
@@ -6800,7 +6798,7 @@ var every2 = (self, predicate) => {
6800
6798
 
6801
6799
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6802
6800
  var fromIterable4 = fromIterable3;
6803
- var has5 = /* @__PURE__ */ dual(2, has4);
6801
+ var has4 = /* @__PURE__ */ dual(2, has3);
6804
6802
  var size3 = size2;
6805
6803
 
6806
6804
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
@@ -7064,10 +7062,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7064
7062
  });
7065
7063
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7066
7064
  var Equivalence3 = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ strictEqual());
7067
- var empty3 = /* @__PURE__ */ Object.create(Proto5);
7065
+ var empty2 = /* @__PURE__ */ Object.create(Proto5);
7068
7066
  var fromInput = (input) => {
7069
7067
  if (input === undefined) {
7070
- return empty3;
7068
+ return empty2;
7071
7069
  } else if (Symbol.iterator in input) {
7072
7070
  const out = Object.create(Proto5);
7073
7071
  for (const [k, v] of input) {
@@ -7228,7 +7226,7 @@ var fromInputNested = (input) => {
7228
7226
  var coerce = (value) => isRedacted(value) ? value : String(value);
7229
7227
  var Equivalence4 = /* @__PURE__ */ make7((a, b) => arrayEquivalence(a.params, b.params));
7230
7228
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7231
- var empty4 = /* @__PURE__ */ make16([]);
7229
+ var empty3 = /* @__PURE__ */ make16([]);
7232
7230
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7233
7231
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7234
7232
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7298,7 +7296,7 @@ var decodeQueryKey = (key) => {
7298
7296
  return key;
7299
7297
  }
7300
7298
  };
7301
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7299
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty6(), CurrentRedactedNames2);
7302
7300
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7303
7301
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7304
7302
  });
@@ -7648,7 +7646,7 @@ var runGetter = (self, input, options) => {
7648
7646
  };
7649
7647
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7650
7648
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7651
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7649
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7652
7650
  if (self._tag === "Passthrough")
7653
7651
  return other;
7654
7652
  if (other._tag === "Passthrough")
@@ -7700,7 +7698,7 @@ function forbidden(message) {
7700
7698
  const annotations = {
7701
7699
  message: message(oe)
7702
7700
  };
7703
- return isSome(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7701
+ return isSome2(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7704
7702
  });
7705
7703
  }
7706
7704
  var forbiddenEncoding = /* @__PURE__ */ forbidden(() => "Encoding is not supported");
@@ -8524,7 +8522,7 @@ var Objects = class extends ASTNodeImpl {
8524
8522
  }
8525
8523
  }
8526
8524
  } else if (parseIndexes) {
8527
- const keyPairs = empty2();
8525
+ const keyPairs = empty();
8528
8526
  for (let i = 0;i < indexCount; i++) {
8529
8527
  const index = indexes[i];
8530
8528
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9042,7 +9040,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9042
9040
  return fail3(new AnyOf(ast, [issue], input, options));
9043
9041
  }
9044
9042
  function catchSingleUnionCandidate(ast, result, input, options) {
9045
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9043
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9046
9044
  }
9047
9045
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9048
9046
  const state = {
@@ -9693,7 +9691,7 @@ function compileTransformationUnsafe(transformation) {
9693
9691
  }
9694
9692
  }
9695
9693
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9696
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9694
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9697
9695
  function makeConstructorParser(descriptor, compile) {
9698
9696
  const transform = compileTransformation(descriptor.link.transformation);
9699
9697
  let sourceParser;
@@ -9949,7 +9947,7 @@ function makeEffect(schema) {
9949
9947
  function makeOption(schema) {
9950
9948
  const parser = makeEffect(schema);
9951
9949
  return (input, options) => {
9952
- const exit = runSyncExit2(parser(input, options));
9950
+ const exit = runSyncExit(parser(input, options));
9953
9951
  if (isSuccess2(exit)) {
9954
9952
  return some(exit.value);
9955
9953
  }
@@ -9988,7 +9986,7 @@ function makeIs(ast) {
9988
9986
  }
9989
9987
  const parser = entry.parser;
9990
9988
  return (input) => {
9991
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
9989
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
9992
9990
  if (isSuccess2(exit))
9993
9991
  return true;
9994
9992
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10056,7 +10054,7 @@ function runWithCompiler(compiler, ast) {
10056
10054
  };
10057
10055
  }
10058
10056
  function asExit(parser) {
10059
- return (input, options) => runSyncExit2(parser(input, options));
10057
+ return (input, options) => runSyncExit(parser(input, options));
10060
10058
  }
10061
10059
  function asOption(parser) {
10062
10060
  const parserExit = asExit(parser);
@@ -10070,7 +10068,7 @@ function asOption(parser) {
10070
10068
  };
10071
10069
  }
10072
10070
  function runSync3(effect, message) {
10073
- const exit = runSyncExit2(effect);
10071
+ const exit = runSyncExit(effect);
10074
10072
  if (isSuccess2(exit)) {
10075
10073
  return exit.value;
10076
10074
  }
@@ -11734,7 +11732,7 @@ function fromIssueEffect(self) {
11734
11732
  if (effectIsExit(self)) {
11735
11733
  return fromIssueExit(self);
11736
11734
  }
11737
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11735
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11738
11736
  }
11739
11737
  function fromIssueExit(exit) {
11740
11738
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11757,7 +11755,7 @@ function getSchemaErrorOrThrow(cause, message) {
11757
11755
  return schemaError;
11758
11756
  }
11759
11757
  function runSchemaErrorSync(self) {
11760
- const exit = runSyncExit2(self);
11758
+ const exit = runSyncExit(self);
11761
11759
  if (isSuccess2(exit)) {
11762
11760
  return exit.value;
11763
11761
  }
@@ -11867,7 +11865,7 @@ function makeTuple(ast, elements) {
11867
11865
  }
11868
11866
  });
11869
11867
  }
11870
- function Tuple(elements) {
11868
+ function Tuple2(elements) {
11871
11869
  return makeTuple(tuple(elements), elements);
11872
11870
  }
11873
11871
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -12553,7 +12551,7 @@ function Redacted(value2, options) {
12553
12551
  decode: transform((e) => make4(e, {
12554
12552
  label
12555
12553
  })),
12556
- encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12554
+ encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12557
12555
  }),
12558
12556
  toEquivalence: ([value2]) => makeEquivalence4(value2)
12559
12557
  });
@@ -12725,7 +12723,6 @@ var Json = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json2, {
12725
12723
  var await_ = fiberAwait;
12726
12724
  var join2 = fiberJoin;
12727
12725
  var interrupt2 = fiberInterrupt;
12728
- var interruptAll = fiberInterruptAll;
12729
12726
  var getCurrent = getCurrentFiber;
12730
12727
  var runIn = fiberRunIn;
12731
12728
 
@@ -13262,13 +13259,13 @@ var ChannelProto = {
13262
13259
  };
13263
13260
  var fromTransform = (transform) => {
13264
13261
  const self = Object.create(ChannelProto);
13265
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13262
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13266
13263
  return self;
13267
13264
  };
13268
13265
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13269
13266
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13270
13267
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13271
- const closableScope = forkUnsafe2(scope);
13268
+ const closableScope = forkUnsafe(scope);
13272
13269
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13273
13270
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13274
13271
  return onError(pull, onCause);
@@ -13278,7 +13275,7 @@ var DefaultChunkSize = 4096;
13278
13275
  var asyncQueue = (scope, f, options) => make2({
13279
13276
  capacity: options?.bufferSize,
13280
13277
  strategy: options?.strategy
13281
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13278
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13282
13279
  startImmediately: true
13283
13280
  }))));
13284
13281
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13309,7 +13306,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13309
13306
  };
13310
13307
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13311
13308
  var succeed8 = (value) => fromEffect2(succeed4(value));
13312
- var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13309
+ var empty10 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13313
13310
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13314
13311
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13315
13312
  let done2 = false;
@@ -13383,13 +13380,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13383
13380
  return void_2;
13384
13381
  }), forever({
13385
13382
  disableYield: true
13386
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13383
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13387
13384
  } else {
13388
13385
  const effects = yield* bounded(concurrencyN - 2);
13389
13386
  yield* addFinalizer(forkedScope, shutdown(effects));
13390
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13387
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13391
13388
  disableYield: true
13392
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13389
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13393
13390
  let errorCause;
13394
13391
  const onExit = (exit) => {
13395
13392
  if (exit._tag === "Success")
@@ -13407,7 +13404,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13407
13404
  return offer(effects, join2(fiber));
13408
13405
  }), forever({
13409
13406
  disableYield: true
13410
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13407
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13411
13408
  }
13412
13409
  return take(queue);
13413
13410
  }));
@@ -13416,7 +13413,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13416
13413
  let childPull;
13417
13414
  let childScope;
13418
13415
  const makePull = flatMap3(pull, (value) => {
13419
- childScope ??= forkUnsafe2(scope);
13416
+ childScope ??= forkUnsafe(scope);
13420
13417
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13421
13418
  childPull = catchHalt(pull);
13422
13419
  return childPull;
@@ -13496,7 +13493,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13496
13493
  }
13497
13494
  }
13498
13495
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13499
- const childScope = forkUnsafe2(forkedScope);
13496
+ const childScope = forkUnsafe(forkedScope);
13500
13497
  const childPull = yield* toTransform(channel)(upstream, childScope);
13501
13498
  while (fibers.size >= concurrencyN) {
13502
13499
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13525,7 +13522,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13525
13522
  doneLatch.closeUnsafe();
13526
13523
  fibers.set(fiber, childScope);
13527
13524
  }
13528
- }).pipe(catchCause((cause) => {
13525
+ }).pipe(catchCause2((cause) => {
13529
13526
  const halt = filterDone(cause);
13530
13527
  if (isSuccess(halt)) {
13531
13528
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13561,8 +13558,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13561
13558
  onFailure: (cause) => onExit(side, cause),
13562
13559
  onSuccess: () => onExit(side, cause)
13563
13560
  }))), forkIn(forkedScope));
13564
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13565
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13561
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13562
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13566
13563
  return take(queue);
13567
13564
  })));
13568
13565
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13662,15 +13659,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13662
13659
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13663
13660
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13664
13661
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13665
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13662
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13666
13663
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13667
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13664
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13668
13665
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13669
13666
  let pull;
13670
13667
  return succeed4(suspend(() => {
13671
13668
  if (pull)
13672
13669
  return pull;
13673
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13670
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13674
13671
  }));
13675
13672
  });
13676
13673
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13686,7 +13683,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13686
13683
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13687
13684
  disableYield: true
13688
13685
  }));
13689
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13686
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13690
13687
  disableYield: true
13691
13688
  })));
13692
13689
  var mkUint8Array = (self) => map4(runFold(self, () => ({
@@ -13756,7 +13753,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
13756
13753
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
13757
13754
  var toChannel = (stream) => stream.channel;
13758
13755
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
13759
- var empty5 = /* @__PURE__ */ fromChannel(empty11);
13756
+ var empty4 = /* @__PURE__ */ fromChannel(empty10);
13760
13757
  var suspend3 = (stream) => {
13761
13758
  const suspended = fromChannel(suspend5(() => stream().channel));
13762
13759
  suspendedStreams.set(suspended, stream);
@@ -13765,7 +13762,7 @@ var suspend3 = (stream) => {
13765
13762
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
13766
13763
  var fail6 = (error) => fromChannel(fail10(error));
13767
13764
  var fromIterable2 = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
13768
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
13765
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty4;
13769
13766
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
13770
13767
  var paginate = (s, f) => fromPull(sync(() => {
13771
13768
  let state = s;
@@ -13826,7 +13823,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
13826
13823
  return acc;
13827
13824
  });
13828
13825
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
13829
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
13826
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
13830
13827
  let i = 0;
13831
13828
  return whileLoop2({
13832
13829
  while: () => i < arr.length,
@@ -13846,7 +13843,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13846
13843
  const onAbort = () => fiber.interruptUnsafe();
13847
13844
  return new ReadableStream({
13848
13845
  start(controller) {
13849
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13846
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13850
13847
  latch.closeUnsafe();
13851
13848
  for (let i = 0;i < chunk.length; i++) {
13852
13849
  controller.enqueue(chunk[i]);
@@ -13883,7 +13880,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13883
13880
  if (!fiber)
13884
13881
  return;
13885
13882
  cancelled = true;
13886
- return runPromise2(asVoid2(interrupt2(fiber)));
13883
+ return runPromise(asVoid2(interrupt2(fiber)));
13887
13884
  }
13888
13885
  }, options?.strategy);
13889
13886
  });
@@ -14256,7 +14253,7 @@ class Empty2 extends Proto8 {
14256
14253
  };
14257
14254
  }
14258
14255
  }
14259
- var empty6 = /* @__PURE__ */ new Empty2;
14256
+ var empty5 = /* @__PURE__ */ new Empty2;
14260
14257
  class Uint8Array3 extends Proto8 {
14261
14258
  _tag = "Uint8Array";
14262
14259
  contentType;
@@ -14428,8 +14425,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14428
14425
  self.body = body;
14429
14426
  return self;
14430
14427
  }
14431
- var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14432
- var make24 = (method) => (url, options) => modify(empty12, {
14428
+ var empty11 = /* @__PURE__ */ makeWith("GET", "", empty3, /* @__PURE__ */ none(), empty2, empty5);
14429
+ var make24 = (method) => (url, options) => modify(empty11, {
14433
14430
  method,
14434
14431
  url,
14435
14432
  ...options ?? undefined
@@ -14769,7 +14766,7 @@ class WebHttpClientResponse extends Class2 {
14769
14766
  cause
14770
14767
  })
14771
14768
  })
14772
- }).pipe(cached, runSync2);
14769
+ }).pipe(cached, runSync);
14773
14770
  }
14774
14771
  arrayBufferBody;
14775
14772
  get arrayBuffer() {
@@ -14785,7 +14782,7 @@ class WebHttpClientResponse extends Class2 {
14785
14782
  cause
14786
14783
  })
14787
14784
  })
14788
- }).pipe(cached, runSync2);
14785
+ }).pipe(cached, runSync);
14789
14786
  return this.arrayBufferBody;
14790
14787
  }
14791
14788
  get upgrade() {
@@ -15203,7 +15200,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15203
15200
  return send(undefined);
15204
15201
  });
15205
15202
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15206
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15203
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15207
15204
  var __defProp = Object.defineProperty;
15208
15205
  var __exportAll3 = (all, no_symbols) => {
15209
15206
  let target = {};
@@ -15217,7 +15214,7 @@ var __exportAll3 = (all, no_symbols) => {
15217
15214
  return target;
15218
15215
  };
15219
15216
 
15220
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15217
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15221
15218
  var DefinitionIdentifierKindSchema = Literals([
15222
15219
  "dual",
15223
15220
  "plugin",
@@ -15269,7 +15266,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15269
15266
  }) {
15270
15267
  };
15271
15268
 
15272
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15269
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15273
15270
  var identifierSchema = String3.check(isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15274
15271
  var isIdentifier = is(identifierSchema);
15275
15272
  var validateIdentifier = (kind, identifier) => {
@@ -15294,12 +15291,12 @@ var validateIdentifier = (kind, identifier) => {
15294
15291
  });
15295
15292
  };
15296
15293
 
15297
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15294
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15298
15295
  var PipeableProto = { pipe() {
15299
15296
  return pipeArguments(this, arguments);
15300
15297
  } };
15301
15298
 
15302
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15299
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15303
15300
  var Action_exports = /* @__PURE__ */ __exportAll3({
15304
15301
  ActionHandlerError: () => ActionHandlerError,
15305
15302
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15412,7 +15409,7 @@ var make26 = (identifier, options) => {
15412
15409
  };
15413
15410
  var isAction = (u) => hasProperty(u, TypeId29);
15414
15411
 
15415
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15412
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15416
15413
  var makeBinding = (options) => ({
15417
15414
  connectionId: options.connectionId,
15418
15415
  method: options.method,
@@ -15422,7 +15419,7 @@ var makeBinding = (options) => ({
15422
15419
  });
15423
15420
  var isBindingForMethod = (binding, method) => binding.method === method;
15424
15421
 
15425
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15422
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15426
15423
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15427
15424
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15428
15425
  Service: () => Service3
@@ -15430,7 +15427,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15430
15427
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15431
15428
  };
15432
15429
 
15433
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15430
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15434
15431
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15435
15432
  cause,
15436
15433
  methodIdentifier,
@@ -15592,7 +15589,7 @@ var test = (method, material, context) => {
15592
15589
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15593
15590
  };
15594
15591
 
15595
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15592
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15596
15593
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15597
15594
  AuthMethodHookError: () => AuthMethodHookError,
15598
15595
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15766,7 +15763,7 @@ var oauth2 = (identifier, options) => {
15766
15763
  };
15767
15764
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15768
15765
 
15769
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15766
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15770
15767
  var ToolFile_exports = /* @__PURE__ */ __exportAll3({
15771
15768
  Schema: () => Schema,
15772
15769
  ToolFile: () => ToolFile_exports
@@ -15781,7 +15778,7 @@ var Schema = TaggedStruct("ToolFile", {
15781
15778
  sizeBytes: Natural
15782
15779
  });
15783
15780
 
15784
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15781
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15785
15782
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
15786
15783
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
15787
15784
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -15802,13 +15799,13 @@ var findHandler = (context, providerId, handlerKey) => {
15802
15799
  return isMap(group) ? group.get(handlerKey) : undefined;
15803
15800
  };
15804
15801
 
15805
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15802
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15806
15803
  function decodeJson(schema, value) {
15807
15804
  return decodeUnknownEffect(toCodecJson2(schema))(value);
15808
15805
  }
15809
15806
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
15810
15807
 
15811
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15808
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15812
15809
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
15813
15810
  connectionId: String3,
15814
15811
  phase: optional(String3),
@@ -15904,7 +15901,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
15904
15901
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
15905
15902
  };
15906
15903
 
15907
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15904
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15908
15905
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
15909
15906
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
15910
15907
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -15964,7 +15961,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
15964
15961
  });
15965
15962
  });
15966
15963
 
15967
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15964
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15968
15965
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
15969
15966
  description: error.message,
15970
15967
  triggerId
@@ -16099,7 +16096,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16099
16096
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16100
16097
  };
16101
16098
 
16102
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16099
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16103
16100
  var runPhase = (options) => gen(function* () {
16104
16101
  const { entry, phase, request } = options;
16105
16102
  const runtime = yield* options.hook;
@@ -16182,7 +16179,7 @@ var poll2 = (entry, request) => runPhase({
16182
16179
  phase: "poll",
16183
16180
  request
16184
16181
  });
16185
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16182
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16186
16183
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16187
16184
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16188
16185
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -16394,10 +16391,10 @@ var verify2 = verify;
16394
16391
  var parse3 = parse2;
16395
16392
  var poll3 = poll2;
16396
16393
 
16397
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16394
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16398
16395
  var appendElements = (existing, additions) => [...existing, ...additions];
16399
16396
 
16400
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16397
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16401
16398
  var partitionChildren = (children) => ({
16402
16399
  actions: children.filter(isAction),
16403
16400
  groups: children.filter(isGroup),
@@ -16437,7 +16434,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
16437
16434
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
16438
16435
  };
16439
16436
 
16440
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16437
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16441
16438
  var Group_exports = /* @__PURE__ */ __exportAll3({
16442
16439
  TypeId: () => TypeId32,
16443
16440
  add: () => add4,
@@ -16499,7 +16496,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
16499
16496
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
16500
16497
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
16501
16498
 
16502
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16499
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16503
16500
  var Key = NonEmptyString.check(isMaxLength(512), isPattern(/^[^\p{Cc}]+$/u));
16504
16501
  var OperationKind = Literals([
16505
16502
  "present_outcome",
@@ -16588,7 +16585,7 @@ var VerifiedIdentity = Struct({
16588
16585
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
16589
16586
  var Verification = Struct({ verified: Literal(true) });
16590
16587
  var Exposure = Literals(["webhook", "host"]);
16591
- var RequiredChecks = Tuple([Literal("access")]);
16588
+ var RequiredChecks = Tuple2([Literal("access")]);
16592
16589
  var Message = Struct({
16593
16590
  content: Content,
16594
16591
  conversation: Destination,
@@ -16985,7 +16982,7 @@ var validateDefinition = (definition, providerId, methods) => {
16985
16982
  }
16986
16983
  };
16987
16984
 
16988
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
16985
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
16989
16986
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
16990
16987
  const seen = /* @__PURE__ */ new Set;
16991
16988
  for (const method of methods) {
@@ -16998,7 +16995,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
16998
16995
  }
16999
16996
  };
17000
16997
 
17001
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
16998
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17002
16999
  var walkCapabilities = (provider, select) => {
17003
17000
  const entries = [];
17004
17001
  const visit = (owner, prefix) => {
@@ -17017,7 +17014,7 @@ var walkCapabilities = (provider, select) => {
17017
17014
  return entries;
17018
17015
  };
17019
17016
 
17020
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17017
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17021
17018
  var missingDeclaration = (kind, localId, pluginId) => {
17022
17019
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17023
17020
  };
@@ -17062,7 +17059,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17062
17059
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17063
17060
  });
17064
17061
 
17065
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17062
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17066
17063
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17067
17064
  TypeId: () => TypeId33,
17068
17065
  add: () => add5,
@@ -17070,7 +17067,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17070
17067
  isGitRequest: () => isGitRequest,
17071
17068
  isPlugin: () => isPlugin,
17072
17069
  make: () => make6,
17073
- provide: () => provide6,
17070
+ provide: () => provide4,
17074
17071
  toLayer: () => toLayer2,
17075
17072
  withAction: () => withAction2,
17076
17073
  withAgentChannel: () => withAgentChannel,
@@ -17145,7 +17142,7 @@ var make6 = (identifier) => makePlugin({
17145
17142
  iconUrl: undefined,
17146
17143
  iconUrlDark: undefined,
17147
17144
  identifier,
17148
- layer: empty8,
17145
+ layer: empty7,
17149
17146
  name: undefined,
17150
17147
  sandboxAccess: undefined,
17151
17148
  triggers: []
@@ -17195,7 +17192,7 @@ var withAgentChannel = (channel) => (plugin) => {
17195
17192
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17196
17193
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17197
17194
  };
17198
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17195
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17199
17196
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17200
17197
  action: (name, handler) => makeHandlers({
17201
17198
  ...actions,
@@ -17233,7 +17230,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17233
17230
  return yield* toHandlers(plugin, handlers);
17234
17231
  }));
17235
17232
 
17236
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17233
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17237
17234
  var ConnectionContext = Struct({
17238
17235
  actor: optionalKey(Union([Struct({
17239
17236
  kind: Literal("user"),
@@ -17271,7 +17268,7 @@ var AccessInput = Struct({
17271
17268
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17272
17269
  };
17273
17270
  var fail11 = (code) => new ChannelError({ code });
17274
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17271
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17275
17272
  var AssetResultJson = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17276
17273
  var Json3 = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17277
17274
  var strict = { onExcessProperty: "error" };
@@ -17287,11 +17284,11 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17287
17284
  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({
17288
17285
  code: "provider_failure",
17289
17286
  providerCode: checked.code
17290
- }))))), catchCause((cause) => {
17287
+ }))))), catchCause2((cause) => {
17291
17288
  if (hasInterrupts(cause))
17292
17289
  return interrupt;
17293
17290
  const error = findErrorOption2(cause);
17294
- return isSome(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17291
+ return isSome2(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17295
17292
  }));
17296
17293
  var checkExtensions = fn("AgentChannelRuntime.checkExtensions")(function* (definition, extensions, code) {
17297
17294
  for (const [key, value] of Object.entries(extensions ?? {})) {
@@ -17517,7 +17514,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17517
17514
  });
17518
17515
  }));
17519
17516
 
17520
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17517
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17521
17518
  var TypeId34 = "@dual-os/sdk/AiProvider";
17522
17519
  var RuntimeConfig = Struct({
17523
17520
  apiKey: optional(String3),
@@ -17575,7 +17572,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17575
17572
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17576
17573
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17577
17574
 
17578
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17575
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17579
17576
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17580
17577
  action: node,
17581
17578
  actionId: canonicalId,
@@ -17596,7 +17593,7 @@ var resolveAction = (installations, actionId, version) => {
17596
17593
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17597
17594
  };
17598
17595
 
17599
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17596
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17600
17597
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17601
17598
  authMethods: installation.plugin.authMethods,
17602
17599
  localId: walked.localId,
@@ -17617,7 +17614,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17617
17614
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17618
17615
  };
17619
17616
 
17620
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17617
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17621
17618
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17622
17619
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17623
17620
  var authMethodMetadataJson = (method) => {
@@ -17776,7 +17773,7 @@ var materializeResolvedRegistry = (input) => {
17776
17773
  };
17777
17774
  };
17778
17775
 
17779
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17776
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17780
17777
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17781
17778
  };
17782
17779
  var materializePlugin = (plugin, options) => ({
@@ -17795,7 +17792,7 @@ var materializePlugin = (plugin, options) => ({
17795
17792
  }).providers
17796
17793
  });
17797
17794
 
17798
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17795
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17799
17796
  var FieldIssue = class extends Class4("FieldIssue")({
17800
17797
  message: String3,
17801
17798
  path: String3
@@ -17868,7 +17865,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
17868
17865
  fields: schemaErrorFields(error)
17869
17866
  }))));
17870
17867
 
17871
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17868
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17872
17869
  var install = (plugin, version) => ({
17873
17870
  plugin,
17874
17871
  version
@@ -18072,7 +18069,7 @@ var toLayer = (app) => {
18072
18069
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18073
18070
  };
18074
18071
 
18075
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18072
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18076
18073
  var File4 = TaggedStruct("File", {
18077
18074
  contentType: String3,
18078
18075
  id: NonEmptyString,
@@ -18094,7 +18091,7 @@ var write = fnUntraced(function* (file) {
18094
18091
  return yield* (yield* service3).write(file);
18095
18092
  });
18096
18093
 
18097
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18094
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18098
18095
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18099
18096
  cause: optionalKey(Redacted(Defect())),
18100
18097
  message: String3
@@ -18152,7 +18149,7 @@ var ReservedTokenHeaders = fromIterable4([
18152
18149
  ]);
18153
18150
  var TokenHeaders = Record(String3, String3.check(isPattern(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter((headers) => {
18154
18151
  const names = map3(keys(headers), toLowerCase);
18155
- return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has5(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18152
+ return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has4(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18156
18153
  }, { message: "Invalid provider token headers" }));
18157
18154
  Struct({
18158
18155
  authorizationParams: Record(String3, String3),
@@ -18510,7 +18507,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18510
18507
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18511
18508
  }));
18512
18509
 
18513
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18510
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18514
18511
  var Identity = Struct({
18515
18512
  artifactDigest: String3.check(isPattern(/^[a-f0-9]{128}$/u)),
18516
18513
  invocationId: NonEmptyString,
@@ -18850,7 +18847,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18850
18847
  })));
18851
18848
  });
18852
18849
 
18853
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18850
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18854
18851
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
18855
18852
  category: Literals([
18856
18853
  "transport",
@@ -18866,49 +18863,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
18866
18863
  var maxPayloadBytes = 1048576;
18867
18864
  var maxMetadataBytes = 67108864;
18868
18865
  var maxChannelResultBytes = 16777216;
18869
- function ipcMessages(channel) {
18870
- return callback2((queue) => {
18871
- const message = (value) => {
18872
- offerUnsafe(queue, value);
18873
- };
18874
- const disconnected = () => {
18875
- endUnsafe(queue);
18876
- };
18877
- const failed = (cause) => {
18878
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
18879
- category: "runner",
18880
- cause: make4(cause),
18881
- message: "Plugin IPC channel failed"
18882
- })));
18883
- };
18884
- return acquireRelease(sync(() => {
18885
- channel.on("message", message);
18886
- channel.on("disconnect", disconnected);
18887
- channel.on("error", failed);
18888
- }), () => sync(() => {
18889
- channel.removeListener("message", message);
18890
- channel.removeListener("disconnect", disconnected);
18891
- channel.removeListener("error", failed);
18892
- }));
18893
- });
18894
- }
18895
- function sendIpc(channel, value) {
18896
- return try_2({
18897
- try: () => {
18898
- if (!channel.connected || channel.send === undefined)
18899
- throw PluginExecutionError.make({
18900
- category: "runner",
18901
- message: "Plugin IPC channel is closed"
18902
- });
18903
- channel.send(value);
18904
- },
18905
- catch: (cause) => PluginExecutionError.make({
18906
- category: "runner",
18907
- cause: make4(cause),
18908
- message: "Cannot send plugin IPC message"
18909
- })
18910
- });
18911
- }
18912
18866
  var OAuthContinuation = Struct({
18913
18867
  expiresAt: DateFromString,
18914
18868
  pkceVerifier: NullOr(String3),
@@ -18976,8 +18930,6 @@ var ExecutionRequest = Union([
18976
18930
  ChannelSettingsRequest
18977
18931
  ]);
18978
18932
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
18979
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
18980
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
18981
18933
  function checkMessageSize(value, maximum) {
18982
18934
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
18983
18935
  return void_2;
@@ -18987,24 +18939,24 @@ function checkMessageSize(value, maximum) {
18987
18939
  }));
18988
18940
  }
18989
18941
  var encodeInput = fnUntraced(function* (input) {
18990
- const encoded = yield* encodeEffect(Input2)(input);
18942
+ const encoded = yield* encodeEffect(Request4)(input);
18991
18943
  yield* checkMessageSize(encoded, maxPayloadBytes);
18992
18944
  return encoded;
18993
18945
  });
18994
18946
  var decodeInput = fnUntraced(function* (input) {
18995
18947
  const json = yield* decodeUnknownEffect(Json)(input);
18996
18948
  yield* checkMessageSize(json, maxPayloadBytes);
18997
- return yield* decodeUnknownEffect(Input2)(json);
18949
+ return yield* decodeUnknownEffect(Request4)(json);
18998
18950
  });
18999
18951
  var encodeOutput = fnUntraced(function* (output, maximum) {
19000
- const encoded = yield* encodeEffect(Output)(output);
18952
+ const encoded = yield* encodeEffect(Response)(output);
19001
18953
  yield* checkMessageSize(encoded, maximum);
19002
18954
  return encoded;
19003
18955
  });
19004
18956
  var decodeOutput = fnUntraced(function* (output) {
19005
18957
  const json = yield* decodeUnknownEffect(Json)(output);
19006
18958
  yield* checkMessageSize(json, maxMetadataBytes);
19007
- return yield* decodeUnknownEffect(Output)(json);
18959
+ return yield* decodeUnknownEffect(Response)(json);
19008
18960
  });
19009
18961
  function responseLimit(request) {
19010
18962
  if ("_tag" in request && request._tag === "extract")
@@ -19036,7 +18988,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19036
18988
  bytes: Buffer.alloc(maximum),
19037
18989
  size: 0
19038
18990
  };
19039
- yield* pipe(input, runForEach((chunk) => gen(function* () {
18991
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19040
18992
  if (output.size + chunk.byteLength > maximum)
19041
18993
  return yield* PluginExecutionError.make({
19042
18994
  category: "protocol",
@@ -19157,7 +19109,7 @@ var execute3 = fnUntraced(function* (request) {
19157
19109
  return yield* executeChannelSettings(request);
19158
19110
  });
19159
19111
 
19160
- 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, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty2, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, join, fromInputUnsafe, isFinite, millis, minutes, toMillis, toPredicate, has2, compose, TaggedClass, Error2, TaggedError, forkUnsafe, isInterruptReason, fail2, hasInterruptsOnly, squash, hasInterrupts, filterInterruptors, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, make, _await, fail4, isDone, isDoneUnsafe, doneUnsafe, into, Scope, makeUnsafe3, addFinalizerExit, addFinalizer, fork, close, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, 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, tapCause, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provide2, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, fnUntraced, fn, clockWith, logError, effectify, await_, join2, interrupt2, interruptAll, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty3, empty4, InvalidValue, compose2, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, NonEmptyArray, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isMultipleOf, Int, Natural, isMinLength, isMaxLength, isUnique, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty5, suspend3, fail6, fromIterable2, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runForEach, runDrain, mkString, layer, fromUnknown, value2, when, orElse2, empty6, HttpClientError, InvalidUrlError, makeWith, get3, post, patch, put, del, options, setMethod, setHeader, setHeaders, bearerToken, setUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyText, bodyJsonUnsafe, bodyUrlParams, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_exports, Schema, Key, Event3, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File4, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, Identity, filesUnavailable, PluginExecutionError, ipcMessages, sendIpc, decodeInput, encodeOutput, responseLimit, execute3 };
19112
+ 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, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, join, fromInputUnsafe, isFinite, millis, minutes, toMillis, TaggedClass, Error2, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope, make, makeUnsafe3, addFinalizerExit, addFinalizer, forkUnsafe, close, makeMemoMapUnsafe, buildWithMemoMap, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, toLowerCase, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, 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, ignore, ignoreCause, sleep, raceFirst, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, suspend2, decodeTo, tag, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isMultipleOf, Int, Natural, isMinLength, isMaxLength, isUnique, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable2, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, orElse2, empty5, HttpClientError, InvalidUrlError, makeWith, get3, post, patch, put, del, options, setMethod, setHeader, setHeaders, bearerToken, setUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyText, bodyJsonUnsafe, bodyUrlParams, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_exports, Schema, Key, Event3, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File4, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19161
19113
 
19162
- //# debugId=CF09B20F54DB8BCB64756E2164756E21
19163
- //# sourceMappingURL=plugin-e5fvbgd9.js.map
19114
+ //# debugId=F22C1F4A741F078964756E2164756E21
19115
+ //# sourceMappingURL=plugin-q33ks0q6.js.map