mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 12:40:42 +00:00
19 lines
690 B
TypeScript
19 lines
690 B
TypeScript
import path from "node:path";
|
|
import { resolveStateDir } from "../config/paths.js";
|
|
|
|
function resolveDebugProxyRootDir(env: NodeJS.ProcessEnv = process.env): string {
|
|
return path.join(resolveStateDir(env), "debug-proxy");
|
|
}
|
|
|
|
export function resolveDebugProxyDbPath(env: NodeJS.ProcessEnv = process.env): string {
|
|
return path.join(resolveDebugProxyRootDir(env), "capture.sqlite");
|
|
}
|
|
|
|
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");
|
|
}
|