fix(marketplace): close client review findings
This commit is contained in:
@@ -220,6 +220,10 @@ function validateBinding(value: AccountBinding | null): AccountBinding | null {
|
||||
function marketplaceSkillConflicts(records: readonly DefinitionRecord[]): ReadonlySet<string> {
|
||||
const blocked = new Set<string>();
|
||||
const owned = new Set<string>(CORE_CODING_SKILL_IDS);
|
||||
for (const { definition } of records) {
|
||||
if (definition.provenance.source === 'marketplace') continue;
|
||||
for (const { id } of definition.skills) owned.add(id);
|
||||
}
|
||||
for (const { definition } of records) {
|
||||
if (definition.provenance.source !== 'marketplace') continue;
|
||||
const conflicts = definition.skills.some(({ id }) => owned.has(id));
|
||||
|
||||
Reference in New Issue
Block a user