Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CheMiguel23/MemoryMesh
/ functions
Functions
214 in github.com/CheMiguel23/MemoryMesh
⨍
Functions
214
◇
Types & classes
113
↓ 57 callers
Method
emit
* Emits an event with the specified data to all registered listeners.
src/infrastructure/events/EventEmitter.ts:84
↓ 33 callers
Function
formatToolError
({ operation, error,
src/shared/utils/responseFormatter.ts:61
↓ 28 callers
Method
handleTool
(name: string, args: Record<string, any>)
src/integration/tools/handlers/GraphToolHandler.ts:8
↓ 23 callers
Method
build
* Builds and returns the final schema object.
src/core/schema/SchemaBuilder.ts:253
↓ 19 callers
Method
addStringProperty
* Adds a string property to the schema with an optional enum.
src/core/schema/SchemaBuilder.ts:96
↓ 19 callers
Function
formatToolResponse
({ data, messa
src/shared/utils/responseFormatter.ts:17
↓ 17 callers
Function
createNode
(name: string, nodeType: string = 'test')
tests/unit/graph/graphValidator.test.ts:8
↓ 15 callers
Method
loadGraph
()
src/infrastructure/storage/IStorage.ts:18
↓ 14 callers
Function
createGraph
(nodes: Node[] = [], edges: Edge[] = [])
tests/unit/graph/graphValidator.test.ts:22
↓ 13 callers
Method
validateNodeExists
* Validates that a node with the given name exists in the graph.
src/core/graph/GraphValidator.ts:15
↓ 12 callers
Function
createEdge
(from: string, to: string, edgeType: string = 'related')
tests/unit/graph/graphValidator.test.ts:15
↓ 10 callers
Method
validateWeight
* Validates that a weight is within the valid range (0-1)
src/core/graph/EdgeWeightUtils.ts:12
↓ 8 callers
Method
addArrayProperty
* Adds an array property to the schema with optional enum values for items.
src/core/schema/SchemaBuilder.ts:129
↓ 8 callers
Method
addRelationship
* Adds a relationship definition to the schema.
src/core/schema/SchemaBuilder.ts:163
↓ 8 callers
Method
saveGraph
(graph: Graph)
src/infrastructure/storage/IStorage.ts:20
↓ 7 callers
Method
validateEdgeProperties
* Validates edge properties.
src/core/graph/GraphValidator.ts:82
↓ 6 callers
Method
addEdges
(edges: Edge[])
src/application/managers/interfaces/IManagerOperations.ts:41
↓ 6 callers
Method
combineWeights
* Combines multiple edge weights (e.g., for parallel edges) * Uses the maximum weight by default
src/core/graph/EdgeWeightUtils.ts:44
↓ 6 callers
Method
createUpdateSchema
* Creates an update schema based on the current schema.
src/core/schema/SchemaBuilder.ts:199
↓ 6 callers
Method
ensureWeight
* Sets a default weight for an edge if none is provided
src/core/graph/EdgeWeightUtils.ts:21
↓ 6 callers
Method
updateWeight
* Updates the weight of an edge based on new evidence * Uses a simple averaging approach
src/core/graph/EdgeWeightUtils.ts:35
↓ 6 callers
Method
validateGraphStructure
* Validates the entire graph structure.
src/core/graph/GraphValidator.ts:110
↓ 6 callers
Method
validateNodeProperties
* Validates that a node has required properties.
src/core/graph/GraphValidator.ts:46
↓ 5 callers
Method
addNodes
* Adds new nodes to the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:14
↓ 5 callers
Function
createEdge
(from: string, to: string, edgeType: string, weight?: number)
tests/unit/graph/edgeWeightUtils.test.ts:6
↓ 5 callers
Method
deleteEdges
(edges: Edge[])
src/application/managers/interfaces/IManagerOperations.ts:45
↓ 5 callers
Method
deleteNodes
* Deletes nodes from the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:24
↓ 5 callers
Method
initialize
()
src/application/managers/interfaces/IManagerOperations.ts:21
↓ 5 callers
Method
readGraph
* Reads and returns the entire knowledge graph.
src/application/managers/interfaces/ISearchManager.ts:24
↓ 5 callers
Method
rollback
* 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 callers
Method
updateNodes
* Updates existing nodes in the knowledge graph.
src/application/managers/interfaces/INodeManager.ts:19
↓ 5 callers
Method
validateNodeNamesArray
* Validates that the provided value is a valid array of node names.
src/core/graph/GraphValidator.ts:70
↓ 4 callers
Method
addMetadata
* Adds metadata to existing nodes.
src/application/managers/interfaces/IMetadataManager.ts:14
↓ 4 callers
Method
deleteMetadata
* Deletes metadata from nodes.
src/application/managers/interfaces/IMetadataManager.ts:19
↓ 4 callers
Method
ensureInitialized
* Ensures the registry is initialized before use
src/integration/tools/registry/toolsRegistry.ts:148
↓ 4 callers
Function
formatMetadataEntry
* Formats a field value into a metadata string.
src/core/schema/SchemaProcessor.ts:29
↓ 4 callers
Method
openNodes
* Retrieves specific nodes from the knowledge graph by their names.
src/application/managers/interfaces/ISearchManager.ts:19
↓ 4 callers
Method
parseMetadataEntry
* Converts a raw metadata string to a structured entry
src/core/metadata/MetadataProcessor.ts:9
↓ 4 callers
Method
updateEdges
(edges: EdgeUpdate[])
src/application/managers/interfaces/IManagerOperations.ts:43
↓ 4 callers
Method
validateEdgeUniqueness
* Validates that an edge is unique in the graph.
src/core/graph/GraphValidator.ts:33
↓ 3 callers
Method
allowAdditionalProperties
* Sets whether additional properties are allowed in the schema.
src/core/schema/SchemaBuilder.ts:181
↓ 3 callers
Method
beginTransaction
* Begins a new transaction. * @throws Error if a transaction is already in progress
src/application/managers/TransactionManager.ts:28
↓ 3 callers
Method
commit
* Commits the current transaction. * @throws Error if no transaction is in progress
src/application/managers/TransactionManager.ts:64
↓ 3 callers
Function
formatPartialSuccess
({ operation, attempte
src/shared/utils/responseFormatter.ts:95
↓ 3 callers
Method
getEdges
(filter?: EdgeFilter)
src/application/managers/interfaces/IManagerOperations.ts:47
↓ 3 callers
Method
handleToolCall
(toolName: string, args: Record<string, any>, knowledgeGraphManager: ApplicationManager)
src/integration/tools/DynamicSchemaToolRegistry.ts:23
↓ 3 callers
Method
searchNodes
* Searches for nodes in the knowledge graph based on a query.
src/application/managers/interfaces/ISearchManager.ts:14
↓ 3 callers
Function
updateMetadataEntry
(key: string, value: unknown)
src/core/schema/SchemaProcessor.ts:165
↓ 3 callers
Method
validateEdgeReferences
* Validates that all referenced nodes in edges exist.
src/core/graph/GraphValidator.ts:100
↓ 3 callers
Method
validateNodeDoesNotExist
* Validates that a node with the given name does not exist in the graph.
src/core/graph/GraphValidator.ts:24
↓ 3 callers
Method
validateNodeNameProperty
* Validates that a partial node update has a name property.
src/core/graph/GraphValidator.ts:61
↓ 2 callers
Method
ensureStorageExists
* Ensures the storage file and directory exist
src/infrastructure/storage/JsonLineStorage.ts:32
↓ 2 callers
Method
generateEdgeId
* Generates a unique ID for an edge based on its properties.
src/infrastructure/storage/JsonLineStorage.ts:163
↓ 2 callers
Method
getAllTools
* Gets all registered tools
src/integration/tools/registry/toolsRegistry.ts:72
↓ 2 callers
Method
getEdgeManager
* Creates or returns an existing instance of EdgeManager
src/application/managers/ManagerFactory.ts:46
↓ 2 callers
Method
getMetadataManager
* Creates or returns an existing instance of MetadataManager
src/application/managers/ManagerFactory.ts:56
↓ 2 callers
Method
getNodeManager
* Creates or returns an existing instance of NodeManager
src/application/managers/ManagerFactory.ts:36
↓ 2 callers
Method
getSearchManager
* Creates or returns an existing instance of SearchManager
src/application/managers/ManagerFactory.ts:66
↓ 2 callers
Method
getTools
()
src/integration/tools/DynamicSchemaToolRegistry.ts:21
↓ 2 callers
Method
getTransactionManager
* Creates or returns an existing instance of TransactionManager
src/application/managers/ManagerFactory.ts:76
↓ 2 callers
Method
hasTool
* Checks if a specific tool exists
src/integration/tools/registry/toolsRegistry.ts:140
↓ 2 callers
Method
loadSchema
* Loads a specific schema by name.
src/core/schema/SchemaLoader.ts:34
↓ 2 callers
Method
off
* Removes an event listener for the specified event.
src/infrastructure/events/EventEmitter.ts:49
↓ 2 callers
Method
on
* Adds an event listener for the specified event.
src/infrastructure/events/EventEmitter.ts:28
↓ 1 callers
Method
beginTransaction
()
src/application/operations/TransactionOperations.ts:12
↓ 1 callers
Method
clearIndices
* Clears all edge indices.
src/infrastructure/storage/JsonLineStorage.ts:170
↓ 1 callers
Method
commit
()
src/application/operations/TransactionOperations.ts:18
↓ 1 callers
Method
convertToSchemaBuilder
* Converts a JSON schema object into a SchemaBuilder instance.
src/core/schema/SchemaLoader.ts:54
↓ 1 callers
Function
createMockApplicationManager
()
tests/unit/handlers/searchToolHandler.test.ts:7
↓ 1 callers
Function
createMockApplicationManager
()
tests/unit/handlers/graphToolHandler.test.ts:7
↓ 1 callers
Function
createSchemaNode
( data: NodeData, schema: SchemaConfig, nodeType: string )
src/core/schema/SchemaProcessor.ts:39
↓ 1 callers
Method
filterByKey
* Filters metadata entries by key
src/core/metadata/MetadataProcessor.ts:59
↓ 1 callers
Method
generateToolsForSchema
* Generates tools for a given schema
src/integration/tools/DynamicSchemaToolRegistry.ts:89
↓ 1 callers
Method
getHandler
* Gets the appropriate handler for a given tool name
src/integration/tools/handlers/ToolHandlerFactory.ts:37
↓ 1 callers
Method
getInstance
* Gets the singleton instance
src/integration/tools/DynamicSchemaToolRegistry.ts:42
↓ 1 callers
Method
getInstance
* Gets the singleton instance of ToolsRegistry
src/integration/tools/registry/toolsRegistry.ts:24
↓ 1 callers
Method
getInstance
* Gets the singleton instance of DynamicToolManager
src/integration/tools/registry/dynamicTools.ts:22
↓ 1 callers
Method
getTools
* Gets all dynamically generated tools
src/integration/tools/registry/dynamicTools.ts:49
↓ 1 callers
Function
handleCallToolRequest
( request: ToolCallRequest, knowledgeGraphManager: ApplicationManager )
src/integration/tools/callToolHandler.ts:18
↓ 1 callers
Function
handleSchemaDelete
( nodeName: string, nodeType: string, applicationManager: ApplicationManager )
src/core/schema/SchemaProcessor.ts:325
↓ 1 callers
Function
handleSchemaUpdate
( updates: NodeData, schema: SchemaConfig, nodeType: string, applicationManager: ApplicationMa
src/core/schema/SchemaProcessor.ts:238
↓ 1 callers
Function
initializeDynamicTools
()
src/integration/tools/DynamicSchemaToolRegistry.ts:337
↓ 1 callers
Method
isDynamicTool
* Checks if a tool name corresponds to a dynamic tool
src/integration/tools/registry/dynamicTools.ts:98
↓ 1 callers
Method
isInTransaction
* Checks if a transaction is currently in progress.
src/application/managers/TransactionManager.ts:126
↓ 1 callers
Method
isInitialized
* Checks if factory is initialized
src/integration/tools/handlers/ToolHandlerFactory.ts:64
↓ 1 callers
Method
loadGraph
* Loads the entire knowledge graph from storage and builds the edge indices.
src/infrastructure/storage/JsonLineStorage.ts:65
↓ 1 callers
Function
main
()
src/index.ts:26
↓ 1 callers
Method
rollback
()
src/application/operations/TransactionOperations.ts:24
↓ 1 callers
Function
updateSchemaNode
( updates: NodeData, currentNode: Node, schema: SchemaConfig, currentGraph: Graph )
src/core/schema/SchemaProcessor.ts:128
↓ 1 callers
Function
validatePropertySchema
(prop: SchemaProperty, path: string)
tests/unit/tools/mcpCompliance.test.ts:64
↓ 1 callers
Method
validateSchema
* Validates a schema definition. * @throws {Error} If the schema is invalid
src/core/schema/SchemaLoader.ts:121
Method
addEdges
(edges: Edge[])
src/application/managers/GraphManager.ts:43
Method
addEdges
* Adds new edges to the knowledge graph.
src/application/managers/EdgeManager.ts:16
Method
addEdges
(edges: Edge[])
src/application/managers/ApplicationManager.ts:51
Method
addEdges
(edges: Edge[])
src/application/operations/GraphOperations.ts:50
Method
addMetadata
(metadata: MetadataAddition[])
src/application/managers/GraphManager.ts:60
Method
addMetadata
* Adds metadata to existing nodes.
src/application/managers/MetadataManager.ts:16
Method
addMetadata
(metadata: MetadataAddition[])
src/application/managers/ApplicationManager.ts:67
Method
addMetadata
(metadata: MetadataAddition[])
src/application/managers/interfaces/IManagerOperations.ts:54
Method
addMetadata
(metadata: MetadataAddition[])
src/application/operations/GraphOperations.ts:75
next →
1–100 of 214, ranked by callers