chore: 保存工作副本——客户端授权新契约(双端点/验签/令牌/周检)与桌面会话可靠性改进

This commit is contained in:
Logan.Li committed 2026-09-14 22:10:22 +08:00
1 parent f71eef0eba
commit ae6093c9b3
163 files changed
+4911 -2494

No files matched your search

+13 -21
View File
@@ -21,10 +21,15 @@ export interface SSHConnectRequest {
keepAlive?: boolean
}
export interface SSHConnectResponse {
/** Business command envelope. Do not invent a third failure shape beside this and thrown RDP/VNC runtime errors. */
export interface IpcEnvelope {
success: boolean
connectionId?: string
error?: string
errorCode?: string
}
export interface SSHConnectResponse extends IpcEnvelope {
connectionId?: string
}
export interface SSHExecRequest {
@@ -32,11 +37,9 @@ export interface SSHExecRequest {
command: string
}
export interface SSHExecResponse {
success: boolean
export interface SSHExecResponse extends IpcEnvelope {
result?: string
exitCode?: number
error?: string
}
export interface SSHCreateShellRequest {
@@ -83,11 +86,9 @@ export interface SSHForwardDynamicRequest {
localPort: number
}
export interface SSHForwardResponse {
success: boolean
export interface SSHForwardResponse extends IpcEnvelope {
forwardId?: string
boundPort?: number
error?: string
}
export interface SSHForwardStatus {
@@ -105,30 +106,21 @@ export interface SSHForwardStatus {
bytesDown: number
}
export interface SSHForwardListResponse {
success: boolean
export interface SSHForwardListResponse extends IpcEnvelope {
tunnels?: SSHForwardStatus[]
error?: string
}
// ============== Session IPC ==============
export interface SessionCreateResponse {
success: boolean
export interface SessionCreateResponse extends IpcEnvelope {
session?: Session
error?: string
}
export interface SessionUpdateResponse {
success: boolean
export interface SessionUpdateResponse extends IpcEnvelope {
session?: Session
error?: string
}
export interface SessionDeleteResponse {
success: boolean
error?: string
}
export type SessionDeleteResponse = IpcEnvelope
// ============== Settings IPC ==============