From 9cb6fc4a7bd49286626d7789082edaa1eaebad62 Mon Sep 17 00:00:00 2001 From: dannystocker Date: Fri, 14 Nov 2025 01:28:57 +0100 Subject: [PATCH] Fix import references after renaming to agent_bridge_secure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated test_bridge.py: import from agent_bridge_secure - Updated test_security.py: import from agent_bridge_secure - Updated bridge_cli.py: default DB path to /tmp/agent_bridge_secure.db - Updated PRODUCTION.md: all references to agent_bridge_secure.py - Updated RELEASE_NOTES.md: all references to agent_bridge_secure.py Fixes ModuleNotFoundError when running tests after the rename. 🤖 Generated with Claude Code Co-Authored-By: Claude --- PRODUCTION.md | 6 +++--- RELEASE_NOTES.md | 4 ++-- bridge_cli.py | 2 +- test_bridge.py | 2 +- test_security.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PRODUCTION.md b/PRODUCTION.md index 6bc1bb5..6117d62 100644 --- a/PRODUCTION.md +++ b/PRODUCTION.md @@ -132,7 +132,7 @@ pip install mcp>=1.0.0 "mcpServers": { "bridge": { "command": "python3", - "args": ["/absolute/path/to/claude_bridge_secure.py"] + "args": ["/absolute/path/to/agent_bridge_secure.py"] } } } @@ -306,7 +306,7 @@ scripts/production/fs-watcher.sh & **Solution:** ```python -# Increase rate limits in claude_bridge_secure.py +# Increase rate limits in agent_bridge_secure.py RATE_LIMITS = { "per_minute": 100, # Increased from 10 "per_hour": 500, @@ -382,7 +382,7 @@ scripts/production/keepalive-daemon.sh "$CONV_ID" "$TOKEN" & **Solution:** ```python -# Enable WAL mode (automatic in claude_bridge_secure.py) +# Enable WAL mode (automatic in agent_bridge_secure.py) conn.execute('PRAGMA journal_mode=WAL') ``` diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6ec3452..9c84cd3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -129,7 +129,7 @@ cd mcp-multiagent-bridge pip install mcp>=1.0.0 # Make executable -chmod +x claude_bridge_secure.py +chmod +x agent_bridge_secure.py ``` ### 2. Configure MCP Server @@ -141,7 +141,7 @@ Add to `~/.claude.json`: "mcpServers": { "bridge": { "command": "python3", - "args": ["/absolute/path/to/claude_bridge_secure.py"], + "args": ["/absolute/path/to/agent_bridge_secure.py"], "env": {} } } diff --git a/bridge_cli.py b/bridge_cli.py index 9397f84..7956247 100644 --- a/bridge_cli.py +++ b/bridge_cli.py @@ -11,7 +11,7 @@ from pathlib import Path class BridgeCLI: - def __init__(self, db_path: str = "/tmp/claude_bridge_secure.db"): + def __init__(self, db_path: str = "/tmp/agent_bridge_secure.db"): self.db_path = db_path def list_conversations(self): diff --git a/test_bridge.py b/test_bridge.py index b5b7acf..1bcde6a 100644 --- a/test_bridge.py +++ b/test_bridge.py @@ -11,7 +11,7 @@ from pathlib import Path import sys sys.path.insert(0, str(Path(__file__).parent)) -from claude_bridge_secure import SecureBridge, SecretRedactor +from agent_bridge_secure import SecureBridge, SecretRedactor def test_secret_redaction(): diff --git a/test_security.py b/test_security.py index 327d45b..7f9462f 100644 --- a/test_security.py +++ b/test_security.py @@ -122,7 +122,7 @@ def test_integration(): print("\nTesting integration...") try: - from claude_bridge_secure import SecureBridge, RATE_LIMITER_AVAILABLE + from agent_bridge_secure import SecureBridge, RATE_LIMITER_AVAILABLE if not RATE_LIMITER_AVAILABLE: print(" ❌ Rate limiter not integrated into SecureBridge")