init: hermes-web-ui v0.1.0

Hermes Agent Web 管理面板,支持对话交互和定时任务管理。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-11 15:59:14 +08:00
commit cd58797f4c
41 changed files with 3627 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { request } from './client'
export interface HealthResponse {
status: string
version?: string
}
export interface Model {
id: string
object: string
owned_by: string
}
export interface ModelsResponse {
object: string
data: Model[]
}
export async function checkHealth(): Promise<HealthResponse> {
return request<HealthResponse>('/health')
}
export async function fetchModels(): Promise<ModelsResponse> {
return request<ModelsResponse>('/v1/models')
}