refactor(javascript)!: consolidate renderer and route ownership

Remove the derived package renderer property from new application graphs. Use renderer_declarations for source fields and package loads edges for the selected candidate; previously retained Evidence remains readable.
This commit is contained in:
morluto committed 2026-10-27 09:05:24 +08:00
1 parent 39179db68d
commit 5cf7133f82
7 files changed
+31 -42

No files matched your search

+1 -24
View File
@@ -1,12 +1,5 @@
import { z } from "incur";
import {
javaScriptRoutesDeliverySchema,
webRoutesDeliverySchema,
} from "../domain/analysisView/javascriptRoutesView.js";
import {
analysisEvidenceDeliveryOptions,
parseCliAnalysisEvidenceDelivery,
} from "./analysisEvidenceDelivery.js";
import { analysisEvidenceDeliveryOptions } from "./analysisEvidenceDelivery.js";
export const javascriptRouteDeliveryOptions = {
...analysisEvidenceDeliveryOptions,
@@ -24,19 +17,3 @@ export const webBundleDeliveryOptions = {
"JSON web-bundle (endpoints, inferences, summary) or javascript-routes view; requires --detail summary and --evidence_output",
),
};
/** Validate delivery before opening artifacts or attaching a browser. */
export const parseJavaScriptRouteDelivery = (
operation: string,
options: {
detail: "complete" | "summary";
evidence_output?: string | undefined;
view?: string | undefined;
},
) => {
const schema =
operation === "analyze_web_bundle"
? webRoutesDeliverySchema
: javaScriptRoutesDeliverySchema;
return parseCliAnalysisEvidenceDelivery(operation, options, schema);
};