Repository navigation
Releases: Delthin/moon-repomix
Release list
v0.6.0
v0.6.0
本地浏览器工作台接入任务预算和代码补读,继续使用原生 HTML/CSS/JavaScript 与 MoonBit native 服务。
- 任务预算:配置多个任务、必选和可选文件、表示与优先级;在完整文档硬上限内生成共享上下文,单独查看、下载选择审计。
- 代码补读:按符号、精确行范围、全文或符号目录读取;首轮固定累计预算,最多成功三轮,失败不扣额度。分离范围保留实际来源行号,审计计入完整 JSON。
- 结果保留:任务必选超限或补读失败保留上次成功正文;任务与补读不额外读取或传输原文对照。
既有 CLI、SDK、MCP、混合全文/骨架与精确分卷用法保持兼容。源码构建与 SDK 使用 MoonBit 0.10.17+d971670cd;平台归档包含运行资源,运行不需要 MoonBit 或 Node.js。
下载平台归档,用 SHA256SUMS 校验,解压后保留 bin/、share/ 和 LICENSES/ 的相对位置:
./bin/moon-repomix /path/to/project --webui打开终端显示的本地地址,在右侧选择工作方式。详细步骤见 工作台指南,升级说明见 迁移指南。SDK 包为 Delthin/moon_repomix@0.6.0。
发行源码 ZIP 使用 Mooncakes 已发布并经独立 SDK 消费验证的源包;三平台原生归档来自同一源码的成功 CI。PERFORMANCE.md 保留标明工具链、平台和固定输入的既有测量。
v0.5.1
v0.5.1
固定使用 MoonBit 0.10.17+d971670cd,提供 macOS arm64、Linux x64、Windows x64 原生安装包和 Delthin/moon_repomix@0.5.1 SDK。原有 CLI、配置及 Root SDK 用法保持兼容。
- 支持完整实现/源行补读、累计预算补读、必需/可选文件的任务上下文规划,以及原有工作台、混合全文/骨架和精确分卷。
- 计数资源、原生解析器、页面和许可证随包提供,CLI 运行不需要 Node.js 或 MoonBit。
- 三平台 CI 完成检查、构建、核心测试、CLI/MCP/WebUI、安装与源码归档验证:macOS/Linux 各 121/121,Windows 118/118。
- 从 Mooncakes 独立下载、编译和运行 SDK,核对规范源码 ZIP 的全部 423 个文件与发行提交一致;完整实现、任务全文、分卷/索引精确计数及预算边界通过。
安装与校验
下载对应平台 .tar.gz,按 SHA256SUMS 校验。解压后保留 bin、share、LICENSES 的相对位置:
./bin/moon-repomix ./project -f md --compress
./bin/moon-repomix ./project --webuiWindows 使用 bin/moon-repomix.exe。SDK 依赖版本为 0.5.1,用法见仓库 README。源码附件采用 Mooncakes 的规范发布 ZIP;性能资料见 PERFORMANCE.md 中各平台与测量范围。
发行源码:2a6e0afee16f7342a89fd242ec29b0fe06e19a86。
v0.5.0 — Code retrieval and task context planning
v0.5.0:按实现读取与任务上下文规划
新增
- 完整实现读取:SDK / MCP
read_code_context支持完整符号、指定行范围、全文和符号目录。JavaScript(含 JSX)、TypeScript / TSX、Python 使用有界原生索引;可补充同文件词法依赖,歧义与解析失败明确返回。 - 累计预算补读:MCP 最多三轮成功读取,完整 JSON(含审计)按
o200k_base精确累计计数。续读不能扩大初始预算;失败或提交前取消保留旧资源。 - 任务上下文规划:SDK / MCP
plan_task_context将多个任务的必选文件与可选候选合并,惰性读取,在完整文档硬预算内选择全文或骨架,并返回独立计数的审计。 - 新入口沿用主机选择规则与完整原文安全扫描;路径、源码读取、索引、尝试次数和输出均有限额。
原有 CLI、工作台、混合全文/骨架及精确分卷用法保持兼容。任务规划的 audit 独立于正文预算;代码补读的 audit 包含在累计正文预算中。补读成功会替换旧资源,请先读回当前资源再续读。
安装与 SDK
下载对应平台的 tar.gz,按 SHA256SUMS 校验,解压后保留 bin、share、LICENSES 的相对位置。
Mooncakes SDK 0.5.0 的上传尚未确认成功,当前请使用安装包或源码包。 注册表发布仍待网络恢复后核验;本发行页会同步更新结果。
SDK 模块名为 Delthin/moon_repomix。源码 ZIP 已通过解包构建与示例验证。
v0.4.1
更快的大库打包
- 精确 C 计数内核与每请求有界缓存,复用原文、压缩候选、最终文档和索引的计数状态。
- 严格 UTF-8 快照复用验证结果,凭证规则先检查必要字面条件,再定位实际发现。
- 最多三条有界滚动 AST lane,配合前向 cursor 和分类缓存,保持原始输出顺序及既有资源边界。
- MSVC 兼容原子封装;新增手动 Linux 大库基准与冻结身份检查。
固定 35 MB TypeScript 五轮比较:原文/完整元数据压缩 wall 在 macOS 分别比 Node 降低 23.4% / 11.7%,Linux 降低 30.5% / 33.1%。输入、输出与计数工作存在差异;小库内存代价和 Linux checker.ts 的 200 ms 原文回退均保留在 完整性能文档 及附件 PERFORMANCE.md。
既有 CLI、JSON 配置、Root SDK、WebUI 和 MCP 用法保持兼容。升级说明见 migration.md。
安装与验证
按平台下载归档,使用附件 SHA256SUMS 校验;解压后运行 bin/moon-repomix --version,应显示 0.4.1。SDK 使用 Delthin/moon_repomix@0.4.1 并运行 moon update。
发行 CI 三平台通过:macOS/Linux 各 106/106,Windows 103/103,覆盖源码解压构建、安装移动、真实 HTTP/MCP、分卷与完整功能检查。附件包含三平台原生包、与 Mooncakes 相同的源码 ZIP、性能数据和校验清单。
v0.4.0 — Native context workbench
v0.4.0
A local browser workbench, budget-bounded context volumes, read-only MCP and simpler everyday commands.
What's new
- Local browser workbench. Run
moon-repomix --webui, then openhttp://127.0.0.1:8765. Browse the authorized workspace, compare original and processed code, select full/mixed/skeleton output, inspect the exact token budget and download JSON. The page calls the MoonBit Native backend through loopback HTTP. - Shorter CLI. Run
moon-repomixfor the current directory. Common options now have shorter forms such as--budget,--split,--lines,--diff,--logand--explain; size arguments accept forms such as8k.--helpshows the common workflow, and--help-alllists all options. Standard source builds and installed binaries locate their resources automatically. - Mixed full/structural context. Keep selected paths complete with
--keep-fullwhile compressing the rest. Add a header or instruction file, and control displayed chapters, line numbers and file-path labels. - Go, Rust and Java structural compression. Added native Tree-sitter grammars alongside MoonBit, JavaScript, TypeScript and Python. Complete signatures, types and original source ranges remain available; unsupported or unsuitable files retain their source.
- Exact context volumes. Every independently rendered volume must fit its o200k cap. Templates repeat, files and Git sections remain atomic, and a separately counted index describes the volumes. CLI directory publication uses same-parent staging and atomic no-replace publication.
- Read-only MCP and selection explanations. A host-authorized root bounds client requests. Clients build and read derived context resources or query why literal paths are selected or excluded. Failed builds preserve the previous successful resource context.
- Input limits and machine reports. Bounded source-file count and total raw-read bytes apply to both ordinary and volume packing.
--report-jsonwrites structured diagnostics to stderr while stdout remains the requested output.
Quick start
Download and extract the archive for macOS arm64, Linux x64 or Windows x64. Keep its directory layout intact; the executable and its accompanying resources are included.
moon-repomix
moon-repomix --webuiThe Mooncakes SDK is Delthin/moon_repomix@0.4.0. Runtime use does not require Node.js.
Upgrading from v0.3.0
The default CLI output is now Markdown (repomix-output.md). Use --style xml when retaining the previous XML workflow. New default source limits are 20,000 files and 200 MiB of raw reads. SDK users should review the added option/result fields and separate pack_volumes entry point in the migration guide.
Verification and performance
Release CI passed on macOS arm64, Linux x64 and Windows x64, including native tests, WebUI HTTP checks, exact volumes, MCP, installation and archive relocation. Linux additionally built the extracted source package and independently parsed XML/JSON outputs.
The fixed six-case Linux CLI benchmark measured 0.08–0.29 s Native versus 0.30–0.57 s Node wall-time medians, with lower Native RSS in all six cases. These are workload-specific results; the attached PERFORMANCE.md links the raw evidence and the larger-workload measurements.
SHA256SUMS covers the three platform archives, the canonical Mooncakes source ZIP and PERFORMANCE.md.
moon-repomix v0.3.0
新增与改进
- 原生结构压缩支持 MoonBit
.mbt/.mbti,保留参数、默认值、返回/错误类型、derive、impl、extern 和原始行区间;接口文件保持原文。 - 提供
--stdin/--stdin0精确文件列表、-o -标准输出和有界花括号备选;改进默认排除及 include/dot-ignore 兼容行为。 - 优化词表有界加载、精确 BPE 计数、扫描坐标定位、glob 匹配与任务调度,保持原始内容扫描和完整文档计数。
- 三平台 CI 验证实际 MoonBit 项目自压缩、接口/签名/源图、功能、安装及源码归档;Linux CI 提供固定三个仓库、六个场景、每端预热一次后五轮交替的 Native/Node 对照。
测量条件、全部样本及范围见 性能文档 和附带的 PERFORMANCE.md。性能结论限定于记录的工具版本、平台和工作负载。
下载与使用
平台归档包含可执行文件、分词资源与第三方许可,运行时不需要 Node.js。下载后按 SHA256SUMS 校验,保留 bin、share 和 LICENSES 的相对位置。Git 差异、历史和远程输入需要系统 Git。
- macOS arm64、Linux x64、Windows x64:选择对应
.tar.gz。 - 源码:
Delthin-moon_repomix-0.3.0.zip,需要 MoonBit0.10.15+943464bfa和平台 C 工具链。 - Mooncakes SDK:
Delthin/moon_repomix@0.3.0。CLI 与库共用四格式、压缩、安全扫描和精确计数流程。
moon-repomix v0.2.0
核心功能
- MoonBit native CLI 与库 API,运行时无需 Node.js。
- JavaScript/TypeScript(含 JSX/TSX)与 Python 语法树结构压缩;不支持或无收益时保留原文。
- 公开 HTTPS 仓库的默认分支、branch、tag 或完整 commit 获取。
- 暂存/未暂存 Git 差异、近期提交历史与路径过滤;扫描覆盖原始文件、补丁删除行和提交消息。
- XML、Markdown、JSON、plain 四种输出,默认轻量概览,
--full-metadata提供完整原始行映射。 - 完整文档的精确
o200k_base计数、Token 目录树、文件排名与预算检查;原子写入和失败保留。
下载与使用
平台归档覆盖 macOS arm64、Linux x64、Windows x64。下载后按 SHA256SUMS 校验,解压时一起保留 bin、share、LICENSES。普通本地打包及结构压缩可直接运行;Git 差异、历史和远程输入需要系统 Git。
./bin/moon-repomix /path/to/project --compress --style markdown -o context.mdWindows 使用 bin/moon-repomix.exe。安装及库调用见 README。
Mooncakes 库:Delthin/moon_repomix@0.2.0。附带的 Delthin-moon_repomix-0.2.0.zip 是同一版本的源码模块包。
三平台的构建、功能测试、自打包、安装及归档验证见 CI 39557325100。源码构建使用 moon-toolchain 指定的 MoonBit 版本。