Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ No AI/LLM anywhere inside the binary — output is byte-stable and deterministic
## Table of Contents

- [Quickstart](#quickstart)
- [Upgrading from v0.40.4](#upgrading-from-v0404)
- [Installation](#installation)
- [One-liner install (scripts)](#one-liner-install-scripts)
- [Prebuilt binaries](#prebuilt-binaries)
Expand Down Expand Up @@ -64,35 +63,6 @@ codegraph serve --mcp --path /path/to/project # MCP server (--path optional,

---

## Upgrading from v0.40.4

The per-project index remains at `<project>/.codegraph/`. A v0.40.4 database has
no authenticated index-state slots, so current releases do not read it as a
current index. Run `codegraph init` once: while holding the exclusive index
lease, CodeGraph replaces only the stale `codegraph.db`, `codegraph.db-wal`, and
`codegraph.db-shm` artifacts and publishes a fresh current index.

Project configuration remains in `.codegraph/config.toml` and
`.codegraph/codegraph.json`; daemon rendezvous files (`daemon.pid`,
`daemon.sock`, `daemon.log`) also live under `.codegraph/`. The compatibility
fields `legacyIndexPresent` and `legacyIndexPaths` remain in `status --json`, but
always report `false` and `[]` respectively.

### Re-index required for content-header generated-file detection

Generated-file detection now also reads a file's **content banner**, not only its
filename, so a machine-written `payroll.go` carrying
`// Code generated … DO NOT EDIT.` is demoted in ranking like a `.pb.go` file
already was. The verdict is computed at index time and stored on the file row.

An index built by an earlier release therefore reports every file as
non-generated for the content half until it is re-extracted. Nothing breaks in the
meantime — the filename signal keeps working exactly as before — and the next
`codegraph index` or `codegraph sync` picks the new detection up automatically,
since the extraction-version bump classifies the old index as outdated.

---

## Installation

The CLI package is **`codegraph-rs`** — a single binary named `codegraph`. SQLite
Expand Down
15 changes: 0 additions & 15 deletions docs/readme/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ SQLite 数据库(含 FTS5 检索索引),并通过 CLI 与 MCP stdio 服务
## 目录

- [快速上手](#快速上手)
- [从 v0.40.4 升级](#从-v0404-升级)
- [安装](#安装)
- [MCP 快速注册](#mcp-快速注册)
- [安装 Agent 技能](#安装-agent-技能codegraph-skill)
Expand Down Expand Up @@ -59,20 +58,6 @@ codegraph serve --mcp --path /path/to/project # 为 AI 代理启动 MCP 服

---

## 从 v0.40.4 升级

按项目的索引目录仍为 `<project>/.codegraph/`。v0.40.4 数据库没有经过认证的索引状态槽,
因此当前版本不会把它当作可读的当前索引。每个项目执行一次 `codegraph init`:CodeGraph
会在持有独占索引租约时,仅替换陈旧的 `codegraph.db`、`codegraph.db-wal` 与
`codegraph.db-shm`,然后发布全新的当前索引。

项目配置继续位于 `.codegraph/config.toml` 与 `.codegraph/codegraph.json`;daemon
会合文件(`daemon.pid`、`daemon.sock`、`daemon.log`)也位于 `.codegraph/`。
`status --json` 为兼容保留 `legacyIndexPresent` 与 `legacyIndexPaths` 字段,但其值始终为
`false` 与 `[]`。

---

## 安装

CLI 包名为 **`codegraph-rs`**,安装后的二进制命令名为 **`codegraph`**。SQLite
Expand Down
Loading