agentic-knowledge-mcp 1.6.0 → 1.6.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-knowledge-mcp",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "A Model Context Protocol server for agentic knowledge guidance with web-based documentation loading and intelligent search instructions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/cli/dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"commander": "^12.0.0",
|
|
30
30
|
"js-yaml": "4.1.0",
|
|
31
31
|
"ora": "^8.0.1",
|
|
32
|
-
"@codemcp/knowledge-content-loader": "1.6.
|
|
33
|
-
"@codemcp/knowledge
|
|
34
|
-
"@codemcp/knowledge": "1.6.
|
|
32
|
+
"@codemcp/knowledge-content-loader": "1.6.1",
|
|
33
|
+
"@codemcp/knowledge": "1.6.1",
|
|
34
|
+
"@codemcp/knowledge-core": "1.6.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^9.34.0",
|
|
@@ -184,18 +184,30 @@ async function* walkFiles(dir) {
|
|
|
184
184
|
}
|
|
185
185
|
for (const entry of entries) {
|
|
186
186
|
const absPath = join(dir, entry.name);
|
|
187
|
-
|
|
187
|
+
// For symlinks, stat() follows the link to get the real type.
|
|
188
|
+
// entry.isDirectory() / entry.isFile() return false for symlinks.
|
|
189
|
+
let isDir = entry.isDirectory();
|
|
190
|
+
let isFile = entry.isFile();
|
|
191
|
+
if (entry.isSymbolicLink()) {
|
|
192
|
+
try {
|
|
193
|
+
const s = await stat(absPath);
|
|
194
|
+
isDir = s.isDirectory();
|
|
195
|
+
isFile = s.isFile();
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
continue; // broken symlink — skip
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (isDir) {
|
|
188
202
|
if (!IGNORED_NAMES.has(entry.name)) {
|
|
189
203
|
yield* walkFiles(absPath);
|
|
190
204
|
}
|
|
191
205
|
}
|
|
192
|
-
else if (
|
|
206
|
+
else if (isFile) {
|
|
193
207
|
if (!IGNORED_FILES.has(entry.name)) {
|
|
194
208
|
yield absPath;
|
|
195
209
|
}
|
|
196
210
|
}
|
|
197
|
-
// symlinks: follow only if they point to files (readdir withFileTypes
|
|
198
|
-
// resolves symlinks on most platforms)
|
|
199
211
|
}
|
|
200
212
|
}
|
|
201
213
|
/** Collect all walkable file paths into an array (respects optional glob include). */
|