mirror of https://github.com/kortix-ai/suna.git
wip
This commit is contained in:
parent
c20b5e70e8
commit
ef3101fbb7
|
@ -377,6 +377,8 @@ async def get_pipedream_apps(
|
|||
|
||||
data = response.json()
|
||||
|
||||
print(data)
|
||||
|
||||
logger.info(f"Successfully fetched {len(data.get('data', []))} apps from Pipedream registry")
|
||||
return {
|
||||
"success": True,
|
||||
|
|
|
@ -5,16 +5,14 @@ import { Bot, ShoppingBag, FileText, Plus, Search, Download, User, Calendar, Tag
|
|||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
|
||||
import { Alert, AlertDescription } from '@/components/ui/alert';
|
||||
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
|
||||
import { Sheet, SheetContent, SheetHeader, SheetTitle } from '@/components/ui/sheet';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Textarea } from '@/components/ui/textarea';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { toast } from 'sonner';
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import Link from 'next/link';
|
||||
|
||||
// Import hooks and components from existing pages
|
||||
import { useAgents, useUpdateAgent, useDeleteAgent, useOptimisticAgentUpdate, useCreateAgent } from '@/hooks/react-query/agents/use-agents';
|
||||
|
|
|
@ -44,7 +44,7 @@ export function AgentVersionManager({ agent, onCreateVersion }: AgentVersionMana
|
|||
);
|
||||
}
|
||||
|
||||
const currentVersion = versions?.find(v => v.version_id === agent.current_version_id);
|
||||
const currentVersion = versions?.find(v => v.is_active);
|
||||
const versionHistory = versions?.sort((a, b) => b.version_number - a.version_number) || [];
|
||||
|
||||
const handleActivateVersion = (versionId: string) => {
|
||||
|
@ -123,7 +123,7 @@ export function AgentVersionManager({ agent, onCreateVersion }: AgentVersionMana
|
|||
<ScrollArea className="h-[400px] pr-4">
|
||||
<div className="space-y-3">
|
||||
{versionHistory.map((version, index) => {
|
||||
const isActive = version.version_id === agent.current_version_id;
|
||||
const isActive = version.is_active;
|
||||
const isSelected = version.version_id === selectedVersion;
|
||||
|
||||
return (
|
||||
|
|
|
@ -129,8 +129,6 @@ export const PipedreamRegistry: React.FC<PipedreamRegistryProps> = ({
|
|||
queryClient.invalidateQueries({ queryKey: pipedreamKeys.profiles.all() });
|
||||
};
|
||||
|
||||
|
||||
|
||||
const getAppProfiles = (appSlug: string) => {
|
||||
return profiles?.filter(p => p.app_slug === appSlug && p.is_active) || [];
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"strict": false,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
|
@ -13,9 +13,9 @@
|
|||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitAny": true,
|
||||
// "noUnusedLocals": true,
|
||||
// "noUnusedParameters": true,
|
||||
// "noImplicitAny": true,
|
||||
"ignoreDeprecations": "5.0",
|
||||
"plugins": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue