@kitman-sh/cli 0.14.0 → 0.14.1

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-9j4cnz4j.js → chunk-0axm9scx.js} +38 -32
  2. package/dist/{chunk-w8vxzc7w.js → chunk-27k0egfz.js} +13 -13
  3. package/dist/{chunk-r9tzwrnb.js → chunk-4qpmjrd2.js} +2 -2
  4. package/dist/{chunk-bmkc5r0p.js → chunk-5jqqhvv2.js} +4 -4
  5. package/dist/{chunk-gbr4s7nk.js → chunk-5x44qb6d.js} +6 -6
  6. package/dist/{chunk-w34sq09e.js → chunk-77jk3v8v.js} +5 -5
  7. package/dist/{chunk-ctpgfdzf.js → chunk-93xj74qp.js} +3 -3
  8. package/dist/{chunk-t2zzamex.js → chunk-a9srrnsk.js} +30 -30
  9. package/dist/{chunk-9avbsbvk.js → chunk-c80dvhxf.js} +6 -1
  10. package/dist/{chunk-y0y2gg8d.js → chunk-cwdrhsvk.js} +2 -2
  11. package/dist/{chunk-wb3wsm86.js → chunk-enabwyrn.js} +7 -7
  12. package/dist/{chunk-f2ycw5bp.js → chunk-f1y7ysjg.js} +129 -280
  13. package/dist/{chunk-c4mf5mgt.js → chunk-fch7pjzh.js} +2 -2
  14. package/dist/{chunk-gmdd1a74.js → chunk-gvs5fcvy.js} +2 -2
  15. package/dist/{chunk-vth8h56e.js → chunk-jnpv483d.js} +4 -4
  16. package/dist/{chunk-hq2xzj6f.js → chunk-jp7cjnng.js} +4 -4
  17. package/dist/{chunk-84fcym2g.js → chunk-kwkh8hxt.js} +1 -1
  18. package/dist/{chunk-5d2sdzbz.js → chunk-nvncrs4n.js} +7 -7
  19. package/dist/{chunk-5129s1vg.js → chunk-pyss20q2.js} +3 -3
  20. package/dist/{chunk-h7zb6d3z.js → chunk-rbbh4f56.js} +177 -34
  21. package/dist/{chunk-bbf0jzsc.js → chunk-vt8aqeby.js} +1 -1
  22. package/dist/{chunk-bscvbpa1.js → chunk-vx4qe0fe.js} +6 -6
  23. package/dist/{chunk-zpp4jg4a.js → chunk-wttgq85b.js} +60 -60
  24. package/dist/{chunk-099ybrqz.js → chunk-zr59g5bk.js} +18 -18
  25. package/dist/{chunk-4c6w8sb7.js → chunk-zw2mzy00.js} +9 -9
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-h7zb6d3z.js";
18
- import"./chunk-zpp4jg4a.js";
17
+ } from "./chunk-rbbh4f56.js";
18
+ import"./chunk-wttgq85b.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -737,7 +737,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
737
737
  path: "runner-operations#harnesses",
738
738
  level: 3,
739
739
  link: "https://kitman.sh/knowledge/docs/runner-operations#harnesses",
740
- text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code and Codex that is installed and logged in:\n\n| Harness | Installed when | Logged in when |\n| ----------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pi | `pi` is on `PATH` | `~/.pi/agent/auth.json` exists, or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY` is set |\n| Claude Code | `claude` is on `PATH` | `~/.claude/.credentials.json` exists, `~/.claude.json` records an `oauthAccount`, or `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` is set |\n| Codex | `codex` is on `PATH` | `~/.codex/auth.json` exists, or `OPENAI_API_KEY` or `CODEX_API_KEY` is set |\n\nFor each Harness it does not offer, the Runner reports what is missing, and the Runners tab under **Agents** and `kitman runner doctor` show it. After you install or log in to a Harness, restart the Runner's service so it is detected. OpenCode is never detected; an Agent that names it still launches it on a Runner that offers it."
740
+ text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code and Codex that is installed and logged in:\n\n| Harness | Installed when | Logged in when |\n| ----------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pi | `pi` is on `PATH` | `~/.pi/agent/auth.json` exists, or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY` is set |\n| Claude Code | `claude` is on `PATH` | `~/.claude/.credentials.json` exists, `~/.claude.json` records an `oauthAccount`, or `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` is set |\n| Codex | `codex` is on `PATH` | `~/.codex/auth.json` exists, or `OPENAI_API_KEY` or `CODEX_API_KEY` is set |\n\nFor each Harness it does not offer, the Runner reports what is missing, and the Runners tab under **Agents** and `kitman runner doctor` show it. After you install or log in to a Harness, restart the Runner's service so it is detected. OpenCode is never detected; an Agent that names it still launches it on a Runner that offers it.\n\nA Claude Code Step runs in Claude Code's experimental Code Mode: its agent writes JavaScript that calls its tools in one `REPL` call, instead of calling them one at a time. The Runner records Code Mode's caveats as accepted in the Step's `.claude.json`, so the Step never stops at its opt-in question. Code Mode turns Claude in Chrome off, so a Step whose Agent has the `browser` capability runs without it."
741
741
  },
742
742
  {
743
743
  title: "Runner Operations Guide \u203A Default Harness",
@@ -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.14.0") => 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.1") => 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) {
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-r9tzwrnb.js";
2
+ import"./chunk-4qpmjrd2.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-f2ycw5bp.js";
16
- import"./chunk-h7zb6d3z.js";
17
- import"./chunk-zpp4jg4a.js";
15
+ } from "./chunk-f1y7ysjg.js";
16
+ import"./chunk-rbbh4f56.js";
17
+ import"./chunk-wttgq85b.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-w34sq09e.js";
11
- import"./chunk-r9tzwrnb.js";
12
- import"./chunk-h7zb6d3z.js";
13
- import"./chunk-zpp4jg4a.js";
10
+ } from "./chunk-77jk3v8v.js";
11
+ import"./chunk-4qpmjrd2.js";
12
+ import"./chunk-rbbh4f56.js";
13
+ import"./chunk-wttgq85b.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-gmdd1a74.js";
7
+ } from "./chunk-gvs5fcvy.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -75,8 +75,12 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-zpp4jg4a.js";
78
+ } from "./chunk-wttgq85b.js";
79
79
  import {
80
+ guard
81
+ } from "./chunk-c80dvhxf.js";
82
+ import {
83
+ currentTimeMillis,
80
84
  WebCrypto,
81
85
  SafeJson,
82
86
  AgentSandboxNetwork,
@@ -101,15 +105,11 @@ import {
101
105
  KitDigest,
102
106
  KitSetup,
103
107
  RunnerRpcError
104
- } from "./chunk-f2ycw5bp.js";
108
+ } from "./chunk-f1y7ysjg.js";
105
109
  import {
106
- currentTimeMillis,
107
110
  runForEach,
108
111
  FileSystem
109
- } from "./chunk-h7zb6d3z.js";
110
- import {
111
- guard
112
- } from "./chunk-9avbsbvk.js";
112
+ } from "./chunk-rbbh4f56.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zpp4jg4a.js";
27
+ } from "./chunk-wttgq85b.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-h7zb6d3z.js";
31
+ } from "./chunk-rbbh4f56.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-f2ycw5bp.js";
42
+ } from "./chunk-f1y7ysjg.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -34,8 +34,11 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- get3,
37
+ add,
38
+ get4,
38
39
  Reference,
40
+ fromInputUnsafe,
41
+ isFinite,
39
42
  normalize,
40
43
  succeed,
41
44
  fail3,
@@ -76,13 +79,12 @@ import {
76
79
  fiberRunIn,
77
80
  makeLatchUnsafe,
78
81
  makeLatch,
79
- ClockRef,
80
- currentTimeMillis2,
81
82
  succeed3,
82
83
  failCause2,
83
84
  fail4,
84
85
  interrupt2,
85
86
  void_2,
87
+ isSuccess2,
86
88
  isFailure2,
87
89
  asVoidAll,
88
90
  makeUnsafe5,
@@ -154,12 +156,14 @@ import {
154
156
  tapError2,
155
157
  ignoreCause,
156
158
  orElseSucceed,
159
+ sleep,
157
160
  raceFirst,
158
161
  when,
159
162
  matchCauseEffect,
160
163
  context,
161
164
  contextWith,
162
165
  provideContext2,
166
+ scope2,
163
167
  scoped,
164
168
  scopedWith,
165
169
  acquireRelease,
@@ -170,6 +174,7 @@ import {
170
174
  interrupt3,
171
175
  onInterrupt,
172
176
  uninterruptible,
177
+ uninterruptibleMask2,
173
178
  forever,
174
179
  forkChild,
175
180
  forkIn,
@@ -192,11 +197,11 @@ import {
192
197
  toEncoded,
193
198
  decodeUnknownEffect,
194
199
  SchemaError,
195
- make16,
200
+ make17,
196
201
  String4,
197
202
  toCodecStringTree,
198
203
  encodeUnknownJsonStringSync
199
- } from "./chunk-zpp4jg4a.js";
204
+ } from "./chunk-wttgq85b.js";
200
205
 
201
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
202
207
  var headUnsafe = (self) => {
@@ -245,10 +250,6 @@ var makeEquivalence = (equivalence) => {
245
250
  return (self, that) => is(self, that) && is(that, self);
246
251
  };
247
252
 
248
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
249
- var Clock = ClockRef;
250
- var currentTimeMillis = currentTimeMillis2;
251
-
252
253
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
253
254
  var bigint0 = /* @__PURE__ */ BigInt(0);
254
255
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -369,7 +370,7 @@ var fromStringUnsafe = (input) => {
369
370
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
370
371
  return make(value);
371
372
  };
372
- var fromInputUnsafe = (input) => {
373
+ var fromInputUnsafe2 = (input) => {
373
374
  switch (typeof input) {
374
375
  case "bigint":
375
376
  if (input < bigint0)
@@ -382,7 +383,7 @@ var fromInputUnsafe = (input) => {
382
383
  }
383
384
  return invalid(`unsupported input ${input}`);
384
385
  };
385
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
386
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
386
387
 
387
388
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
388
389
  var join = fiberJoin;
@@ -1308,7 +1309,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1308
1309
  return false;
1309
1310
  });
1310
1311
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1311
- const localScope = get3(services, Scope);
1312
+ const localScope = get4(services, Scope);
1312
1313
  const scope = forkUnsafe(self.scope);
1313
1314
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1314
1315
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2765,16 +2766,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2765
2766
  }), catchDone(() => endVoid)));
2766
2767
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2767
2768
 
2769
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2770
+ var TypeId8 = "~effect/RcRef";
2771
+ var stateEmpty = {
2772
+ _tag: "Empty"
2773
+ };
2774
+ var stateClosed = {
2775
+ _tag: "Closed"
2776
+ };
2777
+ var variance2 = {
2778
+ _A: identity,
2779
+ _E: identity
2780
+ };
2781
+
2782
+ class RcRefImpl {
2783
+ [TypeId8] = variance2;
2784
+ pipe() {
2785
+ return pipeArguments(this, arguments);
2786
+ }
2787
+ state = stateEmpty;
2788
+ acquire;
2789
+ context;
2790
+ scope;
2791
+ idleTimeToLive;
2792
+ constructor(acquire, context, scope, idleTimeToLive) {
2793
+ this.acquire = acquire;
2794
+ this.context = context;
2795
+ this.scope = scope;
2796
+ this.idleTimeToLive = idleTimeToLive;
2797
+ }
2798
+ }
2799
+ var make6 = (options) => withFiber2((fiber) => {
2800
+ const context = fiber.context;
2801
+ const scope = get4(context, Scope);
2802
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2803
+ return as(addFinalizerExit(scope, () => {
2804
+ const state = ref.state;
2805
+ ref.state = stateClosed;
2806
+ if (state._tag === "Acquired")
2807
+ return close(state.scope, void_2);
2808
+ if (state._tag === "Acquiring")
2809
+ return interrupt(state.fiber);
2810
+ return void_3;
2811
+ }), ref);
2812
+ });
2813
+ var getState = (self, restore) => {
2814
+ switch (self.state._tag) {
2815
+ case "Closed": {
2816
+ return interrupt3;
2817
+ }
2818
+ case "Acquired": {
2819
+ const state = self.state;
2820
+ state.refCount++;
2821
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2822
+ }
2823
+ case "Acquiring": {
2824
+ const state = self.state;
2825
+ state.awaiters++;
2826
+ return awaitAcquiring(self, state, restore);
2827
+ }
2828
+ case "Empty": {
2829
+ const acquiring = {
2830
+ _tag: "Acquiring",
2831
+ fiber: undefined,
2832
+ awaiters: 1,
2833
+ acquired: undefined
2834
+ };
2835
+ self.state = acquiring;
2836
+ const scope = makeUnsafe6();
2837
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2838
+ if (self.state !== acquiring) {
2839
+ return interrupt3;
2840
+ }
2841
+ const state = {
2842
+ _tag: "Acquired",
2843
+ value,
2844
+ scope,
2845
+ fiber: undefined,
2846
+ refCount: acquiring.awaiters,
2847
+ invalidated: false
2848
+ };
2849
+ self.state = state;
2850
+ acquiring.acquired = state;
2851
+ return succeed6(state);
2852
+ }), onExit((exit) => {
2853
+ if (isSuccess2(exit))
2854
+ return void_3;
2855
+ if (self.state === acquiring)
2856
+ self.state = stateEmpty;
2857
+ return close(scope, exit);
2858
+ }));
2859
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2860
+ return awaitAcquiring(self, acquiring, restore);
2861
+ }
2862
+ }
2863
+ };
2864
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2865
+ const acquired = acquiring.acquired;
2866
+ if (acquired !== undefined) {
2867
+ return isFailure2(exit) ? release(self, acquired) : void_3;
2868
+ }
2869
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
2870
+ return void_3;
2871
+ self.state = stateEmpty;
2872
+ return interrupt(acquiring.fiber);
2873
+ });
2874
+ var get2 = (self_) => {
2875
+ const self = self_;
2876
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2877
+ };
2878
+ var release = (self, state) => {
2879
+ state.refCount--;
2880
+ if (state.refCount > 0) {
2881
+ return void_3;
2882
+ }
2883
+ const idleTimeToLive = self.idleTimeToLive;
2884
+ if (idleTimeToLive === undefined || state.invalidated) {
2885
+ if (self.state === state) {
2886
+ self.state = stateEmpty;
2887
+ }
2888
+ return close(state.scope, void_2);
2889
+ } else if (!isFinite(idleTimeToLive)) {
2890
+ return void_3;
2891
+ }
2892
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2893
+ if (self.state === state && state.refCount === 0) {
2894
+ self.state = stateEmpty;
2895
+ return ignoreCause(close(state.scope, void_2), {
2896
+ log: "Unhandled",
2897
+ message: "Unhandled error in RcRef finalizer"
2898
+ });
2899
+ }
2900
+ return void_3;
2901
+ })).pipe(ensuring2(sync2(() => {
2902
+ state.fiber = undefined;
2903
+ })), runForkWith(self.context), runIn(self.scope));
2904
+ return void_3;
2905
+ };
2906
+
2907
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2908
+ var make10 = make6;
2909
+ var get3 = get2;
2910
+
2768
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2769
- var TypeId8 = "~effect/Stream";
2770
- var isStream = (u) => hasProperty(u, TypeId8);
2912
+ var TypeId9 = "~effect/Stream";
2913
+ var isStream = (u) => hasProperty(u, TypeId9);
2771
2914
  var fromChannel2 = fromChannel3;
2772
2915
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2773
2916
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2774
2917
  var toChannel2 = (stream) => stream.channel;
2775
2918
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2776
2919
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2777
- var make10 = (...values) => fromArray2(values);
2920
+ var make11 = (...values) => fromArray2(values);
2778
2921
  var suspend = (stream) => {
2779
2922
  const suspended = fromChannel2(suspend4(() => stream().channel));
2780
2923
  suspendedStreams.set(suspended, stream);
@@ -2955,11 +3098,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2955
3098
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2956
3099
 
2957
3100
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2958
- var TypeId9 = "~effect/FileSystem";
3101
+ var TypeId10 = "~effect/FileSystem";
2959
3102
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2960
- var make11 = (impl) => FileSystem.of({
3103
+ var make12 = (impl) => FileSystem.of({
2961
3104
  ...impl,
2962
- [TypeId9]: TypeId9,
3105
+ [TypeId10]: TypeId10,
2963
3106
  glob: make2(impl),
2964
3107
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2965
3108
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -2975,11 +3118,11 @@ var make11 = (impl) => FileSystem.of({
2975
3118
  const file = yield* impl.open(path, {
2976
3119
  flag: "r"
2977
3120
  });
2978
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3121
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2979
3122
  if (offset) {
2980
3123
  yield* file.seek(offset, "start");
2981
3124
  }
2982
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3125
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2983
3126
  let totalBytesRead = BigInt(0);
2984
3127
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2985
3128
  const readChunk = file.readAlloc(chunkSize);
@@ -3015,11 +3158,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3015
3158
  }
3016
3159
 
3017
3160
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3018
- var TypeId10 = "~effect/Path";
3161
+ var TypeId11 = "~effect/Path";
3019
3162
  var Path = /* @__PURE__ */ Service2("effect/Path");
3020
- var make12 = (impl) => Path.of({
3163
+ var make13 = (impl) => Path.of({
3021
3164
  ...impl,
3022
- [TypeId10]: TypeId10,
3165
+ [TypeId11]: TypeId11,
3023
3166
  resolveWithin(root, input) {
3024
3167
  if (impl.parse(input).root !== "")
3025
3168
  return none();
@@ -3092,7 +3235,7 @@ function makeProvider(load, mapInput) {
3092
3235
  function makeSource(get, transform) {
3093
3236
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3094
3237
  }
3095
- function make6(get) {
3238
+ function make7(get) {
3096
3239
  return makeSource(get, identityPath);
3097
3240
  }
3098
3241
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3101,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3101
3244
  function fromEnvRecord(env, options) {
3102
3245
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3103
3246
  const trie = buildEnvTrie(env);
3104
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3247
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3105
3248
  }
3106
3249
  function fromEnv(options) {
3107
3250
  const env = options?.env ?? {
@@ -3154,7 +3297,7 @@ function trieNodeAt(root, path) {
3154
3297
  }
3155
3298
 
3156
3299
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3157
- var TypeId11 = "~effect/Config";
3300
+ var TypeId12 = "~effect/Config";
3158
3301
  class ConfigError {
3159
3302
  _tag = "ConfigError";
3160
3303
  name = "ConfigError";
@@ -3176,14 +3319,14 @@ var Proto2 = {
3176
3319
  return this.parse(fiber.getRef(ConfigProvider));
3177
3320
  }
3178
3321
  }),
3179
- [TypeId11]: TypeId11,
3322
+ [TypeId12]: TypeId12,
3180
3323
  toJSON() {
3181
3324
  return {
3182
3325
  _id: "Config"
3183
3326
  };
3184
3327
  }
3185
3328
  };
3186
- function make7(evaluator) {
3329
+ function make14(evaluator) {
3187
3330
  const self = Object.create(Proto2);
3188
3331
  self.evaluator = evaluator;
3189
3332
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3191,14 +3334,14 @@ function make7(evaluator) {
3191
3334
  }
3192
3335
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3193
3336
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3194
- return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3337
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3195
3338
  });
3196
3339
  function all(arg) {
3197
3340
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3198
- return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3341
+ return make14((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3199
3342
  }
3200
3343
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3201
- return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3344
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3202
3345
  });
3203
3346
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3204
3347
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3315,9 +3458,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3315
3458
  function schema(codec, path) {
3316
3459
  const codecStringTree = toCodecStringTree(codec);
3317
3460
  const encodedAst = toEncoded(codecStringTree.ast);
3318
- const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3461
+ const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3319
3462
  const localPath = typeof path === "string" ? [path] : path ?? [];
3320
- return make7((provider, pathPrefix) => {
3463
+ return make14((provider, pathPrefix) => {
3321
3464
  const fullPath = [...pathPrefix, ...localPath];
3322
3465
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3323
3466
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3432,4 +3575,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3432
3575
  ...argv
3433
3576
  ];
3434
3577
 
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 };
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 };
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zpp4jg4a.js";
6
+ } from "./chunk-wttgq85b.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -6,7 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zpp4jg4a.js";
9
+ } from "./chunk-wttgq85b.js";
10
+ import {
11
+ runForEach
12
+ } from "./chunk-rbbh4f56.js";
10
13
  import {
11
14
  WebSocketConstructor,
12
15
  layerWebSocketConstructorGlobal,
@@ -16,16 +19,13 @@ import {
16
19
  RunnerReplicaRpcs,
17
20
  RunnerRunFileRpcs,
18
21
  ProgramRpcs
19
- } from "./chunk-f2ycw5bp.js";
20
- import {
21
- runForEach
22
- } from "./chunk-h7zb6d3z.js";
22
+ } from "./chunk-f1y7ysjg.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-099ybrqz.js";
28
+ } from "./chunk-zr59g5bk.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {