From a123c20b69dcca5c669f995b4f340464a46eff67 Mon Sep 17 00:00:00 2001 From: sunerpy Date: Thu, 27 Aug 2026 17:05:31 +0800 Subject: [PATCH] docs(readme): remove obsolete upgrade notes --- README.md | 30 ------------------------------ docs/readme/README.zh-CN.md | 15 --------------- 2 files changed, 45 deletions(-) diff --git a/README.md b/README.md index 594ee07a..e910d853 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 `/.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 diff --git a/docs/readme/README.zh-CN.md b/docs/readme/README.zh-CN.md index 27afcc16..a155a7e6 100644 --- a/docs/readme/README.zh-CN.md +++ b/docs/readme/README.zh-CN.md @@ -18,7 +18,6 @@ SQLite 数据库(含 FTS5 检索索引),并通过 CLI 与 MCP stdio 服务 ## 目录 - [快速上手](#快速上手) -- [从 v0.40.4 升级](#从-v0404-升级) - [安装](#安装) - [MCP 快速注册](#mcp-快速注册) - [安装 Agent 技能](#安装-agent-技能codegraph-skill) @@ -59,20 +58,6 @@ codegraph serve --mcp --path /path/to/project # 为 AI 代理启动 MCP 服 --- -## 从 v0.40.4 升级 - -按项目的索引目录仍为 `/.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