Open
docs: unify user-facing naming to bot-brain; fix dead DeepRust repo links #13
hid24429644Add on Oct 10
docs: unify user-facing naming to bot-brain; fix dead DeepRust repo links #13
Open
Merged fromwy201012/project-brainbot-gateintoxuanwu/bot-brainmaster
Total: 7 files changed+25-25
| @@ -1,8 +1,8 @@ | |||
| 1 | -# Project Brain Skill | 1 | +# bot-brain Skill |
| 2 | 2 | ||
| 3 | ## Description | 3 | ## Description |
| 4 | 4 | ||
| 5 | -Project Brain is a code knowledge graph engine for coding agents. It builds a knowledge graph from your project's source code, documents, and git history. Works for code projects, document-only projects (wikis, design docs), and mixed projects. | 5 | +bot-brain is a code knowledge graph engine for coding agents. It builds a knowledge graph from your project's source code, documents, and git history. Works for code projects, document-only projects (wikis, design docs), and mixed projects. |
| 6 | 6 | ||
| 7 | ## When to Use | 7 | ## When to Use |
| 8 | 8 | ||
| @@ -1,8 +1,8 @@ | |||
| 1 | -# Project Brain | 1 | +# bot-brain |
| 2 | 2 | ||
| 3 | **面向 AI Agent 的项目知识图谱引擎** | 3 | **面向 AI Agent 的项目知识图谱引擎** |
| 4 | 4 | ||
| 5 | -Project Brain 是一个本地化的代码知识图谱引擎,专为 AI 编程助手(如 Claude Code、Cursor、Cline、ZCode 等)设计。它通过分析项目代码、文档和 Git 历史,构建结构化的代码知识图谱,让 AI Agent 能深度理解项目架构。 | 5 | +bot-brain 是一个本地化的代码知识图谱引擎,专为 AI 编程助手(如 Claude Code、Cursor、Cline、ZCode 等)设计。它通过分析项目代码、文档和 Git 历史,构建结构化的代码知识图谱,让 AI Agent 能深度理解项目架构。 |
| 6 | 6 | ||
| 7 | ## 核心特性 | 7 | ## 核心特性 |
| 8 | 8 | ||
| @@ -458,7 +458,7 @@ cp skills/opencode/bot-brain.md .opencode/skills/bot-brain/SKILL.md | |||
| 458 | 458 | ||
| 459 | ## MCP 工具 | 459 | ## MCP 工具 |
| 460 | 460 | ||
| 461 | -Project Brain 提供 20 个 MCP 工具,分为 9 类: | 461 | +bot-brain 提供 20 个 MCP 工具,分为 9 类: |
| 462 | 462 | ||
| 463 | ### 搜索类 | 463 | ### 搜索类 |
| 464 | 464 | ||
| @@ -789,8 +789,8 @@ scope 各限制为 4096 字符。需要正文时应继续使用带游标的 `get | |||
| 789 | 789 | ||
| 790 | ```bash | 790 | ```bash |
| 791 | # 克隆仓库 | 791 | # 克隆仓库 |
| 792 | -git clone https://gitcode.com/DeepRust/project-brain.git | 792 | +git clone https://gitcode.com/xuanwu/bot-brain.git |
| 793 | -cd project-brain | 793 | +cd bot-brain |
| 794 | 794 | ||
| 795 | # 安装依赖 | 795 | # 安装依赖 |
| 796 | uv sync --extra dev | 796 | uv sync --extra dev |
| @@ -825,7 +825,7 @@ uv run ruff check src/ tests/ | |||
| 825 | ### 项目结构 | 825 | ### 项目结构 |
| 826 | 826 | ||
| 827 | ``` | 827 | ``` |
| 828 | -project-brain/ | 828 | +bot-brain/ |
| 829 | ├── src/project_brain/ | 829 | ├── src/project_brain/ |
| 830 | │ ├── build/ # 构建引擎 | 830 | │ ├── build/ # 构建引擎 |
| 831 | │ │ ├── languages/ # 语言规则(Python/TS/Rust/C/C++/Go/Java) | 831 | │ │ ├── languages/ # 语言规则(Python/TS/Rust/C/C++/Go/Java) |
| @@ -930,9 +930,9 @@ project-brain/ | |||
| 930 | 930 | ||
| 931 | ## 常见问题 | 931 | ## 常见问题 |
| 932 | 932 | ||
| 933 | -### Q: Project Brain 会上传我的代码吗? | 933 | +### Q: bot-brain 会上传我的代码吗? |
| 934 | 934 | ||
| 935 | -A: 不会。Project Brain 完全在本地运行,代码数据不会离开你的机器。 | 935 | +A: 不会。bot-brain 完全在本地运行,代码数据不会离开你的机器。 |
| 936 | 936 | ||
| 937 | ### Q: 需要 API Key 吗? | 937 | ### Q: 需要 API Key 吗? |
| 938 | 938 | ||
| @@ -970,8 +970,8 @@ MIT License | |||
| 970 | 970 | ||
| 971 | ## 联系方式 | 971 | ## 联系方式 |
| 972 | 972 | ||
| 973 | -- 项目地址:https://gitcode.com/DeepRust/project-brain | 973 | +- 项目地址:https://gitcode.com/xuanwu/bot-brain |
| 974 | -- 问题反馈:https://gitcode.com/DeepRust/project-brain/issues | 974 | +- 问题反馈:https://gitcode.com/xuanwu/bot-brain/issues |
| 975 | 975 | ||
| 976 | ## 致谢 | 976 | ## 致谢 |
| 977 | 977 | ||
| @@ -981,4 +981,4 @@ MIT License | |||
| 981 | 981 | ||
| 982 | --- | 982 | --- |
| 983 | 983 | ||
| 984 | -**Project Brain** - 让 AI Agent 真正理解你的项目 | 984 | +**bot-brain** - 让 AI Agent 真正理解你的项目 |
| @@ -5,7 +5,7 @@ description = "面向研发 Agent 的项目知识图谱引擎" | |||
| 5 | readme = "README.md" | 5 | readme = "README.md" |
| 6 | license = {text = "MIT"} | 6 | license = {text = "MIT"} |
| 7 | authors = [ | 7 | authors = [ |
| 8 | - {name = "DeepRust"}, | 8 | + {name = "xuanwu"}, |
| 9 | ] | 9 | ] |
| 10 | keywords = ["knowledge-graph", "code-analysis", "mcp", "ai-agents", "tree-sitter", "rust", "cpp"] | 10 | keywords = ["knowledge-graph", "code-analysis", "mcp", "ai-agents", "tree-sitter", "rust", "cpp"] |
| 11 | requires-python = ">=3.10" | 11 | requires-python = ">=3.10" |
| @@ -52,8 +52,8 @@ dev = ["pytest>=7.0"] | |||
| 52 | wiki = ["playwright>=1.40"] | 52 | wiki = ["playwright>=1.40"] |
| 53 | 53 | ||
| 54 | [project.urls] | 54 | [project.urls] |
| 55 | -Homepage = "https://gitcode.com/DeepRust/project-brain" | 55 | +Homepage = "https://gitcode.com/xuanwu/bot-brain" |
| 56 | -Issues = "https://gitcode.com/DeepRust/project-brain/issues" | 56 | +Issues = "https://gitcode.com/xuanwu/bot-brain/issues" |
| 57 | 57 | ||
| 58 | [project.scripts] | 58 | [project.scripts] |
| 59 | bot-brain = "project_brain.__main__:main" | 59 | bot-brain = "project_brain.__main__:main" |
| @@ -1,8 +1,8 @@ | |||
| 1 | -# Project Brain Skill | 1 | +# bot-brain Skill |
| 2 | 2 | ||
| 3 | ## Overview | 3 | ## Overview |
| 4 | 4 | ||
| 5 | -Project Brain provides deep understanding of your project through a knowledge graph (code, docs, git history). Works for code, document-only, and mixed projects. | 5 | +bot-brain provides deep understanding of your project through a knowledge graph (code, docs, git history). Works for code, document-only, and mixed projects. |
| 6 | 6 | ||
| 7 | ## Trigger Conditions | 7 | ## Trigger Conditions |
| 8 | 8 | ||
| @@ -1,8 +1,8 @@ | |||
| 1 | -# Project Brain Skill | 1 | +# bot-brain Skill |
| 2 | 2 | ||
| 3 | ## Description | 3 | ## Description |
| 4 | 4 | ||
| 5 | -Project Brain is a code knowledge graph engine for coding agents. It builds a knowledge graph from your project's source code, documents, and git history. Works for code projects, document-only projects (wikis, design docs), and mixed projects. | 5 | +bot-brain is a code knowledge graph engine for coding agents. It builds a knowledge graph from your project's source code, documents, and git history. Works for code projects, document-only projects (wikis, design docs), and mixed projects. |
| 6 | 6 | ||
| 7 | ## When to Use | 7 | ## When to Use |
| 8 | 8 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | -"""Project Brain CLI entry point.""" | 1 | +"""bot-brain CLI entry point.""" |
| 2 | import argparse | 2 | import argparse |
| 3 | import json | 3 | import json |
| 4 | import logging | 4 | import logging |
| @@ -27,7 +27,7 @@ def main(): | |||
| 27 | prog = argv0 if argv0 and not argv0.startswith("__main__") else "bot-brain" | 27 | prog = argv0 if argv0 and not argv0.startswith("__main__") else "bot-brain" |
| 28 | parser = argparse.ArgumentParser( | 28 | parser = argparse.ArgumentParser( |
| 29 | prog=prog, | 29 | prog=prog, |
| 30 | - description="Project Brain - Knowledge Understanding Platform for Coding Agents", | 30 | + description="bot-brain - Knowledge Understanding Platform for Coding Agents", |
| 31 | ) | 31 | ) |
| 32 | parser.add_argument( | 32 | parser.add_argument( |
| 33 | "--version", "-V", | 33 | "--version", "-V", |
| @@ -438,7 +438,7 @@ def _cmd_serve(project_path: Path, args): | |||
| 438 | sys.exit(2) | 438 | sys.exit(2) |
| 439 | 439 | ||
| 440 | logging.getLogger(__name__).info( | 440 | logging.getLogger(__name__).info( |
| 441 | - "Starting Project Brain MCP server for: %s (transport=%s, host=%s, port=%d)", | 441 | + "Starting bot-brain MCP server for: %s (transport=%s, host=%s, port=%d)", |
| 442 | project_path, options.transport, options.host, options.port, | 442 | project_path, options.transport, options.host, options.port, |
| 443 | ) | 443 | ) |
| 444 | server = ProjectBrainServer(str(project_path), options=options) | 444 | server = ProjectBrainServer(str(project_path), options=options) |
| @@ -811,7 +811,7 @@ def _cmd_repl(project_path: Path): | |||
| 811 | interactive = _sys.stdin.isatty() | 811 | interactive = _sys.stdin.isatty() |
| 812 | 812 | ||
| 813 | if interactive: | 813 | if interactive: |
| 814 | - print(f"Project Brain REPL — {project_path}") | 814 | + print(f"bot-brain REPL — {project_path}") |
| 815 | print("Loading graph...", end=" ", flush=True) | 815 | print("Loading graph...", end=" ", flush=True) |
| 816 | server = ProjectBrainServer(str(project_path)) | 816 | server = ProjectBrainServer(str(project_path)) |
| 817 | server._ensure_initialized(start_watcher=False, read_only=True) | 817 | server._ensure_initialized(start_watcher=False, read_only=True) |
| @@ -325,7 +325,7 @@ class ProjectBrainServer: | |||
| 325 | self._refresh_capabilities() | 325 | self._refresh_capabilities() |
| 326 | 326 | ||
| 327 | self._initialized = True | 327 | self._initialized = True |
| 328 | - logger.info("Project Brain initialized") | 328 | + logger.info("bot-brain initialized") |
| 329 | 329 | ||
| 330 | def _requires_relation_fact_rebuild(self) -> bool: | 330 | def _requires_relation_fact_rebuild(self) -> bool: |
| 331 | """Detect pre-facts caches that cannot support safe relation replace.""" | 331 | """Detect pre-facts caches that cannot support safe relation replace.""" |