/** * soma-sense — the observer's organ. * * Installed by the MCP server or client that interacts with agents. * The sensorium passively reads the token stream from the agent's heart, * extracts phenotypic signals through 10 sensory channels, verifies * seeds and heartbeats, and produces a GREEN/AMBER/RED/UNCANNY verdict. * * @example * ```ts * import { withSomaSense } from "soma/sense"; * * const transport = withSomaSense(new StdioServerTransport(), { * profileStorePath: ".soma/profiles", * onVerdict: (sessionId, verdict) => { * console.log(`Agent ${verdict.remoteDid}: ${verdict.status}`); * if (verdict.status === "RED") denyAccess(sessionId); * }, * }); * * await server.connect(transport); * ``` */ import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js"; import { SomaTransport } from "../mcp/soma-transport.js"; import type { SomaConfig, SomaVerdict } from "../mcp/types.js"; /** * Wrap an MCP transport with Soma sensory verification. * * The returned transport is a drop-in replacement — the MCP server * connects to it exactly as it would the original. The sensorium * passively observes all traffic and produces verdicts. */ export declare function withSomaSense(inner: Transport, config: SomaConfig): SomaTransport; /** Get the current verification verdict from a sense-wrapped transport. */ export declare function getVerdict(transport: Transport): SomaVerdict | null; /** Check if a transport has Soma sensing active. */ export declare function isSomaEnabled(transport: Transport): boolean; export { SomaTransport } from "../mcp/soma-transport.js"; export type { SomaConfig, SomaVerdict, SomaMetadata } from "../mcp/types.js"; export type { SessionPhase } from "../mcp/types.js"; export { verifyClawNetReceipt, fetchAndVerifyReceipt, type SomaReceipt, type ReceiptVerificationOptions, type ReceiptVerificationResult, } from "./receipt-verifier.js"; export { SOMA_CHECK_PROTOCOL, SOMA_CHECK_HEADERS, buildSomaCheckResponseHeaders, buildSomaCheckRequestHeaders, extractIfSomaHash, extractSomaHash, isSomaCheckResponse, SomaCheckHashStore, type UnchangedResponse, type CheckMetadata, } from "../core/soma-check.js"; export { createSmartFetch, smartFetch, hashKeyForUrl, type SmartFetchConfig, type SmartResponse, type SomaCheckMeta, } from "./smart-fetch.js"; export { createSomaIdentity, type SomaIdentity, } from "../mcp/index.js"; export { createProfile, updateProfile, match, matchEnhanced, type PhenotypicProfile, type FeatureStats, type Verdict, type EnhancedVerdict, type VerdictStatus, } from "./matcher.js"; export { createLandscape, updateLandscape, matchLandscape, computeDriftVelocity, type BehavioralLandscape, type CategoryProfile, type TransitionSignature, type LandscapeMatchResult, } from "./landscape.js"; export { fromStreamingTrace, toStreamingTrace, computeIntervals, inferChunkBoundaries, computeChunkSizes, detectBursts, computeStreamStats, type TokenStreamCapture, type TokenLogprob, type BurstPattern, type StreamStats, } from "./stream-capture.js"; export { extractVocabularySignals, vocabularyToFeatureVector, VOCABULARY_FEATURE_NAMES, type VocabularySignals, extractTopologySignals, topologyToFeatureVector, TOPOLOGY_FEATURE_NAMES, type TopologySignals, extractCapabilityBoundarySignals, capabilityBoundaryToFeatureVector, CAPABILITY_BOUNDARY_FEATURE_NAMES, type CapabilityBoundarySignals, extractToolInteractionSignals, toolInteractionToFeatureVector, TOOL_INTERACTION_FEATURE_NAMES, type ToolInteractionSignals, extractAdversarialSignals, adversarialToFeatureVector, ADVERSARIAL_FEATURE_NAMES, type AdversarialSignals, extractEntropySignals, entropyToFeatureVector, ENTROPY_FEATURE_NAMES, type EntropySignals, extractConsistencySignals, consistencyToFeatureVector, CONSISTENCY_FEATURE_NAMES, type ConsistencySignals, type CategoryObservation, extractContextUtilizationSignals, contextUtilizationToFeatureVector, CONTEXT_UTILIZATION_FEATURE_NAMES, type ContextUtilizationSignals, extractCalibrationSignals, calibrationToFeatureVector, CALIBRATION_FEATURE_NAMES, type CalibrationSignals, type CalibrationObservation, extractMultiTurnSignals, multiturnToFeatureVector, MULTITURN_FEATURE_NAMES, type MultiTurnSignals, type MultiTurnConversation, type ConversationTurn, } from "./senses/index.js"; //# sourceMappingURL=index.d.ts.map