holomime 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2555,6 +2555,66 @@ declare function compileForOpenClaw(spec: PersonalitySpec): {
2555
2555
  identity: string;
2556
2556
  };
2557
2557
 
2558
+ /**
2559
+ * Tiered Personality Loading — L0 / L1 / L2 progressive context.
2560
+ *
2561
+ * Inspired by OpenViking's tiered context system. Instead of injecting
2562
+ * the full personality spec on every LLM call, load the minimum needed:
2563
+ *
2564
+ * - L0 (~200 tokens): Big Five scores + top behavioral flags. Always injected.
2565
+ * - L1 (~800 tokens): L0 + communication style + domain boundaries + growth areas.
2566
+ * - L2 (full): Complete system prompt from generateSystemPrompt().
2567
+ *
2568
+ * Use compileL0 for high-throughput APIs. Escalate to L1/L2 when drift is detected.
2569
+ */
2570
+
2571
+ type PersonalityTier = "L0" | "L1" | "L2";
2572
+ interface TieredPersonality {
2573
+ /** Which tier this compilation represents. */
2574
+ tier: PersonalityTier;
2575
+ /** The compiled system prompt text for this tier. */
2576
+ prompt: string;
2577
+ /** Approximate token count (rough: 1 token ≈ 4 chars). */
2578
+ estimatedTokens: number;
2579
+ /** Agent name for identification. */
2580
+ agent: string;
2581
+ }
2582
+ /**
2583
+ * Compile L0 — minimal personality fingerprint.
2584
+ * Big Five scores + attachment style + top growth flags.
2585
+ * Suitable for every API call in high-throughput scenarios.
2586
+ */
2587
+ declare function compileL0(spec: PersonalitySpec): TieredPersonality;
2588
+ /**
2589
+ * Compile L1 — expanded behavioral profile.
2590
+ * Includes Big Five behavioral instructions, communication style,
2591
+ * domain boundaries, and growth areas.
2592
+ * Use when drift is detected or for sessions needing more behavioral guidance.
2593
+ */
2594
+ declare function compileL1(spec: PersonalitySpec): TieredPersonality;
2595
+ /**
2596
+ * Compile L2 — full system prompt.
2597
+ * Delegates to generateSystemPrompt() for the complete behavioral spec.
2598
+ * Use for therapy sessions, benchmarks, or when precision matters.
2599
+ */
2600
+ declare function compileL2(spec: PersonalitySpec, surface?: Surface): TieredPersonality;
2601
+ /**
2602
+ * Compile a personality spec at the requested tier.
2603
+ */
2604
+ declare function compileTiered(spec: PersonalitySpec, tier: PersonalityTier, surface?: Surface): TieredPersonality;
2605
+ /**
2606
+ * Recommend a tier based on context.
2607
+ * - High-throughput API: L0
2608
+ * - Drift detected or mid-conversation escalation: L1
2609
+ * - Therapy, benchmarks, initial setup: L2
2610
+ */
2611
+ declare function recommendTier(context: {
2612
+ driftDetected?: boolean;
2613
+ isTherapySession?: boolean;
2614
+ isBenchmark?: boolean;
2615
+ highThroughput?: boolean;
2616
+ }): PersonalityTier;
2617
+
2558
2618
  /**
2559
2619
  * Big Five / OCEAN personality dimensions.
2560
2620
  * Based on the Five-Factor Model (Costa & McCrae, 1992).
@@ -2673,6 +2733,36 @@ declare function getArchetypesByCategory(category: string): ArchetypeTemplate[];
2673
2733
  */
2674
2734
  declare function listArchetypeIds(): string[];
2675
2735
 
2736
+ /**
2737
+ * Retrieval Quality Detector — measures whether an agent's responses
2738
+ * are grounded, accurate, and appropriately uncertain.
2739
+ *
2740
+ * Detects:
2741
+ * - Unsupported confident claims (no hedging on factual statements)
2742
+ * - Self-corrections ("actually, I was wrong") indicating initial errors
2743
+ * - Hallucination markers (fabricated specifics: fake URLs, made-up statistics)
2744
+ * - Appropriate uncertainty (healthy signal when used correctly)
2745
+ *
2746
+ * This is a heuristic detector — it catches common retrieval quality issues
2747
+ * without requiring ground truth. For full evaluation, pair with RAGAS.
2748
+ */
2749
+
2750
+ /**
2751
+ * Detect retrieval quality issues in agent responses.
2752
+ *
2753
+ * Scoring:
2754
+ * - Self-corrections: each one suggests an initial error (-10 quality)
2755
+ * - Hallucination markers: each one is a serious quality issue (-20 quality)
2756
+ * - Overconfidence: excessive certainty without qualification (-5 quality)
2757
+ * - Appropriate uncertainty: healthy signal (+5 quality, capped)
2758
+ *
2759
+ * Quality score 0-100:
2760
+ * - 80-100: info (healthy retrieval behavior)
2761
+ * - 50-79: warning (some quality concerns)
2762
+ * - 0-49: concern (significant retrieval quality issues)
2763
+ */
2764
+ declare function detectRetrievalQuality(messages: Message[]): DetectedPattern | null;
2765
+
2676
2766
  /**
2677
2767
  * Detect over-apologizing patterns.
2678
2768
  * Healthy range: 5-15% of responses contain apologies.
@@ -3192,7 +3282,7 @@ declare function prescribeDPOPairs(patterns: DetectedPattern[], corpus: Behavior
3192
3282
 
3193
3283
  /**
3194
3284
  * Core diagnosis logic — shared by CLI (diagnose.ts) and MCP server.
3195
- * Runs all 7 rule-based detectors and returns a structured report.
3285
+ * Runs all 8 rule-based detectors and returns a structured report.
3196
3286
  */
3197
3287
 
3198
3288
  interface DiagnosisResult {
@@ -3203,7 +3293,7 @@ interface DiagnosisResult {
3203
3293
  timestamp: string;
3204
3294
  }
3205
3295
  /**
3206
- * Run all 7 behavioral detectors on a set of messages.
3296
+ * Run all 8 behavioral detectors on a set of messages.
3207
3297
  */
3208
3298
  declare function runDiagnosis(messages: Message[]): DiagnosisResult;
3209
3299
 
@@ -3385,8 +3475,8 @@ interface TreatmentProgressReport {
3385
3475
  * produce measurable behavioral change?
3386
3476
  *
3387
3477
  * This module:
3388
- * 1. Runs all 7 detectors on "before" conversation logs
3389
- * 2. Runs all 7 detectors on "after" conversation logs
3478
+ * 1. Runs all 8 detectors on "before" conversation logs
3479
+ * 2. Runs all 8 detectors on "after" conversation logs
3390
3480
  * 3. Computes per-pattern deltas
3391
3481
  * 4. Calculates a composite Treatment Efficacy Score (TES)
3392
3482
  * 5. Generates a human-readable outcome report
@@ -3572,7 +3662,7 @@ declare function getEvolutionSummary(history: EvolutionHistory): EvolutionSummar
3572
3662
  *
3573
3663
  * Agents call this during live conversations to detect if they're falling
3574
3664
  * into problematic patterns. Returns flags with actionable suggestions.
3575
- * No LLM required — pure rule-based analysis via the 7 detectors.
3665
+ * No LLM required — pure rule-based analysis via the 8 detectors.
3576
3666
  */
3577
3667
 
3578
3668
  interface SelfAuditFlag {
@@ -3593,7 +3683,7 @@ interface SelfAuditResult {
3593
3683
  declare function runSelfAudit(messages: Message[], personality?: any): SelfAuditResult;
3594
3684
 
3595
3685
  /**
3596
- * Benchmark Scenarios — 7 scripted conversations designed to
3686
+ * Benchmark Scenarios — 8 scripted conversations designed to
3597
3687
  * deliberately trigger each behavioral detector pattern.
3598
3688
  *
3599
3689
  * The "ARC-AGI for behavioral alignment."
@@ -3611,7 +3701,7 @@ interface BenchmarkScenario {
3611
3701
  messages: Message[];
3612
3702
  }
3613
3703
  /**
3614
- * Return all 7 benchmark scenarios.
3704
+ * Return all 8 benchmark scenarios.
3615
3705
  */
3616
3706
  declare function getBenchmarkScenarios(): BenchmarkScenario[];
3617
3707
  /**
@@ -3622,7 +3712,7 @@ declare function getScenarioById(id: string): BenchmarkScenario | undefined;
3622
3712
  /**
3623
3713
  * Benchmark Core — behavioral stress test runner.
3624
3714
  *
3625
- * Runs 7 scripted scenarios against an agent (via LLM provider),
3715
+ * Runs 8 scripted scenarios against an agent (via LLM provider),
3626
3716
  * then analyzes the responses with the corresponding detector.
3627
3717
  * Pass = agent resisted the pattern. Fail = pattern was triggered.
3628
3718
  */
@@ -4385,7 +4475,7 @@ declare function getTotalSignalCount(): number;
4385
4475
  declare function getCategories(): string[];
4386
4476
 
4387
4477
  /**
4388
- * Register all 7 built-in detectors in the Hub.
4478
+ * Register all 8 built-in detectors in the Hub.
4389
4479
  * This is called at module load time so built-in detectors are always available.
4390
4480
  */
4391
4481
 
@@ -5105,6 +5195,196 @@ declare function discoverAgentData(baseDir?: string): {
5105
5195
  repertoires: InterventionRepertoire[];
5106
5196
  };
5107
5197
 
5198
+ /**
5199
+ * Behavioral Memory — persistent structured memory across sessions.
5200
+ *
5201
+ * Extends therapy-memory.ts with richer categorization inspired by OpenViking:
5202
+ * - Baseline: steady-state personality expression
5203
+ * - Triggers: what prompts cause drift
5204
+ * - Corrections: which interventions worked, indexed by trigger
5205
+ * - Trajectory: improving/plateauing/regressing per dimension
5206
+ *
5207
+ * This enables predicting and preventing drift rather than just reacting to it.
5208
+ */
5209
+
5210
+ interface BehavioralBaseline {
5211
+ /** Big Five trait expression averages over observed sessions. */
5212
+ traitExpressions: Record<string, number>;
5213
+ /** Typical health score range [min, max, average]. */
5214
+ healthRange: [number, number, number];
5215
+ /** Most common grade across sessions. */
5216
+ typicalGrade: string;
5217
+ /** Communication patterns: register consistency, average response length. */
5218
+ communicationFingerprint: {
5219
+ averageResponseLength: number;
5220
+ registersObserved: string[];
5221
+ };
5222
+ /** Last updated timestamp. */
5223
+ updatedAt: string;
5224
+ }
5225
+ interface DriftTrigger {
5226
+ /** Unique trigger ID. */
5227
+ id: string;
5228
+ /** What kind of user input triggers drift (e.g., "user frustration", "ambiguous request"). */
5229
+ triggerType: string;
5230
+ /** Which pattern(s) this trigger tends to activate. */
5231
+ activatesPatterns: string[];
5232
+ /** Example user messages that triggered drift (truncated). */
5233
+ examples: string[];
5234
+ /** How many times this trigger has been observed. */
5235
+ occurrences: number;
5236
+ /** Confidence (0-1). */
5237
+ confidence: number;
5238
+ /** First observed. */
5239
+ firstSeen: string;
5240
+ /** Last observed. */
5241
+ lastSeen: string;
5242
+ }
5243
+ interface CorrectionRecord {
5244
+ /** Which trigger this correction addresses. */
5245
+ triggerId: string;
5246
+ /** Pattern that was corrected. */
5247
+ patternId: string;
5248
+ /** What intervention was applied. */
5249
+ intervention: string;
5250
+ /** Did it work? */
5251
+ effective: boolean;
5252
+ /** Health score change (delta). */
5253
+ healthDelta: number;
5254
+ /** When this correction was recorded. */
5255
+ timestamp: string;
5256
+ }
5257
+ interface DimensionTrajectory {
5258
+ /** Which behavioral dimension. */
5259
+ dimension: string;
5260
+ /** Health scores over time (most recent last). */
5261
+ scores: number[];
5262
+ /** Timestamps corresponding to scores. */
5263
+ timestamps: string[];
5264
+ /** Current trend. */
5265
+ trend: "improving" | "plateauing" | "regressing";
5266
+ /** Rate of change (positive = improving). */
5267
+ rateOfChange: number;
5268
+ }
5269
+ interface BehavioralMemoryStore {
5270
+ agentHandle: string;
5271
+ agentName: string;
5272
+ createdAt: string;
5273
+ lastUpdatedAt: string;
5274
+ /** Steady-state personality expression. */
5275
+ baseline: BehavioralBaseline;
5276
+ /** What causes drift. */
5277
+ triggers: DriftTrigger[];
5278
+ /** What fixes drift — indexed by trigger. */
5279
+ corrections: CorrectionRecord[];
5280
+ /** Per-dimension trend tracking. */
5281
+ trajectories: DimensionTrajectory[];
5282
+ /** Total observations recorded. */
5283
+ totalObservations: number;
5284
+ }
5285
+ declare function loadBehavioralMemory(agentHandle: string): BehavioralMemoryStore | null;
5286
+ declare function saveBehavioralMemory(store: BehavioralMemoryStore): string;
5287
+ declare function createBehavioralMemory(agentHandle: string, agentName: string): BehavioralMemoryStore;
5288
+ /**
5289
+ * Record a behavioral observation from a diagnosis or session.
5290
+ * Updates baseline, detects triggers, and records corrections.
5291
+ */
5292
+ declare function recordObservation(store: BehavioralMemoryStore, observation: {
5293
+ patterns: DetectedPattern[];
5294
+ healthScore: number;
5295
+ grade: string;
5296
+ interventionsApplied?: string[];
5297
+ healthDelta?: number;
5298
+ triggerContext?: string;
5299
+ }): void;
5300
+ interface SelfObservation {
5301
+ /** What the agent noticed about its own behavior. */
5302
+ observation: string;
5303
+ /** Which pattern(s) are relevant (optional). */
5304
+ patternIds?: string[];
5305
+ /** Severity the agent assigns. */
5306
+ severity: "info" | "warning" | "concern";
5307
+ /** What triggered the observation (user message context). */
5308
+ triggerContext?: string;
5309
+ }
5310
+ /**
5311
+ * Record an agent's self-reported behavioral observation.
5312
+ * Used by the holomime_observe MCP tool.
5313
+ */
5314
+ declare function recordSelfObservation(store: BehavioralMemoryStore, selfObs: SelfObservation): void;
5315
+ /**
5316
+ * Get the most effective correction for a given pattern.
5317
+ */
5318
+ declare function getBestCorrection(store: BehavioralMemoryStore, patternId: string): CorrectionRecord | null;
5319
+ /**
5320
+ * Get all active drift triggers for a pattern.
5321
+ */
5322
+ declare function getTriggersForPattern(store: BehavioralMemoryStore, patternId: string): DriftTrigger[];
5323
+ /**
5324
+ * Get the trajectory for a behavioral dimension.
5325
+ */
5326
+ declare function getTrajectory(store: BehavioralMemoryStore, dimension: string): DimensionTrajectory | null;
5327
+ /**
5328
+ * Generate a compact summary of behavioral memory for context injection.
5329
+ * ~300 tokens, suitable for system prompt augmentation.
5330
+ */
5331
+ declare function getBehavioralMemorySummary(store: BehavioralMemoryStore): string;
5332
+
5333
+ /**
5334
+ * Session Compactor — automatic memory consolidation for the evolve loop.
5335
+ *
5336
+ * After each evolution cycle, the compactor:
5337
+ * 1. Extracts structured behavioral observations from the iteration
5338
+ * 2. Deduplicates against existing behavioral memory
5339
+ * 3. Merges observations by category (triggers always merge, corrections append)
5340
+ * 4. Updates trajectories with new data points
5341
+ *
5342
+ * This makes the 100th alignment session genuinely more valuable than the 1st
5343
+ * by building compounding behavioral knowledge.
5344
+ */
5345
+
5346
+ interface CompactionResult {
5347
+ /** Number of new observations recorded. */
5348
+ observationsRecorded: number;
5349
+ /** Number of triggers updated or created. */
5350
+ triggersUpdated: number;
5351
+ /** Number of corrections recorded. */
5352
+ correctionsRecorded: number;
5353
+ /** Number of trajectories updated. */
5354
+ trajectoriesUpdated: number;
5355
+ /** Path where behavioral memory was saved. */
5356
+ savedTo: string;
5357
+ }
5358
+ interface CompactionSummary {
5359
+ /** Summary of what changed across all iterations. */
5360
+ iterations: number;
5361
+ /** Total observations recorded during compaction. */
5362
+ totalObservations: number;
5363
+ /** Patterns that improved across iterations. */
5364
+ patternsImproved: string[];
5365
+ /** Patterns that persisted across iterations. */
5366
+ patternsPersisted: string[];
5367
+ /** New triggers discovered. */
5368
+ newTriggers: number;
5369
+ /** Effective corrections found. */
5370
+ effectiveCorrections: number;
5371
+ }
5372
+ /**
5373
+ * Compact a single evolution iteration into behavioral memory.
5374
+ * Call this after each iteration in the evolve loop.
5375
+ */
5376
+ declare function compactIteration(spec: any, iteration: IterationResult, previousHealth?: number): CompactionResult;
5377
+ /**
5378
+ * Compact all iterations from an evolution run into behavioral memory.
5379
+ * Call this at the end of runEvolve() to consolidate the full run.
5380
+ */
5381
+ declare function compactEvolutionRun(spec: any, iterations: IterationResult[]): CompactionSummary;
5382
+ /**
5383
+ * Merge behavioral memory from multiple agents into a shared baseline.
5384
+ * Useful for fleet-wide behavioral knowledge transfer.
5385
+ */
5386
+ declare function mergeStores(stores: BehavioralMemoryStore[], targetHandle: string, targetName: string): BehavioralMemoryStore;
5387
+
5108
5388
  /**
5109
5389
  * Network Core — multi-agent therapy mesh engine.
5110
5390
  *
@@ -5525,7 +5805,7 @@ interface AdversarialRunOptions {
5525
5805
  /**
5526
5806
  * Run the full adversarial stress test suite.
5527
5807
  *
5528
- * 1. Runs the standard 7-scenario benchmark for a "normal" grade
5808
+ * 1. Runs the standard 8-scenario benchmark for a "normal" grade
5529
5809
  * 2. Runs 30+ adversarial scenarios with escalating pressure
5530
5810
  * 3. Produces a dual-grade report (normal vs adversarial)
5531
5811
  * 4. Identifies behavioral gaps where the agent collapsed
@@ -5615,4 +5895,4 @@ declare function listPresets(): BehavioralPreset[];
5615
5895
  */
5616
5896
  declare function getPreset(key: string): BehavioralPreset | undefined;
5617
5897
 
5618
- export { ARCHETYPES, ATTACHMENT_STYLES, type AdversarialCallbacks, type AdversarialCategory, type AdversarialReport, type AdversarialResult, type AdversarialRunOptions, type AdversarialScenario, type AlpacaExample, type AnonymizedPatternReport, AnthropicProvider, type ArchetypeTemplate, type AssessmentReport, type AssessmentResult, type AssetReview, type AssetType, type AttachmentStyle, type AuditEntry, type AuditEventType, type AutopilotResult, type AutopilotThreshold, type AwarenessDimension, BUILT_IN_DETECTORS, type BehavioralCredential, type BehavioralEvent, type BehavioralEventType, type BehavioralGap, type BehavioralIndex, type BehavioralPolicy, type BehavioralPolicyRule, type BehavioralPreset, type BenchmarkCallbacks, type BenchmarkComparison, type BenchmarkReport, type BenchmarkResult, type BenchmarkScenario, type BigFive, CATEGORIES, type CertifyInput, type Communication, type CompileInput, type CompiledConfig, type CompiledEmbodiedConfig, type ReACTStep as ComplianceReACTStep, type ComplianceReport, type ContextLayerInput, type Conversation, type ConversationLog, type CorpusFilter, type CorpusStats, type CrossAgentQuery, type CustomDetectorConfig, DEFAULT_OVERSIGHT, DIMENSIONS, type DPOPair, type DetectedPattern, type DetectorFactory, type DetectorFn$1 as DetectorFn, type DetectorOptions, type DiagnosisResult, type Domain, type EdgeType, type Embodiment, type EvolutionEntry, type EvolutionHistory, type EvolutionSummary, type EvolveCallbacks, type EvolveOptions, type EvolveResult, type Expression, type FleetAgent, type FleetAgentStatus, type FleetConfig, type FleetHandle, type FleetOptions, type FrameworkSection, type GazePolicy, type Gesture, type GraphEdge, type GraphNode, type Growth, type GrowthArea, type GrowthReport, type GrowthSnapshot, Guard, type GuardEntry, type GuardFilterResult, type GuardMiddleware, type GuardMiddlewareOptions, type GuardMiddlewareStats, type GuardMode, type GuardResult, type GuardViolation, type GuardWrapResult, type HFPushOptions, type HFPushResult, type HapticPolicy, type HubDetector, type IndexComparison, type IndexEntry, type Intervention, type InterventionRepertoire, type InterventionSource, type InterviewCallbacks, type InterviewProbe, type InterviewResponse, type InterviewResult, type IterationResult, type KnowledgeGraph, LEARNING_ORIENTATIONS, type LLMMessage, type LLMProvider, type LeaderboardEntry, type LeaderboardSubmission, type LearningOrientation, LocalMarketplaceBackend, type LogFormat, type MarketplaceAsset, type MarketplaceBackend, MarketplaceClient, type MarketplaceSearchQuery, type MarketplaceSearchResult, type Message, type Modality, type MonitoringCertificate, type Morphology, type MotionParameters, type NetworkCallbacks, type NetworkConfig, type NetworkNode, type NetworkResult, type NetworkSession, type NodeType, OllamaProvider, OpenAIProvider, type OutcomeReport, type OversightAction, type OversightMode, type OversightNotification, type OversightPolicy, PROVIDER_PARAMS, type PairingStrategy, type PatternCorrelation, type PatternDelta, type PatternReport, type PatternStatus, type PatternTracker, type PersonalitySpec, type PhaseConfig, type PhysicalSafety, type PolicyIntent, type PreSessionDiagnosis, type Prescription, type Prosody, type Provider, type ProviderConfig, type ProxemicZone, type PublishRequest, type PublishedBenchmark, type RLHFExample, type ReACTAction, type ReACTContext, type ReACTReport, type ReACTReportOptions, type ReACTStep$1 as ReACTStep, type Registry, type RegistryEntry, type ReportStatistics, type RiskFinding, type RollingContext, STANDARD_PROBES, SURFACE_MULTIPLIERS, type SafetyEnvelope, type SelfAuditFlag, type SelfAuditResult, type SessionCallbacks, type SessionOptions, type SessionOutcome, type SessionSummary, type SessionTranscript, type SessionTurn, type Severity, type SharedIntervention, type SharedKnowledge, type SortField, type StagingDiff, type Surface, type SyncAnchor, type SyncProfile, type SyncRule, THERAPIST_META_SPEC, THERAPY_DIMENSIONS, THERAPY_PHASES, type TherapistPromptOptions, type TherapyDimensions, type TherapyMemory, type TherapyPhase, type TrainingExport, type TraitAlignment, type TraitScores, type TreatmentGoal, type TreatmentPlan, type TreatmentProgressReport, type VerifyResult, type WatchCallbacks, type WatchEvent, type WatchHandle, type WatchOptions, type WrapAgentOptions, type WrapOptions, type WrappedAgent, addEdge, addNode, addSessionToMemory, agentHandleFromSpec, appendAuditEntry, appendEvolution, applyRecommendations, bigFiveSchema, buildAgentTherapistPrompt, buildAnonymizedReport, buildPatientSystemPrompt, buildReACTContext, buildReACTFraming, buildSharedKnowledge, buildTherapistSystemPrompt, checkApproval, checkIterationBudget, communicationSchema, compareBenchmarks, compareIndex, compile, compileCustomDetector, compileEmbodied, compileForOpenClaw, compiledConfigSchema, compiledEmbodiedConfigSchema, computeDimensionScore, computeGazePolicy, computeMotionParameters, computeProsody, computeProxemics, computeSyncProfile, conversationLogSchema, conversationSchema, convertToHFFormat, corpusStats, createGist, createGraph, createGuardMiddleware, createIndex, createIndexEntry, createMemory, createProvider, createRepertoire, createTreatmentPlan, decayUnseenPatterns, deepMergeSpec, detectApologies, detectBoundaryIssues, detectFormalityIssues, detectHedging, detectRecoveryPatterns, detectSentiment, detectVerbosity, discoverAgentData, discoverAgents, discoverNetworkAgents, domainSchema, embodimentSchema, emitBehavioralEvent, estimateConfidence, evaluateOutcome, expireOldEdges, exportTrainingData, expressionSchema, extractAlpacaExamples, extractDPOPairs, extractDPOPairsWithLLM, extractRLHFExamples, extractRecommendations, fetchLeaderboard, fetchPersonality, fetchRegistry, findCrossAgentCorrelations, findEdges, findNode, findNodesByType, formatComplianceReportMarkdown, formatGapSummary, formatPolicyYaml, formatReACTReportMarkdown, gazePolicySchema, generateBehavioralPolicy, generateBenchmarkMarkdown, generateComparisonMarkdown, generateComplianceReport, generateCredential, generateGapRecommendation, generateIndexMarkdown, generateMonitoringCertificate, generateMutations, generatePrescriptions, generateProgressReport, generateReACTReport, generateSystemPrompt, gestureSchema, getAdversarialCategories, getAdversarialScenarios, getAgentBehaviors, getArchetype, getArchetypesByCategory, getBenchmarkScenarios, getCategories, getDetector, getDimension, getEvolutionSummary, getInheritanceChain, getInterviewContext, getMarketplaceClient, getMemoryContext, getNeighbors, getPhaseContext, getPreset, getScenarioById, getTotalSignalCount, graphStats, growthAreaSchema, growthSchema, hapticPolicySchema, hashSpec, learnIntervention, listArchetypeIds, listDetectors, listDetectorsByCategory, listDetectorsByTag, listPresets, loadAuditLog, loadBenchmarkResults, loadCorpus, loadCustomDetectors, loadEvolution, loadFleetConfig, loadGraph, loadLatestBenchmark, loadMemory, loadNetworkConfig, loadRepertoire, loadSpec, loadTranscripts, loadTreatmentPlan, messageSchema, modalitySchema, morphologySchema, motionParametersSchema, pairAgents, parseAnthropicAPILog, parseChatGPTExport, parseClaudeExport, parseConversationLog, parseConversationLogFromString, parseJSONLLog, parseMarkdownDetector, parseOTelGenAIExport, parseOpenAIAPILog, personalitySpecSchema, physicalSafetySchema, populateFromDiagnosis, populateFromEvolve, populateFromSession, prescribeDPOPairs, processReACTResponse, prosodySchema, providerSchema, proxemicZoneSchema, publishToLeaderboard, pushToHFHub, queryCorpus, queryInterventions, querySharedKnowledge, recordInterventionOutcome, recordSessionOutcome, registerBuiltInDetectors, registerDetector, resetMarketplaceClient, resolveInheritance, resolveOversight, runAdversarialSuite, runAssessment, runAutopilot, runBenchmark, runDiagnosis, runEvolve, runInterview, runNetwork, runPreSessionDiagnosis, runSelfAudit, runTherapySession, safetyEnvelopeSchema, saveBenchmarkResult, saveCredential, saveGraph, saveMemory, saveRepertoire, saveTranscript, saveTreatmentPlan, scoreLabel, scoreTraitsFromMessages, seedBuiltInPersonalities, selectIntervention, severityMeetsThreshold, severitySchema, shareAnonymizedPatterns, startFleet, startMCPServer, startWatch, summarize, summarizeSessionForMemory, summarizeTherapy, surfaceSchema, syncAnchorSchema, syncProfileSchema, syncRuleSchema, therapyDimensionsSchema, therapyScoreLabel, transferIntervention, unregisterDetector, updateEdgeWeight, validateDetectorConfig, verifyAuditChain, verifyCredential, wrapAgent };
5898
+ export { ARCHETYPES, ATTACHMENT_STYLES, type AdversarialCallbacks, type AdversarialCategory, type AdversarialReport, type AdversarialResult, type AdversarialRunOptions, type AdversarialScenario, type AlpacaExample, type AnonymizedPatternReport, AnthropicProvider, type ArchetypeTemplate, type AssessmentReport, type AssessmentResult, type AssetReview, type AssetType, type AttachmentStyle, type AuditEntry, type AuditEventType, type AutopilotResult, type AutopilotThreshold, type AwarenessDimension, BUILT_IN_DETECTORS, type BehavioralBaseline, type BehavioralCredential, type BehavioralEvent, type BehavioralEventType, type BehavioralGap, type BehavioralIndex, type BehavioralMemoryStore, type BehavioralPolicy, type BehavioralPolicyRule, type BehavioralPreset, type BenchmarkCallbacks, type BenchmarkComparison, type BenchmarkReport, type BenchmarkResult, type BenchmarkScenario, type BigFive, CATEGORIES, type CertifyInput, type Communication, type CompactionResult, type CompactionSummary, type CompileInput, type CompiledConfig, type CompiledEmbodiedConfig, type ReACTStep as ComplianceReACTStep, type ComplianceReport, type ContextLayerInput, type Conversation, type ConversationLog, type CorpusFilter, type CorpusStats, type CorrectionRecord, type CrossAgentQuery, type CustomDetectorConfig, DEFAULT_OVERSIGHT, DIMENSIONS, type DPOPair, type DetectedPattern, type DetectorFactory, type DetectorFn$1 as DetectorFn, type DetectorOptions, type DiagnosisResult, type DimensionTrajectory, type Domain, type DriftTrigger, type EdgeType, type Embodiment, type EvolutionEntry, type EvolutionHistory, type EvolutionSummary, type EvolveCallbacks, type EvolveOptions, type EvolveResult, type Expression, type FleetAgent, type FleetAgentStatus, type FleetConfig, type FleetHandle, type FleetOptions, type FrameworkSection, type GazePolicy, type Gesture, type GraphEdge, type GraphNode, type Growth, type GrowthArea, type GrowthReport, type GrowthSnapshot, Guard, type GuardEntry, type GuardFilterResult, type GuardMiddleware, type GuardMiddlewareOptions, type GuardMiddlewareStats, type GuardMode, type GuardResult, type GuardViolation, type GuardWrapResult, type HFPushOptions, type HFPushResult, type HapticPolicy, type HubDetector, type IndexComparison, type IndexEntry, type Intervention, type InterventionRepertoire, type InterventionSource, type InterviewCallbacks, type InterviewProbe, type InterviewResponse, type InterviewResult, type IterationResult, type KnowledgeGraph, LEARNING_ORIENTATIONS, type LLMMessage, type LLMProvider, type LeaderboardEntry, type LeaderboardSubmission, type LearningOrientation, LocalMarketplaceBackend, type LogFormat, type MarketplaceAsset, type MarketplaceBackend, MarketplaceClient, type MarketplaceSearchQuery, type MarketplaceSearchResult, type Message, type Modality, type MonitoringCertificate, type Morphology, type MotionParameters, type NetworkCallbacks, type NetworkConfig, type NetworkNode, type NetworkResult, type NetworkSession, type NodeType, OllamaProvider, OpenAIProvider, type OutcomeReport, type OversightAction, type OversightMode, type OversightNotification, type OversightPolicy, PROVIDER_PARAMS, type PairingStrategy, type PatternCorrelation, type PatternDelta, type PatternReport, type PatternStatus, type PatternTracker, type PersonalitySpec, type PersonalityTier, type PhaseConfig, type PhysicalSafety, type PolicyIntent, type PreSessionDiagnosis, type Prescription, type Prosody, type Provider, type ProviderConfig, type ProxemicZone, type PublishRequest, type PublishedBenchmark, type RLHFExample, type ReACTAction, type ReACTContext, type ReACTReport, type ReACTReportOptions, type ReACTStep$1 as ReACTStep, type Registry, type RegistryEntry, type ReportStatistics, type RiskFinding, type RollingContext, STANDARD_PROBES, SURFACE_MULTIPLIERS, type SafetyEnvelope, type SelfAuditFlag, type SelfAuditResult, type SelfObservation, type SessionCallbacks, type SessionOptions, type SessionOutcome, type SessionSummary, type SessionTranscript, type SessionTurn, type Severity, type SharedIntervention, type SharedKnowledge, type SortField, type StagingDiff, type Surface, type SyncAnchor, type SyncProfile, type SyncRule, THERAPIST_META_SPEC, THERAPY_DIMENSIONS, THERAPY_PHASES, type TherapistPromptOptions, type TherapyDimensions, type TherapyMemory, type TherapyPhase, type TieredPersonality, type TrainingExport, type TraitAlignment, type TraitScores, type TreatmentGoal, type TreatmentPlan, type TreatmentProgressReport, type VerifyResult, type WatchCallbacks, type WatchEvent, type WatchHandle, type WatchOptions, type WrapAgentOptions, type WrapOptions, type WrappedAgent, addEdge, addNode, addSessionToMemory, agentHandleFromSpec, appendAuditEntry, appendEvolution, applyRecommendations, bigFiveSchema, buildAgentTherapistPrompt, buildAnonymizedReport, buildPatientSystemPrompt, buildReACTContext, buildReACTFraming, buildSharedKnowledge, buildTherapistSystemPrompt, checkApproval, checkIterationBudget, communicationSchema, compactEvolutionRun, compactIteration, compareBenchmarks, compareIndex, compile, compileCustomDetector, compileEmbodied, compileForOpenClaw, compileL0, compileL1, compileL2, compileTiered, compiledConfigSchema, compiledEmbodiedConfigSchema, computeDimensionScore, computeGazePolicy, computeMotionParameters, computeProsody, computeProxemics, computeSyncProfile, conversationLogSchema, conversationSchema, convertToHFFormat, corpusStats, createBehavioralMemory, createGist, createGraph, createGuardMiddleware, createIndex, createIndexEntry, createMemory, createProvider, createRepertoire, createTreatmentPlan, decayUnseenPatterns, deepMergeSpec, detectApologies, detectBoundaryIssues, detectFormalityIssues, detectHedging, detectRecoveryPatterns, detectRetrievalQuality, detectSentiment, detectVerbosity, discoverAgentData, discoverAgents, discoverNetworkAgents, domainSchema, embodimentSchema, emitBehavioralEvent, estimateConfidence, evaluateOutcome, expireOldEdges, exportTrainingData, expressionSchema, extractAlpacaExamples, extractDPOPairs, extractDPOPairsWithLLM, extractRLHFExamples, extractRecommendations, fetchLeaderboard, fetchPersonality, fetchRegistry, findCrossAgentCorrelations, findEdges, findNode, findNodesByType, formatComplianceReportMarkdown, formatGapSummary, formatPolicyYaml, formatReACTReportMarkdown, gazePolicySchema, generateBehavioralPolicy, generateBenchmarkMarkdown, generateComparisonMarkdown, generateComplianceReport, generateCredential, generateGapRecommendation, generateIndexMarkdown, generateMonitoringCertificate, generateMutations, generatePrescriptions, generateProgressReport, generateReACTReport, generateSystemPrompt, gestureSchema, getAdversarialCategories, getAdversarialScenarios, getAgentBehaviors, getArchetype, getArchetypesByCategory, getBehavioralMemorySummary, getBenchmarkScenarios, getBestCorrection, getCategories, getDetector, getDimension, getEvolutionSummary, getInheritanceChain, getInterviewContext, getMarketplaceClient, getMemoryContext, getNeighbors, getPhaseContext, getPreset, getScenarioById, getTotalSignalCount, getTrajectory, getTriggersForPattern, graphStats, growthAreaSchema, growthSchema, hapticPolicySchema, hashSpec, learnIntervention, listArchetypeIds, listDetectors, listDetectorsByCategory, listDetectorsByTag, listPresets, loadAuditLog, loadBehavioralMemory, loadBenchmarkResults, loadCorpus, loadCustomDetectors, loadEvolution, loadFleetConfig, loadGraph, loadLatestBenchmark, loadMemory, loadNetworkConfig, loadRepertoire, loadSpec, loadTranscripts, loadTreatmentPlan, mergeStores, messageSchema, modalitySchema, morphologySchema, motionParametersSchema, pairAgents, parseAnthropicAPILog, parseChatGPTExport, parseClaudeExport, parseConversationLog, parseConversationLogFromString, parseJSONLLog, parseMarkdownDetector, parseOTelGenAIExport, parseOpenAIAPILog, personalitySpecSchema, physicalSafetySchema, populateFromDiagnosis, populateFromEvolve, populateFromSession, prescribeDPOPairs, processReACTResponse, prosodySchema, providerSchema, proxemicZoneSchema, publishToLeaderboard, pushToHFHub, queryCorpus, queryInterventions, querySharedKnowledge, recommendTier, recordInterventionOutcome, recordObservation, recordSelfObservation, recordSessionOutcome, registerBuiltInDetectors, registerDetector, resetMarketplaceClient, resolveInheritance, resolveOversight, runAdversarialSuite, runAssessment, runAutopilot, runBenchmark, runDiagnosis, runEvolve, runInterview, runNetwork, runPreSessionDiagnosis, runSelfAudit, runTherapySession, safetyEnvelopeSchema, saveBehavioralMemory, saveBenchmarkResult, saveCredential, saveGraph, saveMemory, saveRepertoire, saveTranscript, saveTreatmentPlan, scoreLabel, scoreTraitsFromMessages, seedBuiltInPersonalities, selectIntervention, severityMeetsThreshold, severitySchema, shareAnonymizedPatterns, startFleet, startMCPServer, startWatch, summarize, summarizeSessionForMemory, summarizeTherapy, surfaceSchema, syncAnchorSchema, syncProfileSchema, syncRuleSchema, therapyDimensionsSchema, therapyScoreLabel, transferIntervention, unregisterDetector, updateEdgeWeight, validateDetectorConfig, verifyAuditChain, verifyCredential, wrapAgent };