@kitman-sh/cli 0.13.18 → 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-940cc29s.js → chunk-099ybrqz.js} +18 -18
  2. package/dist/{chunk-fv2v1sdc.js → chunk-4c6w8sb7.js} +16 -16
  3. package/dist/{chunk-r1s1dcy0.js → chunk-5129s1vg.js} +3 -3
  4. package/dist/{chunk-03hvwd6m.js → chunk-5d2sdzbz.js} +10 -10
  5. package/dist/{chunk-dc0pcs3z.js → chunk-84fcym2g.js} +1 -1
  6. package/dist/{chunk-q5w3v4k1.js → chunk-9avbsbvk.js} +1 -6
  7. package/dist/{chunk-39m1xtbk.js → chunk-9j4cnz4j.js} +135 -65
  8. package/dist/{chunk-gq7y5v3e.js → chunk-bbf0jzsc.js} +1 -1
  9. package/dist/{chunk-vxc2cg5f.js → chunk-bmkc5r0p.js} +9 -9
  10. package/dist/{chunk-rp4tn60z.js → chunk-bscvbpa1.js} +6 -6
  11. package/dist/{chunk-1cbnvby8.js → chunk-c4mf5mgt.js} +2 -2
  12. package/dist/{chunk-gy9rf14f.js → chunk-ctpgfdzf.js} +3 -3
  13. package/dist/{chunk-bc8ytp0y.js → chunk-f2ycw5bp.js} +308 -130
  14. package/dist/{chunk-z1rve2hk.js → chunk-gbr4s7nk.js} +6 -6
  15. package/dist/{chunk-827sgh31.js → chunk-gmdd1a74.js} +1 -1
  16. package/dist/{chunk-hakqpy8z.js → chunk-h7zb6d3z.js} +33 -185
  17. package/dist/{chunk-frjsv0ng.js → chunk-hq2xzj6f.js} +4 -4
  18. package/dist/{chunk-84xks8tn.js → chunk-r9tzwrnb.js} +2 -2
  19. package/dist/{chunk-gqy5shhk.js → chunk-t2zzamex.js} +30 -30
  20. package/dist/{chunk-ynvzbgms.js → chunk-vth8h56e.js} +4 -4
  21. package/dist/{chunk-a7ds2jqf.js → chunk-w34sq09e.js} +8 -8
  22. package/dist/{chunk-7m71m106.js → chunk-w8vxzc7w.js} +27 -14
  23. package/dist/{chunk-be2jf9m3.js → chunk-wb3wsm86.js} +10 -10
  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-rp4tn60z.js";
8
- import"./chunk-940cc29s.js";
9
- import"./chunk-bc8ytp0y.js";
10
- import"./chunk-q5w3v4k1.js";
11
- import"./chunk-hakqpy8z.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.18") => 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,14 +245,9 @@ var makeEquivalence = (equivalence) => {
250
245
  return (self, that) => is(self, that) && is(that, self);
251
246
  };
252
247
 
253
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
254
- var BigInt2 = globalThis.BigInt;
255
- var toNumber = (b) => {
256
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
257
- return none();
258
- }
259
- return some(Number(b));
260
- };
248
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
249
+ var Clock = ClockRef;
250
+ var currentTimeMillis = currentTimeMillis2;
261
251
 
262
252
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
263
253
  var bigint0 = /* @__PURE__ */ BigInt(0);
@@ -379,7 +369,7 @@ var fromStringUnsafe = (input) => {
379
369
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
380
370
  return make(value);
381
371
  };
382
- var fromInputUnsafe2 = (input) => {
372
+ var fromInputUnsafe = (input) => {
383
373
  switch (typeof input) {
384
374
  case "bigint":
385
375
  if (input < bigint0)
@@ -392,7 +382,7 @@ var fromInputUnsafe2 = (input) => {
392
382
  }
393
383
  return invalid(`unsupported input ${input}`);
394
384
  };
395
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
385
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
396
386
 
397
387
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
398
388
  var join = fiberJoin;
@@ -1318,7 +1308,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1318
1308
  return false;
1319
1309
  });
1320
1310
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1321
- const localScope = get4(services, Scope);
1311
+ const localScope = get3(services, Scope);
1322
1312
  const scope = forkUnsafe(self.scope);
1323
1313
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1324
1314
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2775,158 +2765,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2775
2765
  }), catchDone(() => endVoid)));
2776
2766
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2777
2767
 
2778
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2779
- var TypeId8 = "~effect/RcRef";
2780
- var stateEmpty = {
2781
- _tag: "Empty"
2782
- };
2783
- var stateClosed = {
2784
- _tag: "Closed"
2785
- };
2786
- var variance2 = {
2787
- _A: identity,
2788
- _E: identity
2789
- };
2790
-
2791
- class RcRefImpl {
2792
- [TypeId8] = variance2;
2793
- pipe() {
2794
- return pipeArguments(this, arguments);
2795
- }
2796
- state = stateEmpty;
2797
- acquire;
2798
- context;
2799
- scope;
2800
- idleTimeToLive;
2801
- constructor(acquire, context, scope, idleTimeToLive) {
2802
- this.acquire = acquire;
2803
- this.context = context;
2804
- this.scope = scope;
2805
- this.idleTimeToLive = idleTimeToLive;
2806
- }
2807
- }
2808
- var make6 = (options) => withFiber2((fiber) => {
2809
- const context = fiber.context;
2810
- const scope = get4(context, Scope);
2811
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2812
- return as(addFinalizerExit(scope, () => {
2813
- const state = ref.state;
2814
- ref.state = stateClosed;
2815
- if (state._tag === "Acquired")
2816
- return close(state.scope, void_2);
2817
- if (state._tag === "Acquiring")
2818
- return interrupt(state.fiber);
2819
- return void_3;
2820
- }), ref);
2821
- });
2822
- var getState = (self, restore) => {
2823
- switch (self.state._tag) {
2824
- case "Closed": {
2825
- return interrupt3;
2826
- }
2827
- case "Acquired": {
2828
- const state = self.state;
2829
- state.refCount++;
2830
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2831
- }
2832
- case "Acquiring": {
2833
- const state = self.state;
2834
- state.awaiters++;
2835
- return awaitAcquiring(self, state, restore);
2836
- }
2837
- case "Empty": {
2838
- const acquiring = {
2839
- _tag: "Acquiring",
2840
- fiber: undefined,
2841
- awaiters: 1,
2842
- acquired: undefined
2843
- };
2844
- self.state = acquiring;
2845
- const scope = makeUnsafe6();
2846
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2847
- if (self.state !== acquiring) {
2848
- return interrupt3;
2849
- }
2850
- const state = {
2851
- _tag: "Acquired",
2852
- value,
2853
- scope,
2854
- fiber: undefined,
2855
- refCount: acquiring.awaiters,
2856
- invalidated: false
2857
- };
2858
- self.state = state;
2859
- acquiring.acquired = state;
2860
- return succeed6(state);
2861
- }), onExit((exit) => {
2862
- if (isSuccess2(exit))
2863
- return void_3;
2864
- if (self.state === acquiring)
2865
- self.state = stateEmpty;
2866
- return close(scope, exit);
2867
- }));
2868
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2869
- return awaitAcquiring(self, acquiring, restore);
2870
- }
2871
- }
2872
- };
2873
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2874
- const acquired = acquiring.acquired;
2875
- if (acquired !== undefined) {
2876
- return isFailure2(exit) ? release(self, acquired) : void_3;
2877
- }
2878
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
2879
- return void_3;
2880
- self.state = stateEmpty;
2881
- return interrupt(acquiring.fiber);
2882
- });
2883
- var get2 = (self_) => {
2884
- const self = self_;
2885
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2886
- };
2887
- var release = (self, state) => {
2888
- state.refCount--;
2889
- if (state.refCount > 0) {
2890
- return void_3;
2891
- }
2892
- const idleTimeToLive = self.idleTimeToLive;
2893
- if (idleTimeToLive === undefined || state.invalidated) {
2894
- if (self.state === state) {
2895
- self.state = stateEmpty;
2896
- }
2897
- return close(state.scope, void_2);
2898
- } else if (!isFinite(idleTimeToLive)) {
2899
- return void_3;
2900
- }
2901
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2902
- if (self.state === state && state.refCount === 0) {
2903
- self.state = stateEmpty;
2904
- return ignoreCause(close(state.scope, void_2), {
2905
- log: "Unhandled",
2906
- message: "Unhandled error in RcRef finalizer"
2907
- });
2908
- }
2909
- return void_3;
2910
- })).pipe(ensuring2(sync2(() => {
2911
- state.fiber = undefined;
2912
- })), runForkWith(self.context), runIn(self.scope));
2913
- return void_3;
2914
- };
2915
-
2916
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2917
- var make10 = make6;
2918
- var get3 = get2;
2919
-
2920
2768
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2921
- var TypeId9 = "~effect/Stream";
2922
- var isStream = (u) => hasProperty(u, TypeId9);
2769
+ var TypeId8 = "~effect/Stream";
2770
+ var isStream = (u) => hasProperty(u, TypeId8);
2923
2771
  var fromChannel2 = fromChannel3;
2924
2772
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2925
2773
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2926
2774
  var toChannel2 = (stream) => stream.channel;
2927
2775
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2928
2776
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2929
- var make11 = (...values) => fromArray2(values);
2777
+ var make10 = (...values) => fromArray2(values);
2930
2778
  var suspend = (stream) => {
2931
2779
  const suspended = fromChannel2(suspend4(() => stream().channel));
2932
2780
  suspendedStreams.set(suspended, stream);
@@ -3107,11 +2955,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3107
2955
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
3108
2956
 
3109
2957
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3110
- var TypeId10 = "~effect/FileSystem";
2958
+ var TypeId9 = "~effect/FileSystem";
3111
2959
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3112
- var make12 = (impl) => FileSystem.of({
2960
+ var make11 = (impl) => FileSystem.of({
3113
2961
  ...impl,
3114
- [TypeId10]: TypeId10,
2962
+ [TypeId9]: TypeId9,
3115
2963
  glob: make2(impl),
3116
2964
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3117
2965
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -3127,11 +2975,11 @@ var make12 = (impl) => FileSystem.of({
3127
2975
  const file = yield* impl.open(path, {
3128
2976
  flag: "r"
3129
2977
  });
3130
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2978
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3131
2979
  if (offset) {
3132
2980
  yield* file.seek(offset, "start");
3133
2981
  }
3134
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2982
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3135
2983
  let totalBytesRead = BigInt(0);
3136
2984
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3137
2985
  const readChunk = file.readAlloc(chunkSize);
@@ -3167,11 +3015,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3167
3015
  }
3168
3016
 
3169
3017
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3170
- var TypeId11 = "~effect/Path";
3018
+ var TypeId10 = "~effect/Path";
3171
3019
  var Path = /* @__PURE__ */ Service2("effect/Path");
3172
- var make13 = (impl) => Path.of({
3020
+ var make12 = (impl) => Path.of({
3173
3021
  ...impl,
3174
- [TypeId11]: TypeId11,
3022
+ [TypeId10]: TypeId10,
3175
3023
  resolveWithin(root, input) {
3176
3024
  if (impl.parse(input).root !== "")
3177
3025
  return none();
@@ -3244,7 +3092,7 @@ function makeProvider(load, mapInput) {
3244
3092
  function makeSource(get, transform) {
3245
3093
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3246
3094
  }
3247
- function make7(get) {
3095
+ function make6(get) {
3248
3096
  return makeSource(get, identityPath);
3249
3097
  }
3250
3098
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3253,7 +3101,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3253
3101
  function fromEnvRecord(env, options) {
3254
3102
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3255
3103
  const trie = buildEnvTrie(env);
3256
- return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3104
+ return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3257
3105
  }
3258
3106
  function fromEnv(options) {
3259
3107
  const env = options?.env ?? {
@@ -3306,7 +3154,7 @@ function trieNodeAt(root, path) {
3306
3154
  }
3307
3155
 
3308
3156
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3309
- var TypeId12 = "~effect/Config";
3157
+ var TypeId11 = "~effect/Config";
3310
3158
  class ConfigError {
3311
3159
  _tag = "ConfigError";
3312
3160
  name = "ConfigError";
@@ -3328,14 +3176,14 @@ var Proto2 = {
3328
3176
  return this.parse(fiber.getRef(ConfigProvider));
3329
3177
  }
3330
3178
  }),
3331
- [TypeId12]: TypeId12,
3179
+ [TypeId11]: TypeId11,
3332
3180
  toJSON() {
3333
3181
  return {
3334
3182
  _id: "Config"
3335
3183
  };
3336
3184
  }
3337
3185
  };
3338
- function make14(evaluator) {
3186
+ function make7(evaluator) {
3339
3187
  const self = Object.create(Proto2);
3340
3188
  self.evaluator = evaluator;
3341
3189
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3343,14 +3191,14 @@ function make14(evaluator) {
3343
3191
  }
3344
3192
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3345
3193
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3346
- return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3194
+ return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3347
3195
  });
3348
3196
  function all(arg) {
3349
3197
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3350
- 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));
3351
3199
  }
3352
3200
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3353
- 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));
3354
3202
  });
3355
3203
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3356
3204
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3467,9 +3315,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3467
3315
  function schema(codec, path) {
3468
3316
  const codecStringTree = toCodecStringTree(codec);
3469
3317
  const encodedAst = toEncoded(codecStringTree.ast);
3470
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3318
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3471
3319
  const localPath = typeof path === "string" ? [path] : path ?? [];
3472
- return make14((provider, pathPrefix) => {
3320
+ return make7((provider, pathPrefix) => {
3473
3321
  const fullPath = [...pathPrefix, ...localPath];
3474
3322
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3475
3323
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3584,4 +3432,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3584
3432
  ...argv
3585
3433
  ];
3586
3434
 
3587
- export { map, makeEquivalence, toNumber, 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-a7ds2jqf.js";
11
- import"./chunk-84xks8tn.js";
12
- import"./chunk-hakqpy8z.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-hakqpy8z.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-hakqpy8z.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-bc8ytp0y.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-84xks8tn.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-ynvzbgms.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-ynvzbgms.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-be2jf9m3.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.18";
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-39m1xtbk.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-z1rve2hk.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-7m71m106.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-dc0pcs3z.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-fv2v1sdc.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-fv2v1sdc.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-84xks8tn.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-bc8ytp0y.js";
16
- import"./chunk-hakqpy8z.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,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make11,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-hakqpy8z.js";
7
2
  import {
8
3
  getOrUndefined,
9
4
  liftThrowable,
@@ -30,11 +25,16 @@ import {
30
25
  isJsonObject,
31
26
  isString2,
32
27
  encodeUnknownJsonStringSync
33
- } from "./chunk-zw3gf6r5.js";
28
+ } from "./chunk-zpp4jg4a.js";
29
+ import {
30
+ make10,
31
+ runForEach,
32
+ compiled2
33
+ } from "./chunk-h7zb6d3z.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-84xks8tn.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: {},