mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
fix: consolidate icon imports, fix stale refs and package name collision (#2343)
* fix: consolidate icon imports, fix stale refs and package name collision three components were importing directly from lucide-react instead of going through the centralized @/lib/lucide-icons module like the rest of the codebase. added the missing Keyboard and BarChart2 exports to the icons module and updated the imports. also: - removed duplicate mermaid init comment in ProcessFlowModal - replaced placeholder issue #XXX with a descriptive note in git.ts - updated stale KuzuDB reference to LadybugDB in ARCHITECTURE.md - renamed gitnexus-web package.json name from "gitnexus" to "gitnexus-web" to avoid collision with the CLI package * fix: complete package rename in lockfile and cite #2054 in git.ts comment Address tri-review findings: package-lock.json name fields (top-level and packages[""]) now match the renamed gitnexus-web package, and the getCanonicalRemote doc comment cites #2054 instead of dropping the issue reference. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore(autofix): apply prettier + eslint fixes via /autofix command --------- Co-authored-by: Gergő Magyar <gergomagyar@icloud.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
63527cf44d
commit
6ef173fc51
8 changed files with 19 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ Monorepo: **CLI/MCP** (`gitnexus/`) + **browser UI** (`gitnexus-web/`).
|
|||
|
||||
1. **Ingestion** — `analyze.ts` → `runFullAnalysis` (`run-analyze.ts`) → `runPipelineFromRepo` (`pipeline.ts`). DAG of 14 phases builds a `KnowledgeGraph` in memory, then loads into LadybugDB under `.gitnexus/`. Repo registered in `~/.gitnexus/registry.json` for MCP discovery.
|
||||
|
||||
2. **Persistence** — `repo-manager.ts` (paths, registry, KuzuDB cleanup). `lbug-adapter.ts` (graph load, queries, embedding batches).
|
||||
2. **Persistence** — `repo-manager.ts` (paths, registry, LadybugDB cleanup). `lbug-adapter.ts` (graph load, queries, embedding batches).
|
||||
|
||||
3. **Query layer** — three interfaces to the same backend:
|
||||
- **MCP (stdio):** `mcp.ts` → `LocalBackend` → tools (`tools.ts`) + resources (`resources.ts`)
|
||||
|
|
|
|||
4
gitnexus-web/package-lock.json
generated
4
gitnexus-web/package-lock.json
generated
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "gitnexus",
|
||||
"name": "gitnexus-web",
|
||||
"version": "0.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "gitnexus",
|
||||
"name": "gitnexus-web",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@langchain/anthropic": "^1.3.29",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "gitnexus",
|
||||
"name": "gitnexus-web",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"engines": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
import React, { useState } from 'react';
|
||||
import { X, GitBranch, Search, Filter, Zap, Keyboard, BarChart2, HelpCircle } from 'lucide-react';
|
||||
import {
|
||||
X,
|
||||
GitBranch,
|
||||
Search,
|
||||
Filter,
|
||||
Zap,
|
||||
Keyboard,
|
||||
BarChart2,
|
||||
HelpCircle,
|
||||
} from '@/lib/lucide-icons';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
interface HelpPanelProps {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { useEffect, useRef, useCallback, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Copy, Focus, ZoomIn, ZoomOut } from 'lucide-react';
|
||||
import { Copy, Focus, ZoomIn, ZoomOut } from '@/lib/lucide-icons';
|
||||
import mermaid from 'mermaid';
|
||||
import DOMPurify from 'dompurify';
|
||||
import { ProcessData, generateProcessMermaid } from '../lib/mermaid-generator';
|
||||
|
|
@ -18,7 +18,6 @@ interface ProcessFlowModalProps {
|
|||
isFullScreen?: boolean;
|
||||
}
|
||||
|
||||
// Initialize mermaid with cyan/purple theme matching GitNexus
|
||||
// Initialize mermaid with cyan/purple theme matching GitNexus
|
||||
mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
Sparkles,
|
||||
Lightbulb,
|
||||
Layers,
|
||||
} from 'lucide-react';
|
||||
} from '@/lib/lucide-icons';
|
||||
import { useAppState } from '../hooks/useAppState';
|
||||
import { ProcessFlowModal } from './ProcessFlowModal';
|
||||
import type { ProcessData, ProcessStep } from '../lib/mermaid-generator';
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ export {
|
|||
ArrowDown,
|
||||
ArrowRight,
|
||||
AtSign,
|
||||
BarChart2,
|
||||
Brain,
|
||||
Box,
|
||||
Braces,
|
||||
|
|
@ -71,6 +72,7 @@ export {
|
|||
Heart,
|
||||
HelpCircle,
|
||||
Home,
|
||||
Keyboard,
|
||||
Key,
|
||||
Layers,
|
||||
Lightbulb,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export const getCurrentCommit = (repoPath: string): string => {
|
|||
* Get a stable canonical identifier for the repo's `origin` remote, if any.
|
||||
*
|
||||
* Used to fingerprint two on-disk clones as the same logical repository
|
||||
* (issue #XXX — silent graph drift across sibling clones). `path` alone
|
||||
* (prevents silent graph drift across sibling clones — see #2054). `path` alone
|
||||
* is unreliable: worktrees, "clean clone for indexing" hygiene, and
|
||||
* multi-agent workspaces routinely have the same repo at multiple
|
||||
* absolute paths. The remote URL is the only on-disk signal that
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue