@kitman-sh/cli 0.16.1 → 0.17.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-hwqecp0m.js → chunk-0f67q0tf.js} +8 -8
  2. package/dist/{chunk-ft3gnwd1.js → chunk-0wqkz371.js} +3 -3
  3. package/dist/{chunk-bcqqrwsk.js → chunk-2928qj8m.js} +42 -26
  4. package/dist/{chunk-eavx040m.js → chunk-2sazk478.js} +4 -4
  5. package/dist/{chunk-tc7td60t.js → chunk-5me7tnrw.js} +3 -3
  6. package/dist/{chunk-8f632x21.js → chunk-829r4kya.js} +4 -4
  7. package/dist/{chunk-tx7et9g7.js → chunk-8r1a93rc.js} +4 -4
  8. package/dist/{chunk-djdhep8n.js → chunk-9a6wbk11.js} +3 -3
  9. package/dist/{chunk-9qfyb5r2.js → chunk-ebpjd7kg.js} +6 -6
  10. package/dist/{chunk-5s4sgrak.js → chunk-ekyj0bps.js} +7 -7
  11. package/dist/{chunk-1r026thg.js → chunk-g3jqqpky.js} +9 -9
  12. package/dist/{chunk-dxfab1aj.js → chunk-j37p2y71.js} +183 -348
  13. package/dist/{chunk-yja59yh8.js → chunk-jg1pjhba.js} +21 -21
  14. package/dist/{chunk-xy3hcdhr.js → chunk-kx8rpa62.js} +5 -5
  15. package/dist/{chunk-gwzzacep.js → chunk-m1qp6swh.js} +1 -1
  16. package/dist/{chunk-e42hjb3j.js → chunk-nf9rfrvv.js} +33 -33
  17. package/dist/{chunk-3b198ntn.js → chunk-nqh0pbgt.js} +1 -1
  18. package/dist/{chunk-f2y0z04q.js → chunk-pd3azxev.js} +1 -1
  19. package/dist/{chunk-4yjcehqr.js → chunk-pnckztvv.js} +19 -19
  20. package/dist/{chunk-scwj3w7m.js → chunk-qjxgew0k.js} +2 -2
  21. package/dist/{chunk-x83q18w0.js → chunk-r2kzvdrg.js} +1 -1
  22. package/dist/{chunk-b0b9v7t9.js → chunk-r3d2yjsh.js} +24 -24
  23. package/dist/{chunk-g1f0cjqe.js → chunk-vh2a72d1.js} +14 -60
  24. package/dist/{chunk-rfnasm3c.js → chunk-y64ssczv.js} +289 -71
  25. package/dist/{chunk-bkteq6b3.js → chunk-z59pvcbk.js} +187 -172
  26. package/dist/{chunk-sd8b4k1t.js → chunk-zy21drtv.js} +2 -2
  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,
@@ -91,9 +89,7 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
94
  make15,
99
95
  _await,
@@ -103,12 +99,8 @@ import {
103
99
  succeed4,
104
100
  doneUnsafe,
105
101
  TracerTimingEnabled,
106
- Scope,
107
- makeUnsafe6,
108
102
  provide,
109
- addFinalizerExit,
110
103
  addFinalizer,
111
- close,
112
104
  succeed5,
113
105
  effect,
114
106
  effectContext,
@@ -160,7 +152,6 @@ import {
160
152
  tapCause,
161
153
  retry,
162
154
  ignore,
163
- ignoreCause,
164
155
  orElseSucceed,
165
156
  timeout,
166
157
  timeoutOrElse,
@@ -172,7 +163,6 @@ import {
172
163
  context,
173
164
  contextWith,
174
165
  provide3,
175
- provideContext2,
176
166
  serviceOption,
177
167
  updateContext,
178
168
  provideService,
@@ -183,7 +173,6 @@ import {
183
173
  addFinalizer2,
184
174
  ensuring2,
185
175
  onError,
186
- onExit,
187
176
  cached,
188
177
  interrupt3,
189
178
  interruptible,
@@ -195,7 +184,6 @@ import {
195
184
  withParentSpan,
196
185
  forkScoped,
197
186
  runFork,
198
- runForkWith,
199
187
  runPromise,
200
188
  runPromiseWith,
201
189
  runSync,
@@ -205,7 +193,12 @@ import {
205
193
  clockWith,
206
194
  logError,
207
195
  effectify,
196
+ toNumber,
197
+ bytes,
208
198
  decode,
199
+ isRedacted,
200
+ make16,
201
+ value,
209
202
  defaultParseOptions,
210
203
  omit,
211
204
  map10,
@@ -215,7 +208,7 @@ import {
215
208
  decodeEffect,
216
209
  decodeUnknownOption,
217
210
  decodeOption,
218
- make16,
211
+ make17,
219
212
  isSchema,
220
213
  optionalKey,
221
214
  optional,
@@ -276,21 +269,16 @@ import {
276
269
  decodeJsonStringOption,
277
270
  encodeJsonStringSync,
278
271
  encodePrettyJsonString
279
- } from "./chunk-rfnasm3c.js";
272
+ } from "./chunk-y64ssczv.js";
280
273
  import {
281
274
  map,
282
275
  makeEquivalence,
283
- bytes,
284
- join,
285
- interrupt,
286
- getCurrent,
287
- runIn,
288
276
  BadArgument,
289
277
  systemError,
290
278
  badArgument,
291
279
  makeUnsafe2,
280
+ make7,
292
281
  make8,
293
- make9,
294
282
  sliding,
295
283
  unbounded2,
296
284
  offer,
@@ -306,6 +294,8 @@ import {
306
294
  isSink,
307
295
  fromChannel,
308
296
  drain,
297
+ make9,
298
+ get3,
309
299
  isStream,
310
300
  fromChannel2,
311
301
  callback,
@@ -346,21 +336,18 @@ import {
346
336
  optionalEnv,
347
337
  harnessesUnsupportedInSrt2,
348
338
  harnessesUnsupportedInDocker2
349
- } from "./chunk-bkteq6b3.js";
339
+ } from "./chunk-z59pvcbk.js";
350
340
  import {
351
- isRedacted,
352
- make,
353
- value,
354
341
  ExitCode,
355
342
  ProcessId,
356
343
  makeHandle,
357
- make2,
344
+ make,
358
345
  ChildProcessSpawner,
359
346
  display,
360
- make3,
347
+ make2,
361
348
  parseFdName,
362
349
  fdName
363
- } from "./chunk-g1f0cjqe.js";
350
+ } from "./chunk-vh2a72d1.js";
364
351
  import {
365
352
  isDateTime,
366
353
  Numeric,
@@ -373,8 +360,7 @@ import {
373
360
  SecretScope,
374
361
  SecretHosts,
375
362
  isSecretReference
376
- } from "./chunk-x83q18w0.js";
377
-
363
+ } from "./chunk-r2kzvdrg.js";
378
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
365
  var makeEquivalence3 = Tuple;
380
366
 
@@ -516,7 +502,7 @@ var fromDateUnsafe = (date) => {
516
502
  }
517
503
  return makeUtc(epochMillis);
518
504
  };
519
- var makeUnsafe7 = (input) => {
505
+ var makeUnsafe6 = (input) => {
520
506
  if (isDateTime2(input)) {
521
507
  return input;
522
508
  } else if (input instanceof Date) {
@@ -536,7 +522,7 @@ var makeUnsafe7 = (input) => {
536
522
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
537
523
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
538
524
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
539
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
525
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
540
526
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
541
527
  var nowUnsafe = () => makeUtc(Date.now());
542
528
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -643,7 +629,7 @@ class Metric$ {
643
629
  }
644
630
  hook(context) {
645
631
  const key = this.key(context);
646
- const registry = get3(context, MetricRegistry);
632
+ const registry = get4(context, MetricRegistry);
647
633
  let metadata = registry.get(key);
648
634
  if (isUndefined(metadata)) {
649
635
  metadata = this.metadata(this.createHooks());
@@ -652,11 +638,11 @@ class Metric$ {
652
638
  return metadata.hooks;
653
639
  }
654
640
  removeUnsafe(context) {
655
- get3(context, MetricRegistry).delete(this.key(context));
641
+ get4(context, MetricRegistry).delete(this.key(context));
656
642
  }
657
643
  registerUnsafe(context, hooks) {
658
644
  const key = this.key(context);
659
- const registry = get3(context, MetricRegistry);
645
+ const registry = get4(context, MetricRegistry);
660
646
  const metadata = this.metadata({
661
647
  get: hooks.get,
662
648
  update: constVoid,
@@ -672,7 +658,7 @@ class Metric$ {
672
658
  };
673
659
  }
674
660
  key(context) {
675
- const extraAttributes = get3(context, CurrentMetricAttributes);
661
+ const extraAttributes = get4(context, CurrentMetricAttributes);
676
662
  if (extraAttributes !== this.#extraAttributes) {
677
663
  this.#extraAttributes = extraAttributes;
678
664
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -915,160 +901,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
915
901
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
916
902
  var runMain = runMain2;
917
903
 
918
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
919
- var BigInt2 = globalThis.BigInt;
920
- var toNumber = (b) => {
921
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
922
- return none();
923
- }
924
- return some(Number(b));
925
- };
926
-
927
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
928
- var TypeId3 = "~effect/RcRef";
929
- var stateEmpty = {
930
- _tag: "Empty"
931
- };
932
- var stateClosed = {
933
- _tag: "Closed"
934
- };
935
- var variance = {
936
- _A: identity,
937
- _E: identity
938
- };
939
-
940
- class RcRefImpl {
941
- [TypeId3] = variance;
942
- pipe() {
943
- return pipeArguments(this, arguments);
944
- }
945
- state = stateEmpty;
946
- acquire;
947
- context;
948
- scope;
949
- idleTimeToLive;
950
- constructor(acquire, context, scope, idleTimeToLive) {
951
- this.acquire = acquire;
952
- this.context = context;
953
- this.scope = scope;
954
- this.idleTimeToLive = idleTimeToLive;
955
- }
956
- }
957
- var make17 = (options) => withFiber2((fiber) => {
958
- const context = fiber.context;
959
- const scope = get3(context, Scope);
960
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
961
- return as(addFinalizerExit(scope, () => {
962
- const state = ref.state;
963
- ref.state = stateClosed;
964
- if (state._tag === "Acquired")
965
- return close(state.scope, void_2);
966
- if (state._tag === "Acquiring")
967
- return interrupt(state.fiber);
968
- return void_3;
969
- }), ref);
970
- });
971
- var getState = (self, restore) => {
972
- switch (self.state._tag) {
973
- case "Closed": {
974
- return interrupt3;
975
- }
976
- case "Acquired": {
977
- const state = self.state;
978
- state.refCount++;
979
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
980
- }
981
- case "Acquiring": {
982
- const state = self.state;
983
- state.awaiters++;
984
- return awaitAcquiring(self, state, restore);
985
- }
986
- case "Empty": {
987
- const acquiring = {
988
- _tag: "Acquiring",
989
- fiber: undefined,
990
- awaiters: 1,
991
- acquired: undefined
992
- };
993
- self.state = acquiring;
994
- const scope = makeUnsafe6();
995
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
996
- if (self.state !== acquiring) {
997
- return interrupt3;
998
- }
999
- const state = {
1000
- _tag: "Acquired",
1001
- value,
1002
- scope,
1003
- fiber: undefined,
1004
- refCount: acquiring.awaiters,
1005
- invalidated: false
1006
- };
1007
- self.state = state;
1008
- acquiring.acquired = state;
1009
- return succeed6(state);
1010
- }), onExit((exit) => {
1011
- if (isSuccess2(exit))
1012
- return void_3;
1013
- if (self.state === acquiring)
1014
- self.state = stateEmpty;
1015
- return close(scope, exit);
1016
- }));
1017
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1018
- return awaitAcquiring(self, acquiring, restore);
1019
- }
1020
- }
1021
- };
1022
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1023
- const acquired = acquiring.acquired;
1024
- if (acquired !== undefined) {
1025
- return isFailure2(exit) ? release(self, acquired) : void_3;
1026
- }
1027
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1028
- return void_3;
1029
- self.state = stateEmpty;
1030
- return interrupt(acquiring.fiber);
1031
- });
1032
- var get4 = (self_) => {
1033
- const self = self_;
1034
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1035
- };
1036
- var release = (self, state) => {
1037
- state.refCount--;
1038
- if (state.refCount > 0) {
1039
- return void_3;
1040
- }
1041
- const idleTimeToLive = self.idleTimeToLive;
1042
- if (idleTimeToLive === undefined || state.invalidated) {
1043
- if (self.state === state) {
1044
- self.state = stateEmpty;
1045
- }
1046
- return close(state.scope, void_2);
1047
- } else if (!isFinite(idleTimeToLive)) {
1048
- return void_3;
1049
- }
1050
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1051
- if (self.state === state && state.refCount === 0) {
1052
- self.state = stateEmpty;
1053
- return ignoreCause(close(state.scope, void_2), {
1054
- log: "Unhandled",
1055
- message: "Unhandled error in RcRef finalizer"
1056
- });
1057
- }
1058
- return void_3;
1059
- })).pipe(ensuring2(sync2(() => {
1060
- state.fiber = undefined;
1061
- })), runForkWith(self.context), runIn(self.scope));
1062
- return void_3;
1063
- };
1064
-
1065
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1066
- var make18 = make17;
1067
- var get5 = get4;
1068
-
1069
904
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1070
- var makeUnsafe = makeUnsafe7;
1071
- var make19 = make4;
905
+ var makeUnsafe = makeUnsafe6;
906
+ var make18 = make3;
1072
907
  var now2 = now;
1073
908
  var nowUnsafe2 = nowUnsafe;
1074
909
  var toDateUtc2 = toDateUtc;
@@ -1283,7 +1118,7 @@ var readableToPullUnsafe = (options) => {
1283
1118
  const readable = options.readable;
1284
1119
  const chunkSize = options.chunkSize ?? 4096;
1285
1120
  const closeOnDone = options.closeOnDone ?? true;
1286
- const exit = options.exit ?? make8(undefined);
1121
+ const exit = options.exit ?? make7(undefined);
1287
1122
  const latch = options.latch ?? makeUnsafe2(false);
1288
1123
  function onReadable() {
1289
1124
  latch.openUnsafe();
@@ -1387,7 +1222,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1387
1222
  windowsHide: true
1388
1223
  }, onExit);
1389
1224
  };
1390
- var make20 = /* @__PURE__ */ gen(function* () {
1225
+ var make19 = /* @__PURE__ */ gen(function* () {
1391
1226
  const fs = yield* FileSystem;
1392
1227
  const path = yield* Path;
1393
1228
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1847,7 +1682,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1847
1682
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1848
1683
  const toOption = options.to ?? "stdin";
1849
1684
  if (toOption === "stdin") {
1850
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1685
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1851
1686
  ...command.options,
1852
1687
  stdin: {
1853
1688
  ...stdinConfig,
@@ -1867,7 +1702,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1867
1702
  type: "input",
1868
1703
  stream: sourceStream
1869
1704
  };
1870
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1705
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1871
1706
  ...command.options,
1872
1707
  additionalFds: {
1873
1708
  ...existingFds,
@@ -1875,7 +1710,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1875
1710
  }
1876
1711
  })));
1877
1712
  } else {
1878
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1713
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1879
1714
  ...command.options,
1880
1715
  stdin: {
1881
1716
  ...stdinConfig,
@@ -1914,9 +1749,9 @@ var make20 = /* @__PURE__ */ gen(function* () {
1914
1749
  }
1915
1750
  }
1916
1751
  });
1917
- return make2(spawnCommand);
1752
+ return make(spawnCommand);
1918
1753
  });
1919
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1754
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1920
1755
  var flattenCommand = (command) => {
1921
1756
  const commands = [];
1922
1757
  const pipeOptions = [];
@@ -2477,10 +2312,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2477
2312
  var layer2 = layer7;
2478
2313
 
2479
2314
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2480
- var TypeId4 = "~effect/Stdio";
2481
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2482
- var make21 = (options) => ({
2483
- [TypeId4]: TypeId4,
2315
+ var TypeId3 = "~effect/Stdio";
2316
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2317
+ var make20 = (options) => ({
2318
+ [TypeId3]: TypeId3,
2484
2319
  stdinIsTerminal: succeed6(false),
2485
2320
  stdoutIsTerminal: succeed6(false),
2486
2321
  stderrIsTerminal: succeed6(false),
@@ -2488,7 +2323,7 @@ var make21 = (options) => ({
2488
2323
  });
2489
2324
 
2490
2325
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2491
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2326
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2492
2327
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2493
2328
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2494
2329
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2688,7 +2523,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2688
2523
  const uuid = bytes(randomBytes(16));
2689
2524
  return format === "bytes" ? uuid : stringify(uuid);
2690
2525
  };
2691
- var make22 = (randomBytes) => {
2526
+ var make21 = (randomBytes) => {
2692
2527
  const randomBytesChecked = (size) => {
2693
2528
  checkSize(size);
2694
2529
  return randomBytes(size);
@@ -2722,7 +2557,7 @@ var fillRandom = (crypto2, size) => {
2722
2557
  }
2723
2558
  return bytes;
2724
2559
  };
2725
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2560
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2726
2561
  var randomBytesUnsafe = (size) => {
2727
2562
  checkSize(size);
2728
2563
  return fillRandom(globalThis.crypto, size);
@@ -2730,10 +2565,10 @@ var randomBytesUnsafe = (size) => {
2730
2565
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2731
2566
 
2732
2567
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2733
- var TypeId5 = "~effect/http/Cookies";
2568
+ var TypeId4 = "~effect/http/Cookies";
2734
2569
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2735
2570
  var Proto2 = {
2736
- [TypeId5]: TypeId5,
2571
+ [TypeId4]: TypeId4,
2737
2572
  ...BaseProto,
2738
2573
  toJSON() {
2739
2574
  return {
@@ -2912,14 +2747,14 @@ var tryDecodeURIComponent = (str) => {
2912
2747
  };
2913
2748
 
2914
2749
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2915
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2750
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2916
2751
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2917
- [TypeId6]: {
2918
- value: TypeId6
2752
+ [TypeId5]: {
2753
+ value: TypeId5
2919
2754
  },
2920
2755
  [symbolRedactable]: {
2921
2756
  value(context) {
2922
- return redact2(this, get3(context, CurrentRedactedNames));
2757
+ return redact2(this, get4(context, CurrentRedactedNames));
2923
2758
  }
2924
2759
  },
2925
2760
  toJSON: {
@@ -2944,7 +2779,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2944
2779
  value: BaseProto[NodeInspectSymbol]
2945
2780
  }
2946
2781
  });
2947
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2782
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2948
2783
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2949
2784
  var empty = /* @__PURE__ */ Object.create(Proto3);
2950
2785
  var fromInput = (input) => {
@@ -2969,21 +2804,21 @@ var fromInput = (input) => {
2969
2804
  };
2970
2805
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2971
2806
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2972
- const out = make23(self);
2807
+ const out = make22(self);
2973
2808
  out[key.toLowerCase()] = value;
2974
2809
  return out;
2975
2810
  });
2976
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2811
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2977
2812
  ...self,
2978
2813
  ...fromInput(headers)
2979
2814
  }));
2980
2815
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2981
- const out = make23(self);
2816
+ const out = make22(self);
2982
2817
  Object.assign(out, headers);
2983
2818
  return out;
2984
2819
  });
2985
2820
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2986
- const out = make23(self);
2821
+ const out = make22(self);
2987
2822
  delete out[key.toLowerCase()];
2988
2823
  return out;
2989
2824
  });
@@ -2995,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2995
2830
  if (typeof key === "string") {
2996
2831
  const k = key.toLowerCase();
2997
2832
  if (k in self) {
2998
- out[k] = make(self[k]);
2833
+ out[k] = make16(self[k]);
2999
2834
  }
3000
2835
  } else {
3001
2836
  for (const name in self) {
3002
2837
  if (name.search(key) !== -1) {
3003
- out[name] = make(self[name]);
2838
+ out[name] = make16(self[name]);
3004
2839
  }
3005
2840
  }
3006
2841
  }
@@ -3040,18 +2875,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3040
2875
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3041
2876
 
3042
2877
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3043
- var TypeId7 = "~effect/http/UrlParams";
3044
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2878
+ var TypeId6 = "~effect/http/UrlParams";
2879
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3045
2880
  var Proto4 = {
3046
2881
  ...PipeInspectableProto,
3047
- [TypeId7]: TypeId7,
2882
+ [TypeId6]: TypeId6,
3048
2883
  [Symbol.iterator]() {
3049
2884
  return this.params[Symbol.iterator]();
3050
2885
  },
3051
2886
  [symbolRedactable](context) {
3052
2887
  return {
3053
2888
  _id: "UrlParams",
3054
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2889
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3055
2890
  };
3056
2891
  },
3057
2892
  toJSON() {
@@ -3064,7 +2899,7 @@ var Proto4 = {
3064
2899
  return array(this.params.flat());
3065
2900
  }
3066
2901
  };
3067
- var make24 = (params) => {
2902
+ var make23 = (params) => {
3068
2903
  const self = Object.create(Proto4);
3069
2904
  self.params = params;
3070
2905
  return self;
@@ -3083,7 +2918,7 @@ var fromInput2 = (input) => {
3083
2918
  out.push(parsed[i]);
3084
2919
  }
3085
2920
  }
3086
- return make24(out);
2921
+ return make23(out);
3087
2922
  };
3088
2923
  var fromInputNested = (input) => {
3089
2924
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3109,7 +2944,7 @@ var fromInputNested = (input) => {
3109
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
3110
2945
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
3111
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3112
- var empty4 = /* @__PURE__ */ make24([]);
2947
+ var empty4 = /* @__PURE__ */ make23([]);
3113
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3114
2949
  const params = fromInput2(input).params.slice();
3115
2950
  const keys = new Set;
@@ -3121,12 +2956,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3121
2956
  continue;
3122
2957
  params.push(self.params[i]);
3123
2958
  }
3124
- return make24(params);
2959
+ return make23(params);
3125
2960
  });
3126
2961
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3127
2962
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
3128
2963
  const patterns = Array.isArray(key) ? key : [key];
3129
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2964
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3130
2965
  });
3131
2966
  var isRedactedName2 = isRedactedName;
3132
2967
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3177,13 +3012,13 @@ var decodeQueryKey = (key) => {
3177
3012
  return key;
3178
3013
  }
3179
3014
  };
3180
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3015
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3181
3016
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3182
3017
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3183
3018
  });
3184
3019
 
3185
3020
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3186
- var TypeId8 = "~effect/Terminal";
3021
+ var TypeId7 = "~effect/Terminal";
3187
3022
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3188
3023
 
3189
3024
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3192,17 +3027,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3192
3027
  [QuitErrorTypeId] = QuitErrorTypeId;
3193
3028
  }
3194
3029
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3195
- var make25 = (impl) => Terminal.of({
3030
+ var make24 = (impl) => Terminal.of({
3196
3031
  ...impl,
3197
- [TypeId8]: TypeId8
3032
+ [TypeId7]: TypeId7
3198
3033
  });
3199
3034
 
3200
3035
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3201
3036
  import * as readline from "readline";
3202
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3037
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3203
3038
  const stdin = process.stdin;
3204
3039
  const stdout = process.stdout;
3205
- const lines = yield* make9();
3040
+ const lines = yield* make8();
3206
3041
  let inputEnded = stdin.readableEnded;
3207
3042
  let readlineActive = false;
3208
3043
  const onStdinEnd = () => {
@@ -3213,7 +3048,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3213
3048
  };
3214
3049
  stdin.once("end", onStdinEnd);
3215
3050
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3216
- const rlRef = yield* make18({
3051
+ const rlRef = yield* make9({
3217
3052
  acquire: acquireRelease(sync2(() => {
3218
3053
  const rl = readline.createInterface({
3219
3054
  input: stdin,
@@ -3252,7 +3087,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3252
3087
  if (stdin.isTTY)
3253
3088
  stdin.setRawMode(enabled);
3254
3089
  });
3255
- const rawModeRef = yield* make18({
3090
+ const rawModeRef = yield* make9({
3256
3091
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3257
3092
  idleTimeToLive: "10 millis"
3258
3093
  });
@@ -3273,7 +3108,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3273
3108
  return queue;
3274
3109
  });
3275
3110
  const readInput = gen(function* () {
3276
- const queue = yield* make9();
3111
+ const queue = yield* make8();
3277
3112
  const handleKeypress = (s, k) => {
3278
3113
  const userInput = {
3279
3114
  input: fromUndefinedOr(s),
@@ -3303,14 +3138,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3303
3138
  if (inputEnded) {
3304
3139
  handleEnd();
3305
3140
  } else {
3306
- yield* get5(rlRef);
3307
- yield* get5(rawModeRef);
3141
+ yield* get3(rlRef);
3142
+ yield* get3(rawModeRef);
3308
3143
  stdin.once("end", handleEnd);
3309
3144
  }
3310
3145
  return queue;
3311
3146
  });
3312
3147
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3313
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3148
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3314
3149
  onSome: succeed6
3315
3150
  })), mapError2(() => new QuitError({}))));
3316
3151
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3321,7 +3156,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3321
3156
  cause: err
3322
3157
  }))));
3323
3158
  }));
3324
- return make25({
3159
+ return make24({
3325
3160
  columns,
3326
3161
  rows,
3327
3162
  size,
@@ -3330,7 +3165,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3330
3165
  display
3331
3166
  });
3332
3167
  });
3333
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3168
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3334
3169
  function defaultShouldQuit(input) {
3335
3170
  const key = input.key;
3336
3171
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3357,7 +3192,7 @@ function toDate(input) {
3357
3192
  return toDateUtc2(makeUnsafe(input));
3358
3193
  }
3359
3194
  function parseDate(input) {
3360
- return getOrUndefined(map4(make19(input), toDateUtc2));
3195
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3361
3196
  }
3362
3197
  function toIso(input) {
3363
3198
  return formatIso(makeUnsafe(input));
@@ -10965,11 +10800,11 @@ var TranscriptSearchResult = Struct({
10965
10800
  total: Int
10966
10801
  });
10967
10802
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10968
- var TypeId9 = "~effect/http/HttpBody";
10803
+ var TypeId8 = "~effect/http/HttpBody";
10969
10804
  class Proto5 {
10970
- [TypeId9];
10805
+ [TypeId8];
10971
10806
  constructor() {
10972
- this[TypeId9] = TypeId9;
10807
+ this[TypeId8] = TypeId8;
10973
10808
  }
10974
10809
  [NodeInspectSymbol]() {
10975
10810
  return this.toJSON();
@@ -11060,7 +10895,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11060
10895
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11061
10896
 
11062
10897
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11063
- var TypeId10 = "~effect/http/HttpClientError";
10898
+ var TypeId9 = "~effect/http/HttpClientError";
11064
10899
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11065
10900
  constructor(props) {
11066
10901
  if ("cause" in props.reason) {
@@ -11072,7 +10907,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11072
10907
  super(props);
11073
10908
  }
11074
10909
  }
11075
- [TypeId10] = TypeId10;
10910
+ [TypeId9] = TypeId9;
11076
10911
  get request() {
11077
10912
  return this.reason.request;
11078
10913
  }
@@ -11176,7 +11011,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11176
11011
  }
11177
11012
  }
11178
11013
 
11179
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11014
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11180
11015
  _tag: /* @__PURE__ */ tag("HttpError"),
11181
11016
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11182
11017
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11209,7 +11044,7 @@ var updateContentLength = (headers, body) => {
11209
11044
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11210
11045
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11211
11046
  }
11212
- var make27 = (url, params, hash) => try_({
11047
+ var make26 = (url, params, hash) => try_({
11213
11048
  try: () => {
11214
11049
  const urlInstance = new URL(url, baseUrl());
11215
11050
  for (let i = 0;i < params.params.length; i++) {
@@ -11240,10 +11075,10 @@ var baseUrl = () => {
11240
11075
  };
11241
11076
 
11242
11077
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11243
- var TypeId11 = "~effect/http/HttpClientRequest";
11244
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11078
+ var TypeId10 = "~effect/http/HttpClientRequest";
11079
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11245
11080
  var Proto6 = {
11246
- [TypeId11]: TypeId11,
11081
+ [TypeId10]: TypeId10,
11247
11082
  ...BaseProto,
11248
11083
  toJSON() {
11249
11084
  return {
@@ -11271,14 +11106,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11271
11106
  return self;
11272
11107
  }
11273
11108
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
11274
- var make5 = (method) => (url, options) => modify(empty6, {
11109
+ var make4 = (method) => (url, options) => modify(empty6, {
11275
11110
  method,
11276
11111
  url,
11277
11112
  ...options ?? undefined
11278
11113
  });
11279
- var get = /* @__PURE__ */ make5("GET");
11280
- var post = /* @__PURE__ */ make5("POST");
11281
- var put = /* @__PURE__ */ make5("PUT");
11114
+ var get = /* @__PURE__ */ make4("GET");
11115
+ var post = /* @__PURE__ */ make4("POST");
11116
+ var put = /* @__PURE__ */ make4("PUT");
11282
11117
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11283
11118
  let result = self;
11284
11119
  if (options.method) {
@@ -11332,7 +11167,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11332
11167
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11333
11168
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11334
11169
  function toUrl(self) {
11335
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11170
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11336
11171
  if (isSuccess(r)) {
11337
11172
  return some(r.success);
11338
11173
  }
@@ -11340,7 +11175,7 @@ function toUrl(self) {
11340
11175
  }
11341
11176
 
11342
11177
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11343
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11178
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11344
11179
  var schemaBodyJson = (schema, options) => {
11345
11180
  const decode = decodeEffect(toCodecJson(schema));
11346
11181
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11359,7 +11194,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11359
11194
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11360
11195
 
11361
11196
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11362
- var TypeId13 = "~effect/http/HttpClientResponse";
11197
+ var TypeId12 = "~effect/http/HttpClientResponse";
11363
11198
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11364
11199
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11365
11200
  reason: new StatusCodeError({
@@ -11370,16 +11205,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11370
11205
  }));
11371
11206
 
11372
11207
  class WebHttpClientResponse extends Class {
11208
+ [TypeId11];
11373
11209
  [TypeId12];
11374
- [TypeId13];
11375
11210
  request;
11376
11211
  source;
11377
11212
  constructor(request, source) {
11378
11213
  super();
11379
11214
  this.request = request;
11380
11215
  this.source = source;
11216
+ this[TypeId11] = TypeId11;
11381
11217
  this[TypeId12] = TypeId12;
11382
- this[TypeId13] = TypeId13;
11383
11218
  }
11384
11219
  toJSON() {
11385
11220
  return inspect(this, {
@@ -11551,7 +11386,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11551
11386
  };
11552
11387
 
11553
11388
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11554
- var TypeId14 = "~effect/http/HttpClient";
11389
+ var TypeId13 = "~effect/http/HttpClient";
11555
11390
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11556
11391
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11557
11392
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11568,7 +11403,7 @@ var makeWith2 = (postprocess, preprocess) => {
11568
11403
  return self;
11569
11404
  };
11570
11405
  var Proto7 = {
11571
- [TypeId14]: TypeId14,
11406
+ [TypeId13]: TypeId13,
11572
11407
  pipe() {
11573
11408
  return pipeArguments(this, arguments);
11574
11409
  },
@@ -11579,13 +11414,13 @@ var Proto7 = {
11579
11414
  };
11580
11415
  },
11581
11416
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11582
- return this.execute(make5(fullMethod)(url, options));
11417
+ return this.execute(make4(fullMethod)(url, options));
11583
11418
  }]))
11584
11419
  };
11585
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11420
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11586
11421
  const scopedController = scopedRequests.get(request);
11587
11422
  const controller = scopedController ?? new AbortController;
11588
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11423
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11589
11424
  if (isFailure(urlResult)) {
11590
11425
  return fail7(new HttpClientError({
11591
11426
  reason: new InvalidUrlError({
@@ -11719,8 +11554,8 @@ class InterruptibleResponse {
11719
11554
  this.original = original;
11720
11555
  this.controller = controller;
11721
11556
  }
11722
- [TypeId13] = TypeId13;
11723
11557
  [TypeId12] = TypeId12;
11558
+ [TypeId11] = TypeId11;
11724
11559
  applyInterrupt(effect) {
11725
11560
  return suspend3(() => {
11726
11561
  responseRegistry.unregister(this.original);
@@ -11818,7 +11653,7 @@ var detectStreamBodySupport = () => {
11818
11653
  return false;
11819
11654
  }
11820
11655
  };
11821
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11656
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11822
11657
  if (request.headers.upgrade !== undefined) {
11823
11658
  return fail7(new HttpClientError({
11824
11659
  reason: new TransportError({
@@ -11909,10 +11744,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11909
11744
  });
11910
11745
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11911
11746
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11912
- var TypeId15 = "~effect/socket/Socket";
11747
+ var TypeId14 = "~effect/socket/Socket";
11913
11748
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11914
- var make29 = (options) => Socket.of({
11915
- [TypeId15]: TypeId15,
11749
+ var make28 = (options) => Socket.of({
11750
+ [TypeId14]: TypeId14,
11916
11751
  reader: options.reader,
11917
11752
  writer: options.writer
11918
11753
  });
@@ -12235,7 +12070,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12235
12070
  write,
12236
12071
  writeAll
12237
12072
  });
12238
- return succeed6(make29({
12073
+ return succeed6(make28({
12239
12074
  reader,
12240
12075
  writer
12241
12076
  }));
@@ -15561,7 +15396,7 @@ function getStreamSchemas(schema) {
15561
15396
  }
15562
15397
  var schema = /* @__PURE__ */ declare(isStream);
15563
15398
  function Stream(success, error) {
15564
- return make16(schema.ast, {
15399
+ return make17(schema.ast, {
15565
15400
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15566
15401
  success,
15567
15402
  error
@@ -15569,9 +15404,9 @@ function Stream(success, error) {
15569
15404
  }
15570
15405
 
15571
15406
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15572
- var TypeId16 = "~effect/rpc/Rpc";
15407
+ var TypeId15 = "~effect/rpc/Rpc";
15573
15408
  var Proto8 = {
15574
- [TypeId16]: TypeId16,
15409
+ [TypeId15]: TypeId15,
15575
15410
  pipe() {
15576
15411
  return pipeArguments(this, arguments);
15577
15412
  },
@@ -15660,7 +15495,7 @@ var makeProto = (options) => {
15660
15495
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15661
15496
  return Rpc;
15662
15497
  };
15663
- var make6 = (tag, options) => {
15498
+ var make5 = (tag, options) => {
15664
15499
  const successSchema = options?.success ?? Void;
15665
15500
  const errorSchema = options?.error ?? Never;
15666
15501
  const defectSchema = options?.defect ?? Defect();
@@ -15738,7 +15573,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15738
15573
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15739
15574
 
15740
15575
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15741
- var TypeId17 = "~effect/rpc/RpcClientError";
15576
+ var TypeId16 = "~effect/rpc/RpcClientError";
15742
15577
 
15743
15578
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15744
15579
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15747,11 +15582,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15747
15582
  })) {
15748
15583
  }
15749
15584
 
15750
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15585
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15751
15586
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15752
15587
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15753
15588
  })) {
15754
- [TypeId17] = TypeId17;
15589
+ [TypeId16] = TypeId16;
15755
15590
  get message() {
15756
15591
  return `${this.reason._tag}: ${this.reason.message}`;
15757
15592
  }
@@ -15894,12 +15729,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15894
15729
  requests: options.requests,
15895
15730
  annotations: options.annotations
15896
15731
  });
15897
- var make7 = (...rpcs) => makeProto2({
15732
+ var make6 = (...rpcs) => makeProto2({
15898
15733
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15899
15734
  annotations: empty3()
15900
15735
  });
15901
15736
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15902
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15737
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15903
15738
  var Service = () => (id, options) => {
15904
15739
  const limit = getStackTraceLimit();
15905
15740
  let creationError;
@@ -15917,7 +15752,7 @@ var Service = () => (id, options) => {
15917
15752
  return creationError?.stack;
15918
15753
  }
15919
15754
  });
15920
- ServiceClass_[TypeId18] = TypeId18;
15755
+ ServiceClass_[TypeId17] = TypeId17;
15921
15756
  ServiceClass_.error = options?.error ?? Never;
15922
15757
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15923
15758
  return ServiceClass;
@@ -16000,77 +15835,77 @@ var ProgramOutcome = Union([
16000
15835
  Struct({ status: Literal("failed"), failureSummary: String4 })
16001
15836
  ]);
16002
15837
 
16003
- class RunnerReplicaRpcs extends make7(make6("Claim", {
15838
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
16004
15839
  payload: WorkUnitClaimInput,
16005
15840
  success: WorkUnitClaimResult,
16006
15841
  error: RunnerRpcError
16007
- }), make6("Heartbeat", {
15842
+ }), make5("Heartbeat", {
16008
15843
  payload: WorkUnitHeartbeatInput,
16009
15844
  success: WorkUnitHeartbeatResult,
16010
15845
  error: RunnerRpcError
16011
- }), make6("Complete", {
15846
+ }), make5("Complete", {
16012
15847
  payload: WorkUnitCompletion,
16013
15848
  error: RunnerRpcError
16014
- }), make6("Release", {
15849
+ }), make5("Release", {
16015
15850
  payload: WorkUnitReleaseInput,
16016
15851
  error: RunnerRpcError
16017
- }), make6("Signals", {
15852
+ }), make5("Signals", {
16018
15853
  payload: { runnerReplicaId: String4 },
16019
15854
  success: RunnerSignal,
16020
15855
  error: RunnerRpcError,
16021
15856
  stream: true
16022
- }), make6("ReportSteer", {
15857
+ }), make5("ReportSteer", {
16023
15858
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16024
15859
  success: Void,
16025
15860
  error: RunnerRpcError
16026
- }), make6("AppendTranscript", {
15861
+ }), make5("AppendTranscript", {
16027
15862
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16028
15863
  success: Void,
16029
15864
  error: RunnerRpcError
16030
- }), make6("CreateCheckpointFile", {
15865
+ }), make5("CreateCheckpointFile", {
16031
15866
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16032
15867
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16033
15868
  error: Union([RunnerRpcError, RunFileRefused])
16034
- }), make6("CheckpointFileParts", {
15869
+ }), make5("CheckpointFileParts", {
16035
15870
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16036
15871
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16037
15872
  error: RunnerRpcError
16038
- }), make6("CompleteCheckpointFile", {
15873
+ }), make5("CompleteCheckpointFile", {
16039
15874
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16040
15875
  success: RunFileRecord,
16041
15876
  error: RunnerRpcError
16042
- }), make6("SaveCheckpoint", {
15877
+ }), make5("SaveCheckpoint", {
16043
15878
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16044
15879
  success: Void,
16045
15880
  error: RunnerRpcError
16046
- }), make6("ResumeCheckpoint", {
15881
+ }), make5("ResumeCheckpoint", {
16047
15882
  payload: { lease: ProgramLease },
16048
15883
  success: UndefinedOr(ResumedCheckpoint),
16049
15884
  error: RunnerRpcError
16050
- }), make6("SettledCheckpoints", {
15885
+ }), make5("SettledCheckpoints", {
16051
15886
  success: ArraySchema(Struct({
16052
15887
  stepAttemptId: String4,
16053
15888
  ref: optionalKey(String4),
16054
15889
  repoBinding: optionalKey(WorkUnitRepoBinding)
16055
15890
  })),
16056
15891
  error: RunnerRpcError
16057
- }), make6("ForgetCheckpoints", {
15892
+ }), make5("ForgetCheckpoints", {
16058
15893
  payload: { stepAttemptIds: ArraySchema(String4) },
16059
15894
  success: Void,
16060
15895
  error: RunnerRpcError
16061
- }), make6("GitCredential", {
15896
+ }), make5("GitCredential", {
16062
15897
  payload: { repoBindingId: String4 },
16063
15898
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16064
15899
  error: RunnerRpcError
16065
- }), make6("Bundle", {
15900
+ }), make5("Bundle", {
16066
15901
  payload: { digest: String4 },
16067
15902
  success: Struct({ bundle: String4 }),
16068
15903
  error: RunnerRpcError
16069
- }), make6("SettledRuns", {
15904
+ }), make5("SettledRuns", {
16070
15905
  payload: { runIds: ArraySchema(String4) },
16071
15906
  success: ArraySchema(String4),
16072
15907
  error: RunnerRpcError
16073
- }), make6("KnownEvidence", {
15908
+ }), make5("KnownEvidence", {
16074
15909
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16075
15910
  success: ArraySchema(Struct({
16076
15911
  tree: String4,
@@ -16082,24 +15917,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
16082
15917
  })).middleware(RunnerAuthentication) {
16083
15918
  }
16084
15919
 
16085
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
15920
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16086
15921
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16087
15922
  error: RunnerRpcError
16088
- }), make6("DeferredDone", {
15923
+ }), make5("DeferredDone", {
16089
15924
  payload: { lease: ProgramLease, name: String4, exit: Json },
16090
15925
  error: RunnerRpcError
16091
- }), make6("ScheduleClock", {
15926
+ }), make5("ScheduleClock", {
16092
15927
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16093
15928
  error: RunnerRpcError
16094
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
15929
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16095
15930
  }
16096
- var RunHostStep = make6("RunHostStep", {
15931
+ var RunHostStep = make5("RunHostStep", {
16097
15932
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16098
15933
  success: Json,
16099
15934
  error: RunnerRpcError
16100
15935
  });
16101
15936
 
16102
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15937
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16103
15938
  payload: {
16104
15939
  lease: ProgramLease,
16105
15940
  step: String4,
@@ -16119,7 +15954,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16119
15954
  },
16120
15955
  success: Struct({ questionId: String4 }),
16121
15956
  error: RunnerRpcError
16122
- }), make6("StartAgentStep", {
15957
+ }), make5("StartAgentStep", {
16123
15958
  payload: {
16124
15959
  lease: ProgramLease,
16125
15960
  step: String4,
@@ -16136,7 +15971,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16136
15971
  },
16137
15972
  success: Struct({ stepAttemptId: String4 }),
16138
15973
  error: RunnerRpcError
16139
- }), make6("StartVerification", {
15974
+ }), make5("StartVerification", {
16140
15975
  payload: {
16141
15976
  lease: ProgramLease,
16142
15977
  step: String4,
@@ -16160,7 +15995,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16160
15995
  },
16161
15996
  success: Struct({ verificationId: String4 }),
16162
15997
  error: RunnerRpcError
16163
- }), make6("AwaitEvent", {
15998
+ }), make5("AwaitEvent", {
16164
15999
  payload: {
16165
16000
  lease: ProgramLease,
16166
16001
  step: String4,
@@ -16176,7 +16011,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16176
16011
  })))
16177
16012
  },
16178
16013
  error: RunnerRpcError
16179
- }), make6("ClaimResource", {
16014
+ }), make5("ClaimResource", {
16180
16015
  payload: {
16181
16016
  lease: ProgramLease,
16182
16017
  step: String4,
@@ -16187,7 +16022,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16187
16022
  claims: optionalKey(ArraySchema(String4))
16188
16023
  },
16189
16024
  error: RunnerRpcError
16190
- }), make6("AdmitChild", {
16025
+ }), make5("AdmitChild", {
16191
16026
  payload: {
16192
16027
  lease: ProgramLease,
16193
16028
  step: String4,
@@ -16198,7 +16033,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16198
16033
  },
16199
16034
  success: Struct({ runId: String4 }),
16200
16035
  error: RunnerRpcError
16201
- }), make6("AdmitChildById", {
16036
+ }), make5("AdmitChildById", {
16202
16037
  payload: {
16203
16038
  lease: ProgramLease,
16204
16039
  step: String4,
@@ -16209,18 +16044,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16209
16044
  },
16210
16045
  success: Struct({ runId: String4 }),
16211
16046
  error: RunnerRpcError
16212
- }), make6("CallableLoops", {
16047
+ }), make5("CallableLoops", {
16213
16048
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16214
16049
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16215
16050
  error: RunnerRpcError
16216
- }), make6("StopLaunches", {
16051
+ }), make5("StopLaunches", {
16217
16052
  payload: {
16218
16053
  lease: ProgramLease,
16219
16054
  step: String4,
16220
16055
  deferredNames: ArraySchema(String4)
16221
16056
  },
16222
16057
  error: RunnerRpcError
16223
- }), make6("StoreArtifact", {
16058
+ }), make5("StoreArtifact", {
16224
16059
  payload: {
16225
16060
  lease: ProgramLease,
16226
16061
  step: String4,
@@ -16232,7 +16067,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16232
16067
  },
16233
16068
  success: Struct({ artifactId: String4 }),
16234
16069
  error: RunnerRpcError
16235
- }), make6("RecordNote", {
16070
+ }), make5("RecordNote", {
16236
16071
  payload: {
16237
16072
  lease: ProgramLease,
16238
16073
  step: String4,
@@ -16241,7 +16076,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16241
16076
  kind: optional(Literals(["note", "blocker"]))
16242
16077
  },
16243
16078
  error: RunnerRpcError
16244
- }), make6("PerformHostEffect", {
16079
+ }), make5("PerformHostEffect", {
16245
16080
  payload: {
16246
16081
  lease: ProgramLease,
16247
16082
  step: String4,
@@ -16270,7 +16105,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16270
16105
  },
16271
16106
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16272
16107
  error: RunnerRpcError
16273
- }), make6("AlertTask", {
16108
+ }), make5("AlertTask", {
16274
16109
  payload: {
16275
16110
  lease: ProgramLease,
16276
16111
  step: String4,
@@ -16287,7 +16122,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16287
16122
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16288
16123
  }),
16289
16124
  error: RunnerRpcError
16290
- }), make6("ReadTranscripts", {
16125
+ }), make5("ReadTranscripts", {
16291
16126
  payload: {
16292
16127
  lease: ProgramLease,
16293
16128
  step: String4,
@@ -16322,7 +16157,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16322
16157
  })))
16323
16158
  }),
16324
16159
  error: RunnerRpcError
16325
- }), make6("PipelineStatus", {
16160
+ }), make5("PipelineStatus", {
16326
16161
  payload: {
16327
16162
  lease: ProgramLease,
16328
16163
  step: String4,
@@ -16362,11 +16197,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16362
16197
  }))
16363
16198
  }),
16364
16199
  error: RunnerRpcError
16365
- }), make6("ReportPipeline", {
16200
+ }), make5("ReportPipeline", {
16366
16201
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16367
16202
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16368
16203
  error: RunnerRpcError
16369
- }), make6("ReviewThreads", {
16204
+ }), make5("ReviewThreads", {
16370
16205
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16371
16206
  success: Struct({
16372
16207
  threads: ArraySchema(Struct({
@@ -16378,7 +16213,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16378
16213
  }))
16379
16214
  }),
16380
16215
  error: RunnerRpcError
16381
- }), make6("OpenChangeRequests", {
16216
+ }), make5("OpenChangeRequests", {
16382
16217
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16383
16218
  success: Struct({
16384
16219
  changeRequests: ArraySchema(Struct({
@@ -16392,7 +16227,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16392
16227
  }))
16393
16228
  }),
16394
16229
  error: RunnerRpcError
16395
- }), make6("OwnChangeRequests", {
16230
+ }), make5("OwnChangeRequests", {
16396
16231
  payload: { lease: ProgramLease, step: String4 },
16397
16232
  success: Struct({
16398
16233
  changeRequests: ArraySchema(Struct({
@@ -16405,7 +16240,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16405
16240
  }))
16406
16241
  }),
16407
16242
  error: RunnerRpcError
16408
- }), make6("Propose", {
16243
+ }), make5("Propose", {
16409
16244
  payload: {
16410
16245
  lease: ProgramLease,
16411
16246
  step: String4,
@@ -16434,7 +16269,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16434
16269
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16435
16270
  }),
16436
16271
  error: RunnerRpcError
16437
- }), make6("ReadProject", {
16272
+ }), make5("ReadProject", {
16438
16273
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16439
16274
  success: Struct({
16440
16275
  project: Struct({ id: String4, name: String4 }),
@@ -16457,7 +16292,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16457
16292
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16458
16293
  }),
16459
16294
  error: RunnerRpcError
16460
- }), make6("DraftUpdate", {
16295
+ }), make5("DraftUpdate", {
16461
16296
  payload: {
16462
16297
  lease: ProgramLease,
16463
16298
  step: String4,
@@ -16472,7 +16307,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16472
16307
  },
16473
16308
  success: Struct({ id: String4 }),
16474
16309
  error: RunnerRpcError
16475
- }), make6("CreatePlanTasks", {
16310
+ }), make5("CreatePlanTasks", {
16476
16311
  payload: {
16477
16312
  lease: ProgramLease,
16478
16313
  projectId: optionalKey(String4),
@@ -16493,15 +16328,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16493
16328
  },
16494
16329
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16495
16330
  error: RunnerRpcError
16496
- }), make6("IntegrationBranch", {
16331
+ }), make5("IntegrationBranch", {
16497
16332
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16498
16333
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16499
16334
  error: RunnerRpcError
16500
- }), make6("DeliveryBase", {
16335
+ }), make5("DeliveryBase", {
16501
16336
  payload: { lease: ProgramLease },
16502
16337
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16503
16338
  error: RunnerRpcError
16504
- }), make6("Branch", {
16339
+ }), make5("Branch", {
16505
16340
  payload: {
16506
16341
  lease: ProgramLease,
16507
16342
  branch: optionalKey(String4),
@@ -16516,7 +16351,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16516
16351
  created: Boolean2
16517
16352
  }),
16518
16353
  error: RunnerRpcError
16519
- }), make6("BranchChangeRequest", {
16354
+ }), make5("BranchChangeRequest", {
16520
16355
  payload: {
16521
16356
  lease: ProgramLease,
16522
16357
  step: String4,
@@ -16539,7 +16374,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16539
16374
  Struct({ status: Literal("elsewhere"), team: String4 })
16540
16375
  ]),
16541
16376
  error: RunnerRpcError
16542
- }), make6("MergeChangeRequest", {
16377
+ }), make5("MergeChangeRequest", {
16543
16378
  payload: {
16544
16379
  lease: ProgramLease,
16545
16380
  step: String4,
@@ -16557,7 +16392,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16557
16392
  Struct({ status: Literal("moved"), head: String4 })
16558
16393
  ]),
16559
16394
  error: RunnerRpcError
16560
- }), make6("ApproveChangeRequest", {
16395
+ }), make5("ApproveChangeRequest", {
16561
16396
  payload: {
16562
16397
  lease: ProgramLease,
16563
16398
  step: String4,
@@ -16573,7 +16408,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16573
16408
  Struct({ approved: Literal(false), reason: String4 })
16574
16409
  ]),
16575
16410
  error: RunnerRpcError
16576
- }), make6("CloseChangeRequest", {
16411
+ }), make5("CloseChangeRequest", {
16577
16412
  payload: {
16578
16413
  lease: ProgramLease,
16579
16414
  step: String4,
@@ -16583,7 +16418,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16583
16418
  },
16584
16419
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16585
16420
  error: RunnerRpcError
16586
- }), make6("RerunPipeline", {
16421
+ }), make5("RerunPipeline", {
16587
16422
  payload: {
16588
16423
  lease: ProgramLease,
16589
16424
  step: String4,
@@ -16593,7 +16428,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16593
16428
  },
16594
16429
  success: Struct({ head: String4, pipelines: Int }),
16595
16430
  error: RunnerRpcError
16596
- }), make6("PublishRelease", {
16431
+ }), make5("PublishRelease", {
16597
16432
  payload: {
16598
16433
  lease: ProgramLease,
16599
16434
  step: String4,
@@ -16607,7 +16442,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16607
16442
  },
16608
16443
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16609
16444
  error: RunnerRpcError
16610
- }), make6("RecordDeploy", {
16445
+ }), make5("RecordDeploy", {
16611
16446
  payload: {
16612
16447
  lease: ProgramLease,
16613
16448
  step: String4,
@@ -16619,7 +16454,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16619
16454
  },
16620
16455
  success: Deploy,
16621
16456
  error: RunnerRpcError
16622
- }), make6("DeployTarget", {
16457
+ }), make5("DeployTarget", {
16623
16458
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16624
16459
  success: Struct({
16625
16460
  target: String4,
@@ -16627,14 +16462,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16627
16462
  order: optionalKey(ArraySchema(String4))
16628
16463
  }),
16629
16464
  error: RunnerRpcError
16630
- }), RunHostStep, make6("ProgramSecrets", {
16465
+ }), RunHostStep, make5("ProgramSecrets", {
16631
16466
  payload: { lease: ProgramLease },
16632
16467
  success: Record(String4, String4),
16633
16468
  error: RunnerRpcError
16634
16469
  })).middleware(RunnerAuthentication) {
16635
16470
  }
16636
16471
 
16637
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16472
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16638
16473
  payload: {
16639
16474
  lease: ProgramLease,
16640
16475
  step: String4,
@@ -16646,11 +16481,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16646
16481
  },
16647
16482
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16648
16483
  error: Union([RunnerRpcError, RunFileRefused])
16649
- }), make6("RunFileParts", {
16484
+ }), make5("RunFileParts", {
16650
16485
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16651
16486
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16652
16487
  error: RunnerRpcError
16653
- }), make6("CompleteRunFile", {
16488
+ }), make5("CompleteRunFile", {
16654
16489
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16655
16490
  success: RunFileRecord,
16656
16491
  error: RunnerRpcError
@@ -16660,7 +16495,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16660
16495
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16661
16496
 
16662
16497
  // apps/cli/src/oauth.ts
16663
- var Scope2 = "openid profile email offline_access kitman:cli";
16498
+ var Scope = "openid profile email offline_access kitman:cli";
16664
16499
  var CallbackPath = "/auth/callback";
16665
16500
 
16666
16501
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16679,7 +16514,7 @@ function buildAuthorizeUrl(input) {
16679
16514
  url.searchParams.set("response_type", "code");
16680
16515
  url.searchParams.set("client_id", input.clientId);
16681
16516
  url.searchParams.set("redirect_uri", input.redirectUri);
16682
- url.searchParams.set("scope", Scope2);
16517
+ url.searchParams.set("scope", Scope);
16683
16518
  url.searchParams.set("code_challenge", input.codeChallenge);
16684
16519
  url.searchParams.set("code_challenge_method", "S256");
16685
16520
  url.searchParams.set("state", input.state);
@@ -17395,7 +17230,7 @@ var spawnedTransport = (env) => gen(function* () {
17395
17230
  const spawner = yield* ChildProcessSpawner;
17396
17231
  const input = yield* unbounded2();
17397
17232
  const encoder = new TextEncoder;
17398
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17233
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17399
17234
  extendEnv: false,
17400
17235
  env,
17401
17236
  stdin: fromQueue(input),
@@ -17426,7 +17261,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17426
17261
  const spawner = yield* ChildProcessSpawner;
17427
17262
  const env = coreEnv(options);
17428
17263
  const run = (args) => gen(function* () {
17429
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17264
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17430
17265
  const [stdout, stderr, exitCode] = yield* all3([
17431
17266
  mkString(decodeText(handle.stdout)),
17432
17267
  mkString(decodeText(handle.stderr)),
@@ -17452,7 +17287,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17452
17287
  }
17453
17288
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17454
17289
  const spawner = yield* ChildProcessSpawner;
17455
- const handle = yield* spawner.spawn(make3(command, args, {
17290
+ const handle = yield* spawner.spawn(make2(command, args, {
17456
17291
  stdin: "ignore",
17457
17292
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17458
17293
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17478,7 +17313,7 @@ var shellOutputTailChars2 = 64 * 1024;
17478
17313
  var runProcess2 = (argv, options) => gen(function* () {
17479
17314
  const spawner = yield* ChildProcessSpawner;
17480
17315
  const [command, ...args] = argv;
17481
- const handle = yield* spawner.spawn(make3(command, args, {
17316
+ const handle = yield* spawner.spawn(make2(command, args, {
17482
17317
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17483
17318
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17484
17319
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -17999,4 +17834,4 @@ function serviceChecks(declaration) {
17999
17834
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18000
17835
  }
18001
17836
 
18002
- 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, 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 };
17837
+ 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, 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 };