mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor(security): keep scan identity internal
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user