This commit is contained in:
2025-11-20 13:57:05 +00:00
parent 42974fdc0d
commit 4bb35a8947
2 changed files with 36 additions and 6 deletions

View File

@@ -537,6 +537,7 @@ export class NpmRegistry extends BaseRegistry {
try {
// List all package paths
const packagePaths = await this.storage.listObjects('npm/packages/');
console.log(`[handleSearch] packagePaths (${packagePaths.length}):`, packagePaths.slice(0, 10));
// Extract unique package names from paths (format: npm/packages/{packageName}/...)
const packageNames = new Set<string>();
@@ -546,6 +547,7 @@ export class NpmRegistry extends BaseRegistry {
packageNames.add(match[1]);
}
}
console.log(`[handleSearch] Found ${packageNames.size} packages:`, Array.from(packageNames));
// Load packuments and filter by search text
for (const packageName of packageNames) {