Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/dependency-review.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ jobs:
name: File Changes Analysis
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ jobs:
runs-on: ubuntu-latest
needs: [dependency-scan, bandit-scan, license-scan]
if: always()
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Download all security artifacts
uses: actions/download-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ dependencies = [
"email-validator>=2.3.0",
"mlx-lm>=0.31.1",
"wasmtime>=42.0.0",
"matplotlib>=3.10.8",
]

[project.optional-dependencies]
Expand Down
16 changes: 11 additions & 5 deletions src/codomyrmex/agentic_memory/cognilayer_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,17 @@ def recall_memory(
except sqlite3.OperationalError:
# Fallback to LIKE search
search_terms = [f"%{word}%" for word in query.split()]
where_clauses = " OR ".join(["content LIKE ?"] * len(search_terms))
rows = conn.execute(
f"SELECT * FROM memories WHERE {where_clauses} LIMIT ?",
[*search_terms, top_k],
).fetchall()
if not search_terms:
rows = conn.execute(
"SELECT * FROM memories LIMIT ?",
(top_k,),
).fetchall()
else:
where_clauses = " OR ".join(["content LIKE ?"] * len(search_terms))
rows = conn.execute(
f"SELECT * FROM memories WHERE {where_clauses} LIMIT ?",
[*search_terms, top_k],
).fetchall()

results = []
for row in rows:
Expand Down
2 changes: 2 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading