refactor(analysis): remove caller-selected result caps
This commit is contained in:
@@ -165,9 +165,6 @@ export const resolveCompareApplicationVersionsRequestValidated = (
|
||||
...input.right_native_observations,
|
||||
...rightNative.value,
|
||||
],
|
||||
...(input.unknown_registry_approved === undefined
|
||||
? {}
|
||||
: { unknown_registry_approved: input.unknown_registry_approved }),
|
||||
};
|
||||
const parsed = compareApplicationVersionsInputSchema.safeParse(raw);
|
||||
return parsed.success
|
||||
@@ -196,10 +193,6 @@ export const resolveCompareSourceToBundleRequestValidated = (
|
||||
const raw = {
|
||||
reference: input.reference,
|
||||
application: application.value,
|
||||
limits: input.limits,
|
||||
...(input.unknown_registry_approved === undefined
|
||||
? {}
|
||||
: { unknown_registry_approved: input.unknown_registry_approved }),
|
||||
};
|
||||
const parsed = compareSourceToBundleInputSchema.safeParse(raw);
|
||||
return parsed.success
|
||||
@@ -244,9 +237,6 @@ export const resolveCompareJavaScriptExportShapesRequestValidated = (
|
||||
left_export_name: input.left_export_name,
|
||||
right_module_path: input.right_module_path,
|
||||
right_export_name: input.right_export_name,
|
||||
...(input.unknown_registry_approved === undefined
|
||||
? {}
|
||||
: { unknown_registry_approved: input.unknown_registry_approved }),
|
||||
};
|
||||
const parsed = compareJavaScriptExportShapesInputSchema.safeParse(raw);
|
||||
return parsed.success
|
||||
|
||||
@@ -32,8 +32,6 @@ const status = (
|
||||
availability_code: capability.available
|
||||
? null
|
||||
: (capability.availability_code ?? null),
|
||||
input_contract_version: 1,
|
||||
output_contract_version: 1,
|
||||
effects: {
|
||||
mutates_artifact: false,
|
||||
launches_process: false,
|
||||
|
||||
@@ -154,14 +154,12 @@ export const compareSourceToBundleEvidenceValidated = (
|
||||
rootArtifactSha256: application.rootArtifactSha256,
|
||||
graph: application.graph,
|
||||
},
|
||||
limits: input.limits,
|
||||
});
|
||||
return ok(
|
||||
createSourceToBundleComparisonEvidence(
|
||||
{
|
||||
reference_root_sha256: input.reference.root_sha256,
|
||||
application_evidence_id: application.evidence.evidence_id,
|
||||
limits: input.limits,
|
||||
},
|
||||
result,
|
||||
),
|
||||
|
||||
@@ -147,7 +147,7 @@ describe("managed decompiler reconstruction import", () => {
|
||||
).toThrow(/does not match/u);
|
||||
});
|
||||
|
||||
it("wraps imported reconstruction in Evidence v2", () => {
|
||||
it("wraps imported reconstruction in Evidence", () => {
|
||||
const evidence = importManagedReconstructionEvidence(exampleInput());
|
||||
|
||||
expect(evidence.ok).toBe(true);
|
||||
|
||||
@@ -8,7 +8,7 @@ export const firstProcedureAddress = (input: unknown): string => {
|
||||
.array(z.object({ address: addressSchema }))
|
||||
.min(1)
|
||||
.parse(input)[0];
|
||||
if (first === undefined) throw new TypeError("Procedure page was empty");
|
||||
if (first === undefined) throw new TypeError("Procedure inventory was empty");
|
||||
return first.address;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user