fix: use owner-level unidesk state

This commit is contained in:
Codex
2026-07-10 05:09:13 +02:00
parent 01ff35d0f8
commit fbd9dbbae1
48 changed files with 133 additions and 148 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { existsSync, mkdirSync, rmSync } from "node:fs";
import { dirname, join, resolve } from "node:path";
import { chromium, firefox, webkit, type Browser, type BrowserContext, type BrowserType, type Page } from "playwright";
import { repoRoot } from "./config";
import { repoRoot, rootPath } from "./config";
import { emitError, emitJson } from "./output";
type BrowserName = "chromium" | "firefox" | "webkit";
@@ -22,7 +22,7 @@ interface ParsedOptions {
fullPage: boolean;
}
const stateRoot = join(repoRoot, ".state", "playwright-cli");
const stateRoot = rootPath(".state", "playwright-cli");
const defaultScreenshotPath = join(stateRoot, "screenshots", "latest.png");
const supportedCommands = ["open", "screenshot", "eval", "session-list", "session-delete"];
const unsupportedInteractiveCommands = new Set([