@kitman-sh/cli 0.13.12 → 0.13.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-36s51mp6.js → chunk-3z0wep73.js} +23 -23
  2. package/dist/{chunk-2xh5p0na.js → chunk-4yzdyte6.js} +7 -7
  3. package/dist/{chunk-4t6nrgxw.js → chunk-6kz6qa2h.js} +4 -4
  4. package/dist/{chunk-02ye1s9f.js → chunk-7hf2d50x.js} +9 -9
  5. package/dist/{chunk-z74fnmqb.js → chunk-7jege23c.js} +18 -18
  6. package/dist/{chunk-3z9yz32f.js → chunk-82w8rmkc.js} +2 -2
  7. package/dist/{chunk-n734b61f.js → chunk-9rez0yze.js} +1 -1
  8. package/dist/{chunk-8cxh8j07.js → chunk-b5abe9c7.js} +35 -35
  9. package/dist/{chunk-95w14qxp.js → chunk-cxc8d0r3.js} +6 -6
  10. package/dist/{chunk-1bkrxc3v.js → chunk-fc2bhh5v.js} +2 -2
  11. package/dist/{chunk-nge8fq10.js → chunk-ga76znz9.js} +5 -5
  12. package/dist/{chunk-fwja3qb1.js → chunk-gq7y5v3e.js} +1 -1
  13. package/dist/{chunk-yab3j170.js → chunk-gy9rf14f.js} +3 -3
  14. package/dist/{chunk-8t1vygmr.js → chunk-j2aw5bss.js} +4 -4
  15. package/dist/{chunk-x5nv63jj.js → chunk-jwr0rr2p.js} +1 -1
  16. package/dist/{chunk-szt25e0z.js → chunk-nf9gdnsf.js} +177 -34
  17. package/dist/{chunk-4m923rz8.js → chunk-nve4pjqm.js} +3 -3
  18. package/dist/{chunk-zb5pnthp.js → chunk-ptn9g4wd.js} +31 -31
  19. package/dist/{chunk-ths93svq.js → chunk-pvza175a.js} +141 -282
  20. package/dist/{chunk-mcw7wvtx.js → chunk-q5w3v4k1.js} +6 -1
  21. package/dist/{chunk-npjpmb0w.js → chunk-s364dren.js} +6 -6
  22. package/dist/{chunk-n1aqwdc2.js → chunk-vbygjtdw.js} +7 -7
  23. package/dist/{chunk-9d03t0pn.js → chunk-wh6eeetn.js} +4 -4
  24. package/dist/{chunk-eahqsd8h.js → chunk-y1krmnbv.js} +2 -2
  25. package/dist/{chunk-8pbnfqaz.js → chunk-zw3gf6r5.js} +60 -60
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- 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,
@@ -212,7 +202,7 @@ import {
212
202
  decodeEffect,
213
203
  decodeUnknownOption,
214
204
  decodeOption,
215
- make16,
205
+ make17,
216
206
  isSchema,
217
207
  optionalKey,
218
208
  optional,
@@ -271,17 +261,11 @@ import {
271
261
  decodeJsonStringOption,
272
262
  encodeJsonStringSync,
273
263
  encodePrettyJsonString
274
- } from "./chunk-8pbnfqaz.js";
264
+ } from "./chunk-zw3gf6r5.js";
275
265
  import {
276
266
  map,
277
267
  makeEquivalence,
278
- Clock,
279
- currentTimeMillis,
280
268
  bytes,
281
- join,
282
- interrupt,
283
- getCurrent,
284
- runIn,
285
269
  BadArgument,
286
270
  systemError,
287
271
  badArgument,
@@ -303,11 +287,13 @@ import {
303
287
  isSink,
304
288
  fromChannel,
305
289
  drain,
290
+ make10,
291
+ get3,
306
292
  isStream,
307
293
  fromChannel2,
308
294
  callback,
309
295
  empty2,
310
- make10,
296
+ make11,
311
297
  suspend,
312
298
  fail2,
313
299
  fromQueue,
@@ -333,16 +319,29 @@ import {
333
319
  mkArrayBuffer,
334
320
  toReadableStreamEffect,
335
321
  FileSystem,
336
- make11,
322
+ make12,
337
323
  FileTypeId,
338
324
  WatchBackend,
339
325
  Path,
340
- make12,
326
+ make13,
341
327
  option,
342
328
  String2,
343
329
  optionalEnv,
344
330
  harnessesUnsupportedInSrt2
345
- } from "./chunk-szt25e0z.js";
331
+ } from "./chunk-nf9gdnsf.js";
332
+ import {
333
+ isDateTime,
334
+ Numeric,
335
+ isWholeNumber,
336
+ guard,
337
+ Id,
338
+ Timestamp,
339
+ ActorType,
340
+ SecretName,
341
+ SecretScope,
342
+ SecretHosts,
343
+ isSecretReference
344
+ } from "./chunk-q5w3v4k1.js";
346
345
  import {
347
346
  isRedacted,
348
347
  make,
@@ -356,24 +355,15 @@ import {
356
355
  make3,
357
356
  parseFdName,
358
357
  fdName
359
- } from "./chunk-3z9yz32f.js";
360
- import {
361
- isDateTime,
362
- Numeric,
363
- isWholeNumber,
364
- guard,
365
- Id,
366
- Timestamp,
367
- ActorType,
368
- SecretName,
369
- SecretScope,
370
- SecretHosts,
371
- isSecretReference
372
- } from "./chunk-mcw7wvtx.js";
358
+ } from "./chunk-82w8rmkc.js";
373
359
 
374
360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
375
361
  var makeEquivalence3 = Tuple;
376
362
 
363
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
364
+ var Clock = ClockRef;
365
+ var currentTimeMillis = currentTimeMillis2;
366
+
377
367
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
378
368
  var TypeId = "~effect/DateTime";
379
369
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -508,7 +498,7 @@ var fromDateUnsafe = (date) => {
508
498
  }
509
499
  return makeUtc(epochMillis);
510
500
  };
511
- var makeUnsafe7 = (input) => {
501
+ var makeUnsafe6 = (input) => {
512
502
  if (isDateTime2(input)) {
513
503
  return input;
514
504
  } else if (input instanceof Date) {
@@ -528,7 +518,7 @@ var makeUnsafe7 = (input) => {
528
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
529
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
530
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
531
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
521
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
532
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
533
523
  var nowUnsafe = () => makeUtc(Date.now());
534
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -635,7 +625,7 @@ class Metric$ {
635
625
  }
636
626
  hook(context) {
637
627
  const key = this.key(context);
638
- const registry = get3(context, MetricRegistry);
628
+ const registry = get4(context, MetricRegistry);
639
629
  let metadata = registry.get(key);
640
630
  if (isUndefined(metadata)) {
641
631
  metadata = this.metadata(this.createHooks());
@@ -644,11 +634,11 @@ class Metric$ {
644
634
  return metadata.hooks;
645
635
  }
646
636
  removeUnsafe(context) {
647
- get3(context, MetricRegistry).delete(this.key(context));
637
+ get4(context, MetricRegistry).delete(this.key(context));
648
638
  }
649
639
  registerUnsafe(context, hooks) {
650
640
  const key = this.key(context);
651
- const registry = get3(context, MetricRegistry);
641
+ const registry = get4(context, MetricRegistry);
652
642
  const metadata = this.metadata({
653
643
  get: hooks.get,
654
644
  update: constVoid,
@@ -664,7 +654,7 @@ class Metric$ {
664
654
  };
665
655
  }
666
656
  key(context) {
667
- const extraAttributes = get3(context, CurrentMetricAttributes);
657
+ const extraAttributes = get4(context, CurrentMetricAttributes);
668
658
  if (extraAttributes !== this.#extraAttributes) {
669
659
  this.#extraAttributes = extraAttributes;
670
660
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -916,151 +906,9 @@ var toNumber = (b) => {
916
906
  return some(Number(b));
917
907
  };
918
908
 
919
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
920
- var TypeId3 = "~effect/RcRef";
921
- var stateEmpty = {
922
- _tag: "Empty"
923
- };
924
- var stateClosed = {
925
- _tag: "Closed"
926
- };
927
- var variance = {
928
- _A: identity,
929
- _E: identity
930
- };
931
-
932
- class RcRefImpl {
933
- [TypeId3] = variance;
934
- pipe() {
935
- return pipeArguments(this, arguments);
936
- }
937
- state = stateEmpty;
938
- acquire;
939
- context;
940
- scope;
941
- idleTimeToLive;
942
- constructor(acquire, context, scope, idleTimeToLive) {
943
- this.acquire = acquire;
944
- this.context = context;
945
- this.scope = scope;
946
- this.idleTimeToLive = idleTimeToLive;
947
- }
948
- }
949
- var make17 = (options) => withFiber2((fiber) => {
950
- const context = fiber.context;
951
- const scope = get3(context, Scope);
952
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
953
- return as(addFinalizerExit(scope, () => {
954
- const state = ref.state;
955
- ref.state = stateClosed;
956
- if (state._tag === "Acquired")
957
- return close(state.scope, void_2);
958
- if (state._tag === "Acquiring")
959
- return interrupt(state.fiber);
960
- return void_3;
961
- }), ref);
962
- });
963
- var getState = (self, restore) => {
964
- switch (self.state._tag) {
965
- case "Closed": {
966
- return interrupt3;
967
- }
968
- case "Acquired": {
969
- const state = self.state;
970
- state.refCount++;
971
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
972
- }
973
- case "Acquiring": {
974
- const state = self.state;
975
- state.awaiters++;
976
- return awaitAcquiring(self, state, restore);
977
- }
978
- case "Empty": {
979
- const acquiring = {
980
- _tag: "Acquiring",
981
- fiber: undefined,
982
- awaiters: 1,
983
- acquired: undefined
984
- };
985
- self.state = acquiring;
986
- const scope = makeUnsafe6();
987
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
988
- if (self.state !== acquiring) {
989
- return interrupt3;
990
- }
991
- const state = {
992
- _tag: "Acquired",
993
- value,
994
- scope,
995
- fiber: undefined,
996
- refCount: acquiring.awaiters,
997
- invalidated: false
998
- };
999
- self.state = state;
1000
- acquiring.acquired = state;
1001
- return succeed6(state);
1002
- }), onExit((exit) => {
1003
- if (isSuccess2(exit))
1004
- return void_3;
1005
- if (self.state === acquiring)
1006
- self.state = stateEmpty;
1007
- return close(scope, exit);
1008
- }));
1009
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1010
- return awaitAcquiring(self, acquiring, restore);
1011
- }
1012
- }
1013
- };
1014
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1015
- const acquired = acquiring.acquired;
1016
- if (acquired !== undefined) {
1017
- return isFailure2(exit) ? release(self, acquired) : void_3;
1018
- }
1019
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1020
- return void_3;
1021
- self.state = stateEmpty;
1022
- return interrupt(acquiring.fiber);
1023
- });
1024
- var get4 = (self_) => {
1025
- const self = self_;
1026
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1027
- };
1028
- var release = (self, state) => {
1029
- state.refCount--;
1030
- if (state.refCount > 0) {
1031
- return void_3;
1032
- }
1033
- const idleTimeToLive = self.idleTimeToLive;
1034
- if (idleTimeToLive === undefined || state.invalidated) {
1035
- if (self.state === state) {
1036
- self.state = stateEmpty;
1037
- }
1038
- return close(state.scope, void_2);
1039
- } else if (!isFinite(idleTimeToLive)) {
1040
- return void_3;
1041
- }
1042
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1043
- if (self.state === state && state.refCount === 0) {
1044
- self.state = stateEmpty;
1045
- return ignoreCause(close(state.scope, void_2), {
1046
- log: "Unhandled",
1047
- message: "Unhandled error in RcRef finalizer"
1048
- });
1049
- }
1050
- return void_3;
1051
- })).pipe(ensuring2(sync2(() => {
1052
- state.fiber = undefined;
1053
- })), runForkWith(self.context), runIn(self.scope));
1054
- return void_3;
1055
- };
1056
-
1057
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1058
- var make18 = make17;
1059
- var get5 = get4;
1060
-
1061
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1062
- var makeUnsafe = makeUnsafe7;
1063
- var make19 = make4;
910
+ var makeUnsafe = makeUnsafe6;
911
+ var make18 = make4;
1064
912
  var now2 = now;
1065
913
  var nowUnsafe2 = nowUnsafe;
1066
914
  var toDateUtc2 = toDateUtc;
@@ -1379,7 +1227,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1379
1227
  windowsHide: true
1380
1228
  }, onExit);
1381
1229
  };
1382
- var make20 = /* @__PURE__ */ gen(function* () {
1230
+ var make19 = /* @__PURE__ */ gen(function* () {
1383
1231
  const fs = yield* FileSystem;
1384
1232
  const path = yield* Path;
1385
1233
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1908,7 +1756,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1908
1756
  });
1909
1757
  return make2(spawnCommand);
1910
1758
  });
1911
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1759
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1912
1760
  var flattenCommand = (command) => {
1913
1761
  const commands = [];
1914
1762
  const pipeOptions = [];
@@ -2392,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2392
2240
  resume(fail7(handleBadArgument("writeFile")(err)));
2393
2241
  }
2394
2242
  });
2395
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2243
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2396
2244
  access: access2,
2397
2245
  chmod: chmod2,
2398
2246
  chown: chown2,
@@ -2452,15 +2300,15 @@ var fileUrlOps = (windows) => ({
2452
2300
  })
2453
2301
  })
2454
2302
  });
2455
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2303
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2456
2304
  ...NodePath.posix,
2457
2305
  .../* @__PURE__ */ fileUrlOps(false)
2458
2306
  }));
2459
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2307
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2460
2308
  ...NodePath.win32,
2461
2309
  .../* @__PURE__ */ fileUrlOps(true)
2462
2310
  }));
2463
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2311
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2464
2312
  ...NodePath,
2465
2313
  .../* @__PURE__ */ fileUrlOps(undefined)
2466
2314
  }));
@@ -2469,10 +2317,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2469
2317
  var layer2 = layer7;
2470
2318
 
2471
2319
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2472
- var TypeId4 = "~effect/Stdio";
2473
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2474
- var make21 = (options) => ({
2475
- [TypeId4]: TypeId4,
2320
+ var TypeId3 = "~effect/Stdio";
2321
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
+ var make20 = (options) => ({
2323
+ [TypeId3]: TypeId3,
2476
2324
  stdinIsTerminal: succeed6(false),
2477
2325
  stdoutIsTerminal: succeed6(false),
2478
2326
  stderrIsTerminal: succeed6(false),
@@ -2480,7 +2328,7 @@ var make21 = (options) => ({
2480
2328
  });
2481
2329
 
2482
2330
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2483
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2331
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2484
2332
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2485
2333
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2486
2334
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2680,7 +2528,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2680
2528
  const uuid = bytes(randomBytes(16));
2681
2529
  return format === "bytes" ? uuid : stringify(uuid);
2682
2530
  };
2683
- var make22 = (randomBytes) => {
2531
+ var make21 = (randomBytes) => {
2684
2532
  const randomBytesChecked = (size) => {
2685
2533
  checkSize(size);
2686
2534
  return randomBytes(size);
@@ -2714,13 +2562,13 @@ var fillRandom = (crypto2, size) => {
2714
2562
  }
2715
2563
  return bytes;
2716
2564
  };
2717
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2565
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2718
2566
 
2719
2567
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2720
- var TypeId5 = "~effect/http/Cookies";
2568
+ var TypeId4 = "~effect/http/Cookies";
2721
2569
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2722
2570
  var Proto2 = {
2723
- [TypeId5]: TypeId5,
2571
+ [TypeId4]: TypeId4,
2724
2572
  ...BaseProto,
2725
2573
  toJSON() {
2726
2574
  return {
@@ -2899,14 +2747,14 @@ var tryDecodeURIComponent = (str) => {
2899
2747
  };
2900
2748
 
2901
2749
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2902
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2750
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2903
2751
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2904
- [TypeId6]: {
2905
- value: TypeId6
2752
+ [TypeId5]: {
2753
+ value: TypeId5
2906
2754
  },
2907
2755
  [symbolRedactable]: {
2908
2756
  value(context) {
2909
- return redact2(this, get3(context, CurrentRedactedNames));
2757
+ return redact2(this, get4(context, CurrentRedactedNames));
2910
2758
  }
2911
2759
  },
2912
2760
  toJSON: {
@@ -2931,7 +2779,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2931
2779
  value: BaseProto[NodeInspectSymbol]
2932
2780
  }
2933
2781
  });
2934
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2782
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2935
2783
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2936
2784
  var empty = /* @__PURE__ */ Object.create(Proto3);
2937
2785
  var fromInput = (input) => {
@@ -2956,21 +2804,21 @@ var fromInput = (input) => {
2956
2804
  };
2957
2805
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2958
2806
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2959
- const out = make23(self);
2807
+ const out = make22(self);
2960
2808
  out[key.toLowerCase()] = value;
2961
2809
  return out;
2962
2810
  });
2963
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2811
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2964
2812
  ...self,
2965
2813
  ...fromInput(headers)
2966
2814
  }));
2967
2815
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2968
- const out = make23(self);
2816
+ const out = make22(self);
2969
2817
  Object.assign(out, headers);
2970
2818
  return out;
2971
2819
  });
2972
2820
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2973
- const out = make23(self);
2821
+ const out = make22(self);
2974
2822
  delete out[key.toLowerCase()];
2975
2823
  return out;
2976
2824
  });
@@ -3027,18 +2875,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3027
2875
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3028
2876
 
3029
2877
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3030
- var TypeId7 = "~effect/http/UrlParams";
3031
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2878
+ var TypeId6 = "~effect/http/UrlParams";
2879
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3032
2880
  var Proto4 = {
3033
2881
  ...PipeInspectableProto,
3034
- [TypeId7]: TypeId7,
2882
+ [TypeId6]: TypeId6,
3035
2883
  [Symbol.iterator]() {
3036
2884
  return this.params[Symbol.iterator]();
3037
2885
  },
3038
2886
  [symbolRedactable](context) {
3039
2887
  return {
3040
2888
  _id: "UrlParams",
3041
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2889
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3042
2890
  };
3043
2891
  },
3044
2892
  toJSON() {
@@ -3051,7 +2899,7 @@ var Proto4 = {
3051
2899
  return array(this.params.flat());
3052
2900
  }
3053
2901
  };
3054
- var make24 = (params) => {
2902
+ var make23 = (params) => {
3055
2903
  const self = Object.create(Proto4);
3056
2904
  self.params = params;
3057
2905
  return self;
@@ -3070,7 +2918,7 @@ var fromInput2 = (input) => {
3070
2918
  out.push(parsed[i]);
3071
2919
  }
3072
2920
  }
3073
- return make24(out);
2921
+ return make23(out);
3074
2922
  };
3075
2923
  var fromInputNested = (input) => {
3076
2924
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3094,9 +2942,9 @@ var fromInputNested = (input) => {
3094
2942
  return out;
3095
2943
  };
3096
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
3097
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2945
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3098
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3099
- var empty4 = /* @__PURE__ */ make24([]);
2947
+ var empty4 = /* @__PURE__ */ make23([]);
3100
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3101
2949
  const params = fromInput2(input).params.slice();
3102
2950
  const keys = new Set;
@@ -3108,7 +2956,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3108
2956
  continue;
3109
2957
  params.push(self.params[i]);
3110
2958
  }
3111
- return make24(params);
2959
+ return make23(params);
3112
2960
  });
3113
2961
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3114
2962
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3164,13 +3012,13 @@ var decodeQueryKey = (key) => {
3164
3012
  return key;
3165
3013
  }
3166
3014
  };
3167
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3015
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3168
3016
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3169
3017
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3170
3018
  });
3171
3019
 
3172
3020
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3173
- var TypeId8 = "~effect/Terminal";
3021
+ var TypeId7 = "~effect/Terminal";
3174
3022
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3175
3023
 
3176
3024
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3179,14 +3027,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3179
3027
  [QuitErrorTypeId] = QuitErrorTypeId;
3180
3028
  }
3181
3029
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3182
- var make25 = (impl) => Terminal.of({
3030
+ var make24 = (impl) => Terminal.of({
3183
3031
  ...impl,
3184
- [TypeId8]: TypeId8
3032
+ [TypeId7]: TypeId7
3185
3033
  });
3186
3034
 
3187
3035
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3188
3036
  import * as readline from "readline";
3189
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3037
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3190
3038
  const stdin = process.stdin;
3191
3039
  const stdout = process.stdout;
3192
3040
  const lines = yield* make9();
@@ -3200,7 +3048,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3200
3048
  };
3201
3049
  stdin.once("end", onStdinEnd);
3202
3050
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3203
- const rlRef = yield* make18({
3051
+ const rlRef = yield* make10({
3204
3052
  acquire: acquireRelease(sync2(() => {
3205
3053
  const rl = readline.createInterface({
3206
3054
  input: stdin,
@@ -3239,7 +3087,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3239
3087
  if (stdin.isTTY)
3240
3088
  stdin.setRawMode(enabled);
3241
3089
  });
3242
- const rawModeRef = yield* make18({
3090
+ const rawModeRef = yield* make10({
3243
3091
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3244
3092
  idleTimeToLive: "10 millis"
3245
3093
  });
@@ -3290,14 +3138,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3290
3138
  if (inputEnded) {
3291
3139
  handleEnd();
3292
3140
  } else {
3293
- yield* get5(rlRef);
3294
- yield* get5(rawModeRef);
3141
+ yield* get3(rlRef);
3142
+ yield* get3(rawModeRef);
3295
3143
  stdin.once("end", handleEnd);
3296
3144
  }
3297
3145
  return queue;
3298
3146
  });
3299
3147
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3300
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3148
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3301
3149
  onSome: succeed6
3302
3150
  })), mapError2(() => new QuitError({}))));
3303
3151
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3308,7 +3156,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3308
3156
  cause: err
3309
3157
  }))));
3310
3158
  }));
3311
- return make25({
3159
+ return make24({
3312
3160
  columns,
3313
3161
  rows,
3314
3162
  size,
@@ -3317,7 +3165,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3317
3165
  display
3318
3166
  });
3319
3167
  });
3320
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3168
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3321
3169
  function defaultShouldQuit(input) {
3322
3170
  const key = input.key;
3323
3171
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3344,7 +3192,7 @@ function toDate(input) {
3344
3192
  return toDateUtc2(makeUnsafe(input));
3345
3193
  }
3346
3194
  function parseDate(input) {
3347
- return getOrUndefined(map4(make19(input), toDateUtc2));
3195
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3348
3196
  }
3349
3197
  function toIso(input) {
3350
3198
  return formatIso(makeUnsafe(input));
@@ -3364,7 +3212,17 @@ var waitingOnWords = ({ keys, hidden }) => {
3364
3212
 
3365
3213
  // packages/core/src/run-queue.ts
3366
3214
  var ClaimRanks = ["in_progress", "finishing", "new"];
3367
- var queueWords = (place) => place.unrunnable === undefined ? `#${place.position} in the queue, ${place.reason}` : `no online Runner can run it: ${place.unrunnable}`;
3215
+ var utcTime = (timestamp) => {
3216
+ const iso = toIso(Math.ceil(toDate(timestamp).getTime() / 1000) * 1000);
3217
+ return `${iso.slice(0, iso.endsWith(":00.000Z") ? 16 : 19).replace("T", " ")} UTC`;
3218
+ };
3219
+ var queueWords = (place) => {
3220
+ const held = [
3221
+ ...place.quotaUntil === undefined ? [] : [`waiting on quota until ${utcTime(place.quotaUntil)}`],
3222
+ ...place.unrunnable === undefined ? [] : [`no online Runner can run it: ${place.unrunnable}`]
3223
+ ];
3224
+ return held.length === 0 ? `#${place.position} in the queue, ${place.reason}` : held.join("; ");
3225
+ };
3368
3226
  // packages/core/src/redaction.ts
3369
3227
  var DurableSurfaceContractVersion = "durable-redaction.v1";
3370
3228
  var EvidenceRefContractVersion = "evidence-ref.v1";
@@ -6323,7 +6181,8 @@ var RunWaiting = Union([
6323
6181
  position: Int.check(isGreaterThanOrEqualTo(1)),
6324
6182
  reason: String4,
6325
6183
  movesUpAt: optionalKey(String4),
6326
- unrunnable: optionalKey(String4)
6184
+ unrunnable: optionalKey(String4),
6185
+ quotaUntil: optionalKey(Timestamp)
6327
6186
  })
6328
6187
  ]);
6329
6188
  var RunEvidence = Struct({
@@ -9913,11 +9772,11 @@ var TranscriptSearchResult = Struct({
9913
9772
  total: Int
9914
9773
  });
9915
9774
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9916
- var TypeId9 = "~effect/http/HttpBody";
9775
+ var TypeId8 = "~effect/http/HttpBody";
9917
9776
  class Proto5 {
9918
- [TypeId9];
9777
+ [TypeId8];
9919
9778
  constructor() {
9920
- this[TypeId9] = TypeId9;
9779
+ this[TypeId8] = TypeId8;
9921
9780
  }
9922
9781
  [NodeInspectSymbol]() {
9923
9782
  return this.toJSON();
@@ -10008,7 +9867,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10008
9867
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10009
9868
 
10010
9869
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10011
- var TypeId10 = "~effect/http/HttpClientError";
9870
+ var TypeId9 = "~effect/http/HttpClientError";
10012
9871
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10013
9872
  constructor(props) {
10014
9873
  if ("cause" in props.reason) {
@@ -10020,7 +9879,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10020
9879
  super(props);
10021
9880
  }
10022
9881
  }
10023
- [TypeId10] = TypeId10;
9882
+ [TypeId9] = TypeId9;
10024
9883
  get request() {
10025
9884
  return this.reason.request;
10026
9885
  }
@@ -10124,7 +9983,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
10124
9983
  }
10125
9984
  }
10126
9985
 
10127
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9986
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
10128
9987
  _tag: /* @__PURE__ */ tag("HttpError"),
10129
9988
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
10130
9989
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -10157,7 +10016,7 @@ var updateContentLength = (headers, body) => {
10157
10016
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
10158
10017
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
10159
10018
  }
10160
- var make27 = (url, params, hash) => try_({
10019
+ var make26 = (url, params, hash) => try_({
10161
10020
  try: () => {
10162
10021
  const urlInstance = new URL(url, baseUrl());
10163
10022
  for (let i = 0;i < params.params.length; i++) {
@@ -10188,10 +10047,10 @@ var baseUrl = () => {
10188
10047
  };
10189
10048
 
10190
10049
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
10191
- var TypeId11 = "~effect/http/HttpClientRequest";
10192
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
10050
+ var TypeId10 = "~effect/http/HttpClientRequest";
10051
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10193
10052
  var Proto6 = {
10194
- [TypeId11]: TypeId11,
10053
+ [TypeId10]: TypeId10,
10195
10054
  ...BaseProto,
10196
10055
  toJSON() {
10197
10056
  return {
@@ -10280,7 +10139,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
10280
10139
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
10281
10140
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
10282
10141
  function toUrl(self) {
10283
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
10142
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10284
10143
  if (isSuccess(r)) {
10285
10144
  return some(r.success);
10286
10145
  }
@@ -10288,7 +10147,7 @@ function toUrl(self) {
10288
10147
  }
10289
10148
 
10290
10149
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
10291
- var TypeId12 = "~effect/http/HttpIncomingMessage";
10150
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
10292
10151
  var schemaBodyJson = (schema, options) => {
10293
10152
  const decode = decodeEffect(toCodecJson(schema));
10294
10153
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10307,7 +10166,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10307
10166
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10308
10167
 
10309
10168
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10310
- var TypeId13 = "~effect/http/HttpClientResponse";
10169
+ var TypeId12 = "~effect/http/HttpClientResponse";
10311
10170
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10312
10171
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10313
10172
  reason: new StatusCodeError({
@@ -10318,16 +10177,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10318
10177
  }));
10319
10178
 
10320
10179
  class WebHttpClientResponse extends Class {
10180
+ [TypeId11];
10321
10181
  [TypeId12];
10322
- [TypeId13];
10323
10182
  request;
10324
10183
  source;
10325
10184
  constructor(request, source) {
10326
10185
  super();
10327
10186
  this.request = request;
10328
10187
  this.source = source;
10188
+ this[TypeId11] = TypeId11;
10329
10189
  this[TypeId12] = TypeId12;
10330
- this[TypeId13] = TypeId13;
10331
10190
  }
10332
10191
  toJSON() {
10333
10192
  return inspect(this, {
@@ -10499,7 +10358,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10499
10358
  };
10500
10359
 
10501
10360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10502
- var TypeId14 = "~effect/http/HttpClient";
10361
+ var TypeId13 = "~effect/http/HttpClient";
10503
10362
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10504
10363
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10505
10364
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10516,7 +10375,7 @@ var makeWith2 = (postprocess, preprocess) => {
10516
10375
  return self;
10517
10376
  };
10518
10377
  var Proto7 = {
10519
- [TypeId14]: TypeId14,
10378
+ [TypeId13]: TypeId13,
10520
10379
  pipe() {
10521
10380
  return pipeArguments(this, arguments);
10522
10381
  },
@@ -10530,10 +10389,10 @@ var Proto7 = {
10530
10389
  return this.execute(make5(fullMethod)(url, options));
10531
10390
  }]))
10532
10391
  };
10533
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10392
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10534
10393
  const scopedController = scopedRequests.get(request);
10535
10394
  const controller = scopedController ?? new AbortController;
10536
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10395
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10537
10396
  if (isFailure(urlResult)) {
10538
10397
  return fail7(new HttpClientError({
10539
10398
  reason: new InvalidUrlError({
@@ -10667,8 +10526,8 @@ class InterruptibleResponse {
10667
10526
  this.original = original;
10668
10527
  this.controller = controller;
10669
10528
  }
10670
- [TypeId13] = TypeId13;
10671
10529
  [TypeId12] = TypeId12;
10530
+ [TypeId11] = TypeId11;
10672
10531
  applyInterrupt(effect) {
10673
10532
  return suspend3(() => {
10674
10533
  responseRegistry.unregister(this.original);
@@ -10766,7 +10625,7 @@ var detectStreamBodySupport = () => {
10766
10625
  return false;
10767
10626
  }
10768
10627
  };
10769
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10628
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10770
10629
  if (request.headers.upgrade !== undefined) {
10771
10630
  return fail7(new HttpClientError({
10772
10631
  reason: new TransportError({
@@ -10857,10 +10716,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10857
10716
  });
10858
10717
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10859
10718
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10860
- var TypeId15 = "~effect/socket/Socket";
10719
+ var TypeId14 = "~effect/socket/Socket";
10861
10720
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10862
- var make29 = (options) => Socket.of({
10863
- [TypeId15]: TypeId15,
10721
+ var make28 = (options) => Socket.of({
10722
+ [TypeId14]: TypeId14,
10864
10723
  reader: options.reader,
10865
10724
  writer: options.writer
10866
10725
  });
@@ -11183,7 +11042,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
11183
11042
  write,
11184
11043
  writeAll
11185
11044
  });
11186
- return succeed6(make29({
11045
+ return succeed6(make28({
11187
11046
  reader,
11188
11047
  writer
11189
11048
  }));
@@ -14138,7 +13997,7 @@ function getStreamSchemas(schema) {
14138
13997
  }
14139
13998
  var schema = /* @__PURE__ */ declare(isStream);
14140
13999
  function Stream(success, error) {
14141
- return make16(schema.ast, {
14000
+ return make17(schema.ast, {
14142
14001
  [StreamSchemaTypeId]: StreamSchemaTypeId,
14143
14002
  success,
14144
14003
  error
@@ -14146,9 +14005,9 @@ function Stream(success, error) {
14146
14005
  }
14147
14006
 
14148
14007
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
14149
- var TypeId16 = "~effect/rpc/Rpc";
14008
+ var TypeId15 = "~effect/rpc/Rpc";
14150
14009
  var Proto8 = {
14151
- [TypeId16]: TypeId16,
14010
+ [TypeId15]: TypeId15,
14152
14011
  pipe() {
14153
14012
  return pipeArguments(this, arguments);
14154
14013
  },
@@ -14315,7 +14174,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
14315
14174
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
14316
14175
 
14317
14176
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
14318
- var TypeId17 = "~effect/rpc/RpcClientError";
14177
+ var TypeId16 = "~effect/rpc/RpcClientError";
14319
14178
 
14320
14179
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14321
14180
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14324,11 +14183,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14324
14183
  })) {
14325
14184
  }
14326
14185
 
14327
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14186
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14328
14187
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14329
14188
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14330
14189
  })) {
14331
- [TypeId17] = TypeId17;
14190
+ [TypeId16] = TypeId16;
14332
14191
  get message() {
14333
14192
  return `${this.reason._tag}: ${this.reason.message}`;
14334
14193
  }
@@ -14448,7 +14307,7 @@ var RpcGroupProto = {
14448
14307
  });
14449
14308
  },
14450
14309
  annotateRpcs(service, value) {
14451
- return this.annotateRpcsMerge(make14(service, value));
14310
+ return this.annotateRpcsMerge(make15(service, value));
14452
14311
  },
14453
14312
  annotateMerge(context) {
14454
14313
  return makeProto2({
@@ -14476,7 +14335,7 @@ var make7 = (...rpcs) => makeProto2({
14476
14335
  annotations: empty3()
14477
14336
  });
14478
14337
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14479
- var TypeId18 = "~effect/rpc/RpcMiddleware";
14338
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
14480
14339
  var Service = () => (id, options) => {
14481
14340
  const limit = getStackTraceLimit();
14482
14341
  let creationError;
@@ -14494,7 +14353,7 @@ var Service = () => (id, options) => {
14494
14353
  return creationError?.stack;
14495
14354
  }
14496
14355
  });
14497
- ServiceClass_[TypeId18] = TypeId18;
14356
+ ServiceClass_[TypeId17] = TypeId17;
14498
14357
  ServiceClass_.error = options?.error ?? Never;
14499
14358
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14500
14359
  return ServiceClass;
@@ -15132,7 +14991,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
15132
14991
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
15133
14992
 
15134
14993
  // apps/cli/src/oauth.ts
15135
- var Scope2 = "openid profile email offline_access kitman:cli";
14994
+ var Scope = "openid profile email offline_access kitman:cli";
15136
14995
  var CallbackPath = "/auth/callback";
15137
14996
 
15138
14997
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -15151,7 +15010,7 @@ function buildAuthorizeUrl(input) {
15151
15010
  url.searchParams.set("response_type", "code");
15152
15011
  url.searchParams.set("client_id", input.clientId);
15153
15012
  url.searchParams.set("redirect_uri", input.redirectUri);
15154
- url.searchParams.set("scope", Scope2);
15013
+ url.searchParams.set("scope", Scope);
15155
15014
  url.searchParams.set("code_challenge", input.codeChallenge);
15156
15015
  url.searchParams.set("code_challenge_method", "S256");
15157
15016
  url.searchParams.set("state", input.state);
@@ -15211,7 +15070,7 @@ function toStoredSession(token, existingRefreshToken) {
15211
15070
  }
15212
15071
  function startLoopbackServer(input) {
15213
15072
  return gen(function* () {
15214
- const code = yield* make15();
15073
+ const code = yield* make16();
15215
15074
  const context2 = yield* context();
15216
15075
  const runSyncExit = runSyncExitWith(context2);
15217
15076
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15759,7 +15618,7 @@ var openConnection = (transport) => gen(function* () {
15759
15618
  let lastId = 0;
15760
15619
  let lost = false;
15761
15620
  const notifications = yield* unbounded2();
15762
- const ended = yield* make15();
15621
+ const ended = yield* make16();
15763
15622
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15764
15623
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15765
15624
  onNone: () => void_3,
@@ -15786,7 +15645,7 @@ var openConnection = (transport) => gen(function* () {
15786
15645
  if (lost)
15787
15646
  return yield* new HerdrCoreConnectionLost2({ method });
15788
15647
  const id = ++lastId;
15789
- const deferred = yield* make15();
15648
+ const deferred = yield* make16();
15790
15649
  pending.set(id, { method, deferred });
15791
15650
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15792
15651
  return yield* _await(deferred);
@@ -15860,7 +15719,7 @@ var herdrCoreOver = (transport) => ({
15860
15719
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15861
15720
  };
15862
15721
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15863
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15722
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15864
15723
  }))
15865
15724
  });
15866
15725
  var spawnedTransport = (env) => gen(function* () {
@@ -15951,7 +15810,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15951
15810
  const spawner = yield* ChildProcessSpawner;
15952
15811
  const [command, ...args] = argv;
15953
15812
  const handle = yield* spawner.spawn(make3(command, args, {
15954
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15813
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15955
15814
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15956
15815
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15957
15816
  }));
@@ -16383,4 +16242,4 @@ function checkServices(declaration) {
16383
16242
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
16384
16243
  }
16385
16244
 
16386
- export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
16245
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, failedTestOfLine, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };