@liendev/lien 0.30.0 → 0.32.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/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9245,11 +9245,11 @@ async function handleGetFilesContext(args, ctx) {
|
|
|
9245
9245
|
}
|
|
9246
9246
|
|
|
9247
9247
|
// src/mcp/handlers/list-functions.ts
|
|
9248
|
-
import { SYMBOL_TYPE_MATCHES } from "@liendev/core";
|
|
9249
9248
|
async function performContentScan(vectorDB, args, log) {
|
|
9250
9249
|
log("Falling back to content scan...");
|
|
9251
9250
|
let results = await vectorDB.scanWithFilter({
|
|
9252
9251
|
language: args.language,
|
|
9252
|
+
symbolType: args.symbolType,
|
|
9253
9253
|
limit: 200
|
|
9254
9254
|
// Fetch more, we'll filter by symbolName
|
|
9255
9255
|
});
|
|
@@ -9260,13 +9260,6 @@ async function performContentScan(vectorDB, args, log) {
|
|
|
9260
9260
|
return symbolName && regex.test(symbolName);
|
|
9261
9261
|
});
|
|
9262
9262
|
}
|
|
9263
|
-
if (args.symbolType) {
|
|
9264
|
-
const allowedTypes = SYMBOL_TYPE_MATCHES[args.symbolType];
|
|
9265
|
-
results = results.filter((r) => {
|
|
9266
|
-
const recordType2 = r.metadata?.symbolType;
|
|
9267
|
-
return recordType2 && allowedTypes?.has(recordType2);
|
|
9268
|
-
});
|
|
9269
|
-
}
|
|
9270
9263
|
return {
|
|
9271
9264
|
results: results.slice(0, 50),
|
|
9272
9265
|
method: "content"
|