mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
feat(analysis): 添加分析查看器页面 (#122)
- 新增 AnalysisPage 页面查看 /workflow:analyze-with-file 分析结果 - 支持 Tab 分组展示:讨论记录、结论、代码探索、视角分析 - Markdown 内容富文本渲染,JSON 数据结构化卡片展示 - 添加后端 API 路由 /api/analysis - 添加侧边栏导航入口和中英文翻译 Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,7 @@ import { handleOrchestratorRoutes } from './routes/orchestrator-routes.js';
|
||||
import { handleConfigRoutes } from './routes/config-routes.js';
|
||||
import { handleTeamRoutes } from './routes/team-routes.js';
|
||||
import { handleNotificationRoutes } from './routes/notification-routes.js';
|
||||
import { handleAnalysisRoutes } from './routes/analysis-routes.js';
|
||||
|
||||
// Import WebSocket handling
|
||||
import { handleWebSocketUpgrade, broadcastToClients, extractSessionIdFromPath } from './websocket.js';
|
||||
@@ -434,6 +435,11 @@ export async function startServer(options: ServerOptions = {}): Promise<http.Ser
|
||||
if (await handleDashboardRoutes(routeContext)) return;
|
||||
}
|
||||
|
||||
// Analysis routes (/api/analysis/*)
|
||||
if (pathname.startsWith('/api/analysis')) {
|
||||
if (await handleAnalysisRoutes(routeContext)) return;
|
||||
}
|
||||
|
||||
// CLI sessions (PTY) routes (/api/cli-sessions/*) - independent from /api/cli/*
|
||||
if (pathname.startsWith('/api/cli-sessions')) {
|
||||
if (await handleCliSessionsRoutes(routeContext)) return;
|
||||
|
||||
Reference in New Issue
Block a user