@kitman-sh/cli 0.10.90 → 0.10.91
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-xb70ys3n.js → chunk-25q7mg6g.js} +17 -17
- package/dist/{chunk-x11j5jcj.js → chunk-2wsyg2g7.js} +46 -38
- package/dist/{chunk-py4t32pa.js → chunk-5fxxg02f.js} +340 -144
- package/dist/{chunk-e8zm8z3a.js → chunk-5tqy48a3.js} +10 -10
- package/dist/{chunk-75d425rk.js → chunk-6h0rz0zk.js} +4 -4
- package/dist/{chunk-j9frwmmt.js → chunk-947btdv6.js} +3 -3
- package/dist/{chunk-fq47a5yd.js → chunk-9m9cv82t.js} +2 -2
- package/dist/{chunk-76ctrqm6.js → chunk-c3k32vw4.js} +1 -1
- package/dist/{chunk-9zd52pda.js → chunk-cmtvcbxr.js} +5 -5
- package/dist/{chunk-bbvvx5z1.js → chunk-d82t42vr.js} +16 -16
- package/dist/{chunk-5vsqzmvf.js → chunk-d9wjvvbc.js} +5 -5
- package/dist/{chunk-jbwk6k6m.js → chunk-dstm8aen.js} +71 -28
- package/dist/{chunk-0gs7cjkt.js → chunk-fgnfx5mw.js} +7 -212
- package/dist/{chunk-mgmsx0bm.js → chunk-gncygm43.js} +9 -9
- package/dist/{chunk-yx90ye72.js → chunk-gykt7zjx.js} +7 -7
- package/dist/{chunk-62565d52.js → chunk-hsf2sj69.js} +2 -2
- package/dist/{chunk-tzz4fv17.js → chunk-k4fvnphp.js} +1 -1
- package/dist/{chunk-kgdppbdr.js → chunk-mbqeakm1.js} +1 -1
- package/dist/{chunk-dd5aa39j.js → chunk-r6d67qqa.js} +263 -34
- package/dist/{chunk-ky974pcr.js → chunk-rmsm8vnc.js} +4 -4
- package/dist/{chunk-rq6bn96v.js → chunk-sb8c2sgy.js} +16 -16
- package/dist/{chunk-jq8hhvdv.js → chunk-tmbhak7y.js} +8 -8
- package/dist/{chunk-98sg1yyd.js → chunk-w0sehmpd.js} +14 -60
- package/dist/{chunk-m1ewm9dy.js → chunk-y1tnxz9f.js} +25 -25
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-dstm8aen.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-k4fvnphp.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
ChildProcessSpawner,
|
|
33
|
+
make2
|
|
34
|
+
} from "./chunk-w0sehmpd.js";
|
|
35
|
+
import {
|
|
36
|
+
make10,
|
|
33
37
|
runForEach,
|
|
34
38
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
ChildProcessSpawner,
|
|
38
|
-
make3
|
|
39
|
-
} from "./chunk-98sg1yyd.js";
|
|
39
|
+
} from "./chunk-25q7mg6g.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -169,8 +169,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
169
169
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
|
-
const handle = yield* spawner.spawn(
|
|
173
|
-
stdin:
|
|
172
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
173
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-w0sehmpd.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-5fxxg02f.js";
|
|
16
|
+
import"./chunk-25q7mg6g.js";
|
|
17
|
+
import"./chunk-dstm8aen.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-dstm8aen.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-25q7mg6g.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-5fxxg02f.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-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-25q7mg6g.js";
|
|
18
|
+
import"./chunk-dstm8aen.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -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-5tqy48a3.js";
|
|
11
|
+
import"./chunk-w0sehmpd.js";
|
|
12
|
+
import"./chunk-k4fvnphp.js";
|
|
13
|
+
import"./chunk-25q7mg6g.js";
|
|
14
|
+
import"./chunk-dstm8aen.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-dstm8aen.js";
|
|
36
|
+
import"./chunk-mbqeakm1.js";
|
|
37
|
+
import"./chunk-k4fvnphp.js";
|
|
38
38
|
import {
|
|
39
39
|
SecureRandom,
|
|
40
40
|
layerWebCrypto,
|
|
@@ -44,9 +44,11 @@ import {
|
|
|
44
44
|
filterStatusOk,
|
|
45
45
|
get2,
|
|
46
46
|
layer4,
|
|
47
|
+
AgentDeclaration,
|
|
48
|
+
KitDeclarations,
|
|
47
49
|
kitmanMcpServer,
|
|
48
50
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5fxxg02f.js";
|
|
50
52
|
import {
|
|
51
53
|
decodeText,
|
|
52
54
|
mkString,
|
|
@@ -54,23 +56,21 @@ import {
|
|
|
54
56
|
Path,
|
|
55
57
|
withDefault,
|
|
56
58
|
String2
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-25q7mg6g.js";
|
|
58
60
|
import {
|
|
59
61
|
Packument,
|
|
60
62
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import
|
|
63
|
+
} from "./chunk-947btdv6.js";
|
|
64
|
+
import {
|
|
65
|
+
ChildProcessSpawner,
|
|
66
|
+
make2
|
|
67
|
+
} from "./chunk-w0sehmpd.js";
|
|
68
|
+
import"./chunk-gncygm43.js";
|
|
63
69
|
import {
|
|
64
|
-
AgentDeclaration,
|
|
65
|
-
KitDeclarations,
|
|
66
70
|
describeFlag,
|
|
67
71
|
Described
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import
|
|
70
|
-
ChildProcessSpawner,
|
|
71
|
-
make3
|
|
72
|
-
} from "./chunk-98sg1yyd.js";
|
|
73
|
-
import"./chunk-rq6bn96v.js";
|
|
72
|
+
} from "./chunk-fgnfx5mw.js";
|
|
73
|
+
import"./chunk-sb8c2sgy.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-dstm8aen.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-k4fvnphp.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-25q7mg6g.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5fxxg02f.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-947btdv6.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -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++) {
|
|
@@ -1578,7 +1578,7 @@ var ServiceProto = {
|
|
|
1578
1578
|
return self;
|
|
1579
1579
|
},
|
|
1580
1580
|
context(self) {
|
|
1581
|
-
return
|
|
1581
|
+
return make14(this, self);
|
|
1582
1582
|
},
|
|
1583
1583
|
use(f) {
|
|
1584
1584
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1682,7 +1682,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1682
1682
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1683
1683
|
var empty3 = () => emptyContext2;
|
|
1684
1684
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1685
|
-
var
|
|
1685
|
+
var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1686
1686
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1687
1687
|
var addUnsafe = (self, key, service) => {
|
|
1688
1688
|
const impl = self;
|
|
@@ -3022,7 +3022,7 @@ class FiberImpl {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
let cause = causeInterrupt(fiberId);
|
|
3024
3024
|
if (this.cache.stackFrame) {
|
|
3025
|
-
cause = causeAnnotate(cause,
|
|
3025
|
+
cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
|
|
3026
3026
|
}
|
|
3027
3027
|
if (annotations) {
|
|
3028
3028
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5119,7 +5119,7 @@ var DeferredImpl = function() {
|
|
|
5119
5119
|
};
|
|
5120
5120
|
DeferredImpl.prototype = DeferredProto;
|
|
5121
5121
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5122
|
-
var
|
|
5122
|
+
var make15 = () => sync(() => makeUnsafe5());
|
|
5123
5123
|
var _await = (self) => callback2((resume) => {
|
|
5124
5124
|
if (self.effect)
|
|
5125
5125
|
return resume(self.effect);
|
|
@@ -5267,9 +5267,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5267
5267
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5268
5268
|
var succeed5 = function() {
|
|
5269
5269
|
if (arguments.length === 1) {
|
|
5270
|
-
return (resource) => succeedContext(
|
|
5270
|
+
return (resource) => succeedContext(make14(arguments[0], resource));
|
|
5271
5271
|
}
|
|
5272
|
-
return succeedContext(
|
|
5272
|
+
return succeedContext(make14(arguments[0], arguments[1]));
|
|
5273
5273
|
};
|
|
5274
5274
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5275
5275
|
var effect = function() {
|
|
@@ -5278,7 +5278,7 @@ var effect = function() {
|
|
|
5278
5278
|
}
|
|
5279
5279
|
return effectImpl(arguments[0], arguments[1]);
|
|
5280
5280
|
};
|
|
5281
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5281
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
|
|
5282
5282
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5283
5283
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5284
5284
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5703,6 +5703,7 @@ var fn = fn2;
|
|
|
5703
5703
|
var clockWith = clockWith2;
|
|
5704
5704
|
var logWarning = /* @__PURE__ */ logWithLevel("Warn");
|
|
5705
5705
|
var logError = /* @__PURE__ */ logWithLevel("Error");
|
|
5706
|
+
var logInfo = /* @__PURE__ */ logWithLevel("Info");
|
|
5706
5707
|
var annotateLogs = /* @__PURE__ */ dual((args) => isEffect(args[0]), (effect, ...args) => updateService2(effect, CurrentLogAnnotations2, (annotations) => {
|
|
5707
5708
|
const newAnnotations = args.length === 1 ? {
|
|
5708
5709
|
...annotations,
|
|
@@ -5857,6 +5858,48 @@ var getCode = (charCode) => {
|
|
|
5857
5858
|
return codes[charCode];
|
|
5858
5859
|
};
|
|
5859
5860
|
|
|
5861
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5862
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5863
|
+
var value2 = (self) => {
|
|
5864
|
+
if (redactedRegistry.has(self)) {
|
|
5865
|
+
return redactedRegistry.get(self);
|
|
5866
|
+
} else {
|
|
5867
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5868
|
+
}
|
|
5869
|
+
};
|
|
5870
|
+
|
|
5871
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5872
|
+
var TypeId8 = "~effect/Redacted";
|
|
5873
|
+
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
5874
|
+
var make16 = (value, options) => {
|
|
5875
|
+
const self = Object.create(Proto2);
|
|
5876
|
+
if (options?.label) {
|
|
5877
|
+
self.label = options.label;
|
|
5878
|
+
}
|
|
5879
|
+
redactedRegistry.set(self, value);
|
|
5880
|
+
return self;
|
|
5881
|
+
};
|
|
5882
|
+
var Proto2 = {
|
|
5883
|
+
[TypeId8]: {
|
|
5884
|
+
_A: (_) => _
|
|
5885
|
+
},
|
|
5886
|
+
label: undefined,
|
|
5887
|
+
...PipeInspectableProto,
|
|
5888
|
+
toJSON() {
|
|
5889
|
+
return this.toString();
|
|
5890
|
+
},
|
|
5891
|
+
toString() {
|
|
5892
|
+
return `<redacted${isString2(this.label) ? ":" + this.label : ""}>`;
|
|
5893
|
+
},
|
|
5894
|
+
[symbol]() {
|
|
5895
|
+
return hash(redactedRegistry.get(this));
|
|
5896
|
+
},
|
|
5897
|
+
[symbol2](that) {
|
|
5898
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
5899
|
+
}
|
|
5900
|
+
};
|
|
5901
|
+
var value = value2;
|
|
5902
|
+
|
|
5860
5903
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5861
5904
|
function resolve(ast) {
|
|
5862
5905
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -5880,16 +5923,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
5880
5923
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
5881
5924
|
|
|
5882
5925
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
5883
|
-
var
|
|
5926
|
+
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
5884
5927
|
function isIssue(u) {
|
|
5885
|
-
return hasProperty(u,
|
|
5928
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
5886
5929
|
}
|
|
5887
5930
|
function hasInput(issue) {
|
|
5888
5931
|
return Object.hasOwn(issue, "input");
|
|
5889
5932
|
}
|
|
5890
5933
|
|
|
5891
5934
|
class IssueNodeImpl {
|
|
5892
|
-
[
|
|
5935
|
+
[TypeId9] = TypeId9;
|
|
5893
5936
|
constructor(input, options) {
|
|
5894
5937
|
if (options?.reportInput === true && input !== missing) {
|
|
5895
5938
|
this.input = input;
|
|
@@ -6263,9 +6306,9 @@ function setContent(operation, content) {
|
|
|
6263
6306
|
}
|
|
6264
6307
|
|
|
6265
6308
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6266
|
-
var
|
|
6309
|
+
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
6267
6310
|
var Transformation = class extends Class3 {
|
|
6268
|
-
[
|
|
6311
|
+
[TypeId10] = TypeId10;
|
|
6269
6312
|
_tag = "Transformation";
|
|
6270
6313
|
decode;
|
|
6271
6314
|
encode;
|
|
@@ -6279,7 +6322,7 @@ var Transformation = class extends Class3 {
|
|
|
6279
6322
|
}
|
|
6280
6323
|
};
|
|
6281
6324
|
function isTransformation(u) {
|
|
6282
|
-
return hasProperty(u,
|
|
6325
|
+
return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
|
|
6283
6326
|
}
|
|
6284
6327
|
var makeTransformation = (options) => {
|
|
6285
6328
|
if (isTransformation(options)) {
|
|
@@ -6399,10 +6442,10 @@ var Context = class {
|
|
|
6399
6442
|
this.annotations = annotations;
|
|
6400
6443
|
}
|
|
6401
6444
|
};
|
|
6402
|
-
var
|
|
6445
|
+
var TypeId11 = "~effect/Schema";
|
|
6403
6446
|
|
|
6404
6447
|
class ASTNodeImpl {
|
|
6405
|
-
[
|
|
6448
|
+
[TypeId11] = TypeId11;
|
|
6406
6449
|
annotations;
|
|
6407
6450
|
checks;
|
|
6408
6451
|
encoding;
|
|
@@ -8617,10 +8660,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8617
8660
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8618
8661
|
|
|
8619
8662
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8620
|
-
var
|
|
8663
|
+
var TypeId12 = "~effect/Schema/Schema";
|
|
8621
8664
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8622
8665
|
var SchemaProto = {
|
|
8623
|
-
[
|
|
8666
|
+
[TypeId12]: TypeId12,
|
|
8624
8667
|
get make() {
|
|
8625
8668
|
const value = make4(this);
|
|
8626
8669
|
Object.defineProperty(this, "make", {
|
|
@@ -8881,7 +8924,7 @@ function recur(ast) {
|
|
|
8881
8924
|
const rest = ast.rest.map(recur);
|
|
8882
8925
|
const [head, ...tail] = rest;
|
|
8883
8926
|
const tailLength = tail.length;
|
|
8884
|
-
return
|
|
8927
|
+
return make13((a, b) => {
|
|
8885
8928
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
8886
8929
|
return false;
|
|
8887
8930
|
}
|
|
@@ -8916,7 +8959,7 @@ function recur(ast) {
|
|
|
8916
8959
|
}
|
|
8917
8960
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
8918
8961
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
8919
|
-
return
|
|
8962
|
+
return make13((a, b) => {
|
|
8920
8963
|
if (!isObject2(a) || !isObject2(b)) {
|
|
8921
8964
|
return false;
|
|
8922
8965
|
}
|
|
@@ -8954,7 +8997,7 @@ function recur(ast) {
|
|
|
8954
8997
|
const types = toType2(ast).types;
|
|
8955
8998
|
const index = getCandidateIndex(types);
|
|
8956
8999
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
8957
|
-
return
|
|
9000
|
+
return make13((a, b) => {
|
|
8958
9001
|
const candidates = index(a, false);
|
|
8959
9002
|
for (let i = 0;i < candidates.length; i++) {
|
|
8960
9003
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -8967,7 +9010,7 @@ function recur(ast) {
|
|
|
8967
9010
|
}
|
|
8968
9011
|
case "Suspend": {
|
|
8969
9012
|
let equivalence;
|
|
8970
|
-
return
|
|
9013
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
8971
9014
|
}
|
|
8972
9015
|
}
|
|
8973
9016
|
}
|
|
@@ -9065,7 +9108,7 @@ function isSchemaError(u) {
|
|
|
9065
9108
|
}
|
|
9066
9109
|
|
|
9067
9110
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9068
|
-
var
|
|
9111
|
+
var TypeId13 = TypeId12;
|
|
9069
9112
|
function declareConstructor() {
|
|
9070
9113
|
return (typeParameters, run, annotations) => {
|
|
9071
9114
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -9178,7 +9221,7 @@ function encodeUnknownSync(schema, options) {
|
|
|
9178
9221
|
var encodeSync = encodeUnknownSync;
|
|
9179
9222
|
var make17 = make5;
|
|
9180
9223
|
function isSchema(u) {
|
|
9181
|
-
return hasProperty(u,
|
|
9224
|
+
return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
|
|
9182
9225
|
}
|
|
9183
9226
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
9184
9227
|
schema
|
|
@@ -10009,7 +10052,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10009
10052
|
}
|
|
10010
10053
|
});
|
|
10011
10054
|
}
|
|
10012
|
-
static [
|
|
10055
|
+
static [TypeId13] = TypeId13;
|
|
10013
10056
|
get [ClassTypeId]() {
|
|
10014
10057
|
return ClassTypeId;
|
|
10015
10058
|
}
|
|
@@ -10158,4 +10201,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
|
|
|
10158
10201
|
var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
|
|
10159
10202
|
var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
10160
10203
|
|
|
10161
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, 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,
|
|
10204
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, 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, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, 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, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
|