Skip to content

Releases

reasonix-legacy 1.3.1 LTS

Choose a tag to compare

@ZYist ZYist released this 22 Jul 06:38

reasonix-legacy 1.3.1 LTS — 首个公开 LTS 发布

47 commits · npm reasonix-legacy@1.3.1 · CLI/TUI reasonix-legacy 1.3.1 · 2026-07-22

这是 ZYist/reasonix-legacy fork 的首个公开发布,也是 1.3.x LTS 长期支持线的第一个 cut。本版本把已通过本地稳定版审计的 1.3 基线转化为用户可安装、可验证、具备明确支持期限与升级路径的正式 LTS:统一发布身份为 reasonix-legacy、固化 LTS 支持合同、提供 1.2 → 1.3.1 迁移路径,并在不可变候选上完成 Windows 全量验证。

  • Source SHA: 319e7cd69e14374e15ef4a5db776a7021f760947
  • Tag: v1.3.1(plain vX.Y.Z,与 package.json 一致)
  • Tarball: reasonix-legacy-1.3.1.tgz — 170 files — SHA-256 109058800b5429c4f89a8b6abcf55eff566e3a7f721093ecf3c40d0c30acc78d
  • 支持期限: 至少 6 个月,或下一稳定版本发布后 90 天(取较晚者)— 见 docs/lts-policy.md

Key accomplishments

  • 发布身份统一为 reasonix-legacy 1.3.1 — package.json/lockfile 根/CLI 运行时 --version/README/CHANGELOG/governance/publish workflow 全部一致指向 1.3.1;src/version.ts 的 VERSION 动态读取 package.json,身份提升自动传播到 statusline / /about / /update 等全部展示点。
  • 身份漂移 guard — scripts/check-docs.mjs 锁定 package/bin/tag/STATE milestone/CHANGELOG/built CLI identity 断言,持续阻止 reasonix/dsnix 旧 bin、错误 semver、错误 tag convention 重新进入发布表面,同时保留历史 archive 原样。
  • 1.3.x LTS 支持合同 — 新增 docs/lts-policy.md:支持期限、patch 允许范围(安全/凭据泄漏/安装阻断/关键回归/必要依赖升级/文档澄清)、安全响应 best-effort 边界、≥30 天 EOL 通知、1.4 后并行维护规则、下一 LTS 升级路径,以及 1.2 仅作历史版本的声明。
  • 1.2 → 1.3.1 迁移路径 — 新增 docs/migrating-to-1.3.md:卸载旧命令别名、安装/验证 reasonix-legacy、升级前配置与会话备份、升级后基础 smoke、失败回滚到已知本地环境,并区分 fork 的 v1.3.1 发布与上游 1.17.x/v1.2.x lineage 标签。
  • 可审计的发布 runbook — 新增 docs/release-runbook.md:有序步骤(候选冻结 → tag 前检查 → plain v1.3.1 tag → Windows CI/CodeQL → npm publish → registry smoke → GitHub Release → 发布后核验),含 GitHub Release 内容合同、交互式 TTY/Telegram/Weixin/QQ/ACP 人工 UAT 清单(PASS/NOT-VERIFIED/BEST-EFFORT),以及 operator 授权边界。
  • 不可变候选验证(Phase 16) — 候选绑定 source/tree SHA + checksum;npm run verify 281 文件 / 3800 passed / 0 failed;npm audit --omit=dev 0 漏洞;真实 npm pack 含 8 个 tree-sitter grammar + CLI runtime;仓库外隔离安装 --version → reasonix-legacy 1.3.1,唯一 bin,无生产 workspace: 依赖。

Requirements (v1.3.1 LTS Release, 21/21)

分组 需求 交付
Release Identity REL-01..03 身份统一 + drift guard + 不可变候选绑定
LTS Policy LTS-01..05 docs/lts-policy.md 全条款
Migration MIG-01..03 docs/migrating-to-1.3.md
Candidate Verification VER-01..04 Phase 16 VERIFICATION.md
Release Operations OPS-01..06 runbook + publish 门禁 + operator 边界

Verification

  • npm run verify — 281 test files / 3800 passed / 15 skipped / 0 failed
  • node scripts/check-docs.mjs — documentation check passed
  • npm audit --omit=dev — found 0 vulnerabilities
  • 隔离安装(仓库外)— reasonix-legacy --version → reasonix-legacy 1.3.1;.bin 仅 reasonix-legacy
  • Maintained baseline: Windows + Node.js 24.15.0 + npm 11.16.0 + PowerShell
  • npm registry 发布 + 复核(OPS-03) — reasonix-legacy@1.3.1 已发布到 npm registry;从 registry 本身(非本地 tarball)隔离安装,--version → reasonix-legacy 1.3.1,.bin 仅 reasonix-legacy;registry dist.shasum = 20972322b2bf84a8508ad2b6a0bb28bdb1885312,与发布 tarball 一致。

安装

git clone https://github.com/ZYist/reasonix-legacy.git
cd reasonix-legacy
git checkout v1.3.1
npm install
npm run build
npm link
reasonix-legacy --version   # reasonix-legacy 1.3.1

从 1.2 迁移见 docs/migrating-to-1.3.md。

Remaining deferred(诚实披露)

  • live UAT 未由自动化执行 — 交互式 TTY/Telegram/Weixin/QQ 的真实凭据 UAT(OPS-05)仍是 operator action,未在本 release 自动化中虚构完成;需在真实凭据/网络/终端下人工执行并记录。
  • HeadlessHost channel streaming — runTurn reasoning/tool 事件转发缺口仍是已接受的未来改进,不属本 LTS 发布。
  • Protected core decomposition — App.tsx/config.ts/loop.ts/大型 tools 拆分留待后续里程碑(characterization tests 保护下)。

Full details: .planning/STATE.md · .planning/phases/16-candidate-publish-gates/VERIFICATION.md · docs/lts-policy.md

legacy-1.2

Choose a tag to compare

@ZYist ZYist released this 15 Jul 07:32

Pure CLI maintenance — 标签页标题 + /clear·/new 重绘修复

legacy-1.1 发布后的维护版本:Windows Terminal 标签页标题修正 + /clear//new//reset 后的 TUI 重绘缺陷修复。

2 commits · 1 issue closed · npm 1.2.0 / TUI legacy-1.2.0 · 2026-07-15

Key accomplishments

  • 标签页标题(reasonix-legacy) — Windows Terminal 启动 reasonix 时标签页不再显示 cmd 路径,固定为 reasonix-legacy。OSC 0 序列设置标题,并每 2 秒重发一次,对抗 ConPTY 把子进程(npx / ollama / shell 工具)的标题同步到标签页、覆盖我们的设置;isTTY 守卫跳过管道和 acp(JSON-RPC 通道,写 OSC 会破坏协议)。ST 终止符绕开 strip-bel 的 Windows 端 BEL→ST 改写。
  • /clear//new//reset 全屏重绘修复(#8) — 这些命令清空消息流时触发一次大 diff,Ink 的增量渲染在带背景色的 cell 上出错:空白 cell 丢失 Box 背景(SURFACE.bg),终端默认背景透出,整屏出现"阴影"。根因是 e3b31be6(#2182)给 app surface + 输入区加了主题背景色——背景是 FG.* 前景色的对比基准,不能去掉。修复:Ink 的 AppContext 暴露 forceRedraw,reasonix App 在这些命令后用 useLayoutEffect(渲染后、绘制前)触发全屏重绘,像启动首帧那样从零画整屏,绕过增量 diff 的背景缺陷。(invalidatePrevFrame 试过不行:它依赖"下次 render"的 flag,被 /new 内部多次 state 变化的中间 render 消耗掉了。)

Issues closed(1/1)

# Title Status
#8 TUI background shadows after /clear, /new, /reset ✅

Verification

  • npm run verify:279 文件 / 3788 测试通过 · 15 skipped · 0 failures(build / typecheck / lint / vitest 全绿)。
  • TUI 右下角:legacy-1.2.0(原 legacy-1.1.0)。
  • Ink 渲染核心改动(AppContext 暴露 forceRedraw)零回归——全量 verify 绿。

Full details: .planning/STATE.md(Quick Tasks Completed)· Retrospective: .planning/RETROSPECTIVE.md

legacy-1.1: Pure CLI (fix-cycle + version sync)

Choose a tag to compare

@ZYist ZYist released this 07 Jul 08:05

Pure CLI fix-cycle + 版本同步

legacy-1.0 发布后的修复周期:5 个 issue 全部解决,外加版本显示统一——首次让 git tag / npm version / TUI 右下角三者一致(legacy-1.1.0)。最初草率的 legacy-1.0.1 因 package.json version 未同步而撤回,改为正式 legacy-1.1。

19 commits · 5 issues closed · npm 1.1.0 / TUI legacy-1.1.0 · 2026-07-06 → 2026-07-07

Key accomplishments

  • #1 安全:bot 错误输出脱敏 — qq/telegram/weixin 三个 command controller 的 raw (err as Error).message 经 value 级 scrubber 脱敏后再写 stderr/chat,堵住上游 HTTP/auth 错误里 bot token / appSecret / DeepSeek key 的泄露路径(legacy-1.0 的 WR-05 deferred 项收口)。
  • #2 功能:HeadlessHost onEvent 接线(stream-to-chat) — runTurn 订阅 turn-driver.onEvent → 新增 SurfaceNotifier 把 thinking/tool 通知推送到全部 3 个 channel;可恢复的中途错误现推送消息而非静默丢弃(legacy-1.0 的 Known Gap 收口)。
  • #3 测试债:预存红收敛 — ssh-remote / ui-mcp-marketplace-snapshot / ui-slash-suggestions / hydrate-cards 失效 biome-ignore 全部收敛到 Pure-CLI 现实,npm run verify 现全绿(pre-push hook 不再需要 SKIP_SIMPLE_GIT_HOOKS=1 绕过)。
  • #4 代码质量:Phase-2 code-review follow-ups — IN-01..06(dead effort option / double prompt build / no-op gateCallbacks / checkpoint field / unused lowerText / 抽出 React-free gate-parsers.ts)+ WR-03(并行 gate FIFO 队列,消除首个 gate 孤儿)+ WR-04(weixin QR-login 窗口前安装 SIGINT 清理)。
  • #5 重构:共享 bootHeadlessHost preamble — 抽出 qq/telegram/weixin 共同的 boot 主干(loadDotenv → HeadlessHost.create → gate-bridges → channel);BaseChannelAdapter 经评估否决——channel 协议层差异(Telegram ctor 无 onInfo、Weixin QR-login)保持显式更可读。
  • 版本显示统一 — src/version.ts 加 DISPLAY_VERSION = toDisplayVersion(VERSION)(legacy- 前缀);StatusRow 右下角 / --version / /about / /update / doctor / feedback / ssh-remote 全部走 DISPLAY_VERSION;ACP agentInfo / MCP clientInfo / compareVersions / planUpdate 保持 bare semver。package.json 0.55.0 → 1.1.0,bump 后显示自动传播。

Issues closed(5/5)

# Title Status
#1 [security] Redact raw error.message in bot command controllers ✅
#2 [feature] HeadlessHost: wire onEvent (stream-to-chat) ✅
#3 [test-debt] Converge pre-existing red tests → verify green ✅
#4 [quality] Phase 2 deferred code-review follow-ups ✅
#5 [refactor] Deduplicate thin-entries (evaluate BaseChannelAdapter) ✅

Verification

  • npm run verify:270 文件 / 3738 测试通过 · 15 skipped · 0 failures(build / typecheck / lint / vitest 全绿)。
  • TUI 右下角:legacy-1.1.0(原 v0.55.0)。
  • 新增回归测试:WR-03 并行 gate FIFO、WR-04 weixin QR SIGINT;DISPLAY_VERSION / toDisplayVersion 单测。

Remaining deferred(不阻塞)

  • #6 [uat] live-credentials/TTY UAT coverage — qq/telegram/weixin 真实 bot 凭据 + 交互 TTY 的 UAT 仍缺(本地 run live turn 已证明 loop,channel 端到端留待真实环境)。

Full details: .planning/STATE.md(Quick Tasks Completed)· Retrospective: .planning/RETROSPECTIVE.md

legacy-1.0: Pure CLI

Choose a tag to compare

@ZYist ZYist released this 05 Jul 08:17

Pure CLI — 把 reasonix-legacy 从多前端收敛为纯 CLI

把项目从多前端(CLI/TUI + Web 面板 + Tauri 桌面)收敛为纯 CLI,保留 QQ/Telegram/微信聊天机器人接入能力,核心 loop/工具/记忆/MCP/AcP 零回归。

4 phases · 8 plans · 10/10 requirements · 2026-07-02 → 2026-07-05

Key accomplishments

  • Web 面板剥离(Phase 1) — dashboard/ + src/server/ + 全部桥接适配整体切除,18 个源文件硬引用清零,12 个面板专属测试删除,CLI 在无面板 node 依赖下 typecheck/build/lint 三件套全绿。
  • 面板 i18n 死串清理 + 运行时冒烟(Phase 1) — types.ts 契约 + EN/zh-CN/JA/de/ru 五 locale 键集对齐(基线 116→24);reasonix code live 回合模型调用原生 read_file 读到 0.55.0,零运行时残留。
  • 传输协议无关的 HeadlessHost(Phase 2) — src/cli/headless/(host + turn-driver + gate-bridges)复刻 buildRuntimeFor recipe,QQ/Telegram/微信经同一宿主 + 同一 GateCallbacks 形状作为独立 CLI 命令运行,脱离 Tauri JSON-RPC;核心 CacheFirstLoop/PauseGate/完整 ToolRegistry 零重实现。
  • 桌面 GUI 移除(Phase 3) — reasonix desktop 退役为 i18n 薄 stub(console.error + process.exit(1)),Tauri 应用 + 3555 行 sidecar god module + src/desktop/ + 27 个桌面测试物理删除,三通道与 CLI 核心命令零回归。
  • 构建链全面简化(Phase 4) — postinstall.mjs / sync-desktop-version.mjs / release.yml 退役,package.json/ci.yml/.claude/CLAUDE.md 对齐纯 CLI;npm pack 输出干净 CLI-only tarball(9.2 MB / 168 files,无 postinstall 钩子)。
  • 全量回归收敛(Phase 4) — 14 baseline 红收敛到 3 个 evidence-deferred 预存红(三段式证明:baseline 红 + git-diff 未触 + HEAD 同款失败);19 个命令 --help 全绿、8 个离线命令真实数据功能冒烟、tree-sitter code-query 跨 6 语言(TS/Python/Go/Rust/Java/JS)e2e 存活;核心 loop/工具/记忆/MCP/AcP 零回归。

Requirements(10/10 complete)

ID Description Status
PANEL-01 dashboard/ + src/server/ 整体移除,核心无残留引用 ✅
PANEL-02 desktop/ + sidecar 外壳移除,reasonix desktop 下线 ✅
PANEL-03 CLI 内部面板适配代码清理 ✅
PANEL-04 构建链简化,CLI 可独立构建发布 ✅
BOT-01 QQ 从桌面 sidecar 解耦为独立 CLI 命令 ✅
BOT-02 Telegram/微信 channel 保留可用,经独立 CLI 宿主启动 ✅
BOT-03 机器人复用核心对话循环/暂停门/工具集 ✅
SAFE-01 纯 CLI 命令功能不回归 ✅
SAFE-02 tree-sitter grammars + code-query 保留可用 ✅
SAFE-03 npm run verify 通过,核心零回归 ✅

Known Gap(不阻塞,accepted-and-deferred)

  • weixin 不显示内部反馈(思考过程/工具输出) — 根因为 Phase-2 既存的共享 HeadlessHost 渲染缺口(runTurn 未订阅 turn-driver 的 onEvent 回调 → 全部 channel 都丢弃 reasoning/tool 事件),非本里程碑回归(git diff 证 Phase 04 零触碰 headless/weixin)。定性:pre-existing / feature(stream-to-chat,适用于全部 3 channel)。路由到 fix cycle 或未来 channel-streaming phase。

Carry-forward(fix cycle)

  • 3 个预存红测试:ssh-remote、ui-mcp-marketplace-snapshot、ui-slash-suggestions(均三段式证明 pre-existing)。
  • WR-05(3 个 command controller 的 raw Error.message 未脱敏,medium)+ IN-01..06 代码质量项。

Full details: .planning/MILESTONES.md · Retrospective: .planning/RETROSPECTIVE.md

v0.55.0 — reasonix-legacy (first fork release)

Choose a tag to compare

@ZYist ZYist released this 02 Jul 02:10

reasonix-legacy v0.55.0 — first fork release

Community fork continuing the TypeScript line after upstream moved to its Go rewrite (main-v2). Forked from esengine/DeepSeek-Reasonix (v1 branch) at upstream 0.54.2 plus maintenance commits.

Changes since upstream 0.54.2

  • feat(cache): Cache Efficiency Guardrails and Diagnostics (#2314)
  • fix(cli): don't crash session hydration on a tool call missing its function
  • chore(cache): localize /status cache-detail line; locale-independent tool sort (#2320)
  • docs(v1): mark the TypeScript line as legacy

Packaging

  • npm package renamed reasonix → reasonix-legacy (the reasonix npm name is reserved by the upstream Go project)
  • CLI command names (reasonix / dsnix) are unchanged — existing scripts keep working
  • dsnix dependency switched to local file:../..

Install (from source)

This is a source release — the repo does not ship a prebuilt dist/. A bare npm i -g github:ZYist/Reasonix-legacy#v0.55.0 won't build dist/, so the reasonix command would fail. Clone and build instead:

git clone https://github.com/ZYist/Reasonix-legacy.git
cd Reasonix-legacy
git checkout v0.55.0
npm install
npm run build
npm i -g .        # registers the `reasonix` / `dsnix` commands globally

Requires Node >= 22. See CHANGELOG.md for the full history. A prebuilt npm bundle may follow.