@kitman-sh/cli 0.6.0 → 0.7.1

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 make16 = () => 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 make17 = /* @__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 make18 = (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 make18(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 make18(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 make18(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;
@@ -6350,7 +6350,7 @@ var make10 = (value) => {
6350
6350
 
6351
6351
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/MutableList.js
6352
6352
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6353
- var make18 = () => ({
6353
+ var make19 = () => ({
6354
6354
  head: undefined,
6355
6355
  tail: undefined,
6356
6356
  length: 0
@@ -6480,12 +6480,12 @@ 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;
6487
6487
  self.strategy = options?.strategy ?? "suspend";
6488
- self.messages = make18();
6488
+ self.messages = make19();
6489
6489
  self.scheduleRunning = false;
6490
6490
  self.state = {
6491
6491
  _tag: "Open",
@@ -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
  })));
@@ -7205,7 +7205,7 @@ class RcRefImpl {
7205
7205
  this.idleTimeToLive = idleTimeToLive;
7206
7206
  }
7207
7207
  }
7208
- var make20 = (options) => withFiber((fiber) => {
7208
+ var make21 = (options) => withFiber((fiber) => {
7209
7209
  const context = fiber.context;
7210
7210
  const scope = get(context, Scope);
7211
7211
  const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
@@ -7242,7 +7242,7 @@ var getState = (self, restore) => {
7242
7242
  acquired: undefined
7243
7243
  };
7244
7244
  self.state = acquiring;
7245
- const scope = makeUnsafe3();
7245
+ const scope = makeUnsafe2();
7246
7246
  const acquire = provideContext(self.acquire, add(self.context, Scope, scope)).pipe(flatMap((value) => {
7247
7247
  if (self.state !== acquiring) {
7248
7248
  return interrupt2;
@@ -7311,7 +7311,7 @@ var release = (self, state) => {
7311
7311
  };
7312
7312
 
7313
7313
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/RcRef.js
7314
- var make12 = make20;
7314
+ var make9 = make21;
7315
7315
  var get2 = get4;
7316
7316
 
7317
7317
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Stream.js
@@ -7323,7 +7323,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
7323
7323
  var toChannel2 = (stream) => stream.channel;
7324
7324
  var callback3 = (f, options) => fromChannel2(callbackArray(f, options));
7325
7325
  var empty2 = /* @__PURE__ */ fromChannel2(empty5);
7326
- var make13 = (...values) => fromArray2(values);
7326
+ var make10 = (...values) => fromArray2(values);
7327
7327
  var suspend4 = (stream) => fromChannel2(suspend3(() => stream().channel));
7328
7328
  var fail9 = (error) => fromChannel2(fail8(error));
7329
7329
  var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed8(array)) : empty2;
@@ -7364,7 +7364,7 @@ var decodeText = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, option
7364
7364
  }));
7365
7365
  var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2);
7366
7366
  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)));
7367
+ var provideContext4 = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
7368
7368
  var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope) => toPullScoped(self.channel, scope).pipe(flatMap((upstream) => sink.transform(upstream, scope)), map3(([a]) => a))));
7369
7369
  var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
7370
7370
  for (let i = 0;i < chunk.length; i++) {
@@ -7393,7 +7393,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
7393
7393
  let currentResolve = undefined;
7394
7394
  let fiber = undefined;
7395
7395
  let cancelled = false;
7396
- const latch = makeUnsafe4(false);
7396
+ const latch = makeUnsafe3(false);
7397
7397
  const signal = options?.signal;
7398
7398
  const onAbort = () => fiber.interruptUnsafe();
7399
7399
  return new ReadableStream({
@@ -7443,8 +7443,8 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
7443
7443
 
7444
7444
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/FileSystem.js
7445
7445
  var TypeId18 = "~effect/FileSystem";
7446
- var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
7447
- var make21 = (impl) => FileSystem.of({
7446
+ var FileSystem = /* @__PURE__ */ Service("effect/FileSystem");
7447
+ var make22 = (impl) => FileSystem.of({
7448
7448
  ...impl,
7449
7449
  [TypeId18]: TypeId18,
7450
7450
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed5(false) : fail4(e))),
@@ -7497,12 +7497,12 @@ var make21 = (impl) => FileSystem.of({
7497
7497
  }), (_) => impl.writeFile(path, _, options))
7498
7498
  });
7499
7499
  var FileTypeId = "~effect/FileSystem/File";
7500
- class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchBackend")) {
7500
+ class WatchBackend extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBackend")) {
7501
7501
  }
7502
7502
 
7503
7503
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Path.js
7504
7504
  var TypeId19 = "~effect/Path";
7505
- var Path = /* @__PURE__ */ Service2("effect/Path");
7505
+ var Path = /* @__PURE__ */ Service("effect/Path");
7506
7506
  function normalizeStringPosix(path, allowAboveRoot) {
7507
7507
  let res = "";
7508
7508
  let lastSegmentLength = 0;
@@ -8011,7 +8011,7 @@ var missing = /* @__PURE__ */ Symbol();
8011
8011
  var succeed9 = succeed2;
8012
8012
  var missingExit = /* @__PURE__ */ succeed9(missing);
8013
8013
  var sameExit = /* @__PURE__ */ succeed9(missing);
8014
- var toOption2 = (value) => value === missing ? none() : some(value);
8014
+ var toOption2 = (value) => value === missing ? none() : some2(value);
8015
8015
  var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed9(option.value);
8016
8016
 
8017
8017
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/SchemaIssue.js
@@ -8282,8 +8282,8 @@ function getSchemaIssueOrThrow(cause, message) {
8282
8282
  }
8283
8283
 
8284
8284
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/DateTime.js
8285
- var makeUnsafe6 = makeUnsafe7;
8286
- var make22 = make6;
8285
+ var makeUnsafe5 = makeUnsafe7;
8286
+ var make23 = make17;
8287
8287
  var now2 = now;
8288
8288
  var nowUnsafe2 = nowUnsafe;
8289
8289
  var toDateUtc2 = toDateUtc;
@@ -8434,7 +8434,7 @@ function omit() {
8434
8434
  function withDefault2(defaultValue) {
8435
8435
  return transformOptionalEffect((o) => {
8436
8436
  const filtered = filter2(o, isNotUndefined);
8437
- return isSome(filtered) ? succeed5(filtered) : mapEager2(defaultValue, some);
8437
+ return isSome(filtered) ? succeed5(filtered) : mapEager2(defaultValue, some2);
8438
8438
  });
8439
8439
  }
8440
8440
  function String4() {
@@ -8678,7 +8678,7 @@ var Declaration = class extends ASTNodeImpl {
8678
8678
  return "<Declaration>";
8679
8679
  }
8680
8680
  };
8681
- var Null2 = class extends ASTNodeImpl {
8681
+ var Null = class extends ASTNodeImpl {
8682
8682
  _tag = "Null";
8683
8683
  getParser() {
8684
8684
  return fromConst(this, null);
@@ -8687,7 +8687,7 @@ var Null2 = class extends ASTNodeImpl {
8687
8687
  return "null";
8688
8688
  }
8689
8689
  };
8690
- var null_ = /* @__PURE__ */ new Null2;
8690
+ var null_ = /* @__PURE__ */ new Null;
8691
8691
  var Undefined = class extends ASTNodeImpl {
8692
8692
  _tag = "Undefined";
8693
8693
  getParser() {
@@ -10368,7 +10368,7 @@ var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ p
10368
10368
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Brand.js
10369
10369
  function nominal() {
10370
10370
  return Object.assign((input) => input, {
10371
- option: (input) => some(input),
10371
+ option: (input) => some2(input),
10372
10372
  result: (input) => succeed(input),
10373
10373
  is: (_) => true
10374
10374
  });
@@ -10391,7 +10391,7 @@ var HandleProto = {
10391
10391
  var makeHandle = (params) => Object.setPrototypeOf({
10392
10392
  ...params
10393
10393
  }, HandleProto);
10394
- var make14 = (spawn) => {
10394
+ var make11 = (spawn) => {
10395
10395
  const streamString = (command, options) => spawn(command).pipe(map3((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap);
10396
10396
  const streamLines = (command, options) => splitLines(streamString(command, options));
10397
10397
  return ChildProcessSpawner.of({
@@ -10404,7 +10404,7 @@ var make14 = (spawn) => {
10404
10404
  });
10405
10405
  };
10406
10406
 
10407
- class ChildProcessSpawner extends (/* @__PURE__ */ Service2()("effect/process/ChildProcessSpawner")) {
10407
+ class ChildProcessSpawner extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
10408
10408
  }
10409
10409
 
10410
10410
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/process/ChildProcess.js
@@ -10424,7 +10424,7 @@ var makeStandardCommand = (command, args, options) => Object.assign(Object.creat
10424
10424
  args,
10425
10425
  options
10426
10426
  });
10427
- var make15 = function make(...args) {
10427
+ var make12 = function make(...args) {
10428
10428
  if (isTemplateString(args[0])) {
10429
10429
  const [templates, ...expressions] = args;
10430
10430
  const tokens = parseTemplates(templates, expressions);
@@ -10628,8 +10628,8 @@ function v7Bytes(timestampMillis, bytes = randomBytes()) {
10628
10628
 
10629
10629
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Crypto.js
10630
10630
  var TypeId24 = "~effect/Crypto";
10631
- var Crypto = /* @__PURE__ */ Service2("effect/Crypto");
10632
- var make23 = (impl) => {
10631
+ var Crypto = /* @__PURE__ */ Service("effect/Crypto");
10632
+ var make24 = (impl) => {
10633
10633
  const randomBytesUnsafe = impl.randomBytes;
10634
10634
  const randomBytes = (size) => map3(validateSize("randomBytes", size), randomBytesUnsafe);
10635
10635
  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];
@@ -10715,11 +10715,11 @@ var digest = (algorithm, data) => try_({
10715
10715
  cause
10716
10716
  })
10717
10717
  });
10718
- var make24 = /* @__PURE__ */ make23({
10718
+ var make25 = /* @__PURE__ */ make24({
10719
10719
  randomBytes: NodeCrypto.randomBytes,
10720
10720
  digest
10721
10721
  });
10722
- var layer5 = /* @__PURE__ */ succeed4(Crypto, make24);
10722
+ var layer5 = /* @__PURE__ */ succeed4(Crypto, make25);
10723
10723
 
10724
10724
  // node_modules/.bun/@effect+platform-bun@4.0.4+b8cbb99ebc524863/node_modules/@effect/platform-bun/dist/BunCrypto.js
10725
10725
  var layer = layer5;
@@ -10963,11 +10963,11 @@ var makeFile = /* @__PURE__ */ (() => {
10963
10963
  this.position = position + BigInt(bytesRead);
10964
10964
  }
10965
10965
  if (bytesRead === size) {
10966
- return some(buffer);
10966
+ return some2(buffer);
10967
10967
  }
10968
10968
  const dst = Buffer.allocUnsafeSlow(bytesRead);
10969
10969
  buffer.copy(dst, 0, 0, bytesRead);
10970
- return some(dst);
10970
+ return some2(dst);
10971
10971
  });
10972
10972
  } catch (cause) {
10973
10973
  return fail4(handleBadArgument("readAlloc")(cause));
@@ -11084,7 +11084,7 @@ var makeFileInfo = (stat) => try_({
11084
11084
  uid: bigintToNumberOption(stat.uid),
11085
11085
  gid: bigintToNumberOption(stat.gid),
11086
11086
  size: bytes(stat.size),
11087
- blksize: stat.blksize !== undefined ? some(bytes(stat.blksize)) : none(),
11087
+ blksize: stat.blksize !== undefined ? some2(bytes(stat.blksize)) : none(),
11088
11088
  blocks: bigintToNumberOption(stat.blocks)
11089
11089
  }),
11090
11090
  catch: handleBadArgument("stat")
@@ -11169,7 +11169,7 @@ var writeFile2 = (path, data, options) => callback((resume, signal) => {
11169
11169
  resume(fail4(handleBadArgument("writeFile")(err)));
11170
11170
  }
11171
11171
  });
11172
- var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make21({
11172
+ var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make22({
11173
11173
  access: access2,
11174
11174
  chmod: chmod2,
11175
11175
  chown: chown2,
@@ -11443,7 +11443,7 @@ var value2 = (self) => {
11443
11443
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/Redacted.js
11444
11444
  var TypeId26 = "~effect/Redacted";
11445
11445
  var isRedacted = (u) => hasProperty(u, TypeId26);
11446
- var make25 = (value, options) => {
11446
+ var make26 = (value, options) => {
11447
11447
  const self = Object.create(Proto5);
11448
11448
  if (options?.label) {
11449
11449
  self.label = options.label;
@@ -11505,7 +11505,7 @@ var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
11505
11505
  value: BaseProto[NodeInspectSymbol]
11506
11506
  }
11507
11507
  });
11508
- var make26 = (input) => Object.assign(Object.create(Proto6), input);
11508
+ var make27 = (input) => Object.assign(Object.create(Proto6), input);
11509
11509
  var Equivalence4 = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ strictEqual());
11510
11510
  var empty3 = /* @__PURE__ */ Object.create(Proto6);
11511
11511
  var fromInput = (input) => {
@@ -11530,21 +11530,21 @@ var fromInput = (input) => {
11530
11530
  };
11531
11531
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto6);
11532
11532
  var set2 = /* @__PURE__ */ dual(3, (self, key, value) => {
11533
- const out = make26(self);
11533
+ const out = make27(self);
11534
11534
  out[key.toLowerCase()] = value;
11535
11535
  return out;
11536
11536
  });
11537
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make26({
11537
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make27({
11538
11538
  ...self,
11539
11539
  ...fromInput(headers)
11540
11540
  }));
11541
11541
  var merge3 = /* @__PURE__ */ dual(2, (self, headers) => {
11542
- const out = make26(self);
11542
+ const out = make27(self);
11543
11543
  Object.assign(out, headers);
11544
11544
  return out;
11545
11545
  });
11546
11546
  var remove3 = /* @__PURE__ */ dual(2, (self, key) => {
11547
- const out = make26(self);
11547
+ const out = make27(self);
11548
11548
  delete out[key.toLowerCase()];
11549
11549
  return out;
11550
11550
  });
@@ -11556,12 +11556,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
11556
11556
  if (typeof key === "string") {
11557
11557
  const k = key.toLowerCase();
11558
11558
  if (k in self) {
11559
- out[k] = make25(self[k]);
11559
+ out[k] = make26(self[k]);
11560
11560
  }
11561
11561
  } else {
11562
11562
  for (const name in self) {
11563
11563
  if (name.search(key) !== -1) {
11564
- out[name] = make25(self[name]);
11564
+ out[name] = make26(self[name]);
11565
11565
  }
11566
11566
  }
11567
11567
  }
@@ -11614,7 +11614,7 @@ var Proto7 = {
11614
11614
  return array(this.params.flat());
11615
11615
  }
11616
11616
  };
11617
- var make27 = (params) => {
11617
+ var make28 = (params) => {
11618
11618
  const self = Object.create(Proto7);
11619
11619
  self.params = params;
11620
11620
  return self;
@@ -11633,7 +11633,7 @@ var fromInput3 = (input) => {
11633
11633
  out.push(parsed[i]);
11634
11634
  }
11635
11635
  }
11636
- return make27(out);
11636
+ return make28(out);
11637
11637
  };
11638
11638
  var fromInputNested = (input) => {
11639
11639
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -11658,7 +11658,7 @@ var fromInputNested = (input) => {
11658
11658
  };
11659
11659
  var Equivalence5 = /* @__PURE__ */ make((a, b) => arrayEquivalence(a.params, b.params));
11660
11660
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence3(/* @__PURE__ */ makeEquivalence([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ strictEqual()]));
11661
- var empty6 = /* @__PURE__ */ make27([]);
11661
+ var empty6 = /* @__PURE__ */ make28([]);
11662
11662
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
11663
11663
  const params = fromInput3(input).params.slice();
11664
11664
  const keys = new Set;
@@ -11670,7 +11670,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
11670
11670
  continue;
11671
11671
  params.push(self.params[i]);
11672
11672
  }
11673
- return make27(params);
11673
+ return make28(params);
11674
11674
  });
11675
11675
 
11676
11676
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/interpreter.js
@@ -11952,13 +11952,13 @@ function makeOption(schema) {
11952
11952
  return (input, options) => {
11953
11953
  const exit = runSyncExit2(parser(input, options));
11954
11954
  if (isSuccess2(exit)) {
11955
- return some(exit.value);
11955
+ return some2(exit.value);
11956
11956
  }
11957
11957
  getSchemaIssueOrThrow(exit.cause, "Option adapter can only return none for schema issues");
11958
11958
  return none();
11959
11959
  };
11960
11960
  }
11961
- function make28(schema) {
11961
+ function make29(schema) {
11962
11962
  return makeConstructorSync(toType(schema.ast));
11963
11963
  }
11964
11964
  function is2(schema) {
@@ -12063,7 +12063,7 @@ function asOption(parser) {
12063
12063
  return (input, options) => {
12064
12064
  const exit = parserExit(input, options);
12065
12065
  if (isSuccess2(exit)) {
12066
- return some(exit.value);
12066
+ return some2(exit.value);
12067
12067
  }
12068
12068
  getSchemaIssueOrThrow(exit.cause, "Option adapter can only return none for schema issues");
12069
12069
  return none();
@@ -12115,7 +12115,7 @@ var RebuildOptions = /* @__PURE__ */ Symbol();
12115
12115
  var SchemaProto = {
12116
12116
  [TypeId29]: TypeId29,
12117
12117
  get make() {
12118
- const value = make28(this);
12118
+ const value = make29(this);
12119
12119
  Object.defineProperty(this, "make", {
12120
12120
  value,
12121
12121
  enumerable: true
@@ -12151,10 +12151,10 @@ var SchemaProto = {
12151
12151
  return this.rebuild(appendChecks(this.ast, checks));
12152
12152
  },
12153
12153
  rebuild(ast) {
12154
- return make29(ast, this[RebuildOptions]);
12154
+ return make30(ast, this[RebuildOptions]);
12155
12155
  }
12156
12156
  };
12157
- function make29(ast, options) {
12157
+ function make30(ast, options) {
12158
12158
  function Schema() {}
12159
12159
  const self = Object.setPrototypeOf(Schema, SchemaProto);
12160
12160
  if (options && (Object.hasOwn(options, "name") || Object.hasOwn(options, "length") || Object.hasOwn(options, "__proto__"))) {
@@ -12269,7 +12269,7 @@ var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment"
12269
12269
 
12270
12270
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/toCodec.js
12271
12271
  function toCodecJson2(schema) {
12272
- return make29(toCodecJsonAST(schema.ast), {
12272
+ return make30(toCodecJsonAST(schema.ast), {
12273
12273
  schema
12274
12274
  });
12275
12275
  }
@@ -12316,7 +12316,7 @@ function toCodecJsonASTStep(ast, recur) {
12316
12316
  if (!isFunction2(getLink)) {
12317
12317
  return replaceEncoding(ast, [unknownToJson]);
12318
12318
  }
12319
- const typeParameters = ast.typeParameters.map((tp) => make29(toEncoded(tp)));
12319
+ const typeParameters = ast.typeParameters.map((tp) => make30(toEncoded(tp)));
12320
12320
  const link = getLink(typeParameters);
12321
12321
  return link === undefined ? ast : replaceEncoding(ast, [mapLink(link, recur)]);
12322
12322
  }
@@ -12351,7 +12351,7 @@ function toCodecJsonASTStep(ast, recur) {
12351
12351
  return ast;
12352
12352
  }
12353
12353
  function toCodecStringTree(schema) {
12354
- return make29(toCodecStringTreeAST(schema.ast), {
12354
+ return make30(toCodecStringTreeAST(schema.ast), {
12355
12355
  schema
12356
12356
  });
12357
12357
  }
@@ -12371,7 +12371,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
12371
12371
  function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
12372
12372
  switch (ast._tag) {
12373
12373
  case "Declaration": {
12374
- const typeParameters = ast.typeParameters.map((tp) => make29(recur(toEncoded(tp))));
12374
+ const typeParameters = ast.typeParameters.map((tp) => make30(recur(toEncoded(tp))));
12375
12375
  const getStringTreeLink = ast.annotations?.toCodecStringTree;
12376
12376
  if (isFunction2(getStringTreeLink)) {
12377
12377
  const link = getStringTreeLink(typeParameters);
@@ -13479,7 +13479,7 @@ function toRepresentations(asts, options) {
13479
13479
  }
13480
13480
 
13481
13481
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/internal/schema/toEquivalence.js
13482
- var toEquivalence2 = /* @__PURE__ */ memoize((ast) => {
13482
+ var toEquivalence = /* @__PURE__ */ memoize((ast) => {
13483
13483
  return recur(ast);
13484
13484
  });
13485
13485
  function recur(ast) {
@@ -13599,7 +13599,7 @@ function recur(ast) {
13599
13599
  }
13600
13600
  case "Suspend": {
13601
13601
  let equivalence;
13602
- return make((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
13602
+ return make((a, b) => (equivalence ??= toEquivalence(ast.thunk()))(a, b));
13603
13603
  }
13604
13604
  }
13605
13605
  }
@@ -13700,7 +13700,7 @@ function isSchemaError(u) {
13700
13700
  var TypeId30 = TypeId29;
13701
13701
  function declareConstructor() {
13702
13702
  return (typeParameters, run, annotations) => {
13703
- return make16(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make16(ast))), annotations));
13703
+ return make31(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make31(ast))), annotations));
13704
13704
  };
13705
13705
  }
13706
13706
  function declare(is, annotations) {
@@ -13807,27 +13807,27 @@ function encodeUnknownSync(schema, options) {
13807
13807
  };
13808
13808
  }
13809
13809
  var encodeSync = encodeUnknownSync;
13810
- var make16 = make29;
13810
+ var make31 = make30;
13811
13811
  function isSchema(u) {
13812
13812
  return hasProperty(u, TypeId30) && u[TypeId30] === TypeId30;
13813
13813
  }
13814
- var optionalKey = /* @__PURE__ */ lambda((schema) => make16(optionalKey2(schema.ast), {
13814
+ var optionalKey = /* @__PURE__ */ lambda((schema) => make31(optionalKey2(schema.ast), {
13815
13815
  schema
13816
13816
  }));
13817
13817
  var optional = /* @__PURE__ */ lambda((self) => {
13818
13818
  const schema = UndefinedOr(self);
13819
- return make16(optional2(self.ast), {
13819
+ return make31(optional2(self.ast), {
13820
13820
  schema
13821
13821
  });
13822
13822
  });
13823
- var toType2 = /* @__PURE__ */ lambda((schema) => make16(toType(schema.ast), {
13823
+ var toType2 = /* @__PURE__ */ lambda((schema) => make31(toType(schema.ast), {
13824
13824
  schema
13825
13825
  }));
13826
- var toEncoded2 = /* @__PURE__ */ lambda((schema) => make16(toEncoded(schema.ast), {
13826
+ var toEncoded2 = /* @__PURE__ */ lambda((schema) => make31(toEncoded(schema.ast), {
13827
13827
  schema
13828
13828
  }));
13829
13829
  function Literal(literal) {
13830
- const out = make16(new Literal2(literal), {
13830
+ const out = make31(new Literal2(literal), {
13831
13831
  literal,
13832
13832
  transform(to) {
13833
13833
  return out.pipe(decodeTo(Literal(to), {
@@ -13838,16 +13838,16 @@ function Literal(literal) {
13838
13838
  });
13839
13839
  return out;
13840
13840
  }
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);
13841
+ var Never = /* @__PURE__ */ make31(never4);
13842
+ var Unknown = /* @__PURE__ */ make31(unknown);
13843
+ var Null2 = /* @__PURE__ */ make31(null_);
13844
+ var Undefined2 = /* @__PURE__ */ make31(undefined_3);
13845
+ var String2 = /* @__PURE__ */ make31(string2);
13846
+ var Number5 = /* @__PURE__ */ make31(number2);
13847
+ var Boolean2 = /* @__PURE__ */ make31(boolean);
13848
+ var Void = /* @__PURE__ */ make31(void_4);
13849
13849
  function makeStruct(ast, fields) {
13850
- return make16(ast, {
13850
+ return make31(ast, {
13851
13851
  fields,
13852
13852
  mapFields(f, options) {
13853
13853
  const fields = f(this.fields);
@@ -13859,19 +13859,19 @@ function Struct(fields) {
13859
13859
  return makeStruct(struct(fields, undefined), fields);
13860
13860
  }
13861
13861
  function Record(key, value) {
13862
- return make16(record(key.ast, value.ast), {
13862
+ return make31(record(key.ast, value.ast), {
13863
13863
  key,
13864
13864
  value
13865
13865
  });
13866
13866
  }
13867
13867
  function StructWithRest(schema, records) {
13868
- return make16(structWithRest(schema.ast, records.map(getAST)), {
13868
+ return make31(structWithRest(schema.ast, records.map(getAST)), {
13869
13869
  schema,
13870
13870
  records
13871
13871
  });
13872
13872
  }
13873
13873
  function makeTuple(ast, elements) {
13874
- return make16(ast, {
13874
+ return make31(ast, {
13875
13875
  elements,
13876
13876
  mapElements(f, options) {
13877
13877
  const elements = f(this.elements);
@@ -13882,14 +13882,14 @@ function makeTuple(ast, elements) {
13882
13882
  function Tuple(elements) {
13883
13883
  return makeTuple(tuple(elements), elements);
13884
13884
  }
13885
- var ArraySchema = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [], [schema.ast]), {
13885
+ var ArraySchema = /* @__PURE__ */ lambda((schema) => make31(new Arrays(false, [], [schema.ast]), {
13886
13886
  value: schema
13887
13887
  }));
13888
- var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [schema.ast], [schema.ast]), {
13888
+ var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make31(new Arrays(false, [schema.ast], [schema.ast]), {
13889
13889
  value: schema
13890
13890
  }));
13891
13891
  function makeUnion(ast, members) {
13892
- return make16(ast, {
13892
+ return make31(ast, {
13893
13893
  members,
13894
13894
  mapMembers(f, options) {
13895
13895
  const members = f(this.members);
@@ -13902,7 +13902,7 @@ function Union(members, options) {
13902
13902
  }
13903
13903
  function Literals(literals) {
13904
13904
  const members = literals.map(Literal);
13905
- return make16(union(members, undefined, undefined), {
13905
+ return make31(union(members, undefined, undefined), {
13906
13906
  literals,
13907
13907
  members,
13908
13908
  mapMembers(f) {
@@ -13916,20 +13916,21 @@ function Literals(literals) {
13916
13916
  }
13917
13917
  });
13918
13918
  }
13919
+ var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null2]));
13919
13920
  var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
13920
13921
  function suspend5(f) {
13921
- return make16(new Suspend(() => f().ast));
13922
+ return make31(new Suspend(() => f().ast));
13922
13923
  }
13923
13924
  function decodeTo(to, transformation) {
13924
13925
  return (from) => {
13925
- return make16(decodeTo2(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
13926
+ return make31(decodeTo2(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
13926
13927
  from,
13927
13928
  to
13928
13929
  });
13929
13930
  };
13930
13931
  }
13931
13932
  function withConstructorDefault2(defaultValue) {
13932
- return (schema) => make16(withConstructorDefault(schema.ast, defaultValue), {
13933
+ return (schema) => make31(withConstructorDefault(schema.ast, defaultValue), {
13933
13934
  schema
13934
13935
  });
13935
13936
  }
@@ -13995,7 +13996,7 @@ function isBase64(annotations) {
13995
13996
  ...annotations
13996
13997
  });
13997
13998
  }
13998
- var Finite = /* @__PURE__ */ make16(finite);
13999
+ var Finite = /* @__PURE__ */ make31(finite);
13999
14000
  function makeIsGreaterThanOrEqualTo(options) {
14000
14001
  const gte = isGreaterThanOrEqualTo2(options.order);
14001
14002
  const formatter = options.formatter ?? format;
@@ -14524,7 +14525,7 @@ function CauseReason(error, defect) {
14524
14525
  }
14525
14526
  }))
14526
14527
  });
14527
- return make16(schema.ast, {
14528
+ return make31(schema.ast, {
14528
14529
  error,
14529
14530
  defect
14530
14531
  });
@@ -14561,7 +14562,7 @@ function Cause(error, defect) {
14561
14562
  }) => failures
14562
14563
  }))
14563
14564
  });
14564
- return make16(schema.ast, {
14565
+ return make31(schema.ast, {
14565
14566
  error,
14566
14567
  defect
14567
14568
  });
@@ -14622,7 +14623,7 @@ function Exit(value, error, defect) {
14622
14623
  }
14623
14624
  }))
14624
14625
  });
14625
- return make16(schema.ast, {
14626
+ return make31(schema.ast, {
14626
14627
  value,
14627
14628
  error,
14628
14629
  defect
@@ -14664,7 +14665,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
14664
14665
  return getClassSchema(this).rebuild(ast);
14665
14666
  }
14666
14667
  static make(input, options) {
14667
- return make28(getClassSchema(this))(input ?? {}, options);
14668
+ return make29(getClassSchema(this))(input ?? {}, options);
14668
14669
  }
14669
14670
  static makeOption(input, options) {
14670
14671
  return makeOption(getClassSchema(this))(input ?? {}, options);
@@ -14723,7 +14724,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
14723
14724
  const ClassTypeId = getClassTypeId(identifier);
14724
14725
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
14725
14726
  const transformation = getClassTransformation(self);
14726
- const to = make16(new Declaration([from.ast], () => (input, ast, options) => {
14727
+ const to = make31(new Declaration([from.ast], () => (input, ast, options) => {
14727
14728
  return isClassValue(input) ? succeed5(input) : fail4(new InvalidType(ast, input, options));
14728
14729
  }, {
14729
14730
  identifier,
@@ -14771,8 +14772,8 @@ var TaggedError2 = (identifier) => {
14771
14772
  return Error2(identifier ?? tagValue)(struct, annotations);
14772
14773
  };
14773
14774
  };
14774
- function toEquivalence(schema) {
14775
- return toEquivalence2(schema.ast);
14775
+ function toEquivalence2(schema) {
14776
+ return toEquivalence(schema.ast);
14776
14777
  }
14777
14778
  function toJsonSchemaDocument(schema, options) {
14778
14779
  const document = toRepresentation(toCodecJsonAST(schema.ast), options);
@@ -14780,7 +14781,7 @@ function toJsonSchemaDocument(schema, options) {
14780
14781
  }
14781
14782
  var toCodecJson = toCodecJson2;
14782
14783
  var toCodecStringTree2 = toCodecStringTree;
14783
- var Json = /* @__PURE__ */ make16(/* @__PURE__ */ annotate(Json2, {
14784
+ var Json = /* @__PURE__ */ make31(/* @__PURE__ */ annotate(Json2, {
14784
14785
  toCode: () => ({
14785
14786
  runtime: "Schema.Json",
14786
14787
  Type: "Schema.Json"
@@ -14829,7 +14830,7 @@ function isRfc3339Time(value) {
14829
14830
  const utcMinutes = hour * 60 + minute - sign * (Number(match[6] ?? 0) * 60 + Number(match[7] ?? 0));
14830
14831
  return (utcMinutes % 1440 + 1440) % 1440 === 1439;
14831
14832
  }
14832
- var isDateTime3 = makeFilter((value) => {
14833
+ var isDateTime2 = makeFilter((value) => {
14833
14834
  const parts = value.split(/T/i);
14834
14835
  return parts.length === 2 && isRfc3339Date(parts[0] ?? "") && isRfc3339Time(parts[1] ?? "");
14835
14836
  }, { expected: "an RFC 3339 date-time", toJsonSchema: () => ({ format: "date-time" }) });
@@ -14867,13 +14868,13 @@ function withoutUndefined(value) {
14867
14868
 
14868
14869
  // packages/core/src/time.ts
14869
14870
  function toDate(input) {
14870
- return toDateUtc2(makeUnsafe6(input));
14871
+ return toDateUtc2(makeUnsafe5(input));
14871
14872
  }
14872
14873
  function parseDate(input) {
14873
- return getOrUndefined(map(make22(input), toDateUtc2));
14874
+ return getOrUndefined(map(make23(input), toDateUtc2));
14874
14875
  }
14875
14876
  function toIso(input) {
14876
- return formatIso(makeUnsafe6(input));
14877
+ return formatIso(makeUnsafe5(input));
14877
14878
  }
14878
14879
  var currentDate = map3(now2, toDateUtc2);
14879
14880
  function wallClockMillis() {
@@ -14883,7 +14884,7 @@ function wallClockMillis() {
14883
14884
  // packages/core/src/common.ts
14884
14885
  var Id = String2.check(isMinLength(1));
14885
14886
  var Slug = String2.check(isMinLength(1), isPattern(new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")));
14886
- var Timestamp = String2.check(isDateTime3);
14887
+ var Timestamp = String2.check(isDateTime2);
14887
14888
  var ApiError = Struct({
14888
14889
  error: Struct({
14889
14890
  code: String2,
@@ -15033,7 +15034,7 @@ var ProposalRenderedDiffFormat = Literals(ProposalRenderedDiffFormats);
15033
15034
  var ProposalRenderedDiffSectionRisk = Literals(ProposalRenderedDiffSectionRisks);
15034
15035
  var ProposalRenderedDiffRefKind = Literals(ProposalRenderedDiffRefKinds);
15035
15036
  var ProposalSafeString = String2.check(isMaxLength(4000), isPattern(new RegExp(ProposalSafeStringPattern, "u")));
15036
- var ProposalSafeMetadataScalar = Union([ProposalSafeString, Finite, Boolean2, Null]);
15037
+ var ProposalSafeMetadataScalar = Union([ProposalSafeString, Finite, Boolean2, Null2]);
15037
15038
  var ProposalSafeMetadataValue = Union([
15038
15039
  ProposalSafeMetadataScalar,
15039
15040
  ArraySchema(ProposalSafeMetadataScalar).check(isMaxLength(100))
@@ -15439,7 +15440,7 @@ var ProjectDeliverySettings = Struct({
15439
15440
  revision: Int.check(isGreaterThanOrEqualTo(1))
15440
15441
  });
15441
15442
  var ProjectDeliverySettingsUpdate = Struct({
15442
- defaultRepoBindingId: optionalKey(Union([Id, Null])),
15443
+ defaultRepoBindingId: optionalKey(Union([Id, Null2])),
15443
15444
  standardBranchTemplate: optionalKey(BranchTemplate),
15444
15445
  epicBranchTemplate: optionalKey(BranchTemplate),
15445
15446
  isolatedChildBranchTemplate: optionalKey(BranchTemplate),
@@ -15455,13 +15456,13 @@ var ProjectDirectoryItem = Struct({
15455
15456
  sourceType: ProjectSourceType,
15456
15457
  openTaskCount: Int.check(isGreaterThanOrEqualTo(0)),
15457
15458
  blockedTaskCount: Int.check(isGreaterThanOrEqualTo(0)),
15459
+ createdAt: Timestamp,
15458
15460
  updatedAt: Timestamp
15459
15461
  });
15460
15462
  var Project = Struct({
15461
15463
  ...ProjectDirectoryItem.fields,
15462
15464
  ...Struct({
15463
- defaultStatusMapping: Record(String2, String2),
15464
- createdAt: Timestamp
15465
+ defaultStatusMapping: Record(String2, String2)
15465
15466
  }).fields
15466
15467
  });
15467
15468
  var ProjectCreate = Struct({
@@ -15521,6 +15522,10 @@ var RepoBinding = Struct({
15521
15522
  expectedCommitSha: optionalKey(String2.check(isMinLength(1))),
15522
15523
  credentialRefs: ArraySchema(RepoBindingCredentialRef),
15523
15524
  status: RepoBindingStatus,
15525
+ webhook: optionalKey(Struct({
15526
+ status: Literals(["active", "missing"]),
15527
+ message: optionalKey(String2.check(isMaxLength(240)))
15528
+ })),
15524
15529
  createdAt: Timestamp,
15525
15530
  updatedAt: Timestamp
15526
15531
  });
@@ -15671,6 +15676,7 @@ var AgentSandboxNetwork = Union([
15671
15676
  var AgentSandboxPolicy = Struct({
15672
15677
  writablePaths: ArraySchema(Path3),
15673
15678
  readDeniedPaths: ArraySchema(Path3),
15679
+ readAllowedPaths: ArraySchema(Path3),
15674
15680
  network: AgentSandboxNetwork,
15675
15681
  environment: Record(String2.check(isMinLength(1)), String2),
15676
15682
  dockerImageDigest: optionalKey(String2.check(isPattern(new RegExp("^sha256:[a-f0-9]{64}$", "u"))))
@@ -15691,6 +15697,7 @@ var AgentSandboxCredentialPaths = [
15691
15697
  var runnerAgentSandboxPolicy = () => ({
15692
15698
  writablePaths: [],
15693
15699
  readDeniedPaths: [...AgentSandboxCredentialPaths],
15700
+ readAllowedPaths: [],
15694
15701
  network: { hosts: [] },
15695
15702
  environment: {}
15696
15703
  });
@@ -16230,8 +16237,8 @@ var RedactionWaiver = Struct({
16230
16237
  ]),
16231
16238
  authorityActorId: String2.check(isMinLength(1)),
16232
16239
  authorityRole: Union([Literal("owner"), Literal("admin")]),
16233
- expiresAt: optionalKey(String2.check(isDateTime3)),
16234
- createdAt: String2.check(isDateTime3)
16240
+ expiresAt: optionalKey(String2.check(isDateTime2)),
16241
+ createdAt: String2.check(isDateTime2)
16235
16242
  });
16236
16243
  class DurableSurfaceScanError extends TaggedError("DurableSurfaceScanError") {
16237
16244
  constructor(findings) {
@@ -16699,7 +16706,7 @@ var Sha2562 = String2.check(isPattern(new RegExp("^[a-f0-9]{64}$", "u")));
16699
16706
  var BoundedText = String2.check(isMinLength(1), isMaxLength(4000));
16700
16707
  var SafeKey = String2.check(isMinLength(1), isMaxLength(120), isPattern(new RegExp("^[A-Za-z][A-Za-z0-9_-]*$", "u")));
16701
16708
  var SafeJson = Union([
16702
- Null,
16709
+ Null2,
16703
16710
  Boolean2,
16704
16711
  Finite.check(isLessThanOrEqualTo2(Number.MAX_SAFE_INTEGER), isGreaterThanOrEqualTo(Number.MIN_SAFE_INTEGER)),
16705
16712
  BoundedText,
@@ -17581,7 +17588,7 @@ var LoopStepOutputDataValue = Union([
17581
17588
  LoopSafeOutputDataString,
17582
17589
  Finite,
17583
17590
  Boolean2,
17584
- Null,
17591
+ Null2,
17585
17592
  ArraySchema(suspend5(() => LoopStepOutputDataValue)).check(isMaxLength(200)),
17586
17593
  Record(LoopDataPathSegment, suspend5(() => LoopStepOutputDataValue)).check(isMaxProperties(200))
17587
17594
  ]).annotate({ identifier: "LoopStepOutputDataValue" });
@@ -18206,7 +18213,7 @@ var LoopDetail = Struct({ id: String2, resolved: optionalKey(ProgramLoop) });
18206
18213
  var AutomaticStart = Struct({
18207
18214
  eventId: String2,
18208
18215
  eventType: String2,
18209
- projectId: Union([String2, Null]),
18216
+ projectId: Union([String2, Null2]),
18210
18217
  loop: String2,
18211
18218
  runId: optionalKey(String2),
18212
18219
  rejection: optionalKey(String2),
@@ -19167,7 +19174,7 @@ var FixFlowSafeMetadataValue = Union([
19167
19174
  String2.check(isMaxLength(4000), isPattern(new RegExp(`^(?!.*(?:${FixFlowForbiddenContentPattern}|secret|password|token|authorization|cookie|credential)).*$`, "u"))),
19168
19175
  Boolean2,
19169
19176
  Finite,
19170
- Null,
19177
+ Null2,
19171
19178
  ArraySchema(suspend5(() => FixFlowSafeMetadataValue)).check(isMaxLength(200)),
19172
19179
  Record(FixFlowSafeMetadataKey, suspend5(() => FixFlowSafeMetadataValue)).check(isMaxProperties(200))
19173
19180
  ]).annotate({ identifier: "FixFlowSafeMetadataValue" });
@@ -19860,6 +19867,7 @@ var OrchestrationWorkUnit = Struct({
19860
19867
  granted: ArraySchema(String2),
19861
19868
  lease: WorkUnitLease,
19862
19869
  journal: RunJournal,
19870
+ network: optionalKey(AgentSandboxNetwork),
19863
19871
  program: Struct({
19864
19872
  loopId: String2.check(isMinLength(1)),
19865
19873
  credential: String2.check(isMinLength(1))
@@ -20159,8 +20167,15 @@ var RunnerSandboxUnavailable = Struct({
20159
20167
  backend: RunnerExecutionBackend,
20160
20168
  missing: ArraySchema(String2.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
20161
20169
  });
20170
+ var DetectedHarnessIds = ["pi", "claude", "codex"];
20171
+ var RunnerHarnessUnavailable = Struct({
20172
+ harness: RuntimeImplementationId,
20173
+ missing: ArraySchema(String2.check(isMinLength(1), isMaxLength(240))).check(isMaxLength(20))
20174
+ });
20162
20175
  var RunnerCapabilities = Struct({
20163
20176
  harnesses: ArraySchema(RuntimeImplementationId),
20177
+ defaultHarness: optionalKey(RuntimeImplementationId),
20178
+ harnessUnavailable: optionalKey(ArraySchema(RunnerHarnessUnavailable).check(isMaxLength(10))),
20164
20179
  configWriters: ArraySchema(AgentHarnessId),
20165
20180
  mcpServers: optionalKey(ArraySchema(String2.check(isMinLength(1), isMaxLength(160))).check(isMaxLength(100))),
20166
20181
  skillSources: optionalKey(ArraySchema(String2.check(isMinLength(1), isMaxLength(160))).check(isMaxLength(100))),
@@ -20188,6 +20203,7 @@ var Runner = Struct({
20188
20203
  status: RunnerStatus,
20189
20204
  healthStatus: RunnerHealthStatus,
20190
20205
  capabilities: RunnerCapabilities,
20206
+ preferredHarness: optionalKey(Literals(DetectedHarnessIds)),
20191
20207
  labels: ArraySchema(String2.check(isMinLength(1))),
20192
20208
  lastHeartbeatAt: optionalKey(Timestamp),
20193
20209
  createdByUserId: optionalKey(Id),
@@ -20209,6 +20225,9 @@ var RunnerProjectGrantCreate = Struct({
20209
20225
  var RunnerRescope = Struct({
20210
20226
  ownership: RunnerOwnership
20211
20227
  });
20228
+ var RunnerDefaultHarnessInput = Struct({
20229
+ harness: NullOr(Literals(DetectedHarnessIds))
20230
+ });
20212
20231
  var RunnerProjectGrantList = Struct({
20213
20232
  items: ArraySchema(RunnerProjectGrant)
20214
20233
  });
@@ -20424,7 +20443,7 @@ var RunnerWorkUnitDataValue = Union([
20424
20443
  RunnerWorkUnitSafeString,
20425
20444
  Finite,
20426
20445
  Boolean2,
20427
- Null,
20446
+ Null2,
20428
20447
  ArraySchema(suspend5(() => RunnerWorkUnitDataValue)).check(isMaxLength(200)),
20429
20448
  Record(RunnerWorkUnitSafeDataKey, suspend5(() => RunnerWorkUnitDataValue)).check(isMaxProperties(200))
20430
20449
  ]).annotate({ identifier: "RunnerWorkUnitDataValue" });
@@ -21579,7 +21598,7 @@ function makeProvider(load, mapInput) {
21579
21598
  function makeSource(get, transform) {
21580
21599
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
21581
21600
  }
21582
- function make30(get) {
21601
+ function make32(get) {
21583
21602
  return makeSource(get, identityPath);
21584
21603
  }
21585
21604
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -21588,7 +21607,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
21588
21607
  function fromEnvRecord(env, options) {
21589
21608
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
21590
21609
  const trie = buildEnvTrie(env);
21591
- return make30((path) => succeed5(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
21610
+ return make32((path) => succeed5(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
21592
21611
  }
21593
21612
  function fromEnv(options) {
21594
21613
  const env = options?.env ?? {
@@ -21670,7 +21689,7 @@ var Proto9 = {
21670
21689
  };
21671
21690
  }
21672
21691
  };
21673
- function make31(evaluator) {
21692
+ function make33(evaluator) {
21674
21693
  const self = Object.create(Proto9);
21675
21694
  self.evaluator = evaluator;
21676
21695
  self.parse = (provider) => flatMapEager2(evaluator(provider, []), fromResult2);
@@ -21678,16 +21697,16 @@ function make31(evaluator) {
21678
21697
  }
21679
21698
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
21680
21699
  var map5 = /* @__PURE__ */ dual(2, (self, f) => {
21681
- return make31((provider, pathPrefix) => map3(evaluateAt(self, provider, pathPrefix), map6(f)));
21700
+ return make33((provider, pathPrefix) => map3(evaluateAt(self, provider, pathPrefix), map6(f)));
21682
21701
  });
21683
21702
  function all2(arg) {
21684
21703
  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));
21704
+ return make33((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
21705
  }
21687
21706
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
21688
- return make31((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
21707
+ return make33((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
21689
21708
  });
21690
- var option2 = (self) => self.pipe(map5(some), withDefault(none()));
21709
+ var option2 = (self) => self.pipe(map5(some2), withDefault(none()));
21691
21710
  var isSourceError = (u) => isTagged(u, "SourceError");
21692
21711
  var cursorToString = () => "<configuration>";
21693
21712
  var mapReasons = (f) => (self) => catchCause(self, (cause) => failCause2(fromReasons(cause.reasons.map(f))));
@@ -21797,9 +21816,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
21797
21816
  function schema(codec, path) {
21798
21817
  const codecStringTree = toCodecStringTree2(codec);
21799
21818
  const encodedAst = toEncoded(codecStringTree.ast);
21800
- const decodeCursor = decodeUnknownEffect2(make16(toConfigCursorAST(codecStringTree.ast)));
21819
+ const decodeCursor = decodeUnknownEffect2(make31(toConfigCursorAST(codecStringTree.ast)));
21801
21820
  const localPath = typeof path === "string" ? [path] : path ?? [];
21802
- return make31((provider, pathPrefix) => {
21821
+ return make33((provider, pathPrefix) => {
21803
21822
  const fullPath = [...pathPrefix, ...localPath];
21804
21823
  return loadCursor(provider, fullPath).pipe(flatMapEager2((cursor) => decodeCursor(cursor).pipe(mapEager2(succeed), catchEager2((issue) => {
21805
21824
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -22215,7 +22234,7 @@ var updateHeaders = (headers, body) => {
22215
22234
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/Url.js
22216
22235
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
22217
22236
  }
22218
- var make32 = (url, params, hash) => try_2({
22237
+ var make34 = (url, params, hash) => try_2({
22219
22238
  try: () => {
22220
22239
  const urlInstance = new URL(url, baseUrl());
22221
22240
  for (let i = 0;i < params.params.length; i++) {
@@ -22271,13 +22290,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
22271
22290
  return self;
22272
22291
  }
22273
22292
  var empty8 = /* @__PURE__ */ makeWith("GET", "", empty6, /* @__PURE__ */ none(), empty3, empty7);
22274
- var make17 = (method) => (url, options) => modify(empty8, {
22293
+ var make13 = (method) => (url, options) => modify(empty8, {
22275
22294
  method,
22276
22295
  url,
22277
22296
  ...options ?? undefined
22278
22297
  });
22279
- var get3 = /* @__PURE__ */ make17("GET");
22280
- var put = /* @__PURE__ */ make17("PUT");
22298
+ var get3 = /* @__PURE__ */ make13("GET");
22299
+ var put = /* @__PURE__ */ make13("PUT");
22281
22300
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
22282
22301
  let result = self;
22283
22302
  if (options.method) {
@@ -22323,14 +22342,14 @@ var setUrl = /* @__PURE__ */ dual(2, (self, url) => {
22323
22342
  return makeWith(self.method, clone.toString(), urlParams, hash, self.headers, self.body);
22324
22343
  });
22325
22344
  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));
22345
+ var setHash = /* @__PURE__ */ dual(2, (self, hash) => makeWith(self.method, self.url, self.urlParams, some2(hash), self.headers, self.body));
22327
22346
  var setBody = /* @__PURE__ */ dual(2, (self, body) => {
22328
22347
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
22329
22348
  });
22330
22349
  function toUrl(self) {
22331
- const r = make32(self.url, self.urlParams, getOrUndefined(self.hash));
22350
+ const r = make34(self.url, self.urlParams, getOrUndefined(self.hash));
22332
22351
  if (isSuccess(r)) {
22333
- return some(r.success);
22352
+ return some2(r.success);
22334
22353
  }
22335
22354
  return none();
22336
22355
  }
@@ -22530,7 +22549,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
22530
22549
 
22531
22550
  // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/http/HttpClient.js
22532
22551
  var TypeId37 = "~effect/http/HttpClient";
22533
- var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
22552
+ var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
22534
22553
  var accessor = (method) => (...args) => flatMap(HttpClient, (client) => client[method](...args));
22535
22554
  var execute = /* @__PURE__ */ accessor("execute");
22536
22555
  var transform3 = /* @__PURE__ */ dual(2, (self, f) => makeWith2(flatMap((request) => f(self.postprocess(succeed5(request)), request)), self.preprocess));
@@ -22556,13 +22575,13 @@ var Proto12 = {
22556
22575
  };
22557
22576
  },
22558
22577
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
22559
- return this.execute(make17(fullMethod)(url, options));
22578
+ return this.execute(make13(fullMethod)(url, options));
22560
22579
  }]))
22561
22580
  };
22562
- var make33 = (f) => makeWith2((effect) => flatMap(effect, (request) => withFiber((fiber) => {
22581
+ var make35 = (f) => makeWith2((effect) => flatMap(effect, (request) => withFiber((fiber) => {
22563
22582
  const scopedController = scopedRequests.get(request);
22564
22583
  const controller = scopedController ?? new AbortController;
22565
- const urlResult = make32(request.url, request.urlParams, getOrUndefined(request.hash));
22584
+ const urlResult = make34(request.url, request.urlParams, getOrUndefined(request.hash));
22566
22585
  if (isFailure(urlResult)) {
22567
22586
  return fail4(new HttpClientError({
22568
22587
  reason: new InvalidUrlError({
@@ -22756,9 +22775,9 @@ var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
22756
22775
  defaultValue: () => globalThis.fetch
22757
22776
  });
22758
22777
 
22759
- class RequestInit extends (/* @__PURE__ */ Service2()("effect/http/FetchHttpClient/RequestInit")) {
22778
+ class RequestInit extends (/* @__PURE__ */ Service()("effect/http/FetchHttpClient/RequestInit")) {
22760
22779
  }
22761
- var fetch2 = /* @__PURE__ */ make33((request, url, signal, fiber) => {
22780
+ var fetch2 = /* @__PURE__ */ make35((request, url, signal, fiber) => {
22762
22781
  const fetch2 = fiber.getRef(Fetch);
22763
22782
  const options = getOrUndefined2(fiber.context, RequestInit) ?? {};
22764
22783
  let headers = options.headers ? merge3(fromInput(options.headers), request.headers) : request.headers;
@@ -23267,6 +23286,55 @@ class KitmanEffectClient {
23267
23286
  body: JSON.stringify(input)
23268
23287
  });
23269
23288
  }
23289
+ getWorkspaceSetup(workspaceId) {
23290
+ return this.request("getWorkspaceSetup", `/workspaces/${segment(workspaceId)}/setup`, { headers: this.headers() });
23291
+ }
23292
+ mintPairingCode(workspaceId) {
23293
+ return this.request("mintPairingCode", `/workspaces/${segment(workspaceId)}/pairing-codes`, {
23294
+ method: "POST",
23295
+ headers: this.headers()
23296
+ });
23297
+ }
23298
+ redeemPairingCode(input) {
23299
+ return this.request("redeemPairingCode", "/pairing-codes/redeem", {
23300
+ method: "POST",
23301
+ headers: this.headers(true),
23302
+ body: JSON.stringify(input)
23303
+ });
23304
+ }
23305
+ startGithubConnection(workspaceId) {
23306
+ return this.request("startGithubConnection", `/workspaces/${segment(workspaceId)}/code-host-connections/github`, {
23307
+ method: "POST",
23308
+ headers: this.headers()
23309
+ });
23310
+ }
23311
+ completeGithubConnection(input) {
23312
+ return this.request("completeGithubConnection", "/code-host-connections/github", {
23313
+ method: "POST",
23314
+ headers: this.headers(true),
23315
+ body: JSON.stringify(input)
23316
+ });
23317
+ }
23318
+ startGitlabConnection(workspaceId) {
23319
+ return this.request("startGitlabConnection", `/workspaces/${segment(workspaceId)}/code-host-connections/gitlab`, {
23320
+ method: "POST",
23321
+ headers: this.headers()
23322
+ });
23323
+ }
23324
+ completeGitlabConnection(input) {
23325
+ return this.request("completeGitlabConnection", "/code-host-connections/gitlab", {
23326
+ method: "POST",
23327
+ headers: this.headers(true),
23328
+ body: JSON.stringify(input)
23329
+ });
23330
+ }
23331
+ listCodeHostRepositories(workspaceId, connectionId, page) {
23332
+ const suffix = page === undefined ? "" : `?page=${page}`;
23333
+ return this.request("listCodeHostRepositories", `/workspaces/${segment(workspaceId)}/code-host-connections/${segment(connectionId)}/repositories${suffix}`, { headers: this.headers() });
23334
+ }
23335
+ bindCodeHostRepositories(workspaceId, connectionId, input) {
23336
+ return this.request("bindCodeHostRepositories", `/workspaces/${segment(workspaceId)}/code-host-connections/${segment(connectionId)}/repo-bindings`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
23337
+ }
23270
23338
  useWorkspace(workspaceId) {
23271
23339
  return this.request("useWorkspace", `/workspaces/${segment(workspaceId)}/use`, {
23272
23340
  method: "POST",
@@ -23960,6 +24028,9 @@ class KitmanEffectClient {
23960
24028
  body: JSON.stringify(input)
23961
24029
  });
23962
24030
  }
24031
+ removeRepoBinding(projectId, repoBindingId) {
24032
+ return this.request("removeRepoBinding", `/projects/${segment(projectId)}/repo-bindings/${segment(repoBindingId)}`, { method: "DELETE", headers: this.headers() });
24033
+ }
23963
24034
  getProjectDeliverySettings(projectId) {
23964
24035
  return this.request("getProjectDeliverySettings", `/projects/${segment(projectId)}/delivery-settings`, {
23965
24036
  headers: this.headers()
@@ -24232,6 +24303,13 @@ class KitmanEffectClient {
24232
24303
  body: JSON.stringify(input)
24233
24304
  });
24234
24305
  }
24306
+ setRunnerDefaultHarness(runnerId, input) {
24307
+ return this.request("setRunnerDefaultHarness", `/runners/${segment(runnerId)}/default-harness`, {
24308
+ method: "PUT",
24309
+ headers: this.headers(true),
24310
+ body: JSON.stringify(input)
24311
+ });
24312
+ }
24235
24313
  addRunnerProjectGrant(runnerId, input) {
24236
24314
  return this.request("addRunnerProjectGrant", `/runners/${segment(runnerId)}/project-grants`, {
24237
24315
  method: "POST",
@@ -24983,7 +25061,7 @@ function toStoredSession(token, existingRefreshToken) {
24983
25061
  }
24984
25062
  function startLoopbackServer(input) {
24985
25063
  return gen(function* () {
24986
- const code = yield* make5();
25064
+ const code = yield* make16();
24987
25065
  const server = yield* acquireRelease(sync(() => Bun.serve({
24988
25066
  hostname: "127.0.0.1",
24989
25067
  port: 0,
@@ -25089,7 +25167,7 @@ function createSdkClient(input) {
25089
25167
  const runPromise = runPromiseWith(yield* context());
25090
25168
  const fetchImpl = input.fetch ?? (yield* Fetch);
25091
25169
  let session = input.session;
25092
- const refreshPermit = makeUnsafe5(1);
25170
+ const refreshPermit = makeUnsafe4(1);
25093
25171
  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
25172
  const authorizedFetch = (resource, init) => runPromise(gen(function* () {
25095
25173
  if (session.refreshToken && shouldRefresh(yield* currentDate, session.expiresAt))
@@ -25312,6 +25390,779 @@ function createAgentAuthSignedFetch(input) {
25312
25390
  return yield* promise(() => fetchImpl(new Request(request, { headers })));
25313
25391
  }));
25314
25392
  }
25393
+ // packages/core/src/runner-eligibility.ts
25394
+ function runnerDefaultHarness(harnesses, chosen) {
25395
+ if (chosen !== undefined && harnesses.includes(chosen))
25396
+ return chosen;
25397
+ return DetectedHarnessIds.find((harness) => harnesses.includes(harness));
25398
+ }
25399
+ // packages/core/src/schedule.ts
25400
+ var ScheduleFrequency = ["daily", "weekly"];
25401
+ var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
25402
+ var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
25403
+ var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
25404
+ var ScheduleCalendarRule = Struct({
25405
+ frequency: Literals(ScheduleFrequency),
25406
+ hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(23)),
25407
+ minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(59)),
25408
+ second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(59))),
25409
+ daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(6))).check(isMinLength(1), isMaxLength(7)))
25410
+ });
25411
+ var ScheduleCronRule = Struct({
25412
+ cron: String2.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
25413
+ });
25414
+ var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
25415
+ var cronBounds = [
25416
+ [0, 59],
25417
+ [0, 23],
25418
+ [1, 31],
25419
+ [1, 12],
25420
+ [0, 7]
25421
+ ];
25422
+ function cronField(field, [min, max]) {
25423
+ const values = new Set;
25424
+ for (const part of field.split(",")) {
25425
+ const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
25426
+ if (match === null)
25427
+ return;
25428
+ const from = match[1] === "*" ? min : Number(match[2]);
25429
+ const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
25430
+ const step = match[4] === undefined ? 1 : Number(match[4]);
25431
+ if (from < min || to > max || from > to || step < 1)
25432
+ return;
25433
+ for (let value = from;value <= to; value += step)
25434
+ values.add(value);
25435
+ }
25436
+ return values;
25437
+ }
25438
+ function parseCron(cron) {
25439
+ const fields = cron.split(" ");
25440
+ const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
25441
+ if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
25442
+ return;
25443
+ return {
25444
+ minutes,
25445
+ hours,
25446
+ days,
25447
+ months,
25448
+ weekdays: new Set([...weekdays].map((value) => value % 7)),
25449
+ dayRestricted: !(fields[2] ?? "").startsWith("*"),
25450
+ weekdayRestricted: !(fields[4] ?? "").startsWith("*")
25451
+ };
25452
+ }
25453
+ function isScheduleRule(value) {
25454
+ return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
25455
+ }
25456
+ var ScheduleVersion = Struct({
25457
+ contractVersion: Literal("schedule.v1"),
25458
+ id: String2.check(isMinLength(1)),
25459
+ scheduleId: String2.check(isMinLength(1)),
25460
+ workspaceId: String2.check(isMinLength(1)),
25461
+ projectId: optionalKey(String2.check(isMinLength(1))),
25462
+ loopId: optionalKey(String2.check(isMinLength(1))),
25463
+ name: optionalKey(String2.check(isMinLength(1), isMaxLength(200))),
25464
+ version: Int.check(isGreaterThanOrEqualTo(1)),
25465
+ status: Literals(ScheduleVersionStatuses),
25466
+ timezone: String2.check(isMinLength(1), isMaxLength(80)),
25467
+ rule: ScheduleRule,
25468
+ misfirePolicy: Literals(ScheduleMisfirePolicies),
25469
+ overlapPolicy: Literals(ScheduleOverlapPolicies),
25470
+ maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(200)),
25471
+ misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo2(604800))),
25472
+ inputSchemaRef: optionalKey(LoopDataSchemaRef),
25473
+ input: optionalKey(SafeJson),
25474
+ createdAt: String2.check(isMinLength(1))
25475
+ });
25476
+ var zones = new Map;
25477
+ var resolvedLocalDateTimes = new Map;
25478
+ // packages/core/src/package-declarations.ts
25479
+ var LoopCapabilities = [
25480
+ "agent_work",
25481
+ "ask",
25482
+ "call",
25483
+ "verify",
25484
+ "change_request",
25485
+ "write_back",
25486
+ "post_comment",
25487
+ "create_tasks",
25488
+ "merge_change_request",
25489
+ "publish_release"
25490
+ ];
25491
+ var JsonObject2 = Record(String2, Json);
25492
+ var recordKeyedBy = (pattern, value) => Record(String2, value).check(makeFilter((record) => {
25493
+ const bad = Object.keys(record).find((key) => !new RegExp(pattern).test(key));
25494
+ return bad === undefined ? true : `${JSON.stringify(bad)} is not a valid name or relative path`;
25495
+ }));
25496
+ var SecretName = String2.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
25497
+ var EventFilterValue = Union([String2, Finite, Boolean2, Null2]);
25498
+ var LoopManifest = Struct({
25499
+ id: String2,
25500
+ title: String2,
25501
+ input: JsonObject2,
25502
+ output: JsonObject2,
25503
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration"])),
25504
+ agents: Record(String2, String2),
25505
+ checkout: Literals(["none", "read", "write"]),
25506
+ when: ArraySchema(Struct({
25507
+ event: String2,
25508
+ filter: optionalKey(Record(String2, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
25509
+ input: Record(String2, String2)
25510
+ })),
25511
+ offers: ArraySchema(Struct({ id: String2, title: String2, loop: String2 })),
25512
+ capabilities: ArraySchema(Literals(LoopCapabilities)),
25513
+ secrets: optionalKey(ArraySchema(SecretName)),
25514
+ network: optionalKey(AgentSandboxNetwork)
25515
+ });
25516
+ var AgentDeclaration = Struct({
25517
+ extends: optionalKey(String2),
25518
+ instructions: optionalKey(String2),
25519
+ harness: optionalKey(String2),
25520
+ model: optionalKey(String2),
25521
+ effort: optionalKey(Literals(AgentEfforts)),
25522
+ kits: optionalKey(ArraySchema(String2)),
25523
+ network: optionalKey(Union([Struct({ hosts: ArraySchema(String2) }), Literal("open")])),
25524
+ sandbox: optionalKey(Literal("docker"))
25525
+ });
25526
+ var scheduleFields = {
25527
+ name: String2.check(isMinLength(1)),
25528
+ loop: String2,
25529
+ project: optionalKey(String2),
25530
+ input: optionalKey(JsonObject2),
25531
+ timezone: String2,
25532
+ misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
25533
+ overlap: optionalKey(Literals(ScheduleOverlapPolicies))
25534
+ };
25535
+ var ScheduleDeclaration = Union([
25536
+ Struct({
25537
+ ...scheduleFields,
25538
+ cron: String2.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
25539
+ }),
25540
+ Struct({
25541
+ ...scheduleFields,
25542
+ rule: declare((value) => isScheduleRule(value), {
25543
+ expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
25544
+ })
25545
+ })
25546
+ ]);
25547
+ var AuthoredKitDeclaration = Struct({
25548
+ name: String2.check(isMinLength(1)),
25549
+ kind: optionalKey(Literals(KitKinds)),
25550
+ description: optionalKey(String2),
25551
+ context: String2,
25552
+ skills: optionalKey(recordKeyedBy(skillNamePattern, recordKeyedBy(relativePathPattern, String2)))
25553
+ });
25554
+ var KitInstallationDeclaration = Struct({
25555
+ source: String2.check(isMinLength(1)),
25556
+ version: optionalKey(String2)
25557
+ });
25558
+ var KitAssignmentDeclaration = Struct({
25559
+ kit: String2.check(isMinLength(1)),
25560
+ workspace: optionalKey(Literals(["default", "mandatory"])),
25561
+ projects: optionalKey(ArraySchema(String2))
25562
+ });
25563
+ var KitDeclaration = Union([
25564
+ KitInstallationDeclaration,
25565
+ KitAssignmentDeclaration,
25566
+ AuthoredKitDeclaration
25567
+ ]);
25568
+ var PackageDeclarations = Struct({
25569
+ loops: ArraySchema(LoopManifest),
25570
+ agents: Record(String2, AgentDeclaration),
25571
+ schedules: optionalKey(Record(String2, ScheduleDeclaration)),
25572
+ kits: optionalKey(Record(String2, KitDeclaration))
25573
+ });
25574
+ var sameLoop = toEquivalence2(LoopManifest);
25575
+ var sameAgent = toEquivalence2(AgentDeclaration);
25576
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/PrimaryKey.js
25577
+ var symbol4 = "~effect/PrimaryKey";
25578
+
25579
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcSchema.js
25580
+ var StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
25581
+ function isStreamSchema(schema) {
25582
+ return hasProperty(schema, StreamSchemaTypeId);
25583
+ }
25584
+ function getStreamSchemas(schema) {
25585
+ return isStreamSchema(schema) ? some2({
25586
+ success: schema.success,
25587
+ error: schema.error
25588
+ }) : none();
25589
+ }
25590
+ var schema2 = /* @__PURE__ */ declare(isStream);
25591
+ function Stream2(success, error) {
25592
+ return make31(schema2.ast, {
25593
+ [StreamSchemaTypeId]: StreamSchemaTypeId,
25594
+ success,
25595
+ error
25596
+ });
25597
+ }
25598
+
25599
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/Rpc.js
25600
+ var TypeId38 = "~effect/rpc/Rpc";
25601
+ var Proto13 = {
25602
+ [TypeId38]: TypeId38,
25603
+ pipe() {
25604
+ return pipeArguments(this, arguments);
25605
+ },
25606
+ setSuccess(successSchema) {
25607
+ return makeProto({
25608
+ _tag: this._tag,
25609
+ payloadSchema: this.payloadSchema,
25610
+ successSchema,
25611
+ errorSchema: this.errorSchema,
25612
+ defectSchema: this.defectSchema,
25613
+ annotations: this.annotations,
25614
+ middlewares: this.middlewares
25615
+ });
25616
+ },
25617
+ setError(errorSchema) {
25618
+ return makeProto({
25619
+ _tag: this._tag,
25620
+ payloadSchema: this.payloadSchema,
25621
+ successSchema: this.successSchema,
25622
+ errorSchema,
25623
+ defectSchema: this.defectSchema,
25624
+ annotations: this.annotations,
25625
+ middlewares: this.middlewares
25626
+ });
25627
+ },
25628
+ setPayload(payloadSchema) {
25629
+ return makeProto({
25630
+ _tag: this._tag,
25631
+ payloadSchema: isSchema(payloadSchema) ? payloadSchema : Struct(payloadSchema),
25632
+ successSchema: this.successSchema,
25633
+ errorSchema: this.errorSchema,
25634
+ defectSchema: this.defectSchema,
25635
+ annotations: this.annotations,
25636
+ middlewares: this.middlewares
25637
+ });
25638
+ },
25639
+ middleware(middleware) {
25640
+ return makeProto({
25641
+ _tag: this._tag,
25642
+ payloadSchema: this.payloadSchema,
25643
+ successSchema: this.successSchema,
25644
+ errorSchema: this.errorSchema,
25645
+ defectSchema: this.defectSchema,
25646
+ annotations: this.annotations,
25647
+ middlewares: new Set([...this.middlewares, middleware])
25648
+ });
25649
+ },
25650
+ prefix(prefix) {
25651
+ return makeProto({
25652
+ _tag: `${prefix}${this._tag}`,
25653
+ payloadSchema: this.payloadSchema,
25654
+ successSchema: this.successSchema,
25655
+ errorSchema: this.errorSchema,
25656
+ defectSchema: this.defectSchema,
25657
+ annotations: this.annotations,
25658
+ middlewares: this.middlewares
25659
+ });
25660
+ },
25661
+ annotate(tag, value) {
25662
+ return makeProto({
25663
+ _tag: this._tag,
25664
+ payloadSchema: this.payloadSchema,
25665
+ successSchema: this.successSchema,
25666
+ errorSchema: this.errorSchema,
25667
+ defectSchema: this.defectSchema,
25668
+ middlewares: this.middlewares,
25669
+ annotations: add(this.annotations, tag, value)
25670
+ });
25671
+ },
25672
+ annotateMerge(context) {
25673
+ return makeProto({
25674
+ _tag: this._tag,
25675
+ payloadSchema: this.payloadSchema,
25676
+ successSchema: this.successSchema,
25677
+ errorSchema: this.errorSchema,
25678
+ defectSchema: this.defectSchema,
25679
+ middlewares: this.middlewares,
25680
+ annotations: merge(this.annotations, context)
25681
+ });
25682
+ }
25683
+ };
25684
+ var makeProto = (options) => {
25685
+ function Rpc() {}
25686
+ Object.setPrototypeOf(Rpc, Proto13);
25687
+ Object.assign(Rpc, options);
25688
+ Rpc.key = `effect/rpc/Rpc/${options._tag}`;
25689
+ return Rpc;
25690
+ };
25691
+ var make14 = (tag, options) => {
25692
+ const successSchema = options?.success ?? Void;
25693
+ const errorSchema = options?.error ?? Never;
25694
+ const defectSchema = options?.defect ?? Defect();
25695
+ let payloadSchema;
25696
+ if (options?.primaryKey) {
25697
+ payloadSchema = class Payload extends Class(`effect/rpc/Rpc/${tag}`)(options.payload) {
25698
+ [symbol4]() {
25699
+ return options.primaryKey(this);
25700
+ }
25701
+ };
25702
+ } else {
25703
+ payloadSchema = isSchema(options?.payload) ? options?.payload : options?.payload ? Struct(options?.payload) : Void;
25704
+ }
25705
+ return makeProto({
25706
+ _tag: tag,
25707
+ payloadSchema,
25708
+ successSchema: options?.stream ? Stream2(successSchema, errorSchema) : successSchema,
25709
+ errorSchema: options?.stream ? Never : errorSchema,
25710
+ defectSchema,
25711
+ annotations: empty(),
25712
+ middlewares: new Set
25713
+ });
25714
+ };
25715
+ var exitSchemaCache = /* @__PURE__ */ new WeakMap;
25716
+ var exitSchema = (self) => {
25717
+ if (exitSchemaCache.has(self)) {
25718
+ return exitSchemaCache.get(self);
25719
+ }
25720
+ const rpc = self;
25721
+ const failures = new Set([rpc.errorSchema]);
25722
+ const streamSchemas = getStreamSchemas(rpc.successSchema);
25723
+ if (isSome(streamSchemas)) {
25724
+ failures.add(streamSchemas.value.error);
25725
+ }
25726
+ for (const middleware of rpc.middlewares) {
25727
+ failures.add(middleware.error);
25728
+ }
25729
+ const schema = Exit(isSome(streamSchemas) ? Void : rpc.successSchema, Union([...failures]), rpc.defectSchema);
25730
+ exitSchemaCache.set(self, schema);
25731
+ return schema;
25732
+ };
25733
+ var WrapperTypeId = "~effect/rpc/Rpc/Wrapper";
25734
+ var isWrapper = (u) => (WrapperTypeId in u);
25735
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcGroup.js
25736
+ var RpcGroupProto = {
25737
+ add(...rpcs) {
25738
+ const requests = new Map(this.requests);
25739
+ for (const rpc of rpcs) {
25740
+ requests.set(rpc._tag, rpc);
25741
+ }
25742
+ return makeProto2({
25743
+ requests,
25744
+ annotations: this.annotations
25745
+ });
25746
+ },
25747
+ merge(...groups) {
25748
+ const requests = new Map(this.requests);
25749
+ const annotations = new Map(this.annotations.mapUnsafe);
25750
+ for (const group of groups) {
25751
+ for (const [tag, rpc] of group.requests) {
25752
+ requests.set(tag, rpc);
25753
+ }
25754
+ for (const [key, value] of group.annotations.mapUnsafe) {
25755
+ annotations.set(key, value);
25756
+ }
25757
+ }
25758
+ return makeProto2({
25759
+ requests,
25760
+ annotations: makeUnsafe6(annotations)
25761
+ });
25762
+ },
25763
+ omit(...tags) {
25764
+ const requests = new Map(this.requests);
25765
+ for (const tag of tags) {
25766
+ requests.delete(tag);
25767
+ }
25768
+ return makeProto2({
25769
+ requests,
25770
+ annotations: this.annotations
25771
+ });
25772
+ },
25773
+ middleware(middleware) {
25774
+ const requests = new Map;
25775
+ for (const [tag, rpc] of this.requests) {
25776
+ requests.set(tag, rpc.middleware(middleware));
25777
+ }
25778
+ return makeProto2({
25779
+ requests,
25780
+ annotations: this.annotations
25781
+ });
25782
+ },
25783
+ toHandlers(build) {
25784
+ const self = this;
25785
+ return gen(function* () {
25786
+ const services = yield* context();
25787
+ const handlers = isEffect2(build) ? yield* build : build;
25788
+ const contextMap = new Map;
25789
+ self.requests.forEach((rpc, tag) => {
25790
+ contextMap.set(rpc.key, {
25791
+ tag: rpc._tag,
25792
+ handler: handlers[tag],
25793
+ context: services
25794
+ });
25795
+ });
25796
+ return makeUnsafe6(contextMap);
25797
+ });
25798
+ },
25799
+ prefix(prefix) {
25800
+ const requests = new Map;
25801
+ for (const rpc of this.requests.values()) {
25802
+ const newRpc = rpc.prefix(prefix);
25803
+ requests.set(newRpc._tag, newRpc);
25804
+ }
25805
+ return makeProto2({
25806
+ requests,
25807
+ annotations: this.annotations
25808
+ });
25809
+ },
25810
+ toLayer(build) {
25811
+ return effectContext(this.toHandlers(build));
25812
+ },
25813
+ of: identity,
25814
+ toLayerHandler(service, build) {
25815
+ const self = this;
25816
+ return effectContext(gen(function* () {
25817
+ const services = yield* context();
25818
+ const handler = isEffect2(build) ? yield* build : build;
25819
+ const contextMap = new Map;
25820
+ const rpc = self.requests.get(service);
25821
+ contextMap.set(rpc.key, {
25822
+ handler,
25823
+ context: services
25824
+ });
25825
+ return makeUnsafe6(contextMap);
25826
+ }));
25827
+ },
25828
+ accessHandler(service) {
25829
+ return contextWith((parentContext) => {
25830
+ const rpc = this.requests.get(service);
25831
+ const {
25832
+ handler,
25833
+ context
25834
+ } = getOrUndefinedUnsafe(parentContext, rpc.key);
25835
+ return succeed5((payload, options) => {
25836
+ options.rpc = rpc;
25837
+ const result = handler(payload, options);
25838
+ const effectOrStream = isWrapper(result) ? result.value : result;
25839
+ return isEffect2(effectOrStream) ? provide3(effectOrStream, context) : provideContext4(effectOrStream, context);
25840
+ });
25841
+ });
25842
+ },
25843
+ annotate(service, value) {
25844
+ return makeProto2({
25845
+ requests: this.requests,
25846
+ annotations: add(this.annotations, service, value)
25847
+ });
25848
+ },
25849
+ annotateRpcs(service, value) {
25850
+ return this.annotateRpcsMerge(make3(service, value));
25851
+ },
25852
+ annotateMerge(context) {
25853
+ return makeProto2({
25854
+ requests: this.requests,
25855
+ annotations: merge(this.annotations, context)
25856
+ });
25857
+ },
25858
+ annotateRpcsMerge(context) {
25859
+ const requests = new Map;
25860
+ for (const [tag, rpc] of this.requests) {
25861
+ requests.set(tag, rpc.annotateMerge(merge(context, rpc.annotations)));
25862
+ }
25863
+ return makeProto2({
25864
+ requests,
25865
+ annotations: this.annotations
25866
+ });
25867
+ }
25868
+ };
25869
+ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
25870
+ requests: options.requests,
25871
+ annotations: options.annotations
25872
+ });
25873
+ var make15 = (...rpcs) => makeProto2({
25874
+ requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
25875
+ annotations: empty()
25876
+ });
25877
+ // node_modules/.bun/effect@4.0.4/node_modules/effect/dist/rpc/RpcMiddleware.js
25878
+ var TypeId39 = "~effect/rpc/RpcMiddleware";
25879
+ var Service2 = () => (id, options) => {
25880
+ const limit = getStackTraceLimit();
25881
+ let creationError;
25882
+ if (limit !== 0) {
25883
+ setStackTraceLimit(2);
25884
+ creationError = new globalThis.Error;
25885
+ setStackTraceLimit(limit);
25886
+ }
25887
+ function ServiceClass() {}
25888
+ const ServiceClass_ = ServiceClass;
25889
+ Object.setPrototypeOf(ServiceClass, Object.getPrototypeOf(Service(id)));
25890
+ ServiceClass.key = id;
25891
+ Object.defineProperty(ServiceClass, "stack", {
25892
+ get() {
25893
+ return creationError?.stack;
25894
+ }
25895
+ });
25896
+ ServiceClass_[TypeId39] = TypeId39;
25897
+ ServiceClass_.error = options?.error ?? Never;
25898
+ ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
25899
+ return ServiceClass;
25900
+ };
25901
+ // packages/live/src/rpc/runner-group.ts
25902
+ var RunnerHeaders = { runnerId: "x-kitman-runner-id", protocolVersion: "x-kitman-rpc-protocol" };
25903
+ var RunnerRpcProtocolVersion = 1;
25904
+
25905
+ class RunnerRpcError extends TaggedError2()("RunnerRpcError", {
25906
+ code: String2,
25907
+ message: String2,
25908
+ status: Finite
25909
+ }) {
25910
+ }
25911
+
25912
+ class RunnerAuthentication extends Service2()("RunnerAuthentication", {
25913
+ error: RunnerRpcError
25914
+ }) {
25915
+ }
25916
+ var EventFilterValue2 = Union([String2, Finite, Boolean2, Null2]);
25917
+ var WorkAvailable = TaggedStruct("WorkAvailable", {});
25918
+ var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String2 });
25919
+ var Settled = TaggedStruct("Settled", { workUnitId: String2 });
25920
+ var Canceled = TaggedStruct("Canceled", { workUnitId: String2 });
25921
+ var RunSettled = TaggedStruct("RunSettled", { runId: String2 });
25922
+ var Steer = TaggedStruct("Steer", {
25923
+ workUnitId: String2,
25924
+ messageId: String2,
25925
+ text: String2
25926
+ });
25927
+ var SessionUpdated = TaggedStruct("SessionUpdated", { workUnitId: String2 });
25928
+ var RunnerSignal = Union([
25929
+ WorkAvailable,
25930
+ LeaseRevoked,
25931
+ Settled,
25932
+ Canceled,
25933
+ RunSettled,
25934
+ Steer,
25935
+ SessionUpdated
25936
+ ]);
25937
+ var ProgramLease = Struct({
25938
+ workUnitId: String2,
25939
+ leaseOwnerId: String2,
25940
+ runnerReplicaId: String2,
25941
+ leaseId: String2,
25942
+ attempt: Int,
25943
+ fencingToken: String2,
25944
+ capacitySlot: String2
25945
+ });
25946
+ var CheckpointSession = Struct({
25947
+ harness: String2,
25948
+ id: String2,
25949
+ name: String2,
25950
+ content: Uint8ArrayFromBase64
25951
+ });
25952
+ var StepCheckpoint = Struct({
25953
+ ref: optionalKey(String2),
25954
+ revision: optionalKey(String2),
25955
+ session: optionalKey(CheckpointSession)
25956
+ });
25957
+ var SuggestedVerification = Struct({
25958
+ name: String2,
25959
+ command: String2,
25960
+ workingDirectory: optional(String2)
25961
+ });
25962
+ var ProgramOutcome = Union([
25963
+ Struct({ status: Literal("completed"), output: Json }),
25964
+ Struct({ status: Literal("failed"), failureSummary: String2 })
25965
+ ]);
25966
+
25967
+ class RunnerRpcs extends make15(make14("Claim", {
25968
+ payload: WorkUnitClaimInput,
25969
+ success: WorkUnitClaimResult,
25970
+ error: RunnerRpcError
25971
+ }), make14("Heartbeat", {
25972
+ payload: WorkUnitHeartbeatInput,
25973
+ success: WorkUnitHeartbeatResult,
25974
+ error: RunnerRpcError
25975
+ }), make14("Complete", {
25976
+ payload: WorkUnitCompletion,
25977
+ error: RunnerRpcError
25978
+ }), make14("Release", {
25979
+ payload: WorkUnitReleaseInput,
25980
+ error: RunnerRpcError
25981
+ }), make14("RecordActivity", {
25982
+ payload: { lease: ProgramLease, name: String2, attempt: Int, exit: Json },
25983
+ error: RunnerRpcError
25984
+ }), make14("DeferredDone", {
25985
+ payload: { lease: ProgramLease, name: String2, exit: Json },
25986
+ error: RunnerRpcError
25987
+ }), make14("ScheduleClock", {
25988
+ payload: { lease: ProgramLease, name: String2, deferredName: String2, durationMillis: Int },
25989
+ error: RunnerRpcError
25990
+ }), make14("PutQuestion", {
25991
+ payload: {
25992
+ lease: ProgramLease,
25993
+ step: String2,
25994
+ prompt: String2,
25995
+ options: optional(ArraySchema(String2)),
25996
+ verification: optional(SuggestedVerification),
25997
+ deferredName: String2
25998
+ },
25999
+ success: Struct({ questionId: String2 }),
26000
+ error: RunnerRpcError
26001
+ }), make14("StartAgentStep", {
26002
+ payload: {
26003
+ lease: ProgramLease,
26004
+ step: String2,
26005
+ deferredName: String2,
26006
+ role: String2,
26007
+ agentId: String2,
26008
+ prompt: String2,
26009
+ outputSchema: Json,
26010
+ secrets: optionalKey(ArraySchema(String2))
26011
+ },
26012
+ success: Struct({ stepAttemptId: String2 }),
26013
+ error: RunnerRpcError
26014
+ }), make14("StartVerification", {
26015
+ payload: {
26016
+ lease: ProgramLease,
26017
+ step: String2,
26018
+ deferredName: String2,
26019
+ revision: optionalKey(String2),
26020
+ checks: optional(ArraySchema(String2))
26021
+ },
26022
+ success: Struct({ verificationId: String2 }),
26023
+ error: RunnerRpcError
26024
+ }), make14("KnownEvidence", {
26025
+ payload: { lease: ProgramLease, trees: ArraySchema(String2) },
26026
+ success: ArraySchema(Struct({ tree: String2, name: String2, command: String2 })),
26027
+ error: RunnerRpcError
26028
+ }), make14("AwaitEvent", {
26029
+ payload: {
26030
+ lease: ProgramLease,
26031
+ step: String2,
26032
+ deferredName: String2,
26033
+ event: String2,
26034
+ filter: optional(Record(String2, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
26035
+ timeoutMillis: Int
26036
+ },
26037
+ error: RunnerRpcError
26038
+ }), make14("AdmitChild", {
26039
+ payload: {
26040
+ lease: ProgramLease,
26041
+ step: String2,
26042
+ loop: String2,
26043
+ input: Json,
26044
+ deferredName: String2
26045
+ },
26046
+ success: Struct({ runId: String2 }),
26047
+ error: RunnerRpcError
26048
+ }), make14("StoreArtifact", {
26049
+ payload: {
26050
+ lease: ProgramLease,
26051
+ step: String2,
26052
+ kind: String2,
26053
+ title: String2,
26054
+ text: String2,
26055
+ data: optional(Json)
26056
+ },
26057
+ success: Struct({ artifactId: String2 }),
26058
+ error: RunnerRpcError
26059
+ }), make14("RecordNote", {
26060
+ payload: {
26061
+ lease: ProgramLease,
26062
+ step: String2,
26063
+ text: String2,
26064
+ artifactId: optional(String2)
26065
+ },
26066
+ error: RunnerRpcError
26067
+ }), make14("PerformHostEffect", {
26068
+ payload: {
26069
+ lease: ProgramLease,
26070
+ step: String2,
26071
+ effect: Union([
26072
+ Struct({ kind: Literal("post_comment"), changeRequestId: String2, body: String2 }),
26073
+ Struct({
26074
+ kind: Literal("change_request"),
26075
+ title: String2,
26076
+ body: String2,
26077
+ integration: optionalKey(String2)
26078
+ }),
26079
+ Struct({
26080
+ kind: Literal("write_back"),
26081
+ milestone: optionalKey(Literals(["started", "change_request_opened", "merged", "failed"])),
26082
+ changeRequestUrl: optionalKey(String2)
26083
+ })
26084
+ ])
26085
+ },
26086
+ success: UndefinedOr(Struct({ id: String2, number: String2, url: String2 })),
26087
+ error: RunnerRpcError
26088
+ }), make14("CreatePlanTasks", {
26089
+ payload: {
26090
+ lease: ProgramLease,
26091
+ tickets: ArraySchema(Struct({
26092
+ key: String2,
26093
+ title: String2,
26094
+ body: String2,
26095
+ acceptanceCriteria: ArraySchema(String2),
26096
+ blockedBy: ArraySchema(String2),
26097
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration"]))
26098
+ }))
26099
+ },
26100
+ success: ArraySchema(Struct({ key: String2, taskId: String2 })),
26101
+ error: RunnerRpcError
26102
+ }), make14("IntegrationBranch", {
26103
+ payload: { lease: ProgramLease, repoBindingId: optionalKey(String2) },
26104
+ success: Struct({ repoBindingId: String2, branch: String2, revision: String2 }),
26105
+ error: RunnerRpcError
26106
+ }), make14("MergeChangeRequest", {
26107
+ payload: { lease: ProgramLease, step: String2, changeRequestId: String2 },
26108
+ success: Union([
26109
+ Struct({ status: Literal("merged"), revision: String2 }),
26110
+ Struct({ status: Literal("conflict") })
26111
+ ]),
26112
+ error: RunnerRpcError
26113
+ }), make14("PublishRelease", {
26114
+ payload: {
26115
+ lease: ProgramLease,
26116
+ step: String2,
26117
+ tag: String2,
26118
+ revision: optionalKey(String2),
26119
+ title: String2,
26120
+ notes: String2
26121
+ },
26122
+ success: Struct({ tag: String2, revision: String2, url: String2 }),
26123
+ error: RunnerRpcError
26124
+ }), make14("ReportSteer", {
26125
+ payload: { workUnitId: String2, messageId: String2, delivered: Boolean2 },
26126
+ success: Void,
26127
+ error: RunnerRpcError
26128
+ }), make14("SaveCheckpoint", {
26129
+ payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
26130
+ success: Void,
26131
+ error: RunnerRpcError
26132
+ }), make14("ResumeCheckpoint", {
26133
+ payload: { lease: ProgramLease },
26134
+ success: UndefinedOr(StepCheckpoint),
26135
+ error: RunnerRpcError
26136
+ }), make14("SettledCheckpoints", {
26137
+ success: ArraySchema(Struct({
26138
+ stepAttemptId: String2,
26139
+ ref: optionalKey(String2),
26140
+ repoBinding: optionalKey(WorkUnitRepoBinding)
26141
+ })),
26142
+ error: RunnerRpcError
26143
+ }), make14("ForgetCheckpoints", {
26144
+ payload: { stepAttemptIds: ArraySchema(String2) },
26145
+ success: Void,
26146
+ error: RunnerRpcError
26147
+ }), make14("Bundle", {
26148
+ payload: { digest: String2 },
26149
+ success: Struct({ bundle: String2 }),
26150
+ error: RunnerRpcError
26151
+ }), make14("SettledRuns", {
26152
+ payload: { runIds: ArraySchema(String2) },
26153
+ success: ArraySchema(String2),
26154
+ error: RunnerRpcError
26155
+ }), make14("ProgramSecrets", {
26156
+ payload: { lease: ProgramLease },
26157
+ success: Record(String2, String2),
26158
+ error: RunnerRpcError
26159
+ }), make14("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make14("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError }), make14("Signals", {
26160
+ payload: { runnerReplicaId: String2 },
26161
+ success: RunnerSignal,
26162
+ error: RunnerRpcError,
26163
+ stream: true
26164
+ })).middleware(RunnerAuthentication) {
26165
+ }
25315
26166
 
25316
26167
  // apps/cli/src/mcp-auth.ts
25317
26168
  var DefaultSetupRequestTimeoutMs = 15000;
@@ -25432,7 +26283,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
25432
26283
  }
25433
26284
  var runCommand2 = (command, args, options = {}) => gen(function* () {
25434
26285
  const spawner = yield* ChildProcessSpawner;
25435
- const handle = yield* spawner.spawn(make15(command, args, {
26286
+ const handle = yield* spawner.spawn(make12(command, args, {
25436
26287
  stdin: "ignore",
25437
26288
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
25438
26289
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -25455,9 +26306,14 @@ var runCommand2 = (command, args, options = {}) => gen(function* () {
25455
26306
  var preloadVariables = new Set(["LD_PRELOAD", "DYLD_INSERT_LIBRARIES"]);
25456
26307
  var withoutPreloads = () => Object.fromEntries(Object.entries(process.env).filter(([name]) => !preloadVariables.has(name)));
25457
26308
  var shellOutputTailChars2 = 64 * 1024;
25458
- var runShell2 = (command, options) => gen(function* () {
26309
+ var runProcess2 = (argv, options) => gen(function* () {
25459
26310
  const spawner = yield* ChildProcessSpawner;
25460
- const handle = yield* spawner.spawn(make15("sh", ["-c", command], { stdin: "ignore", cwd: options.cwd, env: withoutPreloads() }));
26311
+ const [command, ...args] = argv;
26312
+ const handle = yield* spawner.spawn(make12(command, args, {
26313
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
26314
+ ...options.cwd === undefined ? undefined : { cwd: options.cwd },
26315
+ env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads(), ...options.env }
26316
+ }));
25461
26317
  const tail = runFold2(decodeText(handle.all), () => "", (kept, text) => kept.length + text.length <= shellOutputTailChars2 ? kept + text : (kept + text).slice(-shellOutputTailChars2));
25462
26318
  const [output, exitCode] = yield* all([tail, handle.exitCode], { concurrency: 2 });
25463
26319
  return { exitCode: Number(exitCode), output };
@@ -25465,6 +26321,73 @@ var runShell2 = (command, options) => gen(function* () {
25465
26321
  duration: options.timeout,
25466
26322
  orElse: () => succeed5({ exitCode: undefined, output: "Timed out" })
25467
26323
  }));
26324
+ var runShell2 = (command, options) => runProcess2(["sh", "-c", command], options);
26325
+
26326
+ // packages/agent-runtime/src/env.ts
26327
+ var optionalEnv = (name) => gen(function* () {
26328
+ const value = getOrUndefined(yield* option2(String3(name)))?.trim();
26329
+ return value === undefined || value.length === 0 ? undefined : value;
26330
+ }).pipe(orElseSucceed(() => {
26331
+ return;
26332
+ }));
26333
+
26334
+ // packages/agent-runtime/src/harness-detection.ts
26335
+ var detectable = [
26336
+ {
26337
+ id: "pi",
26338
+ name: "Pi",
26339
+ logins: [{ path: ".pi/agent/auth.json" }],
26340
+ keys: ["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GEMINI_API_KEY", "OPENROUTER_API_KEY"],
26341
+ login: "run `pi` and `/login`"
26342
+ },
26343
+ {
26344
+ id: "claude",
26345
+ name: "Claude Code",
26346
+ logins: [{ path: ".claude/.credentials.json" }, { path: ".claude.json", contains: '"oauthAccount"' }],
26347
+ keys: ["ANTHROPIC_API_KEY", "CLAUDE_CODE_OAUTH_TOKEN"],
26348
+ login: "run `claude` and log in"
26349
+ },
26350
+ {
26351
+ id: "codex",
26352
+ name: "Codex",
26353
+ logins: [{ path: ".codex/auth.json" }],
26354
+ keys: ["OPENAI_API_KEY", "CODEX_API_KEY"],
26355
+ login: "run `codex login`"
26356
+ }
26357
+ ];
26358
+ var detectHarnesses2 = gen(function* () {
26359
+ const fs = yield* FileSystem;
26360
+ const path = yield* Path;
26361
+ const home = (yield* optionalEnv("HOME")) ?? "/";
26362
+ const searchPath = ((yield* optionalEnv("PATH")) ?? "").split(":").filter(Boolean);
26363
+ const exists = (file) => fs.exists(file).pipe(orElseSucceed(() => false));
26364
+ const any = (items, test) => map3(findFirst(items, test), isSome);
26365
+ const loginFound = (login) => gen(function* () {
26366
+ const file = path.join(home, login.path);
26367
+ if (!(yield* exists(file)))
26368
+ return false;
26369
+ if (login.contains === undefined)
26370
+ return true;
26371
+ return (yield* fs.readFileString(file).pipe(orElseSucceed(() => ""))).includes(login.contains);
26372
+ });
26373
+ const harnesses = [];
26374
+ const unavailable = [];
26375
+ for (const harness of detectable) {
26376
+ if (!(yield* any(searchPath, (dir) => exists(path.join(dir, harness.id))))) {
26377
+ unavailable.push({ harness: harness.id, missing: [`\`${harness.id}\` is not installed`] });
26378
+ continue;
26379
+ }
26380
+ const loggedIn = (yield* any(harness.keys, (key) => map3(optionalEnv(key), Boolean))) || (yield* any(harness.logins, loginFound));
26381
+ if (loggedIn)
26382
+ harnesses.push(harness.id);
26383
+ else
26384
+ unavailable.push({
26385
+ harness: harness.id,
26386
+ missing: [`${harness.name} is not logged in: ${harness.login}, or set ${harness.keys[0]}`]
26387
+ });
26388
+ }
26389
+ return { harnesses, unavailable };
26390
+ });
25468
26391
 
25469
26392
  // packages/agent-runtime/src/native-extensions.ts
25470
26393
  var herdrExecutionExtension2 = {
@@ -25477,8 +26400,8 @@ var herdrExecutionExtension2 = {
25477
26400
  var herdrNativeExtensionIds2 = [nativeExtensionIdentity(herdrExecutionExtension2)];
25478
26401
 
25479
26402
  // packages/agent-runtime/src/herdr-capabilities.ts
25480
- function herdrPiRunnerCapabilitiesForRepoBinding2(repoBinding, input = {}) {
25481
- const capabilities = herdrPiRunnerCapabilities2(input);
26403
+ function herdrRunnerCapabilitiesForRepoBinding2(repoBinding, input) {
26404
+ const capabilities = herdrRunnerCapabilities2(input);
25482
26405
  const sshAgentAvailable = input.sshAgentAvailable === true;
25483
26406
  const credentialProviderTypes = [
25484
26407
  ...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
@@ -25501,13 +26424,17 @@ function herdrPiRunnerCapabilitiesForRepoBinding2(repoBinding, input = {}) {
25501
26424
  ]
25502
26425
  };
25503
26426
  }
25504
- function herdrPiRunnerCapabilities2(input = {}) {
26427
+ function herdrRunnerCapabilities2(input) {
25505
26428
  const bunVersion = process.versions.bun;
25506
26429
  const sandboxBackends = (input.sandbox?.backends ?? []).filter((backend) => backend !== "host");
25507
26430
  const unavailable = input.sandbox?.unavailable ?? [];
26431
+ const { harnesses } = input.harnesses;
26432
+ const defaultHarness = runnerDefaultHarness(harnesses, undefined);
25508
26433
  return {
25509
- harnesses: ["pi"],
25510
- configWriters: input.fullAccess ? ["pi"] : [],
26434
+ harnesses: [...harnesses],
26435
+ ...defaultHarness === undefined ? undefined : { defaultHarness },
26436
+ ...input.harnesses.unavailable.length === 0 ? undefined : { harnessUnavailable: [...input.harnesses.unavailable] },
26437
+ configWriters: input.fullAccess ? harnesses.map((harness) => harness === "claude" ? "claude-code" : harness) : [],
25511
26438
  mcpServers: [],
25512
26439
  skillSources: [],
25513
26440
  providerAuthRefs: [],
@@ -25520,7 +26447,7 @@ function herdrPiRunnerCapabilities2(input = {}) {
25520
26447
  secretProviderTypes: [],
25521
26448
  runs: {
25522
26449
  supported: true,
25523
- stepKinds: input.shared === true && sandboxBackends.length === 0 ? [] : ["agent"],
26450
+ stepKinds: harnesses.length === 0 || input.shared === true && sandboxBackends.length === 0 ? [] : ["agent"],
25524
26451
  executionBackends: ["host"],
25525
26452
  sandboxBackends,
25526
26453
  providerActions: input.fullAccess ? { comment: "allowed", requestChanges: "allowed", approve: "allowed", merge: "disabled" } : { comment: "disabled", requestChanges: "disabled", approve: "disabled", merge: "disabled" },
@@ -25530,8 +26457,8 @@ function herdrPiRunnerCapabilities2(input = {}) {
25530
26457
  };
25531
26458
  }
25532
26459
  function assertHerdrRunnerCapability2(capabilities) {
25533
- if (!capabilities.harnesses.includes("pi") || capabilities.runs?.supported !== true)
26460
+ if (capabilities.runs?.supported !== true)
25534
26461
  throw new Error("herdr_runner_capability_mismatch");
25535
26462
  }
25536
26463
 
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 };
26464
+ 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, 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, makeUnsafe3, make7, make8, bounded, offerUnsafe, offerAll, failCause3, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe4, fromTransform, mapDone, isSink, fromChannel, drain, make9, get2, isStream, fromChannel2, empty2, make10, fromQueue, unwrap, map4, merge2, filter, transduce, decodeText, splitLines, run, runHead, runForEach, mkString, FileSystem, Path, makeUnsafe5, formatIso, encode, encode2, transform, encodeBase64Url, decodeBase64UrlString, ExitCode, ProcessId, makeHandle, make11, ChildProcessSpawner, make12, 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, make13, get3, 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, make14, exitSchema, make15, Service2, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, RunnerRpcs, setupMcpAgentCredential, generateAgentKeyPair, CommandFailed2, runCommand2, shellOutputTailChars2, runProcess2, runShell2, optionalEnv, detectHarnesses2, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2 };