diff --git a/services/brain/app/main.py b/services/brain/app/main.py index c776b94..2aa9942 100644 --- a/services/brain/app/main.py +++ b/services/brain/app/main.py @@ -27,11 +27,13 @@ app.include_router(router) @app.on_event("startup") async def startup(): + from sqlalchemy import text as sa_text from app.database import engine, Base from app.models.item import Item, ItemAsset, AppLink # noqa: import to register models - # Create tables if they don't exist + # Enable pgvector extension before creating tables async with engine.begin() as conn: + await conn.execute(sa_text("CREATE EXTENSION IF NOT EXISTS vector")) await conn.run_sync(Base.metadata.create_all) # Ensure Meilisearch index exists diff --git a/services/brain/docker-compose.yml b/services/brain/docker-compose.yml index 056d86d..9585df8 100644 --- a/services/brain/docker-compose.yml +++ b/services/brain/docker-compose.yml @@ -12,7 +12,7 @@ services: - DATABASE_URL=postgresql+asyncpg://brain:brain@brain-db:5432/brain - REDIS_URL=redis://brain-redis:6379/0 - MEILI_URL=http://brain-meili:7700 - - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-key} + - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026} - BROWSERLESS_URL=http://brain-browserless:3000 - OPENAI_API_KEY=${OPENAI_API_KEY} - OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini} @@ -43,7 +43,7 @@ services: - DATABASE_URL=postgresql+asyncpg://brain:brain@brain-db:5432/brain - REDIS_URL=redis://brain-redis:6379/0 - MEILI_URL=http://brain-meili:7700 - - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-key} + - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026} - BROWSERLESS_URL=http://brain-browserless:3000 - OPENAI_API_KEY=${OPENAI_API_KEY} - OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini} @@ -85,7 +85,7 @@ services: container_name: brain-meili restart: unless-stopped environment: - - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-key} + - MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-brain-meili-secure-key-2026} - MEILI_ENV=production volumes: - ./data/meili:/meili_data diff --git a/services/brain/storage/6df8fd2d-72cf-43d1-9816-80e37dd19b78/archived_html/page.html b/services/brain/storage/6df8fd2d-72cf-43d1-9816-80e37dd19b78/archived_html/page.html new file mode 100644 index 0000000..580f596 --- /dev/null +++ b/services/brain/storage/6df8fd2d-72cf-43d1-9816-80e37dd19b78/archived_html/page.html @@ -0,0 +1,1742 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GitHub - anthropics/claude-code: Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands. · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ Skip to content + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + / + + claude-code + + + Public +
+ + +
+ +
+ + +
+
+ +
+
+ + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + +

anthropics/claude-code

+ + + +

Repository files navigation

Claude Code

+

npm

+

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows -- all through natural language commands. Use it in your terminal, IDE, or tag @claude on Github.

+

Learn more in the official documentation.

+

+

Get started

+

Note

Installation via npm is deprecated. Use one of the recommended methods below.

+
+

For more installation options, uninstall steps, and troubleshooting, see the setup documentation.

+
    +
  1. +

    Install Claude Code:

    +

    MacOS/Linux (Recommended):

    +
    curl -fsSL https://claude.ai/install.sh | bash
    +

    Homebrew (MacOS/Linux):

    +
    brew install --cask claude-code
    +

    Windows (Recommended):

    +
    irm https://claude.ai/install.ps1 | iex
    +

    WinGet (Windows):

    +
    winget install Anthropic.ClaudeCode
    +

    NPM (Deprecated):

    +
    npm install -g @anthropic-ai/claude-code
    +
  2. +
  3. +

    Navigate to your project directory and run claude.

    +
  4. +
+

Plugins

+

This repository includes several Claude Code plugins that extend functionality with custom commands and agents. See the plugins directory for detailed documentation on available plugins.

+

Reporting Bugs

+

We welcome your feedback. Use the /bug command to report issues directly within Claude Code, or file a GitHub issue.

+

Connect on Discord

+

Join the Claude Developers Discord to connect with other developers using Claude Code. Get help, share feedback, and discuss your projects with the community.

+

Data collection, usage, and retention

+

When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command.

+

How we use your data

+

See our data usage policies.

+

Privacy safeguards

+

We have implemented several safeguards to protect your data, including limited retention periods for sensitive information, restricted access to user session data, and clear policies against using feedback for model training.

+

For full details, please review our Commercial Terms of Service and Privacy Policy.

+
+ +
+
+
+
+

About

+ +

+ Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands. +

+ + + +

Resources

+ + + + + + + +

Security policy

+ + + + + + + + + + + +

Stars

+ + +

Watchers

+ + +

Forks

+ + + + +
+ +
+
+ + + + + + + + + +
+
+ + +

+ Contributors

+ +
    +
  • +
    +
  • +
  • +
    +
  • +
  • +
    +
  • +
+ + +
+
+
+ + + + + +
+
+
+ + + + +
+ +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +