@kitman-sh/cli 0.12.0-rc.3 → 0.12.0-rc.5
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.
- package/dist/{chunk-ks3p7yha.js → chunk-26mj3vr6.js} +21 -21
- package/dist/{chunk-0346hwh6.js → chunk-2s4x5t92.js} +5 -5
- package/dist/{chunk-jef2vdr6.js → chunk-31hk2bjb.js} +4 -4
- package/dist/{chunk-56knbdt6.js → chunk-3530xts6.js} +9 -9
- package/dist/{chunk-gspfm7qh.js → chunk-5zzfsv07.js} +37 -177
- package/dist/{chunk-e7e120qw.js → chunk-6x9e1etb.js} +3 -3
- package/dist/{chunk-dymepetx.js → chunk-77k89h98.js} +270 -118
- package/dist/{chunk-yatva7be.js → chunk-bbadvwds.js} +1 -1
- package/dist/{chunk-nzjb36ad.js → chunk-bj73db3f.js} +1 -1
- package/dist/{chunk-0qz10ek8.js → chunk-bv9e34qz.js} +1 -1
- package/dist/{chunk-5j848ckb.js → chunk-cegdw7gw.js} +2 -2
- package/dist/{chunk-x55v5kyg.js → chunk-dd8hae73.js} +61 -60
- package/dist/{chunk-y73z1kkz.js → chunk-e838cw9z.js} +11 -11
- package/dist/{chunk-trb9325k.js → chunk-gr816kwr.js} +10 -10
- package/dist/{chunk-8ez1s9cr.js → chunk-hrds2xy2.js} +7 -7
- package/dist/{chunk-y8sscyvt.js → chunk-k9jd2dm0.js} +4 -4
- package/dist/{chunk-6akwhwyp.js → chunk-kvm7j3ed.js} +17 -17
- package/dist/{chunk-794hjysw.js → chunk-nc1rxeav.js} +6 -6
- package/dist/{chunk-z450wa10.js → chunk-rjdptgqf.js} +4 -4
- package/dist/{chunk-2gg3ccte.js → chunk-s1pjsak4.js} +7 -7
- package/dist/{chunk-ewhzaqp3.js → chunk-s661f8p0.js} +2 -2
- package/dist/{chunk-vtfwjhzh.js → chunk-txyp31q5.js} +60 -60
- package/dist/{chunk-mc87tyzm.js → chunk-x70r99jg.js} +2 -2
- package/dist/{chunk-c6rbt85q.js → chunk-xmq9zpr1.js} +1 -1
- package/dist/{chunk-xwya1er0.js → chunk-y2mkzww9.js} +2 -2
- package/dist/{chunk-h6hd61dn.js → chunk-yafg281p.js} +37 -24
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
decodeJsonStringOption,
|
|
108
108
|
encodeJsonStringSync,
|
|
109
109
|
encodePrettyJsonString
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-txyp31q5.js";
|
|
111
111
|
import {
|
|
112
112
|
currentTimeMillis,
|
|
113
113
|
SecureRandom,
|
|
@@ -159,13 +159,27 @@ import {
|
|
|
159
159
|
runMcpEffect,
|
|
160
160
|
createAgentAuthSignedFetch,
|
|
161
161
|
setupMcpAgentCredential
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-77k89h98.js";
|
|
163
|
+
import {
|
|
164
|
+
join,
|
|
165
|
+
interrupt,
|
|
166
|
+
runForEach,
|
|
167
|
+
FileSystem,
|
|
168
|
+
Path,
|
|
169
|
+
embeddedFile,
|
|
170
|
+
extractEmbeddedFile,
|
|
171
|
+
map3,
|
|
172
|
+
all,
|
|
173
|
+
withDefault,
|
|
174
|
+
option,
|
|
175
|
+
String2
|
|
176
|
+
} from "./chunk-5zzfsv07.js";
|
|
163
177
|
import {
|
|
164
178
|
guard,
|
|
165
179
|
Id,
|
|
166
180
|
Timestamp,
|
|
167
181
|
ActorType
|
|
168
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-bv9e34qz.js";
|
|
169
183
|
import {
|
|
170
184
|
toJsonValue,
|
|
171
185
|
isOneOf,
|
|
@@ -178,35 +192,21 @@ import {
|
|
|
178
192
|
isJsonObject,
|
|
179
193
|
isString,
|
|
180
194
|
kindOf
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import {
|
|
183
|
-
join,
|
|
184
|
-
interrupt,
|
|
185
|
-
runForEach,
|
|
186
|
-
FileSystem,
|
|
187
|
-
Path,
|
|
188
|
-
embeddedFile,
|
|
189
|
-
extractEmbeddedFile,
|
|
190
|
-
map3,
|
|
191
|
-
all,
|
|
192
|
-
withDefault,
|
|
193
|
-
option,
|
|
194
|
-
String2
|
|
195
|
-
} from "./chunk-gspfm7qh.js";
|
|
195
|
+
} from "./chunk-xmq9zpr1.js";
|
|
196
196
|
import {
|
|
197
197
|
searchDocs2,
|
|
198
198
|
readDoc2
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-x70r99jg.js";
|
|
200
200
|
import {
|
|
201
201
|
nextInt
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-bj73db3f.js";
|
|
203
203
|
import {
|
|
204
204
|
layerJson,
|
|
205
205
|
make4,
|
|
206
206
|
withHeaders,
|
|
207
207
|
layerProtocolSocket,
|
|
208
208
|
ConnectionHooks
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-nc1rxeav.js";
|
|
210
210
|
|
|
211
211
|
// apps/cli/src/mcp.ts
|
|
212
212
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-3530xts6.js";
|
|
11
|
+
import"./chunk-y2mkzww9.js";
|
|
12
|
+
import"./chunk-xmq9zpr1.js";
|
|
13
|
+
import"./chunk-5zzfsv07.js";
|
|
14
|
+
import"./chunk-txyp31q5.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-y2mkzww9.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-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-77k89h98.js";
|
|
16
|
+
import"./chunk-5zzfsv07.js";
|
|
17
|
+
import"./chunk-txyp31q5.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,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make10,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-5zzfsv07.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -22,21 +27,16 @@ import {
|
|
|
22
27
|
NullOr,
|
|
23
28
|
Finite,
|
|
24
29
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-txyp31q5.js";
|
|
26
31
|
import {
|
|
27
32
|
isNumber,
|
|
28
33
|
isJsonObject,
|
|
29
34
|
isString
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
make11,
|
|
33
|
-
runForEach,
|
|
34
|
-
compiled2
|
|
35
|
-
} from "./chunk-gspfm7qh.js";
|
|
35
|
+
} from "./chunk-xmq9zpr1.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-y2mkzww9.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:
|
|
173
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -34,11 +34,8 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
38
|
-
get4,
|
|
37
|
+
get3,
|
|
39
38
|
Reference,
|
|
40
|
-
fromInputUnsafe,
|
|
41
|
-
isFinite,
|
|
42
39
|
normalize,
|
|
43
40
|
succeed,
|
|
44
41
|
fail3,
|
|
@@ -84,7 +81,6 @@ import {
|
|
|
84
81
|
fail4,
|
|
85
82
|
interrupt2,
|
|
86
83
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
84
|
isFailure2,
|
|
89
85
|
asVoidAll,
|
|
90
86
|
makeUnsafe5,
|
|
@@ -156,14 +152,12 @@ import {
|
|
|
156
152
|
tapError2,
|
|
157
153
|
ignoreCause,
|
|
158
154
|
orElseSucceed,
|
|
159
|
-
sleep,
|
|
160
155
|
raceFirst,
|
|
161
156
|
when,
|
|
162
157
|
matchCauseEffect,
|
|
163
158
|
context,
|
|
164
159
|
contextWith,
|
|
165
160
|
provideContext2,
|
|
166
|
-
scope2,
|
|
167
161
|
scoped,
|
|
168
162
|
scopedWith,
|
|
169
163
|
acquireRelease,
|
|
@@ -174,7 +168,6 @@ import {
|
|
|
174
168
|
interrupt3,
|
|
175
169
|
onInterrupt,
|
|
176
170
|
uninterruptible,
|
|
177
|
-
uninterruptibleMask2,
|
|
178
171
|
forever,
|
|
179
172
|
forkChild,
|
|
180
173
|
forkIn,
|
|
@@ -197,11 +190,11 @@ import {
|
|
|
197
190
|
toEncoded,
|
|
198
191
|
decodeUnknownEffect,
|
|
199
192
|
SchemaError,
|
|
200
|
-
|
|
193
|
+
make16,
|
|
201
194
|
String4,
|
|
202
195
|
toCodecStringTree,
|
|
203
196
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-txyp31q5.js";
|
|
205
198
|
|
|
206
199
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
200
|
var headUnsafe = (self) => {
|
|
@@ -250,6 +243,15 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
243
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
244
|
};
|
|
252
245
|
|
|
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
|
+
|
|
253
255
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
254
256
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
257
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -370,7 +372,7 @@ var fromStringUnsafe = (input) => {
|
|
|
370
372
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
373
|
return make(value);
|
|
372
374
|
};
|
|
373
|
-
var
|
|
375
|
+
var fromInputUnsafe = (input) => {
|
|
374
376
|
switch (typeof input) {
|
|
375
377
|
case "bigint":
|
|
376
378
|
if (input < bigint0)
|
|
@@ -383,7 +385,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
383
385
|
}
|
|
384
386
|
return invalid(`unsupported input ${input}`);
|
|
385
387
|
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
388
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
387
389
|
|
|
388
390
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
391
|
var join = fiberJoin;
|
|
@@ -1309,7 +1311,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1309
1311
|
return false;
|
|
1310
1312
|
});
|
|
1311
1313
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1312
|
-
const localScope =
|
|
1314
|
+
const localScope = get3(services, Scope);
|
|
1313
1315
|
const scope = forkUnsafe(self.scope);
|
|
1314
1316
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1315
1317
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2766,158 +2768,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2766
2768
|
}), catchDone(() => endVoid)));
|
|
2767
2769
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
2770
|
|
|
2769
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2770
|
-
var TypeId8 = "~effect/RcRef";
|
|
2771
|
-
var stateEmpty = {
|
|
2772
|
-
_tag: "Empty"
|
|
2773
|
-
};
|
|
2774
|
-
var stateClosed = {
|
|
2775
|
-
_tag: "Closed"
|
|
2776
|
-
};
|
|
2777
|
-
var variance2 = {
|
|
2778
|
-
_A: identity,
|
|
2779
|
-
_E: identity
|
|
2780
|
-
};
|
|
2781
|
-
|
|
2782
|
-
class RcRefImpl {
|
|
2783
|
-
[TypeId8] = variance2;
|
|
2784
|
-
pipe() {
|
|
2785
|
-
return pipeArguments(this, arguments);
|
|
2786
|
-
}
|
|
2787
|
-
state = stateEmpty;
|
|
2788
|
-
acquire;
|
|
2789
|
-
context;
|
|
2790
|
-
scope;
|
|
2791
|
-
idleTimeToLive;
|
|
2792
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2793
|
-
this.acquire = acquire;
|
|
2794
|
-
this.context = context;
|
|
2795
|
-
this.scope = scope;
|
|
2796
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2797
|
-
}
|
|
2798
|
-
}
|
|
2799
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2800
|
-
const context = fiber.context;
|
|
2801
|
-
const scope = get4(context, Scope);
|
|
2802
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2803
|
-
return as(addFinalizerExit(scope, () => {
|
|
2804
|
-
const state = ref.state;
|
|
2805
|
-
ref.state = stateClosed;
|
|
2806
|
-
if (state._tag === "Acquired")
|
|
2807
|
-
return close(state.scope, void_2);
|
|
2808
|
-
if (state._tag === "Acquiring")
|
|
2809
|
-
return interrupt(state.fiber);
|
|
2810
|
-
return void_3;
|
|
2811
|
-
}), ref);
|
|
2812
|
-
});
|
|
2813
|
-
var getState = (self, restore) => {
|
|
2814
|
-
switch (self.state._tag) {
|
|
2815
|
-
case "Closed": {
|
|
2816
|
-
return interrupt3;
|
|
2817
|
-
}
|
|
2818
|
-
case "Acquired": {
|
|
2819
|
-
const state = self.state;
|
|
2820
|
-
state.refCount++;
|
|
2821
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2822
|
-
}
|
|
2823
|
-
case "Acquiring": {
|
|
2824
|
-
const state = self.state;
|
|
2825
|
-
state.awaiters++;
|
|
2826
|
-
return awaitAcquiring(self, state, restore);
|
|
2827
|
-
}
|
|
2828
|
-
case "Empty": {
|
|
2829
|
-
const acquiring = {
|
|
2830
|
-
_tag: "Acquiring",
|
|
2831
|
-
fiber: undefined,
|
|
2832
|
-
awaiters: 1,
|
|
2833
|
-
acquired: undefined
|
|
2834
|
-
};
|
|
2835
|
-
self.state = acquiring;
|
|
2836
|
-
const scope = makeUnsafe6();
|
|
2837
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2838
|
-
if (self.state !== acquiring) {
|
|
2839
|
-
return interrupt3;
|
|
2840
|
-
}
|
|
2841
|
-
const state = {
|
|
2842
|
-
_tag: "Acquired",
|
|
2843
|
-
value,
|
|
2844
|
-
scope,
|
|
2845
|
-
fiber: undefined,
|
|
2846
|
-
refCount: acquiring.awaiters,
|
|
2847
|
-
invalidated: false
|
|
2848
|
-
};
|
|
2849
|
-
self.state = state;
|
|
2850
|
-
acquiring.acquired = state;
|
|
2851
|
-
return succeed6(state);
|
|
2852
|
-
}), onExit((exit) => {
|
|
2853
|
-
if (isSuccess2(exit))
|
|
2854
|
-
return void_3;
|
|
2855
|
-
if (self.state === acquiring)
|
|
2856
|
-
self.state = stateEmpty;
|
|
2857
|
-
return close(scope, exit);
|
|
2858
|
-
}));
|
|
2859
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2860
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
};
|
|
2864
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2865
|
-
const acquired = acquiring.acquired;
|
|
2866
|
-
if (acquired !== undefined) {
|
|
2867
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2868
|
-
}
|
|
2869
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2870
|
-
return void_3;
|
|
2871
|
-
self.state = stateEmpty;
|
|
2872
|
-
return interrupt(acquiring.fiber);
|
|
2873
|
-
});
|
|
2874
|
-
var get2 = (self_) => {
|
|
2875
|
-
const self = self_;
|
|
2876
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2877
|
-
};
|
|
2878
|
-
var release = (self, state) => {
|
|
2879
|
-
state.refCount--;
|
|
2880
|
-
if (state.refCount > 0) {
|
|
2881
|
-
return void_3;
|
|
2882
|
-
}
|
|
2883
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2884
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2885
|
-
if (self.state === state) {
|
|
2886
|
-
self.state = stateEmpty;
|
|
2887
|
-
}
|
|
2888
|
-
return close(state.scope, void_2);
|
|
2889
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2890
|
-
return void_3;
|
|
2891
|
-
}
|
|
2892
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2893
|
-
if (self.state === state && state.refCount === 0) {
|
|
2894
|
-
self.state = stateEmpty;
|
|
2895
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2896
|
-
log: "Unhandled",
|
|
2897
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2898
|
-
});
|
|
2899
|
-
}
|
|
2900
|
-
return void_3;
|
|
2901
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2902
|
-
state.fiber = undefined;
|
|
2903
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2904
|
-
return void_3;
|
|
2905
|
-
};
|
|
2906
|
-
|
|
2907
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var make10 = make6;
|
|
2909
|
-
var get3 = get2;
|
|
2910
|
-
|
|
2911
2771
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2912
|
-
var
|
|
2913
|
-
var isStream = (u) => hasProperty(u,
|
|
2772
|
+
var TypeId8 = "~effect/Stream";
|
|
2773
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2914
2774
|
var fromChannel2 = fromChannel3;
|
|
2915
2775
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2916
2776
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2917
2777
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2778
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2779
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2780
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2781
|
var suspend = (stream) => {
|
|
2922
2782
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2783
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3080,11 +2940,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3080
2940
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3081
2941
|
|
|
3082
2942
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
|
-
var
|
|
2943
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3084
2944
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
|
-
var
|
|
2945
|
+
var make11 = (impl) => FileSystem.of({
|
|
3086
2946
|
...impl,
|
|
3087
|
-
[
|
|
2947
|
+
[TypeId9]: TypeId9,
|
|
3088
2948
|
glob: make2(impl),
|
|
3089
2949
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3090
2950
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3100,11 +2960,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3100
2960
|
const file = yield* impl.open(path, {
|
|
3101
2961
|
flag: "r"
|
|
3102
2962
|
});
|
|
3103
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2963
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3104
2964
|
if (offset) {
|
|
3105
2965
|
yield* file.seek(offset, "start");
|
|
3106
2966
|
}
|
|
3107
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2967
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3108
2968
|
let totalBytesRead = BigInt(0);
|
|
3109
2969
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3110
2970
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3140,11 +3000,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3140
3000
|
}
|
|
3141
3001
|
|
|
3142
3002
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
|
-
var
|
|
3003
|
+
var TypeId10 = "~effect/Path";
|
|
3144
3004
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
|
-
var
|
|
3005
|
+
var make12 = (impl) => Path.of({
|
|
3146
3006
|
...impl,
|
|
3147
|
-
[
|
|
3007
|
+
[TypeId10]: TypeId10,
|
|
3148
3008
|
resolveWithin(root, input) {
|
|
3149
3009
|
if (impl.parse(input).root !== "")
|
|
3150
3010
|
return none();
|
|
@@ -3217,7 +3077,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3077
|
function makeSource(get, transform) {
|
|
3218
3078
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3079
|
}
|
|
3220
|
-
function
|
|
3080
|
+
function make6(get) {
|
|
3221
3081
|
return makeSource(get, identityPath);
|
|
3222
3082
|
}
|
|
3223
3083
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3086,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3086
|
function fromEnvRecord(env, options) {
|
|
3227
3087
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3088
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3089
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3090
|
}
|
|
3231
3091
|
function fromEnv(options) {
|
|
3232
3092
|
const env = options?.env ?? {
|
|
@@ -3279,7 +3139,7 @@ function trieNodeAt(root, path) {
|
|
|
3279
3139
|
}
|
|
3280
3140
|
|
|
3281
3141
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3282
|
-
var
|
|
3142
|
+
var TypeId11 = "~effect/Config";
|
|
3283
3143
|
class ConfigError {
|
|
3284
3144
|
_tag = "ConfigError";
|
|
3285
3145
|
name = "ConfigError";
|
|
@@ -3301,14 +3161,14 @@ var Proto2 = {
|
|
|
3301
3161
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3302
3162
|
}
|
|
3303
3163
|
}),
|
|
3304
|
-
[
|
|
3164
|
+
[TypeId11]: TypeId11,
|
|
3305
3165
|
toJSON() {
|
|
3306
3166
|
return {
|
|
3307
3167
|
_id: "Config"
|
|
3308
3168
|
};
|
|
3309
3169
|
}
|
|
3310
3170
|
};
|
|
3311
|
-
function
|
|
3171
|
+
function make7(evaluator) {
|
|
3312
3172
|
const self = Object.create(Proto2);
|
|
3313
3173
|
self.evaluator = evaluator;
|
|
3314
3174
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3316,14 +3176,14 @@ function make14(evaluator) {
|
|
|
3316
3176
|
}
|
|
3317
3177
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3318
3178
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3319
|
-
return
|
|
3179
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3320
3180
|
});
|
|
3321
3181
|
function all(arg) {
|
|
3322
3182
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3323
|
-
return
|
|
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));
|
|
3324
3184
|
}
|
|
3325
3185
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3326
|
-
return
|
|
3186
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3327
3187
|
});
|
|
3328
3188
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3329
3189
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3440,9 +3300,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3440
3300
|
function schema(codec, path) {
|
|
3441
3301
|
const codecStringTree = toCodecStringTree(codec);
|
|
3442
3302
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3443
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3303
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3444
3304
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3445
|
-
return
|
|
3305
|
+
return make7((provider, pathPrefix) => {
|
|
3446
3306
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3447
3307
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3448
3308
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3557,4 +3417,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3417
|
...argv
|
|
3558
3418
|
];
|
|
3559
3419
|
|
|
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,
|
|
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 };
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-txyp31q5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5zzfsv07.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-
|
|
41
|
+
} from "./chunk-77k89h98.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|