@kitman-sh/cli 0.10.58 → 0.10.60

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-qbyxcjy1.js → chunk-09jf8588.js} +16 -11
  2. package/dist/{chunk-kvv9vzzr.js → chunk-0fdgam8v.js} +186 -46
  3. package/dist/{chunk-ec5df6ea.js → chunk-1w81w56v.js} +2 -2
  4. package/dist/{chunk-ahtfwz4b.js → chunk-1z9p4q8b.js} +2 -2
  5. package/dist/{chunk-bbsh3a70.js → chunk-5y050gx7.js} +38 -38
  6. package/dist/{chunk-zxs37afg.js → chunk-88257wax.js} +19 -19
  7. package/dist/{chunk-qkbnbr47.js → chunk-9qg17019.js} +31 -21
  8. package/dist/{chunk-4jbn6hma.js → chunk-a4798jzf.js} +3 -3
  9. package/dist/{chunk-nk5h4cvx.js → chunk-d3ksv8y1.js} +76 -117
  10. package/dist/{chunk-ac19vqmc.js → chunk-d8awdfdj.js} +204 -88
  11. package/dist/{chunk-zc214v7k.js → chunk-e3tv8mv2.js} +8 -8
  12. package/dist/{chunk-tr80mjnp.js → chunk-eawcprsb.js} +60 -14
  13. package/dist/{chunk-9rxwzn7y.js → chunk-hvev0dve.js} +11 -11
  14. package/dist/{chunk-hegberew.js → chunk-hxkk42cg.js} +7 -7
  15. package/dist/{chunk-59n1m39j.js → chunk-phmma642.js} +7 -7
  16. package/dist/{chunk-jd8xhqgm.js → chunk-q3c7vmby.js} +1 -1
  17. package/dist/{chunk-8y8ax1bt.js → chunk-rrnee9mk.js} +1 -1
  18. package/dist/{chunk-n1m89pnt.js → chunk-rrz0v4fg.js} +5 -5
  19. package/dist/{chunk-qmmer308.js → chunk-sdpjvc1r.js} +201 -344
  20. package/dist/{chunk-c6gyfqv4.js → chunk-smgvtzd2.js} +7 -7
  21. package/dist/{chunk-76y7v9rj.js → chunk-v01c0k6j.js} +1 -1
  22. package/dist/{chunk-edf91eyv.js → chunk-wkccjgwb.js} +4 -4
  23. package/dist/{chunk-ac851090.js → chunk-wtpwkjws.js} +4 -4
  24. package/dist/{chunk-mfhmj6r6.js → chunk-z0z56a72.js} +9 -9
  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
- make12,
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
- make13,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -91,11 +89,9 @@ import {
91
89
  ConsoleRef,
92
90
  succeed3,
93
91
  fail4,
94
- void_2,
95
92
  isSuccess2,
96
- isFailure2,
97
93
  makeUnsafe5,
98
- make14,
94
+ make16,
99
95
  _await,
100
96
  fail5,
101
97
  isDone,
@@ -103,12 +99,8 @@ import {
103
99
  succeed4,
104
100
  doneUnsafe,
105
101
  TracerTimingEnabled,
106
- Scope,
107
- makeUnsafe6,
108
102
  provide,
109
- addFinalizerExit,
110
103
  addFinalizer,
111
- close,
112
104
  succeed5,
113
105
  effect,
114
106
  effectContext,
@@ -160,7 +152,6 @@ import {
160
152
  tapCause,
161
153
  retry,
162
154
  ignore,
163
- ignoreCause,
164
155
  orElseSucceed,
165
156
  timeout,
166
157
  timeoutOrElse,
@@ -172,7 +163,6 @@ import {
172
163
  context,
173
164
  contextWith,
174
165
  provide3,
175
- provideContext2,
176
166
  serviceOption,
177
167
  updateContext,
178
168
  provideService,
@@ -183,7 +173,6 @@ import {
183
173
  addFinalizer2,
184
174
  ensuring2,
185
175
  onError,
186
- onExit,
187
176
  cached,
188
177
  interrupt3,
189
178
  interruptible,
@@ -195,7 +184,6 @@ import {
195
184
  withParentSpan,
196
185
  forkScoped,
197
186
  runFork,
198
- runForkWith,
199
187
  runPromise,
200
188
  runPromiseWith,
201
189
  runSync,
@@ -206,9 +194,6 @@ import {
206
194
  logError,
207
195
  effectify,
208
196
  decode,
209
- isRedacted,
210
- make15,
211
- value,
212
197
  defaultParseOptions,
213
198
  omit,
214
199
  map9,
@@ -217,7 +202,7 @@ import {
217
202
  decodeEffect,
218
203
  decodeUnknownOption,
219
204
  decodeOption,
220
- make16,
205
+ make17,
221
206
  isSchema,
222
207
  optionalKey,
223
208
  optional,
@@ -263,22 +248,17 @@ import {
263
248
  decodeJsonStringOption,
264
249
  encodeJsonStringSync,
265
250
  encodePrettyJsonString
266
- } from "./chunk-nk5h4cvx.js";
251
+ } from "./chunk-d3ksv8y1.js";
267
252
  import {
268
253
  map,
269
254
  makeEquivalence,
270
- toNumber,
271
255
  bytes,
272
- join,
273
- interrupt,
274
- getCurrent,
275
- runIn,
276
256
  BadArgument,
277
257
  systemError,
278
258
  badArgument,
279
259
  makeUnsafe2,
280
- make7,
281
260
  make8,
261
+ make9,
282
262
  sliding,
283
263
  unbounded2,
284
264
  offer,
@@ -294,11 +274,13 @@ import {
294
274
  isSink,
295
275
  fromChannel,
296
276
  drain,
277
+ make10,
278
+ get3,
297
279
  isStream,
298
280
  fromChannel2,
299
281
  callback,
300
282
  empty2,
301
- make9,
283
+ make11,
302
284
  suspend,
303
285
  fail2,
304
286
  fromQueue,
@@ -324,16 +306,16 @@ import {
324
306
  mkArrayBuffer,
325
307
  toReadableStreamEffect,
326
308
  FileSystem,
327
- make10,
309
+ make12,
328
310
  FileTypeId,
329
311
  WatchBackend,
330
312
  Path,
331
- make11,
313
+ make13,
332
314
  option,
333
315
  String2,
334
316
  optionalEnv,
335
317
  harnessesUnsupportedInSrt2
336
- } from "./chunk-kvv9vzzr.js";
318
+ } from "./chunk-0fdgam8v.js";
337
319
  import {
338
320
  isDateTime,
339
321
  Numeric,
@@ -345,7 +327,7 @@ import {
345
327
  SecretName,
346
328
  SecretScope,
347
329
  SecretHosts
348
- } from "./chunk-8y8ax1bt.js";
330
+ } from "./chunk-rrnee9mk.js";
349
331
  import {
350
332
  toJsonValue,
351
333
  isOneOf,
@@ -359,18 +341,22 @@ import {
359
341
  isSymbol,
360
342
  isUndefined,
361
343
  kindOf
362
- } from "./chunk-76y7v9rj.js";
344
+ } from "./chunk-v01c0k6j.js";
363
345
  import {
346
+ isRedacted,
347
+ make,
348
+ value,
364
349
  ExitCode,
365
350
  ProcessId,
366
351
  makeHandle,
367
- make,
352
+ make2,
368
353
  ChildProcessSpawner,
369
354
  display,
370
- make2,
355
+ make3,
371
356
  parseFdName,
372
357
  fdName
373
- } from "./chunk-tr80mjnp.js";
358
+ } from "./chunk-eawcprsb.js";
359
+
374
360
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
375
361
  var makeEquivalence3 = Tuple;
376
362
 
@@ -512,7 +498,7 @@ var fromDateUnsafe = (date) => {
512
498
  }
513
499
  return makeUtc(epochMillis);
514
500
  };
515
- var makeUnsafe7 = (input) => {
501
+ var makeUnsafe6 = (input) => {
516
502
  if (isDateTime2(input)) {
517
503
  return input;
518
504
  } else if (input instanceof Date) {
@@ -532,7 +518,7 @@ var makeUnsafe7 = (input) => {
532
518
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
533
519
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
534
520
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
535
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
521
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
536
522
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
537
523
  var nowUnsafe = () => makeUtc(Date.now());
538
524
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -639,7 +625,7 @@ class Metric$ {
639
625
  }
640
626
  hook(context) {
641
627
  const key = this.key(context);
642
- const registry = get3(context, MetricRegistry);
628
+ const registry = get4(context, MetricRegistry);
643
629
  let metadata = registry.get(key);
644
630
  if (isUndefined2(metadata)) {
645
631
  metadata = this.metadata(this.createHooks());
@@ -648,11 +634,11 @@ class Metric$ {
648
634
  return metadata.hooks;
649
635
  }
650
636
  removeUnsafe(context) {
651
- get3(context, MetricRegistry).delete(this.key(context));
637
+ get4(context, MetricRegistry).delete(this.key(context));
652
638
  }
653
639
  registerUnsafe(context, hooks) {
654
640
  const key = this.key(context);
655
- const registry = get3(context, MetricRegistry);
641
+ const registry = get4(context, MetricRegistry);
656
642
  const metadata = this.metadata({
657
643
  get: hooks.get,
658
644
  update: constVoid,
@@ -668,7 +654,7 @@ class Metric$ {
668
654
  };
669
655
  }
670
656
  key(context) {
671
- const extraAttributes = get3(context, CurrentMetricAttributes);
657
+ const extraAttributes = get4(context, CurrentMetricAttributes);
672
658
  if (extraAttributes !== this.#extraAttributes) {
673
659
  this.#extraAttributes = extraAttributes;
674
660
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -911,151 +897,18 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
911
897
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
912
898
  var runMain = runMain2;
913
899
 
914
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
915
- var TypeId3 = "~effect/RcRef";
916
- var stateEmpty = {
917
- _tag: "Empty"
918
- };
919
- var stateClosed = {
920
- _tag: "Closed"
921
- };
922
- var variance = {
923
- _A: identity,
924
- _E: identity
925
- };
926
-
927
- class RcRefImpl {
928
- [TypeId3] = variance;
929
- pipe() {
930
- return pipeArguments(this, arguments);
931
- }
932
- state = stateEmpty;
933
- acquire;
934
- context;
935
- scope;
936
- idleTimeToLive;
937
- constructor(acquire, context, scope, idleTimeToLive) {
938
- this.acquire = acquire;
939
- this.context = context;
940
- this.scope = scope;
941
- this.idleTimeToLive = idleTimeToLive;
942
- }
943
- }
944
- var make17 = (options) => withFiber2((fiber) => {
945
- const context = fiber.context;
946
- const scope = get3(context, Scope);
947
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
948
- return as(addFinalizerExit(scope, () => {
949
- const state = ref.state;
950
- ref.state = stateClosed;
951
- if (state._tag === "Acquired")
952
- return close(state.scope, void_2);
953
- if (state._tag === "Acquiring")
954
- return interrupt(state.fiber);
955
- return void_3;
956
- }), ref);
957
- });
958
- var getState = (self, restore) => {
959
- switch (self.state._tag) {
960
- case "Closed": {
961
- return interrupt3;
962
- }
963
- case "Acquired": {
964
- const state = self.state;
965
- state.refCount++;
966
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
967
- }
968
- case "Acquiring": {
969
- const state = self.state;
970
- state.awaiters++;
971
- return awaitAcquiring(self, state, restore);
972
- }
973
- case "Empty": {
974
- const acquiring = {
975
- _tag: "Acquiring",
976
- fiber: undefined,
977
- awaiters: 1,
978
- acquired: undefined
979
- };
980
- self.state = acquiring;
981
- const scope = makeUnsafe6();
982
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
983
- if (self.state !== acquiring) {
984
- return interrupt3;
985
- }
986
- const state = {
987
- _tag: "Acquired",
988
- value,
989
- scope,
990
- fiber: undefined,
991
- refCount: acquiring.awaiters,
992
- invalidated: false
993
- };
994
- self.state = state;
995
- acquiring.acquired = state;
996
- return succeed6(state);
997
- }), onExit((exit) => {
998
- if (isSuccess2(exit))
999
- return void_3;
1000
- if (self.state === acquiring)
1001
- self.state = stateEmpty;
1002
- return close(scope, exit);
1003
- }));
1004
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1005
- return awaitAcquiring(self, acquiring, restore);
1006
- }
1007
- }
1008
- };
1009
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1010
- const acquired = acquiring.acquired;
1011
- if (acquired !== undefined) {
1012
- return isFailure2(exit) ? release(self, acquired) : void_3;
1013
- }
1014
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1015
- return void_3;
1016
- self.state = stateEmpty;
1017
- return interrupt(acquiring.fiber);
1018
- });
1019
- var get4 = (self_) => {
1020
- const self = self_;
1021
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1022
- };
1023
- var release = (self, state) => {
1024
- state.refCount--;
1025
- if (state.refCount > 0) {
1026
- return void_3;
1027
- }
1028
- const idleTimeToLive = self.idleTimeToLive;
1029
- if (idleTimeToLive === undefined || state.invalidated) {
1030
- if (self.state === state) {
1031
- self.state = stateEmpty;
1032
- }
1033
- return close(state.scope, void_2);
1034
- } else if (!isFinite(idleTimeToLive)) {
1035
- return void_3;
900
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
901
+ var BigInt2 = globalThis.BigInt;
902
+ var toNumber = (b) => {
903
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
904
+ return none();
1036
905
  }
1037
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1038
- if (self.state === state && state.refCount === 0) {
1039
- self.state = stateEmpty;
1040
- return ignoreCause(close(state.scope, void_2), {
1041
- log: "Unhandled",
1042
- message: "Unhandled error in RcRef finalizer"
1043
- });
1044
- }
1045
- return void_3;
1046
- })).pipe(ensuring2(sync2(() => {
1047
- state.fiber = undefined;
1048
- })), runForkWith(self.context), runIn(self.scope));
1049
- return void_3;
906
+ return some(Number(b));
1050
907
  };
1051
908
 
1052
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1053
- var make18 = make17;
1054
- var get5 = get4;
1055
-
1056
909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1057
- var makeUnsafe = makeUnsafe7;
1058
- var make19 = make3;
910
+ var makeUnsafe = makeUnsafe6;
911
+ var make18 = make4;
1059
912
  var now2 = now;
1060
913
  var nowUnsafe2 = nowUnsafe;
1061
914
  var toDateUtc2 = toDateUtc;
@@ -1270,7 +1123,7 @@ var readableToPullUnsafe = (options) => {
1270
1123
  const readable = options.readable;
1271
1124
  const chunkSize = options.chunkSize ?? 4096;
1272
1125
  const closeOnDone = options.closeOnDone ?? true;
1273
- const exit = options.exit ?? make7(undefined);
1126
+ const exit = options.exit ?? make8(undefined);
1274
1127
  const latch = options.latch ?? makeUnsafe2(false);
1275
1128
  function onReadable() {
1276
1129
  latch.openUnsafe();
@@ -1374,7 +1227,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1374
1227
  windowsHide: true
1375
1228
  }, onExit);
1376
1229
  };
1377
- var make20 = /* @__PURE__ */ gen(function* () {
1230
+ var make19 = /* @__PURE__ */ gen(function* () {
1378
1231
  const fs = yield* FileSystem;
1379
1232
  const path = yield* Path;
1380
1233
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1834,7 +1687,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1834
1687
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1835
1688
  const toOption = options.to ?? "stdin";
1836
1689
  if (toOption === "stdin") {
1837
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1690
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1838
1691
  ...command.options,
1839
1692
  stdin: {
1840
1693
  ...stdinConfig,
@@ -1854,7 +1707,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1854
1707
  type: "input",
1855
1708
  stream: sourceStream
1856
1709
  };
1857
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1858
1711
  ...command.options,
1859
1712
  additionalFds: {
1860
1713
  ...existingFds,
@@ -1862,7 +1715,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1862
1715
  }
1863
1716
  })));
1864
1717
  } else {
1865
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1718
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1866
1719
  ...command.options,
1867
1720
  stdin: {
1868
1721
  ...stdinConfig,
@@ -1901,9 +1754,9 @@ var make20 = /* @__PURE__ */ gen(function* () {
1901
1754
  }
1902
1755
  }
1903
1756
  });
1904
- return make(spawnCommand);
1757
+ return make2(spawnCommand);
1905
1758
  });
1906
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1759
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1907
1760
  var flattenCommand = (command) => {
1908
1761
  const commands = [];
1909
1762
  const pipeOptions = [];
@@ -2387,7 +2240,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2387
2240
  resume(fail7(handleBadArgument("writeFile")(err)));
2388
2241
  }
2389
2242
  });
2390
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make10({
2243
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2391
2244
  access: access2,
2392
2245
  chmod: chmod2,
2393
2246
  chown: chown2,
@@ -2447,15 +2300,15 @@ var fileUrlOps = (windows) => ({
2447
2300
  })
2448
2301
  })
2449
2302
  });
2450
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2303
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2451
2304
  ...NodePath.posix,
2452
2305
  .../* @__PURE__ */ fileUrlOps(false)
2453
2306
  }));
2454
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2307
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2455
2308
  ...NodePath.win32,
2456
2309
  .../* @__PURE__ */ fileUrlOps(true)
2457
2310
  }));
2458
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2311
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2459
2312
  ...NodePath,
2460
2313
  .../* @__PURE__ */ fileUrlOps(undefined)
2461
2314
  }));
@@ -2464,10 +2317,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2464
2317
  var layer2 = layer7;
2465
2318
 
2466
2319
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2467
- var TypeId4 = "~effect/Stdio";
2468
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2469
- var make21 = (options) => ({
2470
- [TypeId4]: TypeId4,
2320
+ var TypeId3 = "~effect/Stdio";
2321
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
+ var make20 = (options) => ({
2323
+ [TypeId3]: TypeId3,
2471
2324
  stdinIsTerminal: succeed6(false),
2472
2325
  stdoutIsTerminal: succeed6(false),
2473
2326
  stderrIsTerminal: succeed6(false),
@@ -2475,7 +2328,7 @@ var make21 = (options) => ({
2475
2328
  });
2476
2329
 
2477
2330
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2478
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2331
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2479
2332
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2480
2333
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2481
2334
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2675,7 +2528,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2675
2528
  const uuid = bytes(randomBytes(16));
2676
2529
  return format === "bytes" ? uuid : stringify(uuid);
2677
2530
  };
2678
- var make22 = (randomBytes) => {
2531
+ var make21 = (randomBytes) => {
2679
2532
  const randomBytesChecked = (size) => {
2680
2533
  checkSize(size);
2681
2534
  return randomBytes(size);
@@ -2709,13 +2562,13 @@ var fillRandom = (crypto2, size) => {
2709
2562
  }
2710
2563
  return bytes;
2711
2564
  };
2712
- 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)))));
2713
2566
 
2714
2567
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2715
- var TypeId5 = "~effect/http/Cookies";
2568
+ var TypeId4 = "~effect/http/Cookies";
2716
2569
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2717
2570
  var Proto2 = {
2718
- [TypeId5]: TypeId5,
2571
+ [TypeId4]: TypeId4,
2719
2572
  ...BaseProto,
2720
2573
  toJSON() {
2721
2574
  return {
@@ -2894,14 +2747,14 @@ var tryDecodeURIComponent = (str) => {
2894
2747
  };
2895
2748
 
2896
2749
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2897
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2750
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2898
2751
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2899
- [TypeId6]: {
2900
- value: TypeId6
2752
+ [TypeId5]: {
2753
+ value: TypeId5
2901
2754
  },
2902
2755
  [symbolRedactable]: {
2903
2756
  value(context) {
2904
- return redact2(this, get3(context, CurrentRedactedNames));
2757
+ return redact2(this, get4(context, CurrentRedactedNames));
2905
2758
  }
2906
2759
  },
2907
2760
  toJSON: {
@@ -2926,7 +2779,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2926
2779
  value: BaseProto[NodeInspectSymbol]
2927
2780
  }
2928
2781
  });
2929
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2782
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2930
2783
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2931
2784
  var empty = /* @__PURE__ */ Object.create(Proto3);
2932
2785
  var fromInput = (input) => {
@@ -2951,21 +2804,21 @@ var fromInput = (input) => {
2951
2804
  };
2952
2805
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2953
2806
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2954
- const out = make23(self);
2807
+ const out = make22(self);
2955
2808
  out[key.toLowerCase()] = value;
2956
2809
  return out;
2957
2810
  });
2958
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2811
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2959
2812
  ...self,
2960
2813
  ...fromInput(headers)
2961
2814
  }));
2962
2815
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2963
- const out = make23(self);
2816
+ const out = make22(self);
2964
2817
  Object.assign(out, headers);
2965
2818
  return out;
2966
2819
  });
2967
2820
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2968
- const out = make23(self);
2821
+ const out = make22(self);
2969
2822
  delete out[key.toLowerCase()];
2970
2823
  return out;
2971
2824
  });
@@ -2977,12 +2830,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2977
2830
  if (typeof key === "string") {
2978
2831
  const k = key.toLowerCase();
2979
2832
  if (k in self) {
2980
- out[k] = make15(self[k]);
2833
+ out[k] = make(self[k]);
2981
2834
  }
2982
2835
  } else {
2983
2836
  for (const name in self) {
2984
2837
  if (name.search(key) !== -1) {
2985
- out[name] = make15(self[name]);
2838
+ out[name] = make(self[name]);
2986
2839
  }
2987
2840
  }
2988
2841
  }
@@ -3022,18 +2875,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3022
2875
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3023
2876
 
3024
2877
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3025
- var TypeId7 = "~effect/http/UrlParams";
3026
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2878
+ var TypeId6 = "~effect/http/UrlParams";
2879
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3027
2880
  var Proto4 = {
3028
2881
  ...PipeInspectableProto,
3029
- [TypeId7]: TypeId7,
2882
+ [TypeId6]: TypeId6,
3030
2883
  [Symbol.iterator]() {
3031
2884
  return this.params[Symbol.iterator]();
3032
2885
  },
3033
2886
  [symbolRedactable](context) {
3034
2887
  return {
3035
2888
  _id: "UrlParams",
3036
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2889
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3037
2890
  };
3038
2891
  },
3039
2892
  toJSON() {
@@ -3046,7 +2899,7 @@ var Proto4 = {
3046
2899
  return array(this.params.flat());
3047
2900
  }
3048
2901
  };
3049
- var make24 = (params) => {
2902
+ var make23 = (params) => {
3050
2903
  const self = Object.create(Proto4);
3051
2904
  self.params = params;
3052
2905
  return self;
@@ -3065,7 +2918,7 @@ var fromInput2 = (input) => {
3065
2918
  out.push(parsed[i]);
3066
2919
  }
3067
2920
  }
3068
- return make24(out);
2921
+ return make23(out);
3069
2922
  };
3070
2923
  var fromInputNested = (input) => {
3071
2924
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3089,9 +2942,9 @@ var fromInputNested = (input) => {
3089
2942
  return out;
3090
2943
  };
3091
2944
  var coerce = (value) => isRedacted(value) ? value : String(value);
3092
- var Equivalence3 = /* @__PURE__ */ make12((a, b) => arrayEquivalence(a.params, b.params));
2945
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3093
2946
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3094
- var empty4 = /* @__PURE__ */ make24([]);
2947
+ var empty4 = /* @__PURE__ */ make23([]);
3095
2948
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3096
2949
  const params = fromInput2(input).params.slice();
3097
2950
  const keys = new Set;
@@ -3103,11 +2956,11 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3103
2956
  continue;
3104
2957
  params.push(self.params[i]);
3105
2958
  }
3106
- return make24(params);
2959
+ return make23(params);
3107
2960
  });
3108
2961
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
3109
2962
  const patterns = Array.isArray(key) ? key : [key];
3110
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make15(value) : value]);
2963
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
3111
2964
  });
3112
2965
  var isRedactedName2 = isRedactedName;
3113
2966
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3158,13 +3011,13 @@ var decodeQueryKey = (key) => {
3158
3011
  return key;
3159
3012
  }
3160
3013
  };
3161
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3014
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3162
3015
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3163
3016
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3164
3017
  });
3165
3018
 
3166
3019
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3167
- var TypeId8 = "~effect/Terminal";
3020
+ var TypeId7 = "~effect/Terminal";
3168
3021
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3169
3022
 
3170
3023
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3173,17 +3026,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3173
3026
  [QuitErrorTypeId] = QuitErrorTypeId;
3174
3027
  }
3175
3028
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3176
- var make25 = (impl) => Terminal.of({
3029
+ var make24 = (impl) => Terminal.of({
3177
3030
  ...impl,
3178
- [TypeId8]: TypeId8
3031
+ [TypeId7]: TypeId7
3179
3032
  });
3180
3033
 
3181
3034
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3182
3035
  import * as readline from "readline";
3183
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3036
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3184
3037
  const stdin = process.stdin;
3185
3038
  const stdout = process.stdout;
3186
- const lines = yield* make8();
3039
+ const lines = yield* make9();
3187
3040
  let inputEnded = stdin.readableEnded;
3188
3041
  let readlineActive = false;
3189
3042
  const onStdinEnd = () => {
@@ -3194,7 +3047,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3194
3047
  };
3195
3048
  stdin.once("end", onStdinEnd);
3196
3049
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3197
- const rlRef = yield* make18({
3050
+ const rlRef = yield* make10({
3198
3051
  acquire: acquireRelease(sync2(() => {
3199
3052
  const rl = readline.createInterface({
3200
3053
  input: stdin,
@@ -3233,7 +3086,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3233
3086
  if (stdin.isTTY)
3234
3087
  stdin.setRawMode(enabled);
3235
3088
  });
3236
- const rawModeRef = yield* make18({
3089
+ const rawModeRef = yield* make10({
3237
3090
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3238
3091
  idleTimeToLive: "10 millis"
3239
3092
  });
@@ -3254,7 +3107,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3254
3107
  return queue;
3255
3108
  });
3256
3109
  const readInput = gen(function* () {
3257
- const queue = yield* make8();
3110
+ const queue = yield* make9();
3258
3111
  const handleKeypress = (s, k) => {
3259
3112
  const userInput = {
3260
3113
  input: fromUndefinedOr(s),
@@ -3284,14 +3137,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3284
3137
  if (inputEnded) {
3285
3138
  handleEnd();
3286
3139
  } else {
3287
- yield* get5(rlRef);
3288
- yield* get5(rawModeRef);
3140
+ yield* get3(rlRef);
3141
+ yield* get3(rawModeRef);
3289
3142
  stdin.once("end", handleEnd);
3290
3143
  }
3291
3144
  return queue;
3292
3145
  });
3293
3146
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3294
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3147
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3295
3148
  onSome: succeed6
3296
3149
  })), mapError2(() => new QuitError({}))));
3297
3150
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3302,7 +3155,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3302
3155
  cause: err
3303
3156
  }))));
3304
3157
  }));
3305
- return make25({
3158
+ return make24({
3306
3159
  columns,
3307
3160
  rows,
3308
3161
  size,
@@ -3311,7 +3164,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3311
3164
  display
3312
3165
  });
3313
3166
  });
3314
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3167
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3315
3168
  function defaultShouldQuit(input) {
3316
3169
  const key = input.key;
3317
3170
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3338,7 +3191,7 @@ function toDate(input) {
3338
3191
  return toDateUtc2(makeUnsafe(input));
3339
3192
  }
3340
3193
  function parseDate(input) {
3341
- return getOrUndefined(map4(make19(input), toDateUtc2));
3194
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3342
3195
  }
3343
3196
  function toIso(input) {
3344
3197
  return formatIso(makeUnsafe(input));
@@ -6272,7 +6125,7 @@ var StepOutputSubmissionResult = Union([
6272
6125
  }),
6273
6126
  Struct({ status: Literal("failed"), message: String4 })
6274
6127
  ]);
6275
- var HarnessHoldReasons = ["out_of_quota", "failed_to_start"];
6128
+ var HarnessHoldReasons = ["out_of_quota", "rate_limited", "login_refused", "failed_to_start"];
6276
6129
  var SkippedChoiceReasons = ["not_on_runner", ...HarnessHoldReasons];
6277
6130
  var SkippedChoice = Struct({
6278
6131
  harness: optionalKey(String4),
@@ -7873,11 +7726,13 @@ function defaultRunnerCapabilities() {
7873
7726
  }
7874
7727
  // packages/core/src/team-context.ts
7875
7728
  var BranchTemplate = String4.check(isMinLength(1), isMaxLength(160));
7729
+ var DeliveryMode = Literals(["gated", "auto"]);
7876
7730
  var TeamDeliverySettings = Struct({
7877
7731
  defaultRepoBindingId: optionalKey(Id),
7878
7732
  standardBranchTemplate: BranchTemplate,
7879
7733
  epicBranchTemplate: BranchTemplate,
7880
7734
  isolatedChildBranchTemplate: BranchTemplate,
7735
+ delivery: DeliveryMode,
7881
7736
  revision: Int.check(isGreaterThanOrEqualTo(1))
7882
7737
  });
7883
7738
  var TeamDeliverySettingsUpdate = Struct({
@@ -7885,6 +7740,7 @@ var TeamDeliverySettingsUpdate = Struct({
7885
7740
  standardBranchTemplate: optionalKey(BranchTemplate),
7886
7741
  epicBranchTemplate: optionalKey(BranchTemplate),
7887
7742
  isolatedChildBranchTemplate: optionalKey(BranchTemplate),
7743
+ delivery: optionalKey(DeliveryMode),
7888
7744
  expectedRevision: Int.check(isGreaterThanOrEqualTo(1))
7889
7745
  });
7890
7746
  var TeamReference = Struct({ id: Id, workspaceId: Id, key: String4, name: String4 });
@@ -9346,11 +9202,11 @@ var TranscriptSearchResult = Struct({
9346
9202
  total: Int
9347
9203
  });
9348
9204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9349
- var TypeId9 = "~effect/http/HttpBody";
9205
+ var TypeId8 = "~effect/http/HttpBody";
9350
9206
  class Proto5 {
9351
- [TypeId9];
9207
+ [TypeId8];
9352
9208
  constructor() {
9353
- this[TypeId9] = TypeId9;
9209
+ this[TypeId8] = TypeId8;
9354
9210
  }
9355
9211
  [NodeInspectSymbol]() {
9356
9212
  return this.toJSON();
@@ -9429,7 +9285,7 @@ var buffer = globalThis.Buffer;
9429
9285
  var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
9430
9286
 
9431
9287
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9432
- var TypeId10 = "~effect/http/HttpClientError";
9288
+ var TypeId9 = "~effect/http/HttpClientError";
9433
9289
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9434
9290
  constructor(props) {
9435
9291
  if ("cause" in props.reason) {
@@ -9441,7 +9297,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9441
9297
  super(props);
9442
9298
  }
9443
9299
  }
9444
- [TypeId10] = TypeId10;
9300
+ [TypeId9] = TypeId9;
9445
9301
  get request() {
9446
9302
  return this.reason.request;
9447
9303
  }
@@ -9545,7 +9401,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9545
9401
  }
9546
9402
  }
9547
9403
 
9548
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9404
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9549
9405
  _tag: /* @__PURE__ */ tag("HttpError"),
9550
9406
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9551
9407
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9578,7 +9434,7 @@ var updateContentLength = (headers, body) => {
9578
9434
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9579
9435
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9580
9436
  }
9581
- var make27 = (url, params, hash) => try_({
9437
+ var make26 = (url, params, hash) => try_({
9582
9438
  try: () => {
9583
9439
  const urlInstance = new URL(url, baseUrl());
9584
9440
  for (let i = 0;i < params.params.length; i++) {
@@ -9609,10 +9465,10 @@ var baseUrl = () => {
9609
9465
  };
9610
9466
 
9611
9467
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9612
- var TypeId11 = "~effect/http/HttpClientRequest";
9613
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9468
+ var TypeId10 = "~effect/http/HttpClientRequest";
9469
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9614
9470
  var Proto6 = {
9615
- [TypeId11]: TypeId11,
9471
+ [TypeId10]: TypeId10,
9616
9472
  ...BaseProto,
9617
9473
  toJSON() {
9618
9474
  return {
@@ -9640,13 +9496,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9640
9496
  return self;
9641
9497
  }
9642
9498
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9643
- var make4 = (method) => (url, options) => modify(empty6, {
9499
+ var make5 = (method) => (url, options) => modify(empty6, {
9644
9500
  method,
9645
9501
  url,
9646
9502
  ...options ?? undefined
9647
9503
  });
9648
- var get = /* @__PURE__ */ make4("GET");
9649
- var put = /* @__PURE__ */ make4("PUT");
9504
+ var get = /* @__PURE__ */ make5("GET");
9505
+ var put = /* @__PURE__ */ make5("PUT");
9650
9506
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9651
9507
  let result = self;
9652
9508
  if (options.method) {
@@ -9698,7 +9554,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
9698
9554
  });
9699
9555
  var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
9700
9556
  function toUrl(self) {
9701
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9557
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9702
9558
  if (isSuccess(r)) {
9703
9559
  return some(r.success);
9704
9560
  }
@@ -9706,7 +9562,7 @@ function toUrl(self) {
9706
9562
  }
9707
9563
 
9708
9564
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9709
- var TypeId12 = "~effect/http/HttpIncomingMessage";
9565
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
9710
9566
  var schemaBodyJson = (schema, options) => {
9711
9567
  const decode = decodeEffect(toCodecJson(schema));
9712
9568
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9725,7 +9581,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9725
9581
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9726
9582
 
9727
9583
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9728
- var TypeId13 = "~effect/http/HttpClientResponse";
9584
+ var TypeId12 = "~effect/http/HttpClientResponse";
9729
9585
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9730
9586
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9731
9587
  reason: new StatusCodeError({
@@ -9736,16 +9592,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9736
9592
  }));
9737
9593
 
9738
9594
  class WebHttpClientResponse extends Class {
9595
+ [TypeId11];
9739
9596
  [TypeId12];
9740
- [TypeId13];
9741
9597
  request;
9742
9598
  source;
9743
9599
  constructor(request, source) {
9744
9600
  super();
9745
9601
  this.request = request;
9746
9602
  this.source = source;
9603
+ this[TypeId11] = TypeId11;
9747
9604
  this[TypeId12] = TypeId12;
9748
- this[TypeId13] = TypeId13;
9749
9605
  }
9750
9606
  toJSON() {
9751
9607
  return inspect(this, {
@@ -9917,7 +9773,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9917
9773
  };
9918
9774
 
9919
9775
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9920
- var TypeId14 = "~effect/http/HttpClient";
9776
+ var TypeId13 = "~effect/http/HttpClient";
9921
9777
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9922
9778
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9923
9779
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9934,7 +9790,7 @@ var makeWith2 = (postprocess, preprocess) => {
9934
9790
  return self;
9935
9791
  };
9936
9792
  var Proto7 = {
9937
- [TypeId14]: TypeId14,
9793
+ [TypeId13]: TypeId13,
9938
9794
  pipe() {
9939
9795
  return pipeArguments(this, arguments);
9940
9796
  },
@@ -9945,13 +9801,13 @@ var Proto7 = {
9945
9801
  };
9946
9802
  },
9947
9803
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9948
- return this.execute(make4(fullMethod)(url, options));
9804
+ return this.execute(make5(fullMethod)(url, options));
9949
9805
  }]))
9950
9806
  };
9951
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9807
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9952
9808
  const scopedController = scopedRequests.get(request);
9953
9809
  const controller = scopedController ?? new AbortController;
9954
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
9810
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
9955
9811
  if (isFailure(urlResult)) {
9956
9812
  return fail7(new HttpClientError({
9957
9813
  reason: new InvalidUrlError({
@@ -10085,8 +9941,8 @@ class InterruptibleResponse {
10085
9941
  this.original = original;
10086
9942
  this.controller = controller;
10087
9943
  }
10088
- [TypeId13] = TypeId13;
10089
9944
  [TypeId12] = TypeId12;
9945
+ [TypeId11] = TypeId11;
10090
9946
  applyInterrupt(effect) {
10091
9947
  return suspend3(() => {
10092
9948
  responseRegistry.unregister(this.original);
@@ -10184,7 +10040,7 @@ var detectStreamBodySupport = () => {
10184
10040
  return false;
10185
10041
  }
10186
10042
  };
10187
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10043
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10188
10044
  if (request.headers.upgrade !== undefined) {
10189
10045
  return fail7(new HttpClientError({
10190
10046
  reason: new TransportError({
@@ -10275,10 +10131,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10275
10131
  });
10276
10132
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10277
10133
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10278
- var TypeId15 = "~effect/socket/Socket";
10134
+ var TypeId14 = "~effect/socket/Socket";
10279
10135
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10280
- var make29 = (options) => Socket.of({
10281
- [TypeId15]: TypeId15,
10136
+ var make28 = (options) => Socket.of({
10137
+ [TypeId14]: TypeId14,
10282
10138
  reader: options.reader,
10283
10139
  writer: options.writer
10284
10140
  });
@@ -10601,7 +10457,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10601
10457
  write,
10602
10458
  writeAll
10603
10459
  });
10604
- return succeed6(make29({
10460
+ return succeed6(make28({
10605
10461
  reader,
10606
10462
  writer
10607
10463
  }));
@@ -13438,7 +13294,7 @@ function getStreamSchemas(schema) {
13438
13294
  }
13439
13295
  var schema = /* @__PURE__ */ declare(isStream);
13440
13296
  function Stream(success, error) {
13441
- return make16(schema.ast, {
13297
+ return make17(schema.ast, {
13442
13298
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13443
13299
  success,
13444
13300
  error
@@ -13446,9 +13302,9 @@ function Stream(success, error) {
13446
13302
  }
13447
13303
 
13448
13304
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13449
- var TypeId16 = "~effect/rpc/Rpc";
13305
+ var TypeId15 = "~effect/rpc/Rpc";
13450
13306
  var Proto8 = {
13451
- [TypeId16]: TypeId16,
13307
+ [TypeId15]: TypeId15,
13452
13308
  pipe() {
13453
13309
  return pipeArguments(this, arguments);
13454
13310
  },
@@ -13537,7 +13393,7 @@ var makeProto = (options) => {
13537
13393
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13538
13394
  return Rpc;
13539
13395
  };
13540
- var make5 = (tag, options) => {
13396
+ var make6 = (tag, options) => {
13541
13397
  const successSchema = options?.success ?? Void;
13542
13398
  const errorSchema = options?.error ?? Never;
13543
13399
  const defectSchema = options?.defect ?? Defect();
@@ -13615,7 +13471,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13615
13471
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13616
13472
 
13617
13473
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13618
- var TypeId17 = "~effect/rpc/RpcClientError";
13474
+ var TypeId16 = "~effect/rpc/RpcClientError";
13619
13475
 
13620
13476
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13621
13477
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13624,11 +13480,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13624
13480
  })) {
13625
13481
  }
13626
13482
 
13627
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13483
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13628
13484
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13629
13485
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13630
13486
  })) {
13631
- [TypeId17] = TypeId17;
13487
+ [TypeId16] = TypeId16;
13632
13488
  get message() {
13633
13489
  return `${this.reason._tag}: ${this.reason.message}`;
13634
13490
  }
@@ -13748,7 +13604,7 @@ var RpcGroupProto = {
13748
13604
  });
13749
13605
  },
13750
13606
  annotateRpcs(service, value) {
13751
- return this.annotateRpcsMerge(make13(service, value));
13607
+ return this.annotateRpcsMerge(make15(service, value));
13752
13608
  },
13753
13609
  annotateMerge(context) {
13754
13610
  return makeProto2({
@@ -13771,12 +13627,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13771
13627
  requests: options.requests,
13772
13628
  annotations: options.annotations
13773
13629
  });
13774
- var make6 = (...rpcs) => makeProto2({
13630
+ var make7 = (...rpcs) => makeProto2({
13775
13631
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13776
13632
  annotations: empty3()
13777
13633
  });
13778
13634
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13779
- var TypeId18 = "~effect/rpc/RpcMiddleware";
13635
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
13780
13636
  var Service = () => (id, options) => {
13781
13637
  const limit = getStackTraceLimit();
13782
13638
  let creationError;
@@ -13794,7 +13650,7 @@ var Service = () => (id, options) => {
13794
13650
  return creationError?.stack;
13795
13651
  }
13796
13652
  });
13797
- ServiceClass_[TypeId18] = TypeId18;
13653
+ ServiceClass_[TypeId17] = TypeId17;
13798
13654
  ServiceClass_.error = options?.error ?? Never;
13799
13655
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13800
13656
  return ServiceClass;
@@ -13878,96 +13734,96 @@ var ProgramOutcome = Union([
13878
13734
  Struct({ status: Literal("failed"), failureSummary: String4 })
13879
13735
  ]);
13880
13736
 
13881
- class RunnerReplicaRpcs extends make6(make5("Claim", {
13737
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
13882
13738
  payload: WorkUnitClaimInput,
13883
13739
  success: WorkUnitClaimResult,
13884
13740
  error: RunnerRpcError
13885
- }), make5("Heartbeat", {
13741
+ }), make6("Heartbeat", {
13886
13742
  payload: WorkUnitHeartbeatInput,
13887
13743
  success: WorkUnitHeartbeatResult,
13888
13744
  error: RunnerRpcError
13889
- }), make5("Complete", {
13745
+ }), make6("Complete", {
13890
13746
  payload: WorkUnitCompletion,
13891
13747
  error: RunnerRpcError
13892
- }), make5("Release", {
13748
+ }), make6("Release", {
13893
13749
  payload: WorkUnitReleaseInput,
13894
13750
  error: RunnerRpcError
13895
- }), make5("Signals", {
13751
+ }), make6("Signals", {
13896
13752
  payload: { runnerReplicaId: String4 },
13897
13753
  success: RunnerSignal,
13898
13754
  error: RunnerRpcError,
13899
13755
  stream: true
13900
- }), make5("ReportSteer", {
13756
+ }), make6("ReportSteer", {
13901
13757
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13902
13758
  success: Void,
13903
13759
  error: RunnerRpcError
13904
- }), make5("AppendTranscript", {
13760
+ }), make6("AppendTranscript", {
13905
13761
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13906
13762
  success: Void,
13907
13763
  error: RunnerRpcError
13908
- }), make5("CreateCheckpointFile", {
13764
+ }), make6("CreateCheckpointFile", {
13909
13765
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13910
13766
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13911
13767
  error: Union([RunnerRpcError, RunFileRefused])
13912
- }), make5("CheckpointFileParts", {
13768
+ }), make6("CheckpointFileParts", {
13913
13769
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13914
13770
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13915
13771
  error: RunnerRpcError
13916
- }), make5("CompleteCheckpointFile", {
13772
+ }), make6("CompleteCheckpointFile", {
13917
13773
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13918
13774
  success: RunFileRecord,
13919
13775
  error: RunnerRpcError
13920
- }), make5("SaveCheckpoint", {
13776
+ }), make6("SaveCheckpoint", {
13921
13777
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13922
13778
  success: Void,
13923
13779
  error: RunnerRpcError
13924
- }), make5("ResumeCheckpoint", {
13780
+ }), make6("ResumeCheckpoint", {
13925
13781
  payload: { lease: ProgramLease },
13926
13782
  success: UndefinedOr(ResumedCheckpoint),
13927
13783
  error: RunnerRpcError
13928
- }), make5("SettledCheckpoints", {
13784
+ }), make6("SettledCheckpoints", {
13929
13785
  success: ArraySchema(Struct({
13930
13786
  stepAttemptId: String4,
13931
13787
  ref: optionalKey(String4),
13932
13788
  repoBinding: optionalKey(WorkUnitRepoBinding)
13933
13789
  })),
13934
13790
  error: RunnerRpcError
13935
- }), make5("ForgetCheckpoints", {
13791
+ }), make6("ForgetCheckpoints", {
13936
13792
  payload: { stepAttemptIds: ArraySchema(String4) },
13937
13793
  success: Void,
13938
13794
  error: RunnerRpcError
13939
- }), make5("GitCredential", {
13795
+ }), make6("GitCredential", {
13940
13796
  payload: { repoBindingId: String4 },
13941
13797
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13942
13798
  error: RunnerRpcError
13943
- }), make5("Bundle", {
13799
+ }), make6("Bundle", {
13944
13800
  payload: { digest: String4 },
13945
13801
  success: Struct({ bundle: String4 }),
13946
13802
  error: RunnerRpcError
13947
- }), make5("SettledRuns", {
13803
+ }), make6("SettledRuns", {
13948
13804
  payload: { runIds: ArraySchema(String4) },
13949
13805
  success: ArraySchema(String4),
13950
13806
  error: RunnerRpcError
13951
- }), make5("KnownEvidence", {
13807
+ }), make6("KnownEvidence", {
13952
13808
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13953
13809
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13954
13810
  error: RunnerRpcError
13955
13811
  })).middleware(RunnerAuthentication) {
13956
13812
  }
13957
13813
 
13958
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13814
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
13959
13815
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13960
13816
  error: RunnerRpcError
13961
- }), make5("DeferredDone", {
13817
+ }), make6("DeferredDone", {
13962
13818
  payload: { lease: ProgramLease, name: String4, exit: Json },
13963
13819
  error: RunnerRpcError
13964
- }), make5("ScheduleClock", {
13820
+ }), make6("ScheduleClock", {
13965
13821
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13966
13822
  error: RunnerRpcError
13967
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13823
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13968
13824
  }
13969
13825
 
13970
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13826
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13971
13827
  payload: {
13972
13828
  lease: ProgramLease,
13973
13829
  step: String4,
@@ -13979,12 +13835,13 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13979
13835
  informationOnly: optional(Boolean2),
13980
13836
  verification: optional(SuggestedVerification),
13981
13837
  default: optional(String4),
13838
+ auto: optional(String4),
13982
13839
  timeoutMillis: optional(Finite),
13983
13840
  deferredName: String4
13984
13841
  },
13985
13842
  success: Struct({ questionId: String4 }),
13986
13843
  error: RunnerRpcError
13987
- }), make5("StartAgentStep", {
13844
+ }), make6("StartAgentStep", {
13988
13845
  payload: {
13989
13846
  lease: ProgramLease,
13990
13847
  step: String4,
@@ -14000,7 +13857,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14000
13857
  },
14001
13858
  success: Struct({ stepAttemptId: String4 }),
14002
13859
  error: RunnerRpcError
14003
- }), make5("StartVerification", {
13860
+ }), make6("StartVerification", {
14004
13861
  payload: {
14005
13862
  lease: ProgramLease,
14006
13863
  step: String4,
@@ -14017,7 +13874,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14017
13874
  },
14018
13875
  success: Struct({ verificationId: String4 }),
14019
13876
  error: RunnerRpcError
14020
- }), make5("AwaitEvent", {
13877
+ }), make6("AwaitEvent", {
14021
13878
  payload: {
14022
13879
  lease: ProgramLease,
14023
13880
  step: String4,
@@ -14033,7 +13890,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14033
13890
  })))
14034
13891
  },
14035
13892
  error: RunnerRpcError
14036
- }), make5("ClaimResource", {
13893
+ }), make6("ClaimResource", {
14037
13894
  payload: {
14038
13895
  lease: ProgramLease,
14039
13896
  step: String4,
@@ -14042,7 +13899,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14042
13899
  action: Literals(["claim", "take_over", "let_go"])
14043
13900
  },
14044
13901
  error: RunnerRpcError
14045
- }), make5("AdmitChild", {
13902
+ }), make6("AdmitChild", {
14046
13903
  payload: {
14047
13904
  lease: ProgramLease,
14048
13905
  step: String4,
@@ -14052,7 +13909,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14052
13909
  },
14053
13910
  success: Struct({ runId: String4 }),
14054
13911
  error: RunnerRpcError
14055
- }), make5("StoreArtifact", {
13912
+ }), make6("StoreArtifact", {
14056
13913
  payload: {
14057
13914
  lease: ProgramLease,
14058
13915
  step: String4,
@@ -14064,7 +13921,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14064
13921
  },
14065
13922
  success: Struct({ artifactId: String4 }),
14066
13923
  error: RunnerRpcError
14067
- }), make5("RecordNote", {
13924
+ }), make6("RecordNote", {
14068
13925
  payload: {
14069
13926
  lease: ProgramLease,
14070
13927
  step: String4,
@@ -14072,7 +13929,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14072
13929
  artifactId: optional(String4)
14073
13930
  },
14074
13931
  error: RunnerRpcError
14075
- }), make5("PerformHostEffect", {
13932
+ }), make6("PerformHostEffect", {
14076
13933
  payload: {
14077
13934
  lease: ProgramLease,
14078
13935
  step: String4,
@@ -14100,7 +13957,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14100
13957
  },
14101
13958
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14102
13959
  error: RunnerRpcError
14103
- }), make5("AlertTask", {
13960
+ }), make6("AlertTask", {
14104
13961
  payload: {
14105
13962
  lease: ProgramLease,
14106
13963
  step: String4,
@@ -14117,7 +13974,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14117
13974
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14118
13975
  }),
14119
13976
  error: RunnerRpcError
14120
- }), make5("ReadTranscripts", {
13977
+ }), make6("ReadTranscripts", {
14121
13978
  payload: { lease: ProgramLease, step: String4, days: Int },
14122
13979
  success: Struct({
14123
13980
  runs: ArraySchema(Struct({
@@ -14136,7 +13993,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14136
13993
  }))
14137
13994
  }),
14138
13995
  error: RunnerRpcError
14139
- }), make5("PipelineStatus", {
13996
+ }), make6("PipelineStatus", {
14140
13997
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14141
13998
  success: Struct({
14142
13999
  head: String4,
@@ -14152,11 +14009,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14152
14009
  runnerChecks: optionalKey(ArraySchema(String4))
14153
14010
  }),
14154
14011
  error: RunnerRpcError
14155
- }), make5("ReportPipeline", {
14012
+ }), make6("ReportPipeline", {
14156
14013
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14157
14014
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14158
14015
  error: RunnerRpcError
14159
- }), make5("ReviewThreads", {
14016
+ }), make6("ReviewThreads", {
14160
14017
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14161
14018
  success: Struct({
14162
14019
  threads: ArraySchema(Struct({
@@ -14168,7 +14025,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14168
14025
  }))
14169
14026
  }),
14170
14027
  error: RunnerRpcError
14171
- }), make5("OpenChangeRequests", {
14028
+ }), make6("OpenChangeRequests", {
14172
14029
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14173
14030
  success: Struct({
14174
14031
  changeRequests: ArraySchema(Struct({
@@ -14182,7 +14039,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14182
14039
  }))
14183
14040
  }),
14184
14041
  error: RunnerRpcError
14185
- }), make5("OwnChangeRequests", {
14042
+ }), make6("OwnChangeRequests", {
14186
14043
  payload: { lease: ProgramLease, step: String4 },
14187
14044
  success: Struct({
14188
14045
  changeRequests: ArraySchema(Struct({
@@ -14195,7 +14052,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14195
14052
  }))
14196
14053
  }),
14197
14054
  error: RunnerRpcError
14198
- }), make5("Propose", {
14055
+ }), make6("Propose", {
14199
14056
  payload: {
14200
14057
  lease: ProgramLease,
14201
14058
  step: String4,
@@ -14222,7 +14079,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14222
14079
  matched: optionalKey(Boolean2)
14223
14080
  }),
14224
14081
  error: RunnerRpcError
14225
- }), make5("ReadProject", {
14082
+ }), make6("ReadProject", {
14226
14083
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14227
14084
  success: Struct({
14228
14085
  project: Struct({ id: String4, name: String4 }),
@@ -14245,7 +14102,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14245
14102
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14246
14103
  }),
14247
14104
  error: RunnerRpcError
14248
- }), make5("DraftUpdate", {
14105
+ }), make6("DraftUpdate", {
14249
14106
  payload: {
14250
14107
  lease: ProgramLease,
14251
14108
  step: String4,
@@ -14260,7 +14117,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14260
14117
  },
14261
14118
  success: Struct({ id: String4 }),
14262
14119
  error: RunnerRpcError
14263
- }), make5("CreatePlanTasks", {
14120
+ }), make6("CreatePlanTasks", {
14264
14121
  payload: {
14265
14122
  lease: ProgramLease,
14266
14123
  projectId: optionalKey(String4),
@@ -14275,11 +14132,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14275
14132
  },
14276
14133
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14277
14134
  error: RunnerRpcError
14278
- }), make5("IntegrationBranch", {
14135
+ }), make6("IntegrationBranch", {
14279
14136
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14280
14137
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14281
14138
  error: RunnerRpcError
14282
- }), make5("MergeChangeRequest", {
14139
+ }), make6("MergeChangeRequest", {
14283
14140
  payload: {
14284
14141
  lease: ProgramLease,
14285
14142
  step: String4,
@@ -14292,7 +14149,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14292
14149
  Struct({ status: Literal("moved"), head: String4 })
14293
14150
  ]),
14294
14151
  error: RunnerRpcError
14295
- }), make5("ApproveChangeRequest", {
14152
+ }), make6("ApproveChangeRequest", {
14296
14153
  payload: {
14297
14154
  lease: ProgramLease,
14298
14155
  step: String4,
@@ -14307,7 +14164,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14307
14164
  Struct({ approved: Literal(false), reason: String4 })
14308
14165
  ]),
14309
14166
  error: RunnerRpcError
14310
- }), make5("CloseChangeRequest", {
14167
+ }), make6("CloseChangeRequest", {
14311
14168
  payload: {
14312
14169
  lease: ProgramLease,
14313
14170
  step: String4,
@@ -14317,7 +14174,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14317
14174
  },
14318
14175
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14319
14176
  error: RunnerRpcError
14320
- }), make5("RerunPipeline", {
14177
+ }), make6("RerunPipeline", {
14321
14178
  payload: {
14322
14179
  lease: ProgramLease,
14323
14180
  step: String4,
@@ -14327,7 +14184,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14327
14184
  },
14328
14185
  success: Struct({ head: String4, pipelines: Int }),
14329
14186
  error: RunnerRpcError
14330
- }), make5("PublishRelease", {
14187
+ }), make6("PublishRelease", {
14331
14188
  payload: {
14332
14189
  lease: ProgramLease,
14333
14190
  step: String4,
@@ -14338,14 +14195,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14338
14195
  },
14339
14196
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14340
14197
  error: RunnerRpcError
14341
- }), make5("ProgramSecrets", {
14198
+ }), make6("ProgramSecrets", {
14342
14199
  payload: { lease: ProgramLease },
14343
14200
  success: Record(String4, String4),
14344
14201
  error: RunnerRpcError
14345
14202
  })).middleware(RunnerAuthentication) {
14346
14203
  }
14347
14204
 
14348
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14205
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14349
14206
  payload: {
14350
14207
  lease: ProgramLease,
14351
14208
  step: String4,
@@ -14357,11 +14214,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14357
14214
  },
14358
14215
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14359
14216
  error: Union([RunnerRpcError, RunFileRefused])
14360
- }), make5("RunFileParts", {
14217
+ }), make6("RunFileParts", {
14361
14218
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14362
14219
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14363
14220
  error: RunnerRpcError
14364
- }), make5("CompleteRunFile", {
14221
+ }), make6("CompleteRunFile", {
14365
14222
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14366
14223
  success: RunFileRecord,
14367
14224
  error: RunnerRpcError
@@ -14371,7 +14228,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14371
14228
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14372
14229
 
14373
14230
  // apps/cli/src/oauth.ts
14374
- var Scope2 = "openid profile email offline_access kitman:cli";
14231
+ var Scope = "openid profile email offline_access kitman:cli";
14375
14232
  var CallbackPath = "/auth/callback";
14376
14233
 
14377
14234
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14390,7 +14247,7 @@ function buildAuthorizeUrl(input) {
14390
14247
  url.searchParams.set("response_type", "code");
14391
14248
  url.searchParams.set("client_id", input.clientId);
14392
14249
  url.searchParams.set("redirect_uri", input.redirectUri);
14393
- url.searchParams.set("scope", Scope2);
14250
+ url.searchParams.set("scope", Scope);
14394
14251
  url.searchParams.set("code_challenge", input.codeChallenge);
14395
14252
  url.searchParams.set("code_challenge_method", "S256");
14396
14253
  url.searchParams.set("state", input.state);
@@ -14450,7 +14307,7 @@ function toStoredSession(token, existingRefreshToken) {
14450
14307
  }
14451
14308
  function startLoopbackServer(input) {
14452
14309
  return gen(function* () {
14453
- const code = yield* make14();
14310
+ const code = yield* make16();
14454
14311
  const context2 = yield* context();
14455
14312
  const runSyncExit = runSyncExitWith(context2);
14456
14313
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14990,7 +14847,7 @@ var openConnection = (transport) => gen(function* () {
14990
14847
  let lastId = 0;
14991
14848
  let lost = false;
14992
14849
  const notifications = yield* unbounded2();
14993
- const ended = yield* make14();
14850
+ const ended = yield* make16();
14994
14851
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14995
14852
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14996
14853
  onNone: () => void_3,
@@ -15017,7 +14874,7 @@ var openConnection = (transport) => gen(function* () {
15017
14874
  if (lost)
15018
14875
  return yield* new HerdrCoreConnectionLost2({ method });
15019
14876
  const id = ++lastId;
15020
- const deferred = yield* make14();
14877
+ const deferred = yield* make16();
15021
14878
  pending.set(id, { method, deferred });
15022
14879
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15023
14880
  return yield* _await(deferred);
@@ -15091,14 +14948,14 @@ var herdrCoreOver = (transport) => ({
15091
14948
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15092
14949
  };
15093
14950
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15094
- return concat(make9(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
14951
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15095
14952
  }))
15096
14953
  });
15097
14954
  var spawnedTransport = (env) => gen(function* () {
15098
14955
  const spawner = yield* ChildProcessSpawner;
15099
14956
  const input = yield* unbounded2();
15100
14957
  const encoder = new TextEncoder;
15101
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
14958
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15102
14959
  extendEnv: false,
15103
14960
  env,
15104
14961
  stdin: fromQueue(input),
@@ -15129,7 +14986,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15129
14986
  const spawner = yield* ChildProcessSpawner;
15130
14987
  const env = coreEnv(options);
15131
14988
  const run = (args) => gen(function* () {
15132
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14989
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15133
14990
  const [stdout, stderr, exitCode] = yield* all3([
15134
14991
  mkString(decodeText(handle.stdout)),
15135
14992
  mkString(decodeText(handle.stderr)),
@@ -15155,7 +15012,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15155
15012
  }
15156
15013
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15157
15014
  const spawner = yield* ChildProcessSpawner;
15158
- const handle = yield* spawner.spawn(make2(command, args, {
15015
+ const handle = yield* spawner.spawn(make3(command, args, {
15159
15016
  stdin: "ignore",
15160
15017
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15161
15018
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15181,8 +15038,8 @@ var shellOutputTailChars2 = 64 * 1024;
15181
15038
  var runProcess2 = (argv, options) => gen(function* () {
15182
15039
  const spawner = yield* ChildProcessSpawner;
15183
15040
  const [command, ...args] = argv;
15184
- const handle = yield* spawner.spawn(make2(command, args, {
15185
- stdin: options.stdin === undefined ? "ignore" : make9(new TextEncoder().encode(options.stdin)),
15041
+ const handle = yield* spawner.spawn(make3(command, args, {
15042
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15186
15043
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15187
15044
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15188
15045
  }));
@@ -15604,4 +15461,4 @@ function checkServices(declaration) {
15604
15461
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15605
15462
  }
15606
15463
 
15607
- 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, 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, make4, get, put, setHeaders, bodyUint8Array, 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, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, 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 };
15464
+ 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, 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, put, setHeaders, bodyUint8Array, 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 };