personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(utils): remove unused list_domains function

Removed dead code with no external callers found in codebase analysis.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

-27
-27
think/utils.py
··· 103 103 return path 104 104 105 105 106 - def list_domains() -> list[str]: 107 - """List all domains in the journal. 108 - 109 - Returns 110 - ------- 111 - list[str] 112 - List of domain names that have a domain.json file. 113 - 114 - Raises 115 - ------ 116 - RuntimeError 117 - If JOURNAL_PATH is not set. 118 - """ 119 - load_dotenv() 120 - journal = os.getenv("JOURNAL_PATH") 121 - if not journal: 122 - raise RuntimeError("JOURNAL_PATH not set") 123 - 124 - domains = [] 125 - domains_dir = Path(journal) / "domains" 126 - if domains_dir.exists(): 127 - for domain_path in domains_dir.iterdir(): 128 - if domain_path.is_dir() and (domain_path / "domain.json").exists(): 129 - domains.append(domain_path.name) 130 - return sorted(domains) 131 - 132 - 133 106 def _append_task_log(dir_path: str | Path, message: str) -> None: 134 107 """Append ``message`` to ``task_log.txt`` inside ``dir_path``.""" 135 108 path = Path(dir_path) / "task_log.txt"