@kitman-sh/cli 0.13.19 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-f86q3a6s.js → chunk-099ybrqz.js} +18 -18
  2. package/dist/{chunk-12afnp8q.js → chunk-4c6w8sb7.js} +9 -9
  3. package/dist/{chunk-9krvh1na.js → chunk-5129s1vg.js} +3 -3
  4. package/dist/{chunk-5f80t96q.js → chunk-5d2sdzbz.js} +7 -7
  5. package/dist/{chunk-4yg6da62.js → chunk-84fcym2g.js} +1 -1
  6. package/dist/{chunk-q5w3v4k1.js → chunk-9avbsbvk.js} +1 -6
  7. package/dist/{chunk-d917m1ak.js → chunk-9j4cnz4j.js} +94 -24
  8. package/dist/{chunk-gq7y5v3e.js → chunk-bbf0jzsc.js} +1 -1
  9. package/dist/{chunk-yh7twvn9.js → chunk-bmkc5r0p.js} +4 -4
  10. package/dist/{chunk-xjmfnqh9.js → chunk-bscvbpa1.js} +6 -6
  11. package/dist/{chunk-fc2bhh5v.js → chunk-c4mf5mgt.js} +2 -2
  12. package/dist/{chunk-gy9rf14f.js → chunk-ctpgfdzf.js} +3 -3
  13. package/dist/{chunk-0n46rkk9.js → chunk-f2ycw5bp.js} +299 -128
  14. package/dist/{chunk-s4pejxc8.js → chunk-gbr4s7nk.js} +6 -6
  15. package/dist/{chunk-2bds7yc8.js → chunk-gmdd1a74.js} +1 -1
  16. package/dist/{chunk-nf9gdnsf.js → chunk-h7zb6d3z.js} +34 -177
  17. package/dist/{chunk-zfqn6dc1.js → chunk-hq2xzj6f.js} +4 -4
  18. package/dist/{chunk-82w8rmkc.js → chunk-r9tzwrnb.js} +2 -2
  19. package/dist/{chunk-9964wmp9.js → chunk-t2zzamex.js} +30 -30
  20. package/dist/{chunk-ysz1v2cq.js → chunk-vth8h56e.js} +4 -4
  21. package/dist/{chunk-590h6emd.js → chunk-w34sq09e.js} +5 -5
  22. package/dist/{chunk-40ee20qs.js → chunk-w8vxzc7w.js} +26 -13
  23. package/dist/{chunk-xt6db7sf.js → chunk-wb3wsm86.js} +7 -7
  24. package/dist/{chunk-y1krmnbv.js → chunk-y0y2gg8d.js} +2 -2
  25. package/dist/{chunk-zw3gf6r5.js → chunk-zpp4jg4a.js} +118 -60
  26. package/dist/index.js +4 -4
  27. 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,
@@ -203,7 +213,7 @@ import {
203
213
  decodeEffect,
204
214
  decodeUnknownOption,
205
215
  decodeOption,
206
- make17,
216
+ make16,
207
217
  isSchema,
208
218
  optionalKey,
209
219
  optional,
@@ -231,6 +241,7 @@ import {
231
241
  Finite,
232
242
  isGreaterThanOrEqualTo,
233
243
  isLessThanOrEqualTo,
244
+ isBetween,
234
245
  Int,
235
246
  isMinLength,
236
247
  isMaxLength,
@@ -262,11 +273,17 @@ import {
262
273
  decodeJsonStringOption,
263
274
  encodeJsonStringSync,
264
275
  encodePrettyJsonString
265
- } from "./chunk-zw3gf6r5.js";
276
+ } from "./chunk-zpp4jg4a.js";
266
277
  import {
267
278
  map,
268
279
  makeEquivalence,
280
+ Clock,
281
+ currentTimeMillis,
269
282
  bytes,
283
+ join,
284
+ interrupt,
285
+ getCurrent,
286
+ runIn,
270
287
  BadArgument,
271
288
  systemError,
272
289
  badArgument,
@@ -288,13 +305,11 @@ import {
288
305
  isSink,
289
306
  fromChannel,
290
307
  drain,
291
- make10,
292
- get3,
293
308
  isStream,
294
309
  fromChannel2,
295
310
  callback,
296
311
  empty2,
297
- make11,
312
+ make10,
298
313
  suspend,
299
314
  fail2,
300
315
  fromQueue,
@@ -320,29 +335,16 @@ import {
320
335
  mkArrayBuffer,
321
336
  toReadableStreamEffect,
322
337
  FileSystem,
323
- make12,
338
+ make11,
324
339
  FileTypeId,
325
340
  WatchBackend,
326
341
  Path,
327
- make13,
342
+ make12,
328
343
  option,
329
344
  String2,
330
345
  optionalEnv,
331
346
  harnessesUnsupportedInSrt2
332
- } from "./chunk-nf9gdnsf.js";
333
- import {
334
- isDateTime,
335
- Numeric,
336
- isWholeNumber,
337
- guard,
338
- Id,
339
- Timestamp,
340
- ActorType,
341
- SecretName,
342
- SecretScope,
343
- SecretHosts,
344
- isSecretReference
345
- } from "./chunk-q5w3v4k1.js";
347
+ } from "./chunk-h7zb6d3z.js";
346
348
  import {
347
349
  isRedacted,
348
350
  make,
@@ -356,14 +358,23 @@ import {
356
358
  make3,
357
359
  parseFdName,
358
360
  fdName
359
- } from "./chunk-82w8rmkc.js";
361
+ } from "./chunk-r9tzwrnb.js";
362
+ import {
363
+ isDateTime,
364
+ Numeric,
365
+ isWholeNumber,
366
+ guard,
367
+ Id,
368
+ Timestamp,
369
+ ActorType,
370
+ SecretName,
371
+ SecretScope,
372
+ SecretHosts,
373
+ isSecretReference
374
+ } from "./chunk-9avbsbvk.js";
360
375
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
376
  var makeEquivalence3 = Tuple;
362
377
 
363
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
364
- var Clock = ClockRef;
365
- var currentTimeMillis = currentTimeMillis2;
366
-
367
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
368
379
  var TypeId = "~effect/DateTime";
369
380
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -498,7 +509,7 @@ var fromDateUnsafe = (date) => {
498
509
  }
499
510
  return makeUtc(epochMillis);
500
511
  };
501
- var makeUnsafe6 = (input) => {
512
+ var makeUnsafe7 = (input) => {
502
513
  if (isDateTime2(input)) {
503
514
  return input;
504
515
  } else if (input instanceof Date) {
@@ -518,7 +529,7 @@ var makeUnsafe6 = (input) => {
518
529
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
530
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
531
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
532
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
533
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
534
  var nowUnsafe = () => makeUtc(Date.now());
524
535
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -625,7 +636,7 @@ class Metric$ {
625
636
  }
626
637
  hook(context) {
627
638
  const key = this.key(context);
628
- const registry = get4(context, MetricRegistry);
639
+ const registry = get3(context, MetricRegistry);
629
640
  let metadata = registry.get(key);
630
641
  if (isUndefined(metadata)) {
631
642
  metadata = this.metadata(this.createHooks());
@@ -634,11 +645,11 @@ class Metric$ {
634
645
  return metadata.hooks;
635
646
  }
636
647
  removeUnsafe(context) {
637
- get4(context, MetricRegistry).delete(this.key(context));
648
+ get3(context, MetricRegistry).delete(this.key(context));
638
649
  }
639
650
  registerUnsafe(context, hooks) {
640
651
  const key = this.key(context);
641
- const registry = get4(context, MetricRegistry);
652
+ const registry = get3(context, MetricRegistry);
642
653
  const metadata = this.metadata({
643
654
  get: hooks.get,
644
655
  update: constVoid,
@@ -654,7 +665,7 @@ class Metric$ {
654
665
  };
655
666
  }
656
667
  key(context) {
657
- const extraAttributes = get4(context, CurrentMetricAttributes);
668
+ const extraAttributes = get3(context, CurrentMetricAttributes);
658
669
  if (extraAttributes !== this.#extraAttributes) {
659
670
  this.#extraAttributes = extraAttributes;
660
671
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -906,9 +917,151 @@ var toNumber = (b) => {
906
917
  return some(Number(b));
907
918
  };
908
919
 
920
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
921
+ var TypeId3 = "~effect/RcRef";
922
+ var stateEmpty = {
923
+ _tag: "Empty"
924
+ };
925
+ var stateClosed = {
926
+ _tag: "Closed"
927
+ };
928
+ var variance = {
929
+ _A: identity,
930
+ _E: identity
931
+ };
932
+
933
+ class RcRefImpl {
934
+ [TypeId3] = variance;
935
+ pipe() {
936
+ return pipeArguments(this, arguments);
937
+ }
938
+ state = stateEmpty;
939
+ acquire;
940
+ context;
941
+ scope;
942
+ idleTimeToLive;
943
+ constructor(acquire, context, scope, idleTimeToLive) {
944
+ this.acquire = acquire;
945
+ this.context = context;
946
+ this.scope = scope;
947
+ this.idleTimeToLive = idleTimeToLive;
948
+ }
949
+ }
950
+ var make17 = (options) => withFiber2((fiber) => {
951
+ const context = fiber.context;
952
+ const scope = get3(context, Scope);
953
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
954
+ return as(addFinalizerExit(scope, () => {
955
+ const state = ref.state;
956
+ ref.state = stateClosed;
957
+ if (state._tag === "Acquired")
958
+ return close(state.scope, void_2);
959
+ if (state._tag === "Acquiring")
960
+ return interrupt(state.fiber);
961
+ return void_3;
962
+ }), ref);
963
+ });
964
+ var getState = (self, restore) => {
965
+ switch (self.state._tag) {
966
+ case "Closed": {
967
+ return interrupt3;
968
+ }
969
+ case "Acquired": {
970
+ const state = self.state;
971
+ state.refCount++;
972
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
973
+ }
974
+ case "Acquiring": {
975
+ const state = self.state;
976
+ state.awaiters++;
977
+ return awaitAcquiring(self, state, restore);
978
+ }
979
+ case "Empty": {
980
+ const acquiring = {
981
+ _tag: "Acquiring",
982
+ fiber: undefined,
983
+ awaiters: 1,
984
+ acquired: undefined
985
+ };
986
+ self.state = acquiring;
987
+ const scope = makeUnsafe6();
988
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
989
+ if (self.state !== acquiring) {
990
+ return interrupt3;
991
+ }
992
+ const state = {
993
+ _tag: "Acquired",
994
+ value,
995
+ scope,
996
+ fiber: undefined,
997
+ refCount: acquiring.awaiters,
998
+ invalidated: false
999
+ };
1000
+ self.state = state;
1001
+ acquiring.acquired = state;
1002
+ return succeed6(state);
1003
+ }), onExit((exit) => {
1004
+ if (isSuccess2(exit))
1005
+ return void_3;
1006
+ if (self.state === acquiring)
1007
+ self.state = stateEmpty;
1008
+ return close(scope, exit);
1009
+ }));
1010
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1011
+ return awaitAcquiring(self, acquiring, restore);
1012
+ }
1013
+ }
1014
+ };
1015
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1016
+ const acquired = acquiring.acquired;
1017
+ if (acquired !== undefined) {
1018
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1019
+ }
1020
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1021
+ return void_3;
1022
+ self.state = stateEmpty;
1023
+ return interrupt(acquiring.fiber);
1024
+ });
1025
+ var get4 = (self_) => {
1026
+ const self = self_;
1027
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1028
+ };
1029
+ var release = (self, state) => {
1030
+ state.refCount--;
1031
+ if (state.refCount > 0) {
1032
+ return void_3;
1033
+ }
1034
+ const idleTimeToLive = self.idleTimeToLive;
1035
+ if (idleTimeToLive === undefined || state.invalidated) {
1036
+ if (self.state === state) {
1037
+ self.state = stateEmpty;
1038
+ }
1039
+ return close(state.scope, void_2);
1040
+ } else if (!isFinite(idleTimeToLive)) {
1041
+ return void_3;
1042
+ }
1043
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1044
+ if (self.state === state && state.refCount === 0) {
1045
+ self.state = stateEmpty;
1046
+ return ignoreCause(close(state.scope, void_2), {
1047
+ log: "Unhandled",
1048
+ message: "Unhandled error in RcRef finalizer"
1049
+ });
1050
+ }
1051
+ return void_3;
1052
+ })).pipe(ensuring2(sync2(() => {
1053
+ state.fiber = undefined;
1054
+ })), runForkWith(self.context), runIn(self.scope));
1055
+ return void_3;
1056
+ };
1057
+
1058
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1059
+ var make18 = make17;
1060
+ var get5 = get4;
1061
+
909
1062
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
- var makeUnsafe = makeUnsafe6;
911
- var make18 = make4;
1063
+ var makeUnsafe = makeUnsafe7;
1064
+ var make19 = make4;
912
1065
  var now2 = now;
913
1066
  var nowUnsafe2 = nowUnsafe;
914
1067
  var toDateUtc2 = toDateUtc;
@@ -1227,7 +1380,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1227
1380
  windowsHide: true
1228
1381
  }, onExit);
1229
1382
  };
1230
- var make19 = /* @__PURE__ */ gen(function* () {
1383
+ var make20 = /* @__PURE__ */ gen(function* () {
1231
1384
  const fs = yield* FileSystem;
1232
1385
  const path = yield* Path;
1233
1386
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1756,7 +1909,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1756
1909
  });
1757
1910
  return make2(spawnCommand);
1758
1911
  });
1759
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1912
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1760
1913
  var flattenCommand = (command) => {
1761
1914
  const commands = [];
1762
1915
  const pipeOptions = [];
@@ -2240,7 +2393,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2240
2393
  resume(fail7(handleBadArgument("writeFile")(err)));
2241
2394
  }
2242
2395
  });
2243
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2396
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2244
2397
  access: access2,
2245
2398
  chmod: chmod2,
2246
2399
  chown: chown2,
@@ -2300,15 +2453,15 @@ var fileUrlOps = (windows) => ({
2300
2453
  })
2301
2454
  })
2302
2455
  });
2303
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2456
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2304
2457
  ...NodePath.posix,
2305
2458
  .../* @__PURE__ */ fileUrlOps(false)
2306
2459
  }));
2307
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2460
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2308
2461
  ...NodePath.win32,
2309
2462
  .../* @__PURE__ */ fileUrlOps(true)
2310
2463
  }));
2311
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2464
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2465
  ...NodePath,
2313
2466
  .../* @__PURE__ */ fileUrlOps(undefined)
2314
2467
  }));
@@ -2317,10 +2470,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2317
2470
  var layer2 = layer7;
2318
2471
 
2319
2472
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2320
- var TypeId3 = "~effect/Stdio";
2321
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
- var make20 = (options) => ({
2323
- [TypeId3]: TypeId3,
2473
+ var TypeId4 = "~effect/Stdio";
2474
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2475
+ var make21 = (options) => ({
2476
+ [TypeId4]: TypeId4,
2324
2477
  stdinIsTerminal: succeed6(false),
2325
2478
  stdoutIsTerminal: succeed6(false),
2326
2479
  stderrIsTerminal: succeed6(false),
@@ -2328,7 +2481,7 @@ var make20 = (options) => ({
2328
2481
  });
2329
2482
 
2330
2483
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2331
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2484
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2332
2485
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2333
2486
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2334
2487
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2528,7 +2681,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2528
2681
  const uuid = bytes(randomBytes(16));
2529
2682
  return format === "bytes" ? uuid : stringify(uuid);
2530
2683
  };
2531
- var make21 = (randomBytes) => {
2684
+ var make22 = (randomBytes) => {
2532
2685
  const randomBytesChecked = (size) => {
2533
2686
  checkSize(size);
2534
2687
  return randomBytes(size);
@@ -2562,13 +2715,13 @@ var fillRandom = (crypto2, size) => {
2562
2715
  }
2563
2716
  return bytes;
2564
2717
  };
2565
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2718
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2566
2719
 
2567
2720
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2568
- var TypeId4 = "~effect/http/Cookies";
2721
+ var TypeId5 = "~effect/http/Cookies";
2569
2722
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2570
2723
  var Proto2 = {
2571
- [TypeId4]: TypeId4,
2724
+ [TypeId5]: TypeId5,
2572
2725
  ...BaseProto,
2573
2726
  toJSON() {
2574
2727
  return {
@@ -2747,14 +2900,14 @@ var tryDecodeURIComponent = (str) => {
2747
2900
  };
2748
2901
 
2749
2902
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2750
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2903
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
2904
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2752
- [TypeId5]: {
2753
- value: TypeId5
2905
+ [TypeId6]: {
2906
+ value: TypeId6
2754
2907
  },
2755
2908
  [symbolRedactable]: {
2756
2909
  value(context) {
2757
- return redact2(this, get4(context, CurrentRedactedNames));
2910
+ return redact2(this, get3(context, CurrentRedactedNames));
2758
2911
  }
2759
2912
  },
2760
2913
  toJSON: {
@@ -2779,7 +2932,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2779
2932
  value: BaseProto[NodeInspectSymbol]
2780
2933
  }
2781
2934
  });
2782
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2935
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
2936
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2784
2937
  var empty = /* @__PURE__ */ Object.create(Proto3);
2785
2938
  var fromInput = (input) => {
@@ -2804,21 +2957,21 @@ var fromInput = (input) => {
2804
2957
  };
2805
2958
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2806
2959
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2807
- const out = make22(self);
2960
+ const out = make23(self);
2808
2961
  out[key.toLowerCase()] = value;
2809
2962
  return out;
2810
2963
  });
2811
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2964
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
2965
  ...self,
2813
2966
  ...fromInput(headers)
2814
2967
  }));
2815
2968
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2816
- const out = make22(self);
2969
+ const out = make23(self);
2817
2970
  Object.assign(out, headers);
2818
2971
  return out;
2819
2972
  });
2820
2973
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2821
- const out = make22(self);
2974
+ const out = make23(self);
2822
2975
  delete out[key.toLowerCase()];
2823
2976
  return out;
2824
2977
  });
@@ -2875,18 +3028,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2875
3028
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2876
3029
 
2877
3030
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2878
- var TypeId6 = "~effect/http/UrlParams";
2879
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3031
+ var TypeId7 = "~effect/http/UrlParams";
3032
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
3033
  var Proto4 = {
2881
3034
  ...PipeInspectableProto,
2882
- [TypeId6]: TypeId6,
3035
+ [TypeId7]: TypeId7,
2883
3036
  [Symbol.iterator]() {
2884
3037
  return this.params[Symbol.iterator]();
2885
3038
  },
2886
3039
  [symbolRedactable](context) {
2887
3040
  return {
2888
3041
  _id: "UrlParams",
2889
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3042
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
3043
  };
2891
3044
  },
2892
3045
  toJSON() {
@@ -2899,7 +3052,7 @@ var Proto4 = {
2899
3052
  return array(this.params.flat());
2900
3053
  }
2901
3054
  };
2902
- var make23 = (params) => {
3055
+ var make24 = (params) => {
2903
3056
  const self = Object.create(Proto4);
2904
3057
  self.params = params;
2905
3058
  return self;
@@ -2918,7 +3071,7 @@ var fromInput2 = (input) => {
2918
3071
  out.push(parsed[i]);
2919
3072
  }
2920
3073
  }
2921
- return make23(out);
3074
+ return make24(out);
2922
3075
  };
2923
3076
  var fromInputNested = (input) => {
2924
3077
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2942,9 +3095,9 @@ var fromInputNested = (input) => {
2942
3095
  return out;
2943
3096
  };
2944
3097
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3098
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
3099
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
- var empty4 = /* @__PURE__ */ make23([]);
3100
+ var empty4 = /* @__PURE__ */ make24([]);
2948
3101
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2949
3102
  const params = fromInput2(input).params.slice();
2950
3103
  const keys = new Set;
@@ -2956,7 +3109,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2956
3109
  continue;
2957
3110
  params.push(self.params[i]);
2958
3111
  }
2959
- return make23(params);
3112
+ return make24(params);
2960
3113
  });
2961
3114
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2962
3115
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3012,13 +3165,13 @@ var decodeQueryKey = (key) => {
3012
3165
  return key;
3013
3166
  }
3014
3167
  };
3015
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3168
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3016
3169
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3017
3170
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3018
3171
  });
3019
3172
 
3020
3173
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3021
- var TypeId7 = "~effect/Terminal";
3174
+ var TypeId8 = "~effect/Terminal";
3022
3175
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3023
3176
 
3024
3177
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3027,14 +3180,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3027
3180
  [QuitErrorTypeId] = QuitErrorTypeId;
3028
3181
  }
3029
3182
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3030
- var make24 = (impl) => Terminal.of({
3183
+ var make25 = (impl) => Terminal.of({
3031
3184
  ...impl,
3032
- [TypeId7]: TypeId7
3185
+ [TypeId8]: TypeId8
3033
3186
  });
3034
3187
 
3035
3188
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3036
3189
  import * as readline from "readline";
3037
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3190
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3038
3191
  const stdin = process.stdin;
3039
3192
  const stdout = process.stdout;
3040
3193
  const lines = yield* make9();
@@ -3048,7 +3201,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3048
3201
  };
3049
3202
  stdin.once("end", onStdinEnd);
3050
3203
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3051
- const rlRef = yield* make10({
3204
+ const rlRef = yield* make18({
3052
3205
  acquire: acquireRelease(sync2(() => {
3053
3206
  const rl = readline.createInterface({
3054
3207
  input: stdin,
@@ -3087,7 +3240,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3087
3240
  if (stdin.isTTY)
3088
3241
  stdin.setRawMode(enabled);
3089
3242
  });
3090
- const rawModeRef = yield* make10({
3243
+ const rawModeRef = yield* make18({
3091
3244
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3092
3245
  idleTimeToLive: "10 millis"
3093
3246
  });
@@ -3138,14 +3291,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3138
3291
  if (inputEnded) {
3139
3292
  handleEnd();
3140
3293
  } else {
3141
- yield* get3(rlRef);
3142
- yield* get3(rawModeRef);
3294
+ yield* get5(rlRef);
3295
+ yield* get5(rawModeRef);
3143
3296
  stdin.once("end", handleEnd);
3144
3297
  }
3145
3298
  return queue;
3146
3299
  });
3147
3300
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3148
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3301
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3149
3302
  onSome: succeed6
3150
3303
  })), mapError2(() => new QuitError({}))));
3151
3304
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3156,7 +3309,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3156
3309
  cause: err
3157
3310
  }))));
3158
3311
  }));
3159
- return make24({
3312
+ return make25({
3160
3313
  columns,
3161
3314
  rows,
3162
3315
  size,
@@ -3165,7 +3318,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3165
3318
  display
3166
3319
  });
3167
3320
  });
3168
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3321
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3169
3322
  function defaultShouldQuit(input) {
3170
3323
  const key = input.key;
3171
3324
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3192,7 +3345,7 @@ function toDate(input) {
3192
3345
  return toDateUtc2(makeUnsafe(input));
3193
3346
  }
3194
3347
  function parseDate(input) {
3195
- return getOrUndefined(map4(make18(input), toDateUtc2));
3348
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3196
3349
  }
3197
3350
  function toIso(input) {
3198
3351
  return formatIso(makeUnsafe(input));
@@ -9645,6 +9798,17 @@ var RunFileUrlsRequest = Struct({
9645
9798
  ids: ArraySchema(Id).check(isMinLength(1), isMaxLength(200)),
9646
9799
  use: Literals(["view", "download"])
9647
9800
  });
9801
+ var maxRunFileTextBytes = 256 * 1024;
9802
+ var RunFileTextRequest = Struct({
9803
+ offset: optionalKey(Int.check(isGreaterThanOrEqualTo(0))),
9804
+ length: optionalKey(Int.check(isBetween({ minimum: 1, maximum: maxRunFileTextBytes })))
9805
+ });
9806
+ var RunFileText = Struct({
9807
+ file: RunFileView,
9808
+ offset: Int,
9809
+ end: Int,
9810
+ text: String4
9811
+ });
9648
9812
  var RunFileRemoveRequest = Struct({
9649
9813
  note: optionalKey(String4.check(isMaxLength(500)))
9650
9814
  });
@@ -9816,11 +9980,11 @@ var TranscriptSearchResult = Struct({
9816
9980
  total: Int
9817
9981
  });
9818
9982
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9819
- var TypeId8 = "~effect/http/HttpBody";
9983
+ var TypeId9 = "~effect/http/HttpBody";
9820
9984
  class Proto5 {
9821
- [TypeId8];
9985
+ [TypeId9];
9822
9986
  constructor() {
9823
- this[TypeId8] = TypeId8;
9987
+ this[TypeId9] = TypeId9;
9824
9988
  }
9825
9989
  [NodeInspectSymbol]() {
9826
9990
  return this.toJSON();
@@ -9911,7 +10075,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9911
10075
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9912
10076
 
9913
10077
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9914
- var TypeId9 = "~effect/http/HttpClientError";
10078
+ var TypeId10 = "~effect/http/HttpClientError";
9915
10079
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9916
10080
  constructor(props) {
9917
10081
  if ("cause" in props.reason) {
@@ -9923,7 +10087,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9923
10087
  super(props);
9924
10088
  }
9925
10089
  }
9926
- [TypeId9] = TypeId9;
10090
+ [TypeId10] = TypeId10;
9927
10091
  get request() {
9928
10092
  return this.reason.request;
9929
10093
  }
@@ -10027,7 +10191,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
10027
10191
  }
10028
10192
  }
10029
10193
 
10030
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10194
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
10031
10195
  _tag: /* @__PURE__ */ tag("HttpError"),
10032
10196
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
10033
10197
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10060,7 +10224,7 @@ var updateContentLength = (headers, body) => {
10060
10224
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10061
10225
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10062
10226
  }
10063
- var make26 = (url, params, hash) => try_({
10227
+ var make27 = (url, params, hash) => try_({
10064
10228
  try: () => {
10065
10229
  const urlInstance = new URL(url, baseUrl());
10066
10230
  for (let i = 0;i < params.params.length; i++) {
@@ -10091,10 +10255,10 @@ var baseUrl = () => {
10091
10255
  };
10092
10256
 
10093
10257
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10094
- var TypeId10 = "~effect/http/HttpClientRequest";
10095
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10258
+ var TypeId11 = "~effect/http/HttpClientRequest";
10259
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
10096
10260
  var Proto6 = {
10097
- [TypeId10]: TypeId10,
10261
+ [TypeId11]: TypeId11,
10098
10262
  ...BaseProto,
10099
10263
  toJSON() {
10100
10264
  return {
@@ -10183,7 +10347,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10183
10347
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10184
10348
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10185
10349
  function toUrl(self) {
10186
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10350
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10187
10351
  if (isSuccess(r)) {
10188
10352
  return some(r.success);
10189
10353
  }
@@ -10191,7 +10355,7 @@ function toUrl(self) {
10191
10355
  }
10192
10356
 
10193
10357
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10194
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10358
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
10195
10359
  var schemaBodyJson = (schema, options) => {
10196
10360
  const decode = decodeEffect(toCodecJson(schema));
10197
10361
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10210,7 +10374,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10210
10374
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10211
10375
 
10212
10376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10213
- var TypeId12 = "~effect/http/HttpClientResponse";
10377
+ var TypeId13 = "~effect/http/HttpClientResponse";
10214
10378
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10215
10379
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10216
10380
  reason: new StatusCodeError({
@@ -10221,16 +10385,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10221
10385
  }));
10222
10386
 
10223
10387
  class WebHttpClientResponse extends Class {
10224
- [TypeId11];
10225
10388
  [TypeId12];
10389
+ [TypeId13];
10226
10390
  request;
10227
10391
  source;
10228
10392
  constructor(request, source) {
10229
10393
  super();
10230
10394
  this.request = request;
10231
10395
  this.source = source;
10232
- this[TypeId11] = TypeId11;
10233
10396
  this[TypeId12] = TypeId12;
10397
+ this[TypeId13] = TypeId13;
10234
10398
  }
10235
10399
  toJSON() {
10236
10400
  return inspect(this, {
@@ -10402,7 +10566,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10402
10566
  };
10403
10567
 
10404
10568
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10405
- var TypeId13 = "~effect/http/HttpClient";
10569
+ var TypeId14 = "~effect/http/HttpClient";
10406
10570
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10407
10571
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10408
10572
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10419,7 +10583,7 @@ var makeWith2 = (postprocess, preprocess) => {
10419
10583
  return self;
10420
10584
  };
10421
10585
  var Proto7 = {
10422
- [TypeId13]: TypeId13,
10586
+ [TypeId14]: TypeId14,
10423
10587
  pipe() {
10424
10588
  return pipeArguments(this, arguments);
10425
10589
  },
@@ -10433,10 +10597,10 @@ var Proto7 = {
10433
10597
  return this.execute(make5(fullMethod)(url, options));
10434
10598
  }]))
10435
10599
  };
10436
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10600
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10437
10601
  const scopedController = scopedRequests.get(request);
10438
10602
  const controller = scopedController ?? new AbortController;
10439
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10603
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10440
10604
  if (isFailure(urlResult)) {
10441
10605
  return fail7(new HttpClientError({
10442
10606
  reason: new InvalidUrlError({
@@ -10570,8 +10734,8 @@ class InterruptibleResponse {
10570
10734
  this.original = original;
10571
10735
  this.controller = controller;
10572
10736
  }
10737
+ [TypeId13] = TypeId13;
10573
10738
  [TypeId12] = TypeId12;
10574
- [TypeId11] = TypeId11;
10575
10739
  applyInterrupt(effect) {
10576
10740
  return suspend3(() => {
10577
10741
  responseRegistry.unregister(this.original);
@@ -10669,7 +10833,7 @@ var detectStreamBodySupport = () => {
10669
10833
  return false;
10670
10834
  }
10671
10835
  };
10672
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10836
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10673
10837
  if (request.headers.upgrade !== undefined) {
10674
10838
  return fail7(new HttpClientError({
10675
10839
  reason: new TransportError({
@@ -10760,10 +10924,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10760
10924
  });
10761
10925
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10762
10926
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10763
- var TypeId14 = "~effect/socket/Socket";
10927
+ var TypeId15 = "~effect/socket/Socket";
10764
10928
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10765
- var make28 = (options) => Socket.of({
10766
- [TypeId14]: TypeId14,
10929
+ var make29 = (options) => Socket.of({
10930
+ [TypeId15]: TypeId15,
10767
10931
  reader: options.reader,
10768
10932
  writer: options.writer
10769
10933
  });
@@ -11086,7 +11250,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11086
11250
  write,
11087
11251
  writeAll
11088
11252
  });
11089
- return succeed6(make28({
11253
+ return succeed6(make29({
11090
11254
  reader,
11091
11255
  writer
11092
11256
  }));
@@ -12702,6 +12866,13 @@ class KitmanEffectClient {
12702
12866
  body: JSON.stringify(request)
12703
12867
  });
12704
12868
  }
12869
+ readRunFile(runId, fileId, options = {}) {
12870
+ const params = new URLSearchParams(Object.entries(options).flatMap(([name, value]) => value === undefined ? [] : [[name, String(value)]])).toString();
12871
+ const query = params === "" ? "" : `?${params}`;
12872
+ return this.request("readRunFile", `/runs/${segment(runId)}/files/${segment(fileId)}/text${query}`, {
12873
+ headers: this.headers()
12874
+ });
12875
+ }
12705
12876
  removeRunFile(runId, fileId, request = {}) {
12706
12877
  return this.request("removeRunFile", `/runs/${segment(runId)}/files/${segment(fileId)}`, {
12707
12878
  method: "DELETE",
@@ -14055,7 +14226,7 @@ function getStreamSchemas(schema) {
14055
14226
  }
14056
14227
  var schema = /* @__PURE__ */ declare(isStream);
14057
14228
  function Stream(success, error) {
14058
- return make17(schema.ast, {
14229
+ return make16(schema.ast, {
14059
14230
  [StreamSchemaTypeId]: StreamSchemaTypeId,
14060
14231
  success,
14061
14232
  error
@@ -14063,9 +14234,9 @@ function Stream(success, error) {
14063
14234
  }
14064
14235
 
14065
14236
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
14066
- var TypeId15 = "~effect/rpc/Rpc";
14237
+ var TypeId16 = "~effect/rpc/Rpc";
14067
14238
  var Proto8 = {
14068
- [TypeId15]: TypeId15,
14239
+ [TypeId16]: TypeId16,
14069
14240
  pipe() {
14070
14241
  return pipeArguments(this, arguments);
14071
14242
  },
@@ -14232,7 +14403,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14232
14403
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14233
14404
 
14234
14405
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14235
- var TypeId16 = "~effect/rpc/RpcClientError";
14406
+ var TypeId17 = "~effect/rpc/RpcClientError";
14236
14407
 
14237
14408
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14238
14409
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14241,11 +14412,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14241
14412
  })) {
14242
14413
  }
14243
14414
 
14244
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14415
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14245
14416
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14246
14417
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14247
14418
  })) {
14248
- [TypeId16] = TypeId16;
14419
+ [TypeId17] = TypeId17;
14249
14420
  get message() {
14250
14421
  return `${this.reason._tag}: ${this.reason.message}`;
14251
14422
  }
@@ -14365,7 +14536,7 @@ var RpcGroupProto = {
14365
14536
  });
14366
14537
  },
14367
14538
  annotateRpcs(service, value) {
14368
- return this.annotateRpcsMerge(make15(service, value));
14539
+ return this.annotateRpcsMerge(make14(service, value));
14369
14540
  },
14370
14541
  annotateMerge(context) {
14371
14542
  return makeProto2({
@@ -14393,7 +14564,7 @@ var make7 = (...rpcs) => makeProto2({
14393
14564
  annotations: empty3()
14394
14565
  });
14395
14566
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14396
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14567
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
14397
14568
  var Service = () => (id, options) => {
14398
14569
  const limit = getStackTraceLimit();
14399
14570
  let creationError;
@@ -14411,7 +14582,7 @@ var Service = () => (id, options) => {
14411
14582
  return creationError?.stack;
14412
14583
  }
14413
14584
  });
14414
- ServiceClass_[TypeId17] = TypeId17;
14585
+ ServiceClass_[TypeId18] = TypeId18;
14415
14586
  ServiceClass_.error = options?.error ?? Never;
14416
14587
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14417
14588
  return ServiceClass;
@@ -15055,7 +15226,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
15055
15226
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
15056
15227
 
15057
15228
  // apps/cli/src/oauth.ts
15058
- var Scope = "openid profile email offline_access kitman:cli";
15229
+ var Scope2 = "openid profile email offline_access kitman:cli";
15059
15230
  var CallbackPath = "/auth/callback";
15060
15231
 
15061
15232
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -15074,7 +15245,7 @@ function buildAuthorizeUrl(input) {
15074
15245
  url.searchParams.set("response_type", "code");
15075
15246
  url.searchParams.set("client_id", input.clientId);
15076
15247
  url.searchParams.set("redirect_uri", input.redirectUri);
15077
- url.searchParams.set("scope", Scope);
15248
+ url.searchParams.set("scope", Scope2);
15078
15249
  url.searchParams.set("code_challenge", input.codeChallenge);
15079
15250
  url.searchParams.set("code_challenge_method", "S256");
15080
15251
  url.searchParams.set("state", input.state);
@@ -15134,7 +15305,7 @@ function toStoredSession(token, existingRefreshToken) {
15134
15305
  }
15135
15306
  function startLoopbackServer(input) {
15136
15307
  return gen(function* () {
15137
- const code = yield* make16();
15308
+ const code = yield* make15();
15138
15309
  const context2 = yield* context();
15139
15310
  const runSyncExit = runSyncExitWith(context2);
15140
15311
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15682,7 +15853,7 @@ var openConnection = (transport) => gen(function* () {
15682
15853
  let lastId = 0;
15683
15854
  let lost = false;
15684
15855
  const notifications = yield* unbounded2();
15685
- const ended = yield* make16();
15856
+ const ended = yield* make15();
15686
15857
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15687
15858
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15688
15859
  onNone: () => void_3,
@@ -15709,7 +15880,7 @@ var openConnection = (transport) => gen(function* () {
15709
15880
  if (lost)
15710
15881
  return yield* new HerdrCoreConnectionLost2({ method });
15711
15882
  const id = ++lastId;
15712
- const deferred = yield* make16();
15883
+ const deferred = yield* make15();
15713
15884
  pending.set(id, { method, deferred });
15714
15885
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15715
15886
  return yield* _await(deferred);
@@ -15783,7 +15954,7 @@ var herdrCoreOver = (transport) => ({
15783
15954
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15784
15955
  };
15785
15956
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15786
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15957
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15787
15958
  }))
15788
15959
  });
15789
15960
  var spawnedTransport = (env) => gen(function* () {
@@ -15874,7 +16045,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15874
16045
  const spawner = yield* ChildProcessSpawner;
15875
16046
  const [command, ...args] = argv;
15876
16047
  const handle = yield* spawner.spawn(make3(command, args, {
15877
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
16048
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15878
16049
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15879
16050
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15880
16051
  }));
@@ -16314,4 +16485,4 @@ function serviceChecks(declaration) {
16314
16485
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
16315
16486
  }
16316
16487
 
16317
- 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
16488
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, tokenCountWords, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, reportedModelName, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, 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, stepFallbackWords, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };