Skip to content

Commit 658bd5a

Browse files
fix(ui): remove read-only contract violations and stale build artifacts
- Remove analyze_codebase tool from mcp-tools.ts (violated read-only contract) - Remove AnalyzeResponse interface from types/api.ts (unused after above) - Remove vendor-d3 manual chunk from vite.config.ts (d3 not imported) - Clean stale build artifacts (39 files from prior builds) - Rebuild frontend with clean output (5 chunks, no d3 dead weight) Co-Authored-By: Paperclip <noreply@paperclip.ing>
1 parent 12a223d commit 658bd5a

52 files changed

Lines changed: 15 additions & 6468 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/frontend/src/lib/mcp-tools.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,6 @@ export const TOOLS: McpTool[] = [
320320
description: "Find endpoints without auth guards",
321321
category: "security", icon: Shield, params: [], url: "/api/flow/auth?format=json",
322322
},
323-
{
324-
name: "analyze_codebase",
325-
description: "Trigger a full codebase re-analysis (incremental or full)",
326-
category: "security", icon: Shield,
327-
params: [
328-
{ name: "incremental", type: "boolean", description: "Incremental mode (skip unchanged files)", default: "true" },
329-
],
330-
url: (p) => `/api/analyze?incremental=${p.incremental ?? "true"}`,
331-
method: "POST",
332-
},
333-
334323
// ── Code ──────────────────────────────────────────────────────────────────────
335324
{
336325
name: "read_file",

src/main/frontend/src/types/api.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ export interface EdgesListResponse {
9494
total: number;
9595
}
9696

97-
export interface AnalyzeResponse {
98-
status: string;
99-
total_files: number;
100-
files_analyzed: number;
101-
node_count: number;
102-
edge_count: number;
103-
elapsed_ms: number;
104-
}
105-
10697
export interface SearchResult {
10798
id: string;
10899
kind: string;

src/main/frontend/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default defineConfig({
1818
output: {
1919
manualChunks: {
2020
'vendor-react': ['react', 'react-dom', 'react-router-dom'],
21-
'vendor-d3': ['d3'],
2221
'vendor-monaco': ['@monaco-editor/react'],
2322
'vendor-g6': ['@antv/g6'],
2423
},

src/main/resources/static/assets/index-1ROp29qN.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/resources/static/assets/index-B1lkG84X.js

Lines changed: 0 additions & 256 deletions
This file was deleted.

src/main/resources/static/assets/index-B33o9WI4.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/resources/static/assets/index-BAKEtaxl.js

Lines changed: 0 additions & 334 deletions
This file was deleted.

src/main/resources/static/assets/index-BMrDSVEk.js

Lines changed: 0 additions & 236 deletions
This file was deleted.

src/main/resources/static/assets/index-BPbhoAfG.js

Lines changed: 0 additions & 383 deletions
This file was deleted.

src/main/resources/static/assets/index-BdNB_NjE.js

Lines changed: 0 additions & 238 deletions
This file was deleted.

0 commit comments

Comments
 (0)