The
libs/psyche/area: ~133 Nx projects that make up the Psyche hyper-realistic AI virtual-assistant platform — a Python service foundation plus a large fleet of TypeScript libraries for avatar rendering, voice, perception, memory, agentic computer-use, conferencing, translation, the Tavus CVI integration, and infrastructure/observability.
What this area is#
Psyche is the "AI virtual assistant" domain: a realtime, multi-modal avatar that
can see, listen, speak, remember, drive a computer, and join video calls. Unlike
most Oshun domains this is not one library — it is ~133 separately-tracked
Nx projects rooted at libs/psyche/, every one with its own project.json.
They split cleanly into two technology tiers, which is the first thing to
understand about the area.
The two tiers#
A Python service foundation (lang:python tags) provides the cross-cutting
runtime plumbing every Psyche backend service shares: psyche-auth,
psyche-cache, psyche-database, psyche-logging, psyche-messaging,
psyche-state-sync, psyche-storage, psyche-tracing, and the catch-all
psyche-common. Each is a real Poetry-packaged Python library under
src/psyche_* and is explicitly "aligned with" its TypeScript counterpart in
the shared @oshun/* libraries (e.g. psyche-logging mirrors
@oshun/logging), giving cross-language parity. psyche-platform itself is the
root Poetry/pytest aggregator (libs/psyche/pyproject.toml, conftest.py,
packages = []) — it ships no code of its own but owns shared test config and
declares the Nx implicitDependencies that bind the foundation and many feature
libs into one affected graph.
A large TypeScript feature fleet (the remaining ~120 type:lib projects)
implements the actual assistant capabilities as standalone, mostly
dependency-light libraries: each is a src/index.ts barrel over a set of
domain-specific modules, with Zod schemas at the edges and deterministic
algorithms inside (FACS action units, saccade main-sequence kinematics, BM25 +
RRF hybrid retrieval, BLEU/METEOR/TER, Dawid-Skene aggregation, Holt-Winters
forecasting, MemGPT-style paging, and so on). These are genuine implementations,
not CRUD shells; the per-library @example blocks in each barrel show the
public API.
How the feature libraries relate#
The TS fleet is organised by capability sub-system: avatar rendering
(avatar-*, 3D Gaussian Splatting + FLAME), voice/speech (voice-*,
speech-*, viseme-generator, noise-handling), facial/non-verbal perception
and behavior (face-*, emotion-*, gaze-*, head-*, gesture-system,
posture-system, *-expressions, behavior-*),
conversation/engagement/proactivity (dialogue-manager, engagement-*,
proactive-*, *-triggers), hierarchical memory (memory-*), agentic
computer-use (computer-use-core, browser-automation, screen-analysis,
sandbox, action-safety, tool-*), knowledge/RAG (knowledge-*,
sophia-*-integration), conferencing/meetings (conferencing-core + platform
adapters + participant-*/meeting-*), translation/localization
(translation-*, cultural-adaptation, dialect-handling,
language-detection), the Tavus CVI integration (@psyche/tavus-*), and an
infrastructure/observability cluster (k8s-*, *-alerting, *-anomaly,
log-metrics, latency-analysis, etc.).
These libraries compose: perception libs feed signals into emotion-engine and
engagement-detector; viseme-generator/avatar-lipsync drive avatar-core;
memory-* and knowledge-* share embedding/retrieval patterns; and the Tavus
fleet and Psyche-native avatar/perception stacks are bridged by
@psyche/tavus-hybrid.
How it fits the wider system#
Consumers are Psyche's own services and the BFF. The Python foundation is
imported by Psyche backend services for auth/db/cache/messaging/observability;
the TS feature libs are composed by the realtime avatar/conferencing runtimes
and by agent loops. Several libs are explicitly integration seams to other
Oshun domains: psyche-avatar-isis-integration bridges @isis/3d-generation,
psyche-sophia-integration/psyche-sophia-search-integration and
psyche-memory-embeddings bridge Sophia's ingestion/search/embedding stack, and
the conferencing adapters wrap third-party SDKs (Zoom, Teams, Meet, Webex,
Recall.ai, Tavus). Many libraries are designed around injectable provider
boundaries — e.g. conferencing-core's createMockConferenceSession,
memory-archival's createMockEmbeddingProvider, the speech/TTS provider
abstractions — so the deterministic logic is unit-testable offline while real
SDK/credentialed providers are supplied in production. Walk the "used by" edges
on any node below to see exactly who depends on it.
Entity catalog (134)#
The 134 tracked Nx projects in psyche, each a code-linked entity node — package, type, source path, declared targets, and its internal dependency graph (depends-on / used-by, resolved from the package manifests, §6/§8), read from the project graph. Grouped by architectural layer; walk the dependency links to travel the system. 134 of these carry an authored deep-dive (what / why / how it fits); the rest are generated scaffolds awaiting one.
domain (16)#
Objectives and guardrails management for Tavus CVI integration
Objectives and guardrails management for Tavus (src/index.ts): workflow
configuration, compliance templates, and trigger handling for conversation
objectives.
createObjectiveTemplateId43createGuardrailTemplateId43createWorkflowInstanceId43createObjectivesError43ObjectiveStatusSchema43WorkflowStepStatusSchema43GuardrailActionSchema43ComplianceFrameworkSchema43GuardrailSeveritySchema43ExtendedWorkflowStepSchema43ObjectiveTemplateSchema43GuardrailTemplateSchema43DEFAULT_OBJECTIVE_MANAGER_CONFIG43DEFAULT_GUARDRAIL_MANAGER_CONFIG43 +585 morePrivacy-gated passive training data collectors for Psyche interaction signals
Phase 85–86 flywheel producer for the avatar/assistant domain
(libs/psyche/training-data/src), split into two pipelines rather than the
single-pipeline shape its siblings use: PsycheAvatarSignalPipeline captures
avatar-animation signals (typed FlameFrame 3DMM coefficients and VisemeFrame
lip-sync frames) and PsychePerceptionSignalPipeline captures perception
signals, both under an explicit PsycheTrainingConsent and a shared
PsycheTrainingSink seam.
Avatar caching system for fast avatar switching and preloading
Tiered avatar caching for fast switching/preloading: memory + persistent cache
entries, expression caching, preloading, and statistics/event types, for
low-latency avatar operations (src/index.ts).
CacheEntryState10CacheTierSchema10CacheTier10EvictionPolicySchema10EvictionPolicy10CacheEntryMetadata10AvatarModelCacheEntry10ExpressionCacheEntry10CacheLookupResult10PreloadPriority10PreloadStatusSchema10PreloadStatus10PreloadRequest10PreloadResult10 +47 more3D Gaussian Splatting avatar rendering for Psyche AI Virtual Assistant
3D Gaussian Splatting avatar rendering core (src/index.ts): FLAME parametric
model utilities (neutral state, expression mapping, coefficient blending, pose),
viseme/lip-sync application, and the shared avatar type surface for the rest of
the avatar-* fleet.
FLAME_EXPRESSION_PARAMS13FLAME_TEXTURE_PARAMS13FLAME_JAW_PARAMS13FLAME_NECK_PARAMS13FLAME_EYE_PARAMS13createNeutralExpression13createNeutralPose13createNeutralParameters13EXPRESSION_TEMPLATES13actionUnitsToFlameExpression13xpressionStateToFlame13getExpressionCoefficients13blendPoses13blendParameters13 +16 moreIntegration layer between @isis/3d-generation and @psyche/avatar-core for AI-generated avatars
Integration layer bridging @isis/3d-generation and psyche-avatar-core:
text-to-3D and photo-to-3D avatar generation requests/results, blend-shape
mapping/conversion between the two systems, and an avatar generator
(src/index.ts). A cross-domain seam.
TextToAvatarRequest9PhotoToAvatarRequestSchema9PhotoToAvatarRequest9AvatarGenerationStatus9AvatarGenerationProgress9GeneratedAvatar9ExpressionMapping9AvatarGenerationMetadata9ARKitBlendShape9BlendShapeToFACSMapping9AvatarGeneratorConfig9AvatarGeneratorEvents9AvatarGeneratorEventListener9AvatarGenerator36 +44 moreTemporal anti-aliasing system for Gaussian splatting avatar rendering
Temporal anti-aliasing for Gaussian-splatting avatars: jitter generation, motion
vectors, history accumulation, and ghost reduction for stable temporal output,
with vector/matrix/color helper types (src/index.ts).
Vector310Vector410Matrix410ClampMode10JitterConfig10JitterSample10MotionVectorMode10CameraState10MotionVectorConfig10HistoryConfig10GhostReductionMode10GhostReductionConfig10SortingConsistency10SplatTaaConfig10 +68 moreAvatar training pipeline for monocular video to 3DGS
Avatar training pipeline (monocular video → 3D Gaussian Splatting): video
preprocessing orchestration, FLAME parameter fitting, Gaussian-splat training,
blendshape optimization, and expression calibration (src/index.ts).
VideoMetadataSchema56VideoQualitySchema56BoundingBoxSchema56FaceDetectionSchema56FacialLandmarksSchema56AlignedFaceSchema56SegmentationResultSchema56FlameFittingConfigSchema56FittedFlameSchema56PreprocessingConfigSchema56ProcessedFrameSchema56PreprocessingResultSchema56TrainingConfigSchema56TrainingMetricsSchema56 +34 moreConversation-level sentiment tracking via signal fusion (src/index.ts):
aggregates facial/vocal/text/engagement/atmosphere signals into smoothed
temporal sentiment arcs with turning-point detection, intervention
recommendations, phase analysis, speaker congruence, and cross-conversation
comparison.
SourceWeightSchema45TurningPointThresholdsSchema45InterventionThresholdsSchema45PhaseBoundariesSchema45SmoothingSchema45SentimentTrackingConfigSchema45ConversationSentimentEngine55createSentimentEngine55createFacialEmotionEngine55createTextAnalysisEngine55createVocalAnalysisEngine55createMinimalSentimentEngine55ALL_SENTIMENT_INTENSITIES55ALL_CONVERSATION_PHASES55 +39 moreDialogue management for natural conversation flow (src/index.ts): turn-taking
(floor control, overlap, push-to-talk), interruption detection/handling,
conversation-state tracking, intent detection, and multi-participant support in
an event-driven design.
DEFAULT_TURN_TAKING_CONFIG71DEFAULT_INTERRUPTION_CONFIG71DEFAULT_DIALOGUE_MANAGER_CONFIG71TurnManager81createTurnManager81InterruptionDetector87createInterruptionDetector87ConversationState93createConversationState93detectIntent93DialogueManager100createDialogueManager100NEED_SIGNAL_TYPES132URGENCY_LEVELS132 +42 moreEmotion modeling for avatar animation (src/index.ts): primary/extended
emotions, the Russell circumplex (valence-arousal), compatibility-based
blending, emotion-specific transitions, mood persistence/contamination, social
display rules, and FACS/blendshape output.
PRIMARY_EMOTIONS42EXTENDED_EMOTIONS42EmotionArousal42CircumplexPosition42CIRCUMPLEX_POSITIONS42getEmotionValence42getEmotionArousal42EmotionState42createNeutralState42FACSActionUnit42EmotionCharacteristics42EMOTION_CHARACTERISTICS42createDefaultEmotionContext42COMPOUND_EMOTIONS42 +44 moreMulti-dimensional engagement and attention detection for Psyche AI
Multi-dimensional engagement detection (src/index.ts): gaze, behavioral,
conversational, temporal, and content engagement combined with configurable
weights into smoothed scores, trend detection, and signal detection (attention
loss, interest spikes, fatigue) with session history.
EngagementTrend62EngagementDimensionType62GazeEngagement62BehavioralEngagement62ConversationalEngagement62TemporalEngagement62ContentEngagement62EngagementSignal62EngagementState62EngagementStatistics62EngagementHistory62EngagementEvent62EngagementEventListener62DimensionWeights62 +13 moreFace detection and landmark tracking for Psyche AI Virtual Assistant
Face detection and landmark tracking (src/index.ts): realtime detection, the
478-point MediaPipe face mesh, IoU-based tracking with smoothing, head-pose
estimation, and a pluggable detection backend.
BoundingBox55Rectangle55FaceLandmarks55FacialKeypoints55FacialContours55HeadPoseFull55FaceTrack55TrackingConfig55DEFAULT_TRACKING_CONFIG55LandmarkModel55FaceDetectorConfig55DEFAULT_DETECTOR_CONFIG55DetectionEvent55DetectionEventListener55 +29 moreBiologically accurate gaze control system with natural eye movements, saccades, fixations, and attention-based gaze direction
Biologically-grounded gaze generation (src/index.ts, cites saccade
main-sequence and conversational-gaze research): saccades with main-sequence
kinematics, context-aware fixations, microsaccade/drift, smooth pursuit,
vergence, conversation-aware coordination, cultural profiles, and ARKit output.
MainSequenceCalculator55SaccadeGenerator55calculateSaccadeAmplitude55saccadeNeeded55radiansToDegreesAmplitude55degreesToRadiansAmplitude55stimateSaccadeDuration55stimatePeakVelocity55FixationController67getFixationContextDescription67getTypicalFixationDuration67isNormalFixationDuration67MicrosaccadeGenerator75MicrosaccadeState75 +46 moreUnlimited archival memory with vector-based retrieval and consolidation
Unlimited archival memory (src/index.ts): vector-based semantic retrieval,
importance/tagging, and consolidation, built around an injectable embedding
provider (createMockEmbeddingProvider for offline tests; real providers in
production).
DEFAULT_ARCHIVAL_CONFIG35CreateArchivalEntryOptions35ArchivalSearchResult35EmbeddingModelConfig35EmbeddingRequest35EmbeddingResponse35BatchEmbeddingRequest35BatchEmbeddingResponse35IEmbeddingProvider35EMBEDDING_MODELS35ConsolidationResult35ConsolidationStrategy35ConsolidationOptions35IndexStats35 +35 moreLLM-callable tools for self-managing memory (MemGPT-style)
LLM-callable MemGPT-style memory tools (src/index.ts): tool
schema/definitions, an execution engine, and backend integration that let an LLM
manage its own memory blocks.
ToolParameter12ToolReturn12ToolExample12ToolDefinition12ToolCategory12ToolCallResult12ToolHandler12ToolContext12MemorySearchResultItem12MemoryReadParams12MemoryWriteParams12MemoryEditParams12MemoryDeleteParams12MemoryTierChangeParams12 +23 moreVoice synthesis library with ElevenLabs and Cartesia TTS providers
TTS library with ElevenLabs and Cartesia providers (src/index.ts): streaming,
voice cloning, SSML/prosody control, and a provider abstraction with voice
settings, audio-output, and error types.
VoiceSettingsSchema68AudioOutputPresets68ElevenLabsModels68CartesiaModels68createTTSError68VoiceSynthesizer77createVoiceSynthesizer77createElevenLabsSynthesizer77createCartesiaSynthesizer77VoiceSynthesizerConfig77ProviderStrategy77ElevenLabsProvider87createElevenLabsProvider87CartesiaProvider90 +13 moreinfra (2)#
Custom LLM integration for Tavus CVI - OpenAI-compatible API proxy for Claude
Custom-LLM integration for Tavus (src/index.ts): an OpenAI-compatible API
proxy for Claude — OpenAI↔Claude message translation, streaming SSE translation,
a /chat/completions proxy server, system-prompt sync, and tool-calling — via
createProxyServer/buildTavusLLMConfig.
createToolCallId107createThreadId107DEFAULT_PROXY_SERVER_CONFIG107OpenAIToolDefinitionSchema107OpenAIChatCompletionsRequestSchema107ranslateMessages130ranslateTools130ranslateToolChoice130ranslateClaudeContentToOpenAI130ranslateStopReason130ranslateOpenAIToClaude130normalizeMessageHistory130createStreamTranslator149createSSEHeaders149 +76 moreTavus persona management with templating, versioning, cloning, and configuration validation
Tavus persona management (src/index.ts): persona templating with variable
substitution (e.g. CUSTOMER_SERVICE_TEMPLATE), versioning, cloning, and
configuration validation via createPersonaManager.
createPersonaId62PersonaId62Persona62PersonaLLMConfig62PersonaTTSConfig62PersonaMemoryConfig62CreatePersonaRequest62UpdatePersonaRequest62PersonaTemplateId77ValidationResultId77CloneOperationId77createPersonaVersionId77createPersonaTemplateId77createValidationResultId77 +145 moreinfrastructure (8)#
Video conferencing bridge connecting Tavus avatar to virtual camera/audio devices
Video-conferencing bridge for Tavus (libs/psyche/tavus-bridge, ~48K LOC across
the package; src/index.ts is the 641-line barrel): connects Tavus avatar
streams to virtual camera/audio devices (WebRTC, virtual-camera/-audio types)
for use with Zoom, Meet, Teams, etc.
DeviceId12BridgeId12ConferenceId12createStreamId12createDeviceId12createBridgeId12createConferenceId12VideoCodec12VideoResolution12VideoConfig12VideoFrame12VideoResolutions12AudioCodec12AudioConfig12 +337 moreTypeScript API client for Tavus CVI platform with caching, batching, and usage monitoring
TypeScript API client for the Tavus CVI (Conversational Video Interface)
platform (src/index.ts): replica/persona/conversation operations with response
caching, request batching, and usage monitoring via createTavusClient. The
base the other Tavus libs build on.
PersonaId57ConversationId57VideoId57DocumentId57GuardrailId57ObjectiveId57createReplicaId57createPersonaId57createConversationId57createVideoId57createDocumentId57createGuardrailId57createObjectiveId57ReplicaModel57 +181 moreTavus CVI conversation management with presets, recording, transcripts, and analytics
Tavus conversation management (src/index.ts): configuration presets (e.g.
CUSTOMER_SERVICE_PRESET), recording management, transcript handling,
analytics, and pluggable storage (createInMemoryStorage) via
createConversationManager.
createReplicaId75createPersonaId75RecordingId81TranscriptId81AnalyticsSessionId81TranscriptSegmentId81createConversationPresetId81createRecordingId81createTranscriptId81createAnalyticsSessionId81createTranscriptSegmentId81VideoQualityPreset81VideoQualitySettings81AudioQualitySettings81 +101 moreHybrid mode orchestration between Psyche and Tavus avatar systems
Hybrid-mode orchestration between Psyche-native and Tavus avatar systems
(src/index.ts): a unified avatar interface, mode switching, health monitoring,
failover, and graceful degradation — the bridge that lets the two stacks run
interchangeably.
createHealthCheckId56createFailoverEventId56HybridModeSchema56HybridPrioritySchema56AvatarComponentSchema56SessionStateSchema56HealthStatusSchema56FailoverTriggerSchema56DegradationLevelSchema56AvatarCapabilitiesSchema56AvatarStateSchema56HybridSessionSchema56HealthCheckResultSchema56FailoverEventSchema56 +296 morePhoenix-4 rendering pipeline integration for Tavus CVI with WebRTC video streaming, frame synchronization, and quality management
Phoenix-4 rendering-pipeline integration for Tavus (src/index.ts): WebRTC
video streaming, frame synchronization, and quality management via
createRenderPipeline/ createQualityManager with QUALITY_PRESETS.
FrameId63SyncSessionId63RenderPipelineId63createPhoenixStreamId63createFrameId63createSyncSessionId63createRenderPipelineId63ReplicaId63RenderingMode63VideoCodec63AudioCodec63VideoResolution63QualityLevel63VideoQualityConfig63 +221 morePipecat-inspired frame-based pipeline architecture for Tavus CVI integration
Pipecat-inspired frame-based pipeline architecture for Tavus (src/index.ts):
frame types, processors, pipelines, and services for realtime conversational AI.
ProcessorId12PipelineId12ServiceId12createFrameId12createProcessorId12createPipelineId12createServiceId12FramePriority12FrameDirection12BaseFrame12AudioFrame12AudioFormat12VideoFrame12VideoFormat12 +574 moreTavus replica lifecycle management with versioning, quality validation, and workflow automation
Tavus replica lifecycle management (src/index.ts): versioning, quality
validation, workflow automation, and metadata storage via
createReplicaManager/ createReplicaId.
createReplicaId65ReplicaId65Replica65ReplicaSnapshotId71WorkflowId71ValidationId71createReplicaVersionId71createReplicaSnapshotId71createWorkflowId71createValidationId71ValidationStatus71WorkflowStatus71QualityDimension71RetrainTrigger71 +138 moreTool calling integration for Tavus CVI with event handling, execution, and security
Tool-calling integration for Tavus (src/index.ts): tool-event handling,
execution, security/audit, and built-in tools, with branded tool/execution
types.
createToolCallId71createToolExecutionId71createToolCategoryId71ToolExecutionStatusSchema71ToolCategorySchema71ToolPermissionLevelSchema71ToolRiskLevelSchema71AuditActionSchema71ToolParameterSchema71ToolSchemaSchema71ToolSchema_71ToolCallSchema71ToolExecutionResultSchema71ComputerUseActionSchema71 +89 moreintegration (2)#
Raven-1 visual perception integration for Tavus CVI with hybrid mode support
Raven-1 visual-perception integration for Tavus (src/index.ts): emotion
detection, video forwarding, a perception handler, LLM context, a
facial-expression pipeline, caching/filtering/analytics, screen-content
analysis, gesture recognition, and a learning optimizer, with hybrid
Tavus+Psyche signals.
HybridPerceptionSelector59PerceptionController223createPerceptionController876createHybridPerceptionSelector885Integration library connecting Sophia search capabilities with Psyche knowledge management
Integration bridging Sophia search into Psyche (src/index.ts): a
PsycheSearchAdapter, a fluent PsycheQueryBuilder, a citation-producing
PsycheRAGIntegration, and a result mapper translating Sophia results to Psyche
form.
DEFAULT_SEARCH_CONFIG68DEFAULT_HYBRID_WEIGHTS68DEFAULT_CITATION_OPTIONS68HybridWeightsSchema78DateRangeSchema78PsycheSearchFiltersSchema78PsycheSearchOptionsSchema78PsycheSearchRequestSchema78CitationOptionsSchema78PsycheRAGRequestSchema78InMemorySearchStorage92PsycheSearchAdapter98createPsycheSearchAdapter98PsycheQueryBuilder104 +9 morelib (1)#
The largest Python foundation lib (src/common, ~16.7K LOC): shared utilities
across all Psyche services — GPU optimization (quantization, batch inference,
TensorRT, memory management), structured logging, success-metrics tracking
(human-likeness, conversation quality, cost), performance/streaming pipelines,
and horizontal-scaling helpers (per README.md).
test (1)#
Psyche AI Platform - E2E Testing Suite
End-to-end test suite (*.e2e.test.ts, ~4K LOC across four specs): vitest tests
exercising avatar rendering, voice pipeline (STT→LLM→TTS with <500ms latency),
conferencing, and performance, using mock providers to simulate without live API
calls. A test project, not a runtime library.
unclassified (104)#
AIOps anomaly detection (src/index.ts): statistical detectors (Z-score,
modified Z-score, IQR, Grubbs, MAD, EWMA), time-series
trend/seasonality/forecasting, CUSUM changepoint detection, metric correlation
(Pearson/Spearman/cross-corr), root-cause inference, and alert management.
DataPointSchema55AlertConditionSchema55AIOpsConfigSchema55AnomalyDetector61createAnomalyDetector61ALL_ANOMALY_SEVERITIES61DEFAULT_AIOPS_CONFIG61SEVERITY_THRESHOLDS61computeMean61computeMedian61computeStdDev61computeVariance61computeMAD61computePercentile61 +32 moreComprehensive attention tracking and analysis for Psyche AI Virtual Assistant
Attention tracking/analysis (src/index.ts): attention-state tracking, shift
and lapse detection with recovery, collective multi-participant attention,
attention heatmaps, engagement scoring, topic-attention correlation, pattern
detection, and fatigue recommendations.
AttentionLevel96AttentionTrend96AttentionSource96AttentionShift96AttentionTrigger96AttentionRecovery96AttentionSpan96AttentionDistribution96ParticipantAttentionState96HeatmapHotspot96HeatmapColdspot96HeatmapComparison96AttentionEngagementScore96AttentionRecommendation96 +26 moreBehavioral anomaly detection for meetings including inactivity, erratic patterns, and conflict escalation
Behavioral anomaly detection for meeting participants (src/index.ts):
inactivity detection, erratic-behavior patterns, conflict-escalation,
cross-participant analysis, and meeting-atmosphere scoring with a default
config.
DEFAULT_BEHAVIOR_ANOMALY_CONFIG50InactivityDetector53createInactivityDetector53ErraticBehaviorDetector56createErraticBehaviorDetector56ConflictDetector62createConflictDetector62AtmosphereAnalyzer65createAtmosphereAnalyzer65BehaviorAnomalyDetector68createBehaviorAnomalyDetector68Realtime context monitoring (src/index.ts): signal collection/aggregation,
pattern and anomaly detection, state tracking, threshold-based alerting, and
analytics, with Zod schemas for signals and configuration.
ContextSignalSchema44ThresholdRuleSchema44ContextMonitoringConfigSchema44ALL_SIGNAL_SOURCES51ALL_SIGNAL_PRIORITIES51ALL_SIGNAL_DATA_TYPES51ALL_CONTEXT_DIMENSIONS51ALL_PATTERN_TYPES51ALL_WINDOW_TYPES51ALL_CM_EVENT_TYPES51ALL_CM_EVENT_SEVERITIES51PRIORITY_WEIGHTS51DEFAULT_CONTEXT_MONITORING_CONFIG51matchesFilter65 +28 moreDatabase sharding (src/index.ts): strategies (hash, range, consistent-hash,
directory, geographic, composite), a consistent-hash ring with virtual nodes
(FNV-1a/DJB2/Murmur-like), shard-key extraction, query routing (single/
scatter-gather/broadcast/targeted), migration, rebalancing, split/merge, and
hotspot detection.
ShardKeyRangeSchema63ShardCapacitySchema63ShardingConfigSchema63ShardRoutingEngine69createShardRoutingEngine69createConsistentHashEngine69createRangeShardingEngine69createDirectoryShardingEngine69ALL_SHARD_STATUSES69ALL_QUERY_ROUTING_MODES69ALL_KEY_DISTRIBUTION_TYPES69DEFAULT_SHARDING_CONFIG69djb2Hash69murmurHash69 +43 moreKubernetes disaster recovery (src/index.ts): backup scheduling/execution/
verification/retention, recovery with validation+rollback, cross-site
replication with lag monitoring, RPO/RTO/SLA tracking, failover-plan
orchestration, DR test planning, and posture scoring.
BackupScheduleSchema61RPOConfigSchema61RTOConfigSchema61DRConfigSchema61BackupManager67createBackupManager67ALL_BACKUP_STATUSES67ALL_BACKUP_SCOPES67ALL_STORAGE_BACKENDS67DEFAULT_DR_CONFIG67createBackupSchedule67createBackupRecord67createRecoveryPoint67formatBackupSize67 +55 moreContinuous human evaluation pipeline for AI/avatar quality assessment
Continuous human-evaluation pipeline (src/index.ts): evaluation sessions with
counterbalancing, multiple rating types (Likert/binary/ranking/continuous),
attention checks, inter-rater reliability (ICC, Fleiss' Kappa, Krippendorff's
Alpha), significance testing, trend analysis, and quality alerts.
EvaluationStorage25InMemoryStorage25SessionManagerOptions25EvaluationSessionManager25calculateDistribution33calculateInterRaterReliability33independentTTest33airedTTest33analyzeTrend33AnalyticsConfig42EvaluationAnalytics42createHumanEvaluationPipeline56createSessionManager74createAnalytics81Kubernetes multi-cluster federation (src/index.ts): cluster registration/
lifecycle/health, federated resource distribution with pluggable placement,
cross-cluster service discovery, multi-strategy traffic routing (round-robin,
weighted, latency, geo, failover), and automatic failover/recovery.
ClusterLabelsSchema60ServicePortSchema60PlacementRuleSchema60FederationConfigSchema60ClusterManager71createClusterManager71ALL_CLUSTER_STATUSES71ALL_CLUSTER_ROLES71ALL_CLUSTER_REGIONS71ALL_HEALTH_CHECK_METHODS71DEFAULT_CLUSTER_CAPACITY71DEFAULT_CLUSTER_NETWORK71DEFAULT_FEDERATION_CONFIG71createFederatedCluster71 +47 moreKubernetes security (src/index.ts): IRSA (IAM Roles for Service Accounts) for
AWS EKS, Pod Security Standards validation, Network Policy management, and RBAC
configuration/analysis.
LabelSelectorSchema103ContainerSecurityContextSchema103PodSecurityContextSchema103IRSAManager113createIRSAManager113IRSA_STS_REGIONAL_ANNOTATION113IRSA_AUDIENCE_ANNOTATION113DEFAULT_STS_AUDIENCE113COMMON_IRSA_POLICIES113hasIRSAConfigured113addIRSAAnnotations113arseRoleArn113validateOIDCProviderUrl113PodSecurityValidator134 +28 moreComprehensive latency analysis library with component tracking, regression detection, and performance alerting
Latency analysis (src/index.ts): component-level latency tracking/breakdown,
histograms with streaming percentile estimation, statistical regression
detection, latency-threshold/anomaly alert rules, and trace critical-path
analysis.
ComponentSchema83LatencyMeasurementSchema83AlertRuleSchema83DEFAULT_HISTOGRAM_BUCKETS86DEFAULT_BASELINE_CONFIG86DEFAULT_REGRESSION_CONFIG86CATEGORY_COLORS86STANDARD_SLA_TARGETS86HistogramCollector98HistogramManager98TDigest98createHistogramCollector98createHistogramManager98createTDigest98 +27 moreLog-based metrics (src/index.ts): multi-format parsing (JSON, logfmt, CLF,
Combined, Syslog, custom regex), level classification, timestamp normalization,
pattern matching, rule-based metric/label extraction, time-windowed aggregation,
and analytics.
LogFilterSchema51ExtractionConfigSchema51LogMetricsConfigSchema51LogParser57createLogParser57createJsonLogParser57createSyslogParser57createAccessLogParser57ALL_LOG_FORMATS57ALL_PATTERN_MATCH_MODES57LOG_LEVEL_VALUES57DEFAULT_LOG_METRICS_CONFIG57DEFAULT_PARSER_CONFIG57compareLogLevels57 +32 moreML log analysis (src/index.ts): log clustering (Drain, cosine, Jaccard,
Levenshtein, token-frequency), template extraction, TF-IDF vectorization,
frequency anomaly detection, classification, sequential-pattern mining, and
root-cause inference.
ClusteringConfigSchema69AnomalyDetectionConfigSchema69MLLogAnalysisConfigSchema69LogClusteringEngine79createLogClusteringEngine79createDrainClusteringEngine79createHighAccuracyClusteringEngine79createStreamingClusteringEngine79ALL_TOKEN_TYPES79ALL_CLUSTER_STATUSES79DEFAULT_VARIABLE_PATTERNS79DEFAULT_STOP_WORDS79DEFAULT_CLUSTERING_CONFIG79okenizeMessage79 +67 moreNet Promoter Score collection, analysis, and reporting for AI evaluation
Net Promoter Score collection/analysis (src/index.ts): survey management,
response recording, NPS calculation, and an analytics engine producing reports
via createNPSSurveyManager/createNPSAnalyticsEngine/calculateNPS.
ResponseId33RespondentId33SegmentId33QuestionId33createSurveyId33createResponseId33createRespondentId33createSegmentId33createQuestionId33NPSCategory33categorizeScore33isValidNPSScore33DeliveryChannel33SurveyTrigger33 +58 moreComprehensive meeting participation tracking with speaker analysis, balance metrics, and engagement correlation
Meeting participation tracking (src/index.ts): speaker analysis, balance
metrics, a MeetingDynamicsAnalyzer, a ParticipationTrendAnalyzer, and the
main ParticipationTracker, correlating participation with engagement.
DominantSpeakerDetector14createDominantSpeakerDetector14UnderParticipationDetector19createUnderParticipationDetector19ConversationBalanceAnalyzer24createConversationBalanceAnalyzer24QuestionParticipationCorrelator29createQuestionParticipationCorrelator29MeetingDynamicsAnalyzer34createMeetingDynamicsAnalyzer34EncouragementTriggerDetector36createEncouragementTriggerDetector36ParticipationTrendAnalyzer41createParticipationTrendAnalyzer41 +2 morePredictive alerting (src/index.ts): forecasting (linear regression,
exponential smoothing, Holt's, Holt-Winters, moving average, ARIMA-like), trend
detection, capacity/exhaustion forecasting, lead-time alert rules, notification
routing with rate limiting, suppression/maintenance windows, and accuracy
tracking.
MetricObservationSchema61SuppressionRuleSchema61ProactiveAlertRuleSchema61PredictiveAlertingConfigSchema61TrendPredictionEngine72createTrendPredictionEngine72createHighFrequencyEngine72createCapacityPlanningEngine72createRealtimeAlertingEngine72ALL_CONFIDENCE_LEVELS72ALL_PREDICTIVE_TREND_DIRECTIONS72ALL_ACCURACY_CATEGORIES72DEFAULT_PREDICTIVE_CONFIG72DEFAULT_FORECAST_PARAMETERS72 +44 moreCustomer satisfaction survey integration (CSAT, CES) for AI evaluation
Customer satisfaction surveys (CSAT, CES) for AI evaluation (src/index.ts):
survey creation/publishing, response recording, and CSAT/CES calculation via
createSatisfactionSurveyManager/calculateCSAT/calculateCES.
ResponseId43RespondentId43TouchpointId43createSurveyId43createResponseId43createRespondentId43createTouchpointId43CSATScore543CSATScore743CSATScore43CSATCategory43categorizeCSATScore43isSatisfied43isValidCSATScore43 +52 moreSLO-based alerting (src/index.ts, cites Google SRE): SLI
definition/measurement, SLO management, error-budget tracking, multi-window
burn-rate alerting, and Prometheus-compatible alert-rule generation.
SLISchema62SLOSchema62AlertRuleSchema62STANDARD_MULTI_WINDOW_CONFIGS65DEFAULT_BURN_RATE_THRESHOLDS65COMMON_SLO_TARGETS65WINDOW_DURATIONS65SLIManager76createSLIManager76SLI_TEMPLATES76InMemoryMetricProvider76calculateNines76calculateDowntime76formatDowntime76 +17 moreExpression and emotion control bridge for Tavus CVI integration
Expression/emotion control bridge for Tavus (src/index.ts): a
TavusExpressionController (extends EventEmitter) providing realtime
expression updates, lip sync, and quality monitoring.
TavusExpressionController43createTavusExpressionController368EmotionMapper428ExpressionChannel428LipSyncBridge428VisemeMonitor428createEmotionMapper431createExpressionChannel431createLipSyncBridge431createVisemeMonitor431mapEmotion434unmapEmotion434createNeutralExpression434createExpression434 +152 moreKnowledge base and RAG integration for Tavus CVI with document management
Knowledge-base/RAG integration for Tavus (src/index.ts): document management,
retrieval configuration, and cross-system synchronization of knowledge between
Tavus and Psyche.
createKnowledgeDocumentId44createKnowledgeCollectionId44createRAGConfigId44createDocumentChunkId44createKnowledgeError44DocumentTypeSchema44DocumentStatusSchema44RetrievalStrategySchema44ChunkStrategySchema44KnowledgeSyncStatusSchema44DocumentMetadataSchema44KnowledgeDocumentSchema44RAGConfigSchema44DEFAULT_PROCESSING_OPTIONS44 +458 moreMemory management and sync for Tavus CVI with cross-conversation persistence
Memory management/synchronization for Tavus (src/index.ts): cross-conversation
persistence, tag management, and Psyche memory integration.
createMemoryId46createMemoryStoreId46createMemoryTagId46createMemorySnapshotId46createMemoryError46MemoryTypeSchema46MemoryImportanceSchema46MemoryStoreTypeSchema46MemorySyncStatusSchema46ConflictResolutionStrategySchema46MemorySchema46CreateMemoryRequestSchema46MemoryStoreSchema46MemoryTagSchema46 +386 moreFull Tavus CVI pipeline integration with WebRTC, Daily.co room management, and conversation lifecycle
Full Tavus CVI pipeline (src/index.ts): WebRTC + Daily.co room management,
data channel communication, and conversation-lifecycle management via
createCVIPipeline, integrating turn-taking, perception, and tool calling.
DailyRoomId61InteractionId61InferenceId61DataChannelId61createPipelineSessionId61createDailyRoomId61createInteractionId61createInferenceId61createDataChannelId61DailyConnectionState61DataChannelState61PipelineConnectionStateSchema61DailyConnectionStateSchema61DataChannelStateSchema61 +75 moreTTS integration for Tavus CVI with Cartesia and ElevenLabs support
TTS integration for Tavus (src/index.ts): Cartesia and ElevenLabs voice
selection, configuration, presets, and persona-TTS management via
createTavusTTSManager/getTTSConfigForUseCase/buildPersonaTTSUpdate.
createVoiceProfileId65createTavusTTSError65VoiceSelector82createVoiceSelector82TavusTTSManager88createTavusTTSManager88createAndInitializeTTSManager88ElevenLabsVoices100ElevenLabsDefaultSettings100PRESET_PROFESSIONAL_MALE_CARTESIA100PRESET_WARM_FEMALE_CARTESIA100PRESET_WARM_MALE_CARTESIA100PRESET_AUTHORITATIVE_MALE_CARTESIA100PRESET_YOUTHFUL_CASUAL_CARTESIA100 +73 moreSparrow-1 turn-taking integration for Tavus CVI with hybrid mode support
Sparrow-1 turn-taking integration for Tavus (src/index.ts): floor manager,
turn detector, speaker adaptation, prosodic signals, syllable detection,
hesitation handling, cultural timing, and multi-speaker support in hybrid
Tavus+Psyche mode.
AudioStreamForwarder61ResponseTimingController353HybridModeSelector448TurnTakingController611createTurnTakingController1353createResponseTimingController1362createHybridModeSelector1371createAudioStreamForwarder1380Time-series optimization (src/index.ts): downsampling, compression, retention
policies, time-bucketing, query optimization, storage tiering, materialized-view
management, and LRU caching, with Zod schemas.
TSDataPointSchema42RetentionPolicySchema42TSOptimizationConfigSchema42ALL_DOWNSAMPLING_ALGORITHMS45ALL_COMPRESSION_ALGORITHMS45ALL_BUCKET_GRANULARITIES45ALL_BUCKET_AGGREGATIONS45ALL_RETENTION_ACTIONS45ALL_STORAGE_TIERS45ALL_TS_EVENT_TYPES45ALL_TS_EVENT_SEVERITIES45GRANULARITY_MS45DEFAULT_STORAGE_TIERS45DEFAULT_TS_OPTIMIZATION_CONFIG45 +53 moreUncanny valley detection and scoring for avatar/AI character quality assessment
Uncanny-valley detection/scoring for avatar quality (src/index.ts):
per-category collectors (blink, gaze, expression, head/body movement, response
timing, lip-sync, visual quality) scored against DEFAULT_BASELINES human
baselines with weighted aggregation into an UncannyValleyScore.
CollectedMetrics69UncannyValleyAnalyzer85createUncannyValleyAnalyzer486compareScores528getScoreSummary562blendBaselines598Accessibility library for Psyche agents - WCAG 2.2 compliance, captioning, screen reader support, motor accessibility
Accessibility library for Psyche agents (src/index.ts, ~30K LOC): WCAG 2.2
compliance — contrast checking (4.5:1), pointer alternatives for gestures,
minimum target sizes (24×24), redundant-entry prevention — plus captioning,
screen-reader, motor, and hearing accessibility.
ContrastChecker22createContrastChecker22PointerAlternatives25createPointerAlternatives25PointerAlternativesConfig25GestureDetectionResult25PointerEventData25TargetSizeValidator34createTargetSizeValidator34TargetSizeConfig34ElementBounds34OverlapResult34RedundantEntryPreventer43createRedundantEntryPreventer43 +327 moreAction validation, dangerous action blocking, and confirmation workflows
Action validation and dangerous-action blocking (src/index.ts): a
SafetyChecker, confirmation workflows, rate limiting, and a policy engine that
classify and gate agent actions (e.g. blocking rm -rf /).
compareSafetyLevels88maxSafetyLevel88DEFAULT_CONFIRMATION_CONFIG88STRICT_SAFETY_CONFIG88STANDARD_SAFETY_CONFIG88PERMISSIVE_SAFETY_CONFIG88ActionSchema88SafetyCheckResultSchema88ConfirmationRequestSchema88ConfirmationResponseSchema88SafetyChecker113createSafetyChecker113createStrictSafetyChecker113createPermissiveSafetyChecker113 +52 moreAnticipatory response modeling (src/index.ts): an anticipation modeler over
incoming signals (with AnticipationSignalSchema) to pre-compute likely
responses, plus utility/constant helpers.
AnticipationSignalSchema36AnticipatoryResponsesConfigSchema36AnticipationModelerEngine39SignalRingBuffer39ALL_ANTICIPATION_SOURCES39ALL_MODELER_CONFIDENCE_LEVELS39ALL_TREND_DIRECTIONS39ALL_PROJECTION_METHODS39ALL_TEMPORAL_PATTERN_TYPES39DEFAULT_ANTICIPATORY_RESPONSES_CONFIG39resetIdCounter39classifyConfidence39computeMean39computeStddev39 +24 morePython authentication library (src/psyche_auth) aligned with
@oshun/auth-primitives: JWT signing/verification, in-memory + Redis session
stores, API-key management, Argon2/bcrypt/PBKDF2 password utilities, and FastAPI
auth middleware (per its README.md).
Expression blendshapes, FACS mapping, and micro-expression generation for Psyche avatars
Expression blendshapes and FACS mapping for avatars: ARKit blendshapes, FACS
action units, emotion presets, micro-expressions, transitions, asymmetry, and a
controller-state surface with Zod schemas (src/index.ts).
ARKIT_BLENDSHAPE_INDEX9ARKitBlendshapeName9BlendshapeWeights9createBlendshapeWeights9AU_INTENSITY_RANGES9FACSActionUnit9AUIntensity9AUCombinationRule9AUCombinationType9AUTimingProfile9getIntensityLevel9PrimaryEmotion9EmotionCharacteristics9EmotionBlend9 +96 moreLip sync and viseme animation system for avatar faces
Lip-sync/viseme animation: a 19-class viseme system with 31 blendshape
parameters, ARPAbet/IPA phoneme-to-viseme mapping, coarticulation blending, and
a real-time StreamingAligner with lookahead buffering targeting <33ms latency
(src/index.ts).
PhonemeSet50BlendMode50EasingFunction50VocalStyle50NUM_VISEMES50NUM_BLENDSHAPES50PhonemeSequence50VisemeShape50Viseme50VisemeSequence50BlendConfig50BlendedFrame50LipSyncFrame50StreamingConfig50 +55 moreAdaptive quality system for avatar rendering with GPU detection and dynamic scaling
Adaptive quality system for avatar rendering: GPU detection, quality levels,
dynamic resolution scaling, and Gaussian-count adaptation with
performance/Gaussian types and Zod schemas (src/index.ts).
GPUTier9GraphicsBackend9GPUCapabilities9GPUInfo9ResolutionMode9ScalingStrategy9QualitySettings9QualityPreset9PerformanceHistory9PerformanceTarget9GaussianBudget9GaussianAdaptationMode9AdaptiveQualityConfig9AdaptiveQualityState9 +42 moreMulti-channel behavior coordination and orchestration system
Priority-based behavior coordination for avatar animation (src/index.ts):
behavior definitions with categories/priorities/durations, a priority queue with
conflict resolution, fade-in/out timing, multi-channel output blending, and
state machines via a BehaviorOrchestrator.
BehaviorPriority58BEHAVIOR_CATEGORIES58PRIORITY_VALUES58getPriorityValue58comparePriorities58isTerminalState58isRunningState58BehaviorUpdateCallback58BehaviorLifecycleCallback58DEFAULT_BEHAVIOR_DEFINITION58createBehaviorInstance58generateInstanceId58ConversationTurn58createDefaultContext58 +40 moreUser-behavior prediction (src/index.ts): Markov-chain transition modeling,
sequence pattern mining, temporal pattern detection, ensemble prediction,
accuracy tracking, and analytics, with Zod event/config schemas.
BehaviorEventSchema41BehaviorPredictionConfigSchema41ALL_BEHAVIOR_CATEGORIES44ALL_TEMPORAL_GRANULARITIES44ALL_PREDICTION_TYPES44ALL_PREDICTION_CONFIDENCES44ALL_PREDICTION_OUTCOMES44ALL_SEQUENCE_PATTERN_TYPES44ALL_MODEL_TYPES44ALL_BP_EVENT_TYPES44ALL_BP_EVENT_SEVERITIES44DEFAULT_BEHAVIOR_PREDICTION_CONFIG44generateId58classifyConfidence58 +23 moreFrozen legacy Playwright adapter for existing Psyche Teams and Webex consumers; not an Eve browser owner
Playwright-backed browser automation (src/index.ts): navigation/interaction,
form filling, the Page Object pattern, network interception/mocking,
screenshots, cookie/storage management, and retry/wait utilities via
createBrowserAutomation.
PageState80BrowserType80DeviceType80ElementSelector80ElementInfo80ElementHandle80BoundingBox80KeyModifier80ClickOptions80TypeOptions80FillOptions80SelectOptions80ScrollOptions80HoverOptions80 +91 morePython caching library (src/psyche_cache) aligned with @oshun/cache: LRU+TTL
in-memory cache, Redis distributed cache, namespaced key building, pub/sub state
sync, Redlock-compatible distributed locking, and standard TTL presets.
Realtime translated-caption stream management (src/index.ts): caption-segment
ingestion, multi-language output channels, speaker attribution, word-level
timing, translation integration, buffering, latency tracking, rendering,
synchronization, and transcript aggregation.
BufferConfigSchema51LatencyConfigSchema51DisplayConfigSchema51TranslationConfigSchema51CaptionStreamingConfigSchema51ALL_CAPTION_LANGUAGE_CODES60ALL_STREAM_STATES60ALL_SEGMENT_STATUSES60ALL_DELIVERY_MODES60ALL_POSITIONS60ALL_ALIGNMENTS60ALL_RENDER_TARGETS60ALL_TEXT_DIRECTIONS60ALL_CHANNEL_PRIORITIES60 +47 moreNative desktop-only computer-use primitives and agent loop; browser driving remains Playwright-owned
Provider-neutral native desktop control (src/index.ts): separately injected
planning/vision bindings, governed screenshots, native action/result types, and
an observe-reason-act agent. Every run requires exact app/window/action/network/
task-file authority, process-confinement attestation, risk-based confirmation,
fresh-frame and focus interlocks, step/action/rate/time/token/interrupt budgets,
and non-model end-state verification. The library is not a browser driver and is
not yet admitted to Eve/Drawer; ADR-0077 owns browser separation and ADR-0080
owns the per-run native control boundary.
DEFAULT_COMPUTER_USE_CONFIG86MouseButtonSchema89ScrollDirectionSchema89KeyModifierSchema89ComputerActionTypeSchema89BoundingBoxSchema89ClickActionSchema89TypeActionSchema89KeyActionSchema89ScrollActionSchema89ComputerUseAgentConfigSchema89ActionExecutor103ComputerUseNativeError103createActionExecutor103 +78 moreCore video conferencing abstraction with stream injection and audio mixing for AI avatar integration
Platform-agnostic video-conferencing abstraction (src/index.ts): the
IConferenceSession interface, video injection modes (replace/overlay/PIP/
background), audio injection/mixing (replace/blend/ducking/sidechain) with EQ,
compression, and noise gating, plus createMockConferenceSession for testing.
The base every conferencing adapter implements.
DEFAULT_SESSION_CONFIG123DEFAULT_MIXER_CONFIG123ConferenceErrorCode123createConferenceError123ConnectionStateSchema142ParticipantRoleSchema142MediaTrackTypeSchema142MediaTrackStateSchema142AudioMixingModeSchema142VideoInjectionModeSchema142VideoResolutionSchema142AudioSampleRateSchema142AudioEncodingSchema142VideoEncodingSchema142 +428 moreCrowdsourced evaluation at scale (src/index.ts): worker management with
qualification tiers, HIT lifecycle, quality control (gold standards, spam
detection), response aggregation (majority vote, weighted average, Dawid-Skene
EM, median, trimmed mean), cost tracking, and campaign orchestration.
WorkerConfigSchema77TaskConfigSchema77QualityConfigSchema77AggregationConfigSchema77BudgetConfigSchema77CrowdEvalConfigurationSchema77ALL_WORKER_STATUSES90ALL_HIT_STATUSES90ALL_AGGREGATION_STRATEGIES90ALL_QUALITY_CHECK_TYPES90ALL_SPAM_FLAG_REASONS90ALL_BATCH_STATUSES90ALL_PAYMENT_STATUSES90ALL_RATING_DIMENSIONS90 +38 moreTranslation-aware cultural adaptation (src/index.ts): idiom detection/
adaptation, cultural-reference handling, formality-register mapping, honorific
systems, measurement conversion, sensitivity filtering, and dialect selection
over regional databases.
IdiomConfigSchema57ReferenceConfigSchema57SensitivityConfigSchema57FormalityConfigSchema57MeasurementConfigSchema57DialectConfigSchema57CulturalAdaptationConfigSchema57ALL_ADAPTATION_LANGUAGES68ALL_CULTURAL_REGIONS68ALL_FORMALITY_REGISTERS68ALL_IDIOM_CATEGORIES68ALL_CULTURAL_REFERENCE_CATEGORIES68ALL_MEASUREMENT_SYSTEMS68ALL_TEMPERATURE_SCALES68 +69 moreDual-language data layer: a Python async client (src/psyche_database,
PostgreSQL via asyncpg, Redis, transactions, migrations, query builder,
SQLAlchemy models, Qdrant vector storage) plus a Prisma-generated TypeScript
client under src/generated/client/ (models such as AvatarPack,
VoiceProfile). Aligned with @oshun/database.
Dialect/accent handling (src/index.ts): regional variant detection, rule-based
text adaptation between dialects, accent-profile management, formality
registers, multi-dialect conversation coordination, and metrics, with Zod
schemas.
DetectionConfigSchema51AdaptationConfigSchema51AccentConfigSchema51DialectHandlingConfigSchema51ALL_REGION_CODES59ALL_LANGUAGE_FAMILIES59ALL_FORMALITY_REGISTERS59ALL_PHONOLOGICAL_RULE_TYPES59ALL_LEXICAL_CATEGORIES59ALL_ACCENT_FEATURES59ALL_RHYTHM_TYPES59ALL_DIALECT_STATUSES59ALL_ADAPTATION_STRATEGIES59ALL_DH_EVENT_TYPES59 +40 moreReal-time multi-face emotion recognition pipeline for Psyche AI
Realtime multi-face emotion pipeline (src/index.ts): per-face emotion tracking
with persistent identity, temporal pattern + micro-expression analysis, dominant
emotion calculation, suppression/genuineness detection, and quality scoring.
ExtendedEmotion58EmotionQuality58MicroExpression58EmotionTransition58BatchRecognitionResult58EmotionBaseline58RecognitionEvent58RecognitionEventListener58DEFAULT_RECOGNITION_CONFIG58HistoryManager91PatternDetector94EmotionRecognizer97createEmotionRecognizer97ConfusionSeveritySchema100 +182 moreDisengagement detection and recovery orchestration (src/index.ts): a
disengagement detector feeding recovery-strategy selection, with Zod schemas for
engagement snapshots and recovery config.
EngagementSnapshotInputSchema41EngagementRecoveryConfigSchema41ALL_RECOVERY_STRATEGY_TYPES44ALL_DROP_SEVERITIES44ALL_DROP_VELOCITIES44ALL_ER_EVENT_TYPES44DEFAULT_REASON_STRATEGY_MAP44DEFAULT_RECOVERY_STRATEGIES44DEFAULT_ER_CONFIG44resetIdCounter44computeMean44safeDivide44classifyDropSeverity44classifyDropVelocity44 +15 moreFacial action unit detection, expression classification, and demographic estimation for Psyche AI
Facial analysis on landmarks (src/index.ts): FACS action-unit detection,
Ekman + extended expression classification, the valence-arousal-dominance
circumplex, age/gender estimation, and temporal smoothing.
IntensityLevel50ActionUnitDetection50ActionUnitResult50INTENSITY_RANGES50ExtendedEmotion50ExpressionClassification50ExpressionResult50AgeEstimation50Gender50GenderEstimation50DemographicResult50DEFAULT_ANALYSIS_CONFIG50LandmarkIndex50ActionUnitDetector84 +8 moreComprehensive FACS (Facial Action Coding System) expressions library with action unit system, intensity control, and emotion mapping
Facial Action Coding System library (src/index.ts): action-unit definitions,
intensity control, AU-to-emotion mapping, blendshape combinations, and
expression state management for facial animation.
FACSActionUnit13AU_CATEGORIES13AUCategory13FACS_INTENSITY_LEVELS13FACSIntensityLevel13INTENSITY_LEVEL_RANGES13INTENSITY_CODES13AUMuscleInfo13ActionUnitDefinition13AUTimingProfile13DEFAULT_AU_TIMING13ARKitBlendshapeName13BlendshapeWeights13createBlendshapeWeights13 +75 moreFollow-up initiation (src/index.ts): types and logic for deciding when and how
the assistant should proactively initiate a follow-up. A compact lib (one barrel
over a types module and engine).
InteractionRecordInputSchema47TriggerEvaluationContextInputSchema47FollowUpInitiationConfigSchema47FollowUpSequencerEngine55createFollowUpSequencerEngine55createAggressiveSequencer55createConservativeSequencer55createSessionSequencer55ALL_FOLLOWUP_CATEGORIES55ALL_FOLLOWUP_STATUSES55ALL_FOLLOWUP_URGENCIES55ALL_FOLLOWUP_TIMINGS55ALL_FOLLOWUP_FORMATS55ALL_FUI_EVENT_TYPES55 +31 moreGaze-awareness behaviors (src/index.ts): maps gaze points/targets onto content
and derives awareness-driven behaviors, with Zod input schemas for gaze points,
targets, and configuration.
GazePointInputSchema46GazeTargetInputSchema46GazeAwarenessConfigSchema46ALL_GAZE_TARGET_TYPES49ALL_GAZE_DATA_SOURCES49ALL_AWARENESS_LEVELS49ALL_DWELL_PATTERN_TYPES49DEFAULT_GAZE_AWARENESS_CONFIG49generateId49resetIdCounter49isPointInBounds49distanceToBounds49ointDistance49boundsCenter49 +34 moreEye gaze estimation from face landmarks for Psyche AI
Eye-gaze estimation from landmarks (src/index.ts): eye-region extraction,
iris/pupil tracking, pitch/yaw gaze direction with head-pose correction,
calibrated screen mapping, exponential+Kalman filtering, and
fixation/saccade/blink and AOI analysis.
Point3D58NormalizedPoint58EyeRegion58IrisDetection58GazeVector58BinocularGaze58CalibrationPoint58CalibrationPattern58CalibrationData58Saccade58SmoothPursuit58Blink58AOIMetrics58AttentionPoint58 +21 moreGesture generation/animation (src/index.ts): 54+ predefined gesture types
(beats, emblematic, pointing, iconic, metaphoric), keyframe animation with
easing, priority-based multi-gesture blending, speech-synced beats, cultural
adaptation by locale, and personality variation.
GestureCategory37GesturePhase37UpperBodyJoint37JointRotation37JointPoseDelta37BlendshapeDelta37EasingType37GestureKeyframe37GestureDefinition37GestureState37GestureConfig37GestureVariationConfig37CulturalGestureProfile37SpeechPeak37 +82 moreHead movement system with nods, shakes, tilts, and listening behaviors
Generative head movement (src/index.ts): conversational nods, disagreement
shakes, interest/confusion/empathy/thinking tilts, speech-synced emphasis, idle
micro-sway/drift, stimulus responses, and cultural/personality adaptation.
aseLinear48aseIn48aseOut48aseInOut48aseBounce48getEasingFunction48applyEasing48smoothStep48smootherStep48springEasing48oscillatingEase48nvelopeEase48HeadMovementAnimator64VelocityLimitedAnimator64 +38 moreHead pose estimation from face landmarks for Psyche AI
Head-pose estimation from landmarks (src/index.ts): PnP-based pose with a
geometric fallback, multi-format landmark support (MediaPipe/dlib/OpenPose),
movement detection (nods/shakes/tilts/turns), stability and range-of-motion
tracking, and fatigue indicators.
Point3D52EulerAngles52Quaternion52RotationMatrix52SimpleHeadPose52HeadVelocity52HeadAcceleration52LandmarkFormat52FaceLandmarksInput52KeyFacialPoints52CameraIntrinsics52HeadMovement52NodDetection52ShakeDetection52 +22 moreHelp-offer triggering (src/index.ts): a help-signal aggregator over
HelpSignalInputSchema inputs with HelpOfferConfigSchema to decide when to
surface help. A small, focused trigger lib.
HelpSignalInputSchema40HelpOfferConfigSchema40ALL_HELP_SIGNAL_SOURCES43ALL_HELP_CATEGORIES43ALL_HELP_URGENCIES43ALL_HELP_FORMATS43ALL_SKILL_LEVELS43ALL_LEARNING_STYLES43DEFAULT_HELP_OFFER_CONFIG43SOURCE_CATEGORY_MAP43URGENCY_PRIORITY43SKILL_FORMAT_PREFERENCES43STYLE_FORMAT_PREFERENCES43generateId43 +32 moreAutomated human-likeness estimation via multi-modal signal fusion
(src/index.ts): behavioral, conversational, emotional, linguistic, and
consistency signals with feature-weighted scoring, artifact detection,
ground-truth calibration, trend analysis, A/B testing, and benchmarking.
CategoryWeightSchema47ArtifactThresholdsSchema47EstimationEngineConfigSchema47HumanLikenessEstimationEngine54createHumanLikenessEngine54createAvatarEngine54createConversationalAIEngine54createTextChatEngine54createMinimalHLEEngine54ALL_SIGNAL_CATEGORIES54ALL_CONFIDENCE_LEVELS54ALL_LIKENESS_CLASSIFICATIONS54ALL_ARTIFACT_TYPES54ALL_ARTIFACT_SEVERITIES54 +39 morePython integration test suite (tests/test_*.py, ~3.3K LOC across three
modules): pytest tests covering cross-service event flows, pipeline integration,
and service communication for the Python foundation. A test project, not a
runtime library.
Context assembly, token budget management, and source attribution for RAG pipelines
RAG context assembly (src/index.ts): a ContextAssembler with strategies, a
TokenBudgetManager, SourceAttribution, and a ContextFormatter for
citation-aware context construction within a token budget.
LLMModelSchema45MODEL_CONTEXT_WINDOWS45MODEL_CHARS_PER_TOKEN45SourceTypeSchema45SourceReference45SourceReferenceSchema45CitationStyle45CitationStyleSchema45ContextChunkSchema45TokenBudgetConfigSchema45TokenBudgetAllocation45TokenBudgetAllocationSchema45DEFAULT_TOKEN_BUDGET_CONFIG45AssemblyStrategySchema45 +65 moreRAG knowledge ingestion pipeline with document chunking, embedding generation, and index management
RAG ingestion pipeline (src/index.ts): multiple chunking strategies
(fixed-size, semantic, recursive, token-based), an embedding-service abstraction
with caching/batching, vector-index management, document versioning, and
progress reporting via createIngestionPipeline.
DocumentFormatSchema101DocumentStatusSchema101DocumentSchema101ChunkSchema101ChunkingStrategySchema101ChunkingConfigSchema101FixedSizeChunkingConfigSchema101SemanticChunkingConfigSchema101RecursiveChunkingConfigSchema101TokenChunkingConfigSchema101EmbeddingProviderSchema101EmbeddingConfigSchema101EmbeddingResultSchema101BatchEmbeddingResultSchema101 +47 moreKnowledge retrieval library with semantic search, hybrid search, and re-ranking
RAG retrieval (src/index.ts): semantic vector search (cosine/euclidean/dot/
manhattan), BM25/TF-IDF keyword search, hybrid retrieval (RRF, weighted,
cascade), and re-ranking (MMR, weighted, recency decay) with query/result
caching.
SimilarityMetricSchema94SearchResultSchema94SearchQuerySchema94SearchResponseSchema94SemanticSearchConfigSchema94BM25ConfigSchema94KeywordAlgorithmSchema94TFIDFConfigSchema94TokenizerConfigSchema94KeywordSearchConfigSchema94FusionMethodSchema94HybridSearchConfigSchema94RerankMethodSchema94RerankWeightsSchema94 +38 moreLanguage detection (src/index.ts): text statistical analysis, script
detection, n-gram profiling, audio spectral/phonemic analysis, multi-language
content detection, language-change tracking, and realtime streaming detection,
with Zod schemas.
TextDetectionConfigSchema44AudioDetectionConfigSchema44StreamingConfigSchema44LanguageDetectionConfigSchema44ALL_DETECTION_METHODS52ALL_SCRIPT_TYPES52ALL_CONFIDENCE_LEVELS52ALL_LANGUAGE_FAMILIES52ALL_TEXT_DIRECTIONS52ALL_EVENT_TYPES52ALL_EVENT_SEVERITIES52CONFIDENCE_THRESHOLDS52MAX_NGRAM_ENTRIES52MIN_NGRAM_TEXT_LENGTH52 +41 morePython structured-logging library (src/psyche_logging) aligned with
@oshun/logging: JSON log schema, contextvars-based context propagation, log
sampling strategies, PII redaction, optional OpenTelemetry trace enrichment, and
child loggers.
Google Meet integration for AI avatar conferencing
Google Meet adapter (src/index.ts): browser-automation (Puppeteer) + Calendar
API integration for joining meetings with raw audio/video, via
createMeetConferenceSession. Requires Google OAuth credentials.
MeetError54MeetAccessToken54MeetGoogleCredentialsSchema54MeetMeetingStatus54MeetMeetingInfo54MeetMeetingTypeSchema54MeetMeetingStatusSchema54MeetMeetingInfoSchema54MeetParticipantStatus54MeetParticipant54MeetUserRoleSchema54MeetParticipantStatusSchema54MeetParticipantSchema54MeetRawVideoFrame54 +41 moreAI-powered meeting summarization for Psyche AI Virtual Assistant
AI meeting summarization (src/index.ts): processes transcripts, participant
data, events, and engagement metrics into structured summaries (topics, action
items, decisions, questions, engagement analysis) with input/output models.
TranscriptSegmentSchema24MeetingParticipantSchema24MeetingEventTypeSchema24MeetingEventSchema24EngagementSnapshotSchema24MeetingSummaryInputSchema24SentimentSchema49ActionItemPrioritySchema49ActionItemStatusSchema49ActionItemSchema49DecisionSchema49QuestionSchema49TopicSummarySchema49ParticipantContributionSchema49 +23 moreMemory consolidation, decay algorithms, and importance scoring for Psyche memory system
Memory consolidation (src/index.ts): time-based decay (exponential, power-law,
stepped), multi-factor importance scoring, similar-memory merging, low-value
pruning, and automated consolidation scheduling.
ImportanceScoringConfig16ConsolidationSchedulerConfig16MergeConfig16PruneConfig16DEFAULT_IMPORTANCE_CONFIG16DEFAULT_SCHEDULER_CONFIG16DEFAULT_MERGE_CONFIG16DEFAULT_PRUNE_CONFIG16DEFAULT_CONSOLIDATION_POLICY16DecayResult16ImportanceScore16MergeCandidate16PruneCandidate16ConsolidationResult16 +22 moreMemGPT-style hierarchical memory architecture with multi-tier storage, automatic paging, and capacity management
MemGPT-style hierarchical memory (src/index.ts): multi-tier storage with
automatic paging and capacity management via a VirtualContextManager (add,
search, context-window assembly, background monitoring). The anchor of the
memory-* cluster.
MemoryType35MemoryImportance35TIER_ORDER35IMPORTANCE_SCORES35CreateMemoryBlockOptions35MemoryBlockWithRelevance35ContextWindowConfig35DEFAULT_TIER_CONFIGS35DEFAULT_CONTEXT_CONFIG35MemoryAlert35PagingEvent35PagingCallback35PagingStats35MemorySearchResult35 +34 moreBridge between Psyche memory and @sophia/indexing embeddings (src/index.ts):
memory-specific embedding strategies, tier-aware TTL caching, a batch pipeline
with progress, and similarity search over memory blocks. A cross-domain seam.
DEFAULT_MEMORY_EMBEDDING_CONFIG84DEFAULT_MEMORY_EMBEDDING_CACHE_CONFIG84MemoryEmbeddingCache90MemoryEmbeddingService90createMemoryEmbeddingService90createMemoryEmbeddingServiceFromEnv90MemoryEmbeddingPipeline101createEmbeddingPipeline101mbedBlocksWithProgress101computeBlockContentHash101needsReembedding101batchBlocks101sortByEmbeddingPriority1018K token in-context memory with key fact, topic, and entity tracking
8K-token in-context memory (src/index.ts): per-message extraction of key
facts, topics, and entities, with buildContext assembling an optimized,
token-estimated context for the LLM.
ENTITY_TYPES27Message27ToolCall27CreateKeyFactOptions27CreateTopicOptions27CreateEntityOptions27DEFAULT_IN_CONTEXT_CONFIG27ScoredMessage27InContextStats27stimateTokens27canonicalizeValue27keyFactFactory60createKeyFact60calculateKeyFactRelevance60 +17 moreCross-session memory persistence with encryption at rest for the Psyche memory system
Cross-session memory persistence (src/index.ts): multi-backend storage
(memory, file, PostgreSQL, Redis, S3), gzip/brotli compression, AES-256-GCM
encryption at rest, serialization, session management, and integrity
verification.
CompressionProvider19CompressionConfig19EncryptionProvider19EncryptedData19EncryptionConfig19SerializationMetadata19SerializerConfig19ListOptions19StorageStats19FileBackendConfig19PostgresBackendConfig19RedisBackendConfig19S3BackendConfig19BackendConfig19 +52 moreAdvanced memory retrieval (src/index.ts): hybrid semantic (vector) + keyword
(BM25/TF-IDF) search, re-ranking (RRF, MMR, importance, recency, hybrid-score),
and deduplication, via a MemoryRetrievalService.
DEFAULT_TFIDF_CONFIG88DEFAULT_TOKENIZER_OPTIONS88DEFAULT_KEYWORD_SEARCH_CONFIG88DEFAULT_HYBRID_SEARCH_CONFIG88DEFAULT_RERANK_CONFIG88DEFAULT_RETRIEVAL_CONFIG88xtractBlockText103TFIDFIndex103findPhraseMatches103dotProduct124uclideanDistance124manhattanDistance124computeSimilarity124weightedCombination124 +11 more32K token working memory with LRU eviction and promotion/demotion
32K-token working memory (src/index.ts): LRU eviction with auto promotion/
demotion between tiers, importance-weighted entries, and statistics via a
WorkingMemoryManager.
DEFAULT_WORKING_CONFIG31CreateWorkingEntryOptions31ScoredEntry31EntryWithRecommendation31WorkingMemoryEvent31WorkingMemoryEventListener31stimateTokens31LRUCache54createLRUCache54createEvictionScoreCalculator57createLRUEvictionPolicy57createLFUEvictionPolicy57createHybridEvictionPolicy57createPromotionAnalyzer73 +5 morePython event bus (src/psyche_messaging) aligned with @oshun/event-bus:
pattern/wildcard pub-sub, event persistence with replay TTL, retry with
exponential/linear/fixed backoff, dead-letter queue, correlation tracking, and
cross-domain event routing.
Micro-expression generation with natural blink patterns and eye moisture simulation
Micro-expression generation (src/index.ts): brief involuntary expressions
(40–200ms), natural blink patterns with variability, eye-moisture/tearing
simulation, subtle tics/twitches/saccades, and suppression/leakage and deception
simulation.
ARKitBlendshapeName15BlendshapeWeights15createBlendshapeWeights15MicroExpressionType15FACSActionUnit15AUIntensity15MicroExpressionProfile15MICRO_EXPRESSION_PHASES15MicroExpressionPhase15MicroExpressionState15BlinkType15BlinkProfile15BlinkPatternConfig15DEFAULT_BLINK_PATTERN_CONFIG15 +71 moreMobile SDK surface (src/index.ts): iOS and Android SDK modules, cross-platform
wrappers, white-label capabilities, edge/offline deployment, and multi-agent
collaboration (Phase 24.18), re-exported from per-platform modules.
Audio noise handling library with noise suppression, echo cancellation, and normalization
Audio pre-processing for voice (src/index.ts): noise suppression, echo
cancellation, and audio normalization, composable individually or via a unified
createAudioProcessor operating on sample buffers.
DEFAULT_NOISE_GATE_CONFIG95DEFAULT_SPECTRAL_CONFIG95DEFAULT_NOISE_SUPPRESSOR_CONFIG95DEFAULT_ECHO_CANCELLATION_CONFIG95DEFAULT_ECHO_DETECTOR_CONFIG95DEFAULT_PEAK_CONFIG95DEFAULT_RMS_CONFIG95DEFAULT_LUFS_CONFIG95DEFAULT_AGC_CONFIG95DEFAULT_COMPRESSOR_CONFIG95DEFAULT_LIMITER_CONFIG95DEFAULT_NORMALIZER_CONFIG95DEFAULT_PROCESSOR_CONFIG95SpectralNoiseSuppressor115 +33 morePer-participant language preference management (src/index.ts): source-priority
preference resolution, dialect identifiers, auto-detection integration, fallback
chains, conflict resolution, meeting language-policy enforcement, change
history, and translation routing.
DetectionIntegrationConfigSchema52FallbackConfigSchema52ConflictConfigSchema52ChangeTrackingConfigSchema52ParticipantLanguagePreferenceConfigSchema52ALL_REGION_CODES61ALL_PREFERENCE_SOURCES61ALL_PREFERENCE_CONFIDENCES61ALL_FORMALITY_LEVELS61ALL_OUTPUT_MODALITIES61ALL_CHANGE_REASONS61ALL_CONFLICT_RESOLUTIONS61ALL_MEETING_LANGUAGE_POLICIES61ALL_PREFERENCE_SCOPES61 +48 moreMulti-participant stream management for Psyche AI Virtual Assistant
Multi-participant stream management (src/index.ts, ~85K LOC, one of the
largest libs): participant tracking, gallery pagination with active-speaker
follow, processing queues, and feature degradation for large meetings via
createParticipantTracker/
createGalleryManager/createProcessingQueueManager/createDegradationManager.
ParticipantRole89ParticipantAudioState89ParticipantVideoState89ParticipantEngagementState89ParticipantReaction89BreakoutRoomAssignment89Participant89GalleryPage89GalleryConfig89GalleryState89SpeakerProfile89SpeakerVerificationResult89SpeakerSeparationConfig89ReactionDetection89 +1448 moreRoot Poetry/pytest aggregator for the Python tier (libs/psyche/pyproject.toml,
conftest.py, sourceRoot: libs/psyche); ships no package of its own
(packages = []) but owns shared test/lint config and the Nx
implicitDependencies that wire the foundation and feature libs into one graph.
Posture animation system with breathing, weight shifting, and social mirroring
Posture animation (src/index.ts): breathing, weight shifting, and social
mirroring, exposing the core posture types and a posture controller.
POSTURE_JOINTS32JOINT_LIMITS32DEFAULT_POSTURE_CONFIG32DEFAULT_BREATHING_CONFIG32DEFAULT_WEIGHT_SHIFT_CONFIG32DEFAULT_POSTURE_MIRRORING_CONFIG32DEFAULT_PERSONAL_SPACE_CONFIG32createZeroRotation32createZeroTranslation32createEmptyPose32createEmptyDelta32createEmptyBreathingOutput32addRotations32scaleRotation32 +56 morePredictive performance modeling (src/index.ts): multi-metric performance
tracking, model training (linear regression, exponential smoothing,
Holt-Winters, moving average, ensemble), degradation/capacity-exhaustion/anomaly
forecasting, risk assessment, and orchestrated monitoring sessions.
ModelTrainingConfigSchema54PredictionConfigSchema54DegradationConfigSchema54CapacityConfigSchema54AnomalyConfigSchema54RiskConfigSchema54PerformanceModelingConfigSchema54PerformanceModelingEngine68createPerformanceModelingEngine68createAIOpsEngine68createDatabasePerformanceEngine68createLatencyModelingEngine68createMinimalPerformanceEngine68resetIdCounter68 +39 moreProactive-assistance trigger detection (src/index.ts): a need detector over
indicator inputs (NeedIndicatorInputSchema) plus constants, utilities, and
factory functions for firing assistance offers.
NeedIndicatorInputSchema29ProactiveAssistanceConfigSchema29NeedDetectorEngine32NeedIndicatorBuffer32ALL_NEED_SOURCES32ALL_ESCALATION_LEVELS32ESCALATION_PRIORITY32DEFAULT_PROACTIVE_ASSISTANCE_CONFIG32resetIdCounter32classifyEscalation32computeMean32computeStddev32meetsEscalationThreshold32compositeStrength32 +14 moreProactive suggestion engine (src/index.ts): signal analysis, trigger-based
suggestion generation, suppression/deduplication, user-feedback tracking,
pattern learning, and analytics, with Zod schemas.
SuggestionTriggerSchema50ProactiveSuggestionsConfigSchema50AnalysisSignalSchema50ALL_SUGGESTION_CATEGORIES57ALL_TRIGGER_SOURCES57ALL_SUGGESTION_PRIORITIES57ALL_SUGGESTION_STATUSES57ALL_FEEDBACK_TYPES57ALL_ANALYSIS_SIGNAL_TYPES57ALL_LEARNED_PATTERN_TYPES57ALL_CONFIDENCE_LEVELS57ALL_PRESENTATION_MODES57ALL_PS_EVENT_TYPES57ALL_PS_EVENT_SEVERITIES57 +35 moreProactive content summarization (src/index.ts): a content collector feeding
trigger detection, format selection, user-preference learning, and delivery
orchestration, with ContentItemInputSchema/config schemas.
ContentItemInputSchema45ProactiveSummarizationConfigSchema45ALL_SUMMARY_FORMATS48ALL_SUMMARY_DEPTHS48ALL_SUMMARY_TRIGGER_REASONS48ALL_SUMMARY_STATUSES48ALL_SUMMARY_FEEDBACKS48ALL_CONTENT_CATEGORIES48ALL_CONTENT_PRIORITIES48ALL_PS_EVENT_TYPES48PRIORITY_WEIGHTS48DEPTH_WORD_TARGETS48READING_SPEED_WPM48FORMAT_DEPTH_AFFINITY48 +27 moreDomain-agnostic quality-trend analysis (src/index.ts): multi-metric
time-series tracking, configurable smoothing, linear-regression trending,
degradation/ improvement and changepoint detection, forecasting, ensemble
scoring, alerting, and orchestrated monitoring sessions.
SmoothingConfigSchema49TrendThresholdsSchema49ChangepointConfigSchema49ForecastConfigSchema49AlertConfigSchema49QualityTrendConfigSchema49QualityTrendEngine62createQualityTrendEngine62createTranslationQualityEngine62createLatencyMonitoringEngine62createSatisfactionTrackingEngine62createMinimalTrendEngine62resetIdCounter62safeDivide62 +35 moreRecall.ai integration for Psyche AI Virtual Assistant Platform - enables multi-platform meeting bot capabilities
Recall.ai meeting-bot integration (src/index.ts): a single multi-platform bot
(Zoom/Meet/Teams/Webex) with auth manager, API client, and bot SDK
(createRecallBotSDK) for realtime audio/video streaming. Requires a Recall.ai
API key.
RecallBotStatus78RecallRecordingStatus78RecallTranscriptionProvider78RecallAudioOutputMode78RecallVideoOutputMode78ValidatedRecallCredentials78RecallCredentialsSchema78RecallBotAudioConfig78RecallBotVideoConfig78RecallTranscriptionConfig78RecallRecordingConfig78RecallWebhookConfig78RecallBotConfig78CreateBotRequest78 +155 moreSandboxed execution environment for Psyche agents
Sandboxed execution for agents (src/index.ts): process/Docker/VM isolation
backends, CPU/memory/time resource limits, network restrictions, filesystem
access control, and security policies via createSandbox.
SandboxStatus63ExecutionStatus63MemorySizeSchema63ResourceLimitsSchema63NetworkRule63NetworkPolicy63NetworkRuleSchema63NetworkPolicySchema63FilesystemMount63FilesystemPolicy63FilesystemMountSchema63FilesystemPolicySchema63SecurityCapability63SecurityPolicy63 +57 moreScreen analysis library for Psyche agents - screenshot capture, OCR, UI element detection
Screen analysis (src/index.ts, ~94K LOC, the largest lib): screenshot capture
across providers, Tesseract.js OCR, heuristic UI-element detection, document
classification, and screenshot comparison/change detection.
BoundingBox61ScreenshotOptions61ScreenshotResult61DisplayInfo61TextLine61TextWord61OcrResult61OcrOptions61UIElementState61UIElement61ElementDetectionOptions61ElementDetectionResult61DocumentClassification61ScreenAnalysisOptions61 +1986 moreIntegration bridging Sophia's document-ingestion pipeline into Psyche knowledge
management (src/index.ts): a SophiaIngestionAdapter, full pipeline
orchestration, and bidirectional document/chunking/embedding adapters. A
cross-domain seam.
SOPHIA_CHUNKING_STRATEGY_MAP65DEFAULT_RETRY_CONFIG65RETRYABLE_ERROR_CODES65InMemoryIntegrationStorage72SophiaIngestionAdapter75createSophiaIngestionAdapter75DocumentMapper79createDocumentMapper79mergeMetadata79normalizeLanguageCode79ChunkingAdapter88createChunkingAdapter88createChunker88EmbeddingAdapter92 +8 moreStreaming speech-to-text with voice activity detection and multi-language support
Speech-to-text library (src/index.ts): multi-provider support (Deepgram,
Whisper, WebSpeech), voice-activity detection, streaming and batch
transcription, word-level timestamps, and multi-language support.
DEFAULT_VAD_CONFIG52DEFAULT_AUDIO_FORMAT52DEFAULT_RECOGNITION_CONFIG52VoiceActivityDetector58SpeechSegmentCollector58createVAD58createSpeechCollector58calculateAudioEnergy58int16ToFloat3258float32ToInt1658downsample58DeepgramProvider73createDeepgramProvider73DeepgramPrerecordedProvider73 +11 moreFull speech-to-speech translation pipeline (src/index.ts): audio → STT → text
translation → TTS → audio, with multi-speaker voice mapping, prosody transfer,
realtime streaming, translation memory, glossary, and quality monitoring.
PipelineConfigSchema52VoiceMappingConfigSchema52ProsodyConfigSchema52LatencyConfigSchema52QualityConfigSchema52SpeechTranslationConfigSchema52ALL_AUDIO_FORMATS62ALL_PIPELINE_STAGES62ALL_TRANSLATION_MODES62ALL_VOICE_GENDERS62ALL_PROSODY_FEATURES62ALL_SEGMENT_STATUSES62ALL_ST_EVENT_TYPES62ALL_ST_EVENT_SEVERITIES62 +47 morePython realtime state-synchronization library (src/psyche_state_sync) for
assistant sessions: avatar state (position/rotation, 52 FACS blendshapes, gaze,
animations, visemes), voice state, session lifecycle/emotional state, and
multi-participant conferencing state with turn-taking and screen sharing.
Python S3/MinIO-compatible storage client (src/psyche_storage) aligned with
@oshun/storage: async operations, multipart uploads with progress, pre-signed
URLs, and specialized asset managers for avatar models, voice recordings, and
knowledge documents.
Microsoft Teams SDK integration for AI avatar conferencing
Microsoft Teams adapter (src/index.ts): Bot Framework + Real-time Media
Platform integration for joining meetings with raw audio/video and participant
management, exposing createTeamsConferenceSession. Requires Teams tenant/app
credentials.
TeamsError54TeamsAccessToken54TeamsAzureCredentialsSchema54TeamsMeetingStatus54TeamsMeetingInfo54TeamsCallInfo54TeamsMeetingInfoSchema54TeamsParticipant54TeamsParticipantSchema54TeamsRawVideoFrame54TeamsAudioSocket54TeamsVideoSocket54TeamsJoinOptions54TeamsBotConfigSchema54 +125 moreTool execution pipeline for AI agent tool calling
Tool-call execution pipeline (src/index.ts): tool-call parsing, an execution
pipeline with handlers, and result handling for AI agent systems, with
event/config and parser types.
ToolCallSchema69ToolCallRequestSchema69ToolContextSchema69ToolResultSchema69ExecutorConfigSchema69ToolCallParser81generateCallId81arseToolCalls81createToolCallParser81createToolCall81ToolExecutor93createToolExecutor93ExecutionPipeline99createExecutionPipeline99 +21 moreMCP tool registration, discovery, and metadata management
MCP tool registry (src/index.ts): tool registration, discovery, and metadata
management, with parameter/return types, external-format conversion, search, and
versioning over registry events.
ToolDefinitionSchema61ToolSearchQuerySchema61formatVersion72compareVersions72findBestMatch85findAllMatches85isStable85isPrerelease85sortVersionsDesc85sortVersionsAsc85getLatestStable85getLatest85ToolValidator110validateInput110 +20 morePython distributed-tracing library (src/psyche_tracing) aligned with
@oshun/tracing: OpenTelemetry SDK + OTLP export, W3C traceparent/tracestate
propagation, instrumentation decorators, AWS X-Ray header support, and branded
trace/span ID types.
Translation memory + glossary management (src/index.ts): fuzzy matching via
Levenshtein distance, quality-weighted retrieval, LRU/LFU/quality/oldest
eviction, glossary term enforcement, TMX export, and project-based orchestration
via createTranslationMemoryToolkit.
TMStorageConfigSchema62GlossaryConfigSchema62TMQualityConfigSchema62TranslationMemoryConfigSchema62ALL_TRANSLATION_QUALITIES73ALL_TRANSLATION_ORIGINS73ALL_MATCH_TYPES73ALL_PARTS_OF_SPEECH73ALL_TERM_DOMAINS73ALL_TERM_STATUSES73ALL_EVICTION_STRATEGIES73ALL_TM_EVENT_TYPES73ALL_TM_EVENT_SEVERITIES73QUALITY_WEIGHTS73 +31 moreTranslation-quality monitoring (src/index.ts): automatic metric computation
(BLEU, METEOR, TER, chrF), threshold alerting, per-language-pair tracking,
trend/ degradation analysis, feedback integration, reference corpora, quality
gates, and benchmarking, with Zod schemas.
AutoMetricConfigSchema49AlertingConfigSchema49TrendConfigSchema49FeedbackConfigSchema49AutoMetricWeightsSchema49TranslationQualityConfigSchema49ALL_HUMAN_DIMENSIONS59ALL_QUALITY_GRADES59ALL_QUALITY_LEVELS59ALL_ALERT_SEVERITIES59ALL_ALERT_STATUSES59ALL_THRESHOLD_OPERATORS59ALL_TREND_DIRECTIONS59ALL_FEEDBACK_TYPES59 +59 moreRealtime translation streaming (src/index.ts): chunked processing pipelines,
multi-protocol transport, circular buffering with backpressure, adaptive
quality, latency optimization, exponential-backoff reconnection, and metrics,
with Zod schemas.
TransportConfigSchema46ChunkingConfigSchema46BufferConfigSchema46LatencyConfigSchema46QualityConfigSchema46TranslationStreamingConfigSchema46ALL_STREAM_STATES56ALL_CHUNK_STAGES56ALL_CHUNKING_STRATEGIES56ALL_STREAM_QUALITIES56ALL_BUFFER_STATES56ALL_BACKPRESSURE_ACTIONS56ALL_STREAM_DIRECTIONS56ALL_TS_EVENT_TYPES56 +37 moreText-to-viseme prediction with audio-aligned timing and smoothing for lip-sync animation
Text-to-viseme prediction with audio-aligned timing (src/index.ts):
grapheme-to-phoneme conversion, viseme timing, optional coarticulation, and a
textToVisemes convenience plus a configurable generator.
VisemeGenerator25StreamingVisemeGenerator25createVisemeGenerator25createStreamingVisemeGenerator25xtToVisemes25getVisemeTimeline25mergeVisemes25splitSequenceAtTime25GraphemeToPhoneme37createGraphemeToPhoneme37xtToPhonemes37analyzeWordStructure37isVowel37isConsonant37 +26 moreVoice consistency system for identity preservation, emotion-appropriate prosody, and adaptive speaking rate
Voice consistency for natural speech (src/index.ts): voice-identity
preservation via profile management, emotion-appropriate prosody with
transitions, context-aware speaking-rate adaptation, and automatic consistency
corrections.
DEFAULT_CONSISTENCY_CONFIG56VoiceSignatureSchema56VoiceIdentityManager62createVoiceIdentityManager62createVoiceProfile62createProfessionalVoice62createFriendlyVoice62createCalmVoice62createEnergeticVoice62DEFAULT_PERSONALITY62DEFAULT_QUIRKS62DEFAULT_SIGNATURE62EmotionProsodyManager79createEmotionProsodyManager79 +11 moreTarget-language voice dubbing (src/index.ts): speaker detection, voice
mapping, prosody transfer, timing alignment, multi-language synthesis, quality
control, and project management with metrics.
SpeakerDetectionConfigSchema49VoiceMatchingConfigSchema49ProsodyTransferConfigSchema49TimingConfigSchema49OutputConfigSchema49VoiceDubbingConfigSchema49ALL_DUBBING_LANGUAGE_CODES59ALL_AUDIO_FORMATS59ALL_JOB_STATES59ALL_VOICE_GENDERS59ALL_VOICE_AGE_RANGES59ALL_VOICE_TONES59ALL_PROSODY_FEATURES59ALL_ALIGNMENT_STRATEGIES59 +46 moreStreaming TTS output with audio chunking and buffer management for low latency voice synthesis
Streaming TTS playback (src/index.ts): audio chunking, buffer management,
network-quality adaptation, and streaming-session/playback/event types for
low-latency voice output.
DEFAULT_BUFFER_CONFIG48DEFAULT_CHUNKING_CONFIG48DEFAULT_ADAPTIVE_QUALITY_CONFIG48DEFAULT_SESSION_CONFIG48DEFAULT_PLAYBACK_CONFIG48createStreamError48AudioBuffer58createAudioBuffer58AudioChunker61createAudioChunker61createLowLatencyChunker61createHighQualityChunker61applyCrossfade61applyFadeIn61 +9 moreCisco Webex integration for AI avatar conferencing
Cisco Webex adapter (src/index.ts): Webex SDK + REST API integration for
joining meetings with raw audio/video and participant management, via
createWebexConferenceSession. Requires a Webex access token.
WebexError51WebexBotCredentials51WebexAccessToken51WebexOAuthCredentialsSchema51WebexBotCredentialsSchema51WebexMeetingStatus51WebexMeetingState51WebexMeetingInfo51WebexMeetingTypeSchema51WebexMeetingStatusSchema51WebexMeetingInfoSchema51WebexParticipantStatus51WebexParticipant51WebexUserRoleSchema51 +68 moreZoom Meeting SDK integration for AI avatar conferencing
Zoom Meeting SDK adapter (src/index.ts): a meeting-lifecycle wrapper,
JWT/OAuth auth, a REST client, raw audio/video access, and an
IConferenceSession implementation over conferencing-core. Requires real Zoom
SDK credentials.
ZoomMeetingStatusSchema101ZoomParticipantStatusSchema101ZoomUserRoleSchema101ZoomSDKEventSchema101ZoomAuthResultSchema101ZoomRecordingStatusSchema101ZoomSDKCredentialsSchema101ZoomMeetingCredentialsSchema101ZoomMeetingInfoSchema101ZoomParticipantSchema101ZoomChatMessageSchema101ZoomSDKConfigSchema101ZoomJoinOptionsSchema101ZoomBreakoutRoomSchema101 +14 more