fix: close marketplace client review findings

This commit is contained in:
2026-08-28 21:01:51 +08:00
parent 8dfa542860
commit 1614f7efc1
25 changed files with 1224 additions and 143 deletions

View File

@@ -24,6 +24,8 @@ import type {
export interface SkillEntry {
readonly id: CodingSkillId;
readonly entryPath: string;
/** Main-verified package root for an installed Marketplace Skill. */
readonly packageRoot?: string;
}
/** A policy row copied from the last verified server catalog. */
@@ -326,7 +328,13 @@ export class EffectivePluginResolver {
if (definition.releaseId) pluginReleaseIds.push(definition.releaseId);
for (const skill of selectedSkills) {
effectiveSkillIds.push(skill.id);
skillEntries.push({ id: skill.id, entryPath: skill.entryPath });
skillEntries.push({
id: skill.id,
entryPath: skill.entryPath,
...(definition.provenance.source === 'marketplace'
? { packageRoot: definition.provenance.packageRoot }
: {}),
});
}
if (!definition.requiresBackend) continue;
for (const operation of definition.operations) {