feat: update type defination

This commit is contained in:
bincxz
2025-12-07 16:33:17 +08:00
parent 320e77674e
commit c7c088f585

View File

@@ -101,6 +101,7 @@ export interface TerminalSession {
username: string;
hostname: string;
status: 'connecting' | 'connected' | 'disconnected';
workspaceId?: string;
}
export interface RemoteFile {
@@ -109,3 +110,23 @@ export interface RemoteFile {
size: string;
lastModified: string;
}
export type WorkspaceNode =
| {
id: string;
type: 'pane';
sessionId: string;
}
| {
id: string;
type: 'split';
direction: 'horizontal' | 'vertical';
children: WorkspaceNode[];
sizes?: number[]; // relative sizes for children
};
export interface Workspace {
id: string;
title: string;
root: WorkspaceNode;
}