mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-11-02 20:11:35 +00:00
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. |
||
|---|---|---|
| .. | ||
| Agent | ||
| API | ||
| CurrentState | ||
| images | ||
| AndroidDevelopment.md | ||
| BackendStructure.md | ||
| FrontendAccessibility.md | ||
| FrontendGuide.md | ||
| FrontendHostContract.md | ||
| iOSDevelopment.md | ||
| OpenHarmonyDevelopment.md | ||
| README.md | ||
| TechStack.md | ||
TauriTavern 项目文档
TauriTavern 保留 SillyTavern 的前端体验与扩展生态,用 Tauri 和 Rust 后端提供本地存储、模型调用及平台能力。
开始阅读
先看 项目哲学,了解项目如何处理兼容性、复杂度和维护成本。随后按工作方向选择入口:
| 方向 | 文档 |
|---|---|
| 仓库技术栈与开发检查 | 技术栈 |
| Rust 服务与 crate 边界 | 后端结构 |
| 前端启动、路由与集成 | 前端指南 |
| 前端和扩展可观察的宿主行为 | 宿主契约 |
| 编写扩展 | 扩展 API |
| 理解或修改 Agent | Agent |
| 文件导入、导出与暂存 | 文件传输 |
| 查找某个模块的实现 | 模块文档 |
| Android / iOS / OpenHarmony 开发 | Android、iOS、OpenHarmony |
Agent 文档从文件、工作区、循环和日志讲起,再说明多 Agent 如何通过任务与结果协作。配置、工具、脚本和 API 可按需要继续查阅。
维护文档
每个主题保留一个主要入口,正文说明用途、工作方式和源码位置。接口用法放在 API 文档,字段与默认值引用源码。行为变化时更新所属主题,删除已经过时的说明。