fix(runtime): make observed target role optional

This commit is contained in:
morluto
2026-09-29 08:20:18 +08:00
parent 0ae3c0837b
commit 593a8e12ce
8 changed files with 56 additions and 13 deletions
+5 -2
View File
@@ -96,8 +96,11 @@ export const finalizeInspectorCapture = async ({
protocol_type: target.type,
attached: target.attached,
location: target.location,
runtime_kind: input.runtime_kind,
runtime_kind_authority: "caller-declared-unverified",
runtime_kind: input.runtime_kind ?? "unknown",
runtime_kind_authority:
input.runtime_kind === undefined
? "not-declared"
: "caller-declared-unverified",
},
capture: {
observation_ms: input.observation_ms,