- 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>
41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
import React from 'react';
|
|
import { Zap } from 'lucide-react';
|
|
import { Switch } from '../ui/switch';
|
|
import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from '../ui/tooltip';
|
|
|
|
interface StreamToggleProps {
|
|
isStreaming: boolean;
|
|
onStreamingChange: (enabled: boolean) => void;
|
|
className?: string;
|
|
}
|
|
|
|
export function StreamToggle({ isStreaming, onStreamingChange, className }: StreamToggleProps) {
|
|
return (
|
|
<TooltipProvider>
|
|
<Tooltip>
|
|
<TooltipTrigger asChild>
|
|
<div className={`flex items-center gap-1.5 cursor-pointer ${className || ''}`}>
|
|
<Zap
|
|
className={`h-3 w-3 ${isStreaming ? 'text-blue-500' : 'text-muted-foreground'}`}
|
|
/>
|
|
<Switch
|
|
checked={isStreaming}
|
|
onCheckedChange={onStreamingChange}
|
|
className="scale-75"
|
|
aria-label="Toggle streaming"
|
|
/>
|
|
</div>
|
|
</TooltipTrigger>
|
|
<TooltipContent side="bottom">
|
|
<p>{isStreaming ? 'Streaming enabled' : 'Streaming disabled'}</p>
|
|
<p className="text-xs opacity-75">
|
|
{isStreaming
|
|
? 'Responses will stream in real-time'
|
|
: 'Responses will arrive all at once'}
|
|
</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
</TooltipProvider>
|
|
);
|
|
}
|