import {
resolveCdpControlPolicy,
resolveCdpReachabilityPolicy,
} from "./cdp-reachability-policy.js"; import { usesFastLoopbackCdpProbeClass } from "./cdp-timeouts.js"; import { listChromeMcpTabs } from "./chrome-mcp.js"; import { isChromeReachable, resolveOpenClawUserDataDir } from "./chrome.js"; import type { ResolvedBrowserProfile } from "./config.js"; import { resolveProfile } from "./config.js"; import { BrowserProfileNotFoundError, toBrowserErrorResponse } from "./errors.js"; import { getBrowserProfileCapabilities } from "./profile-capabilities.js"; import {
refreshResolvedBrowserConfigFromDisk,
resolveBrowserProfileWithHotReload,
} from "./resolved-config-refresh.js"; import { createProfileAvailability } from "./server-context.availability.js"; import { createProfileResetOps } from "./server-context.reset.js"; import { createProfileSelectionOps } from "./server-context.selection.js"; import { createProfileTabOps } from "./server-context.tab-ops.js"; import type {
BrowserServerState,
BrowserRouteContext,
BrowserTab,
ContextOptions,
ProfileContext,
ProfileRuntimeState,
ProfileStatus,
} from "./server-context.types.js";
export type {
BrowserRouteContext,
BrowserServerState,
BrowserTab,
ProfileContext,
ProfileRuntimeState,
ProfileStatus,
} from "./server-context.types.js";
export function listKnownProfileNames(state: BrowserServerState): string[] { const names = new Set(Object.keys(state.resolved.profiles)); for (const name of state.profiles.keys()) {
names.add(name);
} return [...names];
}
/** *Createaprofile-scopedcontextforbrowseroperations.
*/ function createProfileContext(
opts: ContextOptions,
profile: ResolvedBrowserProfile,
): ProfileContext { const state = () => { const current = opts.getState(); if (!current) { thrownew Error("Browser server not started");
} return current;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.