@moldea.ai/cli 14.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/portable/SHA256SUMS +16 -16
- package/dist/portable/analysis-worker.mjs +110 -133
- package/dist/portable/chunk-1306b995.mjs +2 -0
- package/dist/portable/chunk-24ea7c23.mjs +328 -0
- package/dist/portable/chunk-2cc3bf5c.mjs +399 -0
- package/dist/portable/chunk-2e9d4c63.mjs +95 -0
- package/dist/portable/chunk-43b8574a.mjs +1837 -0
- package/dist/portable/chunk-517c6bfb.mjs +2 -0
- package/dist/portable/chunk-8f198616.mjs +4414 -0
- package/dist/portable/chunk-936e5d09.mjs +112519 -0
- package/dist/portable/chunk-98d84174.mjs +422 -0
- package/dist/portable/chunk-9e42770a.mjs +3114 -0
- package/dist/portable/chunk-cea1378f.mjs +50 -0
- package/dist/portable/chunk-d6656fa6.mjs +14 -0
- package/dist/portable/chunk-d9e49acd.mjs +302 -0
- package/dist/portable/moldea.mjs +1995 -2868
- package/dist/portable/node-runner.mjs +77 -106
- package/package.json +1 -1
- package/dist/portable/chunk-131f8005.mjs +0 -115
- package/dist/portable/chunk-2ba7e89e.mjs +0 -26
- package/dist/portable/chunk-459da9cf.mjs +0 -4138
- package/dist/portable/chunk-728df961.mjs +0 -544
- package/dist/portable/chunk-8d6114d2.mjs +0 -588
- package/dist/portable/chunk-90403e67.mjs +0 -2
- package/dist/portable/chunk-94b5ac22.mjs +0 -59
- package/dist/portable/chunk-a5514957.mjs +0 -5870
- package/dist/portable/chunk-b98ca669.mjs +0 -2
- package/dist/portable/chunk-c13db66a.mjs +0 -380
- package/dist/portable/chunk-d5af3eda.mjs +0 -2926
- package/dist/portable/chunk-ec3f49d3.mjs +0 -367
- package/dist/portable/chunk-fcbcf4e3.mjs +0 -147458
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The version 14 executable exposes one schema 8 JSON contract. `validate` and `in
|
|
|
8
8
|
|
|
9
9
|
The CLI is optional for repositories using the moldea skill. To run it on its own from a Git checkout, use `npx @moldea.ai/cli@14 validate` or add `@moldea.ai/cli` as a development dependency.
|
|
10
10
|
|
|
11
|
-
The tarball also contains `dist/portable/`. Run `node <path-to-portable>/moldea.mjs validate` with Node.js and Git. The complete directory, including its adjacent runner, worker, chunks, `SHA256SUMS`, and
|
|
11
|
+
The tarball also contains a minified, source-map-free CLI under `dist/portable/`. Run `node <path-to-portable>/moldea.mjs validate` with Node.js and Git. The complete directory, including its adjacent runner, worker, chunks, `SHA256SUMS`, and `LICENSES.md`, can move as one unit. The skill ships this build.
|
|
12
12
|
|
|
13
13
|
## Commands
|
|
14
14
|
|
package/dist/portable/SHA256SUMS
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
0205722958a215e7ce78cb29148273f0a6fde98348e75eccc109cac640025d85 LICENSES.md
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
05ab037ca65d8550312a75283e232b59c1be2f1d121e204b21e4b5f3dd63c4be analysis-worker.mjs
|
|
3
|
+
f91f79307b1fb82de07b5de1322ccfeb16f541fc0de70edd0dc70edec7b215f4 chunk-1306b995.mjs
|
|
4
|
+
309270827f3c8c03fcc10faab12496c0406d3cebd4c88095bf363a91c3d0cf2b chunk-24ea7c23.mjs
|
|
5
|
+
ab01914500c78d3e80476a31f6a391a2f71dcaa90ffb51957e755b405888f46f chunk-2cc3bf5c.mjs
|
|
6
|
+
6467b7f8899d34dd5bb33220e374b3374c9ceecd7287a8b636d5ba6ff3660236 chunk-2e9d4c63.mjs
|
|
7
|
+
6a1fdb326ff17eb78c2677e2d60e7bb556ec74581929eaa9fec2f8e5ed4b5dd2 chunk-43b8574a.mjs
|
|
8
|
+
ed4ae51c156a9ec81e404d9d9e2fb817fc377c84acab445e697dac6b56dd898f chunk-517c6bfb.mjs
|
|
9
|
+
ee0158f7c33a6d7bc02daaaa765ef563f9e7933a4348d51b835225593b4012be chunk-8f198616.mjs
|
|
10
|
+
752a9d6ac664c3e9dd6dfd48353a2492b40d1ba2765e3dcdfbc9cabc96831ee5 chunk-936e5d09.mjs
|
|
11
|
+
43b23d20df294cd54bdaf82185b69dc2d8053a68c03638e3e04325fda54a899e chunk-98d84174.mjs
|
|
12
|
+
95ab84c2eb6d083b164ecabbc152c9ddd68781f05fe5b5e2bf7dae373ac9863b chunk-9e42770a.mjs
|
|
13
|
+
2b77dd4cfa61ef00ff17dc38743b25e35a75cdbae9c8bf1ba6558f9cc6b3213e chunk-cea1378f.mjs
|
|
14
|
+
a44ec936d7894b899d5129c48a864eb4bbf72a20c2780e8e5b5187eb108a85f5 chunk-d6656fa6.mjs
|
|
15
|
+
c4a75882d621cf32c6a4b0a38680dc3a77b279718c96688d279e61fe8d241d3a chunk-d9e49acd.mjs
|
|
16
|
+
82844c19f16287b369e98a382da39330307083e3584e3bd4a015dee40fb66b33 moldea.mjs
|
|
17
|
+
9de4371650b271b2ee753581e52540a5481e9bdb8aa7742e1252550f475e7123 node-runner.mjs
|
|
@@ -1,193 +1,170 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { u as
|
|
3
|
-
import { i as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { parentPort, workerData } from "node:worker_threads";
|
|
7
|
-
import { getHeapStatistics } from "node:v8";
|
|
1
|
+
import { n as e } from "./chunk-2cc3bf5c.mjs";
|
|
2
|
+
import { u as t } from "./chunk-8f198616.mjs";
|
|
3
|
+
import { i as n } from "./chunk-98d84174.mjs";
|
|
4
|
+
import { a as r, c as i, i as a, l as o, o as s, s as c, t as l } from "./chunk-24ea7c23.mjs";
|
|
5
|
+
import { a as u, i as d, n as f, r as p } from "./chunk-2e9d4c63.mjs";
|
|
6
|
+
import { parentPort as m, workerData as h } from "node:worker_threads";
|
|
7
|
+
import { getHeapStatistics as g } from "node:v8";
|
|
8
8
|
//#region ../core/dist/analysis-worker.js
|
|
9
|
-
var
|
|
10
|
-
if (
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
var attemptId =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var isReadingPage = false;
|
|
18
|
-
var nextRequestId = 0;
|
|
19
|
-
var pending = new Map();
|
|
20
|
-
var send = (message) => {
|
|
21
|
-
port.postMessage(encodeInspectionMessage(message));
|
|
22
|
-
};
|
|
23
|
-
var requestReader = (request) => {
|
|
24
|
-
if (pending.size >= 4) return Promise.reject(new CoreOperationException({
|
|
9
|
+
var _ = m;
|
|
10
|
+
if (_ === null) throw r();
|
|
11
|
+
var v = s(h);
|
|
12
|
+
if (v.kind !== "start") throw r();
|
|
13
|
+
var y = v.attemptId, b = g().heap_size_limit, x, S = !1, C = !1, w = 0, T = new Map(), E = (e) => {
|
|
14
|
+
_.postMessage(i(e));
|
|
15
|
+
}, D = (t) => {
|
|
16
|
+
if (T.size >= 4) return Promise.reject(new e({
|
|
25
17
|
code: "RESOURCE_LIMIT_EXCEEDED",
|
|
26
18
|
operation: "create-project-inspection",
|
|
27
19
|
limit: "maxReaderRequests",
|
|
28
20
|
limitMaximum: 4,
|
|
29
|
-
observedUsage:
|
|
21
|
+
observedUsage: T.size + 1,
|
|
30
22
|
nextAction: null
|
|
31
23
|
}));
|
|
32
|
-
|
|
33
|
-
return new Promise((
|
|
34
|
-
|
|
35
|
-
resolve,
|
|
36
|
-
reject
|
|
24
|
+
let n = w++;
|
|
25
|
+
return new Promise((e, i) => {
|
|
26
|
+
T.set(n, {
|
|
27
|
+
resolve: e,
|
|
28
|
+
reject: i
|
|
37
29
|
});
|
|
38
30
|
try {
|
|
39
|
-
|
|
40
|
-
attemptId,
|
|
31
|
+
E({
|
|
32
|
+
attemptId: y,
|
|
41
33
|
kind: "reader-request",
|
|
42
|
-
requestId,
|
|
43
|
-
request
|
|
34
|
+
requestId: n,
|
|
35
|
+
request: t
|
|
44
36
|
});
|
|
45
|
-
} catch (
|
|
46
|
-
|
|
47
|
-
reject(cause instanceof Error ? cause : createInspectionProcessFailure(cause));
|
|
37
|
+
} catch (e) {
|
|
38
|
+
T.delete(n), i(e instanceof Error ? e : r(e));
|
|
48
39
|
}
|
|
49
40
|
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
getEntry: async (path) => parseRpcEntry(await requestReader({
|
|
41
|
+
}, O = (e, t) => ({
|
|
42
|
+
snapshot: t,
|
|
43
|
+
getEntry: async (t) => f(await D({
|
|
54
44
|
method: "getEntry",
|
|
55
|
-
path,
|
|
56
|
-
source
|
|
45
|
+
path: t,
|
|
46
|
+
source: e
|
|
57
47
|
})),
|
|
58
|
-
listEntriesPage: async (
|
|
48
|
+
listEntriesPage: async (t) => e === "repository" ? p(await D({
|
|
59
49
|
method: "listEntriesPage",
|
|
60
|
-
maxEntries: Math.min(128,
|
|
61
|
-
...
|
|
62
|
-
...
|
|
63
|
-
})) : Promise.reject(new
|
|
50
|
+
maxEntries: Math.min(128, t.maxEntries),
|
|
51
|
+
...t.cursor === void 0 ? {} : { cursor: t.cursor },
|
|
52
|
+
...t.prefix === void 0 ? {} : { prefix: t.prefix }
|
|
53
|
+
})) : Promise.reject(new n({
|
|
64
54
|
code: "SOURCE_UNAVAILABLE",
|
|
65
55
|
operation: "list-entries-page",
|
|
66
56
|
path: null,
|
|
67
|
-
retryable:
|
|
57
|
+
retryable: !1
|
|
68
58
|
})),
|
|
69
|
-
readFilePage: async (
|
|
59
|
+
readFilePage: async (t, n) => d(await D({
|
|
70
60
|
method: "readFilePage",
|
|
71
|
-
path,
|
|
72
|
-
offset:
|
|
73
|
-
maxBytes: Math.min(
|
|
74
|
-
source
|
|
61
|
+
path: t,
|
|
62
|
+
offset: n.offset,
|
|
63
|
+
maxBytes: Math.min(l, n.maxBytes),
|
|
64
|
+
source: e
|
|
75
65
|
})),
|
|
76
|
-
readLinkText: async (
|
|
66
|
+
readLinkText: async (t) => u(await D({
|
|
77
67
|
method: "readLinkText",
|
|
78
|
-
path,
|
|
79
|
-
source
|
|
68
|
+
path: t,
|
|
69
|
+
source: e
|
|
80
70
|
})),
|
|
81
|
-
compare: () => Promise.reject(new
|
|
71
|
+
compare: () => Promise.reject(new n({
|
|
82
72
|
code: "SOURCE_UNAVAILABLE",
|
|
83
73
|
operation: "create-comparison",
|
|
84
74
|
path: null,
|
|
85
|
-
retryable:
|
|
75
|
+
retryable: !1
|
|
86
76
|
}))
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
inspection = await createCore(normalizeCoreOptions({ limits: {
|
|
93
|
-
...start.limits,
|
|
94
|
-
maxRetainedBytes: start.limits.maxRetainedBytes - NODE_INSPECTION_TRANSPORT_BYTES
|
|
77
|
+
}), k = O("repository", v.snapshot), A = v.instructions === null ? null : O("instructions", v.instructions.snapshot), j = async () => {
|
|
78
|
+
let { createCore: e } = await import("./chunk-1306b995.mjs").then((e) => e.t);
|
|
79
|
+
x = await e(t({ limits: {
|
|
80
|
+
...v.limits,
|
|
81
|
+
maxRetainedBytes: v.limits.maxRetainedBytes - a
|
|
95
82
|
} })).createProjectInspection({
|
|
96
|
-
repository,
|
|
97
|
-
...
|
|
83
|
+
repository: k,
|
|
84
|
+
...A === null ? {} : { instructions: A }
|
|
98
85
|
});
|
|
99
|
-
|
|
100
|
-
source:
|
|
101
|
-
formatVersion:
|
|
102
|
-
valid:
|
|
103
|
-
counts:
|
|
104
|
-
coverageCounts:
|
|
105
|
-
summary:
|
|
106
|
-
resourceUsage:
|
|
107
|
-
inspectionDigest:
|
|
86
|
+
let n = {
|
|
87
|
+
source: x.source,
|
|
88
|
+
formatVersion: x.formatVersion,
|
|
89
|
+
valid: x.valid,
|
|
90
|
+
counts: x.counts,
|
|
91
|
+
coverageCounts: x.coverageCounts,
|
|
92
|
+
summary: x.summary,
|
|
93
|
+
resourceUsage: x.resourceUsage,
|
|
94
|
+
inspectionDigest: x.inspectionDigest
|
|
108
95
|
};
|
|
109
|
-
|
|
110
|
-
attemptId,
|
|
96
|
+
E({
|
|
97
|
+
attemptId: y,
|
|
111
98
|
kind: "prepared",
|
|
112
99
|
inspection: {
|
|
113
|
-
...
|
|
114
|
-
maxAnalysisHeapBytes,
|
|
100
|
+
...n,
|
|
101
|
+
maxAnalysisHeapBytes: b,
|
|
115
102
|
resourceUsage: {
|
|
116
|
-
...
|
|
117
|
-
retainedBytes:
|
|
118
|
-
peakRetainedBytes:
|
|
103
|
+
...n.resourceUsage,
|
|
104
|
+
retainedBytes: n.resourceUsage.retainedBytes + a,
|
|
105
|
+
peakRetainedBytes: n.resourceUsage.peakRetainedBytes + a
|
|
119
106
|
}
|
|
120
107
|
}
|
|
121
108
|
});
|
|
122
|
-
}
|
|
123
|
-
var fail = (cause) => {
|
|
109
|
+
}, M = (t) => {
|
|
124
110
|
try {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
failure.options["observedUsage"] = cause.observedUsage + NODE_INSPECTION_TRANSPORT_BYTES;
|
|
129
|
-
}
|
|
130
|
-
send({
|
|
131
|
-
attemptId,
|
|
111
|
+
let n = o(t);
|
|
112
|
+
t instanceof e && t.code === "RESOURCE_LIMIT_EXCEEDED" && t.limit === "maxRetainedBytes" && t.observedUsage !== null && (n.options.limitMaximum = v.limits.maxRetainedBytes, n.options.observedUsage = t.observedUsage + a), E({
|
|
113
|
+
attemptId: y,
|
|
132
114
|
kind: "failure",
|
|
133
|
-
failure
|
|
115
|
+
failure: n
|
|
134
116
|
});
|
|
135
117
|
} catch {
|
|
136
|
-
|
|
118
|
+
_.close();
|
|
137
119
|
}
|
|
138
120
|
};
|
|
139
|
-
|
|
121
|
+
_.on("message", (t) => {
|
|
140
122
|
try {
|
|
141
|
-
|
|
142
|
-
if (
|
|
143
|
-
if (
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
} else if (message.kind === "read-page") {
|
|
154
|
-
if (inspection === void 0 || isReadingPage) throw createInspectionProcessFailure();
|
|
155
|
-
isReadingPage = true;
|
|
123
|
+
let n = s(t);
|
|
124
|
+
if (n.attemptId !== y) throw r();
|
|
125
|
+
if (n.kind === "run") {
|
|
126
|
+
if (S) throw r();
|
|
127
|
+
S = !0, j().catch(M);
|
|
128
|
+
} else if (n.kind === "reader-response" || n.kind === "reader-failure") {
|
|
129
|
+
let e = T.get(n.requestId);
|
|
130
|
+
if (e === void 0) throw r();
|
|
131
|
+
T.delete(n.requestId), n.kind === "reader-failure" ? e.reject(c(n.failure)) : e.resolve(n.result);
|
|
132
|
+
} else if (n.kind === "read-page") {
|
|
133
|
+
if (x === void 0 || C) throw r();
|
|
134
|
+
C = !0;
|
|
156
135
|
try {
|
|
157
|
-
if (
|
|
136
|
+
if (n.input.maxItems > v.limits.maxEntries) throw new e({
|
|
158
137
|
code: "INVALID_ARGUMENT",
|
|
159
138
|
operation: "create-project-inspection"
|
|
160
139
|
});
|
|
161
|
-
let
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
attemptId,
|
|
140
|
+
let t = Math.min(256, n.input.maxItems);
|
|
141
|
+
for (;;) try {
|
|
142
|
+
let e = i({
|
|
143
|
+
attemptId: y,
|
|
165
144
|
kind: "page",
|
|
166
|
-
requestId:
|
|
167
|
-
result:
|
|
168
|
-
...
|
|
169
|
-
maxItems
|
|
145
|
+
requestId: n.requestId,
|
|
146
|
+
result: x.readPage({
|
|
147
|
+
...n.input,
|
|
148
|
+
maxItems: t
|
|
170
149
|
})
|
|
171
150
|
});
|
|
172
|
-
|
|
151
|
+
_.postMessage(e);
|
|
173
152
|
break;
|
|
174
|
-
} catch (
|
|
175
|
-
if (!(
|
|
176
|
-
|
|
153
|
+
} catch (n) {
|
|
154
|
+
if (!(n instanceof e) || n.code !== "RESOURCE_LIMIT_EXCEEDED" || n.limit !== "maxInspectionMessageBytes" || t === 1) throw n;
|
|
155
|
+
t = Math.max(1, Math.floor(t / 2));
|
|
177
156
|
}
|
|
178
157
|
} finally {
|
|
179
|
-
|
|
158
|
+
C = !1;
|
|
180
159
|
}
|
|
181
|
-
} else throw
|
|
182
|
-
} catch (
|
|
183
|
-
|
|
160
|
+
} else throw r();
|
|
161
|
+
} catch (e) {
|
|
162
|
+
M(e);
|
|
184
163
|
}
|
|
185
|
-
})
|
|
186
|
-
|
|
187
|
-
send({
|
|
188
|
-
attemptId,
|
|
164
|
+
}), _.on("messageerror", M), E({
|
|
165
|
+
attemptId: y,
|
|
189
166
|
kind: "ready",
|
|
190
|
-
maxAnalysisHeapBytes
|
|
167
|
+
maxAnalysisHeapBytes: b
|
|
191
168
|
});
|
|
192
169
|
//#endregion
|
|
193
170
|
export {};
|