Skip to content

Self-hosted MCP server + dashboard giving Claude Code, Cursor & Hermes agents shared long-term memory over a git-backed markdown vault. Agent-native, Obsidian-compatible second brain — markdown RAG, no vector DB.

feat: shadcn UI, home toggles, git-powered activity feed, workspaces CRUD

Ronalds Palacis40410a748b7b
diff --git a/.env.example b/.env.example
index 9ede75b..8976123 100644
--- a/.env.example
+++ b/.env.example
@@ -34,14 +34,14 @@ ENGRAM_DATA_DIR="/data"
# saved in Settings overrides the env value either way.
#
# NEXT_PUBLIC_APP_NAME="Engram" # display name (sidebar + browser tab)
-# GIT_SYNC_ENABLED="false" # auto commit + push the active vault
+# GIT_SYNC_ENABLED="true" # auto commit + push the active vault — ON by default; set "false" to opt out
# GIT_AUTHOR_NAME="Engram"
# GIT_AUTHOR_EMAIL="[email protected]"
# GITHUB_CLIENT_ID="" # "Connect GitHub" repo flow (URL+token path needs no OAuth app)
# GITHUB_CLIENT_SECRET="" # OAuth app "Authorization callback URL": <APP_URL>/api/github/callback
# HARNESS_ENABLED="false" # brain_capture auto-filing (costs Anthropic tokens)
# ANTHROPIC_API_KEY=""
-# CAPTURE_MODEL="claude-haiku-4-5-20251001"
+# CAPTURE_MODEL="claude-haiku-4-5" # brain_capture model; pick in Settings (default). Must be a supported id.
# MCP_TOKEN="" # one shared MCP key; or create per-teammate tokens on the Connect page
# ENGRAM_STATE_DIR="/data/.engram" # override where token hashes persist (defaults to ENGRAM_DATA_DIR)
# VAULT_DIR="/data" # fallback local vault (workspaces are normally connected in the UI)
diff --git a/DEPLOY.md b/DEPLOY.md
index 562c683..3949333 100644
--- a/DEPLOY.md
+++ b/DEPLOY.md
@@ -29,9 +29,11 @@ Already a git repo — create a remote and push `main`.
Deploy, then sign in with Google. These five bootstrap **auth + infra** — they gate login
itself (or say where state lives), so they can't live behind the login and must be env.
-**Configure in the dashboard → Settings instead of env** (all optional; env value, if set, is
-just the default): **App name** · **Git sync** (enable + commit author) · **AI capture**
-(`brain_capture` toggle + Anthropic key + model) · **GitHub** repo-connect OAuth (client id/secret).
+**Configure in the dashboard → Settings (or the toggles on the home) instead of env** (all
+optional; env value, if set, is just the default): **Git sync** (ON by default — commit +
+push the connected vault; author + advanced in Settings) · **Curator** (chat + `brain_capture`
+auto-filing toggle + Anthropic key + capture model) · **App name** · **GitHub** repo-connect
+OAuth (client id/secret). Git sync and Curator have inline on/off toggles on the home hub.
Secrets entered in Settings are stored encrypted at rest (keyed off `AUTH_SECRET`).
## 4. Connect a vault repo (in the dashboard → Workspaces)
diff --git a/app/(app)/activity/page.tsx b/app/(app)/activity/page.tsx
new file mode 100644
index 0000000..067bc8f
--- /dev/null
+++ b/app/(app)/activity/page.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import useSWR from "swr";
+import { fetcher } from "@/lib/client";
+import { ActivityList, type ActivityEntry } from "@/components/activity-list";
+
+/** Full vault activity — every recent commit (agents + humans) to the connected repo. */
+export default function ActivityPage() {
+ const { data, isLoading } = useSWR<{ activity: ActivityEntry[] }>("/api/activity?limit=100", fetcher, {
+ refreshInterval: 15000,
+ });
+
+ return (
+ <div className="scrollbar-none h-full overflow-y-auto">
+ <div className="mx-auto max-w-2xl px-8 py-10">
+ <h1 className="text-2xl font-semibold tracking-tight">Activity</h1>
+ <p className="mt-2 text-sm text-muted-foreground">
+ What agents and teammates have done to your brain, straight from the vault&apos;s git history.
+ </p>
+ <div className="mt-8">
+ {isLoading && !data ? (
+ <p className="text-sm text-muted-foreground">Loading…</p>
+ ) : (
+ <ActivityList entries={data?.activity ?? []} />
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/app/(app)/page.tsx b/app/(app)/page.tsx
index 93e2304..a93e731 100644
--- a/app/(app)/page.tsx
+++ b/app/(app)/page.tsx
@@ -1,10 +1,14 @@
"use client";
import Link from "next/link";
-import useSWR from "swr";
-import { ArrowRight, Brain, Check, GitBranch, Plug } from "lucide-react";
+import useSWR, { useSWRConfig } from "swr";
+import { useEffect, useState } from "react";
+import { ArrowRight, Brain, Check, GitBranch, Plug, RefreshCw } from "lucide-react";
import { fetcher } from "@/lib/client";
import { CuratorChat } from "@/components/curator-chat";
+import { ActivityList, type ActivityEntry } from "@/components/activity-list";
+import { Card } from "@/components/ui/card";
+import { Switch } from "@/components/ui/switch";
interface Repo {
id: string;
@@ -20,126 +24,235 @@ interface Sync {
dirty?: number;
error?: boolean;
}
+interface Settings {
+ gitSyncEnabled: boolean;
+ harnessEnabledFlag: boolean;
+ anthropicApiKeySet: boolean;
+}
+
+const iconBox = "flex size-9 shrink-0 items-center justify-center rounded-lg border border-border text-muted-foreground";
+
+function StatusDot({ ok, label }: { ok?: boolean; label: string }) {
+ return (
+ <span className={`inline-flex items-center gap-1 text-xs ${ok ? "text-emerald-500" : "text-muted-foreground"}`}>
+ <span className={`size-1.5 rounded-full ${ok ? "bg-emerald-500" : "bg-muted-foreground/50"}`} />
+ {label}
+ </span>
+ );
+}
-/** One pillar row: what it is, its live state, and the action to set it up. */
-function Pillar({
+function PillarBody({
icon,
title,
desc,
state,
ok,
- href,
- cta,
}: {
icon: React.ReactNode;
title: string;
desc: string;
state?: string;
ok?: boolean;
- href: string;
- cta: string;
}) {
return (
- <Link
- href={href}
- className="group flex items-center gap-4 rounded-xl border border-border bg-card p-4 transition-colors hover:border-ring"
- >
- <div className="flex size-9 shrink-0 items-center justify-center rounded-lg border border-border text-muted-foreground">
- {icon}
- </div>
+ <>
+ <div className={iconBox}>{icon}</div>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
<span className="text-sm font-medium">{title}</span>
- {state && (
- <span className={`inline-flex items-center gap-1 text-xs ${ok ? "text-emerald-500" : "text-muted-foreground"}`}>
- <span className={`size-1.5 rounded-full ${ok ? "bg-emerald-500" : "bg-muted-foreground/50"}`} />
- {state}
- </span>
- )}
+ {state && <StatusDot ok={ok} label={state} />}
</div>
<p className="mt-0.5 text-xs text-muted-foreground">{desc}</p>
</div>
- <span className="inline-flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground transition-colors group-hover:text-foreground">
- {ok ? <Check size={13} /> : null}
- {cta}
- <ArrowRight size={13} className="transition-transform group-hover:translate-x-0.5" />
- </span>
+ </>
+ );
+}
+
+/** Navigational pillar — the whole card links somewhere. */
+function LinkPillar(props: {
+ icon: React.ReactNode;
+ title: string;
+ desc: string;
+ state?: string;
+ ok?: boolean;
+ href: string;
+ cta: string;
+}) {
+ return (
+ <Link href={props.href} className="block">
+ <Card className="group flex-row items-center gap-4 p-4 transition-colors hover:border-ring">
+ <PillarBody icon={props.icon} title={props.title} desc={props.desc} state={props.state} ok={props.ok} />
+ <span className="inline-flex items-center gap-1 whitespace-nowrap text-xs text-muted-foreground transition-colors group-hover:text-foreground">
+ {props.ok ? <Check size={13} /> : null}
+ {props.cta}
+ <ArrowRight size={13} className="transition-transform group-hover:translate-x-0.5" />
+ </span>
+ </Card>
</Link>
);
}
+/** Feature pillar with an inline on/off Switch + optional footer note. */
+function TogglePillar(props: {
+ icon: React.ReactNode;
+ title: string;
+ desc: string;
+ state?: string;
+ ok?: boolean;
+ on: boolean;
+ onToggle: (v: boolean) => void;
+ footer?: React.ReactNode;
+}) {
+ return (
+ <Card className="gap-0 overflow-hidden p-0">
+ <div className="flex items-center gap-4 p-4">
+ <PillarBody icon={props.icon} title={props.title} desc={props.desc} state={props.state} ok={props.ok} />
+ <Switch checked={props.on} onCheckedChange={props.onToggle} />
+ </div>
+ {props.footer && <div className="border-t border-border px-4 py-2 text-xs text-muted-foreground">{props.footer}</div>}
+ </Card>
+ );
+}
+
const APP_NAME_FALLBACK = process.env.NEXT_PUBLIC_APP_NAME || "Engram";
export default function Home() {
+ const { mutate } = useSWRConfig();
const { data: repos } = useSWR<{ repos: Repo[]; active: Repo | null }>("/api/repos", fetcher);
const { data: sync } = useSWR<Sync>("/api/sync", fetcher, { refreshInterval: 10000 });
const { data: feat } = useSWR<{ harness?: boolean; mcpAuthRequired?: boolean; appName?: string }>("/api/features", fetcher);
const { data: tok } = useSWR<{ tokens: { id: string }[] }>("/api/tokens", fetcher);
+ const { data: settings } = useSWR<Settings>("/api/settings", fetcher);
+ const { data: activity } = useSWR<{ activity: ActivityEntry[] }>("/api/activity?limit=10", fetcher, { refreshInterval: 15000 });
const active = repos?.active ?? null;
const appName = feat?.appName || APP_NAME_FALLBACK;
const tokenCount = tok?.tokens?.length ?? 0;
- const syncState = !active
- ? "sample vault"
- : sync?.enabled === false
- ? "sync off"
- : sync?.error
- ? "sync error"
- : sync?.ahead || sync?.behind || sync?.dirty
- ? `${sync?.dirty || 0} local · ↑${sync?.ahead || 0} ↓${sync?.behind || 0}`
- : "synced";
+ // Toggle state mirrors the saved settings; hydrate once they arrive.
+ const [gitSyncOn, setGitSyncOn] = useState(false);
+ const [curatorOn, setCuratorOn] = useState(false);
+ useEffect(() => {
+ if (!settings) return;
+ setGitSyncOn(settings.gitSyncEnabled);
+ setCuratorOn(settings.harnessEnabledFlag);
+ }, [settings]);
+
+ async function patch(body: Record<string, unknown>, ...keys: string[]) {
+ await fetch("/api/settings", { method: "PUT", headers: { "content-type": "application/json" }, body: JSON.stringify(body) });
+ for (const k of keys) mutate(k);
+ }
+ function toggleGitSync(v: boolean) {
+ setGitSyncOn(v);
+ patch({ gitSyncEnabled: v }, "/api/settings", "/api/sync");
+ }
+ function toggleCurator(v: boolean) {
+ setCuratorOn(v);
+ patch({ harnessEnabled: v }, "/api/settings", "/api/features");
+ }
// Curator on → the home is a chat window over your brain.
if (feat?.harness) return <CuratorChat />;
+ const gitDetail = sync?.error
+ ? "sync error"
+ : sync?.ahead || sync?.behind || sync?.dirty
+ ? `${sync?.dirty || 0} local · ↑${sync?.ahead || 0} ↓${sync?.behind || 0}`
+ : "synced";
+ const gitState = !active ? "no vault yet" : gitSyncOn ? gitDetail : "off";
+ const gitOk = !!active && gitSyncOn && !sync?.error;
+
+ const curatorNeedsKey = curatorOn && !settings?.anthropicApiKeySet;
+ const recent = activity?.activity ?? [];
+
return (
<div className="scrollbar-none h-full overflow-y-auto">
- <div className="mx-auto flex min-h-full max-w-2xl flex-col justify-center gap-6 px-8 py-12">
- <div>
- <div className="flex items-center gap-2">
- <div className="size-2 rounded-full bg-primary" />
- <h1 className="text-lg font-semibold tracking-tight">{appName}</h1>
+ <div className="mx-auto flex min-h-full max-w-2xl flex-col px-8 py-12">
+ <div className="my-auto space-y-6">
+ <div>
+ <div className="flex items-center gap-2">
+ <div className="size-2 rounded-full bg-primary" />
+ <h1 className="text-lg font-semibold tracking-tight">{appName}</h1>
+ </div>
+ <p className="mt-1.5 text-sm text-muted-foreground">
+ A second brain your agents read and write — a git repo of markdown, live over MCP.
+ </p>
</div>
- <p className="mt-1.5 text-sm text-muted-foreground">
- A second brain your agents read and write — a git repo of markdown, live over MCP.
- </p>
- </div>
- <div className="space-y-2.5">
- <Pillar
- icon={<GitBranch size={16} />}
- title="Vault"
- ok={!!active}
- state={active ? `${active.name} · ${syncState}` : "not connected"}
- desc={active ? "Your notes live in this git repo — versioned, synced, portable." : "Connect a git repo of markdown — the source of truth for humans and agents."}
- href="/workspaces"
- cta={active ? "Manage" : "Connect a repo"}
- />
- <Pillar
- icon={<Plug size={16} />}
- title="Agents"
- ok={tokenCount > 0}
- state={tokenCount > 0 ? `${tokenCount} token${tokenCount === 1 ? "" : "s"}` : "none yet"}
- desc="Point Claude Code, Cursor, Hermes, or Claude.ai at the MCP endpoint to read + write this brain."
- href="/connect"
- cta={tokenCount > 0 ? "Manage" : "Connect an agent"}
- />
- <Pillar
- icon={<Brain size={16} />}
- title="Curator"
- ok={!!feat?.harness}
- state={feat?.harness ? "on" : "off"}
- desc="A chat agent that reads your notes to answer, and files rough dumps into the right place. Runs on your Anthropic key."
- href="/settings"
- cta={feat?.harness ? "Configure" : "Enable"}
- />
- </div>
+ <div className="flex flex-col gap-2.5">
+ <LinkPillar
+ icon={<GitBranch size={16} />}
+ title="Vault"
+ ok={!!active}
+ state={active ? active.name : "not connected"}
+ desc={active ? "Your notes live in this git repo — versioned and portable." : "Connect a git repo of markdown — the source of truth for humans and agents."}
+ href="/workspaces"
+ cta={active ? "Manage" : "Connect a repo"}
+ />
+ <TogglePillar
+ icon={<RefreshCw size={16} />}
+ title="Git sync"
+ ok={gitOk}
+ state={gitState}
+ desc="Auto commit + push every change to the vault's remote. Author + advanced options in Settings."
+ on={gitSyncOn}
+ onToggle={toggleGitSync}
+ footer={
+ gitSyncOn && !active ? (
+ <>
+ Connect a vault in{" "}
+ <Link href="/workspaces" className="text-foreground underline underline-offset-2">Workspaces</Link>{" "}
+ to start syncing.
+ </>
+ ) : undefined
+ }
+ />
+ <LinkPillar
+ icon={<Plug size={16} />}
+ title="Agents"
+ ok={tokenCount > 0}
+ state={tokenCount > 0 ? `${tokenCount} token${tokenCount === 1 ? "" : "s"}` : "none yet"}
+ desc="Point Claude Code, Cursor, Hermes, or Claude.ai at the MCP endpoint to read + write this brain."
+ href="/connect"
+ cta={tokenCount > 0 ? "Manage" : "Connect an agent"}
+ />
+ <TogglePillar
+ icon={<Brain size={16} />}
+ title="Curator"
+ ok={false}
+ state={curatorNeedsKey ? "needs API key" : curatorOn ? "on" : "off"}
+ desc="A chat agent that reads your notes to answer, and files rough dumps into the right place."
+ on={curatorOn}
+ onToggle={toggleCurator}
+ footer={
+ curatorNeedsKey ? (
+ <>
+ Add your Anthropic API key in{" "}
+ <Link href="/settings" className="text-foreground underline underline-offset-2">Settings</Link>{" "}
+ to activate it.
+ </>
+ ) : undefined
+ }
+ />
+ </div>
+
+ {recent.length > 0 && (
+ <section>
+ <div className="mb-1 flex items-center justify-between">
+ <h2 className="text-sm font-medium">Recent activity</h2>
+ <Link href="/activity" className="inline-flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground">
+ View all <ArrowRight size={12} />
+ </Link>
+ </div>
+ <ActivityList entries={recent} />
+ </section>
+ )}
- <p className="text-center text-xs text-muted-foreground">
- Select a note, or press{" "}
- <kbd className="rounded border border-border px-1.5 py-0.5 font-mono text-[11px]">⌘K</kbd> to search.
- </p>
+ <p className="text-center text-xs text-muted-foreground">
+ Select a note, or press{" "}
+ <kbd className="rounded border border-border px-1.5 py-0.5 font-mono text-[11px]">⌘K</kbd> to search.
+ </p>
+ </div>
</div>
</div>
);
diff --git a/app/(app)/settings/page.tsx b/app/(app)/settings/page.tsx
index fe42e96..2e8b1b1 100644
--- a/app/(app)/settings/page.tsx
+++ b/app/(app)/settings/page.tsx
@@ -4,6 +4,12 @@ import { useEffect, useState } from "react";
import useSWR, { useSWRConfig } from "swr";
import { Check } from "lucide-react";
import { fetcher } from "@/lib/client";
+import { CURATOR_MODELS, DEFAULT_CAPTURE_MODEL } from "@/lib/models";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
interface PublicSettings {
appName: string;
@@ -19,27 +25,9 @@ interface PublicSettings {
envManaged: Record<string, boolean>;
}
-const input =
- "w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-sm outline-none placeholder:text-muted-foreground focus:border-ring";
-const label = "text-xs font-medium text-muted-foreground";
-
-function Toggle({ on, onChange }: { on: boolean; onChange: (v: boolean) => void }) {
- return (
- <button
- type="button"
- role="switch"
- aria-checked={on}
- onClick={() => onChange(!on)}
- className={`relative inline-flex h-5 w-9 shrink-0 items-center rounded-full transition-colors ${on ? "bg-primary" : "bg-muted"}`}
- >
- <span className={`inline-block size-3.5 rounded-full bg-background transition-transform ${on ? "translate-x-4" : "translate-x-1"}`} />
- </button>
- );
-}
-
function Field({ children, hint }: { children: React.ReactNode; hint?: string }) {
return (
- <div className="space-y-1">
+ <div className="space-y-1.5">
{children}
{hint && <p className="text-[11px] text-muted-foreground">{hint}</p>}
</div>
@@ -55,7 +43,7 @@ export default function SettingsPage() {
const [gitName, setGitName] = useState("");
const [gitEmail, setGitEmail] = useState("");
const [harness, setHarness] = useState(false);
- const [model, setModel] = useState("");
+ const [model, setModel] = useState<string>(DEFAULT_CAPTURE_MODEL);
const [apiKey, setApiKey] = useState("");
const [ghId, setGhId] = useState("");
const [ghSecret, setGhSecret] = useState("");
@@ -137,8 +125,8 @@ export default function SettingsPage() {
<section className="mt-8 space-y-4 border-t border-border pt-6">
<h2 className="text-sm font-medium">General</h2>
<Field hint={envHint("appName") ?? "Shown in the sidebar and browser tab."}>
- <span className={label}>App name</span>
- <input value={appNameV} onChange={(e) => setAppName(e.target.value)} placeholder="Engram" className={input} />
+ <Label htmlFor="appName">App name</Label>
+ <Input id="appName" value={appNameV} onChange={(e) => setAppName(e.target.value)} placeholder="Engram" />
</Field>
</section>
@@ -149,23 +137,23 @@ export default function SettingsPage() {
<h2 className="text-sm font-medium">Git sync</h2>
<p className="text-xs text-muted-foreground">Auto commit + push the active vault to its remote.</p>
</div>
- <Toggle on={gitSync} onChange={setGitSync} />
+ <Switch checked={gitSync} onCheckedChange={setGitSync} />
</div>
{gitSync && (
<div className="grid grid-cols-2 gap-3">
<Field>
- <span className={label}>Commit author name</span>
- <input value={gitName} onChange={(e) => setGitName(e.target.value)} placeholder="Engram" className={input} />
+ <Label htmlFor="gitName">Commit author name</Label>
+ <Input id="gitName" value={gitName} onChange={(e) => setGitName(e.target.value)} placeholder="Engram" />
</Field>
<Field>
- <span className={label}>Commit author email</span>
- <input value={gitEmail} onChange={(e) => setGitEmail(e.target.value)} placeholder="engram@localhost" className={input} />
+ <Label htmlFor="gitEmail">Commit author email</Label>
+ <Input id="gitEmail" value={gitEmail} onChange={(e) => setGitEmail(e.target.value)} placeholder="engram@localhost" />
</Field>
</div>
)}
</section>
- {/* AI capture / harness */}
+ {/* Curator */}
<section className="mt-6 space-y-4 border-t border-border pt-6">
<div className="flex items-center justify-between">
<div>
@@ -175,7 +163,7 @@ export default function SettingsPage() {
(brain_capture). Off by default — runs on your Anthropic key.
</p>
</div>
- <Toggle on={harness} onChange={setHarness} />
+ <Switch checked={harness} onCheckedChange={setHarness} />
</div>
{harness && (
<div className="space-y-3">
@@ -183,36 +171,42 @@ export default function SettingsPage() {
hint={
data.anthropicApiKeySet
? "A key is set. Type a new value to replace it."
- : envHint("anthropicApiKey") ?? "Required to enable capture."
+ : envHint("anthropicApiKey") ?? "Required to enable the Curator."
}
>
- <span className={label}>
+ <Label htmlFor="apiKey">
Anthropic API key {data.anthropicApiKeySet && <span className="text-primary">• set</span>}
- </span>
+ </Label>
<div className="flex gap-2">
- <input
+ <Input
+ id="apiKey"
type="password"
value={apiKey}
onChange={(e) => setApiKey(e.target.value)}
placeholder={data.anthropicApiKeySet ? "••••••••••••••••" : "sk-ant-…"}
- className={input}
/>
{data.anthropicApiKeySet && (
- <button
- onClick={() => clearSecret("clearAnthropicApiKey")}
- className="shrink-0 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:text-destructive"
- >
+ <Button variant="outline" size="sm" className="shrink-0 text-muted-foreground hover:text-destructive" onClick={() => clearSecret("clearAnthropicApiKey")}>
Remove
- </button>
+ </Button>
)}
</div>
</Field>
- <Field>
- <span className={label}>Capture model</span>
- <input value={model} onChange={(e) => setModel(e.target.value)} placeholder="claude-haiku-4-5-20251001" className={input} />
+ <Field hint="Model used to auto-file rough dumps (brain_capture). Separate from the model you pick in the chat.">
+ <Label>Capture model</Label>
+ <Select value={model} onValueChange={setModel}>
+ <SelectTrigger className="w-full">
+ <SelectValue placeholder="Select a model" />
+ </SelectTrigger>
+ <SelectContent>
+ {CURATOR_MODELS.map((m) => (
+ <SelectItem key={m.id} value={m.id}>{m.label}</SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
</Field>
{harness && !data.anthropicApiKeySet && !apiKey.trim() && (
- <p className="text-[11px] text-amber-500">Capture stays off until an Anthropic key is saved.</p>
+ <p className="text-[11px] text-amber-500">The Curator stays off until an Anthropic key is saved.</p>
)}
</div>
)}
@@ -229,28 +223,25 @@ export default function SettingsPage() {
</div>
<div className="grid grid-cols-2 gap-3">
<Field hint={envHint("githubClientId")}>
- <span className={label}>Client ID</span>
- <input value={ghId} onChange={(e) => setGhId(e.target.value)} placeholder="Iv1.…" className={input} />
+ <Label htmlFor="ghId">Client ID</Label>
+ <Input id="ghId" value={ghId} onChange={(e) => setGhId(e.target.value)} placeholder="Iv1.…" />
</Field>
<Field hint={data.githubClientSecretSet ? "A secret is set. Type a new value to replace it." : undefined}>
- <span className={label}>
+ <Label htmlFor="ghSecret">
Client secret {data.githubClientSecretSet && <span className="text-primary">• set</span>}
- </span>
+ </Label>
<div className="flex gap-2">
- <input
+ <Input
+ id="ghSecret"
type="password"
value={ghSecret}
onChange={(e) => setGhSecret(e.target.value)}
placeholder={data.githubClientSecretSet ? "••••••••••••••••" : "secret"}
- className={input}
/>
{data.githubClientSecretSet && (
- <button
- onClick={() => clearSecret("clearGithubClientSecret")}
- className="shrink-0 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:text-destructive"
- >
+ <Button variant="outline" size="sm" className="shrink-0 text-muted-foreground hover:text-destructive" onClick={() => clearSecret("clearGithubClientSecret")}>
Remove
- </button>
+ </Button>
)}
</div>
</Field>
@@ -268,14 +259,10 @@ export default function SettingsPage() {
</section>
<div className="sticky bottom-0 mt-8 flex items-center gap-3 border-t border-border bg-background/80 py-4 backdrop-blur">
- <button
- onClick={save}
- disabled={saving}
- className="inline-flex items-center gap-1.5 rounded-md bg-primary px-3.5 py-1.5 text-sm font-medium text-primary-foreground disabled:opacity-50"
- >
+ <Button onClick={save} disabled={saving}>
{saved && <Check size={14} />}
{saving ? "Saving…" : saved ? "Saved" : "Save changes"}
- </button>
+ </Button>
</div>
</div>
</div>
diff --git a/app/(app)/workspaces/page.tsx b/app/(app)/workspaces/page.tsx
index fe0b9e2..086e2b9 100644
--- a/app/(app)/workspaces/page.tsx
+++ b/app/(app)/workspaces/page.tsx
@@ -2,13 +2,41 @@
import useSWR, { useSWRConfig } from "swr";
import { useState } from "react";
-import { GitBranch, Trash2 } from "lucide-react";
+import { Check, GitBranch, Pencil, Plus, Trash2, X } from "lucide-react";
import { fetcher } from "@/lib/client";
+import { timeAgo } from "@/lib/utils";
+import { Button } from "@/components/ui/button";
+import { Card } from "@/components/ui/card";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Badge } from "@/components/ui/badge";
+import { Separator } from "@/components/ui/separator";
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/components/ui/dialog";
+import {
+ AlertDialog,
+ AlertDialogAction,
+ AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogTitle,
+ AlertDialogTrigger,
+} from "@/components/ui/alert-dialog";
interface Repo {
id: string;
name: string;
fullName?: string;
+ url: string;
+ branch: string;
active: boolean;
addedAt: string;
}
@@ -21,7 +49,7 @@ interface GhRepo {
}
function refresh(mutate: (key: string) => unknown) {
- for (const k of ["/api/repos", "/api/tree", "/api/notes"]) mutate(k);
+ for (const k of ["/api/repos", "/api/tree", "/api/notes", "/api/sync"]) mutate(k);
}
export default function WorkspacesPage() {
@@ -29,9 +57,13 @@ export default function WorkspacesPage() {
const { data: reposData } = useSWR<{ repos: Repo[] }>("/api/repos", fetcher);
const { data: ghRepos } = useSWR<{ repos: GhRepo[] }>(gh?.connected ? "/api/github/repos" : null, fetcher);
const { mutate } = useSWRConfig();
+
const [busy, setBusy] = useState<string | null>(null);
const [err, setErr] = useState("");
+ const [addOpen, setAddOpen] = useState(false);
const [manual, setManual] = useState({ url: "", token: "", name: "" });
+ const [ghSearch, setGhSearch] = useState("");
+ const [editing, setEditing] = useState<{ id: string; name: string } | null>(null);
const repos = reposData?.repos ?? [];
const addedNames = new Set(repos.map((r) => r.fullName));
@@ -47,11 +79,15 @@ export default function WorkspacesPage() {
});
const d = await res.json();
if (!res.ok) setErr(d.error || "add failed");
- else refresh(mutate);
+ else {
+ refresh(mutate);
+ setAddOpen(false);
+ }
} finally {
setBusy(null);
}
}
+
async function addManual() {
if (!manual.url.trim()) return;
setBusy("manual");
@@ -71,6 +107,7 @@ export default function WorkspacesPage() {
else {
setManual({ url: "", token: "", name: "" });
refresh(mutate);
+ setAddOpen(false);
}
} finally {
setBusy(null);
@@ -85,142 +122,211 @@ export default function WorkspacesPage() {
await fetch(`/api/repos/${id}`, { method: "DELETE" });
refresh(mutate);
}
+ async function saveRename() {
+ if (!editing) return;
+ const { id, name } = editing;
+ setEditing(null);
+ if (!name.trim()) return;
+ await fetch(`/api/repos/${id}`, { method: "PATCH", headers: { "content-type": "application/json" }, body: JSON.stringify({ name }) });
+ mutate("/api/repos");
+ }
+
+ const filteredGh = (ghRepos?.repos ?? []).filter((r) => r.fullName.toLowerCase().includes(ghSearch.toLowerCase()));
return (
<div className="scrollbar-none h-full overflow-y-auto">
<div className="mx-auto max-w-3xl px-8 py-10">
- <h1 className="text-2xl font-semibold tracking-tight">Workspaces</h1>
- <p className="mt-2 max-w-xl text-sm text-muted-foreground">
- Each workspace is a GitHub repo of markdown. The <span className="text-foreground">active</span> one is what the
- dashboard shows and what agents read/write — agents never see the others.
- </p>
-
- <section className="mt-8 space-y-2">
- <h2 className="text-sm font-medium">GitHub</h2>
- {!gh?.configured ? (
- <p className="text-sm text-muted-foreground">GitHub OAuth isn&apos;t configured on this server (set GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRET).</p>
- ) : gh?.connected ? (
- <p className="text-sm text-muted-foreground">
- Connected as <span className="text-foreground">{gh.login}</span>.
+ <div className="flex items-start justify-between gap-4">
+ <div>
+ <h1 className="text-2xl font-semibold tracking-tight">Workspaces</h1>
+ <p className="mt-2 max-w-xl text-sm text-muted-foreground">
+ Each workspace is a GitHub repo of markdown. The <span className="text-foreground">active</span> one is what
+ the dashboard shows and what agents read/write — agents never see the others.
</p>
- ) : (
- <a
- href="/api/github/login?next=/workspaces"
- className="inline-flex items-center gap-2 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground"
- >
- <GitBranch size={15} /> Connect GitHub
- </a>
- )}
- </section>
+ </div>
- <section className="mt-8 space-y-2">
- <h2 className="text-sm font-medium">Your workspaces</h2>
- {repos.length > 0 ? (
- <div className="overflow-hidden rounded-lg border border-border">
- <table className="w-full text-sm">
- <tbody>
- {repos.map((r) => (
- <tr key={r.id} className="border-b border-border last:border-0">
- <td className="px-3 py-2">
- {r.name}
- {r.active && <span className="ml-2 rounded bg-accent px-1.5 py-0.5 text-[10px] text-foreground">active</span>}
- </td>
- <td className="px-3 py-2 text-right">
- {!r.active && (
- <button onClick={() => switchTo(r.id)} className="mr-2 rounded-md border border-border px-2 py-1 text-xs transition-colors hover:bg-accent">
- Switch
- </button>
- )}
- <button
- onClick={() => remove(r.id)}
- title="Remove"
- className="inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-destructive"
- >
- <Trash2 size={14} />
- </button>
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <Dialog open={addOpen} onOpenChange={(o) => { setAddOpen(o); setErr(""); }}>
+ <DialogTrigger asChild>
+ <Button className="shrink-0">
+ <Plus size={15} /> Add workspace
+ </Button>
+ </DialogTrigger>
+ <DialogContent className="sm:max-w-lg">
+ <DialogHeader>
+ <DialogTitle>Add a workspace</DialogTitle>
+ <DialogDescription>Connect a GitHub repo of markdown as a vault.</DialogDescription>
+ </DialogHeader>
+
+ {/* GitHub path */}
+ <div className="space-y-2">
+ <Label>From GitHub</Label>
+ {!gh?.configured ? (
+ <p className="text-xs text-muted-foreground">
+ GitHub OAuth isn&apos;t configured on this server. Add <code className="rounded bg-muted px-1">GITHUB_CLIENT_ID</code> /{" "}
+ <code className="rounded bg-muted px-1">GITHUB_CLIENT_SECRET</code> in Settings, or use the URL option below.
+ </p>
+ ) : !gh?.connected ? (
+ <Button asChild variant="outline" className="w-full">
+ <a href="/api/github/login?next=/workspaces">
+ <GitBranch size={15} /> Connect GitHub
+ </a>
+ </Button>
+ ) : (
+ <div className="space-y-2">
+ <p className="text-xs text-muted-foreground">
+ Connected as <span className="text-foreground">{gh.login}</span>.
+ </p>
+ <Input placeholder="Filter repos…" value={ghSearch} onChange={(e) => setGhSearch(e.target.value)} />
+ <div className="scrollbar-none max-h-52 divide-y divide-border overflow-y-auto rounded-lg border border-border">
+ {filteredGh.length === 0 && <p className="px-3 py-3 text-xs text-muted-foreground">No repos match.</p>}
+ {filteredGh.map((r) => (
+ <div key={r.fullName} className="flex items-center justify-between gap-2 px-3 py-2">
+ <span className="truncate text-sm">
+ {r.fullName}
+ {r.private && <span className="ml-2 text-[10px] text-muted-foreground">private</span>}
+ </span>
+ {addedNames.has(r.fullName) ? (
+ <span className="shrink-0 text-xs text-muted-foreground">added</span>
+ ) : (
+ <Button size="sm" variant="outline" disabled={busy === r.fullName} onClick={() => add(r)}>
+ {busy === r.fullName ? "Adding…" : "Add"}
+ </Button>
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+
+ {/* OR divider */}
+ <div className="flex items-center gap-3">
+ <Separator className="flex-1" />
+ <span className="text-xs font-medium text-muted-foreground">OR</span>
+ <Separator className="flex-1" />
+ </div>
+
+ {/* URL + token path */}
+ <div className="space-y-2">
+ <Label htmlFor="repoUrl">By URL + token</Label>
+ <p className="text-xs text-muted-foreground">Works without connecting GitHub — the zero-setup path for self-hosting.</p>
+ <Input
+ id="repoUrl"
+ value={manual.url}
+ onChange={(e) => setManual((m) => ({ ...m, url: e.target.value }))}
+ placeholder="https://github.com/you/vault.git"
+ />
+ <Input
+ type="password"
+ value={manual.token}
+ onChange={(e) => setManual((m) => ({ ...m, token: e.target.value }))}
+ placeholder="GitHub token with repo access (private repos / push)"
+ />
+ <div className="flex gap-2">
+ <Input
+ value={manual.name}
+ onChange={(e) => setManual((m) => ({ ...m, name: e.target.value }))}
+ placeholder="name (optional)"
+ className="flex-1"
+ />
+ <Button onClick={addManual} disabled={busy === "manual" || !manual.url.trim()}>
+ {busy === "manual" ? "Adding…" : "Add repo"}
+ </Button>
+ </div>
+ </div>
+
+ {err && <p className="text-xs text-destructive">{err}</p>}
+ </DialogContent>
+ </Dialog>
+ </div>
+
+ {/* Connected workspaces */}
+ <section className="mt-8 space-y-2.5">
+ {repos.length === 0 ? (
+ <Card className="items-center gap-2 border-dashed p-8 text-center">
+ <GitBranch size={20} className="text-muted-foreground" />
+ <p className="text-sm text-muted-foreground">
+ No workspaces yet. The dashboard is showing the bundled <span className="text-foreground">sample vault</span> —
+ add a repo to make it your own.
+ </p>
+ <Button variant="outline" size="sm" onClick={() => setAddOpen(true)}>
+ <Plus size={14} /> Add your first workspace
+ </Button>
+ </Card>
) : (
- <p className="text-xs text-muted-foreground">No workspaces yet — add a repo below. Until then, the dashboard shows the bundled sample vault.</p>
- )}
- </section>
+ repos.map((r) => (
+ <Card key={r.id} className={`flex-row items-center gap-4 p-4 ${r.active ? "border-ring" : ""}`}>
+ <div className="flex size-9 shrink-0 items-center justify-center rounded-lg border border-border text-muted-foreground">
+ <GitBranch size={16} />
+ </div>
+ <div className="min-w-0 flex-1">
+ {editing?.id === r.id ? (
+ <div className="flex items-center gap-2">
+ <Input
+ autoFocus
+ value={editing.name}
+ onChange={(e) => setEditing({ id: r.id, name: e.target.value })}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") saveRename();
+ if (e.key === "Escape") setEditing(null);
+ }}
+ className="h-7 max-w-xs"
+ />
+ <Button size="icon" variant="ghost" className="size-7" onClick={saveRename} title="Save">
+ <Check size={14} />
+ </Button>
+ <Button size="icon" variant="ghost" className="size-7" onClick={() => setEditing(null)} title="Cancel">
+ <X size={14} />
+ </Button>
+ </div>
+ ) : (
+ <div className="flex items-center gap-2">
+ <span className="truncate text-sm font-medium">{r.name}</span>
+ {r.active && <Badge variant="secondary" className="h-5 px-1.5 text-[10px]">active</Badge>}
+ </div>
+ )}
+ <p className="mt-0.5 truncate text-xs text-muted-foreground">
+ {r.fullName ?? r.url.replace(/^https?:\/\//, "").replace(/\.git$/, "")}
+ {" · "}
+ <span className="font-mono">{r.branch}</span>
+ {r.addedAt ? ` · added ${timeAgo(r.addedAt)}` : ""}
+ </p>
+ </div>
- <section className="mt-8 space-y-2">
- <h2 className="text-sm font-medium">Add a repo by URL + token</h2>
- <p className="text-sm text-muted-foreground">
- Paste a repo URL and a GitHub token with access to it. Works without connecting GitHub — the
- zero-setup path for self-hosting.
- </p>
- {err && <p className="text-xs text-destructive">{err}</p>}
- <div className="space-y-2">
- <input
- value={manual.url}
- onChange={(e) => setManual((m) => ({ ...m, url: e.target.value }))}
- placeholder="https://github.com/you/vault.git"
- className="w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-sm outline-none placeholder:text-muted-foreground"
- />
- <input
- value={manual.token}
- onChange={(e) => setManual((m) => ({ ...m, token: e.target.value }))}
- type="password"
- placeholder="GitHub token with repo access (for private repos / push)"
- className="w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-sm outline-none placeholder:text-muted-foreground"
- />
- <div className="flex gap-2">
- <input
- value={manual.name}
- onChange={(e) => setManual((m) => ({ ...m, name: e.target.value }))}
- placeholder="name (optional)"
- className="w-56 rounded-md border border-border bg-background px-2.5 py-1.5 text-sm outline-none placeholder:text-muted-foreground"
- />
- <button
- onClick={addManual}
- disabled={busy === "manual"}
- className="rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground disabled:opacity-50"
- >
- {busy === "manual" ? "Adding…" : "Add repo"}
- </button>
- </div>
- </div>
+ <div className="flex shrink-0 items-center gap-1">
+ {!r.active && (
+ <Button size="sm" variant="outline" onClick={() => switchTo(r.id)}>
+ Set active
+ </Button>
+ )}
+ <Button size="icon" variant="ghost" className="size-8 text-muted-foreground" title="Rename" onClick={() => setEditing({ id: r.id, name: r.name })}>
+ <Pencil size={14} />
+ </Button>
+ <AlertDialog>
+ <AlertDialogTrigger asChild>
+ <Button size="icon" variant="ghost" className="size-8 text-muted-foreground hover:text-destructive" title="Remove">
+ <Trash2 size={14} />
+ </Button>
+ </AlertDialogTrigger>
+ <AlertDialogContent>
+ <AlertDialogHeader>
+ <AlertDialogTitle>Remove “{r.name}”?</AlertDialogTitle>
+ <AlertDialogDescription>
+ This removes the workspace and its local clone from Engram. Your GitHub repo and its history are untouched —
+ you can re-add it anytime.
+ </AlertDialogDescription>
+ </AlertDialogHeader>
+ <AlertDialogFooter>
+ <AlertDialogCancel>Cancel</AlertDialogCancel>
+ <AlertDialogAction onClick={() => remove(r.id)}>Remove</AlertDialogAction>
+ </AlertDialogFooter>
+ </AlertDialogContent>
+ </AlertDialog>
+ </div>
+ </Card>
+ ))
+ )}
</section>
-
- {gh?.connected && (
- <section className="mt-8 space-y-2">
- <h2 className="text-sm font-medium">Add from GitHub</h2>
- {err && <p className="text-xs text-destructive">{err}</p>}
- <div className="scrollbar-none max-h-96 overflow-y-auto overflow-hidden rounded-lg border border-border">
- <table className="w-full text-sm">
- <tbody>
- {(ghRepos?.repos ?? []).map((r) => (
- <tr key={r.fullName} className="border-b border-border last:border-0">
- <td className="px-3 py-2">
- {r.fullName}
- {r.private && <span className="ml-2 text-[10px] text-muted-foreground">private</span>}
- </td>
- <td className="px-3 py-2 text-right">
- {addedNames.has(r.fullName) ? (
- <span className="text-xs text-muted-foreground">added</span>
- ) : (
- <button
- disabled={busy === r.fullName}
- onClick={() => add(r)}
- className="rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground disabled:opacity-50"
- >
- {busy === r.fullName ? "Adding…" : "Add"}
- </button>
- )}
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
- </section>
- )}
</div>
</div>
);
diff --git a/app/api/activity/[hash]/route.ts b/app/api/activity/[hash]/route.ts
new file mode 100644
index 0000000..6a4fc3f
--- /dev/null
+++ b/app/api/activity/[hash]/route.ts
@@ -0,0 +1,11 @@
+import { commitChanges } from "@/lib/git";
+
+export const dynamic = "force-dynamic";
+
+/** What a single vault commit changed: touched files (with status) + the raw patch. */
+export async function GET(_req: Request, { params }: { params: Promise<{ hash: string }> }) {
+ const { hash } = await params;
+ const detail = await commitChanges(hash);
+ if (!detail) return Response.json({ error: "not found" }, { status: 404 });
+ return Response.json(detail);
+}
diff --git a/app/api/activity/route.ts b/app/api/activity/route.ts
new file mode 100644
index 0000000..4d5cd85
--- /dev/null
+++ b/app/api/activity/route.ts
@@ -0,0 +1,10 @@
+import { vaultActivity } from "@/lib/git";
+
+export const dynamic = "force-dynamic";
+
+/** Recent vault commits (agent + human activity). `?limit=` caps the count (default 50, max 200). */
+export async function GET(req: Request) {
+ const { searchParams } = new URL(req.url);
+ const limit = Math.min(Math.max(Number(searchParams.get("limit")) || 50, 1), 200);
+ return Response.json({ activity: await vaultActivity(limit) });
+}
diff --git a/app/api/repos/[id]/route.ts b/app/api/repos/[id]/route.ts
index 6582778..8672cbc 100644
--- a/app/api/repos/[id]/route.ts
+++ b/app/api/repos/[id]/route.ts
@@ -1,8 +1,18 @@
-import { removeRepo } from "@/lib/repos";
+import { removeRepo, renameRepo } from "@/lib/repos";
import { rebuildIndex } from "@/lib/vault/store";
export const dynamic = "force-dynamic";
+/** Rename a workspace (display name). Body: { name }. */
+export async function PATCH(req: Request, { params }: { params: Promise<{ id: string }> }) {
+ const { id } = await params;
+ const { name } = await req.json().catch(() => ({}));
+ if (!name || !String(name).trim()) return Response.json({ error: "name required" }, { status: 400 });
+ const repo = renameRepo(id, String(name));
+ if (!repo) return Response.json({ error: "workspace not found" }, { status: 404 });
+ return Response.json({ ok: true, repo });
+}
+
export async function DELETE(_req: Request, { params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
removeRepo(id);
diff --git a/bun.lock b/bun.lock
index 26b3e91..893d583 100644
--- a/bun.lock
+++ b/bun.lock
@@ -6,7 +6,6 @@
"name": "engram",
"dependencies": {
"@anthropic-ai/sdk": "^0.110.0",
- "@base-ui/react": "^1.5.0",
"@modelcontextprotocol/sdk": "^1.13.0",
"chokidar": "^5.0.0",
"class-variance-authority": "^0.7.1",
@@ -20,6 +19,7 @@
"minisearch": "^7.1.2",
"next": "16.2.7",
"next-themes": "^0.4.6",
+ "radix-ui": "^1.6.2",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-markdown": "^9.0.1",
@@ -111,10 +111,6 @@
"@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="],
- "@base-ui/react": ["@base-ui/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@base-ui/utils": "0.3.1", "@floating-ui/react-dom": "^2.1.8", "@floating-ui/utils": "^0.2.11", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@date-fns/tz": "^1.2.0", "@types/react": "^17 || ^18 || ^19", "date-fns": "^4.0.0", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@date-fns/tz", "@types/react", "date-fns"] }, "sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw=="],
-
- "@base-ui/utils": ["@base-ui/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.29.2", "@floating-ui/utils": "^0.2.11", "reselect": "^5.2.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "@types/react": "^17 || ^18 || ^19", "react": "^17 || ^18 || ^19", "react-dom": "^17 || ^18 || ^19" }, "optionalPeers": ["@types/react"] }, "sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg=="],
-
"@dotenvx/dotenvx": ["@dotenvx/[email protected]", "", { "dependencies": { "@dotenvx/primitives": "^0.8.0", "commander": "^11.1.0", "conf": "^10.2.0", "dotenv": "^17.2.1", "enquirer": "^2.4.1", "env-paths": "^2.2.1", "execa": "^5.1.1", "fdir": "^6.2.0", "ignore": "^5.3.0", "object-treeify": "1.1.33", "open": "^8.4.2", "picomatch": "^4.0.4", "systeminformation": "^5.22.11", "undici": "^7.11.0", "which": "^4.0.0", "yocto-spinner": "^1.1.0" }, "bin": { "dotenvx": "src/cli/dotenvx.js" } }, "sha512-/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ=="],
"@dotenvx/primitives": ["@dotenvx/[email protected]", "", {}, "sha512-VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg=="],
@@ -311,38 +307,126 @@
"@nolyfill/is-core-module": ["@nolyfill/[email protected]", "", {}, "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA=="],
+ "@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig=="],
+
"@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-d86WIWFYNtGA0H/d8exstrTRTp7eWJYlYJbtNofxr/3ljupZYn6EFDG/Qgu/0Kc8v7yMUxySagqJsL1+PdYjWg=="],
+ "@radix-ui/react-accessible-icon": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-visually-hidden": "1.2.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-HQDOFTKwSnmUij6l54wYJJtxTAnxI71+YJLOrjm2ladFB8HAV5Jt7hwaZPhWTGBkYoW4+ZAOfNZrLDh/qvxSYA=="],
+
+ "@radix-ui/react-accordion": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collapsible": "1.1.16", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-BpZJNmetujnGgUI6OX0jEhEmlA46WPqgub8Rv09Kyquwd0cc1ndMKpiPYCjmBU6KSSRPAMtgLpEoZSG/tdNIWQ=="],
+
+ "@radix-ui/react-alert-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dialog": "1.1.19", "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-FA7n1f6D/DwGE0+AWxiY5LacNbbExQuEgMubeG06idEaH+mSLuf9dp/qBNqOnvbTQ+4gZ2ue1RATF1Ub91Mg5g=="],
+
+ "@radix-ui/react-arrow": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Kdil9BB1rIFC/khmf4hC35bn8701AJcizTU7G7cUbEbk5XqqbjDuHW60uUfKqO5WojjZcbAW51Q7P0hRmMLw8A=="],
+
+ "@radix-ui/react-aspect-ratio": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-IUAhIVpBUvP5NNICjlaB1OFmtRLGqQqTF3ZOSGPoq3XeLXRFtHiWTRxSVEULgOd9GQR2c7tsYqDnhUennapZnw=="],
+
+ "@radix-ui/react-avatar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-context": "1.2.0", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-sST0qh8GzOB7besQ3tMLWLyngnRuSk0gc/Hm+667KYKQFCt6Y6ZXv25WlqM7dIDK54ULCh5+CHmk4LIolzfz+A=="],
+
+ "@radix-ui/react-checkbox": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-use-size": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-JroKHfQBfh+fDuzpPsBC+pESkhuq8ql4hljTguz8MWnS35cISr3d/Jhl9kYrB44FlDtxCArYdDvTx+BSsJ64rQ=="],
+
+ "@radix-ui/react-collapsible": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-opfXRe6nnzyGmCDPx+l1Aqo/RbqWtQal2FnsBqF9hhePp6j0LsRoBaRxcMOlTv+uYTJVtWYZKg9t9wTe+BA/ZA=="],
+
+ "@radix-ui/react-collection": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-slot": "1.3.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-nb67INpE0IahJKN7EYPp9m9YGwYeKlnzxT3MwXVkgCskaSJia97kG4T0ywpjNUSSnoJk/uvk12V8vbrEHEj+/Q=="],
+
"@radix-ui/react-compose-refs": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA=="],
"@radix-ui/react-context": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-fOE+JtN9rygNZkCnHRBEP0TAvLldlhyOxMsbwFvTP4nAs+nBmfnna+o/Zski2wkmY1YMrFC0aSzsHoLY47iLrg=="],
+ "@radix-ui/react-context-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-menu": "2.1.20", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-PS+gKE0z2prJ74Y0sM+brAGK4mYOHIR7TlcV5EJgUQ6E0xMvyswkK2X4yRqyganrzsRL+WCSKAPu0NQITICRWg=="],
+
"@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.12", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-use-controllable-state": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-+HhbN2+YtkRgVirjZ2afMeutQRuGOrdkWR5+EFC58SJojGmtyNQwYzgi6tHBpOxvFHefMtPeHdgtjz0BOGxFQg=="],
+ "@radix-ui/react-direction": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA=="],
+
"@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-effect-event": "0.0.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-b0XaRlzn2QKuo10XyNgi2DAJDf5XC9d1nD3FJcuvCjbR7+4Ad28zmZsLsqx+hvDEzMnRuZaZxZm9gYObV6RmRA=="],
+ "@radix-ui/react-dropdown-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-menu": "2.1.20", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-slfm+rRaZRuQBvHq60lXvSVUPhid0IPtjSZzIuUlWZMUs01iYZNlGS3mJgRD3ChLQVBAYlKiL/tFyWGX+dz8Xw=="],
+
"@radix-ui/react-focus-guards": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-cot/aB/mOm0IYVYTTmQcEEK1M48lZWi8FlYe5nDPQQ8NYZUlXEFgncJ9p2Kzer3RKSrY7cTTpEMLZKNo9QoP5Q=="],
"@radix-ui/react-focus-scope": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jjk/lqTeNL0azUx5ZYzVrl4NgaDIrdzTNE4mABV9yBFI7FQqN7pIgzV1bTleUezP2QiTGA1BFTqY8MegDgWX9A=="],
+ "@radix-ui/react-form": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-label": "2.1.11", "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-JTX94E4LDL91rzLg7X0mHPdxr0A8JEdVwZEmeOwZJSMDHCGW5DFtSlTSJozUyUs807IQmnvbfzKZFVCK5DmkqQ=="],
+
+ "@radix-ui/react-hover-card": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-2KTgMLQtKvicznQgbindEI2RZ3QbDIwU5gabjUPwFJsormjGDz+rUvO4NANmYwzEEpTcTONUt33vBHIfTIVSfw=="],
+
"@radix-ui/react-id": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA=="],
+ "@radix-ui/react-label": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-3PKvDDxOn62k0oV1n4QtNtD2vpu+zYjXR7ojLBPaO6SPvhy53yg0vAmgNeBQeJW5rV3dffoRG+HYfLBZuzw0CQ=="],
+
+ "@radix-ui/react-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.12", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-use-callback-ref": "1.1.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-VsUrXxFe9d2ScbZF0fR/oPR1+qjyeLs5p0jzG8h90puMoA9bq4SirYlXbE+USRg9Q2qTeJSFNqjw2nts8jJe4w=="],
+
+ "@radix-ui/react-menubar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-menu": "2.1.20", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-gzFZvybgmwYsFBWDqanycIoEYnhyk8MMnuLamdFVHUZYGp4COM+sqXiwbnn0VMWqGLeeU7GV7jm+dXRa+Wufag=="],
+
+ "@radix-ui/react-navigation-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-K9HiuxZ6xCwSaHcIuUpxyhy4w5gpwzWjh9dHTSbMN3Ix4qAyVObS9RlU3zMycb0PO3v9Tpk0BXMwWvXOUbVXew=="],
+
+ "@radix-ui/react-one-time-password-field": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.2", "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-nQLu5OAcORDQp1EHAv6k3mJGV1hjMTw2NTGVAsGE1g/mWeNqAd1R5jyaAs3U+A8ZD/W8XNPY2yKT0ZdQnqo3NA=="],
+
+ "@radix-ui/react-password-toggle-field": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-is-hydrated": "0.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-gB1Mr8vzdv1XzDjrtJTXmL0JORRs1B4g7ngUs0F+H2VvMOwXTZMTmLCl0wZZ3m7ylX8TssI7NCvgiSHmLuTm/A=="],
+
+ "@radix-ui/react-popover": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.12", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-use-controllable-state": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jkrTdQVxnIB8fpn0NyyxW9CTB5aCXZZelVz5z+Xmii6g5WxMqS3fInNslZ63puP39+Puu4jYohUK31y3dT87gQ=="],
+
+ "@radix-ui/react-popper": ["@radix-ui/[email protected]", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.11", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-rect": "1.1.2", "@radix-ui/react-use-size": "1.1.2", "@radix-ui/rect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-mS7dGpyjv6b+gsDjLF7e0ia1W4Im1B1hSCy2yuXlHuvnZxHKagfDaobt/KAKt27EpZMit2pss8eJBVyVjEWM+g=="],
+
"@radix-ui/react-portal": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-z3oXfmaHLJTF1wktbjgD6cn9jiEbq3WSondB10LIuIt2m2Ym4iJlrW04/euMwENDdWDdE7z+OuY7Qyp1YpRSwA=="],
"@radix-ui/react-presence": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-zBZ4QM5XG3JRanDmqXYf3MD6th4AFXFmgU6KNMFzUaV6F3uw9I5/zjMUvFriSEn5ewo1nxuibvyxJdmLlDcslA=="],
"@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.3.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ=="],
+ "@radix-ui/react-progress": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-context": "1.2.0", "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ZPHyI0JyzoH/rP0tq2uRaIZTj/4s8+kAbqPz+e2N8+ejHvwPJ889dHhqn+vh7PNvNeq+boAoH9yzqeoShzwF2w=="],
+
+ "@radix-ui/react-radio-group": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-use-size": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-WwZFjWV4s3aC1QtR3k04R+oANHtX2q6fgKlc7MCEiDNlnTxCZ3H8k3mHtEgVlOejystwk1WQgarQhNOQZ2bK1g=="],
+
+ "@radix-ui/react-roving-focus": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-40svmmugfM3mUN7VUDGVE1tQGOhyi8enlGD0CNJEcMM36C1f71PKM21DFgNHUfem0XnA+d8H8oN3Z9ZpJjSslg=="],
+
+ "@radix-ui/react-scroll-area": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.2", "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bBODCWZK7JTbQLHs0uIP4f73wIWatakK4OS33UzkR1x897wu0PuO658a3f+6P2GEGyDzGYMuHRatMVoAk9WZTw=="],
+
+ "@radix-ui/react-select": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.2", "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.12", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.7", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-L5RQTXz6Anxsf9CCv+pTgiAsUpyVj7rJxsGtmhFaEOJ++cVfXucv4qWfsIO0AIB4NAhi3yovWGVMKKS1Xf1Wrg=="],
+
+ "@radix-ui/react-separator": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jRhe86+8PF7VZ1u14eOWVOuh2BuAhALg/FT1VcMC4OHedMTRUazDnDlKTt+yxo5cRNKHMfmvZ4sSQtWDeMV4CQ=="],
+
+ "@radix-ui/react-slider": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.2", "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-use-size": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-CWVVj+XaTom0SKCqw1EUgb0NuiLwS+N3OFG73mVEezKEjgNIvZiu0EevMelSSU+CbX3owbqJweG2gPU31WGC5A=="],
+
"@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA=="],
+ "@radix-ui/react-switch": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-previous": "1.1.2", "@radix-ui/react-use-size": "1.1.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1+mlB4/lxJfk5tgJ4g+R5mUCbRpPE1T9+UsEyeLYbGgMtwiMgmuTnfKz4Mw1nHALHjuwyxw4MLd4cSHn6pNSlQ=="],
+
+ "@radix-ui/react-tabs": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-nRyXnrAVCwjeXcHbvEbLS6ndbTeKHG1RqCP4A8Gw5L4cemDzPXdD8rAmr6wet0v57R69wGvuIIsFjHSVkZiMzQ=="],
+
+ "@radix-ui/react-toast": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-SxfVZfVOibWKWdkf0Xx1awW2d09fQu4V4PXDY1j5hi4MVf7MWdJZqTBJMa1KWtOr1S6GGtCk02nniZ0Iia+dHw=="],
+
+ "@radix-ui/react-toggle": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-QI/hB65XKWACA66P64A+aHxtLUgHJeJLkaQa+awUNXT6T3swndtY5DojeHA+vldrTspMTtFBd7HfZ9QGbM1Qrw=="],
+
+ "@radix-ui/react-toggle-group": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-toggle": "1.1.14", "@radix-ui/react-use-controllable-state": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-gIC5Q+Xljg7lmUdzSuDoy0t97yZn1sZl00Ra37ZvKrYdWnQLU6sWLd09yG8cIB9jUAlQfHgJ2ACAG00MFwsqSQ=="],
+
+ "@radix-ui/react-toolbar": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-separator": "1.1.11", "@radix-ui/react-toggle-group": "1.1.15" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-t/iEuVjUnXXtrsGK40AA43uIx37sn3AqZ7oAVnPICK6lFJP6dzMzWR3U9b6eCfFjb6wtSEqkJ9Rn9xDjiOx20g=="],
+
+ "@radix-ui/react-tooltip": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-id": "1.1.2", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-visually-hidden": "1.2.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-U3HoftgWnmla78vzQbLvKKb7bUYJxoiiqYFzp1wu/TBMyDqMZSuCl3aRICsD6EfVEwcJD2mumGDGUXLFVqQHKA=="],
+
"@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw=="],
"@radix-ui/react-use-controllable-state": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA=="],
"@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA=="],
+ "@radix-ui/react-use-escape-keydown": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-3wEkMiPHXha/2VadZ68rYBcmYnPINVGl4Y3gtcM7fKRjANk0OscK+cdqBgUWdozb7YJxsh0vefM7vgAMHXOjqg=="],
+
+ "@radix-ui/react-use-is-hydrated": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-qwOiz4Tjo8CNnrOLAYUMXeZwDzXgXpvK4TKQPmWLECM9XoWvA6+0Z2/7Ag3A4ivjS4ovbLJPbskkxioFyBhr8A=="],
+
"@radix-ui/react-use-layout-effect": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA=="],
+ "@radix-ui/react-use-previous": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw=="],
+
+ "@radix-ui/react-use-rect": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/rect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-d8a+bBY/FxikNPlgJJoaBHZX+zKVbWHYJGTLnLvveQgFSTntkGdEKv3JDtHrMS0DNYpllz2nRsTLGLKYttbpmw=="],
+
+ "@radix-ui/react-use-size": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w=="],
+
+ "@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1wNZBggTDK3GRuuQ6nP4k2yi7a6l7I5qbMPbZcRsrGsGVead/f/d5FhEzUvqFs0bcrDLx7n1zKQ3JvLR6whaaw=="],
+
+ "@radix-ui/rect": ["@radix-ui/[email protected]", "", {}, "sha512-xnXE7wG13PI+cxieVssYXlQJuYVRhH9NBoxt3KNwzghDIA69GMm7d4wXRouHIYjE+KvS6U/MsMO73NdS2MH9ZA=="],
+
"@rtsao/scc": ["@rtsao/[email protected]", "", {}, "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g=="],
"@sec-ant/readable-stream": ["@sec-ant/[email protected]", "", {}, "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg=="],
@@ -1325,6 +1409,8 @@
"queue-microtask": ["[email protected]", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],
+ "radix-ui": ["[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.5", "@radix-ui/react-accessible-icon": "1.1.11", "@radix-ui/react-accordion": "1.2.16", "@radix-ui/react-alert-dialog": "1.1.19", "@radix-ui/react-arrow": "1.1.11", "@radix-ui/react-aspect-ratio": "1.1.11", "@radix-ui/react-avatar": "1.2.2", "@radix-ui/react-checkbox": "1.3.7", "@radix-ui/react-collapsible": "1.1.16", "@radix-ui/react-collection": "1.1.12", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.2.0", "@radix-ui/react-context-menu": "2.3.3", "@radix-ui/react-dialog": "1.1.19", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.15", "@radix-ui/react-dropdown-menu": "2.1.20", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.12", "@radix-ui/react-form": "0.1.12", "@radix-ui/react-hover-card": "1.1.19", "@radix-ui/react-label": "2.1.11", "@radix-ui/react-menu": "2.1.20", "@radix-ui/react-menubar": "1.1.20", "@radix-ui/react-navigation-menu": "1.2.18", "@radix-ui/react-one-time-password-field": "0.1.12", "@radix-ui/react-password-toggle-field": "0.1.7", "@radix-ui/react-popover": "1.1.19", "@radix-ui/react-popper": "1.3.3", "@radix-ui/react-portal": "1.1.13", "@radix-ui/react-presence": "1.1.7", "@radix-ui/react-primitive": "2.1.7", "@radix-ui/react-progress": "1.1.12", "@radix-ui/react-radio-group": "1.4.3", "@radix-ui/react-roving-focus": "1.1.15", "@radix-ui/react-scroll-area": "1.2.14", "@radix-ui/react-select": "2.3.3", "@radix-ui/react-separator": "1.1.11", "@radix-ui/react-slider": "1.4.3", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-switch": "1.3.3", "@radix-ui/react-tabs": "1.1.17", "@radix-ui/react-toast": "1.2.19", "@radix-ui/react-toggle": "1.1.14", "@radix-ui/react-toggle-group": "1.1.15", "@radix-ui/react-toolbar": "1.1.15", "@radix-ui/react-tooltip": "1.2.12", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-escape-keydown": "1.1.3", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-size": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.7" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-OwYUjzMwiInCUxgAWpPsavXC3Kh4iyi/49uU1/qZTG3RQDlvegyk1GOMiGvSkjua1RDb3JD3fo3eroL9FV4GQw=="],
+
"range-parser": ["[email protected]", "", {}, "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw=="],
"raw-body": ["[email protected]", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="],
@@ -1363,8 +1449,6 @@
"require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
- "reselect": ["[email protected]", "", {}, "sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw=="],
-
"resolve": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.2", "node-exports-info": "^1.6.0", "object-keys": "^1.1.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ=="],
"resolve-from": ["[email protected]", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="],
diff --git a/components/activity-bar.tsx b/components/activity-bar.tsx
index 32eac7c..cd74d25 100644
--- a/components/activity-bar.tsx
+++ b/components/activity-bar.tsx
@@ -2,11 +2,12 @@
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { GitBranch, Home, Network, Plug, Settings } from "lucide-react";
+import { Activity, GitBranch, Home, Network, Plug, Settings } from "lucide-react";
import { ThemeToggle } from "./theme-toggle";
const ITEMS = [
{ href: "/", icon: Home, label: "Home", exact: true },
+ { href: "/activity", icon: Activity, label: "Activity" },
{ href: "/graph", icon: Network, label: "Graph" },
{ href: "/workspaces", icon: GitBranch, label: "Workspaces" },
{ href: "/connect", icon: Plug, label: "Connect an agent" },
diff --git a/components/activity-list.tsx b/components/activity-list.tsx
new file mode 100644
index 0000000..b4d6fee
--- /dev/null
+++ b/components/activity-list.tsx
@@ -0,0 +1,169 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+import { ChevronRight, FileText, GitCommit } from "lucide-react";
+import { timeAgo } from "@/lib/utils";
+
+export interface ActivityEntry {
+ hash: string;
+ message: string;
+ author: string;
+ date: string;
+}
+
+interface CommitFile {
+ status: string;
+ path: string;
+ oldPath?: string;
+}
+interface CommitDetail {
+ files: CommitFile[];
+ diff: string;
+ truncated: boolean;
+}
+type DetailState = CommitDetail | "loading" | "error" | undefined;
+
+const STATUS_META: Record<string, { label: string; className: string }> = {
+ A: { label: "added", className: "text-emerald-500" },
+ M: { label: "modified", className: "text-amber-500" },
+ D: { label: "deleted", className: "text-destructive" },
+ R: { label: "renamed", className: "text-blue-400" },
+ C: { label: "copied", className: "text-blue-400" },
+ T: { label: "changed", className: "text-muted-foreground" },
+};
+
+/** One line of a unified diff, colored by its prefix. */
+function diffLineClass(line: string): string {
+ if (line.startsWith("diff --git") || line.startsWith("index ")) return "text-muted-foreground/60";
+ if (line.startsWith("@@")) return "text-blue-400";
+ if (line.startsWith("+++") || line.startsWith("---")) return "text-muted-foreground";
+ if (line.startsWith("+")) return "text-emerald-500";
+ if (line.startsWith("-")) return "text-destructive";
+ return "text-muted-foreground";
+}
+
+function noteHref(f: CommitFile): string | null {
+ return f.status !== "D" && f.path.toLowerCase().endsWith(".md") ? `/n/${f.path}` : null;
+}
+
+function CommitDetailView({ detail }: { detail: CommitDetail }) {
+ const [showDiff, setShowDiff] = useState(false);
+ return (
+ <div className="mt-2 space-y-2 border-l border-border pl-3">
+ <ul className="space-y-1">
+ {detail.files.length === 0 && <li className="text-xs text-muted-foreground">No file changes.</li>}
+ {detail.files.map((f, i) => {
+ const meta = STATUS_META[f.status] ?? STATUS_META.T;
+ const href = noteHref(f);
+ return (
+ <li key={`${f.path}-${i}`} className="flex items-center gap-2 text-xs">
+ <span className={`w-4 shrink-0 text-center font-mono font-semibold ${meta.className}`} title={meta.label}>
+ {f.status}
+ </span>
+ {href ? (
+ <Link href={href} className="inline-flex items-center gap-1 truncate text-foreground hover:underline">
+ <FileText size={12} className="shrink-0 text-muted-foreground" />
+ {f.oldPath ? `${f.oldPath} → ${f.path}` : f.path}
+ </Link>
+ ) : (
+ <span className="inline-flex items-center gap-1 truncate text-muted-foreground">
+ <FileText size={12} className="shrink-0" />
+ {f.oldPath ? `${f.oldPath} → ${f.path}` : f.path}
+ </span>
+ )}
+ </li>
+ );
+ })}
+ </ul>
+
+ {detail.diff.trim() && (
+ <div>
+ <button onClick={() => setShowDiff((v) => !v)} className="text-xs text-muted-foreground transition-colors hover:text-foreground">
+ {showDiff ? "Hide diff" : "Show diff"}
+ </button>
+ {showDiff && (
+ <div className="mt-1.5 overflow-x-auto rounded-md border border-border bg-muted/30">
+ <pre className="w-max min-w-full p-3 font-mono text-[11px] leading-relaxed">
+ {detail.diff.split("\n").map((line, i) => (
+ <div key={i} className={diffLineClass(line)}>
+ {line || " "}
+ </div>
+ ))}
+ </pre>
+ {detail.truncated && <p className="border-t border-border px-3 py-1.5 text-[11px] text-muted-foreground">Diff truncated — open the note to see the full content.</p>}
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ );
+}
+
+/** A commit feed for the vault — shared by the home preview and the full Activity page.
+ * Each entry expands to show the files it changed (linking to the note) plus the raw diff. */
+export function ActivityList({ entries, empty }: { entries: ActivityEntry[]; empty?: string }) {
+ const [open, setOpen] = useState<Set<string>>(new Set());
+ const [details, setDetails] = useState<Record<string, DetailState>>({});
+
+ async function toggle(hash: string) {
+ const next = new Set(open);
+ if (next.has(hash)) {
+ next.delete(hash);
+ setOpen(next);
+ return;
+ }
+ next.add(hash);
+ setOpen(next);
+ if (details[hash] && details[hash] !== "error") return; // already loaded
+ setDetails((d) => ({ ...d, [hash]: "loading" }));
+ try {
+ const res = await fetch(`/api/activity/${hash}`);
+ if (!res.ok) throw new Error();
+ const data = (await res.json()) as CommitDetail;
+ setDetails((d) => ({ ...d, [hash]: data }));
+ } catch {
+ setDetails((d) => ({ ...d, [hash]: "error" }));
+ }
+ }
+
+ if (entries.length === 0) {
+ return (
+ <p className="text-sm text-muted-foreground">
+ {empty ?? "No activity yet — changes agents and teammates make to your vault will show up here."}
+ </p>
+ );
+ }
+
+ return (
+ <ul className="divide-y divide-border">
+ {entries.map((e, i) => {
+ const isOpen = open.has(e.hash);
+ const detail = details[e.hash];
+ return (
+ <li key={`${e.hash}-${i}`} className="py-2.5">
+ <button onClick={() => toggle(e.hash)} className="flex w-full items-start gap-3 text-left">
+ <span className="mt-0.5 shrink-0 text-muted-foreground">
+ <GitCommit size={15} className={isOpen ? "hidden" : ""} />
+ <ChevronRight size={15} className={`${isOpen ? "rotate-90" : "hidden"} transition-transform`} />
+ </span>
+ <span className="min-w-0 flex-1">
+ <span className="block truncate text-sm">{e.message}</span>
+ <span className="mt-0.5 block text-xs text-muted-foreground">
+ {e.author} · <span className="font-mono">{e.hash}</span> · {timeAgo(e.date)}
+ </span>
+ </span>
+ </button>
+ {isOpen && (
+ <div className="ml-[27px]">
+ {detail === "loading" && <p className="mt-2 text-xs text-muted-foreground">Loading changes…</p>}
+ {detail === "error" && <p className="mt-2 text-xs text-destructive">Couldn&apos;t load this commit&apos;s changes.</p>}
+ {detail && detail !== "loading" && detail !== "error" && <CommitDetailView detail={detail} />}
+ </div>
+ )}
+ </li>
+ );
+ })}
+ </ul>
+ );
+}
diff --git a/components/curator-chat.tsx b/components/curator-chat.tsx
index 222b28d..1b8713c 100644
--- a/components/curator-chat.tsx
+++ b/components/curator-chat.tsx
@@ -3,12 +3,9 @@
import { useEffect, useRef, useState } from "react";
import { ArrowUp, Brain, Paperclip, Square } from "lucide-react";
import { Markdown } from "@/components/markdown";
-
-const MODELS = [
- { id: "claude-opus-4-8", label: "Opus 4.8" },
- { id: "claude-sonnet-5", label: "Sonnet 5" },
- { id: "claude-haiku-4-5", label: "Haiku 4.5" },
-];
+import { CURATOR_MODELS, DEFAULT_CURATOR_MODEL } from "@/lib/models";
+import { Button } from "@/components/ui/button";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
interface Msg {
role: "user" | "assistant";
@@ -18,7 +15,7 @@ interface Msg {
export function CuratorChat() {
const [messages, setMessages] = useState<Msg[]>([]);
const [input, setInput] = useState("");
- const [model, setModel] = useState(MODELS[0].id);
+ const [model, setModel] = useState<string>(DEFAULT_CURATOR_MODEL);
const [thinking, setThinking] = useState(false);
const [streaming, setStreaming] = useState(false);
const [streamText, setStreamText] = useState("");
@@ -114,26 +111,29 @@ export function CuratorChat() {
<Brain size={15} className="text-muted-foreground" />
<span className="text-sm font-medium">Curator</span>
<div className="ml-auto flex items-center gap-2">
- <select
- value={model}
- onChange={(e) => setModel(e.target.value)}
- className="rounded-md border border-border bg-background px-2 py-1 text-xs outline-none"
- >
- {MODELS.map((m) => (
- <option key={m.id} value={m.id}>{m.label}</option>
- ))}
- </select>
- <button
+ <Select value={model} onValueChange={setModel}>
+ <SelectTrigger size="sm" className="w-auto text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {CURATOR_MODELS.map((m) => (
+ <SelectItem key={m.id} value={m.id}>{m.label}</SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <Button
+ variant="outline"
+ size="sm"
onClick={() => setThinking((t) => !t)}
title="Extended thinking"
- className={`inline-flex items-center gap-1 rounded-md border px-2 py-1 text-xs transition-colors ${thinking ? "border-primary/40 text-foreground" : "border-border text-muted-foreground hover:text-foreground"}`}
+ className={thinking ? "border-primary/40 text-foreground" : "text-muted-foreground"}
>
<span className={`size-1.5 rounded-full ${thinking ? "bg-emerald-500" : "bg-muted-foreground/40"}`} /> thinking
- </button>
+ </Button>
{messages.length > 0 && (
- <button onClick={() => { setMessages([]); setError(""); }} className="rounded-md border border-border px-2 py-1 text-xs text-muted-foreground hover:text-foreground">
+ <Button variant="outline" size="sm" className="text-muted-foreground" onClick={() => { setMessages([]); setError(""); }}>
Clear
- </button>
+ </Button>
)}
</div>
</div>
@@ -178,10 +178,12 @@ export function CuratorChat() {
{/* Composer */}
<div className="shrink-0 border-t border-border px-4 py-3">
<div className="mx-auto flex max-w-2xl items-end gap-2">
- <label className="inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md border border-border text-muted-foreground transition-colors hover:text-foreground" title="Attach a text file">
- <Paperclip size={15} />
- <input type="file" accept=".md,.txt,.json,.csv,.ts,.tsx,.js,.py,text/*" className="hidden" onChange={attach} />
- </label>
+ <Button asChild variant="outline" size="icon" className="shrink-0 cursor-pointer text-muted-foreground" title="Attach a text file">
+ <label>
+ <Paperclip size={15} />
+ <input type="file" accept=".md,.txt,.json,.csv,.ts,.tsx,.js,.py,text/*" className="hidden" onChange={attach} />
+ </label>
+ </Button>
<textarea
value={input}
onChange={(e) => setInput(e.target.value)}
@@ -196,18 +198,13 @@ export function CuratorChat() {
className="scrollbar-none max-h-40 min-h-9 flex-1 resize-none rounded-md border border-border bg-background px-3 py-2 text-sm outline-none placeholder:text-muted-foreground focus:border-ring"
/>
{streaming ? (
- <button onClick={stop} className="inline-flex size-9 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground" title="Stop">
+ <Button onClick={stop} size="icon" className="shrink-0" title="Stop">
<Square size={13} className="fill-current" />
- </button>
+ </Button>
) : (
- <button
- onClick={send}
- disabled={!input.trim()}
- className="inline-flex size-9 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground disabled:opacity-40"
- title="Send"
- >
+ <Button onClick={send} disabled={!input.trim()} size="icon" className="shrink-0" title="Send">
<ArrowUp size={16} />
- </button>
+ </Button>
)}
</div>
</div>
diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsx
new file mode 100644
index 0000000..c206c86
--- /dev/null
+++ b/components/ui/alert-dialog.tsx
@@ -0,0 +1,199 @@
+"use client"
+
+import * as React from "react"
+import { AlertDialog as AlertDialogPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+import { Button } from "@/components/ui/button"
+
+function AlertDialog({
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
+ return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
+}
+
+function AlertDialogTrigger({
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
+ return (
+ <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
+ )
+}
+
+function AlertDialogPortal({
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
+ return (
+ <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
+ )
+}
+
+function AlertDialogOverlay({
+ className,
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
+ return (
+ <AlertDialogPrimitive.Overlay
+ data-slot="alert-dialog-overlay"
+ className={cn(
+ "fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogContent({
+ className,
+ size = "default",
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
+ size?: "default" | "sm"
+}) {
+ return (
+ <AlertDialogPortal>
+ <AlertDialogOverlay />
+ <AlertDialogPrimitive.Content
+ data-slot="alert-dialog-content"
+ data-size={size}
+ className={cn(
+ "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ className
+ )}
+ {...props}
+ />
+ </AlertDialogPortal>
+ )
+}
+
+function AlertDialogHeader({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-dialog-header"
+ className={cn(
+ "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogFooter({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-dialog-footer"
+ className={cn(
+ "-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogMedia({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-dialog-media"
+ className={cn(
+ "mb-2 inline-flex size-10 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-6",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogTitle({
+ className,
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {
+ return (
+ <AlertDialogPrimitive.Title
+ data-slot="alert-dialog-title"
+ className={cn(
+ "font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogDescription({
+ className,
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {
+ return (
+ <AlertDialogPrimitive.Description
+ data-slot="alert-dialog-description"
+ className={cn(
+ "text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDialogAction({
+ className,
+ variant = "default",
+ size = "default",
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Action> &
+ Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
+ return (
+ <Button variant={variant} size={size} asChild>
+ <AlertDialogPrimitive.Action
+ data-slot="alert-dialog-action"
+ className={cn(className)}
+ {...props}
+ />
+ </Button>
+ )
+}
+
+function AlertDialogCancel({
+ className,
+ variant = "outline",
+ size = "default",
+ ...props
+}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> &
+ Pick<React.ComponentProps<typeof Button>, "variant" | "size">) {
+ return (
+ <Button variant={variant} size={size} asChild>
+ <AlertDialogPrimitive.Cancel
+ data-slot="alert-dialog-cancel"
+ className={cn(className)}
+ {...props}
+ />
+ </Button>
+ )
+}
+
+export {
+ AlertDialog,
+ AlertDialogAction,
+ AlertDialogCancel,
+ AlertDialogContent,
+ AlertDialogDescription,
+ AlertDialogFooter,
+ AlertDialogHeader,
+ AlertDialogMedia,
+ AlertDialogOverlay,
+ AlertDialogPortal,
+ AlertDialogTitle,
+ AlertDialogTrigger,
+}
diff --git a/components/ui/badge.tsx b/components/ui/badge.tsx
new file mode 100644
index 0000000..cacff11
--- /dev/null
+++ b/components/ui/badge.tsx
@@ -0,0 +1,49 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+import { Slot } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+const badgeVariants = cva(
+ "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
+ secondary:
+ "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
+ destructive:
+ "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
+ outline:
+ "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
+ ghost:
+ "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+)
+
+function Badge({
+ className,
+ variant = "default",
+ asChild = false,
+ ...props
+}: React.ComponentProps<"span"> &
+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
+ const Comp = asChild ? Slot.Root : "span"
+
+ return (
+ <Comp
+ data-slot="badge"
+ data-variant={variant}
+ className={cn(badgeVariants({ variant }), className)}
+ {...props}
+ />
+ )
+}
+
+export { Badge, badgeVariants }
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
new file mode 100644
index 0000000..75b8c3d
--- /dev/null
+++ b/components/ui/button.tsx
@@ -0,0 +1,67 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+import { Slot } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+const buttonVariants = cva(
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground hover:bg-primary/80",
+ outline:
+ "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
+ secondary:
+ "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
+ ghost:
+ "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
+ destructive:
+ "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ size: {
+ default:
+ "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
+ icon: "size-8",
+ "icon-xs":
+ "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
+ "icon-sm":
+ "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
+ "icon-lg": "size-9",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+)
+
+function Button({
+ className,
+ variant = "default",
+ size = "default",
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> &
+ VariantProps<typeof buttonVariants> & {
+ asChild?: boolean
+ }) {
+ const Comp = asChild ? Slot.Root : "button"
+
+ return (
+ <Comp
+ data-slot="button"
+ data-variant={variant}
+ data-size={size}
+ className={cn(buttonVariants({ variant, size, className }))}
+ {...props}
+ />
+ )
+}
+
+export { Button, buttonVariants }
diff --git a/components/ui/card.tsx b/components/ui/card.tsx
new file mode 100644
index 0000000..4458dae
--- /dev/null
+++ b/components/ui/card.tsx
@@ -0,0 +1,103 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Card({
+ className,
+ size = "default",
+ ...props
+}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
+ return (
+ <div
+ data-slot="card"
+ data-size={size}
+ className={cn(
+ "group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-header"
+ className={cn(
+ "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-title"
+ className={cn(
+ "font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-description"
+ className={cn("text-sm text-muted-foreground", className)}
+ {...props}
+ />
+ )
+}
+
+function CardAction({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-action"
+ className={cn(
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardContent({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-content"
+ className={cn("px-(--card-spacing)", className)}
+ {...props}
+ />
+ )
+}
+
+function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-footer"
+ className={cn(
+ "flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export {
+ Card,
+ CardHeader,
+ CardFooter,
+ CardTitle,
+ CardAction,
+ CardDescription,
+ CardContent,
+}
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
new file mode 100644
index 0000000..d9aecca
--- /dev/null
+++ b/components/ui/dialog.tsx
@@ -0,0 +1,168 @@
+"use client"
+
+import * as React from "react"
+import { Dialog as DialogPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+import { Button } from "@/components/ui/button"
+import { XIcon } from "lucide-react"
+
+function Dialog({
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Root>) {
+ return <DialogPrimitive.Root data-slot="dialog" {...props} />
+}
+
+function DialogTrigger({
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />
+}
+
+function DialogPortal({
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {
+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />
+}
+
+function DialogClose({
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Close>) {
+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />
+}
+
+function DialogOverlay({
+ className,
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
+ return (
+ <DialogPrimitive.Overlay
+ data-slot="dialog-overlay"
+ className={cn(
+ "fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function DialogContent({
+ className,
+ children,
+ showCloseButton = true,
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Content> & {
+ showCloseButton?: boolean
+}) {
+ return (
+ <DialogPortal>
+ <DialogOverlay />
+ <DialogPrimitive.Content
+ data-slot="dialog-content"
+ className={cn(
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ {showCloseButton && (
+ <DialogPrimitive.Close data-slot="dialog-close" asChild>
+ <Button
+ variant="ghost"
+ className="absolute top-2 right-2"
+ size="icon-sm"
+ >
+ <XIcon
+ />
+ <span className="sr-only">Close</span>
+ </Button>
+ </DialogPrimitive.Close>
+ )}
+ </DialogPrimitive.Content>
+ </DialogPortal>
+ )
+}
+
+function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="dialog-header"
+ className={cn("flex flex-col gap-2", className)}
+ {...props}
+ />
+ )
+}
+
+function DialogFooter({
+ className,
+ showCloseButton = false,
+ children,
+ ...props
+}: React.ComponentProps<"div"> & {
+ showCloseButton?: boolean
+}) {
+ return (
+ <div
+ data-slot="dialog-footer"
+ className={cn(
+ "-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ {showCloseButton && (
+ <DialogPrimitive.Close asChild>
+ <Button variant="outline">Close</Button>
+ </DialogPrimitive.Close>
+ )}
+ </div>
+ )
+}
+
+function DialogTitle({
+ className,
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Title>) {
+ return (
+ <DialogPrimitive.Title
+ data-slot="dialog-title"
+ className={cn(
+ "font-heading text-base leading-none font-medium",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function DialogDescription({
+ className,
+ ...props
+}: React.ComponentProps<typeof DialogPrimitive.Description>) {
+ return (
+ <DialogPrimitive.Description
+ data-slot="dialog-description"
+ className={cn(
+ "text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export {
+ Dialog,
+ DialogClose,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogOverlay,
+ DialogPortal,
+ DialogTitle,
+ DialogTrigger,
+}
diff --git a/components/ui/input.tsx b/components/ui/input.tsx
new file mode 100644
index 0000000..d763cd9
--- /dev/null
+++ b/components/ui/input.tsx
@@ -0,0 +1,19 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Input({ className, type, ...props }: React.ComponentProps<"input">) {
+ return (
+ <input
+ type={type}
+ data-slot="input"
+ className={cn(
+ "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Input }
diff --git a/components/ui/label.tsx b/components/ui/label.tsx
new file mode 100644
index 0000000..1ac80f7
--- /dev/null
+++ b/components/ui/label.tsx
@@ -0,0 +1,24 @@
+"use client"
+
+import * as React from "react"
+import { Label as LabelPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Label({
+ className,
+ ...props
+}: React.ComponentProps<typeof LabelPrimitive.Root>) {
+ return (
+ <LabelPrimitive.Root
+ data-slot="label"
+ className={cn(
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Label }
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
new file mode 100644
index 0000000..f09dfb4
--- /dev/null
+++ b/components/ui/select.tsx
@@ -0,0 +1,192 @@
+"use client"
+
+import * as React from "react"
+import { Select as SelectPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react"
+
+function Select({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Root>) {
+ return <SelectPrimitive.Root data-slot="select" {...props} />
+}
+
+function SelectGroup({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Group>) {
+ return (
+ <SelectPrimitive.Group
+ data-slot="select-group"
+ className={cn("scroll-my-1 p-1", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectValue({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Value>) {
+ return <SelectPrimitive.Value data-slot="select-value" {...props} />
+}
+
+function SelectTrigger({
+ className,
+ size = "default",
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
+ size?: "sm" | "default"
+}) {
+ return (
+ <SelectPrimitive.Trigger
+ data-slot="select-trigger"
+ data-size={size}
+ className={cn(
+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDownIcon className="pointer-events-none size-4 text-muted-foreground" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+ )
+}
+
+function SelectContent({
+ className,
+ children,
+ position = "item-aligned",
+ align = "center",
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Content>) {
+ return (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ data-slot="select-content"
+ data-align-trigger={position === "item-aligned"}
+ className={cn("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", position ==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className )}
+ position={position}
+ align={align}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ data-position={position}
+ className={cn(
+ "data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",
+ position === "popper" && ""
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+ )
+}
+
+function SelectLabel({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Label>) {
+ return (
+ <SelectPrimitive.Label
+ data-slot="select-label"
+ className={cn("px-1.5 py-1 text-xs text-muted-foreground", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectItem({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Item>) {
+ return (
+ <SelectPrimitive.Item
+ data-slot="select-item"
+ className={cn(
+ "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ className
+ )}
+ {...props}
+ >
+ <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <CheckIcon className="pointer-events-none" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+ )
+}
+
+function SelectSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
+ return (
+ <SelectPrimitive.Separator
+ data-slot="select-separator"
+ className={cn("pointer-events-none -mx-1 my-1 h-px bg-border", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectScrollUpButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
+ return (
+ <SelectPrimitive.ScrollUpButton
+ data-slot="select-scroll-up-button"
+ className={cn(
+ "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ <ChevronUpIcon
+ />
+ </SelectPrimitive.ScrollUpButton>
+ )
+}
+
+function SelectScrollDownButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
+ return (
+ <SelectPrimitive.ScrollDownButton
+ data-slot="select-scroll-down-button"
+ className={cn(
+ "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ <ChevronDownIcon
+ />
+ </SelectPrimitive.ScrollDownButton>
+ )
+}
+
+export {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+}
diff --git a/components/ui/separator.tsx b/components/ui/separator.tsx
new file mode 100644
index 0000000..d457090
--- /dev/null
+++ b/components/ui/separator.tsx
@@ -0,0 +1,28 @@
+"use client"
+
+import * as React from "react"
+import { Separator as SeparatorPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Separator({
+ className,
+ orientation = "horizontal",
+ decorative = true,
+ ...props
+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
+ return (
+ <SeparatorPrimitive.Root
+ data-slot="separator"
+ decorative={decorative}
+ orientation={orientation}
+ className={cn(
+ "shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Separator }
diff --git a/components/ui/switch.tsx b/components/ui/switch.tsx
new file mode 100644
index 0000000..9600e94
--- /dev/null
+++ b/components/ui/switch.tsx
@@ -0,0 +1,33 @@
+"use client"
+
+import * as React from "react"
+import { Switch as SwitchPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Switch({
+ className,
+ size = "default",
+ ...props
+}: React.ComponentProps<typeof SwitchPrimitive.Root> & {
+ size?: "sm" | "default"
+}) {
+ return (
+ <SwitchPrimitive.Root
+ data-slot="switch"
+ data-size={size}
+ className={cn(
+ "peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ <SwitchPrimitive.Thumb
+ data-slot="switch-thumb"
+ className="pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"
+ />
+ </SwitchPrimitive.Root>
+ )
+}
+
+export { Switch }
diff --git a/lib/config.ts b/lib/config.ts
index 9a056ee..5be6743 100644
--- a/lib/config.ts
+++ b/lib/config.ts
@@ -69,15 +69,21 @@ export const SESSION_COOKIE = "engram_session";
* never by importing these consts directly into feature code.
*/
-/** Env default for the git-sync loop (commit + push the active vault). */
-export const GIT_SYNC_ENABLED = process.env.GIT_SYNC_ENABLED === "true";
+/**
+ * Env default for the git-sync loop (commit + push the active vault). ON by default —
+ * it's a headline feature; set GIT_SYNC_ENABLED="false" to opt out. Only ever acts on a
+ * connected workspace repo (guarded by getActive() in lib/git.ts), never the sample vault.
+ */
+export const GIT_SYNC_ENABLED = process.env.GIT_SYNC_ENABLED !== "false";
/** Env default commit identity for git-sync. */
export const GIT_AUTHOR_NAME = process.env.GIT_AUTHOR_NAME || "Engram";
export const GIT_AUTHOR_EMAIL = process.env.GIT_AUTHOR_EMAIL || "engram@localhost";
/** Env default Anthropic key for the brain_capture harness (rough dump -> filed note). */
export const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY ?? "";
-export const CAPTURE_MODEL = process.env.CAPTURE_MODEL ?? "claude-haiku-4-5-20251001";
+/** Optional env seed for the brain_capture model. Must be a supported id (see lib/models.ts)
+ * to take effect; otherwise captureModel() falls back to DEFAULT_CAPTURE_MODEL. */
+export const CAPTURE_MODEL = process.env.CAPTURE_MODEL ?? "";
/**
* Env default for the server-side auto-filing harness (brain_capture). OFF by default:
diff --git a/lib/curator.ts b/lib/curator.ts
index f12f063..b67099b 100644
--- a/lib/curator.ts
+++ b/lib/curator.ts
@@ -1,4 +1,5 @@
import Anthropic from "@anthropic-ai/sdk";
+import { DEFAULT_CURATOR_MODEL, SUPPORTED_MODEL_IDS } from "@/lib/models";
import { anthropicApiKey } from "@/lib/settings";
import { getBacklinks, getNote, listNotes, readVaultFile, searchNotes } from "@/lib/vault/store";
@@ -9,14 +10,6 @@ import { getBacklinks, getNote, listNotes, readVaultFile, searchNotes } from "@/
* Uses the official Anthropic SDK so model IDs + adaptive thinking are exact.
*/
-export const CURATOR_MODELS = [
- { id: "claude-opus-4-8", label: "Opus 4.8" },
- { id: "claude-sonnet-5", label: "Sonnet 5" },
- { id: "claude-haiku-4-5", label: "Haiku 4.5" },
-] as const;
-export const DEFAULT_CURATOR_MODEL = "claude-opus-4-8";
-const MODEL_IDS = new Set<string>(CURATOR_MODELS.map((m) => m.id));
-
function systemPrompt(): string {
const schema = readVaultFile("SCHEMA.md");
return `You are the Curator — the resident agent of this markdown "second brain". You help the operator recall, connect, and reason over their own notes.
@@ -81,7 +74,7 @@ export async function* curatorStream(opts: {
yield { type: "error", message: "No Anthropic API key. Enable the Curator in Settings and add a key." };
return;
}
- const model = opts.model && MODEL_IDS.has(opts.model) ? opts.model : DEFAULT_CURATOR_MODEL;
+ const model = opts.model && SUPPORTED_MODEL_IDS.has(opts.model) ? opts.model : DEFAULT_CURATOR_MODEL;
const client = new Anthropic({ apiKey });
const messages: Anthropic.MessageParam[] = opts.messages
diff --git a/lib/git.ts b/lib/git.ts
index 243c039..95d7383 100644
--- a/lib/git.ts
+++ b/lib/git.ts
@@ -1,3 +1,5 @@
+import fs from "node:fs";
+import path from "node:path";
import { simpleGit } from "simple-git";
import { activeVaultDir, getActive } from "@/lib/repos";
import { gitAuthor, gitSyncEnabled } from "@/lib/settings";
@@ -7,9 +9,24 @@ let timer: ReturnType<typeof setTimeout> | null = null;
let pending: string[] = [];
let running = false;
-/** Debounced commit + pull --rebase + push of the ACTIVE vault. No-op unless GIT_SYNC_ENABLED. */
+/**
+ * The vault dir ONLY when it's safe to run git there: it must be its OWN repo root (a `.git`
+ * directly inside it). This covers connected workspaces (their clone is a repo root) and a
+ * self-hosted VAULT_DIR that is a real repo, while excluding the bundled sample vault — which
+ * has no `.git` of its own and would otherwise resolve to Engram's own repo. Returns null if
+ * unsafe, so we never commit the app itself or surface its history.
+ */
+export function gitVaultDir(): string | null {
+ const dir = activeVaultDir();
+ return fs.existsSync(path.join(dir, ".git")) ? dir : null;
+}
+
+/**
+ * Debounced commit + pull --rebase + push of the active vault. No-op unless git-sync is on
+ * AND the vault is its own git repo (see gitVaultDir).
+ */
export function requestSync(reason: string): void {
- if (!gitSyncEnabled()) return;
+ if (!gitSyncEnabled() || !gitVaultDir()) return;
pending.push(reason);
if (timer) clearTimeout(timer);
timer = setTimeout(runSync, 2500);
@@ -25,7 +42,9 @@ async function runSync(): Promise<void> {
const reasons = pending;
pending = [];
try {
- const g = simpleGit(activeVaultDir());
+ const dir = gitVaultDir(); // may have changed since the debounce fired
+ if (!dir) return;
+ const g = simpleGit(dir);
await g.add(["-A"]);
const status = await g.status();
if (status.files.length === 0) {
@@ -60,9 +79,10 @@ async function runSync(): Promise<void> {
}
export async function syncStatus() {
- if (!gitSyncEnabled()) return { enabled: false as const };
+ const dir = gitVaultDir();
+ if (!dir || !gitSyncEnabled()) return { enabled: false as const };
try {
- const s = await simpleGit(activeVaultDir()).status();
+ const s = await simpleGit(dir).status();
return { enabled: true as const, dirty: s.files.length, ahead: s.ahead, behind: s.behind, branch: s.current };
} catch {
return { enabled: true as const, error: true };
@@ -94,6 +114,81 @@ export async function pullActive(): Promise<{ ok: boolean; changed: boolean; err
}
}
+export interface ActivityEntry {
+ hash: string;
+ message: string;
+ author: string;
+ date: string;
+}
+
+/**
+ * Recent commits to the active vault — the "who did what to the brain" feed (agents + humans;
+ * git-sync commits look like `brain: N change(s) — …`), most-recent first. Read-only. Empty
+ * unless the vault is its own git repo (see gitVaultDir), so we never surface Engram's own
+ * history via the sample vault.
+ */
+export async function vaultActivity(maxCount = 50): Promise<ActivityEntry[]> {
+ const dir = gitVaultDir();
+ if (!dir) return [];
+ try {
+ const log = await simpleGit(dir).log({ maxCount });
+ return log.all.map((c) => ({
+ hash: c.hash.slice(0, 7),
+ message: c.message,
+ author: c.author_name,
+ date: c.date,
+ }));
+ } catch {
+ return [];
+ }
+}
+
+export interface CommitFile {
+ /** Single-letter git status: A(dded) M(odified) D(eleted) R(enamed) C(opied) T(ypechange). */
+ status: string;
+ /** Vault-relative path of the file after the change (the new path for renames). */
+ path: string;
+ /** Previous path, for renames/copies. */
+ oldPath?: string;
+}
+
+const MAX_DIFF = 60_000; // cap the patch we ship to the client
+
+function parseNameStatus(raw: string): CommitFile[] {
+ return raw
+ .split("\n")
+ .map((l) => l.trim())
+ .filter(Boolean)
+ .map((line) => {
+ const parts = line.split("\t");
+ const status = parts[0][0];
+ if ((status === "R" || status === "C") && parts.length >= 3) {
+ return { status, oldPath: parts[1], path: parts[2] };
+ }
+ return { status, path: parts[parts.length - 1] };
+ });
+}
+
+/**
+ * What a single commit changed: the list of touched files (with status) plus the raw patch.
+ * Guarded like the rest — only the active vault, only a valid hash. Null if unavailable.
+ */
+export async function commitChanges(hash: string): Promise<{ files: CommitFile[]; diff: string; truncated: boolean } | null> {
+ const dir = gitVaultDir();
+ if (!dir) return null;
+ if (!/^[0-9a-f]{4,40}$/i.test(hash)) return null; // avoid passing arbitrary args to git
+ try {
+ const g = simpleGit(dir);
+ const nameStatus = await g.raw(["show", "--no-color", "--format=", "--name-status", hash]);
+ const files = parseNameStatus(nameStatus);
+ const rawDiff = await g.raw(["show", "--no-color", "--format=", "--patch", hash]);
+ const truncated = rawDiff.length > MAX_DIFF;
+ return { files, diff: truncated ? rawDiff.slice(0, MAX_DIFF) : rawDiff, truncated };
+ } catch {
+ return null;
+ }
+}
+
let pullTimer: ReturnType<typeof setInterval> | null = null;
/** Poll the remote for the active vault so the brain stays fresh without a redeploy. */
export function startPullLoop(intervalMs = 30_000): void {
diff --git a/lib/models.ts b/lib/models.ts
new file mode 100644
index 0000000..b11eb49
--- /dev/null
+++ b/lib/models.ts
@@ -0,0 +1,21 @@
+/**
+ * Anthropic models offered across Engram — the single source of truth shared by the
+ * Curator chat picker (client), the Settings capture-model dropdown (client), and the
+ * server (curator stream + brain_capture harness). Plain constants, no other imports,
+ * so it's safe in both client and server bundles and can't create an import cycle.
+ */
+
+export const CURATOR_MODELS = [
+ { id: "claude-opus-4-8", label: "Opus 4.8" },
+ { id: "claude-sonnet-5", label: "Sonnet 5" },
+ { id: "claude-haiku-4-5", label: "Haiku 4.5" },
+] as const;
+
+/** Default model for the Curator chat (the strongest — you're reasoning over your brain). */
+export const DEFAULT_CURATOR_MODEL = "claude-opus-4-8";
+
+/** Default model for brain_capture auto-filing (cheap + fast — filing a rough note is a simple task). */
+export const DEFAULT_CAPTURE_MODEL = "claude-haiku-4-5";
+
+/** All supported model IDs, for validation. */
+export const SUPPORTED_MODEL_IDS = new Set<string>(CURATOR_MODELS.map((m) => m.id));
diff --git a/lib/repos.ts b/lib/repos.ts
index 49a7ba3..efaa008 100644
--- a/lib/repos.ts
+++ b/lib/repos.ts
@@ -114,6 +114,17 @@ export function setActive(id: string): void {
save(all);
}
+/** Rename a workspace (display name only — the clone + remote are untouched). */
+export function renameRepo(id: string, name: string): Repo | null {
+ const all = load();
+ const rec = all.find((r) => r.id === id);
+ if (!rec) return null;
+ const trimmed = name.trim();
+ if (trimmed) rec.name = trimmed;
+ save(all);
+ return strip(rec);
+}
+
export function removeRepo(id: string): void {
save(load().filter((r) => r.id !== id));
try {
diff --git a/lib/settings.ts b/lib/settings.ts
index 4c5c410..ef1e407 100644
--- a/lib/settings.ts
+++ b/lib/settings.ts
@@ -13,6 +13,7 @@ import {
HARNESS_ENABLED_ENV,
} from "@/lib/config";
import { decryptSecret, encryptSecret } from "@/lib/crypto";
+import { DEFAULT_CAPTURE_MODEL, SUPPORTED_MODEL_IDS } from "@/lib/models";
/**
* Runtime settings — the dashboard-editable half of the config.
@@ -90,8 +91,10 @@ export function gitAuthor(): { name: string; email: string } {
};
}
+/** Model for brain_capture auto-filing. Always one of the supported ids (see lib/models.ts). */
export function captureModel(): string {
- return load().captureModel || CAPTURE_MODEL;
+ const m = load().captureModel || CAPTURE_MODEL;
+ return m && SUPPORTED_MODEL_IDS.has(m) ? m : DEFAULT_CAPTURE_MODEL;
}
export function anthropicApiKey(): string {
diff --git a/lib/utils.ts b/lib/utils.ts
index a5ef193..f628e2c 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -4,3 +4,15 @@ import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
+
+/** Compact relative time, e.g. "just now", "5m ago", "3h ago", "2d ago", or a date. */
+export function timeAgo(input: string | number | Date): string {
+ const then = new Date(input).getTime();
+ if (Number.isNaN(then)) return "";
+ const secs = Math.round((Date.now() - then) / 1000);
+ if (secs < 45) return "just now";
+ if (secs < 3600) return `${Math.round(secs / 60)}m ago`;
+ if (secs < 86400) return `${Math.round(secs / 3600)}h ago`;
+ if (secs < 604800) return `${Math.round(secs / 86400)}d ago`;
+ return new Date(then).toLocaleDateString(undefined, { month: "short", day: "numeric" });
+}
diff --git a/package.json b/package.json
index 7a1ab6a..adb1cb7 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,6 @@
},
"dependencies": {
"@anthropic-ai/sdk": "^0.110.0",
- "@base-ui/react": "^1.5.0",
"@modelcontextprotocol/sdk": "^1.13.0",
"chokidar": "^5.0.0",
"class-variance-authority": "^0.7.1",
@@ -49,6 +48,7 @@
"minisearch": "^7.1.2",
"next": "16.2.7",
"next-themes": "^0.4.6",
+ "radix-ui": "^1.6.2",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-markdown": "^9.0.1",