mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 15:06:07 +00:00
24 lines
1011 B
TypeScript
24 lines
1011 B
TypeScript
// 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");
|
|
}
|