refactor(views): share parent Evidence identity fields (#15465)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-12-01 12:11:07 +00:00
1 parent 0e7bb9e18e
commit eac728f39d
68 files changed
+145 -201

No files matched your search

+2 -3
View File
@@ -1,3 +1,4 @@
import { viewParentIdentity } from "./viewParentIdentity.js";
import { z } from "zod";
import {
pythonPycSchema,
@@ -72,9 +73,7 @@ export const projectPythonPycView = (
const { code_objects, limitations, ...identity } = parsed.value;
const summary = { ...identity, limitation_count: limitations.length };
const shared = {
parent_evidence_id: parent.evidenceId,
parent_operation: "inspect_python_pyc" as const,
parent_digest: parent.evidenceId.slice(3),
...viewParentIdentity(parent, "inspect_python_pyc"),
artifact: {
path: identity.artifact.path,
sha256: identity.artifact.sha256,