@kitman-sh/cli 0.10.82 → 0.10.83

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 (26) hide show
  1. package/dist/{chunk-szf97jdk.js → chunk-1chta572.js} +17 -17
  2. package/dist/{chunk-d4atn90g.js → chunk-20rbya07.js} +31 -31
  3. package/dist/{chunk-tzz4fv17.js → chunk-292vjjdz.js} +1 -1
  4. package/dist/{chunk-xb70ys3n.js → chunk-2fqry6rd.js} +34 -177
  5. package/dist/{chunk-zzhewave.js → chunk-2rpwpzt5.js} +15 -15
  6. package/dist/{chunk-8p0psats.js → chunk-66fhj0c3.js} +12 -10
  7. package/dist/{chunk-by4t402z.js → chunk-6kt28g8r.js} +68 -27
  8. package/dist/{chunk-ky974pcr.js → chunk-72232jhj.js} +4 -4
  9. package/dist/{chunk-kgdppbdr.js → chunk-7bsf0fyh.js} +1 -6
  10. package/dist/{chunk-pkn6g975.js → chunk-7wag4s6j.js} +4 -4
  11. package/dist/{chunk-76ctrqm6.js → chunk-93vddjpx.js} +1 -1
  12. package/dist/{chunk-e8zm8z3a.js → chunk-999xbcaa.js} +6 -6
  13. package/dist/{chunk-jr1363cj.js → chunk-adqabkwv.js} +5 -5
  14. package/dist/{chunk-98sg1yyd.js → chunk-bjexx93x.js} +2 -2
  15. package/dist/{chunk-62565d52.js → chunk-by54dw1n.js} +2 -2
  16. package/dist/{chunk-a03wf71k.js → chunk-dzthc6th.js} +6 -6
  17. package/dist/{chunk-q767c0cv.js → chunk-hccw303w.js} +7 -7
  18. package/dist/{chunk-9zd52pda.js → chunk-mr30hj39.js} +5 -5
  19. package/dist/{chunk-q4cpages.js → chunk-ptp9p22x.js} +18 -18
  20. package/dist/{chunk-fq47a5yd.js → chunk-qnnsy306.js} +2 -2
  21. package/dist/{chunk-5my30s53.js → chunk-smnx6fad.js} +8 -8
  22. package/dist/{chunk-gn0v83as.js → chunk-tnqzvx55.js} +311 -146
  23. package/dist/{chunk-2mxpxw3j.js → chunk-xbyd16q3.js} +3 -3
  24. package/dist/{chunk-jbwk6k6m.js → chunk-xq4k0mgr.js} +60 -60
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -84,14 +86,14 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
87
- ClockRef,
88
- currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
+ void_2,
92
93
  isSuccess2,
94
+ isFailure2,
93
95
  makeUnsafe5,
94
- make16,
96
+ make15,
95
97
  _await,
96
98
  fail5,
97
99
  isDone,
@@ -99,8 +101,12 @@ import {
99
101
  succeed4,
100
102
  doneUnsafe,
101
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
102
106
  provide,
107
+ addFinalizerExit,
103
108
  addFinalizer,
109
+ close,
104
110
  succeed5,
105
111
  effect,
106
112
  effectContext,
@@ -152,6 +158,7 @@ import {
152
158
  tapCause,
153
159
  retry,
154
160
  ignore,
161
+ ignoreCause,
155
162
  orElseSucceed,
156
163
  timeout,
157
164
  timeoutOrElse,
@@ -163,6 +170,7 @@ import {
163
170
  context,
164
171
  contextWith,
165
172
  provide3,
173
+ provideContext2,
166
174
  serviceOption,
167
175
  updateContext,
168
176
  provideService,
@@ -173,6 +181,7 @@ import {
173
181
  addFinalizer2,
174
182
  ensuring2,
175
183
  onError,
184
+ onExit,
176
185
  cached,
177
186
  interrupt3,
178
187
  interruptible,
@@ -184,6 +193,7 @@ import {
184
193
  withParentSpan,
185
194
  forkScoped,
186
195
  runFork,
196
+ runForkWith,
187
197
  runPromise,
188
198
  runPromiseWith,
189
199
  runSync,
@@ -202,7 +212,7 @@ import {
202
212
  decodeEffect,
203
213
  decodeUnknownOption,
204
214
  decodeOption,
205
- make17,
215
+ make16,
206
216
  isSchema,
207
217
  optionalKey,
208
218
  optional,
@@ -249,11 +259,31 @@ import {
249
259
  decodeJsonStringOption,
250
260
  encodeJsonStringSync,
251
261
  encodePrettyJsonString
252
- } from "./chunk-jbwk6k6m.js";
262
+ } from "./chunk-xq4k0mgr.js";
263
+ import {
264
+ toJsonValue,
265
+ isOneOf,
266
+ isBigInt,
267
+ isBoolean,
268
+ isFunction,
269
+ isNumber,
270
+ isObject,
271
+ isJsonObject,
272
+ isString,
273
+ isSymbol,
274
+ isUndefined,
275
+ kindOf
276
+ } from "./chunk-292vjjdz.js";
253
277
  import {
254
278
  map,
255
279
  makeEquivalence,
280
+ Clock,
281
+ currentTimeMillis,
256
282
  bytes,
283
+ join,
284
+ interrupt,
285
+ getCurrent,
286
+ runIn,
257
287
  BadArgument,
258
288
  systemError,
259
289
  badArgument,
@@ -275,13 +305,11 @@ import {
275
305
  isSink,
276
306
  fromChannel,
277
307
  drain,
278
- make10,
279
- get3,
280
308
  isStream,
281
309
  fromChannel2,
282
310
  callback,
283
311
  empty2,
284
- make11,
312
+ make10,
285
313
  suspend,
286
314
  fail2,
287
315
  fromQueue,
@@ -307,43 +335,16 @@ import {
307
335
  mkArrayBuffer,
308
336
  toReadableStreamEffect,
309
337
  FileSystem,
310
- make12,
338
+ make11,
311
339
  FileTypeId,
312
340
  WatchBackend,
313
341
  Path,
314
- make13,
342
+ make12,
315
343
  option,
316
344
  String2,
317
345
  optionalEnv,
318
346
  harnessesUnsupportedInSrt2
319
- } from "./chunk-xb70ys3n.js";
320
- import {
321
- isDateTime,
322
- Numeric,
323
- isWholeNumber,
324
- guard,
325
- Id,
326
- Timestamp,
327
- ActorType,
328
- SecretName,
329
- SecretScope,
330
- SecretHosts,
331
- isSecretReference
332
- } from "./chunk-kgdppbdr.js";
333
- import {
334
- toJsonValue,
335
- isOneOf,
336
- isBigInt,
337
- isBoolean,
338
- isFunction,
339
- isNumber,
340
- isObject,
341
- isJsonObject,
342
- isString,
343
- isSymbol,
344
- isUndefined,
345
- kindOf
346
- } from "./chunk-tzz4fv17.js";
347
+ } from "./chunk-2fqry6rd.js";
347
348
  import {
348
349
  isRedacted,
349
350
  make,
@@ -357,15 +358,24 @@ import {
357
358
  make3,
358
359
  parseFdName,
359
360
  fdName
360
- } from "./chunk-98sg1yyd.js";
361
+ } from "./chunk-bjexx93x.js";
362
+ import {
363
+ isDateTime,
364
+ Numeric,
365
+ isWholeNumber,
366
+ guard,
367
+ Id,
368
+ Timestamp,
369
+ ActorType,
370
+ SecretName,
371
+ SecretScope,
372
+ SecretHosts,
373
+ isSecretReference
374
+ } from "./chunk-7bsf0fyh.js";
361
375
 
362
376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
377
  var makeEquivalence3 = Tuple;
364
378
 
365
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
366
- var Clock = ClockRef;
367
- var currentTimeMillis = currentTimeMillis2;
368
-
369
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
370
380
  var TypeId = "~effect/DateTime";
371
381
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -500,7 +510,7 @@ var fromDateUnsafe = (date) => {
500
510
  }
501
511
  return makeUtc(epochMillis);
502
512
  };
503
- var makeUnsafe6 = (input) => {
513
+ var makeUnsafe7 = (input) => {
504
514
  if (isDateTime2(input)) {
505
515
  return input;
506
516
  } else if (input instanceof Date) {
@@ -520,7 +530,7 @@ var makeUnsafe6 = (input) => {
520
530
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
531
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
532
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
533
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
534
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
535
  var nowUnsafe = () => makeUtc(Date.now());
526
536
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +637,7 @@ class Metric$ {
627
637
  }
628
638
  hook(context) {
629
639
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
640
+ const registry = get3(context, MetricRegistry);
631
641
  let metadata = registry.get(key);
632
642
  if (isUndefined2(metadata)) {
633
643
  metadata = this.metadata(this.createHooks());
@@ -636,11 +646,11 @@ class Metric$ {
636
646
  return metadata.hooks;
637
647
  }
638
648
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
649
+ get3(context, MetricRegistry).delete(this.key(context));
640
650
  }
641
651
  registerUnsafe(context, hooks) {
642
652
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
653
+ const registry = get3(context, MetricRegistry);
644
654
  const metadata = this.metadata({
645
655
  get: hooks.get,
646
656
  update: constVoid,
@@ -656,7 +666,7 @@ class Metric$ {
656
666
  };
657
667
  }
658
668
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
669
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
670
  if (extraAttributes !== this.#extraAttributes) {
661
671
  this.#extraAttributes = extraAttributes;
662
672
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -908,9 +918,151 @@ var toNumber = (b) => {
908
918
  return some(Number(b));
909
919
  };
910
920
 
921
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
922
+ var TypeId3 = "~effect/RcRef";
923
+ var stateEmpty = {
924
+ _tag: "Empty"
925
+ };
926
+ var stateClosed = {
927
+ _tag: "Closed"
928
+ };
929
+ var variance = {
930
+ _A: identity,
931
+ _E: identity
932
+ };
933
+
934
+ class RcRefImpl {
935
+ [TypeId3] = variance;
936
+ pipe() {
937
+ return pipeArguments(this, arguments);
938
+ }
939
+ state = stateEmpty;
940
+ acquire;
941
+ context;
942
+ scope;
943
+ idleTimeToLive;
944
+ constructor(acquire, context, scope, idleTimeToLive) {
945
+ this.acquire = acquire;
946
+ this.context = context;
947
+ this.scope = scope;
948
+ this.idleTimeToLive = idleTimeToLive;
949
+ }
950
+ }
951
+ var make17 = (options) => withFiber2((fiber) => {
952
+ const context = fiber.context;
953
+ const scope = get3(context, Scope);
954
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
955
+ return as(addFinalizerExit(scope, () => {
956
+ const state = ref.state;
957
+ ref.state = stateClosed;
958
+ if (state._tag === "Acquired")
959
+ return close(state.scope, void_2);
960
+ if (state._tag === "Acquiring")
961
+ return interrupt(state.fiber);
962
+ return void_3;
963
+ }), ref);
964
+ });
965
+ var getState = (self, restore) => {
966
+ switch (self.state._tag) {
967
+ case "Closed": {
968
+ return interrupt3;
969
+ }
970
+ case "Acquired": {
971
+ const state = self.state;
972
+ state.refCount++;
973
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
974
+ }
975
+ case "Acquiring": {
976
+ const state = self.state;
977
+ state.awaiters++;
978
+ return awaitAcquiring(self, state, restore);
979
+ }
980
+ case "Empty": {
981
+ const acquiring = {
982
+ _tag: "Acquiring",
983
+ fiber: undefined,
984
+ awaiters: 1,
985
+ acquired: undefined
986
+ };
987
+ self.state = acquiring;
988
+ const scope = makeUnsafe6();
989
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
990
+ if (self.state !== acquiring) {
991
+ return interrupt3;
992
+ }
993
+ const state = {
994
+ _tag: "Acquired",
995
+ value,
996
+ scope,
997
+ fiber: undefined,
998
+ refCount: acquiring.awaiters,
999
+ invalidated: false
1000
+ };
1001
+ self.state = state;
1002
+ acquiring.acquired = state;
1003
+ return succeed6(state);
1004
+ }), onExit((exit) => {
1005
+ if (isSuccess2(exit))
1006
+ return void_3;
1007
+ if (self.state === acquiring)
1008
+ self.state = stateEmpty;
1009
+ return close(scope, exit);
1010
+ }));
1011
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1012
+ return awaitAcquiring(self, acquiring, restore);
1013
+ }
1014
+ }
1015
+ };
1016
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1017
+ const acquired = acquiring.acquired;
1018
+ if (acquired !== undefined) {
1019
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1020
+ }
1021
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1022
+ return void_3;
1023
+ self.state = stateEmpty;
1024
+ return interrupt(acquiring.fiber);
1025
+ });
1026
+ var get4 = (self_) => {
1027
+ const self = self_;
1028
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1029
+ };
1030
+ var release = (self, state) => {
1031
+ state.refCount--;
1032
+ if (state.refCount > 0) {
1033
+ return void_3;
1034
+ }
1035
+ const idleTimeToLive = self.idleTimeToLive;
1036
+ if (idleTimeToLive === undefined || state.invalidated) {
1037
+ if (self.state === state) {
1038
+ self.state = stateEmpty;
1039
+ }
1040
+ return close(state.scope, void_2);
1041
+ } else if (!isFinite(idleTimeToLive)) {
1042
+ return void_3;
1043
+ }
1044
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1045
+ if (self.state === state && state.refCount === 0) {
1046
+ self.state = stateEmpty;
1047
+ return ignoreCause(close(state.scope, void_2), {
1048
+ log: "Unhandled",
1049
+ message: "Unhandled error in RcRef finalizer"
1050
+ });
1051
+ }
1052
+ return void_3;
1053
+ })).pipe(ensuring2(sync2(() => {
1054
+ state.fiber = undefined;
1055
+ })), runForkWith(self.context), runIn(self.scope));
1056
+ return void_3;
1057
+ };
1058
+
1059
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1060
+ var make18 = make17;
1061
+ var get5 = get4;
1062
+
911
1063
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make4;
1064
+ var makeUnsafe = makeUnsafe7;
1065
+ var make19 = make4;
914
1066
  var now2 = now;
915
1067
  var nowUnsafe2 = nowUnsafe;
916
1068
  var toDateUtc2 = toDateUtc;
@@ -1229,7 +1381,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1381
  windowsHide: true
1230
1382
  }, onExit);
1231
1383
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1384
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1385
  const fs = yield* FileSystem;
1234
1386
  const path = yield* Path;
1235
1387
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1758,7 +1910,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1758
1910
  });
1759
1911
  return make2(spawnCommand);
1760
1912
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1913
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1914
  var flattenCommand = (command) => {
1763
1915
  const commands = [];
1764
1916
  const pipeOptions = [];
@@ -2242,7 +2394,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2394
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2395
  }
2244
2396
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2397
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2246
2398
  access: access2,
2247
2399
  chmod: chmod2,
2248
2400
  chown: chown2,
@@ -2302,15 +2454,15 @@ var fileUrlOps = (windows) => ({
2302
2454
  })
2303
2455
  })
2304
2456
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2457
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2458
  ...NodePath.posix,
2307
2459
  .../* @__PURE__ */ fileUrlOps(false)
2308
2460
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2461
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2310
2462
  ...NodePath.win32,
2311
2463
  .../* @__PURE__ */ fileUrlOps(true)
2312
2464
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2465
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2314
2466
  ...NodePath,
2315
2467
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2468
  }));
@@ -2319,10 +2471,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2319
2471
  var layer2 = layer7;
2320
2472
 
2321
2473
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2322
- var TypeId3 = "~effect/Stdio";
2323
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
- var make20 = (options) => ({
2325
- [TypeId3]: TypeId3,
2474
+ var TypeId4 = "~effect/Stdio";
2475
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2476
+ var make21 = (options) => ({
2477
+ [TypeId4]: TypeId4,
2326
2478
  stdinIsTerminal: succeed6(false),
2327
2479
  stdoutIsTerminal: succeed6(false),
2328
2480
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2482,7 @@ var make20 = (options) => ({
2330
2482
  });
2331
2483
 
2332
2484
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2333
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2485
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2486
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2487
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2488
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2682,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2682
  const uuid = bytes(randomBytes(16));
2531
2683
  return format === "bytes" ? uuid : stringify(uuid);
2532
2684
  };
2533
- var make21 = (randomBytes) => {
2685
+ var make22 = (randomBytes) => {
2534
2686
  const randomBytesChecked = (size) => {
2535
2687
  checkSize(size);
2536
2688
  return randomBytes(size);
@@ -2564,13 +2716,13 @@ var fillRandom = (crypto2, size) => {
2564
2716
  }
2565
2717
  return bytes;
2566
2718
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2719
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2720
 
2569
2721
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2722
+ var TypeId5 = "~effect/http/Cookies";
2571
2723
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2724
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2725
+ [TypeId5]: TypeId5,
2574
2726
  ...BaseProto,
2575
2727
  toJSON() {
2576
2728
  return {
@@ -2749,14 +2901,14 @@ var tryDecodeURIComponent = (str) => {
2749
2901
  };
2750
2902
 
2751
2903
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2904
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2905
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2906
+ [TypeId6]: {
2907
+ value: TypeId6
2756
2908
  },
2757
2909
  [symbolRedactable]: {
2758
2910
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2911
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2912
  }
2761
2913
  },
2762
2914
  toJSON: {
@@ -2781,7 +2933,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2933
  value: BaseProto[NodeInspectSymbol]
2782
2934
  }
2783
2935
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2936
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2937
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2938
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2939
  var fromInput = (input) => {
@@ -2806,21 +2958,21 @@ var fromInput = (input) => {
2806
2958
  };
2807
2959
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2960
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2961
+ const out = make23(self);
2810
2962
  out[key.toLowerCase()] = value;
2811
2963
  return out;
2812
2964
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2965
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2966
  ...self,
2815
2967
  ...fromInput(headers)
2816
2968
  }));
2817
2969
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2970
+ const out = make23(self);
2819
2971
  Object.assign(out, headers);
2820
2972
  return out;
2821
2973
  });
2822
2974
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2975
+ const out = make23(self);
2824
2976
  delete out[key.toLowerCase()];
2825
2977
  return out;
2826
2978
  });
@@ -2877,18 +3029,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3029
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3030
 
2879
3031
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2880
- var TypeId6 = "~effect/http/UrlParams";
2881
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3032
+ var TypeId7 = "~effect/http/UrlParams";
3033
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3034
  var Proto4 = {
2883
3035
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3036
+ [TypeId7]: TypeId7,
2885
3037
  [Symbol.iterator]() {
2886
3038
  return this.params[Symbol.iterator]();
2887
3039
  },
2888
3040
  [symbolRedactable](context) {
2889
3041
  return {
2890
3042
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3043
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3044
  };
2893
3045
  },
2894
3046
  toJSON() {
@@ -2901,7 +3053,7 @@ var Proto4 = {
2901
3053
  return array(this.params.flat());
2902
3054
  }
2903
3055
  };
2904
- var make23 = (params) => {
3056
+ var make24 = (params) => {
2905
3057
  const self = Object.create(Proto4);
2906
3058
  self.params = params;
2907
3059
  return self;
@@ -2920,7 +3072,7 @@ var fromInput2 = (input) => {
2920
3072
  out.push(parsed[i]);
2921
3073
  }
2922
3074
  }
2923
- return make23(out);
3075
+ return make24(out);
2924
3076
  };
2925
3077
  var fromInputNested = (input) => {
2926
3078
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,9 +3096,9 @@ var fromInputNested = (input) => {
2944
3096
  return out;
2945
3097
  };
2946
3098
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3099
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3100
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3101
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3102
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3103
  const params = fromInput2(input).params.slice();
2952
3104
  const keys = new Set;
@@ -2958,7 +3110,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3110
  continue;
2959
3111
  params.push(self.params[i]);
2960
3112
  }
2961
- return make23(params);
3113
+ return make24(params);
2962
3114
  });
2963
3115
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3116
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3014,13 +3166,13 @@ var decodeQueryKey = (key) => {
3014
3166
  return key;
3015
3167
  }
3016
3168
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3169
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3170
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3171
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3172
  });
3021
3173
 
3022
3174
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3175
+ var TypeId8 = "~effect/Terminal";
3024
3176
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3177
 
3026
3178
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,14 +3181,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3181
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3182
  }
3031
3183
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3184
+ var make25 = (impl) => Terminal.of({
3033
3185
  ...impl,
3034
- [TypeId7]: TypeId7
3186
+ [TypeId8]: TypeId8
3035
3187
  });
3036
3188
 
3037
3189
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3190
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3191
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3192
  const stdin = process.stdin;
3041
3193
  const stdout = process.stdout;
3042
3194
  const lines = yield* make9();
@@ -3050,7 +3202,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3202
  };
3051
3203
  stdin.once("end", onStdinEnd);
3052
3204
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make10({
3205
+ const rlRef = yield* make18({
3054
3206
  acquire: acquireRelease(sync2(() => {
3055
3207
  const rl = readline.createInterface({
3056
3208
  input: stdin,
@@ -3089,7 +3241,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3241
  if (stdin.isTTY)
3090
3242
  stdin.setRawMode(enabled);
3091
3243
  });
3092
- const rawModeRef = yield* make10({
3244
+ const rawModeRef = yield* make18({
3093
3245
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3246
  idleTimeToLive: "10 millis"
3095
3247
  });
@@ -3140,14 +3292,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3292
  if (inputEnded) {
3141
3293
  handleEnd();
3142
3294
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3295
+ yield* get5(rlRef);
3296
+ yield* get5(rawModeRef);
3145
3297
  stdin.once("end", handleEnd);
3146
3298
  }
3147
3299
  return queue;
3148
3300
  });
3149
3301
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3302
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3303
  onSome: succeed6
3152
3304
  })), mapError2(() => new QuitError({}))));
3153
3305
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3310,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3310
  cause: err
3159
3311
  }))));
3160
3312
  }));
3161
- return make24({
3313
+ return make25({
3162
3314
  columns,
3163
3315
  rows,
3164
3316
  size,
@@ -3167,7 +3319,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3319
  display
3168
3320
  });
3169
3321
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3322
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3323
  function defaultShouldQuit(input) {
3172
3324
  const key = input.key;
3173
3325
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3346,7 @@ function toDate(input) {
3194
3346
  return toDateUtc2(makeUnsafe(input));
3195
3347
  }
3196
3348
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3349
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3350
  }
3199
3351
  function toIso(input) {
3200
3352
  return formatIso(makeUnsafe(input));
@@ -6790,6 +6942,12 @@ var MeasureEvidence = Struct({
6790
6942
  head: MeasureSamples,
6791
6943
  baseAgain: optionalKey(MeasureSamples)
6792
6944
  });
6945
+ var ResolveSpec = Struct({
6946
+ revisions: ArraySchema(String4.check(isMinLength(1), isMaxLength(240))).check(isMinLength(1), isMaxLength(10))
6947
+ });
6948
+ var ResolvedRevisions = Struct({
6949
+ commits: ArraySchema(String4.check(isPattern(new RegExp("^[0-9a-f]{40}([0-9a-f]{24})?$", "u"))))
6950
+ });
6793
6951
  var VerificationWorkUnit = Struct({
6794
6952
  kind: Literal("verification"),
6795
6953
  id: Id,
@@ -6802,6 +6960,7 @@ var VerificationWorkUnit = Struct({
6802
6960
  baseline: optionalKey(String4.check(isMinLength(1), isMaxLength(300))),
6803
6961
  checks: ArraySchema(RepositoryCheck).check(isMaxLength(50)),
6804
6962
  measure: optionalKey(MeasureSpec),
6963
+ resolve: optionalKey(ResolveSpec),
6805
6964
  hosts: optionalKey(ArraySchema(NetworkHost)),
6806
6965
  storageOrigin: StorageOrigin
6807
6966
  });
@@ -6850,7 +7009,8 @@ var TreeEvidence = Struct({
6850
7009
  var VerificationEvidence = Struct({
6851
7010
  head: TreeEvidence,
6852
7011
  baseline: optionalKey(TreeEvidence),
6853
- measurement: optionalKey(MeasureEvidence)
7012
+ measurement: optionalKey(MeasureEvidence),
7013
+ resolved: optionalKey(ResolvedRevisions)
6854
7014
  });
6855
7015
  var BoundaryChange = Struct({
6856
7016
  kind: Literal("change"),
@@ -6893,6 +7053,7 @@ var WorkUnitOutcome = Struct({
6893
7053
  evidence: optionalKey(VerificationEvidence),
6894
7054
  boundary: optionalKey(BoundaryChange),
6895
7055
  catchUp: optionalKey(CatchUp),
7056
+ syncedTarget: optionalKey(Revision),
6896
7057
  harnessHold: optionalKey(HarnessHold),
6897
7058
  restart: optionalKey(StepRestart),
6898
7059
  failureSummary: optionalKey(String4.check(isMinLength(1), isMaxLength(4000)))
@@ -7162,7 +7323,8 @@ var RunnerCapabilities = Struct({
7162
7323
  repoBindings: optionalKey(ArraySchema(RunnerRepoBindingCapability)),
7163
7324
  runs: optionalKey(RunnerLoopExecutionCapability),
7164
7325
  resourceLimits: optionalKey(RunnerResourceLimits),
7165
- measure: optionalKey(Boolean2)
7326
+ measure: optionalKey(Boolean2),
7327
+ resolve: optionalKey(Boolean2)
7166
7328
  });
7167
7329
  var Runner = Struct({
7168
7330
  id: Id,
@@ -9385,11 +9547,11 @@ var TranscriptSearchResult = Struct({
9385
9547
  total: Int
9386
9548
  });
9387
9549
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9388
- var TypeId8 = "~effect/http/HttpBody";
9550
+ var TypeId9 = "~effect/http/HttpBody";
9389
9551
  class Proto5 {
9390
- [TypeId8];
9552
+ [TypeId9];
9391
9553
  constructor() {
9392
- this[TypeId8] = TypeId8;
9554
+ this[TypeId9] = TypeId9;
9393
9555
  }
9394
9556
  [NodeInspectSymbol]() {
9395
9557
  return this.toJSON();
@@ -9480,7 +9642,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9480
9642
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9481
9643
 
9482
9644
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9483
- var TypeId9 = "~effect/http/HttpClientError";
9645
+ var TypeId10 = "~effect/http/HttpClientError";
9484
9646
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9485
9647
  constructor(props) {
9486
9648
  if ("cause" in props.reason) {
@@ -9492,7 +9654,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9492
9654
  super(props);
9493
9655
  }
9494
9656
  }
9495
- [TypeId9] = TypeId9;
9657
+ [TypeId10] = TypeId10;
9496
9658
  get request() {
9497
9659
  return this.reason.request;
9498
9660
  }
@@ -9596,7 +9758,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9596
9758
  }
9597
9759
  }
9598
9760
 
9599
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9761
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9600
9762
  _tag: /* @__PURE__ */ tag("HttpError"),
9601
9763
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9602
9764
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9629,7 +9791,7 @@ var updateContentLength = (headers, body) => {
9629
9791
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9630
9792
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9631
9793
  }
9632
- var make26 = (url, params, hash) => try_({
9794
+ var make27 = (url, params, hash) => try_({
9633
9795
  try: () => {
9634
9796
  const urlInstance = new URL(url, baseUrl());
9635
9797
  for (let i = 0;i < params.params.length; i++) {
@@ -9660,10 +9822,10 @@ var baseUrl = () => {
9660
9822
  };
9661
9823
 
9662
9824
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9663
- var TypeId10 = "~effect/http/HttpClientRequest";
9664
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9825
+ var TypeId11 = "~effect/http/HttpClientRequest";
9826
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9665
9827
  var Proto6 = {
9666
- [TypeId10]: TypeId10,
9828
+ [TypeId11]: TypeId11,
9667
9829
  ...BaseProto,
9668
9830
  toJSON() {
9669
9831
  return {
@@ -9752,7 +9914,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9752
9914
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9753
9915
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9754
9916
  function toUrl(self) {
9755
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9917
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9756
9918
  if (isSuccess(r)) {
9757
9919
  return some(r.success);
9758
9920
  }
@@ -9760,7 +9922,7 @@ function toUrl(self) {
9760
9922
  }
9761
9923
 
9762
9924
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9763
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9925
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9764
9926
  var schemaBodyJson = (schema, options) => {
9765
9927
  const decode = decodeEffect(toCodecJson(schema));
9766
9928
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9779,7 +9941,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9779
9941
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9780
9942
 
9781
9943
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9782
- var TypeId12 = "~effect/http/HttpClientResponse";
9944
+ var TypeId13 = "~effect/http/HttpClientResponse";
9783
9945
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9784
9946
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9785
9947
  reason: new StatusCodeError({
@@ -9790,16 +9952,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9790
9952
  }));
9791
9953
 
9792
9954
  class WebHttpClientResponse extends Class {
9793
- [TypeId11];
9794
9955
  [TypeId12];
9956
+ [TypeId13];
9795
9957
  request;
9796
9958
  source;
9797
9959
  constructor(request, source) {
9798
9960
  super();
9799
9961
  this.request = request;
9800
9962
  this.source = source;
9801
- this[TypeId11] = TypeId11;
9802
9963
  this[TypeId12] = TypeId12;
9964
+ this[TypeId13] = TypeId13;
9803
9965
  }
9804
9966
  toJSON() {
9805
9967
  return inspect(this, {
@@ -9971,7 +10133,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9971
10133
  };
9972
10134
 
9973
10135
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9974
- var TypeId13 = "~effect/http/HttpClient";
10136
+ var TypeId14 = "~effect/http/HttpClient";
9975
10137
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9976
10138
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9977
10139
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9988,7 +10150,7 @@ var makeWith2 = (postprocess, preprocess) => {
9988
10150
  return self;
9989
10151
  };
9990
10152
  var Proto7 = {
9991
- [TypeId13]: TypeId13,
10153
+ [TypeId14]: TypeId14,
9992
10154
  pipe() {
9993
10155
  return pipeArguments(this, arguments);
9994
10156
  },
@@ -10002,10 +10164,10 @@ var Proto7 = {
10002
10164
  return this.execute(make5(fullMethod)(url, options));
10003
10165
  }]))
10004
10166
  };
10005
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10167
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10006
10168
  const scopedController = scopedRequests.get(request);
10007
10169
  const controller = scopedController ?? new AbortController;
10008
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10170
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10009
10171
  if (isFailure(urlResult)) {
10010
10172
  return fail7(new HttpClientError({
10011
10173
  reason: new InvalidUrlError({
@@ -10139,8 +10301,8 @@ class InterruptibleResponse {
10139
10301
  this.original = original;
10140
10302
  this.controller = controller;
10141
10303
  }
10304
+ [TypeId13] = TypeId13;
10142
10305
  [TypeId12] = TypeId12;
10143
- [TypeId11] = TypeId11;
10144
10306
  applyInterrupt(effect) {
10145
10307
  return suspend3(() => {
10146
10308
  responseRegistry.unregister(this.original);
@@ -10238,7 +10400,7 @@ var detectStreamBodySupport = () => {
10238
10400
  return false;
10239
10401
  }
10240
10402
  };
10241
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10403
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10242
10404
  if (request.headers.upgrade !== undefined) {
10243
10405
  return fail7(new HttpClientError({
10244
10406
  reason: new TransportError({
@@ -10329,10 +10491,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10329
10491
  });
10330
10492
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10331
10493
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10332
- var TypeId14 = "~effect/socket/Socket";
10494
+ var TypeId15 = "~effect/socket/Socket";
10333
10495
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10334
- var make28 = (options) => Socket.of({
10335
- [TypeId14]: TypeId14,
10496
+ var make29 = (options) => Socket.of({
10497
+ [TypeId15]: TypeId15,
10336
10498
  reader: options.reader,
10337
10499
  writer: options.writer
10338
10500
  });
@@ -10655,7 +10817,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10655
10817
  write,
10656
10818
  writeAll
10657
10819
  });
10658
- return succeed6(make28({
10820
+ return succeed6(make29({
10659
10821
  reader,
10660
10822
  writer
10661
10823
  }));
@@ -13507,7 +13669,7 @@ function getStreamSchemas(schema) {
13507
13669
  }
13508
13670
  var schema = /* @__PURE__ */ declare(isStream);
13509
13671
  function Stream(success, error) {
13510
- return make17(schema.ast, {
13672
+ return make16(schema.ast, {
13511
13673
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13512
13674
  success,
13513
13675
  error
@@ -13515,9 +13677,9 @@ function Stream(success, error) {
13515
13677
  }
13516
13678
 
13517
13679
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13518
- var TypeId15 = "~effect/rpc/Rpc";
13680
+ var TypeId16 = "~effect/rpc/Rpc";
13519
13681
  var Proto8 = {
13520
- [TypeId15]: TypeId15,
13682
+ [TypeId16]: TypeId16,
13521
13683
  pipe() {
13522
13684
  return pipeArguments(this, arguments);
13523
13685
  },
@@ -13684,7 +13846,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13684
13846
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13685
13847
 
13686
13848
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13687
- var TypeId16 = "~effect/rpc/RpcClientError";
13849
+ var TypeId17 = "~effect/rpc/RpcClientError";
13688
13850
 
13689
13851
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13690
13852
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13693,11 +13855,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13693
13855
  })) {
13694
13856
  }
13695
13857
 
13696
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13858
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13697
13859
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13698
13860
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13699
13861
  })) {
13700
- [TypeId16] = TypeId16;
13862
+ [TypeId17] = TypeId17;
13701
13863
  get message() {
13702
13864
  return `${this.reason._tag}: ${this.reason.message}`;
13703
13865
  }
@@ -13817,7 +13979,7 @@ var RpcGroupProto = {
13817
13979
  });
13818
13980
  },
13819
13981
  annotateRpcs(service, value) {
13820
- return this.annotateRpcsMerge(make15(service, value));
13982
+ return this.annotateRpcsMerge(make14(service, value));
13821
13983
  },
13822
13984
  annotateMerge(context) {
13823
13985
  return makeProto2({
@@ -13845,7 +14007,7 @@ var make7 = (...rpcs) => makeProto2({
13845
14007
  annotations: empty3()
13846
14008
  });
13847
14009
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13848
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14010
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13849
14011
  var Service = () => (id, options) => {
13850
14012
  const limit = getStackTraceLimit();
13851
14013
  let creationError;
@@ -13863,7 +14025,7 @@ var Service = () => (id, options) => {
13863
14025
  return creationError?.stack;
13864
14026
  }
13865
14027
  });
13866
- ServiceClass_[TypeId17] = TypeId17;
14028
+ ServiceClass_[TypeId18] = TypeId18;
13867
14029
  ServiceClass_.error = options?.error ?? Never;
13868
14030
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13869
14031
  return ServiceClass;
@@ -14085,7 +14247,8 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14085
14247
  plan: MeasurePlan,
14086
14248
  samples: Int,
14087
14249
  calibrate: Boolean2
14088
- }))
14250
+ })),
14251
+ resolve: optionalKey(ResolveSpec)
14089
14252
  },
14090
14253
  success: Struct({ verificationId: String4 }),
14091
14254
  error: RunnerRpcError
@@ -14226,6 +14389,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14226
14389
  runnerChecks: optionalKey(ArraySchema(String4)),
14227
14390
  approved: optionalKey(String4),
14228
14391
  repository: optionalKey(String4),
14392
+ targetBranch: optionalKey(String4),
14229
14393
  conflicts: optionalKey(Boolean2),
14230
14394
  needsRebase: optionalKey(Boolean2),
14231
14395
  target: optionalKey(Struct({
@@ -14459,7 +14623,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14459
14623
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14460
14624
 
14461
14625
  // apps/cli/src/oauth.ts
14462
- var Scope = "openid profile email offline_access kitman:cli";
14626
+ var Scope2 = "openid profile email offline_access kitman:cli";
14463
14627
  var CallbackPath = "/auth/callback";
14464
14628
 
14465
14629
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14478,7 +14642,7 @@ function buildAuthorizeUrl(input) {
14478
14642
  url.searchParams.set("response_type", "code");
14479
14643
  url.searchParams.set("client_id", input.clientId);
14480
14644
  url.searchParams.set("redirect_uri", input.redirectUri);
14481
- url.searchParams.set("scope", Scope);
14645
+ url.searchParams.set("scope", Scope2);
14482
14646
  url.searchParams.set("code_challenge", input.codeChallenge);
14483
14647
  url.searchParams.set("code_challenge_method", "S256");
14484
14648
  url.searchParams.set("state", input.state);
@@ -14538,7 +14702,7 @@ function toStoredSession(token, existingRefreshToken) {
14538
14702
  }
14539
14703
  function startLoopbackServer(input) {
14540
14704
  return gen(function* () {
14541
- const code = yield* make16();
14705
+ const code = yield* make15();
14542
14706
  const context2 = yield* context();
14543
14707
  const runSyncExit = runSyncExitWith(context2);
14544
14708
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15078,7 +15242,7 @@ var openConnection = (transport) => gen(function* () {
15078
15242
  let lastId = 0;
15079
15243
  let lost = false;
15080
15244
  const notifications = yield* unbounded2();
15081
- const ended = yield* make16();
15245
+ const ended = yield* make15();
15082
15246
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15083
15247
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15084
15248
  onNone: () => void_3,
@@ -15105,7 +15269,7 @@ var openConnection = (transport) => gen(function* () {
15105
15269
  if (lost)
15106
15270
  return yield* new HerdrCoreConnectionLost2({ method });
15107
15271
  const id = ++lastId;
15108
- const deferred = yield* make16();
15272
+ const deferred = yield* make15();
15109
15273
  pending.set(id, { method, deferred });
15110
15274
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15111
15275
  return yield* _await(deferred);
@@ -15179,7 +15343,7 @@ var herdrCoreOver = (transport) => ({
15179
15343
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15180
15344
  };
15181
15345
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15182
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15346
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15183
15347
  }))
15184
15348
  });
15185
15349
  var spawnedTransport = (env) => gen(function* () {
@@ -15270,7 +15434,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15270
15434
  const spawner = yield* ChildProcessSpawner;
15271
15435
  const [command, ...args] = argv;
15272
15436
  const handle = yield* spawner.spawn(make3(command, args, {
15273
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15437
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15274
15438
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15275
15439
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15276
15440
  }));
@@ -15654,7 +15818,8 @@ function herdrRunnerCapabilities2(input) {
15654
15818
  cacheSharingModes: []
15655
15819
  },
15656
15820
  resourceLimits: { maxConcurrentRuns: 1, maxRunSeconds: 86400 },
15657
- measure: true
15821
+ measure: true,
15822
+ resolve: true
15658
15823
  };
15659
15824
  }
15660
15825
  function assertHerdrRunnerCapability2(capabilities) {
@@ -15692,4 +15857,4 @@ function checkServices(declaration) {
15692
15857
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15693
15858
  }
15694
15859
 
15695
- 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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, 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, 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 };
15860
+ 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, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, 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, 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 };