{"version":3,"file":"capabilities.mjs","names":[],"sources":["../src/capabilities.ts"],"sourcesContent":["import { ENTITY_CAPABILITIES } from \"./constants\";\n\nexport const CAPABILITY_MANIFEST_SCHEMA_VERSION = 2 as const;\n\nexport const CAPABILITY_RUNTIMES = [\"node\", \"python\", \"wasm\"] as const;\n\nexport type CapabilityRuntime = (typeof CAPABILITY_RUNTIMES)[number];\n\nexport const CAPABILITY_PARITY_PROFILES = {\n  core: CAPABILITY_RUNTIMES,\n  local: [\"node\", \"python\"],\n  nodeLocal: [\"node\"],\n  document: [\"node\", \"python\"],\n} as const satisfies Record<string, readonly CapabilityRuntime[]>;\n\nexport type CapabilityParityProfile = keyof typeof CAPABILITY_PARITY_PROFILES;\n\nexport const CAPABILITY_SURFACES = [\n  { id: \"package.prepare\", profile: \"core\" },\n  { id: \"package.load\", profile: \"core\" },\n  { id: \"package.load-file\", profile: \"local\" },\n  { id: \"text.normalize\", profile: \"core\" },\n  { id: \"text.redact\", profile: \"core\" },\n  { id: \"text.redact-stream\", profile: \"core\" },\n  { id: \"text.diagnostics\", profile: \"core\" },\n  { id: \"text.summary-diagnostics\", profile: \"core\" },\n  { id: \"text.caller-detections\", profile: \"core\" },\n  { id: \"text.external-detection-batch\", profile: \"core\" },\n  { id: \"text.operators\", profile: \"core\" },\n  { id: \"package.default\", profile: \"core\" },\n  { id: \"session.cross-document\", profile: \"core\" },\n  { id: \"session.lifecycle\", profile: \"core\" },\n  { id: \"session.plaintext-transfer\", profile: \"core\" },\n  { id: \"session.encrypted-archive\", profile: \"core\" },\n  { id: \"document.docx.extract\", profile: \"document\" },\n  { id: \"document.docx.rewrite\", profile: \"document\" },\n  { id: \"document.docx.anonymize\", profile: \"document\" },\n  { id: \"document.docx.restore\", profile: \"document\" },\n  { id: \"document.pdf.inspect\", profile: \"core\" },\n  { id: \"document.pdf.anonymize-raster\", profile: \"document\" },\n  { id: \"document.pdf.rewrite-raster\", profile: \"document\" },\n  { id: \"document.pdf.observe-raster-local\", profile: \"nodeLocal\" },\n] as const satisfies readonly {\n  id: string;\n  profile: CapabilityParityProfile;\n}[];\n\nexport type CapabilitySurface = (typeof CAPABILITY_SURFACES)[number];\nexport type CapabilitySurfaceId = CapabilitySurface[\"id\"];\n\nexport type CapabilityManifest = {\n  schemaVersion: typeof CAPABILITY_MANIFEST_SCHEMA_VERSION;\n  runtimes: readonly CapabilityRuntime[];\n  parityProfiles: typeof CAPABILITY_PARITY_PROFILES;\n  surfaces: typeof CAPABILITY_SURFACES;\n  entities: typeof ENTITY_CAPABILITIES;\n};\n\n/**\n * Versioned, runtime-free discovery contract for the deterministic pipeline.\n * The manifest contains no accuracy claims; it describes available labels,\n * activation, provenance sources, and runtime parity only.\n */\nexport const CAPABILITY_MANIFEST = {\n  schemaVersion: CAPABILITY_MANIFEST_SCHEMA_VERSION,\n  runtimes: CAPABILITY_RUNTIMES,\n  parityProfiles: CAPABILITY_PARITY_PROFILES,\n  surfaces: CAPABILITY_SURFACES,\n  entities: ENTITY_CAPABILITIES,\n} as const satisfies CapabilityManifest;\n"],"mappings":";;AAEA,MAAa,qCAAqC;AAElD,MAAa,sBAAsB;CAAC;CAAQ;CAAU;AAAM;AAI5D,MAAa,6BAA6B;CACxC,MAAM;CACN,OAAO,CAAC,QAAQ,QAAQ;CACxB,WAAW,CAAC,MAAM;CAClB,UAAU,CAAC,QAAQ,QAAQ;AAC7B;AAIA,MAAa,sBAAsB;CACjC;EAAE,IAAI;EAAmB,SAAS;CAAO;CACzC;EAAE,IAAI;EAAgB,SAAS;CAAO;CACtC;EAAE,IAAI;EAAqB,SAAS;CAAQ;CAC5C;EAAE,IAAI;EAAkB,SAAS;CAAO;CACxC;EAAE,IAAI;EAAe,SAAS;CAAO;CACrC;EAAE,IAAI;EAAsB,SAAS;CAAO;CAC5C;EAAE,IAAI;EAAoB,SAAS;CAAO;CAC1C;EAAE,IAAI;EAA4B,SAAS;CAAO;CAClD;EAAE,IAAI;EAA0B,SAAS;CAAO;CAChD;EAAE,IAA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