mirror of https://github.com/kortix-ai/suna.git
- Add backend API endpoints for agent export/import - GET /agents/{agent_id}/export - exports agent configuration as JSON - POST /agents/import - imports agent from JSON (new agents only) - Add AgentExportData and AgentImportRequest Pydantic models - Integrate export functionality in agent config header - Add always-visible 3-dots menu left of "Prompt to Build" tab - Include export option in dropdown menu for all agent types - Handle loading states during export process - Add subtle import functionality to new agent dialog - Replace mode selection with "or import from JSON" link - Support file upload and validation for agent JSON - Streamline UX for creating agents from templates - Create React Query hooks for export/import operations - useExportAgent: handles JSON download with proper error handling - useImportAgent: creates new agent and invalidates cache - Remove update existing agent option (import creates new agents only) - Fix API integration to use direct fetch calls with backend URL - Clean up unused components and improve code organization This enables users to share agent configurations across instances and create agents from templates with an intuitive interface. |
||
---|---|---|
.. | ||
(dashboard) | ||
(home) | ||
api | ||
auth | ||
invitation | ||
legal | ||
monitoring | ||
share/[threadId] | ||
favicon.ico | ||
global-error.tsx | ||
globals.css | ||
layout.tsx | ||
metadata.ts | ||
not-found.tsx | ||
opengraph-image.tsx | ||
providers.tsx |