- 自己调 Aptabase 的批量接口 POST /api/v0/events(没有纯 Rust SDK)。只发版本、系统名和版本、CPU 架构、设置快照(取值固定,主机等数量只报档位)和功能使用次数;不发主机、凭据、命令、文件名、路径,也没有任何标识 - 四种事件:app_installed(首次启动,送达后记进 analytics.json)、app_started、app_active(窗口到前台且当天 UTC 还没报过)、usage(43 项功能计数,从第一次使用起满 4 小时汇总一条) - 不用定时器:只在启动、窗口激活、用到功能、改设置时动作,满期的汇总和失败重试都等下一个信号;计数存盘,退出不等网络、不丢数据 - 内网断网不受影响:联网、系统检测、写文件都在后台线程,连接 5 秒、整体 15 秒超时,失败不提示,重试从 1 分钟起翻倍、最长 6 小时,4xx 不重试 - 「设置 › 关于」新增「隐私」组的「发送匿名使用统计」,默认开,关掉清空本机攒下的计数 - 只有发布构建发;开发构建设 SHELLRS_ANALYTICS_DEBUG=1 才发调试事件,汇总周期 1 分钟、失败 10 秒后重试 - 手册新增「隐私」一节列出全部上报内容,README 同步 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
669 B
Rust
32 lines
669 B
Rust
//! UI integration tests: the production `Workspace` rendered in a headless
|
|
//! window, driven through real pointer and keyboard events.
|
|
//!
|
|
//! One test binary, one module per feature: every file directly under
|
|
//! `tests/` would be a binary of its own, linking the whole GPUI stack
|
|
//! again. `support` holds the fixtures and fakes the modules share.
|
|
|
|
mod support;
|
|
|
|
mod analytics;
|
|
mod cli;
|
|
mod connection;
|
|
mod credential;
|
|
mod docker;
|
|
mod editor;
|
|
mod forward;
|
|
mod history;
|
|
mod host_dialog;
|
|
mod host_tree;
|
|
mod monitor;
|
|
mod netstat;
|
|
mod processes;
|
|
mod services;
|
|
mod settings;
|
|
mod sftp;
|
|
mod shortcuts;
|
|
mod snippets;
|
|
mod terminal;
|
|
mod transfer;
|
|
mod update;
|
|
mod workspace;
|