@kitman-sh/cli 0.10.98 → 0.10.99

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-g1xmj2nb.js → chunk-0a10kdrd.js} +4 -4
  2. package/dist/{chunk-aba9zdpb.js → chunk-0hjtwtms.js} +59 -34
  3. package/dist/{chunk-7c3pgktm.js → chunk-0tsc91qr.js} +8 -8
  4. package/dist/{chunk-sy8d7bfa.js → chunk-2fs34341.js} +111 -105
  5. package/dist/{chunk-797w5qe6.js → chunk-3ka78n56.js} +7 -7
  6. package/dist/{chunk-p83y21hp.js → chunk-3r7ahnwy.js} +4 -4
  7. package/dist/{chunk-6dc0x5cg.js → chunk-3v70x040.js} +8 -8
  8. package/dist/{chunk-fd39ch4n.js → chunk-4sswz0mn.js} +8 -8
  9. package/dist/{chunk-95mkdtzk.js → chunk-56e202xk.js} +6 -6
  10. package/dist/{chunk-j8vq6sk1.js → chunk-6vmpa1nw.js} +19 -19
  11. package/dist/{chunk-7ya2q09c.js → chunk-a244myqw.js} +1 -1
  12. package/dist/{chunk-gfqm22x7.js → chunk-abf4m4b2.js} +5 -5
  13. package/dist/{chunk-07p2dcq3.js → chunk-ampzxrqe.js} +94 -333
  14. package/dist/{chunk-d1sqb8rt.js → chunk-bk3dpjxq.js} +1 -1
  15. package/dist/{chunk-qrxkpwzy.js → chunk-et6qa95h.js} +1 -1
  16. package/dist/{chunk-cgjyv52e.js → chunk-fv6kgtze.js} +2 -2
  17. package/dist/{chunk-xwhybbj2.js → chunk-g3r5xp0t.js} +2 -2
  18. package/dist/{chunk-3bjekzn7.js → chunk-k0shg2fb.js} +485 -333
  19. package/dist/{chunk-nym2zmz3.js → chunk-rdv42ygn.js} +4 -4
  20. package/dist/{chunk-bqg9gy2e.js → chunk-rp224rm4.js} +7 -7
  21. package/dist/{chunk-s90hj0mb.js → chunk-rrj434w6.js} +361 -133
  22. package/dist/{chunk-n8c1wh6t.js → chunk-t7ncjd6s.js} +6 -6
  23. package/dist/{chunk-s5p94z8x.js → chunk-vjcn82g3.js} +214 -65
  24. package/dist/{chunk-c6h3fhtb.js → chunk-z2f9enrp.js} +24 -24
  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,
@@ -81,14 +84,15 @@ import {
81
84
  fail4,
82
85
  interrupt2,
83
86
  void_2,
87
+ isSuccess2,
84
88
  isFailure2,
85
89
  asVoidAll,
86
- makeUnsafe4,
90
+ makeUnsafe5,
87
91
  _await,
88
92
  interruptWith,
89
93
  doneUnsafe,
90
94
  Scope,
91
- makeUnsafe5,
95
+ makeUnsafe6,
92
96
  provide,
93
97
  addFinalizerExit,
94
98
  addFinalizer,
@@ -137,7 +141,7 @@ import {
137
141
  tap2,
138
142
  option2,
139
143
  exit,
140
- map7,
144
+ map8,
141
145
  as,
142
146
  asSome2,
143
147
  asVoid,
@@ -152,12 +156,14 @@ import {
152
156
  tapError2,
153
157
  ignoreCause,
154
158
  orElseSucceed,
159
+ sleep,
155
160
  raceFirst,
156
161
  when,
157
162
  matchCauseEffect,
158
163
  context,
159
164
  contextWith,
160
165
  provideContext2,
166
+ scope2,
161
167
  scoped,
162
168
  scopedWith,
163
169
  ensuring2,
@@ -167,6 +173,7 @@ import {
167
173
  interrupt3,
168
174
  onInterrupt,
169
175
  uninterruptible,
176
+ uninterruptibleMask2,
170
177
  forever,
171
178
  forkChild,
172
179
  forkIn,
@@ -192,7 +199,7 @@ import {
192
199
  String4,
193
200
  toCodecStringTree,
194
201
  encodeUnknownJsonStringSync
195
- } from "./chunk-07p2dcq3.js";
202
+ } from "./chunk-ampzxrqe.js";
196
203
 
197
204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
198
205
  var headUnsafe = (self) => {
@@ -361,7 +368,7 @@ var fromStringUnsafe = (input) => {
361
368
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
362
369
  return make(value);
363
370
  };
364
- var fromInputUnsafe = (input) => {
371
+ var fromInputUnsafe2 = (input) => {
365
372
  switch (typeof input) {
366
373
  case "bigint":
367
374
  if (input < bigint0)
@@ -374,7 +381,7 @@ var fromInputUnsafe = (input) => {
374
381
  }
375
382
  return invalid(`unsupported input ${input}`);
376
383
  };
377
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
384
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
378
385
 
379
386
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
380
387
  var join = fiberJoin;
@@ -940,7 +947,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
940
947
  const isUnlisted = (value) => value === "." || value === ".." || isRoot(value);
941
948
  const probe = (parent, name, named) => {
942
949
  const path = toFsPath(join2(parent, name));
943
- return fs.stat(path).pipe(map7((info) => info.type), catchReason("PlatformError", "NotFound", () => fs.readLink(path).pipe(as("SymbolicLink"), catchIf(isNotLink, () => succeed6(undefined)))), catchIf(named ? isMissing : isIgnorable, () => succeed6(undefined)), map7((type) => type === undefined ? undefined : {
950
+ return fs.stat(path).pipe(map8((info) => info.type), catchReason("PlatformError", "NotFound", () => fs.readLink(path).pipe(as("SymbolicLink"), catchIf(isNotLink, () => succeed6(undefined)))), catchIf(named ? isMissing : isIgnorable, () => succeed6(undefined)), map8((type) => type === undefined ? undefined : {
944
951
  name,
945
952
  type
946
953
  }));
@@ -995,7 +1002,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
995
1002
  return child(type === "Directory", false);
996
1003
  }
997
1004
  const path = toFsPath(relative);
998
- return fs.stat(path).pipe(map7((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
1005
+ return fs.stat(path).pipe(map8((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
999
1006
  const resolved = child(isDirectory, type === "SymbolicLink");
1000
1007
  if (type === "SymbolicLink" || resolved?.next === undefined || result.globstar.size === 0) {
1001
1008
  return succeed6(resolved);
@@ -1005,7 +1012,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
1005
1012
  };
1006
1013
  let slots = DIRECTORY_CONCURRENCY;
1007
1014
  let finishing = false;
1008
- const failed = makeUnsafe4();
1015
+ const failed = makeUnsafe5();
1009
1016
  const fork = (walk) => walk.pipe(onError((cause) => sync2(() => {
1010
1017
  if (!finishing) {
1011
1018
  doneUnsafe(failed, failCause3(cause));
@@ -1021,7 +1028,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
1021
1028
  const child = visit(entry, relative, states, excluded);
1022
1029
  if (isEffect(child)) {
1023
1030
  const index = children.push(undefined) - 1;
1024
- pending.push(map7(child, (child) => {
1031
+ pending.push(map8(child, (child) => {
1025
1032
  children[index] = child;
1026
1033
  }));
1027
1034
  } else {
@@ -1105,7 +1112,7 @@ var systemError = (options) => new PlatformError(new SystemError(options));
1105
1112
  var badArgument = (options) => new PlatformError(new BadArgument(options));
1106
1113
 
1107
1114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
1108
- var makeUnsafe = makeLatchUnsafe;
1115
+ var makeUnsafe2 = makeLatchUnsafe;
1109
1116
  var make3 = makeLatch;
1110
1117
 
1111
1118
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
@@ -1281,7 +1288,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1281
1288
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1282
1289
  var TypeId3 = "~effect/PubSub";
1283
1290
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1284
- var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe5(), makeUnsafe(false), make8(false), options.strategy(), make8(none())));
1291
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1285
1292
  var unbounded = (options) => make5({
1286
1293
  atomicPubSub: () => makeAtomicUnbounded(options),
1287
1294
  strategy: () => new DroppingStrategy
@@ -1300,7 +1307,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1300
1307
  return false;
1301
1308
  });
1302
1309
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1303
- const localScope = get3(services, Scope);
1310
+ const localScope = get4(services, Scope);
1304
1311
  const scope = forkUnsafe(self.scope);
1305
1312
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1306
1313
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -1344,7 +1351,7 @@ var pollForItem = (self) => callback3((resume) => {
1344
1351
  }
1345
1352
  return resume(succeed6(self.ended.current.value));
1346
1353
  }
1347
- const deferred = makeUnsafe4();
1354
+ const deferred = makeUnsafe5();
1348
1355
  let set = self.subscribers.get(self.subscription);
1349
1356
  if (!set) {
1350
1357
  set = new Set;
@@ -1376,7 +1383,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1376
1383
  subscribers.delete(subscription);
1377
1384
  }
1378
1385
  };
1379
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe(false), make8(false), strategy, pubsub.replayWindow(), ended);
1386
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1380
1387
  class UnboundedPubSub {
1381
1388
  publisherHead = {
1382
1389
  value: AbsentValue,
@@ -2096,7 +2103,7 @@ var finalize = (self, exit) => {
2096
2103
  };
2097
2104
 
2098
2105
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Semaphore.js
2099
- var makeUnsafe2 = (permits) => new SemaphoreImpl(permits);
2106
+ var makeUnsafe3 = (permits) => new SemaphoreImpl(permits);
2100
2107
  var firstAvailableWaiter = (self) => {
2101
2108
  for (const waiter of self.waiters) {
2102
2109
  if (waiter.permits <= self.free)
@@ -2247,7 +2254,7 @@ var asyncQueue = (scope, f, options) => make9({
2247
2254
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
2248
2255
  startImmediately: true
2249
2256
  }))));
2250
- var callbackArray = (f, options) => fromTransform((_, scope) => map7(asyncQueue(scope, f, options), takeAll3));
2257
+ var callbackArray = (f, options) => fromTransform((_, scope) => map8(asyncQueue(scope, f, options), takeAll3));
2251
2258
  var suspend4 = (evaluate) => fromTransform((upstream, scope) => suspend3(() => toTransform(evaluate())(upstream, scope)));
2252
2259
  var fromIterator = (iterator) => fromPull(sync2(() => {
2253
2260
  const iter = iterator();
@@ -2273,7 +2280,7 @@ var fromEffect = (effect) => fromPull(sync2(() => {
2273
2280
  var fromEffectDrain = (effect) => fromPull(flatMap3(effect, () => done()));
2274
2281
  var fromQueueArray = (queue) => fromPull(succeed6(takeAll3(queue)));
2275
2282
  var fromSubscriptionArray = (subscription) => fromPull(succeed6(onInterrupt(takeAll2(subscription), () => done())));
2276
- var fromPubSubArray = (pubsub) => unwrap2(map7(subscribe(pubsub), fromSubscriptionArray));
2283
+ var fromPubSubArray = (pubsub) => unwrap2(map8(subscribe(pubsub), fromSubscriptionArray));
2277
2284
  var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStreamToPullUnsafe({
2278
2285
  scope,
2279
2286
  readable: options.evaluate(),
@@ -2303,9 +2310,9 @@ var readableStreamToPullUnsafe = (options) => {
2303
2310
  });
2304
2311
  return as(addFinalizer(options.scope, options.releaseLockOnEnd ? sync2(() => reader.releaseLock()) : promise(() => reader.cancel().catch((error) => reader.closed.then(() => Promise.reject(error), constVoid))).pipe(ensuring2(sync2(() => reader.releaseLock())))), pull);
2305
2312
  };
2306
- var map8 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
2313
+ var map7 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
2307
2314
  let i = 0;
2308
- return map7(pull, (o) => f(o, i++));
2315
+ return map8(pull, (o) => f(o, i++));
2309
2316
  })));
2310
2317
  var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
2311
2318
  var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done2) => flatMap3(f(done2), done)))));
@@ -2313,7 +2320,7 @@ var concurrencyIsSequential = (concurrency) => concurrency === undefined || conc
2313
2320
  var mapEffect = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options));
2314
2321
  var mapEffectSequential = (self, f) => fromTransform((upstream, scope) => {
2315
2322
  let i = 0;
2316
- return map7(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
2323
+ return map8(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
2317
2324
  });
2318
2325
  var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2319
2326
  let i = 0;
@@ -2324,7 +2331,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
2324
2331
  const runFork = runForkWith(yield* context());
2325
2332
  const trackFiber = runIn(forkedScope);
2326
2333
  if (options.unordered) {
2327
- const semaphore = makeUnsafe2(concurrencyN);
2334
+ const semaphore = makeUnsafe3(concurrencyN);
2328
2335
  const release = constant(semaphore.release(1));
2329
2336
  const handle = matchCauseEffect({
2330
2337
  onFailure: (cause) => flatMap3(failCause(queue, cause), release),
@@ -2365,7 +2372,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
2365
2372
  return take(queue);
2366
2373
  }));
2367
2374
  var flatMap = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options));
2368
- var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map7(toTransform(self)(upstream, scope), (pull) => {
2375
+ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map8(toTransform(self)(upstream, scope), (pull) => {
2369
2376
  let childPull;
2370
2377
  let childScope;
2371
2378
  const makePull = flatMap3(pull, (value) => {
@@ -2386,7 +2393,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map7(toT
2386
2393
  });
2387
2394
  return suspend3(() => childPull ?? makePull);
2388
2395
  }));
2389
- var flatMapConcurrent = (self, f, options) => self.pipe(map8(f), mergeAll(options));
2396
+ var flatMapConcurrent = (self, f, options) => self.pipe(map7(f), mergeAll(options));
2390
2397
  var flatten2 = (channels) => flatMap(channels, identity);
2391
2398
  var flattenArray = (self) => transformPull(self, (pull) => {
2392
2399
  let array;
@@ -2426,7 +2433,7 @@ var filterArray = /* @__PURE__ */ dual(2, (self, predicate) => transformPull(sel
2426
2433
  }))));
2427
2434
  var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
2428
2435
  let forkedScope = forkUnsafe(scope);
2429
- return map7(toTransform(self)(upstream, forkedScope), (pull) => {
2436
+ return map8(toTransform(self)(upstream, forkedScope), (pull) => {
2430
2437
  let currentPull = pull.pipe(catchCause2((cause) => {
2431
2438
  if (isDoneCause(cause)) {
2432
2439
  return failCause3(cause);
@@ -2449,7 +2456,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2449
2456
  switch: switch_ = false
2450
2457
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2451
2458
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2452
- const semaphore = switch_ ? undefined : makeUnsafe2(concurrencyN);
2459
+ const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2453
2460
  const doneLatch = yield* make3(true);
2454
2461
  const fibers = new Map;
2455
2462
  const queue = yield* bounded(bufferSize);
@@ -2623,7 +2630,7 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
2623
2630
  const streamOptions = {
2624
2631
  stream: true
2625
2632
  };
2626
- let pull = upstream.pipe(map7(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
2633
+ let pull = upstream.pipe(map8(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
2627
2634
  pull = done(leftover);
2628
2635
  const last = decoder.decode();
2629
2636
  return last.length > 0 ? succeed6(of(last)) : pull;
@@ -2650,18 +2657,18 @@ var interruptWhen2 = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromP
2650
2657
  var onExit2 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen2(toTransform(self)(upstream, scope)))));
2651
2658
  var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit2(self, (_) => finalizer));
2652
2659
  var runWith = (self, f, onHalt) => suspend3(() => {
2653
- const scope = makeUnsafe5();
2660
+ const scope = makeUnsafe6();
2654
2661
  const makePull = toTransform(self)(done(), scope);
2655
2662
  return catchDone(flatMap3(makePull, f), onHalt ? onHalt : succeed6).pipe(onExit((exit) => close(scope, exit)));
2656
2663
  });
2657
- var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map7(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
2664
+ var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map8(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
2658
2665
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
2659
2666
  disableYield: true
2660
2667
  }));
2661
2668
  var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
2662
2669
  disableYield: true
2663
2670
  })));
2664
- var mkUint8Array = (self) => map7(runFold2(self, () => ({
2671
+ var mkUint8Array = (self) => map8(runFold2(self, () => ({
2665
2672
  bytes: 0,
2666
2673
  arrays: []
2667
2674
  }), (acc, chunk) => {
@@ -2755,18 +2762,160 @@ var forEach2 = (f) => forEachArray(forEach((_) => f(_), {
2755
2762
  var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f), forever({
2756
2763
  disableYield: true
2757
2764
  }), catchDone(() => endVoid)));
2758
- var unwrap3 = (effect) => fromChannel(unwrap2(map7(effect, toChannel)));
2765
+ var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
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;
2759
2908
 
2760
2909
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2761
- var TypeId8 = "~effect/Stream";
2762
- var isStream = (u) => hasProperty(u, TypeId8);
2910
+ var TypeId9 = "~effect/Stream";
2911
+ var isStream = (u) => hasProperty(u, TypeId9);
2763
2912
  var fromChannel2 = fromChannel3;
2764
2913
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2765
2914
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2766
2915
  var toChannel2 = (stream) => stream.channel;
2767
2916
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2768
2917
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2769
- var make10 = (...values) => fromArray2(values);
2918
+ var make11 = (...values) => fromArray2(values);
2770
2919
  var suspend = (stream) => {
2771
2920
  const suspended = fromChannel2(suspend4(() => stream().channel));
2772
2921
  suspendedStreams.set(suspended, stream);
@@ -2779,12 +2928,12 @@ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succee
2779
2928
  var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
2780
2929
  var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
2781
2930
  var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
2782
- var unwrap = (effect) => fromChannel2(unwrap2(map7(effect, toChannel2)));
2931
+ var unwrap = (effect) => fromChannel2(unwrap2(map8(effect, toChannel2)));
2783
2932
  var map2 = /* @__PURE__ */ dual(2, (self, f) => suspend(() => {
2784
2933
  let i = 0;
2785
- return fromChannel2(map8(self.channel, map6((o) => f(o, i++))));
2934
+ return fromChannel2(map7(self.channel, map6((o) => f(o, i++))));
2786
2935
  }));
2787
- var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map8(of), fromChannel2));
2936
+ var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map7(of), fromChannel2));
2788
2937
  var tap = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => mapEffect2(self, (a) => as(f(a), a), options));
2789
2938
  var drainFork = /* @__PURE__ */ dual(2, (self, that) => mergeEffect2(self, runDrain(that)));
2790
2939
  var concat = /* @__PURE__ */ dual(2, (self, that) => {
@@ -2835,7 +2984,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
2835
2984
  done2 = fail4(error);
2836
2985
  return done();
2837
2986
  }));
2838
- const pull = map7(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
2987
+ const pull = map8(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
2839
2988
  leftover = leftover_;
2840
2989
  return of(value);
2841
2990
  });
@@ -2850,7 +2999,7 @@ var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2
2850
2999
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => fromChannel2(interruptWhen2(self.channel, effect)));
2851
3000
  var ensuring = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel2(ensuring3(self.channel, finalizer)));
2852
3001
  var provideContext = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
2853
- var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map7(([a]) => a))));
3002
+ var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map8(([a]) => a))));
2854
3003
  var runSink = (sink, upstream, scope) => restoreUpstreamFailure(sink.transform(upstreamFailureToDefect(upstream), scope));
2855
3004
  var runCollect = (self) => runFold2(self.channel, () => [], (acc, chunk) => {
2856
3005
  for (let i = 0;i < chunk.length; i++) {
@@ -2864,7 +3013,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => runFold2(self.channe
2864
3013
  }
2865
3014
  return acc;
2866
3015
  }));
2867
- var runHead = (self) => map7(runHead2(self.channel), map4(getUnsafe2(0)));
3016
+ var runHead = (self) => map8(runHead2(self.channel), map4(getUnsafe2(0)));
2868
3017
  var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
2869
3018
  let i = 0;
2870
3019
  return whileLoop({
@@ -2875,12 +3024,12 @@ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel,
2875
3024
  }));
2876
3025
  var runDrain = (self) => runDrain2(self.channel);
2877
3026
  var mkString = (self) => runFold2(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
2878
- var mkArrayBuffer = (self) => map7(mkUint8Array(self.channel), (bytes) => bytes.buffer);
3027
+ var mkArrayBuffer = (self) => map8(mkUint8Array(self.channel), (bytes) => bytes.buffer);
2879
3028
  var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
2880
3029
  let currentResolve = undefined;
2881
3030
  let fiber = undefined;
2882
3031
  let cancelled = false;
2883
- const latch = makeUnsafe(false);
3032
+ const latch = makeUnsafe2(false);
2884
3033
  const signal = options?.signal;
2885
3034
  const onAbort = () => fiber.interruptUnsafe();
2886
3035
  return new ReadableStream({
@@ -2926,14 +3075,14 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2926
3075
  }
2927
3076
  }, options?.strategy);
2928
3077
  });
2929
- var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map7(context(), (context) => toReadableStreamWith(self, context, options)));
3078
+ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2930
3079
 
2931
3080
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2932
- var TypeId9 = "~effect/FileSystem";
3081
+ var TypeId10 = "~effect/FileSystem";
2933
3082
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2934
- var make11 = (impl) => FileSystem.of({
3083
+ var make12 = (impl) => FileSystem.of({
2935
3084
  ...impl,
2936
- [TypeId9]: TypeId9,
3085
+ [TypeId10]: TypeId10,
2937
3086
  glob: make2(impl),
2938
3087
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2939
3088
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -2949,11 +3098,11 @@ var make11 = (impl) => FileSystem.of({
2949
3098
  const file = yield* impl.open(path, {
2950
3099
  flag: "r"
2951
3100
  });
2952
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3101
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2953
3102
  if (offset) {
2954
3103
  yield* file.seek(offset, "start");
2955
3104
  }
2956
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3105
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2957
3106
  let totalBytesRead = BigInt(0);
2958
3107
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2959
3108
  const readChunk = file.readAlloc(chunkSize);
@@ -2973,7 +3122,7 @@ var make11 = (impl) => FileSystem.of({
2973
3122
  sink: (path, options) => pipe(impl.open(path, {
2974
3123
  ...options,
2975
3124
  flag: options?.flag ?? "w"
2976
- }), map7((file) => forEach2((_) => file.writeAll(_))), unwrap3),
3125
+ }), map8((file) => forEach2((_) => file.writeAll(_))), unwrap3),
2977
3126
  writeFileString: (path, data, options) => flatMap3(try_2({
2978
3127
  try: () => new TextEncoder().encode(data),
2979
3128
  catch: (cause) => badArgument({
@@ -2989,11 +3138,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
2989
3138
  }
2990
3139
 
2991
3140
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
2992
- var TypeId10 = "~effect/Path";
3141
+ var TypeId11 = "~effect/Path";
2993
3142
  var Path = /* @__PURE__ */ Service2("effect/Path");
2994
- var make12 = (impl) => Path.of({
3143
+ var make13 = (impl) => Path.of({
2995
3144
  ...impl,
2996
- [TypeId10]: TypeId10,
3145
+ [TypeId11]: TypeId11,
2997
3146
  resolveWithin(root, input) {
2998
3147
  if (impl.parse(input).root !== "")
2999
3148
  return none();
@@ -3066,7 +3215,7 @@ function makeProvider(load, mapInput) {
3066
3215
  function makeSource(get, transform) {
3067
3216
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3068
3217
  }
3069
- function make6(get) {
3218
+ function make7(get) {
3070
3219
  return makeSource(get, identityPath);
3071
3220
  }
3072
3221
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3075,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3075
3224
  function fromEnvRecord(env, options) {
3076
3225
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3077
3226
  const trie = buildEnvTrie(env);
3078
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3227
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3079
3228
  }
3080
3229
  function fromEnv(options) {
3081
3230
  const env = options?.env ?? {
@@ -3128,7 +3277,7 @@ function trieNodeAt(root, path) {
3128
3277
  }
3129
3278
 
3130
3279
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3131
- var TypeId11 = "~effect/Config";
3280
+ var TypeId12 = "~effect/Config";
3132
3281
  class ConfigError {
3133
3282
  _tag = "ConfigError";
3134
3283
  name = "ConfigError";
@@ -3150,14 +3299,14 @@ var Proto2 = {
3150
3299
  return this.parse(fiber.getRef(ConfigProvider));
3151
3300
  }
3152
3301
  }),
3153
- [TypeId11]: TypeId11,
3302
+ [TypeId12]: TypeId12,
3154
3303
  toJSON() {
3155
3304
  return {
3156
3305
  _id: "Config"
3157
3306
  };
3158
3307
  }
3159
3308
  };
3160
- function make7(evaluator) {
3309
+ function make14(evaluator) {
3161
3310
  const self = Object.create(Proto2);
3162
3311
  self.evaluator = evaluator;
3163
3312
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3165,14 +3314,14 @@ function make7(evaluator) {
3165
3314
  }
3166
3315
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3167
3316
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3168
- return make7((provider, pathPrefix) => map7(evaluateAt(self, provider, pathPrefix), map5(f)));
3317
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3169
3318
  });
3170
3319
  function all(arg) {
3171
3320
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3172
- 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));
3173
3322
  }
3174
3323
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3175
- 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));
3176
3325
  });
3177
3326
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3178
3327
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3291,7 +3440,7 @@ function schema(codec, path) {
3291
3440
  const encodedAst = toEncoded(codecStringTree.ast);
3292
3441
  const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3293
3442
  const localPath = typeof path === "string" ? [path] : path ?? [];
3294
- return make7((provider, pathPrefix) => {
3443
+ return make14((provider, pathPrefix) => {
3295
3444
  const fullPath = [...pathPrefix, ...localPath];
3296
3445
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3297
3446
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3314,7 +3463,7 @@ var optionalEnv = (name) => gen(function* () {
3314
3463
  }).pipe(orElseSucceed(() => {
3315
3464
  return;
3316
3465
  }));
3317
- var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map7((configHome) => configHome ?? `${home}/.config`));
3466
+ var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map8((configHome) => configHome ?? `${home}/.config`));
3318
3467
 
3319
3468
  // packages/agent-runtime/src/srt-sandbox.ts
3320
3469
  var harnessesUnsupportedInSrt2 = ["codex"];
@@ -3367,7 +3516,7 @@ var srtInheritedEnv2 = [
3367
3516
  "LC_CTYPE",
3368
3517
  "TZ"
3369
3518
  ];
3370
- var inheritedEnvironment2 = (names) => map7(forEach(names, (name) => map7(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
3519
+ var inheritedEnvironment2 = (names) => map8(forEach(names, (name) => map8(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
3371
3520
  var shellName = /^[A-Za-z_][A-Za-z0-9_]*$/;
3372
3521
  var withOnlyEnvironment2 = (names, argv) => [
3373
3522
  "sh",
@@ -3403,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3403
3552
  ...argv
3404
3553
  ];
3405
3554
 
3406
- export { map, makeEquivalence, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe2, 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 };