@kitman-sh/cli 0.52.0 → 0.54.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-h5ydhdhx.js → chunk-0my9yc76.js} +72 -72
  2. package/dist/{chunk-kt26vpwf.js → chunk-0yqsrr9j.js} +9 -9
  3. package/dist/{chunk-eqh0h088.js → chunk-176b6p9g.js} +117 -42
  4. package/dist/{chunk-wb04fv2s.js → chunk-47ftjd7j.js} +50 -32
  5. package/dist/{chunk-qsbq9gvr.js → chunk-7eqzzcvj.js} +200 -347
  6. package/dist/{chunk-mmt6xq48.js → chunk-b0zap0sc.js} +2 -2
  7. package/dist/{chunk-2t1hcdeq.js → chunk-ctrk0mrt.js} +20 -20
  8. package/dist/{chunk-zb4t1yrt.js → chunk-e4ced6vj.js} +102 -60
  9. package/dist/{chunk-bhz25x76.js → chunk-fd9cfazr.js} +3 -3
  10. package/dist/{chunk-xbqd3kqc.js → chunk-h52fkf0n.js} +19 -19
  11. package/dist/{chunk-5yygjn0k.js → chunk-hnfq9egr.js} +1 -1
  12. package/dist/{chunk-tqspx38s.js → chunk-hs9frges.js} +2 -2
  13. package/dist/{chunk-bj0zchck.js → chunk-jz2b3htb.js} +193 -35
  14. package/dist/{chunk-q2z8rct0.js → chunk-keveyqbv.js} +4 -4
  15. package/dist/{chunk-a40yta1r.js → chunk-kpgkhx9j.js} +3 -3
  16. package/dist/{chunk-trtgab3h.js → chunk-p77428sa.js} +11 -19
  17. package/dist/{chunk-tfznw549.js → chunk-q22ar0q6.js} +2 -2
  18. package/dist/{chunk-axfp5tzk.js → chunk-sygnhza2.js} +10 -10
  19. package/dist/{chunk-my9db578.js → chunk-t94stfev.js} +9 -9
  20. package/dist/{chunk-84qb67e2.js → chunk-wsm4adrn.js} +1 -1
  21. package/dist/{chunk-chbdcf34.js → chunk-xfhrsdc6.js} +17 -13
  22. package/dist/{chunk-qjfzcrv5.js → chunk-xs1cdxfn.js} +4 -4
  23. package/dist/{chunk-wxg9k10v.js → chunk-xwte7af6.js} +1 -1
  24. package/dist/{chunk-pppryg54.js → chunk-yn5c3tzd.js} +12 -12
  25. package/dist/{chunk-2nq80r46.js → chunk-z1d5jx6m.js} +14 -60
  26. package/dist/{chunk-9hde8p6b.js → chunk-zs1maxqg.js} +6 -6
  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,
@@ -204,6 +192,9 @@ import {
204
192
  logError,
205
193
  effectify,
206
194
  decode,
195
+ isRedacted,
196
+ make16,
197
+ value,
207
198
  defaultParseOptions,
208
199
  omit,
209
200
  map10,
@@ -214,7 +205,7 @@ import {
214
205
  decodeUnknownExit,
215
206
  decodeUnknownOption,
216
207
  decodeOption,
217
- make16,
208
+ make17,
218
209
  isSchema,
219
210
  optionalKey,
220
211
  optional,
@@ -275,23 +266,20 @@ import {
275
266
  decodeJsonStringOption,
276
267
  encodeJsonStringSync,
277
268
  encodePrettyJsonString
278
- } from "./chunk-zb4t1yrt.js";
269
+ } from "./chunk-e4ced6vj.js";
279
270
  import {
280
271
  map,
281
272
  makeEquivalence,
282
273
  Clock,
283
274
  currentTimeMillis,
275
+ toNumber,
284
276
  bytes,
285
- join,
286
- interrupt,
287
- getCurrent,
288
- runIn,
289
277
  BadArgument,
290
278
  systemError,
291
279
  badArgument,
292
280
  makeUnsafe2,
281
+ make7,
293
282
  make8,
294
- make9,
295
283
  sliding,
296
284
  unbounded2,
297
285
  offer,
@@ -307,6 +295,8 @@ import {
307
295
  isSink,
308
296
  fromChannel,
309
297
  drain,
298
+ make9,
299
+ get3,
310
300
  isStream,
311
301
  fromChannel2,
312
302
  callback,
@@ -347,21 +337,18 @@ import {
347
337
  optionalEnv,
348
338
  harnessesUnsupportedInSrt2,
349
339
  harnessesUnsupportedInDocker2
350
- } from "./chunk-bj0zchck.js";
340
+ } from "./chunk-jz2b3htb.js";
351
341
  import {
352
- isRedacted,
353
- make,
354
- value,
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-z1d5jx6m.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-xwte7af6.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));
@@ -7540,6 +7375,15 @@ var QuestionAnswer = Struct({
7540
7375
  answeredAt: Timestamp,
7541
7376
  idempotencyKey: String4.check(isMinLength(1), isMaxLength(240))
7542
7377
  });
7378
+ var QuestionSplitEntry = Struct({
7379
+ title: String4.check(isMinLength(1), isMaxLength(240)),
7380
+ promise: QuestionText,
7381
+ criteria: ArraySchema(QuestionText).check(isMinLength(1))
7382
+ });
7383
+ var QuestionSplit = Struct({
7384
+ taskId: Id,
7385
+ entries: ArraySchema(QuestionSplitEntry).check(isMinLength(1))
7386
+ });
7543
7387
  var Question = Struct({
7544
7388
  id: Id,
7545
7389
  workspaceId: Id,
@@ -7557,6 +7401,7 @@ var Question = Struct({
7557
7401
  recommended: optionalKey(QuestionText),
7558
7402
  recommendationReason: optionalKey(QuestionText),
7559
7403
  informationOnly: optionalKey(Boolean2),
7404
+ split: optionalKey(QuestionSplit),
7560
7405
  default: optionalKey(LoopSafeText),
7561
7406
  defaultAt: optionalKey(Timestamp),
7562
7407
  responderPolicy: QuestionResponderPolicy,
@@ -11184,11 +11029,11 @@ var TranscriptSearchResult = Struct({
11184
11029
  total: Int
11185
11030
  });
11186
11031
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
11187
- var TypeId9 = "~effect/http/HttpBody";
11032
+ var TypeId8 = "~effect/http/HttpBody";
11188
11033
  class Proto5 {
11189
- [TypeId9];
11034
+ [TypeId8];
11190
11035
  constructor() {
11191
- this[TypeId9] = TypeId9;
11036
+ this[TypeId8] = TypeId8;
11192
11037
  }
11193
11038
  [NodeInspectSymbol]() {
11194
11039
  return this.toJSON();
@@ -11279,7 +11124,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11279
11124
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11280
11125
 
11281
11126
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11282
- var TypeId10 = "~effect/http/HttpClientError";
11127
+ var TypeId9 = "~effect/http/HttpClientError";
11283
11128
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11284
11129
  constructor(props) {
11285
11130
  if ("cause" in props.reason) {
@@ -11291,7 +11136,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11291
11136
  super(props);
11292
11137
  }
11293
11138
  }
11294
- [TypeId10] = TypeId10;
11139
+ [TypeId9] = TypeId9;
11295
11140
  get request() {
11296
11141
  return this.reason.request;
11297
11142
  }
@@ -11395,7 +11240,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11395
11240
  }
11396
11241
  }
11397
11242
 
11398
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11243
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11399
11244
  _tag: /* @__PURE__ */ tag("HttpError"),
11400
11245
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11401
11246
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11428,7 +11273,7 @@ var updateContentLength = (headers, body) => {
11428
11273
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11429
11274
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11430
11275
  }
11431
- var make27 = (url, params, hash) => try_({
11276
+ var make26 = (url, params, hash) => try_({
11432
11277
  try: () => {
11433
11278
  const urlInstance = new URL(url, baseUrl());
11434
11279
  for (let i = 0;i < params.params.length; i++) {
@@ -11459,10 +11304,10 @@ var baseUrl = () => {
11459
11304
  };
11460
11305
 
11461
11306
  // 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);
11307
+ var TypeId10 = "~effect/http/HttpClientRequest";
11308
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11464
11309
  var Proto6 = {
11465
- [TypeId11]: TypeId11,
11310
+ [TypeId10]: TypeId10,
11466
11311
  ...BaseProto,
11467
11312
  toJSON() {
11468
11313
  return {
@@ -11490,14 +11335,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11490
11335
  return self;
11491
11336
  }
11492
11337
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
11493
- var make5 = (method) => (url, options) => modify(empty6, {
11338
+ var make4 = (method) => (url, options) => modify(empty6, {
11494
11339
  method,
11495
11340
  url,
11496
11341
  ...options ?? undefined
11497
11342
  });
11498
- var get = /* @__PURE__ */ make5("GET");
11499
- var post = /* @__PURE__ */ make5("POST");
11500
- var put = /* @__PURE__ */ make5("PUT");
11343
+ var get = /* @__PURE__ */ make4("GET");
11344
+ var post = /* @__PURE__ */ make4("POST");
11345
+ var put = /* @__PURE__ */ make4("PUT");
11501
11346
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11502
11347
  let result = self;
11503
11348
  if (options.method) {
@@ -11551,7 +11396,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11551
11396
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11552
11397
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11553
11398
  function toUrl(self) {
11554
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11399
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11555
11400
  if (isSuccess(r)) {
11556
11401
  return some(r.success);
11557
11402
  }
@@ -11559,7 +11404,7 @@ function toUrl(self) {
11559
11404
  }
11560
11405
 
11561
11406
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11562
- var TypeId12 = "~effect/http/HttpIncomingMessage";
11407
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
11563
11408
  var schemaBodyJson = (schema, options) => {
11564
11409
  const decode = decodeEffect(toCodecJson(schema));
11565
11410
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11578,7 +11423,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11578
11423
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11579
11424
 
11580
11425
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11581
- var TypeId13 = "~effect/http/HttpClientResponse";
11426
+ var TypeId12 = "~effect/http/HttpClientResponse";
11582
11427
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11583
11428
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11584
11429
  reason: new StatusCodeError({
@@ -11589,16 +11434,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11589
11434
  }));
11590
11435
 
11591
11436
  class WebHttpClientResponse extends Class {
11437
+ [TypeId11];
11592
11438
  [TypeId12];
11593
- [TypeId13];
11594
11439
  request;
11595
11440
  source;
11596
11441
  constructor(request, source) {
11597
11442
  super();
11598
11443
  this.request = request;
11599
11444
  this.source = source;
11445
+ this[TypeId11] = TypeId11;
11600
11446
  this[TypeId12] = TypeId12;
11601
- this[TypeId13] = TypeId13;
11602
11447
  }
11603
11448
  toJSON() {
11604
11449
  return inspect(this, {
@@ -11770,7 +11615,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11770
11615
  };
11771
11616
 
11772
11617
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11773
- var TypeId14 = "~effect/http/HttpClient";
11618
+ var TypeId13 = "~effect/http/HttpClient";
11774
11619
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11775
11620
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11776
11621
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11787,7 +11632,7 @@ var makeWith2 = (postprocess, preprocess) => {
11787
11632
  return self;
11788
11633
  };
11789
11634
  var Proto7 = {
11790
- [TypeId14]: TypeId14,
11635
+ [TypeId13]: TypeId13,
11791
11636
  pipe() {
11792
11637
  return pipeArguments(this, arguments);
11793
11638
  },
@@ -11798,13 +11643,13 @@ var Proto7 = {
11798
11643
  };
11799
11644
  },
11800
11645
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11801
- return this.execute(make5(fullMethod)(url, options));
11646
+ return this.execute(make4(fullMethod)(url, options));
11802
11647
  }]))
11803
11648
  };
11804
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11649
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11805
11650
  const scopedController = scopedRequests.get(request);
11806
11651
  const controller = scopedController ?? new AbortController;
11807
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11652
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11808
11653
  if (isFailure(urlResult)) {
11809
11654
  return fail7(new HttpClientError({
11810
11655
  reason: new InvalidUrlError({
@@ -11938,8 +11783,8 @@ class InterruptibleResponse {
11938
11783
  this.original = original;
11939
11784
  this.controller = controller;
11940
11785
  }
11941
- [TypeId13] = TypeId13;
11942
11786
  [TypeId12] = TypeId12;
11787
+ [TypeId11] = TypeId11;
11943
11788
  applyInterrupt(effect) {
11944
11789
  return suspend3(() => {
11945
11790
  responseRegistry.unregister(this.original);
@@ -12037,7 +11882,7 @@ var detectStreamBodySupport = () => {
12037
11882
  return false;
12038
11883
  }
12039
11884
  };
12040
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11885
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
12041
11886
  if (request.headers.upgrade !== undefined) {
12042
11887
  return fail7(new HttpClientError({
12043
11888
  reason: new TransportError({
@@ -12128,10 +11973,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
12128
11973
  });
12129
11974
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
12130
11975
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
12131
- var TypeId15 = "~effect/socket/Socket";
11976
+ var TypeId14 = "~effect/socket/Socket";
12132
11977
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
12133
- var make29 = (options) => Socket.of({
12134
- [TypeId15]: TypeId15,
11978
+ var make28 = (options) => Socket.of({
11979
+ [TypeId14]: TypeId14,
12135
11980
  reader: options.reader,
12136
11981
  writer: options.writer
12137
11982
  });
@@ -12454,7 +12299,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12454
12299
  write,
12455
12300
  writeAll
12456
12301
  });
12457
- return succeed6(make29({
12302
+ return succeed6(make28({
12458
12303
  reader,
12459
12304
  writer
12460
12305
  }));
@@ -13097,6 +12942,13 @@ var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
13097
12942
  var defaultKitName = "@kitman-sh/software-engineering";
13098
12943
 
13099
12944
  // packages/core/src/kit-declarations.ts
12945
+ var LoopIntent = Union([
12946
+ Literal("task"),
12947
+ Struct({
12948
+ goal: String4.check(makeFilter((goal) => goal.trim() !== "" || "a non-blank goal")),
12949
+ doneWhen: ArraySchema(String4)
12950
+ })
12951
+ ]);
13100
12952
  var LoopCapabilities = [
13101
12953
  "agent_work",
13102
12954
  "ask",
@@ -13156,6 +13008,7 @@ var LoopManifest = Struct({
13156
13008
  secrets: optionalKey(ArraySchema(SecretName2)),
13157
13009
  network: optionalKey(AgentSandboxNetwork),
13158
13010
  schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 })),
13011
+ intent: optionalKey(LoopIntent),
13159
13012
  outline: optionalKey(LoopOutline)
13160
13013
  });
13161
13014
  var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
@@ -15789,7 +15642,7 @@ function getStreamSchemas(schema) {
15789
15642
  }
15790
15643
  var schema = /* @__PURE__ */ declare(isStream);
15791
15644
  function Stream(success, error) {
15792
- return make16(schema.ast, {
15645
+ return make17(schema.ast, {
15793
15646
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15794
15647
  success,
15795
15648
  error
@@ -15797,9 +15650,9 @@ function Stream(success, error) {
15797
15650
  }
15798
15651
 
15799
15652
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15800
- var TypeId16 = "~effect/rpc/Rpc";
15653
+ var TypeId15 = "~effect/rpc/Rpc";
15801
15654
  var Proto8 = {
15802
- [TypeId16]: TypeId16,
15655
+ [TypeId15]: TypeId15,
15803
15656
  pipe() {
15804
15657
  return pipeArguments(this, arguments);
15805
15658
  },
@@ -15888,7 +15741,7 @@ var makeProto = (options) => {
15888
15741
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15889
15742
  return Rpc;
15890
15743
  };
15891
- var make6 = (tag, options) => {
15744
+ var make5 = (tag, options) => {
15892
15745
  const successSchema = options?.success ?? Void;
15893
15746
  const errorSchema = options?.error ?? Never;
15894
15747
  const defectSchema = options?.defect ?? Defect();
@@ -15966,7 +15819,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15966
15819
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15967
15820
 
15968
15821
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15969
- var TypeId17 = "~effect/rpc/RpcClientError";
15822
+ var TypeId16 = "~effect/rpc/RpcClientError";
15970
15823
 
15971
15824
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15972
15825
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15975,11 +15828,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15975
15828
  })) {
15976
15829
  }
15977
15830
 
15978
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15831
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15979
15832
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15980
15833
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15981
15834
  })) {
15982
- [TypeId17] = TypeId17;
15835
+ [TypeId16] = TypeId16;
15983
15836
  get message() {
15984
15837
  return `${this.reason._tag}: ${this.reason.message}`;
15985
15838
  }
@@ -16122,12 +15975,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
16122
15975
  requests: options.requests,
16123
15976
  annotations: options.annotations
16124
15977
  });
16125
- var make7 = (...rpcs) => makeProto2({
15978
+ var make6 = (...rpcs) => makeProto2({
16126
15979
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
16127
15980
  annotations: empty4()
16128
15981
  });
16129
15982
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
16130
- var TypeId18 = "~effect/rpc/RpcMiddleware";
15983
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
16131
15984
  var Service = () => (id, options) => {
16132
15985
  const limit = getStackTraceLimit();
16133
15986
  let creationError;
@@ -16145,7 +15998,7 @@ var Service = () => (id, options) => {
16145
15998
  return creationError?.stack;
16146
15999
  }
16147
16000
  });
16148
- ServiceClass_[TypeId18] = TypeId18;
16001
+ ServiceClass_[TypeId17] = TypeId17;
16149
16002
  ServiceClass_.error = options?.error ?? Never;
16150
16003
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
16151
16004
  return ServiceClass;
@@ -16231,77 +16084,77 @@ var ProgramOutcome = Union([
16231
16084
  Struct({ status: Literal("failed"), failureSummary: String4 })
16232
16085
  ]);
16233
16086
 
16234
- class RunnerReplicaRpcs extends make7(make6("Claim", {
16087
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
16235
16088
  payload: WorkUnitClaimInput,
16236
16089
  success: WorkUnitClaimResult,
16237
16090
  error: RunnerRpcError
16238
- }), make6("Heartbeat", {
16091
+ }), make5("Heartbeat", {
16239
16092
  payload: WorkUnitHeartbeatInput,
16240
16093
  success: WorkUnitHeartbeatResult,
16241
16094
  error: RunnerRpcError
16242
- }), make6("Complete", {
16095
+ }), make5("Complete", {
16243
16096
  payload: WorkUnitCompletion,
16244
16097
  error: RunnerRpcError
16245
- }), make6("Release", {
16098
+ }), make5("Release", {
16246
16099
  payload: WorkUnitReleaseInput,
16247
16100
  error: RunnerRpcError
16248
- }), make6("Signals", {
16101
+ }), make5("Signals", {
16249
16102
  payload: { runnerReplicaId: String4 },
16250
16103
  success: RunnerSignal,
16251
16104
  error: RunnerRpcError,
16252
16105
  stream: true
16253
- }), make6("ReportSteer", {
16106
+ }), make5("ReportSteer", {
16254
16107
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16255
16108
  success: Void,
16256
16109
  error: RunnerRpcError
16257
- }), make6("AppendTranscript", {
16110
+ }), make5("AppendTranscript", {
16258
16111
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16259
16112
  success: Void,
16260
16113
  error: RunnerRpcError
16261
- }), make6("CreateCheckpointFile", {
16114
+ }), make5("CreateCheckpointFile", {
16262
16115
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16263
16116
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16264
16117
  error: Union([RunnerRpcError, RunFileRefused])
16265
- }), make6("CheckpointFileParts", {
16118
+ }), make5("CheckpointFileParts", {
16266
16119
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16267
16120
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16268
16121
  error: RunnerRpcError
16269
- }), make6("CompleteCheckpointFile", {
16122
+ }), make5("CompleteCheckpointFile", {
16270
16123
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16271
16124
  success: RunFileRecord,
16272
16125
  error: RunnerRpcError
16273
- }), make6("SaveCheckpoint", {
16126
+ }), make5("SaveCheckpoint", {
16274
16127
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16275
16128
  success: Void,
16276
16129
  error: RunnerRpcError
16277
- }), make6("ResumeCheckpoint", {
16130
+ }), make5("ResumeCheckpoint", {
16278
16131
  payload: { lease: ProgramLease },
16279
16132
  success: UndefinedOr(ResumedCheckpoint),
16280
16133
  error: RunnerRpcError
16281
- }), make6("SettledCheckpoints", {
16134
+ }), make5("SettledCheckpoints", {
16282
16135
  success: ArraySchema(Struct({
16283
16136
  stepAttemptId: String4,
16284
16137
  ref: optionalKey(String4),
16285
16138
  repoBinding: optionalKey(WorkUnitRepoBinding)
16286
16139
  })),
16287
16140
  error: RunnerRpcError
16288
- }), make6("ForgetCheckpoints", {
16141
+ }), make5("ForgetCheckpoints", {
16289
16142
  payload: { stepAttemptIds: ArraySchema(String4) },
16290
16143
  success: Void,
16291
16144
  error: RunnerRpcError
16292
- }), make6("GitCredential", {
16145
+ }), make5("GitCredential", {
16293
16146
  payload: { repoBindingId: String4 },
16294
16147
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16295
16148
  error: RunnerRpcError
16296
- }), make6("Bundle", {
16149
+ }), make5("Bundle", {
16297
16150
  payload: { digest: String4 },
16298
16151
  success: Struct({ bundle: String4 }),
16299
16152
  error: RunnerRpcError
16300
- }), make6("SettledRuns", {
16153
+ }), make5("SettledRuns", {
16301
16154
  payload: { runIds: ArraySchema(String4) },
16302
16155
  success: ArraySchema(String4),
16303
16156
  error: RunnerRpcError
16304
- }), make6("KnownEvidence", {
16157
+ }), make5("KnownEvidence", {
16305
16158
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16306
16159
  success: ArraySchema(Struct({
16307
16160
  tree: String4,
@@ -16313,24 +16166,24 @@ class RunnerReplicaRpcs extends make7(make6("Claim", {
16313
16166
  })).middleware(RunnerAuthentication) {
16314
16167
  }
16315
16168
 
16316
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
16169
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16317
16170
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16318
16171
  error: RunnerRpcError
16319
- }), make6("DeferredDone", {
16172
+ }), make5("DeferredDone", {
16320
16173
  payload: { lease: ProgramLease, name: String4, exit: Json },
16321
16174
  error: RunnerRpcError
16322
- }), make6("ScheduleClock", {
16175
+ }), make5("ScheduleClock", {
16323
16176
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16324
16177
  error: RunnerRpcError
16325
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16178
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16326
16179
  }
16327
- var RunHostStep = make6("RunHostStep", {
16180
+ var RunHostStep = make5("RunHostStep", {
16328
16181
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16329
16182
  success: Json,
16330
16183
  error: RunnerRpcError
16331
16184
  });
16332
16185
 
16333
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16186
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16334
16187
  payload: {
16335
16188
  lease: ProgramLease,
16336
16189
  step: String4,
@@ -16351,7 +16204,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16351
16204
  },
16352
16205
  success: Struct({ questionId: String4 }),
16353
16206
  error: RunnerRpcError
16354
- }), make6("StartAgentStep", {
16207
+ }), make5("StartAgentStep", {
16355
16208
  payload: {
16356
16209
  lease: ProgramLease,
16357
16210
  step: String4,
@@ -16368,7 +16221,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16368
16221
  },
16369
16222
  success: Struct({ stepAttemptId: String4 }),
16370
16223
  error: RunnerRpcError
16371
- }), make6("StartVerification", {
16224
+ }), make5("StartVerification", {
16372
16225
  payload: {
16373
16226
  lease: ProgramLease,
16374
16227
  step: String4,
@@ -16392,7 +16245,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16392
16245
  },
16393
16246
  success: Struct({ verificationId: String4 }),
16394
16247
  error: RunnerRpcError
16395
- }), make6("AwaitEvent", {
16248
+ }), make5("AwaitEvent", {
16396
16249
  payload: {
16397
16250
  lease: ProgramLease,
16398
16251
  step: String4,
@@ -16408,7 +16261,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16408
16261
  })))
16409
16262
  },
16410
16263
  error: RunnerRpcError
16411
- }), make6("ClaimResource", {
16264
+ }), make5("ClaimResource", {
16412
16265
  payload: {
16413
16266
  lease: ProgramLease,
16414
16267
  step: String4,
@@ -16419,7 +16272,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16419
16272
  claims: optionalKey(ArraySchema(String4))
16420
16273
  },
16421
16274
  error: RunnerRpcError
16422
- }), make6("AdmitChild", {
16275
+ }), make5("AdmitChild", {
16423
16276
  payload: {
16424
16277
  lease: ProgramLease,
16425
16278
  step: String4,
@@ -16430,7 +16283,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16430
16283
  },
16431
16284
  success: Struct({ runId: String4 }),
16432
16285
  error: RunnerRpcError
16433
- }), make6("AdmitChildById", {
16286
+ }), make5("AdmitChildById", {
16434
16287
  payload: {
16435
16288
  lease: ProgramLease,
16436
16289
  step: String4,
@@ -16441,18 +16294,18 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16441
16294
  },
16442
16295
  success: Struct({ runId: String4 }),
16443
16296
  error: RunnerRpcError
16444
- }), make6("CallableLoops", {
16297
+ }), make5("CallableLoops", {
16445
16298
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16446
16299
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16447
16300
  error: RunnerRpcError
16448
- }), make6("StopLaunches", {
16301
+ }), make5("StopLaunches", {
16449
16302
  payload: {
16450
16303
  lease: ProgramLease,
16451
16304
  step: String4,
16452
16305
  deferredNames: ArraySchema(String4)
16453
16306
  },
16454
16307
  error: RunnerRpcError
16455
- }), make6("StoreArtifact", {
16308
+ }), make5("StoreArtifact", {
16456
16309
  payload: {
16457
16310
  lease: ProgramLease,
16458
16311
  step: String4,
@@ -16464,7 +16317,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16464
16317
  },
16465
16318
  success: Struct({ artifactId: String4 }),
16466
16319
  error: RunnerRpcError
16467
- }), make6("RecordNote", {
16320
+ }), make5("RecordNote", {
16468
16321
  payload: {
16469
16322
  lease: ProgramLease,
16470
16323
  step: String4,
@@ -16473,7 +16326,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16473
16326
  kind: optional(Literals(["note", "blocker"]))
16474
16327
  },
16475
16328
  error: RunnerRpcError
16476
- }), make6("PerformHostEffect", {
16329
+ }), make5("PerformHostEffect", {
16477
16330
  payload: {
16478
16331
  lease: ProgramLease,
16479
16332
  step: String4,
@@ -16502,7 +16355,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16502
16355
  },
16503
16356
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16504
16357
  error: RunnerRpcError
16505
- }), make6("AlertTask", {
16358
+ }), make5("AlertTask", {
16506
16359
  payload: {
16507
16360
  lease: ProgramLease,
16508
16361
  step: String4,
@@ -16519,7 +16372,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16519
16372
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16520
16373
  }),
16521
16374
  error: RunnerRpcError
16522
- }), make6("ReadTranscripts", {
16375
+ }), make5("ReadTranscripts", {
16523
16376
  payload: {
16524
16377
  lease: ProgramLease,
16525
16378
  step: String4,
@@ -16554,7 +16407,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16554
16407
  })))
16555
16408
  }),
16556
16409
  error: RunnerRpcError
16557
- }), make6("PipelineStatus", {
16410
+ }), make5("PipelineStatus", {
16558
16411
  payload: {
16559
16412
  lease: ProgramLease,
16560
16413
  step: String4,
@@ -16594,11 +16447,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16594
16447
  }))
16595
16448
  }),
16596
16449
  error: RunnerRpcError
16597
- }), make6("ReportPipeline", {
16450
+ }), make5("ReportPipeline", {
16598
16451
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16599
16452
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16600
16453
  error: RunnerRpcError
16601
- }), make6("ReviewThreads", {
16454
+ }), make5("ReviewThreads", {
16602
16455
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16603
16456
  success: Struct({
16604
16457
  threads: ArraySchema(Struct({
@@ -16610,7 +16463,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16610
16463
  }))
16611
16464
  }),
16612
16465
  error: RunnerRpcError
16613
- }), make6("OpenChangeRequests", {
16466
+ }), make5("OpenChangeRequests", {
16614
16467
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16615
16468
  success: Struct({
16616
16469
  changeRequests: ArraySchema(Struct({
@@ -16624,7 +16477,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16624
16477
  }))
16625
16478
  }),
16626
16479
  error: RunnerRpcError
16627
- }), make6("OwnChangeRequests", {
16480
+ }), make5("OwnChangeRequests", {
16628
16481
  payload: { lease: ProgramLease, step: String4 },
16629
16482
  success: Struct({
16630
16483
  changeRequests: ArraySchema(Struct({
@@ -16637,7 +16490,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16637
16490
  }))
16638
16491
  }),
16639
16492
  error: RunnerRpcError
16640
- }), make6("Propose", {
16493
+ }), make5("Propose", {
16641
16494
  payload: {
16642
16495
  lease: ProgramLease,
16643
16496
  step: String4,
@@ -16666,7 +16519,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16666
16519
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16667
16520
  }),
16668
16521
  error: RunnerRpcError
16669
- }), make6("ReadProject", {
16522
+ }), make5("ReadProject", {
16670
16523
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16671
16524
  success: Struct({
16672
16525
  project: Struct({ id: String4, name: String4 }),
@@ -16689,7 +16542,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16689
16542
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16690
16543
  }),
16691
16544
  error: RunnerRpcError
16692
- }), make6("DraftUpdate", {
16545
+ }), make5("DraftUpdate", {
16693
16546
  payload: {
16694
16547
  lease: ProgramLease,
16695
16548
  step: String4,
@@ -16704,7 +16557,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16704
16557
  },
16705
16558
  success: Struct({ id: String4 }),
16706
16559
  error: RunnerRpcError
16707
- }), make6("CreatePlanTasks", {
16560
+ }), make5("CreatePlanTasks", {
16708
16561
  payload: {
16709
16562
  lease: ProgramLease,
16710
16563
  projectId: optionalKey(String4),
@@ -16725,15 +16578,15 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16725
16578
  },
16726
16579
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16727
16580
  error: RunnerRpcError
16728
- }), make6("IntegrationBranch", {
16581
+ }), make5("IntegrationBranch", {
16729
16582
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16730
16583
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16731
16584
  error: RunnerRpcError
16732
- }), make6("DeliveryBase", {
16585
+ }), make5("DeliveryBase", {
16733
16586
  payload: { lease: ProgramLease },
16734
16587
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16735
16588
  error: RunnerRpcError
16736
- }), make6("Branch", {
16589
+ }), make5("Branch", {
16737
16590
  payload: {
16738
16591
  lease: ProgramLease,
16739
16592
  branch: optionalKey(String4),
@@ -16748,7 +16601,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16748
16601
  created: Boolean2
16749
16602
  }),
16750
16603
  error: RunnerRpcError
16751
- }), make6("BranchChangeRequest", {
16604
+ }), make5("BranchChangeRequest", {
16752
16605
  payload: {
16753
16606
  lease: ProgramLease,
16754
16607
  step: String4,
@@ -16771,7 +16624,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16771
16624
  Struct({ status: Literal("elsewhere"), team: String4 })
16772
16625
  ]),
16773
16626
  error: RunnerRpcError
16774
- }), make6("MergeChangeRequest", {
16627
+ }), make5("MergeChangeRequest", {
16775
16628
  payload: {
16776
16629
  lease: ProgramLease,
16777
16630
  step: String4,
@@ -16789,7 +16642,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16789
16642
  Struct({ status: Literal("moved"), head: String4 })
16790
16643
  ]),
16791
16644
  error: RunnerRpcError
16792
- }), make6("ApproveChangeRequest", {
16645
+ }), make5("ApproveChangeRequest", {
16793
16646
  payload: {
16794
16647
  lease: ProgramLease,
16795
16648
  step: String4,
@@ -16805,7 +16658,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16805
16658
  Struct({ approved: Literal(false), reason: String4 })
16806
16659
  ]),
16807
16660
  error: RunnerRpcError
16808
- }), make6("CloseChangeRequest", {
16661
+ }), make5("CloseChangeRequest", {
16809
16662
  payload: {
16810
16663
  lease: ProgramLease,
16811
16664
  step: String4,
@@ -16815,7 +16668,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16815
16668
  },
16816
16669
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16817
16670
  error: RunnerRpcError
16818
- }), make6("RerunPipeline", {
16671
+ }), make5("RerunPipeline", {
16819
16672
  payload: {
16820
16673
  lease: ProgramLease,
16821
16674
  step: String4,
@@ -16825,7 +16678,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16825
16678
  },
16826
16679
  success: Struct({ head: String4, pipelines: Int }),
16827
16680
  error: RunnerRpcError
16828
- }), make6("PublishRelease", {
16681
+ }), make5("PublishRelease", {
16829
16682
  payload: {
16830
16683
  lease: ProgramLease,
16831
16684
  step: String4,
@@ -16839,7 +16692,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16839
16692
  },
16840
16693
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16841
16694
  error: RunnerRpcError
16842
- }), make6("RecordDeploy", {
16695
+ }), make5("RecordDeploy", {
16843
16696
  payload: {
16844
16697
  lease: ProgramLease,
16845
16698
  step: String4,
@@ -16851,7 +16704,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16851
16704
  },
16852
16705
  success: Deploy,
16853
16706
  error: RunnerRpcError
16854
- }), make6("DeployTarget", {
16707
+ }), make5("DeployTarget", {
16855
16708
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16856
16709
  success: Struct({
16857
16710
  target: String4,
@@ -16859,14 +16712,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16859
16712
  order: optionalKey(ArraySchema(String4))
16860
16713
  }),
16861
16714
  error: RunnerRpcError
16862
- }), RunHostStep, make6("ProgramSecrets", {
16715
+ }), RunHostStep, make5("ProgramSecrets", {
16863
16716
  payload: { lease: ProgramLease },
16864
16717
  success: Record(String4, String4),
16865
16718
  error: RunnerRpcError
16866
16719
  })).middleware(RunnerAuthentication) {
16867
16720
  }
16868
16721
 
16869
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16722
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16870
16723
  payload: {
16871
16724
  lease: ProgramLease,
16872
16725
  step: String4,
@@ -16878,11 +16731,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16878
16731
  },
16879
16732
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16880
16733
  error: Union([RunnerRpcError, RunFileRefused])
16881
- }), make6("RunFileParts", {
16734
+ }), make5("RunFileParts", {
16882
16735
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16883
16736
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16884
16737
  error: RunnerRpcError
16885
- }), make6("CompleteRunFile", {
16738
+ }), make5("CompleteRunFile", {
16886
16739
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16887
16740
  success: RunFileRecord,
16888
16741
  error: RunnerRpcError
@@ -16892,7 +16745,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16892
16745
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16893
16746
 
16894
16747
  // apps/cli/src/oauth.ts
16895
- var Scope2 = "openid profile email offline_access kitman:cli";
16748
+ var Scope = "openid profile email offline_access kitman:cli";
16896
16749
  var CallbackPath = "/auth/callback";
16897
16750
 
16898
16751
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16911,7 +16764,7 @@ function buildAuthorizeUrl(input) {
16911
16764
  url.searchParams.set("response_type", "code");
16912
16765
  url.searchParams.set("client_id", input.clientId);
16913
16766
  url.searchParams.set("redirect_uri", input.redirectUri);
16914
- url.searchParams.set("scope", Scope2);
16767
+ url.searchParams.set("scope", Scope);
16915
16768
  url.searchParams.set("code_challenge", input.codeChallenge);
16916
16769
  url.searchParams.set("code_challenge_method", "S256");
16917
16770
  url.searchParams.set("state", input.state);
@@ -17627,7 +17480,7 @@ var spawnedTransport = (env) => gen(function* () {
17627
17480
  const spawner = yield* ChildProcessSpawner;
17628
17481
  const input = yield* unbounded2();
17629
17482
  const encoder = new TextEncoder;
17630
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17483
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17631
17484
  extendEnv: false,
17632
17485
  env,
17633
17486
  stdin: fromQueue(input),
@@ -17658,7 +17511,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17658
17511
  const spawner = yield* ChildProcessSpawner;
17659
17512
  const env = coreEnv(options);
17660
17513
  const run = (args) => gen(function* () {
17661
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17514
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17662
17515
  const [stdout, stderr, exitCode] = yield* all3([
17663
17516
  mkString(decodeText(handle.stdout)),
17664
17517
  mkString(decodeText(handle.stderr)),
@@ -17684,7 +17537,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17684
17537
  }
17685
17538
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17686
17539
  const spawner = yield* ChildProcessSpawner;
17687
- const handle = yield* spawner.spawn(make3(command, args, {
17540
+ const handle = yield* spawner.spawn(make2(command, args, {
17688
17541
  stdin: "ignore",
17689
17542
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17690
17543
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17710,7 +17563,7 @@ var shellOutputTailChars2 = 64 * 1024;
17710
17563
  var runProcess2 = (argv, options) => gen(function* () {
17711
17564
  const spawner = yield* ChildProcessSpawner;
17712
17565
  const [command, ...args] = argv;
17713
- const handle = yield* spawner.spawn(make3(command, args, {
17566
+ const handle = yield* spawner.spawn(make2(command, args, {
17714
17567
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17715
17568
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17716
17569
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -18233,4 +18086,4 @@ function serviceChecks(declaration) {
18233
18086
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18234
18087
  }
18235
18088
 
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 };
18089
+ 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, redactCredentialText, 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 };