@kitman-sh/cli 0.13.19 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-f86q3a6s.js → chunk-099ybrqz.js} +18 -18
  2. package/dist/{chunk-12afnp8q.js → chunk-4c6w8sb7.js} +9 -9
  3. package/dist/{chunk-9krvh1na.js → chunk-5129s1vg.js} +3 -3
  4. package/dist/{chunk-5f80t96q.js → chunk-5d2sdzbz.js} +7 -7
  5. package/dist/{chunk-4yg6da62.js → chunk-84fcym2g.js} +1 -1
  6. package/dist/{chunk-q5w3v4k1.js → chunk-9avbsbvk.js} +1 -6
  7. package/dist/{chunk-d917m1ak.js → chunk-9j4cnz4j.js} +94 -24
  8. package/dist/{chunk-gq7y5v3e.js → chunk-bbf0jzsc.js} +1 -1
  9. package/dist/{chunk-yh7twvn9.js → chunk-bmkc5r0p.js} +4 -4
  10. package/dist/{chunk-xjmfnqh9.js → chunk-bscvbpa1.js} +6 -6
  11. package/dist/{chunk-fc2bhh5v.js → chunk-c4mf5mgt.js} +2 -2
  12. package/dist/{chunk-gy9rf14f.js → chunk-ctpgfdzf.js} +3 -3
  13. package/dist/{chunk-0n46rkk9.js → chunk-f2ycw5bp.js} +299 -128
  14. package/dist/{chunk-s4pejxc8.js → chunk-gbr4s7nk.js} +6 -6
  15. package/dist/{chunk-2bds7yc8.js → chunk-gmdd1a74.js} +1 -1
  16. package/dist/{chunk-nf9gdnsf.js → chunk-h7zb6d3z.js} +34 -177
  17. package/dist/{chunk-zfqn6dc1.js → chunk-hq2xzj6f.js} +4 -4
  18. package/dist/{chunk-82w8rmkc.js → chunk-r9tzwrnb.js} +2 -2
  19. package/dist/{chunk-9964wmp9.js → chunk-t2zzamex.js} +30 -30
  20. package/dist/{chunk-ysz1v2cq.js → chunk-vth8h56e.js} +4 -4
  21. package/dist/{chunk-590h6emd.js → chunk-w34sq09e.js} +5 -5
  22. package/dist/{chunk-40ee20qs.js → chunk-w8vxzc7w.js} +26 -13
  23. package/dist/{chunk-xt6db7sf.js → chunk-wb3wsm86.js} +7 -7
  24. package/dist/{chunk-y1krmnbv.js → chunk-y0y2gg8d.js} +2 -2
  25. package/dist/{chunk-zw3gf6r5.js → chunk-zpp4jg4a.js} +118 -60
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-xjmfnqh9.js";
8
- import"./chunk-f86q3a6s.js";
9
- import"./chunk-0n46rkk9.js";
10
- import"./chunk-q5w3v4k1.js";
11
- import"./chunk-nf9gdnsf.js";
12
- import"./chunk-zw3gf6r5.js";
7
+ } from "./chunk-bscvbpa1.js";
8
+ import"./chunk-099ybrqz.js";
9
+ import"./chunk-f2ycw5bp.js";
10
+ import"./chunk-9avbsbvk.js";
11
+ import"./chunk-h7zb6d3z.js";
12
+ import"./chunk-zpp4jg4a.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -1555,7 +1555,7 @@ var pathOfLink = (link) => {
1555
1555
  return page === null ? link : page[1] || "index";
1556
1556
  };
1557
1557
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1558
- var pinnedLink2 = (link, version = "0.13.19") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1558
+ var pinnedLink2 = (link, version = "0.14.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1559
1559
  var pageOf = (path) => path.split("#")[0];
1560
1560
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1561
1561
  function excerpt(text, queryTerms) {
@@ -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,
@@ -79,12 +76,13 @@ import {
79
76
  fiberRunIn,
80
77
  makeLatchUnsafe,
81
78
  makeLatch,
79
+ ClockRef,
80
+ currentTimeMillis2,
82
81
  succeed3,
83
82
  failCause2,
84
83
  fail4,
85
84
  interrupt2,
86
85
  void_2,
87
- isSuccess2,
88
86
  isFailure2,
89
87
  asVoidAll,
90
88
  makeUnsafe5,
@@ -156,14 +154,12 @@ import {
156
154
  tapError2,
157
155
  ignoreCause,
158
156
  orElseSucceed,
159
- sleep,
160
157
  raceFirst,
161
158
  when,
162
159
  matchCauseEffect,
163
160
  context,
164
161
  contextWith,
165
162
  provideContext2,
166
- scope2,
167
163
  scoped,
168
164
  scopedWith,
169
165
  acquireRelease,
@@ -174,7 +170,6 @@ import {
174
170
  interrupt3,
175
171
  onInterrupt,
176
172
  uninterruptible,
177
- uninterruptibleMask2,
178
173
  forever,
179
174
  forkChild,
180
175
  forkIn,
@@ -197,11 +192,11 @@ import {
197
192
  toEncoded,
198
193
  decodeUnknownEffect,
199
194
  SchemaError,
200
- make17,
195
+ make16,
201
196
  String4,
202
197
  toCodecStringTree,
203
198
  encodeUnknownJsonStringSync
204
- } from "./chunk-zw3gf6r5.js";
199
+ } from "./chunk-zpp4jg4a.js";
205
200
 
206
201
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
207
202
  var headUnsafe = (self) => {
@@ -250,6 +245,10 @@ var makeEquivalence = (equivalence) => {
250
245
  return (self, that) => is(self, that) && is(that, self);
251
246
  };
252
247
 
248
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
249
+ var Clock = ClockRef;
250
+ var currentTimeMillis = currentTimeMillis2;
251
+
253
252
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
254
253
  var bigint0 = /* @__PURE__ */ BigInt(0);
255
254
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -370,7 +369,7 @@ var fromStringUnsafe = (input) => {
370
369
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
371
370
  return make(value);
372
371
  };
373
- var fromInputUnsafe2 = (input) => {
372
+ var fromInputUnsafe = (input) => {
374
373
  switch (typeof input) {
375
374
  case "bigint":
376
375
  if (input < bigint0)
@@ -383,7 +382,7 @@ var fromInputUnsafe2 = (input) => {
383
382
  }
384
383
  return invalid(`unsupported input ${input}`);
385
384
  };
386
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
385
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
387
386
 
388
387
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
389
388
  var join = fiberJoin;
@@ -1309,7 +1308,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1309
1308
  return false;
1310
1309
  });
1311
1310
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1312
- const localScope = get4(services, Scope);
1311
+ const localScope = get3(services, Scope);
1313
1312
  const scope = forkUnsafe(self.scope);
1314
1313
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1315
1314
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2766,158 +2765,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2766
2765
  }), catchDone(() => endVoid)));
2767
2766
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2768
2767
 
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
-
2911
2768
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2912
- var TypeId9 = "~effect/Stream";
2913
- var isStream = (u) => hasProperty(u, TypeId9);
2769
+ var TypeId8 = "~effect/Stream";
2770
+ var isStream = (u) => hasProperty(u, TypeId8);
2914
2771
  var fromChannel2 = fromChannel3;
2915
2772
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2916
2773
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2917
2774
  var toChannel2 = (stream) => stream.channel;
2918
2775
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2919
2776
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2920
- var make11 = (...values) => fromArray2(values);
2777
+ var make10 = (...values) => fromArray2(values);
2921
2778
  var suspend = (stream) => {
2922
2779
  const suspended = fromChannel2(suspend4(() => stream().channel));
2923
2780
  suspendedStreams.set(suspended, stream);
@@ -3098,11 +2955,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3098
2955
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
3099
2956
 
3100
2957
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3101
- var TypeId10 = "~effect/FileSystem";
2958
+ var TypeId9 = "~effect/FileSystem";
3102
2959
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3103
- var make12 = (impl) => FileSystem.of({
2960
+ var make11 = (impl) => FileSystem.of({
3104
2961
  ...impl,
3105
- [TypeId10]: TypeId10,
2962
+ [TypeId9]: TypeId9,
3106
2963
  glob: make2(impl),
3107
2964
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3108
2965
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -3118,11 +2975,11 @@ var make12 = (impl) => FileSystem.of({
3118
2975
  const file = yield* impl.open(path, {
3119
2976
  flag: "r"
3120
2977
  });
3121
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2978
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3122
2979
  if (offset) {
3123
2980
  yield* file.seek(offset, "start");
3124
2981
  }
3125
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2982
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3126
2983
  let totalBytesRead = BigInt(0);
3127
2984
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3128
2985
  const readChunk = file.readAlloc(chunkSize);
@@ -3158,11 +3015,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3158
3015
  }
3159
3016
 
3160
3017
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3161
- var TypeId11 = "~effect/Path";
3018
+ var TypeId10 = "~effect/Path";
3162
3019
  var Path = /* @__PURE__ */ Service2("effect/Path");
3163
- var make13 = (impl) => Path.of({
3020
+ var make12 = (impl) => Path.of({
3164
3021
  ...impl,
3165
- [TypeId11]: TypeId11,
3022
+ [TypeId10]: TypeId10,
3166
3023
  resolveWithin(root, input) {
3167
3024
  if (impl.parse(input).root !== "")
3168
3025
  return none();
@@ -3235,7 +3092,7 @@ function makeProvider(load, mapInput) {
3235
3092
  function makeSource(get, transform) {
3236
3093
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3237
3094
  }
3238
- function make7(get) {
3095
+ function make6(get) {
3239
3096
  return makeSource(get, identityPath);
3240
3097
  }
3241
3098
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3244,7 +3101,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3244
3101
  function fromEnvRecord(env, options) {
3245
3102
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3246
3103
  const trie = buildEnvTrie(env);
3247
- return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3104
+ return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3248
3105
  }
3249
3106
  function fromEnv(options) {
3250
3107
  const env = options?.env ?? {
@@ -3297,7 +3154,7 @@ function trieNodeAt(root, path) {
3297
3154
  }
3298
3155
 
3299
3156
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3300
- var TypeId12 = "~effect/Config";
3157
+ var TypeId11 = "~effect/Config";
3301
3158
  class ConfigError {
3302
3159
  _tag = "ConfigError";
3303
3160
  name = "ConfigError";
@@ -3319,14 +3176,14 @@ var Proto2 = {
3319
3176
  return this.parse(fiber.getRef(ConfigProvider));
3320
3177
  }
3321
3178
  }),
3322
- [TypeId12]: TypeId12,
3179
+ [TypeId11]: TypeId11,
3323
3180
  toJSON() {
3324
3181
  return {
3325
3182
  _id: "Config"
3326
3183
  };
3327
3184
  }
3328
3185
  };
3329
- function make14(evaluator) {
3186
+ function make7(evaluator) {
3330
3187
  const self = Object.create(Proto2);
3331
3188
  self.evaluator = evaluator;
3332
3189
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3334,14 +3191,14 @@ function make14(evaluator) {
3334
3191
  }
3335
3192
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3336
3193
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3337
- return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3194
+ return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3338
3195
  });
3339
3196
  function all(arg) {
3340
3197
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
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));
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));
3342
3199
  }
3343
3200
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3344
- return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3201
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3345
3202
  });
3346
3203
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3347
3204
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3458,9 +3315,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3458
3315
  function schema(codec, path) {
3459
3316
  const codecStringTree = toCodecStringTree(codec);
3460
3317
  const encodedAst = toEncoded(codecStringTree.ast);
3461
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3318
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3462
3319
  const localPath = typeof path === "string" ? [path] : path ?? [];
3463
- return make14((provider, pathPrefix) => {
3320
+ return make7((provider, pathPrefix) => {
3464
3321
  const fullPath = [...pathPrefix, ...localPath];
3465
3322
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3466
3323
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3575,4 +3432,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3575
3432
  ...argv
3576
3433
  ];
3577
3434
 
3578
- 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, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3435
+ 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, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-590h6emd.js";
11
- import"./chunk-82w8rmkc.js";
12
- import"./chunk-nf9gdnsf.js";
13
- import"./chunk-zw3gf6r5.js";
10
+ } from "./chunk-w34sq09e.js";
11
+ import"./chunk-r9tzwrnb.js";
12
+ import"./chunk-h7zb6d3z.js";
13
+ import"./chunk-zpp4jg4a.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -22,7 +22,7 @@ import {
22
22
  map8,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-zw3gf6r5.js";
25
+ } from "./chunk-zpp4jg4a.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-nf9gdnsf.js";
34
+ } from "./chunk-h7zb6d3z.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;
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make16,
15
+ make15,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,21 +104,8 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zw3gf6r5.js";
107
+ } from "./chunk-zpp4jg4a.js";
108
108
  import {
109
- tap,
110
- mapError,
111
- decodeText,
112
- run,
113
- mkString,
114
- FileSystem,
115
- Path,
116
- withDefault,
117
- option,
118
- String2
119
- } from "./chunk-nf9gdnsf.js";
120
- import {
121
- currentTimeMillis,
122
109
  SecureRandom,
123
110
  layerWebCrypto,
124
111
  runMain,
@@ -232,14 +219,27 @@ import {
232
219
  harnessNames,
233
220
  herdrRunnerCapabilities2,
234
221
  declaredChecks
235
- } from "./chunk-0n46rkk9.js";
222
+ } from "./chunk-f2ycw5bp.js";
236
223
  import {
237
- Id
238
- } from "./chunk-q5w3v4k1.js";
224
+ currentTimeMillis,
225
+ tap,
226
+ mapError,
227
+ decodeText,
228
+ run,
229
+ mkString,
230
+ FileSystem,
231
+ Path,
232
+ withDefault,
233
+ option,
234
+ String2
235
+ } from "./chunk-h7zb6d3z.js";
239
236
  import {
240
237
  ChildProcessSpawner,
241
238
  make3
242
- } from "./chunk-82w8rmkc.js";
239
+ } from "./chunk-r9tzwrnb.js";
240
+ import {
241
+ Id
242
+ } from "./chunk-9avbsbvk.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
1020
1020
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1021
1021
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1022
1022
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1023
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ysz1v2cq.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-vth8h56e.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1024
1024
  });
1025
1025
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1026
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ysz1v2cq.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-vth8h56e.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1449,7 +1449,7 @@ var syncTargets = (harness) => gen(function* () {
1449
1449
  });
1450
1450
  var syncKits = (input) => gen(function* () {
1451
1451
  const fs = yield* FileSystem;
1452
- const { syncKitSetup } = yield* promise(() => import("./chunk-xt6db7sf.js"));
1452
+ const { syncKitSetup } = yield* promise(() => import("./chunk-wb3wsm86.js"));
1453
1453
  const harnesses = yield* syncTargets(input.harness);
1454
1454
  const chain = yield* input.client.getKitChain(input.workspaceId);
1455
1455
  for (const { name, problem } of chain.skipped)
@@ -2368,7 +2368,7 @@ var package_default = {
2368
2368
  };
2369
2369
 
2370
2370
  // apps/cli/src/scaffold.ts
2371
- var cliVersion = "0.13.19";
2371
+ var cliVersion = "0.14.0";
2372
2372
  var packageJson = (name, scaffold) => `${JSON.stringify({
2373
2373
  name,
2374
2374
  private: true,
@@ -2520,7 +2520,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2520
2520
 
2521
2521
  // apps/cli/src/commands.ts
2522
2522
  var ClientId = "kitman-cli";
2523
- var agentRuntime = promise(() => import("./chunk-d917m1ak.js"));
2523
+ var agentRuntime = promise(() => import("./chunk-9j4cnz4j.js"));
2524
2524
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2525
2525
  defaultValue: () => gen(function* () {
2526
2526
  const tui = yield* tryPromise({
@@ -3556,7 +3556,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3556
3556
  });
3557
3557
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3558
3558
  defaultValue: () => (options) => gen(function* () {
3559
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-s4pejxc8.js"));
3559
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-gbr4s7nk.js"));
3560
3560
  return yield* makeRunnerRpcClient({
3561
3561
  runnerId: options.runnerId,
3562
3562
  bearer: options.bearer,
@@ -3868,7 +3868,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3868
3868
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3869
3869
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
3870
3870
  const platform = yield* context();
3871
- const updated = yield* make16();
3871
+ const updated = yield* make15();
3872
3872
  const scope = yield* scope2;
3873
3873
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3874
3874
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4123,7 +4123,7 @@ function mcpCommand(args) {
4123
4123
  if (command.action === "run") {
4124
4124
  if (command.args.length > 0)
4125
4125
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4126
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-40ee20qs.js"));
4126
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-w8vxzc7w.js"));
4127
4127
  return yield* runMcpServerCommand({ flags: command.flags });
4128
4128
  }
4129
4129
  if (command.action !== "setup")
@@ -4611,7 +4611,7 @@ function programLoopCommand(command) {
4611
4611
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4612
4612
  });
4613
4613
  }
4614
- var docsModule = promise(() => import("./chunk-4yg6da62.js"));
4614
+ var docsModule = promise(() => import("./chunk-84fcym2g.js"));
4615
4615
  function docsCommand(args) {
4616
4616
  return gen(function* () {
4617
4617
  const command = parseCommand(args);
@@ -5453,9 +5453,9 @@ function changeRequestCommand(args) {
5453
5453
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5454
5454
  });
5455
5455
  }
5456
- var KitWriter = map8(promise(() => import("./chunk-12afnp8q.js")), (build) => build.writeKit);
5456
+ var KitWriter = map8(promise(() => import("./chunk-4c6w8sb7.js")), (build) => build.writeKit);
5457
5457
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5458
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-12afnp8q.js")), (build) => build.buildKit(directory))
5458
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-4c6w8sb7.js")), (build) => build.buildKit(directory))
5459
5459
  });
5460
5460
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5461
5461
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-82w8rmkc.js";
2
+ import"./chunk-r9tzwrnb.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-0n46rkk9.js";
16
- import"./chunk-nf9gdnsf.js";
17
- import"./chunk-zw3gf6r5.js";
15
+ } from "./chunk-f2ycw5bp.js";
16
+ import"./chunk-h7zb6d3z.js";
17
+ import"./chunk-zpp4jg4a.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-zw3gf6r5.js";
28
+ } from "./chunk-zpp4jg4a.js";
29
29
  import {
30
- make11,
30
+ make10,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-nf9gdnsf.js";
33
+ } from "./chunk-h7zb6d3z.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-82w8rmkc.js";
37
+ } from "./chunk-r9tzwrnb.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
173
173
  const spawner = yield* ChildProcessSpawner;
174
174
  const [command, ...args] = opencodeReaderCommand();
175
175
  const handle = yield* spawner.spawn(make3(command, args, {
176
- stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
176
+ stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
177
177
  stderr: "ignore",
178
178
  extendEnv: false,
179
179
  env: {},