- 五个适配器 YAML 全字段补齐(codex/claude-code/gemini/kimi/opencode) - agentdock-config:TOML/JSON 编解码 + 原子写 + 自动备份 - agentdock-diag:PATH/依赖版本/版本冲突/配置损坏四类规则 - agentdock-core:detectCli/previewAction/runAction 流式/readConfig/writeConfig/authStatus/diagnose - Tauri IPC 命令 + CLI 详情页/安装确认弹窗/配置表单/诊断页 - cargo test 75 项通过(含 4 项真机 ignored 自测),前端 build 通过
19 lines
655 B
Rust
19 lines
655 B
Rust
//! agentdock-secrets —— 系统密钥库封装与日志脱敏(架构 §4.1 / §4.3)
|
||
//!
|
||
//! - `store` / `mock` / `keyring`:密钥库封装(set/get/has/delete),
|
||
//! 生产后端走 keyring(Windows Credential Manager / Linux Secret Service),
|
||
//! 测试用 mock 内存后端。
|
||
//! - `redact`:日志脱敏器(sk-/xai-/ghp_/gho_/JWT 与敏感键值)。
|
||
|
||
pub mod error;
|
||
pub mod keyring;
|
||
pub mod mock;
|
||
pub mod redact;
|
||
pub mod store;
|
||
|
||
pub use error::SecretStoreError;
|
||
pub use keyring::KeyringSecretStore;
|
||
pub use mock::MockSecretStore;
|
||
pub use redact::{REDACTED, redact, redact_value};
|
||
pub use store::{SecretStore, service_name};
|