feat: Add intelligent auto-router and enhanced integrations

- Add intelligent-router.sh hook for automatic agent routing
- Add AUTO-TRIGGER-SUMMARY.md documentation
- Add FINAL-INTEGRATION-SUMMARY.md documentation
- Complete Prometheus integration (6 commands + 4 tools)
- Complete Dexto integration (12 commands + 5 tools)
- Enhanced Ralph with access to all agents
- Fix /clawd command (removed disable-model-invocation)
- Update hooks.json to v5 with intelligent routing
- 291 total skills now available
- All 21 commands with automatic routing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
admin
2026-01-28 00:27:56 +04:00
Unverified
parent 3b128ba3bd
commit b52318eeae
1724 changed files with 351216 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { useQuery } from '@tanstack/react-query';
import { client } from '@/lib/client.js';
import { queryKeys } from '@/lib/queryKeys.js';
async function fetchGreeting(sessionId?: string | null): Promise<string | null> {
const data = await client.api.greeting.$get({
query: sessionId ? { sessionId } : {},
});
if (!data.ok) {
throw new Error(`Failed to fetch greeting: ${data.status}`);
}
const json = await data.json();
return json.greeting ?? null;
}
export function useGreeting(sessionId?: string | null) {
const {
data: greeting = null,
isLoading,
error,
} = useQuery({
queryKey: queryKeys.greeting(sessionId),
queryFn: () => fetchGreeting(sessionId),
staleTime: 5 * 60 * 1000, // 5 minutes - greeting is static per agent
});
return { greeting, isLoading, error: error?.message ?? null };
}