@kitman-sh/cli 0.12.0-rc.5 → 0.12.0-rc.7

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 (28) hide show
  1. package/dist/{chunk-2s4x5t92.js → chunk-0346hwh6.js} +5 -5
  2. package/dist/{chunk-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
  3. package/dist/{chunk-dd8hae73.js → chunk-15geyg2d.js} +119 -92
  4. package/dist/{chunk-77k89h98.js → chunk-1t12wvv1.js} +117 -264
  5. package/dist/{chunk-x70r99jg.js → chunk-2e91ymwn.js} +1 -1
  6. package/dist/{chunk-nc1rxeav.js → chunk-4w4spvb1.js} +6 -6
  7. package/dist/{chunk-3530xts6.js → chunk-56knbdt6.js} +9 -9
  8. package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
  9. package/dist/{chunk-bbadvwds.js → chunk-8twjqszj.js} +1 -1
  10. package/dist/{chunk-kvm7j3ed.js → chunk-bheg4ybe.js} +17 -17
  11. package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
  12. package/dist/{chunk-6x9e1etb.js → chunk-e4an66v2.js} +3 -3
  13. package/dist/{chunk-s661f8p0.js → chunk-ewhzaqp3.js} +2 -2
  14. package/dist/{chunk-5zzfsv07.js → chunk-gspfm7qh.js} +177 -37
  15. package/dist/{chunk-k9jd2dm0.js → chunk-j5t5nye5.js} +4 -4
  16. package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
  17. package/dist/{chunk-gr816kwr.js → chunk-pd2vz4bm.js} +10 -10
  18. package/dist/{chunk-hrds2xy2.js → chunk-qrm334c6.js} +7 -7
  19. package/dist/{chunk-e838cw9z.js → chunk-r5sw3fe0.js} +11 -11
  20. package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
  21. package/dist/{chunk-s1pjsak4.js → chunk-wc2kba4z.js} +7 -7
  22. package/dist/{chunk-yafg281p.js → chunk-xcf887a4.js} +18 -18
  23. package/dist/{chunk-26mj3vr6.js → chunk-xe8qf2xy.js} +21 -21
  24. package/dist/{chunk-y2mkzww9.js → chunk-xwya1er0.js} +2 -2
  25. package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
  26. package/dist/{chunk-31hk2bjb.js → chunk-znar1th3.js} +4 -4
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -1444,7 +1444,7 @@ var pathOfLink = (link) => {
1444
1444
  return page === null ? link : page[1] || "index";
1445
1445
  };
1446
1446
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1447
- var pinnedLink2 = (link, version = "0.12.0-rc.5") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1447
+ var pinnedLink2 = (link, version = "0.12.0-rc.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1448
1448
  var pageOf = (path) => path.split("#")[0];
1449
1449
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1450
1450
  function excerpt(text, queryTerms) {
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-txyp31q5.js";
99
+ } from "./chunk-vtfwjhzh.js";
100
100
  import {
101
101
  interrupt,
102
102
  getCurrent,
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-5zzfsv07.js";
111
+ } from "./chunk-gspfm7qh.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-77k89h98.js";
126
+ } from "./chunk-1t12wvv1.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get3(services, Scope);
240
+ const scope = get4(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
646
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make10,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-5zzfsv07.js";
7
2
  import {
8
3
  getOrUndefined,
9
4
  liftThrowable,
@@ -27,16 +22,21 @@ import {
27
22
  NullOr,
28
23
  Finite,
29
24
  encodeUnknownJsonStringSync
30
- } from "./chunk-txyp31q5.js";
25
+ } from "./chunk-vtfwjhzh.js";
31
26
  import {
32
27
  isNumber,
33
28
  isJsonObject,
34
29
  isString
35
- } from "./chunk-xmq9zpr1.js";
30
+ } from "./chunk-c6rbt85q.js";
31
+ import {
32
+ make11,
33
+ runForEach,
34
+ compiled2
35
+ } from "./chunk-gspfm7qh.js";
36
36
  import {
37
37
  ChildProcessSpawner,
38
38
  make3
39
- } from "./chunk-y2mkzww9.js";
39
+ } from "./chunk-xwya1er0.js";
40
40
 
41
41
  // packages/agent-runtime/src/opencode-store.ts
42
42
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -170,7 +170,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
170
170
  const spawner = yield* ChildProcessSpawner;
171
171
  const [command, ...args] = opencodeReaderCommand();
172
172
  const handle = yield* spawner.spawn(make3(command, args, {
173
- stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
173
+ stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
174
174
  stderr: "ignore",
175
175
  extendEnv: false,
176
176
  env: {},
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-txyp31q5.js";
16
+ } from "./chunk-vtfwjhzh.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-bv9e34qz.js";
20
+ } from "./chunk-0qz10ek8.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-x70r99jg.js";
7
+ } from "./chunk-2e91ymwn.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-5zzfsv07.js";
10
2
  import {
11
3
  isString2,
12
4
  hasProperty,
@@ -40,9 +32,17 @@ import {
40
32
  toCodecJson,
41
33
  Json,
42
34
  encodePrettyJsonString
43
- } from "./chunk-txyp31q5.js";
44
- import"./chunk-bv9e34qz.js";
45
- import"./chunk-xmq9zpr1.js";
35
+ } from "./chunk-vtfwjhzh.js";
36
+ import"./chunk-0qz10ek8.js";
37
+ import"./chunk-c6rbt85q.js";
38
+ import {
39
+ decodeText,
40
+ mkString,
41
+ FileSystem,
42
+ Path,
43
+ withDefault,
44
+ String2
45
+ } from "./chunk-gspfm7qh.js";
46
46
  import {
47
47
  SecureRandom,
48
48
  layerWebCrypto,
@@ -54,23 +54,23 @@ import {
54
54
  layer4,
55
55
  kitmanMcpServer,
56
56
  RunnerRpcProtocolVersion
57
- } from "./chunk-77k89h98.js";
57
+ } from "./chunk-1t12wvv1.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-6x9e1etb.js";
62
- import"./chunk-k9jd2dm0.js";
61
+ } from "./chunk-e4an66v2.js";
62
+ import"./chunk-j5t5nye5.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-hrds2xy2.js";
68
+ } from "./chunk-qrm334c6.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
71
  make3
72
- } from "./chunk-y2mkzww9.js";
73
- import"./chunk-nc1rxeav.js";
72
+ } from "./chunk-xwya1er0.js";
73
+ import"./chunk-4w4spvb1.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -8,7 +8,7 @@ import {
8
8
  isFunction2,
9
9
  isUndefined2,
10
10
  isObjectOrArray
11
- } from "./chunk-txyp31q5.js";
11
+ } from "./chunk-vtfwjhzh.js";
12
12
 
13
13
  // packages/core/src/runtime-type.ts
14
14
  var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-txyp31q5.js";
27
+ } from "./chunk-vtfwjhzh.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-5zzfsv07.js";
31
+ } from "./chunk-gspfm7qh.js";
32
32
  import {
33
33
  digestSha256,
34
34
  digestSha512,
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-77k89h98.js";
41
+ } from "./chunk-1t12wvv1.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-5zzfsv07.js";
18
- import"./chunk-txyp31q5.js";
17
+ } from "./chunk-gspfm7qh.js";
18
+ import"./chunk-vtfwjhzh.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -34,8 +34,11 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- get3,
37
+ add,
38
+ get4,
38
39
  Reference,
40
+ fromInputUnsafe,
41
+ isFinite,
39
42
  normalize,
40
43
  succeed,
41
44
  fail3,
@@ -81,6 +84,7 @@ import {
81
84
  fail4,
82
85
  interrupt2,
83
86
  void_2,
87
+ isSuccess2,
84
88
  isFailure2,
85
89
  asVoidAll,
86
90
  makeUnsafe5,
@@ -152,12 +156,14 @@ import {
152
156
  tapError2,
153
157
  ignoreCause,
154
158
  orElseSucceed,
159
+ sleep,
155
160
  raceFirst,
156
161
  when,
157
162
  matchCauseEffect,
158
163
  context,
159
164
  contextWith,
160
165
  provideContext2,
166
+ scope2,
161
167
  scoped,
162
168
  scopedWith,
163
169
  acquireRelease,
@@ -168,6 +174,7 @@ import {
168
174
  interrupt3,
169
175
  onInterrupt,
170
176
  uninterruptible,
177
+ uninterruptibleMask2,
171
178
  forever,
172
179
  forkChild,
173
180
  forkIn,
@@ -190,11 +197,11 @@ import {
190
197
  toEncoded,
191
198
  decodeUnknownEffect,
192
199
  SchemaError,
193
- make16,
200
+ make17,
194
201
  String4,
195
202
  toCodecStringTree,
196
203
  encodeUnknownJsonStringSync
197
- } from "./chunk-txyp31q5.js";
204
+ } from "./chunk-vtfwjhzh.js";
198
205
 
199
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
200
207
  var headUnsafe = (self) => {
@@ -243,15 +250,6 @@ var makeEquivalence = (equivalence) => {
243
250
  return (self, that) => is(self, that) && is(that, self);
244
251
  };
245
252
 
246
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
247
- var BigInt2 = globalThis.BigInt;
248
- var toNumber = (b) => {
249
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
250
- return none();
251
- }
252
- return some(Number(b));
253
- };
254
-
255
253
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
256
254
  var bigint0 = /* @__PURE__ */ BigInt(0);
257
255
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -372,7 +370,7 @@ var fromStringUnsafe = (input) => {
372
370
  return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
373
371
  return make(value);
374
372
  };
375
- var fromInputUnsafe = (input) => {
373
+ var fromInputUnsafe2 = (input) => {
376
374
  switch (typeof input) {
377
375
  case "bigint":
378
376
  if (input < bigint0)
@@ -385,7 +383,7 @@ var fromInputUnsafe = (input) => {
385
383
  }
386
384
  return invalid(`unsupported input ${input}`);
387
385
  };
388
- var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
386
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
389
387
 
390
388
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
391
389
  var join = fiberJoin;
@@ -1311,7 +1309,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1311
1309
  return false;
1312
1310
  });
1313
1311
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1314
- const localScope = get3(services, Scope);
1312
+ const localScope = get4(services, Scope);
1315
1313
  const scope = forkUnsafe(self.scope);
1316
1314
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1317
1315
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -2768,16 +2766,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2768
2766
  }), catchDone(() => endVoid)));
2769
2767
  var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2770
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
+
2771
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2772
- var TypeId8 = "~effect/Stream";
2773
- var isStream = (u) => hasProperty(u, TypeId8);
2912
+ var TypeId9 = "~effect/Stream";
2913
+ var isStream = (u) => hasProperty(u, TypeId9);
2774
2914
  var fromChannel2 = fromChannel3;
2775
2915
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2776
2916
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
2777
2917
  var toChannel2 = (stream) => stream.channel;
2778
2918
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2779
2919
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2780
- var make10 = (...values) => fromArray2(values);
2920
+ var make11 = (...values) => fromArray2(values);
2781
2921
  var suspend = (stream) => {
2782
2922
  const suspended = fromChannel2(suspend4(() => stream().channel));
2783
2923
  suspendedStreams.set(suspended, stream);
@@ -2940,11 +3080,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2940
3080
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2941
3081
 
2942
3082
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2943
- var TypeId9 = "~effect/FileSystem";
3083
+ var TypeId10 = "~effect/FileSystem";
2944
3084
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2945
- var make11 = (impl) => FileSystem.of({
3085
+ var make12 = (impl) => FileSystem.of({
2946
3086
  ...impl,
2947
- [TypeId9]: TypeId9,
3087
+ [TypeId10]: TypeId10,
2948
3088
  glob: make2(impl),
2949
3089
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2950
3090
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
@@ -2960,11 +3100,11 @@ var make11 = (impl) => FileSystem.of({
2960
3100
  const file = yield* impl.open(path, {
2961
3101
  flag: "r"
2962
3102
  });
2963
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3103
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2964
3104
  if (offset) {
2965
3105
  yield* file.seek(offset, "start");
2966
3106
  }
2967
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3107
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2968
3108
  let totalBytesRead = BigInt(0);
2969
3109
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2970
3110
  const readChunk = file.readAlloc(chunkSize);
@@ -3000,11 +3140,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3000
3140
  }
3001
3141
 
3002
3142
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3003
- var TypeId10 = "~effect/Path";
3143
+ var TypeId11 = "~effect/Path";
3004
3144
  var Path = /* @__PURE__ */ Service2("effect/Path");
3005
- var make12 = (impl) => Path.of({
3145
+ var make13 = (impl) => Path.of({
3006
3146
  ...impl,
3007
- [TypeId10]: TypeId10,
3147
+ [TypeId11]: TypeId11,
3008
3148
  resolveWithin(root, input) {
3009
3149
  if (impl.parse(input).root !== "")
3010
3150
  return none();
@@ -3077,7 +3217,7 @@ function makeProvider(load, mapInput) {
3077
3217
  function makeSource(get, transform) {
3078
3218
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3079
3219
  }
3080
- function make6(get) {
3220
+ function make7(get) {
3081
3221
  return makeSource(get, identityPath);
3082
3222
  }
3083
3223
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3086,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3086
3226
  function fromEnvRecord(env, options) {
3087
3227
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3088
3228
  const trie = buildEnvTrie(env);
3089
- return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3229
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3090
3230
  }
3091
3231
  function fromEnv(options) {
3092
3232
  const env = options?.env ?? {
@@ -3139,7 +3279,7 @@ function trieNodeAt(root, path) {
3139
3279
  }
3140
3280
 
3141
3281
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3142
- var TypeId11 = "~effect/Config";
3282
+ var TypeId12 = "~effect/Config";
3143
3283
  class ConfigError {
3144
3284
  _tag = "ConfigError";
3145
3285
  name = "ConfigError";
@@ -3161,14 +3301,14 @@ var Proto2 = {
3161
3301
  return this.parse(fiber.getRef(ConfigProvider));
3162
3302
  }
3163
3303
  }),
3164
- [TypeId11]: TypeId11,
3304
+ [TypeId12]: TypeId12,
3165
3305
  toJSON() {
3166
3306
  return {
3167
3307
  _id: "Config"
3168
3308
  };
3169
3309
  }
3170
3310
  };
3171
- function make7(evaluator) {
3311
+ function make14(evaluator) {
3172
3312
  const self = Object.create(Proto2);
3173
3313
  self.evaluator = evaluator;
3174
3314
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3176,14 +3316,14 @@ function make7(evaluator) {
3176
3316
  }
3177
3317
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3178
3318
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3179
- return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3319
+ return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3180
3320
  });
3181
3321
  function all(arg) {
3182
3322
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3183
- 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));
3323
+ 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));
3184
3324
  }
3185
3325
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3186
- return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3326
+ return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3187
3327
  });
3188
3328
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3189
3329
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3300,9 +3440,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3300
3440
  function schema(codec, path) {
3301
3441
  const codecStringTree = toCodecStringTree(codec);
3302
3442
  const encodedAst = toEncoded(codecStringTree.ast);
3303
- const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3443
+ const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3304
3444
  const localPath = typeof path === "string" ? [path] : path ?? [];
3305
- return make7((provider, pathPrefix) => {
3445
+ return make14((provider, pathPrefix) => {
3306
3446
  const fullPath = [...pathPrefix, ...localPath];
3307
3447
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3308
3448
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3417,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3417
3557
  ...argv
3418
3558
  ];
3419
3559
 
3420
- export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3560
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-txyp31q5.js";
9
+ } from "./chunk-vtfwjhzh.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-5zzfsv07.js";
12
+ } from "./chunk-gspfm7qh.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-77k89h98.js";
22
+ } from "./chunk-1t12wvv1.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-nc1rxeav.js";
28
+ } from "./chunk-4w4spvb1.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-txyp31q5.js";
6
+ } from "./chunk-vtfwjhzh.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;