MCPcopy Create free account

hub / github.com/CheMiguel23/MemoryMesh / functions

Functions214 in github.com/CheMiguel23/MemoryMesh

↓ 57 callersMethodemit
* Emits an event with the specified data to all registered listeners.
src/infrastructure/events/EventEmitter.ts:84
↓ 33 callersFunctionformatToolError
({ operation, error,
src/shared/utils/responseFormatter.ts:61
↓ 28 callersMethodhandleTool
(name: string, args: Record<string, any>)
src/integration/tools/handlers/GraphToolHandler.ts:8
↓ 23 callersMethodbuild
* Builds and returns the final schema object.
src/core/schema/SchemaBuilder.ts:253
↓ 19 callersMethodaddStringProperty
* Adds a string property to the schema with an optional enum.
src/core/schema/SchemaBuilder.ts:96
↓ 19 callersFunctionformatToolResponse
({ data, messa
src/shared/utils/responseFormatter.ts:17
↓ 17 callersFunctioncreateNode
(name: string, nodeType: string = 'test')
tests/unit/graph/graphValidator.test.ts:8
↓ 15 callersMethodloadGraph
()
src/infrastructure/storage/IStorage.ts:18
↓ 14 callersFunctioncreateGraph
(nodes: Node[] = [], edges: Edge[] = [])
tests/unit/graph/graphValidator.test.ts:22
↓ 13 callersMethodvalidateNodeExists
* Validates that a node with the given name exists in the graph.
src/core/graph/GraphValidator.ts:15
↓ 12 callersFunctioncreateEdge
(from: string, to: string, edgeType: string = 'related')
tests/unit/graph/graphValidator.test.ts:15
↓ 10 callersMethodvalidateWeight
* Validates that a weight is within the valid range (0-1)
src/core/graph/EdgeWeightUtils.ts:12
↓ 8 callersMethodaddArrayProperty
* Adds an array property to the schema with optional enum values for items.
src/core/schema/SchemaBuilder.ts:129
↓ 8 callersMethodaddRelationship
* Adds a relationship definition to the schema.
src/core/schema/SchemaBuilder.ts:163
↓ 8 callersMethodsaveGraph
(graph: Graph)
src/infrastructure/storage/IStorage.ts:20
↓ 7 callersMethodvalidateEdgeProperties
* Validates edge properties.
src/core/graph/GraphValidator.ts:82
↓ 6 callersMethodaddEdges
(edges: Edge[])
src/application/managers/interfaces/IManagerOperations.ts:41
↓ 6 callersMethodcombineWeights
* Combines multiple edge weights (e.g., for parallel edges) * Uses the maximum weight by default
src/core/graph/EdgeWeightUtils.ts:44
↓ 6 callersMethodcreateUpdateSchema
* Creates an update schema based on the current schema.
src/core/schema/SchemaBuilder.ts:199
↓ 6 callersMethodensureWeight
* Sets a default weight for an edge if none is provided
src/core/graph/EdgeWeightUtils.ts:21
↓ 6 callersMethodupdateWeight
* Updates the weight of an edge based on new evidence * Uses a simple averaging approach
src/core/graph/EdgeWeightUtils.ts:35
↓ 6 callersMethodvalidateGraphStructure
* Validates the entire graph structure.
src/core/graph/GraphValidator.ts:110
↓ 6 callersMethodvalidateNodeProperties
* Validates that a node has required properties.
src/core/graph/GraphValidator.ts:46
↓ 5 callersMethodaddNodes
* Adds new nodes to the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:14
↓ 5 callersFunctioncreateEdge
(from: string, to: string, edgeType: string, weight?: number)
tests/unit/graph/edgeWeightUtils.test.ts:6
↓ 5 callersMethoddeleteEdges
(edges: Edge[])
src/application/managers/interfaces/IManagerOperations.ts:45
↓ 5 callersMethoddeleteNodes
* Deletes nodes from the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:24
↓ 5 callersMethodinitialize
()
src/application/managers/interfaces/IManagerOperations.ts:21
↓ 5 callersMethodreadGraph
* Reads and returns the entire knowledge graph.
src/application/managers/interfaces/ISearchManager.ts:24
↓ 5 callersMethodrollback
* Rolls back the current transaction, executing all rollback actions in reverse order. * @throws Error if no transaction is in progress
src/application/managers/TransactionManager.ts:87
↓ 5 callersMethodupdateNodes
* Updates existing nodes in the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:19
↓ 5 callersMethodvalidateNodeNamesArray
* Validates that the provided value is a valid array of node names.
src/core/graph/GraphValidator.ts:70
↓ 4 callersMethodaddMetadata
* Adds metadata to existing nodes.
src/application/managers/interfaces/IMetadataManager.ts:14
↓ 4 callersMethoddeleteMetadata
* Deletes metadata from nodes.
src/application/managers/interfaces/IMetadataManager.ts:19
↓ 4 callersMethodensureInitialized
* Ensures the registry is initialized before use
src/integration/tools/registry/toolsRegistry.ts:148
↓ 4 callersFunctionformatMetadataEntry
* Formats a field value into a metadata string.
src/core/schema/SchemaProcessor.ts:29
↓ 4 callersMethodopenNodes
* Retrieves specific nodes from the knowledge graph by their names.
src/application/managers/interfaces/ISearchManager.ts:19
↓ 4 callersMethodparseMetadataEntry
* Converts a raw metadata string to a structured entry
src/core/metadata/MetadataProcessor.ts:9
↓ 4 callersMethodupdateEdges
(edges: EdgeUpdate[])
src/application/managers/interfaces/IManagerOperations.ts:43
↓ 4 callersMethodvalidateEdgeUniqueness
* Validates that an edge is unique in the graph.
src/core/graph/GraphValidator.ts:33
↓ 3 callersMethodallowAdditionalProperties
* Sets whether additional properties are allowed in the schema.
src/core/schema/SchemaBuilder.ts:181
↓ 3 callersMethodbeginTransaction
* Begins a new transaction. * @throws Error if a transaction is already in progress
src/application/managers/TransactionManager.ts:28
↓ 3 callersMethodcommit
* Commits the current transaction. * @throws Error if no transaction is in progress
src/application/managers/TransactionManager.ts:64
↓ 3 callersFunctionformatPartialSuccess
({ operation, attempte
src/shared/utils/responseFormatter.ts:95
↓ 3 callersMethodgetEdges
(filter?: EdgeFilter)
src/application/managers/interfaces/IManagerOperations.ts:47
↓ 3 callersMethodhandleToolCall
(toolName: string, args: Record<string, any>, knowledgeGraphManager: ApplicationManager)
src/integration/tools/DynamicSchemaToolRegistry.ts:23
↓ 3 callersMethodsearchNodes
* Searches for nodes in the knowledge graph based on a query.
src/application/managers/interfaces/ISearchManager.ts:14
↓ 3 callersFunctionupdateMetadataEntry
(key: string, value: unknown)
src/core/schema/SchemaProcessor.ts:165
↓ 3 callersMethodvalidateEdgeReferences
* Validates that all referenced nodes in edges exist.
src/core/graph/GraphValidator.ts:100
↓ 3 callersMethodvalidateNodeDoesNotExist
* Validates that a node with the given name does not exist in the graph.
src/core/graph/GraphValidator.ts:24
↓ 3 callersMethodvalidateNodeNameProperty
* Validates that a partial node update has a name property.
src/core/graph/GraphValidator.ts:61
↓ 2 callersMethodensureStorageExists
* Ensures the storage file and directory exist
src/infrastructure/storage/JsonLineStorage.ts:32
↓ 2 callersMethodgenerateEdgeId
* Generates a unique ID for an edge based on its properties.
src/infrastructure/storage/JsonLineStorage.ts:163
↓ 2 callersMethodgetAllTools
* Gets all registered tools
src/integration/tools/registry/toolsRegistry.ts:72
↓ 2 callersMethodgetEdgeManager
* Creates or returns an existing instance of EdgeManager
src/application/managers/ManagerFactory.ts:46
↓ 2 callersMethodgetMetadataManager
* Creates or returns an existing instance of MetadataManager
src/application/managers/ManagerFactory.ts:56
↓ 2 callersMethodgetNodeManager
* Creates or returns an existing instance of NodeManager
src/application/managers/ManagerFactory.ts:36
↓ 2 callersMethodgetSearchManager
* Creates or returns an existing instance of SearchManager
src/application/managers/ManagerFactory.ts:66
↓ 2 callersMethodgetTools
()
src/integration/tools/DynamicSchemaToolRegistry.ts:21
↓ 2 callersMethodgetTransactionManager
* Creates or returns an existing instance of TransactionManager
src/application/managers/ManagerFactory.ts:76
↓ 2 callersMethodhasTool
* Checks if a specific tool exists
src/integration/tools/registry/toolsRegistry.ts:140
↓ 2 callersMethodloadSchema
* Loads a specific schema by name.
src/core/schema/SchemaLoader.ts:34
↓ 2 callersMethodoff
* Removes an event listener for the specified event.
src/infrastructure/events/EventEmitter.ts:49
↓ 2 callersMethodon
* Adds an event listener for the specified event.
src/infrastructure/events/EventEmitter.ts:28
↓ 1 callersMethodbeginTransaction
()
src/application/operations/TransactionOperations.ts:12
↓ 1 callersMethodclearIndices
* Clears all edge indices.
src/infrastructure/storage/JsonLineStorage.ts:170
↓ 1 callersMethodcommit
()
src/application/operations/TransactionOperations.ts:18
↓ 1 callersMethodconvertToSchemaBuilder
* Converts a JSON schema object into a SchemaBuilder instance.
src/core/schema/SchemaLoader.ts:54
↓ 1 callersFunctioncreateMockApplicationManager
()
tests/unit/handlers/searchToolHandler.test.ts:7
↓ 1 callersFunctioncreateMockApplicationManager
()
tests/unit/handlers/graphToolHandler.test.ts:7
↓ 1 callersFunctioncreateSchemaNode
( data: NodeData, schema: SchemaConfig, nodeType: string )
src/core/schema/SchemaProcessor.ts:39
↓ 1 callersMethodfilterByKey
* Filters metadata entries by key
src/core/metadata/MetadataProcessor.ts:59
↓ 1 callersMethodgenerateToolsForSchema
* Generates tools for a given schema
src/integration/tools/DynamicSchemaToolRegistry.ts:89
↓ 1 callersMethodgetHandler
* Gets the appropriate handler for a given tool name
src/integration/tools/handlers/ToolHandlerFactory.ts:37
↓ 1 callersMethodgetInstance
* Gets the singleton instance
src/integration/tools/DynamicSchemaToolRegistry.ts:42
↓ 1 callersMethodgetInstance
* Gets the singleton instance of ToolsRegistry
src/integration/tools/registry/toolsRegistry.ts:24
↓ 1 callersMethodgetInstance
* Gets the singleton instance of DynamicToolManager
src/integration/tools/registry/dynamicTools.ts:22
↓ 1 callersMethodgetTools
* Gets all dynamically generated tools
src/integration/tools/registry/dynamicTools.ts:49
↓ 1 callersFunctionhandleCallToolRequest
( request: ToolCallRequest, knowledgeGraphManager: ApplicationManager )
src/integration/tools/callToolHandler.ts:18
↓ 1 callersFunctionhandleSchemaDelete
( nodeName: string, nodeType: string, applicationManager: ApplicationManager )
src/core/schema/SchemaProcessor.ts:325
↓ 1 callersFunctionhandleSchemaUpdate
( updates: NodeData, schema: SchemaConfig, nodeType: string, applicationManager: ApplicationMa
src/core/schema/SchemaProcessor.ts:238
↓ 1 callersFunctioninitializeDynamicTools
()
src/integration/tools/DynamicSchemaToolRegistry.ts:337
↓ 1 callersMethodisDynamicTool
* Checks if a tool name corresponds to a dynamic tool
src/integration/tools/registry/dynamicTools.ts:98
↓ 1 callersMethodisInTransaction
* Checks if a transaction is currently in progress.
src/application/managers/TransactionManager.ts:126
↓ 1 callersMethodisInitialized
* Checks if factory is initialized
src/integration/tools/handlers/ToolHandlerFactory.ts:64
↓ 1 callersMethodloadGraph
* Loads the entire knowledge graph from storage and builds the edge indices.
src/infrastructure/storage/JsonLineStorage.ts:65
↓ 1 callersFunctionmain
()
src/index.ts:26
↓ 1 callersMethodrollback
()
src/application/operations/TransactionOperations.ts:24
↓ 1 callersFunctionupdateSchemaNode
( updates: NodeData, currentNode: Node, schema: SchemaConfig, currentGraph: Graph )
src/core/schema/SchemaProcessor.ts:128
↓ 1 callersFunctionvalidatePropertySchema
(prop: SchemaProperty, path: string)
tests/unit/tools/mcpCompliance.test.ts:64
↓ 1 callersMethodvalidateSchema
* Validates a schema definition. * @throws {Error} If the schema is invalid
src/core/schema/SchemaLoader.ts:121
MethodaddEdges
(edges: Edge[])
src/application/managers/GraphManager.ts:43
MethodaddEdges
* Adds new edges to the knowledge graph.
src/application/managers/EdgeManager.ts:16
MethodaddEdges
(edges: Edge[])
src/application/managers/ApplicationManager.ts:51
MethodaddEdges
(edges: Edge[])
src/application/operations/GraphOperations.ts:50
MethodaddMetadata
(metadata: MetadataAddition[])
src/application/managers/GraphManager.ts:60
MethodaddMetadata
* Adds metadata to existing nodes.
src/application/managers/MetadataManager.ts:16
MethodaddMetadata
(metadata: MetadataAddition[])
src/application/managers/ApplicationManager.ts:67
MethodaddMetadata
(metadata: MetadataAddition[])
src/application/managers/interfaces/IManagerOperations.ts:54
MethodaddMetadata
(metadata: MetadataAddition[])
src/application/operations/GraphOperations.ts:75
next →1–100 of 214, ranked by callers