feat(coding): add core host api composition

This commit is contained in:
2026-08-23 20:00:35 +08:00
parent 98bac20639
commit 22b4a9f9c4
23 changed files with 2258 additions and 59 deletions

View File

@@ -6,7 +6,9 @@
export function shouldUseLoopbackHostApi(path: string, method = 'GET'): boolean {
const normalizedMethod = method.toUpperCase();
const pathname = path.split('?', 1)[0] || path;
if (pathname === '/api/events' || pathname === '/api/opencode/events') return true;
if (pathname === '/api/events'
|| pathname === '/api/opencode/events'
|| pathname === '/api/coding/events') return true;
if (pathname.startsWith('/api/ai-proxy/')) return true;
if (pathname.includes('/events') && pathname.startsWith('/api/image-workspace/')) return true;
if (