Download src/proxy-capture/paths.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/proxy-capture/paths.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/proxy-capture/paths.ts
-
curl -L -o paths.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/proxy-capture/paths.ts
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"); | |
| } | |