@kitman-sh/cli 0.6.0 → 0.7.0

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.
@@ -1050,7 +1050,7 @@ var EffectProto = {
1050
1050
  };
1051
1051
  }
1052
1052
  };
1053
- var isEffect2 = (u) => hasProperty(u, EffectTypeId);
1053
+ var isEffect = (u) => hasProperty(u, EffectTypeId);
1054
1054
  var isExit = (u) => hasProperty(u, ExitTypeId);
1055
1055
  var CauseTypeId = "~effect/Cause";
1056
1056
  var CauseReasonTypeId = "~effect/Cause/Reason";
@@ -1497,7 +1497,7 @@ var SomeImpl = function(value) {
1497
1497
  this.value = value;
1498
1498
  };
1499
1499
  SomeImpl.prototype = SomeProto;
1500
- var some2 = (value) => new SomeImpl(value);
1500
+ var some = (value) => new SomeImpl(value);
1501
1501
 
1502
1502
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/result.js
1503
1503
  var TypeId2 = "~effect/Result";
@@ -1587,7 +1587,7 @@ var max2 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ?
1587
1587
 
1588
1588
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Option.js
1589
1589
  var none = () => none2;
1590
- var some = some2;
1590
+ var some2 = some;
1591
1591
  var isNone = isNone2;
1592
1592
  var isSome = isSome2;
1593
1593
  var match = /* @__PURE__ */ dual(2, (self, {
@@ -1595,23 +1595,23 @@ var match = /* @__PURE__ */ dual(2, (self, {
1595
1595
  onSome
1596
1596
  }) => isNone(self) ? onNone() : onSome(self.value));
1597
1597
  var getOrElse = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? onNone() : self.value);
1598
- var fromNullishOr = (a) => a == null ? none() : some(a);
1599
- var fromUndefinedOr = (a) => a === undefined ? none() : some(a);
1598
+ var fromNullishOr = (a) => a == null ? none() : some2(a);
1599
+ var fromUndefinedOr = (a) => a === undefined ? none() : some2(a);
1600
1600
  var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
1601
1601
  var liftThrowable = (f) => (...a) => {
1602
1602
  try {
1603
- return some(f(...a));
1603
+ return some2(f(...a));
1604
1604
  } catch {
1605
1605
  return none();
1606
1606
  }
1607
1607
  };
1608
- var map = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? none() : some(f(self.value)));
1608
+ var map = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? none() : some2(f(self.value)));
1609
1609
  var flatMap2 = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? none() : f(self.value));
1610
- var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some(self.value) : none());
1610
+ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some2(self.value) : none());
1611
1611
 
1612
1612
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Context.js
1613
1613
  var ServiceTypeId = "~effect/Context/Service";
1614
- var Service2 = function() {
1614
+ var Service = function() {
1615
1615
  function KeyClass() {}
1616
1616
  const self = KeyClass;
1617
1617
  Object.setPrototypeOf(self, ServiceProto);
@@ -1649,7 +1649,7 @@ var ServiceProto = {
1649
1649
  return self;
1650
1650
  },
1651
1651
  context(self) {
1652
- return make8(this, self);
1652
+ return make3(this, self);
1653
1653
  },
1654
1654
  use(f) {
1655
1655
  return withFiber2((fiber) => f(get(fiber.context, this)));
@@ -1691,7 +1691,7 @@ var flatten = (self) => {
1691
1691
  var withFlat = (self, f) => {
1692
1692
  const map = new Map(self.mapUnsafe);
1693
1693
  f(map);
1694
- return makeUnsafe(map);
1694
+ return makeUnsafe6(map);
1695
1695
  };
1696
1696
  var notFound = /* @__PURE__ */ Symbol();
1697
1697
  var lookup = (self, key) => {
@@ -1710,7 +1710,7 @@ var lookup = (self, key) => {
1710
1710
  }
1711
1711
  return value;
1712
1712
  };
1713
- var makeUnsafe = (mapUnsafe) => makeImpl(undefined, mapUnsafe, undefined, 0);
1713
+ var makeUnsafe6 = (mapUnsafe) => makeImpl(undefined, mapUnsafe, undefined, 0);
1714
1714
  var Proto = {
1715
1715
  get mapUnsafe() {
1716
1716
  return flatten(this);
@@ -1749,8 +1749,8 @@ var hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
1749
1749
  var isContext = (u) => hasProperty(u, TypeId3);
1750
1750
  var isReference = (u) => !!u[ReferenceTypeId];
1751
1751
  var empty = () => emptyContext2;
1752
- var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map);
1753
- var make8 = (key, service) => makeUnsafe(new Map([[key.key, service]]));
1752
+ var emptyContext2 = /* @__PURE__ */ makeUnsafe6(/* @__PURE__ */ new Map);
1753
+ var make3 = (key, service) => makeUnsafe6(new Map([[key.key, service]]));
1754
1754
  var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
1755
1755
  var addUnsafe = (self, key, service) => {
1756
1756
  const impl = self;
@@ -1804,8 +1804,8 @@ var serviceNotFoundError = (service) => {
1804
1804
  var getOption = /* @__PURE__ */ dual(2, (self, service) => {
1805
1805
  const value = lookup(self, service.key);
1806
1806
  if (value !== notFound)
1807
- return some(value);
1808
- return isReference(service) ? some(getDefaultValue(service)) : none();
1807
+ return some2(value);
1808
+ return isReference(service) ? some2(getDefaultValue(service)) : none();
1809
1809
  });
1810
1810
  var merge = /* @__PURE__ */ dual(2, (self, that) => {
1811
1811
  if (self.mapUnsafe.size === 0)
@@ -1821,9 +1821,9 @@ var mergeAll2 = (...ctxs) => {
1821
1821
  map.set(key, value);
1822
1822
  });
1823
1823
  }
1824
- return makeUnsafe(map);
1824
+ return makeUnsafe6(map);
1825
1825
  };
1826
- var Reference = Service2;
1826
+ var Reference = Service;
1827
1827
 
1828
1828
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/array.js
1829
1829
  var isArrayNonEmpty = (self) => self.length > 0;
@@ -1980,7 +1980,7 @@ var bigint1e3 = /* @__PURE__ */ BigInt(1000);
1980
1980
  var bigint1e6 = /* @__PURE__ */ BigInt(1e6);
1981
1981
  var roundTiesAwayFromZero = (input) => BigInt(Math.sign(input) * Math.round(Math.abs(input)));
1982
1982
  var roundMillisToNanos = (millis) => roundTiesAwayFromZero(millis * 1e6);
1983
- var fromNanosNumber = (nanos) => make3(Number.isFinite(nanos) ? roundTiesAwayFromZero(nanos) : nanos);
1983
+ var fromNanosNumber = (nanos) => make4(Number.isFinite(nanos) ? roundTiesAwayFromZero(nanos) : nanos);
1984
1984
  var parseNanos = (input, scale) => {
1985
1985
  const decimalIndex = input.indexOf(".");
1986
1986
  if (decimalIndex === -1)
@@ -2078,7 +2078,7 @@ var fromInputUnsafe = (input) => {
2078
2078
  if (obj.milliseconds)
2079
2079
  millis += obj.milliseconds;
2080
2080
  if (!obj.microseconds && !obj.nanoseconds)
2081
- return make3(millis);
2081
+ return make4(millis);
2082
2082
  return fromNanosNumber(millis * 1e6 + (obj.microseconds ?? 0) * 1000 + (obj.nanoseconds ?? 0));
2083
2083
  }
2084
2084
  }
@@ -2159,7 +2159,7 @@ var DurationProto = {
2159
2159
  return pipeArguments(this, arguments);
2160
2160
  }
2161
2161
  };
2162
- var make3 = (input) => {
2162
+ var make4 = (input) => {
2163
2163
  const duration = Object.create(DurationProto);
2164
2164
  if (typeof input === "number") {
2165
2165
  if (isNaN(input) || input === 0 || Object.is(input, -0)) {
@@ -2218,21 +2218,21 @@ var abs = (self) => {
2218
2218
  case "NegativeInfinity":
2219
2219
  return infinity;
2220
2220
  case "Millis":
2221
- return self.value.millis < 0 ? make3(-self.value.millis) : self;
2221
+ return self.value.millis < 0 ? make4(-self.value.millis) : self;
2222
2222
  case "Nanos":
2223
- return self.value.nanos < bigint0 ? make3(-self.value.nanos) : self;
2224
- }
2225
- };
2226
- var zero = /* @__PURE__ */ make3(0);
2227
- var infinity = /* @__PURE__ */ make3(Infinity);
2228
- var negativeInfinity = /* @__PURE__ */ make3(-Infinity);
2229
- var nanos = (nanos) => make3(nanos);
2230
- var millis = (millis) => make3(millis);
2231
- var seconds = (seconds) => make3(seconds * 1000);
2232
- var minutes = (minutes) => make3(minutes * 60000);
2233
- var hours = (hours) => make3(hours * 3600000);
2234
- var days = (days) => make3(days * 86400000);
2235
- var weeks = (weeks) => make3(weeks * 604800000);
2223
+ return self.value.nanos < bigint0 ? make4(-self.value.nanos) : self;
2224
+ }
2225
+ };
2226
+ var zero = /* @__PURE__ */ make4(0);
2227
+ var infinity = /* @__PURE__ */ make4(Infinity);
2228
+ var negativeInfinity = /* @__PURE__ */ make4(-Infinity);
2229
+ var nanos = (nanos) => make4(nanos);
2230
+ var millis = (millis) => make4(millis);
2231
+ var seconds = (seconds) => make4(seconds * 1000);
2232
+ var minutes = (minutes) => make4(minutes * 60000);
2233
+ var hours = (hours) => make4(hours * 3600000);
2234
+ var days = (days) => make4(days * 86400000);
2235
+ var weeks = (weeks) => make4(weeks * 604800000);
2236
2236
  var toMillis = (self) => match3(fromInputUnsafe(self), {
2237
2237
  onMillis: identity,
2238
2238
  onNanos: (nanos) => Number(nanos) / 1e6,
@@ -2295,8 +2295,8 @@ var Equivalence = (self, that) => matchPair(self, that, {
2295
2295
  var min3 = /* @__PURE__ */ min2(Order);
2296
2296
  var max = /* @__PURE__ */ max2(Order);
2297
2297
  var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2298
- onMillis: (self, that) => make3(self - that),
2299
- onNanos: (self, that) => make3(self - that),
2298
+ onMillis: (self, that) => make4(self - that),
2299
+ onNanos: (self, that) => make4(self - that),
2300
2300
  onInfinity: (self, that) => {
2301
2301
  const s = self.value._tag;
2302
2302
  const t = that.value._tag;
@@ -2387,7 +2387,7 @@ var format2 = (self) => {
2387
2387
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Filter.js
2388
2388
  var toOption = (self) => (input) => {
2389
2389
  const result = self(input);
2390
- return isFailure(result) ? none() : some(result.success);
2390
+ return isFailure(result) ? none() : some2(result.success);
2391
2391
  };
2392
2392
 
2393
2393
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Scheduler.js
@@ -2567,11 +2567,11 @@ var random32 = () => {
2567
2567
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Tracer.js
2568
2568
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2569
2569
 
2570
- class ParentSpan extends (/* @__PURE__ */ Service2()(ParentSpanKey, {
2570
+ class ParentSpan extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2571
2571
  fiberCached: true
2572
2572
  })) {
2573
2573
  }
2574
- var make4 = (options) => options;
2574
+ var make5 = (options) => options;
2575
2575
  var DisablePropagation = /* @__PURE__ */ Reference("effect/Tracer/DisablePropagation", {
2576
2576
  defaultValue: constFalse
2577
2577
  });
@@ -2582,7 +2582,7 @@ var MinimumTraceLevel = /* @__PURE__ */ Reference("effect/Tracer/MinimumTraceLev
2582
2582
  defaultValue: () => "All"
2583
2583
  });
2584
2584
  var TracerKey = "effect/Tracer";
2585
- var nativeTracer = /* @__PURE__ */ make4({
2585
+ var nativeTracer = /* @__PURE__ */ make5({
2586
2586
  span: (options) => new NativeSpan(options)
2587
2587
  });
2588
2588
 
@@ -2782,7 +2782,7 @@ var causeInterruptors = (self) => {
2782
2782
  };
2783
2783
  var emptySet = /* @__PURE__ */ new Set;
2784
2784
  var hasInterruptsOnly2 = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason);
2785
- var reasonAnnotations = (self) => makeUnsafe(self.annotations);
2785
+ var reasonAnnotations = (self) => makeUnsafe6(self.annotations);
2786
2786
  var causeMap = /* @__PURE__ */ dual(2, (self, f) => {
2787
2787
  let hasFail = false;
2788
2788
  const failures = self.reasons.map((failure) => {
@@ -3034,7 +3034,7 @@ class FiberImpl {
3034
3034
  }
3035
3035
  let cause = causeInterrupt(fiberId);
3036
3036
  if (this.cache.stackFrame) {
3037
- cause = causeAnnotate(cause, make8(StackTraceKey, this.cache.stackFrame));
3037
+ cause = causeAnnotate(cause, make3(StackTraceKey, this.cache.stackFrame));
3038
3038
  }
3039
3039
  if (annotations) {
3040
3040
  cause = causeAnnotate(cause, annotations);
@@ -3225,7 +3225,7 @@ var fiberStackAnnotations = (fiber) => {
3225
3225
  return;
3226
3226
  const annotations = new Map;
3227
3227
  annotations.set(InterruptorStackTrace.key, fiber.cache.stackFrame);
3228
- return makeUnsafe(annotations);
3228
+ return makeUnsafe6(annotations);
3229
3229
  };
3230
3230
  var fiberAwait = (self) => {
3231
3231
  const impl = self;
@@ -3465,12 +3465,12 @@ var makeFn = (name, bodyOrOptions, defError, pipeables, addSpan, spanOptions) =>
3465
3465
  return defineFunctionLength(body.length, function(...args) {
3466
3466
  let result = suspend2(() => {
3467
3467
  const iter = body.apply(this, arguments);
3468
- return isEffect2(iter) ? iter : fromIteratorUnsafe(iter);
3468
+ return isEffect(iter) ? iter : fromIteratorUnsafe(iter);
3469
3469
  });
3470
3470
  for (let i = 0;i < pipeables.length; i++) {
3471
3471
  result = pipeables[i](result, ...args);
3472
3472
  }
3473
- if (!isEffect2(result)) {
3473
+ if (!isEffect(result)) {
3474
3474
  return result;
3475
3475
  }
3476
3476
  const prevLimit = getStackTraceLimit();
@@ -3613,9 +3613,9 @@ var tapCont = function(value) {
3613
3613
  var tapEffectCont = function(value) {
3614
3614
  return new ContImpl(this.payload, succeedPayload, value);
3615
3615
  };
3616
- var asSome2 = (self) => map8(self, some);
3617
- var andThen2 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect2(f) ? returnPayload : andThenCont, f));
3618
- var tap2 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect2(f) ? tapEffectCont : tapCont, f));
3616
+ var asSome2 = (self) => map8(self, some2);
3617
+ var andThen2 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect(f) ? returnPayload : andThenCont, f));
3618
+ var tap2 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, isEffect(f) ? tapEffectCont : tapCont, f));
3619
3619
  var asVoid2 = (self) => new ContImpl(self, returnPayload, exitVoid);
3620
3620
  var sandbox2 = (self) => catchCause2(self, fail6);
3621
3621
  var raceAllFirst = (all, options) => withFiber2((parent) => {
@@ -3646,7 +3646,7 @@ var raceAllFirst = (all, options) => withFiber2((parent) => {
3646
3646
  }
3647
3647
  });
3648
3648
  });
3649
- var raceFirst2 = /* @__PURE__ */ dual((args) => isEffect2(args[1]), (self, that, options) => raceAllFirst([self, that], options));
3649
+ var raceFirst2 = /* @__PURE__ */ dual((args) => isEffect(args[1]), (self, that, options) => raceAllFirst([self, that], options));
3650
3650
  var flatMap3 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, andThenCont, f));
3651
3651
  var effectIsExit = (effect) => effect[ExitTypeId] !== undefined;
3652
3652
  var flatMapEager = /* @__PURE__ */ dual(2, (self, f) => {
@@ -3726,7 +3726,7 @@ var updateService2 = /* @__PURE__ */ dual(3, (self, service, f) => updateContext
3726
3726
  var context2 = () => getContext;
3727
3727
  var getContext = /* @__PURE__ */ withFiber2((fiber) => succeed7(fiber.context));
3728
3728
  var contextWith2 = (f) => withFiber2((fiber) => f(fiber.context));
3729
- var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => {
3729
+ var provideContext2 = /* @__PURE__ */ dual(2, (self, context) => {
3730
3730
  if (effectIsExit(self))
3731
3731
  return self;
3732
3732
  return updateContext2(self, merge(context));
@@ -3738,8 +3738,8 @@ var provideService2 = function() {
3738
3738
  return dual(3, (self, service, impl) => provideServiceImpl(self, service, impl)).apply(this, arguments);
3739
3739
  };
3740
3740
  var provideServiceImpl = (self, service, implementation) => updateContext2(self, add(service, implementation));
3741
- var filterOrFail2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, orFailWith) => filterOrElse(self, predicate, orFailWith ? (a) => fail6(orFailWith(a)) : () => fail6(new NoSuchElementError)));
3742
- var forever2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => whileLoop2({
3741
+ var filterOrFail2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, predicate, orFailWith) => filterOrElse(self, predicate, orFailWith ? (a) => fail6(orFailWith(a)) : () => fail6(new NoSuchElementError)));
3742
+ var forever2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, options) => whileLoop2({
3743
3743
  while: constTrue,
3744
3744
  body: constant(options?.disableYield ? self : flatMap3(self, (_) => yieldNow2)),
3745
3745
  step: constVoid
@@ -3775,7 +3775,7 @@ var tapCauseFilter = /* @__PURE__ */ dual(3, (self, filter, f) => catchCause2(se
3775
3775
  return andThen2(f(result.success, cause), failCause4(cause));
3776
3776
  }));
3777
3777
  var tapError2 = /* @__PURE__ */ dual(2, (self, f) => tapCauseFilter(self, findError2, (e) => f(e)));
3778
- var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3778
+ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, predicate, f, orElse) => catchCause2(self, (cause) => {
3779
3779
  const error = findError2(cause);
3780
3780
  if (isFailure(error))
3781
3781
  return failCause4(error.failure);
@@ -3784,7 +3784,7 @@ var catchIf2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, predica
3784
3784
  }
3785
3785
  return f(error.success);
3786
3786
  }));
3787
- var catchFilter = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, filter, f, orElse) => catchCause2(self, (cause) => {
3787
+ var catchFilter = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, filter, f, orElse) => catchCause2(self, (cause) => {
3788
3788
  const error = findError2(cause);
3789
3789
  if (isFailure(error))
3790
3790
  return failCause4(error.failure);
@@ -3794,18 +3794,18 @@ var catchFilter = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, filt
3794
3794
  }
3795
3795
  return f(result.success);
3796
3796
  }));
3797
- var catchTag2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, k, f, orElse) => {
3797
+ var catchTag2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, k, f, orElse) => {
3798
3798
  const pred = Array.isArray(k) ? (e) => hasProperty(e, "_tag") && k.includes(e._tag) : isTagged(k);
3799
3799
  return catchIf2(self, pred, f, orElse);
3800
3800
  });
3801
- var catchTags2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, cases, orElse) => {
3801
+ var catchTags2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, cases, orElse) => {
3802
3802
  let keys;
3803
3803
  return catchFilter(self, (e) => {
3804
3804
  keys ??= Object.keys(cases);
3805
3805
  return hasProperty(e, "_tag") && isString(e["_tag"]) && keys.includes(e["_tag"]) ? succeed(e) : fail(e);
3806
3806
  }, (e) => cases[e["_tag"]](e), orElse);
3807
3807
  });
3808
- var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, errorTag, reasonTag, f, orElse) => catchIf2(self, (e) => isTagged(e, errorTag) && hasProperty(e, "reason") && (orElse !== undefined || isTagged(e.reason, reasonTag)), (e) => {
3808
+ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, errorTag, reasonTag, f, orElse) => catchIf2(self, (e) => isTagged(e, errorTag) && hasProperty(e, "reason") && (orElse !== undefined || isTagged(e.reason, reasonTag)), (e) => {
3809
3809
  const reason = e.reason;
3810
3810
  if (isTagged(reason, reasonTag))
3811
3811
  return f(reason, e);
@@ -3818,7 +3818,7 @@ var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchEffect2(self, {
3818
3818
  }));
3819
3819
  var orDie2 = (self) => catch_2(self, die4);
3820
3820
  var orElseSucceed2 = /* @__PURE__ */ dual(2, (self, f) => catch_2(self, (error) => sync2(() => f(error))));
3821
- var ignore2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => {
3821
+ var ignore2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, options) => {
3822
3822
  if (!options?.log) {
3823
3823
  return matchEffect2(self, {
3824
3824
  onFailure: (_) => void_3,
@@ -3834,7 +3834,7 @@ var ignore2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options)
3834
3834
  onSuccess: (_) => void_3
3835
3835
  });
3836
3836
  });
3837
- var ignoreCause2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => {
3837
+ var ignoreCause2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, options) => {
3838
3838
  if (!options?.log) {
3839
3839
  return matchCauseEffect2(self, {
3840
3840
  onFailure: (_) => void_3,
@@ -3849,7 +3849,7 @@ var ignoreCause2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, opt
3849
3849
  });
3850
3850
  var option3 = (self) => match4(self, {
3851
3851
  onFailure: none,
3852
- onSuccess: some
3852
+ onSuccess: some2
3853
3853
  });
3854
3854
  var result2 = (self) => matchEager(self, {
3855
3855
  onFailure: fail,
@@ -3937,7 +3937,7 @@ var timeout2 = /* @__PURE__ */ dual(2, (self, duration) => {
3937
3937
  var timeoutOption = /* @__PURE__ */ dual(2, (self, duration) => raceFirst2(asSome2(self), as2(sleep2(duration), none())));
3938
3938
  var ScopeTypeId = "~effect/Scope";
3939
3939
  var ScopeCloseableTypeId = "~effect/Scope/Closeable";
3940
- var scopeTag = /* @__PURE__ */ Service2("effect/Scope");
3940
+ var scopeTag = /* @__PURE__ */ Service("effect/Scope");
3941
3941
  var scopeClose = (self, exit_) => withFiber2((fiber) => {
3942
3942
  fiberEnterUninterruptibleUnsafe(fiber);
3943
3943
  return scopeCloseUnsafe(self, exit_) ?? void_3;
@@ -4070,8 +4070,8 @@ var scopedWith = (f) => suspend2(() => {
4070
4070
  const scope = scopeMakeUnsafe();
4071
4071
  return onExit2(f(scope), (exit) => suspend2(() => scopeCloseUnsafe(scope, exit) ?? void_3));
4072
4072
  });
4073
- var acquireRelease2 = (acquire, release, options) => contextWith2((context) => uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => tap2(options?.interruptible ? restore(acquire) : acquire, (a) => scopeAddFinalizerExit(scope, (exit) => provideContext3(release(a, exit), context))))));
4074
- var addFinalizer3 = (finalizer) => flatMap3(scope2, (scope) => contextWith2((context) => scopeAddFinalizerExit(scope, (exit) => provideContext3(finalizer(exit), context))));
4073
+ var acquireRelease2 = (acquire, release, options) => contextWith2((context) => uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => tap2(options?.interruptible ? restore(acquire) : acquire, (a) => scopeAddFinalizerExit(scope, (exit) => provideContext2(release(a, exit), context))))));
4074
+ var addFinalizer3 = (finalizer) => flatMap3(scope2, (scope) => contextWith2((context) => scopeAddFinalizerExit(scope, (exit) => provideContext2(finalizer(exit), context))));
4075
4075
  var OnExitImpl = /* @__PURE__ */ function() {
4076
4076
  const Proto = /* @__PURE__ */ makePrimitiveProto({
4077
4077
  op: "OnExit",
@@ -4240,7 +4240,7 @@ var all4 = (arg, options) => {
4240
4240
  }), out);
4241
4241
  });
4242
4242
  };
4243
- var findFirst2 = /* @__PURE__ */ dual((args) => isIterable(args[0]) && !isEffect2(args[0]), (elements, predicate) => suspend2(() => {
4243
+ var findFirst2 = /* @__PURE__ */ dual((args) => isIterable(args[0]) && !isEffect(args[0]), (elements, predicate) => suspend2(() => {
4244
4244
  const iterator = elements[Symbol.iterator]();
4245
4245
  const next = iterator.next();
4246
4246
  if (!next.done) {
@@ -4250,7 +4250,7 @@ var findFirst2 = /* @__PURE__ */ dual((args) => isIterable(args[0]) && !isEffect
4250
4250
  }));
4251
4251
  var findFirstLoop = (iterator, index, predicate, value) => flatMap3(predicate(value, index), (keep) => {
4252
4252
  if (keep) {
4253
- return succeed7(some(value));
4253
+ return succeed7(some2(value));
4254
4254
  }
4255
4255
  const next = iterator.next();
4256
4256
  if (!next.done) {
@@ -4474,8 +4474,8 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
4474
4474
  }
4475
4475
  return child;
4476
4476
  };
4477
- var forkDetach2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => withFiber2((fiber) => succeed7(forkUnsafe(fiber, self, options?.startImmediately, true, options?.uninterruptible))));
4478
- var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, options) => withFiber2((parent) => {
4477
+ var forkDetach2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, options) => withFiber2((fiber) => succeed7(forkUnsafe(fiber, self, options?.startImmediately, true, options?.uninterruptible))));
4478
+ var forkIn2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, scope, options) => withFiber2((parent) => {
4479
4479
  const fiber = forkUnsafe(parent, self, options?.startImmediately, true, options?.uninterruptible);
4480
4480
  if (!fiber._exit) {
4481
4481
  if (scope.state._tag !== "Closed") {
@@ -4489,7 +4489,7 @@ var forkIn2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, scope, o
4489
4489
  }
4490
4490
  return succeed7(fiber);
4491
4491
  }));
4492
- var forkScoped2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, options) => flatMap3(scope2, (scope) => forkIn2(self, scope, options)));
4492
+ var forkScoped2 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, options) => flatMap3(scope2, (scope) => forkIn2(self, scope, options)));
4493
4493
  var runForkWith2 = (context) => (effect, options) => {
4494
4494
  const fiber = new FiberImpl(options?.scheduler ? add(context, Scheduler, options.scheduler) : context, options?.uninterruptible !== true);
4495
4495
  fiber.evaluate(effect);
@@ -4677,11 +4677,11 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
4677
4677
  var filterDisablePropagation = (span) => {
4678
4678
  if (!span)
4679
4679
  return none();
4680
- return get(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
4680
+ return get(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some2(span);
4681
4681
  };
4682
4682
  var makeSpanUnsafe = (fiber, name, options) => {
4683
4683
  const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get(options.annotations, DisablePropagation);
4684
- const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
4684
+ const parent = options?.parent !== undefined ? some2(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
4685
4685
  let span;
4686
4686
  if (disablePropagation) {
4687
4687
  span = noopSpan({
@@ -4751,7 +4751,7 @@ var useSpan2 = (name, ...args) => {
4751
4751
  };
4752
4752
  var provideParentSpan = /* @__PURE__ */ provideService2(ParentSpan);
4753
4753
  var withParentSpan2 = function() {
4754
- const dataFirst = isEffect2(arguments[0]);
4754
+ const dataFirst = isEffect(arguments[0]);
4755
4755
  const span = dataFirst ? arguments[1] : arguments[0];
4756
4756
  let options = dataFirst ? arguments[2] : arguments[1];
4757
4757
  let provideStackFrame = identity;
@@ -5115,8 +5115,8 @@ var DeferredImpl = function() {
5115
5115
  this.effect = undefined;
5116
5116
  };
5117
5117
  DeferredImpl.prototype = DeferredProto;
5118
- var makeUnsafe2 = () => new DeferredImpl;
5119
- var make5 = () => sync2(() => makeUnsafe2());
5118
+ var makeUnsafe = () => new DeferredImpl;
5119
+ var make15 = () => sync2(() => makeUnsafe());
5120
5120
  var _await = (self) => callback2((resume) => {
5121
5121
  if (self.effect)
5122
5122
  return resume(self.effect);
@@ -5157,8 +5157,8 @@ var TracerTimingEnabled2 = TracerTimingEnabled;
5157
5157
 
5158
5158
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Scope.js
5159
5159
  var Scope = scopeTag;
5160
- var make9 = scopeMake;
5161
- var makeUnsafe3 = scopeMakeUnsafe;
5160
+ var make6 = scopeMake;
5161
+ var makeUnsafe2 = scopeMakeUnsafe;
5162
5162
  var provide = provideScope;
5163
5163
  var addFinalizerExit = scopeAddFinalizerExit;
5164
5164
  var addFinalizer = scopeAddFinalizer;
@@ -5171,8 +5171,8 @@ var MemoMapTypeId = "~effect/Layer/MemoMap";
5171
5171
  var makeMemoMapEntry = (memoMap, layer) => {
5172
5172
  const entry = {
5173
5173
  observers: 0,
5174
- deferred: makeUnsafe2(),
5175
- scope: makeUnsafe3(),
5174
+ deferred: makeUnsafe(),
5175
+ scope: makeUnsafe2(),
5176
5176
  finalizer: (exit) => suspend2(() => {
5177
5177
  if (--entry.observers > 0)
5178
5178
  return void_3;
@@ -5252,7 +5252,7 @@ class MemoMapImpl {
5252
5252
  }
5253
5253
  var makeMemoMapUnsafe = () => new MemoMapImpl;
5254
5254
  var forkMemoMapUnsafe = (parent) => new MemoMapImpl(parent);
5255
- class CurrentMemoMap extends (/* @__PURE__ */ Service2()("effect/Layer/CurrentMemoMap")) {
5255
+ class CurrentMemoMap extends (/* @__PURE__ */ Service()("effect/Layer/CurrentMemoMap")) {
5256
5256
  static forkOrCreate(self) {
5257
5257
  const current = getOrUndefined2(self, CurrentMemoMap);
5258
5258
  return current ? forkMemoMapUnsafe(current) : makeMemoMapUnsafe();
@@ -5263,9 +5263,9 @@ var build2 = (self) => withFiber2((fiber) => buildWithMemoMap(self, CurrentMemoM
5263
5263
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber2((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
5264
5264
  var succeed4 = function() {
5265
5265
  if (arguments.length === 1) {
5266
- return (resource) => succeedContext(make8(arguments[0], resource));
5266
+ return (resource) => succeedContext(make3(arguments[0], resource));
5267
5267
  }
5268
- return succeedContext(make8(arguments[0], arguments[1]));
5268
+ return succeedContext(make3(arguments[0], arguments[1]));
5269
5269
  };
5270
5270
  var succeedContext = (context) => fromBuildUnsafe(constant(succeed7(context)));
5271
5271
  var effect = function() {
@@ -5274,7 +5274,7 @@ var effect = function() {
5274
5274
  }
5275
5275
  return effectImpl(arguments[0], arguments[1]);
5276
5276
  };
5277
- var effectImpl = (service, effect) => effectContext(map8(effect, (value) => make8(service, value)));
5277
+ var effectImpl = (service, effect) => effectContext(map8(effect, (value) => make3(service, value)));
5278
5278
  var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
5279
5279
  var effectDiscard = (effect) => effectContext(as2(effect, empty()));
5280
5280
  var mergeAllEffect = (layers, memoMap, scope) => {
@@ -5284,7 +5284,7 @@ var mergeAllEffect = (layers, memoMap, scope) => {
5284
5284
  }).pipe(map8((context) => mergeAll2(...context)));
5285
5285
  };
5286
5286
  var mergeAll = (...layers) => fromBuild((memoMap, scope) => mergeAllEffect(layers, memoMap, scope));
5287
- var provideWith = (self, that, f) => fromBuild((memoMap, scope) => flatMap3(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope) : that.build(memoMap, scope), (context) => self.build(memoMap, scope).pipe(provideContext3(context), map8((merged) => f(merged, context)))));
5287
+ var provideWith = (self, that, f) => fromBuild((memoMap, scope) => flatMap3(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope) : that.build(memoMap, scope), (context) => self.build(memoMap, scope).pipe(provideContext2(context), map8((merged) => f(merged, context)))));
5288
5288
  var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, identity));
5289
5289
  var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self, that) => merge(that, self)));
5290
5290
 
@@ -5418,7 +5418,7 @@ var makeUnsafe7 = (input) => {
5418
5418
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input);
5419
5419
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
5420
5420
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
5421
- var make6 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
5421
+ var make16 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
5422
5422
  var now = /* @__PURE__ */ map8(currentTimeMillis, makeUtc);
5423
5423
  var nowUnsafe = () => makeUtc(Date.now());
5424
5424
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -5670,15 +5670,15 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map8(toStep(s
5670
5670
  output,
5671
5671
  duration
5672
5672
  });
5673
- return flatMap3(isEffect2(eff) ? eff : succeed7(eff), (check) => check ? succeed7(result) : done(output));
5673
+ return flatMap3(isEffect(eff) ? eff : succeed7(eff), (check) => check ? succeed7(result) : done(output));
5674
5674
  });
5675
5675
  })));
5676
5676
  var forever3 = /* @__PURE__ */ spaced(zero);
5677
5677
  var setInputType = () => (self) => self;
5678
5678
 
5679
5679
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/layer.js
5680
- var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap3(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext3(self, context)));
5681
- var provide4 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, source, options) => isContext(source) ? provideContext3(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
5680
+ var provideLayer = (self, layer, options) => scopedWith((scope) => flatMap3(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext2(self, context)));
5681
+ var provide4 = /* @__PURE__ */ dual((args) => isEffect(args[0]), (self, source, options) => isContext(source) ? provideContext2(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
5682
5682
 
5683
5683
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schedule.js
5684
5684
  var findErrorOnly = (cause) => cause.reasons.every(isFailReason) ? findError2(cause) : fail(cause);
@@ -5688,7 +5688,7 @@ var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap3(
5688
5688
  meta = meta_;
5689
5689
  })), {
5690
5690
  disableYield: true
5691
- }), (out) => succeed7(out)), findErrorOnly, (error) => orElse(error, meta.attempt === 0 ? none() : some(meta)));
5691
+ }), (out) => succeed7(out)), findErrorOnly, (error) => orElse(error, meta.attempt === 0 ? none() : some2(meta)));
5692
5692
  }));
5693
5693
  var retryOrElse2 = /* @__PURE__ */ dual(3, (self, policy, orElse) => flatMap3(toStepWithMetadata(policy), (step) => {
5694
5694
  let meta = CurrentMetadata.defaultValue();
@@ -5718,7 +5718,7 @@ var buildFromOptions = (options) => {
5718
5718
  input
5719
5719
  }) => {
5720
5720
  const applied = options.while(input);
5721
- return isEffect2(applied) ? applied : succeed7(applied);
5721
+ return isEffect(applied) ? applied : succeed7(applied);
5722
5722
  });
5723
5723
  }
5724
5724
  if (options.until) {
@@ -5726,7 +5726,7 @@ var buildFromOptions = (options) => {
5726
5726
  input
5727
5727
  }) => {
5728
5728
  const applied = options.until(input);
5729
- return isEffect2(applied) ? map8(applied, (b) => !b) : succeed7(!applied);
5729
+ return isEffect(applied) ? map8(applied, (b) => !b) : succeed7(!applied);
5730
5730
  });
5731
5731
  }
5732
5732
  if (options.times !== undefined) {
@@ -5938,7 +5938,7 @@ function attributesToRecord(attributes) {
5938
5938
  }
5939
5939
 
5940
5940
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Effect.js
5941
- var isEffect = isEffect2;
5941
+ var isEffect2 = isEffect;
5942
5942
  var all = all4;
5943
5943
  var findFirst = findFirst2;
5944
5944
  var forEach = forEach2;
@@ -6000,7 +6000,7 @@ var matchEffect = matchEffect2;
6000
6000
  var context = context2;
6001
6001
  var contextWith = contextWith2;
6002
6002
  var provide3 = provide4;
6003
- var provideContext = provideContext3;
6003
+ var provideContext = provideContext2;
6004
6004
  var serviceOption = serviceOption2;
6005
6005
  var updateContext = updateContext2;
6006
6006
  var updateService = updateService2;
@@ -6043,7 +6043,7 @@ var clockWith2 = clockWith;
6043
6043
  var logWarning = /* @__PURE__ */ logWithLevel("Warn");
6044
6044
  var logError = /* @__PURE__ */ logWithLevel("Error");
6045
6045
  var logInfo = /* @__PURE__ */ logWithLevel("Info");
6046
- var annotateLogs = /* @__PURE__ */ dual((args) => isEffect(args[0]), (effect, ...args) => updateService2(effect, CurrentLogAnnotations2, (annotations) => {
6046
+ var annotateLogs = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (effect, ...args) => updateService2(effect, CurrentLogAnnotations2, (annotations) => {
6047
6047
  const newAnnotations = args.length === 1 ? {
6048
6048
  ...annotations,
6049
6049
  ...args[0]
@@ -6085,7 +6085,7 @@ var defaultTeardown = (exit, onExit) => {
6085
6085
  return onExit(130);
6086
6086
  return onExit(getErrorExitCode(squash(exit.cause)));
6087
6087
  };
6088
- var makeRunMain = (f) => dual((args) => isEffect(args[0]), (effect, options) => {
6088
+ var makeRunMain = (f) => dual((args) => isEffect2(args[0]), (effect, options) => {
6089
6089
  const fiber = options?.disableErrorReporting === true ? runFork(effect) : runFork(tapCause(effect, (cause) => {
6090
6090
  if (hasInterruptsOnly(cause))
6091
6091
  return void_2;
@@ -6157,7 +6157,7 @@ var toNumber = (b) => {
6157
6157
  if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
6158
6158
  return none();
6159
6159
  }
6160
- return some(Number(b));
6160
+ return some2(Number(b));
6161
6161
  };
6162
6162
 
6163
6163
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/ByteSize.js
@@ -6245,7 +6245,7 @@ var binaryUnits = [decimalUnits[0], {
6245
6245
  }];
6246
6246
  var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
6247
6247
  var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
6248
- var make7 = (value) => value;
6248
+ var make17 = (value) => value;
6249
6249
  var invalid2 = (message) => {
6250
6250
  throw new Error(`Invalid ByteSize: ${message}`);
6251
6251
  };
@@ -6253,7 +6253,7 @@ var fromNumber = (input) => {
6253
6253
  if (!Number.isSafeInteger(input) || input < 0) {
6254
6254
  return invalid2(`expected a non-negative safe integer, received ${input}`);
6255
6255
  }
6256
- return make7(BigInt(input));
6256
+ return make17(BigInt(input));
6257
6257
  };
6258
6258
  var fromStringUnsafe = (input) => {
6259
6259
  const match = /^\s*(\d+)(?:\.(\d+))?\s*([A-Za-z]+)\s*$/.exec(input);
@@ -6268,14 +6268,14 @@ var fromStringUnsafe = (input) => {
6268
6268
  if (numerator % scale !== bigint04) {
6269
6269
  return invalid2(`${JSON.stringify(input)} does not represent an integral number of bytes`);
6270
6270
  }
6271
- return make7(numerator / scale);
6271
+ return make17(numerator / scale);
6272
6272
  };
6273
6273
  var fromInputUnsafe2 = (input) => {
6274
6274
  switch (typeof input) {
6275
6275
  case "bigint":
6276
6276
  if (input < bigint04)
6277
6277
  return invalid2(`expected a non-negative bigint, received ${input}`);
6278
- return make7(input);
6278
+ return make17(input);
6279
6279
  case "number":
6280
6280
  return fromNumber(input);
6281
6281
  case "string":
@@ -6328,7 +6328,7 @@ var getCurrent = getCurrentFiber;
6328
6328
  var runIn = fiberRunIn;
6329
6329
 
6330
6330
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Latch.js
6331
- var makeUnsafe4 = makeLatchUnsafe;
6331
+ var makeUnsafe3 = makeLatchUnsafe;
6332
6332
 
6333
6333
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/MutableRef.js
6334
6334
  var TypeId11 = "~effect/MutableRef";
@@ -6342,7 +6342,7 @@ var MutableRefProto = {
6342
6342
  };
6343
6343
  }
6344
6344
  };
6345
- var make10 = (value) => {
6345
+ var make7 = (value) => {
6346
6346
  const ref = Object.create(MutableRefProto);
6347
6347
  ref.current = value;
6348
6348
  return ref;
@@ -6480,7 +6480,7 @@ var QueueProto = {
6480
6480
  };
6481
6481
  }
6482
6482
  };
6483
- var make11 = (options) => withFiber2((fiber) => {
6483
+ var make8 = (options) => withFiber2((fiber) => {
6484
6484
  const self = Object.create(QueueProto);
6485
6485
  self.dispatcher = fiber.currentDispatcher;
6486
6486
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
@@ -6495,7 +6495,7 @@ var make11 = (options) => withFiber2((fiber) => {
6495
6495
  };
6496
6496
  return succeed7(self);
6497
6497
  });
6498
- var bounded = (capacity) => make11({
6498
+ var bounded = (capacity) => make8({
6499
6499
  capacity
6500
6500
  });
6501
6501
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
@@ -6605,7 +6605,7 @@ var poll = (self) => suspendTake(() => {
6605
6605
  return succeed7(none());
6606
6606
  }
6607
6607
  if (result._tag === "Success") {
6608
- return succeed7(some(result.value));
6608
+ return succeed7(some2(result.value));
6609
6609
  }
6610
6610
  return succeed7(none());
6611
6611
  });
@@ -6777,7 +6777,7 @@ var finalize = (self, exit) => {
6777
6777
  };
6778
6778
 
6779
6779
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Semaphore.js
6780
- var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6780
+ var makeUnsafe4 = (permits) => new SemaphoreImpl(permits);
6781
6781
  var waitForPermits = (self, n, effect) => callback2((resume) => {
6782
6782
  if (self.free >= n)
6783
6783
  return resume(effect);
@@ -6908,7 +6908,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
6908
6908
  return onError(pull, onCause);
6909
6909
  }));
6910
6910
  var toTransform = (channel) => channel.transform;
6911
- var asyncQueue = (scope, f, options) => make11({
6911
+ var asyncQueue = (scope, f, options) => make8({
6912
6912
  capacity: options?.bufferSize,
6913
6913
  strategy: options?.strategy
6914
6914
  }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => provide(f(queue), scope).pipe(catchCause((cause) => failCause3(queue, cause)), forkIn(scope))));
@@ -6935,7 +6935,7 @@ var fromReadableStream = (options) => fromTransform((_, scope) => readableStream
6935
6935
  }));
6936
6936
  var readableStreamToPullUnsafe = (options) => {
6937
6937
  const reader = options.readable.getReader();
6938
- const exit = options.exit ?? make10(undefined);
6938
+ const exit = options.exit ?? make7(undefined);
6939
6939
  const pull = suspend(() => {
6940
6940
  if (exit.current)
6941
6941
  return exit.current;
@@ -7064,7 +7064,7 @@ var splitLines2 = () => fromTransform((upstream, _scope) => sync(() => {
7064
7064
  onSuccess: loop,
7065
7065
  onFailure: failCause2,
7066
7066
  onDone: (leftover) => {
7067
- done2 = some(leftover);
7067
+ done2 = some2(leftover);
7068
7068
  if (stringBuilder.length > 0) {
7069
7069
  const last = stringBuilder;
7070
7070
  stringBuilder = "";
@@ -7093,11 +7093,11 @@ var unwrap2 = (channel) => fromTransform((upstream, scope) => {
7093
7093
  var onExit3 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen(toTransform(self)(upstream, scope)))));
7094
7094
  var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit3(self, (_) => finalizer));
7095
7095
  var runWith = (self, f, onHalt) => suspend(() => {
7096
- const scope = makeUnsafe3();
7096
+ const scope = makeUnsafe2();
7097
7097
  const makePull = toTransform(self)(done(), scope);
7098
7098
  return catchDone(flatMap(makePull, f), onHalt ? onHalt : succeed5).pipe(onExit((exit) => close(scope, exit)));
7099
7099
  });
7100
- var provideContext4 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map3(provideContext(toTransform(self)(upstream, scope), context), provideContext(context))));
7100
+ var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map3(provideContext(toTransform(self)(upstream, scope), context), provideContext(context))));
7101
7101
  var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap(pull, f), {
7102
7102
  disableYield: true
7103
7103
  })));
@@ -7175,155 +7175,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap(f),
7175
7175
  }), catchDone(() => endVoid)));
7176
7176
  var unwrap3 = (effect) => fromChannel(unwrap2(map3(effect, toChannel)));
7177
7177
 
7178
- // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/rcRef.js
7179
- var TypeId16 = "~effect/RcRef";
7180
- var stateEmpty = {
7181
- _tag: "Empty"
7182
- };
7183
- var stateClosed = {
7184
- _tag: "Closed"
7185
- };
7186
- var variance2 = {
7187
- _A: identity,
7188
- _E: identity
7189
- };
7190
-
7191
- class RcRefImpl {
7192
- [TypeId16] = variance2;
7193
- pipe() {
7194
- return pipeArguments(this, arguments);
7195
- }
7196
- state = stateEmpty;
7197
- acquire;
7198
- context;
7199
- scope;
7200
- idleTimeToLive;
7201
- constructor(acquire, context, scope, idleTimeToLive) {
7202
- this.acquire = acquire;
7203
- this.context = context;
7204
- this.scope = scope;
7205
- this.idleTimeToLive = idleTimeToLive;
7206
- }
7207
- }
7208
- var make20 = (options) => withFiber((fiber) => {
7209
- const context = fiber.context;
7210
- const scope = get(context, Scope);
7211
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
7212
- return as(addFinalizerExit(scope, () => {
7213
- const state = ref.state;
7214
- ref.state = stateClosed;
7215
- if (state._tag === "Acquired")
7216
- return close(state.scope, void_);
7217
- if (state._tag === "Acquiring")
7218
- return interrupt3(state.fiber);
7219
- return void_2;
7220
- }), ref);
7221
- });
7222
- var getState = (self, restore) => {
7223
- switch (self.state._tag) {
7224
- case "Closed": {
7225
- return interrupt2;
7226
- }
7227
- case "Acquired": {
7228
- const state = self.state;
7229
- state.refCount++;
7230
- return state.fiber ? as(interrupt3(state.fiber), state) : succeed5(state);
7231
- }
7232
- case "Acquiring": {
7233
- const state = self.state;
7234
- state.awaiters++;
7235
- return awaitAcquiring(self, state, restore);
7236
- }
7237
- case "Empty": {
7238
- const acquiring = {
7239
- _tag: "Acquiring",
7240
- fiber: undefined,
7241
- awaiters: 1,
7242
- acquired: undefined
7243
- };
7244
- self.state = acquiring;
7245
- const scope = makeUnsafe3();
7246
- const acquire = provideContext(self.acquire, add(self.context, Scope, scope)).pipe(flatMap((value) => {
7247
- if (self.state !== acquiring) {
7248
- return interrupt2;
7249
- }
7250
- const state = {
7251
- _tag: "Acquired",
7252
- value,
7253
- scope,
7254
- fiber: undefined,
7255
- refCount: acquiring.awaiters,
7256
- invalidated: false
7257
- };
7258
- self.state = state;
7259
- acquiring.acquired = state;
7260
- return succeed5(state);
7261
- }), onExit((exit) => {
7262
- if (isSuccess2(exit))
7263
- return void_2;
7264
- if (self.state === acquiring)
7265
- self.state = stateEmpty;
7266
- return close(scope, exit);
7267
- }));
7268
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
7269
- return awaitAcquiring(self, acquiring, restore);
7270
- }
7271
- }
7272
- };
7273
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
7274
- const acquired = acquiring.acquired;
7275
- if (acquired !== undefined) {
7276
- return isFailure2(exit) ? release(self, acquired) : void_2;
7277
- }
7278
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
7279
- return void_2;
7280
- self.state = stateEmpty;
7281
- return interrupt3(acquiring.fiber);
7282
- });
7283
- var get4 = (self_) => {
7284
- const self = self_;
7285
- return uninterruptibleMask((restore) => flatMap(scope, (scope) => flatMap(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
7286
- };
7287
- var release = (self, state) => {
7288
- state.refCount--;
7289
- if (state.refCount > 0) {
7290
- return void_2;
7291
- }
7292
- const idleTimeToLive = self.idleTimeToLive;
7293
- if (idleTimeToLive === undefined || state.invalidated) {
7294
- if (self.state === state) {
7295
- self.state = stateEmpty;
7296
- }
7297
- return close(state.scope, void_);
7298
- } else if (!isFinite(idleTimeToLive)) {
7299
- return void_2;
7300
- }
7301
- state.fiber = uninterruptibleMask((restore) => flatMap(restore(sleep(idleTimeToLive)), () => {
7302
- if (self.state === state && state.refCount === 0) {
7303
- self.state = stateEmpty;
7304
- return close(state.scope, void_);
7305
- }
7306
- return void_2;
7307
- })).pipe(ensuring(sync(() => {
7308
- state.fiber = undefined;
7309
- })), runForkWith(self.context), runIn(self.scope));
7310
- return void_2;
7311
- };
7312
-
7313
- // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/RcRef.js
7314
- var make12 = make20;
7315
- var get2 = get4;
7316
-
7317
7178
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Stream.js
7318
- var TypeId17 = "~effect/Stream";
7319
- var isStream = (u) => hasProperty(u, TypeId17);
7179
+ var TypeId16 = "~effect/Stream";
7180
+ var isStream = (u) => hasProperty(u, TypeId16);
7320
7181
  var fromChannel2 = fromChannel3;
7321
7182
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
7322
7183
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
7323
7184
  var toChannel2 = (stream) => stream.channel;
7324
7185
  var callback3 = (f, options) => fromChannel2(callbackArray(f, options));
7325
7186
  var empty2 = /* @__PURE__ */ fromChannel2(empty5);
7326
- var make13 = (...values) => fromArray2(values);
7187
+ var make9 = (...values) => fromArray2(values);
7327
7188
  var suspend4 = (stream) => fromChannel2(suspend3(() => stream().channel));
7328
7189
  var fail9 = (error) => fromChannel2(fail8(error));
7329
7190
  var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed8(array)) : empty2;
@@ -7364,7 +7225,7 @@ var decodeText = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, option
7364
7225
  }));
7365
7226
  var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2);
7366
7227
  var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel2(ensuring3(self.channel, finalizer)));
7367
- var provideContext2 = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext4(self.channel, context)));
7228
+ var provideContext4 = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
7368
7229
  var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope) => toPullScoped(self.channel, scope).pipe(flatMap((upstream) => sink.transform(upstream, scope)), map3(([a]) => a))));
7369
7230
  var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
7370
7231
  for (let i = 0;i < chunk.length; i++) {
@@ -7393,7 +7254,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
7393
7254
  let currentResolve = undefined;
7394
7255
  let fiber = undefined;
7395
7256
  let cancelled = false;
7396
- const latch = makeUnsafe4(false);
7257
+ const latch = makeUnsafe3(false);
7397
7258
  const signal = options?.signal;
7398
7259
  const onAbort = () => fiber.interruptUnsafe();
7399
7260
  return new ReadableStream({
@@ -7442,11 +7303,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
7442
7303
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map3(context(), (context) => toReadableStreamWith(self, context, options)));
7443
7304
 
7444
7305
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/FileSystem.js
7445
- var TypeId18 = "~effect/FileSystem";
7446
- var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
7447
- var make21 = (impl) => FileSystem.of({
7306
+ var TypeId17 = "~effect/FileSystem";
7307
+ var FileSystem = /* @__PURE__ */ Service("effect/FileSystem");
7308
+ var make19 = (impl) => FileSystem.of({
7448
7309
  ...impl,
7449
- [TypeId18]: TypeId18,
7310
+ [TypeId17]: TypeId17,
7450
7311
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed5(false) : fail4(e))),
7451
7312
  readFileString: (path, encoding) => flatMap(impl.readFile(path), (_) => try_({
7452
7313
  try: () => new TextDecoder(encoding).decode(_),
@@ -7497,12 +7358,12 @@ var make21 = (impl) => FileSystem.of({
7497
7358
  }), (_) => impl.writeFile(path, _, options))
7498
7359
  });
7499
7360
  var FileTypeId = "~effect/FileSystem/File";
7500
- class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchBackend")) {
7361
+ class WatchBackend extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBackend")) {
7501
7362
  }
7502
7363
 
7503
7364
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Path.js
7504
- var TypeId19 = "~effect/Path";
7505
- var Path = /* @__PURE__ */ Service2("effect/Path");
7365
+ var TypeId18 = "~effect/Path";
7366
+ var Path = /* @__PURE__ */ Service("effect/Path");
7506
7367
  function normalizeStringPosix(path, allowAboveRoot) {
7507
7368
  let res = "";
7508
7369
  let lastSegmentLength = 0;
@@ -7678,7 +7539,7 @@ function encodePathChars(filepath) {
7678
7539
  return filepath;
7679
7540
  }
7680
7541
  var posixImpl = /* @__PURE__ */ Path.of({
7681
- [TypeId19]: TypeId19,
7542
+ [TypeId18]: TypeId18,
7682
7543
  resolve,
7683
7544
  normalize(path) {
7684
7545
  if (path.length === 0)
@@ -8011,20 +7872,20 @@ var missing = /* @__PURE__ */ Symbol();
8011
7872
  var succeed9 = succeed2;
8012
7873
  var missingExit = /* @__PURE__ */ succeed9(missing);
8013
7874
  var sameExit = /* @__PURE__ */ succeed9(missing);
8014
- var toOption2 = (value) => value === missing ? none() : some(value);
7875
+ var toOption2 = (value) => value === missing ? none() : some2(value);
8015
7876
  var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed9(option.value);
8016
7877
 
8017
7878
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/SchemaIssue.js
8018
- var TypeId20 = "~effect/SchemaIssue/Issue";
7879
+ var TypeId19 = "~effect/SchemaIssue/Issue";
8019
7880
  function isIssue(u) {
8020
- return hasProperty(u, TypeId20) && u[TypeId20] === TypeId20;
7881
+ return hasProperty(u, TypeId19) && u[TypeId19] === TypeId19;
8021
7882
  }
8022
7883
  function hasInput(issue) {
8023
7884
  return Object.hasOwn(issue, "input");
8024
7885
  }
8025
7886
 
8026
7887
  class IssueNodeImpl {
8027
- [TypeId20] = TypeId20;
7888
+ [TypeId19] = TypeId19;
8028
7889
  constructor(input, options) {
8029
7890
  if (options?.reportInput === true && input !== missing) {
8030
7891
  this.input = input;
@@ -8282,8 +8143,8 @@ function getSchemaIssueOrThrow(cause, message) {
8282
8143
  }
8283
8144
 
8284
8145
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/DateTime.js
8285
- var makeUnsafe6 = makeUnsafe7;
8286
- var make22 = make6;
8146
+ var makeUnsafe5 = makeUnsafe7;
8147
+ var make20 = make16;
8287
8148
  var now2 = now;
8288
8149
  var nowUnsafe2 = nowUnsafe;
8289
8150
  var toDateUtc2 = toDateUtc;
@@ -8434,7 +8295,7 @@ function omit() {
8434
8295
  function withDefault2(defaultValue) {
8435
8296
  return transformOptionalEffect((o) => {
8436
8297
  const filtered = filter2(o, isNotUndefined);
8437
- return isSome(filtered) ? succeed5(filtered) : mapEager2(defaultValue, some);
8298
+ return isSome(filtered) ? succeed5(filtered) : mapEager2(defaultValue, some2);
8438
8299
  });
8439
8300
  }
8440
8301
  function String4() {
@@ -8489,9 +8350,9 @@ function decodeBase64UrlString() {
8489
8350
  }
8490
8351
 
8491
8352
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/SchemaTransformation.js
8492
- var TypeId21 = "~effect/SchemaTransformation/Transformation";
8353
+ var TypeId20 = "~effect/SchemaTransformation/Transformation";
8493
8354
  var Transformation = class extends Class2 {
8494
- [TypeId21] = TypeId21;
8355
+ [TypeId20] = TypeId20;
8495
8356
  _tag = "Transformation";
8496
8357
  decode;
8497
8358
  encode;
@@ -8505,7 +8366,7 @@ var Transformation = class extends Class2 {
8505
8366
  }
8506
8367
  };
8507
8368
  function isTransformation(u) {
8508
- return hasProperty(u, TypeId21) && u[TypeId21] === TypeId21;
8369
+ return hasProperty(u, TypeId20) && u[TypeId20] === TypeId20;
8509
8370
  }
8510
8371
  var makeTransformation = (options) => {
8511
8372
  if (isTransformation(options)) {
@@ -8622,10 +8483,10 @@ var Context = class {
8622
8483
  this.annotations = annotations;
8623
8484
  }
8624
8485
  };
8625
- var TypeId22 = "~effect/Schema";
8486
+ var TypeId21 = "~effect/Schema";
8626
8487
 
8627
8488
  class ASTNodeImpl {
8628
- [TypeId22] = TypeId22;
8489
+ [TypeId21] = TypeId21;
8629
8490
  annotations;
8630
8491
  checks;
8631
8492
  encoding;
@@ -8678,7 +8539,7 @@ var Declaration = class extends ASTNodeImpl {
8678
8539
  return "<Declaration>";
8679
8540
  }
8680
8541
  };
8681
- var Null2 = class extends ASTNodeImpl {
8542
+ var Null = class extends ASTNodeImpl {
8682
8543
  _tag = "Null";
8683
8544
  getParser() {
8684
8545
  return fromConst(this, null);
@@ -8687,7 +8548,7 @@ var Null2 = class extends ASTNodeImpl {
8687
8548
  return "null";
8688
8549
  }
8689
8550
  };
8690
- var null_ = /* @__PURE__ */ new Null2;
8551
+ var null_ = /* @__PURE__ */ new Null;
8691
8552
  var Undefined = class extends ASTNodeImpl {
8692
8553
  _tag = "Undefined";
8693
8554
  getParser() {
@@ -10368,7 +10229,7 @@ var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ p
10368
10229
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Brand.js
10369
10230
  function nominal() {
10370
10231
  return Object.assign((input) => input, {
10371
- option: (input) => some(input),
10232
+ option: (input) => some2(input),
10372
10233
  result: (input) => succeed(input),
10373
10234
  is: (_) => true
10374
10235
  });
@@ -10391,7 +10252,7 @@ var HandleProto = {
10391
10252
  var makeHandle = (params) => Object.setPrototypeOf({
10392
10253
  ...params
10393
10254
  }, HandleProto);
10394
- var make14 = (spawn) => {
10255
+ var make10 = (spawn) => {
10395
10256
  const streamString = (command, options) => spawn(command).pipe(map3((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap);
10396
10257
  const streamLines = (command, options) => splitLines(streamString(command, options));
10397
10258
  return ChildProcessSpawner.of({
@@ -10404,11 +10265,11 @@ var make14 = (spawn) => {
10404
10265
  });
10405
10266
  };
10406
10267
 
10407
- class ChildProcessSpawner extends (/* @__PURE__ */ Service2()("effect/process/ChildProcessSpawner")) {
10268
+ class ChildProcessSpawner extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
10408
10269
  }
10409
10270
 
10410
10271
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/process/ChildProcess.js
10411
- var TypeId23 = "~effect/process/ChildProcess";
10272
+ var TypeId22 = "~effect/process/ChildProcess";
10412
10273
  var Proto3 = {
10413
10274
  .../* @__PURE__ */ Prototype({
10414
10275
  label: "Command",
@@ -10416,7 +10277,7 @@ var Proto3 = {
10416
10277
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
10417
10278
  }
10418
10279
  }),
10419
- [TypeId23]: TypeId23
10280
+ [TypeId22]: TypeId22
10420
10281
  };
10421
10282
  var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto3), {
10422
10283
  _tag: "StandardCommand",
@@ -10424,7 +10285,7 @@ var makeStandardCommand = (command, args, options) => Object.assign(Object.creat
10424
10285
  args,
10425
10286
  options
10426
10287
  });
10427
- var make15 = function make(...args) {
10288
+ var make11 = function make(...args) {
10428
10289
  if (isTemplateString(args[0])) {
10429
10290
  const [templates, ...expressions] = args;
10430
10291
  const tokens = parseTemplates(templates, expressions);
@@ -10627,9 +10488,9 @@ function v7Bytes(timestampMillis, bytes = randomBytes()) {
10627
10488
  }
10628
10489
 
10629
10490
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Crypto.js
10630
- var TypeId24 = "~effect/Crypto";
10631
- var Crypto = /* @__PURE__ */ Service2("effect/Crypto");
10632
- var make23 = (impl) => {
10491
+ var TypeId23 = "~effect/Crypto";
10492
+ var Crypto = /* @__PURE__ */ Service("effect/Crypto");
10493
+ var make21 = (impl) => {
10633
10494
  const randomBytesUnsafe = impl.randomBytes;
10634
10495
  const randomBytes = (size) => map3(validateSize("randomBytes", size), randomBytesUnsafe);
10635
10496
  const readUint53 = (bytes) => (bytes[0] & 31) * 2 ** 48 + bytes[1] * 2 ** 40 + bytes[2] * 2 ** 32 + bytes[3] * 2 ** 24 + bytes[4] * 2 ** 16 + bytes[5] * 2 ** 8 + bytes[6];
@@ -10647,7 +10508,7 @@ var make23 = (impl) => {
10647
10508
  }
10648
10509
  };
10649
10510
  return Crypto.of({
10650
- [TypeId24]: TypeId24,
10511
+ [TypeId23]: TypeId23,
10651
10512
  randomBytes,
10652
10513
  nextDoubleUnsafe,
10653
10514
  nextIntUnsafe,
@@ -10715,11 +10576,11 @@ var digest = (algorithm, data) => try_({
10715
10576
  cause
10716
10577
  })
10717
10578
  });
10718
- var make24 = /* @__PURE__ */ make23({
10579
+ var make22 = /* @__PURE__ */ make21({
10719
10580
  randomBytes: NodeCrypto.randomBytes,
10720
10581
  digest
10721
10582
  });
10722
- var layer5 = /* @__PURE__ */ succeed4(Crypto, make24);
10583
+ var layer5 = /* @__PURE__ */ succeed4(Crypto, make22);
10723
10584
 
10724
10585
  // node_modules/.bun/@effect+platform-bun@4.0.4+b8cbb99ebc524863/node_modules/@effect/platform-bun/dist/BunCrypto.js
10725
10586
  var layer = layer5;
@@ -10963,11 +10824,11 @@ var makeFile = /* @__PURE__ */ (() => {
10963
10824
  this.position = position + BigInt(bytesRead);
10964
10825
  }
10965
10826
  if (bytesRead === size) {
10966
- return some(buffer);
10827
+ return some2(buffer);
10967
10828
  }
10968
10829
  const dst = Buffer.allocUnsafeSlow(bytesRead);
10969
10830
  buffer.copy(dst, 0, 0, bytesRead);
10970
- return some(dst);
10831
+ return some2(dst);
10971
10832
  });
10972
10833
  } catch (cause) {
10973
10834
  return fail4(handleBadArgument("readAlloc")(cause));
@@ -11084,7 +10945,7 @@ var makeFileInfo = (stat) => try_({
11084
10945
  uid: bigintToNumberOption(stat.uid),
11085
10946
  gid: bigintToNumberOption(stat.gid),
11086
10947
  size: bytes(stat.size),
11087
- blksize: stat.blksize !== undefined ? some(bytes(stat.blksize)) : none(),
10948
+ blksize: stat.blksize !== undefined ? some2(bytes(stat.blksize)) : none(),
11088
10949
  blocks: bigintToNumberOption(stat.blocks)
11089
10950
  }),
11090
10951
  catch: handleBadArgument("stat")
@@ -11169,7 +11030,7 @@ var writeFile2 = (path, data, options) => callback((resume, signal) => {
11169
11030
  resume(fail4(handleBadArgument("writeFile")(err)));
11170
11031
  }
11171
11032
  });
11172
- var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make21({
11033
+ var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make19({
11173
11034
  access: access2,
11174
11035
  chmod: chmod2,
11175
11036
  chown: chown2,
@@ -11229,17 +11090,17 @@ var fileUrlOps = (windows) => ({
11229
11090
  })
11230
11091
  });
11231
11092
  var layerPosix = /* @__PURE__ */ succeed4(Path)({
11232
- [TypeId19]: TypeId19,
11093
+ [TypeId18]: TypeId18,
11233
11094
  ...NodePath.posix,
11234
11095
  .../* @__PURE__ */ fileUrlOps(false)
11235
11096
  });
11236
11097
  var layerWin32 = /* @__PURE__ */ succeed4(Path)({
11237
- [TypeId19]: TypeId19,
11098
+ [TypeId18]: TypeId18,
11238
11099
  ...NodePath.win32,
11239
11100
  .../* @__PURE__ */ fileUrlOps(true)
11240
11101
  });
11241
11102
  var layer7 = /* @__PURE__ */ succeed4(Path)({
11242
- [TypeId19]: TypeId19,
11103
+ [TypeId18]: TypeId18,
11243
11104
  ...NodePath,
11244
11105
  .../* @__PURE__ */ fileUrlOps(undefined)
11245
11106
  });
@@ -11248,10 +11109,10 @@ var layer7 = /* @__PURE__ */ succeed4(Path)({
11248
11109
  var layer3 = layer7;
11249
11110
 
11250
11111
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/Cookies.js
11251
- var TypeId25 = "~effect/http/Cookies";
11112
+ var TypeId24 = "~effect/http/Cookies";
11252
11113
  var CookieTypeId = "~effect/http/Cookies/Cookie";
11253
11114
  var Proto4 = {
11254
- [TypeId25]: TypeId25,
11115
+ [TypeId24]: TypeId24,
11255
11116
  ...BaseProto,
11256
11117
  toJSON() {
11257
11118
  return {
@@ -11441,9 +11302,9 @@ var value2 = (self) => {
11441
11302
  };
11442
11303
 
11443
11304
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Redacted.js
11444
- var TypeId26 = "~effect/Redacted";
11445
- var isRedacted = (u) => hasProperty(u, TypeId26);
11446
- var make25 = (value, options) => {
11305
+ var TypeId25 = "~effect/Redacted";
11306
+ var isRedacted = (u) => hasProperty(u, TypeId25);
11307
+ var make23 = (value, options) => {
11447
11308
  const self = Object.create(Proto5);
11448
11309
  if (options?.label) {
11449
11310
  self.label = options.label;
@@ -11452,7 +11313,7 @@ var make25 = (value, options) => {
11452
11313
  return self;
11453
11314
  };
11454
11315
  var Proto5 = {
11455
- [TypeId26]: {
11316
+ [TypeId25]: {
11456
11317
  _A: (_) => _
11457
11318
  },
11458
11319
  label: undefined,
@@ -11473,10 +11334,10 @@ var Proto5 = {
11473
11334
  var value = value2;
11474
11335
 
11475
11336
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/Headers.js
11476
- var TypeId27 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
11337
+ var TypeId26 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
11477
11338
  var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
11478
- [TypeId27]: {
11479
- value: TypeId27
11339
+ [TypeId26]: {
11340
+ value: TypeId26
11480
11341
  },
11481
11342
  [symbolRedactable]: {
11482
11343
  value(context) {
@@ -11505,7 +11366,7 @@ var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
11505
11366
  value: BaseProto[NodeInspectSymbol]
11506
11367
  }
11507
11368
  });
11508
- var make26 = (input) => Object.assign(Object.create(Proto6), input);
11369
+ var make24 = (input) => Object.assign(Object.create(Proto6), input);
11509
11370
  var Equivalence4 = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ strictEqual());
11510
11371
  var empty3 = /* @__PURE__ */ Object.create(Proto6);
11511
11372
  var fromInput = (input) => {
@@ -11530,21 +11391,21 @@ var fromInput = (input) => {
11530
11391
  };
11531
11392
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto6);
11532
11393
  var set2 = /* @__PURE__ */ dual(3, (self, key, value) => {
11533
- const out = make26(self);
11394
+ const out = make24(self);
11534
11395
  out[key.toLowerCase()] = value;
11535
11396
  return out;
11536
11397
  });
11537
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make26({
11398
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make24({
11538
11399
  ...self,
11539
11400
  ...fromInput(headers)
11540
11401
  }));
11541
11402
  var merge3 = /* @__PURE__ */ dual(2, (self, headers) => {
11542
- const out = make26(self);
11403
+ const out = make24(self);
11543
11404
  Object.assign(out, headers);
11544
11405
  return out;
11545
11406
  });
11546
11407
  var remove3 = /* @__PURE__ */ dual(2, (self, key) => {
11547
- const out = make26(self);
11408
+ const out = make24(self);
11548
11409
  delete out[key.toLowerCase()];
11549
11410
  return out;
11550
11411
  });
@@ -11556,12 +11417,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
11556
11417
  if (typeof key === "string") {
11557
11418
  const k = key.toLowerCase();
11558
11419
  if (k in self) {
11559
- out[k] = make25(self[k]);
11420
+ out[k] = make23(self[k]);
11560
11421
  }
11561
11422
  } else {
11562
11423
  for (const name in self) {
11563
11424
  if (name.search(key) !== -1) {
11564
- out[name] = make25(self[name]);
11425
+ out[name] = make23(self[name]);
11565
11426
  }
11566
11427
  }
11567
11428
  }
@@ -11593,11 +11454,11 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
11593
11454
  });
11594
11455
 
11595
11456
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/UrlParams.js
11596
- var TypeId28 = "~effect/http/UrlParams";
11597
- var isUrlParams = (u) => hasProperty(u, TypeId28);
11457
+ var TypeId27 = "~effect/http/UrlParams";
11458
+ var isUrlParams = (u) => hasProperty(u, TypeId27);
11598
11459
  var Proto7 = {
11599
11460
  ...PipeInspectableProto,
11600
- [TypeId28]: TypeId28,
11461
+ [TypeId27]: TypeId27,
11601
11462
  [Symbol.iterator]() {
11602
11463
  return this.params[Symbol.iterator]();
11603
11464
  },
@@ -11614,12 +11475,12 @@ var Proto7 = {
11614
11475
  return array(this.params.flat());
11615
11476
  }
11616
11477
  };
11617
- var make27 = (params) => {
11478
+ var make25 = (params) => {
11618
11479
  const self = Object.create(Proto7);
11619
11480
  self.params = params;
11620
11481
  return self;
11621
11482
  };
11622
- var fromInput3 = (input) => {
11483
+ var fromInput2 = (input) => {
11623
11484
  if (isUrlParams(input)) {
11624
11485
  return input;
11625
11486
  }
@@ -11633,7 +11494,7 @@ var fromInput3 = (input) => {
11633
11494
  out.push(parsed[i]);
11634
11495
  }
11635
11496
  }
11636
- return make27(out);
11497
+ return make25(out);
11637
11498
  };
11638
11499
  var fromInputNested = (input) => {
11639
11500
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -11658,9 +11519,9 @@ var fromInputNested = (input) => {
11658
11519
  };
11659
11520
  var Equivalence5 = /* @__PURE__ */ make((a, b) => arrayEquivalence(a.params, b.params));
11660
11521
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
11661
- var empty6 = /* @__PURE__ */ make27([]);
11522
+ var empty6 = /* @__PURE__ */ make25([]);
11662
11523
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
11663
- const params = fromInput3(input).params.slice();
11524
+ const params = fromInput2(input).params.slice();
11664
11525
  const keys = new Set;
11665
11526
  for (let i = 0;i < params.length; i++) {
11666
11527
  keys.add(params[i][0]);
@@ -11670,7 +11531,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
11670
11531
  continue;
11671
11532
  params.push(self.params[i]);
11672
11533
  }
11673
- return make27(params);
11534
+ return make25(params);
11674
11535
  });
11675
11536
 
11676
11537
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/interpreter.js
@@ -11952,13 +11813,13 @@ function makeOption(schema) {
11952
11813
  return (input, options) => {
11953
11814
  const exit = runSyncExit2(parser(input, options));
11954
11815
  if (isSuccess2(exit)) {
11955
- return some(exit.value);
11816
+ return some2(exit.value);
11956
11817
  }
11957
11818
  getSchemaIssueOrThrow(exit.cause, "Option adapter can only return none for schema issues");
11958
11819
  return none();
11959
11820
  };
11960
11821
  }
11961
- function make28(schema) {
11822
+ function make26(schema) {
11962
11823
  return makeConstructorSync(toType(schema.ast));
11963
11824
  }
11964
11825
  function is2(schema) {
@@ -12063,7 +11924,7 @@ function asOption(parser) {
12063
11924
  return (input, options) => {
12064
11925
  const exit = parserExit(input, options);
12065
11926
  if (isSuccess2(exit)) {
12066
- return some(exit.value);
11927
+ return some2(exit.value);
12067
11928
  }
12068
11929
  getSchemaIssueOrThrow(exit.cause, "Option adapter can only return none for schema issues");
12069
11930
  return none();
@@ -12110,12 +11971,12 @@ var normalCompiler = (ast) => resolve4(ast).parser;
12110
11971
  var constructorCompiler = (ast) => resolve4(ast).makeEffect;
12111
11972
 
12112
11973
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/make.js
12113
- var TypeId29 = "~effect/Schema/Schema";
11974
+ var TypeId28 = "~effect/Schema/Schema";
12114
11975
  var RebuildOptions = /* @__PURE__ */ Symbol();
12115
11976
  var SchemaProto = {
12116
- [TypeId29]: TypeId29,
11977
+ [TypeId28]: TypeId28,
12117
11978
  get make() {
12118
- const value = make28(this);
11979
+ const value = make26(this);
12119
11980
  Object.defineProperty(this, "make", {
12120
11981
  value,
12121
11982
  enumerable: true
@@ -12151,10 +12012,10 @@ var SchemaProto = {
12151
12012
  return this.rebuild(appendChecks(this.ast, checks));
12152
12013
  },
12153
12014
  rebuild(ast) {
12154
- return make29(ast, this[RebuildOptions]);
12015
+ return make27(ast, this[RebuildOptions]);
12155
12016
  }
12156
12017
  };
12157
- function make29(ast, options) {
12018
+ function make27(ast, options) {
12158
12019
  function Schema() {}
12159
12020
  const self = Object.setPrototypeOf(Schema, SchemaProto);
12160
12021
  if (options && (Object.hasOwn(options, "name") || Object.hasOwn(options, "length") || Object.hasOwn(options, "__proto__"))) {
@@ -12269,7 +12130,7 @@ var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment"
12269
12130
 
12270
12131
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/toCodec.js
12271
12132
  function toCodecJson2(schema) {
12272
- return make29(toCodecJsonAST(schema.ast), {
12133
+ return make27(toCodecJsonAST(schema.ast), {
12273
12134
  schema
12274
12135
  });
12275
12136
  }
@@ -12316,7 +12177,7 @@ function toCodecJsonASTStep(ast, recur) {
12316
12177
  if (!isFunction2(getLink)) {
12317
12178
  return replaceEncoding(ast, [unknownToJson]);
12318
12179
  }
12319
- const typeParameters = ast.typeParameters.map((tp) => make29(toEncoded(tp)));
12180
+ const typeParameters = ast.typeParameters.map((tp) => make27(toEncoded(tp)));
12320
12181
  const link = getLink(typeParameters);
12321
12182
  return link === undefined ? ast : replaceEncoding(ast, [mapLink(link, recur)]);
12322
12183
  }
@@ -12351,7 +12212,7 @@ function toCodecJsonASTStep(ast, recur) {
12351
12212
  return ast;
12352
12213
  }
12353
12214
  function toCodecStringTree(schema) {
12354
- return make29(toCodecStringTreeAST(schema.ast), {
12215
+ return make27(toCodecStringTreeAST(schema.ast), {
12355
12216
  schema
12356
12217
  });
12357
12218
  }
@@ -12371,7 +12232,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
12371
12232
  function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
12372
12233
  switch (ast._tag) {
12373
12234
  case "Declaration": {
12374
- const typeParameters = ast.typeParameters.map((tp) => make29(recur(toEncoded(tp))));
12235
+ const typeParameters = ast.typeParameters.map((tp) => make27(recur(toEncoded(tp))));
12375
12236
  const getStringTreeLink = ast.annotations?.toCodecStringTree;
12376
12237
  if (isFunction2(getStringTreeLink)) {
12377
12238
  const link = getStringTreeLink(typeParameters);
@@ -13479,7 +13340,7 @@ function toRepresentations(asts, options) {
13479
13340
  }
13480
13341
 
13481
13342
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/toEquivalence.js
13482
- var toEquivalence2 = /* @__PURE__ */ memoize((ast) => {
13343
+ var toEquivalence = /* @__PURE__ */ memoize((ast) => {
13483
13344
  return recur(ast);
13484
13345
  });
13485
13346
  function recur(ast) {
@@ -13599,7 +13460,7 @@ function recur(ast) {
13599
13460
  }
13600
13461
  case "Suspend": {
13601
13462
  let equivalence;
13602
- return make((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
13463
+ return make((a, b) => (equivalence ??= toEquivalence(ast.thunk()))(a, b));
13603
13464
  }
13604
13465
  }
13605
13466
  }
@@ -13697,10 +13558,10 @@ function isSchemaError(u) {
13697
13558
  }
13698
13559
 
13699
13560
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Schema.js
13700
- var TypeId30 = TypeId29;
13561
+ var TypeId29 = TypeId28;
13701
13562
  function declareConstructor() {
13702
13563
  return (typeParameters, run, annotations) => {
13703
- return make16(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make16(ast))), annotations));
13564
+ return make28(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make28(ast))), annotations));
13704
13565
  };
13705
13566
  }
13706
13567
  function declare(is, annotations) {
@@ -13807,27 +13668,27 @@ function encodeUnknownSync(schema, options) {
13807
13668
  };
13808
13669
  }
13809
13670
  var encodeSync = encodeUnknownSync;
13810
- var make16 = make29;
13671
+ var make28 = make27;
13811
13672
  function isSchema(u) {
13812
- return hasProperty(u, TypeId30) && u[TypeId30] === TypeId30;
13673
+ return hasProperty(u, TypeId29) && u[TypeId29] === TypeId29;
13813
13674
  }
13814
- var optionalKey = /* @__PURE__ */ lambda((schema) => make16(optionalKey2(schema.ast), {
13675
+ var optionalKey = /* @__PURE__ */ lambda((schema) => make28(optionalKey2(schema.ast), {
13815
13676
  schema
13816
13677
  }));
13817
13678
  var optional = /* @__PURE__ */ lambda((self) => {
13818
13679
  const schema = UndefinedOr(self);
13819
- return make16(optional2(self.ast), {
13680
+ return make28(optional2(self.ast), {
13820
13681
  schema
13821
13682
  });
13822
13683
  });
13823
- var toType2 = /* @__PURE__ */ lambda((schema) => make16(toType(schema.ast), {
13684
+ var toType2 = /* @__PURE__ */ lambda((schema) => make28(toType(schema.ast), {
13824
13685
  schema
13825
13686
  }));
13826
- var toEncoded2 = /* @__PURE__ */ lambda((schema) => make16(toEncoded(schema.ast), {
13687
+ var toEncoded2 = /* @__PURE__ */ lambda((schema) => make28(toEncoded(schema.ast), {
13827
13688
  schema
13828
13689
  }));
13829
13690
  function Literal(literal) {
13830
- const out = make16(new Literal2(literal), {
13691
+ const out = make28(new Literal2(literal), {
13831
13692
  literal,
13832
13693
  transform(to) {
13833
13694
  return out.pipe(decodeTo(Literal(to), {
@@ -13838,16 +13699,16 @@ function Literal(literal) {
13838
13699
  });
13839
13700
  return out;
13840
13701
  }
13841
- var Never = /* @__PURE__ */ make16(never4);
13842
- var Unknown = /* @__PURE__ */ make16(unknown);
13843
- var Null = /* @__PURE__ */ make16(null_);
13844
- var Undefined2 = /* @__PURE__ */ make16(undefined_3);
13845
- var String2 = /* @__PURE__ */ make16(string2);
13846
- var Number5 = /* @__PURE__ */ make16(number2);
13847
- var Boolean2 = /* @__PURE__ */ make16(boolean);
13848
- var Void = /* @__PURE__ */ make16(void_4);
13702
+ var Never = /* @__PURE__ */ make28(never4);
13703
+ var Unknown = /* @__PURE__ */ make28(unknown);
13704
+ var Null2 = /* @__PURE__ */ make28(null_);
13705
+ var Undefined2 = /* @__PURE__ */ make28(undefined_3);
13706
+ var String2 = /* @__PURE__ */ make28(string2);
13707
+ var Number5 = /* @__PURE__ */ make28(number2);
13708
+ var Boolean2 = /* @__PURE__ */ make28(boolean);
13709
+ var Void = /* @__PURE__ */ make28(void_4);
13849
13710
  function makeStruct(ast, fields) {
13850
- return make16(ast, {
13711
+ return make28(ast, {
13851
13712
  fields,
13852
13713
  mapFields(f, options) {
13853
13714
  const fields = f(this.fields);
@@ -13859,19 +13720,19 @@ function Struct(fields) {
13859
13720
  return makeStruct(struct(fields, undefined), fields);
13860
13721
  }
13861
13722
  function Record(key, value) {
13862
- return make16(record(key.ast, value.ast), {
13723
+ return make28(record(key.ast, value.ast), {
13863
13724
  key,
13864
13725
  value
13865
13726
  });
13866
13727
  }
13867
13728
  function StructWithRest(schema, records) {
13868
- return make16(structWithRest(schema.ast, records.map(getAST)), {
13729
+ return make28(structWithRest(schema.ast, records.map(getAST)), {
13869
13730
  schema,
13870
13731
  records
13871
13732
  });
13872
13733
  }
13873
13734
  function makeTuple(ast, elements) {
13874
- return make16(ast, {
13735
+ return make28(ast, {
13875
13736
  elements,
13876
13737
  mapElements(f, options) {
13877
13738
  const elements = f(this.elements);
@@ -13882,14 +13743,14 @@ function makeTuple(ast, elements) {
13882
13743
  function Tuple(elements) {
13883
13744
  return makeTuple(tuple(elements), elements);
13884
13745
  }
13885
- var ArraySchema = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [], [schema.ast]), {
13746
+ var ArraySchema = /* @__PURE__ */ lambda((schema) => make28(new Arrays(false, [], [schema.ast]), {
13886
13747
  value: schema
13887
13748
  }));
13888
- var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [schema.ast], [schema.ast]), {
13749
+ var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make28(new Arrays(false, [schema.ast], [schema.ast]), {
13889
13750
  value: schema
13890
13751
  }));
13891
13752
  function makeUnion(ast, members) {
13892
- return make16(ast, {
13753
+ return make28(ast, {
13893
13754
  members,
13894
13755
  mapMembers(f, options) {
13895
13756
  const members = f(this.members);
@@ -13902,7 +13763,7 @@ function Union(members, options) {
13902
13763
  }
13903
13764
  function Literals(literals) {
13904
13765
  const members = literals.map(Literal);
13905
- return make16(union(members, undefined, undefined), {
13766
+ return make28(union(members, undefined, undefined), {
13906
13767
  literals,
13907
13768
  members,
13908
13769
  mapMembers(f) {
@@ -13916,20 +13777,21 @@ function Literals(literals) {
13916
13777
  }
13917
13778
  });
13918
13779
  }
13780
+ var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null2]));
13919
13781
  var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
13920
13782
  function suspend5(f) {
13921
- return make16(new Suspend(() => f().ast));
13783
+ return make28(new Suspend(() => f().ast));
13922
13784
  }
13923
13785
  function decodeTo(to, transformation) {
13924
13786
  return (from) => {
13925
- return make16(decodeTo2(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
13787
+ return make28(decodeTo2(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
13926
13788
  from,
13927
13789
  to
13928
13790
  });
13929
13791
  };
13930
13792
  }
13931
13793
  function withConstructorDefault2(defaultValue) {
13932
- return (schema) => make16(withConstructorDefault(schema.ast, defaultValue), {
13794
+ return (schema) => make28(withConstructorDefault(schema.ast, defaultValue), {
13933
13795
  schema
13934
13796
  });
13935
13797
  }
@@ -13995,7 +13857,7 @@ function isBase64(annotations) {
13995
13857
  ...annotations
13996
13858
  });
13997
13859
  }
13998
- var Finite = /* @__PURE__ */ make16(finite);
13860
+ var Finite = /* @__PURE__ */ make28(finite);
13999
13861
  function makeIsGreaterThanOrEqualTo(options) {
14000
13862
  const gte = isGreaterThanOrEqualTo2(options.order);
14001
13863
  const formatter = options.formatter ?? format;
@@ -14524,7 +14386,7 @@ function CauseReason(error, defect) {
14524
14386
  }
14525
14387
  }))
14526
14388
  });
14527
- return make16(schema.ast, {
14389
+ return make28(schema.ast, {
14528
14390
  error,
14529
14391
  defect
14530
14392
  });
@@ -14561,7 +14423,7 @@ function Cause(error, defect) {
14561
14423
  }) => failures
14562
14424
  }))
14563
14425
  });
14564
- return make16(schema.ast, {
14426
+ return make28(schema.ast, {
14565
14427
  error,
14566
14428
  defect
14567
14429
  });
@@ -14622,7 +14484,7 @@ function Exit(value, error, defect) {
14622
14484
  }
14623
14485
  }))
14624
14486
  });
14625
- return make16(schema.ast, {
14487
+ return make28(schema.ast, {
14626
14488
  value,
14627
14489
  error,
14628
14490
  defect
@@ -14647,7 +14509,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
14647
14509
  }
14648
14510
  });
14649
14511
  }
14650
- static [TypeId30] = TypeId30;
14512
+ static [TypeId29] = TypeId29;
14651
14513
  get [ClassTypeId]() {
14652
14514
  return ClassTypeId;
14653
14515
  }
@@ -14664,7 +14526,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
14664
14526
  return getClassSchema(this).rebuild(ast);
14665
14527
  }
14666
14528
  static make(input, options) {
14667
- return make28(getClassSchema(this))(input ?? {}, options);
14529
+ return make26(getClassSchema(this))(input ?? {}, options);
14668
14530
  }
14669
14531
  static makeOption(input, options) {
14670
14532
  return makeOption(getClassSchema(this))(input ?? {}, options);
@@ -14723,7 +14585,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
14723
14585
  const ClassTypeId = getClassTypeId(identifier);
14724
14586
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
14725
14587
  const transformation = getClassTransformation(self);
14726
- const to = make16(new Declaration([from.ast], () => (input, ast, options) => {
14588
+ const to = make28(new Declaration([from.ast], () => (input, ast, options) => {
14727
14589
  return isClassValue(input) ? succeed5(input) : fail4(new InvalidType(ast, input, options));
14728
14590
  }, {
14729
14591
  identifier,
@@ -14771,8 +14633,8 @@ var TaggedError2 = (identifier) => {
14771
14633
  return Error2(identifier ?? tagValue)(struct, annotations);
14772
14634
  };
14773
14635
  };
14774
- function toEquivalence(schema) {
14775
- return toEquivalence2(schema.ast);
14636
+ function toEquivalence2(schema) {
14637
+ return toEquivalence(schema.ast);
14776
14638
  }
14777
14639
  function toJsonSchemaDocument(schema, options) {
14778
14640
  const document = toRepresentation(toCodecJsonAST(schema.ast), options);
@@ -14780,7 +14642,7 @@ function toJsonSchemaDocument(schema, options) {
14780
14642
  }
14781
14643
  var toCodecJson = toCodecJson2;
14782
14644
  var toCodecStringTree2 = toCodecStringTree;
14783
- var Json = /* @__PURE__ */ make16(/* @__PURE__ */ annotate(Json2, {
14645
+ var Json = /* @__PURE__ */ make28(/* @__PURE__ */ annotate(Json2, {
14784
14646
  toCode: () => ({
14785
14647
  runtime: "Schema.Json",
14786
14648
  Type: "Schema.Json"
@@ -14829,7 +14691,7 @@ function isRfc3339Time(value) {
14829
14691
  const utcMinutes = hour * 60 + minute - sign * (Number(match[6] ?? 0) * 60 + Number(match[7] ?? 0));
14830
14692
  return (utcMinutes % 1440 + 1440) % 1440 === 1439;
14831
14693
  }
14832
- var isDateTime3 = makeFilter((value) => {
14694
+ var isDateTime2 = makeFilter((value) => {
14833
14695
  const parts = value.split(/T/i);
14834
14696
  return parts.length === 2 && isRfc3339Date(parts[0] ?? "") && isRfc3339Time(parts[1] ?? "");
14835
14697
  }, { expected: "an RFC 3339 date-time", toJsonSchema: () => ({ format: "date-time" }) });
@@ -14867,13 +14729,13 @@ function withoutUndefined(value) {
14867
14729
 
14868
14730
  // packages/core/src/time.ts
14869
14731
  function toDate(input) {
14870
- return toDateUtc2(makeUnsafe6(input));
14732
+ return toDateUtc2(makeUnsafe5(input));
14871
14733
  }
14872
14734
  function parseDate(input) {
14873
- return getOrUndefined(map(make22(input), toDateUtc2));
14735
+ return getOrUndefined(map(make20(input), toDateUtc2));
14874
14736
  }
14875
14737
  function toIso(input) {
14876
- return formatIso(makeUnsafe6(input));
14738
+ return formatIso(makeUnsafe5(input));
14877
14739
  }
14878
14740
  var currentDate = map3(now2, toDateUtc2);
14879
14741
  function wallClockMillis() {
@@ -14883,7 +14745,7 @@ function wallClockMillis() {
14883
14745
  // packages/core/src/common.ts
14884
14746
  var Id = String2.check(isMinLength(1));
14885
14747
  var Slug = String2.check(isMinLength(1), isPattern(new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")));
14886
- var Timestamp = String2.check(isDateTime3);
14748
+ var Timestamp = String2.check(isDateTime2);
14887
14749
  var ApiError = Struct({
14888
14750
  error: Struct({
14889
14751
  code: String2,
@@ -15033,7 +14895,7 @@ var ProposalRenderedDiffFormat = Literals(ProposalRenderedDiffFormats);
15033
14895
  var ProposalRenderedDiffSectionRisk = Literals(ProposalRenderedDiffSectionRisks);
15034
14896
  var ProposalRenderedDiffRefKind = Literals(ProposalRenderedDiffRefKinds);
15035
14897
  var ProposalSafeString = String2.check(isMaxLength(4000), isPattern(new RegExp(ProposalSafeStringPattern, "u")));
15036
- var ProposalSafeMetadataScalar = Union([ProposalSafeString, Finite, Boolean2, Null]);
14898
+ var ProposalSafeMetadataScalar = Union([ProposalSafeString, Finite, Boolean2, Null2]);
15037
14899
  var ProposalSafeMetadataValue = Union([
15038
14900
  ProposalSafeMetadataScalar,
15039
14901
  ArraySchema(ProposalSafeMetadataScalar).check(isMaxLength(100))
@@ -15439,7 +15301,7 @@ var ProjectDeliverySettings = Struct({
15439
15301
  revision: Int.check(isGreaterThanOrEqualTo(1))
15440
15302
  });
15441
15303
  var ProjectDeliverySettingsUpdate = Struct({
15442
- defaultRepoBindingId: optionalKey(Union([Id, Null])),
15304
+ defaultRepoBindingId: optionalKey(Union([Id, Null2])),
15443
15305
  standardBranchTemplate: optionalKey(BranchTemplate),
15444
15306
  epicBranchTemplate: optionalKey(BranchTemplate),
15445
15307
  isolatedChildBranchTemplate: optionalKey(BranchTemplate),
@@ -15455,13 +15317,13 @@ var ProjectDirectoryItem = Struct({
15455
15317
  sourceType: ProjectSourceType,
15456
15318
  openTaskCount: Int.check(isGreaterThanOrEqualTo(0)),
15457
15319
  blockedTaskCount: Int.check(isGreaterThanOrEqualTo(0)),
15320
+ createdAt: Timestamp,
15458
15321
  updatedAt: Timestamp
15459
15322
  });
15460
15323
  var Project = Struct({
15461
15324
  ...ProjectDirectoryItem.fields,
15462
15325
  ...Struct({
15463
- defaultStatusMapping: Record(String2, String2),
15464
- createdAt: Timestamp
15326
+ defaultStatusMapping: Record(String2, String2)
15465
15327
  }).fields
15466
15328
  });
15467
15329
  var ProjectCreate = Struct({
@@ -15521,6 +15383,10 @@ var RepoBinding = Struct({
15521
15383
  expectedCommitSha: optionalKey(String2.check(isMinLength(1))),
15522
15384
  credentialRefs: ArraySchema(RepoBindingCredentialRef),
15523
15385
  status: RepoBindingStatus,
15386
+ webhook: optionalKey(Struct({
15387
+ status: Literals(["active", "missing"]),
15388
+ message: optionalKey(String2.check(isMaxLength(240)))
15389
+ })),
15524
15390
  createdAt: Timestamp,
15525
15391
  updatedAt: Timestamp
15526
15392
  });
@@ -15671,6 +15537,7 @@ var AgentSandboxNetwork = Union([
15671
15537
  var AgentSandboxPolicy = Struct({
15672
15538
  writablePaths: ArraySchema(Path3),
15673
15539
  readDeniedPaths: ArraySchema(Path3),
15540
+ readAllowedPaths: ArraySchema(Path3),
15674
15541
  network: AgentSandboxNetwork,
15675
15542
  environment: Record(String2.check(isMinLength(1)), String2),
15676
15543
  dockerImageDigest: optionalKey(String2.check(isPattern(new RegExp("^sha256:[a-f0-9]{64}$", "u"))))
@@ -15691,6 +15558,7 @@ var AgentSandboxCredentialPaths = [
15691
15558
  var runnerAgentSandboxPolicy = () => ({
15692
15559
  writablePaths: [],
15693
15560
  readDeniedPaths: [...AgentSandboxCredentialPaths],
15561
+ readAllowedPaths: [],
15694
15562
  network: { hosts: [] },
15695
15563
  environment: {}
15696
15564
  });
@@ -16230,8 +16098,8 @@ var RedactionWaiver = Struct({
16230
16098
  ]),
16231
16099
  authorityActorId: String2.check(isMinLength(1)),
16232
16100
  authorityRole: Union([Literal("owner"), Literal("admin")]),
16233
- expiresAt: optionalKey(String2.check(isDateTime3)),
16234
- createdAt: String2.check(isDateTime3)
16101
+ expiresAt: optionalKey(String2.check(isDateTime2)),
16102
+ createdAt: String2.check(isDateTime2)
16235
16103
  });
16236
16104
  class DurableSurfaceScanError extends TaggedError("DurableSurfaceScanError") {
16237
16105
  constructor(findings) {
@@ -16699,7 +16567,7 @@ var Sha2562 = String2.check(isPattern(new RegExp("^[a-f0-9]{64}$", "u")));
16699
16567
  var BoundedText = String2.check(isMinLength(1), isMaxLength(4000));
16700
16568
  var SafeKey = String2.check(isMinLength(1), isMaxLength(120), isPattern(new RegExp("^[A-Za-z][A-Za-z0-9_-]*$", "u")));
16701
16569
  var SafeJson = Union([
16702
- Null,
16570
+ Null2,
16703
16571
  Boolean2,
16704
16572
  Finite.check(isLessThanOrEqualTo2(Number.MAX_SAFE_INTEGER), isGreaterThanOrEqualTo(Number.MIN_SAFE_INTEGER)),
16705
16573
  BoundedText,
@@ -17581,7 +17449,7 @@ var LoopStepOutputDataValue = Union([
17581
17449
  LoopSafeOutputDataString,
17582
17450
  Finite,
17583
17451
  Boolean2,
17584
- Null,
17452
+ Null2,
17585
17453
  ArraySchema(suspend5(() => LoopStepOutputDataValue)).check(isMaxLength(200)),
17586
17454
  Record(LoopDataPathSegment, suspend5(() => LoopStepOutputDataValue)).check(isMaxProperties(200))
17587
17455
  ]).annotate({ identifier: "LoopStepOutputDataValue" });
@@ -18206,7 +18074,7 @@ var LoopDetail = Struct({ id: String2, resolved: optionalKey(ProgramLoop) });
18206
18074
  var AutomaticStart = Struct({
18207
18075
  eventId: String2,
18208
18076
  eventType: String2,
18209
- projectId: Union([String2, Null]),
18077
+ projectId: Union([String2, Null2]),
18210
18078
  loop: String2,
18211
18079
  runId: optionalKey(String2),
18212
18080
  rejection: optionalKey(String2),
@@ -19167,7 +19035,7 @@ var FixFlowSafeMetadataValue = Union([
19167
19035
  String2.check(isMaxLength(4000), isPattern(new RegExp(`^(?!.*(?:${FixFlowForbiddenContentPattern}|secret|password|token|authorization|cookie|credential)).*$`, "u"))),
19168
19036
  Boolean2,
19169
19037
  Finite,
19170
- Null,
19038
+ Null2,
19171
19039
  ArraySchema(suspend5(() => FixFlowSafeMetadataValue)).check(isMaxLength(200)),
19172
19040
  Record(FixFlowSafeMetadataKey, suspend5(() => FixFlowSafeMetadataValue)).check(isMaxProperties(200))
19173
19041
  ]).annotate({ identifier: "FixFlowSafeMetadataValue" });
@@ -19860,6 +19728,7 @@ var OrchestrationWorkUnit = Struct({
19860
19728
  granted: ArraySchema(String2),
19861
19729
  lease: WorkUnitLease,
19862
19730
  journal: RunJournal,
19731
+ network: optionalKey(AgentSandboxNetwork),
19863
19732
  program: Struct({
19864
19733
  loopId: String2.check(isMinLength(1)),
19865
19734
  credential: String2.check(isMinLength(1))
@@ -20159,8 +20028,15 @@ var RunnerSandboxUnavailable = Struct({
20159
20028
  backend: RunnerExecutionBackend,
20160
20029
  missing: ArraySchema(String2.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
20161
20030
  });
20031
+ var DetectedHarnessIds = ["pi", "claude", "codex"];
20032
+ var RunnerHarnessUnavailable = Struct({
20033
+ harness: RuntimeImplementationId,
20034
+ missing: ArraySchema(String2.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
20035
+ });
20162
20036
  var RunnerCapabilities = Struct({
20163
20037
  harnesses: ArraySchema(RuntimeImplementationId),
20038
+ defaultHarness: optionalKey(RuntimeImplementationId),
20039
+ harnessUnavailable: optionalKey(ArraySchema(RunnerHarnessUnavailable).check(isMaxLength(10))),
20164
20040
  configWriters: ArraySchema(AgentHarnessId),
20165
20041
  mcpServers: optionalKey(ArraySchema(String2.check(isMinLength(1), isMaxLength(160))).check(isMaxLength(100))),
20166
20042
  skillSources: optionalKey(ArraySchema(String2.check(isMinLength(1), isMaxLength(160))).check(isMaxLength(100))),
@@ -20188,6 +20064,7 @@ var Runner = Struct({
20188
20064
  status: RunnerStatus,
20189
20065
  healthStatus: RunnerHealthStatus,
20190
20066
  capabilities: RunnerCapabilities,
20067
+ preferredHarness: optionalKey(Literals(DetectedHarnessIds)),
20191
20068
  labels: ArraySchema(String2.check(isMinLength(1))),
20192
20069
  lastHeartbeatAt: optionalKey(Timestamp),
20193
20070
  createdByUserId: optionalKey(Id),
@@ -20209,6 +20086,9 @@ var RunnerProjectGrantCreate = Struct({
20209
20086
  var RunnerRescope = Struct({
20210
20087
  ownership: RunnerOwnership
20211
20088
  });
20089
+ var RunnerDefaultHarnessInput = Struct({
20090
+ harness: NullOr(Literals(DetectedHarnessIds))
20091
+ });
20212
20092
  var RunnerProjectGrantList = Struct({
20213
20093
  items: ArraySchema(RunnerProjectGrant)
20214
20094
  });
@@ -20424,7 +20304,7 @@ var RunnerWorkUnitDataValue = Union([
20424
20304
  RunnerWorkUnitSafeString,
20425
20305
  Finite,
20426
20306
  Boolean2,
20427
- Null,
20307
+ Null2,
20428
20308
  ArraySchema(suspend5(() => RunnerWorkUnitDataValue)).check(isMaxLength(200)),
20429
20309
  Record(RunnerWorkUnitSafeDataKey, suspend5(() => RunnerWorkUnitDataValue)).check(isMaxProperties(200))
20430
20310
  ]).annotate({ identifier: "RunnerWorkUnitDataValue" });
@@ -21579,7 +21459,7 @@ function makeProvider(load, mapInput) {
21579
21459
  function makeSource(get, transform) {
21580
21460
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
21581
21461
  }
21582
- function make30(get) {
21462
+ function make29(get) {
21583
21463
  return makeSource(get, identityPath);
21584
21464
  }
21585
21465
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -21588,7 +21468,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
21588
21468
  function fromEnvRecord(env, options) {
21589
21469
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
21590
21470
  const trie = buildEnvTrie(env);
21591
- return make30((path) => succeed5(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
21471
+ return make29((path) => succeed5(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
21592
21472
  }
21593
21473
  function fromEnv(options) {
21594
21474
  const env = options?.env ?? {
@@ -21641,7 +21521,7 @@ function trieNodeAt(root, path) {
21641
21521
  }
21642
21522
 
21643
21523
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Config.js
21644
- var TypeId31 = "~effect/Config";
21524
+ var TypeId30 = "~effect/Config";
21645
21525
  class ConfigError {
21646
21526
  _tag = "ConfigError";
21647
21527
  name = "ConfigError";
@@ -21663,14 +21543,14 @@ var Proto9 = {
21663
21543
  return this.parse(fiber.getRef(ConfigProvider));
21664
21544
  }
21665
21545
  }),
21666
- [TypeId31]: TypeId31,
21546
+ [TypeId30]: TypeId30,
21667
21547
  toJSON() {
21668
21548
  return {
21669
21549
  _id: "Config"
21670
21550
  };
21671
21551
  }
21672
21552
  };
21673
- function make31(evaluator) {
21553
+ function make30(evaluator) {
21674
21554
  const self = Object.create(Proto9);
21675
21555
  self.evaluator = evaluator;
21676
21556
  self.parse = (provider) => flatMapEager2(evaluator(provider, []), fromResult2);
@@ -21678,16 +21558,16 @@ function make31(evaluator) {
21678
21558
  }
21679
21559
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
21680
21560
  var map5 = /* @__PURE__ */ dual(2, (self, f) => {
21681
- return make31((provider, pathPrefix) => map3(evaluateAt(self, provider, pathPrefix), map6(f)));
21561
+ return make30((provider, pathPrefix) => map3(evaluateAt(self, provider, pathPrefix), map6(f)));
21682
21562
  });
21683
21563
  function all2(arg) {
21684
21564
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
21685
- return make31((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager2(all(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all3) : mapEager2(all(map7(configs, (config) => evaluateAt(config, provider, pathPrefix))), all3));
21565
+ return make30((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager2(all(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all3) : mapEager2(all(map7(configs, (config) => evaluateAt(config, provider, pathPrefix))), all3));
21686
21566
  }
21687
21567
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
21688
- return make31((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
21568
+ return make30((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
21689
21569
  });
21690
- var option2 = (self) => self.pipe(map5(some), withDefault(none()));
21570
+ var option2 = (self) => self.pipe(map5(some2), withDefault(none()));
21691
21571
  var isSourceError = (u) => isTagged(u, "SourceError");
21692
21572
  var cursorToString = () => "<configuration>";
21693
21573
  var mapReasons = (f) => (self) => catchCause(self, (cause) => failCause2(fromReasons(cause.reasons.map(f))));
@@ -21797,9 +21677,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
21797
21677
  function schema(codec, path) {
21798
21678
  const codecStringTree = toCodecStringTree2(codec);
21799
21679
  const encodedAst = toEncoded(codecStringTree.ast);
21800
- const decodeCursor = decodeUnknownEffect2(make16(toConfigCursorAST(codecStringTree.ast)));
21680
+ const decodeCursor = decodeUnknownEffect2(make28(toConfigCursorAST(codecStringTree.ast)));
21801
21681
  const localPath = typeof path === "string" ? [path] : path ?? [];
21802
- return make31((provider, pathPrefix) => {
21682
+ return make30((provider, pathPrefix) => {
21803
21683
  const fullPath = [...pathPrefix, ...localPath];
21804
21684
  return loadCursor(provider, fullPath).pipe(flatMapEager2((cursor) => decodeCursor(cursor).pipe(mapEager2(succeed), catchEager2((issue) => {
21805
21685
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -22061,11 +21941,11 @@ function isStringArray(value) {
22061
21941
  }
22062
21942
 
22063
21943
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpBody.js
22064
- var TypeId32 = "~effect/http/HttpBody";
21944
+ var TypeId31 = "~effect/http/HttpBody";
22065
21945
  class Proto10 {
22066
- [TypeId32];
21946
+ [TypeId31];
22067
21947
  constructor() {
22068
- this[TypeId32] = TypeId32;
21948
+ this[TypeId31] = TypeId31;
22069
21949
  }
22070
21950
  [NodeInspectSymbol]() {
22071
21951
  return this.toJSON();
@@ -22113,7 +21993,7 @@ var raw = (body, options) => new Raw(body, options?.contentType, options?.conten
22113
21993
  var buffer2 = globalThis.Buffer;
22114
21994
 
22115
21995
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpClientError.js
22116
- var TypeId33 = "~effect/http/HttpClientError";
21996
+ var TypeId32 = "~effect/http/HttpClientError";
22117
21997
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
22118
21998
  constructor(props) {
22119
21999
  if ("cause" in props.reason) {
@@ -22125,7 +22005,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
22125
22005
  super(props);
22126
22006
  }
22127
22007
  }
22128
- [TypeId33] = TypeId33;
22008
+ [TypeId32] = TypeId32;
22129
22009
  get request() {
22130
22010
  return this.reason.request;
22131
22011
  }
@@ -22186,7 +22066,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
22186
22066
  }
22187
22067
  }
22188
22068
 
22189
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error2(TypeId33)({
22069
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error2(TypeId32)({
22190
22070
  _tag: /* @__PURE__ */ tag("HttpError"),
22191
22071
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
22192
22072
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -22215,7 +22095,7 @@ var updateHeaders = (headers, body) => {
22215
22095
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/Url.js
22216
22096
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
22217
22097
  }
22218
- var make32 = (url, params, hash) => try_2({
22098
+ var make31 = (url, params, hash) => try_2({
22219
22099
  try: () => {
22220
22100
  const urlInstance = new URL(url, baseUrl());
22221
22101
  for (let i = 0;i < params.params.length; i++) {
@@ -22241,9 +22121,9 @@ var baseUrl = () => {
22241
22121
  };
22242
22122
 
22243
22123
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpClientRequest.js
22244
- var TypeId34 = "~effect/http/HttpClientRequest";
22124
+ var TypeId33 = "~effect/http/HttpClientRequest";
22245
22125
  var Proto11 = {
22246
- [TypeId34]: TypeId34,
22126
+ [TypeId33]: TypeId33,
22247
22127
  ...BaseProto,
22248
22128
  toJSON() {
22249
22129
  return {
@@ -22271,13 +22151,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
22271
22151
  return self;
22272
22152
  }
22273
22153
  var empty8 = /* @__PURE__ */ makeWith("GET", "", empty6, /* @__PURE__ */ none(), empty3, empty7);
22274
- var make17 = (method) => (url, options) => modify(empty8, {
22154
+ var make12 = (method) => (url, options) => modify(empty8, {
22275
22155
  method,
22276
22156
  url,
22277
22157
  ...options ?? undefined
22278
22158
  });
22279
- var get3 = /* @__PURE__ */ make17("GET");
22280
- var put = /* @__PURE__ */ make17("PUT");
22159
+ var get2 = /* @__PURE__ */ make12("GET");
22160
+ var put = /* @__PURE__ */ make12("PUT");
22281
22161
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
22282
22162
  let result = self;
22283
22163
  if (options.method) {
@@ -22316,27 +22196,27 @@ var setUrl = /* @__PURE__ */ dual(2, (self, url) => {
22316
22196
  return makeWith(self.method, url, self.urlParams, self.hash, self.headers, self.body);
22317
22197
  }
22318
22198
  const clone = new URL(url.toString());
22319
- const urlParams = fromInput3(clone.searchParams);
22199
+ const urlParams = fromInput2(clone.searchParams);
22320
22200
  const hash = fromNullishOr(clone.hash === "" ? undefined : clone.hash.slice(1));
22321
22201
  clone.search = "";
22322
22202
  clone.hash = "";
22323
22203
  return makeWith(self.method, clone.toString(), urlParams, hash, self.headers, self.body);
22324
22204
  });
22325
22205
  var setUrlParams = /* @__PURE__ */ dual(2, (self, input) => makeWith(self.method, self.url, setAll2(self.urlParams, input), self.hash, self.headers, self.body));
22326
- var setHash = /* @__PURE__ */ dual(2, (self, hash) => makeWith(self.method, self.url, self.urlParams, some(hash), self.headers, self.body));
22206
+ var setHash = /* @__PURE__ */ dual(2, (self, hash) => makeWith(self.method, self.url, self.urlParams, some2(hash), self.headers, self.body));
22327
22207
  var setBody = /* @__PURE__ */ dual(2, (self, body) => {
22328
22208
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
22329
22209
  });
22330
22210
  function toUrl(self) {
22331
- const r = make32(self.url, self.urlParams, getOrUndefined(self.hash));
22211
+ const r = make31(self.url, self.urlParams, getOrUndefined(self.hash));
22332
22212
  if (isSuccess(r)) {
22333
- return some(r.success);
22213
+ return some2(r.success);
22334
22214
  }
22335
22215
  return none();
22336
22216
  }
22337
22217
 
22338
22218
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpIncomingMessage.js
22339
- var TypeId35 = "~effect/http/HttpIncomingMessage";
22219
+ var TypeId34 = "~effect/http/HttpIncomingMessage";
22340
22220
  var inspect = (self, that) => {
22341
22221
  const contentType = self.headers["content-type"] ?? "";
22342
22222
  let body;
@@ -22361,19 +22241,19 @@ var inspect = (self, that) => {
22361
22241
  };
22362
22242
 
22363
22243
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpClientResponse.js
22364
- var TypeId36 = "~effect/http/HttpClientResponse";
22244
+ var TypeId35 = "~effect/http/HttpClientResponse";
22365
22245
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
22366
22246
  class WebHttpClientResponse extends Class3 {
22247
+ [TypeId34];
22367
22248
  [TypeId35];
22368
- [TypeId36];
22369
22249
  request;
22370
22250
  source;
22371
22251
  constructor(request, source) {
22372
22252
  super();
22373
22253
  this.request = request;
22374
22254
  this.source = source;
22255
+ this[TypeId34] = TypeId34;
22375
22256
  this[TypeId35] = TypeId35;
22376
- this[TypeId36] = TypeId36;
22377
22257
  }
22378
22258
  toJSON() {
22379
22259
  return inspect(this, {
@@ -22443,7 +22323,7 @@ class WebHttpClientResponse extends Class3 {
22443
22323
  }
22444
22324
  get urlParamsBody() {
22445
22325
  return flatMap(this.text, (_) => try_({
22446
- try: () => fromInput3(new URLSearchParams(_)),
22326
+ try: () => fromInput2(new URLSearchParams(_)),
22447
22327
  catch: (cause) => new HttpClientError({
22448
22328
  reason: new DecodeError({
22449
22329
  request: this.request,
@@ -22529,8 +22409,8 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
22529
22409
  };
22530
22410
 
22531
22411
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpClient.js
22532
- var TypeId37 = "~effect/http/HttpClient";
22533
- var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
22412
+ var TypeId36 = "~effect/http/HttpClient";
22413
+ var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
22534
22414
  var accessor = (method) => (...args) => flatMap(HttpClient, (client) => client[method](...args));
22535
22415
  var execute = /* @__PURE__ */ accessor("execute");
22536
22416
  var transform3 = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap((request) => f(self.postprocess(succeed5(request)), request)), self.preprocess));
@@ -22545,7 +22425,7 @@ var makeWith2 = (postprocess, preprocess) => {
22545
22425
  return self;
22546
22426
  };
22547
22427
  var Proto12 = {
22548
- [TypeId37]: TypeId37,
22428
+ [TypeId36]: TypeId36,
22549
22429
  pipe() {
22550
22430
  return pipeArguments(this, arguments);
22551
22431
  },
@@ -22556,13 +22436,13 @@ var Proto12 = {
22556
22436
  };
22557
22437
  },
22558
22438
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
22559
- return this.execute(make17(fullMethod)(url, options));
22439
+ return this.execute(make12(fullMethod)(url, options));
22560
22440
  }]))
22561
22441
  };
22562
- var make33 = (f) => makeWith2((effect) => flatMap(effect, (request) => withFiber((fiber) => {
22442
+ var make32 = (f) => makeWith2((effect) => flatMap(effect, (request) => withFiber((fiber) => {
22563
22443
  const scopedController = scopedRequests.get(request);
22564
22444
  const controller = scopedController ?? new AbortController;
22565
- const urlResult = make32(request.url, request.urlParams, getOrUndefined(request.hash));
22445
+ const urlResult = make31(request.url, request.urlParams, getOrUndefined(request.hash));
22566
22446
  if (isFailure(urlResult)) {
22567
22447
  return fail4(new HttpClientError({
22568
22448
  reason: new InvalidUrlError({
@@ -22689,8 +22569,8 @@ class InterruptibleResponse {
22689
22569
  this.original = original;
22690
22570
  this.controller = controller;
22691
22571
  }
22692
- [TypeId36] = TypeId36;
22693
22572
  [TypeId35] = TypeId35;
22573
+ [TypeId34] = TypeId34;
22694
22574
  applyInterrupt(effect) {
22695
22575
  return suspend(() => {
22696
22576
  responseRegistry.unregister(this.original);
@@ -22756,9 +22636,9 @@ var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
22756
22636
  defaultValue: () => globalThis.fetch
22757
22637
  });
22758
22638
 
22759
- class RequestInit extends (/* @__PURE__ */ Service2()("effect/http/FetchHttpClient/RequestInit")) {
22639
+ class RequestInit extends (/* @__PURE__ */ Service()("effect/http/FetchHttpClient/RequestInit")) {
22760
22640
  }
22761
- var fetch2 = /* @__PURE__ */ make33((request, url, signal, fiber) => {
22641
+ var fetch2 = /* @__PURE__ */ make32((request, url, signal, fiber) => {
22762
22642
  const fetch2 = fiber.getRef(Fetch);
22763
22643
  const options = getOrUndefined2(fiber.context, RequestInit) ?? {};
22764
22644
  let headers = options.headers ? merge3(fromInput(options.headers), request.headers) : request.headers;
@@ -23267,6 +23147,55 @@ class KitmanEffectClient {
23267
23147
  body: JSON.stringify(input)
23268
23148
  });
23269
23149
  }
23150
+ getWorkspaceSetup(workspaceId) {
23151
+ return this.request("getWorkspaceSetup", `/workspaces/${segment(workspaceId)}/setup`, { headers: this.headers() });
23152
+ }
23153
+ mintPairingCode(workspaceId) {
23154
+ return this.request("mintPairingCode", `/workspaces/${segment(workspaceId)}/pairing-codes`, {
23155
+ method: "POST",
23156
+ headers: this.headers()
23157
+ });
23158
+ }
23159
+ redeemPairingCode(input) {
23160
+ return this.request("redeemPairingCode", "/pairing-codes/redeem", {
23161
+ method: "POST",
23162
+ headers: this.headers(true),
23163
+ body: JSON.stringify(input)
23164
+ });
23165
+ }
23166
+ startGithubConnection(workspaceId) {
23167
+ return this.request("startGithubConnection", `/workspaces/${segment(workspaceId)}/code-host-connections/github`, {
23168
+ method: "POST",
23169
+ headers: this.headers()
23170
+ });
23171
+ }
23172
+ completeGithubConnection(input) {
23173
+ return this.request("completeGithubConnection", "/code-host-connections/github", {
23174
+ method: "POST",
23175
+ headers: this.headers(true),
23176
+ body: JSON.stringify(input)
23177
+ });
23178
+ }
23179
+ startGitlabConnection(workspaceId) {
23180
+ return this.request("startGitlabConnection", `/workspaces/${segment(workspaceId)}/code-host-connections/gitlab`, {
23181
+ method: "POST",
23182
+ headers: this.headers()
23183
+ });
23184
+ }
23185
+ completeGitlabConnection(input) {
23186
+ return this.request("completeGitlabConnection", "/code-host-connections/gitlab", {
23187
+ method: "POST",
23188
+ headers: this.headers(true),
23189
+ body: JSON.stringify(input)
23190
+ });
23191
+ }
23192
+ listCodeHostRepositories(workspaceId, connectionId, page) {
23193
+ const suffix = page === undefined ? "" : `?page=${page}`;
23194
+ return this.request("listCodeHostRepositories", `/workspaces/${segment(workspaceId)}/code-host-connections/${segment(connectionId)}/repositories${suffix}`, { headers: this.headers() });
23195
+ }
23196
+ bindCodeHostRepositories(workspaceId, connectionId, input) {
23197
+ return this.request("bindCodeHostRepositories", `/workspaces/${segment(workspaceId)}/code-host-connections/${segment(connectionId)}/repo-bindings`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
23198
+ }
23270
23199
  useWorkspace(workspaceId) {
23271
23200
  return this.request("useWorkspace", `/workspaces/${segment(workspaceId)}/use`, {
23272
23201
  method: "POST",
@@ -23960,6 +23889,9 @@ class KitmanEffectClient {
23960
23889
  body: JSON.stringify(input)
23961
23890
  });
23962
23891
  }
23892
+ removeRepoBinding(projectId, repoBindingId) {
23893
+ return this.request("removeRepoBinding", `/projects/${segment(projectId)}/repo-bindings/${segment(repoBindingId)}`, { method: "DELETE", headers: this.headers() });
23894
+ }
23963
23895
  getProjectDeliverySettings(projectId) {
23964
23896
  return this.request("getProjectDeliverySettings", `/projects/${segment(projectId)}/delivery-settings`, {
23965
23897
  headers: this.headers()
@@ -24232,6 +24164,13 @@ class KitmanEffectClient {
24232
24164
  body: JSON.stringify(input)
24233
24165
  });
24234
24166
  }
24167
+ setRunnerDefaultHarness(runnerId, input) {
24168
+ return this.request("setRunnerDefaultHarness", `/runners/${segment(runnerId)}/default-harness`, {
24169
+ method: "PUT",
24170
+ headers: this.headers(true),
24171
+ body: JSON.stringify(input)
24172
+ });
24173
+ }
24235
24174
  addRunnerProjectGrant(runnerId, input) {
24236
24175
  return this.request("addRunnerProjectGrant", `/runners/${segment(runnerId)}/project-grants`, {
24237
24176
  method: "POST",
@@ -24983,7 +24922,7 @@ function toStoredSession(token, existingRefreshToken) {
24983
24922
  }
24984
24923
  function startLoopbackServer(input) {
24985
24924
  return gen(function* () {
24986
- const code = yield* make5();
24925
+ const code = yield* make15();
24987
24926
  const server = yield* acquireRelease(sync(() => Bun.serve({
24988
24927
  hostname: "127.0.0.1",
24989
24928
  port: 0,
@@ -25089,7 +25028,7 @@ function createSdkClient(input) {
25089
25028
  const runPromise = runPromiseWith(yield* context());
25090
25029
  const fetchImpl = input.fetch ?? (yield* Fetch);
25091
25030
  let session = input.session;
25092
- const refreshPermit = makeUnsafe5(1);
25031
+ const refreshPermit = makeUnsafe4(1);
25093
25032
  const refreshFrom = (stale) => refreshPermit.withPermits(1)(suspend(() => session === stale ? tap(refreshSession({ ...input, fetch: fetchImpl, session: stale }), (next) => sync(() => session = next)) : succeed5(session))).pipe(mapError((error) => new KitmanClientError({ operation: "refreshSession", message: error.message, status: 401 })));
25094
25033
  const authorizedFetch = (resource, init) => runPromise(gen(function* () {
25095
25034
  if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
@@ -25312,6 +25251,779 @@ function createAgentAuthSignedFetch(input) {
25312
25251
  return yield* promise(() => fetchImpl(new Request(request, { headers })));
25313
25252
  }));
25314
25253
  }
25254
+ // packages/core/src/runner-eligibility.ts
25255
+ function runnerDefaultHarness(harnesses, chosen) {
25256
+ if (chosen !== undefined && harnesses.includes(chosen))
25257
+ return chosen;
25258
+ return DetectedHarnessIds.find((harness) => harnesses.includes(harness));
25259
+ }
25260
+ // packages/core/src/schedule.ts
25261
+ var ScheduleFrequency = ["daily", "weekly"];
25262
+ var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
25263
+ var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
25264
+ var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
25265
+ var ScheduleCalendarRule = Struct({
25266
+ frequency: Literals(ScheduleFrequency),
25267
+ hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(23)),
25268
+ minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(59)),
25269
+ second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(59))),
25270
+ daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(6))).check(isMinLength(1), isMaxLength(7)))
25271
+ });
25272
+ var ScheduleCronRule = Struct({
25273
+ cron: String2.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
25274
+ });
25275
+ var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
25276
+ var cronBounds = [
25277
+ [0, 59],
25278
+ [0, 23],
25279
+ [1, 31],
25280
+ [1, 12],
25281
+ [0, 7]
25282
+ ];
25283
+ function cronField(field, [min, max]) {
25284
+ const values = new Set;
25285
+ for (const part of field.split(",")) {
25286
+ const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
25287
+ if (match === null)
25288
+ return;
25289
+ const from = match[1] === "*" ? min : Number(match[2]);
25290
+ const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
25291
+ const step = match[4] === undefined ? 1 : Number(match[4]);
25292
+ if (from < min || to > max || from > to || step < 1)
25293
+ return;
25294
+ for (let value = from;value <= to; value += step)
25295
+ values.add(value);
25296
+ }
25297
+ return values;
25298
+ }
25299
+ function parseCron(cron) {
25300
+ const fields = cron.split(" ");
25301
+ const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
25302
+ if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
25303
+ return;
25304
+ return {
25305
+ minutes,
25306
+ hours,
25307
+ days,
25308
+ months,
25309
+ weekdays: new Set([...weekdays].map((value) => value % 7)),
25310
+ dayRestricted: !(fields[2] ?? "").startsWith("*"),
25311
+ weekdayRestricted: !(fields[4] ?? "").startsWith("*")
25312
+ };
25313
+ }
25314
+ function isScheduleRule(value) {
25315
+ return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
25316
+ }
25317
+ var ScheduleVersion = Struct({
25318
+ contractVersion: Literal("schedule.v1"),
25319
+ id: String2.check(isMinLength(1)),
25320
+ scheduleId: String2.check(isMinLength(1)),
25321
+ workspaceId: String2.check(isMinLength(1)),
25322
+ projectId: optionalKey(String2.check(isMinLength(1))),
25323
+ loopId: optionalKey(String2.check(isMinLength(1))),
25324
+ name: optionalKey(String2.check(isMinLength(1), isMaxLength(200))),
25325
+ version: Int.check(isGreaterThanOrEqualTo(1)),
25326
+ status: Literals(ScheduleVersionStatuses),
25327
+ timezone: String2.check(isMinLength(1), isMaxLength(80)),
25328
+ rule: ScheduleRule,
25329
+ misfirePolicy: Literals(ScheduleMisfirePolicies),
25330
+ overlapPolicy: Literals(ScheduleOverlapPolicies),
25331
+ maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(200)),
25332
+ misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(604800))),
25333
+ inputSchemaRef: optionalKey(LoopDataSchemaRef),
25334
+ input: optionalKey(SafeJson),
25335
+ createdAt: String2.check(isMinLength(1))
25336
+ });
25337
+ var zones = new Map;
25338
+ var resolvedLocalDateTimes = new Map;
25339
+ // packages/core/src/package-declarations.ts
25340
+ var LoopCapabilities = [
25341
+ "agent_work",
25342
+ "ask",
25343
+ "call",
25344
+ "verify",
25345
+ "change_request",
25346
+ "write_back",
25347
+ "post_comment",
25348
+ "create_tasks",
25349
+ "merge_change_request",
25350
+ "publish_release"
25351
+ ];
25352
+ var JsonObject2 = Record(String2, Json);
25353
+ var recordKeyedBy = (pattern, value) => Record(String2, value).check(makeFilter((record) => {
25354
+ const bad = Object.keys(record).find((key) => !new RegExp(pattern).test(key));
25355
+ return bad === undefined ? true : `${JSON.stringify(bad)} is not a valid name or relative path`;
25356
+ }));
25357
+ var SecretName = String2.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
25358
+ var EventFilterValue = Union([String2, Finite, Boolean2, Null2]);
25359
+ var LoopManifest = Struct({
25360
+ id: String2,
25361
+ title: String2,
25362
+ input: JsonObject2,
25363
+ output: JsonObject2,
25364
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration"])),
25365
+ agents: Record(String2, String2),
25366
+ checkout: Literals(["none", "read", "write"]),
25367
+ when: ArraySchema(Struct({
25368
+ event: String2,
25369
+ filter: optionalKey(Record(String2, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
25370
+ input: Record(String2, String2)
25371
+ })),
25372
+ offers: ArraySchema(Struct({ id: String2, title: String2, loop: String2 })),
25373
+ capabilities: ArraySchema(Literals(LoopCapabilities)),
25374
+ secrets: optionalKey(ArraySchema(SecretName)),
25375
+ network: optionalKey(AgentSandboxNetwork)
25376
+ });
25377
+ var AgentDeclaration = Struct({
25378
+ extends: optionalKey(String2),
25379
+ instructions: optionalKey(String2),
25380
+ harness: optionalKey(String2),
25381
+ model: optionalKey(String2),
25382
+ effort: optionalKey(Literals(AgentEfforts)),
25383
+ kits: optionalKey(ArraySchema(String2)),
25384
+ network: optionalKey(Union([Struct({ hosts: ArraySchema(String2) }), Literal("open")])),
25385
+ sandbox: optionalKey(Literal("docker"))
25386
+ });
25387
+ var scheduleFields = {
25388
+ name: String2.check(isMinLength(1)),
25389
+ loop: String2,
25390
+ project: optionalKey(String2),
25391
+ input: optionalKey(JsonObject2),
25392
+ timezone: String2,
25393
+ misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
25394
+ overlap: optionalKey(Literals(ScheduleOverlapPolicies))
25395
+ };
25396
+ var ScheduleDeclaration = Union([
25397
+ Struct({
25398
+ ...scheduleFields,
25399
+ cron: String2.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
25400
+ }),
25401
+ Struct({
25402
+ ...scheduleFields,
25403
+ rule: declare((value) => isScheduleRule(value), {
25404
+ expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
25405
+ })
25406
+ })
25407
+ ]);
25408
+ var AuthoredKitDeclaration = Struct({
25409
+ name: String2.check(isMinLength(1)),
25410
+ kind: optionalKey(Literals(KitKinds)),
25411
+ description: optionalKey(String2),
25412
+ context: String2,
25413
+ skills: optionalKey(recordKeyedBy(skillNamePattern, recordKeyedBy(relativePathPattern, String2)))
25414
+ });
25415
+ var KitInstallationDeclaration = Struct({
25416
+ source: String2.check(isMinLength(1)),
25417
+ version: optionalKey(String2)
25418
+ });
25419
+ var KitAssignmentDeclaration = Struct({
25420
+ kit: String2.check(isMinLength(1)),
25421
+ workspace: optionalKey(Literals(["default", "mandatory"])),
25422
+ projects: optionalKey(ArraySchema(String2))
25423
+ });
25424
+ var KitDeclaration = Union([
25425
+ KitInstallationDeclaration,
25426
+ KitAssignmentDeclaration,
25427
+ AuthoredKitDeclaration
25428
+ ]);
25429
+ var PackageDeclarations = Struct({
25430
+ loops: ArraySchema(LoopManifest),
25431
+ agents: Record(String2, AgentDeclaration),
25432
+ schedules: optionalKey(Record(String2, ScheduleDeclaration)),
25433
+ kits: optionalKey(Record(String2, KitDeclaration))
25434
+ });
25435
+ var sameLoop = toEquivalence2(LoopManifest);
25436
+ var sameAgent = toEquivalence2(AgentDeclaration);
25437
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/PrimaryKey.js
25438
+ var symbol4 = "~effect/PrimaryKey";
25439
+
25440
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcSchema.js
25441
+ var StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
25442
+ function isStreamSchema(schema) {
25443
+ return hasProperty(schema, StreamSchemaTypeId);
25444
+ }
25445
+ function getStreamSchemas(schema) {
25446
+ return isStreamSchema(schema) ? some2({
25447
+ success: schema.success,
25448
+ error: schema.error
25449
+ }) : none();
25450
+ }
25451
+ var schema2 = /* @__PURE__ */ declare(isStream);
25452
+ function Stream2(success, error) {
25453
+ return make28(schema2.ast, {
25454
+ [StreamSchemaTypeId]: StreamSchemaTypeId,
25455
+ success,
25456
+ error
25457
+ });
25458
+ }
25459
+
25460
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/Rpc.js
25461
+ var TypeId37 = "~effect/rpc/Rpc";
25462
+ var Proto13 = {
25463
+ [TypeId37]: TypeId37,
25464
+ pipe() {
25465
+ return pipeArguments(this, arguments);
25466
+ },
25467
+ setSuccess(successSchema) {
25468
+ return makeProto({
25469
+ _tag: this._tag,
25470
+ payloadSchema: this.payloadSchema,
25471
+ successSchema,
25472
+ errorSchema: this.errorSchema,
25473
+ defectSchema: this.defectSchema,
25474
+ annotations: this.annotations,
25475
+ middlewares: this.middlewares
25476
+ });
25477
+ },
25478
+ setError(errorSchema) {
25479
+ return makeProto({
25480
+ _tag: this._tag,
25481
+ payloadSchema: this.payloadSchema,
25482
+ successSchema: this.successSchema,
25483
+ errorSchema,
25484
+ defectSchema: this.defectSchema,
25485
+ annotations: this.annotations,
25486
+ middlewares: this.middlewares
25487
+ });
25488
+ },
25489
+ setPayload(payloadSchema) {
25490
+ return makeProto({
25491
+ _tag: this._tag,
25492
+ payloadSchema: isSchema(payloadSchema) ? payloadSchema : Struct(payloadSchema),
25493
+ successSchema: this.successSchema,
25494
+ errorSchema: this.errorSchema,
25495
+ defectSchema: this.defectSchema,
25496
+ annotations: this.annotations,
25497
+ middlewares: this.middlewares
25498
+ });
25499
+ },
25500
+ middleware(middleware) {
25501
+ return makeProto({
25502
+ _tag: this._tag,
25503
+ payloadSchema: this.payloadSchema,
25504
+ successSchema: this.successSchema,
25505
+ errorSchema: this.errorSchema,
25506
+ defectSchema: this.defectSchema,
25507
+ annotations: this.annotations,
25508
+ middlewares: new Set([...this.middlewares, middleware])
25509
+ });
25510
+ },
25511
+ prefix(prefix) {
25512
+ return makeProto({
25513
+ _tag: `${prefix}${this._tag}`,
25514
+ payloadSchema: this.payloadSchema,
25515
+ successSchema: this.successSchema,
25516
+ errorSchema: this.errorSchema,
25517
+ defectSchema: this.defectSchema,
25518
+ annotations: this.annotations,
25519
+ middlewares: this.middlewares
25520
+ });
25521
+ },
25522
+ annotate(tag, value) {
25523
+ return makeProto({
25524
+ _tag: this._tag,
25525
+ payloadSchema: this.payloadSchema,
25526
+ successSchema: this.successSchema,
25527
+ errorSchema: this.errorSchema,
25528
+ defectSchema: this.defectSchema,
25529
+ middlewares: this.middlewares,
25530
+ annotations: add(this.annotations, tag, value)
25531
+ });
25532
+ },
25533
+ annotateMerge(context) {
25534
+ return makeProto({
25535
+ _tag: this._tag,
25536
+ payloadSchema: this.payloadSchema,
25537
+ successSchema: this.successSchema,
25538
+ errorSchema: this.errorSchema,
25539
+ defectSchema: this.defectSchema,
25540
+ middlewares: this.middlewares,
25541
+ annotations: merge(this.annotations, context)
25542
+ });
25543
+ }
25544
+ };
25545
+ var makeProto = (options) => {
25546
+ function Rpc() {}
25547
+ Object.setPrototypeOf(Rpc, Proto13);
25548
+ Object.assign(Rpc, options);
25549
+ Rpc.key = `effect/rpc/Rpc/${options._tag}`;
25550
+ return Rpc;
25551
+ };
25552
+ var make13 = (tag, options) => {
25553
+ const successSchema = options?.success ?? Void;
25554
+ const errorSchema = options?.error ?? Never;
25555
+ const defectSchema = options?.defect ?? Defect();
25556
+ let payloadSchema;
25557
+ if (options?.primaryKey) {
25558
+ payloadSchema = class Payload extends Class(`effect/rpc/Rpc/${tag}`)(options.payload) {
25559
+ [symbol4]() {
25560
+ return options.primaryKey(this);
25561
+ }
25562
+ };
25563
+ } else {
25564
+ payloadSchema = isSchema(options?.payload) ? options?.payload : options?.payload ? Struct(options?.payload) : Void;
25565
+ }
25566
+ return makeProto({
25567
+ _tag: tag,
25568
+ payloadSchema,
25569
+ successSchema: options?.stream ? Stream2(successSchema, errorSchema) : successSchema,
25570
+ errorSchema: options?.stream ? Never : errorSchema,
25571
+ defectSchema,
25572
+ annotations: empty(),
25573
+ middlewares: new Set
25574
+ });
25575
+ };
25576
+ var exitSchemaCache = /* @__PURE__ */ new WeakMap;
25577
+ var exitSchema = (self) => {
25578
+ if (exitSchemaCache.has(self)) {
25579
+ return exitSchemaCache.get(self);
25580
+ }
25581
+ const rpc = self;
25582
+ const failures = new Set([rpc.errorSchema]);
25583
+ const streamSchemas = getStreamSchemas(rpc.successSchema);
25584
+ if (isSome(streamSchemas)) {
25585
+ failures.add(streamSchemas.value.error);
25586
+ }
25587
+ for (const middleware of rpc.middlewares) {
25588
+ failures.add(middleware.error);
25589
+ }
25590
+ const schema = Exit(isSome(streamSchemas) ? Void : rpc.successSchema, Union([...failures]), rpc.defectSchema);
25591
+ exitSchemaCache.set(self, schema);
25592
+ return schema;
25593
+ };
25594
+ var WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
25595
+ var isWrapper = (u) => (WrapperTypeId in u);
25596
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcGroup.js
25597
+ var RpcGroupProto = {
25598
+ add(...rpcs) {
25599
+ const requests = new Map(this.requests);
25600
+ for (const rpc of rpcs) {
25601
+ requests.set(rpc._tag, rpc);
25602
+ }
25603
+ return makeProto2({
25604
+ requests,
25605
+ annotations: this.annotations
25606
+ });
25607
+ },
25608
+ merge(...groups) {
25609
+ const requests = new Map(this.requests);
25610
+ const annotations = new Map(this.annotations.mapUnsafe);
25611
+ for (const group of groups) {
25612
+ for (const [tag, rpc] of group.requests) {
25613
+ requests.set(tag, rpc);
25614
+ }
25615
+ for (const [key, value] of group.annotations.mapUnsafe) {
25616
+ annotations.set(key, value);
25617
+ }
25618
+ }
25619
+ return makeProto2({
25620
+ requests,
25621
+ annotations: makeUnsafe6(annotations)
25622
+ });
25623
+ },
25624
+ omit(...tags) {
25625
+ const requests = new Map(this.requests);
25626
+ for (const tag of tags) {
25627
+ requests.delete(tag);
25628
+ }
25629
+ return makeProto2({
25630
+ requests,
25631
+ annotations: this.annotations
25632
+ });
25633
+ },
25634
+ middleware(middleware) {
25635
+ const requests = new Map;
25636
+ for (const [tag, rpc] of this.requests) {
25637
+ requests.set(tag, rpc.middleware(middleware));
25638
+ }
25639
+ return makeProto2({
25640
+ requests,
25641
+ annotations: this.annotations
25642
+ });
25643
+ },
25644
+ toHandlers(build) {
25645
+ const self = this;
25646
+ return gen(function* () {
25647
+ const services = yield* context();
25648
+ const handlers = isEffect2(build) ? yield* build : build;
25649
+ const contextMap = new Map;
25650
+ self.requests.forEach((rpc, tag) => {
25651
+ contextMap.set(rpc.key, {
25652
+ tag: rpc._tag,
25653
+ handler: handlers[tag],
25654
+ context: services
25655
+ });
25656
+ });
25657
+ return makeUnsafe6(contextMap);
25658
+ });
25659
+ },
25660
+ prefix(prefix) {
25661
+ const requests = new Map;
25662
+ for (const rpc of this.requests.values()) {
25663
+ const newRpc = rpc.prefix(prefix);
25664
+ requests.set(newRpc._tag, newRpc);
25665
+ }
25666
+ return makeProto2({
25667
+ requests,
25668
+ annotations: this.annotations
25669
+ });
25670
+ },
25671
+ toLayer(build) {
25672
+ return effectContext(this.toHandlers(build));
25673
+ },
25674
+ of: identity,
25675
+ toLayerHandler(service, build) {
25676
+ const self = this;
25677
+ return effectContext(gen(function* () {
25678
+ const services = yield* context();
25679
+ const handler = isEffect2(build) ? yield* build : build;
25680
+ const contextMap = new Map;
25681
+ const rpc = self.requests.get(service);
25682
+ contextMap.set(rpc.key, {
25683
+ handler,
25684
+ context: services
25685
+ });
25686
+ return makeUnsafe6(contextMap);
25687
+ }));
25688
+ },
25689
+ accessHandler(service) {
25690
+ return contextWith((parentContext) => {
25691
+ const rpc = this.requests.get(service);
25692
+ const {
25693
+ handler,
25694
+ context
25695
+ } = getOrUndefinedUnsafe(parentContext, rpc.key);
25696
+ return succeed5((payload, options) => {
25697
+ options.rpc = rpc;
25698
+ const result = handler(payload, options);
25699
+ const effectOrStream = isWrapper(result) ? result.value : result;
25700
+ return isEffect2(effectOrStream) ? provide3(effectOrStream, context) : provideContext4(effectOrStream, context);
25701
+ });
25702
+ });
25703
+ },
25704
+ annotate(service, value) {
25705
+ return makeProto2({
25706
+ requests: this.requests,
25707
+ annotations: add(this.annotations, service, value)
25708
+ });
25709
+ },
25710
+ annotateRpcs(service, value) {
25711
+ return this.annotateRpcsMerge(make3(service, value));
25712
+ },
25713
+ annotateMerge(context) {
25714
+ return makeProto2({
25715
+ requests: this.requests,
25716
+ annotations: merge(this.annotations, context)
25717
+ });
25718
+ },
25719
+ annotateRpcsMerge(context) {
25720
+ const requests = new Map;
25721
+ for (const [tag, rpc] of this.requests) {
25722
+ requests.set(tag, rpc.annotateMerge(merge(context, rpc.annotations)));
25723
+ }
25724
+ return makeProto2({
25725
+ requests,
25726
+ annotations: this.annotations
25727
+ });
25728
+ }
25729
+ };
25730
+ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
25731
+ requests: options.requests,
25732
+ annotations: options.annotations
25733
+ });
25734
+ var make14 = (...rpcs) => makeProto2({
25735
+ requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
25736
+ annotations: empty()
25737
+ });
25738
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcMiddleware.js
25739
+ var TypeId38 = "~effect/rpc/RpcMiddleware";
25740
+ var Service2 = () => (id, options) => {
25741
+ const limit = getStackTraceLimit();
25742
+ let creationError;
25743
+ if (limit !== 0) {
25744
+ setStackTraceLimit(2);
25745
+ creationError = new globalThis.Error;
25746
+ setStackTraceLimit(limit);
25747
+ }
25748
+ function ServiceClass() {}
25749
+ const ServiceClass_ = ServiceClass;
25750
+ Object.setPrototypeOf(ServiceClass, Object.getPrototypeOf(Service(id)));
25751
+ ServiceClass.key = id;
25752
+ Object.defineProperty(ServiceClass, "stack", {
25753
+ get() {
25754
+ return creationError?.stack;
25755
+ }
25756
+ });
25757
+ ServiceClass_[TypeId38] = TypeId38;
25758
+ ServiceClass_.error = options?.error ?? Never;
25759
+ ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
25760
+ return ServiceClass;
25761
+ };
25762
+ // packages/live/src/rpc/runner-group.ts
25763
+ var RunnerHeaders = { runnerId: "x-kitman-runner-id", protocolVersion: "x-kitman-rpc-protocol" };
25764
+ var RunnerRpcProtocolVersion = 1;
25765
+
25766
+ class RunnerRpcError extends TaggedError2()("RunnerRpcError", {
25767
+ code: String2,
25768
+ message: String2,
25769
+ status: Finite
25770
+ }) {
25771
+ }
25772
+
25773
+ class RunnerAuthentication extends Service2()("RunnerAuthentication", {
25774
+ error: RunnerRpcError
25775
+ }) {
25776
+ }
25777
+ var EventFilterValue2 = Union([String2, Finite, Boolean2, Null2]);
25778
+ var WorkAvailable = TaggedStruct("WorkAvailable", {});
25779
+ var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String2 });
25780
+ var Settled = TaggedStruct("Settled", { workUnitId: String2 });
25781
+ var Canceled = TaggedStruct("Canceled", { workUnitId: String2 });
25782
+ var RunSettled = TaggedStruct("RunSettled", { runId: String2 });
25783
+ var Steer = TaggedStruct("Steer", {
25784
+ workUnitId: String2,
25785
+ messageId: String2,
25786
+ text: String2
25787
+ });
25788
+ var SessionUpdated = TaggedStruct("SessionUpdated", { workUnitId: String2 });
25789
+ var RunnerSignal = Union([
25790
+ WorkAvailable,
25791
+ LeaseRevoked,
25792
+ Settled,
25793
+ Canceled,
25794
+ RunSettled,
25795
+ Steer,
25796
+ SessionUpdated
25797
+ ]);
25798
+ var ProgramLease = Struct({
25799
+ workUnitId: String2,
25800
+ leaseOwnerId: String2,
25801
+ runnerReplicaId: String2,
25802
+ leaseId: String2,
25803
+ attempt: Int,
25804
+ fencingToken: String2,
25805
+ capacitySlot: String2
25806
+ });
25807
+ var CheckpointSession = Struct({
25808
+ harness: String2,
25809
+ id: String2,
25810
+ name: String2,
25811
+ content: Uint8ArrayFromBase64
25812
+ });
25813
+ var StepCheckpoint = Struct({
25814
+ ref: optionalKey(String2),
25815
+ revision: optionalKey(String2),
25816
+ session: optionalKey(CheckpointSession)
25817
+ });
25818
+ var SuggestedVerification = Struct({
25819
+ name: String2,
25820
+ command: String2,
25821
+ workingDirectory: optional(String2)
25822
+ });
25823
+ var ProgramOutcome = Union([
25824
+ Struct({ status: Literal("completed"), output: Json }),
25825
+ Struct({ status: Literal("failed"), failureSummary: String2 })
25826
+ ]);
25827
+
25828
+ class RunnerRpcs extends make14(make13("Claim", {
25829
+ payload: WorkUnitClaimInput,
25830
+ success: WorkUnitClaimResult,
25831
+ error: RunnerRpcError
25832
+ }), make13("Heartbeat", {
25833
+ payload: WorkUnitHeartbeatInput,
25834
+ success: WorkUnitHeartbeatResult,
25835
+ error: RunnerRpcError
25836
+ }), make13("Complete", {
25837
+ payload: WorkUnitCompletion,
25838
+ error: RunnerRpcError
25839
+ }), make13("Release", {
25840
+ payload: WorkUnitReleaseInput,
25841
+ error: RunnerRpcError
25842
+ }), make13("RecordActivity", {
25843
+ payload: { lease: ProgramLease, name: String2, attempt: Int, exit: Json },
25844
+ error: RunnerRpcError
25845
+ }), make13("DeferredDone", {
25846
+ payload: { lease: ProgramLease, name: String2, exit: Json },
25847
+ error: RunnerRpcError
25848
+ }), make13("ScheduleClock", {
25849
+ payload: { lease: ProgramLease, name: String2, deferredName: String2, durationMillis: Int },
25850
+ error: RunnerRpcError
25851
+ }), make13("PutQuestion", {
25852
+ payload: {
25853
+ lease: ProgramLease,
25854
+ step: String2,
25855
+ prompt: String2,
25856
+ options: optional(ArraySchema(String2)),
25857
+ verification: optional(SuggestedVerification),
25858
+ deferredName: String2
25859
+ },
25860
+ success: Struct({ questionId: String2 }),
25861
+ error: RunnerRpcError
25862
+ }), make13("StartAgentStep", {
25863
+ payload: {
25864
+ lease: ProgramLease,
25865
+ step: String2,
25866
+ deferredName: String2,
25867
+ role: String2,
25868
+ agentId: String2,
25869
+ prompt: String2,
25870
+ outputSchema: Json,
25871
+ secrets: optionalKey(ArraySchema(String2))
25872
+ },
25873
+ success: Struct({ stepAttemptId: String2 }),
25874
+ error: RunnerRpcError
25875
+ }), make13("StartVerification", {
25876
+ payload: {
25877
+ lease: ProgramLease,
25878
+ step: String2,
25879
+ deferredName: String2,
25880
+ revision: optionalKey(String2),
25881
+ checks: optional(ArraySchema(String2))
25882
+ },
25883
+ success: Struct({ verificationId: String2 }),
25884
+ error: RunnerRpcError
25885
+ }), make13("KnownEvidence", {
25886
+ payload: { lease: ProgramLease, trees: ArraySchema(String2) },
25887
+ success: ArraySchema(Struct({ tree: String2, name: String2, command: String2 })),
25888
+ error: RunnerRpcError
25889
+ }), make13("AwaitEvent", {
25890
+ payload: {
25891
+ lease: ProgramLease,
25892
+ step: String2,
25893
+ deferredName: String2,
25894
+ event: String2,
25895
+ filter: optional(Record(String2, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
25896
+ timeoutMillis: Int
25897
+ },
25898
+ error: RunnerRpcError
25899
+ }), make13("AdmitChild", {
25900
+ payload: {
25901
+ lease: ProgramLease,
25902
+ step: String2,
25903
+ loop: String2,
25904
+ input: Json,
25905
+ deferredName: String2
25906
+ },
25907
+ success: Struct({ runId: String2 }),
25908
+ error: RunnerRpcError
25909
+ }), make13("StoreArtifact", {
25910
+ payload: {
25911
+ lease: ProgramLease,
25912
+ step: String2,
25913
+ kind: String2,
25914
+ title: String2,
25915
+ text: String2,
25916
+ data: optional(Json)
25917
+ },
25918
+ success: Struct({ artifactId: String2 }),
25919
+ error: RunnerRpcError
25920
+ }), make13("RecordNote", {
25921
+ payload: {
25922
+ lease: ProgramLease,
25923
+ step: String2,
25924
+ text: String2,
25925
+ artifactId: optional(String2)
25926
+ },
25927
+ error: RunnerRpcError
25928
+ }), make13("PerformHostEffect", {
25929
+ payload: {
25930
+ lease: ProgramLease,
25931
+ step: String2,
25932
+ effect: Union([
25933
+ Struct({ kind: Literal("post_comment"), changeRequestId: String2, body: String2 }),
25934
+ Struct({
25935
+ kind: Literal("change_request"),
25936
+ title: String2,
25937
+ body: String2,
25938
+ integration: optionalKey(String2)
25939
+ }),
25940
+ Struct({
25941
+ kind: Literal("write_back"),
25942
+ milestone: optionalKey(Literals(["started", "change_request_opened", "merged", "failed"])),
25943
+ changeRequestUrl: optionalKey(String2)
25944
+ })
25945
+ ])
25946
+ },
25947
+ success: UndefinedOr(Struct({ id: String2, number: String2, url: String2 })),
25948
+ error: RunnerRpcError
25949
+ }), make13("CreatePlanTasks", {
25950
+ payload: {
25951
+ lease: ProgramLease,
25952
+ tickets: ArraySchema(Struct({
25953
+ key: String2,
25954
+ title: String2,
25955
+ body: String2,
25956
+ acceptanceCriteria: ArraySchema(String2),
25957
+ blockedBy: ArraySchema(String2),
25958
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration"]))
25959
+ }))
25960
+ },
25961
+ success: ArraySchema(Struct({ key: String2, taskId: String2 })),
25962
+ error: RunnerRpcError
25963
+ }), make13("IntegrationBranch", {
25964
+ payload: { lease: ProgramLease, repoBindingId: optionalKey(String2) },
25965
+ success: Struct({ repoBindingId: String2, branch: String2, revision: String2 }),
25966
+ error: RunnerRpcError
25967
+ }), make13("MergeChangeRequest", {
25968
+ payload: { lease: ProgramLease, step: String2, changeRequestId: String2 },
25969
+ success: Union([
25970
+ Struct({ status: Literal("merged"), revision: String2 }),
25971
+ Struct({ status: Literal("conflict") })
25972
+ ]),
25973
+ error: RunnerRpcError
25974
+ }), make13("PublishRelease", {
25975
+ payload: {
25976
+ lease: ProgramLease,
25977
+ step: String2,
25978
+ tag: String2,
25979
+ revision: optionalKey(String2),
25980
+ title: String2,
25981
+ notes: String2
25982
+ },
25983
+ success: Struct({ tag: String2, revision: String2, url: String2 }),
25984
+ error: RunnerRpcError
25985
+ }), make13("ReportSteer", {
25986
+ payload: { workUnitId: String2, messageId: String2, delivered: Boolean2 },
25987
+ success: Void,
25988
+ error: RunnerRpcError
25989
+ }), make13("SaveCheckpoint", {
25990
+ payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
25991
+ success: Void,
25992
+ error: RunnerRpcError
25993
+ }), make13("ResumeCheckpoint", {
25994
+ payload: { lease: ProgramLease },
25995
+ success: UndefinedOr(StepCheckpoint),
25996
+ error: RunnerRpcError
25997
+ }), make13("SettledCheckpoints", {
25998
+ success: ArraySchema(Struct({
25999
+ stepAttemptId: String2,
26000
+ ref: optionalKey(String2),
26001
+ repoBinding: optionalKey(WorkUnitRepoBinding)
26002
+ })),
26003
+ error: RunnerRpcError
26004
+ }), make13("ForgetCheckpoints", {
26005
+ payload: { stepAttemptIds: ArraySchema(String2) },
26006
+ success: Void,
26007
+ error: RunnerRpcError
26008
+ }), make13("Bundle", {
26009
+ payload: { digest: String2 },
26010
+ success: Struct({ bundle: String2 }),
26011
+ error: RunnerRpcError
26012
+ }), make13("SettledRuns", {
26013
+ payload: { runIds: ArraySchema(String2) },
26014
+ success: ArraySchema(String2),
26015
+ error: RunnerRpcError
26016
+ }), make13("ProgramSecrets", {
26017
+ payload: { lease: ProgramLease },
26018
+ success: Record(String2, String2),
26019
+ error: RunnerRpcError
26020
+ }), make13("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make13("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError }), make13("Signals", {
26021
+ payload: { runnerReplicaId: String2 },
26022
+ success: RunnerSignal,
26023
+ error: RunnerRpcError,
26024
+ stream: true
26025
+ })).middleware(RunnerAuthentication) {
26026
+ }
25315
26027
 
25316
26028
  // apps/cli/src/mcp-auth.ts
25317
26029
  var DefaultSetupRequestTimeoutMs = 15000;
@@ -25432,7 +26144,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
25432
26144
  }
25433
26145
  var runCommand2 = (command, args, options = {}) => gen(function* () {
25434
26146
  const spawner = yield* ChildProcessSpawner;
25435
- const handle = yield* spawner.spawn(make15(command, args, {
26147
+ const handle = yield* spawner.spawn(make11(command, args, {
25436
26148
  stdin: "ignore",
25437
26149
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
25438
26150
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -25455,9 +26167,14 @@ var runCommand2 = (command, args, options = {}) => gen(function* () {
25455
26167
  var preloadVariables = new Set(["LD_PRELOAD", "DYLD_INSERT_LIBRARIES"]);
25456
26168
  var withoutPreloads = () => Object.fromEntries(Object.entries(process.env).filter(([name]) => !preloadVariables.has(name)));
25457
26169
  var shellOutputTailChars2 = 64 * 1024;
25458
- var runShell2 = (command, options) => gen(function* () {
26170
+ var runProcess2 = (argv, options) => gen(function* () {
25459
26171
  const spawner = yield* ChildProcessSpawner;
25460
- const handle = yield* spawner.spawn(make15("sh", ["-c", command], { stdin: "ignore", cwd: options.cwd, env: withoutPreloads() }));
26172
+ const [command, ...args] = argv;
26173
+ const handle = yield* spawner.spawn(make11(command, args, {
26174
+ stdin: options.stdin === undefined ? "ignore" : make9(new TextEncoder().encode(options.stdin)),
26175
+ ...options.cwd === undefined ? undefined : { cwd: options.cwd },
26176
+ env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads(), ...options.env }
26177
+ }));
25461
26178
  const tail = runFold2(decodeText(handle.all), () => "", (kept, text) => kept.length + text.length <= shellOutputTailChars2 ? kept + text : (kept + text).slice(-shellOutputTailChars2));
25462
26179
  const [output, exitCode] = yield* all([tail, handle.exitCode], { concurrency: 2 });
25463
26180
  return { exitCode: Number(exitCode), output };
@@ -25465,6 +26182,73 @@ var runShell2 = (command, options) => gen(function* () {
25465
26182
  duration: options.timeout,
25466
26183
  orElse: () => succeed5({ exitCode: undefined, output: "Timed out" })
25467
26184
  }));
26185
+ var runShell2 = (command, options) => runProcess2(["sh", "-c", command], options);
26186
+
26187
+ // packages/agent-runtime/src/env.ts
26188
+ var optionalEnv = (name) => gen(function* () {
26189
+ const value = getOrUndefined(yield* option2(String3(name)))?.trim();
26190
+ return value === undefined || value.length === 0 ? undefined : value;
26191
+ }).pipe(orElseSucceed(() => {
26192
+ return;
26193
+ }));
26194
+
26195
+ // packages/agent-runtime/src/harness-detection.ts
26196
+ var detectable = [
26197
+ {
26198
+ id: "pi",
26199
+ name: "Pi",
26200
+ logins: [{ path: ".pi/agent/auth.json" }],
26201
+ keys: ["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GEMINI_API_KEY", "OPENROUTER_API_KEY"],
26202
+ login: "run `pi` and `/login`"
26203
+ },
26204
+ {
26205
+ id: "claude",
26206
+ name: "Claude Code",
26207
+ logins: [{ path: ".claude/.credentials.json" }, { path: ".claude.json", contains: '"oauthAccount"' }],
26208
+ keys: ["ANTHROPIC_API_KEY", "CLAUDE_CODE_OAUTH_TOKEN"],
26209
+ login: "run `claude` and log in"
26210
+ },
26211
+ {
26212
+ id: "codex",
26213
+ name: "Codex",
26214
+ logins: [{ path: ".codex/auth.json" }],
26215
+ keys: ["OPENAI_API_KEY", "CODEX_API_KEY"],
26216
+ login: "run `codex login`"
26217
+ }
26218
+ ];
26219
+ var detectHarnesses2 = gen(function* () {
26220
+ const fs = yield* FileSystem;
26221
+ const path = yield* Path;
26222
+ const home = (yield* optionalEnv("HOME")) ?? "/";
26223
+ const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
26224
+ const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
26225
+ const any = (items, test) => map3(findFirst(items, test), isSome);
26226
+ const loginFound = (login) => gen(function* () {
26227
+ const file = path.join(home, login.path);
26228
+ if (!(yield* exists(file)))
26229
+ return false;
26230
+ if (login.contains === undefined)
26231
+ return true;
26232
+ return (yield* fs.readFileString(file).pipe(orElseSucceed(() => ""))).includes(login.contains);
26233
+ });
26234
+ const harnesses = [];
26235
+ const unavailable = [];
26236
+ for (const harness of detectable) {
26237
+ if (!(yield* any(searchPath, (dir) => exists(path.join(dir, harness.id))))) {
26238
+ unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
26239
+ continue;
26240
+ }
26241
+ const loggedIn = (yield* any(harness.keys, (key) => map3(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
26242
+ if (loggedIn)
26243
+ harnesses.push(harness.id);
26244
+ else
26245
+ unavailable.push({
26246
+ harness: harness.id,
26247
+ missing: [`${harness.name} is not logged in: ${harness.login}, or set ${harness.keys[0]}`]
26248
+ });
26249
+ }
26250
+ return { harnesses, unavailable };
26251
+ });
25468
26252
 
25469
26253
  // packages/agent-runtime/src/native-extensions.ts
25470
26254
  var herdrExecutionExtension2 = {
@@ -25477,8 +26261,8 @@ var herdrExecutionExtension2 = {
25477
26261
  var herdrNativeExtensionIds2 = [nativeExtensionIdentity(herdrExecutionExtension2)];
25478
26262
 
25479
26263
  // packages/agent-runtime/src/herdr-capabilities.ts
25480
- function herdrPiRunnerCapabilitiesForRepoBinding2(repoBinding, input = {}) {
25481
- const capabilities = herdrPiRunnerCapabilities2(input);
26264
+ function herdrRunnerCapabilitiesForRepoBinding2(repoBinding, input) {
26265
+ const capabilities = herdrRunnerCapabilities2(input);
25482
26266
  const sshAgentAvailable = input.sshAgentAvailable === true;
25483
26267
  const credentialProviderTypes = [
25484
26268
  ...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
@@ -25501,13 +26285,17 @@ function herdrPiRunnerCapabilitiesForRepoBinding2(repoBinding, input = {}) {
25501
26285
  ]
25502
26286
  };
25503
26287
  }
25504
- function herdrPiRunnerCapabilities2(input = {}) {
26288
+ function herdrRunnerCapabilities2(input) {
25505
26289
  const bunVersion = process.versions.bun;
25506
26290
  const sandboxBackends = (input.sandbox?.backends ?? []).filter((backend) => backend !== "host");
25507
26291
  const unavailable = input.sandbox?.unavailable ?? [];
26292
+ const { harnesses } = input.harnesses;
26293
+ const defaultHarness = runnerDefaultHarness(harnesses, undefined);
25508
26294
  return {
25509
- harnesses: ["pi"],
25510
- configWriters: input.fullAccess ? ["pi"] : [],
26295
+ harnesses: [...harnesses],
26296
+ ...defaultHarness === undefined ? undefined : { defaultHarness },
26297
+ ...input.harnesses.unavailable.length === 0 ? undefined : { harnessUnavailable: [...input.harnesses.unavailable] },
26298
+ configWriters: input.fullAccess ? harnesses.map((harness) => harness === "claude" ? "claude-code" : harness) : [],
25511
26299
  mcpServers: [],
25512
26300
  skillSources: [],
25513
26301
  providerAuthRefs: [],
@@ -25520,7 +26308,7 @@ function herdrPiRunnerCapabilities2(input = {}) {
25520
26308
  secretProviderTypes: [],
25521
26309
  runs: {
25522
26310
  supported: true,
25523
- stepKinds: input.shared === true && sandboxBackends.length === 0 ? [] : ["agent"],
26311
+ stepKinds: harnesses.length === 0 || input.shared === true && sandboxBackends.length === 0 ? [] : ["agent"],
25524
26312
  executionBackends: ["host"],
25525
26313
  sandboxBackends,
25526
26314
  providerActions: input.fullAccess ? { comment: "allowed", requestChanges: "allowed", approve: "allowed", merge: "disabled" } : { comment: "disabled", requestChanges: "disabled", approve: "disabled", merge: "disabled" },
@@ -25530,8 +26318,8 @@ function herdrPiRunnerCapabilities2(input = {}) {
25530
26318
  };
25531
26319
  }
25532
26320
  function assertHerdrRunnerCapability2(capabilities) {
25533
- if (!capabilities.harnesses.includes("pi") || capabilities.runs?.supported !== true)
26321
+ if (capabilities.runs?.supported !== true)
25534
26322
  throw new Error("herdr_runner_capability_mismatch");
25535
26323
  }
25536
26324
 
25537
- export { pipeArguments, dual, identity, constVoid, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, hasProperty, isTagged, toJsonValue, isOneOf, toJsonObject, isBigInt, isBoolean, isFunction, isNumber, isObject, isJsonObject, isString2, kindOf, getStackTraceLimit, setStackTraceLimit, assignProperty, Prototype, none, some, isNone, isSome, match, getOrElse, fromUndefinedOr, getOrUndefined, map, Service2, makeUnsafe, empty, make8, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get, merge, Reference, succeed, fail, isResult, isFailure, isSuccess, ensure, of, map2, fromInputUnsafe, isZero, zero, millis, seconds, toMillis, max, subtract, isLessThanOrEqualTo, TaggedClass, TaggedError, die, hasInterruptsOnly, combine, squash, findError, findErrorOption, hasInterrupts, interruptors, pretty, Done, done, UnknownError, succeed2, failCause, fail2, die2, interrupt, void_, isSuccess2, isFailure2, makeUnsafe2, _await, fail3, isDone, isDoneUnsafe, succeed3, doneUnsafe, Scope, make9, makeUnsafe3, provide, addFinalizerExit, addFinalizer, close, build2, buildWithScope, succeed4, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, Clock, currentTimeMillis, Random, catchDone, min, exponential, jittered, spaced, while_, setInputType, isEffect, all, findFirst, forEach, whileLoop, promise, tryPromise, succeed5, suspend, sync, void_2, undefined_, callback, never, gen, fail4, failCause2, die3, try_, yieldNow, withFiber, flatMap, andThen, tap, result, option, exit, map3, as, asSome, asVoid, catch_, catchTag, catchTags, catchReason, catchCause, catchDefect, catchIf, catchCauseIf, mapError, orDie, tapError, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOrElse, delay, sleep, raceFirst, filterOrFail, matchCauseEffect, matchEffect, context, contextWith, provide3, provideContext, serviceOption, updateContext, updateService, provideService, scope, scoped, acquireRelease, acquireUseRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt2, interruptible, onInterrupt, uninterruptible, uninterruptibleMask, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, fnUntraced, fn, logWarning, logError, logInfo, annotateLogs, runMain, systemError, badArgument, join, interrupt3, getCurrent, makeUnsafe4, make10, make11, bounded, offerUnsafe, offerAll, failCause3, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe5, fromTransform, mapDone, isSink, fromChannel, drain, make12, get2, isStream, fromChannel2, empty2, make13, fromQueue, unwrap, map4, merge2, filter, transduce, decodeText, splitLines, provideContext2, run, runHead, runForEach, mkString, FileSystem, Path, makeUnsafe6, formatIso, encode, encode2, transform, encodeBase64Url, decodeBase64UrlString, ExitCode, ProcessId, makeHandle, make14, ChildProcessSpawner, make15, parseFdName, fdName, handleErrnoException, Crypto, layer, layer2, layer3, value, empty3, fromInput, merge3, declare, is, decodeUnknownEffect, decodeEffect, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make16, isSchema, optionalKey, optional, Literal, Never, Unknown, Null, String2, Boolean2, Void, Struct, Record, StructWithRest, Tuple, ArraySchema, NonEmptyArray, Union, Literals, UndefinedOr, decodeTo, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo2, Int, isMinLength, isMaxLength, Defect, Date2, fromJsonString, Uint8ArrayFromBase64, Cause, Exit, Class, Error2, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, Json, JsonObject, error, log, guard, toDate, parseDate, toIso, currentDate, wallClockMillis, Id, Timestamp, ActorType, ProposalStatuses, ProposalTargetTypes, ContextPackModes, DefaultContextPackMode, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, runnerAgentSandboxPolicy, agentNetworkAllowlist, AgentHarnessIds, relativePathPattern, skillNamePattern, findForbiddenAgentEnvironmentSecretPath, scanDurableSurface, redactDurableSurface, redactedOutputTail, SafeJson, canonicalSha256, AgentEfforts, RunStatuses, LoopDataSchemaRef, KitmanAgentCapabilityNames, DecisionStatuses, FixFlowRecoveryActions, createId, KitKinds, KitInstallationScopes, KitCreate, KitUpdate, repositoryKey, WorkUnitRepoBinding, ProgramWorkUnit, WorkUnitClaimResult, WorkUnitClaimInput, WorkUnitHeartbeatInput, WorkUnitHeartbeatResult, WorkUnitReleaseInput, WorkUnitCompletion, RunnerOwnership, defaultRunnerCapabilities, isSyncKitHashValid, isSyncKitSafe, resolveSyncKit, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, map5, all2, withDefault, option2, String3, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, raw, HttpClientErrorSchema, make17, get3, put, execute, layer4, KitmanClientError, KitmanEffectClient, digestSha256, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, CommandFailed2, runCommand2, shellOutputTailChars2, runShell2, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrPiRunnerCapabilitiesForRepoBinding2, herdrPiRunnerCapabilities2, assertHerdrRunnerCapability2 };
26325
+ export { pipeArguments, dual, identity, constVoid, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, hasProperty, isTagged, toJsonValue, isOneOf, toJsonObject, isBigInt, isBoolean, isFunction, isNumber, isObject, isJsonObject, isString2, kindOf, assignProperty, Prototype, none, isNone, isSome, match, getOrElse, fromUndefinedOr, getOrUndefined, map, Service, empty, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get, merge, Reference, succeed, fail, isResult, isFailure, isSuccess, ensure, of, map2, fromInputUnsafe, isFinite, isZero, zero, infinity, millis, seconds, toMillis, max, subtract, isLessThanOrEqualTo, TaggedClass, TaggedError, die, hasInterruptsOnly, combine, squash, findError, findErrorOption, hasInterrupts, interruptors, pretty, Done, done, UnknownError, succeed2, failCause, fail2, die2, interrupt, void_, isSuccess2, isFailure2, makeUnsafe, _await, fail3, isDone, isDoneUnsafe, succeed3, doneUnsafe, Scope, make6, makeUnsafe2, provide, addFinalizerExit, addFinalizer, close, build2, buildWithScope, succeed4, effect, effectDiscard, mergeAll, provide2, provideMerge, Clock, currentTimeMillis, Random, catchDone, min, exponential, jittered, spaced, while_, setInputType, all, findFirst, forEach, whileLoop, promise, tryPromise, succeed5, suspend, sync, void_2, undefined_, callback, never, gen, fail4, failCause2, die3, try_, yieldNow, withFiber, flatMap, andThen, tap, result, option, exit, map3, as, asSome, asVoid, catch_, catchTag, catchTags, catchReason, catchCause, catchDefect, catchIf, catchCauseIf, mapError, orDie, tapError, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOrElse, delay, sleep, raceFirst, filterOrFail, matchCauseEffect, matchEffect, context, contextWith, provide3, provideContext, serviceOption, updateContext, updateService, provideService, scope, scoped, acquireRelease, acquireUseRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt2, interruptible, onInterrupt, uninterruptible, uninterruptibleMask, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, fnUntraced, fn, logWarning, logError, logInfo, annotateLogs, runMain, systemError, badArgument, join, interrupt3, getCurrent, runIn, makeUnsafe3, make7, make8, bounded, offerUnsafe, offerAll, failCause3, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe4, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, empty2, make9, fromQueue, unwrap, map4, merge2, filter, transduce, decodeText, splitLines, run, runHead, runForEach, mkString, FileSystem, Path, makeUnsafe5, formatIso, encode, encode2, transform, encodeBase64Url, decodeBase64UrlString, ExitCode, ProcessId, makeHandle, make10, ChildProcessSpawner, make11, parseFdName, fdName, handleErrnoException, Crypto, layer, layer2, layer3, value, empty3, fromInput, merge3, is, decodeUnknownEffect, decodeEffect, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, isSchema, optionalKey, optional, Literal, Never, Unknown, String2, Boolean2, Void, Struct, Record, StructWithRest, Tuple, ArraySchema, NonEmptyArray, Union, Literals, decodeTo, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThanOrEqualTo, isLessThanOrEqualTo2, Int, isMinLength, isMaxLength, Defect, Date2, fromJsonString, Cause, Exit, Class, Error2, TaggedError2, toJsonSchemaDocument, toCodecJson, Json, JsonObject, error, log, guard, toDate, parseDate, toIso, currentDate, wallClockMillis, Id, Timestamp, ActorType, ProposalStatuses, ProposalTargetTypes, ContextPackModes, DefaultContextPackMode, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, runnerAgentSandboxPolicy, agentNetworkAllowlist, AgentHarnessIds, findForbiddenAgentEnvironmentSecretPath, scanDurableSurface, redactDurableSurface, redactedOutputTail, canonicalSha256, RunStatuses, KitmanAgentCapabilityNames, DecisionStatuses, FixFlowRecoveryActions, createId, KitKinds, KitInstallationScopes, KitCreate, KitUpdate, repositoryKey, ProgramWorkUnit, RunnerOwnership, defaultRunnerCapabilities, isSyncKitHashValid, isSyncKitSafe, resolveSyncKit, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, map5, all2, withDefault, option2, String3, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, raw, HttpClientErrorSchema, make12, get2, put, execute, Fetch, layer4, KitmanClientError, KitmanEffectClient, digestSha256, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, LoopCapabilities, LoopManifest, AgentDeclaration, KitInstallationDeclaration, KitAssignmentDeclaration, PackageDeclarations, isStreamSchema, getStreamSchemas, make13, exitSchema, make14, Service2, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, RunnerRpcs, setupMcpAgentCredential, generateAgentKeyPair, CommandFailed2, runCommand2, shellOutputTailChars2, runProcess2, runShell2, optionalEnv, detectHarnesses2, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2 };