@kitman-sh/cli 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-bmkc5r0p.js → chunk-0r9tp5pz.js} +4 -4
  2. package/dist/{chunk-zpp4jg4a.js → chunk-1jabs81x.js} +101 -59
  3. package/dist/{chunk-9j4cnz4j.js → chunk-24j1cmsm.js} +38 -32
  4. package/dist/{chunk-5129s1vg.js → chunk-39pdxhcv.js} +3 -3
  5. package/dist/{chunk-vth8h56e.js → chunk-3csj1ve1.js} +4 -4
  6. package/dist/{chunk-c4mf5mgt.js → chunk-4xez238w.js} +2 -2
  7. package/dist/{chunk-w8vxzc7w.js → chunk-80vwvv5x.js} +45 -45
  8. package/dist/{chunk-h7zb6d3z.js → chunk-avhqm9p0.js} +183 -40
  9. package/dist/{chunk-y0y2gg8d.js → chunk-e024f8af.js} +2 -2
  10. package/dist/{chunk-w34sq09e.js → chunk-ffq8vvvx.js} +5 -5
  11. package/dist/{chunk-5d2sdzbz.js → chunk-ge9qjp6s.js} +7 -7
  12. package/dist/{chunk-84fcym2g.js → chunk-gwz39037.js} +1 -1
  13. package/dist/{chunk-9avbsbvk.js → chunk-h6kd80nr.js} +6 -1
  14. package/dist/{chunk-t2zzamex.js → chunk-hza25m2e.js} +34 -34
  15. package/dist/{chunk-hq2xzj6f.js → chunk-jzfy127y.js} +4 -4
  16. package/dist/{chunk-wb3wsm86.js → chunk-m9x7feh0.js} +7 -7
  17. package/dist/{chunk-gbr4s7nk.js → chunk-q4ch3t9q.js} +6 -6
  18. package/dist/{chunk-r9tzwrnb.js → chunk-qqmxhk9w.js} +14 -60
  19. package/dist/{chunk-f2ycw5bp.js → chunk-ryxff0xk.js} +189 -340
  20. package/dist/{chunk-bbf0jzsc.js → chunk-scdr623z.js} +1 -1
  21. package/dist/{chunk-gmdd1a74.js → chunk-t9chwen8.js} +3 -3
  22. package/dist/{chunk-bscvbpa1.js → chunk-v86jpzpr.js} +9 -9
  23. package/dist/{chunk-ctpgfdzf.js → chunk-vfw3xn1e.js} +3 -3
  24. package/dist/{chunk-099ybrqz.js → chunk-yfag1eey.js} +20 -20
  25. package/dist/{chunk-4c6w8sb7.js → chunk-z7c2ndfg.js} +11 -11
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -62,11 +62,9 @@ import {
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -86,12 +84,12 @@ import {
86
84
  DisablePropagation,
87
85
  sync,
88
86
  map7,
87
+ ClockRef,
88
+ currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
- void_2,
93
92
  isSuccess2,
94
- isFailure2,
95
93
  makeUnsafe5,
96
94
  make15,
97
95
  _await,
@@ -101,12 +99,8 @@ import {
101
99
  succeed4,
102
100
  doneUnsafe,
103
101
  TracerTimingEnabled,
104
- Scope,
105
- makeUnsafe6,
106
102
  provide,
107
- addFinalizerExit,
108
103
  addFinalizer,
109
- close,
110
104
  succeed5,
111
105
  effect,
112
106
  effectContext,
@@ -158,7 +152,6 @@ import {
158
152
  tapCause,
159
153
  retry,
160
154
  ignore,
161
- ignoreCause,
162
155
  orElseSucceed,
163
156
  timeout,
164
157
  timeoutOrElse,
@@ -170,7 +163,6 @@ import {
170
163
  context,
171
164
  contextWith,
172
165
  provide3,
173
- provideContext2,
174
166
  serviceOption,
175
167
  updateContext,
176
168
  provideService,
@@ -181,7 +173,6 @@ import {
181
173
  addFinalizer2,
182
174
  ensuring2,
183
175
  onError,
184
- onExit,
185
176
  cached,
186
177
  interrupt3,
187
178
  interruptible,
@@ -193,7 +184,6 @@ import {
193
184
  withParentSpan,
194
185
  forkScoped,
195
186
  runFork,
196
- runForkWith,
197
187
  runPromise,
198
188
  runPromiseWith,
199
189
  runSync,
@@ -204,6 +194,9 @@ import {
204
194
  logError,
205
195
  effectify,
206
196
  decode,
197
+ isRedacted,
198
+ make16,
199
+ value,
207
200
  defaultParseOptions,
208
201
  omit,
209
202
  map9,
@@ -213,7 +206,7 @@ import {
213
206
  decodeEffect,
214
207
  decodeUnknownOption,
215
208
  decodeOption,
216
- make16,
209
+ make17,
217
210
  isSchema,
218
211
  optionalKey,
219
212
  optional,
@@ -273,23 +266,17 @@ import {
273
266
  decodeJsonStringOption,
274
267
  encodeJsonStringSync,
275
268
  encodePrettyJsonString
276
- } from "./chunk-zpp4jg4a.js";
269
+ } from "./chunk-1jabs81x.js";
277
270
  import {
278
271
  map,
279
272
  makeEquivalence,
280
- Clock,
281
- currentTimeMillis,
282
273
  bytes,
283
- join,
284
- interrupt,
285
- getCurrent,
286
- runIn,
287
274
  BadArgument,
288
275
  systemError,
289
276
  badArgument,
290
277
  makeUnsafe2,
278
+ make7,
291
279
  make8,
292
- make9,
293
280
  sliding,
294
281
  unbounded2,
295
282
  offer,
@@ -305,6 +292,8 @@ import {
305
292
  isSink,
306
293
  fromChannel,
307
294
  drain,
295
+ make9,
296
+ get3,
308
297
  isStream,
309
298
  fromChannel2,
310
299
  callback,
@@ -344,21 +333,7 @@ import {
344
333
  String2,
345
334
  optionalEnv,
346
335
  harnessesUnsupportedInSrt2
347
- } from "./chunk-h7zb6d3z.js";
348
- import {
349
- isRedacted,
350
- make,
351
- value,
352
- ExitCode,
353
- ProcessId,
354
- makeHandle,
355
- make2,
356
- ChildProcessSpawner,
357
- display,
358
- make3,
359
- parseFdName,
360
- fdName
361
- } from "./chunk-r9tzwrnb.js";
336
+ } from "./chunk-avhqm9p0.js";
362
337
  import {
363
338
  isDateTime,
364
339
  Numeric,
@@ -371,10 +346,26 @@ import {
371
346
  SecretScope,
372
347
  SecretHosts,
373
348
  isSecretReference
374
- } from "./chunk-9avbsbvk.js";
349
+ } from "./chunk-h6kd80nr.js";
350
+ import {
351
+ ExitCode,
352
+ ProcessId,
353
+ makeHandle,
354
+ make,
355
+ ChildProcessSpawner,
356
+ display,
357
+ make2,
358
+ parseFdName,
359
+ fdName
360
+ } from "./chunk-qqmxhk9w.js";
361
+
375
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
376
363
  var makeEquivalence3 = Tuple;
377
364
 
365
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
366
+ var Clock = ClockRef;
367
+ var currentTimeMillis = currentTimeMillis2;
368
+
378
369
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
379
370
  var TypeId = "~effect/DateTime";
380
371
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -509,7 +500,7 @@ var fromDateUnsafe = (date) => {
509
500
  }
510
501
  return makeUtc(epochMillis);
511
502
  };
512
- var makeUnsafe7 = (input) => {
503
+ var makeUnsafe6 = (input) => {
513
504
  if (isDateTime2(input)) {
514
505
  return input;
515
506
  } else if (input instanceof Date) {
@@ -529,7 +520,7 @@ var makeUnsafe7 = (input) => {
529
520
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
530
521
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
531
522
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
532
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
523
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
533
524
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
534
525
  var nowUnsafe = () => makeUtc(Date.now());
535
526
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -636,7 +627,7 @@ class Metric$ {
636
627
  }
637
628
  hook(context) {
638
629
  const key = this.key(context);
639
- const registry = get3(context, MetricRegistry);
630
+ const registry = get4(context, MetricRegistry);
640
631
  let metadata = registry.get(key);
641
632
  if (isUndefined(metadata)) {
642
633
  metadata = this.metadata(this.createHooks());
@@ -645,11 +636,11 @@ class Metric$ {
645
636
  return metadata.hooks;
646
637
  }
647
638
  removeUnsafe(context) {
648
- get3(context, MetricRegistry).delete(this.key(context));
639
+ get4(context, MetricRegistry).delete(this.key(context));
649
640
  }
650
641
  registerUnsafe(context, hooks) {
651
642
  const key = this.key(context);
652
- const registry = get3(context, MetricRegistry);
643
+ const registry = get4(context, MetricRegistry);
653
644
  const metadata = this.metadata({
654
645
  get: hooks.get,
655
646
  update: constVoid,
@@ -665,7 +656,7 @@ class Metric$ {
665
656
  };
666
657
  }
667
658
  key(context) {
668
- const extraAttributes = get3(context, CurrentMetricAttributes);
659
+ const extraAttributes = get4(context, CurrentMetricAttributes);
669
660
  if (extraAttributes !== this.#extraAttributes) {
670
661
  this.#extraAttributes = extraAttributes;
671
662
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -917,151 +908,9 @@ var toNumber = (b) => {
917
908
  return some(Number(b));
918
909
  };
919
910
 
920
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
921
- var TypeId3 = "~effect/RcRef";
922
- var stateEmpty = {
923
- _tag: "Empty"
924
- };
925
- var stateClosed = {
926
- _tag: "Closed"
927
- };
928
- var variance = {
929
- _A: identity,
930
- _E: identity
931
- };
932
-
933
- class RcRefImpl {
934
- [TypeId3] = variance;
935
- pipe() {
936
- return pipeArguments(this, arguments);
937
- }
938
- state = stateEmpty;
939
- acquire;
940
- context;
941
- scope;
942
- idleTimeToLive;
943
- constructor(acquire, context, scope, idleTimeToLive) {
944
- this.acquire = acquire;
945
- this.context = context;
946
- this.scope = scope;
947
- this.idleTimeToLive = idleTimeToLive;
948
- }
949
- }
950
- var make17 = (options) => withFiber2((fiber) => {
951
- const context = fiber.context;
952
- const scope = get3(context, Scope);
953
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
954
- return as(addFinalizerExit(scope, () => {
955
- const state = ref.state;
956
- ref.state = stateClosed;
957
- if (state._tag === "Acquired")
958
- return close(state.scope, void_2);
959
- if (state._tag === "Acquiring")
960
- return interrupt(state.fiber);
961
- return void_3;
962
- }), ref);
963
- });
964
- var getState = (self, restore) => {
965
- switch (self.state._tag) {
966
- case "Closed": {
967
- return interrupt3;
968
- }
969
- case "Acquired": {
970
- const state = self.state;
971
- state.refCount++;
972
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
973
- }
974
- case "Acquiring": {
975
- const state = self.state;
976
- state.awaiters++;
977
- return awaitAcquiring(self, state, restore);
978
- }
979
- case "Empty": {
980
- const acquiring = {
981
- _tag: "Acquiring",
982
- fiber: undefined,
983
- awaiters: 1,
984
- acquired: undefined
985
- };
986
- self.state = acquiring;
987
- const scope = makeUnsafe6();
988
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
989
- if (self.state !== acquiring) {
990
- return interrupt3;
991
- }
992
- const state = {
993
- _tag: "Acquired",
994
- value,
995
- scope,
996
- fiber: undefined,
997
- refCount: acquiring.awaiters,
998
- invalidated: false
999
- };
1000
- self.state = state;
1001
- acquiring.acquired = state;
1002
- return succeed6(state);
1003
- }), onExit((exit) => {
1004
- if (isSuccess2(exit))
1005
- return void_3;
1006
- if (self.state === acquiring)
1007
- self.state = stateEmpty;
1008
- return close(scope, exit);
1009
- }));
1010
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1011
- return awaitAcquiring(self, acquiring, restore);
1012
- }
1013
- }
1014
- };
1015
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1016
- const acquired = acquiring.acquired;
1017
- if (acquired !== undefined) {
1018
- return isFailure2(exit) ? release(self, acquired) : void_3;
1019
- }
1020
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1021
- return void_3;
1022
- self.state = stateEmpty;
1023
- return interrupt(acquiring.fiber);
1024
- });
1025
- var get4 = (self_) => {
1026
- const self = self_;
1027
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1028
- };
1029
- var release = (self, state) => {
1030
- state.refCount--;
1031
- if (state.refCount > 0) {
1032
- return void_3;
1033
- }
1034
- const idleTimeToLive = self.idleTimeToLive;
1035
- if (idleTimeToLive === undefined || state.invalidated) {
1036
- if (self.state === state) {
1037
- self.state = stateEmpty;
1038
- }
1039
- return close(state.scope, void_2);
1040
- } else if (!isFinite(idleTimeToLive)) {
1041
- return void_3;
1042
- }
1043
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1044
- if (self.state === state && state.refCount === 0) {
1045
- self.state = stateEmpty;
1046
- return ignoreCause(close(state.scope, void_2), {
1047
- log: "Unhandled",
1048
- message: "Unhandled error in RcRef finalizer"
1049
- });
1050
- }
1051
- return void_3;
1052
- })).pipe(ensuring2(sync2(() => {
1053
- state.fiber = undefined;
1054
- })), runForkWith(self.context), runIn(self.scope));
1055
- return void_3;
1056
- };
1057
-
1058
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1059
- var make18 = make17;
1060
- var get5 = get4;
1061
-
1062
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1063
- var makeUnsafe = makeUnsafe7;
1064
- var make19 = make4;
912
+ var makeUnsafe = makeUnsafe6;
913
+ var make18 = make3;
1065
914
  var now2 = now;
1066
915
  var nowUnsafe2 = nowUnsafe;
1067
916
  var toDateUtc2 = toDateUtc;
@@ -1276,7 +1125,7 @@ var readableToPullUnsafe = (options) => {
1276
1125
  const readable = options.readable;
1277
1126
  const chunkSize = options.chunkSize ?? 4096;
1278
1127
  const closeOnDone = options.closeOnDone ?? true;
1279
- const exit = options.exit ?? make8(undefined);
1128
+ const exit = options.exit ?? make7(undefined);
1280
1129
  const latch = options.latch ?? makeUnsafe2(false);
1281
1130
  function onReadable() {
1282
1131
  latch.openUnsafe();
@@ -1380,7 +1229,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1380
1229
  windowsHide: true
1381
1230
  }, onExit);
1382
1231
  };
1383
- var make20 = /* @__PURE__ */ gen(function* () {
1232
+ var make19 = /* @__PURE__ */ gen(function* () {
1384
1233
  const fs = yield* FileSystem;
1385
1234
  const path = yield* Path;
1386
1235
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1840,7 +1689,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1840
1689
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1841
1690
  const toOption = options.to ?? "stdin";
1842
1691
  if (toOption === "stdin") {
1843
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1692
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1844
1693
  ...command.options,
1845
1694
  stdin: {
1846
1695
  ...stdinConfig,
@@ -1860,7 +1709,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1860
1709
  type: "input",
1861
1710
  stream: sourceStream
1862
1711
  };
1863
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1712
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1864
1713
  ...command.options,
1865
1714
  additionalFds: {
1866
1715
  ...existingFds,
@@ -1868,7 +1717,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1868
1717
  }
1869
1718
  })));
1870
1719
  } else {
1871
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1720
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1872
1721
  ...command.options,
1873
1722
  stdin: {
1874
1723
  ...stdinConfig,
@@ -1907,9 +1756,9 @@ var make20 = /* @__PURE__ */ gen(function* () {
1907
1756
  }
1908
1757
  }
1909
1758
  });
1910
- return make2(spawnCommand);
1759
+ return make(spawnCommand);
1911
1760
  });
1912
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1761
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1913
1762
  var flattenCommand = (command) => {
1914
1763
  const commands = [];
1915
1764
  const pipeOptions = [];
@@ -2470,10 +2319,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2470
2319
  var layer2 = layer7;
2471
2320
 
2472
2321
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2473
- var TypeId4 = "~effect/Stdio";
2474
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2475
- var make21 = (options) => ({
2476
- [TypeId4]: TypeId4,
2322
+ var TypeId3 = "~effect/Stdio";
2323
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
+ var make20 = (options) => ({
2325
+ [TypeId3]: TypeId3,
2477
2326
  stdinIsTerminal: succeed6(false),
2478
2327
  stdoutIsTerminal: succeed6(false),
2479
2328
  stderrIsTerminal: succeed6(false),
@@ -2481,7 +2330,7 @@ var make21 = (options) => ({
2481
2330
  });
2482
2331
 
2483
2332
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2484
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2333
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2485
2334
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2486
2335
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2487
2336
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2681,7 +2530,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2681
2530
  const uuid = bytes(randomBytes(16));
2682
2531
  return format === "bytes" ? uuid : stringify(uuid);
2683
2532
  };
2684
- var make22 = (randomBytes) => {
2533
+ var make21 = (randomBytes) => {
2685
2534
  const randomBytesChecked = (size) => {
2686
2535
  checkSize(size);
2687
2536
  return randomBytes(size);
@@ -2715,13 +2564,13 @@ var fillRandom = (crypto2, size) => {
2715
2564
  }
2716
2565
  return bytes;
2717
2566
  };
2718
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2567
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2719
2568
 
2720
2569
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2721
- var TypeId5 = "~effect/http/Cookies";
2570
+ var TypeId4 = "~effect/http/Cookies";
2722
2571
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2723
2572
  var Proto2 = {
2724
- [TypeId5]: TypeId5,
2573
+ [TypeId4]: TypeId4,
2725
2574
  ...BaseProto,
2726
2575
  toJSON() {
2727
2576
  return {
@@ -2900,14 +2749,14 @@ var tryDecodeURIComponent = (str) => {
2900
2749
  };
2901
2750
 
2902
2751
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2903
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2752
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2904
2753
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2905
- [TypeId6]: {
2906
- value: TypeId6
2754
+ [TypeId5]: {
2755
+ value: TypeId5
2907
2756
  },
2908
2757
  [symbolRedactable]: {
2909
2758
  value(context) {
2910
- return redact2(this, get3(context, CurrentRedactedNames));
2759
+ return redact2(this, get4(context, CurrentRedactedNames));
2911
2760
  }
2912
2761
  },
2913
2762
  toJSON: {
@@ -2932,7 +2781,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2932
2781
  value: BaseProto[NodeInspectSymbol]
2933
2782
  }
2934
2783
  });
2935
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2784
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2936
2785
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2937
2786
  var empty = /* @__PURE__ */ Object.create(Proto3);
2938
2787
  var fromInput = (input) => {
@@ -2957,21 +2806,21 @@ var fromInput = (input) => {
2957
2806
  };
2958
2807
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2959
2808
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2960
- const out = make23(self);
2809
+ const out = make22(self);
2961
2810
  out[key.toLowerCase()] = value;
2962
2811
  return out;
2963
2812
  });
2964
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2813
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2965
2814
  ...self,
2966
2815
  ...fromInput(headers)
2967
2816
  }));
2968
2817
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2969
- const out = make23(self);
2818
+ const out = make22(self);
2970
2819
  Object.assign(out, headers);
2971
2820
  return out;
2972
2821
  });
2973
2822
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2974
- const out = make23(self);
2823
+ const out = make22(self);
2975
2824
  delete out[key.toLowerCase()];
2976
2825
  return out;
2977
2826
  });
@@ -2983,12 +2832,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2983
2832
  if (typeof key === "string") {
2984
2833
  const k = key.toLowerCase();
2985
2834
  if (k in self) {
2986
- out[k] = make(self[k]);
2835
+ out[k] = make16(self[k]);
2987
2836
  }
2988
2837
  } else {
2989
2838
  for (const name in self) {
2990
2839
  if (name.search(key) !== -1) {
2991
- out[name] = make(self[name]);
2840
+ out[name] = make16(self[name]);
2992
2841
  }
2993
2842
  }
2994
2843
  }
@@ -3028,18 +2877,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3028
2877
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3029
2878
 
3030
2879
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3031
- var TypeId7 = "~effect/http/UrlParams";
3032
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
+ var TypeId6 = "~effect/http/UrlParams";
2881
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3033
2882
  var Proto4 = {
3034
2883
  ...PipeInspectableProto,
3035
- [TypeId7]: TypeId7,
2884
+ [TypeId6]: TypeId6,
3036
2885
  [Symbol.iterator]() {
3037
2886
  return this.params[Symbol.iterator]();
3038
2887
  },
3039
2888
  [symbolRedactable](context) {
3040
2889
  return {
3041
2890
  _id: "UrlParams",
3042
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2891
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3043
2892
  };
3044
2893
  },
3045
2894
  toJSON() {
@@ -3052,7 +2901,7 @@ var Proto4 = {
3052
2901
  return array(this.params.flat());
3053
2902
  }
3054
2903
  };
3055
- var make24 = (params) => {
2904
+ var make23 = (params) => {
3056
2905
  const self = Object.create(Proto4);
3057
2906
  self.params = params;
3058
2907
  return self;
@@ -3071,7 +2920,7 @@ var fromInput2 = (input) => {
3071
2920
  out.push(parsed[i]);
3072
2921
  }
3073
2922
  }
3074
- return make24(out);
2923
+ return make23(out);
3075
2924
  };
3076
2925
  var fromInputNested = (input) => {
3077
2926
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3097,7 +2946,7 @@ var fromInputNested = (input) => {
3097
2946
  var coerce = (value) => isRedacted(value) ? value : String(value);
3098
2947
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
3099
2948
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3100
- var empty4 = /* @__PURE__ */ make24([]);
2949
+ var empty4 = /* @__PURE__ */ make23([]);
3101
2950
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3102
2951
  const params = fromInput2(input).params.slice();
3103
2952
  const keys = new Set;
@@ -3109,12 +2958,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3109
2958
  continue;
3110
2959
  params.push(self.params[i]);
3111
2960
  }
3112
- return make24(params);
2961
+ return make23(params);
3113
2962
  });
3114
2963
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3115
2964
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
3116
2965
  const patterns = Array.isArray(key) ? key : [key];
3117
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2966
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3118
2967
  });
3119
2968
  var isRedactedName2 = isRedactedName;
3120
2969
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3165,13 +3014,13 @@ var decodeQueryKey = (key) => {
3165
3014
  return key;
3166
3015
  }
3167
3016
  };
3168
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3017
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3169
3018
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3170
3019
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3171
3020
  });
3172
3021
 
3173
3022
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3174
- var TypeId8 = "~effect/Terminal";
3023
+ var TypeId7 = "~effect/Terminal";
3175
3024
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3176
3025
 
3177
3026
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3180,17 +3029,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3180
3029
  [QuitErrorTypeId] = QuitErrorTypeId;
3181
3030
  }
3182
3031
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3183
- var make25 = (impl) => Terminal.of({
3032
+ var make24 = (impl) => Terminal.of({
3184
3033
  ...impl,
3185
- [TypeId8]: TypeId8
3034
+ [TypeId7]: TypeId7
3186
3035
  });
3187
3036
 
3188
3037
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3189
3038
  import * as readline from "readline";
3190
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3039
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3191
3040
  const stdin = process.stdin;
3192
3041
  const stdout = process.stdout;
3193
- const lines = yield* make9();
3042
+ const lines = yield* make8();
3194
3043
  let inputEnded = stdin.readableEnded;
3195
3044
  let readlineActive = false;
3196
3045
  const onStdinEnd = () => {
@@ -3201,7 +3050,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3201
3050
  };
3202
3051
  stdin.once("end", onStdinEnd);
3203
3052
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3204
- const rlRef = yield* make18({
3053
+ const rlRef = yield* make9({
3205
3054
  acquire: acquireRelease(sync2(() => {
3206
3055
  const rl = readline.createInterface({
3207
3056
  input: stdin,
@@ -3240,7 +3089,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3240
3089
  if (stdin.isTTY)
3241
3090
  stdin.setRawMode(enabled);
3242
3091
  });
3243
- const rawModeRef = yield* make18({
3092
+ const rawModeRef = yield* make9({
3244
3093
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3245
3094
  idleTimeToLive: "10 millis"
3246
3095
  });
@@ -3261,7 +3110,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3261
3110
  return queue;
3262
3111
  });
3263
3112
  const readInput = gen(function* () {
3264
- const queue = yield* make9();
3113
+ const queue = yield* make8();
3265
3114
  const handleKeypress = (s, k) => {
3266
3115
  const userInput = {
3267
3116
  input: fromUndefinedOr(s),
@@ -3291,14 +3140,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3291
3140
  if (inputEnded) {
3292
3141
  handleEnd();
3293
3142
  } else {
3294
- yield* get5(rlRef);
3295
- yield* get5(rawModeRef);
3143
+ yield* get3(rlRef);
3144
+ yield* get3(rawModeRef);
3296
3145
  stdin.once("end", handleEnd);
3297
3146
  }
3298
3147
  return queue;
3299
3148
  });
3300
3149
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3301
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3150
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3302
3151
  onSome: succeed6
3303
3152
  })), mapError2(() => new QuitError({}))));
3304
3153
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3309,7 +3158,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3309
3158
  cause: err
3310
3159
  }))));
3311
3160
  }));
3312
- return make25({
3161
+ return make24({
3313
3162
  columns,
3314
3163
  rows,
3315
3164
  size,
@@ -3318,7 +3167,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3318
3167
  display
3319
3168
  });
3320
3169
  });
3321
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3170
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3322
3171
  function defaultShouldQuit(input) {
3323
3172
  const key = input.key;
3324
3173
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3345,7 +3194,7 @@ function toDate(input) {
3345
3194
  return toDateUtc2(makeUnsafe(input));
3346
3195
  }
3347
3196
  function parseDate(input) {
3348
- return getOrUndefined(map4(make19(input), toDateUtc2));
3197
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3349
3198
  }
3350
3199
  function toIso(input) {
3351
3200
  return formatIso(makeUnsafe(input));
@@ -7662,7 +7511,7 @@ var RunnerCapabilities = Struct({
7662
7511
  resolve: optionalKey(Boolean2),
7663
7512
  deploy: optionalKey(Boolean2)
7664
7513
  });
7665
- var MaxRunnerConcurrency = 4;
7514
+ var MaxRunnerConcurrency = 32;
7666
7515
  var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
7667
7516
  var RunnerSettings = Struct({
7668
7517
  concurrency: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(MaxRunnerConcurrency)),
@@ -9980,11 +9829,11 @@ var TranscriptSearchResult = Struct({
9980
9829
  total: Int
9981
9830
  });
9982
9831
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9983
- var TypeId9 = "~effect/http/HttpBody";
9832
+ var TypeId8 = "~effect/http/HttpBody";
9984
9833
  class Proto5 {
9985
- [TypeId9];
9834
+ [TypeId8];
9986
9835
  constructor() {
9987
- this[TypeId9] = TypeId9;
9836
+ this[TypeId8] = TypeId8;
9988
9837
  }
9989
9838
  [NodeInspectSymbol]() {
9990
9839
  return this.toJSON();
@@ -10075,7 +9924,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10075
9924
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10076
9925
 
10077
9926
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10078
- var TypeId10 = "~effect/http/HttpClientError";
9927
+ var TypeId9 = "~effect/http/HttpClientError";
10079
9928
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10080
9929
  constructor(props) {
10081
9930
  if ("cause" in props.reason) {
@@ -10087,7 +9936,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10087
9936
  super(props);
10088
9937
  }
10089
9938
  }
10090
- [TypeId10] = TypeId10;
9939
+ [TypeId9] = TypeId9;
10091
9940
  get request() {
10092
9941
  return this.reason.request;
10093
9942
  }
@@ -10191,7 +10040,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
10191
10040
  }
10192
10041
  }
10193
10042
 
10194
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
10043
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10195
10044
  _tag: /* @__PURE__ */ tag("HttpError"),
10196
10045
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
10197
10046
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10224,7 +10073,7 @@ var updateContentLength = (headers, body) => {
10224
10073
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10225
10074
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10226
10075
  }
10227
- var make27 = (url, params, hash) => try_({
10076
+ var make26 = (url, params, hash) => try_({
10228
10077
  try: () => {
10229
10078
  const urlInstance = new URL(url, baseUrl());
10230
10079
  for (let i = 0;i < params.params.length; i++) {
@@ -10255,10 +10104,10 @@ var baseUrl = () => {
10255
10104
  };
10256
10105
 
10257
10106
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10258
- var TypeId11 = "~effect/http/HttpClientRequest";
10259
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
10107
+ var TypeId10 = "~effect/http/HttpClientRequest";
10108
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10260
10109
  var Proto6 = {
10261
- [TypeId11]: TypeId11,
10110
+ [TypeId10]: TypeId10,
10262
10111
  ...BaseProto,
10263
10112
  toJSON() {
10264
10113
  return {
@@ -10286,14 +10135,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
10286
10135
  return self;
10287
10136
  }
10288
10137
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
10289
- var make5 = (method) => (url, options) => modify(empty6, {
10138
+ var make4 = (method) => (url, options) => modify(empty6, {
10290
10139
  method,
10291
10140
  url,
10292
10141
  ...options ?? undefined
10293
10142
  });
10294
- var get = /* @__PURE__ */ make5("GET");
10295
- var post = /* @__PURE__ */ make5("POST");
10296
- var put = /* @__PURE__ */ make5("PUT");
10143
+ var get = /* @__PURE__ */ make4("GET");
10144
+ var post = /* @__PURE__ */ make4("POST");
10145
+ var put = /* @__PURE__ */ make4("PUT");
10297
10146
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
10298
10147
  let result = self;
10299
10148
  if (options.method) {
@@ -10347,7 +10196,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10347
10196
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10348
10197
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10349
10198
  function toUrl(self) {
10350
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10199
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10351
10200
  if (isSuccess(r)) {
10352
10201
  return some(r.success);
10353
10202
  }
@@ -10355,7 +10204,7 @@ function toUrl(self) {
10355
10204
  }
10356
10205
 
10357
10206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10358
- var TypeId12 = "~effect/http/HttpIncomingMessage";
10207
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
10359
10208
  var schemaBodyJson = (schema, options) => {
10360
10209
  const decode = decodeEffect(toCodecJson(schema));
10361
10210
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10374,7 +10223,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10374
10223
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10375
10224
 
10376
10225
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10377
- var TypeId13 = "~effect/http/HttpClientResponse";
10226
+ var TypeId12 = "~effect/http/HttpClientResponse";
10378
10227
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10379
10228
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10380
10229
  reason: new StatusCodeError({
@@ -10385,16 +10234,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10385
10234
  }));
10386
10235
 
10387
10236
  class WebHttpClientResponse extends Class {
10237
+ [TypeId11];
10388
10238
  [TypeId12];
10389
- [TypeId13];
10390
10239
  request;
10391
10240
  source;
10392
10241
  constructor(request, source) {
10393
10242
  super();
10394
10243
  this.request = request;
10395
10244
  this.source = source;
10245
+ this[TypeId11] = TypeId11;
10396
10246
  this[TypeId12] = TypeId12;
10397
- this[TypeId13] = TypeId13;
10398
10247
  }
10399
10248
  toJSON() {
10400
10249
  return inspect(this, {
@@ -10566,7 +10415,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10566
10415
  };
10567
10416
 
10568
10417
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10569
- var TypeId14 = "~effect/http/HttpClient";
10418
+ var TypeId13 = "~effect/http/HttpClient";
10570
10419
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10571
10420
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10572
10421
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10583,7 +10432,7 @@ var makeWith2 = (postprocess, preprocess) => {
10583
10432
  return self;
10584
10433
  };
10585
10434
  var Proto7 = {
10586
- [TypeId14]: TypeId14,
10435
+ [TypeId13]: TypeId13,
10587
10436
  pipe() {
10588
10437
  return pipeArguments(this, arguments);
10589
10438
  },
@@ -10594,13 +10443,13 @@ var Proto7 = {
10594
10443
  };
10595
10444
  },
10596
10445
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
10597
- return this.execute(make5(fullMethod)(url, options));
10446
+ return this.execute(make4(fullMethod)(url, options));
10598
10447
  }]))
10599
10448
  };
10600
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10449
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10601
10450
  const scopedController = scopedRequests.get(request);
10602
10451
  const controller = scopedController ?? new AbortController;
10603
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10452
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10604
10453
  if (isFailure(urlResult)) {
10605
10454
  return fail7(new HttpClientError({
10606
10455
  reason: new InvalidUrlError({
@@ -10734,8 +10583,8 @@ class InterruptibleResponse {
10734
10583
  this.original = original;
10735
10584
  this.controller = controller;
10736
10585
  }
10737
- [TypeId13] = TypeId13;
10738
10586
  [TypeId12] = TypeId12;
10587
+ [TypeId11] = TypeId11;
10739
10588
  applyInterrupt(effect) {
10740
10589
  return suspend3(() => {
10741
10590
  responseRegistry.unregister(this.original);
@@ -10833,7 +10682,7 @@ var detectStreamBodySupport = () => {
10833
10682
  return false;
10834
10683
  }
10835
10684
  };
10836
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10685
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10837
10686
  if (request.headers.upgrade !== undefined) {
10838
10687
  return fail7(new HttpClientError({
10839
10688
  reason: new TransportError({
@@ -10924,10 +10773,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10924
10773
  });
10925
10774
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10926
10775
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10927
- var TypeId15 = "~effect/socket/Socket";
10776
+ var TypeId14 = "~effect/socket/Socket";
10928
10777
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10929
- var make29 = (options) => Socket.of({
10930
- [TypeId15]: TypeId15,
10778
+ var make28 = (options) => Socket.of({
10779
+ [TypeId14]: TypeId14,
10931
10780
  reader: options.reader,
10932
10781
  writer: options.writer
10933
10782
  });
@@ -11250,7 +11099,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11250
11099
  write,
11251
11100
  writeAll
11252
11101
  });
11253
- return succeed6(make29({
11102
+ return succeed6(make28({
11254
11103
  reader,
11255
11104
  writer
11256
11105
  }));
@@ -14226,7 +14075,7 @@ function getStreamSchemas(schema) {
14226
14075
  }
14227
14076
  var schema = /* @__PURE__ */ declare(isStream);
14228
14077
  function Stream(success, error) {
14229
- return make16(schema.ast, {
14078
+ return make17(schema.ast, {
14230
14079
  [StreamSchemaTypeId]: StreamSchemaTypeId,
14231
14080
  success,
14232
14081
  error
@@ -14234,9 +14083,9 @@ function Stream(success, error) {
14234
14083
  }
14235
14084
 
14236
14085
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
14237
- var TypeId16 = "~effect/rpc/Rpc";
14086
+ var TypeId15 = "~effect/rpc/Rpc";
14238
14087
  var Proto8 = {
14239
- [TypeId16]: TypeId16,
14088
+ [TypeId15]: TypeId15,
14240
14089
  pipe() {
14241
14090
  return pipeArguments(this, arguments);
14242
14091
  },
@@ -14325,7 +14174,7 @@ var makeProto = (options) => {
14325
14174
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
14326
14175
  return Rpc;
14327
14176
  };
14328
- var make6 = (tag, options) => {
14177
+ var make5 = (tag, options) => {
14329
14178
  const successSchema = options?.success ?? Void;
14330
14179
  const errorSchema = options?.error ?? Never;
14331
14180
  const defectSchema = options?.defect ?? Defect();
@@ -14403,7 +14252,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14403
14252
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14404
14253
 
14405
14254
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14406
- var TypeId17 = "~effect/rpc/RpcClientError";
14255
+ var TypeId16 = "~effect/rpc/RpcClientError";
14407
14256
 
14408
14257
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14409
14258
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14412,11 +14261,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14412
14261
  })) {
14413
14262
  }
14414
14263
 
14415
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14264
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14416
14265
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14417
14266
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14418
14267
  })) {
14419
- [TypeId17] = TypeId17;
14268
+ [TypeId16] = TypeId16;
14420
14269
  get message() {
14421
14270
  return `${this.reason._tag}: ${this.reason.message}`;
14422
14271
  }
@@ -14559,12 +14408,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
14559
14408
  requests: options.requests,
14560
14409
  annotations: options.annotations
14561
14410
  });
14562
- var make7 = (...rpcs) => makeProto2({
14411
+ var make6 = (...rpcs) => makeProto2({
14563
14412
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
14564
14413
  annotations: empty3()
14565
14414
  });
14566
14415
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14567
- var TypeId18 = "~effect/rpc/RpcMiddleware";
14416
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
14568
14417
  var Service = () => (id, options) => {
14569
14418
  const limit = getStackTraceLimit();
14570
14419
  let creationError;
@@ -14582,7 +14431,7 @@ var Service = () => (id, options) => {
14582
14431
  return creationError?.stack;
14583
14432
  }
14584
14433
  });
14585
- ServiceClass_[TypeId18] = TypeId18;
14434
+ ServiceClass_[TypeId17] = TypeId17;
14586
14435
  ServiceClass_.error = options?.error ?? Never;
14587
14436
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14588
14437
  return ServiceClass;
@@ -14665,77 +14514,77 @@ var ProgramOutcome = Union([
14665
14514
  Struct({ status: Literal("failed"), failureSummary: String4 })
14666
14515
  ]);
14667
14516
 
14668
- class RunnerReplicaRpcs extends make7(make6("Claim", {
14517
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
14669
14518
  payload: WorkUnitClaimInput,
14670
14519
  success: WorkUnitClaimResult,
14671
14520
  error: RunnerRpcError
14672
- }), make6("Heartbeat", {
14521
+ }), make5("Heartbeat", {
14673
14522
  payload: WorkUnitHeartbeatInput,
14674
14523
  success: WorkUnitHeartbeatResult,
14675
14524
  error: RunnerRpcError
14676
- }), make6("Complete", {
14525
+ }), make5("Complete", {
14677
14526
  payload: WorkUnitCompletion,
14678
14527
  error: RunnerRpcError
14679
- }), make6("Release", {
14528
+ }), make5("Release", {
14680
14529
  payload: WorkUnitReleaseInput,
14681
14530
  error: RunnerRpcError
14682
- }), make6("Signals", {
14531
+ }), make5("Signals", {
14683
14532
  payload: { runnerReplicaId: String4 },
14684
14533
  success: RunnerSignal,
14685
14534
  error: RunnerRpcError,
14686
14535
  stream: true
14687
- }), make6("ReportSteer", {
14536
+ }), make5("ReportSteer", {
14688
14537
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
14689
14538
  success: Void,
14690
14539
  error: RunnerRpcError
14691
- }), make6("AppendTranscript", {
14540
+ }), make5("AppendTranscript", {
14692
14541
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
14693
14542
  success: Void,
14694
14543
  error: RunnerRpcError
14695
- }), make6("CreateCheckpointFile", {
14544
+ }), make5("CreateCheckpointFile", {
14696
14545
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
14697
14546
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14698
14547
  error: Union([RunnerRpcError, RunFileRefused])
14699
- }), make6("CheckpointFileParts", {
14548
+ }), make5("CheckpointFileParts", {
14700
14549
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14701
14550
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14702
14551
  error: RunnerRpcError
14703
- }), make6("CompleteCheckpointFile", {
14552
+ }), make5("CompleteCheckpointFile", {
14704
14553
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14705
14554
  success: RunFileRecord,
14706
14555
  error: RunnerRpcError
14707
- }), make6("SaveCheckpoint", {
14556
+ }), make5("SaveCheckpoint", {
14708
14557
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
14709
14558
  success: Void,
14710
14559
  error: RunnerRpcError
14711
- }), make6("ResumeCheckpoint", {
14560
+ }), make5("ResumeCheckpoint", {
14712
14561
  payload: { lease: ProgramLease },
14713
14562
  success: UndefinedOr(ResumedCheckpoint),
14714
14563
  error: RunnerRpcError
14715
- }), make6("SettledCheckpoints", {
14564
+ }), make5("SettledCheckpoints", {
14716
14565
  success: ArraySchema(Struct({
14717
14566
  stepAttemptId: String4,
14718
14567
  ref: optionalKey(String4),
14719
14568
  repoBinding: optionalKey(WorkUnitRepoBinding)
14720
14569
  })),
14721
14570
  error: RunnerRpcError
14722
- }), make6("ForgetCheckpoints", {
14571
+ }), make5("ForgetCheckpoints", {
14723
14572
  payload: { stepAttemptIds: ArraySchema(String4) },
14724
14573
  success: Void,
14725
14574
  error: RunnerRpcError
14726
- }), make6("GitCredential", {
14575
+ }), make5("GitCredential", {
14727
14576
  payload: { repoBindingId: String4 },
14728
14577
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
14729
14578
  error: RunnerRpcError
14730
- }), make6("Bundle", {
14579
+ }), make5("Bundle", {
14731
14580
  payload: { digest: String4 },
14732
14581
  success: Struct({ bundle: String4 }),
14733
14582
  error: RunnerRpcError
14734
- }), make6("SettledRuns", {
14583
+ }), make5("SettledRuns", {
14735
14584
  payload: { runIds: ArraySchema(String4) },
14736
14585
  success: ArraySchema(String4),
14737
14586
  error: RunnerRpcError
14738
- }), make6("KnownEvidence", {
14587
+ }), make5("KnownEvidence", {
14739
14588
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
14740
14589
  success: ArraySchema(Struct({
14741
14590
  tree: String4,
@@ -14747,19 +14596,19 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
14747
14596
  })).middleware(RunnerAuthentication) {
14748
14597
  }
14749
14598
 
14750
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14599
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
14751
14600
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
14752
14601
  error: RunnerRpcError
14753
- }), make6("DeferredDone", {
14602
+ }), make5("DeferredDone", {
14754
14603
  payload: { lease: ProgramLease, name: String4, exit: Json },
14755
14604
  error: RunnerRpcError
14756
- }), make6("ScheduleClock", {
14605
+ }), make5("ScheduleClock", {
14757
14606
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
14758
14607
  error: RunnerRpcError
14759
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14608
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14760
14609
  }
14761
14610
 
14762
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14611
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14763
14612
  payload: {
14764
14613
  lease: ProgramLease,
14765
14614
  step: String4,
@@ -14779,7 +14628,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14779
14628
  },
14780
14629
  success: Struct({ questionId: String4 }),
14781
14630
  error: RunnerRpcError
14782
- }), make6("StartAgentStep", {
14631
+ }), make5("StartAgentStep", {
14783
14632
  payload: {
14784
14633
  lease: ProgramLease,
14785
14634
  step: String4,
@@ -14795,7 +14644,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14795
14644
  },
14796
14645
  success: Struct({ stepAttemptId: String4 }),
14797
14646
  error: RunnerRpcError
14798
- }), make6("StartVerification", {
14647
+ }), make5("StartVerification", {
14799
14648
  payload: {
14800
14649
  lease: ProgramLease,
14801
14650
  step: String4,
@@ -14816,7 +14665,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14816
14665
  },
14817
14666
  success: Struct({ verificationId: String4 }),
14818
14667
  error: RunnerRpcError
14819
- }), make6("AwaitEvent", {
14668
+ }), make5("AwaitEvent", {
14820
14669
  payload: {
14821
14670
  lease: ProgramLease,
14822
14671
  step: String4,
@@ -14832,7 +14681,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14832
14681
  })))
14833
14682
  },
14834
14683
  error: RunnerRpcError
14835
- }), make6("ClaimResource", {
14684
+ }), make5("ClaimResource", {
14836
14685
  payload: {
14837
14686
  lease: ProgramLease,
14838
14687
  step: String4,
@@ -14841,7 +14690,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14841
14690
  action: Literals(["claim", "take_over", "let_go"])
14842
14691
  },
14843
14692
  error: RunnerRpcError
14844
- }), make6("AdmitChild", {
14693
+ }), make5("AdmitChild", {
14845
14694
  payload: {
14846
14695
  lease: ProgramLease,
14847
14696
  step: String4,
@@ -14852,7 +14701,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14852
14701
  },
14853
14702
  success: Struct({ runId: String4 }),
14854
14703
  error: RunnerRpcError
14855
- }), make6("StoreArtifact", {
14704
+ }), make5("StoreArtifact", {
14856
14705
  payload: {
14857
14706
  lease: ProgramLease,
14858
14707
  step: String4,
@@ -14864,7 +14713,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14864
14713
  },
14865
14714
  success: Struct({ artifactId: String4 }),
14866
14715
  error: RunnerRpcError
14867
- }), make6("RecordNote", {
14716
+ }), make5("RecordNote", {
14868
14717
  payload: {
14869
14718
  lease: ProgramLease,
14870
14719
  step: String4,
@@ -14873,7 +14722,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14873
14722
  kind: optional(Literals(["note", "blocker"]))
14874
14723
  },
14875
14724
  error: RunnerRpcError
14876
- }), make6("PerformHostEffect", {
14725
+ }), make5("PerformHostEffect", {
14877
14726
  payload: {
14878
14727
  lease: ProgramLease,
14879
14728
  step: String4,
@@ -14902,7 +14751,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14902
14751
  },
14903
14752
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14904
14753
  error: RunnerRpcError
14905
- }), make6("AlertTask", {
14754
+ }), make5("AlertTask", {
14906
14755
  payload: {
14907
14756
  lease: ProgramLease,
14908
14757
  step: String4,
@@ -14919,7 +14768,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14919
14768
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14920
14769
  }),
14921
14770
  error: RunnerRpcError
14922
- }), make6("ReadTranscripts", {
14771
+ }), make5("ReadTranscripts", {
14923
14772
  payload: {
14924
14773
  lease: ProgramLease,
14925
14774
  step: String4,
@@ -14954,7 +14803,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14954
14803
  })))
14955
14804
  }),
14956
14805
  error: RunnerRpcError
14957
- }), make6("PipelineStatus", {
14806
+ }), make5("PipelineStatus", {
14958
14807
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14959
14808
  success: Struct({
14960
14809
  head: String4,
@@ -14988,11 +14837,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14988
14837
  }))
14989
14838
  }),
14990
14839
  error: RunnerRpcError
14991
- }), make6("ReportPipeline", {
14840
+ }), make5("ReportPipeline", {
14992
14841
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14993
14842
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14994
14843
  error: RunnerRpcError
14995
- }), make6("ReviewThreads", {
14844
+ }), make5("ReviewThreads", {
14996
14845
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14997
14846
  success: Struct({
14998
14847
  threads: ArraySchema(Struct({
@@ -15004,7 +14853,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15004
14853
  }))
15005
14854
  }),
15006
14855
  error: RunnerRpcError
15007
- }), make6("OpenChangeRequests", {
14856
+ }), make5("OpenChangeRequests", {
15008
14857
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
15009
14858
  success: Struct({
15010
14859
  changeRequests: ArraySchema(Struct({
@@ -15018,7 +14867,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15018
14867
  }))
15019
14868
  }),
15020
14869
  error: RunnerRpcError
15021
- }), make6("OwnChangeRequests", {
14870
+ }), make5("OwnChangeRequests", {
15022
14871
  payload: { lease: ProgramLease, step: String4 },
15023
14872
  success: Struct({
15024
14873
  changeRequests: ArraySchema(Struct({
@@ -15031,7 +14880,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15031
14880
  }))
15032
14881
  }),
15033
14882
  error: RunnerRpcError
15034
- }), make6("Propose", {
14883
+ }), make5("Propose", {
15035
14884
  payload: {
15036
14885
  lease: ProgramLease,
15037
14886
  step: String4,
@@ -15060,7 +14909,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15060
14909
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
15061
14910
  }),
15062
14911
  error: RunnerRpcError
15063
- }), make6("ReadProject", {
14912
+ }), make5("ReadProject", {
15064
14913
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
15065
14914
  success: Struct({
15066
14915
  project: Struct({ id: String4, name: String4 }),
@@ -15083,7 +14932,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15083
14932
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
15084
14933
  }),
15085
14934
  error: RunnerRpcError
15086
- }), make6("DraftUpdate", {
14935
+ }), make5("DraftUpdate", {
15087
14936
  payload: {
15088
14937
  lease: ProgramLease,
15089
14938
  step: String4,
@@ -15098,7 +14947,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15098
14947
  },
15099
14948
  success: Struct({ id: String4 }),
15100
14949
  error: RunnerRpcError
15101
- }), make6("CreatePlanTasks", {
14950
+ }), make5("CreatePlanTasks", {
15102
14951
  payload: {
15103
14952
  lease: ProgramLease,
15104
14953
  projectId: optionalKey(String4),
@@ -15119,15 +14968,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15119
14968
  },
15120
14969
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
15121
14970
  error: RunnerRpcError
15122
- }), make6("IntegrationBranch", {
14971
+ }), make5("IntegrationBranch", {
15123
14972
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
15124
14973
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
15125
14974
  error: RunnerRpcError
15126
- }), make6("DeliveryBase", {
14975
+ }), make5("DeliveryBase", {
15127
14976
  payload: { lease: ProgramLease },
15128
14977
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
15129
14978
  error: RunnerRpcError
15130
- }), make6("MergeChangeRequest", {
14979
+ }), make5("MergeChangeRequest", {
15131
14980
  payload: {
15132
14981
  lease: ProgramLease,
15133
14982
  step: String4,
@@ -15145,7 +14994,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15145
14994
  Struct({ status: Literal("moved"), head: String4 })
15146
14995
  ]),
15147
14996
  error: RunnerRpcError
15148
- }), make6("ApproveChangeRequest", {
14997
+ }), make5("ApproveChangeRequest", {
15149
14998
  payload: {
15150
14999
  lease: ProgramLease,
15151
15000
  step: String4,
@@ -15161,7 +15010,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15161
15010
  Struct({ approved: Literal(false), reason: String4 })
15162
15011
  ]),
15163
15012
  error: RunnerRpcError
15164
- }), make6("CloseChangeRequest", {
15013
+ }), make5("CloseChangeRequest", {
15165
15014
  payload: {
15166
15015
  lease: ProgramLease,
15167
15016
  step: String4,
@@ -15171,7 +15020,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15171
15020
  },
15172
15021
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
15173
15022
  error: RunnerRpcError
15174
- }), make6("RerunPipeline", {
15023
+ }), make5("RerunPipeline", {
15175
15024
  payload: {
15176
15025
  lease: ProgramLease,
15177
15026
  step: String4,
@@ -15181,7 +15030,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15181
15030
  },
15182
15031
  success: Struct({ head: String4, pipelines: Int }),
15183
15032
  error: RunnerRpcError
15184
- }), make6("PublishRelease", {
15033
+ }), make5("PublishRelease", {
15185
15034
  payload: {
15186
15035
  lease: ProgramLease,
15187
15036
  step: String4,
@@ -15193,14 +15042,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15193
15042
  },
15194
15043
  success: Struct({ tag: String4, revision: String4, url: String4 }),
15195
15044
  error: RunnerRpcError
15196
- }), make6("ProgramSecrets", {
15045
+ }), make5("ProgramSecrets", {
15197
15046
  payload: { lease: ProgramLease },
15198
15047
  success: Record(String4, String4),
15199
15048
  error: RunnerRpcError
15200
15049
  })).middleware(RunnerAuthentication) {
15201
15050
  }
15202
15051
 
15203
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
15052
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
15204
15053
  payload: {
15205
15054
  lease: ProgramLease,
15206
15055
  step: String4,
@@ -15212,11 +15061,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
15212
15061
  },
15213
15062
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
15214
15063
  error: Union([RunnerRpcError, RunFileRefused])
15215
- }), make6("RunFileParts", {
15064
+ }), make5("RunFileParts", {
15216
15065
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
15217
15066
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
15218
15067
  error: RunnerRpcError
15219
- }), make6("CompleteRunFile", {
15068
+ }), make5("CompleteRunFile", {
15220
15069
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
15221
15070
  success: RunFileRecord,
15222
15071
  error: RunnerRpcError
@@ -15226,7 +15075,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
15226
15075
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
15227
15076
 
15228
15077
  // apps/cli/src/oauth.ts
15229
- var Scope2 = "openid profile email offline_access kitman:cli";
15078
+ var Scope = "openid profile email offline_access kitman:cli";
15230
15079
  var CallbackPath = "/auth/callback";
15231
15080
 
15232
15081
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -15245,7 +15094,7 @@ function buildAuthorizeUrl(input) {
15245
15094
  url.searchParams.set("response_type", "code");
15246
15095
  url.searchParams.set("client_id", input.clientId);
15247
15096
  url.searchParams.set("redirect_uri", input.redirectUri);
15248
- url.searchParams.set("scope", Scope2);
15097
+ url.searchParams.set("scope", Scope);
15249
15098
  url.searchParams.set("code_challenge", input.codeChallenge);
15250
15099
  url.searchParams.set("code_challenge_method", "S256");
15251
15100
  url.searchParams.set("state", input.state);
@@ -15961,7 +15810,7 @@ var spawnedTransport = (env) => gen(function* () {
15961
15810
  const spawner = yield* ChildProcessSpawner;
15962
15811
  const input = yield* unbounded2();
15963
15812
  const encoder = new TextEncoder;
15964
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15813
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15965
15814
  extendEnv: false,
15966
15815
  env,
15967
15816
  stdin: fromQueue(input),
@@ -15992,7 +15841,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15992
15841
  const spawner = yield* ChildProcessSpawner;
15993
15842
  const env = coreEnv(options);
15994
15843
  const run = (args) => gen(function* () {
15995
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15844
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15996
15845
  const [stdout, stderr, exitCode] = yield* all3([
15997
15846
  mkString(decodeText(handle.stdout)),
15998
15847
  mkString(decodeText(handle.stderr)),
@@ -16018,7 +15867,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
16018
15867
  }
16019
15868
  var runCommand2 = (command, args, options = {}) => gen(function* () {
16020
15869
  const spawner = yield* ChildProcessSpawner;
16021
- const handle = yield* spawner.spawn(make3(command, args, {
15870
+ const handle = yield* spawner.spawn(make2(command, args, {
16022
15871
  stdin: "ignore",
16023
15872
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
16024
15873
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -16044,7 +15893,7 @@ var shellOutputTailChars2 = 64 * 1024;
16044
15893
  var runProcess2 = (argv, options) => gen(function* () {
16045
15894
  const spawner = yield* ChildProcessSpawner;
16046
15895
  const [command, ...args] = argv;
16047
- const handle = yield* spawner.spawn(make3(command, args, {
15896
+ const handle = yield* spawner.spawn(make2(command, args, {
16048
15897
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
16049
15898
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
16050
15899
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -16485,4 +16334,4 @@ function serviceChecks(declaration) {
16485
16334
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
16486
16335
  }
16487
16336
 
16488
- export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
16337
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };