@kitman-sh/cli 0.14.8 → 0.14.9

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-6dj39qtt.js → chunk-0x5r7h2g.js} +23 -23
  2. package/dist/{chunk-79g5zh2p.js → chunk-2r4jy82z.js} +2 -2
  3. package/dist/{chunk-hrtr5wfq.js → chunk-3hdjd2c3.js} +50 -24
  4. package/dist/{chunk-721qyd1a.js → chunk-6qygqj10.js} +6 -6
  5. package/dist/{chunk-ctpgfdzf.js → chunk-93xj74qp.js} +3 -3
  6. package/dist/{chunk-63m3r0k4.js → chunk-axr8avvs.js} +4 -4
  7. package/dist/{chunk-5wrhj4cj.js → chunk-b2yy07ag.js} +4 -4
  8. package/dist/{chunk-bdd62njv.js → chunk-bmwf2ea5.js} +177 -34
  9. package/dist/{chunk-9avbsbvk.js → chunk-c80dvhxf.js} +6 -1
  10. package/dist/{chunk-drp4zdwq.js → chunk-cpss81fx.js} +6 -6
  11. package/dist/{chunk-y0y2gg8d.js → chunk-cwdrhsvk.js} +2 -2
  12. package/dist/{chunk-cf723a2y.js → chunk-czmbgsqr.js} +25 -4
  13. package/dist/{chunk-xfs1nf75.js → chunk-dd7wknyk.js} +132 -281
  14. package/dist/{chunk-hz4t408c.js → chunk-e3c15bgw.js} +4 -4
  15. package/dist/{chunk-6x43ntsx.js → chunk-enmtmq63.js} +1 -1
  16. package/dist/{chunk-dq21ab8w.js → chunk-ftre6ndb.js} +18 -18
  17. package/dist/{chunk-q0x3c0dh.js → chunk-h7qv6nzc.js} +3 -3
  18. package/dist/{chunk-wszvkzg8.js → chunk-jsb61dsk.js} +30 -30
  19. package/dist/{chunk-b009hdm0.js → chunk-mgjer6c7.js} +5 -5
  20. package/dist/{chunk-bpx2zjh7.js → chunk-qb9jft1r.js} +2 -2
  21. package/dist/{chunk-1rwaetnm.js → chunk-qvyqfm54.js} +9 -9
  22. package/dist/{chunk-ya4z1n5p.js → chunk-vjt0d9zj.js} +7 -7
  23. package/dist/{chunk-bbf0jzsc.js → chunk-vt8aqeby.js} +1 -1
  24. package/dist/{chunk-zpp4jg4a.js → chunk-wttgq85b.js} +60 -60
  25. package/dist/{chunk-eytzmdna.js → chunk-y9x0yv20.js} +28 -28
  26. package/dist/index.js +4 -4
  27. 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
  acquireRelease,
@@ -170,6 +174,7 @@ import {
170
174
  interrupt3,
171
175
  onInterrupt,
172
176
  uninterruptible,
177
+ uninterruptibleMask2,
173
178
  forever,
174
179
  forkChild,
175
180
  forkIn,
@@ -192,11 +197,11 @@ import {
192
197
  toEncoded,
193
198
  decodeUnknownEffect,
194
199
  SchemaError,
195
- make16,
200
+ make17,
196
201
  String4,
197
202
  toCodecStringTree,
198
203
  encodeUnknownJsonStringSync
199
- } from "./chunk-zpp4jg4a.js";
204
+ } from "./chunk-wttgq85b.js";
200
205
 
201
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
202
207
  var headUnsafe = (self) => {
@@ -245,10 +250,6 @@ var makeEquivalence = (equivalence) => {
245
250
  return (self, that) => is(self, that) && is(that, self);
246
251
  };
247
252
 
248
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
249
- var Clock = ClockRef;
250
- var currentTimeMillis = currentTimeMillis2;
251
-
252
253
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
253
254
  var bigint0 = /* @__PURE__ */ BigInt(0);
254
255
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -369,7 +370,7 @@ var fromStringUnsafe = (input) => {
369
370
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
370
371
  return make(value);
371
372
  };
372
- var fromInputUnsafe = (input) => {
373
+ var fromInputUnsafe2 = (input) => {
373
374
  switch (typeof input) {
374
375
  case "bigint":
375
376
  if (input < bigint0)
@@ -382,7 +383,7 @@ var fromInputUnsafe = (input) => {
382
383
  }
383
384
  return invalid(`unsupported input ${input}`);
384
385
  };
385
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
386
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
386
387
 
387
388
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
388
389
  var join = fiberJoin;
@@ -1308,7 +1309,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1308
1309
  return false;
1309
1310
  });
1310
1311
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1311
- const localScope = get3(services, Scope);
1312
+ const localScope = get4(services, Scope);
1312
1313
  const scope = forkUnsafe(self.scope);
1313
1314
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1314
1315
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2765,16 +2766,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2765
2766
  }), catchDone(() => endVoid)));
2766
2767
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2767
2768
 
2769
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2770
+ var TypeId8 = "~effect/RcRef";
2771
+ var stateEmpty = {
2772
+ _tag: "Empty"
2773
+ };
2774
+ var stateClosed = {
2775
+ _tag: "Closed"
2776
+ };
2777
+ var variance2 = {
2778
+ _A: identity,
2779
+ _E: identity
2780
+ };
2781
+
2782
+ class RcRefImpl {
2783
+ [TypeId8] = variance2;
2784
+ pipe() {
2785
+ return pipeArguments(this, arguments);
2786
+ }
2787
+ state = stateEmpty;
2788
+ acquire;
2789
+ context;
2790
+ scope;
2791
+ idleTimeToLive;
2792
+ constructor(acquire, context, scope, idleTimeToLive) {
2793
+ this.acquire = acquire;
2794
+ this.context = context;
2795
+ this.scope = scope;
2796
+ this.idleTimeToLive = idleTimeToLive;
2797
+ }
2798
+ }
2799
+ var make6 = (options) => withFiber2((fiber) => {
2800
+ const context = fiber.context;
2801
+ const scope = get4(context, Scope);
2802
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2803
+ return as(addFinalizerExit(scope, () => {
2804
+ const state = ref.state;
2805
+ ref.state = stateClosed;
2806
+ if (state._tag === "Acquired")
2807
+ return close(state.scope, void_2);
2808
+ if (state._tag === "Acquiring")
2809
+ return interrupt(state.fiber);
2810
+ return void_3;
2811
+ }), ref);
2812
+ });
2813
+ var getState = (self, restore) => {
2814
+ switch (self.state._tag) {
2815
+ case "Closed": {
2816
+ return interrupt3;
2817
+ }
2818
+ case "Acquired": {
2819
+ const state = self.state;
2820
+ state.refCount++;
2821
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2822
+ }
2823
+ case "Acquiring": {
2824
+ const state = self.state;
2825
+ state.awaiters++;
2826
+ return awaitAcquiring(self, state, restore);
2827
+ }
2828
+ case "Empty": {
2829
+ const acquiring = {
2830
+ _tag: "Acquiring",
2831
+ fiber: undefined,
2832
+ awaiters: 1,
2833
+ acquired: undefined
2834
+ };
2835
+ self.state = acquiring;
2836
+ const scope = makeUnsafe6();
2837
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2838
+ if (self.state !== acquiring) {
2839
+ return interrupt3;
2840
+ }
2841
+ const state = {
2842
+ _tag: "Acquired",
2843
+ value,
2844
+ scope,
2845
+ fiber: undefined,
2846
+ refCount: acquiring.awaiters,
2847
+ invalidated: false
2848
+ };
2849
+ self.state = state;
2850
+ acquiring.acquired = state;
2851
+ return succeed6(state);
2852
+ }), onExit((exit) => {
2853
+ if (isSuccess2(exit))
2854
+ return void_3;
2855
+ if (self.state === acquiring)
2856
+ self.state = stateEmpty;
2857
+ return close(scope, exit);
2858
+ }));
2859
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2860
+ return awaitAcquiring(self, acquiring, restore);
2861
+ }
2862
+ }
2863
+ };
2864
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2865
+ const acquired = acquiring.acquired;
2866
+ if (acquired !== undefined) {
2867
+ return isFailure2(exit) ? release(self, acquired) : void_3;
2868
+ }
2869
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
2870
+ return void_3;
2871
+ self.state = stateEmpty;
2872
+ return interrupt(acquiring.fiber);
2873
+ });
2874
+ var get2 = (self_) => {
2875
+ const self = self_;
2876
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2877
+ };
2878
+ var release = (self, state) => {
2879
+ state.refCount--;
2880
+ if (state.refCount > 0) {
2881
+ return void_3;
2882
+ }
2883
+ const idleTimeToLive = self.idleTimeToLive;
2884
+ if (idleTimeToLive === undefined || state.invalidated) {
2885
+ if (self.state === state) {
2886
+ self.state = stateEmpty;
2887
+ }
2888
+ return close(state.scope, void_2);
2889
+ } else if (!isFinite(idleTimeToLive)) {
2890
+ return void_3;
2891
+ }
2892
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2893
+ if (self.state === state && state.refCount === 0) {
2894
+ self.state = stateEmpty;
2895
+ return ignoreCause(close(state.scope, void_2), {
2896
+ log: "Unhandled",
2897
+ message: "Unhandled error in RcRef finalizer"
2898
+ });
2899
+ }
2900
+ return void_3;
2901
+ })).pipe(ensuring2(sync2(() => {
2902
+ state.fiber = undefined;
2903
+ })), runForkWith(self.context), runIn(self.scope));
2904
+ return void_3;
2905
+ };
2906
+
2907
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2908
+ var make10 = make6;
2909
+ var get3 = get2;
2910
+
2768
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2769
- var TypeId8 = "~effect/Stream";
2770
- var isStream = (u) => hasProperty(u, TypeId8);
2912
+ var TypeId9 = "~effect/Stream";
2913
+ var isStream = (u) => hasProperty(u, TypeId9);
2771
2914
  var fromChannel2 = fromChannel3;
2772
2915
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2773
2916
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2774
2917
  var toChannel2 = (stream) => stream.channel;
2775
2918
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2776
2919
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2777
- var make10 = (...values) => fromArray2(values);
2920
+ var make11 = (...values) => fromArray2(values);
2778
2921
  var suspend = (stream) => {
2779
2922
  const suspended = fromChannel2(suspend4(() => stream().channel));
2780
2923
  suspendedStreams.set(suspended, stream);
@@ -2955,11 +3098,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2955
3098
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2956
3099
 
2957
3100
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2958
- var TypeId9 = "~effect/FileSystem";
3101
+ var TypeId10 = "~effect/FileSystem";
2959
3102
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2960
- var make11 = (impl) => FileSystem.of({
3103
+ var make12 = (impl) => FileSystem.of({
2961
3104
  ...impl,
2962
- [TypeId9]: TypeId9,
3105
+ [TypeId10]: TypeId10,
2963
3106
  glob: make2(impl),
2964
3107
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2965
3108
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -2975,11 +3118,11 @@ var make11 = (impl) => FileSystem.of({
2975
3118
  const file = yield* impl.open(path, {
2976
3119
  flag: "r"
2977
3120
  });
2978
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3121
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2979
3122
  if (offset) {
2980
3123
  yield* file.seek(offset, "start");
2981
3124
  }
2982
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3125
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2983
3126
  let totalBytesRead = BigInt(0);
2984
3127
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2985
3128
  const readChunk = file.readAlloc(chunkSize);
@@ -3015,11 +3158,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3015
3158
  }
3016
3159
 
3017
3160
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3018
- var TypeId10 = "~effect/Path";
3161
+ var TypeId11 = "~effect/Path";
3019
3162
  var Path = /* @__PURE__ */ Service2("effect/Path");
3020
- var make12 = (impl) => Path.of({
3163
+ var make13 = (impl) => Path.of({
3021
3164
  ...impl,
3022
- [TypeId10]: TypeId10,
3165
+ [TypeId11]: TypeId11,
3023
3166
  resolveWithin(root, input) {
3024
3167
  if (impl.parse(input).root !== "")
3025
3168
  return none();
@@ -3092,7 +3235,7 @@ function makeProvider(load, mapInput) {
3092
3235
  function makeSource(get, transform) {
3093
3236
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3094
3237
  }
3095
- function make6(get) {
3238
+ function make7(get) {
3096
3239
  return makeSource(get, identityPath);
3097
3240
  }
3098
3241
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3101,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3101
3244
  function fromEnvRecord(env, options) {
3102
3245
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3103
3246
  const trie = buildEnvTrie(env);
3104
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3247
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3105
3248
  }
3106
3249
  function fromEnv(options) {
3107
3250
  const env = options?.env ?? {
@@ -3154,7 +3297,7 @@ function trieNodeAt(root, path) {
3154
3297
  }
3155
3298
 
3156
3299
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3157
- var TypeId11 = "~effect/Config";
3300
+ var TypeId12 = "~effect/Config";
3158
3301
  class ConfigError {
3159
3302
  _tag = "ConfigError";
3160
3303
  name = "ConfigError";
@@ -3176,14 +3319,14 @@ var Proto2 = {
3176
3319
  return this.parse(fiber.getRef(ConfigProvider));
3177
3320
  }
3178
3321
  }),
3179
- [TypeId11]: TypeId11,
3322
+ [TypeId12]: TypeId12,
3180
3323
  toJSON() {
3181
3324
  return {
3182
3325
  _id: "Config"
3183
3326
  };
3184
3327
  }
3185
3328
  };
3186
- function make7(evaluator) {
3329
+ function make14(evaluator) {
3187
3330
  const self = Object.create(Proto2);
3188
3331
  self.evaluator = evaluator;
3189
3332
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3191,14 +3334,14 @@ function make7(evaluator) {
3191
3334
  }
3192
3335
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3193
3336
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3194
- return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3337
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3195
3338
  });
3196
3339
  function all(arg) {
3197
3340
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3198
- 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));
3341
+ 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));
3199
3342
  }
3200
3343
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3201
- return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3344
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3202
3345
  });
3203
3346
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3204
3347
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3315,9 +3458,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3315
3458
  function schema(codec, path) {
3316
3459
  const codecStringTree = toCodecStringTree(codec);
3317
3460
  const encodedAst = toEncoded(codecStringTree.ast);
3318
- const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3461
+ const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3319
3462
  const localPath = typeof path === "string" ? [path] : path ?? [];
3320
- return make7((provider, pathPrefix) => {
3463
+ return make14((provider, pathPrefix) => {
3321
3464
  const fullPath = [...pathPrefix, ...localPath];
3322
3465
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3323
3466
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3433,4 +3576,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3433
3576
  ...argv
3434
3577
  ];
3435
3578
 
3436
- 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, take2, 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, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3579
+ 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, take2, 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, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -18,7 +18,12 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zpp4jg4a.js";
21
+ } from "./chunk-wttgq85b.js";
22
+
23
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
+ var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
25
+ var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
26
+ var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
22
27
 
23
28
  // packages/core/src/schema.ts
24
29
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -6,7 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zpp4jg4a.js";
9
+ } from "./chunk-wttgq85b.js";
10
+ import {
11
+ runForEach
12
+ } from "./chunk-bmwf2ea5.js";
10
13
  import {
11
14
  WebSocketConstructor,
12
15
  layerWebSocketConstructorGlobal,
@@ -16,16 +19,13 @@ import {
16
19
  RunnerReplicaRpcs,
17
20
  RunnerRunFileRpcs,
18
21
  ProgramRpcs
19
- } from "./chunk-xfs1nf75.js";
20
- import {
21
- runForEach
22
- } from "./chunk-bdd62njv.js";
22
+ } from "./chunk-dd7wknyk.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-dq21ab8w.js";
28
+ } from "./chunk-ftre6ndb.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zpp4jg4a.js";
16
+ } from "./chunk-wttgq85b.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-9avbsbvk.js";
20
+ } from "./chunk-c80dvhxf.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -475,7 +475,7 @@ A Team's Tasks and Runs get the Kits of its Owner chain, nearest first: the Team
475
475
  path: "kits#release-channel",
476
476
  level: 3,
477
477
  link: "https://kitman.sh/knowledge/docs/kits#release-channel",
478
- text: "### Release channel\n\nAn unpinned npm install follows its Workspace's release channel, the one its Runners follow:\n\n- `stable`, the default: npm's `latest` dist-tag.\n- `next`: the newer of npm's `next` and `latest` dist-tags, so a release candidate published under `next` reaches the install, and a stable release newer than it reaches it too.\n\nA pinned version always wins on either channel. Moving back from `next` to `stable` never downgrades an install: one on a version `next` brought stays on it until npm's `latest` names a newer release. Otherwise a `stable` install follows `latest` wherever it points, back to an older release too when the publisher retags it. A Workspace admin sets the channel in Settings \u2192 General \u2192 Release channel, or with `kitman workspace channel stable|next`.\n\nIn the web, Knowledge lists a Team's Kits from its Owner chain, and Settings \u2192 Kits shows each deployed Kit's versions, the records it owns and edits made since."
478
+ text: "### Release channel\n\nAn unpinned npm install follows its Workspace's release channel, the one its Runners follow:\n\n- `stable`, the default: npm's `latest` dist-tag.\n- `next`: the newer of npm's `next` and `latest` dist-tags, so a release candidate published under `next` reaches the install, and a stable release newer than it reaches it too.\n\nA pinned version always wins on either channel. Moving back from `next` to `stable` never downgrades an install: one on a version `next` brought stays on it until npm's `latest` names a newer release. Otherwise a `stable` install follows `latest` wherever it points, back to an older release too when the publisher retags it. A Workspace admin sets the channel in Settings \u2192 General \u2192 Release channel, or with `kitman workspace channel stable|next`.\n\nIn the web, Settings \u2192 Kits lists a Team's Kits and shows each deployed Kit's versions, the records it owns and edits made since."
479
479
  },
480
480
  {
481
481
  title: "Kits Guide \u203A The Marketplace",
@@ -1286,9 +1286,17 @@ export type LoopDefinition<In, Out, E> = {
1286
1286
  readonly title: string
1287
1287
  /** Semver, shown under the title: bump major for a changed input, output or behaviour people rely on. */
1288
1288
  readonly version?: string
1289
+ /** What the Loop does, in one line of at most 160 characters, shown where a person picks a Loop. */
1290
+ readonly description?: string
1289
1291
  readonly input: LoopSchema<In>
1290
1292
  readonly output: LoopSchema<Out>
1291
1293
  readonly outcome?: LoopOutcome
1294
+ /**
1295
+ * The role it plays, whose powers the control plane gives any Loop that declares it: \`review\` approves a
1296
+ * ChangeRequest's head, is reused and covers a fix, as Kitman's Review does. Its Input and Output carry the role's
1297
+ * fields, \`ReviewRoleInput\` and \`ReviewRoleOutput\`.
1298
+ */
1299
+ readonly role?: LoopRole
1292
1300
  /** Agent ids by role; \`agentWork\` names a role. */
1293
1301
  readonly agents: { readonly [role: string]: string }
1294
1302
  readonly checkout: LoopCheckout
@@ -1404,13 +1412,26 @@ export const loopManifest = <In, Out, E>(
1404
1412
  message: \`version "\${String(definition.version)}" is not semver, such as 2.0.0\`
1405
1413
  })
1406
1414
 
1415
+ if (definition.description !== undefined && !Schema.is(LoopDescription)(definition.description))
1416
+ return yield* new ManifestInvalid({
1417
+ loop: definition.id,
1418
+ message: 'description must be one line of 1 to 160 characters'
1419
+ })
1420
+
1421
+ const input = yield* jsonSchemaOf(definition.id, definition.input)
1422
+ const output = yield* jsonSchemaOf(definition.id, definition.output)
1423
+
1424
+ if (definition.role !== undefined) yield* carriesRole(definition.id, definition.role, { input, output })
1425
+
1407
1426
  return {
1408
1427
  id: definition.id,
1409
1428
  title: definition.title,
1410
1429
  ...(definition.version === undefined ? undefined : { version: definition.version }),
1411
- input: yield* jsonSchemaOf(definition.id, definition.input),
1412
- output: yield* jsonSchemaOf(definition.id, definition.output),
1430
+ ...(definition.description === undefined ? undefined : { description: definition.description }),
1431
+ input,
1432
+ output,
1413
1433
  ...(definition.outcome === undefined ? undefined : { outcome: definition.outcome }),
1434
+ ...(definition.role === undefined ? undefined : { role: definition.role }),
1414
1435
  agents: definition.agents,
1415
1436
  checkout: definition.checkout,
1416
1437
  when: definition.when ?? [],
@@ -1557,7 +1578,7 @@ var pathOfLink = (link) => {
1557
1578
  return page === null ? link : page[1] || "index";
1558
1579
  };
1559
1580
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1560
- var pinnedLink2 = (link, version = "0.14.8") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1581
+ var pinnedLink2 = (link, version = "0.14.9") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1561
1582
  var pageOf = (path) => path.split("#")[0];
1562
1583
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1563
1584
  function excerpt(text, queryTerms) {