TauriTavern/docs
Darkatse 0d592e7fc5 test(perf): replay the frontend's host calls against the Rust backend
The frontend suite answers host calls from a fixture, so file reads,
card parsing and tokenizing never reached its counters. It now records
each call with its step and writes the calls, with the dataset laid out
as a data root, to tests/perf/out/. tt-perf (the perf feature) builds
AppState on Tauri's mock runtime from its own HostEnvironment and
replays the calls through the real commands, taking the values the host
issued from its own results. Each step counts result bytes, plus
callgrind instructions and /proc/self/io on Linux, retired instructions
on macOS and I/O counters on Windows. LlmApiLogStore and the two Webview
commands the replay reaches become generic over the runtime.

Linux compares with a committed baseline built with the Rust release it
names, so a new stable cannot move it. macOS and Windows counts depend
on the machine, so uncommitted source changes are compared with HEAD
measured in a worktree on the same machine, taking the least of three
runs. The replay runs on one async worker and one blocking thread:
tokenizing on a pool thread with a cold per-thread cache made a third
of runs 18M instructions shorter. macOS logical writes varied by 30%
and are not counted.

Reverting the name-only chat listing grows open-back's result bytes by
47%, which the frontend counters missed. The Linux baseline comes from
the first CI run, whose log ends with the counters to commit.
2026-10-27 20:54:31 -04:00
..
Agent feat(agent): bundle read-only application knowledge skills 2026-10-22 04:46:02 -04:00
API Merge pull request #395 from alksdesu/feat/ios-drawer-bar 2026-10-24 23:44:14 -04:00
CurrentState test(perf): replay the frontend's host calls against the Rust backend 2026-10-27 20:54:31 -04:00
images docs(readme): refresh project homepage and optimize assets 2026-07-19 00:09:56 -04:00
AndroidDevelopment.md refactor(host): rely on the host and scope the dev resource bridge 2026-10-18 03:01:46 -04:00
BackendStructure.md test(perf): replay the frontend's host calls against the Rust backend 2026-10-27 20:54:31 -04:00
FrontendAccessibility.md fix(settings): start when saved settings lack amount_gen 2026-10-22 14:26:21 -04:00
FrontendGuide.md test(perf): measure opening a heavy card, host traffic and allocations 2026-10-27 20:53:58 -04:00
FrontendHostContract.md feat(ios): draw drawer buttons in iPhone Duo system bar regions 2026-10-23 20:36:39 -07:00
iOSDevelopment.md ci(ios): build release iOS apps with Xcode 27.1 2026-10-24 23:58:20 -04:00
OpenHarmonyDevelopment.md ci(release): ship the experimental OpenHarmony HAP with stable releases 2026-10-22 05:47:44 -04:00
README.md refactor(files): unify native file selection and delivery 2026-10-04 16:28:48 -04:00
TechStack.md refactor(layout): move mobile viewport ownership into native hosts 2026-10-05 05:50:20 -04:00

TauriTavern 项目文档

TauriTavern 保留 SillyTavern 的前端体验与扩展生态,用 Tauri 和 Rust 后端提供本地存储、模型调用及平台能力。

开始阅读

先看 项目哲学,了解项目如何处理兼容性、复杂度和维护成本。随后按工作方向选择入口:

方向 文档
仓库技术栈与开发检查 技术栈
Rust 服务与 crate 边界 后端结构
前端启动、路由与集成 前端指南
前端和扩展可观察的宿主行为 宿主契约
编写扩展 扩展 API
理解或修改 Agent Agent
文件导入、导出与暂存 文件传输
查找某个模块的实现 模块文档
Android / iOS / OpenHarmony 开发 Android、iOS、OpenHarmony

Agent 文档从文件、工作区、循环和日志讲起,再说明多 Agent 如何通过任务与结果协作。配置、工具、脚本和 API 可按需要继续查阅。

维护文档

每个主题保留一个主要入口,正文说明用途、工作方式和源码位置。接口用法放在 API 文档,字段与默认值引用源码。行为变化时更新所属主题,删除已经过时的说明。