fix(javascript): reconcile Node targets with entry assets (#8670)

* fix(javascript): reconcile Node targets with entry assets

* test(inspector): read reconciled evidence payload

* Update tests/boundary/inspector/javascriptRuntimeNodeTarget.test.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* test(inspector): read the workflow evidence payload

* Update tests/boundary/inspector/javascriptRuntimeNodeTarget.test.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* test(javascript): restore Evidence workflow result access

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-03 08:54:39 +08:00
1 parent 9bea563e30
commit 2d11fd92d2
6 files changed
+174 -2

No files matched your search

@@ -57,7 +57,10 @@ const classifyLayer = (
const direct = new Map<string, string[]>();
const ambiguous = new Set<string>();
const incomplete = new Set<string>();
for (const match of matches)
// A target's entry location establishes correspondence, not script presence.
for (const match of matches.filter(
({ entity_kind }) => entity_kind === "script",
))
if (
match.status === "matched" &&
match.static_layer_id === layer.layerId &&
@@ -94,7 +94,10 @@ const targetEntity = (
frameKey: null,
scriptKey: null,
location,
staticKind: "renderer",
staticKind:
capture.kind === "v8-inspector" && target.type === "node"
? "javascript"
: "renderer",
sourceSha256: null,
label: target.title,
properties: {