"use strict";
/**
 * @connexum/ai-governance
 *
 * Enterprise AI governance framework for Claude Code environments.
 * Hook-based enforcement, compliance packs, audit trails.
 *
 * Connexum Network Inc.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComplianceReporter = exports.NonceStore = exports.ApprovalService = exports.ApprovalQueue = exports.AuditIntegrity = exports.EventBus = exports.DataClassifier = exports.EncryptionLayer = exports.verifyProviderComplianceConfig = exports.ProviderCompliance = exports.SupplyChain = exports.AgentAuth = exports.evaluateHumanInputCompliance = exports.DEFAULT_INJECTION_INTENT_CATALOG = exports.cosineSimilarity = exports.SemanticInjectionClassifier = exports.canonicalBomJson = exports.generateSlsaProvenance = exports.verifyAiBom = exports.generateAiBom = exports.scoreOversight = exports.DEFAULT_SANDBOX_POLICY = exports.evaluateSandboxedCommand = exports.hashContextPrefix = exports.ContextWindowHasher = exports.validateMemoryHmacKey = exports.MemoryIntegrity = exports.SessionPersistence = exports.Council = exports.GateGuard = exports.InstinctSystem = exports.AnomalyDetector = exports.CircuitBreaker = exports.createCapabilityBundle = exports.GovernanceTamperError = exports.GovernanceRuntime = exports.GovernanceConfig = exports.createLogger = exports.Logger = exports.readFromOffset = exports.readLastLines = exports.saveJson = exports.loadJson = exports.parseJsonlLine = exports.readJsonlWithResults = exports.readJsonl = exports.appendJsonl = exports.sha256 = exports.sha256File = exports.ensureDir = void 0;
exports.PostMarketMonitor = exports.BiasMonitor = exports.KeyManager = exports.EncryptedStorage = exports.HashManifest = exports.fileStatsAsync = exports.fileExistsAsync = exports.readLastLinesAsync = exports.readFromOffsetAsync = exports.sha256FileAsync = exports.saveJsonAsync = exports.loadJsonAsync = exports.readJsonlAsync = exports.appendJsonlAsync = exports.ensureDirAsync = exports.TIMEOUT_PRESETS = exports.SessionTimeout = exports.CURRENT_SCHEMA_VERSION = exports.FileSystemBackend = exports.AccessReview = exports.StateManager = exports.LogRotation = exports.DataSubjectRights = exports.WebhookDelivery = exports.TransparencyInjector = exports.OperatorRoles = exports.CMMC2_PACK = exports.CJIS_PACK = exports.STATERAMP_PACK = exports.FEDRAMP_PACK = exports.FERPA_PACK = exports.JP_APPI_PACK = exports.APPI_PACK = exports.LPO2024_PACK = exports.FOIA_PACK = exports.FRCP26_PACK = exports.NAIC_MDL_PACK = exports.MIFID2_PACK = exports.ISO_42001_PACK = exports.NIST_AI_RMF_PACK = exports.ISO27001_PACK = exports.EUAIACT_PACK = exports.DORA_PACK = exports.PCIDSS_PACK = exports.GDPR_PACK = exports.HIPAA_PACK = exports.SOC2_PACK = exports.PackRegistry = exports.RetentionManager = exports.IncidentNotifier = void 0;
exports.getPolicyInheritanceResolver = exports.PolicyWeakeningRefusedError = exports.PolicyInheritanceResolver = exports.WorkspaceAuthError = exports.requirePermission = exports.requireRole = exports.hasWorkspacePermission = exports.WORKSPACE_ROLE_PERMISSIONS = exports.WorkspacePermission = exports.__resetWorkspaceStoresForTest = exports.getWorkspaceMemberStore = exports.getWorkspaceStore = exports.WorkspaceMemberStore = exports.WorkspaceStore = exports.UnauthorizedRetrievalSourceError = exports.RetrievalAllowlistEnforcer = exports.MemoryPoisoningDetectedError = exports.MemoryChainVerifier = exports.PACK_POLICIES = exports.InvalidReidentificationTokenError = exports.ReidentificationTokenRequiredError = exports.CrossSessionMemoryStore = exports.SessionMemoryExpiredError = exports.SessionMemoryStore = exports.PartnerManager = exports.PolicyTuningEngine = exports.GovernanceReporter = exports.SuspendStateCache = exports.OperatorSuspendedError = exports.createGovernedAgent = exports.TIER_LIMITS = exports.JwtIssuer = exports.JwtValidator = exports.PluginValidationError = exports.PluginRegistry = exports.TenantNotFoundError = exports.MultiTenantGovernance = exports.PaperclipAdapter = exports.OrchestratorGovernanceAdapter = exports.GeminiAdapter = exports.OpenAIAdapter = exports.createActionContext = exports.requireApproval = exports.deny = exports.allow = exports.ActionDecisionType = exports.BaseGovernanceAdapter = exports.VendorRegistry = exports.ProhibitedPractices = exports.AnomalyCorrelator = void 0;
exports.verifyInboundPassport = exports.issuePassport = exports.SecretLeakDetector = exports.BUILT_IN_LLM_HOSTNAMES = exports.BUILT_IN_LLM_PROVIDERS = exports.clearDefaultInterceptor = exports.getDefaultInterceptor = exports.redactBody = exports.UnboundHttpRequestError = exports.HttpInterceptorConfigError = exports.HttpRequestBlockedError = exports.RawHttpInterceptor = exports.OpenClawUnsanctionedWorkspaceError = exports.OpenClawMemoryPhiError = exports.OpenClawUnboundDataError = exports.OpenClawAdapter = exports.HAYSTACK_BAA_BACKENDS = exports.HaystackGdprErasureRequestEvent = exports.HaystackNonBaaProviderError = exports.HaystackUnboundDataError = exports.HaystackAdapter = exports.HEALTHCARE_DOC_KEYWORDS = exports.LlamaIndexReactObservationLeakError = exports.LlamaIndexSynthesisPhiError = exports.LlamaIndexPhiRetrievalError = exports.LlamaIndexUnboundDataError = exports.LlamaIndexAdapter = exports.DeepAgentsAdapter = exports.BEDROCK_BAA_REGIONS = exports.BedrockKbPhiError = exports.BedrockUnboundDataError = exports.BedrockBaaRegionError = exports.BedrockAgentCoreAdapter = exports.VERTEX_AI_BAA_REGIONS = exports.AdkSubscriptionGateError = exports.AdkBaaRegionError = exports.AdkUnboundDataError = exports.GoogleAdkAdapter = exports.SubscriptionGateError = exports.PhantomAgentError = exports.WebAccessDeniedError = exports.UnboundDataError = exports.ClaudeAgentSdkAdapter = exports.__resetPolicyResolverForTest = void 0;
// Utilities
var fs_1 = require("./util/fs");
Object.defineProperty(exports, "ensureDir", { enumerable: true, get: function () { return fs_1.ensureDir; } });
Object.defineProperty(exports, "sha256File", { enumerable: true, get: function () { return fs_1.sha256File; } });
Object.defineProperty(exports, "sha256", { enumerable: true, get: function () { return fs_1.sha256; } });
Object.defineProperty(exports, "appendJsonl", { enumerable: true, get: function () { return fs_1.appendJsonl; } });
Object.defineProperty(exports, "readJsonl", { enumerable: true, get: function () { return fs_1.readJsonl; } });
Object.defineProperty(exports, "readJsonlWithResults", { enumerable: true, get: function () { return fs_1.readJsonlWithResults; } });
Object.defineProperty(exports, "parseJsonlLine", { enumerable: true, get: function () { return fs_1.parseJsonlLine; } });
Object.defineProperty(exports, "loadJson", { enumerable: true, get: function () { return fs_1.loadJson; } });
Object.defineProperty(exports, "saveJson", { enumerable: true, get: function () { return fs_1.saveJson; } });
Object.defineProperty(exports, "readLastLines", { enumerable: true, get: function () { return fs_1.readLastLines; } });
Object.defineProperty(exports, "readFromOffset", { enumerable: true, get: function () { return fs_1.readFromOffset; } });
var log_1 = require("./util/log");
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return log_1.Logger; } });
Object.defineProperty(exports, "createLogger", { enumerable: true, get: function () { return log_1.createLogger; } });
// Unified Configuration
var governance_config_1 = require("./governance-config");
Object.defineProperty(exports, "GovernanceConfig", { enumerable: true, get: function () { return governance_config_1.GovernanceConfig; } });
// Governance
//
// AIAG-021: `governance-runtime.ts` defines its own `GovernanceConfig`
// interface, which collides with the `GovernanceConfig` class exported
// above from `./governance-config`. We re-export the runtime interface
// under the clearer name `GovernanceRuntimeConfig` and intentionally
// do NOT re-export the raw `GovernanceConfig` name from this module.
// Consumers should import the runtime config as `GovernanceRuntimeConfig`.
var governance_runtime_1 = require("./governance/governance-runtime");
Object.defineProperty(exports, "GovernanceRuntime", { enumerable: true, get: function () { return governance_runtime_1.GovernanceRuntime; } });
Object.defineProperty(exports, "GovernanceTamperError", { enumerable: true, get: function () { return governance_runtime_1.GovernanceTamperError; } });
var capability_bundle_1 = require("./governance/capability-bundle");
Object.defineProperty(exports, "createCapabilityBundle", { enumerable: true, get: function () { return capability_bundle_1.createCapabilityBundle; } });
// Security
var circuit_breaker_1 = require("./security/circuit-breaker");
Object.defineProperty(exports, "CircuitBreaker", { enumerable: true, get: function () { return circuit_breaker_1.CircuitBreaker; } });
// (ASI-10 SDK: forceOpen / resetForced / allowExecutionForAgent are instance
// methods on CircuitBreaker — no separate export needed.)
var anomaly_detector_1 = require("./security/anomaly-detector");
Object.defineProperty(exports, "AnomalyDetector", { enumerable: true, get: function () { return anomaly_detector_1.AnomalyDetector; } });
var instinct_system_1 = require("./governance/instinct-system");
Object.defineProperty(exports, "InstinctSystem", { enumerable: true, get: function () { return instinct_system_1.InstinctSystem; } });
var gateguard_1 = require("./governance/gateguard");
Object.defineProperty(exports, "GateGuard", { enumerable: true, get: function () { return gateguard_1.GateGuard; } });
var council_1 = require("./governance/council");
Object.defineProperty(exports, "Council", { enumerable: true, get: function () { return council_1.Council; } });
// Session & Memory
var session_persistence_1 = require("./governance/session-persistence");
Object.defineProperty(exports, "SessionPersistence", { enumerable: true, get: function () { return session_persistence_1.SessionPersistence; } });
var memory_integrity_1 = require("./governance/memory-integrity");
Object.defineProperty(exports, "MemoryIntegrity", { enumerable: true, get: function () { return memory_integrity_1.MemoryIntegrity; } });
Object.defineProperty(exports, "validateMemoryHmacKey", { enumerable: true, get: function () { return memory_integrity_1.validateMemoryHmacKey; } });
// ASI-06: context-window integrity (in-session context/memory poisoning detection).
var context_window_hasher_1 = require("./security/context-window-hasher");
Object.defineProperty(exports, "ContextWindowHasher", { enumerable: true, get: function () { return context_window_hasher_1.ContextWindowHasher; } });
Object.defineProperty(exports, "hashContextPrefix", { enumerable: true, get: function () { return context_window_hasher_1.hashContextPrefix; } });
// ASI-05: shell-sandbox policy (confine permitted shell execution).
var shell_sandbox_1 = require("./security/shell-sandbox");
Object.defineProperty(exports, "evaluateSandboxedCommand", { enumerable: true, get: function () { return shell_sandbox_1.evaluateSandboxedCommand; } });
Object.defineProperty(exports, "DEFAULT_SANDBOX_POLICY", { enumerable: true, get: function () { return shell_sandbox_1.DEFAULT_SANDBOX_POLICY; } });
// ASI-09: human-oversight-effectiveness scoring (rubber-stamp detection).
var oversight_effectiveness_1 = require("./governance/oversight-effectiveness");
Object.defineProperty(exports, "scoreOversight", { enumerable: true, get: function () { return oversight_effectiveness_1.scoreOversight; } });
// ASI-04: AI Bill of Materials (agentic supply-chain provenance).
var ai_bom_1 = require("./security/ai-bom");
Object.defineProperty(exports, "generateAiBom", { enumerable: true, get: function () { return ai_bom_1.generateAiBom; } });
Object.defineProperty(exports, "verifyAiBom", { enumerable: true, get: function () { return ai_bom_1.verifyAiBom; } });
Object.defineProperty(exports, "generateSlsaProvenance", { enumerable: true, get: function () { return ai_bom_1.generateSlsaProvenance; } });
Object.defineProperty(exports, "canonicalBomJson", { enumerable: true, get: function () { return ai_bom_1.canonicalBomJson; } });
// ASI-01: semantic injection classifier (paraphrased indirect injection — a
// second stage over the rule-based PromptInjectionDetector; injectable embedding).
var semantic_injection_classifier_1 = require("./security/semantic-injection-classifier");
Object.defineProperty(exports, "SemanticInjectionClassifier", { enumerable: true, get: function () { return semantic_injection_classifier_1.SemanticInjectionClassifier; } });
Object.defineProperty(exports, "cosineSimilarity", { enumerable: true, get: function () { return semantic_injection_classifier_1.cosineSimilarity; } });
Object.defineProperty(exports, "DEFAULT_INJECTION_INTENT_CATALOG", { enumerable: true, get: function () { return semantic_injection_classifier_1.DEFAULT_INJECTION_INTENT_CATALOG; } });
// Trust Score #5: human-input compliance gate (catches a human
// innocently requesting a rule-breaking action against the agent's bound packs).
var human_input_compliance_gate_1 = require("./security/human-input-compliance-gate");
Object.defineProperty(exports, "evaluateHumanInputCompliance", { enumerable: true, get: function () { return human_input_compliance_gate_1.evaluateHumanInputCompliance; } });
// Inter-Agent Auth (Phase 10)
var agent_auth_1 = require("./security/agent-auth");
Object.defineProperty(exports, "AgentAuth", { enumerable: true, get: function () { return agent_auth_1.AgentAuth; } });
// Supply Chain (Phase 11)
var supply_chain_1 = require("./security/supply-chain");
Object.defineProperty(exports, "SupplyChain", { enumerable: true, get: function () { return supply_chain_1.SupplyChain; } });
// Provider Compliance (LLM provider verification)
var provider_compliance_1 = require("./security/provider-compliance");
Object.defineProperty(exports, "ProviderCompliance", { enumerable: true, get: function () { return provider_compliance_1.ProviderCompliance; } });
// Provider Compliance boot-hook (operator-visible config verification).
// C-2 (2026-04-21): wire into server boot to refuse permissive+unknown.
var provider_compliance_boot_1 = require("./security/provider-compliance-boot");
Object.defineProperty(exports, "verifyProviderComplianceConfig", { enumerable: true, get: function () { return provider_compliance_boot_1.verifyProviderComplianceConfig; } });
// Encryption at Rest (AES-256-GCM)
var encryption_layer_1 = require("./security/encryption-layer");
Object.defineProperty(exports, "EncryptionLayer", { enumerable: true, get: function () { return encryption_layer_1.EncryptionLayer; } });
// Data Classification (HIPAA PHI, GDPR PII, PCI DSS PAN)
var data_classifier_1 = require("./security/data-classifier");
Object.defineProperty(exports, "DataClassifier", { enumerable: true, get: function () { return data_classifier_1.DataClassifier; } });
// Audit
var event_bus_1 = require("./audit/event-bus");
Object.defineProperty(exports, "EventBus", { enumerable: true, get: function () { return event_bus_1.EventBus; } });
var audit_integrity_1 = require("./audit/audit-integrity");
Object.defineProperty(exports, "AuditIntegrity", { enumerable: true, get: function () { return audit_integrity_1.AuditIntegrity; } });
// Approval Queue (APPROVAL_REQUIRED workflow)
var approval_queue_1 = require("./governance/approval-queue");
Object.defineProperty(exports, "ApprovalQueue", { enumerable: true, get: function () { return approval_queue_1.ApprovalQueue; } });
// Approval Service (REST API wrapper for dashboard integration)
var approval_service_1 = require("./governance/approval-service");
Object.defineProperty(exports, "ApprovalService", { enumerable: true, get: function () { return approval_service_1.ApprovalService; } });
// Persistent Nonce Store (cross-restart replay protection)
var nonce_store_1 = require("./security/nonce-store");
Object.defineProperty(exports, "NonceStore", { enumerable: true, get: function () { return nonce_store_1.NonceStore; } });
var compliance_reporter_1 = require("./audit/compliance-reporter");
Object.defineProperty(exports, "ComplianceReporter", { enumerable: true, get: function () { return compliance_reporter_1.ComplianceReporter; } });
// Incident Notification
var incident_notifier_1 = require("./governance/incident-notifier");
Object.defineProperty(exports, "IncidentNotifier", { enumerable: true, get: function () { return incident_notifier_1.IncidentNotifier; } });
// Retention Manager
var retention_manager_1 = require("./governance/retention-manager");
Object.defineProperty(exports, "RetentionManager", { enumerable: true, get: function () { return retention_manager_1.RetentionManager; } });
// Compliance Packs
var index_1 = require("./packs/index");
Object.defineProperty(exports, "PackRegistry", { enumerable: true, get: function () { return index_1.PackRegistry; } });
var soc2_1 = require("./packs/soc2");
Object.defineProperty(exports, "SOC2_PACK", { enumerable: true, get: function () { return soc2_1.SOC2_PACK; } });
var hipaa_1 = require("./packs/hipaa");
Object.defineProperty(exports, "HIPAA_PACK", { enumerable: true, get: function () { return hipaa_1.HIPAA_PACK; } });
var gdpr_1 = require("./packs/gdpr");
Object.defineProperty(exports, "GDPR_PACK", { enumerable: true, get: function () { return gdpr_1.GDPR_PACK; } });
var pcidss_1 = require("./packs/pcidss");
Object.defineProperty(exports, "PCIDSS_PACK", { enumerable: true, get: function () { return pcidss_1.PCIDSS_PACK; } });
var dora_1 = require("./packs/dora");
Object.defineProperty(exports, "DORA_PACK", { enumerable: true, get: function () { return dora_1.DORA_PACK; } });
var euaiact_1 = require("./packs/euaiact");
Object.defineProperty(exports, "EUAIACT_PACK", { enumerable: true, get: function () { return euaiact_1.EUAIACT_PACK; } });
var iso27001_1 = require("./packs/iso27001");
Object.defineProperty(exports, "ISO27001_PACK", { enumerable: true, get: function () { return iso27001_1.ISO27001_PACK; } });
var nist_ai_rmf_1 = require("./packs/nist-ai-rmf");
Object.defineProperty(exports, "NIST_AI_RMF_PACK", { enumerable: true, get: function () { return nist_ai_rmf_1.NIST_AI_RMF_PACK; } });
var iso42001_1 = require("./packs/iso42001");
Object.defineProperty(exports, "ISO_42001_PACK", { enumerable: true, get: function () { return iso42001_1.ISO_42001_PACK; } });
var mifid2_1 = require("./packs/mifid2");
Object.defineProperty(exports, "MIFID2_PACK", { enumerable: true, get: function () { return mifid2_1.MIFID2_PACK; } });
var naic_mdl_1 = require("./packs/naic-mdl");
Object.defineProperty(exports, "NAIC_MDL_PACK", { enumerable: true, get: function () { return naic_mdl_1.NAIC_MDL_PACK; } });
var frcp26_1 = require("./packs/frcp26");
Object.defineProperty(exports, "FRCP26_PACK", { enumerable: true, get: function () { return frcp26_1.FRCP26_PACK; } });
var foia_1 = require("./packs/foia");
Object.defineProperty(exports, "FOIA_PACK", { enumerable: true, get: function () { return foia_1.FOIA_PACK; } });
var lpo2024_1 = require("./packs/lpo2024");
Object.defineProperty(exports, "LPO2024_PACK", { enumerable: true, get: function () { return lpo2024_1.LPO2024_PACK; } });
var jp_appi_1 = require("./packs/jp-appi");
Object.defineProperty(exports, "APPI_PACK", { enumerable: true, get: function () { return jp_appi_1.JP_APPI_PACK; } });
Object.defineProperty(exports, "JP_APPI_PACK", { enumerable: true, get: function () { return jp_appi_1.JP_APPI_PACK; } });
var ferpa_1 = require("./packs/ferpa");
Object.defineProperty(exports, "FERPA_PACK", { enumerable: true, get: function () { return ferpa_1.FERPA_PACK; } });
var fedramp_1 = require("./packs/fedramp");
Object.defineProperty(exports, "FEDRAMP_PACK", { enumerable: true, get: function () { return fedramp_1.FEDRAMP_PACK; } });
var stateramp_1 = require("./packs/stateramp");
Object.defineProperty(exports, "STATERAMP_PACK", { enumerable: true, get: function () { return stateramp_1.STATERAMP_PACK; } });
var cjis_1 = require("./packs/cjis");
Object.defineProperty(exports, "CJIS_PACK", { enumerable: true, get: function () { return cjis_1.CJIS_PACK; } });
var cmmc2_1 = require("./packs/cmmc2");
Object.defineProperty(exports, "CMMC2_PACK", { enumerable: true, get: function () { return cmmc2_1.CMMC2_PACK; } });
// Operator RBAC
var operator_roles_1 = require("./security/operator-roles");
Object.defineProperty(exports, "OperatorRoles", { enumerable: true, get: function () { return operator_roles_1.OperatorRoles; } });
// Transparency (EU AI Act)
var transparency_injector_1 = require("./governance/transparency-injector");
Object.defineProperty(exports, "TransparencyInjector", { enumerable: true, get: function () { return transparency_injector_1.TransparencyInjector; } });
// Webhook Delivery (SIEM integration)
var webhook_delivery_1 = require("./audit/webhook-delivery");
Object.defineProperty(exports, "WebhookDelivery", { enumerable: true, get: function () { return webhook_delivery_1.WebhookDelivery; } });
// Data Subject Rights (GDPR Art. 15-22)
var data_subject_rights_1 = require("./governance/data-subject-rights");
Object.defineProperty(exports, "DataSubjectRights", { enumerable: true, get: function () { return data_subject_rights_1.DataSubjectRights; } });
// Log Rotation
var log_rotation_1 = require("./util/log-rotation");
Object.defineProperty(exports, "LogRotation", { enumerable: true, get: function () { return log_rotation_1.LogRotation; } });
// Shared State Manager
var state_manager_1 = require("./governance/state-manager");
Object.defineProperty(exports, "StateManager", { enumerable: true, get: function () { return state_manager_1.StateManager; } });
// Quarterly Access Review
var access_review_1 = require("./security/access-review");
Object.defineProperty(exports, "AccessReview", { enumerable: true, get: function () { return access_review_1.AccessReview; } });
// Pluggable Storage Backend
var storage_backend_1 = require("./util/storage-backend");
Object.defineProperty(exports, "FileSystemBackend", { enumerable: true, get: function () { return storage_backend_1.FileSystemBackend; } });
Object.defineProperty(exports, "CURRENT_SCHEMA_VERSION", { enumerable: true, get: function () { return storage_backend_1.CURRENT_SCHEMA_VERSION; } });
// Session Timeout Enforcement
var session_timeout_1 = require("./security/session-timeout");
Object.defineProperty(exports, "SessionTimeout", { enumerable: true, get: function () { return session_timeout_1.SessionTimeout; } });
Object.defineProperty(exports, "TIMEOUT_PRESETS", { enumerable: true, get: function () { return session_timeout_1.TIMEOUT_PRESETS; } });
// Async I/O Utilities
var async_io_1 = require("./util/async-io");
Object.defineProperty(exports, "ensureDirAsync", { enumerable: true, get: function () { return async_io_1.ensureDirAsync; } });
Object.defineProperty(exports, "appendJsonlAsync", { enumerable: true, get: function () { return async_io_1.appendJsonlAsync; } });
Object.defineProperty(exports, "readJsonlAsync", { enumerable: true, get: function () { return async_io_1.readJsonlAsync; } });
Object.defineProperty(exports, "loadJsonAsync", { enumerable: true, get: function () { return async_io_1.loadJsonAsync; } });
Object.defineProperty(exports, "saveJsonAsync", { enumerable: true, get: function () { return async_io_1.saveJsonAsync; } });
Object.defineProperty(exports, "sha256FileAsync", { enumerable: true, get: function () { return async_io_1.sha256FileAsync; } });
Object.defineProperty(exports, "readFromOffsetAsync", { enumerable: true, get: function () { return async_io_1.readFromOffsetAsync; } });
Object.defineProperty(exports, "readLastLinesAsync", { enumerable: true, get: function () { return async_io_1.readLastLinesAsync; } });
Object.defineProperty(exports, "fileExistsAsync", { enumerable: true, get: function () { return async_io_1.fileExistsAsync; } });
Object.defineProperty(exports, "fileStatsAsync", { enumerable: true, get: function () { return async_io_1.fileStatsAsync; } });
// HMAC-Signed Hash Manifests
var hash_manifest_1 = require("./security/hash-manifest");
Object.defineProperty(exports, "HashManifest", { enumerable: true, get: function () { return hash_manifest_1.HashManifest; } });
// Encrypted Storage (AES-256-GCM at rest)
var encrypted_storage_1 = require("./security/encrypted-storage");
Object.defineProperty(exports, "EncryptedStorage", { enumerable: true, get: function () { return encrypted_storage_1.EncryptedStorage; } });
// Key Management & Rotation
var key_manager_1 = require("./security/key-manager");
Object.defineProperty(exports, "KeyManager", { enumerable: true, get: function () { return key_manager_1.KeyManager; } });
// Bias Monitor (EU AI Act Art. 9) (T-072)
var bias_monitor_1 = require("./governance/bias-monitor");
Object.defineProperty(exports, "BiasMonitor", { enumerable: true, get: function () { return bias_monitor_1.BiasMonitor; } });
// Post-Market Monitor (EU AI Act Art. 72) (T-074)
var post_market_monitor_1 = require("./governance/post-market-monitor");
Object.defineProperty(exports, "PostMarketMonitor", { enumerable: true, get: function () { return post_market_monitor_1.PostMarketMonitor; } });
// Cross-Agent Anomaly Correlation (T-071)
var anomaly_correlator_1 = require("./security/anomaly-correlator");
Object.defineProperty(exports, "AnomalyCorrelator", { enumerable: true, get: function () { return anomaly_correlator_1.AnomalyCorrelator; } });
// EU AI Act Art. 5 Prohibited Practices (T-073)
var prohibited_practices_1 = require("./governance/prohibited-practices");
Object.defineProperty(exports, "ProhibitedPractices", { enumerable: true, get: function () { return prohibited_practices_1.ProhibitedPractices; } });
// Vendor Registry & Risk Scoring
var vendor_registry_1 = require("./security/vendor-registry");
Object.defineProperty(exports, "VendorRegistry", { enumerable: true, get: function () { return vendor_registry_1.VendorRegistry; } });
// Platform Adapters
var index_2 = require("./adapters/index");
Object.defineProperty(exports, "BaseGovernanceAdapter", { enumerable: true, get: function () { return index_2.BaseGovernanceAdapter; } });
Object.defineProperty(exports, "ActionDecisionType", { enumerable: true, get: function () { return index_2.ActionDecisionType; } });
Object.defineProperty(exports, "allow", { enumerable: true, get: function () { return index_2.allow; } });
Object.defineProperty(exports, "deny", { enumerable: true, get: function () { return index_2.deny; } });
Object.defineProperty(exports, "requireApproval", { enumerable: true, get: function () { return index_2.requireApproval; } });
Object.defineProperty(exports, "createActionContext", { enumerable: true, get: function () { return index_2.createActionContext; } });
var openai_1 = require("./llm-adapters/openai");
Object.defineProperty(exports, "OpenAIAdapter", { enumerable: true, get: function () { return openai_1.OpenAIAdapter; } });
// Gemini Adapter
var gemini_1 = require("./llm-adapters/gemini");
Object.defineProperty(exports, "GeminiAdapter", { enumerable: true, get: function () { return gemini_1.GeminiAdapter; } });
// Orchestrator Adapter (Paperclip, CrewAI, AutoGen, LangGraph)
var orchestrator_adapter_1 = require("./orchestrator-adapters/orchestrator-adapter");
Object.defineProperty(exports, "OrchestratorGovernanceAdapter", { enumerable: true, get: function () { return orchestrator_adapter_1.OrchestratorGovernanceAdapter; } });
// Paperclip Adapter (first concrete orchestrator implementation)
var paperclip_adapter_1 = require("./orchestrator-adapters/paperclip-adapter");
Object.defineProperty(exports, "PaperclipAdapter", { enumerable: true, get: function () { return paperclip_adapter_1.PaperclipAdapter; } });
// Multi-Tenancy
var multi_tenant_1 = require("./governance/multi-tenant");
Object.defineProperty(exports, "MultiTenantGovernance", { enumerable: true, get: function () { return multi_tenant_1.MultiTenantGovernance; } });
Object.defineProperty(exports, "TenantNotFoundError", { enumerable: true, get: function () { return multi_tenant_1.TenantNotFoundError; } });
// Plugin System
var plugin_system_1 = require("./governance/plugin-system");
Object.defineProperty(exports, "PluginRegistry", { enumerable: true, get: function () { return plugin_system_1.PluginRegistry; } });
Object.defineProperty(exports, "PluginValidationError", { enumerable: true, get: function () { return plugin_system_1.PluginValidationError; } });
// License (JWT-based validation and issuance)
var index_3 = require("./license/index");
Object.defineProperty(exports, "JwtValidator", { enumerable: true, get: function () { return index_3.JwtValidator; } });
Object.defineProperty(exports, "JwtIssuer", { enumerable: true, get: function () { return index_3.JwtIssuer; } });
Object.defineProperty(exports, "TIER_LIMITS", { enumerable: true, get: function () { return index_3.TIER_LIMITS; } });
// Governed Agent (Layer 1 entry point)
var governed_agent_1 = require("./governed-agent");
Object.defineProperty(exports, "createGovernedAgent", { enumerable: true, get: function () { return governed_agent_1.createGovernedAgent; } });
Object.defineProperty(exports, "OperatorSuspendedError", { enumerable: true, get: function () { return governed_agent_1.OperatorSuspendedError; } });
// ASI-10 SDK kill-switch cache
var suspend_state_cache_1 = require("./security/suspend-state-cache");
Object.defineProperty(exports, "SuspendStateCache", { enumerable: true, get: function () { return suspend_state_cache_1.SuspendStateCache; } });
// Governance Reporter (SDK Event Streaming)
var governance_reporter_1 = require("./reporting/governance-reporter");
Object.defineProperty(exports, "GovernanceReporter", { enumerable: true, get: function () { return governance_reporter_1.GovernanceReporter; } });
// Policy Tuning (False Positive Reduction)
var policy_tuning_1 = require("./governance/policy-tuning");
Object.defineProperty(exports, "PolicyTuningEngine", { enumerable: true, get: function () { return policy_tuning_1.PolicyTuningEngine; } });
// Channel Partner Management
var partner_manager_1 = require("./governance/partner-manager");
Object.defineProperty(exports, "PartnerManager", { enumerable: true, get: function () { return partner_manager_1.PartnerManager; } });
// ---------------------------------------------------------------------------
// P3-T1 Memory Governance (Group 2)
// ---------------------------------------------------------------------------
// Session-scoped memory with auto-clear
var session_memory_1 = require("./governance/memory/session-memory");
Object.defineProperty(exports, "SessionMemoryStore", { enumerable: true, get: function () { return session_memory_1.SessionMemoryStore; } });
Object.defineProperty(exports, "SessionMemoryExpiredError", { enumerable: true, get: function () { return session_memory_1.SessionMemoryExpiredError; } });
// Cross-session memory with pseudonymisation
var cross_session_memory_1 = require("./governance/memory/cross-session-memory");
Object.defineProperty(exports, "CrossSessionMemoryStore", { enumerable: true, get: function () { return cross_session_memory_1.CrossSessionMemoryStore; } });
Object.defineProperty(exports, "ReidentificationTokenRequiredError", { enumerable: true, get: function () { return cross_session_memory_1.ReidentificationTokenRequiredError; } });
Object.defineProperty(exports, "InvalidReidentificationTokenError", { enumerable: true, get: function () { return cross_session_memory_1.InvalidReidentificationTokenError; } });
Object.defineProperty(exports, "PACK_POLICIES", { enumerable: true, get: function () { return cross_session_memory_1.PACK_POLICIES; } });
// Memory-state audit chain verification
var memory_chain_1 = require("./governance/memory/memory-chain");
Object.defineProperty(exports, "MemoryChainVerifier", { enumerable: true, get: function () { return memory_chain_1.MemoryChainVerifier; } });
Object.defineProperty(exports, "MemoryPoisoningDetectedError", { enumerable: true, get: function () { return memory_chain_1.MemoryPoisoningDetectedError; } });
// Retrieval source allowlisting
var retrieval_allowlist_1 = require("./governance/memory/retrieval-allowlist");
Object.defineProperty(exports, "RetrievalAllowlistEnforcer", { enumerable: true, get: function () { return retrieval_allowlist_1.RetrievalAllowlistEnforcer; } });
Object.defineProperty(exports, "UnauthorizedRetrievalSourceError", { enumerable: true, get: function () { return retrieval_allowlist_1.UnauthorizedRetrievalSourceError; } });
// ---------------------------------------------------------------------------
// Team Workspace + RBAC + Org-level Policy Inheritance (team-tier substrate)
// ---------------------------------------------------------------------------
var workspace_1 = require("./tenant/workspace");
Object.defineProperty(exports, "WorkspaceStore", { enumerable: true, get: function () { return workspace_1.WorkspaceStore; } });
Object.defineProperty(exports, "WorkspaceMemberStore", { enumerable: true, get: function () { return workspace_1.WorkspaceMemberStore; } });
Object.defineProperty(exports, "getWorkspaceStore", { enumerable: true, get: function () { return workspace_1.getWorkspaceStore; } });
Object.defineProperty(exports, "getWorkspaceMemberStore", { enumerable: true, get: function () { return workspace_1.getWorkspaceMemberStore; } });
Object.defineProperty(exports, "__resetWorkspaceStoresForTest", { enumerable: true, get: function () { return workspace_1.__resetWorkspaceStoresForTest; } });
var rbac_1 = require("./tenant/rbac");
Object.defineProperty(exports, "WorkspacePermission", { enumerable: true, get: function () { return rbac_1.WorkspacePermission; } });
Object.defineProperty(exports, "WORKSPACE_ROLE_PERMISSIONS", { enumerable: true, get: function () { return rbac_1.WORKSPACE_ROLE_PERMISSIONS; } });
Object.defineProperty(exports, "hasWorkspacePermission", { enumerable: true, get: function () { return rbac_1.hasWorkspacePermission; } });
Object.defineProperty(exports, "requireRole", { enumerable: true, get: function () { return rbac_1.requireRole; } });
Object.defineProperty(exports, "requirePermission", { enumerable: true, get: function () { return rbac_1.requirePermission; } });
Object.defineProperty(exports, "WorkspaceAuthError", { enumerable: true, get: function () { return rbac_1.WorkspaceAuthError; } });
var policy_inheritance_1 = require("./tenant/policy-inheritance");
Object.defineProperty(exports, "PolicyInheritanceResolver", { enumerable: true, get: function () { return policy_inheritance_1.PolicyInheritanceResolver; } });
Object.defineProperty(exports, "PolicyWeakeningRefusedError", { enumerable: true, get: function () { return policy_inheritance_1.PolicyWeakeningRefusedError; } });
Object.defineProperty(exports, "getPolicyInheritanceResolver", { enumerable: true, get: function () { return policy_inheritance_1.getPolicyInheritanceResolver; } });
Object.defineProperty(exports, "__resetPolicyResolverForTest", { enumerable: true, get: function () { return policy_inheritance_1.__resetPolicyResolverForTest; } });
// ---------------------------------------------------------------------------
// P3-SUB-ADAPT-01: Claude Agent SDK / Managed Agents adapter
// ---------------------------------------------------------------------------
var claude_agent_sdk_1 = require("./orchestrator-adapters/claude-agent-sdk");
Object.defineProperty(exports, "ClaudeAgentSdkAdapter", { enumerable: true, get: function () { return claude_agent_sdk_1.ClaudeAgentSdkAdapter; } });
Object.defineProperty(exports, "UnboundDataError", { enumerable: true, get: function () { return claude_agent_sdk_1.UnboundDataError; } });
Object.defineProperty(exports, "WebAccessDeniedError", { enumerable: true, get: function () { return claude_agent_sdk_1.WebAccessDeniedError; } });
Object.defineProperty(exports, "PhantomAgentError", { enumerable: true, get: function () { return claude_agent_sdk_1.PhantomAgentError; } });
Object.defineProperty(exports, "SubscriptionGateError", { enumerable: true, get: function () { return claude_agent_sdk_1.SubscriptionGateError; } });
// Google Agent Development Kit (ADK) orchestrator adapter (P3-SUB-ADAPT-02)
var google_adk_1 = require("./orchestrator-adapters/google-adk");
Object.defineProperty(exports, "GoogleAdkAdapter", { enumerable: true, get: function () { return google_adk_1.GoogleAdkAdapter; } });
Object.defineProperty(exports, "AdkUnboundDataError", { enumerable: true, get: function () { return google_adk_1.AdkUnboundDataError; } });
Object.defineProperty(exports, "AdkBaaRegionError", { enumerable: true, get: function () { return google_adk_1.AdkBaaRegionError; } });
Object.defineProperty(exports, "AdkSubscriptionGateError", { enumerable: true, get: function () { return google_adk_1.AdkSubscriptionGateError; } });
Object.defineProperty(exports, "VERTEX_AI_BAA_REGIONS", { enumerable: true, get: function () { return google_adk_1.VERTEX_AI_BAA_REGIONS; } });
// AWS Bedrock AgentCore orchestrator adapter (P3-SUB-ADAPT-03)
var bedrock_agentcore_1 = require("./orchestrator-adapters/bedrock-agentcore");
Object.defineProperty(exports, "BedrockAgentCoreAdapter", { enumerable: true, get: function () { return bedrock_agentcore_1.BedrockAgentCoreAdapter; } });
Object.defineProperty(exports, "BedrockBaaRegionError", { enumerable: true, get: function () { return bedrock_agentcore_1.BedrockBaaRegionError; } });
Object.defineProperty(exports, "BedrockUnboundDataError", { enumerable: true, get: function () { return bedrock_agentcore_1.BedrockUnboundDataError; } });
Object.defineProperty(exports, "BedrockKbPhiError", { enumerable: true, get: function () { return bedrock_agentcore_1.BedrockKbPhiError; } });
Object.defineProperty(exports, "BEDROCK_BAA_REGIONS", { enumerable: true, get: function () { return bedrock_agentcore_1.BEDROCK_BAA_REGIONS; } });
// deepagents orchestrator adapter (P3-SUB-ADAPT-06, layered on LangGraph)
var deepagents_1 = require("./orchestrator-adapters/deepagents");
Object.defineProperty(exports, "DeepAgentsAdapter", { enumerable: true, get: function () { return deepagents_1.DeepAgentsAdapter; } });
// LlamaIndex Agents orchestrator adapter (P3-SUB-ADAPT-04)
var llamaindex_1 = require("./orchestrator-adapters/llamaindex");
Object.defineProperty(exports, "LlamaIndexAdapter", { enumerable: true, get: function () { return llamaindex_1.LlamaIndexAdapter; } });
Object.defineProperty(exports, "LlamaIndexUnboundDataError", { enumerable: true, get: function () { return llamaindex_1.LlamaIndexUnboundDataError; } });
Object.defineProperty(exports, "LlamaIndexPhiRetrievalError", { enumerable: true, get: function () { return llamaindex_1.LlamaIndexPhiRetrievalError; } });
Object.defineProperty(exports, "LlamaIndexSynthesisPhiError", { enumerable: true, get: function () { return llamaindex_1.LlamaIndexSynthesisPhiError; } });
Object.defineProperty(exports, "LlamaIndexReactObservationLeakError", { enumerable: true, get: function () { return llamaindex_1.LlamaIndexReactObservationLeakError; } });
Object.defineProperty(exports, "HEALTHCARE_DOC_KEYWORDS", { enumerable: true, get: function () { return llamaindex_1.HEALTHCARE_DOC_KEYWORDS; } });
// Haystack Agents (deepset) orchestrator adapter (P3-SUB-ADAPT-05)
var haystack_1 = require("./orchestrator-adapters/haystack");
Object.defineProperty(exports, "HaystackAdapter", { enumerable: true, get: function () { return haystack_1.HaystackAdapter; } });
Object.defineProperty(exports, "HaystackUnboundDataError", { enumerable: true, get: function () { return haystack_1.HaystackUnboundDataError; } });
Object.defineProperty(exports, "HaystackNonBaaProviderError", { enumerable: true, get: function () { return haystack_1.HaystackNonBaaProviderError; } });
Object.defineProperty(exports, "HaystackGdprErasureRequestEvent", { enumerable: true, get: function () { return haystack_1.HaystackGdprErasureRequestEvent; } });
Object.defineProperty(exports, "HAYSTACK_BAA_BACKENDS", { enumerable: true, get: function () { return haystack_1.HAYSTACK_BAA_BACKENDS; } });
// OpenClaw orchestrator adapter (P3-SUB-ADAPT-07)
var openclaw_1 = require("./orchestrator-adapters/openclaw");
Object.defineProperty(exports, "OpenClawAdapter", { enumerable: true, get: function () { return openclaw_1.OpenClawAdapter; } });
Object.defineProperty(exports, "OpenClawUnboundDataError", { enumerable: true, get: function () { return openclaw_1.OpenClawUnboundDataError; } });
Object.defineProperty(exports, "OpenClawMemoryPhiError", { enumerable: true, get: function () { return openclaw_1.OpenClawMemoryPhiError; } });
Object.defineProperty(exports, "OpenClawUnsanctionedWorkspaceError", { enumerable: true, get: function () { return openclaw_1.OpenClawUnsanctionedWorkspaceError; } });
// Raw HTTP Interception (CrabTrap-style governance net) — P3-SUB
var http_interceptor_1 = require("./security/http-interceptor");
Object.defineProperty(exports, "RawHttpInterceptor", { enumerable: true, get: function () { return http_interceptor_1.RawHttpInterceptor; } });
Object.defineProperty(exports, "HttpRequestBlockedError", { enumerable: true, get: function () { return http_interceptor_1.HttpRequestBlockedError; } });
Object.defineProperty(exports, "HttpInterceptorConfigError", { enumerable: true, get: function () { return http_interceptor_1.HttpInterceptorConfigError; } });
Object.defineProperty(exports, "UnboundHttpRequestError", { enumerable: true, get: function () { return http_interceptor_1.UnboundHttpRequestError; } });
Object.defineProperty(exports, "redactBody", { enumerable: true, get: function () { return http_interceptor_1.redactBody; } });
Object.defineProperty(exports, "getDefaultInterceptor", { enumerable: true, get: function () { return http_interceptor_1.getDefaultInterceptor; } });
Object.defineProperty(exports, "clearDefaultInterceptor", { enumerable: true, get: function () { return http_interceptor_1.clearDefaultInterceptor; } });
var built_in_llm_providers_1 = require("./security/built-in-llm-providers");
Object.defineProperty(exports, "BUILT_IN_LLM_PROVIDERS", { enumerable: true, get: function () { return built_in_llm_providers_1.BUILT_IN_LLM_PROVIDERS; } });
Object.defineProperty(exports, "BUILT_IN_LLM_HOSTNAMES", { enumerable: true, get: function () { return built_in_llm_providers_1.BUILT_IN_LLM_HOSTNAMES; } });
var secret_leak_detector_1 = require("./security/secret-leak-detector");
Object.defineProperty(exports, "SecretLeakDetector", { enumerable: true, get: function () { return secret_leak_detector_1.SecretLeakDetector; } });
// CR-CRIT-01 SDK passport surface (2026-05-12). Customers call issuePassport()
// to obtain a signed passport from the trust-api daemon and verifyInboundPassport()
// to verify passports offline against the cached platform CA public key.
var index_4 = require("./trust-passport/index");
Object.defineProperty(exports, "issuePassport", { enumerable: true, get: function () { return index_4.issuePassport; } });
Object.defineProperty(exports, "verifyInboundPassport", { enumerable: true, get: function () { return index_4.verifyInboundPassport; } });
//# sourceMappingURL=index.js.map