Implement workspace-aware folder browser

This commit is contained in:
Shantur Rathore
2025-11-17 22:05:38 +00:00
parent f53564bb06
commit 40e8c90bab
8 changed files with 526 additions and 14 deletions

View File

@@ -130,11 +130,14 @@ export const cliApi = {
body: JSON.stringify({ path }),
})
},
listFileSystem(relativePath = ".", options?: { depth?: number }): Promise<FileSystemEntry[]> {
listFileSystem(relativePath = ".", options?: { depth?: number; includeFiles?: boolean }): Promise<FileSystemEntry[]> {
const params = new URLSearchParams({ path: relativePath })
if (options?.depth) {
params.set("depth", String(options.depth))
}
if (options?.includeFiles !== undefined) {
params.set("includeFiles", String(options.includeFiles))
}
return request<FileSystemEntry[]>(`/api/filesystem?${params.toString()}`)
},
readInstanceData(id: string): Promise<InstanceData> {