refactor(synapse): backend updates, add icons module, relocate playbooks to data/playbooks

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-11 07:25:08 -05:00
parent 3ec57f9140
commit f4f77c5196
24 changed files with 1820 additions and 288 deletions
Regular → Executable
-12
View File
@@ -90,18 +90,6 @@ class PlaybookFileStore:
item.order = index
self._write(item)
def search_playbooks(self, query: str) -> List[PlaybookItem]:
if not query or not query.strip():
return []
q = query.strip().lower()
return [
p for p in self.all_playbooks()
if q in p.title.lower()
or q in p.goal.lower()
or q in p.instructions.lower()
or any(q in t.lower() for t in p.tags)
]
from ..nexus_config import PLAYBOOK_DIR
playbook_store = PlaybookFileStore(PLAYBOOK_DIR)