@dual-os/atlassian-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.
@@ -572,7 +572,7 @@ var byReferenceUnsafe = (obj) => {
572
572
  var make7 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
573
573
  var isStrictEquivalent = (x, y) => x === y;
574
574
  var strictEqual = () => isStrictEquivalent;
575
- function Tuple2(elements) {
575
+ function Tuple(elements) {
576
576
  return make7((self, that) => {
577
577
  if (self.length !== that.length) {
578
578
  return false;
@@ -1119,7 +1119,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1119
1119
  var causeAddInterrupts = (self, interrupts) => {
1120
1120
  const reasons = self.reasons.slice();
1121
1121
  for (const reason of interrupts.reasons) {
1122
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1122
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1123
1123
  reasons.push(reason);
1124
1124
  }
1125
1125
  }
@@ -1157,7 +1157,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1157
1157
  });
1158
1158
  var isFailReason = (self) => self._tag === "Fail";
1159
1159
  var isDieReason = (self) => self._tag === "Die";
1160
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1160
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1161
1161
  function defaultEvaluate(_fiber) {
1162
1162
  return exitDie(`Effect.evaluate: Not implemented`);
1163
1163
  }
@@ -1342,7 +1342,7 @@ var Done2 = (value) => {
1342
1342
  };
1343
1343
  };
1344
1344
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1345
- var done2 = (value) => {
1345
+ var done3 = (value) => {
1346
1346
  if (value === undefined)
1347
1347
  return doneVoid;
1348
1348
  return exitFail(Done2(value));
@@ -1363,7 +1363,7 @@ var SomeProto = /* @__PURE__ */ Object.defineProperty(/* @__PURE__ */ Object.ass
1363
1363
  _tag: "Some",
1364
1364
  _op: "Some",
1365
1365
  [symbol2](that) {
1366
- return isOption(that) && isSome2(that) && equals(this.value, that.value);
1366
+ return isOption(that) && isSome(that) && equals(this.value, that.value);
1367
1367
  },
1368
1368
  [symbol]() {
1369
1369
  return combine(hash(this._tag))(hash(this.value));
@@ -1406,7 +1406,7 @@ var NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Comm
1406
1406
  });
1407
1407
  var isOption = (input) => hasProperty(input, TypeId);
1408
1408
  var isNone2 = (fa) => fa._tag === "None";
1409
- var isSome2 = (fa) => fa._tag === "Some";
1409
+ var isSome = (fa) => fa._tag === "Some";
1410
1410
  var none2 = /* @__PURE__ */ Object.create(NoneProto);
1411
1411
  var SomeImpl = function(value) {
1412
1412
  this.value = value;
@@ -1511,7 +1511,7 @@ var none = () => none2;
1511
1511
  var some = some3;
1512
1512
  var isOption2 = isOption;
1513
1513
  var isNone = isNone2;
1514
- var isSome = isSome2;
1514
+ var isSome2 = isSome;
1515
1515
  var match = /* @__PURE__ */ dual(2, (self, {
1516
1516
  onNone,
1517
1517
  onSome
@@ -1663,7 +1663,7 @@ var normalizeNonEmpty = (n) => Math.max(1, normalize(n));
1663
1663
 
1664
1664
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1665
1665
  var make9 = (...elements) => elements;
1666
- var makeEquivalence2 = Tuple2;
1666
+ var makeEquivalence2 = Tuple;
1667
1667
 
1668
1668
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1669
1669
  var headUnsafe = (self) => {
@@ -1682,7 +1682,7 @@ var findFirst2 = /* @__PURE__ */ dual(2, (self, f) => {
1682
1682
  return some(a);
1683
1683
  }
1684
1684
  } else {
1685
- if (isSome(o)) {
1685
+ if (isSome2(o)) {
1686
1686
  return o;
1687
1687
  }
1688
1688
  }
@@ -1703,7 +1703,6 @@ var constEmptyIterator = {
1703
1703
  };
1704
1704
  }
1705
1705
  };
1706
- var empty = () => constEmpty;
1707
1706
 
1708
1707
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Array.js
1709
1708
  var Array2 = globalThis.Array;
@@ -1812,7 +1811,7 @@ var hashBucketsAdd = (buckets, value) => {
1812
1811
  bucket.push(value);
1813
1812
  return true;
1814
1813
  };
1815
- var empty2 = () => [];
1814
+ var empty = () => [];
1816
1815
  var of = (a) => [a];
1817
1816
  var map3 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
1818
1817
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -1850,7 +1849,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
1850
1849
  return out;
1851
1850
  });
1852
1851
  var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable(self).reduce((b, a, i) => f(b, a, i), b));
1853
- var fromNullishOr2 = (a) => a == null ? empty2() : [a];
1852
+ var fromNullishOr2 = (a) => a == null ? empty() : [a];
1854
1853
  var every = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
1855
1854
  var some2 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
1856
1855
  var makeEquivalence3 = Array_;
@@ -2271,7 +2270,7 @@ var applyOverlays = (map, overlay) => {
2271
2270
  applyOverlays(map, overlay.parent);
2272
2271
  map.set(overlay.key, overlay.value);
2273
2272
  };
2274
- var flatten = (self) => {
2273
+ var flatten2 = (self) => {
2275
2274
  if (self._flat)
2276
2275
  return self._flat;
2277
2276
  if (!self.overlay)
@@ -2296,7 +2295,7 @@ var lookup = (self, key) => {
2296
2295
  if (value === undefined && !impl.base.has(key))
2297
2296
  return notFound;
2298
2297
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
2299
- impl.base = flatten(impl);
2298
+ impl.base = flatten2(impl);
2300
2299
  impl.overlay = undefined;
2301
2300
  impl.depth = 0;
2302
2301
  }
@@ -2308,7 +2307,7 @@ var makeUnsafe = (mapUnsafe, options) => {
2308
2307
  };
2309
2308
  var Proto = {
2310
2309
  get mapUnsafe() {
2311
- return flatten(this);
2310
+ return flatten2(this);
2312
2311
  },
2313
2312
  ...PipeInspectableProto,
2314
2313
  [TypeId4]: {
@@ -2343,7 +2342,7 @@ var Proto = {
2343
2342
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
2344
2343
  var isContext = (u) => hasProperty(u, TypeId4);
2345
2344
  var isReference = (u) => !!u[ReferenceTypeId];
2346
- var empty7 = () => emptyContext2;
2345
+ var empty6 = () => emptyContext2;
2347
2346
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
2348
2347
  var make11 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
2349
2348
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -2421,14 +2420,6 @@ var mergeAll2 = (...ctxs) => {
2421
2420
  var Reference = Service;
2422
2421
 
2423
2422
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2424
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2425
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2426
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2427
- const leftOut = left(input);
2428
- if (isFailure3(leftOut))
2429
- return leftOut;
2430
- return right(leftOut.success);
2431
- });
2432
2423
  var toOption = (self) => (input) => {
2433
2424
  const result = self(input);
2434
2425
  return isFailure3(result) ? none() : some(result.success);
@@ -2843,7 +2834,7 @@ class Interrupt extends ReasonBase {
2843
2834
  };
2844
2835
  }
2845
2836
  [symbol2](that) {
2846
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2837
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2847
2838
  }
2848
2839
  [symbol]() {
2849
2840
  return string(`${this._tag}:${this.fiberId}`);
@@ -2864,7 +2855,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2864
2855
  var hasDies = (self) => self.reasons.some(isDieReason);
2865
2856
  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;
2866
2857
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2867
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2858
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2868
2859
  var causeFilterInterruptors = (self) => {
2869
2860
  let interruptors;
2870
2861
  for (let i = 0;i < self.reasons.length; i++) {
@@ -2878,7 +2869,6 @@ var causeFilterInterruptors = (self) => {
2878
2869
  }
2879
2870
  return interruptors ? succeed(interruptors) : fail(self);
2880
2871
  };
2881
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
2882
2872
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2883
2873
  let hasFail = false;
2884
2874
  const failures = self.reasons.map((failure) => {
@@ -3189,7 +3179,7 @@ class FiberImpl {
3189
3179
  }
3190
3180
  this._stack.length = 0;
3191
3181
  this._children = undefined;
3192
- this.context = empty7();
3182
+ this.context = empty6();
3193
3183
  const cache = this.cache;
3194
3184
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3195
3185
  this.cache = {
@@ -3395,7 +3385,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3395
3385
  }));
3396
3386
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3397
3387
  const annotations = fiberStackAnnotations(parent);
3398
- let fiberArr = empty2();
3388
+ let fiberArr = empty();
3399
3389
  for (const fiber of fibers) {
3400
3390
  fiber.interruptUnsafe(parent.id, annotations);
3401
3391
  fiberArr.push(fiber);
@@ -3751,7 +3741,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3751
3741
  if (done)
3752
3742
  break;
3753
3743
  const index = i++;
3754
- const fiber = forkUnsafe(parent, effect, true, true, false);
3744
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3755
3745
  fibers.add(fiber);
3756
3746
  fiber.addObserver((exit) => {
3757
3747
  fibers.delete(fiber);
@@ -3778,7 +3768,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3778
3768
  }
3779
3769
  return flatMap5(self, f);
3780
3770
  });
3781
- var flatten2 = (self) => flatMap5(self, identity);
3771
+ var flatten3 = (self) => flatMap5(self, identity);
3782
3772
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3783
3773
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3784
3774
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3854,7 +3844,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3854
3844
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3855
3845
  step: constVoid
3856
3846
  }));
3857
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3847
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3858
3848
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3859
3849
  op: "OnFailure",
3860
3850
  [evaluate]: evaluateCont
@@ -3864,19 +3854,18 @@ var OnFailureImpl = function(self, f) {
3864
3854
  this[contE] = f;
3865
3855
  };
3866
3856
  OnFailureImpl.prototype = OnFailureProto;
3867
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3857
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3868
3858
  if (!predicate(cause)) {
3869
3859
  return failCause2(cause);
3870
3860
  }
3871
3861
  return f(cause);
3872
3862
  }));
3873
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3863
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3874
3864
  const eb = filter(cause);
3875
3865
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
3876
3866
  }));
3877
3867
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
3878
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
3879
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3868
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
3880
3869
  const result = filter(cause);
3881
3870
  if (isFailure3(result)) {
3882
3871
  return failCause2(cause);
@@ -3884,7 +3873,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3884
3873
  return andThen2(f(result.success, cause), failCause2(cause));
3885
3874
  }));
3886
3875
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
3887
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3876
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
3888
3877
  const error = findRecoverableError(cause);
3889
3878
  if (isFailure3(error))
3890
3879
  return failCause2(error.failure);
@@ -3903,7 +3892,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
3903
3892
  return f(reason, e);
3904
3893
  return orElse ? orElse(reason, e) : fail8(e);
3905
3894
  }));
3906
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
3895
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
3907
3896
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
3908
3897
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
3909
3898
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4052,7 +4041,7 @@ var runFinalizer = (finalizer, exit_) => {
4052
4041
  return exitDie(defect);
4053
4042
  }
4054
4043
  };
4055
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4044
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4056
4045
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4057
4046
  let exits = [];
4058
4047
  const fibers = [];
@@ -4063,7 +4052,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4063
4052
  if (self.strategy === "sequential") {
4064
4053
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4065
4054
  } else if (key !== parent) {
4066
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4055
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4067
4056
  }
4068
4057
  }
4069
4058
  if (fibers.length > 0) {
@@ -4071,7 +4060,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4071
4060
  }
4072
4061
  return yield* exitAsVoidAll(exits);
4073
4062
  });
4074
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4075
4063
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4076
4064
  const child = makeScope(finalizerStrategy, scope);
4077
4065
  if (scope.state._tag === "Closed") {
@@ -4135,6 +4123,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4135
4123
  var constScopeEmpty = {
4136
4124
  _tag: "Empty"
4137
4125
  };
4126
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4138
4127
  var scope2 = scopeTag;
4139
4128
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4140
4129
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4438,7 +4427,7 @@ var iterateConcurrentImpl = (options) => {
4438
4427
  });
4439
4428
  } else {
4440
4429
  effect = undefined;
4441
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4430
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4442
4431
  if (fiber._exit) {
4443
4432
  terminal = step(state, item, fiber._exit, index);
4444
4433
  if (terminal)
@@ -4519,9 +4508,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4519
4508
  });
4520
4509
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4521
4510
  interruptChildrenPatch();
4522
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4511
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4523
4512
  }));
4524
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4513
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4525
4514
  const parentRuntime = parent;
4526
4515
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4527
4516
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4539,7 +4528,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4539
4528
  };
4540
4529
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4541
4530
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4542
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4531
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4543
4532
  if (!fiber._exit) {
4544
4533
  if (scope.state._tag !== "Closed") {
4545
4534
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4584,8 +4573,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4584
4573
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4585
4574
  return self;
4586
4575
  });
4587
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4588
- var runPromiseExitWith = (context) => {
4576
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty6());
4577
+ var runCallbackWith2 = (context) => {
4578
+ const runFork = runForkWith2(context);
4579
+ return (effect, options) => {
4580
+ const fiber = runFork(effect, options);
4581
+ if (options?.onExit) {
4582
+ fiber.addObserver(options.onExit);
4583
+ }
4584
+ return (interruptor) => {
4585
+ return fiber.interruptUnsafe(interruptor);
4586
+ };
4587
+ };
4588
+ };
4589
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty6());
4590
+ var runPromiseExitWith2 = (context) => {
4589
4591
  const runFork = runForkWith2(context);
4590
4592
  return (effect, options) => {
4591
4593
  const fiber = runFork(effect, options);
@@ -4594,8 +4596,9 @@ var runPromiseExitWith = (context) => {
4594
4596
  });
4595
4597
  };
4596
4598
  };
4597
- var runPromiseWith = (context) => {
4598
- const runPromiseExit = runPromiseExitWith(context);
4599
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty6());
4600
+ var runPromiseWith2 = (context) => {
4601
+ const runPromiseExit = runPromiseExitWith2(context);
4599
4602
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4600
4603
  if (exit._tag === "Failure") {
4601
4604
  throw causeSquash(exit.cause);
@@ -4603,8 +4606,8 @@ var runPromiseWith = (context) => {
4603
4606
  return exit.value;
4604
4607
  });
4605
4608
  };
4606
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty7());
4607
- var runSyncExitWith = (context) => {
4609
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty6());
4610
+ var runSyncExitWith2 = (context) => {
4608
4611
  const runFork = runForkWith2(context);
4609
4612
  return (effect) => {
4610
4613
  if (effectIsExit(effect))
@@ -4617,9 +4620,9 @@ var runSyncExitWith = (context) => {
4617
4620
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4618
4621
  };
4619
4622
  };
4620
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty7());
4621
- var runSyncWith = (context) => {
4622
- const runSyncExit = runSyncExitWith(context);
4623
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty6());
4624
+ var runSyncWith2 = (context) => {
4625
+ const runSyncExit = runSyncExitWith2(context);
4623
4626
  return (effect) => {
4624
4627
  const exit = runSyncExit(effect);
4625
4628
  if (exit._tag === "Failure")
@@ -4627,7 +4630,7 @@ var runSyncWith = (context) => {
4627
4630
  return exit.value;
4628
4631
  };
4629
4632
  };
4630
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty7());
4633
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty6());
4631
4634
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4632
4635
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4633
4636
 
@@ -4749,7 +4752,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4749
4752
  span = noopSpan({
4750
4753
  name,
4751
4754
  parent,
4752
- annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4755
+ annotations: add(options?.annotations ?? empty6(), DisablePropagation, true)
4753
4756
  });
4754
4757
  } else {
4755
4758
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4762,12 +4765,12 @@ var makeSpanUnsafe = (fiber, name, options) => {
4762
4765
  span = tracer.span({
4763
4766
  name,
4764
4767
  parent,
4765
- annotations: options?.annotations ?? empty7(),
4768
+ annotations: options?.annotations ?? empty6(),
4766
4769
  links,
4767
4770
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4768
4771
  kind: options?.kind ?? "internal",
4769
4772
  root: options?.root ?? false,
4770
- sampled: options?.sampled ?? (isSome(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4773
+ sampled: options?.sampled ?? (isSome2(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber.getRef(MinimumTraceLevel), level))
4771
4774
  });
4772
4775
  for (const key in annotationsFromEnv) {
4773
4776
  span.attribute(key, annotationsFromEnv[key]);
@@ -5163,7 +5166,6 @@ var DeferredImpl = function() {
5163
5166
  };
5164
5167
  DeferredImpl.prototype = DeferredProto;
5165
5168
  var makeUnsafe2 = () => new DeferredImpl;
5166
- var make = () => sync2(() => makeUnsafe2());
5167
5169
  var _await = (self) => callback3((resume) => {
5168
5170
  if (self.effect)
5169
5171
  return resume(self.effect);
@@ -5179,8 +5181,8 @@ var _await = (self) => callback3((resume) => {
5179
5181
  });
5180
5182
  });
5181
5183
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5182
- var done3 = completeWith;
5183
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5184
+ var done2 = completeWith;
5185
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5184
5186
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5185
5187
  var isDoneUnsafe = (self) => self.effect !== undefined;
5186
5188
  var doneUnsafe = (self, effect) => {
@@ -5196,19 +5198,18 @@ var doneUnsafe = (self, effect) => {
5196
5198
  }
5197
5199
  return true;
5198
5200
  };
5199
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5200
5201
 
5201
5202
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5202
5203
  var TracerTimingEnabled2 = TracerTimingEnabled;
5203
5204
 
5204
5205
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5205
5206
  var Scope3 = scopeTag;
5207
+ var make = scopeMake;
5206
5208
  var makeUnsafe3 = scopeMakeUnsafe;
5207
- var provide3 = provideScope;
5209
+ var provide2 = provideScope;
5208
5210
  var addFinalizerExit = scopeAddFinalizerExit;
5209
5211
  var addFinalizer = scopeAddFinalizer;
5210
- var fork = scopeFork;
5211
- var forkUnsafe2 = scopeForkUnsafe;
5212
+ var forkUnsafe = scopeForkUnsafe;
5212
5213
  var close = scopeClose;
5213
5214
 
5214
5215
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5251,7 +5252,7 @@ var fromBuildUnsafe = (build) => {
5251
5252
  return self;
5252
5253
  };
5253
5254
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5254
- const layerScope = forkUnsafe2(scope);
5255
+ const layerScope = forkUnsafe(scope);
5255
5256
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5256
5257
  });
5257
5258
  var fromBuildMemo = (build) => {
@@ -5313,7 +5314,7 @@ var succeed3 = function() {
5313
5314
  return succeedContext(make11(arguments[0], arguments[1]));
5314
5315
  };
5315
5316
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5316
- var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5317
+ var empty7 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty6());
5317
5318
  var effect = function() {
5318
5319
  if (arguments.length === 1) {
5319
5320
  return (effect) => effectImpl(arguments[0], effect);
@@ -5321,10 +5322,10 @@ var effect = function() {
5321
5322
  return effectImpl(arguments[0], arguments[1]);
5322
5323
  };
5323
5324
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make11(service, value)));
5324
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5325
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5325
5326
  var mergeAllEffect = (layers, memoMap, scope) => {
5326
- const parentScope = forkUnsafe2(scope, "parallel");
5327
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5327
+ const parentScope = forkUnsafe(scope, "parallel");
5328
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5328
5329
  concurrency: layers.length
5329
5330
  }).pipe(map6((context) => mergeAll2(...context)));
5330
5331
  };
@@ -5336,19 +5337,16 @@ var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, tha
5336
5337
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5337
5338
  var isCause2 = isCause;
5338
5339
  var isFailReason2 = isFailReason;
5339
- var isInterruptReason = isInterruptReason2;
5340
5340
  var fromReasons = causeFromReasons;
5341
5341
  var fail2 = causeFail;
5342
5342
  var die3 = causeDie;
5343
- var hasInterruptsOnly = hasInterruptsOnly2;
5344
5343
  var map7 = causeMap;
5345
5344
  var squash = causeSquash;
5346
5345
  var findErrorOption2 = findErrorOption;
5347
5346
  var hasInterrupts = hasInterrupts2;
5348
- var filterInterruptors = causeFilterInterruptors;
5349
5347
  var isDone3 = isDone2;
5350
5348
  var Done = Done2;
5351
- var done = done2;
5349
+ var done = done3;
5352
5350
  var IllegalArgumentError2 = IllegalArgumentError;
5353
5351
  var UnknownError = UnknownError2;
5354
5352
 
@@ -5781,10 +5779,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5781
5779
  }
5782
5780
  }));
5783
5781
 
5784
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5785
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5786
- 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));
5787
-
5788
5782
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5789
5783
  var isEffect = isEffect2;
5790
5784
  var all = all3;
@@ -5812,7 +5806,7 @@ var withFiber = withFiber2;
5812
5806
  var fromResult2 = fromResult;
5813
5807
  var fromOption2 = fromOption4;
5814
5808
  var flatMap3 = flatMap5;
5815
- var flatten3 = flatten2;
5809
+ var flatten = flatten3;
5816
5810
  var andThen = andThen2;
5817
5811
  var tap = tap2;
5818
5812
  var result = result2;
@@ -5826,13 +5820,12 @@ var zipWith = zipWith3;
5826
5820
  var catch_ = catch_2;
5827
5821
  var catchTag = catchTag2;
5828
5822
  var catchReason = catchReason2;
5829
- var catchCause = catchCause2;
5823
+ var catchCause2 = catchCause;
5830
5824
  var catchIf = catchIf2;
5831
5825
  var catchCauseIf = catchCauseIf2;
5832
5826
  var mapError = mapError3;
5833
5827
  var orDie = orDie2;
5834
5828
  var tapError3 = tapError2;
5835
- var tapCause = tapCause2;
5836
5829
  var ignore = ignore2;
5837
5830
  var ignoreCause = ignoreCause2;
5838
5831
  var orElseSucceed2 = orElseSucceed;
@@ -5842,7 +5835,6 @@ var matchCauseEffect2 = matchCauseEffect;
5842
5835
  var matchEffect = matchEffect2;
5843
5836
  var context = context2;
5844
5837
  var contextWith2 = contextWith;
5845
- var provide2 = provide4;
5846
5838
  var provideContext = provideContext2;
5847
5839
  var serviceOption = serviceOption2;
5848
5840
  var updateContext2 = updateContext;
@@ -5869,13 +5861,19 @@ var forkIn = forkIn2;
5869
5861
  var forkScoped = forkScoped2;
5870
5862
  var runFork = runFork2;
5871
5863
  var runForkWith = runForkWith2;
5872
- var runPromise2 = runPromise;
5873
- var runSync2 = runSync;
5874
- var runSyncExit2 = runSyncExit;
5864
+ var runCallbackWith = runCallbackWith2;
5865
+ var runCallback = runCallback2;
5866
+ var runPromise = runPromise2;
5867
+ var runPromiseWith = runPromiseWith2;
5868
+ var runPromiseExit = runPromiseExit2;
5869
+ var runPromiseExitWith = runPromiseExitWith2;
5870
+ var runSync = runSync2;
5871
+ var runSyncWith = runSyncWith2;
5872
+ var runSyncExit = runSyncExit2;
5873
+ var runSyncExitWith = runSyncExitWith2;
5875
5874
  var fnUntraced = fnUntraced2;
5876
5875
  var fn = fn2;
5877
5876
  var clockWith = clockWith2;
5878
- var logError = /* @__PURE__ */ logWithLevel("Error");
5879
5877
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
5880
5878
  let synchronous = true;
5881
5879
  let pending;
@@ -6678,12 +6676,12 @@ class HashMapImpl {
6678
6676
  }
6679
6677
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6680
6678
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6681
- var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6679
+ var empty8 = () => new HashMapImpl(false, 0, emptyNode, 0);
6682
6680
  var get6 = /* @__PURE__ */ dual(2, (self, key) => {
6683
6681
  const impl = self;
6684
6682
  return impl._root.get(0, hash(key), key);
6685
6683
  });
6686
- var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6684
+ var has2 = /* @__PURE__ */ dual(2, (self, key) => {
6687
6685
  const impl = self;
6688
6686
  return impl._root.has(0, hash(key), key);
6689
6687
  });
@@ -6720,7 +6718,7 @@ var HashSetProto = {
6720
6718
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6721
6719
  },
6722
6720
  [symbol2](that) {
6723
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6721
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has3(that, value));
6724
6722
  },
6725
6723
  [Symbol.iterator]() {
6726
6724
  return keys2(keyMap(this));
@@ -6750,13 +6748,13 @@ var makeImpl2 = (keyMap) => {
6750
6748
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6751
6749
  var keyMap = (self) => self.keyMap;
6752
6750
  var fromIterable3 = (values) => {
6753
- let map = empty9();
6751
+ let map = empty8();
6754
6752
  for (const value of values) {
6755
6753
  map = set2(map, value, true);
6756
6754
  }
6757
6755
  return makeImpl2(map);
6758
6756
  };
6759
- var has4 = (self, value) => has3(keyMap(self), value);
6757
+ var has3 = (self, value) => has2(keyMap(self), value);
6760
6758
  var size2 = (self) => size(keyMap(self));
6761
6759
  var every2 = (self, predicate) => {
6762
6760
  for (const value of self) {
@@ -6769,7 +6767,7 @@ var every2 = (self, predicate) => {
6769
6767
 
6770
6768
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6771
6769
  var fromIterable4 = fromIterable3;
6772
- var has5 = /* @__PURE__ */ dual(2, has4);
6770
+ var has4 = /* @__PURE__ */ dual(2, has3);
6773
6771
  var size3 = size2;
6774
6772
 
6775
6773
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
@@ -7033,10 +7031,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7033
7031
  });
7034
7032
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7035
7033
  var Equivalence3 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
7036
- var empty3 = /* @__PURE__ */ Object.create(Proto5);
7034
+ var empty2 = /* @__PURE__ */ Object.create(Proto5);
7037
7035
  var fromInput = (input) => {
7038
7036
  if (input === undefined) {
7039
- return empty3;
7037
+ return empty2;
7040
7038
  } else if (Symbol.iterator in input) {
7041
7039
  const out = Object.create(Proto5);
7042
7040
  for (const [k, v] of input) {
@@ -7197,7 +7195,7 @@ var fromInputNested = (input) => {
7197
7195
  var coerce = (value) => isRedacted(value) ? value : String(value);
7198
7196
  var Equivalence4 = /* @__PURE__ */ make7((a, b) => arrayEquivalence(a.params, b.params));
7199
7197
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7200
- var empty4 = /* @__PURE__ */ make16([]);
7198
+ var empty3 = /* @__PURE__ */ make16([]);
7201
7199
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7202
7200
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7203
7201
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7266,7 +7264,7 @@ var decodeQueryKey = (key) => {
7266
7264
  return key;
7267
7265
  }
7268
7266
  };
7269
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7267
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty6(), CurrentRedactedNames2);
7270
7268
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7271
7269
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7272
7270
  });
@@ -7616,7 +7614,7 @@ var runGetter = (self, input, options) => {
7616
7614
  };
7617
7615
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7618
7616
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7619
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7617
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7620
7618
  if (self._tag === "Passthrough")
7621
7619
  return other;
7622
7620
  if (other._tag === "Passthrough")
@@ -7668,7 +7666,7 @@ function forbidden(message) {
7668
7666
  const annotations = {
7669
7667
  message: message(oe)
7670
7668
  };
7671
- return isSome(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7669
+ return isSome2(oe) ? new Forbidden(annotations, oe.value, options) : new Forbidden(annotations);
7672
7670
  });
7673
7671
  }
7674
7672
  var forbiddenEncoding = /* @__PURE__ */ forbidden(() => "Encoding is not supported");
@@ -7708,7 +7706,7 @@ function omit() {
7708
7706
  function withDefault(defaultValue) {
7709
7707
  return transformOptionalEffect((o) => {
7710
7708
  const filtered = filter(o, isNotUndefined);
7711
- return isSome(filtered) ? succeed4(filtered) : mapEager2(defaultValue, some);
7709
+ return isSome2(filtered) ? succeed4(filtered) : mapEager2(defaultValue, some);
7712
7710
  });
7713
7711
  }
7714
7712
  function String5() {
@@ -8491,7 +8489,7 @@ var Objects = class extends ASTNodeImpl {
8491
8489
  }
8492
8490
  }
8493
8491
  } else if (parseIndexes) {
8494
- const keyPairs = empty2();
8492
+ const keyPairs = empty();
8495
8493
  for (let i = 0;i < indexCount; i++) {
8496
8494
  const index = indexes[i];
8497
8495
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9009,7 +9007,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9009
9007
  return fail3(new AnyOf(ast, [issue], input, options));
9010
9008
  }
9011
9009
  function catchSingleUnionCandidate(ast, result, input, options) {
9012
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9010
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9013
9011
  }
9014
9012
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9015
9013
  const state = {
@@ -9660,7 +9658,7 @@ function compileTransformationUnsafe(transformation) {
9660
9658
  }
9661
9659
  }
9662
9660
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9663
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9661
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9664
9662
  function makeConstructorParser(descriptor, compile) {
9665
9663
  const transform = compileTransformation(descriptor.link.transformation);
9666
9664
  let sourceParser;
@@ -9916,7 +9914,7 @@ function makeEffect(schema) {
9916
9914
  function makeOption(schema) {
9917
9915
  const parser = makeEffect(schema);
9918
9916
  return (input, options) => {
9919
- const exit = runSyncExit2(parser(input, options));
9917
+ const exit = runSyncExit(parser(input, options));
9920
9918
  if (isSuccess2(exit)) {
9921
9919
  return some(exit.value);
9922
9920
  }
@@ -9955,7 +9953,7 @@ function makeIs(ast) {
9955
9953
  }
9956
9954
  const parser = entry.parser;
9957
9955
  return (input) => {
9958
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
9956
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
9959
9957
  if (isSuccess2(exit))
9960
9958
  return true;
9961
9959
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10023,7 +10021,7 @@ function runWithCompiler(compiler, ast) {
10023
10021
  };
10024
10022
  }
10025
10023
  function asExit(parser) {
10026
- return (input, options) => runSyncExit2(parser(input, options));
10024
+ return (input, options) => runSyncExit(parser(input, options));
10027
10025
  }
10028
10026
  function asOption(parser) {
10029
10027
  const parserExit = asExit(parser);
@@ -10037,7 +10035,7 @@ function asOption(parser) {
10037
10035
  };
10038
10036
  }
10039
10037
  function runSync3(effect, message) {
10040
- const exit = runSyncExit2(effect);
10038
+ const exit = runSyncExit(effect);
10041
10039
  if (isSuccess2(exit)) {
10042
10040
  return exit.value;
10043
10041
  }
@@ -11701,7 +11699,7 @@ function fromIssueEffect(self) {
11701
11699
  if (effectIsExit(self)) {
11702
11700
  return fromIssueExit(self);
11703
11701
  }
11704
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11702
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11705
11703
  }
11706
11704
  function fromIssueExit(exit) {
11707
11705
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11724,7 +11722,7 @@ function getSchemaErrorOrThrow(cause, message) {
11724
11722
  return schemaError;
11725
11723
  }
11726
11724
  function runSchemaErrorSync(self) {
11727
- const exit = runSyncExit2(self);
11725
+ const exit = runSyncExit(self);
11728
11726
  if (isSuccess2(exit)) {
11729
11727
  return exit.value;
11730
11728
  }
@@ -11836,7 +11834,7 @@ function makeTuple(ast, elements) {
11836
11834
  }
11837
11835
  });
11838
11836
  }
11839
- function Tuple(elements) {
11837
+ function Tuple2(elements) {
11840
11838
  return makeTuple(tuple(elements), elements);
11841
11839
  }
11842
11840
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -11898,7 +11896,7 @@ function toIssueEffect(self) {
11898
11896
  if (effectIsExit(self) && self._tag === "Success") {
11899
11897
  return self;
11900
11898
  }
11901
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (error) => error.issue)));
11899
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (error) => error.issue)));
11902
11900
  }
11903
11901
  function withDecodingDefaultKey(defaultValue, options) {
11904
11902
  const encode = options?.encodingStrategy === "omit" ? omit() : passthrough();
@@ -12567,7 +12565,7 @@ function Redacted(value2, options) {
12567
12565
  decode: transform((e) => make4(e, {
12568
12566
  label
12569
12567
  })),
12570
- encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12568
+ encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform(value)
12571
12569
  }),
12572
12570
  toEquivalence: ([value2]) => makeEquivalence4(value2)
12573
12571
  });
@@ -12740,7 +12738,6 @@ var Json = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json2, {
12740
12738
  var await_ = fiberAwait;
12741
12739
  var join2 = fiberJoin;
12742
12740
  var interrupt2 = fiberInterrupt;
12743
- var interruptAll = fiberInterruptAll;
12744
12741
  var getCurrent = getCurrentFiber;
12745
12742
  var runIn = fiberRunIn;
12746
12743
 
@@ -13278,13 +13275,13 @@ var ChannelProto = {
13278
13275
  };
13279
13276
  var fromTransform = (transform) => {
13280
13277
  const self = Object.create(ChannelProto);
13281
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13278
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13282
13279
  return self;
13283
13280
  };
13284
13281
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13285
13282
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13286
13283
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13287
- const closableScope = forkUnsafe2(scope);
13284
+ const closableScope = forkUnsafe(scope);
13288
13285
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13289
13286
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13290
13287
  return onError(pull, onCause);
@@ -13294,7 +13291,7 @@ var DefaultChunkSize = 4096;
13294
13291
  var asyncQueue = (scope, f, options) => make2({
13295
13292
  capacity: options?.bufferSize,
13296
13293
  strategy: options?.strategy
13297
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13294
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13298
13295
  startImmediately: true
13299
13296
  }))));
13300
13297
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13325,7 +13322,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13325
13322
  };
13326
13323
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13327
13324
  var succeed8 = (value) => fromEffect2(succeed4(value));
13328
- var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13325
+ var empty10 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13329
13326
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13330
13327
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13331
13328
  let done2 = false;
@@ -13399,13 +13396,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13399
13396
  return void_2;
13400
13397
  }), forever({
13401
13398
  disableYield: true
13402
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13399
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13403
13400
  } else {
13404
13401
  const effects = yield* bounded(concurrencyN - 2);
13405
13402
  yield* addFinalizer(forkedScope, shutdown(effects));
13406
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13403
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13407
13404
  disableYield: true
13408
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13405
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13409
13406
  let errorCause;
13410
13407
  const onExit = (exit) => {
13411
13408
  if (exit._tag === "Success")
@@ -13423,7 +13420,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13423
13420
  return offer(effects, join2(fiber));
13424
13421
  }), forever({
13425
13422
  disableYield: true
13426
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13423
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13427
13424
  }
13428
13425
  return take(queue);
13429
13426
  }));
@@ -13432,7 +13429,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13432
13429
  let childPull;
13433
13430
  let childScope;
13434
13431
  const makePull = flatMap3(pull, (value) => {
13435
- childScope ??= forkUnsafe2(scope);
13432
+ childScope ??= forkUnsafe(scope);
13436
13433
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13437
13434
  childPull = catchHalt(pull);
13438
13435
  return childPull;
@@ -13512,7 +13509,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13512
13509
  }
13513
13510
  }
13514
13511
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13515
- const childScope = forkUnsafe2(forkedScope);
13512
+ const childScope = forkUnsafe(forkedScope);
13516
13513
  const childPull = yield* toTransform(channel)(upstream, childScope);
13517
13514
  while (fibers.size >= concurrencyN) {
13518
13515
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13541,7 +13538,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13541
13538
  doneLatch.closeUnsafe();
13542
13539
  fibers.set(fiber, childScope);
13543
13540
  }
13544
- }).pipe(catchCause((cause) => {
13541
+ }).pipe(catchCause2((cause) => {
13545
13542
  const halt = filterDone(cause);
13546
13543
  if (isSuccess(halt)) {
13547
13544
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13577,8 +13574,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13577
13574
  onFailure: (cause) => onExit(side, cause),
13578
13575
  onSuccess: () => onExit(side, cause)
13579
13576
  }))), forkIn(forkedScope));
13580
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13581
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13577
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13578
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13582
13579
  return take(queue);
13583
13580
  })));
13584
13581
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13678,15 +13675,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13678
13675
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13679
13676
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13680
13677
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13681
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13678
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13682
13679
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13683
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13680
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13684
13681
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13685
13682
  let pull;
13686
13683
  return succeed4(suspend(() => {
13687
13684
  if (pull)
13688
13685
  return pull;
13689
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13686
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13690
13687
  }));
13691
13688
  });
13692
13689
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13702,7 +13699,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13702
13699
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13703
13700
  disableYield: true
13704
13701
  }));
13705
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13702
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13706
13703
  disableYield: true
13707
13704
  })));
13708
13705
  var mkUint8Array = (self) => map4(runFold(self, () => ({
@@ -13773,7 +13770,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
13773
13770
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
13774
13771
  var toChannel = (stream) => stream.channel;
13775
13772
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
13776
- var empty5 = /* @__PURE__ */ fromChannel(empty11);
13773
+ var empty4 = /* @__PURE__ */ fromChannel(empty10);
13777
13774
  var suspend3 = (stream) => {
13778
13775
  const suspended = fromChannel(suspend5(() => stream().channel));
13779
13776
  suspendedStreams.set(suspended, stream);
@@ -13782,7 +13779,7 @@ var suspend3 = (stream) => {
13782
13779
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
13783
13780
  var fail6 = (error) => fromChannel(fail10(error));
13784
13781
  var fromIterable2 = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
13785
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
13782
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty4;
13786
13783
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
13787
13784
  var paginate = (s, f) => fromPull(sync(() => {
13788
13785
  let state = s;
@@ -13843,7 +13840,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
13843
13840
  return acc;
13844
13841
  });
13845
13842
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
13846
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
13843
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
13847
13844
  let i = 0;
13848
13845
  return whileLoop2({
13849
13846
  while: () => i < arr.length,
@@ -13863,7 +13860,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13863
13860
  const onAbort = () => fiber.interruptUnsafe();
13864
13861
  return new ReadableStream({
13865
13862
  start(controller) {
13866
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13863
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
13867
13864
  latch.closeUnsafe();
13868
13865
  for (let i = 0;i < chunk.length; i++) {
13869
13866
  controller.enqueue(chunk[i]);
@@ -13900,7 +13897,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
13900
13897
  if (!fiber)
13901
13898
  return;
13902
13899
  cancelled = true;
13903
- return runPromise2(asVoid2(interrupt2(fiber)));
13900
+ return runPromise(asVoid2(interrupt2(fiber)));
13904
13901
  }
13905
13902
  }, options?.strategy);
13906
13903
  });
@@ -14278,7 +14275,7 @@ class Empty2 extends Proto8 {
14278
14275
  };
14279
14276
  }
14280
14277
  }
14281
- var empty6 = /* @__PURE__ */ new Empty2;
14278
+ var empty5 = /* @__PURE__ */ new Empty2;
14282
14279
  class Uint8Array3 extends Proto8 {
14283
14280
  _tag = "Uint8Array";
14284
14281
  contentType;
@@ -14448,8 +14445,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14448
14445
  self.body = body;
14449
14446
  return self;
14450
14447
  }
14451
- var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14452
- var make24 = (method) => (url, options) => modify(empty12, {
14448
+ var empty11 = /* @__PURE__ */ makeWith("GET", "", empty3, /* @__PURE__ */ none(), empty2, empty5);
14449
+ var make24 = (method) => (url, options) => modify(empty11, {
14453
14450
  method,
14454
14451
  url,
14455
14452
  ...options ?? undefined
@@ -14783,7 +14780,7 @@ class WebHttpClientResponse extends Class2 {
14783
14780
  cause
14784
14781
  })
14785
14782
  })
14786
- }).pipe(cached, runSync2);
14783
+ }).pipe(cached, runSync);
14787
14784
  }
14788
14785
  arrayBufferBody;
14789
14786
  get arrayBuffer() {
@@ -14799,7 +14796,7 @@ class WebHttpClientResponse extends Class2 {
14799
14796
  cause
14800
14797
  })
14801
14798
  })
14802
- }).pipe(cached, runSync2);
14799
+ }).pipe(cached, runSync);
14803
14800
  return this.arrayBufferBody;
14804
14801
  }
14805
14802
  get upgrade() {
@@ -15217,7 +15214,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15217
15214
  return send(undefined);
15218
15215
  });
15219
15216
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15220
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15217
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15221
15218
  var __defProp = Object.defineProperty;
15222
15219
  var __exportAll3 = (all, no_symbols) => {
15223
15220
  let target = {};
@@ -15231,7 +15228,7 @@ var __exportAll3 = (all, no_symbols) => {
15231
15228
  return target;
15232
15229
  };
15233
15230
 
15234
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15231
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15235
15232
  var DefinitionIdentifierKindSchema = Literals([
15236
15233
  "dual",
15237
15234
  "plugin",
@@ -15283,7 +15280,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15283
15280
  }) {
15284
15281
  };
15285
15282
 
15286
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15283
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15287
15284
  var identifierSchema = String3.check(isPattern(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15288
15285
  var isIdentifier = is(identifierSchema);
15289
15286
  var validateIdentifier = (kind, identifier) => {
@@ -15308,12 +15305,12 @@ var validateIdentifier = (kind, identifier) => {
15308
15305
  });
15309
15306
  };
15310
15307
 
15311
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15308
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15312
15309
  var PipeableProto = { pipe() {
15313
15310
  return pipeArguments(this, arguments);
15314
15311
  } };
15315
15312
 
15316
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15313
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15317
15314
  var Action_exports = /* @__PURE__ */ __exportAll3({
15318
15315
  ActionHandlerError: () => ActionHandlerError,
15319
15316
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15426,7 +15423,7 @@ var make26 = (identifier, options) => {
15426
15423
  };
15427
15424
  var isAction = (u) => hasProperty(u, TypeId29);
15428
15425
 
15429
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15426
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15430
15427
  var makeBinding = (options) => ({
15431
15428
  connectionId: options.connectionId,
15432
15429
  method: options.method,
@@ -15436,7 +15433,7 @@ var makeBinding = (options) => ({
15436
15433
  });
15437
15434
  var isBindingForMethod = (binding, method) => binding.method === method;
15438
15435
 
15439
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15436
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15440
15437
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15441
15438
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15442
15439
  Service: () => Service3
@@ -15444,7 +15441,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15444
15441
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15445
15442
  };
15446
15443
 
15447
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15444
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15448
15445
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15449
15446
  cause,
15450
15447
  methodIdentifier,
@@ -15606,7 +15603,7 @@ var test = (method, material, context) => {
15606
15603
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15607
15604
  };
15608
15605
 
15609
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15606
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15610
15607
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15611
15608
  AuthMethodHookError: () => AuthMethodHookError,
15612
15609
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15780,7 +15777,7 @@ var oauth2 = (identifier, options) => {
15780
15777
  };
15781
15778
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15782
15779
 
15783
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15780
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15784
15781
  var ToolFile_exports = /* @__PURE__ */ __exportAll3({
15785
15782
  Schema: () => Schema,
15786
15783
  ToolFile: () => ToolFile_exports
@@ -15795,7 +15792,7 @@ var Schema = TaggedStruct("ToolFile", {
15795
15792
  sizeBytes: Natural
15796
15793
  });
15797
15794
 
15798
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15795
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
15799
15796
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
15800
15797
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
15801
15798
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -15816,13 +15813,13 @@ var findHandler = (context, providerId, handlerKey) => {
15816
15813
  return isMap(group) ? group.get(handlerKey) : undefined;
15817
15814
  };
15818
15815
 
15819
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15816
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
15820
15817
  function decodeJson(schema, value) {
15821
15818
  return decodeUnknownEffect(toCodecJson2(schema))(value);
15822
15819
  }
15823
15820
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
15824
15821
 
15825
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15822
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
15826
15823
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
15827
15824
  connectionId: String3,
15828
15825
  phase: optional(String3),
@@ -15918,7 +15915,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
15918
15915
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
15919
15916
  };
15920
15917
 
15921
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15918
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
15922
15919
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
15923
15920
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
15924
15921
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -15978,7 +15975,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
15978
15975
  });
15979
15976
  });
15980
15977
 
15981
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15978
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
15982
15979
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
15983
15980
  description: error.message,
15984
15981
  triggerId
@@ -16113,7 +16110,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16113
16110
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16114
16111
  };
16115
16112
 
16116
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16113
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16117
16114
  var runPhase = (options) => gen(function* () {
16118
16115
  const { entry, phase, request } = options;
16119
16116
  const runtime = yield* options.hook;
@@ -16196,7 +16193,7 @@ var poll2 = (entry, request) => runPhase({
16196
16193
  phase: "poll",
16197
16194
  request
16198
16195
  });
16199
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16196
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16200
16197
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16201
16198
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16202
16199
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -16408,10 +16405,10 @@ var verify2 = verify;
16408
16405
  var parse3 = parse2;
16409
16406
  var poll3 = poll2;
16410
16407
 
16411
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16408
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
16412
16409
  var appendElements = (existing, additions) => [...existing, ...additions];
16413
16410
 
16414
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16411
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
16415
16412
  var partitionChildren = (children) => ({
16416
16413
  actions: children.filter(isAction),
16417
16414
  groups: children.filter(isGroup),
@@ -16451,7 +16448,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
16451
16448
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
16452
16449
  };
16453
16450
 
16454
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16451
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
16455
16452
  var Group_exports = /* @__PURE__ */ __exportAll3({
16456
16453
  TypeId: () => TypeId32,
16457
16454
  add: () => add4,
@@ -16513,7 +16510,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
16513
16510
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
16514
16511
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
16515
16512
 
16516
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16513
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
16517
16514
  var Key3 = NonEmptyString.check(isMaxLength(512), isPattern(/^[^\p{Cc}]+$/u));
16518
16515
  var OperationKind = Literals([
16519
16516
  "present_outcome",
@@ -16602,7 +16599,7 @@ var VerifiedIdentity = Struct({
16602
16599
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
16603
16600
  var Verification = Struct({ verified: Literal(true) });
16604
16601
  var Exposure = Literals(["webhook", "host"]);
16605
- var RequiredChecks = Tuple([Literal("access")]);
16602
+ var RequiredChecks = Tuple2([Literal("access")]);
16606
16603
  var Message = Struct({
16607
16604
  content: Content,
16608
16605
  conversation: Destination,
@@ -16999,7 +16996,7 @@ var validateDefinition = (definition, providerId, methods) => {
16999
16996
  }
17000
16997
  };
17001
16998
 
17002
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
16999
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17003
17000
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17004
17001
  const seen = /* @__PURE__ */ new Set;
17005
17002
  for (const method of methods) {
@@ -17012,7 +17009,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17012
17009
  }
17013
17010
  };
17014
17011
 
17015
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17012
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17016
17013
  var walkCapabilities = (provider, select) => {
17017
17014
  const entries = [];
17018
17015
  const visit = (owner, prefix) => {
@@ -17031,7 +17028,7 @@ var walkCapabilities = (provider, select) => {
17031
17028
  return entries;
17032
17029
  };
17033
17030
 
17034
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17031
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17035
17032
  var missingDeclaration = (kind, localId, pluginId) => {
17036
17033
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17037
17034
  };
@@ -17076,7 +17073,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17076
17073
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17077
17074
  });
17078
17075
 
17079
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17076
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17080
17077
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17081
17078
  TypeId: () => TypeId33,
17082
17079
  add: () => add5,
@@ -17084,7 +17081,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17084
17081
  isGitRequest: () => isGitRequest,
17085
17082
  isPlugin: () => isPlugin,
17086
17083
  make: () => make6,
17087
- provide: () => provide6,
17084
+ provide: () => provide4,
17088
17085
  toLayer: () => toLayer2,
17089
17086
  withAction: () => withAction2,
17090
17087
  withAgentChannel: () => withAgentChannel,
@@ -17159,7 +17156,7 @@ var make6 = (identifier) => makePlugin({
17159
17156
  iconUrl: undefined,
17160
17157
  iconUrlDark: undefined,
17161
17158
  identifier,
17162
- layer: empty8,
17159
+ layer: empty7,
17163
17160
  name: undefined,
17164
17161
  sandboxAccess: undefined,
17165
17162
  triggers: []
@@ -17209,7 +17206,7 @@ var withAgentChannel = (channel) => (plugin) => {
17209
17206
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17210
17207
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17211
17208
  };
17212
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17209
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17213
17210
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17214
17211
  action: (name, handler) => makeHandlers({
17215
17212
  ...actions,
@@ -17247,7 +17244,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17247
17244
  return yield* toHandlers(plugin, handlers);
17248
17245
  }));
17249
17246
 
17250
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17247
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17251
17248
  var ConnectionContext = Struct({
17252
17249
  actor: optionalKey(Union([Struct({
17253
17250
  kind: Literal("user"),
@@ -17285,7 +17282,7 @@ var AccessInput = Struct({
17285
17282
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17286
17283
  };
17287
17284
  var fail11 = (code) => new ChannelError({ code });
17288
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17285
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17289
17286
  var AssetResultJson = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17290
17287
  var Json3 = Json.check(makeFilter((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17291
17288
  var strict = { onExcessProperty: "error" };
@@ -17301,11 +17298,11 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17301
17298
  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({
17302
17299
  code: "provider_failure",
17303
17300
  providerCode: checked.code
17304
- }))))), catchCause((cause) => {
17301
+ }))))), catchCause2((cause) => {
17305
17302
  if (hasInterrupts(cause))
17306
17303
  return interrupt;
17307
17304
  const error = findErrorOption2(cause);
17308
- return isSome(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17305
+ return isSome2(error) && error.value instanceof ChannelError ? fail5(error.value) : fail5(fail11("provider_failure"));
17309
17306
  }));
17310
17307
  var checkExtensions = fn("AgentChannelRuntime.checkExtensions")(function* (definition, extensions, code) {
17311
17308
  for (const [key, value] of Object.entries(extensions ?? {})) {
@@ -17531,7 +17528,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17531
17528
  });
17532
17529
  }));
17533
17530
 
17534
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17531
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17535
17532
  var TypeId34 = "@dual-os/sdk/AiProvider";
17536
17533
  var RuntimeConfig = Struct({
17537
17534
  apiKey: optional(String3),
@@ -17589,7 +17586,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17589
17586
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17590
17587
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17591
17588
 
17592
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17589
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17593
17590
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17594
17591
  action: node,
17595
17592
  actionId: canonicalId,
@@ -17610,7 +17607,7 @@ var resolveAction = (installations, actionId, version) => {
17610
17607
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17611
17608
  };
17612
17609
 
17613
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17610
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17614
17611
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17615
17612
  authMethods: installation.plugin.authMethods,
17616
17613
  localId: walked.localId,
@@ -17631,7 +17628,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17631
17628
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17632
17629
  };
17633
17630
 
17634
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17631
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17635
17632
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17636
17633
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17637
17634
  var authMethodMetadataJson = (method) => {
@@ -17790,7 +17787,7 @@ var materializeResolvedRegistry = (input) => {
17790
17787
  };
17791
17788
  };
17792
17789
 
17793
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17790
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17794
17791
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17795
17792
  };
17796
17793
  var materializePlugin = (plugin, options) => ({
@@ -17809,7 +17806,7 @@ var materializePlugin = (plugin, options) => ({
17809
17806
  }).providers
17810
17807
  });
17811
17808
 
17812
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17809
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17813
17810
  var FieldIssue = class extends Class4("FieldIssue")({
17814
17811
  message: String3,
17815
17812
  path: String3
@@ -17882,7 +17879,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
17882
17879
  fields: schemaErrorFields(error)
17883
17880
  }))));
17884
17881
 
17885
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17882
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
17886
17883
  var install = (plugin, version) => ({
17887
17884
  plugin,
17888
17885
  version
@@ -18086,7 +18083,7 @@ var toLayer = (app) => {
18086
18083
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18087
18084
  };
18088
18085
 
18089
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18086
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18090
18087
  var File3 = TaggedStruct("File", {
18091
18088
  contentType: String3,
18092
18089
  id: NonEmptyString,
@@ -18108,7 +18105,7 @@ var write = fnUntraced(function* (file) {
18108
18105
  return yield* (yield* service3).write(file);
18109
18106
  });
18110
18107
 
18111
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18108
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18112
18109
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18113
18110
  cause: optionalKey(Redacted(Defect())),
18114
18111
  message: String3
@@ -18166,7 +18163,7 @@ var ReservedTokenHeaders = fromIterable4([
18166
18163
  ]);
18167
18164
  var TokenHeaders = Record(String3, String3.check(isPattern(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter((headers) => {
18168
18165
  const names = map3(keys(headers), toLowerCase);
18169
- return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has5(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18166
+ return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has4(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18170
18167
  }, { message: "Invalid provider token headers" }));
18171
18168
  Struct({
18172
18169
  authorizationParams: Record(String3, String3),
@@ -18524,7 +18521,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18524
18521
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18525
18522
  }));
18526
18523
 
18527
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18524
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18528
18525
  var Identity = Struct({
18529
18526
  artifactDigest: String3.check(isPattern(/^[a-f0-9]{128}$/u)),
18530
18527
  invocationId: NonEmptyString,
@@ -18864,7 +18861,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18864
18861
  })));
18865
18862
  });
18866
18863
 
18867
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18864
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18868
18865
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
18869
18866
  category: Literals([
18870
18867
  "transport",
@@ -18880,49 +18877,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
18880
18877
  var maxPayloadBytes = 1048576;
18881
18878
  var maxMetadataBytes = 67108864;
18882
18879
  var maxChannelResultBytes = 16777216;
18883
- function ipcMessages(channel) {
18884
- return callback2((queue) => {
18885
- const message = (value) => {
18886
- offerUnsafe(queue, value);
18887
- };
18888
- const disconnected = () => {
18889
- endUnsafe(queue);
18890
- };
18891
- const failed = (cause) => {
18892
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
18893
- category: "runner",
18894
- cause: make4(cause),
18895
- message: "Plugin IPC channel failed"
18896
- })));
18897
- };
18898
- return acquireRelease(sync(() => {
18899
- channel.on("message", message);
18900
- channel.on("disconnect", disconnected);
18901
- channel.on("error", failed);
18902
- }), () => sync(() => {
18903
- channel.removeListener("message", message);
18904
- channel.removeListener("disconnect", disconnected);
18905
- channel.removeListener("error", failed);
18906
- }));
18907
- });
18908
- }
18909
- function sendIpc(channel, value) {
18910
- return try_2({
18911
- try: () => {
18912
- if (!channel.connected || channel.send === undefined)
18913
- throw PluginExecutionError.make({
18914
- category: "runner",
18915
- message: "Plugin IPC channel is closed"
18916
- });
18917
- channel.send(value);
18918
- },
18919
- catch: (cause) => PluginExecutionError.make({
18920
- category: "runner",
18921
- cause: make4(cause),
18922
- message: "Cannot send plugin IPC message"
18923
- })
18924
- });
18925
- }
18926
18880
  var OAuthContinuation = Struct({
18927
18881
  expiresAt: DateFromString,
18928
18882
  pkceVerifier: NullOr(String3),
@@ -18990,8 +18944,6 @@ var ExecutionRequest = Union([
18990
18944
  ChannelSettingsRequest
18991
18945
  ]);
18992
18946
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
18993
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
18994
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
18995
18947
  function checkMessageSize(value, maximum) {
18996
18948
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
18997
18949
  return void_2;
@@ -19001,24 +18953,24 @@ function checkMessageSize(value, maximum) {
19001
18953
  }));
19002
18954
  }
19003
18955
  var encodeInput = fnUntraced(function* (input) {
19004
- const encoded = yield* encodeEffect(Input2)(input);
18956
+ const encoded = yield* encodeEffect(Request4)(input);
19005
18957
  yield* checkMessageSize(encoded, maxPayloadBytes);
19006
18958
  return encoded;
19007
18959
  });
19008
18960
  var decodeInput = fnUntraced(function* (input) {
19009
18961
  const json = yield* decodeUnknownEffect(Json)(input);
19010
18962
  yield* checkMessageSize(json, maxPayloadBytes);
19011
- return yield* decodeUnknownEffect(Input2)(json);
18963
+ return yield* decodeUnknownEffect(Request4)(json);
19012
18964
  });
19013
18965
  var encodeOutput = fnUntraced(function* (output, maximum) {
19014
- const encoded = yield* encodeEffect(Output)(output);
18966
+ const encoded = yield* encodeEffect(Response)(output);
19015
18967
  yield* checkMessageSize(encoded, maximum);
19016
18968
  return encoded;
19017
18969
  });
19018
18970
  var decodeOutput = fnUntraced(function* (output) {
19019
18971
  const json = yield* decodeUnknownEffect(Json)(output);
19020
18972
  yield* checkMessageSize(json, maxMetadataBytes);
19021
- return yield* decodeUnknownEffect(Output)(json);
18973
+ return yield* decodeUnknownEffect(Response)(json);
19022
18974
  });
19023
18975
  function responseLimit(request) {
19024
18976
  if ("_tag" in request && request._tag === "extract")
@@ -19050,7 +19002,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19050
19002
  bytes: Buffer.alloc(maximum),
19051
19003
  size: 0
19052
19004
  };
19053
- yield* pipe(input, runForEach((chunk) => gen(function* () {
19005
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19054
19006
  if (output.size + chunk.byteLength > maximum)
19055
19007
  return yield* PluginExecutionError.make({
19056
19008
  category: "protocol",
@@ -19171,7 +19123,7 @@ var execute3 = fnUntraced(function* (request) {
19171
19123
  return yield* executeChannelSettings(request);
19172
19124
  });
19173
19125
 
19174
- 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, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, empty, fromEntries, toEntries, has, get2, map2, fromIterable, ensure, append, isArray, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty2, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, some2, join, fromInputUnsafe, isFinite, millis, hours, toMillis, toPredicate, has2, compose, TaggedClass, Error3, TaggedError, forkUnsafe, isInterruptReason, fail2, hasInterruptsOnly, squash, hasInterrupts, filterInterruptors, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, make, _await, fail4, isDone, isDoneUnsafe, doneUnsafe, into, Scope3, 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, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, withDecodingDefaultKey, tag, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, Natural, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, URLFromString, fromJsonString, Uint8ArrayFromBase64, Error4, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, 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, discriminatorsExhaustive, orElse2, empty6, HttpClientError, InvalidUrlError, makeWith, get4, post, put, del, setMethod, setHeader, setHeaders, basicAuth, bearerToken, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyText, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_exports, Schema, Key3, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, Identity, filesUnavailable, PluginExecutionError, ipcMessages, sendIpc, decodeInput, encodeOutput, responseLimit, execute3 };
19126
+ 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, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, fromEntries, toEntries, has, get2, map2, fromIterable, ensure, append, isArray, isReadonlyArrayNonEmpty, getUnsafe2, headNonEmpty, findFirst, sort, zip, contains, empty, of, map3, flatMap2, filterMap, filter2, reduce, fromNullishOr2, every, some2, join, fromInputUnsafe, isFinite, millis, hours, toMillis, TaggedClass, Error3, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope3, 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, Unknown, Null, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, withDecodingDefaultKey, tag, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, Natural, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, URLFromString, fromJsonString, Uint8ArrayFromBase64, Error4, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get3, 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, discriminatorsExhaustive, orElse2, empty5, HttpClientError, InvalidUrlError, makeWith, get4, post, put, del, setMethod, setHeader, setHeaders, basicAuth, bearerToken, setUrl, updateUrl, setUrlParam, setUrlParams, setBody, bodyUint8Array, bodyText, bodyJsonUnsafe, bodyFormDataRecord, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, __exportAll3, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, ToolFile_exports, Schema, Key3, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19175
19127
 
19176
- //# debugId=9045E08FAE0E508664756E2164756E21
19177
- //# sourceMappingURL=plugin-ykwfweh8.js.map
19128
+ //# debugId=4BE8A2BA2966A57564756E2164756E21
19129
+ //# sourceMappingURL=plugin-e49xr86e.js.map