feat: complete Aider Page Data review workflow

This commit is contained in:
john
2026-07-25 09:47:25 +08:00
parent be9c25f1d0
commit 104fb4e370
15 changed files with 914 additions and 30 deletions
+22
View File
@@ -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 });