style: fix lint

This commit is contained in:
Peter Steinberger
2026-01-04 03:37:00 +00:00
parent c2f3b653c2
commit 7d95f43a75
4 changed files with 118 additions and 79 deletions

View File

@@ -8,7 +8,10 @@ import { ensurePortAvailable } from "../infra/ports.js";
import { createSubsystemLogger } from "../logging.js";
import { CONFIG_DIR } from "../utils.js";
import { normalizeCdpWsUrl } from "./cdp.js";
import type { ResolvedBrowserConfig, ResolvedBrowserProfile } from "./config.js";
import type {
ResolvedBrowserConfig,
ResolvedBrowserProfile,
} from "./config.js";
import {
DEFAULT_CLAWD_BROWSER_COLOR,
DEFAULT_CLAWD_BROWSER_PROFILE_NAME,
@@ -119,12 +122,7 @@ function resolveBrowserExecutable(
export function resolveClawdUserDataDir(
profileName = DEFAULT_CLAWD_BROWSER_PROFILE_NAME,
) {
return path.join(
CONFIG_DIR,
"browser",
profileName,
"user-data",
);
return path.join(CONFIG_DIR, "browser", profileName, "user-data");
}
function decoratedMarkerPath(userDataDir: string) {

View File

@@ -27,13 +27,10 @@ export async function browserPdfSave(
opts: { targetId?: string; profile?: string } = {},
): Promise<BrowserActionPathResult> {
const q = buildProfileQuery(opts.profile);
return await fetchBrowserJson<BrowserActionPathResult>(
`${baseUrl}/pdf${q}`,
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ targetId: opts.targetId }),
timeoutMs: 20000,
},
);
return await fetchBrowserJson<BrowserActionPathResult>(`${baseUrl}/pdf${q}`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ targetId: opts.targetId }),
timeoutMs: 20000,
});
}