mirror of
https://github.com/morluto/rea.git
synced 2026-11-06 14:56:32 +00:00
fix(session): own target admission descriptors through finalization
This commit is contained in:
1 parent
a8276d1289
commit
2732d538e8
7 files changed
+695
-213
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
} from "../../domain/analysisSnapshot.js";
|
||||
import type { AnalysisSnapshot } from "../../domain/analysisSnapshot.js";
|
||||
import { parseBinaryTarget } from "../BinaryTargetResolver.js";
|
||||
import type { ArtifactResourceScope } from "../../artifacts/ArtifactResourceScope.js";
|
||||
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
|
||||
import {
|
||||
EvidenceIntegrityError,
|
||||
@@ -56,6 +57,7 @@ export interface ResolvedSessionOpen {
|
||||
}
|
||||
|
||||
interface ResolveSessionOpenInput {
|
||||
readonly resources: ArtifactResourceScope;
|
||||
readonly router: SessionProviderRouter;
|
||||
readonly current: CurrentOpenBinding | undefined;
|
||||
readonly path: string;
|
||||
@@ -83,6 +85,7 @@ export const resolveSessionOpen = async (
|
||||
): Promise<Result<ResolvedSessionOpen, AnalysisError>> => {
|
||||
const { path, options } = input;
|
||||
const parsed = await parseBinaryTarget(path, {
|
||||
resources: input.resources,
|
||||
...(options.targetKind === undefined
|
||||
? {}
|
||||
: { targetKind: options.targetKind }),
|
||||
|
||||
Reference in new issue
Block a user