refactor(providers): use canonical artifact and managed identities

This commit is contained in:
morluto
2026-10-10 00:49:14 +08:00
parent 1b73b5ab4b
commit 87f0051496
6 changed files with 40 additions and 56 deletions
+2 -9
View File
@@ -1,23 +1,16 @@
import type {
CapabilityDescriptor,
ProviderIdentity,
} from "../application/AnalysisProvider.js";
import type { CapabilityDescriptor } from "../application/AnalysisProvider.js";
import { MANAGED_STATIC_PROVIDER } from "../application/InvestigationProviders.js";
import {
MANAGED_TOOL_CONTRACTS,
type ManagedToolName,
} from "../contracts/managed/managedToolContracts.js";
/** Identity of execution-free managed metadata observations. */
export const MANAGED_STATIC_PROVIDER_IDENTITY: ProviderIdentity = Object.freeze(
MANAGED_STATIC_PROVIDER,
);
/** Declare managed metadata coverage without opening or loading an assembly. */
export const managedStaticCapabilities = (): readonly CapabilityDescriptor[] =>
Object.freeze(
MANAGED_TOOL_CONTRACTS.map((contract) =>
Object.freeze({
provider: MANAGED_STATIC_PROVIDER_IDENTITY,
provider: MANAGED_STATIC_PROVIDER,
operation: contract.name,
available: true as const,
reason: null,