@kitman-sh/cli 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{chunk-qsbq9gvr.js → chunk-1zvfqdby.js} +193 -350
  2. package/dist/{chunk-eqh0h088.js → chunk-38prvh9d.js} +28 -25
  3. package/dist/{chunk-a40yta1r.js → chunk-5bpp6k0h.js} +3 -3
  4. package/dist/{chunk-wxg9k10v.js → chunk-5tgpa02q.js} +1 -1
  5. package/dist/{chunk-pppryg54.js → chunk-72ht3484.js} +6 -6
  6. package/dist/{chunk-wb04fv2s.js → chunk-7enqpa5x.js} +34 -34
  7. package/dist/{chunk-9hde8p6b.js → chunk-7y50jhm7.js} +6 -6
  8. package/dist/{chunk-2nq80r46.js → chunk-8r9k7pqk.js} +19 -59
  9. package/dist/{chunk-2t1hcdeq.js → chunk-ab7r6p1s.js} +21 -19
  10. package/dist/{chunk-q2z8rct0.js → chunk-ag79vvjy.js} +4 -4
  11. package/dist/{chunk-5yygjn0k.js → chunk-apv9h5tz.js} +1 -1
  12. package/dist/{chunk-mmt6xq48.js → chunk-brbym443.js} +2 -2
  13. package/dist/{chunk-trtgab3h.js → chunk-c6yxzkz2.js} +11 -19
  14. package/dist/{chunk-h5ydhdhx.js → chunk-c9vcvseh.js} +23 -23
  15. package/dist/{chunk-my9db578.js → chunk-cy13pst5.js} +4 -4
  16. package/dist/{chunk-chbdcf34.js → chunk-e627b064.js} +15 -9
  17. package/dist/{chunk-bj0zchck.js → chunk-hyaq30ne.js} +188 -179
  18. package/dist/{chunk-84qb67e2.js → chunk-jh5vjc8h.js} +1 -1
  19. package/dist/{chunk-xbqd3kqc.js → chunk-jwr750jd.js} +21 -21
  20. package/dist/{chunk-tqspx38s.js → chunk-k1fdsn2c.js} +1 -1
  21. package/dist/{chunk-tfznw549.js → chunk-n00cpb86.js} +2 -2
  22. package/dist/{chunk-zb4t1yrt.js → chunk-n381rqax.js} +257 -71
  23. package/dist/{chunk-bhz25x76.js → chunk-qfwhsqej.js} +3 -3
  24. package/dist/{chunk-kt26vpwf.js → chunk-stx87en6.js} +9 -9
  25. package/dist/{chunk-axfp5tzk.js → chunk-vdaq7292.js} +7 -7
  26. package/dist/{chunk-qjfzcrv5.js → chunk-y52g539d.js} +4 -4
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -62,11 +62,9 @@ import {
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,
@@ -89,9 +87,7 @@ import {
89
87
  ConsoleRef,
90
88
  succeed3,
91
89
  fail4,
92
- void_2,
93
90
  isSuccess2,
94
- isFailure2,
95
91
  makeUnsafe5,
96
92
  make15,
97
93
  _await,
@@ -101,12 +97,8 @@ import {
101
97
  succeed4,
102
98
  doneUnsafe,
103
99
  TracerTimingEnabled,
104
- Scope,
105
- makeUnsafe6,
106
100
  provide,
107
- addFinalizerExit,
108
101
  addFinalizer,
109
- close,
110
102
  succeed5,
111
103
  effect,
112
104
  effectContext,
@@ -158,7 +150,6 @@ import {
158
150
  tapCause,
159
151
  retry,
160
152
  ignore,
161
- ignoreCause,
162
153
  orElseSucceed,
163
154
  timeout,
164
155
  timeoutOrElse,
@@ -170,7 +161,6 @@ import {
170
161
  context,
171
162
  contextWith,
172
163
  provide3,
173
- provideContext2,
174
164
  serviceOption,
175
165
  updateContext,
176
166
  provideService,
@@ -181,7 +171,6 @@ import {
181
171
  addFinalizer2,
182
172
  ensuring2,
183
173
  onError,
184
- onExit,
185
174
  cached,
186
175
  interrupt3,
187
176
  interruptible,
@@ -193,7 +182,6 @@ import {
193
182
  withParentSpan,
194
183
  forkScoped,
195
184
  runFork,
196
- runForkWith,
197
185
  runPromise,
198
186
  runPromiseWith,
199
187
  runSync,
@@ -203,7 +191,12 @@ import {
203
191
  clockWith,
204
192
  logError,
205
193
  effectify,
194
+ toNumber,
195
+ bytes,
206
196
  decode,
197
+ isRedacted,
198
+ make16,
199
+ value,
207
200
  defaultParseOptions,
208
201
  omit,
209
202
  map10,
@@ -214,7 +207,7 @@ import {
214
207
  decodeUnknownExit,
215
208
  decodeUnknownOption,
216
209
  decodeOption,
217
- make16,
210
+ make17,
218
211
  isSchema,
219
212
  optionalKey,
220
213
  optional,
@@ -275,23 +268,16 @@ import {
275
268
  decodeJsonStringOption,
276
269
  encodeJsonStringSync,
277
270
  encodePrettyJsonString
278
- } from "./chunk-zb4t1yrt.js";
271
+ } from "./chunk-n381rqax.js";
279
272
  import {
280
273
  map,
281
274
  makeEquivalence,
282
- Clock,
283
- currentTimeMillis,
284
- bytes,
285
- join,
286
- interrupt,
287
- getCurrent,
288
- runIn,
289
275
  BadArgument,
290
276
  systemError,
291
277
  badArgument,
292
278
  makeUnsafe2,
279
+ make7,
293
280
  make8,
294
- make9,
295
281
  sliding,
296
282
  unbounded2,
297
283
  offer,
@@ -307,6 +293,8 @@ import {
307
293
  isSink,
308
294
  fromChannel,
309
295
  drain,
296
+ make9,
297
+ get3,
310
298
  isStream,
311
299
  fromChannel2,
312
300
  callback,
@@ -347,21 +335,20 @@ import {
347
335
  optionalEnv,
348
336
  harnessesUnsupportedInSrt2,
349
337
  harnessesUnsupportedInDocker2
350
- } from "./chunk-bj0zchck.js";
338
+ } from "./chunk-hyaq30ne.js";
351
339
  import {
352
- isRedacted,
353
- make,
354
- value,
340
+ Clock,
341
+ currentTimeMillis,
355
342
  ExitCode,
356
343
  ProcessId,
357
344
  makeHandle,
358
- make2,
345
+ make,
359
346
  ChildProcessSpawner,
360
347
  display,
361
- make3,
348
+ make2,
362
349
  parseFdName,
363
350
  fdName
364
- } from "./chunk-2nq80r46.js";
351
+ } from "./chunk-8r9k7pqk.js";
365
352
  import {
366
353
  isDateTime,
367
354
  Numeric,
@@ -374,8 +361,7 @@ import {
374
361
  SecretScope,
375
362
  SecretHosts,
376
363
  isSecretReference
377
- } from "./chunk-wxg9k10v.js";
378
-
364
+ } from "./chunk-5tgpa02q.js";
379
365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
380
366
  var makeEquivalence3 = Tuple;
381
367
 
@@ -513,7 +499,7 @@ var fromDateUnsafe = (date) => {
513
499
  }
514
500
  return makeUtc(epochMillis);
515
501
  };
516
- var makeUnsafe7 = (input) => {
502
+ var makeUnsafe6 = (input) => {
517
503
  if (isDateTime2(input)) {
518
504
  return input;
519
505
  } else if (input instanceof Date) {
@@ -533,7 +519,7 @@ var makeUnsafe7 = (input) => {
533
519
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
534
520
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
535
521
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
536
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
537
523
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
538
524
  var nowUnsafe = () => makeUtc(Date.now());
539
525
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -640,7 +626,7 @@ class Metric$ {
640
626
  }
641
627
  hook(context) {
642
628
  const key = this.key(context);
643
- const registry = get3(context, MetricRegistry);
629
+ const registry = get4(context, MetricRegistry);
644
630
  let metadata = registry.get(key);
645
631
  if (isUndefined(metadata)) {
646
632
  metadata = this.metadata(this.createHooks());
@@ -649,11 +635,11 @@ class Metric$ {
649
635
  return metadata.hooks;
650
636
  }
651
637
  removeUnsafe(context) {
652
- get3(context, MetricRegistry).delete(this.key(context));
638
+ get4(context, MetricRegistry).delete(this.key(context));
653
639
  }
654
640
  registerUnsafe(context, hooks) {
655
641
  const key = this.key(context);
656
- const registry = get3(context, MetricRegistry);
642
+ const registry = get4(context, MetricRegistry);
657
643
  const metadata = this.metadata({
658
644
  get: hooks.get,
659
645
  update: constVoid,
@@ -669,7 +655,7 @@ class Metric$ {
669
655
  };
670
656
  }
671
657
  key(context) {
672
- const extraAttributes = get3(context, CurrentMetricAttributes);
658
+ const extraAttributes = get4(context, CurrentMetricAttributes);
673
659
  if (extraAttributes !== this.#extraAttributes) {
674
660
  this.#extraAttributes = extraAttributes;
675
661
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -912,160 +898,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
912
898
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
913
899
  var runMain = runMain2;
914
900
 
915
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
916
- var BigInt2 = globalThis.BigInt;
917
- var toNumber = (b) => {
918
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
919
- return none();
920
- }
921
- return some(Number(b));
922
- };
923
-
924
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
925
- var TypeId3 = "~effect/RcRef";
926
- var stateEmpty = {
927
- _tag: "Empty"
928
- };
929
- var stateClosed = {
930
- _tag: "Closed"
931
- };
932
- var variance = {
933
- _A: identity,
934
- _E: identity
935
- };
936
-
937
- class RcRefImpl {
938
- [TypeId3] = variance;
939
- pipe() {
940
- return pipeArguments(this, arguments);
941
- }
942
- state = stateEmpty;
943
- acquire;
944
- context;
945
- scope;
946
- idleTimeToLive;
947
- constructor(acquire, context, scope, idleTimeToLive) {
948
- this.acquire = acquire;
949
- this.context = context;
950
- this.scope = scope;
951
- this.idleTimeToLive = idleTimeToLive;
952
- }
953
- }
954
- var make17 = (options) => withFiber2((fiber) => {
955
- const context = fiber.context;
956
- const scope = get3(context, Scope);
957
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
958
- return as(addFinalizerExit(scope, () => {
959
- const state = ref.state;
960
- ref.state = stateClosed;
961
- if (state._tag === "Acquired")
962
- return close(state.scope, void_2);
963
- if (state._tag === "Acquiring")
964
- return interrupt(state.fiber);
965
- return void_3;
966
- }), ref);
967
- });
968
- var getState = (self, restore) => {
969
- switch (self.state._tag) {
970
- case "Closed": {
971
- return interrupt3;
972
- }
973
- case "Acquired": {
974
- const state = self.state;
975
- state.refCount++;
976
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
977
- }
978
- case "Acquiring": {
979
- const state = self.state;
980
- state.awaiters++;
981
- return awaitAcquiring(self, state, restore);
982
- }
983
- case "Empty": {
984
- const acquiring = {
985
- _tag: "Acquiring",
986
- fiber: undefined,
987
- awaiters: 1,
988
- acquired: undefined
989
- };
990
- self.state = acquiring;
991
- const scope = makeUnsafe6();
992
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
993
- if (self.state !== acquiring) {
994
- return interrupt3;
995
- }
996
- const state = {
997
- _tag: "Acquired",
998
- value,
999
- scope,
1000
- fiber: undefined,
1001
- refCount: acquiring.awaiters,
1002
- invalidated: false
1003
- };
1004
- self.state = state;
1005
- acquiring.acquired = state;
1006
- return succeed6(state);
1007
- }), onExit((exit) => {
1008
- if (isSuccess2(exit))
1009
- return void_3;
1010
- if (self.state === acquiring)
1011
- self.state = stateEmpty;
1012
- return close(scope, exit);
1013
- }));
1014
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1015
- return awaitAcquiring(self, acquiring, restore);
1016
- }
1017
- }
1018
- };
1019
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1020
- const acquired = acquiring.acquired;
1021
- if (acquired !== undefined) {
1022
- return isFailure2(exit) ? release(self, acquired) : void_3;
1023
- }
1024
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1025
- return void_3;
1026
- self.state = stateEmpty;
1027
- return interrupt(acquiring.fiber);
1028
- });
1029
- var get4 = (self_) => {
1030
- const self = self_;
1031
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1032
- };
1033
- var release = (self, state) => {
1034
- state.refCount--;
1035
- if (state.refCount > 0) {
1036
- return void_3;
1037
- }
1038
- const idleTimeToLive = self.idleTimeToLive;
1039
- if (idleTimeToLive === undefined || state.invalidated) {
1040
- if (self.state === state) {
1041
- self.state = stateEmpty;
1042
- }
1043
- return close(state.scope, void_2);
1044
- } else if (!isFinite(idleTimeToLive)) {
1045
- return void_3;
1046
- }
1047
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1048
- if (self.state === state && state.refCount === 0) {
1049
- self.state = stateEmpty;
1050
- return ignoreCause(close(state.scope, void_2), {
1051
- log: "Unhandled",
1052
- message: "Unhandled error in RcRef finalizer"
1053
- });
1054
- }
1055
- return void_3;
1056
- })).pipe(ensuring2(sync2(() => {
1057
- state.fiber = undefined;
1058
- })), runForkWith(self.context), runIn(self.scope));
1059
- return void_3;
1060
- };
1061
-
1062
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1063
- var make18 = make17;
1064
- var get5 = get4;
1065
-
1066
901
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1067
- var makeUnsafe = makeUnsafe7;
1068
- var make19 = make4;
902
+ var makeUnsafe = makeUnsafe6;
903
+ var make18 = make3;
1069
904
  var now2 = now;
1070
905
  var nowUnsafe2 = nowUnsafe;
1071
906
  var toDateUtc2 = toDateUtc;
@@ -1280,7 +1115,7 @@ var readableToPullUnsafe = (options) => {
1280
1115
  const readable = options.readable;
1281
1116
  const chunkSize = options.chunkSize ?? 4096;
1282
1117
  const closeOnDone = options.closeOnDone ?? true;
1283
- const exit = options.exit ?? make8(undefined);
1118
+ const exit = options.exit ?? make7(undefined);
1284
1119
  const latch = options.latch ?? makeUnsafe2(false);
1285
1120
  function onReadable() {
1286
1121
  latch.openUnsafe();
@@ -1384,7 +1219,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1384
1219
  windowsHide: true
1385
1220
  }, onExit);
1386
1221
  };
1387
- var make20 = /* @__PURE__ */ gen(function* () {
1222
+ var make19 = /* @__PURE__ */ gen(function* () {
1388
1223
  const fs = yield* FileSystem;
1389
1224
  const path = yield* Path;
1390
1225
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1844,7 +1679,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1844
1679
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1845
1680
  const toOption = options.to ?? "stdin";
1846
1681
  if (toOption === "stdin") {
1847
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1682
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1848
1683
  ...command.options,
1849
1684
  stdin: {
1850
1685
  ...stdinConfig,
@@ -1864,7 +1699,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1864
1699
  type: "input",
1865
1700
  stream: sourceStream
1866
1701
  };
1867
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1702
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1868
1703
  ...command.options,
1869
1704
  additionalFds: {
1870
1705
  ...existingFds,
@@ -1872,7 +1707,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1872
1707
  }
1873
1708
  })));
1874
1709
  } else {
1875
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1710
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1876
1711
  ...command.options,
1877
1712
  stdin: {
1878
1713
  ...stdinConfig,
@@ -1911,9 +1746,9 @@ var make20 = /* @__PURE__ */ gen(function* () {
1911
1746
  }
1912
1747
  }
1913
1748
  });
1914
- return make2(spawnCommand);
1749
+ return make(spawnCommand);
1915
1750
  });
1916
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1751
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1917
1752
  var flattenCommand = (command) => {
1918
1753
  const commands = [];
1919
1754
  const pipeOptions = [];
@@ -2474,10 +2309,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2474
2309
  var layer2 = layer7;
2475
2310
 
2476
2311
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2477
- var TypeId4 = "~effect/Stdio";
2478
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2479
- var make21 = (options) => ({
2480
- [TypeId4]: TypeId4,
2312
+ var TypeId3 = "~effect/Stdio";
2313
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2314
+ var make20 = (options) => ({
2315
+ [TypeId3]: TypeId3,
2481
2316
  stdinIsTerminal: succeed6(false),
2482
2317
  stdoutIsTerminal: succeed6(false),
2483
2318
  stderrIsTerminal: succeed6(false),
@@ -2485,7 +2320,7 @@ var make21 = (options) => ({
2485
2320
  });
2486
2321
 
2487
2322
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2488
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2323
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2489
2324
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2490
2325
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2491
2326
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2685,7 +2520,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2685
2520
  const uuid = bytes(randomBytes(16));
2686
2521
  return format === "bytes" ? uuid : stringify(uuid);
2687
2522
  };
2688
- var make22 = (randomBytes) => {
2523
+ var make21 = (randomBytes) => {
2689
2524
  const randomBytesChecked = (size) => {
2690
2525
  checkSize(size);
2691
2526
  return randomBytes(size);
@@ -2719,7 +2554,7 @@ var fillRandom = (crypto2, size) => {
2719
2554
  }
2720
2555
  return bytes;
2721
2556
  };
2722
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2557
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2723
2558
  var randomBytesUnsafe = (size) => {
2724
2559
  checkSize(size);
2725
2560
  return fillRandom(globalThis.crypto, size);
@@ -2727,10 +2562,10 @@ var randomBytesUnsafe = (size) => {
2727
2562
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2728
2563
 
2729
2564
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2730
- var TypeId5 = "~effect/http/Cookies";
2565
+ var TypeId4 = "~effect/http/Cookies";
2731
2566
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2732
2567
  var Proto2 = {
2733
- [TypeId5]: TypeId5,
2568
+ [TypeId4]: TypeId4,
2734
2569
  ...BaseProto,
2735
2570
  toJSON() {
2736
2571
  return {
@@ -2909,14 +2744,14 @@ var tryDecodeURIComponent = (str) => {
2909
2744
  };
2910
2745
 
2911
2746
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2912
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2747
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2913
2748
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2914
- [TypeId6]: {
2915
- value: TypeId6
2749
+ [TypeId5]: {
2750
+ value: TypeId5
2916
2751
  },
2917
2752
  [symbolRedactable]: {
2918
2753
  value(context) {
2919
- return redact2(this, get3(context, CurrentRedactedNames));
2754
+ return redact2(this, get4(context, CurrentRedactedNames));
2920
2755
  }
2921
2756
  },
2922
2757
  toJSON: {
@@ -2941,7 +2776,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2941
2776
  value: BaseProto[NodeInspectSymbol]
2942
2777
  }
2943
2778
  });
2944
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2779
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2945
2780
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2946
2781
  var empty = /* @__PURE__ */ Object.create(Proto3);
2947
2782
  var fromInput = (input) => {
@@ -2966,21 +2801,21 @@ var fromInput = (input) => {
2966
2801
  };
2967
2802
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2968
2803
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2969
- const out = make23(self);
2804
+ const out = make22(self);
2970
2805
  out[key.toLowerCase()] = value;
2971
2806
  return out;
2972
2807
  });
2973
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2808
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2974
2809
  ...self,
2975
2810
  ...fromInput(headers)
2976
2811
  }));
2977
2812
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2978
- const out = make23(self);
2813
+ const out = make22(self);
2979
2814
  Object.assign(out, headers);
2980
2815
  return out;
2981
2816
  });
2982
2817
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2983
- const out = make23(self);
2818
+ const out = make22(self);
2984
2819
  delete out[key.toLowerCase()];
2985
2820
  return out;
2986
2821
  });
@@ -2992,12 +2827,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2992
2827
  if (typeof key === "string") {
2993
2828
  const k = key.toLowerCase();
2994
2829
  if (k in self) {
2995
- out[k] = make(self[k]);
2830
+ out[k] = make16(self[k]);
2996
2831
  }
2997
2832
  } else {
2998
2833
  for (const name in self) {
2999
2834
  if (name.search(key) !== -1) {
3000
- out[name] = make(self[name]);
2835
+ out[name] = make16(self[name]);
3001
2836
  }
3002
2837
  }
3003
2838
  }
@@ -3037,18 +2872,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3037
2872
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3038
2873
 
3039
2874
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3040
- var TypeId7 = "~effect/http/UrlParams";
3041
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2875
+ var TypeId6 = "~effect/http/UrlParams";
2876
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3042
2877
  var Proto4 = {
3043
2878
  ...PipeInspectableProto,
3044
- [TypeId7]: TypeId7,
2879
+ [TypeId6]: TypeId6,
3045
2880
  [Symbol.iterator]() {
3046
2881
  return this.params[Symbol.iterator]();
3047
2882
  },
3048
2883
  [symbolRedactable](context) {
3049
2884
  return {
3050
2885
  _id: "UrlParams",
3051
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2886
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3052
2887
  };
3053
2888
  },
3054
2889
  toJSON() {
@@ -3061,7 +2896,7 @@ var Proto4 = {
3061
2896
  return array(this.params.flat());
3062
2897
  }
3063
2898
  };
3064
- var make24 = (params) => {
2899
+ var make23 = (params) => {
3065
2900
  const self = Object.create(Proto4);
3066
2901
  self.params = params;
3067
2902
  return self;
@@ -3080,7 +2915,7 @@ var fromInput2 = (input) => {
3080
2915
  out.push(parsed[i]);
3081
2916
  }
3082
2917
  }
3083
- return make24(out);
2918
+ return make23(out);
3084
2919
  };
3085
2920
  var fromInputNested = (input) => {
3086
2921
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3106,7 +2941,7 @@ var fromInputNested = (input) => {
3106
2941
  var coerce = (value) => isRedacted(value) ? value : String(value);
3107
2942
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
3108
2943
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3109
- var empty2 = /* @__PURE__ */ make24([]);
2944
+ var empty2 = /* @__PURE__ */ make23([]);
3110
2945
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3111
2946
  const params = fromInput2(input).params.slice();
3112
2947
  const keys = new Set;
@@ -3118,12 +2953,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3118
2953
  continue;
3119
2954
  params.push(self.params[i]);
3120
2955
  }
3121
- return make24(params);
2956
+ return make23(params);
3122
2957
  });
3123
2958
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3124
2959
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
3125
2960
  const patterns = Array.isArray(key) ? key : [key];
3126
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2961
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3127
2962
  });
3128
2963
  var isRedactedName2 = isRedactedName;
3129
2964
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3174,13 +3009,13 @@ var decodeQueryKey = (key) => {
3174
3009
  return key;
3175
3010
  }
3176
3011
  };
3177
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3012
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3178
3013
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3179
3014
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3180
3015
  });
3181
3016
 
3182
3017
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3183
- var TypeId8 = "~effect/Terminal";
3018
+ var TypeId7 = "~effect/Terminal";
3184
3019
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3185
3020
 
3186
3021
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3189,17 +3024,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3189
3024
  [QuitErrorTypeId] = QuitErrorTypeId;
3190
3025
  }
3191
3026
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3192
- var make25 = (impl) => Terminal.of({
3027
+ var make24 = (impl) => Terminal.of({
3193
3028
  ...impl,
3194
- [TypeId8]: TypeId8
3029
+ [TypeId7]: TypeId7
3195
3030
  });
3196
3031
 
3197
3032
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3198
3033
  import * as readline from "readline";
3199
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3034
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3200
3035
  const stdin = process.stdin;
3201
3036
  const stdout = process.stdout;
3202
- const lines = yield* make9();
3037
+ const lines = yield* make8();
3203
3038
  let inputEnded = stdin.readableEnded;
3204
3039
  let readlineActive = false;
3205
3040
  const onStdinEnd = () => {
@@ -3210,7 +3045,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3210
3045
  };
3211
3046
  stdin.once("end", onStdinEnd);
3212
3047
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3213
- const rlRef = yield* make18({
3048
+ const rlRef = yield* make9({
3214
3049
  acquire: acquireRelease(sync2(() => {
3215
3050
  const rl = readline.createInterface({
3216
3051
  input: stdin,
@@ -3249,7 +3084,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3249
3084
  if (stdin.isTTY)
3250
3085
  stdin.setRawMode(enabled);
3251
3086
  });
3252
- const rawModeRef = yield* make18({
3087
+ const rawModeRef = yield* make9({
3253
3088
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3254
3089
  idleTimeToLive: "10 millis"
3255
3090
  });
@@ -3270,7 +3105,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3270
3105
  return queue;
3271
3106
  });
3272
3107
  const readInput = gen(function* () {
3273
- const queue = yield* make9();
3108
+ const queue = yield* make8();
3274
3109
  const handleKeypress = (s, k) => {
3275
3110
  const userInput = {
3276
3111
  input: fromUndefinedOr(s),
@@ -3300,14 +3135,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3300
3135
  if (inputEnded) {
3301
3136
  handleEnd();
3302
3137
  } else {
3303
- yield* get5(rlRef);
3304
- yield* get5(rawModeRef);
3138
+ yield* get3(rlRef);
3139
+ yield* get3(rawModeRef);
3305
3140
  stdin.once("end", handleEnd);
3306
3141
  }
3307
3142
  return queue;
3308
3143
  });
3309
3144
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3310
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3145
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3311
3146
  onSome: succeed6
3312
3147
  })), mapError2(() => new QuitError({}))));
3313
3148
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3318,7 +3153,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3318
3153
  cause: err
3319
3154
  }))));
3320
3155
  }));
3321
- return make25({
3156
+ return make24({
3322
3157
  columns,
3323
3158
  rows,
3324
3159
  size,
@@ -3327,7 +3162,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3327
3162
  display
3328
3163
  });
3329
3164
  });
3330
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3165
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3331
3166
  function defaultShouldQuit(input) {
3332
3167
  const key = input.key;
3333
3168
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3354,7 +3189,7 @@ function toDate(input) {
3354
3189
  return toDateUtc2(makeUnsafe(input));
3355
3190
  }
3356
3191
  function parseDate(input) {
3357
- return getOrUndefined(map4(make19(input), toDateUtc2));
3192
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3358
3193
  }
3359
3194
  function toIso(input) {
3360
3195
  return formatIso(makeUnsafe(input));
@@ -11184,11 +11019,11 @@ var TranscriptSearchResult = Struct({
11184
11019
  total: Int
11185
11020
  });
11186
11021
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
11187
- var TypeId9 = "~effect/http/HttpBody";
11022
+ var TypeId8 = "~effect/http/HttpBody";
11188
11023
  class Proto5 {
11189
- [TypeId9];
11024
+ [TypeId8];
11190
11025
  constructor() {
11191
- this[TypeId9] = TypeId9;
11026
+ this[TypeId8] = TypeId8;
11192
11027
  }
11193
11028
  [NodeInspectSymbol]() {
11194
11029
  return this.toJSON();
@@ -11279,7 +11114,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11279
11114
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11280
11115
 
11281
11116
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11282
- var TypeId10 = "~effect/http/HttpClientError";
11117
+ var TypeId9 = "~effect/http/HttpClientError";
11283
11118
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11284
11119
  constructor(props) {
11285
11120
  if ("cause" in props.reason) {
@@ -11291,7 +11126,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11291
11126
  super(props);
11292
11127
  }
11293
11128
  }
11294
- [TypeId10] = TypeId10;
11129
+ [TypeId9] = TypeId9;
11295
11130
  get request() {
11296
11131
  return this.reason.request;
11297
11132
  }
@@ -11395,7 +11230,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11395
11230
  }
11396
11231
  }
11397
11232
 
11398
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11233
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11399
11234
  _tag: /* @__PURE__ */ tag("HttpError"),
11400
11235
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11401
11236
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11428,7 +11263,7 @@ var updateContentLength = (headers, body) => {
11428
11263
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11429
11264
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11430
11265
  }
11431
- var make27 = (url, params, hash) => try_({
11266
+ var make26 = (url, params, hash) => try_({
11432
11267
  try: () => {
11433
11268
  const urlInstance = new URL(url, baseUrl());
11434
11269
  for (let i = 0;i < params.params.length; i++) {
@@ -11459,10 +11294,10 @@ var baseUrl = () => {
11459
11294
  };
11460
11295
 
11461
11296
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11462
- var TypeId11 = "~effect/http/HttpClientRequest";
11463
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11297
+ var TypeId10 = "~effect/http/HttpClientRequest";
11298
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11464
11299
  var Proto6 = {
11465
- [TypeId11]: TypeId11,
11300
+ [TypeId10]: TypeId10,
11466
11301
  ...BaseProto,
11467
11302
  toJSON() {
11468
11303
  return {
@@ -11490,14 +11325,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11490
11325
  return self;
11491
11326
  }
11492
11327
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
11493
- var make5 = (method) => (url, options) => modify(empty6, {
11328
+ var make4 = (method) => (url, options) => modify(empty6, {
11494
11329
  method,
11495
11330
  url,
11496
11331
  ...options ?? undefined
11497
11332
  });
11498
- var get = /* @__PURE__ */ make5("GET");
11499
- var post = /* @__PURE__ */ make5("POST");
11500
- var put = /* @__PURE__ */ make5("PUT");
11333
+ var get = /* @__PURE__ */ make4("GET");
11334
+ var post = /* @__PURE__ */ make4("POST");
11335
+ var put = /* @__PURE__ */ make4("PUT");
11501
11336
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11502
11337
  let result = self;
11503
11338
  if (options.method) {
@@ -11551,7 +11386,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11551
11386
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11552
11387
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11553
11388
  function toUrl(self) {
11554
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11389
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11555
11390
  if (isSuccess(r)) {
11556
11391
  return some(r.success);
11557
11392
  }
@@ -11559,7 +11394,7 @@ function toUrl(self) {
11559
11394
  }
11560
11395
 
11561
11396
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11562
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11397
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11563
11398
  var schemaBodyJson = (schema, options) => {
11564
11399
  const decode = decodeEffect(toCodecJson(schema));
11565
11400
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11578,7 +11413,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11578
11413
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11579
11414
 
11580
11415
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11581
- var TypeId13 = "~effect/http/HttpClientResponse";
11416
+ var TypeId12 = "~effect/http/HttpClientResponse";
11582
11417
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11583
11418
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11584
11419
  reason: new StatusCodeError({
@@ -11589,16 +11424,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11589
11424
  }));
11590
11425
 
11591
11426
  class WebHttpClientResponse extends Class {
11427
+ [TypeId11];
11592
11428
  [TypeId12];
11593
- [TypeId13];
11594
11429
  request;
11595
11430
  source;
11596
11431
  constructor(request, source) {
11597
11432
  super();
11598
11433
  this.request = request;
11599
11434
  this.source = source;
11435
+ this[TypeId11] = TypeId11;
11600
11436
  this[TypeId12] = TypeId12;
11601
- this[TypeId13] = TypeId13;
11602
11437
  }
11603
11438
  toJSON() {
11604
11439
  return inspect(this, {
@@ -11770,7 +11605,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11770
11605
  };
11771
11606
 
11772
11607
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11773
- var TypeId14 = "~effect/http/HttpClient";
11608
+ var TypeId13 = "~effect/http/HttpClient";
11774
11609
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11775
11610
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11776
11611
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11787,7 +11622,7 @@ var makeWith2 = (postprocess, preprocess) => {
11787
11622
  return self;
11788
11623
  };
11789
11624
  var Proto7 = {
11790
- [TypeId14]: TypeId14,
11625
+ [TypeId13]: TypeId13,
11791
11626
  pipe() {
11792
11627
  return pipeArguments(this, arguments);
11793
11628
  },
@@ -11798,13 +11633,13 @@ var Proto7 = {
11798
11633
  };
11799
11634
  },
11800
11635
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11801
- return this.execute(make5(fullMethod)(url, options));
11636
+ return this.execute(make4(fullMethod)(url, options));
11802
11637
  }]))
11803
11638
  };
11804
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11639
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11805
11640
  const scopedController = scopedRequests.get(request);
11806
11641
  const controller = scopedController ?? new AbortController;
11807
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11642
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11808
11643
  if (isFailure(urlResult)) {
11809
11644
  return fail7(new HttpClientError({
11810
11645
  reason: new InvalidUrlError({
@@ -11938,8 +11773,8 @@ class InterruptibleResponse {
11938
11773
  this.original = original;
11939
11774
  this.controller = controller;
11940
11775
  }
11941
- [TypeId13] = TypeId13;
11942
11776
  [TypeId12] = TypeId12;
11777
+ [TypeId11] = TypeId11;
11943
11778
  applyInterrupt(effect) {
11944
11779
  return suspend3(() => {
11945
11780
  responseRegistry.unregister(this.original);
@@ -12037,7 +11872,7 @@ var detectStreamBodySupport = () => {
12037
11872
  return false;
12038
11873
  }
12039
11874
  };
12040
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11875
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
12041
11876
  if (request.headers.upgrade !== undefined) {
12042
11877
  return fail7(new HttpClientError({
12043
11878
  reason: new TransportError({
@@ -12128,10 +11963,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
12128
11963
  });
12129
11964
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
12130
11965
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
12131
- var TypeId15 = "~effect/socket/Socket";
11966
+ var TypeId14 = "~effect/socket/Socket";
12132
11967
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
12133
- var make29 = (options) => Socket.of({
12134
- [TypeId15]: TypeId15,
11968
+ var make28 = (options) => Socket.of({
11969
+ [TypeId14]: TypeId14,
12135
11970
  reader: options.reader,
12136
11971
  writer: options.writer
12137
11972
  });
@@ -12454,7 +12289,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12454
12289
  write,
12455
12290
  writeAll
12456
12291
  });
12457
- return succeed6(make29({
12292
+ return succeed6(make28({
12458
12293
  reader,
12459
12294
  writer
12460
12295
  }));
@@ -13097,6 +12932,13 @@ var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
13097
12932
  var defaultKitName = "@kitman-sh/software-engineering";
13098
12933
 
13099
12934
  // packages/core/src/kit-declarations.ts
12935
+ var LoopIntent = Union([
12936
+ Literal("task"),
12937
+ Struct({
12938
+ goal: String4.check(makeFilter((goal) => goal.trim() !== "" || "a non-blank goal")),
12939
+ doneWhen: ArraySchema(String4)
12940
+ })
12941
+ ]);
13100
12942
  var LoopCapabilities = [
13101
12943
  "agent_work",
13102
12944
  "ask",
@@ -13156,6 +12998,7 @@ var LoopManifest = Struct({
13156
12998
  secrets: optionalKey(ArraySchema(SecretName2)),
13157
12999
  network: optionalKey(AgentSandboxNetwork),
13158
13000
  schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 })),
13001
+ intent: optionalKey(LoopIntent),
13159
13002
  outline: optionalKey(LoopOutline)
13160
13003
  });
13161
13004
  var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
@@ -15789,7 +15632,7 @@ function getStreamSchemas(schema) {
15789
15632
  }
15790
15633
  var schema = /* @__PURE__ */ declare(isStream);
15791
15634
  function Stream(success, error) {
15792
- return make16(schema.ast, {
15635
+ return make17(schema.ast, {
15793
15636
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15794
15637
  success,
15795
15638
  error
@@ -15797,9 +15640,9 @@ function Stream(success, error) {
15797
15640
  }
15798
15641
 
15799
15642
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15800
- var TypeId16 = "~effect/rpc/Rpc";
15643
+ var TypeId15 = "~effect/rpc/Rpc";
15801
15644
  var Proto8 = {
15802
- [TypeId16]: TypeId16,
15645
+ [TypeId15]: TypeId15,
15803
15646
  pipe() {
15804
15647
  return pipeArguments(this, arguments);
15805
15648
  },
@@ -15888,7 +15731,7 @@ var makeProto = (options) => {
15888
15731
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15889
15732
  return Rpc;
15890
15733
  };
15891
- var make6 = (tag, options) => {
15734
+ var make5 = (tag, options) => {
15892
15735
  const successSchema = options?.success ?? Void;
15893
15736
  const errorSchema = options?.error ?? Never;
15894
15737
  const defectSchema = options?.defect ?? Defect();
@@ -15966,7 +15809,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15966
15809
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15967
15810
 
15968
15811
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15969
- var TypeId17 = "~effect/rpc/RpcClientError";
15812
+ var TypeId16 = "~effect/rpc/RpcClientError";
15970
15813
 
15971
15814
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15972
15815
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15975,11 +15818,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15975
15818
  })) {
15976
15819
  }
15977
15820
 
15978
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15821
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15979
15822
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15980
15823
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15981
15824
  })) {
15982
- [TypeId17] = TypeId17;
15825
+ [TypeId16] = TypeId16;
15983
15826
  get message() {
15984
15827
  return `${this.reason._tag}: ${this.reason.message}`;
15985
15828
  }
@@ -16122,12 +15965,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
16122
15965
  requests: options.requests,
16123
15966
  annotations: options.annotations
16124
15967
  });
16125
- var make7 = (...rpcs) => makeProto2({
15968
+ var make6 = (...rpcs) => makeProto2({
16126
15969
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
16127
15970
  annotations: empty4()
16128
15971
  });
16129
15972
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
16130
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15973
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
16131
15974
  var Service = () => (id, options) => {
16132
15975
  const limit = getStackTraceLimit();
16133
15976
  let creationError;
@@ -16145,7 +15988,7 @@ var Service = () => (id, options) => {
16145
15988
  return creationError?.stack;
16146
15989
  }
16147
15990
  });
16148
- ServiceClass_[TypeId18] = TypeId18;
15991
+ ServiceClass_[TypeId17] = TypeId17;
16149
15992
  ServiceClass_.error = options?.error ?? Never;
16150
15993
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
16151
15994
  return ServiceClass;
@@ -16231,77 +16074,77 @@ var ProgramOutcome = Union([
16231
16074
  Struct({ status: Literal("failed"), failureSummary: String4 })
16232
16075
  ]);
16233
16076
 
16234
- class RunnerReplicaRpcs extends make7(make6("Claim", {
16077
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
16235
16078
  payload: WorkUnitClaimInput,
16236
16079
  success: WorkUnitClaimResult,
16237
16080
  error: RunnerRpcError
16238
- }), make6("Heartbeat", {
16081
+ }), make5("Heartbeat", {
16239
16082
  payload: WorkUnitHeartbeatInput,
16240
16083
  success: WorkUnitHeartbeatResult,
16241
16084
  error: RunnerRpcError
16242
- }), make6("Complete", {
16085
+ }), make5("Complete", {
16243
16086
  payload: WorkUnitCompletion,
16244
16087
  error: RunnerRpcError
16245
- }), make6("Release", {
16088
+ }), make5("Release", {
16246
16089
  payload: WorkUnitReleaseInput,
16247
16090
  error: RunnerRpcError
16248
- }), make6("Signals", {
16091
+ }), make5("Signals", {
16249
16092
  payload: { runnerReplicaId: String4 },
16250
16093
  success: RunnerSignal,
16251
16094
  error: RunnerRpcError,
16252
16095
  stream: true
16253
- }), make6("ReportSteer", {
16096
+ }), make5("ReportSteer", {
16254
16097
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16255
16098
  success: Void,
16256
16099
  error: RunnerRpcError
16257
- }), make6("AppendTranscript", {
16100
+ }), make5("AppendTranscript", {
16258
16101
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16259
16102
  success: Void,
16260
16103
  error: RunnerRpcError
16261
- }), make6("CreateCheckpointFile", {
16104
+ }), make5("CreateCheckpointFile", {
16262
16105
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16263
16106
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16264
16107
  error: Union([RunnerRpcError, RunFileRefused])
16265
- }), make6("CheckpointFileParts", {
16108
+ }), make5("CheckpointFileParts", {
16266
16109
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16267
16110
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16268
16111
  error: RunnerRpcError
16269
- }), make6("CompleteCheckpointFile", {
16112
+ }), make5("CompleteCheckpointFile", {
16270
16113
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16271
16114
  success: RunFileRecord,
16272
16115
  error: RunnerRpcError
16273
- }), make6("SaveCheckpoint", {
16116
+ }), make5("SaveCheckpoint", {
16274
16117
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16275
16118
  success: Void,
16276
16119
  error: RunnerRpcError
16277
- }), make6("ResumeCheckpoint", {
16120
+ }), make5("ResumeCheckpoint", {
16278
16121
  payload: { lease: ProgramLease },
16279
16122
  success: UndefinedOr(ResumedCheckpoint),
16280
16123
  error: RunnerRpcError
16281
- }), make6("SettledCheckpoints", {
16124
+ }), make5("SettledCheckpoints", {
16282
16125
  success: ArraySchema(Struct({
16283
16126
  stepAttemptId: String4,
16284
16127
  ref: optionalKey(String4),
16285
16128
  repoBinding: optionalKey(WorkUnitRepoBinding)
16286
16129
  })),
16287
16130
  error: RunnerRpcError
16288
- }), make6("ForgetCheckpoints", {
16131
+ }), make5("ForgetCheckpoints", {
16289
16132
  payload: { stepAttemptIds: ArraySchema(String4) },
16290
16133
  success: Void,
16291
16134
  error: RunnerRpcError
16292
- }), make6("GitCredential", {
16135
+ }), make5("GitCredential", {
16293
16136
  payload: { repoBindingId: String4 },
16294
16137
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16295
16138
  error: RunnerRpcError
16296
- }), make6("Bundle", {
16139
+ }), make5("Bundle", {
16297
16140
  payload: { digest: String4 },
16298
16141
  success: Struct({ bundle: String4 }),
16299
16142
  error: RunnerRpcError
16300
- }), make6("SettledRuns", {
16143
+ }), make5("SettledRuns", {
16301
16144
  payload: { runIds: ArraySchema(String4) },
16302
16145
  success: ArraySchema(String4),
16303
16146
  error: RunnerRpcError
16304
- }), make6("KnownEvidence", {
16147
+ }), make5("KnownEvidence", {
16305
16148
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16306
16149
  success: ArraySchema(Struct({
16307
16150
  tree: String4,
@@ -16313,24 +16156,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
16313
16156
  })).middleware(RunnerAuthentication) {
16314
16157
  }
16315
16158
 
16316
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
16159
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16317
16160
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16318
16161
  error: RunnerRpcError
16319
- }), make6("DeferredDone", {
16162
+ }), make5("DeferredDone", {
16320
16163
  payload: { lease: ProgramLease, name: String4, exit: Json },
16321
16164
  error: RunnerRpcError
16322
- }), make6("ScheduleClock", {
16165
+ }), make5("ScheduleClock", {
16323
16166
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16324
16167
  error: RunnerRpcError
16325
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16168
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16326
16169
  }
16327
- var RunHostStep = make6("RunHostStep", {
16170
+ var RunHostStep = make5("RunHostStep", {
16328
16171
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16329
16172
  success: Json,
16330
16173
  error: RunnerRpcError
16331
16174
  });
16332
16175
 
16333
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16176
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16334
16177
  payload: {
16335
16178
  lease: ProgramLease,
16336
16179
  step: String4,
@@ -16351,7 +16194,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16351
16194
  },
16352
16195
  success: Struct({ questionId: String4 }),
16353
16196
  error: RunnerRpcError
16354
- }), make6("StartAgentStep", {
16197
+ }), make5("StartAgentStep", {
16355
16198
  payload: {
16356
16199
  lease: ProgramLease,
16357
16200
  step: String4,
@@ -16368,7 +16211,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16368
16211
  },
16369
16212
  success: Struct({ stepAttemptId: String4 }),
16370
16213
  error: RunnerRpcError
16371
- }), make6("StartVerification", {
16214
+ }), make5("StartVerification", {
16372
16215
  payload: {
16373
16216
  lease: ProgramLease,
16374
16217
  step: String4,
@@ -16392,7 +16235,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16392
16235
  },
16393
16236
  success: Struct({ verificationId: String4 }),
16394
16237
  error: RunnerRpcError
16395
- }), make6("AwaitEvent", {
16238
+ }), make5("AwaitEvent", {
16396
16239
  payload: {
16397
16240
  lease: ProgramLease,
16398
16241
  step: String4,
@@ -16408,7 +16251,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16408
16251
  })))
16409
16252
  },
16410
16253
  error: RunnerRpcError
16411
- }), make6("ClaimResource", {
16254
+ }), make5("ClaimResource", {
16412
16255
  payload: {
16413
16256
  lease: ProgramLease,
16414
16257
  step: String4,
@@ -16419,7 +16262,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16419
16262
  claims: optionalKey(ArraySchema(String4))
16420
16263
  },
16421
16264
  error: RunnerRpcError
16422
- }), make6("AdmitChild", {
16265
+ }), make5("AdmitChild", {
16423
16266
  payload: {
16424
16267
  lease: ProgramLease,
16425
16268
  step: String4,
@@ -16430,7 +16273,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16430
16273
  },
16431
16274
  success: Struct({ runId: String4 }),
16432
16275
  error: RunnerRpcError
16433
- }), make6("AdmitChildById", {
16276
+ }), make5("AdmitChildById", {
16434
16277
  payload: {
16435
16278
  lease: ProgramLease,
16436
16279
  step: String4,
@@ -16441,18 +16284,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16441
16284
  },
16442
16285
  success: Struct({ runId: String4 }),
16443
16286
  error: RunnerRpcError
16444
- }), make6("CallableLoops", {
16287
+ }), make5("CallableLoops", {
16445
16288
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16446
16289
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16447
16290
  error: RunnerRpcError
16448
- }), make6("StopLaunches", {
16291
+ }), make5("StopLaunches", {
16449
16292
  payload: {
16450
16293
  lease: ProgramLease,
16451
16294
  step: String4,
16452
16295
  deferredNames: ArraySchema(String4)
16453
16296
  },
16454
16297
  error: RunnerRpcError
16455
- }), make6("StoreArtifact", {
16298
+ }), make5("StoreArtifact", {
16456
16299
  payload: {
16457
16300
  lease: ProgramLease,
16458
16301
  step: String4,
@@ -16464,7 +16307,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16464
16307
  },
16465
16308
  success: Struct({ artifactId: String4 }),
16466
16309
  error: RunnerRpcError
16467
- }), make6("RecordNote", {
16310
+ }), make5("RecordNote", {
16468
16311
  payload: {
16469
16312
  lease: ProgramLease,
16470
16313
  step: String4,
@@ -16473,7 +16316,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16473
16316
  kind: optional(Literals(["note", "blocker"]))
16474
16317
  },
16475
16318
  error: RunnerRpcError
16476
- }), make6("PerformHostEffect", {
16319
+ }), make5("PerformHostEffect", {
16477
16320
  payload: {
16478
16321
  lease: ProgramLease,
16479
16322
  step: String4,
@@ -16502,7 +16345,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16502
16345
  },
16503
16346
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16504
16347
  error: RunnerRpcError
16505
- }), make6("AlertTask", {
16348
+ }), make5("AlertTask", {
16506
16349
  payload: {
16507
16350
  lease: ProgramLease,
16508
16351
  step: String4,
@@ -16519,7 +16362,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16519
16362
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16520
16363
  }),
16521
16364
  error: RunnerRpcError
16522
- }), make6("ReadTranscripts", {
16365
+ }), make5("ReadTranscripts", {
16523
16366
  payload: {
16524
16367
  lease: ProgramLease,
16525
16368
  step: String4,
@@ -16554,7 +16397,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16554
16397
  })))
16555
16398
  }),
16556
16399
  error: RunnerRpcError
16557
- }), make6("PipelineStatus", {
16400
+ }), make5("PipelineStatus", {
16558
16401
  payload: {
16559
16402
  lease: ProgramLease,
16560
16403
  step: String4,
@@ -16594,11 +16437,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16594
16437
  }))
16595
16438
  }),
16596
16439
  error: RunnerRpcError
16597
- }), make6("ReportPipeline", {
16440
+ }), make5("ReportPipeline", {
16598
16441
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16599
16442
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16600
16443
  error: RunnerRpcError
16601
- }), make6("ReviewThreads", {
16444
+ }), make5("ReviewThreads", {
16602
16445
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16603
16446
  success: Struct({
16604
16447
  threads: ArraySchema(Struct({
@@ -16610,7 +16453,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16610
16453
  }))
16611
16454
  }),
16612
16455
  error: RunnerRpcError
16613
- }), make6("OpenChangeRequests", {
16456
+ }), make5("OpenChangeRequests", {
16614
16457
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16615
16458
  success: Struct({
16616
16459
  changeRequests: ArraySchema(Struct({
@@ -16624,7 +16467,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16624
16467
  }))
16625
16468
  }),
16626
16469
  error: RunnerRpcError
16627
- }), make6("OwnChangeRequests", {
16470
+ }), make5("OwnChangeRequests", {
16628
16471
  payload: { lease: ProgramLease, step: String4 },
16629
16472
  success: Struct({
16630
16473
  changeRequests: ArraySchema(Struct({
@@ -16637,7 +16480,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16637
16480
  }))
16638
16481
  }),
16639
16482
  error: RunnerRpcError
16640
- }), make6("Propose", {
16483
+ }), make5("Propose", {
16641
16484
  payload: {
16642
16485
  lease: ProgramLease,
16643
16486
  step: String4,
@@ -16666,7 +16509,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16666
16509
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16667
16510
  }),
16668
16511
  error: RunnerRpcError
16669
- }), make6("ReadProject", {
16512
+ }), make5("ReadProject", {
16670
16513
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16671
16514
  success: Struct({
16672
16515
  project: Struct({ id: String4, name: String4 }),
@@ -16689,7 +16532,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16689
16532
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16690
16533
  }),
16691
16534
  error: RunnerRpcError
16692
- }), make6("DraftUpdate", {
16535
+ }), make5("DraftUpdate", {
16693
16536
  payload: {
16694
16537
  lease: ProgramLease,
16695
16538
  step: String4,
@@ -16704,7 +16547,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16704
16547
  },
16705
16548
  success: Struct({ id: String4 }),
16706
16549
  error: RunnerRpcError
16707
- }), make6("CreatePlanTasks", {
16550
+ }), make5("CreatePlanTasks", {
16708
16551
  payload: {
16709
16552
  lease: ProgramLease,
16710
16553
  projectId: optionalKey(String4),
@@ -16725,15 +16568,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16725
16568
  },
16726
16569
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16727
16570
  error: RunnerRpcError
16728
- }), make6("IntegrationBranch", {
16571
+ }), make5("IntegrationBranch", {
16729
16572
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16730
16573
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16731
16574
  error: RunnerRpcError
16732
- }), make6("DeliveryBase", {
16575
+ }), make5("DeliveryBase", {
16733
16576
  payload: { lease: ProgramLease },
16734
16577
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16735
16578
  error: RunnerRpcError
16736
- }), make6("Branch", {
16579
+ }), make5("Branch", {
16737
16580
  payload: {
16738
16581
  lease: ProgramLease,
16739
16582
  branch: optionalKey(String4),
@@ -16748,7 +16591,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16748
16591
  created: Boolean2
16749
16592
  }),
16750
16593
  error: RunnerRpcError
16751
- }), make6("BranchChangeRequest", {
16594
+ }), make5("BranchChangeRequest", {
16752
16595
  payload: {
16753
16596
  lease: ProgramLease,
16754
16597
  step: String4,
@@ -16771,7 +16614,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16771
16614
  Struct({ status: Literal("elsewhere"), team: String4 })
16772
16615
  ]),
16773
16616
  error: RunnerRpcError
16774
- }), make6("MergeChangeRequest", {
16617
+ }), make5("MergeChangeRequest", {
16775
16618
  payload: {
16776
16619
  lease: ProgramLease,
16777
16620
  step: String4,
@@ -16789,7 +16632,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16789
16632
  Struct({ status: Literal("moved"), head: String4 })
16790
16633
  ]),
16791
16634
  error: RunnerRpcError
16792
- }), make6("ApproveChangeRequest", {
16635
+ }), make5("ApproveChangeRequest", {
16793
16636
  payload: {
16794
16637
  lease: ProgramLease,
16795
16638
  step: String4,
@@ -16805,7 +16648,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16805
16648
  Struct({ approved: Literal(false), reason: String4 })
16806
16649
  ]),
16807
16650
  error: RunnerRpcError
16808
- }), make6("CloseChangeRequest", {
16651
+ }), make5("CloseChangeRequest", {
16809
16652
  payload: {
16810
16653
  lease: ProgramLease,
16811
16654
  step: String4,
@@ -16815,7 +16658,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16815
16658
  },
16816
16659
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16817
16660
  error: RunnerRpcError
16818
- }), make6("RerunPipeline", {
16661
+ }), make5("RerunPipeline", {
16819
16662
  payload: {
16820
16663
  lease: ProgramLease,
16821
16664
  step: String4,
@@ -16825,7 +16668,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16825
16668
  },
16826
16669
  success: Struct({ head: String4, pipelines: Int }),
16827
16670
  error: RunnerRpcError
16828
- }), make6("PublishRelease", {
16671
+ }), make5("PublishRelease", {
16829
16672
  payload: {
16830
16673
  lease: ProgramLease,
16831
16674
  step: String4,
@@ -16839,7 +16682,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16839
16682
  },
16840
16683
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16841
16684
  error: RunnerRpcError
16842
- }), make6("RecordDeploy", {
16685
+ }), make5("RecordDeploy", {
16843
16686
  payload: {
16844
16687
  lease: ProgramLease,
16845
16688
  step: String4,
@@ -16851,7 +16694,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16851
16694
  },
16852
16695
  success: Deploy,
16853
16696
  error: RunnerRpcError
16854
- }), make6("DeployTarget", {
16697
+ }), make5("DeployTarget", {
16855
16698
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16856
16699
  success: Struct({
16857
16700
  target: String4,
@@ -16859,14 +16702,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16859
16702
  order: optionalKey(ArraySchema(String4))
16860
16703
  }),
16861
16704
  error: RunnerRpcError
16862
- }), RunHostStep, make6("ProgramSecrets", {
16705
+ }), RunHostStep, make5("ProgramSecrets", {
16863
16706
  payload: { lease: ProgramLease },
16864
16707
  success: Record(String4, String4),
16865
16708
  error: RunnerRpcError
16866
16709
  })).middleware(RunnerAuthentication) {
16867
16710
  }
16868
16711
 
16869
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16712
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16870
16713
  payload: {
16871
16714
  lease: ProgramLease,
16872
16715
  step: String4,
@@ -16878,11 +16721,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16878
16721
  },
16879
16722
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16880
16723
  error: Union([RunnerRpcError, RunFileRefused])
16881
- }), make6("RunFileParts", {
16724
+ }), make5("RunFileParts", {
16882
16725
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16883
16726
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16884
16727
  error: RunnerRpcError
16885
- }), make6("CompleteRunFile", {
16728
+ }), make5("CompleteRunFile", {
16886
16729
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16887
16730
  success: RunFileRecord,
16888
16731
  error: RunnerRpcError
@@ -16892,7 +16735,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16892
16735
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16893
16736
 
16894
16737
  // apps/cli/src/oauth.ts
16895
- var Scope2 = "openid profile email offline_access kitman:cli";
16738
+ var Scope = "openid profile email offline_access kitman:cli";
16896
16739
  var CallbackPath = "/auth/callback";
16897
16740
 
16898
16741
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16911,7 +16754,7 @@ function buildAuthorizeUrl(input) {
16911
16754
  url.searchParams.set("response_type", "code");
16912
16755
  url.searchParams.set("client_id", input.clientId);
16913
16756
  url.searchParams.set("redirect_uri", input.redirectUri);
16914
- url.searchParams.set("scope", Scope2);
16757
+ url.searchParams.set("scope", Scope);
16915
16758
  url.searchParams.set("code_challenge", input.codeChallenge);
16916
16759
  url.searchParams.set("code_challenge_method", "S256");
16917
16760
  url.searchParams.set("state", input.state);
@@ -17627,7 +17470,7 @@ var spawnedTransport = (env) => gen(function* () {
17627
17470
  const spawner = yield* ChildProcessSpawner;
17628
17471
  const input = yield* unbounded2();
17629
17472
  const encoder = new TextEncoder;
17630
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17473
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17631
17474
  extendEnv: false,
17632
17475
  env,
17633
17476
  stdin: fromQueue(input),
@@ -17658,7 +17501,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17658
17501
  const spawner = yield* ChildProcessSpawner;
17659
17502
  const env = coreEnv(options);
17660
17503
  const run = (args) => gen(function* () {
17661
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17504
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17662
17505
  const [stdout, stderr, exitCode] = yield* all3([
17663
17506
  mkString(decodeText(handle.stdout)),
17664
17507
  mkString(decodeText(handle.stderr)),
@@ -17684,7 +17527,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17684
17527
  }
17685
17528
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17686
17529
  const spawner = yield* ChildProcessSpawner;
17687
- const handle = yield* spawner.spawn(make3(command, args, {
17530
+ const handle = yield* spawner.spawn(make2(command, args, {
17688
17531
  stdin: "ignore",
17689
17532
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17690
17533
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17710,7 +17553,7 @@ var shellOutputTailChars2 = 64 * 1024;
17710
17553
  var runProcess2 = (argv, options) => gen(function* () {
17711
17554
  const spawner = yield* ChildProcessSpawner;
17712
17555
  const [command, ...args] = argv;
17713
- const handle = yield* spawner.spawn(make3(command, args, {
17556
+ const handle = yield* spawner.spawn(make2(command, args, {
17714
17557
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17715
17558
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17716
17559
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -18233,4 +18076,4 @@ function serviceChecks(declaration) {
18233
18076
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18234
18077
  }
18235
18078
 
18236
- export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, programCrashOutputChars, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
18079
+ export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, programCrashOutputChars, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };