Module domain

Module domain 

Source
Expand description

Domain-scoped index management.

Manages separate indices for different domain scopes:

  • Project: <repo>/.subcog/index.db - project-specific memories
  • User: ~/Library/.../subcog/repos/<hash>/index.db - personal memories per repo
  • Org: Configured path or database URL - team/enterprise memories

Structs§

DomainIndexConfig
Configuration for domain-scoped indices.
DomainIndexManager
Manages indices for different domain scopes.

Enums§

DomainScope
Domain scope for index isolation.
OrgIndexConfig
Organization index configuration.

Functions§

find_repo_root
Resolves the repository root from a given path.
get_user_data_dir 🔒
Gets the user data directory for subcog.
hash_path 🔒
Hashes a path for use as a directory name.