chore(desktop): Tauri 命令 @reserved 全量标注 — 88个无前端调用命令已标注
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- 新增 66 个 @reserved 标注 (已有 22 个) - 覆盖: agent/butler/classroom/hand/mcp/pipeline/skill/trigger/viking/zclaw 等模块 - MCP 命令增加 @connected 注释说明前端接入路径 - @reserved 总数: 89 (含 identity_init)
This commit is contained in:
@@ -52,6 +52,7 @@ pub(crate) struct ProcessLogsResponse {
|
||||
}
|
||||
|
||||
/// Get ZCLAW Kernel status
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_status(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
@@ -59,6 +60,7 @@ pub fn zclaw_status(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
}
|
||||
|
||||
/// Start ZCLAW Kernel
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_start(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
@@ -69,6 +71,7 @@ pub fn zclaw_start(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
}
|
||||
|
||||
/// Stop ZCLAW Kernel
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_stop(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
@@ -78,6 +81,7 @@ pub fn zclaw_stop(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
}
|
||||
|
||||
/// Restart ZCLAW Kernel
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_restart(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
@@ -88,6 +92,7 @@ pub fn zclaw_restart(app: AppHandle) -> Result<LocalGatewayStatus, String> {
|
||||
}
|
||||
|
||||
/// Get local auth token from ZCLAW config
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_local_auth() -> Result<LocalGatewayAuth, String> {
|
||||
@@ -95,6 +100,7 @@ pub fn zclaw_local_auth() -> Result<LocalGatewayAuth, String> {
|
||||
}
|
||||
|
||||
/// Prepare ZCLAW for Tauri (update allowed origins)
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_prepare_for_tauri(app: AppHandle) -> Result<LocalGatewayPrepareResult, String> {
|
||||
@@ -102,6 +108,7 @@ pub fn zclaw_prepare_for_tauri(app: AppHandle) -> Result<LocalGatewayPrepareResu
|
||||
}
|
||||
|
||||
/// Approve device pairing request
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_approve_device_pairing(
|
||||
@@ -122,6 +129,7 @@ pub fn zclaw_doctor(app: AppHandle) -> Result<String, String> {
|
||||
}
|
||||
|
||||
/// List ZCLAW processes
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_process_list(app: AppHandle) -> Result<ProcessListResponse, String> {
|
||||
@@ -160,6 +168,7 @@ pub fn zclaw_process_list(app: AppHandle) -> Result<ProcessListResponse, String>
|
||||
}
|
||||
|
||||
/// Get ZCLAW process logs
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_process_logs(
|
||||
@@ -224,6 +233,7 @@ pub fn zclaw_process_logs(
|
||||
}
|
||||
|
||||
/// Get ZCLAW version information
|
||||
// @reserved: system control
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub fn zclaw_version(app: AppHandle) -> Result<VersionResponse, String> {
|
||||
|
||||
Reference in New Issue
Block a user