You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc8a19c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/contracts/analysisViewToolContracts.ts
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,33 @@ import { evidenceResultOf } from "./toolOutputSchemaPrimitives.js";
8
8
9
9
constRETAINED_EXAMPLE_ID=`ev_${"a".repeat(64)}`;
10
10
11
-
/** Selected views of already completed layout, JavaScript and native function Evidence. */
11
+
/** Selected views of completed layout, JavaScript, native and inventory Evidence. */
12
12
exportconstANALYSIS_VIEW_TOOL_CONTRACTS=[
13
13
{
14
14
name: "inspect_analysis_view",
15
15
...toolContractMetadata("inspect_analysis_view"),
16
16
kind: "application",
17
17
description:
18
-
"Inspect selected views of completed binary-layout, JavaScript application or native analyze_function Evidence without repeating analysis. Use an exact same-session retained evidence_id or portable inline Evidence. Select a summary, layout mitigations/linkage facet, one section/symbol/module, or a stable page. Module pages include assets, bundled and source modules; use node_id for ambiguous or unavailable paths. Native views select procedure, pseudocode, assembly, basic blocks, comments, callers/callees, references, unresolved calls, referenced strings/names, native API and high-pcode. Use nonnegative offset and a positive caller-selected limit (defaults 0 and 64); pseudocode uses UTF-16 code units, other native pages use rows. Returns artifact identity, parent Evidence ID, a distinct view digest, coverage, limitations and unknowns. Actual serialized size determines MCP transport admission; choose a smaller page or export the complete retained Evidence if needed.",
18
+
"Inspect selected views of completed binary-layout, JavaScript application, native analyze_function, inspect_artifact or inventory_artifact Evidence without repeating analysis. Use an exact same-session retained evidence_id or portable inline Evidence. Select a summary, layout mitigations/linkage facet, one section/symbol/module, or a stable page. Module pages include assets, bundled and source modules; use node_id for ambiguous or unavailable paths. Inventory views page nodes, occurrences, edges or integrity contradictions; occurrence logical_paths matches exact recorded strings (omitted means all available, [] means none). source_complete distinguishes complete inventories from partial source records; page exhaustion does not prove absence in a partial source. Native views select procedure, pseudocode, assembly, basic blocks, comments, callers/callees, references, unresolved calls, referenced strings/names, native API and high-pcode. Use nonnegative offset and a positive caller-selected limit (defaults 0 and 64); pseudocode uses UTF-16 code units, other native pages use rows. Returns artifact identity, parent Evidence ID, a distinct view digest, coverage, limitations and unknowns. Actual serialized size determines MCP transport admission; choose a smaller page or export the complete retained Evidence if needed.",
/** Attach the content digest that must change when projected bytes change. */
@@ -307,7 +391,7 @@ const unsupportedParent = (
307
391
newAnalysisUnsupportedTargetError(
308
392
INSPECT_ANALYSIS_VIEW_OPERATION,
309
393
parentArtifactPath(parent),
310
-
`Parent Evidence operation ${JSON.stringify(parent.operation)}is not inspect_binary_layout, analyze_javascript_application or analyze_function.`,
394
+
`Parent Evidence operation ${JSON.stringify(parent.operation)}does not support analysis views. Use completed binary layout, JavaScript application, native function, or artifact inventory/inspection Evidence.`,
0 commit comments