Skip to content

Commit e4b93c3

Browse files
committed
chore: finalize v1.3.0 follow-up fixes
1 parent e9ba195 commit e4b93c3

24 files changed

+583
-720
lines changed

docs/aiprompts/commands.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343

4444
这些命令属于当前设置主路径,不应再在页面组件里散落裸 `invoke`
4545

46+
旧设置页里“安全与性能 / 容错配置”那组命令已经下线。`get_retry_config``update_retry_config``get_failover_config``update_failover_config``get_switch_log``clear_switch_log``get_rate_limit_config``update_rate_limit_config``get_conversation_config``update_conversation_config``update_hint_routes``get_pairing_config``update_pairing_config` 都应视为 `dead`,不允许重新接回前端网关、Rust 注册或 mock。提示路由当前只保留只读的 `get_hint_routes` 读取面;如果未来确实要恢复编辑入口,必须重新定义 `current` 主链,而不是直接复活旧设置页命令。
47+
4648
图库素材链路也遵循同一原则。当前主入口为 `src/lib/api/galleryMaterials.ts`,统一承接:
4749

4850
- `create_gallery_material_metadata`

docs/aiprompts/playwright-e2e.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- `lime-pet` 原生桌宠属于独立仓库与原生窗口壳,不纳入当前 WebView Playwright 的直接操控范围;在 Lime 主仓里只验证 `companion_*` API、状态事件与主窗口唤起链路,桌宠窗口移动、点击命中与原生层动画仍需额外手工 smoke
3030
- 如果 companion 协议新增了 provider 摘要、桌宠回跳设置、桌宠主动请求同步,或双击 / 三击 / 文本对话触发的桌宠 LLM 交互事件,Playwright 续测只覆盖 Lime 主仓内的“状态事件是否触发”“是否跳到 `设置 -> AI 服务商`”“是否重发脱敏摘要”“是否调用宿主侧 LLM 代理逻辑”和“主窗口是否被唤起”,不在 WebView 层尝试直接操控原生桌宠 UI
3131
- 共享网关控制页已下线,托盘也不再展示网关状态或地址;共享网关 `/v1/routes` 与 selector HTTP 路由也已下线,不再对“启动/停止网关、复制网关地址、路由/curl 示例、selector 路由、托盘运行态文案”做 GUI 续测;server 验证只关注标准 `/v1/messages``/v1/chat/completions` 主链,如需看运行时状态,走开发者页或实验页的诊断面板
32+
- 旧设置页里的“安全与性能 / 容错配置”已经下线,不再对这些页签、表单或命令写入路径做 GUI 续测;如果还要验证提示路由,只围绕当前输入框 `get_hint_routes` 读取链与提示展示,不再寻找旧设置页入口
3233
- 项目排版模板与品牌人设扩展旧链路已下线,不再对相关弹窗、模板列表、默认模板、人设扩展表单做 GUI 续测;项目与工作台回归只围绕当前 `Claw` / `workspace` / 现役 `persona` 主链
3334
- 如果只是模块级代码修改、并不需要真实页面交互,优先跑最小单测或 `verify:local`
3435

docs/aiprompts/quality-workflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676

7777
如果本轮是在清退旧图库素材命名,`create_poster_metadata` / `get_poster_metadata` / `get_poster_material` / `update_poster_metadata` / `delete_poster_metadata` / `list_by_*`,以及 `PosterMaterial*` / `poster_material_*` 表名与模块名也必须同步从前端网关、Rust 注册、DAO 与治理目录册中撤掉;如需保留历史数据,只允许在 schema 迁移中短暂停留旧表名。最低校验至少包含 `npm run test:contracts``npm run governance:legacy-report`
7878

79+
如果本轮是在清退旧设置页的“安全与性能 / 容错配置”命令面,`get_retry_config``update_retry_config``get_failover_config``update_failover_config``get_switch_log``clear_switch_log``get_rate_limit_config``update_rate_limit_config``get_conversation_config``update_conversation_config``update_hint_routes``get_pairing_config``update_pairing_config` 也必须同步从前端网关、Rust 注册和默认 mock 中撤掉;若当前输入框提示仍依赖 `get_hint_routes`,则只保留该只读读取面。最低校验至少包含 `npm run test:contracts``npm run governance:legacy-report`
80+
7981
如果本轮涉及 `companion_*` 桌宠命令族,还要同步检查本地 companion `WebSocket` 入口、前端 `src/lib/api/companion.ts` 网关、Rust 注册、治理目录册以及浏览器模式 mock 返回形态;浏览器模式下这组命令默认也要保持可 mock,不要让桌宠接入把默认页面渲染链路卡死。
8082

8183
如果本轮涉及 team runtime 工具面或主线程用户消息工具,还要同步检查 Rust catalog / inventory、runtime 注册、浏览器 fallback mock 与前端 tool display;`Agent / TeamCreate / TeamDelete / SendMessage / ListPeers` 必须保持同一组 current surface,`SendUserMessage` 也必须继续停留在 current 主线程工具面,`SubAgentTask` 只能继续停留在 compat 读取边界。

src-tauri/src/app/bootstrap.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use crate::commands::orchestrator_cmd::OrchestratorState;
1515
use crate::commands::plugin_cmd::PluginManagerState;
1616
use crate::commands::plugin_install_cmd::PluginInstallerState;
1717
use crate::commands::provider_pool_cmd::{CredentialSyncServiceState, ProviderPoolServiceState};
18-
use crate::commands::resilience_cmd::ResilienceConfigState;
1918
use crate::commands::session_files_cmd::SessionFilesState;
2019
use crate::commands::skill_cmd::SkillServiceState;
2120
use crate::commands::terminal_cmd::TerminalManagerState;
@@ -56,7 +55,6 @@ pub struct AppStates {
5655
pub credential_sync_service: CredentialSyncServiceState,
5756
pub token_cache_service: TokenCacheServiceState,
5857
pub machine_id_service: MachineIdState,
59-
pub resilience_config: ResilienceConfigState,
6058
pub plugin_manager: PluginManagerState,
6159
pub plugin_installer: PluginInstallerState,
6260
pub plugin_rpc_manager: crate::commands::plugin_rpc_cmd::PluginRpcManagerState,
@@ -177,8 +175,6 @@ pub fn init_states(config: &Config) -> Result<AppStates, String> {
177175
.map_err(|e| format!("MachineIdService 初始化失败: {e}"))?;
178176
let machine_id_service_state: MachineIdState = Arc::new(RwLock::new(machine_id_service));
179177

180-
let resilience_config_state = ResilienceConfigState::default();
181-
182178
// 插件管理器
183179
let plugin_manager = plugin::PluginManager::with_defaults();
184180
let plugin_manager_state = PluginManagerState(Arc::new(RwLock::new(plugin_manager)));
@@ -281,7 +277,6 @@ pub fn init_states(config: &Config) -> Result<AppStates, String> {
281277
credential_sync_service: credential_sync_service_state,
282278
token_cache_service: token_cache_service_state,
283279
machine_id_service: machine_id_service_state,
284-
resilience_config: resilience_config_state,
285280
plugin_manager: plugin_manager_state,
286281
plugin_installer: plugin_installer_state,
287282
plugin_rpc_manager: plugin_rpc_manager_state,

src-tauri/src/app/runner.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ pub fn run() {
107107
credential_sync_service: credential_sync_service_state,
108108
token_cache_service: token_cache_service_state,
109109
machine_id_service: machine_id_service_state,
110-
resilience_config: resilience_config_state,
111110
plugin_manager: plugin_manager_state,
112111
plugin_installer: plugin_installer_state,
113112
plugin_rpc_manager: plugin_rpc_manager_state,
@@ -214,7 +213,6 @@ pub fn run() {
214213
.manage(credential_sync_service_state)
215214
.manage(token_cache_service_state)
216215
.manage(machine_id_service_state)
217-
.manage(resilience_config_state)
218216
.manage(telemetry_state)
219217
.manage(plugin_manager_state)
220218
.manage(plugin_installer_state)
@@ -1344,13 +1342,6 @@ pub fn run() {
13441342
// API Key Provider connection test command
13451343
commands::api_key_provider_cmd::test_api_key_provider_connection,
13461344
commands::api_key_provider_cmd::test_api_key_provider_chat,
1347-
// Resilience config commands
1348-
commands::resilience_cmd::get_retry_config,
1349-
commands::resilience_cmd::update_retry_config,
1350-
commands::resilience_cmd::get_failover_config,
1351-
commands::resilience_cmd::update_failover_config,
1352-
commands::resilience_cmd::get_switch_log,
1353-
commands::resilience_cmd::clear_switch_log,
13541345
// Telemetry commands
13551346
commands::telemetry_cmd::get_request_logs,
13561347
commands::telemetry_cmd::get_request_log_detail,
@@ -1369,15 +1360,8 @@ pub fn run() {
13691360
commands::injection_cmd::add_injection_rule,
13701361
commands::injection_cmd::remove_injection_rule,
13711362
commands::injection_cmd::update_injection_rule,
1372-
// Security & Performance commands
1373-
commands::security_perf_cmd::get_rate_limit_config,
1374-
commands::security_perf_cmd::update_rate_limit_config,
1375-
commands::security_perf_cmd::get_conversation_config,
1376-
commands::security_perf_cmd::update_conversation_config,
1363+
// Hint route commands
13771364
commands::security_perf_cmd::get_hint_routes,
1378-
commands::security_perf_cmd::update_hint_routes,
1379-
commands::security_perf_cmd::get_pairing_config,
1380-
commands::security_perf_cmd::update_pairing_config,
13811365
// Usage commands
13821366
commands::usage_cmd::get_kiro_usage,
13831367
// Tray commands

src-tauri/src/app/state.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use crate::commands::orchestrator_cmd::OrchestratorState;
1212
use crate::commands::plugin_cmd::PluginManagerState;
1313
use crate::commands::plugin_install_cmd::PluginInstallerState;
1414
use crate::commands::provider_pool_cmd::{CredentialSyncServiceState, ProviderPoolServiceState};
15-
use crate::commands::resilience_cmd::ResilienceConfigState;
1615
use crate::commands::skill_cmd::SkillServiceState;
1716
use crate::config::{GlobalConfigManager, GlobalConfigManagerState};
1817
use crate::database;
@@ -53,7 +52,6 @@ pub struct ServiceStates {
5352
pub credential_sync_service: CredentialSyncServiceState,
5453
pub token_cache_service: TokenCacheServiceState,
5554
pub machine_id_service: MachineIdState,
56-
pub resilience_config: ResilienceConfigState,
5755
pub plugin_manager: PluginManagerState,
5856
pub plugin_installer: PluginInstallerState,
5957
pub orchestrator: OrchestratorState,
@@ -87,9 +85,6 @@ pub fn init_service_states() -> ServiceStates {
8785
.expect("Failed to initialize MachineIdService");
8886
let machine_id_service_state: MachineIdState = Arc::new(RwLock::new(machine_id_service));
8987

90-
// Initialize ResilienceConfigState
91-
let resilience_config_state = ResilienceConfigState::default();
92-
9388
// Initialize PluginManager
9489
let plugin_manager = plugin::PluginManager::with_defaults();
9590
let plugin_manager_state = PluginManagerState(Arc::new(RwLock::new(plugin_manager)));
@@ -114,7 +109,6 @@ pub fn init_service_states() -> ServiceStates {
114109
credential_sync_service: credential_sync_service_state,
115110
token_cache_service: token_cache_service_state,
116111
machine_id_service: machine_id_service_state,
117-
resilience_config: resilience_config_state,
118112
plugin_manager: plugin_manager_state,
119113
plugin_installer: plugin_installer_state,
120114
orchestrator: orchestrator_state,

src-tauri/src/commands/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub mod plugin_install_cmd;
4848
pub mod plugin_rpc_cmd;
4949
pub mod prompt_cmd;
5050
pub mod provider_pool_cmd;
51-
pub mod resilience_cmd;
5251
pub mod screenshot_cmd;
5352
pub mod security_perf_cmd;
5453
pub mod session_files_cmd;

src-tauri/src/commands/resilience_cmd.rs

Lines changed: 0 additions & 182 deletions
This file was deleted.

0 commit comments

Comments
 (0)