feat(native): return a retained summary view of binary layouts on request (#1570)
inspect_binary_layout accepts the same optional detail input as analyze_javascript_application. The default complete delivery is unchanged; detail "summary" retains the complete layout Evidence in the session and returns its inspect_analysis_view summary, whose parent_evidence_id selects sections, symbols, mitigations or linkage later. Both tools share one detail schema and output projection. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c19e15a2b3
commit
5156ba44c5
@@ -0,0 +1,17 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { analysisViewResultSchema } from "../domain/analysisView/analysisView.js";
|
||||
import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
|
||||
|
||||
/** Caller-selected delivery of completed analysis Evidence that supports retained views. */
|
||||
export const analysisDetailSchema = z
|
||||
.enum(["complete", "summary"])
|
||||
.default("complete")
|
||||
.describe(
|
||||
"complete returns the complete analysis Evidence inline. summary retains that complete Evidence in this session and returns its inspect_analysis_view summary; inspect pages, items or facets through normalized_result.parent_evidence_id.",
|
||||
);
|
||||
|
||||
/** Complete analysis Evidence, or the summary view of its retained record. */
|
||||
export const analysisDetailOutputSchemaOf = <Schema extends z.ZodType>(
|
||||
analysis: Schema,
|
||||
) => evidenceResultOf(z.union([analysis, analysisViewResultSchema]));
|
||||
Reference in New Issue
Block a user