@kitman-sh/cli 0.34.0 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{chunk-haq904fk.js → chunk-1hgsf81a.js} +1 -1
  2. package/dist/{chunk-6hxtg6eb.js → chunk-4qrb09w4.js} +3 -3
  3. package/dist/{chunk-g5b61tek.js → chunk-56gs4z53.js} +5 -5
  4. package/dist/{chunk-a230abnk.js → chunk-5e1ndtnp.js} +2 -2
  5. package/dist/{chunk-ew07nt2d.js → chunk-61dmxexa.js} +102 -60
  6. package/dist/{chunk-r90j80q5.js → chunk-64arqv10.js} +9 -9
  7. package/dist/{chunk-fr0qseam.js → chunk-c8eg05nh.js} +4 -4
  8. package/dist/{chunk-swc0ctf2.js → chunk-ee7ss0df.js} +3 -3
  9. package/dist/{chunk-gy7nygep.js → chunk-er0e8d8v.js} +14 -60
  10. package/dist/{chunk-djzfaqaq.js → chunk-ke4rajdh.js} +38 -22
  11. package/dist/{chunk-phx3zffc.js → chunk-n01c55f9.js} +8 -8
  12. package/dist/{chunk-2a40hhfz.js → chunk-n0bp958m.js} +4 -4
  13. package/dist/{chunk-w8hf2etp.js → chunk-nna9pwp0.js} +34 -32
  14. package/dist/{chunk-6387vj9z.js → chunk-q8e58p57.js} +2 -2
  15. package/dist/{chunk-hwjp28rh.js → chunk-qqb6djs7.js} +2 -2
  16. package/dist/{chunk-wkbsbxp8.js → chunk-r9x4ehsy.js} +6 -6
  17. package/dist/{chunk-qvpkwnky.js → chunk-rbpn35g5.js} +1 -1
  18. package/dist/{chunk-3jxdtkwd.js → chunk-t205gnzc.js} +20 -20
  19. package/dist/{chunk-9da9b7ys.js → chunk-t9dmwy8x.js} +12 -12
  20. package/dist/{chunk-2gz59jcx.js → chunk-tsefrrxz.js} +1 -1
  21. package/dist/{chunk-89ygm64f.js → chunk-wkkjyzpx.js} +4 -4
  22. package/dist/{chunk-8p5csa63.js → chunk-xc7kg57m.js} +26 -26
  23. package/dist/{chunk-d64j8v9n.js → chunk-y3c9pxez.js} +7 -7
  24. package/dist/{chunk-0m8ktgmz.js → chunk-yhat3rhw.js} +184 -338
  25. package/dist/{chunk-337drcr7.js → chunk-z0gqrc8c.js} +184 -35
  26. package/dist/{chunk-y7bth30s.js → chunk-znhjs0t6.js} +1 -1
  27. package/dist/index.js +4 -4
  28. 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,
@@ -89,9 +87,7 @@ import {
89
87
  ConsoleRef,
90
88
  succeed3,
91
89
  fail4,
92
- void_2,
93
90
  isSuccess2,
94
- isFailure2,
95
91
  makeUnsafe5,
96
92
  make15,
97
93
  _await,
@@ -101,12 +97,8 @@ import {
101
97
  succeed4,
102
98
  doneUnsafe,
103
99
  TracerTimingEnabled,
104
- Scope,
105
- makeUnsafe6,
106
100
  provide,
107
- addFinalizerExit,
108
101
  addFinalizer,
109
- close,
110
102
  succeed5,
111
103
  effect,
112
104
  effectContext,
@@ -158,7 +150,6 @@ import {
158
150
  tapCause,
159
151
  retry,
160
152
  ignore,
161
- ignoreCause,
162
153
  orElseSucceed,
163
154
  timeout,
164
155
  timeoutOrElse,
@@ -170,7 +161,6 @@ import {
170
161
  context,
171
162
  contextWith,
172
163
  provide3,
173
- provideContext2,
174
164
  serviceOption,
175
165
  updateContext,
176
166
  provideService,
@@ -181,7 +171,6 @@ import {
181
171
  addFinalizer2,
182
172
  ensuring2,
183
173
  onError,
184
- onExit,
185
174
  cached,
186
175
  interrupt3,
187
176
  interruptible,
@@ -193,7 +182,6 @@ import {
193
182
  withParentSpan,
194
183
  forkScoped,
195
184
  runFork,
196
- runForkWith,
197
185
  runPromise,
198
186
  runPromiseWith,
199
187
  runSync,
@@ -204,6 +192,9 @@ import {
204
192
  logError,
205
193
  effectify,
206
194
  decode,
195
+ isRedacted,
196
+ make16,
197
+ value,
207
198
  defaultParseOptions,
208
199
  omit,
209
200
  map10,
@@ -213,7 +204,7 @@ import {
213
204
  decodeEffect,
214
205
  decodeUnknownOption,
215
206
  decodeOption,
216
- make16,
207
+ make17,
217
208
  isSchema,
218
209
  optionalKey,
219
210
  optional,
@@ -274,23 +265,19 @@ import {
274
265
  decodeJsonStringOption,
275
266
  encodeJsonStringSync,
276
267
  encodePrettyJsonString
277
- } from "./chunk-ew07nt2d.js";
268
+ } from "./chunk-61dmxexa.js";
278
269
  import {
279
270
  map,
280
271
  makeEquivalence,
281
272
  Clock,
282
273
  currentTimeMillis,
283
274
  bytes,
284
- join,
285
- interrupt,
286
- getCurrent,
287
- runIn,
288
275
  BadArgument,
289
276
  systemError,
290
277
  badArgument,
291
278
  makeUnsafe2,
279
+ make7,
292
280
  make8,
293
- make9,
294
281
  sliding,
295
282
  unbounded2,
296
283
  offer,
@@ -306,6 +293,8 @@ import {
306
293
  isSink,
307
294
  fromChannel,
308
295
  drain,
296
+ make9,
297
+ get3,
309
298
  isStream,
310
299
  fromChannel2,
311
300
  callback,
@@ -346,21 +335,18 @@ import {
346
335
  optionalEnv,
347
336
  harnessesUnsupportedInSrt2,
348
337
  harnessesUnsupportedInDocker2
349
- } from "./chunk-337drcr7.js";
338
+ } from "./chunk-z0gqrc8c.js";
350
339
  import {
351
- isRedacted,
352
- make,
353
- value,
354
340
  ExitCode,
355
341
  ProcessId,
356
342
  makeHandle,
357
- make2,
343
+ make,
358
344
  ChildProcessSpawner,
359
345
  display,
360
- make3,
346
+ make2,
361
347
  parseFdName,
362
348
  fdName
363
- } from "./chunk-gy7nygep.js";
349
+ } from "./chunk-er0e8d8v.js";
364
350
  import {
365
351
  isDateTime,
366
352
  Numeric,
@@ -373,7 +359,7 @@ import {
373
359
  SecretScope,
374
360
  SecretHosts,
375
361
  isSecretReference
376
- } from "./chunk-qvpkwnky.js";
362
+ } from "./chunk-rbpn35g5.js";
377
363
 
378
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
365
  var makeEquivalence3 = Tuple;
@@ -512,7 +498,7 @@ var fromDateUnsafe = (date) => {
512
498
  }
513
499
  return makeUtc(epochMillis);
514
500
  };
515
- var makeUnsafe7 = (input) => {
501
+ var makeUnsafe6 = (input) => {
516
502
  if (isDateTime2(input)) {
517
503
  return input;
518
504
  } else if (input instanceof Date) {
@@ -532,7 +518,7 @@ var makeUnsafe7 = (input) => {
532
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
533
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
534
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
535
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
521
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
536
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
537
523
  var nowUnsafe = () => makeUtc(Date.now());
538
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -639,7 +625,7 @@ class Metric$ {
639
625
  }
640
626
  hook(context) {
641
627
  const key = this.key(context);
642
- const registry = get3(context, MetricRegistry);
628
+ const registry = get4(context, MetricRegistry);
643
629
  let metadata = registry.get(key);
644
630
  if (isUndefined(metadata)) {
645
631
  metadata = this.metadata(this.createHooks());
@@ -648,11 +634,11 @@ class Metric$ {
648
634
  return metadata.hooks;
649
635
  }
650
636
  removeUnsafe(context) {
651
- get3(context, MetricRegistry).delete(this.key(context));
637
+ get4(context, MetricRegistry).delete(this.key(context));
652
638
  }
653
639
  registerUnsafe(context, hooks) {
654
640
  const key = this.key(context);
655
- const registry = get3(context, MetricRegistry);
641
+ const registry = get4(context, MetricRegistry);
656
642
  const metadata = this.metadata({
657
643
  get: hooks.get,
658
644
  update: constVoid,
@@ -668,7 +654,7 @@ class Metric$ {
668
654
  };
669
655
  }
670
656
  key(context) {
671
- const extraAttributes = get3(context, CurrentMetricAttributes);
657
+ const extraAttributes = get4(context, CurrentMetricAttributes);
672
658
  if (extraAttributes !== this.#extraAttributes) {
673
659
  this.#extraAttributes = extraAttributes;
674
660
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -920,151 +906,9 @@ var toNumber = (b) => {
920
906
  return some(Number(b));
921
907
  };
922
908
 
923
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
924
- var TypeId3 = "~effect/RcRef";
925
- var stateEmpty = {
926
- _tag: "Empty"
927
- };
928
- var stateClosed = {
929
- _tag: "Closed"
930
- };
931
- var variance = {
932
- _A: identity,
933
- _E: identity
934
- };
935
-
936
- class RcRefImpl {
937
- [TypeId3] = variance;
938
- pipe() {
939
- return pipeArguments(this, arguments);
940
- }
941
- state = stateEmpty;
942
- acquire;
943
- context;
944
- scope;
945
- idleTimeToLive;
946
- constructor(acquire, context, scope, idleTimeToLive) {
947
- this.acquire = acquire;
948
- this.context = context;
949
- this.scope = scope;
950
- this.idleTimeToLive = idleTimeToLive;
951
- }
952
- }
953
- var make17 = (options) => withFiber2((fiber) => {
954
- const context = fiber.context;
955
- const scope = get3(context, Scope);
956
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
957
- return as(addFinalizerExit(scope, () => {
958
- const state = ref.state;
959
- ref.state = stateClosed;
960
- if (state._tag === "Acquired")
961
- return close(state.scope, void_2);
962
- if (state._tag === "Acquiring")
963
- return interrupt(state.fiber);
964
- return void_3;
965
- }), ref);
966
- });
967
- var getState = (self, restore) => {
968
- switch (self.state._tag) {
969
- case "Closed": {
970
- return interrupt3;
971
- }
972
- case "Acquired": {
973
- const state = self.state;
974
- state.refCount++;
975
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
976
- }
977
- case "Acquiring": {
978
- const state = self.state;
979
- state.awaiters++;
980
- return awaitAcquiring(self, state, restore);
981
- }
982
- case "Empty": {
983
- const acquiring = {
984
- _tag: "Acquiring",
985
- fiber: undefined,
986
- awaiters: 1,
987
- acquired: undefined
988
- };
989
- self.state = acquiring;
990
- const scope = makeUnsafe6();
991
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
992
- if (self.state !== acquiring) {
993
- return interrupt3;
994
- }
995
- const state = {
996
- _tag: "Acquired",
997
- value,
998
- scope,
999
- fiber: undefined,
1000
- refCount: acquiring.awaiters,
1001
- invalidated: false
1002
- };
1003
- self.state = state;
1004
- acquiring.acquired = state;
1005
- return succeed6(state);
1006
- }), onExit((exit) => {
1007
- if (isSuccess2(exit))
1008
- return void_3;
1009
- if (self.state === acquiring)
1010
- self.state = stateEmpty;
1011
- return close(scope, exit);
1012
- }));
1013
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1014
- return awaitAcquiring(self, acquiring, restore);
1015
- }
1016
- }
1017
- };
1018
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1019
- const acquired = acquiring.acquired;
1020
- if (acquired !== undefined) {
1021
- return isFailure2(exit) ? release(self, acquired) : void_3;
1022
- }
1023
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1024
- return void_3;
1025
- self.state = stateEmpty;
1026
- return interrupt(acquiring.fiber);
1027
- });
1028
- var get4 = (self_) => {
1029
- const self = self_;
1030
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1031
- };
1032
- var release = (self, state) => {
1033
- state.refCount--;
1034
- if (state.refCount > 0) {
1035
- return void_3;
1036
- }
1037
- const idleTimeToLive = self.idleTimeToLive;
1038
- if (idleTimeToLive === undefined || state.invalidated) {
1039
- if (self.state === state) {
1040
- self.state = stateEmpty;
1041
- }
1042
- return close(state.scope, void_2);
1043
- } else if (!isFinite(idleTimeToLive)) {
1044
- return void_3;
1045
- }
1046
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1047
- if (self.state === state && state.refCount === 0) {
1048
- self.state = stateEmpty;
1049
- return ignoreCause(close(state.scope, void_2), {
1050
- log: "Unhandled",
1051
- message: "Unhandled error in RcRef finalizer"
1052
- });
1053
- }
1054
- return void_3;
1055
- })).pipe(ensuring2(sync2(() => {
1056
- state.fiber = undefined;
1057
- })), runForkWith(self.context), runIn(self.scope));
1058
- return void_3;
1059
- };
1060
-
1061
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1062
- var make18 = make17;
1063
- var get5 = get4;
1064
-
1065
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1066
- var makeUnsafe = makeUnsafe7;
1067
- var make19 = make4;
910
+ var makeUnsafe = makeUnsafe6;
911
+ var make18 = make3;
1068
912
  var now2 = now;
1069
913
  var nowUnsafe2 = nowUnsafe;
1070
914
  var toDateUtc2 = toDateUtc;
@@ -1279,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
1279
1123
  const readable = options.readable;
1280
1124
  const chunkSize = options.chunkSize ?? 4096;
1281
1125
  const closeOnDone = options.closeOnDone ?? true;
1282
- const exit = options.exit ?? make8(undefined);
1126
+ const exit = options.exit ?? make7(undefined);
1283
1127
  const latch = options.latch ?? makeUnsafe2(false);
1284
1128
  function onReadable() {
1285
1129
  latch.openUnsafe();
@@ -1383,7 +1227,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1383
1227
  windowsHide: true
1384
1228
  }, onExit);
1385
1229
  };
1386
- var make20 = /* @__PURE__ */ gen(function* () {
1230
+ var make19 = /* @__PURE__ */ gen(function* () {
1387
1231
  const fs = yield* FileSystem;
1388
1232
  const path = yield* Path;
1389
1233
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1843,7 +1687,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1843
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1844
1688
  const toOption = options.to ?? "stdin";
1845
1689
  if (toOption === "stdin") {
1846
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1847
1691
  ...command.options,
1848
1692
  stdin: {
1849
1693
  ...stdinConfig,
@@ -1863,7 +1707,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1863
1707
  type: "input",
1864
1708
  stream: sourceStream
1865
1709
  };
1866
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1867
1711
  ...command.options,
1868
1712
  additionalFds: {
1869
1713
  ...existingFds,
@@ -1871,7 +1715,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1871
1715
  }
1872
1716
  })));
1873
1717
  } else {
1874
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1875
1719
  ...command.options,
1876
1720
  stdin: {
1877
1721
  ...stdinConfig,
@@ -1910,9 +1754,9 @@ var make20 = /* @__PURE__ */ gen(function* () {
1910
1754
  }
1911
1755
  }
1912
1756
  });
1913
- return make2(spawnCommand);
1757
+ return make(spawnCommand);
1914
1758
  });
1915
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1759
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1916
1760
  var flattenCommand = (command) => {
1917
1761
  const commands = [];
1918
1762
  const pipeOptions = [];
@@ -2473,10 +2317,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2473
2317
  var layer2 = layer7;
2474
2318
 
2475
2319
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2476
- var TypeId4 = "~effect/Stdio";
2477
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2478
- var make21 = (options) => ({
2479
- [TypeId4]: TypeId4,
2320
+ var TypeId3 = "~effect/Stdio";
2321
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
+ var make20 = (options) => ({
2323
+ [TypeId3]: TypeId3,
2480
2324
  stdinIsTerminal: succeed6(false),
2481
2325
  stdoutIsTerminal: succeed6(false),
2482
2326
  stderrIsTerminal: succeed6(false),
@@ -2484,7 +2328,7 @@ var make21 = (options) => ({
2484
2328
  });
2485
2329
 
2486
2330
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2487
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2331
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2488
2332
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2489
2333
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2490
2334
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2684,7 +2528,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2684
2528
  const uuid = bytes(randomBytes(16));
2685
2529
  return format === "bytes" ? uuid : stringify(uuid);
2686
2530
  };
2687
- var make22 = (randomBytes) => {
2531
+ var make21 = (randomBytes) => {
2688
2532
  const randomBytesChecked = (size) => {
2689
2533
  checkSize(size);
2690
2534
  return randomBytes(size);
@@ -2718,7 +2562,7 @@ var fillRandom = (crypto2, size) => {
2718
2562
  }
2719
2563
  return bytes;
2720
2564
  };
2721
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2565
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2722
2566
  var randomBytesUnsafe = (size) => {
2723
2567
  checkSize(size);
2724
2568
  return fillRandom(globalThis.crypto, size);
@@ -2726,10 +2570,10 @@ var randomBytesUnsafe = (size) => {
2726
2570
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2727
2571
 
2728
2572
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2729
- var TypeId5 = "~effect/http/Cookies";
2573
+ var TypeId4 = "~effect/http/Cookies";
2730
2574
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2731
2575
  var Proto2 = {
2732
- [TypeId5]: TypeId5,
2576
+ [TypeId4]: TypeId4,
2733
2577
  ...BaseProto,
2734
2578
  toJSON() {
2735
2579
  return {
@@ -2908,14 +2752,14 @@ var tryDecodeURIComponent = (str) => {
2908
2752
  };
2909
2753
 
2910
2754
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2911
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2755
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2912
2756
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2913
- [TypeId6]: {
2914
- value: TypeId6
2757
+ [TypeId5]: {
2758
+ value: TypeId5
2915
2759
  },
2916
2760
  [symbolRedactable]: {
2917
2761
  value(context) {
2918
- return redact2(this, get3(context, CurrentRedactedNames));
2762
+ return redact2(this, get4(context, CurrentRedactedNames));
2919
2763
  }
2920
2764
  },
2921
2765
  toJSON: {
@@ -2940,7 +2784,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2940
2784
  value: BaseProto[NodeInspectSymbol]
2941
2785
  }
2942
2786
  });
2943
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2787
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2944
2788
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2945
2789
  var empty = /* @__PURE__ */ Object.create(Proto3);
2946
2790
  var fromInput = (input) => {
@@ -2965,21 +2809,21 @@ var fromInput = (input) => {
2965
2809
  };
2966
2810
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2967
2811
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2968
- const out = make23(self);
2812
+ const out = make22(self);
2969
2813
  out[key.toLowerCase()] = value;
2970
2814
  return out;
2971
2815
  });
2972
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2816
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2973
2817
  ...self,
2974
2818
  ...fromInput(headers)
2975
2819
  }));
2976
2820
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2977
- const out = make23(self);
2821
+ const out = make22(self);
2978
2822
  Object.assign(out, headers);
2979
2823
  return out;
2980
2824
  });
2981
2825
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2982
- const out = make23(self);
2826
+ const out = make22(self);
2983
2827
  delete out[key.toLowerCase()];
2984
2828
  return out;
2985
2829
  });
@@ -2991,12 +2835,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2991
2835
  if (typeof key === "string") {
2992
2836
  const k = key.toLowerCase();
2993
2837
  if (k in self) {
2994
- out[k] = make(self[k]);
2838
+ out[k] = make16(self[k]);
2995
2839
  }
2996
2840
  } else {
2997
2841
  for (const name in self) {
2998
2842
  if (name.search(key) !== -1) {
2999
- out[name] = make(self[name]);
2843
+ out[name] = make16(self[name]);
3000
2844
  }
3001
2845
  }
3002
2846
  }
@@ -3036,18 +2880,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3036
2880
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3037
2881
 
3038
2882
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3039
- var TypeId7 = "~effect/http/UrlParams";
3040
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2883
+ var TypeId6 = "~effect/http/UrlParams";
2884
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3041
2885
  var Proto4 = {
3042
2886
  ...PipeInspectableProto,
3043
- [TypeId7]: TypeId7,
2887
+ [TypeId6]: TypeId6,
3044
2888
  [Symbol.iterator]() {
3045
2889
  return this.params[Symbol.iterator]();
3046
2890
  },
3047
2891
  [symbolRedactable](context) {
3048
2892
  return {
3049
2893
  _id: "UrlParams",
3050
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2894
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3051
2895
  };
3052
2896
  },
3053
2897
  toJSON() {
@@ -3060,7 +2904,7 @@ var Proto4 = {
3060
2904
  return array(this.params.flat());
3061
2905
  }
3062
2906
  };
3063
- var make24 = (params) => {
2907
+ var make23 = (params) => {
3064
2908
  const self = Object.create(Proto4);
3065
2909
  self.params = params;
3066
2910
  return self;
@@ -3079,7 +2923,7 @@ var fromInput2 = (input) => {
3079
2923
  out.push(parsed[i]);
3080
2924
  }
3081
2925
  }
3082
- return make24(out);
2926
+ return make23(out);
3083
2927
  };
3084
2928
  var fromInputNested = (input) => {
3085
2929
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3105,7 +2949,7 @@ var fromInputNested = (input) => {
3105
2949
  var coerce = (value) => isRedacted(value) ? value : String(value);
3106
2950
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
3107
2951
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3108
- var empty4 = /* @__PURE__ */ make24([]);
2952
+ var empty4 = /* @__PURE__ */ make23([]);
3109
2953
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3110
2954
  const params = fromInput2(input).params.slice();
3111
2955
  const keys = new Set;
@@ -3117,12 +2961,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3117
2961
  continue;
3118
2962
  params.push(self.params[i]);
3119
2963
  }
3120
- return make24(params);
2964
+ return make23(params);
3121
2965
  });
3122
2966
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3123
2967
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
3124
2968
  const patterns = Array.isArray(key) ? key : [key];
3125
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2969
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3126
2970
  });
3127
2971
  var isRedactedName2 = isRedactedName;
3128
2972
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3173,13 +3017,13 @@ var decodeQueryKey = (key) => {
3173
3017
  return key;
3174
3018
  }
3175
3019
  };
3176
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3020
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3177
3021
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3178
3022
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3179
3023
  });
3180
3024
 
3181
3025
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3182
- var TypeId8 = "~effect/Terminal";
3026
+ var TypeId7 = "~effect/Terminal";
3183
3027
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3184
3028
 
3185
3029
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3188,17 +3032,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3188
3032
  [QuitErrorTypeId] = QuitErrorTypeId;
3189
3033
  }
3190
3034
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3191
- var make25 = (impl) => Terminal.of({
3035
+ var make24 = (impl) => Terminal.of({
3192
3036
  ...impl,
3193
- [TypeId8]: TypeId8
3037
+ [TypeId7]: TypeId7
3194
3038
  });
3195
3039
 
3196
3040
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3197
3041
  import * as readline from "readline";
3198
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3042
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3199
3043
  const stdin = process.stdin;
3200
3044
  const stdout = process.stdout;
3201
- const lines = yield* make9();
3045
+ const lines = yield* make8();
3202
3046
  let inputEnded = stdin.readableEnded;
3203
3047
  let readlineActive = false;
3204
3048
  const onStdinEnd = () => {
@@ -3209,7 +3053,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3209
3053
  };
3210
3054
  stdin.once("end", onStdinEnd);
3211
3055
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3212
- const rlRef = yield* make18({
3056
+ const rlRef = yield* make9({
3213
3057
  acquire: acquireRelease(sync2(() => {
3214
3058
  const rl = readline.createInterface({
3215
3059
  input: stdin,
@@ -3248,7 +3092,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3248
3092
  if (stdin.isTTY)
3249
3093
  stdin.setRawMode(enabled);
3250
3094
  });
3251
- const rawModeRef = yield* make18({
3095
+ const rawModeRef = yield* make9({
3252
3096
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3253
3097
  idleTimeToLive: "10 millis"
3254
3098
  });
@@ -3269,7 +3113,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3269
3113
  return queue;
3270
3114
  });
3271
3115
  const readInput = gen(function* () {
3272
- const queue = yield* make9();
3116
+ const queue = yield* make8();
3273
3117
  const handleKeypress = (s, k) => {
3274
3118
  const userInput = {
3275
3119
  input: fromUndefinedOr(s),
@@ -3299,14 +3143,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3299
3143
  if (inputEnded) {
3300
3144
  handleEnd();
3301
3145
  } else {
3302
- yield* get5(rlRef);
3303
- yield* get5(rawModeRef);
3146
+ yield* get3(rlRef);
3147
+ yield* get3(rawModeRef);
3304
3148
  stdin.once("end", handleEnd);
3305
3149
  }
3306
3150
  return queue;
3307
3151
  });
3308
3152
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3309
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3153
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3310
3154
  onSome: succeed6
3311
3155
  })), mapError2(() => new QuitError({}))));
3312
3156
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3317,7 +3161,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3317
3161
  cause: err
3318
3162
  }))));
3319
3163
  }));
3320
- return make25({
3164
+ return make24({
3321
3165
  columns,
3322
3166
  rows,
3323
3167
  size,
@@ -3326,7 +3170,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3326
3170
  display
3327
3171
  });
3328
3172
  });
3329
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3173
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3330
3174
  function defaultShouldQuit(input) {
3331
3175
  const key = input.key;
3332
3176
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3353,7 +3197,7 @@ function toDate(input) {
3353
3197
  return toDateUtc2(makeUnsafe(input));
3354
3198
  }
3355
3199
  function parseDate(input) {
3356
- return getOrUndefined(map4(make19(input), toDateUtc2));
3200
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3357
3201
  }
3358
3202
  function toIso(input) {
3359
3203
  return formatIso(makeUnsafe(input));
@@ -8229,7 +8073,9 @@ var HarnessHold = Struct({
8229
8073
  until: optionalKey(Timestamp),
8230
8074
  scope: optionalKey(Literal("step"))
8231
8075
  });
8232
- var StepRestart = Struct({ reason: Literals(["login_revoked", "harness_error"]) });
8076
+ var StepRestart = Struct({
8077
+ reason: Literals(["login_revoked", "harness_error", "setup_prompt"])
8078
+ });
8233
8079
  var WorkUnitOutcome = Struct({
8234
8080
  status: Union([
8235
8081
  Literal("completed"),
@@ -10983,11 +10829,11 @@ var TranscriptSearchResult = Struct({
10983
10829
  total: Int
10984
10830
  });
10985
10831
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10986
- var TypeId9 = "~effect/http/HttpBody";
10832
+ var TypeId8 = "~effect/http/HttpBody";
10987
10833
  class Proto5 {
10988
- [TypeId9];
10834
+ [TypeId8];
10989
10835
  constructor() {
10990
- this[TypeId9] = TypeId9;
10836
+ this[TypeId8] = TypeId8;
10991
10837
  }
10992
10838
  [NodeInspectSymbol]() {
10993
10839
  return this.toJSON();
@@ -11078,7 +10924,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11078
10924
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11079
10925
 
11080
10926
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11081
- var TypeId10 = "~effect/http/HttpClientError";
10927
+ var TypeId9 = "~effect/http/HttpClientError";
11082
10928
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11083
10929
  constructor(props) {
11084
10930
  if ("cause" in props.reason) {
@@ -11090,7 +10936,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11090
10936
  super(props);
11091
10937
  }
11092
10938
  }
11093
- [TypeId10] = TypeId10;
10939
+ [TypeId9] = TypeId9;
11094
10940
  get request() {
11095
10941
  return this.reason.request;
11096
10942
  }
@@ -11194,7 +11040,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11194
11040
  }
11195
11041
  }
11196
11042
 
11197
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11043
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11198
11044
  _tag: /* @__PURE__ */ tag("HttpError"),
11199
11045
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11200
11046
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11227,7 +11073,7 @@ var updateContentLength = (headers, body) => {
11227
11073
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11228
11074
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11229
11075
  }
11230
- var make27 = (url, params, hash) => try_({
11076
+ var make26 = (url, params, hash) => try_({
11231
11077
  try: () => {
11232
11078
  const urlInstance = new URL(url, baseUrl());
11233
11079
  for (let i = 0;i < params.params.length; i++) {
@@ -11258,10 +11104,10 @@ var baseUrl = () => {
11258
11104
  };
11259
11105
 
11260
11106
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11261
- var TypeId11 = "~effect/http/HttpClientRequest";
11262
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11107
+ var TypeId10 = "~effect/http/HttpClientRequest";
11108
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11263
11109
  var Proto6 = {
11264
- [TypeId11]: TypeId11,
11110
+ [TypeId10]: TypeId10,
11265
11111
  ...BaseProto,
11266
11112
  toJSON() {
11267
11113
  return {
@@ -11289,14 +11135,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11289
11135
  return self;
11290
11136
  }
11291
11137
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
11292
- var make5 = (method) => (url, options) => modify(empty6, {
11138
+ var make4 = (method) => (url, options) => modify(empty6, {
11293
11139
  method,
11294
11140
  url,
11295
11141
  ...options ?? undefined
11296
11142
  });
11297
- var get = /* @__PURE__ */ make5("GET");
11298
- var post = /* @__PURE__ */ make5("POST");
11299
- var put = /* @__PURE__ */ make5("PUT");
11143
+ var get = /* @__PURE__ */ make4("GET");
11144
+ var post = /* @__PURE__ */ make4("POST");
11145
+ var put = /* @__PURE__ */ make4("PUT");
11300
11146
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11301
11147
  let result = self;
11302
11148
  if (options.method) {
@@ -11350,7 +11196,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11350
11196
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11351
11197
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11352
11198
  function toUrl(self) {
11353
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11199
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11354
11200
  if (isSuccess(r)) {
11355
11201
  return some(r.success);
11356
11202
  }
@@ -11358,7 +11204,7 @@ function toUrl(self) {
11358
11204
  }
11359
11205
 
11360
11206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11361
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11207
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11362
11208
  var schemaBodyJson = (schema, options) => {
11363
11209
  const decode = decodeEffect(toCodecJson(schema));
11364
11210
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11377,7 +11223,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11377
11223
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11378
11224
 
11379
11225
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11380
- var TypeId13 = "~effect/http/HttpClientResponse";
11226
+ var TypeId12 = "~effect/http/HttpClientResponse";
11381
11227
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11382
11228
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11383
11229
  reason: new StatusCodeError({
@@ -11388,16 +11234,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11388
11234
  }));
11389
11235
 
11390
11236
  class WebHttpClientResponse extends Class {
11237
+ [TypeId11];
11391
11238
  [TypeId12];
11392
- [TypeId13];
11393
11239
  request;
11394
11240
  source;
11395
11241
  constructor(request, source) {
11396
11242
  super();
11397
11243
  this.request = request;
11398
11244
  this.source = source;
11245
+ this[TypeId11] = TypeId11;
11399
11246
  this[TypeId12] = TypeId12;
11400
- this[TypeId13] = TypeId13;
11401
11247
  }
11402
11248
  toJSON() {
11403
11249
  return inspect(this, {
@@ -11569,7 +11415,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11569
11415
  };
11570
11416
 
11571
11417
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11572
- var TypeId14 = "~effect/http/HttpClient";
11418
+ var TypeId13 = "~effect/http/HttpClient";
11573
11419
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11574
11420
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11575
11421
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11586,7 +11432,7 @@ var makeWith2 = (postprocess, preprocess) => {
11586
11432
  return self;
11587
11433
  };
11588
11434
  var Proto7 = {
11589
- [TypeId14]: TypeId14,
11435
+ [TypeId13]: TypeId13,
11590
11436
  pipe() {
11591
11437
  return pipeArguments(this, arguments);
11592
11438
  },
@@ -11597,13 +11443,13 @@ var Proto7 = {
11597
11443
  };
11598
11444
  },
11599
11445
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11600
- return this.execute(make5(fullMethod)(url, options));
11446
+ return this.execute(make4(fullMethod)(url, options));
11601
11447
  }]))
11602
11448
  };
11603
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11449
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11604
11450
  const scopedController = scopedRequests.get(request);
11605
11451
  const controller = scopedController ?? new AbortController;
11606
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11452
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11607
11453
  if (isFailure(urlResult)) {
11608
11454
  return fail7(new HttpClientError({
11609
11455
  reason: new InvalidUrlError({
@@ -11737,8 +11583,8 @@ class InterruptibleResponse {
11737
11583
  this.original = original;
11738
11584
  this.controller = controller;
11739
11585
  }
11740
- [TypeId13] = TypeId13;
11741
11586
  [TypeId12] = TypeId12;
11587
+ [TypeId11] = TypeId11;
11742
11588
  applyInterrupt(effect) {
11743
11589
  return suspend3(() => {
11744
11590
  responseRegistry.unregister(this.original);
@@ -11836,7 +11682,7 @@ var detectStreamBodySupport = () => {
11836
11682
  return false;
11837
11683
  }
11838
11684
  };
11839
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11685
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11840
11686
  if (request.headers.upgrade !== undefined) {
11841
11687
  return fail7(new HttpClientError({
11842
11688
  reason: new TransportError({
@@ -11927,10 +11773,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11927
11773
  });
11928
11774
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11929
11775
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11930
- var TypeId15 = "~effect/socket/Socket";
11776
+ var TypeId14 = "~effect/socket/Socket";
11931
11777
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11932
- var make29 = (options) => Socket.of({
11933
- [TypeId15]: TypeId15,
11778
+ var make28 = (options) => Socket.of({
11779
+ [TypeId14]: TypeId14,
11934
11780
  reader: options.reader,
11935
11781
  writer: options.writer
11936
11782
  });
@@ -12253,7 +12099,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12253
12099
  write,
12254
12100
  writeAll
12255
12101
  });
12256
- return succeed6(make29({
12102
+ return succeed6(make28({
12257
12103
  reader,
12258
12104
  writer
12259
12105
  }));
@@ -15587,7 +15433,7 @@ function getStreamSchemas(schema) {
15587
15433
  }
15588
15434
  var schema = /* @__PURE__ */ declare(isStream);
15589
15435
  function Stream(success, error) {
15590
- return make16(schema.ast, {
15436
+ return make17(schema.ast, {
15591
15437
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15592
15438
  success,
15593
15439
  error
@@ -15595,9 +15441,9 @@ function Stream(success, error) {
15595
15441
  }
15596
15442
 
15597
15443
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15598
- var TypeId16 = "~effect/rpc/Rpc";
15444
+ var TypeId15 = "~effect/rpc/Rpc";
15599
15445
  var Proto8 = {
15600
- [TypeId16]: TypeId16,
15446
+ [TypeId15]: TypeId15,
15601
15447
  pipe() {
15602
15448
  return pipeArguments(this, arguments);
15603
15449
  },
@@ -15686,7 +15532,7 @@ var makeProto = (options) => {
15686
15532
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15687
15533
  return Rpc;
15688
15534
  };
15689
- var make6 = (tag, options) => {
15535
+ var make5 = (tag, options) => {
15690
15536
  const successSchema = options?.success ?? Void;
15691
15537
  const errorSchema = options?.error ?? Never;
15692
15538
  const defectSchema = options?.defect ?? Defect();
@@ -15764,7 +15610,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15764
15610
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15765
15611
 
15766
15612
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15767
- var TypeId17 = "~effect/rpc/RpcClientError";
15613
+ var TypeId16 = "~effect/rpc/RpcClientError";
15768
15614
 
15769
15615
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15770
15616
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15773,11 +15619,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15773
15619
  })) {
15774
15620
  }
15775
15621
 
15776
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15622
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15777
15623
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15778
15624
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15779
15625
  })) {
15780
- [TypeId17] = TypeId17;
15626
+ [TypeId16] = TypeId16;
15781
15627
  get message() {
15782
15628
  return `${this.reason._tag}: ${this.reason.message}`;
15783
15629
  }
@@ -15920,12 +15766,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15920
15766
  requests: options.requests,
15921
15767
  annotations: options.annotations
15922
15768
  });
15923
- var make7 = (...rpcs) => makeProto2({
15769
+ var make6 = (...rpcs) => makeProto2({
15924
15770
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15925
15771
  annotations: empty3()
15926
15772
  });
15927
15773
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15928
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15774
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15929
15775
  var Service = () => (id, options) => {
15930
15776
  const limit = getStackTraceLimit();
15931
15777
  let creationError;
@@ -15943,7 +15789,7 @@ var Service = () => (id, options) => {
15943
15789
  return creationError?.stack;
15944
15790
  }
15945
15791
  });
15946
- ServiceClass_[TypeId18] = TypeId18;
15792
+ ServiceClass_[TypeId17] = TypeId17;
15947
15793
  ServiceClass_.error = options?.error ?? Never;
15948
15794
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15949
15795
  return ServiceClass;
@@ -16029,77 +15875,77 @@ var ProgramOutcome = Union([
16029
15875
  Struct({ status: Literal("failed"), failureSummary: String4 })
16030
15876
  ]);
16031
15877
 
16032
- class RunnerReplicaRpcs extends make7(make6("Claim", {
15878
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
16033
15879
  payload: WorkUnitClaimInput,
16034
15880
  success: WorkUnitClaimResult,
16035
15881
  error: RunnerRpcError
16036
- }), make6("Heartbeat", {
15882
+ }), make5("Heartbeat", {
16037
15883
  payload: WorkUnitHeartbeatInput,
16038
15884
  success: WorkUnitHeartbeatResult,
16039
15885
  error: RunnerRpcError
16040
- }), make6("Complete", {
15886
+ }), make5("Complete", {
16041
15887
  payload: WorkUnitCompletion,
16042
15888
  error: RunnerRpcError
16043
- }), make6("Release", {
15889
+ }), make5("Release", {
16044
15890
  payload: WorkUnitReleaseInput,
16045
15891
  error: RunnerRpcError
16046
- }), make6("Signals", {
15892
+ }), make5("Signals", {
16047
15893
  payload: { runnerReplicaId: String4 },
16048
15894
  success: RunnerSignal,
16049
15895
  error: RunnerRpcError,
16050
15896
  stream: true
16051
- }), make6("ReportSteer", {
15897
+ }), make5("ReportSteer", {
16052
15898
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16053
15899
  success: Void,
16054
15900
  error: RunnerRpcError
16055
- }), make6("AppendTranscript", {
15901
+ }), make5("AppendTranscript", {
16056
15902
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16057
15903
  success: Void,
16058
15904
  error: RunnerRpcError
16059
- }), make6("CreateCheckpointFile", {
15905
+ }), make5("CreateCheckpointFile", {
16060
15906
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16061
15907
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16062
15908
  error: Union([RunnerRpcError, RunFileRefused])
16063
- }), make6("CheckpointFileParts", {
15909
+ }), make5("CheckpointFileParts", {
16064
15910
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16065
15911
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16066
15912
  error: RunnerRpcError
16067
- }), make6("CompleteCheckpointFile", {
15913
+ }), make5("CompleteCheckpointFile", {
16068
15914
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16069
15915
  success: RunFileRecord,
16070
15916
  error: RunnerRpcError
16071
- }), make6("SaveCheckpoint", {
15917
+ }), make5("SaveCheckpoint", {
16072
15918
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16073
15919
  success: Void,
16074
15920
  error: RunnerRpcError
16075
- }), make6("ResumeCheckpoint", {
15921
+ }), make5("ResumeCheckpoint", {
16076
15922
  payload: { lease: ProgramLease },
16077
15923
  success: UndefinedOr(ResumedCheckpoint),
16078
15924
  error: RunnerRpcError
16079
- }), make6("SettledCheckpoints", {
15925
+ }), make5("SettledCheckpoints", {
16080
15926
  success: ArraySchema(Struct({
16081
15927
  stepAttemptId: String4,
16082
15928
  ref: optionalKey(String4),
16083
15929
  repoBinding: optionalKey(WorkUnitRepoBinding)
16084
15930
  })),
16085
15931
  error: RunnerRpcError
16086
- }), make6("ForgetCheckpoints", {
15932
+ }), make5("ForgetCheckpoints", {
16087
15933
  payload: { stepAttemptIds: ArraySchema(String4) },
16088
15934
  success: Void,
16089
15935
  error: RunnerRpcError
16090
- }), make6("GitCredential", {
15936
+ }), make5("GitCredential", {
16091
15937
  payload: { repoBindingId: String4 },
16092
15938
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16093
15939
  error: RunnerRpcError
16094
- }), make6("Bundle", {
15940
+ }), make5("Bundle", {
16095
15941
  payload: { digest: String4 },
16096
15942
  success: Struct({ bundle: String4 }),
16097
15943
  error: RunnerRpcError
16098
- }), make6("SettledRuns", {
15944
+ }), make5("SettledRuns", {
16099
15945
  payload: { runIds: ArraySchema(String4) },
16100
15946
  success: ArraySchema(String4),
16101
15947
  error: RunnerRpcError
16102
- }), make6("KnownEvidence", {
15948
+ }), make5("KnownEvidence", {
16103
15949
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16104
15950
  success: ArraySchema(Struct({
16105
15951
  tree: String4,
@@ -16111,24 +15957,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
16111
15957
  })).middleware(RunnerAuthentication) {
16112
15958
  }
16113
15959
 
16114
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
15960
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16115
15961
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16116
15962
  error: RunnerRpcError
16117
- }), make6("DeferredDone", {
15963
+ }), make5("DeferredDone", {
16118
15964
  payload: { lease: ProgramLease, name: String4, exit: Json },
16119
15965
  error: RunnerRpcError
16120
- }), make6("ScheduleClock", {
15966
+ }), make5("ScheduleClock", {
16121
15967
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16122
15968
  error: RunnerRpcError
16123
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
15969
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16124
15970
  }
16125
- var RunHostStep = make6("RunHostStep", {
15971
+ var RunHostStep = make5("RunHostStep", {
16126
15972
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16127
15973
  success: Json,
16128
15974
  error: RunnerRpcError
16129
15975
  });
16130
15976
 
16131
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15977
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16132
15978
  payload: {
16133
15979
  lease: ProgramLease,
16134
15980
  step: String4,
@@ -16148,7 +15994,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16148
15994
  },
16149
15995
  success: Struct({ questionId: String4 }),
16150
15996
  error: RunnerRpcError
16151
- }), make6("StartAgentStep", {
15997
+ }), make5("StartAgentStep", {
16152
15998
  payload: {
16153
15999
  lease: ProgramLease,
16154
16000
  step: String4,
@@ -16165,7 +16011,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16165
16011
  },
16166
16012
  success: Struct({ stepAttemptId: String4 }),
16167
16013
  error: RunnerRpcError
16168
- }), make6("StartVerification", {
16014
+ }), make5("StartVerification", {
16169
16015
  payload: {
16170
16016
  lease: ProgramLease,
16171
16017
  step: String4,
@@ -16189,7 +16035,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16189
16035
  },
16190
16036
  success: Struct({ verificationId: String4 }),
16191
16037
  error: RunnerRpcError
16192
- }), make6("AwaitEvent", {
16038
+ }), make5("AwaitEvent", {
16193
16039
  payload: {
16194
16040
  lease: ProgramLease,
16195
16041
  step: String4,
@@ -16205,7 +16051,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16205
16051
  })))
16206
16052
  },
16207
16053
  error: RunnerRpcError
16208
- }), make6("ClaimResource", {
16054
+ }), make5("ClaimResource", {
16209
16055
  payload: {
16210
16056
  lease: ProgramLease,
16211
16057
  step: String4,
@@ -16216,7 +16062,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16216
16062
  claims: optionalKey(ArraySchema(String4))
16217
16063
  },
16218
16064
  error: RunnerRpcError
16219
- }), make6("AdmitChild", {
16065
+ }), make5("AdmitChild", {
16220
16066
  payload: {
16221
16067
  lease: ProgramLease,
16222
16068
  step: String4,
@@ -16227,7 +16073,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16227
16073
  },
16228
16074
  success: Struct({ runId: String4 }),
16229
16075
  error: RunnerRpcError
16230
- }), make6("AdmitChildById", {
16076
+ }), make5("AdmitChildById", {
16231
16077
  payload: {
16232
16078
  lease: ProgramLease,
16233
16079
  step: String4,
@@ -16238,18 +16084,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16238
16084
  },
16239
16085
  success: Struct({ runId: String4 }),
16240
16086
  error: RunnerRpcError
16241
- }), make6("CallableLoops", {
16087
+ }), make5("CallableLoops", {
16242
16088
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16243
16089
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16244
16090
  error: RunnerRpcError
16245
- }), make6("StopLaunches", {
16091
+ }), make5("StopLaunches", {
16246
16092
  payload: {
16247
16093
  lease: ProgramLease,
16248
16094
  step: String4,
16249
16095
  deferredNames: ArraySchema(String4)
16250
16096
  },
16251
16097
  error: RunnerRpcError
16252
- }), make6("StoreArtifact", {
16098
+ }), make5("StoreArtifact", {
16253
16099
  payload: {
16254
16100
  lease: ProgramLease,
16255
16101
  step: String4,
@@ -16261,7 +16107,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16261
16107
  },
16262
16108
  success: Struct({ artifactId: String4 }),
16263
16109
  error: RunnerRpcError
16264
- }), make6("RecordNote", {
16110
+ }), make5("RecordNote", {
16265
16111
  payload: {
16266
16112
  lease: ProgramLease,
16267
16113
  step: String4,
@@ -16270,7 +16116,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16270
16116
  kind: optional(Literals(["note", "blocker"]))
16271
16117
  },
16272
16118
  error: RunnerRpcError
16273
- }), make6("PerformHostEffect", {
16119
+ }), make5("PerformHostEffect", {
16274
16120
  payload: {
16275
16121
  lease: ProgramLease,
16276
16122
  step: String4,
@@ -16299,7 +16145,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16299
16145
  },
16300
16146
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16301
16147
  error: RunnerRpcError
16302
- }), make6("AlertTask", {
16148
+ }), make5("AlertTask", {
16303
16149
  payload: {
16304
16150
  lease: ProgramLease,
16305
16151
  step: String4,
@@ -16316,7 +16162,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16316
16162
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16317
16163
  }),
16318
16164
  error: RunnerRpcError
16319
- }), make6("ReadTranscripts", {
16165
+ }), make5("ReadTranscripts", {
16320
16166
  payload: {
16321
16167
  lease: ProgramLease,
16322
16168
  step: String4,
@@ -16351,7 +16197,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16351
16197
  })))
16352
16198
  }),
16353
16199
  error: RunnerRpcError
16354
- }), make6("PipelineStatus", {
16200
+ }), make5("PipelineStatus", {
16355
16201
  payload: {
16356
16202
  lease: ProgramLease,
16357
16203
  step: String4,
@@ -16391,11 +16237,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16391
16237
  }))
16392
16238
  }),
16393
16239
  error: RunnerRpcError
16394
- }), make6("ReportPipeline", {
16240
+ }), make5("ReportPipeline", {
16395
16241
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16396
16242
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16397
16243
  error: RunnerRpcError
16398
- }), make6("ReviewThreads", {
16244
+ }), make5("ReviewThreads", {
16399
16245
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16400
16246
  success: Struct({
16401
16247
  threads: ArraySchema(Struct({
@@ -16407,7 +16253,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16407
16253
  }))
16408
16254
  }),
16409
16255
  error: RunnerRpcError
16410
- }), make6("OpenChangeRequests", {
16256
+ }), make5("OpenChangeRequests", {
16411
16257
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16412
16258
  success: Struct({
16413
16259
  changeRequests: ArraySchema(Struct({
@@ -16421,7 +16267,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16421
16267
  }))
16422
16268
  }),
16423
16269
  error: RunnerRpcError
16424
- }), make6("OwnChangeRequests", {
16270
+ }), make5("OwnChangeRequests", {
16425
16271
  payload: { lease: ProgramLease, step: String4 },
16426
16272
  success: Struct({
16427
16273
  changeRequests: ArraySchema(Struct({
@@ -16434,7 +16280,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16434
16280
  }))
16435
16281
  }),
16436
16282
  error: RunnerRpcError
16437
- }), make6("Propose", {
16283
+ }), make5("Propose", {
16438
16284
  payload: {
16439
16285
  lease: ProgramLease,
16440
16286
  step: String4,
@@ -16463,7 +16309,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16463
16309
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16464
16310
  }),
16465
16311
  error: RunnerRpcError
16466
- }), make6("ReadProject", {
16312
+ }), make5("ReadProject", {
16467
16313
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16468
16314
  success: Struct({
16469
16315
  project: Struct({ id: String4, name: String4 }),
@@ -16486,7 +16332,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16486
16332
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16487
16333
  }),
16488
16334
  error: RunnerRpcError
16489
- }), make6("DraftUpdate", {
16335
+ }), make5("DraftUpdate", {
16490
16336
  payload: {
16491
16337
  lease: ProgramLease,
16492
16338
  step: String4,
@@ -16501,7 +16347,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16501
16347
  },
16502
16348
  success: Struct({ id: String4 }),
16503
16349
  error: RunnerRpcError
16504
- }), make6("CreatePlanTasks", {
16350
+ }), make5("CreatePlanTasks", {
16505
16351
  payload: {
16506
16352
  lease: ProgramLease,
16507
16353
  projectId: optionalKey(String4),
@@ -16522,15 +16368,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16522
16368
  },
16523
16369
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16524
16370
  error: RunnerRpcError
16525
- }), make6("IntegrationBranch", {
16371
+ }), make5("IntegrationBranch", {
16526
16372
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16527
16373
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16528
16374
  error: RunnerRpcError
16529
- }), make6("DeliveryBase", {
16375
+ }), make5("DeliveryBase", {
16530
16376
  payload: { lease: ProgramLease },
16531
16377
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16532
16378
  error: RunnerRpcError
16533
- }), make6("Branch", {
16379
+ }), make5("Branch", {
16534
16380
  payload: {
16535
16381
  lease: ProgramLease,
16536
16382
  branch: optionalKey(String4),
@@ -16545,7 +16391,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16545
16391
  created: Boolean2
16546
16392
  }),
16547
16393
  error: RunnerRpcError
16548
- }), make6("BranchChangeRequest", {
16394
+ }), make5("BranchChangeRequest", {
16549
16395
  payload: {
16550
16396
  lease: ProgramLease,
16551
16397
  step: String4,
@@ -16568,7 +16414,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16568
16414
  Struct({ status: Literal("elsewhere"), team: String4 })
16569
16415
  ]),
16570
16416
  error: RunnerRpcError
16571
- }), make6("MergeChangeRequest", {
16417
+ }), make5("MergeChangeRequest", {
16572
16418
  payload: {
16573
16419
  lease: ProgramLease,
16574
16420
  step: String4,
@@ -16586,7 +16432,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16586
16432
  Struct({ status: Literal("moved"), head: String4 })
16587
16433
  ]),
16588
16434
  error: RunnerRpcError
16589
- }), make6("ApproveChangeRequest", {
16435
+ }), make5("ApproveChangeRequest", {
16590
16436
  payload: {
16591
16437
  lease: ProgramLease,
16592
16438
  step: String4,
@@ -16602,7 +16448,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16602
16448
  Struct({ approved: Literal(false), reason: String4 })
16603
16449
  ]),
16604
16450
  error: RunnerRpcError
16605
- }), make6("CloseChangeRequest", {
16451
+ }), make5("CloseChangeRequest", {
16606
16452
  payload: {
16607
16453
  lease: ProgramLease,
16608
16454
  step: String4,
@@ -16612,7 +16458,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16612
16458
  },
16613
16459
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16614
16460
  error: RunnerRpcError
16615
- }), make6("RerunPipeline", {
16461
+ }), make5("RerunPipeline", {
16616
16462
  payload: {
16617
16463
  lease: ProgramLease,
16618
16464
  step: String4,
@@ -16622,7 +16468,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16622
16468
  },
16623
16469
  success: Struct({ head: String4, pipelines: Int }),
16624
16470
  error: RunnerRpcError
16625
- }), make6("PublishRelease", {
16471
+ }), make5("PublishRelease", {
16626
16472
  payload: {
16627
16473
  lease: ProgramLease,
16628
16474
  step: String4,
@@ -16636,7 +16482,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16636
16482
  },
16637
16483
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16638
16484
  error: RunnerRpcError
16639
- }), make6("RecordDeploy", {
16485
+ }), make5("RecordDeploy", {
16640
16486
  payload: {
16641
16487
  lease: ProgramLease,
16642
16488
  step: String4,
@@ -16648,7 +16494,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16648
16494
  },
16649
16495
  success: Deploy,
16650
16496
  error: RunnerRpcError
16651
- }), make6("DeployTarget", {
16497
+ }), make5("DeployTarget", {
16652
16498
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16653
16499
  success: Struct({
16654
16500
  target: String4,
@@ -16656,14 +16502,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16656
16502
  order: optionalKey(ArraySchema(String4))
16657
16503
  }),
16658
16504
  error: RunnerRpcError
16659
- }), RunHostStep, make6("ProgramSecrets", {
16505
+ }), RunHostStep, make5("ProgramSecrets", {
16660
16506
  payload: { lease: ProgramLease },
16661
16507
  success: Record(String4, String4),
16662
16508
  error: RunnerRpcError
16663
16509
  })).middleware(RunnerAuthentication) {
16664
16510
  }
16665
16511
 
16666
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16512
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16667
16513
  payload: {
16668
16514
  lease: ProgramLease,
16669
16515
  step: String4,
@@ -16675,11 +16521,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16675
16521
  },
16676
16522
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16677
16523
  error: Union([RunnerRpcError, RunFileRefused])
16678
- }), make6("RunFileParts", {
16524
+ }), make5("RunFileParts", {
16679
16525
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16680
16526
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16681
16527
  error: RunnerRpcError
16682
- }), make6("CompleteRunFile", {
16528
+ }), make5("CompleteRunFile", {
16683
16529
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16684
16530
  success: RunFileRecord,
16685
16531
  error: RunnerRpcError
@@ -16689,7 +16535,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16689
16535
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16690
16536
 
16691
16537
  // apps/cli/src/oauth.ts
16692
- var Scope2 = "openid profile email offline_access kitman:cli";
16538
+ var Scope = "openid profile email offline_access kitman:cli";
16693
16539
  var CallbackPath = "/auth/callback";
16694
16540
 
16695
16541
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16708,7 +16554,7 @@ function buildAuthorizeUrl(input) {
16708
16554
  url.searchParams.set("response_type", "code");
16709
16555
  url.searchParams.set("client_id", input.clientId);
16710
16556
  url.searchParams.set("redirect_uri", input.redirectUri);
16711
- url.searchParams.set("scope", Scope2);
16557
+ url.searchParams.set("scope", Scope);
16712
16558
  url.searchParams.set("code_challenge", input.codeChallenge);
16713
16559
  url.searchParams.set("code_challenge_method", "S256");
16714
16560
  url.searchParams.set("state", input.state);
@@ -17424,7 +17270,7 @@ var spawnedTransport = (env) => gen(function* () {
17424
17270
  const spawner = yield* ChildProcessSpawner;
17425
17271
  const input = yield* unbounded2();
17426
17272
  const encoder = new TextEncoder;
17427
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17273
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17428
17274
  extendEnv: false,
17429
17275
  env,
17430
17276
  stdin: fromQueue(input),
@@ -17455,7 +17301,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17455
17301
  const spawner = yield* ChildProcessSpawner;
17456
17302
  const env = coreEnv(options);
17457
17303
  const run = (args) => gen(function* () {
17458
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17304
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17459
17305
  const [stdout, stderr, exitCode] = yield* all3([
17460
17306
  mkString(decodeText(handle.stdout)),
17461
17307
  mkString(decodeText(handle.stderr)),
@@ -17481,7 +17327,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17481
17327
  }
17482
17328
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17483
17329
  const spawner = yield* ChildProcessSpawner;
17484
- const handle = yield* spawner.spawn(make3(command, args, {
17330
+ const handle = yield* spawner.spawn(make2(command, args, {
17485
17331
  stdin: "ignore",
17486
17332
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17487
17333
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17507,7 +17353,7 @@ var shellOutputTailChars2 = 64 * 1024;
17507
17353
  var runProcess2 = (argv, options) => gen(function* () {
17508
17354
  const spawner = yield* ChildProcessSpawner;
17509
17355
  const [command, ...args] = argv;
17510
- const handle = yield* spawner.spawn(make3(command, args, {
17356
+ const handle = yield* spawner.spawn(make2(command, args, {
17511
17357
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17512
17358
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17513
17359
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -18028,4 +17874,4 @@ function serviceChecks(declaration) {
18028
17874
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18029
17875
  }
18030
17876
 
18031
- 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
17877
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };