@kitman-sh/cli 0.10.100 → 0.10.102

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-r3rap6hz.js → chunk-1824vyqt.js} +19 -19
  2. package/dist/{chunk-9xj0djtp.js → chunk-28kmza26.js} +8 -8
  3. package/dist/{chunk-1kww1jdz.js → chunk-30mfra3r.js} +1 -1
  4. package/dist/{chunk-hcpjfshb.js → chunk-4e3070mq.js} +6 -6
  5. package/dist/{chunk-p3kwtm82.js → chunk-5esfnamp.js} +2 -2
  6. package/dist/{chunk-wyh06par.js → chunk-7hdxkt3m.js} +144 -294
  7. package/dist/{chunk-cpx45jzk.js → chunk-7hyjcw2c.js} +5 -5
  8. package/dist/{chunk-tqw2rkc9.js → chunk-9927sg3a.js} +3 -3
  9. package/dist/{chunk-mjrr0wzp.js → chunk-9nrr1dwr.js} +177 -28
  10. package/dist/{chunk-gs6qdy2k.js → chunk-c7ym0ce7.js} +2 -2
  11. package/dist/{chunk-ayfdkptb.js → chunk-che5w0y4.js} +60 -60
  12. package/dist/{chunk-cy7cy84h.js → chunk-dpwfg8pd.js} +17 -17
  13. package/dist/{chunk-mtz8f1hn.js → chunk-drycn4dz.js} +7 -7
  14. package/dist/{chunk-tk85pw4z.js → chunk-gfzd3shg.js} +9 -9
  15. package/dist/{chunk-1nw7sbtr.js → chunk-hrj6w0wd.js} +10 -6
  16. package/dist/{chunk-6sanfepb.js → chunk-hv44tcjs.js} +6 -6
  17. package/dist/{chunk-wzkdjdb7.js → chunk-hxqxdy21.js} +1 -1
  18. package/dist/{chunk-1k3cvdbt.js → chunk-pjpq1d7r.js} +4 -4
  19. package/dist/{chunk-4c78jfqk.js → chunk-s27r6x3a.js} +5 -5
  20. package/dist/{chunk-qv9te9gr.js → chunk-tbrpndp2.js} +2 -2
  21. package/dist/{chunk-5z0cwmet.js → chunk-v8201s35.js} +75 -28
  22. package/dist/{chunk-mk8vsaj7.js → chunk-xckn5gax.js} +1 -1
  23. package/dist/{chunk-vatjyw59.js → chunk-xzbn3377.js} +17 -17
  24. package/dist/{chunk-0rf10v29.js → chunk-yjnrw9yb.js} +4 -4
  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
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,15 +58,13 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
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,11 +89,9 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
- make15,
94
+ make16,
99
95
  _await,
100
96
  fail5,
101
97
  isDone,
@@ -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,
@@ -214,7 +202,7 @@ import {
214
202
  decodeEffect,
215
203
  decodeUnknownOption,
216
204
  decodeOption,
217
- make16,
205
+ make17,
218
206
  isSchema,
219
207
  optionalKey,
220
208
  optional,
@@ -261,42 +249,11 @@ import {
261
249
  decodeJsonStringOption,
262
250
  encodeJsonStringSync,
263
251
  encodePrettyJsonString
264
- } from "./chunk-ayfdkptb.js";
265
- import {
266
- isDateTime,
267
- Numeric,
268
- isWholeNumber,
269
- guard,
270
- Id,
271
- Timestamp,
272
- ActorType,
273
- SecretName,
274
- SecretScope,
275
- SecretHosts,
276
- isSecretReference
277
- } from "./chunk-1kww1jdz.js";
278
- import {
279
- toJsonValue,
280
- isOneOf,
281
- isBigInt,
282
- isBoolean,
283
- isFunction,
284
- isNumber,
285
- isObject,
286
- isJsonObject,
287
- isString,
288
- isSymbol,
289
- isUndefined,
290
- kindOf
291
- } from "./chunk-wzkdjdb7.js";
252
+ } from "./chunk-che5w0y4.js";
292
253
  import {
293
254
  map,
294
255
  makeEquivalence,
295
256
  bytes,
296
- join,
297
- interrupt,
298
- getCurrent,
299
- runIn,
300
257
  BadArgument,
301
258
  systemError,
302
259
  badArgument,
@@ -318,11 +275,13 @@ import {
318
275
  isSink,
319
276
  fromChannel,
320
277
  drain,
278
+ make10,
279
+ get3,
321
280
  isStream,
322
281
  fromChannel2,
323
282
  callback,
324
283
  empty2,
325
- make10,
284
+ make11,
326
285
  suspend,
327
286
  fail2,
328
287
  fromQueue,
@@ -348,16 +307,43 @@ import {
348
307
  mkArrayBuffer,
349
308
  toReadableStreamEffect,
350
309
  FileSystem,
351
- make11,
310
+ make12,
352
311
  FileTypeId,
353
312
  WatchBackend,
354
313
  Path,
355
- make12,
314
+ make13,
356
315
  option,
357
316
  String2,
358
317
  optionalEnv,
359
318
  harnessesUnsupportedInSrt2
360
- } from "./chunk-mjrr0wzp.js";
319
+ } from "./chunk-9nrr1dwr.js";
320
+ import {
321
+ isDateTime,
322
+ Numeric,
323
+ isWholeNumber,
324
+ guard,
325
+ Id,
326
+ Timestamp,
327
+ ActorType,
328
+ SecretName,
329
+ SecretScope,
330
+ SecretHosts,
331
+ isSecretReference
332
+ } from "./chunk-30mfra3r.js";
333
+ import {
334
+ toJsonValue,
335
+ isOneOf,
336
+ isBigInt,
337
+ isBoolean,
338
+ isFunction,
339
+ isNumber,
340
+ isObject,
341
+ isJsonObject,
342
+ isString,
343
+ isSymbol,
344
+ isUndefined,
345
+ kindOf
346
+ } from "./chunk-hxqxdy21.js";
361
347
  import {
362
348
  isRedacted,
363
349
  make,
@@ -371,7 +357,7 @@ import {
371
357
  make3,
372
358
  parseFdName,
373
359
  fdName
374
- } from "./chunk-p3kwtm82.js";
360
+ } from "./chunk-5esfnamp.js";
375
361
 
376
362
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
377
363
  var makeEquivalence3 = Tuple;
@@ -514,7 +500,7 @@ var fromDateUnsafe = (date) => {
514
500
  }
515
501
  return makeUtc(epochMillis);
516
502
  };
517
- var makeUnsafe7 = (input) => {
503
+ var makeUnsafe6 = (input) => {
518
504
  if (isDateTime2(input)) {
519
505
  return input;
520
506
  } else if (input instanceof Date) {
@@ -534,7 +520,7 @@ var makeUnsafe7 = (input) => {
534
520
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
535
521
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
536
522
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
537
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
523
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
538
524
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
539
525
  var nowUnsafe = () => makeUtc(Date.now());
540
526
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -641,7 +627,7 @@ class Metric$ {
641
627
  }
642
628
  hook(context) {
643
629
  const key = this.key(context);
644
- const registry = get3(context, MetricRegistry);
630
+ const registry = get4(context, MetricRegistry);
645
631
  let metadata = registry.get(key);
646
632
  if (isUndefined2(metadata)) {
647
633
  metadata = this.metadata(this.createHooks());
@@ -650,11 +636,11 @@ class Metric$ {
650
636
  return metadata.hooks;
651
637
  }
652
638
  removeUnsafe(context) {
653
- get3(context, MetricRegistry).delete(this.key(context));
639
+ get4(context, MetricRegistry).delete(this.key(context));
654
640
  }
655
641
  registerUnsafe(context, hooks) {
656
642
  const key = this.key(context);
657
- const registry = get3(context, MetricRegistry);
643
+ const registry = get4(context, MetricRegistry);
658
644
  const metadata = this.metadata({
659
645
  get: hooks.get,
660
646
  update: constVoid,
@@ -670,7 +656,7 @@ class Metric$ {
670
656
  };
671
657
  }
672
658
  key(context) {
673
- const extraAttributes = get3(context, CurrentMetricAttributes);
659
+ const extraAttributes = get4(context, CurrentMetricAttributes);
674
660
  if (extraAttributes !== this.#extraAttributes) {
675
661
  this.#extraAttributes = extraAttributes;
676
662
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -922,151 +908,9 @@ var toNumber = (b) => {
922
908
  return some(Number(b));
923
909
  };
924
910
 
925
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
926
- var TypeId3 = "~effect/RcRef";
927
- var stateEmpty = {
928
- _tag: "Empty"
929
- };
930
- var stateClosed = {
931
- _tag: "Closed"
932
- };
933
- var variance = {
934
- _A: identity,
935
- _E: identity
936
- };
937
-
938
- class RcRefImpl {
939
- [TypeId3] = variance;
940
- pipe() {
941
- return pipeArguments(this, arguments);
942
- }
943
- state = stateEmpty;
944
- acquire;
945
- context;
946
- scope;
947
- idleTimeToLive;
948
- constructor(acquire, context, scope, idleTimeToLive) {
949
- this.acquire = acquire;
950
- this.context = context;
951
- this.scope = scope;
952
- this.idleTimeToLive = idleTimeToLive;
953
- }
954
- }
955
- var make17 = (options) => withFiber2((fiber) => {
956
- const context = fiber.context;
957
- const scope = get3(context, Scope);
958
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
959
- return as(addFinalizerExit(scope, () => {
960
- const state = ref.state;
961
- ref.state = stateClosed;
962
- if (state._tag === "Acquired")
963
- return close(state.scope, void_2);
964
- if (state._tag === "Acquiring")
965
- return interrupt(state.fiber);
966
- return void_3;
967
- }), ref);
968
- });
969
- var getState = (self, restore) => {
970
- switch (self.state._tag) {
971
- case "Closed": {
972
- return interrupt3;
973
- }
974
- case "Acquired": {
975
- const state = self.state;
976
- state.refCount++;
977
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
978
- }
979
- case "Acquiring": {
980
- const state = self.state;
981
- state.awaiters++;
982
- return awaitAcquiring(self, state, restore);
983
- }
984
- case "Empty": {
985
- const acquiring = {
986
- _tag: "Acquiring",
987
- fiber: undefined,
988
- awaiters: 1,
989
- acquired: undefined
990
- };
991
- self.state = acquiring;
992
- const scope = makeUnsafe6();
993
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
994
- if (self.state !== acquiring) {
995
- return interrupt3;
996
- }
997
- const state = {
998
- _tag: "Acquired",
999
- value,
1000
- scope,
1001
- fiber: undefined,
1002
- refCount: acquiring.awaiters,
1003
- invalidated: false
1004
- };
1005
- self.state = state;
1006
- acquiring.acquired = state;
1007
- return succeed6(state);
1008
- }), onExit((exit) => {
1009
- if (isSuccess2(exit))
1010
- return void_3;
1011
- if (self.state === acquiring)
1012
- self.state = stateEmpty;
1013
- return close(scope, exit);
1014
- }));
1015
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1016
- return awaitAcquiring(self, acquiring, restore);
1017
- }
1018
- }
1019
- };
1020
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1021
- const acquired = acquiring.acquired;
1022
- if (acquired !== undefined) {
1023
- return isFailure2(exit) ? release(self, acquired) : void_3;
1024
- }
1025
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1026
- return void_3;
1027
- self.state = stateEmpty;
1028
- return interrupt(acquiring.fiber);
1029
- });
1030
- var get4 = (self_) => {
1031
- const self = self_;
1032
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1033
- };
1034
- var release = (self, state) => {
1035
- state.refCount--;
1036
- if (state.refCount > 0) {
1037
- return void_3;
1038
- }
1039
- const idleTimeToLive = self.idleTimeToLive;
1040
- if (idleTimeToLive === undefined || state.invalidated) {
1041
- if (self.state === state) {
1042
- self.state = stateEmpty;
1043
- }
1044
- return close(state.scope, void_2);
1045
- } else if (!isFinite(idleTimeToLive)) {
1046
- return void_3;
1047
- }
1048
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1049
- if (self.state === state && state.refCount === 0) {
1050
- self.state = stateEmpty;
1051
- return ignoreCause(close(state.scope, void_2), {
1052
- log: "Unhandled",
1053
- message: "Unhandled error in RcRef finalizer"
1054
- });
1055
- }
1056
- return void_3;
1057
- })).pipe(ensuring2(sync2(() => {
1058
- state.fiber = undefined;
1059
- })), runForkWith(self.context), runIn(self.scope));
1060
- return void_3;
1061
- };
1062
-
1063
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1064
- var make18 = make17;
1065
- var get5 = get4;
1066
-
1067
911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1068
- var makeUnsafe = makeUnsafe7;
1069
- var make19 = make4;
912
+ var makeUnsafe = makeUnsafe6;
913
+ var make18 = make4;
1070
914
  var now2 = now;
1071
915
  var nowUnsafe2 = nowUnsafe;
1072
916
  var toDateUtc2 = toDateUtc;
@@ -1385,7 +1229,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1385
1229
  windowsHide: true
1386
1230
  }, onExit);
1387
1231
  };
1388
- var make20 = /* @__PURE__ */ gen(function* () {
1232
+ var make19 = /* @__PURE__ */ gen(function* () {
1389
1233
  const fs = yield* FileSystem;
1390
1234
  const path = yield* Path;
1391
1235
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1914,7 +1758,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1914
1758
  });
1915
1759
  return make2(spawnCommand);
1916
1760
  });
1917
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1761
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1918
1762
  var flattenCommand = (command) => {
1919
1763
  const commands = [];
1920
1764
  const pipeOptions = [];
@@ -2398,7 +2242,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2398
2242
  resume(fail7(handleBadArgument("writeFile")(err)));
2399
2243
  }
2400
2244
  });
2401
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2245
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2402
2246
  access: access2,
2403
2247
  chmod: chmod2,
2404
2248
  chown: chown2,
@@ -2458,15 +2302,15 @@ var fileUrlOps = (windows) => ({
2458
2302
  })
2459
2303
  })
2460
2304
  });
2461
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2305
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
2306
  ...NodePath.posix,
2463
2307
  .../* @__PURE__ */ fileUrlOps(false)
2464
2308
  }));
2465
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2309
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2466
2310
  ...NodePath.win32,
2467
2311
  .../* @__PURE__ */ fileUrlOps(true)
2468
2312
  }));
2469
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2313
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2470
2314
  ...NodePath,
2471
2315
  .../* @__PURE__ */ fileUrlOps(undefined)
2472
2316
  }));
@@ -2475,10 +2319,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2475
2319
  var layer2 = layer7;
2476
2320
 
2477
2321
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2478
- var TypeId4 = "~effect/Stdio";
2479
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2480
- var make21 = (options) => ({
2481
- [TypeId4]: TypeId4,
2322
+ var TypeId3 = "~effect/Stdio";
2323
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
+ var make20 = (options) => ({
2325
+ [TypeId3]: TypeId3,
2482
2326
  stdinIsTerminal: succeed6(false),
2483
2327
  stdoutIsTerminal: succeed6(false),
2484
2328
  stderrIsTerminal: succeed6(false),
@@ -2486,7 +2330,7 @@ var make21 = (options) => ({
2486
2330
  });
2487
2331
 
2488
2332
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2489
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2333
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2490
2334
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2491
2335
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2492
2336
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2686,7 +2530,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2686
2530
  const uuid = bytes(randomBytes(16));
2687
2531
  return format === "bytes" ? uuid : stringify(uuid);
2688
2532
  };
2689
- var make22 = (randomBytes) => {
2533
+ var make21 = (randomBytes) => {
2690
2534
  const randomBytesChecked = (size) => {
2691
2535
  checkSize(size);
2692
2536
  return randomBytes(size);
@@ -2720,13 +2564,13 @@ var fillRandom = (crypto2, size) => {
2720
2564
  }
2721
2565
  return bytes;
2722
2566
  };
2723
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2567
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2724
2568
 
2725
2569
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2726
- var TypeId5 = "~effect/http/Cookies";
2570
+ var TypeId4 = "~effect/http/Cookies";
2727
2571
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2728
2572
  var Proto2 = {
2729
- [TypeId5]: TypeId5,
2573
+ [TypeId4]: TypeId4,
2730
2574
  ...BaseProto,
2731
2575
  toJSON() {
2732
2576
  return {
@@ -2905,14 +2749,14 @@ var tryDecodeURIComponent = (str) => {
2905
2749
  };
2906
2750
 
2907
2751
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2908
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2752
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2909
2753
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2910
- [TypeId6]: {
2911
- value: TypeId6
2754
+ [TypeId5]: {
2755
+ value: TypeId5
2912
2756
  },
2913
2757
  [symbolRedactable]: {
2914
2758
  value(context) {
2915
- return redact2(this, get3(context, CurrentRedactedNames));
2759
+ return redact2(this, get4(context, CurrentRedactedNames));
2916
2760
  }
2917
2761
  },
2918
2762
  toJSON: {
@@ -2937,7 +2781,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2937
2781
  value: BaseProto[NodeInspectSymbol]
2938
2782
  }
2939
2783
  });
2940
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2784
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2941
2785
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2942
2786
  var empty = /* @__PURE__ */ Object.create(Proto3);
2943
2787
  var fromInput = (input) => {
@@ -2962,21 +2806,21 @@ var fromInput = (input) => {
2962
2806
  };
2963
2807
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2964
2808
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2965
- const out = make23(self);
2809
+ const out = make22(self);
2966
2810
  out[key.toLowerCase()] = value;
2967
2811
  return out;
2968
2812
  });
2969
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2813
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2970
2814
  ...self,
2971
2815
  ...fromInput(headers)
2972
2816
  }));
2973
2817
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2974
- const out = make23(self);
2818
+ const out = make22(self);
2975
2819
  Object.assign(out, headers);
2976
2820
  return out;
2977
2821
  });
2978
2822
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2979
- const out = make23(self);
2823
+ const out = make22(self);
2980
2824
  delete out[key.toLowerCase()];
2981
2825
  return out;
2982
2826
  });
@@ -3033,18 +2877,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3033
2877
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3034
2878
 
3035
2879
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3036
- var TypeId7 = "~effect/http/UrlParams";
3037
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
+ var TypeId6 = "~effect/http/UrlParams";
2881
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3038
2882
  var Proto4 = {
3039
2883
  ...PipeInspectableProto,
3040
- [TypeId7]: TypeId7,
2884
+ [TypeId6]: TypeId6,
3041
2885
  [Symbol.iterator]() {
3042
2886
  return this.params[Symbol.iterator]();
3043
2887
  },
3044
2888
  [symbolRedactable](context) {
3045
2889
  return {
3046
2890
  _id: "UrlParams",
3047
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2891
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3048
2892
  };
3049
2893
  },
3050
2894
  toJSON() {
@@ -3057,7 +2901,7 @@ var Proto4 = {
3057
2901
  return array(this.params.flat());
3058
2902
  }
3059
2903
  };
3060
- var make24 = (params) => {
2904
+ var make23 = (params) => {
3061
2905
  const self = Object.create(Proto4);
3062
2906
  self.params = params;
3063
2907
  return self;
@@ -3076,7 +2920,7 @@ var fromInput2 = (input) => {
3076
2920
  out.push(parsed[i]);
3077
2921
  }
3078
2922
  }
3079
- return make24(out);
2923
+ return make23(out);
3080
2924
  };
3081
2925
  var fromInputNested = (input) => {
3082
2926
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3100,9 +2944,9 @@ var fromInputNested = (input) => {
3100
2944
  return out;
3101
2945
  };
3102
2946
  var coerce = (value) => isRedacted(value) ? value : String(value);
3103
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2947
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3104
2948
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3105
- var empty4 = /* @__PURE__ */ make24([]);
2949
+ var empty4 = /* @__PURE__ */ make23([]);
3106
2950
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3107
2951
  const params = fromInput2(input).params.slice();
3108
2952
  const keys = new Set;
@@ -3114,7 +2958,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3114
2958
  continue;
3115
2959
  params.push(self.params[i]);
3116
2960
  }
3117
- return make24(params);
2961
+ return make23(params);
3118
2962
  });
3119
2963
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3120
2964
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3170,13 +3014,13 @@ var decodeQueryKey = (key) => {
3170
3014
  return key;
3171
3015
  }
3172
3016
  };
3173
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3017
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3174
3018
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3175
3019
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3176
3020
  });
3177
3021
 
3178
3022
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3179
- var TypeId8 = "~effect/Terminal";
3023
+ var TypeId7 = "~effect/Terminal";
3180
3024
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3181
3025
 
3182
3026
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3185,14 +3029,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3185
3029
  [QuitErrorTypeId] = QuitErrorTypeId;
3186
3030
  }
3187
3031
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3188
- var make25 = (impl) => Terminal.of({
3032
+ var make24 = (impl) => Terminal.of({
3189
3033
  ...impl,
3190
- [TypeId8]: TypeId8
3034
+ [TypeId7]: TypeId7
3191
3035
  });
3192
3036
 
3193
3037
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3194
3038
  import * as readline from "readline";
3195
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3039
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3196
3040
  const stdin = process.stdin;
3197
3041
  const stdout = process.stdout;
3198
3042
  const lines = yield* make9();
@@ -3206,7 +3050,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3206
3050
  };
3207
3051
  stdin.once("end", onStdinEnd);
3208
3052
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3209
- const rlRef = yield* make18({
3053
+ const rlRef = yield* make10({
3210
3054
  acquire: acquireRelease(sync2(() => {
3211
3055
  const rl = readline.createInterface({
3212
3056
  input: stdin,
@@ -3245,7 +3089,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3245
3089
  if (stdin.isTTY)
3246
3090
  stdin.setRawMode(enabled);
3247
3091
  });
3248
- const rawModeRef = yield* make18({
3092
+ const rawModeRef = yield* make10({
3249
3093
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3250
3094
  idleTimeToLive: "10 millis"
3251
3095
  });
@@ -3296,14 +3140,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3296
3140
  if (inputEnded) {
3297
3141
  handleEnd();
3298
3142
  } else {
3299
- yield* get5(rlRef);
3300
- yield* get5(rawModeRef);
3143
+ yield* get3(rlRef);
3144
+ yield* get3(rawModeRef);
3301
3145
  stdin.once("end", handleEnd);
3302
3146
  }
3303
3147
  return queue;
3304
3148
  });
3305
3149
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3306
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3150
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3307
3151
  onSome: succeed6
3308
3152
  })), mapError2(() => new QuitError({}))));
3309
3153
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3314,7 +3158,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3314
3158
  cause: err
3315
3159
  }))));
3316
3160
  }));
3317
- return make25({
3161
+ return make24({
3318
3162
  columns,
3319
3163
  rows,
3320
3164
  size,
@@ -3323,7 +3167,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3323
3167
  display
3324
3168
  });
3325
3169
  });
3326
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3170
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3327
3171
  function defaultShouldQuit(input) {
3328
3172
  const key = input.key;
3329
3173
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3350,7 +3194,7 @@ function toDate(input) {
3350
3194
  return toDateUtc2(makeUnsafe(input));
3351
3195
  }
3352
3196
  function parseDate(input) {
3353
- return getOrUndefined(map4(make19(input), toDateUtc2));
3197
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3354
3198
  }
3355
3199
  function toIso(input) {
3356
3200
  return formatIso(makeUnsafe(input));
@@ -6171,7 +6015,9 @@ var RunWaiting = Union([
6171
6015
  kind: Literal("event"),
6172
6016
  name: String4.check(isMinLength(1)),
6173
6017
  event: String4.check(isMinLength(1)),
6174
- timesOutAt: Timestamp
6018
+ timesOutAt: Timestamp,
6019
+ changeRequestId: optionalKey(Id),
6020
+ head: optionalKey(String4)
6175
6021
  }),
6176
6022
  Struct({ kind: Literal("step"), name: String4.check(isMinLength(1)), stepAttemptId: Id }),
6177
6023
  Struct({ kind: Literal("child"), name: String4.check(isMinLength(1)), runId: Id }),
@@ -9611,11 +9457,11 @@ var TranscriptSearchResult = Struct({
9611
9457
  total: Int
9612
9458
  });
9613
9459
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9614
- var TypeId9 = "~effect/http/HttpBody";
9460
+ var TypeId8 = "~effect/http/HttpBody";
9615
9461
  class Proto5 {
9616
- [TypeId9];
9462
+ [TypeId8];
9617
9463
  constructor() {
9618
- this[TypeId9] = TypeId9;
9464
+ this[TypeId8] = TypeId8;
9619
9465
  }
9620
9466
  [NodeInspectSymbol]() {
9621
9467
  return this.toJSON();
@@ -9706,7 +9552,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9706
9552
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9707
9553
 
9708
9554
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9709
- var TypeId10 = "~effect/http/HttpClientError";
9555
+ var TypeId9 = "~effect/http/HttpClientError";
9710
9556
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9711
9557
  constructor(props) {
9712
9558
  if ("cause" in props.reason) {
@@ -9718,7 +9564,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9718
9564
  super(props);
9719
9565
  }
9720
9566
  }
9721
- [TypeId10] = TypeId10;
9567
+ [TypeId9] = TypeId9;
9722
9568
  get request() {
9723
9569
  return this.reason.request;
9724
9570
  }
@@ -9822,7 +9668,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9822
9668
  }
9823
9669
  }
9824
9670
 
9825
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9671
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9826
9672
  _tag: /* @__PURE__ */ tag("HttpError"),
9827
9673
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9828
9674
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9855,7 +9701,7 @@ var updateContentLength = (headers, body) => {
9855
9701
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9856
9702
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9857
9703
  }
9858
- var make27 = (url, params, hash) => try_({
9704
+ var make26 = (url, params, hash) => try_({
9859
9705
  try: () => {
9860
9706
  const urlInstance = new URL(url, baseUrl());
9861
9707
  for (let i = 0;i < params.params.length; i++) {
@@ -9886,10 +9732,10 @@ var baseUrl = () => {
9886
9732
  };
9887
9733
 
9888
9734
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9889
- var TypeId11 = "~effect/http/HttpClientRequest";
9890
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9735
+ var TypeId10 = "~effect/http/HttpClientRequest";
9736
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9891
9737
  var Proto6 = {
9892
- [TypeId11]: TypeId11,
9738
+ [TypeId10]: TypeId10,
9893
9739
  ...BaseProto,
9894
9740
  toJSON() {
9895
9741
  return {
@@ -9978,7 +9824,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9978
9824
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9979
9825
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9980
9826
  function toUrl(self) {
9981
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9827
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9982
9828
  if (isSuccess(r)) {
9983
9829
  return some(r.success);
9984
9830
  }
@@ -9986,7 +9832,7 @@ function toUrl(self) {
9986
9832
  }
9987
9833
 
9988
9834
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9989
- var TypeId12 = "~effect/http/HttpIncomingMessage";
9835
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
9990
9836
  var schemaBodyJson = (schema, options) => {
9991
9837
  const decode = decodeEffect(toCodecJson(schema));
9992
9838
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10005,7 +9851,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10005
9851
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10006
9852
 
10007
9853
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10008
- var TypeId13 = "~effect/http/HttpClientResponse";
9854
+ var TypeId12 = "~effect/http/HttpClientResponse";
10009
9855
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10010
9856
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10011
9857
  reason: new StatusCodeError({
@@ -10016,16 +9862,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10016
9862
  }));
10017
9863
 
10018
9864
  class WebHttpClientResponse extends Class {
9865
+ [TypeId11];
10019
9866
  [TypeId12];
10020
- [TypeId13];
10021
9867
  request;
10022
9868
  source;
10023
9869
  constructor(request, source) {
10024
9870
  super();
10025
9871
  this.request = request;
10026
9872
  this.source = source;
9873
+ this[TypeId11] = TypeId11;
10027
9874
  this[TypeId12] = TypeId12;
10028
- this[TypeId13] = TypeId13;
10029
9875
  }
10030
9876
  toJSON() {
10031
9877
  return inspect(this, {
@@ -10197,7 +10043,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10197
10043
  };
10198
10044
 
10199
10045
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10200
- var TypeId14 = "~effect/http/HttpClient";
10046
+ var TypeId13 = "~effect/http/HttpClient";
10201
10047
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10202
10048
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10203
10049
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10214,7 +10060,7 @@ var makeWith2 = (postprocess, preprocess) => {
10214
10060
  return self;
10215
10061
  };
10216
10062
  var Proto7 = {
10217
- [TypeId14]: TypeId14,
10063
+ [TypeId13]: TypeId13,
10218
10064
  pipe() {
10219
10065
  return pipeArguments(this, arguments);
10220
10066
  },
@@ -10228,10 +10074,10 @@ var Proto7 = {
10228
10074
  return this.execute(make5(fullMethod)(url, options));
10229
10075
  }]))
10230
10076
  };
10231
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10077
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10232
10078
  const scopedController = scopedRequests.get(request);
10233
10079
  const controller = scopedController ?? new AbortController;
10234
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10080
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10235
10081
  if (isFailure(urlResult)) {
10236
10082
  return fail7(new HttpClientError({
10237
10083
  reason: new InvalidUrlError({
@@ -10365,8 +10211,8 @@ class InterruptibleResponse {
10365
10211
  this.original = original;
10366
10212
  this.controller = controller;
10367
10213
  }
10368
- [TypeId13] = TypeId13;
10369
10214
  [TypeId12] = TypeId12;
10215
+ [TypeId11] = TypeId11;
10370
10216
  applyInterrupt(effect) {
10371
10217
  return suspend3(() => {
10372
10218
  responseRegistry.unregister(this.original);
@@ -10464,7 +10310,7 @@ var detectStreamBodySupport = () => {
10464
10310
  return false;
10465
10311
  }
10466
10312
  };
10467
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10313
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10468
10314
  if (request.headers.upgrade !== undefined) {
10469
10315
  return fail7(new HttpClientError({
10470
10316
  reason: new TransportError({
@@ -10555,10 +10401,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10555
10401
  });
10556
10402
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10557
10403
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10558
- var TypeId15 = "~effect/socket/Socket";
10404
+ var TypeId14 = "~effect/socket/Socket";
10559
10405
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10560
- var make29 = (options) => Socket.of({
10561
- [TypeId15]: TypeId15,
10406
+ var make28 = (options) => Socket.of({
10407
+ [TypeId14]: TypeId14,
10562
10408
  reader: options.reader,
10563
10409
  writer: options.writer
10564
10410
  });
@@ -10881,7 +10727,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10881
10727
  write,
10882
10728
  writeAll
10883
10729
  });
10884
- return succeed6(make29({
10730
+ return succeed6(make28({
10885
10731
  reader,
10886
10732
  writer
10887
10733
  }));
@@ -13745,7 +13591,7 @@ function getStreamSchemas(schema) {
13745
13591
  }
13746
13592
  var schema = /* @__PURE__ */ declare(isStream);
13747
13593
  function Stream(success, error) {
13748
- return make16(schema.ast, {
13594
+ return make17(schema.ast, {
13749
13595
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13750
13596
  success,
13751
13597
  error
@@ -13753,9 +13599,9 @@ function Stream(success, error) {
13753
13599
  }
13754
13600
 
13755
13601
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13756
- var TypeId16 = "~effect/rpc/Rpc";
13602
+ var TypeId15 = "~effect/rpc/Rpc";
13757
13603
  var Proto8 = {
13758
- [TypeId16]: TypeId16,
13604
+ [TypeId15]: TypeId15,
13759
13605
  pipe() {
13760
13606
  return pipeArguments(this, arguments);
13761
13607
  },
@@ -13922,7 +13768,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13922
13768
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13923
13769
 
13924
13770
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13925
- var TypeId17 = "~effect/rpc/RpcClientError";
13771
+ var TypeId16 = "~effect/rpc/RpcClientError";
13926
13772
 
13927
13773
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13928
13774
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13931,11 +13777,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13931
13777
  })) {
13932
13778
  }
13933
13779
 
13934
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13780
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13935
13781
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13936
13782
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13937
13783
  })) {
13938
- [TypeId17] = TypeId17;
13784
+ [TypeId16] = TypeId16;
13939
13785
  get message() {
13940
13786
  return `${this.reason._tag}: ${this.reason.message}`;
13941
13787
  }
@@ -14055,7 +13901,7 @@ var RpcGroupProto = {
14055
13901
  });
14056
13902
  },
14057
13903
  annotateRpcs(service, value) {
14058
- return this.annotateRpcsMerge(make14(service, value));
13904
+ return this.annotateRpcsMerge(make15(service, value));
14059
13905
  },
14060
13906
  annotateMerge(context) {
14061
13907
  return makeProto2({
@@ -14083,7 +13929,7 @@ var make7 = (...rpcs) => makeProto2({
14083
13929
  annotations: empty3()
14084
13930
  });
14085
13931
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14086
- var TypeId18 = "~effect/rpc/RpcMiddleware";
13932
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
14087
13933
  var Service = () => (id, options) => {
14088
13934
  const limit = getStackTraceLimit();
14089
13935
  let creationError;
@@ -14101,7 +13947,7 @@ var Service = () => (id, options) => {
14101
13947
  return creationError?.stack;
14102
13948
  }
14103
13949
  });
14104
- ServiceClass_[TypeId18] = TypeId18;
13950
+ ServiceClass_[TypeId17] = TypeId17;
14105
13951
  ServiceClass_.error = options?.error ?? Never;
14106
13952
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14107
13953
  return ServiceClass;
@@ -14623,11 +14469,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14623
14469
  lease: ProgramLease,
14624
14470
  step: String4,
14625
14471
  changeRequestId: String4,
14626
- head: optionalKey(String4)
14472
+ head: optionalKey(String4),
14473
+ rebase: optionalKey(Boolean2)
14627
14474
  },
14628
14475
  success: Union([
14629
14476
  Struct({ status: Literal("merged"), revision: String4 }),
14630
- Struct({ status: Literal("conflict") }),
14477
+ Struct({
14478
+ status: Literal("conflict"),
14479
+ reason: optionalKey(Literals(["conflicts", "behind", "not_ready"]))
14480
+ }),
14631
14481
  Struct({ status: Literal("moved"), head: String4 })
14632
14482
  ]),
14633
14483
  error: RunnerRpcError
@@ -14710,7 +14560,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14710
14560
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14711
14561
 
14712
14562
  // apps/cli/src/oauth.ts
14713
- var Scope2 = "openid profile email offline_access kitman:cli";
14563
+ var Scope = "openid profile email offline_access kitman:cli";
14714
14564
  var CallbackPath = "/auth/callback";
14715
14565
 
14716
14566
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14729,7 +14579,7 @@ function buildAuthorizeUrl(input) {
14729
14579
  url.searchParams.set("response_type", "code");
14730
14580
  url.searchParams.set("client_id", input.clientId);
14731
14581
  url.searchParams.set("redirect_uri", input.redirectUri);
14732
- url.searchParams.set("scope", Scope2);
14582
+ url.searchParams.set("scope", Scope);
14733
14583
  url.searchParams.set("code_challenge", input.codeChallenge);
14734
14584
  url.searchParams.set("code_challenge_method", "S256");
14735
14585
  url.searchParams.set("state", input.state);
@@ -14789,7 +14639,7 @@ function toStoredSession(token, existingRefreshToken) {
14789
14639
  }
14790
14640
  function startLoopbackServer(input) {
14791
14641
  return gen(function* () {
14792
- const code = yield* make15();
14642
+ const code = yield* make16();
14793
14643
  const context2 = yield* context();
14794
14644
  const runSyncExit = runSyncExitWith(context2);
14795
14645
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15329,7 +15179,7 @@ var openConnection = (transport) => gen(function* () {
15329
15179
  let lastId = 0;
15330
15180
  let lost = false;
15331
15181
  const notifications = yield* unbounded2();
15332
- const ended = yield* make15();
15182
+ const ended = yield* make16();
15333
15183
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15334
15184
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15335
15185
  onNone: () => void_3,
@@ -15356,7 +15206,7 @@ var openConnection = (transport) => gen(function* () {
15356
15206
  if (lost)
15357
15207
  return yield* new HerdrCoreConnectionLost2({ method });
15358
15208
  const id = ++lastId;
15359
- const deferred = yield* make15();
15209
+ const deferred = yield* make16();
15360
15210
  pending.set(id, { method, deferred });
15361
15211
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15362
15212
  return yield* _await(deferred);
@@ -15430,7 +15280,7 @@ var herdrCoreOver = (transport) => ({
15430
15280
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15431
15281
  };
15432
15282
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15433
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15283
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15434
15284
  }))
15435
15285
  });
15436
15286
  var spawnedTransport = (env) => gen(function* () {
@@ -15521,7 +15371,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15521
15371
  const spawner = yield* ChildProcessSpawner;
15522
15372
  const [command, ...args] = argv;
15523
15373
  const handle = yield* spawner.spawn(make3(command, args, {
15524
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15374
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15525
15375
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15526
15376
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15527
15377
  }));