refactor: agents sharing and shared with me logic

This commit is contained in:
Siddhant Rai
2025-05-28 13:58:55 +05:30
parent b7a6bad7cd
commit ad1a944276
6 changed files with 158 additions and 137 deletions

View File

@@ -18,7 +18,7 @@ const endpoints = {
SHARED_AGENT: (id: string) => `/api/shared_agent?token=${id}`,
SHARED_AGENTS: '/api/shared_agents',
SHARE_AGENT: `/api/share_agent`,
HIDE_SHARED_AGENT: (id: string) => `/api/hide_shared_agent?id=${id}`,
REMOVE_SHARED_AGENT: (id: string) => `/api/remove_shared_agent?id=${id}`,
AGENT_WEBHOOK: (id: string) => `/api/agent_webhook?id=${id}`,
PROMPTS: '/api/get_prompts',
CREATE_PROMPT: '/api/create_prompt',