Files
superbrain/web/package.json
T
Andrew S Erwin e6ab778bd5 Add personal API keys, superbrain-mcp, and fix Markdown prose styling
API keys & MCP (the mcpserver-link prerequisite from STRATEGY.md):
- ApiKey table (migration 017 + schema.sql): hash-only storage of personal
  "sb_..." Bearer credentials, unique keyHash, owner cascade.
- internal/auth/apikeys.go + AuthMiddleware fork: keys resolve before the
  assertion/cookie channels; gated on the mcp-core connector at issuance
  AND at every use (downgrade 403s); independent of tokenVersion so "sign
  out everywhere" never breaks a gateway link; view-as stays browser-only.
- /api/keys GET/POST/DELETE: plaintext shown exactly once, 10-key cap under
  the user lock, owner-scoped revocation; Settings -> API Keys tab.
- mcp/: superbrain-mcp, a pip-installable stdio MCP server (listmonk-mcp
  pattern) with bookmarks/tags/pages tools, version-safe updates; the
  federated gateway spawns it via config_mcpserver_superbrain() in
  deploy/federated/lib-superbrain.sh (mints the gateway key in-db, points
  it at http://superbrain-app:8080). STRATEGY.md records the remaining
  suite-side registry work.
- Tests: TestAPIKeys (plan gate, cap, revocation, tokenVersion semantics,
  downgrade-at-use); full DB-backed suite, db-converge, live MCP-client
  smoke all pass.

Markdown (Gitea issue #3): add @tailwindcss/typography and enable it in
tailwind.config.ts. The prose wrapper was a no-op without it, so Tailwind
Preflight flattened headings/blockquotes to body text while bold/italic
survived - exactly the reported symptom. Verified in the built CSS.

Gitea: #2 and #3 closed with reference notes; #1 stays open pending the
Superpanel core-AI walkthrough.
2026-11-02 14:27:58 -06:00

90 lines
2.7 KiB
JSON

{
"name": "app",
"private": true,
"packageManager": "yarn@1.22.22",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint ."
},
"devDependencies": {
"@next/swc-wasm-nodejs": "16.3.3",
"@tailwindcss/typography": "0.5.20",
"@types/jsonwebtoken": "9.0.7",
"@types/node": "22.0.0",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.4",
"@typescript-eslint/eslint-plugin": "8.18.0",
"@typescript-eslint/parser": "8.18.0",
"eslint": "9.33.0",
"eslint-config-next": "16.3.3",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react-hooks": "7.1.1",
"postcss": "8.4.47",
"tailwind-merge": "2.5.2",
"tailwindcss": "3.4.0",
"tailwindcss-animate": "1.0.7",
"ts-node": "10.9.2",
"tsx": "4.20.3",
"typescript": "5.6.3"
},
"dependencies": {
"@radix-ui/react-accordion": "1.2.0",
"@radix-ui/react-alert-dialog": "1.1.1",
"@radix-ui/react-aspect-ratio": "1.1.0",
"@radix-ui/react-avatar": "1.1.0",
"@radix-ui/react-checkbox": "1.1.1",
"@radix-ui/react-collapsible": "1.1.0",
"@radix-ui/react-context-menu": "2.2.1",
"@radix-ui/react-dialog": "1.1.1",
"@radix-ui/react-dropdown-menu": "2.1.1",
"@radix-ui/react-hover-card": "1.1.1",
"@radix-ui/react-label": "2.1.0",
"@radix-ui/react-menubar": "1.1.1",
"@radix-ui/react-navigation-menu": "1.2.0",
"@radix-ui/react-popover": "1.1.1",
"@radix-ui/react-progress": "1.1.0",
"@radix-ui/react-radio-group": "1.2.0",
"@radix-ui/react-scroll-area": "1.1.0",
"@radix-ui/react-select": "2.1.1",
"@radix-ui/react-separator": "1.1.0",
"@radix-ui/react-slider": "1.2.0",
"@radix-ui/react-slot": "1.1.0",
"@radix-ui/react-switch": "1.1.0",
"@radix-ui/react-tabs": "1.1.0",
"@radix-ui/react-toggle": "1.1.0",
"@radix-ui/react-toggle-group": "1.1.0",
"@radix-ui/react-tooltip": "1.1.2",
"autoprefixer": "10.4.20",
"class-variance-authority": "0.7.0",
"clsx": "2.1.1",
"cmdk": "1.0.0",
"date-fns": "4.0.0",
"embla-carousel-react": "8.3.0",
"framer-motion": "12.23.12",
"input-otp": "1.2.4",
"jsonwebtoken": "9.0.2",
"lucide-react": "0.446.0",
"next": "16.3.3",
"next-auth": "5.0.0-beta.32",
"next-themes": "0.4.0",
"react": "19.2.8",
"react-day-picker": "8.10.1",
"react-dom": "19.2.8",
"react-hook-form": "7.53.0",
"react-markdown": "10.1.0",
"react-resizable-panels": "2.1.3",
"remark-gfm": "4.0.1",
"sonner": "1.5.0",
"vaul": "1.0.0"
},
"engines": {
"node": ">=20.9.0"
},
"resolutions": {
"motion-dom": "12.23.12",
"motion-utils": "12.23.6"
}
}