-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcortex.json
More file actions
209 lines (209 loc) · 5.31 KB
/
Copy pathcortex.json
File metadata and controls
209 lines (209 loc) · 5.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"name": "cortex-plugin-knowledge-graph",
"version": "1.0.0",
"description": "Personal Knowledge Graph Builder \u2014 auto-extracts entities and relationships from chat sessions, CR documents, and tool outputs to build a graph stored alongside vector memory. Enables graph-traversal queries via tools.",
"kind": "esm",
"entryPoint": "mod.ts",
"runtime": "deno",
"author": "CortexPrism",
"license": "MIT",
"repository": "https://github.com/CortexPrism/cortex-plugin-knowledge-graph",
"capabilities": [
"tools",
"memory:store",
"fs:read"
],
"tools": [
{
"name": "graph_add_entity",
"description": "Add an entity node to the knowledge graph",
"params": [
{
"name": "name",
"type": "string",
"description": "Entity name",
"required": true
},
{
"name": "entity_type",
"type": "string",
"description": "Entity type",
"required": true,
"enum": [
"person",
"project",
"service",
"concept",
"file",
"tool",
"decision"
]
},
{
"name": "properties",
"type": "string",
"description": "JSON object of key-value properties",
"required": false
},
{
"name": "source",
"type": "string",
"description": "Where this entity was discovered",
"required": false
}
]
},
{
"name": "graph_add_relationship",
"description": "Add a relationship edge between two entities",
"params": [
{
"name": "from_entity",
"type": "string",
"description": "Source entity name",
"required": true
},
{
"name": "to_entity",
"type": "string",
"description": "Target entity name",
"required": true
},
{
"name": "relationship",
"type": "string",
"description": "Relationship type",
"required": true,
"enum": [
"depends_on",
"implements",
"references",
"owns",
"triggers",
"part_of",
"related_to"
]
},
{
"name": "weight",
"type": "number",
"description": "Relationship weight (default 1.0)",
"required": false
}
]
},
{
"name": "graph_query",
"description": "Query the knowledge graph with graph traversal",
"params": [
{
"name": "query",
"type": "string",
"description": "Natural language query, e.g. 'Find entities related to X'",
"required": true
},
{
"name": "entity_name",
"type": "string",
"description": "Focus entity for the query",
"required": false
},
{
"name": "max_depth",
"type": "number",
"description": "Maximum traversal depth (default 2)",
"required": false
},
{
"name": "relationship_filter",
"type": "string",
"description": "Comma-separated relationship types to filter by",
"required": false
}
]
},
{
"name": "graph_extract_from_text",
"description": "Extract entities and relationships from text content using pattern matching",
"params": [
{
"name": "content",
"type": "string",
"description": "Text content to extract from",
"required": true
},
{
"name": "source",
"type": "string",
"description": "Source identifier for the extracted entities",
"required": false
}
]
},
{
"name": "graph_visualize",
"description": "Return a visualization-ready graph structure",
"params": [
{
"name": "root_entity",
"type": "string",
"description": "Root entity to center visualization on",
"required": false
},
{
"name": "max_nodes",
"type": "number",
"description": "Maximum nodes in the visualization (default 50)",
"required": false
},
{
"name": "format",
"type": "string",
"description": "Output format",
"required": false,
"enum": [
"mermaid",
"json",
"dot"
]
}
]
},
{
"name": "graph_stats",
"description": "Get statistics about the knowledge graph",
"params": []
}
],
"ui": {
"settings": [
{
"section": "General",
"fields": [
{
"key": "defaultMaxDepth",
"type": "number",
"default": 3,
"label": "Default max traversal depth"
},
{
"key": "autoExtract",
"type": "boolean",
"default": true,
"label": "Auto-extract from sessions"
}
]
}
]
},
"dependencies": {},
"peerDependencies": {
"cortex": ">=1.0.0"
},
"aiDisclosure": {
"tools": [
"Claude Code (Anthropic) \u2014 scaffold and implementation"
],
"humanReview": true
}
}