add webui

This commit is contained in:
LPF
2026-02-26 01:32:46 +08:00
parent 191e09d8f4
commit 641a6c6974
29 changed files with 2161 additions and 2040 deletions

32
webui/src/types/index.ts Normal file
View File

@@ -0,0 +1,32 @@
export type ChatItem = { role: 'user' | 'assistant'; text: string };
export type Session = { key: string; title: string };
export type CronJob = {
id: string;
name: string;
enabled: boolean;
kind?: string;
everyMs?: number;
expr?: string;
message?: string;
deliver?: boolean;
channel?: string;
to?: string;
};
export type Cfg = Record<string, any>;
export type View = 'dashboard' | 'chat' | 'config' | 'cron' | 'nodes';
export type Lang = 'en' | 'zh';
export type LogEntry = {
time: string;
level: string;
msg: string;
[key: string]: any;
};
export type Skill = {
id: string;
name: string;
description: string;
tools: string[];
system_prompt?: string;
};