fix: resolve strict typecheck fallout in setup, routing, and tests
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user