@kitman-sh/cli 0.11.0-rc.3 → 0.11.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{chunk-egb7pjjz.js → chunk-0h5et1rg.js} +6 -6
  2. package/dist/{chunk-vkgqtwqm.js → chunk-2aj4ym2c.js} +7 -7
  3. package/dist/{chunk-sk6ceghr.js → chunk-2sfgqfgq.js} +2 -2
  4. package/dist/{chunk-52ad8f0f.js → chunk-4ngdyd3k.js} +17 -17
  5. package/dist/{chunk-bs81bt3q.js → chunk-6zrq5xq2.js} +7 -7
  6. package/dist/{chunk-248msks2.js → chunk-7d8prq0a.js} +4 -4
  7. package/dist/{chunk-6pyxykt1.js → chunk-9ew87kjc.js} +7 -212
  8. package/dist/{chunk-japwbj9n.js → chunk-anf9ddey.js} +2 -2
  9. package/dist/{chunk-nzjb36ad.js → chunk-bj73db3f.js} +1 -1
  10. package/dist/{chunk-0qz10ek8.js → chunk-bv9e34qz.js} +1 -1
  11. package/dist/{chunk-rtqdqr0v.js → chunk-cbwmsy27.js} +464 -114
  12. package/dist/{chunk-5j848ckb.js → chunk-cegdw7gw.js} +2 -2
  13. package/dist/{chunk-x7b9bwk6.js → chunk-dc681k94.js} +4 -4
  14. package/dist/{chunk-cnzz61ta.js → chunk-k2b10qys.js} +19 -19
  15. package/dist/{chunk-9a2r12ye.js → chunk-k6mfj25g.js} +3 -3
  16. package/dist/{chunk-d9bv70qb.js → chunk-kbhm8p3c.js} +5 -5
  17. package/dist/{chunk-7fbpsnt7.js → chunk-nb36pw5d.js} +8 -8
  18. package/dist/{chunk-5hx3j5x8.js → chunk-pqz98b85.js} +5 -5
  19. package/dist/{chunk-z450wa10.js → chunk-rjdptgqf.js} +4 -4
  20. package/dist/{chunk-vmv7gwwr.js → chunk-tx61h9d8.js} +6 -6
  21. package/dist/{chunk-vtfwjhzh.js → chunk-txyp31q5.js} +60 -60
  22. package/dist/{chunk-c6rbt85q.js → chunk-xmq9zpr1.js} +1 -1
  23. package/dist/{chunk-b6m9rfzj.js → chunk-y0q2574w.js} +12 -12
  24. package/dist/{chunk-3d4d52e5.js → chunk-znh6xbze.js} +28 -177
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make13,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make14,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -89,9 +91,11 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
- make16,
98
+ make15,
95
99
  _await,
96
100
  fail5,
97
101
  isDone,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -202,7 +214,7 @@ import {
202
214
  decodeEffect,
203
215
  decodeUnknownOption,
204
216
  decodeOption,
205
- make17,
217
+ make16,
206
218
  isSchema,
207
219
  optionalKey,
208
220
  optional,
@@ -242,6 +254,7 @@ import {
242
254
  Class2,
243
255
  Error3,
244
256
  TaggedError2,
257
+ toEquivalence,
245
258
  toCodecJson,
246
259
  Json,
247
260
  JsonObject,
@@ -249,11 +262,15 @@ import {
249
262
  decodeJsonStringOption,
250
263
  encodeJsonStringSync,
251
264
  encodePrettyJsonString
252
- } from "./chunk-vtfwjhzh.js";
265
+ } from "./chunk-txyp31q5.js";
253
266
  import {
254
267
  map,
255
268
  makeEquivalence,
256
269
  bytes,
270
+ join,
271
+ interrupt,
272
+ getCurrent,
273
+ runIn,
257
274
  BadArgument,
258
275
  systemError,
259
276
  badArgument,
@@ -275,13 +292,11 @@ import {
275
292
  isSink,
276
293
  fromChannel,
277
294
  drain,
278
- make10,
279
- get3,
280
295
  isStream,
281
296
  fromChannel2,
282
297
  callback,
283
298
  empty2,
284
- make11,
299
+ make10,
285
300
  suspend,
286
301
  fail2,
287
302
  fromQueue,
@@ -307,16 +322,16 @@ import {
307
322
  mkArrayBuffer,
308
323
  toReadableStreamEffect,
309
324
  FileSystem,
310
- make12,
325
+ make11,
311
326
  FileTypeId,
312
327
  WatchBackend,
313
328
  Path,
314
- make13,
329
+ make12,
315
330
  option,
316
331
  String2,
317
332
  optionalEnv,
318
333
  harnessesUnsupportedInSrt2
319
- } from "./chunk-3d4d52e5.js";
334
+ } from "./chunk-znh6xbze.js";
320
335
  import {
321
336
  isDateTime,
322
337
  Numeric,
@@ -329,7 +344,7 @@ import {
329
344
  SecretScope,
330
345
  SecretHosts,
331
346
  isSecretReference
332
- } from "./chunk-0qz10ek8.js";
347
+ } from "./chunk-bv9e34qz.js";
333
348
  import {
334
349
  toJsonValue,
335
350
  isOneOf,
@@ -343,7 +358,7 @@ import {
343
358
  isSymbol,
344
359
  isUndefined,
345
360
  kindOf
346
- } from "./chunk-c6rbt85q.js";
361
+ } from "./chunk-xmq9zpr1.js";
347
362
  import {
348
363
  isRedacted,
349
364
  make,
@@ -357,7 +372,7 @@ import {
357
372
  make3,
358
373
  parseFdName,
359
374
  fdName
360
- } from "./chunk-sk6ceghr.js";
375
+ } from "./chunk-2sfgqfgq.js";
361
376
 
362
377
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
378
  var makeEquivalence3 = Tuple;
@@ -500,7 +515,7 @@ var fromDateUnsafe = (date) => {
500
515
  }
501
516
  return makeUtc(epochMillis);
502
517
  };
503
- var makeUnsafe6 = (input) => {
518
+ var makeUnsafe7 = (input) => {
504
519
  if (isDateTime2(input)) {
505
520
  return input;
506
521
  } else if (input instanceof Date) {
@@ -520,7 +535,7 @@ var makeUnsafe6 = (input) => {
520
535
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
536
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
537
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
538
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
539
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
540
  var nowUnsafe = () => makeUtc(Date.now());
526
541
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +642,7 @@ class Metric$ {
627
642
  }
628
643
  hook(context) {
629
644
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
645
+ const registry = get3(context, MetricRegistry);
631
646
  let metadata = registry.get(key);
632
647
  if (isUndefined2(metadata)) {
633
648
  metadata = this.metadata(this.createHooks());
@@ -636,11 +651,11 @@ class Metric$ {
636
651
  return metadata.hooks;
637
652
  }
638
653
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
654
+ get3(context, MetricRegistry).delete(this.key(context));
640
655
  }
641
656
  registerUnsafe(context, hooks) {
642
657
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
658
+ const registry = get3(context, MetricRegistry);
644
659
  const metadata = this.metadata({
645
660
  get: hooks.get,
646
661
  update: constVoid,
@@ -656,7 +671,7 @@ class Metric$ {
656
671
  };
657
672
  }
658
673
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
674
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
675
  if (extraAttributes !== this.#extraAttributes) {
661
676
  this.#extraAttributes = extraAttributes;
662
677
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -908,9 +923,151 @@ var toNumber = (b) => {
908
923
  return some(Number(b));
909
924
  };
910
925
 
926
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
927
+ var TypeId3 = "~effect/RcRef";
928
+ var stateEmpty = {
929
+ _tag: "Empty"
930
+ };
931
+ var stateClosed = {
932
+ _tag: "Closed"
933
+ };
934
+ var variance = {
935
+ _A: identity,
936
+ _E: identity
937
+ };
938
+
939
+ class RcRefImpl {
940
+ [TypeId3] = variance;
941
+ pipe() {
942
+ return pipeArguments(this, arguments);
943
+ }
944
+ state = stateEmpty;
945
+ acquire;
946
+ context;
947
+ scope;
948
+ idleTimeToLive;
949
+ constructor(acquire, context, scope, idleTimeToLive) {
950
+ this.acquire = acquire;
951
+ this.context = context;
952
+ this.scope = scope;
953
+ this.idleTimeToLive = idleTimeToLive;
954
+ }
955
+ }
956
+ var make17 = (options) => withFiber2((fiber) => {
957
+ const context = fiber.context;
958
+ const scope = get3(context, Scope);
959
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
960
+ return as(addFinalizerExit(scope, () => {
961
+ const state = ref.state;
962
+ ref.state = stateClosed;
963
+ if (state._tag === "Acquired")
964
+ return close(state.scope, void_2);
965
+ if (state._tag === "Acquiring")
966
+ return interrupt(state.fiber);
967
+ return void_3;
968
+ }), ref);
969
+ });
970
+ var getState = (self, restore) => {
971
+ switch (self.state._tag) {
972
+ case "Closed": {
973
+ return interrupt3;
974
+ }
975
+ case "Acquired": {
976
+ const state = self.state;
977
+ state.refCount++;
978
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
979
+ }
980
+ case "Acquiring": {
981
+ const state = self.state;
982
+ state.awaiters++;
983
+ return awaitAcquiring(self, state, restore);
984
+ }
985
+ case "Empty": {
986
+ const acquiring = {
987
+ _tag: "Acquiring",
988
+ fiber: undefined,
989
+ awaiters: 1,
990
+ acquired: undefined
991
+ };
992
+ self.state = acquiring;
993
+ const scope = makeUnsafe6();
994
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
995
+ if (self.state !== acquiring) {
996
+ return interrupt3;
997
+ }
998
+ const state = {
999
+ _tag: "Acquired",
1000
+ value,
1001
+ scope,
1002
+ fiber: undefined,
1003
+ refCount: acquiring.awaiters,
1004
+ invalidated: false
1005
+ };
1006
+ self.state = state;
1007
+ acquiring.acquired = state;
1008
+ return succeed6(state);
1009
+ }), onExit((exit) => {
1010
+ if (isSuccess2(exit))
1011
+ return void_3;
1012
+ if (self.state === acquiring)
1013
+ self.state = stateEmpty;
1014
+ return close(scope, exit);
1015
+ }));
1016
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1017
+ return awaitAcquiring(self, acquiring, restore);
1018
+ }
1019
+ }
1020
+ };
1021
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1022
+ const acquired = acquiring.acquired;
1023
+ if (acquired !== undefined) {
1024
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1025
+ }
1026
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1027
+ return void_3;
1028
+ self.state = stateEmpty;
1029
+ return interrupt(acquiring.fiber);
1030
+ });
1031
+ var get4 = (self_) => {
1032
+ const self = self_;
1033
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1034
+ };
1035
+ var release = (self, state) => {
1036
+ state.refCount--;
1037
+ if (state.refCount > 0) {
1038
+ return void_3;
1039
+ }
1040
+ const idleTimeToLive = self.idleTimeToLive;
1041
+ if (idleTimeToLive === undefined || state.invalidated) {
1042
+ if (self.state === state) {
1043
+ self.state = stateEmpty;
1044
+ }
1045
+ return close(state.scope, void_2);
1046
+ } else if (!isFinite(idleTimeToLive)) {
1047
+ return void_3;
1048
+ }
1049
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1050
+ if (self.state === state && state.refCount === 0) {
1051
+ self.state = stateEmpty;
1052
+ return ignoreCause(close(state.scope, void_2), {
1053
+ log: "Unhandled",
1054
+ message: "Unhandled error in RcRef finalizer"
1055
+ });
1056
+ }
1057
+ return void_3;
1058
+ })).pipe(ensuring2(sync2(() => {
1059
+ state.fiber = undefined;
1060
+ })), runForkWith(self.context), runIn(self.scope));
1061
+ return void_3;
1062
+ };
1063
+
1064
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1065
+ var make18 = make17;
1066
+ var get5 = get4;
1067
+
911
1068
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make4;
1069
+ var makeUnsafe = makeUnsafe7;
1070
+ var make19 = make4;
914
1071
  var now2 = now;
915
1072
  var nowUnsafe2 = nowUnsafe;
916
1073
  var toDateUtc2 = toDateUtc;
@@ -1229,7 +1386,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1386
  windowsHide: true
1230
1387
  }, onExit);
1231
1388
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1389
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1390
  const fs = yield* FileSystem;
1234
1391
  const path = yield* Path;
1235
1392
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1758,7 +1915,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1758
1915
  });
1759
1916
  return make2(spawnCommand);
1760
1917
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1918
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1919
  var flattenCommand = (command) => {
1763
1920
  const commands = [];
1764
1921
  const pipeOptions = [];
@@ -2242,7 +2399,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2242
2399
  resume(fail7(handleBadArgument("writeFile")(err)));
2243
2400
  }
2244
2401
  });
2245
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2402
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2246
2403
  access: access2,
2247
2404
  chmod: chmod2,
2248
2405
  chown: chown2,
@@ -2302,15 +2459,15 @@ var fileUrlOps = (windows) => ({
2302
2459
  })
2303
2460
  })
2304
2461
  });
2305
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2306
2463
  ...NodePath.posix,
2307
2464
  .../* @__PURE__ */ fileUrlOps(false)
2308
2465
  }));
2309
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2466
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2310
2467
  ...NodePath.win32,
2311
2468
  .../* @__PURE__ */ fileUrlOps(true)
2312
2469
  }));
2313
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2470
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2314
2471
  ...NodePath,
2315
2472
  .../* @__PURE__ */ fileUrlOps(undefined)
2316
2473
  }));
@@ -2319,10 +2476,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2319
2476
  var layer2 = layer7;
2320
2477
 
2321
2478
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2322
- var TypeId3 = "~effect/Stdio";
2323
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
- var make20 = (options) => ({
2325
- [TypeId3]: TypeId3,
2479
+ var TypeId4 = "~effect/Stdio";
2480
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2481
+ var make21 = (options) => ({
2482
+ [TypeId4]: TypeId4,
2326
2483
  stdinIsTerminal: succeed6(false),
2327
2484
  stdoutIsTerminal: succeed6(false),
2328
2485
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2487,7 @@ var make20 = (options) => ({
2330
2487
  });
2331
2488
 
2332
2489
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2333
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2490
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2491
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2492
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2493
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2687,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2687
  const uuid = bytes(randomBytes(16));
2531
2688
  return format === "bytes" ? uuid : stringify(uuid);
2532
2689
  };
2533
- var make21 = (randomBytes) => {
2690
+ var make22 = (randomBytes) => {
2534
2691
  const randomBytesChecked = (size) => {
2535
2692
  checkSize(size);
2536
2693
  return randomBytes(size);
@@ -2564,13 +2721,13 @@ var fillRandom = (crypto2, size) => {
2564
2721
  }
2565
2722
  return bytes;
2566
2723
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2724
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2725
 
2569
2726
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2727
+ var TypeId5 = "~effect/http/Cookies";
2571
2728
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2729
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2730
+ [TypeId5]: TypeId5,
2574
2731
  ...BaseProto,
2575
2732
  toJSON() {
2576
2733
  return {
@@ -2749,14 +2906,14 @@ var tryDecodeURIComponent = (str) => {
2749
2906
  };
2750
2907
 
2751
2908
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2909
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2910
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2911
+ [TypeId6]: {
2912
+ value: TypeId6
2756
2913
  },
2757
2914
  [symbolRedactable]: {
2758
2915
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2916
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2917
  }
2761
2918
  },
2762
2919
  toJSON: {
@@ -2781,7 +2938,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2938
  value: BaseProto[NodeInspectSymbol]
2782
2939
  }
2783
2940
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2941
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2942
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2943
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2944
  var fromInput = (input) => {
@@ -2806,21 +2963,21 @@ var fromInput = (input) => {
2806
2963
  };
2807
2964
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2965
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2966
+ const out = make23(self);
2810
2967
  out[key.toLowerCase()] = value;
2811
2968
  return out;
2812
2969
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2970
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2971
  ...self,
2815
2972
  ...fromInput(headers)
2816
2973
  }));
2817
2974
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2975
+ const out = make23(self);
2819
2976
  Object.assign(out, headers);
2820
2977
  return out;
2821
2978
  });
2822
2979
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2980
+ const out = make23(self);
2824
2981
  delete out[key.toLowerCase()];
2825
2982
  return out;
2826
2983
  });
@@ -2877,18 +3034,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3034
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3035
 
2879
3036
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2880
- var TypeId6 = "~effect/http/UrlParams";
2881
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3037
+ var TypeId7 = "~effect/http/UrlParams";
3038
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3039
  var Proto4 = {
2883
3040
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3041
+ [TypeId7]: TypeId7,
2885
3042
  [Symbol.iterator]() {
2886
3043
  return this.params[Symbol.iterator]();
2887
3044
  },
2888
3045
  [symbolRedactable](context) {
2889
3046
  return {
2890
3047
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3048
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3049
  };
2893
3050
  },
2894
3051
  toJSON() {
@@ -2901,7 +3058,7 @@ var Proto4 = {
2901
3058
  return array(this.params.flat());
2902
3059
  }
2903
3060
  };
2904
- var make23 = (params) => {
3061
+ var make24 = (params) => {
2905
3062
  const self = Object.create(Proto4);
2906
3063
  self.params = params;
2907
3064
  return self;
@@ -2920,7 +3077,7 @@ var fromInput2 = (input) => {
2920
3077
  out.push(parsed[i]);
2921
3078
  }
2922
3079
  }
2923
- return make23(out);
3080
+ return make24(out);
2924
3081
  };
2925
3082
  var fromInputNested = (input) => {
2926
3083
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,9 +3101,9 @@ var fromInputNested = (input) => {
2944
3101
  return out;
2945
3102
  };
2946
3103
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3104
+ var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3105
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3106
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3107
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3108
  const params = fromInput2(input).params.slice();
2952
3109
  const keys = new Set;
@@ -2958,7 +3115,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3115
  continue;
2959
3116
  params.push(self.params[i]);
2960
3117
  }
2961
- return make23(params);
3118
+ return make24(params);
2962
3119
  });
2963
3120
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3121
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3014,13 +3171,13 @@ var decodeQueryKey = (key) => {
3014
3171
  return key;
3015
3172
  }
3016
3173
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3174
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3175
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3176
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3177
  });
3021
3178
 
3022
3179
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3180
+ var TypeId8 = "~effect/Terminal";
3024
3181
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3182
 
3026
3183
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,14 +3186,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3186
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3187
  }
3031
3188
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3189
+ var make25 = (impl) => Terminal.of({
3033
3190
  ...impl,
3034
- [TypeId7]: TypeId7
3191
+ [TypeId8]: TypeId8
3035
3192
  });
3036
3193
 
3037
3194
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3195
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3196
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3197
  const stdin = process.stdin;
3041
3198
  const stdout = process.stdout;
3042
3199
  const lines = yield* make9();
@@ -3050,7 +3207,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3207
  };
3051
3208
  stdin.once("end", onStdinEnd);
3052
3209
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make10({
3210
+ const rlRef = yield* make18({
3054
3211
  acquire: acquireRelease(sync2(() => {
3055
3212
  const rl = readline.createInterface({
3056
3213
  input: stdin,
@@ -3089,7 +3246,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3246
  if (stdin.isTTY)
3090
3247
  stdin.setRawMode(enabled);
3091
3248
  });
3092
- const rawModeRef = yield* make10({
3249
+ const rawModeRef = yield* make18({
3093
3250
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3251
  idleTimeToLive: "10 millis"
3095
3252
  });
@@ -3140,14 +3297,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3297
  if (inputEnded) {
3141
3298
  handleEnd();
3142
3299
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3300
+ yield* get5(rlRef);
3301
+ yield* get5(rawModeRef);
3145
3302
  stdin.once("end", handleEnd);
3146
3303
  }
3147
3304
  return queue;
3148
3305
  });
3149
3306
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3307
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3308
  onSome: succeed6
3152
3309
  })), mapError2(() => new QuitError({}))));
3153
3310
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3315,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3315
  cause: err
3159
3316
  }))));
3160
3317
  }));
3161
- return make24({
3318
+ return make25({
3162
3319
  columns,
3163
3320
  rows,
3164
3321
  size,
@@ -3167,7 +3324,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3324
  display
3168
3325
  });
3169
3326
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3327
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3328
  function defaultShouldQuit(input) {
3172
3329
  const key = input.key;
3173
3330
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3351,7 @@ function toDate(input) {
3194
3351
  return toDateUtc2(makeUnsafe(input));
3195
3352
  }
3196
3353
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3354
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3355
  }
3199
3356
  function toIso(input) {
3200
3357
  return formatIso(makeUnsafe(input));
@@ -9409,6 +9566,85 @@ function sha256Hasher() {
9409
9566
  digest: (encoding) => hash.digest(encoding)
9410
9567
  };
9411
9568
  }
9569
+ // packages/core/src/schedule.ts
9570
+ var ScheduleFrequency = ["daily", "weekly"];
9571
+ var ScheduleMisfirePolicies = ["skip", "fire_once", "catch_up"];
9572
+ var ScheduleOverlapPolicies = ["allow", "skip", "coalesce"];
9573
+ var ScheduleVersionStatuses = ["draft", "published", "disabled", "archived"];
9574
+ var ScheduleCalendarRule = Struct({
9575
+ frequency: Literals(ScheduleFrequency),
9576
+ hour: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(23)),
9577
+ minute: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59)),
9578
+ second: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(59))),
9579
+ daysOfWeek: optionalKey(ArraySchema(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(6))).check(isMinLength(1), isMaxLength(7)))
9580
+ });
9581
+ var ScheduleCronRule = Struct({
9582
+ cron: String4.check(isMinLength(9), isMaxLength(200), isPattern(new RegExp("^[0-9*,/-]+( [0-9*,/-]+){4}$", "u")))
9583
+ });
9584
+ var ScheduleRule = Union([ScheduleCalendarRule, ScheduleCronRule]);
9585
+ var cronBounds = [
9586
+ [0, 59],
9587
+ [0, 23],
9588
+ [1, 31],
9589
+ [1, 12],
9590
+ [0, 7]
9591
+ ];
9592
+ function cronField(field, [min, max]) {
9593
+ const values = new Set;
9594
+ for (const part of field.split(",")) {
9595
+ const match = /^(\*|(\d+)(?:-(\d+))?)(?:\/(\d+))?$/.exec(part);
9596
+ if (match === null)
9597
+ return;
9598
+ const from = match[1] === "*" ? min : Number(match[2]);
9599
+ const to = match[1] === "*" ? max : match[3] === undefined ? match[4] === undefined ? from : max : Number(match[3]);
9600
+ const step = match[4] === undefined ? 1 : Number(match[4]);
9601
+ if (from < min || to > max || from > to || step < 1)
9602
+ return;
9603
+ for (let value = from;value <= to; value += step)
9604
+ values.add(value);
9605
+ }
9606
+ return values;
9607
+ }
9608
+ function parseCron(cron) {
9609
+ const fields = cron.split(" ");
9610
+ const [minutes, hours, days, months, weekdays] = fields.map((field, index) => cronField(field, cronBounds[index] ?? [0, 0]));
9611
+ if (fields.length !== 5 || !minutes || !hours || !days || !months || !weekdays)
9612
+ return;
9613
+ return {
9614
+ minutes,
9615
+ hours,
9616
+ days,
9617
+ months,
9618
+ weekdays: new Set([...weekdays].map((value) => value % 7)),
9619
+ dayRestricted: !(fields[2] ?? "").startsWith("*"),
9620
+ weekdayRestricted: !(fields[4] ?? "").startsWith("*")
9621
+ };
9622
+ }
9623
+ function isScheduleRule(value) {
9624
+ return guard(ScheduleRule)(value) && (!("cron" in value) || parseCron(value.cron) !== undefined);
9625
+ }
9626
+ var ScheduleVersion = Struct({
9627
+ contractVersion: Literal("schedule.v1"),
9628
+ id: String4.check(isMinLength(1)),
9629
+ scheduleId: String4.check(isMinLength(1)),
9630
+ workspaceId: String4.check(isMinLength(1)),
9631
+ teamId: optionalKey(String4.check(isMinLength(1))),
9632
+ loopId: optionalKey(String4.check(isMinLength(1))),
9633
+ name: optionalKey(String4.check(isMinLength(1), isMaxLength(200))),
9634
+ version: Int.check(isGreaterThanOrEqualTo(1)),
9635
+ status: Literals(ScheduleVersionStatuses),
9636
+ timezone: String4.check(isMinLength(1), isMaxLength(80)),
9637
+ rule: ScheduleRule,
9638
+ misfirePolicy: Literals(ScheduleMisfirePolicies),
9639
+ overlapPolicy: Literals(ScheduleOverlapPolicies),
9640
+ maxCatchUp: Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(200)),
9641
+ misfireGraceSeconds: optionalKey(Int.check(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(604800))),
9642
+ inputSchemaRef: optionalKey(LoopDataSchemaRef),
9643
+ input: optionalKey(SafeJson),
9644
+ createdAt: String4.check(isMinLength(1))
9645
+ });
9646
+ var zones = new Map;
9647
+ var resolvedLocalDateTimes = new Map;
9412
9648
  // packages/core/src/transcript.ts
9413
9649
  var Text = String4.check(isMaxLength(200000));
9414
9650
  var AgentEvent = Union([
@@ -9491,11 +9727,11 @@ var TranscriptSearchResult = Struct({
9491
9727
  total: Int
9492
9728
  });
9493
9729
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9494
- var TypeId8 = "~effect/http/HttpBody";
9730
+ var TypeId9 = "~effect/http/HttpBody";
9495
9731
  class Proto5 {
9496
- [TypeId8];
9732
+ [TypeId9];
9497
9733
  constructor() {
9498
- this[TypeId8] = TypeId8;
9734
+ this[TypeId9] = TypeId9;
9499
9735
  }
9500
9736
  [NodeInspectSymbol]() {
9501
9737
  return this.toJSON();
@@ -9586,7 +9822,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9586
9822
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9587
9823
 
9588
9824
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9589
- var TypeId9 = "~effect/http/HttpClientError";
9825
+ var TypeId10 = "~effect/http/HttpClientError";
9590
9826
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9591
9827
  constructor(props) {
9592
9828
  if ("cause" in props.reason) {
@@ -9598,7 +9834,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9598
9834
  super(props);
9599
9835
  }
9600
9836
  }
9601
- [TypeId9] = TypeId9;
9837
+ [TypeId10] = TypeId10;
9602
9838
  get request() {
9603
9839
  return this.reason.request;
9604
9840
  }
@@ -9702,7 +9938,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9702
9938
  }
9703
9939
  }
9704
9940
 
9705
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9941
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9706
9942
  _tag: /* @__PURE__ */ tag("HttpError"),
9707
9943
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9708
9944
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9735,7 +9971,7 @@ var updateContentLength = (headers, body) => {
9735
9971
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9736
9972
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9737
9973
  }
9738
- var make26 = (url, params, hash) => try_({
9974
+ var make27 = (url, params, hash) => try_({
9739
9975
  try: () => {
9740
9976
  const urlInstance = new URL(url, baseUrl());
9741
9977
  for (let i = 0;i < params.params.length; i++) {
@@ -9766,10 +10002,10 @@ var baseUrl = () => {
9766
10002
  };
9767
10003
 
9768
10004
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9769
- var TypeId10 = "~effect/http/HttpClientRequest";
9770
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10005
+ var TypeId11 = "~effect/http/HttpClientRequest";
10006
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9771
10007
  var Proto6 = {
9772
- [TypeId10]: TypeId10,
10008
+ [TypeId11]: TypeId11,
9773
10009
  ...BaseProto,
9774
10010
  toJSON() {
9775
10011
  return {
@@ -9858,7 +10094,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9858
10094
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9859
10095
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9860
10096
  function toUrl(self) {
9861
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10097
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9862
10098
  if (isSuccess(r)) {
9863
10099
  return some(r.success);
9864
10100
  }
@@ -9866,7 +10102,7 @@ function toUrl(self) {
9866
10102
  }
9867
10103
 
9868
10104
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9869
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10105
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9870
10106
  var schemaBodyJson = (schema, options) => {
9871
10107
  const decode = decodeEffect(toCodecJson(schema));
9872
10108
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9885,7 +10121,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9885
10121
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9886
10122
 
9887
10123
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9888
- var TypeId12 = "~effect/http/HttpClientResponse";
10124
+ var TypeId13 = "~effect/http/HttpClientResponse";
9889
10125
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9890
10126
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9891
10127
  reason: new StatusCodeError({
@@ -9896,16 +10132,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9896
10132
  }));
9897
10133
 
9898
10134
  class WebHttpClientResponse extends Class {
9899
- [TypeId11];
9900
10135
  [TypeId12];
10136
+ [TypeId13];
9901
10137
  request;
9902
10138
  source;
9903
10139
  constructor(request, source) {
9904
10140
  super();
9905
10141
  this.request = request;
9906
10142
  this.source = source;
9907
- this[TypeId11] = TypeId11;
9908
10143
  this[TypeId12] = TypeId12;
10144
+ this[TypeId13] = TypeId13;
9909
10145
  }
9910
10146
  toJSON() {
9911
10147
  return inspect(this, {
@@ -10077,7 +10313,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10077
10313
  };
10078
10314
 
10079
10315
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10080
- var TypeId13 = "~effect/http/HttpClient";
10316
+ var TypeId14 = "~effect/http/HttpClient";
10081
10317
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10082
10318
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10083
10319
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10094,7 +10330,7 @@ var makeWith2 = (postprocess, preprocess) => {
10094
10330
  return self;
10095
10331
  };
10096
10332
  var Proto7 = {
10097
- [TypeId13]: TypeId13,
10333
+ [TypeId14]: TypeId14,
10098
10334
  pipe() {
10099
10335
  return pipeArguments(this, arguments);
10100
10336
  },
@@ -10108,10 +10344,10 @@ var Proto7 = {
10108
10344
  return this.execute(make5(fullMethod)(url, options));
10109
10345
  }]))
10110
10346
  };
10111
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10347
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10112
10348
  const scopedController = scopedRequests.get(request);
10113
10349
  const controller = scopedController ?? new AbortController;
10114
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10350
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10115
10351
  if (isFailure(urlResult)) {
10116
10352
  return fail7(new HttpClientError({
10117
10353
  reason: new InvalidUrlError({
@@ -10245,8 +10481,8 @@ class InterruptibleResponse {
10245
10481
  this.original = original;
10246
10482
  this.controller = controller;
10247
10483
  }
10484
+ [TypeId13] = TypeId13;
10248
10485
  [TypeId12] = TypeId12;
10249
- [TypeId11] = TypeId11;
10250
10486
  applyInterrupt(effect) {
10251
10487
  return suspend3(() => {
10252
10488
  responseRegistry.unregister(this.original);
@@ -10344,7 +10580,7 @@ var detectStreamBodySupport = () => {
10344
10580
  return false;
10345
10581
  }
10346
10582
  };
10347
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10583
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10348
10584
  if (request.headers.upgrade !== undefined) {
10349
10585
  return fail7(new HttpClientError({
10350
10586
  reason: new TransportError({
@@ -10435,10 +10671,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10435
10671
  });
10436
10672
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10437
10673
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10438
- var TypeId14 = "~effect/socket/Socket";
10674
+ var TypeId15 = "~effect/socket/Socket";
10439
10675
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10440
- var make28 = (options) => Socket.of({
10441
- [TypeId14]: TypeId14,
10676
+ var make29 = (options) => Socket.of({
10677
+ [TypeId15]: TypeId15,
10442
10678
  reader: options.reader,
10443
10679
  writer: options.writer
10444
10680
  });
@@ -10761,7 +10997,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10761
10997
  write,
10762
10998
  writeAll
10763
10999
  });
10764
- return succeed6(make28({
11000
+ return succeed6(make29({
10765
11001
  reader,
10766
11002
  writer
10767
11003
  }));
@@ -11332,6 +11568,120 @@ var DeployBindingCreate = Struct({
11332
11568
  });
11333
11569
  var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
11334
11570
  var defaultKitName = "@kitman-sh/software-engineering";
11571
+
11572
+ // packages/core/src/kit-declarations.ts
11573
+ var LoopCapabilities = [
11574
+ "agent_work",
11575
+ "ask",
11576
+ "call",
11577
+ "verify",
11578
+ "change_request",
11579
+ "write_back",
11580
+ "post_comment",
11581
+ "create_tasks",
11582
+ "merge_change_request",
11583
+ "approve_change_request",
11584
+ "publish_release",
11585
+ "read_transcripts",
11586
+ "read_change_request",
11587
+ "measure",
11588
+ "claim",
11589
+ "propose",
11590
+ "read_project",
11591
+ "draft_update"
11592
+ ];
11593
+ var JsonObject2 = Record(String4, Json);
11594
+ var SecretName2 = String4.check(isPattern(/^[A-Za-z_][A-Za-z0-9_]{0,127}$/));
11595
+ var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
11596
+ var LoopManifest = Struct({
11597
+ id: String4,
11598
+ title: String4,
11599
+ version: optionalKey(LoopVersion),
11600
+ input: JsonObject2,
11601
+ output: JsonObject2,
11602
+ outcome: optionalKey(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
11603
+ agents: Record(String4, String4),
11604
+ checkout: Literals(["none", "read", "write"]),
11605
+ when: ArraySchema(Struct({
11606
+ event: String4,
11607
+ filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
11608
+ input: Record(String4, String4),
11609
+ values: optionalKey(JsonObject2)
11610
+ })),
11611
+ offers: ArraySchema(Struct({
11612
+ id: String4,
11613
+ title: String4,
11614
+ loop: String4,
11615
+ from: optionalKey(String4)
11616
+ })),
11617
+ capabilities: ArraySchema(Literals(LoopCapabilities)),
11618
+ ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
11619
+ secrets: optionalKey(ArraySchema(SecretName2)),
11620
+ network: optionalKey(AgentSandboxNetwork),
11621
+ schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
11622
+ });
11623
+ var LoopDetail = Struct({
11624
+ id: String4,
11625
+ resolved: optionalKey(Struct({
11626
+ ...ProgramLoop.fields,
11627
+ agents: LoopManifest.fields.agents,
11628
+ when: LoopManifest.fields.when,
11629
+ schedule: optionalKey(Struct({
11630
+ rule: ScheduleRule,
11631
+ timezone: String4,
11632
+ on: Boolean2,
11633
+ nextRunAt: optionalKey(String4)
11634
+ }))
11635
+ }))
11636
+ });
11637
+ var AgentDeclaration = Struct({
11638
+ extends: optionalKey(String4),
11639
+ instructions: optionalKey(String4),
11640
+ harness: optionalKey(String4),
11641
+ model: optionalKey(String4),
11642
+ effort: optionalKey(Literals(AgentEfforts)),
11643
+ fallbacks: optionalKey(ArraySchema(AgentFallback)),
11644
+ tools: optionalKey(ArraySchema(Literals(AgentCapabilities))),
11645
+ skills: optionalKey(ArraySchema(String4.check(isMinLength(1)))),
11646
+ network: optionalKey(Union([Struct({ hosts: ArraySchema(String4) }), Literal("open")])),
11647
+ sandbox: optionalKey(Literal("docker"))
11648
+ });
11649
+ var scheduleFields = {
11650
+ name: String4.check(isMinLength(1)),
11651
+ loop: String4,
11652
+ team: optionalKey(String4),
11653
+ input: optionalKey(JsonObject2),
11654
+ timezone: String4,
11655
+ misfire: optionalKey(Literals(ScheduleMisfirePolicies)),
11656
+ overlap: optionalKey(Literals(ScheduleOverlapPolicies))
11657
+ };
11658
+ var ScheduleDeclaration = Union([
11659
+ Struct({
11660
+ ...scheduleFields,
11661
+ cron: String4.check(makeFilter((cron) => isScheduleRule({ cron }) || "five cron fields, each within its range"))
11662
+ }),
11663
+ Struct({
11664
+ ...scheduleFields,
11665
+ rule: declare((value) => isScheduleRule(value), {
11666
+ expected: "a Schedule rule: frequency daily or weekly, hour, minute, and optionally second and daysOfWeek"
11667
+ })
11668
+ })
11669
+ ]);
11670
+ var CarriedKit = Struct({
11671
+ name: KitName,
11672
+ version: String4.check(isMinLength(1)),
11673
+ setup: KitDigest,
11674
+ loops: ArraySchema(String4),
11675
+ agents: ArraySchema(String4)
11676
+ });
11677
+ var KitDeclarations = Struct({
11678
+ loops: ArraySchema(LoopManifest),
11679
+ agents: Record(String4, AgentDeclaration),
11680
+ schedules: optionalKey(Record(String4, ScheduleDeclaration)),
11681
+ carried: optionalKey(ArraySchema(CarriedKit))
11682
+ });
11683
+ var sameLoop = toEquivalence(LoopManifest);
11684
+ var sameAgent = toEquivalence(AgentDeclaration);
11335
11685
  // packages/core/src/kit-setup.ts
11336
11686
  var KitSetup = Struct({
11337
11687
  ...AgentEnvironmentFragment.fields,
@@ -13656,7 +14006,7 @@ function getStreamSchemas(schema) {
13656
14006
  }
13657
14007
  var schema = /* @__PURE__ */ declare(isStream);
13658
14008
  function Stream(success, error) {
13659
- return make17(schema.ast, {
14009
+ return make16(schema.ast, {
13660
14010
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13661
14011
  success,
13662
14012
  error
@@ -13664,9 +14014,9 @@ function Stream(success, error) {
13664
14014
  }
13665
14015
 
13666
14016
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13667
- var TypeId15 = "~effect/rpc/Rpc";
14017
+ var TypeId16 = "~effect/rpc/Rpc";
13668
14018
  var Proto8 = {
13669
- [TypeId15]: TypeId15,
14019
+ [TypeId16]: TypeId16,
13670
14020
  pipe() {
13671
14021
  return pipeArguments(this, arguments);
13672
14022
  },
@@ -13833,7 +14183,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13833
14183
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13834
14184
 
13835
14185
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13836
- var TypeId16 = "~effect/rpc/RpcClientError";
14186
+ var TypeId17 = "~effect/rpc/RpcClientError";
13837
14187
 
13838
14188
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13839
14189
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13842,11 +14192,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13842
14192
  })) {
13843
14193
  }
13844
14194
 
13845
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14195
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13846
14196
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13847
14197
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13848
14198
  })) {
13849
- [TypeId16] = TypeId16;
14199
+ [TypeId17] = TypeId17;
13850
14200
  get message() {
13851
14201
  return `${this.reason._tag}: ${this.reason.message}`;
13852
14202
  }
@@ -13966,7 +14316,7 @@ var RpcGroupProto = {
13966
14316
  });
13967
14317
  },
13968
14318
  annotateRpcs(service, value) {
13969
- return this.annotateRpcsMerge(make15(service, value));
14319
+ return this.annotateRpcsMerge(make14(service, value));
13970
14320
  },
13971
14321
  annotateMerge(context) {
13972
14322
  return makeProto2({
@@ -13994,7 +14344,7 @@ var make7 = (...rpcs) => makeProto2({
13994
14344
  annotations: empty3()
13995
14345
  });
13996
14346
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13997
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14347
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13998
14348
  var Service = () => (id, options) => {
13999
14349
  const limit = getStackTraceLimit();
14000
14350
  let creationError;
@@ -14012,7 +14362,7 @@ var Service = () => (id, options) => {
14012
14362
  return creationError?.stack;
14013
14363
  }
14014
14364
  });
14015
- ServiceClass_[TypeId17] = TypeId17;
14365
+ ServiceClass_[TypeId18] = TypeId18;
14016
14366
  ServiceClass_.error = options?.error ?? Never;
14017
14367
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14018
14368
  return ServiceClass;
@@ -14031,7 +14381,7 @@ class RunnerAuthentication extends Service()("RunnerAuthentication", {
14031
14381
  error: RunnerRpcError
14032
14382
  }) {
14033
14383
  }
14034
- var EventFilterValue = Union([String4, Finite, Boolean2, Null]);
14384
+ var EventFilterValue2 = Union([String4, Finite, Boolean2, Null]);
14035
14385
  var WorkAvailable = TaggedStruct("WorkAvailable", {});
14036
14386
  var LeaseRevoked = TaggedStruct("LeaseRevoked", { workUnitId: String4 });
14037
14387
  var Settled = TaggedStruct("Settled", { workUnitId: String4 });
@@ -14244,12 +14594,12 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14244
14594
  step: String4,
14245
14595
  deferredName: String4,
14246
14596
  event: String4,
14247
- filter: optional(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14597
+ filter: optional(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14248
14598
  timeoutMillis: Int,
14249
14599
  since: optionalKey(String4),
14250
14600
  or: optionalKey(ArraySchema(Struct({
14251
14601
  event: String4,
14252
- filter: optionalKey(Record(String4, Union([EventFilterValue, ArraySchema(EventFilterValue)]))),
14602
+ filter: optionalKey(Record(String4, Union([EventFilterValue2, ArraySchema(EventFilterValue2)]))),
14253
14603
  since: optionalKey(String4)
14254
14604
  })))
14255
14605
  },
@@ -14624,7 +14974,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14624
14974
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14625
14975
 
14626
14976
  // apps/cli/src/oauth.ts
14627
- var Scope = "openid profile email offline_access kitman:cli";
14977
+ var Scope2 = "openid profile email offline_access kitman:cli";
14628
14978
  var CallbackPath = "/auth/callback";
14629
14979
 
14630
14980
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14643,7 +14993,7 @@ function buildAuthorizeUrl(input) {
14643
14993
  url.searchParams.set("response_type", "code");
14644
14994
  url.searchParams.set("client_id", input.clientId);
14645
14995
  url.searchParams.set("redirect_uri", input.redirectUri);
14646
- url.searchParams.set("scope", Scope);
14996
+ url.searchParams.set("scope", Scope2);
14647
14997
  url.searchParams.set("code_challenge", input.codeChallenge);
14648
14998
  url.searchParams.set("code_challenge_method", "S256");
14649
14999
  url.searchParams.set("state", input.state);
@@ -14703,7 +15053,7 @@ function toStoredSession(token, existingRefreshToken) {
14703
15053
  }
14704
15054
  function startLoopbackServer(input) {
14705
15055
  return gen(function* () {
14706
- const code = yield* make16();
15056
+ const code = yield* make15();
14707
15057
  const context2 = yield* context();
14708
15058
  const runSyncExit = runSyncExitWith(context2);
14709
15059
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15243,7 +15593,7 @@ var openConnection = (transport) => gen(function* () {
15243
15593
  let lastId = 0;
15244
15594
  let lost = false;
15245
15595
  const notifications = yield* unbounded2();
15246
- const ended = yield* make16();
15596
+ const ended = yield* make15();
15247
15597
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15248
15598
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15249
15599
  onNone: () => void_3,
@@ -15270,7 +15620,7 @@ var openConnection = (transport) => gen(function* () {
15270
15620
  if (lost)
15271
15621
  return yield* new HerdrCoreConnectionLost2({ method });
15272
15622
  const id = ++lastId;
15273
- const deferred = yield* make16();
15623
+ const deferred = yield* make15();
15274
15624
  pending.set(id, { method, deferred });
15275
15625
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15276
15626
  return yield* _await(deferred);
@@ -15344,7 +15694,7 @@ var herdrCoreOver = (transport) => ({
15344
15694
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15345
15695
  };
15346
15696
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15347
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15697
+ return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15348
15698
  }))
15349
15699
  });
15350
15700
  var spawnedTransport = (env) => gen(function* () {
@@ -15435,7 +15785,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15435
15785
  const spawner = yield* ChildProcessSpawner;
15436
15786
  const [command, ...args] = argv;
15437
15787
  const handle = yield* spawner.spawn(make3(command, args, {
15438
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15788
+ stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15439
15789
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15440
15790
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15441
15791
  }));
@@ -15860,4 +16210,4 @@ function checkServices(declaration) {
15860
16210
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15861
16211
  }
15862
16212
 
15863
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
16213
+ export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, RunDisplayStates, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, AgentDeclaration, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };