@kitman-sh/cli 0.10.86 → 0.10.87

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-mak28dxp.js → chunk-11pnta38.js} +18 -18
  2. package/dist/{chunk-b0qaan2c.js → chunk-193zkyhj.js} +4 -4
  3. package/dist/{chunk-ehwvgxq8.js → chunk-4s08g8x1.js} +8 -8
  4. package/dist/{chunk-zms40x1v.js → chunk-62565d52.js} +2 -2
  5. package/dist/{chunk-93vddjpx.js → chunk-76ctrqm6.js} +1 -1
  6. package/dist/{chunk-bjexx93x.js → chunk-98sg1yyd.js} +2 -2
  7. package/dist/{chunk-mr30hj39.js → chunk-9zd52pda.js} +5 -5
  8. package/dist/{chunk-6tq2m8xc.js → chunk-bk31f16e.js} +3 -3
  9. package/dist/{chunk-999xbcaa.js → chunk-e8zm8z3a.js} +6 -6
  10. package/dist/{chunk-gmt7awee.js → chunk-fhgfsets.js} +6 -6
  11. package/dist/{chunk-qnnsy306.js → chunk-fq47a5yd.js} +2 -2
  12. package/dist/{chunk-q1qrwcnw.js → chunk-gaxp5nmx.js} +8 -8
  13. package/dist/{chunk-38end526.js → chunk-h6v1w0vw.js} +20 -20
  14. package/dist/{chunk-xq4k0mgr.js → chunk-jbwk6k6m.js} +60 -60
  15. package/dist/{chunk-3wvp5n5a.js → chunk-kgdppbdr.js} +1 -1
  16. package/dist/{chunk-wtx1vq9t.js → chunk-ky974pcr.js} +4 -4
  17. package/dist/{chunk-ekkjbmr9.js → chunk-m0yvvg6r.js} +5 -5
  18. package/dist/{chunk-jfgmhb6k.js → chunk-myjfc5nh.js} +5 -5
  19. package/dist/{chunk-y1x0mb3b.js → chunk-n3prr22y.js} +17 -17
  20. package/dist/{chunk-4sz3sg95.js → chunk-rxcy9h90.js} +7 -7
  21. package/dist/{chunk-292vjjdz.js → chunk-tzz4fv17.js} +1 -1
  22. package/dist/{chunk-h8fq958v.js → chunk-w5smxtzc.js} +142 -294
  23. package/dist/{chunk-2fqry6rd.js → chunk-xb70ys3n.js} +177 -34
  24. package/dist/{chunk-wbdgjd1n.js → chunk-z7mvdzqm.js} +29 -29
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -34,8 +34,11 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- get3,
37
+ add,
38
+ get4,
38
39
  Reference,
40
+ fromInputUnsafe,
41
+ isFinite,
39
42
  normalize,
40
43
  succeed,
41
44
  fail3,
@@ -76,13 +79,12 @@ import {
76
79
  fiberRunIn,
77
80
  makeLatchUnsafe,
78
81
  makeLatch,
79
- ClockRef,
80
- currentTimeMillis2,
81
82
  succeed3,
82
83
  failCause2,
83
84
  fail4,
84
85
  interrupt2,
85
86
  void_2,
87
+ isSuccess2,
86
88
  isFailure2,
87
89
  asVoidAll,
88
90
  makeUnsafe5,
@@ -154,12 +156,14 @@ import {
154
156
  tapError2,
155
157
  ignoreCause,
156
158
  orElseSucceed,
159
+ sleep,
157
160
  raceFirst,
158
161
  when,
159
162
  matchCauseEffect,
160
163
  context,
161
164
  contextWith,
162
165
  provideContext2,
166
+ scope2,
163
167
  scoped,
164
168
  scopedWith,
165
169
  ensuring2,
@@ -169,6 +173,7 @@ import {
169
173
  interrupt3,
170
174
  onInterrupt,
171
175
  uninterruptible,
176
+ uninterruptibleMask2,
172
177
  forever,
173
178
  forkChild,
174
179
  forkIn,
@@ -190,11 +195,11 @@ import {
190
195
  toEncoded,
191
196
  decodeUnknownEffect,
192
197
  SchemaError,
193
- make16,
198
+ make17,
194
199
  String4,
195
200
  toCodecStringTree,
196
201
  encodeUnknownJsonStringSync
197
- } from "./chunk-xq4k0mgr.js";
202
+ } from "./chunk-jbwk6k6m.js";
198
203
 
199
204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
200
205
  var headUnsafe = (self) => {
@@ -243,10 +248,6 @@ var makeEquivalence = (equivalence) => {
243
248
  return (self, that) => is(self, that) && is(that, self);
244
249
  };
245
250
 
246
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
247
- var Clock = ClockRef;
248
- var currentTimeMillis = currentTimeMillis2;
249
-
250
251
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
251
252
  var bigint0 = /* @__PURE__ */ BigInt(0);
252
253
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -367,7 +368,7 @@ var fromStringUnsafe = (input) => {
367
368
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
368
369
  return make(value);
369
370
  };
370
- var fromInputUnsafe = (input) => {
371
+ var fromInputUnsafe2 = (input) => {
371
372
  switch (typeof input) {
372
373
  case "bigint":
373
374
  if (input < bigint0)
@@ -380,7 +381,7 @@ var fromInputUnsafe = (input) => {
380
381
  }
381
382
  return invalid(`unsupported input ${input}`);
382
383
  };
383
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
384
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
384
385
 
385
386
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
386
387
  var join = fiberJoin;
@@ -1306,7 +1307,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1306
1307
  return false;
1307
1308
  });
1308
1309
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1309
- const localScope = get3(services, Scope);
1310
+ const localScope = get4(services, Scope);
1310
1311
  const scope = forkUnsafe(self.scope);
1311
1312
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1312
1313
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2763,16 +2764,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2763
2764
  }), catchDone(() => endVoid)));
2764
2765
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2765
2766
 
2767
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2768
+ var TypeId8 = "~effect/RcRef";
2769
+ var stateEmpty = {
2770
+ _tag: "Empty"
2771
+ };
2772
+ var stateClosed = {
2773
+ _tag: "Closed"
2774
+ };
2775
+ var variance2 = {
2776
+ _A: identity,
2777
+ _E: identity
2778
+ };
2779
+
2780
+ class RcRefImpl {
2781
+ [TypeId8] = variance2;
2782
+ pipe() {
2783
+ return pipeArguments(this, arguments);
2784
+ }
2785
+ state = stateEmpty;
2786
+ acquire;
2787
+ context;
2788
+ scope;
2789
+ idleTimeToLive;
2790
+ constructor(acquire, context, scope, idleTimeToLive) {
2791
+ this.acquire = acquire;
2792
+ this.context = context;
2793
+ this.scope = scope;
2794
+ this.idleTimeToLive = idleTimeToLive;
2795
+ }
2796
+ }
2797
+ var make6 = (options) => withFiber2((fiber) => {
2798
+ const context = fiber.context;
2799
+ const scope = get4(context, Scope);
2800
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2801
+ return as(addFinalizerExit(scope, () => {
2802
+ const state = ref.state;
2803
+ ref.state = stateClosed;
2804
+ if (state._tag === "Acquired")
2805
+ return close(state.scope, void_2);
2806
+ if (state._tag === "Acquiring")
2807
+ return interrupt(state.fiber);
2808
+ return void_3;
2809
+ }), ref);
2810
+ });
2811
+ var getState = (self, restore) => {
2812
+ switch (self.state._tag) {
2813
+ case "Closed": {
2814
+ return interrupt3;
2815
+ }
2816
+ case "Acquired": {
2817
+ const state = self.state;
2818
+ state.refCount++;
2819
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2820
+ }
2821
+ case "Acquiring": {
2822
+ const state = self.state;
2823
+ state.awaiters++;
2824
+ return awaitAcquiring(self, state, restore);
2825
+ }
2826
+ case "Empty": {
2827
+ const acquiring = {
2828
+ _tag: "Acquiring",
2829
+ fiber: undefined,
2830
+ awaiters: 1,
2831
+ acquired: undefined
2832
+ };
2833
+ self.state = acquiring;
2834
+ const scope = makeUnsafe6();
2835
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2836
+ if (self.state !== acquiring) {
2837
+ return interrupt3;
2838
+ }
2839
+ const state = {
2840
+ _tag: "Acquired",
2841
+ value,
2842
+ scope,
2843
+ fiber: undefined,
2844
+ refCount: acquiring.awaiters,
2845
+ invalidated: false
2846
+ };
2847
+ self.state = state;
2848
+ acquiring.acquired = state;
2849
+ return succeed6(state);
2850
+ }), onExit((exit) => {
2851
+ if (isSuccess2(exit))
2852
+ return void_3;
2853
+ if (self.state === acquiring)
2854
+ self.state = stateEmpty;
2855
+ return close(scope, exit);
2856
+ }));
2857
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2858
+ return awaitAcquiring(self, acquiring, restore);
2859
+ }
2860
+ }
2861
+ };
2862
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2863
+ const acquired = acquiring.acquired;
2864
+ if (acquired !== undefined) {
2865
+ return isFailure2(exit) ? release(self, acquired) : void_3;
2866
+ }
2867
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
2868
+ return void_3;
2869
+ self.state = stateEmpty;
2870
+ return interrupt(acquiring.fiber);
2871
+ });
2872
+ var get2 = (self_) => {
2873
+ const self = self_;
2874
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2875
+ };
2876
+ var release = (self, state) => {
2877
+ state.refCount--;
2878
+ if (state.refCount > 0) {
2879
+ return void_3;
2880
+ }
2881
+ const idleTimeToLive = self.idleTimeToLive;
2882
+ if (idleTimeToLive === undefined || state.invalidated) {
2883
+ if (self.state === state) {
2884
+ self.state = stateEmpty;
2885
+ }
2886
+ return close(state.scope, void_2);
2887
+ } else if (!isFinite(idleTimeToLive)) {
2888
+ return void_3;
2889
+ }
2890
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2891
+ if (self.state === state && state.refCount === 0) {
2892
+ self.state = stateEmpty;
2893
+ return ignoreCause(close(state.scope, void_2), {
2894
+ log: "Unhandled",
2895
+ message: "Unhandled error in RcRef finalizer"
2896
+ });
2897
+ }
2898
+ return void_3;
2899
+ })).pipe(ensuring2(sync2(() => {
2900
+ state.fiber = undefined;
2901
+ })), runForkWith(self.context), runIn(self.scope));
2902
+ return void_3;
2903
+ };
2904
+
2905
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2906
+ var make10 = make6;
2907
+ var get3 = get2;
2908
+
2766
2909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2767
- var TypeId8 = "~effect/Stream";
2768
- var isStream = (u) => hasProperty(u, TypeId8);
2910
+ var TypeId9 = "~effect/Stream";
2911
+ var isStream = (u) => hasProperty(u, TypeId9);
2769
2912
  var fromChannel2 = fromChannel3;
2770
2913
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2771
2914
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2772
2915
  var toChannel2 = (stream) => stream.channel;
2773
2916
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2774
2917
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2775
- var make10 = (...values) => fromArray2(values);
2918
+ var make11 = (...values) => fromArray2(values);
2776
2919
  var suspend = (stream) => {
2777
2920
  const suspended = fromChannel2(suspend4(() => stream().channel));
2778
2921
  suspendedStreams.set(suspended, stream);
@@ -2935,11 +3078,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2935
3078
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2936
3079
 
2937
3080
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2938
- var TypeId9 = "~effect/FileSystem";
3081
+ var TypeId10 = "~effect/FileSystem";
2939
3082
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2940
- var make11 = (impl) => FileSystem.of({
3083
+ var make12 = (impl) => FileSystem.of({
2941
3084
  ...impl,
2942
- [TypeId9]: TypeId9,
3085
+ [TypeId10]: TypeId10,
2943
3086
  glob: make2(impl),
2944
3087
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2945
3088
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -2955,11 +3098,11 @@ var make11 = (impl) => FileSystem.of({
2955
3098
  const file = yield* impl.open(path, {
2956
3099
  flag: "r"
2957
3100
  });
2958
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3101
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2959
3102
  if (offset) {
2960
3103
  yield* file.seek(offset, "start");
2961
3104
  }
2962
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3105
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2963
3106
  let totalBytesRead = BigInt(0);
2964
3107
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2965
3108
  const readChunk = file.readAlloc(chunkSize);
@@ -2995,11 +3138,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
2995
3138
  }
2996
3139
 
2997
3140
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
2998
- var TypeId10 = "~effect/Path";
3141
+ var TypeId11 = "~effect/Path";
2999
3142
  var Path = /* @__PURE__ */ Service2("effect/Path");
3000
- var make12 = (impl) => Path.of({
3143
+ var make13 = (impl) => Path.of({
3001
3144
  ...impl,
3002
- [TypeId10]: TypeId10,
3145
+ [TypeId11]: TypeId11,
3003
3146
  resolveWithin(root, input) {
3004
3147
  if (impl.parse(input).root !== "")
3005
3148
  return none();
@@ -3072,7 +3215,7 @@ function makeProvider(load, mapInput) {
3072
3215
  function makeSource(get, transform) {
3073
3216
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3074
3217
  }
3075
- function make6(get) {
3218
+ function make7(get) {
3076
3219
  return makeSource(get, identityPath);
3077
3220
  }
3078
3221
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3081,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3081
3224
  function fromEnvRecord(env, options) {
3082
3225
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3083
3226
  const trie = buildEnvTrie(env);
3084
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3227
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3085
3228
  }
3086
3229
  function fromEnv(options) {
3087
3230
  const env = options?.env ?? {
@@ -3134,7 +3277,7 @@ function trieNodeAt(root, path) {
3134
3277
  }
3135
3278
 
3136
3279
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3137
- var TypeId11 = "~effect/Config";
3280
+ var TypeId12 = "~effect/Config";
3138
3281
  class ConfigError {
3139
3282
  _tag = "ConfigError";
3140
3283
  name = "ConfigError";
@@ -3156,14 +3299,14 @@ var Proto2 = {
3156
3299
  return this.parse(fiber.getRef(ConfigProvider));
3157
3300
  }
3158
3301
  }),
3159
- [TypeId11]: TypeId11,
3302
+ [TypeId12]: TypeId12,
3160
3303
  toJSON() {
3161
3304
  return {
3162
3305
  _id: "Config"
3163
3306
  };
3164
3307
  }
3165
3308
  };
3166
- function make7(evaluator) {
3309
+ function make14(evaluator) {
3167
3310
  const self = Object.create(Proto2);
3168
3311
  self.evaluator = evaluator;
3169
3312
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3171,14 +3314,14 @@ function make7(evaluator) {
3171
3314
  }
3172
3315
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3173
3316
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3174
- return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3317
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3175
3318
  });
3176
3319
  function all(arg) {
3177
3320
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3178
- return make7((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));
3321
+ 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));
3179
3322
  }
3180
3323
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3181
- return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3324
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3182
3325
  });
3183
3326
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3184
3327
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3295,9 +3438,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3295
3438
  function schema(codec, path) {
3296
3439
  const codecStringTree = toCodecStringTree(codec);
3297
3440
  const encodedAst = toEncoded(codecStringTree.ast);
3298
- const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3441
+ const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3299
3442
  const localPath = typeof path === "string" ? [path] : path ?? [];
3300
- return make7((provider, pathPrefix) => {
3443
+ return make14((provider, pathPrefix) => {
3301
3444
  const fullPath = [...pathPrefix, ...localPath];
3302
3445
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3303
3446
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3409,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3409
3552
  ...argv
3410
3553
  ];
3411
3554
 
3412
- export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, runIn, 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, 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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3555
+ 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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -6,7 +6,7 @@ import {
6
6
  getOrUndefined,
7
7
  Reference,
8
8
  TaggedError,
9
- make15,
9
+ make16,
10
10
  _await,
11
11
  fail5,
12
12
  succeed5,
@@ -85,8 +85,21 @@ import {
85
85
  decodeJsonString,
86
86
  encodeJsonStringSync,
87
87
  encodePrettyJsonString
88
- } from "./chunk-xq4k0mgr.js";
88
+ } from "./chunk-jbwk6k6m.js";
89
89
  import {
90
+ tap,
91
+ mapError,
92
+ decodeText,
93
+ run,
94
+ mkString,
95
+ FileSystem,
96
+ Path,
97
+ withDefault,
98
+ option,
99
+ String2
100
+ } from "./chunk-xb70ys3n.js";
101
+ import {
102
+ currentTimeMillis,
90
103
  SecureRandom,
91
104
  layerWebCrypto,
92
105
  runMain,
@@ -184,10 +197,10 @@ import {
184
197
  harnessNames,
185
198
  herdrRunnerCapabilities2,
186
199
  declaredChecks
187
- } from "./chunk-h8fq958v.js";
200
+ } from "./chunk-w5smxtzc.js";
188
201
  import {
189
202
  Id
190
- } from "./chunk-3wvp5n5a.js";
203
+ } from "./chunk-kgdppbdr.js";
191
204
  import {
192
205
  toJsonValue,
193
206
  isOneOf,
@@ -197,24 +210,11 @@ import {
197
210
  isObject,
198
211
  isJsonObject,
199
212
  isString
200
- } from "./chunk-292vjjdz.js";
201
- import {
202
- currentTimeMillis,
203
- tap,
204
- mapError,
205
- decodeText,
206
- run,
207
- mkString,
208
- FileSystem,
209
- Path,
210
- withDefault,
211
- option,
212
- String2
213
- } from "./chunk-2fqry6rd.js";
213
+ } from "./chunk-tzz4fv17.js";
214
214
  import {
215
215
  ChildProcessSpawner,
216
216
  make3
217
- } from "./chunk-bjexx93x.js";
217
+ } from "./chunk-98sg1yyd.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
504
504
  var checkRegistryImageSetting = pinnedImage;
505
505
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
506
506
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
507
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-b0qaan2c.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-193zkyhj.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
508
508
  });
509
509
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-b0qaan2c.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-193zkyhj.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
733
733
  });
734
734
  var syncKits = (input) => gen(function* () {
735
735
  const fs = yield* FileSystem;
736
- const { syncKitSetup } = yield* promise(() => import("./chunk-ehwvgxq8.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-4s08g8x1.js"));
737
737
  const harnesses = yield* syncTargets(input.harness);
738
738
  const chain = yield* input.client.getKitChain(input.workspaceId);
739
739
  for (const { name, problem } of chain.skipped)
@@ -1651,7 +1651,7 @@ var package_default = {
1651
1651
  };
1652
1652
 
1653
1653
  // apps/cli/src/scaffold.ts
1654
- var cliVersion = "0.10.86";
1654
+ var cliVersion = "0.10.87";
1655
1655
  var packageJson = (name, scaffold) => `${JSON.stringify({
1656
1656
  name,
1657
1657
  private: true,
@@ -1901,7 +1901,7 @@ var Usage = [
1901
1901
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1902
1902
  ].join(`
1903
1903
  `);
1904
- var agentRuntime = promise(() => import("./chunk-38end526.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-h6v1w0vw.js"));
1905
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1906
1906
  defaultValue: () => gen(function* () {
1907
1907
  const tui = yield* tryPromise({
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2777
2777
  });
2778
2778
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2779
2779
  defaultValue: () => (options) => gen(function* () {
2780
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-4sz3sg95.js"));
2780
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-rxcy9h90.js"));
2781
2781
  return yield* makeRunnerRpcClient({
2782
2782
  runnerId: options.runnerId,
2783
2783
  bearer: options.bearer,
@@ -2972,7 +2972,7 @@ function startCanonicalHerdrRunnerCommand(input) {
2972
2972
  });
2973
2973
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
2974
2974
  const platform = yield* context();
2975
- const updated = yield* make15();
2975
+ const updated = yield* make16();
2976
2976
  const scope = yield* scope2;
2977
2977
  yield* listenForSignals({
2978
2978
  rpc,
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
3161
3161
  if (command.action === "run") {
3162
3162
  if (command.args.length > 0)
3163
3163
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3164
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-q1qrwcnw.js"));
3164
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-gaxp5nmx.js"));
3165
3165
  return yield* runMcpServerCommand({ flags: command.flags });
3166
3166
  }
3167
3167
  if (command.action !== "setup")
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
4372
4372
  }
4373
4373
  });
4374
4374
  }
4375
- var KitWriter = map8(promise(() => import("./chunk-y1x0mb3b.js")), (build) => build.writeKit);
4375
+ var KitWriter = map8(promise(() => import("./chunk-n3prr22y.js")), (build) => build.writeKit);
4376
4376
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4377
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-y1x0mb3b.js")), (build) => build.buildKit(directory))
4377
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-n3prr22y.js")), (build) => build.buildKit(directory))
4378
4378
  });
4379
4379
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4380
4380
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-qnnsy306.js");
8
+ const { runSrtCli } = await import("./chunk-fq47a5yd.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-wtx1vq9t.js");
11
+ const { runSrtStep } = await import("./chunk-ky974pcr.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-mr30hj39.js");
14
+ const { runOpencodeReader } = await import("./chunk-9zd52pda.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-wbdgjd1n.js");
17
+ const { runCli } = await import("./chunk-z7mvdzqm.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.10.86",
3
+ "version": "0.10.87",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {