refactor(security): keep scan identity internal

This commit is contained in:
jesse-merhi
2026-08-11 01:05:26 +10:00
parent 1c040134b0
commit 76b79fe2e9
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -5,10 +5,11 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
import type {
InstallPolicyWarningDetails,
InstallPolicyWarningOccurrence,
InstallPolicyWarningScanIdentity,
} from "../../plugins/install-security-scan.types.js";
import type { ManagedPluginSourceInstallRequest } from "../../plugins/management-service.js";
type InstallPolicyWarningScanIdentity = InstallPolicyWarningOccurrence["scan"];
const managementMocks = vi.hoisted(() => {
class ManagedPluginLifecycleError extends Error {
readonly kind: "invalid-request" | "unavailable";
+1 -1
View File
@@ -11,7 +11,7 @@ export type InstallPolicyWarningDetails = {
};
/** Stable policy-stage facts that scope an approval without exposing scan internals to clients. */
export type InstallPolicyWarningScanIdentity = {
type InstallPolicyWarningScanIdentity = {
requestKind: InstallPolicyRequestKind;
originType: string;
pluginContentType?: "bundle" | "package" | "file" | "dependency-tree";