feat(dotnet): add managed artifact triage

This commit is contained in:
N0zoM1z0
2026-07-16 17:05:03 +09:00
committed by N0zoM1z0
parent 80faff3e5b
commit c251c38aa2
155 changed files with 4101 additions and 287 deletions
+7 -3
View File
@@ -7,17 +7,21 @@ import {
TOOL_CONTRACTS,
} from "../src/contracts/toolContracts.js";
import { ARTIFACT_TOOL_CONTRACTS } from "../src/contracts/artifactToolContracts.js";
import { MANAGED_TOOL_CONTRACTS } from "../src/contracts/managedToolContracts.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";
import { APPLICATION_TOOL_CONTRACTS } from "../src/contracts/applicationToolContracts.js";
describe("tool contract inventory", () => {
it("publishes 65 analysis contracts and eighteen session tools", () => {
it("publishes 66 analysis contracts and eighteen session tools", () => {
expect(OFFICIAL_TOOL_CONTRACTS).toHaveLength(33);
expect(ENHANCED_TOOL_CONTRACTS).toHaveLength(10);
expect(NATIVE_TOOL_CONTRACTS).toHaveLength(5);
expect(ARTIFACT_TOOL_CONTRACTS).toHaveLength(2);
expect(MANAGED_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([
"inspect_managed_artifact",
]);
expect(BROWSER_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([
"list_browser_targets",
"inspect_web_page",
@@ -59,8 +63,8 @@ describe("tool contract inventory", () => {
"update_unknown",
"verify_unknown_resolution",
]);
expect(TOOL_CONTRACTS).toHaveLength(83);
expect(new Set(TOOL_CONTRACTS.map(({ name }) => name)).size).toBe(83);
expect(TOOL_CONTRACTS).toHaveLength(84);
expect(new Set(TOOL_CONTRACTS.map(({ name }) => name)).size).toBe(84);
});
it("retains documented enhanced-tool limits at the input boundary", () => {