@danielsimonjr/memoryjs 2.5.0 → 2.7.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/README.md +1048 -1152
- package/dist/cli/index.js +446 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +574 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +167 -4
- package/dist/index.d.ts +167 -4
- package/dist/index.js +571 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -1
package/dist/index.d.cts
CHANGED
|
@@ -1557,9 +1557,9 @@ interface LowercaseData {
|
|
|
1557
1557
|
* Storage configuration options.
|
|
1558
1558
|
*/
|
|
1559
1559
|
interface StorageConfig {
|
|
1560
|
-
/** Storage type: 'jsonl' or '
|
|
1561
|
-
type: 'jsonl' | 'sqlite';
|
|
1562
|
-
/** Path to storage file */
|
|
1560
|
+
/** Storage type: 'jsonl', 'sqlite', or 'postgres' / 'postgresql' */
|
|
1561
|
+
type: 'jsonl' | 'sqlite' | 'postgres' | 'postgresql';
|
|
1562
|
+
/** Path to storage file (or Postgres connection string when type === 'postgres') */
|
|
1563
1563
|
path: string;
|
|
1564
1564
|
}
|
|
1565
1565
|
/**
|
|
@@ -8441,6 +8441,167 @@ declare class WorkerPoolManager {
|
|
|
8441
8441
|
/** Convenience function to get the WorkerPoolManager singleton. */
|
|
8442
8442
|
declare function getWorkerPoolManager(): WorkerPoolManager;
|
|
8443
8443
|
|
|
8444
|
+
/**
|
|
8445
|
+
* WorkerTaskManager — unified facade over `WorkerPoolManager` + `TaskQueue`.
|
|
8446
|
+
*
|
|
8447
|
+
* The two existing pieces compose well but require boilerplate to use
|
|
8448
|
+
* together. `WorkerPoolManager` owns named worker pools (a pool per
|
|
8449
|
+
* `workerType`); `TaskQueue` owns priority scheduling, concurrency caps,
|
|
8450
|
+
* timeouts, and cancellation. Callers want a single entry point that says
|
|
8451
|
+
* "run this method on this worker type, with this priority, return a handle
|
|
8452
|
+
* I can cancel" — and that's what this class provides.
|
|
8453
|
+
*
|
|
8454
|
+
* Design choices:
|
|
8455
|
+
* - Tasks go through the priority queue first (so high-priority tasks jump
|
|
8456
|
+
* the line) and then dispatch to the named worker pool. Cancellation
|
|
8457
|
+
* before dispatch is cheap (queue eviction); cancellation mid-execution
|
|
8458
|
+
* is best-effort because `workerpool` doesn't expose hard-cancel and
|
|
8459
|
+
* terminating a worker mid-task is destructive.
|
|
8460
|
+
* - The manager is *not* a singleton. Each `ManagerContext` (or test) gets
|
|
8461
|
+
* its own. The underlying `WorkerPoolManager` is still a singleton —
|
|
8462
|
+
* pools survive across managers and are reused.
|
|
8463
|
+
* - The agent system consumes this through one helper exported below:
|
|
8464
|
+
* `batchProcessViaWorkers(items, workerType, methodName, mapArgs)`.
|
|
8465
|
+
* Agent-side managers that want CPU parallelism call that.
|
|
8466
|
+
*
|
|
8467
|
+
* @module utils/WorkerTaskManager
|
|
8468
|
+
*/
|
|
8469
|
+
|
|
8470
|
+
/**
|
|
8471
|
+
* Options for a single task submission. `priority`/`timeout` flow to
|
|
8472
|
+
* `TaskQueue`; `poolConfig` is applied if the named pool doesn't yet exist.
|
|
8473
|
+
*/
|
|
8474
|
+
interface TaskSubmitOptions {
|
|
8475
|
+
priority?: TaskPriority;
|
|
8476
|
+
/** Per-task timeout in milliseconds; falls back to `TaskQueue` default. */
|
|
8477
|
+
timeout?: number;
|
|
8478
|
+
/** Pool config applied only on first-time creation of the named pool. */
|
|
8479
|
+
poolConfig?: WorkerPoolConfig;
|
|
8480
|
+
}
|
|
8481
|
+
/**
|
|
8482
|
+
* Handle returned by `submitWithHandle`. The `result` promise settles when
|
|
8483
|
+
* the task finishes; `cancel()` evicts a still-pending task from the queue
|
|
8484
|
+
* (returns `true`) or signals a request-cancellation flag on a running task
|
|
8485
|
+
* (returns `false` — `workerpool` itself doesn't support hard-cancel and
|
|
8486
|
+
* terminating mid-task is destructive).
|
|
8487
|
+
*/
|
|
8488
|
+
interface TaskHandle<R> {
|
|
8489
|
+
id: string;
|
|
8490
|
+
result: Promise<R>;
|
|
8491
|
+
cancel(): boolean;
|
|
8492
|
+
status(): TaskStatus;
|
|
8493
|
+
}
|
|
8494
|
+
/**
|
|
8495
|
+
* Aggregated stats across the priority queue + all worker pools the manager
|
|
8496
|
+
* has touched.
|
|
8497
|
+
*/
|
|
8498
|
+
interface WorkerTaskManagerStats {
|
|
8499
|
+
queue: QueueStats;
|
|
8500
|
+
pools: Array<{
|
|
8501
|
+
poolId: string;
|
|
8502
|
+
workers: number;
|
|
8503
|
+
activeTasks: number;
|
|
8504
|
+
pendingTasks: number;
|
|
8505
|
+
totalTasksExecuted: number;
|
|
8506
|
+
}>;
|
|
8507
|
+
}
|
|
8508
|
+
/**
|
|
8509
|
+
* Unified worker + task manager.
|
|
8510
|
+
*
|
|
8511
|
+
* @example
|
|
8512
|
+
* ```typescript
|
|
8513
|
+
* const wtm = new WorkerTaskManager();
|
|
8514
|
+
*
|
|
8515
|
+
* // One-shot async submit
|
|
8516
|
+
* const distance = await wtm.submit<number>(
|
|
8517
|
+
* 'levenshtein',
|
|
8518
|
+
* 'levenshteinDistance',
|
|
8519
|
+
* ['kitten', 'sitting'],
|
|
8520
|
+
* { priority: TaskPriority.HIGH, timeout: 5000 },
|
|
8521
|
+
* );
|
|
8522
|
+
*
|
|
8523
|
+
* // Cancellable handle
|
|
8524
|
+
* const handle = wtm.submitWithHandle<number>(
|
|
8525
|
+
* 'levenshtein', 'levenshteinDistance', ['kitten', 'sitting'],
|
|
8526
|
+
* );
|
|
8527
|
+
* setTimeout(() => handle.cancel(), 100);
|
|
8528
|
+
* const dist = await handle.result;
|
|
8529
|
+
* ```
|
|
8530
|
+
*/
|
|
8531
|
+
declare class WorkerTaskManager {
|
|
8532
|
+
private readonly queue;
|
|
8533
|
+
private readonly poolManager;
|
|
8534
|
+
private readonly touchedPoolIds;
|
|
8535
|
+
private readonly cancelledTaskIds;
|
|
8536
|
+
private readonly handleStatus;
|
|
8537
|
+
constructor(opts?: {
|
|
8538
|
+
/** Max concurrent tasks across the queue. Default: cpus − 1. */
|
|
8539
|
+
concurrency?: number;
|
|
8540
|
+
/** Default per-task timeout in ms. Default: 30s. */
|
|
8541
|
+
defaultTimeout?: number;
|
|
8542
|
+
});
|
|
8543
|
+
/**
|
|
8544
|
+
* Submit a task and await its result. Throws on failure / cancellation.
|
|
8545
|
+
*
|
|
8546
|
+
* @param workerType — routing key. Maps to a named `WorkerPoolManager` pool.
|
|
8547
|
+
* @param methodName — function name exposed by the worker module.
|
|
8548
|
+
* @param args — positional arguments passed to the worker function.
|
|
8549
|
+
*/
|
|
8550
|
+
submit<R>(workerType: string, methodName: string, args: unknown[], opts?: TaskSubmitOptions): Promise<R>;
|
|
8551
|
+
/**
|
|
8552
|
+
* Submit a task and return a handle for cancellation + status polling.
|
|
8553
|
+
*/
|
|
8554
|
+
submitWithHandle<R>(workerType: string, methodName: string, args: unknown[], opts?: TaskSubmitOptions): TaskHandle<R>;
|
|
8555
|
+
/**
|
|
8556
|
+
* Aggregated stats across the queue + touched pools.
|
|
8557
|
+
*/
|
|
8558
|
+
getStats(): WorkerTaskManagerStats;
|
|
8559
|
+
/**
|
|
8560
|
+
* Drain the queue (wait for all pending + running tasks) and return their
|
|
8561
|
+
* results in completion order. Pool workers are NOT terminated — call
|
|
8562
|
+
* `shutdown()` for that.
|
|
8563
|
+
*/
|
|
8564
|
+
drain(): Promise<TaskResult[]>;
|
|
8565
|
+
/**
|
|
8566
|
+
* Shut down the queue + the underlying WorkerPoolManager pools touched by
|
|
8567
|
+
* this instance. Idempotent. Returns after every owned worker has exited.
|
|
8568
|
+
*/
|
|
8569
|
+
shutdown(): Promise<void>;
|
|
8570
|
+
}
|
|
8571
|
+
declare function getWorkerTaskManager(): WorkerTaskManager;
|
|
8572
|
+
/**
|
|
8573
|
+
* Batch-process `items` by submitting one task per item to the named worker
|
|
8574
|
+
* pool. Tasks share the manager's priority queue so a higher-priority batch
|
|
8575
|
+
* elsewhere doesn't get blocked.
|
|
8576
|
+
*
|
|
8577
|
+
* This is the recommended pattern for agent-system batch operations that
|
|
8578
|
+
* benefit from CPU parallelism (entropy filtering across many memories,
|
|
8579
|
+
* pairwise similarity for contradiction detection, batch embedding when
|
|
8580
|
+
* the provider is local + compute-bound, etc.). For small batches
|
|
8581
|
+
* (≪ ~50 items) the serialisation overhead usually dominates the gain —
|
|
8582
|
+
* benchmark before adopting.
|
|
8583
|
+
*
|
|
8584
|
+
* @param items — input items, one per task
|
|
8585
|
+
* @param workerType — routing key for the pool
|
|
8586
|
+
* @param methodName — pool method name
|
|
8587
|
+
* @param mapArgs — turn each item into the positional args array for the worker
|
|
8588
|
+
* @param opts — priority / timeout / poolConfig
|
|
8589
|
+
* @returns Array of results in the same order as `items`. Rejects on the
|
|
8590
|
+
* first task failure (does NOT cancel siblings — those are abandoned).
|
|
8591
|
+
*
|
|
8592
|
+
* @example
|
|
8593
|
+
* ```typescript
|
|
8594
|
+
* const distances = await batchProcessViaWorkers(
|
|
8595
|
+
* names, // items: string[]
|
|
8596
|
+
* 'levenshtein', // workerType
|
|
8597
|
+
* 'levenshteinDistance', // methodName
|
|
8598
|
+
* (name) => [name, queryName], // mapArgs
|
|
8599
|
+
* { priority: TaskPriority.HIGH },
|
|
8600
|
+
* );
|
|
8601
|
+
* ```
|
|
8602
|
+
*/
|
|
8603
|
+
declare function batchProcessViaWorkers<T, R>(items: T[], workerType: string, methodName: string, mapArgs: (item: T, index: number) => unknown[], opts?: TaskSubmitOptions): Promise<R[]>;
|
|
8604
|
+
|
|
8444
8605
|
/**
|
|
8445
8606
|
* Batch Processor
|
|
8446
8607
|
*
|
|
@@ -26409,6 +26570,8 @@ declare class ManagerContext {
|
|
|
26409
26570
|
* Supported storage types:
|
|
26410
26571
|
* - 'jsonl': JSONL file-based storage (default) - simple, human-readable
|
|
26411
26572
|
* - 'sqlite': SQLite database storage (better-sqlite3 native) - indexed, ACID transactions, FTS5
|
|
26573
|
+
* - 'postgres' / 'postgresql': PostgreSQL backend - JSONB, GIN indexes,
|
|
26574
|
+
* optional peer dep on `pg`
|
|
26412
26575
|
*
|
|
26413
26576
|
* @module core/StorageFactory
|
|
26414
26577
|
*/
|
|
@@ -28572,4 +28735,4 @@ declare class LangChainMemoryAdapter {
|
|
|
28572
28735
|
clear(): Promise<void>;
|
|
28573
28736
|
}
|
|
28574
28737
|
|
|
28575
|
-
export { type ABACCondition, type ABACContext, type ABACDecision, type ABACEffect, type ABACOp, ABACPolicy, type ABACRule, APIKeyStore, type ValidationResult as APIKeyValidationResult, type AcceptDecisionResult, type AccessContext, AccessContextBuilder, type AccessPattern, type AccessStats, AccessTracker, type AccessTrackerConfig, type Action, type ActiveRetrievalConfig, ActiveRetrievalController, type AdaptiveDepthConfig, type AdaptiveReductionResult, type AdaptiveResult, type AddExclusionRuleInput, type AddHeuristicOptions, type AddObservationInput, AddObservationInputSchema, AddObservationsInputSchema, type AddTurnOptions, type AddTurnResult, type AdequacyCheck, type AgentEntity, type AgentMemoryConfig, AgentMemoryManager, type AgentObservation, type AgentRole, AnalyticsManager, type ArchiveCriteria, type ArchiveCriteriaInput, ArchiveCriteriaSchema, ArchiveManager, type ArchiveOptions, type ArchiveReflectionResult, type ArchiveResult, type ArchiveResultExtended, type ArtifactEntity, type ArtifactFilter, ArtifactManager, type ArtifactType, AsyncMutex, type AsyncMutexOptions, type AttributionMode, type AuditEntry, type AuditFilter, AuditLog, type AuditOperation, type AuditStats, type AutoLinkOptions, type AutoLinkResult, AutoLinker, type AutoSearchResult, type BM25Config, type BM25DocumentEntry, type BM25Index, BM25Search, type BackupInfo, type BackupInfoExtended, type BackupMetadata, type BackupMetadataExtended, type BackupOptions, type BackupResult, BasicSearch, BatchCreateEntitiesSchema, BatchCreateRelationsSchema, type BatchItemResult, type BatchOperation, type BatchOperationType, type BatchOptions, type BatchProcessResult, BatchProcessor, type BatchProcessorOptions, type BatchProgress, type BatchProgressCallback, type BatchResult, BatchTransaction, type BidirectionalRelation, type BooleanCacheEntry, type BooleanOpNode, type BooleanQueryNode, BooleanSearch, COMPRESSION_CONFIG, type CacheCompressionStats, type CacheStats, type CachedQueryEntry, type CausalChain, type CausalCycle, CausalReasoner, type CausalReasonerConfig, type CausalRelationType, type CentralityResult, type ClusterMethod, CognitiveLoadAnalyzer, type CognitiveLoadConfig, type CognitiveLoadMetrics, CollaborationAuditEnforcer, type CollaborationAuditEnforcerOptions, CollaborativeSynthesis, type CollaborativeSynthesisConfig, type CommonSearchFilters, type ComponentMemoryUsage, CompositeDistillationPolicy, CompressedCache, type CompressedCacheOptions, type CompressedCacheStats, type CompressedMemory, CompressionManager, type CompressionMetadata, type CompressionOptions, type CompressionQuality, type CompressionResult, type ConfirmationResult, type ConflictInfo, ConflictResolver, type ConflictResolverConfig, type ConflictStrategy, type ConnectedComponentsResult, type ConsolidateOptions, type ConsolidationAction, type ConsolidationCycleResult, ConsolidationPipeline, type ConsolidationPipelineConfig, type ConsolidationResult, type ConsolidationRule, ConsolidationScheduler, type ConsolidationSchedulerConfig, type ConsolidationTrigger, type ContextPackage, type ContextProfile, ContextProfileManager, type ContextRetrievalOptions, ContextWindowManager, type ContextWindowManagerConfig, type Contradiction$1 as Contradiction, ContradictionDetector, type CreateArtifactOptions, type CreateEntityInput, CreateEntitySchema, type CreateEpisodeOptions, type CreateMemoryOptions, type CreatePlanOptions, type CreateRelationInput, CreateRelationSchema, type CreateWorkThreadOptions, CycleDetectedError, DEFAULT_BASE_DIR, DEFAULT_BM25_CONFIG, DEFAULT_CAUSAL_RELATION_TYPES, DEFAULT_DUPLICATE_THRESHOLD, DEFAULT_EMBEDDING_CACHE_OPTIONS, DEFAULT_FILE_NAMES, DEFAULT_HYBRID_WEIGHTS, DEFAULT_INDEXER_OPTIONS, DEFAULT_PERMISSION_MATRIX, DEFAULT_PII_PATTERNS, DEFAULT_SCORER_WEIGHTS, DOCUMENT_PREFIX, type DateRange, DateRangeSchema, type DecayCycleResult, DecayEngine, type DecayEngineConfig, type DecayOperationOptions, type DecayOptions, type DecayResult, DecayScheduler, type DecaySchedulerConfig, type DecisionEntityOptions, type DecisionInput, DecisionManager, type DecisionRule, type DedupTier, type DeduplicationOptions, DefaultDistillationPolicy, type DeleteObservationInput, DeleteObservationInputSchema, DeleteObservationsInputSchema, DeleteRelationsSchema, type DistillOptions, type DistillationConfig, DistillationPipeline, type DistillationResult, type DistillationStats, type DistilledLesson, type DistilledMemory, type DocumentVector, type DreamCycleResult, DreamEngine, type DreamEngineCallbacks, type DreamEngineConfig, type DreamPhaseConfig, type DreamPhaseResult, type DuplicateCheckResult, DuplicateEntityError, type DuplicateObservationGroup, type DuplicateObservationOccurrence, type DuplicatePair, ENTITY_STATUS_TRANSITIONS, ENV_VARS, EarlyTerminationManager, type EarlyTerminationOptions, type EarlyTerminationResult, EmbeddingCache, type EmbeddingCacheOptions, type EmbeddingCacheStats, type EmbeddingConfig, type EmbeddingMode, type EmbeddingProgressCallback, type EmbeddingService, type EndSessionResult, type Entity, type EntityCreatedEvent, type EntityDeletedEvent, type EntityInput, EntityManager, type EntityManagerOptions, EntityNamesSchema, EntityNotFoundError, type EntityRuleResult, EntitySchema, type EntityStatus, type EntityUpdatedEvent, type EntityValidationIssue, type EntityValidationResult, type EntityValidationRule, EntityValidator, type EntityValidatorConfig, type EntityWithContext, type EntropyFilterConfig, EntropyFilterStage, type EpisodicMemoryConfig, type EpisodicMemoryEntity, EpisodicMemoryManager, EpisodicRelations, ErrorCode, type ErrorOptions, type ExcludedEntity, type ExclusionCheckResult, ExclusionManager, type Experience, ExperienceExtractor, type ExperienceExtractorConfig, type ExperienceType, type ExplainedSearchResult, ExportError, type ExportFilter, type ExportFilterInput, ExportFilterSchema, type ExportFormat, ExportFormatSchema, type ExportOptions, type ExportResult, type ExtendedExportFormatInput, ExtendedExportFormatSchema, type ExtendedPoolStats, type ExtendedQueryCostEstimate, type ExtractedEntity, type ExtractedFact, FILE_EXTENSIONS, FILE_SUFFIXES, type FactExtractionOptions, type FactExtractionResult, FactExtractor, FailureDistillation, type FailureDistillationConfig, type FailureDistillationResult, type FailureEntityOptions, type GetAllOptions as FailureGetAllOptions, type FailureInput, type LookupOptions as FailureLookupOptions, FailureManager, type FailureManagerConfig, type FieldNode, FileOperationError, type FlushResult, type ForContextOptions, type ForgetOptions, type ForgetResult, FreshnessManager, type FreshnessManagerConfig, type FreshnessReport, type FuzzyCacheKey, FuzzySearch, type FuzzySearchOptions, GRAPH_LIMITS, type GetWeightedOptions, GovernanceManager, type GovernanceOperationOptions, type GovernancePolicy, GovernanceTransaction, type Granularity, type GraphCompressionResult, type GraphEvent, type GraphEventBase, GraphEventEmitter, type GraphEventListener, type GraphEventMap, type GraphEventType, type GraphLoadedEvent, type GraphProjection, type GraphSavedEvent, type GraphStats, GraphStorage, GraphTraversal, type GroupMembership, type GroupingResult, type HeuristicConflict, HeuristicExtractionStage, type HeuristicExtractionStageConfig, type HeuristicGuideline, HeuristicManager, type HeuristicMatch, type HeuristicUpdateResult, HierarchyManager, HybridScorer, type HybridScorerOptions, HybridSearchManager, type HybridSearchOptions, type HybridSearchResult, type HybridWeights, type IDistillationPolicy, type IGraphStorage, IMPORTANCE_RANGE, type IMemoryBackend, IOManager, type ISummarizationProvider, type IVectorStore, ImportError, type ImportFormat, type ImportFormatInput, ImportFormatSchema, type ImportResult, ImportanceScorer, type ImportanceScorerConfig, InMemoryBackend, InMemoryVectorStore, IncrementalIndexer, type IncrementalIndexerOptions, type IndexMemoryUsage, type IndexOperation, type IndexOperationType, type IngestInput, type IngestOptions, type IngestResult, InsufficientEntitiesError, InvalidImportanceError, type IssueOptions, type IssueResult, type JSONValue, type JsonSchema, type KeyRecord, KeywordExtractor, type KnowledgeGraph, KnowledgeGraphError, ManagerContext as KnowledgeGraphManager, type LLMProvider, LLMQueryPlanner, type LLMQueryPlannerConfig, LLMSearchExecutor, type LLMSearchExecutorOptions, LOG_PREFIXES, LangChainMemoryAdapter, type LayerRecommendationOptions, type LayerTiming, type LexicalSearchResult, type ListDecisionsOptions, type ListPlansOptions, type ListReflectionsOptions, LocalEmbeddingService, type LogLevel, type LongRunningOperationOptions, LowEntropyContentError, LowercaseCache, type LowercaseData, MCPToolObserverAdapter, MEMORY_TYPES, ManagerContext, type ManagerContextOptions, type MatchedTerm, type MemoryAcquisitionMethod, type MemoryAlert, type MemoryChangeCallback, MemoryEngine, type MemoryEngineConfig, type MemoryEngineEventName, MemoryFormatter, type MemoryFormatterConfig, type MemoryMergeStrategy, MemoryMonitor, type MemorySource, type MemoryThresholds, type MemoryTurn, type MemoryType, type MemoryUsageStats, type MemoryValidationIssue, type MemoryValidationResult, MemoryValidator, type MemoryValidatorConfig, type Contradiction as MemoryValidatorContradiction, type MemoryVisibility, type MergeResult, type MergeStrategy, type MergeStrategyInput, MergeStrategySchema, MockEmbeddingService, type MultiAgentConfig, MultiAgentMemoryManager, NGramIndex, type NGramIndexStats, NameIndex, NoOpDistillationPolicy, type NormalizationOptions, type NormalizationResult, type ObservableDataModelAdapterOptions, type ObservableDataModelShape, type ObservationAddedEvent, type ObservationDedupFilter, ObservationDedupManager, type ObservationDedupManagerConfig, ObservationDedupReportStage, type ObservationDedupReportStageConfig, type ObservationDeletedEvent, ObservationManager, ObservationNormalizer, type ObservationScore, type ObservationSource, ObserverPipeline, type ObserverPipelineOptions, type ObserverPipelineStats, OpenAIEmbeddingService, OperationCancelledError, type OperationResult, OperationType, OptimizedInvertedIndex, OptionalEntityNamesSchema, OptionalTagsSchema, type Outcome, PROCEDURE_ENTITY_TYPE, type PaginatedCacheEntry, type PaginatedResult, type PaginationParams, ParallelSearchExecutor, type ParallelSearchOptions, type ParallelSearchResult, type ParsePaginationOptions, type ParsedTemporalRange, type PathResult, PatternDetector, type PatternResult, type Permission, type PermissionMatrix, type PermissionMatrixRow, type PhaseDefinition, type PhraseNode, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PipelineStage, PlanManager, type PlanManagerConfig, type PoolEventCallback, type PostingListResult, type PreparedEntity, type ProceduralMemoryEntity, type ProcedureInvoker, ProcedureManager, type ProcedureManagerConfig, ProcedureStore, type ProfileConfig, type ProfileEntity, ProfileManager, type ProfileManagerConfig, type ProfileOptions, type ProfileResponse, type ProgressCallback, type ProgressInfo, type ProgressInfoCallback, type ProgressOptions, ProjectContextManager, type ProjectContextManagerConfig, type ProjectContextUpsertInput, type PromotionCriteria, type PromotionMarkOptions, type PromotionResult, type ProspectiveMemoryConfig, ProspectiveMemoryManager, ProspectivePromotionStage, type ProximityMatch, type ProximityMatchLocation, type ProximityNode, ProximitySearch, type PushSubGoalOptions, QUERY_LIMITS, QUERY_PREFIX, type QuantizationParams, type QuantizedSearchResult, QuantizedVectorStore, type QuantizedVectorStoreOptions, type QuantizedVectorStoreStats, type QueryAnalysis, QueryAnalyzer, type QueryCostEstimate, QueryCostEstimator, type QueryCostEstimatorOptions, type QueryLogEntry, QueryLogger, type QueryLoggerConfig, type QueryNode, QueryParser, type QueryPlan, QueryPlanCache, type QueryPlanCacheOptions, type QueryPlanCacheStats, QueryPlanner, QueryRewriter, type QueryStage, type QueryTrace, QueryTraceBuilder, type QueueStats, RankedSearch, type RateLimitVerdict, RateLimiter, type RateLimiterConfig, RbacMiddleware, type RbacMiddlewareOptions, type RbacPolicy, ReadOnlyMemoryGraphDataError, type ReadonlyKnowledgeGraph, type RecordOutcomeInput, type RedactionResult, type RedactionStats, type RedundancyGroup, RefConflictError, type RefEntry, RefIndex, type RefIndexStats, RefNotFoundError, type RefinementHistoryEntry, type ReflectionEntityOptions, type ReflectionInput, ReflectionManager$1 as ReflectionManager, ReflectionManager as ReflectionMemoryManager, type ReflectionManagerConfig as ReflectionMemoryManagerConfig, type ReflectionOptions, type ReflectionResult, ReflectionStage, type ReflectionStageConfig, type ReinforcementOptions, type RejectDecisionResult, type Relation, RelationBuilder, type RelationCreatedEvent, type RelationDeletedEvent, RelationIndex, type RelationInput, RelationManager, RelationNotFoundError, type RelationProperties, RelationSchema, type RelationValidationError, type RelationValidationResult, type RelationValidationWarning, type RelevanceOptions, type ResolutionResult, type ResourcePermissionOverrides, type ResourceType, type RestHandler, type RestMethod, type RestRequest, type RestResponse, RestRouter, type RestoreResult, type Result, type RetrievalContext, type RetrievalDecision, type RetrievalRound, type RetrieveContextOptions, type RewriteResult, type Role, type RoleAssignment, RoleAssignmentStore, type RoleAssignmentStoreOptions, type RoleProfile, type RouteDefinition, RowLevelFilter, type RowPredicate, type Rule, type RuleConditions, type RuleEvaluationResult, RuleEvaluator, SEARCH_LIMITS, SIMILARITY_WEIGHTS, SQLiteBackend, type SQLiteBackendOptions, SQLiteStorage, type SQLiteStorageWithEmbeddings, SQLiteVectorStore, STOPWORDS, STREAMING_CONFIG, type SalienceComponents, type SalienceContext, SalienceEngine, type SalienceEngineConfig, type SalienceWeights, type SavedSearch, type SavedSearchInput, SavedSearchInputSchema, SavedSearchManager, type SavedSearchUpdateInput, SavedSearchUpdateSchema, type ScheduleOptions, SchemaValidator, type ScoreBoost, type ScoreOptions, type ScoredEntity, type ScoredKeyword, type ScoredResult, type ScoringSignal, SearchCache, type SearchExplanation, SearchFilterChain, type SearchFilters, type SearchFunction, type SearchLayer, SearchManager, type SearchMethod, type SearchQuery, SearchQuerySchema, type SearchResult, SearchSuggestions, SemanticForget, type SemanticForgetOptions, type SemanticForgetResult, type SemanticIndexOptions, type SemanticLayerResult, type SemanticMemoryEntity, SemanticSearch, type SemanticSearchResult, type SessionCheckpointData, SessionCheckpointManager, type SessionConfig, type SessionEntity, type SessionHistoryOptions, SessionManager, type SessionMemoryFilter, type SessionOutcome, SessionQueryBuilder, type SessionSearchOptions, type SessionStatus, SpellChecker, type SpellCheckerConfig, type SpellSuggestion, type SpilloverResult, type SplitOptions, type SplitResult, type StageResult, type StartSessionOptions, StepSequencer, type StorageConfig, type StreamResult, StreamingExporter, type StructuredQuery, type SubQuery, type SuggestOptions, type SuggestToolOptions, type SummarizationConfig, type SummarizationResult, SummarizationService, type SupersedeDecisionResult, type SymbolicFilters, type SymbolicResult, SymbolicSearch, type SymbolicSearchResult, type SynthesisResult, TFIDFEventSync, type TFIDFIndex, TFIDFIndexManager, type TagAlias, type TagAliasInput, TagAliasSchema, TagManager, type Task, type TaskBatchOptions, TaskPriority, TaskQueue, type TaskResult, TaskStatus, type TemporalFilterField, type TemporalFocus, TemporalQueryParser, type TemporalRange, type TemporalRelation, TemporalSearch, type TemporalSearchOptions, type TermNode, type TimelineOptions, type TokenBreakdown, type TokenEstimationOptions, type TokenizedEntity, ToolAffordanceManager, type ToolAffordanceManagerConfig, type ToolAffordanceStats, type ToolCallEvent, ToolCallObserver, type ToolResponse, type ToolSuggestion, type Trajectory, type TrajectoryCluster, TrajectoryCompressor, type TrajectoryCompressorConfig, type TrajectoryMergeStrategy, TransactionManager, type TransactionOperation, type TransactionResult, type TransitionEvent, type TransitionFilter, TransitionLedger, type TraversalOptions, type TraversalResult, TypeIndex, type UpdateEntityInput, UpdateEntitySchema, type ValidatedPagination, ValidationError, type ValidationIssue, type ValidationReport, type ValidationResult$1 as ValidationResult, type ValidationWarning, type VectorSearchResult, VisibilityResolver, type VisualizeOptions, type WakeUpOptions, type WakeUpResult, type WeightedRelation, type WeightedTurn, type WildcardNode, type WorkThread, type WorkThreadFilter, WorkThreadManager, type WorkThreadStatus, type WorkerPoolConfig, WorkerPoolManager, type WorkingMemoryConfig, type WorkingMemoryEntity, WorkingMemoryManager, type WorkingMemoryOptions, WorldModelManager, type WorldModelManagerOptions, type WorldStateChange, type WorldStateEntity, WorldStateSnapshot, addUniqueTags, all, allRelationsValidMetadata, applyPagination, asWarning, batchProcess, buildTFVector, calculateIDF, calculateIDFFromTokenSets, calculateTF, calculateTFIDF, calculateTextSimilarity, checkCancellation, chunkArray, cleanupAllCaches, clearAllSearchCaches, compress, compressFile, compressToBase64, computeEntropy, cosineSimilarity, createCustomProfile, createDetailedProgressReporter, createEmbeddingService, createMetadata, createObservableDataModelFromGraph, createProgress, createProgressInfo, createProgressReporter, createStorage, createStorageFromPath, createThrottledProgress, createUncompressedMetadata, createVectorStore, custom, customSync, debounce, decodeProcedure, decompress, decompressFile, decompressFromBase64, defaultMemoryPath, email, ensureMemoryFilePath, entityExists, entityPassesFilters, entityToText, err, escapeCsvFormula, executeWithPhases, extractToolName, filterByCreatedDate, filterByEntityType, filterByImportance, filterByModifiedDate, filterByTags, filterParallel, findEntitiesByNames, findEntityByName, fnv1aHash, formatErrorResponse, formatRawResponse, formatTextResponse, formatToolResponse, formatZodErrors, generateSuggestions, getAllCacheStats, getCompressionRatio, getCurrentTimestamp, getEntityIndex, getEntityNameSet, getPaginationMeta, getPoolStats, getQuickHint, getRoleProfile, getWorkerPoolManager, globalMemoryMonitor, groupEntitiesByType, hasAllTags, hasBrotliExtension, hasConfidence, hasMatchingTag, isAgentEntity, isArtifactEntity, isBidirectionalRelation, isCurrentlyValid, isEpisodicMemory, isErr, isOk, isPrefixPattern, isProceduralMemory, isProfileEntity, isSemanticMemory, isSessionEntity, isTemporalRelation, isValidISODate, isWeightedRelation, isWithinDateRange, isWithinImportanceRange, isWorkingMemory, isoDate, l2Normalize, levenshteinDistance, listRoleProfiles, loadConfigFromEnv, logger, mapOk, mapParallel, matchesPhrase, matchesPrefix, max, maxItems, maxLength, mergeConfig, min, minItems, minLength, normalizeTag, normalizeTags, ok, oneOf, paginate, paginateArray, parallelFilter, parallelLimit, parallelMap, parseDateRange, parsePaginationParams, passesEntropyFilter, pattern, permissionsForRole, processBatch, processBatchesWithProgress, processWithRetry, range, rateLimitedProcess, removeEntityByName, removeTags, required, resolveRoleProfile, sanitizeObject, searchCaches, shutdownParallelUtils, cosineSimilarity$1 as textCosineSimilarity, tokenize as textTokenize, throttle, tokenize$1 as tokenize, touchEntity, typeOf, unwrap, unwrapOr, url, validateArrayWithSchema, validateConfig, validateEntity, validateFilePath, validateImportance, validatePagination, validateRelation, validateRelationMetadata, validateRelationsMetadata, validateSafe, validateTags, validateWithSchema, when, withRetry };
|
|
28738
|
+
export { type ABACCondition, type ABACContext, type ABACDecision, type ABACEffect, type ABACOp, ABACPolicy, type ABACRule, APIKeyStore, type ValidationResult as APIKeyValidationResult, type AcceptDecisionResult, type AccessContext, AccessContextBuilder, type AccessPattern, type AccessStats, AccessTracker, type AccessTrackerConfig, type Action, type ActiveRetrievalConfig, ActiveRetrievalController, type AdaptiveDepthConfig, type AdaptiveReductionResult, type AdaptiveResult, type AddExclusionRuleInput, type AddHeuristicOptions, type AddObservationInput, AddObservationInputSchema, AddObservationsInputSchema, type AddTurnOptions, type AddTurnResult, type AdequacyCheck, type AgentEntity, type AgentMemoryConfig, AgentMemoryManager, type AgentObservation, type AgentRole, AnalyticsManager, type ArchiveCriteria, type ArchiveCriteriaInput, ArchiveCriteriaSchema, ArchiveManager, type ArchiveOptions, type ArchiveReflectionResult, type ArchiveResult, type ArchiveResultExtended, type ArtifactEntity, type ArtifactFilter, ArtifactManager, type ArtifactType, AsyncMutex, type AsyncMutexOptions, type AttributionMode, type AuditEntry, type AuditFilter, AuditLog, type AuditOperation, type AuditStats, type AutoLinkOptions, type AutoLinkResult, AutoLinker, type AutoSearchResult, type BM25Config, type BM25DocumentEntry, type BM25Index, BM25Search, type BackupInfo, type BackupInfoExtended, type BackupMetadata, type BackupMetadataExtended, type BackupOptions, type BackupResult, BasicSearch, BatchCreateEntitiesSchema, BatchCreateRelationsSchema, type BatchItemResult, type BatchOperation, type BatchOperationType, type BatchOptions, type BatchProcessResult, BatchProcessor, type BatchProcessorOptions, type BatchProgress, type BatchProgressCallback, type BatchResult, BatchTransaction, type BidirectionalRelation, type BooleanCacheEntry, type BooleanOpNode, type BooleanQueryNode, BooleanSearch, COMPRESSION_CONFIG, type CacheCompressionStats, type CacheStats, type CachedQueryEntry, type CausalChain, type CausalCycle, CausalReasoner, type CausalReasonerConfig, type CausalRelationType, type CentralityResult, type ClusterMethod, CognitiveLoadAnalyzer, type CognitiveLoadConfig, type CognitiveLoadMetrics, CollaborationAuditEnforcer, type CollaborationAuditEnforcerOptions, CollaborativeSynthesis, type CollaborativeSynthesisConfig, type CommonSearchFilters, type ComponentMemoryUsage, CompositeDistillationPolicy, CompressedCache, type CompressedCacheOptions, type CompressedCacheStats, type CompressedMemory, CompressionManager, type CompressionMetadata, type CompressionOptions, type CompressionQuality, type CompressionResult, type ConfirmationResult, type ConflictInfo, ConflictResolver, type ConflictResolverConfig, type ConflictStrategy, type ConnectedComponentsResult, type ConsolidateOptions, type ConsolidationAction, type ConsolidationCycleResult, ConsolidationPipeline, type ConsolidationPipelineConfig, type ConsolidationResult, type ConsolidationRule, ConsolidationScheduler, type ConsolidationSchedulerConfig, type ConsolidationTrigger, type ContextPackage, type ContextProfile, ContextProfileManager, type ContextRetrievalOptions, ContextWindowManager, type ContextWindowManagerConfig, type Contradiction$1 as Contradiction, ContradictionDetector, type CreateArtifactOptions, type CreateEntityInput, CreateEntitySchema, type CreateEpisodeOptions, type CreateMemoryOptions, type CreatePlanOptions, type CreateRelationInput, CreateRelationSchema, type CreateWorkThreadOptions, CycleDetectedError, DEFAULT_BASE_DIR, DEFAULT_BM25_CONFIG, DEFAULT_CAUSAL_RELATION_TYPES, DEFAULT_DUPLICATE_THRESHOLD, DEFAULT_EMBEDDING_CACHE_OPTIONS, DEFAULT_FILE_NAMES, DEFAULT_HYBRID_WEIGHTS, DEFAULT_INDEXER_OPTIONS, DEFAULT_PERMISSION_MATRIX, DEFAULT_PII_PATTERNS, DEFAULT_SCORER_WEIGHTS, DOCUMENT_PREFIX, type DateRange, DateRangeSchema, type DecayCycleResult, DecayEngine, type DecayEngineConfig, type DecayOperationOptions, type DecayOptions, type DecayResult, DecayScheduler, type DecaySchedulerConfig, type DecisionEntityOptions, type DecisionInput, DecisionManager, type DecisionRule, type DedupTier, type DeduplicationOptions, DefaultDistillationPolicy, type DeleteObservationInput, DeleteObservationInputSchema, DeleteObservationsInputSchema, DeleteRelationsSchema, type DistillOptions, type DistillationConfig, DistillationPipeline, type DistillationResult, type DistillationStats, type DistilledLesson, type DistilledMemory, type DocumentVector, type DreamCycleResult, DreamEngine, type DreamEngineCallbacks, type DreamEngineConfig, type DreamPhaseConfig, type DreamPhaseResult, type DuplicateCheckResult, DuplicateEntityError, type DuplicateObservationGroup, type DuplicateObservationOccurrence, type DuplicatePair, ENTITY_STATUS_TRANSITIONS, ENV_VARS, EarlyTerminationManager, type EarlyTerminationOptions, type EarlyTerminationResult, EmbeddingCache, type EmbeddingCacheOptions, type EmbeddingCacheStats, type EmbeddingConfig, type EmbeddingMode, type EmbeddingProgressCallback, type EmbeddingService, type EndSessionResult, type Entity, type EntityCreatedEvent, type EntityDeletedEvent, type EntityInput, EntityManager, type EntityManagerOptions, EntityNamesSchema, EntityNotFoundError, type EntityRuleResult, EntitySchema, type EntityStatus, type EntityUpdatedEvent, type EntityValidationIssue, type EntityValidationResult, type EntityValidationRule, EntityValidator, type EntityValidatorConfig, type EntityWithContext, type EntropyFilterConfig, EntropyFilterStage, type EpisodicMemoryConfig, type EpisodicMemoryEntity, EpisodicMemoryManager, EpisodicRelations, ErrorCode, type ErrorOptions, type ExcludedEntity, type ExclusionCheckResult, ExclusionManager, type Experience, ExperienceExtractor, type ExperienceExtractorConfig, type ExperienceType, type ExplainedSearchResult, ExportError, type ExportFilter, type ExportFilterInput, ExportFilterSchema, type ExportFormat, ExportFormatSchema, type ExportOptions, type ExportResult, type ExtendedExportFormatInput, ExtendedExportFormatSchema, type ExtendedPoolStats, type ExtendedQueryCostEstimate, type ExtractedEntity, type ExtractedFact, FILE_EXTENSIONS, FILE_SUFFIXES, type FactExtractionOptions, type FactExtractionResult, FactExtractor, FailureDistillation, type FailureDistillationConfig, type FailureDistillationResult, type FailureEntityOptions, type GetAllOptions as FailureGetAllOptions, type FailureInput, type LookupOptions as FailureLookupOptions, FailureManager, type FailureManagerConfig, type FieldNode, FileOperationError, type FlushResult, type ForContextOptions, type ForgetOptions, type ForgetResult, FreshnessManager, type FreshnessManagerConfig, type FreshnessReport, type FuzzyCacheKey, FuzzySearch, type FuzzySearchOptions, GRAPH_LIMITS, type GetWeightedOptions, GovernanceManager, type GovernanceOperationOptions, type GovernancePolicy, GovernanceTransaction, type Granularity, type GraphCompressionResult, type GraphEvent, type GraphEventBase, GraphEventEmitter, type GraphEventListener, type GraphEventMap, type GraphEventType, type GraphLoadedEvent, type GraphProjection, type GraphSavedEvent, type GraphStats, GraphStorage, GraphTraversal, type GroupMembership, type GroupingResult, type HeuristicConflict, HeuristicExtractionStage, type HeuristicExtractionStageConfig, type HeuristicGuideline, HeuristicManager, type HeuristicMatch, type HeuristicUpdateResult, HierarchyManager, HybridScorer, type HybridScorerOptions, HybridSearchManager, type HybridSearchOptions, type HybridSearchResult, type HybridWeights, type IDistillationPolicy, type IGraphStorage, IMPORTANCE_RANGE, type IMemoryBackend, IOManager, type ISummarizationProvider, type IVectorStore, ImportError, type ImportFormat, type ImportFormatInput, ImportFormatSchema, type ImportResult, ImportanceScorer, type ImportanceScorerConfig, InMemoryBackend, InMemoryVectorStore, IncrementalIndexer, type IncrementalIndexerOptions, type IndexMemoryUsage, type IndexOperation, type IndexOperationType, type IngestInput, type IngestOptions, type IngestResult, InsufficientEntitiesError, InvalidImportanceError, type IssueOptions, type IssueResult, type JSONValue, type JsonSchema, type KeyRecord, KeywordExtractor, type KnowledgeGraph, KnowledgeGraphError, ManagerContext as KnowledgeGraphManager, type LLMProvider, LLMQueryPlanner, type LLMQueryPlannerConfig, LLMSearchExecutor, type LLMSearchExecutorOptions, LOG_PREFIXES, LangChainMemoryAdapter, type LayerRecommendationOptions, type LayerTiming, type LexicalSearchResult, type ListDecisionsOptions, type ListPlansOptions, type ListReflectionsOptions, LocalEmbeddingService, type LogLevel, type LongRunningOperationOptions, LowEntropyContentError, LowercaseCache, type LowercaseData, MCPToolObserverAdapter, MEMORY_TYPES, ManagerContext, type ManagerContextOptions, type MatchedTerm, type MemoryAcquisitionMethod, type MemoryAlert, type MemoryChangeCallback, MemoryEngine, type MemoryEngineConfig, type MemoryEngineEventName, MemoryFormatter, type MemoryFormatterConfig, type MemoryMergeStrategy, MemoryMonitor, type MemorySource, type MemoryThresholds, type MemoryTurn, type MemoryType, type MemoryUsageStats, type MemoryValidationIssue, type MemoryValidationResult, MemoryValidator, type MemoryValidatorConfig, type Contradiction as MemoryValidatorContradiction, type MemoryVisibility, type MergeResult, type MergeStrategy, type MergeStrategyInput, MergeStrategySchema, MockEmbeddingService, type MultiAgentConfig, MultiAgentMemoryManager, NGramIndex, type NGramIndexStats, NameIndex, NoOpDistillationPolicy, type NormalizationOptions, type NormalizationResult, type ObservableDataModelAdapterOptions, type ObservableDataModelShape, type ObservationAddedEvent, type ObservationDedupFilter, ObservationDedupManager, type ObservationDedupManagerConfig, ObservationDedupReportStage, type ObservationDedupReportStageConfig, type ObservationDeletedEvent, ObservationManager, ObservationNormalizer, type ObservationScore, type ObservationSource, ObserverPipeline, type ObserverPipelineOptions, type ObserverPipelineStats, OpenAIEmbeddingService, OperationCancelledError, type OperationResult, OperationType, OptimizedInvertedIndex, OptionalEntityNamesSchema, OptionalTagsSchema, type Outcome, PROCEDURE_ENTITY_TYPE, type PaginatedCacheEntry, type PaginatedResult, type PaginationParams, ParallelSearchExecutor, type ParallelSearchOptions, type ParallelSearchResult, type ParsePaginationOptions, type ParsedTemporalRange, type PathResult, PatternDetector, type PatternResult, type Permission, type PermissionMatrix, type PermissionMatrixRow, type PhaseDefinition, type PhraseNode, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PipelineStage, PlanManager, type PlanManagerConfig, type PoolEventCallback, type PostingListResult, type PreparedEntity, type ProceduralMemoryEntity, type ProcedureInvoker, ProcedureManager, type ProcedureManagerConfig, ProcedureStore, type ProfileConfig, type ProfileEntity, ProfileManager, type ProfileManagerConfig, type ProfileOptions, type ProfileResponse, type ProgressCallback, type ProgressInfo, type ProgressInfoCallback, type ProgressOptions, ProjectContextManager, type ProjectContextManagerConfig, type ProjectContextUpsertInput, type PromotionCriteria, type PromotionMarkOptions, type PromotionResult, type ProspectiveMemoryConfig, ProspectiveMemoryManager, ProspectivePromotionStage, type ProximityMatch, type ProximityMatchLocation, type ProximityNode, ProximitySearch, type PushSubGoalOptions, QUERY_LIMITS, QUERY_PREFIX, type QuantizationParams, type QuantizedSearchResult, QuantizedVectorStore, type QuantizedVectorStoreOptions, type QuantizedVectorStoreStats, type QueryAnalysis, QueryAnalyzer, type QueryCostEstimate, QueryCostEstimator, type QueryCostEstimatorOptions, type QueryLogEntry, QueryLogger, type QueryLoggerConfig, type QueryNode, QueryParser, type QueryPlan, QueryPlanCache, type QueryPlanCacheOptions, type QueryPlanCacheStats, QueryPlanner, QueryRewriter, type QueryStage, type QueryTrace, QueryTraceBuilder, type QueueStats, RankedSearch, type RateLimitVerdict, RateLimiter, type RateLimiterConfig, RbacMiddleware, type RbacMiddlewareOptions, type RbacPolicy, ReadOnlyMemoryGraphDataError, type ReadonlyKnowledgeGraph, type RecordOutcomeInput, type RedactionResult, type RedactionStats, type RedundancyGroup, RefConflictError, type RefEntry, RefIndex, type RefIndexStats, RefNotFoundError, type RefinementHistoryEntry, type ReflectionEntityOptions, type ReflectionInput, ReflectionManager$1 as ReflectionManager, ReflectionManager as ReflectionMemoryManager, type ReflectionManagerConfig as ReflectionMemoryManagerConfig, type ReflectionOptions, type ReflectionResult, ReflectionStage, type ReflectionStageConfig, type ReinforcementOptions, type RejectDecisionResult, type Relation, RelationBuilder, type RelationCreatedEvent, type RelationDeletedEvent, RelationIndex, type RelationInput, RelationManager, RelationNotFoundError, type RelationProperties, RelationSchema, type RelationValidationError, type RelationValidationResult, type RelationValidationWarning, type RelevanceOptions, type ResolutionResult, type ResourcePermissionOverrides, type ResourceType, type RestHandler, type RestMethod, type RestRequest, type RestResponse, RestRouter, type RestoreResult, type Result, type RetrievalContext, type RetrievalDecision, type RetrievalRound, type RetrieveContextOptions, type RewriteResult, type Role, type RoleAssignment, RoleAssignmentStore, type RoleAssignmentStoreOptions, type RoleProfile, type RouteDefinition, RowLevelFilter, type RowPredicate, type Rule, type RuleConditions, type RuleEvaluationResult, RuleEvaluator, SEARCH_LIMITS, SIMILARITY_WEIGHTS, SQLiteBackend, type SQLiteBackendOptions, SQLiteStorage, type SQLiteStorageWithEmbeddings, SQLiteVectorStore, STOPWORDS, STREAMING_CONFIG, type SalienceComponents, type SalienceContext, SalienceEngine, type SalienceEngineConfig, type SalienceWeights, type SavedSearch, type SavedSearchInput, SavedSearchInputSchema, SavedSearchManager, type SavedSearchUpdateInput, SavedSearchUpdateSchema, type ScheduleOptions, SchemaValidator, type ScoreBoost, type ScoreOptions, type ScoredEntity, type ScoredKeyword, type ScoredResult, type ScoringSignal, SearchCache, type SearchExplanation, SearchFilterChain, type SearchFilters, type SearchFunction, type SearchLayer, SearchManager, type SearchMethod, type SearchQuery, SearchQuerySchema, type SearchResult, SearchSuggestions, SemanticForget, type SemanticForgetOptions, type SemanticForgetResult, type SemanticIndexOptions, type SemanticLayerResult, type SemanticMemoryEntity, SemanticSearch, type SemanticSearchResult, type SessionCheckpointData, SessionCheckpointManager, type SessionConfig, type SessionEntity, type SessionHistoryOptions, SessionManager, type SessionMemoryFilter, type SessionOutcome, SessionQueryBuilder, type SessionSearchOptions, type SessionStatus, SpellChecker, type SpellCheckerConfig, type SpellSuggestion, type SpilloverResult, type SplitOptions, type SplitResult, type StageResult, type StartSessionOptions, StepSequencer, type StorageConfig, type StreamResult, StreamingExporter, type StructuredQuery, type SubQuery, type SuggestOptions, type SuggestToolOptions, type SummarizationConfig, type SummarizationResult, SummarizationService, type SupersedeDecisionResult, type SymbolicFilters, type SymbolicResult, SymbolicSearch, type SymbolicSearchResult, type SynthesisResult, TFIDFEventSync, type TFIDFIndex, TFIDFIndexManager, type TagAlias, type TagAliasInput, TagAliasSchema, TagManager, type Task, type TaskBatchOptions, type TaskHandle, TaskPriority, TaskQueue, type TaskResult, TaskStatus, type TaskSubmitOptions, type TemporalFilterField, type TemporalFocus, TemporalQueryParser, type TemporalRange, type TemporalRelation, TemporalSearch, type TemporalSearchOptions, type TermNode, type TimelineOptions, type TokenBreakdown, type TokenEstimationOptions, type TokenizedEntity, ToolAffordanceManager, type ToolAffordanceManagerConfig, type ToolAffordanceStats, type ToolCallEvent, ToolCallObserver, type ToolResponse, type ToolSuggestion, type Trajectory, type TrajectoryCluster, TrajectoryCompressor, type TrajectoryCompressorConfig, type TrajectoryMergeStrategy, TransactionManager, type TransactionOperation, type TransactionResult, type TransitionEvent, type TransitionFilter, TransitionLedger, type TraversalOptions, type TraversalResult, TypeIndex, type UpdateEntityInput, UpdateEntitySchema, type ValidatedPagination, ValidationError, type ValidationIssue, type ValidationReport, type ValidationResult$1 as ValidationResult, type ValidationWarning, type VectorSearchResult, VisibilityResolver, type VisualizeOptions, type WakeUpOptions, type WakeUpResult, type WeightedRelation, type WeightedTurn, type WildcardNode, type WorkThread, type WorkThreadFilter, WorkThreadManager, type WorkThreadStatus, type WorkerPoolConfig, WorkerPoolManager, WorkerTaskManager, type WorkerTaskManagerStats, type WorkingMemoryConfig, type WorkingMemoryEntity, WorkingMemoryManager, type WorkingMemoryOptions, WorldModelManager, type WorldModelManagerOptions, type WorldStateChange, type WorldStateEntity, WorldStateSnapshot, addUniqueTags, all, allRelationsValidMetadata, applyPagination, asWarning, batchProcess, batchProcessViaWorkers, buildTFVector, calculateIDF, calculateIDFFromTokenSets, calculateTF, calculateTFIDF, calculateTextSimilarity, checkCancellation, chunkArray, cleanupAllCaches, clearAllSearchCaches, compress, compressFile, compressToBase64, computeEntropy, cosineSimilarity, createCustomProfile, createDetailedProgressReporter, createEmbeddingService, createMetadata, createObservableDataModelFromGraph, createProgress, createProgressInfo, createProgressReporter, createStorage, createStorageFromPath, createThrottledProgress, createUncompressedMetadata, createVectorStore, custom, customSync, debounce, decodeProcedure, decompress, decompressFile, decompressFromBase64, defaultMemoryPath, email, ensureMemoryFilePath, entityExists, entityPassesFilters, entityToText, err, escapeCsvFormula, executeWithPhases, extractToolName, filterByCreatedDate, filterByEntityType, filterByImportance, filterByModifiedDate, filterByTags, filterParallel, findEntitiesByNames, findEntityByName, fnv1aHash, formatErrorResponse, formatRawResponse, formatTextResponse, formatToolResponse, formatZodErrors, generateSuggestions, getAllCacheStats, getCompressionRatio, getCurrentTimestamp, getEntityIndex, getEntityNameSet, getPaginationMeta, getPoolStats, getQuickHint, getRoleProfile, getWorkerPoolManager, getWorkerTaskManager, globalMemoryMonitor, groupEntitiesByType, hasAllTags, hasBrotliExtension, hasConfidence, hasMatchingTag, isAgentEntity, isArtifactEntity, isBidirectionalRelation, isCurrentlyValid, isEpisodicMemory, isErr, isOk, isPrefixPattern, isProceduralMemory, isProfileEntity, isSemanticMemory, isSessionEntity, isTemporalRelation, isValidISODate, isWeightedRelation, isWithinDateRange, isWithinImportanceRange, isWorkingMemory, isoDate, l2Normalize, levenshteinDistance, listRoleProfiles, loadConfigFromEnv, logger, mapOk, mapParallel, matchesPhrase, matchesPrefix, max, maxItems, maxLength, mergeConfig, min, minItems, minLength, normalizeTag, normalizeTags, ok, oneOf, paginate, paginateArray, parallelFilter, parallelLimit, parallelMap, parseDateRange, parsePaginationParams, passesEntropyFilter, pattern, permissionsForRole, processBatch, processBatchesWithProgress, processWithRetry, range, rateLimitedProcess, removeEntityByName, removeTags, required, resolveRoleProfile, sanitizeObject, searchCaches, shutdownParallelUtils, cosineSimilarity$1 as textCosineSimilarity, tokenize as textTokenize, throttle, tokenize$1 as tokenize, touchEntity, typeOf, unwrap, unwrapOr, url, validateArrayWithSchema, validateConfig, validateEntity, validateFilePath, validateImportance, validatePagination, validateRelation, validateRelationMetadata, validateRelationsMetadata, validateSafe, validateTags, validateWithSchema, when, withRetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1557,9 +1557,9 @@ interface LowercaseData {
|
|
|
1557
1557
|
* Storage configuration options.
|
|
1558
1558
|
*/
|
|
1559
1559
|
interface StorageConfig {
|
|
1560
|
-
/** Storage type: 'jsonl' or '
|
|
1561
|
-
type: 'jsonl' | 'sqlite';
|
|
1562
|
-
/** Path to storage file */
|
|
1560
|
+
/** Storage type: 'jsonl', 'sqlite', or 'postgres' / 'postgresql' */
|
|
1561
|
+
type: 'jsonl' | 'sqlite' | 'postgres' | 'postgresql';
|
|
1562
|
+
/** Path to storage file (or Postgres connection string when type === 'postgres') */
|
|
1563
1563
|
path: string;
|
|
1564
1564
|
}
|
|
1565
1565
|
/**
|
|
@@ -8441,6 +8441,167 @@ declare class WorkerPoolManager {
|
|
|
8441
8441
|
/** Convenience function to get the WorkerPoolManager singleton. */
|
|
8442
8442
|
declare function getWorkerPoolManager(): WorkerPoolManager;
|
|
8443
8443
|
|
|
8444
|
+
/**
|
|
8445
|
+
* WorkerTaskManager — unified facade over `WorkerPoolManager` + `TaskQueue`.
|
|
8446
|
+
*
|
|
8447
|
+
* The two existing pieces compose well but require boilerplate to use
|
|
8448
|
+
* together. `WorkerPoolManager` owns named worker pools (a pool per
|
|
8449
|
+
* `workerType`); `TaskQueue` owns priority scheduling, concurrency caps,
|
|
8450
|
+
* timeouts, and cancellation. Callers want a single entry point that says
|
|
8451
|
+
* "run this method on this worker type, with this priority, return a handle
|
|
8452
|
+
* I can cancel" — and that's what this class provides.
|
|
8453
|
+
*
|
|
8454
|
+
* Design choices:
|
|
8455
|
+
* - Tasks go through the priority queue first (so high-priority tasks jump
|
|
8456
|
+
* the line) and then dispatch to the named worker pool. Cancellation
|
|
8457
|
+
* before dispatch is cheap (queue eviction); cancellation mid-execution
|
|
8458
|
+
* is best-effort because `workerpool` doesn't expose hard-cancel and
|
|
8459
|
+
* terminating a worker mid-task is destructive.
|
|
8460
|
+
* - The manager is *not* a singleton. Each `ManagerContext` (or test) gets
|
|
8461
|
+
* its own. The underlying `WorkerPoolManager` is still a singleton —
|
|
8462
|
+
* pools survive across managers and are reused.
|
|
8463
|
+
* - The agent system consumes this through one helper exported below:
|
|
8464
|
+
* `batchProcessViaWorkers(items, workerType, methodName, mapArgs)`.
|
|
8465
|
+
* Agent-side managers that want CPU parallelism call that.
|
|
8466
|
+
*
|
|
8467
|
+
* @module utils/WorkerTaskManager
|
|
8468
|
+
*/
|
|
8469
|
+
|
|
8470
|
+
/**
|
|
8471
|
+
* Options for a single task submission. `priority`/`timeout` flow to
|
|
8472
|
+
* `TaskQueue`; `poolConfig` is applied if the named pool doesn't yet exist.
|
|
8473
|
+
*/
|
|
8474
|
+
interface TaskSubmitOptions {
|
|
8475
|
+
priority?: TaskPriority;
|
|
8476
|
+
/** Per-task timeout in milliseconds; falls back to `TaskQueue` default. */
|
|
8477
|
+
timeout?: number;
|
|
8478
|
+
/** Pool config applied only on first-time creation of the named pool. */
|
|
8479
|
+
poolConfig?: WorkerPoolConfig;
|
|
8480
|
+
}
|
|
8481
|
+
/**
|
|
8482
|
+
* Handle returned by `submitWithHandle`. The `result` promise settles when
|
|
8483
|
+
* the task finishes; `cancel()` evicts a still-pending task from the queue
|
|
8484
|
+
* (returns `true`) or signals a request-cancellation flag on a running task
|
|
8485
|
+
* (returns `false` — `workerpool` itself doesn't support hard-cancel and
|
|
8486
|
+
* terminating mid-task is destructive).
|
|
8487
|
+
*/
|
|
8488
|
+
interface TaskHandle<R> {
|
|
8489
|
+
id: string;
|
|
8490
|
+
result: Promise<R>;
|
|
8491
|
+
cancel(): boolean;
|
|
8492
|
+
status(): TaskStatus;
|
|
8493
|
+
}
|
|
8494
|
+
/**
|
|
8495
|
+
* Aggregated stats across the priority queue + all worker pools the manager
|
|
8496
|
+
* has touched.
|
|
8497
|
+
*/
|
|
8498
|
+
interface WorkerTaskManagerStats {
|
|
8499
|
+
queue: QueueStats;
|
|
8500
|
+
pools: Array<{
|
|
8501
|
+
poolId: string;
|
|
8502
|
+
workers: number;
|
|
8503
|
+
activeTasks: number;
|
|
8504
|
+
pendingTasks: number;
|
|
8505
|
+
totalTasksExecuted: number;
|
|
8506
|
+
}>;
|
|
8507
|
+
}
|
|
8508
|
+
/**
|
|
8509
|
+
* Unified worker + task manager.
|
|
8510
|
+
*
|
|
8511
|
+
* @example
|
|
8512
|
+
* ```typescript
|
|
8513
|
+
* const wtm = new WorkerTaskManager();
|
|
8514
|
+
*
|
|
8515
|
+
* // One-shot async submit
|
|
8516
|
+
* const distance = await wtm.submit<number>(
|
|
8517
|
+
* 'levenshtein',
|
|
8518
|
+
* 'levenshteinDistance',
|
|
8519
|
+
* ['kitten', 'sitting'],
|
|
8520
|
+
* { priority: TaskPriority.HIGH, timeout: 5000 },
|
|
8521
|
+
* );
|
|
8522
|
+
*
|
|
8523
|
+
* // Cancellable handle
|
|
8524
|
+
* const handle = wtm.submitWithHandle<number>(
|
|
8525
|
+
* 'levenshtein', 'levenshteinDistance', ['kitten', 'sitting'],
|
|
8526
|
+
* );
|
|
8527
|
+
* setTimeout(() => handle.cancel(), 100);
|
|
8528
|
+
* const dist = await handle.result;
|
|
8529
|
+
* ```
|
|
8530
|
+
*/
|
|
8531
|
+
declare class WorkerTaskManager {
|
|
8532
|
+
private readonly queue;
|
|
8533
|
+
private readonly poolManager;
|
|
8534
|
+
private readonly touchedPoolIds;
|
|
8535
|
+
private readonly cancelledTaskIds;
|
|
8536
|
+
private readonly handleStatus;
|
|
8537
|
+
constructor(opts?: {
|
|
8538
|
+
/** Max concurrent tasks across the queue. Default: cpus − 1. */
|
|
8539
|
+
concurrency?: number;
|
|
8540
|
+
/** Default per-task timeout in ms. Default: 30s. */
|
|
8541
|
+
defaultTimeout?: number;
|
|
8542
|
+
});
|
|
8543
|
+
/**
|
|
8544
|
+
* Submit a task and await its result. Throws on failure / cancellation.
|
|
8545
|
+
*
|
|
8546
|
+
* @param workerType — routing key. Maps to a named `WorkerPoolManager` pool.
|
|
8547
|
+
* @param methodName — function name exposed by the worker module.
|
|
8548
|
+
* @param args — positional arguments passed to the worker function.
|
|
8549
|
+
*/
|
|
8550
|
+
submit<R>(workerType: string, methodName: string, args: unknown[], opts?: TaskSubmitOptions): Promise<R>;
|
|
8551
|
+
/**
|
|
8552
|
+
* Submit a task and return a handle for cancellation + status polling.
|
|
8553
|
+
*/
|
|
8554
|
+
submitWithHandle<R>(workerType: string, methodName: string, args: unknown[], opts?: TaskSubmitOptions): TaskHandle<R>;
|
|
8555
|
+
/**
|
|
8556
|
+
* Aggregated stats across the queue + touched pools.
|
|
8557
|
+
*/
|
|
8558
|
+
getStats(): WorkerTaskManagerStats;
|
|
8559
|
+
/**
|
|
8560
|
+
* Drain the queue (wait for all pending + running tasks) and return their
|
|
8561
|
+
* results in completion order. Pool workers are NOT terminated — call
|
|
8562
|
+
* `shutdown()` for that.
|
|
8563
|
+
*/
|
|
8564
|
+
drain(): Promise<TaskResult[]>;
|
|
8565
|
+
/**
|
|
8566
|
+
* Shut down the queue + the underlying WorkerPoolManager pools touched by
|
|
8567
|
+
* this instance. Idempotent. Returns after every owned worker has exited.
|
|
8568
|
+
*/
|
|
8569
|
+
shutdown(): Promise<void>;
|
|
8570
|
+
}
|
|
8571
|
+
declare function getWorkerTaskManager(): WorkerTaskManager;
|
|
8572
|
+
/**
|
|
8573
|
+
* Batch-process `items` by submitting one task per item to the named worker
|
|
8574
|
+
* pool. Tasks share the manager's priority queue so a higher-priority batch
|
|
8575
|
+
* elsewhere doesn't get blocked.
|
|
8576
|
+
*
|
|
8577
|
+
* This is the recommended pattern for agent-system batch operations that
|
|
8578
|
+
* benefit from CPU parallelism (entropy filtering across many memories,
|
|
8579
|
+
* pairwise similarity for contradiction detection, batch embedding when
|
|
8580
|
+
* the provider is local + compute-bound, etc.). For small batches
|
|
8581
|
+
* (≪ ~50 items) the serialisation overhead usually dominates the gain —
|
|
8582
|
+
* benchmark before adopting.
|
|
8583
|
+
*
|
|
8584
|
+
* @param items — input items, one per task
|
|
8585
|
+
* @param workerType — routing key for the pool
|
|
8586
|
+
* @param methodName — pool method name
|
|
8587
|
+
* @param mapArgs — turn each item into the positional args array for the worker
|
|
8588
|
+
* @param opts — priority / timeout / poolConfig
|
|
8589
|
+
* @returns Array of results in the same order as `items`. Rejects on the
|
|
8590
|
+
* first task failure (does NOT cancel siblings — those are abandoned).
|
|
8591
|
+
*
|
|
8592
|
+
* @example
|
|
8593
|
+
* ```typescript
|
|
8594
|
+
* const distances = await batchProcessViaWorkers(
|
|
8595
|
+
* names, // items: string[]
|
|
8596
|
+
* 'levenshtein', // workerType
|
|
8597
|
+
* 'levenshteinDistance', // methodName
|
|
8598
|
+
* (name) => [name, queryName], // mapArgs
|
|
8599
|
+
* { priority: TaskPriority.HIGH },
|
|
8600
|
+
* );
|
|
8601
|
+
* ```
|
|
8602
|
+
*/
|
|
8603
|
+
declare function batchProcessViaWorkers<T, R>(items: T[], workerType: string, methodName: string, mapArgs: (item: T, index: number) => unknown[], opts?: TaskSubmitOptions): Promise<R[]>;
|
|
8604
|
+
|
|
8444
8605
|
/**
|
|
8445
8606
|
* Batch Processor
|
|
8446
8607
|
*
|
|
@@ -26409,6 +26570,8 @@ declare class ManagerContext {
|
|
|
26409
26570
|
* Supported storage types:
|
|
26410
26571
|
* - 'jsonl': JSONL file-based storage (default) - simple, human-readable
|
|
26411
26572
|
* - 'sqlite': SQLite database storage (better-sqlite3 native) - indexed, ACID transactions, FTS5
|
|
26573
|
+
* - 'postgres' / 'postgresql': PostgreSQL backend - JSONB, GIN indexes,
|
|
26574
|
+
* optional peer dep on `pg`
|
|
26412
26575
|
*
|
|
26413
26576
|
* @module core/StorageFactory
|
|
26414
26577
|
*/
|
|
@@ -28572,4 +28735,4 @@ declare class LangChainMemoryAdapter {
|
|
|
28572
28735
|
clear(): Promise<void>;
|
|
28573
28736
|
}
|
|
28574
28737
|
|
|
28575
|
-
export { type ABACCondition, type ABACContext, type ABACDecision, type ABACEffect, type ABACOp, ABACPolicy, type ABACRule, APIKeyStore, type ValidationResult as APIKeyValidationResult, type AcceptDecisionResult, type AccessContext, AccessContextBuilder, type AccessPattern, type AccessStats, AccessTracker, type AccessTrackerConfig, type Action, type ActiveRetrievalConfig, ActiveRetrievalController, type AdaptiveDepthConfig, type AdaptiveReductionResult, type AdaptiveResult, type AddExclusionRuleInput, type AddHeuristicOptions, type AddObservationInput, AddObservationInputSchema, AddObservationsInputSchema, type AddTurnOptions, type AddTurnResult, type AdequacyCheck, type AgentEntity, type AgentMemoryConfig, AgentMemoryManager, type AgentObservation, type AgentRole, AnalyticsManager, type ArchiveCriteria, type ArchiveCriteriaInput, ArchiveCriteriaSchema, ArchiveManager, type ArchiveOptions, type ArchiveReflectionResult, type ArchiveResult, type ArchiveResultExtended, type ArtifactEntity, type ArtifactFilter, ArtifactManager, type ArtifactType, AsyncMutex, type AsyncMutexOptions, type AttributionMode, type AuditEntry, type AuditFilter, AuditLog, type AuditOperation, type AuditStats, type AutoLinkOptions, type AutoLinkResult, AutoLinker, type AutoSearchResult, type BM25Config, type BM25DocumentEntry, type BM25Index, BM25Search, type BackupInfo, type BackupInfoExtended, type BackupMetadata, type BackupMetadataExtended, type BackupOptions, type BackupResult, BasicSearch, BatchCreateEntitiesSchema, BatchCreateRelationsSchema, type BatchItemResult, type BatchOperation, type BatchOperationType, type BatchOptions, type BatchProcessResult, BatchProcessor, type BatchProcessorOptions, type BatchProgress, type BatchProgressCallback, type BatchResult, BatchTransaction, type BidirectionalRelation, type BooleanCacheEntry, type BooleanOpNode, type BooleanQueryNode, BooleanSearch, COMPRESSION_CONFIG, type CacheCompressionStats, type CacheStats, type CachedQueryEntry, type CausalChain, type CausalCycle, CausalReasoner, type CausalReasonerConfig, type CausalRelationType, type CentralityResult, type ClusterMethod, CognitiveLoadAnalyzer, type CognitiveLoadConfig, type CognitiveLoadMetrics, CollaborationAuditEnforcer, type CollaborationAuditEnforcerOptions, CollaborativeSynthesis, type CollaborativeSynthesisConfig, type CommonSearchFilters, type ComponentMemoryUsage, CompositeDistillationPolicy, CompressedCache, type CompressedCacheOptions, type CompressedCacheStats, type CompressedMemory, CompressionManager, type CompressionMetadata, type CompressionOptions, type CompressionQuality, type CompressionResult, type ConfirmationResult, type ConflictInfo, ConflictResolver, type ConflictResolverConfig, type ConflictStrategy, type ConnectedComponentsResult, type ConsolidateOptions, type ConsolidationAction, type ConsolidationCycleResult, ConsolidationPipeline, type ConsolidationPipelineConfig, type ConsolidationResult, type ConsolidationRule, ConsolidationScheduler, type ConsolidationSchedulerConfig, type ConsolidationTrigger, type ContextPackage, type ContextProfile, ContextProfileManager, type ContextRetrievalOptions, ContextWindowManager, type ContextWindowManagerConfig, type Contradiction$1 as Contradiction, ContradictionDetector, type CreateArtifactOptions, type CreateEntityInput, CreateEntitySchema, type CreateEpisodeOptions, type CreateMemoryOptions, type CreatePlanOptions, type CreateRelationInput, CreateRelationSchema, type CreateWorkThreadOptions, CycleDetectedError, DEFAULT_BASE_DIR, DEFAULT_BM25_CONFIG, DEFAULT_CAUSAL_RELATION_TYPES, DEFAULT_DUPLICATE_THRESHOLD, DEFAULT_EMBEDDING_CACHE_OPTIONS, DEFAULT_FILE_NAMES, DEFAULT_HYBRID_WEIGHTS, DEFAULT_INDEXER_OPTIONS, DEFAULT_PERMISSION_MATRIX, DEFAULT_PII_PATTERNS, DEFAULT_SCORER_WEIGHTS, DOCUMENT_PREFIX, type DateRange, DateRangeSchema, type DecayCycleResult, DecayEngine, type DecayEngineConfig, type DecayOperationOptions, type DecayOptions, type DecayResult, DecayScheduler, type DecaySchedulerConfig, type DecisionEntityOptions, type DecisionInput, DecisionManager, type DecisionRule, type DedupTier, type DeduplicationOptions, DefaultDistillationPolicy, type DeleteObservationInput, DeleteObservationInputSchema, DeleteObservationsInputSchema, DeleteRelationsSchema, type DistillOptions, type DistillationConfig, DistillationPipeline, type DistillationResult, type DistillationStats, type DistilledLesson, type DistilledMemory, type DocumentVector, type DreamCycleResult, DreamEngine, type DreamEngineCallbacks, type DreamEngineConfig, type DreamPhaseConfig, type DreamPhaseResult, type DuplicateCheckResult, DuplicateEntityError, type DuplicateObservationGroup, type DuplicateObservationOccurrence, type DuplicatePair, ENTITY_STATUS_TRANSITIONS, ENV_VARS, EarlyTerminationManager, type EarlyTerminationOptions, type EarlyTerminationResult, EmbeddingCache, type EmbeddingCacheOptions, type EmbeddingCacheStats, type EmbeddingConfig, type EmbeddingMode, type EmbeddingProgressCallback, type EmbeddingService, type EndSessionResult, type Entity, type EntityCreatedEvent, type EntityDeletedEvent, type EntityInput, EntityManager, type EntityManagerOptions, EntityNamesSchema, EntityNotFoundError, type EntityRuleResult, EntitySchema, type EntityStatus, type EntityUpdatedEvent, type EntityValidationIssue, type EntityValidationResult, type EntityValidationRule, EntityValidator, type EntityValidatorConfig, type EntityWithContext, type EntropyFilterConfig, EntropyFilterStage, type EpisodicMemoryConfig, type EpisodicMemoryEntity, EpisodicMemoryManager, EpisodicRelations, ErrorCode, type ErrorOptions, type ExcludedEntity, type ExclusionCheckResult, ExclusionManager, type Experience, ExperienceExtractor, type ExperienceExtractorConfig, type ExperienceType, type ExplainedSearchResult, ExportError, type ExportFilter, type ExportFilterInput, ExportFilterSchema, type ExportFormat, ExportFormatSchema, type ExportOptions, type ExportResult, type ExtendedExportFormatInput, ExtendedExportFormatSchema, type ExtendedPoolStats, type ExtendedQueryCostEstimate, type ExtractedEntity, type ExtractedFact, FILE_EXTENSIONS, FILE_SUFFIXES, type FactExtractionOptions, type FactExtractionResult, FactExtractor, FailureDistillation, type FailureDistillationConfig, type FailureDistillationResult, type FailureEntityOptions, type GetAllOptions as FailureGetAllOptions, type FailureInput, type LookupOptions as FailureLookupOptions, FailureManager, type FailureManagerConfig, type FieldNode, FileOperationError, type FlushResult, type ForContextOptions, type ForgetOptions, type ForgetResult, FreshnessManager, type FreshnessManagerConfig, type FreshnessReport, type FuzzyCacheKey, FuzzySearch, type FuzzySearchOptions, GRAPH_LIMITS, type GetWeightedOptions, GovernanceManager, type GovernanceOperationOptions, type GovernancePolicy, GovernanceTransaction, type Granularity, type GraphCompressionResult, type GraphEvent, type GraphEventBase, GraphEventEmitter, type GraphEventListener, type GraphEventMap, type GraphEventType, type GraphLoadedEvent, type GraphProjection, type GraphSavedEvent, type GraphStats, GraphStorage, GraphTraversal, type GroupMembership, type GroupingResult, type HeuristicConflict, HeuristicExtractionStage, type HeuristicExtractionStageConfig, type HeuristicGuideline, HeuristicManager, type HeuristicMatch, type HeuristicUpdateResult, HierarchyManager, HybridScorer, type HybridScorerOptions, HybridSearchManager, type HybridSearchOptions, type HybridSearchResult, type HybridWeights, type IDistillationPolicy, type IGraphStorage, IMPORTANCE_RANGE, type IMemoryBackend, IOManager, type ISummarizationProvider, type IVectorStore, ImportError, type ImportFormat, type ImportFormatInput, ImportFormatSchema, type ImportResult, ImportanceScorer, type ImportanceScorerConfig, InMemoryBackend, InMemoryVectorStore, IncrementalIndexer, type IncrementalIndexerOptions, type IndexMemoryUsage, type IndexOperation, type IndexOperationType, type IngestInput, type IngestOptions, type IngestResult, InsufficientEntitiesError, InvalidImportanceError, type IssueOptions, type IssueResult, type JSONValue, type JsonSchema, type KeyRecord, KeywordExtractor, type KnowledgeGraph, KnowledgeGraphError, ManagerContext as KnowledgeGraphManager, type LLMProvider, LLMQueryPlanner, type LLMQueryPlannerConfig, LLMSearchExecutor, type LLMSearchExecutorOptions, LOG_PREFIXES, LangChainMemoryAdapter, type LayerRecommendationOptions, type LayerTiming, type LexicalSearchResult, type ListDecisionsOptions, type ListPlansOptions, type ListReflectionsOptions, LocalEmbeddingService, type LogLevel, type LongRunningOperationOptions, LowEntropyContentError, LowercaseCache, type LowercaseData, MCPToolObserverAdapter, MEMORY_TYPES, ManagerContext, type ManagerContextOptions, type MatchedTerm, type MemoryAcquisitionMethod, type MemoryAlert, type MemoryChangeCallback, MemoryEngine, type MemoryEngineConfig, type MemoryEngineEventName, MemoryFormatter, type MemoryFormatterConfig, type MemoryMergeStrategy, MemoryMonitor, type MemorySource, type MemoryThresholds, type MemoryTurn, type MemoryType, type MemoryUsageStats, type MemoryValidationIssue, type MemoryValidationResult, MemoryValidator, type MemoryValidatorConfig, type Contradiction as MemoryValidatorContradiction, type MemoryVisibility, type MergeResult, type MergeStrategy, type MergeStrategyInput, MergeStrategySchema, MockEmbeddingService, type MultiAgentConfig, MultiAgentMemoryManager, NGramIndex, type NGramIndexStats, NameIndex, NoOpDistillationPolicy, type NormalizationOptions, type NormalizationResult, type ObservableDataModelAdapterOptions, type ObservableDataModelShape, type ObservationAddedEvent, type ObservationDedupFilter, ObservationDedupManager, type ObservationDedupManagerConfig, ObservationDedupReportStage, type ObservationDedupReportStageConfig, type ObservationDeletedEvent, ObservationManager, ObservationNormalizer, type ObservationScore, type ObservationSource, ObserverPipeline, type ObserverPipelineOptions, type ObserverPipelineStats, OpenAIEmbeddingService, OperationCancelledError, type OperationResult, OperationType, OptimizedInvertedIndex, OptionalEntityNamesSchema, OptionalTagsSchema, type Outcome, PROCEDURE_ENTITY_TYPE, type PaginatedCacheEntry, type PaginatedResult, type PaginationParams, ParallelSearchExecutor, type ParallelSearchOptions, type ParallelSearchResult, type ParsePaginationOptions, type ParsedTemporalRange, type PathResult, PatternDetector, type PatternResult, type Permission, type PermissionMatrix, type PermissionMatrixRow, type PhaseDefinition, type PhraseNode, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PipelineStage, PlanManager, type PlanManagerConfig, type PoolEventCallback, type PostingListResult, type PreparedEntity, type ProceduralMemoryEntity, type ProcedureInvoker, ProcedureManager, type ProcedureManagerConfig, ProcedureStore, type ProfileConfig, type ProfileEntity, ProfileManager, type ProfileManagerConfig, type ProfileOptions, type ProfileResponse, type ProgressCallback, type ProgressInfo, type ProgressInfoCallback, type ProgressOptions, ProjectContextManager, type ProjectContextManagerConfig, type ProjectContextUpsertInput, type PromotionCriteria, type PromotionMarkOptions, type PromotionResult, type ProspectiveMemoryConfig, ProspectiveMemoryManager, ProspectivePromotionStage, type ProximityMatch, type ProximityMatchLocation, type ProximityNode, ProximitySearch, type PushSubGoalOptions, QUERY_LIMITS, QUERY_PREFIX, type QuantizationParams, type QuantizedSearchResult, QuantizedVectorStore, type QuantizedVectorStoreOptions, type QuantizedVectorStoreStats, type QueryAnalysis, QueryAnalyzer, type QueryCostEstimate, QueryCostEstimator, type QueryCostEstimatorOptions, type QueryLogEntry, QueryLogger, type QueryLoggerConfig, type QueryNode, QueryParser, type QueryPlan, QueryPlanCache, type QueryPlanCacheOptions, type QueryPlanCacheStats, QueryPlanner, QueryRewriter, type QueryStage, type QueryTrace, QueryTraceBuilder, type QueueStats, RankedSearch, type RateLimitVerdict, RateLimiter, type RateLimiterConfig, RbacMiddleware, type RbacMiddlewareOptions, type RbacPolicy, ReadOnlyMemoryGraphDataError, type ReadonlyKnowledgeGraph, type RecordOutcomeInput, type RedactionResult, type RedactionStats, type RedundancyGroup, RefConflictError, type RefEntry, RefIndex, type RefIndexStats, RefNotFoundError, type RefinementHistoryEntry, type ReflectionEntityOptions, type ReflectionInput, ReflectionManager$1 as ReflectionManager, ReflectionManager as ReflectionMemoryManager, type ReflectionManagerConfig as ReflectionMemoryManagerConfig, type ReflectionOptions, type ReflectionResult, ReflectionStage, type ReflectionStageConfig, type ReinforcementOptions, type RejectDecisionResult, type Relation, RelationBuilder, type RelationCreatedEvent, type RelationDeletedEvent, RelationIndex, type RelationInput, RelationManager, RelationNotFoundError, type RelationProperties, RelationSchema, type RelationValidationError, type RelationValidationResult, type RelationValidationWarning, type RelevanceOptions, type ResolutionResult, type ResourcePermissionOverrides, type ResourceType, type RestHandler, type RestMethod, type RestRequest, type RestResponse, RestRouter, type RestoreResult, type Result, type RetrievalContext, type RetrievalDecision, type RetrievalRound, type RetrieveContextOptions, type RewriteResult, type Role, type RoleAssignment, RoleAssignmentStore, type RoleAssignmentStoreOptions, type RoleProfile, type RouteDefinition, RowLevelFilter, type RowPredicate, type Rule, type RuleConditions, type RuleEvaluationResult, RuleEvaluator, SEARCH_LIMITS, SIMILARITY_WEIGHTS, SQLiteBackend, type SQLiteBackendOptions, SQLiteStorage, type SQLiteStorageWithEmbeddings, SQLiteVectorStore, STOPWORDS, STREAMING_CONFIG, type SalienceComponents, type SalienceContext, SalienceEngine, type SalienceEngineConfig, type SalienceWeights, type SavedSearch, type SavedSearchInput, SavedSearchInputSchema, SavedSearchManager, type SavedSearchUpdateInput, SavedSearchUpdateSchema, type ScheduleOptions, SchemaValidator, type ScoreBoost, type ScoreOptions, type ScoredEntity, type ScoredKeyword, type ScoredResult, type ScoringSignal, SearchCache, type SearchExplanation, SearchFilterChain, type SearchFilters, type SearchFunction, type SearchLayer, SearchManager, type SearchMethod, type SearchQuery, SearchQuerySchema, type SearchResult, SearchSuggestions, SemanticForget, type SemanticForgetOptions, type SemanticForgetResult, type SemanticIndexOptions, type SemanticLayerResult, type SemanticMemoryEntity, SemanticSearch, type SemanticSearchResult, type SessionCheckpointData, SessionCheckpointManager, type SessionConfig, type SessionEntity, type SessionHistoryOptions, SessionManager, type SessionMemoryFilter, type SessionOutcome, SessionQueryBuilder, type SessionSearchOptions, type SessionStatus, SpellChecker, type SpellCheckerConfig, type SpellSuggestion, type SpilloverResult, type SplitOptions, type SplitResult, type StageResult, type StartSessionOptions, StepSequencer, type StorageConfig, type StreamResult, StreamingExporter, type StructuredQuery, type SubQuery, type SuggestOptions, type SuggestToolOptions, type SummarizationConfig, type SummarizationResult, SummarizationService, type SupersedeDecisionResult, type SymbolicFilters, type SymbolicResult, SymbolicSearch, type SymbolicSearchResult, type SynthesisResult, TFIDFEventSync, type TFIDFIndex, TFIDFIndexManager, type TagAlias, type TagAliasInput, TagAliasSchema, TagManager, type Task, type TaskBatchOptions, TaskPriority, TaskQueue, type TaskResult, TaskStatus, type TemporalFilterField, type TemporalFocus, TemporalQueryParser, type TemporalRange, type TemporalRelation, TemporalSearch, type TemporalSearchOptions, type TermNode, type TimelineOptions, type TokenBreakdown, type TokenEstimationOptions, type TokenizedEntity, ToolAffordanceManager, type ToolAffordanceManagerConfig, type ToolAffordanceStats, type ToolCallEvent, ToolCallObserver, type ToolResponse, type ToolSuggestion, type Trajectory, type TrajectoryCluster, TrajectoryCompressor, type TrajectoryCompressorConfig, type TrajectoryMergeStrategy, TransactionManager, type TransactionOperation, type TransactionResult, type TransitionEvent, type TransitionFilter, TransitionLedger, type TraversalOptions, type TraversalResult, TypeIndex, type UpdateEntityInput, UpdateEntitySchema, type ValidatedPagination, ValidationError, type ValidationIssue, type ValidationReport, type ValidationResult$1 as ValidationResult, type ValidationWarning, type VectorSearchResult, VisibilityResolver, type VisualizeOptions, type WakeUpOptions, type WakeUpResult, type WeightedRelation, type WeightedTurn, type WildcardNode, type WorkThread, type WorkThreadFilter, WorkThreadManager, type WorkThreadStatus, type WorkerPoolConfig, WorkerPoolManager, type WorkingMemoryConfig, type WorkingMemoryEntity, WorkingMemoryManager, type WorkingMemoryOptions, WorldModelManager, type WorldModelManagerOptions, type WorldStateChange, type WorldStateEntity, WorldStateSnapshot, addUniqueTags, all, allRelationsValidMetadata, applyPagination, asWarning, batchProcess, buildTFVector, calculateIDF, calculateIDFFromTokenSets, calculateTF, calculateTFIDF, calculateTextSimilarity, checkCancellation, chunkArray, cleanupAllCaches, clearAllSearchCaches, compress, compressFile, compressToBase64, computeEntropy, cosineSimilarity, createCustomProfile, createDetailedProgressReporter, createEmbeddingService, createMetadata, createObservableDataModelFromGraph, createProgress, createProgressInfo, createProgressReporter, createStorage, createStorageFromPath, createThrottledProgress, createUncompressedMetadata, createVectorStore, custom, customSync, debounce, decodeProcedure, decompress, decompressFile, decompressFromBase64, defaultMemoryPath, email, ensureMemoryFilePath, entityExists, entityPassesFilters, entityToText, err, escapeCsvFormula, executeWithPhases, extractToolName, filterByCreatedDate, filterByEntityType, filterByImportance, filterByModifiedDate, filterByTags, filterParallel, findEntitiesByNames, findEntityByName, fnv1aHash, formatErrorResponse, formatRawResponse, formatTextResponse, formatToolResponse, formatZodErrors, generateSuggestions, getAllCacheStats, getCompressionRatio, getCurrentTimestamp, getEntityIndex, getEntityNameSet, getPaginationMeta, getPoolStats, getQuickHint, getRoleProfile, getWorkerPoolManager, globalMemoryMonitor, groupEntitiesByType, hasAllTags, hasBrotliExtension, hasConfidence, hasMatchingTag, isAgentEntity, isArtifactEntity, isBidirectionalRelation, isCurrentlyValid, isEpisodicMemory, isErr, isOk, isPrefixPattern, isProceduralMemory, isProfileEntity, isSemanticMemory, isSessionEntity, isTemporalRelation, isValidISODate, isWeightedRelation, isWithinDateRange, isWithinImportanceRange, isWorkingMemory, isoDate, l2Normalize, levenshteinDistance, listRoleProfiles, loadConfigFromEnv, logger, mapOk, mapParallel, matchesPhrase, matchesPrefix, max, maxItems, maxLength, mergeConfig, min, minItems, minLength, normalizeTag, normalizeTags, ok, oneOf, paginate, paginateArray, parallelFilter, parallelLimit, parallelMap, parseDateRange, parsePaginationParams, passesEntropyFilter, pattern, permissionsForRole, processBatch, processBatchesWithProgress, processWithRetry, range, rateLimitedProcess, removeEntityByName, removeTags, required, resolveRoleProfile, sanitizeObject, searchCaches, shutdownParallelUtils, cosineSimilarity$1 as textCosineSimilarity, tokenize as textTokenize, throttle, tokenize$1 as tokenize, touchEntity, typeOf, unwrap, unwrapOr, url, validateArrayWithSchema, validateConfig, validateEntity, validateFilePath, validateImportance, validatePagination, validateRelation, validateRelationMetadata, validateRelationsMetadata, validateSafe, validateTags, validateWithSchema, when, withRetry };
|
|
28738
|
+
export { type ABACCondition, type ABACContext, type ABACDecision, type ABACEffect, type ABACOp, ABACPolicy, type ABACRule, APIKeyStore, type ValidationResult as APIKeyValidationResult, type AcceptDecisionResult, type AccessContext, AccessContextBuilder, type AccessPattern, type AccessStats, AccessTracker, type AccessTrackerConfig, type Action, type ActiveRetrievalConfig, ActiveRetrievalController, type AdaptiveDepthConfig, type AdaptiveReductionResult, type AdaptiveResult, type AddExclusionRuleInput, type AddHeuristicOptions, type AddObservationInput, AddObservationInputSchema, AddObservationsInputSchema, type AddTurnOptions, type AddTurnResult, type AdequacyCheck, type AgentEntity, type AgentMemoryConfig, AgentMemoryManager, type AgentObservation, type AgentRole, AnalyticsManager, type ArchiveCriteria, type ArchiveCriteriaInput, ArchiveCriteriaSchema, ArchiveManager, type ArchiveOptions, type ArchiveReflectionResult, type ArchiveResult, type ArchiveResultExtended, type ArtifactEntity, type ArtifactFilter, ArtifactManager, type ArtifactType, AsyncMutex, type AsyncMutexOptions, type AttributionMode, type AuditEntry, type AuditFilter, AuditLog, type AuditOperation, type AuditStats, type AutoLinkOptions, type AutoLinkResult, AutoLinker, type AutoSearchResult, type BM25Config, type BM25DocumentEntry, type BM25Index, BM25Search, type BackupInfo, type BackupInfoExtended, type BackupMetadata, type BackupMetadataExtended, type BackupOptions, type BackupResult, BasicSearch, BatchCreateEntitiesSchema, BatchCreateRelationsSchema, type BatchItemResult, type BatchOperation, type BatchOperationType, type BatchOptions, type BatchProcessResult, BatchProcessor, type BatchProcessorOptions, type BatchProgress, type BatchProgressCallback, type BatchResult, BatchTransaction, type BidirectionalRelation, type BooleanCacheEntry, type BooleanOpNode, type BooleanQueryNode, BooleanSearch, COMPRESSION_CONFIG, type CacheCompressionStats, type CacheStats, type CachedQueryEntry, type CausalChain, type CausalCycle, CausalReasoner, type CausalReasonerConfig, type CausalRelationType, type CentralityResult, type ClusterMethod, CognitiveLoadAnalyzer, type CognitiveLoadConfig, type CognitiveLoadMetrics, CollaborationAuditEnforcer, type CollaborationAuditEnforcerOptions, CollaborativeSynthesis, type CollaborativeSynthesisConfig, type CommonSearchFilters, type ComponentMemoryUsage, CompositeDistillationPolicy, CompressedCache, type CompressedCacheOptions, type CompressedCacheStats, type CompressedMemory, CompressionManager, type CompressionMetadata, type CompressionOptions, type CompressionQuality, type CompressionResult, type ConfirmationResult, type ConflictInfo, ConflictResolver, type ConflictResolverConfig, type ConflictStrategy, type ConnectedComponentsResult, type ConsolidateOptions, type ConsolidationAction, type ConsolidationCycleResult, ConsolidationPipeline, type ConsolidationPipelineConfig, type ConsolidationResult, type ConsolidationRule, ConsolidationScheduler, type ConsolidationSchedulerConfig, type ConsolidationTrigger, type ContextPackage, type ContextProfile, ContextProfileManager, type ContextRetrievalOptions, ContextWindowManager, type ContextWindowManagerConfig, type Contradiction$1 as Contradiction, ContradictionDetector, type CreateArtifactOptions, type CreateEntityInput, CreateEntitySchema, type CreateEpisodeOptions, type CreateMemoryOptions, type CreatePlanOptions, type CreateRelationInput, CreateRelationSchema, type CreateWorkThreadOptions, CycleDetectedError, DEFAULT_BASE_DIR, DEFAULT_BM25_CONFIG, DEFAULT_CAUSAL_RELATION_TYPES, DEFAULT_DUPLICATE_THRESHOLD, DEFAULT_EMBEDDING_CACHE_OPTIONS, DEFAULT_FILE_NAMES, DEFAULT_HYBRID_WEIGHTS, DEFAULT_INDEXER_OPTIONS, DEFAULT_PERMISSION_MATRIX, DEFAULT_PII_PATTERNS, DEFAULT_SCORER_WEIGHTS, DOCUMENT_PREFIX, type DateRange, DateRangeSchema, type DecayCycleResult, DecayEngine, type DecayEngineConfig, type DecayOperationOptions, type DecayOptions, type DecayResult, DecayScheduler, type DecaySchedulerConfig, type DecisionEntityOptions, type DecisionInput, DecisionManager, type DecisionRule, type DedupTier, type DeduplicationOptions, DefaultDistillationPolicy, type DeleteObservationInput, DeleteObservationInputSchema, DeleteObservationsInputSchema, DeleteRelationsSchema, type DistillOptions, type DistillationConfig, DistillationPipeline, type DistillationResult, type DistillationStats, type DistilledLesson, type DistilledMemory, type DocumentVector, type DreamCycleResult, DreamEngine, type DreamEngineCallbacks, type DreamEngineConfig, type DreamPhaseConfig, type DreamPhaseResult, type DuplicateCheckResult, DuplicateEntityError, type DuplicateObservationGroup, type DuplicateObservationOccurrence, type DuplicatePair, ENTITY_STATUS_TRANSITIONS, ENV_VARS, EarlyTerminationManager, type EarlyTerminationOptions, type EarlyTerminationResult, EmbeddingCache, type EmbeddingCacheOptions, type EmbeddingCacheStats, type EmbeddingConfig, type EmbeddingMode, type EmbeddingProgressCallback, type EmbeddingService, type EndSessionResult, type Entity, type EntityCreatedEvent, type EntityDeletedEvent, type EntityInput, EntityManager, type EntityManagerOptions, EntityNamesSchema, EntityNotFoundError, type EntityRuleResult, EntitySchema, type EntityStatus, type EntityUpdatedEvent, type EntityValidationIssue, type EntityValidationResult, type EntityValidationRule, EntityValidator, type EntityValidatorConfig, type EntityWithContext, type EntropyFilterConfig, EntropyFilterStage, type EpisodicMemoryConfig, type EpisodicMemoryEntity, EpisodicMemoryManager, EpisodicRelations, ErrorCode, type ErrorOptions, type ExcludedEntity, type ExclusionCheckResult, ExclusionManager, type Experience, ExperienceExtractor, type ExperienceExtractorConfig, type ExperienceType, type ExplainedSearchResult, ExportError, type ExportFilter, type ExportFilterInput, ExportFilterSchema, type ExportFormat, ExportFormatSchema, type ExportOptions, type ExportResult, type ExtendedExportFormatInput, ExtendedExportFormatSchema, type ExtendedPoolStats, type ExtendedQueryCostEstimate, type ExtractedEntity, type ExtractedFact, FILE_EXTENSIONS, FILE_SUFFIXES, type FactExtractionOptions, type FactExtractionResult, FactExtractor, FailureDistillation, type FailureDistillationConfig, type FailureDistillationResult, type FailureEntityOptions, type GetAllOptions as FailureGetAllOptions, type FailureInput, type LookupOptions as FailureLookupOptions, FailureManager, type FailureManagerConfig, type FieldNode, FileOperationError, type FlushResult, type ForContextOptions, type ForgetOptions, type ForgetResult, FreshnessManager, type FreshnessManagerConfig, type FreshnessReport, type FuzzyCacheKey, FuzzySearch, type FuzzySearchOptions, GRAPH_LIMITS, type GetWeightedOptions, GovernanceManager, type GovernanceOperationOptions, type GovernancePolicy, GovernanceTransaction, type Granularity, type GraphCompressionResult, type GraphEvent, type GraphEventBase, GraphEventEmitter, type GraphEventListener, type GraphEventMap, type GraphEventType, type GraphLoadedEvent, type GraphProjection, type GraphSavedEvent, type GraphStats, GraphStorage, GraphTraversal, type GroupMembership, type GroupingResult, type HeuristicConflict, HeuristicExtractionStage, type HeuristicExtractionStageConfig, type HeuristicGuideline, HeuristicManager, type HeuristicMatch, type HeuristicUpdateResult, HierarchyManager, HybridScorer, type HybridScorerOptions, HybridSearchManager, type HybridSearchOptions, type HybridSearchResult, type HybridWeights, type IDistillationPolicy, type IGraphStorage, IMPORTANCE_RANGE, type IMemoryBackend, IOManager, type ISummarizationProvider, type IVectorStore, ImportError, type ImportFormat, type ImportFormatInput, ImportFormatSchema, type ImportResult, ImportanceScorer, type ImportanceScorerConfig, InMemoryBackend, InMemoryVectorStore, IncrementalIndexer, type IncrementalIndexerOptions, type IndexMemoryUsage, type IndexOperation, type IndexOperationType, type IngestInput, type IngestOptions, type IngestResult, InsufficientEntitiesError, InvalidImportanceError, type IssueOptions, type IssueResult, type JSONValue, type JsonSchema, type KeyRecord, KeywordExtractor, type KnowledgeGraph, KnowledgeGraphError, ManagerContext as KnowledgeGraphManager, type LLMProvider, LLMQueryPlanner, type LLMQueryPlannerConfig, LLMSearchExecutor, type LLMSearchExecutorOptions, LOG_PREFIXES, LangChainMemoryAdapter, type LayerRecommendationOptions, type LayerTiming, type LexicalSearchResult, type ListDecisionsOptions, type ListPlansOptions, type ListReflectionsOptions, LocalEmbeddingService, type LogLevel, type LongRunningOperationOptions, LowEntropyContentError, LowercaseCache, type LowercaseData, MCPToolObserverAdapter, MEMORY_TYPES, ManagerContext, type ManagerContextOptions, type MatchedTerm, type MemoryAcquisitionMethod, type MemoryAlert, type MemoryChangeCallback, MemoryEngine, type MemoryEngineConfig, type MemoryEngineEventName, MemoryFormatter, type MemoryFormatterConfig, type MemoryMergeStrategy, MemoryMonitor, type MemorySource, type MemoryThresholds, type MemoryTurn, type MemoryType, type MemoryUsageStats, type MemoryValidationIssue, type MemoryValidationResult, MemoryValidator, type MemoryValidatorConfig, type Contradiction as MemoryValidatorContradiction, type MemoryVisibility, type MergeResult, type MergeStrategy, type MergeStrategyInput, MergeStrategySchema, MockEmbeddingService, type MultiAgentConfig, MultiAgentMemoryManager, NGramIndex, type NGramIndexStats, NameIndex, NoOpDistillationPolicy, type NormalizationOptions, type NormalizationResult, type ObservableDataModelAdapterOptions, type ObservableDataModelShape, type ObservationAddedEvent, type ObservationDedupFilter, ObservationDedupManager, type ObservationDedupManagerConfig, ObservationDedupReportStage, type ObservationDedupReportStageConfig, type ObservationDeletedEvent, ObservationManager, ObservationNormalizer, type ObservationScore, type ObservationSource, ObserverPipeline, type ObserverPipelineOptions, type ObserverPipelineStats, OpenAIEmbeddingService, OperationCancelledError, type OperationResult, OperationType, OptimizedInvertedIndex, OptionalEntityNamesSchema, OptionalTagsSchema, type Outcome, PROCEDURE_ENTITY_TYPE, type PaginatedCacheEntry, type PaginatedResult, type PaginationParams, ParallelSearchExecutor, type ParallelSearchOptions, type ParallelSearchResult, type ParsePaginationOptions, type ParsedTemporalRange, type PathResult, PatternDetector, type PatternResult, type Permission, type PermissionMatrix, type PermissionMatrixRow, type PhaseDefinition, type PhraseNode, type PiiPattern, PiiRedactor, type PiiRedactorOptions, type PipelineStage, PlanManager, type PlanManagerConfig, type PoolEventCallback, type PostingListResult, type PreparedEntity, type ProceduralMemoryEntity, type ProcedureInvoker, ProcedureManager, type ProcedureManagerConfig, ProcedureStore, type ProfileConfig, type ProfileEntity, ProfileManager, type ProfileManagerConfig, type ProfileOptions, type ProfileResponse, type ProgressCallback, type ProgressInfo, type ProgressInfoCallback, type ProgressOptions, ProjectContextManager, type ProjectContextManagerConfig, type ProjectContextUpsertInput, type PromotionCriteria, type PromotionMarkOptions, type PromotionResult, type ProspectiveMemoryConfig, ProspectiveMemoryManager, ProspectivePromotionStage, type ProximityMatch, type ProximityMatchLocation, type ProximityNode, ProximitySearch, type PushSubGoalOptions, QUERY_LIMITS, QUERY_PREFIX, type QuantizationParams, type QuantizedSearchResult, QuantizedVectorStore, type QuantizedVectorStoreOptions, type QuantizedVectorStoreStats, type QueryAnalysis, QueryAnalyzer, type QueryCostEstimate, QueryCostEstimator, type QueryCostEstimatorOptions, type QueryLogEntry, QueryLogger, type QueryLoggerConfig, type QueryNode, QueryParser, type QueryPlan, QueryPlanCache, type QueryPlanCacheOptions, type QueryPlanCacheStats, QueryPlanner, QueryRewriter, type QueryStage, type QueryTrace, QueryTraceBuilder, type QueueStats, RankedSearch, type RateLimitVerdict, RateLimiter, type RateLimiterConfig, RbacMiddleware, type RbacMiddlewareOptions, type RbacPolicy, ReadOnlyMemoryGraphDataError, type ReadonlyKnowledgeGraph, type RecordOutcomeInput, type RedactionResult, type RedactionStats, type RedundancyGroup, RefConflictError, type RefEntry, RefIndex, type RefIndexStats, RefNotFoundError, type RefinementHistoryEntry, type ReflectionEntityOptions, type ReflectionInput, ReflectionManager$1 as ReflectionManager, ReflectionManager as ReflectionMemoryManager, type ReflectionManagerConfig as ReflectionMemoryManagerConfig, type ReflectionOptions, type ReflectionResult, ReflectionStage, type ReflectionStageConfig, type ReinforcementOptions, type RejectDecisionResult, type Relation, RelationBuilder, type RelationCreatedEvent, type RelationDeletedEvent, RelationIndex, type RelationInput, RelationManager, RelationNotFoundError, type RelationProperties, RelationSchema, type RelationValidationError, type RelationValidationResult, type RelationValidationWarning, type RelevanceOptions, type ResolutionResult, type ResourcePermissionOverrides, type ResourceType, type RestHandler, type RestMethod, type RestRequest, type RestResponse, RestRouter, type RestoreResult, type Result, type RetrievalContext, type RetrievalDecision, type RetrievalRound, type RetrieveContextOptions, type RewriteResult, type Role, type RoleAssignment, RoleAssignmentStore, type RoleAssignmentStoreOptions, type RoleProfile, type RouteDefinition, RowLevelFilter, type RowPredicate, type Rule, type RuleConditions, type RuleEvaluationResult, RuleEvaluator, SEARCH_LIMITS, SIMILARITY_WEIGHTS, SQLiteBackend, type SQLiteBackendOptions, SQLiteStorage, type SQLiteStorageWithEmbeddings, SQLiteVectorStore, STOPWORDS, STREAMING_CONFIG, type SalienceComponents, type SalienceContext, SalienceEngine, type SalienceEngineConfig, type SalienceWeights, type SavedSearch, type SavedSearchInput, SavedSearchInputSchema, SavedSearchManager, type SavedSearchUpdateInput, SavedSearchUpdateSchema, type ScheduleOptions, SchemaValidator, type ScoreBoost, type ScoreOptions, type ScoredEntity, type ScoredKeyword, type ScoredResult, type ScoringSignal, SearchCache, type SearchExplanation, SearchFilterChain, type SearchFilters, type SearchFunction, type SearchLayer, SearchManager, type SearchMethod, type SearchQuery, SearchQuerySchema, type SearchResult, SearchSuggestions, SemanticForget, type SemanticForgetOptions, type SemanticForgetResult, type SemanticIndexOptions, type SemanticLayerResult, type SemanticMemoryEntity, SemanticSearch, type SemanticSearchResult, type SessionCheckpointData, SessionCheckpointManager, type SessionConfig, type SessionEntity, type SessionHistoryOptions, SessionManager, type SessionMemoryFilter, type SessionOutcome, SessionQueryBuilder, type SessionSearchOptions, type SessionStatus, SpellChecker, type SpellCheckerConfig, type SpellSuggestion, type SpilloverResult, type SplitOptions, type SplitResult, type StageResult, type StartSessionOptions, StepSequencer, type StorageConfig, type StreamResult, StreamingExporter, type StructuredQuery, type SubQuery, type SuggestOptions, type SuggestToolOptions, type SummarizationConfig, type SummarizationResult, SummarizationService, type SupersedeDecisionResult, type SymbolicFilters, type SymbolicResult, SymbolicSearch, type SymbolicSearchResult, type SynthesisResult, TFIDFEventSync, type TFIDFIndex, TFIDFIndexManager, type TagAlias, type TagAliasInput, TagAliasSchema, TagManager, type Task, type TaskBatchOptions, type TaskHandle, TaskPriority, TaskQueue, type TaskResult, TaskStatus, type TaskSubmitOptions, type TemporalFilterField, type TemporalFocus, TemporalQueryParser, type TemporalRange, type TemporalRelation, TemporalSearch, type TemporalSearchOptions, type TermNode, type TimelineOptions, type TokenBreakdown, type TokenEstimationOptions, type TokenizedEntity, ToolAffordanceManager, type ToolAffordanceManagerConfig, type ToolAffordanceStats, type ToolCallEvent, ToolCallObserver, type ToolResponse, type ToolSuggestion, type Trajectory, type TrajectoryCluster, TrajectoryCompressor, type TrajectoryCompressorConfig, type TrajectoryMergeStrategy, TransactionManager, type TransactionOperation, type TransactionResult, type TransitionEvent, type TransitionFilter, TransitionLedger, type TraversalOptions, type TraversalResult, TypeIndex, type UpdateEntityInput, UpdateEntitySchema, type ValidatedPagination, ValidationError, type ValidationIssue, type ValidationReport, type ValidationResult$1 as ValidationResult, type ValidationWarning, type VectorSearchResult, VisibilityResolver, type VisualizeOptions, type WakeUpOptions, type WakeUpResult, type WeightedRelation, type WeightedTurn, type WildcardNode, type WorkThread, type WorkThreadFilter, WorkThreadManager, type WorkThreadStatus, type WorkerPoolConfig, WorkerPoolManager, WorkerTaskManager, type WorkerTaskManagerStats, type WorkingMemoryConfig, type WorkingMemoryEntity, WorkingMemoryManager, type WorkingMemoryOptions, WorldModelManager, type WorldModelManagerOptions, type WorldStateChange, type WorldStateEntity, WorldStateSnapshot, addUniqueTags, all, allRelationsValidMetadata, applyPagination, asWarning, batchProcess, batchProcessViaWorkers, buildTFVector, calculateIDF, calculateIDFFromTokenSets, calculateTF, calculateTFIDF, calculateTextSimilarity, checkCancellation, chunkArray, cleanupAllCaches, clearAllSearchCaches, compress, compressFile, compressToBase64, computeEntropy, cosineSimilarity, createCustomProfile, createDetailedProgressReporter, createEmbeddingService, createMetadata, createObservableDataModelFromGraph, createProgress, createProgressInfo, createProgressReporter, createStorage, createStorageFromPath, createThrottledProgress, createUncompressedMetadata, createVectorStore, custom, customSync, debounce, decodeProcedure, decompress, decompressFile, decompressFromBase64, defaultMemoryPath, email, ensureMemoryFilePath, entityExists, entityPassesFilters, entityToText, err, escapeCsvFormula, executeWithPhases, extractToolName, filterByCreatedDate, filterByEntityType, filterByImportance, filterByModifiedDate, filterByTags, filterParallel, findEntitiesByNames, findEntityByName, fnv1aHash, formatErrorResponse, formatRawResponse, formatTextResponse, formatToolResponse, formatZodErrors, generateSuggestions, getAllCacheStats, getCompressionRatio, getCurrentTimestamp, getEntityIndex, getEntityNameSet, getPaginationMeta, getPoolStats, getQuickHint, getRoleProfile, getWorkerPoolManager, getWorkerTaskManager, globalMemoryMonitor, groupEntitiesByType, hasAllTags, hasBrotliExtension, hasConfidence, hasMatchingTag, isAgentEntity, isArtifactEntity, isBidirectionalRelation, isCurrentlyValid, isEpisodicMemory, isErr, isOk, isPrefixPattern, isProceduralMemory, isProfileEntity, isSemanticMemory, isSessionEntity, isTemporalRelation, isValidISODate, isWeightedRelation, isWithinDateRange, isWithinImportanceRange, isWorkingMemory, isoDate, l2Normalize, levenshteinDistance, listRoleProfiles, loadConfigFromEnv, logger, mapOk, mapParallel, matchesPhrase, matchesPrefix, max, maxItems, maxLength, mergeConfig, min, minItems, minLength, normalizeTag, normalizeTags, ok, oneOf, paginate, paginateArray, parallelFilter, parallelLimit, parallelMap, parseDateRange, parsePaginationParams, passesEntropyFilter, pattern, permissionsForRole, processBatch, processBatchesWithProgress, processWithRetry, range, rateLimitedProcess, removeEntityByName, removeTags, required, resolveRoleProfile, sanitizeObject, searchCaches, shutdownParallelUtils, cosineSimilarity$1 as textCosineSimilarity, tokenize as textTokenize, throttle, tokenize$1 as tokenize, touchEntity, typeOf, unwrap, unwrapOr, url, validateArrayWithSchema, validateConfig, validateEntity, validateFilePath, validateImportance, validatePagination, validateRelation, validateRelationMetadata, validateRelationsMetadata, validateSafe, validateTags, validateWithSchema, when, withRetry };
|