/** * openlore view command * * Starts a local React (Vite) server to visualize analysis graphs, * then opens the user's browser. */ import { Command } from 'commander'; /** Strip internal filesystem paths and API keys from error messages before sending to clients. */ export declare function sanitizeErrorMessage(msg: string): string; /** Ensure a resolved path stays within the project root. Returns null if invalid. */ export declare function safePath(rootPath: string, userPath: string): string | null; /** * Build the inline script injected into the served UI so its same-origin `/api` * requests authenticate. It publishes the instance token and wraps `fetch` to * attach the `x-openlore-token` header to relative `/api/*` requests only. The * token is a fresh random hex string embedded via `JSON.stringify` (no injection * risk); the wrapper is defensively wrapped in try/catch so it can never break * the app's own fetches. */ export declare function buildTokenInjectionScript(token: string): string; export declare const viewCommand: Command; //# sourceMappingURL=view.d.ts.map