refactor: return complete analysis results inline

This commit is contained in:
morluto
2026-09-29 08:07:24 +08:00
parent 07ff8b30ee
commit a2a3243ea8
127 changed files with 402 additions and 1508 deletions
@@ -369,7 +369,6 @@ export const buildNativeBoundaryInspection = ({
issues,
}: BoundaryInspectionContext): ManagedNativeBoundaryInspection =>
managedNativeBoundaryInspectionSchema.parse({
schema_version: 1,
artifact: {
path: target.path,
sha256: target.sha256,
-6
View File
@@ -89,12 +89,6 @@ export const MANAGED_MEMBER_FIXTURE_LIMITS = {
maxMethodInstructions: 1_000,
};
/** Member bounds for fixture tests that inspect a real local path. */
export const MANAGED_MEMBER_PATH_FIXTURE_LIMITS = {
...MANAGED_MEMBER_FIXTURE_LIMITS,
maxFileBytes: 1024 * 1024,
};
/** Generous native-boundary bounds for the source-owned PE fixture. */
export const MANAGED_NATIVE_BOUNDARY_FIXTURE_LIMITS = {
maxMetadataBytes: 1024 * 1024,
-7
View File
@@ -50,8 +50,6 @@ export class ManagedStaticProvider implements AnalysisProvider {
operation: contract.name,
available: true as const,
reason: null,
pagination: "none" as const,
exhaustive: true,
effects: Object.freeze({
mutatesArtifact: false,
launchesProcess: false,
@@ -61,11 +59,6 @@ export class ManagedStaticProvider implements AnalysisProvider {
changesPermissions: false,
requiresRoot: false,
}),
limits: Object.freeze({
maxResults: null,
maxPayloadBytes: 4 * 1024 * 1024,
timeoutMs: null,
}),
limitations: limitationsFor(contract.name),
}),
),