omni-cortex 1.7.0__py3-none-any.whl → 1.7.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/.env.example +12 -0
  2. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/chat_service.py +4 -2
  3. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/image_service.py +4 -1
  4. {omni_cortex-1.7.0.dist-info → omni_cortex-1.7.1.dist-info}/METADATA +175 -2
  5. omni_cortex-1.7.1.dist-info/RECORD +25 -0
  6. omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/.env.example +0 -22
  7. omni_cortex-1.7.0.dist-info/RECORD +0 -25
  8. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/backfill_summaries.py +0 -0
  9. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/database.py +0 -0
  10. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/logging_config.py +0 -0
  11. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/main.py +0 -0
  12. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/models.py +0 -0
  13. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/project_config.py +0 -0
  14. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/project_scanner.py +0 -0
  15. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/prompt_security.py +0 -0
  16. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/pyproject.toml +0 -0
  17. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/security.py +0 -0
  18. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/uv.lock +0 -0
  19. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/dashboard/backend/websocket_manager.py +0 -0
  20. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/hooks/post_tool_use.py +0 -0
  21. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/hooks/pre_tool_use.py +0 -0
  22. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/hooks/session_utils.py +0 -0
  23. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/hooks/stop.py +0 -0
  24. {omni_cortex-1.7.0.data → omni_cortex-1.7.1.data}/data/share/omni-cortex/hooks/subagent_stop.py +0 -0
  25. {omni_cortex-1.7.0.dist-info → omni_cortex-1.7.1.dist-info}/WHEEL +0 -0
  26. {omni_cortex-1.7.0.dist-info → omni_cortex-1.7.1.dist-info}/entry_points.txt +0 -0
  27. {omni_cortex-1.7.0.dist-info → omni_cortex-1.7.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,12 @@
1
+ # Dashboard Backend Environment Configuration
2
+ #
3
+ # NOTE: This file is for reference only.
4
+ # The dashboard now loads from the PROJECT ROOT .env file.
5
+ #
6
+ # Copy the root .env.example to .env and configure there:
7
+ # cp ../../.env.example ../../.env
8
+ #
9
+ # Required settings in root .env:
10
+ # GEMINI_API_KEY=your-api-key-here
11
+ #
12
+ # See ../../.env.example for all available options.
@@ -1,6 +1,7 @@
1
1
  """Chat service for natural language queries about memories using Gemini Flash."""
2
2
 
3
3
  import os
4
+ from pathlib import Path
4
5
  from typing import Optional, AsyncGenerator, Any
5
6
 
6
7
  from dotenv import load_dotenv
@@ -9,8 +10,9 @@ from database import search_memories, get_memories, create_memory
9
10
  from models import FilterParams
10
11
  from prompt_security import build_safe_prompt, xml_escape
11
12
 
12
- # Load environment variables
13
- load_dotenv()
13
+ # Load environment variables from project root
14
+ _project_root = Path(__file__).parent.parent.parent
15
+ load_dotenv(_project_root / ".env")
14
16
 
15
17
  # Configure Gemini
16
18
  _api_key = os.getenv("GEMINI_API_KEY") or os.getenv("GOOGLE_API_KEY")
@@ -5,6 +5,7 @@ import os
5
5
  import uuid
6
6
  from dataclasses import dataclass, field
7
7
  from enum import Enum
8
+ from pathlib import Path
8
9
  from typing import Optional
9
10
 
10
11
  from dotenv import load_dotenv
@@ -12,7 +13,9 @@ from dotenv import load_dotenv
12
13
  from database import get_memory_by_id
13
14
  from prompt_security import xml_escape
14
15
 
15
- load_dotenv()
16
+ # Load environment variables from project root
17
+ _project_root = Path(__file__).parent.parent.parent
18
+ load_dotenv(_project_root / ".env")
16
19
 
17
20
 
18
21
  class ImagePreset(str, Enum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omni-cortex
3
- Version: 1.7.0
3
+ Version: 1.7.1
4
4
  Summary: Give Claude Code a perfect memory - auto-logs everything, searches smartly, and gets smarter over time
5
5
  Project-URL: Homepage, https://github.com/AllCytes/Omni-Cortex
6
6
  Project-URL: Repository, https://github.com/AllCytes/Omni-Cortex
@@ -24,6 +24,7 @@ Requires-Python: >=3.10
24
24
  Requires-Dist: httpx>=0.25.0
25
25
  Requires-Dist: mcp>=1.0.0
26
26
  Requires-Dist: pydantic>=2.0.0
27
+ Requires-Dist: python-dotenv>=1.0.0
27
28
  Requires-Dist: pyyaml>=6.0.0
28
29
  Provides-Extra: dev
29
30
  Requires-Dist: black>=23.0.0; extra == 'dev'
@@ -76,7 +77,179 @@ A universal memory system for Claude Code that combines activity logging with in
76
77
  - **Importance Decay**: Frequently accessed memories naturally surface
77
78
  - **Auto Activity Logging**: Automatically logs all tool calls via hooks
78
79
 
79
- ## Installation
80
+ ## Getting Started (5 Minutes)
81
+
82
+ A step-by-step guide to get Omni Cortex running on your machine.
83
+
84
+ ### Prerequisites
85
+
86
+ - **Python 3.10+** - Check with `python --version`
87
+ - **Claude Code CLI** - The Anthropic CLI tool
88
+ - **pip** - Python package manager (comes with Python)
89
+
90
+ ### Step 1: Install the Package
91
+
92
+ **Option A: From PyPI (Recommended for most users)**
93
+ ```bash
94
+ pip install omni-cortex
95
+ ```
96
+
97
+ **Option B: From Source (For development/contributions)**
98
+ ```bash
99
+ git clone https://github.com/AllCytes/Omni-Cortex.git
100
+ cd Omni-Cortex
101
+ pip install -e ".[semantic]"
102
+ ```
103
+
104
+ **Expected output:**
105
+ ```
106
+ Successfully installed omni-cortex-1.7.1
107
+ ```
108
+
109
+ ### Step 2: Run the Setup
110
+
111
+ ```bash
112
+ omni-cortex-setup
113
+ ```
114
+
115
+ This automatically:
116
+ - Adds Omni Cortex as an MCP server in `~/.claude.json`
117
+ - Configures hooks in `~/.claude/settings.json` for activity logging
118
+
119
+ **Expected output:**
120
+ ```
121
+ ✓ MCP server configured
122
+ ✓ Hooks configured
123
+ Setup complete! Restart Claude Code to activate.
124
+ ```
125
+
126
+ ### Step 3: Restart Claude Code
127
+
128
+ Close and reopen your Claude Code terminal. This loads the new MCP configuration.
129
+
130
+ ### Step 4: Verify It's Working
131
+
132
+ In Claude Code, try storing a memory:
133
+
134
+ ```
135
+ Ask Claude: "Remember that the database uses SQLite for storage"
136
+ ```
137
+
138
+ Claude should use the `cortex_remember` tool. Then verify:
139
+
140
+ ```
141
+ Ask Claude: "What do you remember about the database?"
142
+ ```
143
+
144
+ Claude should use `cortex_recall` and find your memory.
145
+
146
+ ### Step 5: Start the Dashboard (Optional)
147
+
148
+ The web dashboard lets you browse and search memories visually.
149
+
150
+ ```bash
151
+ # Start the dashboard (opens http://localhost:5173)
152
+ omni-cortex-dashboard
153
+ ```
154
+
155
+ Or manually:
156
+ ```bash
157
+ # Terminal 1: Backend
158
+ cd dashboard/backend
159
+ pip install -e .
160
+ uvicorn main:app --host 0.0.0.0 --port 8765 --reload
161
+
162
+ # Terminal 2: Frontend
163
+ cd dashboard/frontend
164
+ npm install
165
+ npm run dev
166
+ ```
167
+
168
+ Open http://localhost:5173 in your browser.
169
+
170
+ ### Troubleshooting
171
+
172
+ <details>
173
+ <summary><b>❌ "omni-cortex-setup" command not found</b></summary>
174
+
175
+ **Cause:** pip installed to a location not in your PATH.
176
+
177
+ **Solution:**
178
+ ```bash
179
+ # Find where pip installed it
180
+ python -m omni_cortex.setup
181
+
182
+ # Or add Python scripts to PATH (Windows)
183
+ # Add %APPDATA%\Python\Python3x\Scripts to your PATH
184
+
185
+ # On macOS/Linux, ensure ~/.local/bin is in PATH
186
+ export PATH="$HOME/.local/bin:$PATH"
187
+ ```
188
+ </details>
189
+
190
+ <details>
191
+ <summary><b>❌ Claude doesn't see cortex_* tools</b></summary>
192
+
193
+ **Cause:** MCP server not configured or Claude Code not restarted.
194
+
195
+ **Solution:**
196
+ 1. Check `~/.claude.json` contains the `omni-cortex` MCP server entry
197
+ 2. Fully close and reopen Claude Code (not just the terminal)
198
+ 3. Run `omni-cortex-setup` again if needed
199
+ </details>
200
+
201
+ <details>
202
+ <summary><b>❌ "ModuleNotFoundError: No module named 'omni_cortex'"</b></summary>
203
+
204
+ **Cause:** Python environment mismatch.
205
+
206
+ **Solution:**
207
+ ```bash
208
+ # Ensure you're using the same Python that pip used
209
+ which python # or `where python` on Windows
210
+ pip show omni-cortex # Check if installed
211
+
212
+ # Reinstall if needed
213
+ pip install --force-reinstall omni-cortex
214
+ ```
215
+ </details>
216
+
217
+ <details>
218
+ <summary><b>❌ Dashboard won't start</b></summary>
219
+
220
+ **Cause:** Missing dependencies or port conflict.
221
+
222
+ **Solution:**
223
+ ```bash
224
+ # Install backend dependencies
225
+ cd dashboard/backend
226
+ pip install -e .
227
+
228
+ # Check if port 8765 is in use
229
+ # Windows: netstat -ano | findstr :8765
230
+ # macOS/Linux: lsof -i :8765
231
+
232
+ # Use a different port if needed
233
+ uvicorn main:app --port 8766
234
+ ```
235
+ </details>
236
+
237
+ <details>
238
+ <summary><b>❌ Semantic search not working</b></summary>
239
+
240
+ **Cause:** Semantic extras not installed.
241
+
242
+ **Solution:**
243
+ ```bash
244
+ pip install omni-cortex[semantic]
245
+ ```
246
+
247
+ First search will download the embedding model (~100MB).
248
+ </details>
249
+
250
+ ---
251
+
252
+ ## Installation (Detailed)
80
253
 
81
254
  ### Quick Install (Recommended)
82
255
 
@@ -0,0 +1,25 @@
1
+ omni_cortex-1.7.1.data/data/share/omni-cortex/hooks/post_tool_use.py,sha256=yBLoYvEdUunbG8fclzIEWszCptworkUUcOUSKzNsvms,12271
2
+ omni_cortex-1.7.1.data/data/share/omni-cortex/hooks/pre_tool_use.py,sha256=mkZ7eeBnjWkIgNnrqfYSXIhhLNYYk4hQx_6F0pNrGoc,6395
3
+ omni_cortex-1.7.1.data/data/share/omni-cortex/hooks/session_utils.py,sha256=3SKPCytqWuRPOupWdzmwBoKBDJqtLcT1Nle_pueDQUY,5746
4
+ omni_cortex-1.7.1.data/data/share/omni-cortex/hooks/stop.py,sha256=T1bwcmbTLj0gzjrVvFBT1zB6wff4J2YkYBAY-ZxZI5g,5336
5
+ omni_cortex-1.7.1.data/data/share/omni-cortex/hooks/subagent_stop.py,sha256=V9HQSFGNOfkg8ZCstPEy4h5V8BP4AbrVr8teFzN1kNk,3314
6
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/.env.example,sha256=9xS7-UiWlMddRwzlyyyKNHAMlNTsgH-2sPV266guJpQ,372
7
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/backfill_summaries.py,sha256=ElchfcBv4pmVr2PsePCgFlCyuvf4_jDJj_C3AmMhu7U,8973
8
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/chat_service.py,sha256=5UCvLayZGeSdGsYAzOeupumclAhoFLusGYLdyl33ANc,9304
9
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/database.py,sha256=Zh4Hl5I0DTZCosWIvkOYpo3Nyta8f54vnj72giDQ8vE,34942
10
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/image_service.py,sha256=NP6ojFpHb6iNTYRkXqYu1CL6WvooZpZ54mjLiWSWG_g,19205
11
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/logging_config.py,sha256=WnunFGET9zlsn9WBpVsio2zI7BiUQanE0xzAQQxIhII,3944
12
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/main.py,sha256=-sJg8GIOzX07xuUxvE6cZ6THqLblA0ObxQiOyNfvrFk,37232
13
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/models.py,sha256=Lv_qIrDNRlQNiveRwDrlhVz1QTeWD4DPpr5BBuA5Ty0,5968
14
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/project_config.py,sha256=ZxGoeRpHvN5qQyf2hRxrAZiHrPSwdQp59f0di6O1LKM,4352
15
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/project_scanner.py,sha256=lwFXS8iJbOoxf7FAyo2TjH25neaMHiJ8B3jS57XxtDI,5713
16
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/prompt_security.py,sha256=LcdZhYy1CfpSq_4BPO6lMJ15phc2ZXLUSBAnAvODVCI,3423
17
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/pyproject.toml,sha256=9pbbGQXLe1Xd06nZAtDySCHIlfMWvPaB-C6tGZR6umc,502
18
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/security.py,sha256=nQsoPE0n5dtY9ive00d33W1gL48GgK7C5Ae0BK2oW2k,3479
19
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/uv.lock,sha256=miB9zGGSirBkjDE-OZTPCnv43Yc98xuAz_Ne8vTNFHg,186004
20
+ omni_cortex-1.7.1.data/data/share/omni-cortex/dashboard/backend/websocket_manager.py,sha256=ABXAtlhBI5vnTcwdQUS-UQcDyTn-rWZL5OKEP9YY-kU,3619
21
+ omni_cortex-1.7.1.dist-info/METADATA,sha256=d2U_SbCNcNDO0s9KccwaswIEpIbiW-6Thav_wXqI4-0,14216
22
+ omni_cortex-1.7.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
23
+ omni_cortex-1.7.1.dist-info/entry_points.txt,sha256=rohx4mFH2ffZmMb9QXPZmFf-ZGjA3jpKVDVeET-ttiM,150
24
+ omni_cortex-1.7.1.dist-info/licenses/LICENSE,sha256=oG_397owMmi-Umxp5sYocJ6RPohp9_bDNnnEu9OUphg,1072
25
+ omni_cortex-1.7.1.dist-info/RECORD,,
@@ -1,22 +0,0 @@
1
- # Omni-Cortex Dashboard Environment Configuration
2
- # Copy this file to .env and fill in your values
3
-
4
- # Gemini API Key for AI chat and image generation
5
- # Get your key from: https://aistudio.google.com/apikey
6
- GEMINI_API_KEY=your-api-key-here
7
-
8
- # Alternative (also works)
9
- # GOOGLE_API_KEY=your-api-key-here
10
-
11
- # API Key for dashboard access (auto-generated if not set)
12
- # DASHBOARD_API_KEY=your-secret-key-here
13
-
14
- # Environment: development or production
15
- # ENVIRONMENT=development
16
-
17
- # CORS Origins (comma-separated, for production)
18
- # CORS_ORIGINS=https://your-domain.com
19
-
20
- # SSL Configuration (optional, for HTTPS)
21
- # SSL_KEYFILE=/path/to/key.pem
22
- # SSL_CERTFILE=/path/to/cert.pem
@@ -1,25 +0,0 @@
1
- omni_cortex-1.7.0.data/data/share/omni-cortex/hooks/post_tool_use.py,sha256=yBLoYvEdUunbG8fclzIEWszCptworkUUcOUSKzNsvms,12271
2
- omni_cortex-1.7.0.data/data/share/omni-cortex/hooks/pre_tool_use.py,sha256=mkZ7eeBnjWkIgNnrqfYSXIhhLNYYk4hQx_6F0pNrGoc,6395
3
- omni_cortex-1.7.0.data/data/share/omni-cortex/hooks/session_utils.py,sha256=3SKPCytqWuRPOupWdzmwBoKBDJqtLcT1Nle_pueDQUY,5746
4
- omni_cortex-1.7.0.data/data/share/omni-cortex/hooks/stop.py,sha256=T1bwcmbTLj0gzjrVvFBT1zB6wff4J2YkYBAY-ZxZI5g,5336
5
- omni_cortex-1.7.0.data/data/share/omni-cortex/hooks/subagent_stop.py,sha256=V9HQSFGNOfkg8ZCstPEy4h5V8BP4AbrVr8teFzN1kNk,3314
6
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/.env.example,sha256=LenAe1A9dnwaS5UaRFPR0m_dghUcjsK-yMXZTSLIL8o,667
7
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/backfill_summaries.py,sha256=ElchfcBv4pmVr2PsePCgFlCyuvf4_jDJj_C3AmMhu7U,8973
8
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/chat_service.py,sha256=2Dfxlj0xwR47EI1jrbOF8t1E0m_OaXl-wdJoo6rqiHE,9187
9
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/database.py,sha256=Zh4Hl5I0DTZCosWIvkOYpo3Nyta8f54vnj72giDQ8vE,34942
10
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/image_service.py,sha256=wkWjUtLTLqIFgJ9WU99O8IWDvEUbv9-P8pizkV-TvhM,19059
11
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/logging_config.py,sha256=WnunFGET9zlsn9WBpVsio2zI7BiUQanE0xzAQQxIhII,3944
12
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/main.py,sha256=-sJg8GIOzX07xuUxvE6cZ6THqLblA0ObxQiOyNfvrFk,37232
13
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/models.py,sha256=Lv_qIrDNRlQNiveRwDrlhVz1QTeWD4DPpr5BBuA5Ty0,5968
14
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/project_config.py,sha256=ZxGoeRpHvN5qQyf2hRxrAZiHrPSwdQp59f0di6O1LKM,4352
15
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/project_scanner.py,sha256=lwFXS8iJbOoxf7FAyo2TjH25neaMHiJ8B3jS57XxtDI,5713
16
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/prompt_security.py,sha256=LcdZhYy1CfpSq_4BPO6lMJ15phc2ZXLUSBAnAvODVCI,3423
17
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/pyproject.toml,sha256=9pbbGQXLe1Xd06nZAtDySCHIlfMWvPaB-C6tGZR6umc,502
18
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/security.py,sha256=nQsoPE0n5dtY9ive00d33W1gL48GgK7C5Ae0BK2oW2k,3479
19
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/uv.lock,sha256=miB9zGGSirBkjDE-OZTPCnv43Yc98xuAz_Ne8vTNFHg,186004
20
- omni_cortex-1.7.0.data/data/share/omni-cortex/dashboard/backend/websocket_manager.py,sha256=ABXAtlhBI5vnTcwdQUS-UQcDyTn-rWZL5OKEP9YY-kU,3619
21
- omni_cortex-1.7.0.dist-info/METADATA,sha256=Oij28FeAaP2iylNabfycTMGdR2ynLdhia8T0OGB_GAc,10521
22
- omni_cortex-1.7.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
23
- omni_cortex-1.7.0.dist-info/entry_points.txt,sha256=rohx4mFH2ffZmMb9QXPZmFf-ZGjA3jpKVDVeET-ttiM,150
24
- omni_cortex-1.7.0.dist-info/licenses/LICENSE,sha256=oG_397owMmi-Umxp5sYocJ6RPohp9_bDNnnEu9OUphg,1072
25
- omni_cortex-1.7.0.dist-info/RECORD,,