feat(mcp): select views of retained analysis results (#1180)
Add explicit summary, facet, item and paged views of retained analysis Evidence without repeating analysis. Preserve captured observations, graph validation, artifact identity, coverage and complete default results. Fixes #1050 Verified with focused source, CLI, pinned-SDK schema and MCP tests, serial static checks, and one complete native Windows Notion ASAR workflow. Real Hopper/Ghidra verification was not performed for this provider-independent projection change. Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This commit is contained in:
co-authored by
Matt Van Horn
parent
911152a04d
commit
db675f1d52
@@ -0,0 +1,29 @@
|
||||
import type { AnalysisViewCoverage } from "./analysisView.js";
|
||||
|
||||
/** Coverage for a summary, facet, or single selected object. */
|
||||
export const completeWithinViewCoverage = (
|
||||
examined: number,
|
||||
total: number,
|
||||
): AnalysisViewCoverage => ({
|
||||
status: "complete-within-view",
|
||||
examined,
|
||||
total,
|
||||
next_offset: null,
|
||||
exhausted: true,
|
||||
});
|
||||
|
||||
/** Coverage for a stable page, including an offset past the collection. */
|
||||
export const pageViewCoverage = (
|
||||
offset: number,
|
||||
examined: number,
|
||||
total: number,
|
||||
): AnalysisViewCoverage => {
|
||||
const exhausted = offset >= total || offset + examined >= total;
|
||||
return {
|
||||
status: examined === 0 ? "empty" : "page",
|
||||
examined,
|
||||
total,
|
||||
next_offset: exhausted ? null : offset + examined,
|
||||
exhausted,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user