@kitman-sh/cli 0.13.16 → 0.13.17
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-ttk3d0z2.js → chunk-0vv8cbye.js} +136 -136
- package/dist/{chunk-5w6r4mw6.js → chunk-1cr225aq.js} +30 -30
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-t4xwk14b.js → chunk-4yca7e7x.js} +101 -101
- package/dist/{chunk-4zh7qxck.js → chunk-643pxp2k.js} +4 -4
- package/dist/{chunk-bt22cd13.js → chunk-67xn3yer.js} +7 -7
- package/dist/{chunk-zd6y6ka8.js → chunk-80f0p6s7.js} +119 -119
- package/dist/{chunk-y7p4d14b.js → chunk-8nzsyz74.js} +2 -2
- package/dist/{chunk-fc2bhh5v.js → chunk-ahvpwkyk.js} +2 -2
- package/dist/{chunk-tntbdpmy.js → chunk-b5edh1jq.js} +78 -78
- package/dist/{chunk-vsrjg9nm.js → chunk-cbf0q15q.js} +22 -68
- package/dist/{chunk-v1e4g2re.js → chunk-efyrm6bv.js} +1 -1
- package/dist/{chunk-at5dh2te.js → chunk-g7ysb6ca.js} +18 -18
- package/dist/{chunk-49gbakce.js → chunk-gasqek3p.js} +6 -6
- package/dist/{chunk-x7acexnm.js → chunk-ggmwpwhf.js} +5 -5
- package/dist/{chunk-s88vcvtd.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-d9z9cyzt.js → chunk-pbmadbfm.js} +32 -32
- package/dist/{chunk-c9rvst3x.js → chunk-pjq9bf3w.js} +4 -4
- package/dist/{chunk-cbzqfz1k.js → chunk-pvsg1ppc.js} +4 -4
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-mbqb40ev.js → chunk-q4ra17vf.js} +16 -16
- package/dist/{chunk-sjdze64n.js → chunk-syhs23yk.js} +7 -7
- package/dist/{chunk-nf9gdnsf.js → chunk-x20t7xy8.js} +17 -17
- package/dist/{chunk-5cevjkrb.js → chunk-zcpnmgwb.js} +16 -16
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
withDefault,
|
|
4
|
-
String2
|
|
5
|
-
} from "./chunk-nf9gdnsf.js";
|
|
6
|
-
import {
|
|
7
|
-
newerKitmanVersion,
|
|
8
|
-
digestSha256,
|
|
9
|
-
digestSha512,
|
|
10
|
-
digestWith,
|
|
11
|
-
schemaBodyJson,
|
|
12
|
-
filterStatusOk,
|
|
13
|
-
get2,
|
|
14
|
-
layer4,
|
|
15
|
-
KitDigest
|
|
16
|
-
} from "./chunk-zd6y6ka8.js";
|
|
17
2
|
import {
|
|
18
3
|
isString,
|
|
19
4
|
isNone,
|
|
@@ -39,7 +24,22 @@ import {
|
|
|
39
24
|
Record,
|
|
40
25
|
Int,
|
|
41
26
|
fromJsonString
|
|
42
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zgraq2y3.js";
|
|
28
|
+
import {
|
|
29
|
+
withDefault,
|
|
30
|
+
String2
|
|
31
|
+
} from "./chunk-x20t7xy8.js";
|
|
32
|
+
import {
|
|
33
|
+
newerKitmanVersion,
|
|
34
|
+
digestSha256,
|
|
35
|
+
digestSha512,
|
|
36
|
+
digestWith,
|
|
37
|
+
schemaBodyJson,
|
|
38
|
+
filterStatusOk,
|
|
39
|
+
get2,
|
|
40
|
+
layer4,
|
|
41
|
+
KitDigest
|
|
42
|
+
} from "./chunk-80f0p6s7.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-q5w3v4k1.js";
|
|
3
2
|
import {
|
|
4
3
|
isObject,
|
|
5
4
|
isUint8Array,
|
|
@@ -14,26 +13,27 @@ import {
|
|
|
14
13
|
isJsonObject,
|
|
15
14
|
decodeJsonString,
|
|
16
15
|
encodePrettyJsonString
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-zgraq2y3.js";
|
|
17
|
+
import"./chunk-pxvd8w2v.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-x20t7xy8.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-pvsg1ppc.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-80f0p6s7.js";
|
|
35
|
+
import"./chunk-q4ra17vf.js";
|
|
36
|
+
import"./chunk-cbf0q15q.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
String4,
|
|
202
202
|
toCodecStringTree,
|
|
203
203
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-zgraq2y3.js";
|
|
205
205
|
|
|
206
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
207
|
var headUnsafe = (self) => {
|
|
@@ -1129,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
var
|
|
1132
|
+
var make7 = (value) => {
|
|
1133
1133
|
const ref = Object.create(MutableRefProto);
|
|
1134
1134
|
ref.current = value;
|
|
1135
1135
|
return ref;
|
|
@@ -1290,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1294
1294
|
var unbounded = (options) => make5({
|
|
1295
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1385,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1385
|
subscribers.delete(subscription);
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1389
|
class UnboundedPubSub {
|
|
1390
1390
|
publisherHead = {
|
|
1391
1391
|
value: AbsentValue,
|
|
@@ -1802,7 +1802,7 @@ var QueueProto = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
var
|
|
1805
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1806
1806
|
const self = Object.create(QueueProto);
|
|
1807
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1817,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
return succeed2(self);
|
|
1819
1819
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make8({
|
|
1821
1821
|
capacity
|
|
1822
1822
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make8({
|
|
1824
1824
|
capacity,
|
|
1825
1825
|
strategy: "sliding"
|
|
1826
1826
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make8();
|
|
1828
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1829
|
var offerUnsafe = (self, message) => {
|
|
1830
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2250
|
return onError(pull, onCause);
|
|
2251
2251
|
}));
|
|
2252
2252
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2254
2254
|
capacity: options?.bufferSize,
|
|
2255
2255
|
strategy: options?.strategy
|
|
2256
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2291
|
}));
|
|
2292
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2293
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make7(undefined);
|
|
2295
2295
|
const pull = suspend3(() => {
|
|
2296
2296
|
if (exit.current)
|
|
2297
2297
|
return exit.current;
|
|
@@ -2905,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2908
|
+
var make9 = make6;
|
|
2909
2909
|
var get3 = get2;
|
|
2910
2910
|
|
|
2911
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2920
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2921
|
var suspend = (stream) => {
|
|
2922
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3100,7 +3100,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3100
3100
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3101
3101
|
var TypeId10 = "~effect/FileSystem";
|
|
3102
3102
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3103
|
-
var
|
|
3103
|
+
var make11 = (impl) => FileSystem.of({
|
|
3104
3104
|
...impl,
|
|
3105
3105
|
[TypeId10]: TypeId10,
|
|
3106
3106
|
glob: make2(impl),
|
|
@@ -3160,7 +3160,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3160
3160
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3161
3161
|
var TypeId11 = "~effect/Path";
|
|
3162
3162
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3163
|
-
var
|
|
3163
|
+
var make12 = (impl) => Path.of({
|
|
3164
3164
|
...impl,
|
|
3165
3165
|
[TypeId11]: TypeId11,
|
|
3166
3166
|
resolveWithin(root, input) {
|
|
@@ -3235,7 +3235,7 @@ function makeProvider(load, mapInput) {
|
|
|
3235
3235
|
function makeSource(get, transform) {
|
|
3236
3236
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function make13(get) {
|
|
3239
3239
|
return makeSource(get, identityPath);
|
|
3240
3240
|
}
|
|
3241
3241
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3244,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3244
3244
|
function fromEnvRecord(env, options) {
|
|
3245
3245
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3246
3246
|
const trie = buildEnvTrie(env);
|
|
3247
|
-
return
|
|
3247
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3248
3248
|
}
|
|
3249
3249
|
function fromEnv(options) {
|
|
3250
3250
|
const env = options?.env ?? {
|
|
@@ -3575,4 +3575,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3575
3575
|
...argv
|
|
3576
3576
|
];
|
|
3577
3577
|
|
|
3578
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3578
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, 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 };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
WebSocketConstructor,
|
|
4
|
-
layerWebSocketConstructorGlobal,
|
|
5
|
-
layerWebSocket,
|
|
6
|
-
RunnerHeaders,
|
|
7
|
-
RunnerRpcProtocolVersion,
|
|
8
|
-
RunnerReplicaRpcs,
|
|
9
|
-
RunnerRunFileRpcs,
|
|
10
|
-
ProgramRpcs
|
|
11
|
-
} from "./chunk-zd6y6ka8.js";
|
|
12
2
|
import {
|
|
13
3
|
build,
|
|
14
4
|
succeed5,
|
|
@@ -16,16 +6,26 @@ import {
|
|
|
16
6
|
gen,
|
|
17
7
|
flatMap3,
|
|
18
8
|
provideContext2
|
|
19
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zgraq2y3.js";
|
|
20
10
|
import {
|
|
21
11
|
runForEach
|
|
22
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-x20t7xy8.js";
|
|
13
|
+
import {
|
|
14
|
+
WebSocketConstructor,
|
|
15
|
+
layerWebSocketConstructorGlobal,
|
|
16
|
+
layerWebSocket,
|
|
17
|
+
RunnerHeaders,
|
|
18
|
+
RunnerRpcProtocolVersion,
|
|
19
|
+
RunnerReplicaRpcs,
|
|
20
|
+
RunnerRunFileRpcs,
|
|
21
|
+
ProgramRpcs
|
|
22
|
+
} from "./chunk-80f0p6s7.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make3,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-1cr225aq.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make13 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make13((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make13((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1579,7 +1579,7 @@ var ServiceProto = {
|
|
|
1579
1579
|
return self;
|
|
1580
1580
|
},
|
|
1581
1581
|
context(self) {
|
|
1582
|
-
return
|
|
1582
|
+
return make14(this, self);
|
|
1583
1583
|
},
|
|
1584
1584
|
use(f) {
|
|
1585
1585
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1683,7 +1683,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1683
1683
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1684
1684
|
var empty3 = () => emptyContext2;
|
|
1685
1685
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1686
|
-
var
|
|
1686
|
+
var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1687
1687
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1688
1688
|
var addUnsafe = (self, key, service) => {
|
|
1689
1689
|
const impl = self;
|
|
@@ -3029,7 +3029,7 @@ class FiberImpl {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
let cause = causeInterrupt(fiberId);
|
|
3031
3031
|
if (this.cache.stackFrame) {
|
|
3032
|
-
cause = causeAnnotate(cause,
|
|
3032
|
+
cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
|
|
3033
3033
|
}
|
|
3034
3034
|
if (annotations) {
|
|
3035
3035
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5126,7 +5126,7 @@ var DeferredImpl = function() {
|
|
|
5126
5126
|
};
|
|
5127
5127
|
DeferredImpl.prototype = DeferredProto;
|
|
5128
5128
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5129
|
-
var
|
|
5129
|
+
var make15 = () => sync(() => makeUnsafe5());
|
|
5130
5130
|
var _await = (self) => callback2((resume) => {
|
|
5131
5131
|
if (self.effect)
|
|
5132
5132
|
return resume(self.effect);
|
|
@@ -5274,9 +5274,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5274
5274
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5275
5275
|
var succeed5 = function() {
|
|
5276
5276
|
if (arguments.length === 1) {
|
|
5277
|
-
return (resource) => succeedContext(
|
|
5277
|
+
return (resource) => succeedContext(make14(arguments[0], resource));
|
|
5278
5278
|
}
|
|
5279
|
-
return succeedContext(
|
|
5279
|
+
return succeedContext(make14(arguments[0], arguments[1]));
|
|
5280
5280
|
};
|
|
5281
5281
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5282
5282
|
var effect = function() {
|
|
@@ -5285,7 +5285,7 @@ var effect = function() {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
return effectImpl(arguments[0], arguments[1]);
|
|
5287
5287
|
};
|
|
5288
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5288
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
|
|
5289
5289
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5290
5290
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5291
5291
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5865,6 +5865,48 @@ var getCode = (charCode) => {
|
|
|
5865
5865
|
return codes[charCode];
|
|
5866
5866
|
};
|
|
5867
5867
|
|
|
5868
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5869
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5870
|
+
var value2 = (self) => {
|
|
5871
|
+
if (redactedRegistry.has(self)) {
|
|
5872
|
+
return redactedRegistry.get(self);
|
|
5873
|
+
} else {
|
|
5874
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5875
|
+
}
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5878
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5879
|
+
var TypeId8 = "~effect/Redacted";
|
|
5880
|
+
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
5881
|
+
var make16 = (value, options) => {
|
|
5882
|
+
const self = Object.create(Proto2);
|
|
5883
|
+
if (options?.label) {
|
|
5884
|
+
self.label = options.label;
|
|
5885
|
+
}
|
|
5886
|
+
redactedRegistry.set(self, value);
|
|
5887
|
+
return self;
|
|
5888
|
+
};
|
|
5889
|
+
var Proto2 = {
|
|
5890
|
+
[TypeId8]: {
|
|
5891
|
+
_A: (_) => _
|
|
5892
|
+
},
|
|
5893
|
+
label: undefined,
|
|
5894
|
+
...PipeInspectableProto,
|
|
5895
|
+
toJSON() {
|
|
5896
|
+
return this.toString();
|
|
5897
|
+
},
|
|
5898
|
+
toString() {
|
|
5899
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
5900
|
+
},
|
|
5901
|
+
[symbol]() {
|
|
5902
|
+
return hash(redactedRegistry.get(this));
|
|
5903
|
+
},
|
|
5904
|
+
[symbol2](that) {
|
|
5905
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
5906
|
+
}
|
|
5907
|
+
};
|
|
5908
|
+
var value = value2;
|
|
5909
|
+
|
|
5868
5910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5869
5911
|
function resolve(ast) {
|
|
5870
5912
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -5888,16 +5930,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
5888
5930
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
5889
5931
|
|
|
5890
5932
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
5891
|
-
var
|
|
5933
|
+
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
5892
5934
|
function isIssue(u) {
|
|
5893
|
-
return hasProperty(u,
|
|
5935
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
5894
5936
|
}
|
|
5895
5937
|
function hasInput(issue) {
|
|
5896
5938
|
return Object.hasOwn(issue, "input");
|
|
5897
5939
|
}
|
|
5898
5940
|
|
|
5899
5941
|
class IssueNodeImpl {
|
|
5900
|
-
[
|
|
5942
|
+
[TypeId9] = TypeId9;
|
|
5901
5943
|
constructor(input, options) {
|
|
5902
5944
|
if (options?.reportInput === true && input !== missing) {
|
|
5903
5945
|
this.input = input;
|
|
@@ -6271,9 +6313,9 @@ function setContent(operation, content) {
|
|
|
6271
6313
|
}
|
|
6272
6314
|
|
|
6273
6315
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6274
|
-
var
|
|
6316
|
+
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
6275
6317
|
var Transformation = class extends Class3 {
|
|
6276
|
-
[
|
|
6318
|
+
[TypeId10] = TypeId10;
|
|
6277
6319
|
_tag = "Transformation";
|
|
6278
6320
|
decode;
|
|
6279
6321
|
encode;
|
|
@@ -6287,7 +6329,7 @@ var Transformation = class extends Class3 {
|
|
|
6287
6329
|
}
|
|
6288
6330
|
};
|
|
6289
6331
|
function isTransformation(u) {
|
|
6290
|
-
return hasProperty(u,
|
|
6332
|
+
return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
|
|
6291
6333
|
}
|
|
6292
6334
|
var makeTransformation = (options) => {
|
|
6293
6335
|
if (isTransformation(options)) {
|
|
@@ -6407,10 +6449,10 @@ var Context = class {
|
|
|
6407
6449
|
this.annotations = annotations;
|
|
6408
6450
|
}
|
|
6409
6451
|
};
|
|
6410
|
-
var
|
|
6452
|
+
var TypeId11 = "~effect/Schema";
|
|
6411
6453
|
|
|
6412
6454
|
class ASTNodeImpl {
|
|
6413
|
-
[
|
|
6455
|
+
[TypeId11] = TypeId11;
|
|
6414
6456
|
annotations;
|
|
6415
6457
|
checks;
|
|
6416
6458
|
encoding;
|
|
@@ -8625,10 +8667,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8625
8667
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8626
8668
|
|
|
8627
8669
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8628
|
-
var
|
|
8670
|
+
var TypeId12 = "~effect/Schema/Schema";
|
|
8629
8671
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8630
8672
|
var SchemaProto = {
|
|
8631
|
-
[
|
|
8673
|
+
[TypeId12]: TypeId12,
|
|
8632
8674
|
get make() {
|
|
8633
8675
|
const value = make4(this);
|
|
8634
8676
|
Object.defineProperty(this, "make", {
|
|
@@ -8889,7 +8931,7 @@ function recur(ast) {
|
|
|
8889
8931
|
const rest = ast.rest.map(recur);
|
|
8890
8932
|
const [head, ...tail] = rest;
|
|
8891
8933
|
const tailLength = tail.length;
|
|
8892
|
-
return
|
|
8934
|
+
return make13((a, b) => {
|
|
8893
8935
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
8894
8936
|
return false;
|
|
8895
8937
|
}
|
|
@@ -8924,7 +8966,7 @@ function recur(ast) {
|
|
|
8924
8966
|
}
|
|
8925
8967
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
8926
8968
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
8927
|
-
return
|
|
8969
|
+
return make13((a, b) => {
|
|
8928
8970
|
if (!isObject(a) || !isObject(b)) {
|
|
8929
8971
|
return false;
|
|
8930
8972
|
}
|
|
@@ -8962,7 +9004,7 @@ function recur(ast) {
|
|
|
8962
9004
|
const types = toType2(ast).types;
|
|
8963
9005
|
const index = getCandidateIndex(types);
|
|
8964
9006
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
8965
|
-
return
|
|
9007
|
+
return make13((a, b) => {
|
|
8966
9008
|
const candidates = index(a, false);
|
|
8967
9009
|
for (let i = 0;i < candidates.length; i++) {
|
|
8968
9010
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -8975,7 +9017,7 @@ function recur(ast) {
|
|
|
8975
9017
|
}
|
|
8976
9018
|
case "Suspend": {
|
|
8977
9019
|
let equivalence;
|
|
8978
|
-
return
|
|
9020
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
8979
9021
|
}
|
|
8980
9022
|
}
|
|
8981
9023
|
}
|
|
@@ -9073,7 +9115,7 @@ function isSchemaError(u) {
|
|
|
9073
9115
|
}
|
|
9074
9116
|
|
|
9075
9117
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9076
|
-
var
|
|
9118
|
+
var TypeId13 = TypeId12;
|
|
9077
9119
|
function declareConstructor() {
|
|
9078
9120
|
return (typeParameters, run, annotations) => {
|
|
9079
9121
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -9186,7 +9228,7 @@ function encodeUnknownSync(schema, options) {
|
|
|
9186
9228
|
var encodeSync = encodeUnknownSync;
|
|
9187
9229
|
var make17 = make5;
|
|
9188
9230
|
function isSchema(u) {
|
|
9189
|
-
return hasProperty(u,
|
|
9231
|
+
return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
|
|
9190
9232
|
}
|
|
9191
9233
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
9192
9234
|
schema
|
|
@@ -10017,7 +10059,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10017
10059
|
}
|
|
10018
10060
|
});
|
|
10019
10061
|
}
|
|
10020
|
-
static [
|
|
10062
|
+
static [TypeId13] = TypeId13;
|
|
10021
10063
|
get [ClassTypeId]() {
|
|
10022
10064
|
return ClassTypeId;
|
|
10023
10065
|
}
|
|
@@ -10296,4 +10338,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
10296
10338
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
10297
10339
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
10298
10340
|
|
|
10299
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
10341
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, isRedacted, make16, value, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-ahvpwkyk.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-mmd7mjv0.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-643pxp2k.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-0vv8cbye.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|