Skip to content

Commit 110a9c3

Browse files
committed
chore(release): prepare v1.6.1
1 parent 0f63942 commit 110a9c3

File tree

5 files changed

+67
-3
lines changed

5 files changed

+67
-3
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@ All notable changes to Nyro will be documented in this file.
44

55
---
66

7+
## v1.6.1
8+
9+
> Released on 2026-04-14
10+
11+
#### Features
12+
13+
- **Stream replay TPS throttle**: add `stream_replay_tps` (default 100) to `ExactCacheConfig` and `SemanticCacheConfig`; set to `0` to disable throttle and restore instant-flush behavior; implement `split_text_deltas` helper to chunk large `TextDelta`/`ReasoningDelta` into ~1-token pieces for smooth per-token pacing; first SSE chunk is always sent immediately to keep TTFT at zero
14+
- **Per-cache response header control**: add `expose_headers` (default `true`) to both cache configs, independently controlling whether `X-NYRO-CACHE-*` headers are emitted per exact vs semantic cache; rename response headers to uppercase: `X-NYRO-CACHE` / `X-NYRO-CACHE-KEY` / `X-NYRO-CACHE-SCORE`
15+
- **Embedded WebUI in server binary**: remove `--webui-dir` CLI param; embed `webui/dist` into the binary via `rust-embed`; add `--log-level` param (env `NYRO_LOG_LEVEL`) to replace hardcoded tracing filter; add env-var support for key params (`NYRO_PROXY_HOST`, `NYRO_ADMIN_TOKEN`, etc.)
16+
- **Browser token authentication**: add `/login` page and token auth flow for browser-based WebUI access; add logout icon in web topbar when admin token is active (Tauri IPC path is unaffected)
17+
- **Resource enable/disable toggles**: add enable/disable toggle buttons in WebUI list pages for providers, routes, and API keys; show danger badge only when resource is disabled
18+
19+
#### Improvements
20+
21+
- **Server CLI simplification**: reduce CLI params from 27 to 18; rename `--admin-key``--admin-token`, `--storage-dsn-env``--postgres-dsn`; prefix Postgres pool params with `postgres-*`; rename `--sqlite-migrate-on-start``--migrate-on-start`; remove 9 cache CLI params (now managed via Admin API / WebUI + DB)
22+
- **Status field unification**: rename `providers.is_active`, `routes.is_active`, `api_keys.status` to `is_enabled` (BOOLEAN) across all storage backends, SQL queries, Rust models, and WebUI; add non-breaking schema migration for both SQLite and PostgreSQL
23+
24+
#### Fixes
25+
26+
- Fix missing `stream_replay_tps` and `expose_headers` fields in nyro-server cache config initializers (`main.rs` and `yaml_config.rs`) causing a compile error after feat #45
27+
- Fix standalone mode proxy host/port priority bug where CLI value was silently overridden by the default
28+
- Fix `backend.ts` null-data bug where `json.data ?? json` returned the full response object when `data` was `null`, causing `.trim()` crashes on Providers and Settings pages
29+
30+
#### Documentation
31+
32+
- Consolidate 8 stale design docs into a single `docs/design/architecture.md`
33+
- Add `docs/standalone/` with full Standalone mode guide including cache section
34+
- Remove `examples/` directory (content inlined into standalone docs)
35+
- Fix stale CLI params across `docs/server/README.md`, `README.md`, and `README_CN.md`
36+
37+
---
38+
739
## v1.6.0
840

941
> Released on 2026-04-12

CHANGELOG_CN.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,38 @@ Nyro 的所有重要变更均记录在此文件中。
44

55
---
66

7+
## v1.6.1
8+
9+
> 发布于 2026-04-14
10+
11+
#### 功能
12+
13+
- **流式缓存重放 TPS 限速**:在 `ExactCacheConfig``SemanticCacheConfig` 中新增 `stream_replay_tps`(默认 100);设为 `0` 可禁用限速并恢复即时输出行为;实现 `split_text_deltas` 辅助函数,将较大的 `TextDelta`/`ReasoningDelta` 切分为约 1 Token 的小块以平滑逐 Token 输出节奏;首个 SSE chunk 始终立即下发,保证 TTFT 为零
14+
- **独立缓存响应头控制**:在两种缓存配置中新增 `expose_headers`(默认 `true`),可分别控制 exact 和 semantic 缓存命中时是否下发 `X-NYRO-CACHE-*` 响应头;响应头统一改为全大写:`X-NYRO-CACHE` / `X-NYRO-CACHE-KEY` / `X-NYRO-CACHE-SCORE`
15+
- **WebUI 内嵌至服务端二进制**:移除 `--webui-dir` CLI 参数,通过 `rust-embed``webui/dist` 直接内嵌到二进制文件中;新增 `--log-level` 参数(环境变量 `NYRO_LOG_LEVEL`)替代硬编码的 tracing 过滤规则;关键参数支持环境变量(`NYRO_PROXY_HOST``NYRO_ADMIN_TOKEN` 等)
16+
- **浏览器 Token 鉴权**:新增 `/login` 页面及浏览器 WebUI 的 Token 鉴权流程;管理 Token 生效时 WebUI 顶栏显示登出图标(Tauri IPC 路径不受影响)
17+
- **资源启用/禁用切换**:在 WebUI 的 Provider、路由、API Key 列表页新增启用/禁用切换按钮;仅在资源被禁用时显示危险徽标
18+
19+
#### 改进
20+
21+
- **服务端 CLI 精简**:CLI 参数从 27 个减少至 18 个;`--admin-key` 重命名为 `--admin-token``--storage-dsn-env` 重命名为 `--postgres-dsn`;PostgreSQL 连接池参数统一加 `postgres-` 前缀;`--sqlite-migrate-on-start` 重命名为 `--migrate-on-start`;移除 9 个缓存相关 CLI 参数(现通过 Admin API / WebUI + DB 管理)
22+
- **状态字段统一**:将 `providers.is_active``routes.is_active``api_keys.status` 统一重命名为 `is_enabled`(BOOLEAN 类型),覆盖所有存储后端、SQL 查询、Rust 模型与 WebUI;同时为 SQLite 和 PostgreSQL 提供非破坏性 schema 迁移
23+
24+
#### 修复
25+
26+
- 修复 feat #45 引入的两个新字段 `stream_replay_tps``expose_headers` 未在 nyro-server 缓存配置初始化代码(`main.rs``yaml_config.rs`)中添加,导致 CI 编译失败
27+
- 修复 standalone 模式下代理 host/port 优先级 bug:CLI 传入值被默认值静默覆盖
28+
- 修复 `backend.ts` 中 null-data bug:当 `data``null` 时,`json.data ?? json` 返回完整响应对象,导致 Provider 与 Settings 页面调用 `.trim()` 时崩溃
29+
30+
#### 文档
31+
32+
- 将 8 个过时设计文档合并为单一 `docs/design/architecture.md`
33+
- 新增 `docs/standalone/` 目录,包含完整的 Standalone 模式使用指南及缓存章节
34+
- 删除 `examples/` 目录(内容已整合至 standalone 文档)
35+
- 修复 `docs/server/README.md``README.md``README_CN.md` 中的过时 CLI 参数说明
36+
37+
---
38+
739
## v1.6.0
840

941
> 发布于 2026-04-12

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["crates/nyro-core", "src-tauri", "src-server"]
44

55
[workspace.package]
6-
version = "1.6.0"
6+
version = "1.6.1"
77
edition = "2024"
88
license = "Apache-2.0"
99
repository = "https://github.com/nyroway/nyro"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/nicegui-org/nicegui/main/nicegui/static/tauri/tauri.conf.json",
33
"productName": "Nyro",
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"identifier": "com.nyro.ai-gateway",
66
"build": {
77
"frontendDist": "../webui/dist",

webui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nyro-console",
33
"private": true,
4-
"version": "1.6.0",
4+
"version": "1.6.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

0 commit comments

Comments
 (0)