Skip to content

Merry v0.1.3

Choose a tag to compare

@locez locez released this 03 Dec 13:48
· 18 commits to main since this release
v0.1.3
6816f73

English · 简体中文 · Install


English

Unified Permission Model & Browser Sandboxing

  • Unified live policy engine & three-state capabilities — Consolidates filesystem, shell, MCP, and network access rules into a single live policy engine with explicit three-state capabilities (allow / ask / deny), pre-resolved static rules, and scoped review evaluation, fixing ProductReadOnly depth handling along the way.
  • Redesigned approval review modal — Overhauls the in-TUI permission review modal with explicit authorization scopes, clearer summaries, and optional user notes across tools.
  • Workspace persistence & /permissions UI — Persists workspace-scoped grants in the state directory with 0600 permissions, hot-reloads changes live, and adds an interactive /permissions view for inspecting and revoking grants.
  • Unified Web/Browser network admission & desktop browser sandbox — Routes headless browser launches through ProcessRunner, unifies web and browser host admission under the shared policy engine, and shares active_authorized_host between the CDP network guard and browser snapshots so same-host subrequests on once-authorized pages are handled accurately.

Embeddable TUI, App Layer, UniFFI & Swift 6 SDK

  • Standalone merry-tui & merry-app crates — Extracts shared configuration and host wiring into merry-app and decouples the interactive TUI into a clap-free merry-tui crate with a transport-agnostic virtual terminal driver, incremental VT/ANSI input parser, explicit TuiConfig / TuiProcessConfig, and concurrent TuiSession virtual handles.
  • Host-managed model selection — Enables embedded TUI hosts using in-memory TuiProviderConfig to discover models via ModelCatalogProvider, switch models live, and persist per-provider selections while keeping credential management in the host application.
  • merry-uniffi & Swift 6 SDK — Introduces merry-uniffi bindings and a native Swift 6 SDK with macros, Foundation.URL overloads, AsyncStream-based TuiSession.start, fat LTO staticlib builds, and macOS / iOS / Mac Catalyst / visionOS XCFramework packaging.

Runtime, Providers & Cross-Platform Stability

  • KV-cache prefix stability — Decouples turn-volatile context slots from the stable prompt prefix across the runtime and Anthropic/OpenAI providers to preserve KV-cache reuse across turns.
  • Runtime lifecycle, cancellation, Plan Mode & facade unification — Closes session lifecycle, retry-order, cancel-safety, and no-bash-ast Plan Mode gaps; unifies step-hook, wave, and final-output orchestration across loops; and backs CodingSession with the unified Agent facade.
  • Provider compatibility & transport diagnostics — Tolerates null deltas and arrays in OpenAI Chat Completions streams (#108) and expands bounded, redacted Error::source() cause chains for transport and catalog diagnostics across OpenAI and Anthropic providers.
  • TUI polish & Apple/Windows fixes — Preserves canvas background during mouse text selection, renames the ANSI theme preset to Terminal, and fixes Apple system sqlite3 linking, iOS deployment targets, Windows virtual terminal shutdown, and Windows clippy warnings.

简体中文

统一权限模型与浏览器沙箱

  • 统一实时策略引擎与三态能力模型 — 将文件系统、Shell、MCP 与网络访问规则收敛到统一的实时策略引擎中,支持明确的三态能力(allow / ask / deny)、静态规则预解析与作用域评估,并修复 ProductReadOnly 深度判断问题。
  • 重设计审批弹窗 UI — 重构 TUI 权限审批弹窗,提供更清晰的授权作用域选项、统一摘要展示以及可选的备注说明。
  • Workspace 权限持久化与 /permissions 界面 — 支持将工作区级别授权以 0600 权限持久化到状态目录并实时热重载,同时新增 /permissions 交互界面用于查看和撤销已有授权。
  • 统一 Web/Browser 网络准入与桌面浏览器沙箱 — 无头浏览器启动统一经由 ProcessRunner 托管,将 Web 与浏览器域名准入纳入统一策略引擎,并在 CDP 网络守卫与浏览器快照之间共享 active_authorized_host,准确处理单次授权页面内的同域子请求。

可嵌入 TUI、应用配置层、UniFFI 与 Swift 6 SDK

  • 独立 merry-tui 与 merry-app crate — 将共享应用配置与宿主装配抽离为 merry-app,将交互式 TUI 拆分为不依赖 clap 的独立 merry-tui crate,新增传输无关的虚拟终端驱动、增量 VT/ANSI 输入解析器、显式 TuiConfig / TuiProcessConfig 以及支持并发的 TuiSession 虚拟会话句柄。
  • 宿主托管模型选择 — 使用内存态 TuiProviderConfig 的嵌入式 TUI 宿主现可通过 ModelCatalogProvider 发现模型、实时切换并按 Provider 持久化模型选择,同时继续由宿主应用统一管理凭证。
  • merry-uniffi 与 Swift 6 SDK — 新增 merry-uniffi 绑定与原生 Swift 6 SDK,支持宏、Foundation.URL 重载、基于 AsyncStream 的 TuiSession.start、fat LTO 静态库构建,以及 macOS / iOS / Mac Catalyst / visionOS XCFramework 打包。

运行时、Provider 与跨平台稳定性

  • KV-Cache 前缀稳定性 — 将每轮易变的上下文槽位与稳定的提示词前缀解耦,提升运行时以及 Anthropic / OpenAI Provider 的跨轮 KV-Cache 复用率。
  • 运行时生命周期、取消安全、Plan Mode 与 Facade 统一 — 补齐会话生命周期、重试顺序、取消安全及关闭 bash-ast 时的 Plan Mode 边界缺口;统一各循环的 step-hook、wave 与最终输出编排,并将 CodingSession 底层统一至 Agent Facade。
  • Provider 流式兼容与传输诊断 — 兼容 OpenAI Chat Completions 流式响应中的 null delta 与数组字段(#108),并在 OpenAI 与 Anthropic Provider 的传输及模型目录诊断中展开有界、脱敏的 Error::source() 原因链。
  • TUI 细节与 Apple / Windows 修复 — 鼠标选中文本时保留画布背景,将 ANSI 主题预设更名为 Terminal,并修复 Apple 系统 sqlite3 链接、iOS 部署目标、Windows 虚拟终端关闭竞态与 Windows clippy 告警。

Install / 安装

# Linux (static musl: x86_64 / arm64) & macOS (Apple Silicon / Intel) — includes Alt+G Web viewer
curl -fsSL https://github.com/locez/merry/releases/download/v0.1.3/install.sh | sh
# Windows (x86_64)
irm https://github.com/locez/merry/releases/download/v0.1.3/install.ps1 | iex
cargo install --locked merry-cli --features web   # crates.io CLI (Rust 1.95+) / cargo binstall merry-cli
cargo add merry --features anthropic              # Rust SDK
pip install merry-agent                           # Python SDK (imports as `merry`)
nix run github:locez/merry                        # Nix flake

Contributors / 致谢

  • @serephus — Tolerate null delta and arrays in OpenAI Chat Completions streams (#108)

Full Changelog: v0.1.2...v0.1.3