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:
Regular → Executable
-12
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user