@dual-os/linear-api 6.0.4 → 6.0.5

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.
Files changed (38) hide show
  1. package/Runner.js +229 -463
  2. package/Runner.js.map +5 -9
  3. package/bundle-inventory.json +1 -1
  4. package/dist/auth.js +4 -4
  5. package/dist/channel/internal/webhook.js +3 -3
  6. package/dist/channel/linear-app-client.js +3 -3
  7. package/dist/channel/linear-app-definition.js +3 -3
  8. package/dist/channel/linear-app.js +6 -6
  9. package/dist/generated/http.js +5 -5
  10. package/dist/generated/operations.js +6 -6
  11. package/dist/generated/plugin.js +8 -8
  12. package/dist/plugin.js +11 -11
  13. package/dist/triggers.js +7 -7
  14. package/dual-plugin.json +1 -1
  15. package/package.json +1 -1
  16. package/{plugin-srg9rdjf.js → plugin-03c4ezxj.js} +2 -2
  17. package/{plugin-v0kgp19h.js → plugin-0pkez622.js} +17 -17
  18. package/{plugin-v0kgp19h.js.map → plugin-0pkez622.js.map} +3 -3
  19. package/{plugin-dbxxf9k5.js → plugin-292sech3.js} +3 -3
  20. package/{plugin-xv11dhcc.js → plugin-5d2kw2pq.js} +5 -5
  21. package/{plugin-d4a2ytg0.js → plugin-9vdeenc2.js} +179 -227
  22. package/{plugin-d4a2ytg0.js.map → plugin-9vdeenc2.js.map} +4 -5
  23. package/{plugin-15tbf6dq.js → plugin-aaq7c99y.js} +2 -2
  24. package/{plugin-bcdkw9ac.js → plugin-acwx0zjc.js} +5 -5
  25. package/{plugin-9w5999vc.js → plugin-c5xtmfce.js} +3 -3
  26. package/{plugin-5bqv66ke.js → plugin-evq9z31a.js} +3 -3
  27. package/{plugin-s3mapcpn.js → plugin-jgac4d6v.js} +3 -3
  28. package/{plugin-e503g25g.js → plugin-pbx41zqr.js} +9 -9
  29. package/{plugin-e503g25g.js.map → plugin-pbx41zqr.js.map} +2 -2
  30. /package/licenses/{@dual-os_sdk@0.8.1 → @dual-os_sdk@0.9.0}/LICENSE +0 -0
  31. /package/{plugin-srg9rdjf.js.map → plugin-03c4ezxj.js.map} +0 -0
  32. /package/{plugin-dbxxf9k5.js.map → plugin-292sech3.js.map} +0 -0
  33. /package/{plugin-xv11dhcc.js.map → plugin-5d2kw2pq.js.map} +0 -0
  34. /package/{plugin-15tbf6dq.js.map → plugin-aaq7c99y.js.map} +0 -0
  35. /package/{plugin-bcdkw9ac.js.map → plugin-acwx0zjc.js.map} +0 -0
  36. /package/{plugin-9w5999vc.js.map → plugin-c5xtmfce.js.map} +0 -0
  37. /package/{plugin-5bqv66ke.js.map → plugin-evq9z31a.js.map} +0 -0
  38. /package/{plugin-s3mapcpn.js.map → plugin-jgac4d6v.js.map} +0 -0
@@ -599,7 +599,7 @@ var byReferenceUnsafe = (obj) => {
599
599
  var make8 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
600
600
  var isStrictEquivalent = (x, y) => x === y;
601
601
  var strictEqual = () => isStrictEquivalent;
602
- function Tuple2(elements) {
602
+ function Tuple(elements) {
603
603
  return make8((self, that) => {
604
604
  if (self.length !== that.length) {
605
605
  return false;
@@ -1146,7 +1146,7 @@ var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
1146
1146
  var causeAddInterrupts = (self, interrupts) => {
1147
1147
  const reasons = self.reasons.slice();
1148
1148
  for (const reason of interrupts.reasons) {
1149
- if (isInterruptReason2(reason) && !reasons.some((r) => isInterruptReason2(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1149
+ if (isInterruptReason(reason) && !reasons.some((r) => isInterruptReason(r) && r.fiberId === reason.fiberId && r.annotations === reason.annotations)) {
1150
1150
  reasons.push(reason);
1151
1151
  }
1152
1152
  }
@@ -1184,7 +1184,7 @@ var causeAnnotate = /* @__PURE__ */ dual((args) => isCause(args[0]), (self, anno
1184
1184
  });
1185
1185
  var isFailReason = (self) => self._tag === "Fail";
1186
1186
  var isDieReason = (self) => self._tag === "Die";
1187
- var isInterruptReason2 = (self) => self._tag === "Interrupt";
1187
+ var isInterruptReason = (self) => self._tag === "Interrupt";
1188
1188
  function defaultEvaluate(_fiber) {
1189
1189
  return exitDie(`Effect.evaluate: Not implemented`);
1190
1190
  }
@@ -1369,7 +1369,7 @@ var Done2 = (value) => {
1369
1369
  };
1370
1370
  };
1371
1371
  var doneVoid = /* @__PURE__ */ exitFail(DoneVoid);
1372
- var done2 = (value) => {
1372
+ var done3 = (value) => {
1373
1373
  if (value === undefined)
1374
1374
  return doneVoid;
1375
1375
  return exitFail(Done2(value));
@@ -1651,7 +1651,7 @@ var applyOverlays = (map, overlay) => {
1651
1651
  applyOverlays(map, overlay.parent);
1652
1652
  map.set(overlay.key, overlay.value);
1653
1653
  };
1654
- var flatten = (self) => {
1654
+ var flatten2 = (self) => {
1655
1655
  if (self._flat)
1656
1656
  return self._flat;
1657
1657
  if (!self.overlay)
@@ -1676,7 +1676,7 @@ var lookup = (self, key) => {
1676
1676
  if (value === undefined && !impl.base.has(key))
1677
1677
  return notFound;
1678
1678
  if (impl.overlay && ++impl.baseHits >= impl.base.size && impl.baseHits >= FlattenAfterBaseHits) {
1679
- impl.base = flatten(impl);
1679
+ impl.base = flatten2(impl);
1680
1680
  impl.overlay = undefined;
1681
1681
  impl.depth = 0;
1682
1682
  }
@@ -1688,7 +1688,7 @@ var makeUnsafe = (mapUnsafe, options) => {
1688
1688
  };
1689
1689
  var Proto = {
1690
1690
  get mapUnsafe() {
1691
- return flatten(this);
1691
+ return flatten2(this);
1692
1692
  },
1693
1693
  ...PipeInspectableProto,
1694
1694
  [TypeId3]: {
@@ -1723,7 +1723,7 @@ var Proto = {
1723
1723
  var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
1724
1724
  var isContext = (u) => hasProperty(u, TypeId3);
1725
1725
  var isReference = (u) => !!u[ReferenceTypeId];
1726
- var empty7 = () => emptyContext2;
1726
+ var empty6 = () => emptyContext2;
1727
1727
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
1728
1728
  var make9 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
1729
1729
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
@@ -1891,7 +1891,7 @@ var normalizeNonEmpty = (n) => Math.max(1, normalize(n));
1891
1891
 
1892
1892
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
1893
1893
  var make10 = (...elements) => elements;
1894
- var makeEquivalence2 = Tuple2;
1894
+ var makeEquivalence2 = Tuple;
1895
1895
 
1896
1896
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
1897
1897
  var headUnsafe = (self) => {
@@ -1931,7 +1931,6 @@ var constEmptyIterator = {
1931
1931
  };
1932
1932
  }
1933
1933
  };
1934
- var empty = () => constEmpty;
1935
1934
 
1936
1935
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Array.js
1937
1936
  var Array2 = globalThis.Array;
@@ -2047,7 +2046,7 @@ var hashBucketsAdd = (buckets, value) => {
2047
2046
  bucket.push(value);
2048
2047
  return true;
2049
2048
  };
2050
- var empty2 = () => [];
2049
+ var empty = () => [];
2051
2050
  var of = (a) => [a];
2052
2051
  var map3 = /* @__PURE__ */ dual(2, (self, f) => self.map(f));
2053
2052
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => {
@@ -2094,7 +2093,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
2094
2093
  return out;
2095
2094
  });
2096
2095
  var reduce = /* @__PURE__ */ dual(3, (self, b, f) => fromIterable2(self).reduce((b, a, i) => f(b, a, i), b));
2097
- var fromNullishOr2 = (a) => a == null ? empty2() : [a];
2096
+ var fromNullishOr2 = (a) => a == null ? empty() : [a];
2098
2097
  var every = /* @__PURE__ */ dual(2, (self, refinement) => self.every(refinement));
2099
2098
  var some2 = /* @__PURE__ */ dual(2, (self, predicate) => self.some(predicate));
2100
2099
  var makeEquivalence3 = Array_;
@@ -2549,14 +2548,6 @@ var format2 = (self) => {
2549
2548
  };
2550
2549
 
2551
2550
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Filter.js
2552
- var toPredicate = (self) => (input) => !isFailure3(self(input));
2553
- var has2 = (key) => (input) => input.has(key) ? succeed(input) : fail(input);
2554
- var compose = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2555
- const leftOut = left(input);
2556
- if (isFailure3(leftOut))
2557
- return leftOut;
2558
- return right(leftOut.success);
2559
- });
2560
2551
  var toOption = (self) => (input) => {
2561
2552
  const result = self(input);
2562
2553
  return isFailure3(result) ? none() : some(result.success);
@@ -2971,7 +2962,7 @@ class Interrupt extends ReasonBase {
2971
2962
  };
2972
2963
  }
2973
2964
  [symbol2](that) {
2974
- return isInterruptReason2(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2965
+ return isInterruptReason(that) && this.fiberId === that.fiberId && this.annotations === that.annotations;
2975
2966
  }
2976
2967
  [symbol]() {
2977
2968
  return string(`${this._tag}:${this.fiberId}`);
@@ -2992,7 +2983,7 @@ var findErrorOption = /* @__PURE__ */ toOption(findError);
2992
2983
  var hasDies = (self) => self.reasons.some(isDieReason);
2993
2984
  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;
2994
2985
  var findRecoverableError = (self) => hasDies(self) ? fail(causeElectDefects(self)) : findError(self);
2995
- var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason2);
2986
+ var hasInterrupts2 = (self) => self.reasons.some(isInterruptReason);
2996
2987
  var causeFilterInterruptors = (self) => {
2997
2988
  let interruptors;
2998
2989
  for (let i = 0;i < self.reasons.length; i++) {
@@ -3006,7 +2997,6 @@ var causeFilterInterruptors = (self) => {
3006
2997
  }
3007
2998
  return interruptors ? succeed(interruptors) : fail(self);
3008
2999
  };
3009
- var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason2);
3010
3000
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
3011
3001
  let hasFail = false;
3012
3002
  const failures = self.reasons.map((failure) => {
@@ -3317,7 +3307,7 @@ class FiberImpl {
3317
3307
  }
3318
3308
  this._stack.length = 0;
3319
3309
  this._children = undefined;
3320
- this.context = empty7();
3310
+ this.context = empty6();
3321
3311
  const cache = this.cache;
3322
3312
  if (cache.span !== undefined || cache.stackFrame !== undefined) {
3323
3313
  this.cache = {
@@ -3523,7 +3513,7 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args) => hasProperty(args[0], Fiber
3523
3513
  }));
3524
3514
  var fiberInterruptAll = (fibers) => withFiber2((parent) => {
3525
3515
  const annotations = fiberStackAnnotations(parent);
3526
- let fiberArr = empty2();
3516
+ let fiberArr = empty();
3527
3517
  for (const fiber of fibers) {
3528
3518
  fiber.interruptUnsafe(parent.id, annotations);
3529
3519
  fiberArr.push(fiber);
@@ -3879,7 +3869,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3879
3869
  if (done)
3880
3870
  break;
3881
3871
  const index = i++;
3882
- const fiber = forkUnsafe(parent, effect, true, true, false);
3872
+ const fiber = forkUnsafe2(parent, effect, true, true, false);
3883
3873
  fibers.add(fiber);
3884
3874
  fiber.addObserver((exit) => {
3885
3875
  fibers.delete(fiber);
@@ -3906,7 +3896,7 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
3906
3896
  }
3907
3897
  return flatMap5(self, f);
3908
3898
  });
3909
- var flatten2 = (self) => flatMap5(self, identity);
3899
+ var flatten3 = (self) => flatMap5(self, identity);
3910
3900
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3911
3901
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3912
3902
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
@@ -3982,7 +3972,7 @@ var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options
3982
3972
  body: constant(options?.disableYield ? self : flatMap5(self, (_) => yieldNow)),
3983
3973
  step: constVoid
3984
3974
  }));
3985
- var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3975
+ var catchCause = /* @__PURE__ */ dual(2, (self, f) => new OnFailureImpl(self, f.length !== 1 ? (cause) => f(cause) : f));
3986
3976
  var OnFailureProto = /* @__PURE__ */ makePrimitiveProto({
3987
3977
  op: "OnFailure",
3988
3978
  [evaluate]: evaluateCont
@@ -3992,19 +3982,18 @@ var OnFailureImpl = function(self, f) {
3992
3982
  this[contE] = f;
3993
3983
  };
3994
3984
  OnFailureImpl.prototype = OnFailureProto;
3995
- var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause2(self, (cause) => {
3985
+ var catchCauseIf2 = /* @__PURE__ */ dual(3, (self, predicate, f) => catchCause(self, (cause) => {
3996
3986
  if (!predicate(cause)) {
3997
3987
  return failCause2(cause);
3998
3988
  }
3999
3989
  return f(cause);
4000
3990
  }));
4001
- var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3991
+ var catchCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
4002
3992
  const eb = filter(cause);
4003
3993
  return isFailure3(eb) ? failCause2(eb.failure) : f(eb.success, cause);
4004
3994
  }));
4005
3995
  var catch_2 = /* @__PURE__ */ dual(2, (self, f) => catchCauseFilter(self, findRecoverableError, (e) => f(e)));
4006
- var tapCause2 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => andThen2(f(cause), failCause2(cause))));
4007
- var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(self, (cause) => {
3996
+ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause(self, (cause) => {
4008
3997
  const result = filter(cause);
4009
3998
  if (isFailure3(result)) {
4010
3999
  return failCause2(cause);
@@ -4012,7 +4001,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
4012
4001
  return andThen2(f(result.success, cause), failCause2(cause));
4013
4002
  }));
4014
4003
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError, (e) => f(e)));
4015
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
4004
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause(self, (cause) => {
4016
4005
  const error = findRecoverableError(cause);
4017
4006
  if (isFailure3(error))
4018
4007
  return failCause2(error.failure);
@@ -4031,7 +4020,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
4031
4020
  return f(reason, e);
4032
4021
  return orElse ? orElse(reason, e) : fail8(e);
4033
4022
  }));
4034
- var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause2(self, (cause) => failCause2(causeMap(cause, f))));
4023
+ var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
4035
4024
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
4036
4025
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
4037
4026
  onSuccess: (a) => sync2(() => options.onSuccess(a))
@@ -4190,7 +4179,7 @@ var runFinalizer = (finalizer, exit_) => {
4190
4179
  return exitDie(defect);
4191
4180
  }
4192
4181
  };
4193
- var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause2(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4182
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause2(causeElectDefects(causeCombine(exit_.cause, cause))));
4194
4183
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalizers, exit_) {
4195
4184
  let exits = [];
4196
4185
  const fibers = [];
@@ -4201,7 +4190,7 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4201
4190
  if (self.strategy === "sequential") {
4202
4191
  exits.push(yield* exit(runFinalizer(finalizer, exit_)));
4203
4192
  } else if (key !== parent) {
4204
- fibers.push(forkUnsafe(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4193
+ fibers.push(forkUnsafe2(parent, runFinalizer(finalizer, exit_), true, true, "inherit"));
4205
4194
  }
4206
4195
  }
4207
4196
  if (fibers.length > 0) {
@@ -4209,7 +4198,6 @@ var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced2(function* (self, finalize
4209
4198
  }
4210
4199
  return yield* exitAsVoidAll(exits);
4211
4200
  });
4212
- var scopeFork = (scope, finalizerStrategy) => sync2(() => scopeForkUnsafe(scope, finalizerStrategy));
4213
4201
  var scopeForkUnsafe = (scope, finalizerStrategy) => {
4214
4202
  const child = makeScope(finalizerStrategy, scope);
4215
4203
  if (scope.state._tag === "Closed") {
@@ -4273,6 +4261,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
4273
4261
  var constScopeEmpty = {
4274
4262
  _tag: "Empty"
4275
4263
  };
4264
+ var scopeMake = (finalizerStrategy) => sync2(() => scopeMakeUnsafe(finalizerStrategy));
4276
4265
  var scope2 = scopeTag;
4277
4266
  var provideScope = /* @__PURE__ */ provideService2(scopeTag);
4278
4267
  var scoped2 = (self) => withFiber2((fiber) => {
@@ -4576,7 +4565,7 @@ var iterateConcurrentImpl = (options) => {
4576
4565
  });
4577
4566
  } else {
4578
4567
  effect = undefined;
4579
- const fiber = forkUnsafe(parentFiber, eff, true, true, "inherit");
4568
+ const fiber = forkUnsafe2(parentFiber, eff, true, true, "inherit");
4580
4569
  if (fiber._exit) {
4581
4570
  terminal = step(state, item, fiber._exit, index);
4582
4571
  if (terminal)
@@ -4658,9 +4647,9 @@ var forEachConcurrent = /* @__PURE__ */ iterateConcurrentImpl({
4658
4647
  var filterOrElse2 = /* @__PURE__ */ dual(3, (self, predicate, orElse) => flatMap5(self, (a) => predicate(a) ? succeed6(a) : orElse(a)));
4659
4648
  var forkChild2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => {
4660
4649
  interruptChildrenPatch();
4661
- return succeed6(forkUnsafe(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4650
+ return succeed6(forkUnsafe2(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
4662
4651
  }));
4663
- var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4652
+ var forkUnsafe2 = (parent, effect, immediate = false, daemon = false, uninterruptible = false) => {
4664
4653
  const parentRuntime = parent;
4665
4654
  const interruptible = uninterruptible === "inherit" ? parentRuntime.interruptible : !uninterruptible;
4666
4655
  const child = new FiberImpl(parentRuntime.context, interruptible);
@@ -4678,7 +4667,7 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4678
4667
  };
4679
4668
  var fiberScopeFinalizer = (fiber) => () => withFiber2((current) => current === fiber ? void_3 : fiberInterrupt(fiber));
4680
4669
  var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4681
- const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4670
+ const fiber = scope.state._tag === "Closed" ? new FiberImpl(parent.context) : forkUnsafe2(parent, self, options?.startImmediately, true, options?.uninterruptible);
4682
4671
  if (!fiber._exit) {
4683
4672
  if (scope.state._tag !== "Closed") {
4684
4673
  scopeAddFinalizerUnsafe(scope, fiber, fiberScopeFinalizer(fiber));
@@ -4723,8 +4712,21 @@ var fiberRunIn = /* @__PURE__ */ dual(2, (self, scope) => {
4723
4712
  self.addObserver(() => scopeRemoveFinalizerUnsafe(scope, self));
4724
4713
  return self;
4725
4714
  });
4726
- var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty7());
4727
- var runPromiseExitWith = (context) => {
4715
+ var runFork2 = /* @__PURE__ */ runForkWith2(/* @__PURE__ */ empty6());
4716
+ var runCallbackWith2 = (context) => {
4717
+ const runFork = runForkWith2(context);
4718
+ return (effect, options) => {
4719
+ const fiber = runFork(effect, options);
4720
+ if (options?.onExit) {
4721
+ fiber.addObserver(options.onExit);
4722
+ }
4723
+ return (interruptor) => {
4724
+ return fiber.interruptUnsafe(interruptor);
4725
+ };
4726
+ };
4727
+ };
4728
+ var runCallback2 = /* @__PURE__ */ runCallbackWith2(/* @__PURE__ */ empty6());
4729
+ var runPromiseExitWith2 = (context) => {
4728
4730
  const runFork = runForkWith2(context);
4729
4731
  return (effect, options) => {
4730
4732
  const fiber = runFork(effect, options);
@@ -4733,8 +4735,9 @@ var runPromiseExitWith = (context) => {
4733
4735
  });
4734
4736
  };
4735
4737
  };
4736
- var runPromiseWith = (context) => {
4737
- const runPromiseExit = runPromiseExitWith(context);
4738
+ var runPromiseExit2 = /* @__PURE__ */ runPromiseExitWith2(/* @__PURE__ */ empty6());
4739
+ var runPromiseWith2 = (context) => {
4740
+ const runPromiseExit = runPromiseExitWith2(context);
4738
4741
  return (effect, options) => runPromiseExit(effect, options).then((exit) => {
4739
4742
  if (exit._tag === "Failure") {
4740
4743
  throw causeSquash(exit.cause);
@@ -4742,8 +4745,8 @@ var runPromiseWith = (context) => {
4742
4745
  return exit.value;
4743
4746
  });
4744
4747
  };
4745
- var runPromise = /* @__PURE__ */ runPromiseWith(/* @__PURE__ */ empty7());
4746
- var runSyncExitWith = (context) => {
4748
+ var runPromise2 = /* @__PURE__ */ runPromiseWith2(/* @__PURE__ */ empty6());
4749
+ var runSyncExitWith2 = (context) => {
4747
4750
  const runFork = runForkWith2(context);
4748
4751
  return (effect) => {
4749
4752
  if (effectIsExit(effect))
@@ -4756,9 +4759,9 @@ var runSyncExitWith = (context) => {
4756
4759
  return fiber._exit ?? exitDie(new AsyncFiberError(fiber));
4757
4760
  };
4758
4761
  };
4759
- var runSyncExit = /* @__PURE__ */ runSyncExitWith(/* @__PURE__ */ empty7());
4760
- var runSyncWith = (context) => {
4761
- const runSyncExit = runSyncExitWith(context);
4762
+ var runSyncExit2 = /* @__PURE__ */ runSyncExitWith2(/* @__PURE__ */ empty6());
4763
+ var runSyncWith2 = (context) => {
4764
+ const runSyncExit = runSyncExitWith2(context);
4762
4765
  return (effect) => {
4763
4766
  const exit = runSyncExit(effect);
4764
4767
  if (exit._tag === "Failure")
@@ -4766,7 +4769,7 @@ var runSyncWith = (context) => {
4766
4769
  return exit.value;
4767
4770
  };
4768
4771
  };
4769
- var runSync = /* @__PURE__ */ runSyncWith(/* @__PURE__ */ empty7());
4772
+ var runSync2 = /* @__PURE__ */ runSyncWith2(/* @__PURE__ */ empty6());
4770
4773
  var succeedTrue = /* @__PURE__ */ succeed6(true);
4771
4774
  var succeedFalse = /* @__PURE__ */ succeed6(false);
4772
4775
 
@@ -4888,7 +4891,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4888
4891
  span = noopSpan({
4889
4892
  name,
4890
4893
  parent,
4891
- annotations: add(options?.annotations ?? empty7(), DisablePropagation, true)
4894
+ annotations: add(options?.annotations ?? empty6(), DisablePropagation, true)
4892
4895
  });
4893
4896
  } else {
4894
4897
  const tracer = fiber.cache.tracer ?? nativeTracer;
@@ -4901,7 +4904,7 @@ var makeSpanUnsafe = (fiber, name, options) => {
4901
4904
  span = tracer.span({
4902
4905
  name,
4903
4906
  parent,
4904
- annotations: options?.annotations ?? empty7(),
4907
+ annotations: options?.annotations ?? empty6(),
4905
4908
  links,
4906
4909
  startTime: timingEnabled ? clock.currentTimeNanosUnsafe() : bigint02,
4907
4910
  kind: options?.kind ?? "internal",
@@ -5250,7 +5253,6 @@ var DeferredImpl = function() {
5250
5253
  };
5251
5254
  DeferredImpl.prototype = DeferredProto;
5252
5255
  var makeUnsafe2 = () => new DeferredImpl;
5253
- var make = () => sync2(() => makeUnsafe2());
5254
5256
  var _await = (self) => callback3((resume) => {
5255
5257
  if (self.effect)
5256
5258
  return resume(self.effect);
@@ -5266,8 +5268,8 @@ var _await = (self) => callback3((resume) => {
5266
5268
  });
5267
5269
  });
5268
5270
  var completeWith = /* @__PURE__ */ dual(2, (self, effect) => sync2(() => doneUnsafe(self, effect)));
5269
- var done3 = completeWith;
5270
- var fail4 = /* @__PURE__ */ dual(2, (self, error) => done3(self, exitFail(error)));
5271
+ var done2 = completeWith;
5272
+ var fail4 = /* @__PURE__ */ dual(2, (self, error) => done2(self, exitFail(error)));
5271
5273
  var isDone = (self) => sync2(() => isDoneUnsafe(self));
5272
5274
  var isDoneUnsafe = (self) => self.effect !== undefined;
5273
5275
  var doneUnsafe = (self, effect) => {
@@ -5283,19 +5285,18 @@ var doneUnsafe = (self, effect) => {
5283
5285
  }
5284
5286
  return true;
5285
5287
  };
5286
- var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask2((restore) => flatMap5(exit(restore(self)), (exit) => done3(deferred, exit))));
5287
5288
 
5288
5289
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/References.js
5289
5290
  var TracerTimingEnabled2 = TracerTimingEnabled;
5290
5291
 
5291
5292
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Scope.js
5292
5293
  var Scope = scopeTag;
5294
+ var make = scopeMake;
5293
5295
  var makeUnsafe3 = scopeMakeUnsafe;
5294
- var provide3 = provideScope;
5296
+ var provide2 = provideScope;
5295
5297
  var addFinalizerExit = scopeAddFinalizerExit;
5296
5298
  var addFinalizer = scopeAddFinalizer;
5297
- var fork = scopeFork;
5298
- var forkUnsafe2 = scopeForkUnsafe;
5299
+ var forkUnsafe = scopeForkUnsafe;
5299
5300
  var close = scopeClose;
5300
5301
 
5301
5302
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Layer.js
@@ -5338,7 +5339,7 @@ var fromBuildUnsafe = (build) => {
5338
5339
  return self;
5339
5340
  };
5340
5341
  var fromBuild = (build) => fromBuildUnsafe((memoMap, scope) => {
5341
- const layerScope = forkUnsafe2(scope);
5342
+ const layerScope = forkUnsafe(scope);
5342
5343
  return onExit2(build(memoMap, layerScope), (exit) => exit._tag === "Failure" ? close(layerScope, exit) : void_3);
5343
5344
  });
5344
5345
  var fromBuildMemo = (build) => {
@@ -5400,7 +5401,7 @@ var succeed3 = function() {
5400
5401
  return succeedContext(make9(arguments[0], arguments[1]));
5401
5402
  };
5402
5403
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed6(context)));
5403
- var empty8 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty7());
5404
+ var empty7 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty6());
5404
5405
  var effect = function() {
5405
5406
  if (arguments.length === 1) {
5406
5407
  return (effect) => effectImpl(arguments[0], effect);
@@ -5408,10 +5409,10 @@ var effect = function() {
5408
5409
  return effectImpl(arguments[0], arguments[1]);
5409
5410
  };
5410
5411
  var effectImpl = (service, effect) => effectContext(map6(effect, (value) => make9(service, value)));
5411
- var effectContext = (effect) => fromBuildMemo((_, scope) => provide3(effect, scope));
5412
+ var effectContext = (effect) => fromBuildMemo((_, scope) => provide2(effect, scope));
5412
5413
  var mergeAllEffect = (layers, memoMap, scope) => {
5413
- const parentScope = forkUnsafe2(scope, "parallel");
5414
- return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5414
+ const parentScope = forkUnsafe(scope, "parallel");
5415
+ return forEach2(layers, (layer) => layer.build(memoMap, forkUnsafe(parentScope, "sequential")), {
5415
5416
  concurrency: layers.length
5416
5417
  }).pipe(map6((context) => mergeAll2(...context)));
5417
5418
  };
@@ -5489,19 +5490,16 @@ var asVoidAll = exitAsVoidAll;
5489
5490
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Cause.js
5490
5491
  var isCause2 = isCause;
5491
5492
  var isFailReason2 = isFailReason;
5492
- var isInterruptReason = isInterruptReason2;
5493
5493
  var fromReasons = causeFromReasons;
5494
5494
  var fail2 = causeFail;
5495
5495
  var die3 = causeDie;
5496
- var hasInterruptsOnly = hasInterruptsOnly2;
5497
5496
  var map7 = causeMap;
5498
5497
  var squash = causeSquash;
5499
5498
  var findErrorOption2 = findErrorOption;
5500
5499
  var hasInterrupts = hasInterrupts2;
5501
- var filterInterruptors = causeFilterInterruptors;
5502
5500
  var isDone3 = isDone2;
5503
5501
  var Done = Done2;
5504
- var done = done2;
5502
+ var done = done3;
5505
5503
  var IllegalArgumentError2 = IllegalArgumentError;
5506
5504
  var UnknownError = UnknownError2;
5507
5505
 
@@ -5934,10 +5932,6 @@ var matchEffect3 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5934
5932
  }
5935
5933
  }));
5936
5934
 
5937
- // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/layer.js
5938
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap5(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5939
- 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));
5940
-
5941
5935
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Effect.js
5942
5936
  var isEffect = isEffect2;
5943
5937
  var all = all3;
@@ -5965,7 +5959,7 @@ var withFiber = withFiber2;
5965
5959
  var fromResult2 = fromResult;
5966
5960
  var fromOption2 = fromOption4;
5967
5961
  var flatMap3 = flatMap5;
5968
- var flatten3 = flatten2;
5962
+ var flatten = flatten3;
5969
5963
  var andThen = andThen2;
5970
5964
  var tap = tap2;
5971
5965
  var result = result2;
@@ -5979,13 +5973,12 @@ var zipWith = zipWith3;
5979
5973
  var catch_ = catch_2;
5980
5974
  var catchTag = catchTag2;
5981
5975
  var catchReason = catchReason2;
5982
- var catchCause = catchCause2;
5976
+ var catchCause2 = catchCause;
5983
5977
  var catchIf = catchIf2;
5984
5978
  var catchCauseIf = catchCauseIf2;
5985
5979
  var mapError = mapError3;
5986
5980
  var orDie = orDie2;
5987
5981
  var tapError3 = tapError2;
5988
- var tapCause = tapCause2;
5989
5982
  var ignore = ignore2;
5990
5983
  var ignoreCause = ignoreCause2;
5991
5984
  var orElseSucceed2 = orElseSucceed;
@@ -5998,7 +5991,6 @@ var matchCauseEffect2 = matchCauseEffect;
5998
5991
  var matchEffect = matchEffect2;
5999
5992
  var context = context2;
6000
5993
  var contextWith2 = contextWith;
6001
- var provide2 = provide4;
6002
5994
  var provideContext = provideContext2;
6003
5995
  var serviceOption = serviceOption2;
6004
5996
  var updateContext2 = updateContext;
@@ -6025,13 +6017,19 @@ var forkIn = forkIn2;
6025
6017
  var forkScoped = forkScoped2;
6026
6018
  var runFork = runFork2;
6027
6019
  var runForkWith = runForkWith2;
6028
- var runPromise2 = runPromise;
6029
- var runSync2 = runSync;
6030
- var runSyncExit2 = runSyncExit;
6020
+ var runCallbackWith = runCallbackWith2;
6021
+ var runCallback = runCallback2;
6022
+ var runPromise = runPromise2;
6023
+ var runPromiseWith = runPromiseWith2;
6024
+ var runPromiseExit = runPromiseExit2;
6025
+ var runPromiseExitWith = runPromiseExitWith2;
6026
+ var runSync = runSync2;
6027
+ var runSyncWith = runSyncWith2;
6028
+ var runSyncExit = runSyncExit2;
6029
+ var runSyncExitWith = runSyncExitWith2;
6031
6030
  var fnUntraced = fnUntraced2;
6032
6031
  var fn = fn2;
6033
6032
  var clockWith = clockWith2;
6034
- var logError = /* @__PURE__ */ logWithLevel("Error");
6035
6033
  var effectify = (fn, onError, onSyncError) => (...args) => callback((resume) => {
6036
6034
  let synchronous = true;
6037
6035
  let pending;
@@ -6834,12 +6832,12 @@ class HashMapImpl {
6834
6832
  }
6835
6833
  var emptyNode = /* @__PURE__ */ new EmptyNode;
6836
6834
  var isHashMap = (u) => hasProperty(u, HashMapTypeId);
6837
- var empty9 = () => new HashMapImpl(false, 0, emptyNode, 0);
6835
+ var empty8 = () => new HashMapImpl(false, 0, emptyNode, 0);
6838
6836
  var get5 = /* @__PURE__ */ dual(2, (self, key) => {
6839
6837
  const impl = self;
6840
6838
  return impl._root.get(0, hash(key), key);
6841
6839
  });
6842
- var has3 = /* @__PURE__ */ dual(2, (self, key) => {
6840
+ var has2 = /* @__PURE__ */ dual(2, (self, key) => {
6843
6841
  const impl = self;
6844
6842
  return impl._root.has(0, hash(key), key);
6845
6843
  });
@@ -6876,7 +6874,7 @@ var HashSetProto = {
6876
6874
  return optimize(combine(hashSetSeed, hash(keyMap(this))));
6877
6875
  },
6878
6876
  [symbol2](that) {
6879
- return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has4(that, value));
6877
+ return isHashSet(that) && size2(this) === size2(that) && every2(this, (value) => has3(that, value));
6880
6878
  },
6881
6879
  [Symbol.iterator]() {
6882
6880
  return keys2(keyMap(this));
@@ -6906,13 +6904,13 @@ var makeImpl2 = (keyMap) => {
6906
6904
  var isHashSet = (u) => hasProperty(u, HashSetTypeId);
6907
6905
  var keyMap = (self) => self.keyMap;
6908
6906
  var fromIterable3 = (values) => {
6909
- let map = empty9();
6907
+ let map = empty8();
6910
6908
  for (const value of values) {
6911
6909
  map = set2(map, value, true);
6912
6910
  }
6913
6911
  return makeImpl2(map);
6914
6912
  };
6915
- var has4 = (self, value) => has3(keyMap(self), value);
6913
+ var has3 = (self, value) => has2(keyMap(self), value);
6916
6914
  var size2 = (self) => size(keyMap(self));
6917
6915
  var every2 = (self, predicate) => {
6918
6916
  for (const value of self) {
@@ -6925,7 +6923,7 @@ var every2 = (self, predicate) => {
6925
6923
 
6926
6924
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/HashSet.js
6927
6925
  var fromIterable4 = fromIterable3;
6928
- var has5 = /* @__PURE__ */ dual(2, has4);
6926
+ var has4 = /* @__PURE__ */ dual(2, has3);
6929
6927
  var size3 = size2;
6930
6928
 
6931
6929
  // ../../../../node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
@@ -7189,10 +7187,10 @@ var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
7189
7187
  });
7190
7188
  var make15 = (input) => Object.assign(Object.create(Proto5), input);
7191
7189
  var Equivalence3 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
7192
- var empty3 = /* @__PURE__ */ Object.create(Proto5);
7190
+ var empty2 = /* @__PURE__ */ Object.create(Proto5);
7193
7191
  var fromInput = (input) => {
7194
7192
  if (input === undefined) {
7195
- return empty3;
7193
+ return empty2;
7196
7194
  } else if (Symbol.iterator in input) {
7197
7195
  const out = Object.create(Proto5);
7198
7196
  for (const [k, v] of input) {
@@ -7353,7 +7351,7 @@ var fromInputNested = (input) => {
7353
7351
  var coerce = (value) => isRedacted(value) ? value : String(value);
7354
7352
  var Equivalence4 = /* @__PURE__ */ make8((a, b) => arrayEquivalence(a.params, b.params));
7355
7353
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence2([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
7356
- var empty4 = /* @__PURE__ */ make16([]);
7354
+ var empty3 = /* @__PURE__ */ make16([]);
7357
7355
  var getFirst = /* @__PURE__ */ dual(2, (self, key) => findFirst(self.params, ([k]) => k === key).pipe(map(([, value]) => unwrap3(value))));
7358
7356
  var set5 = /* @__PURE__ */ dual(3, (self, key, value) => make16(append(filter2(self.params, ([k]) => k !== key), [key, coerce(value)])));
7359
7357
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
@@ -7422,7 +7420,7 @@ var decodeQueryKey = (key) => {
7422
7420
  return key;
7423
7421
  }
7424
7422
  };
7425
- var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty7(), CurrentRedactedNames2);
7423
+ var currentRedactedNames = () => get(globalThis[currentFiberTypeId]?.context ?? empty6(), CurrentRedactedNames2);
7426
7424
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
7427
7425
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
7428
7426
  });
@@ -7772,7 +7770,7 @@ var runGetter = (self, input, options) => {
7772
7770
  };
7773
7771
  var makeGetter = (fields) => Object.assign(Object.create(Prototype2), fields);
7774
7772
  var composeOptionalEffect = (first, second) => transformOptionalEffect((input, options) => flatMapEager2(runGetter(first, input, options), (output) => runGetter(second, output, options)));
7775
- var compose2 = /* @__PURE__ */ dual(2, (self, other) => {
7773
+ var compose = /* @__PURE__ */ dual(2, (self, other) => {
7776
7774
  if (self._tag === "Passthrough")
7777
7775
  return other;
7778
7776
  if (other._tag === "Passthrough")
@@ -8659,7 +8657,7 @@ var Objects = class extends ASTNodeImpl {
8659
8657
  }
8660
8658
  }
8661
8659
  } else if (parseIndexes) {
8662
- const keyPairs = empty2();
8660
+ const keyPairs = empty();
8663
8661
  for (let i = 0;i < indexCount; i++) {
8664
8662
  const index = indexes[i];
8665
8663
  const keys = indexKeys?.[i] ?? (index.is.parameter === string2 ? Object.keys(record) : getIndexSignatureKeys(record, index.is.parameter, options));
@@ -9177,7 +9175,7 @@ function failSingleUnionCandidate(ast, cause, input, options) {
9177
9175
  return fail3(new AnyOf(ast, [issue], input, options));
9178
9176
  }
9179
9177
  function catchSingleUnionCandidate(ast, result, input, options) {
9180
- return catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9178
+ return catchCause2(result, (cause) => failSingleUnionCandidate(ast, cause, input, options));
9181
9179
  }
9182
9180
  function parseUnionCandidates(ast, parser, candidates, input, options) {
9183
9181
  const state = {
@@ -9828,7 +9826,7 @@ function compileTransformationUnsafe(transformation) {
9828
9826
  }
9829
9827
  }
9830
9828
  var fromOptionalEffect = (effect) => flatMapEager2(effect, fromOptionExit);
9831
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9829
+ var wrapEncoding = (ast, input, options, effect) => catchCause2(effect, (cause) => failCauseSync2(() => map7(cause, (issue) => new Encoding(ast, issue, input, options))));
9832
9830
  function makeConstructorParser(descriptor, compile) {
9833
9831
  const transform = compileTransformation(descriptor.link.transformation);
9834
9832
  let sourceParser;
@@ -10084,7 +10082,7 @@ function makeEffect(schema) {
10084
10082
  function makeOption(schema) {
10085
10083
  const parser = makeEffect(schema);
10086
10084
  return (input, options) => {
10087
- const exit = runSyncExit2(parser(input, options));
10085
+ const exit = runSyncExit(parser(input, options));
10088
10086
  if (isSuccess2(exit)) {
10089
10087
  return some(exit.value);
10090
10088
  }
@@ -10123,7 +10121,7 @@ function makeIs(ast) {
10123
10121
  }
10124
10122
  const parser = entry.parser;
10125
10123
  return (input) => {
10126
- const exit = runSyncExit2(parserResult(parser(input, defaultParseOptions), input));
10124
+ const exit = runSyncExit(parserResult(parser(input, defaultParseOptions), input));
10127
10125
  if (isSuccess2(exit))
10128
10126
  return true;
10129
10127
  getSchemaIssueOrThrow(exit.cause, "Type guard adapter can only return false for schema issues");
@@ -10191,7 +10189,7 @@ function runWithCompiler(compiler, ast) {
10191
10189
  };
10192
10190
  }
10193
10191
  function asExit(parser) {
10194
- return (input, options) => runSyncExit2(parser(input, options));
10192
+ return (input, options) => runSyncExit(parser(input, options));
10195
10193
  }
10196
10194
  function asOption(parser) {
10197
10195
  const parserExit = asExit(parser);
@@ -10205,7 +10203,7 @@ function asOption(parser) {
10205
10203
  };
10206
10204
  }
10207
10205
  function runSync3(effect, message) {
10208
- const exit = runSyncExit2(effect);
10206
+ const exit = runSyncExit(effect);
10209
10207
  if (isSuccess2(exit)) {
10210
10208
  return exit.value;
10211
10209
  }
@@ -11869,7 +11867,7 @@ function fromIssueEffect(self) {
11869
11867
  if (effectIsExit(self)) {
11870
11868
  return fromIssueExit(self);
11871
11869
  }
11872
- return catchCause(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11870
+ return catchCause2(self, (cause) => failCauseSync2(() => map7(cause, (issue) => new SchemaError(issue))));
11873
11871
  }
11874
11872
  function fromIssueExit(exit) {
11875
11873
  return isSuccess2(exit) ? exit : failCause3(map7(exit.cause, (issue) => new SchemaError(issue)));
@@ -11892,7 +11890,7 @@ function getSchemaErrorOrThrow(cause, message) {
11892
11890
  return schemaError;
11893
11891
  }
11894
11892
  function runSchemaErrorSync(self) {
11895
- const exit = runSyncExit2(self);
11893
+ const exit = runSyncExit(self);
11896
11894
  if (isSuccess2(exit)) {
11897
11895
  return exit.value;
11898
11896
  }
@@ -12002,7 +12000,7 @@ function makeTuple(ast, elements) {
12002
12000
  }
12003
12001
  });
12004
12002
  }
12005
- function Tuple(elements) {
12003
+ function Tuple2(elements) {
12006
12004
  return makeTuple(tuple(elements), elements);
12007
12005
  }
12008
12006
  var ArraySchema = /* @__PURE__ */ lambda((schema) => make19(new Arrays(false, [], [schema.ast]), {
@@ -12988,7 +12986,6 @@ var exhaustive2 = exhaustive;
12988
12986
  var await_ = fiberAwait;
12989
12987
  var join2 = fiberJoin;
12990
12988
  var interrupt2 = fiberInterrupt;
12991
- var interruptAll = fiberInterruptAll;
12992
12989
  var getCurrent = getCurrentFiber;
12993
12990
  var runIn = fiberRunIn;
12994
12991
 
@@ -13525,13 +13522,13 @@ var ChannelProto = {
13525
13522
  };
13526
13523
  var fromTransform = (transform) => {
13527
13524
  const self = Object.create(ChannelProto);
13528
- self.transform = (upstream, scope) => catchCause(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13525
+ self.transform = (upstream, scope) => catchCause2(transform(upstream, scope), (cause) => succeed4(failCause(cause)));
13529
13526
  return self;
13530
13527
  };
13531
13528
  var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
13532
13529
  var fromPull2 = (effect) => fromTransform((_, __) => effect);
13533
13530
  var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
13534
- const closableScope = forkUnsafe2(scope);
13531
+ const closableScope = forkUnsafe(scope);
13535
13532
  const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
13536
13533
  const pull = yield* onError(f(upstream, scope, closableScope), onCause);
13537
13534
  return onError(pull, onCause);
@@ -13541,7 +13538,7 @@ var DefaultChunkSize = 4096;
13541
13538
  var asyncQueue = (scope, f, options) => make2({
13542
13539
  capacity: options?.bufferSize,
13543
13540
  strategy: options?.strategy
13544
- }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide3(f(queue), scope).pipe(catchCause((cause) => failCause4(queue, cause)), forkIn(scope, {
13541
+ }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide2(f(queue), scope).pipe(catchCause2((cause) => failCause4(queue, cause)), forkIn(scope, {
13545
13542
  startImmediately: true
13546
13543
  }))));
13547
13544
  var callbackArray = (f, options) => fromTransform((_, scope) => map4(asyncQueue(scope, f, options), takeAll2));
@@ -13572,7 +13569,7 @@ var fromIteratorArray = (iterator, chunkSize = DefaultChunkSize) => {
13572
13569
  };
13573
13570
  var fromIterableArray = (iterable, chunkSize = DefaultChunkSize) => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize);
13574
13571
  var succeed8 = (value) => fromEffect2(succeed4(value));
13575
- var empty11 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13572
+ var empty10 = /* @__PURE__ */ fromPull2(/* @__PURE__ */ succeed4(/* @__PURE__ */ done()));
13576
13573
  var fail10 = (error) => fromPull2(succeed4(fail5(error)));
13577
13574
  var fromEffect2 = (effect) => fromPull2(sync(() => {
13578
13575
  let done2 = false;
@@ -13646,13 +13643,13 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13646
13643
  return void_2;
13647
13644
  }), forever({
13648
13645
  disableYield: true
13649
- }), catchCause((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13646
+ }), catchCause2((cause) => semaphore.withPermits(concurrencyN - 1)(failCause4(queue, cause))), forkIn(forkedScope));
13650
13647
  } else {
13651
13648
  const effects = yield* bounded(concurrencyN - 2);
13652
13649
  yield* addFinalizer(forkedScope, shutdown(effects));
13653
- yield* take(effects).pipe(flatten3, flatMap3((value) => offer(queue, value)), forever({
13650
+ yield* take(effects).pipe(flatten, flatMap3((value) => offer(queue, value)), forever({
13654
13651
  disableYield: true
13655
- }), catchCause((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13652
+ }), catchCause2((cause) => failCause4(queue, cause)), forkIn(forkedScope));
13656
13653
  let errorCause;
13657
13654
  const onExit = (exit) => {
13658
13655
  if (exit._tag === "Success")
@@ -13670,7 +13667,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
13670
13667
  return offer(effects, join2(fiber));
13671
13668
  }), forever({
13672
13669
  disableYield: true
13673
- }), catchCause((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13670
+ }), catchCause2((cause) => offer(effects, failCause3(cause)).pipe(andThen(failCause4(effects, cause)))), forkIn(forkedScope));
13674
13671
  }
13675
13672
  return take(queue);
13676
13673
  }));
@@ -13679,7 +13676,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map4(toT
13679
13676
  let childPull;
13680
13677
  let childScope;
13681
13678
  const makePull = flatMap3(pull, (value) => {
13682
- childScope ??= forkUnsafe2(scope);
13679
+ childScope ??= forkUnsafe(scope);
13683
13680
  return flatMapEager2(toTransform(f(value))(upstream, childScope), (pull) => {
13684
13681
  childPull = catchHalt(pull);
13685
13682
  return childPull;
@@ -13759,7 +13756,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13759
13756
  }
13760
13757
  }
13761
13758
  const channel = pullFiber === undefined ? yield* pull : yield* join2(pullFiber);
13762
- const childScope = forkUnsafe2(forkedScope);
13759
+ const childScope = forkUnsafe(forkedScope);
13763
13760
  const childPull = yield* toTransform(channel)(upstream, childScope);
13764
13761
  while (fibers.size >= concurrencyN) {
13765
13762
  const [fiber, fiberScope] = headUnsafe(fibers);
@@ -13788,7 +13785,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13788
13785
  doneLatch.closeUnsafe();
13789
13786
  fibers.set(fiber, childScope);
13790
13787
  }
13791
- }).pipe(catchCause((cause) => {
13788
+ }).pipe(catchCause2((cause) => {
13792
13789
  const halt = filterDone(cause);
13793
13790
  if (isSuccess(halt)) {
13794
13791
  return doneLatch.whenOpen(failCause4(queue, cause));
@@ -13824,8 +13821,8 @@ var merge4 = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args
13824
13821
  onFailure: (cause) => onExit(side, cause),
13825
13822
  onSuccess: () => onExit(side, cause)
13826
13823
  }))), forkIn(forkedScope));
13827
- yield* runSide("left", left, forkUnsafe2(forkedScope));
13828
- yield* runSide("right", right, forkUnsafe2(forkedScope));
13824
+ yield* runSide("left", left, forkUnsafe(forkedScope));
13825
+ yield* runSide("right", right, forkUnsafe(forkedScope));
13829
13826
  return take(queue);
13830
13827
  })));
13831
13828
  var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromEffectDrain(effect), {
@@ -13925,15 +13922,15 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
13925
13922
  var pipeTo = /* @__PURE__ */ dual(2, (self, that) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (upstream) => toTransform(that)(upstream, scope))));
13926
13923
  var isUpstreamFailure = (reason) => reason._tag === "Die" && isDone3(reason.defect) && isCause2(reason.defect.value);
13927
13924
  var hasUpstreamFailure = (cause) => cause.reasons.some(isUpstreamFailure);
13928
- var upstreamFailureToDefect = (pull) => catchCause(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13925
+ var upstreamFailureToDefect = (pull) => catchCause2(pull, (cause) => isDoneCause(cause) ? failCause(cause) : die(Done(cause)));
13929
13926
  var unwrapUpstreamFailure = (cause) => hasUpstreamFailure(cause) ? fromReasons(cause.reasons.flatMap((reason) => isUpstreamFailure(reason) ? reason.defect.value.reasons : [reason])) : cause;
13930
- var restoreUpstreamFailure = (effect) => catchCause(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13927
+ var restoreUpstreamFailure = (effect) => catchCause2(effect, (cause) => failCause(unwrapUpstreamFailure(cause)));
13931
13928
  var unwrap = (channel) => fromTransform((upstream, scope) => {
13932
13929
  let pull;
13933
13930
  return succeed4(suspend(() => {
13934
13931
  if (pull)
13935
13932
  return pull;
13936
- return channel.pipe(provide3(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13933
+ return channel.pipe(provide2(scope), flatMap3((channel) => toTransform(channel)(upstream, scope)), flatMap3((pull_) => pull = pull_));
13937
13934
  }));
13938
13935
  });
13939
13936
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => merge4(self, fromPull2(succeed4(flatMap3(effect, done))), {
@@ -13949,7 +13946,7 @@ var runWith = (self, f, onHalt) => suspend(() => {
13949
13946
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
13950
13947
  disableYield: true
13951
13948
  }));
13952
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13949
+ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
13953
13950
  disableYield: true
13954
13951
  })));
13955
13952
  var mkUint8Array = (self) => map4(runFold(self, () => ({
@@ -14019,7 +14016,7 @@ var fromPull = (pull) => fromChannel(fromPull2(pull));
14019
14016
  var transformPull2 = (self, f) => fromChannel(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
14020
14017
  var toChannel = (stream) => stream.channel;
14021
14018
  var callback2 = (f, options) => fromChannel(callbackArray(f, options));
14022
- var empty5 = /* @__PURE__ */ fromChannel(empty11);
14019
+ var empty4 = /* @__PURE__ */ fromChannel(empty10);
14023
14020
  var suspend3 = (stream) => {
14024
14021
  const suspended = fromChannel(suspend5(() => stream().channel));
14025
14022
  suspendedStreams.set(suspended, stream);
@@ -14028,7 +14025,7 @@ var suspend3 = (stream) => {
14028
14025
  var suspendedStreams = /* @__PURE__ */ new WeakMap;
14029
14026
  var fail6 = (error) => fromChannel(fail10(error));
14030
14027
  var fromIterable = (iterable, options) => Array.isArray(iterable) && options?.chunkSize === undefined ? fromArray2(iterable) : fromChannel(fromIterableArray(iterable, options?.chunkSize));
14031
- var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty5;
14028
+ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel(succeed8(array)) : empty4;
14032
14029
  var fromReadableStream2 = (options) => fromChannel(fromReadableStream(options));
14033
14030
  var paginate = (s, f) => fromPull(sync(() => {
14034
14031
  let state = s;
@@ -14089,7 +14086,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
14089
14086
  return acc;
14090
14087
  });
14091
14088
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
14092
- var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
14089
+ var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
14093
14090
  let i = 0;
14094
14091
  return whileLoop2({
14095
14092
  while: () => i < arr.length,
@@ -14109,7 +14106,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
14109
14106
  const onAbort = () => fiber.interruptUnsafe();
14110
14107
  return new ReadableStream({
14111
14108
  start(controller) {
14112
- fiber = runFork(provideContext(runForEach2(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
14109
+ fiber = runFork(provideContext(runForEach(transformPull(self.channel, (pull) => succeed4(latch.whenOpen(pull))), (chunk) => sync(() => {
14113
14110
  latch.closeUnsafe();
14114
14111
  for (let i = 0;i < chunk.length; i++) {
14115
14112
  controller.enqueue(chunk[i]);
@@ -14146,7 +14143,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
14146
14143
  if (!fiber)
14147
14144
  return;
14148
14145
  cancelled = true;
14149
- return runPromise2(asVoid2(interrupt2(fiber)));
14146
+ return runPromise(asVoid2(interrupt2(fiber)));
14150
14147
  }
14151
14148
  }, options?.strategy);
14152
14149
  });
@@ -14327,7 +14324,7 @@ class Empty2 extends Proto8 {
14327
14324
  };
14328
14325
  }
14329
14326
  }
14330
- var empty6 = /* @__PURE__ */ new Empty2;
14327
+ var empty5 = /* @__PURE__ */ new Empty2;
14331
14328
  class Uint8Array3 extends Proto8 {
14332
14329
  _tag = "Uint8Array";
14333
14330
  contentType;
@@ -14497,8 +14494,8 @@ function makeWith(method, url, urlParams, hash, headers, body) {
14497
14494
  self.body = body;
14498
14495
  return self;
14499
14496
  }
14500
- var empty12 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty3, empty6);
14501
- var make24 = (method) => (url, options) => modify(empty12, {
14497
+ var empty11 = /* @__PURE__ */ makeWith("GET", "", empty3, /* @__PURE__ */ none(), empty2, empty5);
14498
+ var make24 = (method) => (url, options) => modify(empty11, {
14502
14499
  method,
14503
14500
  url,
14504
14501
  ...options ?? undefined
@@ -14835,7 +14832,7 @@ class WebHttpClientResponse extends Class2 {
14835
14832
  cause
14836
14833
  })
14837
14834
  })
14838
- }).pipe(cached, runSync2);
14835
+ }).pipe(cached, runSync);
14839
14836
  }
14840
14837
  arrayBufferBody;
14841
14838
  get arrayBuffer() {
@@ -14851,7 +14848,7 @@ class WebHttpClientResponse extends Class2 {
14851
14848
  cause
14852
14849
  })
14853
14850
  })
14854
- }).pipe(cached, runSync2);
14851
+ }).pipe(cached, runSync);
14855
14852
  return this.arrayBufferBody;
14856
14853
  }
14857
14854
  get upgrade() {
@@ -15269,7 +15266,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15269
15266
  return send(undefined);
15270
15267
  });
15271
15268
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15272
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15269
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15273
15270
  var __defProp = Object.defineProperty;
15274
15271
  var __exportAll3 = (all, no_symbols) => {
15275
15272
  let target = {};
@@ -15283,7 +15280,7 @@ var __exportAll3 = (all, no_symbols) => {
15283
15280
  return target;
15284
15281
  };
15285
15282
 
15286
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15283
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15287
15284
  var DefinitionIdentifierKindSchema = Literals([
15288
15285
  "dual",
15289
15286
  "plugin",
@@ -15335,7 +15332,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15335
15332
  }) {
15336
15333
  };
15337
15334
 
15338
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15335
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15339
15336
  var identifierSchema = String3.check(isPattern2(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15340
15337
  var isIdentifier = is(identifierSchema);
15341
15338
  var validateIdentifier = (kind, identifier) => {
@@ -15360,12 +15357,12 @@ var validateIdentifier = (kind, identifier) => {
15360
15357
  });
15361
15358
  };
15362
15359
 
15363
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15360
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15364
15361
  var PipeableProto = { pipe() {
15365
15362
  return pipeArguments(this, arguments);
15366
15363
  } };
15367
15364
 
15368
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15365
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15369
15366
  var Action_exports = /* @__PURE__ */ __exportAll3({
15370
15367
  ActionHandlerError: () => ActionHandlerError,
15371
15368
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15478,7 +15475,7 @@ var make26 = (identifier, options) => {
15478
15475
  };
15479
15476
  var isAction = (u) => hasProperty(u, TypeId29);
15480
15477
 
15481
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15478
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15482
15479
  var makeBinding = (options) => ({
15483
15480
  connectionId: options.connectionId,
15484
15481
  method: options.method,
@@ -15488,7 +15485,7 @@ var makeBinding = (options) => ({
15488
15485
  });
15489
15486
  var isBindingForMethod = (binding, method) => binding.method === method;
15490
15487
 
15491
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15488
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15492
15489
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15493
15490
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15494
15491
  Service: () => Service3
@@ -15496,7 +15493,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15496
15493
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15497
15494
  };
15498
15495
 
15499
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15496
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15500
15497
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15501
15498
  cause,
15502
15499
  methodIdentifier,
@@ -15658,7 +15655,7 @@ var test = (method, material, context) => {
15658
15655
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15659
15656
  };
15660
15657
 
15661
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15658
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15662
15659
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15663
15660
  AuthMethodHookError: () => AuthMethodHookError,
15664
15661
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15832,7 +15829,7 @@ var oauth2 = (identifier, options) => {
15832
15829
  };
15833
15830
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15834
15831
 
15835
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15832
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15836
15833
  var Schema = TaggedStruct("ToolFile", {
15837
15834
  contentBase64: String3.annotate({
15838
15835
  contentEncoding: "base64",
@@ -15843,7 +15840,7 @@ var Schema = TaggedStruct("ToolFile", {
15843
15840
  sizeBytes: Natural
15844
15841
  });
15845
15842
 
15846
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
15843
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
15847
15844
  var AgentChannel_exports = /* @__PURE__ */ __exportAll3({
15848
15845
  AccessOutcome: () => AccessOutcome,
15849
15846
  AgentChannel: () => AgentChannel_exports,
@@ -15977,7 +15974,7 @@ var VerifiedIdentity = Struct({
15977
15974
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
15978
15975
  var Verification = Struct({ verified: Literal(true) });
15979
15976
  var Exposure = Literals(["webhook", "host"]);
15980
- var RequiredChecks = Tuple([Literal("access")]);
15977
+ var RequiredChecks = Tuple2([Literal("access")]);
15981
15978
  var Message = Struct({
15982
15979
  content: Content,
15983
15980
  conversation: Destination,
@@ -16415,7 +16412,7 @@ var make28 = (identifier, options) => {
16415
16412
  };
16416
16413
  var isAgentChannel = (value) => hasProperty(value, TypeId31);
16417
16414
 
16418
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
16415
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
16419
16416
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
16420
16417
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
16421
16418
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -16436,13 +16433,13 @@ var findHandler = (context, providerId, handlerKey) => {
16436
16433
  return isMap(group) ? group.get(handlerKey) : undefined;
16437
16434
  };
16438
16435
 
16439
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
16436
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
16440
16437
  function decodeJson(schema, value) {
16441
16438
  return decodeUnknownEffect(toCodecJson2(schema))(value);
16442
16439
  }
16443
16440
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
16444
16441
 
16445
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
16442
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
16446
16443
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
16447
16444
  connectionId: String3,
16448
16445
  phase: optional(String3),
@@ -16538,7 +16535,7 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
16538
16535
  var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
16539
16536
  };
16540
16537
 
16541
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
16538
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
16542
16539
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
16543
16540
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
16544
16541
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -16598,7 +16595,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
16598
16595
  });
16599
16596
  });
16600
16597
 
16601
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
16598
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
16602
16599
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
16603
16600
  description: error.message,
16604
16601
  triggerId
@@ -16733,7 +16730,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16733
16730
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16734
16731
  };
16735
16732
 
16736
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16733
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16737
16734
  var runPhase = (options) => gen(function* () {
16738
16735
  const { entry, phase, request } = options;
16739
16736
  const runtime = yield* options.hook;
@@ -16816,7 +16813,7 @@ var poll2 = (entry, request) => runPhase({
16816
16813
  phase: "poll",
16817
16814
  request
16818
16815
  });
16819
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16816
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16820
16817
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16821
16818
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16822
16819
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -17028,10 +17025,10 @@ var verify2 = verify;
17028
17025
  var parse3 = parse2;
17029
17026
  var poll3 = poll2;
17030
17027
 
17031
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
17028
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
17032
17029
  var appendElements = (existing, additions) => [...existing, ...additions];
17033
17030
 
17034
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
17031
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
17035
17032
  var partitionChildren = (children) => ({
17036
17033
  actions: children.filter(isAction),
17037
17034
  groups: children.filter(isGroup),
@@ -17071,7 +17068,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
17071
17068
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
17072
17069
  };
17073
17070
 
17074
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
17071
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
17075
17072
  var Group_exports = /* @__PURE__ */ __exportAll3({
17076
17073
  TypeId: () => TypeId33,
17077
17074
  add: () => add4,
@@ -17133,7 +17130,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
17133
17130
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
17134
17131
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
17135
17132
 
17136
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17133
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17137
17134
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17138
17135
  const seen = /* @__PURE__ */ new Set;
17139
17136
  for (const method of methods) {
@@ -17146,7 +17143,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17146
17143
  }
17147
17144
  };
17148
17145
 
17149
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17146
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17150
17147
  var walkCapabilities = (provider, select) => {
17151
17148
  const entries = [];
17152
17149
  const visit = (owner, prefix) => {
@@ -17165,7 +17162,7 @@ var walkCapabilities = (provider, select) => {
17165
17162
  return entries;
17166
17163
  };
17167
17164
 
17168
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17165
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17169
17166
  var missingDeclaration = (kind, localId, pluginId) => {
17170
17167
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17171
17168
  };
@@ -17210,7 +17207,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17210
17207
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17211
17208
  });
17212
17209
 
17213
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17210
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17214
17211
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17215
17212
  TypeId: () => TypeId34,
17216
17213
  add: () => add5,
@@ -17218,7 +17215,7 @@ var Plugin_exports = /* @__PURE__ */ __exportAll3({
17218
17215
  isGitRequest: () => isGitRequest,
17219
17216
  isPlugin: () => isPlugin,
17220
17217
  make: () => make6,
17221
- provide: () => provide6,
17218
+ provide: () => provide4,
17222
17219
  toLayer: () => toLayer2,
17223
17220
  withAction: () => withAction2,
17224
17221
  withAgentChannel: () => withAgentChannel,
@@ -17293,7 +17290,7 @@ var make6 = (identifier) => makePlugin({
17293
17290
  iconUrl: undefined,
17294
17291
  iconUrlDark: undefined,
17295
17292
  identifier,
17296
- layer: empty8,
17293
+ layer: empty7,
17297
17294
  name: undefined,
17298
17295
  sandboxAccess: undefined,
17299
17296
  triggers: []
@@ -17343,7 +17340,7 @@ var withAgentChannel = (channel) => (plugin) => {
17343
17340
  validateDefinition(channel.definition, plugin.identifier, plugin.authMethods);
17344
17341
  return update2(plugin, { agentChannels: [...plugin.agentChannels, channel] });
17345
17342
  };
17346
- var provide6 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17343
+ var provide4 = dual(2, (plugin, layer) => update2(plugin, { layer: provideMerge(plugin.layer, layer) }));
17347
17344
  var makeHandlers = (actions, triggers, agentChannels = {}) => ({
17348
17345
  action: (name, handler) => makeHandlers({
17349
17346
  ...actions,
@@ -17381,7 +17378,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17381
17378
  return yield* toHandlers(plugin, handlers);
17382
17379
  }));
17383
17380
 
17384
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17381
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17385
17382
  var ConnectionContext = Struct({
17386
17383
  actor: optionalKey(Union([Struct({
17387
17384
  kind: Literal("user"),
@@ -17419,7 +17416,7 @@ var AccessInput = Struct({
17419
17416
  var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17420
17417
  };
17421
17418
  var fail11 = (code) => new ChannelError({ code });
17422
- var safe = (effect2, code) => effect2.pipe(catchCause((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17419
+ var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
17423
17420
  var AssetResultJson = Json.check(makeFilter2((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= 14680064));
17424
17421
  var Json3 = Json.check(makeFilter2((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= resultByteLimit));
17425
17422
  var strict = { onExcessProperty: "error" };
@@ -17435,7 +17432,7 @@ var decodeData = fn("AgentChannelRuntime.decodeData")(function* (schema, input,
17435
17432
  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({
17436
17433
  code: "provider_failure",
17437
17434
  providerCode: checked.code
17438
- }))))), catchCause((cause) => {
17435
+ }))))), catchCause2((cause) => {
17439
17436
  if (hasInterrupts(cause))
17440
17437
  return interrupt;
17441
17438
  const error = findErrorOption2(cause);
@@ -17665,7 +17662,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17665
17662
  });
17666
17663
  }));
17667
17664
 
17668
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17665
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17669
17666
  var TypeId35 = "@dual-os/sdk/AiProvider";
17670
17667
  var RuntimeConfig = Struct({
17671
17668
  apiKey: optional(String3),
@@ -17723,7 +17720,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17723
17720
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17724
17721
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17725
17722
 
17726
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17723
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17727
17724
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17728
17725
  action: node,
17729
17726
  actionId: canonicalId,
@@ -17744,7 +17741,7 @@ var resolveAction = (installations, actionId, version) => {
17744
17741
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17745
17742
  };
17746
17743
 
17747
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17744
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17748
17745
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17749
17746
  authMethods: installation.plugin.authMethods,
17750
17747
  localId: walked.localId,
@@ -17765,7 +17762,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17765
17762
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17766
17763
  };
17767
17764
 
17768
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17765
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17769
17766
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17770
17767
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17771
17768
  var authMethodMetadataJson = (method) => {
@@ -17924,7 +17921,7 @@ var materializeResolvedRegistry = (input) => {
17924
17921
  };
17925
17922
  };
17926
17923
 
17927
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17924
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17928
17925
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17929
17926
  };
17930
17927
  var materializePlugin = (plugin, options) => ({
@@ -17943,7 +17940,7 @@ var materializePlugin = (plugin, options) => ({
17943
17940
  }).providers
17944
17941
  });
17945
17942
 
17946
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17943
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17947
17944
  var FieldIssue = class extends Class4("FieldIssue")({
17948
17945
  message: String3,
17949
17946
  path: String3
@@ -18016,7 +18013,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
18016
18013
  fields: schemaErrorFields(error)
18017
18014
  }))));
18018
18015
 
18019
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
18016
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
18020
18017
  var install = (plugin, version) => ({
18021
18018
  plugin,
18022
18019
  version
@@ -18220,7 +18217,7 @@ var toLayer = (app) => {
18220
18217
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18221
18218
  };
18222
18219
 
18223
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18220
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18224
18221
  var File3 = TaggedStruct("File", {
18225
18222
  contentType: String3,
18226
18223
  id: NonEmptyString,
@@ -18242,7 +18239,7 @@ var write = fnUntraced(function* (file) {
18242
18239
  return yield* (yield* service3).write(file);
18243
18240
  });
18244
18241
 
18245
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18242
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18246
18243
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18247
18244
  cause: optionalKey(Redacted(Defect())),
18248
18245
  message: String3
@@ -18300,7 +18297,7 @@ var ReservedTokenHeaders = fromIterable4([
18300
18297
  ]);
18301
18298
  var TokenHeaders = Record(String3, String3.check(isPattern2(/^[\t\x20-\x7e\x80-\xff]*$/u))).check(makeFilter2((headers) => {
18302
18299
  const names = map3(keys(headers), toLowerCase);
18303
- return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has5(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18300
+ return size3(fromIterable4(names)) === names.length && every(names, (name) => /^[!#$%&'*+.^_`|~0-9a-z-]+$/u.test(name) && !has4(ReservedTokenHeaders, name) && !startsWith("proxy-")(name) && !startsWith("sec-")(name));
18304
18301
  }, { message: "Invalid provider token headers" }));
18305
18302
  Struct({
18306
18303
  authorizationParams: Record(String3, String3),
@@ -18658,7 +18655,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18658
18655
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18659
18656
  }));
18660
18657
 
18661
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18658
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18662
18659
  var Identity = Struct({
18663
18660
  artifactDigest: String3.check(isPattern2(/^[a-f0-9]{128}$/u)),
18664
18661
  invocationId: NonEmptyString,
@@ -18998,7 +18995,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18998
18995
  })));
18999
18996
  });
19000
18997
 
19001
- // ../../../../node_modules/.bun/@dual-os+sdk@0.8.1+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18998
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
19002
18999
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
19003
19000
  category: Literals([
19004
19001
  "transport",
@@ -19014,49 +19011,6 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
19014
19011
  var maxPayloadBytes = 1048576;
19015
19012
  var maxMetadataBytes = 67108864;
19016
19013
  var maxChannelResultBytes = 16777216;
19017
- function ipcMessages(channel) {
19018
- return callback2((queue) => {
19019
- const message = (value) => {
19020
- offerUnsafe(queue, value);
19021
- };
19022
- const disconnected = () => {
19023
- endUnsafe(queue);
19024
- };
19025
- const failed = (cause) => {
19026
- failCauseUnsafe(queue, fail2(PluginExecutionError.make({
19027
- category: "runner",
19028
- cause: make4(cause),
19029
- message: "Plugin IPC channel failed"
19030
- })));
19031
- };
19032
- return acquireRelease(sync(() => {
19033
- channel.on("message", message);
19034
- channel.on("disconnect", disconnected);
19035
- channel.on("error", failed);
19036
- }), () => sync(() => {
19037
- channel.removeListener("message", message);
19038
- channel.removeListener("disconnect", disconnected);
19039
- channel.removeListener("error", failed);
19040
- }));
19041
- });
19042
- }
19043
- function sendIpc(channel, value) {
19044
- return try_2({
19045
- try: () => {
19046
- if (!channel.connected || channel.send === undefined)
19047
- throw PluginExecutionError.make({
19048
- category: "runner",
19049
- message: "Plugin IPC channel is closed"
19050
- });
19051
- channel.send(value);
19052
- },
19053
- catch: (cause) => PluginExecutionError.make({
19054
- category: "runner",
19055
- cause: make4(cause),
19056
- message: "Cannot send plugin IPC message"
19057
- })
19058
- });
19059
- }
19060
19014
  var OAuthContinuation = Struct({
19061
19015
  expiresAt: DateFromString,
19062
19016
  pkceVerifier: NullOr(String3),
@@ -19124,8 +19078,6 @@ var ExecutionRequest = Union([
19124
19078
  ChannelSettingsRequest
19125
19079
  ]);
19126
19080
  var Request4 = Union([ExecutionRequest, TaggedStruct("extract", { identity: Identity })]);
19127
- var Input2 = Union([Request4, TaggedStruct("cancel", { identity: Identity })]);
19128
- var Output = Union([Response, TaggedStruct("interrupted", { identity: Identity })]);
19129
19081
  function checkMessageSize(value, maximum) {
19130
19082
  if (new TextEncoder().encode(JSON.stringify(value)).byteLength <= maximum)
19131
19083
  return void_2;
@@ -19135,24 +19087,24 @@ function checkMessageSize(value, maximum) {
19135
19087
  }));
19136
19088
  }
19137
19089
  var encodeInput = fnUntraced(function* (input) {
19138
- const encoded = yield* encodeEffect(Input2)(input);
19090
+ const encoded = yield* encodeEffect(Request4)(input);
19139
19091
  yield* checkMessageSize(encoded, maxPayloadBytes);
19140
19092
  return encoded;
19141
19093
  });
19142
19094
  var decodeInput = fnUntraced(function* (input) {
19143
19095
  const json = yield* decodeUnknownEffect(Json)(input);
19144
19096
  yield* checkMessageSize(json, maxPayloadBytes);
19145
- return yield* decodeUnknownEffect(Input2)(json);
19097
+ return yield* decodeUnknownEffect(Request4)(json);
19146
19098
  });
19147
19099
  var encodeOutput = fnUntraced(function* (output, maximum) {
19148
- const encoded = yield* encodeEffect(Output)(output);
19100
+ const encoded = yield* encodeEffect(Response)(output);
19149
19101
  yield* checkMessageSize(encoded, maximum);
19150
19102
  return encoded;
19151
19103
  });
19152
19104
  var decodeOutput = fnUntraced(function* (output) {
19153
19105
  const json = yield* decodeUnknownEffect(Json)(output);
19154
19106
  yield* checkMessageSize(json, maxMetadataBytes);
19155
- return yield* decodeUnknownEffect(Output)(json);
19107
+ return yield* decodeUnknownEffect(Response)(json);
19156
19108
  });
19157
19109
  function responseLimit(request) {
19158
19110
  if ("_tag" in request && request._tag === "extract")
@@ -19184,7 +19136,7 @@ var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19184
19136
  bytes: Buffer.alloc(maximum),
19185
19137
  size: 0
19186
19138
  };
19187
- yield* pipe(input, runForEach((chunk) => gen(function* () {
19139
+ yield* pipe(input, runForEach2((chunk) => gen(function* () {
19188
19140
  if (output.size + chunk.byteLength > maximum)
19189
19141
  return yield* PluginExecutionError.make({
19190
19142
  category: "protocol",
@@ -19305,7 +19257,7 @@ var execute3 = fnUntraced(function* (request) {
19305
19257
  return yield* executeChannelSettings(request);
19306
19258
  });
19307
19259
 
19308
- export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, 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, map2, ensure, match3, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, takeRight, findFirst, sort, sortWith, zip, contains, empty2, of, map3, flatMap2, getSomes, filterMap, filter2, reduce, fromNullishOr2, every, some2, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, toPredicate, has2, compose, TaggedClass, Error2, TaggedError, forkUnsafe, isInterruptReason, fail2, hasInterruptsOnly, squash, hasInterrupts, filterInterruptors, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, make, _await, fail4, isDone, isDoneUnsafe, doneUnsafe, into, Scope, makeUnsafe3, addFinalizerExit, addFinalizer, fork, close, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, between, toUpperCase, toLowerCase, capitalize, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchCause, catchIf, catchCauseIf, mapError, orDie, tapCause, ignore, ignoreCause, timeout, timeoutOrElse, sleep, raceFirst, filterOrElse, matchEffect, context, provide2, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, fnUntraced, fn, clockWith, logError, effectify, await_, join2, interrupt2, interruptAll, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty3, empty4, InvalidValue, compose2, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, Tuple, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, Finite, Int, Natural, isMaxLength, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Uint8ArrayFromHex, DateTimeUtcFromString, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty5, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runForEach, runDrain, mkString, layer, fromUnknown, value2, when, whenOr, discriminatorsExhaustive, orElse2, __exportAll3, empty6, HttpClientError, InvalidUrlError, makeWith, post, put, del, setMethod, setHeader, setHeaders, bearerToken, acceptJson, setUrl, setUrlParam, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, Schema, AgentChannel_exports, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, Identity, filesUnavailable, PluginExecutionError, ipcMessages, sendIpc, decodeInput, encodeOutput, responseLimit, execute3 };
19260
+ export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isObject, hasProperty, 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, fromEntries, toEntries, has, map2, ensure, match3, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, takeRight, findFirst, sort, sortWith, zip, contains, empty, of, map3, flatMap2, getSomes, filterMap, filter2, reduce, fromNullishOr2, every, some2, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, TaggedClass, Error2, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope, make, makeUnsafe3, addFinalizerExit, addFinalizer, forkUnsafe, close, makeMemoMapUnsafe, buildWithMemoMap, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, between, toUpperCase, toLowerCase, capitalize, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, flatten, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchIf, catchCauseIf, mapError, orDie, ignore, ignoreCause, timeout, timeoutOrElse, sleep, raceFirst, filterOrElse, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, Finite, Int, Natural, isMaxLength, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Uint8ArrayFromHex, DateTimeUtcFromString, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, whenOr, discriminatorsExhaustive, orElse2, __exportAll3, empty5, HttpClientError, InvalidUrlError, makeWith, post, put, del, setMethod, setHeader, setHeaders, bearerToken, acceptJson, setUrl, setUrlParam, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, Schema, AgentChannel_exports, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19309
19261
 
19310
- //# debugId=68C5C93721F1E50864756E2164756E21
19311
- //# sourceMappingURL=plugin-d4a2ytg0.js.map
19262
+ //# debugId=264CD1DF2B65347764756E2164756E21
19263
+ //# sourceMappingURL=plugin-9vdeenc2.js.map