From 75670e4d5c2f9d7e9d912ee95f6465a9cd7f3545 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 12 Sep 2026 14:40:10 +0100 Subject: [PATCH] Update AGENTS.md file and db schema --- AGENTS.md | 14 ++++++++++++++ db/schema.ts | 13 +++++++++++++ src/scripts/setup-wireguard.sh | 11 +++++++++++ 3 files changed, 38 insertions(+) create mode 100755 src/scripts/setup-wireguard.sh diff --git a/AGENTS.md b/AGENTS.md index 3e6b94a..8fc0ec3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,20 @@ Read `WORKSPACE_MEMORY.md` before making structural changes to page code. - **Icons:** `lucide-react`. - **Validation:** `zod` v4 (`zod@4.1.12`). +## MCP Tool Usage Guidelines + +When building, refactoring, styling, or auditing UI components and layouts, actively invoke these configured MCP servers: + +### 1. `design-mcp` (UI/UX Engineering & Design Standards) + +- **When to call:** Before constructing new page layouts, design systems, empty/loading states, or interactive UI flows. +- **Instruction:** Query `design-mcp` to ensure accessibility (a11y), proper layout hierarchy, visual balance, and consistent interaction patterns across application workflows. + +### 2. `design-systems` (Design System Specs & Reference Patterns) + +- **When to call:** When creating or extending reusable component interfaces, verifying design token structures, or inspecting component composition patterns. +- **Instruction:** Query `design-systems` to pull canonical UI patterns, atomic component guidelines, and standard prop naming conventions before creating custom components. + ## Entrypoint `src/server.ts` — runs `bunextInit()`, initializes a persistent **Piper TTS daemon** (global `PIPER_MANAGER`), starts `Bun.serve` with WebSocket upgrade on `/ws`, then starts cron. diff --git a/db/schema.ts b/db/schema.ts index fc69fa0..b8cdc72 100644 --- a/db/schema.ts +++ b/db/schema.ts @@ -149,6 +149,19 @@ const schema: BUN_SQLITE_DatabaseSchemaType = { }, ], }, + { + tableName: "clients", + fields: [ + { + fieldName: "user_id", + dataType: "INTEGER", + }, + { + fieldName: "ip_address", + dataType: "TEXT", + }, + ], + }, ], }; diff --git a/src/scripts/setup-wireguard.sh b/src/scripts/setup-wireguard.sh new file mode 100755 index 0000000..2d355e4 --- /dev/null +++ b/src/scripts/setup-wireguard.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# This script installs wireguard on the host system. +# Depending on the OS, whether Debian, or Fedora, or Arch, +# this script selects the appropriate package manager and +# packages to install to get wireguard working +# This script will run as root, to have full access needed +# to setup wireguard +# This script will also be idempotent, so that it doesn't +# have to install repeatedly if the required tools and +# packages are alread installed. \ No newline at end of file