@kitman-sh/cli 0.20.0 → 0.22.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-spazhq67.js → chunk-1j38xtvp.js} +2 -2
  2. package/dist/{chunk-centvmrd.js → chunk-2gm1qkd1.js} +4 -4
  3. package/dist/{chunk-qvpkwnky.js → chunk-4qjfn1sa.js} +1 -1
  4. package/dist/{chunk-s9fwm42m.js → chunk-5gx52vjz.js} +3 -3
  5. package/dist/{chunk-y7bth30s.js → chunk-5kqt4bqp.js} +1 -1
  6. package/dist/{chunk-kntnw6r0.js → chunk-63cyj9dh.js} +177 -28
  7. package/dist/{chunk-rekh8azw.js → chunk-an5jcv2h.js} +7 -7
  8. package/dist/{chunk-535m9qxp.js → chunk-bgwp50wv.js} +128 -267
  9. package/dist/{chunk-3vgv5ba7.js → chunk-cswzx3jj.js} +6 -6
  10. package/dist/{chunk-v30yf453.js → chunk-gap0vmj7.js} +2 -2
  11. package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
  12. package/dist/{chunk-fvdnmgsy.js → chunk-jq8hbcnf.js} +4 -4
  13. package/dist/{chunk-3hyggg9w.js → chunk-js64y97w.js} +4 -4
  14. package/dist/{chunk-89a53j2y.js → chunk-my92qn4x.js} +5 -5
  15. package/dist/{chunk-rrbnxea1.js → chunk-pbe77xf2.js} +6 -6
  16. package/dist/{chunk-3wct0tsd.js → chunk-q3kvaas4.js} +15 -1
  17. package/dist/{chunk-g00ewhrb.js → chunk-rfa7t28t.js} +19 -19
  18. package/dist/{chunk-yecj64ke.js → chunk-rns9z6k9.js} +10 -10
  19. package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
  20. package/dist/{chunk-haq904fk.js → chunk-tsx0347c.js} +1 -1
  21. package/dist/{chunk-8xd2jvgj.js → chunk-vmc9xnvh.js} +18 -18
  22. package/dist/{chunk-6387vj9z.js → chunk-vz38kngm.js} +2 -2
  23. package/dist/{chunk-7dcq58d0.js → chunk-xqc3fc72.js} +8 -8
  24. package/dist/{chunk-dtgp724s.js → chunk-y4a78x63.js} +1 -1
  25. package/dist/{chunk-avg3cz82.js → chunk-ytknm7wg.js} +4 -4
  26. package/dist/{chunk-2scq36fm.js → chunk-zh3djymt.js} +25 -12
  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,12 @@ 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
271
  toNumber,
284
272
  bytes,
285
- join,
286
- interrupt,
287
- getCurrent,
288
- runIn,
289
273
  BadArgument,
290
274
  systemError,
291
275
  badArgument,
@@ -307,11 +291,13 @@ import {
307
291
  isSink,
308
292
  fromChannel,
309
293
  drain,
294
+ make10,
295
+ get3,
310
296
  isStream,
311
297
  fromChannel2,
312
298
  callback,
313
299
  empty2,
314
- make10,
300
+ make11,
315
301
  suspend,
316
302
  fail2,
317
303
  fromQueue,
@@ -337,17 +323,17 @@ import {
337
323
  mkArrayBuffer,
338
324
  toReadableStreamEffect,
339
325
  FileSystem,
340
- make11,
326
+ make12,
341
327
  FileTypeId,
342
328
  WatchBackend,
343
329
  Path,
344
- make12,
330
+ make13,
345
331
  option,
346
332
  String2,
347
333
  optionalEnv,
348
334
  harnessesUnsupportedInSrt2,
349
335
  harnessesUnsupportedInDocker2
350
- } from "./chunk-kntnw6r0.js";
336
+ } from "./chunk-63cyj9dh.js";
351
337
  import {
352
338
  isRedacted,
353
339
  make,
@@ -361,7 +347,7 @@ import {
361
347
  make3,
362
348
  parseFdName,
363
349
  fdName
364
- } from "./chunk-v30yf453.js";
350
+ } from "./chunk-gap0vmj7.js";
365
351
  import {
366
352
  isDateTime,
367
353
  Numeric,
@@ -374,7 +360,8 @@ import {
374
360
  SecretScope,
375
361
  SecretHosts,
376
362
  isSecretReference
377
- } from "./chunk-qvpkwnky.js";
363
+ } from "./chunk-4qjfn1sa.js";
364
+
378
365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
379
366
  var makeEquivalence3 = Tuple;
380
367
 
@@ -516,7 +503,7 @@ var fromDateUnsafe = (date) => {
516
503
  }
517
504
  return makeUtc(epochMillis);
518
505
  };
519
- var makeUnsafe7 = (input) => {
506
+ var makeUnsafe6 = (input) => {
520
507
  if (isDateTime2(input)) {
521
508
  return input;
522
509
  } else if (input instanceof Date) {
@@ -536,7 +523,7 @@ var makeUnsafe7 = (input) => {
536
523
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
537
524
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
538
525
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
539
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
526
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
540
527
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
541
528
  var nowUnsafe = () => makeUtc(Date.now());
542
529
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -643,7 +630,7 @@ class Metric$ {
643
630
  }
644
631
  hook(context) {
645
632
  const key = this.key(context);
646
- const registry = get3(context, MetricRegistry);
633
+ const registry = get4(context, MetricRegistry);
647
634
  let metadata = registry.get(key);
648
635
  if (isUndefined(metadata)) {
649
636
  metadata = this.metadata(this.createHooks());
@@ -652,11 +639,11 @@ class Metric$ {
652
639
  return metadata.hooks;
653
640
  }
654
641
  removeUnsafe(context) {
655
- get3(context, MetricRegistry).delete(this.key(context));
642
+ get4(context, MetricRegistry).delete(this.key(context));
656
643
  }
657
644
  registerUnsafe(context, hooks) {
658
645
  const key = this.key(context);
659
- const registry = get3(context, MetricRegistry);
646
+ const registry = get4(context, MetricRegistry);
660
647
  const metadata = this.metadata({
661
648
  get: hooks.get,
662
649
  update: constVoid,
@@ -672,7 +659,7 @@ class Metric$ {
672
659
  };
673
660
  }
674
661
  key(context) {
675
- const extraAttributes = get3(context, CurrentMetricAttributes);
662
+ const extraAttributes = get4(context, CurrentMetricAttributes);
676
663
  if (extraAttributes !== this.#extraAttributes) {
677
664
  this.#extraAttributes = extraAttributes;
678
665
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -915,151 +902,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
915
902
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
916
903
  var runMain = runMain2;
917
904
 
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;
1040
- }
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;
1054
- };
1055
-
1056
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1057
- var make18 = make17;
1058
- var get5 = get4;
1059
-
1060
905
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1061
- var makeUnsafe = makeUnsafe7;
1062
- var make19 = make4;
906
+ var makeUnsafe = makeUnsafe6;
907
+ var make18 = make4;
1063
908
  var now2 = now;
1064
909
  var nowUnsafe2 = nowUnsafe;
1065
910
  var toDateUtc2 = toDateUtc;
@@ -1378,7 +1223,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1378
1223
  windowsHide: true
1379
1224
  }, onExit);
1380
1225
  };
1381
- var make20 = /* @__PURE__ */ gen(function* () {
1226
+ var make19 = /* @__PURE__ */ gen(function* () {
1382
1227
  const fs = yield* FileSystem;
1383
1228
  const path = yield* Path;
1384
1229
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1907,7 +1752,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1907
1752
  });
1908
1753
  return make2(spawnCommand);
1909
1754
  });
1910
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1755
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1911
1756
  var flattenCommand = (command) => {
1912
1757
  const commands = [];
1913
1758
  const pipeOptions = [];
@@ -2391,7 +2236,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2391
2236
  resume(fail7(handleBadArgument("writeFile")(err)));
2392
2237
  }
2393
2238
  });
2394
- var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2239
+ var makeFileSystem = /* @__PURE__ */ map9(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2395
2240
  access: access2,
2396
2241
  chmod: chmod2,
2397
2242
  chown: chown2,
@@ -2451,15 +2296,15 @@ var fileUrlOps = (windows) => ({
2451
2296
  })
2452
2297
  })
2453
2298
  });
2454
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2299
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2455
2300
  ...NodePath.posix,
2456
2301
  .../* @__PURE__ */ fileUrlOps(false)
2457
2302
  }));
2458
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2303
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2459
2304
  ...NodePath.win32,
2460
2305
  .../* @__PURE__ */ fileUrlOps(true)
2461
2306
  }));
2462
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2463
2308
  ...NodePath,
2464
2309
  .../* @__PURE__ */ fileUrlOps(undefined)
2465
2310
  }));
@@ -2468,10 +2313,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2468
2313
  var layer2 = layer7;
2469
2314
 
2470
2315
  // 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,
2316
+ var TypeId3 = "~effect/Stdio";
2317
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2318
+ var make20 = (options) => ({
2319
+ [TypeId3]: TypeId3,
2475
2320
  stdinIsTerminal: succeed6(false),
2476
2321
  stdoutIsTerminal: succeed6(false),
2477
2322
  stderrIsTerminal: succeed6(false),
@@ -2479,7 +2324,7 @@ var make21 = (options) => ({
2479
2324
  });
2480
2325
 
2481
2326
  // 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({
2327
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2483
2328
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2484
2329
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2485
2330
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2679,7 +2524,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2679
2524
  const uuid = bytes(randomBytes(16));
2680
2525
  return format === "bytes" ? uuid : stringify(uuid);
2681
2526
  };
2682
- var make22 = (randomBytes) => {
2527
+ var make21 = (randomBytes) => {
2683
2528
  const randomBytesChecked = (size) => {
2684
2529
  checkSize(size);
2685
2530
  return randomBytes(size);
@@ -2713,7 +2558,7 @@ var fillRandom = (crypto2, size) => {
2713
2558
  }
2714
2559
  return bytes;
2715
2560
  };
2716
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2561
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2717
2562
  var randomBytesUnsafe = (size) => {
2718
2563
  checkSize(size);
2719
2564
  return fillRandom(globalThis.crypto, size);
@@ -2721,10 +2566,10 @@ var randomBytesUnsafe = (size) => {
2721
2566
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2722
2567
 
2723
2568
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2724
- var TypeId5 = "~effect/http/Cookies";
2569
+ var TypeId4 = "~effect/http/Cookies";
2725
2570
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2726
2571
  var Proto2 = {
2727
- [TypeId5]: TypeId5,
2572
+ [TypeId4]: TypeId4,
2728
2573
  ...BaseProto,
2729
2574
  toJSON() {
2730
2575
  return {
@@ -2903,14 +2748,14 @@ var tryDecodeURIComponent = (str) => {
2903
2748
  };
2904
2749
 
2905
2750
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2906
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2907
2752
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2908
- [TypeId6]: {
2909
- value: TypeId6
2753
+ [TypeId5]: {
2754
+ value: TypeId5
2910
2755
  },
2911
2756
  [symbolRedactable]: {
2912
2757
  value(context) {
2913
- return redact2(this, get3(context, CurrentRedactedNames));
2758
+ return redact2(this, get4(context, CurrentRedactedNames));
2914
2759
  }
2915
2760
  },
2916
2761
  toJSON: {
@@ -2935,7 +2780,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2935
2780
  value: BaseProto[NodeInspectSymbol]
2936
2781
  }
2937
2782
  });
2938
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2939
2784
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2940
2785
  var empty = /* @__PURE__ */ Object.create(Proto3);
2941
2786
  var fromInput = (input) => {
@@ -2960,21 +2805,21 @@ var fromInput = (input) => {
2960
2805
  };
2961
2806
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2962
2807
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2963
- const out = make23(self);
2808
+ const out = make22(self);
2964
2809
  out[key.toLowerCase()] = value;
2965
2810
  return out;
2966
2811
  });
2967
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2968
2813
  ...self,
2969
2814
  ...fromInput(headers)
2970
2815
  }));
2971
2816
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2972
- const out = make23(self);
2817
+ const out = make22(self);
2973
2818
  Object.assign(out, headers);
2974
2819
  return out;
2975
2820
  });
2976
2821
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2977
- const out = make23(self);
2822
+ const out = make22(self);
2978
2823
  delete out[key.toLowerCase()];
2979
2824
  return out;
2980
2825
  });
@@ -3031,18 +2876,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3031
2876
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3032
2877
 
3033
2878
  // 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);
2879
+ var TypeId6 = "~effect/http/UrlParams";
2880
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3036
2881
  var Proto4 = {
3037
2882
  ...PipeInspectableProto,
3038
- [TypeId7]: TypeId7,
2883
+ [TypeId6]: TypeId6,
3039
2884
  [Symbol.iterator]() {
3040
2885
  return this.params[Symbol.iterator]();
3041
2886
  },
3042
2887
  [symbolRedactable](context) {
3043
2888
  return {
3044
2889
  _id: "UrlParams",
3045
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3046
2891
  };
3047
2892
  },
3048
2893
  toJSON() {
@@ -3055,7 +2900,7 @@ var Proto4 = {
3055
2900
  return array(this.params.flat());
3056
2901
  }
3057
2902
  };
3058
- var make24 = (params) => {
2903
+ var make23 = (params) => {
3059
2904
  const self = Object.create(Proto4);
3060
2905
  self.params = params;
3061
2906
  return self;
@@ -3074,7 +2919,7 @@ var fromInput2 = (input) => {
3074
2919
  out.push(parsed[i]);
3075
2920
  }
3076
2921
  }
3077
- return make24(out);
2922
+ return make23(out);
3078
2923
  };
3079
2924
  var fromInputNested = (input) => {
3080
2925
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3098,9 +2943,9 @@ var fromInputNested = (input) => {
3098
2943
  return out;
3099
2944
  };
3100
2945
  var coerce = (value) => isRedacted(value) ? value : String(value);
3101
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3102
2947
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3103
- var empty4 = /* @__PURE__ */ make24([]);
2948
+ var empty4 = /* @__PURE__ */ make23([]);
3104
2949
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3105
2950
  const params = fromInput2(input).params.slice();
3106
2951
  const keys = new Set;
@@ -3112,7 +2957,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3112
2957
  continue;
3113
2958
  params.push(self.params[i]);
3114
2959
  }
3115
- return make24(params);
2960
+ return make23(params);
3116
2961
  });
3117
2962
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3118
2963
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3168,13 +3013,13 @@ var decodeQueryKey = (key) => {
3168
3013
  return key;
3169
3014
  }
3170
3015
  };
3171
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3016
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3172
3017
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3173
3018
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3174
3019
  });
3175
3020
 
3176
3021
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3177
- var TypeId8 = "~effect/Terminal";
3022
+ var TypeId7 = "~effect/Terminal";
3178
3023
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3179
3024
 
3180
3025
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3183,14 +3028,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3183
3028
  [QuitErrorTypeId] = QuitErrorTypeId;
3184
3029
  }
3185
3030
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3186
- var make25 = (impl) => Terminal.of({
3031
+ var make24 = (impl) => Terminal.of({
3187
3032
  ...impl,
3188
- [TypeId8]: TypeId8
3033
+ [TypeId7]: TypeId7
3189
3034
  });
3190
3035
 
3191
3036
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3192
3037
  import * as readline from "readline";
3193
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3038
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3194
3039
  const stdin = process.stdin;
3195
3040
  const stdout = process.stdout;
3196
3041
  const lines = yield* make9();
@@ -3204,7 +3049,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3204
3049
  };
3205
3050
  stdin.once("end", onStdinEnd);
3206
3051
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3207
- const rlRef = yield* make18({
3052
+ const rlRef = yield* make10({
3208
3053
  acquire: acquireRelease(sync2(() => {
3209
3054
  const rl = readline.createInterface({
3210
3055
  input: stdin,
@@ -3243,7 +3088,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3243
3088
  if (stdin.isTTY)
3244
3089
  stdin.setRawMode(enabled);
3245
3090
  });
3246
- const rawModeRef = yield* make18({
3091
+ const rawModeRef = yield* make10({
3247
3092
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3248
3093
  idleTimeToLive: "10 millis"
3249
3094
  });
@@ -3294,14 +3139,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3294
3139
  if (inputEnded) {
3295
3140
  handleEnd();
3296
3141
  } else {
3297
- yield* get5(rlRef);
3298
- yield* get5(rawModeRef);
3142
+ yield* get3(rlRef);
3143
+ yield* get3(rawModeRef);
3299
3144
  stdin.once("end", handleEnd);
3300
3145
  }
3301
3146
  return queue;
3302
3147
  });
3303
3148
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3304
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3149
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3305
3150
  onSome: succeed6
3306
3151
  })), mapError2(() => new QuitError({}))));
3307
3152
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3312,7 +3157,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3312
3157
  cause: err
3313
3158
  }))));
3314
3159
  }));
3315
- return make25({
3160
+ return make24({
3316
3161
  columns,
3317
3162
  rows,
3318
3163
  size,
@@ -3321,7 +3166,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3321
3166
  display
3322
3167
  });
3323
3168
  });
3324
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3169
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3325
3170
  function defaultShouldQuit(input) {
3326
3171
  const key = input.key;
3327
3172
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3348,7 +3193,7 @@ function toDate(input) {
3348
3193
  return toDateUtc2(makeUnsafe(input));
3349
3194
  }
3350
3195
  function parseDate(input) {
3351
- return getOrUndefined(map4(make19(input), toDateUtc2));
3196
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3352
3197
  }
3353
3198
  function toIso(input) {
3354
3199
  return formatIso(makeUnsafe(input));
@@ -7614,7 +7459,8 @@ var ProgramLoop = Struct({
7614
7459
  from: optionalKey(String4)
7615
7460
  })),
7616
7461
  publishedAt: Timestamp,
7617
- kit: String4
7462
+ kit: String4,
7463
+ agents: optionalKey(Record(String4, String4))
7618
7464
  });
7619
7465
  var AutomaticStart = Struct({
7620
7466
  eventId: String4,
@@ -7658,7 +7504,6 @@ var ProgramAgent = Struct({
7658
7504
  }))
7659
7505
  });
7660
7506
  var ProgramAgentList = Struct({ items: ArraySchema(ProgramAgent) });
7661
- var ProgramLoopList = Struct({ items: ArraySchema(ProgramLoop) });
7662
7507
  var RunListItem = Struct({
7663
7508
  run: Run,
7664
7509
  loop: Struct({ id: String4, title: String4 }),
@@ -7671,6 +7516,14 @@ var RunList = Struct({
7671
7516
  items: ArraySchema(RunListItem),
7672
7517
  next: optionalKey(String4)
7673
7518
  });
7519
+ var LatestLoopRuns = Struct({
7520
+ items: ArraySchema(Struct({
7521
+ loopId: String4,
7522
+ runId: Id,
7523
+ createdAt: Timestamp,
7524
+ startedAt: optionalKey(Timestamp)
7525
+ }))
7526
+ });
7674
7527
  var RunWaitUntils = ["attention", "finished"];
7675
7528
  var RunWaitReasons = ["question", "completed", "failed", "stopped", "timeout"];
7676
7529
  var RunWaitResult = Struct({
@@ -10956,11 +10809,11 @@ var TranscriptSearchResult = Struct({
10956
10809
  total: Int
10957
10810
  });
10958
10811
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10959
- var TypeId9 = "~effect/http/HttpBody";
10812
+ var TypeId8 = "~effect/http/HttpBody";
10960
10813
  class Proto5 {
10961
- [TypeId9];
10814
+ [TypeId8];
10962
10815
  constructor() {
10963
- this[TypeId9] = TypeId9;
10816
+ this[TypeId8] = TypeId8;
10964
10817
  }
10965
10818
  [NodeInspectSymbol]() {
10966
10819
  return this.toJSON();
@@ -11051,7 +10904,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11051
10904
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11052
10905
 
11053
10906
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11054
- var TypeId10 = "~effect/http/HttpClientError";
10907
+ var TypeId9 = "~effect/http/HttpClientError";
11055
10908
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11056
10909
  constructor(props) {
11057
10910
  if ("cause" in props.reason) {
@@ -11063,7 +10916,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11063
10916
  super(props);
11064
10917
  }
11065
10918
  }
11066
- [TypeId10] = TypeId10;
10919
+ [TypeId9] = TypeId9;
11067
10920
  get request() {
11068
10921
  return this.reason.request;
11069
10922
  }
@@ -11167,7 +11020,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11167
11020
  }
11168
11021
  }
11169
11022
 
11170
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11023
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11171
11024
  _tag: /* @__PURE__ */ tag("HttpError"),
11172
11025
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11173
11026
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11200,7 +11053,7 @@ var updateContentLength = (headers, body) => {
11200
11053
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11201
11054
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11202
11055
  }
11203
- var make27 = (url, params, hash) => try_({
11056
+ var make26 = (url, params, hash) => try_({
11204
11057
  try: () => {
11205
11058
  const urlInstance = new URL(url, baseUrl());
11206
11059
  for (let i = 0;i < params.params.length; i++) {
@@ -11231,10 +11084,10 @@ var baseUrl = () => {
11231
11084
  };
11232
11085
 
11233
11086
  // 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);
11087
+ var TypeId10 = "~effect/http/HttpClientRequest";
11088
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11236
11089
  var Proto6 = {
11237
- [TypeId11]: TypeId11,
11090
+ [TypeId10]: TypeId10,
11238
11091
  ...BaseProto,
11239
11092
  toJSON() {
11240
11093
  return {
@@ -11323,7 +11176,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11323
11176
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11324
11177
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11325
11178
  function toUrl(self) {
11326
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11179
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11327
11180
  if (isSuccess(r)) {
11328
11181
  return some(r.success);
11329
11182
  }
@@ -11331,7 +11184,7 @@ function toUrl(self) {
11331
11184
  }
11332
11185
 
11333
11186
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11334
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11187
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11335
11188
  var schemaBodyJson = (schema, options) => {
11336
11189
  const decode = decodeEffect(toCodecJson(schema));
11337
11190
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11350,7 +11203,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11350
11203
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11351
11204
 
11352
11205
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11353
- var TypeId13 = "~effect/http/HttpClientResponse";
11206
+ var TypeId12 = "~effect/http/HttpClientResponse";
11354
11207
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11355
11208
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11356
11209
  reason: new StatusCodeError({
@@ -11361,16 +11214,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11361
11214
  }));
11362
11215
 
11363
11216
  class WebHttpClientResponse extends Class {
11217
+ [TypeId11];
11364
11218
  [TypeId12];
11365
- [TypeId13];
11366
11219
  request;
11367
11220
  source;
11368
11221
  constructor(request, source) {
11369
11222
  super();
11370
11223
  this.request = request;
11371
11224
  this.source = source;
11225
+ this[TypeId11] = TypeId11;
11372
11226
  this[TypeId12] = TypeId12;
11373
- this[TypeId13] = TypeId13;
11374
11227
  }
11375
11228
  toJSON() {
11376
11229
  return inspect(this, {
@@ -11542,7 +11395,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11542
11395
  };
11543
11396
 
11544
11397
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11545
- var TypeId14 = "~effect/http/HttpClient";
11398
+ var TypeId13 = "~effect/http/HttpClient";
11546
11399
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11547
11400
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11548
11401
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11559,7 +11412,7 @@ var makeWith2 = (postprocess, preprocess) => {
11559
11412
  return self;
11560
11413
  };
11561
11414
  var Proto7 = {
11562
- [TypeId14]: TypeId14,
11415
+ [TypeId13]: TypeId13,
11563
11416
  pipe() {
11564
11417
  return pipeArguments(this, arguments);
11565
11418
  },
@@ -11573,10 +11426,10 @@ var Proto7 = {
11573
11426
  return this.execute(make5(fullMethod)(url, options));
11574
11427
  }]))
11575
11428
  };
11576
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11429
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11577
11430
  const scopedController = scopedRequests.get(request);
11578
11431
  const controller = scopedController ?? new AbortController;
11579
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11432
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11580
11433
  if (isFailure(urlResult)) {
11581
11434
  return fail7(new HttpClientError({
11582
11435
  reason: new InvalidUrlError({
@@ -11710,8 +11563,8 @@ class InterruptibleResponse {
11710
11563
  this.original = original;
11711
11564
  this.controller = controller;
11712
11565
  }
11713
- [TypeId13] = TypeId13;
11714
11566
  [TypeId12] = TypeId12;
11567
+ [TypeId11] = TypeId11;
11715
11568
  applyInterrupt(effect) {
11716
11569
  return suspend3(() => {
11717
11570
  responseRegistry.unregister(this.original);
@@ -11809,7 +11662,7 @@ var detectStreamBodySupport = () => {
11809
11662
  return false;
11810
11663
  }
11811
11664
  };
11812
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11665
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11813
11666
  if (request.headers.upgrade !== undefined) {
11814
11667
  return fail7(new HttpClientError({
11815
11668
  reason: new TransportError({
@@ -11900,10 +11753,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11900
11753
  });
11901
11754
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11902
11755
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11903
- var TypeId15 = "~effect/socket/Socket";
11756
+ var TypeId14 = "~effect/socket/Socket";
11904
11757
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11905
- var make29 = (options) => Socket.of({
11906
- [TypeId15]: TypeId15,
11758
+ var make28 = (options) => Socket.of({
11759
+ [TypeId14]: TypeId14,
11907
11760
  reader: options.reader,
11908
11761
  writer: options.writer
11909
11762
  });
@@ -12226,7 +12079,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12226
12079
  write,
12227
12080
  writeAll
12228
12081
  });
12229
- return succeed6(make29({
12082
+ return succeed6(make28({
12230
12083
  reader,
12231
12084
  writer
12232
12085
  }));
@@ -12930,6 +12783,8 @@ var LoopManifest = Struct({
12930
12783
  schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 })),
12931
12784
  outline: optionalKey(LoopOutline)
12932
12785
  });
12786
+ var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
12787
+ var ProgramLoopList = Struct({ items: ArraySchema(ProgramLoopListing) });
12933
12788
  var LoopEnd = Struct({
12934
12789
  statuses: optionalKey(ArraySchema(String4)),
12935
12790
  failure: optionalKey(String4),
@@ -14272,6 +14127,9 @@ class KitmanEffectClient {
14272
14127
  listLatestTaskRuns(workspaceId, taskIds) {
14273
14128
  return this.request("listLatestTaskRuns", `/workspaces/${segment(workspaceId)}/task-runs${taskRunsQuery(taskIds)}`, { headers: this.headers() });
14274
14129
  }
14130
+ listLatestLoopRuns(workspaceId, options) {
14131
+ return this.request("listLatestLoopRuns", `/workspaces/${segment(workspaceId)}/loop-runs${latestLoopRunsQuery(options)}`, { headers: this.headers() });
14132
+ }
14275
14133
  readTranscript(runId, stepAttemptId, options = {}) {
14276
14134
  return this.request("readTranscript", `/runs/${segment(runId)}/step-attempts/${segment(stepAttemptId)}/transcript${transcriptQuery(options)}`, { headers: this.headers() });
14277
14135
  }
@@ -15029,6 +14887,9 @@ function scopeQuery(options) {
15029
14887
  function taskRunsQuery(taskIds) {
15030
14888
  return `?${new URLSearchParams({ taskIds: taskIds.join(",") }).toString()}`;
15031
14889
  }
14890
+ function latestLoopRunsQuery({ loops, teamId }) {
14891
+ return `?${new URLSearchParams({ loops: loops.join(","), ...teamId === undefined ? undefined : { teamId } }).toString()}`;
14892
+ }
15032
14893
  function inboxQuery(options) {
15033
14894
  return options.filter === undefined ? "" : `?${new URLSearchParams({ filter: options.filter }).toString()}`;
15034
14895
  }
@@ -15552,7 +15413,7 @@ function getStreamSchemas(schema) {
15552
15413
  }
15553
15414
  var schema = /* @__PURE__ */ declare(isStream);
15554
15415
  function Stream(success, error) {
15555
- return make16(schema.ast, {
15416
+ return make17(schema.ast, {
15556
15417
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15557
15418
  success,
15558
15419
  error
@@ -15560,9 +15421,9 @@ function Stream(success, error) {
15560
15421
  }
15561
15422
 
15562
15423
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15563
- var TypeId16 = "~effect/rpc/Rpc";
15424
+ var TypeId15 = "~effect/rpc/Rpc";
15564
15425
  var Proto8 = {
15565
- [TypeId16]: TypeId16,
15426
+ [TypeId15]: TypeId15,
15566
15427
  pipe() {
15567
15428
  return pipeArguments(this, arguments);
15568
15429
  },
@@ -15729,7 +15590,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15729
15590
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15730
15591
 
15731
15592
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15732
- var TypeId17 = "~effect/rpc/RpcClientError";
15593
+ var TypeId16 = "~effect/rpc/RpcClientError";
15733
15594
 
15734
15595
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15735
15596
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15738,11 +15599,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15738
15599
  })) {
15739
15600
  }
15740
15601
 
15741
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15602
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15742
15603
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15743
15604
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15744
15605
  })) {
15745
- [TypeId17] = TypeId17;
15606
+ [TypeId16] = TypeId16;
15746
15607
  get message() {
15747
15608
  return `${this.reason._tag}: ${this.reason.message}`;
15748
15609
  }
@@ -15862,7 +15723,7 @@ var RpcGroupProto = {
15862
15723
  });
15863
15724
  },
15864
15725
  annotateRpcs(service, value) {
15865
- return this.annotateRpcsMerge(make14(service, value));
15726
+ return this.annotateRpcsMerge(make15(service, value));
15866
15727
  },
15867
15728
  annotateMerge(context) {
15868
15729
  return makeProto2({
@@ -15890,7 +15751,7 @@ var make7 = (...rpcs) => makeProto2({
15890
15751
  annotations: empty3()
15891
15752
  });
15892
15753
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15893
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15754
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
15894
15755
  var Service = () => (id, options) => {
15895
15756
  const limit = getStackTraceLimit();
15896
15757
  let creationError;
@@ -15908,7 +15769,7 @@ var Service = () => (id, options) => {
15908
15769
  return creationError?.stack;
15909
15770
  }
15910
15771
  });
15911
- ServiceClass_[TypeId18] = TypeId18;
15772
+ ServiceClass_[TypeId17] = TypeId17;
15912
15773
  ServiceClass_.error = options?.error ?? Never;
15913
15774
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15914
15775
  return ServiceClass;
@@ -16651,7 +16512,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16651
16512
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16652
16513
 
16653
16514
  // apps/cli/src/oauth.ts
16654
- var Scope2 = "openid profile email offline_access kitman:cli";
16515
+ var Scope = "openid profile email offline_access kitman:cli";
16655
16516
  var CallbackPath = "/auth/callback";
16656
16517
 
16657
16518
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16670,7 +16531,7 @@ function buildAuthorizeUrl(input) {
16670
16531
  url.searchParams.set("response_type", "code");
16671
16532
  url.searchParams.set("client_id", input.clientId);
16672
16533
  url.searchParams.set("redirect_uri", input.redirectUri);
16673
- url.searchParams.set("scope", Scope2);
16534
+ url.searchParams.set("scope", Scope);
16674
16535
  url.searchParams.set("code_challenge", input.codeChallenge);
16675
16536
  url.searchParams.set("code_challenge_method", "S256");
16676
16537
  url.searchParams.set("state", input.state);
@@ -16730,7 +16591,7 @@ function toStoredSession(token, existingRefreshToken) {
16730
16591
  }
16731
16592
  function startLoopbackServer(input) {
16732
16593
  return gen(function* () {
16733
- const code = yield* make15();
16594
+ const code = yield* make16();
16734
16595
  const context2 = yield* context();
16735
16596
  const runSyncExit = runSyncExitWith(context2);
16736
16597
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -17278,7 +17139,7 @@ var openConnection = (transport) => gen(function* () {
17278
17139
  let lastId = 0;
17279
17140
  let lost = false;
17280
17141
  const notifications = yield* unbounded2();
17281
- const ended = yield* make15();
17142
+ const ended = yield* make16();
17282
17143
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
17283
17144
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
17284
17145
  onNone: () => void_3,
@@ -17305,7 +17166,7 @@ var openConnection = (transport) => gen(function* () {
17305
17166
  if (lost)
17306
17167
  return yield* new HerdrCoreConnectionLost2({ method });
17307
17168
  const id = ++lastId;
17308
- const deferred = yield* make15();
17169
+ const deferred = yield* make16();
17309
17170
  pending.set(id, { method, deferred });
17310
17171
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
17311
17172
  return yield* _await(deferred);
@@ -17379,7 +17240,7 @@ var herdrCoreOver = (transport) => ({
17379
17240
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
17380
17241
  };
17381
17242
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
17382
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17243
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
17383
17244
  }))
17384
17245
  });
17385
17246
  var spawnedTransport = (env) => gen(function* () {
@@ -17470,7 +17331,7 @@ var runProcess2 = (argv, options) => gen(function* () {
17470
17331
  const spawner = yield* ChildProcessSpawner;
17471
17332
  const [command, ...args] = argv;
17472
17333
  const handle = yield* spawner.spawn(make3(command, args, {
17473
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17334
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
17474
17335
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17475
17336
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
17476
17337
  }));