-
Notifications
You must be signed in to change notification settings - Fork 0
Releases: xiaoletian64/obs-code
Releases · xiaoletian64/obs-code
v1.1.0 — 多策略搜索链 · Web UI 统一 · MCP 修复
🔥 v1.1.0 — 让 AI 找代码从"碰运气"变成"精准定位"
修了什么(P0 级)
- MCP tools/list 不可见 — AI 工具(Claude/Cursor/Codex)现在能发现所有 9 个核心工具,不再因启动目录不同而只看到 2 个
- 索引 DEBUG 噪音 — 删除 17 个调试日志,
obs index输出干净了,不再污染 AI 上下文 - Web UI 入口分裂 —
obs web(D3)和obs web-ai(Cytoscape)合并为一个入口
加了什么
- 5 级降级搜索链 — 精确匹配 → 模糊匹配 → FTS5 全文 → 中文同义词/拼音 → 多维组合搜索(全限定名拆分+驼峰拆分+前后缀匹配),尽可能找到正确符号
- 搜索过滤参数 —
file_types、directories、symbol_types、regex,精准过滤搜索结果 - Web UI 动效 — Cytoscape 力导向布局 800ms 动画、节点 hover 放大 + 关联边高亮、点击聚焦平滑缩放、搜索结果 hover 右滑效果
- Web UI AI 解释 — 节点详情面板新增"AI 解释"按钮,调用 LLM 解读代码功能
- Web UI 关联性增强 — 出边/入边按类型分组展示、doc 文档、文件路径+行号
- CHANGELOG.md — 版本记录
- README 全面升级 — 对比图、性能基准、架构图、语言矩阵、工具矩阵
性能基准
| 项目 | 规模 | 节点 | 边 | 索引速度 |
|---|---|---|---|---|
| Express | 简单 | 376 | 6 | 15 f/s |
| Axios | 中等 | 636 | 1,224 | 267 f/s |
| NestJS | 复杂 | 5,977 | 11,580 | 244 f/s |
| Vitest | 大型 | 10,054 | 6,143 | 33 f/s |
Full Changelog: https://github.com/xiaoletian64/obs-code/commits/v1.1.0
Assets 2
obs-code v1.0.0
obs-code v1.0.0 - 首个正式版本
一键安装
curl -fsSL https://raw.githubusercontent.com/xiaoletian64/obs-code/main/install.sh | bash主要功能
- 🔍 代码知识图谱:自动解析项目,构建符号关系图
- 🎯 影响分析:改代码前先看牵连范围
- 🗺️ 功能梳理:自然语言描述功能,返回阅读链
- 🌐 Web UI:D3.js 可视化图谱
- 🔌 MCP 集成:支持 Claude Code / Cursor / OpenCode
支持的 AI 工具
| 工具 | 安装命令 |
|---|---|
| Claude Code | obs install --tool claude |
| Cursor | obs install --tool cursor |
| OpenCode | obs install --tool opencode |
| 全部 | obs install --tool all |
使用示例
# 索引项目 obs index /path/to/project # 启动 Web UI obs web # 在 AI 工具中使用 # "用 obs 分析登录功能,改之前先看影响面"
支持语言
TypeScript, JavaScript, Python, Go, Rust, Java, Swift, Kotlin, PHP, Ruby, C#, Dart, Lua, C/C++
Assets 2
v0.1.0 — 首次公开发布
v0.1.0
Features
- 代码知识图谱索引(TypeScript/JS/Python/Go/Rust 等 14 种语言)
- MCP 工具: obs_index, obs_find, obs_impact, obs_plan, obs_feature_map, obs_thread
- Web 可视化界面
- CLI 命令行工具
- 一键安装脚本
Security
- execFileSync + safeJoin 防注入
- LIKE ESCAPE + ReDoS 修复
- 34 个对抗性安全测试
快速开始
git clone https://github.com/xiaoletian64/obs-code.git cd obs-code && bash install.sh