@kitman-sh/cli 0.10.84 → 0.10.86

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-tzz4fv17.js → chunk-292vjjdz.js} +1 -1
  2. package/dist/{chunk-397fax43.js → chunk-2fqry6rd.js} +33 -185
  3. package/dist/{chunk-ynn6jk0w.js → chunk-38end526.js} +78 -64
  4. package/dist/{chunk-kgdppbdr.js → chunk-3wvp5n5a.js} +1 -1
  5. package/dist/{chunk-9gztfcvf.js → chunk-4sz3sg95.js} +7 -7
  6. package/dist/{chunk-2tpysgqk.js → chunk-6tq2m8xc.js} +3 -3
  7. package/dist/{chunk-76ctrqm6.js → chunk-93vddjpx.js} +1 -1
  8. package/dist/{chunk-0mgbryyd.js → chunk-999xbcaa.js} +9 -9
  9. package/dist/{chunk-hgx1dq68.js → chunk-b0qaan2c.js} +4 -4
  10. package/dist/{chunk-cakmwaed.js → chunk-bjexx93x.js} +2 -2
  11. package/dist/{chunk-ze0f51ds.js → chunk-ehwvgxq8.js} +11 -11
  12. package/dist/{chunk-92mjxge4.js → chunk-ekkjbmr9.js} +8 -8
  13. package/dist/{chunk-2k1qfyvx.js → chunk-gmt7awee.js} +6 -6
  14. package/dist/{chunk-d53rckf0.js → chunk-h8fq958v.js} +305 -144
  15. package/dist/{chunk-7qbchfkf.js → chunk-jfgmhb6k.js} +9 -9
  16. package/dist/{chunk-98r2t1s6.js → chunk-mak28dxp.js} +18 -18
  17. package/dist/{chunk-kxtmk59a.js → chunk-mr30hj39.js} +5 -5
  18. package/dist/{chunk-kp01bv8f.js → chunk-q1qrwcnw.js} +23 -23
  19. package/dist/{chunk-ebd5zjnx.js → chunk-qnnsy306.js} +2 -2
  20. package/dist/{chunk-93b1hdfa.js → chunk-wbdgjd1n.js} +29 -29
  21. package/dist/{chunk-ky974pcr.js → chunk-wtx1vq9t.js} +4 -4
  22. package/dist/{chunk-jbwk6k6m.js → chunk-xq4k0mgr.js} +60 -60
  23. package/dist/{chunk-krh0gek1.js → chunk-y1x0mb3b.js} +17 -17
  24. package/dist/{chunk-62565d52.js → chunk-zms40x1v.js} +2 -2
  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
+ make13,
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
+ make14,
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,
@@ -84,14 +86,14 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
87
- ClockRef,
88
- currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
+ void_2,
92
93
  isSuccess2,
94
+ isFailure2,
93
95
  makeUnsafe5,
94
- make16,
96
+ make15,
95
97
  _await,
96
98
  fail5,
97
99
  isDone,
@@ -99,8 +101,12 @@ import {
99
101
  succeed4,
100
102
  doneUnsafe,
101
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
102
106
  provide,
107
+ addFinalizerExit,
103
108
  addFinalizer,
109
+ close,
104
110
  succeed5,
105
111
  effect,
106
112
  effectContext,
@@ -152,6 +158,7 @@ import {
152
158
  tapCause,
153
159
  retry,
154
160
  ignore,
161
+ ignoreCause,
155
162
  orElseSucceed,
156
163
  timeout,
157
164
  timeoutOrElse,
@@ -163,6 +170,7 @@ import {
163
170
  context,
164
171
  contextWith,
165
172
  provide3,
173
+ provideContext2,
166
174
  serviceOption,
167
175
  updateContext,
168
176
  provideService,
@@ -173,6 +181,7 @@ import {
173
181
  addFinalizer2,
174
182
  ensuring2,
175
183
  onError,
184
+ onExit,
176
185
  cached,
177
186
  interrupt3,
178
187
  interruptible,
@@ -184,6 +193,7 @@ import {
184
193
  withParentSpan,
185
194
  forkScoped,
186
195
  runFork,
196
+ runForkWith,
187
197
  runPromise,
188
198
  runPromiseWith,
189
199
  runSync,
@@ -202,7 +212,7 @@ import {
202
212
  decodeEffect,
203
213
  decodeUnknownOption,
204
214
  decodeOption,
205
- make17,
215
+ make16,
206
216
  isSchema,
207
217
  optionalKey,
208
218
  optional,
@@ -249,12 +259,44 @@ import {
249
259
  decodeJsonStringOption,
250
260
  encodeJsonStringSync,
251
261
  encodePrettyJsonString
252
- } from "./chunk-jbwk6k6m.js";
262
+ } from "./chunk-xq4k0mgr.js";
263
+ import {
264
+ isDateTime,
265
+ Numeric,
266
+ isWholeNumber,
267
+ guard,
268
+ Id,
269
+ Timestamp,
270
+ ActorType,
271
+ SecretName,
272
+ SecretScope,
273
+ SecretHosts,
274
+ isSecretReference
275
+ } from "./chunk-3wvp5n5a.js";
276
+ import {
277
+ toJsonValue,
278
+ isOneOf,
279
+ isBigInt,
280
+ isBoolean,
281
+ isFunction,
282
+ isNumber,
283
+ isObject,
284
+ isJsonObject,
285
+ isString,
286
+ isSymbol,
287
+ isUndefined,
288
+ kindOf
289
+ } from "./chunk-292vjjdz.js";
253
290
  import {
254
291
  map,
255
292
  makeEquivalence,
256
- toNumber,
293
+ Clock,
294
+ currentTimeMillis,
257
295
  bytes,
296
+ join,
297
+ interrupt,
298
+ getCurrent,
299
+ runIn,
258
300
  BadArgument,
259
301
  systemError,
260
302
  badArgument,
@@ -276,13 +318,11 @@ import {
276
318
  isSink,
277
319
  fromChannel,
278
320
  drain,
279
- make10,
280
- get3,
281
321
  isStream,
282
322
  fromChannel2,
283
323
  callback,
284
324
  empty2,
285
- make11,
325
+ make10,
286
326
  suspend,
287
327
  fail2,
288
328
  fromQueue,
@@ -308,43 +348,16 @@ import {
308
348
  mkArrayBuffer,
309
349
  toReadableStreamEffect,
310
350
  FileSystem,
311
- make12,
351
+ make11,
312
352
  FileTypeId,
313
353
  WatchBackend,
314
354
  Path,
315
- make13,
355
+ make12,
316
356
  option,
317
357
  String2,
318
358
  optionalEnv,
319
359
  harnessesUnsupportedInSrt2
320
- } from "./chunk-397fax43.js";
321
- import {
322
- isDateTime,
323
- Numeric,
324
- isWholeNumber,
325
- guard,
326
- Id,
327
- Timestamp,
328
- ActorType,
329
- SecretName,
330
- SecretScope,
331
- SecretHosts,
332
- isSecretReference
333
- } from "./chunk-kgdppbdr.js";
334
- import {
335
- toJsonValue,
336
- isOneOf,
337
- isBigInt,
338
- isBoolean,
339
- isFunction,
340
- isNumber,
341
- isObject,
342
- isJsonObject,
343
- isString,
344
- isSymbol,
345
- isUndefined,
346
- kindOf
347
- } from "./chunk-tzz4fv17.js";
360
+ } from "./chunk-2fqry6rd.js";
348
361
  import {
349
362
  isRedacted,
350
363
  make,
@@ -358,15 +371,11 @@ import {
358
371
  make3,
359
372
  parseFdName,
360
373
  fdName
361
- } from "./chunk-cakmwaed.js";
374
+ } from "./chunk-bjexx93x.js";
362
375
 
363
376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
364
377
  var makeEquivalence3 = Tuple;
365
378
 
366
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
367
- var Clock = ClockRef;
368
- var currentTimeMillis = currentTimeMillis2;
369
-
370
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
371
380
  var TypeId = "~effect/DateTime";
372
381
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -501,7 +510,7 @@ var fromDateUnsafe = (date) => {
501
510
  }
502
511
  return makeUtc(epochMillis);
503
512
  };
504
- var makeUnsafe6 = (input) => {
513
+ var makeUnsafe7 = (input) => {
505
514
  if (isDateTime2(input)) {
506
515
  return input;
507
516
  } else if (input instanceof Date) {
@@ -521,7 +530,7 @@ var makeUnsafe6 = (input) => {
521
530
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
522
531
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
523
532
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
524
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
533
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
525
534
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
526
535
  var nowUnsafe = () => makeUtc(Date.now());
527
536
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -628,7 +637,7 @@ class Metric$ {
628
637
  }
629
638
  hook(context) {
630
639
  const key = this.key(context);
631
- const registry = get4(context, MetricRegistry);
640
+ const registry = get3(context, MetricRegistry);
632
641
  let metadata = registry.get(key);
633
642
  if (isUndefined2(metadata)) {
634
643
  metadata = this.metadata(this.createHooks());
@@ -637,11 +646,11 @@ class Metric$ {
637
646
  return metadata.hooks;
638
647
  }
639
648
  removeUnsafe(context) {
640
- get4(context, MetricRegistry).delete(this.key(context));
649
+ get3(context, MetricRegistry).delete(this.key(context));
641
650
  }
642
651
  registerUnsafe(context, hooks) {
643
652
  const key = this.key(context);
644
- const registry = get4(context, MetricRegistry);
653
+ const registry = get3(context, MetricRegistry);
645
654
  const metadata = this.metadata({
646
655
  get: hooks.get,
647
656
  update: constVoid,
@@ -657,7 +666,7 @@ class Metric$ {
657
666
  };
658
667
  }
659
668
  key(context) {
660
- const extraAttributes = get4(context, CurrentMetricAttributes);
669
+ const extraAttributes = get3(context, CurrentMetricAttributes);
661
670
  if (extraAttributes !== this.#extraAttributes) {
662
671
  this.#extraAttributes = extraAttributes;
663
672
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -900,9 +909,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
900
909
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
901
910
  var runMain = runMain2;
902
911
 
912
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
913
+ var BigInt2 = globalThis.BigInt;
914
+ var toNumber = (b) => {
915
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
916
+ return none();
917
+ }
918
+ return some(Number(b));
919
+ };
920
+
921
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
922
+ var TypeId3 = "~effect/RcRef";
923
+ var stateEmpty = {
924
+ _tag: "Empty"
925
+ };
926
+ var stateClosed = {
927
+ _tag: "Closed"
928
+ };
929
+ var variance = {
930
+ _A: identity,
931
+ _E: identity
932
+ };
933
+
934
+ class RcRefImpl {
935
+ [TypeId3] = variance;
936
+ pipe() {
937
+ return pipeArguments(this, arguments);
938
+ }
939
+ state = stateEmpty;
940
+ acquire;
941
+ context;
942
+ scope;
943
+ idleTimeToLive;
944
+ constructor(acquire, context, scope, idleTimeToLive) {
945
+ this.acquire = acquire;
946
+ this.context = context;
947
+ this.scope = scope;
948
+ this.idleTimeToLive = idleTimeToLive;
949
+ }
950
+ }
951
+ var make17 = (options) => withFiber2((fiber) => {
952
+ const context = fiber.context;
953
+ const scope = get3(context, Scope);
954
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
955
+ return as(addFinalizerExit(scope, () => {
956
+ const state = ref.state;
957
+ ref.state = stateClosed;
958
+ if (state._tag === "Acquired")
959
+ return close(state.scope, void_2);
960
+ if (state._tag === "Acquiring")
961
+ return interrupt(state.fiber);
962
+ return void_3;
963
+ }), ref);
964
+ });
965
+ var getState = (self, restore) => {
966
+ switch (self.state._tag) {
967
+ case "Closed": {
968
+ return interrupt3;
969
+ }
970
+ case "Acquired": {
971
+ const state = self.state;
972
+ state.refCount++;
973
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
974
+ }
975
+ case "Acquiring": {
976
+ const state = self.state;
977
+ state.awaiters++;
978
+ return awaitAcquiring(self, state, restore);
979
+ }
980
+ case "Empty": {
981
+ const acquiring = {
982
+ _tag: "Acquiring",
983
+ fiber: undefined,
984
+ awaiters: 1,
985
+ acquired: undefined
986
+ };
987
+ self.state = acquiring;
988
+ const scope = makeUnsafe6();
989
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
990
+ if (self.state !== acquiring) {
991
+ return interrupt3;
992
+ }
993
+ const state = {
994
+ _tag: "Acquired",
995
+ value,
996
+ scope,
997
+ fiber: undefined,
998
+ refCount: acquiring.awaiters,
999
+ invalidated: false
1000
+ };
1001
+ self.state = state;
1002
+ acquiring.acquired = state;
1003
+ return succeed6(state);
1004
+ }), onExit((exit) => {
1005
+ if (isSuccess2(exit))
1006
+ return void_3;
1007
+ if (self.state === acquiring)
1008
+ self.state = stateEmpty;
1009
+ return close(scope, exit);
1010
+ }));
1011
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1012
+ return awaitAcquiring(self, acquiring, restore);
1013
+ }
1014
+ }
1015
+ };
1016
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1017
+ const acquired = acquiring.acquired;
1018
+ if (acquired !== undefined) {
1019
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1020
+ }
1021
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1022
+ return void_3;
1023
+ self.state = stateEmpty;
1024
+ return interrupt(acquiring.fiber);
1025
+ });
1026
+ var get4 = (self_) => {
1027
+ const self = self_;
1028
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1029
+ };
1030
+ var release = (self, state) => {
1031
+ state.refCount--;
1032
+ if (state.refCount > 0) {
1033
+ return void_3;
1034
+ }
1035
+ const idleTimeToLive = self.idleTimeToLive;
1036
+ if (idleTimeToLive === undefined || state.invalidated) {
1037
+ if (self.state === state) {
1038
+ self.state = stateEmpty;
1039
+ }
1040
+ return close(state.scope, void_2);
1041
+ } else if (!isFinite(idleTimeToLive)) {
1042
+ return void_3;
1043
+ }
1044
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1045
+ if (self.state === state && state.refCount === 0) {
1046
+ self.state = stateEmpty;
1047
+ return ignoreCause(close(state.scope, void_2), {
1048
+ log: "Unhandled",
1049
+ message: "Unhandled error in RcRef finalizer"
1050
+ });
1051
+ }
1052
+ return void_3;
1053
+ })).pipe(ensuring2(sync2(() => {
1054
+ state.fiber = undefined;
1055
+ })), runForkWith(self.context), runIn(self.scope));
1056
+ return void_3;
1057
+ };
1058
+
1059
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1060
+ var make18 = make17;
1061
+ var get5 = get4;
1062
+
903
1063
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
904
- var makeUnsafe = makeUnsafe6;
905
- var make18 = make4;
1064
+ var makeUnsafe = makeUnsafe7;
1065
+ var make19 = make4;
906
1066
  var now2 = now;
907
1067
  var nowUnsafe2 = nowUnsafe;
908
1068
  var toDateUtc2 = toDateUtc;
@@ -1221,7 +1381,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1221
1381
  windowsHide: true
1222
1382
  }, onExit);
1223
1383
  };
1224
- var make19 = /* @__PURE__ */ gen(function* () {
1384
+ var make20 = /* @__PURE__ */ gen(function* () {
1225
1385
  const fs = yield* FileSystem;
1226
1386
  const path = yield* Path;
1227
1387
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1750,7 +1910,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1750
1910
  });
1751
1911
  return make2(spawnCommand);
1752
1912
  });
1753
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1913
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1754
1914
  var flattenCommand = (command) => {
1755
1915
  const commands = [];
1756
1916
  const pipeOptions = [];
@@ -2234,7 +2394,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2234
2394
  resume(fail7(handleBadArgument("writeFile")(err)));
2235
2395
  }
2236
2396
  });
2237
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2397
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2238
2398
  access: access2,
2239
2399
  chmod: chmod2,
2240
2400
  chown: chown2,
@@ -2294,15 +2454,15 @@ var fileUrlOps = (windows) => ({
2294
2454
  })
2295
2455
  })
2296
2456
  });
2297
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2457
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2298
2458
  ...NodePath.posix,
2299
2459
  .../* @__PURE__ */ fileUrlOps(false)
2300
2460
  }));
2301
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2461
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2302
2462
  ...NodePath.win32,
2303
2463
  .../* @__PURE__ */ fileUrlOps(true)
2304
2464
  }));
2305
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2465
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2466
  ...NodePath,
2307
2467
  .../* @__PURE__ */ fileUrlOps(undefined)
2308
2468
  }));
@@ -2311,10 +2471,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2311
2471
  var layer2 = layer7;
2312
2472
 
2313
2473
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2314
- var TypeId3 = "~effect/Stdio";
2315
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2316
- var make20 = (options) => ({
2317
- [TypeId3]: TypeId3,
2474
+ var TypeId4 = "~effect/Stdio";
2475
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2476
+ var make21 = (options) => ({
2477
+ [TypeId4]: TypeId4,
2318
2478
  stdinIsTerminal: succeed6(false),
2319
2479
  stdoutIsTerminal: succeed6(false),
2320
2480
  stderrIsTerminal: succeed6(false),
@@ -2322,7 +2482,7 @@ var make20 = (options) => ({
2322
2482
  });
2323
2483
 
2324
2484
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2325
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2485
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2326
2486
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2327
2487
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2328
2488
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2522,7 +2682,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2522
2682
  const uuid = bytes(randomBytes(16));
2523
2683
  return format === "bytes" ? uuid : stringify(uuid);
2524
2684
  };
2525
- var make21 = (randomBytes) => {
2685
+ var make22 = (randomBytes) => {
2526
2686
  const randomBytesChecked = (size) => {
2527
2687
  checkSize(size);
2528
2688
  return randomBytes(size);
@@ -2556,13 +2716,13 @@ var fillRandom = (crypto2, size) => {
2556
2716
  }
2557
2717
  return bytes;
2558
2718
  };
2559
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2719
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2560
2720
 
2561
2721
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2562
- var TypeId4 = "~effect/http/Cookies";
2722
+ var TypeId5 = "~effect/http/Cookies";
2563
2723
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2564
2724
  var Proto2 = {
2565
- [TypeId4]: TypeId4,
2725
+ [TypeId5]: TypeId5,
2566
2726
  ...BaseProto,
2567
2727
  toJSON() {
2568
2728
  return {
@@ -2741,14 +2901,14 @@ var tryDecodeURIComponent = (str) => {
2741
2901
  };
2742
2902
 
2743
2903
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2744
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2904
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2745
2905
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2746
- [TypeId5]: {
2747
- value: TypeId5
2906
+ [TypeId6]: {
2907
+ value: TypeId6
2748
2908
  },
2749
2909
  [symbolRedactable]: {
2750
2910
  value(context) {
2751
- return redact2(this, get4(context, CurrentRedactedNames));
2911
+ return redact2(this, get3(context, CurrentRedactedNames));
2752
2912
  }
2753
2913
  },
2754
2914
  toJSON: {
@@ -2773,7 +2933,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2773
2933
  value: BaseProto[NodeInspectSymbol]
2774
2934
  }
2775
2935
  });
2776
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2936
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2777
2937
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2778
2938
  var empty = /* @__PURE__ */ Object.create(Proto3);
2779
2939
  var fromInput = (input) => {
@@ -2798,21 +2958,21 @@ var fromInput = (input) => {
2798
2958
  };
2799
2959
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2800
2960
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2801
- const out = make22(self);
2961
+ const out = make23(self);
2802
2962
  out[key.toLowerCase()] = value;
2803
2963
  return out;
2804
2964
  });
2805
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2965
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2806
2966
  ...self,
2807
2967
  ...fromInput(headers)
2808
2968
  }));
2809
2969
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2810
- const out = make22(self);
2970
+ const out = make23(self);
2811
2971
  Object.assign(out, headers);
2812
2972
  return out;
2813
2973
  });
2814
2974
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2815
- const out = make22(self);
2975
+ const out = make23(self);
2816
2976
  delete out[key.toLowerCase()];
2817
2977
  return out;
2818
2978
  });
@@ -2869,18 +3029,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2869
3029
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2870
3030
 
2871
3031
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2872
- var TypeId6 = "~effect/http/UrlParams";
2873
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3032
+ var TypeId7 = "~effect/http/UrlParams";
3033
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2874
3034
  var Proto4 = {
2875
3035
  ...PipeInspectableProto,
2876
- [TypeId6]: TypeId6,
3036
+ [TypeId7]: TypeId7,
2877
3037
  [Symbol.iterator]() {
2878
3038
  return this.params[Symbol.iterator]();
2879
3039
  },
2880
3040
  [symbolRedactable](context) {
2881
3041
  return {
2882
3042
  _id: "UrlParams",
2883
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3043
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2884
3044
  };
2885
3045
  },
2886
3046
  toJSON() {
@@ -2893,7 +3053,7 @@ var Proto4 = {
2893
3053
  return array(this.params.flat());
2894
3054
  }
2895
3055
  };
2896
- var make23 = (params) => {
3056
+ var make24 = (params) => {
2897
3057
  const self = Object.create(Proto4);
2898
3058
  self.params = params;
2899
3059
  return self;
@@ -2912,7 +3072,7 @@ var fromInput2 = (input) => {
2912
3072
  out.push(parsed[i]);
2913
3073
  }
2914
3074
  }
2915
- return make23(out);
3075
+ return make24(out);
2916
3076
  };
2917
3077
  var fromInputNested = (input) => {
2918
3078
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2936,9 +3096,9 @@ var fromInputNested = (input) => {
2936
3096
  return out;
2937
3097
  };
2938
3098
  var coerce = (value) => isRedacted(value) ? value : String(value);
2939
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3099
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2940
3100
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2941
- var empty4 = /* @__PURE__ */ make23([]);
3101
+ var empty4 = /* @__PURE__ */ make24([]);
2942
3102
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2943
3103
  const params = fromInput2(input).params.slice();
2944
3104
  const keys = new Set;
@@ -2950,7 +3110,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2950
3110
  continue;
2951
3111
  params.push(self.params[i]);
2952
3112
  }
2953
- return make23(params);
3113
+ return make24(params);
2954
3114
  });
2955
3115
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2956
3116
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3006,13 +3166,13 @@ var decodeQueryKey = (key) => {
3006
3166
  return key;
3007
3167
  }
3008
3168
  };
3009
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3169
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3010
3170
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3011
3171
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3012
3172
  });
3013
3173
 
3014
3174
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3015
- var TypeId7 = "~effect/Terminal";
3175
+ var TypeId8 = "~effect/Terminal";
3016
3176
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3017
3177
 
3018
3178
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3021,14 +3181,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3021
3181
  [QuitErrorTypeId] = QuitErrorTypeId;
3022
3182
  }
3023
3183
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3024
- var make24 = (impl) => Terminal.of({
3184
+ var make25 = (impl) => Terminal.of({
3025
3185
  ...impl,
3026
- [TypeId7]: TypeId7
3186
+ [TypeId8]: TypeId8
3027
3187
  });
3028
3188
 
3029
3189
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3030
3190
  import * as readline from "readline";
3031
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3191
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3032
3192
  const stdin = process.stdin;
3033
3193
  const stdout = process.stdout;
3034
3194
  const lines = yield* make9();
@@ -3042,7 +3202,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3042
3202
  };
3043
3203
  stdin.once("end", onStdinEnd);
3044
3204
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3045
- const rlRef = yield* make10({
3205
+ const rlRef = yield* make18({
3046
3206
  acquire: acquireRelease(sync2(() => {
3047
3207
  const rl = readline.createInterface({
3048
3208
  input: stdin,
@@ -3081,7 +3241,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3081
3241
  if (stdin.isTTY)
3082
3242
  stdin.setRawMode(enabled);
3083
3243
  });
3084
- const rawModeRef = yield* make10({
3244
+ const rawModeRef = yield* make18({
3085
3245
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3086
3246
  idleTimeToLive: "10 millis"
3087
3247
  });
@@ -3132,14 +3292,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3132
3292
  if (inputEnded) {
3133
3293
  handleEnd();
3134
3294
  } else {
3135
- yield* get3(rlRef);
3136
- yield* get3(rawModeRef);
3295
+ yield* get5(rlRef);
3296
+ yield* get5(rawModeRef);
3137
3297
  stdin.once("end", handleEnd);
3138
3298
  }
3139
3299
  return queue;
3140
3300
  });
3141
3301
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3142
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3302
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3143
3303
  onSome: succeed6
3144
3304
  })), mapError2(() => new QuitError({}))));
3145
3305
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3150,7 +3310,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3150
3310
  cause: err
3151
3311
  }))));
3152
3312
  }));
3153
- return make24({
3313
+ return make25({
3154
3314
  columns,
3155
3315
  rows,
3156
3316
  size,
@@ -3159,7 +3319,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3159
3319
  display
3160
3320
  });
3161
3321
  });
3162
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3322
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3163
3323
  function defaultShouldQuit(input) {
3164
3324
  const key = input.key;
3165
3325
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3186,7 +3346,7 @@ function toDate(input) {
3186
3346
  return toDateUtc2(makeUnsafe(input));
3187
3347
  }
3188
3348
  function parseDate(input) {
3189
- return getOrUndefined(map4(make18(input), toDateUtc2));
3349
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3190
3350
  }
3191
3351
  function toIso(input) {
3192
3352
  return formatIso(makeUnsafe(input));
@@ -6381,7 +6541,8 @@ var RunDisplayStates = [
6381
6541
  var RunDisplay = Struct({
6382
6542
  state: Literals(RunDisplayStates),
6383
6543
  retried: Boolean2,
6384
- summary: optionalKey(String4)
6544
+ summary: optionalKey(String4),
6545
+ childQuestion: optionalKey(Struct({ runId: Id, name: String4, questionId: Id, prompt: String4 }))
6385
6546
  });
6386
6547
  var RunGraphNodeKinds = ["agent", "check", "question", "child", "wait", "activity"];
6387
6548
  var RunGraphNode = Struct({
@@ -9387,11 +9548,11 @@ var TranscriptSearchResult = Struct({
9387
9548
  total: Int
9388
9549
  });
9389
9550
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9390
- var TypeId8 = "~effect/http/HttpBody";
9551
+ var TypeId9 = "~effect/http/HttpBody";
9391
9552
  class Proto5 {
9392
- [TypeId8];
9553
+ [TypeId9];
9393
9554
  constructor() {
9394
- this[TypeId8] = TypeId8;
9555
+ this[TypeId9] = TypeId9;
9395
9556
  }
9396
9557
  [NodeInspectSymbol]() {
9397
9558
  return this.toJSON();
@@ -9482,7 +9643,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9482
9643
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9483
9644
 
9484
9645
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9485
- var TypeId9 = "~effect/http/HttpClientError";
9646
+ var TypeId10 = "~effect/http/HttpClientError";
9486
9647
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9487
9648
  constructor(props) {
9488
9649
  if ("cause" in props.reason) {
@@ -9494,7 +9655,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9494
9655
  super(props);
9495
9656
  }
9496
9657
  }
9497
- [TypeId9] = TypeId9;
9658
+ [TypeId10] = TypeId10;
9498
9659
  get request() {
9499
9660
  return this.reason.request;
9500
9661
  }
@@ -9598,7 +9759,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9598
9759
  }
9599
9760
  }
9600
9761
 
9601
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9762
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9602
9763
  _tag: /* @__PURE__ */ tag("HttpError"),
9603
9764
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9604
9765
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9631,7 +9792,7 @@ var updateContentLength = (headers, body) => {
9631
9792
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9632
9793
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9633
9794
  }
9634
- var make26 = (url, params, hash) => try_({
9795
+ var make27 = (url, params, hash) => try_({
9635
9796
  try: () => {
9636
9797
  const urlInstance = new URL(url, baseUrl());
9637
9798
  for (let i = 0;i < params.params.length; i++) {
@@ -9662,10 +9823,10 @@ var baseUrl = () => {
9662
9823
  };
9663
9824
 
9664
9825
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9665
- var TypeId10 = "~effect/http/HttpClientRequest";
9666
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9826
+ var TypeId11 = "~effect/http/HttpClientRequest";
9827
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9667
9828
  var Proto6 = {
9668
- [TypeId10]: TypeId10,
9829
+ [TypeId11]: TypeId11,
9669
9830
  ...BaseProto,
9670
9831
  toJSON() {
9671
9832
  return {
@@ -9754,7 +9915,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9754
9915
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9755
9916
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9756
9917
  function toUrl(self) {
9757
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9918
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9758
9919
  if (isSuccess(r)) {
9759
9920
  return some(r.success);
9760
9921
  }
@@ -9762,7 +9923,7 @@ function toUrl(self) {
9762
9923
  }
9763
9924
 
9764
9925
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9765
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9926
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9766
9927
  var schemaBodyJson = (schema, options) => {
9767
9928
  const decode = decodeEffect(toCodecJson(schema));
9768
9929
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9781,7 +9942,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9781
9942
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9782
9943
 
9783
9944
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9784
- var TypeId12 = "~effect/http/HttpClientResponse";
9945
+ var TypeId13 = "~effect/http/HttpClientResponse";
9785
9946
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9786
9947
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9787
9948
  reason: new StatusCodeError({
@@ -9792,16 +9953,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9792
9953
  }));
9793
9954
 
9794
9955
  class WebHttpClientResponse extends Class {
9795
- [TypeId11];
9796
9956
  [TypeId12];
9957
+ [TypeId13];
9797
9958
  request;
9798
9959
  source;
9799
9960
  constructor(request, source) {
9800
9961
  super();
9801
9962
  this.request = request;
9802
9963
  this.source = source;
9803
- this[TypeId11] = TypeId11;
9804
9964
  this[TypeId12] = TypeId12;
9965
+ this[TypeId13] = TypeId13;
9805
9966
  }
9806
9967
  toJSON() {
9807
9968
  return inspect(this, {
@@ -9973,7 +10134,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9973
10134
  };
9974
10135
 
9975
10136
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9976
- var TypeId13 = "~effect/http/HttpClient";
10137
+ var TypeId14 = "~effect/http/HttpClient";
9977
10138
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9978
10139
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9979
10140
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9990,7 +10151,7 @@ var makeWith2 = (postprocess, preprocess) => {
9990
10151
  return self;
9991
10152
  };
9992
10153
  var Proto7 = {
9993
- [TypeId13]: TypeId13,
10154
+ [TypeId14]: TypeId14,
9994
10155
  pipe() {
9995
10156
  return pipeArguments(this, arguments);
9996
10157
  },
@@ -10004,10 +10165,10 @@ var Proto7 = {
10004
10165
  return this.execute(make5(fullMethod)(url, options));
10005
10166
  }]))
10006
10167
  };
10007
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10168
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10008
10169
  const scopedController = scopedRequests.get(request);
10009
10170
  const controller = scopedController ?? new AbortController;
10010
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10171
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10011
10172
  if (isFailure(urlResult)) {
10012
10173
  return fail7(new HttpClientError({
10013
10174
  reason: new InvalidUrlError({
@@ -10141,8 +10302,8 @@ class InterruptibleResponse {
10141
10302
  this.original = original;
10142
10303
  this.controller = controller;
10143
10304
  }
10305
+ [TypeId13] = TypeId13;
10144
10306
  [TypeId12] = TypeId12;
10145
- [TypeId11] = TypeId11;
10146
10307
  applyInterrupt(effect) {
10147
10308
  return suspend3(() => {
10148
10309
  responseRegistry.unregister(this.original);
@@ -10240,7 +10401,7 @@ var detectStreamBodySupport = () => {
10240
10401
  return false;
10241
10402
  }
10242
10403
  };
10243
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10404
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10244
10405
  if (request.headers.upgrade !== undefined) {
10245
10406
  return fail7(new HttpClientError({
10246
10407
  reason: new TransportError({
@@ -10331,10 +10492,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10331
10492
  });
10332
10493
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10333
10494
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10334
- var TypeId14 = "~effect/socket/Socket";
10495
+ var TypeId15 = "~effect/socket/Socket";
10335
10496
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10336
- var make28 = (options) => Socket.of({
10337
- [TypeId14]: TypeId14,
10497
+ var make29 = (options) => Socket.of({
10498
+ [TypeId15]: TypeId15,
10338
10499
  reader: options.reader,
10339
10500
  writer: options.writer
10340
10501
  });
@@ -10657,7 +10818,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10657
10818
  write,
10658
10819
  writeAll
10659
10820
  });
10660
- return succeed6(make28({
10821
+ return succeed6(make29({
10661
10822
  reader,
10662
10823
  writer
10663
10824
  }));
@@ -13509,7 +13670,7 @@ function getStreamSchemas(schema) {
13509
13670
  }
13510
13671
  var schema = /* @__PURE__ */ declare(isStream);
13511
13672
  function Stream(success, error) {
13512
- return make17(schema.ast, {
13673
+ return make16(schema.ast, {
13513
13674
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13514
13675
  success,
13515
13676
  error
@@ -13517,9 +13678,9 @@ function Stream(success, error) {
13517
13678
  }
13518
13679
 
13519
13680
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13520
- var TypeId15 = "~effect/rpc/Rpc";
13681
+ var TypeId16 = "~effect/rpc/Rpc";
13521
13682
  var Proto8 = {
13522
- [TypeId15]: TypeId15,
13683
+ [TypeId16]: TypeId16,
13523
13684
  pipe() {
13524
13685
  return pipeArguments(this, arguments);
13525
13686
  },
@@ -13686,7 +13847,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13686
13847
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13687
13848
 
13688
13849
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13689
- var TypeId16 = "~effect/rpc/RpcClientError";
13850
+ var TypeId17 = "~effect/rpc/RpcClientError";
13690
13851
 
13691
13852
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13692
13853
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13695,11 +13856,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13695
13856
  })) {
13696
13857
  }
13697
13858
 
13698
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13859
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13699
13860
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13700
13861
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13701
13862
  })) {
13702
- [TypeId16] = TypeId16;
13863
+ [TypeId17] = TypeId17;
13703
13864
  get message() {
13704
13865
  return `${this.reason._tag}: ${this.reason.message}`;
13705
13866
  }
@@ -13819,7 +13980,7 @@ var RpcGroupProto = {
13819
13980
  });
13820
13981
  },
13821
13982
  annotateRpcs(service, value) {
13822
- return this.annotateRpcsMerge(make15(service, value));
13983
+ return this.annotateRpcsMerge(make14(service, value));
13823
13984
  },
13824
13985
  annotateMerge(context) {
13825
13986
  return makeProto2({
@@ -13847,7 +14008,7 @@ var make7 = (...rpcs) => makeProto2({
13847
14008
  annotations: empty3()
13848
14009
  });
13849
14010
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13850
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14011
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13851
14012
  var Service = () => (id, options) => {
13852
14013
  const limit = getStackTraceLimit();
13853
14014
  let creationError;
@@ -13865,7 +14026,7 @@ var Service = () => (id, options) => {
13865
14026
  return creationError?.stack;
13866
14027
  }
13867
14028
  });
13868
- ServiceClass_[TypeId17] = TypeId17;
14029
+ ServiceClass_[TypeId18] = TypeId18;
13869
14030
  ServiceClass_.error = options?.error ?? Never;
13870
14031
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13871
14032
  return ServiceClass;
@@ -14463,7 +14624,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14463
14624
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14464
14625
 
14465
14626
  // apps/cli/src/oauth.ts
14466
- var Scope = "openid profile email offline_access kitman:cli";
14627
+ var Scope2 = "openid profile email offline_access kitman:cli";
14467
14628
  var CallbackPath = "/auth/callback";
14468
14629
 
14469
14630
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14482,7 +14643,7 @@ function buildAuthorizeUrl(input) {
14482
14643
  url.searchParams.set("response_type", "code");
14483
14644
  url.searchParams.set("client_id", input.clientId);
14484
14645
  url.searchParams.set("redirect_uri", input.redirectUri);
14485
- url.searchParams.set("scope", Scope);
14646
+ url.searchParams.set("scope", Scope2);
14486
14647
  url.searchParams.set("code_challenge", input.codeChallenge);
14487
14648
  url.searchParams.set("code_challenge_method", "S256");
14488
14649
  url.searchParams.set("state", input.state);
@@ -14542,7 +14703,7 @@ function toStoredSession(token, existingRefreshToken) {
14542
14703
  }
14543
14704
  function startLoopbackServer(input) {
14544
14705
  return gen(function* () {
14545
- const code = yield* make16();
14706
+ const code = yield* make15();
14546
14707
  const context2 = yield* context();
14547
14708
  const runSyncExit = runSyncExitWith(context2);
14548
14709
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15082,7 +15243,7 @@ var openConnection = (transport) => gen(function* () {
15082
15243
  let lastId = 0;
15083
15244
  let lost = false;
15084
15245
  const notifications = yield* unbounded2();
15085
- const ended = yield* make16();
15246
+ const ended = yield* make15();
15086
15247
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15087
15248
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15088
15249
  onNone: () => void_3,
@@ -15109,7 +15270,7 @@ var openConnection = (transport) => gen(function* () {
15109
15270
  if (lost)
15110
15271
  return yield* new HerdrCoreConnectionLost2({ method });
15111
15272
  const id = ++lastId;
15112
- const deferred = yield* make16();
15273
+ const deferred = yield* make15();
15113
15274
  pending.set(id, { method, deferred });
15114
15275
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15115
15276
  return yield* _await(deferred);
@@ -15183,7 +15344,7 @@ var herdrCoreOver = (transport) => ({
15183
15344
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15184
15345
  };
15185
15346
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15186
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15347
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15187
15348
  }))
15188
15349
  });
15189
15350
  var spawnedTransport = (env) => gen(function* () {
@@ -15274,7 +15435,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15274
15435
  const spawner = yield* ChildProcessSpawner;
15275
15436
  const [command, ...args] = argv;
15276
15437
  const handle = yield* spawner.spawn(make3(command, args, {
15277
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15438
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15278
15439
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15279
15440
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15280
15441
  }));
@@ -15697,4 +15858,4 @@ function checkServices(declaration) {
15697
15858
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15698
15859
  }
15699
15860
 
15700
- 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, RunWaitUntils, isTestReportName, checkTests, 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, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, 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 };
15861
+ export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, 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, RunWaitUntils, isTestReportName, checkTests, 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, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, 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 };