@openguardrails/moltguard
Version:
AI agent security plugin for OpenClaw: prompt injection detection, PII sanitization, and monitoring dashboard
52 lines • 1.32 kB
TypeScript
/**
* Dashboard Launcher for MoltGuard
*
* Starts the local Dashboard in-process for monitoring agent activity.
* All components (MoltGuard, Gateway, Dashboard) run in the same process.
*/
export declare const DASHBOARD_PORT = 53667;
/**
* Get the plugin's data directory
*/
export declare function getPluginDataDir(): string;
interface LaunchOptions {
apiKey: string;
agentId: string;
coreUrl: string;
dataDir?: string;
autoStart?: boolean;
}
interface LaunchResult {
localUrl: string;
token: string;
}
/**
* Start the local Dashboard (in-process)
*/
export declare function startLocalDashboard(options: LaunchOptions): Promise<LaunchResult>;
/**
* Check if Dashboard is running
*/
export declare function isDashboardRunning(): boolean;
/**
* Get current Dashboard URL
*/
export declare function getDashboardUrl(): string | null;
/**
* Get current token
*/
export declare function getDashboardToken(): string | null;
/**
* Error for development mode (when build is required)
*/
export declare class DevModeError extends Error {
dashboardDir: string;
constructor(dashboardDir: string);
getInstructions(): string;
}
/**
* Stop Dashboard server
*/
export declare function stopLocalDashboard(): Promise<void>;
export {};
//# sourceMappingURL=dashboard-launcher.d.ts.map