Remove REA permission grants, scope ceilings, approval confirmations, and inert settings. Preserve selected local evidence, accept caller-chosen commands and paths, and report actual runtime failures. Harden provider results, schema serialization, snapshot evidence binding, archive paths, source maps, native screenshots, managed EH parsing, and cancellation cleanup. Regenerate tool metadata and document direct invocation. BREAKING CHANGE: Removed permission configuration and policy commands, approval fields, filesystem scope inputs, and fixed confirmation options. Process capture inherits the host environment and accepts command names; callers must refresh tool schemas and migrate removed fields.
15 lines
608 B
TypeScript
15 lines
608 B
TypeScript
import { CdpBrowserProvider } from "./browser/CdpBrowserProvider.js";
|
|
import { projectAnalysisError } from "./domain/errors.js";
|
|
import type { JsonValue } from "./domain/jsonValue.js";
|
|
|
|
/** Build the passive browser provider; scope is supplied on each request. */
|
|
export const browserContext = () => ({ provider: new CdpBrowserProvider() });
|
|
|
|
/** Project a browser operation failure consistently across CLI command groups. */
|
|
export const browserCliError = (
|
|
error: Parameters<typeof projectAnalysisError>[0],
|
|
): JsonValue => ({
|
|
error: "Browser observation failed",
|
|
...projectAnalysisError(error),
|
|
});
|