The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Add OpenMemory (#2676)
Deshraj Yadavf51b39db9130
diff --git a/docs/docs.json b/docs/docs.jsonindex a966380aa..e93cfff14 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -184,6 +184,14 @@}]},+ {+ "tab": "OpenMemory",+ "icon": "square-terminal",+ "pages": [+ "openmemory/overview",+ "openmemory/quickstart"+ ]+ },{"tab": "Examples","groups": [diff --git a/docs/openmemory/overview.mdx b/docs/openmemory/overview.mdxnew file mode 100644index 000000000..ff46d9d77--- /dev/null+++ b/docs/openmemory/overview.mdx@@ -0,0 +1,81 @@+---+title: Overview+icon: "info"+iconType: "solid"+---++<Snippet file="paper-release.mdx" />++OpenMemory is a local memory infrastructure powered by Mem0 that lets you carry your memory accross any AI app. It provides a unified memory layer that stays with you, enabling agents and assistants to remember what matters across applications.++<img src="https://github.com/user-attachments/assets/3c701757-ad82-4afa-bfbe-e049c2b4320b" alt="OpenMemory UI" />++## What is the OpenMemory MCP Server++The OpenMemory MCP Server is a private, local-first memory server that creates a shared, persistent memory layer for your MCP-compatible tools. This runs entirely on your machine, enabling seamless context handoff across tools. Whether you're switching between development, planning, or debugging environments, your AI assistants can access relevant memory without needing repeated instructions.++The OpenMemory MCP Server ensures all memory stays local, structured, and under your control with no cloud sync or external storage.++## How the OpenMemory MCP Server Works++Built around the Model Context Protocol (MCP), the OpenMemory MCP Server exposes a standardized set of memory tools:+- `add_memories`: Store new memory objects+- `search_memory`: Retrieve relevant memories+- `list_memories`: View all stored memory+- `delete_all_memories`: Clear memory entirely++Any MCP-compatible tool can connect to the server and use these APIs to persist and access memory.++## What It Enables++### Cross-Client Memory Access+Store context in Cursor and retrieve it later in Claude or Windsurf without repeating yourself.++### Fully Local Memory Store+All memory is stored on your machine. Nothing goes to the cloud. You maintain full ownership and control.++### Unified Memory UI+The built-in OpenMemory dashboard provides a central view of everything stored. Add, browse, delete and control memory access to clients directly from the dashboard.++## Supported Clients++The OpenMemory MCP Server is compatible with any client that supports the Model Context Protocol. This includes:+- Cursor+- Claude Desktop+- Windsurf+- Cline, and more.++As more AI systems adopt MCP, your private memory becomes more valuable.++## Real-World Examples++### Scenario 1: Cross-Tool Project Flow+Define technical requirements of a project in Claude Desktop. Build in Cursor. Debug issues in Windsurf - all with shared context passed through OpenMemory.++### Scenario 2: Preferences That Persist+Set your preferred code style or tone in one tool. When you switch to another MCP client, it can access those same preferences without redefining them.++### Scenario 3: Project Knowledge+Save important project details once, then access them from any compatible AI tool, no more repetitive explanations.++## Conclusion++The OpenMemory MCP Server brings memory to MCP-compatible tools without giving up control or privacy. It solves a foundational limitation in modern LLM workflows: the loss of context across tools, sessions, and environments.++By standardizing memory operations and keeping all data local, it reduces token overhead, improves performance, and unlocks more intelligent interactions across the growing ecosystem of AI assistants.++This is just the beginning. The MCP server is the first core layer in the OpenMemory platform - a broader effort to make memory portable, private, and interoperable across AI systems.++## Getting Started Today++- Github Repository: https://github.com/mem0ai/mem0+- Read the documentation: [Docs Link]+- Join our community: [Discord link]++With OpenMemory, your AI memories stay private, portable, and under your control, exactly where they belong.++OpenMemory: Your memories, your control.++## Contributing++OpenMemory is open source and we welcome contributions. Please see the [CONTRIBUTING.md](https://github.com/mem0ai/mem0/blob/main/openmemory/CONTRIBUTING.md) file for more information.\ No newline at end of filediff --git a/docs/openmemory/quickstart.mdx b/docs/openmemory/quickstart.mdxnew file mode 100644index 000000000..0750ca85e--- /dev/null+++ b/docs/openmemory/quickstart.mdx@@ -0,0 +1,47 @@+---+title: Quickstart+icon: "terminal"+iconType: "solid"+---++<Snippet file="paper-release.mdx" />+++## Setting Up OpenMemory++Getting started with OpenMemory is straight forward and takes just a few minutes to set up on your local machine. Follow these steps:++### Getting started+First clone the repository and then follow the instructions:+```bash+# Clone the repository+git clone https://github.com/mem0ai/mem0.git+cd mem0/openmemory++# Create the backend .env file with your OpenAI key+pushd api && echo "OPENAI_API_KEY=your_key_here" > .env && popd++# Build the Docker images+make build++# Start all services (API server, vector database, and MCP server components)+make up++# Start the frontend+cp ui/.env.example ui/.env+make ui+```++You can configure the MCP client using the following command (replace username with your username):++```bash+npx install-mcp i "http://localhost:8765/mcp/cursor/sse/username" --client cursor+```++The OpenMemory dashboard will be available at http://localhost:3000. From here, you can view and manage your memories, as well as check connection status with your MCP clients.++Once set up, OpenMemory runs locally on your machine, ensuring all your AI memories remain private and secure while being accessible across any compatible MCP client.++### Getting Started Today++- Github Repository: https://github.com/mem0ai/mem0/openmemory\ No newline at end of filediff --git a/openmemory/.gitignore b/openmemory/.gitignorenew file mode 100644index 000000000..4337750ec--- /dev/null+++ b/openmemory/.gitignore@@ -0,0 +1,13 @@+*.db+.env*+!.env.example+!.env.dev+!ui/lib+.venv/+__pycache__+.DS_Store+node_modules/+*.log+api/.openmemory*+**/.next+.openmemory/\ No newline at end of filediff --git a/openmemory/CONTRIBUTING.md b/openmemory/CONTRIBUTING.mdnew file mode 100644index 000000000..701334d47--- /dev/null+++ b/openmemory/CONTRIBUTING.md@@ -0,0 +1,70 @@+# 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/Makefilenew file mode 100644index 000000000..8e6344bf4--- /dev/null+++ b/openmemory/Makefile@@ -0,0 +1,70 @@+.PHONY: help up down logs shell migrate test test-clean env ui-install ui-start ui-dev++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 - Install dependencies and start the frontend"++env:+ cd api && cp .env.example .env++build:+ cd api && docker-compose build++up:+ cd api && docker-compose up++down:+ cd api && docker-compose down -v+ rm -f api/openmemory.db++logs:+ cd api && docker-compose logs -f++shell:+ cd api && docker-compose exec api bash++upgrade:+ cd api && docker-compose exec api alembic upgrade head++migrate:+ cd api && docker-compose exec api alembic upgrade head++downgrade:+ cd api && docker-compose exec api alembic downgrade -1++test:+ cd api && docker-compose run --rm api pytest tests/ -v++test-clean:+ cd api && docker-compose run --rm api pytest tests/ -v && docker-compose down -v++# Frontend commands+ui-install:+ cd ui && pnpm install++ui-build:+ cd ui && pnpm build++ui-start:+ cd ui && NEXT_PUBLIC_USER_ID=$(USER) NEXT_PUBLIC_API_URL=$(NEXT_PUBLIC_API_URL) pnpm start++ui-dev-start:+ cd ui && NEXT_PUBLIC_USER_ID=$(USER) NEXT_PUBLIC_API_URL=$(NEXT_PUBLIC_API_URL) && pnpm dev++ui-dev: ui-install ui-dev-start++ui: ui-install ui-build ui-start\ No newline at end of filediff --git a/openmemory/README.md b/openmemory/README.mdnew file mode 100644index 000000000..d7f540171--- /dev/null+++ b/openmemory/README.md@@ -0,0 +1,51 @@+# OpenMemory++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.++++## Prerequisites++- Docker and Docker Compose+- Python 3.9+ (for backend development)+- Node.js (for frontend development)+- OpenAI API Key (required for LLM interactions)++## Quickstart++You can run the project using the following two commands:+```bash+make build # builds the mcp server+make up # runs openmemory mcp server+make ui # runs openmemory 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++## 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/.env.example b/openmemory/api/.env.examplenew file mode 100644index 000000000..2627a0e9f--- /dev/null+++ b/openmemory/api/.env.example@@ -0,0 +1,2 @@+OPENAI_API_KEY=sk-...+USER=username\ No newline at end of filediff --git a/openmemory/api/.python-version b/openmemory/api/.python-versionnew file mode 100644index 000000000..fdcfcfdfc--- /dev/null+++ b/openmemory/api/.python-version@@ -0,0 +1 @@+3.12\ No newline at end of filediff --git a/openmemory/api/Dockerfile b/openmemory/api/Dockerfilenew file mode 100644index 000000000..5dd9fecee--- /dev/null+++ b/openmemory/api/Dockerfile@@ -0,0 +1,13 @@+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 . .++EXPOSE 8765+CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8765"]diff --git a/openmemory/api/README.md b/openmemory/api/README.mdnew file mode 100644index 000000000..3e92170f0--- /dev/null+++ b/openmemory/api/README.md@@ -0,0 +1,53 @@+# 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. 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 changesdiff --git a/openmemory/api/alembic.ini b/openmemory/api/alembic.ininew file mode 100644index 000000000..8cddf4fe7--- /dev/null+++ b/openmemory/api/alembic.ini@@ -0,0 +1,114 @@+# 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:%Sdiff --git a/openmemory/api/alembic/README b/openmemory/api/alembic/READMEnew file mode 100644index 000000000..98e4f9c44--- /dev/null+++ b/openmemory/api/alembic/README@@ -0,0 +1 @@+Generic single-database configuration.\ No newline at end of filediff --git a/openmemory/api/alembic/env.py b/openmemory/api/alembic/env.pynew file mode 100644index 000000000..b4295b69f--- /dev/null+++ b/openmemory/api/alembic/env.py@@ -0,0 +1,92 @@+from logging.config import fileConfig++from sqlalchemy import engine_from_config+from sqlalchemy import pool++from alembic import context++import os+import sys+from dotenv import load_dotenv++# 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+from app.database import Base+from app.models import * # Import all your models++# 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.makonew file mode 100644index 000000000..480b130d6--- /dev/null+++ b/openmemory/api/alembic/script.py.mako@@ -0,0 +1,28 @@+"""${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.pynew file mode 100644index 000000000..fb834314a--- /dev/null+++ b/openmemory/api/alembic/versions/0b53c747049a_initial_migration.py@@ -0,0 +1,226 @@+"""Initial migration++Revision ID: 0b53c747049a+Revises:+Create Date: 2025-04-19 00:59:56.244203++"""+from typing import Sequence, Union++from alembic import op+import sqlalchemy as sa+++# 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/app/__init__.py b/openmemory/api/app/__init__.pynew file mode 100644index 000000000..4c4d1566e--- /dev/null+++ b/openmemory/api/app/__init__.py@@ -0,0 +1 @@+# This file makes the app directory a Python package\ No newline at end of filediff --git a/openmemory/api/app/config.py b/openmemory/api/app/config.pynew file mode 100644index 000000000..5da454235--- /dev/null+++ b/openmemory/api/app/config.py@@ -0,0 +1,4 @@+import os++USER_ID = os.getenv("USER", "default_user")+DEFAULT_APP_ID = "openmemory"\ No newline at end of filediff --git a/openmemory/api/app/database.py b/openmemory/api/app/database.pynew file mode 100644index 000000000..6404ce700--- /dev/null+++ b/openmemory/api/app/database.py@@ -0,0 +1,29 @@+import os+from sqlalchemy import create_engine+from sqlalchemy.orm import declarative_base, sessionmaker+from dotenv import load_dotenv++# 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.pynew file mode 100644index 000000000..e57745907--- /dev/null+++ b/openmemory/api/app/mcp_server.py@@ -0,0 +1,382 @@+import logging+import json+from mcp.server.fastmcp import FastMCP+from mcp.server.sse import SseServerTransport+from app.utils.memory import get_memory_client+from fastapi import FastAPI, Request+from fastapi.routing import APIRouter+import contextvars+import os+from dotenv import load_dotenv+from app.database import SessionLocal+from app.models import Memory, MemoryState, MemoryStatusHistory, MemoryAccessLog+from app.utils.db import get_user_and_app+import uuid+import datetime+from app.utils.permissions import check_memory_access_permissions+from qdrant_client import models as qdrant_models++# Load environment variables+load_dotenv()++# Initialize MCP and memory client+mcp = FastMCP("mem0-mcp-server")++# Check if OpenAI API key is set+if not os.getenv("OPENAI_API_KEY"):+ raise Exception("OPENAI_API_KEY is not set in .env file")++memory_client = get_memory_client()++# 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 new memories to the user's memory")+async def add_memories(text: 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"++ 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,+ })++ # 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 response+ finally:+ db.close()+ except Exception as e:+ return f"Error adding to memory: {e}"++[email protected](description="Search the user's memory for memories that match the query")+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"+ 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)]+ conditions = [qdrant_models.FieldCondition(key="user_id", match=qdrant_models.MatchValue(value=uid))]+ logging.info(f"Accessible memory IDs: {accessible_memory_ids}")+ logging.info(f"Conditions: {conditions}")+ if accessible_memory_ids:+ # Convert UUIDs to strings for Qdrant+ accessible_memory_ids_str = [str(memory_id) for memory_id in accessible_memory_ids]+ conditions.append(qdrant_models.HasIdCondition(has_id=accessible_memory_ids_str))+ filters = qdrant_models.Filter(must=conditions)+ logging.info(f"Filters: {filters}")+ embeddings = memory_client.embedding_model.embed(query, "search")+ hits = memory_client.vector_store.client.query_points(+ collection_name=memory_client.vector_store.collection_name,+ query=embeddings,+ query_filter=filters,+ limit=10,+ )++ memories = hits.points+ memories = [+ {+ "id": memory.id,+ "memory": memory.payload["data"],+ "hash": memory.payload.get("hash"),+ "created_at": memory.payload.get("created_at"),+ "updated_at": memory.payload.get("updated_at"),+ "score": memory.score,+ }+ for memory in memories+ ]++ # Log memory access for each memory found+ if isinstance(memories, dict) and 'results' in memories:+ print(f"Memories: {memories}")+ for memory_data in memories['results']:+ if 'id' in memory_data:+ memory_id = uuid.UUID(memory_data['id'])+ # Create access log entry+ access_log = MemoryAccessLog(+ memory_id=memory_id,+ app_id=app.id,+ access_type="search",+ metadata_={+ "query": query,+ "score": memory_data.get('score'),+ "hash": memory_data.get('hash')+ }+ )+ db.add(access_log)+ db.commit()+ else:+ for memory in memories:+ memory_id = uuid.UUID(memory['id'])+ # Create access log entry+ access_log = MemoryAccessLog(+ memory_id=memory_id,+ app_id=app.id,+ access_type="search",+ metadata_={+ "query": query,+ "score": memory.get('score'),+ "hash": memory.get('hash')+ }+ )+ db.add(access_log)+ db.commit()+ return json.dumps(memories, 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"+ 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:+ return f"Error getting 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"+ 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:+ memory_client.delete(memory_id)++ # 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:+ 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:+ # Handle SSE connection+ 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_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):+ pass++ # 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+ # Clean up context variable+ # client_name_var.reset(client_token)++def setup_mcp_server(app: FastAPI):+ """Setup MCP server with the FastAPI application"""+ mcp._mcp_server.name = f"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.pynew file mode 100644index 000000000..b41aa4ed0--- /dev/null+++ b/openmemory/api/app/models.py@@ -0,0 +1,217 @@+import enum+import uuid+import datetime+from sqlalchemy import (+ Column, String, Boolean, ForeignKey, Enum, Table,+ DateTime, JSON, Integer, UUID, Index, event+)+from sqlalchemy.orm import relationship+from app.database import Base+from sqlalchemy.orm import Session+from app.utils.categorization import get_categories_for_memory+++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, unique=True, 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")+++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__.pynew file mode 100644index 000000000..f152fc2e6--- /dev/null+++ b/openmemory/api/app/routers/__init__.py@@ -0,0 +1,5 @@+from .memories import router as memories_router+from .apps import router as apps_router+from .stats import router as stats_router++__all__ = ["memories_router", "apps_router", "stats_router"]\ No newline at end of filediff --git a/openmemory/api/app/routers/apps.py b/openmemory/api/app/routers/apps.pynew file mode 100644index 000000000..36584f92b--- /dev/null+++ b/openmemory/api/app/routers/apps.py@@ -0,0 +1,223 @@+from typing import Optional+from uuid import UUID+from fastapi import APIRouter, Depends, HTTPException, Query+from sqlalchemy.orm import Session, joinedload+from sqlalchemy import func, desc++from app.database import get_db+from app.models import App, Memory, MemoryAccessLog, MemoryState++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[email protected]("/")+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/memories.py b/openmemory/api/app/routers/memories.pynew file mode 100644index 000000000..29a942dbc--- /dev/null+++ b/openmemory/api/app/routers/memories.py@@ -0,0 +1,575 @@+from datetime import datetime, UTC+from typing import List, Optional, Set+from uuid import UUID+from fastapi import APIRouter, Depends, HTTPException, Query+from sqlalchemy.orm import Session, joinedload+from fastapi_pagination import Page, Params+from fastapi_pagination.ext.sqlalchemy import paginate as sqlalchemy_paginate+from pydantic import BaseModel+from sqlalchemy import or_, func++from app.database import get_db+from app.models import (+ Memory, MemoryState, MemoryAccessLog, App,+ MemoryStatusHistory, User, Category, AccessControl+)+from app.schemas import MemoryResponse, PaginatedMemoryResponse+from app.utils.permissions import check_memory_access_permissions++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())+++ # Get paginated results+ paginated_results = sqlalchemy_paginate(query, params)++ # Filter results based on permissions+ filtered_items = []+ for item in paginated_results.items:+ if check_memory_access_permissions(db, item, app_id):+ filtered_items.append(item)++ # Update paginated results with filtered items+ paginated_results.items = filtered_items+ paginated_results.total = len(filtered_items)++ return paginated_results+++# 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[email protected]("/")+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).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.")++ # Create memory+ memory = Memory(+ user_id=user.id,+ app_id=app_obj.id,+ content=request.text,+ metadata_=request.metadata+ )+ db.add(memory)+ db.commit()+ db.refresh(memory)+ return memory+++# 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[email protected]("/")+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")++ for memory_id in request.memory_ids:+ 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": f"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+ ]+ )diff --git a/openmemory/api/app/routers/stats.py b/openmemory/api/app/routers/stats.pynew file mode 100644index 000000000..047721f1c--- /dev/null+++ b/openmemory/api/app/routers/stats.py@@ -0,0 +1,30 @@+from fastapi import APIRouter, Depends, HTTPException+from sqlalchemy.orm import Session+from app.database import get_db+from app.models import User, Memory, App, MemoryState+++router = APIRouter(prefix="/api/v1/stats", tags=["stats"])+[email protected]("/")+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.pynew file mode 100644index 000000000..35a512f69--- /dev/null+++ b/openmemory/api/app/schemas.py@@ -0,0 +1,64 @@+from datetime import datetime+from typing import Optional, List+from uuid import UUID+from pydantic import BaseModel, 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++ class Config:+ 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: intdiff --git a/openmemory/api/app/utils/__init__.py b/openmemory/api/app/utils/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/openmemory/api/app/utils/categorization.py b/openmemory/api/app/utils/categorization.pynew file mode 100644index 000000000..bcfbe657b--- /dev/null+++ b/openmemory/api/app/utils/categorization.py@@ -0,0 +1,37 @@+import json+import logging++from openai import OpenAI+from typing import List+from dotenv import load_dotenv+from pydantic import BaseModel+from tenacity import retry, stop_after_attempt, wait_exponential+from app.utils.prompts import MEMORY_CATEGORIZATION_PROMPT++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]:+ """Get categories for a memory."""+ try:+ response = openai_client.responses.parse(+ model="gpt-4o-mini",+ instructions=MEMORY_CATEGORIZATION_PROMPT,+ input=memory,+ temperature=0,+ text_format=MemoryCategories,+ )+ response_json =json.loads(response.output[0].content[0].text)+ categories = response_json['categories']+ categories = [cat.strip().lower() for cat in categories]+ # TODO: Validate categories later may be+ return categories+ except Exception as e:+ raise ediff --git a/openmemory/api/app/utils/db.py b/openmemory/api/app/utils/db.pynew file mode 100644index 000000000..bf2fcf9cf--- /dev/null+++ b/openmemory/api/app/utils/db.py@@ -0,0 +1,32 @@+from sqlalchemy.orm import Session+from app.models import User, App+from typing import Tuple+++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, appdiff --git a/openmemory/api/app/utils/memory.py b/openmemory/api/app/utils/memory.pynew file mode 100644index 000000000..5cacc3c4e--- /dev/null+++ b/openmemory/api/app/utils/memory.py@@ -0,0 +1,51 @@+import os++from mem0 import Memory+++memory_client = None+++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.++ Raises:+ Exception: If required API keys are not set.+ """+ global memory_client++ if memory_client is not None:+ return memory_client++ try:+ config = {+ "vector_store": {+ "provider": "qdrant",+ "config": {+ "collection_name": "openmemory",+ "host": "mem0_store",+ "port": 6333,+ }+ }+ }++ memory_client = Memory.from_config(config_dict=config)+ except Exception:+ raise Exception("Exception occurred while initializing memory client")++ # Update project with custom instructions if provided+ if custom_instructions:+ memory_client.update_project(custom_instructions=custom_instructions)++ return memory_client+++def get_default_user_id():+ return "default_user"diff --git a/openmemory/api/app/utils/permissions.py b/openmemory/api/app/utils/permissions.pynew file mode 100644index 000000000..4b8a04edd--- /dev/null+++ b/openmemory/api/app/utils/permissions.py@@ -0,0 +1,52 @@+from typing import Optional+from uuid import UUID+from sqlalchemy.orm import Session+from app.models import Memory, App, MemoryState+++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_idsdiff --git a/openmemory/api/app/utils/prompts.py b/openmemory/api/app/utils/prompts.pynew file mode 100644index 000000000..669f2e600--- /dev/null+++ b/openmemory/api/app/utils/prompts.py@@ -0,0 +1,28 @@+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/docker-compose.yml b/openmemory/api/docker-compose.ymlnew file mode 100644index 000000000..91434645e--- /dev/null+++ b/openmemory/api/docker-compose.yml@@ -0,0 +1,26 @@+services:+ mem0_store:+ image: qdrant/qdrant+ ports:+ - "6333:6333"+ volumes:+ - mem0_storage:/mem0/storage+ api:+ image: mem0/openmemory-mcp+ build: .+ environment:+ - OPENAI_API_KEY+ - USER+ env_file:+ - .env+ depends_on:+ - mem0_store+ ports:+ - "8765:8765"+ volumes:+ - .:/usr/src/openmemory+ command: >+ sh -c "uvicorn main:app --host 0.0.0.0 --port 8765 --reload --workers 4"++volumes:+ mem0_storage:diff --git a/openmemory/api/main.py b/openmemory/api/main.pynew file mode 100644index 000000000..a519dd849--- /dev/null+++ b/openmemory/api/main.py@@ -0,0 +1,86 @@+import datetime+from fastapi import FastAPI+from app.database import engine, Base, SessionLocal+from app.mcp_server import setup_mcp_server+from app.routers import memories_router, apps_router, stats_router+from fastapi_pagination import add_pagination+from fastapi.middleware.cors import CORSMiddleware+from app.models import User, App+from uuid import uuid4+from app.config import USER_ID, DEFAULT_APP_ID++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)++# Add pagination support+add_pagination(app)diff --git a/openmemory/api/requirements.txt b/openmemory/api/requirements.txtnew file mode 100644index 000000000..9b973de5f--- /dev/null+++ b/openmemory/api/requirements.txt@@ -0,0 +1,15 @@+fastapi>=0.68.0+uvicorn>=0.15.0+sqlalchemy>=1.4.0+python-dotenv>=0.19.0+alembic>=1.7.0+psycopg2-binary>=2.9.0+python-multipart>=0.0.5+fastapi-pagination>=0.12.0+mem0ai>=0.1.92+mcp[cli]>=1.3.0+pytest>=7.0.0+pytest-asyncio>=0.21.0+httpx>=0.24.0+pytest-cov>=4.0.0+tenacity==9.1.2diff --git a/openmemory/ui/.env.dev b/openmemory/ui/.env.devnew file mode 100644index 000000000..896ce957a--- /dev/null+++ b/openmemory/ui/.env.dev@@ -0,0 +1,2 @@+NEXT_PUBLIC_API_URL=NEXT_PUBLIC_API_URL+NEXT_PUBLIC_USER_ID=NEXT_PUBLIC_USER_ID\ No newline at end of filediff --git a/openmemory/ui/.env.example b/openmemory/ui/.env.examplenew file mode 100644index 000000000..1a8182f86--- /dev/null+++ b/openmemory/ui/.env.example@@ -0,0 +1,2 @@+NEXT_PUBLIC_API_URL=http://localhost:8000+NEXT_PUBLIC_USER_ID=default-userdiff --git a/openmemory/ui/Dockerfile b/openmemory/ui/Dockerfilenew file mode 100644index 000000000..ec0f7f8db--- /dev/null+++ b/openmemory/ui/Dockerfile@@ -0,0 +1,62 @@+# 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++# Dependencies stage+FROM base AS deps++# Copy lockfile and manifest+COPY package.json pnpm-lock.yaml ./++# Install dependencies using pnpm+RUN pnpm install --frozen-lockfile++# Builder stage+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.dev .env++RUN pnpm build++# Production runner stage+FROM base AS runner+WORKDIR /app++ENV NODE_ENV=production++# Create non-root user for security+RUN addgroup --system --gid 1001 nodejs && \+ adduser --system --uid 1001 nextjs++# Copy production dependencies and built artifacts+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 and prepare entrypoint script+COPY --chown=nextjs:nodejs entrypoint.sh /home/nextjs/entrypoint.sh+RUN chmod +x /home/nextjs/entrypoint.sh++# Switch to non-root user+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.tsxnew file mode 100644index 000000000..7f3f3c4fa--- /dev/null+++ b/openmemory/ui/app/apps/[appId]/components/AppDetailCard.tsx@@ -0,0 +1,166 @@+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.tsxnew file mode 100644index 000000000..dfb35cb11--- /dev/null+++ b/openmemory/ui/app/apps/[appId]/components/MemoryCard.tsx@@ -0,0 +1,115 @@+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.tsxnew file mode 100644index 000000000..ecd90313d--- /dev/null+++ b/openmemory/ui/app/apps/[appId]/page.tsx@@ -0,0 +1,219 @@+"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.tsxnew file mode 100644index 000000000..13a4fe0cb--- /dev/null+++ b/openmemory/ui/app/apps/components/AppCard.tsx@@ -0,0 +1,84 @@+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.tsxnew file mode 100644index 000000000..25aad06d7--- /dev/null+++ b/openmemory/ui/app/apps/components/AppFilters.tsx@@ -0,0 +1,150 @@+"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.tsxnew file mode 100644index 000000000..b075e1209--- /dev/null+++ b/openmemory/ui/app/apps/components/AppGrid.tsx@@ -0,0 +1,48 @@+"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.tsxnew file mode 100644index 000000000..9b255fe12--- /dev/null+++ b/openmemory/ui/app/apps/page.tsx@@ -0,0 +1,20 @@+"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.cssnew file mode 100644index 000000000..91d1eb5a1--- /dev/null+++ b/openmemory/ui/app/globals.css@@ -0,0 +1,59 @@+@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.tsxnew file mode 100644index 000000000..0096136c8--- /dev/null+++ b/openmemory/ui/app/layout.tsx@@ -0,0 +1,38 @@+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.tsxnew file mode 100644index 000000000..4349ac3a6--- /dev/null+++ b/openmemory/ui/app/loading.tsx@@ -0,0 +1,3 @@+export default function Loading() {+ return null;+}diff --git a/openmemory/ui/app/memories/components/CreateMemoryDialog.tsx b/openmemory/ui/app/memories/components/CreateMemoryDialog.tsxnew file mode 100644index 000000000..7eb4c8212--- /dev/null+++ b/openmemory/ui/app/memories/components/CreateMemoryDialog.tsx@@ -0,0 +1,88 @@+"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.tsxnew file mode 100644index 000000000..53d52b93d--- /dev/null+++ b/openmemory/ui/app/memories/components/FilterComponent.tsx@@ -0,0 +1,411 @@+"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.tsxnew file mode 100644index 000000000..08b0f6feb--- /dev/null+++ b/openmemory/ui/app/memories/components/MemoriesSection.tsx@@ -0,0 +1,145 @@+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.tsxnew file mode 100644index 000000000..8406162c3--- /dev/null+++ b/openmemory/ui/app/memories/components/MemoryFilters.tsx@@ -0,0 +1,154 @@+"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.tsxnew file mode 100644index 000000000..f4a3e24b0--- /dev/null+++ b/openmemory/ui/app/memories/components/MemoryPagination.tsx@@ -0,0 +1,40 @@+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.tsxnew file mode 100644index 000000000..5ed95531d--- /dev/null+++ b/openmemory/ui/app/memories/components/MemoryTable.tsx@@ -0,0 +1,302 @@+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.tsxnew file mode 100644index 000000000..3987d05ef--- /dev/null+++ b/openmemory/ui/app/memories/components/PageSizeSelector.tsx@@ -0,0 +1,43 @@+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.tsxnew file mode 100644index 000000000..3ebb9764a--- /dev/null+++ b/openmemory/ui/app/memories/page.tsx@@ -0,0 +1,45 @@+"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.tsxnew file mode 100644index 000000000..9d1b4d5f1--- /dev/null+++ b/openmemory/ui/app/memory/[id]/components/AccessLog.tsx@@ -0,0 +1,116 @@+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.tsxnew file mode 100644index 000000000..9f4958e83--- /dev/null+++ b/openmemory/ui/app/memory/[id]/components/MemoryActions.tsx@@ -0,0 +1,114 @@+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.tsxnew file mode 100644index 000000000..886aac6ec--- /dev/null+++ b/openmemory/ui/app/memory/[id]/components/MemoryDetails.tsx@@ -0,0 +1,151 @@+"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.tsxnew file mode 100644index 000000000..0c681c047--- /dev/null+++ b/openmemory/ui/app/memory/[id]/components/RelatedMemories.tsx@@ -0,0 +1,90 @@+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.tsxnew file mode 100644index 000000000..310999ec6--- /dev/null+++ b/openmemory/ui/app/memory/[id]/page.tsx@@ -0,0 +1,69 @@+"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.tsxnew file mode 100644index 000000000..151d5f0c6--- /dev/null+++ b/openmemory/ui/app/not-found.tsx@@ -0,0 +1,53 @@+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.tsxnew file mode 100644index 000000000..f905ee14c--- /dev/null+++ b/openmemory/ui/app/page.tsx@@ -0,0 +1,38 @@+"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.tsxnew file mode 100644index 000000000..068c4b9d8--- /dev/null+++ b/openmemory/ui/app/providers.tsx@@ -0,0 +1,8 @@+"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/components.json b/openmemory/ui/components.jsonnew file mode 100644index 000000000..d9ef0ae53--- /dev/null+++ b/openmemory/ui/components.json@@ -0,0 +1,21 @@+{+ "$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 filediff --git a/openmemory/ui/components/Navbar.tsx b/openmemory/ui/components/Navbar.tsxnew file mode 100644index 000000000..34524ff0f--- /dev/null+++ b/openmemory/ui/components/Navbar.tsx@@ -0,0 +1,146 @@+"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";++export function Navbar() {+ const pathname = usePathname();++ const memoriesApi = useMemoriesApi();+ const appsApi = useAppsApi();+ const statsApi = useStats();++ // 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],+ },+ ];++ 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>+ </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.tsxnew file mode 100644index 000000000..27aa7741d--- /dev/null+++ b/openmemory/ui/components/dashboard/Install.tsx@@ -0,0 +1,196 @@+"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" },+];++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:8000";++ const handleCopy = async (tab: string, isMcp: boolean = false) => {+ const text = isMcp+ ? `${URL}/mcp/openmemory/sse/${user}`+ : `npx install-mcp i ${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-8">+ {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 install-mcp i ${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.tsxnew file mode 100644index 000000000..b73ef4125--- /dev/null+++ b/openmemory/ui/components/dashboard/Stats.tsx@@ -0,0 +1,69 @@+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/shared/categories.tsx b/openmemory/ui/components/shared/categories.tsxnew file mode 100644index 000000000..3b4d06cec--- /dev/null+++ b/openmemory/ui/components/shared/categories.tsx@@ -0,0 +1,230 @@+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.tsxnew file mode 100644index 000000000..374fd1b84--- /dev/null+++ b/openmemory/ui/components/shared/source-app.tsx@@ -0,0 +1,80 @@+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",+ },+ 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.tsxnew file mode 100644index 000000000..aa09e59a4--- /dev/null+++ b/openmemory/ui/components/shared/update-memory.tsx@@ -0,0 +1,93 @@+"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.tsxnew file mode 100644index 000000000..1a44ac3a1--- /dev/null+++ b/openmemory/ui/components/theme-provider.tsx@@ -0,0 +1,11 @@+"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.tsnew file mode 100644index 000000000..2cebdb34e--- /dev/null+++ b/openmemory/ui/components/types.ts@@ -0,0 +1,13 @@+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 filediff --git a/openmemory/ui/components/ui/accordion.tsx b/openmemory/ui/components/ui/accordion.tsxnew file mode 100644index 000000000..24c788c2c--- /dev/null+++ b/openmemory/ui/components/ui/accordion.tsx@@ -0,0 +1,58 @@+"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.tsxnew file mode 100644index 000000000..25e7b4744--- /dev/null+++ b/openmemory/ui/components/ui/alert-dialog.tsx@@ -0,0 +1,141 @@+"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.tsxnew file mode 100644index 000000000..41fa7e056--- /dev/null+++ b/openmemory/ui/components/ui/alert.tsx@@ -0,0 +1,59 @@+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.tsxnew file mode 100644index 000000000..d6a5226f5--- /dev/null+++ b/openmemory/ui/components/ui/aspect-ratio.tsx@@ -0,0 +1,7 @@+"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.tsxnew file mode 100644index 000000000..51e507ba9--- /dev/null+++ b/openmemory/ui/components/ui/avatar.tsx@@ -0,0 +1,50 @@+"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.tsxnew file mode 100644index 000000000..f000e3ef5--- /dev/null+++ b/openmemory/ui/components/ui/badge.tsx@@ -0,0 +1,36 @@+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.tsxnew file mode 100644index 000000000..60e6c96f7--- /dev/null+++ b/openmemory/ui/components/ui/breadcrumb.tsx@@ -0,0 +1,115 @@+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.tsxnew file mode 100644index 000000000..36496a287--- /dev/null+++ b/openmemory/ui/components/ui/button.tsx@@ -0,0 +1,56 @@+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.tsxnew file mode 100644index 000000000..61d2b451e--- /dev/null+++ b/openmemory/ui/components/ui/calendar.tsx@@ -0,0 +1,66 @@+"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.tsxnew file mode 100644index 000000000..afa13ecfa--- /dev/null+++ b/openmemory/ui/components/ui/card.tsx@@ -0,0 +1,79 @@+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.tsxnew file mode 100644index 000000000..ec505d00d--- /dev/null+++ b/openmemory/ui/components/ui/carousel.tsx@@ -0,0 +1,262 @@+"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.tsxnew file mode 100644index 000000000..8620baa3b--- /dev/null+++ b/openmemory/ui/components/ui/chart.tsx@@ -0,0 +1,365 @@+"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.tsxnew file mode 100644index 000000000..df61a1388--- /dev/null+++ b/openmemory/ui/components/ui/checkbox.tsx@@ -0,0 +1,30 @@+"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.tsxnew file mode 100644index 000000000..9fa48946a--- /dev/null+++ b/openmemory/ui/components/ui/collapsible.tsx@@ -0,0 +1,11 @@+"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.tsxnew file mode 100644index 000000000..59a264529--- /dev/null+++ b/openmemory/ui/components/ui/command.tsx@@ -0,0 +1,153 @@+"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.tsxnew file mode 100644index 000000000..93ef37ba9--- /dev/null+++ b/openmemory/ui/components/ui/context-menu.tsx@@ -0,0 +1,200 @@+"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.tsxnew file mode 100644index 000000000..01ff19c7e--- /dev/null+++ b/openmemory/ui/components/ui/dialog.tsx@@ -0,0 +1,122 @@+"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.tsxnew file mode 100644index 000000000..6a0ef53dd--- /dev/null+++ b/openmemory/ui/components/ui/drawer.tsx@@ -0,0 +1,118 @@+"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.tsxnew file mode 100644index 000000000..0fc4c0e07--- /dev/null+++ b/openmemory/ui/components/ui/dropdown-menu.tsx@@ -0,0 +1,200 @@+"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.tsxnew file mode 100644index 000000000..ce264aef2--- /dev/null+++ b/openmemory/ui/components/ui/form.tsx@@ -0,0 +1,178 @@+"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.tsxnew file mode 100644index 000000000..e54d91cf8--- /dev/null+++ b/openmemory/ui/components/ui/hover-card.tsx@@ -0,0 +1,29 @@+"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.tsxnew file mode 100644index 000000000..f66fcfa0d--- /dev/null+++ b/openmemory/ui/components/ui/input-otp.tsx@@ -0,0 +1,71 @@+"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.tsxnew file mode 100644index 000000000..68551b927--- /dev/null+++ b/openmemory/ui/components/ui/input.tsx@@ -0,0 +1,22 @@+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.tsxnew file mode 100644index 000000000..534182176--- /dev/null+++ b/openmemory/ui/components/ui/label.tsx@@ -0,0 +1,26 @@+"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.tsxnew file mode 100644index 000000000..5586fa9b2--- /dev/null+++ b/openmemory/ui/components/ui/menubar.tsx@@ -0,0 +1,236 @@+"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.tsxnew file mode 100644index 000000000..1419f5669--- /dev/null+++ b/openmemory/ui/components/ui/navigation-menu.tsx@@ -0,0 +1,128 @@+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.tsxnew file mode 100644index 000000000..ea40d196d--- /dev/null+++ b/openmemory/ui/components/ui/pagination.tsx@@ -0,0 +1,117 @@+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.tsxnew file mode 100644index 000000000..a0ec48bee--- /dev/null+++ b/openmemory/ui/components/ui/popover.tsx@@ -0,0 +1,31 @@+"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.tsxnew file mode 100644index 000000000..5c87ea486--- /dev/null+++ b/openmemory/ui/components/ui/progress.tsx@@ -0,0 +1,28 @@+"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.tsxnew file mode 100644index 000000000..e9bde1793--- /dev/null+++ b/openmemory/ui/components/ui/radio-group.tsx@@ -0,0 +1,44 @@+"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.tsxnew file mode 100644index 000000000..f4bc5586b--- /dev/null+++ b/openmemory/ui/components/ui/resizable.tsx@@ -0,0 +1,45 @@+"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.tsxnew file mode 100644index 000000000..0b4a48d87--- /dev/null+++ b/openmemory/ui/components/ui/scroll-area.tsx@@ -0,0 +1,48 @@+"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.tsxnew file mode 100644index 000000000..cbe5a36b6--- /dev/null+++ b/openmemory/ui/components/ui/select.tsx@@ -0,0 +1,160 @@+"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.tsxnew file mode 100644index 000000000..12d81c4a8--- /dev/null+++ b/openmemory/ui/components/ui/separator.tsx@@ -0,0 +1,31 @@+"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.tsxnew file mode 100644index 000000000..a37f17ba0--- /dev/null+++ b/openmemory/ui/components/ui/sheet.tsx@@ -0,0 +1,140 @@+"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.tsxnew file mode 100644index 000000000..eeb2d7aeb--- /dev/null+++ b/openmemory/ui/components/ui/sidebar.tsx@@ -0,0 +1,763 @@+"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.tsxnew file mode 100644index 000000000..01b8b6d4f--- /dev/null+++ b/openmemory/ui/components/ui/skeleton.tsx@@ -0,0 +1,15 @@+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.tsxnew file mode 100644index 000000000..c31c2b3bc--- /dev/null+++ b/openmemory/ui/components/ui/slider.tsx@@ -0,0 +1,28 @@+"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.tsxnew file mode 100644index 000000000..452f4d9f0--- /dev/null+++ b/openmemory/ui/components/ui/sonner.tsx@@ -0,0 +1,31 @@+"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.tsxnew file mode 100644index 000000000..bc69cf2db--- /dev/null+++ b/openmemory/ui/components/ui/switch.tsx@@ -0,0 +1,29 @@+"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.tsxnew file mode 100644index 000000000..7f3502f8b--- /dev/null+++ b/openmemory/ui/components/ui/table.tsx@@ -0,0 +1,117 @@+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.tsxnew file mode 100644index 000000000..26eb10912--- /dev/null+++ b/openmemory/ui/components/ui/tabs.tsx@@ -0,0 +1,55 @@+"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.tsxnew file mode 100644index 000000000..4d858bb6b--- /dev/null+++ b/openmemory/ui/components/ui/textarea.tsx@@ -0,0 +1,22 @@+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.tsxnew file mode 100644index 000000000..521b94b07--- /dev/null+++ b/openmemory/ui/components/ui/toast.tsx@@ -0,0 +1,129 @@+"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.tsxnew file mode 100644index 000000000..171beb46d--- /dev/null+++ b/openmemory/ui/components/ui/toaster.tsx@@ -0,0 +1,35 @@+"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.tsxnew file mode 100644index 000000000..1c876bbee--- /dev/null+++ b/openmemory/ui/components/ui/toggle-group.tsx@@ -0,0 +1,61 @@+"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.tsxnew file mode 100644index 000000000..c19bea373--- /dev/null+++ b/openmemory/ui/components/ui/toggle.tsx@@ -0,0 +1,45 @@+"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.tsxnew file mode 100644index 000000000..30fc44d90--- /dev/null+++ b/openmemory/ui/components/ui/tooltip.tsx@@ -0,0 +1,30 @@+"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.tsxnew file mode 100644index 000000000..2b0fe1dfe--- /dev/null+++ b/openmemory/ui/components/ui/use-mobile.tsx@@ -0,0 +1,19 @@+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.tsnew file mode 100644index 000000000..02e111d81--- /dev/null+++ b/openmemory/ui/components/ui/use-toast.ts@@ -0,0 +1,194 @@+"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/docker-compose.yml b/openmemory/ui/docker-compose.ymlnew file mode 100644index 000000000..6dee2b267--- /dev/null+++ b/openmemory/ui/docker-compose.yml@@ -0,0 +1,13 @@+services:+ frontend:+ build:+ context: .+ dockerfile: Dockerfile+ image: mem0/openmemory-ui:latest+ ports:+ - "3000:3000"+ env_file:+ - .env+ environment:+ - NEXT_PUBLIC_API_URL=NEXT_PUBLIC_API_URL+ - NEXT_PUBLIC_USER_ID=NEXT_PUBLIC_USER_IDdiff --git a/openmemory/ui/entrypoint.sh b/openmemory/ui/entrypoint.shnew file mode 100644index 000000000..b887dd481--- /dev/null+++ b/openmemory/ui/entrypoint.sh@@ -0,0 +1,20 @@+#!/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 filediff --git a/openmemory/ui/hooks/use-mobile.tsx b/openmemory/ui/hooks/use-mobile.tsxnew file mode 100644index 000000000..2b0fe1dfe--- /dev/null+++ b/openmemory/ui/hooks/use-mobile.tsx@@ -0,0 +1,19 @@+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.tsnew file mode 100644index 000000000..02e111d81--- /dev/null+++ b/openmemory/ui/hooks/use-toast.ts@@ -0,0 +1,194 @@+"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.tsnew file mode 100644index 000000000..9fa6dc2a9--- /dev/null+++ b/openmemory/ui/hooks/useAppsApi.ts@@ -0,0 +1,198 @@+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:8000";++ 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/useFiltersApi.ts b/openmemory/ui/hooks/useFiltersApi.tsnew file mode 100644index 000000000..876b233e7--- /dev/null+++ b/openmemory/ui/hooks/useFiltersApi.ts@@ -0,0 +1,79 @@+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:8000";++ 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 filediff --git a/openmemory/ui/hooks/useMemoriesApi.ts b/openmemory/ui/hooks/useMemoriesApi.tsnew file mode 100644index 000000000..bff2a2796--- /dev/null+++ b/openmemory/ui/hooks/useMemoriesApi.ts@@ -0,0 +1,344 @@+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:8000";++ 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 filediff --git a/openmemory/ui/hooks/useStats.ts b/openmemory/ui/hooks/useStats.tsnew file mode 100644index 000000000..c485658f3--- /dev/null+++ b/openmemory/ui/hooks/useStats.ts@@ -0,0 +1,59 @@+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:8000";++ 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 filediff --git a/openmemory/ui/hooks/useUI.ts b/openmemory/ui/hooks/useUI.tsnew file mode 100644index 000000000..238b38389--- /dev/null+++ b/openmemory/ui/hooks/useUI.ts@@ -0,0 +1,22 @@+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 filediff --git a/openmemory/ui/lib/helpers.ts b/openmemory/ui/lib/helpers.tsnew file mode 100644index 000000000..cf4d3b32f--- /dev/null+++ b/openmemory/ui/lib/helpers.ts@@ -0,0 +1,27 @@+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 filediff --git a/openmemory/ui/lib/utils.ts b/openmemory/ui/lib/utils.tsnew file mode 100644index 000000000..d084ccade--- /dev/null+++ b/openmemory/ui/lib/utils.ts@@ -0,0 +1,6 @@+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.tsnew file mode 100644index 000000000..1b3be0840--- /dev/null+++ b/openmemory/ui/next-env.d.ts@@ -0,0 +1,5 @@+/// <reference types="next" />+/// <reference types="next/image-types/global" />++// 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.mjsnew file mode 100644index 000000000..a1448414f--- /dev/null+++ b/openmemory/ui/next.config.dev.mjs@@ -0,0 +1,15 @@+/** @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 filediff --git a/openmemory/ui/next.config.mjs b/openmemory/ui/next.config.mjsnew file mode 100644index 000000000..2033beb7a--- /dev/null+++ b/openmemory/ui/next.config.mjs@@ -0,0 +1,14 @@+/** @type {import('next').NextConfig} */+const nextConfig = {+ eslint: {+ ignoreDuringBuilds: true,+ },+ typescript: {+ ignoreBuildErrors: true,+ },+ images: {+ unoptimized: true,+ },+}++export default nextConfig\ No newline at end of filediff --git a/openmemory/ui/package.json b/openmemory/ui/package.jsonnew file mode 100644index 000000000..d2535407a--- /dev/null+++ b/openmemory/ui/package.json@@ -0,0 +1,84 @@+{+ "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.8.4",+ "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.17.21",+ "lucide-react": "^0.454.0",+ "next": "15.2.4",+ "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"+ ]+ }+}diff --git a/openmemory/ui/pnpm-lock.yaml b/openmemory/ui/pnpm-lock.yamlnew file mode 100644index 000000000..e78a4519a--- /dev/null+++ b/openmemory/ui/pnpm-lock.yaml@@ -0,0 +1,4082 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:++ .:+ dependencies:+ '@hookform/resolvers':+ specifier: ^3.9.1+ version: 3.9.1([email protected]([email protected]))+ '@radix-ui/react-accordion':+ specifier: ^1.2.2+ version: 1.2.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog':+ specifier: ^1.1.4+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar':+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox':+ specifier: ^1.1.3+ version: 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible':+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-context-menu':+ specifier: ^2.2.4+ version: 2.2.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog':+ specifier: ^1.1.4+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu':+ specifier: ^2.1.4+ version: 2.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card':+ specifier: ^1.1.4+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label':+ specifier: ^2.1.1+ version: 2.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menubar':+ specifier: ^1.1.4+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu':+ specifier: ^1.2.3+ version: 1.2.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover':+ specifier: ^1.1.4+ version: 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group':+ specifier: ^1.2.2+ version: 1.2.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area':+ specifier: ^1.2.2+ version: 1.2.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select':+ specifier: ^2.1.4+ version: 2.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider':+ specifier: ^1.2.2+ version: 1.2.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-switch':+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs':+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toast':+ specifier: ^1.2.4+ version: 1.2.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group':+ specifier: ^1.1.1+ version: 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip':+ specifier: ^1.1.6+ version: 1.1.6(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@reduxjs/toolkit':+ specifier: ^2.7.0+ version: 2.7.0([email protected](@types/[email protected])([email protected])([email protected]))([email protected])+ autoprefixer:+ specifier: ^10.4.20+ version: 10.4.20([email protected])+ axios:+ specifier: ^1.8.4+ version: 1.8.4+ 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+ version: 1.0.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ 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.17.21+ version: 4.17.21+ lucide-react:+ specifier: ^0.454.0+ version: 0.454.0([email protected])+ next:+ specifier: 15.2.4+ next-themes:+ specifier: ^0.4.4+ react:+ specifier: ^19+ version: 19.0.0+ react-day-picker:+ specifier: 8.10.1+ version: 8.10.1([email protected])([email protected])+ react-dom:+ specifier: ^19+ version: 19.0.0([email protected])+ react-hook-form:+ specifier: ^7.54.1+ version: 7.54.1([email protected])+ react-icons:+ specifier: ^5.5.0+ version: 5.5.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.86.3+ sonner:+ specifier: ^1.7.1+ tailwind-merge:+ specifier: ^2.5.5+ version: 2.5.5+ tailwindcss-animate:+ specifier: ^1.0.7+ version: 1.0.7([email protected])+ vaul:+ specifier: ^0.9.6+ version: 0.9.6(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ zod:+ specifier: ^3.24.1+ version: 3.24.1+ devDependencies:+ '@types/lodash':+ specifier: ^4.17.16+ version: 4.17.16+ '@types/node':+ specifier: ^22+ version: 22.0.0+ '@types/react':+ specifier: ^19+ version: 19.0.0+ '@types/react-dom':+ specifier: ^19+ version: 19.0.0+ postcss:+ specifier: ^8+ version: 8.0.0+ tailwindcss:+ specifier: ^3.4.17+ version: 3.4.17+ typescript:+ specifier: ^5+ version: 5.0.2++packages:++ '@alloc/[email protected]':+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}+ engines: {node: '>=10'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==}+ engines: {node: '>=6.9.0'}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==}++ '@hookform/[email protected]':+ resolution: {integrity: sha512-ud2HqmGBM0P0IABqoskKWI6PEf6ZDDBZkFqe2Vnl+mTHCEHzr3ISjjZyCwTjC/qpL25JC9aIDkloQejvMeq0ug==}+ peerDependencies:+ react-hook-form: ^7.0.0++ '@img/[email protected]':+ resolution: {integrity: sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}+ cpu: [arm64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}+ cpu: [arm]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}+ cpu: [s390x]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}+ cpu: [x64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}+ cpu: [arm64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}+ cpu: [x64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [s390x]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]++ '@img/[email protected]':+ resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [wasm32]++ '@img/[email protected]':+ resolution: {integrity: sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ia32]+ os: [win32]++ '@img/[email protected]':+ resolution: {integrity: sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [win32]++ '@isaacs/[email protected]':+ resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}+ engines: {node: '>=12'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}++ '@next/[email protected]':+ resolution: {integrity: sha512-+SFtMgoiYP3WoSswuNmxJOCwi06TdWE733D+WPjpXIe4LXGULwEaofiiAy6kbS0+XjM5xF5n3lKuBwN2SnqD9g==}++ '@next/[email protected]':+ resolution: {integrity: sha512-1AnMfs655ipJEDC/FHkSr0r3lXBgpqKo4K1kiwfUf3iE68rDFXZ1TtHdMvf7D0hMItgDZ7Vuq3JgNMbt/+3bYw==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-3qK2zb5EwCwxnO2HeO+TRqCubeI/NgCe+kL5dTJlPldV/uwCnUgC7VbEzgmxbfrkbjehL4H9BPztWOEtsoMwew==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-HFN6GKUcrTWvem8AZN7tT95zPb0GUGv9v0d0iyuTb303vbXkkbHDp/DxufB04jNVD+IN9yHy7y/6Mqq0h0YVaQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-Oioa0SORWLwi35/kVB8aCk5Uq+5/ZIumMK1kJV+jSdazFm2NzPDztsefzdmzzpx5oGCJ6FkUC7vkaUseNTStNA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-yb5WTRaHdkgOqFOZiu6rHV1fAEK0flVpaIN2HB6kxHVSy/dIajWbThS7qON3W9/SNOH2JWkVCyulgGYekMePuw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-Dcdv/ix6srhkM25fgXiyOieFUkz+fOYkHlydWCtB0xMST6X9XYI3yPDKBZt1xuhOytONsIFJFB08xXYsxUwJLw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@next/[email protected]':+ resolution: {integrity: sha512-dW0i7eukvDxtIhCYkMrZNQfNicPDExt2jPb9AZPpL7cfyUo7QSNl1DjsHjmmKp6qNAqUESyT8YFl/Aw91cNJJg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@next/[email protected]':+ resolution: {integrity: sha512-SbnWkJmkS7Xl3kre8SdMF6F/XDh1DTFEhp0jRTj/uB8iPKoU2bb2NDfcu+iifv1+mxQEd1g2vvSxcZbXSKyWiQ==}+ 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-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [android]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [darwin]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [darwin]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [freebsd]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [linux]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}+ engines: {node: '>= 10.0.0'}+ cpu: [arm64]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==}+ engines: {node: '>= 10.0.0'}+ cpu: [ia32]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==}+ engines: {node: '>= 10.0.0'}+ cpu: [x64]+ os: [win32]++ '@parcel/[email protected]':+ resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==}+ engines: {node: '>= 10.0.0'}++ '@pkgjs/[email protected]':+ resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}+ engines: {node: '>=14'}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-b1oh54x4DMCdGsB4/7ahiSrViXxaBwRPotiZNnYXjLha9vfuURSAZErki6qjDoSIV0eXx5v57XnTGVtGwnfp2g==}+ 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-A6Kh23qZDLy3PSU4bh2UJZznOrUdHImIXqF8YtUa6CN73f8EOO9XlXSCd9IHyPvIquTaa/kwaSWzZTtUvgXVGw==}+ 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-NaVpZfmv8SKeZbn4ijN2V3jlHA9ngBG16VnIIm22nUR0Yk8KUALyBxT3KYEUnNuch9sTE8UTsS3whzBgKOL30w==}+ 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-kNU4FIpcFMBLkOUcgeIteH06/8JLBcYY6Le1iKenDGCYNYFX3TQqCZjzkOsz37h7r94/99GTb7YhEr98ZBJibw==}+ 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-GaC7bXQZ5VgZvVvsJ5mu/AEbjYLnhhkoidOboC50Z6FFlLA03wG2ianUoH+zgDQ31/9gCF59bE4+2bBgTyMiig==}+ 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-HD7/ocp8f1B3e6OHygH0n7ZKjONkhciy1Nh0yuBgObqThc3oyx+vuMfFHKAknXRHHWVE9XvXStxJFyjUmB8PIw==}+ 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-PliMB63vxz7vggcyq0IxNYk8vGDrLXVWw4+W4B8YnwI1s18x7YZYqlG9PLX7XxAJUi0g2DxP4XKJMFHh/iVh9A==}+ 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-LwT3pSho9Dljg+wY2KN2mrrh6y3qELfftINERIzBUO9e0N+t0oMTyn3k9iv+ZqgrwGkRnLpNJrsMv9BZlt2yuA==}+ 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-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}+ 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-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}+ 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-ap4wdGwK52rJxGkwukU1NrnEodsUFQIooANKu+ey7d6raQ2biTcEf8za1zr0mgFHieevRTB2nK4dJeN8pTAZGQ==}+ 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-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==}+ 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-Ur7EV1IwQGCyaAuyDRiOLA5JIUZxELJljF+MbM/2NC0BYwfuRrbpS30BiQBJrVruscgUkieKkqXYDOoByaxIoA==}+ 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-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}+ 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-onrWn/72lQoEucDmJnr8uczSNTujT0vJnA/X5+3AkChVPowr8n1yvIKIabhWyMQeMvvmdpsvcyDqx3X1LEXCPg==}+ 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-iXU1Ab5ecM+yEepGAWK8ZhMyKX4ubFdCNtol4sT9D0OVErG9PNElfx3TQhjw7n7BC5nFVz68/5//clWy+8TXzA==}+ 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-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}+ 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-01omzJAYRxXdG2/he/+xy+c8a8gCydoQ1yOxnWNcRhrrBW5W+RQJ22EK1SaO8tb3WoUsuEw7mJjBozPzihDFjA==}+ 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-QSUUnRA3PQ2UhvoCv3eYvMnCAgGQW+sTu86QPuNb+ZMi+ZENd6UWpiXbcWDQ4AEaKF9KKpCHBeaJz9Rw6lRlaQ==}+ 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-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}+ 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-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}+ 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-UUw5E4e/2+4kFMH7+YxORXGWggtY6sM8WIwh5RZchhLuUg2H1hc98Py+pr8HMz6rdaYrK2t296ZEjYLOCO5uUw==}+ 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-BnOgVoL6YYdHAG6DtXONaR29Eq4nvbi8rutrV/xlr3RQCMMb3yqP85Qiw/3NReozrSW+4dfLkK+rc1hb4wPU/A==}+ 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-+KMpi7VAZuB46+1LD7a30zb5IxyzLgC8m8j42gk3N4TUCcViNQdX8FhoH1HDvYiA8quuqcek4R4bYpPn/SY1GA==}+ 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-IQWAsQ7dsLIYDrn0WqPU+cdM7MONTv9nqrLVYoie3BPiabSfUVDe6Fr+oEt0Cofsr9ONDcDe9xhmJbL1Uq1yKg==}+ 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-aUACAkXx8LaFymDma+HQVji7WhvEhpFJ7+qPz17Nf4lLZqtreGOFRiNQWQmhzp7kEWg9cOyyQJpdIMUMPc/CPw==}+ 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-3kn5Me69L+jv82EKRuQCXdYyf1DqHwD2U/sxoNgBGCB7K9TRc3bQamQ+5EPM9EvyPdli0W41sROd+ZU1dTCztw==}+ 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-NciRqhXnGojhT93RPyDaMPfLH3ZSl4jjIFbZQ1b/vxvZEdHsBZ49wP9w8L3HzUQwep01LcWtkUvm0OVB5JAHTw==}+ 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-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg==}+ 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-sHCWTtxwNn3L3fH8qAfnF3WbUZycW93SM1j3NFDzXBiz8D6F5UTTy8G1+WFEaiCdvCVRJWj6N2R4Xq6HdiHmDg==}+ 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-Pf/t/GkndH7CQ8wE2hbkXA+WyZ83fhQQn5DDmwDiDo6AwN/fhaH8oqZ0jRjMrO2iaMhDi6P1HRx6AZwyMinY1g==}+ 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-6diOawA84f/eMxFHcWut0aE1C2kyE9dOyCTQOMRR2C/qPiXz/X0SaiA/RLbapQaXUCmy0/hLMf9meSccD1N0pA==}+ 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-E0MLLGfOP0l8P/NxgVzfXJ8w3Ch8cdO6UDzJfDChu4EJDy+/WdO5LqpdY8PYnCErkmZH3gZhDL1K7kQ41fAHuQ==}+ 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-QE1RoxPGJ/Nm8Qmk0PxP8ojmoaS67i0s7hVssS7KuI2FQoc/uzVlZsqKfQvxPE6D8hICCPHJ4D88zNhT3OOmkw==}+ 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-EFI1N/S3YxZEW/lJ/H1jY3njlvTd8tBmgKEn4GHi51+aMm94i6NmAJstsm5cu3yJwYqYc93gpCPm21FeAbFk6g==}+ 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-pOkb2u8KgO47j/h7AylCj7dJsm69BXcjkrvTqMptFqsE2i0p8lHkfgneXKjAgPzBMivnoMyt8o4KiV4wYzDdyQ==}+ 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-RRiNRSrD8iUiXriq/Y5n4/3iE8HzqgLHsusUSg5jVpU2+3tqcUFPJXHDymwEypunc2sWxDUS3UC+rkZRlHedsw==}+ 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-sNlU06ii1/ZcbHf8I9En54ZPW0Vil/yPVg4vQMcFNjrIx51jsHbFl1HYHQvCIWJSr1q0ZmA+iIs/ZTv8h7HHSA==}+ 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-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==}+ 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-ujc+V6r0HNDviYqIK3rW4ffgYiZ8g5DEHrGJVk4x7kTlLXRDILnKX9vAUYeIsLOoDpDJ0ujpqMkjH4w2ofuo6w==}+ 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-zGukiWHjEdBCRyXvKR6iXAQG6qXm2esuAD6kDOi9Cn+1X6ev3ASo4+CsYaD6Fov9r/AQFekqnD/7+V0Cs6/98g==}+ 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-9u/tQJMcC2aGq7KXpGivMm1mgq7oRJKXphDwdypPd/j21j/2znamPU8WkXgnhUaTrSFNIt8XhOyCAupg8/GbwQ==}+ 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-Sch9idFJHJTMH9YNpxxESqABcAFweJG4tKv+0zo0m5XBvUSL8FM5xKcJLFLXononpePs8IclyX1KieL5SDUNgA==}+ 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-OgDLZEA30Ylyz8YSXvnGqIHtERqnUt1KUYTKdw/y8u7Ci6zGiJfXc02jahmcSNK3YcErqioj/9flWC9S1ihfwg==}+ 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-i77tcgObYr743IonC1hrsnnPmszDRn8p+EGUsUt+5a/JFn28fxaM88Py6V2mc8J5kELMWishI0rLnuGLFD/nnQ==}+ 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-TLB5D8QLExS1uDn7+wH/bjEmRurNMTzNrtq7IjaS4kjion9NtzsTGkvR5+i7yc9q01Pi2KMM2cN3f8UG4IvvXA==}+ 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-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}+ 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-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}+ 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-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==}+ 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-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}+ 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-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}+ 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-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==}+ 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-0Fmkebhr6PiseyZlYAOtLS+nb7jLmpqTrJyv61Pe68MKYW6OWdRE2kI70TaYY27u7H0lajqM3hSMMLFq18Z7nQ==}+ 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-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw==}+ 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-vVfA2IZ9q/J+gEamvj761Oq1FpWgCDaNOOIfbPVp2MVPLEomUr5+Vf7kJGwQ24YxZSlQVar7Bes8kyTo5Dshpg==}+ 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-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}++ '@reduxjs/[email protected]':+ resolution: {integrity: sha512-XVwolG6eTqwV0N8z/oDlN93ITCIGIop6leXlGJI/4EKy+0POYkR+ABHRSdGXY+0MQvJBP8yAzh+EYFxTuvmBiQ==}+ 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-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}++ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}++ '@swc/[email protected]':+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}++ '@swc/[email protected]':+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}++ '@types/[email protected]':+ resolution: {integrity: sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==}++ '@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-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==}++ '@types/[email protected]':+ resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==}++ '@types/[email protected]':+ resolution: {integrity: sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==}++ '@types/[email protected]':+ resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}++ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}+ engines: {node: '>=12'}++ 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-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}++ resolution: {integrity: sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==}+ engines: {node: ^10 || ^12 || >=14}+ hasBin: true+ peerDependencies:+ postcss: ^8.1.0++ resolution: {integrity: sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==}++ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}++ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}++ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true++ resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}+ engines: {node: '>=10.16.0'}++ 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-mtgapdwDLSSBnCI3JokHM7oEQBLxiJKVRtg10AxM1AyeiKcM96f0Mkbqeq+1AbiCtvMcHRulAAEMu693JrSWqg==}++ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}+ engines: {node: '>= 8.10.0'}++ resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}+ engines: {node: '>= 14.16.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-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}+ engines: {node: '>=7.0.0'}++ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}++ resolution: {integrity: sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==}++ resolution: {integrity: sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==}+ engines: {node: '>=12.5.0'}++ resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==}++ resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}++ 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-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==}+ 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-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}++ resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}+ engines: {node: '>=0.4.0'}++ resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==}+ engines: {node: '>=0.10'}+ hasBin: true++ resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}+ 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-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}++ resolution: {integrity: sha512-/QSJaU2JyIuTbbABAo/crOs+SuAZLS+fVVS10PVrIT9hrRkmZl8Hb0xPSkKRUUWHQtYzXHpQUW3Dy5hwMzGZkA==}++ 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-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}++ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}++ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}+ 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-V7/RktU11J3I36Nwq2JnZEM7tNm17eBJz+u25qdxBZeCKiX6BkVSZQjwWIr+IobgnZy+ag73tTZgZi7tr0LrBw==}+ engines: {node: '>=6.0.0'}++ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}+ engines: {node: '>=8.6.0'}++ resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==}++ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==}+ engines: {node: '>=4.0'}+ peerDependencies:+ debug: '*'+ peerDependenciesMeta:+ debug:+ optional: true++ resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}++ 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-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==}+ hasBin: true++ 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-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==}++ resolution: {integrity: sha512-3jatXi9ObIsPGr3N5hGw/vWWcTkq6hUYhpQz4k0wLC+owqWi/LiugIw9x0EdNZ2yGedKN/HzePiBvaJRXa0Ujg==}++ 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-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==}++ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}+ engines: {node: '>=0.12.0'}++ resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==}++ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}++ resolution: {integrity: sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}++ 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-Ktrjk5noGYlHsVnYWh62FLVs4hTb8A3e+vucNZMgPeAOITdshMSgv4cCZQeRDjm7+goqmo6+liZwTXo+U3sVww==}++ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}++ resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}++ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}+ hasBin: true++ resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}++ 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-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}+ engines: {node: '>=16 || 14 >=14.17'}++ resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}+ engines: {node: '>=16 || 14 >=14.17'}++ resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}++ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true++ resolution: {integrity: sha512-LDQ2qIOJF0VnuVrrMSMLrWGjRMkq+0mpgl6e0juCLqdJ+oo8Q84JRWT6Wh11VDQKkMMe+dVzDKLWs5n87T+PkQ==}+ 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-VwL+LAaPSxEkd3lU2xWbgEOtrM8oedmyhBqaVNmgKB+GvZlCy9rgaEc+y2on0wv+l0oSFqLtYD6dcC1eAedUaQ==}+ engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}+ hasBin: true+ peerDependencies:+ '@opentelemetry/api': ^1.1.0+ '@playwright/test': ^1.41.2+ 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-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==}++ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}+ 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-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}++ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}++ resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}+ engines: {node: '>=16 || 14 >=14.18'}++ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}++ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}+ engines: {node: '>=8.6'}++ 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.0.0++ resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}+ engines: {node: ^12 || ^14 || >= 16}+ peerDependencies:+ postcss: ^8.4.21++ resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}+ engines: {node: '>= 14'}+ peerDependencies:+ postcss: '>=8.0.9'+ ts-node: '>=9.0.0'+ peerDependenciesMeta:+ postcss:+ optional: true+ ts-node:+ optional: true++ resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}+ engines: {node: '>=12.0'}+ peerDependencies:+ postcss: ^8.2.14++ resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}++ resolution: {integrity: sha512-BriaW5AeZHfyuuKhK3Z6yRDKI6NR2TdRWyZcj3+Pk2nczQsMBqavggAzTledsbyexPthW3nFA6XfgCWjZqmVPA==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}++ resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}++ 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-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==}+ peerDependencies:+ react: ^19.0.0++ resolution: {integrity: sha512-PUNzFwQeQ5oHiiTUO7GO/EJXGEtuun2Y1A59rLnZBBj+vNEOWt/3ERTiG1/zt7dVeJEM+4vDX/7XQ/qanuvPMg==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ react: ^16.8.0 || ^17 || ^18 || ^19++ resolution: {integrity: sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw==}+ peerDependencies:+ react: '*'++ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}++ resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}++ resolution: {integrity: sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+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-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ==}+ 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-JtT6gI+nURzhMYQYsx8DKkx6bSoOGFp7A3CwMrOb8y5jFHFyqwo9m68UhmXRw57fRVJksFn1TSlm3ywEQ9vMgA==}+ 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-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==}+ 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-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}+ engines: {node: '>= 14.18.0'}++ resolution: {integrity: sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==}++ resolution: {integrity: sha512-cIvMxDfpAmqAmVgc4yb7pgm/O1tmmkl/CjrvXuW+62/+7jj/iF9Ykm+hb/UJt42TREHMyd3gb+pkgoa2MxgDIw==}+ engines: {node: '>=14'}+ 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-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}++ resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==}++ resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}+ 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-iGtg8kus4GrsGLRDLRBRHY9dNVA78ZaS7xr01cWnS7PEMQyFtTqBiyCrfpTYTZXRWM94akzckYjh8oADfFNTzw==}+ engines: {node: '>=14.0.0'}+ hasBin: true++ resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==}++ resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}++ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}++ resolution: {integrity: sha512-b6LHBfH32SoVasRFECrdY8p8s7hXPDn3OHUFbZZbiB1ctLS9Gdh6rpX2dVrpQA0kiL5jcRzDDldwwLkSKk3+QQ==}+ 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-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}+ engines: {node: '>=10.0.0'}++ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}+ engines: {node: '>=12'}++ 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-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}+ engines: {node: '>=16 || 14 >=14.17'}+ hasBin: true++ resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-0LXunzzAZzo0tEPxV3I297ffKZPlKDrjj7NXphC8V5ak9yHC5zRmxnOe2m/Rd/7ivsOMJe3JZ2JVocoDdQTRBA==}++ resolution: {integrity: sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==}+ peerDependencies:+ tailwindcss: '>=3.0.0 || insiders'++ resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}+ 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-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-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==}+ engines: {node: '>=12.20'}+ hasBin: true++ resolution: {integrity: sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==}++ resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==}+ 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-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}++ resolution: {integrity: sha512-Ykk5FSu4ibeD6qfKQH/CkBRdSGWkxi35KMNei0z59kTPAlgzpE/Qf1gTx2sxih8Q05KBO/aFhcF/UkBW5iI1Ww==}+ 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-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}+ engines: {node: '>= 8'}+ hasBin: true++ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==}+ engines: {node: '>= 14'}+ hasBin: true++ resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==}++snapshots:++ '@alloc/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ regenerator-runtime: 0.14.1++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.9++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.6.9+ '@floating-ui/utils': 0.2.9++ dependencies:+ '@floating-ui/dom': 1.6.13+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ '@floating-ui/[email protected]': {}++ dependencies:+ react-hook-form: 7.54.1([email protected])++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-arm64': 1.0.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-x64': 1.0.4+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm64': 1.0.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm': 1.0.5+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-s390x': 1.0.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-x64': 1.0.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-arm64': 1.0.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-x64': 1.0.4+ optional: true++ '@img/[email protected]':+ dependencies:+ '@emnapi/runtime': 1.4.3+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@isaacs/[email protected]':+ dependencies:+ string-width: 5.1.2+ string-width-cjs: [email protected]+ strip-ansi: 7.1.0+ strip-ansi-cjs: [email protected]+ wrap-ansi: 8.1.0+ wrap-ansi-cjs: [email protected]++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/set-array': 1.2.1+ '@jridgewell/sourcemap-codec': 1.5.0+ '@jridgewell/trace-mapping': 0.3.25++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.0++ '@next/[email protected]': {}++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ 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.19.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: 1.0.3+ is-glob: 4.0.3+ micromatch: 4.0.8+ node-addon-api: 7.1.1+ optionalDependencies:+ '@parcel/watcher-android-arm64': 2.5.1+ '@parcel/watcher-darwin-arm64': 2.5.1+ '@parcel/watcher-darwin-x64': 2.5.1+ '@parcel/watcher-freebsd-x64': 2.5.1+ '@parcel/watcher-linux-arm-glibc': 2.5.1+ '@parcel/watcher-linux-arm-musl': 2.5.1+ '@parcel/watcher-linux-arm64-glibc': 2.5.1+ '@parcel/watcher-linux-arm64-musl': 2.5.1+ '@parcel/watcher-linux-x64-glibc': 2.5.1+ '@parcel/watcher-linux-x64-musl': 2.5.1+ '@parcel/watcher-win32-arm64': 2.5.1+ '@parcel/watcher-win32-ia32': 2.5.1+ '@parcel/watcher-win32-x64': 2.5.1+ optional: true++ '@pkgjs/[email protected]':+ optional: true++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collapsible': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.4+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.4+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ aria-hidden: 1.2.4+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.0+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.0+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.0+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.4+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.0+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.1.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/rect': 1.1.0+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0+ optionalDependencies:+ '@types/react': 19.0.0++ '@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ '@types/react-dom': 19.0.0++ '@radix-ui/[email protected]': {}++ '@reduxjs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected])':+ dependencies:+ '@standard-schema/spec': 1.0.0+ '@standard-schema/utils': 0.3.0+ immer: 10.1.1+ redux: 5.0.1+ redux-thunk: 3.1.0([email protected])+ reselect: 5.1.1+ optionalDependencies:+ react: 19.0.0++ '@standard-schema/[email protected]': {}++ '@standard-schema/[email protected]': {}++ '@swc/[email protected]': {}++ '@swc/[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.11.1++ '@types/[email protected]':+ dependencies:+ '@types/react': 19.0.0++ '@types/[email protected]':+ dependencies:+ csstype: 3.1.3++ '@types/[email protected]': {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-convert: 2.0.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ normalize-path: 3.0.0+ picomatch: 2.3.1++ [email protected]: {}++ dependencies:+ tslib: 2.8.1++ [email protected]: {}++ dependencies:+ browserslist: 4.24.4+ caniuse-lite: 1.0.30001714+ fraction.js: 4.3.7+ normalize-range: 0.1.2+ picocolors: 1.1.1+ postcss: 8.0.0+ postcss-value-parser: 4.2.0++ dependencies:+ follow-redirects: 1.15.9+ form-data: 4.0.2+ proxy-from-env: 1.1.0+ transitivePeerDependencies:+ - debug++ [email protected]: {}++ [email protected]: {}++ dependencies:+ balanced-match: 1.0.2++ dependencies:+ fill-range: 7.1.1++ dependencies:+ caniuse-lite: 1.0.30001714+ electron-to-chromium: 1.5.137+ node-releases: 2.0.19+ update-browserslist-db: 1.1.3([email protected])++ dependencies:+ streamsearch: 1.1.0++ dependencies:+ es-errors: 1.3.0+ function-bind: 1.1.2++ [email protected]: {}++ [email protected]: {}++ 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: 4.1.2++ dependencies:+ clsx: 2.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.3(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ use-sync-external-store: 1.5.0([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'++ dependencies:+ color-name: 1.1.4++ [email protected]: {}++ dependencies:+ color-name: 1.1.4+ simple-swizzle: 0.2.2+ optional: true++ dependencies:+ color-convert: 2.0.1+ color-string: 1.9.1+ optional: true++ [email protected]: {}++ dependencies:+ delayed-stream: 1.0.0++ [email protected]: {}++ dependencies:+ path-key: 3.1.1+ shebang-command: 2.0.0+ which: 2.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ internmap: 2.0.3++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ d3-color: 3.1.0++ [email protected]: {}++ dependencies:+ d3-array: 3.2.4+ d3-format: 3.1.0+ 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++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ optional: true++ optional: true++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@babel/runtime': 7.27.0+ csstype: 3.1.3++ dependencies:+ call-bind-apply-helpers: 1.0.2+ es-errors: 1.3.0+ gopd: 1.2.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ embla-carousel: 8.5.1+ embla-carousel-reactive-utils: 8.5.1([email protected])+ react: 19.0.0++ dependencies:+ embla-carousel: 8.5.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ 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.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ 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++ dependencies:+ to-regex-range: 5.0.1++ [email protected]: {}++ dependencies:+ cross-spawn: 7.0.6+ signal-exit: 4.1.0++ dependencies:+ asynckit: 0.4.0+ combined-stream: 1.0.8+ es-set-tostringtag: 2.1.0+ mime-types: 2.1.35++ [email protected]: {}++ optional: true++ [email protected]: {}++ dependencies:+ call-bind-apply-helpers: 1.0.2+ es-define-property: 1.0.1+ es-errors: 1.3.0+ es-object-atoms: 1.1.1+ function-bind: 1.1.2+ get-proto: 1.0.1+ gopd: 1.2.0+ has-symbols: 1.1.0+ hasown: 2.0.2+ math-intrinsics: 1.1.0++ [email protected]: {}++ dependencies:+ dunder-proto: 1.0.1+ es-object-atoms: 1.1.1++ dependencies:+ is-glob: 4.0.3++ dependencies:+ is-glob: 4.0.3++ dependencies:+ foreground-child: 3.3.1+ jackspeak: 3.4.3+ minimatch: 9.0.5+ minipass: 7.1.2+ package-json-from-dist: 1.0.1+ path-scurry: 1.11.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ has-symbols: 1.1.0++ dependencies:+ function-bind: 1.1.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ [email protected]: {}++ optional: true++ dependencies:+ binary-extensions: 2.3.0++ dependencies:+ hasown: 2.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-extglob: 2.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ isarray: 1.0.0++ dependencies:+ '@isaacs/cliui': 8.0.2+ optionalDependencies:+ '@pkgjs/parseargs': 0.11.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ isarray: 1.0.0+ isobject: 2.1.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ js-tokens: 4.0.0++ [email protected]: {}++ dependencies:+ react: 19.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ braces: 3.0.3+ picomatch: 2.3.1++ [email protected]: {}++ dependencies:+ mime-db: 1.52.0++ dependencies:+ brace-expansion: 2.0.1++ [email protected]: {}++ dependencies:+ any-promise: 1.3.0+ object-assign: 4.1.1+ thenify-all: 1.6.0++ [email protected]: {}++ dependencies:+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ dependencies:+ '@next/env': 15.2.4+ '@swc/counter': 0.1.3+ '@swc/helpers': 0.5.15+ busboy: 1.6.0+ caniuse-lite: 1.0.30001714+ postcss: 8.4.31+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ styled-jsx: 5.1.6([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 15.2.4+ '@next/swc-darwin-x64': 15.2.4+ '@next/swc-linux-arm64-gnu': 15.2.4+ '@next/swc-linux-arm64-musl': 15.2.4+ '@next/swc-linux-x64-gnu': 15.2.4+ '@next/swc-linux-x64-musl': 15.2.4+ '@next/swc-win32-arm64-msvc': 15.2.4+ '@next/swc-win32-x64-msvc': 15.2.4+ sass: 1.86.3+ sharp: 0.33.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros++ optional: true++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lru-cache: 10.4.3+ minipass: 7.1.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ postcss: 8.5.3+ postcss-value-parser: 4.2.0+ read-cache: 1.0.0+ resolve: 1.22.10++ dependencies:+ camelcase-css: 2.0.1+ postcss: 8.5.3++ dependencies:+ lilconfig: 3.1.3+ yaml: 2.7.1+ optionalDependencies:+ postcss: 8.5.3++ dependencies:+ postcss: 8.5.3+ postcss-selector-parser: 6.1.2++ dependencies:+ cssesc: 3.0.0+ util-deprecate: 1.0.2++ [email protected]: {}++ dependencies:+ colorette: 1.4.0+ line-column: 1.0.2+ nanoid: 3.3.11+ source-map: 0.6.1++ dependencies:+ nanoid: 3.3.11+ picocolors: 1.1.1+ source-map-js: 1.2.1++ dependencies:+ nanoid: 3.3.11+ 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++ [email protected]: {}++ [email protected]: {}++ dependencies:+ date-fns: 4.1.0+ react: 19.0.0++ dependencies:+ react: 19.0.0+ scheduler: 0.25.0++ dependencies:+ react: 19.0.0++ dependencies:+ react: 19.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/use-sync-external-store': 0.0.6+ react: 19.0.0+ use-sync-external-store: 1.5.0([email protected])+ optionalDependencies:+ '@types/react': 19.0.0+ redux: 5.0.1++ dependencies:+ react: 19.0.0+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0+ 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.0.0++ dependencies:+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ dependencies:+ fast-equals: 5.2.2+ prop-types: 15.8.1+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ dependencies:+ get-nonce: 1.0.1+ react: 19.0.0+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ '@babel/runtime': 7.27.0+ dom-helpers: 5.2.1+ loose-envify: 1.4.0+ prop-types: 15.8.1+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ [email protected]: {}++ dependencies:+ pify: 2.3.0++ dependencies:+ picomatch: 2.3.1++ [email protected]: {}++ dependencies:+ decimal.js-light: 2.5.1++ dependencies:+ clsx: 2.1.1+ eventemitter3: 4.0.7+ lodash: 4.17.21+ react: 19.0.0+ react-dom: 19.0.0([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++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-core-module: 2.16.1+ path-parse: 1.0.7+ supports-preserve-symlinks-flag: 1.0.0++ [email protected]: {}++ dependencies:+ queue-microtask: 1.2.3++ dependencies:+ chokidar: 4.0.3+ immutable: 5.1.1+ source-map-js: 1.2.1+ optionalDependencies:+ '@parcel/watcher': 2.5.1++ [email protected]: {}++ optional: true++ dependencies:+ color: 4.2.3+ detect-libc: 2.0.3+ semver: 7.7.1+ optionalDependencies:+ '@img/sharp-darwin-arm64': 0.33.5+ '@img/sharp-darwin-x64': 0.33.5+ '@img/sharp-libvips-darwin-arm64': 1.0.4+ '@img/sharp-libvips-darwin-x64': 1.0.4+ '@img/sharp-libvips-linux-arm': 1.0.5+ '@img/sharp-libvips-linux-arm64': 1.0.4+ '@img/sharp-libvips-linux-s390x': 1.0.4+ '@img/sharp-libvips-linux-x64': 1.0.4+ '@img/sharp-libvips-linuxmusl-arm64': 1.0.4+ '@img/sharp-libvips-linuxmusl-x64': 1.0.4+ '@img/sharp-linux-arm': 0.33.5+ '@img/sharp-linux-arm64': 0.33.5+ '@img/sharp-linux-s390x': 0.33.5+ '@img/sharp-linux-x64': 0.33.5+ '@img/sharp-linuxmusl-arm64': 0.33.5+ '@img/sharp-linuxmusl-x64': 0.33.5+ '@img/sharp-wasm32': 0.33.5+ '@img/sharp-win32-ia32': 0.33.5+ '@img/sharp-win32-x64': 0.33.5+ optional: true++ dependencies:+ shebang-regex: 3.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-arrayish: 0.3.2+ optional: true++ dependencies:+ react: 19.0.0+ react-dom: 19.0.0([email protected])++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ emoji-regex: 8.0.0+ is-fullwidth-code-point: 3.0.0+ strip-ansi: 6.0.1++ dependencies:+ eastasianwidth: 0.2.0+ emoji-regex: 9.2.2+ strip-ansi: 7.1.0++ dependencies:+ ansi-regex: 5.0.1++ dependencies:+ ansi-regex: 6.1.0++ dependencies:+ client-only: 0.0.1+ react: 19.0.0++ dependencies:+ '@jridgewell/gen-mapping': 0.3.8+ commander: 4.1.1+ glob: 10.4.5+ lines-and-columns: 1.2.4+ mz: 2.7.0+ pirates: 4.0.7+ ts-interface-checker: 0.1.13++ [email protected]: {}++ [email protected]: {}++ dependencies:+ tailwindcss: 3.4.17++ 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.3+ postcss-import: 15.1.0([email protected])+ postcss-js: 4.0.1([email protected])+ postcss-load-config: 4.0.2([email protected])+ postcss-nested: 6.2.0([email protected])+ postcss-selector-parser: 6.1.2+ resolve: 1.22.10+ sucrase: 3.35.0+ transitivePeerDependencies:+ - ts-node++ dependencies:+ thenify: 3.3.1++ dependencies:+ any-promise: 1.3.0++ [email protected]: {}++ dependencies:+ is-number: 7.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ browserslist: 4.24.4+ escalade: 3.2.0+ picocolors: 1.1.1++ dependencies:+ react: 19.0.0+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ detect-node-es: 1.1.0+ react: 19.0.0+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.0.0++ dependencies:+ react: 19.0.0++ [email protected]: {}++ [email protected](@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.1.4(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.0.0+ react-dom: 19.0.0([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'++ dependencies:+ '@types/d3-array': 3.2.1+ '@types/d3-ease': 3.0.2+ '@types/d3-interpolate': 3.0.4+ '@types/d3-scale': 4.0.9+ '@types/d3-shape': 3.1.7+ '@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++ dependencies:+ isexe: 2.0.0++ dependencies:+ ansi-styles: 4.3.0+ string-width: 4.2.3+ strip-ansi: 6.0.1++ dependencies:+ ansi-styles: 6.2.1+ string-width: 5.1.2+ strip-ansi: 7.1.0++ [email protected]: {}++ [email protected]: {}diff --git a/openmemory/ui/postcss.config.mjs b/openmemory/ui/postcss.config.mjsnew file mode 100644index 000000000..1a69fd2a4--- /dev/null+++ b/openmemory/ui/postcss.config.mjs@@ -0,0 +1,8 @@+/** @type {import('postcss-load-config').Config} */+const config = {+ plugins: {+ tailwindcss: {},+ },+};++export default config;diff --git a/openmemory/ui/public/images/claude.webp b/openmemory/ui/public/images/claude.webpnew file mode 100644index 000000000..fbfcecfb9Binary files /dev/null and b/openmemory/ui/public/images/claude.webp differdiff --git a/openmemory/ui/public/images/cline.png b/openmemory/ui/public/images/cline.pngnew file mode 100644index 000000000..f3b8af15fBinary files /dev/null and b/openmemory/ui/public/images/cline.png differdiff --git a/openmemory/ui/public/images/cursor.png b/openmemory/ui/public/images/cursor.pngnew file mode 100644index 000000000..70887f48cBinary files /dev/null and b/openmemory/ui/public/images/cursor.png differdiff --git a/openmemory/ui/public/images/default.png b/openmemory/ui/public/images/default.pngnew file mode 100644index 000000000..21c185cc6Binary files /dev/null and b/openmemory/ui/public/images/default.png differdiff --git a/openmemory/ui/public/images/enconvo.png b/openmemory/ui/public/images/enconvo.pngnew file mode 100644index 000000000..a8570cb91Binary files /dev/null and b/openmemory/ui/public/images/enconvo.png differdiff --git a/openmemory/ui/public/images/open-memory.svg b/openmemory/ui/public/images/open-memory.svgnew file mode 100644index 000000000..880b5ba5a--- /dev/null+++ b/openmemory/ui/public/images/open-memory.svg@@ -0,0 +1,3 @@+<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 filediff --git a/openmemory/ui/public/images/roocline.png b/openmemory/ui/public/images/roocline.pngnew file mode 100644index 000000000..e42ddc0ddBinary files /dev/null and b/openmemory/ui/public/images/roocline.png differdiff --git a/openmemory/ui/public/images/windsurf.png b/openmemory/ui/public/images/windsurf.pngnew file mode 100644index 000000000..2f2b9d5f2Binary files /dev/null and b/openmemory/ui/public/images/windsurf.png differdiff --git a/openmemory/ui/public/images/witsy.png b/openmemory/ui/public/images/witsy.pngnew file mode 100644index 000000000..9538c7bd3Binary files /dev/null and b/openmemory/ui/public/images/witsy.png differdiff --git a/openmemory/ui/public/logo.svg b/openmemory/ui/public/logo.svgnew file mode 100644index 000000000..880b5ba5a--- /dev/null+++ b/openmemory/ui/public/logo.svg@@ -0,0 +1,3 @@+<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 filediff --git a/openmemory/ui/public/placeholder-logo.png b/openmemory/ui/public/placeholder-logo.pngnew file mode 100644index 000000000..6528839b3Binary files /dev/null and b/openmemory/ui/public/placeholder-logo.png differdiff --git a/openmemory/ui/public/placeholder-logo.svg b/openmemory/ui/public/placeholder-logo.svgnew file mode 100644index 000000000..b1695aafc--- /dev/null+++ b/openmemory/ui/public/placeholder-logo.svg@@ -0,0 +1 @@+<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 filediff --git a/openmemory/ui/public/placeholder-user.jpg b/openmemory/ui/public/placeholder-user.jpgnew file mode 100644index 000000000..6faa819ceBinary files /dev/null and b/openmemory/ui/public/placeholder-user.jpg differdiff --git a/openmemory/ui/public/placeholder.jpg b/openmemory/ui/public/placeholder.jpgnew file mode 100644index 000000000..a6bf2ee64Binary files /dev/null and b/openmemory/ui/public/placeholder.jpg differdiff --git a/openmemory/ui/public/placeholder.svg b/openmemory/ui/public/placeholder.svgnew file mode 100644index 000000000..e763910b2--- /dev/null+++ b/openmemory/ui/public/placeholder.svg@@ -0,0 +1 @@+<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 filediff --git a/openmemory/ui/skeleton/AppCardSkeleton.tsx b/openmemory/ui/skeleton/AppCardSkeleton.tsxnew file mode 100644index 000000000..3f901ab0c--- /dev/null+++ b/openmemory/ui/skeleton/AppCardSkeleton.tsx@@ -0,0 +1,35 @@+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 filediff --git a/openmemory/ui/skeleton/AppDetailCardSkeleton.tsx b/openmemory/ui/skeleton/AppDetailCardSkeleton.tsxnew file mode 100644index 000000000..84decf216--- /dev/null+++ b/openmemory/ui/skeleton/AppDetailCardSkeleton.tsx@@ -0,0 +1,45 @@+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 filediff --git a/openmemory/ui/skeleton/AppFiltersSkeleton.tsx b/openmemory/ui/skeleton/AppFiltersSkeleton.tsxnew file mode 100644index 000000000..2a1de968a--- /dev/null+++ b/openmemory/ui/skeleton/AppFiltersSkeleton.tsx@@ -0,0 +1,11 @@+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 filediff --git a/openmemory/ui/skeleton/MemoryCardSkeleton.tsx b/openmemory/ui/skeleton/MemoryCardSkeleton.tsxnew file mode 100644index 000000000..66250d7eb--- /dev/null+++ b/openmemory/ui/skeleton/MemoryCardSkeleton.tsx@@ -0,0 +1,39 @@+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 filediff --git a/openmemory/ui/skeleton/MemorySkeleton.tsx b/openmemory/ui/skeleton/MemorySkeleton.tsxnew file mode 100644index 000000000..e19fd9775--- /dev/null+++ b/openmemory/ui/skeleton/MemorySkeleton.tsx@@ -0,0 +1,27 @@+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 filediff --git a/openmemory/ui/skeleton/MemoryTableSkeleton.tsx b/openmemory/ui/skeleton/MemoryTableSkeleton.tsxnew file mode 100644index 000000000..3f10aa53a--- /dev/null+++ b/openmemory/ui/skeleton/MemoryTableSkeleton.tsx@@ -0,0 +1,81 @@+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 filediff --git a/openmemory/ui/store/appsSlice.ts b/openmemory/ui/store/appsSlice.tsnew file mode 100644index 000000000..d838b5bce--- /dev/null+++ b/openmemory/ui/store/appsSlice.ts@@ -0,0 +1,224 @@+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 filediff --git a/openmemory/ui/store/filtersSlice.ts b/openmemory/ui/store/filtersSlice.tsnew file mode 100644index 000000000..e90438a94--- /dev/null+++ b/openmemory/ui/store/filtersSlice.ts@@ -0,0 +1,93 @@+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 filediff --git a/openmemory/ui/store/memoriesSlice.ts b/openmemory/ui/store/memoriesSlice.tsnew file mode 100644index 000000000..ccd8073d6--- /dev/null+++ b/openmemory/ui/store/memoriesSlice.ts@@ -0,0 +1,100 @@+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 filediff --git a/openmemory/ui/store/profileSlice.ts b/openmemory/ui/store/profileSlice.tsnew file mode 100644index 000000000..29da1daf5--- /dev/null+++ b/openmemory/ui/store/profileSlice.ts@@ -0,0 +1,63 @@+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 || 'deshraj',+ 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 || 'deshraj';+ },+ 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 filediff --git a/openmemory/ui/store/store.ts b/openmemory/ui/store/store.tsnew file mode 100644index 000000000..e0a58b612--- /dev/null+++ b/openmemory/ui/store/store.ts@@ -0,0 +1,21 @@+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';++export const store = configureStore({+ reducer: {+ memories: memoriesReducer,+ profile: profileReducer,+ apps: appsReducer,+ ui: uiReducer,+ filters: filtersReducer,+ },+});++// 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 filediff --git a/openmemory/ui/store/uiSlice.ts b/openmemory/ui/store/uiSlice.tsnew file mode 100644index 000000000..1144ee5cf--- /dev/null+++ b/openmemory/ui/store/uiSlice.ts@@ -0,0 +1,47 @@+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 filediff --git a/openmemory/ui/styles/animation.css b/openmemory/ui/styles/animation.cssnew file mode 100644index 000000000..0c6b83de0--- /dev/null+++ b/openmemory/ui/styles/animation.css@@ -0,0 +1,27 @@+@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.cssnew file mode 100644index 000000000..c6540ae5f--- /dev/null+++ b/openmemory/ui/styles/globals.css@@ -0,0 +1,94 @@+@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.scssnew file mode 100644index 000000000..65b45d038--- /dev/null+++ b/openmemory/ui/styles/notfound.scss@@ -0,0 +1,178 @@+@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 filediff --git a/openmemory/ui/tailwind.config.ts b/openmemory/ui/tailwind.config.tsnew file mode 100644index 000000000..23a1196de--- /dev/null+++ b/openmemory/ui/tailwind.config.ts@@ -0,0 +1,81 @@+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 configdiff --git a/openmemory/ui/tsconfig.json b/openmemory/ui/tsconfig.jsonnew file mode 100644index 000000000..4b2dc7ba6--- /dev/null+++ b/openmemory/ui/tsconfig.json@@ -0,0 +1,27 @@+{+ "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"]+}