omni-cortex 1.17.2__tar.gz → 1.17.3__tar.gz

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 (71) hide show
  1. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/PKG-INFO +1 -1
  2. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/dashboard.py +10 -4
  3. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/setup.py +14 -8
  4. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/pyproject.toml +10 -3
  5. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/.gitignore +0 -0
  6. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/LICENSE +0 -0
  7. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/README.md +0 -0
  8. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/.env.example +0 -0
  9. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/backfill_summaries.py +0 -0
  10. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/chat_service.py +0 -0
  11. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/database.py +0 -0
  12. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/image_service.py +0 -0
  13. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/logging_config.py +0 -0
  14. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/main.py +0 -0
  15. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/models.py +0 -0
  16. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/project_config.py +0 -0
  17. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/project_scanner.py +0 -0
  18. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/prompt_security.py +0 -0
  19. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/pyproject.toml +0 -0
  20. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/security.py +0 -0
  21. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/uv.lock +0 -0
  22. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/dashboard/backend/websocket_manager.py +0 -0
  23. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/post_tool_use.py +0 -0
  24. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/pre_tool_use.py +0 -0
  25. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/session_utils.py +0 -0
  26. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/stop.py +0 -0
  27. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/subagent_stop.py +0 -0
  28. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/hooks/user_prompt.py +0 -0
  29. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/__init__.py +0 -0
  30. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/categorization/__init__.py +0 -0
  31. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/categorization/auto_tags.py +0 -0
  32. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/categorization/auto_type.py +0 -0
  33. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/config.py +0 -0
  34. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/database/__init__.py +0 -0
  35. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/database/connection.py +0 -0
  36. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/database/migrations.py +0 -0
  37. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/database/schema.py +0 -0
  38. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/database/sync.py +0 -0
  39. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/decay/__init__.py +0 -0
  40. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/decay/importance.py +0 -0
  41. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/embeddings/__init__.py +0 -0
  42. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/embeddings/local.py +0 -0
  43. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/__init__.py +0 -0
  44. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/activity.py +0 -0
  45. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/agent.py +0 -0
  46. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/memory.py +0 -0
  47. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/relationship.py +0 -0
  48. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/models/session.py +0 -0
  49. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/resources/__init__.py +0 -0
  50. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/search/__init__.py +0 -0
  51. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/search/hybrid.py +0 -0
  52. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/search/keyword.py +0 -0
  53. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/search/ranking.py +0 -0
  54. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/search/semantic.py +0 -0
  55. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/server.py +0 -0
  56. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/tools/__init__.py +0 -0
  57. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/tools/activities.py +0 -0
  58. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/tools/memories.py +0 -0
  59. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/tools/sessions.py +0 -0
  60. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/tools/utilities.py +0 -0
  61. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/utils/__init__.py +0 -0
  62. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/utils/formatting.py +0 -0
  63. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/utils/ids.py +0 -0
  64. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/utils/timestamps.py +0 -0
  65. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/omni_cortex/utils/truncation.py +0 -0
  66. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/check-venv.py +0 -0
  67. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/generate_storage_architecture_pdf.py +0 -0
  68. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/import_ken_memories.py +0 -0
  69. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/populate_session_data.py +0 -0
  70. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/setup.py +0 -0
  71. {omni_cortex-1.17.2 → omni_cortex-1.17.3}/scripts/update_docs_pdfs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omni-cortex
3
- Version: 1.17.2
3
+ Version: 1.17.3
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
@@ -61,12 +61,18 @@ def find_dashboard_dir() -> Path | None:
61
61
  """Find the dashboard directory.
62
62
 
63
63
  Searches in order:
64
- 1. Development directory (cloned repo)
65
- 2. Package shared-data (installed via pip)
66
- 3. Site-packages share location
64
+ 1. Bundled inside package (works for user and system installs)
65
+ 2. Development directory (cloned repo)
66
+ 3. Package shared-data (installed via pip system-wide)
67
+ 4. Site-packages share location
67
68
  """
68
69
  package_dir = Path(__file__).parent
69
70
 
71
+ # Check for bundled dashboard inside package (most reliable for pip installs)
72
+ bundled_dashboard = package_dir / "_bundled" / "dashboard"
73
+ if bundled_dashboard.exists() and (bundled_dashboard / "backend" / "main.py").exists():
74
+ return bundled_dashboard
75
+
70
76
  # Check for development directory (repo structure)
71
77
  # Go up from src/omni_cortex to repo root, then dashboard
72
78
  repo_root = package_dir.parent.parent
@@ -74,7 +80,7 @@ def find_dashboard_dir() -> Path | None:
74
80
  if dashboard_in_repo.exists() and (dashboard_in_repo / "backend" / "main.py").exists():
75
81
  return dashboard_in_repo
76
82
 
77
- # Check pip shared-data location
83
+ # Check pip shared-data location (for backwards compatibility)
78
84
  # On Unix: ~/.local/share/omni-cortex/dashboard
79
85
  # On Windows: %APPDATA%/Python/share/omni-cortex/dashboard
80
86
  import site
@@ -56,21 +56,27 @@ def get_hooks_dir() -> Path:
56
56
  """Get the hooks directory.
57
57
 
58
58
  Checks multiple locations for hooks:
59
- 1. Development: <project>/hooks/
60
- 2. Installed: <site-packages>/../share/omni-cortex/hooks/
61
- 3. Installed: <prefix>/share/omni-cortex/hooks/
59
+ 1. Bundled inside package (works for user and system installs)
60
+ 2. Development: <project>/hooks/
61
+ 3. Installed: <site-packages>/../share/omni-cortex/hooks/
62
+ 4. Installed: <prefix>/share/omni-cortex/hooks/
62
63
  """
64
+ # Try relative to package first (bundled location)
65
+ import omni_cortex
66
+ pkg_path = Path(omni_cortex.__file__).parent
67
+
68
+ # Check bundled location inside package (most reliable for pip installs)
69
+ bundled_hooks = pkg_path / "_bundled" / "hooks"
70
+ if bundled_hooks.exists():
71
+ return bundled_hooks
72
+
63
73
  # Try development location
64
74
  package_dir = get_package_dir()
65
75
  hooks_dir = package_dir / "hooks"
66
76
  if hooks_dir.exists():
67
77
  return hooks_dir
68
78
 
69
- # Try relative to package
70
- import omni_cortex
71
- pkg_path = Path(omni_cortex.__file__).parent
72
-
73
- # Check various installed locations
79
+ # Check various installed locations (shared-data, for backwards compatibility)
74
80
  candidates = [
75
81
  pkg_path.parent.parent / "hooks",
76
82
  pkg_path.parent.parent / "share" / "omni-cortex" / "hooks",
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "omni-cortex"
7
- version = "1.17.2"
7
+ version = "1.17.3"
8
8
  description = "Give Claude Code a perfect memory - auto-logs everything, searches smartly, and gets smarter over time"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -64,20 +64,27 @@ sources = ["src"]
64
64
  [tool.hatch.build.targets.wheel]
65
65
  packages = ["omni_cortex"]
66
66
 
67
+ # Include dashboard and hooks inside the package (not as shared-data)
68
+ # This ensures they work for both user and system installs
69
+ [tool.hatch.build.targets.wheel.force-include]
70
+ "hooks" = "omni_cortex/_bundled/hooks"
71
+ "dashboard/backend" = "omni_cortex/_bundled/dashboard/backend"
72
+ # Note: frontend/dist is not force-included because it requires npm build
73
+ # The backend serves API endpoints; frontend can be built separately if needed
74
+
67
75
  [tool.hatch.build.targets.sdist]
68
76
  include = [
69
77
  "/src",
70
78
  "/hooks",
71
79
  "/scripts",
72
80
  "/dashboard/backend",
73
- "/dashboard/frontend/dist",
74
81
  "/README.md",
75
82
  ]
76
83
 
84
+ # Keep shared-data for backwards compatibility with system installs
77
85
  [tool.hatch.build.targets.wheel.shared-data]
78
86
  "hooks" = "share/omni-cortex/hooks"
79
87
  "dashboard/backend" = "share/omni-cortex/dashboard/backend"
80
- "dashboard/frontend/dist" = "share/omni-cortex/dashboard/frontend/dist"
81
88
 
82
89
  [tool.ruff]
83
90
  line-length = 100
File without changes
File without changes
File without changes
File without changes