mirror of
https://github.com/morluto/rea.git
synced 2026-11-17 04:04:25 +00:00
Declare logical Evidence sources once and resolve exact retained inputs through shared application workflows across 20 composition tools. Preserve domain-owned authentication, source closure, caller choices, coverage and resource admission. Validation includes public CLI/MCP regressions, local Codex terra/high trials and fresh-import real-artifact workflows. Measurements, failed attempts and coverage limits are recorded in docs/verification/evidence-input-composition-2026-10-31.md. Fixes #8293. Fixes #8281. Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import type { EvidenceLookup } from "../EvidenceInputResolver.js";
|
|
import type { ExecutionOptions } from "../AnalysisProvider.js";
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import { projectAndroidInventory } from "../../domain/android/androidApplication.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
import { ANDROID_APPLICATION_PROVIDER } from "../../domain/investigationProviders.js";
|
|
import {
|
|
projectInventoryEvidence,
|
|
type InventoryProjectionEvidenceResult,
|
|
} from "../InventoryProjectionEvidence.js";
|
|
|
|
const OPERATION = "project_android_application_graph" as const;
|
|
|
|
/** Project authenticated APK inventory Evidence into Android application Evidence. */
|
|
export const projectAndroidApplicationEvidence = (
|
|
rawInput: unknown,
|
|
lookup?: EvidenceLookup,
|
|
execution?: Pick<ExecutionOptions, "signal">,
|
|
): Result<InventoryProjectionEvidenceResult, AnalysisError> => {
|
|
return projectInventoryEvidence({
|
|
rawInput,
|
|
...(lookup === undefined ? {} : { lookup }),
|
|
...(execution === undefined ? {} : { execution }),
|
|
project: projectAndroidInventory,
|
|
operation: OPERATION,
|
|
predicateType: "rea.android-application-graph",
|
|
provider: ANDROID_APPLICATION_PROVIDER,
|
|
subjectFormat: () => "apk",
|
|
});
|
|
};
|