mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 20:06:14 +00:00
* feat(python): query retained pyc code-object facts * test(python): bind complete pyc selection benchmark tasks * test(python): include server instructions in token accounting * docs(perf): record pyc selected-facts task measurements * test(python): keep oracle dependencies separate from selected targets * docs(perf): record guarded oracle requalification * test(python): narrow complete Evidence through its owning contract
36 lines
990 B
TypeScript
36 lines
990 B
TypeScript
import { z } from "incur";
|
|
import {
|
|
javaScriptRoutesDeliverySchema,
|
|
webRoutesDeliverySchema,
|
|
} from "../domain/analysisView/javascriptRoutesView.js";
|
|
import {
|
|
analysisEvidenceDeliveryOptions,
|
|
parseCliAnalysisEvidenceDelivery,
|
|
} from "./analysisEvidenceDelivery.js";
|
|
|
|
export const javascriptRouteDeliveryOptions = {
|
|
...analysisEvidenceDeliveryOptions,
|
|
view: z
|
|
.string()
|
|
.optional()
|
|
.describe(
|
|
"JSON 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);
|
|
};
|