feat(plugins): merge Skill management into plugins

This commit is contained in:
inman
2026-09-07 18:36:33 +08:00
parent bb8a19eecf
commit ab9f889233
49 changed files with 461 additions and 1218 deletions

View File

@@ -134,7 +134,7 @@ describe('CodingCapabilityRegistry', () => {
expect(unavailable.tools).toEqual([]);
});
it('does not wait for policy refresh when child or parent core-only resources cannot consume plugins', async () => {
it('does not wait for policy refresh when child or legacy standalone assignments cannot consume plugins', async () => {
const refresh = vi.fn(() => new Promise<void>(() => {}));
const policyClient = { getState: () => policy, refresh };
const child = await registry({ policyClient }).resolveWorkerResources({
@@ -149,7 +149,7 @@ describe('CodingCapabilityRegistry', () => {
});
expect(child.tools).toEqual([]);
expect(coreOnly.effectiveSkillIds).toEqual(['grilling']);
expect(coreOnly.effectiveSkillIds).toEqual([]);
expect(refresh).not.toHaveBeenCalled();
});