Initial commit: RA-H Open Source Edition
Local-first knowledge management system with BYO API keys. Features: - 3-panel UI (Nodes | Focus | Helpers) - SQLite + sqlite-vec for vector search - Agent system (Easy/Hard mode orchestrators) - Content extraction (YouTube, PDF, web) - Integrate workflow for connection discovery - Dimension system with auto-assignment Tech stack: - Next.js 15 + TypeScript + Tailwind CSS - Anthropic (Claude) + OpenAI (GPT) via Vercel AI SDK Setup: npm install && npm rebuild better-sqlite3 scripts/dev/bootstrap-local.sh npm run dev MIT License
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
import { AgentDelegationService } from '@/services/agents/delegation';
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
try {
|
||||
const { searchParams } = new URL(request.url);
|
||||
const statusFilter = searchParams.get('status');
|
||||
|
||||
const includeCompleted = searchParams.get('includeCompleted') === 'true'
|
||||
|| statusFilter !== 'active';
|
||||
const delegations = statusFilter === 'active'
|
||||
? AgentDelegationService.listActive({ includeCompleted })
|
||||
: AgentDelegationService.listRecent();
|
||||
|
||||
return NextResponse.json({ delegations });
|
||||
} catch (error) {
|
||||
console.error('Failed to list delegations:', error);
|
||||
return NextResponse.json({ error: 'Failed to load delegations' }, { status: 500 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user