@phren/cli 0.0.47 → 0.0.48
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/mcp/dist/tools/search.js +6 -2
- package/package.json +1 -1
package/mcp/dist/tools/search.js
CHANGED
|
@@ -542,9 +542,13 @@ async function handleListProjects(ctx, { page, page_size }) {
|
|
|
542
542
|
storeProjects.push({ name: projName, store: store.name });
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
//
|
|
545
|
+
// Filter primary projects: exclude any that are claimed by a non-primary store
|
|
546
|
+
// (they'll appear under their store instead), and hide native: auto-indexed entries
|
|
547
|
+
const storeClaimedNames = new Set(storeProjects.map((sp) => sp.name));
|
|
548
|
+
const filteredPrimary = primaryProjects.filter((p) => !storeClaimedNames.has(p) && !p.startsWith("native:"));
|
|
549
|
+
// Combine: primary-only projects + non-primary store projects
|
|
546
550
|
const allProjects = [
|
|
547
|
-
...
|
|
551
|
+
...filteredPrimary.map((p) => ({ name: p, store: undefined })),
|
|
548
552
|
...storeProjects,
|
|
549
553
|
];
|
|
550
554
|
if (allProjects.length === 0)
|