mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:30:44 +00:00
29 lines
977 B
TypeScript
29 lines
977 B
TypeScript
// Manual facade. Keep loader boundary explicit.
|
|
import type { SecurityAuditFinding } from "../security/audit.types.js";
|
|
import { loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader.js";
|
|
|
|
type FacadeModule = {
|
|
collectSynologyChatSecurityAuditFindings: (params: {
|
|
accountId?: string | null;
|
|
account: {
|
|
accountId?: string;
|
|
dangerouslyAllowNameMatching?: boolean;
|
|
};
|
|
orderedAccountIds: string[];
|
|
hasExplicitAccountPath: boolean;
|
|
}) => SecurityAuditFinding[];
|
|
};
|
|
|
|
function loadFacadeModule(): FacadeModule {
|
|
return loadBundledPluginPublicSurfaceModuleSync<FacadeModule>({
|
|
dirName: "synology-chat",
|
|
artifactBasename: "contract-api.js",
|
|
});
|
|
}
|
|
|
|
export const collectSynologyChatSecurityAuditFindings: FacadeModule["collectSynologyChatSecurityAuditFindings"] =
|
|
((...args) =>
|
|
loadFacadeModule().collectSynologyChatSecurityAuditFindings(
|
|
...args,
|
|
)) as FacadeModule["collectSynologyChatSecurityAuditFindings"];
|