feat: release OpsXShell 2.1.0 native Tauri edition
This commit is contained in:
1 parent
e9a0d21758
commit
a3dba0c6ed
311 files changed
+31748
-14897
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* 定义所有 IPC 请求/响应的类型
|
||||
*/
|
||||
|
||||
import type { Session, ProxyConfig } from './session.types'
|
||||
import type { Session, ProxyConfig, JumpHostConfig } from './session.types'
|
||||
|
||||
// ============== SSH IPC ==============
|
||||
|
||||
@@ -15,6 +15,10 @@ export interface SSHConnectRequest {
|
||||
privateKey?: string
|
||||
passphrase?: string
|
||||
proxy?: ProxyConfig
|
||||
jumpHost?: JumpHostConfig
|
||||
jumpHosts?: JumpHostConfig[]
|
||||
timeoutSeconds?: number
|
||||
keepAlive?: boolean
|
||||
}
|
||||
|
||||
export interface SSHConnectResponse {
|
||||
@@ -30,7 +34,7 @@ export interface SSHExecRequest {
|
||||
|
||||
export interface SSHExecResponse {
|
||||
success: boolean
|
||||
output?: string
|
||||
result?: string
|
||||
error?: string
|
||||
}
|
||||
|
||||
@@ -80,10 +84,32 @@ export interface SSHForwardDynamicRequest {
|
||||
|
||||
export interface SSHForwardResponse {
|
||||
success: boolean
|
||||
forwardId?: string
|
||||
boundPort?: number
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface SSHForwardStatus {
|
||||
forwardId: string
|
||||
connectionId: string
|
||||
kind: 'local' | 'remote' | 'dynamic'
|
||||
bindHost: string
|
||||
boundPort: number
|
||||
targetHost?: string
|
||||
targetPort?: number
|
||||
startedAt: number
|
||||
running: boolean
|
||||
activeConnections: number
|
||||
bytesUp: number
|
||||
bytesDown: number
|
||||
}
|
||||
|
||||
export interface SSHForwardListResponse {
|
||||
success: boolean
|
||||
tunnels?: SSHForwardStatus[]
|
||||
error?: string
|
||||
}
|
||||
|
||||
// ============== Session IPC ==============
|
||||
|
||||
export interface SessionCreateResponse {
|
||||
|
||||
Reference in new issue
Block a user