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.
25 lines
769 B
TypeScript
25 lines
769 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { listBrowserTargetsInputSchema } from "../domain/browserObservation.js";
|
|
import { listBrowserTargets } from "./BrowserObservationService.js";
|
|
|
|
describe("browser observation service prerequisites", () => {
|
|
it("reports a missing provider without requiring a permission grant", async () => {
|
|
const endpoint = "http://127.0.0.1:9222";
|
|
const origin = "http://[::1]:3000";
|
|
const result = await listBrowserTargets(
|
|
undefined,
|
|
listBrowserTargetsInputSchema.parse({
|
|
cdp_endpoint: endpoint,
|
|
allowed_origins: [origin],
|
|
}),
|
|
);
|
|
expect(result).toMatchObject({
|
|
ok: false,
|
|
error: {
|
|
_tag: "AnalysisCapabilityUnavailableError",
|
|
},
|
|
});
|
|
});
|
|
});
|