suna/backend/core/suna_config.py

61 lines
1.7 KiB
Python
Raw Normal View History

2025-09-04 13:40:25 +08:00
from core.prompts.prompt import SYSTEM_PROMPT
2025-07-23 00:11:10 +08:00
2025-08-17 08:44:57 +08:00
# Suna default configuration - simplified and centralized
SUNA_CONFIG = {
"name": "Suna",
"description": "Suna is your AI assistant with access to various tools and integrations to help you with tasks across domains.",
feat(admin): add user thread viewer with admin access bypass ✨ Features: - Add admin portal thread viewer with pagination - Display thread list with project names and public status - Add clickable links to view threads via /share/{thread_id} - Add admin bypass for accessing all threads (public and private) 🔧 Backend Refactoring: - Consolidate admin APIs into admin_api.py and billing_admin_api.py - Remove unused files: users_admin.py, admin/api.py - Remove unused endpoints: user search, grant-bulk-credits, migrate-user - Update admin thread endpoint to use share URLs ⚡ Performance: - Remove message_count from UserThreadSummary (optimization) - Remove N+1 query issue in thread listing 🔒 Authorization: - Add admin role bypass in verify_and_authorize_thread_access - Create RLS migration (20251005160000_admin_roles_access.sql) - Update thread_select_policy for admin access - Update message_select_policy for admin access - Update project_select_policy for admin access - Update agent_runs_select_policy for admin access 💻 Frontend: - Add Threads tab to admin user details dialog - Add useAdminUserThreads hook with pagination - Remove unused admin hooks (useAdminUserSearch, useAdminAdvancedSearch) - Display thread metadata with Open button and ExternalLink icon 🗃️ Database: - Apply RLS policies allowing admin/super_admin roles to bypass restrictions - Admins can now view any thread, message, project, or agent_run This enables admins to view and debug any user's threads through the share page interface, regardless of public/private status.
2025-10-06 00:09:26 +08:00
"model": "claude-sonnet-4.5",
2025-08-17 08:44:57 +08:00
"system_prompt": SYSTEM_PROMPT,
"configured_mcps": [],
"custom_mcps": [],
"agentpress_tools": {
2025-09-26 17:19:12 +08:00
# Core file and shell operations
2025-07-30 14:59:25 +08:00
"sb_shell_tool": True,
2025-08-15 13:12:34 +08:00
"sb_files_tool": True,
2025-08-26 17:03:56 +08:00
"sb_deploy_tool": True,
"sb_expose_tool": True,
2025-09-26 17:19:12 +08:00
"sb_upload_file_tool": True,
# Search and research tools
2025-07-30 14:59:25 +08:00
"web_search_tool": True,
2025-09-24 01:00:05 +08:00
"image_search_tool": True,
2025-09-26 17:19:12 +08:00
"data_providers_tool": True,
# AI vision and image tools
2025-07-30 14:59:25 +08:00
"sb_vision_tool": True,
"sb_image_edit_tool": True,
2025-09-26 17:19:12 +08:00
"sb_design_tool": True,
# Document and content creation
"sb_docs_tool": True,
2025-08-18 13:17:39 +08:00
"sb_presentation_outline_tool": False,
2025-09-26 17:19:12 +08:00
"sb_presentation_tool": True,
2025-09-30 04:52:49 +08:00
"sb_sheets_tool": False,
2025-09-26 17:19:12 +08:00
"sb_kb_tool": True,
2025-09-27 15:56:07 +08:00
# search tools
"people_search_tool": True,
"company_search_tool": True,
2025-09-26 17:19:12 +08:00
# Browser automation (both variants)
2025-08-17 07:15:21 +08:00
"browser_tool": True,
2025-09-26 17:19:12 +08:00
"sb_browser_tool": True,
# Web development tools
"sb_web_dev_tool": False,
"sb_templates_tool": False,
# Computer automation
"computer_use_tool": True,
# Agent builder tools
2025-08-17 07:15:21 +08:00
"agent_config_tool": True,
2025-08-26 16:28:27 +08:00
"agent_creation_tool": True,
2025-08-17 07:15:21 +08:00
"mcp_search_tool": True,
"credential_profile_tool": True,
"trigger_tool": True
2025-08-17 08:44:57 +08:00
},
"is_default": True
}
2025-07-23 15:50:20 +08:00