@kitman-sh/cli 0.10.99 → 0.10.100

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-rdv42ygn.js → chunk-0rf10v29.js} +4 -4
  2. package/dist/{chunk-0a10kdrd.js → chunk-1k3cvdbt.js} +4 -4
  3. package/dist/{chunk-et6qa95h.js → chunk-1kww1jdz.js} +1 -1
  4. package/dist/{chunk-0tsc91qr.js → chunk-1nw7sbtr.js} +4 -4
  5. package/dist/{chunk-abf4m4b2.js → chunk-4c78jfqk.js} +5 -5
  6. package/dist/{chunk-rrj434w6.js → chunk-5z0cwmet.js} +28 -28
  7. package/dist/{chunk-t7ncjd6s.js → chunk-6sanfepb.js} +6 -6
  8. package/dist/{chunk-4sswz0mn.js → chunk-9xj0djtp.js} +8 -8
  9. package/dist/{chunk-ampzxrqe.js → chunk-ayfdkptb.js} +61 -60
  10. package/dist/{chunk-3v70x040.js → chunk-cpx45jzk.js} +5 -5
  11. package/dist/{chunk-6vmpa1nw.js → chunk-cy7cy84h.js} +10 -10
  12. package/dist/{chunk-g3r5xp0t.js → chunk-gs6qdy2k.js} +2 -2
  13. package/dist/{chunk-56e202xk.js → chunk-hcpjfshb.js} +6 -6
  14. package/dist/{chunk-vjcn82g3.js → chunk-mjrr0wzp.js} +28 -177
  15. package/dist/{chunk-a244myqw.js → chunk-mk8vsaj7.js} +1 -1
  16. package/dist/{chunk-3ka78n56.js → chunk-mtz8f1hn.js} +7 -7
  17. package/dist/{chunk-3r7ahnwy.js → chunk-p3kwtm82.js} +2 -2
  18. package/dist/{chunk-fv6kgtze.js → chunk-qv9te9gr.js} +2 -2
  19. package/dist/{chunk-2fs34341.js → chunk-r3rap6hz.js} +30 -24
  20. package/dist/{chunk-0hjtwtms.js → chunk-tk85pw4z.js} +92 -21
  21. package/dist/{chunk-rp224rm4.js → chunk-tqw2rkc9.js} +3 -3
  22. package/dist/{chunk-z2f9enrp.js → chunk-vatjyw59.js} +17 -17
  23. package/dist/{chunk-k0shg2fb.js → chunk-wyh06par.js} +291 -135
  24. package/dist/{chunk-bk3dpjxq.js → chunk-wzkdjdb7.js} +1 -1
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -34,11 +34,8 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- add,
38
- get4,
37
+ get3,
39
38
  Reference,
40
- fromInputUnsafe,
41
- isFinite,
42
39
  normalize,
43
40
  succeed,
44
41
  fail3,
@@ -84,7 +81,6 @@ import {
84
81
  fail4,
85
82
  interrupt2,
86
83
  void_2,
87
- isSuccess2,
88
84
  isFailure2,
89
85
  asVoidAll,
90
86
  makeUnsafe5,
@@ -156,14 +152,12 @@ import {
156
152
  tapError2,
157
153
  ignoreCause,
158
154
  orElseSucceed,
159
- sleep,
160
155
  raceFirst,
161
156
  when,
162
157
  matchCauseEffect,
163
158
  context,
164
159
  contextWith,
165
160
  provideContext2,
166
- scope2,
167
161
  scoped,
168
162
  scopedWith,
169
163
  ensuring2,
@@ -173,7 +167,6 @@ import {
173
167
  interrupt3,
174
168
  onInterrupt,
175
169
  uninterruptible,
176
- uninterruptibleMask2,
177
170
  forever,
178
171
  forkChild,
179
172
  forkIn,
@@ -195,11 +188,11 @@ import {
195
188
  toEncoded,
196
189
  decodeUnknownEffect,
197
190
  SchemaError,
198
- make17,
191
+ make16,
199
192
  String4,
200
193
  toCodecStringTree,
201
194
  encodeUnknownJsonStringSync
202
- } from "./chunk-ampzxrqe.js";
195
+ } from "./chunk-ayfdkptb.js";
203
196
 
204
197
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
205
198
  var headUnsafe = (self) => {
@@ -368,7 +361,7 @@ var fromStringUnsafe = (input) => {
368
361
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
369
362
  return make(value);
370
363
  };
371
- var fromInputUnsafe2 = (input) => {
364
+ var fromInputUnsafe = (input) => {
372
365
  switch (typeof input) {
373
366
  case "bigint":
374
367
  if (input < bigint0)
@@ -381,7 +374,7 @@ var fromInputUnsafe2 = (input) => {
381
374
  }
382
375
  return invalid(`unsupported input ${input}`);
383
376
  };
384
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
377
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
385
378
 
386
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
387
380
  var join = fiberJoin;
@@ -1307,7 +1300,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1307
1300
  return false;
1308
1301
  });
1309
1302
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1310
- const localScope = get4(services, Scope);
1303
+ const localScope = get3(services, Scope);
1311
1304
  const scope = forkUnsafe(self.scope);
1312
1305
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1313
1306
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2764,158 +2757,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2764
2757
  }), catchDone(() => endVoid)));
2765
2758
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2766
2759
 
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
-
2909
2760
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2910
- var TypeId9 = "~effect/Stream";
2911
- var isStream = (u) => hasProperty(u, TypeId9);
2761
+ var TypeId8 = "~effect/Stream";
2762
+ var isStream = (u) => hasProperty(u, TypeId8);
2912
2763
  var fromChannel2 = fromChannel3;
2913
2764
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2914
2765
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2915
2766
  var toChannel2 = (stream) => stream.channel;
2916
2767
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2917
2768
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2918
- var make11 = (...values) => fromArray2(values);
2769
+ var make10 = (...values) => fromArray2(values);
2919
2770
  var suspend = (stream) => {
2920
2771
  const suspended = fromChannel2(suspend4(() => stream().channel));
2921
2772
  suspendedStreams.set(suspended, stream);
@@ -3078,11 +2929,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3078
2929
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
3079
2930
 
3080
2931
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3081
- var TypeId10 = "~effect/FileSystem";
2932
+ var TypeId9 = "~effect/FileSystem";
3082
2933
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3083
- var make12 = (impl) => FileSystem.of({
2934
+ var make11 = (impl) => FileSystem.of({
3084
2935
  ...impl,
3085
- [TypeId10]: TypeId10,
2936
+ [TypeId9]: TypeId9,
3086
2937
  glob: make2(impl),
3087
2938
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3088
2939
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -3098,11 +2949,11 @@ var make12 = (impl) => FileSystem.of({
3098
2949
  const file = yield* impl.open(path, {
3099
2950
  flag: "r"
3100
2951
  });
3101
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2952
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3102
2953
  if (offset) {
3103
2954
  yield* file.seek(offset, "start");
3104
2955
  }
3105
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2956
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3106
2957
  let totalBytesRead = BigInt(0);
3107
2958
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3108
2959
  const readChunk = file.readAlloc(chunkSize);
@@ -3138,11 +2989,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3138
2989
  }
3139
2990
 
3140
2991
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3141
- var TypeId11 = "~effect/Path";
2992
+ var TypeId10 = "~effect/Path";
3142
2993
  var Path = /* @__PURE__ */ Service2("effect/Path");
3143
- var make13 = (impl) => Path.of({
2994
+ var make12 = (impl) => Path.of({
3144
2995
  ...impl,
3145
- [TypeId11]: TypeId11,
2996
+ [TypeId10]: TypeId10,
3146
2997
  resolveWithin(root, input) {
3147
2998
  if (impl.parse(input).root !== "")
3148
2999
  return none();
@@ -3215,7 +3066,7 @@ function makeProvider(load, mapInput) {
3215
3066
  function makeSource(get, transform) {
3216
3067
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3217
3068
  }
3218
- function make7(get) {
3069
+ function make6(get) {
3219
3070
  return makeSource(get, identityPath);
3220
3071
  }
3221
3072
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3224,7 +3075,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3224
3075
  function fromEnvRecord(env, options) {
3225
3076
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3226
3077
  const trie = buildEnvTrie(env);
3227
- return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3078
+ return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3228
3079
  }
3229
3080
  function fromEnv(options) {
3230
3081
  const env = options?.env ?? {
@@ -3277,7 +3128,7 @@ function trieNodeAt(root, path) {
3277
3128
  }
3278
3129
 
3279
3130
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3280
- var TypeId12 = "~effect/Config";
3131
+ var TypeId11 = "~effect/Config";
3281
3132
  class ConfigError {
3282
3133
  _tag = "ConfigError";
3283
3134
  name = "ConfigError";
@@ -3299,14 +3150,14 @@ var Proto2 = {
3299
3150
  return this.parse(fiber.getRef(ConfigProvider));
3300
3151
  }
3301
3152
  }),
3302
- [TypeId12]: TypeId12,
3153
+ [TypeId11]: TypeId11,
3303
3154
  toJSON() {
3304
3155
  return {
3305
3156
  _id: "Config"
3306
3157
  };
3307
3158
  }
3308
3159
  };
3309
- function make14(evaluator) {
3160
+ function make7(evaluator) {
3310
3161
  const self = Object.create(Proto2);
3311
3162
  self.evaluator = evaluator;
3312
3163
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3314,14 +3165,14 @@ function make14(evaluator) {
3314
3165
  }
3315
3166
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3316
3167
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3317
- return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3168
+ return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3318
3169
  });
3319
3170
  function all(arg) {
3320
3171
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
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));
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));
3322
3173
  }
3323
3174
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3324
- return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3175
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3325
3176
  });
3326
3177
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3327
3178
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3438,9 +3289,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3438
3289
  function schema(codec, path) {
3439
3290
  const codecStringTree = toCodecStringTree(codec);
3440
3291
  const encodedAst = toEncoded(codecStringTree.ast);
3441
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3292
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3442
3293
  const localPath = typeof path === "string" ? [path] : path ?? [];
3443
- return make14((provider, pathPrefix) => {
3294
+ return make7((provider, pathPrefix) => {
3444
3295
  const fullPath = [...pathPrefix, ...localPath];
3445
3296
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3446
3297
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3552,4 +3403,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3552
3403
  ...argv
3553
3404
  ];
3554
3405
 
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 };
3406
+ export { map, makeEquivalence, 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 };
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-ampzxrqe.js";
6
+ } from "./chunk-ayfdkptb.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -4,13 +4,13 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-56e202xk.js";
8
- import"./chunk-z2f9enrp.js";
9
- import"./chunk-k0shg2fb.js";
10
- import"./chunk-et6qa95h.js";
11
- import"./chunk-bk3dpjxq.js";
12
- import"./chunk-vjcn82g3.js";
13
- import"./chunk-ampzxrqe.js";
7
+ } from "./chunk-hcpjfshb.js";
8
+ import"./chunk-vatjyw59.js";
9
+ import"./chunk-wyh06par.js";
10
+ import"./chunk-1kww1jdz.js";
11
+ import"./chunk-wzkdjdb7.js";
12
+ import"./chunk-mjrr0wzp.js";
13
+ import"./chunk-ayfdkptb.js";
14
14
  export {
15
15
  makeProgramRpcClient2 as makeProgramRpcClient,
16
16
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -22,7 +22,7 @@ import {
22
22
  map8,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-ampzxrqe.js";
25
+ } from "./chunk-ayfdkptb.js";
26
26
  import {
27
27
  unwrap,
28
28
  drainFork,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-vjcn82g3.js";
34
+ } from "./chunk-mjrr0wzp.js";
35
35
 
36
36
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
37
37
  var redactedRegistry = /* @__PURE__ */ new WeakMap;
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-ampzxrqe.js";
16
+ } from "./chunk-ayfdkptb.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-et6qa95h.js";
20
+ } from "./chunk-1kww1jdz.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -6,7 +6,7 @@ import {
6
6
  isObject,
7
7
  isJsonObject,
8
8
  isString
9
- } from "./chunk-bk3dpjxq.js";
9
+ } from "./chunk-wzkdjdb7.js";
10
10
  import {
11
11
  pipeArguments,
12
12
  dual,
@@ -48,7 +48,7 @@ import {
48
48
  isFailure2,
49
49
  hasInterrupts,
50
50
  makeUnsafe5,
51
- make16,
51
+ make15,
52
52
  _await,
53
53
  fail5,
54
54
  isDoneUnsafe,
@@ -168,12 +168,12 @@ import {
168
168
  encodePrettyJsonString,
169
169
  decodeJsonStringSync,
170
170
  encodeUnknownJsonStringSync
171
- } from "./chunk-ampzxrqe.js";
171
+ } from "./chunk-ayfdkptb.js";
172
172
  import {
173
173
  Id,
174
174
  secretReference,
175
175
  secretPlaceholder
176
- } from "./chunk-et6qa95h.js";
176
+ } from "./chunk-1kww1jdz.js";
177
177
  import {
178
178
  currentTimeMillis,
179
179
  SecureRandom,
@@ -246,7 +246,7 @@ import {
246
246
  installCommand,
247
247
  checkServicesFile,
248
248
  checkServices
249
- } from "./chunk-k0shg2fb.js";
249
+ } from "./chunk-wyh06par.js";
250
250
  import {
251
251
  join,
252
252
  interrupt,
@@ -255,7 +255,7 @@ import {
255
255
  unbounded2,
256
256
  offer,
257
257
  makeUnsafe3,
258
- make11,
258
+ make10,
259
259
  fromQueue,
260
260
  fromPubSub,
261
261
  map2,
@@ -286,7 +286,7 @@ import {
286
286
  writeSrtSettings2,
287
287
  srtStepArgv2,
288
288
  srtArgv2
289
- } from "./chunk-vjcn82g3.js";
289
+ } from "./chunk-mjrr0wzp.js";
290
290
  import {
291
291
  writeAgentEnvironmentConfigFile2,
292
292
  readManifestSkillPaths2,
@@ -302,8 +302,8 @@ import {
302
302
  applyAgentEnvironmentMaterialization2,
303
303
  isPathWithin2,
304
304
  skillIdentity2
305
- } from "./chunk-3v70x040.js";
306
- import"./chunk-rp224rm4.js";
305
+ } from "./chunk-cpx45jzk.js";
306
+ import"./chunk-tqw2rkc9.js";
307
307
  import {
308
308
  egressAllowed,
309
309
  writeSecretRegistry,
@@ -313,7 +313,7 @@ import {
313
313
  secretFilter2,
314
314
  opaqueTunnelRefusal2,
315
315
  isOpaqueConnectReason2
316
- } from "./chunk-fv6kgtze.js";
316
+ } from "./chunk-qv9te9gr.js";
317
317
  import {
318
318
  sliceBytes2,
319
319
  maxLineBytes2,
@@ -321,23 +321,23 @@ import {
321
321
  decodedOption2,
322
322
  decoded2,
323
323
  readOpencode2
324
- } from "./chunk-t7ncjd6s.js";
324
+ } from "./chunk-6sanfepb.js";
325
325
  import {
326
326
  uploadRunFile,
327
327
  programLease,
328
328
  rpcRunFiles,
329
329
  programHostsEnv,
330
330
  undeclaredHostsEnv
331
- } from "./chunk-0tsc91qr.js";
332
- import"./chunk-56e202xk.js";
331
+ } from "./chunk-1nw7sbtr.js";
332
+ import"./chunk-hcpjfshb.js";
333
333
  import {
334
334
  nextInt
335
- } from "./chunk-a244myqw.js";
335
+ } from "./chunk-mk8vsaj7.js";
336
336
  import {
337
337
  ChildProcessSpawner,
338
338
  make3
339
- } from "./chunk-3r7ahnwy.js";
340
- import"./chunk-z2f9enrp.js";
339
+ } from "./chunk-p3kwtm82.js";
340
+ import"./chunk-vatjyw59.js";
341
341
 
342
342
  // packages/core/src/sync-kit.ts
343
343
  import { createHash } from "crypto";
@@ -1700,6 +1700,7 @@ var HarnessAdapters = [
1700
1700
  ENABLE_TOOL_SEARCH: "false"
1701
1701
  },
1702
1702
  mcpToolTimeout: { kind: "env", variables: ["MCP_TOOL_TIMEOUT", "CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT"], unit: "ms" },
1703
+ tempDirectoryVariable: "CLAUDE_CODE_TMPDIR",
1703
1704
  session: {
1704
1705
  location: { root: ".claude/projects", layout: "per_directory", subagentFiles: true },
1705
1706
  start: ["--session-id", "{session}"],
@@ -1819,8 +1820,9 @@ var HarnessAdapters = [
1819
1820
  skills: { kind: "config_paths", root: "skills" },
1820
1821
  mcpToolTimeout: { kind: "server_field", field: "timeout", unit: "ms" },
1821
1822
  sessionDatabase: ".local/share/opencode/opencode.db",
1823
+ tempDirectoryVariable: "CLAUDE_CODE_TMPDIR",
1822
1824
  sandboxHome: {
1823
- directories: { XDG_DATA_HOME: "data", XDG_STATE_HOME: "state", CLAUDE_CODE_TMPDIR: "tmp" },
1825
+ directories: { XDG_DATA_HOME: "data", XDG_STATE_HOME: "state" },
1824
1826
  sessionDatabase: "data/opencode/opencode.db",
1825
1827
  login: { source: ".local/share/opencode/auth.json", path: "data/opencode/auth.json" },
1826
1828
  configHomeDirectory: "opencode"
@@ -1865,8 +1867,12 @@ function lacksLoginSecret(harness, secrets) {
1865
1867
  function resolveHarnessLaunch(input) {
1866
1868
  const kit = renewedLoginLaunch(input, agentDirLaunch(input, briefLaunch(input, kitSetupLaunch(input, skillsLaunch(input)))));
1867
1869
  const launch = input.adapter.env === undefined ? kit : { ...kit, env: { ...input.adapter.env, ...kit.env } };
1870
+ const temporary = input.adapter.tempDirectoryVariable === undefined ? launch : { ...launch, env: { ...launch.env, [input.adapter.tempDirectoryVariable]: `${input.configDir}/tmp` } };
1868
1871
  const effort = input.effort;
1869
- const effortful = effort === undefined || input.adapter.effortArgs === undefined ? launch : { ...launch, args: [...launch.args, ...input.adapter.effortArgs.map((arg) => arg.replace("{effort}", effort))] };
1872
+ const effortful = effort === undefined || input.adapter.effortArgs === undefined ? temporary : {
1873
+ ...temporary,
1874
+ args: [...temporary.args, ...input.adapter.effortArgs.map((arg) => arg.replace("{effort}", effort))]
1875
+ };
1870
1876
  return flagProbedLaunch(input.adapter, globalConfigLaunch(input, sandboxHomeLaunch(input, effortful)));
1871
1877
  }
1872
1878
  var sandboxedLaunch = (launch, backend) => {
@@ -3313,7 +3319,7 @@ var dockerContainerRunner = map8(ChildProcessSpawner, (spawner) => {
3313
3319
  const filter = ["--filter", `label=${key}=${value}`];
3314
3320
  const containers = ids(yield* docker(["ps", "--all", "--quiet", ...filter]));
3315
3321
  if (containers.length > 0)
3316
- yield* docker(["rm", "--force", ...containers]);
3322
+ yield* docker(["rm", "--force", "--volumes", ...containers]);
3317
3323
  const networks = ids(yield* docker(["network", "ls", "--quiet", ...filter]));
3318
3324
  if (networks.length > 0)
3319
3325
  yield* docker(["network", "rm", ...networks]);
@@ -6482,7 +6488,7 @@ var removeCheckPostgres = (runnerId, liveReplicas) => gen(function* () {
6482
6488
  `{{.ID}} {{.Label "${CheckPostgresReplicaLabel}"}}`
6483
6489
  ], { timeout: "10 seconds" }), liveReplicas);
6484
6490
  if (ids.length > 0)
6485
- yield* runCommand2("docker", ["rm", "--force", ...ids], { timeout: "30 seconds" });
6491
+ yield* runCommand2("docker", ["rm", "--force", "--volumes", ...ids], { timeout: "30 seconds" });
6486
6492
  }).pipe(ignore);
6487
6493
 
6488
6494
  class CheckPostgresUnavailable extends TaggedError("CheckPostgresUnavailable") {
@@ -6533,7 +6539,7 @@ var dockerCheckPostgres = (runnerId, replicaId) => (id) => gen(function* () {
6533
6539
  "fsync=off",
6534
6540
  "-c",
6535
6541
  "full_page_writes=off"
6536
- ], "30 minutes"), () => ignore(docker(["rm", "--force", container])));
6542
+ ], "30 minutes"), () => ignore(docker(["rm", "--force", "--volumes", container])));
6537
6543
  const hostPort = publishedPort(yield* docker(["port", container, `${checkPostgresSandboxPort}/tcp`]));
6538
6544
  if (hostPort === undefined)
6539
6545
  return yield* new CheckPostgresUnavailable({ reason: "docker published no port" });
@@ -6804,7 +6810,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
6804
6810
  return {
6805
6811
  request: (method, params) => gen(function* () {
6806
6812
  const id = ++lastId;
6807
- const deferred = yield* make16();
6813
+ const deferred = yield* make15();
6808
6814
  pending.set(id, deferred);
6809
6815
  yield* send({ id, method, params });
6810
6816
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -6947,7 +6953,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
6947
6953
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
6948
6954
  extendEnv: true,
6949
6955
  env: mcp.env,
6950
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
6956
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
6951
6957
  stderr: "ignore"
6952
6958
  }));
6953
6959
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7021,7 +7027,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7021
7027
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7022
7028
  const spawner = yield* ChildProcessSpawner;
7023
7029
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7024
- stdin: make11(new TextEncoder().encode(stdin)),
7030
+ stdin: make10(new TextEncoder().encode(stdin)),
7025
7031
  stdout: "inherit",
7026
7032
  stderr: "inherit",
7027
7033
  extendEnv: false,