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>
18 lines
867 B
TypeScript
18 lines
867 B
TypeScript
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]));
|