mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
fix(contracts): align live target classification with admitted facts
Share exact live target variants across open and session responses, preserving historical Evidence and snapshot admission. Consolidate equivalent ELF metadata aliases at their owner.
This commit is contained in:
1 parent
fc7f042c8c
commit
ace4dbf36e
10 files changed
+377
-116
No files matched your search
@@ -1,13 +1,16 @@
|
||||
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
|
||||
|
||||
import { liveBinaryTargetSummarySchema } from "../../domain/liveBinaryTargetSummary.js";
|
||||
|
||||
/** Preserve the admitted target interpretation in public lifecycle results. */
|
||||
export const binaryTargetSummary = (target: BinaryTarget) => ({
|
||||
path: target.path,
|
||||
format: target.format,
|
||||
kind: target.kind,
|
||||
sha256: target.sha256,
|
||||
architecture: target.architecture ?? null,
|
||||
...(target.format === "raw-binary" || target.format === "gamecube-dol"
|
||||
? { entry_point: target.entryPoint }
|
||||
: {}),
|
||||
});
|
||||
export const binaryTargetSummary = (target: BinaryTarget) =>
|
||||
liveBinaryTargetSummarySchema.parse({
|
||||
path: target.path,
|
||||
format: target.format,
|
||||
kind: target.kind,
|
||||
sha256: target.sha256,
|
||||
architecture: target.architecture ?? null,
|
||||
...(target.format === "raw-binary" || target.format === "gamecube-dol"
|
||||
? { entry_point: target.entryPoint }
|
||||
: {}),
|
||||
});
|
||||
Reference in new issue
Block a user