Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

chore: remove OpenMemory from the monorepo (#6530)

Kartikea2ee0758635
diff --git a/.github/component-keywords.json b/.github/component-keywords.json
index 7b8d1dcda..badf548d2 100644
--- a/.github/component-keywords.json
+++ b/.github/component-keywords.json
@@ -17,10 +17,6 @@
"claude code", "opencode", "pi agent", "mem0-plugin",
"cursor plugin", "codex plugin", "editor plugin"
],
- "openmemory": [
- "openmemory", "open memory", "localhost:8765", "localhost:3000",
- "openmemory ui", "openmemory/api", "openmemory/ui"
- ],
"cli": ["mem0-cli", "@mem0/cli", "npx mem0", "command line"],
"vector-store": [
"pgvector", "pinecone", "chroma", "chromadb", "weaviate",
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 3a690adf6..c35f2da49 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -23,10 +23,6 @@ rest-api:
- changed-files:
- any-glob-to-any-file: 'server/**'
-openmemory:
- - changed-files:
- - any-glob-to-any-file: 'openmemory/**'
-
integrations:
- changed-files:
- any-glob-to-any-file: 'integrations/**'
diff --git a/.github/scripts/infer-component-labels.test.js b/.github/scripts/infer-component-labels.test.js
index b5eb36259..8b32bdc9e 100644
--- a/.github/scripts/infer-component-labels.test.js
+++ b/.github/scripts/infer-component-labels.test.js
@@ -35,12 +35,6 @@ const cases = [
body: "### πŸ› Describe the bug\n\nI'm using docker compose to deploy a REST API server. When adding memory, I'm unable to set the expiration_date. Is this feature not supported?",
expected: ["rest-api"],
},
- {
- number: 3444,
- title: "Fix: Openmemory run.sh non-existent vector-store route",
- body: "### πŸ› Describe the bug\n\n# Vector_store not implemented\nThere is many references to ` ${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store` in lines 280, 293, 306, 319, 332, 345, 358, and 371. \n```bash\ncurl -fsS -X PUT \"${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store\" # Line 280 and for each vector store\n```\nBut the api route is not implemented in `api/app/routers/config.py`.\n# Suggested solution\nI would implement `vector_store` route or remove and use `update_configuration` for all config updates. Also Create class with all config keys for vector_store",
- expected: ["openmemory"],
- },
{
number: 6252,
title: "cursor: on_file_read_cursor.sh ignores auto_search / MEM0_AUTO_SEARCH",
diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml
index 236f66780..94d66b41a 100644
--- a/.github/workflows/pr-labeler.yml
+++ b/.github/workflows/pr-labeler.yml
@@ -27,7 +27,7 @@ jobs:
script: |
const allowed = new Set([
'sdk-python', 'sdk-typescript', 'vector-store', 'plugin',
- 'rest-api', 'openmemory', 'documentation', 'ci', 'cli', 'integrations',
+ 'rest-api', 'documentation', 'ci', 'cli', 'integrations',
]);
const umbrella = { plugin: 'integrations' };
const { repository } = await github.graphql(
diff --git a/AGENTS.md b/AGENTS.md
index 993c51370..b542154ec 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -28,7 +28,6 @@ This is a **polyglot monorepo** containing Python and TypeScript packages, CLIs,
| `integrations/pi-agent-plugin/` | `@mem0/pi-agent-plugin` β€” Pi Agent plugin |
| `integrations/vercel-ai-sdk/` | `@mem0/vercel-ai-provider` β€” Vercel AI SDK memory provider |
| `server/` | FastAPI REST server for self-hosted Mem0 (Docker: FastAPI + PostgreSQL/pgvector + Neo4j) |
-| `openmemory/` | Self-hosted memory platform β€” `api/` (FastAPI + Alembic + MCP server) and `ui/` (Next.js 15 + React 19) |
| `skills/` | Claude Code skill definitions. Reference skills (SDK knowledge, always-on): `mem0/`, `mem0-cli/`, `mem0-vercel-ai-sdk/`. Pipeline skills (run on demand): `mem0-integrate/`, `mem0-test-integration/`, `mem0-oss-to-platform/` |
| `docs/` | Documentation site (Mintlify) |
| `tests/` | Python SDK tests (pytest) |
@@ -62,7 +61,7 @@ integrations/openclaw/ ──▢ mem0ai (npm)
- **Node.js**: v18+ (v20 or v22 recommended)
- **pnpm**: v10+ (`npm install -g pnpm@10`) β€” used for all TypeScript packages
- **Hatch**: Python build/environment tool (`pip install hatch`)
-- **Docker**: Required for `server/` and `openmemory/` development
+- **Docker**: Required for `server/` development
### Initial Setup
@@ -214,28 +213,6 @@ docker-compose up # starts all 3 services
- **Services:** PostgreSQL with pgvector, Neo4j 5.x with APOC plugin
- **Hot reload:** Dev Dockerfile mounts `server/` and `mem0/` for live changes
-### OpenMemory (`openmemory/`)
-
-```bash
-# Full stack via Docker Compose
-cd openmemory
-docker-compose up
-# Qdrant: localhost:6333
-# API (MCP): localhost:8765
-# UI: localhost:3000
-
-# Individual development
-cd openmemory/api && uvicorn main:app --reload # FastAPI backend
-cd openmemory/ui && npm run dev # Next.js frontend
-
-# Tests
-cd openmemory/api && pytest tests/ # API tests (e.g., test_mcp_server.py)
-```
-
-- **API:** FastAPI + Alembic (DB migrations) + MCP server (Model Context Protocol)
-- **UI:** Next.js 15, React 19, Radix UI, Redux Toolkit, TailwindCSS, Recharts
-- **Vector store:** Qdrant
-
### Documentation (`docs/`)
```bash
@@ -331,7 +308,6 @@ python -m benchmarks.beam.run --project-name my-test --backend cloud --mem0-api-
- Root SDK: line length **120**
- Python CLI: line length **100** with extended rule set (UP, B, SIM, RUF)
- **isort** with `profile = "black"` for import sorting.
-- Ruff excludes `openmemory/` from root config.
### TypeScript Conventions
@@ -382,7 +358,6 @@ Optional layer on top of vector memory for relationship-aware retrieval. Configu
Model Context Protocol support in multiple places:
- **Remote:** MCP server at `mcp.mem0.ai`
-- **Local:** MCP server in `openmemory/api/` (FastAPI-based)
- **Plugin:** MCP tools in `integrations/mem0-plugin/` β€” 9 tools: `add_memory`, `search_memories`, `get_memories`, `get_memory`, `update_memory`, `delete_memory`, `delete_all_memories`, `delete_entities`, `list_entities`
### Plugin & Skills System
@@ -585,7 +560,7 @@ N/A
- Follow existing code patterns β€” don't introduce new frameworks or abstractions without discussion.
- Version bumps go in `pyproject.toml` (Python) or `package.json` (TypeScript).
-- For `server/` and `openmemory/` work, use Docker Compose for local development.
+- For `server/` work, use Docker Compose for local development.
- Do NOT use `pip` or `conda` for dependency management β€” use `hatch` (see `docs/contributing/development.mdx`).
### Contributing Guides
@@ -608,5 +583,4 @@ N/A
- Use npm or yarn in TypeScript packages β€” this repo uses pnpm exclusively.
- Use `require()` for imports in TypeScript β€” use ES module `import` syntax.
- Mix up linter configs: root Python SDK uses line-length 120, Python CLI uses 100, Node CLI uses Biome (not ESLint/Ruff).
-- Modify `openmemory/` database migrations without understanding the Alembic migration chain.
- Change public APIs without updating documentation in `docs/`.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ddba58989..88d1ca568 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -45,7 +45,7 @@ The two most common contribution targets are the SDKs:
| TypeScript SDK (`mem0ai`) | `mem0-ts/` | TypeScript | `pnpm` |
Other packages include the CLIs (`cli/python/`, `cli/node/`), integrations
-(`integrations/`), the self-hosted `server/`, `openmemory/`, and the docs site
+(`integrations/`), the self-hosted `server/`, and the docs site
(`docs/`). See [AGENTS.md](./AGENTS.md) for a full map of the repository.
## Development Workflow
diff --git a/SECURITY.md b/SECURITY.md
index 67bf77ba8..2c4caa2a6 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -21,7 +21,7 @@ privately through one of the following channels:
To help us triage and resolve the issue quickly, please include as much of the
following as you can:
-- Affected component or package (e.g. Python SDK, TypeScript SDK, server, OpenMemory)
+- Affected component or package (e.g. Python SDK, TypeScript SDK, server, CLI)
- Affected version, tag, or commit
- Clear, step-by-step reproduction instructions
- The security impact and a proof of concept, if available
diff --git a/docs/images/docs thumbnails/dark/mem0_openmemory.png b/docs/images/docs thumbnails/dark/mem0_openmemory.png
deleted file mode 100644
index dd6952584..000000000
Binary files a/docs/images/docs thumbnails/dark/mem0_openmemory.png and /dev/null differ
diff --git a/docs/images/docs thumbnails/light/mem0_openmemory.png b/docs/images/docs thumbnails/light/mem0_openmemory.png
deleted file mode 100644
index 16fff3dd6..000000000
Binary files a/docs/images/docs thumbnails/light/mem0_openmemory.png and /dev/null differ
diff --git a/docs/llms.txt b/docs/llms.txt
index bf56f0751..d348e89cd 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -416,7 +416,6 @@ Editor-specific setup docs (already listed above under `## Integrations > AI Cod
### MCP Endpoints
- Hosted MCP server: `https://mcp.mem0.ai` - requires Platform API key. See `platform/mem0-mcp`.
-- Self-hosted MCP server: ships with `openmemory/api/` (FastAPI) - runs against your own Qdrant + LLM stack.
## Community & Support
diff --git a/docs/logo/openmemory-icon.svg b/docs/logo/openmemory-icon.svg
deleted file mode 100644
index 02ca9d5b4..000000000
--- a/docs/logo/openmemory-icon.svg
+++ /dev/null
@@ -1,19 +0,0 @@
-<svg width="307" height="307" viewBox="0 0 307 307" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M162.496 25.3505C165.003 25.3505 167.453 24.6071 169.538 23.2144C171.622 21.8216 173.247 19.8419 174.206 17.5258C175.165 15.2097 175.416 12.6612 174.927 10.2024C174.438 7.74365 173.231 5.48516 171.458 3.71249C169.686 1.93983 167.427 0.73263 164.968 0.243552C162.51 -0.245525 159.961 0.00550576 157.645 0.964866C155.329 1.92423 153.349 3.54885 151.956 5.63328C150.564 7.71772 149.82 10.1683 149.82 12.6753C149.818 14.3404 150.145 15.9895 150.781 17.5283C151.417 19.0671 152.351 20.4653 153.528 21.6427C154.706 22.8201 156.104 23.7537 157.643 24.39C159.181 25.0262 160.83 25.3526 162.496 25.3505Z" fill="#9C58FA"/>
-<path d="M69.3342 56.559C71.1066 54.7862 72.3135 52.5277 72.8024 50.069C73.2913 47.6103 73.0401 45.0619 72.0807 42.7459C71.1213 40.43 69.4967 38.4505 67.4123 37.0579C65.3279 35.6652 62.8774 34.9219 60.3706 34.9219C57.8637 34.9219 55.4132 35.6652 53.3288 37.0579C51.2444 38.4505 49.6198 40.43 48.6604 42.7459C47.701 45.0619 47.4498 47.6103 47.9387 50.069C48.4276 52.5277 49.6345 54.7862 51.4069 56.559C52.5839 57.7363 53.9813 58.6701 55.5193 59.3073C57.0573 59.9444 58.7058 60.2724 60.3706 60.2724C62.0353 60.2724 63.6838 59.9444 65.2218 59.3073C66.7598 58.6701 68.1572 57.7363 69.3342 56.559Z" fill="#9C58FA"/>
-<path d="M25.3505 144.504C25.3505 141.997 24.6071 139.547 23.2143 137.462C21.8216 135.378 19.842 133.753 17.5259 132.794C15.2098 131.835 12.6612 131.584 10.2024 132.073C7.74368 132.562 5.48513 133.769 3.71247 135.542C1.9398 137.314 0.732655 139.573 0.243578 142.032C-0.2455 144.49 0.00543354 147.039 0.964793 149.355C1.92415 151.671 3.54877 153.651 5.63321 155.044C7.71764 156.436 10.1683 157.18 12.6752 157.18C16.0369 157.18 19.261 155.844 21.638 153.467C24.0151 151.09 25.3505 147.866 25.3505 144.504Z" fill="#9C58FA"/>
-<path d="M56.5589 237.749C54.7862 235.976 52.5277 234.769 50.069 234.28C47.6103 233.792 45.0619 234.043 42.7459 235.002C40.43 235.962 38.4505 237.586 37.0579 239.671C35.6652 241.755 34.9219 244.206 34.9219 246.712C34.9219 249.219 35.6652 251.67 37.0579 253.754C38.4505 255.838 40.43 257.463 42.7459 258.423C45.0619 259.382 47.6103 259.633 50.069 259.144C52.5277 258.655 54.7862 257.448 56.5589 255.676C57.7362 254.499 58.6701 253.102 59.3073 251.564C59.9444 250.026 60.2724 248.377 60.2724 246.712C60.2724 245.048 59.9444 243.399 59.3073 241.861C58.6701 240.323 57.7362 238.926 56.5589 237.749Z" fill="#9C58FA"/>
-<path d="M144.488 281.648C141.981 281.648 139.53 282.392 137.446 283.785C135.361 285.177 133.737 287.157 132.777 289.473C131.818 291.789 131.567 294.338 132.056 296.797C132.545 299.255 133.752 301.514 135.525 303.286C137.298 305.059 139.556 306.266 142.015 306.755C144.474 307.244 147.022 306.993 149.338 306.034C151.655 305.075 153.634 303.45 155.027 301.366C156.42 299.281 157.163 296.831 157.163 294.324C157.159 290.963 155.822 287.742 153.446 285.366C151.07 282.989 147.848 281.653 144.488 281.648Z" fill="#9C58FA"/>
-<path d="M237.751 250.487C235.978 252.26 234.771 254.518 234.282 256.977C233.794 259.435 234.045 261.984 235.004 264.3C235.964 266.616 237.588 268.595 239.673 269.988C241.757 271.381 244.207 272.124 246.714 272.124C249.221 272.124 251.672 271.381 253.756 269.988C255.84 268.595 257.465 266.616 258.424 264.3C259.384 261.984 259.635 259.435 259.146 256.977C258.657 254.518 257.45 252.26 255.678 250.487C254.501 249.31 253.104 248.376 251.566 247.739C250.028 247.101 248.379 246.773 246.714 246.773C245.05 246.773 243.401 247.101 241.863 247.739C240.325 248.376 238.928 249.31 237.751 250.487Z" fill="#9C58FA"/>
-<path d="M281.648 162.512C281.648 165.019 282.392 167.469 283.785 169.554C285.177 171.638 287.157 173.263 289.473 174.222C291.789 175.181 294.338 175.432 296.797 174.943C299.255 174.454 301.514 173.247 303.286 171.474C305.059 169.702 306.266 167.443 306.755 164.984C307.244 162.526 306.993 159.977 306.034 157.661C305.075 155.345 303.45 153.365 301.366 151.973C299.281 150.58 296.831 149.836 294.324 149.836C290.962 149.836 287.738 151.172 285.361 153.549C282.984 155.926 281.648 159.15 281.648 162.512Z" fill="#9C58FA"/>
-<path d="M250.471 69.3303C252.244 71.1027 254.503 72.3097 256.961 72.7985C259.42 73.2874 261.968 73.0363 264.284 72.0768C266.6 71.1174 268.58 69.4928 269.972 67.4084C271.365 65.324 272.108 62.8735 272.108 60.3667C272.108 57.8599 271.365 55.4093 269.972 53.3249C268.58 51.2406 266.6 49.616 264.284 48.6565C261.968 47.6971 259.42 47.4459 256.961 47.9348C254.503 48.4236 252.244 49.6306 250.471 51.403C249.294 52.58 248.36 53.9775 247.723 55.5155C247.086 57.0535 246.758 58.7019 246.758 60.3667C246.758 62.0314 247.086 63.6799 247.723 65.2179C248.36 66.7559 249.294 68.1533 250.471 69.3303Z" fill="#9C58FA"/>
-<path d="M184.782 60.8054C180.168 63.4713 178.3 69.0427 177.63 74.3267C177.047 78.9358 175.033 83.2457 171.87 86.6488C168.707 90.052 164.556 92.3766 160.002 93.2951C155.448 94.2136 150.721 93.6796 146.487 91.7683C142.252 89.857 138.724 86.6649 136.401 82.642C134.077 78.6192 133.075 73.9684 133.535 69.3455C133.995 64.7226 135.895 60.3607 138.966 56.8748C142.037 53.389 146.125 50.9549 150.653 49.9159C155.181 48.8768 159.921 49.2852 164.204 51.0834C169.121 53.1428 174.884 54.2762 179.514 51.6422C184.143 49.0082 185.995 43.4049 186.665 38.1208C187.245 33.5107 189.257 29.1987 192.418 25.7931C195.579 22.3876 199.73 20.0603 204.284 19.1394C208.838 18.2185 213.567 18.7505 217.803 20.6605C222.039 22.5704 225.568 25.7618 227.893 29.7846C230.218 33.8075 231.222 38.4587 230.763 43.0824C230.303 47.7062 228.404 52.0691 225.333 55.5559C222.262 59.0426 218.173 61.4773 213.645 62.5165C209.116 63.5557 204.375 63.147 200.091 61.3481C195.174 59.3048 189.411 58.1554 184.782 60.8054Z" fill="#9C58FA"/>
-<path d="M110.073 65.8178C108.7 70.9742 111.318 76.2422 114.575 80.4567C117.417 84.1261 119.036 88.595 119.204 93.2335C119.372 97.872 118.08 102.446 115.51 106.311C112.941 110.177 109.223 113.138 104.881 114.778C100.538 116.419 95.7912 116.655 91.3077 115.454C86.8242 114.253 82.8306 111.675 79.8898 108.084C76.9489 104.493 75.2091 100.07 74.9155 95.4379C74.6219 90.8057 75.7894 86.1981 78.2533 82.2645C80.7173 78.331 84.3534 75.2698 88.6494 73.5124C93.5822 71.485 98.4991 68.2444 99.8241 63.0881C101.149 57.9317 98.579 52.6637 95.3224 48.4493C92.4827 44.7781 90.8665 40.3083 90.7018 35.6699C90.537 31.0315 91.8319 26.4583 94.4039 22.5949C96.976 18.7314 100.695 15.7724 105.038 14.1349C109.381 12.4974 114.128 12.2639 118.611 13.4673C123.094 14.6708 127.085 17.2505 130.024 20.8429C132.963 24.4354 134.7 28.8594 134.991 33.4916C135.283 38.1237 134.113 42.7305 131.647 46.6627C129.182 50.5948 125.544 53.6541 121.248 55.4095C116.363 57.4209 111.462 60.6775 110.073 65.8178Z" fill="#9C58FA"/>
-<path d="M60.7892 122.218C63.4552 126.831 69.0425 128.699 74.3265 129.37C78.9361 129.955 83.2455 131.973 86.6471 135.138C90.0487 138.304 92.3707 142.457 93.2857 147.013C94.2006 151.569 93.6625 156.296 91.747 160.53C89.8314 164.763 86.6353 168.288 82.6093 170.608C78.5833 172.928 73.9305 173.926 69.3073 173.46C64.6841 172.995 60.3236 171.09 56.841 168.014C53.3583 164.938 50.9292 160.846 49.8962 156.316C48.8631 151.785 49.2783 147.045 51.0832 142.763C53.1426 137.846 54.2759 132.083 51.6419 127.454C49.0079 122.824 43.4046 120.973 38.1047 120.302C33.4951 119.717 29.1856 117.699 25.7841 114.533C22.3825 111.368 20.0604 107.214 19.1454 102.659C18.2304 98.1032 18.7687 93.3752 20.6842 89.1418C22.5997 84.9084 25.7959 81.3832 29.8219 79.0632C33.8479 76.7433 38.5006 75.7457 43.1238 76.2113C47.7471 76.6768 52.1075 78.582 55.5902 81.658C59.0728 84.7341 61.502 88.8258 62.535 93.3561C63.568 97.8865 63.1528 102.627 61.3479 106.908C59.2886 111.825 58.1552 117.588 60.7892 122.218Z" fill="#9C58FA"/>
-<path d="M65.8204 196.93C70.9767 198.303 76.2287 195.685 80.4592 192.428C84.1286 189.586 88.5975 187.967 93.236 187.799C97.8745 187.631 102.449 188.923 106.314 191.493C110.179 194.062 113.141 197.78 114.781 202.122C116.421 206.464 116.657 211.212 115.457 215.695C114.256 220.179 111.678 224.172 108.087 227.113C104.496 230.054 100.073 231.794 95.4404 232.087C90.8082 232.381 86.2006 231.214 82.2671 228.75C78.3335 226.286 75.2723 222.649 73.5149 218.353C71.4875 213.421 68.231 208.504 63.0906 207.179C57.9503 205.854 52.6662 208.424 48.4518 211.681C44.7804 214.528 40.308 216.151 35.6652 216.32C31.0224 216.49 26.4435 215.199 22.5738 212.628C18.7042 210.057 15.7391 206.336 14.0968 201.99C12.4544 197.644 12.2176 192.892 13.4197 188.404C14.6218 183.917 17.2021 179.919 20.7969 176.976C24.3917 174.033 28.8195 172.293 33.4562 172C38.0929 171.708 42.7045 172.878 46.6407 175.345C50.577 177.813 53.6394 181.454 55.3961 185.755C57.4235 190.656 60.6641 195.541 65.8204 196.93Z" fill="#9C58FA"/>
-<path d="M122.205 246.21C126.818 243.544 128.686 237.956 129.373 232.672C129.96 228.068 131.978 223.763 135.142 220.366C138.306 216.969 142.456 214.651 147.008 213.738C151.559 212.825 156.283 213.364 160.512 215.278C164.741 217.192 168.263 220.385 170.58 224.408C172.898 228.43 173.895 233.078 173.43 237.697C172.966 242.316 171.064 246.673 167.991 250.153C164.919 253.633 160.832 256.061 156.306 257.095C151.781 258.129 147.045 257.717 142.766 255.916C137.833 253.856 132.07 252.723 127.457 255.357C122.843 257.991 120.96 263.594 120.289 268.894C119.7 273.498 117.681 277.8 114.517 281.196C111.353 284.591 107.204 286.908 102.653 287.821C98.1027 288.733 93.3808 288.194 89.1525 286.281C84.9243 284.367 81.4031 281.175 79.085 277.154C76.767 273.134 75.7689 268.487 76.2316 263.869C76.6942 259.251 78.5942 254.895 81.6638 251.414C84.7334 247.933 88.8179 245.503 93.3417 244.466C97.8655 243.429 102.601 243.838 106.88 245.635C111.828 247.694 117.591 248.876 122.205 246.21Z" fill="#9C58FA"/>
-<path d="M196.915 241.18C198.304 236.024 195.686 230.756 192.414 226.542C189.567 222.87 187.944 218.398 187.774 213.755C187.604 209.112 188.896 204.533 191.467 200.664C194.038 196.794 197.759 193.829 202.104 192.187C206.45 190.544 211.202 190.307 215.69 191.509C220.178 192.712 224.175 195.292 227.118 198.887C230.061 202.481 231.802 206.909 232.094 211.546C232.387 216.183 231.217 220.794 228.749 224.731C226.281 228.667 222.64 231.729 218.339 233.486C213.406 235.513 208.505 238.77 207.164 243.91C205.823 249.051 208.393 254.335 211.666 258.549C214.513 262.22 216.136 266.693 216.306 271.335C216.476 275.978 215.184 280.557 212.613 284.427C210.042 288.297 206.321 291.262 201.975 292.904C197.629 294.546 192.877 294.783 188.39 293.581C183.902 292.379 179.905 289.799 176.962 286.204C174.019 282.609 172.278 278.181 171.985 273.545C171.693 268.908 172.863 264.296 175.331 260.36C177.799 256.424 181.44 253.361 185.741 251.605C190.658 249.577 195.543 246.337 196.915 241.18Z" fill="#9C58FA"/>
-<path d="M246.195 184.797C243.529 180.184 237.957 178.316 232.673 177.629C228.069 177.045 223.764 175.03 220.365 171.869C216.967 168.708 214.646 164.56 213.729 160.01C212.813 155.46 213.348 150.737 215.258 146.507C217.168 142.277 220.357 138.753 224.376 136.431C228.395 134.11 233.041 133.108 237.66 133.567C242.279 134.026 246.637 135.923 250.12 138.991C253.604 142.058 256.037 146.141 257.077 150.664C258.117 155.188 257.711 159.923 255.917 164.204C253.857 169.137 252.724 174.9 255.342 179.513C257.96 184.127 263.595 186.01 268.879 186.681C273.484 187.267 277.789 189.283 281.186 192.446C284.584 195.608 286.904 199.757 287.819 204.308C288.733 208.859 288.197 213.582 286.285 217.811C284.372 222.041 281.181 225.564 277.16 227.884C273.14 230.203 268.492 231.203 263.874 230.741C259.255 230.279 254.897 228.379 251.416 225.31C247.934 222.24 245.503 218.155 244.466 213.63C243.429 209.106 243.838 204.37 245.636 200.09C247.695 195.173 248.861 189.411 246.195 184.797Z" fill="#9C58FA"/>
-<path d="M241.18 110.07C236.024 108.697 230.756 111.315 226.542 114.588C222.87 117.435 218.398 119.058 213.755 119.228C209.112 119.398 204.533 118.106 200.664 115.535C196.794 112.964 193.829 109.243 192.187 104.897C190.544 100.551 190.307 95.7994 191.509 91.3117C192.712 86.824 195.292 82.8268 198.887 79.8837C202.481 76.9405 206.909 75.2 211.546 74.9073C216.183 74.6147 220.794 75.7849 224.731 78.2527C228.667 80.7206 231.729 84.3617 233.486 88.6627C235.513 93.5955 238.754 98.4964 243.91 99.8374C249.066 101.178 254.335 98.6082 258.549 95.3356C262.22 92.4959 266.69 90.8798 271.328 90.7151C275.967 90.5503 280.54 91.8452 284.403 94.4172C288.267 96.9892 291.226 100.709 292.863 105.052C294.501 109.394 294.734 114.142 293.531 118.624C292.327 123.107 289.748 127.099 286.155 130.037C282.563 132.976 278.139 134.714 273.507 135.005C268.875 135.296 264.268 134.126 260.336 131.661C256.403 129.195 253.344 125.557 251.589 121.261C249.577 116.36 246.321 111.459 241.18 110.07Z" fill="#9C58FA"/>
-<path d="M153.491 191.533C174.501 191.533 191.533 174.501 191.533 153.491C191.533 132.482 174.501 115.45 153.491 115.45C132.481 115.45 115.449 132.482 115.449 153.491C115.449 174.501 132.481 191.533 153.491 191.533Z" fill="#9C58FA"/>
-</svg>
diff --git a/integrations/mem0-plugin/skills/mem0/scripts/mem0_doc_search.py b/integrations/mem0-plugin/skills/mem0/scripts/mem0_doc_search.py
index 1ff8de1c7..a04c89afb 100755
--- a/integrations/mem0-plugin/skills/mem0/scripts/mem0_doc_search.py
+++ b/integrations/mem0-plugin/skills/mem0/scripts/mem0_doc_search.py
@@ -62,10 +62,6 @@ SECTION_MAP = {
"/open-source/features/rest-api",
"/open-source/configure-components",
],
- "openmemory": [
- "/openmemory/overview",
- "/openmemory/quickstart",
- ],
"sdks": [
"/sdks/python",
"/sdks/js",
diff --git a/openmemory/.gitignore b/openmemory/.gitignore
deleted file mode 100644
index a8a361071..000000000
--- a/openmemory/.gitignore
+++ /dev/null
@@ -1,14 +0,0 @@
-*.db
-.env*
-!.env.example
-!.env.dev
-!ui/lib
-.venv/
-__pycache__
-.DS_Store
-node_modules/
-*.log
-api/.openmemory*
-**/.next
-.openmemory/
-ui/package-lock.json
\ No newline at end of file
diff --git a/openmemory/CONTRIBUTING.md b/openmemory/CONTRIBUTING.md
deleted file mode 100644
index 701334d47..000000000
--- a/openmemory/CONTRIBUTING.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Contributing to OpenMemory
-
-We are a team of developers passionate about the future of AI and open-source software. With years of experience in both fields, we believe in the power of community-driven development and are excited to build tools that make AI more accessible and personalized.
-
-## Ways to Contribute
-
-We welcome all forms of contributions:
-- Bug reports and feature requests through GitHub Issues
-- Documentation improvements
-- Code contributions
-- Testing and feedback
-- Community support and discussions
-
-## Development Workflow
-
-1. Fork the repository
-2. Create your feature branch (`git checkout -b openmemory/feature/amazing-feature`)
-3. Commit your changes (`git commit -m 'Add some amazing feature'`)
-4. Push to the branch (`git push origin openmemory/feature/amazing-feature`)
-5. Open a Pull Request
-
-## Development Setup
-
-### Backend Setup
-
-```bash
-# Copy environment file and edit file to update OPENAI_API_KEY and other secrets
-make env
-
-# Build the containers
-make build
-
-# Start the services
-make up
-```
-
-### Frontend Setup
-
-The frontend is a React application. To start the frontend:
-
-```bash
-# Install dependencies and start the development server
-make ui-dev
-```
-
-### Prerequisites
-- Docker and Docker Compose
-- Python 3.9+ (for backend development)
-- Node.js (for frontend development)
-- OpenAI API Key (for LLM interactions)
-
-### Getting Started
-Follow the setup instructions in the README.md file to set up your development environment.
-
-## Code Standards
-
-We value:
-- Clean, well-documented code
-- Thoughtful discussions about features and improvements
-- Respectful and constructive feedback
-- A welcoming environment for all contributors
-
-## Pull Request Process
-
-1. Ensure your code follows the project's coding standards
-2. Update documentation as needed
-3. Include tests for new features
-4. Make sure all tests pass before submitting
-
-Join us in building the future of AI memory management! Your contributions help make OpenMemory better for everyone.
diff --git a/openmemory/Makefile b/openmemory/Makefile
deleted file mode 100644
index fdca300f9..000000000
--- a/openmemory/Makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-.PHONY: help up down logs shell migrate test test-clean env ui-install ui-start ui-dev ui-build ui-dev-start
-
-NEXT_PUBLIC_USER_ID=$(USER)
-NEXT_PUBLIC_API_URL=http://localhost:8765
-
-# Default target
-help:
- @echo "Available commands:"
- @echo " make env - Copy .env.example to .env"
- @echo " make up - Start the containers"
- @echo " make down - Stop the containers"
- @echo " make logs - Show container logs"
- @echo " make shell - Open a shell in the api container"
- @echo " make migrate - Run database migrations"
- @echo " make test - Run tests in a new container"
- @echo " make test-clean - Run tests and clean up volumes"
- @echo " make ui-install - Install frontend dependencies"
- @echo " make ui-start - Start the frontend development server"
- @echo " make ui-dev - Install dependencies and start the frontend in dev mode"
- @echo " make ui - Install dependencies and start the frontend in production mode"
-
-env:
- cd api && cp .env.example .env
- cd ui && cp .env.example .env
-
-build:
- docker compose build
-
-up:
- NEXT_PUBLIC_USER_ID=$(USER) NEXT_PUBLIC_API_URL=$(NEXT_PUBLIC_API_URL) docker compose up
-
-down:
- docker compose down -v
- rm -f api/openmemory.db
-
-logs:
- docker compose logs -f
-
-shell:
- docker compose exec api bash
-
-upgrade:
- docker compose exec api alembic upgrade head
-
-migrate:
- docker compose exec api alembic upgrade head
-
-downgrade:
- docker compose exec api alembic downgrade -1
-
-ui-dev:
- cd ui && NEXT_PUBLIC_USER_ID=$(USER) NEXT_PUBLIC_API_URL=$(NEXT_PUBLIC_API_URL) pnpm install && pnpm dev
diff --git a/openmemory/README.md b/openmemory/README.md
deleted file mode 100644
index 9c886bc20..000000000
--- a/openmemory/README.md
+++ /dev/null
@@ -1,168 +0,0 @@
-# OpenMemory
-
-> **⚠️ Sunsetting Notice:** OpenMemory is being sunset. For local self-hosted memory with a dashboard, please use the [Mem0 self-hosted server](https://docs.mem0.ai/open-source/overview) instead. Get started with `cd server && make bootstrap`. See the [self-hosted docs](https://docs.mem0.ai/open-source/setup) for configuration details.
-
-OpenMemory is your personal memory layer for LLMs - private, portable, and open-source. Your memories live locally, giving you complete control over your data. Build AI applications with personalized memories while keeping your data secure.
-
-![OpenMemory](https://github.com/user-attachments/assets/3c701757-ad82-4afa-bfbe-e049c2b4320b)
-
-## Easy Setup
-
-### Prerequisites
-- Docker
-- OpenAI API Key
-
-You can quickly run OpenMemory by running the following command:
-
-```bash
-curl -sL https://raw.githubusercontent.com/mem0ai/mem0/main/openmemory/run.sh | bash
-```
-
-You should set the `OPENAI_API_KEY` as a global environment variable:
-
-```bash
-export OPENAI_API_KEY=your_api_key
-```
-
-You can also set the `OPENAI_API_KEY` as a parameter to the script:
-
-```bash
-curl -sL https://raw.githubusercontent.com/mem0ai/mem0/main/openmemory/run.sh | OPENAI_API_KEY=your_api_key bash
-```
-
-## Prerequisites
-
-- Docker and Docker Compose
-- Python 3.9+ (for backend development)
-- Node.js (for frontend development)
-- OpenAI API Key (required for LLM interactions, run `cp api/.env.example api/.env` then change **OPENAI_API_KEY** to yours)
-
-## Quickstart
-
-### 1. Set Up Environment Variables
-
-Before running the project, you need to configure environment variables for both the API and the UI.
-
-You can do this in one of the following ways:
-
-- **Manually**:
- Create a `.env` file in each of the following directories:
- - `/api/.env`
- - `/ui/.env`
-
-- **Using `.env.example` files**:
- Copy and rename the example files:
-
- ```bash
- cp api/.env.example api/.env
- cp ui/.env.example ui/.env
- ```
-
- - **Using Makefile** (if supported):
- Run:
-
- ```bash
- make env
- ```
-- #### Example `/api/.env`
-
-```env
-OPENAI_API_KEY=sk-xxx
-USER=<user-id> # The User Id you want to associate the memories with
-```
-
-- #### LLM Configuration (optional)
-
-By default, OpenMemory uses OpenAI (`gpt-4o-mini`) for the LLM and embedder. You can configure a different provider using these environment variables in `/api/.env`:
-
-| Variable | Description | Default |
-|---|---|---|
-| `LLM_PROVIDER` | LLM provider (`openai`, `ollama`, `anthropic`, `groq`, `together`, `deepseek`, etc.) | `openai` |
-| `LLM_MODEL` | Model name for the LLM provider | `gpt-4o-mini` (OpenAI) / `llama3.1:latest` (Ollama) |
-| `LLM_API_KEY` | API key for the LLM provider | `OPENAI_API_KEY` env var |
-| `LLM_BASE_URL` | Custom base URL for the LLM API | Provider default |
-| `OLLAMA_BASE_URL` | Ollama-specific base URL (takes precedence over `LLM_BASE_URL` for Ollama) | `http://localhost:11434` |
-| `EMBEDDER_PROVIDER` | Embedder provider (defaults to `ollama` when LLM is Ollama, otherwise `openai`) | `openai` |
-| `EMBEDDER_MODEL` | Model name for the embedder | `text-embedding-3-small` (OpenAI) / `nomic-embed-text` (Ollama) |
-| `EMBEDDER_API_KEY` | API key for the embedder provider | `OPENAI_API_KEY` env var |
-| `EMBEDDER_BASE_URL` | Custom base URL for the embedder API | Provider default |
-
-**Example: Using Ollama (fully local)**
-```env
-LLM_PROVIDER=ollama
-LLM_MODEL=llama3.1:latest
-EMBEDDER_PROVIDER=ollama
-EMBEDDER_MODEL=nomic-embed-text
-OLLAMA_BASE_URL=http://localhost:11434
-```
-
-**Example: Using Anthropic**
-```env
-LLM_PROVIDER=anthropic
-LLM_MODEL=claude-sonnet-4-20250514
-LLM_API_KEY=sk-ant-xxx
-```
-- #### Example `/ui/.env`
-
-```env
-NEXT_PUBLIC_API_URL=http://localhost:8765
-NEXT_PUBLIC_USER_ID=<user-id> # Same as the user id for environment variable in api
-```
-
-### 2. Build and Run the Project
-You can run the project using the following two commands:
-```bash
-make build # builds the mcp server and ui
-make up # runs openmemory mcp server and ui
-```
-
-After running these commands, you will have:
-- OpenMemory MCP server running at: http://localhost:8765 (API documentation available at http://localhost:8765/docs)
-- OpenMemory UI running at: http://localhost:3000
-
-#### UI not working on `localhost:3000`?
-
-If the UI does not start properly on [http://localhost:3000](http://localhost:3000), try running it manually:
-
-```bash
-cd ui
-pnpm install
-pnpm dev
-```
-
-### MCP Client Setup
-
-Use the following one step command to configure OpenMemory Local MCP to a client. The general command format is as follows:
-
-```bash
-npx @openmemory/install local http://localhost:8765/mcp/<client-name>/sse/<user-id> --client <client-name>
-```
-
-Replace `<client-name>` with the desired client name and `<user-id>` with the value specified in your environment variables.
-
-
-## Project Structure
-
-- `api/` - Backend APIs + MCP server
-- `ui/` - Frontend React application
-
-## Contributing
-
-We are a team of developers passionate about the future of AI and open-source software. With years of experience in both fields, we believe in the power of community-driven development and are excited to build tools that make AI more accessible and personalized.
-
-We welcome all forms of contributions:
-- Bug reports and feature requests
-- Documentation improvements
-- Code contributions
-- Testing and feedback
-- Community support
-
-How to contribute:
-
-1. Fork the repository
-2. Create your feature branch (`git checkout -b openmemory/feature/amazing-feature`)
-3. Commit your changes (`git commit -m 'Add some amazing feature'`)
-4. Push to the branch (`git push origin openmemory/feature/amazing-feature`)
-5. Open a Pull Request
-
-Join us in building the future of AI memory management! Your contributions help make OpenMemory better for everyone.
diff --git a/openmemory/api/.dockerignore b/openmemory/api/.dockerignore
deleted file mode 100644
index 7909beb9c..000000000
--- a/openmemory/api/.dockerignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Ignore all .env files
-**/.env
-**/.env.*
-
-# Ignore all database files
-**/*.db
-**/*.sqlite
-**/*.sqlite3
-
-# Ignore logs
-**/*.log
-
-# Ignore runtime data
-**/node_modules
-**/__pycache__
-**/.pytest_cache
-**/.coverage
-**/coverage
-
-# Ignore Docker runtime files
-**/.dockerignore
-**/Dockerfile
-**/docker-compose*.yml
\ No newline at end of file
diff --git a/openmemory/api/.env.example b/openmemory/api/.env.example
deleted file mode 100644
index 21e32b7af..000000000
--- a/openmemory/api/.env.example
+++ /dev/null
@@ -1,15 +0,0 @@
-OPENAI_API_KEY=sk-xxx
-USER=user
-
-# LLM Configuration (optional - defaults to openai/gpt-4o-mini)
-# LLM_PROVIDER=ollama
-# LLM_MODEL=llama3.1:latest
-# LLM_API_KEY=
-# LLM_BASE_URL=
-# OLLAMA_BASE_URL=http://localhost:11434
-
-# Embedder Configuration (optional - defaults to openai/text-embedding-3-small)
-# EMBEDDER_PROVIDER=ollama
-# EMBEDDER_MODEL=nomic-embed-text
-# EMBEDDER_API_KEY=
-# EMBEDDER_BASE_URL=
diff --git a/openmemory/api/.python-version b/openmemory/api/.python-version
deleted file mode 100644
index fdcfcfdfc..000000000
--- a/openmemory/api/.python-version
+++ /dev/null
@@ -1 +0,0 @@
-3.12
\ No newline at end of file
diff --git a/openmemory/api/Dockerfile b/openmemory/api/Dockerfile
deleted file mode 100644
index 6e1afef83..000000000
--- a/openmemory/api/Dockerfile
+++ /dev/null
@@ -1,14 +0,0 @@
-FROM python:3.12-slim
-
-LABEL org.opencontainers.image.name="mem0/openmemory-mcp"
-
-WORKDIR /usr/src/openmemory
-
-COPY requirements.txt .
-RUN pip install -r requirements.txt
-
-COPY config.json .
-COPY . .
-
-EXPOSE 8765
-CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8765"]
diff --git a/openmemory/api/README.md b/openmemory/api/README.md
deleted file mode 100644
index bf8418c52..000000000
--- a/openmemory/api/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# OpenMemory API
-
-This directory contains the backend API for OpenMemory, built with FastAPI and SQLAlchemy. This also runs the Mem0 MCP Server that you can use with MCP clients to remember things.
-
-## Quick Start with Docker (Recommended)
-
-The easiest way to get started is using Docker. Make sure you have Docker and Docker Compose installed.
-
-1. Build the containers:
-```bash
-make build
-```
-
-2. Create `.env` file:
-```bash
-make env
-```
-
-Once you run this command, edit the file `api/.env` and enter the `OPENAI_API_KEY`.
-
-3. Start the services:
-```bash
-make up
-```
-
-The API will be available at `http://localhost:8765`
-
-### Common Docker Commands
-
-- View logs: `make logs`
-- Open shell in container: `make shell`
-- Run database migrations: `make migrate`
-- Run tests: `make test`
-- Run tests and clean up: `make test-clean`
-- Stop containers: `make down`
-
-## API Documentation
-
-Once the server is running, you can access the API documentation at:
-- Swagger UI: `http://localhost:8765/docs`
-- ReDoc: `http://localhost:8765/redoc`
-
-## Project Structure
-
-- `app/`: Main application code
- - `models.py`: Database models
- - `database.py`: Database configuration
- - `routers/`: API route handlers
-- `migrations/`: Database migration files
-- `tests/`: Test files
-- `alembic/`: Alembic migration configuration
-- `main.py`: Application entry point
-
-## Development Guidelines
-
-- Follow PEP 8 style guide
-- Use type hints
-- Write tests for new features
-- Update documentation when making changes
-- Run migrations for database changes
diff --git a/openmemory/api/alembic.ini b/openmemory/api/alembic.ini
deleted file mode 100644
index 8cddf4fe7..000000000
--- a/openmemory/api/alembic.ini
+++ /dev/null
@@ -1,114 +0,0 @@
-# A generic, single database configuration.
-
-[alembic]
-# path to migration scripts
-# Use forward slashes (/) also on windows to provide an os agnostic path
-script_location = alembic
-
-# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
-# Uncomment the line below if you want the files to be prepended with date and time
-# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
-# for all available tokens
-# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
-
-# sys.path path, will be prepended to sys.path if present.
-# defaults to the current working directory.
-prepend_sys_path = .
-
-# timezone to use when rendering the date within the migration file
-# as well as the filename.
-# If specified, requires the python-dateutil library that can be
-# installed by adding `alembic[tz]` to the pip requirements
-# timezone =
-
-# max length of characters to apply to the "slug" field
-# truncate_slug_length = 40
-
-# set to 'true' to run the environment during
-# the 'revision' command, regardless of autogenerate
-# revision_environment = false
-
-# set to 'true' to allow .pyc and .pyo files without
-# a source .py file to be detected as revisions in the
-# versions/ directory
-# sourceless = false
-
-# version location specification; This defaults
-# to alembic/versions. When using multiple version
-# directories, initial revisions must be specified with --version-path.
-# The path separator used here should be the separator specified by "version_path_separator" below.
-# version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
-
-# version path separator; As mentioned above, this is the character used to split
-# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
-# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or colons.
-# Valid values for version_path_separator are:
-#
-# version_path_separator = :
-# version_path_separator = ;
-# version_path_separator = space
-version_path_separator = os # Use os.pathsep. Default configuration used for new projects.
-
-# set to 'true' to search source files recursively
-# in each "version_locations" directory
-# new in Alembic version 1.10
-# recursive_version_locations = false
-
-# the output encoding used when revision files
-# are written from script.py.mako
-# output_encoding = utf-8
-
-sqlalchemy.url = sqlite:///./openmemory.db
-
-
-[post_write_hooks]
-# post_write_hooks defines scripts or Python functions that are run
-# on newly generated revision scripts. See the documentation for further
-# detail and examples
-
-# format using "black" - use the console_scripts runner, against the "black" entrypoint
-# hooks = black
-# black.type = console_scripts
-# black.entrypoint = black
-# black.options = -l 79 REVISION_SCRIPT_FILENAME
-
-# lint with attempts to fix using "ruff" - use the exec runner, execute a binary
-# hooks = ruff
-# ruff.type = exec
-# ruff.executable = %(here)s/.venv/bin/ruff
-# ruff.options = check --fix REVISION_SCRIPT_FILENAME
-
-# Logging configuration
-[loggers]
-keys = root,sqlalchemy,alembic
-
-[handlers]
-keys = console
-
-[formatters]
-keys = generic
-
-[logger_root]
-level = WARN
-handlers = console
-qualname =
-
-[logger_sqlalchemy]
-level = WARN
-handlers =
-qualname = sqlalchemy.engine
-
-[logger_alembic]
-level = INFO
-handlers =
-qualname = alembic
-
-[handler_console]
-class = StreamHandler
-args = (sys.stderr,)
-level = NOTSET
-formatter = generic
-
-[formatter_generic]
-format = %(levelname)-5.5s [%(name)s] %(message)s
-datefmt = %H:%M:%S
diff --git a/openmemory/api/alembic/README b/openmemory/api/alembic/README
deleted file mode 100644
index 98e4f9c44..000000000
--- a/openmemory/api/alembic/README
+++ /dev/null
@@ -1 +0,0 @@
-Generic single-database configuration.
\ No newline at end of file
diff --git a/openmemory/api/alembic/env.py b/openmemory/api/alembic/env.py
deleted file mode 100644
index 278cc65fd..000000000
--- a/openmemory/api/alembic/env.py
+++ /dev/null
@@ -1,88 +0,0 @@
-import os
-import sys
-from logging.config import fileConfig
-
-from alembic import context
-from dotenv import load_dotenv
-from sqlalchemy import engine_from_config, pool
-
-# Add the parent directory to the Python path
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-
-# Load environment variables
-load_dotenv()
-
-# Import your models here - moved after path setup
-from app.database import Base # noqa: E402
-
-# this is the Alembic Config object, which provides
-# access to the values within the .ini file in use.
-config = context.config
-
-# Interpret the config file for Python logging.
-# This line sets up loggers basically.
-if config.config_file_name is not None:
- fileConfig(config.config_file_name)
-
-# add your model's MetaData object here
-# for 'autogenerate' support
-target_metadata = Base.metadata
-
-# other values from the config, defined by the needs of env.py,
-# can be acquired:
-# my_important_option = config.get_main_option("my_important_option")
-# ... etc.
-
-
-def run_migrations_offline() -> None:
- """Run migrations in 'offline' mode.
-
- This configures the context with just a URL
- and not an Engine, though an Engine is acceptable
- here as well. By skipping the Engine creation
- we don't even need a DBAPI to be available.
-
- Calls to context.execute() here emit the given string to the
- script output.
-
- """
- url = os.getenv("DATABASE_URL", "sqlite:///./openmemory.db")
- context.configure(
- url=url,
- target_metadata=target_metadata,
- literal_binds=True,
- dialect_opts={"paramstyle": "named"},
- )
-
- with context.begin_transaction():
- context.run_migrations()
-
-
-def run_migrations_online() -> None:
- """Run migrations in 'online' mode.
-
- In this scenario we need to create an Engine
- and associate a connection with the context.
-
- """
- configuration = config.get_section(config.config_ini_section)
- configuration["sqlalchemy.url"] = os.getenv("DATABASE_URL", "sqlite:///./openmemory.db")
- connectable = engine_from_config(
- configuration,
- prefix="sqlalchemy.",
- poolclass=pool.NullPool,
- )
-
- with connectable.connect() as connection:
- context.configure(
- connection=connection, target_metadata=target_metadata
- )
-
- with context.begin_transaction():
- context.run_migrations()
-
-
-if context.is_offline_mode():
- run_migrations_offline()
-else:
- run_migrations_online()
diff --git a/openmemory/api/alembic/script.py.mako b/openmemory/api/alembic/script.py.mako
deleted file mode 100644
index 480b130d6..000000000
--- a/openmemory/api/alembic/script.py.mako
+++ /dev/null
@@ -1,28 +0,0 @@
-"""${message}
-
-Revision ID: ${up_revision}
-Revises: ${down_revision | comma,n}
-Create Date: ${create_date}
-
-"""
-from typing import Sequence, Union
-
-from alembic import op
-import sqlalchemy as sa
-${imports if imports else ""}
-
-# revision identifiers, used by Alembic.
-revision: str = ${repr(up_revision)}
-down_revision: Union[str, None] = ${repr(down_revision)}
-branch_labels: Union[str, Sequence[str], None] = ${repr(branch_labels)}
-depends_on: Union[str, Sequence[str], None] = ${repr(depends_on)}
-
-
-def upgrade() -> None:
- """Upgrade schema."""
- ${upgrades if upgrades else "pass"}
-
-
-def downgrade() -> None:
- """Downgrade schema."""
- ${downgrades if downgrades else "pass"}
diff --git a/openmemory/api/alembic/versions/0b53c747049a_initial_migration.py b/openmemory/api/alembic/versions/0b53c747049a_initial_migration.py
deleted file mode 100644
index 6bbfbccab..000000000
--- a/openmemory/api/alembic/versions/0b53c747049a_initial_migration.py
+++ /dev/null
@@ -1,225 +0,0 @@
-"""Initial migration
-
-Revision ID: 0b53c747049a
-Revises:
-Create Date: 2025-04-19 00:59:56.244203
-
-"""
-from typing import Sequence, Union
-
-import sqlalchemy as sa
-from alembic import op
-
-# revision identifiers, used by Alembic.
-revision: str = '0b53c747049a'
-down_revision: Union[str, None] = None
-branch_labels: Union[str, Sequence[str], None] = None
-depends_on: Union[str, Sequence[str], None] = None
-
-
-def upgrade() -> None:
- """Upgrade schema."""
- # ### commands auto generated by Alembic - please adjust! ###
- op.create_table('access_controls',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('subject_type', sa.String(), nullable=False),
- sa.Column('subject_id', sa.UUID(), nullable=True),
- sa.Column('object_type', sa.String(), nullable=False),
- sa.Column('object_id', sa.UUID(), nullable=True),
- sa.Column('effect', sa.String(), nullable=False),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index('idx_access_object', 'access_controls', ['object_type', 'object_id'], unique=False)
- op.create_index('idx_access_subject', 'access_controls', ['subject_type', 'subject_id'], unique=False)
- op.create_index(op.f('ix_access_controls_created_at'), 'access_controls', ['created_at'], unique=False)
- op.create_index(op.f('ix_access_controls_effect'), 'access_controls', ['effect'], unique=False)
- op.create_index(op.f('ix_access_controls_object_id'), 'access_controls', ['object_id'], unique=False)
- op.create_index(op.f('ix_access_controls_object_type'), 'access_controls', ['object_type'], unique=False)
- op.create_index(op.f('ix_access_controls_subject_id'), 'access_controls', ['subject_id'], unique=False)
- op.create_index(op.f('ix_access_controls_subject_type'), 'access_controls', ['subject_type'], unique=False)
- op.create_table('archive_policies',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('criteria_type', sa.String(), nullable=False),
- sa.Column('criteria_id', sa.UUID(), nullable=True),
- sa.Column('days_to_archive', sa.Integer(), nullable=False),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index('idx_policy_criteria', 'archive_policies', ['criteria_type', 'criteria_id'], unique=False)
- op.create_index(op.f('ix_archive_policies_created_at'), 'archive_policies', ['created_at'], unique=False)
- op.create_index(op.f('ix_archive_policies_criteria_id'), 'archive_policies', ['criteria_id'], unique=False)
- op.create_index(op.f('ix_archive_policies_criteria_type'), 'archive_policies', ['criteria_type'], unique=False)
- op.create_table('categories',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('name', sa.String(), nullable=False),
- sa.Column('description', sa.String(), nullable=True),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.Column('updated_at', sa.DateTime(), nullable=True),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index(op.f('ix_categories_created_at'), 'categories', ['created_at'], unique=False)
- op.create_index(op.f('ix_categories_name'), 'categories', ['name'], unique=True)
- op.create_table('users',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('user_id', sa.String(), nullable=False),
- sa.Column('name', sa.String(), nullable=True),
- sa.Column('email', sa.String(), nullable=True),
- sa.Column('metadata', sa.JSON(), nullable=True),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.Column('updated_at', sa.DateTime(), nullable=True),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index(op.f('ix_users_created_at'), 'users', ['created_at'], unique=False)
- op.create_index(op.f('ix_users_email'), 'users', ['email'], unique=True)
- op.create_index(op.f('ix_users_name'), 'users', ['name'], unique=False)
- op.create_index(op.f('ix_users_user_id'), 'users', ['user_id'], unique=True)
- op.create_table('apps',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('owner_id', sa.UUID(), nullable=False),
- sa.Column('name', sa.String(), nullable=False),
- sa.Column('description', sa.String(), nullable=True),
- sa.Column('metadata', sa.JSON(), nullable=True),
- sa.Column('is_active', sa.Boolean(), nullable=True),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.Column('updated_at', sa.DateTime(), nullable=True),
- sa.ForeignKeyConstraint(['owner_id'], ['users.id'], ),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index(op.f('ix_apps_created_at'), 'apps', ['created_at'], unique=False)
- op.create_index(op.f('ix_apps_is_active'), 'apps', ['is_active'], unique=False)
- op.create_index(op.f('ix_apps_name'), 'apps', ['name'], unique=True)
- op.create_index(op.f('ix_apps_owner_id'), 'apps', ['owner_id'], unique=False)
- op.create_table('memories',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('user_id', sa.UUID(), nullable=False),
- sa.Column('app_id', sa.UUID(), nullable=False),
- sa.Column('content', sa.String(), nullable=False),
- sa.Column('vector', sa.String(), nullable=True),
- sa.Column('metadata', sa.JSON(), nullable=True),
- sa.Column('state', sa.Enum('active', 'paused', 'archived', 'deleted', name='memorystate'), nullable=True),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.Column('updated_at', sa.DateTime(), nullable=True),
- sa.Column('archived_at', sa.DateTime(), nullable=True),
- sa.Column('deleted_at', sa.DateTime(), nullable=True),
- sa.ForeignKeyConstraint(['app_id'], ['apps.id'], ),
- sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index('idx_memory_app_state', 'memories', ['app_id', 'state'], unique=False)
- op.create_index('idx_memory_user_app', 'memories', ['user_id', 'app_id'], unique=False)
- op.create_index('idx_memory_user_state', 'memories', ['user_id', 'state'], unique=False)
- op.create_index(op.f('ix_memories_app_id'), 'memories', ['app_id'], unique=False)
- op.create_index(op.f('ix_memories_archived_at'), 'memories', ['archived_at'], unique=False)
- op.create_index(op.f('ix_memories_created_at'), 'memories', ['created_at'], unique=False)
- op.create_index(op.f('ix_memories_deleted_at'), 'memories', ['deleted_at'], unique=False)
- op.create_index(op.f('ix_memories_state'), 'memories', ['state'], unique=False)
- op.create_index(op.f('ix_memories_user_id'), 'memories', ['user_id'], unique=False)
- op.create_table('memory_access_logs',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('memory_id', sa.UUID(), nullable=False),
- sa.Column('app_id', sa.UUID(), nullable=False),
- sa.Column('accessed_at', sa.DateTime(), nullable=True),
- sa.Column('access_type', sa.String(), nullable=False),
- sa.Column('metadata', sa.JSON(), nullable=True),
- sa.ForeignKeyConstraint(['app_id'], ['apps.id'], ),
- sa.ForeignKeyConstraint(['memory_id'], ['memories.id'], ),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index('idx_access_app_time', 'memory_access_logs', ['app_id', 'accessed_at'], unique=False)
- op.create_index('idx_access_memory_time', 'memory_access_logs', ['memory_id', 'accessed_at'], unique=False)
- op.create_index(op.f('ix_memory_access_logs_access_type'), 'memory_access_logs', ['access_type'], unique=False)
- op.create_index(op.f('ix_memory_access_logs_accessed_at'), 'memory_access_logs', ['accessed_at'], unique=False)
- op.create_index(op.f('ix_memory_access_logs_app_id'), 'memory_access_logs', ['app_id'], unique=False)
- op.create_index(op.f('ix_memory_access_logs_memory_id'), 'memory_access_logs', ['memory_id'], unique=False)
- op.create_table('memory_categories',
- sa.Column('memory_id', sa.UUID(), nullable=False),
- sa.Column('category_id', sa.UUID(), nullable=False),
- sa.ForeignKeyConstraint(['category_id'], ['categories.id'], ),
- sa.ForeignKeyConstraint(['memory_id'], ['memories.id'], ),
- sa.PrimaryKeyConstraint('memory_id', 'category_id')
- )
- op.create_index('idx_memory_category', 'memory_categories', ['memory_id', 'category_id'], unique=False)
- op.create_index(op.f('ix_memory_categories_category_id'), 'memory_categories', ['category_id'], unique=False)
- op.create_index(op.f('ix_memory_categories_memory_id'), 'memory_categories', ['memory_id'], unique=False)
- op.create_table('memory_status_history',
- sa.Column('id', sa.UUID(), nullable=False),
- sa.Column('memory_id', sa.UUID(), nullable=False),
- sa.Column('changed_by', sa.UUID(), nullable=False),
- sa.Column('old_state', sa.Enum('active', 'paused', 'archived', 'deleted', name='memorystate'), nullable=False),
- sa.Column('new_state', sa.Enum('active', 'paused', 'archived', 'deleted', name='memorystate'), nullable=False),
- sa.Column('changed_at', sa.DateTime(), nullable=True),
- sa.ForeignKeyConstraint(['changed_by'], ['users.id'], ),
- sa.ForeignKeyConstraint(['memory_id'], ['memories.id'], ),
- sa.PrimaryKeyConstraint('id')
- )
- op.create_index('idx_history_memory_state', 'memory_status_history', ['memory_id', 'new_state'], unique=False)
- op.create_index('idx_history_user_time', 'memory_status_history', ['changed_by', 'changed_at'], unique=False)
- op.create_index(op.f('ix_memory_status_history_changed_at'), 'memory_status_history', ['changed_at'], unique=False)
- op.create_index(op.f('ix_memory_status_history_changed_by'), 'memory_status_history', ['changed_by'], unique=False)
- op.create_index(op.f('ix_memory_status_history_memory_id'), 'memory_status_history', ['memory_id'], unique=False)
- op.create_index(op.f('ix_memory_status_history_new_state'), 'memory_status_history', ['new_state'], unique=False)
- op.create_index(op.f('ix_memory_status_history_old_state'), 'memory_status_history', ['old_state'], unique=False)
- # ### end Alembic commands ###
-
-
-def downgrade() -> None:
- """Downgrade schema."""
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_index(op.f('ix_memory_status_history_old_state'), table_name='memory_status_history')
- op.drop_index(op.f('ix_memory_status_history_new_state'), table_name='memory_status_history')
- op.drop_index(op.f('ix_memory_status_history_memory_id'), table_name='memory_status_history')
- op.drop_index(op.f('ix_memory_status_history_changed_by'), table_name='memory_status_history')
- op.drop_index(op.f('ix_memory_status_history_changed_at'), table_name='memory_status_history')
- op.drop_index('idx_history_user_time', table_name='memory_status_history')
- op.drop_index('idx_history_memory_state', table_name='memory_status_history')
- op.drop_table('memory_status_history')
- op.drop_index(op.f('ix_memory_categories_memory_id'), table_name='memory_categories')
- op.drop_index(op.f('ix_memory_categories_category_id'), table_name='memory_categories')
- op.drop_index('idx_memory_category', table_name='memory_categories')
- op.drop_table('memory_categories')
- op.drop_index(op.f('ix_memory_access_logs_memory_id'), table_name='memory_access_logs')
- op.drop_index(op.f('ix_memory_access_logs_app_id'), table_name='memory_access_logs')
- op.drop_index(op.f('ix_memory_access_logs_accessed_at'), table_name='memory_access_logs')
- op.drop_index(op.f('ix_memory_access_logs_access_type'), table_name='memory_access_logs')
- op.drop_index('idx_access_memory_time', table_name='memory_access_logs')
- op.drop_index('idx_access_app_time', table_name='memory_access_logs')
- op.drop_table('memory_access_logs')
- op.drop_index(op.f('ix_memories_user_id'), table_name='memories')
- op.drop_index(op.f('ix_memories_state'), table_name='memories')
- op.drop_index(op.f('ix_memories_deleted_at'), table_name='memories')
- op.drop_index(op.f('ix_memories_created_at'), table_name='memories')
- op.drop_index(op.f('ix_memories_archived_at'), table_name='memories')
- op.drop_index(op.f('ix_memories_app_id'), table_name='memories')
- op.drop_index('idx_memory_user_state', table_name='memories')
- op.drop_index('idx_memory_user_app', table_name='memories')
- op.drop_index('idx_memory_app_state', table_name='memories')
- op.drop_table('memories')
- op.drop_index(op.f('ix_apps_owner_id'), table_name='apps')
- op.drop_index(op.f('ix_apps_name'), table_name='apps')
- op.drop_index(op.f('ix_apps_is_active'), table_name='apps')
- op.drop_index(op.f('ix_apps_created_at'), table_name='apps')
- op.drop_table('apps')
- op.drop_index(op.f('ix_users_user_id'), table_name='users')
- op.drop_index(op.f('ix_users_name'), table_name='users')
- op.drop_index(op.f('ix_users_email'), table_name='users')
- op.drop_index(op.f('ix_users_created_at'), table_name='users')
- op.drop_table('users')
- op.drop_index(op.f('ix_categories_name'), table_name='categories')
- op.drop_index(op.f('ix_categories_created_at'), table_name='categories')
- op.drop_table('categories')
- op.drop_index(op.f('ix_archive_policies_criteria_type'), table_name='archive_policies')
- op.drop_index(op.f('ix_archive_policies_criteria_id'), table_name='archive_policies')
- op.drop_index(op.f('ix_archive_policies_created_at'), table_name='archive_policies')
- op.drop_index('idx_policy_criteria', table_name='archive_policies')
- op.drop_table('archive_policies')
- op.drop_index(op.f('ix_access_controls_subject_type'), table_name='access_controls')
- op.drop_index(op.f('ix_access_controls_subject_id'), table_name='access_controls')
- op.drop_index(op.f('ix_access_controls_object_type'), table_name='access_controls')
- op.drop_index(op.f('ix_access_controls_object_id'), table_name='access_controls')
- op.drop_index(op.f('ix_access_controls_effect'), table_name='access_controls')
- op.drop_index(op.f('ix_access_controls_created_at'), table_name='access_controls')
- op.drop_index('idx_access_subject', table_name='access_controls')
- op.drop_index('idx_access_object', table_name='access_controls')
- op.drop_table('access_controls')
- # ### end Alembic commands ###
diff --git a/openmemory/api/alembic/versions/add_config_table.py b/openmemory/api/alembic/versions/add_config_table.py
deleted file mode 100644
index b53488f9b..000000000
--- a/openmemory/api/alembic/versions/add_config_table.py
+++ /dev/null
@@ -1,40 +0,0 @@
-"""add_config_table
-
-Revision ID: add_config_table
-Revises: 0b53c747049a
-Create Date: 2023-06-01 10:00:00.000000
-
-"""
-import uuid
-
-import sqlalchemy as sa
-from alembic import op
-
-# revision identifiers, used by Alembic.
-revision = 'add_config_table'
-down_revision = '0b53c747049a'
-branch_labels = None
-depends_on = None
-
-
-def upgrade():
- # Create configs table if it doesn't exist
- op.create_table(
- 'configs',
- sa.Column('id', sa.UUID(), nullable=False, default=lambda: uuid.uuid4()),
- sa.Column('key', sa.String(), nullable=False),
- sa.Column('value', sa.JSON(), nullable=False),
- sa.Column('created_at', sa.DateTime(), nullable=True),
- sa.Column('updated_at', sa.DateTime(), nullable=True),
- sa.PrimaryKeyConstraint('id'),
- sa.UniqueConstraint('key')
- )
-
- # Create index for key lookups
- op.create_index('idx_configs_key', 'configs', ['key'])
-
-
-def downgrade():
- # Drop the configs table
- op.drop_index('idx_configs_key', 'configs')
- op.drop_table('configs')
\ No newline at end of file
diff --git a/openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py b/openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py
deleted file mode 100644
index bec325c3b..000000000
--- a/openmemory/api/alembic/versions/afd00efbd06b_add_unique_user_id_constraints.py
+++ /dev/null
@@ -1,34 +0,0 @@
-"""remove_global_unique_constraint_on_app_name_add_composite_unique
-
-Revision ID: afd00efbd06b
-Revises: add_config_table
-Create Date: 2025-06-04 01:59:41.637440
-
-"""
-from typing import Sequence, Union
-
-from alembic import op
-
-# revision identifiers, used by Alembic.
-revision: str = 'afd00efbd06b'
-down_revision: Union[str, None] = 'add_config_table'
-branch_labels: Union[str, Sequence[str], None] = None
-depends_on: Union[str, Sequence[str], None] = None
-
-
-def upgrade() -> None:
- """Upgrade schema."""
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_index('ix_apps_name', table_name='apps')
- op.create_index(op.f('ix_apps_name'), 'apps', ['name'], unique=False)
- op.create_index('idx_app_owner_name', 'apps', ['owner_id', 'name'], unique=True)
- # ### end Alembic commands ###
-
-
-def downgrade() -> None:
- """Downgrade schema."""
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_index('idx_app_owner_name', table_name='apps')
- op.drop_index(op.f('ix_apps_name'), table_name='apps')
- op.create_index('ix_apps_name', 'apps', ['name'], unique=True)
- # ### end Alembic commands ###
\ No newline at end of file
diff --git a/openmemory/api/app/__init__.py b/openmemory/api/app/__init__.py
deleted file mode 100644
index 4c4d1566e..000000000
--- a/openmemory/api/app/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-# This file makes the app directory a Python package
\ No newline at end of file
diff --git a/openmemory/api/app/config.py b/openmemory/api/app/config.py
deleted file mode 100644
index 5da454235..000000000
--- a/openmemory/api/app/config.py
+++ /dev/null
@@ -1,4 +0,0 @@
-import os
-
-USER_ID = os.getenv("USER", "default_user")
-DEFAULT_APP_ID = "openmemory"
\ No newline at end of file
diff --git a/openmemory/api/app/database.py b/openmemory/api/app/database.py
deleted file mode 100644
index 4ab4eaaa5..000000000
--- a/openmemory/api/app/database.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import os
-
-from dotenv import load_dotenv
-from sqlalchemy import create_engine
-from sqlalchemy.orm import declarative_base, sessionmaker
-
-# load .env file (make sure you have DATABASE_URL set)
-load_dotenv()
-
-DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./openmemory.db")
-if not DATABASE_URL:
- raise RuntimeError("DATABASE_URL is not set in environment")
-
-# SQLAlchemy engine & session
-engine = create_engine(
- DATABASE_URL,
- connect_args={"check_same_thread": False} # Needed for SQLite
-)
-SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
-
-# Base class for models
-Base = declarative_base()
-
-# Dependency for FastAPI
-def get_db():
- db = SessionLocal()
- try:
- yield db
- finally:
- db.close()
diff --git a/openmemory/api/app/mcp_server.py b/openmemory/api/app/mcp_server.py
deleted file mode 100644
index 70aa523c4..000000000
--- a/openmemory/api/app/mcp_server.py
+++ /dev/null
@@ -1,574 +0,0 @@
-"""
-MCP Server for OpenMemory with resilient memory client handling.
-
-This module implements an MCP (Model Context Protocol) server that provides
-memory operations for OpenMemory. The memory client is initialized lazily
-to prevent server crashes when external dependencies (like Ollama) are
-unavailable. If the memory client cannot be initialized, the server will
-continue running with limited functionality and appropriate error messages.
-
-Key features:
-- Lazy memory client initialization
-- Graceful error handling for unavailable dependencies
-- Fallback to database-only mode when vector store is unavailable
-- Proper logging for debugging connection issues
-- Environment variable parsing for API keys
-"""
-
-import contextvars
-import datetime
-import json
-import logging
-import uuid
-
-import anyio
-
-from app.database import SessionLocal
-from app.models import Memory, MemoryAccessLog, MemoryState, MemoryStatusHistory
-from app.utils.db import get_user_and_app
-from app.utils.memory import get_memory_client
-from app.utils.permissions import check_memory_access_permissions
-from dotenv import load_dotenv
-from fastapi import FastAPI, Request
-from fastapi.routing import APIRouter
-from mcp.server.fastmcp import FastMCP
-from mcp.server.sse import SseServerTransport
-from mcp.server.streamable_http import StreamableHTTPServerTransport
-from starlette.responses import Response
-
-# Load environment variables
-load_dotenv()
-
-# Initialize MCP
-mcp = FastMCP("mem0-mcp-server")
-
-# Don't initialize memory client at import time - do it lazily when needed
-def get_memory_client_safe():
- """Get memory client with error handling. Returns None if client cannot be initialized."""
- try:
- return get_memory_client()
- except Exception as e:
- logging.warning(f"Failed to get memory client: {e}")
- return None
-
-# Context variables for user_id and client_name
-user_id_var: contextvars.ContextVar[str] = contextvars.ContextVar("user_id")
-client_name_var: contextvars.ContextVar[str] = contextvars.ContextVar("client_name")
-
-# Create a router for MCP endpoints
-mcp_router = APIRouter(prefix="/mcp")
-
-# Initialize SSE transport
-sse = SseServerTransport("/mcp/messages/")
-
[email protected](description="Add a new memory. This method is called everytime the user informs anything about themselves, their preferences, or anything that has any relevant information which can be useful in the future conversation. This can also be called when the user asks you to remember something. Set infer to False to store the memory verbatim without LLM fact extraction.")
-async def add_memories(text: str, infer: bool = True) -> str:
- uid = user_id_var.get(None)
- client_name = client_name_var.get(None)
-
- if not uid:
- return "Error: user_id not provided"
- if not client_name:
- return "Error: client_name not provided"
-
- # Get memory client safely
- memory_client = get_memory_client_safe()
- if not memory_client:
- return "Error: Memory system is currently unavailable. Please try again later."
-
- try:
- db = SessionLocal()
- try:
- # Get or create user and app
- user, app = get_user_and_app(db, user_id=uid, app_id=client_name)
-
- # Check if app is active
- if not app.is_active:
- return f"Error: App {app.name} is currently paused on OpenMemory. Cannot create new memories."
-
- response = memory_client.add(text,
- user_id=uid,
- metadata={
- "source_app": "openmemory",
- "mcp_client": client_name,
- },
- infer=infer)
-
- # Process the response and update database
- if isinstance(response, dict) and 'results' in response:
- for result in response['results']:
- memory_id = uuid.UUID(result['id'])
- memory = db.query(Memory).filter(Memory.id == memory_id).first()
-
- if result['event'] == 'ADD':
- if not memory:
- memory = Memory(
- id=memory_id,
- user_id=user.id,
- app_id=app.id,
- content=result['memory'],
- state=MemoryState.active
- )
- db.add(memory)
- else:
- memory.state = MemoryState.active
- memory.content = result['memory']
-
- # Create history entry
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user.id,
- old_state=MemoryState.deleted if memory else None,
- new_state=MemoryState.active
- )
- db.add(history)
-
- elif result['event'] == 'DELETE':
- if memory:
- memory.state = MemoryState.deleted
- memory.deleted_at = datetime.datetime.now(datetime.UTC)
- # Create history entry
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user.id,
- old_state=MemoryState.active,
- new_state=MemoryState.deleted
- )
- db.add(history)
-
- db.commit()
-
- return json.dumps(response)
- finally:
- db.close()
- except Exception as e:
- logging.exception(f"Error adding to memory: {e}")
- return f"Error adding to memory: {e}"
-
-
[email protected](description="Search through stored memories. This method is called EVERYTIME the user asks anything.")
-async def search_memory(query: str) -> str:
- uid = user_id_var.get(None)
- client_name = client_name_var.get(None)
- if not uid:
- return "Error: user_id not provided"
- if not client_name:
- return "Error: client_name not provided"
-
- # Get memory client safely
- memory_client = get_memory_client_safe()
- if not memory_client:
- return "Error: Memory system is currently unavailable. Please try again later."
-
- try:
- db = SessionLocal()
- try:
- # Get or create user and app
- user, app = get_user_and_app(db, user_id=uid, app_id=client_name)
-
- # Get accessible memory IDs based on ACL
- user_memories = db.query(Memory).filter(Memory.user_id == user.id).all()
- accessible_memory_ids = [memory.id for memory in user_memories if check_memory_access_permissions(db, memory, app.id)]
-
- filters = {
- "user_id": uid
- }
-
- embeddings = memory_client.embedding_model.embed(query, "search")
-
- hits = memory_client.vector_store.search(
- query=query,
- vectors=embeddings,
- limit=10,
- filters=filters,
- )
-
- allowed = set(str(mid) for mid in accessible_memory_ids) if accessible_memory_ids else None
-
- results = []
- for h in hits:
- # All vector db search functions return OutputData class
- id, score, payload = h.id, h.score, h.payload
- if allowed and (h.id is None or h.id not in allowed):
- continue
-
- results.append({
- "id": id,
- "memory": payload.get("data"),
- "hash": payload.get("hash"),
- "created_at": payload.get("created_at"),
- "updated_at": payload.get("updated_at"),
- "score": score,
- })
-
- for r in results:
- if r.get("id"):
- access_log = MemoryAccessLog(
- memory_id=uuid.UUID(r["id"]),
- app_id=app.id,
- access_type="search",
- metadata_={
- "query": query,
- "score": r.get("score"),
- "hash": r.get("hash"),
- },
- )
- db.add(access_log)
- db.commit()
-
- return json.dumps({"results": results}, indent=2)
- finally:
- db.close()
- except Exception as e:
- logging.exception(e)
- return f"Error searching memory: {e}"
-
-
[email protected](description="List all memories in the user's memory")
-async def list_memories() -> str:
- uid = user_id_var.get(None)
- client_name = client_name_var.get(None)
- if not uid:
- return "Error: user_id not provided"
- if not client_name:
- return "Error: client_name not provided"
-
- # Get memory client safely
- memory_client = get_memory_client_safe()
- if not memory_client:
- return "Error: Memory system is currently unavailable. Please try again later."
-
- try:
- db = SessionLocal()
- try:
- # Get or create user and app
- user, app = get_user_and_app(db, user_id=uid, app_id=client_name)
-
- # Get all memories
- memories = memory_client.get_all(user_id=uid)
- filtered_memories = []
-
- # Filter memories based on permissions
- user_memories = db.query(Memory).filter(Memory.user_id == user.id).all()
- accessible_memory_ids = [memory.id for memory in user_memories if check_memory_access_permissions(db, memory, app.id)]
- if isinstance(memories, dict) and 'results' in memories:
- for memory_data in memories['results']:
- if 'id' in memory_data:
- memory_id = uuid.UUID(memory_data['id'])
- if memory_id in accessible_memory_ids:
- # Create access log entry
- access_log = MemoryAccessLog(
- memory_id=memory_id,
- app_id=app.id,
- access_type="list",
- metadata_={
- "hash": memory_data.get('hash')
- }
- )
- db.add(access_log)
- filtered_memories.append(memory_data)
- db.commit()
- else:
- for memory in memories:
- memory_id = uuid.UUID(memory['id'])
- memory_obj = db.query(Memory).filter(Memory.id == memory_id).first()
- if memory_obj and check_memory_access_permissions(db, memory_obj, app.id):
- # Create access log entry
- access_log = MemoryAccessLog(
- memory_id=memory_id,
- app_id=app.id,
- access_type="list",
- metadata_={
- "hash": memory.get('hash')
- }
- )
- db.add(access_log)
- filtered_memories.append(memory)
- db.commit()
- return json.dumps(filtered_memories, indent=2)
- finally:
- db.close()
- except Exception as e:
- logging.exception(f"Error getting memories: {e}")
- return f"Error getting memories: {e}"
-
-
[email protected](description="Delete specific memories by their IDs")
-async def delete_memories(memory_ids: list[str]) -> str:
- uid = user_id_var.get(None)
- client_name = client_name_var.get(None)
- if not uid:
- return "Error: user_id not provided"
- if not client_name:
- return "Error: client_name not provided"
-
- # Get memory client safely
- memory_client = get_memory_client_safe()
- if not memory_client:
- return "Error: Memory system is currently unavailable. Please try again later."
-
- try:
- db = SessionLocal()
- try:
- # Get or create user and app
- user, app = get_user_and_app(db, user_id=uid, app_id=client_name)
-
- # Convert string IDs to UUIDs and filter accessible ones
- requested_ids = [uuid.UUID(mid) for mid in memory_ids]
- user_memories = db.query(Memory).filter(Memory.user_id == user.id).all()
- accessible_memory_ids = [memory.id for memory in user_memories if check_memory_access_permissions(db, memory, app.id)]
-
- # Only delete memories that are both requested and accessible
- ids_to_delete = [mid for mid in requested_ids if mid in accessible_memory_ids]
-
- if not ids_to_delete:
- return "Error: No accessible memories found with provided IDs"
-
- # Delete from vector store
- for memory_id in ids_to_delete:
- try:
- memory_client.delete(str(memory_id))
- except Exception as delete_error:
- logging.warning(f"Failed to delete memory {memory_id} from vector store: {delete_error}")
-
- # Update each memory's state and create history entries
- now = datetime.datetime.now(datetime.UTC)
- for memory_id in ids_to_delete:
- memory = db.query(Memory).filter(Memory.id == memory_id).first()
- if memory:
- # Update memory state
- memory.state = MemoryState.deleted
- memory.deleted_at = now
-
- # Create history entry
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user.id,
- old_state=MemoryState.active,
- new_state=MemoryState.deleted
- )
- db.add(history)
-
- # Create access log entry
- access_log = MemoryAccessLog(
- memory_id=memory_id,
- app_id=app.id,
- access_type="delete",
- metadata_={"operation": "delete_by_id"}
- )
- db.add(access_log)
-
- db.commit()
- return f"Successfully deleted {len(ids_to_delete)} memories"
- finally:
- db.close()
- except Exception as e:
- logging.exception(f"Error deleting memories: {e}")
- return f"Error deleting memories: {e}"
-
-
[email protected](description="Delete all memories in the user's memory")
-async def delete_all_memories() -> str:
- uid = user_id_var.get(None)
- client_name = client_name_var.get(None)
- if not uid:
- return "Error: user_id not provided"
- if not client_name:
- return "Error: client_name not provided"
-
- # Get memory client safely
- memory_client = get_memory_client_safe()
- if not memory_client:
- return "Error: Memory system is currently unavailable. Please try again later."
-
- try:
- db = SessionLocal()
- try:
- # Get or create user and app
- user, app = get_user_and_app(db, user_id=uid, app_id=client_name)
-
- user_memories = db.query(Memory).filter(Memory.user_id == user.id).all()
- accessible_memory_ids = [memory.id for memory in user_memories if check_memory_access_permissions(db, memory, app.id)]
-
- # delete the accessible memories only
- for memory_id in accessible_memory_ids:
- try:
- memory_client.delete(str(memory_id))
- except Exception as delete_error:
- logging.warning(f"Failed to delete memory {memory_id} from vector store: {delete_error}")
-
- # Update each memory's state and create history entries
- now = datetime.datetime.now(datetime.UTC)
- for memory_id in accessible_memory_ids:
- memory = db.query(Memory).filter(Memory.id == memory_id).first()
- # Update memory state
- memory.state = MemoryState.deleted
- memory.deleted_at = now
-
- # Create history entry
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user.id,
- old_state=MemoryState.active,
- new_state=MemoryState.deleted
- )
- db.add(history)
-
- # Create access log entry
- access_log = MemoryAccessLog(
- memory_id=memory_id,
- app_id=app.id,
- access_type="delete_all",
- metadata_={"operation": "bulk_delete"}
- )
- db.add(access_log)
-
- db.commit()
- return "Successfully deleted all memories"
- finally:
- db.close()
- except Exception as e:
- logging.exception(f"Error deleting memories: {e}")
- return f"Error deleting memories: {e}"
-
-
-@mcp_router.get("/{client_name}/sse/{user_id}")
-async def handle_sse(request: Request):
- """Handle SSE connections for a specific user and client"""
- # Extract user_id and client_name from path parameters
- uid = request.path_params.get("user_id")
- user_token = user_id_var.set(uid or "")
- client_name = request.path_params.get("client_name")
- client_token = client_name_var.set(client_name or "")
-
- try:
- # NOTE: request._send is the raw ASGI `send` callable. Starlette does not
- # expose it publicly, but the MCP SDK transports require the raw ASGI
- # interface (scope, receive, send). This is the standard pattern from the
- # MCP Python SDK examples.
- async with sse.connect_sse(
- request.scope,
- request.receive,
- request._send,
- ) as (read_stream, write_stream):
- await mcp._mcp_server.run(
- read_stream,
- write_stream,
- mcp._mcp_server.create_initialization_options(),
- )
- finally:
- # Clean up context variables
- user_id_var.reset(user_token)
- client_name_var.reset(client_token)
-
-
-@mcp_router.post("/messages/")
-async def handle_get_message(request: Request):
- return await handle_post_message(request)
-
-
-@mcp_router.post("/{client_name}/sse/{user_id}/messages/")
-async def handle_post_message(request: Request):
- return await handle_post_message(request)
-
-async def handle_post_message(request: Request):
- """Handle POST messages for SSE"""
- try:
- body = await request.body()
-
- # Create a simple receive function that returns the body
- async def receive():
- return {"type": "http.request", "body": body, "more_body": False}
-
- # Create a simple send function that does nothing
- async def send(message):
- return {}
-
- # Call handle_post_message with the correct arguments
- await sse.handle_post_message(request.scope, receive, send)
-
- # Return a success response
- return {"status": "ok"}
- finally:
- pass
-
-
-@mcp_router.api_route("/{client_name}/http/{user_id}", methods=["POST", "GET", "DELETE"])
-async def handle_streamable_http(request: Request):
- """Handle Streamable HTTP connections for a specific user and client.
-
- Uses the Streamable HTTP transport (MCP spec 2025-03-26+) which replaces
- the deprecated SSE transport. Runs in stateless mode β€” each request is
- handled independently with no persistent session.
-
- The transport writes its response directly to the ASGI ``send`` callable.
- We intercept it via ``capture_send`` so we can return a proper ``Response``
- to FastAPI β€” otherwise FastAPI would also try to send its own response,
- causing a "double-response" bug.
- """
- uid = request.path_params.get("user_id")
- user_token = user_id_var.set(uid or "")
- client_name = request.path_params.get("client_name")
- client_token = client_name_var.set(client_name or "")
-
- # Intercept the ASGI messages the transport sends so we can return them
- # as a single Response to FastAPI. Without this, FastAPI would attempt to
- # write its own response after the transport already wrote one.
- response_started = False
- response_status = 200
- response_headers: list[tuple[bytes, bytes]] = []
- response_body = bytearray()
-
- async def capture_send(message):
- nonlocal response_started, response_status
- if message["type"] == "http.response.start":
- response_started = True
- response_status = message["status"]
- response_headers.extend(message.get("headers", []))
- elif message["type"] == "http.response.body":
- response_body.extend(message.get("body", b""))
-
- try:
- transport = StreamableHTTPServerTransport(
- mcp_session_id=None,
- is_json_response_enabled=True,
- )
-
- async with anyio.create_task_group() as tg:
-
- async def run_server(*, task_status=anyio.TASK_STATUS_IGNORED):
- async with transport.connect() as (read_stream, write_stream):
- task_status.started()
- await mcp._mcp_server.run(
- read_stream,
- write_stream,
- mcp._mcp_server.create_initialization_options(),
- stateless=True,
- )
-
- await tg.start(run_server)
- await transport.handle_request(request.scope, request.receive, capture_send)
- await transport.terminate()
- tg.cancel_scope.cancel()
- finally:
- user_id_var.reset(user_token)
- client_name_var.reset(client_token)
-
- if not response_started:
- return Response(status_code=500, content=b"Transport did not produce a response")
-
- # Header dict conversion is safe here: the MCP transport in stateless JSON
- # mode only emits single-valued headers (Content-Type, Content-Length).
- return Response(
- content=bytes(response_body),
- status_code=response_status,
- headers={k.decode(): v.decode() for k, v in response_headers},
- )
-
-
-def setup_mcp_server(app: FastAPI):
- """Setup MCP server with the FastAPI application"""
- mcp._mcp_server.name = "mem0-mcp-server"
-
- # Include MCP router in the FastAPI app
- app.include_router(mcp_router)
diff --git a/openmemory/api/app/models.py b/openmemory/api/app/models.py
deleted file mode 100644
index 66541013b..000000000
--- a/openmemory/api/app/models.py
+++ /dev/null
@@ -1,243 +0,0 @@
-import datetime
-import enum
-import uuid
-
-import sqlalchemy as sa
-from app.database import Base
-from app.utils.categorization import get_categories_for_memory
-from sqlalchemy import (
- JSON,
- UUID,
- Boolean,
- Column,
- DateTime,
- Enum,
- ForeignKey,
- Index,
- Integer,
- String,
- Table,
- event,
-)
-from sqlalchemy.orm import Session, relationship
-
-
-def get_current_utc_time():
- """Get current UTC time"""
- return datetime.datetime.now(datetime.UTC)
-
-
-class MemoryState(enum.Enum):
- active = "active"
- paused = "paused"
- archived = "archived"
- deleted = "deleted"
-
-
-class User(Base):
- __tablename__ = "users"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- user_id = Column(String, nullable=False, unique=True, index=True)
- name = Column(String, nullable=True, index=True)
- email = Column(String, unique=True, nullable=True, index=True)
- metadata_ = Column('metadata', JSON, default=dict)
- created_at = Column(DateTime, default=get_current_utc_time, index=True)
- updated_at = Column(DateTime,
- default=get_current_utc_time,
- onupdate=get_current_utc_time)
-
- apps = relationship("App", back_populates="owner")
- memories = relationship("Memory", back_populates="user")
-
-
-class App(Base):
- __tablename__ = "apps"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- owner_id = Column(UUID, ForeignKey("users.id"), nullable=False, index=True)
- name = Column(String, nullable=False, index=True)
- description = Column(String)
- metadata_ = Column('metadata', JSON, default=dict)
- is_active = Column(Boolean, default=True, index=True)
- created_at = Column(DateTime, default=get_current_utc_time, index=True)
- updated_at = Column(DateTime,
- default=get_current_utc_time,
- onupdate=get_current_utc_time)
-
- owner = relationship("User", back_populates="apps")
- memories = relationship("Memory", back_populates="app")
-
- __table_args__ = (
- sa.UniqueConstraint('owner_id', 'name', name='idx_app_owner_name'),
- )
-
-
-class Config(Base):
- __tablename__ = "configs"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- key = Column(String, unique=True, nullable=False, index=True)
- value = Column(JSON, nullable=False)
- created_at = Column(DateTime, default=get_current_utc_time)
- updated_at = Column(DateTime,
- default=get_current_utc_time,
- onupdate=get_current_utc_time)
-
-
-class Memory(Base):
- __tablename__ = "memories"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- user_id = Column(UUID, ForeignKey("users.id"), nullable=False, index=True)
- app_id = Column(UUID, ForeignKey("apps.id"), nullable=False, index=True)
- content = Column(String, nullable=False)
- vector = Column(String)
- metadata_ = Column('metadata', JSON, default=dict)
- state = Column(Enum(MemoryState), default=MemoryState.active, index=True)
- created_at = Column(DateTime, default=get_current_utc_time, index=True)
- updated_at = Column(DateTime,
- default=get_current_utc_time,
- onupdate=get_current_utc_time)
- archived_at = Column(DateTime, nullable=True, index=True)
- deleted_at = Column(DateTime, nullable=True, index=True)
-
- user = relationship("User", back_populates="memories")
- app = relationship("App", back_populates="memories")
- categories = relationship("Category", secondary="memory_categories", back_populates="memories")
-
- __table_args__ = (
- Index('idx_memory_user_state', 'user_id', 'state'),
- Index('idx_memory_app_state', 'app_id', 'state'),
- Index('idx_memory_user_app', 'user_id', 'app_id'),
- )
-
-
-class Category(Base):
- __tablename__ = "categories"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- name = Column(String, unique=True, nullable=False, index=True)
- description = Column(String)
- created_at = Column(DateTime, default=datetime.datetime.now(datetime.UTC), index=True)
- updated_at = Column(DateTime,
- default=get_current_utc_time,
- onupdate=get_current_utc_time)
-
- memories = relationship("Memory", secondary="memory_categories", back_populates="categories")
-
-memory_categories = Table(
- "memory_categories", Base.metadata,
- Column("memory_id", UUID, ForeignKey("memories.id"), primary_key=True, index=True),
- Column("category_id", UUID, ForeignKey("categories.id"), primary_key=True, index=True),
- Index('idx_memory_category', 'memory_id', 'category_id')
-)
-
-
-class AccessControl(Base):
- __tablename__ = "access_controls"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- subject_type = Column(String, nullable=False, index=True)
- subject_id = Column(UUID, nullable=True, index=True)
- object_type = Column(String, nullable=False, index=True)
- object_id = Column(UUID, nullable=True, index=True)
- effect = Column(String, nullable=False, index=True)
- created_at = Column(DateTime, default=get_current_utc_time, index=True)
-
- __table_args__ = (
- Index('idx_access_subject', 'subject_type', 'subject_id'),
- Index('idx_access_object', 'object_type', 'object_id'),
- )
-
-
-class ArchivePolicy(Base):
- __tablename__ = "archive_policies"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- criteria_type = Column(String, nullable=False, index=True)
- criteria_id = Column(UUID, nullable=True, index=True)
- days_to_archive = Column(Integer, nullable=False)
- created_at = Column(DateTime, default=get_current_utc_time, index=True)
-
- __table_args__ = (
- Index('idx_policy_criteria', 'criteria_type', 'criteria_id'),
- )
-
-
-class MemoryStatusHistory(Base):
- __tablename__ = "memory_status_history"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- memory_id = Column(UUID, ForeignKey("memories.id"), nullable=False, index=True)
- changed_by = Column(UUID, ForeignKey("users.id"), nullable=False, index=True)
- old_state = Column(Enum(MemoryState), nullable=False, index=True)
- new_state = Column(Enum(MemoryState), nullable=False, index=True)
- changed_at = Column(DateTime, default=get_current_utc_time, index=True)
-
- __table_args__ = (
- Index('idx_history_memory_state', 'memory_id', 'new_state'),
- Index('idx_history_user_time', 'changed_by', 'changed_at'),
- )
-
-
-class MemoryAccessLog(Base):
- __tablename__ = "memory_access_logs"
- id = Column(UUID, primary_key=True, default=lambda: uuid.uuid4())
- memory_id = Column(UUID, ForeignKey("memories.id"), nullable=False, index=True)
- app_id = Column(UUID, ForeignKey("apps.id"), nullable=False, index=True)
- accessed_at = Column(DateTime, default=get_current_utc_time, index=True)
- access_type = Column(String, nullable=False, index=True)
- metadata_ = Column('metadata', JSON, default=dict)
-
- __table_args__ = (
- Index('idx_access_memory_time', 'memory_id', 'accessed_at'),
- Index('idx_access_app_time', 'app_id', 'accessed_at'),
- )
-
-def categorize_memory(memory: Memory, db: Session) -> None:
- """Categorize a memory using OpenAI and store the categories in the database."""
- try:
- # Get categories from OpenAI
- categories = get_categories_for_memory(memory.content)
-
- # Get or create categories in the database
- for category_name in categories:
- category = db.query(Category).filter(Category.name == category_name).first()
- if not category:
- category = Category(
- name=category_name,
- description=f"Automatically created category for {category_name}"
- )
- db.add(category)
- db.flush() # Flush to get the category ID
-
- # Check if the memory-category association already exists
- existing = db.execute(
- memory_categories.select().where(
- (memory_categories.c.memory_id == memory.id) &
- (memory_categories.c.category_id == category.id)
- )
- ).first()
-
- if not existing:
- # Create the association
- db.execute(
- memory_categories.insert().values(
- memory_id=memory.id,
- category_id=category.id
- )
- )
-
- db.commit()
- except Exception as e:
- db.rollback()
- print(f"Error categorizing memory: {e}")
-
-
[email protected]_for(Memory, 'after_insert')
-def after_memory_insert(mapper, connection, target):
- """Trigger categorization after a memory is inserted."""
- db = Session(bind=connection)
- categorize_memory(target, db)
- db.close()
-
-
[email protected]_for(Memory, 'after_update')
-def after_memory_update(mapper, connection, target):
- """Trigger categorization after a memory is updated."""
- db = Session(bind=connection)
- categorize_memory(target, db)
- db.close()
diff --git a/openmemory/api/app/routers/__init__.py b/openmemory/api/app/routers/__init__.py
deleted file mode 100644
index 8454f81e3..000000000
--- a/openmemory/api/app/routers/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from .apps import router as apps_router
-from .backup import router as backup_router
-from .config import router as config_router
-from .memories import router as memories_router
-from .stats import router as stats_router
-
-__all__ = ["memories_router", "apps_router", "stats_router", "config_router", "backup_router"]
diff --git a/openmemory/api/app/routers/apps.py b/openmemory/api/app/routers/apps.py
deleted file mode 100644
index 97f0dc898..000000000
--- a/openmemory/api/app/routers/apps.py
+++ /dev/null
@@ -1,223 +0,0 @@
-from typing import Optional
-from uuid import UUID
-
-from app.database import get_db
-from app.models import App, Memory, MemoryAccessLog, MemoryState
-from fastapi import APIRouter, Depends, HTTPException, Query
-from sqlalchemy import desc, func
-from sqlalchemy.orm import Session, joinedload
-
-router = APIRouter(prefix="/api/v1/apps", tags=["apps"])
-
-# Helper functions
-def get_app_or_404(db: Session, app_id: UUID) -> App:
- app = db.query(App).filter(App.id == app_id).first()
- if not app:
- raise HTTPException(status_code=404, detail="App not found")
- return app
-
-# List all apps with filtering
-async def list_apps(
- name: Optional[str] = None,
- is_active: Optional[bool] = None,
- sort_by: str = 'name',
- sort_direction: str = 'asc',
- page: int = Query(1, ge=1),
- page_size: int = Query(10, ge=1, le=100),
- db: Session = Depends(get_db)
-):
- # Create a subquery for memory counts
- memory_counts = db.query(
- Memory.app_id,
- func.count(Memory.id).label('memory_count')
- ).filter(
- Memory.state.in_([MemoryState.active, MemoryState.paused, MemoryState.archived])
- ).group_by(Memory.app_id).subquery()
-
- # Create a subquery for access counts
- access_counts = db.query(
- MemoryAccessLog.app_id,
- func.count(func.distinct(MemoryAccessLog.memory_id)).label('access_count')
- ).group_by(MemoryAccessLog.app_id).subquery()
-
- # Base query
- query = db.query(
- App,
- func.coalesce(memory_counts.c.memory_count, 0).label('total_memories_created'),
- func.coalesce(access_counts.c.access_count, 0).label('total_memories_accessed')
- )
-
- # Join with subqueries
- query = query.outerjoin(
- memory_counts,
- App.id == memory_counts.c.app_id
- ).outerjoin(
- access_counts,
- App.id == access_counts.c.app_id
- )
-
- if name:
- query = query.filter(App.name.ilike(f"%{name}%"))
-
- if is_active is not None:
- query = query.filter(App.is_active == is_active)
-
- # Apply sorting
- if sort_by == 'name':
- sort_field = App.name
- elif sort_by == 'memories':
- sort_field = func.coalesce(memory_counts.c.memory_count, 0)
- elif sort_by == 'memories_accessed':
- sort_field = func.coalesce(access_counts.c.access_count, 0)
- else:
- sort_field = App.name # default sort
-
- if sort_direction == 'desc':
- query = query.order_by(desc(sort_field))
- else:
- query = query.order_by(sort_field)
-
- total = query.count()
- apps = query.offset((page - 1) * page_size).limit(page_size).all()
-
- return {
- "total": total,
- "page": page,
- "page_size": page_size,
- "apps": [
- {
- "id": app[0].id,
- "name": app[0].name,
- "is_active": app[0].is_active,
- "total_memories_created": app[1],
- "total_memories_accessed": app[2]
- }
- for app in apps
- ]
- }
-
-# Get app details
[email protected]("/{app_id}")
-async def get_app_details(
- app_id: UUID,
- db: Session = Depends(get_db)
-):
- app = get_app_or_404(db, app_id)
-
- # Get memory access statistics
- access_stats = db.query(
- func.count(MemoryAccessLog.id).label("total_memories_accessed"),
- func.min(MemoryAccessLog.accessed_at).label("first_accessed"),
- func.max(MemoryAccessLog.accessed_at).label("last_accessed")
- ).filter(MemoryAccessLog.app_id == app_id).first()
-
- return {
- "is_active": app.is_active,
- "total_memories_created": db.query(Memory)
- .filter(Memory.app_id == app_id)
- .count(),
- "total_memories_accessed": access_stats.total_memories_accessed or 0,
- "first_accessed": access_stats.first_accessed,
- "last_accessed": access_stats.last_accessed
- }
-
-# List memories created by app
[email protected]("/{app_id}/memories")
-async def list_app_memories(
- app_id: UUID,
- page: int = Query(1, ge=1),
- page_size: int = Query(10, ge=1, le=100),
- db: Session = Depends(get_db)
-):
- get_app_or_404(db, app_id)
- query = db.query(Memory).filter(
- Memory.app_id == app_id,
- Memory.state.in_([MemoryState.active, MemoryState.paused, MemoryState.archived])
- )
- # Add eager loading for categories
- query = query.options(joinedload(Memory.categories))
- total = query.count()
- memories = query.order_by(Memory.created_at.desc()).offset((page - 1) * page_size).limit(page_size).all()
-
- return {
- "total": total,
- "page": page,
- "page_size": page_size,
- "memories": [
- {
- "id": memory.id,
- "content": memory.content,
- "created_at": memory.created_at,
- "state": memory.state.value,
- "app_id": memory.app_id,
- "categories": [category.name for category in memory.categories],
- "metadata_": memory.metadata_
- }
- for memory in memories
- ]
- }
-
-# List memories accessed by app
[email protected]("/{app_id}/accessed")
-async def list_app_accessed_memories(
- app_id: UUID,
- page: int = Query(1, ge=1),
- page_size: int = Query(10, ge=1, le=100),
- db: Session = Depends(get_db)
-):
-
- # Get memories with access counts
- query = db.query(
- Memory,
- func.count(MemoryAccessLog.id).label("access_count")
- ).join(
- MemoryAccessLog,
- Memory.id == MemoryAccessLog.memory_id
- ).filter(
- MemoryAccessLog.app_id == app_id
- ).group_by(
- Memory.id
- ).order_by(
- desc("access_count")
- )
-
- # Add eager loading for categories
- query = query.options(joinedload(Memory.categories))
-
- total = query.count()
- results = query.offset((page - 1) * page_size).limit(page_size).all()
-
- return {
- "total": total,
- "page": page,
- "page_size": page_size,
- "memories": [
- {
- "memory": {
- "id": memory.id,
- "content": memory.content,
- "created_at": memory.created_at,
- "state": memory.state.value,
- "app_id": memory.app_id,
- "app_name": memory.app.name if memory.app else None,
- "categories": [category.name for category in memory.categories],
- "metadata_": memory.metadata_
- },
- "access_count": count
- }
- for memory, count in results
- ]
- }
-
-
[email protected]("/{app_id}")
-async def update_app_details(
- app_id: UUID,
- is_active: bool,
- db: Session = Depends(get_db)
-):
- app = get_app_or_404(db, app_id)
- app.is_active = is_active
- db.commit()
- return {"status": "success", "message": "Updated app details successfully"}
diff --git a/openmemory/api/app/routers/backup.py b/openmemory/api/app/routers/backup.py
deleted file mode 100644
index 243224c5d..000000000
--- a/openmemory/api/app/routers/backup.py
+++ /dev/null
@@ -1,499 +0,0 @@
-from datetime import UTC, datetime
-import io
-import json
-import gzip
-import zipfile
-from typing import Optional, List, Dict, Any
-from uuid import UUID
-
-from fastapi import APIRouter, Depends, HTTPException, UploadFile, File, Query, Form
-from fastapi.responses import StreamingResponse
-from pydantic import BaseModel
-from sqlalchemy.orm import Session, joinedload
-from sqlalchemy import and_
-
-from app.database import get_db
-from app.models import (
- User, App, Memory, MemoryState, Category, memory_categories,
- MemoryStatusHistory, AccessControl
-)
-from app.utils.memory import get_memory_client
-
-from uuid import uuid4
-
-router = APIRouter(prefix="/api/v1/backup", tags=["backup"])
-
-class ExportRequest(BaseModel):
- user_id: str
- app_id: Optional[UUID] = None
- from_date: Optional[int] = None
- to_date: Optional[int] = None
- include_vectors: bool = True
-
-def _iso(dt: Optional[datetime]) -> Optional[str]:
- if isinstance(dt, datetime):
- try:
- return dt.astimezone(UTC).isoformat()
- except:
- return dt.replace(tzinfo=UTC).isoformat()
- return None
-
-def _parse_iso(dt: Optional[str]) -> Optional[datetime]:
- if not dt:
- return None
- try:
- return datetime.fromisoformat(dt)
- except Exception:
- try:
- return datetime.fromisoformat(dt.replace("Z", "+00:00"))
- except Exception:
- return None
-
-def _export_sqlite(db: Session, req: ExportRequest) -> Dict[str, Any]:
- user = db.query(User).filter(User.user_id == req.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- time_filters = []
- if req.from_date:
- time_filters.append(Memory.created_at >= datetime.fromtimestamp(req.from_date, tz=UTC))
- if req.to_date:
- time_filters.append(Memory.created_at <= datetime.fromtimestamp(req.to_date, tz=UTC))
-
- mem_q = (
- db.query(Memory)
- .options(joinedload(Memory.categories), joinedload(Memory.app))
- .filter(
- Memory.user_id == user.id,
- *(time_filters or []),
- * ( [Memory.app_id == req.app_id] if req.app_id else [] ),
- )
- )
-
- memories = mem_q.all()
- memory_ids = [m.id for m in memories]
-
- app_ids = sorted({m.app_id for m in memories if m.app_id})
- apps = db.query(App).filter(App.id.in_(app_ids)).all() if app_ids else []
-
- cats = sorted({c for m in memories for c in m.categories}, key = lambda c: str(c.id))
-
- mc_rows = db.execute(
- memory_categories.select().where(memory_categories.c.memory_id.in_(memory_ids))
- ).fetchall() if memory_ids else []
-
- history = db.query(MemoryStatusHistory).filter(MemoryStatusHistory.memory_id.in_(memory_ids)).all() if memory_ids else []
-
- acls = db.query(AccessControl).filter(
- AccessControl.subject_type == "app",
- AccessControl.subject_id.in_(app_ids) if app_ids else False
- ).all() if app_ids else []
-
- return {
- "user": {
- "id": str(user.id),
- "user_id": user.user_id,
- "name": user.name,
- "email": user.email,
- "metadata": user.metadata_,
- "created_at": _iso(user.created_at),
- "updated_at": _iso(user.updated_at)
- },
- "apps": [
- {
- "id": str(a.id),
- "owner_id": str(a.owner_id),
- "name": a.name,
- "description": a.description,
- "metadata": a.metadata_,
- "is_active": a.is_active,
- "created_at": _iso(a.created_at),
- "updated_at": _iso(a.updated_at),
- }
- for a in apps
- ],
- "categories": [
- {
- "id": str(c.id),
- "name": c.name,
- "description": c.description,
- "created_at": _iso(c.created_at),
- "updated_at": _iso(c.updated_at),
- }
- for c in cats
- ],
- "memories": [
- {
- "id": str(m.id),
- "user_id": str(m.user_id),
- "app_id": str(m.app_id) if m.app_id else None,
- "content": m.content,
- "metadata": m.metadata_,
- "state": m.state.value,
- "created_at": _iso(m.created_at),
- "updated_at": _iso(m.updated_at),
- "archived_at": _iso(m.archived_at),
- "deleted_at": _iso(m.deleted_at),
- "category_ids": [str(c.id) for c in m.categories], #TODO: figure out a way to add category names simply to this
- }
- for m in memories
- ],
- "memory_categories": [
- {"memory_id": str(r.memory_id), "category_id": str(r.category_id)}
- for r in mc_rows
- ],
- "status_history": [
- {
- "id": str(h.id),
- "memory_id": str(h.memory_id),
- "changed_by": str(h.changed_by),
- "old_state": h.old_state.value,
- "new_state": h.new_state.value,
- "changed_at": _iso(h.changed_at),
- }
- for h in history
- ],
- "access_controls": [
- {
- "id": str(ac.id),
- "subject_type": ac.subject_type,
- "subject_id": str(ac.subject_id) if ac.subject_id else None,
- "object_type": ac.object_type,
- "object_id": str(ac.object_id) if ac.object_id else None,
- "effect": ac.effect,
- "created_at": _iso(ac.created_at),
- }
- for ac in acls
- ],
- "export_meta": {
- "app_id_filter": str(req.app_id) if req.app_id else None,
- "from_date": req.from_date,
- "to_date": req.to_date,
- "version": "1",
- "generated_at": datetime.now(UTC).isoformat(),
- },
- }
-
-def _export_logical_memories_gz(
- db: Session,
- *,
- user_id: str,
- app_id: Optional[UUID] = None,
- from_date: Optional[int] = None,
- to_date: Optional[int] = None
-) -> bytes:
- """
- Export a provider-agnostic backup of memories so they can be restored to any vector DB
- by re-embedding content. One JSON object per line, gzip-compressed.
-
- Schema (per line):
- {
- "id": "<uuid>",
- "content": "<text>",
- "metadata": {...},
- "created_at": "<iso8601 or null>",
- "updated_at": "<iso8601 or null>",
- "state": "active|paused|archived|deleted",
- "app": "<app name or null>",
- "categories": ["catA", "catB", ...]
- }
- """
-
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- time_filters = []
- if from_date:
- time_filters.append(Memory.created_at >= datetime.fromtimestamp(from_date, tz=UTC))
- if to_date:
- time_filters.append(Memory.created_at <= datetime.fromtimestamp(to_date, tz=UTC))
-
- q = (
- db.query(Memory)
- .options(joinedload(Memory.categories), joinedload(Memory.app))
- .filter(
- Memory.user_id == user.id,
- *(time_filters or []),
- )
- )
- if app_id:
- q = q.filter(Memory.app_id == app_id)
-
- buf = io.BytesIO()
- with gzip.GzipFile(fileobj=buf, mode="wb") as gz:
- for m in q.all():
- record = {
- "id": str(m.id),
- "content": m.content,
- "metadata": m.metadata_ or {},
- "created_at": _iso(m.created_at),
- "updated_at": _iso(m.updated_at),
- "state": m.state.value,
- "app": m.app.name if m.app else None,
- "categories": [c.name for c in m.categories],
- }
- gz.write((json.dumps(record) + "\n").encode("utf-8"))
- return buf.getvalue()
-
-async def export_backup(req: ExportRequest, db: Session = Depends(get_db)):
- sqlite_payload = _export_sqlite(db=db, req=req)
- memories_blob = _export_logical_memories_gz(
- db=db,
- user_id=req.user_id,
- app_id=req.app_id,
- from_date=req.from_date,
- to_date=req.to_date,
-
- )
-
- #TODO: add vector store specific exports in future for speed
-
- zip_buf = io.BytesIO()
- with zipfile.ZipFile(zip_buf, "w", compression=zipfile.ZIP_DEFLATED) as zf:
- zf.writestr("memories.json", json.dumps(sqlite_payload, indent=2))
- zf.writestr("memories.jsonl.gz", memories_blob)
-
- zip_buf.seek(0)
- return StreamingResponse(
- zip_buf,
- media_type="application/zip",
- headers={"Content-Disposition": f'attachment; filename="memories_export_{req.user_id}.zip"'},
- )
-
-async def import_backup(
- file: UploadFile = File(..., description="Zip with memories.json and memories.jsonl.gz"),
- user_id: str = Form(..., description="Import memories into this user_id"),
- mode: str = Query("overwrite"),
- db: Session = Depends(get_db)
-):
- if not file.filename.endswith(".zip"):
- raise HTTPException(status_code=400, detail="Expected a zip file.")
-
- if mode not in {"skip", "overwrite"}:
- raise HTTPException(status_code=400, detail="Invalid mode. Must be 'skip' or 'overwrite'.")
-
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- content = await file.read()
- try:
- with zipfile.ZipFile(io.BytesIO(content), "r") as zf:
- names = zf.namelist()
-
- def find_member(filename: str) -> Optional[str]:
- for name in names:
- # Skip directory entries
- if name.endswith('/'):
- continue
- if name.rsplit('/', 1)[-1] == filename:
- return name
- return None
-
- sqlite_member = find_member("memories.json")
- if not sqlite_member:
- raise HTTPException(status_code=400, detail="memories.json missing in zip")
-
- memories_member = find_member("memories.jsonl.gz")
-
- sqlite_data = json.loads(zf.read(sqlite_member))
- memories_blob = zf.read(memories_member) if memories_member else None
- except Exception:
- raise HTTPException(status_code=400, detail="Invalid zip file")
-
- default_app = db.query(App).filter(App.owner_id == user.id, App.name == "openmemory").first()
- if not default_app:
- default_app = App(owner_id=user.id, name="openmemory", is_active=True, metadata_={})
- db.add(default_app)
- db.commit()
- db.refresh(default_app)
-
- cat_id_map: Dict[str, UUID] = {}
- for c in sqlite_data.get("categories", []):
- cat = db.query(Category).filter(Category.name == c["name"]).first()
- if not cat:
- cat = Category(name=c["name"], description=c.get("description"))
- db.add(cat)
- db.commit()
- db.refresh(cat)
- cat_id_map[c["id"]] = cat.id
-
- old_to_new_id: Dict[str, UUID] = {}
- for m in sqlite_data.get("memories", []):
- incoming_id = UUID(m["id"])
- existing = db.query(Memory).filter(Memory.id == incoming_id).first()
-
- # Cross-user collision: always mint a new UUID and import as a new memory
- if existing and existing.user_id != user.id:
- target_id = uuid4()
- else:
- target_id = incoming_id
-
- old_to_new_id[m["id"]] = target_id
-
- # Same-user collision + skip mode: leave existing row untouched
- if existing and (existing.user_id == user.id) and mode == "skip":
- continue
-
- # Same-user collision + overwrite mode: treat import as ground truth
- if existing and (existing.user_id == user.id) and mode == "overwrite":
- incoming_state = m.get("state", "active")
- existing.user_id = user.id
- existing.app_id = default_app.id
- existing.content = m.get("content") or ""
- existing.metadata_ = m.get("metadata") or {}
- try:
- existing.state = MemoryState(incoming_state)
- except Exception:
- existing.state = MemoryState.active
- # Update state-related timestamps from import (ground truth)
- existing.archived_at = _parse_iso(m.get("archived_at"))
- existing.deleted_at = _parse_iso(m.get("deleted_at"))
- existing.created_at = _parse_iso(m.get("created_at")) or existing.created_at
- existing.updated_at = _parse_iso(m.get("updated_at")) or existing.updated_at
- db.add(existing)
- db.commit()
- continue
-
- new_mem = Memory(
- id=target_id,
- user_id=user.id,
- app_id=default_app.id,
- content=m.get("content") or "",
- metadata_=m.get("metadata") or {},
- state=MemoryState(m.get("state", "active")) if m.get("state") else MemoryState.active,
- created_at=_parse_iso(m.get("created_at")) or datetime.now(UTC),
- updated_at=_parse_iso(m.get("updated_at")) or datetime.now(UTC),
- archived_at=_parse_iso(m.get("archived_at")),
- deleted_at=_parse_iso(m.get("deleted_at")),
- )
- db.add(new_mem)
- db.commit()
-
- for link in sqlite_data.get("memory_categories", []):
- mid = old_to_new_id.get(link["memory_id"])
- cid = cat_id_map.get(link["category_id"])
- if not (mid and cid):
- continue
- exists = db.execute(
- memory_categories.select().where(
- (memory_categories.c.memory_id == mid) & (memory_categories.c.category_id == cid)
- )
- ).first()
-
- if not exists:
- db.execute(memory_categories.insert().values(memory_id=mid, category_id=cid))
- db.commit()
-
- for h in sqlite_data.get("status_history", []):
- hid = UUID(h["id"])
- mem_id = old_to_new_id.get(h["memory_id"], UUID(h["memory_id"]))
- exists = db.query(MemoryStatusHistory).filter(MemoryStatusHistory.id == hid).first()
- if exists and mode == "skip":
- continue
- rec = exists if exists else MemoryStatusHistory(id=hid)
- rec.memory_id = mem_id
- rec.changed_by = user.id
- try:
- rec.old_state = MemoryState(h.get("old_state", "active"))
- rec.new_state = MemoryState(h.get("new_state", "active"))
- except Exception:
- rec.old_state = MemoryState.active
- rec.new_state = MemoryState.active
- rec.changed_at = _parse_iso(h.get("changed_at")) or datetime.now(UTC)
- db.add(rec)
- db.commit()
-
- memory_client = get_memory_client()
- vector_store = getattr(memory_client, "vector_store", None) if memory_client else None
-
- if vector_store and memory_client and hasattr(memory_client, "embedding_model"):
- def iter_logical_records():
- if memories_blob:
- gz_buf = io.BytesIO(memories_blob)
- with gzip.GzipFile(fileobj=gz_buf, mode="rb") as gz:
- for raw in gz:
- yield json.loads(raw.decode("utf-8"))
- else:
- for m in sqlite_data.get("memories", []):
- yield {
- "id": m["id"],
- "content": m.get("content"),
- "metadata": m.get("metadata") or {},
- "created_at": m.get("created_at"),
- "updated_at": m.get("updated_at"),
- }
-
- for rec in iter_logical_records():
- old_id = rec["id"]
- new_id = old_to_new_id.get(old_id, UUID(old_id))
- content = rec.get("content") or ""
- metadata = rec.get("metadata") or {}
- created_at = rec.get("created_at")
- updated_at = rec.get("updated_at")
-
- if mode == "skip":
- try:
- get_fn = getattr(vector_store, "get", None)
- if callable(get_fn) and vector_store.get(str(new_id)):
- continue
- except Exception:
- pass
-
- payload = dict(metadata)
- payload["data"] = content
- if created_at:
- payload["created_at"] = created_at
- if updated_at:
- payload["updated_at"] = updated_at
- payload["user_id"] = user_id
- payload.setdefault("source_app", "openmemory")
-
- try:
- vec = memory_client.embedding_model.embed(content, "add")
- vector_store.insert(vectors=[vec], payloads=[payload], ids=[str(new_id)])
- except Exception as e:
- print(f"Vector upsert failed for memory {new_id}: {e}")
- continue
-
- return {"message": f'Import completed into user "{user_id}"'}
-
- return {"message": f'Import completed into user "{user_id}"'}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/openmemory/api/app/routers/config.py b/openmemory/api/app/routers/config.py
deleted file mode 100644
index d55cf7829..000000000
--- a/openmemory/api/app/routers/config.py
+++ /dev/null
@@ -1,291 +0,0 @@
-from typing import Any, Dict, Optional
-
-from app.database import get_db
-from app.models import Config as ConfigModel
-from app.utils.memory import reset_memory_client
-from fastapi import APIRouter, Depends, HTTPException
-from pydantic import BaseModel, Field
-from sqlalchemy.orm import Session
-
-router = APIRouter(prefix="/api/v1/config", tags=["config"])
-
-class LLMConfig(BaseModel):
- model: str = Field(..., description="LLM model name")
- temperature: float = Field(..., description="Temperature setting for the model")
- max_tokens: int = Field(..., description="Maximum tokens to generate")
- api_key: Optional[str] = Field(None, description="API key or 'env:API_KEY' to use environment variable")
- ollama_base_url: Optional[str] = Field(None, description="Base URL for Ollama server (e.g., http://host.docker.internal:11434)")
-
-class LLMProvider(BaseModel):
- provider: str = Field(..., description="LLM provider name")
- config: LLMConfig
-
-class EmbedderConfig(BaseModel):
- model: str = Field(..., description="Embedder model name")
- api_key: Optional[str] = Field(None, description="API key or 'env:API_KEY' to use environment variable")
- ollama_base_url: Optional[str] = Field(None, description="Base URL for Ollama server (e.g., http://host.docker.internal:11434)")
-
-class EmbedderProvider(BaseModel):
- provider: str = Field(..., description="Embedder provider name")
- config: EmbedderConfig
-
-class VectorStoreProvider(BaseModel):
- provider: str = Field(..., description="Vector store provider name")
- # Below config can vary widely based on the vector store used. Refer https://docs.mem0.ai/components/vectordbs/config
- config: Dict[str, Any] = Field(..., description="Vector store-specific configuration")
-
-class OpenMemoryConfig(BaseModel):
- custom_instructions: Optional[str] = Field(None, description="Custom instructions for memory management and fact extraction")
-
-class Mem0Config(BaseModel):
- llm: Optional[LLMProvider] = None
- embedder: Optional[EmbedderProvider] = None
- vector_store: Optional[VectorStoreProvider] = None
-
-class ConfigSchema(BaseModel):
- openmemory: Optional[OpenMemoryConfig] = None
- mem0: Optional[Mem0Config] = None
-
-def get_default_configuration():
- """Get the default configuration with sensible defaults for LLM and embedder."""
- return {
- "openmemory": {
- "custom_instructions": None
- },
- "mem0": {
- "llm": {
- "provider": "openai",
- "config": {
- "model": "gpt-4o-mini",
- "temperature": 0.1,
- "max_tokens": 2000,
- "api_key": "env:OPENAI_API_KEY"
- }
- },
- "embedder": {
- "provider": "openai",
- "config": {
- "model": "text-embedding-3-small",
- "api_key": "env:OPENAI_API_KEY"
- }
- },
- "vector_store": None
- }
- }
-
-def get_config_from_db(db: Session, key: str = "main"):
- """Get configuration from database."""
- config = db.query(ConfigModel).filter(ConfigModel.key == key).first()
-
- if not config:
- # Create default config with proper provider configurations
- default_config = get_default_configuration()
- db_config = ConfigModel(key=key, value=default_config)
- db.add(db_config)
- db.commit()
- db.refresh(db_config)
- return default_config
-
- # Ensure the config has all required sections with defaults
- config_value = config.value
- default_config = get_default_configuration()
-
- # Merge with defaults to ensure all required fields exist
- if "openmemory" not in config_value:
- config_value["openmemory"] = default_config["openmemory"]
-
- if "mem0" not in config_value:
- config_value["mem0"] = default_config["mem0"]
- else:
- # Ensure LLM config exists with defaults
- if "llm" not in config_value["mem0"] or config_value["mem0"]["llm"] is None:
- config_value["mem0"]["llm"] = default_config["mem0"]["llm"]
-
- # Ensure embedder config exists with defaults
- if "embedder" not in config_value["mem0"] or config_value["mem0"]["embedder"] is None:
- config_value["mem0"]["embedder"] = default_config["mem0"]["embedder"]
-
- # Ensure vector_store config exists with defaults
- if "vector_store" not in config_value["mem0"]:
- config_value["mem0"]["vector_store"] = default_config["mem0"]["vector_store"]
-
- # Save the updated config back to database if it was modified
- if config_value != config.value:
- config.value = config_value
- db.commit()
- db.refresh(config)
-
- return config_value
-
-def save_config_to_db(db: Session, config: Dict[str, Any], key: str = "main"):
- """Save configuration to database."""
- db_config = db.query(ConfigModel).filter(ConfigModel.key == key).first()
-
- if db_config:
- db_config.value = config
- db_config.updated_at = None # Will trigger the onupdate to set current time
- else:
- db_config = ConfigModel(key=key, value=config)
- db.add(db_config)
-
- db.commit()
- db.refresh(db_config)
- return db_config.value
-
[email protected]("/", response_model=ConfigSchema)
-async def get_configuration(db: Session = Depends(get_db)):
- """Get the current configuration."""
- config = get_config_from_db(db)
- return config
-
[email protected]("/", response_model=ConfigSchema)
-async def update_configuration(config: ConfigSchema, db: Session = Depends(get_db)):
- """Update the configuration."""
- current_config = get_config_from_db(db)
-
- # Convert to dict for processing
- updated_config = current_config.copy()
-
- # Update openmemory settings if provided
- if config.openmemory is not None:
- if "openmemory" not in updated_config:
- updated_config["openmemory"] = {}
- updated_config["openmemory"].update(config.openmemory.dict(exclude_none=True))
-
- # Update mem0 settings
- updated_config["mem0"] = config.mem0.dict(exclude_none=True)
-
-
[email protected]("/", response_model=ConfigSchema)
-async def patch_configuration(config_update: ConfigSchema, db: Session = Depends(get_db)):
- """Update parts of the configuration."""
- current_config = get_config_from_db(db)
-
- def deep_update(source, overrides):
- for key, value in overrides.items():
- if isinstance(value, dict) and key in source and isinstance(source[key], dict):
- source[key] = deep_update(source[key], value)
- else:
- source[key] = value
- return source
-
- update_data = config_update.dict(exclude_unset=True)
- updated_config = deep_update(current_config, update_data)
-
- save_config_to_db(db, updated_config)
- reset_memory_client()
- return updated_config
-
-
[email protected]("/reset", response_model=ConfigSchema)
-async def reset_configuration(db: Session = Depends(get_db)):
- """Reset the configuration to default values."""
- try:
- # Get the default configuration with proper provider setups
- default_config = get_default_configuration()
-
- # Save it as the current configuration in the database
- save_config_to_db(db, default_config)
- reset_memory_client()
- return default_config
- except Exception as e:
- raise HTTPException(
- status_code=500,
- detail=f"Failed to reset configuration: {str(e)}"
- )
-
[email protected]("/mem0/llm", response_model=LLMProvider)
-async def get_llm_configuration(db: Session = Depends(get_db)):
- """Get only the LLM configuration."""
- config = get_config_from_db(db)
- llm_config = config.get("mem0", {}).get("llm", {})
- return llm_config
-
[email protected]("/mem0/llm", response_model=LLMProvider)
-async def update_llm_configuration(llm_config: LLMProvider, db: Session = Depends(get_db)):
- """Update only the LLM configuration."""
- current_config = get_config_from_db(db)
-
- # Ensure mem0 key exists
- if "mem0" not in current_config:
- current_config["mem0"] = {}
-
- # Update the LLM configuration
- current_config["mem0"]["llm"] = llm_config.dict(exclude_none=True)
-
- # Save the configuration to database
- save_config_to_db(db, current_config)
- reset_memory_client()
- return current_config["mem0"]["llm"]
-
[email protected]("/mem0/embedder", response_model=EmbedderProvider)
-async def get_embedder_configuration(db: Session = Depends(get_db)):
- """Get only the Embedder configuration."""
- config = get_config_from_db(db)
- embedder_config = config.get("mem0", {}).get("embedder", {})
- return embedder_config
-
[email protected]("/mem0/embedder", response_model=EmbedderProvider)
-async def update_embedder_configuration(embedder_config: EmbedderProvider, db: Session = Depends(get_db)):
- """Update only the Embedder configuration."""
- current_config = get_config_from_db(db)
-
- # Ensure mem0 key exists
- if "mem0" not in current_config:
- current_config["mem0"] = {}
-
- # Update the Embedder configuration
- current_config["mem0"]["embedder"] = embedder_config.dict(exclude_none=True)
-
- # Save the configuration to database
- save_config_to_db(db, current_config)
- reset_memory_client()
- return current_config["mem0"]["embedder"]
-
[email protected]("/mem0/vector_store", response_model=Optional[VectorStoreProvider])
-async def get_vector_store_configuration(db: Session = Depends(get_db)):
- """Get only the Vector Store configuration."""
- config = get_config_from_db(db)
- vector_store_config = config.get("mem0", {}).get("vector_store", None)
- return vector_store_config
-
[email protected]("/mem0/vector_store", response_model=VectorStoreProvider)
-async def update_vector_store_configuration(vector_store_config: VectorStoreProvider, db: Session = Depends(get_db)):
- """Update only the Vector Store configuration."""
- current_config = get_config_from_db(db)
-
- # Ensure mem0 key exists
- if "mem0" not in current_config:
- current_config["mem0"] = {}
-
- # Update the Vector Store configuration
- current_config["mem0"]["vector_store"] = vector_store_config.dict(exclude_none=True)
-
- # Save the configuration to database
- save_config_to_db(db, current_config)
- reset_memory_client()
- return current_config["mem0"]["vector_store"]
-
[email protected]("/openmemory", response_model=OpenMemoryConfig)
-async def get_openmemory_configuration(db: Session = Depends(get_db)):
- """Get only the OpenMemory configuration."""
- config = get_config_from_db(db)
- openmemory_config = config.get("openmemory", {})
- return openmemory_config
-
[email protected]("/openmemory", response_model=OpenMemoryConfig)
-async def update_openmemory_configuration(openmemory_config: OpenMemoryConfig, db: Session = Depends(get_db)):
- """Update only the OpenMemory configuration."""
- current_config = get_config_from_db(db)
-
- # Ensure openmemory key exists
- if "openmemory" not in current_config:
- current_config["openmemory"] = {}
-
- # Update the OpenMemory configuration
- current_config["openmemory"].update(openmemory_config.dict(exclude_none=True))
-
- # Save the configuration to database
- save_config_to_db(db, current_config)
- reset_memory_client()
- return current_config["openmemory"]
diff --git a/openmemory/api/app/routers/memories.py b/openmemory/api/app/routers/memories.py
deleted file mode 100644
index 3af7bbe13..000000000
--- a/openmemory/api/app/routers/memories.py
+++ /dev/null
@@ -1,694 +0,0 @@
-import logging
-from datetime import UTC, datetime
-from typing import List, Optional, Set
-from uuid import UUID
-
-from app.database import get_db
-from app.models import (
- AccessControl,
- App,
- Category,
- Memory,
- MemoryAccessLog,
- MemoryState,
- MemoryStatusHistory,
- User,
-)
-from app.schemas import MemoryResponse
-from app.utils.memory import get_memory_client
-from app.utils.permissions import check_memory_access_permissions
-from fastapi import APIRouter, Depends, HTTPException, Query
-from fastapi_pagination import Page, Params
-from fastapi_pagination.ext.sqlalchemy import paginate as sqlalchemy_paginate
-from pydantic import BaseModel
-from sqlalchemy import func
-from sqlalchemy.orm import Session, joinedload
-
-router = APIRouter(prefix="/api/v1/memories", tags=["memories"])
-
-
-def get_memory_or_404(db: Session, memory_id: UUID) -> Memory:
- memory = db.query(Memory).filter(Memory.id == memory_id).first()
- if not memory:
- raise HTTPException(status_code=404, detail="Memory not found")
- return memory
-
-
-def update_memory_state(db: Session, memory_id: UUID, new_state: MemoryState, user_id: UUID):
- memory = get_memory_or_404(db, memory_id)
- old_state = memory.state
-
- # Update memory state
- memory.state = new_state
- if new_state == MemoryState.archived:
- memory.archived_at = datetime.now(UTC)
- elif new_state == MemoryState.deleted:
- memory.deleted_at = datetime.now(UTC)
-
- # Record state change
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user_id,
- old_state=old_state,
- new_state=new_state
- )
- db.add(history)
- db.commit()
- return memory
-
-
-def get_accessible_memory_ids(db: Session, app_id: UUID) -> Set[UUID]:
- """
- Get the set of memory IDs that the app has access to based on app-level ACL rules.
- Returns all memory IDs if no specific restrictions are found.
- """
- # Get app-level access controls
- app_access = db.query(AccessControl).filter(
- AccessControl.subject_type == "app",
- AccessControl.subject_id == app_id,
- AccessControl.object_type == "memory"
- ).all()
-
- # If no app-level rules exist, return None to indicate all memories are accessible
- if not app_access:
- return None
-
- # Initialize sets for allowed and denied memory IDs
- allowed_memory_ids = set()
- denied_memory_ids = set()
-
- # Process app-level rules
- for rule in app_access:
- if rule.effect == "allow":
- if rule.object_id: # Specific memory access
- allowed_memory_ids.add(rule.object_id)
- else: # All memories access
- return None # All memories allowed
- elif rule.effect == "deny":
- if rule.object_id: # Specific memory denied
- denied_memory_ids.add(rule.object_id)
- else: # All memories denied
- return set() # No memories accessible
-
- # Remove denied memories from allowed set
- if allowed_memory_ids:
- allowed_memory_ids -= denied_memory_ids
-
- return allowed_memory_ids
-
-
-# List all memories with filtering
[email protected]("/", response_model=Page[MemoryResponse])
-async def list_memories(
- user_id: str,
- app_id: Optional[UUID] = None,
- from_date: Optional[int] = Query(
- None,
- description="Filter memories created after this date (timestamp)",
- examples=[1718505600]
- ),
- to_date: Optional[int] = Query(
- None,
- description="Filter memories created before this date (timestamp)",
- examples=[1718505600]
- ),
- categories: Optional[str] = None,
- params: Params = Depends(),
- search_query: Optional[str] = None,
- sort_column: Optional[str] = Query(None, description="Column to sort by (memory, categories, app_name, created_at)"),
- sort_direction: Optional[str] = Query(None, description="Sort direction (asc or desc)"),
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Build base query
- query = db.query(Memory).filter(
- Memory.user_id == user.id,
- Memory.state != MemoryState.deleted,
- Memory.state != MemoryState.archived,
- Memory.content.ilike(f"%{search_query}%") if search_query else True
- )
-
- # Apply filters
- if app_id:
- query = query.filter(Memory.app_id == app_id)
-
- if from_date:
- from_datetime = datetime.fromtimestamp(from_date, tz=UTC)
- query = query.filter(Memory.created_at >= from_datetime)
-
- if to_date:
- to_datetime = datetime.fromtimestamp(to_date, tz=UTC)
- query = query.filter(Memory.created_at <= to_datetime)
-
- # Add joins for app and categories after filtering
- query = query.outerjoin(App, Memory.app_id == App.id)
- query = query.outerjoin(Memory.categories)
-
- # Apply category filter if provided
- if categories:
- category_list = [c.strip() for c in categories.split(",")]
- query = query.filter(Category.name.in_(category_list))
-
- # Apply sorting if specified
- if sort_column:
- sort_field = getattr(Memory, sort_column, None)
- if sort_field:
- query = query.order_by(sort_field.desc()) if sort_direction == "desc" else query.order_by(sort_field.asc())
-
- # Add eager loading for app and categories
- query = query.options(
- joinedload(Memory.app),
- joinedload(Memory.categories)
- ).distinct(Memory.id)
-
- # Get paginated results with transformer
- return sqlalchemy_paginate(
- query,
- params,
- transformer=lambda items: [
- MemoryResponse(
- id=memory.id,
- content=memory.content,
- created_at=memory.created_at,
- state=memory.state.value,
- app_id=memory.app_id,
- app_name=memory.app.name if memory.app else None,
- categories=[category.name for category in memory.categories],
- metadata_=memory.metadata_
- )
- for memory in items
- if check_memory_access_permissions(db, memory, app_id)
- ]
- )
-
-
-# Get all categories
[email protected]("/categories")
-async def get_categories(
- user_id: str,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Get unique categories associated with the user's memories
- # Get all memories
- memories = db.query(Memory).filter(Memory.user_id == user.id, Memory.state != MemoryState.deleted, Memory.state != MemoryState.archived).all()
- # Get all categories from memories
- categories = [category for memory in memories for category in memory.categories]
- # Get unique categories
- unique_categories = list(set(categories))
-
- return {
- "categories": unique_categories,
- "total": len(unique_categories)
- }
-
-
-class CreateMemoryRequest(BaseModel):
- user_id: str
- text: str
- metadata: dict = {}
- infer: bool = True
- app: str = "openmemory"
-
-
-# Create new memory
-async def create_memory(
- request: CreateMemoryRequest,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == request.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
- # Get or create app
- app_obj = db.query(App).filter(App.name == request.app,
- App.owner_id == user.id).first()
- if not app_obj:
- app_obj = App(name=request.app, owner_id=user.id)
- db.add(app_obj)
- db.commit()
- db.refresh(app_obj)
-
- # Check if app is active
- if not app_obj.is_active:
- raise HTTPException(status_code=403, detail=f"App {request.app} is currently paused on OpenMemory. Cannot create new memories.")
-
- # Log what we're about to do
- logging.info(f"Creating memory for user_id: {request.user_id} with app: {request.app}")
-
- # Try to get memory client safely
- try:
- memory_client = get_memory_client()
- if not memory_client:
- raise Exception("Memory client is not available")
- except Exception as client_error:
- logging.warning(f"Memory client unavailable: {client_error}. Creating memory in database only.")
- # Return a json response with the error
- return {
- "error": str(client_error)
- }
-
- # Try to save to Qdrant via memory_client
- try:
- qdrant_response = memory_client.add(
- request.text,
- user_id=request.user_id, # Use string user_id to match search
- metadata={
- "source_app": "openmemory",
- "mcp_client": request.app,
- },
- infer=request.infer
- )
-
- # Log the response for debugging
- logging.info(f"Qdrant response: {qdrant_response}")
-
- # Process Qdrant response
- if isinstance(qdrant_response, dict) and 'results' in qdrant_response:
- created_memories = []
-
- for result in qdrant_response['results']:
- if result['event'] == 'ADD':
- # Get the Qdrant-generated ID
- memory_id = UUID(result['id'])
-
- # Check if memory already exists
- existing_memory = db.query(Memory).filter(Memory.id == memory_id).first()
-
- if existing_memory:
- # Update existing memory
- existing_memory.state = MemoryState.active
- existing_memory.content = result['memory']
- memory = existing_memory
- else:
- # Create memory with the EXACT SAME ID from Qdrant
- memory = Memory(
- id=memory_id, # Use the same ID that Qdrant generated
- user_id=user.id,
- app_id=app_obj.id,
- content=result['memory'],
- metadata_=request.metadata,
- state=MemoryState.active
- )
- db.add(memory)
-
- # Create history entry
- history = MemoryStatusHistory(
- memory_id=memory_id,
- changed_by=user.id,
- old_state=MemoryState.deleted if existing_memory else MemoryState.deleted,
- new_state=MemoryState.active
- )
- db.add(history)
-
- created_memories.append(memory)
-
- # Commit all changes at once
- if created_memories:
- db.commit()
- for memory in created_memories:
- db.refresh(memory)
-
- # Return the first memory (for API compatibility)
- # but all memories are now saved to the database
- return created_memories[0]
- except Exception as qdrant_error:
- logging.warning(f"Qdrant operation failed: {qdrant_error}.")
- # Return a json response with the error
- return {
- "error": str(qdrant_error)
- }
-
-
-
-
-# Get memory by ID
[email protected]("/{memory_id}")
-async def get_memory(
- memory_id: UUID,
- db: Session = Depends(get_db)
-):
- memory = get_memory_or_404(db, memory_id)
- return {
- "id": memory.id,
- "text": memory.content,
- "created_at": int(memory.created_at.timestamp()),
- "state": memory.state.value,
- "app_id": memory.app_id,
- "app_name": memory.app.name if memory.app else None,
- "categories": [category.name for category in memory.categories],
- "metadata_": memory.metadata_
- }
-
-
-class DeleteMemoriesRequest(BaseModel):
- memory_ids: List[UUID]
- user_id: str
-
-# Delete multiple memories
-async def delete_memories(
- request: DeleteMemoriesRequest,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == request.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Get memory client to delete from vector store
- try:
- memory_client = get_memory_client()
- if not memory_client:
- raise HTTPException(
- status_code=503,
- detail="Memory client is not available"
- )
- except HTTPException:
- raise
- except Exception as client_error:
- logging.error(f"Memory client initialization failed: {client_error}")
- raise HTTPException(
- status_code=503,
- detail=f"Memory service unavailable: {str(client_error)}"
- )
-
- # Delete from vector store then mark as deleted in database
- for memory_id in request.memory_ids:
- try:
- memory_client.delete(str(memory_id))
- except Exception as delete_error:
- logging.warning(f"Failed to delete memory {memory_id} from vector store: {delete_error}")
-
- update_memory_state(db, memory_id, MemoryState.deleted, user.id)
-
- return {"message": f"Successfully deleted {len(request.memory_ids)} memories"}
-
-
-# Archive memories
[email protected]("/actions/archive")
-async def archive_memories(
- memory_ids: List[UUID],
- user_id: UUID,
- db: Session = Depends(get_db)
-):
- for memory_id in memory_ids:
- update_memory_state(db, memory_id, MemoryState.archived, user_id)
- return {"message": f"Successfully archived {len(memory_ids)} memories"}
-
-
-class PauseMemoriesRequest(BaseModel):
- memory_ids: Optional[List[UUID]] = None
- category_ids: Optional[List[UUID]] = None
- app_id: Optional[UUID] = None
- all_for_app: bool = False
- global_pause: bool = False
- state: Optional[MemoryState] = None
- user_id: str
-
-# Pause access to memories
[email protected]("/actions/pause")
-async def pause_memories(
- request: PauseMemoriesRequest,
- db: Session = Depends(get_db)
-):
-
- global_pause = request.global_pause
- all_for_app = request.all_for_app
- app_id = request.app_id
- memory_ids = request.memory_ids
- category_ids = request.category_ids
- state = request.state or MemoryState.paused
-
- user = db.query(User).filter(User.user_id == request.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- user_id = user.id
-
- if global_pause:
- # Pause all memories
- memories = db.query(Memory).filter(
- Memory.state != MemoryState.deleted,
- Memory.state != MemoryState.archived
- ).all()
- for memory in memories:
- update_memory_state(db, memory.id, state, user_id)
- return {"message": "Successfully paused all memories"}
-
- if app_id:
- # Pause all memories for an app
- memories = db.query(Memory).filter(
- Memory.app_id == app_id,
- Memory.user_id == user.id,
- Memory.state != MemoryState.deleted,
- Memory.state != MemoryState.archived
- ).all()
- for memory in memories:
- update_memory_state(db, memory.id, state, user_id)
- return {"message": f"Successfully paused all memories for app {app_id}"}
-
- if all_for_app and memory_ids:
- # Pause all memories for an app
- memories = db.query(Memory).filter(
- Memory.user_id == user.id,
- Memory.state != MemoryState.deleted,
- Memory.id.in_(memory_ids)
- ).all()
- for memory in memories:
- update_memory_state(db, memory.id, state, user_id)
- return {"message": "Successfully paused all memories"}
-
- if memory_ids:
- # Pause specific memories
- for memory_id in memory_ids:
- update_memory_state(db, memory_id, state, user_id)
- return {"message": f"Successfully paused {len(memory_ids)} memories"}
-
- if category_ids:
- # Pause memories by category
- memories = db.query(Memory).join(Memory.categories).filter(
- Category.id.in_(category_ids),
- Memory.state != MemoryState.deleted,
- Memory.state != MemoryState.archived
- ).all()
- for memory in memories:
- update_memory_state(db, memory.id, state, user_id)
- return {"message": f"Successfully paused memories in {len(category_ids)} categories"}
-
- raise HTTPException(status_code=400, detail="Invalid pause request parameters")
-
-
-# Get memory access logs
[email protected]("/{memory_id}/access-log")
-async def get_memory_access_log(
- memory_id: UUID,
- page: int = Query(1, ge=1),
- page_size: int = Query(10, ge=1, le=100),
- db: Session = Depends(get_db)
-):
- query = db.query(MemoryAccessLog).filter(MemoryAccessLog.memory_id == memory_id)
- total = query.count()
- logs = query.order_by(MemoryAccessLog.accessed_at.desc()).offset((page - 1) * page_size).limit(page_size).all()
-
- # Get app name
- for log in logs:
- app = db.query(App).filter(App.id == log.app_id).first()
- log.app_name = app.name if app else None
-
- return {
- "total": total,
- "page": page,
- "page_size": page_size,
- "logs": logs
- }
-
-
-class UpdateMemoryRequest(BaseModel):
- memory_content: str
- user_id: str
-
-# Update a memory
[email protected]("/{memory_id}")
-async def update_memory(
- memory_id: UUID,
- request: UpdateMemoryRequest,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == request.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
- memory = get_memory_or_404(db, memory_id)
- memory.content = request.memory_content
- db.commit()
- db.refresh(memory)
- return memory
-
-class FilterMemoriesRequest(BaseModel):
- user_id: str
- page: int = 1
- size: int = 10
- search_query: Optional[str] = None
- app_ids: Optional[List[UUID]] = None
- category_ids: Optional[List[UUID]] = None
- sort_column: Optional[str] = None
- sort_direction: Optional[str] = None
- from_date: Optional[int] = None
- to_date: Optional[int] = None
- show_archived: Optional[bool] = False
-
[email protected]("/filter", response_model=Page[MemoryResponse])
-async def filter_memories(
- request: FilterMemoriesRequest,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == request.user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Build base query
- query = db.query(Memory).filter(
- Memory.user_id == user.id,
- Memory.state != MemoryState.deleted,
- )
-
- # Filter archived memories based on show_archived parameter
- if not request.show_archived:
- query = query.filter(Memory.state != MemoryState.archived)
-
- # Apply search filter
- if request.search_query:
- query = query.filter(Memory.content.ilike(f"%{request.search_query}%"))
-
- # Apply app filter
- if request.app_ids:
- query = query.filter(Memory.app_id.in_(request.app_ids))
-
- # Add joins for app and categories
- query = query.outerjoin(App, Memory.app_id == App.id)
-
- # Apply category filter
- if request.category_ids:
- query = query.join(Memory.categories).filter(Category.id.in_(request.category_ids))
- else:
- query = query.outerjoin(Memory.categories)
-
- # Apply date filters
- if request.from_date:
- from_datetime = datetime.fromtimestamp(request.from_date, tz=UTC)
- query = query.filter(Memory.created_at >= from_datetime)
-
- if request.to_date:
- to_datetime = datetime.fromtimestamp(request.to_date, tz=UTC)
- query = query.filter(Memory.created_at <= to_datetime)
-
- # Apply sorting
- if request.sort_column and request.sort_direction:
- sort_direction = request.sort_direction.lower()
- if sort_direction not in ['asc', 'desc']:
- raise HTTPException(status_code=400, detail="Invalid sort direction")
-
- sort_mapping = {
- 'memory': Memory.content,
- 'app_name': App.name,
- 'created_at': Memory.created_at
- }
-
- if request.sort_column not in sort_mapping:
- raise HTTPException(status_code=400, detail="Invalid sort column")
-
- sort_field = sort_mapping[request.sort_column]
- if sort_direction == 'desc':
- query = query.order_by(sort_field.desc())
- else:
- query = query.order_by(sort_field.asc())
- else:
- # Default sorting
- query = query.order_by(Memory.created_at.desc())
-
- # Add eager loading for categories and make the query distinct
- query = query.options(
- joinedload(Memory.categories)
- ).distinct(Memory.id)
-
- # Use fastapi-pagination's paginate function
- return sqlalchemy_paginate(
- query,
- Params(page=request.page, size=request.size),
- transformer=lambda items: [
- MemoryResponse(
- id=memory.id,
- content=memory.content,
- created_at=memory.created_at,
- state=memory.state.value,
- app_id=memory.app_id,
- app_name=memory.app.name if memory.app else None,
- categories=[category.name for category in memory.categories],
- metadata_=memory.metadata_
- )
- for memory in items
- ]
- )
-
-
[email protected]("/{memory_id}/related", response_model=Page[MemoryResponse])
-async def get_related_memories(
- memory_id: UUID,
- user_id: str,
- params: Params = Depends(),
- db: Session = Depends(get_db)
-):
- # Validate user
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Get the source memory
- memory = get_memory_or_404(db, memory_id)
-
- # Extract category IDs from the source memory
- category_ids = [category.id for category in memory.categories]
-
- if not category_ids:
- return Page.create([], total=0, params=params)
-
- # Build query for related memories
- query = db.query(Memory).distinct(Memory.id).filter(
- Memory.user_id == user.id,
- Memory.id != memory_id,
- Memory.state != MemoryState.deleted
- ).join(Memory.categories).filter(
- Category.id.in_(category_ids)
- ).options(
- joinedload(Memory.categories),
- joinedload(Memory.app)
- ).order_by(
- func.count(Category.id).desc(),
- Memory.created_at.desc()
- ).group_by(Memory.id)
-
- # ⚑ Force page size to be 5
- params = Params(page=params.page, size=5)
-
- return sqlalchemy_paginate(
- query,
- params,
- transformer=lambda items: [
- MemoryResponse(
- id=memory.id,
- content=memory.content,
- created_at=memory.created_at,
- state=memory.state.value,
- app_id=memory.app_id,
- app_name=memory.app.name if memory.app else None,
- categories=[category.name for category in memory.categories],
- metadata_=memory.metadata_
- )
- for memory in items
- ]
- )
\ No newline at end of file
diff --git a/openmemory/api/app/routers/stats.py b/openmemory/api/app/routers/stats.py
deleted file mode 100644
index c609d3726..000000000
--- a/openmemory/api/app/routers/stats.py
+++ /dev/null
@@ -1,29 +0,0 @@
-from app.database import get_db
-from app.models import App, Memory, MemoryState, User
-from fastapi import APIRouter, Depends, HTTPException
-from sqlalchemy.orm import Session
-
-router = APIRouter(prefix="/api/v1/stats", tags=["stats"])
-
-async def get_profile(
- user_id: str,
- db: Session = Depends(get_db)
-):
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- raise HTTPException(status_code=404, detail="User not found")
-
- # Get total number of memories
- total_memories = db.query(Memory).filter(Memory.user_id == user.id, Memory.state != MemoryState.deleted).count()
-
- # Get total number of apps
- apps = db.query(App).filter(App.owner == user)
- total_apps = apps.count()
-
- return {
- "total_memories": total_memories,
- "total_apps": total_apps,
- "apps": apps.all()
- }
-
diff --git a/openmemory/api/app/schemas.py b/openmemory/api/app/schemas.py
deleted file mode 100644
index fd47b643d..000000000
--- a/openmemory/api/app/schemas.py
+++ /dev/null
@@ -1,65 +0,0 @@
-from datetime import datetime
-from typing import List, Optional
-from uuid import UUID
-
-from pydantic import BaseModel, ConfigDict, Field, validator
-
-
-class MemoryBase(BaseModel):
- content: str
- metadata_: Optional[dict] = Field(default_factory=dict)
-
-class MemoryCreate(MemoryBase):
- user_id: UUID
- app_id: UUID
-
-
-class Category(BaseModel):
- name: str
-
-
-class App(BaseModel):
- id: UUID
- name: str
-
-
-class Memory(MemoryBase):
- id: UUID
- user_id: UUID
- app_id: UUID
- created_at: datetime
- updated_at: Optional[datetime] = None
- state: str
- categories: Optional[List[Category]] = None
- app: App
-
- model_config = ConfigDict(from_attributes=True)
-
-class MemoryUpdate(BaseModel):
- content: Optional[str] = None
- metadata_: Optional[dict] = None
- state: Optional[str] = None
-
-
-class MemoryResponse(BaseModel):
- id: UUID
- content: str
- created_at: int
- state: str
- app_id: UUID
- app_name: str
- categories: List[str]
- metadata_: Optional[dict] = None
-
- @validator('created_at', pre=True)
- def convert_to_epoch(cls, v):
- if isinstance(v, datetime):
- return int(v.timestamp())
- return v
-
-class PaginatedMemoryResponse(BaseModel):
- items: List[MemoryResponse]
- total: int
- page: int
- size: int
- pages: int
diff --git a/openmemory/api/app/utils/__init__.py b/openmemory/api/app/utils/__init__.py
deleted file mode 100644
index e69de29bb..000000000
diff --git a/openmemory/api/app/utils/categorization.py b/openmemory/api/app/utils/categorization.py
deleted file mode 100644
index e20c40052..000000000
--- a/openmemory/api/app/utils/categorization.py
+++ /dev/null
@@ -1,43 +0,0 @@
-import logging
-from typing import List
-
-from app.utils.prompts import MEMORY_CATEGORIZATION_PROMPT
-from dotenv import load_dotenv
-from openai import OpenAI
-from pydantic import BaseModel
-from tenacity import retry, stop_after_attempt, wait_exponential
-
-load_dotenv()
-openai_client = OpenAI()
-
-
-class MemoryCategories(BaseModel):
- categories: List[str]
-
-
-@retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=15))
-def get_categories_for_memory(memory: str) -> List[str]:
- try:
- messages = [
- {"role": "system", "content": MEMORY_CATEGORIZATION_PROMPT},
- {"role": "user", "content": memory}
- ]
-
- # Let OpenAI handle the pydantic parsing directly
- completion = openai_client.beta.chat.completions.parse(
- model="gpt-4o-mini",
- messages=messages,
- response_format=MemoryCategories,
- temperature=0
- )
-
- parsed: MemoryCategories = completion.choices[0].message.parsed
- return [cat.strip().lower() for cat in parsed.categories]
-
- except Exception as e:
- logging.error(f"[ERROR] Failed to get categories: {e}")
- try:
- logging.debug(f"[DEBUG] Raw response: {completion.choices[0].message.content}")
- except Exception as debug_e:
- logging.debug(f"[DEBUG] Could not extract raw response: {debug_e}")
- raise
diff --git a/openmemory/api/app/utils/db.py b/openmemory/api/app/utils/db.py
deleted file mode 100644
index 50a90f6a9..000000000
--- a/openmemory/api/app/utils/db.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from typing import Tuple
-
-from app.models import App, User
-from sqlalchemy.orm import Session
-
-
-def get_or_create_user(db: Session, user_id: str) -> User:
- """Get or create a user with the given user_id"""
- user = db.query(User).filter(User.user_id == user_id).first()
- if not user:
- user = User(user_id=user_id)
- db.add(user)
- db.commit()
- db.refresh(user)
- return user
-
-
-def get_or_create_app(db: Session, user: User, app_id: str) -> App:
- """Get or create an app for the given user"""
- app = db.query(App).filter(App.owner_id == user.id, App.name == app_id).first()
- if not app:
- app = App(owner_id=user.id, name=app_id)
- db.add(app)
- db.commit()
- db.refresh(app)
- return app
-
-
-def get_user_and_app(db: Session, user_id: str, app_id: str) -> Tuple[User, App]:
- """Get or create both user and their app"""
- user = get_or_create_user(db, user_id)
- app = get_or_create_app(db, user, app_id)
- return user, app
diff --git a/openmemory/api/app/utils/memory.py b/openmemory/api/app/utils/memory.py
deleted file mode 100644
index 7afce595b..000000000
--- a/openmemory/api/app/utils/memory.py
+++ /dev/null
@@ -1,504 +0,0 @@
-"""
-Memory client utilities for OpenMemory.
-
-This module provides functionality to initialize and manage the Mem0 memory client
-with automatic configuration management and Docker environment support.
-
-Docker Ollama Configuration:
-When running inside a Docker container and using Ollama as the LLM or embedder provider,
-the system automatically detects the Docker environment and adjusts localhost URLs
-to properly reach the host machine where Ollama is running.
-
-Supported Docker host resolution (in order of preference):
-1. OLLAMA_HOST environment variable (if set)
-2. host.docker.internal (Docker Desktop for Mac/Windows)
-3. Docker bridge gateway IP (typically 172.17.0.1 on Linux)
-4. Fallback to 172.17.0.1
-
-Example configuration that will be automatically adjusted:
-{
- "llm": {
- "provider": "ollama",
- "config": {
- "model": "llama3.1:latest",
- "ollama_base_url": "http://localhost:11434" # Auto-adjusted in Docker
- }
- }
-}
-"""
-
-import hashlib
-import json
-import os
-import socket
-
-from app.database import SessionLocal
-from app.models import Config as ConfigModel
-
-from mem0 import Memory
-
-_memory_client = None
-_config_hash = None
-
-
-def _get_config_hash(config_dict):
- """Generate a hash of the config to detect changes."""
- config_str = json.dumps(config_dict, sort_keys=True)
- return hashlib.md5(config_str.encode()).hexdigest()
-
-
-def _get_docker_host_url():
- """
- Determine the appropriate host URL to reach host machine from inside Docker container.
- Returns the best available option for reaching the host from inside a container.
- """
- # Check for custom environment variable first
- custom_host = os.environ.get('OLLAMA_HOST')
- if custom_host:
- print(f"Using custom Ollama host from OLLAMA_HOST: {custom_host}")
- return custom_host.replace('http://', '').replace('https://', '').split(':')[0]
-
- # Check if we're running inside Docker
- if not os.path.exists('/.dockerenv'):
- # Not in Docker, return localhost as-is
- return "localhost"
-
- print("Detected Docker environment, adjusting host URL for Ollama...")
-
- # Try different host resolution strategies
- host_candidates = []
-
- # 1. host.docker.internal (works on Docker Desktop for Mac/Windows)
- try:
- socket.gethostbyname('host.docker.internal')
- host_candidates.append('host.docker.internal')
- print("Found host.docker.internal")
- except socket.gaierror:
- pass
-
- # 2. Docker bridge gateway (typically 172.17.0.1 on Linux)
- try:
- with open('/proc/net/route', 'r') as f:
- for line in f:
- fields = line.strip().split()
- if fields[1] == '00000000': # Default route
- gateway_hex = fields[2]
- gateway_ip = socket.inet_ntoa(bytes.fromhex(gateway_hex)[::-1])
- host_candidates.append(gateway_ip)
- print(f"Found Docker gateway: {gateway_ip}")
- break
- except (FileNotFoundError, IndexError, ValueError):
- pass
-
- # 3. Fallback to common Docker bridge IP
- if not host_candidates:
- host_candidates.append('172.17.0.1')
- print("Using fallback Docker bridge IP: 172.17.0.1")
-
- # Return the first available candidate
- return host_candidates[0]
-
-
-def _fix_ollama_urls(config_section):
- """
- Fix Ollama URLs for Docker environment.
- Replaces localhost URLs with appropriate Docker host URLs.
- Sets default ollama_base_url if not provided.
- """
- if not config_section or "config" not in config_section:
- return config_section
-
- ollama_config = config_section["config"]
-
- # Set default ollama_base_url if not provided
- if "ollama_base_url" not in ollama_config:
- ollama_config["ollama_base_url"] = "http://host.docker.internal:11434"
- else:
- # Check for ollama_base_url and fix if it's localhost
- url = ollama_config["ollama_base_url"]
- if "localhost" in url or "127.0.0.1" in url:
- docker_host = _get_docker_host_url()
- if docker_host != "localhost":
- new_url = url.replace("localhost", docker_host).replace("127.0.0.1", docker_host)
- ollama_config["ollama_base_url"] = new_url
- print(f"Adjusted Ollama URL from {url} to {new_url}")
-
- return config_section
-
-
-def reset_memory_client():
- """Reset the global memory client to force reinitialization with new config."""
- global _memory_client, _config_hash
- _memory_client = None
- _config_hash = None
-
-
-# --- LLM provider config factories ---
-
-def _build_ollama_llm_config(model, api_key, base_url, ollama_base_url):
- config = {"model": model or "llama3.1:latest"}
- # OLLAMA_BASE_URL takes precedence, then LLM_BASE_URL, then default
- config["ollama_base_url"] = ollama_base_url or base_url or "http://localhost:11434"
- return config
-
-
-def _build_openai_llm_config(model, api_key, base_url, ollama_base_url):
- config = {
- "model": model or "gpt-4o-mini",
- "api_key": api_key or "env:OPENAI_API_KEY",
- }
- if base_url:
- config["openai_base_url"] = base_url
- return config
-
-
-_LLM_CONFIG_FACTORIES = {
- "ollama": _build_ollama_llm_config,
- "openai": _build_openai_llm_config,
-}
-
-
-def _create_llm_config(provider, model, api_key, base_url, ollama_base_url):
- """Build LLM config using registered provider factory or generic fallback."""
- base_config = {
- "temperature": 0.1,
- "max_tokens": 2000,
- }
-
- factory = _LLM_CONFIG_FACTORIES.get(provider)
- if factory:
- base_config.update(factory(model, api_key, base_url, ollama_base_url))
- else:
- # Generic provider (anthropic, groq, together, deepseek, etc.)
- if not model:
- raise ValueError(
- f"LLM_MODEL environment variable is required when using LLM_PROVIDER='{provider}'. "
- f"Set LLM_MODEL to a valid model name for the '{provider}' provider."
- )
- base_config["model"] = model
- if api_key:
- base_config["api_key"] = api_key
-
- return base_config
-
-
-# --- Embedder provider config factories ---
-
-def _build_ollama_embedder_config(model, api_key, base_url, ollama_base_url, llm_base_url):
- config = {"model": model or "nomic-embed-text"}
- config["ollama_base_url"] = base_url or ollama_base_url or llm_base_url or "http://localhost:11434"
- return config
-
-
-def _build_openai_embedder_config(model, api_key, base_url, ollama_base_url, llm_base_url):
- config = {
- "model": model or "text-embedding-3-small",
- "api_key": api_key or "env:OPENAI_API_KEY",
- }
- if base_url:
- config["openai_base_url"] = base_url
- return config
-
-
-_EMBEDDER_CONFIG_FACTORIES = {
- "ollama": _build_ollama_embedder_config,
- "openai": _build_openai_embedder_config,
-}
-
-
-def _create_embedder_config(provider, model, api_key, base_url, ollama_base_url, llm_base_url):
- """Build embedder config using registered provider factory or generic fallback."""
- factory = _EMBEDDER_CONFIG_FACTORIES.get(provider)
- if factory:
- config = factory(model, api_key, base_url, ollama_base_url, llm_base_url)
- else:
- if not model:
- raise ValueError(
- f"EMBEDDER_MODEL environment variable is required when using EMBEDDER_PROVIDER='{provider}'. "
- f"Set EMBEDDER_MODEL to a valid model name for the '{provider}' provider."
- )
- config = {"model": model}
- if api_key:
- config["api_key"] = api_key
-
- return config
-
-
-def get_default_memory_config():
- """Get default memory client configuration with sensible defaults."""
- # Detect vector store based on environment variables
- vector_store_config = {
- "collection_name": "openmemory",
- "host": "mem0_store",
- }
-
- # Check for different vector store configurations based on environment variables
- if os.environ.get('CHROMA_HOST') and os.environ.get('CHROMA_PORT'):
- vector_store_provider = "chroma"
- vector_store_config.update({
- "host": os.environ.get('CHROMA_HOST'),
- "port": int(os.environ.get('CHROMA_PORT'))
- })
- elif os.environ.get('QDRANT_HOST') and os.environ.get('QDRANT_PORT'):
- vector_store_provider = "qdrant"
- vector_store_config.update({
- "host": os.environ.get('QDRANT_HOST'),
- "port": int(os.environ.get('QDRANT_PORT'))
- })
- elif os.environ.get('WEAVIATE_CLUSTER_URL') or (os.environ.get('WEAVIATE_HOST') and os.environ.get('WEAVIATE_PORT')):
- vector_store_provider = "weaviate"
- # Prefer an explicit cluster URL if provided; otherwise build from host/port
- cluster_url = os.environ.get('WEAVIATE_CLUSTER_URL')
- if not cluster_url:
- weaviate_host = os.environ.get('WEAVIATE_HOST')
- weaviate_port = int(os.environ.get('WEAVIATE_PORT'))
- cluster_url = f"http://{weaviate_host}:{weaviate_port}"
- vector_store_config = {
- "collection_name": "openmemory",
- "cluster_url": cluster_url
- }
- elif os.environ.get('REDIS_URL'):
- vector_store_provider = "redis"
- vector_store_config = {
- "collection_name": "openmemory",
- "redis_url": os.environ.get('REDIS_URL')
- }
- elif os.environ.get('PG_HOST') and os.environ.get('PG_PORT'):
- vector_store_provider = "pgvector"
- vector_store_config.update({
- "host": os.environ.get('PG_HOST'),
- "port": int(os.environ.get('PG_PORT')),
- "dbname": os.environ.get('PG_DB', 'mem0'),
- "user": os.environ.get('PG_USER', 'mem0'),
- "password": os.environ.get('PG_PASSWORD', 'mem0')
- })
- elif os.environ.get('MILVUS_HOST') and os.environ.get('MILVUS_PORT'):
- vector_store_provider = "milvus"
- # Construct the full URL as expected by MilvusDBConfig
- milvus_host = os.environ.get('MILVUS_HOST')
- milvus_port = int(os.environ.get('MILVUS_PORT'))
- milvus_url = f"http://{milvus_host}:{milvus_port}"
-
- vector_store_config = {
- "collection_name": "openmemory",
- "url": milvus_url,
- "token": os.environ.get('MILVUS_TOKEN', ''), # Always include, empty string for local setup
- "db_name": os.environ.get('MILVUS_DB_NAME', ''),
- "embedding_model_dims": 1536,
- "metric_type": "COSINE" # Using COSINE for better semantic similarity
- }
- elif os.environ.get('ELASTICSEARCH_HOST') and os.environ.get('ELASTICSEARCH_PORT'):
- vector_store_provider = "elasticsearch"
- # Construct the full URL with scheme since Elasticsearch client expects it
- elasticsearch_host = os.environ.get('ELASTICSEARCH_HOST')
- elasticsearch_port = int(os.environ.get('ELASTICSEARCH_PORT'))
- # Use http:// scheme since we're not using SSL
- full_host = f"http://{elasticsearch_host}"
-
- vector_store_config.update({
- "host": full_host,
- "port": elasticsearch_port,
- "user": os.environ.get('ELASTICSEARCH_USER', 'elastic'),
- "password": os.environ.get('ELASTICSEARCH_PASSWORD', 'changeme'),
- "verify_certs": False,
- "use_ssl": False,
- "embedding_model_dims": 1536
- })
- elif os.environ.get('OPENSEARCH_HOST') and os.environ.get('OPENSEARCH_PORT'):
- vector_store_provider = "opensearch"
- vector_store_config.update({
- "host": os.environ.get('OPENSEARCH_HOST'),
- "port": int(os.environ.get('OPENSEARCH_PORT'))
- })
- elif os.environ.get('FAISS_PATH'):
- vector_store_provider = "faiss"
- vector_store_config = {
- "collection_name": "openmemory",
- "path": os.environ.get('FAISS_PATH'),
- "embedding_model_dims": 1536,
- "distance_strategy": "cosine"
- }
- else:
- # Default fallback to Qdrant
- vector_store_provider = "qdrant"
- vector_store_config.update({
- "port": 6333,
- })
-
- print(f"Auto-detected vector store: {vector_store_provider} with config: {vector_store_config}")
-
- # Detect LLM provider from environment variables
- llm_provider = os.environ.get('LLM_PROVIDER', 'openai').lower()
- llm_model = os.environ.get('LLM_MODEL')
- llm_api_key = os.environ.get('LLM_API_KEY')
- llm_base_url = os.environ.get('LLM_BASE_URL')
- ollama_base_url = os.environ.get('OLLAMA_BASE_URL')
-
- llm_config = _create_llm_config(
- provider=llm_provider,
- model=llm_model,
- api_key=llm_api_key,
- base_url=llm_base_url,
- ollama_base_url=ollama_base_url,
- )
- print(f"Auto-detected LLM provider: {llm_provider}")
-
- # Detect embedder provider from environment variables
- embedder_provider = os.environ.get('EMBEDDER_PROVIDER', llm_provider if llm_provider == 'ollama' else 'openai').lower()
- embedder_model = os.environ.get('EMBEDDER_MODEL')
- embedder_api_key = os.environ.get('EMBEDDER_API_KEY')
- embedder_base_url = os.environ.get('EMBEDDER_BASE_URL')
-
- embedder_config = _create_embedder_config(
- provider=embedder_provider,
- model=embedder_model,
- api_key=embedder_api_key,
- base_url=embedder_base_url,
- ollama_base_url=ollama_base_url,
- llm_base_url=llm_base_url,
- )
- print(f"Auto-detected embedder provider: {embedder_provider}")
-
- return {
- "vector_store": {
- "provider": vector_store_provider,
- "config": vector_store_config
- },
- "llm": {
- "provider": llm_provider,
- "config": llm_config
- },
- "embedder": {
- "provider": embedder_provider,
- "config": embedder_config
- },
- "version": "v1.1"
- }
-
-
-def _parse_environment_variables(config_dict):
- """
- Parse environment variables in config values.
- Converts 'env:VARIABLE_NAME' to actual environment variable values.
- """
- if isinstance(config_dict, dict):
- parsed_config = {}
- for key, value in config_dict.items():
- if isinstance(value, str) and value.startswith("env:"):
- env_var = value.split(":", 1)[1]
- env_value = os.environ.get(env_var)
- if env_value:
- parsed_config[key] = env_value
- print(f"Loaded {env_var} from environment for {key}")
- else:
- print(f"Warning: Environment variable {env_var} not found, keeping original value")
- parsed_config[key] = value
- elif isinstance(value, dict):
- parsed_config[key] = _parse_environment_variables(value)
- else:
- parsed_config[key] = value
- return parsed_config
- return config_dict
-
-
-def get_memory_client(custom_instructions: str = None):
- """
- Get or initialize the Mem0 client.
-
- Args:
- custom_instructions: Optional instructions for the memory project.
-
- Returns:
- Initialized Mem0 client instance or None if initialization fails.
-
- Raises:
- Exception: If required API keys are not set or critical configuration is missing.
- """
- global _memory_client, _config_hash
-
- try:
- # Start with default configuration
- config = get_default_memory_config()
-
- # Variable to track custom instructions
- db_custom_instructions = None
-
- # Load configuration from database
- try:
- db = SessionLocal()
- db_config = db.query(ConfigModel).filter(ConfigModel.key == "main").first()
-
- if db_config:
- json_config = db_config.value
-
- # Extract custom instructions from openmemory settings
- if "openmemory" in json_config and "custom_instructions" in json_config["openmemory"]:
- db_custom_instructions = json_config["openmemory"]["custom_instructions"]
-
- # Override defaults with configurations from the database
- if "mem0" in json_config:
- mem0_config = json_config["mem0"]
-
- # Update LLM configuration if available
- if "llm" in mem0_config and mem0_config["llm"] is not None:
- config["llm"] = mem0_config["llm"]
-
- # Update Embedder configuration if available
- if "embedder" in mem0_config and mem0_config["embedder"] is not None:
- config["embedder"] = mem0_config["embedder"]
-
- if "vector_store" in mem0_config and mem0_config["vector_store"] is not None:
- config["vector_store"] = mem0_config["vector_store"]
- else:
- print("No configuration found in database, using defaults")
-
- db.close()
-
- except Exception as e:
- print(f"Warning: Error loading configuration from database: {e}")
- print("Using default configuration")
- # Continue with default configuration if database config can't be loaded
-
- # Use custom_instructions parameter first, then fall back to database value
- instructions_to_use = custom_instructions or db_custom_instructions
- if instructions_to_use:
- config["custom_fact_extraction_prompt"] = instructions_to_use
-
- # Fix Ollama URLs for Docker environment (applies to both env-var defaults and DB overrides)
- if config.get("llm", {}).get("provider") == "ollama":
- config["llm"] = _fix_ollama_urls(config["llm"])
- if config.get("embedder", {}).get("provider") == "ollama":
- config["embedder"] = _fix_ollama_urls(config["embedder"])
-
- # ALWAYS parse environment variables in the final config
- # This ensures that even default config values like "env:OPENAI_API_KEY" get parsed
- print("Parsing environment variables in final config...")
- config = _parse_environment_variables(config)
-
- # Check if config has changed by comparing hashes
- current_config_hash = _get_config_hash(config)
-
- # Only reinitialize if config changed or client doesn't exist
- if _memory_client is None or _config_hash != current_config_hash:
- print(f"Initializing memory client with config hash: {current_config_hash}")
- try:
- _memory_client = Memory.from_config(config_dict=config)
- _config_hash = current_config_hash
- print("Memory client initialized successfully")
- except Exception as init_error:
- print(f"Warning: Failed to initialize memory client: {init_error}")
- print("Server will continue running with limited memory functionality")
- _memory_client = None
- _config_hash = None
- return None
-
- return _memory_client
-
- except Exception as e:
- print(f"Warning: Exception occurred while initializing memory client: {e}")
- print("Server will continue running with limited memory functionality")
- return None
-
-
-def get_default_user_id():
- return "default_user"
diff --git a/openmemory/api/app/utils/permissions.py b/openmemory/api/app/utils/permissions.py
deleted file mode 100644
index 060caf962..000000000
--- a/openmemory/api/app/utils/permissions.py
+++ /dev/null
@@ -1,53 +0,0 @@
-from typing import Optional
-from uuid import UUID
-
-from app.models import App, Memory, MemoryState
-from sqlalchemy.orm import Session
-
-
-def check_memory_access_permissions(
- db: Session,
- memory: Memory,
- app_id: Optional[UUID] = None
-) -> bool:
- """
- Check if the given app has permission to access a memory based on:
- 1. Memory state (must be active)
- 2. App state (must not be paused)
- 3. App-specific access controls
-
- Args:
- db: Database session
- memory: Memory object to check access for
- app_id: Optional app ID to check permissions for
-
- Returns:
- bool: True if access is allowed, False otherwise
- """
- # Check if memory is active
- if memory.state != MemoryState.active:
- return False
-
- # If no app_id provided, only check memory state
- if not app_id:
- return True
-
- # Check if app exists and is active
- app = db.query(App).filter(App.id == app_id).first()
- if not app:
- return False
-
- # Check if app is paused/inactive
- if not app.is_active:
- return False
-
- # Check app-specific access controls
- from app.routers.memories import get_accessible_memory_ids
- accessible_memory_ids = get_accessible_memory_ids(db, app_id)
-
- # If accessible_memory_ids is None, all memories are accessible
- if accessible_memory_ids is None:
- return True
-
- # Check if memory is in the accessible set
- return memory.id in accessible_memory_ids
diff --git a/openmemory/api/app/utils/prompts.py b/openmemory/api/app/utils/prompts.py
deleted file mode 100644
index 669f2e600..000000000
--- a/openmemory/api/app/utils/prompts.py
+++ /dev/null
@@ -1,28 +0,0 @@
-MEMORY_CATEGORIZATION_PROMPT = """Your task is to assign each piece of information (or β€œmemory”) to one or more of the following categories. Feel free to use multiple categories per item when appropriate.
-
-- Personal: family, friends, home, hobbies, lifestyle
-- Relationships: social network, significant others, colleagues
-- Preferences: likes, dislikes, habits, favorite media
-- Health: physical fitness, mental health, diet, sleep
-- Travel: trips, commutes, favorite places, itineraries
-- Work: job roles, companies, projects, promotions
-- Education: courses, degrees, certifications, skills development
-- Projects: to‑dos, milestones, deadlines, status updates
-- AI, ML & Technology: infrastructure, algorithms, tools, research
-- Technical Support: bug reports, error logs, fixes
-- Finance: income, expenses, investments, billing
-- Shopping: purchases, wishlists, returns, deliveries
-- Legal: contracts, policies, regulations, privacy
-- Entertainment: movies, music, games, books, events
-- Messages: emails, SMS, alerts, reminders
-- Customer Support: tickets, inquiries, resolutions
-- Product Feedback: ratings, bug reports, feature requests
-- News: articles, headlines, trending topics
-- Organization: meetings, appointments, calendars
-- Goals: ambitions, KPIs, long‑term objectives
-
-Guidelines:
-- Return only the categories under 'categories' key in the JSON format.
-- If you cannot categorize the memory, return an empty list with key 'categories'.
-- Don't limit yourself to the categories listed above only. Feel free to create new categories based on the memory. Make sure that it is a single phrase.
-"""
diff --git a/openmemory/api/config.json b/openmemory/api/config.json
deleted file mode 100644
index 15defa011..000000000
--- a/openmemory/api/config.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "mem0": {
- "llm": {
- "provider": "openai",
- "config": {
- "model": "gpt-4o-mini",
- "temperature": 0.1,
- "max_tokens": 2000,
- "api_key": "env:API_KEY"
- }
- },
- "embedder": {
- "provider": "openai",
- "config": {
- "model": "text-embedding-3-small",
- "api_key": "env:API_KEY"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/openmemory/api/default_config.json b/openmemory/api/default_config.json
deleted file mode 100644
index 256e350f8..000000000
--- a/openmemory/api/default_config.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "mem0": {
- "llm": {
- "provider": "openai",
- "config": {
- "model": "gpt-4o-mini",
- "temperature": 0.1,
- "max_tokens": 2000,
- "api_key": "env:OPENAI_API_KEY"
- }
- },
- "embedder": {
- "provider": "openai",
- "config": {
- "model": "text-embedding-3-small",
- "api_key": "env:OPENAI_API_KEY"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/openmemory/api/main.py b/openmemory/api/main.py
deleted file mode 100644
index 593abd413..000000000
--- a/openmemory/api/main.py
+++ /dev/null
@@ -1,89 +0,0 @@
-import datetime
-from uuid import uuid4
-
-from app.config import DEFAULT_APP_ID, USER_ID
-from app.database import Base, SessionLocal, engine
-from app.mcp_server import setup_mcp_server
-from app.models import App, User
-from app.routers import apps_router, backup_router, config_router, memories_router, stats_router
-from fastapi import FastAPI
-from fastapi.middleware.cors import CORSMiddleware
-from fastapi_pagination import add_pagination
-
-app = FastAPI(title="OpenMemory API")
-
-app.add_middleware(
- CORSMiddleware,
- allow_origins=["*"],
- allow_credentials=True,
- allow_methods=["*"],
- allow_headers=["*"],
-)
-
-# Create all tables
-Base.metadata.create_all(bind=engine)
-
-# Check for USER_ID and create default user if needed
-def create_default_user():
- db = SessionLocal()
- try:
- # Check if user exists
- user = db.query(User).filter(User.user_id == USER_ID).first()
- if not user:
- # Create default user
- user = User(
- id=uuid4(),
- user_id=USER_ID,
- name="Default User",
- created_at=datetime.datetime.now(datetime.UTC)
- )
- db.add(user)
- db.commit()
- finally:
- db.close()
-
-
-def create_default_app():
- db = SessionLocal()
- try:
- user = db.query(User).filter(User.user_id == USER_ID).first()
- if not user:
- return
-
- # Check if app already exists
- existing_app = db.query(App).filter(
- App.name == DEFAULT_APP_ID,
- App.owner_id == user.id
- ).first()
-
- if existing_app:
- return
-
- app = App(
- id=uuid4(),
- name=DEFAULT_APP_ID,
- owner_id=user.id,
- created_at=datetime.datetime.now(datetime.UTC),
- updated_at=datetime.datetime.now(datetime.UTC),
- )
- db.add(app)
- db.commit()
- finally:
- db.close()
-
-# Create default user on startup
-create_default_user()
-create_default_app()
-
-# Setup MCP server
-setup_mcp_server(app)
-
-# Include routers
-app.include_router(memories_router)
-app.include_router(apps_router)
-app.include_router(stats_router)
-app.include_router(config_router)
-app.include_router(backup_router)
-
-# Add pagination support
-add_pagination(app)
diff --git a/openmemory/api/requirements.txt b/openmemory/api/requirements.txt
deleted file mode 100644
index d30e43b03..000000000
--- a/openmemory/api/requirements.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-fastapi>=0.68.0
-uvicorn>=0.15.0
-sqlalchemy>=1.4.0
-python-dotenv>=1.2.2
-alembic>=1.7.0
-psycopg2-binary>=2.9.0
-python-multipart>=0.0.27
-urllib3>=2.7.0
-fastapi-pagination>=0.12.0
-mem0ai>=0.1.92
-openai>=1.40.0
-mcp[cli]>=1.25.4
-starlette>=0.40.0
-pytest>=7.0.0
-pytest-asyncio>=0.21.0
-httpx>=0.24.0
-pytest-cov>=4.0.0
-tenacity==9.1.2
-anthropic==0.51.0
-ollama==0.4.8
\ No newline at end of file
diff --git a/openmemory/api/tests/__init__.py b/openmemory/api/tests/__init__.py
deleted file mode 100644
index e69de29bb..000000000
diff --git a/openmemory/api/tests/test_mcp_server.py b/openmemory/api/tests/test_mcp_server.py
deleted file mode 100644
index 6c63c79cc..000000000
--- a/openmemory/api/tests/test_mcp_server.py
+++ /dev/null
@@ -1,396 +0,0 @@
-"""Tests for the MCP server endpoints (SSE and Streamable HTTP transports).
-
-Covers the Streamable HTTP transport (MCP spec 2025-03-26+) and the legacy SSE
-transport. Tests exercise the full JSON-RPC flow β€” initialize, tools/list,
-tools/call β€” as well as error handling and context-variable isolation.
-"""
-
-import os
-
-# Set dummy keys before any imports that trigger client initialization
-os.environ.setdefault("OPENAI_API_KEY", "test-key")
-
-import pytest
-import pytest_asyncio
-from httpx import ASGITransport, AsyncClient
-
-from app.mcp_server import client_name_var, mcp, mcp_router, user_id_var
-
-# MCP Streamable HTTP requires the Accept header to include application/json.
-# Including text/event-stream as well satisfies GET (SSE) requests.
-MCP_HEADERS = {"Accept": "application/json, text/event-stream"}
-
-
-# ---------------------------------------------------------------------------
-# Fixtures
-# ---------------------------------------------------------------------------
-
-def test_app():
- """Create a minimal FastAPI app with just the MCP router for testing."""
- from fastapi import FastAPI
-
- app = FastAPI()
- app.include_router(mcp_router)
- return app
-
-
-@pytest_asyncio.fixture
-async def client(test_app):
- """Async HTTP client wired to the test app via ASGI transport."""
- transport = ASGITransport(app=test_app)
- async with AsyncClient(transport=transport, base_url="http://test") as ac:
- yield ac
-
-
-# ---------------------------------------------------------------------------
-# Helpers
-# ---------------------------------------------------------------------------
-
-def _jsonrpc(method: str, params: dict | None = None, req_id: int = 1) -> dict:
- """Build a JSON-RPC 2.0 request envelope."""
- return {
- "jsonrpc": "2.0",
- "id": req_id,
- "method": method,
- "params": params or {},
- }
-
-
-def _initialize_payload(req_id: int = 1) -> dict:
- return _jsonrpc(
- "initialize",
- {
- "protocolVersion": "2025-03-26",
- "capabilities": {},
- "clientInfo": {"name": "test-client", "version": "0.1.0"},
- },
- req_id=req_id,
- )
-
-
-# ---------------------------------------------------------------------------
-# Streamable HTTP β€” route existence & basic protocol
-# ---------------------------------------------------------------------------
-
-class TestStreamableHTTPBasic:
- """Verify the Streamable HTTP route is registered and responds."""
-
- @pytest.mark.asyncio
- async def test_post_initialize(self, client):
- """POST initialize should return a valid JSON-RPC result."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 200
- data = resp.json()
- assert data["jsonrpc"] == "2.0"
- assert data["id"] == 1
- assert "result" in data
- result = data["result"]
- assert "serverInfo" in result
- assert "capabilities" in result
- assert result["protocolVersion"] == "2025-03-26"
-
- @pytest.mark.asyncio
- async def test_delete_returns_method_not_allowed(self, client):
- """DELETE in stateless mode should return 405 (no session to terminate)."""
- resp = await client.delete(
- "/mcp/testclient/http/user1",
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 405
-
- @pytest.mark.asyncio
- async def test_missing_accept_header_returns_406(self, client):
- """POST without the required Accept header should return 406."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- )
- assert resp.status_code == 406
-
- @pytest.mark.asyncio
- async def test_invalid_json_returns_400(self, client):
- """POST with unparseable body should return 400."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- content=b"not json",
- headers={**MCP_HEADERS, "Content-Type": "application/json"},
- )
- assert resp.status_code == 400
-
- @pytest.mark.asyncio
- async def test_route_not_found_for_wrong_path(self, client):
- """Requests to a non-existent path should 404."""
- resp = await client.post(
- "/mcp/testclient/nonexistent/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 404
-
-
-# ---------------------------------------------------------------------------
-# Streamable HTTP β€” full protocol flow
-# ---------------------------------------------------------------------------
-
-class TestStreamableHTTPProtocol:
- """End-to-end JSON-RPC flows over Streamable HTTP."""
-
- @pytest.mark.asyncio
- async def test_tools_list(self, client):
- """tools/list should return all registered MCP tools."""
- init_resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- assert init_resp.status_code == 200
-
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_jsonrpc("tools/list", req_id=2),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 200
- data = resp.json()
- assert "result" in data
- tool_names = {t["name"] for t in data["result"]["tools"]}
- expected = {"add_memories", "search_memory", "list_memories",
- "delete_memories", "delete_all_memories"}
- assert expected.issubset(tool_names), f"Missing tools: {expected - tool_names}"
-
- @pytest.mark.asyncio
- async def test_tools_list_has_descriptions(self, client):
- """Every tool returned by tools/list should have a non-empty description."""
- await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_jsonrpc("tools/list", req_id=2),
- headers=MCP_HEADERS,
- )
- for tool in resp.json()["result"]["tools"]:
- assert tool.get("description"), f"Tool {tool['name']} has no description"
-
- @pytest.mark.asyncio
- async def test_tools_list_has_input_schemas(self, client):
- """Every tool should declare an inputSchema."""
- await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_jsonrpc("tools/list", req_id=2),
- headers=MCP_HEADERS,
- )
- for tool in resp.json()["result"]["tools"]:
- assert "inputSchema" in tool, f"Tool {tool['name']} missing inputSchema"
-
- @pytest.mark.asyncio
- async def test_call_unknown_tool_returns_error(self, client):
- """Calling a non-existent tool should return a JSON-RPC error."""
- await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_jsonrpc("tools/call", {"name": "no_such_tool", "arguments": {}}, req_id=2),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 200
- data = resp.json()
- assert "error" in data or (
- "result" in data and data["result"].get("isError")
- )
-
- @pytest.mark.asyncio
- async def test_unknown_jsonrpc_method(self, client):
- """An unknown JSON-RPC method should return an error."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_jsonrpc("nonexistent/method"),
- headers=MCP_HEADERS,
- )
- assert resp.status_code in (200, 400)
-
- @pytest.mark.asyncio
- async def test_response_content_type_is_json(self, client):
- """Responses should have Content-Type: application/json."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- ct = resp.headers.get("content-type", "")
- assert "application/json" in ct
-
-
-# ---------------------------------------------------------------------------
-# Streamable HTTP β€” context variable handling
-# ---------------------------------------------------------------------------
-
-class TestStreamableHTTPContext:
- """Verify that user_id and client_name context variables are set correctly."""
-
- @pytest.mark.asyncio
- async def test_context_vars_set_during_tool_call(self, client):
- """Context vars should reflect the path parameters during tool execution."""
- captured = {}
-
- @mcp.tool(name="__test_ctx", description="test only")
- async def _capture(query: str = "") -> str:
- captured["user_id"] = user_id_var.get(None)
- captured["client_name"] = client_name_var.get(None)
- return "ok"
-
- try:
- await client.post(
- "/mcp/my-app/http/alice",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- resp = await client.post(
- "/mcp/my-app/http/alice",
- json=_jsonrpc("tools/call", {"name": "__test_ctx", "arguments": {}}, req_id=2),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 200
- assert captured.get("user_id") == "alice"
- assert captured.get("client_name") == "my-app"
- finally:
- mcp._tool_manager._tools.pop("__test_ctx", None)
-
- @pytest.mark.asyncio
- async def test_different_users_are_isolated(self, client):
- """Sequential requests with different user_ids must not leak state."""
- results = []
-
- @mcp.tool(name="__test_uid_iso", description="test only")
- async def _capture_uid(query: str = "") -> str:
- results.append(user_id_var.get(None))
- return "ok"
-
- try:
- for uid in ("userA", "userB", "userC"):
- await client.post(
- f"/mcp/app1/http/{uid}",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- await client.post(
- f"/mcp/app1/http/{uid}",
- json=_jsonrpc("tools/call", {"name": "__test_uid_iso", "arguments": {}}, req_id=2),
- headers=MCP_HEADERS,
- )
-
- assert results == ["userA", "userB", "userC"]
- finally:
- mcp._tool_manager._tools.pop("__test_uid_iso", None)
-
- @pytest.mark.asyncio
- async def test_different_clients_are_isolated(self, client):
- """Sequential requests with different client_names must not leak state."""
- results = []
-
- @mcp.tool(name="__test_cn_iso", description="test only")
- async def _capture_cn(query: str = "") -> str:
- results.append(client_name_var.get(None))
- return "ok"
-
- try:
- for cn in ("cursor", "windsurf", "claude"):
- await client.post(
- f"/mcp/{cn}/http/user1",
- json=_initialize_payload(),
- headers=MCP_HEADERS,
- )
- await client.post(
- f"/mcp/{cn}/http/user1",
- json=_jsonrpc("tools/call", {"name": "__test_cn_iso", "arguments": {}}, req_id=2),
- headers=MCP_HEADERS,
- )
-
- assert results == ["cursor", "windsurf", "claude"]
- finally:
- mcp._tool_manager._tools.pop("__test_cn_iso", None)
-
-
-# ---------------------------------------------------------------------------
-# Streamable HTTP β€” response correctness
-# ---------------------------------------------------------------------------
-
-class TestStreamableHTTPResponses:
- """Verify that captured responses are returned correctly to the caller."""
-
- @pytest.mark.asyncio
- async def test_error_status_codes_are_preserved(self, client):
- """Transport error codes (e.g. 406) must be forwarded, not masked as 200."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(),
- )
- assert resp.status_code == 406
-
- @pytest.mark.asyncio
- async def test_delete_status_code_preserved(self, client):
- """DELETE 405 from stateless transport must not be masked."""
- resp = await client.delete(
- "/mcp/testclient/http/user1",
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 405
-
- @pytest.mark.asyncio
- async def test_multiple_sequential_requests(self, client):
- """Multiple requests in sequence should each get independent responses."""
- for i in range(5):
- resp = await client.post(
- "/mcp/testclient/http/user1",
- json=_initialize_payload(req_id=i + 1),
- headers=MCP_HEADERS,
- )
- assert resp.status_code == 200
- data = resp.json()
- assert data["id"] == i + 1
- assert "result" in data
-
- @pytest.mark.asyncio
- async def test_wrong_content_type_returns_error(self, client):
- """POST with wrong Content-Type should return an error status."""
- resp = await client.post(
- "/mcp/testclient/http/user1",
- content=b'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}',
- headers={**MCP_HEADERS, "Content-Type": "text/plain"},
- )
- assert resp.status_code in (400, 415)
-
-
-# ---------------------------------------------------------------------------
-# Route registration
-# ---------------------------------------------------------------------------
-
-class TestRouteRegistration:
- """Verify all expected routes are registered in the router."""
-
- def test_sse_route_is_registered(self, test_app):
- routes = [r.path for r in test_app.routes if hasattr(r, "path")]
- assert "/mcp/{client_name}/sse/{user_id}" in routes
-
- def test_sse_post_messages_route_is_registered(self, test_app):
- routes = [r.path for r in test_app.routes if hasattr(r, "path")]
- assert "/mcp/messages/" in routes or "/mcp/{client_name}/sse/{user_id}/messages/" in routes
-
- def test_streamable_http_route_is_registered(self, test_app):
- routes = [r.path for r in test_app.routes if hasattr(r, "path")]
- assert "/mcp/{client_name}/http/{user_id}" in routes
diff --git a/openmemory/backup-scripts/export_openmemory.sh b/openmemory/backup-scripts/export_openmemory.sh
deleted file mode 100644
index cbe7b3040..000000000
--- a/openmemory/backup-scripts/export_openmemory.sh
+++ /dev/null
@@ -1,393 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-
-# Export OpenMemory data from a running Docker container without relying on API endpoints.
-# Produces: memories.json + memories.jsonl.gz zipped as memories_export_<USER_ID>.zip
-#
-# Requirements:
-# - docker available locally
-# - The target container has Python + SQLAlchemy and access to the same DATABASE_URL it uses in prod
-#
-# Usage:
-# ./export_openmemory.sh --user-id <USER_ID> [--container <NAME_OR_ID>] [--app-id <UUID>] [--from-date <epoch_secs>] [--to-date <epoch_secs>]
-#
-# Notes:
-# - USER_ID is the external user identifier (e.g., "vikramiyer"), not the internal UUID.
-# - If --container is omitted, the script uses container name "openmemory-openmemory-mcp-1".
-# - The script writes intermediate files to /tmp inside the container, then docker cp's them out and zips locally.
-
-usage() {
- echo "Usage: $0 --user-id <USER_ID> [--container <NAME_OR_ID>] [--app-id <UUID>] [--from-date <epoch_secs>] [--to-date <epoch_secs>]"
- exit 1
-}
-
-USER_ID=""
-CONTAINER=""
-APP_ID=""
-FROM_DATE=""
-TO_DATE=""
-
-while [[ $# -gt 0 ]]; do
- case "$1" in
- --user-id) USER_ID="${2:-}"; shift 2 ;;
- --container) CONTAINER="${2:-}"; shift 2 ;;
- --app-id) APP_ID="${2:-}"; shift 2 ;;
- --from-date) FROM_DATE="${2:-}"; shift 2 ;;
- --to-date) TO_DATE="${2:-}"; shift 2 ;;
- -h|--help) usage ;;
- *) echo "Unknown arg: $1"; usage ;;
- esac
-done
-
-if [[ -z "${USER_ID}" ]]; then
- echo "ERROR: --user-id is required"
- usage
-fi
-
-if [[ -z "${CONTAINER}" ]]; then
- CONTAINER="openmemory-openmemory-mcp-1"
-fi
-
-# Verify the container exists and is running
-if ! docker ps --format '{{.Names}}' | grep -qx "${CONTAINER}"; then
- echo "ERROR: Container '${CONTAINER}' not found/running. Pass --container <NAME_OR_ID> if different."
- exit 1
-fi
-
-# Verify python is available inside the container
-if ! docker exec "${CONTAINER}" sh -lc 'command -v python3 >/dev/null 2>&1 || command -v python >/dev/null 2>&1'; then
- echo "ERROR: Python is not available in container ${CONTAINER}"
- exit 1
-fi
-
-PY_BIN="python3"
-if ! docker exec "${CONTAINER}" sh -lc 'command -v python3 >/dev/null 2>&1'; then
- PY_BIN="python"
-fi
-
-echo "Using container: ${CONTAINER}"
-echo "Exporting data for user_id: ${USER_ID}"
-
-# Run Python inside the container to generate memories.json and memories.jsonl.gz in /tmp
-set +e
-cat <<'PYCODE' | docker exec -i \
- -e EXPORT_USER_ID="${USER_ID}" \
- -e EXPORT_APP_ID="${APP_ID}" \
- -e EXPORT_FROM_DATE="${FROM_DATE}" \
- -e EXPORT_TO_DATE="${TO_DATE}" \
- "${CONTAINER}" "${PY_BIN}" -
-import os
-import sys
-import json
-import gzip
-import uuid
-import datetime
-from typing import Any, Dict, List
-
-try:
- from sqlalchemy import create_engine, text
-except Exception as e:
- print(f"ERROR: SQLAlchemy not available inside the container: {e}", file=sys.stderr)
- sys.exit(3)
-
-def _iso(dt):
- if dt is None:
- return None
- try:
- if isinstance(dt, str):
- try:
- dt_obj = datetime.datetime.fromisoformat(dt.replace("Z", "+00:00"))
- except Exception:
- return dt
- else:
- dt_obj = dt
- if dt_obj.tzinfo is None:
- dt_obj = dt_obj.replace(tzinfo=datetime.timezone.utc)
- else:
- dt_obj = dt_obj.astimezone(datetime.timezone.utc)
- return dt_obj.isoformat()
- except Exception:
- return None
-
-def _json_load_maybe(val):
- if isinstance(val, (dict, list)) or val is None:
- return val
- if isinstance(val, (bytes, bytearray)):
- try:
- return json.loads(val.decode("utf-8"))
- except Exception:
- try:
- return val.decode("utf-8", "ignore")
- except Exception:
- return None
- if isinstance(val, str):
- try:
- return json.loads(val)
- except Exception:
- return val
- return val
-
-def _named_in_clause(prefix: str, items: List[Any]):
- names = [f":{prefix}{i}" for i in range(len(items))]
- params = {f"{prefix}{i}": items[i] for i in range(len(items))}
- return ", ".join(names), params
-
-DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./openmemory.db")
-user_id_str = os.getenv("EXPORT_USER_ID")
-app_id_filter = os.getenv("EXPORT_APP_ID") or None
-from_date = os.getenv("EXPORT_FROM_DATE")
-to_date = os.getenv("EXPORT_TO_DATE")
-
-if not user_id_str:
- print("Missing EXPORT_USER_ID", file=sys.stderr)
- sys.exit(2)
-
-from_ts = None
-to_ts = None
-try:
- if from_date:
- from_ts = int(from_date)
- if to_date:
- to_ts = int(to_date)
-except Exception:
- pass
-
-engine = create_engine(DATABASE_URL)
-
-with engine.connect() as conn:
- user_row = conn.execute(
- text("SELECT id, user_id, name, email, metadata, created_at, updated_at FROM users WHERE user_id = :uid"),
- {"uid": user_id_str}
- ).mappings().first()
- if not user_row:
- print(f'User not found for user_id "{user_id_str}"', file=sys.stderr)
- sys.exit(1)
-
- user_uuid = user_row["id"]
-
- # Build memories filter
- params = {"user_id": user_uuid}
- conditions = ["user_id = :user_id"]
- if from_ts is not None:
- params["from_dt"] = datetime.datetime.fromtimestamp(from_ts, tz=datetime.timezone.utc)
- conditions.append("created_at >= :from_dt")
- if to_ts is not None:
- params["to_dt"] = datetime.datetime.fromtimestamp(to_ts, tz=datetime.timezone.utc)
- conditions.append("created_at <= :to_dt")
- if app_id_filter:
- try:
- # Accept UUID or raw DB value
- app_uuid = uuid.UUID(app_id_filter)
- params["app_id"] = str(app_uuid)
- except Exception:
- params["app_id"] = app_id_filter
- conditions.append("app_id = :app_id")
-
- mem_sql = f"""
- SELECT id, user_id, app_id, content, metadata, state, created_at, updated_at, archived_at, deleted_at
- FROM memories
- WHERE {' AND '.join(conditions)}
- """
- mem_rows = list(conn.execute(text(mem_sql), params).mappings())
- memory_ids = [r["id"] for r in mem_rows]
- app_ids = sorted({r["app_id"] for r in mem_rows if r["app_id"] is not None})
-
- # memory_categories
- mc_rows = []
- if memory_ids:
- names, in_params = _named_in_clause("mid", memory_ids)
- mc_rows = list(conn.execute(
- text(f"SELECT memory_id, category_id FROM memory_categories WHERE memory_id IN ({names})"),
- in_params
- ).mappings())
-
- # categories for referenced category_ids
- cats = []
- cat_ids = sorted({r["category_id"] for r in mc_rows})
- if cat_ids:
- names, in_params = _named_in_clause("cid", cat_ids)
- cats = list(conn.execute(
- text(f"SELECT id, name, description, created_at, updated_at FROM categories WHERE id IN ({names})"),
- in_params
- ).mappings())
-
- # apps for referenced app_ids
- apps = []
- if app_ids:
- names, in_params = _named_in_clause("aid", app_ids)
- apps = list(conn.execute(
- text(f"SELECT id, owner_id, name, description, metadata, is_active, created_at, updated_at FROM apps WHERE id IN ({names})"),
- in_params
- ).mappings())
-
- # status history for selected memories
- history = []
- if memory_ids:
- names, in_params = _named_in_clause("hid", memory_ids)
- history = list(conn.execute(
- text(f"SELECT id, memory_id, changed_by, old_state, new_state, changed_at FROM memory_status_history WHERE memory_id IN ({names})"),
- in_params
- ).mappings())
-
- # access_controls for the apps
- acls = []
- if app_ids:
- names, in_params = _named_in_clause("sid", app_ids)
- acls = list(conn.execute(
- text(f"""SELECT id, subject_type, subject_id, object_type, object_id, effect, created_at
- FROM access_controls
- WHERE subject_type = 'app' AND subject_id IN ({names})"""),
- in_params
- ).mappings())
-
- # Build helper maps
- app_name_by_id = {r["id"]: r["name"] for r in apps}
- app_rec_by_id = {r["id"]: r for r in apps}
- cat_name_by_id = {r["id"]: r["name"] for r in cats}
- mem_cat_ids_map: Dict[Any, List[Any]] = {}
- mem_cat_names_map: Dict[Any, List[str]] = {}
- for r in mc_rows:
- mem_cat_ids_map.setdefault(r["memory_id"], []).append(r["category_id"])
- mem_cat_names_map.setdefault(r["memory_id"], []).append(cat_name_by_id.get(r["category_id"], ""))
-
- # Build sqlite-like payload
- sqlite_payload = {
- "user": {
- "id": str(user_row["id"]),
- "user_id": user_row["user_id"],
- "name": user_row.get("name"),
- "email": user_row.get("email"),
- "metadata": _json_load_maybe(user_row.get("metadata")),
- "created_at": _iso(user_row.get("created_at")),
- "updated_at": _iso(user_row.get("updated_at")),
- },
- "apps": [
- {
- "id": str(a["id"]),
- "owner_id": str(a["owner_id"]) if a.get("owner_id") else None,
- "name": a["name"],
- "description": a.get("description"),
- "metadata": _json_load_maybe(a.get("metadata")),
- "is_active": bool(a.get("is_active")),
- "created_at": _iso(a.get("created_at")),
- "updated_at": _iso(a.get("updated_at")),
- }
- for a in apps
- ],
- "categories": [
- {
- "id": str(c["id"]),
- "name": c["name"],
- "description": c.get("description"),
- "created_at": _iso(c.get("created_at")),
- "updated_at": _iso(c.get("updated_at")),
- }
- for c in cats
- ],
- "memories": [
- {
- "id": str(m["id"]),
- "user_id": str(m["user_id"]),
- "app_id": str(m["app_id"]) if m.get("app_id") else None,
- "content": m.get("content") or "",
- "metadata": _json_load_maybe(m.get("metadata")) or {},
- "state": m.get("state"),
- "created_at": _iso(m.get("created_at")),
- "updated_at": _iso(m.get("updated_at")),
- "archived_at": _iso(m.get("archived_at")),
- "deleted_at": _iso(m.get("deleted_at")),
- "category_ids": [str(cid) for cid in mem_cat_ids_map.get(m["id"], [])],
- }
- for m in mem_rows
- ],
- "memory_categories": [
- {"memory_id": str(r["memory_id"]), "category_id": str(r["category_id"])}
- for r in mc_rows
- ],
- "status_history": [
- {
- "id": str(h["id"]),
- "memory_id": str(h["memory_id"]),
- "changed_by": str(h["changed_by"]),
- "old_state": h.get("old_state"),
- "new_state": h.get("new_state"),
- "changed_at": _iso(h.get("changed_at")),
- }
- for h in history
- ],
- "access_controls": [
- {
- "id": str(ac["id"]),
- "subject_type": ac.get("subject_type"),
- "subject_id": str(ac["subject_id"]) if ac.get("subject_id") else None,
- "object_type": ac.get("object_type"),
- "object_id": str(ac["object_id"]) if ac.get("object_id") else None,
- "effect": ac.get("effect"),
- "created_at": _iso(ac.get("created_at")),
- }
- for ac in acls
- ],
- "export_meta": {
- "app_id_filter": str(app_id_filter) if app_id_filter else None,
- "from_date": from_ts,
- "to_date": to_ts,
- "version": "1",
- "generated_at": datetime.datetime.now(datetime.timezone.utc).isoformat(),
- },
- }
-
- # Write memories.json
- out_json = "/tmp/memories.json"
- with open(out_json, "w", encoding="utf-8") as f:
- json.dump(sqlite_payload, f, indent=2, ensure_ascii=False)
-
- # Write logical jsonl.gz
- out_jsonl_gz = "/tmp/memories.jsonl.gz"
- with gzip.open(out_jsonl_gz, "wb") as gz:
- for m in mem_rows:
- record = {
- "id": str(m["id"]),
- "content": m.get("content") or "",
- "metadata": _json_load_maybe(m.get("metadata")) or {},
- "created_at": _iso(m.get("created_at")),
- "updated_at": _iso(m.get("updated_at")),
- "state": m.get("state"),
- "app": app_name_by_id.get(m.get("app_id")) if m.get("app_id") else None,
- "categories": [c for c in mem_cat_names_map.get(m["id"], []) if c],
- }
- gz.write((json.dumps(record, ensure_ascii=False) + "\n").encode("utf-8"))
-
- print(out_json)
- print(out_jsonl_gz)
-PYCODE
-PY_EXIT=$?
-set -e
-if [[ $PY_EXIT -ne 0 ]]; then
- echo "ERROR: Export failed inside container (exit code $PY_EXIT)"
- exit $PY_EXIT
-fi
-
-# Copy files out of the container
-TMPDIR="$(mktemp -d)"
-docker cp "${CONTAINER}:/tmp/memories.json" "${TMPDIR}/memories.json"
-docker cp "${CONTAINER}:/tmp/memories.jsonl.gz" "${TMPDIR}/memories.jsonl.gz"
-
-# Create zip on host
-ZIP_NAME="memories_export_${USER_ID}.zip"
-if command -v zip >/dev/null 2>&1; then
- (cd "${TMPDIR}" && zip -q -r "../${ZIP_NAME}" "memories.json" "memories.jsonl.gz")
- mv "${TMPDIR}/../${ZIP_NAME}" "./${ZIP_NAME}"
-else
- # Fallback: use Python zipfile
- python3 - <<PYFALLBACK
-import sys, zipfile
-zf = zipfile.ZipFile("${ZIP_NAME}", "w", compression=zipfile.ZIP_DEFLATED)
-zf.write("${TMPDIR}/memories.json", arcname="memories.json")
-zf.write("${TMPDIR}/memories.jsonl.gz", arcname="memories.jsonl.gz")
-zf.close()
-print("${ZIP_NAME}")
-PYFALLBACK
-fi
-
-echo "Wrote ./${ZIP_NAME}"
-echo "Done."
\ No newline at end of file
diff --git a/openmemory/compose/chroma.yml b/openmemory/compose/chroma.yml
deleted file mode 100644
index 3961fff2c..000000000
--- a/openmemory/compose/chroma.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-services:
- mem0_store:
- image: ghcr.io/chroma-core/chroma:latest
- restart: unless-stopped
- environment:
- - CHROMA_SERVER_HOST=0.0.0.0
- - CHROMA_SERVER_HTTP_PORT=8000
- ports:
- - "8000:8000"
- volumes:
- - mem0_storage:/data
\ No newline at end of file
diff --git a/openmemory/compose/elasticsearch.yml b/openmemory/compose/elasticsearch.yml
deleted file mode 100644
index 22e909e95..000000000
--- a/openmemory/compose/elasticsearch.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-services:
- mem0_store:
- image: docker.elastic.co/elasticsearch/elasticsearch:8.13.4
- restart: unless-stopped
- environment:
- - discovery.type=single-node
- - xpack.security.enabled=false
- - ES_JAVA_OPTS=-Xms512m -Xmx512m
- ulimits:
- memlock: { soft: -1, hard: -1 }
- nofile: { soft: 65536, hard: 65536 }
- ports:
- - "9200:9200"
- volumes:
- - mem0_storage:/usr/share/elasticsearch/data
\ No newline at end of file
diff --git a/openmemory/compose/faiss.yml b/openmemory/compose/faiss.yml
deleted file mode 100644
index 3b2c94173..000000000
--- a/openmemory/compose/faiss.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-services:
- # FAISS is a local file-based vector store, so no separate container is needed
- # Data will be persisted through volume mounts in the main application
diff --git a/openmemory/compose/milvus.yml b/openmemory/compose/milvus.yml
deleted file mode 100644
index 013ba1e32..000000000
--- a/openmemory/compose/milvus.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-services:
- etcd:
- image: quay.io/coreos/etcd:v3.5.5
- restart: unless-stopped
- environment:
- - ETCD_AUTO_COMPACTION_MODE=revision
- - ETCD_QUOTA_BACKEND_BYTES=4294967296
- - ETCD_SNAPSHOT_COUNT=50000
- - ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- - ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
- - ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
- - ETCD_INITIAL_ADVERTISE_PEER_URLS=http://etcd:2380
- - ETCD_INITIAL_CLUSTER=default=http://etcd:2380
- - ETCD_NAME=default
- - ETCD_DATA_DIR=/etcd
- volumes:
- - ./data/milvus/etcd:/etcd
-
- minio:
- image: minio/minio:RELEASE.2023-10-25T06-33-25Z
- restart: unless-stopped
- command: server /minio_data
- environment:
- - MINIO_ACCESS_KEY=minioadmin
- - MINIO_SECRET_KEY=minioadmin
- volumes:
- - ./data/milvus/minio:/minio_data
-
- mem0_store:
- image: milvusdb/milvus:v2.4.7
- restart: unless-stopped
- command: ["milvus", "run", "standalone"]
- depends_on:
- - etcd
- - minio
- environment:
- - ETCD_ENDPOINTS=etcd:2379
- - MINIO_ADDRESS=minio:9000
- ports:
- - "19530:19530"
- - "9091:9091"
- volumes:
- - ./data/milvus/milvus:/var/lib/milvus
\ No newline at end of file
diff --git a/openmemory/compose/opensearch.yml b/openmemory/compose/opensearch.yml
deleted file mode 100644
index 8b2e7100e..000000000
--- a/openmemory/compose/opensearch.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-services:
- mem0_store:
- image: opensearchproject/opensearch:2.13.0
- restart: unless-stopped
- user: "1000:1000"
- environment:
- - discovery.type=single-node
- - plugins.security.disabled=true
- - OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- - OPENSEARCH_INITIAL_ADMIN_PASSWORD=Openmemory123!
- - bootstrap.memory_lock=true
- ulimits:
- memlock: { soft: -1, hard: -1 }
- nofile: { soft: 65536, hard: 65536 }
- ports:
- - "9200:9200"
- - "9600:9600"
- volumes:
- - mem0_storage:/usr/share/opensearch/data
\ No newline at end of file
diff --git a/openmemory/compose/pgvector.yml b/openmemory/compose/pgvector.yml
deleted file mode 100644
index 8cb956008..000000000
--- a/openmemory/compose/pgvector.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-services:
- mem0_store:
- image: pgvector/pgvector:pg16
- restart: unless-stopped
- environment:
- - POSTGRES_DB=mem0
- - POSTGRES_USER=mem0
- - POSTGRES_PASSWORD=mem0
- ports:
- - "5432:5432"
- volumes:
- - mem0_storage:/var/lib/postgresql/data
\ No newline at end of file
diff --git a/openmemory/compose/qdrant.yml b/openmemory/compose/qdrant.yml
deleted file mode 100644
index 422f4a4d8..000000000
--- a/openmemory/compose/qdrant.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-services:
- mem0_store:
- image: qdrant/qdrant:latest
- restart: unless-stopped
- ports:
- - "6333:6333"
- volumes:
- - mem0_storage:/mem0/storage
\ No newline at end of file
diff --git a/openmemory/compose/redis.yml b/openmemory/compose/redis.yml
deleted file mode 100644
index 1ca2ef803..000000000
--- a/openmemory/compose/redis.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-services:
- mem0_store:
- image: redis/redis-stack-server:latest
- restart: unless-stopped
- ports:
- - "6379:6379"
- volumes:
- - mem0_storage:/var/lib/redis-stack
- command: >
- redis-stack-server
- --appendonly yes
- --appendfsync everysec
- --save 900 1 300 10 60 10000
\ No newline at end of file
diff --git a/openmemory/compose/weaviate.yml b/openmemory/compose/weaviate.yml
deleted file mode 100644
index 6eab1b8bc..000000000
--- a/openmemory/compose/weaviate.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-services:
- mem0_store:
- image: semitechnologies/weaviate:latest
- restart: unless-stopped
- environment:
- - QUERY_DEFAULTS_LIMIT=25
- - AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true
- - PERSISTENCE_DATA_PATH=/var/lib/weaviate
- - CLUSTER_HOSTNAME=node1
- - WEAVIATE_CLUSTER_URL=http://mem0_store:8080
- ports:
- - "8080:8080"
- volumes:
- - mem0_storage:/var/lib/weaviate
\ No newline at end of file
diff --git a/openmemory/docker-compose.yml b/openmemory/docker-compose.yml
deleted file mode 100644
index 7e89311fb..000000000
--- a/openmemory/docker-compose.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-services:
- mem0_store:
- image: qdrant/qdrant
- ports:
- - "6333:6333"
- volumes:
- - mem0_storage:/mem0/storage
- openmemory-mcp:
- image: mem0/openmemory-mcp
- build: api/
- environment:
- - USER
- - API_KEY
- env_file:
- - api/.env
- depends_on:
- - mem0_store
- ports:
- - "8765:8765"
- volumes:
- - ./api:/usr/src/openmemory
- command: >
- sh -c "uvicorn main:app --host 0.0.0.0 --port 8765 --reload --workers 4"
- openmemory-ui:
- build:
- context: ui/
- dockerfile: Dockerfile
- image: mem0/openmemory-ui:latest
- ports:
- - "3000:3000"
- environment:
- - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- - NEXT_PUBLIC_USER_ID=${USER}
-
-volumes:
- mem0_storage:
diff --git a/openmemory/run.sh b/openmemory/run.sh
deleted file mode 100644
index ca15322e7..000000000
--- a/openmemory/run.sh
+++ /dev/null
@@ -1,400 +0,0 @@
-#!/bin/bash
-
-set -e
-
-echo "πŸš€ Starting OpenMemory installation..."
-
-# Set environment variables
-OPENAI_API_KEY="${OPENAI_API_KEY:-}"
-USER="${USER:-$(whoami)}"
-NEXT_PUBLIC_API_URL="${NEXT_PUBLIC_API_URL:-http://localhost:8765}"
-
-if [ -z "$OPENAI_API_KEY" ]; then
- echo "❌ OPENAI_API_KEY not set. Please run with: curl -sL https://raw.githubusercontent.com/mem0ai/mem0/main/openmemory/run.sh | OPENAI_API_KEY=your_api_key bash"
- echo "❌ OPENAI_API_KEY not set. You can also set it as global environment variable: export OPENAI_API_KEY=your_api_key"
- exit 1
-fi
-
-# Check if Docker is installed
-if ! command -v docker &> /dev/null; then
- echo "❌ Docker not found. Please install Docker first."
- exit 1
-fi
-
-# Check if docker compose is available
-if ! docker compose version &> /dev/null; then
- echo "❌ Docker Compose not found. Please install Docker Compose V2."
- exit 1
-fi
-
-# Check if the container "mem0_ui" already exists and remove it if necessary
-if [ $(docker ps -aq -f name=mem0_ui) ]; then
- echo "⚠️ Found existing container 'mem0_ui'. Removing it..."
- docker rm -f mem0_ui
-fi
-
-# Find an available port starting from 3000
-echo "πŸ” Looking for available port for frontend..."
-for port in {3000..3010}; do
- if ! lsof -i:$port >/dev/null 2>&1; then
- FRONTEND_PORT=$port
- break
- fi
-done
-
-if [ -z "$FRONTEND_PORT" ]; then
- echo "❌ Could not find an available port between 3000 and 3010"
- exit 1
-fi
-
-# Export required variables for Compose and frontend
-export OPENAI_API_KEY
-export USER
-export NEXT_PUBLIC_API_URL
-export NEXT_PUBLIC_USER_ID="$USER"
-export FRONTEND_PORT
-
-# Parse vector store selection (env var or flag). Default: qdrant
-VECTOR_STORE="${VECTOR_STORE:-qdrant}"
-EMBEDDING_DIMS="${EMBEDDING_DIMS:-1536}"
-
-for arg in "$@"; do
- case $arg in
- --vector-store=*)
- VECTOR_STORE="${arg#*=}"
- shift
- ;;
- --vector-store)
- VECTOR_STORE="$2"
- shift 2
- ;;
- *)
- ;;
- esac
-done
-
-export VECTOR_STORE
-echo "🧰 Using vector store: $VECTOR_STORE"
-
-# Function to create compose file by merging vector store config with openmemory-mcp service
-create_compose_file() {
- local vector_store=$1
- local compose_file="compose/${vector_store}.yml"
- local volume_name="${vector_store}_data" # Vector-store-specific volume name
-
- # Check if the compose file exists
- if [ ! -f "$compose_file" ]; then
- echo "❌ Compose file not found: $compose_file"
- echo "Available vector stores: $(ls compose/*.yml | sed 's/compose\///g' | sed 's/\.yml//g' | tr '\n' ' ')"
- exit 1
- fi
-
- echo "πŸ“ Creating docker-compose.yml using $compose_file..."
- echo "πŸ’Ύ Using volume: $volume_name"
-
- # Start the compose file with services section
- echo "services:" > docker-compose.yml
-
- # Extract services from the compose file and replace volume name
- # First get everything except the last volumes section
- tail -n +2 "$compose_file" | sed '/^volumes:/,$d' | sed "s/mem0_storage/${volume_name}/g" >> docker-compose.yml
-
- # Add a newline to ensure proper YAML formatting
- echo "" >> docker-compose.yml
-
- # Add the openmemory-mcp service
- cat >> docker-compose.yml <<EOF
- openmemory-mcp:
- image: mem0/openmemory-mcp:latest
- environment:
- - OPENAI_API_KEY=${OPENAI_API_KEY}
- - USER=${USER}
-EOF
-
- # Add vector store specific environment variables
- case "$vector_store" in
- weaviate)
- cat >> docker-compose.yml <<EOF
- - WEAVIATE_HOST=mem0_store
- - WEAVIATE_PORT=8080
-EOF
- ;;
- redis)
- cat >> docker-compose.yml <<EOF
- - REDIS_URL=redis://mem0_store:6379
-EOF
- ;;
- pgvector)
- cat >> docker-compose.yml <<EOF
- - PG_HOST=mem0_store
- - PG_PORT=5432
- - PG_DB=mem0
- - PG_USER=mem0
- - PG_PASSWORD=mem0
-EOF
- ;;
- qdrant)
- cat >> docker-compose.yml <<EOF
- - QDRANT_HOST=mem0_store
- - QDRANT_PORT=6333
-EOF
- ;;
- chroma)
- cat >> docker-compose.yml <<EOF
- - CHROMA_HOST=mem0_store
- - CHROMA_PORT=8000
-EOF
- ;;
- milvus)
- cat >> docker-compose.yml <<EOF
- - MILVUS_HOST=mem0_store
- - MILVUS_PORT=19530
-EOF
- ;;
- elasticsearch)
- cat >> docker-compose.yml <<EOF
- - ELASTICSEARCH_HOST=mem0_store
- - ELASTICSEARCH_PORT=9200
- - ELASTICSEARCH_USER=elastic
- - ELASTICSEARCH_PASSWORD=changeme
-EOF
- ;;
- faiss)
- cat >> docker-compose.yml <<EOF
- - FAISS_PATH=/tmp/faiss
-EOF
- ;;
- *)
- echo "⚠️ Unknown vector store: $vector_store. Using default Qdrant configuration."
- cat >> docker-compose.yml <<EOF
- - QDRANT_HOST=mem0_store
- - QDRANT_PORT=6333
-EOF
- ;;
- esac
-
- # Add common openmemory-mcp service configuration
- if [ "$vector_store" = "faiss" ]; then
- # FAISS doesn't need a separate service, just volume mounts
- cat >> docker-compose.yml <<EOF
- ports:
- - "8765:8765"
- volumes:
- - openmemory_db:/usr/src/openmemory
- - ${volume_name}:/tmp/faiss
-
-volumes:
- ${volume_name}:
- openmemory_db:
-EOF
- else
- cat >> docker-compose.yml <<EOF
- depends_on:
- - mem0_store
- ports:
- - "8765:8765"
- volumes:
- - openmemory_db:/usr/src/openmemory
-
-volumes:
- ${volume_name}:
- openmemory_db:
-EOF
- fi
-}
-
-# Create docker-compose.yml file based on selected vector store
-echo "πŸ“ Creating docker-compose.yml..."
-create_compose_file "$VECTOR_STORE"
-
-# Ensure local data directories exist for bind-mounted vector stores
-if [ "$VECTOR_STORE" = "milvus" ]; then
- echo "πŸ—‚οΈ Ensuring local data directories for Milvus exist..."
- mkdir -p ./data/milvus/etcd ./data/milvus/minio ./data/milvus/milvus
-fi
-
-# Function to install vector store specific packages
-install_vector_store_packages() {
- local vector_store=$1
- echo "πŸ“¦ Installing packages for vector store: $vector_store..."
-
- case "$vector_store" in
- qdrant)
- docker exec openmemory-openmemory-mcp-1 pip install "qdrant-client>=1.9.1" || echo "⚠️ Failed to install qdrant packages"
- ;;
- chroma)
- docker exec openmemory-openmemory-mcp-1 pip install "chromadb>=0.4.24" || echo "⚠️ Failed to install chroma packages"
- ;;
- weaviate)
- docker exec openmemory-openmemory-mcp-1 pip install "weaviate-client>=4.4.0,<4.15.0" || echo "⚠️ Failed to install weaviate packages"
- ;;
- faiss)
- docker exec openmemory-openmemory-mcp-1 pip install "faiss-cpu>=1.7.4" || echo "⚠️ Failed to install faiss packages"
- ;;
- pgvector)
- docker exec openmemory-openmemory-mcp-1 pip install "vecs>=0.4.0" "psycopg>=3.2.8" || echo "⚠️ Failed to install pgvector packages"
- ;;
- redis)
- docker exec openmemory-openmemory-mcp-1 pip install "redis>=5.0.0,<6.0.0" "redisvl>=0.1.0,<1.0.0" || echo "⚠️ Failed to install redis packages"
- ;;
- elasticsearch)
- docker exec openmemory-openmemory-mcp-1 pip install "elasticsearch>=8.0.0,<9.0.0" || echo "⚠️ Failed to install elasticsearch packages"
- ;;
- milvus)
- docker exec openmemory-openmemory-mcp-1 pip install "pymilvus>=2.4.0,<2.6.0" || echo "⚠️ Failed to install milvus packages"
- ;;
- *)
- echo "⚠️ Unknown vector store: $vector_store. Installing default qdrant packages."
- docker exec openmemory-openmemory-mcp-1 pip install "qdrant-client>=1.9.1" || echo "⚠️ Failed to install qdrant packages"
- ;;
- esac
-}
-
-# Start services
-echo "πŸš€ Starting backend services..."
-docker compose up -d
-
-# Wait for container to be ready before installing packages
-echo "⏳ Waiting for container to be ready..."
-for i in {1..30}; do
- if docker exec openmemory-openmemory-mcp-1 python -c "import sys; print('ready')" >/dev/null 2>&1; then
- break
- fi
- sleep 1
-done
-
-# Install vector store specific packages
-install_vector_store_packages "$VECTOR_STORE"
-
-# If a specific vector store is selected, seed the backend config accordingly
-if [ "$VECTOR_STORE" = "milvus" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (milvus) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"milvus\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"url\":\"http://mem0_store:19530\",\"token\":\"\",\"db_name\":\"\",\"metric_type\":\"COSINE\"}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "weaviate" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (weaviate) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"weaviate\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"cluster_url\":\"http://mem0_store:8080\"}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "redis" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (redis) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"redis\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"redis_url\":\"redis://mem0_store:6379\"}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "pgvector" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (pgvector) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"pgvector\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"dbname\":\"mem0\",\"user\":\"mem0\",\"password\":\"mem0\",\"host\":\"mem0_store\",\"port\":5432,\"diskann\":false,\"hnsw\":true}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "qdrant" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (qdrant) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"qdrant\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"host\":\"mem0_store\",\"port\":6333}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "chroma" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (chroma) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"chroma\",\"config\":{\"collection_name\":\"openmemory\",\"host\":\"mem0_store\",\"port\":8000}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "elasticsearch" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (elasticsearch) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"elasticsearch\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"host\":\"http://mem0_store\",\"port\":9200,\"user\":\"elastic\",\"password\":\"changeme\",\"verify_certs\":false,\"use_ssl\":false}}" >/dev/null || true
-elif [ "$VECTOR_STORE" = "faiss" ]; then
- echo "⏳ Waiting for API to be ready at ${NEXT_PUBLIC_API_URL}..."
- for i in {1..60}; do
- if curl -fsS "${NEXT_PUBLIC_API_URL}/api/v1/config" >/dev/null 2>&1; then
- break
- fi
- sleep 1
- done
-
- echo "🧩 Configuring vector store (faiss) in backend..."
- curl -fsS -X PUT "${NEXT_PUBLIC_API_URL}/api/v1/config/mem0/vector_store" \
- -H 'Content-Type: application/json' \
- -d "{\"provider\":\"faiss\",\"config\":{\"collection_name\":\"openmemory\",\"embedding_model_dims\":${EMBEDDING_DIMS},\"path\":\"/tmp/faiss\",\"distance_strategy\":\"cosine\"}}" >/dev/null || true
-fi
-
-# Start the frontend
-echo "πŸš€ Starting frontend on port $FRONTEND_PORT..."
-docker run -d \
- --name mem0_ui \
- -p ${FRONTEND_PORT}:3000 \
- -e NEXT_PUBLIC_API_URL="$NEXT_PUBLIC_API_URL" \
- -e NEXT_PUBLIC_USER_ID="$USER" \
- mem0/openmemory-ui:latest
-
-echo "βœ… Backend: http://localhost:8765"
-echo "βœ… Frontend: http://localhost:$FRONTEND_PORT"
-
-# Open the frontend URL in the default web browser
-echo "🌐 Opening frontend in the default browser..."
-URL="http://localhost:$FRONTEND_PORT"
-
-if command -v xdg-open > /dev/null; then
- xdg-open "$URL" # Linux
-elif command -v open > /dev/null; then
- open "$URL" # macOS
-elif command -v start > /dev/null; then
- start "$URL" # Windows (if run via Git Bash or similar)
-else
- echo "⚠️ Could not detect a method to open the browser. Please open $URL manually."
-fi
\ No newline at end of file
diff --git a/openmemory/ui/.dockerignore b/openmemory/ui/.dockerignore
deleted file mode 100644
index dc61851a3..000000000
--- a/openmemory/ui/.dockerignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Ignore all .env files
-**/.env
-
-
-# Ignore all database files
-**/*.db
-**/*.sqlite
-**/*.sqlite3
-
-# Ignore logs
-**/*.log
-
-# Ignore runtime data
-**/node_modules
-**/__pycache__
-**/.pytest_cache
-**/.coverage
-**/coverage
-
-# Ignore Docker runtime files
-**/.dockerignore
-**/Dockerfile
-**/docker-compose*.yml
\ No newline at end of file
diff --git a/openmemory/ui/.env.example b/openmemory/ui/.env.example
deleted file mode 100644
index 3768f3e59..000000000
--- a/openmemory/ui/.env.example
+++ /dev/null
@@ -1,2 +0,0 @@
-NEXT_PUBLIC_API_URL=NEXT_PUBLIC_API_URL
-NEXT_PUBLIC_USER_ID=NEXT_PUBLIC_USER_ID
diff --git a/openmemory/ui/Dockerfile b/openmemory/ui/Dockerfile
deleted file mode 100644
index 7fd1dc982..000000000
--- a/openmemory/ui/Dockerfile
+++ /dev/null
@@ -1,52 +0,0 @@
-# syntax=docker.io/docker/dockerfile:1
-
-# Base stage for common setup
-FROM node:18-alpine AS base
-
-# Install dependencies for pnpm
-RUN apk add --no-cache libc6-compat curl && \
- corepack enable && \
- corepack prepare pnpm@latest --activate
-
-WORKDIR /app
-
-FROM base AS deps
-
-COPY package.json pnpm-lock.yaml ./
-
-RUN pnpm install --frozen-lockfile
-
-FROM base AS builder
-WORKDIR /app
-
-COPY --from=deps /app/node_modules ./node_modules
-COPY --from=deps /app/pnpm-lock.yaml ./pnpm-lock.yaml
-COPY . .
-
-RUN cp next.config.dev.mjs next.config.mjs
-RUN cp .env.example .env
-RUN pnpm build
-
-FROM base AS runner
-WORKDIR /app
-
-ENV NODE_ENV=production
-
-RUN addgroup --system --gid 1001 nodejs && \
- adduser --system --uid 1001 nextjs
-
-COPY --from=builder /app/public ./public
-COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
-COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
-
-COPY --chown=nextjs:nodejs entrypoint.sh /home/nextjs/entrypoint.sh
-RUN chmod +x /home/nextjs/entrypoint.sh
-
-USER nextjs
-
-EXPOSE 3000
-ENV PORT=3000
-ENV HOSTNAME="0.0.0.0"
-
-ENTRYPOINT ["/home/nextjs/entrypoint.sh"]
-CMD ["node", "server.js"]
diff --git a/openmemory/ui/app/apps/[appId]/components/AppDetailCard.tsx b/openmemory/ui/app/apps/[appId]/components/AppDetailCard.tsx
deleted file mode 100644
index 7f3f3c4fa..000000000
--- a/openmemory/ui/app/apps/[appId]/components/AppDetailCard.tsx
+++ /dev/null
@@ -1,166 +0,0 @@
-import React, { useState } from "react";
-import { Button } from "@/components/ui/button";
-import { PauseIcon, Loader2, PlayIcon } from "lucide-react";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import Image from "next/image";
-import { useDispatch, useSelector } from "react-redux";
-import { setAppDetails } from "@/store/appsSlice";
-import { BiEdit } from "react-icons/bi";
-import { constants } from "@/components/shared/source-app";
-import { RootState } from "@/store/store";
-
-const capitalize = (str: string) => {
- return str.charAt(0).toUpperCase() + str.slice(1);
-};
-
-const AppDetailCard = ({
- appId,
- selectedApp,
-}: {
- appId: string;
- selectedApp: any;
-}) => {
- const { updateAppDetails } = useAppsApi();
- const [isLoading, setIsLoading] = useState(false);
- const dispatch = useDispatch();
- const apps = useSelector((state: RootState) => state.apps.apps);
- const currentApp = apps.find((app: any) => app.id === appId);
- const appConfig = currentApp
- ? constants[currentApp.name as keyof typeof constants] || constants.default
- : constants.default;
-
- const handlePauseAccess = async () => {
- setIsLoading(true);
- try {
- await updateAppDetails(appId, {
- is_active: !selectedApp.details.is_active,
- });
- dispatch(
- setAppDetails({ appId, isActive: !selectedApp.details.is_active })
- );
- } catch (error) {
- console.error("Failed to toggle app pause state:", error);
- } finally {
- setIsLoading(false);
- }
- };
-
- const buttonText = selectedApp.details.is_active
- ? "Pause Access"
- : "Unpause Access";
-
- return (
- <div>
- <div className="bg-zinc-900 border w-[320px] border-zinc-800 rounded-xl mb-6">
- <div className="flex items-center gap-2 mb-4 bg-zinc-800 rounded-t-xl p-3">
- <div className="w-5 h-5 flex items-center justify-center">
- {appConfig.iconImage ? (
- <div>
- <div className="w-6 h-6 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image
- src={appConfig.iconImage}
- alt={appConfig.name}
- width={40}
- height={40}
- />
- </div>
- </div>
- ) : (
- <div className="w-5 h-5 flex items-center justify-center bg-zinc-700 rounded-full">
- <BiEdit className="w-4 h-4 text-zinc-400" />
- </div>
- )}
- </div>
- <h2 className="text-md font-semibold">{appConfig.name}</h2>
- </div>
-
- <div className="space-y-4 p-3">
- <div>
- <p className="text-xs text-zinc-400">Access Status</p>
- <p
- className={`font-medium ${
- selectedApp.details.is_active
- ? "text-emerald-500"
- : "text-red-500"
- }`}
- >
- {capitalize(
- selectedApp.details.is_active ? "active" : "inactive"
- )}
- </p>
- </div>
-
- <div>
- <p className="text-xs text-zinc-400">Total Memories Created</p>
- <p className="font-medium">
- {selectedApp.details.total_memories_created} Memories
- </p>
- </div>
-
- <div>
- <p className="text-xs text-zinc-400">Total Memories Accessed</p>
- <p className="font-medium">
- {selectedApp.details.total_memories_accessed} Memories
- </p>
- </div>
-
- <div>
- <p className="text-xs text-zinc-400">First Accessed</p>
- <p className="font-medium">
- {selectedApp.details.first_accessed
- ? new Date(
- selectedApp.details.first_accessed
- ).toLocaleDateString("en-US", {
- day: "numeric",
- month: "short",
- year: "numeric",
- hour: "numeric",
- minute: "numeric",
- })
- : "Never"}
- </p>
- </div>
-
- <div>
- <p className="text-xs text-zinc-400">Last Accessed</p>
- <p className="font-medium">
- {selectedApp.details.last_accessed
- ? new Date(
- selectedApp.details.last_accessed
- ).toLocaleDateString("en-US", {
- day: "numeric",
- month: "short",
- year: "numeric",
- hour: "numeric",
- minute: "numeric",
- })
- : "Never"}
- </p>
- </div>
-
- <hr className="border-zinc-800" />
-
- <div className="flex gap-2 justify-end">
- <Button
- onClick={handlePauseAccess}
- className="flex bg-transparent w-[170px] bg-zinc-800 border-zinc-800 hover:bg-zinc-800 text-white"
- size="sm"
- disabled={isLoading}
- >
- {isLoading ? (
- <Loader2 className="h-4 w-4 animate-spin" />
- ) : buttonText === "Pause Access" ? (
- <PauseIcon className="h-4 w-4" />
- ) : (
- <PlayIcon className="h-4 w-4" />
- )}
- {buttonText}
- </Button>
- </div>
- </div>
- </div>
- </div>
- );
-};
-
-export default AppDetailCard;
diff --git a/openmemory/ui/app/apps/[appId]/components/MemoryCard.tsx b/openmemory/ui/app/apps/[appId]/components/MemoryCard.tsx
deleted file mode 100644
index dfb35cb11..000000000
--- a/openmemory/ui/app/apps/[appId]/components/MemoryCard.tsx
+++ /dev/null
@@ -1,115 +0,0 @@
-import { ArrowRight } from "lucide-react";
-import Categories from "@/components/shared/categories";
-import Link from "next/link";
-import { constants } from "@/components/shared/source-app";
-import Image from "next/image";
-interface MemoryCardProps {
- id: string;
- content: string;
- created_at: string;
- metadata?: Record<string, any>;
- categories?: string[];
- access_count?: number;
- app_name: string;
- state: string;
-}
-
-export function MemoryCard({
- id,
- content,
- created_at,
- metadata,
- categories,
- access_count,
- app_name,
- state,
-}: MemoryCardProps) {
- return (
- <div className="rounded-lg border border-zinc-800 bg-zinc-900 overflow-hidden">
- <div className="p-4">
- <div className="border-l-2 border-primary pl-4 mb-4">
- <p
- className={`${state !== "active" ? "text-zinc-400" : "text-white"}`}
- >
- {content}
- </p>
- </div>
-
- {metadata && Object.keys(metadata).length > 0 && (
- <div className="mb-4">
- <p className="text-xs text-zinc-500 uppercase mb-2">METADATA</p>
- <div className="bg-zinc-800 rounded p-3 text-zinc-400">
- <pre className="whitespace-pre-wrap">
- {JSON.stringify(metadata, null, 2)}
- </pre>
- </div>
- </div>
- )}
-
- <div className="mb-2">
- <Categories
- categories={categories as any}
- isPaused={state !== "active"}
- />
- </div>
-
- <div className="flex justify-between items-center">
- <div className="flex items-center gap-2">
- <span className="text-zinc-400 text-sm">
- {access_count ? (
- <span className="relative top-1">
- Accessed {access_count} times
- </span>
- ) : (
- new Date(created_at + "Z").toLocaleDateString("en-US", {
- year: "numeric",
- month: "short",
- day: "numeric",
- hour: "numeric",
- minute: "numeric",
- })
- )}
- </span>
-
- {state !== "active" && (
- <span className="inline-block px-3 border border-yellow-600 text-yellow-600 font-semibold text-xs rounded-full bg-yellow-400/10 backdrop-blur-sm">
- {state === "paused" ? "Paused" : "Archived"}
- </span>
- )}
- </div>
-
- {!app_name && (
- <Link
- href={`/memory/${id}`}
- className="hover:cursor-pointer bg-zinc-800 hover:bg-zinc-700 flex items-center px-3 py-1 text-sm rounded-lg text-white p-0 hover:text-white"
- >
- View Details
- <ArrowRight className="ml-2 h-4 w-4" />
- </Link>
- )}
- {app_name && (
- <div className="flex items-center gap-2">
- <div className="flex items-center gap-1 bg-zinc-700 px-3 py-1 rounded-lg">
- <span className="text-sm text-zinc-400">Created by:</span>
- <div className="w-5 h-5 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image
- src={
- constants[app_name as keyof typeof constants]
- ?.iconImage || ""
- }
- alt="OpenMemory"
- width={24}
- height={24}
- />
- </div>
- <p className="text-sm text-zinc-100 font-semibold">
- {constants[app_name as keyof typeof constants]?.name}
- </p>
- </div>
- </div>
- )}
- </div>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/apps/[appId]/page.tsx b/openmemory/ui/app/apps/[appId]/page.tsx
deleted file mode 100644
index ecd90313d..000000000
--- a/openmemory/ui/app/apps/[appId]/page.tsx
+++ /dev/null
@@ -1,219 +0,0 @@
-"use client";
-
-import { useEffect, useState } from "react";
-import { useParams } from "next/navigation";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import { MemoryCard } from "./components/MemoryCard";
-import AppDetailCard from "./components/AppDetailCard";
-import "@/styles/animation.css";
-import NotFound from "@/app/not-found";
-import { AppDetailCardSkeleton } from "@/skeleton/AppDetailCardSkeleton";
-import { MemoryCardSkeleton } from "@/skeleton/MemoryCardSkeleton";
-
-export default function AppDetailsPage() {
- const params = useParams();
- const appId = params.appId as string;
- const [activeTab, setActiveTab] = useState("created");
-
- const {
- fetchAppDetails,
- fetchAppMemories,
- fetchAppAccessedMemories,
- fetchApps,
- } = useAppsApi();
- const selectedApp = useSelector((state: RootState) => state.apps.selectedApp);
-
- useEffect(() => {
- fetchApps({});
- }, [fetchApps]);
-
- useEffect(() => {
- const loadData = async () => {
- if (appId) {
- try {
- // Load all data in parallel
- await Promise.all([
- fetchAppDetails(appId),
- fetchAppMemories(appId),
- fetchAppAccessedMemories(appId),
- ]);
- } catch (error) {
- console.error("Error loading app data:", error);
- }
- }
- };
-
- loadData();
- }, [appId, fetchAppDetails, fetchAppMemories, fetchAppAccessedMemories]);
-
- if (selectedApp.error) {
- return (
- <NotFound message={selectedApp.error} title="Error loading app details" />
- );
- }
-
- if (!selectedApp.details) {
- return (
- <div className="flex-1 py-6 text-white">
- <div className="container flex justify-between">
- <div className="flex-1 p-4 max-w-4xl animate-fade-slide-down">
- <div className="mb-6">
- <div className="h-10 w-64 bg-zinc-800 rounded animate-pulse mb-6" />
- <div className="space-y-6">
- {[...Array(3)].map((_, i) => (
- <MemoryCardSkeleton key={i} />
- ))}
- </div>
- </div>
- </div>
- <div className="p-14 animate-fade-slide-down delay-2">
- <AppDetailCardSkeleton />
- </div>
- </div>
- </div>
- );
- }
-
- const renderCreatedMemories = () => {
- const memories = selectedApp.memories.created;
-
- if (memories.loading) {
- return (
- <div className="space-y-4">
- {[...Array(3)].map((_, i) => (
- <MemoryCardSkeleton key={i} />
- ))}
- </div>
- );
- }
-
- if (memories.error) {
- return (
- <NotFound message={memories.error} title="Error loading memories" />
- );
- }
-
- if (memories.items.length === 0) {
- return (
- <div className="text-zinc-400 text-center py-8">No memories found</div>
- );
- }
-
- return memories.items.map((memory) => (
- <MemoryCard
- key={memory.id + memory.created_at}
- id={memory.id}
- content={memory.content}
- created_at={memory.created_at}
- metadata={memory.metadata_}
- categories={memory.categories}
- app_name={memory.app_name}
- state={memory.state}
- />
- ));
- };
-
- const renderAccessedMemories = () => {
- const memories = selectedApp.memories.accessed;
-
- if (memories.loading) {
- return (
- <div className="space-y-4">
- {[...Array(3)].map((_, i) => (
- <MemoryCardSkeleton key={i} />
- ))}
- </div>
- );
- }
-
- if (memories.error) {
- return (
- <div className="text-red-400 bg-red-400/10 p-4 rounded-lg">
- Error loading memories: {memories.error}
- </div>
- );
- }
-
- if (memories.items.length === 0) {
- return (
- <div className="text-zinc-400 text-center py-8">
- No accessed memories found
- </div>
- );
- }
-
- return memories.items.map((accessedMemory) => (
- <div
- key={accessedMemory.memory.id + accessedMemory.memory.created_at}
- className="relative"
- >
- <MemoryCard
- id={accessedMemory.memory.id}
- content={accessedMemory.memory.content}
- created_at={accessedMemory.memory.created_at}
- metadata={accessedMemory.memory.metadata_}
- categories={accessedMemory.memory.categories}
- access_count={accessedMemory.access_count}
- app_name={accessedMemory.memory.app_name}
- state={accessedMemory.memory.state}
- />
- </div>
- ));
- };
-
- return (
- <div className="flex-1 py-6 text-white">
- <div className="container flex justify-between">
- {/* Main content area */}
- <div className="flex-1 p-4 max-w-4xl animate-fade-slide-down">
- <Tabs
- defaultValue="created"
- className="mb-6"
- onValueChange={setActiveTab}
- >
- <TabsList className="bg-transparent border-b border-zinc-800 rounded-none w-full justify-start gap-8 p-0">
- <TabsTrigger
- value="created"
- className={`px-0 pb-2 rounded-none data-[state=active]:border-b-2 data-[state=active]:border-primary data-[state=active]:shadow-none ${
- activeTab === "created" ? "text-white" : "text-zinc-400"
- }`}
- >
- Created ({selectedApp.memories.created.total})
- </TabsTrigger>
- <TabsTrigger
- value="accessed"
- className={`px-0 pb-2 rounded-none data-[state=active]:border-b-2 data-[state=active]:border-primary data-[state=active]:shadow-none ${
- activeTab === "accessed" ? "text-white" : "text-zinc-400"
- }`}
- >
- Accessed ({selectedApp.memories.accessed.total})
- </TabsTrigger>
- </TabsList>
-
- <TabsContent
- value="created"
- className="mt-6 space-y-6 animate-fade-slide-down delay-1"
- >
- {renderCreatedMemories()}
- </TabsContent>
-
- <TabsContent
- value="accessed"
- className="mt-6 space-y-6 animate-fade-slide-down delay-1"
- >
- {renderAccessedMemories()}
- </TabsContent>
- </Tabs>
- </div>
-
- {/* Sidebar */}
- <div className="p-14 animate-fade-slide-down delay-2">
- <AppDetailCard appId={appId} selectedApp={selectedApp} />
- </div>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/apps/components/AppCard.tsx b/openmemory/ui/app/apps/components/AppCard.tsx
deleted file mode 100644
index 13a4fe0cb..000000000
--- a/openmemory/ui/app/apps/components/AppCard.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-import type React from "react";
-import { ArrowRight } from "lucide-react";
-import {
- Card,
- CardContent,
- CardFooter,
- CardHeader,
-} from "@/components/ui/card";
-
-import { constants } from "@/components/shared/source-app";
-import { App } from "@/store/appsSlice";
-import Image from "next/image";
-import { useRouter } from "next/navigation";
-
-interface AppCardProps {
- app: App;
-}
-
-export function AppCard({ app }: AppCardProps) {
- const router = useRouter();
- const appConfig =
- constants[app.name as keyof typeof constants] || constants.default;
- const isActive = app.is_active;
-
- return (
- <Card className="bg-zinc-900 text-white border-zinc-800">
- <CardHeader className="pb-2">
- <div className="flex items-center gap-1">
- <div className="relative z-10 rounded-full overflow-hidden bg-[#2a2a2a] w-6 h-6 flex items-center justify-center flex-shrink-0">
- {appConfig.iconImage ? (
- <div className="w-6 h-6 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image
- src={appConfig.iconImage}
- alt={appConfig.name}
- width={28}
- height={28}
- />
- </div>
- ) : (
- <div className="w-6 h-6 flex items-center justify-center">
- {appConfig.icon}
- </div>
- )}
- </div>
- <h2 className="text-xl font-semibold">{appConfig.name}</h2>
- </div>
- </CardHeader>
- <CardContent className="pb-4 my-1">
- <div className="grid grid-cols-2 gap-4">
- <div>
- <p className="text-zinc-400 text-sm mb-1">Memories Created</p>
- <p className="text-xl font-medium">
- {app.total_memories_created.toLocaleString()} Memories
- </p>
- </div>
- <div>
- <p className="text-zinc-400 text-sm mb-1">Memories Accessed</p>
- <p className="text-xl font-medium">
- {app.total_memories_accessed.toLocaleString()} Memories
- </p>
- </div>
- </div>
- </CardContent>
- <CardFooter className="border-t border-zinc-800 p-0 px-6 py-2 flex justify-between items-center">
- <div
- className={`${
- isActive
- ? "bg-green-800 text-white hover:bg-green-500/20"
- : "bg-red-500/20 text-red-400 hover:bg-red-500/20"
- } rounded-lg px-2 py-0.5 flex items-center text-sm`}
- >
- <span className="h-2 w-2 my-auto mr-1 rounded-full inline-block bg-current"></span>
- {isActive ? "Active" : "Inactive"}
- </div>
- <div
- onClick={() => router.push(`/apps/${app.id}`)}
- className="border hover:cursor-pointer border-zinc-700 bg-zinc-950 flex items-center px-3 py-1 text-sm rounded-lg text-white p-0 hover:bg-zinc-950/50 hover:text-white"
- >
- View Details <ArrowRight className="ml-2 h-4 w-4" />
- </div>
- </CardFooter>
- </Card>
- );
-}
diff --git a/openmemory/ui/app/apps/components/AppFilters.tsx b/openmemory/ui/app/apps/components/AppFilters.tsx
deleted file mode 100644
index 25aad06d7..000000000
--- a/openmemory/ui/app/apps/components/AppFilters.tsx
+++ /dev/null
@@ -1,150 +0,0 @@
-"use client";
-import { useEffect, useState } from "react";
-import { Search, ChevronDown, SortAsc, SortDesc } from "lucide-react";
-import { useDispatch, useSelector } from "react-redux";
-import {
- setSearchQuery,
- setActiveFilter,
- setSortBy,
- setSortDirection,
-} from "@/store/appsSlice";
-import { RootState } from "@/store/store";
-import { useCallback } from "react";
-import debounce from "lodash/debounce";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import { AppFiltersSkeleton } from "@/skeleton/AppFiltersSkeleton";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-import { Input } from "@/components/ui/input";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuGroup,
-} from "@/components/ui/dropdown-menu";
-import { Button } from "@/components/ui/button";
-
-const sortOptions = [
- { value: "name", label: "Name" },
- { value: "memories", label: "Memories Created" },
- { value: "memories_accessed", label: "Memories Accessed" },
-];
-
-export function AppFilters() {
- const dispatch = useDispatch();
- const filters = useSelector((state: RootState) => state.apps.filters);
- const [localSearch, setLocalSearch] = useState(filters.searchQuery);
- const { isLoading } = useAppsApi();
-
- const debouncedSearch = useCallback(
- debounce((query: string) => {
- dispatch(setSearchQuery(query));
- }, 300),
- [dispatch]
- );
-
- const handleSearchChange = (e: React.ChangeEvent<HTMLInputElement>) => {
- const query = e.target.value;
- setLocalSearch(query);
- debouncedSearch(query);
- };
-
- const handleActiveFilterChange = (value: string) => {
- dispatch(setActiveFilter(value === "all" ? "all" : value === "true"));
- };
-
- const setSorting = (sortBy: "name" | "memories" | "memories_accessed") => {
- const newDirection =
- filters.sortBy === sortBy && filters.sortDirection === "asc"
- ? "desc"
- : "asc";
- dispatch(setSortBy(sortBy));
- dispatch(setSortDirection(newDirection));
- };
-
- useEffect(() => {
- setLocalSearch(filters.searchQuery);
- }, [filters.searchQuery]);
-
- if (isLoading) {
- return <AppFiltersSkeleton />;
- }
-
- return (
- <div className="flex items-center gap-2">
- <div className="relative flex-1">
- <Search className="absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-500" />
- <Input
- placeholder="Search Apps..."
- className="pl-8 bg-zinc-950 border-zinc-800 max-w-[500px]"
- value={localSearch}
- onChange={handleSearchChange}
- />
- </div>
-
- <Select
- value={String(filters.isActive)}
- onValueChange={handleActiveFilterChange}
- >
- <SelectTrigger className="w-[130px] border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800">
- <SelectValue placeholder="Status" />
- </SelectTrigger>
- <SelectContent className="border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800">
- <SelectItem value="all">All Status</SelectItem>
- <SelectItem value="true">Active</SelectItem>
- <SelectItem value="false">Inactive</SelectItem>
- </SelectContent>
- </Select>
-
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button
- variant="outline"
- className="h-9 px-4 border-zinc-700 bg-zinc-900 hover:bg-zinc-800"
- >
- {filters.sortDirection === "asc" ? (
- <SortDesc className="h-4 w-4 mr-2" />
- ) : (
- <SortAsc className="h-4 w-4 mr-2" />
- )}
- Sort: {sortOptions.find((o) => o.value === filters.sortBy)?.label}
- <ChevronDown className="h-4 w-4 ml-2" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-56 bg-zinc-900 border-zinc-800 text-zinc-100">
- <DropdownMenuLabel>Sort by</DropdownMenuLabel>
- <DropdownMenuSeparator className="bg-zinc-800" />
- <DropdownMenuGroup>
- {sortOptions.map((option) => (
- <DropdownMenuItem
- key={option.value}
- onClick={() =>
- setSorting(
- option.value as "name" | "memories" | "memories_accessed"
- )
- }
- className="cursor-pointer flex justify-between items-center"
- >
- {option.label}
- {filters.sortBy === option.value &&
- (filters.sortDirection === "asc" ? (
- <SortAsc className="h-4 w-4 text-primary" />
- ) : (
- <SortDesc className="h-4 w-4 text-primary" />
- ))}
- </DropdownMenuItem>
- ))}
- </DropdownMenuGroup>
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
- );
-}
diff --git a/openmemory/ui/app/apps/components/AppGrid.tsx b/openmemory/ui/app/apps/components/AppGrid.tsx
deleted file mode 100644
index b075e1209..000000000
--- a/openmemory/ui/app/apps/components/AppGrid.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-"use client";
-import { useEffect } from "react";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import { AppCard } from "./AppCard";
-import { AppCardSkeleton } from "@/skeleton/AppCardSkeleton";
-
-export function AppGrid() {
- const { fetchApps, isLoading } = useAppsApi();
- const apps = useSelector((state: RootState) => state.apps.apps);
- const filters = useSelector((state: RootState) => state.apps.filters);
-
- useEffect(() => {
- fetchApps({
- name: filters.searchQuery,
- is_active: filters.isActive === "all" ? undefined : filters.isActive,
- sort_by: filters.sortBy,
- sort_direction: filters.sortDirection,
- });
- }, [fetchApps, filters]);
-
- if (isLoading) {
- return (
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
- {[...Array(3)].map((_, i) => (
- <AppCardSkeleton key={i} />
- ))}
- </div>
- );
- }
-
- if (apps.length === 0) {
- return (
- <div className="text-center text-zinc-500 py-8">
- No apps found matching your filters
- </div>
- );
- }
-
- return (
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
- {apps.map((app) => (
- <AppCard key={app.id} app={app} />
- ))}
- </div>
- );
-}
diff --git a/openmemory/ui/app/apps/page.tsx b/openmemory/ui/app/apps/page.tsx
deleted file mode 100644
index 9b255fe12..000000000
--- a/openmemory/ui/app/apps/page.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-"use client";
-
-import { AppFilters } from "./components/AppFilters";
-import { AppGrid } from "./components/AppGrid";
-import "@/styles/animation.css";
-
-export default function AppsPage() {
- return (
- <main className="flex-1 py-6">
- <div className="container">
- <div className="mt-1 pb-4 animate-fade-slide-down">
- <AppFilters />
- </div>
- <div className="animate-fade-slide-down delay-1">
- <AppGrid />
- </div>
- </div>
- </main>
- );
-}
diff --git a/openmemory/ui/app/globals.css b/openmemory/ui/app/globals.css
deleted file mode 100644
index 91d1eb5a1..000000000
--- a/openmemory/ui/app/globals.css
+++ /dev/null
@@ -1,59 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-@layer base {
- :root {
- --background: 240 10% 3.9%;
- --foreground: 0 0% 98%;
- --card: 240 10% 3.9%;
- --card-foreground: 0 0% 98%;
- --popover: 240 10% 3.9%;
- --popover-foreground: 0 0% 98%;
- --primary: 260 94% 59%;
- --primary-foreground: 355.7 100% 97.3%;
- --secondary: 240 3.7% 15.9%;
- --secondary-foreground: 0 0% 98%;
- --muted: 240 3.7% 15.9%;
- --muted-foreground: 240 5% 64.9%;
- --accent: 240 3.7% 15.9%;
- --accent-foreground: 0 0% 98%;
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 0 0% 98%;
- --border: 240 3.7% 15.9%;
- --input: 240 3.7% 15.9%;
- --ring: 260 94% 59%;
- --radius: 0.5rem;
- }
-
- .dark {
- --background: 240 10% 3.9%;
- --foreground: 0 0% 98%;
- --card: 240 10% 3.9%;
- --card-foreground: 0 0% 98%;
- --popover: 240 10% 3.9%;
- --popover-foreground: 0 0% 98%;
- --primary: 260 94% 59%;
- --primary-foreground: 355.7 100% 97.3%;
- --secondary: 240 3.7% 15.9%;
- --secondary-foreground: 0 0% 98%;
- --muted: 240 3.7% 15.9%;
- --muted-foreground: 240 5% 64.9%;
- --accent: 240 3.7% 15.9%;
- --accent-foreground: 0 0% 98%;
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 0 0% 98%;
- --border: 240 3.7% 15.9%;
- --input: 240 3.7% 15.9%;
- --ring: 260 94% 59%;
- }
-}
-
-@layer base {
- * {
- @apply border-border;
- }
- body {
- @apply bg-background text-foreground;
- }
-}
diff --git a/openmemory/ui/app/layout.tsx b/openmemory/ui/app/layout.tsx
deleted file mode 100644
index 0096136c8..000000000
--- a/openmemory/ui/app/layout.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import type React from "react";
-import "@/app/globals.css";
-import { ThemeProvider } from "@/components/theme-provider";
-import { Navbar } from "@/components/Navbar";
-import { Toaster } from "@/components/ui/toaster";
-import { ScrollArea } from "@/components/ui/scroll-area";
-import { Providers } from "./providers";
-
-export const metadata = {
- title: "OpenMemory - Developer Dashboard",
- description: "Manage your OpenMemory integration and stored memories",
- generator: "v0.dev",
-};
-
-export default function RootLayout({
- children,
-}: {
- children: React.ReactNode;
-}) {
- return (
- <html lang="en" suppressHydrationWarning>
- <body className="h-screen font-sans antialiased flex flex-col bg-zinc-950">
- <Providers>
- <ThemeProvider
- attribute="class"
- defaultTheme="dark"
- enableSystem
- disableTransitionOnChange
- >
- <Navbar />
- <ScrollArea className="h-[calc(100vh-64px)]">{children}</ScrollArea>
- <Toaster />
- </ThemeProvider>
- </Providers>
- </body>
- </html>
- );
-}
diff --git a/openmemory/ui/app/loading.tsx b/openmemory/ui/app/loading.tsx
deleted file mode 100644
index 4349ac3a6..000000000
--- a/openmemory/ui/app/loading.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function Loading() {
- return null;
-}
diff --git a/openmemory/ui/app/memories/components/CreateMemoryDialog.tsx b/openmemory/ui/app/memories/components/CreateMemoryDialog.tsx
deleted file mode 100644
index 7eb4c8212..000000000
--- a/openmemory/ui/app/memories/components/CreateMemoryDialog.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-"use client";
-
-import { Button } from "@/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from "@/components/ui/dialog";
-import { Label } from "@/components/ui/label";
-import { useState, useRef } from "react";
-import { GoPlus } from "react-icons/go";
-import { Loader2 } from "lucide-react";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { toast } from "sonner";
-import { Textarea } from "@/components/ui/textarea";
-
-export function CreateMemoryDialog() {
- const { createMemory, isLoading, fetchMemories } = useMemoriesApi();
- const [open, setOpen] = useState(false);
- const textRef = useRef<HTMLTextAreaElement>(null);
-
- const handleCreateMemory = async (text: string) => {
- try {
- await createMemory(text);
- toast.success("Memory created successfully");
- // close the dialog
- setOpen(false);
- // refetch memories
- await fetchMemories();
- } catch (error) {
- console.error(error);
- toast.error("Failed to create memory");
- }
- };
-
- return (
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogTrigger asChild>
- <Button
- variant="outline"
- size="sm"
- className="bg-primary hover:bg-primary/90 text-white"
- >
- <GoPlus />
- Create Memory
- </Button>
- </DialogTrigger>
- <DialogContent className="sm:max-w-[525px] bg-zinc-900 border-zinc-800">
- <DialogHeader>
- <DialogTitle>Create New Memory</DialogTitle>
- <DialogDescription>
- Add a new memory to your OpenMemory instance
- </DialogDescription>
- </DialogHeader>
- <div className="grid gap-4 py-4">
- <div className="grid gap-2">
- <Label htmlFor="memory">Memory</Label>
- <Textarea
- ref={textRef}
- id="memory"
- placeholder="e.g., Lives in San Francisco"
- className="bg-zinc-950 border-zinc-800 min-h-[150px]"
- />
- </div>
- </div>
- <DialogFooter>
- <Button variant="outline" onClick={() => setOpen(false)}>
- Cancel
- </Button>
- <Button
- disabled={isLoading}
- onClick={() => handleCreateMemory(textRef?.current?.value || "")}
- >
- {isLoading ? (
- <Loader2 className="w-4 h-4 mr-2 animate-spin" />
- ) : (
- "Save Memory"
- )}
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- );
-}
diff --git a/openmemory/ui/app/memories/components/FilterComponent.tsx b/openmemory/ui/app/memories/components/FilterComponent.tsx
deleted file mode 100644
index 53d52b93d..000000000
--- a/openmemory/ui/app/memories/components/FilterComponent.tsx
+++ /dev/null
@@ -1,411 +0,0 @@
-"use client";
-
-import { useEffect, useState } from "react";
-import { Filter, X, ChevronDown, SortAsc, SortDesc } from "lucide-react";
-import { useDispatch, useSelector } from "react-redux";
-
-import {
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from "@/components/ui/dialog";
-import { Button } from "@/components/ui/button";
-import { Badge } from "@/components/ui/badge";
-import { Checkbox } from "@/components/ui/checkbox";
-import { Label } from "@/components/ui/label";
-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuGroup,
-} from "@/components/ui/dropdown-menu";
-import { RootState } from "@/store/store";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import { useFiltersApi } from "@/hooks/useFiltersApi";
-import {
- setSelectedApps,
- setSelectedCategories,
- clearFilters,
-} from "@/store/filtersSlice";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-
-const columns = [
- {
- label: "Memory",
- value: "memory",
- },
- {
- label: "App Name",
- value: "app_name",
- },
- {
- label: "Created On",
- value: "created_at",
- },
-];
-
-export default function FilterComponent() {
- const dispatch = useDispatch();
- const { fetchApps } = useAppsApi();
- const { fetchCategories, updateSort } = useFiltersApi();
- const { fetchMemories } = useMemoriesApi();
- const [isOpen, setIsOpen] = useState(false);
- const [tempSelectedApps, setTempSelectedApps] = useState<string[]>([]);
- const [tempSelectedCategories, setTempSelectedCategories] = useState<
- string[]
- >([]);
- const [showArchived, setShowArchived] = useState(false);
-
- const apps = useSelector((state: RootState) => state.apps.apps);
- const categories = useSelector(
- (state: RootState) => state.filters.categories.items
- );
- const filters = useSelector((state: RootState) => state.filters.apps);
-
- useEffect(() => {
- fetchApps();
- fetchCategories();
- }, [fetchApps, fetchCategories]);
-
- useEffect(() => {
- // Initialize temporary selections with current active filters when dialog opens
- if (isOpen) {
- setTempSelectedApps(filters.selectedApps);
- setTempSelectedCategories(filters.selectedCategories);
- setShowArchived(filters.showArchived || false);
- }
- }, [isOpen, filters]);
-
- useEffect(() => {
- handleClearFilters();
- }, []);
-
- const toggleAppFilter = (app: string) => {
- setTempSelectedApps((prev) =>
- prev.includes(app) ? prev.filter((a) => a !== app) : [...prev, app]
- );
- };
-
- const toggleCategoryFilter = (category: string) => {
- setTempSelectedCategories((prev) =>
- prev.includes(category)
- ? prev.filter((c) => c !== category)
- : [...prev, category]
- );
- };
-
- const toggleAllApps = (checked: boolean) => {
- setTempSelectedApps(checked ? apps.map((app) => app.id) : []);
- };
-
- const toggleAllCategories = (checked: boolean) => {
- setTempSelectedCategories(checked ? categories.map((cat) => cat.name) : []);
- };
-
- const handleClearFilters = async () => {
- setTempSelectedApps([]);
- setTempSelectedCategories([]);
- setShowArchived(false);
- dispatch(clearFilters());
- await fetchMemories();
- };
-
- const handleApplyFilters = async () => {
- try {
- // Get category IDs for selected category names
- const selectedCategoryIds = categories
- .filter((cat) => tempSelectedCategories.includes(cat.name))
- .map((cat) => cat.id);
-
- // Get app IDs for selected app names
- const selectedAppIds = apps
- .filter((app) => tempSelectedApps.includes(app.id))
- .map((app) => app.id);
-
- // Update the global state with temporary selections
- dispatch(setSelectedApps(tempSelectedApps));
- dispatch(setSelectedCategories(tempSelectedCategories));
- dispatch({ type: "filters/setShowArchived", payload: showArchived });
-
- await fetchMemories(undefined, 1, 10, {
- apps: selectedAppIds,
- categories: selectedCategoryIds,
- sortColumn: filters.sortColumn,
- sortDirection: filters.sortDirection,
- showArchived: showArchived,
- });
- setIsOpen(false);
- } catch (error) {
- console.error("Failed to apply filters:", error);
- }
- };
-
- const handleDialogChange = (open: boolean) => {
- setIsOpen(open);
- if (!open) {
- // Reset temporary selections to active filters when dialog closes without applying
- setTempSelectedApps(filters.selectedApps);
- setTempSelectedCategories(filters.selectedCategories);
- setShowArchived(filters.showArchived || false);
- }
- };
-
- const setSorting = async (column: string) => {
- const newDirection =
- filters.sortColumn === column && filters.sortDirection === "asc"
- ? "desc"
- : "asc";
- updateSort(column, newDirection);
-
- // Get category IDs for selected category names
- const selectedCategoryIds = categories
- .filter((cat) => tempSelectedCategories.includes(cat.name))
- .map((cat) => cat.id);
-
- // Get app IDs for selected app names
- const selectedAppIds = apps
- .filter((app) => tempSelectedApps.includes(app.id))
- .map((app) => app.id);
-
- try {
- await fetchMemories(undefined, 1, 10, {
- apps: selectedAppIds,
- categories: selectedCategoryIds,
- sortColumn: column,
- sortDirection: newDirection,
- });
- } catch (error) {
- console.error("Failed to apply sorting:", error);
- }
- };
-
- const hasActiveFilters =
- filters.selectedApps.length > 0 ||
- filters.selectedCategories.length > 0 ||
- filters.showArchived;
-
- const hasTempFilters =
- tempSelectedApps.length > 0 ||
- tempSelectedCategories.length > 0 ||
- showArchived;
-
- return (
- <div className="flex items-center gap-2">
- <Dialog open={isOpen} onOpenChange={handleDialogChange}>
- <DialogTrigger asChild>
- <Button
- variant="outline"
- className={`h-9 px-4 border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800 ${
- hasActiveFilters ? "border-primary" : ""
- }`}
- >
- <Filter
- className={`h-4 w-4 ${hasActiveFilters ? "text-primary" : ""}`}
- />
- Filter
- {hasActiveFilters && (
- <Badge className="ml-2 bg-primary hover:bg-primary/80 text-xs">
- {filters.selectedApps.length +
- filters.selectedCategories.length +
- (filters.showArchived ? 1 : 0)}
- </Badge>
- )}
- </Button>
- </DialogTrigger>
- <DialogContent className="sm:max-w-[425px] bg-zinc-900 border-zinc-800 text-zinc-100">
- <DialogHeader>
- <DialogTitle className="text-zinc-100 flex justify-between items-center">
- <span>Filters</span>
- </DialogTitle>
- </DialogHeader>
- <Tabs defaultValue="apps" className="w-full">
- <TabsList className="grid grid-cols-3 bg-zinc-800">
- <TabsTrigger
- value="apps"
- className="data-[state=active]:bg-zinc-700"
- >
- Apps
- </TabsTrigger>
- <TabsTrigger
- value="categories"
- className="data-[state=active]:bg-zinc-700"
- >
- Categories
- </TabsTrigger>
- <TabsTrigger
- value="archived"
- className="data-[state=active]:bg-zinc-700"
- >
- Archived
- </TabsTrigger>
- </TabsList>
- <TabsContent value="apps" className="mt-4">
- <div className="space-y-3">
- <div className="flex items-center space-x-2">
- <Checkbox
- id="select-all-apps"
- checked={
- apps.length > 0 && tempSelectedApps.length === apps.length
- }
- onCheckedChange={(checked) =>
- toggleAllApps(checked as boolean)
- }
- className="border-zinc-600 data-[state=checked]:bg-primary data-[state=checked]:border-primary"
- />
- <Label
- htmlFor="select-all-apps"
- className="text-sm font-normal text-zinc-300 cursor-pointer"
- >
- Select All
- </Label>
- </div>
- {apps.map((app) => (
- <div key={app.id} className="flex items-center space-x-2">
- <Checkbox
- id={`app-${app.id}`}
- checked={tempSelectedApps.includes(app.id)}
- onCheckedChange={() => toggleAppFilter(app.id)}
- className="border-zinc-600 data-[state=checked]:bg-primary data-[state=checked]:border-primary"
- />
- <Label
- htmlFor={`app-${app.id}`}
- className="text-sm font-normal text-zinc-300 cursor-pointer"
- >
- {app.name}
- </Label>
- </div>
- ))}
- </div>
- </TabsContent>
- <TabsContent value="categories" className="mt-4">
- <div className="space-y-3">
- <div className="flex items-center space-x-2">
- <Checkbox
- id="select-all-categories"
- checked={
- categories.length > 0 &&
- tempSelectedCategories.length === categories.length
- }
- onCheckedChange={(checked) =>
- toggleAllCategories(checked as boolean)
- }
- className="border-zinc-600 data-[state=checked]:bg-primary data-[state=checked]:border-primary"
- />
- <Label
- htmlFor="select-all-categories"
- className="text-sm font-normal text-zinc-300 cursor-pointer"
- >
- Select All
- </Label>
- </div>
- {categories.map((category) => (
- <div
- key={category.name}
- className="flex items-center space-x-2"
- >
- <Checkbox
- id={`category-${category.name}`}
- checked={tempSelectedCategories.includes(category.name)}
- onCheckedChange={() =>
- toggleCategoryFilter(category.name)
- }
- className="border-zinc-600 data-[state=checked]:bg-primary data-[state=checked]:border-primary"
- />
- <Label
- htmlFor={`category-${category.name}`}
- className="text-sm font-normal text-zinc-300 cursor-pointer"
- >
- {category.name}
- </Label>
- </div>
- ))}
- </div>
- </TabsContent>
- <TabsContent value="archived" className="mt-4">
- <div className="space-y-3">
- <div className="flex items-center space-x-2">
- <Checkbox
- id="show-archived"
- checked={showArchived}
- onCheckedChange={(checked) =>
- setShowArchived(checked as boolean)
- }
- className="border-zinc-600 data-[state=checked]:bg-primary data-[state=checked]:border-primary"
- />
- <Label
- htmlFor="show-archived"
- className="text-sm font-normal text-zinc-300 cursor-pointer"
- >
- Show Archived Memories
- </Label>
- </div>
- </div>
- </TabsContent>
- </Tabs>
- <div className="flex justify-end mt-4 gap-3">
- {/* Clear all button */}
- {hasTempFilters && (
- <Button
- onClick={handleClearFilters}
- className="bg-zinc-800 hover:bg-zinc-700 text-zinc-300"
- >
- Clear All
- </Button>
- )}
- {/* Apply filters button */}
- <Button
- onClick={handleApplyFilters}
- className="bg-primary hover:bg-primary/80 text-white"
- >
- Apply Filters
- </Button>
- </div>
- </DialogContent>
- </Dialog>
-
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button
- variant="outline"
- className="h-9 px-4 border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800"
- >
- {filters.sortDirection === "asc" ? (
- <SortAsc className="h-4 w-4" />
- ) : (
- <SortDesc className="h-4 w-4" />
- )}
- Sort: {columns.find((c) => c.value === filters.sortColumn)?.label}
- <ChevronDown className="h-4 w-4 ml-2" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-56 bg-zinc-900 border-zinc-800 text-zinc-100">
- <DropdownMenuLabel>Sort by</DropdownMenuLabel>
- <DropdownMenuSeparator className="bg-zinc-800" />
- <DropdownMenuGroup>
- {columns.map((column) => (
- <DropdownMenuItem
- key={column.value}
- onClick={() => setSorting(column.value)}
- className="cursor-pointer flex justify-between items-center"
- >
- {column.label}
- {filters.sortColumn === column.value &&
- (filters.sortDirection === "asc" ? (
- <SortAsc className="h-4 w-4 text-primary" />
- ) : (
- <SortDesc className="h-4 w-4 text-primary" />
- ))}
- </DropdownMenuItem>
- ))}
- </DropdownMenuGroup>
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memories/components/MemoriesSection.tsx b/openmemory/ui/app/memories/components/MemoriesSection.tsx
deleted file mode 100644
index 08b0f6feb..000000000
--- a/openmemory/ui/app/memories/components/MemoriesSection.tsx
+++ /dev/null
@@ -1,145 +0,0 @@
-import { useState, useEffect } from "react";
-import { Button } from "@/components/ui/button";
-import { Category, Client } from "../../../components/types";
-import { MemoryTable } from "./MemoryTable";
-import { MemoryPagination } from "./MemoryPagination";
-import { CreateMemoryDialog } from "./CreateMemoryDialog";
-import { PageSizeSelector } from "./PageSizeSelector";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { useRouter, useSearchParams } from "next/navigation";
-import { MemoryTableSkeleton } from "@/skeleton/MemoryTableSkeleton";
-
-export function MemoriesSection() {
- const router = useRouter();
- const searchParams = useSearchParams();
- const { fetchMemories } = useMemoriesApi();
- const [memories, setMemories] = useState<any[]>([]);
- const [totalItems, setTotalItems] = useState(0);
- const [totalPages, setTotalPages] = useState(1);
- const [isLoading, setIsLoading] = useState(true);
-
- const currentPage = Number(searchParams.get("page")) || 1;
- const itemsPerPage = Number(searchParams.get("size")) || 10;
- const [selectedCategory, setSelectedCategory] = useState<Category | "all">(
- "all"
- );
- const [selectedClient, setSelectedClient] = useState<Client | "all">("all");
-
- useEffect(() => {
- const loadMemories = async () => {
- setIsLoading(true);
- try {
- const searchQuery = searchParams.get("search") || "";
- const result = await fetchMemories(
- searchQuery,
- currentPage,
- itemsPerPage
- );
- setMemories(result.memories);
- setTotalItems(result.total);
- setTotalPages(result.pages);
- } catch (error) {
- console.error("Failed to fetch memories:", error);
- }
- setIsLoading(false);
- };
-
- loadMemories();
- }, [currentPage, itemsPerPage, fetchMemories, searchParams]);
-
- const setCurrentPage = (page: number) => {
- const params = new URLSearchParams(searchParams.toString());
- params.set("page", page.toString());
- params.set("size", itemsPerPage.toString());
- router.push(`?${params.toString()}`);
- };
-
- const handlePageSizeChange = (size: number) => {
- const params = new URLSearchParams(searchParams.toString());
- params.set("page", "1"); // Reset to page 1 when changing page size
- params.set("size", size.toString());
- router.push(`?${params.toString()}`);
- };
-
- if (isLoading) {
- return (
- <div className="w-full bg-transparent">
- <MemoryTableSkeleton />
- <div className="flex items-center justify-between mt-4">
- <div className="h-8 w-32 bg-zinc-800 rounded animate-pulse" />
- <div className="h-8 w-48 bg-zinc-800 rounded animate-pulse" />
- <div className="h-8 w-32 bg-zinc-800 rounded animate-pulse" />
- </div>
- </div>
- );
- }
-
- return (
- <div className="w-full bg-transparent">
- <div>
- {memories.length > 0 ? (
- <>
- <MemoryTable />
- <div className="flex items-center justify-between mt-4">
- <PageSizeSelector
- pageSize={itemsPerPage}
- onPageSizeChange={handlePageSizeChange}
- />
- <div className="text-sm text-zinc-500 mr-2">
- Showing {(currentPage - 1) * itemsPerPage + 1} to{" "}
- {Math.min(currentPage * itemsPerPage, totalItems)} of{" "}
- {totalItems} memories
- </div>
- <MemoryPagination
- currentPage={currentPage}
- totalPages={totalPages}
- setCurrentPage={setCurrentPage}
- />
- </div>
- </>
- ) : (
- <div className="flex flex-col items-center justify-center py-12 text-center">
- <div className="rounded-full bg-zinc-800 p-3 mb-4">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="24"
- height="24"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- className="h-6 w-6 text-zinc-400"
- >
- <path d="M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7"></path>
- <path d="M16 2v6h6"></path>
- <path d="M12 18v-6"></path>
- <path d="M9 15h6"></path>
- </svg>
- </div>
- <h3 className="text-lg font-medium">No memories found</h3>
- <p className="text-zinc-400 mt-1 mb-4">
- {selectedCategory !== "all" || selectedClient !== "all"
- ? "Try adjusting your filters"
- : "Create your first memory to see it here"}
- </p>
- {selectedCategory !== "all" || selectedClient !== "all" ? (
- <Button
- variant="outline"
- onClick={() => {
- setSelectedCategory("all");
- setSelectedClient("all");
- }}
- >
- Clear Filters
- </Button>
- ) : (
- <CreateMemoryDialog />
- )}
- </div>
- )}
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memories/components/MemoryFilters.tsx b/openmemory/ui/app/memories/components/MemoryFilters.tsx
deleted file mode 100644
index 8406162c3..000000000
--- a/openmemory/ui/app/memories/components/MemoryFilters.tsx
+++ /dev/null
@@ -1,154 +0,0 @@
-"use client";
-import { Archive, Pause, Play, Search } from "lucide-react";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
-import { FiTrash2 } from "react-icons/fi";
-import { useSelector, useDispatch } from "react-redux";
-import { RootState } from "@/store/store";
-import { clearSelection } from "@/store/memoriesSlice";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
-import { useRouter, useSearchParams } from "next/navigation";
-import { debounce } from "lodash";
-import { useEffect, useRef } from "react";
-import FilterComponent from "./FilterComponent";
-import { clearFilters } from "@/store/filtersSlice";
-
-export function MemoryFilters() {
- const dispatch = useDispatch();
- const selectedMemoryIds = useSelector(
- (state: RootState) => state.memories.selectedMemoryIds
- );
- const { deleteMemories, updateMemoryState, fetchMemories } = useMemoriesApi();
- const router = useRouter();
- const searchParams = useSearchParams();
- const activeFilters = useSelector((state: RootState) => state.filters.apps);
-
- const inputRef = useRef<HTMLInputElement>(null);
-
- const handleDeleteSelected = async () => {
- try {
- await deleteMemories(selectedMemoryIds);
- dispatch(clearSelection());
- } catch (error) {
- console.error("Failed to delete memories:", error);
- }
- };
-
- const handleArchiveSelected = async () => {
- try {
- await updateMemoryState(selectedMemoryIds, "archived");
- } catch (error) {
- console.error("Failed to archive memories:", error);
- }
- };
-
- const handlePauseSelected = async () => {
- try {
- await updateMemoryState(selectedMemoryIds, "paused");
- } catch (error) {
- console.error("Failed to pause memories:", error);
- }
- };
-
- const handleResumeSelected = async () => {
- try {
- await updateMemoryState(selectedMemoryIds, "active");
- } catch (error) {
- console.error("Failed to resume memories:", error);
- }
- };
-
- // add debounce
- const handleSearch = debounce(async (query: string) => {
- router.push(`/memories?search=${query}`);
- }, 500);
-
- useEffect(() => {
- // if the url has a search param, set the input value to the search param
- if (searchParams.get("search")) {
- if (inputRef.current) {
- inputRef.current.value = searchParams.get("search") || "";
- inputRef.current.focus();
- }
- }
- }, []);
-
- const handleClearAllFilters = async () => {
- dispatch(clearFilters());
- await fetchMemories(); // Fetch memories without any filters
- };
-
- const hasActiveFilters =
- activeFilters.selectedApps.length > 0 ||
- activeFilters.selectedCategories.length > 0;
-
- return (
- <div className="flex flex-col md:flex-row gap-4 mb-4">
- <div className="relative flex-1">
- <Search className="absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-500" />
- <Input
- ref={inputRef}
- placeholder="Search memories..."
- className="pl-8 bg-zinc-950 border-zinc-800 max-w-[500px]"
- onChange={(e) => handleSearch(e.target.value)}
- />
- </div>
- <div className="flex gap-2">
- <FilterComponent />
- {hasActiveFilters && (
- <Button
- variant="outline"
- className="bg-zinc-900 text-zinc-300 hover:bg-zinc-800"
- onClick={handleClearAllFilters}
- >
- Clear Filters
- </Button>
- )}
- {selectedMemoryIds.length > 0 && (
- <>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button
- variant="outline"
- className="border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800"
- >
- Actions
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent
- align="end"
- className="bg-zinc-900 border-zinc-800"
- >
- <DropdownMenuItem onClick={handleArchiveSelected}>
- <Archive className="mr-2 h-4 w-4" />
- Archive Selected
- </DropdownMenuItem>
- <DropdownMenuItem onClick={handlePauseSelected}>
- <Pause className="mr-2 h-4 w-4" />
- Pause Selected
- </DropdownMenuItem>
- <DropdownMenuItem onClick={handleResumeSelected}>
- <Play className="mr-2 h-4 w-4" />
- Resume Selected
- </DropdownMenuItem>
- <DropdownMenuItem
- onClick={handleDeleteSelected}
- className="text-red-500"
- >
- <FiTrash2 className="mr-2 h-4 w-4" />
- Delete Selected
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
- </>
- )}
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memories/components/MemoryPagination.tsx b/openmemory/ui/app/memories/components/MemoryPagination.tsx
deleted file mode 100644
index f4a3e24b0..000000000
--- a/openmemory/ui/app/memories/components/MemoryPagination.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import { ChevronLeft, ChevronRight } from "lucide-react";
-import { Button } from "@/components/ui/button";
-
-interface MemoryPaginationProps {
- currentPage: number;
- totalPages: number;
- setCurrentPage: (page: number) => void;
-}
-
-export function MemoryPagination({
- currentPage,
- totalPages,
- setCurrentPage,
-}: MemoryPaginationProps) {
- return (
- <div className="flex items-center justify-between my-auto">
- <div className="flex items-center gap-2">
- <Button
- variant="outline"
- size="icon"
- onClick={() => setCurrentPage(Math.max(currentPage - 1, 1))}
- disabled={currentPage === 1}
- >
- <ChevronLeft className="h-4 w-4" />
- </Button>
- <div className="text-sm">
- Page {currentPage} of {totalPages}
- </div>
- <Button
- variant="outline"
- size="icon"
- onClick={() => setCurrentPage(Math.min(currentPage + 1, totalPages))}
- disabled={currentPage === totalPages}
- >
- <ChevronRight className="h-4 w-4" />
- </Button>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memories/components/MemoryTable.tsx b/openmemory/ui/app/memories/components/MemoryTable.tsx
deleted file mode 100644
index 5ed95531d..000000000
--- a/openmemory/ui/app/memories/components/MemoryTable.tsx
+++ /dev/null
@@ -1,302 +0,0 @@
-import {
- Edit,
- MoreHorizontal,
- Trash2,
- Pause,
- Archive,
- Play,
-} from "lucide-react";
-import { Button } from "@/components/ui/button";
-import {
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow,
-} from "@/components/ui/table";
-import { Checkbox } from "@/components/ui/checkbox";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
-import { useToast } from "@/hooks/use-toast";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { useDispatch, useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import {
- selectMemory,
- deselectMemory,
- selectAllMemories,
- clearSelection,
-} from "@/store/memoriesSlice";
-import SourceApp from "@/components/shared/source-app";
-import { HiMiniRectangleStack } from "react-icons/hi2";
-import { PiSwatches } from "react-icons/pi";
-import { GoPackage } from "react-icons/go";
-import { CiCalendar } from "react-icons/ci";
-import { useRouter } from "next/navigation";
-import Categories from "@/components/shared/categories";
-import { useUI } from "@/hooks/useUI";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
-import { formatDate } from "@/lib/helpers";
-
-export function MemoryTable() {
- const { toast } = useToast();
- const router = useRouter();
- const dispatch = useDispatch();
- const selectedMemoryIds = useSelector(
- (state: RootState) => state.memories.selectedMemoryIds
- );
- const memories = useSelector((state: RootState) => state.memories.memories);
-
- const { deleteMemories, updateMemoryState, isLoading } = useMemoriesApi();
-
- const handleDeleteMemory = (id: string) => {
- deleteMemories([id]);
- };
-
- const handleSelectAll = (checked: boolean) => {
- if (checked) {
- dispatch(selectAllMemories());
- } else {
- dispatch(clearSelection());
- }
- };
-
- const handleSelectMemory = (id: string, checked: boolean) => {
- if (checked) {
- dispatch(selectMemory(id));
- } else {
- dispatch(deselectMemory(id));
- }
- };
- const { handleOpenUpdateMemoryDialog } = useUI();
-
- const handleEditMemory = (memory_id: string, memory_content: string) => {
- handleOpenUpdateMemoryDialog(memory_id, memory_content);
- };
-
- const handleUpdateMemoryState = async (id: string, newState: string) => {
- try {
- await updateMemoryState([id], newState);
- } catch (error) {
- toast({
- title: "Error",
- description: "Failed to update memory state",
- variant: "destructive",
- });
- }
- };
-
- const isAllSelected =
- memories.length > 0 && selectedMemoryIds.length === memories.length;
- const isPartiallySelected =
- selectedMemoryIds.length > 0 && selectedMemoryIds.length < memories.length;
-
- const handleMemoryClick = (id: string) => {
- router.push(`/memory/${id}`);
- };
-
- return (
- <div className="rounded-md border">
- <Table className="">
- <TableHeader>
- <TableRow className="bg-zinc-800 hover:bg-zinc-800">
- <TableHead className="w-[50px] pl-4">
- <Checkbox
- className="data-[state=checked]:border-primary border-zinc-500/50"
- checked={isAllSelected}
- data-state={
- isPartiallySelected
- ? "indeterminate"
- : isAllSelected
- ? "checked"
- : "unchecked"
- }
- onCheckedChange={handleSelectAll}
- />
- </TableHead>
- <TableHead className="border-zinc-700">
- <div className="flex items-center min-w-[600px]">
- <HiMiniRectangleStack className="mr-1" />
- Memory
- </div>
- </TableHead>
- <TableHead className="border-zinc-700">
- <div className="flex items-center">
- <PiSwatches className="mr-1" size={15} />
- Categories
- </div>
- </TableHead>
- <TableHead className="w-[140px] border-zinc-700">
- <div className="flex items-center">
- <GoPackage className="mr-1" />
- Source App
- </div>
- </TableHead>
- <TableHead className="w-[140px] border-zinc-700">
- <div className="flex items-center w-full justify-center">
- <CiCalendar className="mr-1" size={16} />
- Created On
- </div>
- </TableHead>
- <TableHead className="text-right border-zinc-700 flex justify-center">
- <div className="flex items-center justify-end">
- <MoreHorizontal className="h-4 w-4 mr-2" />
- </div>
- </TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {memories.map((memory) => (
- <TableRow
- key={memory.id}
- className={`hover:bg-zinc-900/50 ${
- memory.state === "paused" || memory.state === "archived"
- ? "text-zinc-400"
- : ""
- } ${isLoading ? "animate-pulse opacity-50" : ""}`}
- >
- <TableCell className="pl-4">
- <Checkbox
- className="data-[state=checked]:border-primary border-zinc-500/50"
- checked={selectedMemoryIds.includes(memory.id)}
- onCheckedChange={(checked) =>
- handleSelectMemory(memory.id, checked as boolean)
- }
- />
- </TableCell>
- <TableCell className="">
- {memory.state === "paused" || memory.state === "archived" ? (
- <TooltipProvider>
- <Tooltip delayDuration={0}>
- <TooltipTrigger asChild>
- <div
- onClick={() => handleMemoryClick(memory.id)}
- className={`font-medium ${
- memory.state === "paused" ||
- memory.state === "archived"
- ? "text-zinc-400"
- : "text-white"
- } cursor-pointer`}
- >
- {memory.memory}
- </div>
- </TooltipTrigger>
- <TooltipContent>
- <p>
- This memory is{" "}
- <span className="font-bold">
- {memory.state === "paused" ? "paused" : "archived"}
- </span>{" "}
- and <span className="font-bold">disabled</span>.
- </p>
- </TooltipContent>
- </Tooltip>
- </TooltipProvider>
- ) : (
- <div
- onClick={() => handleMemoryClick(memory.id)}
- className={`font-medium text-white cursor-pointer`}
- >
- {memory.memory}
- </div>
- )}
- </TableCell>
- <TableCell className="">
- <div className="flex flex-wrap gap-1">
- <Categories
- categories={memory.categories}
- isPaused={
- memory.state === "paused" || memory.state === "archived"
- }
- concat={true}
- />
- </div>
- </TableCell>
- <TableCell className="w-[140px] text-center">
- <SourceApp source={memory.app_name} />
- </TableCell>
- <TableCell className="w-[140px] text-center">
- {formatDate(memory.created_at)}
- </TableCell>
- <TableCell className="text-right flex justify-center">
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button variant="ghost" size="icon" className="h-8 w-8">
- <MoreHorizontal className="h-4 w-4" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent
- align="end"
- className="bg-zinc-900 border-zinc-800"
- >
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() => {
- const newState =
- memory.state === "active" ? "paused" : "active";
- handleUpdateMemoryState(memory.id, newState);
- }}
- >
- {memory?.state === "active" ? (
- <>
- <Pause className="mr-2 h-4 w-4" />
- Pause
- </>
- ) : (
- <>
- <Play className="mr-2 h-4 w-4" />
- Resume
- </>
- )}
- </DropdownMenuItem>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() => {
- const newState =
- memory.state === "active" ? "archived" : "active";
- handleUpdateMemoryState(memory.id, newState);
- }}
- >
- <Archive className="mr-2 h-4 w-4" />
- {memory?.state !== "archived" ? (
- <>Archive</>
- ) : (
- <>Unarchive</>
- )}
- </DropdownMenuItem>
- <DropdownMenuItem
- className="cursor-pointer"
- onClick={() => handleEditMemory(memory.id, memory.memory)}
- >
- <Edit className="mr-2 h-4 w-4" />
- Edit
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- <DropdownMenuItem
- className="cursor-pointer text-red-500 focus:text-red-500"
- onClick={() => handleDeleteMemory(memory.id)}
- >
- <Trash2 className="mr-2 h-4 w-4" />
- Delete
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memories/components/PageSizeSelector.tsx b/openmemory/ui/app/memories/components/PageSizeSelector.tsx
deleted file mode 100644
index 3987d05ef..000000000
--- a/openmemory/ui/app/memories/components/PageSizeSelector.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-
-interface PageSizeSelectorProps {
- pageSize: number;
- onPageSizeChange: (size: number) => void;
-}
-
-export function PageSizeSelector({
- pageSize,
- onPageSizeChange,
-}: PageSizeSelectorProps) {
- const pageSizeOptions = [10, 20, 50, 100];
-
- return (
- <div className="flex items-center gap-2">
- <span className="text-sm text-zinc-500">Show</span>
- <Select
- value={pageSize.toString()}
- onValueChange={(value) => onPageSizeChange(Number(value))}
- >
- <SelectTrigger className="w-[70px] h-8">
- <SelectValue />
- </SelectTrigger>
- <SelectContent>
- {pageSizeOptions.map((size) => (
- <SelectItem key={size} value={size.toString()}>
- {size}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- <span className="text-sm text-zinc-500">items</span>
- </div>
- );
-}
-
-export default PageSizeSelector;
diff --git a/openmemory/ui/app/memories/page.tsx b/openmemory/ui/app/memories/page.tsx
deleted file mode 100644
index 3ebb9764a..000000000
--- a/openmemory/ui/app/memories/page.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-"use client";
-
-import { useEffect } from "react";
-import { MemoriesSection } from "@/app/memories/components/MemoriesSection";
-import { MemoryFilters } from "@/app/memories/components/MemoryFilters";
-import { useRouter, useSearchParams } from "next/navigation";
-import "@/styles/animation.css";
-import UpdateMemory from "@/components/shared/update-memory";
-import { useUI } from "@/hooks/useUI";
-
-export default function MemoriesPage() {
- const router = useRouter();
- const searchParams = useSearchParams();
- const { updateMemoryDialog, handleCloseUpdateMemoryDialog } = useUI();
- useEffect(() => {
- // Set default pagination values if not present in URL
- if (!searchParams.has("page") || !searchParams.has("size")) {
- const params = new URLSearchParams(searchParams.toString());
- if (!searchParams.has("page")) params.set("page", "1");
- if (!searchParams.has("size")) params.set("size", "10");
- router.push(`?${params.toString()}`);
- }
- }, []);
-
- return (
- <div className="">
- <UpdateMemory
- memoryId={updateMemoryDialog.memoryId || ""}
- memoryContent={updateMemoryDialog.memoryContent || ""}
- open={updateMemoryDialog.isOpen}
- onOpenChange={handleCloseUpdateMemoryDialog}
- />
- <main className="flex-1 py-6">
- <div className="container">
- <div className="mt-1 pb-4 animate-fade-slide-down">
- <MemoryFilters />
- </div>
- <div className="animate-fade-slide-down delay-1">
- <MemoriesSection />
- </div>
- </div>
- </main>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memory/[id]/components/AccessLog.tsx b/openmemory/ui/app/memory/[id]/components/AccessLog.tsx
deleted file mode 100644
index 9d1b4d5f1..000000000
--- a/openmemory/ui/app/memory/[id]/components/AccessLog.tsx
+++ /dev/null
@@ -1,116 +0,0 @@
-import Image from "next/image";
-import { useEffect, useState } from "react";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { constants } from "@/components/shared/source-app";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { ScrollArea } from "@/components/ui/scroll-area";
-
-interface AccessLogEntry {
- id: string;
- app_name: string;
- accessed_at: string;
-}
-
-interface AccessLogProps {
- memoryId: string;
-}
-
-export function AccessLog({ memoryId }: AccessLogProps) {
- const { fetchAccessLogs } = useMemoriesApi();
- const accessEntries = useSelector(
- (state: RootState) => state.memories.accessLogs
- );
- const [isLoading, setIsLoading] = useState(true);
-
- useEffect(() => {
- const loadAccessLogs = async () => {
- try {
- await fetchAccessLogs(memoryId);
- } catch (error) {
- console.error("Failed to fetch access logs:", error);
- } finally {
- setIsLoading(false);
- }
- };
-
- loadAccessLogs();
- }, []);
-
- if (isLoading) {
- return (
- <div className="w-full max-w-md mx-auto rounded-3xl overflow-hidden bg-[#1c1c1c] text-white p-6">
- <p className="text-center text-zinc-500">Loading access logs...</p>
- </div>
- );
- }
-
- return (
- <div className="w-full max-w-md mx-auto rounded-lg overflow-hidden bg-zinc-900 border border-zinc-800 text-white pb-1">
- <div className="px-6 py-4 flex justify-between items-center bg-zinc-800 border-b border-zinc-800">
- <h2 className="font-semibold">Access Log</h2>
- {/* <button className="px-3 py-1 text-sm rounded-lg border border-[#ff5533] text-[#ff5533] flex items-center gap-2 hover:bg-[#ff5533]/10 transition-colors">
- <PauseIcon size={18} />
- <span>Pause Access</span>
- </button> */}
- </div>
-
- <ScrollArea className="p-6 max-h-[450px]">
- {accessEntries.length === 0 && (
- <div className="w-full max-w-md mx-auto rounded-3xl overflow-hidden min-h-[110px] flex items-center justify-center text-white p-6">
- <p className="text-center text-zinc-500">
- No access logs available
- </p>
- </div>
- )}
- <ul className="space-y-8">
- {accessEntries.map((entry: AccessLogEntry, index: number) => {
- const appConfig =
- constants[entry.app_name as keyof typeof constants] ||
- constants.default;
-
- return (
- <li key={entry.id} className="relative flex items-start gap-4">
- <div className="relative z-10 rounded-full overflow-hidden bg-[#2a2a2a] w-8 h-8 flex items-center justify-center flex-shrink-0">
- {appConfig.iconImage ? (
- <Image
- src={appConfig.iconImage}
- alt={`${appConfig.name} icon`}
- width={30}
- height={30}
- className="w-8 h-8 object-contain"
- />
- ) : (
- <div className="w-8 h-8 flex items-center justify-center">
- {appConfig.icon}
- </div>
- )}
- </div>
-
- {index < accessEntries.length - 1 && (
- <div className="absolute left-4 top-6 bottom-0 w-[1px] h-[calc(100%+1rem)] bg-[#333333] transform -translate-x-1/2"></div>
- )}
-
- <div className="flex flex-col">
- <span className="font-medium">{appConfig.name}</span>
- <span className="text-zinc-400 text-sm">
- {new Date(entry.accessed_at + "Z").toLocaleDateString(
- "en-US",
- {
- year: "numeric",
- month: "short",
- day: "numeric",
- hour: "numeric",
- minute: "numeric",
- }
- )}
- </span>
- </div>
- </li>
- );
- })}
- </ul>
- </ScrollArea>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memory/[id]/components/MemoryActions.tsx b/openmemory/ui/app/memory/[id]/components/MemoryActions.tsx
deleted file mode 100644
index 9f4958e83..000000000
--- a/openmemory/ui/app/memory/[id]/components/MemoryActions.tsx
+++ /dev/null
@@ -1,114 +0,0 @@
-import { Button } from "@/components/ui/button";
-import { Pencil, Archive, Trash, Pause, Play, ChevronDown } from "lucide-react";
-import { useUI } from "@/hooks/useUI";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
- DropdownMenuLabel,
- DropdownMenuSeparator,
-} from "@/components/ui/dropdown-menu";
-
-interface MemoryActionsProps {
- memoryId: string;
- memoryContent: string;
- memoryState: string;
-}
-
-export function MemoryActions({
- memoryId,
- memoryContent,
- memoryState,
-}: MemoryActionsProps) {
- const { handleOpenUpdateMemoryDialog } = useUI();
- const { updateMemoryState, isLoading } = useMemoriesApi();
-
- const handleEdit = () => {
- handleOpenUpdateMemoryDialog(memoryId, memoryContent);
- };
-
- const handleStateChange = (newState: string) => {
- updateMemoryState([memoryId], newState);
- };
-
- const getStateLabel = () => {
- switch (memoryState) {
- case "archived":
- return "Archived";
- case "paused":
- return "Paused";
- default:
- return "Active";
- }
- };
-
- const getStateIcon = () => {
- switch (memoryState) {
- case "archived":
- return <Archive className="h-3 w-3 mr-2" />;
- case "paused":
- return <Pause className="h-3 w-3 mr-2" />;
- default:
- return <Play className="h-3 w-3 mr-2" />;
- }
- };
-
- return (
- <div className="flex gap-2">
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <Button
- disabled={isLoading}
- variant="outline"
- size="sm"
- className="shadow-md bg-zinc-900 border border-zinc-700/50 hover:bg-zinc-950 text-zinc-400"
- >
- <span className="font-semibold">{getStateLabel()}</span>
- <ChevronDown className="h-3 w-3 mt-1 -ml-1" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-40 bg-zinc-900 border-zinc-800 text-zinc-100">
- <DropdownMenuLabel>Change State</DropdownMenuLabel>
- <DropdownMenuSeparator className="bg-zinc-800" />
- <DropdownMenuItem
- onClick={() => handleStateChange("active")}
- className="cursor-pointer flex items-center"
- disabled={memoryState === "active"}
- >
- <Play className="h-3 w-3 mr-2" />
- <span className="font-semibold">Active</span>
- </DropdownMenuItem>
- <DropdownMenuItem
- onClick={() => handleStateChange("paused")}
- className="cursor-pointer flex items-center"
- disabled={memoryState === "paused"}
- >
- <Pause className="h-3 w-3 mr-2" />
- <span className="font-semibold">Pause</span>
- </DropdownMenuItem>
- <DropdownMenuItem
- onClick={() => handleStateChange("archived")}
- className="cursor-pointer flex items-center"
- disabled={memoryState === "archived"}
- >
- <Archive className="h-3 w-3 mr-2" />
- <span className="font-semibold">Archive</span>
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
-
- <Button
- disabled={isLoading}
- variant="outline"
- size="sm"
- onClick={handleEdit}
- className="shadow-md bg-zinc-900 border border-zinc-700/50 hover:bg-zinc-950 text-zinc-400"
- >
- <Pencil className="h-3 w-3 -mr-1" />
- <span className="font-semibold">Edit</span>
- </Button>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memory/[id]/components/MemoryDetails.tsx b/openmemory/ui/app/memory/[id]/components/MemoryDetails.tsx
deleted file mode 100644
index 886aac6ec..000000000
--- a/openmemory/ui/app/memory/[id]/components/MemoryDetails.tsx
+++ /dev/null
@@ -1,151 +0,0 @@
-"use client";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { MemoryActions } from "./MemoryActions";
-import { ArrowLeft, Copy, Check } from "lucide-react";
-import { Button } from "@/components/ui/button";
-import { useRouter } from "next/navigation";
-import { AccessLog } from "./AccessLog";
-import Image from "next/image";
-import Categories from "@/components/shared/categories";
-import { useEffect, useState } from "react";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { constants } from "@/components/shared/source-app";
-import { RelatedMemories } from "./RelatedMemories";
-
-interface MemoryDetailsProps {
- memory_id: string;
-}
-
-export function MemoryDetails({ memory_id }: MemoryDetailsProps) {
- const router = useRouter();
- const { fetchMemoryById, hasUpdates } = useMemoriesApi();
- const memory = useSelector(
- (state: RootState) => state.memories.selectedMemory
- );
- const [copied, setCopied] = useState(false);
-
- const handleCopy = async () => {
- if (memory?.id) {
- await navigator.clipboard.writeText(memory.id);
- setCopied(true);
- setTimeout(() => setCopied(false), 2000);
- }
- };
-
- useEffect(() => {
- fetchMemoryById(memory_id);
- }, []);
-
- return (
- <div className="container mx-auto py-6 px-4">
- <Button
- variant="ghost"
- className="mb-4 text-zinc-400 hover:text-white"
- onClick={() => router.back()}
- >
- <ArrowLeft className="h-4 w-4 mr-2" />
- Back to Memories
- </Button>
- <div className="flex gap-4 w-full">
- <div className="rounded-lg w-2/3 border h-fit pb-2 border-zinc-800 bg-zinc-900 overflow-hidden">
- <div className="">
- <div className="flex px-6 py-3 justify-between items-center mb-6 bg-zinc-800 border-b border-zinc-800">
- <div className="flex items-center gap-2">
- <h1 className="font-semibold text-white">
- Memory{" "}
- <span className="ml-1 text-zinc-400 text-sm font-normal">
- #{memory?.id?.slice(0, 6)}
- </span>
- </h1>
- <Button
- variant="ghost"
- size="icon"
- className="h-4 w-4 text-zinc-400 hover:text-white -ml-[5px] mt-1"
- onClick={handleCopy}
- >
- {copied ? (
- <Check className="h-3 w-3" />
- ) : (
- <Copy className="h-3 w-3" />
- )}
- </Button>
- </div>
- <MemoryActions
- memoryId={memory?.id || ""}
- memoryContent={memory?.text || ""}
- memoryState={memory?.state || ""}
- />
- </div>
-
- <div className="px-6 py-2">
- <div className="border-l-2 border-primary pl-4 mb-6">
- <p
- className={`${
- memory?.state === "archived" || memory?.state === "paused"
- ? "text-zinc-400"
- : "text-white"
- }`}
- >
- {memory?.text}
- </p>
- </div>
-
- <div className="mt-6 pt-4 border-t border-zinc-800">
- <div className="flex justify-between items-center">
- <div className="">
- <Categories
- categories={memory?.categories || []}
- isPaused={
- memory?.state === "archived" ||
- memory?.state === "paused"
- }
- />
- </div>
- <div className="flex items-center gap-2 min-w-[300px] justify-end">
- <div className="flex items-center gap-2">
- <div className="flex items-center gap-1 bg-zinc-700 px-3 py-1 rounded-lg">
- <span className="text-sm text-zinc-400">
- Created by:
- </span>
- <div className="w-4 h-4 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image
- src={
- constants[
- memory?.app_name as keyof typeof constants
- ]?.iconImage || ""
- }
- alt="OpenMemory"
- width={24}
- height={24}
- />
- </div>
- <p className="text-sm text-zinc-100 font-semibold">
- {
- constants[
- memory?.app_name as keyof typeof constants
- ]?.name
- }
- </p>
- </div>
- </div>
- </div>
- </div>
-
- {/* <div className="flex justify-end gap-2 w-full mt-2">
- <p className="text-sm font-semibold text-primary my-auto">
- {new Date(memory.created_at).toLocaleString()}
- </p>
- </div> */}
- </div>
- </div>
- </div>
- </div>
- <div className="w-1/3 flex flex-col gap-4">
- <AccessLog memoryId={memory?.id || ""} />
- <RelatedMemories memoryId={memory?.id || ""} />
- </div>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memory/[id]/components/RelatedMemories.tsx b/openmemory/ui/app/memory/[id]/components/RelatedMemories.tsx
deleted file mode 100644
index 0c681c047..000000000
--- a/openmemory/ui/app/memory/[id]/components/RelatedMemories.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-import { useEffect, useState } from "react";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { Memory } from "@/components/types";
-import Categories from "@/components/shared/categories";
-import Link from "next/link";
-import { formatDate } from "@/lib/helpers";
-interface RelatedMemoriesProps {
- memoryId: string;
-}
-
-export function RelatedMemories({ memoryId }: RelatedMemoriesProps) {
- const { fetchRelatedMemories } = useMemoriesApi();
- const relatedMemories = useSelector(
- (state: RootState) => state.memories.relatedMemories
- );
- const [isLoading, setIsLoading] = useState(true);
-
- useEffect(() => {
- const loadRelatedMemories = async () => {
- try {
- await fetchRelatedMemories(memoryId);
- } catch (error) {
- console.error("Failed to fetch related memories:", error);
- } finally {
- setIsLoading(false);
- }
- };
-
- loadRelatedMemories();
- }, []);
-
- if (isLoading) {
- return (
- <div className="w-full max-w-2xl mx-auto rounded-lg overflow-hidden bg-zinc-900 text-white p-6">
- <p className="text-center text-zinc-500">Loading related memories...</p>
- </div>
- );
- }
-
- if (!relatedMemories.length) {
- return (
- <div className="w-full max-w-2xl mx-auto rounded-lg overflow-hidden bg-zinc-900 text-white p-6">
- <p className="text-center text-zinc-500">No related memories found</p>
- </div>
- );
- }
-
- return (
- <div className="w-full max-w-2xl mx-auto rounded-lg overflow-hidden bg-zinc-900 border border-zinc-800 text-white">
- <div className="px-6 py-4 flex justify-between items-center bg-zinc-800 border-b border-zinc-800">
- <h2 className="font-semibold">Related Memories</h2>
- </div>
- <div className="space-y-6 p-6">
- {relatedMemories.map((memory: Memory) => (
- <div
- key={memory.id}
- className="border-l-2 border-zinc-800 pl-6 py-1 hover:bg-zinc-700/10 transition-colors cursor-pointer"
- >
- <Link href={`/memory/${memory.id}`}>
- <h3 className="font-medium mb-3">{memory.memory}</h3>
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-3">
- <Categories
- categories={memory.categories}
- isPaused={
- memory.state === "paused" || memory.state === "archived"
- }
- concat={true}
- />
- {memory.state !== "active" && (
- <span className="inline-block px-3 border border-yellow-600 text-yellow-600 font-semibold text-xs rounded-full bg-yellow-400/10 backdrop-blur-sm">
- {memory.state === "paused" ? "Paused" : "Archived"}
- </span>
- )}
- </div>
- <div className="flex items-center gap-4">
- <div className="text-zinc-400 text-sm">
- {formatDate(memory.created_at)}
- </div>
- </div>
- </div>
- </Link>
- </div>
- ))}
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/memory/[id]/page.tsx b/openmemory/ui/app/memory/[id]/page.tsx
deleted file mode 100644
index 310999ec6..000000000
--- a/openmemory/ui/app/memory/[id]/page.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-"use client";
-
-import "@/styles/animation.css";
-import { useEffect } from "react";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { use } from "react";
-import { MemorySkeleton } from "@/skeleton/MemorySkeleton";
-import { MemoryDetails } from "./components/MemoryDetails";
-import UpdateMemory from "@/components/shared/update-memory";
-import { useUI } from "@/hooks/useUI";
-import { RootState } from "@/store/store";
-import { useSelector } from "react-redux";
-import NotFound from "@/app/not-found";
-
-function MemoryContent({ id }: { id: string }) {
- const { fetchMemoryById, isLoading, error } = useMemoriesApi();
- const memory = useSelector(
- (state: RootState) => state.memories.selectedMemory
- );
-
- useEffect(() => {
- const loadMemory = async () => {
- try {
- await fetchMemoryById(id);
- } catch (err) {
- console.error("Failed to load memory:", err);
- }
- };
- loadMemory();
- }, []);
-
- if (isLoading) {
- return <MemorySkeleton />;
- }
-
- if (error) {
- return <NotFound message={error} />;
- }
-
- if (!memory) {
- return <NotFound message="Memory not found" statusCode={404} />;
- }
-
- return <MemoryDetails memory_id={memory.id} />;
-}
-
-export default function MemoryPage({
- params,
-}: {
- params: Promise<{ id: string }>;
-}) {
- const resolvedParams = use(params);
- const { updateMemoryDialog, handleCloseUpdateMemoryDialog } = useUI();
- return (
- <div>
- <div className="animate-fade-slide-down delay-1">
- <UpdateMemory
- memoryId={updateMemoryDialog.memoryId || ""}
- memoryContent={updateMemoryDialog.memoryContent || ""}
- open={updateMemoryDialog.isOpen}
- onOpenChange={handleCloseUpdateMemoryDialog}
- />
- </div>
- <div className="animate-fade-slide-down delay-2">
- <MemoryContent id={resolvedParams.id} />
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/not-found.tsx b/openmemory/ui/app/not-found.tsx
deleted file mode 100644
index 151d5f0c6..000000000
--- a/openmemory/ui/app/not-found.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import "@/styles/notfound.scss";
-import Link from "next/link";
-import { Button } from "@/components/ui/button";
-
-interface NotFoundProps {
- statusCode?: number;
- message?: string;
- title?: string;
-}
-
-const getStatusCode = (message: string) => {
- const possibleStatusCodes = ["404", "403", "500", "422"];
- const potentialStatusCode = possibleStatusCodes.find((code) =>
- message.includes(code)
- );
- return potentialStatusCode ? parseInt(potentialStatusCode) : undefined;
-};
-
-export default function NotFound({
- statusCode,
- message = "Page Not Found",
- title,
-}: NotFoundProps) {
- const potentialStatusCode = getStatusCode(message);
-
- return (
- <div className="flex flex-col items-center justify-center h-[calc(100vh-100px)]">
- <div className="site">
- <div className="sketch">
- <div className="bee-sketch red"></div>
- <div className="bee-sketch blue"></div>
- </div>
- <h1>
- {statusCode
- ? `${statusCode}:`
- : potentialStatusCode
- ? `${potentialStatusCode}:`
- : "404"}
- <small>{title || message || "Page Not Found"}</small>
- </h1>
- </div>
-
- <div className="">
- <Button
- variant="outline"
- className="bg-primary text-white hover:bg-primary/80"
- >
- <Link href="/">Go Home</Link>
- </Button>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/page.tsx b/openmemory/ui/app/page.tsx
deleted file mode 100644
index f905ee14c..000000000
--- a/openmemory/ui/app/page.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-"use client";
-
-import { Install } from "@/components/dashboard/Install";
-import Stats from "@/components/dashboard/Stats";
-import { MemoryFilters } from "@/app/memories/components/MemoryFilters";
-import { MemoriesSection } from "@/app/memories/components/MemoriesSection";
-import "@/styles/animation.css";
-
-export default function DashboardPage() {
- return (
- <div className="text-white py-6">
- <div className="container">
- <div className="w-full mx-auto space-y-6">
- <div className="grid grid-cols-3 gap-6">
- {/* Memory Category Breakdown */}
- <div className="col-span-2 animate-fade-slide-down">
- <Install />
- </div>
-
- {/* Memories Stats */}
- <div className="col-span-1 animate-fade-slide-down delay-1">
- <Stats />
- </div>
- </div>
-
- <div>
- <div className="animate-fade-slide-down delay-2">
- <MemoryFilters />
- </div>
- <div className="animate-fade-slide-down delay-3">
- <MemoriesSection />
- </div>
- </div>
- </div>
- </div>
- </div>
- );
-}
diff --git a/openmemory/ui/app/providers.tsx b/openmemory/ui/app/providers.tsx
deleted file mode 100644
index 068c4b9d8..000000000
--- a/openmemory/ui/app/providers.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-"use client";
-
-import { Provider } from "react-redux";
-import { store } from "../store/store";
-
-export function Providers({ children }: { children: React.ReactNode }) {
- return <Provider store={store}>{children}</Provider>;
-}
diff --git a/openmemory/ui/app/settings/page.tsx b/openmemory/ui/app/settings/page.tsx
deleted file mode 100644
index b8f472a22..000000000
--- a/openmemory/ui/app/settings/page.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-"use client";
-
-import { useState, useEffect } from "react"
-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
-import { Button } from "@/components/ui/button"
-import { SaveIcon, RotateCcw } from "lucide-react"
-import { FormView } from "@/components/form-view"
-import { JsonEditor } from "@/components/json-editor"
-import { useConfig } from "@/hooks/useConfig"
-import { useSelector } from "react-redux"
-import { RootState } from "@/store/store"
-import { useToast } from "@/components/ui/use-toast"
-import {
- AlertDialog,
- AlertDialogAction,
- AlertDialogCancel,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogFooter,
- AlertDialogHeader,
- AlertDialogTitle,
- AlertDialogTrigger,
-} from "@/components/ui/alert-dialog"
-
-export default function SettingsPage() {
- const { toast } = useToast()
- const configState = useSelector((state: RootState) => state.config)
- const [settings, setSettings] = useState({
- openmemory: configState.openmemory || {
- custom_instructions: null
- },
- mem0: configState.mem0
- })
- const [viewMode, setViewMode] = useState<"form" | "json">("form")
- const { fetchConfig, saveConfig, resetConfig, isLoading, error } = useConfig()
-
- useEffect(() => {
- // Load config from API on component mount
- const loadConfig = async () => {
- try {
- await fetchConfig()
- } catch (error) {
- toast({
- title: "Error",
- description: "Failed to load configuration",
- variant: "destructive",
- })
- }
- }
-
- loadConfig()
- }, [])
-
- // Update local state when redux state changes
- useEffect(() => {
- setSettings(prev => ({
- ...prev,
- openmemory: configState.openmemory || { custom_instructions: null },
- mem0: configState.mem0
- }))
- }, [configState.openmemory, configState.mem0])
-
- const handleSave = async () => {
- try {
- await saveConfig({
- openmemory: settings.openmemory,
- mem0: settings.mem0
- })
- toast({
- title: "Settings saved",
- description: "Your configuration has been updated successfully.",
- })
- } catch (error) {
- toast({
- title: "Error",
- description: "Failed to save configuration",
- variant: "destructive",
- })
- }
- }
-
- const handleReset = async () => {
- try {
- await resetConfig()
- toast({
- title: "Settings reset",
- description: "Configuration has been reset to default values.",
- })
- await fetchConfig()
- } catch (error) {
- toast({
- title: "Error",
- description: "Failed to reset configuration",
- variant: "destructive",
- })
- }
- }
-
- return (
- <div className="text-white py-6">
- <div className="container mx-auto py-10 max-w-4xl">
- <div className="flex justify-between items-center mb-8">
- <div className="animate-fade-slide-down">
- <h1 className="text-3xl font-bold tracking-tight">Settings</h1>
- <p className="text-muted-foreground mt-1">Manage your OpenMemory and Mem0 configuration</p>
- </div>
- <div className="flex space-x-2">
- <AlertDialog>
- <AlertDialogTrigger asChild>
- <Button variant="outline" className="border-zinc-800 text-zinc-200 hover:bg-zinc-700 hover:text-zinc-50 animate-fade-slide-down" disabled={isLoading}>
- <RotateCcw className="mr-2 h-4 w-4" />
- Reset Defaults
- </Button>
- </AlertDialogTrigger>
- <AlertDialogContent>
- <AlertDialogHeader>
- <AlertDialogTitle>Reset Configuration?</AlertDialogTitle>
- <AlertDialogDescription>
- This will reset all settings to the system defaults. Any custom configuration will be lost.
- API keys will be set to use environment variables.
- </AlertDialogDescription>
- </AlertDialogHeader>
- <AlertDialogFooter>
- <AlertDialogCancel>Cancel</AlertDialogCancel>
- <AlertDialogAction onClick={handleReset} className="bg-red-600 hover:bg-red-700">
- Reset
- </AlertDialogAction>
- </AlertDialogFooter>
- </AlertDialogContent>
- </AlertDialog>
-
- <Button onClick={handleSave} className="bg-primary hover:bg-primary/90 animate-fade-slide-down" disabled={isLoading}>
- <SaveIcon className="mr-2 h-4 w-4" />
- {isLoading ? "Saving..." : "Save Configuration"}
- </Button>
- </div>
- </div>
-
- <Tabs value={viewMode} onValueChange={(value) => setViewMode(value as "form" | "json")} className="w-full animate-fade-slide-down delay-1">
- <TabsList className="grid w-full grid-cols-2 mb-8">
- <TabsTrigger value="form">Form View</TabsTrigger>
- <TabsTrigger value="json">JSON Editor</TabsTrigger>
- </TabsList>
-
- <TabsContent value="form">
- <FormView settings={settings} onChange={setSettings} />
- </TabsContent>
-
- <TabsContent value="json">
- <Card>
- <CardHeader>
- <CardTitle>JSON Configuration</CardTitle>
- <CardDescription>Edit the entire configuration directly as JSON</CardDescription>
- </CardHeader>
- <CardContent>
- <JsonEditor value={settings} onChange={setSettings} />
- </CardContent>
- </Card>
- </TabsContent>
- </Tabs>
- </div>
- </div>
- )
-}
diff --git a/openmemory/ui/components.json b/openmemory/ui/components.json
deleted file mode 100644
index d9ef0ae53..000000000
--- a/openmemory/ui/components.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema.json",
- "style": "default",
- "rsc": true,
- "tsx": true,
- "tailwind": {
- "config": "tailwind.config.ts",
- "css": "app/globals.css",
- "baseColor": "neutral",
- "cssVariables": true,
- "prefix": ""
- },
- "aliases": {
- "components": "@/components",
- "utils": "@/lib/utils",
- "ui": "@/components/ui",
- "lib": "@/lib",
- "hooks": "@/hooks"
- },
- "iconLibrary": "lucide"
-}
\ No newline at end of file
diff --git a/openmemory/ui/components/Navbar.tsx b/openmemory/ui/components/Navbar.tsx
deleted file mode 100644
index 0310b56a6..000000000
--- a/openmemory/ui/components/Navbar.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-"use client";
-
-import { Button } from "@/components/ui/button";
-import { HiHome, HiMiniRectangleStack } from "react-icons/hi2";
-import { RiApps2AddFill } from "react-icons/ri";
-import { FiRefreshCcw } from "react-icons/fi";
-import Link from "next/link";
-import { usePathname } from "next/navigation";
-import { CreateMemoryDialog } from "@/app/memories/components/CreateMemoryDialog";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import Image from "next/image";
-import { useStats } from "@/hooks/useStats";
-import { useAppsApi } from "@/hooks/useAppsApi";
-import { Settings } from "lucide-react";
-import { useConfig } from "@/hooks/useConfig";
-
-export function Navbar() {
- const pathname = usePathname();
-
- const memoriesApi = useMemoriesApi();
- const appsApi = useAppsApi();
- const statsApi = useStats();
- const configApi = useConfig();
-
- // Define route matchers with typed parameter extraction
- const routeBasedFetchMapping: {
- match: RegExp;
- getFetchers: (params: Record<string, string>) => (() => Promise<any>)[];
- }[] = [
- {
- match: /^\/memory\/([^/]+)$/,
- getFetchers: ({ memory_id }) => [
- () => memoriesApi.fetchMemoryById(memory_id),
- () => memoriesApi.fetchAccessLogs(memory_id),
- () => memoriesApi.fetchRelatedMemories(memory_id),
- ],
- },
- {
- match: /^\/apps\/([^/]+)$/,
- getFetchers: ({ app_id }) => [
- () => appsApi.fetchAppMemories(app_id),
- () => appsApi.fetchAppAccessedMemories(app_id),
- () => appsApi.fetchAppDetails(app_id),
- ],
- },
- {
- match: /^\/memories$/,
- getFetchers: () => [memoriesApi.fetchMemories],
- },
- {
- match: /^\/apps$/,
- getFetchers: () => [appsApi.fetchApps],
- },
- {
- match: /^\/$/,
- getFetchers: () => [statsApi.fetchStats, memoriesApi.fetchMemories],
- },
- {
- match: /^\/settings$/,
- getFetchers: () => [configApi.fetchConfig],
- },
- ];
-
- const getFetchersForPath = (path: string) => {
- for (const route of routeBasedFetchMapping) {
- const match = path.match(route.match);
- if (match) {
- if (route.match.source.includes("memory")) {
- return route.getFetchers({ memory_id: match[1] });
- }
- if (route.match.source.includes("app")) {
- return route.getFetchers({ app_id: match[1] });
- }
- return route.getFetchers({});
- }
- }
- return [];
- };
-
- const handleRefresh = async () => {
- const fetchers = getFetchersForPath(pathname);
- await Promise.allSettled(fetchers.map((fn) => fn()));
- };
-
- const isActive = (href: string) => {
- if (href === "/") return pathname === href;
- return pathname.startsWith(href.substring(0, 5));
- };
-
- const activeClass = "bg-zinc-800 text-white border-zinc-600";
- const inactiveClass = "text-zinc-300";
-
- return (
- <header className="sticky top-0 z-50 w-full border-b border-zinc-800 bg-zinc-950/95 backdrop-blur supports-[backdrop-filter]:bg-zinc-950/60">
- <div className="container flex h-14 items-center justify-between">
- <Link href="/" className="flex items-center gap-2">
- <Image src="/logo.svg" alt="OpenMemory" width={26} height={26} />
- <span className="text-xl font-medium">OpenMemory</span>
- </Link>
- <div className="flex items-center gap-2">
- <Link href="/">
- <Button
- variant="outline"
- size="sm"
- className={`flex items-center gap-2 border-none ${
- isActive("/") ? activeClass : inactiveClass
- }`}
- >
- <HiHome />
- Dashboard
- </Button>
- </Link>
- <Link href="/memories">
- <Button
- variant="outline"
- size="sm"
- className={`flex items-center gap-2 border-none ${
- isActive("/memories") ? activeClass : inactiveClass
- }`}
- >
- <HiMiniRectangleStack />
- Memories
- </Button>
- </Link>
- <Link href="/apps">
- <Button
- variant="outline"
- size="sm"
- className={`flex items-center gap-2 border-none ${
- isActive("/apps") ? activeClass : inactiveClass
- }`}
- >
- <RiApps2AddFill />
- Apps
- </Button>
- </Link>
- <Link href="/settings">
- <Button
- variant="outline"
- size="sm"
- className={`flex items-center gap-2 border-none ${
- isActive("/settings") ? activeClass : inactiveClass
- }`}
- >
- <Settings />
- Settings
- </Button>
- </Link>
- </div>
- <div className="flex items-center gap-4">
- <Button
- onClick={handleRefresh}
- variant="outline"
- size="sm"
- className="border-zinc-700/50 bg-zinc-900 hover:bg-zinc-800"
- >
- <FiRefreshCcw className="transition-transform duration-300 group-hover:rotate-180" />
- Refresh
- </Button>
- <CreateMemoryDialog />
- </div>
- </div>
- </header>
- );
-}
diff --git a/openmemory/ui/components/dashboard/Install.tsx b/openmemory/ui/components/dashboard/Install.tsx
deleted file mode 100644
index e2bb39a55..000000000
--- a/openmemory/ui/components/dashboard/Install.tsx
+++ /dev/null
@@ -1,197 +0,0 @@
-"use client";
-
-import React, { useState } from "react";
-import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { Copy, Check } from "lucide-react";
-import Image from "next/image";
-
-const clientTabs = [
- { key: "claude", label: "Claude", icon: "/images/claude.webp" },
- { key: "cursor", label: "Cursor", icon: "/images/cursor.png" },
- { key: "cline", label: "Cline", icon: "/images/cline.png" },
- { key: "roocline", label: "Roo Cline", icon: "/images/roocline.png" },
- { key: "windsurf", label: "Windsurf", icon: "/images/windsurf.png" },
- { key: "witsy", label: "Witsy", icon: "/images/witsy.png" },
- { key: "enconvo", label: "Enconvo", icon: "/images/enconvo.png" },
- { key: "augment", label: "Augment", icon: "/images/augment.png" },
-];
-
-const colorGradientMap: { [key: string]: string } = {
- claude:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(239,108,60,0.3),_rgba(239,108,60,0))] data-[state=active]:border-[#EF6C3C]",
- cline:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(112,128,144,0.3),_rgba(112,128,144,0))] data-[state=active]:border-[#708090]",
- cursor:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(255,255,255,0.08),_rgba(255,255,255,0))] data-[state=active]:border-[#708090]",
- roocline:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(45,32,92,0.8),_rgba(45,32,92,0))] data-[state=active]:border-[#7E3FF2]",
- windsurf:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(0,176,137,0.3),_rgba(0,176,137,0))] data-[state=active]:border-[#00B089]",
- witsy:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(33,135,255,0.3),_rgba(33,135,255,0))] data-[state=active]:border-[#2187FF]",
- enconvo:
- "data-[state=active]:bg-[linear-gradient(to_top,_rgba(126,63,242,0.3),_rgba(126,63,242,0))] data-[state=active]:border-[#7E3FF2]",
-};
-
-const getColorGradient = (color: string) => {
- if (colorGradientMap[color]) {
- return colorGradientMap[color];
- }
- return "data-[state=active]:bg-[linear-gradient(to_top,_rgba(126,63,242,0.3),_rgba(126,63,242,0))] data-[state=active]:border-[#7E3FF2]";
-};
-
-const allTabs = [{ key: "mcp", label: "MCP Link", icon: "πŸ”—" }, ...clientTabs];
-
-export const Install = () => {
- const [copiedTab, setCopiedTab] = useState<string | null>(null);
- const user = process.env.NEXT_PUBLIC_USER_ID || "user";
-
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const handleCopy = async (tab: string, isMcp: boolean = false) => {
- const text = isMcp
- ? `${URL}/mcp/openmemory/sse/${user}`
- : `npx @openmemory/install local ${URL}/mcp/${tab}/sse/${user} --client ${tab}`;
-
- try {
- // Try using the Clipboard API first
- if (navigator?.clipboard?.writeText) {
- await navigator.clipboard.writeText(text);
- } else {
- // Fallback: Create a temporary textarea element
- const textarea = document.createElement("textarea");
- textarea.value = text;
- textarea.style.position = "fixed";
- textarea.style.opacity = "0";
- document.body.appendChild(textarea);
- textarea.select();
- document.execCommand("copy");
- document.body.removeChild(textarea);
- }
-
- // Update UI to show success
- setCopiedTab(tab);
- setTimeout(() => setCopiedTab(null), 1500); // Reset after 1.5s
- } catch (error) {
- console.error("Failed to copy text:", error);
- // You might want to add a toast notification here to show the error
- }
- };
-
- return (
- <div>
- <h2 className="text-xl font-semibold mb-6">Install OpenMemory</h2>
-
- <div className="hidden">
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(239,108,60,0.3),_rgba(239,108,60,0))] data-[state=active]:border-[#EF6C3C]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(112,128,144,0.3),_rgba(112,128,144,0))] data-[state=active]:border-[#708090]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(45,32,92,0.3),_rgba(45,32,92,0))] data-[state=active]:border-[#2D205C]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(0,176,137,0.3),_rgba(0,176,137,0))] data-[state=active]:border-[#00B089]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(33,135,255,0.3),_rgba(33,135,255,0))] data-[state=active]:border-[#2187FF]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(126,63,242,0.3),_rgba(126,63,242,0))] data-[state=active]:border-[#7E3FF2]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(239,108,60,0.3),_rgba(239,108,60,0))] data-[state=active]:border-[#EF6C3C]"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(107,33,168,0.3),_rgba(107,33,168,0))] data-[state=active]:border-primary"></div>
- <div className="data-[state=active]:bg-[linear-gradient(to_top,_rgba(255,255,255,0.08),_rgba(255,255,255,0))] data-[state=active]:border-[#708090]"></div>
- </div>
-
- <Tabs defaultValue="claude" className="w-full">
- <TabsList className="bg-transparent border-b border-zinc-800 rounded-none w-full justify-start gap-0 p-0 grid grid-cols-9">
- {allTabs.map(({ key, label, icon }) => (
- <TabsTrigger
- key={key}
- value={key}
- className={`flex-1 px-0 pb-2 rounded-none ${getColorGradient(
- key
- )} data-[state=active]:border-b-2 data-[state=active]:shadow-none text-zinc-400 data-[state=active]:text-white flex items-center justify-center gap-2 text-sm`}
- >
- {icon.startsWith("/") ? (
- <div>
- <div className="w-6 h-6 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image src={icon} alt={label} width={40} height={40} />
- </div>
- </div>
- ) : (
- <div className="h-6">
- <span className="relative top-1">{icon}</span>
- </div>
- )}
- <span>{label}</span>
- </TabsTrigger>
- ))}
- </TabsList>
-
- {/* MCP Tab Content */}
- <TabsContent value="mcp" className="mt-6">
- <Card className="bg-zinc-900 border-zinc-800">
- <CardHeader className="py-4">
- <CardTitle className="text-white text-xl">MCP Link</CardTitle>
- </CardHeader>
- <hr className="border-zinc-800" />
- <CardContent className="py-4">
- <div className="relative">
- <pre className="bg-zinc-800 px-4 py-3 rounded-md overflow-x-auto text-sm">
- <code className="text-gray-300">
- {URL}/mcp/openmemory/sse/{user}
- </code>
- </pre>
- <div>
- <button
- className="absolute top-0 right-0 py-3 px-4 rounded-md hover:bg-zinc-600 bg-zinc-700"
- aria-label="Copy to clipboard"
- onClick={() => handleCopy("mcp", true)}
- >
- {copiedTab === "mcp" ? (
- <Check className="h-5 w-5 text-green-400" />
- ) : (
- <Copy className="h-5 w-5 text-zinc-400" />
- )}
- </button>
- </div>
- </div>
- </CardContent>
- </Card>
- </TabsContent>
-
- {/* Client Tabs Content */}
- {clientTabs.map(({ key }) => (
- <TabsContent key={key} value={key} className="mt-6">
- <Card className="bg-zinc-900 border-zinc-800">
- <CardHeader className="py-4">
- <CardTitle className="text-white text-xl">
- {key.charAt(0).toUpperCase() + key.slice(1)} Installation
- Command
- </CardTitle>
- </CardHeader>
- <hr className="border-zinc-800" />
- <CardContent className="py-4">
- <div className="relative">
- <pre className="bg-zinc-800 px-4 py-3 rounded-md overflow-x-auto text-sm">
- <code className="text-gray-300">
- {`npx @openmemory/install local ${URL}/mcp/${key}/sse/${user} --client ${key}`}
- </code>
- </pre>
- <div>
- <button
- className="absolute top-0 right-0 py-3 px-4 rounded-md hover:bg-zinc-600 bg-zinc-700"
- aria-label="Copy to clipboard"
- onClick={() => handleCopy(key)}
- >
- {copiedTab === key ? (
- <Check className="h-5 w-5 text-green-400" />
- ) : (
- <Copy className="h-5 w-5 text-zinc-400" />
- )}
- </button>
- </div>
- </div>
- </CardContent>
- </Card>
- </TabsContent>
- ))}
- </Tabs>
- </div>
- );
-};
-
-export default Install;
diff --git a/openmemory/ui/components/dashboard/Stats.tsx b/openmemory/ui/components/dashboard/Stats.tsx
deleted file mode 100644
index b73ef4125..000000000
--- a/openmemory/ui/components/dashboard/Stats.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import React, { useEffect } from "react";
-import { useSelector } from "react-redux";
-import { RootState } from "@/store/store";
-import { useStats } from "@/hooks/useStats";
-import Image from "next/image";
-import { constants } from "@/components/shared/source-app";
-const Stats = () => {
- const totalMemories = useSelector(
- (state: RootState) => state.profile.totalMemories
- );
- const totalApps = useSelector((state: RootState) => state.profile.totalApps);
- const apps = useSelector((state: RootState) => state.profile.apps).slice(
- 0,
- 4
- );
- const { fetchStats } = useStats();
-
- useEffect(() => {
- fetchStats();
- }, []);
-
- return (
- <div className="bg-zinc-900 rounded-lg border border-zinc-800">
- <div className="bg-zinc-800 border-b border-zinc-800 rounded-t-lg p-4">
- <div className="text-white text-xl font-semibold">Memories Stats</div>
- </div>
- <div className="space-y-3 p-4">
- <div>
- <p className="text-zinc-400">Total Memories</p>
- <h3 className="text-lg font-bold text-white">
- {totalMemories} Memories
- </h3>
- </div>
- <div>
- <p className="text-zinc-400">Total Apps Connected</p>
- <div className="flex flex-col items-start gap-1 mt-2">
- <div className="flex -space-x-2">
- {apps.map((app) => (
- <div
- key={app.id}
- className={`h-8 w-8 rounded-full bg-primary flex items-center justify-center text-xs`}
- >
- <div>
- <div className="w-7 h-7 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden">
- <Image
- src={
- constants[app.name as keyof typeof constants]
- ?.iconImage || ""
- }
- alt={
- constants[app.name as keyof typeof constants]?.name
- }
- width={32}
- height={32}
- />
- </div>
- </div>
- </div>
- ))}
- </div>
- <h3 className="text-lg font-bold text-white">{totalApps} Apps</h3>
- </div>
- </div>
- </div>
- </div>
- );
-};
-
-export default Stats;
diff --git a/openmemory/ui/components/form-view.tsx b/openmemory/ui/components/form-view.tsx
deleted file mode 100644
index 4e8baba16..000000000
--- a/openmemory/ui/components/form-view.tsx
+++ /dev/null
@@ -1,461 +0,0 @@
-"use client"
-
-import { useState } from "react"
-import { Eye, EyeOff, Download, Upload } from "lucide-react"
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./ui/card"
-import { Input } from "./ui/input"
-import { Label } from "./ui/label"
-import { Slider } from "./ui/slider"
-import { Switch } from "./ui/switch"
-import { Button } from "./ui/button"
-import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./ui/select"
-import { Textarea } from "./ui/textarea"
-import { useRef, useState as useReactState } from "react"
-import { useSelector } from "react-redux"
-import { RootState } from "@/store/store"
-
-interface FormViewProps {
- settings: any
- onChange: (settings: any) => void
-}
-
-export function FormView({ settings, onChange }: FormViewProps) {
- const [showLlmAdvanced, setShowLlmAdvanced] = useState(false)
- const [showLlmApiKey, setShowLlmApiKey] = useState(false)
- const [showEmbedderApiKey, setShowEmbedderApiKey] = useState(false)
- const [isUploading, setIsUploading] = useReactState(false)
- const [selectedImportFileName, setSelectedImportFileName] = useReactState("")
- const fileInputRef = useRef<HTMLInputElement>(null)
- const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765"
- const userId = useSelector((state: RootState) => state.profile.userId)
-
- const handleOpenMemoryChange = (key: string, value: any) => {
- onChange({
- ...settings,
- openmemory: {
- ...settings.openmemory,
- [key]: value,
- },
- })
- }
-
- const handleLlmProviderChange = (value: string) => {
- onChange({
- ...settings,
- mem0: {
- ...settings.mem0,
- llm: {
- ...settings.mem0.llm,
- provider: value,
- },
- },
- })
- }
-
- const handleLlmConfigChange = (key: string, value: any) => {
- onChange({
- ...settings,
- mem0: {
- ...settings.mem0,
- llm: {
- ...settings.mem0.llm,
- config: {
- ...settings.mem0.llm.config,
- [key]: value,
- },
- },
- },
- })
- }
-
- const handleEmbedderProviderChange = (value: string) => {
- onChange({
- ...settings,
- mem0: {
- ...settings.mem0,
- embedder: {
- ...settings.mem0.embedder,
- provider: value,
- },
- },
- })
- }
-
- const handleEmbedderConfigChange = (key: string, value: any) => {
- onChange({
- ...settings,
- mem0: {
- ...settings.mem0,
- embedder: {
- ...settings.mem0.embedder,
- config: {
- ...settings.mem0.embedder.config,
- [key]: value,
- },
- },
- },
- })
- }
-
- const needsLlmApiKey = settings.mem0?.llm?.provider?.toLowerCase() !== "ollama"
- const needsEmbedderApiKey = settings.mem0?.embedder?.provider?.toLowerCase() !== "ollama"
- const isLlmOllama = settings.mem0?.llm?.provider?.toLowerCase() === "ollama"
- const isEmbedderOllama = settings.mem0?.embedder?.provider?.toLowerCase() === "ollama"
-
- const LLM_PROVIDERS = {
- "OpenAI": "openai",
- "Anthropic": "anthropic",
- "Azure OpenAI": "azure_openai",
- "Ollama": "ollama",
- "Together": "together",
- "Groq": "groq",
- "Litellm": "litellm",
- "Mistral AI": "mistralai",
- "Google AI": "google_ai",
- "AWS Bedrock": "aws_bedrock",
- "Gemini": "gemini",
- "DeepSeek": "deepseek",
- "xAI": "xai",
- "LM Studio": "lmstudio",
- "LangChain": "langchain",
- }
-
- const EMBEDDER_PROVIDERS = {
- "OpenAI": "openai",
- "Azure OpenAI": "azure_openai",
- "Ollama": "ollama",
- "Hugging Face": "huggingface",
- "Vertex AI": "vertexai",
- "Gemini": "gemini",
- "LM Studio": "lmstudio",
- "Together": "together",
- "LangChain": "langchain",
- "AWS Bedrock": "aws_bedrock",
- }
-
- return (
- <div className="space-y-8">
- {/* OpenMemory Settings */}
- <Card>
- <CardHeader>
- <CardTitle>OpenMemory Settings</CardTitle>
- <CardDescription>Configure your OpenMemory instance settings</CardDescription>
- </CardHeader>
- <CardContent className="space-y-6">
- <div className="space-y-2">
- <Label htmlFor="custom-instructions">Custom Instructions</Label>
- <Textarea
- id="custom-instructions"
- placeholder="Enter custom instructions for memory management..."
- value={settings.openmemory?.custom_instructions || ""}
- onChange={(e) => handleOpenMemoryChange("custom_instructions", e.target.value)}
- className="min-h-[100px]"
- />
- <p className="text-xs text-muted-foreground mt-1">
- Custom instructions that will be used to guide memory processing and fact extraction.
- </p>
- </div>
- </CardContent>
- </Card>
-
- {/* LLM Settings */}
- <Card>
- <CardHeader>
- <CardTitle>LLM Settings</CardTitle>
- <CardDescription>Configure your Large Language Model provider and settings</CardDescription>
- </CardHeader>
- <CardContent className="space-y-6">
- <div className="space-y-2">
- <Label htmlFor="llm-provider">LLM Provider</Label>
- <Select
- value={settings.mem0?.llm?.provider || ""}
- onValueChange={handleLlmProviderChange}
- >
- <SelectTrigger id="llm-provider">
- <SelectValue placeholder="Select a provider" />
- </SelectTrigger>
- <SelectContent>
- {Object.entries(LLM_PROVIDERS).map(([provider, value]) => (
- <SelectItem key={value} value={value}>
- {provider}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- </div>
-
- <div className="space-y-2">
- <Label htmlFor="llm-model">Model</Label>
- <Input
- id="llm-model"
- placeholder="Enter model name"
- value={settings.mem0?.llm?.config?.model || ""}
- onChange={(e) => handleLlmConfigChange("model", e.target.value)}
- />
- </div>
-
- {isLlmOllama && (
- <div className="space-y-2">
- <Label htmlFor="llm-ollama-url">Ollama Base URL</Label>
- <Input
- id="llm-ollama-url"
- placeholder="http://host.docker.internal:11434"
- value={settings.mem0?.llm?.config?.ollama_base_url || ""}
- onChange={(e) => handleLlmConfigChange("ollama_base_url", e.target.value)}
- />
- <p className="text-xs text-muted-foreground mt-1">
- Leave empty to use default: http://host.docker.internal:11434
- </p>
- </div>
- )}
-
- {needsLlmApiKey && (
- <div className="space-y-2">
- <Label htmlFor="llm-api-key">API Key</Label>
- <div className="relative">
- <Input
- id="llm-api-key"
- type={showLlmApiKey ? "text" : "password"}
- placeholder="env:API_KEY"
- value={settings.mem0?.llm?.config?.api_key || ""}
- onChange={(e) => handleLlmConfigChange("api_key", e.target.value)}
- />
- <Button
- variant="ghost"
- size="icon"
- type="button"
- className="absolute right-2 top-1/2 transform -translate-y-1/2 h-7 w-7"
- onClick={() => setShowLlmApiKey(!showLlmApiKey)}
- >
- {showLlmApiKey ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}
- </Button>
- </div>
- <p className="text-xs text-muted-foreground mt-1">
- Use "env:API_KEY" to load from environment variable, or enter directly
- </p>
- </div>
- )}
-
- <div className="flex items-center space-x-2 pt-2">
- <Switch id="llm-advanced-settings" checked={showLlmAdvanced} onCheckedChange={setShowLlmAdvanced} />
- <Label htmlFor="llm-advanced-settings">Show advanced settings</Label>
- </div>
-
- {showLlmAdvanced && (
- <div className="space-y-6 pt-2">
- <div className="space-y-2">
- <div className="flex justify-between">
- <Label htmlFor="temperature">Temperature: {settings.mem0?.llm?.config?.temperature}</Label>
- </div>
- <Slider
- id="temperature"
- min={0}
- max={1}
- step={0.1}
- value={[settings.mem0?.llm?.config?.temperature || 0.7]}
- onValueChange={(value) => handleLlmConfigChange("temperature", value[0])}
- />
- </div>
-
- <div className="space-y-2">
- <Label htmlFor="max-tokens">Max Tokens</Label>
- <Input
- id="max-tokens"
- type="number"
- placeholder="2000"
- value={settings.mem0?.llm?.config?.max_tokens || ""}
- onChange={(e) => handleLlmConfigChange("max_tokens", Number.parseInt(e.target.value) || "")}
- />
- </div>
- </div>
- )}
- </CardContent>
- </Card>
-
- {/* Embedder Settings */}
- <Card>
- <CardHeader>
- <CardTitle>Embedder Settings</CardTitle>
- <CardDescription>Configure your Embedding Model provider and settings</CardDescription>
- </CardHeader>
- <CardContent className="space-y-6">
- <div className="space-y-2">
- <Label htmlFor="embedder-provider">Embedder Provider</Label>
- <Select
- value={settings.mem0?.embedder?.provider || ""}
- onValueChange={handleEmbedderProviderChange}
- >
- <SelectTrigger id="embedder-provider">
- <SelectValue placeholder="Select a provider" />
- </SelectTrigger>
- <SelectContent>
- {Object.entries(EMBEDDER_PROVIDERS).map(([provider, value]) => (
- <SelectItem key={value} value={value}>
- {provider}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- </div>
-
- <div className="space-y-2">
- <Label htmlFor="embedder-model">Model</Label>
- <Input
- id="embedder-model"
- placeholder="Enter model name"
- value={settings.mem0?.embedder?.config?.model || ""}
- onChange={(e) => handleEmbedderConfigChange("model", e.target.value)}
- />
- </div>
-
- {isEmbedderOllama && (
- <div className="space-y-2">
- <Label htmlFor="embedder-ollama-url">Ollama Base URL</Label>
- <Input
- id="embedder-ollama-url"
- placeholder="http://host.docker.internal:11434"
- value={settings.mem0?.embedder?.config?.ollama_base_url || ""}
- onChange={(e) => handleEmbedderConfigChange("ollama_base_url", e.target.value)}
- />
- <p className="text-xs text-muted-foreground mt-1">
- Leave empty to use default: http://host.docker.internal:11434
- </p>
- </div>
- )}
-
- {needsEmbedderApiKey && (
- <div className="space-y-2">
- <Label htmlFor="embedder-api-key">API Key</Label>
- <div className="relative">
- <Input
- id="embedder-api-key"
- type={showEmbedderApiKey ? "text" : "password"}
- placeholder="env:API_KEY"
- value={settings.mem0?.embedder?.config?.api_key || ""}
- onChange={(e) => handleEmbedderConfigChange("api_key", e.target.value)}
- />
- <Button
- variant="ghost"
- size="icon"
- type="button"
- className="absolute right-2 top-1/2 transform -translate-y-1/2 h-7 w-7"
- onClick={() => setShowEmbedderApiKey(!showEmbedderApiKey)}
- >
- {showEmbedderApiKey ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}
- </Button>
- </div>
- <p className="text-xs text-muted-foreground mt-1">
- Use "env:API_KEY" to load from environment variable, or enter directly
- </p>
- </div>
- )}
- </CardContent>
- </Card>
-
- {/* Backup (Export / Import) */}
- <Card>
- <CardHeader>
- <CardTitle>Backup</CardTitle>
- <CardDescription>Export or import your memories</CardDescription>
- </CardHeader>
- <CardContent className="space-y-6">
- {/* Export Section */}
- <div className="p-4 border border-zinc-800 rounded-lg space-y-2">
- <div className="text-sm font-medium">Export</div>
- <p className="text-xs text-muted-foreground">Download a ZIP containing your memories.</p>
- <div>
- <Button
- type="button"
- className="bg-zinc-800 hover:bg-zinc-700"
- onClick={async () => {
- try {
- const res = await fetch(`${API_URL}/api/v1/backup/export`, {
- method: "POST",
- headers: { "Content-Type": "application/json", Accept: "application/zip" },
- body: JSON.stringify({ user_id: userId }),
- })
- if (!res.ok) throw new Error(`Export failed with status ${res.status}`)
- const blob = await res.blob()
- const url = window.URL.createObjectURL(blob)
- const a = document.createElement("a")
- a.href = url
- a.download = `memories_export.zip`
- document.body.appendChild(a)
- a.click()
- a.remove()
- window.URL.revokeObjectURL(url)
- } catch (e) {
- console.error(e)
- alert("Export failed. Check console for details.")
- }
- }}
- >
- <Download className="h-4 w-4 mr-2" /> Export Memories
- </Button>
- </div>
- </div>
-
- {/* Import Section */}
- <div className="p-4 border border-zinc-800 rounded-lg space-y-2">
- <div className="text-sm font-medium">Import</div>
- <p className="text-xs text-muted-foreground">Upload a ZIP exported by OpenMemory. Default settings will be used.</p>
- <div className="flex items-center gap-3 flex-wrap">
- <input
- ref={fileInputRef}
- type="file"
- accept=".zip"
- className="hidden"
- onChange={(evt) => {
- const f = evt.target.files?.[0]
- if (!f) return
- setSelectedImportFileName(f.name)
- }}
- />
- <Button
- type="button"
- className="bg-zinc-800 hover:bg-zinc-700"
- onClick={() => {
- if (fileInputRef.current) fileInputRef.current.click()
- }}
- >
- <Upload className="h-4 w-4 mr-2" /> Choose ZIP
- </Button>
- <span className="text-xs text-muted-foreground truncate max-w-[220px]">
- {selectedImportFileName || "No file selected"}
- </span>
- <div className="ml-auto">
- <Button
- type="button"
- disabled={isUploading || !fileInputRef.current}
- className="bg-primary hover:bg-primary/80 disabled:opacity-50"
- onClick={async () => {
- const file = fileInputRef.current?.files?.[0]
- if (!file) return
- try {
- setIsUploading(true)
- const form = new FormData()
- form.append("file", file)
- form.append("user_id", String(userId))
- const res = await fetch(`${API_URL}/api/v1/backup/import`, { method: "POST", body: form })
- if (!res.ok) throw new Error(`Import failed with status ${res.status}`)
- await res.json()
- if (fileInputRef.current) fileInputRef.current.value = ""
- setSelectedImportFileName("")
- } catch (e) {
- console.error(e)
- alert("Import failed. Check console for details.")
- } finally {
- setIsUploading(false)
- }
- }}
- >
- {isUploading ? "Uploading..." : "Import"}
- </Button>
- </div>
- </div>
- </div>
- </CardContent>
- </Card>
- </div>
- )
-}
\ No newline at end of file
diff --git a/openmemory/ui/components/json-editor.tsx b/openmemory/ui/components/json-editor.tsx
deleted file mode 100644
index 191527257..000000000
--- a/openmemory/ui/components/json-editor.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-"use client"
-
-import type React from "react"
-
-import { useState, useEffect } from "react"
-import { AlertCircle, CheckCircle2 } from "lucide-react"
-import { Alert, AlertDescription } from "./ui/alert"
-import { Button } from "./ui/button"
-import { Textarea } from "./ui/textarea"
-
-interface JsonEditorProps {
- value: any
- onChange: (value: any) => void
-}
-
-export function JsonEditor({ value, onChange }: JsonEditorProps) {
- const [jsonString, setJsonString] = useState("")
- const [error, setError] = useState<string | null>(null)
- const [isValid, setIsValid] = useState(true)
-
- useEffect(() => {
- try {
- setJsonString(JSON.stringify(value, null, 2))
- setIsValid(true)
- setError(null)
- } catch (err) {
- setError("Invalid JSON object")
- setIsValid(false)
- }
- }, [value])
-
- const handleTextChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
- setJsonString(e.target.value)
- try {
- JSON.parse(e.target.value)
- setIsValid(true)
- setError(null)
- } catch (err) {
- setError("Invalid JSON syntax")
- setIsValid(false)
- }
- }
-
- const handleApply = () => {
- try {
- const parsed = JSON.parse(jsonString)
- onChange(parsed)
- setIsValid(true)
- setError(null)
- } catch (err) {
- setError("Failed to apply changes: Invalid JSON")
- }
- }
-
- return (
- <div className="space-y-4">
- <div className="relative">
- <Textarea value={jsonString} onChange={handleTextChange} className="font-mono h-[600px] resize-none" />
- <div className="absolute top-3 right-3">
- {isValid ? (
- <CheckCircle2 className="h-5 w-5 text-green-500" />
- ) : (
- <AlertCircle className="h-5 w-5 text-red-500" />
- )}
- </div>
- </div>
-
- {error && (
- <Alert variant="destructive">
- <AlertDescription>{error}</AlertDescription>
- </Alert>
- )}
-
- <Button onClick={handleApply} disabled={!isValid} className="w-full">
- Apply Changes
- </Button>
- </div>
- )
-}
\ No newline at end of file
diff --git a/openmemory/ui/components/shared/categories.tsx b/openmemory/ui/components/shared/categories.tsx
deleted file mode 100644
index 3b4d06cec..000000000
--- a/openmemory/ui/components/shared/categories.tsx
+++ /dev/null
@@ -1,230 +0,0 @@
-import React, { useState } from "react";
-import {
- Book,
- HeartPulse,
- BriefcaseBusiness,
- CircleHelp,
- Palette,
- Code,
- Settings,
- Users,
- Heart,
- Brain,
- MapPin,
- Globe,
- PersonStandingIcon,
-} from "lucide-react";
-import {
- FaLaptopCode,
- FaPaintBrush,
- FaBusinessTime,
- FaRegHeart,
- FaRegSmile,
- FaUserTie,
- FaMoneyBillWave,
- FaBriefcase,
- FaPlaneDeparture,
-} from "react-icons/fa";
-import {
- Popover,
- PopoverContent,
- PopoverTrigger,
-} from "@/components/ui/popover";
-import { Badge } from "../ui/badge";
-
-type Category = string;
-
-const defaultIcon = <CircleHelp className="w-4 h-4 mr-2" />;
-
-const iconMap: Record<string, any> = {
- // Core themes
- health: <HeartPulse className="w-4 h-4 mr-2" />,
- wellness: <Heart className="w-4 h-4 mr-2" />,
- fitness: <HeartPulse className="w-4 h-4 mr-2" />,
- education: <Book className="w-4 h-4 mr-2" />,
- learning: <Book className="w-4 h-4 mr-2" />,
- school: <Book className="w-4 h-4 mr-2" />,
- coding: <FaLaptopCode className="w-4 h-4 mr-2" />,
- programming: <Code className="w-4 h-4 mr-2" />,
- development: <Code className="w-4 h-4 mr-2" />,
- tech: <Settings className="w-4 h-4 mr-2" />,
- design: <FaPaintBrush className="w-4 h-4 mr-2" />,
- art: <Palette className="w-4 h-4 mr-2" />,
- creativity: <Palette className="w-4 h-4 mr-2" />,
- psychology: <Brain className="w-4 h-4 mr-2" />,
- mental: <Brain className="w-4 h-4 mr-2" />,
- social: <Users className="w-4 h-4 mr-2" />,
- peronsal: <PersonStandingIcon className="w-4 h-4 mr-2" />,
- life: <Heart className="w-4 h-4 mr-2" />,
-
- // Work / Career
- business: <FaBusinessTime className="w-4 h-4 mr-2" />,
- work: <FaBriefcase className="w-4 h-4 mr-2" />,
- career: <FaUserTie className="w-4 h-4 mr-2" />,
- jobs: <BriefcaseBusiness className="w-4 h-4 mr-2" />,
- finance: <FaMoneyBillWave className="w-4 h-4 mr-2" />,
- money: <FaMoneyBillWave className="w-4 h-4 mr-2" />,
-
- // Preferences
- preference: <FaRegHeart className="w-4 h-4 mr-2" />,
- interest: <FaRegSmile className="w-4 h-4 mr-2" />,
-
- // Travel & Location
- travel: <FaPlaneDeparture className="w-4 h-4 mr-2" />,
- journey: <FaPlaneDeparture className="w-4 h-4 mr-2" />,
- location: <MapPin className="w-4 h-4 mr-2" />,
- trip: <Globe className="w-4 h-4 mr-2" />,
- places: <Globe className="w-4 h-4 mr-2" />,
-};
-
-const getClosestIcon = (label: string): any => {
- const normalized = label.toLowerCase().split(/[\s\-_.]+/);
-
- let bestMatch: string | null = null;
- let bestScore = 0;
-
- Object.keys(iconMap).forEach((key) => {
- const keyTokens = key.split(/[\s\-_.]+/);
- const matchScore = normalized.filter((word) =>
- keyTokens.some((token) => word.includes(token) || token.includes(word))
- ).length;
-
- if (matchScore > bestScore) {
- bestScore = matchScore;
- bestMatch = key;
- }
- });
-
- return bestMatch ? iconMap[bestMatch] : defaultIcon;
-};
-
-const getColor = (label: string): string => {
- const l = label.toLowerCase();
- if (l.includes("health") || l.includes("fitness"))
- return "text-emerald-400 bg-emerald-500/10 border-emerald-500/20";
- if (l.includes("education") || l.includes("school"))
- return "text-indigo-400 bg-indigo-500/10 border-indigo-500/20";
- if (
- l.includes("business") ||
- l.includes("career") ||
- l.includes("work") ||
- l.includes("finance")
- )
- return "text-amber-400 bg-amber-500/10 border-amber-500/20";
- if (l.includes("design") || l.includes("art") || l.includes("creative"))
- return "text-pink-400 bg-pink-500/10 border-pink-500/20";
- if (l.includes("tech") || l.includes("code") || l.includes("programming"))
- return "text-purple-400 bg-purple-500/10 border-purple-500/20";
- if (l.includes("interest") || l.includes("preference"))
- return "text-rose-400 bg-rose-500/10 border-rose-500/20";
- if (
- l.includes("travel") ||
- l.includes("trip") ||
- l.includes("location") ||
- l.includes("place")
- )
- return "text-sky-400 bg-sky-500/10 border-sky-500/20";
- if (l.includes("personal") || l.includes("life"))
- return "text-yellow-400 bg-yellow-500/10 border-yellow-500/20";
- return "text-blue-400 bg-blue-500/10 border-blue-500/20";
-};
-
-const Categories = ({
- categories,
- isPaused = false,
- concat = false,
-}: {
- categories: Category[];
- isPaused?: boolean;
- concat?: boolean;
-}) => {
- const [isOpen, setIsOpen] = useState(false);
-
- if (!categories || categories.length === 0) return null;
-
- const baseBadgeStyle =
- "backdrop-blur-sm transition-colors hover:bg-opacity-20";
- const pausedStyle =
- "text-zinc-500 bg-zinc-800/40 border-zinc-700/40 hover:bg-zinc-800/60";
-
- if (concat) {
- const remainingCount = categories.length - 1;
-
- return (
- <div className="flex flex-wrap gap-2">
- {/* First category */}
- <Badge
- variant="outline"
- className={`${
- isPaused
- ? pausedStyle
- : `${getColor(categories[0])} ${baseBadgeStyle}`
- }`}
- >
- {categories[0]}
- </Badge>
-
- {/* Popover for remaining categories */}
- {remainingCount > 0 && (
- <Popover open={isOpen} onOpenChange={setIsOpen}>
- <PopoverTrigger
- onMouseEnter={() => setIsOpen(true)}
- onMouseLeave={() => setIsOpen(false)}
- >
- <Badge
- variant="outline"
- className={
- isPaused
- ? pausedStyle
- : "text-zinc-400 bg-zinc-500/10 border-zinc-500/20 hover:bg-zinc-500/20"
- }
- >
- +{remainingCount}
- </Badge>
- </PopoverTrigger>
- <PopoverContent
- className="w-auto p-2 border bg-[#27272A] border-zinc-700/60 rounded-2xl"
- onMouseEnter={() => setIsOpen(true)}
- onMouseLeave={() => setIsOpen(false)}
- >
- <div className="flex flex-col gap-2">
- {categories.slice(1).map((cat, i) => (
- <Badge
- key={i}
- variant="outline"
- className={`${
- isPaused
- ? pausedStyle
- : `${getColor(cat)} ${baseBadgeStyle}`
- }`}
- >
- {cat}
- </Badge>
- ))}
- </div>
- </PopoverContent>
- </Popover>
- )}
- </div>
- );
- }
-
- // Default view
- return (
- <div className="flex flex-wrap gap-2">
- {categories?.map((cat, i) => (
- <Badge
- key={i}
- variant="outline"
- className={`${
- isPaused ? pausedStyle : `${getColor(cat)} ${baseBadgeStyle}`
- }`}
- >
- {cat}
- </Badge>
- ))}
- </div>
- );
-};
-
-export default Categories;
diff --git a/openmemory/ui/components/shared/source-app.tsx b/openmemory/ui/components/shared/source-app.tsx
deleted file mode 100644
index 5db97a9e2..000000000
--- a/openmemory/ui/components/shared/source-app.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-import React from "react";
-import { BiEdit } from "react-icons/bi";
-import Image from "next/image";
-
-export const Icon = ({ source }: { source: string }) => {
- return (
- <div className="w-4 h-4 rounded-full bg-zinc-700 flex items-center justify-center overflow-hidden -mr-1">
- <Image src={source} alt={source} width={40} height={40} />
- </div>
- );
-};
-
-export const constants = {
- claude: {
- name: "Claude",
- icon: <Icon source="/images/claude.webp" />,
- iconImage: "/images/claude.webp",
- },
- openmemory: {
- name: "OpenMemory",
- icon: <Icon source="/images/open-memory.svg" />,
- iconImage: "/images/open-memory.svg",
- },
- cursor: {
- name: "Cursor",
- icon: <Icon source="/images/cursor.png" />,
- iconImage: "/images/cursor.png",
- },
- cline: {
- name: "Cline",
- icon: <Icon source="/images/cline.png" />,
- iconImage: "/images/cline.png",
- },
- roocline: {
- name: "Roo Cline",
- icon: <Icon source="/images/roocline.png" />,
- iconImage: "/images/roocline.png",
- },
- windsurf: {
- name: "Windsurf",
- icon: <Icon source="/images/windsurf.png" />,
- iconImage: "/images/windsurf.png",
- },
- witsy: {
- name: "Witsy",
- icon: <Icon source="/images/witsy.png" />,
- iconImage: "/images/witsy.png",
- },
- enconvo: {
- name: "Enconvo",
- icon: <Icon source="/images/enconvo.png" />,
- iconImage: "/images/enconvo.png",
- },
- augment: {
- name: "Augment",
- icon: <Icon source="/images/augment.png" />,
- iconImage: "/images/augment.png",
- },
- default: {
- name: "Default",
- icon: <BiEdit size={18} className="ml-1" />,
- iconImage: "/images/default.png",
- },
-};
-
-const SourceApp = ({ source }: { source: string }) => {
- if (!constants[source as keyof typeof constants]) {
- return (
- <div>
- <BiEdit />
- <span className="text-sm font-semibold">{source}</span>
- </div>
- );
- }
- return (
- <div className="flex items-center gap-2">
- {constants[source as keyof typeof constants].icon}
- <span className="text-sm font-semibold">
- {constants[source as keyof typeof constants].name}
- </span>
- </div>
- );
-};
-
-export default SourceApp;
diff --git a/openmemory/ui/components/shared/update-memory.tsx b/openmemory/ui/components/shared/update-memory.tsx
deleted file mode 100644
index aa09e59a4..000000000
--- a/openmemory/ui/components/shared/update-memory.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-"use client";
-
-import { Button } from "@/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
-} from "@/components/ui/dialog";
-import { Label } from "@/components/ui/label";
-import { useRef } from "react";
-import { Loader2 } from "lucide-react";
-import { useMemoriesApi } from "@/hooks/useMemoriesApi";
-import { toast } from "sonner";
-import { Textarea } from "@/components/ui/textarea";
-import { usePathname } from "next/navigation";
-
-interface UpdateMemoryProps {
- memoryId: string;
- memoryContent: string;
- open: boolean;
- onOpenChange: (open: boolean) => void;
-}
-
-const UpdateMemory = ({
- memoryId,
- memoryContent,
- open,
- onOpenChange,
-}: UpdateMemoryProps) => {
- const { updateMemory, isLoading, fetchMemories, fetchMemoryById } =
- useMemoriesApi();
- const textRef = useRef<HTMLTextAreaElement>(null);
- const pathname = usePathname();
-
- const handleUpdateMemory = async (text: string) => {
- try {
- await updateMemory(memoryId, text);
- toast.success("Memory updated successfully");
- onOpenChange(false);
- if (pathname.includes("memories")) {
- await fetchMemories();
- } else {
- await fetchMemoryById(memoryId);
- }
- } catch (error) {
- console.error(error);
- toast.error("Failed to update memory");
- }
- };
-
- return (
- <Dialog open={open} onOpenChange={onOpenChange}>
- <DialogContent className="sm:max-w-[525px] bg-zinc-900 border-zinc-800 z-50">
- <DialogHeader>
- <DialogTitle>Update Memory</DialogTitle>
- <DialogDescription>Edit your existing memory</DialogDescription>
- </DialogHeader>
- <div className="grid gap-4 py-4">
- <div className="grid gap-2">
- <Label htmlFor="memory">Memory</Label>
- <Textarea
- ref={textRef}
- id="memory"
- className="bg-zinc-950 border-zinc-800 min-h-[150px]"
- defaultValue={memoryContent}
- />
- </div>
- </div>
- <DialogFooter>
- <Button variant="outline" onClick={() => onOpenChange(false)}>
- Cancel
- </Button>
- <Button
- className="w-[140px]"
- disabled={isLoading}
- onClick={() => handleUpdateMemory(textRef?.current?.value || "")}
- >
- {isLoading ? (
- <Loader2 className="w-4 h-4 mr-2 animate-spin" />
- ) : (
- "Update Memory"
- )}
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
- );
-};
-
-export default UpdateMemory;
diff --git a/openmemory/ui/components/theme-provider.tsx b/openmemory/ui/components/theme-provider.tsx
deleted file mode 100644
index 1a44ac3a1..000000000
--- a/openmemory/ui/components/theme-provider.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-"use client";
-
-import * as React from "react";
-import {
- ThemeProvider as NextThemesProvider,
- type ThemeProviderProps,
-} from "next-themes";
-
-export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
- return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
-}
diff --git a/openmemory/ui/components/types.ts b/openmemory/ui/components/types.ts
deleted file mode 100644
index 2cebdb34e..000000000
--- a/openmemory/ui/components/types.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export type Category = "personal" | "work" | "health" | "finance" | "travel" | "education" | "preferences" | "relationships"
-export type Client = "chrome" | "chatgpt" | "cursor" | "windsurf" | "terminal" | "api"
-
-export interface Memory {
- id: string
- memory: string
- metadata: any
- client: Client
- categories: Category[]
- created_at: number
- app_name: string
- state: "active" | "paused" | "archived" | "deleted"
-}
\ No newline at end of file
diff --git a/openmemory/ui/components/ui/accordion.tsx b/openmemory/ui/components/ui/accordion.tsx
deleted file mode 100644
index 24c788c2c..000000000
--- a/openmemory/ui/components/ui/accordion.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as AccordionPrimitive from "@radix-ui/react-accordion"
-import { ChevronDown } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Accordion = AccordionPrimitive.Root
-
-const AccordionItem = React.forwardRef<
- React.ElementRef<typeof AccordionPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
->(({ className, ...props }, ref) => (
- <AccordionPrimitive.Item
- ref={ref}
- className={cn("border-b", className)}
- {...props}
- />
-))
-AccordionItem.displayName = "AccordionItem"
-
-const AccordionTrigger = React.forwardRef<
- React.ElementRef<typeof AccordionPrimitive.Trigger>,
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
->(({ className, children, ...props }, ref) => (
- <AccordionPrimitive.Header className="flex">
- <AccordionPrimitive.Trigger
- ref={ref}
- className={cn(
- "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
- className
- )}
- {...props}
- >
- {children}
- <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
- </AccordionPrimitive.Trigger>
- </AccordionPrimitive.Header>
-))
-AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName
-
-const AccordionContent = React.forwardRef<
- React.ElementRef<typeof AccordionPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
->(({ className, children, ...props }, ref) => (
- <AccordionPrimitive.Content
- ref={ref}
- className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
- {...props}
- >
- <div className={cn("pb-4 pt-0", className)}>{children}</div>
- </AccordionPrimitive.Content>
-))
-
-AccordionContent.displayName = AccordionPrimitive.Content.displayName
-
-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
diff --git a/openmemory/ui/components/ui/alert-dialog.tsx b/openmemory/ui/components/ui/alert-dialog.tsx
deleted file mode 100644
index 25e7b4744..000000000
--- a/openmemory/ui/components/ui/alert-dialog.tsx
+++ /dev/null
@@ -1,141 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
-
-import { cn } from "@/lib/utils"
-import { buttonVariants } from "@/components/ui/button"
-
-const AlertDialog = AlertDialogPrimitive.Root
-
-const AlertDialogTrigger = AlertDialogPrimitive.Trigger
-
-const AlertDialogPortal = AlertDialogPrimitive.Portal
-
-const AlertDialogOverlay = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Overlay
- className={cn(
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- className
- )}
- {...props}
- ref={ref}
- />
-))
-AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName
-
-const AlertDialogContent = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
->(({ className, ...props }, ref) => (
- <AlertDialogPortal>
- <AlertDialogOverlay />
- <AlertDialogPrimitive.Content
- ref={ref}
- className={cn(
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
- className
- )}
- {...props}
- />
- </AlertDialogPortal>
-))
-AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName
-
-const AlertDialogHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-2 text-center sm:text-left",
- className
- )}
- {...props}
- />
-)
-AlertDialogHeader.displayName = "AlertDialogHeader"
-
-const AlertDialogFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className
- )}
- {...props}
- />
-)
-AlertDialogFooter.displayName = "AlertDialogFooter"
-
-const AlertDialogTitle = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Title
- ref={ref}
- className={cn("text-lg font-semibold", className)}
- {...props}
- />
-))
-AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName
-
-const AlertDialogDescription = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Description
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-AlertDialogDescription.displayName =
- AlertDialogPrimitive.Description.displayName
-
-const AlertDialogAction = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Action>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Action
- ref={ref}
- className={cn(buttonVariants(), className)}
- {...props}
- />
-))
-AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName
-
-const AlertDialogCancel = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Cancel
- ref={ref}
- className={cn(
- buttonVariants({ variant: "outline" }),
- "mt-2 sm:mt-0",
- className
- )}
- {...props}
- />
-))
-AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
-
-export {
- AlertDialog,
- AlertDialogPortal,
- AlertDialogOverlay,
- AlertDialogTrigger,
- AlertDialogContent,
- AlertDialogHeader,
- AlertDialogFooter,
- AlertDialogTitle,
- AlertDialogDescription,
- AlertDialogAction,
- AlertDialogCancel,
-}
diff --git a/openmemory/ui/components/ui/alert.tsx b/openmemory/ui/components/ui/alert.tsx
deleted file mode 100644
index 41fa7e056..000000000
--- a/openmemory/ui/components/ui/alert.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import * as React from "react"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const alertVariants = cva(
- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
- {
- variants: {
- variant: {
- default: "bg-background text-foreground",
- destructive:
- "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
- },
- },
- defaultVariants: {
- variant: "default",
- },
- }
-)
-
-const Alert = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
->(({ className, variant, ...props }, ref) => (
- <div
- ref={ref}
- role="alert"
- className={cn(alertVariants({ variant }), className)}
- {...props}
- />
-))
-Alert.displayName = "Alert"
-
-const AlertTitle = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLHeadingElement>
->(({ className, ...props }, ref) => (
- <h5
- ref={ref}
- className={cn("mb-1 font-medium leading-none tracking-tight", className)}
- {...props}
- />
-))
-AlertTitle.displayName = "AlertTitle"
-
-const AlertDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLParagraphElement>
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- className={cn("text-sm [&_p]:leading-relaxed", className)}
- {...props}
- />
-))
-AlertDescription.displayName = "AlertDescription"
-
-export { Alert, AlertTitle, AlertDescription }
diff --git a/openmemory/ui/components/ui/aspect-ratio.tsx b/openmemory/ui/components/ui/aspect-ratio.tsx
deleted file mode 100644
index d6a5226f5..000000000
--- a/openmemory/ui/components/ui/aspect-ratio.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-"use client"
-
-import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
-
-const AspectRatio = AspectRatioPrimitive.Root
-
-export { AspectRatio }
diff --git a/openmemory/ui/components/ui/avatar.tsx b/openmemory/ui/components/ui/avatar.tsx
deleted file mode 100644
index 51e507ba9..000000000
--- a/openmemory/ui/components/ui/avatar.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as AvatarPrimitive from "@radix-ui/react-avatar"
-
-import { cn } from "@/lib/utils"
-
-const Avatar = React.forwardRef<
- React.ElementRef<typeof AvatarPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
->(({ className, ...props }, ref) => (
- <AvatarPrimitive.Root
- ref={ref}
- className={cn(
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
- className
- )}
- {...props}
- />
-))
-Avatar.displayName = AvatarPrimitive.Root.displayName
-
-const AvatarImage = React.forwardRef<
- React.ElementRef<typeof AvatarPrimitive.Image>,
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
->(({ className, ...props }, ref) => (
- <AvatarPrimitive.Image
- ref={ref}
- className={cn("aspect-square h-full w-full", className)}
- {...props}
- />
-))
-AvatarImage.displayName = AvatarPrimitive.Image.displayName
-
-const AvatarFallback = React.forwardRef<
- React.ElementRef<typeof AvatarPrimitive.Fallback>,
- React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
->(({ className, ...props }, ref) => (
- <AvatarPrimitive.Fallback
- ref={ref}
- className={cn(
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
- className
- )}
- {...props}
- />
-))
-AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
-
-export { Avatar, AvatarImage, AvatarFallback }
diff --git a/openmemory/ui/components/ui/badge.tsx b/openmemory/ui/components/ui/badge.tsx
deleted file mode 100644
index f000e3ef5..000000000
--- a/openmemory/ui/components/ui/badge.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import * as React from "react"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const badgeVariants = cva(
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
- {
- variants: {
- variant: {
- default:
- "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
- secondary:
- "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
- destructive:
- "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
- outline: "text-foreground",
- },
- },
- defaultVariants: {
- variant: "default",
- },
- }
-)
-
-export interface BadgeProps
- extends React.HTMLAttributes<HTMLDivElement>,
- VariantProps<typeof badgeVariants> {}
-
-function Badge({ className, variant, ...props }: BadgeProps) {
- return (
- <div className={cn(badgeVariants({ variant }), className)} {...props} />
- )
-}
-
-export { Badge, badgeVariants }
diff --git a/openmemory/ui/components/ui/breadcrumb.tsx b/openmemory/ui/components/ui/breadcrumb.tsx
deleted file mode 100644
index 60e6c96f7..000000000
--- a/openmemory/ui/components/ui/breadcrumb.tsx
+++ /dev/null
@@ -1,115 +0,0 @@
-import * as React from "react"
-import { Slot } from "@radix-ui/react-slot"
-import { ChevronRight, MoreHorizontal } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Breadcrumb = React.forwardRef<
- HTMLElement,
- React.ComponentPropsWithoutRef<"nav"> & {
- separator?: React.ReactNode
- }
->(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />)
-Breadcrumb.displayName = "Breadcrumb"
-
-const BreadcrumbList = React.forwardRef<
- HTMLOListElement,
- React.ComponentPropsWithoutRef<"ol">
->(({ className, ...props }, ref) => (
- <ol
- ref={ref}
- className={cn(
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
- className
- )}
- {...props}
- />
-))
-BreadcrumbList.displayName = "BreadcrumbList"
-
-const BreadcrumbItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentPropsWithoutRef<"li">
->(({ className, ...props }, ref) => (
- <li
- ref={ref}
- className={cn("inline-flex items-center gap-1.5", className)}
- {...props}
- />
-))
-BreadcrumbItem.displayName = "BreadcrumbItem"
-
-const BreadcrumbLink = React.forwardRef<
- HTMLAnchorElement,
- React.ComponentPropsWithoutRef<"a"> & {
- asChild?: boolean
- }
->(({ asChild, className, ...props }, ref) => {
- const Comp = asChild ? Slot : "a"
-
- return (
- <Comp
- ref={ref}
- className={cn("transition-colors hover:text-foreground", className)}
- {...props}
- />
- )
-})
-BreadcrumbLink.displayName = "BreadcrumbLink"
-
-const BreadcrumbPage = React.forwardRef<
- HTMLSpanElement,
- React.ComponentPropsWithoutRef<"span">
->(({ className, ...props }, ref) => (
- <span
- ref={ref}
- role="link"
- aria-disabled="true"
- aria-current="page"
- className={cn("font-normal text-foreground", className)}
- {...props}
- />
-))
-BreadcrumbPage.displayName = "BreadcrumbPage"
-
-const BreadcrumbSeparator = ({
- children,
- className,
- ...props
-}: React.ComponentProps<"li">) => (
- <li
- role="presentation"
- aria-hidden="true"
- className={cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)}
- {...props}
- >
- {children ?? <ChevronRight />}
- </li>
-)
-BreadcrumbSeparator.displayName = "BreadcrumbSeparator"
-
-const BreadcrumbEllipsis = ({
- className,
- ...props
-}: React.ComponentProps<"span">) => (
- <span
- role="presentation"
- aria-hidden="true"
- className={cn("flex h-9 w-9 items-center justify-center", className)}
- {...props}
- >
- <MoreHorizontal className="h-4 w-4" />
- <span className="sr-only">More</span>
- </span>
-)
-BreadcrumbEllipsis.displayName = "BreadcrumbElipssis"
-
-export {
- Breadcrumb,
- BreadcrumbList,
- BreadcrumbItem,
- BreadcrumbLink,
- BreadcrumbPage,
- BreadcrumbSeparator,
- BreadcrumbEllipsis,
-}
diff --git a/openmemory/ui/components/ui/button.tsx b/openmemory/ui/components/ui/button.tsx
deleted file mode 100644
index 36496a287..000000000
--- a/openmemory/ui/components/ui/button.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import * as React from "react"
-import { Slot } from "@radix-ui/react-slot"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const buttonVariants = cva(
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
- {
- variants: {
- variant: {
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
- destructive:
- "bg-destructive text-destructive-foreground hover:bg-destructive/90",
- outline:
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
- secondary:
- "bg-secondary text-secondary-foreground hover:bg-secondary/80",
- ghost: "hover:bg-accent hover:text-accent-foreground",
- link: "text-primary underline-offset-4 hover:underline",
- },
- size: {
- default: "h-10 px-4 py-2",
- sm: "h-9 rounded-md px-3",
- lg: "h-11 rounded-md px-8",
- icon: "h-10 w-10",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- }
-)
-
-export interface ButtonProps
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
- VariantProps<typeof buttonVariants> {
- asChild?: boolean
-}
-
-const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
- ({ className, variant, size, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button"
- return (
- <Comp
- className={cn(buttonVariants({ variant, size, className }))}
- ref={ref}
- {...props}
- />
- )
- }
-)
-Button.displayName = "Button"
-
-export { Button, buttonVariants }
diff --git a/openmemory/ui/components/ui/calendar.tsx b/openmemory/ui/components/ui/calendar.tsx
deleted file mode 100644
index 61d2b451e..000000000
--- a/openmemory/ui/components/ui/calendar.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { ChevronLeft, ChevronRight } from "lucide-react"
-import { DayPicker } from "react-day-picker"
-
-import { cn } from "@/lib/utils"
-import { buttonVariants } from "@/components/ui/button"
-
-export type CalendarProps = React.ComponentProps<typeof DayPicker>
-
-function Calendar({
- className,
- classNames,
- showOutsideDays = true,
- ...props
-}: CalendarProps) {
- return (
- <DayPicker
- showOutsideDays={showOutsideDays}
- className={cn("p-3", className)}
- classNames={{
- months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
- month: "space-y-4",
- caption: "flex justify-center pt-1 relative items-center",
- caption_label: "text-sm font-medium",
- nav: "space-x-1 flex items-center",
- nav_button: cn(
- buttonVariants({ variant: "outline" }),
- "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
- ),
- nav_button_previous: "absolute left-1",
- nav_button_next: "absolute right-1",
- table: "w-full border-collapse space-y-1",
- head_row: "flex",
- head_cell:
- "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
- row: "flex w-full mt-2",
- cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
- day: cn(
- buttonVariants({ variant: "ghost" }),
- "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
- ),
- day_range_end: "day-range-end",
- day_selected:
- "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
- day_today: "bg-accent text-accent-foreground",
- day_outside:
- "day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",
- day_disabled: "text-muted-foreground opacity-50",
- day_range_middle:
- "aria-selected:bg-accent aria-selected:text-accent-foreground",
- day_hidden: "invisible",
- ...classNames,
- }}
- components={{
- IconLeft: ({ ...props }) => <ChevronLeft className="h-4 w-4" />,
- IconRight: ({ ...props }) => <ChevronRight className="h-4 w-4" />,
- }}
- {...props}
- />
- )
-}
-Calendar.displayName = "Calendar"
-
-export { Calendar }
diff --git a/openmemory/ui/components/ui/card.tsx b/openmemory/ui/components/ui/card.tsx
deleted file mode 100644
index afa13ecfa..000000000
--- a/openmemory/ui/components/ui/card.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import * as React from "react"
-
-import { cn } from "@/lib/utils"
-
-const Card = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- className={cn(
- "rounded-lg border bg-card text-card-foreground shadow-sm",
- className
- )}
- {...props}
- />
-))
-Card.displayName = "Card"
-
-const CardHeader = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- className={cn("flex flex-col space-y-1.5 p-6", className)}
- {...props}
- />
-))
-CardHeader.displayName = "CardHeader"
-
-const CardTitle = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLHeadingElement>
->(({ className, ...props }, ref) => (
- <h3
- ref={ref}
- className={cn(
- "text-2xl font-semibold leading-none tracking-tight",
- className
- )}
- {...props}
- />
-))
-CardTitle.displayName = "CardTitle"
-
-const CardDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLParagraphElement>
->(({ className, ...props }, ref) => (
- <p
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-CardDescription.displayName = "CardDescription"
-
-const CardContent = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => (
- <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
-))
-CardContent.displayName = "CardContent"
-
-const CardFooter = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- className={cn("flex items-center p-6 pt-0", className)}
- {...props}
- />
-))
-CardFooter.displayName = "CardFooter"
-
-export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
diff --git a/openmemory/ui/components/ui/carousel.tsx b/openmemory/ui/components/ui/carousel.tsx
deleted file mode 100644
index ec505d00d..000000000
--- a/openmemory/ui/components/ui/carousel.tsx
+++ /dev/null
@@ -1,262 +0,0 @@
-"use client"
-
-import * as React from "react"
-import useEmblaCarousel, {
- type UseEmblaCarouselType,
-} from "embla-carousel-react"
-import { ArrowLeft, ArrowRight } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-import { Button } from "@/components/ui/button"
-
-type CarouselApi = UseEmblaCarouselType[1]
-type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
-type CarouselOptions = UseCarouselParameters[0]
-type CarouselPlugin = UseCarouselParameters[1]
-
-type CarouselProps = {
- opts?: CarouselOptions
- plugins?: CarouselPlugin
- orientation?: "horizontal" | "vertical"
- setApi?: (api: CarouselApi) => void
-}
-
-type CarouselContextProps = {
- carouselRef: ReturnType<typeof useEmblaCarousel>[0]
- api: ReturnType<typeof useEmblaCarousel>[1]
- scrollPrev: () => void
- scrollNext: () => void
- canScrollPrev: boolean
- canScrollNext: boolean
-} & CarouselProps
-
-const CarouselContext = React.createContext<CarouselContextProps | null>(null)
-
-function useCarousel() {
- const context = React.useContext(CarouselContext)
-
- if (!context) {
- throw new Error("useCarousel must be used within a <Carousel />")
- }
-
- return context
-}
-
-const Carousel = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement> & CarouselProps
->(
- (
- {
- orientation = "horizontal",
- opts,
- setApi,
- plugins,
- className,
- children,
- ...props
- },
- ref
- ) => {
- const [carouselRef, api] = useEmblaCarousel(
- {
- ...opts,
- axis: orientation === "horizontal" ? "x" : "y",
- },
- plugins
- )
- const [canScrollPrev, setCanScrollPrev] = React.useState(false)
- const [canScrollNext, setCanScrollNext] = React.useState(false)
-
- const onSelect = React.useCallback((api: CarouselApi) => {
- if (!api) {
- return
- }
-
- setCanScrollPrev(api.canScrollPrev())
- setCanScrollNext(api.canScrollNext())
- }, [])
-
- const scrollPrev = React.useCallback(() => {
- api?.scrollPrev()
- }, [api])
-
- const scrollNext = React.useCallback(() => {
- api?.scrollNext()
- }, [api])
-
- const handleKeyDown = React.useCallback(
- (event: React.KeyboardEvent<HTMLDivElement>) => {
- if (event.key === "ArrowLeft") {
- event.preventDefault()
- scrollPrev()
- } else if (event.key === "ArrowRight") {
- event.preventDefault()
- scrollNext()
- }
- },
- [scrollPrev, scrollNext]
- )
-
- React.useEffect(() => {
- if (!api || !setApi) {
- return
- }
-
- setApi(api)
- }, [api, setApi])
-
- React.useEffect(() => {
- if (!api) {
- return
- }
-
- onSelect(api)
- api.on("reInit", onSelect)
- api.on("select", onSelect)
-
- return () => {
- api?.off("select", onSelect)
- }
- }, [api, onSelect])
-
- return (
- <CarouselContext.Provider
- value={{
- carouselRef,
- api: api,
- opts,
- orientation:
- orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
- scrollPrev,
- scrollNext,
- canScrollPrev,
- canScrollNext,
- }}
- >
- <div
- ref={ref}
- onKeyDownCapture={handleKeyDown}
- className={cn("relative", className)}
- role="region"
- aria-roledescription="carousel"
- {...props}
- >
- {children}
- </div>
- </CarouselContext.Provider>
- )
- }
-)
-Carousel.displayName = "Carousel"
-
-const CarouselContent = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => {
- const { carouselRef, orientation } = useCarousel()
-
- return (
- <div ref={carouselRef} className="overflow-hidden">
- <div
- ref={ref}
- className={cn(
- "flex",
- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
- className
- )}
- {...props}
- />
- </div>
- )
-})
-CarouselContent.displayName = "CarouselContent"
-
-const CarouselItem = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => {
- const { orientation } = useCarousel()
-
- return (
- <div
- ref={ref}
- role="group"
- aria-roledescription="slide"
- className={cn(
- "min-w-0 shrink-0 grow-0 basis-full",
- orientation === "horizontal" ? "pl-4" : "pt-4",
- className
- )}
- {...props}
- />
- )
-})
-CarouselItem.displayName = "CarouselItem"
-
-const CarouselPrevious = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<typeof Button>
->(({ className, variant = "outline", size = "icon", ...props }, ref) => {
- const { orientation, scrollPrev, canScrollPrev } = useCarousel()
-
- return (
- <Button
- ref={ref}
- variant={variant}
- size={size}
- className={cn(
- "absolute h-8 w-8 rounded-full",
- orientation === "horizontal"
- ? "-left-12 top-1/2 -translate-y-1/2"
- : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
- className
- )}
- disabled={!canScrollPrev}
- onClick={scrollPrev}
- {...props}
- >
- <ArrowLeft className="h-4 w-4" />
- <span className="sr-only">Previous slide</span>
- </Button>
- )
-})
-CarouselPrevious.displayName = "CarouselPrevious"
-
-const CarouselNext = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<typeof Button>
->(({ className, variant = "outline", size = "icon", ...props }, ref) => {
- const { orientation, scrollNext, canScrollNext } = useCarousel()
-
- return (
- <Button
- ref={ref}
- variant={variant}
- size={size}
- className={cn(
- "absolute h-8 w-8 rounded-full",
- orientation === "horizontal"
- ? "-right-12 top-1/2 -translate-y-1/2"
- : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
- className
- )}
- disabled={!canScrollNext}
- onClick={scrollNext}
- {...props}
- >
- <ArrowRight className="h-4 w-4" />
- <span className="sr-only">Next slide</span>
- </Button>
- )
-})
-CarouselNext.displayName = "CarouselNext"
-
-export {
- type CarouselApi,
- Carousel,
- CarouselContent,
- CarouselItem,
- CarouselPrevious,
- CarouselNext,
-}
diff --git a/openmemory/ui/components/ui/chart.tsx b/openmemory/ui/components/ui/chart.tsx
deleted file mode 100644
index 8620baa3b..000000000
--- a/openmemory/ui/components/ui/chart.tsx
+++ /dev/null
@@ -1,365 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as RechartsPrimitive from "recharts"
-
-import { cn } from "@/lib/utils"
-
-// Format: { THEME_NAME: CSS_SELECTOR }
-const THEMES = { light: "", dark: ".dark" } as const
-
-export type ChartConfig = {
- [k in string]: {
- label?: React.ReactNode
- icon?: React.ComponentType
- } & (
- | { color?: string; theme?: never }
- | { color?: never; theme: Record<keyof typeof THEMES, string> }
- )
-}
-
-type ChartContextProps = {
- config: ChartConfig
-}
-
-const ChartContext = React.createContext<ChartContextProps | null>(null)
-
-function useChart() {
- const context = React.useContext(ChartContext)
-
- if (!context) {
- throw new Error("useChart must be used within a <ChartContainer />")
- }
-
- return context
-}
-
-const ChartContainer = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- config: ChartConfig
- children: React.ComponentProps<
- typeof RechartsPrimitive.ResponsiveContainer
- >["children"]
- }
->(({ id, className, children, config, ...props }, ref) => {
- const uniqueId = React.useId()
- const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`
-
- return (
- <ChartContext.Provider value={{ config }}>
- <div
- data-chart={chartId}
- ref={ref}
- className={cn(
- "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
- className
- )}
- {...props}
- >
- <ChartStyle id={chartId} config={config} />
- <RechartsPrimitive.ResponsiveContainer>
- {children}
- </RechartsPrimitive.ResponsiveContainer>
- </div>
- </ChartContext.Provider>
- )
-})
-ChartContainer.displayName = "Chart"
-
-const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
- const colorConfig = Object.entries(config).filter(
- ([_, config]) => config.theme || config.color
- )
-
- if (!colorConfig.length) {
- return null
- }
-
- return (
- <style
- dangerouslySetInnerHTML={{
- __html: Object.entries(THEMES)
- .map(
- ([theme, prefix]) => `
-${prefix} [data-chart=${id}] {
-${colorConfig
- .map(([key, itemConfig]) => {
- const color =
- itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||
- itemConfig.color
- return color ? ` --color-${key}: ${color};` : null
- })
- .join("\n")}
-}
-`
- )
- .join("\n"),
- }}
- />
- )
-}
-
-const ChartTooltip = RechartsPrimitive.Tooltip
-
-const ChartTooltipContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<typeof RechartsPrimitive.Tooltip> &
- React.ComponentProps<"div"> & {
- hideLabel?: boolean
- hideIndicator?: boolean
- indicator?: "line" | "dot" | "dashed"
- nameKey?: string
- labelKey?: string
- }
->(
- (
- {
- active,
- payload,
- className,
- indicator = "dot",
- hideLabel = false,
- hideIndicator = false,
- label,
- labelFormatter,
- labelClassName,
- formatter,
- color,
- nameKey,
- labelKey,
- },
- ref
- ) => {
- const { config } = useChart()
-
- const tooltipLabel = React.useMemo(() => {
- if (hideLabel || !payload?.length) {
- return null
- }
-
- const [item] = payload
- const key = `${labelKey || item.dataKey || item.name || "value"}`
- const itemConfig = getPayloadConfigFromPayload(config, item, key)
- const value =
- !labelKey && typeof label === "string"
- ? config[label as keyof typeof config]?.label || label
- : itemConfig?.label
-
- if (labelFormatter) {
- return (
- <div className={cn("font-medium", labelClassName)}>
- {labelFormatter(value, payload)}
- </div>
- )
- }
-
- if (!value) {
- return null
- }
-
- return <div className={cn("font-medium", labelClassName)}>{value}</div>
- }, [
- label,
- labelFormatter,
- payload,
- hideLabel,
- labelClassName,
- config,
- labelKey,
- ])
-
- if (!active || !payload?.length) {
- return null
- }
-
- const nestLabel = payload.length === 1 && indicator !== "dot"
-
- return (
- <div
- ref={ref}
- className={cn(
- "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
- className
- )}
- >
- {!nestLabel ? tooltipLabel : null}
- <div className="grid gap-1.5">
- {payload.map((item, index) => {
- const key = `${nameKey || item.name || item.dataKey || "value"}`
- const itemConfig = getPayloadConfigFromPayload(config, item, key)
- const indicatorColor = color || item.payload.fill || item.color
-
- return (
- <div
- key={item.dataKey}
- className={cn(
- "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
- indicator === "dot" && "items-center"
- )}
- >
- {formatter && item?.value !== undefined && item.name ? (
- formatter(item.value, item.name, item, index, item.payload)
- ) : (
- <>
- {itemConfig?.icon ? (
- <itemConfig.icon />
- ) : (
- !hideIndicator && (
- <div
- className={cn(
- "shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
- {
- "h-2.5 w-2.5": indicator === "dot",
- "w-1": indicator === "line",
- "w-0 border-[1.5px] border-dashed bg-transparent":
- indicator === "dashed",
- "my-0.5": nestLabel && indicator === "dashed",
- }
- )}
- style={
- {
- "--color-bg": indicatorColor,
- "--color-border": indicatorColor,
- } as React.CSSProperties
- }
- />
- )
- )}
- <div
- className={cn(
- "flex flex-1 justify-between leading-none",
- nestLabel ? "items-end" : "items-center"
- )}
- >
- <div className="grid gap-1.5">
- {nestLabel ? tooltipLabel : null}
- <span className="text-muted-foreground">
- {itemConfig?.label || item.name}
- </span>
- </div>
- {item.value && (
- <span className="font-mono font-medium tabular-nums text-foreground">
- {item.value.toLocaleString()}
- </span>
- )}
- </div>
- </>
- )}
- </div>
- )
- })}
- </div>
- </div>
- )
- }
-)
-ChartTooltipContent.displayName = "ChartTooltip"
-
-const ChartLegend = RechartsPrimitive.Legend
-
-const ChartLegendContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> &
- Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
- hideIcon?: boolean
- nameKey?: string
- }
->(
- (
- { className, hideIcon = false, payload, verticalAlign = "bottom", nameKey },
- ref
- ) => {
- const { config } = useChart()
-
- if (!payload?.length) {
- return null
- }
-
- return (
- <div
- ref={ref}
- className={cn(
- "flex items-center justify-center gap-4",
- verticalAlign === "top" ? "pb-3" : "pt-3",
- className
- )}
- >
- {payload.map((item) => {
- const key = `${nameKey || item.dataKey || "value"}`
- const itemConfig = getPayloadConfigFromPayload(config, item, key)
-
- return (
- <div
- key={item.value}
- className={cn(
- "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
- )}
- >
- {itemConfig?.icon && !hideIcon ? (
- <itemConfig.icon />
- ) : (
- <div
- className="h-2 w-2 shrink-0 rounded-[2px]"
- style={{
- backgroundColor: item.color,
- }}
- />
- )}
- {itemConfig?.label}
- </div>
- )
- })}
- </div>
- )
- }
-)
-ChartLegendContent.displayName = "ChartLegend"
-
-// Helper to extract item config from a payload.
-function getPayloadConfigFromPayload(
- config: ChartConfig,
- payload: unknown,
- key: string
-) {
- if (typeof payload !== "object" || payload === null) {
- return undefined
- }
-
- const payloadPayload =
- "payload" in payload &&
- typeof payload.payload === "object" &&
- payload.payload !== null
- ? payload.payload
- : undefined
-
- let configLabelKey: string = key
-
- if (
- key in payload &&
- typeof payload[key as keyof typeof payload] === "string"
- ) {
- configLabelKey = payload[key as keyof typeof payload] as string
- } else if (
- payloadPayload &&
- key in payloadPayload &&
- typeof payloadPayload[key as keyof typeof payloadPayload] === "string"
- ) {
- configLabelKey = payloadPayload[
- key as keyof typeof payloadPayload
- ] as string
- }
-
- return configLabelKey in config
- ? config[configLabelKey]
- : config[key as keyof typeof config]
-}
-
-export {
- ChartContainer,
- ChartTooltip,
- ChartTooltipContent,
- ChartLegend,
- ChartLegendContent,
- ChartStyle,
-}
diff --git a/openmemory/ui/components/ui/checkbox.tsx b/openmemory/ui/components/ui/checkbox.tsx
deleted file mode 100644
index df61a1388..000000000
--- a/openmemory/ui/components/ui/checkbox.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
-import { Check } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Checkbox = React.forwardRef<
- React.ElementRef<typeof CheckboxPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
->(({ className, ...props }, ref) => (
- <CheckboxPrimitive.Root
- ref={ref}
- className={cn(
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
- className
- )}
- {...props}
- >
- <CheckboxPrimitive.Indicator
- className={cn("flex items-center justify-center text-current")}
- >
- <Check className="h-4 w-4" />
- </CheckboxPrimitive.Indicator>
- </CheckboxPrimitive.Root>
-))
-Checkbox.displayName = CheckboxPrimitive.Root.displayName
-
-export { Checkbox }
diff --git a/openmemory/ui/components/ui/collapsible.tsx b/openmemory/ui/components/ui/collapsible.tsx
deleted file mode 100644
index 9fa48946a..000000000
--- a/openmemory/ui/components/ui/collapsible.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-"use client"
-
-import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
-
-const Collapsible = CollapsiblePrimitive.Root
-
-const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger
-
-const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent
-
-export { Collapsible, CollapsibleTrigger, CollapsibleContent }
diff --git a/openmemory/ui/components/ui/command.tsx b/openmemory/ui/components/ui/command.tsx
deleted file mode 100644
index 59a264529..000000000
--- a/openmemory/ui/components/ui/command.tsx
+++ /dev/null
@@ -1,153 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { type DialogProps } from "@radix-ui/react-dialog"
-import { Command as CommandPrimitive } from "cmdk"
-import { Search } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-import { Dialog, DialogContent } from "@/components/ui/dialog"
-
-const Command = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive>
->(({ className, ...props }, ref) => (
- <CommandPrimitive
- ref={ref}
- className={cn(
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
- className
- )}
- {...props}
- />
-))
-Command.displayName = CommandPrimitive.displayName
-
-const CommandDialog = ({ children, ...props }: DialogProps) => {
- return (
- <Dialog {...props}>
- <DialogContent className="overflow-hidden p-0 shadow-lg">
- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
- {children}
- </Command>
- </DialogContent>
- </Dialog>
- )
-}
-
-const CommandInput = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Input>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
->(({ className, ...props }, ref) => (
- <div className="flex items-center border-b px-3" cmdk-input-wrapper="">
- <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
- <CommandPrimitive.Input
- ref={ref}
- className={cn(
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
- className
- )}
- {...props}
- />
- </div>
-))
-
-CommandInput.displayName = CommandPrimitive.Input.displayName
-
-const CommandList = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.List>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
->(({ className, ...props }, ref) => (
- <CommandPrimitive.List
- ref={ref}
- className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
- {...props}
- />
-))
-
-CommandList.displayName = CommandPrimitive.List.displayName
-
-const CommandEmpty = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Empty>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
->((props, ref) => (
- <CommandPrimitive.Empty
- ref={ref}
- className="py-6 text-center text-sm"
- {...props}
- />
-))
-
-CommandEmpty.displayName = CommandPrimitive.Empty.displayName
-
-const CommandGroup = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Group>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
->(({ className, ...props }, ref) => (
- <CommandPrimitive.Group
- ref={ref}
- className={cn(
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
- className
- )}
- {...props}
- />
-))
-
-CommandGroup.displayName = CommandPrimitive.Group.displayName
-
-const CommandSeparator = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Separator>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
->(({ className, ...props }, ref) => (
- <CommandPrimitive.Separator
- ref={ref}
- className={cn("-mx-1 h-px bg-border", className)}
- {...props}
- />
-))
-CommandSeparator.displayName = CommandPrimitive.Separator.displayName
-
-const CommandItem = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
->(({ className, ...props }, ref) => (
- <CommandPrimitive.Item
- ref={ref}
- className={cn(
- "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
- className
- )}
- {...props}
- />
-))
-
-CommandItem.displayName = CommandPrimitive.Item.displayName
-
-const CommandShortcut = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLSpanElement>) => {
- return (
- <span
- className={cn(
- "ml-auto text-xs tracking-widest text-muted-foreground",
- className
- )}
- {...props}
- />
- )
-}
-CommandShortcut.displayName = "CommandShortcut"
-
-export {
- Command,
- CommandDialog,
- CommandInput,
- CommandList,
- CommandEmpty,
- CommandGroup,
- CommandItem,
- CommandShortcut,
- CommandSeparator,
-}
diff --git a/openmemory/ui/components/ui/context-menu.tsx b/openmemory/ui/components/ui/context-menu.tsx
deleted file mode 100644
index 93ef37ba9..000000000
--- a/openmemory/ui/components/ui/context-menu.tsx
+++ /dev/null
@@ -1,200 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
-import { Check, ChevronRight, Circle } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const ContextMenu = ContextMenuPrimitive.Root
-
-const ContextMenuTrigger = ContextMenuPrimitive.Trigger
-
-const ContextMenuGroup = ContextMenuPrimitive.Group
-
-const ContextMenuPortal = ContextMenuPrimitive.Portal
-
-const ContextMenuSub = ContextMenuPrimitive.Sub
-
-const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup
-
-const ContextMenuSubTrigger = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {
- inset?: boolean
- }
->(({ className, inset, children, ...props }, ref) => (
- <ContextMenuPrimitive.SubTrigger
- ref={ref}
- className={cn(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
- inset && "pl-8",
- className
- )}
- {...props}
- >
- {children}
- <ChevronRight className="ml-auto h-4 w-4" />
- </ContextMenuPrimitive.SubTrigger>
-))
-ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName
-
-const ContextMenuSubContent = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.SubContent>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>
->(({ className, ...props }, ref) => (
- <ContextMenuPrimitive.SubContent
- ref={ref}
- className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
-))
-ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName
-
-const ContextMenuContent = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>
->(({ className, ...props }, ref) => (
- <ContextMenuPrimitive.Portal>
- <ContextMenuPrimitive.Content
- ref={ref}
- className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
- </ContextMenuPrimitive.Portal>
-))
-ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName
-
-const ContextMenuItem = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <ContextMenuPrimitive.Item
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName
-
-const ContextMenuCheckboxItem = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>
->(({ className, children, checked, ...props }, ref) => (
- <ContextMenuPrimitive.CheckboxItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- checked={checked}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <ContextMenuPrimitive.ItemIndicator>
- <Check className="h-4 w-4" />
- </ContextMenuPrimitive.ItemIndicator>
- </span>
- {children}
- </ContextMenuPrimitive.CheckboxItem>
-))
-ContextMenuCheckboxItem.displayName =
- ContextMenuPrimitive.CheckboxItem.displayName
-
-const ContextMenuRadioItem = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>
->(({ className, children, ...props }, ref) => (
- <ContextMenuPrimitive.RadioItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <ContextMenuPrimitive.ItemIndicator>
- <Circle className="h-2 w-2 fill-current" />
- </ContextMenuPrimitive.ItemIndicator>
- </span>
- {children}
- </ContextMenuPrimitive.RadioItem>
-))
-ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName
-
-const ContextMenuLabel = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.Label>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <ContextMenuPrimitive.Label
- ref={ref}
- className={cn(
- "px-2 py-1.5 text-sm font-semibold text-foreground",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName
-
-const ContextMenuSeparator = React.forwardRef<
- React.ElementRef<typeof ContextMenuPrimitive.Separator>,
- React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>
->(({ className, ...props }, ref) => (
- <ContextMenuPrimitive.Separator
- ref={ref}
- className={cn("-mx-1 my-1 h-px bg-border", className)}
- {...props}
- />
-))
-ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName
-
-const ContextMenuShortcut = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLSpanElement>) => {
- return (
- <span
- className={cn(
- "ml-auto text-xs tracking-widest text-muted-foreground",
- className
- )}
- {...props}
- />
- )
-}
-ContextMenuShortcut.displayName = "ContextMenuShortcut"
-
-export {
- ContextMenu,
- ContextMenuTrigger,
- ContextMenuContent,
- ContextMenuItem,
- ContextMenuCheckboxItem,
- ContextMenuRadioItem,
- ContextMenuLabel,
- ContextMenuSeparator,
- ContextMenuShortcut,
- ContextMenuGroup,
- ContextMenuPortal,
- ContextMenuSub,
- ContextMenuSubContent,
- ContextMenuSubTrigger,
- ContextMenuRadioGroup,
-}
diff --git a/openmemory/ui/components/ui/dialog.tsx b/openmemory/ui/components/ui/dialog.tsx
deleted file mode 100644
index 01ff19c7e..000000000
--- a/openmemory/ui/components/ui/dialog.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as DialogPrimitive from "@radix-ui/react-dialog"
-import { X } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Dialog = DialogPrimitive.Root
-
-const DialogTrigger = DialogPrimitive.Trigger
-
-const DialogPortal = DialogPrimitive.Portal
-
-const DialogClose = DialogPrimitive.Close
-
-const DialogOverlay = React.forwardRef<
- React.ElementRef<typeof DialogPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <DialogPrimitive.Overlay
- ref={ref}
- className={cn(
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- className
- )}
- {...props}
- />
-))
-DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
-
-const DialogContent = React.forwardRef<
- React.ElementRef<typeof DialogPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
->(({ className, children, ...props }, ref) => (
- <DialogPortal>
- <DialogOverlay />
- <DialogPrimitive.Content
- ref={ref}
- className={cn(
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
- className
- )}
- {...props}
- >
- {children}
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
- <X className="h-4 w-4" />
- <span className="sr-only">Close</span>
- </DialogPrimitive.Close>
- </DialogPrimitive.Content>
- </DialogPortal>
-))
-DialogContent.displayName = DialogPrimitive.Content.displayName
-
-const DialogHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-1.5 text-center sm:text-left",
- className
- )}
- {...props}
- />
-)
-DialogHeader.displayName = "DialogHeader"
-
-const DialogFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className
- )}
- {...props}
- />
-)
-DialogFooter.displayName = "DialogFooter"
-
-const DialogTitle = React.forwardRef<
- React.ElementRef<typeof DialogPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
->(({ className, ...props }, ref) => (
- <DialogPrimitive.Title
- ref={ref}
- className={cn(
- "text-lg font-semibold leading-none tracking-tight",
- className
- )}
- {...props}
- />
-))
-DialogTitle.displayName = DialogPrimitive.Title.displayName
-
-const DialogDescription = React.forwardRef<
- React.ElementRef<typeof DialogPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
->(({ className, ...props }, ref) => (
- <DialogPrimitive.Description
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-DialogDescription.displayName = DialogPrimitive.Description.displayName
-
-export {
- Dialog,
- DialogPortal,
- DialogOverlay,
- DialogClose,
- DialogTrigger,
- DialogContent,
- DialogHeader,
- DialogFooter,
- DialogTitle,
- DialogDescription,
-}
diff --git a/openmemory/ui/components/ui/drawer.tsx b/openmemory/ui/components/ui/drawer.tsx
deleted file mode 100644
index 6a0ef53dd..000000000
--- a/openmemory/ui/components/ui/drawer.tsx
+++ /dev/null
@@ -1,118 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { Drawer as DrawerPrimitive } from "vaul"
-
-import { cn } from "@/lib/utils"
-
-const Drawer = ({
- shouldScaleBackground = true,
- ...props
-}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
- <DrawerPrimitive.Root
- shouldScaleBackground={shouldScaleBackground}
- {...props}
- />
-)
-Drawer.displayName = "Drawer"
-
-const DrawerTrigger = DrawerPrimitive.Trigger
-
-const DrawerPortal = DrawerPrimitive.Portal
-
-const DrawerClose = DrawerPrimitive.Close
-
-const DrawerOverlay = React.forwardRef<
- React.ElementRef<typeof DrawerPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <DrawerPrimitive.Overlay
- ref={ref}
- className={cn("fixed inset-0 z-50 bg-black/80", className)}
- {...props}
- />
-))
-DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName
-
-const DrawerContent = React.forwardRef<
- React.ElementRef<typeof DrawerPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
->(({ className, children, ...props }, ref) => (
- <DrawerPortal>
- <DrawerOverlay />
- <DrawerPrimitive.Content
- ref={ref}
- className={cn(
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
- className
- )}
- {...props}
- >
- <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
- {children}
- </DrawerPrimitive.Content>
- </DrawerPortal>
-))
-DrawerContent.displayName = "DrawerContent"
-
-const DrawerHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn("grid gap-1.5 p-4 text-center sm:text-left", className)}
- {...props}
- />
-)
-DrawerHeader.displayName = "DrawerHeader"
-
-const DrawerFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn("mt-auto flex flex-col gap-2 p-4", className)}
- {...props}
- />
-)
-DrawerFooter.displayName = "DrawerFooter"
-
-const DrawerTitle = React.forwardRef<
- React.ElementRef<typeof DrawerPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
->(({ className, ...props }, ref) => (
- <DrawerPrimitive.Title
- ref={ref}
- className={cn(
- "text-lg font-semibold leading-none tracking-tight",
- className
- )}
- {...props}
- />
-))
-DrawerTitle.displayName = DrawerPrimitive.Title.displayName
-
-const DrawerDescription = React.forwardRef<
- React.ElementRef<typeof DrawerPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
->(({ className, ...props }, ref) => (
- <DrawerPrimitive.Description
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-DrawerDescription.displayName = DrawerPrimitive.Description.displayName
-
-export {
- Drawer,
- DrawerPortal,
- DrawerOverlay,
- DrawerTrigger,
- DrawerClose,
- DrawerContent,
- DrawerHeader,
- DrawerFooter,
- DrawerTitle,
- DrawerDescription,
-}
diff --git a/openmemory/ui/components/ui/dropdown-menu.tsx b/openmemory/ui/components/ui/dropdown-menu.tsx
deleted file mode 100644
index 0fc4c0e07..000000000
--- a/openmemory/ui/components/ui/dropdown-menu.tsx
+++ /dev/null
@@ -1,200 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
-import { Check, ChevronRight, Circle } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const DropdownMenu = DropdownMenuPrimitive.Root
-
-const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
-
-const DropdownMenuGroup = DropdownMenuPrimitive.Group
-
-const DropdownMenuPortal = DropdownMenuPrimitive.Portal
-
-const DropdownMenuSub = DropdownMenuPrimitive.Sub
-
-const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
-
-const DropdownMenuSubTrigger = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
- inset?: boolean
- }
->(({ className, inset, children, ...props }, ref) => (
- <DropdownMenuPrimitive.SubTrigger
- ref={ref}
- className={cn(
- "flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
- inset && "pl-8",
- className
- )}
- {...props}
- >
- {children}
- <ChevronRight className="ml-auto" />
- </DropdownMenuPrimitive.SubTrigger>
-))
-DropdownMenuSubTrigger.displayName =
- DropdownMenuPrimitive.SubTrigger.displayName
-
-const DropdownMenuSubContent = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
->(({ className, ...props }, ref) => (
- <DropdownMenuPrimitive.SubContent
- ref={ref}
- className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
-))
-DropdownMenuSubContent.displayName =
- DropdownMenuPrimitive.SubContent.displayName
-
-const DropdownMenuContent = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
->(({ className, sideOffset = 4, ...props }, ref) => (
- <DropdownMenuPrimitive.Portal>
- <DropdownMenuPrimitive.Content
- ref={ref}
- sideOffset={sideOffset}
- className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
- </DropdownMenuPrimitive.Portal>
-))
-DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
-
-const DropdownMenuItem = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <DropdownMenuPrimitive.Item
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
-
-const DropdownMenuCheckboxItem = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
->(({ className, children, checked, ...props }, ref) => (
- <DropdownMenuPrimitive.CheckboxItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- checked={checked}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <DropdownMenuPrimitive.ItemIndicator>
- <Check className="h-4 w-4" />
- </DropdownMenuPrimitive.ItemIndicator>
- </span>
- {children}
- </DropdownMenuPrimitive.CheckboxItem>
-))
-DropdownMenuCheckboxItem.displayName =
- DropdownMenuPrimitive.CheckboxItem.displayName
-
-const DropdownMenuRadioItem = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
->(({ className, children, ...props }, ref) => (
- <DropdownMenuPrimitive.RadioItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <DropdownMenuPrimitive.ItemIndicator>
- <Circle className="h-2 w-2 fill-current" />
- </DropdownMenuPrimitive.ItemIndicator>
- </span>
- {children}
- </DropdownMenuPrimitive.RadioItem>
-))
-DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
-
-const DropdownMenuLabel = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.Label>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <DropdownMenuPrimitive.Label
- ref={ref}
- className={cn(
- "px-2 py-1.5 text-sm font-semibold",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
-
-const DropdownMenuSeparator = React.forwardRef<
- React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
->(({ className, ...props }, ref) => (
- <DropdownMenuPrimitive.Separator
- ref={ref}
- className={cn("-mx-1 my-1 h-px bg-muted", className)}
- {...props}
- />
-))
-DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
-
-const DropdownMenuShortcut = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLSpanElement>) => {
- return (
- <span
- className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
- {...props}
- />
- )
-}
-DropdownMenuShortcut.displayName = "DropdownMenuShortcut"
-
-export {
- DropdownMenu,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuCheckboxItem,
- DropdownMenuRadioItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuShortcut,
- DropdownMenuGroup,
- DropdownMenuPortal,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuRadioGroup,
-}
diff --git a/openmemory/ui/components/ui/form.tsx b/openmemory/ui/components/ui/form.tsx
deleted file mode 100644
index ce264aef2..000000000
--- a/openmemory/ui/components/ui/form.tsx
+++ /dev/null
@@ -1,178 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as LabelPrimitive from "@radix-ui/react-label"
-import { Slot } from "@radix-ui/react-slot"
-import {
- Controller,
- ControllerProps,
- FieldPath,
- FieldValues,
- FormProvider,
- useFormContext,
-} from "react-hook-form"
-
-import { cn } from "@/lib/utils"
-import { Label } from "@/components/ui/label"
-
-const Form = FormProvider
-
-type FormFieldContextValue<
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
-> = {
- name: TName
-}
-
-const FormFieldContext = React.createContext<FormFieldContextValue>(
- {} as FormFieldContextValue
-)
-
-const FormField = <
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
->({
- ...props
-}: ControllerProps<TFieldValues, TName>) => {
- return (
- <FormFieldContext.Provider value={{ name: props.name }}>
- <Controller {...props} />
- </FormFieldContext.Provider>
- )
-}
-
-const useFormField = () => {
- const fieldContext = React.useContext(FormFieldContext)
- const itemContext = React.useContext(FormItemContext)
- const { getFieldState, formState } = useFormContext()
-
- const fieldState = getFieldState(fieldContext.name, formState)
-
- if (!fieldContext) {
- throw new Error("useFormField should be used within <FormField>")
- }
-
- const { id } = itemContext
-
- return {
- id,
- name: fieldContext.name,
- formItemId: `${id}-form-item`,
- formDescriptionId: `${id}-form-item-description`,
- formMessageId: `${id}-form-item-message`,
- ...fieldState,
- }
-}
-
-type FormItemContextValue = {
- id: string
-}
-
-const FormItemContext = React.createContext<FormItemContextValue>(
- {} as FormItemContextValue
-)
-
-const FormItem = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement>
->(({ className, ...props }, ref) => {
- const id = React.useId()
-
- return (
- <FormItemContext.Provider value={{ id }}>
- <div ref={ref} className={cn("space-y-2", className)} {...props} />
- </FormItemContext.Provider>
- )
-})
-FormItem.displayName = "FormItem"
-
-const FormLabel = React.forwardRef<
- React.ElementRef<typeof LabelPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
->(({ className, ...props }, ref) => {
- const { error, formItemId } = useFormField()
-
- return (
- <Label
- ref={ref}
- className={cn(error && "text-destructive", className)}
- htmlFor={formItemId}
- {...props}
- />
- )
-})
-FormLabel.displayName = "FormLabel"
-
-const FormControl = React.forwardRef<
- React.ElementRef<typeof Slot>,
- React.ComponentPropsWithoutRef<typeof Slot>
->(({ ...props }, ref) => {
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
-
- return (
- <Slot
- ref={ref}
- id={formItemId}
- aria-describedby={
- !error
- ? `${formDescriptionId}`
- : `${formDescriptionId} ${formMessageId}`
- }
- aria-invalid={!!error}
- {...props}
- />
- )
-})
-FormControl.displayName = "FormControl"
-
-const FormDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLParagraphElement>
->(({ className, ...props }, ref) => {
- const { formDescriptionId } = useFormField()
-
- return (
- <p
- ref={ref}
- id={formDescriptionId}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
- )
-})
-FormDescription.displayName = "FormDescription"
-
-const FormMessage = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLParagraphElement>
->(({ className, children, ...props }, ref) => {
- const { error, formMessageId } = useFormField()
- const body = error ? String(error?.message) : children
-
- if (!body) {
- return null
- }
-
- return (
- <p
- ref={ref}
- id={formMessageId}
- className={cn("text-sm font-medium text-destructive", className)}
- {...props}
- >
- {body}
- </p>
- )
-})
-FormMessage.displayName = "FormMessage"
-
-export {
- useFormField,
- Form,
- FormItem,
- FormLabel,
- FormControl,
- FormDescription,
- FormMessage,
- FormField,
-}
diff --git a/openmemory/ui/components/ui/hover-card.tsx b/openmemory/ui/components/ui/hover-card.tsx
deleted file mode 100644
index e54d91cf8..000000000
--- a/openmemory/ui/components/ui/hover-card.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
-
-import { cn } from "@/lib/utils"
-
-const HoverCard = HoverCardPrimitive.Root
-
-const HoverCardTrigger = HoverCardPrimitive.Trigger
-
-const HoverCardContent = React.forwardRef<
- React.ElementRef<typeof HoverCardPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
->(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
- <HoverCardPrimitive.Content
- ref={ref}
- align={align}
- sideOffset={sideOffset}
- className={cn(
- "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
-))
-HoverCardContent.displayName = HoverCardPrimitive.Content.displayName
-
-export { HoverCard, HoverCardTrigger, HoverCardContent }
diff --git a/openmemory/ui/components/ui/input-otp.tsx b/openmemory/ui/components/ui/input-otp.tsx
deleted file mode 100644
index f66fcfa0d..000000000
--- a/openmemory/ui/components/ui/input-otp.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { OTPInput, OTPInputContext } from "input-otp"
-import { Dot } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const InputOTP = React.forwardRef<
- React.ElementRef<typeof OTPInput>,
- React.ComponentPropsWithoutRef<typeof OTPInput>
->(({ className, containerClassName, ...props }, ref) => (
- <OTPInput
- ref={ref}
- containerClassName={cn(
- "flex items-center gap-2 has-[:disabled]:opacity-50",
- containerClassName
- )}
- className={cn("disabled:cursor-not-allowed", className)}
- {...props}
- />
-))
-InputOTP.displayName = "InputOTP"
-
-const InputOTPGroup = React.forwardRef<
- React.ElementRef<"div">,
- React.ComponentPropsWithoutRef<"div">
->(({ className, ...props }, ref) => (
- <div ref={ref} className={cn("flex items-center", className)} {...props} />
-))
-InputOTPGroup.displayName = "InputOTPGroup"
-
-const InputOTPSlot = React.forwardRef<
- React.ElementRef<"div">,
- React.ComponentPropsWithoutRef<"div"> & { index: number }
->(({ index, className, ...props }, ref) => {
- const inputOTPContext = React.useContext(OTPInputContext)
- const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]
-
- return (
- <div
- ref={ref}
- className={cn(
- "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
- isActive && "z-10 ring-2 ring-ring ring-offset-background",
- className
- )}
- {...props}
- >
- {char}
- {hasFakeCaret && (
- <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
- <div className="h-4 w-px animate-caret-blink bg-foreground duration-1000" />
- </div>
- )}
- </div>
- )
-})
-InputOTPSlot.displayName = "InputOTPSlot"
-
-const InputOTPSeparator = React.forwardRef<
- React.ElementRef<"div">,
- React.ComponentPropsWithoutRef<"div">
->(({ ...props }, ref) => (
- <div ref={ref} role="separator" {...props}>
- <Dot />
- </div>
-))
-InputOTPSeparator.displayName = "InputOTPSeparator"
-
-export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }
diff --git a/openmemory/ui/components/ui/input.tsx b/openmemory/ui/components/ui/input.tsx
deleted file mode 100644
index 68551b927..000000000
--- a/openmemory/ui/components/ui/input.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import * as React from "react"
-
-import { cn } from "@/lib/utils"
-
-const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
- ({ className, type, ...props }, ref) => {
- return (
- <input
- type={type}
- className={cn(
- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
- className
- )}
- ref={ref}
- {...props}
- />
- )
- }
-)
-Input.displayName = "Input"
-
-export { Input }
diff --git a/openmemory/ui/components/ui/label.tsx b/openmemory/ui/components/ui/label.tsx
deleted file mode 100644
index 534182176..000000000
--- a/openmemory/ui/components/ui/label.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as LabelPrimitive from "@radix-ui/react-label"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const labelVariants = cva(
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
-)
-
-const Label = React.forwardRef<
- React.ElementRef<typeof LabelPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
- VariantProps<typeof labelVariants>
->(({ className, ...props }, ref) => (
- <LabelPrimitive.Root
- ref={ref}
- className={cn(labelVariants(), className)}
- {...props}
- />
-))
-Label.displayName = LabelPrimitive.Root.displayName
-
-export { Label }
diff --git a/openmemory/ui/components/ui/menubar.tsx b/openmemory/ui/components/ui/menubar.tsx
deleted file mode 100644
index 5586fa9b2..000000000
--- a/openmemory/ui/components/ui/menubar.tsx
+++ /dev/null
@@ -1,236 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as MenubarPrimitive from "@radix-ui/react-menubar"
-import { Check, ChevronRight, Circle } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const MenubarMenu = MenubarPrimitive.Menu
-
-const MenubarGroup = MenubarPrimitive.Group
-
-const MenubarPortal = MenubarPrimitive.Portal
-
-const MenubarSub = MenubarPrimitive.Sub
-
-const MenubarRadioGroup = MenubarPrimitive.RadioGroup
-
-const Menubar = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>
->(({ className, ...props }, ref) => (
- <MenubarPrimitive.Root
- ref={ref}
- className={cn(
- "flex h-10 items-center space-x-1 rounded-md border bg-background p-1",
- className
- )}
- {...props}
- />
-))
-Menubar.displayName = MenubarPrimitive.Root.displayName
-
-const MenubarTrigger = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Trigger>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>
->(({ className, ...props }, ref) => (
- <MenubarPrimitive.Trigger
- ref={ref}
- className={cn(
- "flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
- className
- )}
- {...props}
- />
-))
-MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName
-
-const MenubarSubTrigger = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.SubTrigger>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {
- inset?: boolean
- }
->(({ className, inset, children, ...props }, ref) => (
- <MenubarPrimitive.SubTrigger
- ref={ref}
- className={cn(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
- inset && "pl-8",
- className
- )}
- {...props}
- >
- {children}
- <ChevronRight className="ml-auto h-4 w-4" />
- </MenubarPrimitive.SubTrigger>
-))
-MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName
-
-const MenubarSubContent = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.SubContent>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>
->(({ className, ...props }, ref) => (
- <MenubarPrimitive.SubContent
- ref={ref}
- className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
-))
-MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName
-
-const MenubarContent = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>
->(
- (
- { className, align = "start", alignOffset = -4, sideOffset = 8, ...props },
- ref
- ) => (
- <MenubarPrimitive.Portal>
- <MenubarPrimitive.Content
- ref={ref}
- align={align}
- alignOffset={alignOffset}
- sideOffset={sideOffset}
- className={cn(
- "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
- </MenubarPrimitive.Portal>
- )
-)
-MenubarContent.displayName = MenubarPrimitive.Content.displayName
-
-const MenubarItem = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <MenubarPrimitive.Item
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-MenubarItem.displayName = MenubarPrimitive.Item.displayName
-
-const MenubarCheckboxItem = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>
->(({ className, children, checked, ...props }, ref) => (
- <MenubarPrimitive.CheckboxItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- checked={checked}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <MenubarPrimitive.ItemIndicator>
- <Check className="h-4 w-4" />
- </MenubarPrimitive.ItemIndicator>
- </span>
- {children}
- </MenubarPrimitive.CheckboxItem>
-))
-MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName
-
-const MenubarRadioItem = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.RadioItem>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>
->(({ className, children, ...props }, ref) => (
- <MenubarPrimitive.RadioItem
- ref={ref}
- className={cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <MenubarPrimitive.ItemIndicator>
- <Circle className="h-2 w-2 fill-current" />
- </MenubarPrimitive.ItemIndicator>
- </span>
- {children}
- </MenubarPrimitive.RadioItem>
-))
-MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName
-
-const MenubarLabel = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Label>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {
- inset?: boolean
- }
->(({ className, inset, ...props }, ref) => (
- <MenubarPrimitive.Label
- ref={ref}
- className={cn(
- "px-2 py-1.5 text-sm font-semibold",
- inset && "pl-8",
- className
- )}
- {...props}
- />
-))
-MenubarLabel.displayName = MenubarPrimitive.Label.displayName
-
-const MenubarSeparator = React.forwardRef<
- React.ElementRef<typeof MenubarPrimitive.Separator>,
- React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>
->(({ className, ...props }, ref) => (
- <MenubarPrimitive.Separator
- ref={ref}
- className={cn("-mx-1 my-1 h-px bg-muted", className)}
- {...props}
- />
-))
-MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName
-
-const MenubarShortcut = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLSpanElement>) => {
- return (
- <span
- className={cn(
- "ml-auto text-xs tracking-widest text-muted-foreground",
- className
- )}
- {...props}
- />
- )
-}
-MenubarShortcut.displayname = "MenubarShortcut"
-
-export {
- Menubar,
- MenubarMenu,
- MenubarTrigger,
- MenubarContent,
- MenubarItem,
- MenubarSeparator,
- MenubarLabel,
- MenubarCheckboxItem,
- MenubarRadioGroup,
- MenubarRadioItem,
- MenubarPortal,
- MenubarSubContent,
- MenubarSubTrigger,
- MenubarGroup,
- MenubarSub,
- MenubarShortcut,
-}
diff --git a/openmemory/ui/components/ui/navigation-menu.tsx b/openmemory/ui/components/ui/navigation-menu.tsx
deleted file mode 100644
index 1419f5669..000000000
--- a/openmemory/ui/components/ui/navigation-menu.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-import * as React from "react"
-import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
-import { cva } from "class-variance-authority"
-import { ChevronDown } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const NavigationMenu = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
->(({ className, children, ...props }, ref) => (
- <NavigationMenuPrimitive.Root
- ref={ref}
- className={cn(
- "relative z-10 flex max-w-max flex-1 items-center justify-center",
- className
- )}
- {...props}
- >
- {children}
- <NavigationMenuViewport />
- </NavigationMenuPrimitive.Root>
-))
-NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName
-
-const NavigationMenuList = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.List>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
->(({ className, ...props }, ref) => (
- <NavigationMenuPrimitive.List
- ref={ref}
- className={cn(
- "group flex flex-1 list-none items-center justify-center space-x-1",
- className
- )}
- {...props}
- />
-))
-NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName
-
-const NavigationMenuItem = NavigationMenuPrimitive.Item
-
-const navigationMenuTriggerStyle = cva(
- "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
-)
-
-const NavigationMenuTrigger = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
->(({ className, children, ...props }, ref) => (
- <NavigationMenuPrimitive.Trigger
- ref={ref}
- className={cn(navigationMenuTriggerStyle(), "group", className)}
- {...props}
- >
- {children}{" "}
- <ChevronDown
- className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
- aria-hidden="true"
- />
- </NavigationMenuPrimitive.Trigger>
-))
-NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName
-
-const NavigationMenuContent = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
->(({ className, ...props }, ref) => (
- <NavigationMenuPrimitive.Content
- ref={ref}
- className={cn(
- "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
- className
- )}
- {...props}
- />
-))
-NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName
-
-const NavigationMenuLink = NavigationMenuPrimitive.Link
-
-const NavigationMenuViewport = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
->(({ className, ...props }, ref) => (
- <div className={cn("absolute left-0 top-full flex justify-center")}>
- <NavigationMenuPrimitive.Viewport
- className={cn(
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
- className
- )}
- ref={ref}
- {...props}
- />
- </div>
-))
-NavigationMenuViewport.displayName =
- NavigationMenuPrimitive.Viewport.displayName
-
-const NavigationMenuIndicator = React.forwardRef<
- React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,
- React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
->(({ className, ...props }, ref) => (
- <NavigationMenuPrimitive.Indicator
- ref={ref}
- className={cn(
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
- className
- )}
- {...props}
- >
- <div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
- </NavigationMenuPrimitive.Indicator>
-))
-NavigationMenuIndicator.displayName =
- NavigationMenuPrimitive.Indicator.displayName
-
-export {
- navigationMenuTriggerStyle,
- NavigationMenu,
- NavigationMenuList,
- NavigationMenuItem,
- NavigationMenuContent,
- NavigationMenuTrigger,
- NavigationMenuLink,
- NavigationMenuIndicator,
- NavigationMenuViewport,
-}
diff --git a/openmemory/ui/components/ui/pagination.tsx b/openmemory/ui/components/ui/pagination.tsx
deleted file mode 100644
index ea40d196d..000000000
--- a/openmemory/ui/components/ui/pagination.tsx
+++ /dev/null
@@ -1,117 +0,0 @@
-import * as React from "react"
-import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-import { ButtonProps, buttonVariants } from "@/components/ui/button"
-
-const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
- <nav
- role="navigation"
- aria-label="pagination"
- className={cn("mx-auto flex w-full justify-center", className)}
- {...props}
- />
-)
-Pagination.displayName = "Pagination"
-
-const PaginationContent = React.forwardRef<
- HTMLUListElement,
- React.ComponentProps<"ul">
->(({ className, ...props }, ref) => (
- <ul
- ref={ref}
- className={cn("flex flex-row items-center gap-1", className)}
- {...props}
- />
-))
-PaginationContent.displayName = "PaginationContent"
-
-const PaginationItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentProps<"li">
->(({ className, ...props }, ref) => (
- <li ref={ref} className={cn("", className)} {...props} />
-))
-PaginationItem.displayName = "PaginationItem"
-
-type PaginationLinkProps = {
- isActive?: boolean
-} & Pick<ButtonProps, "size"> &
- React.ComponentProps<"a">
-
-const PaginationLink = ({
- className,
- isActive,
- size = "icon",
- ...props
-}: PaginationLinkProps) => (
- <a
- aria-current={isActive ? "page" : undefined}
- className={cn(
- buttonVariants({
- variant: isActive ? "outline" : "ghost",
- size,
- }),
- className
- )}
- {...props}
- />
-)
-PaginationLink.displayName = "PaginationLink"
-
-const PaginationPrevious = ({
- className,
- ...props
-}: React.ComponentProps<typeof PaginationLink>) => (
- <PaginationLink
- aria-label="Go to previous page"
- size="default"
- className={cn("gap-1 pl-2.5", className)}
- {...props}
- >
- <ChevronLeft className="h-4 w-4" />
- <span>Previous</span>
- </PaginationLink>
-)
-PaginationPrevious.displayName = "PaginationPrevious"
-
-const PaginationNext = ({
- className,
- ...props
-}: React.ComponentProps<typeof PaginationLink>) => (
- <PaginationLink
- aria-label="Go to next page"
- size="default"
- className={cn("gap-1 pr-2.5", className)}
- {...props}
- >
- <span>Next</span>
- <ChevronRight className="h-4 w-4" />
- </PaginationLink>
-)
-PaginationNext.displayName = "PaginationNext"
-
-const PaginationEllipsis = ({
- className,
- ...props
-}: React.ComponentProps<"span">) => (
- <span
- aria-hidden
- className={cn("flex h-9 w-9 items-center justify-center", className)}
- {...props}
- >
- <MoreHorizontal className="h-4 w-4" />
- <span className="sr-only">More pages</span>
- </span>
-)
-PaginationEllipsis.displayName = "PaginationEllipsis"
-
-export {
- Pagination,
- PaginationContent,
- PaginationEllipsis,
- PaginationItem,
- PaginationLink,
- PaginationNext,
- PaginationPrevious,
-}
diff --git a/openmemory/ui/components/ui/popover.tsx b/openmemory/ui/components/ui/popover.tsx
deleted file mode 100644
index a0ec48bee..000000000
--- a/openmemory/ui/components/ui/popover.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as PopoverPrimitive from "@radix-ui/react-popover"
-
-import { cn } from "@/lib/utils"
-
-const Popover = PopoverPrimitive.Root
-
-const PopoverTrigger = PopoverPrimitive.Trigger
-
-const PopoverContent = React.forwardRef<
- React.ElementRef<typeof PopoverPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
->(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
- <PopoverPrimitive.Portal>
- <PopoverPrimitive.Content
- ref={ref}
- align={align}
- sideOffset={sideOffset}
- className={cn(
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- className
- )}
- {...props}
- />
- </PopoverPrimitive.Portal>
-))
-PopoverContent.displayName = PopoverPrimitive.Content.displayName
-
-export { Popover, PopoverTrigger, PopoverContent }
diff --git a/openmemory/ui/components/ui/progress.tsx b/openmemory/ui/components/ui/progress.tsx
deleted file mode 100644
index 5c87ea486..000000000
--- a/openmemory/ui/components/ui/progress.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as ProgressPrimitive from "@radix-ui/react-progress"
-
-import { cn } from "@/lib/utils"
-
-const Progress = React.forwardRef<
- React.ElementRef<typeof ProgressPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
->(({ className, value, ...props }, ref) => (
- <ProgressPrimitive.Root
- ref={ref}
- className={cn(
- "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
- className
- )}
- {...props}
- >
- <ProgressPrimitive.Indicator
- className="h-full w-full flex-1 bg-primary transition-all"
- style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
- />
- </ProgressPrimitive.Root>
-))
-Progress.displayName = ProgressPrimitive.Root.displayName
-
-export { Progress }
diff --git a/openmemory/ui/components/ui/radio-group.tsx b/openmemory/ui/components/ui/radio-group.tsx
deleted file mode 100644
index e9bde1793..000000000
--- a/openmemory/ui/components/ui/radio-group.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
-import { Circle } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const RadioGroup = React.forwardRef<
- React.ElementRef<typeof RadioGroupPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>
->(({ className, ...props }, ref) => {
- return (
- <RadioGroupPrimitive.Root
- className={cn("grid gap-2", className)}
- {...props}
- ref={ref}
- />
- )
-})
-RadioGroup.displayName = RadioGroupPrimitive.Root.displayName
-
-const RadioGroupItem = React.forwardRef<
- React.ElementRef<typeof RadioGroupPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>
->(({ className, ...props }, ref) => {
- return (
- <RadioGroupPrimitive.Item
- ref={ref}
- className={cn(
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
- className
- )}
- {...props}
- >
- <RadioGroupPrimitive.Indicator className="flex items-center justify-center">
- <Circle className="h-2.5 w-2.5 fill-current text-current" />
- </RadioGroupPrimitive.Indicator>
- </RadioGroupPrimitive.Item>
- )
-})
-RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
-
-export { RadioGroup, RadioGroupItem }
diff --git a/openmemory/ui/components/ui/resizable.tsx b/openmemory/ui/components/ui/resizable.tsx
deleted file mode 100644
index f4bc5586b..000000000
--- a/openmemory/ui/components/ui/resizable.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-"use client"
-
-import { GripVertical } from "lucide-react"
-import * as ResizablePrimitive from "react-resizable-panels"
-
-import { cn } from "@/lib/utils"
-
-const ResizablePanelGroup = ({
- className,
- ...props
-}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (
- <ResizablePrimitive.PanelGroup
- className={cn(
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
- className
- )}
- {...props}
- />
-)
-
-const ResizablePanel = ResizablePrimitive.Panel
-
-const ResizableHandle = ({
- withHandle,
- className,
- ...props
-}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
- withHandle?: boolean
-}) => (
- <ResizablePrimitive.PanelResizeHandle
- className={cn(
- "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
- className
- )}
- {...props}
- >
- {withHandle && (
- <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
- <GripVertical className="h-2.5 w-2.5" />
- </div>
- )}
- </ResizablePrimitive.PanelResizeHandle>
-)
-
-export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
diff --git a/openmemory/ui/components/ui/scroll-area.tsx b/openmemory/ui/components/ui/scroll-area.tsx
deleted file mode 100644
index 0b4a48d87..000000000
--- a/openmemory/ui/components/ui/scroll-area.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
-
-import { cn } from "@/lib/utils"
-
-const ScrollArea = React.forwardRef<
- React.ElementRef<typeof ScrollAreaPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
->(({ className, children, ...props }, ref) => (
- <ScrollAreaPrimitive.Root
- ref={ref}
- className={cn("relative overflow-hidden", className)}
- {...props}
- >
- <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
- {children}
- </ScrollAreaPrimitive.Viewport>
- <ScrollBar />
- <ScrollAreaPrimitive.Corner />
- </ScrollAreaPrimitive.Root>
-))
-ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
-
-const ScrollBar = React.forwardRef<
- React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
->(({ className, orientation = "vertical", ...props }, ref) => (
- <ScrollAreaPrimitive.ScrollAreaScrollbar
- ref={ref}
- orientation={orientation}
- className={cn(
- "flex touch-none select-none transition-colors",
- orientation === "vertical" &&
- "h-full w-2.5 border-l border-l-transparent p-[1px]",
- orientation === "horizontal" &&
- "h-2.5 flex-col border-t border-t-transparent p-[1px]",
- className
- )}
- {...props}
- >
- <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
- </ScrollAreaPrimitive.ScrollAreaScrollbar>
-))
-ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
-
-export { ScrollArea, ScrollBar }
diff --git a/openmemory/ui/components/ui/select.tsx b/openmemory/ui/components/ui/select.tsx
deleted file mode 100644
index cbe5a36b6..000000000
--- a/openmemory/ui/components/ui/select.tsx
+++ /dev/null
@@ -1,160 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as SelectPrimitive from "@radix-ui/react-select"
-import { Check, ChevronDown, ChevronUp } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Select = SelectPrimitive.Root
-
-const SelectGroup = SelectPrimitive.Group
-
-const SelectValue = SelectPrimitive.Value
-
-const SelectTrigger = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.Trigger>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
->(({ className, children, ...props }, ref) => (
- <SelectPrimitive.Trigger
- ref={ref}
- className={cn(
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
- className
- )}
- {...props}
- >
- {children}
- <SelectPrimitive.Icon asChild>
- <ChevronDown className="h-4 w-4 opacity-50" />
- </SelectPrimitive.Icon>
- </SelectPrimitive.Trigger>
-))
-SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
-
-const SelectScrollUpButton = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
->(({ className, ...props }, ref) => (
- <SelectPrimitive.ScrollUpButton
- ref={ref}
- className={cn(
- "flex cursor-default items-center justify-center py-1",
- className
- )}
- {...props}
- >
- <ChevronUp className="h-4 w-4" />
- </SelectPrimitive.ScrollUpButton>
-))
-SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
-
-const SelectScrollDownButton = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
->(({ className, ...props }, ref) => (
- <SelectPrimitive.ScrollDownButton
- ref={ref}
- className={cn(
- "flex cursor-default items-center justify-center py-1",
- className
- )}
- {...props}
- >
- <ChevronDown className="h-4 w-4" />
- </SelectPrimitive.ScrollDownButton>
-))
-SelectScrollDownButton.displayName =
- SelectPrimitive.ScrollDownButton.displayName
-
-const SelectContent = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
->(({ className, children, position = "popper", ...props }, ref) => (
- <SelectPrimitive.Portal>
- <SelectPrimitive.Content
- ref={ref}
- className={cn(
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",
- 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}
- {...props}
- >
- <SelectScrollUpButton />
- <SelectPrimitive.Viewport
- className={cn(
- "p-1",
- position === "popper" &&
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
- )}
- >
- {children}
- </SelectPrimitive.Viewport>
- <SelectScrollDownButton />
- </SelectPrimitive.Content>
- </SelectPrimitive.Portal>
-))
-SelectContent.displayName = SelectPrimitive.Content.displayName
-
-const SelectLabel = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.Label>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
->(({ className, ...props }, ref) => (
- <SelectPrimitive.Label
- ref={ref}
- className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}
- {...props}
- />
-))
-SelectLabel.displayName = SelectPrimitive.Label.displayName
-
-const SelectItem = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
->(({ className, children, ...props }, ref) => (
- <SelectPrimitive.Item
- ref={ref}
- className={cn(
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
- className
- )}
- {...props}
- >
- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
- <SelectPrimitive.ItemIndicator>
- <Check className="h-4 w-4" />
- </SelectPrimitive.ItemIndicator>
- </span>
-
- <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
- </SelectPrimitive.Item>
-))
-SelectItem.displayName = SelectPrimitive.Item.displayName
-
-const SelectSeparator = React.forwardRef<
- React.ElementRef<typeof SelectPrimitive.Separator>,
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
->(({ className, ...props }, ref) => (
- <SelectPrimitive.Separator
- ref={ref}
- className={cn("-mx-1 my-1 h-px bg-muted", className)}
- {...props}
- />
-))
-SelectSeparator.displayName = SelectPrimitive.Separator.displayName
-
-export {
- Select,
- SelectGroup,
- SelectValue,
- SelectTrigger,
- SelectContent,
- SelectLabel,
- SelectItem,
- SelectSeparator,
- SelectScrollUpButton,
- SelectScrollDownButton,
-}
diff --git a/openmemory/ui/components/ui/separator.tsx b/openmemory/ui/components/ui/separator.tsx
deleted file mode 100644
index 12d81c4a8..000000000
--- a/openmemory/ui/components/ui/separator.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as SeparatorPrimitive from "@radix-ui/react-separator"
-
-import { cn } from "@/lib/utils"
-
-const Separator = React.forwardRef<
- React.ElementRef<typeof SeparatorPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
->(
- (
- { className, orientation = "horizontal", decorative = true, ...props },
- ref
- ) => (
- <SeparatorPrimitive.Root
- ref={ref}
- decorative={decorative}
- orientation={orientation}
- className={cn(
- "shrink-0 bg-border",
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
- className
- )}
- {...props}
- />
- )
-)
-Separator.displayName = SeparatorPrimitive.Root.displayName
-
-export { Separator }
diff --git a/openmemory/ui/components/ui/sheet.tsx b/openmemory/ui/components/ui/sheet.tsx
deleted file mode 100644
index a37f17ba0..000000000
--- a/openmemory/ui/components/ui/sheet.tsx
+++ /dev/null
@@ -1,140 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as SheetPrimitive from "@radix-ui/react-dialog"
-import { cva, type VariantProps } from "class-variance-authority"
-import { X } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const Sheet = SheetPrimitive.Root
-
-const SheetTrigger = SheetPrimitive.Trigger
-
-const SheetClose = SheetPrimitive.Close
-
-const SheetPortal = SheetPrimitive.Portal
-
-const SheetOverlay = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Overlay
- className={cn(
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- className
- )}
- {...props}
- ref={ref}
- />
-))
-SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
-
-const sheetVariants = cva(
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
- {
- variants: {
- side: {
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
- bottom:
- "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
- right:
- "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
- },
- },
- defaultVariants: {
- side: "right",
- },
- }
-)
-
-interface SheetContentProps
- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
- VariantProps<typeof sheetVariants> {}
-
-const SheetContent = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Content>,
- SheetContentProps
->(({ side = "right", className, children, ...props }, ref) => (
- <SheetPortal>
- <SheetOverlay />
- <SheetPrimitive.Content
- ref={ref}
- className={cn(sheetVariants({ side }), className)}
- {...props}
- >
- {children}
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
- <X className="h-4 w-4" />
- <span className="sr-only">Close</span>
- </SheetPrimitive.Close>
- </SheetPrimitive.Content>
- </SheetPortal>
-))
-SheetContent.displayName = SheetPrimitive.Content.displayName
-
-const SheetHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-2 text-center sm:text-left",
- className
- )}
- {...props}
- />
-)
-SheetHeader.displayName = "SheetHeader"
-
-const SheetFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className
- )}
- {...props}
- />
-)
-SheetFooter.displayName = "SheetFooter"
-
-const SheetTitle = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Title
- ref={ref}
- className={cn("text-lg font-semibold text-foreground", className)}
- {...props}
- />
-))
-SheetTitle.displayName = SheetPrimitive.Title.displayName
-
-const SheetDescription = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Description
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-SheetDescription.displayName = SheetPrimitive.Description.displayName
-
-export {
- Sheet,
- SheetPortal,
- SheetOverlay,
- SheetTrigger,
- SheetClose,
- SheetContent,
- SheetHeader,
- SheetFooter,
- SheetTitle,
- SheetDescription,
-}
diff --git a/openmemory/ui/components/ui/sidebar.tsx b/openmemory/ui/components/ui/sidebar.tsx
deleted file mode 100644
index eeb2d7aeb..000000000
--- a/openmemory/ui/components/ui/sidebar.tsx
+++ /dev/null
@@ -1,763 +0,0 @@
-"use client"
-
-import * as React from "react"
-import { Slot } from "@radix-ui/react-slot"
-import { VariantProps, cva } from "class-variance-authority"
-import { PanelLeft } from "lucide-react"
-
-import { useIsMobile } from "@/hooks/use-mobile"
-import { cn } from "@/lib/utils"
-import { Button } from "@/components/ui/button"
-import { Input } from "@/components/ui/input"
-import { Separator } from "@/components/ui/separator"
-import { Sheet, SheetContent } from "@/components/ui/sheet"
-import { Skeleton } from "@/components/ui/skeleton"
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip"
-
-const SIDEBAR_COOKIE_NAME = "sidebar:state"
-const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
-const SIDEBAR_WIDTH = "16rem"
-const SIDEBAR_WIDTH_MOBILE = "18rem"
-const SIDEBAR_WIDTH_ICON = "3rem"
-const SIDEBAR_KEYBOARD_SHORTCUT = "b"
-
-type SidebarContext = {
- state: "expanded" | "collapsed"
- open: boolean
- setOpen: (open: boolean) => void
- openMobile: boolean
- setOpenMobile: (open: boolean) => void
- isMobile: boolean
- toggleSidebar: () => void
-}
-
-const SidebarContext = React.createContext<SidebarContext | null>(null)
-
-function useSidebar() {
- const context = React.useContext(SidebarContext)
- if (!context) {
- throw new Error("useSidebar must be used within a SidebarProvider.")
- }
-
- return context
-}
-
-const SidebarProvider = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- defaultOpen?: boolean
- open?: boolean
- onOpenChange?: (open: boolean) => void
- }
->(
- (
- {
- defaultOpen = true,
- open: openProp,
- onOpenChange: setOpenProp,
- className,
- style,
- children,
- ...props
- },
- ref
- ) => {
- const isMobile = useIsMobile()
- const [openMobile, setOpenMobile] = React.useState(false)
-
- // This is the internal state of the sidebar.
- // We use openProp and setOpenProp for control from outside the component.
- const [_open, _setOpen] = React.useState(defaultOpen)
- const open = openProp ?? _open
- const setOpen = React.useCallback(
- (value: boolean | ((value: boolean) => boolean)) => {
- const openState = typeof value === "function" ? value(open) : value
- if (setOpenProp) {
- setOpenProp(openState)
- } else {
- _setOpen(openState)
- }
-
- // This sets the cookie to keep the sidebar state.
- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
- },
- [setOpenProp, open]
- )
-
- // Helper to toggle the sidebar.
- const toggleSidebar = React.useCallback(() => {
- return isMobile
- ? setOpenMobile((open) => !open)
- : setOpen((open) => !open)
- }, [isMobile, setOpen, setOpenMobile])
-
- // Adds a keyboard shortcut to toggle the sidebar.
- React.useEffect(() => {
- const handleKeyDown = (event: KeyboardEvent) => {
- if (
- event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
- (event.metaKey || event.ctrlKey)
- ) {
- event.preventDefault()
- toggleSidebar()
- }
- }
-
- window.addEventListener("keydown", handleKeyDown)
- return () => window.removeEventListener("keydown", handleKeyDown)
- }, [toggleSidebar])
-
- // We add a state so that we can do data-state="expanded" or "collapsed".
- // This makes it easier to style the sidebar with Tailwind classes.
- const state = open ? "expanded" : "collapsed"
-
- const contextValue = React.useMemo<SidebarContext>(
- () => ({
- state,
- open,
- setOpen,
- isMobile,
- openMobile,
- setOpenMobile,
- toggleSidebar,
- }),
- [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
- )
-
- return (
- <SidebarContext.Provider value={contextValue}>
- <TooltipProvider delayDuration={0}>
- <div
- style={
- {
- "--sidebar-width": SIDEBAR_WIDTH,
- "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
- ...style,
- } as React.CSSProperties
- }
- className={cn(
- "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",
- className
- )}
- ref={ref}
- {...props}
- >
- {children}
- </div>
- </TooltipProvider>
- </SidebarContext.Provider>
- )
- }
-)
-SidebarProvider.displayName = "SidebarProvider"
-
-const Sidebar = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- side?: "left" | "right"
- variant?: "sidebar" | "floating" | "inset"
- collapsible?: "offcanvas" | "icon" | "none"
- }
->(
- (
- {
- side = "left",
- variant = "sidebar",
- collapsible = "offcanvas",
- className,
- children,
- ...props
- },
- ref
- ) => {
- const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
-
- if (collapsible === "none") {
- return (
- <div
- className={cn(
- "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
- className
- )}
- ref={ref}
- {...props}
- >
- {children}
- </div>
- )
- }
-
- if (isMobile) {
- return (
- <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>
- <SheetContent
- data-sidebar="sidebar"
- data-mobile="true"
- className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
- style={
- {
- "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
- } as React.CSSProperties
- }
- side={side}
- >
- <div className="flex h-full w-full flex-col">{children}</div>
- </SheetContent>
- </Sheet>
- )
- }
-
- return (
- <div
- ref={ref}
- className="group peer hidden md:block text-sidebar-foreground"
- data-state={state}
- data-collapsible={state === "collapsed" ? collapsible : ""}
- data-variant={variant}
- data-side={side}
- >
- {/* This is what handles the sidebar gap on desktop */}
- <div
- className={cn(
- "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
- "group-data-[collapsible=offcanvas]:w-0",
- "group-data-[side=right]:rotate-180",
- variant === "floating" || variant === "inset"
- ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
- : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
- )}
- />
- <div
- className={cn(
- "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
- side === "left"
- ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
- : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
- // Adjust the padding for floating and inset variants.
- variant === "floating" || variant === "inset"
- ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
- : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
- className
- )}
- {...props}
- >
- <div
- data-sidebar="sidebar"
- className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"
- >
- {children}
- </div>
- </div>
- </div>
- )
- }
-)
-Sidebar.displayName = "Sidebar"
-
-const SidebarTrigger = React.forwardRef<
- React.ElementRef<typeof Button>,
- React.ComponentProps<typeof Button>
->(({ className, onClick, ...props }, ref) => {
- const { toggleSidebar } = useSidebar()
-
- return (
- <Button
- ref={ref}
- data-sidebar="trigger"
- variant="ghost"
- size="icon"
- className={cn("h-7 w-7", className)}
- onClick={(event) => {
- onClick?.(event)
- toggleSidebar()
- }}
- {...props}
- >
- <PanelLeft />
- <span className="sr-only">Toggle Sidebar</span>
- </Button>
- )
-})
-SidebarTrigger.displayName = "SidebarTrigger"
-
-const SidebarRail = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button">
->(({ className, ...props }, ref) => {
- const { toggleSidebar } = useSidebar()
-
- return (
- <button
- ref={ref}
- data-sidebar="rail"
- aria-label="Toggle Sidebar"
- tabIndex={-1}
- onClick={toggleSidebar}
- title="Toggle Sidebar"
- className={cn(
- "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
- "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
- "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
- "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
- "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
- "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
- className
- )}
- {...props}
- />
- )
-})
-SidebarRail.displayName = "SidebarRail"
-
-const SidebarInset = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"main">
->(({ className, ...props }, ref) => {
- return (
- <main
- ref={ref}
- className={cn(
- "relative flex min-h-svh flex-1 flex-col bg-background",
- "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
- className
- )}
- {...props}
- />
- )
-})
-SidebarInset.displayName = "SidebarInset"
-
-const SidebarInput = React.forwardRef<
- React.ElementRef<typeof Input>,
- React.ComponentProps<typeof Input>
->(({ className, ...props }, ref) => {
- return (
- <Input
- ref={ref}
- data-sidebar="input"
- className={cn(
- "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
- className
- )}
- {...props}
- />
- )
-})
-SidebarInput.displayName = "SidebarInput"
-
-const SidebarHeader = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="header"
- className={cn("flex flex-col gap-2 p-2", className)}
- {...props}
- />
- )
-})
-SidebarHeader.displayName = "SidebarHeader"
-
-const SidebarFooter = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="footer"
- className={cn("flex flex-col gap-2 p-2", className)}
- {...props}
- />
- )
-})
-SidebarFooter.displayName = "SidebarFooter"
-
-const SidebarSeparator = React.forwardRef<
- React.ElementRef<typeof Separator>,
- React.ComponentProps<typeof Separator>
->(({ className, ...props }, ref) => {
- return (
- <Separator
- ref={ref}
- data-sidebar="separator"
- className={cn("mx-2 w-auto bg-sidebar-border", className)}
- {...props}
- />
- )
-})
-SidebarSeparator.displayName = "SidebarSeparator"
-
-const SidebarContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="content"
- className={cn(
- "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
- className
- )}
- {...props}
- />
- )
-})
-SidebarContent.displayName = "SidebarContent"
-
-const SidebarGroup = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="group"
- className={cn("relative flex w-full min-w-0 flex-col p-2", className)}
- {...props}
- />
- )
-})
-SidebarGroup.displayName = "SidebarGroup"
-
-const SidebarGroupLabel = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & { asChild?: boolean }
->(({ className, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "div"
-
- return (
- <Comp
- ref={ref}
- data-sidebar="group-label"
- className={cn(
- "duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
- "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
- className
- )}
- {...props}
- />
- )
-})
-SidebarGroupLabel.displayName = "SidebarGroupLabel"
-
-const SidebarGroupAction = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & { asChild?: boolean }
->(({ className, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button"
-
- return (
- <Comp
- ref={ref}
- data-sidebar="group-action"
- className={cn(
- "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
- // Increases the hit area of the button on mobile.
- "after:absolute after:-inset-2 after:md:hidden",
- "group-data-[collapsible=icon]:hidden",
- className
- )}
- {...props}
- />
- )
-})
-SidebarGroupAction.displayName = "SidebarGroupAction"
-
-const SidebarGroupContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- data-sidebar="group-content"
- className={cn("w-full text-sm", className)}
- {...props}
- />
-))
-SidebarGroupContent.displayName = "SidebarGroupContent"
-
-const SidebarMenu = React.forwardRef<
- HTMLUListElement,
- React.ComponentProps<"ul">
->(({ className, ...props }, ref) => (
- <ul
- ref={ref}
- data-sidebar="menu"
- className={cn("flex w-full min-w-0 flex-col gap-1", className)}
- {...props}
- />
-))
-SidebarMenu.displayName = "SidebarMenu"
-
-const SidebarMenuItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentProps<"li">
->(({ className, ...props }, ref) => (
- <li
- ref={ref}
- data-sidebar="menu-item"
- className={cn("group/menu-item relative", className)}
- {...props}
- />
-))
-SidebarMenuItem.displayName = "SidebarMenuItem"
-
-const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
- {
- variants: {
- variant: {
- default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
- outline:
- "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
- },
- size: {
- default: "h-8 text-sm",
- sm: "h-7 text-xs",
- lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- }
-)
-
-const SidebarMenuButton = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & {
- asChild?: boolean
- isActive?: boolean
- tooltip?: string | React.ComponentProps<typeof TooltipContent>
- } & VariantProps<typeof sidebarMenuButtonVariants>
->(
- (
- {
- asChild = false,
- isActive = false,
- variant = "default",
- size = "default",
- tooltip,
- className,
- ...props
- },
- ref
- ) => {
- const Comp = asChild ? Slot : "button"
- const { isMobile, state } = useSidebar()
-
- const button = (
- <Comp
- ref={ref}
- data-sidebar="menu-button"
- data-size={size}
- data-active={isActive}
- className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
- {...props}
- />
- )
-
- if (!tooltip) {
- return button
- }
-
- if (typeof tooltip === "string") {
- tooltip = {
- children: tooltip,
- }
- }
-
- return (
- <Tooltip>
- <TooltipTrigger asChild>{button}</TooltipTrigger>
- <TooltipContent
- side="right"
- align="center"
- hidden={state !== "collapsed" || isMobile}
- {...tooltip}
- />
- </Tooltip>
- )
- }
-)
-SidebarMenuButton.displayName = "SidebarMenuButton"
-
-const SidebarMenuAction = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & {
- asChild?: boolean
- showOnHover?: boolean
- }
->(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button"
-
- return (
- <Comp
- ref={ref}
- data-sidebar="menu-action"
- className={cn(
- "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
- // Increases the hit area of the button on mobile.
- "after:absolute after:-inset-2 after:md:hidden",
- "peer-data-[size=sm]/menu-button:top-1",
- "peer-data-[size=default]/menu-button:top-1.5",
- "peer-data-[size=lg]/menu-button:top-2.5",
- "group-data-[collapsible=icon]:hidden",
- showOnHover &&
- "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
- className
- )}
- {...props}
- />
- )
-})
-SidebarMenuAction.displayName = "SidebarMenuAction"
-
-const SidebarMenuBadge = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- data-sidebar="menu-badge"
- className={cn(
- "absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none",
- "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
- "peer-data-[size=sm]/menu-button:top-1",
- "peer-data-[size=default]/menu-button:top-1.5",
- "peer-data-[size=lg]/menu-button:top-2.5",
- "group-data-[collapsible=icon]:hidden",
- className
- )}
- {...props}
- />
-))
-SidebarMenuBadge.displayName = "SidebarMenuBadge"
-
-const SidebarMenuSkeleton = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- showIcon?: boolean
- }
->(({ className, showIcon = false, ...props }, ref) => {
- // Random width between 50 to 90%.
- const width = React.useMemo(() => {
- return `${Math.floor(Math.random() * 40) + 50}%`
- }, [])
-
- return (
- <div
- ref={ref}
- data-sidebar="menu-skeleton"
- className={cn("rounded-md h-8 flex gap-2 px-2 items-center", className)}
- {...props}
- >
- {showIcon && (
- <Skeleton
- className="size-4 rounded-md"
- data-sidebar="menu-skeleton-icon"
- />
- )}
- <Skeleton
- className="h-4 flex-1 max-w-[--skeleton-width]"
- data-sidebar="menu-skeleton-text"
- style={
- {
- "--skeleton-width": width,
- } as React.CSSProperties
- }
- />
- </div>
- )
-})
-SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton"
-
-const SidebarMenuSub = React.forwardRef<
- HTMLUListElement,
- React.ComponentProps<"ul">
->(({ className, ...props }, ref) => (
- <ul
- ref={ref}
- data-sidebar="menu-sub"
- className={cn(
- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
- "group-data-[collapsible=icon]:hidden",
- className
- )}
- {...props}
- />
-))
-SidebarMenuSub.displayName = "SidebarMenuSub"
-
-const SidebarMenuSubItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentProps<"li">
->(({ ...props }, ref) => <li ref={ref} {...props} />)
-SidebarMenuSubItem.displayName = "SidebarMenuSubItem"
-
-const SidebarMenuSubButton = React.forwardRef<
- HTMLAnchorElement,
- React.ComponentProps<"a"> & {
- asChild?: boolean
- size?: "sm" | "md"
- isActive?: boolean
- }
->(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
- const Comp = asChild ? Slot : "a"
-
- return (
- <Comp
- ref={ref}
- data-sidebar="menu-sub-button"
- data-size={size}
- data-active={isActive}
- className={cn(
- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
- "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
- size === "sm" && "text-xs",
- size === "md" && "text-sm",
- "group-data-[collapsible=icon]:hidden",
- className
- )}
- {...props}
- />
- )
-})
-SidebarMenuSubButton.displayName = "SidebarMenuSubButton"
-
-export {
- Sidebar,
- SidebarContent,
- SidebarFooter,
- SidebarGroup,
- SidebarGroupAction,
- SidebarGroupContent,
- SidebarGroupLabel,
- SidebarHeader,
- SidebarInput,
- SidebarInset,
- SidebarMenu,
- SidebarMenuAction,
- SidebarMenuBadge,
- SidebarMenuButton,
- SidebarMenuItem,
- SidebarMenuSkeleton,
- SidebarMenuSub,
- SidebarMenuSubButton,
- SidebarMenuSubItem,
- SidebarProvider,
- SidebarRail,
- SidebarSeparator,
- SidebarTrigger,
- useSidebar,
-}
diff --git a/openmemory/ui/components/ui/skeleton.tsx b/openmemory/ui/components/ui/skeleton.tsx
deleted file mode 100644
index 01b8b6d4f..000000000
--- a/openmemory/ui/components/ui/skeleton.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { cn } from "@/lib/utils"
-
-function Skeleton({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) {
- return (
- <div
- className={cn("animate-pulse rounded-md bg-muted", className)}
- {...props}
- />
- )
-}
-
-export { Skeleton }
diff --git a/openmemory/ui/components/ui/slider.tsx b/openmemory/ui/components/ui/slider.tsx
deleted file mode 100644
index c31c2b3bc..000000000
--- a/openmemory/ui/components/ui/slider.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as SliderPrimitive from "@radix-ui/react-slider"
-
-import { cn } from "@/lib/utils"
-
-const Slider = React.forwardRef<
- React.ElementRef<typeof SliderPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
->(({ className, ...props }, ref) => (
- <SliderPrimitive.Root
- ref={ref}
- className={cn(
- "relative flex w-full touch-none select-none items-center",
- className
- )}
- {...props}
- >
- <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
- <SliderPrimitive.Range className="absolute h-full bg-primary" />
- </SliderPrimitive.Track>
- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
- </SliderPrimitive.Root>
-))
-Slider.displayName = SliderPrimitive.Root.displayName
-
-export { Slider }
diff --git a/openmemory/ui/components/ui/sonner.tsx b/openmemory/ui/components/ui/sonner.tsx
deleted file mode 100644
index 452f4d9f0..000000000
--- a/openmemory/ui/components/ui/sonner.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client"
-
-import { useTheme } from "next-themes"
-import { Toaster as Sonner } from "sonner"
-
-type ToasterProps = React.ComponentProps<typeof Sonner>
-
-const Toaster = ({ ...props }: ToasterProps) => {
- const { theme = "system" } = useTheme()
-
- return (
- <Sonner
- theme={theme as ToasterProps["theme"]}
- className="toaster group"
- toastOptions={{
- classNames: {
- toast:
- "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
- description: "group-[.toast]:text-muted-foreground",
- actionButton:
- "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
- cancelButton:
- "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
- },
- }}
- {...props}
- />
- )
-}
-
-export { Toaster }
diff --git a/openmemory/ui/components/ui/switch.tsx b/openmemory/ui/components/ui/switch.tsx
deleted file mode 100644
index bc69cf2db..000000000
--- a/openmemory/ui/components/ui/switch.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as SwitchPrimitives from "@radix-ui/react-switch"
-
-import { cn } from "@/lib/utils"
-
-const Switch = React.forwardRef<
- React.ElementRef<typeof SwitchPrimitives.Root>,
- React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
->(({ className, ...props }, ref) => (
- <SwitchPrimitives.Root
- className={cn(
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
- className
- )}
- {...props}
- ref={ref}
- >
- <SwitchPrimitives.Thumb
- className={cn(
- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
- )}
- />
- </SwitchPrimitives.Root>
-))
-Switch.displayName = SwitchPrimitives.Root.displayName
-
-export { Switch }
diff --git a/openmemory/ui/components/ui/table.tsx b/openmemory/ui/components/ui/table.tsx
deleted file mode 100644
index 7f3502f8b..000000000
--- a/openmemory/ui/components/ui/table.tsx
+++ /dev/null
@@ -1,117 +0,0 @@
-import * as React from "react"
-
-import { cn } from "@/lib/utils"
-
-const Table = React.forwardRef<
- HTMLTableElement,
- React.HTMLAttributes<HTMLTableElement>
->(({ className, ...props }, ref) => (
- <div className="relative w-full overflow-auto">
- <table
- ref={ref}
- className={cn("w-full caption-bottom text-sm", className)}
- {...props}
- />
- </div>
-))
-Table.displayName = "Table"
-
-const TableHeader = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes<HTMLTableSectionElement>
->(({ className, ...props }, ref) => (
- <thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />
-))
-TableHeader.displayName = "TableHeader"
-
-const TableBody = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes<HTMLTableSectionElement>
->(({ className, ...props }, ref) => (
- <tbody
- ref={ref}
- className={cn("[&_tr:last-child]:border-0", className)}
- {...props}
- />
-))
-TableBody.displayName = "TableBody"
-
-const TableFooter = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes<HTMLTableSectionElement>
->(({ className, ...props }, ref) => (
- <tfoot
- ref={ref}
- className={cn(
- "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
- className
- )}
- {...props}
- />
-))
-TableFooter.displayName = "TableFooter"
-
-const TableRow = React.forwardRef<
- HTMLTableRowElement,
- React.HTMLAttributes<HTMLTableRowElement>
->(({ className, ...props }, ref) => (
- <tr
- ref={ref}
- className={cn(
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
- className
- )}
- {...props}
- />
-))
-TableRow.displayName = "TableRow"
-
-const TableHead = React.forwardRef<
- HTMLTableCellElement,
- React.ThHTMLAttributes<HTMLTableCellElement>
->(({ className, ...props }, ref) => (
- <th
- ref={ref}
- className={cn(
- "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
- className
- )}
- {...props}
- />
-))
-TableHead.displayName = "TableHead"
-
-const TableCell = React.forwardRef<
- HTMLTableCellElement,
- React.TdHTMLAttributes<HTMLTableCellElement>
->(({ className, ...props }, ref) => (
- <td
- ref={ref}
- className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)}
- {...props}
- />
-))
-TableCell.displayName = "TableCell"
-
-const TableCaption = React.forwardRef<
- HTMLTableCaptionElement,
- React.HTMLAttributes<HTMLTableCaptionElement>
->(({ className, ...props }, ref) => (
- <caption
- ref={ref}
- className={cn("mt-4 text-sm text-muted-foreground", className)}
- {...props}
- />
-))
-TableCaption.displayName = "TableCaption"
-
-export {
- Table,
- TableHeader,
- TableBody,
- TableFooter,
- TableHead,
- TableRow,
- TableCell,
- TableCaption,
-}
diff --git a/openmemory/ui/components/ui/tabs.tsx b/openmemory/ui/components/ui/tabs.tsx
deleted file mode 100644
index 26eb10912..000000000
--- a/openmemory/ui/components/ui/tabs.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as TabsPrimitive from "@radix-ui/react-tabs"
-
-import { cn } from "@/lib/utils"
-
-const Tabs = TabsPrimitive.Root
-
-const TabsList = React.forwardRef<
- React.ElementRef<typeof TabsPrimitive.List>,
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
->(({ className, ...props }, ref) => (
- <TabsPrimitive.List
- ref={ref}
- className={cn(
- "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
- className
- )}
- {...props}
- />
-))
-TabsList.displayName = TabsPrimitive.List.displayName
-
-const TabsTrigger = React.forwardRef<
- React.ElementRef<typeof TabsPrimitive.Trigger>,
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
->(({ className, ...props }, ref) => (
- <TabsPrimitive.Trigger
- ref={ref}
- className={cn(
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
- className
- )}
- {...props}
- />
-))
-TabsTrigger.displayName = TabsPrimitive.Trigger.displayName
-
-const TabsContent = React.forwardRef<
- React.ElementRef<typeof TabsPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
->(({ className, ...props }, ref) => (
- <TabsPrimitive.Content
- ref={ref}
- className={cn(
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
- className
- )}
- {...props}
- />
-))
-TabsContent.displayName = TabsPrimitive.Content.displayName
-
-export { Tabs, TabsList, TabsTrigger, TabsContent }
diff --git a/openmemory/ui/components/ui/textarea.tsx b/openmemory/ui/components/ui/textarea.tsx
deleted file mode 100644
index 4d858bb6b..000000000
--- a/openmemory/ui/components/ui/textarea.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import * as React from "react"
-
-import { cn } from "@/lib/utils"
-
-const Textarea = React.forwardRef<
- HTMLTextAreaElement,
- React.ComponentProps<"textarea">
->(({ className, ...props }, ref) => {
- return (
- <textarea
- className={cn(
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
- className
- )}
- ref={ref}
- {...props}
- />
- )
-})
-Textarea.displayName = "Textarea"
-
-export { Textarea }
diff --git a/openmemory/ui/components/ui/toast.tsx b/openmemory/ui/components/ui/toast.tsx
deleted file mode 100644
index 521b94b07..000000000
--- a/openmemory/ui/components/ui/toast.tsx
+++ /dev/null
@@ -1,129 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as ToastPrimitives from "@radix-ui/react-toast"
-import { cva, type VariantProps } from "class-variance-authority"
-import { X } from "lucide-react"
-
-import { cn } from "@/lib/utils"
-
-const ToastProvider = ToastPrimitives.Provider
-
-const ToastViewport = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Viewport>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
->(({ className, ...props }, ref) => (
- <ToastPrimitives.Viewport
- ref={ref}
- className={cn(
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
- className
- )}
- {...props}
- />
-))
-ToastViewport.displayName = ToastPrimitives.Viewport.displayName
-
-const toastVariants = cva(
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
- {
- variants: {
- variant: {
- default: "border bg-background text-foreground",
- destructive:
- "destructive group border-destructive bg-destructive text-destructive-foreground",
- },
- },
- defaultVariants: {
- variant: "default",
- },
- }
-)
-
-const Toast = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Root>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
- VariantProps<typeof toastVariants>
->(({ className, variant, ...props }, ref) => {
- return (
- <ToastPrimitives.Root
- ref={ref}
- className={cn(toastVariants({ variant }), className)}
- {...props}
- />
- )
-})
-Toast.displayName = ToastPrimitives.Root.displayName
-
-const ToastAction = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Action>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
->(({ className, ...props }, ref) => (
- <ToastPrimitives.Action
- ref={ref}
- className={cn(
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
- className
- )}
- {...props}
- />
-))
-ToastAction.displayName = ToastPrimitives.Action.displayName
-
-const ToastClose = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Close>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
->(({ className, ...props }, ref) => (
- <ToastPrimitives.Close
- ref={ref}
- className={cn(
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
- className
- )}
- toast-close=""
- {...props}
- >
- <X className="h-4 w-4" />
- </ToastPrimitives.Close>
-))
-ToastClose.displayName = ToastPrimitives.Close.displayName
-
-const ToastTitle = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Title>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
->(({ className, ...props }, ref) => (
- <ToastPrimitives.Title
- ref={ref}
- className={cn("text-sm font-semibold", className)}
- {...props}
- />
-))
-ToastTitle.displayName = ToastPrimitives.Title.displayName
-
-const ToastDescription = React.forwardRef<
- React.ElementRef<typeof ToastPrimitives.Description>,
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
->(({ className, ...props }, ref) => (
- <ToastPrimitives.Description
- ref={ref}
- className={cn("text-sm opacity-90", className)}
- {...props}
- />
-))
-ToastDescription.displayName = ToastPrimitives.Description.displayName
-
-type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>
-
-type ToastActionElement = React.ReactElement<typeof ToastAction>
-
-export {
- type ToastProps,
- type ToastActionElement,
- ToastProvider,
- ToastViewport,
- Toast,
- ToastTitle,
- ToastDescription,
- ToastClose,
- ToastAction,
-}
diff --git a/openmemory/ui/components/ui/toaster.tsx b/openmemory/ui/components/ui/toaster.tsx
deleted file mode 100644
index 171beb46d..000000000
--- a/openmemory/ui/components/ui/toaster.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-"use client"
-
-import { useToast } from "@/hooks/use-toast"
-import {
- Toast,
- ToastClose,
- ToastDescription,
- ToastProvider,
- ToastTitle,
- ToastViewport,
-} from "@/components/ui/toast"
-
-export function Toaster() {
- const { toasts } = useToast()
-
- return (
- <ToastProvider>
- {toasts.map(function ({ id, title, description, action, ...props }) {
- return (
- <Toast key={id} {...props}>
- <div className="grid gap-1">
- {title && <ToastTitle>{title}</ToastTitle>}
- {description && (
- <ToastDescription>{description}</ToastDescription>
- )}
- </div>
- {action}
- <ToastClose />
- </Toast>
- )
- })}
- <ToastViewport />
- </ToastProvider>
- )
-}
diff --git a/openmemory/ui/components/ui/toggle-group.tsx b/openmemory/ui/components/ui/toggle-group.tsx
deleted file mode 100644
index 1c876bbee..000000000
--- a/openmemory/ui/components/ui/toggle-group.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
-import { type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-import { toggleVariants } from "@/components/ui/toggle"
-
-const ToggleGroupContext = React.createContext<
- VariantProps<typeof toggleVariants>
->({
- size: "default",
- variant: "default",
-})
-
-const ToggleGroup = React.forwardRef<
- React.ElementRef<typeof ToggleGroupPrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &
- VariantProps<typeof toggleVariants>
->(({ className, variant, size, children, ...props }, ref) => (
- <ToggleGroupPrimitive.Root
- ref={ref}
- className={cn("flex items-center justify-center gap-1", className)}
- {...props}
- >
- <ToggleGroupContext.Provider value={{ variant, size }}>
- {children}
- </ToggleGroupContext.Provider>
- </ToggleGroupPrimitive.Root>
-))
-
-ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName
-
-const ToggleGroupItem = React.forwardRef<
- React.ElementRef<typeof ToggleGroupPrimitive.Item>,
- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &
- VariantProps<typeof toggleVariants>
->(({ className, children, variant, size, ...props }, ref) => {
- const context = React.useContext(ToggleGroupContext)
-
- return (
- <ToggleGroupPrimitive.Item
- ref={ref}
- className={cn(
- toggleVariants({
- variant: context.variant || variant,
- size: context.size || size,
- }),
- className
- )}
- {...props}
- >
- {children}
- </ToggleGroupPrimitive.Item>
- )
-})
-
-ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName
-
-export { ToggleGroup, ToggleGroupItem }
diff --git a/openmemory/ui/components/ui/toggle.tsx b/openmemory/ui/components/ui/toggle.tsx
deleted file mode 100644
index c19bea373..000000000
--- a/openmemory/ui/components/ui/toggle.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as TogglePrimitive from "@radix-ui/react-toggle"
-import { cva, type VariantProps } from "class-variance-authority"
-
-import { cn } from "@/lib/utils"
-
-const toggleVariants = cva(
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
- {
- variants: {
- variant: {
- default: "bg-transparent",
- outline:
- "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
- },
- size: {
- default: "h-10 px-3 min-w-10",
- sm: "h-9 px-2.5 min-w-9",
- lg: "h-11 px-5 min-w-11",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- }
-)
-
-const Toggle = React.forwardRef<
- React.ElementRef<typeof TogglePrimitive.Root>,
- React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &
- VariantProps<typeof toggleVariants>
->(({ className, variant, size, ...props }, ref) => (
- <TogglePrimitive.Root
- ref={ref}
- className={cn(toggleVariants({ variant, size, className }))}
- {...props}
- />
-))
-
-Toggle.displayName = TogglePrimitive.Root.displayName
-
-export { Toggle, toggleVariants }
diff --git a/openmemory/ui/components/ui/tooltip.tsx b/openmemory/ui/components/ui/tooltip.tsx
deleted file mode 100644
index 30fc44d90..000000000
--- a/openmemory/ui/components/ui/tooltip.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client"
-
-import * as React from "react"
-import * as TooltipPrimitive from "@radix-ui/react-tooltip"
-
-import { cn } from "@/lib/utils"
-
-const TooltipProvider = TooltipPrimitive.Provider
-
-const Tooltip = TooltipPrimitive.Root
-
-const TooltipTrigger = TooltipPrimitive.Trigger
-
-const TooltipContent = React.forwardRef<
- React.ElementRef<typeof TooltipPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
->(({ className, sideOffset = 4, ...props }, ref) => (
- <TooltipPrimitive.Content
- ref={ref}
- sideOffset={sideOffset}
- className={cn(
- "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",
- className
- )}
- {...props}
- />
-))
-TooltipContent.displayName = TooltipPrimitive.Content.displayName
-
-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/openmemory/ui/components/ui/use-mobile.tsx b/openmemory/ui/components/ui/use-mobile.tsx
deleted file mode 100644
index 2b0fe1dfe..000000000
--- a/openmemory/ui/components/ui/use-mobile.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as React from "react"
-
-const MOBILE_BREAKPOINT = 768
-
-export function useIsMobile() {
- const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
-
- React.useEffect(() => {
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
- const onChange = () => {
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- }
- mql.addEventListener("change", onChange)
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- return () => mql.removeEventListener("change", onChange)
- }, [])
-
- return !!isMobile
-}
diff --git a/openmemory/ui/components/ui/use-toast.ts b/openmemory/ui/components/ui/use-toast.ts
deleted file mode 100644
index 02e111d81..000000000
--- a/openmemory/ui/components/ui/use-toast.ts
+++ /dev/null
@@ -1,194 +0,0 @@
-"use client"
-
-// Inspired by react-hot-toast library
-import * as React from "react"
-
-import type {
- ToastActionElement,
- ToastProps,
-} from "@/components/ui/toast"
-
-const TOAST_LIMIT = 1
-const TOAST_REMOVE_DELAY = 1000000
-
-type ToasterToast = ToastProps & {
- id: string
- title?: React.ReactNode
- description?: React.ReactNode
- action?: ToastActionElement
-}
-
-const actionTypes = {
- ADD_TOAST: "ADD_TOAST",
- UPDATE_TOAST: "UPDATE_TOAST",
- DISMISS_TOAST: "DISMISS_TOAST",
- REMOVE_TOAST: "REMOVE_TOAST",
-} as const
-
-let count = 0
-
-function genId() {
- count = (count + 1) % Number.MAX_SAFE_INTEGER
- return count.toString()
-}
-
-type ActionType = typeof actionTypes
-
-type Action =
- | {
- type: ActionType["ADD_TOAST"]
- toast: ToasterToast
- }
- | {
- type: ActionType["UPDATE_TOAST"]
- toast: Partial<ToasterToast>
- }
- | {
- type: ActionType["DISMISS_TOAST"]
- toastId?: ToasterToast["id"]
- }
- | {
- type: ActionType["REMOVE_TOAST"]
- toastId?: ToasterToast["id"]
- }
-
-interface State {
- toasts: ToasterToast[]
-}
-
-const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()
-
-const addToRemoveQueue = (toastId: string) => {
- if (toastTimeouts.has(toastId)) {
- return
- }
-
- const timeout = setTimeout(() => {
- toastTimeouts.delete(toastId)
- dispatch({
- type: "REMOVE_TOAST",
- toastId: toastId,
- })
- }, TOAST_REMOVE_DELAY)
-
- toastTimeouts.set(toastId, timeout)
-}
-
-export const reducer = (state: State, action: Action): State => {
- switch (action.type) {
- case "ADD_TOAST":
- return {
- ...state,
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
- }
-
- case "UPDATE_TOAST":
- return {
- ...state,
- toasts: state.toasts.map((t) =>
- t.id === action.toast.id ? { ...t, ...action.toast } : t
- ),
- }
-
- case "DISMISS_TOAST": {
- const { toastId } = action
-
- // ! Side effects ! - This could be extracted into a dismissToast() action,
- // but I'll keep it here for simplicity
- if (toastId) {
- addToRemoveQueue(toastId)
- } else {
- state.toasts.forEach((toast) => {
- addToRemoveQueue(toast.id)
- })
- }
-
- return {
- ...state,
- toasts: state.toasts.map((t) =>
- t.id === toastId || toastId === undefined
- ? {
- ...t,
- open: false,
- }
- : t
- ),
- }
- }
- case "REMOVE_TOAST":
- if (action.toastId === undefined) {
- return {
- ...state,
- toasts: [],
- }
- }
- return {
- ...state,
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
- }
- }
-}
-
-const listeners: Array<(state: State) => void> = []
-
-let memoryState: State = { toasts: [] }
-
-function dispatch(action: Action) {
- memoryState = reducer(memoryState, action)
- listeners.forEach((listener) => {
- listener(memoryState)
- })
-}
-
-type Toast = Omit<ToasterToast, "id">
-
-function toast({ ...props }: Toast) {
- const id = genId()
-
- const update = (props: ToasterToast) =>
- dispatch({
- type: "UPDATE_TOAST",
- toast: { ...props, id },
- })
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
-
- dispatch({
- type: "ADD_TOAST",
- toast: {
- ...props,
- id,
- open: true,
- onOpenChange: (open) => {
- if (!open) dismiss()
- },
- },
- })
-
- return {
- id: id,
- dismiss,
- update,
- }
-}
-
-function useToast() {
- const [state, setState] = React.useState<State>(memoryState)
-
- React.useEffect(() => {
- listeners.push(setState)
- return () => {
- const index = listeners.indexOf(setState)
- if (index > -1) {
- listeners.splice(index, 1)
- }
- }
- }, [state])
-
- return {
- ...state,
- toast,
- dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
- }
-}
-
-export { useToast, toast }
diff --git a/openmemory/ui/entrypoint.sh b/openmemory/ui/entrypoint.sh
deleted file mode 100644
index b887dd481..000000000
--- a/openmemory/ui/entrypoint.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-set -e
-
-# Ensure the working directory is correct
-cd /app
-
-
-
-# Replace env variable placeholders with real values
-printenv | grep NEXT_PUBLIC_ | while read -r line ; do
- key=$(echo $line | cut -d "=" -f1)
- value=$(echo $line | cut -d "=" -f2)
-
- find .next/ -type f -exec sed -i "s|$key|$value|g" {} \;
-done
-echo "Done replacing env variables NEXT_PUBLIC_ with real values"
-
-
-# Execute the container's main process (CMD in Dockerfile)
-exec "$@"
\ No newline at end of file
diff --git a/openmemory/ui/hooks/use-mobile.tsx b/openmemory/ui/hooks/use-mobile.tsx
deleted file mode 100644
index 2b0fe1dfe..000000000
--- a/openmemory/ui/hooks/use-mobile.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as React from "react"
-
-const MOBILE_BREAKPOINT = 768
-
-export function useIsMobile() {
- const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
-
- React.useEffect(() => {
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
- const onChange = () => {
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- }
- mql.addEventListener("change", onChange)
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- return () => mql.removeEventListener("change", onChange)
- }, [])
-
- return !!isMobile
-}
diff --git a/openmemory/ui/hooks/use-toast.ts b/openmemory/ui/hooks/use-toast.ts
deleted file mode 100644
index 02e111d81..000000000
--- a/openmemory/ui/hooks/use-toast.ts
+++ /dev/null
@@ -1,194 +0,0 @@
-"use client"
-
-// Inspired by react-hot-toast library
-import * as React from "react"
-
-import type {
- ToastActionElement,
- ToastProps,
-} from "@/components/ui/toast"
-
-const TOAST_LIMIT = 1
-const TOAST_REMOVE_DELAY = 1000000
-
-type ToasterToast = ToastProps & {
- id: string
- title?: React.ReactNode
- description?: React.ReactNode
- action?: ToastActionElement
-}
-
-const actionTypes = {
- ADD_TOAST: "ADD_TOAST",
- UPDATE_TOAST: "UPDATE_TOAST",
- DISMISS_TOAST: "DISMISS_TOAST",
- REMOVE_TOAST: "REMOVE_TOAST",
-} as const
-
-let count = 0
-
-function genId() {
- count = (count + 1) % Number.MAX_SAFE_INTEGER
- return count.toString()
-}
-
-type ActionType = typeof actionTypes
-
-type Action =
- | {
- type: ActionType["ADD_TOAST"]
- toast: ToasterToast
- }
- | {
- type: ActionType["UPDATE_TOAST"]
- toast: Partial<ToasterToast>
- }
- | {
- type: ActionType["DISMISS_TOAST"]
- toastId?: ToasterToast["id"]
- }
- | {
- type: ActionType["REMOVE_TOAST"]
- toastId?: ToasterToast["id"]
- }
-
-interface State {
- toasts: ToasterToast[]
-}
-
-const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()
-
-const addToRemoveQueue = (toastId: string) => {
- if (toastTimeouts.has(toastId)) {
- return
- }
-
- const timeout = setTimeout(() => {
- toastTimeouts.delete(toastId)
- dispatch({
- type: "REMOVE_TOAST",
- toastId: toastId,
- })
- }, TOAST_REMOVE_DELAY)
-
- toastTimeouts.set(toastId, timeout)
-}
-
-export const reducer = (state: State, action: Action): State => {
- switch (action.type) {
- case "ADD_TOAST":
- return {
- ...state,
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
- }
-
- case "UPDATE_TOAST":
- return {
- ...state,
- toasts: state.toasts.map((t) =>
- t.id === action.toast.id ? { ...t, ...action.toast } : t
- ),
- }
-
- case "DISMISS_TOAST": {
- const { toastId } = action
-
- // ! Side effects ! - This could be extracted into a dismissToast() action,
- // but I'll keep it here for simplicity
- if (toastId) {
- addToRemoveQueue(toastId)
- } else {
- state.toasts.forEach((toast) => {
- addToRemoveQueue(toast.id)
- })
- }
-
- return {
- ...state,
- toasts: state.toasts.map((t) =>
- t.id === toastId || toastId === undefined
- ? {
- ...t,
- open: false,
- }
- : t
- ),
- }
- }
- case "REMOVE_TOAST":
- if (action.toastId === undefined) {
- return {
- ...state,
- toasts: [],
- }
- }
- return {
- ...state,
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
- }
- }
-}
-
-const listeners: Array<(state: State) => void> = []
-
-let memoryState: State = { toasts: [] }
-
-function dispatch(action: Action) {
- memoryState = reducer(memoryState, action)
- listeners.forEach((listener) => {
- listener(memoryState)
- })
-}
-
-type Toast = Omit<ToasterToast, "id">
-
-function toast({ ...props }: Toast) {
- const id = genId()
-
- const update = (props: ToasterToast) =>
- dispatch({
- type: "UPDATE_TOAST",
- toast: { ...props, id },
- })
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
-
- dispatch({
- type: "ADD_TOAST",
- toast: {
- ...props,
- id,
- open: true,
- onOpenChange: (open) => {
- if (!open) dismiss()
- },
- },
- })
-
- return {
- id: id,
- dismiss,
- update,
- }
-}
-
-function useToast() {
- const [state, setState] = React.useState<State>(memoryState)
-
- React.useEffect(() => {
- listeners.push(setState)
- return () => {
- const index = listeners.indexOf(setState)
- if (index > -1) {
- listeners.splice(index, 1)
- }
- }
- }, [state])
-
- return {
- ...state,
- toast,
- dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
- }
-}
-
-export { useToast, toast }
diff --git a/openmemory/ui/hooks/useAppsApi.ts b/openmemory/ui/hooks/useAppsApi.ts
deleted file mode 100644
index 754dee3df..000000000
--- a/openmemory/ui/hooks/useAppsApi.ts
+++ /dev/null
@@ -1,198 +0,0 @@
-import { useState, useCallback } from 'react';
-import axios from 'axios';
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import {
- App,
- AppDetails,
- AppMemory,
- AccessedMemory,
- setAppsSuccess,
- setAppsError,
- setAppsLoading,
- setSelectedAppLoading,
- setSelectedAppDetails,
- setCreatedMemoriesLoading,
- setCreatedMemoriesSuccess,
- setCreatedMemoriesError,
- setAccessedMemoriesLoading,
- setAccessedMemoriesSuccess,
- setAccessedMemoriesError,
- setSelectedAppError,
-} from '@/store/appsSlice';
-
-interface ApiResponse {
- total: number;
- page: number;
- page_size: number;
- apps: App[];
-}
-
-interface MemoriesResponse {
- total: number;
- page: number;
- page_size: number;
- memories: AppMemory[];
-}
-
-interface AccessedMemoriesResponse {
- total: number;
- page: number;
- page_size: number;
- memories: AccessedMemory[];
-}
-
-interface FetchAppsParams {
- name?: string;
- is_active?: boolean;
- sort_by?: 'name' | 'memories' | 'memories_accessed';
- sort_direction?: 'asc' | 'desc';
- page?: number;
- page_size?: number;
-}
-
-interface UseAppsApiReturn {
- fetchApps: (params?: FetchAppsParams) => Promise<{ apps: App[], total: number }>;
- fetchAppDetails: (appId: string) => Promise<void>;
- fetchAppMemories: (appId: string, page?: number, pageSize?: number) => Promise<void>;
- fetchAppAccessedMemories: (appId: string, page?: number, pageSize?: number) => Promise<void>;
- updateAppDetails: (appId: string, details: { is_active: boolean }) => Promise<void>;
- isLoading: boolean;
- error: string | null;
-}
-
-export const useAppsApi = (): UseAppsApiReturn => {
- const [isLoading, setIsLoading] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const dispatch = useDispatch<AppDispatch>();
- const user_id = useSelector((state: RootState) => state.profile.userId);
-
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const fetchApps = useCallback(async (params: FetchAppsParams = {}): Promise<{ apps: App[], total: number }> => {
- const {
- name,
- is_active,
- sort_by = 'name',
- sort_direction = 'asc',
- page = 1,
- page_size = 10
- } = params;
-
- setIsLoading(true);
- dispatch(setAppsLoading());
- try {
- const queryParams = new URLSearchParams({
- page: String(page),
- page_size: String(page_size)
- });
-
- if (name) queryParams.append('name', name);
- if (is_active !== undefined) queryParams.append('is_active', String(is_active));
- if (sort_by) queryParams.append('sort_by', sort_by);
- if (sort_direction) queryParams.append('sort_direction', sort_direction);
-
- const response = await axios.get<ApiResponse>(
- `${URL}/api/v1/apps/?${queryParams.toString()}`
- );
-
- setIsLoading(false);
- dispatch(setAppsSuccess(response.data.apps));
- return {
- apps: response.data.apps,
- total: response.data.total
- };
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch apps';
- setError(errorMessage);
- dispatch(setAppsError(errorMessage));
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- }, [dispatch]);
-
- const fetchAppDetails = useCallback(async (appId: string): Promise<void> => {
- setIsLoading(true);
- dispatch(setSelectedAppLoading());
- try {
- const response = await axios.get<AppDetails>(
- `${URL}/api/v1/apps/${appId}`
- );
- dispatch(setSelectedAppDetails(response.data));
- setIsLoading(false);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch app details';
- dispatch(setSelectedAppError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- }, [dispatch]);
-
- const fetchAppMemories = useCallback(async (appId: string, page: number = 1, pageSize: number = 10): Promise<void> => {
- setIsLoading(true);
- dispatch(setCreatedMemoriesLoading());
- try {
- const response = await axios.get<MemoriesResponse>(
- `${URL}/api/v1/apps/${appId}/memories?page=${page}&page_size=${pageSize}`
- );
- dispatch(setCreatedMemoriesSuccess({
- items: response.data.memories,
- total: response.data.total,
- page: response.data.page,
- }));
- setIsLoading(false);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch app memories';
- dispatch(setCreatedMemoriesError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- }
- }, [dispatch]);
-
- const fetchAppAccessedMemories = useCallback(async (appId: string, page: number = 1, pageSize: number = 10): Promise<void> => {
- setIsLoading(true);
- dispatch(setAccessedMemoriesLoading());
- try {
- const response = await axios.get<AccessedMemoriesResponse>(
- `${URL}/api/v1/apps/${appId}/accessed?page=${page}&page_size=${pageSize}`
- );
- dispatch(setAccessedMemoriesSuccess({
- items: response.data.memories,
- total: response.data.total,
- page: response.data.page,
- }));
- setIsLoading(false);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch accessed memories';
- dispatch(setAccessedMemoriesError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- }
- }, [dispatch]);
-
- const updateAppDetails = async (appId: string, details: { is_active: boolean }) => {
- setIsLoading(true);
- try {
- const response = await axios.put(
- `${URL}/api/v1/apps/${appId}?is_active=${details.is_active}`
- );
- setIsLoading(false);
- return response.data;
- } catch (error) {
- console.error("Failed to update app details:", error);
- setIsLoading(false);
- throw error;
- }
- };
-
- return {
- fetchApps,
- fetchAppDetails,
- fetchAppMemories,
- fetchAppAccessedMemories,
- updateAppDetails,
- isLoading,
- error
- };
-};
diff --git a/openmemory/ui/hooks/useConfig.ts b/openmemory/ui/hooks/useConfig.ts
deleted file mode 100644
index 18b070da6..000000000
--- a/openmemory/ui/hooks/useConfig.ts
+++ /dev/null
@@ -1,131 +0,0 @@
-import { useState } from 'react';
-import axios from 'axios';
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import {
- setConfigLoading,
- setConfigSuccess,
- setConfigError,
- updateLLM,
- updateEmbedder,
- updateMem0Config,
- updateOpenMemory,
- LLMProvider,
- EmbedderProvider,
- Mem0Config,
- OpenMemoryConfig
-} from '@/store/configSlice';
-
-interface UseConfigApiReturn {
- fetchConfig: () => Promise<void>;
- saveConfig: (config: { openmemory?: OpenMemoryConfig; mem0: Mem0Config }) => Promise<void>;
- saveLLMConfig: (llmConfig: LLMProvider) => Promise<void>;
- saveEmbedderConfig: (embedderConfig: EmbedderProvider) => Promise<void>;
- resetConfig: () => Promise<void>;
- isLoading: boolean;
- error: string | null;
-}
-
-export const useConfig = (): UseConfigApiReturn => {
- const [isLoading, setIsLoading] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const dispatch = useDispatch<AppDispatch>();
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const fetchConfig = async () => {
- setIsLoading(true);
- dispatch(setConfigLoading());
-
- try {
- const response = await axios.get(`${URL}/api/v1/config`);
- dispatch(setConfigSuccess(response.data));
- setIsLoading(false);
- } catch (err: any) {
- const errorMessage = err.response?.data?.detail || err.message || 'Failed to fetch configuration';
- dispatch(setConfigError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const saveConfig = async (config: { openmemory?: OpenMemoryConfig; mem0: Mem0Config }) => {
- setIsLoading(true);
- setError(null);
-
- try {
- const response = await axios.put(`${URL}/api/v1/config`, config);
- dispatch(setConfigSuccess(response.data));
- setIsLoading(false);
- return response.data;
- } catch (err: any) {
- const errorMessage = err.response?.data?.detail || err.message || 'Failed to save configuration';
- dispatch(setConfigError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const resetConfig = async () => {
- setIsLoading(true);
- setError(null);
-
- try {
- const response = await axios.post(`${URL}/api/v1/config/reset`);
- dispatch(setConfigSuccess(response.data));
- setIsLoading(false);
- return response.data;
- } catch (err: any) {
- const errorMessage = err.response?.data?.detail || err.message || 'Failed to reset configuration';
- dispatch(setConfigError(errorMessage));
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const saveLLMConfig = async (llmConfig: LLMProvider) => {
- setIsLoading(true);
- setError(null);
-
- try {
- const response = await axios.put(`${URL}/api/v1/config/mem0/llm`, llmConfig);
- dispatch(updateLLM(response.data));
- setIsLoading(false);
- return response.data;
- } catch (err: any) {
- const errorMessage = err.response?.data?.detail || err.message || 'Failed to save LLM configuration';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const saveEmbedderConfig = async (embedderConfig: EmbedderProvider) => {
- setIsLoading(true);
- setError(null);
-
- try {
- const response = await axios.put(`${URL}/api/v1/config/mem0/embedder`, embedderConfig);
- dispatch(updateEmbedder(response.data));
- setIsLoading(false);
- return response.data;
- } catch (err: any) {
- const errorMessage = err.response?.data?.detail || err.message || 'Failed to save Embedder configuration';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- return {
- fetchConfig,
- saveConfig,
- saveLLMConfig,
- saveEmbedderConfig,
- resetConfig,
- isLoading,
- error
- };
-};
\ No newline at end of file
diff --git a/openmemory/ui/hooks/useFiltersApi.ts b/openmemory/ui/hooks/useFiltersApi.ts
deleted file mode 100644
index 1d01e6e81..000000000
--- a/openmemory/ui/hooks/useFiltersApi.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import { useState, useCallback } from 'react';
-import axios from 'axios';
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import {
- Category,
- setCategoriesLoading,
- setCategoriesSuccess,
- setCategoriesError,
- setSortingState,
- setSelectedApps,
- setSelectedCategories
-} from '@/store/filtersSlice';
-
-interface CategoriesResponse {
- categories: Category[];
- total: number;
-}
-
-export interface UseFiltersApiReturn {
- fetchCategories: () => Promise<void>;
- isLoading: boolean;
- error: string | null;
- updateApps: (apps: string[]) => void;
- updateCategories: (categories: string[]) => void;
- updateSort: (column: string, direction: 'asc' | 'desc') => void;
-}
-
-export const useFiltersApi = (): UseFiltersApiReturn => {
- const [isLoading, setIsLoading] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const dispatch = useDispatch<AppDispatch>();
- const user_id = useSelector((state: RootState) => state.profile.userId);
-
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const fetchCategories = useCallback(async (): Promise<void> => {
- setIsLoading(true);
- dispatch(setCategoriesLoading());
- try {
- const response = await axios.get<CategoriesResponse>(
- `${URL}/api/v1/memories/categories?user_id=${user_id}`
- );
-
- dispatch(setCategoriesSuccess({
- categories: response.data.categories,
- total: response.data.total
- }));
- setIsLoading(false);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch categories';
- setError(errorMessage);
- dispatch(setCategoriesError(errorMessage));
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- }, [dispatch, user_id]);
-
- const updateApps = useCallback((apps: string[]) => {
- dispatch(setSelectedApps(apps));
- }, [dispatch]);
-
- const updateCategories = useCallback((categories: string[]) => {
- dispatch(setSelectedCategories(categories));
- }, [dispatch]);
-
- const updateSort = useCallback((column: string, direction: 'asc' | 'desc') => {
- dispatch(setSortingState({ column, direction }));
- }, [dispatch]);
-
- return {
- fetchCategories,
- isLoading,
- error,
- updateApps,
- updateCategories,
- updateSort
- };
-};
\ No newline at end of file
diff --git a/openmemory/ui/hooks/useMemoriesApi.ts b/openmemory/ui/hooks/useMemoriesApi.ts
deleted file mode 100644
index 69266d999..000000000
--- a/openmemory/ui/hooks/useMemoriesApi.ts
+++ /dev/null
@@ -1,344 +0,0 @@
-import { useState, useCallback } from 'react';
-import axios from 'axios';
-import { Memory, Client, Category } from '@/components/types';
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import { setAccessLogs, setMemoriesSuccess, setSelectedMemory, setRelatedMemories } from '@/store/memoriesSlice';
-
-// Define the new simplified memory type
-export interface SimpleMemory {
- id: string;
- text: string;
- created_at: string;
- state: string;
- categories: string[];
- app_name: string;
-}
-
-// Define the shape of the API response item
-interface ApiMemoryItem {
- id: string;
- content: string;
- created_at: string;
- state: string;
- app_id: string;
- categories: string[];
- metadata_?: Record<string, any>;
- app_name: string;
-}
-
-// Define the shape of the API response
-interface ApiResponse {
- items: ApiMemoryItem[];
- total: number;
- page: number;
- size: number;
- pages: number;
-}
-
-interface AccessLogEntry {
- id: string;
- app_name: string;
- accessed_at: string;
-}
-
-interface AccessLogResponse {
- total: number;
- page: number;
- page_size: number;
- logs: AccessLogEntry[];
-}
-
-interface RelatedMemoryItem {
- id: string;
- content: string;
- created_at: number;
- state: string;
- app_id: string;
- app_name: string;
- categories: string[];
- metadata_: Record<string, any>;
-}
-
-interface RelatedMemoriesResponse {
- items: RelatedMemoryItem[];
- total: number;
- page: number;
- size: number;
- pages: number;
-}
-
-interface UseMemoriesApiReturn {
- fetchMemories: (
- query?: string,
- page?: number,
- size?: number,
- filters?: {
- apps?: string[];
- categories?: string[];
- sortColumn?: string;
- sortDirection?: 'asc' | 'desc';
- showArchived?: boolean;
- }
- ) => Promise<{ memories: Memory[]; total: number; pages: number }>;
- fetchMemoryById: (memoryId: string) => Promise<void>;
- fetchAccessLogs: (memoryId: string, page?: number, pageSize?: number) => Promise<void>;
- fetchRelatedMemories: (memoryId: string) => Promise<void>;
- createMemory: (text: string) => Promise<void>;
- deleteMemories: (memoryIds: string[]) => Promise<void>;
- updateMemory: (memoryId: string, content: string) => Promise<void>;
- updateMemoryState: (memoryIds: string[], state: string) => Promise<void>;
- isLoading: boolean;
- error: string | null;
- hasUpdates: number;
- memories: Memory[];
- selectedMemory: SimpleMemory | null;
-}
-
-export const useMemoriesApi = (): UseMemoriesApiReturn => {
- const [isLoading, setIsLoading] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const [hasUpdates, setHasUpdates] = useState<number>(0);
- const dispatch = useDispatch<AppDispatch>();
- const user_id = useSelector((state: RootState) => state.profile.userId);
- const memories = useSelector((state: RootState) => state.memories.memories);
- const selectedMemory = useSelector((state: RootState) => state.memories.selectedMemory);
-
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const fetchMemories = useCallback(async (
- query?: string,
- page: number = 1,
- size: number = 10,
- filters?: {
- apps?: string[];
- categories?: string[];
- sortColumn?: string;
- sortDirection?: 'asc' | 'desc';
- showArchived?: boolean;
- }
- ): Promise<{ memories: Memory[], total: number, pages: number }> => {
- setIsLoading(true);
- setError(null);
- try {
- const response = await axios.post<ApiResponse>(
- `${URL}/api/v1/memories/filter`,
- {
- user_id: user_id,
- page: page,
- size: size,
- search_query: query,
- app_ids: filters?.apps,
- category_ids: filters?.categories,
- sort_column: filters?.sortColumn?.toLowerCase(),
- sort_direction: filters?.sortDirection,
- show_archived: filters?.showArchived
- }
- );
-
- const adaptedMemories: Memory[] = response.data.items.map((item: ApiMemoryItem) => ({
- id: item.id,
- memory: item.content,
- created_at: new Date(item.created_at).getTime(),
- state: item.state as "active" | "paused" | "archived" | "deleted",
- metadata: item.metadata_,
- categories: item.categories as Category[],
- client: 'api',
- app_name: item.app_name
- }));
- setIsLoading(false);
- dispatch(setMemoriesSuccess(adaptedMemories));
- return {
- memories: adaptedMemories,
- total: response.data.total,
- pages: response.data.pages
- };
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch memories';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- }, [user_id, dispatch]);
-
- const createMemory = async (text: string): Promise<void> => {
- try {
- const memoryData = {
- user_id: user_id,
- text: text,
- infer: false,
- app: "openmemory",
- }
- await axios.post<ApiMemoryItem>(`${URL}/api/v1/memories/`, memoryData);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to create memory';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const deleteMemories = async (memory_ids: string[]) => {
- try {
- await axios.delete(`${URL}/api/v1/memories/`, {
- data: { memory_ids, user_id }
- });
- dispatch(setMemoriesSuccess(memories.filter((memory: Memory) => !memory_ids.includes(memory.id))));
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to delete memories';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const fetchMemoryById = async (memoryId: string): Promise<void> => {
- if (memoryId === "") {
- return;
- }
- setIsLoading(true);
- setError(null);
- try {
- const response = await axios.get<SimpleMemory>(
- `${URL}/api/v1/memories/${memoryId}?user_id=${user_id}`
- );
- setIsLoading(false);
- dispatch(setSelectedMemory(response.data));
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch memory';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const fetchAccessLogs = async (memoryId: string, page: number = 1, pageSize: number = 10): Promise<void> => {
- if (memoryId === "") {
- return;
- }
- setIsLoading(true);
- setError(null);
- try {
- const response = await axios.get<AccessLogResponse>(
- `${URL}/api/v1/memories/${memoryId}/access-log?page=${page}&page_size=${pageSize}`
- );
- setIsLoading(false);
- dispatch(setAccessLogs(response.data.logs));
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch access logs';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const fetchRelatedMemories = async (memoryId: string): Promise<void> => {
- if (memoryId === "") {
- return;
- }
- setIsLoading(true);
- setError(null);
- try {
- const response = await axios.get<RelatedMemoriesResponse>(
- `${URL}/api/v1/memories/${memoryId}/related?user_id=${user_id}`
- );
-
- const adaptedMemories: Memory[] = response.data.items.map((item: RelatedMemoryItem) => ({
- id: item.id,
- memory: item.content,
- created_at: item.created_at,
- state: item.state as "active" | "paused" | "archived" | "deleted",
- metadata: item.metadata_,
- categories: item.categories as Category[],
- client: 'api',
- app_name: item.app_name
- }));
-
- setIsLoading(false);
- dispatch(setRelatedMemories(adaptedMemories));
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch related memories';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const updateMemory = async (memoryId: string, content: string): Promise<void> => {
- if (memoryId === "") {
- return;
- }
- setIsLoading(true);
- setError(null);
- try {
- await axios.put(`${URL}/api/v1/memories/${memoryId}`, {
- memory_id: memoryId,
- memory_content: content,
- user_id: user_id
- });
- setIsLoading(false);
- setHasUpdates(hasUpdates + 1);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to update memory';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- const updateMemoryState = async (memoryIds: string[], state: string): Promise<void> => {
- if (memoryIds.length === 0) {
- return;
- }
- setIsLoading(true);
- setError(null);
- try {
- await axios.post(`${URL}/api/v1/memories/actions/pause`, {
- memory_ids: memoryIds,
- all_for_app: true,
- state: state,
- user_id: user_id
- });
- dispatch(setMemoriesSuccess(memories.map((memory: Memory) => {
- if (memoryIds.includes(memory.id)) {
- return { ...memory, state: state as "active" | "paused" | "archived" | "deleted" };
- }
- return memory;
- })));
-
- // If archive, delete the memory
- if (state === "archived") {
- dispatch(setMemoriesSuccess(memories.filter((memory: Memory) => !memoryIds.includes(memory.id))));
- }
-
- // if selected memory, update it
- if (selectedMemory?.id && memoryIds.includes(selectedMemory.id)) {
- dispatch(setSelectedMemory({ ...selectedMemory, state: state as "active" | "paused" | "archived" | "deleted" }));
- }
-
- setIsLoading(false);
- setHasUpdates(hasUpdates + 1);
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to update memory state';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- return {
- fetchMemories,
- fetchMemoryById,
- fetchAccessLogs,
- fetchRelatedMemories,
- createMemory,
- deleteMemories,
- updateMemory,
- updateMemoryState,
- isLoading,
- error,
- hasUpdates,
- memories,
- selectedMemory
- };
-};
\ No newline at end of file
diff --git a/openmemory/ui/hooks/useStats.ts b/openmemory/ui/hooks/useStats.ts
deleted file mode 100644
index c6bf7f61d..000000000
--- a/openmemory/ui/hooks/useStats.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import { useState } from 'react';
-import axios from 'axios';
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import { setApps, setTotalApps } from '@/store/profileSlice';
-import { setTotalMemories } from '@/store/profileSlice';
-
-// Define the new simplified memory type
-export interface SimpleMemory {
- id: string;
- text: string;
- created_at: string;
- state: string;
- categories: string[];
- app_name: string;
-}
-
-// Define the shape of the API response item
-interface APIStatsResponse {
- total_memories: number;
- total_apps: number;
- apps: any[];
-}
-
-
-interface UseMemoriesApiReturn {
- fetchStats: () => Promise<void>;
- isLoading: boolean;
- error: string | null;
-}
-
-export const useStats = (): UseMemoriesApiReturn => {
- const [isLoading, setIsLoading] = useState<boolean>(false);
- const [error, setError] = useState<string | null>(null);
- const dispatch = useDispatch<AppDispatch>();
- const user_id = useSelector((state: RootState) => state.profile.userId);
-
- const URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8765";
-
- const fetchStats = async () => {
- setIsLoading(true);
- setError(null);
- try {
- const response = await axios.get<APIStatsResponse>(
- `${URL}/api/v1/stats?user_id=${user_id}`
- );
- dispatch(setTotalMemories(response.data.total_memories));
- dispatch(setTotalApps(response.data.total_apps));
- dispatch(setApps(response.data.apps));
- } catch (err: any) {
- const errorMessage = err.message || 'Failed to fetch stats';
- setError(errorMessage);
- setIsLoading(false);
- throw new Error(errorMessage);
- }
- };
-
- return { fetchStats, isLoading, error };
-};
\ No newline at end of file
diff --git a/openmemory/ui/hooks/useUI.ts b/openmemory/ui/hooks/useUI.ts
deleted file mode 100644
index 238b38389..000000000
--- a/openmemory/ui/hooks/useUI.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { useDispatch, useSelector } from 'react-redux';
-import { AppDispatch, RootState } from '@/store/store';
-import { openUpdateMemoryDialog, closeUpdateMemoryDialog } from '@/store/uiSlice';
-
-export const useUI = () => {
- const dispatch = useDispatch<AppDispatch>();
- const updateMemoryDialog = useSelector((state: RootState) => state.ui.dialogs.updateMemory);
-
- const handleOpenUpdateMemoryDialog = (memoryId: string, memoryContent: string) => {
- dispatch(openUpdateMemoryDialog({ memoryId, memoryContent }));
- };
-
- const handleCloseUpdateMemoryDialog = () => {
- dispatch(closeUpdateMemoryDialog());
- };
-
- return {
- updateMemoryDialog,
- handleOpenUpdateMemoryDialog,
- handleCloseUpdateMemoryDialog,
- };
-};
\ No newline at end of file
diff --git a/openmemory/ui/lib/helpers.ts b/openmemory/ui/lib/helpers.ts
deleted file mode 100644
index cf4d3b32f..000000000
--- a/openmemory/ui/lib/helpers.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-const capitalize = (str: string) => {
- if (!str) return ''
- if (str.length <= 1) return str.toUpperCase()
- return str.toUpperCase()[0] + str.slice(1)
-}
-
-function formatDate(timestamp: number) {
- const date = new Date(timestamp * 1000);
- // Format as relative time (e.g., "5 minutes ago", "2 hours ago", "3 days ago")
- const now = new Date();
- const diffInSeconds = Math.floor((now.getTime() - date.getTime()) / 1000);
-
- if (diffInSeconds < 60) {
- return 'Just Now';
- } else if (diffInSeconds < 3600) {
- const minutes = Math.floor(diffInSeconds / 60);
- return `${minutes} ${minutes === 1 ? 'minute' : 'minutes'} ago`;
- } else if (diffInSeconds < 86400) {
- const hours = Math.floor(diffInSeconds / 3600);
- return `${hours} ${hours === 1 ? 'hour' : 'hours'} ago`;
- } else {
- const days = Math.floor(diffInSeconds / 86400);
- return `${days} ${days === 1 ? 'day' : 'days'} ago`;
- }
- }
-
-export { capitalize, formatDate }
\ No newline at end of file
diff --git a/openmemory/ui/lib/utils.ts b/openmemory/ui/lib/utils.ts
deleted file mode 100644
index d084ccade..000000000
--- a/openmemory/ui/lib/utils.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { type ClassValue, clsx } from "clsx"
-import { twMerge } from "tailwind-merge"
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs))
-}
diff --git a/openmemory/ui/next-env.d.ts b/openmemory/ui/next-env.d.ts
deleted file mode 100644
index 830fb594c..000000000
--- a/openmemory/ui/next-env.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/// <reference types="next" />
-/// <reference types="next/image-types/global" />
-/// <reference path="./.next/types/routes.d.ts" />
-
-// NOTE: This file should not be edited
-// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/openmemory/ui/next.config.dev.mjs b/openmemory/ui/next.config.dev.mjs
deleted file mode 100644
index a1448414f..000000000
--- a/openmemory/ui/next.config.dev.mjs
+++ /dev/null
@@ -1,15 +0,0 @@
-/** @type {import('next').NextConfig} */
-const nextConfig = {
- output: "standalone",
- eslint: {
- ignoreDuringBuilds: true,
- },
- typescript: {
- ignoreBuildErrors: true,
- },
- images: {
- unoptimized: true,
- },
-}
-
-export default nextConfig
\ No newline at end of file
diff --git a/openmemory/ui/next.config.mjs b/openmemory/ui/next.config.mjs
deleted file mode 100644
index 2033beb7a..000000000
--- a/openmemory/ui/next.config.mjs
+++ /dev/null
@@ -1,14 +0,0 @@
-/** @type {import('next').NextConfig} */
-const nextConfig = {
- eslint: {
- ignoreDuringBuilds: true,
- },
- typescript: {
- ignoreBuildErrors: true,
- },
- images: {
- unoptimized: true,
- },
-}
-
-export default nextConfig
\ No newline at end of file
diff --git a/openmemory/ui/package.json b/openmemory/ui/package.json
deleted file mode 100644
index ad379ddc2..000000000
--- a/openmemory/ui/package.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "name": "my-v0-project",
- "version": "0.1.0",
- "private": true,
- "scripts": {
- "dev": "next dev",
- "build": "next build",
- "start": "next start",
- "lint": "next lint"
- },
- "dependencies": {
- "@hookform/resolvers": "^3.9.1",
- "@radix-ui/react-accordion": "^1.2.2",
- "@radix-ui/react-alert-dialog": "^1.1.4",
- "@radix-ui/react-aspect-ratio": "^1.1.1",
- "@radix-ui/react-avatar": "^1.1.2",
- "@radix-ui/react-checkbox": "^1.1.3",
- "@radix-ui/react-collapsible": "^1.1.2",
- "@radix-ui/react-context-menu": "^2.2.4",
- "@radix-ui/react-dialog": "^1.1.4",
- "@radix-ui/react-dropdown-menu": "^2.1.4",
- "@radix-ui/react-hover-card": "^1.1.4",
- "@radix-ui/react-label": "^2.1.1",
- "@radix-ui/react-menubar": "^1.1.4",
- "@radix-ui/react-navigation-menu": "^1.2.3",
- "@radix-ui/react-popover": "^1.1.4",
- "@radix-ui/react-progress": "^1.1.1",
- "@radix-ui/react-radio-group": "^1.2.2",
- "@radix-ui/react-scroll-area": "^1.2.2",
- "@radix-ui/react-select": "^2.1.4",
- "@radix-ui/react-separator": "^1.1.1",
- "@radix-ui/react-slider": "^1.2.2",
- "@radix-ui/react-slot": "^1.1.1",
- "@radix-ui/react-switch": "^1.1.2",
- "@radix-ui/react-tabs": "^1.1.2",
- "@radix-ui/react-toast": "^1.2.4",
- "@radix-ui/react-toggle": "^1.1.1",
- "@radix-ui/react-toggle-group": "^1.1.1",
- "@radix-ui/react-tooltip": "^1.1.6",
- "@reduxjs/toolkit": "^2.7.0",
- "autoprefixer": "^10.4.20",
- "axios": "^1.16.0",
- "class-variance-authority": "^0.7.1",
- "clsx": "^2.1.1",
- "cmdk": "1.0.4",
- "date-fns": "4.1.0",
- "embla-carousel-react": "8.5.1",
- "input-otp": "1.4.1",
- "lodash": "^4.18.1",
- "lucide-react": "^0.454.0",
- "next": "15.5.18",
- "next-themes": "^0.4.4",
- "react": "^19",
- "react-day-picker": "8.10.1",
- "react-dom": "^19",
- "react-hook-form": "^7.54.1",
- "react-icons": "^5.5.0",
- "react-redux": "^9.2.0",
- "react-resizable-panels": "^2.1.7",
- "recharts": "2.15.0",
- "sass": "^1.86.3",
- "sonner": "^1.7.1",
- "tailwind-merge": "^2.5.5",
- "tailwindcss-animate": "^1.0.7",
- "vaul": "^0.9.6",
- "zod": "^3.24.1"
- },
- "devDependencies": {
- "@types/lodash": "^4.17.16",
- "@types/node": "^22",
- "@types/react": "^19",
- "@types/react-dom": "^19",
- "postcss": "^8",
- "tailwindcss": "^3.4.17",
- "typescript": "^5"
- },
- "packageManager": "[email protected]+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b",
- "pnpm": {
- "onlyBuiltDependencies": [
- "@parcel/watcher",
- "sharp"
- ],
- "overrides": {
- "form-data@<4.0.6": ">=4.0.6",
- "immutable@>=5.0.0 <5.1.5": "^5.1.5",
- "picomatch@<2.3.2": "^2.3.2",
- "minimatch@>=9.0.0 <9.0.7": "^9.0.7",
- "glob@>=10.2.0 <10.5.0": "^10.5.0",
- "postcss@<8.5.10": ">=8.5.10",
- "yaml@>=2.0.0 <2.8.3": ">=2.8.3"
- }
- }
-}
diff --git a/openmemory/ui/pnpm-lock.yaml b/openmemory/ui/pnpm-lock.yaml
deleted file mode 100644
index 7bef9e7a2..000000000
--- a/openmemory/ui/pnpm-lock.yaml
+++ /dev/null
@@ -1,3783 +0,0 @@
-lockfileVersion: '9.0'
-
-settings:
- autoInstallPeers: true
- excludeLinksFromLockfile: false
-
-overrides:
- form-data@<4.0.6: '>=4.0.6'
- immutable@>=5.0.0 <5.1.5: ^5.1.5
- picomatch@<2.3.2: ^2.3.2
- minimatch@>=9.0.0 <9.0.7: ^9.0.7
- glob@>=10.2.0 <10.5.0: ^10.5.0
- postcss@<8.5.10: '>=8.5.10'
- yaml@>=2.0.0 <2.8.3: '>=2.8.3'
-
-importers:
-
- .:
- dependencies:
- '@hookform/resolvers':
- specifier: ^3.9.1
- '@radix-ui/react-accordion':
- specifier: ^1.2.2
- '@radix-ui/react-alert-dialog':
- specifier: ^1.1.4
- '@radix-ui/react-aspect-ratio':
- specifier: ^1.1.1
- '@radix-ui/react-avatar':
- specifier: ^1.1.2
- '@radix-ui/react-checkbox':
- specifier: ^1.1.3
- '@radix-ui/react-collapsible':
- specifier: ^1.1.2
- '@radix-ui/react-context-menu':
- specifier: ^2.2.4
- '@radix-ui/react-dialog':
- specifier: ^1.1.4
- '@radix-ui/react-dropdown-menu':
- specifier: ^2.1.4
- '@radix-ui/react-hover-card':
- specifier: ^1.1.4
- '@radix-ui/react-label':
- specifier: ^2.1.1
- '@radix-ui/react-menubar':
- specifier: ^1.1.4
- '@radix-ui/react-navigation-menu':
- specifier: ^1.2.3
- '@radix-ui/react-popover':
- specifier: ^1.1.4
- '@radix-ui/react-progress':
- specifier: ^1.1.1
- '@radix-ui/react-radio-group':
- specifier: ^1.2.2
- '@radix-ui/react-scroll-area':
- specifier: ^1.2.2
- '@radix-ui/react-select':
- specifier: ^2.1.4
- '@radix-ui/react-separator':
- specifier: ^1.1.1
- '@radix-ui/react-slider':
- specifier: ^1.2.2
- '@radix-ui/react-slot':
- specifier: ^1.1.1
- version: 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-switch':
- specifier: ^1.1.2
- '@radix-ui/react-tabs':
- specifier: ^1.1.2
- '@radix-ui/react-toast':
- specifier: ^1.2.4
- '@radix-ui/react-toggle':
- specifier: ^1.1.1
- '@radix-ui/react-toggle-group':
- specifier: ^1.1.1
- '@radix-ui/react-tooltip':
- specifier: ^1.1.6
- '@reduxjs/toolkit':
- specifier: ^2.7.0
- autoprefixer:
- specifier: ^10.4.20
- version: 10.5.0([email protected])
- axios:
- specifier: ^1.16.0
- version: 1.17.0
- class-variance-authority:
- specifier: ^0.7.1
- version: 0.7.1
- clsx:
- specifier: ^2.1.1
- version: 2.1.1
- cmdk:
- specifier: 1.0.4
- date-fns:
- specifier: 4.1.0
- version: 4.1.0
- embla-carousel-react:
- specifier: 8.5.1
- version: 8.5.1([email protected])
- input-otp:
- specifier: 1.4.1
- lodash:
- specifier: ^4.18.1
- version: 4.18.1
- lucide-react:
- specifier: ^0.454.0
- version: 0.454.0([email protected])
- next:
- specifier: 15.5.18
- next-themes:
- specifier: ^0.4.4
- react:
- specifier: ^19
- version: 19.2.7
- react-day-picker:
- specifier: 8.10.1
- react-dom:
- specifier: ^19
- version: 19.2.7([email protected])
- react-hook-form:
- specifier: ^7.54.1
- version: 7.78.0([email protected])
- react-icons:
- specifier: ^5.5.0
- version: 5.6.0([email protected])
- react-redux:
- specifier: ^9.2.0
- react-resizable-panels:
- specifier: ^2.1.7
- recharts:
- specifier: 2.15.0
- sass:
- specifier: ^1.86.3
- version: 1.100.0
- sonner:
- specifier: ^1.7.1
- tailwind-merge:
- specifier: ^2.5.5
- version: 2.6.1
- tailwindcss-animate:
- specifier: ^1.0.7
- version: 1.0.7([email protected])
- vaul:
- specifier: ^0.9.6
- zod:
- specifier: ^3.24.1
- version: 3.25.76
- devDependencies:
- '@types/lodash':
- specifier: ^4.17.16
- version: 4.17.24
- '@types/node':
- specifier: ^22
- version: 22.19.21
- '@types/react':
- specifier: ^19
- version: 19.2.17
- '@types/react-dom':
- specifier: ^19
- version: 19.2.3(@types/[email protected])
- postcss:
- specifier: '>=8.5.10'
- version: 8.5.15
- tailwindcss:
- specifier: ^3.4.17
- version: 3.4.19
- typescript:
- specifier: ^5
- version: 5.9.3
-
-packages:
-
- '@alloc/[email protected]':
- resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
- engines: {node: '>=10'}
-
- '@babel/[email protected]':
- resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==}
- engines: {node: '>=6.9.0'}
-
- '@emnapi/[email protected]':
- resolution: {integrity: sha512-55coeOFKHv1ywEcUXJtWU5f+Jr/W5tZDvZig8DLKSwUN1JpROQ4rk/SNOQiFWmaR/VKF4zuFyW1B8JduOSv6Pg==}
-
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}
-
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}
-
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==}
- peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
-
- '@floating-ui/[email protected]':
- resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}
-
- '@hookform/[email protected]':
- resolution: {integrity: sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag==}
- peerDependencies:
- react-hook-form: ^7.0.0
-
- resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
- engines: {node: '>=18'}
-
- resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [arm64]
- os: [darwin]
-
- resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [x64]
- os: [darwin]
-
- resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}
- cpu: [arm64]
- os: [darwin]
-
- resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}
- cpu: [x64]
- os: [darwin]
-
- resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}
- cpu: [arm]
- os: [linux]
-
- resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}
- cpu: [ppc64]
- os: [linux]
-
- resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}
- cpu: [riscv64]
- os: [linux]
-
- resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}
- cpu: [s390x]
- os: [linux]
-
- resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [arm]
- os: [linux]
-
- resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [ppc64]
- os: [linux]
-
- resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [riscv64]
- os: [linux]
-
- resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [s390x]
- os: [linux]
-
- resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [wasm32]
-
- resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [arm64]
- os: [win32]
-
- resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [ia32]
- os: [win32]
-
- resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
- cpu: [x64]
- os: [win32]
-
- '@jridgewell/[email protected]':
- resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
-
- '@jridgewell/[email protected]':
- resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
- engines: {node: '>=6.0.0'}
-
- '@jridgewell/[email protected]':
- resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
-
- '@jridgewell/[email protected]':
- resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
-
- resolution: {integrity: sha512-hAV85Ckd9QR6RvH04MEKwsfLTksvFpO47j9xwtoIuvuPnlwecpSi+uZTtm8HirVbtlI2Fnz//xpcSTjFdyJk+g==}
-
- resolution: {integrity: sha512-w0WvQf1n+txiwns/9pwIQteCJpZTbxzO2SE0FLcwuD4v0WEh1JPOjdyxWL21XwJsdpx8cFRjyzxzCS/siP7HcQ==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [darwin]
-
- resolution: {integrity: sha512-znn71QmDuxm+BOaglihMZfvyySMnNljkVIY5Z2TCssBmm+WqL6c19VhtH5ktFkHa8EZ2bnTUpcNcmNSQsg67og==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [darwin]
-
- resolution: {integrity: sha512-yPPe5MNL+igZUa+OsqQJisqSfh6oarIuA1Q0BDxljGJhRQyZeP+WRHh7rs/jZUGMh5aY0YdIjXZG0VohkKkUdw==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-glaCczEWIrHsokFZ3pP08U4BpKxwIdnT+txdOM32OBgpL9Yw4aqx8NejmgtZQZOdstQ5f0L3CasIZudzCuD+nw==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [linux]
-
- resolution: {integrity: sha512-oUfg2EgJmU3R0OCOWiokGFUTvZiPfXtriXiuF3YNxRoROCdgvTedHIzYoeKH34gsZxS/V7mHbfq2hpAHwhH1/A==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-JLxSP3KTd9iu/bvUMQxH7RJo9xKSHf55/6RPE4a6FTSZygGn7uvZbCej0AHXydwkggQGSD9UddSjwv6Xz5ESfA==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [linux]
-
- resolution: {integrity: sha512-ir1v7enP52K2HNz3tQQvwF+x7VNxBk1ciiZ18WBPvxf4C59IqdfmHPJYK3vH7rSxpuCVw/8C712wTXNAtEp+NA==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [win32]
-
- resolution: {integrity: sha512-LIu5me6QTANCd25E7I5uIEfvgQ06RK7tvHAbYo3zCb3VpxQEPvMcSpd87NwUABDT6MbGPdEGR5VRiK4PPTJhQg==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [win32]
-
- '@nodelib/[email protected]':
- resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
- engines: {node: '>= 8'}
-
- '@nodelib/[email protected]':
- resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
- engines: {node: '>= 8'}
-
- '@nodelib/[email protected]':
- resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
- engines: {node: '>= 8'}
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm64]
- os: [android]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm64]
- os: [darwin]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==}
- engines: {node: '>= 10.0.0'}
- cpu: [x64]
- os: [darwin]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==}
- engines: {node: '>= 10.0.0'}
- cpu: [x64]
- os: [freebsd]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm64]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm64]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==}
- engines: {node: '>= 10.0.0'}
- cpu: [x64]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==}
- engines: {node: '>= 10.0.0'}
- cpu: [x64]
- os: [linux]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==}
- engines: {node: '>= 10.0.0'}
- cpu: [arm64]
- os: [win32]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==}
- engines: {node: '>= 10.0.0'}
- cpu: [ia32]
- os: [win32]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==}
- engines: {node: '>= 10.0.0'}
- cpu: [x64]
- os: [win32]
-
- '@parcel/[email protected]':
- resolution: {integrity: sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==}
- engines: {node: '>= 10.0.0'}
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig==}
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==}
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-xITxBB2p5m5tAe7M0F95kb4uAh7jSIKGlExMEm93HlW+XxZHV2eXFbPWLktd4JhRiwcnXNbO7iekcrbZy6ZCvA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-vPaIgo0mxYlvcFaM9jB2Uot9TjGXMuAPEvrc6BOLeV+I5U8s1dkIoouYaa6lmSfc5SPMo5x5djOTOTvaigdGMQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-yqHW5WQ/cTpU/un7dqqIKNy2iRU8BC0JB78PEzTfCCYvZu1U6W9KwObAniMk9nhSfyotKPQTYaUD/HB0f5muig==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-Xy+Dpxt/5n9rVTdPrNFmf8GwG1NlT1pzCF/z1MgOGZMLZWdWl+km+ZRWGQAPEhbkzSwYEsfYmTca8NhUtVxqnw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-NQCQyWC7QrDPhjMn8hUqFeU0lUrprIgm1AyMgLbzuQJibNnatdc3SSMo3/UGFu/eUkJUU1cEcKCnyhXTQzq6tA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-m3JmIOAX5ZzZ6VPjxEU2dbTOhoHi0nT5riwcDwe8idocsWf4a5DXJLDtZ6LfJwMBx7W+A2b7kp2TgPEKtaiF6A==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-F0s8+p2XNpfc3k02zBfB0jPWbkHVG162+p7BdUMyJ2308QMqZ+oaclX+FAzKFovgL5OqRU+Rvy6f/vbdlJVaqA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-zuSVi7ziP7uQRqc+yGxsKJfNkdyHv3ZKDaHe0gzg4dRgws96TPKWIiz84tVHP4GEcEl8bC0mdt17NkcxaJHmaQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-d7CouXhAW+CGmFOqmB+IEvd3E9GcaqfgvfjCc3hfulp2pkaUCEVEGa0SN5nNWYA+IvQ6g1Pt+S5dpNn1AoY9hg==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-l9ok83YBclEZhbjgzt76Hw733e6cvRKPNgO6GJ/IETlufXG9p+fRu2wlvpImQvR6xdJ8h7J8J2DBvsPEiEsKMw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-MhoruH6xEzsbvOmo4TNgMfmtvRGyDZw4MDSdf4ybMHfezjqwzv6hyd4lsMzBp8K9Sn6sGzCF62x1I7BYUECXOg==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-S6b3Jm57sY5EdDyOMLkacbB0qMnKhy1RCKZCt795ZkmtUOAvojYIZ5p7dXHIh5Cyr3jCLLI5/g64V3FKLudZmw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-cot/aB/mOm0IYVYTTmQcEEK1M48lZWi8FlYe5nDPQQ8NYZUlXEFgncJ9p2Kzer3RKSrY7cTTpEMLZKNo9QoP5Q==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-9Se8t+Zry+1rEOL7Y6l/4ANYU/TOtAtf8O2fKdwLltcaMcm6kOqYGbzO4tMFQ0bvzO920pRAoHpFZ4W85S3keQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-hAileDBtd6CX7nlZOarOnISQ6PP4q0e16BX51ulzdZ+7IzjL0sDTVpFdmSYrIjw6zVNsfQBao5gG6AWr3qwfvA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-rDoTeMbCwRVcnmo7NGT9IlPo1yXmEI+xc1URP3oeewwZEV4mdTp1dYUhYbQdo4D1q2SjKVvv4N1gNY77QAQtjA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-fmbNnFyf+JYCN0DhhWnEdUTDnZD1mXaPQWivdsPIb8oOSbARfD3LIQJbLCG8a8QLCwoMxiJ7GVPIFcC8Dw8v2Q==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-AKtZ4O782yO7qwIyq73WpulYt1IHhQ0htDb6wNcxzxnSDCcSWMVBiU9ycpcA90XzQO4IVIxIErtak6Kg/Vt0rQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-/fS8hKCcRt4DwCGa5QIB3juRXmfYSOk4a2AEe/BDIyy7Hm+eje2Y13oUx5zejl+wFt1owrM7E8NWlbaEl5EGpg==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-8brVpAU5Uq7Bh0c8EFc4ZTf2JJTYn0o+1L+CUJB3UYIOkTjKGMgoHvduylrahdmNlr3DfH0rFq2DrbNZXgaspw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-9PB589e1aWZbrlFUHdz6WiPCL+xLZHQFX7oibqG/6Q0SwOkxDyQX9W/cyPa+sAPPKuC8cpLCpRczE5a/1DiwVQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-UEytdjgEh2tJGgD/gZK4FUx6t1rNIlM3U0DENhSrG7I75FGm1DnaDuVUWF1pWAWUwGmn1sCJ1VGHn8LhN1aTOw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-zifXeB8Y88qCYx8PLZ5oQb32KwZub+s925mMoZsBBq9KUQqWKkREubTfs6ASjRPPBe7Jt9O8OHH89+95VG+grA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-+EOkvg1Zn1vI1+fRDfRSAiJ7BWfcDAo5ASMmbqrcLZ4s4USk2FGkoHgeb2X+CkUgo2zJMiyObwf1k44CrRWsyw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-eHdV5bLx9sH+tBnbDjkIBdvQEH/c6MEtQYhTbxkaDK9qsIFFLtmJYEQFVdwhnruWotLfQmIuWEL/J+L3utE8rQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-FvgPt1bRmg8Xt2QpF7NUZW3dE0ZQHGm41dAdgT2J2GJPoIXz+9Em3NobAxf4fupcxhgHu03E5CRiU2MWvObXyg==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-DS39ziOgea75U/TrXKU2/oKp0be2jrDHnzFLvahg/0iNAT1Zq16e4Uw0WXwyXvsK+mG3BRyMb7A3NRZMDuEXtQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-mENc7WpJvJcW8hlMpzfFcHcEhTvYS5JMBmi9HVC1Q00uhBwML086MHYUV8QQdQv6lcu0Wg8dzd1RB8AFADcG/g==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-gvgW+JV/Mbjj6darztTetnmElpQEzZrXpJvfj+dOxNAxiyHEAyUvEjjl4zxblvmjmKmi3jfPoy7ZdxzCuUBJSA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-RHcPlLOThRJM51DSIC33ZnpDEBYhyEFroVWkd2P54PGGjkmAt14RboYUU9E1MFst666zFHM0tGtWvMjSOtU1pw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-rCMO3QsIVKv5JTY5CVbo2MvO77SpEqqYc8AvRE7OWqRDOIqAKjsp+DrmnY9uc8NPdxB5E2z47HTYGeE2+NTptg==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-GP1EZwhoZO/GGnhM1P5/2Vpm8iN8EnngyU0oezn2l78kN8tj25pyrvjIaT7azBhK615KSt+P2w39y57YV5jVkA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-D5jwp9JNuwDeCw3CYD2Fz+sSHo0droQjC8u75dJHe4aWr5q6yBiXZU+hurXnKudRgEpUkD5TsI6bjHPo5ThUxA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-WUymDDiN2DpoGudRN1aW4wF5O3BNQjZZO/5nngPoNiEVqjyOzirvZZNO0R6dC1ifucSINVaSv8JX1aq47VGgiA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-TEgECgJaWGAHJJZGzNNEYTNBdIXqX7LchANycpyP7DkfjmuiSN7ISt1k/ZRGVJgVJonsgP4vwaiKMn5utrcwWQ==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-FikrKJemoBGZQ6uRID0HJqSPBP6D7OppdD2OhLl0ZYLlAyPXI7MezoYGmumwNkrAoRm35xXkb4C8JPfJZZzcaw==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-u6F9MmTtBSLkiXNVDrtB/yPCZarM9smNswC24YYLV/M+bth6J3Gs3vlJezEoFwKZvPvxhCpUYdUnOsNG/0XOlA==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-qwOiz4Tjo8CNnrOLAYUMXeZwDzXgXpvK4TKQPmWLECM9XoWvA6+0Z2/7Ag3A4ivjS4ovbLJPbskkxioFyBhr8A==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-d8a+bBY/FxikNPlgJJoaBHZX+zKVbWHYJGTLnLvveQgFSTntkGdEKv3JDtHrMS0DNYpllz2nRsTLGLKYttbpmw==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-tPcHNI3FajdDBFpl/Ez1m2WL0ufJqBKyHxMDBvKitopamK36WwBGOMicuMEZKkM5Wce41QxUyv6BsiqfrWBiGg==}
- 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
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-xnXE7wG13PI+cxieVssYXlQJuYVRhH9NBoxt3KNwzghDIA69GMm7d4wXRouHIYjE+KvS6U/MsMO73NdS2MH9ZA==}
-
- '@reduxjs/[email protected]':
- resolution: {integrity: sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==}
- peerDependencies:
- react: ^16.9.0 || ^17.0.0 || ^18 || ^19
- react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0
- peerDependenciesMeta:
- react:
- optional: true
- react-redux:
- optional: true
-
- '@standard-schema/[email protected]':
- resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
-
- '@standard-schema/[email protected]':
- resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}
-
- resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-VMeFBSCKQKmm2swI2kW51SFusDqekC6q9trBCvJ/JliDchFSuoYYKN7yVNjPthP1HKZcx3U1gI/wTcEBjEFKTA==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}
- peerDependencies:
- '@types/react': ^19.2.0
-
- '@types/[email protected]':
- resolution: {integrity: sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}
-
- resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
- engines: {node: '>= 6.0.0'}
-
- resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
-
- resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
- engines: {node: '>= 8'}
-
- resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
-
- resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
- engines: {node: '>=10'}
-
- resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
-
- resolution: {integrity: sha512-FMhOoZV4+qR6aTUALKX2rEqGG+oyATvwBt9IIzVR5rMa2HRWPkxf+P+PAJLD1I/H5/II+HuZcBJYEFBpq39ong==}
- engines: {node: ^10 || ^12 || >=14}
- hasBin: true
- peerDependencies:
- postcss: '>=8.5.10'
-
- resolution: {integrity: sha512-J8SwNxprqqpbfenehxWYXE7CW+wM1BB4w3+N+g+/Wx40xM4rsLrfPmHHxSWIxJLYDgSY/HqlFPIYb2/S3rxafw==}
-
- resolution: {integrity: sha512-honAfLBde0HAFLdNyBEfuuENkF6zR+ozxqxa/2zJKHBe1qzLqyTSeRKpdPEHAP03rlDGyQOPnCSxnVpVqQo9Mg==}
- engines: {node: '>=6.0.0'}
- hasBin: true
-
- resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==}
- engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
- hasBin: true
-
- resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==}
-
- resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
- engines: {node: '>= 8.10.0'}
-
- resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
- engines: {node: '>= 20.19.0'}
-
- resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
-
- resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
-
- resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
- engines: {node: '>=6'}
-
- resolution: {integrity: sha512-AnsjfHyHpQ/EFeAnG216WY7A5LiYCoZzCSygiLvfXC3H3LFGCprErteUcszaVluGOhuOTbJS3jWHrSDYPBBygg==}
- peerDependencies:
- react: ^18 || ^19 || ^19.0.0-rc
- react-dom: ^18 || ^19 || ^19.0.0-rc
-
- resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
- engines: {node: '>= 0.8'}
-
- resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
- engines: {node: '>=4'}
- hasBin: true
-
- resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
-
- resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}
-
- resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
- engines: {node: '>=6.0'}
- peerDependencies:
- supports-color: '*'
- peerDependenciesMeta:
- supports-color:
- optional: true
-
- resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}
-
- resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
- engines: {node: '>=0.4.0'}
-
- resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
-
- resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
-
- resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
-
- resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==}
-
- resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-e9htk9mAYL6AzmkEhSvVVw7IWGSBJ/Bqdn2eRyRLrj1g6sncN4WbFt5qnILYoCktktr45pyjIrOiRvBThQ808w==}
-
- resolution: {integrity: sha512-z9Y0K84BJvhChXgqn2CFYbfEi6AwEr+FFVVKm/MqbTQ2zIzO1VQri6w67LcfpVF0AjbhwVMywDZqY4alYkjW5w==}
- peerDependencies:
- react: ^16.8.0 || ^17.0.1 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
-
- resolution: {integrity: sha512-n7VSoGIiiDIc4MfXF3ZRTO59KDp820QDuyBDGlt5/65+lumPHxX2JLz0EZ23hZ4eg4vZGUXwMkYv02fw2JVo/A==}
- peerDependencies:
- embla-carousel: 8.5.1
-
- resolution: {integrity: sha512-JUb5+FOHobSiWQ2EJNaueCNT/cQU9L6XWBbWmorWPQT9bkbk+fhsuLr8wWrzXKagO3oWszBO7MSx+GfaRk4E6A==}
-
- resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
- engines: {node: '>=6'}
-
- resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}
-
- resolution: {integrity: sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==}
- engines: {node: '>=6.0.0'}
-
- resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
- engines: {node: '>=8.6.0'}
-
- resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
-
- resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
- engines: {node: '>=12.0.0'}
- peerDependencies:
- picomatch: ^3 || ^4
- peerDependenciesMeta:
- picomatch:
- optional: true
-
- resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==}
- engines: {node: '>=4.0'}
- peerDependencies:
- debug: '*'
- peerDependenciesMeta:
- debug:
- optional: true
-
- resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
-
- resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
- os: [darwin]
-
- resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
-
- resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
- engines: {node: '>=6'}
-
- resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
- engines: {node: '>=10.13.0'}
-
- resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-/tbkHMW7y10Lx6i1crLjD4/OhNkRG+Fo7byZHtah0547nIeXYcpIXaUh0IAQY6gO5459qpGGYapcEOHtFXkIuA==}
-
- resolution: {integrity: sha512-q1swsS8K7L8usSHuOqF2TAoCCkonYz0SG38wLAggaa4Wml70zixIvt2ql4coQ2C2B3hTjltJry4r6bULwgAXLQ==}
-
- resolution: {integrity: sha512-+yvpmKYKHi9jIGngxagY9oWiiblPB7+nEO75F2l2o4vs+6vpPZZmUl4tBNYuTCvQjhvEIbdNeJu70bhfYP2nbw==}
- peerDependencies:
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
- react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
-
- resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
- engines: {node: '>=0.12.0'}
-
- resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
- hasBin: true
-
- resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
-
- resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
- engines: {node: '>=14'}
-
- resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
-
- resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==}
-
- resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
- hasBin: true
-
- resolution: {integrity: sha512-hw7zMDwykCLnEzgncEEjHeA6+45aeEzRYuKHuyRSOPkhko+J3ySGjGIzu+mmMfDFG1vazHepMaYFYHbTFAZAAQ==}
- peerDependencies:
- react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc
-
- resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
- engines: {node: '>= 8'}
-
- resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
- engines: {node: '>=8.6'}
-
- resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
- engines: {node: '>= 0.6'}
-
- resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
- engines: {node: '>= 0.6'}
-
- resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
-
- resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
-
- resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}
- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
- hasBin: true
-
- resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}
- peerDependencies:
- react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
- react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
-
- resolution: {integrity: sha512-eKL8zUJkX9Y5lE+RX/2YJoItVdGlIscyVyboeD9wSpp0PaGqjoA4tTpT2qPqz9ax+5IzGESyLSeZ/RCwbSZ2uQ==}
- engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
- hasBin: true
- peerDependencies:
- '@opentelemetry/api': ^1.1.0
- '@playwright/test': ^1.51.1
- babel-plugin-react-compiler: '*'
- react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
- react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
- sass: ^1.3.0
- peerDependenciesMeta:
- '@opentelemetry/api':
- optional: true
- '@playwright/test':
- optional: true
- babel-plugin-react-compiler:
- optional: true
- sass:
- optional: true
-
- resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==}
-
- resolution: {integrity: sha512-Uzmd6LXpouKo8EUK68IjH4+E01w/hXyV3R3g/geCJo+rXLNfh1xucB+LOzYEOQPSiUK3h/xZf0cQGcSsmyL2Og==}
- engines: {node: '>=18'}
-
- resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
-
- resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
-
- resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
- engines: {node: '>=8.6'}
-
- resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}
- engines: {node: '>=12'}
-
- resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==}
- engines: {node: '>= 6'}
-
- resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
- engines: {node: '>=14.0.0'}
- peerDependencies:
- postcss: '>=8.5.10'
-
- resolution: {integrity: sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==}
- engines: {node: ^12 || ^14 || >= 16}
- peerDependencies:
- postcss: '>=8.5.10'
-
- resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
- engines: {node: '>= 18'}
- peerDependencies:
- jiti: '>=1.21.0'
- postcss: '>=8.5.10'
- tsx: ^4.8.1
- yaml: '>=2.8.3'
- peerDependenciesMeta:
- jiti:
- optional: true
- postcss:
- optional: true
- tsx:
- optional: true
- yaml:
- optional: true
-
- resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
- engines: {node: '>=12.0'}
- peerDependencies:
- postcss: '>=8.5.10'
-
- resolution: {integrity: sha512-cDoO18VWCIWRsSaws3C23b0HXRxlUknttfdNcbXnf3IGHAPRNLlXPHc6dYiatOkxW0W4uZh524Plaaw5a7WEtQ==}
- engines: {node: '>=4'}
-
- resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
-
- resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==}
- engines: {node: ^10 || ^12 || >=14}
-
- resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
-
- resolution: {integrity: sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==}
- engines: {node: '>=10'}
-
- resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
-
- resolution: {integrity: sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==}
- peerDependencies:
- date-fns: ^2.28.0 || ^3.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
-
- resolution: {integrity: sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==}
- peerDependencies:
- react: ^19.2.7
-
- resolution: {integrity: sha512-EEZqc+N23moyzTlz61Pj+JvcXo76ICkpfOZo8JZw+sM4+wLQGh6nI2Ms+PdMOYNluFu0ghlM7B8mCzhRYtJCnA==}
- engines: {node: '>=18.0.0'}
- peerDependencies:
- react: ^16.8.0 || ^17 || ^18 || ^19
-
- resolution: {integrity: sha512-RH93p5ki6LfOiIt0UtDyNg/cee+HLVR6cHHtW3wALfo+eOHTp8RnU2kRkI6E+H19zMIs03DyxUG/GfZMOGvmiA==}
- peerDependencies:
- react: '*'
-
- resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
-
- resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
-
- resolution: {integrity: sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==}
- peerDependencies:
- '@types/react': ^18.2.25 || ^19
- react: ^18.0 || ^19
- redux: ^5.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
- redux:
- optional: true
-
- resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- resolution: {integrity: sha512-z77+X08YDIrgAes4jl8xhnUu1LNIRp4+E7cv4xHmLOxxUPO/ML7PSrE813b90vj7xvQ1lcf7g2uA9GeMZonjhQ==}
- peerDependencies:
- react: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- react-dom: ^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
-
- resolution: {integrity: sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==}
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
- resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==}
- peerDependencies:
- react: '>=16.6.0'
- react-dom: '>=16.6.0'
-
- resolution: {integrity: sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
-
- resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
- engines: {node: '>=8.10.0'}
-
- resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}
- engines: {node: '>= 20.19.0'}
-
- resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}
-
- resolution: {integrity: sha512-cIvMxDfpAmqAmVgc4yb7pgm/O1tmmkl/CjrvXuW+62/+7jj/iF9Ykm+hb/UJt42TREHMyd3gb+pkgoa2MxgDIw==}
- engines: {node: '>=14'}
- deprecated: 1.x and 2.x branches are no longer active. Bump to Recharts v3 to receive latest features and bugfixes. See https://github.com/recharts/recharts/wiki/3.0-migration-guide
- peerDependencies:
- react: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
- resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==}
- peerDependencies:
- redux: ^5.0.0
-
- resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==}
-
- resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==}
-
- resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==}
- engines: {node: '>= 0.4'}
- hasBin: true
-
- resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
- engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
-
- resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
-
- resolution: {integrity: sha512-B5j0rYMlinhhOo9tjQebMVVn0TfyXAF+wB3b2ggZUuJ/is/Y+7+JGjirAMxHZ9Z3hIP98NPfamlAkBHa1lAaXQ==}
- engines: {node: '>=20.19.0'}
- hasBin: true
-
- resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
-
- resolution: {integrity: sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==}
- engines: {node: '>=10'}
- hasBin: true
-
- resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}
- engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
-
- resolution: {integrity: sha512-DIS8z4PfJRbIyfVFDVnK9rO3eYDtse4Omcm6bt0oEr5/jtLgysmjuBl1frJ9E/EQZrFmKx2A8m/s5s9CRXIzhw==}
- peerDependencies:
- react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
-
- resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
- engines: {node: '>=0.10.0'}
-
- resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}
- engines: {node: '>= 12.0.0'}
- peerDependencies:
- '@babel/core': '*'
- babel-plugin-macros: '*'
- react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0'
- peerDependenciesMeta:
- '@babel/core':
- optional: true
- babel-plugin-macros:
- optional: true
-
- resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==}
- engines: {node: '>=16 || 14 >=14.17'}
- hasBin: true
-
- resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
- engines: {node: '>= 0.4'}
-
- resolution: {integrity: sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==}
-
- resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}
- peerDependencies:
- tailwindcss: '>=3.0.0 || insiders'
-
- resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==}
- engines: {node: '>=14.0.0'}
- hasBin: true
-
- resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
- engines: {node: '>=0.8'}
-
- resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
-
- resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
-
- resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
- engines: {node: '>=12.0.0'}
-
- resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
- engines: {node: '>=8.0'}
-
- resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
-
- resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
-
- resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
- engines: {node: '>=14.17'}
- hasBin: true
-
- resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
-
- resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
- hasBin: true
- peerDependencies:
- browserslist: '>= 4.21.0'
-
- resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
- resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
- resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
-
- resolution: {integrity: sha512-7afKg48srluhZwIkaU+lgGtFCUsYBSGOl8vcc8N/M3YQlZFlynHD15AE+pwrYdc826o7nrIND4lL9Y6b9WWZZQ==}
- peerDependencies:
- react: ^16.8 || ^17.0 || ^18.0
- react-dom: ^16.8 || ^17.0 || ^18.0
-
- resolution: {integrity: sha512-PnpQQMuxlwYdocC8fIJqVXvkeViHYzotI+NJrCuav0ZYFoq912ZHBk3mCeuj+5/VpodOjPe1z0Fk2ihgzlXqjQ==}
-
- resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
-
-snapshots:
-
- '@alloc/[email protected]': {}
-
- '@babel/[email protected]': {}
-
- '@emnapi/[email protected]':
- dependencies:
- tslib: 2.8.1
- optional: true
-
- '@floating-ui/[email protected]':
- dependencies:
- '@floating-ui/utils': 0.2.11
-
- '@floating-ui/[email protected]':
- dependencies:
- '@floating-ui/core': 1.7.5
- '@floating-ui/utils': 0.2.11
-
- dependencies:
- '@floating-ui/dom': 1.7.6
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- '@floating-ui/[email protected]': {}
-
- dependencies:
- react-hook-form: 7.78.0([email protected])
-
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-darwin-arm64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-darwin-x64': 1.2.4
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-arm64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-arm': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-ppc64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-riscv64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-s390x': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linux-x64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
- optional: true
-
- optionalDependencies:
- '@img/sharp-libvips-linuxmusl-x64': 1.2.4
- optional: true
-
- dependencies:
- '@emnapi/runtime': 1.11.0
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- '@jridgewell/[email protected]':
- dependencies:
- '@jridgewell/sourcemap-codec': 1.5.5
- '@jridgewell/trace-mapping': 0.3.31
-
- '@jridgewell/[email protected]': {}
-
- '@jridgewell/[email protected]': {}
-
- '@jridgewell/[email protected]':
- dependencies:
- '@jridgewell/resolve-uri': 3.1.2
- '@jridgewell/sourcemap-codec': 1.5.5
-
- '@next/[email protected]': {}
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- optional: true
-
- '@nodelib/[email protected]':
- dependencies:
- '@nodelib/fs.stat': 2.0.5
- run-parallel: 1.2.0
-
- '@nodelib/[email protected]': {}
-
- '@nodelib/[email protected]':
- dependencies:
- '@nodelib/fs.scandir': 2.1.5
- fastq: 1.20.1
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- optional: true
-
- '@parcel/[email protected]':
- dependencies:
- detect-libc: 2.1.2
- is-glob: 4.0.3
- node-addon-api: 7.1.1
- picomatch: 4.0.4
- optionalDependencies:
- '@parcel/watcher-android-arm64': 2.5.6
- '@parcel/watcher-darwin-arm64': 2.5.6
- '@parcel/watcher-darwin-x64': 2.5.6
- '@parcel/watcher-freebsd-x64': 2.5.6
- '@parcel/watcher-linux-arm-glibc': 2.5.6
- '@parcel/watcher-linux-arm-musl': 2.5.6
- '@parcel/watcher-linux-arm64-glibc': 2.5.6
- '@parcel/watcher-linux-arm64-musl': 2.5.6
- '@parcel/watcher-linux-x64-glibc': 2.5.6
- '@parcel/watcher-linux-x64-musl': 2.5.6
- '@parcel/watcher-win32-arm64': 2.5.6
- '@parcel/watcher-win32-ia32': 2.5.6
- '@parcel/watcher-win32-x64': 2.5.6
- optional: true
-
- '@radix-ui/[email protected]': {}
-
- '@radix-ui/[email protected]': {}
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-collapsible': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-is-hydrated': 0.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- aria-hidden: 1.2.6
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-escape-keydown': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- aria-hidden: 1.2.6
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-visually-hidden': 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- aria-hidden: 1.2.6
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@floating-ui/react-dom': 2.1.8([email protected]([email protected]))([email protected])
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-rect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/rect': 1.1.2
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/number': 1.1.2
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/number': 1.1.2
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-focus-guards': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-visually-hidden': 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- aria-hidden: 1.2.6
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/number': 1.1.2
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-previous': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-size': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-visually-hidden': 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-direction': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- '@radix-ui/primitive': 1.1.4
- '@radix-ui/react-compose-refs': 1.1.3(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.4(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-slot': 1.2.5(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.2.3(@types/[email protected])([email protected])
- '@radix-ui/react-visually-hidden': 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/react-use-effect-event': 0.0.3(@types/[email protected])([email protected])
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/react-use-callback-ref': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/rect': 1.1.2
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- '@types/react-dom': 19.2.3(@types/[email protected])
-
- '@radix-ui/[email protected]': {}
-
- dependencies:
- '@standard-schema/spec': 1.1.0
- '@standard-schema/utils': 0.3.0
- immer: 11.1.8
- redux: 5.0.1
- redux-thunk: 3.1.0([email protected])
- reselect: 5.2.0
- optionalDependencies:
- react: 19.2.7
-
- '@standard-schema/[email protected]': {}
-
- '@standard-schema/[email protected]': {}
-
- dependencies:
- tslib: 2.8.1
-
- '@types/[email protected]': {}
-
- '@types/[email protected]': {}
-
- '@types/[email protected]': {}
-
- '@types/[email protected]':
- dependencies:
- '@types/d3-color': 3.1.3
-
- '@types/[email protected]': {}
-
- '@types/[email protected]':
- dependencies:
- '@types/d3-time': 3.0.4
-
- '@types/[email protected]':
- dependencies:
- '@types/d3-path': 3.1.1
-
- '@types/[email protected]': {}
-
- '@types/[email protected]': {}
-
- '@types/[email protected]': {}
-
- '@types/[email protected]':
- dependencies:
- undici-types: 6.21.0
-
- dependencies:
- '@types/react': 19.2.17
-
- '@types/[email protected]':
- dependencies:
- csstype: 3.2.3
-
- '@types/[email protected]': {}
-
- dependencies:
- debug: 4.4.3
- transitivePeerDependencies:
- - supports-color
-
-
- dependencies:
- normalize-path: 3.0.0
- picomatch: 2.3.2
-
-
- dependencies:
- tslib: 2.8.1
-
-
- dependencies:
- browserslist: 4.28.2
- caniuse-lite: 1.0.30001799
- fraction.js: 5.3.4
- picocolors: 1.1.1
- postcss: 8.5.15
- postcss-value-parser: 4.2.0
-
- dependencies:
- follow-redirects: 1.16.0
- form-data: 4.0.6
- https-proxy-agent: 5.0.1
- proxy-from-env: 2.1.0
- transitivePeerDependencies:
- - debug
- - supports-color
-
-
-
- dependencies:
- fill-range: 7.1.1
-
- dependencies:
- baseline-browser-mapping: 2.10.35
- caniuse-lite: 1.0.30001799
- electron-to-chromium: 1.5.371
- node-releases: 2.0.47
- update-browserslist-db: 1.2.3([email protected])
-
- dependencies:
- es-errors: 1.3.0
- function-bind: 1.1.2
-
-
-
- dependencies:
- anymatch: 3.1.3
- braces: 3.0.3
- glob-parent: 5.1.2
- is-binary-path: 2.1.0
- is-glob: 4.0.3
- normalize-path: 3.0.0
- readdirp: 3.6.0
- optionalDependencies:
- fsevents: 2.3.3
-
- dependencies:
- readdirp: 5.0.0
-
- dependencies:
- clsx: 2.1.1
-
-
-
- dependencies:
- '@radix-ui/react-id': 1.1.2(@types/[email protected])([email protected])
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- use-sync-external-store: 1.6.0([email protected])
- transitivePeerDependencies:
- - '@types/react'
- - '@types/react-dom'
-
- dependencies:
- delayed-stream: 1.0.0
-
-
-
-
- dependencies:
- internmap: 2.0.3
-
-
-
-
- dependencies:
- d3-color: 3.1.0
-
-
- dependencies:
- d3-array: 3.2.4
- d3-format: 3.1.2
- d3-interpolate: 3.0.1
- d3-time: 3.1.0
- d3-time-format: 4.1.0
-
- dependencies:
- d3-path: 3.1.0
-
- dependencies:
- d3-time: 3.1.0
-
- dependencies:
- d3-array: 3.2.4
-
-
-
- dependencies:
- ms: 2.1.3
-
-
-
- optional: true
-
-
-
-
- dependencies:
- '@babel/runtime': 7.29.7
- csstype: 3.2.3
-
- dependencies:
- call-bind-apply-helpers: 1.0.2
- es-errors: 1.3.0
- gopd: 1.2.0
-
-
- dependencies:
- embla-carousel: 8.5.1
- embla-carousel-reactive-utils: 8.5.1([email protected])
- react: 19.2.7
-
- dependencies:
- embla-carousel: 8.5.1
-
-
-
-
- dependencies:
- es-errors: 1.3.0
-
- dependencies:
- es-errors: 1.3.0
- get-intrinsic: 1.3.0
- has-tostringtag: 1.0.2
- hasown: 2.0.4
-
-
-
-
- dependencies:
- '@nodelib/fs.stat': 2.0.5
- '@nodelib/fs.walk': 1.2.8
- glob-parent: 5.1.2
- merge2: 1.4.1
- micromatch: 4.0.8
-
- dependencies:
- reusify: 1.1.0
-
- optionalDependencies:
- picomatch: 4.0.4
-
- dependencies:
- to-regex-range: 5.0.1
-
-
- dependencies:
- asynckit: 0.4.0
- combined-stream: 1.0.8
- es-set-tostringtag: 2.1.0
- hasown: 2.0.4
- mime-types: 2.1.35
-
-
- optional: true
-
-
- dependencies:
- call-bind-apply-helpers: 1.0.2
- es-define-property: 1.0.1
- es-errors: 1.3.0
- es-object-atoms: 1.1.2
- function-bind: 1.1.2
- get-proto: 1.0.1
- gopd: 1.2.0
- has-symbols: 1.1.0
- hasown: 2.0.4
- math-intrinsics: 1.1.0
-
-
- dependencies:
- dunder-proto: 1.0.1
- es-object-atoms: 1.1.2
-
- dependencies:
- is-glob: 4.0.3
-
- dependencies:
- is-glob: 4.0.3
-
-
-
- dependencies:
- has-symbols: 1.1.0
-
- dependencies:
- function-bind: 1.1.2
-
- dependencies:
- agent-base: 6.0.2
- debug: 4.4.3
- transitivePeerDependencies:
- - supports-color
-
-
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
-
- dependencies:
- binary-extensions: 2.3.0
-
- dependencies:
- hasown: 2.0.4
-
-
- dependencies:
- is-extglob: 2.1.1
-
-
-
-
-
-
-
- dependencies:
- js-tokens: 4.0.0
-
- dependencies:
- react: 19.2.7
-
-
-
- dependencies:
- braces: 3.0.3
- picomatch: 2.3.2
-
-
- dependencies:
- mime-db: 1.52.0
-
-
- dependencies:
- any-promise: 1.3.0
- object-assign: 4.1.1
- thenify-all: 1.6.0
-
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- '@next/env': 15.5.18
- '@swc/helpers': 0.5.15
- caniuse-lite: 1.0.30001799
- postcss: 8.5.15
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- styled-jsx: 5.1.6([email protected])
- optionalDependencies:
- '@next/swc-darwin-arm64': 15.5.18
- '@next/swc-darwin-x64': 15.5.18
- '@next/swc-linux-arm64-gnu': 15.5.18
- '@next/swc-linux-arm64-musl': 15.5.18
- '@next/swc-linux-x64-gnu': 15.5.18
- '@next/swc-linux-x64-musl': 15.5.18
- '@next/swc-win32-arm64-msvc': 15.5.18
- '@next/swc-win32-x64-msvc': 15.5.18
- sass: 1.100.0
- sharp: 0.34.5
- transitivePeerDependencies:
- - '@babel/core'
- - babel-plugin-macros
-
- optional: true
-
-
-
-
-
-
-
-
-
-
-
- dependencies:
- postcss: 8.5.15
- postcss-value-parser: 4.2.0
- read-cache: 1.0.0
- resolve: 1.22.12
-
- dependencies:
- camelcase-css: 2.0.1
- postcss: 8.5.15
-
- dependencies:
- lilconfig: 3.1.3
- optionalDependencies:
- jiti: 1.21.7
- postcss: 8.5.15
-
- dependencies:
- postcss: 8.5.15
- postcss-selector-parser: 6.1.3
-
- dependencies:
- cssesc: 3.0.0
- util-deprecate: 1.0.2
-
-
- dependencies:
- nanoid: 3.3.12
- picocolors: 1.1.1
- source-map-js: 1.2.1
-
- dependencies:
- loose-envify: 1.4.0
- object-assign: 4.1.1
- react-is: 16.13.1
-
-
-
- dependencies:
- date-fns: 4.1.0
- react: 19.2.7
-
- dependencies:
- react: 19.2.7
- scheduler: 0.27.0
-
- dependencies:
- react: 19.2.7
-
- dependencies:
- react: 19.2.7
-
-
-
- dependencies:
- '@types/use-sync-external-store': 0.0.6
- react: 19.2.7
- use-sync-external-store: 1.6.0([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
- redux: 5.0.1
-
- dependencies:
- react: 19.2.7
- react-style-singleton: 2.2.3(@types/[email protected])([email protected])
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
- react-style-singleton: 2.2.3(@types/[email protected])([email protected])
- tslib: 2.8.1
- use-callback-ref: 1.3.3(@types/[email protected])([email protected])
- use-sidecar: 1.1.3(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
- dependencies:
- fast-equals: 5.4.0
- prop-types: 15.8.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-transition-group: 4.4.5([email protected]([email protected]))([email protected])
-
- dependencies:
- get-nonce: 1.0.1
- react: 19.2.7
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- '@babel/runtime': 7.29.7
- dom-helpers: 5.2.1
- loose-envify: 1.4.0
- prop-types: 15.8.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
-
- dependencies:
- pify: 2.3.0
-
- dependencies:
- picomatch: 2.3.2
-
-
- dependencies:
- decimal.js-light: 2.5.1
-
- dependencies:
- clsx: 2.1.1
- eventemitter3: 4.0.7
- lodash: 4.18.1
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- react-is: 18.3.1
- recharts-scale: 0.4.5
- tiny-invariant: 1.3.3
- victory-vendor: 36.9.2
-
- dependencies:
- redux: 5.0.1
-
-
-
- dependencies:
- es-errors: 1.3.0
- is-core-module: 2.16.2
- path-parse: 1.0.7
- supports-preserve-symlinks-flag: 1.0.0
-
-
- dependencies:
- queue-microtask: 1.2.3
-
- dependencies:
- chokidar: 5.0.0
- immutable: 5.1.6
- source-map-js: 1.2.1
- optionalDependencies:
- '@parcel/watcher': 2.5.6
-
-
- optional: true
-
- dependencies:
- '@img/colour': 1.1.0
- detect-libc: 2.1.2
- semver: 7.8.4
- optionalDependencies:
- '@img/sharp-darwin-arm64': 0.34.5
- '@img/sharp-darwin-x64': 0.34.5
- '@img/sharp-libvips-darwin-arm64': 1.2.4
- '@img/sharp-libvips-darwin-x64': 1.2.4
- '@img/sharp-libvips-linux-arm': 1.2.4
- '@img/sharp-libvips-linux-arm64': 1.2.4
- '@img/sharp-libvips-linux-ppc64': 1.2.4
- '@img/sharp-libvips-linux-riscv64': 1.2.4
- '@img/sharp-libvips-linux-s390x': 1.2.4
- '@img/sharp-libvips-linux-x64': 1.2.4
- '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
- '@img/sharp-libvips-linuxmusl-x64': 1.2.4
- '@img/sharp-linux-arm': 0.34.5
- '@img/sharp-linux-arm64': 0.34.5
- '@img/sharp-linux-ppc64': 0.34.5
- '@img/sharp-linux-riscv64': 0.34.5
- '@img/sharp-linux-s390x': 0.34.5
- '@img/sharp-linux-x64': 0.34.5
- '@img/sharp-linuxmusl-arm64': 0.34.5
- '@img/sharp-linuxmusl-x64': 0.34.5
- '@img/sharp-wasm32': 0.34.5
- '@img/sharp-win32-arm64': 0.34.5
- '@img/sharp-win32-ia32': 0.34.5
- '@img/sharp-win32-x64': 0.34.5
- optional: true
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
-
-
- dependencies:
- client-only: 0.0.1
- react: 19.2.7
-
- dependencies:
- '@jridgewell/gen-mapping': 0.3.13
- commander: 4.1.1
- lines-and-columns: 1.2.4
- mz: 2.7.0
- pirates: 4.0.7
- tinyglobby: 0.2.17
- ts-interface-checker: 0.1.13
-
-
-
- dependencies:
- tailwindcss: 3.4.19
-
- dependencies:
- '@alloc/quick-lru': 5.2.0
- arg: 5.0.2
- chokidar: 3.6.0
- didyoumean: 1.2.2
- dlv: 1.1.3
- fast-glob: 3.3.3
- glob-parent: 6.0.2
- is-glob: 4.0.3
- jiti: 1.21.7
- lilconfig: 3.1.3
- micromatch: 4.0.8
- normalize-path: 3.0.0
- object-hash: 3.0.0
- picocolors: 1.1.1
- postcss: 8.5.15
- postcss-import: 15.1.0([email protected])
- postcss-js: 4.1.0([email protected])
- postcss-load-config: 6.0.1([email protected])([email protected])
- postcss-nested: 6.2.0([email protected])
- postcss-selector-parser: 6.1.3
- resolve: 1.22.12
- sucrase: 3.35.1
- transitivePeerDependencies:
- - tsx
- - yaml
-
- dependencies:
- thenify: 3.3.1
-
- dependencies:
- any-promise: 1.3.0
-
-
- dependencies:
- fdir: 6.5.0([email protected])
- picomatch: 4.0.4
-
- dependencies:
- is-number: 7.0.0
-
-
-
-
-
- dependencies:
- browserslist: 4.28.2
- escalade: 3.2.0
- picocolors: 1.1.1
-
- dependencies:
- react: 19.2.7
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- detect-node-es: 1.1.0
- react: 19.2.7
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 19.2.17
-
- dependencies:
- react: 19.2.7
-
-
- dependencies:
- react: 19.2.7
- react-dom: 19.2.7([email protected])
- transitivePeerDependencies:
- - '@types/react'
- - '@types/react-dom'
-
- dependencies:
- '@types/d3-array': 3.2.2
- '@types/d3-ease': 3.0.2
- '@types/d3-interpolate': 3.0.4
- '@types/d3-scale': 4.0.9
- '@types/d3-shape': 3.1.8
- '@types/d3-time': 3.0.4
- '@types/d3-timer': 3.0.2
- d3-array: 3.2.4
- d3-ease: 3.0.1
- d3-interpolate: 3.0.1
- d3-scale: 4.0.2
- d3-shape: 3.2.0
- d3-time: 3.1.0
- d3-timer: 3.0.1
-
diff --git a/openmemory/ui/pnpm-workspace.yaml b/openmemory/ui/pnpm-workspace.yaml
deleted file mode 100644
index 367d92f14..000000000
--- a/openmemory/ui/pnpm-workspace.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-packages:
- - '.'
-
-onlyBuiltDependencies:
- - "@parcel/watcher"
- - sharp
-
-overrides:
- "form-data@<4.0.6": ">=4.0.6"
- "immutable@>=5.0.0 <5.1.5": "^5.1.5"
- "picomatch@<2.3.2": "^2.3.2"
- "minimatch@>=9.0.0 <9.0.7": "^9.0.7"
- "glob@>=10.2.0 <10.5.0": "^10.5.0"
- "postcss@<8.5.10": ">=8.5.10"
- "yaml@>=2.0.0 <2.8.3": ">=2.8.3"
diff --git a/openmemory/ui/postcss.config.mjs b/openmemory/ui/postcss.config.mjs
deleted file mode 100644
index 1a69fd2a4..000000000
--- a/openmemory/ui/postcss.config.mjs
+++ /dev/null
@@ -1,8 +0,0 @@
-/** @type {import('postcss-load-config').Config} */
-const config = {
- plugins: {
- tailwindcss: {},
- },
-};
-
-export default config;
diff --git a/openmemory/ui/public/images/augment.png b/openmemory/ui/public/images/augment.png
deleted file mode 100644
index cbfa5523d..000000000
Binary files a/openmemory/ui/public/images/augment.png and /dev/null differ
diff --git a/openmemory/ui/public/images/claude.webp b/openmemory/ui/public/images/claude.webp
deleted file mode 100644
index fbfcecfb9..000000000
Binary files a/openmemory/ui/public/images/claude.webp and /dev/null differ
diff --git a/openmemory/ui/public/images/cline.png b/openmemory/ui/public/images/cline.png
deleted file mode 100644
index f3b8af15f..000000000
Binary files a/openmemory/ui/public/images/cline.png and /dev/null differ
diff --git a/openmemory/ui/public/images/cursor.png b/openmemory/ui/public/images/cursor.png
deleted file mode 100644
index 70887f48c..000000000
Binary files a/openmemory/ui/public/images/cursor.png and /dev/null differ
diff --git a/openmemory/ui/public/images/default.png b/openmemory/ui/public/images/default.png
deleted file mode 100644
index 21c185cc6..000000000
Binary files a/openmemory/ui/public/images/default.png and /dev/null differ
diff --git a/openmemory/ui/public/images/enconvo.png b/openmemory/ui/public/images/enconvo.png
deleted file mode 100644
index a8570cb91..000000000
Binary files a/openmemory/ui/public/images/enconvo.png and /dev/null differ
diff --git a/openmemory/ui/public/images/open-memory.svg b/openmemory/ui/public/images/open-memory.svg
deleted file mode 100644
index 880b5ba5a..000000000
--- a/openmemory/ui/public/images/open-memory.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg width="108" height="108" viewBox="0 0 108 108" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M56.1537 8.95776C58.6168 8.95776 60.6135 6.96102 60.6135 4.49792C60.6135 2.03482 58.6168 0.0380859 56.1537 0.0380859C53.6906 0.0380859 51.6939 2.03482 51.6939 4.49792C51.6939 6.96102 53.6906 8.95776 56.1537 8.95776ZM38.4182 29.3545C37.2703 27.8706 36.3474 26.0172 36.833 24.205C37.3186 22.3928 39.0445 21.2492 40.7806 20.538C42.9589 19.6458 44.71 17.7824 45.3663 15.3332C46.4819 11.1696 44.0111 6.88999 39.8475 5.77437C35.684 4.65876 31.4044 7.12959 30.2887 11.2931C29.6325 13.7425 30.2173 16.2319 31.6578 18.0938C32.8058 19.5776 33.7287 21.431 33.2431 23.2431C32.7575 25.0553 31.0317 26.1989 29.2955 26.9099C27.1171 27.8021 25.3658 29.6656 24.7096 32.1149C23.5939 36.2785 26.0648 40.5581 30.2283 41.6737C34.3919 42.7893 38.6715 40.3185 39.7871 36.1549C40.4434 33.7057 39.8586 31.2164 38.4182 29.3545ZM86.1482 38.6266C84.3362 38.1411 82.483 39.0639 80.9994 40.2118C79.1375 41.6523 76.6479 42.2373 74.1986 41.5809C70.035 40.4653 67.5642 36.1857 68.6798 32.0222C69.7954 27.8586 74.075 25.3878 78.2386 26.5034C80.6877 27.1597 82.5512 28.9107 83.4434 31.089C84.1546 32.8252 85.2983 34.5512 87.1106 35.0368C88.9228 35.5224 90.7761 34.5996 92.2601 33.4518C94.1219 32.0117 96.6111 31.427 99.0601 32.0832C103.224 33.1989 105.694 37.4785 104.579 41.642C103.463 45.8056 99.1836 48.2764 95.0201 47.1608C92.5706 46.5044 90.707 44.753 89.8148 42.5743C89.1039 40.8381 87.9604 39.1122 86.1482 38.6266ZM103.562 77.1778C100.514 80.2257 95.5723 80.2257 92.5243 77.1778C90.7315 75.385 89.9933 72.937 90.3095 70.6046C90.5616 68.7456 90.434 66.6791 89.1074 65.3526C87.7808 64.026 85.7143 63.8984 83.8553 64.1505C81.5228 64.4668 79.0748 63.7285 77.2819 61.9357C74.234 58.8878 74.234 53.9461 77.2819 50.8982C80.3299 47.8503 85.2715 47.8503 88.3195 50.8982C90.1127 52.6915 90.8509 55.1403 90.534 57.4733C90.2816 59.332 90.4089 61.3981 91.7353 62.7245C93.0617 64.0509 95.1279 64.1782 96.9867 63.9257C99.3197 63.6088 101.769 64.347 103.562 66.1403C106.61 69.1882 106.61 74.1299 103.562 77.1778ZM64.1201 96.0387C63.0045 100.202 65.4753 104.482 69.6389 105.597C73.8024 106.713 78.082 104.242 79.1977 100.079C79.854 97.6293 79.2691 95.1398 77.8285 93.2779C76.6805 91.7942 75.7578 89.941 76.2433 88.129C76.7288 86.3171 78.4545 85.1735 80.1904 84.4626C82.3688 83.5704 84.1201 81.7069 84.7764 79.2576C85.892 75.094 83.4212 70.8144 79.2576 69.6988C75.0941 68.5832 70.8144 71.054 69.6988 75.2176C69.0425 77.667 69.6275 80.1566 71.0681 82.0185C72.2161 83.5022 73.1389 85.3553 72.6534 87.1673C72.1678 88.9792 70.4422 90.1227 68.7063 90.8336C66.5278 91.7258 64.7764 93.5893 64.1201 96.0387ZM28.837 99.7103C26.6818 95.9774 27.9607 91.2041 31.6937 89.0489C33.8898 87.781 36.4459 87.7016 38.6172 88.6113C40.3475 89.3361 42.3764 89.7478 44.0011 88.8099C45.6257 87.8719 46.2836 85.9088 46.521 84.0479C46.8189 81.7126 48.1657 79.5385 50.3618 78.2706C54.0947 76.1154 58.868 77.3944 61.0232 81.1273C63.1784 84.8602 61.8994 89.6335 58.1665 91.7887C55.9707 93.0565 53.4149 93.136 51.2438 92.2267C49.5133 91.502 47.4842 91.0903 45.8595 92.0284C44.2347 92.9665 43.5767 94.9296 43.3391 96.7907C43.041 99.1256 41.6942 101.299 39.4984 102.567C35.7655 104.722 30.9922 103.443 28.837 99.7103ZM28.4865 71.1602C27.0029 72.3082 25.1498 73.231 23.3379 72.7455C21.5259 72.2599 20.3825 70.5342 19.6716 68.7983C18.7795 66.6196 16.9159 64.8681 14.4664 64.2118C10.3028 63.0962 6.02323 65.567 4.90761 69.7305C3.792 73.8941 6.26283 78.1737 10.4264 79.2893C12.8756 79.9456 15.365 79.3608 17.2268 77.9204C18.7106 76.7725 20.5639 75.8498 22.3759 76.3353C24.188 76.8209 25.3316 78.5467 26.0426 80.2827C26.9349 82.461 28.7983 84.2122 31.2476 84.8684C35.4111 85.984 39.6907 83.5132 40.8064 79.3497C41.922 75.1861 39.4511 70.9065 35.2876 69.7909C32.8381 69.1345 30.3484 69.7195 28.4865 71.1602ZM5.92479 34.1947C8.97272 31.1467 13.9144 31.1467 16.9623 34.1947C18.7553 35.9876 19.4935 38.4359 19.177 40.7686C18.9248 42.6273 19.0524 44.6933 20.3787 46.0196C21.7052 47.3461 23.7716 47.4735 25.6305 47.2211C27.9634 46.9044 30.412 47.6426 32.2051 49.4358C35.2531 52.4837 35.2531 57.4254 32.2051 60.4733C29.1572 63.5212 24.2155 63.5212 21.1676 60.4733C19.3746 58.6803 18.6364 56.2319 18.9529 53.8992C19.2052 52.0405 19.0776 49.9745 17.7513 48.6482C16.4248 47.3217 14.3585 47.1943 12.4996 47.4468C10.1667 47.7636 7.71801 47.0254 5.92479 45.2322C2.87686 42.1843 2.87686 37.2426 5.92479 34.1947ZM65.4846 22.5623C63.8601 23.5002 63.2023 25.463 62.965 27.3237C62.6672 29.659 61.3204 31.8332 59.1242 33.1012C55.3912 35.2564 50.618 33.9774 48.4627 30.2444C46.3075 26.5115 47.5865 21.7382 51.3195 19.583C53.5153 18.3152 56.0712 18.2358 58.2424 19.1451C59.9728 19.8699 62.0019 20.2816 63.6267 19.3435C65.2513 18.4055 65.9093 16.4426 66.147 14.5818C66.4451 12.2469 67.7918 10.0734 69.9876 8.80565C73.7205 6.65044 78.4938 7.92944 80.649 11.6624C82.8042 15.3953 81.5252 20.1686 77.7923 22.3238C75.596 23.5918 73.0396 23.6711 70.8681 22.7612C69.138 22.0362 67.1091 21.6244 65.4846 22.5623ZM104.469 60.2458C106.932 60.2458 108.928 58.2491 108.928 55.786C108.928 53.3229 106.932 51.3262 104.469 51.3262C102.006 51.3262 100.009 53.3229 100.009 55.786C100.009 58.2491 102.006 60.2458 104.469 60.2458ZM96.2923 21.594C96.2923 24.0571 94.2955 26.0538 91.8324 26.0538C89.3693 26.0538 87.3726 24.0571 87.3726 21.594C87.3726 19.1309 89.3693 17.1342 91.8324 17.1342C94.2955 17.1342 96.2923 19.1309 96.2923 21.594ZM23.4484 20.1072C23.4484 22.5703 21.4516 24.567 18.9885 24.567C16.5254 24.567 14.5287 22.5703 14.5287 20.1072C14.5287 17.6441 16.5254 15.6473 18.9885 15.6473C21.4516 15.6473 23.4484 17.6441 23.4484 20.1072ZM4.86563 60.2458C7.32873 60.2458 9.32546 58.2491 9.32546 55.786C9.32546 53.3229 7.32873 51.3262 4.86563 51.3262C2.40253 51.3262 0.405792 53.3229 0.405792 55.786C0.405792 58.2491 2.40253 60.2458 4.86563 60.2458ZM22.7052 89.2346C22.7052 91.6977 20.7084 93.6945 18.2453 93.6945C15.7822 93.6945 13.7855 91.6977 13.7855 89.2346C13.7855 86.7715 15.7822 84.7748 18.2453 84.7748C20.7084 84.7748 22.7052 86.7715 22.7052 89.2346ZM52.4373 107.818C54.9004 107.818 56.8971 105.821 56.8971 103.358C56.8971 100.895 54.9004 98.8979 52.4373 98.8979C49.9742 98.8979 47.9774 100.895 47.9774 103.358C47.9774 105.821 49.9742 107.818 52.4373 107.818ZM95.5487 90.7213C95.5487 93.1844 93.552 95.1811 91.0889 95.1811C88.6258 95.1811 86.6291 93.1844 86.6291 90.7213C86.6291 88.2582 88.6258 86.2615 91.0889 86.2615C93.552 86.2615 95.5487 88.2582 95.5487 90.7213ZM54.4752 68.562C61.8667 68.562 67.8587 62.5701 67.8587 55.1785C67.8587 47.787 61.8667 41.795 54.4752 41.795C47.0837 41.795 41.0917 47.787 41.0917 55.1785C41.0917 62.5701 47.0837 68.562 54.4752 68.562Z" fill="white"/>
-</svg>
\ No newline at end of file
diff --git a/openmemory/ui/public/images/roocline.png b/openmemory/ui/public/images/roocline.png
deleted file mode 100644
index e42ddc0dd..000000000
Binary files a/openmemory/ui/public/images/roocline.png and /dev/null differ
diff --git a/openmemory/ui/public/images/windsurf.png b/openmemory/ui/public/images/windsurf.png
deleted file mode 100644
index 2f2b9d5f2..000000000
Binary files a/openmemory/ui/public/images/windsurf.png and /dev/null differ
diff --git a/openmemory/ui/public/images/witsy.png b/openmemory/ui/public/images/witsy.png
deleted file mode 100644
index 9538c7bd3..000000000
Binary files a/openmemory/ui/public/images/witsy.png and /dev/null differ
diff --git a/openmemory/ui/public/logo.svg b/openmemory/ui/public/logo.svg
deleted file mode 100644
index 880b5ba5a..000000000
--- a/openmemory/ui/public/logo.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg width="108" height="108" viewBox="0 0 108 108" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M56.1537 8.95776C58.6168 8.95776 60.6135 6.96102 60.6135 4.49792C60.6135 2.03482 58.6168 0.0380859 56.1537 0.0380859C53.6906 0.0380859 51.6939 2.03482 51.6939 4.49792C51.6939 6.96102 53.6906 8.95776 56.1537 8.95776ZM38.4182 29.3545C37.2703 27.8706 36.3474 26.0172 36.833 24.205C37.3186 22.3928 39.0445 21.2492 40.7806 20.538C42.9589 19.6458 44.71 17.7824 45.3663 15.3332C46.4819 11.1696 44.0111 6.88999 39.8475 5.77437C35.684 4.65876 31.4044 7.12959 30.2887 11.2931C29.6325 13.7425 30.2173 16.2319 31.6578 18.0938C32.8058 19.5776 33.7287 21.431 33.2431 23.2431C32.7575 25.0553 31.0317 26.1989 29.2955 26.9099C27.1171 27.8021 25.3658 29.6656 24.7096 32.1149C23.5939 36.2785 26.0648 40.5581 30.2283 41.6737C34.3919 42.7893 38.6715 40.3185 39.7871 36.1549C40.4434 33.7057 39.8586 31.2164 38.4182 29.3545ZM86.1482 38.6266C84.3362 38.1411 82.483 39.0639 80.9994 40.2118C79.1375 41.6523 76.6479 42.2373 74.1986 41.5809C70.035 40.4653 67.5642 36.1857 68.6798 32.0222C69.7954 27.8586 74.075 25.3878 78.2386 26.5034C80.6877 27.1597 82.5512 28.9107 83.4434 31.089C84.1546 32.8252 85.2983 34.5512 87.1106 35.0368C88.9228 35.5224 90.7761 34.5996 92.2601 33.4518C94.1219 32.0117 96.6111 31.427 99.0601 32.0832C103.224 33.1989 105.694 37.4785 104.579 41.642C103.463 45.8056 99.1836 48.2764 95.0201 47.1608C92.5706 46.5044 90.707 44.753 89.8148 42.5743C89.1039 40.8381 87.9604 39.1122 86.1482 38.6266ZM103.562 77.1778C100.514 80.2257 95.5723 80.2257 92.5243 77.1778C90.7315 75.385 89.9933 72.937 90.3095 70.6046C90.5616 68.7456 90.434 66.6791 89.1074 65.3526C87.7808 64.026 85.7143 63.8984 83.8553 64.1505C81.5228 64.4668 79.0748 63.7285 77.2819 61.9357C74.234 58.8878 74.234 53.9461 77.2819 50.8982C80.3299 47.8503 85.2715 47.8503 88.3195 50.8982C90.1127 52.6915 90.8509 55.1403 90.534 57.4733C90.2816 59.332 90.4089 61.3981 91.7353 62.7245C93.0617 64.0509 95.1279 64.1782 96.9867 63.9257C99.3197 63.6088 101.769 64.347 103.562 66.1403C106.61 69.1882 106.61 74.1299 103.562 77.1778ZM64.1201 96.0387C63.0045 100.202 65.4753 104.482 69.6389 105.597C73.8024 106.713 78.082 104.242 79.1977 100.079C79.854 97.6293 79.2691 95.1398 77.8285 93.2779C76.6805 91.7942 75.7578 89.941 76.2433 88.129C76.7288 86.3171 78.4545 85.1735 80.1904 84.4626C82.3688 83.5704 84.1201 81.7069 84.7764 79.2576C85.892 75.094 83.4212 70.8144 79.2576 69.6988C75.0941 68.5832 70.8144 71.054 69.6988 75.2176C69.0425 77.667 69.6275 80.1566 71.0681 82.0185C72.2161 83.5022 73.1389 85.3553 72.6534 87.1673C72.1678 88.9792 70.4422 90.1227 68.7063 90.8336C66.5278 91.7258 64.7764 93.5893 64.1201 96.0387ZM28.837 99.7103C26.6818 95.9774 27.9607 91.2041 31.6937 89.0489C33.8898 87.781 36.4459 87.7016 38.6172 88.6113C40.3475 89.3361 42.3764 89.7478 44.0011 88.8099C45.6257 87.8719 46.2836 85.9088 46.521 84.0479C46.8189 81.7126 48.1657 79.5385 50.3618 78.2706C54.0947 76.1154 58.868 77.3944 61.0232 81.1273C63.1784 84.8602 61.8994 89.6335 58.1665 91.7887C55.9707 93.0565 53.4149 93.136 51.2438 92.2267C49.5133 91.502 47.4842 91.0903 45.8595 92.0284C44.2347 92.9665 43.5767 94.9296 43.3391 96.7907C43.041 99.1256 41.6942 101.299 39.4984 102.567C35.7655 104.722 30.9922 103.443 28.837 99.7103ZM28.4865 71.1602C27.0029 72.3082 25.1498 73.231 23.3379 72.7455C21.5259 72.2599 20.3825 70.5342 19.6716 68.7983C18.7795 66.6196 16.9159 64.8681 14.4664 64.2118C10.3028 63.0962 6.02323 65.567 4.90761 69.7305C3.792 73.8941 6.26283 78.1737 10.4264 79.2893C12.8756 79.9456 15.365 79.3608 17.2268 77.9204C18.7106 76.7725 20.5639 75.8498 22.3759 76.3353C24.188 76.8209 25.3316 78.5467 26.0426 80.2827C26.9349 82.461 28.7983 84.2122 31.2476 84.8684C35.4111 85.984 39.6907 83.5132 40.8064 79.3497C41.922 75.1861 39.4511 70.9065 35.2876 69.7909C32.8381 69.1345 30.3484 69.7195 28.4865 71.1602ZM5.92479 34.1947C8.97272 31.1467 13.9144 31.1467 16.9623 34.1947C18.7553 35.9876 19.4935 38.4359 19.177 40.7686C18.9248 42.6273 19.0524 44.6933 20.3787 46.0196C21.7052 47.3461 23.7716 47.4735 25.6305 47.2211C27.9634 46.9044 30.412 47.6426 32.2051 49.4358C35.2531 52.4837 35.2531 57.4254 32.2051 60.4733C29.1572 63.5212 24.2155 63.5212 21.1676 60.4733C19.3746 58.6803 18.6364 56.2319 18.9529 53.8992C19.2052 52.0405 19.0776 49.9745 17.7513 48.6482C16.4248 47.3217 14.3585 47.1943 12.4996 47.4468C10.1667 47.7636 7.71801 47.0254 5.92479 45.2322C2.87686 42.1843 2.87686 37.2426 5.92479 34.1947ZM65.4846 22.5623C63.8601 23.5002 63.2023 25.463 62.965 27.3237C62.6672 29.659 61.3204 31.8332 59.1242 33.1012C55.3912 35.2564 50.618 33.9774 48.4627 30.2444C46.3075 26.5115 47.5865 21.7382 51.3195 19.583C53.5153 18.3152 56.0712 18.2358 58.2424 19.1451C59.9728 19.8699 62.0019 20.2816 63.6267 19.3435C65.2513 18.4055 65.9093 16.4426 66.147 14.5818C66.4451 12.2469 67.7918 10.0734 69.9876 8.80565C73.7205 6.65044 78.4938 7.92944 80.649 11.6624C82.8042 15.3953 81.5252 20.1686 77.7923 22.3238C75.596 23.5918 73.0396 23.6711 70.8681 22.7612C69.138 22.0362 67.1091 21.6244 65.4846 22.5623ZM104.469 60.2458C106.932 60.2458 108.928 58.2491 108.928 55.786C108.928 53.3229 106.932 51.3262 104.469 51.3262C102.006 51.3262 100.009 53.3229 100.009 55.786C100.009 58.2491 102.006 60.2458 104.469 60.2458ZM96.2923 21.594C96.2923 24.0571 94.2955 26.0538 91.8324 26.0538C89.3693 26.0538 87.3726 24.0571 87.3726 21.594C87.3726 19.1309 89.3693 17.1342 91.8324 17.1342C94.2955 17.1342 96.2923 19.1309 96.2923 21.594ZM23.4484 20.1072C23.4484 22.5703 21.4516 24.567 18.9885 24.567C16.5254 24.567 14.5287 22.5703 14.5287 20.1072C14.5287 17.6441 16.5254 15.6473 18.9885 15.6473C21.4516 15.6473 23.4484 17.6441 23.4484 20.1072ZM4.86563 60.2458C7.32873 60.2458 9.32546 58.2491 9.32546 55.786C9.32546 53.3229 7.32873 51.3262 4.86563 51.3262C2.40253 51.3262 0.405792 53.3229 0.405792 55.786C0.405792 58.2491 2.40253 60.2458 4.86563 60.2458ZM22.7052 89.2346C22.7052 91.6977 20.7084 93.6945 18.2453 93.6945C15.7822 93.6945 13.7855 91.6977 13.7855 89.2346C13.7855 86.7715 15.7822 84.7748 18.2453 84.7748C20.7084 84.7748 22.7052 86.7715 22.7052 89.2346ZM52.4373 107.818C54.9004 107.818 56.8971 105.821 56.8971 103.358C56.8971 100.895 54.9004 98.8979 52.4373 98.8979C49.9742 98.8979 47.9774 100.895 47.9774 103.358C47.9774 105.821 49.9742 107.818 52.4373 107.818ZM95.5487 90.7213C95.5487 93.1844 93.552 95.1811 91.0889 95.1811C88.6258 95.1811 86.6291 93.1844 86.6291 90.7213C86.6291 88.2582 88.6258 86.2615 91.0889 86.2615C93.552 86.2615 95.5487 88.2582 95.5487 90.7213ZM54.4752 68.562C61.8667 68.562 67.8587 62.5701 67.8587 55.1785C67.8587 47.787 61.8667 41.795 54.4752 41.795C47.0837 41.795 41.0917 47.787 41.0917 55.1785C41.0917 62.5701 47.0837 68.562 54.4752 68.562Z" fill="white"/>
-</svg>
\ No newline at end of file
diff --git a/openmemory/ui/public/placeholder-logo.png b/openmemory/ui/public/placeholder-logo.png
deleted file mode 100644
index 6528839b3..000000000
Binary files a/openmemory/ui/public/placeholder-logo.png and /dev/null differ
diff --git a/openmemory/ui/public/placeholder-logo.svg b/openmemory/ui/public/placeholder-logo.svg
deleted file mode 100644
index b1695aafc..000000000
--- a/openmemory/ui/public/placeholder-logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="215" height="48" fill="none"><path fill="#000" d="M57.588 9.6h6L73.828 38h-5.2l-2.36-6.88h-11.36L52.548 38h-5.2l10.24-28.4Zm7.16 17.16-4.16-12.16-4.16 12.16h8.32Zm23.694-2.24c-.186-1.307-.706-2.32-1.56-3.04-.853-.72-1.866-1.08-3.04-1.08-1.68 0-2.986.613-3.92 1.84-.906 1.227-1.36 2.947-1.36 5.16s.454 3.933 1.36 5.16c.934 1.227 2.24 1.84 3.92 1.84 1.254 0 2.307-.373 3.16-1.12.854-.773 1.387-1.867 1.6-3.28l5.12.24c-.186 1.68-.733 3.147-1.64 4.4-.906 1.227-2.08 2.173-3.52 2.84-1.413.667-2.986 1-4.72 1-2.08 0-3.906-.453-5.48-1.36-1.546-.907-2.76-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84 0-2.24.427-4.187 1.28-5.84.88-1.68 2.094-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.68 0 3.227.32 4.64.96 1.414.64 2.56 1.56 3.44 2.76.907 1.2 1.454 2.6 1.64 4.2l-5.12.28Zm11.486-7.72.12 3.4c.534-1.227 1.307-2.173 2.32-2.84 1.04-.693 2.267-1.04 3.68-1.04 1.494 0 2.76.387 3.8 1.16 1.067.747 1.827 1.813 2.28 3.2.507-1.44 1.294-2.52 2.36-3.24 1.094-.747 2.414-1.12 3.96-1.12 1.414 0 2.64.307 3.68.92s1.84 1.52 2.4 2.72c.56 1.2.84 2.667.84 4.4V38h-4.96V25.92c0-1.813-.293-3.187-.88-4.12-.56-.96-1.413-1.44-2.56-1.44-.906 0-1.68.213-2.32.64-.64.427-1.133 1.053-1.48 1.88-.32.827-.48 1.84-.48 3.04V38h-4.56V25.92c0-1.2-.133-2.213-.4-3.04-.24-.827-.626-1.453-1.16-1.88-.506-.427-1.133-.64-1.88-.64-.906 0-1.68.227-2.32.68-.64.427-1.133 1.053-1.48 1.88-.32.827-.48 1.827-.48 3V38h-4.96V16.8h4.48Zm26.723 10.6c0-2.24.427-4.187 1.28-5.84.854-1.68 2.067-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.84 0 3.494.413 4.96 1.24 1.467.827 2.64 2.08 3.52 3.76.88 1.653 1.347 3.693 1.4 6.12v1.32h-15.08c.107 1.813.614 3.227 1.52 4.24.907.987 2.134 1.48 3.68 1.48.987 0 1.88-.253 2.68-.76a4.803 4.803 0 0 0 1.84-2.2l5.08.36c-.64 2.027-1.84 3.64-3.6 4.84-1.733 1.173-3.733 1.76-6 1.76-2.08 0-3.906-.453-5.48-1.36-1.573-.907-2.786-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84Zm15.16-2.04c-.213-1.733-.76-3.013-1.64-3.84-.853-.827-1.893-1.24-3.12-1.24-1.44 0-2.6.453-3.48 1.36-.88.88-1.44 2.12-1.68 3.72h9.92ZM163.139 9.6V38h-5.04V9.6h5.04Zm8.322 7.2.24 5.88-.64-.36c.32-2.053 1.094-3.56 2.32-4.52 1.254-.987 2.787-1.48 4.6-1.48 2.32 0 4.107.733 5.36 2.2 1.254 1.44 1.88 3.387 1.88 5.84V38h-4.96V25.92c0-1.253-.12-2.28-.36-3.08-.24-.8-.64-1.413-1.2-1.84-.533-.427-1.253-.64-2.16-.64-1.44 0-2.573.48-3.4 1.44-.8.933-1.2 2.307-1.2 4.12V38h-4.96V16.8h4.48Zm30.003 7.72c-.186-1.307-.706-2.32-1.56-3.04-.853-.72-1.866-1.08-3.04-1.08-1.68 0-2.986.613-3.92 1.84-.906 1.227-1.36 2.947-1.36 5.16s.454 3.933 1.36 5.16c.934 1.227 2.24 1.84 3.92 1.84 1.254 0 2.307-.373 3.16-1.12.854-.773 1.387-1.867 1.6-3.28l5.12.24c-.186 1.68-.733 3.147-1.64 4.4-.906 1.227-2.08 2.173-3.52 2.84-1.413.667-2.986 1-4.72 1-2.08 0-3.906-.453-5.48-1.36-1.546-.907-2.76-2.2-3.64-3.88-.853-1.68-1.28-3.627-1.28-5.84 0-2.24.427-4.187 1.28-5.84.88-1.68 2.094-2.973 3.64-3.88 1.574-.907 3.4-1.36 5.48-1.36 1.68 0 3.227.32 4.64.96 1.414.64 2.56 1.56 3.44 2.76.907 1.2 1.454 2.6 1.64 4.2l-5.12.28Zm11.443 8.16V38h-5.6v-5.32h5.6Z"/><path fill="#171717" fill-rule="evenodd" d="m7.839 40.783 16.03-28.054L20 6 0 40.783h7.839Zm8.214 0H40L27.99 19.894l-4.02 7.032 3.976 6.914H20.02l-3.967 6.943Z" clip-rule="evenodd"/></svg>
\ No newline at end of file
diff --git a/openmemory/ui/public/placeholder-user.jpg b/openmemory/ui/public/placeholder-user.jpg
deleted file mode 100644
index 6faa819ce..000000000
Binary files a/openmemory/ui/public/placeholder-user.jpg and /dev/null differ
diff --git a/openmemory/ui/public/placeholder.jpg b/openmemory/ui/public/placeholder.jpg
deleted file mode 100644
index a6bf2ee64..000000000
Binary files a/openmemory/ui/public/placeholder.jpg and /dev/null differ
diff --git a/openmemory/ui/public/placeholder.svg b/openmemory/ui/public/placeholder.svg
deleted file mode 100644
index e763910b2..000000000
--- a/openmemory/ui/public/placeholder.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1200" fill="none"><rect width="1200" height="1200" fill="#EAEAEA" rx="3"/><g opacity=".5"><g opacity=".5"><path fill="#FAFAFA" d="M600.709 736.5c-75.454 0-136.621-61.167-136.621-136.62 0-75.454 61.167-136.621 136.621-136.621 75.453 0 136.62 61.167 136.62 136.621 0 75.453-61.167 136.62-136.62 136.62Z"/><path stroke="#C9C9C9" stroke-width="2.418" d="M600.709 736.5c-75.454 0-136.621-61.167-136.621-136.62 0-75.454 61.167-136.621 136.621-136.621 75.453 0 136.62 61.167 136.62 136.621 0 75.453-61.167 136.62-136.62 136.62Z"/></g><path stroke="url(#a)" stroke-width="2.418" d="M0-1.209h553.581" transform="scale(1 -1) rotate(45 1163.11 91.165)"/><path stroke="url(#b)" stroke-width="2.418" d="M404.846 598.671h391.726"/><path stroke="url(#c)" stroke-width="2.418" d="M599.5 795.742V404.017"/><path stroke="url(#d)" stroke-width="2.418" d="m795.717 796.597-391.441-391.44"/><path fill="#fff" d="M600.709 656.704c-31.384 0-56.825-25.441-56.825-56.824 0-31.384 25.441-56.825 56.825-56.825 31.383 0 56.824 25.441 56.824 56.825 0 31.383-25.441 56.824-56.824 56.824Z"/><g clip-path="url(#e)"><path fill="#666" fill-rule="evenodd" d="M616.426 586.58h-31.434v16.176l3.553-3.554.531-.531h9.068l.074-.074 8.463-8.463h2.565l7.18 7.181V586.58Zm-15.715 14.654 3.698 3.699 1.283 1.282-2.565 2.565-1.282-1.283-5.2-5.199h-6.066l-5.514 5.514-.073.073v2.876a2.418 2.418 0 0 0 2.418 2.418h26.598a2.418 2.418 0 0 0 2.418-2.418v-8.317l-8.463-8.463-7.181 7.181-.071.072Zm-19.347 5.442v4.085a6.045 6.045 0 0 0 6.046 6.045h26.598a6.044 6.044 0 0 0 6.045-6.045v-7.108l1.356-1.355-1.282-1.283-.074-.073v-17.989h-38.689v23.43l-.146.146.146.147Z" clip-rule="evenodd"/></g><path stroke="#C9C9C9" stroke-width="2.418" d="M600.709 656.704c-31.384 0-56.825-25.441-56.825-56.824 0-31.384 25.441-56.825 56.825-56.825 31.383 0 56.824 25.441 56.824 56.825 0 31.383-25.441 56.824-56.824 56.824Z"/></g><defs><linearGradient id="a" x1="554.061" x2="-.48" y1=".083" y2=".087" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="b" x1="796.912" x2="404.507" y1="599.963" y2="599.965" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="c" x1="600.792" x2="600.794" y1="403.677" y2="796.082" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><linearGradient id="d" x1="404.85" x2="796.972" y1="403.903" y2="796.02" gradientUnits="userSpaceOnUse"><stop stop-color="#C9C9C9" stop-opacity="0"/><stop offset=".208" stop-color="#C9C9C9"/><stop offset=".792" stop-color="#C9C9C9"/><stop offset="1" stop-color="#C9C9C9" stop-opacity="0"/></linearGradient><clipPath id="e"><path fill="#fff" d="M581.364 580.535h38.689v38.689h-38.689z"/></clipPath></defs></svg>
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/AppCardSkeleton.tsx b/openmemory/ui/skeleton/AppCardSkeleton.tsx
deleted file mode 100644
index 3f901ab0c..000000000
--- a/openmemory/ui/skeleton/AppCardSkeleton.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import {
- Card,
- CardContent,
- CardFooter,
- CardHeader,
-} from "@/components/ui/card";
-
-export function AppCardSkeleton() {
- return (
- <Card className="bg-zinc-900 text-white border-zinc-800">
- <CardHeader className="pb-2">
- <div className="flex items-center gap-1">
- <div className="relative z-10 rounded-full overflow-hidden bg-zinc-800 w-6 h-6 animate-pulse" />
- <div className="h-7 w-32 bg-zinc-800 rounded animate-pulse" />
- </div>
- </CardHeader>
- <CardContent className="pb-4 my-1">
- <div className="grid grid-cols-2 gap-4">
- <div>
- <div className="h-4 w-24 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-7 w-32 bg-zinc-800 rounded animate-pulse" />
- </div>
- <div>
- <div className="h-4 w-24 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-7 w-32 bg-zinc-800 rounded animate-pulse" />
- </div>
- </div>
- </CardContent>
- <CardFooter className="border-t border-zinc-800 p-0 px-6 py-2 flex justify-between items-center">
- <div className="h-6 w-16 bg-zinc-800 rounded-lg animate-pulse" />
- <div className="h-8 w-28 bg-zinc-800 rounded-lg animate-pulse" />
- </CardFooter>
- </Card>
- );
-}
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/AppDetailCardSkeleton.tsx b/openmemory/ui/skeleton/AppDetailCardSkeleton.tsx
deleted file mode 100644
index 84decf216..000000000
--- a/openmemory/ui/skeleton/AppDetailCardSkeleton.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-export function AppDetailCardSkeleton() {
- return (
- <div>
- <div className="bg-zinc-900 border w-[320px] border-zinc-800 rounded-xl mb-6">
- <div className="flex items-center gap-2 mb-4 bg-zinc-800 rounded-t-xl p-3">
- <div className="w-6 h-6 rounded-full bg-zinc-700 animate-pulse" />
- <div className="h-5 w-24 bg-zinc-700 rounded animate-pulse" />
- </div>
-
- <div className="space-y-4 p-3">
- <div>
- <div className="h-4 w-20 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-5 w-24 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <div>
- <div className="h-4 w-32 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-5 w-28 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <div>
- <div className="h-4 w-32 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-5 w-28 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <div>
- <div className="h-4 w-24 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-5 w-36 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <div>
- <div className="h-4 w-24 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-5 w-36 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <hr className="border-zinc-800" />
-
- <div className="flex gap-2 justify-end">
- <div className="h-8 w-[170px] bg-zinc-800 rounded animate-pulse" />
- </div>
- </div>
- </div>
- </div>
- )
-}
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/AppFiltersSkeleton.tsx b/openmemory/ui/skeleton/AppFiltersSkeleton.tsx
deleted file mode 100644
index 2a1de968a..000000000
--- a/openmemory/ui/skeleton/AppFiltersSkeleton.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-export function AppFiltersSkeleton() {
- return (
- <div className="flex items-center gap-2">
- <div className="relative flex-1">
- <div className="h-9 w-[500px] bg-zinc-800 rounded animate-pulse" />
- </div>
- <div className="h-9 w-[130px] bg-zinc-800 rounded animate-pulse" />
- <div className="h-9 w-[150px] bg-zinc-800 rounded animate-pulse" />
- </div>
- );
-}
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/MemoryCardSkeleton.tsx b/openmemory/ui/skeleton/MemoryCardSkeleton.tsx
deleted file mode 100644
index 66250d7eb..000000000
--- a/openmemory/ui/skeleton/MemoryCardSkeleton.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-export function MemoryCardSkeleton() {
- return (
- <div className="rounded-lg border border-zinc-800 bg-zinc-900 overflow-hidden">
- <div className="p-4">
- <div className="border-l-2 border-primary pl-4 mb-4">
- <div className="h-4 w-3/4 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="h-4 w-1/2 bg-zinc-800 rounded animate-pulse" />
- </div>
-
- <div className="mb-4">
- <div className="h-4 w-24 bg-zinc-800 rounded mb-2 animate-pulse" />
- <div className="bg-zinc-800 rounded p-3">
- <div className="h-20 w-full bg-zinc-700 rounded animate-pulse" />
- </div>
- </div>
-
- <div className="mb-2">
- <div className="flex gap-2">
- <div className="h-6 w-20 bg-zinc-800 rounded-full animate-pulse" />
- <div className="h-6 w-24 bg-zinc-800 rounded-full animate-pulse" />
- </div>
- </div>
-
- <div className="flex justify-between items-center">
- <div className="flex items-center gap-2">
- <div className="h-4 w-32 bg-zinc-800 rounded animate-pulse" />
- </div>
- <div className="flex items-center gap-2">
- <div className="flex items-center gap-1 bg-zinc-800 px-3 py-1 rounded-lg">
- <div className="h-4 w-20 bg-zinc-700 rounded animate-pulse" />
- <div className="w-6 h-6 rounded-full bg-zinc-700 animate-pulse" />
- <div className="h-4 w-24 bg-zinc-700 rounded animate-pulse" />
- </div>
- </div>
- </div>
- </div>
- </div>
- )
-}
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/MemorySkeleton.tsx b/openmemory/ui/skeleton/MemorySkeleton.tsx
deleted file mode 100644
index e19fd9775..000000000
--- a/openmemory/ui/skeleton/MemorySkeleton.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { Skeleton } from "@/components/ui/skeleton";
-
-export function MemorySkeleton() {
- return (
- <div className="container mx-auto py-8 px-4">
- <div className="rounded-lg border border-zinc-800 bg-zinc-900 overflow-hidden">
- <div className="p-6">
- <div className="flex justify-between items-center mb-6">
- <Skeleton className="h-8 w-48 bg-zinc-800" />
- <div className="flex gap-2">
- <Skeleton className="h-8 w-24 bg-zinc-800" />
- <Skeleton className="h-8 w-24 bg-zinc-800" />
- </div>
- </div>
-
- <div className="border-l-2 border-zinc-800 pl-4 mb-6">
- <Skeleton className="h-6 w-full bg-zinc-800" />
- </div>
-
- <div className="mt-6 pt-6 border-t border-zinc-800">
- <Skeleton className="h-4 w-48 bg-zinc-800" />
- </div>
- </div>
- </div>
- </div>
- );
-}
\ No newline at end of file
diff --git a/openmemory/ui/skeleton/MemoryTableSkeleton.tsx b/openmemory/ui/skeleton/MemoryTableSkeleton.tsx
deleted file mode 100644
index 3f10aa53a..000000000
--- a/openmemory/ui/skeleton/MemoryTableSkeleton.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
-import { HiMiniRectangleStack } from "react-icons/hi2"
-import { PiSwatches } from "react-icons/pi"
-import { GoPackage } from "react-icons/go"
-import { CiCalendar } from "react-icons/ci"
-import { MoreHorizontal } from "lucide-react"
-
-export function MemoryTableSkeleton() {
- // Create an array of 5 items for the loading state
- const loadingRows = Array(5).fill(null)
-
- return (
- <div className="rounded-md border">
- <Table>
- <TableHeader>
- <TableRow className="bg-zinc-800 hover:bg-zinc-800">
- <TableHead className="w-[50px] pl-4">
- <div className="h-4 w-4 rounded bg-zinc-700/50 animate-pulse" />
- </TableHead>
- <TableHead className="border-zinc-700">
- <div className="flex items-center min-w-[600px]">
- <HiMiniRectangleStack className="mr-1" />
- Memory
- </div>
- </TableHead>
- <TableHead className="border-zinc-700">
- <div className="flex items-center">
- <PiSwatches className="mr-1" size={15} />
- Categories
- </div>
- </TableHead>
- <TableHead className="w-[140px] border-zinc-700">
- <div className="flex items-center">
- <GoPackage className="mr-1" />
- Source App
- </div>
- </TableHead>
- <TableHead className="w-[140px] border-zinc-700">
- <div className="flex items-center w-full justify-center">
- <CiCalendar className="mr-1" size={16} />
- Created On
- </div>
- </TableHead>
- <TableHead className="text-right border-zinc-700 flex justify-center">
- <div className="flex items-center justify-end">
- <MoreHorizontal className="h-4 w-4 mr-2" />
- </div>
- </TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {loadingRows.map((_, index) => (
- <TableRow key={index} className="animate-pulse">
- <TableCell className="pl-4">
- <div className="h-4 w-4 rounded bg-zinc-800" />
- </TableCell>
- <TableCell>
- <div className="h-4 w-3/4 bg-zinc-800 rounded" />
- </TableCell>
- <TableCell>
- <div className="flex gap-1">
- <div className="h-5 w-16 bg-zinc-800 rounded-full" />
- <div className="h-5 w-16 bg-zinc-800 rounded-full" />
- </div>
- </TableCell>
- <TableCell className="w-[140px]">
- <div className="h-6 w-24 mx-auto bg-zinc-800 rounded" />
- </TableCell>
- <TableCell className="w-[140px]">
- <div className="h-4 w-20 mx-auto bg-zinc-800 rounded" />
- </TableCell>
- <TableCell>
- <div className="h-8 w-8 bg-zinc-800 rounded mx-auto" />
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- </div>
- )
-}
\ No newline at end of file
diff --git a/openmemory/ui/store/appsSlice.ts b/openmemory/ui/store/appsSlice.ts
deleted file mode 100644
index d838b5bce..000000000
--- a/openmemory/ui/store/appsSlice.ts
+++ /dev/null
@@ -1,224 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-
-export interface AppMemory {
- id: string;
- user_id: string;
- content: string;
- state: string;
- updated_at: string;
- deleted_at: string | null;
- app_id: string;
- vector: any;
- metadata_: Record<string, any>;
- created_at: string;
- archived_at: string | null;
- categories: string[];
- app_name: string;
-}
-
-export interface AccessedMemory {
- memory: AppMemory;
- access_count: number;
-}
-
-export interface AppDetails {
- is_active: boolean;
- total_memories_created: number;
- total_memories_accessed: number;
- first_accessed: string | null;
- last_accessed: string | null;
-}
-
-export interface App {
- id: string;
- name: string;
- total_memories_created: number;
- total_memories_accessed: number;
- is_active?: boolean;
-}
-
-interface MemoriesState {
- items: AppMemory[];
- total: number;
- page: number;
- loading: boolean;
- error: string | null;
-}
-
-interface AccessedMemoriesState {
- items: AccessedMemory[];
- total: number;
- page: number;
- loading: boolean;
- error: string | null;
-}
-
-interface AppsState {
- apps: App[];
- status: 'idle' | 'loading' | 'succeeded' | 'failed';
- error: string | null;
- filters: {
- searchQuery: string;
- isActive: 'all' | true | false;
- sortBy: 'name' | 'memories' | 'memories_accessed';
- sortDirection: 'asc' | 'desc';
- };
- selectedApp: {
- details: AppDetails | null;
- memories: {
- created: MemoriesState;
- accessed: AccessedMemoriesState;
- };
- loading: boolean;
- error: string | null;
- };
-}
-
-const initialMemoriesState: MemoriesState = {
- items: [],
- total: 0,
- page: 1,
- loading: false,
- error: null,
-};
-
-const initialAccessedMemoriesState: AccessedMemoriesState = {
- items: [],
- total: 0,
- page: 1,
- loading: false,
- error: null,
-};
-
-const initialState: AppsState = {
- apps: [],
- status: 'idle',
- error: null,
- filters: {
- searchQuery: '',
- isActive: 'all',
- sortBy: 'name',
- sortDirection: 'asc'
- },
- selectedApp: {
- details: null,
- memories: {
- created: initialMemoriesState,
- accessed: initialAccessedMemoriesState,
- },
- loading: false,
- error: null,
- },
-};
-
-const appsSlice = createSlice({
- name: 'apps',
- initialState,
- reducers: {
- setAppsLoading: (state) => {
- state.status = 'loading';
- state.error = null;
- },
- setAppsSuccess: (state, action: PayloadAction<App[]>) => {
- state.status = 'succeeded';
- state.apps = action.payload;
- state.error = null;
- },
- setAppsError: (state, action: PayloadAction<string>) => {
- state.status = 'failed';
- state.error = action.payload;
- },
- resetAppsState: (state) => {
- state.status = 'idle';
- state.error = null;
- state.apps = [];
- state.selectedApp = initialState.selectedApp;
- },
- setSelectedAppLoading: (state) => {
- state.selectedApp.loading = true;
- },
- setSelectedAppDetails: (state, action: PayloadAction<AppDetails>) => {
- state.selectedApp.details = action.payload;
- state.selectedApp.loading = false;
- state.selectedApp.error = null;
- },
- setSelectedAppError: (state, action: PayloadAction<string>) => {
- state.selectedApp.loading = false;
- state.selectedApp.error = action.payload;
- },
- setCreatedMemoriesLoading: (state) => {
- state.selectedApp.memories.created.loading = true;
- state.selectedApp.memories.created.error = null;
- },
- setCreatedMemoriesSuccess: (state, action: PayloadAction<{ items: AppMemory[]; total: number; page: number }>) => {
- state.selectedApp.memories.created.items = action.payload.items;
- state.selectedApp.memories.created.total = action.payload.total;
- state.selectedApp.memories.created.page = action.payload.page;
- state.selectedApp.memories.created.loading = false;
- state.selectedApp.memories.created.error = null;
- },
- setCreatedMemoriesError: (state, action: PayloadAction<string>) => {
- state.selectedApp.memories.created.loading = false;
- state.selectedApp.memories.created.error = action.payload;
- },
- setAccessedMemoriesLoading: (state) => {
- state.selectedApp.memories.accessed.loading = true;
- state.selectedApp.memories.accessed.error = null;
- },
- setAccessedMemoriesSuccess: (state, action: PayloadAction<{ items: AccessedMemory[]; total: number; page: number }>) => {
- state.selectedApp.memories.accessed.items = action.payload.items;
- state.selectedApp.memories.accessed.total = action.payload.total;
- state.selectedApp.memories.accessed.page = action.payload.page;
- state.selectedApp.memories.accessed.loading = false;
- state.selectedApp.memories.accessed.error = null;
- },
- setAccessedMemoriesError: (state, action: PayloadAction<string>) => {
- state.selectedApp.memories.accessed.loading = false;
- state.selectedApp.memories.accessed.error = action.payload;
- },
- setAppDetails: (state, action: PayloadAction<{ appId: string; isActive: boolean }>) => {
- const app = state.apps.find(app => app.id === action.payload.appId);
- if (app) {
- app.is_active = action.payload.isActive;
- }
- if (state.selectedApp.details) {
- state.selectedApp.details.is_active = action.payload.isActive;
- }
- },
- setSearchQuery: (state, action: PayloadAction<string>) => {
- state.filters.searchQuery = action.payload;
- },
- setActiveFilter: (state, action: PayloadAction<'all' | true | false>) => {
- state.filters.isActive = action.payload;
- },
- setSortBy: (state, action: PayloadAction<'name' | 'memories' | 'memories_accessed'>) => {
- state.filters.sortBy = action.payload;
- },
- setSortDirection: (state, action: PayloadAction<'asc' | 'desc'>) => {
- state.filters.sortDirection = action.payload;
- },
- },
-});
-
-export const {
- setAppsLoading,
- setAppsSuccess,
- setAppsError,
- resetAppsState,
- setSelectedAppLoading,
- setSelectedAppDetails,
- setSelectedAppError,
- setCreatedMemoriesLoading,
- setCreatedMemoriesSuccess,
- setCreatedMemoriesError,
- setAccessedMemoriesLoading,
- setAccessedMemoriesSuccess,
- setAccessedMemoriesError,
- setAppDetails,
- setSearchQuery,
- setActiveFilter,
- setSortBy,
- setSortDirection,
-} = appsSlice.actions;
-
-export default appsSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/store/configSlice.ts b/openmemory/ui/store/configSlice.ts
deleted file mode 100644
index 628beb971..000000000
--- a/openmemory/ui/store/configSlice.ts
+++ /dev/null
@@ -1,114 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-
-export interface LLMConfig {
- model: string;
- temperature: number;
- max_tokens: number;
- api_key?: string;
- ollama_base_url?: string;
-}
-
-export interface LLMProvider {
- provider: string;
- config: LLMConfig;
-}
-
-export interface EmbedderConfig {
- model: string;
- api_key?: string;
- ollama_base_url?: string;
-}
-
-export interface EmbedderProvider {
- provider: string;
- config: EmbedderConfig;
-}
-
-export interface Mem0Config {
- llm?: LLMProvider;
- embedder?: EmbedderProvider;
-}
-
-export interface OpenMemoryConfig {
- custom_instructions?: string | null;
-}
-
-export interface ConfigState {
- openmemory: OpenMemoryConfig;
- mem0: Mem0Config;
- status: 'idle' | 'loading' | 'succeeded' | 'failed';
- error: string | null;
-}
-
-const initialState: ConfigState = {
- openmemory: {
- custom_instructions: null,
- },
- mem0: {
- llm: {
- provider: 'openai',
- config: {
- model: 'gpt-4o-mini',
- temperature: 0.1,
- max_tokens: 2000,
- api_key: 'env:OPENAI_API_KEY',
- },
- },
- embedder: {
- provider: 'openai',
- config: {
- model: 'text-embedding-3-small',
- api_key: 'env:OPENAI_API_KEY',
- },
- },
- },
- status: 'idle',
- error: null,
-};
-
-const configSlice = createSlice({
- name: 'config',
- initialState,
- reducers: {
- setConfigLoading: (state) => {
- state.status = 'loading';
- state.error = null;
- },
- setConfigSuccess: (state, action: PayloadAction<{ openmemory?: OpenMemoryConfig; mem0: Mem0Config }>) => {
- if (action.payload.openmemory) {
- state.openmemory = action.payload.openmemory;
- }
- state.mem0 = action.payload.mem0;
- state.status = 'succeeded';
- state.error = null;
- },
- setConfigError: (state, action: PayloadAction<string>) => {
- state.status = 'failed';
- state.error = action.payload;
- },
- updateOpenMemory: (state, action: PayloadAction<OpenMemoryConfig>) => {
- state.openmemory = action.payload;
- },
- updateLLM: (state, action: PayloadAction<LLMProvider>) => {
- state.mem0.llm = action.payload;
- },
- updateEmbedder: (state, action: PayloadAction<EmbedderProvider>) => {
- state.mem0.embedder = action.payload;
- },
- updateMem0Config: (state, action: PayloadAction<Mem0Config>) => {
- state.mem0 = action.payload;
- },
- },
-});
-
-export const {
- setConfigLoading,
- setConfigSuccess,
- setConfigError,
- updateOpenMemory,
- updateLLM,
- updateEmbedder,
- updateMem0Config,
-} = configSlice.actions;
-
-export default configSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/store/filtersSlice.ts b/openmemory/ui/store/filtersSlice.ts
deleted file mode 100644
index e90438a94..000000000
--- a/openmemory/ui/store/filtersSlice.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-
-export interface Category {
- id: string;
- name: string;
- description: string;
- updated_at: string;
- created_at: string;
-}
-
-export interface FiltersState {
- apps: {
- selectedApps: string[];
- selectedCategories: string[];
- sortColumn: string;
- sortDirection: 'asc' | 'desc';
- showArchived: boolean;
- };
- categories: {
- items: Category[];
- total: number;
- isLoading: boolean;
- error: string | null;
- };
-}
-
-const initialState: FiltersState = {
- apps: {
- selectedApps: [],
- selectedCategories: [],
- sortColumn: 'created_at',
- sortDirection: 'desc',
- showArchived: false,
- },
- categories: {
- items: [],
- total: 0,
- isLoading: false,
- error: null
- }
-};
-
-const filtersSlice = createSlice({
- name: 'filters',
- initialState,
- reducers: {
- setCategoriesLoading: (state) => {
- state.categories.isLoading = true;
- state.categories.error = null;
- },
- setCategoriesSuccess: (state, action: PayloadAction<{ categories: Category[]; total: number }>) => {
- state.categories.items = action.payload.categories;
- state.categories.total = action.payload.total;
- state.categories.isLoading = false;
- state.categories.error = null;
- },
- setCategoriesError: (state, action: PayloadAction<string>) => {
- state.categories.isLoading = false;
- state.categories.error = action.payload;
- },
- setSelectedApps: (state, action: PayloadAction<string[]>) => {
- state.apps.selectedApps = action.payload;
- },
- setSelectedCategories: (state, action: PayloadAction<string[]>) => {
- state.apps.selectedCategories = action.payload;
- },
- setShowArchived: (state, action: PayloadAction<boolean>) => {
- state.apps.showArchived = action.payload;
- },
- clearFilters: (state) => {
- state.apps.selectedApps = [];
- state.apps.selectedCategories = [];
- state.apps.showArchived = false;
- },
- setSortingState: (state, action: PayloadAction<{ column: string; direction: 'asc' | 'desc' }>) => {
- state.apps.sortColumn = action.payload.column;
- state.apps.sortDirection = action.payload.direction;
- },
- },
-});
-
-export const {
- setCategoriesLoading,
- setCategoriesSuccess,
- setCategoriesError,
- setSelectedApps,
- setSelectedCategories,
- setShowArchived,
- clearFilters,
- setSortingState
-} = filtersSlice.actions;
-
-export default filtersSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/store/memoriesSlice.ts b/openmemory/ui/store/memoriesSlice.ts
deleted file mode 100644
index ccd8073d6..000000000
--- a/openmemory/ui/store/memoriesSlice.ts
+++ /dev/null
@@ -1,100 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-import { Memory } from '@/components/types';
-import { SimpleMemory } from '@/hooks/useMemoriesApi';
-
-interface AccessLogEntry {
- id: string;
- app_name: string;
- accessed_at: string;
-}
-
-// Define the shape of the memories state
-interface MemoriesState {
- memories: Memory[];
- selectedMemory: SimpleMemory | null;
- accessLogs: AccessLogEntry[];
- relatedMemories: Memory[];
- status: 'idle' | 'loading' | 'succeeded' | 'failed';
- error: string | null;
- selectedMemoryIds: string[];
-}
-
-const initialState: MemoriesState = {
- memories: [],
- selectedMemory: null,
- accessLogs: [],
- relatedMemories: [],
- status: 'idle',
- error: null,
- selectedMemoryIds: [],
-};
-
-const memoriesSlice = createSlice({
- name: 'memories',
- initialState,
- reducers: {
- setSelectedMemory: (state, action: PayloadAction<SimpleMemory | null>) => {
- state.selectedMemory = action.payload;
- },
- setAccessLogs: (state, action: PayloadAction<AccessLogEntry[]>) => {
- state.accessLogs = action.payload;
- },
- setMemoriesLoading: (state) => {
- state.status = 'loading';
- state.error = null;
- state.memories = []; // Optionally clear old memories on new load
- },
- setMemoriesSuccess: (state, action: PayloadAction<Memory[]>) => {
- state.status = 'succeeded';
- state.memories = action.payload;
- state.error = null;
- },
- setMemoriesError: (state, action: PayloadAction<string>) => {
- state.status = 'failed';
- state.error = action.payload;
- },
- resetMemoriesState: (state) => {
- state.status = 'idle';
- state.error = null;
- state.memories = [];
- state.selectedMemoryIds = [];
- state.selectedMemory = null;
- state.accessLogs = [];
- state.relatedMemories = [];
- },
- selectMemory: (state, action: PayloadAction<string>) => {
- if (!state.selectedMemoryIds.includes(action.payload)) {
- state.selectedMemoryIds.push(action.payload);
- }
- },
- deselectMemory: (state, action: PayloadAction<string>) => {
- state.selectedMemoryIds = state.selectedMemoryIds.filter(id => id !== action.payload);
- },
- selectAllMemories: (state) => {
- state.selectedMemoryIds = state.memories.map(memory => memory.id);
- },
- clearSelection: (state) => {
- state.selectedMemoryIds = [];
- },
- setRelatedMemories: (state, action: PayloadAction<Memory[]>) => {
- state.relatedMemories = action.payload;
- },
- },
- // extraReducers section is removed as API calls are handled by the hook
-});
-
-export const {
- setMemoriesLoading,
- setMemoriesSuccess,
- setMemoriesError,
- resetMemoriesState,
- selectMemory,
- deselectMemory,
- selectAllMemories,
- clearSelection,
- setSelectedMemory,
- setAccessLogs,
- setRelatedMemories
-} = memoriesSlice.actions;
-
-export default memoriesSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/store/profileSlice.ts b/openmemory/ui/store/profileSlice.ts
deleted file mode 100644
index aff65d14b..000000000
--- a/openmemory/ui/store/profileSlice.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-
-interface ProfileState {
- userId: string;
- totalMemories: number;
- totalApps: number;
- status: 'idle' | 'loading' | 'succeeded' | 'failed';
- error: string | null;
- apps: any[];
-}
-
-const initialState: ProfileState = {
- userId: process.env.NEXT_PUBLIC_USER_ID || 'user',
- totalMemories: 0,
- totalApps: 0,
- status: 'idle',
- error: null,
- apps: [],
-};
-
-const profileSlice = createSlice({
- name: 'profile',
- initialState,
- reducers: {
- setUserId: (state, action: PayloadAction<string>) => {
- state.userId = action.payload;
- },
- setProfileLoading: (state) => {
- state.status = 'loading';
- state.error = null;
- },
- setProfileError: (state, action: PayloadAction<string>) => {
- state.status = 'failed';
- state.error = action.payload;
- },
- resetProfileState: (state) => {
- state.status = 'idle';
- state.error = null;
- state.userId = process.env.NEXT_PUBLIC_USER_ID || 'user';
- },
- setTotalMemories: (state, action: PayloadAction<number>) => {
- state.totalMemories = action.payload;
- },
- setTotalApps: (state, action: PayloadAction<number>) => {
- state.totalApps = action.payload;
- },
- setApps: (state, action: PayloadAction<any[]>) => {
- state.apps = action.payload;
- }
- },
-});
-
-export const {
- setUserId,
- setProfileLoading,
- setProfileError,
- resetProfileState,
- setTotalMemories,
- setTotalApps,
- setApps
-} = profileSlice.actions;
-
-export default profileSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/store/store.ts b/openmemory/ui/store/store.ts
deleted file mode 100644
index 45f6d84d0..000000000
--- a/openmemory/ui/store/store.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { configureStore } from '@reduxjs/toolkit';
-import memoriesReducer from './memoriesSlice';
-import profileReducer from './profileSlice';
-import appsReducer from './appsSlice';
-import uiReducer from './uiSlice';
-import filtersReducer from './filtersSlice';
-import configReducer from './configSlice';
-
-export const store = configureStore({
- reducer: {
- memories: memoriesReducer,
- profile: profileReducer,
- apps: appsReducer,
- ui: uiReducer,
- filters: filtersReducer,
- config: configReducer,
- },
-});
-
-// Infer the `RootState` and `AppDispatch` types from the store itself
-export type RootState = ReturnType<typeof store.getState>;
-// Inferred type: {memories: MemoriesState, profile: ProfileState, apps: AppsState, ui: UIState, ...}
-export type AppDispatch = typeof store.dispatch;
\ No newline at end of file
diff --git a/openmemory/ui/store/uiSlice.ts b/openmemory/ui/store/uiSlice.ts
deleted file mode 100644
index 1144ee5cf..000000000
--- a/openmemory/ui/store/uiSlice.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { createSlice, PayloadAction } from '@reduxjs/toolkit';
-
-interface DialogState {
- updateMemory: {
- isOpen: boolean;
- memoryId: string | null;
- memoryContent: string | null;
- };
-}
-
-interface UIState {
- dialogs: DialogState;
-}
-
-const initialState: UIState = {
- dialogs: {
- updateMemory: {
- isOpen: false,
- memoryId: null,
- memoryContent: null,
- },
- },
-};
-
-const uiSlice = createSlice({
- name: 'ui',
- initialState,
- reducers: {
- openUpdateMemoryDialog: (state, action: PayloadAction<{ memoryId: string; memoryContent: string }>) => {
- state.dialogs.updateMemory.isOpen = true;
- state.dialogs.updateMemory.memoryId = action.payload.memoryId;
- state.dialogs.updateMemory.memoryContent = action.payload.memoryContent;
- },
- closeUpdateMemoryDialog: (state) => {
- state.dialogs.updateMemory.isOpen = false;
- state.dialogs.updateMemory.memoryId = null;
- state.dialogs.updateMemory.memoryContent = null;
- },
- },
-});
-
-export const {
- openUpdateMemoryDialog,
- closeUpdateMemoryDialog,
-} = uiSlice.actions;
-
-export default uiSlice.reducer;
\ No newline at end of file
diff --git a/openmemory/ui/styles/animation.css b/openmemory/ui/styles/animation.css
deleted file mode 100644
index 0c6b83de0..000000000
--- a/openmemory/ui/styles/animation.css
+++ /dev/null
@@ -1,27 +0,0 @@
-@keyframes fadeSlideDown {
- from {
- opacity: 0;
- transform: translateY(-20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-.animate-fade-slide-down {
- opacity: 0;
- animation: fadeSlideDown 0.5s ease-out forwards;
-}
-
-.delay-1 {
- animation-delay: 0.07s;
-}
-
-.delay-2 {
- animation-delay: 0.14s;
-}
-
-.delay-3 {
- animation-delay: 0.21s;
-}
diff --git a/openmemory/ui/styles/globals.css b/openmemory/ui/styles/globals.css
deleted file mode 100644
index c6540ae5f..000000000
--- a/openmemory/ui/styles/globals.css
+++ /dev/null
@@ -1,94 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-body {
- font-family: Arial, Helvetica, sans-serif;
-}
-
-@layer utilities {
- .text-balance {
- text-wrap: balance;
- }
-}
-
-@layer base {
- :root {
- --background: 0 0% 3.9%;
- --foreground: 0 0% 98%;
- --card: 0 0% 3.9%;
- --card-foreground: 0 0% 98%;
- --popover: 0 0% 3.9%;
- --popover-foreground: 0 0% 98%;
- --primary: 0 0% 98%;
- --primary-foreground: 0 0% 9%;
- --secondary: 0 0% 14.9%;
- --secondary-foreground: 0 0% 98%;
- --muted: 0 0% 14.9%;
- --muted-foreground: 0 0% 63.9%;
- --accent: 0 0% 14.9%;
- --accent-foreground: 0 0% 98%;
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 0 0% 98%;
- --border: 0 0% 14.9%;
- --input: 0 0% 14.9%;
- --ring: 0 0% 83.1%;
- --chart-1: 220 70% 50%;
- --chart-2: 160 60% 45%;
- --chart-3: 30 80% 55%;
- --chart-4: 280 65% 60%;
- --chart-5: 340 75% 55%;
- --radius: 0.5rem;
- --sidebar-background: 240 5.9% 10%;
- --sidebar-foreground: 240 4.8% 95.9%;
- --sidebar-primary: 224.3 76.3% 48%;
- --sidebar-primary-foreground: 0 0% 100%;
- --sidebar-accent: 240 3.7% 15.9%;
- --sidebar-accent-foreground: 240 4.8% 95.9%;
- --sidebar-border: 240 3.7% 15.9%;
- --sidebar-ring: 217.2 91.2% 59.8%;
- }
- .dark {
- --background: 0 0% 3.9%;
- --foreground: 0 0% 98%;
- --card: 0 0% 3.9%;
- --card-foreground: 0 0% 98%;
- --popover: 0 0% 3.9%;
- --popover-foreground: 0 0% 98%;
- --primary: 0 0% 98%;
- --primary-foreground: 0 0% 9%;
- --secondary: 0 0% 14.9%;
- --secondary-foreground: 0 0% 98%;
- --muted: 0 0% 14.9%;
- --muted-foreground: 0 0% 63.9%;
- --accent: 0 0% 14.9%;
- --accent-foreground: 0 0% 98%;
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 0 0% 98%;
- --border: 0 0% 14.9%;
- --input: 0 0% 14.9%;
- --ring: 0 0% 83.1%;
- --chart-1: 220 70% 50%;
- --chart-2: 160 60% 45%;
- --chart-3: 30 80% 55%;
- --chart-4: 280 65% 60%;
- --chart-5: 340 75% 55%;
- --sidebar-background: 240 5.9% 10%;
- --sidebar-foreground: 240 4.8% 95.9%;
- --sidebar-primary: 224.3 76.3% 48%;
- --sidebar-primary-foreground: 0 0% 100%;
- --sidebar-accent: 240 3.7% 15.9%;
- --sidebar-accent-foreground: 240 4.8% 95.9%;
- --sidebar-border: 240 3.7% 15.9%;
- --sidebar-ring: 217.2 91.2% 59.8%;
- }
-}
-
-@layer base {
- * {
- @apply border-border;
- }
- body {
- @apply bg-background text-foreground;
- }
-}
diff --git a/openmemory/ui/styles/notfound.scss b/openmemory/ui/styles/notfound.scss
deleted file mode 100644
index 65b45d038..000000000
--- a/openmemory/ui/styles/notfound.scss
+++ /dev/null
@@ -1,178 +0,0 @@
-@import url('https://fonts.googleapis.com/css?family=Cabin+Sketch');
-
-.site h1 {
- font-family: 'Cabin Sketch', cursive;
- font-size: 3em;
- text-align: center;
- opacity: .8;
- order: 1;
-}
-
-.site h1 small {
- display: block;
-}
-
-.site {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- flex-direction: column;
- margin: 0 auto;
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
-}
-
-
-.sketch {
- position: relative;
- height: 400px;
- min-width: 400px;
- margin: 0;
- overflow: visible;
- order: 2;
-
-}
-
-.bee-sketch {
- height: 100%;
- width: 100%;
- position: absolute;
- top: 0;
- left: 0;
-}
-
-.red {
- background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-1.png) no-repeat center center;
- opacity: 1;
- animation: red 3s linear infinite, opacityRed 5s linear alternate infinite;
-}
-
-.blue {
- background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-1.png) no-repeat center center;
- opacity: 0;
- animation: blue 3s linear infinite, opacityBlue 5s linear alternate infinite;
-}
-
-
-@media only screen and (min-width: 780px) {
- .site {
- flex-direction: row;
- padding: 1em 3em 1em 0em;
- }
-
- .site h1 {
- text-align: right;
- order: 2;
- padding-bottom: 2em;
- padding-left: 2em;
-
- }
-
- .sketch {
- order: 1;
- }
-}
-
-
-@keyframes blue {
- 0% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-1.png)
- }
- 9.09% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-2.png)
- }
- 27.27% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-3.png)
- }
- 36.36% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-4.png)
- }
- 45.45% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-5.png)
- }
- 54.54% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-6.png)
- }
- 63.63% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-7.png)
- }
- 72.72% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-8.png)
- }
- 81.81% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-9.png)
- }
- 100% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/blue-1.png)
- }
-}
-
-@keyframes red {
- 0% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-1.png)
- }
- 9.09% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-2.png)
- }
- 27.27% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-3.png)
- }
- 36.36% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-4.png)
- }
- 45.45% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-5.png)
- }
- 54.54% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-6.png)
- }
- 63.63% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-7.png)
- }
- 72.72% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-8.png)
- }
- 81.81% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-9.png)
- }
- 100% {
- background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/198554/red-1.png)
- }
-}
-
-@keyframes opacityBlue {
- from {
- opacity: 0
- }
- 25% {
- opacity: 0
- }
- 75% {
- opacity: 1
- }
- to {
- opacity: 1
- }
-}
-
-@keyframes opacityRed {
- from {
- opacity: 1
- }
- 25% {
- opacity: 1
- }
- 75% {
- opacity: .3
- }
- to {
- opacity: .3
- }
-}
\ No newline at end of file
diff --git a/openmemory/ui/tailwind.config.ts b/openmemory/ui/tailwind.config.ts
deleted file mode 100644
index 23a1196de..000000000
--- a/openmemory/ui/tailwind.config.ts
+++ /dev/null
@@ -1,81 +0,0 @@
-import type { Config } from "tailwindcss"
-
-const config = {
- darkMode: ["class"],
- content: [
- "./pages/**/*.{ts,tsx}",
- "./components/**/*.{ts,tsx}",
- "./app/**/*.{ts,tsx}",
- "./src/**/*.{ts,tsx}",
- "*.{js,ts,jsx,tsx,mdx}",
- ],
- prefix: "",
- theme: {
- container: {
- center: true,
- padding: "2rem",
- screens: {
- "2xl": "1400px",
- },
- },
- extend: {
- colors: {
- border: "hsl(var(--border))",
- input: "hsl(var(--input))",
- ring: "hsl(var(--ring))",
- background: "hsl(var(--background))",
- foreground: "hsl(var(--foreground))",
- primary: {
- DEFAULT: "hsl(var(--primary))",
- foreground: "hsl(var(--primary-foreground))",
- },
- secondary: {
- DEFAULT: "hsl(var(--secondary))",
- foreground: "hsl(var(--secondary-foreground))",
- },
- destructive: {
- DEFAULT: "hsl(var(--destructive))",
- foreground: "hsl(var(--destructive-foreground))",
- },
- muted: {
- DEFAULT: "hsl(var(--muted))",
- foreground: "hsl(var(--muted-foreground))",
- },
- accent: {
- DEFAULT: "hsl(var(--accent))",
- foreground: "hsl(var(--accent-foreground))",
- },
- popover: {
- DEFAULT: "hsl(var(--popover))",
- foreground: "hsl(var(--popover-foreground))",
- },
- card: {
- DEFAULT: "hsl(var(--card))",
- foreground: "hsl(var(--card-foreground))",
- },
- },
- borderRadius: {
- lg: "var(--radius)",
- md: "calc(var(--radius) - 2px)",
- sm: "calc(var(--radius) - 4px)",
- },
- keyframes: {
- "accordion-down": {
- from: { height: "0" },
- to: { height: "var(--radix-accordion-content-height)" },
- },
- "accordion-up": {
- from: { height: "var(--radix-accordion-content-height)" },
- to: { height: "0" },
- },
- },
- animation: {
- "accordion-down": "accordion-down 0.2s ease-out",
- "accordion-up": "accordion-up 0.2s ease-out",
- },
- },
- },
- plugins: [require("tailwindcss-animate")],
-} satisfies Config
-
-export default config
diff --git a/openmemory/ui/tsconfig.json b/openmemory/ui/tsconfig.json
deleted file mode 100644
index 4b2dc7ba6..000000000
--- a/openmemory/ui/tsconfig.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "compilerOptions": {
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "target": "ES6",
- "skipLibCheck": true,
- "strict": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "bundler",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "jsx": "preserve",
- "incremental": true,
- "plugins": [
- {
- "name": "next"
- }
- ],
- "paths": {
- "@/*": ["./*"]
- }
- },
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
- "exclude": ["node_modules"]
-}
diff --git a/pyproject.toml b/pyproject.toml
index d9ff972bd..1e4fd328d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -148,7 +148,6 @@ test = [
[tool.ruff]
line-length = 120
-exclude = ["openmemory/"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]