chore(db): add whitelistable wrapper scripts for SQLite and Qdrant connectors

Thin bash wrappers around sqlite_connector.py and qdrant_connector.py
that can be whitelisted in Claude Code permissions. Covers sqlite-query,
sqlite-exec, qdrant-search, qdrant-index, qdrant-health, qdrant-count.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 23:05:20 +01:00
co-authored by Claude Opus 4.6
parent e7b632b02d
commit 616298936a
6 changed files with 22 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
# Count indexed documents in Qdrant. Whitelistable command.
exec python3 "$(dirname "$0")/qdrant_connector.py" count
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
# Check Qdrant and ollama connectivity. Whitelistable command.
exec python3 "$(dirname "$0")/qdrant_connector.py" health
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Index a file into Qdrant. Whitelistable command.
# Usage: qdrant-index <filepath>
exec python3 "$(dirname "$0")/qdrant_connector.py" index-file "$@"
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Search the Qdrant document index. Whitelistable command.
# Usage: qdrant-search "query text"
exec python3 "$(dirname "$0")/qdrant_connector.py" search "$@"
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Run an INSERT/UPDATE/DELETE on the ticketing database. Whitelistable command.
# Usage: sqlite-exec "UPDATE tickets SET status='done' WHERE id=1"
exec python3 "$(dirname "$0")/sqlite_connector.py" execute "$@"
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Run a SELECT query on the ticketing database. Whitelistable command.
# Usage: sqlite-query "SELECT * FROM tickets WHERE status='in_progress'"
exec python3 "$(dirname "$0")/sqlite_connector.py" query "$@"