@kitman-sh/cli 0.13.18 → 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-940cc29s.js → chunk-099ybrqz.js} +18 -18
  2. package/dist/{chunk-fv2v1sdc.js → chunk-4c6w8sb7.js} +16 -16
  3. package/dist/{chunk-r1s1dcy0.js → chunk-5129s1vg.js} +3 -3
  4. package/dist/{chunk-03hvwd6m.js → chunk-5d2sdzbz.js} +10 -10
  5. package/dist/{chunk-dc0pcs3z.js → chunk-84fcym2g.js} +1 -1
  6. package/dist/{chunk-q5w3v4k1.js → chunk-9avbsbvk.js} +1 -6
  7. package/dist/{chunk-39m1xtbk.js → chunk-9j4cnz4j.js} +135 -65
  8. package/dist/{chunk-gq7y5v3e.js → chunk-bbf0jzsc.js} +1 -1
  9. package/dist/{chunk-vxc2cg5f.js → chunk-bmkc5r0p.js} +9 -9
  10. package/dist/{chunk-rp4tn60z.js → chunk-bscvbpa1.js} +6 -6
  11. package/dist/{chunk-1cbnvby8.js → chunk-c4mf5mgt.js} +2 -2
  12. package/dist/{chunk-gy9rf14f.js → chunk-ctpgfdzf.js} +3 -3
  13. package/dist/{chunk-bc8ytp0y.js → chunk-f2ycw5bp.js} +308 -130
  14. package/dist/{chunk-z1rve2hk.js → chunk-gbr4s7nk.js} +6 -6
  15. package/dist/{chunk-827sgh31.js → chunk-gmdd1a74.js} +1 -1
  16. package/dist/{chunk-hakqpy8z.js → chunk-h7zb6d3z.js} +33 -185
  17. package/dist/{chunk-frjsv0ng.js → chunk-hq2xzj6f.js} +4 -4
  18. package/dist/{chunk-84xks8tn.js → chunk-r9tzwrnb.js} +2 -2
  19. package/dist/{chunk-gqy5shhk.js → chunk-t2zzamex.js} +30 -30
  20. package/dist/{chunk-ynvzbgms.js → chunk-vth8h56e.js} +4 -4
  21. package/dist/{chunk-a7ds2jqf.js → chunk-w34sq09e.js} +8 -8
  22. package/dist/{chunk-7m71m106.js → chunk-w8vxzc7w.js} +27 -14
  23. package/dist/{chunk-be2jf9m3.js → chunk-wb3wsm86.js} +10 -10
  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,12 +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,
269
- toNumber,
280
+ Clock,
281
+ currentTimeMillis,
270
282
  bytes,
283
+ join,
284
+ interrupt,
285
+ getCurrent,
286
+ runIn,
271
287
  BadArgument,
272
288
  systemError,
273
289
  badArgument,
@@ -289,13 +305,11 @@ import {
289
305
  isSink,
290
306
  fromChannel,
291
307
  drain,
292
- make10,
293
- get3,
294
308
  isStream,
295
309
  fromChannel2,
296
310
  callback,
297
311
  empty2,
298
- make11,
312
+ make10,
299
313
  suspend,
300
314
  fail2,
301
315
  fromQueue,
@@ -321,29 +335,16 @@ import {
321
335
  mkArrayBuffer,
322
336
  toReadableStreamEffect,
323
337
  FileSystem,
324
- make12,
338
+ make11,
325
339
  FileTypeId,
326
340
  WatchBackend,
327
341
  Path,
328
- make13,
342
+ make12,
329
343
  option,
330
344
  String2,
331
345
  optionalEnv,
332
346
  harnessesUnsupportedInSrt2
333
- } from "./chunk-hakqpy8z.js";
334
- import {
335
- isDateTime,
336
- Numeric,
337
- isWholeNumber,
338
- guard,
339
- Id,
340
- Timestamp,
341
- ActorType,
342
- SecretName,
343
- SecretScope,
344
- SecretHosts,
345
- isSecretReference
346
- } from "./chunk-q5w3v4k1.js";
347
+ } from "./chunk-h7zb6d3z.js";
347
348
  import {
348
349
  isRedacted,
349
350
  make,
@@ -357,15 +358,23 @@ import {
357
358
  make3,
358
359
  parseFdName,
359
360
  fdName
360
- } from "./chunk-84xks8tn.js";
361
-
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";
362
375
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
376
  var makeEquivalence3 = Tuple;
364
377
 
365
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
366
- var Clock = ClockRef;
367
- var currentTimeMillis = currentTimeMillis2;
368
-
369
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
370
379
  var TypeId = "~effect/DateTime";
371
380
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -500,7 +509,7 @@ var fromDateUnsafe = (date) => {
500
509
  }
501
510
  return makeUtc(epochMillis);
502
511
  };
503
- var makeUnsafe6 = (input) => {
512
+ var makeUnsafe7 = (input) => {
504
513
  if (isDateTime2(input)) {
505
514
  return input;
506
515
  } else if (input instanceof Date) {
@@ -520,7 +529,7 @@ var makeUnsafe6 = (input) => {
520
529
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
530
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
531
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
532
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
533
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
534
  var nowUnsafe = () => makeUtc(Date.now());
526
535
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +636,7 @@ class Metric$ {
627
636
  }
628
637
  hook(context) {
629
638
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
639
+ const registry = get3(context, MetricRegistry);
631
640
  let metadata = registry.get(key);
632
641
  if (isUndefined(metadata)) {
633
642
  metadata = this.metadata(this.createHooks());
@@ -636,11 +645,11 @@ class Metric$ {
636
645
  return metadata.hooks;
637
646
  }
638
647
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
648
+ get3(context, MetricRegistry).delete(this.key(context));
640
649
  }
641
650
  registerUnsafe(context, hooks) {
642
651
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
652
+ const registry = get3(context, MetricRegistry);
644
653
  const metadata = this.metadata({
645
654
  get: hooks.get,
646
655
  update: constVoid,
@@ -656,7 +665,7 @@ class Metric$ {
656
665
  };
657
666
  }
658
667
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
668
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
669
  if (extraAttributes !== this.#extraAttributes) {
661
670
  this.#extraAttributes = extraAttributes;
662
671
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -899,9 +908,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
899
908
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
900
909
  var runMain = runMain2;
901
910
 
911
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
912
+ var BigInt2 = globalThis.BigInt;
913
+ var toNumber = (b) => {
914
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
915
+ return none();
916
+ }
917
+ return some(Number(b));
918
+ };
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
+
902
1062
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
903
- var makeUnsafe = makeUnsafe6;
904
- var make18 = make4;
1063
+ var makeUnsafe = makeUnsafe7;
1064
+ var make19 = make4;
905
1065
  var now2 = now;
906
1066
  var nowUnsafe2 = nowUnsafe;
907
1067
  var toDateUtc2 = toDateUtc;
@@ -1220,7 +1380,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1220
1380
  windowsHide: true
1221
1381
  }, onExit);
1222
1382
  };
1223
- var make19 = /* @__PURE__ */ gen(function* () {
1383
+ var make20 = /* @__PURE__ */ gen(function* () {
1224
1384
  const fs = yield* FileSystem;
1225
1385
  const path = yield* Path;
1226
1386
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1749,7 +1909,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1749
1909
  });
1750
1910
  return make2(spawnCommand);
1751
1911
  });
1752
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1912
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1753
1913
  var flattenCommand = (command) => {
1754
1914
  const commands = [];
1755
1915
  const pipeOptions = [];
@@ -2233,7 +2393,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2233
2393
  resume(fail7(handleBadArgument("writeFile")(err)));
2234
2394
  }
2235
2395
  });
2236
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2396
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2237
2397
  access: access2,
2238
2398
  chmod: chmod2,
2239
2399
  chown: chown2,
@@ -2293,15 +2453,15 @@ var fileUrlOps = (windows) => ({
2293
2453
  })
2294
2454
  })
2295
2455
  });
2296
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2456
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2297
2457
  ...NodePath.posix,
2298
2458
  .../* @__PURE__ */ fileUrlOps(false)
2299
2459
  }));
2300
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2460
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2301
2461
  ...NodePath.win32,
2302
2462
  .../* @__PURE__ */ fileUrlOps(true)
2303
2463
  }));
2304
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2464
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2305
2465
  ...NodePath,
2306
2466
  .../* @__PURE__ */ fileUrlOps(undefined)
2307
2467
  }));
@@ -2310,10 +2470,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2310
2470
  var layer2 = layer7;
2311
2471
 
2312
2472
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2313
- var TypeId3 = "~effect/Stdio";
2314
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2315
- var make20 = (options) => ({
2316
- [TypeId3]: TypeId3,
2473
+ var TypeId4 = "~effect/Stdio";
2474
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2475
+ var make21 = (options) => ({
2476
+ [TypeId4]: TypeId4,
2317
2477
  stdinIsTerminal: succeed6(false),
2318
2478
  stdoutIsTerminal: succeed6(false),
2319
2479
  stderrIsTerminal: succeed6(false),
@@ -2321,7 +2481,7 @@ var make20 = (options) => ({
2321
2481
  });
2322
2482
 
2323
2483
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2324
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2484
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2325
2485
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2326
2486
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2327
2487
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2521,7 +2681,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2521
2681
  const uuid = bytes(randomBytes(16));
2522
2682
  return format === "bytes" ? uuid : stringify(uuid);
2523
2683
  };
2524
- var make21 = (randomBytes) => {
2684
+ var make22 = (randomBytes) => {
2525
2685
  const randomBytesChecked = (size) => {
2526
2686
  checkSize(size);
2527
2687
  return randomBytes(size);
@@ -2555,13 +2715,13 @@ var fillRandom = (crypto2, size) => {
2555
2715
  }
2556
2716
  return bytes;
2557
2717
  };
2558
- 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)))));
2559
2719
 
2560
2720
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2561
- var TypeId4 = "~effect/http/Cookies";
2721
+ var TypeId5 = "~effect/http/Cookies";
2562
2722
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2563
2723
  var Proto2 = {
2564
- [TypeId4]: TypeId4,
2724
+ [TypeId5]: TypeId5,
2565
2725
  ...BaseProto,
2566
2726
  toJSON() {
2567
2727
  return {
@@ -2740,14 +2900,14 @@ var tryDecodeURIComponent = (str) => {
2740
2900
  };
2741
2901
 
2742
2902
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2743
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2903
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2744
2904
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2745
- [TypeId5]: {
2746
- value: TypeId5
2905
+ [TypeId6]: {
2906
+ value: TypeId6
2747
2907
  },
2748
2908
  [symbolRedactable]: {
2749
2909
  value(context) {
2750
- return redact2(this, get4(context, CurrentRedactedNames));
2910
+ return redact2(this, get3(context, CurrentRedactedNames));
2751
2911
  }
2752
2912
  },
2753
2913
  toJSON: {
@@ -2772,7 +2932,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2772
2932
  value: BaseProto[NodeInspectSymbol]
2773
2933
  }
2774
2934
  });
2775
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2935
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2776
2936
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2777
2937
  var empty = /* @__PURE__ */ Object.create(Proto3);
2778
2938
  var fromInput = (input) => {
@@ -2797,21 +2957,21 @@ var fromInput = (input) => {
2797
2957
  };
2798
2958
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2799
2959
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2800
- const out = make22(self);
2960
+ const out = make23(self);
2801
2961
  out[key.toLowerCase()] = value;
2802
2962
  return out;
2803
2963
  });
2804
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2964
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2805
2965
  ...self,
2806
2966
  ...fromInput(headers)
2807
2967
  }));
2808
2968
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2809
- const out = make22(self);
2969
+ const out = make23(self);
2810
2970
  Object.assign(out, headers);
2811
2971
  return out;
2812
2972
  });
2813
2973
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2814
- const out = make22(self);
2974
+ const out = make23(self);
2815
2975
  delete out[key.toLowerCase()];
2816
2976
  return out;
2817
2977
  });
@@ -2868,18 +3028,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2868
3028
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2869
3029
 
2870
3030
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2871
- var TypeId6 = "~effect/http/UrlParams";
2872
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3031
+ var TypeId7 = "~effect/http/UrlParams";
3032
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2873
3033
  var Proto4 = {
2874
3034
  ...PipeInspectableProto,
2875
- [TypeId6]: TypeId6,
3035
+ [TypeId7]: TypeId7,
2876
3036
  [Symbol.iterator]() {
2877
3037
  return this.params[Symbol.iterator]();
2878
3038
  },
2879
3039
  [symbolRedactable](context) {
2880
3040
  return {
2881
3041
  _id: "UrlParams",
2882
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3042
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2883
3043
  };
2884
3044
  },
2885
3045
  toJSON() {
@@ -2892,7 +3052,7 @@ var Proto4 = {
2892
3052
  return array(this.params.flat());
2893
3053
  }
2894
3054
  };
2895
- var make23 = (params) => {
3055
+ var make24 = (params) => {
2896
3056
  const self = Object.create(Proto4);
2897
3057
  self.params = params;
2898
3058
  return self;
@@ -2911,7 +3071,7 @@ var fromInput2 = (input) => {
2911
3071
  out.push(parsed[i]);
2912
3072
  }
2913
3073
  }
2914
- return make23(out);
3074
+ return make24(out);
2915
3075
  };
2916
3076
  var fromInputNested = (input) => {
2917
3077
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2935,9 +3095,9 @@ var fromInputNested = (input) => {
2935
3095
  return out;
2936
3096
  };
2937
3097
  var coerce = (value) => isRedacted(value) ? value : String(value);
2938
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3098
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2939
3099
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2940
- var empty4 = /* @__PURE__ */ make23([]);
3100
+ var empty4 = /* @__PURE__ */ make24([]);
2941
3101
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2942
3102
  const params = fromInput2(input).params.slice();
2943
3103
  const keys = new Set;
@@ -2949,7 +3109,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2949
3109
  continue;
2950
3110
  params.push(self.params[i]);
2951
3111
  }
2952
- return make23(params);
3112
+ return make24(params);
2953
3113
  });
2954
3114
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2955
3115
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3005,13 +3165,13 @@ var decodeQueryKey = (key) => {
3005
3165
  return key;
3006
3166
  }
3007
3167
  };
3008
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3168
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3009
3169
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3010
3170
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3011
3171
  });
3012
3172
 
3013
3173
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3014
- var TypeId7 = "~effect/Terminal";
3174
+ var TypeId8 = "~effect/Terminal";
3015
3175
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3016
3176
 
3017
3177
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3020,14 +3180,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3020
3180
  [QuitErrorTypeId] = QuitErrorTypeId;
3021
3181
  }
3022
3182
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3023
- var make24 = (impl) => Terminal.of({
3183
+ var make25 = (impl) => Terminal.of({
3024
3184
  ...impl,
3025
- [TypeId7]: TypeId7
3185
+ [TypeId8]: TypeId8
3026
3186
  });
3027
3187
 
3028
3188
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3029
3189
  import * as readline from "readline";
3030
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3190
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3031
3191
  const stdin = process.stdin;
3032
3192
  const stdout = process.stdout;
3033
3193
  const lines = yield* make9();
@@ -3041,7 +3201,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3041
3201
  };
3042
3202
  stdin.once("end", onStdinEnd);
3043
3203
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3044
- const rlRef = yield* make10({
3204
+ const rlRef = yield* make18({
3045
3205
  acquire: acquireRelease(sync2(() => {
3046
3206
  const rl = readline.createInterface({
3047
3207
  input: stdin,
@@ -3080,7 +3240,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3080
3240
  if (stdin.isTTY)
3081
3241
  stdin.setRawMode(enabled);
3082
3242
  });
3083
- const rawModeRef = yield* make10({
3243
+ const rawModeRef = yield* make18({
3084
3244
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3085
3245
  idleTimeToLive: "10 millis"
3086
3246
  });
@@ -3131,14 +3291,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3131
3291
  if (inputEnded) {
3132
3292
  handleEnd();
3133
3293
  } else {
3134
- yield* get3(rlRef);
3135
- yield* get3(rawModeRef);
3294
+ yield* get5(rlRef);
3295
+ yield* get5(rawModeRef);
3136
3296
  stdin.once("end", handleEnd);
3137
3297
  }
3138
3298
  return queue;
3139
3299
  });
3140
3300
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3141
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3301
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3142
3302
  onSome: succeed6
3143
3303
  })), mapError2(() => new QuitError({}))));
3144
3304
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3149,7 +3309,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3149
3309
  cause: err
3150
3310
  }))));
3151
3311
  }));
3152
- return make24({
3312
+ return make25({
3153
3313
  columns,
3154
3314
  rows,
3155
3315
  size,
@@ -3158,7 +3318,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3318
  display
3159
3319
  });
3160
3320
  });
3161
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3321
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3162
3322
  function defaultShouldQuit(input) {
3163
3323
  const key = input.key;
3164
3324
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3185,7 +3345,7 @@ function toDate(input) {
3185
3345
  return toDateUtc2(makeUnsafe(input));
3186
3346
  }
3187
3347
  function parseDate(input) {
3188
- return getOrUndefined(map4(make18(input), toDateUtc2));
3348
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3189
3349
  }
3190
3350
  function toIso(input) {
3191
3351
  return formatIso(makeUnsafe(input));
@@ -9638,6 +9798,17 @@ var RunFileUrlsRequest = Struct({
9638
9798
  ids: ArraySchema(Id).check(isMinLength(1), isMaxLength(200)),
9639
9799
  use: Literals(["view", "download"])
9640
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
+ });
9641
9812
  var RunFileRemoveRequest = Struct({
9642
9813
  note: optionalKey(String4.check(isMaxLength(500)))
9643
9814
  });
@@ -9809,11 +9980,11 @@ var TranscriptSearchResult = Struct({
9809
9980
  total: Int
9810
9981
  });
9811
9982
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9812
- var TypeId8 = "~effect/http/HttpBody";
9983
+ var TypeId9 = "~effect/http/HttpBody";
9813
9984
  class Proto5 {
9814
- [TypeId8];
9985
+ [TypeId9];
9815
9986
  constructor() {
9816
- this[TypeId8] = TypeId8;
9987
+ this[TypeId9] = TypeId9;
9817
9988
  }
9818
9989
  [NodeInspectSymbol]() {
9819
9990
  return this.toJSON();
@@ -9904,7 +10075,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9904
10075
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9905
10076
 
9906
10077
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9907
- var TypeId9 = "~effect/http/HttpClientError";
10078
+ var TypeId10 = "~effect/http/HttpClientError";
9908
10079
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9909
10080
  constructor(props) {
9910
10081
  if ("cause" in props.reason) {
@@ -9916,7 +10087,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9916
10087
  super(props);
9917
10088
  }
9918
10089
  }
9919
- [TypeId9] = TypeId9;
10090
+ [TypeId10] = TypeId10;
9920
10091
  get request() {
9921
10092
  return this.reason.request;
9922
10093
  }
@@ -10020,7 +10191,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
10020
10191
  }
10021
10192
  }
10022
10193
 
10023
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10194
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
10024
10195
  _tag: /* @__PURE__ */ tag("HttpError"),
10025
10196
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
10026
10197
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10053,7 +10224,7 @@ var updateContentLength = (headers, body) => {
10053
10224
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10054
10225
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10055
10226
  }
10056
- var make26 = (url, params, hash) => try_({
10227
+ var make27 = (url, params, hash) => try_({
10057
10228
  try: () => {
10058
10229
  const urlInstance = new URL(url, baseUrl());
10059
10230
  for (let i = 0;i < params.params.length; i++) {
@@ -10084,10 +10255,10 @@ var baseUrl = () => {
10084
10255
  };
10085
10256
 
10086
10257
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10087
- var TypeId10 = "~effect/http/HttpClientRequest";
10088
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10258
+ var TypeId11 = "~effect/http/HttpClientRequest";
10259
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
10089
10260
  var Proto6 = {
10090
- [TypeId10]: TypeId10,
10261
+ [TypeId11]: TypeId11,
10091
10262
  ...BaseProto,
10092
10263
  toJSON() {
10093
10264
  return {
@@ -10176,7 +10347,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10176
10347
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10177
10348
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10178
10349
  function toUrl(self) {
10179
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10350
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10180
10351
  if (isSuccess(r)) {
10181
10352
  return some(r.success);
10182
10353
  }
@@ -10184,7 +10355,7 @@ function toUrl(self) {
10184
10355
  }
10185
10356
 
10186
10357
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10187
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10358
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
10188
10359
  var schemaBodyJson = (schema, options) => {
10189
10360
  const decode = decodeEffect(toCodecJson(schema));
10190
10361
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10203,7 +10374,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10203
10374
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10204
10375
 
10205
10376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10206
- var TypeId12 = "~effect/http/HttpClientResponse";
10377
+ var TypeId13 = "~effect/http/HttpClientResponse";
10207
10378
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10208
10379
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10209
10380
  reason: new StatusCodeError({
@@ -10214,16 +10385,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10214
10385
  }));
10215
10386
 
10216
10387
  class WebHttpClientResponse extends Class {
10217
- [TypeId11];
10218
10388
  [TypeId12];
10389
+ [TypeId13];
10219
10390
  request;
10220
10391
  source;
10221
10392
  constructor(request, source) {
10222
10393
  super();
10223
10394
  this.request = request;
10224
10395
  this.source = source;
10225
- this[TypeId11] = TypeId11;
10226
10396
  this[TypeId12] = TypeId12;
10397
+ this[TypeId13] = TypeId13;
10227
10398
  }
10228
10399
  toJSON() {
10229
10400
  return inspect(this, {
@@ -10395,7 +10566,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10395
10566
  };
10396
10567
 
10397
10568
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10398
- var TypeId13 = "~effect/http/HttpClient";
10569
+ var TypeId14 = "~effect/http/HttpClient";
10399
10570
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10400
10571
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10401
10572
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10412,7 +10583,7 @@ var makeWith2 = (postprocess, preprocess) => {
10412
10583
  return self;
10413
10584
  };
10414
10585
  var Proto7 = {
10415
- [TypeId13]: TypeId13,
10586
+ [TypeId14]: TypeId14,
10416
10587
  pipe() {
10417
10588
  return pipeArguments(this, arguments);
10418
10589
  },
@@ -10426,10 +10597,10 @@ var Proto7 = {
10426
10597
  return this.execute(make5(fullMethod)(url, options));
10427
10598
  }]))
10428
10599
  };
10429
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10600
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10430
10601
  const scopedController = scopedRequests.get(request);
10431
10602
  const controller = scopedController ?? new AbortController;
10432
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10603
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10433
10604
  if (isFailure(urlResult)) {
10434
10605
  return fail7(new HttpClientError({
10435
10606
  reason: new InvalidUrlError({
@@ -10563,8 +10734,8 @@ class InterruptibleResponse {
10563
10734
  this.original = original;
10564
10735
  this.controller = controller;
10565
10736
  }
10737
+ [TypeId13] = TypeId13;
10566
10738
  [TypeId12] = TypeId12;
10567
- [TypeId11] = TypeId11;
10568
10739
  applyInterrupt(effect) {
10569
10740
  return suspend3(() => {
10570
10741
  responseRegistry.unregister(this.original);
@@ -10662,7 +10833,7 @@ var detectStreamBodySupport = () => {
10662
10833
  return false;
10663
10834
  }
10664
10835
  };
10665
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10836
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10666
10837
  if (request.headers.upgrade !== undefined) {
10667
10838
  return fail7(new HttpClientError({
10668
10839
  reason: new TransportError({
@@ -10753,10 +10924,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10753
10924
  });
10754
10925
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10755
10926
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10756
- var TypeId14 = "~effect/socket/Socket";
10927
+ var TypeId15 = "~effect/socket/Socket";
10757
10928
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10758
- var make28 = (options) => Socket.of({
10759
- [TypeId14]: TypeId14,
10929
+ var make29 = (options) => Socket.of({
10930
+ [TypeId15]: TypeId15,
10760
10931
  reader: options.reader,
10761
10932
  writer: options.writer
10762
10933
  });
@@ -11079,7 +11250,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11079
11250
  write,
11080
11251
  writeAll
11081
11252
  });
11082
- return succeed6(make28({
11253
+ return succeed6(make29({
11083
11254
  reader,
11084
11255
  writer
11085
11256
  }));
@@ -12695,6 +12866,13 @@ class KitmanEffectClient {
12695
12866
  body: JSON.stringify(request)
12696
12867
  });
12697
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
+ }
12698
12876
  removeRunFile(runId, fileId, request = {}) {
12699
12877
  return this.request("removeRunFile", `/runs/${segment(runId)}/files/${segment(fileId)}`, {
12700
12878
  method: "DELETE",
@@ -14048,7 +14226,7 @@ function getStreamSchemas(schema) {
14048
14226
  }
14049
14227
  var schema = /* @__PURE__ */ declare(isStream);
14050
14228
  function Stream(success, error) {
14051
- return make17(schema.ast, {
14229
+ return make16(schema.ast, {
14052
14230
  [StreamSchemaTypeId]: StreamSchemaTypeId,
14053
14231
  success,
14054
14232
  error
@@ -14056,9 +14234,9 @@ function Stream(success, error) {
14056
14234
  }
14057
14235
 
14058
14236
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
14059
- var TypeId15 = "~effect/rpc/Rpc";
14237
+ var TypeId16 = "~effect/rpc/Rpc";
14060
14238
  var Proto8 = {
14061
- [TypeId15]: TypeId15,
14239
+ [TypeId16]: TypeId16,
14062
14240
  pipe() {
14063
14241
  return pipeArguments(this, arguments);
14064
14242
  },
@@ -14225,7 +14403,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14225
14403
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14226
14404
 
14227
14405
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14228
- var TypeId16 = "~effect/rpc/RpcClientError";
14406
+ var TypeId17 = "~effect/rpc/RpcClientError";
14229
14407
 
14230
14408
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14231
14409
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14234,11 +14412,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14234
14412
  })) {
14235
14413
  }
14236
14414
 
14237
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14415
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14238
14416
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14239
14417
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14240
14418
  })) {
14241
- [TypeId16] = TypeId16;
14419
+ [TypeId17] = TypeId17;
14242
14420
  get message() {
14243
14421
  return `${this.reason._tag}: ${this.reason.message}`;
14244
14422
  }
@@ -14358,7 +14536,7 @@ var RpcGroupProto = {
14358
14536
  });
14359
14537
  },
14360
14538
  annotateRpcs(service, value) {
14361
- return this.annotateRpcsMerge(make15(service, value));
14539
+ return this.annotateRpcsMerge(make14(service, value));
14362
14540
  },
14363
14541
  annotateMerge(context) {
14364
14542
  return makeProto2({
@@ -14386,7 +14564,7 @@ var make7 = (...rpcs) => makeProto2({
14386
14564
  annotations: empty3()
14387
14565
  });
14388
14566
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14389
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14567
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
14390
14568
  var Service = () => (id, options) => {
14391
14569
  const limit = getStackTraceLimit();
14392
14570
  let creationError;
@@ -14404,7 +14582,7 @@ var Service = () => (id, options) => {
14404
14582
  return creationError?.stack;
14405
14583
  }
14406
14584
  });
14407
- ServiceClass_[TypeId17] = TypeId17;
14585
+ ServiceClass_[TypeId18] = TypeId18;
14408
14586
  ServiceClass_.error = options?.error ?? Never;
14409
14587
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14410
14588
  return ServiceClass;
@@ -15048,7 +15226,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
15048
15226
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
15049
15227
 
15050
15228
  // apps/cli/src/oauth.ts
15051
- var Scope = "openid profile email offline_access kitman:cli";
15229
+ var Scope2 = "openid profile email offline_access kitman:cli";
15052
15230
  var CallbackPath = "/auth/callback";
15053
15231
 
15054
15232
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -15067,7 +15245,7 @@ function buildAuthorizeUrl(input) {
15067
15245
  url.searchParams.set("response_type", "code");
15068
15246
  url.searchParams.set("client_id", input.clientId);
15069
15247
  url.searchParams.set("redirect_uri", input.redirectUri);
15070
- url.searchParams.set("scope", Scope);
15248
+ url.searchParams.set("scope", Scope2);
15071
15249
  url.searchParams.set("code_challenge", input.codeChallenge);
15072
15250
  url.searchParams.set("code_challenge_method", "S256");
15073
15251
  url.searchParams.set("state", input.state);
@@ -15127,7 +15305,7 @@ function toStoredSession(token, existingRefreshToken) {
15127
15305
  }
15128
15306
  function startLoopbackServer(input) {
15129
15307
  return gen(function* () {
15130
- const code = yield* make16();
15308
+ const code = yield* make15();
15131
15309
  const context2 = yield* context();
15132
15310
  const runSyncExit = runSyncExitWith(context2);
15133
15311
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15675,7 +15853,7 @@ var openConnection = (transport) => gen(function* () {
15675
15853
  let lastId = 0;
15676
15854
  let lost = false;
15677
15855
  const notifications = yield* unbounded2();
15678
- const ended = yield* make16();
15856
+ const ended = yield* make15();
15679
15857
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15680
15858
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15681
15859
  onNone: () => void_3,
@@ -15702,7 +15880,7 @@ var openConnection = (transport) => gen(function* () {
15702
15880
  if (lost)
15703
15881
  return yield* new HerdrCoreConnectionLost2({ method });
15704
15882
  const id = ++lastId;
15705
- const deferred = yield* make16();
15883
+ const deferred = yield* make15();
15706
15884
  pending.set(id, { method, deferred });
15707
15885
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15708
15886
  return yield* _await(deferred);
@@ -15776,7 +15954,7 @@ var herdrCoreOver = (transport) => ({
15776
15954
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15777
15955
  };
15778
15956
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15779
- 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)));
15780
15958
  }))
15781
15959
  });
15782
15960
  var spawnedTransport = (env) => gen(function* () {
@@ -15867,7 +16045,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15867
16045
  const spawner = yield* ChildProcessSpawner;
15868
16046
  const [command, ...args] = argv;
15869
16047
  const handle = yield* spawner.spawn(make3(command, args, {
15870
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
16048
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15871
16049
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15872
16050
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15873
16051
  }));
@@ -16307,4 +16485,4 @@ function serviceChecks(declaration) {
16307
16485
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
16308
16486
  }
16309
16487
 
16310
- 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 };