mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-01 00:49:33 +01:00
feat(files): load directories on demand
This commit is contained in:
1 parent
5548c17c4a
commit
349d21f75e
16 files changed
+1681
-78
No files matched your search
@@ -99,6 +99,24 @@ export interface FilesystemBrowseData {
|
||||
truncated: boolean;
|
||||
}
|
||||
|
||||
/** One page of immediate children for GET /sessions/:id/files?lazy=1. */
|
||||
export interface LazyFileListingData {
|
||||
root: string;
|
||||
worktree?: { name: string; path: string; outside?: true };
|
||||
lazy: true;
|
||||
tree: Array<{
|
||||
name: string;
|
||||
path: string;
|
||||
type: 'file' | 'directory';
|
||||
size?: number;
|
||||
extension?: string;
|
||||
}>;
|
||||
totalFiles: number;
|
||||
totalDirectories: number;
|
||||
truncated: boolean;
|
||||
nextCursor?: string;
|
||||
}
|
||||
|
||||
/** Response payload for `PUT /api/sessions/:id/file-content` (File Viewer edit mode). */
|
||||
export interface FileWriteData {
|
||||
/** Workspace-relative path as submitted */
|
||||
|
||||
Reference in new issue
Block a user