feat: complete Aider Page Data review workflow
This commit is contained in:
@@ -144,6 +144,28 @@ test('MindSearch never changes legacy web extension and is gated by capability/c
|
||||
assert.ok(extension.available_tools.includes('tkmind_research_cancel'));
|
||||
});
|
||||
|
||||
test('MindSearch uses the container-visible bundled MCP directory', () => {
|
||||
const policy = buildAgentExtensionPolicy(
|
||||
{
|
||||
...DEFAULT_USER_CAPABILITIES,
|
||||
search_external: true,
|
||||
},
|
||||
{
|
||||
sandboxMcp: {
|
||||
containerized: true,
|
||||
serverPath: '/opt/portal/mindspace-sandbox-mcp.mjs',
|
||||
},
|
||||
mindSearchConfig: {
|
||||
enabled: true,
|
||||
mode: 'assist',
|
||||
providers: {},
|
||||
},
|
||||
},
|
||||
);
|
||||
const extension = policy.extensionOverrides.find((ext) => ext.name === 'tkmind-search');
|
||||
assert.equal(extension.args[0], '/opt/portal/tkmind-search-mcp.mjs');
|
||||
});
|
||||
|
||||
test('SearXNG adapter normalizes provider results without requiring a live network', async () => {
|
||||
const result = await searchSearxng('goose', { endpoint: 'http://search.local', fetchImpl: async () => ({ ok: true, json: async () => ({ results: [{ title: 'Goose', url: 'https://example.com', content: 'snippet' }] }) }) });
|
||||
assert.deepEqual(result[0], { title: 'Goose', url: 'https://example.com', snippet: 'snippet', source: 'searxng', rank: 1 });
|
||||
|
||||
Reference in New Issue
Block a user