diff --git a/Cargo.toml b/Cargo.toml index d2c98fb..2dad997 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ members = [ version = "0.1.0" edition = "2021" license = "MIT" -repository = "https://github.com/NianJiuZst/CodeGrap-Rust" +repository = "https://github.com/NianJiuZst/CodeGraph-Rust" rust-version = "1.89" # Dependency whitelist: design doc 3.4. New entries need a reason in the PR. diff --git a/README.md b/README.md index 5d71aa3..debac86 100644 --- a/README.md +++ b/README.md @@ -130,8 +130,8 @@ Source installation is the currently available path. Requirements are **Rust 1.8 Cargo, Git and a C compiler toolchain for the Tree-sitter grammars. ```sh -git clone https://github.com/NianJiuZst/CodeGrap-Rust.git -cd CodeGrap-Rust +git clone https://github.com/NianJiuZst/CodeGraph-Rust.git +cd CodeGraph-Rust cargo install --path crates/cgr --locked cgr version --verbose ``` @@ -153,17 +153,17 @@ On Windows, the executable is `target\release\cgr.exe`. The repository includes release packaging and checksum-verifying download scripts. **As of 2026-11-01, no GitHub Release has been published.** The following commands require published -archives and checksum files on the [Releases page](https://github.com/NianJiuZst/CodeGrap-Rust/releases). +archives and checksum files on the [Releases page](https://github.com/NianJiuZst/CodeGraph-Rust/releases). Until those assets are available, use the source installation above. ```sh # Linux / macOS — requires a published release -curl -fsSL https://raw.githubusercontent.com/NianJiuZst/CodeGrap-Rust/main/scripts/install.sh | sh +curl -fsSL https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.sh | sh ``` ```powershell # Windows, PowerShell 7+ — requires a published release -irm https://raw.githubusercontent.com/NianJiuZst/CodeGrap-Rust/main/scripts/install.ps1 | iex +irm https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.ps1 | iex ``` Release automation defines these targets: @@ -497,7 +497,7 @@ The historical benchmark revision passed 116 tests. Implementation checks are re see [the performance report](docs/BENCHMARKS.md#full-indexing). Local measurements and hosted CI results are separate evidence. -Code revision `f82506e` passed all nine [hosted CI checks](https://github.com/NianJiuZst/CodeGrap-Rust/actions/runs/41286327676), +Code revision `f82506e` passed all nine [hosted CI checks](https://github.com/NianJiuZst/CodeGraph-Rust/actions/runs/41286327676), including Linux/macOS/Windows tests and end-to-end smoke, lint, kernel reproducibility and the static Linux build. Hosted correctness results are not used as performance measurements. diff --git a/README.zh-CN.md b/README.zh-CN.md index 90ae2e5..56a97a8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -111,8 +111,8 @@ MCP 增加排队上限、协作取消及项目/监听资源回收。 目前可用的安装方式是源码安装。需要 **Rust 1.89 或更新版本**、Cargo、Git,以及用于编译 Tree-sitter 语法的 C 编译工具链。 ```sh -git clone https://github.com/NianJiuZst/CodeGrap-Rust.git -cd CodeGrap-Rust +git clone https://github.com/NianJiuZst/CodeGraph-Rust.git +cd CodeGraph-Rust cargo install --path crates/cgr --locked cgr version --verbose ``` @@ -132,17 +132,17 @@ Windows 下的可执行文件为 `target\release\cgr.exe`。 ### Release 下载脚本 仓库已包含发布打包流程和校验 SHA-256 的下载脚本。**截至 2026-11-01,尚未发布 GitHub Release。** -以下命令需要 [Releases 页面](https://github.com/NianJiuZst/CodeGrap-Rust/releases)已有对应平台的归档与校验文件; +以下命令需要 [Releases 页面](https://github.com/NianJiuZst/CodeGraph-Rust/releases)已有对应平台的归档与校验文件; 这些文件发布前,请使用上面的源码安装方式。 ```sh # Linux / macOS:需要已有发布包 -curl -fsSL https://raw.githubusercontent.com/NianJiuZst/CodeGrap-Rust/main/scripts/install.sh | sh +curl -fsSL https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.sh | sh ``` ```powershell # Windows,PowerShell 7+:需要已有发布包 -irm https://raw.githubusercontent.com/NianJiuZst/CodeGrap-Rust/main/scripts/install.ps1 | iex +irm https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.ps1 | iex ``` 发布流程定义了以下构建目标: @@ -448,7 +448,7 @@ scripts/bench-local.sh --help 四个仓库的校验和及增量/全量检查全部通过,详见[性能复测报告](docs/BENCHMARKS.md#full-indexing)。 本机测量与远程 CI 属于不同验证证据。 -代码版本 `f82506e` 已通过全部 9 项[远程 CI 检查](https://github.com/NianJiuZst/CodeGrap-Rust/actions/runs/41286327676): +代码版本 `f82506e` 已通过全部 9 项[远程 CI 检查](https://github.com/NianJiuZst/CodeGraph-Rust/actions/runs/41286327676): Linux/macOS/Windows 测试与端到端 smoke、格式和 Clippy、内核来源复现、静态 Linux 构建。 远程正确性检查不作为性能测量结果。 diff --git a/docs/BENCHMARKS.md b/docs/BENCHMARKS.md index 027d5f8..81f3342 100644 --- a/docs/BENCHMARKS.md +++ b/docs/BENCHMARKS.md @@ -13,7 +13,7 @@ new graph comparisons for engine version 3. The timing results below remain tied | Component | Pinned version / setting | |---|---| -| `cgr` | [`b827b1d5bc6d90eaf7e6810e9effcc6dfe42eba4`](https://github.com/NianJiuZst/CodeGrap-Rust/tree/b827b1d5bc6d90eaf7e6810e9effcc6dfe42eba4), merged main | +| `cgr` | [`b827b1d5bc6d90eaf7e6810e9effcc6dfe42eba4`](https://github.com/NianJiuZst/CodeGraph-Rust/tree/b827b1d5bc6d90eaf7e6810e9effcc6dfe42eba4), merged main | | Upstream | [`d2e0389b519be398f9bc616b6f7bea8a7edfbc6a`](https://github.com/colbymchenry/codegraph/tree/d2e0389b519be398f9bc616b6f7bea8a7edfbc6a), package.json 1.6.2 | | Vendored kernel base | `9d3abb843a84d7610bf987bda7a1db4a6fe3eee3` plus the project's recorded adaptation patches | | Machine | Apple M5, 10 cores, 16 GiB RAM, arm64, macOS 26.5.2 | diff --git a/docs/PERFORMANCE-IMPLEMENTATION.md b/docs/PERFORMANCE-IMPLEMENTATION.md index a577bfe..c6fcdbb 100644 --- a/docs/PERFORMANCE-IMPLEMENTATION.md +++ b/docs/PERFORMANCE-IMPLEMENTATION.md @@ -71,7 +71,7 @@ verified automatic watcher delta publication, MCP refresh to the added function, equivalence and exit within a two-second functional deadline after stdin closed. An actual format-1 index was rejected by the new reader and rebuilt into a verified format-2 index. These are correctness checks, not performance samples. Code revision `f82506e` also passed -all nine [hosted CI jobs](https://github.com/NianJiuZst/CodeGrap-Rust/actions/runs/41286327676): +all nine [hosted CI jobs](https://github.com/NianJiuZst/CodeGraph-Rust/actions/runs/41286327676): Linux/macOS/Windows unit/integration tests and end-to-end smoke, lint, kernel reproducibility and a static musl build. Windows passed 137 tests with one ignored. Local/hosted checks use Rust 1.99; the retained before/after release binaries use the same local Rust 1.94.1 toolchain. @@ -171,7 +171,7 @@ Express(142 文件)、Gin(99)、Tokio(814)、Django(2,984)的独 2 秒功能期限内退出。真实的旧格式索引已验证会被新读者拒绝,并能通过 `index` 重建为校验通过的格式 2。 这些是正确性检查,不作为性能样本;macOS 结果也不等于 Linux/Windows 运行验证或远程 CI 已通过。 -代码版本 `f82506e` 的[最终远程 CI](https://github.com/NianJiuZst/CodeGrap-Rust/actions/runs/41286327676) +代码版本 `f82506e` 的[最终远程 CI](https://github.com/NianJiuZst/CodeGraph-Rust/actions/runs/41286327676) 已全部通过,共 9 个任务:Linux/macOS/Windows 单元/集成测试与端到端 smoke、格式和 Clippy、 内核来源复现及静态 musl 构建。Windows 同样为 137 通过、1 忽略。最终本机/远程检查使用 Rust 1.99; 保留的新旧 release 二进制均使用本机 Rust 1.94.1 构建。 diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 04f0647..e7a0222 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -1,13 +1,13 @@ # Install the cgr binary from a GitHub release (Windows). # -# irm https://raw.githubusercontent.com/NianJiuZst/codegrap-rust/main/scripts/install.ps1 | iex +# irm https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.ps1 | iex # # Environment: CGR_VERSION (default: latest release), CGR_INSTALL_DIR (default: %LOCALAPPDATA%\Programs\cgr), # CGR_BASE_URL (default: the GitHub releases of this repository) $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' -$repo = 'NianJiuZst/codegrap-rust' +$repo = 'NianJiuZst/CodeGraph-Rust' $base = if ($env:CGR_BASE_URL) { $env:CGR_BASE_URL } else { "https://github.com/$repo/releases/download" } $dest = if ($env:CGR_INSTALL_DIR) { $env:CGR_INSTALL_DIR } else { Join-Path $env:LOCALAPPDATA 'Programs\cgr' } diff --git a/scripts/install.sh b/scripts/install.sh old mode 100755 new mode 100644 index 3d5899e..e973789 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,7 +1,7 @@ #!/bin/sh # Install the cgr binary from a GitHub release (Linux and macOS). # -# curl -fsSL https://raw.githubusercontent.com/NianJiuZst/codegrap-rust/main/scripts/install.sh | sh +# curl -fsSL https://raw.githubusercontent.com/NianJiuZst/CodeGraph-Rust/main/scripts/install.sh | sh # # Environment: # CGR_VERSION version to install, e.g. 0.1.0 (default: the latest release) @@ -10,7 +10,7 @@ # /v/cgr--.tar.gz and its .sha256 must exist there set -eu -REPO="NianJiuZst/codegrap-rust" +REPO="NianJiuZst/CodeGraph-Rust" BASE="${CGR_BASE_URL:-https://github.com/$REPO/releases/download}" DEST="${CGR_INSTALL_DIR:-$HOME/.local/bin}"