mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
fix(inputs): centralize admission and preserve caller selections
Move shared request parsing into its application owner, migrate all consumers, and remove six duplicated admission blocks while preserving cancellation and validation policy. Keep operator-selected JavaScript paths in verifier parent Evidence while retaining canonical comparison guards. Validated with 204 passing tests, 3 Linux-x64-only skips, typecheck, lint, and test discovery.
This commit is contained in:
1 parent
7d36d172ab
commit
ccdeda7a27
47 files changed
+381
-333
No files matched your search
@@ -42,8 +42,8 @@ const [leftPath, rightPath] = await Promise.all([
|
||||
if (leftPath === rightPath)
|
||||
throw new Error("--left and --right must resolve to distinct paths");
|
||||
const [left, right] = await Promise.all([
|
||||
analyze(leftPath),
|
||||
analyze(rightPath),
|
||||
analyze(options.left),
|
||||
analyze(options.right),
|
||||
]);
|
||||
const comparison = compareApplicationVersionsEvidence({ left, right });
|
||||
if (!comparison.ok) throw comparison.error;
|
||||
|
||||
@@ -36,14 +36,8 @@ const requestedLayers = [
|
||||
...options.cache.map((path) => ({ role: "cache", path })),
|
||||
...options.assets.map((path) => ({ role: "assets", path })),
|
||||
];
|
||||
const canonicalLayers = await Promise.all(
|
||||
requestedLayers.map(async (layer) => ({
|
||||
...layer,
|
||||
path: await realpath(layer.path),
|
||||
})),
|
||||
);
|
||||
const staticLayers = [];
|
||||
for (const layer of canonicalLayers) {
|
||||
for (const layer of requestedLayers) {
|
||||
const analyzed = await analyzeJavaScriptApplicationWithOwnedScope({
|
||||
input_path: layer.path,
|
||||
format: "auto",
|
||||
|
||||
Reference in new issue
Block a user