fix: resolve strict typecheck fallout in setup, routing, and tests

This commit is contained in:
William Valentin
2026-02-15 23:22:05 -08:00
parent 948d4ac6d8
commit ae70818ec1
18 changed files with 182 additions and 134 deletions
+4 -4
View File
@@ -115,12 +115,12 @@ describe('ToolRegistry', () => {
it('inherits the policy from original', () => {
const reg = new ToolRegistry();
const mockPolicy: ToolPolicy = {
const mockPolicy = {
filterTools: vi.fn((tools) => tools),
isAllowed: vi.fn(() => true),
resolveAllowedNames: vi.fn(() => new Set()),
getEffectiveProfile: vi.fn(() => ({ profile: 'full', source: 'explicit' })),
};
resolveAllowedNames: vi.fn(() => new Set<string>()),
getEffectiveProfile: vi.fn<() => 'full'>(() => 'full'),
} as unknown as ToolPolicy;
reg.setPolicy(mockPolicy);
const cloned = reg.clone();