Fix import references after renaming to agent_bridge_secure
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
418ded42a9
commit
9cb6fc4a7b
5 changed files with 8 additions and 8 deletions
|
|
@ -132,7 +132,7 @@ pip install mcp>=1.0.0
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"bridge": {
|
"bridge": {
|
||||||
"command": "python3",
|
"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 <conv_id> <token> &
|
||||||
|
|
||||||
**Solution:**
|
**Solution:**
|
||||||
```python
|
```python
|
||||||
# Increase rate limits in claude_bridge_secure.py
|
# Increase rate limits in agent_bridge_secure.py
|
||||||
RATE_LIMITS = {
|
RATE_LIMITS = {
|
||||||
"per_minute": 100, # Increased from 10
|
"per_minute": 100, # Increased from 10
|
||||||
"per_hour": 500,
|
"per_hour": 500,
|
||||||
|
|
@ -382,7 +382,7 @@ scripts/production/keepalive-daemon.sh "$CONV_ID" "$TOKEN" &
|
||||||
|
|
||||||
**Solution:**
|
**Solution:**
|
||||||
```python
|
```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')
|
conn.execute('PRAGMA journal_mode=WAL')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ cd mcp-multiagent-bridge
|
||||||
pip install mcp>=1.0.0
|
pip install mcp>=1.0.0
|
||||||
|
|
||||||
# Make executable
|
# Make executable
|
||||||
chmod +x claude_bridge_secure.py
|
chmod +x agent_bridge_secure.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Configure MCP Server
|
### 2. Configure MCP Server
|
||||||
|
|
@ -141,7 +141,7 @@ Add to `~/.claude.json`:
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"bridge": {
|
"bridge": {
|
||||||
"command": "python3",
|
"command": "python3",
|
||||||
"args": ["/absolute/path/to/claude_bridge_secure.py"],
|
"args": ["/absolute/path/to/agent_bridge_secure.py"],
|
||||||
"env": {}
|
"env": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
class BridgeCLI:
|
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
|
self.db_path = db_path
|
||||||
|
|
||||||
def list_conversations(self):
|
def list_conversations(self):
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ from pathlib import Path
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, str(Path(__file__).parent))
|
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():
|
def test_secret_redaction():
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ def test_integration():
|
||||||
print("\nTesting integration...")
|
print("\nTesting integration...")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from claude_bridge_secure import SecureBridge, RATE_LIMITER_AVAILABLE
|
from agent_bridge_secure import SecureBridge, RATE_LIMITER_AVAILABLE
|
||||||
|
|
||||||
if not RATE_LIMITER_AVAILABLE:
|
if not RATE_LIMITER_AVAILABLE:
|
||||||
print(" ❌ Rate limiter not integrated into SecureBridge")
|
print(" ❌ Rate limiter not integrated into SecureBridge")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue