@kitman-sh/cli 0.10.56 → 0.10.58

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 (26) hide show
  1. package/dist/{chunk-bdxhb63t.js → chunk-4jbn6hma.js} +3 -3
  2. package/dist/{chunk-wbrv4705.js → chunk-59n1m39j.js} +7 -7
  3. package/dist/{chunk-7evwar6b.js → chunk-76y7v9rj.js} +1 -1
  4. package/dist/{chunk-4kssrezn.js → chunk-8y8ax1bt.js} +1 -1
  5. package/dist/{chunk-7kernadf.js → chunk-9rxwzn7y.js} +11 -11
  6. package/dist/{chunk-48dn3enn.js → chunk-ac19vqmc.js} +60 -60
  7. package/dist/{chunk-99ver3za.js → chunk-ac851090.js} +4 -4
  8. package/dist/{chunk-st9mym1j.js → chunk-ahtfwz4b.js} +2 -2
  9. package/dist/{chunk-hma82ban.js → chunk-bbsh3a70.js} +36 -36
  10. package/dist/{chunk-2t06f3vz.js → chunk-c6gyfqv4.js} +7 -7
  11. package/dist/{chunk-g53wn1q8.js → chunk-ec5df6ea.js} +2 -2
  12. package/dist/{chunk-2md3k83r.js → chunk-edf91eyv.js} +4 -4
  13. package/dist/{chunk-pvkwhesj.js → chunk-hegberew.js} +7 -7
  14. package/dist/{chunk-gwcqz1bj.js → chunk-jd8xhqgm.js} +1 -1
  15. package/dist/{chunk-emabyaj0.js → chunk-kvv9vzzr.js} +46 -186
  16. package/dist/{chunk-s97jvqxb.js → chunk-mfhmj6r6.js} +9 -9
  17. package/dist/{chunk-yfdktxzg.js → chunk-n1m89pnt.js} +5 -5
  18. package/dist/{chunk-61k67vxh.js → chunk-nk5h4cvx.js} +115 -73
  19. package/dist/{chunk-vn3x7bzf.js → chunk-qbyxcjy1.js} +11 -11
  20. package/dist/{chunk-w9kg1784.js → chunk-qkbnbr47.js} +21 -21
  21. package/dist/{chunk-jb9dcsfn.js → chunk-qmmer308.js} +345 -197
  22. package/dist/{chunk-kdyzndvx.js → chunk-tr80mjnp.js} +14 -60
  23. package/dist/{chunk-338c1c1x.js → chunk-zc214v7k.js} +8 -8
  24. package/dist/{chunk-zf3vq701.js → chunk-zxs37afg.js} +19 -19
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make12,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make13,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make14,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -194,6 +206,9 @@ import {
194
206
  logError,
195
207
  effectify,
196
208
  decode,
209
+ isRedacted,
210
+ make15,
211
+ value,
197
212
  defaultParseOptions,
198
213
  omit,
199
214
  map9,
@@ -202,7 +217,7 @@ import {
202
217
  decodeEffect,
203
218
  decodeUnknownOption,
204
219
  decodeOption,
205
- make17,
220
+ make16,
206
221
  isSchema,
207
222
  optionalKey,
208
223
  optional,
@@ -248,17 +263,22 @@ import {
248
263
  decodeJsonStringOption,
249
264
  encodeJsonStringSync,
250
265
  encodePrettyJsonString
251
- } from "./chunk-61k67vxh.js";
266
+ } from "./chunk-nk5h4cvx.js";
252
267
  import {
253
268
  map,
254
269
  makeEquivalence,
270
+ toNumber,
255
271
  bytes,
272
+ join,
273
+ interrupt,
274
+ getCurrent,
275
+ runIn,
256
276
  BadArgument,
257
277
  systemError,
258
278
  badArgument,
259
279
  makeUnsafe2,
280
+ make7,
260
281
  make8,
261
- make9,
262
282
  sliding,
263
283
  unbounded2,
264
284
  offer,
@@ -274,13 +294,11 @@ import {
274
294
  isSink,
275
295
  fromChannel,
276
296
  drain,
277
- make10,
278
- get3,
279
297
  isStream,
280
298
  fromChannel2,
281
299
  callback,
282
300
  empty2,
283
- make11,
301
+ make9,
284
302
  suspend,
285
303
  fail2,
286
304
  fromQueue,
@@ -306,16 +324,16 @@ import {
306
324
  mkArrayBuffer,
307
325
  toReadableStreamEffect,
308
326
  FileSystem,
309
- make12,
327
+ make10,
310
328
  FileTypeId,
311
329
  WatchBackend,
312
330
  Path,
313
- make13,
331
+ make11,
314
332
  option,
315
333
  String2,
316
334
  optionalEnv,
317
335
  harnessesUnsupportedInSrt2
318
- } from "./chunk-emabyaj0.js";
336
+ } from "./chunk-kvv9vzzr.js";
319
337
  import {
320
338
  isDateTime,
321
339
  Numeric,
@@ -327,7 +345,7 @@ import {
327
345
  SecretName,
328
346
  SecretScope,
329
347
  SecretHosts
330
- } from "./chunk-4kssrezn.js";
348
+ } from "./chunk-8y8ax1bt.js";
331
349
  import {
332
350
  toJsonValue,
333
351
  isOneOf,
@@ -341,22 +359,18 @@ import {
341
359
  isSymbol,
342
360
  isUndefined,
343
361
  kindOf
344
- } from "./chunk-7evwar6b.js";
362
+ } from "./chunk-76y7v9rj.js";
345
363
  import {
346
- isRedacted,
347
- make,
348
- value,
349
364
  ExitCode,
350
365
  ProcessId,
351
366
  makeHandle,
352
- make2,
367
+ make,
353
368
  ChildProcessSpawner,
354
369
  display,
355
- make3,
370
+ make2,
356
371
  parseFdName,
357
372
  fdName
358
- } from "./chunk-kdyzndvx.js";
359
-
373
+ } from "./chunk-tr80mjnp.js";
360
374
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
375
  var makeEquivalence3 = Tuple;
362
376
 
@@ -498,7 +512,7 @@ var fromDateUnsafe = (date) => {
498
512
  }
499
513
  return makeUtc(epochMillis);
500
514
  };
501
- var makeUnsafe6 = (input) => {
515
+ var makeUnsafe7 = (input) => {
502
516
  if (isDateTime2(input)) {
503
517
  return input;
504
518
  } else if (input instanceof Date) {
@@ -518,7 +532,7 @@ var makeUnsafe6 = (input) => {
518
532
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
533
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
534
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
535
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
536
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
537
  var nowUnsafe = () => makeUtc(Date.now());
524
538
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -625,7 +639,7 @@ class Metric$ {
625
639
  }
626
640
  hook(context) {
627
641
  const key = this.key(context);
628
- const registry = get4(context, MetricRegistry);
642
+ const registry = get3(context, MetricRegistry);
629
643
  let metadata = registry.get(key);
630
644
  if (isUndefined2(metadata)) {
631
645
  metadata = this.metadata(this.createHooks());
@@ -634,11 +648,11 @@ class Metric$ {
634
648
  return metadata.hooks;
635
649
  }
636
650
  removeUnsafe(context) {
637
- get4(context, MetricRegistry).delete(this.key(context));
651
+ get3(context, MetricRegistry).delete(this.key(context));
638
652
  }
639
653
  registerUnsafe(context, hooks) {
640
654
  const key = this.key(context);
641
- const registry = get4(context, MetricRegistry);
655
+ const registry = get3(context, MetricRegistry);
642
656
  const metadata = this.metadata({
643
657
  get: hooks.get,
644
658
  update: constVoid,
@@ -654,7 +668,7 @@ class Metric$ {
654
668
  };
655
669
  }
656
670
  key(context) {
657
- const extraAttributes = get4(context, CurrentMetricAttributes);
671
+ const extraAttributes = get3(context, CurrentMetricAttributes);
658
672
  if (extraAttributes !== this.#extraAttributes) {
659
673
  this.#extraAttributes = extraAttributes;
660
674
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -897,18 +911,151 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
897
911
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
898
912
  var runMain = runMain2;
899
913
 
900
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
901
- var BigInt2 = globalThis.BigInt;
902
- var toNumber = (b) => {
903
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
904
- return none();
914
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
915
+ var TypeId3 = "~effect/RcRef";
916
+ var stateEmpty = {
917
+ _tag: "Empty"
918
+ };
919
+ var stateClosed = {
920
+ _tag: "Closed"
921
+ };
922
+ var variance = {
923
+ _A: identity,
924
+ _E: identity
925
+ };
926
+
927
+ class RcRefImpl {
928
+ [TypeId3] = variance;
929
+ pipe() {
930
+ return pipeArguments(this, arguments);
905
931
  }
906
- return some(Number(b));
932
+ state = stateEmpty;
933
+ acquire;
934
+ context;
935
+ scope;
936
+ idleTimeToLive;
937
+ constructor(acquire, context, scope, idleTimeToLive) {
938
+ this.acquire = acquire;
939
+ this.context = context;
940
+ this.scope = scope;
941
+ this.idleTimeToLive = idleTimeToLive;
942
+ }
943
+ }
944
+ var make17 = (options) => withFiber2((fiber) => {
945
+ const context = fiber.context;
946
+ const scope = get3(context, Scope);
947
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
948
+ return as(addFinalizerExit(scope, () => {
949
+ const state = ref.state;
950
+ ref.state = stateClosed;
951
+ if (state._tag === "Acquired")
952
+ return close(state.scope, void_2);
953
+ if (state._tag === "Acquiring")
954
+ return interrupt(state.fiber);
955
+ return void_3;
956
+ }), ref);
957
+ });
958
+ var getState = (self, restore) => {
959
+ switch (self.state._tag) {
960
+ case "Closed": {
961
+ return interrupt3;
962
+ }
963
+ case "Acquired": {
964
+ const state = self.state;
965
+ state.refCount++;
966
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
967
+ }
968
+ case "Acquiring": {
969
+ const state = self.state;
970
+ state.awaiters++;
971
+ return awaitAcquiring(self, state, restore);
972
+ }
973
+ case "Empty": {
974
+ const acquiring = {
975
+ _tag: "Acquiring",
976
+ fiber: undefined,
977
+ awaiters: 1,
978
+ acquired: undefined
979
+ };
980
+ self.state = acquiring;
981
+ const scope = makeUnsafe6();
982
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
983
+ if (self.state !== acquiring) {
984
+ return interrupt3;
985
+ }
986
+ const state = {
987
+ _tag: "Acquired",
988
+ value,
989
+ scope,
990
+ fiber: undefined,
991
+ refCount: acquiring.awaiters,
992
+ invalidated: false
993
+ };
994
+ self.state = state;
995
+ acquiring.acquired = state;
996
+ return succeed6(state);
997
+ }), onExit((exit) => {
998
+ if (isSuccess2(exit))
999
+ return void_3;
1000
+ if (self.state === acquiring)
1001
+ self.state = stateEmpty;
1002
+ return close(scope, exit);
1003
+ }));
1004
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1005
+ return awaitAcquiring(self, acquiring, restore);
1006
+ }
1007
+ }
1008
+ };
1009
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1010
+ const acquired = acquiring.acquired;
1011
+ if (acquired !== undefined) {
1012
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1013
+ }
1014
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1015
+ return void_3;
1016
+ self.state = stateEmpty;
1017
+ return interrupt(acquiring.fiber);
1018
+ });
1019
+ var get4 = (self_) => {
1020
+ const self = self_;
1021
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
907
1022
  };
1023
+ var release = (self, state) => {
1024
+ state.refCount--;
1025
+ if (state.refCount > 0) {
1026
+ return void_3;
1027
+ }
1028
+ const idleTimeToLive = self.idleTimeToLive;
1029
+ if (idleTimeToLive === undefined || state.invalidated) {
1030
+ if (self.state === state) {
1031
+ self.state = stateEmpty;
1032
+ }
1033
+ return close(state.scope, void_2);
1034
+ } else if (!isFinite(idleTimeToLive)) {
1035
+ return void_3;
1036
+ }
1037
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1038
+ if (self.state === state && state.refCount === 0) {
1039
+ self.state = stateEmpty;
1040
+ return ignoreCause(close(state.scope, void_2), {
1041
+ log: "Unhandled",
1042
+ message: "Unhandled error in RcRef finalizer"
1043
+ });
1044
+ }
1045
+ return void_3;
1046
+ })).pipe(ensuring2(sync2(() => {
1047
+ state.fiber = undefined;
1048
+ })), runForkWith(self.context), runIn(self.scope));
1049
+ return void_3;
1050
+ };
1051
+
1052
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1053
+ var make18 = make17;
1054
+ var get5 = get4;
908
1055
 
909
1056
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
- var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
1057
+ var makeUnsafe = makeUnsafe7;
1058
+ var make19 = make3;
912
1059
  var now2 = now;
913
1060
  var nowUnsafe2 = nowUnsafe;
914
1061
  var toDateUtc2 = toDateUtc;
@@ -1123,7 +1270,7 @@ var readableToPullUnsafe = (options) => {
1123
1270
  const readable = options.readable;
1124
1271
  const chunkSize = options.chunkSize ?? 4096;
1125
1272
  const closeOnDone = options.closeOnDone ?? true;
1126
- const exit = options.exit ?? make8(undefined);
1273
+ const exit = options.exit ?? make7(undefined);
1127
1274
  const latch = options.latch ?? makeUnsafe2(false);
1128
1275
  function onReadable() {
1129
1276
  latch.openUnsafe();
@@ -1227,7 +1374,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1227
1374
  windowsHide: true
1228
1375
  }, onExit);
1229
1376
  };
1230
- var make19 = /* @__PURE__ */ gen(function* () {
1377
+ var make20 = /* @__PURE__ */ gen(function* () {
1231
1378
  const fs = yield* FileSystem;
1232
1379
  const path = yield* Path;
1233
1380
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1687,7 +1834,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1687
1834
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1688
1835
  const toOption = options.to ?? "stdin";
1689
1836
  if (toOption === "stdin") {
1690
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1837
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1691
1838
  ...command.options,
1692
1839
  stdin: {
1693
1840
  ...stdinConfig,
@@ -1707,7 +1854,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1854
  type: "input",
1708
1855
  stream: sourceStream
1709
1856
  };
1710
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1857
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1711
1858
  ...command.options,
1712
1859
  additionalFds: {
1713
1860
  ...existingFds,
@@ -1715,7 +1862,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1715
1862
  }
1716
1863
  })));
1717
1864
  } else {
1718
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1865
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1719
1866
  ...command.options,
1720
1867
  stdin: {
1721
1868
  ...stdinConfig,
@@ -1754,9 +1901,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1754
1901
  }
1755
1902
  }
1756
1903
  });
1757
- return make2(spawnCommand);
1904
+ return make(spawnCommand);
1758
1905
  });
1759
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1906
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1760
1907
  var flattenCommand = (command) => {
1761
1908
  const commands = [];
1762
1909
  const pipeOptions = [];
@@ -2240,7 +2387,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2387
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2388
  }
2242
2389
  });
2243
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2390
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make10({
2244
2391
  access: access2,
2245
2392
  chmod: chmod2,
2246
2393
  chown: chown2,
@@ -2300,15 +2447,15 @@ var fileUrlOps = (windows) => ({
2300
2447
  })
2301
2448
  })
2302
2449
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2450
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2304
2451
  ...NodePath.posix,
2305
2452
  .../* @__PURE__ */ fileUrlOps(false)
2306
2453
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2454
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2308
2455
  ...NodePath.win32,
2309
2456
  .../* @__PURE__ */ fileUrlOps(true)
2310
2457
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2458
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2312
2459
  ...NodePath,
2313
2460
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2461
  }));
@@ -2317,10 +2464,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2317
2464
  var layer2 = layer7;
2318
2465
 
2319
2466
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2320
- var TypeId3 = "~effect/Stdio";
2321
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
- var make20 = (options) => ({
2323
- [TypeId3]: TypeId3,
2467
+ var TypeId4 = "~effect/Stdio";
2468
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2469
+ var make21 = (options) => ({
2470
+ [TypeId4]: TypeId4,
2324
2471
  stdinIsTerminal: succeed6(false),
2325
2472
  stdoutIsTerminal: succeed6(false),
2326
2473
  stderrIsTerminal: succeed6(false),
@@ -2328,7 +2475,7 @@ var make20 = (options) => ({
2328
2475
  });
2329
2476
 
2330
2477
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2331
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2478
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2332
2479
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2333
2480
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2334
2481
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2528,7 +2675,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2528
2675
  const uuid = bytes(randomBytes(16));
2529
2676
  return format === "bytes" ? uuid : stringify(uuid);
2530
2677
  };
2531
- var make21 = (randomBytes) => {
2678
+ var make22 = (randomBytes) => {
2532
2679
  const randomBytesChecked = (size) => {
2533
2680
  checkSize(size);
2534
2681
  return randomBytes(size);
@@ -2562,13 +2709,13 @@ var fillRandom = (crypto2, size) => {
2562
2709
  }
2563
2710
  return bytes;
2564
2711
  };
2565
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2712
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2566
2713
 
2567
2714
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2568
- var TypeId4 = "~effect/http/Cookies";
2715
+ var TypeId5 = "~effect/http/Cookies";
2569
2716
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2570
2717
  var Proto2 = {
2571
- [TypeId4]: TypeId4,
2718
+ [TypeId5]: TypeId5,
2572
2719
  ...BaseProto,
2573
2720
  toJSON() {
2574
2721
  return {
@@ -2747,14 +2894,14 @@ var tryDecodeURIComponent = (str) => {
2747
2894
  };
2748
2895
 
2749
2896
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2750
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2897
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
2898
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2752
- [TypeId5]: {
2753
- value: TypeId5
2899
+ [TypeId6]: {
2900
+ value: TypeId6
2754
2901
  },
2755
2902
  [symbolRedactable]: {
2756
2903
  value(context) {
2757
- return redact2(this, get4(context, CurrentRedactedNames));
2904
+ return redact2(this, get3(context, CurrentRedactedNames));
2758
2905
  }
2759
2906
  },
2760
2907
  toJSON: {
@@ -2779,7 +2926,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2779
2926
  value: BaseProto[NodeInspectSymbol]
2780
2927
  }
2781
2928
  });
2782
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2929
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
2930
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2784
2931
  var empty = /* @__PURE__ */ Object.create(Proto3);
2785
2932
  var fromInput = (input) => {
@@ -2804,21 +2951,21 @@ var fromInput = (input) => {
2804
2951
  };
2805
2952
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2806
2953
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2807
- const out = make22(self);
2954
+ const out = make23(self);
2808
2955
  out[key.toLowerCase()] = value;
2809
2956
  return out;
2810
2957
  });
2811
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2958
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
2959
  ...self,
2813
2960
  ...fromInput(headers)
2814
2961
  }));
2815
2962
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2816
- const out = make22(self);
2963
+ const out = make23(self);
2817
2964
  Object.assign(out, headers);
2818
2965
  return out;
2819
2966
  });
2820
2967
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2821
- const out = make22(self);
2968
+ const out = make23(self);
2822
2969
  delete out[key.toLowerCase()];
2823
2970
  return out;
2824
2971
  });
@@ -2830,12 +2977,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
2977
  if (typeof key === "string") {
2831
2978
  const k = key.toLowerCase();
2832
2979
  if (k in self) {
2833
- out[k] = make(self[k]);
2980
+ out[k] = make15(self[k]);
2834
2981
  }
2835
2982
  } else {
2836
2983
  for (const name in self) {
2837
2984
  if (name.search(key) !== -1) {
2838
- out[name] = make(self[name]);
2985
+ out[name] = make15(self[name]);
2839
2986
  }
2840
2987
  }
2841
2988
  }
@@ -2875,18 +3022,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2875
3022
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2876
3023
 
2877
3024
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2878
- var TypeId6 = "~effect/http/UrlParams";
2879
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3025
+ var TypeId7 = "~effect/http/UrlParams";
3026
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
3027
  var Proto4 = {
2881
3028
  ...PipeInspectableProto,
2882
- [TypeId6]: TypeId6,
3029
+ [TypeId7]: TypeId7,
2883
3030
  [Symbol.iterator]() {
2884
3031
  return this.params[Symbol.iterator]();
2885
3032
  },
2886
3033
  [symbolRedactable](context) {
2887
3034
  return {
2888
3035
  _id: "UrlParams",
2889
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3036
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
3037
  };
2891
3038
  },
2892
3039
  toJSON() {
@@ -2899,7 +3046,7 @@ var Proto4 = {
2899
3046
  return array(this.params.flat());
2900
3047
  }
2901
3048
  };
2902
- var make23 = (params) => {
3049
+ var make24 = (params) => {
2903
3050
  const self = Object.create(Proto4);
2904
3051
  self.params = params;
2905
3052
  return self;
@@ -2918,7 +3065,7 @@ var fromInput2 = (input) => {
2918
3065
  out.push(parsed[i]);
2919
3066
  }
2920
3067
  }
2921
- return make23(out);
3068
+ return make24(out);
2922
3069
  };
2923
3070
  var fromInputNested = (input) => {
2924
3071
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2942,9 +3089,9 @@ var fromInputNested = (input) => {
2942
3089
  return out;
2943
3090
  };
2944
3091
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3092
+ var Equivalence3 = /* @__PURE__ */ make12((a, b) => arrayEquivalence(a.params, b.params));
2946
3093
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
- var empty4 = /* @__PURE__ */ make23([]);
3094
+ var empty4 = /* @__PURE__ */ make24([]);
2948
3095
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2949
3096
  const params = fromInput2(input).params.slice();
2950
3097
  const keys = new Set;
@@ -2956,11 +3103,11 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2956
3103
  continue;
2957
3104
  params.push(self.params[i]);
2958
3105
  }
2959
- return make23(params);
3106
+ return make24(params);
2960
3107
  });
2961
3108
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2962
3109
  const patterns = Array.isArray(key) ? key : [key];
2963
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
3110
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make15(value) : value]);
2964
3111
  });
2965
3112
  var isRedactedName2 = isRedactedName;
2966
3113
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3011,13 +3158,13 @@ var decodeQueryKey = (key) => {
3011
3158
  return key;
3012
3159
  }
3013
3160
  };
3014
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3161
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3015
3162
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3016
3163
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3017
3164
  });
3018
3165
 
3019
3166
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3020
- var TypeId7 = "~effect/Terminal";
3167
+ var TypeId8 = "~effect/Terminal";
3021
3168
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3022
3169
 
3023
3170
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3026,17 +3173,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3026
3173
  [QuitErrorTypeId] = QuitErrorTypeId;
3027
3174
  }
3028
3175
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3029
- var make24 = (impl) => Terminal.of({
3176
+ var make25 = (impl) => Terminal.of({
3030
3177
  ...impl,
3031
- [TypeId7]: TypeId7
3178
+ [TypeId8]: TypeId8
3032
3179
  });
3033
3180
 
3034
3181
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3035
3182
  import * as readline from "readline";
3036
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3183
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3037
3184
  const stdin = process.stdin;
3038
3185
  const stdout = process.stdout;
3039
- const lines = yield* make9();
3186
+ const lines = yield* make8();
3040
3187
  let inputEnded = stdin.readableEnded;
3041
3188
  let readlineActive = false;
3042
3189
  const onStdinEnd = () => {
@@ -3047,7 +3194,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3047
3194
  };
3048
3195
  stdin.once("end", onStdinEnd);
3049
3196
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3050
- const rlRef = yield* make10({
3197
+ const rlRef = yield* make18({
3051
3198
  acquire: acquireRelease(sync2(() => {
3052
3199
  const rl = readline.createInterface({
3053
3200
  input: stdin,
@@ -3086,7 +3233,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3086
3233
  if (stdin.isTTY)
3087
3234
  stdin.setRawMode(enabled);
3088
3235
  });
3089
- const rawModeRef = yield* make10({
3236
+ const rawModeRef = yield* make18({
3090
3237
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3091
3238
  idleTimeToLive: "10 millis"
3092
3239
  });
@@ -3107,7 +3254,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3107
3254
  return queue;
3108
3255
  });
3109
3256
  const readInput = gen(function* () {
3110
- const queue = yield* make9();
3257
+ const queue = yield* make8();
3111
3258
  const handleKeypress = (s, k) => {
3112
3259
  const userInput = {
3113
3260
  input: fromUndefinedOr(s),
@@ -3137,14 +3284,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3137
3284
  if (inputEnded) {
3138
3285
  handleEnd();
3139
3286
  } else {
3140
- yield* get3(rlRef);
3141
- yield* get3(rawModeRef);
3287
+ yield* get5(rlRef);
3288
+ yield* get5(rawModeRef);
3142
3289
  stdin.once("end", handleEnd);
3143
3290
  }
3144
3291
  return queue;
3145
3292
  });
3146
3293
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3147
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3294
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3148
3295
  onSome: succeed6
3149
3296
  })), mapError2(() => new QuitError({}))));
3150
3297
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3155,7 +3302,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3155
3302
  cause: err
3156
3303
  }))));
3157
3304
  }));
3158
- return make24({
3305
+ return make25({
3159
3306
  columns,
3160
3307
  rows,
3161
3308
  size,
@@ -3164,7 +3311,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3164
3311
  display
3165
3312
  });
3166
3313
  });
3167
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3314
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3168
3315
  function defaultShouldQuit(input) {
3169
3316
  const key = input.key;
3170
3317
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3191,7 +3338,7 @@ function toDate(input) {
3191
3338
  return toDateUtc2(makeUnsafe(input));
3192
3339
  }
3193
3340
  function parseDate(input) {
3194
- return getOrUndefined(map4(make18(input), toDateUtc2));
3341
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3195
3342
  }
3196
3343
  function toIso(input) {
3197
3344
  return formatIso(makeUnsafe(input));
@@ -3434,6 +3581,7 @@ function classifyAnything(key, value) {
3434
3581
  const text = value.replace(uuidPattern, "uuid");
3435
3582
  return VALUE_RULES.find(([, pattern]) => pattern.test(text))?.[0];
3436
3583
  }
3584
+ var durableTextLimit = 1024;
3437
3585
  function scanDurableSurface(value, path = "surface", options = {}) {
3438
3586
  const findings = [];
3439
3587
  scanValue(value, path, undefined, findings, 0, options);
@@ -3477,7 +3625,7 @@ function scanValue(value, path, key, findings, depth, options = {}) {
3477
3625
  const classification = classifyDurableSurfaceValue(key ?? path, value, options);
3478
3626
  if (classification !== undefined)
3479
3627
  findings.push(finding(path, classification, value));
3480
- else if (isString(value) && value.length > (options.maxTextLength ?? 1024))
3628
+ else if (isString(value) && value.length > (options.maxTextLength ?? durableTextLimit))
3481
3629
  findings.push(finding(path, "unknown", value, "unbounded-text"));
3482
3630
  }
3483
3631
  function finding(path, classification, value, rule = "classified-key") {
@@ -9198,11 +9346,11 @@ var TranscriptSearchResult = Struct({
9198
9346
  total: Int
9199
9347
  });
9200
9348
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9201
- var TypeId8 = "~effect/http/HttpBody";
9349
+ var TypeId9 = "~effect/http/HttpBody";
9202
9350
  class Proto5 {
9203
- [TypeId8];
9351
+ [TypeId9];
9204
9352
  constructor() {
9205
- this[TypeId8] = TypeId8;
9353
+ this[TypeId9] = TypeId9;
9206
9354
  }
9207
9355
  [NodeInspectSymbol]() {
9208
9356
  return this.toJSON();
@@ -9281,7 +9429,7 @@ var buffer = globalThis.Buffer;
9281
9429
  var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
9282
9430
 
9283
9431
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9284
- var TypeId9 = "~effect/http/HttpClientError";
9432
+ var TypeId10 = "~effect/http/HttpClientError";
9285
9433
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9286
9434
  constructor(props) {
9287
9435
  if ("cause" in props.reason) {
@@ -9293,7 +9441,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9293
9441
  super(props);
9294
9442
  }
9295
9443
  }
9296
- [TypeId9] = TypeId9;
9444
+ [TypeId10] = TypeId10;
9297
9445
  get request() {
9298
9446
  return this.reason.request;
9299
9447
  }
@@ -9397,7 +9545,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9397
9545
  }
9398
9546
  }
9399
9547
 
9400
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9548
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9401
9549
  _tag: /* @__PURE__ */ tag("HttpError"),
9402
9550
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9403
9551
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9430,7 +9578,7 @@ var updateContentLength = (headers, body) => {
9430
9578
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9431
9579
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9432
9580
  }
9433
- var make26 = (url, params, hash) => try_({
9581
+ var make27 = (url, params, hash) => try_({
9434
9582
  try: () => {
9435
9583
  const urlInstance = new URL(url, baseUrl());
9436
9584
  for (let i = 0;i < params.params.length; i++) {
@@ -9461,10 +9609,10 @@ var baseUrl = () => {
9461
9609
  };
9462
9610
 
9463
9611
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9464
- var TypeId10 = "~effect/http/HttpClientRequest";
9465
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9612
+ var TypeId11 = "~effect/http/HttpClientRequest";
9613
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9466
9614
  var Proto6 = {
9467
- [TypeId10]: TypeId10,
9615
+ [TypeId11]: TypeId11,
9468
9616
  ...BaseProto,
9469
9617
  toJSON() {
9470
9618
  return {
@@ -9492,13 +9640,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9492
9640
  return self;
9493
9641
  }
9494
9642
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9495
- var make5 = (method) => (url, options) => modify(empty6, {
9643
+ var make4 = (method) => (url, options) => modify(empty6, {
9496
9644
  method,
9497
9645
  url,
9498
9646
  ...options ?? undefined
9499
9647
  });
9500
- var get = /* @__PURE__ */ make5("GET");
9501
- var put = /* @__PURE__ */ make5("PUT");
9648
+ var get = /* @__PURE__ */ make4("GET");
9649
+ var put = /* @__PURE__ */ make4("PUT");
9502
9650
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9503
9651
  let result = self;
9504
9652
  if (options.method) {
@@ -9550,7 +9698,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
9550
9698
  });
9551
9699
  var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
9552
9700
  function toUrl(self) {
9553
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9701
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9554
9702
  if (isSuccess(r)) {
9555
9703
  return some(r.success);
9556
9704
  }
@@ -9558,7 +9706,7 @@ function toUrl(self) {
9558
9706
  }
9559
9707
 
9560
9708
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9561
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9709
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9562
9710
  var schemaBodyJson = (schema, options) => {
9563
9711
  const decode = decodeEffect(toCodecJson(schema));
9564
9712
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9577,7 +9725,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9577
9725
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9578
9726
 
9579
9727
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9580
- var TypeId12 = "~effect/http/HttpClientResponse";
9728
+ var TypeId13 = "~effect/http/HttpClientResponse";
9581
9729
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9582
9730
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9583
9731
  reason: new StatusCodeError({
@@ -9588,16 +9736,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9588
9736
  }));
9589
9737
 
9590
9738
  class WebHttpClientResponse extends Class {
9591
- [TypeId11];
9592
9739
  [TypeId12];
9740
+ [TypeId13];
9593
9741
  request;
9594
9742
  source;
9595
9743
  constructor(request, source) {
9596
9744
  super();
9597
9745
  this.request = request;
9598
9746
  this.source = source;
9599
- this[TypeId11] = TypeId11;
9600
9747
  this[TypeId12] = TypeId12;
9748
+ this[TypeId13] = TypeId13;
9601
9749
  }
9602
9750
  toJSON() {
9603
9751
  return inspect(this, {
@@ -9769,7 +9917,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9769
9917
  };
9770
9918
 
9771
9919
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9772
- var TypeId13 = "~effect/http/HttpClient";
9920
+ var TypeId14 = "~effect/http/HttpClient";
9773
9921
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9774
9922
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9775
9923
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9786,7 +9934,7 @@ var makeWith2 = (postprocess, preprocess) => {
9786
9934
  return self;
9787
9935
  };
9788
9936
  var Proto7 = {
9789
- [TypeId13]: TypeId13,
9937
+ [TypeId14]: TypeId14,
9790
9938
  pipe() {
9791
9939
  return pipeArguments(this, arguments);
9792
9940
  },
@@ -9797,13 +9945,13 @@ var Proto7 = {
9797
9945
  };
9798
9946
  },
9799
9947
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9800
- return this.execute(make5(fullMethod)(url, options));
9948
+ return this.execute(make4(fullMethod)(url, options));
9801
9949
  }]))
9802
9950
  };
9803
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9951
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9804
9952
  const scopedController = scopedRequests.get(request);
9805
9953
  const controller = scopedController ?? new AbortController;
9806
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
9954
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
9807
9955
  if (isFailure(urlResult)) {
9808
9956
  return fail7(new HttpClientError({
9809
9957
  reason: new InvalidUrlError({
@@ -9937,8 +10085,8 @@ class InterruptibleResponse {
9937
10085
  this.original = original;
9938
10086
  this.controller = controller;
9939
10087
  }
10088
+ [TypeId13] = TypeId13;
9940
10089
  [TypeId12] = TypeId12;
9941
- [TypeId11] = TypeId11;
9942
10090
  applyInterrupt(effect) {
9943
10091
  return suspend3(() => {
9944
10092
  responseRegistry.unregister(this.original);
@@ -10036,7 +10184,7 @@ var detectStreamBodySupport = () => {
10036
10184
  return false;
10037
10185
  }
10038
10186
  };
10039
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10187
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10040
10188
  if (request.headers.upgrade !== undefined) {
10041
10189
  return fail7(new HttpClientError({
10042
10190
  reason: new TransportError({
@@ -10127,10 +10275,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10127
10275
  });
10128
10276
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10129
10277
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10130
- var TypeId14 = "~effect/socket/Socket";
10278
+ var TypeId15 = "~effect/socket/Socket";
10131
10279
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10132
- var make28 = (options) => Socket.of({
10133
- [TypeId14]: TypeId14,
10280
+ var make29 = (options) => Socket.of({
10281
+ [TypeId15]: TypeId15,
10134
10282
  reader: options.reader,
10135
10283
  writer: options.writer
10136
10284
  });
@@ -10453,7 +10601,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10453
10601
  write,
10454
10602
  writeAll
10455
10603
  });
10456
- return succeed6(make28({
10604
+ return succeed6(make29({
10457
10605
  reader,
10458
10606
  writer
10459
10607
  }));
@@ -13290,7 +13438,7 @@ function getStreamSchemas(schema) {
13290
13438
  }
13291
13439
  var schema = /* @__PURE__ */ declare(isStream);
13292
13440
  function Stream(success, error) {
13293
- return make17(schema.ast, {
13441
+ return make16(schema.ast, {
13294
13442
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13295
13443
  success,
13296
13444
  error
@@ -13298,9 +13446,9 @@ function Stream(success, error) {
13298
13446
  }
13299
13447
 
13300
13448
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13301
- var TypeId15 = "~effect/rpc/Rpc";
13449
+ var TypeId16 = "~effect/rpc/Rpc";
13302
13450
  var Proto8 = {
13303
- [TypeId15]: TypeId15,
13451
+ [TypeId16]: TypeId16,
13304
13452
  pipe() {
13305
13453
  return pipeArguments(this, arguments);
13306
13454
  },
@@ -13389,7 +13537,7 @@ var makeProto = (options) => {
13389
13537
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13390
13538
  return Rpc;
13391
13539
  };
13392
- var make6 = (tag, options) => {
13540
+ var make5 = (tag, options) => {
13393
13541
  const successSchema = options?.success ?? Void;
13394
13542
  const errorSchema = options?.error ?? Never;
13395
13543
  const defectSchema = options?.defect ?? Defect();
@@ -13467,7 +13615,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13467
13615
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13468
13616
 
13469
13617
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13470
- var TypeId16 = "~effect/rpc/RpcClientError";
13618
+ var TypeId17 = "~effect/rpc/RpcClientError";
13471
13619
 
13472
13620
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13473
13621
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13476,11 +13624,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13476
13624
  })) {
13477
13625
  }
13478
13626
 
13479
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13627
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13480
13628
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13481
13629
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13482
13630
  })) {
13483
- [TypeId16] = TypeId16;
13631
+ [TypeId17] = TypeId17;
13484
13632
  get message() {
13485
13633
  return `${this.reason._tag}: ${this.reason.message}`;
13486
13634
  }
@@ -13600,7 +13748,7 @@ var RpcGroupProto = {
13600
13748
  });
13601
13749
  },
13602
13750
  annotateRpcs(service, value) {
13603
- return this.annotateRpcsMerge(make15(service, value));
13751
+ return this.annotateRpcsMerge(make13(service, value));
13604
13752
  },
13605
13753
  annotateMerge(context) {
13606
13754
  return makeProto2({
@@ -13623,12 +13771,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13623
13771
  requests: options.requests,
13624
13772
  annotations: options.annotations
13625
13773
  });
13626
- var make7 = (...rpcs) => makeProto2({
13774
+ var make6 = (...rpcs) => makeProto2({
13627
13775
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13628
13776
  annotations: empty3()
13629
13777
  });
13630
13778
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13631
- var TypeId17 = "~effect/rpc/RpcMiddleware";
13779
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13632
13780
  var Service = () => (id, options) => {
13633
13781
  const limit = getStackTraceLimit();
13634
13782
  let creationError;
@@ -13646,7 +13794,7 @@ var Service = () => (id, options) => {
13646
13794
  return creationError?.stack;
13647
13795
  }
13648
13796
  });
13649
- ServiceClass_[TypeId17] = TypeId17;
13797
+ ServiceClass_[TypeId18] = TypeId18;
13650
13798
  ServiceClass_.error = options?.error ?? Never;
13651
13799
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13652
13800
  return ServiceClass;
@@ -13730,96 +13878,96 @@ var ProgramOutcome = Union([
13730
13878
  Struct({ status: Literal("failed"), failureSummary: String4 })
13731
13879
  ]);
13732
13880
 
13733
- class RunnerReplicaRpcs extends make7(make6("Claim", {
13881
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
13734
13882
  payload: WorkUnitClaimInput,
13735
13883
  success: WorkUnitClaimResult,
13736
13884
  error: RunnerRpcError
13737
- }), make6("Heartbeat", {
13885
+ }), make5("Heartbeat", {
13738
13886
  payload: WorkUnitHeartbeatInput,
13739
13887
  success: WorkUnitHeartbeatResult,
13740
13888
  error: RunnerRpcError
13741
- }), make6("Complete", {
13889
+ }), make5("Complete", {
13742
13890
  payload: WorkUnitCompletion,
13743
13891
  error: RunnerRpcError
13744
- }), make6("Release", {
13892
+ }), make5("Release", {
13745
13893
  payload: WorkUnitReleaseInput,
13746
13894
  error: RunnerRpcError
13747
- }), make6("Signals", {
13895
+ }), make5("Signals", {
13748
13896
  payload: { runnerReplicaId: String4 },
13749
13897
  success: RunnerSignal,
13750
13898
  error: RunnerRpcError,
13751
13899
  stream: true
13752
- }), make6("ReportSteer", {
13900
+ }), make5("ReportSteer", {
13753
13901
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13754
13902
  success: Void,
13755
13903
  error: RunnerRpcError
13756
- }), make6("AppendTranscript", {
13904
+ }), make5("AppendTranscript", {
13757
13905
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13758
13906
  success: Void,
13759
13907
  error: RunnerRpcError
13760
- }), make6("CreateCheckpointFile", {
13908
+ }), make5("CreateCheckpointFile", {
13761
13909
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13762
13910
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13763
13911
  error: Union([RunnerRpcError, RunFileRefused])
13764
- }), make6("CheckpointFileParts", {
13912
+ }), make5("CheckpointFileParts", {
13765
13913
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13766
13914
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13767
13915
  error: RunnerRpcError
13768
- }), make6("CompleteCheckpointFile", {
13916
+ }), make5("CompleteCheckpointFile", {
13769
13917
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13770
13918
  success: RunFileRecord,
13771
13919
  error: RunnerRpcError
13772
- }), make6("SaveCheckpoint", {
13920
+ }), make5("SaveCheckpoint", {
13773
13921
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13774
13922
  success: Void,
13775
13923
  error: RunnerRpcError
13776
- }), make6("ResumeCheckpoint", {
13924
+ }), make5("ResumeCheckpoint", {
13777
13925
  payload: { lease: ProgramLease },
13778
13926
  success: UndefinedOr(ResumedCheckpoint),
13779
13927
  error: RunnerRpcError
13780
- }), make6("SettledCheckpoints", {
13928
+ }), make5("SettledCheckpoints", {
13781
13929
  success: ArraySchema(Struct({
13782
13930
  stepAttemptId: String4,
13783
13931
  ref: optionalKey(String4),
13784
13932
  repoBinding: optionalKey(WorkUnitRepoBinding)
13785
13933
  })),
13786
13934
  error: RunnerRpcError
13787
- }), make6("ForgetCheckpoints", {
13935
+ }), make5("ForgetCheckpoints", {
13788
13936
  payload: { stepAttemptIds: ArraySchema(String4) },
13789
13937
  success: Void,
13790
13938
  error: RunnerRpcError
13791
- }), make6("GitCredential", {
13939
+ }), make5("GitCredential", {
13792
13940
  payload: { repoBindingId: String4 },
13793
13941
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13794
13942
  error: RunnerRpcError
13795
- }), make6("Bundle", {
13943
+ }), make5("Bundle", {
13796
13944
  payload: { digest: String4 },
13797
13945
  success: Struct({ bundle: String4 }),
13798
13946
  error: RunnerRpcError
13799
- }), make6("SettledRuns", {
13947
+ }), make5("SettledRuns", {
13800
13948
  payload: { runIds: ArraySchema(String4) },
13801
13949
  success: ArraySchema(String4),
13802
13950
  error: RunnerRpcError
13803
- }), make6("KnownEvidence", {
13951
+ }), make5("KnownEvidence", {
13804
13952
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13805
13953
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13806
13954
  error: RunnerRpcError
13807
13955
  })).middleware(RunnerAuthentication) {
13808
13956
  }
13809
13957
 
13810
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
13958
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13811
13959
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13812
13960
  error: RunnerRpcError
13813
- }), make6("DeferredDone", {
13961
+ }), make5("DeferredDone", {
13814
13962
  payload: { lease: ProgramLease, name: String4, exit: Json },
13815
13963
  error: RunnerRpcError
13816
- }), make6("ScheduleClock", {
13964
+ }), make5("ScheduleClock", {
13817
13965
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13818
13966
  error: RunnerRpcError
13819
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13967
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13820
13968
  }
13821
13969
 
13822
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13970
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13823
13971
  payload: {
13824
13972
  lease: ProgramLease,
13825
13973
  step: String4,
@@ -13836,7 +13984,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13836
13984
  },
13837
13985
  success: Struct({ questionId: String4 }),
13838
13986
  error: RunnerRpcError
13839
- }), make6("StartAgentStep", {
13987
+ }), make5("StartAgentStep", {
13840
13988
  payload: {
13841
13989
  lease: ProgramLease,
13842
13990
  step: String4,
@@ -13852,7 +14000,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13852
14000
  },
13853
14001
  success: Struct({ stepAttemptId: String4 }),
13854
14002
  error: RunnerRpcError
13855
- }), make6("StartVerification", {
14003
+ }), make5("StartVerification", {
13856
14004
  payload: {
13857
14005
  lease: ProgramLease,
13858
14006
  step: String4,
@@ -13869,7 +14017,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13869
14017
  },
13870
14018
  success: Struct({ verificationId: String4 }),
13871
14019
  error: RunnerRpcError
13872
- }), make6("AwaitEvent", {
14020
+ }), make5("AwaitEvent", {
13873
14021
  payload: {
13874
14022
  lease: ProgramLease,
13875
14023
  step: String4,
@@ -13885,7 +14033,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13885
14033
  })))
13886
14034
  },
13887
14035
  error: RunnerRpcError
13888
- }), make6("ClaimResource", {
14036
+ }), make5("ClaimResource", {
13889
14037
  payload: {
13890
14038
  lease: ProgramLease,
13891
14039
  step: String4,
@@ -13894,7 +14042,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13894
14042
  action: Literals(["claim", "take_over", "let_go"])
13895
14043
  },
13896
14044
  error: RunnerRpcError
13897
- }), make6("AdmitChild", {
14045
+ }), make5("AdmitChild", {
13898
14046
  payload: {
13899
14047
  lease: ProgramLease,
13900
14048
  step: String4,
@@ -13904,7 +14052,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13904
14052
  },
13905
14053
  success: Struct({ runId: String4 }),
13906
14054
  error: RunnerRpcError
13907
- }), make6("StoreArtifact", {
14055
+ }), make5("StoreArtifact", {
13908
14056
  payload: {
13909
14057
  lease: ProgramLease,
13910
14058
  step: String4,
@@ -13916,7 +14064,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13916
14064
  },
13917
14065
  success: Struct({ artifactId: String4 }),
13918
14066
  error: RunnerRpcError
13919
- }), make6("RecordNote", {
14067
+ }), make5("RecordNote", {
13920
14068
  payload: {
13921
14069
  lease: ProgramLease,
13922
14070
  step: String4,
@@ -13924,7 +14072,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13924
14072
  artifactId: optional(String4)
13925
14073
  },
13926
14074
  error: RunnerRpcError
13927
- }), make6("PerformHostEffect", {
14075
+ }), make5("PerformHostEffect", {
13928
14076
  payload: {
13929
14077
  lease: ProgramLease,
13930
14078
  step: String4,
@@ -13952,7 +14100,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13952
14100
  },
13953
14101
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
13954
14102
  error: RunnerRpcError
13955
- }), make6("AlertTask", {
14103
+ }), make5("AlertTask", {
13956
14104
  payload: {
13957
14105
  lease: ProgramLease,
13958
14106
  step: String4,
@@ -13969,7 +14117,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13969
14117
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
13970
14118
  }),
13971
14119
  error: RunnerRpcError
13972
- }), make6("ReadTranscripts", {
14120
+ }), make5("ReadTranscripts", {
13973
14121
  payload: { lease: ProgramLease, step: String4, days: Int },
13974
14122
  success: Struct({
13975
14123
  runs: ArraySchema(Struct({
@@ -13988,7 +14136,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13988
14136
  }))
13989
14137
  }),
13990
14138
  error: RunnerRpcError
13991
- }), make6("PipelineStatus", {
14139
+ }), make5("PipelineStatus", {
13992
14140
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
13993
14141
  success: Struct({
13994
14142
  head: String4,
@@ -14004,11 +14152,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14004
14152
  runnerChecks: optionalKey(ArraySchema(String4))
14005
14153
  }),
14006
14154
  error: RunnerRpcError
14007
- }), make6("ReportPipeline", {
14155
+ }), make5("ReportPipeline", {
14008
14156
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14009
14157
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14010
14158
  error: RunnerRpcError
14011
- }), make6("ReviewThreads", {
14159
+ }), make5("ReviewThreads", {
14012
14160
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14013
14161
  success: Struct({
14014
14162
  threads: ArraySchema(Struct({
@@ -14020,7 +14168,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14020
14168
  }))
14021
14169
  }),
14022
14170
  error: RunnerRpcError
14023
- }), make6("OpenChangeRequests", {
14171
+ }), make5("OpenChangeRequests", {
14024
14172
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14025
14173
  success: Struct({
14026
14174
  changeRequests: ArraySchema(Struct({
@@ -14034,7 +14182,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14034
14182
  }))
14035
14183
  }),
14036
14184
  error: RunnerRpcError
14037
- }), make6("OwnChangeRequests", {
14185
+ }), make5("OwnChangeRequests", {
14038
14186
  payload: { lease: ProgramLease, step: String4 },
14039
14187
  success: Struct({
14040
14188
  changeRequests: ArraySchema(Struct({
@@ -14047,7 +14195,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14047
14195
  }))
14048
14196
  }),
14049
14197
  error: RunnerRpcError
14050
- }), make6("Propose", {
14198
+ }), make5("Propose", {
14051
14199
  payload: {
14052
14200
  lease: ProgramLease,
14053
14201
  step: String4,
@@ -14074,7 +14222,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14074
14222
  matched: optionalKey(Boolean2)
14075
14223
  }),
14076
14224
  error: RunnerRpcError
14077
- }), make6("ReadProject", {
14225
+ }), make5("ReadProject", {
14078
14226
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14079
14227
  success: Struct({
14080
14228
  project: Struct({ id: String4, name: String4 }),
@@ -14097,7 +14245,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14097
14245
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14098
14246
  }),
14099
14247
  error: RunnerRpcError
14100
- }), make6("DraftUpdate", {
14248
+ }), make5("DraftUpdate", {
14101
14249
  payload: {
14102
14250
  lease: ProgramLease,
14103
14251
  step: String4,
@@ -14112,7 +14260,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14112
14260
  },
14113
14261
  success: Struct({ id: String4 }),
14114
14262
  error: RunnerRpcError
14115
- }), make6("CreatePlanTasks", {
14263
+ }), make5("CreatePlanTasks", {
14116
14264
  payload: {
14117
14265
  lease: ProgramLease,
14118
14266
  projectId: optionalKey(String4),
@@ -14127,11 +14275,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14127
14275
  },
14128
14276
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14129
14277
  error: RunnerRpcError
14130
- }), make6("IntegrationBranch", {
14278
+ }), make5("IntegrationBranch", {
14131
14279
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14132
14280
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14133
14281
  error: RunnerRpcError
14134
- }), make6("MergeChangeRequest", {
14282
+ }), make5("MergeChangeRequest", {
14135
14283
  payload: {
14136
14284
  lease: ProgramLease,
14137
14285
  step: String4,
@@ -14144,7 +14292,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14144
14292
  Struct({ status: Literal("moved"), head: String4 })
14145
14293
  ]),
14146
14294
  error: RunnerRpcError
14147
- }), make6("ApproveChangeRequest", {
14295
+ }), make5("ApproveChangeRequest", {
14148
14296
  payload: {
14149
14297
  lease: ProgramLease,
14150
14298
  step: String4,
@@ -14159,7 +14307,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14159
14307
  Struct({ approved: Literal(false), reason: String4 })
14160
14308
  ]),
14161
14309
  error: RunnerRpcError
14162
- }), make6("CloseChangeRequest", {
14310
+ }), make5("CloseChangeRequest", {
14163
14311
  payload: {
14164
14312
  lease: ProgramLease,
14165
14313
  step: String4,
@@ -14169,7 +14317,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14169
14317
  },
14170
14318
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14171
14319
  error: RunnerRpcError
14172
- }), make6("RerunPipeline", {
14320
+ }), make5("RerunPipeline", {
14173
14321
  payload: {
14174
14322
  lease: ProgramLease,
14175
14323
  step: String4,
@@ -14179,7 +14327,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14179
14327
  },
14180
14328
  success: Struct({ head: String4, pipelines: Int }),
14181
14329
  error: RunnerRpcError
14182
- }), make6("PublishRelease", {
14330
+ }), make5("PublishRelease", {
14183
14331
  payload: {
14184
14332
  lease: ProgramLease,
14185
14333
  step: String4,
@@ -14190,14 +14338,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14190
14338
  },
14191
14339
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14192
14340
  error: RunnerRpcError
14193
- }), make6("ProgramSecrets", {
14341
+ }), make5("ProgramSecrets", {
14194
14342
  payload: { lease: ProgramLease },
14195
14343
  success: Record(String4, String4),
14196
14344
  error: RunnerRpcError
14197
14345
  })).middleware(RunnerAuthentication) {
14198
14346
  }
14199
14347
 
14200
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14348
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14201
14349
  payload: {
14202
14350
  lease: ProgramLease,
14203
14351
  step: String4,
@@ -14209,11 +14357,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14209
14357
  },
14210
14358
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14211
14359
  error: Union([RunnerRpcError, RunFileRefused])
14212
- }), make6("RunFileParts", {
14360
+ }), make5("RunFileParts", {
14213
14361
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14214
14362
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14215
14363
  error: RunnerRpcError
14216
- }), make6("CompleteRunFile", {
14364
+ }), make5("CompleteRunFile", {
14217
14365
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14218
14366
  success: RunFileRecord,
14219
14367
  error: RunnerRpcError
@@ -14223,7 +14371,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14223
14371
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14224
14372
 
14225
14373
  // apps/cli/src/oauth.ts
14226
- var Scope = "openid profile email offline_access kitman:cli";
14374
+ var Scope2 = "openid profile email offline_access kitman:cli";
14227
14375
  var CallbackPath = "/auth/callback";
14228
14376
 
14229
14377
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14242,7 +14390,7 @@ function buildAuthorizeUrl(input) {
14242
14390
  url.searchParams.set("response_type", "code");
14243
14391
  url.searchParams.set("client_id", input.clientId);
14244
14392
  url.searchParams.set("redirect_uri", input.redirectUri);
14245
- url.searchParams.set("scope", Scope);
14393
+ url.searchParams.set("scope", Scope2);
14246
14394
  url.searchParams.set("code_challenge", input.codeChallenge);
14247
14395
  url.searchParams.set("code_challenge_method", "S256");
14248
14396
  url.searchParams.set("state", input.state);
@@ -14302,7 +14450,7 @@ function toStoredSession(token, existingRefreshToken) {
14302
14450
  }
14303
14451
  function startLoopbackServer(input) {
14304
14452
  return gen(function* () {
14305
- const code = yield* make16();
14453
+ const code = yield* make14();
14306
14454
  const context2 = yield* context();
14307
14455
  const runSyncExit = runSyncExitWith(context2);
14308
14456
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14842,7 +14990,7 @@ var openConnection = (transport) => gen(function* () {
14842
14990
  let lastId = 0;
14843
14991
  let lost = false;
14844
14992
  const notifications = yield* unbounded2();
14845
- const ended = yield* make16();
14993
+ const ended = yield* make14();
14846
14994
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14847
14995
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14848
14996
  onNone: () => void_3,
@@ -14869,7 +15017,7 @@ var openConnection = (transport) => gen(function* () {
14869
15017
  if (lost)
14870
15018
  return yield* new HerdrCoreConnectionLost2({ method });
14871
15019
  const id = ++lastId;
14872
- const deferred = yield* make16();
15020
+ const deferred = yield* make14();
14873
15021
  pending.set(id, { method, deferred });
14874
15022
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14875
15023
  return yield* _await(deferred);
@@ -14943,14 +15091,14 @@ var herdrCoreOver = (transport) => ({
14943
15091
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
14944
15092
  };
14945
15093
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
14946
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15094
+ return concat(make9(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
14947
15095
  }))
14948
15096
  });
14949
15097
  var spawnedTransport = (env) => gen(function* () {
14950
15098
  const spawner = yield* ChildProcessSpawner;
14951
15099
  const input = yield* unbounded2();
14952
15100
  const encoder = new TextEncoder;
14953
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15101
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
14954
15102
  extendEnv: false,
14955
15103
  env,
14956
15104
  stdin: fromQueue(input),
@@ -14981,7 +15129,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
14981
15129
  const spawner = yield* ChildProcessSpawner;
14982
15130
  const env = coreEnv(options);
14983
15131
  const run = (args) => gen(function* () {
14984
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15132
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14985
15133
  const [stdout, stderr, exitCode] = yield* all3([
14986
15134
  mkString(decodeText(handle.stdout)),
14987
15135
  mkString(decodeText(handle.stderr)),
@@ -15007,7 +15155,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15007
15155
  }
15008
15156
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15009
15157
  const spawner = yield* ChildProcessSpawner;
15010
- const handle = yield* spawner.spawn(make3(command, args, {
15158
+ const handle = yield* spawner.spawn(make2(command, args, {
15011
15159
  stdin: "ignore",
15012
15160
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15013
15161
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15033,8 +15181,8 @@ var shellOutputTailChars2 = 64 * 1024;
15033
15181
  var runProcess2 = (argv, options) => gen(function* () {
15034
15182
  const spawner = yield* ChildProcessSpawner;
15035
15183
  const [command, ...args] = argv;
15036
- const handle = yield* spawner.spawn(make3(command, args, {
15037
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15184
+ const handle = yield* spawner.spawn(make2(command, args, {
15185
+ stdin: options.stdin === undefined ? "ignore" : make9(new TextEncoder().encode(options.stdin)),
15038
15186
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15039
15187
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15040
15188
  }));
@@ -15456,4 +15604,4 @@ function checkServices(declaration) {
15456
15604
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15457
15605
  }
15458
15606
 
15459
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15607
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, put, setHeaders, bodyUint8Array, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };