feat: add web and Electron reverse-engineering workflows
This commit is contained in:
@@ -9,9 +9,10 @@ import {
|
||||
import { ARTIFACT_TOOL_CONTRACTS } from "../src/contracts/artifactToolContracts.js";
|
||||
import { NATIVE_TOOL_CONTRACTS } from "../src/contracts/nativeToolContracts.js";
|
||||
import { BROWSER_TOOL_CONTRACTS } from "../src/contracts/browserToolContracts.js";
|
||||
import { ELECTRON_TOOL_CONTRACTS } from "../src/contracts/electronToolContracts.js";
|
||||
|
||||
describe("tool contract inventory", () => {
|
||||
it("publishes 52 analysis contracts and eighteen session tools", () => {
|
||||
it("publishes 60 analysis contracts and eighteen session tools", () => {
|
||||
expect(OFFICIAL_TOOL_CONTRACTS).toHaveLength(33);
|
||||
expect(ENHANCED_TOOL_CONTRACTS).toHaveLength(10);
|
||||
expect(NATIVE_TOOL_CONTRACTS).toHaveLength(5);
|
||||
@@ -19,6 +20,16 @@ describe("tool contract inventory", () => {
|
||||
expect(BROWSER_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([
|
||||
"list_browser_targets",
|
||||
"inspect_web_page",
|
||||
"analyze_web_bundle",
|
||||
"observe_web_session",
|
||||
"discover_webmcp_tools",
|
||||
"compare_web_captures",
|
||||
"capture_web_screenshot",
|
||||
"compare_web_screenshots",
|
||||
]);
|
||||
expect(ELECTRON_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([
|
||||
"list_electron_targets",
|
||||
"inspect_electron_page",
|
||||
]);
|
||||
expect(SESSION_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([
|
||||
"open_binary",
|
||||
@@ -40,8 +51,8 @@ describe("tool contract inventory", () => {
|
||||
"update_unknown",
|
||||
"verify_unknown_resolution",
|
||||
]);
|
||||
expect(TOOL_CONTRACTS).toHaveLength(70);
|
||||
expect(new Set(TOOL_CONTRACTS.map(({ name }) => name)).size).toBe(70);
|
||||
expect(TOOL_CONTRACTS).toHaveLength(78);
|
||||
expect(new Set(TOOL_CONTRACTS.map(({ name }) => name)).size).toBe(78);
|
||||
});
|
||||
|
||||
it("retains documented enhanced-tool limits at the input boundary", () => {
|
||||
|
||||
Reference in New Issue
Block a user