Repository navigation
Merry v0.1.3
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, fixingProductReadOnlydepth 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 &
/permissionsUI — Persists workspace-scoped grants in the state directory with0600permissions, hot-reloads changes live, and adds an interactive/permissionsview 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 sharesactive_authorized_hostbetween 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-appcrates — Extracts shared configuration and host wiring intomerry-appand decouples the interactive TUI into aclap-freemerry-tuicrate with a transport-agnostic virtual terminal driver, incremental VT/ANSI input parser, explicitTuiConfig/TuiProcessConfig, and concurrentTuiSessionvirtual handles. - Host-managed model selection — Enables embedded TUI hosts using in-memory
TuiProviderConfigto discover models viaModelCatalogProvider, switch models live, and persist per-provider selections while keeping credential management in the host application. merry-uniffi& Swift 6 SDK — Introducesmerry-uniffibindings and a native Swift 6 SDK with macros,Foundation.URLoverloads,AsyncStream-basedTuiSession.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-astPlan Mode gaps; unifies step-hook, wave, and final-output orchestration across loops; and backsCodingSessionwith the unifiedAgentfacade. - Provider compatibility & transport diagnostics — Tolerates
nulldeltas and arrays in OpenAI Chat Completions streams (#108) and expands bounded, redactedError::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
ANSItheme preset toTerminal, and fixes Apple systemsqlite3linking, 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-appcrate — 将共享应用配置与宿主装配抽离为merry-app,将交互式 TUI 拆分为不依赖clap的独立merry-tuicrate,新增传输无关的虚拟终端驱动、增量 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底层统一至AgentFacade。 - Provider 流式兼容与传输诊断 — 兼容 OpenAI Chat Completions 流式响应中的
nulldelta 与数组字段(#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 | iexcargo 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 flakeContributors / 致谢
Full Changelog: v0.1.2...v0.1.3