openclaw / src /proxy-capture /paths.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
34810d2 verified
Raw History Blame Contribute Delete
1.01 kB
// Proxy capture path helpers resolve certificate artifacts.
import path from "node:path";
import { resolveStateDir } from "../config/paths.js";
// Debug proxy CA files live under OpenClaw state. Capture data lives in the
// shared global state database.
function resolveDebugProxyRootDir(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveStateDir(env), "debug-proxy");
}
/** @deprecated Capture storage now lives in the shared state database. */
export function resolveDebugProxyDbPath(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveDebugProxyRootDir(env), "capture.sqlite");
}
/** @deprecated Capture payloads now live in the shared state database. */
export function resolveDebugProxyBlobDir(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveDebugProxyRootDir(env), "blobs");
}
export function resolveDebugProxyCertDir(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveDebugProxyRootDir(env), "certs");
}