@kitman-sh/cli 0.20.0 → 0.21.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 (28) hide show
  1. package/dist/{chunk-s9fwm42m.js → chunk-0j884359.js} +3 -3
  2. package/dist/{chunk-rekh8azw.js → chunk-0v70erwa.js} +10 -10
  3. package/dist/{chunk-qvpkwnky.js → chunk-4qjfn1sa.js} +1 -1
  4. package/dist/{chunk-y7bth30s.js → chunk-5kqt4bqp.js} +1 -1
  5. package/dist/{chunk-8xd2jvgj.js → chunk-746tbgvb.js} +18 -18
  6. package/dist/{chunk-89a53j2y.js → chunk-7re3n1ze.js} +8 -8
  7. package/dist/{chunk-7dcq58d0.js → chunk-7swf974v.js} +12 -12
  8. package/dist/{chunk-yecj64ke.js → chunk-7vngg2n8.js} +17 -17
  9. package/dist/{chunk-spazhq67.js → chunk-8t2wcrvv.js} +2 -2
  10. package/dist/{chunk-3vgv5ba7.js → chunk-atswrrsb.js} +6 -6
  11. package/dist/{chunk-v30yf453.js → chunk-bsgvmq34.js} +2 -2
  12. package/dist/{chunk-535m9qxp.js → chunk-d1826dj4.js} +130 -263
  13. package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
  14. package/dist/{chunk-kntnw6r0.js → chunk-j4b1yvcd.js} +177 -37
  15. package/dist/{chunk-avg3cz82.js → chunk-js28a12p.js} +9 -9
  16. package/dist/{chunk-centvmrd.js → chunk-kw46ktwg.js} +4 -4
  17. package/dist/{chunk-2scq36fm.js → chunk-mqs553x5.js} +21 -8
  18. package/dist/{chunk-3hyggg9w.js → chunk-npfdbssf.js} +4 -4
  19. package/dist/{chunk-3wct0tsd.js → chunk-pr7wx6vh.js} +1 -1
  20. package/dist/{chunk-fvdnmgsy.js → chunk-remt6mfx.js} +4 -4
  21. package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
  22. package/dist/{chunk-dtgp724s.js → chunk-t8e5ky8f.js} +1 -1
  23. package/dist/{chunk-haq904fk.js → chunk-tsx0347c.js} +1 -1
  24. package/dist/{chunk-6387vj9z.js → chunk-vz38kngm.js} +2 -2
  25. package/dist/{chunk-g00ewhrb.js → chunk-wmf3hq5w.js} +63 -63
  26. package/dist/{chunk-rrbnxea1.js → chunk-y756hc0e.js} +6 -6
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,15 +58,13 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -91,11 +89,9 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
- make15,
94
+ make16,
99
95
  _await,
100
96
  fail5,
101
97
  isDone,
@@ -103,12 +99,8 @@ import {
103
99
  succeed4,
104
100
  doneUnsafe,
105
101
  TracerTimingEnabled,
106
- Scope,
107
- makeUnsafe6,
108
102
  provide,
109
- addFinalizerExit,
110
103
  addFinalizer,
111
- close,
112
104
  succeed5,
113
105
  effect,
114
106
  effectContext,
@@ -160,7 +152,6 @@ import {
160
152
  tapCause,
161
153
  retry,
162
154
  ignore,
163
- ignoreCause,
164
155
  orElseSucceed,
165
156
  timeout,
166
157
  timeoutOrElse,
@@ -172,7 +163,6 @@ import {
172
163
  context,
173
164
  contextWith,
174
165
  provide3,
175
- provideContext2,
176
166
  serviceOption,
177
167
  updateContext,
178
168
  provideService,
@@ -183,7 +173,6 @@ import {
183
173
  addFinalizer2,
184
174
  ensuring2,
185
175
  onError,
186
- onExit,
187
176
  cached,
188
177
  interrupt3,
189
178
  interruptible,
@@ -195,7 +184,6 @@ import {
195
184
  withParentSpan,
196
185
  forkScoped,
197
186
  runFork,
198
- runForkWith,
199
187
  runPromise,
200
188
  runPromiseWith,
201
189
  runSync,
@@ -215,7 +203,7 @@ import {
215
203
  decodeEffect,
216
204
  decodeUnknownOption,
217
205
  decodeOption,
218
- make16,
206
+ make17,
219
207
  isSchema,
220
208
  optionalKey,
221
209
  optional,
@@ -276,16 +264,11 @@ import {
276
264
  decodeJsonStringOption,
277
265
  encodeJsonStringSync,
278
266
  encodePrettyJsonString
279
- } from "./chunk-ew07nt2d.js";
267
+ } from "./chunk-h2f26xbd.js";
280
268
  import {
281
269
  map,
282
270
  makeEquivalence,
283
- toNumber,
284
271
  bytes,
285
- join,
286
- interrupt,
287
- getCurrent,
288
- runIn,
289
272
  BadArgument,
290
273
  systemError,
291
274
  badArgument,
@@ -307,11 +290,13 @@ import {
307
290
  isSink,
308
291
  fromChannel,
309
292
  drain,
293
+ make10,
294
+ get3,
310
295
  isStream,
311
296
  fromChannel2,
312
297
  callback,
313
298
  empty2,
314
- make10,
299
+ make11,
315
300
  suspend,
316
301
  fail2,
317
302
  fromQueue,
@@ -337,17 +322,17 @@ import {
337
322
  mkArrayBuffer,
338
323
  toReadableStreamEffect,
339
324
  FileSystem,
340
- make11,
325
+ make12,
341
326
  FileTypeId,
342
327
  WatchBackend,
343
328
  Path,
344
- make12,
329
+ make13,
345
330
  option,
346
331
  String2,
347
332
  optionalEnv,
348
333
  harnessesUnsupportedInSrt2,
349
334
  harnessesUnsupportedInDocker2
350
- } from "./chunk-kntnw6r0.js";
335
+ } from "./chunk-j4b1yvcd.js";
351
336
  import {
352
337
  isRedacted,
353
338
  make,
@@ -361,7 +346,7 @@ import {
361
346
  make3,
362
347
  parseFdName,
363
348
  fdName
364
- } from "./chunk-v30yf453.js";
349
+ } from "./chunk-bsgvmq34.js";
365
350
  import {
366
351
  isDateTime,
367
352
  Numeric,
@@ -374,7 +359,8 @@ import {
374
359
  SecretScope,
375
360
  SecretHosts,
376
361
  isSecretReference
377
- } from "./chunk-qvpkwnky.js";
362
+ } from "./chunk-4qjfn1sa.js";
363
+
378
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
365
  var makeEquivalence3 = Tuple;
380
366
 
@@ -516,7 +502,7 @@ var fromDateUnsafe = (date) => {
516
502
  }
517
503
  return makeUtc(epochMillis);
518
504
  };
519
- var makeUnsafe7 = (input) => {
505
+ var makeUnsafe6 = (input) => {
520
506
  if (isDateTime2(input)) {
521
507
  return input;
522
508
  } else if (input instanceof Date) {
@@ -536,7 +522,7 @@ var makeUnsafe7 = (input) => {
536
522
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
537
523
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
538
524
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
539
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
525
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
540
526
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
541
527
  var nowUnsafe = () => makeUtc(Date.now());
542
528
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -643,7 +629,7 @@ class Metric$ {
643
629
  }
644
630
  hook(context) {
645
631
  const key = this.key(context);
646
- const registry = get3(context, MetricRegistry);
632
+ const registry = get4(context, MetricRegistry);
647
633
  let metadata = registry.get(key);
648
634
  if (isUndefined(metadata)) {
649
635
  metadata = this.metadata(this.createHooks());
@@ -652,11 +638,11 @@ class Metric$ {
652
638
  return metadata.hooks;
653
639
  }
654
640
  removeUnsafe(context) {
655
- get3(context, MetricRegistry).delete(this.key(context));
641
+ get4(context, MetricRegistry).delete(this.key(context));
656
642
  }
657
643
  registerUnsafe(context, hooks) {
658
644
  const key = this.key(context);
659
- const registry = get3(context, MetricRegistry);
645
+ const registry = get4(context, MetricRegistry);
660
646
  const metadata = this.metadata({
661
647
  get: hooks.get,
662
648
  update: constVoid,
@@ -672,7 +658,7 @@ class Metric$ {
672
658
  };
673
659
  }
674
660
  key(context) {
675
- const extraAttributes = get3(context, CurrentMetricAttributes);
661
+ const extraAttributes = get4(context, CurrentMetricAttributes);
676
662
  if (extraAttributes !== this.#extraAttributes) {
677
663
  this.#extraAttributes = extraAttributes;
678
664
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -915,151 +901,18 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
915
901
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
916
902
  var runMain = runMain2;
917
903
 
918
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
919
- var TypeId3 = "~effect/RcRef";
920
- var stateEmpty = {
921
- _tag: "Empty"
922
- };
923
- var stateClosed = {
924
- _tag: "Closed"
925
- };
926
- var variance = {
927
- _A: identity,
928
- _E: identity
929
- };
930
-
931
- class RcRefImpl {
932
- [TypeId3] = variance;
933
- pipe() {
934
- return pipeArguments(this, arguments);
935
- }
936
- state = stateEmpty;
937
- acquire;
938
- context;
939
- scope;
940
- idleTimeToLive;
941
- constructor(acquire, context, scope, idleTimeToLive) {
942
- this.acquire = acquire;
943
- this.context = context;
944
- this.scope = scope;
945
- this.idleTimeToLive = idleTimeToLive;
946
- }
947
- }
948
- var make17 = (options) => withFiber2((fiber) => {
949
- const context = fiber.context;
950
- const scope = get3(context, Scope);
951
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
952
- return as(addFinalizerExit(scope, () => {
953
- const state = ref.state;
954
- ref.state = stateClosed;
955
- if (state._tag === "Acquired")
956
- return close(state.scope, void_2);
957
- if (state._tag === "Acquiring")
958
- return interrupt(state.fiber);
959
- return void_3;
960
- }), ref);
961
- });
962
- var getState = (self, restore) => {
963
- switch (self.state._tag) {
964
- case "Closed": {
965
- return interrupt3;
966
- }
967
- case "Acquired": {
968
- const state = self.state;
969
- state.refCount++;
970
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
971
- }
972
- case "Acquiring": {
973
- const state = self.state;
974
- state.awaiters++;
975
- return awaitAcquiring(self, state, restore);
976
- }
977
- case "Empty": {
978
- const acquiring = {
979
- _tag: "Acquiring",
980
- fiber: undefined,
981
- awaiters: 1,
982
- acquired: undefined
983
- };
984
- self.state = acquiring;
985
- const scope = makeUnsafe6();
986
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
987
- if (self.state !== acquiring) {
988
- return interrupt3;
989
- }
990
- const state = {
991
- _tag: "Acquired",
992
- value,
993
- scope,
994
- fiber: undefined,
995
- refCount: acquiring.awaiters,
996
- invalidated: false
997
- };
998
- self.state = state;
999
- acquiring.acquired = state;
1000
- return succeed6(state);
1001
- }), onExit((exit) => {
1002
- if (isSuccess2(exit))
1003
- return void_3;
1004
- if (self.state === acquiring)
1005
- self.state = stateEmpty;
1006
- return close(scope, exit);
1007
- }));
1008
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1009
- return awaitAcquiring(self, acquiring, restore);
1010
- }
1011
- }
1012
- };
1013
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1014
- const acquired = acquiring.acquired;
1015
- if (acquired !== undefined) {
1016
- return isFailure2(exit) ? release(self, acquired) : void_3;
1017
- }
1018
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1019
- return void_3;
1020
- self.state = stateEmpty;
1021
- return interrupt(acquiring.fiber);
1022
- });
1023
- var get4 = (self_) => {
1024
- const self = self_;
1025
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1026
- };
1027
- var release = (self, state) => {
1028
- state.refCount--;
1029
- if (state.refCount > 0) {
1030
- return void_3;
1031
- }
1032
- const idleTimeToLive = self.idleTimeToLive;
1033
- if (idleTimeToLive === undefined || state.invalidated) {
1034
- if (self.state === state) {
1035
- self.state = stateEmpty;
1036
- }
1037
- return close(state.scope, void_2);
1038
- } else if (!isFinite(idleTimeToLive)) {
1039
- return void_3;
904
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
905
+ var BigInt2 = globalThis.BigInt;
906
+ var toNumber = (b) => {
907
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
908
+ return none();
1040
909
  }
1041
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1042
- if (self.state === state && state.refCount === 0) {
1043
- self.state = stateEmpty;
1044
- return ignoreCause(close(state.scope, void_2), {
1045
- log: "Unhandled",
1046
- message: "Unhandled error in RcRef finalizer"
1047
- });
1048
- }
1049
- return void_3;
1050
- })).pipe(ensuring2(sync2(() => {
1051
- state.fiber = undefined;
1052
- })), runForkWith(self.context), runIn(self.scope));
1053
- return void_3;
910
+ return some(Number(b));
1054
911
  };
1055
912
 
1056
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1057
- var make18 = make17;
1058
- var get5 = get4;
1059
-
1060
913
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1061
- var makeUnsafe = makeUnsafe7;
1062
- var make19 = make4;
914
+ var makeUnsafe = makeUnsafe6;
915
+ var make18 = make4;
1063
916
  var now2 = now;
1064
917
  var nowUnsafe2 = nowUnsafe;
1065
918
  var toDateUtc2 = toDateUtc;
@@ -1378,7 +1231,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1378
1231
  windowsHide: true
1379
1232
  }, onExit);
1380
1233
  };
1381
- var make20 = /* @__PURE__ */ gen(function* () {
1234
+ var make19 = /* @__PURE__ */ gen(function* () {
1382
1235
  const fs = yield* FileSystem;
1383
1236
  const path = yield* Path;
1384
1237
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1907,7 +1760,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1907
1760
  });
1908
1761
  return make2(spawnCommand);
1909
1762
  });
1910
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1763
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1911
1764
  var flattenCommand = (command) => {
1912
1765
  const commands = [];
1913
1766
  const pipeOptions = [];
@@ -2391,7 +2244,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2391
2244
  resume(fail7(handleBadArgument("writeFile")(err)));
2392
2245
  }
2393
2246
  });
2394
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2247
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2395
2248
  access: access2,
2396
2249
  chmod: chmod2,
2397
2250
  chown: chown2,
@@ -2451,15 +2304,15 @@ var fileUrlOps = (windows) => ({
2451
2304
  })
2452
2305
  })
2453
2306
  });
2454
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2455
2308
  ...NodePath.posix,
2456
2309
  .../* @__PURE__ */ fileUrlOps(false)
2457
2310
  }));
2458
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2311
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2459
2312
  ...NodePath.win32,
2460
2313
  .../* @__PURE__ */ fileUrlOps(true)
2461
2314
  }));
2462
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2315
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2463
2316
  ...NodePath,
2464
2317
  .../* @__PURE__ */ fileUrlOps(undefined)
2465
2318
  }));
@@ -2468,10 +2321,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2468
2321
  var layer2 = layer7;
2469
2322
 
2470
2323
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2471
- var TypeId4 = "~effect/Stdio";
2472
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2473
- var make21 = (options) => ({
2474
- [TypeId4]: TypeId4,
2324
+ var TypeId3 = "~effect/Stdio";
2325
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2326
+ var make20 = (options) => ({
2327
+ [TypeId3]: TypeId3,
2475
2328
  stdinIsTerminal: succeed6(false),
2476
2329
  stdoutIsTerminal: succeed6(false),
2477
2330
  stderrIsTerminal: succeed6(false),
@@ -2479,7 +2332,7 @@ var make21 = (options) => ({
2479
2332
  });
2480
2333
 
2481
2334
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2482
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2335
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2483
2336
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2484
2337
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2485
2338
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2679,7 +2532,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2679
2532
  const uuid = bytes(randomBytes(16));
2680
2533
  return format === "bytes" ? uuid : stringify(uuid);
2681
2534
  };
2682
- var make22 = (randomBytes) => {
2535
+ var make21 = (randomBytes) => {
2683
2536
  const randomBytesChecked = (size) => {
2684
2537
  checkSize(size);
2685
2538
  return randomBytes(size);
@@ -2713,7 +2566,7 @@ var fillRandom = (crypto2, size) => {
2713
2566
  }
2714
2567
  return bytes;
2715
2568
  };
2716
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2569
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2717
2570
  var randomBytesUnsafe = (size) => {
2718
2571
  checkSize(size);
2719
2572
  return fillRandom(globalThis.crypto, size);
@@ -2721,10 +2574,10 @@ var randomBytesUnsafe = (size) => {
2721
2574
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2722
2575
 
2723
2576
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2724
- var TypeId5 = "~effect/http/Cookies";
2577
+ var TypeId4 = "~effect/http/Cookies";
2725
2578
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2726
2579
  var Proto2 = {
2727
- [TypeId5]: TypeId5,
2580
+ [TypeId4]: TypeId4,
2728
2581
  ...BaseProto,
2729
2582
  toJSON() {
2730
2583
  return {
@@ -2903,14 +2756,14 @@ var tryDecodeURIComponent = (str) => {
2903
2756
  };
2904
2757
 
2905
2758
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2906
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2759
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2907
2760
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2908
- [TypeId6]: {
2909
- value: TypeId6
2761
+ [TypeId5]: {
2762
+ value: TypeId5
2910
2763
  },
2911
2764
  [symbolRedactable]: {
2912
2765
  value(context) {
2913
- return redact2(this, get3(context, CurrentRedactedNames));
2766
+ return redact2(this, get4(context, CurrentRedactedNames));
2914
2767
  }
2915
2768
  },
2916
2769
  toJSON: {
@@ -2935,7 +2788,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2935
2788
  value: BaseProto[NodeInspectSymbol]
2936
2789
  }
2937
2790
  });
2938
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2791
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2939
2792
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2940
2793
  var empty = /* @__PURE__ */ Object.create(Proto3);
2941
2794
  var fromInput = (input) => {
@@ -2960,21 +2813,21 @@ var fromInput = (input) => {
2960
2813
  };
2961
2814
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2962
2815
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2963
- const out = make23(self);
2816
+ const out = make22(self);
2964
2817
  out[key.toLowerCase()] = value;
2965
2818
  return out;
2966
2819
  });
2967
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2820
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2968
2821
  ...self,
2969
2822
  ...fromInput(headers)
2970
2823
  }));
2971
2824
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2972
- const out = make23(self);
2825
+ const out = make22(self);
2973
2826
  Object.assign(out, headers);
2974
2827
  return out;
2975
2828
  });
2976
2829
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2977
- const out = make23(self);
2830
+ const out = make22(self);
2978
2831
  delete out[key.toLowerCase()];
2979
2832
  return out;
2980
2833
  });
@@ -3031,18 +2884,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3031
2884
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3032
2885
 
3033
2886
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3034
- var TypeId7 = "~effect/http/UrlParams";
3035
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2887
+ var TypeId6 = "~effect/http/UrlParams";
2888
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3036
2889
  var Proto4 = {
3037
2890
  ...PipeInspectableProto,
3038
- [TypeId7]: TypeId7,
2891
+ [TypeId6]: TypeId6,
3039
2892
  [Symbol.iterator]() {
3040
2893
  return this.params[Symbol.iterator]();
3041
2894
  },
3042
2895
  [symbolRedactable](context) {
3043
2896
  return {
3044
2897
  _id: "UrlParams",
3045
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2898
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3046
2899
  };
3047
2900
  },
3048
2901
  toJSON() {
@@ -3055,7 +2908,7 @@ var Proto4 = {
3055
2908
  return array(this.params.flat());
3056
2909
  }
3057
2910
  };
3058
- var make24 = (params) => {
2911
+ var make23 = (params) => {
3059
2912
  const self = Object.create(Proto4);
3060
2913
  self.params = params;
3061
2914
  return self;
@@ -3074,7 +2927,7 @@ var fromInput2 = (input) => {
3074
2927
  out.push(parsed[i]);
3075
2928
  }
3076
2929
  }
3077
- return make24(out);
2930
+ return make23(out);
3078
2931
  };
3079
2932
  var fromInputNested = (input) => {
3080
2933
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3098,9 +2951,9 @@ var fromInputNested = (input) => {
3098
2951
  return out;
3099
2952
  };
3100
2953
  var coerce = (value) => isRedacted(value) ? value : String(value);
3101
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2954
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3102
2955
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3103
- var empty4 = /* @__PURE__ */ make24([]);
2956
+ var empty4 = /* @__PURE__ */ make23([]);
3104
2957
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3105
2958
  const params = fromInput2(input).params.slice();
3106
2959
  const keys = new Set;
@@ -3112,7 +2965,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3112
2965
  continue;
3113
2966
  params.push(self.params[i]);
3114
2967
  }
3115
- return make24(params);
2968
+ return make23(params);
3116
2969
  });
3117
2970
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3118
2971
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3168,13 +3021,13 @@ var decodeQueryKey = (key) => {
3168
3021
  return key;
3169
3022
  }
3170
3023
  };
3171
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3024
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3172
3025
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3173
3026
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3174
3027
  });
3175
3028
 
3176
3029
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3177
- var TypeId8 = "~effect/Terminal";
3030
+ var TypeId7 = "~effect/Terminal";
3178
3031
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3179
3032
 
3180
3033
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3183,14 +3036,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3183
3036
  [QuitErrorTypeId] = QuitErrorTypeId;
3184
3037
  }
3185
3038
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3186
- var make25 = (impl) => Terminal.of({
3039
+ var make24 = (impl) => Terminal.of({
3187
3040
  ...impl,
3188
- [TypeId8]: TypeId8
3041
+ [TypeId7]: TypeId7
3189
3042
  });
3190
3043
 
3191
3044
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3192
3045
  import * as readline from "readline";
3193
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3046
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3194
3047
  const stdin = process.stdin;
3195
3048
  const stdout = process.stdout;
3196
3049
  const lines = yield* make9();
@@ -3204,7 +3057,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3204
3057
  };
3205
3058
  stdin.once("end", onStdinEnd);
3206
3059
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3207
- const rlRef = yield* make18({
3060
+ const rlRef = yield* make10({
3208
3061
  acquire: acquireRelease(sync2(() => {
3209
3062
  const rl = readline.createInterface({
3210
3063
  input: stdin,
@@ -3243,7 +3096,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3243
3096
  if (stdin.isTTY)
3244
3097
  stdin.setRawMode(enabled);
3245
3098
  });
3246
- const rawModeRef = yield* make18({
3099
+ const rawModeRef = yield* make10({
3247
3100
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3248
3101
  idleTimeToLive: "10 millis"
3249
3102
  });
@@ -3294,14 +3147,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3294
3147
  if (inputEnded) {
3295
3148
  handleEnd();
3296
3149
  } else {
3297
- yield* get5(rlRef);
3298
- yield* get5(rawModeRef);
3150
+ yield* get3(rlRef);
3151
+ yield* get3(rawModeRef);
3299
3152
  stdin.once("end", handleEnd);
3300
3153
  }
3301
3154
  return queue;
3302
3155
  });
3303
3156
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3304
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3157
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3305
3158
  onSome: succeed6
3306
3159
  })), mapError2(() => new QuitError({}))));
3307
3160
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3312,7 +3165,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3312
3165
  cause: err
3313
3166
  }))));
3314
3167
  }));
3315
- return make25({
3168
+ return make24({
3316
3169
  columns,
3317
3170
  rows,
3318
3171
  size,
@@ -3321,7 +3174,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3321
3174
  display
3322
3175
  });
3323
3176
  });
3324
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3177
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3325
3178
  function defaultShouldQuit(input) {
3326
3179
  const key = input.key;
3327
3180
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3348,7 +3201,7 @@ function toDate(input) {
3348
3201
  return toDateUtc2(makeUnsafe(input));
3349
3202
  }
3350
3203
  function parseDate(input) {
3351
- return getOrUndefined(map4(make19(input), toDateUtc2));
3204
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3352
3205
  }
3353
3206
  function toIso(input) {
3354
3207
  return formatIso(makeUnsafe(input));
@@ -7671,6 +7524,14 @@ var RunList = Struct({
7671
7524
  items: ArraySchema(RunListItem),
7672
7525
  next: optionalKey(String4)
7673
7526
  });
7527
+ var LatestLoopRuns = Struct({
7528
+ items: ArraySchema(Struct({
7529
+ loopId: String4,
7530
+ runId: Id,
7531
+ createdAt: Timestamp,
7532
+ startedAt: optionalKey(Timestamp)
7533
+ }))
7534
+ });
7674
7535
  var RunWaitUntils = ["attention", "finished"];
7675
7536
  var RunWaitReasons = ["question", "completed", "failed", "stopped", "timeout"];
7676
7537
  var RunWaitResult = Struct({
@@ -10956,11 +10817,11 @@ var TranscriptSearchResult = Struct({
10956
10817
  total: Int
10957
10818
  });
10958
10819
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10959
- var TypeId9 = "~effect/http/HttpBody";
10820
+ var TypeId8 = "~effect/http/HttpBody";
10960
10821
  class Proto5 {
10961
- [TypeId9];
10822
+ [TypeId8];
10962
10823
  constructor() {
10963
- this[TypeId9] = TypeId9;
10824
+ this[TypeId8] = TypeId8;
10964
10825
  }
10965
10826
  [NodeInspectSymbol]() {
10966
10827
  return this.toJSON();
@@ -11051,7 +10912,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11051
10912
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11052
10913
 
11053
10914
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11054
- var TypeId10 = "~effect/http/HttpClientError";
10915
+ var TypeId9 = "~effect/http/HttpClientError";
11055
10916
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11056
10917
  constructor(props) {
11057
10918
  if ("cause" in props.reason) {
@@ -11063,7 +10924,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11063
10924
  super(props);
11064
10925
  }
11065
10926
  }
11066
- [TypeId10] = TypeId10;
10927
+ [TypeId9] = TypeId9;
11067
10928
  get request() {
11068
10929
  return this.reason.request;
11069
10930
  }
@@ -11167,7 +11028,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11167
11028
  }
11168
11029
  }
11169
11030
 
11170
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11031
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11171
11032
  _tag: /* @__PURE__ */ tag("HttpError"),
11172
11033
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11173
11034
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11200,7 +11061,7 @@ var updateContentLength = (headers, body) => {
11200
11061
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11201
11062
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11202
11063
  }
11203
- var make27 = (url, params, hash) => try_({
11064
+ var make26 = (url, params, hash) => try_({
11204
11065
  try: () => {
11205
11066
  const urlInstance = new URL(url, baseUrl());
11206
11067
  for (let i = 0;i < params.params.length; i++) {
@@ -11231,10 +11092,10 @@ var baseUrl = () => {
11231
11092
  };
11232
11093
 
11233
11094
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11234
- var TypeId11 = "~effect/http/HttpClientRequest";
11235
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11095
+ var TypeId10 = "~effect/http/HttpClientRequest";
11096
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11236
11097
  var Proto6 = {
11237
- [TypeId11]: TypeId11,
11098
+ [TypeId10]: TypeId10,
11238
11099
  ...BaseProto,
11239
11100
  toJSON() {
11240
11101
  return {
@@ -11323,7 +11184,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11323
11184
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11324
11185
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11325
11186
  function toUrl(self) {
11326
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11187
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11327
11188
  if (isSuccess(r)) {
11328
11189
  return some(r.success);
11329
11190
  }
@@ -11331,7 +11192,7 @@ function toUrl(self) {
11331
11192
  }
11332
11193
 
11333
11194
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11334
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11195
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11335
11196
  var schemaBodyJson = (schema, options) => {
11336
11197
  const decode = decodeEffect(toCodecJson(schema));
11337
11198
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11350,7 +11211,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11350
11211
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11351
11212
 
11352
11213
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11353
- var TypeId13 = "~effect/http/HttpClientResponse";
11214
+ var TypeId12 = "~effect/http/HttpClientResponse";
11354
11215
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11355
11216
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11356
11217
  reason: new StatusCodeError({
@@ -11361,16 +11222,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11361
11222
  }));
11362
11223
 
11363
11224
  class WebHttpClientResponse extends Class {
11225
+ [TypeId11];
11364
11226
  [TypeId12];
11365
- [TypeId13];
11366
11227
  request;
11367
11228
  source;
11368
11229
  constructor(request, source) {
11369
11230
  super();
11370
11231
  this.request = request;
11371
11232
  this.source = source;
11233
+ this[TypeId11] = TypeId11;
11372
11234
  this[TypeId12] = TypeId12;
11373
- this[TypeId13] = TypeId13;
11374
11235
  }
11375
11236
  toJSON() {
11376
11237
  return inspect(this, {
@@ -11542,7 +11403,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11542
11403
  };
11543
11404
 
11544
11405
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11545
- var TypeId14 = "~effect/http/HttpClient";
11406
+ var TypeId13 = "~effect/http/HttpClient";
11546
11407
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11547
11408
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11548
11409
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11559,7 +11420,7 @@ var makeWith2 = (postprocess, preprocess) => {
11559
11420
  return self;
11560
11421
  };
11561
11422
  var Proto7 = {
11562
- [TypeId14]: TypeId14,
11423
+ [TypeId13]: TypeId13,
11563
11424
  pipe() {
11564
11425
  return pipeArguments(this, arguments);
11565
11426
  },
@@ -11573,10 +11434,10 @@ var Proto7 = {
11573
11434
  return this.execute(make5(fullMethod)(url, options));
11574
11435
  }]))
11575
11436
  };
11576
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11437
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11577
11438
  const scopedController = scopedRequests.get(request);
11578
11439
  const controller = scopedController ?? new AbortController;
11579
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11440
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11580
11441
  if (isFailure(urlResult)) {
11581
11442
  return fail7(new HttpClientError({
11582
11443
  reason: new InvalidUrlError({
@@ -11710,8 +11571,8 @@ class InterruptibleResponse {
11710
11571
  this.original = original;
11711
11572
  this.controller = controller;
11712
11573
  }
11713
- [TypeId13] = TypeId13;
11714
11574
  [TypeId12] = TypeId12;
11575
+ [TypeId11] = TypeId11;
11715
11576
  applyInterrupt(effect) {
11716
11577
  return suspend3(() => {
11717
11578
  responseRegistry.unregister(this.original);
@@ -11809,7 +11670,7 @@ var detectStreamBodySupport = () => {
11809
11670
  return false;
11810
11671
  }
11811
11672
  };
11812
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11673
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11813
11674
  if (request.headers.upgrade !== undefined) {
11814
11675
  return fail7(new HttpClientError({
11815
11676
  reason: new TransportError({
@@ -11900,10 +11761,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11900
11761
  });
11901
11762
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11902
11763
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11903
- var TypeId15 = "~effect/socket/Socket";
11764
+ var TypeId14 = "~effect/socket/Socket";
11904
11765
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11905
- var make29 = (options) => Socket.of({
11906
- [TypeId15]: TypeId15,
11766
+ var make28 = (options) => Socket.of({
11767
+ [TypeId14]: TypeId14,
11907
11768
  reader: options.reader,
11908
11769
  writer: options.writer
11909
11770
  });
@@ -12226,7 +12087,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12226
12087
  write,
12227
12088
  writeAll
12228
12089
  });
12229
- return succeed6(make29({
12090
+ return succeed6(make28({
12230
12091
  reader,
12231
12092
  writer
12232
12093
  }));
@@ -14272,6 +14133,9 @@ class KitmanEffectClient {
14272
14133
  listLatestTaskRuns(workspaceId, taskIds) {
14273
14134
  return this.request("listLatestTaskRuns", `/workspaces/${segment(workspaceId)}/task-runs${taskRunsQuery(taskIds)}`, { headers: this.headers() });
14274
14135
  }
14136
+ listLatestLoopRuns(workspaceId, options) {
14137
+ return this.request("listLatestLoopRuns", `/workspaces/${segment(workspaceId)}/loop-runs${latestLoopRunsQuery(options)}`, { headers: this.headers() });
14138
+ }
14275
14139
  readTranscript(runId, stepAttemptId, options = {}) {
14276
14140
  return this.request("readTranscript", `/runs/${segment(runId)}/step-attempts/${segment(stepAttemptId)}/transcript${transcriptQuery(options)}`, { headers: this.headers() });
14277
14141
  }
@@ -15029,6 +14893,9 @@ function scopeQuery(options) {
15029
14893
  function taskRunsQuery(taskIds) {
15030
14894
  return `?${new URLSearchParams({ taskIds: taskIds.join(",") }).toString()}`;
15031
14895
  }
14896
+ function latestLoopRunsQuery({ loops, teamId }) {
14897
+ return `?${new URLSearchParams({ loops: loops.join(","), ...teamId === undefined ? undefined : { teamId } }).toString()}`;
14898
+ }
15032
14899
  function inboxQuery(options) {
15033
14900
  return options.filter === undefined ? "" : `?${new URLSearchParams({ filter: options.filter }).toString()}`;
15034
14901
  }
@@ -15552,7 +15419,7 @@ function getStreamSchemas(schema) {
15552
15419
  }
15553
15420
  var schema = /* @__PURE__ */ declare(isStream);
15554
15421
  function Stream(success, error) {
15555
- return make16(schema.ast, {
15422
+ return make17(schema.ast, {
15556
15423
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15557
15424
  success,
15558
15425
  error
@@ -15560,9 +15427,9 @@ function Stream(success, error) {
15560
15427
  }
15561
15428
 
15562
15429
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15563
- var TypeId16 = "~effect/rpc/Rpc";
15430
+ var TypeId15 = "~effect/rpc/Rpc";
15564
15431
  var Proto8 = {
15565
- [TypeId16]: TypeId16,
15432
+ [TypeId15]: TypeId15,
15566
15433
  pipe() {
15567
15434
  return pipeArguments(this, arguments);
15568
15435
  },
@@ -15729,7 +15596,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15729
15596
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15730
15597
 
15731
15598
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15732
- var TypeId17 = "~effect/rpc/RpcClientError";
15599
+ var TypeId16 = "~effect/rpc/RpcClientError";
15733
15600
 
15734
15601
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15735
15602
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15738,11 +15605,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15738
15605
  })) {
15739
15606
  }
15740
15607
 
15741
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15608
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15742
15609
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15743
15610
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15744
15611
  })) {
15745
- [TypeId17] = TypeId17;
15612
+ [TypeId16] = TypeId16;
15746
15613
  get message() {
15747
15614
  return `${this.reason._tag}: ${this.reason.message}`;
15748
15615
  }
@@ -15862,7 +15729,7 @@ var RpcGroupProto = {
15862
15729
  });
15863
15730
  },
15864
15731
  annotateRpcs(service, value) {
15865
- return this.annotateRpcsMerge(make14(service, value));
15732
+ return this.annotateRpcsMerge(make15(service, value));
15866
15733
  },
15867
15734
  annotateMerge(context) {
15868
15735
  return makeProto2({
@@ -15890,7 +15757,7 @@ var make7 = (...rpcs) => makeProto2({
15890
15757
  annotations: empty3()
15891
15758
  });
15892
15759
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15893
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15760
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15894
15761
  var Service = () => (id, options) => {
15895
15762
  const limit = getStackTraceLimit();
15896
15763
  let creationError;
@@ -15908,7 +15775,7 @@ var Service = () => (id, options) => {
15908
15775
  return creationError?.stack;
15909
15776
  }
15910
15777
  });
15911
- ServiceClass_[TypeId18] = TypeId18;
15778
+ ServiceClass_[TypeId17] = TypeId17;
15912
15779
  ServiceClass_.error = options?.error ?? Never;
15913
15780
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15914
15781
  return ServiceClass;
@@ -16651,7 +16518,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16651
16518
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16652
16519
 
16653
16520
  // apps/cli/src/oauth.ts
16654
- var Scope2 = "openid profile email offline_access kitman:cli";
16521
+ var Scope = "openid profile email offline_access kitman:cli";
16655
16522
  var CallbackPath = "/auth/callback";
16656
16523
 
16657
16524
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16670,7 +16537,7 @@ function buildAuthorizeUrl(input) {
16670
16537
  url.searchParams.set("response_type", "code");
16671
16538
  url.searchParams.set("client_id", input.clientId);
16672
16539
  url.searchParams.set("redirect_uri", input.redirectUri);
16673
- url.searchParams.set("scope", Scope2);
16540
+ url.searchParams.set("scope", Scope);
16674
16541
  url.searchParams.set("code_challenge", input.codeChallenge);
16675
16542
  url.searchParams.set("code_challenge_method", "S256");
16676
16543
  url.searchParams.set("state", input.state);
@@ -16730,7 +16597,7 @@ function toStoredSession(token, existingRefreshToken) {
16730
16597
  }
16731
16598
  function startLoopbackServer(input) {
16732
16599
  return gen(function* () {
16733
- const code = yield* make15();
16600
+ const code = yield* make16();
16734
16601
  const context2 = yield* context();
16735
16602
  const runSyncExit = runSyncExitWith(context2);
16736
16603
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17278,7 +17145,7 @@ var openConnection = (transport) => gen(function* () {
17278
17145
  let lastId = 0;
17279
17146
  let lost = false;
17280
17147
  const notifications = yield* unbounded2();
17281
- const ended = yield* make15();
17148
+ const ended = yield* make16();
17282
17149
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17283
17150
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17284
17151
  onNone: () => void_3,
@@ -17305,7 +17172,7 @@ var openConnection = (transport) => gen(function* () {
17305
17172
  if (lost)
17306
17173
  return yield* new HerdrCoreConnectionLost2({ method });
17307
17174
  const id = ++lastId;
17308
- const deferred = yield* make15();
17175
+ const deferred = yield* make16();
17309
17176
  pending.set(id, { method, deferred });
17310
17177
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17311
17178
  return yield* _await(deferred);
@@ -17379,7 +17246,7 @@ var herdrCoreOver = (transport) => ({
17379
17246
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17380
17247
  };
17381
17248
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17382
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17249
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17383
17250
  }))
17384
17251
  });
17385
17252
  var spawnedTransport = (env) => gen(function* () {
@@ -17470,7 +17337,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17470
17337
  const spawner = yield* ChildProcessSpawner;
17471
17338
  const [command, ...args] = argv;
17472
17339
  const handle = yield* spawner.spawn(make3(command, args, {
17473
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17340
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17474
17341
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17475
17342
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17476
17343
  }));