mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(web): show Hub SQLite storage usage in Settings (#1225)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user