Skip to content

CodeSlice v0.3.4

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 06:10
· 1 commit to master since this release

CodeSlice v0.3.4

本地优先的 AI 代码阅读桌面应用。边读代码边提问,回答带可点击的源码引用;写文件和执行命令始终由你逐条授权。

v0.3.4 修好了 GBK / GB2312 编码源码被误判为“二进制文件”的问题:这类文件现在能正常打开、能搜到中文注释、保存时也保持原编码不变;升级后第一次索引会自动重切旧的乱码片段。

下载

平台 架构 安装包 说明
Windows 10 / 11 x64 CodeSlice-0.3.4-Setup.exe NSIS 安装器
macOS 11+ Apple Silicon(arm64) CodeSlice-0.3.4-arm64.dmg M1 / M2 / M3 / M4
macOS 11+ Intel(x64) CodeSlice-0.3.4-x64.dmg Intel Mac
Linux(Ubuntu 22.04+ / Debian 12+) x86_64 CodeSlice-0.3.4-x86_64.AppImage
CodeSlice-0.3.4-amd64.deb
CodeSlice-0.3.4-x86_64.rpm
AppImage / deb / rpm
Linux(Ubuntu 22.04+ / Debian 12+) arm64 CodeSlice-0.3.4-arm64.AppImage
CodeSlice-0.3.4-arm64.deb
CodeSlice-0.3.4-aarch64.rpm
AppImage / deb / rpm

暂未提供 Windows ARM64 与 Linux ARMv7 安装包。

所有安装包均未使用 Developer ID 代码签名;macOS 包仅做 ad-hoc 签名且未公证。Windows SmartScreen 与 macOS Gatekeeper 会提示来源未知。

安装说明

Windows

  1. 下载并运行 CodeSlice-0.3.4-Setup.exe。
  2. 若出现“Windows 已保护你的电脑”,点「更多信息 → 仍要运行」。
  3. 安装器默认按当前用户安装,可自行选择目录。

macOS

  1. 下载对应芯片的 .dmg:Apple Silicon 选 arm64,Intel 选 x64。

  2. 打开 DMG,把 CodeSlice 拖进「应用程序」。

  3. 首次启动若被 Gatekeeper 拦截,右键 CodeSlice →「打开」,或执行:

    xattr -dr com.apple.quarantine /Applications/CodeSlice.app
  4. 应用仅做 ad-hoc 签名、未使用 Developer ID、未公证;系统可能会要求你在「隐私与安全性」里再次确认。

Linux

AppImage:

chmod +x CodeSlice-0.3.4-x86_64.AppImage
./CodeSlice-0.3.4-x86_64.AppImage

若提示缺少 FUSE,安装 libfuse2,或使用解包运行:

sudo apt install libfuse2
./CodeSlice-0.3.4-x86_64.AppImage --appimage-extract-and-run

deb / rpm:

sudo apt install ./CodeSlice-0.3.4-amd64.deb
sudo dnf install ./CodeSlice-0.3.4-x86_64.rpm

arm64 机器请换成对应的 arm64 / aarch64 文件名。

校验下载

同时下载 SHA256SUMS-v0.3.4.txt,在文件所在目录执行:

# Linux
sha256sum -c SHA256SUMS-v0.3.4.txt

# macOS
shasum -a 256 -c SHA256SUMS-v0.3.4.txt

v0.3.4 更新

  • GBK 源码不再被当成二进制文件:以前只按 UTF-8 解码,GBK / GB2312 编码的 C 源码
    (例如 S32K144 这类车规工程)解码失败就直接判成二进制,打开只有一句“是二进制文件”。
    现在先看字节是否像文本,再依次按 UTF-8、GB18030 试解,只有出现 NUL 或大量控制字符才拦。
  • 保存不会偷偷改编码:以前写回一律用 UTF-8,GBK 文件保存一次就整片乱码,还会污染
    git diff。现在按文件原编码写回,GBK 仍是 GBK,UTF-8 BOM 也不会被写回去。
  • 读取路径统一:索引、跨文件搜索、调用关系图谱、笔记引用与 AI 读写文件都走同一套
    编码判定,中文注释能被搜到、被引用,不再出现替换字符。
  • 升级后旧数据自愈:更新到本版后第一次索引会自动重切以前按错编码留下的乱码片段,
    并把笔记里“看起来已修改”的引用锚点重新对回原行,不需要手动重建索引。
  • 真二进制照样拦:图片、可执行文件等仍按后缀与字节特征识别为二进制。
  • 已知边界:UTF-16 / UTF-32 文本、Big5 / Shift-JIS 等其他编码暂不支持,仍按二进制处理。
  • 发布:版本号统一到 0.3.4,标签为 v0.3.4。

编码判定只发生在读取时,不会重写你的仓库文件;保存按原编码写回,笔记、批注、对话和
索引仍保存在本机数据目录。

系统要求

  • Windows 10(1809+)/ Windows 11。
  • macOS 11+(Apple Silicon 或 Intel)。
  • Linux x86_64 / arm64,Ubuntu 22.04+ 或 Debian 12+。
  • 需要配置兼容的模型服务与自己的 API Key;应用本体、索引和对话数据都保存在本机。

相关链接


English: CodeSlice is a local-first AI code-reading desktop app. v0.3.4 fixes GBK / GB2312 sources being reported as binary files: they now open normally, their Chinese comments are searchable, and saving keeps the original encoding. The first index after upgrading re-cuts chunks stored with the wrong encoding, so existing notes and citations recover without a manual rebuild. UTF-16 / UTF-32 and Big5 / Shift-JIS remain unsupported. All packages are unsigned; see the installation sections above for the Gatekeeper/FUSE steps.