@kitman-sh/cli 0.19.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-am57a75e.js → chunk-0j884359.js} +3 -3
  2. package/dist/{chunk-bevxc9rx.js → chunk-0v70erwa.js} +7 -7
  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-t5gb7bqv.js → chunk-746tbgvb.js} +30 -30
  6. package/dist/{chunk-2dhhyy04.js → chunk-7re3n1ze.js} +5 -5
  7. package/dist/{chunk-kx00yd3c.js → chunk-7swf974v.js} +9 -9
  8. package/dist/{chunk-zb8mwx3s.js → chunk-7vngg2n8.js} +17 -17
  9. package/dist/{chunk-khn17hdn.js → chunk-8t2wcrvv.js} +2 -2
  10. package/dist/{chunk-2y646fhs.js → chunk-atswrrsb.js} +18 -18
  11. package/dist/{chunk-t6y0c0ds.js → chunk-bsgvmq34.js} +2 -2
  12. package/dist/{chunk-e863b7v1.js → chunk-d1826dj4.js} +130 -268
  13. package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
  14. package/dist/{chunk-w9mxqrsp.js → chunk-j4b1yvcd.js} +177 -34
  15. package/dist/{chunk-y4nrvwgy.js → chunk-js28a12p.js} +4 -4
  16. package/dist/{chunk-3gmqn9yp.js → chunk-kw46ktwg.js} +4 -4
  17. package/dist/{chunk-hrdh72c7.js → chunk-mqs553x5.js} +35 -22
  18. package/dist/{chunk-9cj8g584.js → chunk-npfdbssf.js} +4 -4
  19. package/dist/{chunk-gqcz0d3j.js → chunk-pr7wx6vh.js} +2 -2
  20. package/dist/{chunk-4rq880g6.js → chunk-remt6mfx.js} +6 -6
  21. package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
  22. package/dist/{chunk-36dejya4.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-0sbd6e4d.js → chunk-wmf3hq5w.js} +20 -20
  26. package/dist/{chunk-qp3kqaw1.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,
@@ -86,14 +84,14 @@ import {
86
84
  DisablePropagation,
87
85
  sync,
88
86
  map7,
87
+ ClockRef,
88
+ currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
- void_2,
93
92
  isSuccess2,
94
- isFailure2,
95
93
  makeUnsafe5,
96
- make15,
94
+ make16,
97
95
  _await,
98
96
  fail5,
99
97
  isDone,
@@ -101,12 +99,8 @@ import {
101
99
  succeed4,
102
100
  doneUnsafe,
103
101
  TracerTimingEnabled,
104
- Scope,
105
- makeUnsafe6,
106
102
  provide,
107
- addFinalizerExit,
108
103
  addFinalizer,
109
- close,
110
104
  succeed5,
111
105
  effect,
112
106
  effectContext,
@@ -158,7 +152,6 @@ import {
158
152
  tapCause,
159
153
  retry,
160
154
  ignore,
161
- ignoreCause,
162
155
  orElseSucceed,
163
156
  timeout,
164
157
  timeoutOrElse,
@@ -170,7 +163,6 @@ import {
170
163
  context,
171
164
  contextWith,
172
165
  provide3,
173
- provideContext2,
174
166
  serviceOption,
175
167
  updateContext,
176
168
  provideService,
@@ -181,7 +173,6 @@ import {
181
173
  addFinalizer2,
182
174
  ensuring2,
183
175
  onError,
184
- onExit,
185
176
  cached,
186
177
  interrupt3,
187
178
  interruptible,
@@ -193,7 +184,6 @@ import {
193
184
  withParentSpan,
194
185
  forkScoped,
195
186
  runFork,
196
- runForkWith,
197
187
  runPromise,
198
188
  runPromiseWith,
199
189
  runSync,
@@ -213,7 +203,7 @@ import {
213
203
  decodeEffect,
214
204
  decodeUnknownOption,
215
205
  decodeOption,
216
- make16,
206
+ make17,
217
207
  isSchema,
218
208
  optionalKey,
219
209
  optional,
@@ -274,17 +264,11 @@ import {
274
264
  decodeJsonStringOption,
275
265
  encodeJsonStringSync,
276
266
  encodePrettyJsonString
277
- } from "./chunk-ew07nt2d.js";
267
+ } from "./chunk-h2f26xbd.js";
278
268
  import {
279
269
  map,
280
270
  makeEquivalence,
281
- Clock,
282
- currentTimeMillis,
283
271
  bytes,
284
- join,
285
- interrupt,
286
- getCurrent,
287
- runIn,
288
272
  BadArgument,
289
273
  systemError,
290
274
  badArgument,
@@ -306,11 +290,13 @@ import {
306
290
  isSink,
307
291
  fromChannel,
308
292
  drain,
293
+ make10,
294
+ get3,
309
295
  isStream,
310
296
  fromChannel2,
311
297
  callback,
312
298
  empty2,
313
- make10,
299
+ make11,
314
300
  suspend,
315
301
  fail2,
316
302
  fromQueue,
@@ -336,17 +322,17 @@ import {
336
322
  mkArrayBuffer,
337
323
  toReadableStreamEffect,
338
324
  FileSystem,
339
- make11,
325
+ make12,
340
326
  FileTypeId,
341
327
  WatchBackend,
342
328
  Path,
343
- make12,
329
+ make13,
344
330
  option,
345
331
  String2,
346
332
  optionalEnv,
347
333
  harnessesUnsupportedInSrt2,
348
334
  harnessesUnsupportedInDocker2
349
- } from "./chunk-w9mxqrsp.js";
335
+ } from "./chunk-j4b1yvcd.js";
350
336
  import {
351
337
  isRedacted,
352
338
  make,
@@ -360,7 +346,7 @@ import {
360
346
  make3,
361
347
  parseFdName,
362
348
  fdName
363
- } from "./chunk-t6y0c0ds.js";
349
+ } from "./chunk-bsgvmq34.js";
364
350
  import {
365
351
  isDateTime,
366
352
  Numeric,
@@ -373,11 +359,15 @@ import {
373
359
  SecretScope,
374
360
  SecretHosts,
375
361
  isSecretReference
376
- } from "./chunk-qvpkwnky.js";
362
+ } from "./chunk-4qjfn1sa.js";
377
363
 
378
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
365
  var makeEquivalence3 = Tuple;
380
366
 
367
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
368
+ var Clock = ClockRef;
369
+ var currentTimeMillis = currentTimeMillis2;
370
+
381
371
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
382
372
  var TypeId = "~effect/DateTime";
383
373
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -512,7 +502,7 @@ var fromDateUnsafe = (date) => {
512
502
  }
513
503
  return makeUtc(epochMillis);
514
504
  };
515
- var makeUnsafe7 = (input) => {
505
+ var makeUnsafe6 = (input) => {
516
506
  if (isDateTime2(input)) {
517
507
  return input;
518
508
  } else if (input instanceof Date) {
@@ -532,7 +522,7 @@ var makeUnsafe7 = (input) => {
532
522
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
533
523
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
534
524
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
535
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
525
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
536
526
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
537
527
  var nowUnsafe = () => makeUtc(Date.now());
538
528
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -639,7 +629,7 @@ class Metric$ {
639
629
  }
640
630
  hook(context) {
641
631
  const key = this.key(context);
642
- const registry = get3(context, MetricRegistry);
632
+ const registry = get4(context, MetricRegistry);
643
633
  let metadata = registry.get(key);
644
634
  if (isUndefined(metadata)) {
645
635
  metadata = this.metadata(this.createHooks());
@@ -648,11 +638,11 @@ class Metric$ {
648
638
  return metadata.hooks;
649
639
  }
650
640
  removeUnsafe(context) {
651
- get3(context, MetricRegistry).delete(this.key(context));
641
+ get4(context, MetricRegistry).delete(this.key(context));
652
642
  }
653
643
  registerUnsafe(context, hooks) {
654
644
  const key = this.key(context);
655
- const registry = get3(context, MetricRegistry);
645
+ const registry = get4(context, MetricRegistry);
656
646
  const metadata = this.metadata({
657
647
  get: hooks.get,
658
648
  update: constVoid,
@@ -668,7 +658,7 @@ class Metric$ {
668
658
  };
669
659
  }
670
660
  key(context) {
671
- const extraAttributes = get3(context, CurrentMetricAttributes);
661
+ const extraAttributes = get4(context, CurrentMetricAttributes);
672
662
  if (extraAttributes !== this.#extraAttributes) {
673
663
  this.#extraAttributes = extraAttributes;
674
664
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -920,151 +910,9 @@ var toNumber = (b) => {
920
910
  return some(Number(b));
921
911
  };
922
912
 
923
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
924
- var TypeId3 = "~effect/RcRef";
925
- var stateEmpty = {
926
- _tag: "Empty"
927
- };
928
- var stateClosed = {
929
- _tag: "Closed"
930
- };
931
- var variance = {
932
- _A: identity,
933
- _E: identity
934
- };
935
-
936
- class RcRefImpl {
937
- [TypeId3] = variance;
938
- pipe() {
939
- return pipeArguments(this, arguments);
940
- }
941
- state = stateEmpty;
942
- acquire;
943
- context;
944
- scope;
945
- idleTimeToLive;
946
- constructor(acquire, context, scope, idleTimeToLive) {
947
- this.acquire = acquire;
948
- this.context = context;
949
- this.scope = scope;
950
- this.idleTimeToLive = idleTimeToLive;
951
- }
952
- }
953
- var make17 = (options) => withFiber2((fiber) => {
954
- const context = fiber.context;
955
- const scope = get3(context, Scope);
956
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
957
- return as(addFinalizerExit(scope, () => {
958
- const state = ref.state;
959
- ref.state = stateClosed;
960
- if (state._tag === "Acquired")
961
- return close(state.scope, void_2);
962
- if (state._tag === "Acquiring")
963
- return interrupt(state.fiber);
964
- return void_3;
965
- }), ref);
966
- });
967
- var getState = (self, restore) => {
968
- switch (self.state._tag) {
969
- case "Closed": {
970
- return interrupt3;
971
- }
972
- case "Acquired": {
973
- const state = self.state;
974
- state.refCount++;
975
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
976
- }
977
- case "Acquiring": {
978
- const state = self.state;
979
- state.awaiters++;
980
- return awaitAcquiring(self, state, restore);
981
- }
982
- case "Empty": {
983
- const acquiring = {
984
- _tag: "Acquiring",
985
- fiber: undefined,
986
- awaiters: 1,
987
- acquired: undefined
988
- };
989
- self.state = acquiring;
990
- const scope = makeUnsafe6();
991
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
992
- if (self.state !== acquiring) {
993
- return interrupt3;
994
- }
995
- const state = {
996
- _tag: "Acquired",
997
- value,
998
- scope,
999
- fiber: undefined,
1000
- refCount: acquiring.awaiters,
1001
- invalidated: false
1002
- };
1003
- self.state = state;
1004
- acquiring.acquired = state;
1005
- return succeed6(state);
1006
- }), onExit((exit) => {
1007
- if (isSuccess2(exit))
1008
- return void_3;
1009
- if (self.state === acquiring)
1010
- self.state = stateEmpty;
1011
- return close(scope, exit);
1012
- }));
1013
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1014
- return awaitAcquiring(self, acquiring, restore);
1015
- }
1016
- }
1017
- };
1018
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1019
- const acquired = acquiring.acquired;
1020
- if (acquired !== undefined) {
1021
- return isFailure2(exit) ? release(self, acquired) : void_3;
1022
- }
1023
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1024
- return void_3;
1025
- self.state = stateEmpty;
1026
- return interrupt(acquiring.fiber);
1027
- });
1028
- var get4 = (self_) => {
1029
- const self = self_;
1030
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1031
- };
1032
- var release = (self, state) => {
1033
- state.refCount--;
1034
- if (state.refCount > 0) {
1035
- return void_3;
1036
- }
1037
- const idleTimeToLive = self.idleTimeToLive;
1038
- if (idleTimeToLive === undefined || state.invalidated) {
1039
- if (self.state === state) {
1040
- self.state = stateEmpty;
1041
- }
1042
- return close(state.scope, void_2);
1043
- } else if (!isFinite(idleTimeToLive)) {
1044
- return void_3;
1045
- }
1046
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1047
- if (self.state === state && state.refCount === 0) {
1048
- self.state = stateEmpty;
1049
- return ignoreCause(close(state.scope, void_2), {
1050
- log: "Unhandled",
1051
- message: "Unhandled error in RcRef finalizer"
1052
- });
1053
- }
1054
- return void_3;
1055
- })).pipe(ensuring2(sync2(() => {
1056
- state.fiber = undefined;
1057
- })), runForkWith(self.context), runIn(self.scope));
1058
- return void_3;
1059
- };
1060
-
1061
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1062
- var make18 = make17;
1063
- var get5 = get4;
1064
-
1065
913
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1066
- var makeUnsafe = makeUnsafe7;
1067
- var make19 = make4;
914
+ var makeUnsafe = makeUnsafe6;
915
+ var make18 = make4;
1068
916
  var now2 = now;
1069
917
  var nowUnsafe2 = nowUnsafe;
1070
918
  var toDateUtc2 = toDateUtc;
@@ -1383,7 +1231,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1383
1231
  windowsHide: true
1384
1232
  }, onExit);
1385
1233
  };
1386
- var make20 = /* @__PURE__ */ gen(function* () {
1234
+ var make19 = /* @__PURE__ */ gen(function* () {
1387
1235
  const fs = yield* FileSystem;
1388
1236
  const path = yield* Path;
1389
1237
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1912,7 +1760,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1912
1760
  });
1913
1761
  return make2(spawnCommand);
1914
1762
  });
1915
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1763
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1916
1764
  var flattenCommand = (command) => {
1917
1765
  const commands = [];
1918
1766
  const pipeOptions = [];
@@ -2396,7 +2244,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2396
2244
  resume(fail7(handleBadArgument("writeFile")(err)));
2397
2245
  }
2398
2246
  });
2399
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2247
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2400
2248
  access: access2,
2401
2249
  chmod: chmod2,
2402
2250
  chown: chown2,
@@ -2456,15 +2304,15 @@ var fileUrlOps = (windows) => ({
2456
2304
  })
2457
2305
  })
2458
2306
  });
2459
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2460
2308
  ...NodePath.posix,
2461
2309
  .../* @__PURE__ */ fileUrlOps(false)
2462
2310
  }));
2463
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2311
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2464
2312
  ...NodePath.win32,
2465
2313
  .../* @__PURE__ */ fileUrlOps(true)
2466
2314
  }));
2467
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2315
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2468
2316
  ...NodePath,
2469
2317
  .../* @__PURE__ */ fileUrlOps(undefined)
2470
2318
  }));
@@ -2473,10 +2321,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2473
2321
  var layer2 = layer7;
2474
2322
 
2475
2323
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2476
- var TypeId4 = "~effect/Stdio";
2477
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2478
- var make21 = (options) => ({
2479
- [TypeId4]: TypeId4,
2324
+ var TypeId3 = "~effect/Stdio";
2325
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2326
+ var make20 = (options) => ({
2327
+ [TypeId3]: TypeId3,
2480
2328
  stdinIsTerminal: succeed6(false),
2481
2329
  stdoutIsTerminal: succeed6(false),
2482
2330
  stderrIsTerminal: succeed6(false),
@@ -2484,7 +2332,7 @@ var make21 = (options) => ({
2484
2332
  });
2485
2333
 
2486
2334
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2487
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2335
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2488
2336
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2489
2337
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2490
2338
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2684,7 +2532,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2684
2532
  const uuid = bytes(randomBytes(16));
2685
2533
  return format === "bytes" ? uuid : stringify(uuid);
2686
2534
  };
2687
- var make22 = (randomBytes) => {
2535
+ var make21 = (randomBytes) => {
2688
2536
  const randomBytesChecked = (size) => {
2689
2537
  checkSize(size);
2690
2538
  return randomBytes(size);
@@ -2718,7 +2566,7 @@ var fillRandom = (crypto2, size) => {
2718
2566
  }
2719
2567
  return bytes;
2720
2568
  };
2721
- 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)))));
2722
2570
  var randomBytesUnsafe = (size) => {
2723
2571
  checkSize(size);
2724
2572
  return fillRandom(globalThis.crypto, size);
@@ -2726,10 +2574,10 @@ var randomBytesUnsafe = (size) => {
2726
2574
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2727
2575
 
2728
2576
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2729
- var TypeId5 = "~effect/http/Cookies";
2577
+ var TypeId4 = "~effect/http/Cookies";
2730
2578
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2731
2579
  var Proto2 = {
2732
- [TypeId5]: TypeId5,
2580
+ [TypeId4]: TypeId4,
2733
2581
  ...BaseProto,
2734
2582
  toJSON() {
2735
2583
  return {
@@ -2908,14 +2756,14 @@ var tryDecodeURIComponent = (str) => {
2908
2756
  };
2909
2757
 
2910
2758
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2911
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2759
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2912
2760
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2913
- [TypeId6]: {
2914
- value: TypeId6
2761
+ [TypeId5]: {
2762
+ value: TypeId5
2915
2763
  },
2916
2764
  [symbolRedactable]: {
2917
2765
  value(context) {
2918
- return redact2(this, get3(context, CurrentRedactedNames));
2766
+ return redact2(this, get4(context, CurrentRedactedNames));
2919
2767
  }
2920
2768
  },
2921
2769
  toJSON: {
@@ -2940,7 +2788,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2940
2788
  value: BaseProto[NodeInspectSymbol]
2941
2789
  }
2942
2790
  });
2943
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2791
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2944
2792
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2945
2793
  var empty = /* @__PURE__ */ Object.create(Proto3);
2946
2794
  var fromInput = (input) => {
@@ -2965,21 +2813,21 @@ var fromInput = (input) => {
2965
2813
  };
2966
2814
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2967
2815
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2968
- const out = make23(self);
2816
+ const out = make22(self);
2969
2817
  out[key.toLowerCase()] = value;
2970
2818
  return out;
2971
2819
  });
2972
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2820
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2973
2821
  ...self,
2974
2822
  ...fromInput(headers)
2975
2823
  }));
2976
2824
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2977
- const out = make23(self);
2825
+ const out = make22(self);
2978
2826
  Object.assign(out, headers);
2979
2827
  return out;
2980
2828
  });
2981
2829
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2982
- const out = make23(self);
2830
+ const out = make22(self);
2983
2831
  delete out[key.toLowerCase()];
2984
2832
  return out;
2985
2833
  });
@@ -3036,18 +2884,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3036
2884
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3037
2885
 
3038
2886
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3039
- var TypeId7 = "~effect/http/UrlParams";
3040
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2887
+ var TypeId6 = "~effect/http/UrlParams";
2888
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3041
2889
  var Proto4 = {
3042
2890
  ...PipeInspectableProto,
3043
- [TypeId7]: TypeId7,
2891
+ [TypeId6]: TypeId6,
3044
2892
  [Symbol.iterator]() {
3045
2893
  return this.params[Symbol.iterator]();
3046
2894
  },
3047
2895
  [symbolRedactable](context) {
3048
2896
  return {
3049
2897
  _id: "UrlParams",
3050
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2898
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3051
2899
  };
3052
2900
  },
3053
2901
  toJSON() {
@@ -3060,7 +2908,7 @@ var Proto4 = {
3060
2908
  return array(this.params.flat());
3061
2909
  }
3062
2910
  };
3063
- var make24 = (params) => {
2911
+ var make23 = (params) => {
3064
2912
  const self = Object.create(Proto4);
3065
2913
  self.params = params;
3066
2914
  return self;
@@ -3079,7 +2927,7 @@ var fromInput2 = (input) => {
3079
2927
  out.push(parsed[i]);
3080
2928
  }
3081
2929
  }
3082
- return make24(out);
2930
+ return make23(out);
3083
2931
  };
3084
2932
  var fromInputNested = (input) => {
3085
2933
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3103,9 +2951,9 @@ var fromInputNested = (input) => {
3103
2951
  return out;
3104
2952
  };
3105
2953
  var coerce = (value) => isRedacted(value) ? value : String(value);
3106
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2954
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3107
2955
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3108
- var empty4 = /* @__PURE__ */ make24([]);
2956
+ var empty4 = /* @__PURE__ */ make23([]);
3109
2957
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3110
2958
  const params = fromInput2(input).params.slice();
3111
2959
  const keys = new Set;
@@ -3117,7 +2965,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3117
2965
  continue;
3118
2966
  params.push(self.params[i]);
3119
2967
  }
3120
- return make24(params);
2968
+ return make23(params);
3121
2969
  });
3122
2970
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3123
2971
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3173,13 +3021,13 @@ var decodeQueryKey = (key) => {
3173
3021
  return key;
3174
3022
  }
3175
3023
  };
3176
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3024
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3177
3025
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3178
3026
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3179
3027
  });
3180
3028
 
3181
3029
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3182
- var TypeId8 = "~effect/Terminal";
3030
+ var TypeId7 = "~effect/Terminal";
3183
3031
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3184
3032
 
3185
3033
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3188,14 +3036,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3188
3036
  [QuitErrorTypeId] = QuitErrorTypeId;
3189
3037
  }
3190
3038
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3191
- var make25 = (impl) => Terminal.of({
3039
+ var make24 = (impl) => Terminal.of({
3192
3040
  ...impl,
3193
- [TypeId8]: TypeId8
3041
+ [TypeId7]: TypeId7
3194
3042
  });
3195
3043
 
3196
3044
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3197
3045
  import * as readline from "readline";
3198
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3046
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3199
3047
  const stdin = process.stdin;
3200
3048
  const stdout = process.stdout;
3201
3049
  const lines = yield* make9();
@@ -3209,7 +3057,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3209
3057
  };
3210
3058
  stdin.once("end", onStdinEnd);
3211
3059
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3212
- const rlRef = yield* make18({
3060
+ const rlRef = yield* make10({
3213
3061
  acquire: acquireRelease(sync2(() => {
3214
3062
  const rl = readline.createInterface({
3215
3063
  input: stdin,
@@ -3248,7 +3096,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3248
3096
  if (stdin.isTTY)
3249
3097
  stdin.setRawMode(enabled);
3250
3098
  });
3251
- const rawModeRef = yield* make18({
3099
+ const rawModeRef = yield* make10({
3252
3100
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3253
3101
  idleTimeToLive: "10 millis"
3254
3102
  });
@@ -3299,14 +3147,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3299
3147
  if (inputEnded) {
3300
3148
  handleEnd();
3301
3149
  } else {
3302
- yield* get5(rlRef);
3303
- yield* get5(rawModeRef);
3150
+ yield* get3(rlRef);
3151
+ yield* get3(rawModeRef);
3304
3152
  stdin.once("end", handleEnd);
3305
3153
  }
3306
3154
  return queue;
3307
3155
  });
3308
3156
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3309
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3157
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3310
3158
  onSome: succeed6
3311
3159
  })), mapError2(() => new QuitError({}))));
3312
3160
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3317,7 +3165,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3317
3165
  cause: err
3318
3166
  }))));
3319
3167
  }));
3320
- return make25({
3168
+ return make24({
3321
3169
  columns,
3322
3170
  rows,
3323
3171
  size,
@@ -3326,7 +3174,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3326
3174
  display
3327
3175
  });
3328
3176
  });
3329
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3177
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3330
3178
  function defaultShouldQuit(input) {
3331
3179
  const key = input.key;
3332
3180
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3353,7 +3201,7 @@ function toDate(input) {
3353
3201
  return toDateUtc2(makeUnsafe(input));
3354
3202
  }
3355
3203
  function parseDate(input) {
3356
- return getOrUndefined(map4(make19(input), toDateUtc2));
3204
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3357
3205
  }
3358
3206
  function toIso(input) {
3359
3207
  return formatIso(makeUnsafe(input));
@@ -7676,6 +7524,14 @@ var RunList = Struct({
7676
7524
  items: ArraySchema(RunListItem),
7677
7525
  next: optionalKey(String4)
7678
7526
  });
7527
+ var LatestLoopRuns = Struct({
7528
+ items: ArraySchema(Struct({
7529
+ loopId: String4,
7530
+ runId: Id,
7531
+ createdAt: Timestamp,
7532
+ startedAt: optionalKey(Timestamp)
7533
+ }))
7534
+ });
7679
7535
  var RunWaitUntils = ["attention", "finished"];
7680
7536
  var RunWaitReasons = ["question", "completed", "failed", "stopped", "timeout"];
7681
7537
  var RunWaitResult = Struct({
@@ -10961,11 +10817,11 @@ var TranscriptSearchResult = Struct({
10961
10817
  total: Int
10962
10818
  });
10963
10819
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10964
- var TypeId9 = "~effect/http/HttpBody";
10820
+ var TypeId8 = "~effect/http/HttpBody";
10965
10821
  class Proto5 {
10966
- [TypeId9];
10822
+ [TypeId8];
10967
10823
  constructor() {
10968
- this[TypeId9] = TypeId9;
10824
+ this[TypeId8] = TypeId8;
10969
10825
  }
10970
10826
  [NodeInspectSymbol]() {
10971
10827
  return this.toJSON();
@@ -11056,7 +10912,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11056
10912
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11057
10913
 
11058
10914
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11059
- var TypeId10 = "~effect/http/HttpClientError";
10915
+ var TypeId9 = "~effect/http/HttpClientError";
11060
10916
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11061
10917
  constructor(props) {
11062
10918
  if ("cause" in props.reason) {
@@ -11068,7 +10924,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11068
10924
  super(props);
11069
10925
  }
11070
10926
  }
11071
- [TypeId10] = TypeId10;
10927
+ [TypeId9] = TypeId9;
11072
10928
  get request() {
11073
10929
  return this.reason.request;
11074
10930
  }
@@ -11172,7 +11028,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11172
11028
  }
11173
11029
  }
11174
11030
 
11175
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11031
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11176
11032
  _tag: /* @__PURE__ */ tag("HttpError"),
11177
11033
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11178
11034
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11205,7 +11061,7 @@ var updateContentLength = (headers, body) => {
11205
11061
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11206
11062
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11207
11063
  }
11208
- var make27 = (url, params, hash) => try_({
11064
+ var make26 = (url, params, hash) => try_({
11209
11065
  try: () => {
11210
11066
  const urlInstance = new URL(url, baseUrl());
11211
11067
  for (let i = 0;i < params.params.length; i++) {
@@ -11236,10 +11092,10 @@ var baseUrl = () => {
11236
11092
  };
11237
11093
 
11238
11094
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11239
- var TypeId11 = "~effect/http/HttpClientRequest";
11240
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11095
+ var TypeId10 = "~effect/http/HttpClientRequest";
11096
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11241
11097
  var Proto6 = {
11242
- [TypeId11]: TypeId11,
11098
+ [TypeId10]: TypeId10,
11243
11099
  ...BaseProto,
11244
11100
  toJSON() {
11245
11101
  return {
@@ -11328,7 +11184,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11328
11184
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11329
11185
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11330
11186
  function toUrl(self) {
11331
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11187
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11332
11188
  if (isSuccess(r)) {
11333
11189
  return some(r.success);
11334
11190
  }
@@ -11336,7 +11192,7 @@ function toUrl(self) {
11336
11192
  }
11337
11193
 
11338
11194
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11339
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11195
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11340
11196
  var schemaBodyJson = (schema, options) => {
11341
11197
  const decode = decodeEffect(toCodecJson(schema));
11342
11198
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11355,7 +11211,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11355
11211
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11356
11212
 
11357
11213
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11358
- var TypeId13 = "~effect/http/HttpClientResponse";
11214
+ var TypeId12 = "~effect/http/HttpClientResponse";
11359
11215
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11360
11216
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11361
11217
  reason: new StatusCodeError({
@@ -11366,16 +11222,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11366
11222
  }));
11367
11223
 
11368
11224
  class WebHttpClientResponse extends Class {
11225
+ [TypeId11];
11369
11226
  [TypeId12];
11370
- [TypeId13];
11371
11227
  request;
11372
11228
  source;
11373
11229
  constructor(request, source) {
11374
11230
  super();
11375
11231
  this.request = request;
11376
11232
  this.source = source;
11233
+ this[TypeId11] = TypeId11;
11377
11234
  this[TypeId12] = TypeId12;
11378
- this[TypeId13] = TypeId13;
11379
11235
  }
11380
11236
  toJSON() {
11381
11237
  return inspect(this, {
@@ -11547,7 +11403,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11547
11403
  };
11548
11404
 
11549
11405
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11550
- var TypeId14 = "~effect/http/HttpClient";
11406
+ var TypeId13 = "~effect/http/HttpClient";
11551
11407
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11552
11408
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11553
11409
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11564,7 +11420,7 @@ var makeWith2 = (postprocess, preprocess) => {
11564
11420
  return self;
11565
11421
  };
11566
11422
  var Proto7 = {
11567
- [TypeId14]: TypeId14,
11423
+ [TypeId13]: TypeId13,
11568
11424
  pipe() {
11569
11425
  return pipeArguments(this, arguments);
11570
11426
  },
@@ -11578,10 +11434,10 @@ var Proto7 = {
11578
11434
  return this.execute(make5(fullMethod)(url, options));
11579
11435
  }]))
11580
11436
  };
11581
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11437
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11582
11438
  const scopedController = scopedRequests.get(request);
11583
11439
  const controller = scopedController ?? new AbortController;
11584
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11440
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11585
11441
  if (isFailure(urlResult)) {
11586
11442
  return fail7(new HttpClientError({
11587
11443
  reason: new InvalidUrlError({
@@ -11715,8 +11571,8 @@ class InterruptibleResponse {
11715
11571
  this.original = original;
11716
11572
  this.controller = controller;
11717
11573
  }
11718
- [TypeId13] = TypeId13;
11719
11574
  [TypeId12] = TypeId12;
11575
+ [TypeId11] = TypeId11;
11720
11576
  applyInterrupt(effect) {
11721
11577
  return suspend3(() => {
11722
11578
  responseRegistry.unregister(this.original);
@@ -11814,7 +11670,7 @@ var detectStreamBodySupport = () => {
11814
11670
  return false;
11815
11671
  }
11816
11672
  };
11817
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11673
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11818
11674
  if (request.headers.upgrade !== undefined) {
11819
11675
  return fail7(new HttpClientError({
11820
11676
  reason: new TransportError({
@@ -11905,10 +11761,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11905
11761
  });
11906
11762
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11907
11763
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11908
- var TypeId15 = "~effect/socket/Socket";
11764
+ var TypeId14 = "~effect/socket/Socket";
11909
11765
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11910
- var make29 = (options) => Socket.of({
11911
- [TypeId15]: TypeId15,
11766
+ var make28 = (options) => Socket.of({
11767
+ [TypeId14]: TypeId14,
11912
11768
  reader: options.reader,
11913
11769
  writer: options.writer
11914
11770
  });
@@ -12231,7 +12087,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12231
12087
  write,
12232
12088
  writeAll
12233
12089
  });
12234
- return succeed6(make29({
12090
+ return succeed6(make28({
12235
12091
  reader,
12236
12092
  writer
12237
12093
  }));
@@ -14277,6 +14133,9 @@ class KitmanEffectClient {
14277
14133
  listLatestTaskRuns(workspaceId, taskIds) {
14278
14134
  return this.request("listLatestTaskRuns", `/workspaces/${segment(workspaceId)}/task-runs${taskRunsQuery(taskIds)}`, { headers: this.headers() });
14279
14135
  }
14136
+ listLatestLoopRuns(workspaceId, options) {
14137
+ return this.request("listLatestLoopRuns", `/workspaces/${segment(workspaceId)}/loop-runs${latestLoopRunsQuery(options)}`, { headers: this.headers() });
14138
+ }
14280
14139
  readTranscript(runId, stepAttemptId, options = {}) {
14281
14140
  return this.request("readTranscript", `/runs/${segment(runId)}/step-attempts/${segment(stepAttemptId)}/transcript${transcriptQuery(options)}`, { headers: this.headers() });
14282
14141
  }
@@ -15034,6 +14893,9 @@ function scopeQuery(options) {
15034
14893
  function taskRunsQuery(taskIds) {
15035
14894
  return `?${new URLSearchParams({ taskIds: taskIds.join(",") }).toString()}`;
15036
14895
  }
14896
+ function latestLoopRunsQuery({ loops, teamId }) {
14897
+ return `?${new URLSearchParams({ loops: loops.join(","), ...teamId === undefined ? undefined : { teamId } }).toString()}`;
14898
+ }
15037
14899
  function inboxQuery(options) {
15038
14900
  return options.filter === undefined ? "" : `?${new URLSearchParams({ filter: options.filter }).toString()}`;
15039
14901
  }
@@ -15557,7 +15419,7 @@ function getStreamSchemas(schema) {
15557
15419
  }
15558
15420
  var schema = /* @__PURE__ */ declare(isStream);
15559
15421
  function Stream(success, error) {
15560
- return make16(schema.ast, {
15422
+ return make17(schema.ast, {
15561
15423
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15562
15424
  success,
15563
15425
  error
@@ -15565,9 +15427,9 @@ function Stream(success, error) {
15565
15427
  }
15566
15428
 
15567
15429
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15568
- var TypeId16 = "~effect/rpc/Rpc";
15430
+ var TypeId15 = "~effect/rpc/Rpc";
15569
15431
  var Proto8 = {
15570
- [TypeId16]: TypeId16,
15432
+ [TypeId15]: TypeId15,
15571
15433
  pipe() {
15572
15434
  return pipeArguments(this, arguments);
15573
15435
  },
@@ -15734,7 +15596,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15734
15596
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15735
15597
 
15736
15598
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15737
- var TypeId17 = "~effect/rpc/RpcClientError";
15599
+ var TypeId16 = "~effect/rpc/RpcClientError";
15738
15600
 
15739
15601
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15740
15602
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15743,11 +15605,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15743
15605
  })) {
15744
15606
  }
15745
15607
 
15746
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15608
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15747
15609
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15748
15610
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15749
15611
  })) {
15750
- [TypeId17] = TypeId17;
15612
+ [TypeId16] = TypeId16;
15751
15613
  get message() {
15752
15614
  return `${this.reason._tag}: ${this.reason.message}`;
15753
15615
  }
@@ -15867,7 +15729,7 @@ var RpcGroupProto = {
15867
15729
  });
15868
15730
  },
15869
15731
  annotateRpcs(service, value) {
15870
- return this.annotateRpcsMerge(make14(service, value));
15732
+ return this.annotateRpcsMerge(make15(service, value));
15871
15733
  },
15872
15734
  annotateMerge(context) {
15873
15735
  return makeProto2({
@@ -15895,7 +15757,7 @@ var make7 = (...rpcs) => makeProto2({
15895
15757
  annotations: empty3()
15896
15758
  });
15897
15759
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15898
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15760
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15899
15761
  var Service = () => (id, options) => {
15900
15762
  const limit = getStackTraceLimit();
15901
15763
  let creationError;
@@ -15913,7 +15775,7 @@ var Service = () => (id, options) => {
15913
15775
  return creationError?.stack;
15914
15776
  }
15915
15777
  });
15916
- ServiceClass_[TypeId18] = TypeId18;
15778
+ ServiceClass_[TypeId17] = TypeId17;
15917
15779
  ServiceClass_.error = options?.error ?? Never;
15918
15780
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15919
15781
  return ServiceClass;
@@ -16656,7 +16518,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16656
16518
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16657
16519
 
16658
16520
  // apps/cli/src/oauth.ts
16659
- var Scope2 = "openid profile email offline_access kitman:cli";
16521
+ var Scope = "openid profile email offline_access kitman:cli";
16660
16522
  var CallbackPath = "/auth/callback";
16661
16523
 
16662
16524
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16675,7 +16537,7 @@ function buildAuthorizeUrl(input) {
16675
16537
  url.searchParams.set("response_type", "code");
16676
16538
  url.searchParams.set("client_id", input.clientId);
16677
16539
  url.searchParams.set("redirect_uri", input.redirectUri);
16678
- url.searchParams.set("scope", Scope2);
16540
+ url.searchParams.set("scope", Scope);
16679
16541
  url.searchParams.set("code_challenge", input.codeChallenge);
16680
16542
  url.searchParams.set("code_challenge_method", "S256");
16681
16543
  url.searchParams.set("state", input.state);
@@ -16735,7 +16597,7 @@ function toStoredSession(token, existingRefreshToken) {
16735
16597
  }
16736
16598
  function startLoopbackServer(input) {
16737
16599
  return gen(function* () {
16738
- const code = yield* make15();
16600
+ const code = yield* make16();
16739
16601
  const context2 = yield* context();
16740
16602
  const runSyncExit = runSyncExitWith(context2);
16741
16603
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17283,7 +17145,7 @@ var openConnection = (transport) => gen(function* () {
17283
17145
  let lastId = 0;
17284
17146
  let lost = false;
17285
17147
  const notifications = yield* unbounded2();
17286
- const ended = yield* make15();
17148
+ const ended = yield* make16();
17287
17149
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17288
17150
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17289
17151
  onNone: () => void_3,
@@ -17310,7 +17172,7 @@ var openConnection = (transport) => gen(function* () {
17310
17172
  if (lost)
17311
17173
  return yield* new HerdrCoreConnectionLost2({ method });
17312
17174
  const id = ++lastId;
17313
- const deferred = yield* make15();
17175
+ const deferred = yield* make16();
17314
17176
  pending.set(id, { method, deferred });
17315
17177
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17316
17178
  return yield* _await(deferred);
@@ -17384,7 +17246,7 @@ var herdrCoreOver = (transport) => ({
17384
17246
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17385
17247
  };
17386
17248
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17387
- 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)));
17388
17250
  }))
17389
17251
  });
17390
17252
  var spawnedTransport = (env) => gen(function* () {
@@ -17475,7 +17337,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17475
17337
  const spawner = yield* ChildProcessSpawner;
17476
17338
  const [command, ...args] = argv;
17477
17339
  const handle = yield* spawner.spawn(make3(command, args, {
17478
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17340
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17479
17341
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17480
17342
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17481
17343
  }));
@@ -17995,4 +17857,4 @@ function serviceChecks(declaration) {
17995
17857
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17996
17858
  }
17997
17859
 
17998
- 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
17860
+ 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, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, 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, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, 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, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };