/**
 * ShieldCortex — Library Entry Point
 *
 * Safe to import without side effects. No MCP server started,
 * no workers spawned, no stdin consumed.
 *
 * Usage:
 *   import { runDefencePipeline, scanSkill, addMemory } from 'shieldcortex';
 *   import { runDefencePipeline } from 'shieldcortex/defence';
 */
// ── Defence ────────────────────────────────────────────────
export { runDefencePipeline, runDefencePipelineWithVerify, DEFAULT_DEFENCE_CONFIG, scoreSource, filterByTrust, analyzeFirewall, classifySensitivity, redactContent, redactForDisplay, analyzeFragmentation, storeFragmentationData, scanForCredentials, redactCredentials, DEFAULT_CREDENTIAL_CONFIG, logAudit, queryAuditLogs, getAuditStats, getDefenceMode, setDefenceMode, isConfigTampered, getCloudConfig, setCloudConfig, clearCloudConfigCache, getOpenClawAutoMemory, setOpenClawAutoMemory, getOpenClawMemoryConfig, setOpenClawMemoryConfig, getVerifyConfig, setVerifyConfig, syncToCloud, syncQuarantineToCloud, submitVerification, pollVerification, getDeviceId, getDeviceName, } from './defence/index.js';
// ── Review Copilot ───────────────────────────────────────
export { getReviewCopilotConfig, setReviewCopilotConfig } from './cloud/config.js';
export { reviewQuarantineItem, groupReviewAnnotations, groupSimilarItems, parseReviewAnnotation, validateReviewAnnotation, fallbackAnnotation, } from './defence/judge/index.js';
export { annotateQuarantineItem, annotatePendingQuarantineItems, getAnnotationForItem, } from './defence/judge/annotate.js';
// ── Local AI Explainer ────────────────────────────────────
export { explainLocalAiSubject, buildLocalAiExplainPrompt, parseLocalAiExplanation, fallbackLocalAiExplanation, } from './defence/explainer/index.js';
// ── Tool Response Scanner ─────────────────────────────────
export { scanToolResponse, shouldScanToolResponse } from './defence/tool-response-scanner.js';
// ── Iron Dome ─────────────────────────────────────────────
export { activateIronDome, deactivateIronDome, getIronDomeStatus, isChannelTrusted, isActionAllowed, scanForInjection, checkPII, handleKillPhrase, IRON_DOME_PROFILES, DEFAULT_IRON_DOME_CONFIG, } from './defence/iron-dome/index.js';
// ── Kill Switch / Control ─────────────────────────────────
export { activateKillSwitch, deactivateKillSwitch, isKillSwitchActive, getKillSwitchMeta, assertOperationAllowed, isPaused, getControlStatus, KillSwitchError, } from './api/control.js';
// ── Skill Scanner ──────────────────────────────────────────
export { scanSkill, scanSkillContent, discoverSkillFiles, readSkillFile, parseSkillFile, detectFormat, detectFormatFromContent, } from './defence/skill-scanner/index.js';
// ── Memory ─────────────────────────────────────────────────
export { addMemory, getMemoryById, updateMemory, deleteMemory, accessMemory, reinforceFromSearch, MemoryPausedError, MemoryBlockedError, } from './memory/store.js';
// ── Memory Intelligence ────────────────────────────────────
export { calculateDecayedScore, processDecay, calculatePriority } from './memory/decay.js';
export { calculateSalience } from './memory/salience.js';
export { jaccardSimilarity, hasSignificantOverlap, wordOverlap } from './memory/similarity.js';
export { consolidate, mergeSimilarMemories, exportMemories, importMemories } from './memory/consolidate.js';
export { detectContradictions } from './memory/contradiction.js';
export { activateMemory, getActivationBoost, getActivationLevel, getActiveMemories } from './memory/activation.js';
// ── Integrations ────────────────────────────────────────────
export { ShieldCortexMemory, ShieldCortexGuard, ShieldCortexGuardedMemoryBridge, MarkdownMemoryBackend, OpenClawMarkdownBackend, } from './integrations/index.js';
// ── Knowledge Graph ────────────────────────────────────────
export { extractFromMemory } from './graph/extract.js';
export { processExtractionResult, mergeEntities } from './graph/resolve.js';
export { backfillGraph } from './graph/backfill.js';
// ── Database ───────────────────────────────────────────────
export { initDatabase } from './database/init.js';
// ── Audit ──────────────────────────────────────────────────
export { discoverMemoryFiles, isShieldCortexOwnMemoryPath, scanMemories, scanMemoryFilesDetailed, scanMcpConfigs, scanEnvFiles, scanRulesFiles, } from './audit/index.js';
export { formatTerminalReport, formatMarkdownReport, formatJsonReport } from './audit/index.js';
// ── License ────────────────────────────────────────────────
export { getLicense, getLicenseTier, isFeatureEnabled, requireFeature, listFeatures, FeatureGatedError, verifyLicenseKey, TIER_RANK, } from './license/index.js';
// ── Version ────────────────────────────────────────────────
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const pkg = require('../package.json');
export const version = pkg.version;
// ── v4.0.0: New Modules ────────────────────────────────────────
export { memoryAgeDays, memoryAge, memoryFreshnessScore, memoryFreshnessWarning, appendStalenessWarning, } from './memory/staleness.js';
export { rerankResults, buildRerankPrompt, parseRerankResponse, DEFAULT_RERANK_CONFIG, } from './memory/rerank.js';
export { consolidateMemories, } from './memory/consolidate.js';
export { shouldFilterMemory, DEFAULT_SAVE_FILTER_CONFIG, } from './memory/save-filter.js';
export { captureConfirmation, searchConfirmations, loadConfirmations, } from './cortex/store.js';
export { VALID_MEMORY_PURPOSES, VALID_MEMORY_SCOPES, isValidMemoryPurpose, isValidMemoryScope, } from './memory/types.js';
