refactor(javascript): unify application workflow ownership

This commit is contained in:
morluto committed 2026-10-23 09:07:43 +08:00
1 parent 74ed67da7f
commit da9a580a0d
18 files changed
+385 -315

No files matched your search

@@ -320,7 +320,7 @@ const requireProvider = (
);
};
/** Parse unique, artifact-bound Evidence that may extend a native handoff. */
/** Authenticate artifact-bound Evidence that may extend a native handoff. */
export const parseNativeApplicationEvidence = (
inputs: readonly unknown[],
path: readonly (string | number)[] = [],
@@ -336,13 +336,6 @@ export const parseNativeApplicationEvidence = (
"subject",
"Native handoff Evidence requires an artifact subject.",
);
const ids = parsed.map(({ evidence_id: id }) => id);
if (new Set(ids).size !== ids.length)
throw invalidEvidence(
path,
"evidence_id",
"Native handoff Evidence must be unique.",
);
return parsed;
});