feat(web): show Hub SQLite storage usage in Settings (#1225)

This commit is contained in:
SSU-WEI HUANG
2026-07-29 20:13:04 +08:00
committed by GitHub
parent f5673e89bd
commit 46ab828daa
13 changed files with 229 additions and 2 deletions
+5
View File
@@ -42,6 +42,7 @@ import type {
OpencodeReasoningEffortResponse,
QueuedStateResponse,
ReopenSessionResponse,
SqliteStorageUsageResponse,
UploadFileResponse
} from '@hapi/protocol/apiTypes'
import type { AgentFlavor } from '@hapi/protocol'
@@ -621,6 +622,10 @@ export class ApiClient {
})
}
async getSqliteStorageUsage(): Promise<SqliteStorageUsageResponse> {
return await this.request<SqliteStorageUsageResponse>('/api/storage/sqlite')
}
async listMachineDirectory(
machineId: string,
path: string