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:
23
dexto/packages/webui/components/hooks/useDextoAuth.ts
Normal file
23
dexto/packages/webui/components/hooks/useDextoAuth.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { client } from '@/lib/client';
|
||||
import { queryKeys } from '@/lib/queryKeys';
|
||||
|
||||
/**
|
||||
* Hook to fetch Dexto authentication status.
|
||||
* Returns whether dexto auth is enabled, user is authenticated, and can use dexto provider.
|
||||
*/
|
||||
export function useDextoAuth(enabled: boolean = true) {
|
||||
return useQuery({
|
||||
queryKey: queryKeys.dextoAuth.status,
|
||||
queryFn: async () => {
|
||||
const res = await client.api['dexto-auth'].status.$get();
|
||||
if (!res.ok) throw new Error('Failed to fetch dexto auth status');
|
||||
return await res.json();
|
||||
},
|
||||
enabled,
|
||||
staleTime: 30 * 1000, // 30 seconds - auth status may change
|
||||
});
|
||||
}
|
||||
|
||||
// Export types using the standard inference pattern
|
||||
export type DextoAuthStatus = NonNullable<ReturnType<typeof useDextoAuth>['data']>;
|
||||
Reference in New Issue
Block a user