feat(ui,api,admin): sveltekit admin spa, usage by day/agent/conversation/model, rate limits, memory tree, turn snapshot

This commit is contained in:
hh
2026-08-28 22:14:15 +02:00
parent 61562e947d
commit 98796a82c6
158 changed files with 8459 additions and 2531 deletions
+25
View File
@@ -0,0 +1,25 @@
<script lang="ts">
import type { Kind } from "$lib/api/types";
import { cn } from "$lib/utils";
let { kind, class: className = "" }: { kind: Kind | string; class?: string } =
$props();
const STYLE: Record<string, string> = {
branch: "bg-kind-branch/12 text-kind-branch",
deep: "bg-kind-deep/12 text-kind-deep",
fork: "bg-kind-fork/12 text-kind-fork",
job: "bg-kind-job/12 text-kind-job",
master: "bg-kind-master/12 text-kind-master",
};
</script>
<span
class={cn(
"inline-flex h-5 items-center rounded-md px-1.5 font-medium text-xs leading-none",
STYLE[kind] ?? "bg-muted text-muted-foreground",
className
)}
>
{kind}
</span>