mirror of
https://github.com/coleam00/Archon
synced 2026-04-21 13:37:41 +00:00
- Add generic IPlatformAdapter and IAssistantClient interfaces for extensibility - Implement TelegramAdapter with streaming/batch modes - Implement ClaudeClient with session persistence and resume capability - Create TestAdapter for autonomous validation via HTTP endpoints - Add PostgreSQL database with 3-table schema (conversations, codebases, sessions) - Implement slash command system (/clone, /status, /getcwd, /setcwd, /reset, /help) - Add Docker containerization with docker-compose (with-db profile for local PostgreSQL) - Fix Claude Agent SDK spawn error (install bash, pass PATH environment variable) - Fix workspace volume mount to use /workspace in container - Add comprehensive documentation and health check endpoints Architecture highlights: - Platform-agnostic design allows adding Slack, GitHub, etc. via IPlatformAdapter - AI-agnostic design allows adding Codex, etc. via IAssistantClient - Orchestrator uses dependency injection with interface types - Session persistence survives container restarts - Working directory + codebase context determine Claude behavior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
22 lines
574 B
JavaScript
22 lines
574 B
JavaScript
// Quick test to verify Supabase connection works locally
|
|
require('dotenv').config();
|
|
const { Pool } = require('pg');
|
|
|
|
const pool = new Pool({
|
|
connectionString: process.env.DATABASE_URL,
|
|
max: 1
|
|
});
|
|
|
|
async function test() {
|
|
try {
|
|
console.log('Testing connection to:', process.env.DATABASE_URL?.split('@')[1]);
|
|
const result = await pool.query('SELECT 1 as test');
|
|
console.log('✅ Connection successful!', result.rows);
|
|
await pool.end();
|
|
} catch (error) {
|
|
console.error('❌ Connection failed:', error.message);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
test();
|