@kitman-sh/cli 0.12.0-rc.8 → 0.12.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 (27) hide show
  1. package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
  2. package/dist/{chunk-vrms6e1m.js → chunk-0wdm7br1.js} +4 -4
  3. package/dist/{chunk-scb6qgy2.js → chunk-4k5jfyqd.js} +23 -23
  4. package/dist/{chunk-d8qcmqh5.js → chunk-4x06mdcd.js} +4 -4
  5. package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
  6. package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
  7. package/dist/{chunk-3kxwb7qn.js → chunk-cb78rzqd.js} +7 -7
  8. package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
  9. package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
  10. package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
  11. package/dist/{chunk-dh09wyed.js → chunk-h3em3y8r.js} +23 -23
  12. package/dist/{chunk-6pqxsnk1.js → chunk-mjdt8wbv.js} +13 -13
  13. package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
  14. package/dist/{chunk-jg8n8z0z.js → chunk-pf13sv65.js} +4 -4
  15. package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
  16. package/dist/{chunk-3cgshf16.js → chunk-qj6gjtdd.js} +24 -24
  17. package/dist/{chunk-ey4mf341.js → chunk-s6z4aqag.js} +6 -6
  18. package/dist/{chunk-9c9vrbh4.js → chunk-shv2xs9y.js} +126 -117
  19. package/dist/{chunk-mmpcdj8f.js → chunk-vw462m91.js} +7 -7
  20. package/dist/{chunk-9q7qc1dg.js → chunk-wh2ep6fc.js} +1 -1
  21. package/dist/{chunk-jwc8bdga.js → chunk-wyhg9cyk.js} +5 -5
  22. package/dist/{chunk-det0tmx7.js → chunk-xaspqegt.js} +1 -1
  23. package/dist/{chunk-7959aeck.js → chunk-xsdceanv.js} +3 -3
  24. package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
  25. package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -186,7 +186,6 @@ import {
186
186
  mapEager,
187
187
  flatMapEager,
188
188
  catchEager,
189
- fromInputUnsafe2,
190
189
  Pointer,
191
190
  passthrough,
192
191
  transformEffect,
@@ -202,7 +201,7 @@ import {
202
201
  String4,
203
202
  toCodecStringTree,
204
203
  encodeUnknownJsonStringSync
205
- } from "./chunk-x3cc7dfc.js";
204
+ } from "./chunk-zw3gf6r5.js";
206
205
 
207
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
208
207
  var headUnsafe = (self) => {
@@ -251,6 +250,141 @@ var makeEquivalence = (equivalence) => {
251
250
  return (self, that) => is(self, that) && is(that, self);
252
251
  };
253
252
 
253
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
254
+ var bigint0 = /* @__PURE__ */ BigInt(0);
255
+ var bigint1 = /* @__PURE__ */ BigInt(1);
256
+ var decimalBase = /* @__PURE__ */ BigInt(1000);
257
+ var binaryBase = /* @__PURE__ */ BigInt(1024);
258
+ var decimalUnits = [{
259
+ symbol: "B",
260
+ factor: bigint1,
261
+ names: ["B", "byte", "bytes"]
262
+ }, {
263
+ symbol: "kB",
264
+ factor: decimalBase,
265
+ names: ["kB", "kilobyte", "kilobytes"]
266
+ }, {
267
+ symbol: "MB",
268
+ factor: decimalBase ** /* @__PURE__ */ BigInt(2),
269
+ names: ["MB", "megabyte", "megabytes"]
270
+ }, {
271
+ symbol: "GB",
272
+ factor: decimalBase ** /* @__PURE__ */ BigInt(3),
273
+ names: ["GB", "gigabyte", "gigabytes"]
274
+ }, {
275
+ symbol: "TB",
276
+ factor: decimalBase ** /* @__PURE__ */ BigInt(4),
277
+ names: ["TB", "terabyte", "terabytes"]
278
+ }, {
279
+ symbol: "PB",
280
+ factor: decimalBase ** /* @__PURE__ */ BigInt(5),
281
+ names: ["PB", "petabyte", "petabytes"]
282
+ }, {
283
+ symbol: "EB",
284
+ factor: decimalBase ** /* @__PURE__ */ BigInt(6),
285
+ names: ["EB", "exabyte", "exabytes"]
286
+ }, {
287
+ symbol: "ZB",
288
+ factor: decimalBase ** /* @__PURE__ */ BigInt(7),
289
+ names: ["ZB", "zettabyte", "zettabytes"]
290
+ }, {
291
+ symbol: "YB",
292
+ factor: decimalBase ** /* @__PURE__ */ BigInt(8),
293
+ names: ["YB", "yottabyte", "yottabytes"]
294
+ }, {
295
+ symbol: "RB",
296
+ factor: decimalBase ** /* @__PURE__ */ BigInt(9),
297
+ names: ["RB", "ronnabyte", "ronnabytes"]
298
+ }, {
299
+ symbol: "QB",
300
+ factor: decimalBase ** /* @__PURE__ */ BigInt(10),
301
+ names: ["QB", "quettabyte", "quettabytes"]
302
+ }];
303
+ var binaryUnits = [decimalUnits[0], {
304
+ symbol: "KiB",
305
+ factor: binaryBase,
306
+ names: ["KiB", "kibibyte", "kibibytes"]
307
+ }, {
308
+ symbol: "MiB",
309
+ factor: binaryBase ** /* @__PURE__ */ BigInt(2),
310
+ names: ["MiB", "mebibyte", "mebibytes"]
311
+ }, {
312
+ symbol: "GiB",
313
+ factor: binaryBase ** /* @__PURE__ */ BigInt(3),
314
+ names: ["GiB", "gibibyte", "gibibytes"]
315
+ }, {
316
+ symbol: "TiB",
317
+ factor: binaryBase ** /* @__PURE__ */ BigInt(4),
318
+ names: ["TiB", "tebibyte", "tebibytes"]
319
+ }, {
320
+ symbol: "PiB",
321
+ factor: binaryBase ** /* @__PURE__ */ BigInt(5),
322
+ names: ["PiB", "pebibyte", "pebibytes"]
323
+ }, {
324
+ symbol: "EiB",
325
+ factor: binaryBase ** /* @__PURE__ */ BigInt(6),
326
+ names: ["EiB", "exbibyte", "exbibytes"]
327
+ }, {
328
+ symbol: "ZiB",
329
+ factor: binaryBase ** /* @__PURE__ */ BigInt(7),
330
+ names: ["ZiB", "zebibyte", "zebibytes"]
331
+ }, {
332
+ symbol: "YiB",
333
+ factor: binaryBase ** /* @__PURE__ */ BigInt(8),
334
+ names: ["YiB", "yobibyte", "yobibytes"]
335
+ }];
336
+ var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
337
+ var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
338
+ var make = (value) => value;
339
+ var invalid = (message) => {
340
+ throw new Error(`Invalid ByteSize: ${message}`);
341
+ };
342
+ var fromNumber = (input) => {
343
+ if (!Number.isSafeInteger(input) || input < 0) {
344
+ return invalid(`expected a non-negative safe integer, received ${input}`);
345
+ }
346
+ return make(BigInt(input));
347
+ };
348
+ var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
349
+ var scaleDecimal = (quantity, factor) => {
350
+ const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
351
+ if (match === null)
352
+ return;
353
+ const fraction = match[2] ?? "";
354
+ const numerator = BigInt(match[1] + fraction) * factor;
355
+ const shift = Number(match[3] ?? 0) - fraction.length;
356
+ if (shift >= 0)
357
+ return numerator * BigInt(10) ** BigInt(shift);
358
+ const scale = BigInt(10) ** BigInt(-shift);
359
+ return numerator % scale === bigint0 ? numerator / scale : undefined;
360
+ };
361
+ var fromStringUnsafe = (input) => {
362
+ const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
363
+ if (match === null)
364
+ return invalid(`unsupported syntax ${JSON.stringify(input)}`);
365
+ const unit = unitsByName.get(match[2]);
366
+ if (unit === undefined)
367
+ return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
368
+ const value = scaleDecimal(match[1], unit.factor);
369
+ if (value === undefined)
370
+ return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
371
+ return make(value);
372
+ };
373
+ var fromInputUnsafe2 = (input) => {
374
+ switch (typeof input) {
375
+ case "bigint":
376
+ if (input < bigint0)
377
+ return invalid(`expected a non-negative bigint, received ${input}`);
378
+ return make(input);
379
+ case "number":
380
+ return fromNumber(input);
381
+ case "string":
382
+ return fromStringUnsafe(input);
383
+ }
384
+ return invalid(`unsupported input ${input}`);
385
+ };
386
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
387
+
254
388
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
255
389
  var join = fiberJoin;
256
390
  var interrupt = fiberInterrupt;
@@ -803,7 +937,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
803
937
  var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
804
938
  var DIRECTORY_CONCURRENCY = 16;
805
939
  var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
806
- var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
940
+ var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
807
941
  var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
808
942
  if (compiled.initial.size === 0) {
809
943
  return [];
@@ -981,7 +1115,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
981
1115
 
982
1116
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
983
1117
  var makeUnsafe2 = makeLatchUnsafe;
984
- var make2 = makeLatch;
1118
+ var make3 = makeLatch;
985
1119
 
986
1120
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
987
1121
  var TypeId2 = "~effect/MutableRef";
@@ -995,7 +1129,7 @@ var MutableRefProto = {
995
1129
  };
996
1130
  }
997
1131
  };
998
- var make7 = (value) => {
1132
+ var make8 = (value) => {
999
1133
  const ref = Object.create(MutableRefProto);
1000
1134
  ref.current = value;
1001
1135
  return ref;
@@ -1007,7 +1141,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
1007
1141
 
1008
1142
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
1009
1143
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
1010
- var make3 = () => ({
1144
+ var make4 = () => ({
1011
1145
  head: undefined,
1012
1146
  tail: undefined,
1013
1147
  length: 0
@@ -1156,8 +1290,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1156
1290
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1157
1291
  var TypeId3 = "~effect/PubSub";
1158
1292
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1159
- var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1160
- var unbounded = (options) => make4({
1293
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1294
+ var unbounded = (options) => make5({
1161
1295
  atomicPubSub: () => makeAtomicUnbounded(options),
1162
1296
  strategy: () => new DroppingStrategy
1163
1297
  });
@@ -1251,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1251
1385
  subscribers.delete(subscription);
1252
1386
  }
1253
1387
  };
1254
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1388
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1255
1389
  class UnboundedPubSub {
1256
1390
  publisherHead = {
1257
1391
  value: AbsentValue,
@@ -1668,12 +1802,12 @@ var QueueProto = {
1668
1802
  };
1669
1803
  }
1670
1804
  };
1671
- var make8 = (options) => withFiber((fiber) => {
1805
+ var make9 = (options) => withFiber((fiber) => {
1672
1806
  const self = Object.create(QueueProto);
1673
1807
  self.dispatcher = fiber.currentDispatcher;
1674
1808
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
1675
1809
  self.strategy = options?.strategy ?? "suspend";
1676
- self.messages = make3();
1810
+ self.messages = make4();
1677
1811
  self.scheduleRunning = false;
1678
1812
  self.state = {
1679
1813
  _tag: "Open",
@@ -1683,14 +1817,14 @@ var make8 = (options) => withFiber((fiber) => {
1683
1817
  };
1684
1818
  return succeed2(self);
1685
1819
  });
1686
- var bounded = (capacity) => make8({
1820
+ var bounded = (capacity) => make9({
1687
1821
  capacity
1688
1822
  });
1689
- var sliding = (capacity) => make8({
1823
+ var sliding = (capacity) => make9({
1690
1824
  capacity,
1691
1825
  strategy: "sliding"
1692
1826
  });
1693
- var unbounded2 = () => make8();
1827
+ var unbounded2 = () => make9();
1694
1828
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1695
1829
  var offerUnsafe = (self, message) => {
1696
1830
  if (self.state._tag !== "Open") {
@@ -2116,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2116
2250
  return onError(pull, onCause);
2117
2251
  }));
2118
2252
  var toTransform = (channel) => channel.transform;
2119
- var asyncQueue = (scope, f, options) => make8({
2253
+ var asyncQueue = (scope, f, options) => make9({
2120
2254
  capacity: options?.bufferSize,
2121
2255
  strategy: options?.strategy
2122
2256
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2157,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2157
2291
  }));
2158
2292
  var readableStreamToPullUnsafe = (options) => {
2159
2293
  const reader = options.readable.getReader();
2160
- const exit = options.exit ?? make7(undefined);
2294
+ const exit = options.exit ?? make8(undefined);
2161
2295
  const pull = suspend3(() => {
2162
2296
  if (exit.current)
2163
2297
  return exit.current;
@@ -2325,7 +2459,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2325
2459
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2326
2460
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2327
2461
  const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2328
- const doneLatch = yield* make2(true);
2462
+ const doneLatch = yield* make3(true);
2329
2463
  const fibers = new Map;
2330
2464
  const queue = yield* bounded(bufferSize);
2331
2465
  yield* addFinalizer(forkedScope, shutdown(queue));
@@ -2662,7 +2796,7 @@ class RcRefImpl {
2662
2796
  this.idleTimeToLive = idleTimeToLive;
2663
2797
  }
2664
2798
  }
2665
- var make5 = (options) => withFiber2((fiber) => {
2799
+ var make6 = (options) => withFiber2((fiber) => {
2666
2800
  const context = fiber.context;
2667
2801
  const scope = get4(context, Scope);
2668
2802
  const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
@@ -2771,7 +2905,7 @@ var release = (self, state) => {
2771
2905
  };
2772
2906
 
2773
2907
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2774
- var make9 = make5;
2908
+ var make10 = make6;
2775
2909
  var get3 = get2;
2776
2910
 
2777
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2783,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
2783
2917
  var toChannel2 = (stream) => stream.channel;
2784
2918
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2785
2919
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2786
- var make10 = (...values) => fromArray2(values);
2920
+ var make11 = (...values) => fromArray2(values);
2787
2921
  var suspend = (stream) => {
2788
2922
  const suspended = fromChannel2(suspend4(() => stream().channel));
2789
2923
  suspendedStreams.set(suspended, stream);
@@ -2948,10 +3082,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
2948
3082
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2949
3083
  var TypeId10 = "~effect/FileSystem";
2950
3084
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2951
- var make11 = (impl) => FileSystem.of({
3085
+ var make12 = (impl) => FileSystem.of({
2952
3086
  ...impl,
2953
3087
  [TypeId10]: TypeId10,
2954
- glob: make(impl),
3088
+ glob: make2(impl),
2955
3089
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2956
3090
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
2957
3091
  try: () => new TextDecoder(encoding).decode(_),
@@ -3008,7 +3142,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3008
3142
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3009
3143
  var TypeId11 = "~effect/Path";
3010
3144
  var Path = /* @__PURE__ */ Service2("effect/Path");
3011
- var make12 = (impl) => Path.of({
3145
+ var make13 = (impl) => Path.of({
3012
3146
  ...impl,
3013
3147
  [TypeId11]: TypeId11,
3014
3148
  resolveWithin(root, input) {
@@ -3083,7 +3217,7 @@ function makeProvider(load, mapInput) {
3083
3217
  function makeSource(get, transform) {
3084
3218
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3085
3219
  }
3086
- function make6(get) {
3220
+ function make7(get) {
3087
3221
  return makeSource(get, identityPath);
3088
3222
  }
3089
3223
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3092,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3092
3226
  function fromEnvRecord(env, options) {
3093
3227
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3094
3228
  const trie = buildEnvTrie(env);
3095
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3229
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3096
3230
  }
3097
3231
  function fromEnv(options) {
3098
3232
  const env = options?.env ?? {
@@ -3174,7 +3308,7 @@ var Proto2 = {
3174
3308
  };
3175
3309
  }
3176
3310
  };
3177
- function make13(evaluator) {
3311
+ function make14(evaluator) {
3178
3312
  const self = Object.create(Proto2);
3179
3313
  self.evaluator = evaluator;
3180
3314
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3182,14 +3316,14 @@ function make13(evaluator) {
3182
3316
  }
3183
3317
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3184
3318
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3185
- return make13((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3319
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3186
3320
  });
3187
3321
  function all(arg) {
3188
3322
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3189
- return make13((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3323
+ return make14((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3190
3324
  }
3191
3325
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3192
- return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3326
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3193
3327
  });
3194
3328
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3195
3329
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3308,7 +3442,7 @@ function schema(codec, path) {
3308
3442
  const encodedAst = toEncoded(codecStringTree.ast);
3309
3443
  const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3310
3444
  const localPath = typeof path === "string" ? [path] : path ?? [];
3311
- return make13((provider, pathPrefix) => {
3445
+ return make14((provider, pathPrefix) => {
3312
3446
  const fullPath = [...pathPrefix, ...localPath];
3313
3447
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3314
3448
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3423,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3423
3557
  ...argv
3424
3558
  ];
3425
3559
 
3426
- export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3560
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-x3cc7dfc.js";
28
+ } from "./chunk-zw3gf6r5.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-y7vjk8vv.js";
34
+ } from "./chunk-0h49y8gf.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-9c9vrbh4.js";
39
+ } from "./chunk-shv2xs9y.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-7959aeck.js";
42
+ } from "./chunk-xsdceanv.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make15,
15
+ make16,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,7 +104,7 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-x3cc7dfc.js";
107
+ } from "./chunk-zw3gf6r5.js";
108
108
  import {
109
109
  tap,
110
110
  mapError,
@@ -116,11 +116,7 @@ import {
116
116
  withDefault,
117
117
  option,
118
118
  String2
119
- } from "./chunk-y7vjk8vv.js";
120
- import {
121
- ChildProcessSpawner,
122
- make2
123
- } from "./chunk-892qrkb3.js";
119
+ } from "./chunk-0h49y8gf.js";
124
120
  import {
125
121
  currentTimeMillis,
126
122
  SecureRandom,
@@ -168,7 +164,7 @@ import {
168
164
  digestSha256,
169
165
  sha256Hasher,
170
166
  raw,
171
- make4,
167
+ make5,
172
168
  get,
173
169
  put,
174
170
  HttpClient,
@@ -230,10 +226,14 @@ import {
230
226
  harnessNames,
231
227
  herdrRunnerCapabilities2,
232
228
  declaredChecks
233
- } from "./chunk-9c9vrbh4.js";
229
+ } from "./chunk-shv2xs9y.js";
234
230
  import {
235
231
  Id
236
- } from "./chunk-s8m2tzdr.js";
232
+ } from "./chunk-q5w3v4k1.js";
233
+ import {
234
+ ChildProcessSpawner,
235
+ make3
236
+ } from "./chunk-mtkstrh3.js";
237
237
 
238
238
  // apps/cli/src/cli-error.ts
239
239
  function cliErrorCode(error, status) {
@@ -985,10 +985,10 @@ var sandboxMissing = (sandbox, missing) => ({
985
985
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
986
986
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
987
987
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
988
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-d8qcmqh5.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
988
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-4x06mdcd.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
989
989
  });
990
990
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
991
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-d8qcmqh5.js")), (module) => module.updateHerdrCore(options))
991
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-4x06mdcd.js")), (module) => module.updateHerdrCore(options))
992
992
  });
993
993
  var herdrCoreMissing = (error) => {
994
994
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1408,7 +1408,7 @@ var syncTargets = (harness) => gen(function* () {
1408
1408
  });
1409
1409
  var syncKits = (input) => gen(function* () {
1410
1410
  const fs = yield* FileSystem;
1411
- const { syncKitSetup } = yield* promise(() => import("./chunk-mmpcdj8f.js"));
1411
+ const { syncKitSetup } = yield* promise(() => import("./chunk-vw462m91.js"));
1412
1412
  const harnesses = yield* syncTargets(input.harness);
1413
1413
  const chain = yield* input.client.getKitChain(input.workspaceId);
1414
1414
  for (const { name, problem } of chain.skipped)
@@ -1924,7 +1924,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1924
1924
  run: (command, args) => runCommand2(command, args),
1925
1925
  attach: (command, args) => gen(function* () {
1926
1926
  const spawner = yield* ChildProcessSpawner;
1927
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1927
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1928
1928
  const exitCode = yield* handle.exitCode;
1929
1929
  if (exitCode !== 0)
1930
1930
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -2326,7 +2326,7 @@ var package_default = {
2326
2326
  };
2327
2327
 
2328
2328
  // apps/cli/src/scaffold.ts
2329
- var cliVersion = "0.12.0-rc.8";
2329
+ var cliVersion = "0.12.0";
2330
2330
  var packageJson = (name, scaffold) => `${JSON.stringify({
2331
2331
  name,
2332
2332
  private: true,
@@ -2478,7 +2478,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2478
2478
 
2479
2479
  // apps/cli/src/commands.ts
2480
2480
  var ClientId = "kitman-cli";
2481
- var agentRuntime = promise(() => import("./chunk-3cgshf16.js"));
2481
+ var agentRuntime = promise(() => import("./chunk-qj6gjtdd.js"));
2482
2482
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2483
2483
  defaultValue: () => gen(function* () {
2484
2484
  const tui = yield* tryPromise({
@@ -3480,7 +3480,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3480
3480
  });
3481
3481
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3482
3482
  defaultValue: () => (options) => gen(function* () {
3483
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ey4mf341.js"));
3483
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-s6z4aqag.js"));
3484
3484
  return yield* makeRunnerRpcClient({
3485
3485
  runnerId: options.runnerId,
3486
3486
  bearer: options.bearer,
@@ -3760,7 +3760,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3760
3760
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
3761
3761
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3762
3762
  const platform = yield* context();
3763
- const updated = yield* make15();
3763
+ const updated = yield* make16();
3764
3764
  const scope = yield* scope2;
3765
3765
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3766
3766
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4012,7 +4012,7 @@ function mcpCommand(args) {
4012
4012
  if (command.action === "run") {
4013
4013
  if (command.args.length > 0)
4014
4014
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4015
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-dh09wyed.js"));
4015
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-h3em3y8r.js"));
4016
4016
  return yield* runMcpServerCommand({ flags: command.flags });
4017
4017
  }
4018
4018
  if (command.action !== "setup")
@@ -4500,7 +4500,7 @@ function programLoopCommand(command) {
4500
4500
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4501
4501
  });
4502
4502
  }
4503
- var docsModule = promise(() => import("./chunk-9q7qc1dg.js"));
4503
+ var docsModule = promise(() => import("./chunk-wh2ep6fc.js"));
4504
4504
  function docsCommand(args) {
4505
4505
  return gen(function* () {
4506
4506
  const command = parseCommand(args);
@@ -5333,9 +5333,9 @@ function changeRequestCommand(args) {
5333
5333
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5334
5334
  });
5335
5335
  }
5336
- var KitWriter = map8(promise(() => import("./chunk-6pqxsnk1.js")), (build) => build.writeKit);
5336
+ var KitWriter = map8(promise(() => import("./chunk-mjdt8wbv.js")), (build) => build.writeKit);
5337
5337
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5338
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-6pqxsnk1.js")), (build) => build.buildKit(directory))
5338
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-mjdt8wbv.js")), (build) => build.buildKit(directory))
5339
5339
  });
5340
5340
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5341
5341
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -6111,7 +6111,7 @@ function downloadPresignedAsset(download, outputPath) {
6111
6111
  return gen(function* () {
6112
6112
  const fs = yield* FileSystem;
6113
6113
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
6114
- const response = yield* send(make4(download.method)(download.url), failed);
6114
+ const response = yield* send(make5(download.method)(download.url), failed);
6115
6115
  if (response.status < 200 || response.status >= 300)
6116
6116
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
6117
6117
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-892qrkb3.js";
2
+ import"./chunk-mtkstrh3.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-9c9vrbh4.js";
16
- import"./chunk-y7vjk8vv.js";
17
- import"./chunk-x3cc7dfc.js";
15
+ } from "./chunk-shv2xs9y.js";
16
+ import"./chunk-0h49y8gf.js";
17
+ import"./chunk-zw3gf6r5.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-vkchn89k.js";
11
- import"./chunk-892qrkb3.js";
12
- import"./chunk-y7vjk8vv.js";
13
- import"./chunk-x3cc7dfc.js";
10
+ } from "./chunk-cbpb2rww.js";
11
+ import"./chunk-mtkstrh3.js";
12
+ import"./chunk-0h49y8gf.js";
13
+ import"./chunk-zw3gf6r5.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-y7vjk8vv.js";
18
- import"./chunk-x3cc7dfc.js";
17
+ } from "./chunk-0h49y8gf.js";
18
+ import"./chunk-zw3gf6r5.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-x3cc7dfc.js";
9
+ } from "./chunk-zw3gf6r5.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-y7vjk8vv.js";
12
+ } from "./chunk-0h49y8gf.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-9c9vrbh4.js";
22
+ } from "./chunk-shv2xs9y.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-jwc8bdga.js";
28
+ } from "./chunk-wyhg9cyk.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),