mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 01:41:42 +02:00
Tighten managed skill reconcile behavior
This commit is contained in:
1 parent
ce42fb3c97
commit
4de53ef96f
4 files changed
+65
No files matched your search
@@ -1275,6 +1275,7 @@ export function createTestHarness(options: TestHarnessOptions): TestHarness {
|
||||
} satisfies PluginManagedSkillResolution;
|
||||
},
|
||||
async reset(skillKey, companyId) {
|
||||
requireCapability(manifest, capabilitySet, "skills.managed");
|
||||
const existing = await this.get(skillKey, companyId);
|
||||
const declaration = manifest.skills?.find((skill) => skill.skillKey === skillKey);
|
||||
if (!declaration) return existing;
|
||||
|
||||
Reference in new issue
Block a user